text
stringlengths
6.04k
39.5k
# cant use future annotations or it doesnt work with dict/list # from __future__ import annotations import time from betfairlightweight.resources.bettingresources import MarketBook import numpy as np from typing import Dict, Optional, Any, Union from datetime import datetime, timedelta import logging from collections ...
from ..kernel import core from ..character import characterKernel as ck from functools import partial from ..status.ability import Ability_tool from . import globalSkill from .jobclass import cygnus from .jobbranch import thieves from math import ceil from typing import Any, Dict class ShadowBatStackWrapper(core.Stack...
import getopt import os import sys import matplotlib import matplotlib.pyplot as plt import numpy as np import pylab from matplotlib.font_manager import FontProperties from matplotlib.ticker import LinearLocator from numpy import double OPT_FONT_NAME = 'Helvetica' TICK_FONT_SIZE = 24 LABEL_FONT_SIZE = 28 LEGEND_FONT_...
# Copyright 2015 PerfKitBenchmarker 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...
# -*- coding: utf-8 -*- import os import numpy as np import random import torch from modified_tokenizers import get_tokenizers import torch.utils.data from tqdm import tqdm import json try: import cPickle as pickle except ImportError: import pickle def read_imdb_files(opt, filetype): all_labels = [] ...
import numpy as np from scipy import signal from scipy.io import wavfile from scipy.stats import linregress, kurtosis from .process import make_filterbank, A_weighting def revtime(ir_input, method='rt20', fs=48000, tmax=3.0): ''' Calcula el tiempo de reverberacion y la integral de Schroeder a partir de la resp...
from django.conf import settings from django.core.urlresolvers import reverse_lazy from django.db.models import Count from django.http import Http404 from django.shortcuts import render, redirect, get_object_or_404 from django.views.generic import View, TemplateView, ListView from django_filters.views import FilterVie...
import shlex import email, smtplib, ssl from enum import Enum import numpy as np from scipy.signal import welch from threading import Thread import subprocess import configparser import logging import exifread import os from datetime import datetime import time from threading import Timer import signal import sys from...
import argparse import pytorch_lightning as pl from pytorch_lightning.loggers import CSVLogger import socket import yaml from torch.utils import data import logging from datetime import datetime import os import torch from tqdm import tqdm import jsonlines from sklearn.cluster import AgglomerativeClustering import nump...
from __future__ import unicode_literals import openpyxl as xl from openpyxl import Workbook from openpyxl.styles import PatternFill, Font, Alignment import datetime import random import seaborn as sns import sys sys.tracebacklimit = 0 class OrgTable: def __init__(self, source, output): # Define Variables ...
import tensorflow as tf import tensorflow.contrib.layers as layers import numpy as np def _mlp_branching(hiddens_common, hiddens_actions, hiddens_value, independent, num_action_branches, dueling, aggregator, distributed_single_stream, inpt, num_actions, scope, reuse=False): with tf.variable_scope(scope, reuse=reus...
from __future__ import absolute_import, division, print_function import six.moves.cPickle as pickle import glob import os import dxtbx.tests.imagelist import pytest @pytest.mark.parametrize( "image", dxtbx.tests.imagelist.smv_images + dxtbx.tests.imagelist.tiff_images + dxtbx.tests.imagelist.cbf_mult...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 10 14:46:37 2019 Elementos de pórtico espacial com 6 graus de liberdade por nó. Treliça desacoplada da viga e torção desacoplada de ambos. Eixos locais: i, j, k Eixos globais: X, Y, Z Parei nas funções de forma! @author: markinho """ import symp...
# # (c) 2015 Kaminario Technologies, Ltd. # # This software is licensed solely under the terms of the Apache 2.0 license, # the text of which is available at http://www.apache.org/licenses/LICENSE-2.0. # All disclaimers and limitations of liability set forth in the Apache 2.0 license apply. # from __future__ import ab...
import sys import codecs import os import json import re from collections import OrderedDict from xml.dom import minidom import kindred import bioc from future.utils import native def loadEntity(filename,line,text): assert line[0] == 'T', "ERROR in %s. Entity input should start with a T" % filename split = line.s...
# This file is part of Peach-Py package and is licensed under the Simplified BSD license. # See license.rst for the full text of the license. class QuasiInstruction(object): def __init__(self, name, origin=None): super(QuasiInstruction, self).__init__() self.name = name self.line_number ...
''' Helper functions to select and combine data ''' from __future__ import division import logging import re import os from collections import Iterable import numpy as np import tables as tb import numexpr as ne from tqdm import tqdm from beam_telescope_analysis.telescope.telescope import Telescope from beam_telesc...
#!/usr/bin/env python # coding: utf-8 # # Description # Suggestion from <NAME> (7/15/21) # # The "Regularized Incomplete Beta" function I(x,a,b) tells you the probability that your population mean is <= x given a positive samples and b negative samples # 8:53 # for example, if you've got 100 samples and 9 are positi...
# Code inspired by the minimal PPO implementation of <NAME> https://github.com/nikhilbarhate99/PPO-PyTorch import glob import os import sys try: sys.path.append(glob.glob('PythonAPI/carla/dist/carla-*%d.%d-%s.egg' % ( sys.version_info.major, sys.version_info.minor, 'win-amd64' if os.name =...
import os import time import json import logging import argparse import sys sys.path.append("libs") from utils import Init_logging from utils import PiecewiseSchedule import numpy as np import pandas as pd import tensorflow as tf from tensorflow.keras import optimizers from tensorflow.keras import call...
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module provides the tools used to internally run the astropy test suite from the installed astropy. It makes use of the `pytest` testing framework. """ from __future__ import (absolute_import, division, print_function, uni...
import numpy as np import os import sys import math from Find_neighbors import find_neighbors def atoms_dist(a, b, latt_mat): """ Return the distance between atoms a and b. Arguments: ------------------- a, b : array or list, dim = (1, 3) Coordinates of two atoms in the cell. latt_mat : a...
from __future__ import print_function import argparse import torch import torch.utils.data import time from torch import nn, optim from torch.nn import functional as F from torch.nn import LeakyReLU from torchvision import datasets, transforms from torchvision.utils import save_image from torchsummary import summary fr...
import dash import dash_core_components as dcc import dash_html_components as html import dash_bootstrap_components as dbc from dash.dependencies import Input, Output import plotly.express as px import altair as alt from altair import datum import pandas as pd from preprocess import * import plotly.graph_objects as go ...
####################################################################### # Copyright (C) 2017 <NAME>(<EMAIL>) # # Permission given to modify the code as long as you keep this # # declaration at the top # ##############################################################...
# pylint: disable=missing-docstring import tensorflow as tf tf_dtype = tf.as_dtype('float32') def spsa(model_fn, x, y, eps, nb_iter, clip_min=None, clip_max=None, targeted=False, early_stop_loss_threshold=None, learning_rate=0.01, delta=0.01, spsa_samples=128, spsa_iters=1, is_debug=False): """T...
from __future__ import annotations from typing import List, Dict, Optional, Any, Tuple from pydantic import BaseModel, Field class UserProfileExtensions(BaseModel): privilegeOfCommentOnUserProfile: Optional[int] customTitles: Optional[Tuple] class AvatarFrame(BaseModel): status: Optional[int] owners...
import networkx as nx import numpy as np import copy import imageio from matplotlib import pyplot as plt import math class IIS: def __init__(self, digraph, imageout_size): # graph es un networkx.DiGraph con un nodo por pixel de la imagen y arcos dirigidos entre los pixeles vecinos. # Cada arco deb...
""" Title: Low-light image enhancement using MIRNet Author: [<NAME>](http://github.com/soumik12345) Date created: 2021/09/11 Last modified: 2021/09/15 Description: Implementing the MIRNet architecture for low-light image enhancement. """ """ ## Introduction With the goal of recovering high-quality image content from i...
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-节点管理(BlueKing-BK-NODEMAN) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import glob import numpy as np from torch.utils.data import Dataset class FlyingThings3D(Dataset): def __init__(self, options, partition="test"): self.options = options self.partition = partition if self.partition == "train": self....
################################################################################ # Copyright (C) 2002-2012 <NAME> <<EMAIL>> # # 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 ...
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Streaming Language Modeling task that loads corpora in plaintext and performs on-the-fly tokenization. """ import l...
import warnings from typing import Union, Optional from utils.warnings import custom_warn warnings.showwarning = custom_warn from jax import partial, value_and_grad import jax.numpy as np from jax_optimise.scheduling import make_schedule from jax_optimise.list_util import list_neg, list_conj, list_add_prefactor, li...
import rclpy from rclpy.node import Node import threading from threading import Thread, Lock import sys import time from random import random from workcell_interfaces.srv import * from workcell_interfaces.msg import * from pathlib import Path from ot2_workcell_manager_client.retry_api import * # Transfer api import fr...
import os import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import pandas as pd import h5py from tqdm import tqdm from skimage.util import img_as_ubyte from sklearn.metrics import pairwise_distances from utils import set_up_environment, prewhiten, l2_normalize from att...
#from dendropy import * import numpy as np import heapq import treeswift import itertools from os.path import expanduser,isfile # store bracket open/close for convenience in label parsing BRACKET = { '[': ']', # square bracket '{': '}', # curly bracket "'": "'", # single-quote '"': '"', # double-quote ...
# !/usr/bin/env python # coding=utf-8 # @Time : 2019-07-04 11:12 # @Author : <EMAIL> # @File : hparams.py import os import ast import re import yaml import json import logging import collections import argparse import traceback from copy import deepcopy from ast import literal_eval from pathlib import Path fro...
from flask import Flask, render_template, request, flash, redirect, session from flask_session import Session import config from binance.client import Client from binance.enums import * from flask_socketio import SocketIO import math from datetime import datetime import requests import websocket, json app...
from typing import NoReturn import numpy from fractions import Fraction from cryspy.A_functions_base.function_1_strings import \ transform_string_to_r_b, transform_r_b_to_string from cryspy.A_functions_base.function_2_space_group import \ get_shift_by_centring_type, is_good_for_mask from cryspy.B_parent_classes...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ############################################################################### # 128T session table analysis tool # 26-Sep-2020 <NAME> ############################################################################### __version__ = "0.6" import sys import json import reque...
from pathlib import Path from typing import Dict, Iterable, List, NamedTuple, Optional, Tuple from attr import attrib, attrs from immutablecollections import ( ImmutableDict, ImmutableSet, immutabledict, immutableset, ) from jinja2 import Template from rdflib import RDF, Graph, Namespace from rdflib.te...
import torch.nn as nn import torch import losses import alt_feedback_layers def get_task_dimensions(task): """ Get the number of channels, channel size (height * width) and number of classes of a dataset. :param task: str, '*MNIST' or 'CIFAR*' for any string * :return: int, int, int; in_channels, inpu...
import matplotlib.pyplot as plt import time import math import seaborn as sns import functools import operator import pandas as pd from scipy import misc from scipy import ndimage from functools import lru_cache from scipy import stats import numpy as np import imutils import cv2 as cv import pickle from sklearn.neig...
# Copyright 2020 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS", WIT...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 29 16:27:56 2019 @author: skoebric """ import pandas as pd import numpy as np import json xl = pd.ExcelFile('/Users/skoebric/Documents/NREL-GitHub/dGen/new_mexican_tariffs.xlsx') sheet_names = xl.sheet_names sheet_names.pop(0) XCHNG_RATE = 19 #%%...
import re import itertools import random import multiprocessing as mp from collections import Counter from pyfaidx import Fasta import numpy as np from eskedit import GRegion import os import datetime import pandas as pd from os import listdir from os.path import isfile, join, splitext from scipy.stats import multinomi...
#!/usr/bin/env python import rosgraph ACTION_FILTER = ['goal', 'cancel'] ACTION_FILTER2 = ['status', 'result', 'feedback'] def get_namespace(name): try: return rosgraph.names.namespace(name) except ValueError as ex: print("Error: Name Invalid") print(ex) return "" class Int...
import gym import math import random import numpy as np from collections import namedtuple from itertools import count import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import bisect import os import argparse import numpy.random as rn from irl import irl from mdp import Froz...
import matplotlib.pyplot as plt import numpy as np import random import copy import math import operator plt.ion() plt.figure(figsize=(10, 5)) def plotTSP(generation, path, points, path_distance, save, num_iters=1): """ generation: The generation number to display path: List of lists with the different orders ...
# # Copyright (c) 2020 IRI, Columbia University # Licensed under the MIT License (https://opensource.org/licenses/MIT) # from typing import Dict, Tuple, List, Optional, Union, Final, Any import sys import io import os import re import json import traceback import pathlib import zipfile import subprocess import tempfile...
# IMPORTS from tkinter.filedialog import askopenfilename import json import importlib import threading import time from tabulate import tabulate import numpy as np import matplotlib.pyplot as plt import os import shutil import webbrowser from wikipedia import wikipedia import colorama from termcolor import cprint from ...
import numpy as np from multiprocessing import Pool import math import time from pero_ocr.utils import compose_path from .layout import PageLayout, RegionLayout, TextLine from pero_ocr.document_ocr import crop_engine as cropper from pero_ocr.ocr_engine import line_ocr_engine from pero_ocr.layout_engines.simple_region...
#!/usr/bin/env python3.7 # -*- coding: utf-8 -*- import argparse import hashlib import json import math import os import re import requests import signal import struct import sys import threading import time import types from bilibili import Bilibili bundle_dir = os.path.dirname(sys.executable) if getattr(sys, "froze...
from polygon_check import is_inside_polygon from ColorConverter import BGR_to_CMYK, BGR_to_HSV import numpy as np import mediapipe as mp import cv2 from sklearn.cluster import DBSCAN, KMeans import pdb from matplotlib import pyplot as plt from UV_utils import uv_coords, uv_map, keypts import math import colorsys import...
from collections import defaultdict from datetime import datetime import statistics from itertools import chain from step_project.common.table.steps import TableStep from zci_bio.sequences.steps import SequencesStep from zci_bio.sequences.fetch import do_fetch_sequences from zci_bio.utils.extract_data import ExtractDat...
################################################################## ## ## file: sorngen_writeToFile.py ## ## (c) 2018/2019 <NAME>, <NAME> ## University of Bremen ## ################################################################# ## import packages import string import sys import sorngen_syntaxTree as sst import r...
#!/usr/bin/env python import mock import pytest import sys import garecovery.recoverycli from .util import * # Patch os.path.exists so that it returns False whenever asked if the default output file exists, # otherwise all tests will fail by default def path_exists(filename): if filename == garecovery.clargs.D...
import torch.nn.functional as F import torch.nn as nn import torch class ConvLSTMCell(nn.Module): def __init__(self, input_dim, hidden_dim, kernel_size, bias): """ Initialize ConvLSTM cell. Parameters ---------- input_dim: int Number of channels of input tensor....
#!/usr/bin/env python # # Copyright 2019 DFKI GmbH. # # 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, merg...
import autograd.numpy as npa import scipy.sparse as sp import matplotlib as mpl mpl.rcParams['figure.dpi']=100 import matplotlib.pylab as plt from .constants import * from .primitives import sp_solve, sp_mult, spsp_mult from .derivatives import compute_derivative_matrices, compute_derivative_matrices_3D from .utils im...
#!/usr/bin/env python ''' Permutation-invariant cost for audio source separation. Based on Kolbaek et al. (2017) manuscript. Replicates the CNN and dense network from the paper, alongside an alternative, smaller CNN architecture. Permutation-invariant training (PIT) aims to overcome the limitation that the outputs of ...
"""Methods for statistical analysis with a time-dependent GEV distribution. The main reference for this code is the book “An Introduction to Statistical Modeling of Extreme Values” by <NAME> (2001). The heart of this library is the function negative_log_likelihood, which is intended to be used for a maximum likelihoo...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """A module that implements the "theanolm score" command. """ import sys import logging import numpy import theano from theanolm import Network from theanolm.backend import TextFileType, get_default_device from theanolm.parsing import ScoringBatchIterator from theanolm....
"""This module contains overloaded PyQT widgets. By overloading the base widgets, custom attributes and behaviour can be defined.""" import datetime import sys from typing import List, Tuple, Union, TypeVar import PyQt5.QtWidgets as QtWidgets from PyQt5 import QtGui, QtCore Widget = TypeVar('Widget', bound=QtWidget...
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ Detectron2 training script with a plain training loop. This script reads a given config file and runs the training or evaluation. It is an entry point that is able to train standard models in detectron2. In order to let o...
import glob import math import re from collections import Counter from concurrent.futures import ThreadPoolExecutor from multiprocessing.dummy import Pool as ThreadPool from nltk import ngrams from nltk.corpus import stopwords from nltk.corpus import stopwords from numpy import concatenate as np_concatenate f...
import threading import argparse import requests import random import time import sys class Instaboom: s = requests.session() def __init__(self, proxy): self.s.headers = { 'accept-encoding': 'gzip, deflate, br', 'accept-language': 'en-US,en;q=0.9', 'Referer': 'https://www.instagram.com', 'Origin': 'htt...
#!/usr/bin/env python """ Description of the sticky end concept and what does the marking mean. what is the reaction matrix and so on .... Copyright 2013 <NAME> and <NAME> version: 0.3 """ import argparse import logging import multiprocessing import os import re import shutil import subprocess import sys import te...
""" .. module:: representations :synopsis: Contains functions to convert between different representations of the taxi world. Functions are of the form x_to_y where x and y are represenation formats, from the list below: env - the actual TaxiWorld simulator class itself, holds more than just the current stat...
import math import torch from torch import nn from torch.autograd import Variable from time import time import torch.nn.functional as F from pytorch_ops.losses.cd.cd import CDModule from pytorch_ops.losses.emd.emd import EMDModule from pytorch_ops.sampling.sample import FarthestSample import pointnet2 as Pointnet #####...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: disable=E1101 # pylint: disable=E0611 # pylint: disable=E0401 """Gathers data from dynamodb database and plots it to a Folium Map for display. This is the main component of the visualization tool. It first gathers data on all of the segment stored in the...
#-*- coding: utf-8 -*- import tkinter import io from PIL import Image,ImageTk import threading import time import random Unit_x_cnt=40 Unit_y_cnt=50 Unit_l=10 Canvas_wide=Unit_x_cnt*Unit_l Canvas_hight=Unit_y_cnt*Unit_l Option_region_wide=300 Win_interval=4 Option_region_x_offset=Win_interval+Canvas_wide+Win_interva...
import ctypes as ct import numpy as np import scipy.optimize import warnings import sharpy.aero.utils.mapping as mapping import sharpy.utils.cout_utils as cout import sharpy.utils.solver_interface as solver_interface from sharpy.utils.solver_interface import solver, BaseSolver import sharpy.utils.settings as settings ...
#!/usr/bin/python3 # coding=utf8 # Date:2021/04/20 # Author:Aiden import sys import cv2 import math import rospy import threading import numpy as np from threading import Timer from std_srvs.srv import * from std_msgs.msg import * from sensor_msgs.msg import Image from warehouse.srv import * from warehouse.msg import...
import curses import os import logging from utilities import * from storage import * import string import webbrowser # global variables dump = None max_page_history_length = 100 # change cwd abspath = os.path.abspath(__file__) dname = os.path.dirname(abspath) os.chdir(dname) # method to tell you how I feel def statu...
import os import torch import json import open3d import toolz import numpy as np from PIL import Image from tqdm import tqdm, trange from scipy.ndimage import map_coordinates from misc.post_proc import np_coor2xy, np_coorx2u, np_coory2v from misc.panostretch import pano_connect_points from eval_general import layout_2...
# -*- coding:utf-8 -*- """ decode xml file of Pascal Voc annotation write a xml file about pascal voc annotation. """ import os import logging from lxml import etree from lxml.etree import SubElement from .tools import bb_intersection_over_union as iou logger = logging.getLogger(__name__) def get_first_node_info(n...
from . import utils as utils from . import statistics as stats import traceback import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib.colors as mc import logging logger = logging.getLogger(__name__) def change_brightness(color, amount): if amount is None: return impo...
import os import random import re from collections import defaultdict from pathlib import Path import intervals as I from config import Config # relation_labels = { '发生事故': 'Accident', # '驾驶': 'Drive', # '搭乘': 'Take', # '所有': 'Own', # '实...
# -*- coding: utf-8 -*- """ Purpose: (CZE-ZCU-FAV-KKY) Liver medical project Author: <NAME> Email: <EMAIL> Created: 2014/02/22 Copyright: (c) <NAME> """ import logging logger = logging.getLogger(__name__) import numpy import scipy import scipy.ndimage from scipy import stats # import matplotli...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # PCMSolver documentation build configuration file, created by # sphinx-quickstart on Mon Oct 26 15:18:26 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 27 2020 @author: <NAME> """ import pysam import pandas as pd import numpy as np import sys import os import argparse from collections import Counter import math import random src = os.path.join(os.path.dirname(os.path.abspath(__file__))) if not os...
import struct from enum import IntEnum from typing import BinaryIO from .utils import sread # The highest byte of the opcode is flags OP_FLAG_MASK = 0xFF000000 # Requirements op codes class ExprOp(IntEnum): OP_FALSE = 0 # Unconditionally false OP_TRUE = 1 # Unconditionally true OP_IDENT = 2 # Match ...
""" © <NAME>, 2020 """ # Generel import timeit, os from datetime import datetime # Torch import torch as T import torch.nn.functional as F from torch.distributions import Categorical from collections import deque # Tensorboard from tensorboardX import SummaryWriter # Hilfsklassen & -Funktionen from bin.enviorment i...
#!/usr/bin/env python # coding=utf-8 import os import sys import argparse import logging import intervaltree import param import re import shlex import subprocess from collections import Counter import gc from Bio import SeqIO from time import time from collections import defaultdict from multiprocessing import Pool fr...
# -*- coding: utf-8 -*- import math import operator from dataclasses import dataclass from functools import reduce from typing import * import numpy as np from .typing_ import * __all__ = [ 'MetricStats', 'MetricCollector', 'GeneralMetricCollector', 'ScalarMetricCollector', 'ScalarMetricsLogger', ] @da...
from keras.models import Sequential from keras.layers import Conv2D, ZeroPadding2D, Activation, Input, concatenate from keras.models import Model from keras.layers.normalization import BatchNormalization from keras.layers.pooling import MaxPooling2D, AveragePooling2D from keras.layers.merge import Concatenate from ker...
# coding: utf-8 # ## Visualize heatmaps of differentially expressed genes # # Visualize a heatmap of the differentially expressed genes using the original E-GEOD-51409 expression data versus the simulated expression data for the same experiment. # # Specifically, we are comparing the pattern of the top 14 DEGs foun...
import sys print(sys.argv) def generateParts(pivots, f, makeSmaller, startRange, endRange, step, skipStart=-1, skipEnd=-1, extraIndent = ""): for p in range(startRange, endRange, step): if p == 1: f.write(extraIndent + "\t\t\tint part"+ str(p) + " = p"+str(p) + " - begin;\n") elif p == pivots+1: if makeSm...
#!/usr/bin/env python3 import argparse import json import random import shlex from os import PathLike from datetime import datetime from pathlib import Path from string import Template from subprocess import DEVNULL, run from threading import Thread from typing import Callable, Dict, Generator, List, Tuple, Union, Any...
import plotly.express as px import pandas as pd import plotly as py import plotly.graph_objs as go from plotly.io import * import os,collections,argparse,math import numpy as np from scipy.interpolate import make_interp_spline def get_args(): parser = argparse.ArgumentParser() parser.add_argument('--outPath', ...
import os, time import re from datetime import datetime import paramiko import xml.etree.ElementTree as ET from scripts.report_dict import REPORT_DICT current_report_result = REPORT_DICT gpo_dict = {} # Done def application_control_audit(root): # create the flags for the file extensions exe_flag = 0 ps1...
# -*- coding: Latin-1 -*- """ Created on Tue May 1 10:54:23 2018 Se hacen gráficos temporales con la librería matplotlib Tipos 1) XY distingiendo medidas la situación de las medidas piezométricas 2) XY en que se asocia al código principal otras series relacionadas en el mismo subplot @author: solis "...
from __future__ import annotations import operator from cmath import sqrt from typing import TYPE_CHECKING, Union, List, Tuple, Optional from enum import Enum import cadquery if TYPE_CHECKING: from .key import Key from src.cfg.debug import DEBUG # ---------------------------------------------------------------...
# -*- coding: utf-8 -*- from sqlalchemy import Column, DateTime, Float, Index, Integer, \ SmallInteger, String, Table, Text, text, \ ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, backref # mother class of every ...
# Turta IoT HAT Helper for Raspbian # Distributed under the terms of the MIT license. # Python Driver for Broadcom / Avago APDS-9960 Ambient Light, Color, Proximity & Gesture Sensor # Version 1.01 # Updated: July 14th, 2018 # Visit https://docs.turta.io for documentation. import time from enum import IntEnum from sm...
#!/usr/bin/python # ============================================================================== # Copyright 2018 The Paragon 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 ...
# Copyright (c) OpenMMLab. All rights reserved. from abc import abstractmethod from copy import deepcopy from functools import partial import mmcv import torch import torch.distributed as dist import torch.nn as nn from mmgen.models.builder import MODULES from .pixelwise_loss import (DiscretizedGaussianLogLikelihoodL...
import pytest from .. import String from ruption import * from array import array from take import take def test_instance_creation(): assert str(String()) == '' assert str(String.new()) == '' def test_equality(): assert String() == String.new() == '' assert String.from_str('123') == '123' assert S...