text
stringlengths
8.04k
46.5k
import torch import torch.nn as nn import argparse import random import numpy as np import math import datetime import os, shutil import sys sys.path.append("../") import json import pickle import time import signal from glob import glob from tensorboardX import SummaryWriter from general.mutils import * class Tra...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import abc import logging import os import re import signal import subprocess import sys ...
#!/usr/local/bin/python # -*- coding: utf-8 -*- """ - LICENCE The MIT License (MIT) Copyright (c) 2016 <NAME> Ericsson AB (EU FP7 CityPulse Project) 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 Softwa...
_author_ = "sikiru" import logging import sys import os from pickle import load, dump from PyQt5 import QtGui, uic from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QMainWindow, QApplication, QDialog, QMessageBox import craps_rc from crapsGame.die import * class AchievementWindow(QDialog): def __in...
from itertools import chain import json import logging from elasticsearch_dsl.response import Response, AggResponse from elasticsearch_dsl.response.aggs import FieldBucketData, BucketData, FieldBucket, Bucket from more_itertools import one from typing import List, Optional import uuid import elasticsearch from elasti...
#-*- encoding: utf-8 -*- import socket, time, string, threading, signal, sys, os from time import sleep from collections import deque # Librerias de mi autoria, permiten manejar mensajes y realizar acciones en Google Docs respectivamente from handler import FEAHandler from google import Google class FEABot(): #...
from attr import attrs, attrib, evolve from attr.validators import instance_of, optional import numpy as np import warnings from ...common import list_of from ...fileio.adm.adm import ADM from ...fileio.adm.xml import default_screen from ...fileio.adm.exceptions import AdmError, AdmFormatRefError from ...fileio.adm.ele...
from bota.image_processing import add_border_to_image from bota.web_scrap.heroes_process import get_current_hero_trends, find_hero_name, scrap_heroes_info, scrap_hero_counters import pandas as pd from bota.utility.general import render_mpl_table, get_icon_path, is_file_old, crop_image, round_df_digits from bota.constan...
# Holtek HT68FB560 8-Bit Flash USB MCU # IDAPython Processor Module # Developed for and tested with IDA 7.0. # Copyright (c) <NAME>, 2018 # Licensed under the MIT License # Project Home: https://github.com/Treeki/TM155-tools from ida_bytes import * from ida_diskio import * from ida_enum import * from ida...
# ---------------------------------------------------------------------------- # Copyright (C) 2017 Verizon. 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 # # ...
""" Implements streaming operations on table-like data and csv files. Conversions are defined in realtime based on table headers and called methods: - update - take - drop - join """ import csv import typing as t # pylint: disable=unused-import from itertools import chain, zip_longest from ..base import ( A...
#!/usr/bin/env python # Form PE clusters from discordant PE alignments written by writeDiscordantFragments.py, via a maximal clique formulation import pysam import networkx as nx import argparse as ap import logging import gc from sklearn.cluster import KMeans ##global variables #margin to increase max_cluster_length...
#!/usr/bin/env python3 # # This file is part of m.css. # # Copyright © 2017, 2018 <NAME> <<EMAIL>> # # 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 ...
""" This module contains functions related to time conversions and utilities """ # Standard library imports from typing import Any,Dict,List,Tuple,Sequence #https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html from datetime import datetime from functools import partial from toolz import pipe # Third party impor...
from datetime import datetime, timedelta from django.contrib import messages from django.contrib.auth import update_session_auth_hash from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth.models import Group from django.contrib.auth.decorators import login_required from django.core.exceptio...
from __future__ import print_function import torch import torch.nn as nn from torch.nn import init import torch.nn.functional as F import os class ConvBlock(nn.Sequential): def __init__(self, in_channel, out_channel, ker_size, padd, stride): super(ConvBlock,self).__init__() self.add_module('conv',n...
# -*- coding: utf-8 -*- """Application forms.""" from datetime import date from flask_wtf import FlaskForm from flask_wtf.file import FileAllowed, FileField, FileRequired from wtforms import (BooleanField, Field, SelectField, SelectMultipleField, StringField, SubmitField, TextField, TextAreaField...
from __future__ import absolute_import, division, print_function from six.moves import range ''' Author : Lyubimov, A.Y. Created : 10/18/2018 Last Changed: 03/06/2019 Description : IOTA base classes ''' import os import json try: # for Py3 compatibility import itertools.ifilter as filter except ImportEr...
from __future__ import absolute_import, print_function import hashlib import inspect import logging import os import sys from abc import abstractmethod import sqlparse from decorator import decorator from jinja2 import StrictUndefined, Template from omniduct.caches.base import cached_method from omniduct.duct import...
import logging from os.path import realpath, dirname import pandas as pd from sklearn.preprocessing import scale import matplotlib.pyplot as plt ''' 2015-02-02 18:29:38,285 root INFO EURJPY q4 s8 o0.49 2015-02-02 18:29:38,285 root INFO EURJPY q4 s12 o0.50 2015-02-02 18:29:38,285 root INFO EURJP...
# Workaround to disable Intel Fortran Control+C console event handler installed by scipy from os import environ as os_env os_env['FOR_DISABLE_CONSOLE_CTRL_HANDLER'] = 'T' import numpy as np import cv2 from .common import (preserve_shape, _maybe_process_in_chunks, _cv2_str2interpolation, MAX_VALUES...
import argparse import os import tensorflow as tf import tensorflow.contrib.slim as slim from tensorflow.python.framework import ops as ops_tf import numpy as np import matplotlib matplotlib.use('TkAgg') # Need Tk for interactive plots. from matplotlib import pyplot import matplotlib.pyplot as plt import pickle as pkl...
# -*- coding: utf-8 -*- import re import os import sys import codecs import string from wb import * import grt import mforms """ Classe permettant de manipuler le schema de la base de données """ class Schema: def __init__(self, schema, basepath, namespace): self.schema = schema self.tables = sc...
from functools import wraps import importlib import logging import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from core.config import cfg from model.roi_pooling.functions.roi_pool import RoIPoolFunction from model.roi_crop.functions.roi_crop import RoICropFunction ...
import argparse import imageio import itertools import math import os from collections import OrderedDict import matplotlib as mpl from matplotlib import pyplot as plt import matplotlib.backends.tkagg as tkagg # from matplotlib.backends import _backend_tk from matplotlib.backends.backend_agg import FigureCanvasAgg impo...
import re import lib.logger as logging from lib.functions import wait_until, is_strings_similar, r_sleep, confirm_condition_by_time from lib.game import ui from lib.game.data.game_modes import game_modes from lib.game.notifications import Notifications logger = logging.get_logger(__name__) cur_slash_max_regexp = re....
from __future__ import absolute_import, unicode_literals import json import pandas as pd from django.conf import settings from django.db.models import Q from celery import shared_task from spylunking.log.setup_logging import build_colorized_logger from antinex_utils.utils import ev from antinex_utils.utils import ppj f...
import itertools import os import numpy as np import pandas as pd import seaborn as sns import warnings import itertools from matplotlib import pyplot as plt from natsort import natsorted from scipy import optimize as optimization from sklearn.metrics import roc_auc_score from sklearn.metrics._ranking import _binary_cl...
# # Copyright 2012 New Dream Network, LLC (DreamHost) # # 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...
""" Infrastructure to define optimization problems. """ import math import copy import multiprocessing.dummy class Aborted(StopIteration): """Indicates abortion of optimization. May be due to an unpreventable problem without default treatment, e.g., a numerical problem. Inherits from :class:`StopIteratio...
import h5py import os import copy import numpy as np from .physics_utils import getTemperature from .cosmo_utils import getAgesGyrs,convertStellarAges def get_fnames(snapdir,snapnum,snapdir_name=''): fnames = [ os.path.join(snapdir,fname) for fname in os.listdir(snapdir) if ( ("%s_%03d...
# Princeton University licenses this file to You under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. You may obtain a copy of the License at: # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writin...
# coding: utf-8 import argparse import time import math import os, sys import itertools import numpy as np import torch import torch.nn as nn import torch.optim as optim from data_utils import get_lm_corpus from models.transformers.deq_transformer import DEQTransformerLM from modules import radam from utils.exp_utils...
# pylint: disable=invalid-name from typing import Dict, List, Tuple, Optional, Any from collections import defaultdict from enum import Enum from pydantic import BaseModel from db.python.connect import NotFoundError from db.python.layers.base import BaseLayer from db.python.layers.sample import ( SampleBatchUpse...
###################################################################### # Deep Reinforcement Learning for Autonomous Driving # Created/Modified on: February 5, 2019 # Author: <NAME> ####################################################################### from __future__ i...
import sys from typing import NamedTuple, Optional, List, Generator, Tuple, Sequence, Mapping, Union, Dict, FrozenSet, cast from enum import Enum import operator from collections import OrderedDict import itertools import numbers import numpy as np from qupulse.utils.types import ChannelID, TimeType from qupulse.hard...
# -*- coding: utf-8 -*- from __future__ import print_function import collections from datetime import datetime import heapq import time import requests from .._protos.public.modeldb.versioning import VersioningService_pb2 as _VersioningService from ..external import six from .._internal_utils import ( _artifa...
# coding=utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import json import math #import argparse import torch def add_parser_params(parser): """add argument to the parser""" parser.add_argument('--data', type=str, metavar='...
import unittest from matplotlib import pyplot as plt from functools import partial from pyapprox.leja_sequences import * from pyapprox.utilities import cartesian_product, beta_pdf_derivative from pyapprox.indexing import compute_hyperbolic_indices from pyapprox.variable_transformations import \ define_iid_random_va...
#!/usr/bin/env python3 # Copyright 2021, <NAME>; <NAME> # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Perform CTC segmentation to align utterances within audio files.""" from typing import Sequence from typing import Tuple import argparse import logging import os from pathlib import Path import sys fro...
import numpy as np import pandas as pd from osgeo import gdal import geopandas as gpd from shapely.geometry import Point import shapely.ops as sops # ============================================================================= # Module 1 # ===================================================================...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import sys import threading import time from uresnet.iotools.io_base import io_base def get_particle_info(particle_v): from larcv import larcv num_particles = particle_v.size() p...
# -*- coding: utf-8 -*- """Module containing various line searches. Line searches are at the heart of many optimizers. After finding a suitable search direction (e.g. the steepest descent direction) we are left with a one-dimensional optimization problem, which can then be solved by a line search. """ # TODO: this m...
import os import sys import time import glob import numpy as np import pandas as pd import torch import utils import logging import argparse import torch.nn as nn import torch.utils import torch.nn.functional as F import torchvision.datasets as dset import torch.backends.cudnn as cudnn from copy import deepcopy from nu...
""" Tools for generating graph-based features """ import torch import numpy as np import copy from rdkit import Chem from rdkit.Chem import AllChem from nff.utils.xyz2mol import xyz2mol from nff.utils import tqdm_enum # default options for xyz2mol QUICK = True EMBED_CHIRAL = True USE_HUCKEL = False CHARGED_FRAGMENT...
"""The hunk block types defined as data classes""" import struct from .Hunk import * class HunkParseError(Exception): def __init__(self, msg): self.msg = msg def __str__(self): return self.msg class HunkBlock: """Base class for all hunk block types""" blk_id = 0xDEADBEEF sub_...
# -*- coding: utf-8 -*- """ Created on Mon Jun 15 15:35:48 2020 @author: meppenga """ from tensorflow.keras.utils import Sequence import numpy as np import utils as ut class DataLoader(Sequence): def __init__(self,config,dataset): self.dataset = dataset self.image_ids = np.copy(dataset.image_id...
#!/usr/bin/env python3 # Copyright (c) 2020 Xiaomi Corporation (authors: <NAME> # <NAME> # <NAME>) # 2020 Johns Hopkins University (author: <NAME>) # 2021 University of Chinese Academy ...
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details. # # Distributed under the terms of the MIT/X11 license. # # The full license is in the file LICENCE, distributed with this software. # -----------...
""" skcom.helper """ # pylint: disable=broad-except, bare-except, pointless-string-statement import logging import logging.config import os.path import platform import random import re import shutil import site import subprocess import winreg import zipfile from getpass import getpass import comtypes.client import wi...
#!/usr/bin/env python3 # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import argparse import json import logging import multiprocessing import re import os import pla...
"""Readalongs command line interfaced, initialized with Click. The main purpose of the cli is to align text and audio files CLI commands implemented in this file: - align : main command to align text and audio - prepare : prepare XML input for align from plain text - tokenize: tokenize the prepared file - g2p ...
import codecs import copy import os import re from typing import List, Tuple, Union import warnings from nltk import sent_tokenize def tokenize_text(src: str) -> Tuple[str, dict]: re_for_tokenization = [re.compile(r'\w:\d', re.U), re.compile(r'\d%\w', re.U), re.compile(r'\w[\\/]\w', re.U), ...
import numpy as np import emcee import pdb ################################################################################ ################### COLOR TRANSFORMATIONS FOR USNO-B1.0 data ################### ################################################################################ # TODO convert magnitudes to flux...
import requests import re import html from bs4 import BeautifulSoup import unicodedata import base64 import zlib import json import html from abc import abstractmethod from lrc_kit.lyrics import Lyrics import logging # https://github.com/ddddxxx/LyricsKit/tree/master/Sources/LyricsService/Provider # https://github.com...
# coding: utf-8 # <NAME> # Functions import pandas as pd import numpy as np import subprocess,os import laspy from laspy.file import File from scripts.parameters import * import scripts.cloudcompare as cc import scripts.os_functions as osf import warnings warnings.filterwarnings("ignore") def compute_SNR(path,filena...
#!/usr/bin/env python3 ############################################################################ # This python program is an interpreter for the pyth programming language. # # It is still in development - expect new versions often. # # ...
# -*- coding: utf-8 -*- import json import os import random import re import sys import time from builtins import str from operator import attrgetter import urllib if sys.version_info[0] >= 3: from urllib.request import urlretrieve, urlopen #from urllib.request import urlopen else: from urllib import urlre...
import json import bpy import bmesh from bpy_extras.io_utils import ImportHelper import mathutils from math import radians, pi, floor, ceil from itertools import chain bl_info = { "name": "Import After Effects Composition", "description": "Import layers from an After Effects composition into Blender"...
from typing import Any, Optional from matplotlib import pyplot as plt import numpy as np import pandas as pd from pydantic import BaseModel, validator import scipy.stats from torch import Tensor from camfi.datamodel.via import ViaRegionAttributes from camfi.wingbeat import WingbeatSuppFigPlotter, BcesResult, Weighted...
from ctypes import POINTER, c_char_p, c_int, c_size_t, c_uint, c_bool, c_void_p import enum from llvmlite.binding import ffi from llvmlite.binding.common import _decode_string, _encode_string class Linkage(enum.IntEnum): # The LLVMLinkage enum from llvm-c/Core.h external = 0 available_externally = 1 ...
import urlparse import traceback import datetime import certifi import requests from bs4 import BeautifulSoup from flask import Blueprint, render_template, make_response, redirect, url_for, request, session, jsonify, current_app, Response from labmanager.views.authn import requires_golab_login, current_golab_user from...
import random as rd import unittest as ut import networkx as nx import numpy as np from pysbm import sbm class TestSBMInference(ut.TestCase): """ Test Class for SBMInference and subclasses """ # noinspection PyPep8Naming def __init__(self, methodName='runTest'): super(TestSBMInference, self).__...
""" Tests of constant and dynamically changing mass :Author: <NAME> <<EMAIL>> :Author: <NAME> <<EMAIL>> :Date: 2019-01-17 :Copyright: 2019, Karr Lab :License: MIT """ from matplotlib import pyplot from scipy.constants import Avogadro as NA from test.support import EnvironmentVarGuard import numpy import numpy.testing...
import scipy.stats.stats as stats from scipy.special import comb from skimage import io, transform from scipy.io import loadmat import glob import os import sys import shutil import math import numpy as np import tensorflow as tf os.environ['CUDA_VISIBLE_DEVICES'] = '0' sys.setrecursionlimit(100000) # decision para...
import unittest import random from general_tree import GeneralTree class TestNode(unittest.TestCase): """Tests for the _Node nested nonpublic class.""" def setUp(self): self.test_node = GeneralTree._Node("Test element") def test_init(self): """Confirm that a _Node object can be initializ...
"""triangular grid see trimesh, networkx - load mesh - get triangle graph with neighbors - create the mesh as a graph - compute cells, render cell state onto mesh """ from __future__ import division from __future__ import absolute_import import pickle, sys, time, threading, argparse import numpy as np import n...
# ------------------------------------------------------------------------- # This module contains all of the parameters, funcions and classes that # are used across more than one signal type # ------------------------------------------------------------------------- from . import common from . import dcc_control fro...
#!/usr/bin/env python import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap import logging import logging.config import os import netCDF4 as nc import scipy.interpolate from smos_tools.data_types.os_udp_datatype import datatype, science_flags_dtype, control_fla...
''' This is an emcee wrapper for fitting the Layden '94 metallicity calibration to equivalent widths of RR Lyrae spectra ''' import sys import git import time import numpy as np import pandas as pd import emcee import corner import logging import matplotlib.pyplot as plt from scipy.optimize import least_squares from a...
""" Helper functions to run with OpenMM, these function could be methods of the MDSimulation class however because of limitations imposed by the multiprocessing they need to be functions """ from __future__ import absolute_import, division, print_function import os import sys import time import functools import traceb...
import base64 import json import logging import re import urllib.parse import urllib.request import uuid from hashlib import md5 from flask import request import configmanager as C import errors as errs import lexconfig # Parsing results form ES ##################################################### def es_total(res...
#!/usr/bin/python2 # # Copyright 2018 Google LLC # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Validate a DSPL dataset model.""" __author__ = '<NAME> <<EMAIL>>' import re class DSPLValidation...
# Copyright 2019 The FastEstimator 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 appl...
# --------------------------------------------------------------- # visualization.py # Set-up time: 2020/11/4 20:57 # Copyright (c) 2020 ICT # Licensed under The MIT License [see LICENSE for details] # Written by Kenneth-Wong (Wenbin-Wang) @ VIPL.ICT # Contact: <EMAIL> [OR] <EMAIL> # ----------------------------...
import re import threading import tkinter as tk from webbrowser import open as open_with_browser from tkinter import messagebox, ttk, Toplevel from airtest.core.android.adb import ADB from airtest.core.error import AdbError from farmer.configurator import conf, configurator, s from multiprocessing import freeze_suppo...
#!/usr/bin/env python3 from typing import Any, Dict, List import dataclasses import argparse import re import sys import numpy as np import drawSvg as draw # pip install drawSvg from hyperbolic import euclid3d # pip install hyperbolic from hyperbolic.euclid import shapes, intersection @dataclasses.dataclass clas...
# Preprocessing of DQBF formulas. Convert them into QBF by # performing variable eliminations in a way that minimizes the number of clauses in the modified formula # Support partition refinement # Underlying elements can be any objects with an equality ordering, and equality functions import reader import sys import...
#!/usr/bin/env python from gensim import matutils from gensim.models import doc2vec from gensim.models.word2vec import LineSentence from gensim.models.word2vec import Word2Vec from pymongo import MongoClient from tqdm import tqdm from sklearn.preprocessing import OneHotEncoder from scipy import sparse from models im...
import six import copy import uuid import jsonschema from yggdrasil import constants from yggdrasil.metaschema import (get_metaschema, get_validator, encoder, validate_instance, MetaschemaTypeError) from yggdrasil.metaschema.datatypes import ( MetaschemaTypeMeta, compare_schema, ...
# -*- coding: utf-8 -*- """ This module provides deferred types used for type dependences that haven't been processed yet, or circular dependences. 1) Types participating in statements that are deferred until later: x = 0 # x_0 for i in range(10): # x_1 = phi(x_0, x_2) ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2014-2019 OpenEEmeter contributors 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/LIC...
import datetime import pandas as pd import numpy as np import win32com.client import matplotlib import matplotlib.pyplot as plt import attribution.extraction from dateutil.relativedelta import relativedelta start_date = datetime.datetime(2018, 10, 31) end_date = datetime.datetime(2019, 9, 30) periods = (end_date.year ...
from helpers import Singleton, overlay_transparent, resize_transparent_sprite from maze_solver import astar from load_images import load_player, load_slime, load_doggy, load_heart import numpy as np from math import log from time import perf_counter @Singleton class Master: def __init__(self): # Loading...
# Copyright (C) 2019 Intel Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # import common SOURCE_ROOT_DIR = common.SOURCE_PATH HEADER_LICENSE = common.open_license() BOARD_INFO_FILE = "board_info.txt" SCENARIO_INFO_FILE = "" VM_COUNT = 0 LOAD_ORDER_TYPE = ['PRE_LAUNCHED_VM', 'SOS_VM', 'P...
'''This module provices two classes: spectrum and filter (filter is a sub-class of spectrum. These classes are designed to make certain tasks more convenient, especially for filters. Aside from being containers of the spectrum/filter data, they provide the following funcionality: spectrum: - read a wavelen...
# Copyright (c) 2017-2021, University of Tennessee. All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # This program is free software: you can redistribute it and/or modify it under # the terms of the BSD 3-Clause license. See the accompanying LICENSE file. from __future__ import print_function import os i...
""" test iotools for sodapro """ import pandas as pd import numpy as np import requests import pytest from pvlib.iotools import sodapro from ..conftest import DATA_DIR, assert_frame_equal testfile_mcclear_verbose = DATA_DIR / 'cams_mcclear_1min_verbose.csv' testfile_mcclear_monthly = DATA_DIR / 'cams_mcclear_monthl...
import pywaves as pw import datetime import time import os import sys import random try: import configparser except ImportError: import ConfigParser as configparser class MortyBot: def __init__(self): self.log_file = "bot.log" self.node = "https://privatenode2.blackturtle.eu" ...
# -*- coding:utf-8 -*- # Deep Streaming Label Learning import os import math import random import numpy as np import pandas as pd from sklearn import metrics import scipy.io import argparse os.environ["CUDA_VISIBLE_DEVICES"] = "0,1,2,3" import torch from train import train_KD, train_DSLL_model, train_new, train_S_...
import random import os # /$$$$$$$$ /$$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$ /$$ # |__ $$__/| $$__ $$ /$$__ $$| $$ /$$/| $$ /$ | $$ /$$__ $$| $$ /$$/ # | $$ | $$ \ $$|__/ \ $$ \ $$ /$$/ | $$ /$$$| $$| $$ \ $$ \ $$ /$$/ # | $$ | $$$$$$$/ /$$$$$/ \ $$$$/ | $$/$$ $$ $...
""" ******************************************************************************** * Name: map_manager * Author: ckrewson * Created On: February 13, 2019 * Copyright: (c) Aquaveo 2019 ******************************************************************************** """ import logging from tethys_sdk.permissions import...
import os import shutil import re import subprocess import hashlib import yaml import traceback import random import json from stat import * def init_analyzer_cmdline(argv, name): ret = {} if len(argv) < 5: print("ERROR: invalid input") raise Exception configdir = argv[1] anchore_con...
import numpy as np import json import yaml import astropy.io.fits as pyfits from desiutil.log import get_logger from desispec.io import findfile from desispec.preproc import read_ccd_calibration import os,sys from desispec.quicklook import qlexceptions,qllogger class Config(object): """ A class to generate Qu...
import sys, os, time, datetime, warnings, configparser import pandas as pd import numpy as np import concurrent.futures import tushare as ts import matplotlib.pyplot as plt from tqdm import tqdm, trange cur_path = os.path.dirname(os.path.abspath(__file__)) for _ in range(2): root_path = cur_path[0:cur_path.rfind('...
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import os import sys import math from typing import List, Optional, Dict, Tuple from pathlib import Path import torch from tor...
from collections import namedtuple import logging from ..tools.recursivedescent import RecursiveDescentParser from . import nodes class LlvmIrParser(RecursiveDescentParser): """ Recursive descent parser for llvm-ir Closely modeled after LLParser.cpp at: https://github.com/llvm-mirror/llvm/blob/master/li...
import gym import torch import hashlib, os from collections import OrderedDict class color: BOLD = '\033[1m\033[48m' END = '\033[0m' ORANGE = '\033[38;5;202m' BLACK = '\033[38;5;240m' def print_logo(subtitle="", option=2): print() print(color.BOLD + color.ORANGE + " .8. " + color.BLACK...
import logging import re from collections import OrderedDict from typing import Dict, List, Type import gdal import numpy as np from bfgn import architectures from bfgn.configuration import DEFAULT_OPTIONAL_VALUE, DEFAULT_REQUIRED_VALUE from bfgn.data_management import scalers from bfgn.experiments import losses """...
# BEGIN_COPYRIGHT # # Copyright 2009-2015 CRS4. # # 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 ...