id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/APScheduler-4.0.0a1.tar.gz/APScheduler-4.0.0a1/src/apscheduler/triggers/combining.py
from __future__ import annotations from abc import abstractmethod from datetime import datetime, timedelta from typing import Any import attrs from .._exceptions import MaxIterationsReached from .._validators import as_timedelta, require_state_version from ..abc import Trigger from ..marshalling import marshal_objec...
PypiClean
/Interplanetary_Invaders-0.7-py3-none-any.whl/interplanetary_invaders/scripts/pause_menu.py
import pygame import sys from interplanetary_invaders.scripts import joystick pygame.init() platform = "System" if sys.platform.startswith("win"): platform = "Windows" if sys.platform == "linux": platform = "Linux" if sys.platform == "darwin": platform = "Mac" def pause_menu(display, images, data, inde...
PypiClean
/LFPykernels-0.2.0.tar.gz/LFPykernels-0.2.0/examples/README.md
# Examples In order to use these codes, please use the Docker container file ``../Dockerfile``) which can be build according to the README (https://github.com/LFPy/LFPykernels#docker). This cross-platform solution provides an environment including all dependencies for the main example notebook ``LIF_net_forward_model_...
PypiClean
/HPI-0.3.20230327.tar.gz/HPI-0.3.20230327/my/core/sqlite.py
from .common import assert_subpackage; assert_subpackage(__name__) from contextlib import contextmanager from pathlib import Path import shutil import sqlite3 from tempfile import TemporaryDirectory from typing import Tuple, Any, Iterator, Callable, Optional, Union from .common import PathIsh, assert_never from .co...
PypiClean
/mrv-1.0.2-stable.zip/mrv-1.0.2-stable/mrv/maya/ui/browse/interface.py
"""module with interfaces to define contracts""" __docformat__ = "restructuredtext" from mrv.interface import Interface __all__ = ('iFinderProvider', 'iOptions', 'iFinderFilter') class iFinderProvider(Interface): """Interface defining the capabilities of a provider to be usable by a Finder control. Every finder as ...
PypiClean
/JyPlotter-0.9.4.tar.gz/JyPlotter-0.9.4/PyPlotter/gtkGfx.py
import math import gtk, pango from gtk import gdk try: import Gfx except ImportError: from . import Gfx try: from Compatibility import * except ImportError: from . import Compatiblity globals().update(Compatibility.__dict__) driverName = "gtkGfx" ##################################################...
PypiClean
/datascrubber-0.0.5.tar.gz/datascrubber-0.0.5/README.md
# dstrial Module Documentation ## Overview This documentation explains the functions available in the ***`Datacleaning`*** module, which is designed to assist in data cleaning and analytics tasks ## Creating the an instance Through this process, we are calling our class which will help us access the various functions...
PypiClean
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/types/messages_and_media/video.py
from datetime import datetime from typing import List import pyrogram from pyrogram import raw, utils from pyrogram import types from pyrogram.file_id import FileId, FileType, FileUniqueId, FileUniqueType from ..object import Object class Video(Object): """A video file. Parameters: file_id (``str``...
PypiClean
/Geode_GEM-0.12.0-py3-none-any.whl/geode_gem/widgets/button.py
# Geode from geode_gem.widgets.common import GeodeGtkCommon from geode_gem.widgets.menu import GeodeGtkMenu # GObject from gi.repository import Gtk, Pango # ------------------------------------------------------------------------------ # Class # --------------------------------------------------------------------...
PypiClean
/CAMSA-1.3.tar.gz/CAMSA-1.3/camsa/libs/js/dataTables.material.min.js
(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,d){a||(a=window);if(!d||!d.fn.dataTable)d=require("datatables.net")(a,d).$;return c(d,a,a.document)}:c(jQuery,window,document)})(function(c...
PypiClean
/FragPELE-2.1.1.tar.gz/FragPELE-2.1.1/frag_pele/Templates/constants.py
import sys import os import socket DIR = os.path.dirname(__file__) ############################################## # PUBLIC CONSTANTS (to change by the user) # Preparation inputs to grow machine = socket.getfqdn() if "bsc.mn" in machine: # PELE parameters PATH_TO_PELE = "/gpfs/projects/bsc72/PELE++/mniv/rev1...
PypiClean
/NearPy-0.2.2.tar.gz/NearPy-0.2.2/nearpy/storage/storage.py
# Copyright (c) 2013 Ole Krause-Sparmann # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
PypiClean
/ConferenceCorpus-0.1.1.tar.gz/ConferenceCorpus-0.1.1/corpus/datasources/dblpxml.py
from pathlib import Path from io import BytesIO import urllib.request from gzip import GzipFile from lxml import etree from collections import Counter from xml.dom import minidom from lodstorage.sql import SQLDB from lodstorage.schema import Schema from corpus.utils.progress import Progress import os import re import t...
PypiClean
/My-CountriesAPI-1234567-1.0.tar.gz/My-CountriesAPI-1234567-1.0/my_countries_api_1234567/controllers/base_controller.py
from my_countries_api_1234567.api_helper import APIHelper from my_countries_api_1234567.http.http_context import HttpContext from my_countries_api_1234567.http.requests_client import RequestsClient from my_countries_api_1234567.exceptions.api_exception import APIException class BaseController(object): """All cont...
PypiClean
/KiKit-1.3.0-py3-none-any.whl/kikit/plugin.py
from kikit.actionPlugins import importAllPlugins # type: ignore from typing import Any, Dict, Iterable from kikit.panelize import Panel from kikit.substrate import Substrate from pcbnewTransition import pcbnew from shapely.geometry import LineString Preset = Dict[str, Dict[str, Any]] class HookPlugin: """ ...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/environment/collectors/title.py
from typing import Any, Dict, Set from docutils import nodes from sphinx.application import Sphinx from sphinx.environment import BuildEnvironment from sphinx.environment.collectors import EnvironmentCollector from sphinx.transforms import SphinxContentsFilter class TitleCollector(EnvironmentCollector): """titl...
PypiClean
/Drupdates-1.5.2.tar.gz/Drupdates-1.5.2/drupdates/sitebuild.py
import git, os, copy from os.path import expanduser from drupdates.utils import Utils from drupdates.settings import Settings from drupdates.settings import DrupdatesError from drupdates.drush import Drush from git import Repo class DrupdatesBuildError(DrupdatesError): """ Parent Drupdates site build error. """ c...
PypiClean
/Dead_Link_Checker-1.0.0-py3-none-any.whl/src/DLChecker.py
import sys import re try: from src import DLFunctions except ModuleNotFoundError: import DLFunctions # #Regular expression regex = DLFunctions.regex # #List of each links goodLinks = DLFunctions.goodLinks badLinks = DLFunctions.badLinks jsonArr = DLFunctions.jsonArr unknownLinks = DLFunctions.unknownLinks ...
PypiClean
/AMQPStorm-2.10.6.tar.gz/AMQPStorm-2.10.6/amqpstorm/heartbeat.py
import logging import threading from amqpstorm.exception import AMQPConnectionError LOGGER = logging.getLogger(__name__) class Heartbeat(object): """Internal Heartbeat handler.""" def __init__(self, interval, send_heartbeat_impl, timer=threading.Timer): self.send_heartbeat_impl = send_heartbeat_im...
PypiClean
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/twitter/migrations/0001_initial.py
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Query', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=F...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mdnd/dropMode/VerticalDropMode.js.uncompressed.js
define("dojox/mdnd/dropMode/VerticalDropMode", [ "dojo/_base/kernel", "dojo/_base/declare", "dojo/_base/html", "dojo/_base/array", "dojox/mdnd/AreaManager" ],function(dojo){ var vdm = dojo.declare( "dojox.mdnd.dropMode.VerticalDropMode", null, { // summary: // Enabled a type of calcul for Dnd. // Def...
PypiClean
/Ds_Style-0.0.1-py3-none-any.whl/Ds_Style/Ds_Style.py
import os from time import sleep as timeout import time import sys #################################### class Loading: def LD (Txt=str('Loading'),A='\033[1;37m┊',Start='\033[1;31m▊',End='\033[1;37m▒',B='\033[1;37m┊',Time=0.1,Repeat=40,TxtC='\033[1;37m'): for i in range(0,Repeat): i+=1 ...
PypiClean
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/KD_Lib/KD/vision/KA/LSR.py
import torch import torch.nn as nn import torch.nn.functional as F from KD_Lib.KD.common import BaseClass class LabelSmoothReg(BaseClass): """ Implementation of the label smoothening regularization technique from the paper "Preparing Lessons: Improve Knowledge Distillation with Better Supervision" ht...
PypiClean
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/Caption.py
from __future__ import absolute_import from .Core import * from ..Base import ( getXmlNodeBool, getXmlNodeFloat, getXmlNodeInt, getXmlNodeText, KalturaClientPlugin, KalturaEnumsFactory, KalturaObjectBase, KalturaObjectFactory, KalturaParams, KalturaServiceBase, ) ########## enu...
PypiClean
/CephQeSdk-1.0.0.tar.gz/CephQeSdk-1.0.0/src/RhcsQeSdk/core/cli/ceph/ceph.py
import logging import RhcsQeSdk.core.cli.fabfile as fabfile from RhcsQeSdk.core.cli.ceph.auth import Auth from RhcsQeSdk.core.cli.ceph.balancer import Balancer from RhcsQeSdk.core.cli.ceph.cephadm import CephAdm from RhcsQeSdk.core.cli.ceph.config import Config from RhcsQeSdk.core.cli.ceph.config_key import ConfigKey ...
PypiClean
/parts/Top/Hats/Turban.py
def Turban(color): return ( '<mask id="mask0_0_775" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="74" y="98" width="118" height="99">' ' <path fill-rule="evenodd" clip-rule="evenodd"' ' d="M133.498 165.841C122.124 166.219 117.05 171.721 113.229 166.13C110.361 161.932 111.56...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/data/util/default_item_sorter.py
from muntjac.data.util.item_sorter import IItemSorter class DefaultItemSorter(IItemSorter): """Provides a default implementation of an IItemSorter. The C{DefaultItemSorter} adheres to the L{ISortable.sort} rules and sorts the container according to the properties given using L{setSortProperties}. A C...
PypiClean
/Aitomatic-Contrib-23.8.10.3.tar.gz/Aitomatic-Contrib-23.8.10.3/src/aito/iot_mgmt/data/models.py
import warnings from django.db.models import ( Model, CharField, DateField, FloatField, IntegerField, JSONField, ForeignKey, ManyToManyField, PROTECT) from django.db.models.signals import m2m_changed, pre_delete from aito.iot_mgmt.utils import MAX_CHAR_LEN, clean_lower_str, clean_upper_str # noqa...
PypiClean
/DIRestPlus-0.2.2-py3-none-any.whl/direstplus/iwind.py
from direstplus import api from flask_restplus import Resource, reqparse from WindPy import w import pandas as pd import logging from datetime import datetime, date from direstplus.exceptions import RequestError logger = logging.getLogger(__name__) STR_FORMAT_DATE = '%Y-%m-%d' STR_FORMAT_DATETIME_WIND = '%Y-%m-%d %H:%...
PypiClean
/Fern2-1.4.1.tar.gz/Fern2-1.4.1/fern/data/data_utils.py
"""data utils""" from typing import * import re import pickle import pathlib import pandas as pd from fern.utils import check_path from fern.data import FernDataFrame def save_to_csv(data: Union[pd.DataFrame, FernDataFrame], path: Union[str, pathlib.Path]): """ save data to path Args: data: 需要保...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/95800.06fc1451fd938f84dbfd.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[95800],{78774:function(n,e,t){var o=t(87537),s=t.n(o),r=t(23645),a=t.n(r),l=t(61667),i=t.n(l),c=new URL(t(82763),t.b),u=a()(s()),h=i()(c);u.push([n.id,".hljs{display:block;overflow-x:auto;padding:.5em;backgroun...
PypiClean
/ExifReader-0.1.1-py3-none-any.whl/exifreader/utils.py
from fractions import Fraction def ord_(dta): if isinstance(dta, str): return ord(dta) return dta def make_string(seq): """ Don't throw an exception when given an out of range character. """ string = '' for c in seq: # Screen out non-printing characters try: ...
PypiClean
/ChemGAPP-0.0.9-py3-none-any.whl/ChemGAPP_Package/ChemGAPP_Big/Condition_Variance.py
# In[ ]: import argparse import pandas as pd import numpy as np import scipy.stats as stats def get_options(): parser = argparse.ArgumentParser(description="The variance of replicate colony sizes is calculated for each plate and these variance values are averaged for each plate within a condition.", ...
PypiClean
/KiKit-1.3.0-py3-none-any.whl/kikit/drc_ui.py
import click from enum import Enum class ReportLevel(Enum): warning = "warning" error = "error" def __str__(self): return self.value class EnumType(click.Choice): def __init__(self, enum: Enum, case_sensitive=False): self.__enum = enum super().__init__(choices=[item.value for ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/tools/watch/__main__.py
import os import sys from optparse import OptionParser from nuitka.containers.OrderedDicts import OrderedDict from nuitka.PythonVersions import getTestExecutionPythonVersions from nuitka.tools.testing.Common import extractNuitkaVersionFromFilePath from nuitka.Tracing import OurLogger from nuitka.TreeXML import fromFil...
PypiClean
/Finger_balabolka-1.0.25-py3-none-any.whl/fb_client/ui/gui_class.py
import sys from PyQt5 import QtWidgets, QtGui from fb_client.accounts.account import UserManager from fb_client.core.handlers import GuiReciever from fb_client.protocol.jim import Messages from fb_client.utils.utils import get_path from .ui_files.client_ui import Ui_MainWindow from .dialogs import EnterDialog, HelpD...
PypiClean
/FetchCord-2.7.7.tar.gz/FetchCord-2.7.7/fetch_cord/run_rpc.py
from typing import Callable, Dict from pypresence import Presence, exceptions import time, sys # import info about system from .args import parse_args from .config import ConfigError, load_config from .computer.Computer import Computer args = parse_args() class Run_rpc: rpcs: Dict[str, Presence] config: D...
PypiClean
/FairDynamicRec-0.0.123-py3-none-any.whl/fair_dynamic_rec/core/rankers/linear_submodular_bandit_2.py
import numpy as np from .abstract_ranker import AbstractRanker class LSB1(AbstractRanker): def __init__(self, config, dataObj, parameters=None): super(LSB1, self).__init__(config, dataObj) self.n_samples = np.zeros(dataObj.n_users) self.n_clicks = np.zeros(dataObj.n_users) self.dim ...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/utils/cache.py
import time from collections import defaultdict from django.conf import settings from django.core.cache import caches from django.http import HttpResponse, HttpResponseNotModified from django.utils.crypto import md5 from django.utils.http import http_date, parse_etags, parse_http_date_safe, quote_etag from django.util...
PypiClean
/NetworkSim-0.2.2.tar.gz/NetworkSim-0.2.2/examples/.ipynb_checkpoints/simulation_wrapper-checkpoint.ipynb
``` from NetworkSim.simulation.setup.simulator import Simulator from NetworkSim.architecture.setup.model import Model from NetworkSim.architecture.base.network import Network model = Model(network=Network(num_nodes=5)) simulator = Simulator(model=model, until=1000) simulator.initialise() simulator.RAM simulator.run...
PypiClean
/Febiss-0.9.0.tar.gz/Febiss-0.9.0/febiss/utilities/io_handling.py
__copyright__ = """ This code is licensed under the MIT license. Copyright University Innsbruck, Institute for General, Inorganic, and Theoretical Chemistry, Podewitz Group See LICENSE for details """ from typing import Union import numpy as np from febiss.utilities.structures import * def read_pdb(pdb, solute: Sol...
PypiClean
/Botic-1.1.4.tar.gz/Botic-1.1.4/botic/trader/hodlstoploss.py
import time from decimal import Decimal import typing as t import datetime from .base import BaseTrader from ..util import str2bool, parse_datetime from ..exchange.exceptions import ExchangeSellLimitError class HodlStopLoss(BaseTrader): """HodlStopLoss trader""" # pylint: disable=too-many-instance-attributes ...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/iron-resizable-behavior/.github/ISSUE_TEMPLATE.md
<!-- Instructions: https://github.com/PolymerElements/iron-resizable-behavior/CONTRIBUTING.md#filing-issues --> ### Description <!-- Example: The `paper-foo` element causes the page to turn pink when clicked. --> ### Expected outcome <!-- Example: The page stays the same color. --> ### Actual outcome <!-- Example: ...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.6.7.rst
=========================== Djblets 0.6.7 Release Notes =========================== **Release date**: January 9, 2011 djblets.datagrid ================ * The datagrids now use a RequestContext when rendering cells, allowing the columns or templates to access data from context processors. djblets.siteconfig ====...
PypiClean
/AADeepLearning-1.0.8.tar.gz/AAdeepLearning-1.0.8/develop/aa_cnn_mnist.py
from aa_deep_learning.AADeepLearning import AADeepLearning from aa_deep_learning.AADeepLearning.datasets import mnist from aa_deep_learning.AADeepLearning.datasets import np_utils import numpy as np np.random.seed(0) # mnist数据集已经被划分成了60,000个训练集,10,000个测试集的形式,如果数据不存在则自动下载 (x_train, y_train), (x_test, y_test) = mnist.lo...
PypiClean
/Mantissa-0.9.0.tar.gz/Mantissa-0.9.0/xmantissa/webnav.py
from epsilon.structlike import record from zope.interface import implements from nevow.inevow import IQ from nevow import url from nevow.stan import NodeNotFound from xmantissa.ixmantissa import ITab from xmantissa.fragmentutils import dictFillSlots class TabMisconfiguration(Exception): def __init__(self, inf...
PypiClean
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/isom/python/IsomObject_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/databrowse/datastructures.py
from __future__ import unicode_literals from django.db import models from django.utils import formats from django.utils.text import capfirst from django.utils.encoding import smart_text, force_str, iri_to_uri from django.db.models.query import QuerySet from django.utils.encoding import python_2_unicode_compatible EMP...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/rally-jobs/README.rst
Rally job related files ======================= This directory contains rally tasks and plugins that are run by OpenStack CI. Structure --------- * plugins - directory where you can add rally plugins. Almost everything in Rally is a plugin. Benchmark context, Benchmark scenario, SLA checks, Generic cleanup resou...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/nginx/nginx.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/LinSATNet-0.0.8.tar.gz/LinSATNet-0.0.8/README.md
# LinSATNet This is the official implementation of our ICML 2023 paper "LinSATNet: The Positive Linear Satisfiability Neural Networks". * [[paper]](https://runzhong.wang/files/icml2023_LinSATNet.pdf) With LinSATNet, you can enforce the satisfiability of general **positive linear constraints** to the output of neural ...
PypiClean
/NlpToolkit-Hmm-Cy-1.0.4.tar.gz/NlpToolkit-Hmm-Cy-1.0.4/README.md
Hidden Markov Models ============ Video Lectures ============ [<img src="https://github.com/StarlangSoftware/Hmm/blob/master/video1.jpg" width="50%">](https://youtu.be/zHj5mK3jcyk)[<img src="https://github.com/StarlangSoftware/Hmm/blob/master/video2.jpg" width="50%">](https://youtu.be/LM0ld3UKCEs) For Developers ==...
PypiClean
/Flask-API.yandex-0.6.2.1.tar.gz/Flask-API.yandex-0.6.2.1/flask_api/mediatypes.py
from __future__ import unicode_literals class MediaType(object): def __init__(self, media_type): self.main_type, self.sub_type, self.params = self._parse(media_type) @property def full_type(self): return self.main_type + '/' + self.sub_type @property def precedence(self): ...
PypiClean
/Django-clear-s2s-0.1.5.tar.gz/Django-clear-s2s-0.1.5/README.rst
============================= Django Clear S2S ============================= .. image:: https://badge.fury.io/py/Django-clear-s2s.svg :target: https://badge.fury.io/py/Django-clear-s2s .. image:: https://travis-ci.org/sal-git/Django-clear-s2s.svg?branch=master :target: https://travis-ci.org/sal-git/Django-cle...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/dblite.py
import os import pickle import shutil import time from SCons.compat import PICKLE_PROTOCOL KEEP_ALL_FILES = False IGNORE_CORRUPT_DBFILES = False def corruption_warning(filename): """Local warning for corrupt db. Used for self-tests. SCons overwrites this with a different warning function in SConsign.py...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Gyre-Pagella/Normal/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.GyrePagellaMathJax_Normal={directory:"Normal/Regular",family:"GyrePagellaMathJax_Normal",testString:"\u00A0\u210E\uD835\uDC00\uD835\uDC01\uD835\uDC02\uD835\uDC03\uD835\uDC04\uD835\uDC05\uD835\uDC06\uD835\uDC07\uD835\uDC08\uD835\uDC09\uD835\uDC0A\uD835\uDC0B\uD835\uDC0C",32:[...
PypiClean
/MLatom-2.3.3.tar.gz/MLatom-2.3.3/README.md
# Brief Introduction A Package for Atomistic Simulations with Machine Learning **manual**: http://mlatom.com/manual/ **tutorial**: http://mlatom.com/tutorial/ # Tasks Performed by MLatom A brief overview of MLatom capabilities (see above links for more up-to-date version). See sections below for more details. #...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/interfaces/squid.py
import platform import serial import serial.tools.list_ports import time import numpy as np import threading from qtpy.QtCore import * from qtpy.QtWidgets import * from qtpy.QtGui import * from imswitch.imcommon.model import initLogger from imswitch.imcontrol.model.interfaces.squid_def import * # add user to the di...
PypiClean
/models/MLP/train.py
import glob import os import pandas as pd import numpy as np import sys sys.path.insert(-1, '/scratch/yd105/ML_MM_Benchmark') # Torch # Own import flag_reader from utils import data_reader from class_wrapper import Network from model_maker import Forward from utils.helper_functions import put_param_into_folder, write_...
PypiClean
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/import_scripts/BAMtoGeneVariants.py
#Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #copi...
PypiClean
/Lantz-0.3.zip/Lantz-0.3/docs/guides/defaults.rst
.. _defaults_dictionary: ======================= The DEFAULTS dictionary ======================= Different instruments require different communication settings such as baud rate, end of a message characters, etc. The :attribute::`DEFAULTS` dictionary provides a way to customize resource initialization at the :class:...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js
var swfobject=function(){function u(){if(!s){try{var a=d.getElementsByTagName("body")[0].appendChild(d.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}s=!0;for(var a=x.length,c=0;c<a;c++)x[c]()}}function L(a){s?a():x[x.length]=a}function M(a){if(typeof m.addEventListener!=i)m.addEventListener("load"...
PypiClean
/NlpToolkit-PropBank-1.0.21.tar.gz/NlpToolkit-PropBank-1.0.21/PropBank/FramesetArgument.py
class FramesetArgument(object): __argument_type: str __definition: str __function: str def __init__(self, argumentType: str, definition: str, function: str = None): """ A constructor of FramesetArgument class which takes argumentType a...
PypiClean
/Flask-ThriftClient-0.2.0.tar.gz/Flask-ThriftClient-0.2.0/flask_thriftclient/__init__.py
from thrift.transport import TSocket, THttpClient, TTransport, TZlibTransport, TSSLSocket from thrift.protocol import TBinaryProtocol, TCompactProtocol try: #only available from thrift >= 0.9.1 from thrift.protocol import TJSONProtocol HAS_JSON_PROTOCOL = True except ImportError: HAS_JSON_PROTOCOL = False from ur...
PypiClean
/DeepXDE-1.9.3-py3-none-any.whl/deepxde/model.py
__all__ = ["LossHistory", "Model", "TrainState"] import pickle from collections import OrderedDict import numpy as np from . import config from . import display from . import gradients as grad from . import losses as losses_module from . import metrics as metrics_module from . import optimizers from . import utils f...
PypiClean
/AQoPA-0.9.5.tar.gz/AQoPA-0.9.5/aqopa/cmd.py
import optparse import sys import os from aqopa import VERSION from aqopa.bin import console, gui def gui_command(): app = gui.AqopaApp(False) app.MainLoop() def console_command(): parser = optparse.OptionParser() parser.usage = "%prog [options]" parser.add_option("-f", "--model-file", dest...
PypiClean
/ClipCap-1.0.0-py3-none-any.whl/clipcap/preprocess/reader.py
from torch.utils.data.dataloader import default_collate from torch.utils.data import DataLoader from pathlib import Path import io def folder_to_keys(folder, media_file_extensions: list): """returns a list of keys from a folder of images and text""" path = Path(folder) text_files = [*path.glob("**/*.txt...
PypiClean
/BRACoD-0.3.3.tar.gz/BRACoD-0.3.3/README.md
# BRACoD: Bayesian Regression Analysis of Compositional Data ### Installation Installation in python: pip install BRACoD There is also an R interface, which depends on the python version being installed. There is a helper function that will do it for you, but it might be easier to do it with pip. devtools...
PypiClean
/GReNaDIne-0.0.21.tar.gz/GReNaDIne-0.0.21/tutorials/Infer_dream5_E_coli_GRN_using_GENIE3.ipynb
``` %matplotlib inline import pandas as pd ``` # Load the dream5 dataset Please download the following datasets from the [dream5 dedicated website] (you need to create an account first)(https://www.synapse.org/#!Synapse:syn3130840): + `net3_expression_data.tsv`: E. coli gene expression data (MicroArray) + `net3_tran...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/doc/development/tutorials/todo.rst
Developing a "TODO" extension ============================= The objective of this tutorial is to create a more comprehensive extension than that created in :doc:`helloworld`. Whereas that guide just covered writing a custom :term:`directive`, this guide adds multiple directives, along with custom nodes, additional con...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bower/packages/bower-registry-client/Client.js
var async = require('async'); var methods = require('./lib'); var Cache = require('./lib/util/Cache'); function RegistryClient(config, logger) { this._logger = logger; this._config = config; if (!this._config.registry) { throw new Error( 'You need to pass config as read by bower-config...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/inout.js
function showSave() { requireLogin("You must login to save worksheets online.", function() { showPopup($('save')); }); } function openWorksheet(name) { hidePopup(); new Ajax.Request('/ajax/open/', { method: 'post', parameters: { 'name': name }, onSuccess: function(transport) { var response = transp...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/core/mail/backends/filebased.py
import datetime import os from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.mail.backends.console import ( EmailBackend as ConsoleEmailBackend, ) class EmailBackend(ConsoleEmailBackend): def __init__(self, *args, file_path=None, **kwargs): self...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/box_coders/faster_rcnn_box_coder.py
import tensorflow.compat.v1 as tf from object_detection.core import box_coder from object_detection.core import box_list EPSILON = 1e-8 class FasterRcnnBoxCoder(box_coder.BoxCoder): """Faster RCNN box coder.""" def __init__(self, scale_factors=None): """Constructor for FasterRcnnBoxCoder. Args: ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/ColorPalette.js
require({cache:{"url:dijit/templates/ColorPalette.html":"<div class=\"dijitInline dijitColorPalette\">\n\t<table dojoAttachPoint=\"paletteTableNode\" class=\"dijitPaletteTable\" cellSpacing=\"0\" cellPadding=\"0\" role=\"grid\">\n\t\t<tbody data-dojo-attach-point=\"gridNode\"></tbody>\n\t</table>\n</div>\n"}}); define(...
PypiClean
/CANberry-0.4.tar.gz/CANberry-0.4/canberry/bower_components/jquery/src/css.js
define([ "./core", "./var/pnum", "./core/access", "./css/var/rmargin", "./css/var/rnumnonpx", "./css/var/cssExpand", "./css/var/isHidden", "./css/var/getStyles", "./css/curCSS", "./css/defaultDisplay", "./css/addGetHookIf", "./css/support", "./data/var/data_priv", "./core/init", "./css/swap", "./core/r...
PypiClean
/Django-Template-Preprocess-1.0.2.tar.gz/Django-Template-Preprocess-1.0.2/template_preprocess/processor.py
from django.conf import settings from importlib import import_module from template_preprocess.util.loader import Loader from template_preprocess.util.content_type import filename_is_html def process_sub_template(name, seen_templates): content = Loader().get_template_content(name) is_html = filename_is_html(n...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_gv.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/docs/aoa/smart.rst
.. _smart: SMART ===== *Availability: all but Mac OS* *Dependency: this plugin uses the optional pySMART Python lib* This plugin is disable by default, please use the --enable-plugin smart option to enable it. .. image:: ../_static/smart.png Glances displays all the SMART attributes. How to read the information:...
PypiClean
/BenchExec-3.17.tar.gz/BenchExec-3.17/benchexec/tools/abc.py
import re import logging import benchexec.result as result import benchexec.tools.template class Tool(benchexec.tools.template.BaseTool2): """ Tool info for ABC: A System for Sequential Synthesis and Verification URL: https://people.eecs.berkeley.edu/~alanmi/abc/ """ def executable(self, tool_l...
PypiClean
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/modules/networks/network_base.py
import sys from typing import Any, Dict, List, Optional, Union import torch from torch import nn from BIT_DL.pytorch.core.layers import get_layer from BIT_DL.pytorch.hyperparams import HParams from BIT_DL.pytorch.module_base import ModuleBase from BIT_DL.pytorch.utils.utils import uniquify_str __all__ = [ "FeedF...
PypiClean
/IsoScore-1.0.tar.gz/IsoScore-1.0/README.md
# IsoScore This contains the Python3 implementation of IsoScore, which was originally introduced in the 2021 paper by William Rudman, Nate Gillman, Taylor Rayne, and Carsten Eickhoff. IsoScore is a tool which measures how uniformly a point cloud utilizes the Euclidian space that it sits inside of. See the original p...
PypiClean
/Downpour-0.2.tar.gz/Downpour-0.2/downpour/core/organizer.py
from downpour.download import Status from downpour.core import models from twisted.internet import defer, threads from time import time from datetime import datetime from dateutil.parser import parse as parsedate import logging, os, re, mimetypes, shutil mediatypes = { 'audio/music': 'Music', 'audio/podcast': ...
PypiClean
/Monzo%20API-0.3.0.tar.gz/Monzo API-0.3.0/monzo/endpoints/account.py
from __future__ import annotations from datetime import datetime from typing import List, Optional from monzo.authentication import Authentication from monzo.endpoints.balance import Balance from monzo.endpoints.monzo import Monzo from monzo.exceptions import MonzoHTTPError, MonzoPermissionsError from monzo.helpers i...
PypiClean
/NLP_LIB_cpu-0.0.12.tar.gz/NLP_LIB_cpu-0.0.12/NLP_LIB/transforms/bert_sentencepiece_pretrain_wrapper.py
import sys sys.path.append('.') import numpy as np import os from NLP_LIB.nlp_core.data_transform_wrapper import DataTransformWrapper import sentencepiece as spm import random import tensorflow as tf import six from tensorflow.keras import backend as K from tensorflow.keras.layers import * def create_int_feature(valu...
PypiClean
/ClusterShell-1.9.1.tar.gz/ClusterShell-1.9.1/doc/txt/clustershell.rst
ClusterShell is an event-driven open source Python framework, designed to run local or distant commands in parallel on server farms or on large Linux clusters. It will take care of common issues encountered on HPC clusters, such as operating on groups of nodes, running distributed commands using optimized execution alg...
PypiClean
/11l-2021.3-py3-none-any.whl/_11l_to_cpp/tokenizer.py
R""" После данной обработки отступы перестают играть роль — границу `scope` всегда определяют фигурные скобки. Также здесь выполняется склеивание строк, и таким образом границу statement\утверждения задаёт либо символ `;`, либо символ новой строки (при условии, что перед ним не стоит символ `…`!). ===================...
PypiClean
/FastAudioVisual-0.0.1.tar.gz/FastAudioVisual-0.0.1/README.md
# FastAudioVisual ## Usage A cross-platform command line tool to count the amount of lines and files under current directory. ## Installation You can install, upgrade, uninstall count-line with these commands(without $): ``` $ pip install count-line $ pip install --upgrade count-line $ pip unstall count-line ``` ##...
PypiClean
/Obsidian_Snippet_Manager-2.3.2-py3-none-any.whl/Obsidian_Snippeter/CLI.py
import argparse import os import sys from glob import glob from pathlib import Path from urllib.parse import urlparse from rich import print from rich.console import Console import Obsidian_Snippeter as manager from Obsidian_Snippeter.src import environment from Obsidian_Snippeter.src import github_action def creat...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js
'use strict'; const fs = require('fs'); module.exports = exports; const versionArray = process.version .substr(1) .replace(/-.*$/, '') .split('.') .map((item) => { return +item; }); const napi_multiple_commands = [ 'build', 'clean', 'configure', 'package', 'publish', 'reveal', 'testbinar...
PypiClean
/OASYS1-ESRF-Extensions-0.0.69.tar.gz/OASYS1-ESRF-Extensions-0.0.69/orangecontrib/esrf/wofry/util/thin_object_corrector.py
import numpy from oasys.util.oasys_util import write_surface_file from orangecontrib.esrf.wofry.util.thin_object import WOThinObject, WOThinObject1D #TODO from wofryimpl.... from wofry.beamline.decorators import OpticalElementDecorator class WOThinObjectCorrector(WOThinObject, OpticalElementDecorator): def __ini...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/core/operations.py
from ..utilities import ordered from .basic import _aresame from .cache import cacheit from .evaluate import global_evaluate from .expr import Expr from .sympify import sympify class AssocOp(Expr): """Associative operations, can separate noncommutative and commutative parts. (a op b) op c == a op (b op c...
PypiClean
/Agatsuma-0.2.176.default.3499b00918ca.tip.tar.gz/Agatsuma-0.2.176.default.3499b00918ca.tip/agatsuma/third_party/dictconfig.py
import logging.handlers import re import sys import types IDENTIFIER = re.compile('^[a-z_][a-z0-9_]*$', re.I) def valid_ident(s): m = IDENTIFIER.match(s) if not m: raise ValueError('Not a valid Python identifier: %r' % s) return True # # This function is defined in logging only in recent version...
PypiClean
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/chemdataextractor/doc/meta.py
from .element import BaseElement import logging log = logging.getLogger(__name__) class MetaData(BaseElement): def __init__(self, data): super(MetaData, self).__init__() self._data = data self._title = None self._authors = None self._publisher = None self._journal...
PypiClean
/ApiRequestManager-1.0.5-py3-none-any.whl/src/Pipelines.py
from datetime import datetime import requests import time from abc import ABC, abstractmethod from src.RequestFactory import RequestFactory class GenericPipeline(ABC): """Abstract Pipeline class All Pipeline class must inherit from this class methods read, process and write needs to be override in the su...
PypiClean
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/test/Instrument.py
from MJOLNIR.Geometry.Instrument import Instrument,prediction import MJOLNIR.Geometry.Analyser as Analyser import MJOLNIR.Geometry.Detector as Detector import MJOLNIR.Geometry.Wedge as Wedge from MJOLNIR.Data import Sample import pytest import numpy as np import warnings import matplotlib as mpl mpl.use('Agg') import m...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/locale/lang/el.js
'use strict'; exports.__esModule = true; exports.default = { el: { colorpicker: { confirm: 'Εντάξει', clear: 'Καθαρισμός' }, datepicker: { now: 'Τώρα', today: 'Σήμερα', cancel: 'Ακύρωση', clear: 'Καθαρισμός', ...
PypiClean
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/hyperkitty/static/hyperkitty/libs/bootstrap/javascripts/bootstrap.bundle.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t=t||self).bootstrap={},t.jQuery)}(this,function(t,p){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1...
PypiClean
/Kate-plugins-0.2.3.tar.gz/Kate-plugins-0.2.3/README.rst
.. contents:: ============ Kate Plugins ============ Information =========== These are Pate plugins for `Kate <http://kate-editor.org/>`_ editor. Plugins to make coding easier in `Python <http://python.org/>`_, `Django <https://docs.djangoproject.com>`_ and JavaScript .. note:: This repository is unmaintained, b...
PypiClean
/KayleeVC-0.1.1.tar.gz/KayleeVC-0.1.1/README.rst
Kaylee ====== Kaylee is a somewhat fancy speech recognizer that will run commands and perform other functions when a user speaks loosely preset sentences. It is based on `Blather <https://gitlab.com/jezra/blather>`__ by `Jezra <http://www.jezra.net/>`__, but adds a lot of features that go beyond the original purpose o...
PypiClean