text
stringlengths
8.04k
46.5k
# -*- coding: utf-8 -*- """ Check that SendInput can work the way we want it to The tips and tricks at http://www.pinvoke.net/default.aspx/user32.sendinput is useful! """ import time import ctypes __all__ = ['KeySequenceError', 'SendKeys'] try: str_class = basestring def enforce_unicode(text): retur...
# <<BEGIN-copyright>> # Copyright 2021, Lawrence Livermore National Security, LLC. # See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: BSD-3-Clause # <<END-copyright>> __metaclass__ = type from . import values as valuesModule from . import base as baseModule from . import standards as standa...
""" Copyright 2018 EPAM Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Sep 26 17:35:39 2020 @author: elizabethmeiklejohn """ import numpy as np import trimesh import math import random import time """TRANSFORMING MESHES""" def pullVertex (mesh, vertex, dist, normals): """Moves the selected vertex the specified dista...
import os import datetime from pathlib import Path from typing import Any, List import pytz import yaml import jinja2 import networkx as nx from redis import Redis from pottery import Redlock from redis_pal import RedisPal from dagster import solid, RetryPolicy from dagster.experimental import DynamicOutputDefinition,...
# -*- coding: utf-8 -*- from __future__ import (nested_scopes, generators, division, absolute_import, with_statement, print_function, unicode_literals) import os import sys import multiprocessing as mltp import subprocess as sub import shutil as sht from grass.script.setup import write_gisrc f...
''' FromScratchBregman.py Initialize suff stats for observation models via Bregman clustering. ''' import re import numpy as np import bnpy.data from bnpy.util import split_str_into_fixed_width_lines from bnpy.init.FromTruth import \ convertLPFromHardToSoft, \ convertLPFromTokensToDocs, \ convertLPFromDoc...
# -*- coding: utf-8 -*- from __future__ import absolute_import import json import collections import pandas as pd from warnings import warn from carto.exceptions import CartoException from ...core.managers.context_manager import ContextManager from ...io.carto import read_carto from ...utils import utils class Da...
import discord import requests import ast import urllib.parse import subprocess, os import asyncio from PIL import Image, ImageDraw, ImageFont #import math #def makeTablePic(): # pass def makeTablePic(): im=Image.new('RGB', (750,300),(255,255,255)) draw=ImageDraw.Draw(im) #fnt=ImageFont.truetype("/system/fonts...
''' This script convert Nuscenes dataset tarballs to zipfiles or regular directory split by collection segments. ''' import json import os import shutil import tarfile import tempfile import time import zipfile from collections import defaultdict from multiprocessing import Pool, Value from pathlib import Path, PurePa...
import torch import torch.nn as nn from torch.autograd import Variable from utils import get_init_weights from model.attention import Attention class S_LSTMCell(nn.Module): def __init__(self, in_seq_length, out_seq_length, n_feats, n_tags, embedding_size, hidden_size, rnn_in_size, rnn_hidden_s...
from django.conf import settings as djangosettings from django.core.urlresolvers import reverse from django.test import TestCase import keyedcache import livesettings import logging from livesettings.values import IntegerValue, BASE_GROUP, StringValue, \ ConfigurationGroup, BooleanValue, MultipleStringValue, LongSt...
""" Code for understanding type annotations. This file contains functions that turn various representations of Python type annotations into :class:`pyanalyze.value.Value` objects. There are three major functions: - :func:`type_from_runtime` takes a runtime Python object, for example ``type_from_value(int)`` -> ``...
import numpy as np from matplotlib import pyplot as plt from matplotlib import animation from matplotlib import rcParams from cycler import cycler from scipy.stats import beta as dist_beta import math from matplotlib.ticker import StrMethodFormatter import os import sys class Plot_Animation: """ P...
""" Raven model definition Classes ------- Raven : A generic class that knows how to launch the model from completed rv files. GR4JCemaneige: The Raven emulator for GR4J-Cemaneige. Uses template configuration files whose value can be automatically filled in. """ import raven from pathlib import Path from collec...
# -*- coding: utf-8 -*- """ @Author: Shaoweihua.Liu @Contact: <EMAIL> @Site: github.com/liushaoweihua @File: bert.py @Time: 2020/3/3 10:37 AM """ # Codes come from <bert4keras>: # Author: <NAME> # Github: https://github.com/bojone/bert4keras # Site: kexue.fm # Version: 0.2.5 from __future__ import absol...
from __future__ import print_function, unicode_literals import os, random, base64 from collections import namedtuple from twisted.python import log from twisted.application import service def generate_mailbox_id(): return base64.b32encode(os.urandom(8)).lower().strip(b"=").decode("ascii") class CrowdedError(Excep...
from socket import AF_INET from socket import AF_INET6 from collections import OrderedDict from pr2modules.common import AF_MPLS from pr2modules.common import basestring from pr2modules.netlink.rtnl import rt_type from pr2modules.netlink.rtnl import rt_proto from pr2modules.netlink.rtnl import rt_scope from pr2modules....
# -------------------------------------------------------- # Swin Transformer # Copyright (c) 2021 Microsoft # Licensed under The MIT License [see LICENSE for details] # Written by <NAME> # -------------------------------------------------------- from functools import reduce import torch import torch.nn as nn import t...
#!/usr/bin/env python3 # # __init__.py r""" Parser for MassHunter Compound Exchange Format ``.cef`` files. A CEF file represents a file identified in LC-MS data by MassHunter Qualitative. It consists of a list of compounds encapsulated in a :class:`~.CompoundList`. A :class:`~.CompoundList` consists of :class:`~.Com...
import os import gzip import time import pickle import operator import collections import itertools import numpy as np from scipy.misc import logsumexp import matplotlib.pyplot as plt from hips.plotting.layout import create_axis_at_location, create_figure import brewer2mpl from pgmult.lds import MultinomialLDS from ...
import abc from SpmTextEncoder import SpmTextEncoder import numpy as np def find_sub_list(sl, l): results = [] sll = len(sl) for ind in (i for i, e in enumerate(l) if e == sl[0]): if l[ind:ind + sll] == sl: results.append((ind, ind + sll - 1)) return results def get_src_slice(src...
""" Asyncio ======= This module contains various useful functions and classes for handling common and awkward tasks in Asyncio. """ __all__ = [ 'gather_excs', 'raise_first_exc', 'to_async_iter', 'to_sync_iter', 'threadsafe_async_cache', 'buffer_until_timeout', 'BufferAsyncCalls', 'ens...
"""This module contains the general information for BiosVfPCISlotOptionROMEnable ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import ImcVersion, MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class BiosVfPCISlotOptionROMEnableConsts(): VP_SLOT10_LINK_SPEED_AUTO = "Auto" ...
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
from string import ascii_uppercase, ascii_lowercase, digits from enpc_aligner.IBM2_func import _train_IBM2, show_matrix import re from math import ceil, floor from operator import itemgetter from matplotlib.pyplot import plot, show, title, xlim, ylim, xlabel, ylabel, xticks, legend, matshow from numpy import zeros, one...
import csv import math import pickle import re import string import struct import unicodedata import urllib import zlib from collections import Counter from collections import defaultdict from itertools import combinations import ftfy import numpy as np import wikitextparser as wtp from dateutil.parser import parse, p...
import errno # handle errors import logging # log errors import os import sys from pathlib import Path # filesystem related stuff import re # regular expression to find resolution from import numpy as np from astropy.wcs import WCS # handle astronomic coordinates from astrop...
import discord from discord.ext import commands from discord.ext.commands import AutoShardedBot import asyncio import os import random import sys class miscs(commands.Cog): def __init__(self, bot): self.bot = bot self.voice_dir = r"/root/tenko/resources/voice lines/tenko" ...
import requests as rs import json import os import threading from multiprocessing import Queue import time import codecs import math class MRIThread(threading.Thread): def __init__(self, threadID, inQueue, outQueue, gui=None): threading.Thread.__init__(self) self.threadID = threadID self.n...
"""Task I/O specifications.""" import attr from pathlib import Path import typing as ty import inspect import re from glob import glob from .helpers_file import template_update_single, is_existing_file def attr_fields(spec, exclude_names=()): return [field for field in spec.__attrs_attrs__ if field.name not in e...
import Handle_twbx import os import time import logging import openpyxl from openpyxl.styles import Font from tkinter import messagebox class WorkbookDocumentation: def __init__(self, input_file): workbook_tree = Handle_twbx.xml_open(input_file) self.root = workbook_tree self.input_file = ...
''' Create 2D Voronoi polygon meshes. Various manipulation operations are provided as well. This module needs the `pyvoronoi`_ and `pyclipper`_ modules to be installed. >>> size = 3, 3 >>> grid = grid(size) >>> distort(grid, size, 0.1, seed=0) # `seed` is just used here to make the tests reproducible. >>> cells = vo...
import torch import torch.nn as nn import math import os from torch.nn.modules.loss import BCEWithLogitsLoss from evaluation import Evaluator from collections import Counter from tqdm import tqdm from torch.distributions import Categorical from reader import ERuleReader, FeatureReader from dataset import ERuleDataset,...
""" Logging ------- This provides a useful formatter which includes high-resolution time and thread names, and a set of utility functions for effective logging of operations on annotation data. Collection of log messages is mostly automated by wrapping relevant function calls and tracing the setting and getting of da...
"""ADC module B2b interface SPI Rack interface code for the ADC module. An 2 channel 24-bit ADC module with integrated ARM Cortex M4 microcontroller. Used to connect to two neighbouring IVVI rack modules Example: Example use: :: B2b = spirack.B2b_module(SPI_Rack1, 1, True) """ import logging from enum i...
import datetime import logging import os import sqlite3 from functools import wraps import tmdbsimple # noinspection PyPackageRequirements from routing import Plugin from xbmc import executebuiltin from xbmcgui import ListItem, Dialog from xbmcplugin import addDirectoryItem, endOfDirectory, setContent, setResolvedUrl ...
# Author: Andrew.M.G.Reynen from __future__ import print_function import importlib import sys from future.utils import iteritems from PyQt5 import QtWidgets, QtGui, QtCore from PyQt5.QtCore import Qt from lazylyst.UI.ActionSetup import Ui_actionDialog from CustomFunctions import dict2Text, text2Dict # De...
# -*- encoding: utf8 -*- # author: ronniecao import sys import os import numpy #import matplotlib.pyplot as plt import tensorflow as tf #from tensorboardX import SummaryWriter #from utils.utils import progress_bar #from sklearn.metrics import precision_score #from sklearn.metrics import recall_score, accuracy_score im...
# Once for All: Train One Network and Specialize it for Efficient Deployment # <NAME>, <NAME>, <NAME>, <NAME>, <NAME> # International Conference on Learning Representations (ICLR), 2020. import copy import random import torch from ofa.elastic_nn.modules.dynamic_layers import DynamicMBConvLayer, DynamicConvLayer, Dyn...
# Copyright 2015 Brocade Communications System, 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 # #...
from typing import Dict, List import numpy as np import logging import pandas as pd from sqlalchemy import create_engine import uuid import shutil from bayesianpy.jni import bayesServer, bayesServerAnalysis, bayesServerDiscovery, jp import os from bayesianpy.decorators import listify import dask.dataframe as dd from t...
import logging import warnings import sys import os from os import path as op import inspect from functools import wraps import subprocess import numpy as np import nibabel as nib from scipy import sparse from scipy.spatial.distance import cdist import matplotlib as mpl from matplotlib import cm logger = logging.getL...
import sys import pysam import operator import os import time import sqlite3 from sqlitedict import SqliteDict def tran_to_genome(tran, pos, transcriptome_info_dict): # print ("tran",list(transcriptome_info_dict)) traninfo = transcriptome_info_dict[tran] chrom = traninfo["chrom"] strand = traninfo["st...
# -*- coding: UTF-8 -*- """Unittests for emoji.core""" from __future__ import unicode_literals import random import re import emoji import pytest def ascii(s): # return escaped Code points \U000AB123 return s.encode("unicode-escape").decode() def test_emojize_name_only(): for lang_code, emoji_pack i...
# Module imports from math import log import pandas as pd import numpy as np from scipy.stats import skew, kurtosis from scipy import stats import matplotlib.pyplot as plt import seaborn as sns import qeds from statsmodels.stats.diagnostic import normal_ad from statsmodels.stats.outliers_influence import variance_infla...
# Copyright 2018 The TensorFlow 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 applica...
# i really want the V, E architechture import numpy as np import heapq import matplotlib.pyplot as plt import matplotlib.patches as patches inf = np.Inf class Visualizer: def __init__(self, planningInstance): print("Visualizer") self.planningInstance = planningInstance self.obsMap = plannin...
# -*- coding: utf-8 -*- """All torch modules that are used by the testproblems.""" import torch from torch import nn from torch.nn import functional as F from .testproblems_utils import tfconv2d from .testproblems_utils import tfmaxpool2d from .testproblems_utils import flatten from .testproblems_utils import tfconv2d...
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torchvision.models.resnet import resnet101 def agg_node(in_planes, out_planes): return nn.Sequential( nn.Conv2d(in_planes, in_planes, kernel_size=3, stride=1, padding=1), nn.ReLU(), ...
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2017 SML 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...
# -*- coding: utf-8 -*- """ Poker Monte Carlo.ipynb """ import pandas as pd import numpy as np import matplotlib.pyplot as plt # %matplotlib inline import itertools from collections import defaultdict # Seed np.random.seed(0) """ # Simulation ## Gameplay Functions """ # Functions to check winning hands # modified...
import abc import itertools import jinja2 from raco import algebra from raco import expression from raco import catalog from raco.algebra import gensym from raco.expression import UnnamedAttributeRef from raco.backends import Language from raco.pipelines import Pipelined from raco import types import logging from fun...
import numpy as np from .hmc_utils.step_size import DualAverageAdaptation from .hmc_utils.metrics import QuadMetric, QuadMetricDiag, QuadMetricFull from .hmc_utils.metrics import QuadMetricDiagAdapt, QuadMetricFullAdapt from .hmc_utils.stats import HStepStats, NStepStats, THStepStats, TNStepStats from .hmc_utils.stats ...
from dataclasses import dataclass from easydict import EasyDict as edict import io import numpy as np import os from pathlib import Path import pickle import tqdm from typing import Optional, NamedTuple from PIL import Image import fire import skimage.io import pandas as pd from data.synthia import Frame, append_xyz_to...
import argparse, logging import numpy as np import networkx as nx import node2vec import node2vec_stack import graph import construct_from_data import scipy.io import pandas as pd import pickle import sys import os import tensorflow as tf import keras import warnings import pdb import requests import d...
import threading import sys import os import linecache import dataclasses import inspect import typing import ctypes import functools import dis import opcode try: import ctypes _CTYPES_ENABLED = 0 except ImportError: _CTYPES_ENABLED = -1 # For reference; the frame level bytecode interter in cpython is i...
#!/bin/python # -*- coding: utf-8 -*- """ Unit tests for gluon.html """ import unittest from fix_path import fix_sys_path fix_sys_path(__file__) from html import * from html import verifyURL from storage import Storage class TestBareHelpers(unittest.TestCase): def testBR(self): self.assertEqual(B...
""" Do a likelihood fit. The class NestedSamplerStatModel is used for fitting applying the bayesian algorithm nestle/multinest """ from __future__ import absolute_import, unicode_literals import datetime import json import logging import os import shutil import tempfile from warnings import warn import corner import m...
import pickle, os from search_module.python_from_feng.se.base import dbs # from ..base import dbs from search_module.python_from_feng.se.config import root # from ..config import root def getTeacherName(): ''' 获取教师的信息以及教师的评分total :return: ''' # sql = "SELECT a.*,b.total from teacher a join teacher_...
# Creates Mutated population (non-dominating sorting and crowding distance functions) from __future__ import absolute_import, division, print_function, unicode_literals import numpy, os import math from math import floor # ------------------------------------------------------------------------------- # /*This progra...
# -*- coding: utf-8 -*- """ Copyright Netherlands eScience Center Function : Statistical Operator for Climate Data Author : <NAME> (<EMAIL>) First Built : 2018.07.26 Last Update : 2020.05.17 Contributor : Description : This module provides several methods to perform statistical ...
import pandas as pd import numpy as np import matplotlib.pyplot as plt import time from pqdm.processes import pqdm import itertools import multiprocessing from scipy.stats import mode from collections import defaultdict import warnings warnings.filterwarnings('ignore') train=pd.read_csv('train.csv') PRESSURE_MAX = 6...
from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ from django.utils.encoding import force_text from django_countries.fields import CountryField from gmmp.models import Monitor TOPICS = ( (1, _('(1) Women politicians, women electoral ...
""" Definitions of basic 'edits' (Actions) to transform a target into substrates """ from abc import ABCMeta, abstractmethod from typing import Tuple, Optional, List import numpy as np from rdkit import Chem from rdkit.Chem import rdchem, BondType, ChiralType, BondStereo, RWMol from rdkit.Chem.rdchem import GetPeriodi...
import os import logging # import logging_tree # import datetime import gettext from dotenv import load_dotenv import discord from discord.ext import commands # import the mafia game logic module import mafia # import the mafiabot utils module from mafiabot_utils import MafiaBot, ErrorContext, Channel, Permissions ...
# __author__ = "Mio" # __email__: "<EMAIL>" # created: 6/4/21 10:05 PM import shutil from dataclasses import dataclass from os.path import basename from pathlib import Path from typing import Optional, Callable, Union from docx.enum.table import WD_ROW_HEIGHT_RULE from docx.enum.text import WD_LINE_SPACING, WD_PARAGRA...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (c) 2021, <NAME> <<EMAIL>> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r""" --- module: digital_ocean_load_bal...
import bpy, random, numpy from blenderneuron.blender.views.synapseformerview import SynapseFormerView from blenderneuron.blender import BlenderNodeClass from bpy.props import (IntProperty, BoolProperty, StringProperty, CollectionProperty, ...
# factor 计算 import talib import numpy as np from . import talib_inds as tainds import pandas as pd def EMA(df, base, target, period, alpha=False): """ Function to compute Exponential Moving Average (EMA) Args : df : Pandas DataFrame which contains ['date', 'open', 'high', 'low', 'close', 'volume'...
# Code Author: <NAME> # Special thanks to <NAME> and <NAME> for the help with the bot # Thanks to <NAME> for help with the visual design # This program shows a bot that plays wordle and shows the stats etc. # used to draw the bots actions from platform import python_branch import pygame # used to choose a random word...
from __future__ import print_function, division import sys sys.path.append('core') import argparse import os import cv2 import time from datetime import datetime import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from tqdm import tqdm import torch import torch.nn as nn import torch.optim as o...
import traceback from typing import Optional import aiosqlite import discord from discord.ext import commands import time import discordSuperUtils from discordSuperUtils import MusicManager from tools.database_tool import DataBaseTool import datetime from bot import MyBot from py_cord_components import ( ...
#!/usr/bin/env python3 """python program to solve the world problems...""" import os, sys, string, time, logging, argparse _version = "0.1" import os, sys, math, time, random, glob import pygame import pygame.locals import game import config try: import controls except ImportError: controls = None NORMAL = g...
import time import os import binascii import re from datetime import datetime from bson.json_util import dumps, loads from flask.helpers import get_template_attribute from flask import render_template from init import app, rdb from utils.jsontools import * from utils.dbtools import makeUserMeta from db i...
import numpy as np from numpy.polynomial.polynomial import polyval from sklearn.preprocessing import OneHotEncoder from numpy.random import choice import random def get_subtype(data): d0 = (data[:,0]<0)*2. d1 = (data[:,1]<0)*1. return np.array(d0+d1) def get_ys(subtype): ys = [] for s in subtype:...
#!/bin/python3 from __future__ import annotations # because raspberry pi is on Python 3.7 and annotations are 3.9 import datetime from enum import IntEnum # https://github.com/danielorf/pyhubitat from pyhubitat import MakerAPI import logging from pathlib import Path import pytz # timezones import re import thread...
""" smc objects and utilities for controlled SMC """ from melange.smc_objects import StaticULA from melange.gaussians import * import jax.numpy as jnp from functools import partial from jax import random from jax import grad, vmap, jit from jax.lax import map, scan, cond from jax.scipy.special import logsumexp from jax...
import common, colors import psmove import time import psutil, os import random import numpy from piaudio import Audio from enum import Enum from multiprocessing import Process, Value, Array import json #How long the winning moves shall sparkle END_GAME_PAUSE = 6 KILL_GAME_PAUSE = 2 class Opts(Enum): alive = 0 ...
"""Test Dataloader time. usage: training_module.py [options] options: --data-root=<dir> Directory contains preprocessed features. --checkpoint-dir=<dir> Directory where to save model checkpoints [default: checkpoints]. --hparams=<parmas> Hyper parameters [default: ]. --prese...
import tensorflow as tf import tensorflow.contrib as tfcontrib from tensorflow.python.keras import layers from tensorflow.python.keras import losses from tensorflow.python.keras import models from tensorflow.python.keras import backend as K import utilities import scipy import numpy as np import quicklens as ql import...
#! /usr/bin/env python # coding=utf-8 #================================================================ # Copyright (C) 2019 * Ltd. All rights reserved. # # Editor : VIM # File name : backbone.py # Author : YunYang1994 # Created date: 2019-02-17 11:03:35 # Description : # #======================...
import os import random from typing import Dict, Tuple, List from overrides import overrides from collections import OrderedDict import numpy as np import pandas as pd import torch import torch.nn as nn import torch.nn.functional as F import torchvision import allennlp from allennlp.common import Registrable, Para...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Mon Aug 19th 10:58am 2019 Getting exposure time weighted spectra for NGC300 ULX, by using MATHPHA and GRPPHA Filename format is: MJD_05d_bgsub_cl50.pha """ from __future__ import division, print_function import numpy as np from astropy.io import fits impo...
import discord import random import youtube_dl as ytdl import asyncio import spotipy_edit import logging from discord.ext import commands from video import Video import config import utils from lyrics_extractor import Song_Lyrics from urlvalidator import validate_url, ValidationError from spotipy.oauth2 import SpotifyC...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division import numpy as np import healpy as hp import scipy.sparse as sp import inspect from copy import deepcopy from sklearn.neighbors import BallTree # Hierarchical Adaptive Resolution Pixelization of the Sphere # A thin python wrapper around he...
# MIT License # Copyright (c) 2020 Jdeep # 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, publish,...
import os, random import torch from torch import nn from torch.nn import functional as F from torch.nn import CrossEntropyLoss, MSELoss, GELU, BCELoss import pytorch_lightning as pl from transformers import ( BertTokenizer, BertTokenizerFast, VisualBertModel, VisualBertConfig, AdamW, get_lin...
#!/usr/bin/python # -*- coding: utf-8 -*- """ Export to id Software's MD5 format. **Project Name:** MakeHuman **Product Home Page:** http://www.makehuman.org/ **Code Home Page:** http://code.google.com/p/makehuman/ **Authors:** <NAME> **Copyright(c):** MakeHuman Team 2001-201...
# -*- coding: utf-8 -*- # Author: <NAME> <<EMAIL>> # License: BSD 3 clause """ Parse files and read images. """ import bigfish.stack as stack # parameters new_labels_1 = [ "_B02_BICD2_CHX", "_B03_PCNT_CHX", "_B04_NIN_CHX", "_B05_CCDC88C_CHX", "_B06_NIN_CHX", "_B07_CEP350_CHX", "_B08_DYNC...
# Copyright (c) 2021 <NAME> # class ZpkModel(zeros, poles, gain, dt=0) # tf = tf(num, den, dt=0) # ss = ss(A, B, C, D, dt=0) # zpk = zpk(z, p, k, dt=0) # ss = tf2ss(tf, form='reachable') # zpk = tf2zpk(tf) # tf = ss2tf(ss) # zpk = ss2zpk(ss) # tf = zpk2tf(zpk) # ss = zpk2ss(zpk, form='reachable') # frd = sys2frd(sys, ...
# Copyright (c) 2022, <NAME> # All rights reserved. # This source code is licensed under the MIT-style license found in the # LICENSE file in the root directory of this source tree. import argparse import datetime import re from collections import defaultdict from pathlib import Path import shutil import pandas as p...
# # MIT License # # Copyright (c) 2018 WillQ # # 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...
import torch import torch.nn as nn import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data as data import torchvision import numpy as np import cv2 import random import net import numpy from torchvision import transforms from utils import * import matplotlib.image as img import matplotlib.pyplot...
#!BPY """ Registration info for Blender menus: <- these words are ignored Name: 'Trajectory' Blender: 243 Group: 'Animation' Tip: 'See Trajectory of selected object' """ __author__ = '3R - R3gis' __version__ = '2.43' __url__ = ["Script's site , http://blenderfrance.free.fr/python/Trajectory_en.htm","Author's site , h...
import operator as op import os import shutil import sys from argparse import ArgumentParser from collections import defaultdict from time import time, sleep import numpy as np import pandas as pd import torch import yaml from tqdm import tqdm sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))...
import numpy as np from matplotlib import pyplot as plt import cv2 # show img = cv2.imread('f:/index.jpg', 1) cv2.namedWindow('img', cv2.WINDOW_NORMAL) cv2.imshow('img', img) k = cv2.waitKey(0) if k == ord('s'): print(chr(k)) cv2.destroyAllWindows() # draw def draw_circle(event, x, y, flags, param): if even...
################################################################################ # # MIT License # # Copyright (c) 2020 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
#!/usr/bin/python from ctwc__common import * import ctwc__distance_matrix, ctwc__cluster_rank, ctwc__data_handler, ctwc__plot, ctwc__metadata_analysis import numpy as np import traceback # Result tuple indices: RES_IND_INPUT = 0 RES_IND_P_VAL = 1 RES_IND_SEL_DIST = 2 RES_IND_REF_DIST = 3 RES_IND_NUM_SELECTED = 4 RES_...
# # Mini-project # 6: "Blackjack". # # Author: <NAME> # Email: <EMAIL> # Mini-project # 6: An Introduction to Interactive Programming in Python # @ https://www.coursera.org/course/interactivepython # Date: 2 Nov 2014 # Version: 13.0 # # Implementation of card game: "Blackjack". # # "Cards" in "Blackjack" have ...