text
stringlengths
6.04k
39.5k
from __future__ import absolute_import import logging from copy import copy import numpy as np import scipy.ndimage as nd from .reference import generate_reference from .reference_q4 import generate_reference_Q4, find_elm_borders_mesh, normalized_zero_mean from ..IO.image_stack import ImageStack from ..elements.b_sp...
from .base import WormCriteria, Ux, Uy, Uz import numpy as np import homog as hm from worms.util import jit from worms.merge.wye import wye_merge @jit def numba_line_line_closest_points_pa(pt1, ax1, pt2, ax2): C21 = pt2 - pt1 M = hm.numba_cross(ax1, ax2) m2 = np.sum(M**2) R = hm.numba_cross(C21, M / m2) ...
import math import tkinter import re root = tkinter.Tk() class FError(Exception): pass class MyCalculator(): def __init__(self, width, height, title): # 设置窗体大小 root.maxsize(height=height, width=width) root.minsize(height=height, width=width) root.title(title) ...
''' PlotTrace.py Executable for plotting trace stats of learning algorithm progress, including * objective function (ELBO) vs laps thru data * number of active components vs laps thru data * hamming distance vs laps thru data Usage (command-line) ------- python -m bnpy.viz.PlotTrace dataName jobpattern [kwargs] ''' f...
# Copyright (c) 2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Test the `grid` module.""" import logging import numpy as np from numpy.testing import assert_array_almost_equal import pytest import scipy from metpy.cbook import get_te...
# # # # #The demo for this script is in EngScriptDemo.py in the Examples folder. ######################################################################## # # # # your code goes here import polishNotation2 #polishNotation2.isSeparatedBy from pyparsing import OneOrMore, nestedExpr import polyglotCodeGenerator #The on...
# -*- coding: utf-8 -*- # Copyright 2019 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """The test service unit tests.""" from __future__ import print_function import contextlib import os import shutil import mock ...
# -*- coding: utf-8 -*- """ Created on Thu Jun 30 10:34:37 2016 @author: slauniai & khaahti """ import numpy as np import pandas as pd import os import matplotlib.pyplot as plt from soilprofile import gwl_Wsto, gwl_Ksat, nan_function eps = np.finfo(float).eps # machine epsilon workdir = os.getcwd() def read_soil_g...
""" Firefox Desktop Churn and Retention Cohorts Tracked in Bug 1226379 [1]. The underlying dataset is generated via the telemetry-batch-view [2] code, and is generated once a day. The aggregated churn data is updated weekly. Due to the client reporting latency, we need to wait 10 days for the data to stabilize. If th...
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- """Defines helpful utilities for summarizing and uploading data.""" import logging import numpy as np import scipy as sp from scipy import...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Aqueous Helgeson Equation of State with Bromley activity model This file implements an aqueous equation of state (EOS) named the Helgeson EOS with Bromley activity model. It is specifically the version of the that EOS that is described in Jager et. al. (2003), which is...
# -*- coding: utf-8 -*- # Copyright (c) 2013-2016 The siganalysis developers. All rights reserved. # Project site: https://github.com/questrail/siganalysis # Use of this source code is governed by a MIT-style license that # can be found in the LICENSE.txt file for the project. """Provide Python routines for signal anal...
from __future__ import division, print_function from warnings import warn import torch import numpy as np class Compose(object): """Composes several transforms together. Args: transforms (list of ``Transform`` objects): list of transforms to compose. Example: >>> transforms.Compose([ ...
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license import base64 import enum import io import struct import dns.enum import dns.exception import dns.immutable import dns.ipv4 import dns.ipv6 import dns.name import dns.rdata import dns.rdtypes.util import dns.tokenizer import dns.wire # Until...
from collections import defaultdict import random from math import ceil import json import pickle def general_results(): with open('data/dependencies.p', 'rb') as f: trees = pickle.load(f) with open('data/negation_concepts.json', 'r') as f: annotated_concepts = json.load(f) conjunct_concep...
""" Autopsy Forensic Browser Copyright 2019-2021 Basis Technology Corp. Contact: carrier <at> sleuthkit <dot> org 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...
''' This module is home to the IssuesForm and IssuesFormResult classes. @author: <NAME> ''' import clr import i18n import utils from utils import sstr from buttondgv import ButtonDataGridView from issuecoverpanel import IssueCoverPanel from cvform import CVForm clr.AddReference('Microsoft.VisualBasic'...
# Symmetrical communication library for Micropython devices # (c) 2021 Ste7an, <NAME> # If you use this, or parts of this, please give us credits. import struct import sys try: from micropython import const # _COLS = const(0x10): underscore saves memory by not posting const outside lib except: # Polyfill. ...
"""database.py - database upload for ruffus pipelines ========================================================= Reference --------- """ import re import os import sqlite3 import sqlalchemy from cgatcore import database as database import cgatcore.experiment as E from cgatcore.iotools import snip, touch_file from cgat...
#!/usr/bin/env python3 import argparse, io, logging, os, re, subprocess, shutil, sys, tempfile from tqdm import tqdm from shlex import quote import pysam import vcf from npsv.npsv_options import * from npsv.variant import Variant, variant_descriptor, write_record_to_indexed_vcf from npsv.feature_extraction import ( ...
#AUTHOR: <NAME> , <EMAIL> from Scripts.BEseqType import * from Bio.Seq import Seq import csv from Scripts.baseEditorsTable import CBElist, CBElistMinor, ABElist, ABElistMinor, BEletter from Scripts.transverse import SpecialCleanMatch,origPro def importSNPS(SNPfile): rslts=[] with open(SNPfile,"r") as ...
#!/usr/bin/env python2 # Copyright 2016 <NAME>. 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 """ builtins.py - Metadata ...
from itertools import cycle, combinations from copy import deepcopy from typing import Tuple from huffman_tree import calculate_all_push_up_trees, calculate_all_bfs_trees, calculate_all_random_trees from ego_trees import calculate_all_locally_balanced_egotrees, calculate_all_ego_balanced_egotrees import numpy as np f...
#!/usr/bin/env python import struct from io import StringIO # setup.py requires that these be defined, and the OnceAndOnlyOnce # principle is used here. This is the only place where these values # are defined in the source distribution, and everything else that # needs this should grab it from here. __version__ = "1...
from dsmpy.window import Window from dsmpy.windowmaker import WindowMaker from dsmpy.dataset import Dataset from .stream import read_sac import numpy as np import os import glob import sys import time import matplotlib.pyplot as plt import warnings class InputFile: """Input file for IterStack. Args: i...
import os import numpy as np import pandas as pd import seaborn as sns import subprocess import re import pysam from itertools import product import matplotlib.pyplot as plt from matplotlib import rcParams from matplotlib.ticker import MultipleLocator import math import scipy.stats as stats from scip...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # encoding: utf-8 # Copyright 2014 Orange # # 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 # # Un...
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil; coding: utf-8 -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms...
# Created on 07-01-2018 15:26 # by <NAME> # ask for password from mentor when the application is first started import getpass from hashlib import sha512 from pathlib import Path local_db_dir = Path.home().parents[0] / 'Public' / 'MSEIP_DB' pass_file = './pass_<PASSWORD>' print('DB storage location: ', str(local_db_d...
from tkinter import * c = 0 janela = Tk() janela.title('QUIZ SUSTENTABILIDADE') def result(): global c q10 = int(en14.get()) if q10 == 1: c += 1 if 7 <= c <= 10: lb69['text'] = 'VOCÊ ACERTOU {} QUESTÕES. PARABÉNS VOCÊ ENTENDE TUDO DE SUSTENTABILIDADE.'.format(c) elif 4 <= c <= 6: ...
#!/usr/bin/env python3 import os import shutil from datetime import datetime, timedelta import sys import serial import serial.tools.list_ports import time import blkinfo import re import argparse blk = blkinfo.BlkDiskInfo() TEMP_MOUNT_MINI = "~/mnt/mini" TEMP_MOUNT_FLASH = "~/mnt/flash" # Expand mount path if they...
# encoding: utf-8 """ @author: liaoxingyu @contact: <EMAIL> """ import torch from torch import nn import copy import pickle import math from torch.nn import functional as F from .backbones.resnet import ResNet, BasicBlock, Bottleneck from .backbones.senet import SENet, SEResNetBottleneck, SEBottleneck, SEResNeXtBott...
import logging import os import threading from queue import Queue import cv2 import glob import json import math import numpy as np import time from inspect import stack from pathlib import Path from enum import Enum from typing import Optional, Any, Tuple, Callable from urllib.parse import urlparse from datetime impo...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Dec 11 00:45:08 2018 rnbc RN with batch + classifier @author: mimbres """ import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.optim.lr_scheduler import StepLR from torch.backends import cud...
from keras.layers import Input # from keras.layers.convolutional import Conv2D from keras.layers import Conv2D, LeakyReLU, Activation, Reshape, BatchNormalization # from keras.layers.core import Activation, Reshape # from keras.layers.normalization import BatchNormalization from keras.models import Model from keras imp...
import numpy as np import tensorflow as tf import datetime import argparse import pdb import os import pickle import json import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers.core import Dense from keras.layers.core import Flatten from keras.layers.convolutional import Conv2D from ker...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 3 13:23:59 2021 @author: th """ import torch from torch.nn import ReLU, Linear, Softmax, SmoothL1Loss, Tanh, LeakyReLU from torch_geometric.nn import GCNConv, global_max_pool, global_mean_pool, SGConv, GNNExplainer, SAGEConv, GATConv, FastRGCNCon...
import numpy as np from collections import Counter from context import arkouda as ak from base_test import ArkoudaTest import pytest import random import string ak.verbose = False N = 100 UNIQUE = N//2 # test_strings = np.array(['These are', 'some', 'interesting', # '~!@#$%^&*()_+', 'sarrays'...
import numpy as np import pylab as plt from scipy.special import erf from scipy.integrate import simps from scipy.linalg import cho_solve #from ChoSolver import choSolve, choBackSubstitution def styblinsky(x): return (x[0]**4 - 16*x[0]**2 + 5*x[0] + x[1]**4 - 16*x[1]**2 + 5*x[1])/2. def rosenbrock(x): ...
import numpy as np import logging import unittest import os import scipy.linalg as LA import time from sklearn.utils import safe_sqr, check_array from scipy import stats from pysnptools.snpreader import Bed,Pheno from pysnptools.snpreader import SnpData,SnpReader from pysnptools.kernelreader import KernelNp...
from __future__ import print_function from sklearn.metrics.pairwise import cosine_similarity from sklearn.decomposition import TruncatedSVD from sklearn.pipeline import make_pipeline from sklearn.preprocessing import Normalizer from sklearn import metrics from sklearn.decomposition import TruncatedSVD from skl...
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2007, <NAME> <<EMAIL>> # Copyright 2018, <NAME> <<EMAIL>> from twisted.internet import protocol from twisted.internet.task import LoopingCall from twisted.protocols.basic import LineReceiver from twisted.python import failur...
from django.db.models import Count, Q from rest_framework import views, viewsets, permissions, generics, status from rest_framework.decorators import action from rest_framework.response import Response import random from revibe.pagination import CustomLimitOffsetPagination from revibe.permissions.scopes.third_party i...
from __future__ import absolute_import from __future__ import with_statement import logging import os import sys from functools import wraps try: from multiprocessing import current_process except ImportError: current_process = None # noqa from mock import patch from nose import SkipTest from celery import...
import asyncio import enum import typing import traitlets import numpy as np import xarray import vaex import vaex.jupyter from .decorators import signature_has_traits from .traitlets import Expression import logging from .vendor import contextlib logger = logging.getLogger('vaex.jupyter.model') class _HasState(t...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. 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...
#!/usr/bin/env python #------------------------------------------------------------------------------- # Name: BayesianTracker # Purpose: A multi object tracking library, specifically used to reconstruct # tracks in crowded fields. Here we use a probabilistic network of # information to perform...
import hashlib from io import BytesIO from enum import Enum from mimblewimble.consensus import Consensus from mimblewimble.serializer import Serializer, EProtocolVersion from mimblewimble.crypto.commitment import Commitment from mimblewimble.crypto.secret_key import SecretKey from mimblewimble.crypto.signature import...
# -*- coding: utf-8 -*- import pytest from eventlet import sleep from eventlet.event import Event from mock import Mock, call, patch from nameko.exceptions import ConfigurationError from nameko.testing.utils import get_extension from slack import RTMClient from nameko_slackclient import constants, rtm def test_clien...
"""Clean, bundle and create API to load KSSL data The KSSL database is provided as a Microsoft Access database designed as an OLTP. The purposes of this module are: (i) to export all tables as independent .csv files to make it platform independent; (ii) to make it amenable to multi-dimensional analytical queries (OLAP...
import sublime import sublime_plugin import subprocess import urllib.request import urllib.error import os import time import json import random import threading import tempfile PERL_COMPLETE_EXE = "/Users/bbr/IdeaProjects/PerlParser/cmake-build-debug/PerlParser" PERL_COMPLETE_SERVER = "http://localhost:1234/" # Cons...
#!/usr/bin/env python # Copyright 2013-2019 <NAME>, <NAME> (<EMAIL>, <EMAIL>) # # 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 requir...
import re from os import path from collections import namedtuple from .classes.time_custom import Time_Custom from .classes.package import Package def say_hello(): '''Say hello when the program starts and advise the user they will be asked what information, if any, they would like displayed.''' print('Hel...
#!/usr/bin/env python3 from zencad import * T=2 ROOF_R=40 SPIKE_N = 8 LIGHT_R = 6 LIGHT_HOLES = rotate_array(SPIKE_N)(cylinder(r=LIGHT_R, h=T).left(ROOF_R-LIGHT_R-T).rotateZ(deg(360/8/2))) BORDER_T = 3 SPIKE_R1=3 SPIKE_R2 = ROOF_R - SPIKE_R1 - T NUT_HOLE1 = rotate_array(4)((cylinder(r=1,h=T)+cone(r1=1,r2=2,h=T/2).u...
#!/usr/bin/env python3 # # Copyright (c) 2016 <NAME> # # 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...
# -*- coding: utf-8 -*- # This script gathers all .i18n files and aggregates them as a pair of .h/.cpp # file. # In practice, it enforces a NFKD normalization. Because Epsilon does not # properly draw upper case letters with accents, we remove them here. # If compression is activated, texts are grouped by languages, a...
# -*- coding: utf-8 -*- from __future__ import print_function import warnings from collections import OrderedDict import six import torch from torch.nn import Module import torch.nn.functional as F from . import nn_fix, utils, quant # ---- helpers ---- def _get_kwargs(self, true_kwargs): default_kwargs = util...
from datetime import datetime from django.contrib.auth.models import User from django.contrib.auth.decorators import user_passes_test from django.db.models import F from django.shortcuts import render, redirect from emis.permissions import EmisPermission from historical_surveillance.models import District, School from...
import comet_ml import torch import torch.nn as NN import torch.nn.functional as F import torch.utils.data as data_utils import torch.distributions as D import deepracing_models.data_loading.proto_datasets as PD from tqdm import tqdm as tqdm import deepracing_models.nn_models.LossFunctions as loss_functions import deep...
import logging import asyncio import aiohttp import json log = logging.getLogger(__name__) GET = "GET" POST = "POST" DELETE = "DELETE" PUT = "PUT" async def async_none(): return None def get_id(_type, _id): fields = _id.split(':') if len(fields) >= 3: if _type != fields[-2]: log.deb...
""" Double-Linked List and Double-Linked Node Data Structures Copyright (c) 2021 <NAME> Notes ----- - Written and tested in Python 3.8.5. - Double-linked list class implementation using a double-list node class. - The search method returns always only the first occurrence (from the list head) of any duplicate data...
import re from collections import OrderedDict import numpy as np from kipoi_veff.external.concise.seqplotting_letters import all_letters # Had to copy from concise due to requirements # ----------------------------------------------------------------------- # # # Code adoped from https://github.com/kundajelab/drago...
""" Tests for the DogStatsAPI class. """ import logging import os import random import time import threading import nose.tools as nt from nose.plugins.skip import SkipTest from dogapi import DogStatsApi # Silence the logger. logger = logging.getLogger('dd.dogapi.stats') logger.setLevel(logging.ERROR) # # Test fi...
# coding=utf-8 python3.6 # ================================================================ # Copyright (C) 2019 * Ltd. All rights reserved. # license : MIT License # Author : haibingshuai  # Created date: 2019/10/29 15:19 # Description : # ===========================================================...
#!/usr/bin/env python # # font-awesome-to-png.py # # Exports Font Awesome icons as PNG images. # # Copyright (c) 2012-2013 <NAME> (http://odyniec.net/) # # Font Awesome - http://fortawesome.github.com/Font-Awesome # import sys, argparse from os import path, access, R_OK from PIL import Image, ImageFont, ImageDraw # ...
#!/usr/bin/env python3 # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with ...
""" Topic modeling related functionality. """ import csv from operator import itemgetter import os from typing import Any, Callable, List, Tuple import artm import matplotlib.pyplot as plt import numpy as np import pandas as pd from .parsing import parse_slice_line, parse_token_line def check_output_directory(outpu...
#!/home/rs2474/anaconda3/envs/imktData/bin/python import sys import os import time import numpy as np import pandas as pd import pyfaidx as px """ Convert fasta file to iMKT input files These are the requirements of the multi-FASTA files: 1. Sequences need to be protein-coding sequences (CDS) and aligned...
""" Functions which take a session and add or retrieve data to the db """ import datetime import pprint # noqa: F401 from seamm_datastore.util import parse_flowchart def _build_query(filter, obj): q = [] for key, value in filter.items(): q.append(getattr(obj, key).in_(value)) return q def add_...
""" Copyright 2020 The OneFlow 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 applicable law or agr...
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICEN...
import requests import numpy as np import sys from bokeh.layouts import row, column from bokeh.models import CustomJS, Slider, Text from bokeh.plotting import figure, output_file, show, ColumnDataSource from bokeh.io import output_notebook from bokeh.palettes import Spectral #from bokeh.models import LinearColorMapper ...
# Copyright 2020 Elelabs International 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 # Unless required by applicable law or agreed ...
# Copyright 2017 Google Inc. and Skytruth 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 agr...
import numpy as np from e2cnn.nn import * from e2cnn.group import * from e2cnn.gspaces import * import matplotlib.image as mpimg import matplotlib.pyplot as plt import matplotlib.animation as manimation from skimage.transform import resize import scipy.ndimage import torch from typing import Union plt.rcParams['im...
#!/usr/bin/env python # coding: utf-8 # # Some Bilinear Optimization Examples # ## Example: Pooling Sources for a Milk Wholesale Distributor # # A small distributor of wholesale milk creates custom blends of raw milk supplied from farms for delivery to customers. The distributor has found an opportunity to improve p...
from functools import lru_cache from chess import BB_FILE_A, BB_KNIGHT_ATTACKS, BB_RANK_1, BB_RANK_2, BB_RANK_3, BB_RANK_4, BB_RANK_5, BB_RANK_6, BB_RANK_7, BB_RANK_8, Board, Move, WHITE, BLACK, lsb, popcount, scan_forward, BB_PAWN_ATTACKS import chess from PSTs import PAWN_NORM, mg_pst, eg_pst, piece_values from itert...
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 <NAME> <<EMAIL>> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline in source files...
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: disable=wrong-import-position """ Use VBWKDE to characterize (with optional "extra" smoothing) the negative-error distribution for a reconstructed parameter, then sample the resulting pdf for use as a prior by Retro (see `retro.priors`). """ from __future__ impo...
from functools import partial from django.shortcuts import get_object_or_404 from reportlab.graphics.shapes import Drawing, Line, Rect, String from reportlab.lib import colors from reportlab.lib.formatters import DecimalFormatter from reportlab.pdfgen import canvas from reportlab.lib.enums import TA_RIGHT, TA_LEFT fro...
""" Module for data warehouse configuration, initialization and user micro management. There are three large sections: - maintaining schemas - maintaining (initializing, updating) a database and users (and groups) - disconnecting users with open sessions Note that it is important that the admin access to the ET...
#!/usr/bin/env python # -*- coding: utf-8 -*- # ============================================================================= # Copyright (c) Ostap developpers. # ============================================================================= ## @file ostap/math/tests/test_math_derivative.py # Test module for the file...
from django.conf import settings from django.shortcuts import render from django.views.generic import View import logging import search_util import os from django.http import HttpRequest, HttpResponseRedirect, FileResponse import hashlib import time from urlsafe import url_part_escape logger = logging.getLogger('ogc_s...
# # Copyright 2017 "OVS Performance" 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 ...
from SQL_parser.SQL_lexer import tokens import exception import ply.yacc as yacc from pythonds.basic.stack import Stack from pythonds.trees.binaryTree import BinaryTree import Result import exception_for_client from datetime import datetime class Struct: def __getitem__(self, name): return self.__dict__[...
''' ## NAME: ProteinAnalysis.py ## LANGUAGE & VERSION: python 3.8.5 ## AUTHORS: <NAME> <<EMAIL>> <NAME> <<EMAIL>> ## DATE: November, 2021. ## DESCRIPTION & LOGIC: This script uses BioPython tools numpy, pandas, seaborn, matplotlib and argparse to run a functional protein analysis between a p...
# vim: set ts=8 sts=4 sw=4 tw=99 et: # # This file is part of AMBuild. # # AMBuild 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. # # ...
import numpy as np import cv2 from keras.models import model_from_json from keras import optimizers import keras import numpy as np import os import scipy from scipy import io import matplotlib matplotlib.use("TkAgg") import matplotlib.pyplot as plt from skimage import measure, filters import math def mkdir_if_nexist(...
""" specter.util.util ================= Utility functions and classes for specter <NAME> Fall 2012 """ from __future__ import absolute_import, division, print_function, unicode_literals import os import math import numpy as np import scipy.signal from scipy.special import legendre from scipy.sparse import spdiags f...
from enum import Enum class ADDRESS_STATE(Enum): AS_INSERVICE = 0 AS_OUTOFSERVICE = 1 class CALLHUB_STATE(Enum): CHS_ACTIVE = 0 CHS_IDLE = 1 class DISCONNECT_CODE(Enum): DC_NORMAL = 0 DC_NOANSWER = 1 DC_REJECTED = 2 class QOS_SERVICE_LEVEL(Enum): QSL_NEEDED = ...
""" Functions found in advapi32.dll Security functions for manipulating the Windows Registry. """ import logging from . import constants as wc from ... import actions, utils, constants, objects from ...call_hooks import builtin_func logger = logging.getLogger(__name__) def _get_reg_key(cpu_context, root_key_handl...
from .adt import ADT from .prelude import * from . import builtins as B from . import atl_types as T from collections import ChainMap, namedtuple, OrderedDict import itertools import math from fractions import Fraction import re # --------------------------------------------------------------------------- # # -----...
#!/usr/bin/env pythen """ShutIt utility functions. """ # The MIT License (MIT) # # Copyright (C) 2014 OpenBet Limited # # 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,...
'''Wrapper around the nuSQuIDS python interface Note that the nuSQuIDS NSI branch which contains the full functionality this wrapper can provide is at https://github.com/thehrh/nuSQuIDS/tree/nusquids_nsi (experimental!), but the master branch https://github.com/arguelles/nuSQuIDS can and should be used if no NSI are n...
''' # Description. This is the graphical user interface (GUI) module in order to perform a \ circular arc slope stability analysis by the limit equilibrium model by Fellenius and Bishop symplified methods implemented in pyCSS program. ''' #-----------------------------------------------------------------------...
from flask import Flask, render_template, send_file from flask_socketio import SocketIO, emit, Namespace import numpy as np import json import drms import os import scipy.ndimage as nd from astropy.io import fits from bokeh.plotting import figure from bokeh.resources import CDN from bokeh.embed import components from b...
""" Pipelines for supervised and unsupervised segmentation Copyright (C) 2014-2018 <NAME> <<EMAIL>> """ import logging from functools import partial import numpy as np import skimage.color as sk_color # from sklearn import mixture from imsegm.utilities.experiments import WrapExecuteSequence, nb_workers from imsegm....
import SinGAN.functions as functions from SinGAN.functions import apply_state import SinGAN.models as models import os import jax from jax import lax, random, numpy as jnp from jax import grad, jit, vmap import optax import flax from flax import linen as nn from flax.training import train_state # import to...
# Copyright 2020 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...
"""Application Repository Management Tool Usage: eapp_repo [options] counters show eapp_repo [options] config show eapp_repo [options] config reset [--development] eapp_repo [options] setup [--development] [--with-mock] [--with-legacy] [--force-resignature] eapp_repo [options] destroy [--yes] e...