id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/AMAS_sb-1.0.1-py3-none-any.whl/AMAS/iterator.py | import copy
import itertools
import numpy as np
import os
from AMAS import constants as cn
from AMAS import tools
# from AMAS import species_annotation as sa
# from AMAS import reaction_annotation as ra
# Keys when evaluating match results.
NEW_SCORE = 'new_score'
OLD_SCORE = 'old_score'
INCREASED = 'is_increased'
... | PypiClean |
/Confopy-0.4.11.tar.gz/Confopy-0.4.11/README.md | Confopy
=======
Asserts the linguistic and structural quality of scientific texts.
Confopy is a command-line tool that accepts one or multiple PDF documents and prints textual reports.
Currently it only works for German papers.
Name origin: Confopy := Conform + Python
Installation
============
Installation using... | PypiClean |
/KaChLog-1.2.1-py3-none-any.whl/kachlog/_changelog.py | import datetime
import re
from typing import Dict, Iterable, List, Optional, Union
from ._versioning import (
actual_version,
bump,
from_semantic,
semantic_order,
to_semantic,
to_sorted_semantic,
)
from .exceptions import InvalidSemanticVersion
from .templates import BASE, TYPES_OF_CHANGE
def... | PypiClean |
/FlashXTest-3.6.tar.gz/FlashXTest-3.6/README.rst | Flash-X-Test
============
Installation
============
- Use ``./setup develop`` for development mode
- Or use ``./setup install`` to install package
on your system
- Or use ``pip install git+ssh://git@github.com/Flash-X/Flash-X-Test.git@main``
- You are good to go. Now you can simply type ``flashxtest`` on y... | PypiClean |
/MOAI-2.0.0.tar.gz/MOAI-2.0.0/moai/wsgi.py | import os
from webob import Request, Response
from moai.server import Server, FeedConfig
from moai.database import get_database
class WSGIRequest(object):
"""This is a request object that can be used in a WSGI environment.
It implements :ref:`IServerRequest` interface.
"""
def __init__(self, request)... | PypiClean |
/MFAProblem-1.0.1b0.tar.gz/MFAProblem-1.0.1b0/mfa_problem/io_excel.py | import os
import tempfile
import xmltodict
import shutil
import pandas as pd
import numpy as np
from zipfile import ZipFile
from openpyxl import load_workbook
from collections import OrderedDict
from openpyxl.formatting.rule import CellIsRule
from openpyxl.styles import PatternFill, Font
try:
from . import io_bd... | PypiClean |
/FiberPhotometryDataAnalysis-0.0.9.tar.gz/FiberPhotometryDataAnalysis-0.0.9/ci/bootstrap.py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import os
import subprocess
import sys
from os.path import abspath
from os.path import dirname
from os.path import exists
from os.path import join
base_path = dirname(dirname(abspath(__file__)))
def ... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/testing/xcomp.py | import xml.dom.minidom as dom
from django.utils.six import string_types
# define node types
ELEMENT_NODE = dom.Element.ELEMENT_NODE
ATTRIBUTE_NODE = dom.Element.ATTRIBUTE_NODE
TEXT_NODE = dom.Element.TEXT_NODE
CDATA_SECTION_NODE = dom.Element.CDATA_SECTION_NODE... | PypiClean |
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/README.rst | MapProxy is an open source proxy for geospatial data. It caches, accelerates and transforms data from existing map services and serves any desktop or web GIS client.
.. image:: https://mapproxy.org/mapproxy.png
MapProxy is a tile cache, but also offers many new and innovative features like full support for WMS client... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/BackgroundIframe.js.uncompressed.js | define("dijit/BackgroundIframe", [
"require", // require.toUrl
".", // to export dijit.BackgroundIframe
"dojo/_base/config",
"dojo/dom-construct", // domConstruct.create
"dojo/dom-style", // domStyle.set
"dojo/_base/lang", // lang.extend lang.hitch
"dojo/on",
"dojo/_base/sniff", // has("ie"), has("mozilla"), ... | PypiClean |
/ENPC-Aligner-1.0.5.tar.gz/ENPC-Aligner-1.0.5/README.md | # Bibliothèque d'alignement de textes dans des langues différentes
# Théorie
Le poster de présentation des méthodes implémentées dans cette bibliothèque est [ici](/doc/theory.pdf).
# Installer la bibliothèque
Lancez dans un terminal :
`sudo pip install ENPC-Aligner`
# Tester la bibliothèque
Lancez dans un termina... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/forms/migrations/south/0001_initial.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
depends_on = [
('pages', '0001_initial'),
]
def forwards(self, orm):
# Adding model 'Form'
db.create_table('forms_form', (
(... | PypiClean |
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/rlgym_tools/replay_converter.py | import logging
from collections import Counter
from typing import Union
import carball as cb
import numpy as np
from carball.analysis.analysis_manager import AnalysisManager
from carball.controls.controls import ControlsCreator
from rlgym.utils import math
from rlgym.utils.common_values import ORANGE_TEAM, BLUE_TEAM,... | PypiClean |
/Jalapeno-Lite-0.1.3.tar.gz/Jalapeno-Lite-0.1.3/Jalapeno_data/Sites/first/Pages/blog/10.md | title: Python爬虫: 带你上车之爬取妹子图
date: 2016-09-27
tag: Python爬虫
[TOC]
<!--Sidebar-->
##简介
30行python轻松爬取成百上千的妹子图到本地。没时间解释了,快上车。
###什么是爬虫?
网络爬虫,顾名思义就是在网上爬来爬去的“虫子”,它能够按照一定规则自动抓取网络数据的脚本。比如说你找到了一个特别棒的网站,上面全是妹子图。而你想把它们存到你的随身硬盘当中。如果你要一张一张保存的话那需要比较持久的耐力,这个时候你就需要通过爬虫来帮你抓取你心心念念的妹子图。
那么如何通过爬虫来完成任务呢?
###运行机制
其实爬虫的工作流程和人是一样的,... | PypiClean |
/DRAM_bio-1.4.6-py3-none-any.whl/mag_annotator/summarize_vgfs.py | import re
from os import path, mkdir
from functools import partial
from collections import defaultdict, Counter
from datetime import datetime
import warnings
import logging
import pandas as pd
import altair as alt
from mag_annotator.database_handler import DatabaseHandler
from mag_annotator.utils import setup_logger
... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/utils/StaticLibraries.py | import os
from nuitka.containers.OrderedSets import OrderedSet
from nuitka.PythonFlavors import (
isAnacondaPython,
isDebianPackagePython,
isNuitkaPython,
)
from nuitka.PythonVersions import (
getPythonABI,
getSystemPrefixPath,
python_version,
python_version_str,
)
from nuitka.Tracing impor... | PypiClean |
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/tl/custom/forward.py | from .chatgetter import ChatGetter
from .sendergetter import SenderGetter
from ... import utils, helpers
class Forward(ChatGetter, SenderGetter):
"""
Custom class that encapsulates a :tl:`MessageFwdHeader` providing an
abstraction to easily access information like the original sender.
Remember that t... | PypiClean |
/7uring-1.0.0.tar.gz/7uring-1.0.0/turing/hashing/hashsha512.py | import hashlib, requests, bs4, re, os, sys
colors = {
'error':'\033[31;1m[x] ',
'success':'\033[36;1m[-] ',
'msg':'\033[33;1m[o] '
}
def stringToSHA512(string):
result = hashlib.sha512(string.encode()) #Create a SHA512 hash object
return result.hexdigest() #Return the required hexadecimal ha... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/q/q.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 |
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/misopy/sashimi_plot/sashimi_plot.py | import os
import sys
import glob
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore",category=UserWarning) ### hides import warnings
import matplotlib
# Use PDF backend
try: matplotlib.use("pdf")
except Exception: pass
from scipy import *
from numpy import *
import pys... | PypiClean |
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/ner/kashgari/tasks/classification/models.py |
# author: BrikerMan
# contact: eliyar917@gmail.com
# blog: https://eliyar.biz
# file: models.py
# time: 2019-05-22 11:26
import logging
import tensorflow as tf
from typing import Dict, Any
from kashgari.layers import L, AttentionWeightedAverageLayer, KMaxPoolingLayer
from kashgari.tasks.classification.base_model imp... | PypiClean |
/FLAML-2.0.2-py3-none-any.whl/flaml/tune/searcher/suggestion.py |
# 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
# distributed under the Lic... | PypiClean |
/Buildpan_CLI-1.0-py3-none-any.whl/buildpan/previous_commit.py | import subprocess
from buildpan import setting, access_token, read_file, workflow
import requests, datetime
info = setting.info
# getting env variable
get_sha = info["GET_SHA_URL"]
fetch_log = info["FETCH_LOG_URL"]
def prev_commit(path, repo_name, project_id, username, provider):
try:
curtime = datetime... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/twitter/models.py | from __future__ import unicode_literals
from future.builtins import str
from datetime import datetime
import re
try:
from urllib.parse import quote
except ImportError:
# Python 2
from urllib import quote
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from djang... | PypiClean |
/MolGNN_update-0.0.2-py3-none-any.whl/MolToGraph/MolToGraph.py | from numbers import Number
from typing import Sequence, Any, List
import numpy as np
import torch
from rdkit import Chem
from rdkit.Chem.rdmolops import GetAdjacencyMatrix
from torch_geometric.data import Data
def one_hot_encoding(x: Any, values: Sequence[Any]) -> List[int]:
"""
Sparse one-hot encoding of an... | PypiClean |
/Curare-0.4.5-py3-none-any.whl/curare/lib/parse_versions.py | import datetime
import json
import re
import yaml
from docopt import docopt
from os import listdir
from pathlib import Path
from typing import Dict, List, Set, Tuple, Any
import sys
ANALYSIS_STEPS: Tuple[str, str, str, str] = (
'preprocessing',
'premapping',
'mapping',
'analysis'
)
def parse_conf... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/dizoo/atari/config/serial/qbert/qbert_acer_config.py | from easydict import EasyDict
qbert_acer_config = dict(
exp_name='qbert_acer_seed0',
env=dict(
collector_env_num=16,
evaluator_env_num=8,
n_evaluator_episode=8,
stop_value=int(1e6),
env_id='QbertNoFrameskip-v4',
#'ALE/Qbert-v5' is available. But special setting i... | PypiClean |
/ORE_strhub-0.0.1-py3-none-any.whl/strhub/models/abinet/attention.py | import torch
import torch.nn as nn
from .transformer import PositionalEncoding
class Attention(nn.Module):
def __init__(self, in_channels=512, max_length=25, n_feature=256):
super().__init__()
self.max_length = max_length
self.f0_embedding = nn.Embedding(max_length, in_channels)
... | PypiClean |
/Group%20Buy%20Organizer-1.0.3.tar.gz/Group Buy Organizer-1.0.3/groupbuyorganizer/general/routes.py | from flask import Blueprint, flash, redirect, render_template, request, url_for
from flask_login import current_user, login_required, login_user, logout_user
from groupbuyorganizer import database, bcrypt
from groupbuyorganizer.admin.models import Instance, User
from groupbuyorganizer.admin.utilities import HomeEvent
... | PypiClean |
/MetaCerberus-1.1.tar.gz/MetaCerberus-1.1/lib/metacerberus_prostats.py | from pathlib import Path
import pandas as pd
import statistics as stat
def getStats(faa: str, fileHmmer: str, dfCount: dict, config: dict, summary_out:str):
minscore = config["MINSCORE"]
# sum up proteins in FASTA file
proteins = {}
with open(faa, "r") as reader:
name = ""
line = read... | PypiClean |
/Firefly-vis-2.0.4.tar.gz/Firefly-vis-2.0.4/src/Firefly/static/js/viewer/applyUISelections.js |
function resetViewer(){
viewerParams.reset = true;
viewerParams.ready = false;
console.log('Reset options', viewerParams.parts.options)
//reset all the parts specific values to the initial ones
initPVals();
initScene();
drawScene();
//recreate the GUI
clearInterval(viewerParams.waitForInit);
viewerParams.w... | PypiClean |
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/types/messages_and_media/animation.py |
from datetime import datetime
from typing import List
import newgram
from newgram import raw, utils
from newgram import types
from newgram.file_id import FileId, FileType, FileUniqueId, FileUniqueType
from ..object import Object
class Animation(Object):
"""An animation file (GIF or H.264/MPEG-4 AVC video withou... | PypiClean |
/Auto_FOX-1.0.0b1-py3-none-any.whl/FOX/properties/__init__.py | r"""Functions for calculating/extracting various properties.
Each function can be used to calculate the respective property as is,
or to extract it from a passed :class:`qmflows.Result <qmflows.packages.Result>` instance.
.. code-block:: python
>>> from FOX.properties import get_bulk_modulus
>>> from qmflows... | PypiClean |
/KratosStructuralMechanicsApplication-9.4-cp310-cp310-win_amd64.whl/KratosMultiphysics/StructuralMechanicsApplication/structural_mechanics_implicit_dynamic_solver.py | import KratosMultiphysics
# Import applications
import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication
# Import base class file
from KratosMultiphysics.StructuralMechanicsApplication.structural_mechanics_solver import MechanicalSolver
from KratosMultiphysics.StructuralMechanicsApp... | PypiClean |
/HR_Neural_Networks-1.0.6.tar.gz/HR_Neural_Networks-1.0.6/HR_Neural_Networks/Paper_experiments/Section_6.2/Rice_TRADES/Rice_TRADES.py | import pandas as pd
# %%
import sys
sys.path.append("..")
sys.path.append("../..")
sys.path.append("../../..")
from trades import trades_loss
# %%
import os
# %%
from pathlib import Path
# %%
import argparse
import logging
import sys
import time
import math
import numpy as np
import torch
import torch.nn as nn
... | PypiClean |
/AutoTrader_Web_API_Stocks_Developer-1.3.5-py3-none-any.whl/com/dakshata/trading/model/platform/PlatformOrder.py | from com.dakshata.trading.model.portfolio.CoreOrder import CoreOrder
class PlatformOrder(CoreOrder):
def __init__(self, id, tradeType, orderType, productType, \
variety, validity, quantity, disclosedQuantity, \
price, triggerPrice, amo, statusMessage, publisherId, \
pseudoAccount, tradingA... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/auth/hashers.py | import base64
import binascii
import functools
import hashlib
import importlib
import math
import warnings
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.signals import setting_changed
from django.dispatch import receiver
from django.utils.crypto import (
... | PypiClean |
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/samples/loslas2ntv2.py |
import sys
from osgeo import gdal
# dummy object to hold options
class Options(object):
def __init__(self):
self.verbose_flag = 0
self.append = 0
self.create_self = []
self.metadata = []
self.negate = 0
# ================================================================... | PypiClean |
/Kerapu-2.0.3.tar.gz/Kerapu-2.0.3/kerapu/boom/boom_parameter/__init__.py | from kerapu.boom.boom_parameter.BehandelKlasse import BehandelKlasse
from kerapu.boom.boom_parameter.BoomParameter import BoomParameter
from kerapu.boom.boom_parameter.DiagnoseCluster import DiagnoseCluster
from kerapu.boom.boom_parameter.DiagnoseCode import DiagnoseCode
from kerapu.boom.boom_parameter.Geslacht import ... | PypiClean |
/ConsoleCanvas-1.2.5.tar.gz/ConsoleCanvas-1.2.5/README.md |
# ConsoleCanvas用法:
### 0.安装
```shell
pip install ConsoleCanvas -i https://pypi.python.org/simple
```
### 0.1.终端显示cv2的img:
```python
import consoleCanvas,cv2
img=cv2.imread("C:\\Users\\Administrator\\Desktop\\1.png")
consoleCanvas.cvShow(img)
```
### 1.先初始化对象:
```python
import consoleCanvas
A=consoleCanvas.consoleCa... | PypiClean |
/MADAM-0.21.2-py3-none-any.whl/madam/vector.py | import io
from typing import Any, Callable, IO, Iterable, Mapping, Optional, Tuple
from xml.etree import ElementTree as ET
from madam.core import Asset, Dict, MetadataProcessor, Processor, UnsupportedFormatError, operator
_INCH_TO_MM = 1 / 25.4
_PX_PER_INCH = 90
_PT_PER_INCH = 1 / 72
_FONT_SIZE_PT = 12
_X_HEIGHT = 0... | PypiClean |
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/private/db_migration/versions/from_0_6_to_1_1.py | # Revision identifiers, used by Alembic.
revision = "5aa718cc79e1"
mongo_revision = "1"
down_revision = None
import sqlalchemy as sa
import sys
from alembic import op
from datetime import datetime
from dateutil.parser import parse
from cuckoo.common.mongo import mongo
from cuckoo.core.database import Task
old_enum ... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Gyre-Termes/Monospace/Regular/Main.js | MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.GyreTermesMathJax_Monospace={directory:"Monospace/Regular",family:"GyreTermesMathJax_Monospace",testString:"\u00A0\uD835\uDE70\uD835\uDE71\uD835\uDE72\uD835\uDE73\uD835\uDE74\uD835\uDE75\uD835\uDE76\uD835\uDE77\uD835\uDE78\uD835\uDE79\uD835\uDE7A\uD835\uDE7B\uD835\uDE7C\uD83... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/julia/julia.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 |
/DI_engine-0.4.9-py3-none-any.whl/ding/hpc_rl/wrapper.py | import importlib
from ditk import logging
from collections import OrderedDict
from functools import wraps
import ding
'''
Overview:
`hpc_wrapper` is the wrapper for functions which are supported by hpc. If a function is wrapped by it, we will
search for its hpc type and return the function implemented by hpc.
... | PypiClean |
/HISpectralModel-0.1.0.tar.gz/HISpectralModel-0.1.0/hispectrum/hiutils/local_exceptions.py |
# Name: local_exceptions
#
# Author: Ian Stewart
#
# TODO:
# - Find all instances of raising EmptyMethod rather than EmptyMethod() and fix them.
#
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
# Copyright (C) 2014 Ian M Stewart
#
# This program is free software... | PypiClean |
/BooleanNet-1.2.8.tar.gz/BooleanNet-1.2.8/boolean2/ply/lex.py |
__version__ = "2.3"
import re, sys, types
# Regular expression used to match valid token names
_is_identifier = re.compile(r'^[a-zA-Z0-9_]+$')
# Available instance types. This is used when lexers are defined by a class.
# It's a little funky because I want to preserve backwards compatibility
# with Python 2.0 wher... | PypiClean |
/NeuroTS-3.4.0-py3-none-any.whl/neurots/generate/algorithms/basicgrower.py |
# Copyright (C) 2021 Blue Brain Project, EPFL
#
# 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, either version 3 of the License, or
# (at your option) any later version.
#
# This program is di... | PypiClean |
/Hummingbird-XFEL-1.3b0.tar.gz/Hummingbird-XFEL-1.3b0/hummingbird/analysis/hitfinding.py | from __future__ import (absolute_import, # Compatibility with python 2 and 3
print_function)
import collections
import numpy as np
from hummingbird import ipc
from hummingbird.backend import add_record
hitrate_counters = {}
hit_counters = {}
def countHits(evt, hit, outkey="nrHits"):
""... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct63.py | pairs="""
179 160
1 168
66 30
159 66
17 104
170 70
69 64
63 101
97 21
35 186
13 137
205 192
3 92
151 59
91 113
123 192
130 111
100 106
92 205
173 101
13 160
33 57
111 82
141 110
194 175
118 68
86 4
190 120
47 198
88 31
126 199
11 29
56 29
168 109
167 168
150 151
137 39
60 26
167 93
10 192
51 88
141 80
59 205
164 3
28 9... | PypiClean |
/Flask-Swag-0.1.2.tar.gz/Flask-Swag-0.1.2/flask_swag/resources/swagger-ui/lib/backbone-min.js |
(function(t,e){if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,s){t.Backbone=e(t,s,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore");e(t,exports,i)}else{t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}})(this,function(t,e,i,r){var s=t.Backb... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/mirc/mirc.js |
//mIRC mode by Ford_Lawnmower :: Based on Velocity mode by Steve O'Hara
(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 /... | PypiClean |
/Choco-1.0.5.tar.gz/Choco-1.0.5/README.rst | =========================
Choco Templates for Python
=========================
Choco is a template library written in Python. It provides a familiar, non-XML
syntax which compiles into Python modules for maximum performance. Choco's
syntax and API borrows from the best ideas of many others, including Django
template... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/channel_version_response_py3.py |
from msrest.serialization import Model
class ChannelVersionResponse(Model):
"""ChannelVersionResponse.
:param channel_version_id: The channel version identifier
:type channel_version_id: int
:param multiplier: The channel multiplier
:type multiplier: float
:param unit:
:type unit: ~energ... | PypiClean |
/Colr-0.9.1.tar.gz/Colr-0.9.1/colr/colr.py | from contextlib import suppress # type: ignore
from functools import partial
import ctypes
import math
import os
import struct
import sys
from types import GeneratorType
from typing import ( # noqa
Any,
Callable,
Dict,
List,
Optional,
Sequence,
Set, # Set is used as a 'type: Set' comment... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/4.4/zlib.js | var zlib = {};
/**
* Returns a new [Deflate][] object with an [options][].
* @param options
* @returns {zlib.Deflate} a new Deflate object with an options
*/
zlib.createDeflate = function(options) {}
/**
* Returns a new [DeflateRaw][] object with an [options][].
* @param options
* @returns {zlib.DeflateRaw} a ... | PypiClean |
/Amplo-0.17.0.tar.gz/Amplo-0.17.0/amplo/pipeline.py |
from __future__ import annotations
import time
import warnings
from pathlib import Path
from typing import Any
from warnings import warn
import numpy as np
import numpy.typing as npt
import pandas as pd
from shap import TreeExplainer
from sklearn.metrics import get_scorer_names
from sklearn.model_selection import KF... | PypiClean |
/BoxKit-2023.6.7.tar.gz/BoxKit-2023.6.7/boxkit/library/_dataset.py |
from boxkit.library import Block # pylint: disable=cyclic-import
from boxkit.library import Data # pylint: disable=cyclic-import
from boxkit.library import Action # pylint: disable=cyclic-import
class Dataset: # pylint: disable=too-many-instance-attributes
"""API class for storing Dataset info"""
type_ ... | PypiClean |
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/samples/validate_cloud_optimized_geotiff.py |
import os.path
import struct
import sys
from osgeo import gdal
def Usage():
print(
"Usage: validate_cloud_optimized_geotiff.py [-q] [--full-check=yes/no/auto] test.tif"
)
print("")
print("Options:")
print("-q: quiet mode")
print(
"--full-check=yes/no/auto: check tile/strip le... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/path-is-absolute/readme.md | # path-is-absolute [](https://travis-ci.org/sindresorhus/path-is-absolute)
> Node.js 0.12 [`path.isAbsolute()`](http://nodejs.org/api/path.html#path_path_isabsolute_path) [ponyfill](https://ponyfill.com)
## Install
```
$ npm insta... | PypiClean |
/Appium-Python-Client-2.11.1.tar.gz/Appium-Python-Client-2.11.1/docs/_build/html/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/M5-0.3.2.tar.gz/M5-0.3.2/lib/iscroll-lite.js | (function(){
var m = Math,
vendor = (/webkit/i).test(navigator.appVersion) ? 'webkit' :
(/firefox/i).test(navigator.userAgent) ? 'Moz' :
'opera' in window ? 'O' : '',
// Browser capabilities
has3d = 'WebKitCSSMatrix' in window && 'm11' in new WebKitCSSMatrix(),
hasTouch = 'ontouchstart' in window,
hasTransfor... | PypiClean |
/ACCC-0.0.3.tar.gz/ACCC-0.0.3/accc/compiler/compiler.py | from math import log, ceil
from itertools import zip_longest
from functools import partial, lru_cache
import itertools
import accc.langspec as langspec
#########################
# PRE-DECLARATIONS #
#########################
# lexems seens in structure
from accc.lexems import LEXEM_TYPE_CONDITION, LEXEM_TYPE_A... | PypiClean |
/HybridUI-0.0.1.tar.gz/HybridUI-0.0.1/hybrid/elements/tabe.py | from typing import List
from ..element import Element
class Tabe(Element):
def __init__(
self,
content: List[Element] = None,
activeKey= None,
addIcon = None,
animated = None,
centered = None,
defaultActiveKey = None,
... | PypiClean |
/AADeepLearning-1.0.8.tar.gz/AAdeepLearning-1.0.8/example/aa_save.py | from AADeepLearning import AADeepLearning
from AADeepLearning.datasets import mnist
from AADeepLearning.datasets import np_utils
# mnist数据集已经被划分成了60,000个训练集,10,000个测试集的形式,如果数据不存在则自动下载
(x_train, y_train), (x_test, y_test) = mnist.load_data()
# 第一个维度是样本数目,第二维度是通道数表示颜色通道数,第三维度是高,第四个维度是宽
x_train = x_train.reshape(x_train... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/eval/nevaluator.py | from typing import Optional
import sympy
from mathics.core.atoms import Number
from mathics.core.attributes import A_N_HOLD_ALL, A_N_HOLD_FIRST, A_N_HOLD_REST
from mathics.core.convert.sympy import from_sympy
from mathics.core.element import BaseElement
from mathics.core.evaluation import Evaluation
from mathics.core... | PypiClean |
/JqPyCharts-4.0.0.tar.bz2/JqPyCharts-4.0.0/README.rst | ==========
JqPyCharts
==========
About
=====
`JqPyCharts` is a selection of: Javascripts / Css for simple charts in python projects.
**Credit goes to all the projects which `JqPyCharts` makes use of:**
- `jquery <https://jquery.org/>`_
- `jqPlot <https://bitbucket.org/cleonello/jqplot>`_
The latest documentation c... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/first_steps/tutorials.rst |
.. _`filing an issue`: https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/issues
.. _`Montreal Forced Aligner v2 Corpus Phonetics Tutorial`: https://www.eleanorchodroff.com/tutorial/montreal-forced-aligner-v2.html
.. _`Phonetic forced alignment with the Montreal Forced Aligner`: https://www.youtube.com/w... | PypiClean |
/MITunaX-0.1.tar.gz/MITunaX-0.1/tuna/worker_interface.py | """Module that represents the WorkerInterface class interface"""
from multiprocessing import Process, Lock
try:
import queue
except ImportError:
import Queue as queue
import logging
import os
import json
from datetime import datetime
import socket
import random
import string
from time import sleep
from sqlalchemy i... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/README | -------------------------------------------------------------------------------
dojox.widget Collection
-------------------------------------------------------------------------------
Version 1.0
Release date: 10/31/2007
-------------------------------------------------------------------------------
Project state:
[Ca... | PypiClean |
/Apywy-0.0.5.tar.gz/Apywy-0.0.5/apywy/static_funcs.py | from typing import Dict, List, Optional, Tuple, Union
from django.conf import settings
from django.urls.resolvers import URLPattern, URLResolver
from .domain.entities import NameSpace, View
BUILDIN_NAMESPACES_TO_IGNORE = ('apywy', 'admin')
USER_DECLARED_NAMESPACES_TO_IGNORE: Tuple = getattr(settings, 'NAMESPACES_TO_... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/snippets/vala.js | ace.define("ace/snippets/vala",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippets = [
{
"content": "case ${1:condition}:\n\t$0\n\tbreak;\n",
"name": "case",
"scope": "vala",
"tabTrigger": "case"
},
{
"content": "/**\n *... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/4.4/fs.js | var fs = {};
/**
* Asynchronous rename(2). No arguments other than a possible exception are
* given to the completion callback.
* @param oldPath
* @param newPath
* @param callback
*/
fs.rename = function(oldPath, newPath, callback) {}
/**
* Synchronous versions of [fs.write()][]. Returns the number of bytes
*... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/ocean/diagnostic_maps_quad.py | import logging
import os
import sys
import iris
import iris.quickplot as qplt
import matplotlib.pyplot as plt
import numpy as np
from esmvaltool.diag_scripts.ocean import diagnostic_tools as diagtools
from esmvaltool.diag_scripts.shared import run_diagnostic
from esmvaltool.diag_scripts.shared import ProvenanceLogger... | PypiClean |
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/lib/stage.py | import abc
import logging
from oslo_utils import importutils
from cloudferry.lib.utils import local_db
LOG = logging.getLogger(__name__)
local_db.execute_once("""
CREATE TABLE IF NOT EXISTS stages (
stage TEXT,
signature JSON,
PRIMARY KEY (stage)
)
""")
class Stage(object):
__metaclass__ = abc.ABC... | PypiClean |
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/lib/os/discovery/nova.py | import logging
from novaclient import exceptions
from cloudferry import discover
from cloudferry import model
from cloudferry.model import compute
from cloudferry.model import identity
from cloudferry.model import image
from cloudferry.model import storage
from cloudferry.lib.utils import qemu_img
from cloudferry.lib... | PypiClean |
/ApiRequestManager-1.0.5-py3-none-any.whl/src/Config.py | class Config:
"""Config Object For an Api
Object that store Api configurations that will be needed
to execute requests
Args:
name(String: Required):
string to reference a Config api object
don't call 2 api with the same name or
an api config will be delete... | PypiClean |
/ConfigSpace-nni-0.4.7.tar.gz/ConfigSpace-nni-0.4.7/ConfigSpace/nx/release.py |
from __future__ import absolute_import
import os
import sys
import time
import datetime
import subprocess
basedir = os.path.abspath(os.path.split(__file__)[0])
def get_revision():
"""Returns revision and vcs information, dynamically obtained."""
vcs, revision, tag = None, None, None
hgdir = os.path.joi... | PypiClean |
/ESGmetric_from_PDF-0.1.tar.gz/ESGmetric_from_PDF-0.1/ESGmetric_from_PDF/Training_data_strings.py |
patterns = [ [{'TEXT':'KPMG'}],
[{'TEXT':'PricewaterhouseCoopers'}],
[{'TEXT':'Ernst'},{'IS_PUNCT':True},{'TEXT':'Young'}],
[{'TEXT':'EY'}],
[{'TEXT':'Deloitte'}],
[{'TEXT':'PwC'}]
]
NAME_TEXT = ["for and on behalf of KPMG LLP, Statutory Audi... | PypiClean |
/AlbertMarker-0.0.1.1.tar.gz/AlbertMarker-0.0.1.1/marker/utils.py | import torch
import os
import datetime
import unicodedata
import json
class InputFeatures(object):
def __init__(self, input_id, label_id, input_mask):
self.input_id = input_id
self.label_id = label_id
self.input_mask = input_mask
def load_vocab(vocab_file):
"""Loads a vocabulary file ... | PypiClean |
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/connection/transport/tcp/tcp.py |
import asyncio
import ipaddress
import logging
import socket
from concurrent.futures import ThreadPoolExecutor
import socks
log = logging.getLogger(__name__)
class TCP:
TIMEOUT = 10
def __init__(self, ipv6: bool, proxy: dict):
self.socket = None
self.reader = None
self.writer = No... | PypiClean |
/Flask-Generic-Views-0.1.1.tar.gz/Flask-Generic-Views-0.1.1/flask_generic_views/core.py | from flask import Response, abort, redirect, render_template, request, url_for
from flask.views import MethodView as BaseMethodView
from flask.views import View as BaseView
from werkzeug.datastructures import CombinedMultiDict
from werkzeug.routing import BuildError
from werkzeug.urls import url_parse
from flask_gener... | PypiClean |
/Fo4doG_mess_client-0.0.2.tar.gz/Fo4doG_mess_client-0.0.2/client/common/metaclasses.py | import dis
class ServerMaker(type):
'''
Метакласс, проверяющий что в результирующем классе нет клиентских
вызовов таких как: connect. Также проверяется, что серверный
сокет является TCP и работает по IPv4 протоколу.
'''
def __init__(cls, clsname, bases, clsdict):
# Список методов, кото... | PypiClean |
/Flask-LazyViews-0.6.tar.gz/Flask-LazyViews-0.6/flask_lazyviews/utils.py | from flask.views import View
from werkzeug.utils import cached_property, import_string
__all__ = ('LazyView', )
class LazyView(object):
"""
Import view function only when necessary.
"""
def __init__(self, name, *args, **kwargs):
"""
Initialize ``LazyView`` instance for view that woul... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/mlflow_handler/mlflow_handler.py | import requests
from datetime import datetime
from typing import Dict, Optional
import pandas as pd
from mlflow.tracking import MlflowClient
from mindsdb.integrations.libs.base import BaseMLEngine
class MLflowHandler(BaseMLEngine):
"""
The MLflow integration engine needs to have a working connection to MLFl... | PypiClean |
/dyv-0.5.1.tar.gz/dyv-0.5.1/dyv.py | import codecs
import os
import re
from os.path import expanduser
import click
import subprocess
import sys
import shutil
from pkg_resources import resource_filename
from configobj import ConfigObj
import jinja2
from prettytable import PrettyTable
from odooast import odooast
from lxml import etree
from operator import i... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/angular-openlayers-directive.min.js | !function(a,b){if("function"==typeof require&&"object"==typeof exports){var c=require("openlayers");exports.angularOpenlayersDirective=b(c)}else"function"==typeof define&&define.amd?define(["ol"],function(c){return a.angularOpenlayersDirective=b(c)}):a.angularOpenlayersDirective=b(a.ol)}(this,function(a){angular.module... | PypiClean |
/CosmoTech_Acceleration_Library-0.3.0.tar.gz/CosmoTech_Acceleration_Library-0.3.0/CosmoTech_Acceleration_Library/Modelops/core/io/model_reader.py | import logging
from CosmoTech_Acceleration_Library.Modelops.core.common.graph_handler import VersionedGraphHandler
from CosmoTech_Acceleration_Library.Modelops.core.utils.model_util import ModelUtil
from redis.commands.graph.query_result import QueryResult
logger = logging.getLogger(__name__)
class ModelReader(Vers... | PypiClean |
/ChirpSounder-2.0.4.tar.gz/ChirpSounder-2.0.4/src/chirpsounder/chirp_lib.py | import ctypes
import numpy as n
from ctypes.util import find_library
from numpy import ctypeslib
import matplotlib.pyplot as plt
import scipy.signal as ss
from . import __path__
libdc=ctypes.cdll.LoadLibrary(__path__[0]+"/libdownconvert.cpython-38-x86_64-linux-gnu.so")
libdc.test.argtypes =[ ctypeslib.ndpointer(n.compl... | PypiClean |
/Drupdates-1.5.2.tar.gz/Drupdates-1.5.2/drupdates/updates.py | import os, shutil, yaml, sys
from os.path import expanduser
from string import Template
from drupdates.utils import Utils
from drupdates.settings import Settings
from drupdates.settings import DrupdatesError
from drupdates.constructors.repos import Repos
from drupdates.constructors.reports import Reports
class Updates... | PypiClean |
/Dero-0.15.0-py3-none-any.whl/dero/reg/cluster/__init__.py | from typing import List, Optional, Tuple
import itertools
import pandas as pd
from dero.reg.ext_statsmodels import update_statsmodel_result_with_new_cov_matrix
StrOrNone = Optional[str]
StrOrNoneList = List[StrOrNone]
StrOrNoneListList = List[StrOrNoneList]
def estimate_model_handling_cluster(regdf: pd.DataFrame, ... | PypiClean |
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/data_preprocessing_tools/inputfileGenerator_multiple_label3.py | import numpy as np
import time
import os.path
import multiprocessing
import sys
import random
#from seq_to_binary import AGCTtoArray2
#import pyximport; pyximport.install()
#import seq_to_binary2
#import seq_to_binary2 as sb2
import importlib as il
sb2=il.import_module("deepgmap.data_preprocessing_tools.seq_to_binary2... | PypiClean |
/GraTeLPy-0.2.0.1.tar.gz/GraTeLPy-0.2.0.1/gratelpy/drawing.py | import networkx as nx
from networkx.algorithms import bipartite
try:
from matplotlib import pyplot as plt
import matplotlib
except ImportError:
print 'The drawing module requires matplotlib. Please install matplotlib.'
raise
def gratelpy_draw(G, positions=None, dictionary_complexes=None, dictionary_re... | PypiClean |
/Digikam-DB-0.3.1.tar.gz/Digikam-DB-0.3.1/digikamdb/image_comments.py | import logging
import os
from datetime import datetime
from itertools import groupby
from typing import Iterable, List, Optional, Sequence, Tuple, Union
from sqlalchemy import Column, Integer, String, delete, text
from sqlalchemy.orm import relationship, validates
from .table import DigikamTable
from .properties impo... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/internal/change_warn.py | import sys
from loguru import logger
from flexget import plugin
from flexget.event import event
logger = logger.bind(name='change')
found_deprecated = False
class ChangeWarn:
"""
Gives warning if user has deprecated / changed configuration in the root level.
Will be replaced by root level validation i... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/profile.py | from euphorie.client import model
from euphorie.client.utils import HasText
from euphorie.content.interfaces import ICustomRisksModule
from euphorie.content.interfaces import IQuestionContainer
from euphorie.content.module import IModule
from euphorie.content.profilequestion import IProfileQuestion
from euphorie.conten... | PypiClean |
/NDBC-1.2.0.tar.gz/NDBC-1.2.0/changelog.md | # NDBC Package Change Log
---
### v1.1.1
- bug(fix) Correct issue with alpha characters in station ID string [#32](https://github.com/GenSci/NDBC/issues/32)
- bug(fix) Prevent continuous year looping when URLs fail.
### v.1.1.0
- Added support for multiple data package retrieval through a more general `get_data()` ... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/extra/wai-lang/lib/languages.js | define( [ 'aloha', 'aloha/jquery', 'flag-icons/flag-icons-plugin' ],
function( Aloha, jQuery, FlagIcons ) {
return new ( Aloha.AbstractRepository.extend( {
/**
* Set of language codes
*/
languageCodes: [],
_constructor: function() {
this._super( 'wai-languages' );
},
/**
* Initialize WAI La... | PypiClean |
/ETSProjectTools-0.6.0.tar.gz/ETSProjectTools-0.6.0/enthought/ets/graph.py | import os
import sys
# Project library imports
from enthought.ets.base_subcommand import BaseSubcommand
from pkg_resources import Requirement
class Graph(BaseSubcommand):
"""
The ets graph command.
"""
def __init__(self, subparsers):
"""
Constructor.
Overloaded to customize... | PypiClean |
/Mopidy-WebLibrary-1.0.0.tar.gz/Mopidy-WebLibrary-1.0.0/mopidy_weblibrary/static/vendors/lastfm/lastfm.api.cache.js | Storage.prototype.setObject = function(key, value){
this.setItem(key, JSON.stringify(value));
}
/* Get an object from a Storage object. */
Storage.prototype.getObject = function(key){
var item = this.getItem(key);
return JSON.parse(item);
}
/* Creates a new cache object. */
function LastFMCache(){
/* Expiration ... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.