text
stringlengths
3.07k
22.1k
# This code is part of quantastica.qiskit_toaster # # (C) Copyright Quantastica 2019. # https://quantastica.com/ # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licens...
"""Kraken - maths.xfo module. Classes: Xfo -- Transform. """ from math_object import MathObject from kraken.core.kraken_system import ks from vec3 import Vec3 from quat import Quat from mat33 import Mat33 from mat44 import Mat44 class Xfo(MathObject): """Transform object.""" def __init__(self, tr=None, ori...
import os import json import pickle from pathlib import Path import numpy as np from transformers import AutoTokenizer from torch.utils.data import Dataset, DataLoader class Vocab: def __init__(self, vocab_list, add_pad=True, add_unk=True): self._vocab_dict = dict() self._reverse_vocab_dict = dic...
""" Practical Deep Learning for Genomic Prediction ============================================== Credit: <NAME> Based on: - https://github.com/miguelperezenciso/DLpipeline Load the data ------------- Load some data. You may need to change the 'datasetdir' parameter. """ import os from pynet.datasets import DataM...
"""FlyBrainLab compatible module Classes: Config: configuration of FBL Module FBL: FlyBrainLab-compatible module to be consumed by other FBL packages Attributes: LARVA: an instance of FBL class that is loaded with Larva (Kreher2005) data ADULT: an instance of FBL class that is loaded with Adult (Halle...
import torch from torch import nn from torchvision.models import resnet from torch.nn import functional as F def resnet22(pretrained=False, progress=True, **kwargs): r"""ResNet-22 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_ Args: pretrained (...
import torch # import torchvision import torchvision.models as models import torch.nn as nn import torch.nn.functional as F import numpy as np from visual_net import resnet18 def batch_organize(out_match_posi, out_match_nega): # audio B 512 # posi B 512 # nega B 512 out_match = torch.zeros(out_match...
"""Models a simple flash and a flas with multiple inlet streams Classes: SimpleFlash -- Class for the simple flash. Inherits from UnitOperation MixAndFlash -- Class for the flash with multiple inlets. Inh from UnitOperation """ import re from sim21.unitop import UnitOperations from sim21.unitop import Mixer from si...
import numpy as np import glob import os import re import json from astropy.io import fits as fits import matplotlib.dates as mdates import h5py import datetime import numpy as np import matplotlib import matplotlib.pyplot as plt from scipy import interpolate from tqdm import tqdm def averaging_stride(arr_query, n_po...
"""Game Persistance.""" import json import datetime import logging import os import scoreboard.cbcentral.live as live_game from scoreboard.cbcentral.localdb import PLAYER_REGISTRY from scoreboard.util.configfiles import CHAINBALL_CONFIGURATION from scoreboard.ipc.server import IPC_HANDLER class CannotModifyScoresErr...
''' Define the Transformer model ''' import torch import torch.nn as nn import numpy as np import torch.nn.functional as F __author__ = "<NAME>" class ConstantsClass(): def __init__(self): self.PAD = 0 self.UNK = 1 self.BOS = 2 self.EOS = 3 self.PAD_WORD = '<pad>' ...
#!/usr/bin/env python3 import argparse from pathlib import Path parser = argparse.ArgumentParser( description="Use AP metrics to evaluate the segmentation performance of a selected directory." ) parser.add_argument( "eval", default = 'both' ,help="either 'bbox' or 'segm' or 'both', representing the type of ima...
""" Script to do something with the list of papers """ import itertools import ads from metaphone import doublemetaphone import numpy as np import pandas as pd class PapersManager: """ Manager of a list of papers Attributes ---------- paper_list : list Resulting paper list by SearchQuery...
import numpy as np import matplotlib.pyplot as plt class Error(Exception): '''Class used to create errors''' pass class gridsNotOrdered(Error): '''Raised when no the grids are not ordered with the finest grid first''' class refinement_analysis: '''Grid refinement analysis tools A series of tool...
#!/usr/bin/env python3 # diskimage.py by <NAME> # -*- coding: utf-8 -*- __version__ = '0.0.4' import os import re import pytsk3 import logging from diskimage.filesystem import FileSystem logger = logging.getLogger(__name__) # We only support .e01 images if pyewf is installed ewf = True try: import pyewf except ...
import google.auth from google.oauth2 import service_account from google.cloud import storage from gcs_inspector.file_processor import print_log def create_client(service_account_json=None): project = None if service_account_json: cred = service_account.Credentials.from_service_account_file(service_acc...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Manage AWS EC2 Security Groups and Instances.""" # pylint: disable=invalid-name,dangerous-default-value from typing import Dict, List import boto3 from botocore.exceptions import ClientError def list_vpcs(region: str) -> Dict: """Describe all VPCs.""" cli...
"""Django authentication backends. For more information visit https://docs.djangoproject.com/en/dev/topics/auth/customizing/. This authentication backend is inspired by the official edX auth-backends project: https://github.com/edx/auth-backends/blob/master/auth_backends/backends.py """ import base64 import datetime ...
from abc import abstractmethod import asyncio from dataclasses import dataclass, field, replace import os from .exceptions import ServerException from aionetworking.compatibility_os import loop_on_close_signal, send_ready, send_stopping, send_status, send_notify_start_signal from aionetworking.logging.loggers import g...
""" """ import rdkit as toolkit from rdkit import Chem from .utils import _symbols, ANGSROM_2_BOHR import warnings import copy def mol_from_json(symbols, connectivity, geometry, permute_xyz=False): """ Generate RDkit.Chem.Mol from QCSchema molecule specs. Parameters ---------- inp_molecule: dict ...
# -*- coding: utf-8 -*- """ # MANIFESTO ANALYSIS ## IMPORTING LIBRARIES """ # Commented out IPython magic to ensure Python compatibility. # %%capture # !pip install tika # !pip install clean-text # !pip install gradio # Commented out IPython magic to ensure Python compatibility. import io import random import matpl...
#!/usr/bin/python #-*- coding:utf8 -*- import os.path import sys import re import time import threading import urllib import urllib.request import urllib.parse import socket #设置全局超时 from .util import sec2time, rangable from .common import ProgressBar ## 多线程批量剪切数据 class ThreadCutout(threading.Thread): ...
import open3d as o3d import argparse import os import sys import copy import logging import numpy import numpy as np import torch import torch.utils.data import torchvision from torch.utils.data import DataLoader from tensorboardX import SummaryWriter from tqdm import tqdm # Only if the files are in example folder. BA...
import os import sys import glob import shutil import argparse import mv3dhelper import zrpc import time def help_information(): print('Usage: python run_multicam_extrin_calib.py <workspace_folder> <dataset_folder> <cam_num> <output_folder> ') def merge_undist_cam_folders(undist_cam_folder_list, merged_undist_c...
# ============================================================================= # # Jade Tree Personal Budgeting Application | jadetree.io # Copyright (c) 2020 Asymworks, LLC. All Rights Reserved. # # ============================================================================= from sqlalchemy import and_ from sqlalc...
import unittest import os from PyAnalysisTools.AnalysisTools.RegionBuilder import Region, RegionBuilder, Cut from PyAnalysisTools.PlottingUtils.PlotConfig import parse_and_build_plot_config from PyAnalysisTools.base.YAMLHandle import YAMLLoader as yl cwd = os.path.dirname(__file__) class TestCut(unittest.TestCase):...
""" detalied balance calculation of many junction devices Copyright 2017 <NAME>, Toyota Technological Institute Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache...
from typing import Tuple, List, Dict, Optional, Sequence from collections import defaultdict import string from pathlib import Path from Bio import SeqIO import subprocess from .typed import PathLike from .constants import IUPAC_CODES from .dataset import ThreadsafeFile import numpy as np from scipy.spatial.distance im...
# -*- coding: utf-8 -*- # Max-Planck-Gesellschaft zur Förderung der Wissenschaften e.V. (MPG) is # holder of all proprietary rights on this computer program. # You can only use this computer program if you have closed # a license agreement with MPG or you get the right to use the computer # program from someone who is...
""" Help with file download when building kafka and zookeeper docker images. This will: - download software archive - verify archive signature - unpack the archive content into the download folder For the rest of the multi-stage docker building process see `images/kafka/Dockerfile` and `images/zk/Dockerf...
# -*- coding:utf8 -*- """ This file is part of the repo: https://github.com/tencent-ailab/hifi3dface If you find the code useful, please cite our paper: "High-Fidelity 3D Digital Human Creation from RGB-D Selfies." <NAME>*, <NAME>*, <NAME>*, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, and <NAME>. arXiv: https:/...
import numpy as np; import tensorflow as tf def multi_area_estimator( input_domain, net_model, estimation_precision=100 ): """ Estimate the output bound for each given domain. This method provide an UNDERESTIMATION and the bound are computed with a sampling process. A point cloud is sampled from the input domain ...
""""This class is used to read claims data from db into the claims model.""" import itertools from collections import defaultdict from claims_to_quality.analyzer.models import claim from claims_to_quality.config import config from claims_to_quality.lib.connectors import idr_queries from claims_to_quality.lib.qpp_loggi...
# coding: utf-8 import os import cv2 import numpy as np import random import shutil import face_recognition from face_detect.config import DATA_ROOT_PATH from multiprocessing import Pool face_classify_path = os.path.join(DATA_ROOT_PATH, 'face_classify') face_cascade = cv2.CascadeClassifier(r'scripts/haarcascade_fronta...
from os import path as pathlib, mkdir, chdir, listdir from json import dump, load, loads import shutil from typing import Set from shutil import rmtree from .structs import DataDict from .graph import DatasetDef, GraphDef from .abc import AbsDataset from .logging import Logger from .data import setup APP = DataDict({...
# Imports import torch import torch.nn as nn import numpy as np import pandas as pd import re # for using regular expressions import torch.nn.functional as F import torch.optim as optim from collections import Counter from torch.utils.data import DataLoader def create_vocab(stopwords_removed_sentences): """Create ...
import starry import numpy as np from scipy.linalg import block_diag from scipy.sparse import diags import pytest @pytest.fixture(scope="module", params=[1, 2]) def map(request): nc = request.param map = starry.DopplerMap(ydeg=10, udeg=2, nt=3, nc=nc, veq=50000) map.load(maps=["spot", "earth"][:nc]) y...
from typing import Any, Tuple, List, Union, Iterable, Dict, Optional, Callable import re from dataclasses import dataclass from itertools import groupby from sphinx.ext.autodoc import Documenter from sphinx.directives import ObjectDescription from sphinx.roles import XRefRole from sphinx.domains import Domain, ObjTyp...
from enum import Enum from queue import PriorityQueue import numpy as np import operator as op import time from enum import Enum from queue import PriorityQueue import matplotlib.pyplot as plt class Action(Enum): """ Actions when doing 2.5D A* search. Actions are only stored as how the will alter the loca...
import os from os.path import expanduser from zipfile import ZipFile from meps_db.utilities.universal_utilities import UniversalUtilityFunctions as util from meps_db.components.reference import ( FYPCDF_PUF_LOOKUP, MCDF_PUF_LOOKUP, PMDF_PUF_LOOKUP, DVDF_PUF_LOOKUP, OMEDF_PUF_LOOKUP, HISDF_PUF...
#-*- coding:utf-8 -*- import functools import datetime import time import logging from inspect import getargspec from types import GetSetDescriptorType, MemberDescriptorType def with_metaclass(metaclass): """Return a decorator to create a new class with metaclass.""" def decorator(cls): d = dict((k,v...
import argparse import random import re import sys import time import json from pathlib import Path from urllib.parse import parse_qs, urlsplit import browser_cookie3 import colorama import requests import urllib3 from bs4 import BeautifulSoup from pack.banner import banner from pack.colors import * ...
# # The MIT License (MIT) # # Copyright 2019 AT&T Intellectual Property. All other rights reserved. # # 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 l...
import datetime, re; rTime = re.compile( r"^\s*" + r"(\d{1,2})" + r":" + r"(\d{1,2})" + r"(?:" + r":" + r"(\d{1,2})" + r"(?:" + r"\." + r"(\d{1,6})" + r")?" + r")?" + r"(?:" + r"\s*(am|pm)" + r")?" + r"\s*$", re.I ); def fbIsValidInteger(uValue, uMinValueInclusiv...
import json from django.http.response import HttpResponse, HttpResponseForbidden from django.shortcuts import render from django.http import JsonResponse import Utils.views as a import time import mimetypes import json from threading import Lock import threading import requests import json import mimetypes import time...
import datetime,time,os,sys,requests,json if (sys.platform.lower().startswith('linux')): OS_TYPE = 'linux' elif (sys.platform.lower().startswith('mac')): OS_TYPE = 'macintosh' elif (sys.platform.lower().startswith('win')): OS_TYPE = 'windows' else: OS_TYPE = 'invalid' # Get our current directory OUTPU...
import time import h5py import numpy as np from pathlib import Path from tqdm import tqdm from typing import List, Optional, Union from sklearn import preprocessing import MDAnalysis from MDAnalysis.analysis import distances, rms, align from concurrent.futures import ProcessPoolExecutor from mdtools.analysis.order_par...
from typing import List, Dict import os import colorsys import cv2 import logging from pyannotate.annotation_loader import AnnotationLoader from pyannotate.annotation_object import BoxAnnotation, TextBoxAnnotation # load logger logger = logging.getLogger("VideoAnnotations") class Annotations: _frames = [] ...
import os import boto3 import botocore import jinja2 import json import subprocess import logging import pathlib import tqdm from traitlets import ( Unicode, default ) from jhubctl.clusters.cluster import Cluster from ....utils import get_template CLIENT = boto3.client('cloudformation') CREATE_WAITER = CLIE...
import io import sys import shlex import random import difflib import datetime as dt import subprocess as sp import pkg_resources import rich import rich.box import rich.table from bumpver import v2version def update(content, marker, value): begin_marker = f"<!-- BEGIN {marker} -->" end_marker = f"<!-- EN...
import asyncio import hashlib import logging import struct from . import exceptions, stun from .utils import random_transaction_id logger = logging.getLogger("turn") TCP_TRANSPORT = 0x06000000 UDP_TRANSPORT = 0x11000000 def is_channel_data(data): return (data[0] & 0xC0) == 0x40 def make_integrity_key(usernam...
"""Provides SeriesLoader object and helpers, used to read Series data from disk or other filesystems. """ from collections import namedtuple import json from numpy import array, arange, frombuffer, load, ndarray, vstack from numpy import dtype as dtypeFunc from scipy.io import loadmat from cStringIO import StringIO imp...
import os import torch import torchvision import json import numpy as np from PIL import Image from .builder import DATASETS from ..curve_utils import BezierSampler, get_valid_points class _BezierLaneDataset(torchvision.datasets.VisionDataset): # BezierLaneNet dataset, includes binary seg labels keypoint_col...
import numpy as np from pyproj import Proj, Geod from dateutil.parser import parse as parse_date from .geo import get_sza def get_abi_proj(dataset): return Proj(proj='geos', h=dataset.goes_imager_projection.perspective_point_height, lon_0=dataset.goes_imager_projection.longitude_of_projection_origi...
from __future__ import annotations import json, re from textwrap import dedent from typing import Any, Iterable from attr import Factory, asdict, define from cattr import unstructure from foodprep.fdc_models import ( FDCFoodClassType, FDCFoodItemModel, FDCFoodNutrientModel, FDCFoodPortionModel, ) fro...
"""Collection of RCNN variants The reference paper: - Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks, NIPS 2015 - <NAME>, <NAME>, <NAME>, <NAME> - https://arxiv.org/abs/1506.01497 The reference implementation: 1. Caffe and Python utils - https://github.com/rbgirshick/py-faster...
""" Show the information of IFD {EXIF, GPS}. combine all of it into the TreeView. """ from pathlib import Path if '__file__' in globals(): PLUGIN_IFD_TAG = Path(__file__) # https://www.awaresystems.be/imaging/tiff/tifftags/privateifd.html try: import PIL.Image import PIL.ExifTags # https://www.awaresys...
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
import numpy as np import pyqtgraph as pg from matplotlib.colors import LinearSegmentedColormap import sys import os from acconeer_utils.clients import SocketClient, SPIClient, UARTClient from acconeer_utils.clients import configs from acconeer_utils import example_utils from acconeer_utils.pg_process import PGProcess...
from functools import reduce from typing import Iterable, Tuple, Type from django.conf import settings from django.db import models from django.db.models import QuerySet from . import utils from .censor import Censor from .utils import import_class from .exceptions import InvalidCommandError, UnknownFieldError from ....
# Copyright 2019 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...
import json import os.path from django.shortcuts import render, redirect from op_tasks.models import UserProfile, Product, Dataset, OpTask, TaskListItem, Experiment from django.contrib.auth.decorators import login_required from django.views.decorators.csrf import csrf_protect from django.http import JsonResponse from ...
import markdown import os from prose_wc import wc import pypandoc from django.contrib.auth.models import User from django.urls import reverse from django.db import models from django.template.defaultfilters import slugify from django.utils import timezone def original_file_path(instance, filename): return os.pat...
import pandas as pd import numpy as np from datetime import datetime, timedelta train = pd.read_csv('train.csv') test = pd.read_csv('test.csv') store = pd.read_csv('store.csv') #1、去除销量中的极值,由于无法估计极值对结果的影响,所以拟合模型的时候可以进行两次,去除极值和未去除极值 #再试一下标准差标准误差 def rm_outliers(df): q1 = np.percentile(df['Sales'], 25, axis=0) ...
# Copyright (c) 2019 ETH Zurich, <NAME>, <NAME>, <NAME> # This file, licensed under Apache 2.0 was adapted from # https://github.com/lukasc-ch/ExtendedBitPlaneCompression, # commit 0b175d0d35937b3f2724fe59b0c6cc82802556f6 import torch import torchvision as tv import numpy as np import random import math from tqdm impo...
from enum import IntEnum from typing import Union, overload # ref: https://www.3dbrew.org/wiki/Titles # ref: https://wiiubrew.org/wiki/Title_database TTitleIDInput = Union['TitleID', str] TContentIDInput = Union['ContentID', str] class TitlePlatform(IntEnum): WII = 0x0001 _3DS = 0x0004 WIIU = 0x0005 ...
## This file is part of Scapy ## See http://www.secdev.org/projects/scapy for more informations ## Copyright (C) <NAME> <<EMAIL>> ## This program is published under a GPLv2 license """ Global variables and functions for handling external data sets. """ import os import re import sys import time from scapy.dadict i...
import numpy as np import argparse, sys, os, time import progressbar from keras.optimizers import SGD from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, TensorBoard, EarlyStopping, CSVLogger from datasets import UT, NTU_V2, SBU, NTU from datasets.data_generator import DataGeneratorSeq ...
# -*- coding: utf-8 -*- import sys #dicionario das instruções com seus respectivos codigos hexadecimais e operando(s) dic_instrucoes = { 'nop': [0x01, []], 'iadd': [0x02, []], 'isub': [0x05, []], 'iand': [0x08, []], 'ior': [0x0b, []], 'dup': [0x0e, []], ...
from .utils import PyKEArgumentHelpFormatter import re import numpy as np from astropy.io import fits as pyfits from astropy.stats import LombScargle from matplotlib import pyplot as plt from tqdm import tqdm from . import kepio, kepmsg, kepkey, kepstat __all__ = ['kepdynamic'] def kepdynamic(infile, outfile=None, ...
import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import numpy as np from copy import copy # output the index of when v has a continuous string of i # get_runs([0,0,1,1,1,0,0],1) gives [2],[5],[3] def get_runs(v, i): bounded = np.hstack(([0], (v==i).astype(int), [0])) difs = np....
import enum import typing from datetime import datetime import arrow import itsdangerous from keg_storage.utils import expire_time_to_seconds ProgressCallback = typing.Callable[[int], None] class ListEntry(typing.NamedTuple): name: str last_modified: arrow.Arrow size: int class FileMode(enum.Flag): ...
import argparse import os.path import torch import fairseq.tokenizer from fairseq import options, utils from fairseq.models import ( transformer, register_model, register_model_architecture, FairseqEncoderDecoderModel, FairseqEncoder, FairseqDecoder ) from fairseq.data import ( data_utils, Dictionary ) fr...
""" mostly stolen from https://gist.github.com/EvieePy/ab667b74e9758433b3eb806c53a19f34 """ import discord from discord.ext import commands from modules import utils import asyncio import itertools import re import sys import traceback from functools import partial from async_timeout import timeout from youtube_dl i...
from ai_agent.templates import * def get_bitmap(b): st = "" for y in range(HEIGHT): st += (''.join(['01'[ (b>>(y*WIDTH+x))&1 ] for x in range(WIDTH)])) #print any 8x30 bitmap return st[len(st)-WIDTH::-1] def print_bitmap(b): for y in range(HEIGHT): print(' '.join(['01'[ (b>>(y*WIDTH...
import logging import math from operator import itemgetter from typing import Tuple import cv2 import numpy as np from Exceptions import TooMuchFacesException, TooMuchEyesException logging.basicConfig(level=logging.INFO) LOGGER = logging.getLogger('eye_scanner') EYE_CASCADE = cv2.CascadeClassifier( '/Users/maxi...
#################################### # Author: <NAME> # Date: July 2017 # Project: Document Modeling with External Attention for Sentence Extraction #################################### import sys sys.path.append('../../common') from sklearn.metrics import average_precision_score as aps from sklearn.metrics.pairwise ...
import dash from dash.dependencies import Input, Output import dash_table import dash_core_components as dcc import dash_bootstrap_components as dbc import dash_html_components as html import plotly.graph_objs as go import plotly.express as px import pandas as pd import numpy as np import pyabf import os import sys imp...
from jedi._compatibility import utf8_repr, encoding, is_py3 class _NodeOrLeaf(object): """ This is just here to have an isinstance check, which is also used on evaluate classes. But since they have sometimes a special type of delegation, it is important for those classes to override this method. ...
# Copyright (C) 2017-2019 <NAME>, Webis Group # # 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 agree...
import argparse import json import logging import os import sys import time import csv import pandas as pd import dask.dataframe as dd from dask.distributed import Client from langdetect import detect as detect_lang, DetectorFactory DetectorFactory.seed = 0 SUPPORTED_LANGUAGES = {'ar', 'nl', 'en', 'de', 'fr', 'it', '...
import json from google.appengine.ext import ndb from CONSTANTS import MOVE_TYPES class InvalidMove(Exception): pass class BaseModel(ndb.Model): created = ndb.DateTimeProperty(auto_now_add=True) modified = ndb.DateTimeProperty(auto_now=True) class Pool(BaseModel): setup = ndb.JsonProperty(requir...
"""Search information and definitions""" import math import re import urllib import discord from discord.ext import commands from mediawiki import MediaWiki from mediawiki import exceptions as MediaExceptions import koabot.utils.net as net_utils from koabot import koakuma from koabot.cogs.botstatus import BotStatus ...
import itertools import pickle import sys from selenium.webdriver import Firefox # pip install selenium import course_class # from selenium.webdriver.support.ui import WebDriverWait sys.setrecursionlimit(2000) subj_url = 'http://www.graduate.technion.ac.il/eng/subjects/?SUB=' driver_timeout = 30 driver_timeout2 = 2...
#<NAME> 180401033 """""İnterpolasyon:Polinomlar kullanarak, dataların bilindiği noktalardan yeni dataların üretilmesini sağlayan bir eğri uydurma metodudur. Kolerasyon: Korelasyon iki ya da daha fazla değişken arasındaki doğrusal ilişkiyi gösterir. Gaus Eleme Yöntemi:Bu yöntem genel bir n denklemli ve n bilinmeyenli l...
from functools import partial from logging import getLogger from pathlib import Path from shutil import rmtree from time import perf_counter from typing import Callable, Optional, Set from recording_script_generator.app.io import * from recording_script_generator.core import * from recording_script_generator.core.type...
# coding=utf-8 import logging from urllib import urlencode import webapp2 from google.appengine.api import urlfetch from webapp2_extras import json __author__ = 'm_messiah' __url__ = "https://spell-bot.appspot.com" from re import compile eng_letters = compile(r"[a-z]") RUS = (1072, 1073, 1074, 1075, 1076, 1077, 1105...
# -*- coding: utf-8 -* import mimetypes import os import datetime from django.db import models from django.contrib.auth.models import User from django.template.defaultfilters import slugify from taggit.managers import TaggableManager #Local Imports from libscampi.contrib.cms.renaissance import settings as local_sett...
#!/usr/bin/env python # Written by <NAME> # For CIGITI at the Hospital for Sick Children Toronto # Tested on LCA50-025-72F actuator import csv import time from pathlib import Path from glob import glob from math import pi from lac1 import LAC1 from collections import deque def connect(port, silent=True): rig =...
import heapq import numpy as np from scipy.optimize import minimize from scipy.special import airy from .. import sft, usv # import fourier as ft # from . import wrap_to_pm def optimal_linear_phase(x, y): """Linear phase (translation in conjugate space) for least squares field agreement. For two fields ...
''' Programa fatora um valor, verifica se um número é primo, obtem os divisores dado um valor e etc. Voltado para problemas básicos de aritmética. ''' # *** *** *** funções *** *** *** def divisores(n): ''' Retorna uma sequência, contendo todos os divisores do número passado. Também conte...
# # Copyright 2016, 2019-2020 <NAME> # # ### MIT license # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
import binascii from logger import logger class TOKEN: SE = 'SE' NOP = 'NOP' DM = 'DM' BRK = 'BRK' IP = 'IP' AO = 'AO' AYT = 'AYT' EC = 'EC' EL = 'EL' GA = 'GA' SB = 'SB' WILL = 'WILL' WONT = 'WONT' DO ...
# Author: <NAME> <<EMAIL>> # URL: http://code.google.com/p/sickbeard/ # # This file is part of Sick Beard. # # Sick Beard 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,...
# 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...
import datetime from info import constants, db from info import user_login from info.modules.admin import admin_blu from flask import render_template, request, current_app, session, redirect, url_for, g, jsonify from info.models import User, News, Category from info.utils.response_code import RET from info.libs.image...
# coding=utf-8 #pylint: disable-msg=C0103 """ Twitter module for Funkshelper/Sopel -- allows users to vote on tweets and ops to post them. Licensed under Mozilla Public License Version 2. """ import re import readline import datetime import os from os import path from os.path import isfile, exists import shutil impo...
#!/usr/bin/env python3 from Circuit.Transistor import * import itertools class Node: def __init__(self, name, netlist): self.owner_ = netlist self.name_ = name self.terminals_ = set() def __repr__(self): ret = f'<{self.__class__.__name__}>'+self.name_ + "\n" for termi...
""" A :class:`Config` object is required connect to Conservator. There are a variety of ways to create an instance of config. In general, use :func:`Config.default`. """ import os import json import logging logger = logging.getLogger(__name__) class ConfigError(Exception): pass class ConfigAttribute: def...
"""File used to redirect the user depending on which module he wants to use.""" from ducanator import use_ducanator import settings import riven_relisting import utils import deal_scanner import url_creation import riven_requests import process_data import buy_scanner import endo_scanner import relic_sca...