id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/DjangoComponents-0.0.0.33.tar.gz/DjangoComponents-0.0.0.33/django_components/static/js/build/.module-cache/57bc5a1a0e215d87b097f80724cb3db3a3befe00.js | var SearchOption = React.createClass({displayName: "SearchOption",
update: function(e) {
this.props.click(this.props.children);
},
render: function() {
return React.createElement("div", {className: "search-suggestion", onMouseDown: this.update}, this.props.children);
}
});
var DropdownSearch = React.cr... | PypiClean |
/FinDt-3.0.2.tar.gz/FinDt-3.0.2/findt/FinDt.py |
r"""Classe base de suporte para operacoes com datas.
1)Objetivo:
-----------
Esta classe fornece um conjunto de funcoes cujo principal objetivo e
facilitar o trabalho com datas, voltadas, principalmente, para as financas:
dias uteis, dias corridos, numero de dias uteis entre duas datas, numero de
dias... | PypiClean |
/NeuroDynamics-0.1.1.tar.gz/NeuroDynamics-0.1.1/brainpy/core_system/types.py |
from collections import OrderedDict
from .. import numpy as np
from .. import profile
try:
import numba as nb
except ImportError as e:
if profile.is_numba_bk():
raise e
nb = None
__all__ = [
'TypeChecker',
'TypeMismatchError',
'ObjState',
'NeuState',
'SynState',
'ListCon... | PypiClean |
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/thirdparty/httplib2/socks.py |
Minor modifications made by Christopher Gilbert (http://motomastyle.com/)
for use in PyLoris (http://pyloris.sourceforge.net/)
Minor modifications made by Mario Vilas (http://breakingcode.wordpress.com/)
mainly to merge bug fixes found in Sourceforge
"""
import socket
import struct
import sys
if getattr(socket, 's... | PypiClean |
/Hecuba-2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/hecuba/tools.py | import uuid
from . import config
valid_types = ['counter', 'text', 'boolean', 'decimal', 'double', 'int', 'list', 'set', 'map', 'bigint', 'blob',
'tuple', 'dict', 'float', 'timestamp', 'time', 'date', 'numpy.ndarray']
basic_types = valid_types[:-1]
def storage_id_from_name(name):
return uuid.uuid... | PypiClean |
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/interface/graphical_actions/diagram_remove_graphical_element_action.py |
# General Imports
from typing import Iterable, List, Any
# Project Imports
from muphyn.packages.interface.graphical_actions.abstract_diagram_action import AbstractDiagramAction
from muphyn.packages.interface.models.graphical_models.abstract_box_model import AbstractBoxModel
from muphyn.packages.interface.models.graph... | PypiClean |
/FlaskBB-2.0.2.tar.gz/FlaskBB-2.0.2/flaskbb/cli/utils.py | import sys
import os
import re
import click
from flask import current_app, __version__ as flask_version
from flask_themes2 import get_theme
from flaskbb import __version__
from flaskbb.utils.populate import create_user, update_user
_email_regex = r"[^@]+@[^@]+\.[^@]+"
class FlaskBBCLIError(click.ClickException):... | PypiClean |
/GOSTnets-1.0.1.tar.gz/GOSTnets-1.0.1/README.md | # GOSTNets
**Python for network analysis**
Build, process, and analyze networks. GOSTNets is built on top of geopandas, networkx, osmnx, and peartree.
### Installation
Eventually we will have the tool available on pip and conda, but for now, please use the setup.py in this repository
```
conda create --name test py... | PypiClean |
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/data/datasets/evaluation/coco/coco_eval.py | import logging
import os
import tempfile
from collections import OrderedDict
import torch
from tqdm import tqdm
from demo.inference import PlaneClustering
from PTMD.maskrcnn_benchmark.modeling.roi_heads.mask_head.inference import Masker
from PTMD.maskrcnn_benchmark.structures.bounding_box import BoxList
from PTMD.mas... | PypiClean |
/JSTools-1.0.tar.gz/JSTools-1.0/jstools/utils.py | from configparser import NoSectionError
from configparser import ConfigParser
from collections import MutableMapping
import sys
import logging
import os
try:
from functools import wraps
except ImportError:
def wraps(f):
def _decorator(func):
def _wrapper(*args, **kwargs):
fun... | PypiClean |
/Jomini-0.1.4.tar.gz/Jomini-0.1.4/jomini/Lanchester.py | from math import ceil
class Battle:
def __init__(self, red=20_000, blue=20_000, rho=0.0100, beta=0.0100):
"""
We assume that battles are two sided
:param int red: Number of soldiers in the side red
:param int blue: Number of soldiers in the side blue
:param float rho: Power... | PypiClean |
/Hanita-0.1.3-py3-none-any.whl/hanita/forms/just_ui.py | import random
import sys
import time
from PyQt5 import Qt, QtCore, QtWidgets
import form_contacts
import form_new_chat
import form_main
class ContactsDialog(QtWidgets.QDialog):
handle_msg = QtCore.pyqtSignal(dict)
def __init__(self, parent=None, user_list=None):
QtWidgets.QDialog.__init__(self, par... | PypiClean |
/AutoMapDB-0.1.5-py3-none-any.whl/automapdb/db.py |
import atexit
from sqlalchemy import MetaData, create_engine
from sqlalchemy.engine import Connection, Engine
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.ext.automap import AutomapBase, automap_base
from sqlalchemy.orm import DeclarativeMeta, Session
from sqlalchemy.orm.query import Query
from sqlalche... | PypiClean |
/NEMO_billing-2.6.7-py3-none-any.whl/NEMO_billing/invoices/views/project.py | from collections import defaultdict
from datetime import date, datetime, timedelta
from typing import Dict, Set
from NEMO.decorators import accounting_or_user_office_or_manager_required
from NEMO.forms import ProjectForm
from NEMO.models import Account, ActivityHistory, MembershipHistory, Project, ProjectDocuments, Us... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/paper-dialog/.github/ISSUE_TEMPLATE.md | <!-- Instructions: https://github.com/PolymerElements/paper-dialog/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: The page tu... | PypiClean |
/OSIx-0.4.2.tar.gz/OSIx-0.4.2/README.md | # OSIx - **O**pen **S**ource **I**ntelligence e**X**plorer - V0.0.3
[](https://github.com/guibacellar/OSIx/actions/workflows/qa.yml)

:
__tablename__ = "lin_log"
id = ... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/js/common/browser-calls.js | const TwilioMixin = {
data () {
return {
call_status : 'Initializing...',
in_call: false,
is_ringing: false,
outgoing_recipient: '',
// For answering call, we assign this so we can accept through it with the accept button
connection: n... | PypiClean |
/GnuCash%20Web-0.1.0rc10.tar.gz/GnuCash Web-0.1.0rc10/gnucash_web/static/bootstrap/js/bootstrap.min.js | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,(function(t){"use strict";function e(t){if(t&&t.__esModule)... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/common/undo/lib/undo-plugin.js | define(
['aloha', 'aloha/jquery', 'aloha/plugin', 'undo/vendor/undo', 'undo/vendor/diff_match_patch_uncompressed'],
function( Aloha, jQuery, Plugin) {
var
dmp = new diff_match_patch,
resetFlag = false;
function reversePatch(patch) {
var reversed = dmp.patch_deepCopy(patch);
for (var i = 0; i < revers... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/base/management/commands/fixoauthuri.py |
from django.contrib.auth import get_user_model
from django.core.management.base import BaseCommand
from oauth2_provider.models import Application
from oauth2_provider.generators import generate_client_id, generate_client_secret
from geonode import geoserver # noqa
from geonode.utils import check_ogc_backend
class ... | PypiClean |
/Eupompos-0.1.1-py3-none-any.whl/eupompos/parser.py | # something's wrong with the way pylint understands the import statement :
# pylint: disable=import-error
import os.path
import re
from eupompos.cppparser import CppParser
from eupompos.pyparser import PyParser
from eupompos.filetools import normpath
from eupompos.messages import MSG
from eupompos.parserreport import... | PypiClean |
/NeXpy-1.0.4-py3-none-any.whl/nexpy/gui/widgets.py | import math
import warnings
import numpy as np
from matplotlib import colors
from matplotlib.patches import Ellipse, Polygon, Rectangle
from .pyqt import QtCore, QtGui, QtWidgets
from .utils import (boundaries, find_nearest, format_float, get_color,
natural_sort, report_error)
warnings.filterwarn... | PypiClean |
/0x-web3-5.0.0a5.tar.gz/0x-web3-5.0.0a5/web3/gas_strategies/time_based.py | import collections
import math
import operator
from eth_utils import (
to_tuple,
)
from web3._utils.math import (
percentile,
)
from web3._utils.toolz import (
curry,
groupby,
sliding_window,
)
from web3.exceptions import (
InsufficientData,
ValidationError,
)
MinerData = collections.name... | PypiClean |
/GuildWars2_API_Client-0.6.0-py3-none-any.whl/gw2api/objects/api_version_2/__init__.py | from gw2api.objects.base_object import BaseAPIObject
class BaseAPIv2Object(BaseAPIObject):
"""Extends the base API handler to automatically handle pagination and id parameters"""
def get(self, **kwargs):
return super().get(id=kwargs.get('id'),
ids=kwargs.get('ids'),
... | PypiClean |
/CherryPy-18.8.0.tar.gz/CherryPy-18.8.0/cherrypy/lib/sessions.py | import sys
import datetime
import os
import time
import threading
import binascii
import pickle
import zc.lockfile
import cherrypy
from cherrypy.lib import httputil
from cherrypy.lib import locking
from cherrypy.lib import is_iterator
missing = object()
class Session(object):
"""A CherryPy dict-like Session ... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/da.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","da",{title:"Tilgængelighedsinstrukser",contents:"Onlinehjælp. For at lukke dette vindue klik ESC",legend:[{name:"Generelt",items:[{name:"... | PypiClean |
/DosNa-0.1.tar.gz/DosNa-0.1/dosna/backends/base.py | """Base classes for every backend"""
import logging
from itertools import product
import numpy as np
from six.moves import range
log = logging.getLogger(__name__)
class BackendConnection(object):
def __init__(self, name, open_mode="a", *args, **kwargs):
self._name = name
self._connected = Fal... | PypiClean |
/BitEx-2.0.0b3.zip/BitEx-2.0.0b3/bitex/api/REST/rest.py | import logging
# Import Third-Party
import requests
# Import Homebrew
from bitex.api.base import BaseAPI
# Init Logging Facilities
log = logging.getLogger(__name__)
class RESTAPI(BaseAPI):
"""
Generic REST API interface. Supplies private and public query methods,
as well as building blocks to customize... | PypiClean |
/3dfin-0.2.0rc0-py3-none-any.whl/three_d_fin/cloudcompare/plugin_processing.py | import sys
from pathlib import Path
import numpy as np
import pycc
from three_d_fin.cloudcompare.plugin_progress import CloudCompareProgress
from three_d_fin.processing.abstract_processing import FinProcessing
from three_d_fin.processing.configuration import FinConfiguration
class CloudComparePluginProcessing(FinPr... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/additional_scripts/coco_eval.py | import sys
import os
import json
import argparse
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
# Define a class to suppress print statements
class HiddenPrints:
"""
A context manager to suppress print statements.
"""
def __enter__(self):
self._original_stdout = ... | PypiClean |
/DESTNOSIM-1.3.3.tar.gz/DESTNOSIM-1.3.3/destnosim/des/decam.py | from __future__ import print_function
import numpy as np
from itertools import chain
from .ccd import *
import os
import subprocess
from scipy.spatial import cKDTree
import astropy.table as tb
from astropy.time import Time
from astropy import units as u
import spacerocks
from spacerocks.units import Units
from ... | PypiClean |
/Agora-Scholar-0.2.0.tar.gz/Agora-Scholar-0.2.0/agora/scholar/actions/query.py | import calendar
import json
import logging
import traceback
from datetime import datetime
import networkx as nx
from agora.scholar.actions import FragmentConsumerResponse
from agora.scholar.daemons.fragment import fragment_lock, fragment_graph, fragments_key, fragment_updated_on, \
FragmentPlugin
from agora.stoa.a... | PypiClean |
/BTEdb-7.0.1.tar.gz/BTEdb-7.0.1/README.txt | ###########
## BTEdb ##
###########
BTEdb (Better Than Ethan's database) is a project created because Ethan thought he could write a database in Python, and mine has to be better than his
It is a schemaless database like MongoDB that serializes to JSON. It can either serialize to a file, or an object that you pass it.... | PypiClean |
/NetGrasp-0.9.4.tar.gz/NetGrasp-0.9.4/README.txt | ========
NetGrasp
========
Netgrasp tracks IP and MAC address pairs seen on the network while it runs,
optionally generating notifications. For example, it can notify you when a new
device joins your network. It can also send daily and weekly emails summarizing
the devices using your network.
Netgrasp currently requir... | PypiClean |
/HPexome-1.2.1.tar.gz/HPexome-1.2.1/README.md | # An automated tool for processing whole-exome sequencing data
Whole-exome sequencing has been widely used in clinical applications for the identification of the genetic causes of several diseases.
_HPexome_ automates many data processing tasks for exome-sequencing data analysis of large-scale cohorts.
Given ready-ana... | PypiClean |
/CEDApy-0.3.6.tar.gz/CEDApy-0.3.6/CEDA/economic/XinHua.py | import ast
import json
import requests
import pandas as pd
from tqdm import tqdm
from pygtrans import Translate
def translate(text:str=None):
client = Translate()
text = client.translate(text, target="en")
return text.translatedText
url = {
"CNFIN": "https://api.cnfin.com/roll/charts/"
}
class XHData... | PypiClean |
/CNVpytor-1.3.1.tar.gz/CNVpytor-1.3.1/cnvpytor/export.py | import json
from pathlib import Path
from .io import *
from .genome import *
_logger = logging.getLogger("cnvpytor.export")
class Wiggle:
def __init__(self, filename):
"""
creates bigwig file
Parameters
----------
filename : str
Path for the bigwig filename
... | PypiClean |
/BGWpy-3.2.2.tar.gz/BGWpy-3.2.2/Documentation/Examples/Abinit/v42-Workflow-GW.py | from os.path import join as pjoin
from BGWpy import Structure, Workflow, AbinitScfTask, AbinitWfnTask, Abi2BgwTask, EpsilonTask, SigmaTask
workflow = Workflow(dirname='42-Workflow')
# Common arguments for tasks.
kwargs = dict(
structure = Structure.from_file('../../Data/Structures/GaAs.json'),
prefix = 'GaA... | PypiClean |
/Dendrite_Neural_Networks-0.0.9-py3-none-any.whl/DMN.py |
# In[2]:
from tensorflow.keras.layers import Layer
from keras import backend as K
from keras.initializers import Constant
from keras.initializers import RandomUniform
from keras import activations
import numpy as np
class DMNlayer(Layer):
def __init__(self, units,dendrites = [], activation=None, **kwargs):
... | PypiClean |
/liteclashproman-0.2.1.tar.gz/liteclashproman-0.2.1/README.md | # LiteClashProMan
生成并更新 clash 配置文件,并提供 http 下载和规则文件镜像下载。
## 说明
本项目使用 `配置模板` 以及节点的 `订阅链接` 生成多种不同的配置文件,也可以将多个订阅中的节点整合至一个配置文件中~~但会导致部分功能丧失~~。
## 快速上手
安装依赖(推荐使用pipx)
```bash
pip install liteclashproman
```
运行程序
```bash
# 可以通过 -c 指定特定的配置文件
# lcpm -c specific_config.yaml
# 未添加 -c 时,默认读取当前目录下的 config.yaml 文件
lcpm # 等效... | PypiClean |
/Flask-libsass-1.1.0.tar.gz/Flask-libsass-1.1.0/flask_libsass.py | import os
import posixpath
import hashlib
from werkzeug.exceptions import NotFound
from flask import current_app, request, Response
from flask import _app_ctx_stack as stack
import sass
class Sass(object):
"""
`files`
A dictionary mapping output file path (without extension) to the
root inp... | PypiClean |
/FreeGS-0.8.0-py3-none-any.whl/freegs/critical.py | from scipy import interpolate
from numpy import zeros
from numpy.linalg import inv
from numpy import (
dot,
linspace,
argmax,
argmin,
abs,
clip,
sin,
cos,
pi,
amax,
arctan2,
sqrt,
sum,
)
import numpy as np
from warnings import warn
def find_critical(R, Z, psi, disca... | PypiClean |
/parts/Clothing/Graphic/Diamond.py | def Diamond():
return (
'<path fill-rule="evenodd" clip-rule="evenodd" d="M63.7805 29.7365C61.391 32.3934 58.9226 34.9802 56.4446 37.5565C57.4301 34.0044 58.1846 29.9786 59.649 26.5995C60.0655 25.6371 59.7486 25.5153 60.5761 25.1057C61.1848 24.8045 62.6537 25.1495 63.3826 25.1679C64.9405 25.2066 66.5336 25.... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/utilities/cache.py | import os
import time
from abc import ABC
from pathlib import Path
import hashlib
import typing as t
import pandas as pd
import walrus
from mindsdb.utilities.config import Config
from mindsdb.utilities.json_encoder import CustomJSONEncoder
from mindsdb.interfaces.storage.fs import FileLock
from mindsdb.utilities.cont... | PypiClean |
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/postprocessing/consolidate_postprocessing.py |
import shutil
from typing import Tuple
from batchgenerators.utilities.file_and_folder_operations import *
from CartiMorph_nnUNet.configuration import default_num_threads
from CartiMorph_nnUNet.evaluation.evaluator import aggregate_scores
from CartiMorph_nnUNet.postprocessing.connected_components import determine_post... | PypiClean |
/MedPy-0.4.0.tar.gz/MedPy-0.4.0/bin/medpy_extract_sub_volume.py | # build-in modules
from argparse import RawTextHelpFormatter
import argparse
import logging
import sys
import os
# third-party modules
import scipy
# path changes
# own modules
from medpy.core import ArgumentError, Logger
from medpy.io import load, save
# information
__author__ = "Oskar Maier"
__version__ = "r0.3.0... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/conf/defaults.py | # Permissions system extensions
# https://misago.readthedocs.io/en/latest/developers/acls.html#extending-permissions-system
MISAGO_ACL_EXTENSIONS = [
"misago.users.permissions.account",
"misago.users.permissions.profiles",
"misago.users.permissions.moderation",
"misago.users.permissions.delete",
"m... | PypiClean |
/GitPython-3.1.34-py3-none-any.whl/git/config.py | import sys
import abc
from functools import wraps
import inspect
from io import BufferedReader, IOBase
import logging
import os
import re
import fnmatch
from git.compat import (
defenc,
force_text,
is_win,
)
from git.util import LockFile
import os.path as osp
import configparser as cp
# typing---------... | PypiClean |
/OctoBot-Services-1.6.2.tar.gz/OctoBot-Services-1.6.2/octobot_services/services/service_factory.py |
import octobot_commons.logging as logging
import octobot_services.constants as constants
import octobot_services.services as services
class ServiceFactory:
def __init__(self, config):
self.logger = logging.get_logger(self.__class__.__name__)
self.config = config
@staticmethod
def get_av... | PypiClean |
/CorePost-0.0.16.tar.gz/CorePost-0.0.16/corepost/routing.py | from collections import defaultdict
from corepost import Response, RESTException
from corepost.enums import Http, HttpHeader
from corepost.utils import getMandatoryArgumentNames, convertToJson, safeDictUpdate
from corepost.convert import convertForSerialization, generateXml
from corepost.filters import IRequestFilter, ... | PypiClean |
/INDIpy-0.4.0.tar.gz/INDIpy-0.4.0/indi/client/client.py | from __future__ import annotations
import asyncio
import logging
import uuid
from typing import Any, Callable, Dict, Iterable, List, Optional, Type
import indi
from indi import message
from indi.client import events
from indi.client.device import Device
from indi.message import IndiMessage, const
logger = logging.ge... | PypiClean |
/NetworkSim-0.2.2.tar.gz/NetworkSim-0.2.2/docs/source/_templates/module.rst | .. _mod-{{ fullname }}:
{{ fullname | underline }}
.. automodule:: {{ fullname }}
{% block functions %}
{% if functions %}
.. rubric:: Functions
.. autosummary::
:toctree: {{ objname }}
:template: function.rst
{% for item in functions %}
{{ item }}
{%- endfor %}
{% endif %}
... | PypiClean |
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/FirmwareUpdateLocalRepoREDFISH.py |
import argparse
import getpass
import glob
import json
import logging
import os
import platform
import re
import requests
import subprocess
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Pyt... | PypiClean |
/1000pipClimber-1.tar.gz/1000pipClimber-1/README.md | <h1></h1>
<p>
<p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://858d0aqdynn98w4ucl3agpav9m.hop.clickbank.net/?tid=pydownload" rel="nofollow" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img border="0" data-original-height="66" data-original-width="372" src="https:/... | PypiClean |
/Hydrawiser-0.2.tar.gz/Hydrawiser-0.2/hydrawiser/core.py | import time
from hydrawiser.helpers import customer_details, status_schedule, set_zones
class Hydrawiser():
"""
:param user_token: User account API key
:type user_token: string
:returns: Hydrawiser object.
:rtype: object
"""
def __init__(self, user_token):
self._user_token = user... | PypiClean |
/MagsToolCommand-0.0.6.tar.gz/MagsToolCommand-0.0.6/README.md | # MagsMLTool
[]()
MagsMLTool is a Python Application that uses various libraries to process a PDF file.
The script converts the PDF to images, extracts frames from each image, and then applies object detection models to each frame to detect if ... | PypiClean |
/Foundations-2.1.0.tar.gz/Foundations-2.1.0/docs/help/Foundations_Manual.rst | Foundations - Manual - Help File
================================
.. raw:: html
<br/>
Table Of Content
=================
.. .tocTree
- `Introduction`_
- `Installation`_
- `Usage`_
- `Api`_
- `Changes`_
- `About`_
.. raw:: html
<br/>
.. .introduction
_`Introduction`
===============
**Foundations*... | PypiClean |
/ConcurrentDatabase-0.0.4.tar.gz/ConcurrentDatabase-0.0.4/README.md | [](https://github.com/JayFromProgramming/ConcurrentDatabase/actions/workflows/python-package.yml)
[](http://travis-ci.org/juliangruber/balanced-match)
[](h... | PypiClean |
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/docs/tutorial.rst | =====================
Overview and Tutorial
=====================
Welcome to Fabric!
This document is a whirlwind tour of Fabric's features and a quick guide to its
use. Additional documentation (which is linked to throughout) can be found in
the :ref:`usage documentation <usage-docs>` -- please make sure to check it... | PypiClean |
/Clique-blockchain-0.2.3.zip/Clique-blockchain-0.2.3/clique/app/_contract_example.py | import json
from uuid import uuid4
import requests
from clique.blockchain import BlockChain, Block, Identity
from clique import keystore
def contract_example(args):
ipecac = Identity("label:Ipecac", Identity.generateKey())
patton = Identity("artist:Mike Patton", Identity.generateKey())
melvins = Identity... | PypiClean |
/DMT_core-2.0.0-py3-none-any.whl/DMT/external/os.py | # DMT_core
# Copyright (C) from 2022 SemiMod
# Copyright (C) until 2021 Markus Müller, Mario Krattenmacher and Pascal Kuthe
# <https://gitlab.com/dmt-development/dmt-core>
#
# This file is part of DMT_core.
#
# DMT_core is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Pu... | PypiClean |
/ChadBot2-0.1.tar.gz/ChadBot2-0.1/ChadBot/generation/rajat_work/qgen/generator/eda.py |
import random
import re
from random import shuffle
from nltk.corpus import wordnet
from tqdm import tqdm
from .base import BaseGenerator
random.seed(42)
STOP_WORDS = ['i', 'me', 'my', 'myself', 'we', 'our',
'ours', 'ourselves', 'you', 'your', 'yours',
'yourself', 'yourselves', 'he', 'hi... | PypiClean |
/Gribble-1.0.0.tar.gz/Gribble-1.0.0/gribble/transports/http_transport.py | import traceback
import time
import requests
from gribble.transports.base_transport import BaseTransport
from gribble.transports.exception import TransportException
class HttpTransport(BaseTransport):
def __init__(self, gribble_config, logger=None):
super(HttpTransport, self).__init__(gribble_config, lo... | PypiClean |
/Flask-Celery-py3-0.2.4.tar.gz/Flask-Celery-py3-0.2.4/README.rst | =============================
Flask Celery 3.0+ Integration
=============================
.. image:: https://img.shields.io/pypi/v/Flask-Celery-py3.svg
:target: https://pypi.python.org/pypi/Flask-Celery-py3/
.. image:: https://img.shields.io/pypi/dm/Flask-Celery-py3.svg
:target: https://pypi.python.org/pypi/Fla... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Executor.py | import collections
import SCons.Errors
import SCons.Memoize
import SCons.Util
from SCons.compat import NoSlotsPyPy
import SCons.Debug
from SCons.Debug import logInstanceCreation
class Batch:
"""Remembers exact association between targets
and sources of executor."""
__slots__ = ('targets',
... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/form/_ExpandingTextAreaMixin.js | define("dijit/form/_ExpandingTextAreaMixin",["dojo/_base/declare","dojo/dom-construct","dojo/_base/lang","dojo/_base/window"],function(_1,_2,_3,_4){
var _5;
return _1("dijit.form._ExpandingTextAreaMixin",null,{_setValueAttr:function(){
this.inherited(arguments);
this.resize();
},postCreate:function(){
this.inherited(ar... | PypiClean |
/Aesthete-0.4.2.tar.gz/Aesthete-0.4.2/aesthete/glosser/GlosserWidget.py | import gtk
from matplotlib.backends.backend_cairo import RendererCairo
import pangocairo
from aobject.utils import *
import pango
import gobject
from .. import glypher
import copy
from lxml import etree
import cairo
from aobject import aobject
from aobject.paths import *
from ..tablemaker import *
import rsvg
import S... | PypiClean |
/CommenlyzerEngine-1.0.0.tar.gz/CommenlyzerEngine-1.0.0/README.md | <img alt="PyPI - License" src="https://img.shields.io/pypi/l/CubaCrawler.svg"> <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/CubaCrawler.svg"> <img alt="PyPI" src="https://img.shields.io/pypi/v/CubaCrawler.svg"> <img alt="Travis (.org)" src="https://img.shields.io/travis/fsadannn/CubaCraw... | PypiClean |
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/analysis/components/table_column.py | import uuid
import itertools
import math
import formatted_text
from base import _Component
class TableColumn(object):
""" Represent a column in table
:param ~eureqa.analysis.components.table_builder.TableBuilder parent_table: the containing table
:param list col_data: data for this column. Can be either ... | PypiClean |
/CommentGPT-0.2.tar.gz/CommentGPT-0.2/README.md | # CommentGPT
This python script/command line tool is able to comment code using ChatGPT. The results are sometimes a little *odd*, so a human will need to look at them, but the results can be very efficient at
commented undermaintained files.
You'll never have to write comments again!
## Installation
### Download
##... | PypiClean |
/Leye-0.0.1.tar.gz/Leye-0.0.1/sentileye/polarity.py | import csv
import re
import ast
import pandas as pd
from csv import reader
from sentileye.booster import booster
from sentileye.emoticon import emoticon
def get_user_data():
message = 'Hello, you are welcome to SentiLEYE sentiment classifier'
print('{:^80}'.format(message))
#Read in file to classify
u... | PypiClean |
/ChatExchange-0.0.4-py3-none-any.whl/chatexchange/_utils.py | import sys
if sys.version_info[0] == 2:
from HTMLParser import HTMLParser
import htmlentitydefs
else:
from html.parser import HTMLParser
from html import entities as htmlentitydefs
import functools
import logging
import weakref
def log_and_ignore_exceptions(
f, exceptions=Exception, logger=logging... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/se.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/Gribble-1.0.0.tar.gz/Gribble-1.0.0/gribble/worker/tail.py | import collections
import datetime
import errno
import gzip
import io
import os
import sqlite3
import time
from gribble.utils import IS_GZIPPED_FILE, REOPEN_FILES, multiline_merge
from gribble.unicode_dammit import ENCODINGS
from gribble.base_log import BaseLog
class Tail(BaseLog):
"""Follows a single file and o... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/30308.112c9fad0e442466d866.min.js | (self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[30308],{30308:function(e){function n(e){return function(...e){return e.map((e=>function(e){return e?"string"==typeof e?e:e.source:null}(e))).join("")}("(?=",e,")")}e.exports=function(e){const a={$pattern:/[A-Za-z]\w+|__\w+_... | PypiClean |
/ConGen-0.0.5.tar.gz/ConGen-0.0.5/src/congen/layers/Layer.py | import numpy as np
from layers.LayerUsage import LayerUsage
from layers.Parameter import ParameterDict, Parameter
class Layer:
def __init__(self, enabled=True, **kwargs):
if not hasattr(self, "parameters"):
self.parameters = ParameterDict()
if not hasattr(self, "dependentLayers"):
... | PypiClean |
/IQA_pytorch-0.1.tar.gz/IQA_pytorch-0.1/IQA_pytorch/SteerPyrUtils.py | import math
import torch
from torch.autograd import Variable
import numpy as np
def L( r ):
if r <= math.pi / 4:
return 2
elif r >= math.pi / 2:
return 0
else:
return 2 * math.cos( math.pi / 2 * math.log( 4 * r / math.pi ) / math.log( 2 ) )
def H( r ):
if r <= math.pi / 4:
return 0
elif r >= ma... | PypiClean |
/DobotRPC-4.8.8.tar.gz/DobotRPC-4.8.8/README.rst | ***This version is relevant for Dobotlink 5.0.0 and python3.5+***
DobotRPC is a dobotlink communication module based on websocket and
JSON-RPC . It provides python ports to communicate with dobotlink and
allows developers to communicate with the GUI.
APIS
-----
- RPCClient: RPCClient is a class that allows users to... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/highlight/languages/pygments/javascript.js | if(!dojo._hasResource["dojox.highlight.languages.pygments.javascript"]){
dojo._hasResource["dojox.highlight.languages.pygments.javascript"]=true;
dojo.provide("dojox.highlight.languages.pygments.javascript");
dojo.require("dojox.highlight._base");
(function(){
var dh=dojox.highlight,_1=dh.constants;
dh.languages.javasc... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/dropdown-menu.js | module.exports =
/******/ (function (modules) { // webpackBootstrap
/******/ // The module cache
/******/
var installedModules = {};
/******/
/******/ // The require function
/******/
function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in ... | PypiClean |
/Finance-Jindowin-1.3.3.tar.gz/Finance-Jindowin-1.3.3/jdw/mfc/entropy/catalyst/geneticist/stock.py | from jdw.data.SurfaceAPI.stock.yields import StkYields
from jdw.data.SurfaceAPI.stock.factors import StkFactors
from jdw.data.SurfaceAPI.universe import StkUniverse
from jdw.data.SurfaceAPI.stock.industry import Industry
from jdw.data.SurfaceAPI.dummy import Dummy
from jdw.mfc.entropy.catalyst.geneticist.base import Ba... | PypiClean |
/Bambanta-0.1.4.tar.gz/Bambanta-0.1.4/README.md | [](https://travis-ci.org/CS207-Project-Group-9/cs207-FinalProject)
[](https://coveralls.io/github/CS207-... | PypiClean |
/LOCATE_model-0.0.3-py3-none-any.whl/LOCATE/LOCATE_model.py | import torch
import pytorch_lightning as pl
from torch import nn
from torch.nn import functional as F
class GeneralModel(pl.LightningModule):
"""
LOCATE class
"""
def __init__(self, train_metab, train_micro, input_size, representation_size, weight_decay_rep=0.999,
weight_decay_dis=0... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Main.js | MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXGeneral-italic"]={directory:"General/Italic",family:"STIXGeneral",style:"italic",Ranges:[[160,255,"Latin1Supplement"],[256,383,"LatinExtendedA"],[384,591,"LatinExtendedB"],[592,687,"IPAExtensions"],[688,767,"SpacingModLetters"],[880,1023,"GreekAndCoptic"],[1024,1279,"Cy... | PypiClean |
/NIDDL-0.1.8-py3-none-any.whl/cnn_archs/baseline_v2.py | import tensorflow as tf
def conv2d(x, W, b, strides=1):
# Conv2D wrapper, with bias and relu activation
x = tf.nn.conv2d(x, W, strides=[1, strides, strides, 1], padding='SAME')
x = tf.nn.bias_add(x, b)
return tf.nn.relu(x)
def maxpool2d(x, k=2):
return tf.nn.max_pool(x, ksize=[1, k, k, 1], strides... | PypiClean |
/Kiosk_Client-0.8.4.tar.gz/Kiosk_Client-0.8.4/kiosk_client/utils.py | """Utility files for batch file processing"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from PIL import Image
from twisted.internet import reactor
from twisted.internet.task import deferLater
def get_download_path():
"""Returns the de... | PypiClean |
/Infineon_DPS310-1.0.0.tar.gz/Infineon_DPS310-1.0.0/Infineon_DPS310.py | import smbus
from time import sleep
def getTwosComplement(raw_val, length):
"""Get two's complement of `raw_val`.
Args:
raw_val (int): Raw value
length (int): Max bit length
Returns:
int: Two's complement
"""
val = raw_val
... | PypiClean |
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/plsql/plsql.js | CodeMirror.defineMode("plsql", function(config, parserConfig) {
var indentUnit = config.indentUnit,
keywords = parserConfig.keywords,
functions = parserConfig.functions,
types = parserConfig.types,
sqlplus = parserConfig.sqlplus,
multiLineStrings ... | PypiClean |
/HEBO-0.3.2-py3-none-any.whl/hebo/optimizers/nomr.py |
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# 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 MIT License ... | PypiClean |
/DotConfig-0.1.1.tar.gz/DotConfig-0.1.1/dotconfig.py | import ConfigParser
class Config(object):
"""Contains the configuration data.
The configuration is read at initialization
and you read sections and options as attributes
of the class, e.g. config.my_section.my_value
where my_sectiona and my_value are data in
your config file.
Attributes:... | PypiClean |
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/requests/cookies.py | import time
import collections
from .compat import cookielib, urlparse, urlunparse, Morsel
try:
import threading
# grr, pyflakes: this fixes "redefinition of unused 'threading'"
threading
except ImportError:
import dummy_threading as threading
class MockRequest(object):
"""Wraps a `requests.Reque... | PypiClean |
/Electrum-Zcash-Random-Fork-3.1.3b5.tar.gz/Electrum-Zcash-Random-Fork-3.1.3b5/lib/transaction.py |
# Note: The deserialization code originally comes from ABE.
from .util import print_error, profiler
from . import bitcoin
from .bitcoin import *
import struct
import traceback
import sys
#
# Workalike python implementation of Bitcoin's CDataStream class.
#
from .keystore import xpubkey_to_address, xpubkey_to_pubk... | PypiClean |
/HSTools-0.0.3-py3-none-any.whl/hstools/progress.py | import sys
import itertools
class progressBar(object):
def __init__(self, progress_message, type='pulse', refresh_delay=0.25,
finish_message='Finished', error_message='An error has occurred'):
# create a simple progress bar
self.barArray = itertools.cycle(self._pulseArrays(type))... | PypiClean |
/Bot-Base-1.7.1.tar.gz/Bot-Base-1.7.1/bot_base/paginators/disnake_paginator.py | from typing import List, Union, TypeVar, Optional, Callable
import disnake
from disnake.ext import commands
# Inspired by https://github.com/nextcord/nextcord-ext-menus
T = TypeVar("T")
class PaginationView(disnake.ui.View):
FIRST_PAGE = "\N{BLACK LEFT-POINTING DOUBLE TRIANGLE WITH VERTICAL BAR}\ufe0f"
PRE... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ru.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 |
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/pipelines/covid/recal.sh |
##Written by Brian Bushnell
##Last modified May 4, 2020
##Description: Creates a recalibration matrix for Illumina data.
##Usage: recal.sh <prefix>
##For example, "recal.sh Sample1" if the data is in Sample1.fq.gz
##This script creates quality-score recalibration matrices for processing Illumina PE reads.
##It nee... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/console-control-strings/README.md~ |
A library of cross-platform tested terminal/console command strings for
doing things like color and cursor positioning. This is a subset of both
ansi and vt100. All control codes included work on both Windows & Unix-like
OSes, except where noted.
## Usage
```js
var consoleControl = require('console-control-strings... | PypiClean |
/Flask-MongoSet-0.1.8.tar.gz/Flask-MongoSet-0.1.8/flask_mongoset.py | from __future__ import absolute_import
import copy
import operator
import trafaret as t
from flask import abort
from flask.signals import _signals
from importlib import import_module
from pymongo import Connection, ASCENDING
from pymongo.cursor import Cursor
from pymongo.database import Database
from pymongo.collect... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.