id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/5933.fa9e8ae326e36cb2df0d.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[5933],{66220:function(n,e,t){var o=t(87537),s=t.n(o),a=t(23645),r=t.n(a)()(s());r.push([n.id,".hljs-comment,.hljs-quote{color:#b6b18b}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-i...
PypiClean
/MoonNectar-0.6.0.tar.gz/MoonNectar-0.6.0/mnectar/ui/pyqt5/QPlaylistModel.py
import logging import pathlib import urllib from contextlib import contextmanager from PyQt5 import QtCore from PyQt5 import QtGui from PyQt5.QtCore import Qt from mnectar.library.view import Sorted, Filtered, Changed from .roles import UserRoles _logger = logging.getLogger(__name__) class QPlaylis...
PypiClean
/django-chuck-0.2.3.tar.gz/django-chuck/modules/feincms/project/static/scripts/libs/tiny_mce/langs/en.js
tinyMCE.addI18n({en:{common:{"more_colors":"More Colors...","invalid_data":"Error: Invalid values entered, these are marked in red.","popup_blocked":"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in ...
PypiClean
/Bino_gau-0.1.tar.gz/Bino_gau-0.1/Bino_Gau/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/Flask-RESTive-0.0.3.tar.gz/Flask-RESTive-0.0.3/flask_restive_sqlalchemy/models.py
from __future__ import unicode_literals from collections import OrderedDict from sqlalchemy.ext.declarative import declarative_base, declared_attr from sqlalchemy.inspection import inspect from sqlalchemy.exc import NoInspectionAvailable from flask_restive.utils import classproperty, plural, decapitalize Base = de...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/solvers/petsc/comms/serialPETScCommWrapper.py
## -*-Pyth-*- # ################################################################### # FiPy - Python-based finite volume PDE solver # # FILE: "serialPETScCommWrapper.py" # # Author: Jonathan Guyer <guyer@nist.gov> # Author: Daniel Wheeler <daniel.wheeler@nist.gov> # Author: James Warren <jwarren@nist.go...
PypiClean
/Flask-Ask-0.9.8.tar.gz/Flask-Ask-0.9.8/flask_ask/models.py
import inspect from flask import json from xml.etree import ElementTree import aniso8601 from .core import session, context, current_stream, stream_cache, dbgdump from .cache import push_stream import uuid class _Field(dict): """Container to represent Alexa Request Data. Initialized with request_json and cre...
PypiClean
/GSAS-II-WONDER_osx-1.0.4.tar.gz/GSAS-II-WONDER_osx-1.0.4/GSAS-II-WONDER/GSASIIstrMain.py
########### SVN repository information ################### # $Date: 2019-09-04 17:06:31 -0500 (Wed, 04 Sep 2019) $ # $Author: toby $ # $Revision: 4136 $ # $URL: https://subversion.xray.aps.anl.gov/pyGSAS/trunk/GSASIIstrMain.py $ # $Id: GSASIIstrMain.py 4136 2019-09-04 22:06:31Z toby $ ########### SVN repository informa...
PypiClean
/Glashammer-0.2.1.tar.gz/Glashammer-0.2.1/docs/source/gettingstarted.rst
.. _gettingstarted: Getting Started Guide ===================== This chapter will help you get running with Glashammer. It is only a cursory look, and the following chapters will describe more detailed usage. Downloading ----------- Refer to our downloads section at: :ref:`downloads` Requirements ----------...
PypiClean
/Flox-lib-0.20.0.tar.gz/Flox-lib-0.20.0/flox/utils.py
from tempfile import gettempdir from urllib import request from urllib.error import URLError from pathlib import Path from functools import wraps import json import os from time import time import socket from concurrent.futures import ThreadPoolExecutor import logging logging = logging.getLogger(__name__) URL_SCHEMA ...
PypiClean
/GBZQ_distributions-0.1.tar.gz/GBZQ_distributions-0.1/distributions/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/DXR-1.9.4.tar.gz/DXR-1.9.4/Dxr_video/HCNetSDK.py
import ctypes import sys from ctypes import * # 回调函数类型定义 if 'linux' in sys.platform: fun_ctype = CFUNCTYPE else: fun_ctype = WINFUNCTYPE # 云台控制命令 LIGHT_PWRON = 2 #接通灯光电源 WIPER_PWRON = 3 #接通雨刷开关 FAN_PWRON = 4 #接通风扇开关 HEATER_PWRON = 5 #接通加热器开关 AUX_PWRON1 = 6 #接通辅助设备开关 AUX_PWRON2 = 7 #接通辅助设备开关 ZOOM_IN = ...
PypiClean
/Durus-4.2.tar.gz/Durus-4.2/durus/file_storage2.py
from datetime import datetime import heapq from durus.file import File from durus.logger import log, is_logging from durus.serialize import unpack_record, split_oids from durus.storage import Storage from durus.utils import int8_to_str, str_to_int8, IntSet from durus.utils import read, write, read_int8_str, write_int8_...
PypiClean
/CocoPy-1.1.0rc.zip/CocoPy-1.1.0rc/testSuite/TestWeak_Scanner.py
import sys class Token( object ): def __init__( self ): self.kind = 0 # token kind self.pos = 0 # token position in the source text (starting at 0) self.col = 0 # token column (starting at 0) self.line = 0 # token line (starting at 1) self.val = u'' # tok...
PypiClean
/MissForest-2.0.0-py3-none-any.whl/missforest/missforest.py
__all__ = ["MissForest"] __version__ = "2.0.0" __author__ = "Yuen Shing Yan Hindy" from copy import deepcopy import numpy as np import pandas as pd from lightgbm import LGBMClassifier from lightgbm import LGBMRegressor class MissForest: """ Parameters ---------- clf : estimator object, default=None....
PypiClean
/Galaxy-ML-0.10.0.tar.gz/Galaxy-ML-0.10.0/galaxy_ml/preprocessors/_image_batch_generator.py
import os import warnings from keras.utils import Sequence from keras_preprocessing.image import ( DataFrameIterator, ImageDataGenerator, Iterator ) from keras_preprocessing.image.utils import ( array_to_img, img_to_array, load_img, validate_filename, ) import numpy as np from sklearn.ba...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/domexception/node_modules/webidl-conversions/README.md
# Web IDL Type Conversions on JavaScript Values This package implements, in JavaScript, the algorithms to convert a given JavaScript value according to a given [Web IDL](http://heycam.github.io/webidl/) [type](http://heycam.github.io/webidl/#idl-types). The goal is that you should be able to write code like ```js "u...
PypiClean
/NLP_LIB_cpu-0.0.12.tar.gz/NLP_LIB_cpu-0.0.12/NLP_LIB/models/transformer_decoder_only_wrapper.py
from NLP_LIB.nlp_core.model_wrapper import EncoderModelWrapper, TrainableModelWrapper, SequenceModelWrapper from NLP_LIB.ext.transformer import Transformer import random, os, sys import numpy as np from tensorflow.keras.models import * from tensorflow.keras.layers import * from tensorflow.keras.callbacks import * from ...
PypiClean
/FoxDot-0.8.12.tar.gz/FoxDot-0.8.12/README.md
FoxDot - Live Coding with Python v0.8 ===================================== ## Please note I am no longer actively developing FoxDot and will only be making minor changes to the code in response to issues / pull requests in this time. However, you can still ask questions on the [TOPLAP FoxDot Forum](https://forum.top...
PypiClean
/DreamDiff-1.0.1.tar.gz/DreamDiff-1.0.1/README.md
# cs107-FinalProject ## Group #32 Aditya Kumar, Carlos Robles, Blake Bullwinkel Travis Build Badge: [![Build Status](https://travis-ci.org/autodiffdreamteam/cs107-FinalProject.svg?branch=master)](https://travis-ci.org/autodiffdreamteam/cs107-FinalProject) Codecoverage Badge: [![codecov](https://codecov.io/gh/autodif...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/editor/README
------------------------------------------------------------------------------- dojox.editor ------------------------------------------------------------------------------- Version 0.9 Release date: 9/14/2009 ------------------------------------------------------------------------------- Project state: experimental, be...
PypiClean
/Dbase_connectors-0.1.0.tar.gz/Dbase_connectors-0.1.0/README.md
# Dbase_connectors (All in one)... This package help developers to connect thier projects with different databases including sqlite, sqlserver, mysql, mariadb and postgresql. Developers don't have to search which package must be installed to connect with thier databases. ## Usage ##### sqlite connector ``` from conne...
PypiClean
/AutoAsd-0.2.9-py3-none-any.whl/autoasd/__main__.py
import time import os import importlib import sys import datetime #import pexpect from shutil import copyfile dev=False computer='desktop' timeout=5 share_loc='' RS3_loc='' ViewSpecPro_loc='' if not dev: dir='\\'.join(__file__.split('\\')[0:-1]) sys.path.append(dir) os.chdir(dir) print('Working in '+...
PypiClean
/AN-DiscordBot-3.9.4.tar.gz/AN-DiscordBot-3.9.4/anbot/core/data_manager.py
import inspect import logging import os import sys import tempfile from copy import deepcopy from pathlib import Path import appdirs from discord.utils import deprecated from . import commands from .json_io import JsonIO __all__ = [ "create_temp_config", "load_basic_configuration", "cog_data_path", "...
PypiClean
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/mode-liquid.js
define("ace/mode/liquid",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/liquid_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./liquid_highlight_rules").LiquidHighlightRule...
PypiClean
/Flowgiston-0.1.tar.gz/Flowgiston-0.1/flowgiston/base.py
from uuid import uuid4 from graphviz import Digraph def flowgiston_base(**base_style): """ Returns an instance of the FlowgistonBase class. Subclassing this class allows users to apply their own styling and those classes will be made available in instances of FlowgistonChart associated with this class. ...
PypiClean
/edward-1.3.5.tar.gz/edward-1.3.5/edward/models/random_variable.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from collections import defaultdict try: from tensorflow.python.client.session import \ register_session_run_conversion_functions except Exception as e: raise ImportError("{0...
PypiClean
/CloudReg-1.0.1-py3-none-any.whl/cloudreg/scripts/run_colm_pipeline_ec2.py
from .util import start_ec2_instance, run_command_on_server import argparse import boto3 def run_colm_pipeline( ssh_key_path, instance_id, input_s3_path, output_s3_path, num_channels, autofluorescence_channel, log_s3_path=None, instance_type="r5d.24xlarge", ): """Run COLM pipeline ...
PypiClean
/Assimulo-3.0.tar.gz/Assimulo-3.0/assimulo/examples/cvode_with_initial_sensitivity.py
# Copyright (C) 2010 Modelon AB # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITH...
PypiClean
/Naver_Series-1.1.3.Beta.tar.gz/Naver_Series-1.1.3.Beta/NaverSeries/search.py
from bs4 import BeautifulSoup from requests import get def search(keyword:str, focus:str='novel') -> dict: #Request url = f'https://series.naver.com/search/search.series?fs={focus}&q={keyword}' response = get(url) if response.status_code == 200: html = BeautifulSoup(response.text, 'html.parse...
PypiClean
/NiMARE-0.2.0rc2.tar.gz/NiMARE-0.2.0rc2/nimare/workflows/cbma.py
import logging from nimare.dataset import Dataset from nimare.utils import _check_type from nimare.workflows.base import Workflow LGR = logging.getLogger(__name__) class CBMAWorkflow(Workflow): """Compose a coordinate-based meta-analysis workflow. .. versionchanged:: 0.1.2 - `cbma_workflow` functi...
PypiClean
/FishFishJump-0.2.3.tar.gz/FishFishJump-0.2.3/fish_dashboard/static/js/scrapy/job_list.js
function cancelJob(project_name, job_id) { $.ajax({ url: "/scrapyd/job/cancel", type: "POST", data: { "project_name": project_name, "job_id": job_id } }); } function generatePendingJobList(list) { var tableBody = $("#pendingJobListDataTableBody"); ...
PypiClean
/Karka-0.0.3.tar.gz/Karka-0.0.3/karka/predict_graph.py
import abc import tensorflow as tf from .rec_graph import relative_cosine class AbstractPredictionGraph(object): __metaclass__ = abc.ABCMeta @abc.abstractmethod def connect_dense_prediction_graph(self, tf_user_representation, tf_item_representation): """ This method is responsible for co...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Types/Integer.py
# +---------------------------------------------------------------------------+ # | 01001110 01100101 01110100 01111010 01101111 01100010 | # | | # | Netzob : Inferring communication protocols |...
PypiClean
/BasicLibrary.PY-0.5.12.tar.gz/BasicLibrary.PY-0.5.12/BasicLibrary/dataBase/MySql/ddl.py
from BasicLibrary.data.dictHelper import DictHelper from BasicLibrary.data.stringHelper import StringHelper from BasicLibrary.dataBase.databaseClient import DatabaseClient from BasicLibrary.dataBase.databaseDDL import DatabaseDDL from BasicLibrary.dataBase.databaseEnum import BatchMode from BasicLibrary.dataBase.databa...
PypiClean
/Mopidy-Spotify-4.1.1.tar.gz/Mopidy-Spotify-4.1.1/mopidy_spotify/web.py
import copy import email import logging import os import re import time import urllib.parse from dataclasses import dataclass from datetime import datetime from enum import Enum, unique from typing import Optional import requests from mopidy_spotify import utils logger = logging.getLogger(__name__) def _trace(*arg...
PypiClean
/BeatNet-1.1.1.tar.gz/BeatNet-1.1.1/README.md
# Announcement Streaming and realtime capabilities are recently added to the model. In streaming usage cases, make sure to feed the system with as loud input as possible to laverage the maximum streaming performance, given all models are trained on the datasets containing mastered songs. # BeatNet The BeatNet is a p...
PypiClean
/Nikola-8.2.4-py3-none-any.whl/nikola/plugins/command/deploy.py
# Copyright © 2012-2023 Roberto Alsina and others. # 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, mer...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/94514.a3622efff9eebef332d3.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[94514],{94514:function(n){n.exports='\x3c!-- Root element of PhotoSwipe. Must have class pswp. --\x3e\n<div\n id="photoswipe-template"\n class="pswp"\n tabindex="-1"\n role="dialog"\n aria-hidden...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/climate_metrics/psi.py
import logging import os import cf_units import iris import iris.coord_categorisation import numpy as np from scipy import stats from esmvaltool.diag_scripts.shared import ( ProvenanceLogger, get_diagnostic_filename, group_metadata, io, run_diagnostic, select_metadata, sorted_metadata, ) ...
PypiClean
/CommandParser-0.3.tar.gz/CommandParser-0.3/README.txt
CommandParser ============= change objects to OptionParser instances via reflection Overview -------- It is a common pattern for command line interfaces to use subcomands (e.g.): hg commit -m 'foo bar' git push origin master CommandParser does this via introspection of a given class. When invoked with a class...
PypiClean
/Graph_RL-0.1.2.tar.gz/Graph_RL-0.1.2/graph_rl/models/mlp_actor_critic_model.py
from abc import ABC, abstractmethod import torch from .model import Model from ..networks import MLPNetwork, ConcatNetwork, SquashNetwork, NegativeNetwork class MLPActorCriticModel(Model): def __init__(self, hidden_layers_actor, hidden_layers_critics, activation_fns_actor, activation_fns_critics, n_...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/legacyoutput/plugin.min.js
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),t=function(s){var e,t,i,a;t=!1,(e=s).settings.inline_styles=t,e.getParam("fontsize_formats")||(i="8pt=1 10pt=2 12pt=3 14pt=4 18pt=5 24pt=6 36pt=7",e.settings.fontsize_formats=i),e.getPar...
PypiClean
/Catactor-0.1.2.tar.gz/Catactor-0.1.2/shell_scripts/prediction/predict_GSE127257_distal.sh
set -euxo pipefail GSE=GSE127257 #GSE_train=GSE123576 sf_marker='GABAergic_markers_fc.txt,Glutamatergic_markers_fc.txt,Non.Neuronal_markers_fc.txt' ta_marker='tasic2016_gaba.csv,tasic2016_glu.csv,tasic2016_gli.csv' cu_marker='cusanovich2018_inh.txt,cusanovich2018_ext.txt,cusanovich2018_gli.txt' if [ "$2" == "rank" ]; t...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcommon/view/AboutDialog.py
from qtpy import QtCore, QtWidgets import imswitch class AboutDialog(QtWidgets.QDialog): """ Dialog showing information about ImSwitch. """ def __init__(self, parent=None, *args, **kwargs): super().__init__(parent, QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint, ...
PypiClean
/BifacialSimu-1.2.0-py3-none-any.whl/BifacialSimu_src/Vendor/bifacial_radiance/gui.py
import os try: import tkinter as tk from tkinter import ttk except: import Tkinter as tk import ttk import bifacial_radiance import warnings # aliases for Tkinter functions END = tk.END W = tk.W Entry = tk.Entry Button = tk.Button Radiobutton = tk.Radiobutton IntVar = tk.IntVar PhotoImage = tk.PhotoIm...
PypiClean
/Dans_Diffraction-3.0.0-py3-none-any.whl/Dans_Diffraction/tkgui/diffractometer.py
import matplotlib.pyplot as plt import numpy as np from matplotlib.figure import Figure from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg from matplotlib.backends.backend_tkagg import NavigationToolbar2Tk as NavigationToolbar2TkAgg from .. import functions_general as fg from .. import functions_crystallo...
PypiClean
/Flask-Philo-SQLAlchemy-0.5.3.tar.gz/Flask-Philo-SQLAlchemy-0.5.3/flask_philo_sqlalchemy/connection.py
from flask import current_app, _app_ctx_stack from flask_philo_core import ConfigurationError from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session class Connection(object): def __init__(self, engine, session): """ Encapsulates an engine and session to a dat...
PypiClean
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libreco/algorithms/user_cf.py
from collections import defaultdict from itertools import islice from operator import itemgetter import numpy as np from tqdm import tqdm from ..bases import CfBase from ..recommendation import popular_recommendations from ..utils.misc import colorize class UserCF(CfBase): """*User Collaborative Filtering* algo...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/mwld.py
__revision__ = "src/engine/SCons/Tool/mwld.py 2014/07/05 09:42:21 garyo" import SCons.Tool def generate(env): """Add Builders and construction variables for lib to an Environment.""" SCons.Tool.createStaticLibBuilder(env) SCons.Tool.createSharedLibBuilder(env) SCons.Tool.createProgBuilder(env) ...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/plugins/ContextMenu/lang/fr.js
{ "Cut": "Couper", "Copy": "Copier", "Paste": "Coller", "_Image Properties...": "_Propriétés de l'image...", "_Modify Link...": "_Modifier le lien...", "Chec_k Link...": "_Vérifier le lien...", "_Remove Link...": "_Supprimer le lien...", "C_ell Properties...": "P_ropriétés de la cellule...", "Ro_w Pro...
PypiClean
/BatchImageResize-0.3.7-py3-none-any.whl/batch_image_resize/core.py
from time import time from shutil import copy from os import walk, makedirs, path from PIL import Image from queue import Queue from threading import Lock from .utils import start_threads class Resizer: """Класс для изменения размеров и сжатия изображений""" def __init__(self, input_dir, output_dir, size, qua...
PypiClean
/Nodes-1.2.tar.gz/Nodes-1.2/nodes/logic.py
# This file is part of Nodes. # # Nodes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Nodes is distributed in the hope that it ...
PypiClean
/ModelManager-0.1.2.tar.gz/ModelManager-0.1.2/model_manager/__init__.py
__all__ = ['ModelManager', 'SqlAlchemyModelManager', 'ProxyManager'] class ModelManager(object): @classmethod def create(cls, **kwargs): raise NotImplementedError() @classmethod def get(cls, *args, **kwargs): raise NotImplementedError() @classmethod def get_many(cls, offset=...
PypiClean
/DALI-dataset-1.1.tar.gz/DALI-dataset-1.1/DALI/download.py
from . import utilities as ut import os import youtube_dl base_url = 'http://www.youtube.com/watch?v=' class MyLogger(object): def debug(self, msg): print(msg) def warning(self, msg): print(msg) def error(self, msg): print(msg) def my_hook(d): if d['status'] == 'finished':...
PypiClean
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/modeling/splines/hermite.py
import aerosandbox.numpy as np from typing import Union def linear_hermite_patch( x: Union[float, np.ndarray], x_a: float, x_b: float, f_a: float, f_b: float, ) -> Union[float, np.ndarray]: """ Computes the linear Hermite polynomial patch that passes through the given e...
PypiClean
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/fontconfig_pattern.py
from functools import lru_cache import re import numpy as np from pyparsing import (Literal, ZeroOrMore, Optional, Regex, StringEnd, ParseException, Suppress) family_punc = r'\\\-:,' family_unescape = re.compile(r'\\([%s])' % family_punc).sub family_escape = re.compile(r'([%s])' % family_punc)....
PypiClean
/Fuzzy_Output_EVAMortus-0.0.23-py3-none-any.whl/Fuzz_output/main.py
import math from matplotlib import pyplot from typing import Callable, Dict, List, Union class Bool_expression: # Булева формула, операндами которой являются нечёткие высказывания def __init__(self, Truth = None): self.__Truth = Truth def Calculate_truth(self): return None @proper...
PypiClean
/LibertyWrapper.py-0.1-py3-none-any.whl/libertywrapper/bot.py
import requests import os import json from .user import BriefUser, UserSearchResult from .game import MapBlip from .player import Player from .general import General from .faction import Faction from .staff import Staff from .base.data import Log from .base.config import USERNAME, PASSWORD def check_json_status(fun...
PypiClean
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/common/Extra/pysnmp/session.py
import socket import select # Import package components import message import error class session (message.message): """Build & send SNMP request, receive & parse SNMP response """ def __init__ (self, agent, community='public'): # Call message class constructor message.message.__init__ (se...
PypiClean
/Catactor-0.1.2.tar.gz/Catactor-0.1.2/shell_scripts/prediction/predict_BICCN.sh
set -euxo pipefail echo $PATH sf_marker='GABAergic_markers_fc.txt,Glutamatergic_markers_fc.txt,Non.Neuronal_markers_fc.txt' ta_marker='tasic2016_gaba.csv,tasic2016_glu.csv,tasic2016_gli.csv' cu_marker='cusanovich2018_inh.txt,cusanovich2018_ext.txt,cusanovich2018_gli.txt' tn_marker='tasic2018_gaba.txt,tasic2018_glu.txt,...
PypiClean
/Dts-OpenFisca-Core-34.8.0.tar.gz/Dts-OpenFisca-Core-34.8.0/openfisca_core/tracers.py
from __future__ import annotations import os import json import time import csv from itertools import groupby from dataclasses import dataclass, field import numpy as np from typing import List, Dict, Optional, Iterator, Any import importlib.resources as pkg_resources from openfisca_core.parameters import Parameter...
PypiClean
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/arch/Darwin/netstat.py
__version__ = '$Revision: 895 $' __copyright__ = 'Copyright (c) Chris Miles 2004-2005' __author__ = 'Chris Miles' __license__ = ''' This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eithe...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/utils/deprecation.py
import inspect import warnings class RemovedInDjango30Warning(DeprecationWarning): pass class RemovedInDjango31Warning(PendingDeprecationWarning): pass RemovedInNextVersionWarning = RemovedInDjango30Warning class warn_about_renamed_method: def __init__(self, class_name, old_method_name, new_method_n...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/resources/coverages/metadata/product_formats/landsat8_l1.py
from django.contrib.gis.geos import Polygon from eoxserver.core.util.timetools import parse_iso8601 from eoxserver.resources.coverages.metadata.utils.landsat8_l1 import ( is_landsat8_l1_metadata_file, parse_landsat8_l1_metadata_file ) class Landsat8L1ProductMetadataReader(object): def test_path(self, path)...
PypiClean
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/AppTools/Shapes.py
__all__ = ['PolygonTexture', 'Disc', 'Block'] from . import Boxes from PIL import Image, ImageDraw def PolygonTexture(frame=None, vertices=((0.0,1.0), (1.0,1.0), (0.5,0.0)), color=(0,0,0), anchor=None, position=None, size=None, **kwargs): if frame==None: if size == None: size = (100,100) if position == None: po...
PypiClean
/DCASE-models-0.2.0rc2.tar.gz/DCASE-models-0.2.0rc2/dcase_models/util/data.py
"""Data functions""" def get_fold_val(fold_test, fold_list): """ Get the validation fold given the test fold. Useful for cross-validation evaluation mode. Return the next fold in a circular way. e.g. if the fold_list is ['fold1', 'fold2',...,'fold10'] and the fold_test is 'fold1', then return 'fo...
PypiClean
/AutoTransform-1.1.1a8-py3-none-any.whl/autotransform/validator/base.py
# @black_format """The base class and associated classes for Validator components.""" from __future__ import annotations from abc import abstractmethod from dataclasses import dataclass from enum import Enum from typing import Any, ClassVar, Dict, Mapping, Optional from autotransform.batcher.base import Batch from...
PypiClean
/Ibidas-0.1.26.tar.gz/Ibidas-0.1.26/ibidas/thirdparty/rad_util.py
__author__ = 'Tim Wegener <twegener@radlogic.com.au>' __date__ = '$Date: 2007/03/27 03:15:06 $' __version__ = '$Revision: 0.45 $' __credits__ = """ David Chandler, for polygon area algorithm. (http://www.davidchandler.com/AreaOfAGeneralPolygon.pdf) """ import re import sys im...
PypiClean
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/app/invocations/upscale.py
from pathlib import Path from typing import Literal import cv2 as cv import numpy as np from basicsr.archs.rrdbnet_arch import RRDBNet from PIL import Image from realesrgan import RealESRGANer from invokeai.app.invocations.primitives import ImageField, ImageOutput from invokeai.app.models.image import ImageCategory, ...
PypiClean
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_201605.py
from __future__ import unicode_literals name = '201605' division_schema = { '110000': '北京市', '110101': '东城区', '110102': '西城区', '110105': '朝阳区', '110106': '丰台区', '110107': '石景山区', '110108': '海淀区', '110109': '门头沟区', '110111': '房山区', '110112': '通州区', '110113': '顺义区', '11011...
PypiClean
/Kiwiii-server-0.7.0.tar.gz/Kiwiii-server-0.7.0/kiwiii/tablebuilder.py
import functools import time import uuid from kiwiii import worker as wk def timestamp(data): now = time.time() start = time.mktime(time.strptime(data["startDate"], "%X %x %Z")) data["responseDate"] = time.strftime("%X %x %Z", time.localtime(now)) data["execTime"] = round(now - start, 1) class Row...
PypiClean
/LinkChecker_GUI-10.0.0a2-py3-none-any.whl/linkcheck_gui/__init__.py
import os import re import sys import webbrowser from linkcheck import LinkCheckerError from linkcheck import checker as linkchecker_checker from linkcheck import configuration as linkchecker_configuration from linkcheck import (director, get_link_pat, httputil, i18n, logconf, mimeutil, strform...
PypiClean
/Dulcinea-0.11.tar.gz/Dulcinea-0.11/lib/attachable.py
from datetime import datetime from dulcinea.spec import spec, specify, add_getters_and_setters, require, string from dulcinea.stored_file import StoredFile, MIME_TYPES from dulcinea.user import DulcineaUser class Attachment: """ Stores properties of an attachment relationship between an Attachable object a...
PypiClean
/MobileElementFinder-1.1.2-py3-none-any.whl/me_finder/converters.py
import logging from itertools import groupby import numpy as np import cattr from Bio.Seq import Seq from Bio.SeqFeature import FeatureLocation, SeqFeature from Bio.SeqRecord import SeqRecord from mgedb.db import MgeType, TransposaseRecord from .result import PredictionEvidence LOG = logging.getLogger(__name__) d...
PypiClean
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/tools/PMTD/PMTD_predictor.py
import cv2 import numpy as np from torchvision import transforms as T from PMTD.tools.PMTD.inference import PlaneClustering from PMTD.tools.PMTD.predictor import COCODemo from PMTD.tools.PMTD.transforms import Resize from PMTD.maskrcnn_benchmark.modeling.roi_heads.mask_head.inference import Masker from PMTD.maskrcnn_b...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Variables/__init__.py
__revision__ = "src/engine/SCons/Variables/__init__.py 2014/07/05 09:42:21 garyo" import os.path import sys import SCons.Environment import SCons.Errors import SCons.Util import SCons.Warnings from BoolVariable import BoolVariable # okay from EnumVariable import EnumVariable # okay from ListVariable import ListV...
PypiClean
/GaitAnalysisToolKit-0.2.0.tar.gz/GaitAnalysisToolKit-0.2.0/gaitanalysis/gait.py
# standard library import os # external libraries from pkg_resources import parse_version import numpy as np from scipy.integrate import simps import matplotlib.pyplot as plt import pandas from dtk import process import oct2py from oct2py import octave # local from .utils import _percent_formatter # debugging try: ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/dist/js/adminlte.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery')) : typeof define === 'function' && define.amd ? define(['exports', 'jquery'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.adminlt...
PypiClean
/Heralding-1.0.7.tar.gz/Heralding-1.0.7/heralding/honeypot.py
# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along...
PypiClean
/Liblabtest-1.0.6-py3-none-any.whl/liblabtest/services/doc.py
from urllib.parse import quote from .base import BaseService from ..models.DocFindDocs200Response import DocFindDocs200Response as DocFindDocs200ResponseModel from ..models.DocCreateRequest import DocCreateRequest as DocCreateRequestModel from ..models.DocCreatedResponse import DocCreatedResponse as DocCreatedResponseM...
PypiClean
/Fiona-1.9.4.post1-cp311-cp311-macosx_10_15_x86_64.whl/fiona/crs.py
from six import string_types def to_string(crs): """Turn a parameter mapping into a more conventional PROJ.4 string. Mapping keys are tested against the ``all_proj_keys`` list. Values of ``True`` are omitted, leaving the key bare: {'no_defs': True} -> "+no_defs" and items where the value is otherwise...
PypiClean
/NovalIDE-1.1.8-py3-none-any.whl/noval/python/debugger/stacksframe.py
from noval import GetApp,_,NewId import noval.iface as iface import noval.plugin as plugin from tkinter import ttk import tkinter as tk import noval.ttkwidgets.treeviewframe as treeviewframe import noval.python.debugger.watchs as watchs import noval.menu as tkmenu import noval.constants as constants import noval.util.u...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/methods/messages/send_cached_media.py
from datetime import datetime from typing import Union, List, Optional import pyrogram from pyrogram import raw, enums from pyrogram import types from pyrogram import utils class SendCachedMedia: async def send_cached_media( self: "pyrogram.Client", chat_id: Union[int, str], file_id: str...
PypiClean
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/exchanges/abstract_websocket_exchange.py
import abc import asyncio import octobot_commons.logging as logging import octobot_trading.constants import octobot_trading.enums import octobot_trading.exchange_channel as exchange_channel import octobot_trading.exchange_data as exchange_data class AbstractWebsocketExchange: __metaclass__ = abc.ABCMeta RE...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/cldr/nls/sl/gregorian.js
define( "dojo/cldr/nls/sl/gregorian", //begin v1.x content { "field-dayperiod": "Čas dneva", "dayPeriods-format-wide-pm": "pop.", "field-minute": "Minuta", "eraNames": [ "pred našim štetjem", "naše štetje" ], "dateFormatItem-MMMEd": "E., d. MMM", "field-day-relative+-1": "Včeraj", "field-weekday": "Dan v te...
PypiClean
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-ui-router/api/angular-ui-router.d.ts
declare module ng.ui { interface IState { name?: string; template?: string; templateUrl?: any; // string || () => string templateProvider?: any; // () => string || IPromise<string> controller?: any; controllerAs?: string; controllerProvider?: any; ...
PypiClean
/NooLite_F-0.1.3.tar.gz/NooLite_F-0.1.3/NooLite_F/MTRF64/MTRF64Controller.py
from NooLite_F import NooLiteFController, Direction, ModuleMode, NooLiteFListener, BatteryState from NooLite_F import ModuleInfo, ModuleBaseStateInfo, ModuleExtraStateInfo, ModuleChannelsStateInfo, ModuleState, ServiceModeState, DimmerCorrectionConfig, ModuleConfig from NooLite_F import NooliteModeState, InputMode from...
PypiClean
/Keg-Auth-0.7.2.tar.gz/Keg-Auth-0.7.2/docs/source/getting-started.rst
Getting Started =============== .. contents:: :local: .. _gs-install: Installation ------------ - Bare functionality: `pip install keg-auth` - With mail (i.e. with a mail manager configured, see below): `pip install keg-auth[mail]` - JWT (for using JWT tokens as authenticators): `pip install keg-auth[jwt]` - LD...
PypiClean
/GraDiAn-0.0.0.1-py3-none-any.whl/gradian/count_trees.py
import argparse import json import os from typing import List import spacy from pandas import read_csv from pandas.core.frame import DataFrame from spacytextblob.spacytextblob import SpacyTextBlob from tqdm import tqdm from sent_tree import SentTree def get_tree_count(df: DataFrame, attribute: str): trees = dic...
PypiClean
/ABS_95i943594-2023.5.4.tar.gz/ABS_95i943594-2023.5.4/README.md
# Pacote principal Absolute Investimentos Pacote principal com funções básicas para uso interno na Absolute Investimentos ## Instalando pacote no Windows - Substituir arquivos na rede, na pasta `P:/sistemas/Python` - Alterar versão no setup.py para a data da publicação - Caso necessário, incluir novas dependências ...
PypiClean
/Babel-lex-2.0-lex-20150116.tar.gz/Babel-lex-2.0-lex-20150116/babel/messages/jslexer.py
from operator import itemgetter import re from babel._compat import unichr operators = [ '+', '-', '*', '%', '!=', '==', '<', '>', '<=', '>=', '=', '+=', '-=', '*=', '%=', '<<', '>>', '>>>', '<<=', '>>=', '>>>=', '&', '&=', '|', '|=', '&&', '||', '^', '^=', '(', ')', '[', ']', '{', '}', '!', '--', '++'...
PypiClean
/AutoQuant-1.1.1-py3-none-any.whl/autoquant/provider/baostock.py
from collections import defaultdict from multiprocessing import Value from pickle import NONE import baostock as bs import arrow import pandas as pd from datetime import date, datetime from . import Provider from autoquant.mixin.data import IndexMixin, PriceMixin from autoquant import Market, PriceAdjustment, StocksIn...
PypiClean
/Flask-Registry-0.2.0.tar.gz/Flask-Registry-0.2.0/flask_registry/registries/appdiscovery.py
from __future__ import absolute_import from werkzeug.utils import import_string from flask import Blueprint, Config from .core import ListRegistry, ImportPathRegistry from .modulediscovery import ModuleDiscoveryRegistry, \ ModuleAutoDiscoveryRegistry # pylint: disable=R0921 class ExtensionRegistry(ListRegistry)...
PypiClean
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/rlgym/gamelaunch/epic_launch.py
import json import os import subprocess import webbrowser from pathlib import Path from time import sleep import psutil from typing import Set, Tuple, Union, List, Optional import re # Copied from https://github.com/RLBot/RLBot/blob/master/src/main/python/rlbot/gamelaunch/epic_launch.py def launch_with_epic_simple(id...
PypiClean
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/message_result_all_of.py
import re # noqa: F401 import sys # noqa: F401 from freeclimb.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, vali...
PypiClean
/Fiona-1.9.4.post1-cp311-cp311-macosx_10_15_x86_64.whl/fiona/drvsupport.py
import os from fiona.env import Env from fiona._env import get_gdal_version_tuple _GDAL_VERSION = get_gdal_version_tuple() # Here is the list of available drivers as (name, modes) tuples. Currently, # we only expose the defaults (excepting FileGDB). We also don't expose # the CSV or GeoJSON drivers. Use Python's cs...
PypiClean
/MAD-0.2.2.zip/MAD-0.2.2/mad/simulation/autoscaling.py
# # This file is part of MAD. # # MAD is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # MAD is distributed in the hope that it will ...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/predictors/heads/keras_class_head.py
import tensorflow.compat.v1 as tf from object_detection.predictors.heads import head from object_detection.utils import shape_utils class ConvolutionalClassHead(head.KerasHead): """Convolutional class prediction head.""" def __init__(self, is_training, num_class_slots, ...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/__init__.py
import os import optparse import sys import re from pip.exceptions import InstallationError, CommandError, PipError from pip.log import logger from pip.util import get_installed_distributions, get_prog from pip.vcs import git, mercurial, subversion, bazaar # noqa from pip.baseparser import ConfigOptionParser, Updati...
PypiClean