text
stringlengths
6.04k
39.5k
r""" D:\apps\skitai\skitai\protocol\smtp>D:\apps\xlmail\lib\sendlufex.py send: 'ehlo [127.0.0.1]\r\n' reply: '250-smtp.gmail.com at your service, [xx.xx.xx.xx]\r\n' reply: '250-SIZE 35882577\r\n' reply: '250-8BITMIME\r\n' reply: '250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH\r\n' reply: '250-ENHANCE...
import numpy as np import iminuit as minuit import time import functools import logging from scipy.special import ndtri, erf from collections import OrderedDict from copy import deepcopy import numpy as np # --- Helper functions ------------------------------------- # def set_default(func = None, passed_kwargs = {})...
from __future__ import annotations from io import SEEK_END, SEEK_SET, BytesIO from typing import TYPE_CHECKING if TYPE_CHECKING: # pragma: no cover # absolute imports for Sphinx import range_streams # for RangeStream, RangeRequest from ranges import Range from .range_utils import ALWAYS_SET_TOLD, range_le...
# -*- coding: utf-8 -*- """The base class for xonsh shell""" import io import os import sys import time import builtins from xonsh.tools import ( XonshError, print_exception, DefaultNotGiven, check_for_partial_string, format_std_prepost, get_line_continuation, ) from xonsh.platform import HAS_P...
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Name: game.py # Purpose: Represents Games and GameCollections # # Authors: <NAME> # # Copyright: Copyright © 2015 <NAME> / cuthbertLab # License: BSD, see license.txt # -------------------...
# -*- coding: utf-8 -*- """ controller.route ~~~~~~~~~~~~~~~~ Implements the route for controller :author: Feei <<EMAIL>> :homepage: https://github.com/wufeifei/cobra :license: MIT, see LICENSE for more details. :copyright: Copyright (c) 2016 Feei. All rights reserved """ import tim...
# Copyright 2017 The Forseti Security 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...
# -*- coding: utf-8 -*- # Copyright (c) 2016-2020 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. import inspect from pandapower.auxiliary import _check_bus_index_and_print_warning_if_high, \ _check_gen_index_and_print_warn...
""" This file should contain only functions that operates on pixels, not on images, so no references to PIL are necessary and the module can be used also through Jython """ import numpy import sys import time from worldengine.common import count_neighbours from worldengine.common import anti_alias as anti_alias_chann...
import os from pathlib import Path from io import BytesIO import time import re import hashlib import threading from functools import wraps import logging import mimetypes import urllib.request as request import http.cookiejar as http_cookiejar from http import HTTPStatus # import ssl # ssl._create_default_https_contex...
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: train.py import os import argparse import cv2 import shutil import itertools import tqdm import numpy as np import json import six import tensorflow as tf assert six.PY3, "FasterRCNN requires Python 3!" from tensorpack import * from tensorpack.tfutils.summary imp...
# MIT License # # Copyright The SCons Foundation # # 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, ...
#!/usr/bin/env python # # Public Domain 2014-2018 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compil...
#!/usr/bin/env python3 import errno import os import sys import logging import argparse import re from common import ( config as c, pb, Colors, get_cmd_or_die, get_rust_toolchain_libpath, NonZeroReturn, regex, setup_logging, die, ensure_dir, on_mac, ) from enum import Enum ...
# -*- coding: utf-8 -*- """ Functions to find and print differences """ from __future__ import print_function import binascii from difflib import unified_diff import os import string from subprocess import Popen, PIPE import sys import tempfile import MySQLdb from . import LOG def is_printable(str_value): """ ...
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) """ This test checks the binary packaging infrastructure """ import os import stat import shutil import pytest import argp...
import asyncio import json import logging import math import os import tempfile import time from datetime import datetime import aiohttp_jinja2 import jinja2 import yaml import yamlordereddictloader from aiohttp import web from aiohttp.client_exceptions import ClientOSError from jpype import java, isJVMStarted, shutdo...
# This framework folder is the Discord Framework my bot use. # You can use the code in this directory for your bot. # I am not really planning on uploading it to PyPI though... from inspect import getmembers, getsource, signature from discord.ext import commands as _commands from requests import post as _post_message ...
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015-2018 by Exopy Authors, see AUTHORS for more details. # # Distributed under the terms of the BSD license. # # The full license is in the file LICENCE, distributed with this software. # ---------------...
# coding: utf-8 # pylint: disable=invalid-name, too-many-statements, no-self-use # pylint: disable=too-many-arguments """Training Library containing training routines.""" from abc import ABC import collections import os import pickle from typing import Callable, List, Optional, Union, Dict, Tuple, TypeVar, cast from ty...
#!/usr/bin/python ### IMPORTS from __future__ import print_function import numpy as np import fnmatch import os import keras.optimizers from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential,Model from keras.layers import Dropout, Flatten, Dense, Input from keras.callbacks impor...
import os import json import shutil import pandas import numpy as np import tifffile import importlib import time import logging import pickle import datetime from matplotlib import pyplot as plt from typing import List from typing import Tuple from typing import Union from typing import Dict from typing import Optiona...
# -*- encoding: utf-8 -*- # # Copyright © 2014-2015 eNovance # # 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...
#!/usr/bin/env python """ Redis Enterprise Cluster log collector script. Creates a directory with output of kubectl for several API objects and for pods logs unless pass a -n parameter will run on current namespace. Run with -h to see options """ import argparse import json import logging import os import re import s...
from os import system from os.path import exists import base64 ## png encoding import math from . import basic ## convert_svg_to_png from .basic import MONOSPACE_FONT_FAMILY from .html_colors import CB_RED, CB_GREEN, CB_BLUE, CB_ORANGE, CB_PURPLE ## these are not actually defined by the language... all_text_height = ...
import json import yaml import logging from collections import OrderedDict, Counter import tempfile import shutil import os import subprocess from pandas import DataFrame import random # the following is necessary to get pretty representations of # OrderedDict and defaultdict instances in YAML def _represent_dict_orde...
from api import * from closeup_dibujos import * from cuartos import Cuartos import datetime from dibujos_cuartos import * from frases import * from instrucciones import * from jugador import Jugador from objetos import Objetos from partida import Partida from games_all import * import time def records(): print(re...
import argparse import os import random import string import subprocess import sys import time from multiprocessing import cpu_count, Pool from threading import Thread from scripts.test_util import cleanup, run_command """ Script to stress test CodaLab's backend. The following is a list of what's being tested: - Lar...
""" This module defines functions used used for loading and processing images. The edge detection algorithms defines here are optimized for documents with thin lines and a high degree of variability. """ import math import random import re import cv2 import numpy as np from pytesseract import image_to_string from sc...
""" Copyright 2018, Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE file in project root for terms. This module implements a Panoptes Plugin that can poll Cisco NX-OS devices for Device Metrics """ import math import re from cached_property import threaded_cached_property from yahoo_panopte...
# Copyright (c) 2021 zfit from typing import Optional, Union import tensorflow as tf import tensorflow_addons as tfa import tensorflow_probability as tfp import zfit.z.numpy as znp from .. import exception, z from ..core.data import Data, sum_samples from ..core.interfaces import ZfitPDF from ..core.sample import a...
import requests import pandas as pd import time import json import logging import sys import os from concurrent import futures from concurrent.futures import ProcessPoolExecutor from prometheus.apis import buildUrl from utils.converterutils import convertStringToMap,convertStrToInt, convertStrToFloat from utils.strut...
from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.dispatch import receiver from django.template import Context, Template from hashlib import md5 import glob import httplib import itertools import os import re import time import unittest from mediasync import backends,...
from __future__ import absolute_import from __future__ import print_function import copy import os import shutil import glob import warnings import sys import importlib import uuid import hashlib from ._all_keywords import julia_keywords from ._py_components_generation import reorder_props # uuid of DashBase Julia p...
import torch import torch.nn as nn import torch.nn.functional as F from collections import OrderedDict import math def conv3x3(in_planes, out_planes, stride=1): "3x3 convolution with padding" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False) clas...
# encoding:utf-8 from urllib.parse import urlparse import requests from requests.exceptions import InvalidSchema, MissingSchema import os import imghdr import time import random import re import hashlib from datetime import datetime import logging import enum from imgurpython import ImgurClient import yaml import pym...
# Load modules import dash import dash_html_components as html import dash_core_components as dcc import dash_bootstrap_components as dbc from dash.dependencies import Input, Output import altair as alt import numpy as np import pandas as pd import helper as he from vega_datasets import data # disable Altair limits al...
""" Should always be faithful duplicate of sequence/BioReaders.py Duplicated here for tofu installation. This one is called via cupcake.io.BioReaders. """ import re, sys, pdb from collections import namedtuple import pysam Interval = namedtuple('Interval', ['start', 'end']) class Sim...
from numpy.lib.polynomial import poly from numpy.lib.twodim_base import tri from plateaupy.plobj import plmesh, plobj from plateaupy.plutils import * from plateaupy.ploptions import ploptions from plateaupy.thirdparty.earcutpython.earcut.earcut import earcut import numpy as np import copy import pickle import sys impor...
import copy import torch import argparse import logging import glob import os import torch.nn.functional as F from torch import nn from transformers import (WEIGHTS_NAME, AdamW, RobertaConfig, # RobertaForSequenceClassification, RobertaToke...
#!/usr/bin/env python2 r""" Detects problems in CoreCommerce product data. Requires a [website] section in config file for login info. The rules file (default=cclint.rules) contains product value checks in YAML format. The schema is: constants: CONST_NAME1: CONST_VALUE1 CONST_NAME2: CONST_VALUE...
# -*- coding: utf-8 -*- # Copyright © 2017 <NAME> # Distributed under the terms of the MIT license from __future__ import print_function import os import math def rounded_corner(start, apex, end, rad): # Translate all points with apex at origin start = (start[0] - apex[0], start[1] - apex[1]) end = (end[0] - ...
# Copyright 2018, <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 applicable law or agre...
# Copyright 2013 Hewlett-Packard Development Company, L.P. # # Author: <NAME> <<EMAIL>> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
import os import textwrap import pycparser from pycparser import c_ast, c_generator, parse_file AUTO = '# This file is automatically generated' GRB_DEFINES = { 'GRB_VERSION': 'int64_t', 'GRB_SUBVERSION': 'int64_t', } SS_DEFINES = { '*GxB_IMPLEMENTATION_ABOUT': 'char', '*GxB_IMPLEMENTATION_DATE': 'char'...
# Licensed under an MIT style license -- see LICENSE.md import numpy as np import lalsimulation as lalsim from pesummary.utils.utils import iterator, logger __author__ = ["<NAME> <<EMAIL>>"] def _lal_approximant_from_string(approximant): """Return the LAL approximant number given an approximant string Para...
import logging import pathlib from descriptors import cachedproperty from torchtext import data import torch import torch.nn.functional as F from torch.utils.data import ConcatDataset from sklearn.metrics import confusion_matrix import numpy as np from .modules import CNNText from .processing import FieldProcessor, S...
import os import time import torch import torch.nn as nn import numpy as np import copy import heapq import json import flextensor.space as Space from flextensor.utils import assert_print global_walker_judger_model_path_prefix = "walker_judger_model_" global_walker_judger_data_path_prefix = "walker_judger_data_" glob...
from copy import deepcopy from itertools import product from os import environ from .env import apply_overrides class ProjectConfig: def __init__(self, root, config, plugin_manager=None): self.root = root self.config = config self.plugin_manager = plugin_manager self._matrices = ...
import torch import pickle from utils import * from time import time from data import * class Model(object): def __init__(self, args, my_id_bank): self.args = args self.my_id_bank = my_id_bank self.model = self.prepare_model() def prepare_model(self): if self.my_id...
# Copyright (c) 2021 OpenKS Authors, Dlib Lab, Peking University. # All Rights Reserved. import re import os import pandas as pd from tqdm import tqdm import pickle as pkl from openpyxl import load_workbook import numpy as np from sentence_transformers import SentenceTransformer from sknetwork.ranking import PageRa...
import torch import torch.nn as nn import numpy import sys from .a_flows import MAFStack numpy.set_printoptions(threshold=sys.maxsize) def _strictly_tril_size(n): return n * (n-1) // 2 class Coder(nn.Module): def __init__(self, input_dim, context_dim, hidden_dims, output_dim, output_con...
# -*- coding: utf-8 -*- """ File for base geometry class built using the Geomdl class """ import numpy as np from geomdl import NURBS import matplotlib.pyplot as plt from matplotlib.collections import PatchCollection import matplotlib.patches as mpatches class Geometry2D: ''' Base class for 2D domains I...
import json from collections import OrderedDict from plenum.common.txn import TXN_TYPE, TARGET_NYM, ORIGIN, DATA, TXN_ID, TXN_TIME, \ RAW, ENC, HASH, NAME, VERSION, TYPE, POOL_TXN_TYPES, ALIAS, \ STEWARD, NYM, VERKEY from plenum.common.types import f, TaggedTuple ROLE = 'role' NONCE = 'nonce' ATTRIBUTES = "at...
# -*- coding: utf-8 -*- """The output and formatting multi-processing engine.""" import collections import heapq from plaso.containers import events from plaso.engine import processing_status from plaso.lib import bufferlib from plaso.lib import definitions from plaso.multi_process import engine from plaso.multi_proc...
# coding=utf-8 ''' Creation of strip of images ''' from __future__ import print_function from .. import batch from PIL import Image as ImPIL from PIL import ImageDraw, ImageFont import os.path import ee import logging def listEE2list(listEE, type='Image'): relation = {'Image': ee.Image, 'Number': ...
# Core Django imports. from django.contrib.auth.models import User from django.forms.models import model_to_dict from django.test import Client from django.test import TestCase from django.urls import reverse # Third-party Django app imports. from model_mommy import mommy # Blog application imports. from blog.models....
# pylint: disable=no-member import sqlglot.expressions as exp from sqlglot.generator import Generator from sqlglot.helper import RegisteringMeta, csv, list_get from sqlglot.parser import Parser from sqlglot.tokens import Token, Tokenizer, TokenType class Dialect(metaclass=RegisteringMeta): identifier = None q...
from summa import keywords from flask import Flask ,render_template ,request, url_for, redirect,g import module1 as m import video1 as v import video1 as v1 import video2 as v2 import video3 as v3 import video4 as v4 import pymysql import mlpnew2 as mlp from flask import Flask,flash, session from flask import Flask, f...
# -*- coding: utf-8 -*- # # This file is part of couchapp released under the Apache 2 license. # See the NOTICE for more information. from __future__ import with_statement import base64 import logging import mimetypes import os import os.path import re import urlparse import webbrowser from copy import copy from ite...
import sublime import sublime_plugin import os import json import threading import copy import logging import traceback import sys VERSION = int(sublime.version()) if VERSION >= 3006: from FindKeyConflicts.lib.package_resources import * from FindKeyConflicts.lib.strip_commas import strip_dangling_commas f...
# Copyright 2019 ZTE corporation. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # pylint: disable=C0103, R0914, W1203, E0401, E0611, W0601 """ Train""" import os import time import math import random import logging import argparse from test import test import yaml import torch from torch import nn import...
r""" Ordination results format (:mod:`skbio.io.format.ordination`) ============================================================= .. currentmodule:: skbio.io.format.ordination The ordination results file format (``ordination``) stores the results of an ordination method in a human-readable, text-based format. The form...
import warnings import numpy as np import numpy.testing as npt from dipy.data import get_fnames from dipy.core.gradients import (gradient_table, GradientTable, gradient_table_from_bvals_bvecs, gradient_table_from_qvals_bvecs, ...
#!/usr/bin/env python # Copyright 2020 Informatics Matters Ltd. # # 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 applicab...
"""Visualizing Twitter Sentiment Across America""" from data import word_sentiments, load_tweets from datetime import datetime from doctest import run_docstring_examples from geo import us_states, geo_distance, make_position, longitude, latitude from maps import draw_state, draw_name, draw_dot, wait, message from stri...
import numpy as np import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib.patches import Circle import ephem import sqlite3 as lite from progressbar import ProgressBar # Altitude and Azimuth of a single field at t (JD) in rad def Fields_local_co...
""" ############################################################################## # # Plot heatmaps of samples' Z-scores in every window over every site # # AUTHOR: Maciej_Bak # AFFILIATION: University_of_Basel # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: <EMAIL> # CREATED: 04-06-2020 # LI...
####################################################################### # # Copyright 2009-2010 by <NAME> # # This file is part of the VIGRA computer vision library. # The VIGRA Website is # http://hci.iwr.uni-heidelberg.de/vigra/ # Please direct questions, bug reports, and contributions to # ...
import random import math import json DATOTEKA_S_STANJEM = "stanje.json" class Igra: def __init__(self, pozicija_luknje, igralec_na_vrsti, koordinate_zacetka, igralci=None, koncani_igralci=None, runda=None, ): if igralci is None: self.igralci = {} else: self.igralci = ig...
import numpy as np import pandas as pd import scipy.stats as si import threading import queue import matplotlib.pyplot as plot ''' Within this section, I wanted to explore two things: i) Having one input which indicates if the model should calculate the price, delta, gamma etc all at one time. This means that the cal...
# -*- coding: utf-8 -*- """ Dynamic Network Graph Exploration This program aims to: Explore interactive design and parameters combo to better detect and define interactions between members. Code credits - <NAME> Changed based on the original code provided by Xavier Lambein """ #program requirement i...
from PyQt5 import QtCore, QtGui from PyQt5.QtWidgets import * import vtrace from vtrace.const import * import envi.qt as envi_qt import envi.qt.memory as envi_qt_memory import envi.qt.memorymap as envi_qt_memmap import envi.memcanvas as e_mcanv import envi.memcanvas.renderers as e_mem_rend import vqt.tree as vq_tree...
""" Tests for the future.standard_library module """ from __future__ import absolute_import, print_function from future import standard_library from future import utils from future.tests.base import unittest, CodeHandler, expectedFailurePY2 import sys import tempfile import os import copy import textwrap from subproc...
#!/usr/bin/python3 # -*- coding: utf-8 -*- import click from pprint import pprint import time def load_instances(instances_file, solutions_file): instances = {} #~ ins = open(instances_file, 'r') with open(instances_file, 'r') as ins: for line in ins: data = line.split(' ') ins_size = int(data[1]) inst...
# # Copyright 2015 The Regents of The University California # # 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 ...
# Copyright 2018 D-Wave 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...
''' Created on May 25, 2018 @author: fangy5 ''' import numpy as np import os from multiprocessing import Process, Manager #from scipy.constants.constants import golden class Gate(Process): def __init__(self, device, params, meta): Process.__init__(self) self.manager = Manager() self.c_que...
#!/usr/bin/env python ''' WHERE WE ARE We can now encapsulate our logic into units that can be re-used: functions. The chapter goes in the unusual way of defining a Function Call first and then explaining what a Function Declaration/Object is. In this file, we can organize the new additions with respect to Function ...
"""PSoC bootloader command line tool.""" import argparse import codecs import time import six import sys from builtins import input from . import cyacd from . import protocol __version__ = "1.07" def auto_int(x): return int(x, 0) parser = argparse.ArgumentParser(description="Bootloader tool for Cypress PSoC...
import numpy as np import skimage import skimage.io import scipy.io as sio import scipy.misc import skimage.transform import os import numpy as np import tensorflow as tf import cv2 import json from collections import namedtuple from tqdm import tqdm np.random.seed(0) VGG_MEAN = [103.939, 116.779, 123.68] CLASS_TO_SS ...
from conf_postprocess import Conf_Postprocess, Conf_Postprocess_Consensus from utils import * from conf import * import glob ''' Functionality for: (1) Producing tensor molecular cartographies (2) Producing heterogeneity maps (3) Computing HTI (4) Performing survival analysis ''' def get_score_maps(confs, sample_na...
# vim: ts=4 sw=4 noexpandtab """Sample module. This is a the ModManager In Game Admin module ===== Config ===== # Sets the prefix for all in game commands mm_iga.cmdPrefix "!" # Dynamic command binding take the following form: mm_iga.addCmdBinding "<privilege>|<alias>:<command>" # The default command Bindings ...
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
import numpy as np import soundfile as sf import librosa import argparse import pickle import h5py from tqdm import tqdm import glob, os, time, math from scipy import signal import AudioRNNData as DataGen from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt # Keras packages model from k...
""" Image operations visible to the Execution Framework as Components """ import copy import warnings from astropy.wcs import FITSFixedWarning warnings.simplefilter('ignore', FITSFixedWarning) import numpy import astropy from astropy.io import fits from astropy.wcs import WCS from astropy.wcs.utils import skycoord_t...
# Copyright 2018, The TensorFlow Federated Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
from .. import opnames from ..namegen import LabelGen from ..ssa import objtypes, ssa_jumps, ssa_ops, ssa_types from ..verifier.descriptors import parseFieldDescriptor, parseMethodDescriptor from . import ast from .setree import SEBlockItem, SEIf, SEScope, SESwitch, SETry, SEWhile # prefixes for name generation _pref...
# Author: <NAME> # Created: 7/7/20, 7:47 AM import copy import os import logging import argparse import pandas as pd from typing import * from Bio import SeqIO from Bio.SeqRecord import SeqRecord from tqdm import tqdm # noinspection All import pathmagic # noinspection PyUnresolvedReferences import mg_log # runs init...
#!/usr/bin/env python # coding: utf-8 from getpass import getuser # Settings of the annotation process ############ # How many frames does a batch scan. # This excludes the very last frame, since we start at 0. batchsize = 100 # Show every tickskip-th frame for annotation. tickskip = 5 # Skip so many batches after e...
# ChessMaster v1 import chess import chess.svg import chess.polyglot import time import traceback import chess.pgn import chess.engine from flask import Flask, Response, request import webbrowser import pyttsx3 # Evaluating the board pawntable = [ 0, 0, 0, 0, 0, 0, 0, 0, 5, 10, 10, -20, -20, 10, 10, 5, 5...
import json import logging import time import datetime import math import six import tornado.gen import tornado.httpclient import tornado.ioloop from tornado import gen from tornado import ioloop from tornado import stack_context from tornado.concurrent import Future from tornado.ioloop import PeriodicCallback from t...
import argparse import pickle import sys import numpy as np from data_prep import batch_iter, createOneHotMosei2way, get_raw_data, createOneHot seed = 1234 np.random.seed(seed) import tensorflow as tf tf.enable_eager_execution() from tqdm import tqdm from model import LSTM_Model from sklearn.metrics import f1_sc...
import numpy as np import theano as th import theano.tensor as tt import pymc3 as pm from typing import Optional, List, Tuple, Union from .. import types from . import commons class TheanoForwardBackward: """Implementation of the forward-backward algorithm in theano.""" def __init__(self, log...
import numpy as np import matplotlib.pyplot as plt import scipy.optimize from scipy.ndimage.filters import gaussian_filter from skimage import transform as tf from typing import Any, Callable, List, Optional, Tuple import pydynamo_brain.util as util from pydynamo_brain.model import FullState, Tree, Branch, Point from...
import sys,os,copy import numpy as np from math import log,sqrt import pyrosetta as PR import utils CURR = os.getcwd() MEFF=0.0001 DELTA = [-99.0,-17.5,-12.5,-7.0,-3.0,-1.5,-0.75, 0.0, 0.75,1.5,3.0,7.0,12.5,17.5,99.0] MYPATH = os.path.dirname(os.path.realpath(__file__)) REFSTAT_FILE = MYPATH + '/ref...
""" Relay mail from remote BBS system using JNOS connection for import and SMTP for insertion into JNOS. Inbound only From one external account only To one internal JNOS user only References: Basic SMTP https://docs.python.org/...
""" VideoPlayer() is a prototype for pp_vlcplayer.py in Pi Presents #GUI() is a simple Tkinter gui interface for exercising VideoPlayer() commands: 1,2,3,4,5 play some shows - see GUI() code for details p - pause u - unpause + - inc volume - - dec volume ...
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy import logging import os import collections import third_party.json_schema_compiler.json_parse as json_parse import third_party.json_schema_...