text
stringlengths
8.04k
46.5k
import boto3 import botocore from botocore.exceptions import ClientError # import jsonschema import json import os import traceback import subprocess import zipfile import tempfile from extutil import remove_none_attributes, gen_log, creturn, handle_common_errors, \ account_context, component_safe_name, ExtensionH...
"""Functions that read and write gzipped files. The user of the file doesn't have to worry about the compression. Seeks are allowed, but are efficient only for files compressed by the dictzip utility (which adhere to the gzip format). Files may be concatenated to overcome dictzip's 1.8 Gb size limit.""" import stru...
""" Definition of the Session class. """ import re import sys import time import json import base64 import random import hashlib import asyncio import weakref import datetime from http.cookies import SimpleCookie from ..event._component import new_type from ._component2 import PyComponent, JsComponent, AppComponentM...
# fitsviewer.py # Server side of fits viewer client in browser # Copyright 2014 by <NAME> # License: GPLv3 from __future__ import division,print_function from random import * import os import math import astropy.io.fits as pyfits import numpy as np import copy import astropy.wcs as pywcs import hashlib # astropyp mod...
def dogleg(value, units): return_dict = {} if units == 'deg/100ft': return_dict['deg/100ft'] = value return_dict['deg/30m'] = value * 0.9843004 elif units == 'deg/30m': return_dict['deg/100ft'] = value * 1.01595 return_dict['deg/30m'] = value return return_dict def axia...
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import contextlib import copy import io import itertools import json import logging import numpy as np import os import pickle from collections import OrderedDict import pynlostools.mask as mask_util import torch from fvcore.common.file_io import Pa...
import numpy as np import matplotlib.pyplot as plt import matplotlib.figure from typing import List, Sequence, Dict, Tuple, Union from biplane_kine.graphing import plot_utils from .common_graph_utils import make_interactive from .smoothing_graph_utils import marker_graph_init, marker_graph_add from .kine_graph_utils im...
import importlib import copy import io, time from io import BytesIO import chardet import os import collections from itertools import combinations, cycle, product import math import numpy as np import pandas as pd import pickle import tarfile import random import re import requests from nltk.corpus import stopwords fro...
"""This file contains methods for creating and updating cluster graphs (NOT a class) using networkx library """ import networkx as nx import numpy as np import copy from statistics import mean, stdev def create_cg(edge_dist_array): """ Given an edge distance array, returns a new cluster graph :param edge...
# ------------------------------------------------- # IMPORTS # ------------------------------------------------- import numpy as np from math import ceil from imblearn.under_sampling import NearMiss from imblearn.over_sampling import SMOTE, ADASYN from collections import Counter from sklearn.ensemble import RandomF...
import dash import dash_core_components as dcc import dash_html_components as html import dash_daq as daq from dash.dependencies import Input, Output, State import plotly.graph_objs as go import sqlite3 import pandas as pd from datetime import timedelta from datetime import datetime as dt from flask_caching import Cach...
""" Tests for structural time series models Author: <NAME> License: Simplified-BSD """ import warnings import numpy as np from numpy.testing import assert_equal, assert_allclose, assert_raises import pandas as pd import pytest from statsmodels.datasets import macrodata from statsmodels.tools.sm_exceptions import Sp...
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt import matplotlib import fitsio import treecorr import ngmix import os import errno from esutil import htm # import lfunc # Can use for debugging import pudb def mag_flux_tick_function(flux): return ["%.1f" % mag for mag in 30 - 2.5*np.log1...
import os import glob import itertools import pandas as pd from os.path import dirname, isfile, splitext from routine_qiime2_analyses._routine_q2_xpbs import run_xpbs, print_message from routine_qiime2_analyses._routine_q2_io_utils import ( get_job_folder, get_analysis_folder, get_procrustes_mantel_dicts, ...
""" MIT License Copyright (c) 2018 <NAME> and <NAME> 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, merge, publ...
## @ingroup Methods-Aerodynamics-Common-Fidelity_Zero-Lift # generate_propeller_wake_distribution.py # # Created: Sep 2020, <NAME> # Modified: May 2021, <NAME> # Jul 2021, <NAME> # Jul 2021, <NAME> # Sep 2021, <NAME> # ------------------------------------------------------------------...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2019 <NAME> <<EMAIL>> import io, sys from math import pi, cos, sin, tan, atan, atan2, acos, asin, sqrt import dxfgrabber from gerber.cam import CamFile, FileSettings from gerber.utils import inch, metric, write_gerber_value, rotate_point from gerber.gerber_sta...
""" Composite Laminate Module (:mod:`compmech.composite.laminate`) ============================================================== .. currentmodule:: compmech.composite.laminate """ from __future__ import division, absolute_import import numpy as np from .lamina import Lamina from .matlamina import read_laminaprop f...
import qulacs from qulacs.gate import to_matrix_gate, RZ from math import pi import numpy as np from ..op.util import break_operators_into_subsets_dummy from ..context import rotation_factor from time import time class ElpTime: init_tot = 0.0 init_0 = 0.0 init_1 = 0.0 init_2 = 0.0 init_3 = 0.0 ...
# Copyright 2015-2019 Altova GmbH # # 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 cv2 from PIL import Image, ImageTk import io import tensorflow as tf from dataloader import mask_gen_cs_kar, mask_gen_hor_cs_kar_albedo import numpy as np import random import os import glob from html import HTML import skvideo.io import argparse tf.enable_eager_execution() os.environ["CUDA_VISIBLE_DEVICES"] = '...
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
#!/usr/bin/env python3 import os from pathlib import Path import numpy as np import tensorflow as tf import cv2 from cv_bridge import CvBridge, CvBridgeError import rospy from hrl_object_detection.msg import FloatList from sensor_msgs.msg import Image from object_detection.utils import ops as utils_ops from object_d...
import datetime import json import logging import os import sys import time from urllib.parse import urlparse import boto3 import click import numpy as np import pandas as pd logging.basicConfig( format="[%(asctime)s] %(message)s", level=logging.INFO, datefmt="%Y-%m-%d %H:%M:%S" ) timeout_seconds = 10800 SEED = 1...
import sys import math import pygame from pygame.locals import * from functools import cmp_to_key DISPLAY = None textureDebug = False playerPos = {"x":0, "y":0} playerDir = {"x": -1, "y": 0} rotSpeed = 0.1 playerSpeed = 0.075 clock = pygame.time.Clock() score = 0 lives = 3 inv_timer = 0 isPlaye...
from PIL import Image, ImageDraw from typing import List, Callable import random class BaiLanError(Exception): pass def paste_image(pt, im, x, y, w=-1, h=-1, with_mask=True): w = im.width if w == -1 else w h = im.height if h == -1 else h im = im.resize((w, h)) pt.paste(im, (x, y, x + w, y + h), ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Code for reading and working with calibration data. Author <NAME>, 2019 Author <NAME>, 2019 """ import cv2 import numpy as np import os from typing import Tuple, List from enum import Enum import yaml import functools from libartipy.dataset import Constants, ...
#!/usr/bin/env python # # // SPDX-License-Identifier: BSD-3-CLAUSE # # (C) Copyright 2018, Xilinx, Inc. # import os import json import argparse from collections import OrderedDict import h5py import ntpath import cv2 import numpy as np from xfdnn.rt.xdnn_util import literal_eval from ext.PyTurboJPEG import imread as ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Model for fitting an absorption profile to spectral data. """ from __future__ import (division, print_function, absolute_import, unicode_literals) __all__ = ["ProfileFittingModel"] import logging import numpy as np import scipy.optimize as op...
"""Support for Solcast PV forecast.""" import json import logging import traceback from datetime import datetime, timedelta from enum import Enum from operator import itemgetter import aiohttp import homeassistant.util.dt as dt_util from homeassistant.components.recorder.models import Events from homeassistant.compone...
################################################################################ # Copyright (C) 2019 drinfernoo # # # # This Program is free software; you can redistribute it and/or modify ...
# -*- coding: utf-8 -*- """Module containing the TLS Extension classes """ # import basic stuff import abc import time import logging from typing import Tuple, Any, Optional, List, Union # import own stuff import tlsmate.client_state as client_state import tlsmate.tls as tls import tlsmate.structs as structs import t...
# -*- coding: utf-8 -*- """ Create Hobbies and HobbyEvents from data in Linked Courses TODO: using the full URI ('@id' attribute) as origin_id is not a good idea. should use the real id instead, but this requires either parsing from the URI or doing an API request every time TODO: organizer is not saved for the Hobbi...
from __future__ import print_function, division import sys from datetime import datetime from collections import OrderedDict import numpy as np import h5py from .data import Dataset, SyncRecording, PatchClampRecording, TSeries from .test_pulse import PatchClampTestPulse from . import stimuli class MiesNwb(Dataset): ...
from __future__ import print_function import logging import re import sys from argparse import ( SUPPRESS, Action, _AppendAction, _AppendConstAction, _CountAction, _HelpAction, _StoreConstAction, _VersionAction, ) from collections import defaultdict from functools import total_ordering ...
# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 # Author/s (©): <NAME> from math import sqrt import chunk import logging import colorsys import mcpi.block from mcpi.vec3 import Vec3 from mcthings.thing import Thing class Voxel: def __init__(self, bytes): self.x = bytes[0] ...
#!/usr/bin/python3 #Author: <NAME> & <NAME> import json import argparse import sys import subprocess """"""""""""""""""""""""""""""""""""""""""""""""""""""""" Flattener for solidity files """"""""""""""""""""""""""""""""""""""""""""""""""""""""" """ Functions corresponding to a nodeType """ def sourceUnit(jsonFile)...
#!/usr/bin/env python import numpy as np # scientific computing lib import sounddevice as sd # sounddevice / hostapi handling import sys # used for printing err to std stream import matplotlib.pyplot as plt # plots and graphs import os ...
from django.contrib.auth.models import User from django.db import models from django.utils.translation import gettext_lazy as _ from django_countries.fields import CountryField from django.db import models from gmmp.models import Monitor class CustomManager(models.Manager): def get_queryset(self): return...
''' # Example dictionary containing information on power excess and shortage for the current timestep # {key:[Qsum,Qchp_nom,Qchp_min,Qboiler_nom,Qboiler_min,Q_tes_in,Q_tes_out]} dict_Qlhn={'1001': {'Qsum':[10,10],'Qchp_nom':[8,8],'Qchp_min':[5,5],'Qboiler_nom':[2,2],'Qboiler_min':[1,1]}, '1002': {'Qsum...
import matplotlib.pyplot as plt import numpy as np import scipy.interpolate from oneibl.one import ONE from ibllib.io import spikeglx import alf.io from scipy.io import savemat from brainbox.io.one import load_channel_locations from scipy import signal import brainbox as bb from pathlib import Path import pandas as pd...
import os import wx from PIL import Image # Pil import Plugins.tama_drawer.ImgConv # wxImage <==> PilImage #------------------------------------------------------------------------------ def CreateMaskBitmapFromPilImage( pilImage, useTransparency=True, threshold=128 ) : """ Return a binary mask w...
import binascii import gzip import json import logging import os import glob import fnmatch import shutil import time import zlib import io import pickle import tempfile import re from abc import ABC, abstractmethod from collections import OrderedDict from functools import total_ordering from typing ...
#! /usr/bin/env python """Basic replication core.""" import sys, os, time import skytools, pgq __all__ = ['Replicator', 'TableState', 'TABLE_MISSING', 'TABLE_IN_COPY', 'TABLE_CATCHING_UP', 'TABLE_WANNA_SYNC', 'TABLE_DO_SYNC', 'TABLE_OK'] # state # owner - who is allowed to change TABLE_MISSI...
# Copyright (c) 2021 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 ap...
#!/usr/bin/python # -*- coding: utf-8 -*- ######################################### fuente = ("courier new", "10") fuenteNeg = ("courier new", "10", "bold") ancho = 160 alto = 16 windowTitleBase = "Sim2bHaptcis" autoScroll = True cycleTime = 0.042 configFile = 'Sim2bHap.ini' logfile = 'Sim2bHap.log' h...
import copy import itertools import pickle import os from collections import defaultdict from Model.ReprLookupTable import REPRLOOKUPTABLE from Model.ValidatorLookupTable import VALIDATORLOOKUPTABLE from Model.CompositionLookupTable import COMPOSITIONLOOKUPTABLE import sys # Relation's constants BT = {"bt"} RS = {"rs"...
import json import logging import multiprocessing as mp import sys import pandas as pd import random import daisy import numpy as np from pymongo import MongoClient from scipy.spatial import KDTree import sqlite3 from funlib.math import cantor_number from . import database, synapse, evaluation logger = logging.getLo...
""" An extention to DBAPI-2.0 for more easily building SQL statements. This extension allows you to call a DBAPI Cursor's execute method with a string that contains format specifiers for escaped and/or unescaped arguments. Escaped arguments are specified using `` %X `` or `` %S `` (capital X or capital S). You can al...
# Copyright (c) 2016-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import json import logging import subprocess import sys import traceback from logging import Logger from pathlib import Path from ty...
# name=Ableton Push 2 # url=https://github.com/flstudio-midi-scripts/AbletonPush2 import playlist import channels import mixer import patterns import arrangement import transport import device import general import launchMapPages import ui import midi import utils from constants import * def getClosestColor(color):...
#!/usr/bin/env python2 """ FaceGazeTask.py Display images to the subject while collecting EyeLink eye tracking data. * Created 10/30/18 by DJ based on ExtinctionRecallTask.py. * Updated 11/8-9/18 by DJ - added new images, timing file reading code * Updated 11/26/18 by DJ - comments and cleanup * Updated 1/23/19 by DJ ...
# Keywords for the different sections of the ARFF file import re from multiprocessing.pool import Pool import numpy as np # Numeric type to use for numeric data import CNTKDeserializerUtils import onehot # The data-type to use for numeric values DEFAULT_NUMERIC_TYPE = np.float32 # The number of rows to process as ...
# coding=utf-8 from __future__ import print_function # Python 2/3 compatibility import boto3 from botocore.exceptions import ClientError from ask_sdk_core.skill_builder import SkillBuilder from ask_sdk_core.utils import is_request_type, is_intent_name from ask_sdk_model import ui from decimal import Decimal import tim...
# Databricks notebook source ############################################# # TAG API FUNCTIONS ############################################# # Get all tags def getTags() -> dict: return sc._jvm.scala.collection.JavaConversions.mapAsJavaMap( dbutils.entry_point.getDbutils().notebook().getContext().tags() ) #...
__all__ = ['ANTsImage', 'LabelImage', 'copy_image_info', 'set_origin', 'get_origin', 'set_direction', 'get_direction', 'set_spacing', 'get_spacing', 'image_physical_space_consistency', 'image_type_cast', ...
"""WebSockets for gevent.""" # parts borrowed from trio-websocket # Copyright (c) 2018 <NAME> import collections import enum import logging import secrets import struct import sys import time import gevent import gevent.event import gevent.lock import gevent.pywsgi import gevent.queue import gevent.socket import wsp...
import sys import datetime import traceback from pywinauto.application import Application from pywinauto import mouse from pywinauto import win32api def retrieve_project_parameters(): parameters = sys.argv parameters_number = parameters.index("-traces") if "-traces" in parameters else None if parame...
# coding=utf-8 # Copyright (c) 2019 <NAME> # MIT License """ Data loading functions for Token level Classification with BERT Reads data in the CONLL format. """ import os import csv import copy import json import logging import torch from torch.utils.data import DataLoader, RandomSampler, SequentialSampler from torch...
#!/usr/bin/env python3 ############################################################################### # Copyright 2015-2016 <NAME> - License: BSD 2-Clause License # # This file is a part of msu-bikedata, which currently licensed for public # use and distribution under terms of the BSD License. Refer to the 'License'...
#!/usr/bin/env python3 # Copyright 2019 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jun 7 11:51:53 2019 @author: carsault """ #%% import pickle import torch from utilities import chordUtil from utilities.chordUtil import * from utilities import testFunc from utilities.testFunc import * from utilities import distance from utilities.di...
# -*- coding: utf-8 -*- """ Created on Tue Oct 13 17:15:16 2020 @author: JAVIER """ import numpy as np import pandas as pd import pickle from .. import bci_architectures as athena from . import bci_penalty_plugin as bci_penalty from .. import load_brain_data as lb from Fancy_aggregations import penalties as pn from...
#if 0 # ----------------------------------------------------------------------- # $Id: mp3info.py,v 1.12 2003/07/10 13:05:05 the_krow Exp $ # ----------------------------------------------------------------------- # $Log: mp3info.py,v $ # Revision 1.12 2003/07/10 13:05:05 the_krow # o id3v2 tabled added to eyed3 # o ...
""" Class for walker with approximate average-patterns, in particular the approximate MFPT from root to target. """ import pattern_walker as rw import numpy as np import networkx as nx __all__ = [ 'MF_patternWalker', 'overlap_MF_patternWalker' ] class MF_patternWalker(rw.fullProbPatternWalker): """ ...
"""Module for base of [conditional | latent] neural processes""" import abc from functools import partial import torch import torch.nn as nn import torch.nn.functional as F from npf.architectures import MLP, merge_flat_input from npf.utils.helpers import ( MultivariateNormalDiag, isin_range, ) from npf.utils.i...
import battlecode as bc import random import sys import traceback import collections as fast import time import math print("pystarting") # A GameController is the main type that you talk to the game with. # Its constructor will connect to a running game. gc = bc.GameController() print("pystarted") # It's a good ide...
import argparse from td import OneStepTD from off_pol_td import OffPolicyTD from driving import DrivingEnv, TRAVEL_TIME from sarsa import Sarsa from windy_gridworld import WindyGridworld import numpy as np from randomwalk import RandomWalk, NotSoRandomWalk, LEFT, RIGHT from cliff import TheCliff import matplotlib.pyplo...
import ctapipe import traitlets from ctapipe.io import EventSourceFactory from ctapipe.io import event_source from ctapipe.calib import CameraCalibrator from enum import Enum from ctapipe.visualization import CameraDisplay import time import copy import pickle from matplotlib import pyplot as plt import PreprocessingF...
#!/usr/bin/env python3 """ Yandex Transport Timetable in the terminal. Requires unicode support and launched and accessible Yandex Transport Proxy server. (see: https://github.com/OwlSoul/YandexTransportProxy) """ __author__ = "<NAME>." __credits__ = ["<NAME>."] __license__ = "MIT" __version__ = "1.0.0" __maintainer_...
import pygame import settings from settings import * import buttons import map import random as rnd from pygame import mixer class Screen(): """ Class of a generic screen in the game """ def __init__(self, caption = "Zero Zero Um", *args, **kwargs): # Initialize screen self.scn = pygame.display....
#!/usr/bin/python3 # Copyright 2018-2019 <NAME> @ alvarob96 in GitHub # See LICENSE for details. from datetime import datetime, date import json from random import randint import pandas as pd import pkg_resources import requests import unidecode from lxml.html import fromstring from investpy.utils.user_agent import...
import json import traceback from typing import Dict, cast import ansible_runner import demistomock as demisto # noqa: F401 import ssh_agent_setup from CommonServerPython import * # noqa: F401 # Dict to Markdown Converter adapted from https://github.com/PolBaladas/torsimany/ def dict2md(json_block, depth=0): m...
# Get dependencies import sys import dependencies sys.path.append('yolo') sys.path.append('core') import math import glob import os import time import cv2 import numpy as np from PIL import Image import torch import torchvision.models as models import torchvision.transforms as transforms from raft import RAFT from util...
# -*- coding: utf-8 -*- import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.utils.data import Dataset, DataLoader, random_split, Subset import json, time, pickle, csv, re, os, gc, logging, zlib, orjson, joblib import numpy as np from tqdm import tqdm from sklearn....
from enum import Enum import operator import itertools import collections import sys import numpy as np import re from .alignment import AlnStats class Operation(Enum): AlnMatch = 0 Insertion = 1 Deletion = 2 Skip = 3 Soft = 4 Hard = 5 Padding = 6 SeqMatch = 7 SeqMismatch = 8 ...
# Monitoring the progress of a multithreaded computation. # # Copyright © 2014 <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 # There is N...
# Copyright (c) 2017, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. import sys from mixbox.binding_utils import * from . import cybox_common from . import dns_record_object from . import uri_object class DNSQuestionType(GeneratedsSuper): """The DNSQuestionType specifies the c...
#!/usr/bin/env python3 """ MTCNN Face detection plugin """ from __future__ import absolute_import, division, print_function import cv2 from keras.layers import Conv2D, Dense, Flatten, Input, MaxPool2D, Permute, PReLU import numpy as np from lib.model.session import KSession from ._base import Detector, logger cla...
# -*- encoding: utf-8 -*- # ! python2 from __future__ import (absolute_import, division, print_function, unicode_literals) import json import logging import os import sys import tempfile import time from time import gmtime, strftime import environ import requests try: from StringIO import StringIO except Import...
from argparse import ArgumentParser from numpy import arange, array, atleast_2d, diag, hstack, ones, where from os import mkdir from os.path import isdir,isfile from pickle import load, dump from pandas import read_csv from scipy.integrate import solve_ivp from time import time from multiprocessing import Pool from mod...
"""This module contains PlainFrame and PlainColumn tests. """ import collections import datetime import pytest import numpy as np import pandas as pd from numpy.testing import assert_equal as np_assert_equal from pywrangler.util.testing.plainframe import ( NULL, ConverterFromPandas, NaN, PlainColumn...
# Copyright 2019 École Polytechnique F<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 # # Unless required by ap...
from pm4py.models.petri import semantics from copy import copy from threading import Thread from pm4py.filtering.tracelog.variants import variants_filter as variants_module MAX_REC_DEPTH = 50 MAX_IT_FINAL = 10 MAX_REC_DEPTH_HIDTRANSENABL = 5 MAX_POSTFIX_SUFFIX_LENGTH = 20 MAX_NO_THREADS = 1000 class NoConceptNameExce...
from loguru import logger space_per_indent = 2 def get_precedence(op=None): if op in ['+', '-']: return 3 elif op in ['*', '/']: return 4 else: return 5 def is_list_syntactically_equal(list1, list2): if len(list1) != len(list2): return False for i1, i2 in zip(list1...
#!/usr/bin/env python """ ENCODE QC log parser wrapper which converts a log file into a dict Author: <NAME> (<EMAIL>) """ from collections import OrderedDict MAP_KEY_DESC_FRAC_MITO_QC = { 'non_mito_reads': 'Rn = Number of Non-mitochondrial Reads', 'mito_reads': 'Rm = Number of Mitochondrial Reads', 'fra...
# Copyright 2020 Makani Technologies 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...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # <NAME> # <EMAIL> # MIT license from sys import argv, exit from signal import signal, SIGILL, SIGTRAP, SIGINT, SIGHUP, SIGTERM, SIGSEGV from os import mkfifo, getenv from time import sleep, strftime, gmtime from logging.handlers import logging, RotatingFileHandler from...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
# # wtfdmdg.py # # Where The Fuck Did My Day Go, dot pie # # A tool to help answer that question. # from PyQt5 import Qt, QtGui, QtWidgets, QtCore import pyqtgraph as pg pg.setConfigOption('background', 'w') pg.setConfigOption('foreground', 'k') import sys import re import collections import datetime import time imp...
# -*- coding: utf-8 -*- #%% ###################################################### # libraries import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from mpl_toolkits.axes_grid1 import AxesGrid import math from scipy import stats # matplotlib params mpl.rcParams["axes.titlesiz...
# -*- coding: utf-8 -*- """ Created on Wed Sep 11 01:26:31 2019 @author: f.divruno """ import numpy as np import pycraf as pycraf from astropy.coordinates import SkyCoord, EarthLocation, AltAz from astropy.time import Time import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import cartopy.crs as ...
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import json import argparse import numpy as np import itertools import torch.utils.data import torch.nn.functional as F from torch.optim.lr_sch...
from math import * def isValidNorwegianPersonalIdentificationNumber(fnummer): if len(fnummer) == 11.0: failures = DoubleReference() failures.doubleValue = 0.0 d1 = charToNumber(fnummer[int(0.0)], failures) d2 = charToNumber(fnummer[int(1.0)], failures) d3 = charToNumber(fnummer[int(2.0)], failures...
from tkinter import * import tkinter.font as font import os from gui.resizer import ImageResizer from algorithm.ai_sailog import Sailog from dawg_fsm_dictionary.dawg_fsm import DawgFsm from game_logic.board_rules import BoardRules from dawg_fsm_dictionary.txt_dictionarys.load_modify_txt import LoadModifyTxt from game_l...
############################################################################ # Copyright (c) 2015-2017 Saint Petersburg State University # Copyright (c) 2011-2015 Saint Petersburg Academic University # All Rights Reserved # See file LICENSE for details. ##################################################################...
from copy import copy from collections import ChainMap from collections.abc import Collection, Iterable from functools import lru_cache import logging import os from pathlib import Path, PurePosixPath import re from types import SimpleNamespace from warnings import warn import jpype from jpype import JClass import num...
#!/usr/bin/env python # 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, sof...
import json import logging from collections import defaultdict from collections.abc import Mapping from aquarium.provenance import ( CollectionEntity, ItemEntity, ExternalFileEntity, FileEntity, JobActivity, OperationActivity, OperationItemPin, OperationParameter, PartEntity, Pla...
# pylint: disable=invalid-name """Flo Antlr Listener implementation """ import importlib import inspect import os import traceback from typing import Any, Union, Optional, List, Callable import signal import sys # pylint: disable=wildcard-import, unused-wildcard-import from antlr4 import * # type: ignore from antlr4.e...