text stringlengths 8.04k 46.5k |
|---|
import os
import sys
import wx
from cefpython3 import cefpython as cef
import re
import markdown2
import util
# Main frame class.
class MainFrame(wx.Frame):
WINDOW_TITLE_SEPARATOR = ' | '
WINDOW_TITLE = 'AccessibleRunner'
# Initializes the object by linking it with the given AccessibilityRunner and Config obj... |
#!/usr/bin/python
#
# generate_nametags_with_barcodes.py
# Copyright (C) 2016 <NAME>
#
# every year an elementary school in california runs a festival where families
# sign up for parties and events, as well as bid for auctions and donations.
# each family is issued some stickers with unique barcode to make it e... |
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... |
# coding: utf-8
"""
ww contains convenient wrappers around strings. The Most important one is
StringWrapper, that you will mostly use as the "s()" object.
It behaves like unicode strings (the API is compatible),
but make small improvements to the existing methods and add some new
methods.
It ... |
#!/usr/bin/env python
##################################################################
# \package CyberRadioDriver.radios.ndr301ptt
# \brief NDR301PTT Support
# \author NH
# \author DA
# \author MN
# \copyright Copyright (c) 2017-2020 CyberRadio Solutions, Inc.
# All rights reserved.
###########################... |
import argparse
import os
import time
import torch
import torch.nn.functional as F
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim
import torch.utils.data
import torchvision.transforms as transforms
import flow_transforms
import models
import datasets
from multiscaleloss import multisc... |
# Copyright 2009-2010 by <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... |
# Copyright 1999-2000 by <NAME>. All rights reserved.
# Copyright 2008-2013 by <NAME>. All rights reserved.
# Revisions copyright 2011-2016 by <NAME>. All rights reserved.
# Revisions copyright 2015 by <NAME>. All rights reserved.
# Revisions copyright 2015 by <NAME>. All rights reserved.
# This code is part of the B... |
#---------------------------------------------------------------------------
# Copyright 2012-2019 The Open Source Electronic Health Record Alliance
#
# 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 Licen... |
"""
Copyright 2019 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distribut... |
#!/usr/bin/python
import os
import os.path
import sys
from os.path import join as path_join
from options import *
from os_utils import *
import runtime
runtime_targets = ['armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64']
cross_targets = ['cross-arm', 'cross-arm64', 'cross-x86', 'cross-x86_64']
cross_mxe_targets = ['cro... |
from torch.utils.data import DataLoader, Dataset, Sampler
from pathlib import Path
from collections import defaultdict
import json
import random
from multiprocessing import Pool
import h5py
import pickle
import math
from tqdm import tqdm
import torch
import numpy as np
from copy import deepcopy
import re
from PIL impor... |
from django.shortcuts import render,redirect
from django.http import HttpResponseRedirect, JsonResponse
from django.contrib import messages
from django.views import View
from firebase_admin import firestore
from collections import namedtuple
import threading
from candidate.algorithms.personality_test import personalit... |
from ..algorithms.base import Algorithm
from ..algorithms.action_selection import MaxActionSelector, SoftmaxActionSelector
from .dynamic_programming import ValueIteration, solve_value_iteration
from .mcts import MCTS_next_node, get_actions_states
from ..mdp import MDP
import numpy as np
from numba import njit
from fast... |
# coding: utf8
# intente algo como
@auth.requires_login()
@auth.requires_membership('Student')
def index():
assignations = db((db.user_project.assigned_user == auth.user.id)&
(db.user_project.assigned_user == db.auth_user.id)&
(db.user_project.project == db.project.id)&
... |
#!/usr/bin/env python
#############################################################################
##
# This file is part of Taurus
##
# http://taurus-scada.org
##
# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain
##
# Taurus is free software: you can redistribute it and/or modify
# it under the terms of t... |
import itertools
import copy
from enum import Enum
import numpy as np
import scipy.misc as spmisc
from matplotlib.colors import BoundaryNorm
import matplotlib.cm as cm
from matplotlib.patches import Rectangle
__all__ = ['Bunch', 'ChannelMap', 'get_electrode_map']
NonSignalChannels = Enum('NonSignalChannels', ['grou... |
# Copyright (c) 2020 Mitsubishi Electric Research Laboratories (MERL). All rights reserved. The software, documentation and/or data in this file is provided on an "as is" basis, and MERL has no obligations to provide maintenance, support, updates, enhancements or modifications. MERL specifically disclaims any warrantie... |
#!/usr/bin/python2.7
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... |
"""Based on:
https://github.com/mbinkowski/MMD-GAN/blob/678bb5e2d5f7b0bb8dd5c3591d7759e1bb3f8018/gan/compute_scores.py
BSD 3-Clause License
Copyright (c) 2016, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following condit... |
from collections import namedtuple
from io import StringIO
import os
import shutil
from subprocess import Popen, PIPE, STDOUT, CalledProcessError
import tempfile
from pathlib import Path
from . import endf
# For a given MAT number, give a name for the ACE table and a list of ZAID
# identifiers. This is based on Appe... |
# -*- coding: utf-8 -*-
# pylint:disable=too-many-lines
"""
Experiment wrapper client
=========================
Wraps the core Experiment object to provide further functionalities for the user
"""
import inspect
import logging
from contextlib import contextmanager
import orion.core
import orion.core.utils.format_tria... |
# /usr/bin/env python3.6
# -*- mode: python -*-
# =============================================================================
# @@-COPYRIGHT-START-@@
#
# Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification,... |
from endurance import quickstart
from endurance.core.io.files import SavedCaseFile, PowerFlowRawDataFile
from endurance.utilities.serializers import JsonSerializer
from endurance.core.modeling.case import Case
from endurance.core.modeling.all import Area, Branch, Bus, FixedShunt, InductionMachine, Load, Machine, Owner,... |
# Copyright 2015 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... |
"""
Several prime number functions
"""
from math import gcd, log
from typing import Any, Iterator, Iterable, List, Optional, Tuple, Sequence, Set
from numpy import ones, zeros
from binary_search import binary_search, list_up_to
class Primes(Sequence[int]):
"""
List subclass that supports slicing and membersh... |
"""COUNTER journal and book reports and associated functions."""
from __future__ import absolute_import
import collections
import datetime
import logging
import re
import warnings
import arrow
import six
from pycounter import csvhelper
from pycounter.constants import CODES, HEADER_FIELDS, METRICS
from pycounter.con... |
from .imports import *
from .data import *
from .metrics import *
from .summary import *
from .utils import *
def predict_on_batch(model, x):
"""Returns the predictions for a single batch of examples.
NOTE: Before you call this, make sure to do `model.train(False)`.
Parameters
----------
... |
#
# LOFAR Transients Key Project
"""
General purpose astronomical coordinate handling routines.
"""
import sys
import math
from astropy import wcs as pywcs
import logging
import datetime
import pytz
from casacore.measures import measures
from casacore.quanta import quantity
logger = logging.getLogger(__name__)
# No... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# DCASE 2018
# Task 1B: Acoustic Scene Classification with mismatched recording devices
# Baseline system
# ---------------------------------------------
# Author: <NAME> ( <EMAIL> ), Tampere University of Technology / Audio Research Group
# License: MIT
import dcase_util
... |
# Copyright (c) 2018 Sony Pictures Imageworks 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... |
import json
import numpy as np
from scipy.spatial.distance import cdist
import os
try:
import cPickle as pickle
except ImportError:
import pickle
import torch
import torch.nn.functional as F
import cv2
import argparse
name2id = {}
results = []
def morpho(mask, iter, bigger=True):
# return mask
mask ... |
"""
Helper functions and classes for BRCMS/RLP
License: MIT
"""
import datetime
import json
import os
from gluon import current, A, DIV, LI, SPAN, UL
from core import FS, ICON, DateFilter, S3Represent, s3_str, s3_yes_no_represent
from s3db.pr import pr_PersonEntityRepresent
# ==============================... |
#
# Simulation class
#
import pickle
import pybamm
import numpy as np
import copy
import warnings
import sys
def is_notebook():
try:
shell = get_ipython().__class__.__name__
if shell == "ZMQInteractiveShell": # pragma: no cover
# Jupyter notebook or qtconsole
cfg = get_ipy... |
# 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... |
#!/usr/bin/python
#
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... |
from flask import Flask, redirect, url_for, flash, render_template, jsonify, request
from flask_login import login_required, login_user, logout_user, current_user
from .config import Config
from .models import db, login_manager, Token, User, Board, Task, Project, Team
from .oauth import blueprint
from .cli import creat... |
#
# =====================
# Training a Classifier
# =====================
#
import time, os, copy, numpy as np
import torch, torchvision
import torch.nn as nn
from torch.nn import Parameter, init
import torch.nn.functional as F
import torch.optim as optim
from torch.optim import lr_scheduler
import torchvision.dat... |
from __future__ import annotations
import inspect
import sys
import traceback
from types import FunctionType
from typing import (
List,
Optional,
TypeVar,
Dict,
Any,
TYPE_CHECKING,
Union,
Type,
Literal,
Tuple,
Generic,
Coroutine,
Callable,
)
from .utils import MISSI... |
import logging
import os
import math
import sys
import torch
import random
import ipdb
from pandarallel import pandarallel
import sentencepiece as spm
import numpy as np
import pandas as pd
from tqdm import tqdm
from copy import deepcopy
from functools import partial
from itertools import cycle, islice
from collection... |
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... |
#!/usr/bin/python
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... |
import datetime
import logging
import math
import os
import time
import base64
import mloop.utilities as mlu
import numpy as np
import numpy.random as nr
import sklearn.preprocessing as skp
import tensorflow as tf
class SingleNeuralNet():
'''
A single neural network with fixed hyperparameters/topology.
T... |
#!/usr/bin/python
import os
from os import environ
from os.path import exists as path_exists, join as path_join, isfile, isdir, abspath
from sys import exit
class MonoBuildError(Exception):
"""Generic exception for custom build errors"""
def __init__(self, msg):
super(MonoBuildError, self).__init__(m... |
# -*- coding: utf-8 -*-
"""Master training script"""
__author__ = "<NAME>"
__copyright__ = "MIT"
import datetime
import os
import sys
import random
import json
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
from torch.optim import SGD, Adam
from torch.utils.data import DataLoader
from torc... |
import os
import os.path as op
import pytest
import numpy as np
from numpy.testing import (assert_array_equal, assert_equal, assert_allclose,
assert_array_less, assert_almost_equal)
import itertools
import mne
from mne.datasets import testing
from mne.fixes import _get_img_fdata
from mne im... |
"""
Train Class1 pan-allele models.
"""
import argparse
import os
from os.path import join
import signal
import sys
import time
import traceback
import random
import pprint
import hashlib
import pickle
import uuid
from functools import partial
import numpy
import pandas
import yaml
import tqdm # progress bar
tqdm.mon... |
import os
import glob
import time
import functools
import contextlib
import numpy as np
import tensorflow as tf
from timeit import default_timer as timer
import horovod.tensorflow.keras as hvd_keras
from .apps import TFLSTM, TFConvLSTM, TFOptimizedSGPU, TFOptimizedEncoder, TFOptimizedModelTrainer
from .apps.timeserie... |
"""This is a copy of the Inliner class found in docutils/docutils/parsers/rst/states.py
It has been 'updated', to make it (a) more readable, (b) easier to subclass, and
(c) more inline with python 3 syntax. Changes include:
- Removing class properties and calls to local()
- Replacing % string formatting with f-strings... |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 20 09:55:31 2019
A simple flowsheet model for the simulation of a methane-fueled MB fuel
reactor.
@author: <NAME> (aostace)
"""
from __future__ import division
from __future__ import print_function
__author__ = "<NAME> and <NAME>"
__version__ = ... |
"""Performs face alignment and calculates L2 distance between the embeddings of images."""
# MIT License
#
# Copyright (c) 2016 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software wit... |
"""
Differentiation package for stillleben
.. note-warning:: CUDA required!
At the moment, the :ref:`diff` module is only compiled when CUDA is
available. Since CPU implementations are available, this restriction
could be lifted in the future.
Author: <NAME> <<EMAIL>>
"""
import torch
import torch.nn.f... |
from __future__ import division
from __future__ import print_function
import functools
import os
import json
import random
import urllib
# import requests
import zipfile
import numpy as np
import tensorflow as tf
tf.enable_eager_execution()
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
EPSILON = 1e-6
"""Download data. "... |
# -*- coding: utf-8 -*-
"""This module provides access to the filter REST api of Camunda."""
from __future__ import annotations
import datetime as dt
import dataclasses
import typing
import pycamunda
import pycamunda.task
import pycamunda.variable
import pycamunda.base
from pycamunda.request import QueryParameter, P... |
import os
import torch.nn as nn
import torch
import warnings
import argparse
from Logger import *
import pickle
from Dataset import *
warnings.filterwarnings("ignore")
from Functions import *
from Network import *
import pandas as pd
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument('--gpu_... |
from collections import defaultdict
from copy import deepcopy
import logging
import os
from unittest import mock
import pytest
from requests.exceptions import ProxyError
import vcm
from vcm.core.exceptions import FilenameWarning
from vcm.core.utils import (
ErrorCounter,
MetaSingleton,
Patterns,
Print... |
from __future__ import annotations
import inspect
import time
import warnings
from functools import partial, wraps
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
Generator,
Generic,
Optional,
Sequence,
Set,
Type,
TypeVar,
Union,
overload,
)
from typing_ext... |
"""The Color module provides utilities for working with RGB colors.
It is based on the colorutils open-source library:
https://github.com/edaniszewski/colorutils
Copyright (c) 2015 <NAME>
The MIT License (MIT)
"""
import random
from typing import List, Union, Tuple, Optional
from mpf.core.utility_functions import Ut... |
# -*- coding: utf-8 -*-
#@+leo-ver=5-thin
#@+node:ekr.20140821055201.18331: * @file leoPersistence.py
#@@first
"""Support for persistent clones, gnx's and uA's using @persistence trees."""
from __future__ import print_function
import leo.core.leoGlobals as g
import binascii
import pickle
#@+others
#@+node:ekr.201407111... |
from functools import wraps
import logging
import sys
import warnings
if sys.version_info[:2] >= (3, 8):
from functools import cached_property
else:
from backports.cached_property import cached_property
import numpy as np
import scipy.signal
import pandas as pd
from endaq.batch import quat
from endaq.batch.... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
import csv
import codecs
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden, HttpResponseBadRequest, Http404, \
HttpResponseNotAllowed, HttpResponseServerError
from django.shortcuts import render, get_object_o... |
# Copyright 2022 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... |
#!/usr/bin/env python
#
# Copyright (c) 2018-2019 Intel Labs.
#
# authors: <NAME> (<EMAIL>)
#
"""
Classes to handle Carla vehicles
"""
import sys
import numpy
from simple_pid import PID
import rospy
from dynamic_reconfigure.server import Server
from nav_msgs.msg import Odometry
from std_msgs.msg import ColorRGBA
fr... |
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from gurobipy import *
import math
import numpy as np
import xlrd #excel
import sys
#quatratic
import datetime
from random import sample
fr... |
import discord
from extra import utils
from discord.ext import commands
from typing import List, Union, Optional, Dict, Any
from .menu import ConfirmSkill
from .select import ReportSupportSelect
from .modals import (
ModeratorApplicationModal, TeacherApplicationModal,
EventHostApplicationModal, DebateManagerApp... |
"""Write report about a GNSS velocity analysis run
Description:
------------
"""
# Standard library imports
from enum import Enum
from collections import namedtuple
from datetime import datetime
from typing import List, Tuple, Union
# External library imports
import numpy as np
import pandas as pd
# Midgard impor... |
import os
import sys
from pathlib import Path
import random
import yaml
from PySide6 import QtWidgets
from PySide6.QtCore import Qt, QTimer, QEvent, QStringListModel
from PySide6.QtGui import QFontDatabase
from PySide6.QtWidgets import (
QMainWindow,
QAbstractButton,
QComboBox,
QSpinBox,
QListView,... |
# coding=utf-8
import logging
import time
import unicodedata
from urllib2 import URLError
from apps.cowry.adapters import AbstractPaymentAdapter
from apps.cowry.models import PaymentStatuses, PaymentLogLevels
from django.conf import settings
from django.utils.http import urlencode
from suds.client import Client
from su... |
#!/usr/bin/env python
############################################################################
# Copyright (C) by <NAME> #
# #
# You can redistribute and/or modify this program under the ... |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2005-2009 Edgewall Software
# Copyright (C) 2005-2007 <NAME> <<EMAIL>>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.edgewall.or... |
#!/usr/bin/env python
import asyncio
import enum
import logging
import signal
from collections import defaultdict
import evdev
import pyudev
REMAPPED_PREFIX = '[remapped]'
class AlreadyRemappedError(Exception):
pass
class VirtualModifierState(enum.Enum):
RELEASED = enum.auto()
PRESSED_SILENT = enum.a... |
"""
defines:
- Settings(parent)
- reset_settings(self)
- load(self, settings)
- save(self, settings)
- on_increase_text_size(self)
- on_decrease_font_size(self)
- on_set_font_size(self, font_size, show_command=True)
- set_annotation_size_color(self, size=None, color=None)
- set_annotation_size(... |
#!/usr/bin/env python3
import os
from termcolor import colored, cprint
import requests
import sys
from tqdm import tqdm
import json
import json
import regex as re
import tensorflow as tf
from tensorflow.contrib.training import HParams
import numpy as np
import gpt_2_simple as gpt2
try:
from functools import lru_... |
# Useful property variants for Python programming.
#
# Author: <NAME> <<EMAIL>>
# Last Change: March 2, 2020
# URL: https://property-manager.readthedocs.io
"""
Useful :class:`property` variants for Python programming.
Introduction
============
The :mod:`property_manager` module defines several :class:`property` vari... |
import torch
import numpy as np
from torchvision import transforms
# Adapted from zeiss_umbrella.adversarial
# FGSM attack code from https://pytorch.org/tutorials/beginner/fgsm_tutorial.html
def fgsm_attack(image, epsilon, data_grad):
# Collect the element-wise sign of the data gradient
sign_data_grad = data... |
"""
This file is part of gempy.
Created on 21/02/2020
@author: <NAME>
"""
import numpy as np
import matplotlib.colors as mcolors
import pandas as pd
rexFileHeaderSize = 64
rexCoordSize = 22
file_header_size = 86
rexDataBlockHeaderSize = 16
file_header_and_data_header = 102
mesh_header_size = 128
all_header_size =... |
"""
Satellite Channels
------------------
A set of tools to determine the transmission channel of various satellites in 30 minute
observation by using rf data in conjunctin with chronological satellite ephemeris data.
"""
import concurrent.futures
import json
import re
from itertools import repeat
from pathlib impor... |
import re
import uuid
from collections import OrderedDict
from collections import defaultdict
from copy import copy
from gi.repository import Gio, Gtk, Gdk, Pango
from zope.interface import Interface, implementer
from mxdc import Registry, Signal, Object, IBeamline, Property
from mxdc.conf import load_cache, save_cac... |
from IPython.display import display, Markdown, clear_output, Image, Javascript
import ipywidgets as widgets
import pickle
import base64
import ast
import re
#import unidecode
'''La classe QCM se construit à l'aide d'une liste de mots clés et d'un fichier pickle (qui a été dumpé depuis
un fichier txt par le fi... |
import bisect
import re
from calendar import timegm
from collections import OrderedDict
from datetime import datetime, timedelta, date
from typing import Collection, TypeVar, Iterable, Union, Sequence, Literal, Dict
import random as random_module
import string
from datetime import date as dtdate
from dateutil.tz import... |
import sys
import requests
import os
# Used for debugging gpu errors
# os.environ['CUDA_LAUNCH_BLOCKING'] = '1'
import pandas as pd
import networkx as nx
import utils as u
import torch
import torch.distributed as dist
import numpy as np
import time
import datetime
import random
from copy import deepcopy
from datarea... |
# encoding: utf-8
import paste
from ckan.common import config
import ckan.config.middleware
import ckan.tests.legacy as tests
from ckan.logic import get_action
import ckan.model as model
import ckan.authz as authz
from ckan.lib.create_test_data import CreateTestData
import json
class TestAuth(tests.WsgiAppCase):
... |
#Author-syuntoku14
#Description-Generate URDF file from Fusion 360
import adsk, adsk.core, adsk.fusion, traceback
import os.path
from xml.etree import ElementTree
from xml.etree.ElementTree import Element, SubElement, Comment, tostring
from xml.dom import minidom
"""
# length unit is 'cm' and inertial unit is 'kg/cm^... |
import numpy as np
import torch
from scipy.stats import truncnorm, truncexpon
from torch import nn
from torch.nn.functional import interpolate
from paderbox.transform.module_fbank import hz2mel, mel2hz
from einops import rearrange
from padertorch.utils import to_list
from typing import Tuple, List
import torch.nn.func... |
from sklearn.model_selection import RepeatedKFold, RepeatedStratifiedKFold
from sklearn.metrics import *
from tqdm import tqdm
import sklearn
import optuna
import pandas as pd
import numpy as np
import time
import sys
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style(style="darkgrid")
# disable chain... |
import argparse
import glob
import json
import os
import redis
import requests
import shutil
import time
import yaml
import sys
import traceback
from biolink import model
from collections import defaultdict
from enum import Enum
from io import StringIO
from kgx.cli import redisgraph_upload
from roger.roger_util import ... |
#!/usr/bin/env python3
#Works on at least Python 3.6 from what I've tried, although most testing
#has been done on Python 3.7.
import sys
import os
#version string
#this changed significantly, but I've been standardizing them now
#X.Y-release will always be newer than X.Y-beta
#2.9 will always be earlier than 2.10
ezp... |
"""
An implementation of the Partitioning algorithm
"""
from __future__ import division
import math
from Cheeger_Cut import cheeger_cut
from Tree_Construction import tree
import graph_methods as graph
def compute_improved_partition(G, k):
"""
This method takes as input a networkx graph G and a (supposed) num... |
"""Communication Module.
This script includes class definitions for communication
between processes. Example usage is to have a process for
fetching data from the event cameras and other processes for
processing the data.
The communication protocol is implemented through zeromq package.
The design principle is simila... |
from __future__ import print_function
import os
import numpy as np
from legacypipe.image import LegacySurveyImage
from legacypipe.survey import *
from astropy.io import fits as astro_fits
import fitsio
from astrometry.util.file import trymakedirs
from astrometry.util.fits import fits_table
from astrometry.util.util i... |
import sys
import numpy as np
import subprocess
from llvmlite import ir
from llvmlite import binding as llvm
import itertools
sys.path.append('../../BCC__BCC36B__P[3]__HenriqueMarcuzzo_2046334/impl/')
import tppSemantic
escopo = 'global'
list_var = {'global': []}
list_func = dict()
func_exit = False
def getTypeLV... |
import torch
import torch.nn as nn
import torch.nn.functional as F
is_real_world = False
if is_real_world:
import kornia as K
else:
import cv2
import numpy as np
import collections
from collections import OrderedDict
from utils.parameters import action_sequence, aug_continuous_theta, action_pixel_range, heightm... |
#!/usr/bin/env python
# Copyright (c) 2011 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.
"""Usage: Run with the '--help' flag to see how to use this script.
This tool will take a PDB on the command line, extract the sour... |
#
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... |
#!/usr/bin/env python
""" ImageNet Training Script
This is intended to be a lean and easily modifiable ImageNet training script that reproduces ImageNet
training results with some of the latest networks and training techniques. It favours canonical PyTorch
and standard Python style over trying to be able to 'do it all... |
# Copyright (c) 2013 Rackspace, Inc.
# Copyright (c) 2015 Catalyst IT 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 require... |
# This Python module is part of the PyRate software package.
#
# Copyright 2021 Geoscience Australia
#
# 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/... |
# -*- coding: utf-8 -*-
#
# Module for all kinds of parsing/input sanitization gymnastics
#
# Builtin/3rd party package imports
import os
import numpy as np
# Local imports
from syncopy.shared.filetypes import FILE_EXT
from syncopy.shared.errors import (SPYIOError, SPYTypeError, SPYValueError,
... |
#!/usr/bin/env python
import time
import json
import gym
import numpy as np
import marlo
from marlo import MalmoPython
import uuid
import hashlib
import base64
import xml.etree.ElementTree as ElementTree
import traceback
from jinja2 import Environment as jinja2Environment
from jinja2 import FileSystemLoader as jinja... |
# Copyright 2013 Devsim LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.