text stringlengths 8.04k 46.5k |
|---|
from collections import defaultdict, deque
from fatalattractors.attractors import init_out, attractor, attractor_color_vector
from fatalattractors.psolB_generalized import monotone_attractor
from copy import copy
import operations as ops
from graph import Graph
DEBUG_PRINT = False
def psolQ_generalized(g, W1, W2):
... |
#
# Copyright 2018-2022 Elyra 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 applicable law or agreed to in writ... |
import asyncio
import html
import os
import traceback
import websockets
import ffmpeg
import json
import youtube_dl
import uuid
from pylast import WSError
from tinydb import TinyDB, Query
import re
from random_word import RandomWords
from Levenshtein import distance as levenshtein_distance
import time
import sqlite3
... |
import re
import csv
import sys
import os
import pathlib
import json
import msgpack
import shutil
import numpy as np
from PIL import Image, ImageFilter
from scipy.spatial.transform import Rotation as R
def blur_photographer(original_image_dir, mask_image_dir, output_dir):
"""
"""
output_dir = path... |
from __future__ import annotations
import getpass
import logging
import os
import unittest
from datetime import datetime, timedelta
from pathlib import Path
from tempfile import TemporaryDirectory
import drmaa2
from parameterized import parameterized
from example.simple_processing_mode import SimpleProcessingMode
fr... |
import logging
import multiprocessing
from collections import Iterable
import numpy as np
from scipy.sparse import csr_matrix
from sklearn.decomposition import PCA
from . import _tsne
from .affinity import Affinities, NearestNeighborAffinities
from .quad_tree import QuadTree
EPSILON = np.finfo(np.float64).eps
log =... |
# python3 -m pip install isort autoflake astpretty black
# requires python3.9 to run
import os
import argparse
import ast
import subprocess
import multiprocessing
from pathlib import Path
import astpretty
import sys
parser = argparse.ArgumentParser()
parser.add_argument(
"--out_dir", type=str, default="python",
)
... |
#!/usr/bin/env python
from binascii import hexlify
from fcntl import ioctl
from socket import *
from struct import pack, unpack
import six
from pcappy_port.constants import *
from pcappy_port.functions import *
# wrap libpcap use ctypes
# fork of pcappy_port, fix bugs and make it work for python3
__author__ = '<NA... |
from os.path import join, dirname
import datetime
# import pandas as pd
# from scipy.signal import savgol_filter
# from bokeh.io import curdoc
# from bokeh.layouts import row, column
# from bokeh.models import ColumnDataSource, DataRange1d, Select
# from bokeh.palettes import Blues4
# from bokeh.plotting import figur... |
#!/usr/bin/python3
#-*- coding:utf-8 -*-
import sys
import time
import json
import shlex
import subprocess
try:
from xsearch import * # virustotal search
except ImportError:
print("[!] Error Import Xsearch !")
try:
from md5sum import *
except ImportError:
print("[!] Error Import MD5sum !")
try:
... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Name: <NAME>
# Date: October 11, 2019
# Email: <EMAIL>
# Description: Implementation of the continuous rate RNN model
import os, sys
import numpy as np
import tensorflow as tf
import scipy.io
import pickle
np.random.seed(700)
# import horovod.tens... |
import collections.abc
import functools
import os
import pickle
import socket
import time
import typing
import uuid
import warnings
from abc import abstractmethod
from dataclasses import dataclass
from typing import Iterator
import cloudpickle
import mlflow
import mlflow.entities
import mlflow.exceptions
import mlflow... |
import glob
import pickle
font = {"family": "normal", "weight": "bold", "size": 16}
import matplotlib
matplotlib.rc("font", **font)
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib.gridspec import GridSpec
import numpy as np
import imageio
from handcam.ltt.util.Utils import so... |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from collections import defaultdict
from collections.abc import Hashable
from frozendict import frozendict
from itertools import chain
import math
import numpy as np
import logging
import re
import roundrobin
from ..executor.type_inference impor... |
"""
.. module:: wagtailsnapshotpublisher.views
"""
import json
import logging
from datetime import datetime
from django.apps import apps
from django.conf import settings
from django.forms.models import modelform_factory
from django.http import JsonResponse, HttpResponseServerError, Http404
from django.shortcuts impor... |
from multiprocessing import Pool
from PIL import Image, ImageDraw, ImageFont
import random
import cv2
import numpy as np
import os, math
import logging as logger
from app.generator import string_generator
from app.utils import file_utils, image_utils, box_utils
'''
#1. 从文字库随机选择10个字符
#2. 生成图片
#3. 随机使用函数
# 改进图片的质量:
#... |
from __future__ import print_function
#
# General
#
EXIT_SUCCESS = 0
EXIT_FAILURE = 1
def quit():
exit(EXIT_SUCCESS)
def exit(status=EXIT_SUCCESS):
from slicer import app
app.commandOptions().runPythonAndExit = False
app.exit(status)
def restart():
from slicer import app
app.restart()
def _readCMakeC... |
# -*- coding: utf-8 -*-
import logging
import os
import subprocess
import time
import pendulum
import requests
import schedule
from constants import CLOSE_NUM, HTTP_USER_AGENT, LEAGUE_NAME, TIMEZONE
from discord import Discord
from group_me import GroupMe
from prettytable import PrettyTable
from slack import Slack
fro... |
from tkinter import *
import time
from tkinter import ttk
import datetime
msg1 = "Welcome to Python programming..."
msg2 = "Welcome to our Hotel.."
msg3 = "Powered by Python.."
msg4 = "Thank you for your patronage.."
msg5 = "Welcome to Python programming..."
msg6 = "Welcome to Python programming..."
text1 =... |
import time
from cube2common.constants import mastermodes, disconnect_types, privileges
from cipolla.game.server_message_formatter import error
from cipolla.punitive_effects.punitive_effect_info import TimedExpiryInfo, EffectInfo
from cipolla.game.client.exceptions import InsufficientPermissions
from cipolla.game.game... |
import numpy as np
from typing import *
from numpy.typing import ArrayLike
from scipy.spatial import Delaunay
from tallem.utility import ask_package_install, package_exists
def flywing():
''' Fly wings example (Klingenberg, 2015 | https://en.wikipedia.org/wiki/Procrustes_analysis) '''
arr1 = np.array([[588.0, 443.0]... |
"""
sepp
~~~~
Implements the ETAS (Epidemic Type Aftershock-Sequences) model intensity
estimation scheme outlined in Mohler et al. (2011).
As this is a statistical model, we separate out the statistical optimisation
procedure into a separate class :class:`StocasticDecluster`. This allows
testing and exploration of t... |
# 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.
from typing import Optional, Tuple
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from fairseq.modules... |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Calculation of DDEC charges based on data parsed by cclib."""
import copy
import random
import numpy
import logging
imp... |
# match.py - filename matching
#
# Copyright 2008, 2009 <NAME> <<EMAIL>> and others
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
import copy
import os
import re
from .i18n import _
from... |
import configparser
import traceback
from pathlib import Path
from shutil import copyfile
from tkinter import filedialog, messagebox
from niq_misc import replace_entry
def save_config(gui, out_file=None):
"""
Prompts user to provide a save file name and location then generates a configuration file from
... |
import math
import torch
from torch import nn
from torch.nn import functional as F
import einops
from einops import rearrange, repeat
from allennlp.nn.util import get_range_vector, get_device_of, add_positional_features
import pdb
torch.manual_seed(12)
# based on https://github.com/allenai/allennlp/blob/master/... |
import numpy as np
import sklearn.preprocessing
import math
import decimal
class GradientDir:
def __init__(self):
pass
def compare_implemenatation(self):
test_size = 50
pixel_descriptors_tangent = np.empty((test_size*2, test_size*2), dtype=object)
pixel_descriptors_vhdl = np... |
"""
The module :mod:`~smrf.framework.model_framework` contains functions and
classes that act as a major wrapper to the underlying packages and modules
contained with SMRF. A class instance of
:class:`~smrf.framework.model_framework.SMRF` is initialized with a
configuration file indicating where data is located, what v... |
from AI.ai import AI
from Database.database import Database
import MainDarkLogic.darklogic as DarkLogic
import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from tensorflow.python.lib.io import file_io
from sklearn.utils import class_weight
import random as rand
f... |
# 1. 导入Python库
import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
import jieba
from gensim.models import word2vec
import time
import logging
import tensorflow as tf
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, f1_score,... |
# Tiltwing.py
#
# Created: May 2019, <NAME>
# Sep 2020, <NAME>
#----------------------------------------------------------------------
# Imports
# ---------------------------------------------------------------------
import SUAVE
from SUAVE.Core import Units, Data
from SUAVE.Methods.Power.Battery.Sizing ... |
#!/usr/bin/env python
#
# Copyright 2014 <NAME>
#
# gnTEAM, School of Computer Science, University of Manchester.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the GNU General Public License.
#
# author: <NAME>
# email: <EMAIL>
#
# For details,... |
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.utils import nowdate,nowtime, today, flt
from datetime import timedelta,date
import datetime
import calendar
import json
import time
from erpnext.stock.stock_ledger import get_previous_sle
import operator
import... |
from os import path
import numpy as np
from numpy.testing import *
import datetime
class TestDateTime(TestCase):
def test_creation(self):
for unit in ['Y', 'M', 'W', 'B', 'D',
'h', 'm', 's', 'ms', 'us',
'ns', 'ps', 'fs', 'as']:
dt1 = np.dtype('M8[750%s]... |
# -----------------------------------------------------------------------------
# cpp.py
#
# Author: <NAME> (http://www.dabeaz.com)
# Copyright (C) 2017
# All rights reserved
#
# This module implements an ANSI-C style lexical preprocessor for PLY.
# ---------------------------------------------------------------------... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# filename: __adapterproxymanager.py_compiler
# Tencent is pleased to support the open source community by making Tars available.
#
# Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you... |
import pygame
from widgets.buttons_file import icon_Button, Button
from widgets.symbols_file import draw_items_list_icon, draw_delete_all_items_icon, draw_random_add_icon, draw_add_item_icon, draw_remove_item_icon, draw_left_arrow_icon, draw_right_arrow_icon
from widgets.inputs_file import input
# Item object, it's fo... |
# Copyright 2018 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, s... |
#!/opt/tethys-python
import flopy
import sys
import os
import numpy as np
import pyproj
from shapely.geometry import mapping, Polygon
from geojson import Feature, FeatureCollection, dump
from shapely.geometry.polygon import orient
import json
import flopy.utils.binaryfile as bf
import shapefile
import math
def float_... |
import abc
import os
import time
import markupsafe
import requests
from django.db import models
from framework.auth import Auth
from framework.auth.decorators import must_be_logged_in
from framework.exceptions import HTTPError, PermissionsError
from mako.lookup import TemplateLookup
from osf.models.base import BaseMod... |
#!/usr/bin/python2.7
"""
Copyright (C) 2014 Reinventing Geospatial, Inc.
This program 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.
This ... |
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 25 10:52:49 2019
Functions used in XRD analysis
XRD 常用的参数与方程函数
@author: CHWang
"""
import math
import numpy as np
import random
import pandas as pd
import gemmi
#import matplotlib.pyplot as plt
#import decimal
#decimal.getcontext().prec = num_decimal
#x = decimal.... |
import datetime
# import os, subprocess
import copy
from typing import List, Deque, Dict
from collections import deque
def join(self, DQ2):
DQ2_Li = list(DQ2)
for i in DQ2_Li:
self.append(i)
return self
def posixTime(self, date, time):
date_li = date.split('-')
time_li = time.split(':')
DT_args = [ int(... |
# --------------------------------------------------------
# Factory file for LRP-HAI
# Licensed under The MIT License [see LICENSE for details]
# Written by <NAME>
# Written by <NAME>
# Faster R-CNN code by <NAME>, <NAME>, based on code
# from <NAME>
# --------------------------------------------------------
import cv... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Python framework for developing neural network emulators of RRTMGP gas optics
scheme, the RTE radiative transfer solver, or their combination RTE+RRTMGP (a
radiative transfer scheme).
This file provides functions for loading and preprocessing data so that it
may be u... |
"""Entropy functions"""
import numpy as np
from numba import jit
from math import factorial, log
from sklearn.neighbors import KDTree
from scipy.signal import periodogram, welch
from .utils import _embed
all = ['perm_entropy', 'spectral_entropy', 'svd_entropy', 'app_entropy',
'sample_entropy', 'lziv_complexity... |
import os
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from synthesizer.models.global_style_token import GlobalStyleToken
from synthesizer.gst_hyperparameters import GSTHyperparameters as gst_hp
class HighwayNetwork(nn.Module):
def __init__(self, size):
super().__i... |
import json
import os
import pprint
from os import listdir
from os.path import isfile, join
import cv2 as cv
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scipy
import seaborn as sns
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.n... |
"""pysemver: Semantic Version comparing for Python.
Provides comparing of semantic versions by using SemVer objects using rich comperations plus the
possibility to match a selector string against versions. Interesting for version dependencies.
Versions look like: "1.7.12+b.133"
Selectors look like: ">1.7.0 || 1.6.9+b.... |
# Copyright (C) 2009 Google Inc. All rights reserved.
# Copyright (C) 2010 <NAME> (<EMAIL>)
# Copyright (C) 2010 ProFUSION embedded systems
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of ... |
# Copyright 2015-2017 Capital One Services, 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 ... |
# build.py
# created: January 15, 2020
#
# This script builds the native (and wrapper) libraries for rhino3dm for the platforms that we target. It requires that
# the setup script has previously been run in order to generate the project files for the target platform(s).
# See bootstrap script for required tools. This... |
'''
Deep Learning for Data Science: Assignment 3
Submitted by: <NAME> (<EMAIL>)
Description - Generalize to k-layer Neural Network
- Implement Batch Normalization
- Implement moving average
- Training using mini batch Gradient Descent
'''
import numpy as np
from nump... |
"""
Tools for representing and manipulating rooted trees.
The main component of this module is the RootedTree object,
whose documentation contains further details.
To facilitate the display of trees, and since it is not
convenient to use graph representations in most contexts,
the module also defines canonical names f... |
from abc import abstractmethod, ABC
from collections import UserDict, UserString
from collections.abc import Mapping
from contextlib import contextmanager
from io import StringIO
import json
#
from .answers import AnswersBlock, SubquestionsAnswer
from .config import ConfigParser
from .generator import GeneratorNavigato... |
from turtle import Turtle
import typing
from platform import system as os_type
from glob import glob
import os
import time
import logging
import re
import numpy as np
import pandas as pd
import cde
from node import Node
from controller import MouseClick, Controller
import ncsim_visualizer as ncsv
CFG_OS = os_type()
# ... |
from manim_imports_ext import *
class TrigRepresentationsScene(Scene):
CONFIG = {
"unit_length" : 1.5,
"arc_radius" : 0.5,
"axes_color" : WHITE,
"circle_color" : RED,
"theta_color" : YELLOW,
"theta_height" : 0.3,
"theta_value" : np.pi/5,
"x_line_colo... |
# -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
#
# Copyright 2020, Battelle Memorial Institute.
#
# 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... |
#
# Author: <NAME>
# Copyright 2015-present, NASA-JPL/Caltech
#
import os
import logging
import isceobj
from isceobj.Constants import SPEED_OF_LIGHT
logger = logging.getLogger('isce.alos2insar.runIonSubband')
def runIonSubband(self):
'''create subband interferograms
'''
catalog = isceobj.Catalog.createC... |
# Copyright 2000-2009 by <NAME>. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
#
# <NAME> <EMAIL>
"""Substitution matrices, log odds matrices, and operations on them.
General... |
"""Unit tests for the functions file."""
from __future__ import division, print_function, absolute_import
from numpy.testing import assert_equal, assert_allclose
import pytest
import numpy as np
from scipy.optimize import check_grad
import tensorflow as tf
from safe_learning.functions import (_Triangulation, Triangu... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 5, 2020
@authors: enzoampil & jpdeleon
"""
# Import standard library
import os
from inspect import signature
from datetime import datetime
import warnings
from pathlib import Path
from string import digits
import requests
import json
import re
# Im... |
#!/usr/bin/env python
#############################################################################
##
## Copyright (C) 2013 Riverbank Computing Limited.
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
##
## This file is part of the examples of PyQt.
##
## $QT_BEGIN_LICENS... |
#!/usr/bin/env python
"""Ensemble Simulation with MPI4PY.
This module is responsible to coordinate Input/Output of the
ensemble simulation.
It contains instructions for IO and both,
one class for rank0 (master) and the other ranks (worker)
The master is responsible for ALL IO, to and from disk and to stdout and std... |
# -*- coding: utf-8 -*-
"""
Basic Arithmetic
The functions here are the basic arithmetic operations that you might find on a calculator.
"""
from mathics.version import __version__ # noqa used in loading to check consistency.
import sympy
import mpmath
from mathics.builtin.arithmetic import _MPMathFunction, creat... |
# curio/kernel.py
#
# Main execution kernel.
#
# Curio is based on two overarching design principles that drive the code
# you'll find here.
#
# 1. Environmental Isolation.
#
# Curio strictly separates the environment of async and synchronous
# programming. All asynchronous functionality is placed in
# a... |
# -*- coding: utf-8 -*-
"""
profiling.__main__
~~~~~~~~~~~~~~~~~~
The command-line interface to profile a script or view profiling results.
.. sourcecode:: console
$ profiling --help
:copyright: (c) 2014-2017, What! Studio
:license: BSD, see LICENSE for more details.
"""
from __future__ imp... |
import sqlite3
import time
import hashlib
import os
import sys
connection = None
cursor = None
matches = None
#this class will be used to reference the singleton user and get their uid.
class CurrentUser:
def __init__(self, uid = None):
self._uid = uid
# getter method
def get_uid(self)... |
from typing import Tuple, Any, Dict, List
from xdl.platforms.abstract_platform import AbstractPlatform
from networkx import MultiDiGraph
import abc
import time
import os
import appdirs
import socketio
import logging
import json
import secrets
from threading import Thread
from ..constants import CHEMIFY_API_URL
from ..x... |
from future import standard_library
standard_library.install_aliases()
from builtins import zip
from contextlib import contextmanager
import datetime
import io
import os
import time
import tempfile
import xml.etree.ElementTree as ET
from salesforce_bulk.util import IteratorBytesIO
from sqlalchemy.ext.automap import a... |
"""
Copyright (c) 2019, <NAME>
Copyright (c) 2019, The Decred developers
See LICENSE for details
Cryptographic functions.
"""
import hashlib
import hmac
import unittest
from tinydecred.util import tinyjson
from tinydecred.crypto.secp256k1.curve import curve as Curve, PublicKey, PrivateKey
from tinydecred.crypto.rando... |
# Tkinter
import tkinter as tk
from tkinter import ttk
# Matplotlib
import matplotlib.pyplot as plt
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import matplotlib.dates as mdates
# Serial
from pySerialTransfer import pySerialTransfer as txfer
# Other
import time
from datetime import datetime, timedel... |
#!/usr/bin/env python3
# Copyright (c) 2019 The PIVX developers
# Copyright (c) 2020 The BTCU developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# -*- coding: utf-8 -*-
from io import BytesIO
from time import sleep
from t... |
# Copyright (c) 2020 PaddlePaddle 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 required by appli... |
import dataclasses
import pickle
import re
import unittest
from pathlib import Path
from struct import unpack
from typing import (
NewType,
TYPE_CHECKING,
Any,
Dict,
List,
Match,
Tuple,
Union,
cast,
)
try:
from compat import ( # type: ignore
log_debug,
log_error... |
# This Python module is part of the PyRate software package.
#
# Copyright 2017 Geoscience Australia
#
# 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/... |
#!/usr/bin/python2.7
# -*- coding: utf-8 -*-
#
# Univention Management Console module:
# Manage licenses
#
# Copyright 2021 Univention GmbH
#
# http://www.univention.de/
#
# All rights reserved.
#
# The source code of this program is made available
# under the terms of the GNU Affero General Public License version 3
... |
# Copyright (c) UWr 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 logging
import numpy as np
import sys
import torch
import torch.nn.functional as F
from .utils import num_between
from . import scrib... |
#!/usr/bin/env python
#
# Copyright (c), 2016-2020, 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 <N... |
# %%
import math
import time
from copy import deepcopy
from dataclasses import asdict, dataclass, field
from typing import Any, Literal, Optional, Union
import numpy as np
import rtdl
import torch
import torch.nn as nn
import zero
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
from torch import... |
import environments.ControlledRangeVariance
from opebet import wealth_lb_1d, wealth_lb_2d, wealth_2d, wealth_lb_2d_individual_qps
import pickle
import numpy as np
import pandas as pd
import seaborn as sns
from matplotlib import pyplot as plt
def getenv(wsq, tv=None):
wsupport = [0, 0.5, 2, 100]
env = environm... |
from Bio import Phylo
from Bio.Phylo import PhyloXML
from Bio.Phylo import PhyloXMLIO
from collections import defaultdict as ddict
from Bio.Phylo.PhyloXML import Property as Prop
from Bio.Phylo.PhyloXML import Clade as PClade
from Bio.Phylo.BaseTree import Tree as BTree
from Bio.Phylo.BaseTree import Clade as BClade
im... |
#!/usr/bin/env python
from future.backports.urllib.parse import splitquery
from future.backports.urllib.parse import unquote
from future.backports.urllib.parse import urljoin
from future.backports.urllib.parse import urlparse
from future.moves.urllib.parse import parse_qs
import hashlib
import logging
import os
import... |
from __future__ import absolute_import
from __future__ import print_function
# #START_LICENSE###########################################################
#
#
# This file is part of the Environment for Tree Exploration program
# (ETE). http://etetoolkit.org
#
# ETE is free software: you can redistribute it and/or modify... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals, division, print_function, absolute_import
import sys
import os
import datetime
import logging
from contextlib import contextmanager
import uuid as uuidgen
# first party
from ..query import Query
from ..exception import InterfaceError
from ..decorators im... |
import logging
import os
from .. import Path
from materials_commons.api import get_all_templates, get_project_by_id
from materials_commons.api import File as FileRecord
from ..common.utils import normalise_property_name
from ..common.worksheet_data import ExcelIO
from ..common.metadata import Metadata
from ..common.Mc... |
__author__ = 'bptripp'
from os import listdir, makedirs
from os.path import join, isfile, basename, exists
import numpy as np
from scipy import misc
import string
import matplotlib
import matplotlib.pyplot as plt
def get_image_file_list(source_path, extension, with_path=False):
if with_path:
result = [jo... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2017 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-... |
#
# This file is:
# Copyright (C) 2018 <NAME> <<EMAIL>>
#
# MIT License
#
from . import utils
from . import gui
from . import history
from . import newwallet
from electroncash.i18n import _, language
from .uikit_bindings import *
from .custom_objc import *
# from ViewsForIB.h, WalletsStatusMode enum
StatusOffline... |
from client import client
from collections import defaultdict
from datetime import datetime
from exceptions import BaseFrameworkError
from typing import Union, Dict, List
import asyncio
import discord
import json
import key
import log
import os
import random
import socket
import time
import urllib
import youtube_dl
... |
# baselineTeam.py
# ---------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley... |
""" Intelligent energy component contains the IEC class, that includes several algorithms
for predicting consumption of a house, given historical data. It also contains an IECTester
class that can be used to test and provide results on multiple IEC runs """
from __future__ import absolute_import, division, ... |
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 14 10:12:03 2020
@brief: Library of ADI-styled Tkinter frames
@description:
Module containing modifications of the base Tkinter building blocks:
- Window
- Frame
As well as new templates which inherit from these blocks:
- adiConnectFra... |
#-------------------------------------------------------------------------------
# Name: GIS Viewer Attribution Evaluation
# Version: V_2.0
# Purpose: Produce report for installation geodatabase detailing data attribution
#
# Author: <NAME>
#
# Created: 2018/01/26
# Last Update: 2018/03/22
# Des... |
#!/usr/bin/python
#
# Copyright (c) 2012 <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, copy, modify... |
import importlib.util
import inspect
import hashlib
import logging
from collections import OrderedDict
from decimal import Decimal
import datetime
import http.client
import glob
import socket
import boto3
from mock import Mock, MagicMock
import pytest
from lumigo_tracer import lumigo_utils
from lumigo_tracer.lumigo_u... |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""software_license
# This program 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 2 of the License, or
# (at your option) any later version.
#
# T... |
import discord
import asyncio
import random
import pekofy as peko
import replies
# import os - use this if you want to use the for filename method instead of the bot.load_extension
import datetime
from discord.ext import commands, tasks
from itertools import cycle
from discord.ext.commands import CommandNotFou... |
import torch
import cv2
import os
import datetime
import numpy as np
import pandas as pd
from tqdm import tqdm
from network.utils import bbox_iou
from datetime import datetime
import multiprocessing
from scipy.optimize import linear_sum_assignment
class Track:
'''
Track is the class of track. it contains all ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.