id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Allanon-0.2.zip/Allanon-0.2/README.rst | .. contents::
Introduction
============
Let's say that you want to access a slow streaming site to see something (obviously: something not
protected by copyright).
The streaming site use URLs in that format:
http://legal-streaming-site.org/program-name/season5/episode4/
Every page contains some HTML code like ... | PypiClean |
/Augusta-1.0.4.tar.gz/Augusta-1.0.4/README.rst | Augusta
==========
Python package: From RNA-Seq to the Boolean Network through the Gene Regulatory Network
Documentation and tutorials are available at `augusta.readthedocs.io <https://augusta.readthedocs.io>`_.
Quick Guide
----------------
Dependencies:
- Python 3, versions 3.7 and 3.8
- Docker
**Installation:**... | PypiClean |
/BPMN_RPA-7.1.2.tar.gz/BPMN_RPA-7.1.2/BPMN_RPA/Scripts/Web.py | import pickle
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from webd... | PypiClean |
/AESEncryptor_heureka_code-1.3.0-py3-none-any.whl/AESEncryptor_heureka_code/AESTextEncryptor.py | from base64 import b64decode
from base64 import b64encode
from Crypto import Random
from Crypto.Cipher import AES
from Crypto.Hash import SHA256
from AESEncryptor_heureka_code.Exceptions import WrongPassword, TextIsNotEncrypted, TextIsEncrypted
__author__ = "heureka-code"
__date__ = "11.03.2021"
__maintainer__ = "he... | PypiClean |
/DLRN-0.26.1.tar.gz/DLRN-0.26.1/dlrn/drivers/local.py |
# The LocalDriver provides the following:
#
# 1- A getpackages function based on finding all directories inside a specific
# git repo, where each directory represents a package
#
# 2- A getinfo function based on a single-distgit repo paradigm
import logging
import os
import sh
import shutil
from dlrn.db import Co... | PypiClean |
/CryptoLyzer-0.9.1-py3-none-any.whl/cryptolyzer/tls/ciphers.py |
import copy
import time
import six
import attr
from cryptoparser.tls.ciphersuite import TlsCipherSuite, SslCipherKind
from cryptoparser.tls.subprotocol import TlsCipherSuiteVector, TlsHandshakeType, TlsAlertDescription, SslMessageType
from cryptoparser.tls.version import TlsVersion, TlsProtocolVersion
from cryptoly... | PypiClean |
/Mocha-0.12.1.tar.gz/Mocha-0.12.1/mocha/skel/create/application/__init__.py |
import os
# ------------------------------------------------------------------------------
# A convenient utility to access data path from your application and config files
# The application directory
# /apps
APP_DIR = os.path.dirname(__file__)
# The root dir
# /
ROOT_DIR = os.path.dirname(APP_DIR)
# Data director... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/plugins/filter/_ConditionExpr.js | define("dojox/grid/enhanced/plugins/filter/_ConditionExpr",["dojo/_base/declare","dojo/_base/lang","dojo/_base/array"],function(_1,_2,_3){
var _4=_1("dojox.grid.enhanced.plugins.filter._ConditionExpr",null,{_name:"expr",applyRow:function(_5,_6){
throw new Error("_ConditionExpr.applyRow: unimplemented interface");
},toO... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/policy/impala.py | from collections import namedtuple
from typing import List, Dict, Any, Tuple
import torch
from ding.model import model_wrap
from ding.rl_utils import vtrace_data, vtrace_error_discrete_action, vtrace_error_continuous_action, get_train_sample
from ding.torch_utils import Adam, RMSprop, to_device
from ding.utils import... | PypiClean |
/Nevow-0.14.5.tar.gz/Nevow-0.14.5/nevow/compy.py | import warnings
from zope.interface import Interface, implements as zimplements, Attribute
from twisted.python.components import *
warnings.warn("compy.py module is deprecated, use zope.interface and twisted.python.components.registerAdapter directly.",
stacklevel=2)
# Backwards compat code
CannotAdap... | PypiClean |
/NeodroidAgent-0.4.8-py36-none-any.whl/neodroidagent/common/architectures/mlp_variants/actor_critic.py |
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 17/01/2020
"""
from typing import Sequence
import numpy
import torch
from torch import nn
from torch.distributions import Categorical, Normal
from draugr.torch_utilities import to_tensor
from neodroidagent.common.architectures.... | PypiClean |
/Durus-4.2.tar.gz/Durus-4.2/durus/serialize.py | from durus.persistent import call_if_persistent
from durus.utils import int4_to_str, str_to_int4, join_bytes, BytesIO
from durus.utils import Pickler, Unpickler, loads, dumps, as_bytes
from types import MethodType
from zlib import compress, decompress, error as zlib_error
import struct
import sys
WRITE_COMPRESSED_STAT... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/data/utils/preprocess.py |
import bisect
import contextlib
import warnings
from AnyQt.QtWidgets import (
QWidget, QVBoxLayout, QSpacerItem, QSizePolicy,
QStyle, QAction, QApplication,
QStylePainter, QStyleOptionFrame, QDockWidget,
QFocusFrame
)
from AnyQt.QtCore import (
Qt, QObject, QEvent, QSize, QModelIndex, QMimeData
)... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_naq.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 |
/Alpha-Mind-0.3.1.tar.gz/Alpha-Mind-0.3.1/alphamind/benchmarks/benchmarks.py | from alphamind.benchmarks.data.neutralize import benchmark_neutralize
from alphamind.benchmarks.data.neutralize import benchmark_neutralize_with_groups
from alphamind.benchmarks.data.standardize import benchmark_standardize
from alphamind.benchmarks.data.standardize import benchmark_standardize_with_group
from alphamin... | PypiClean |
/Beetle-S3Uploader-0.1.0.tar.gz/Beetle-S3Uploader-0.1.0/beetle_s3uploader/__init__.py | from boto.s3.connection import S3Connection, Key
from boto.exception import S3ResponseError
import mimetypes
import zlib
import os
class Uploader:
def __init__(self, gzip, headers, writer, bucket_name):
self.writer = writer
self.bucket_name = bucket_name
self.gzip = gzip
self.heade... | PypiClean |
/ExcelConverter-0.1.35.tar.gz/ExcelConverter-0.1.35/converter/excel_util.py | import collections
import string
import numpy as np
import logging
from decimal import Decimal
from collections import Iterable
from openpyxl.styles.numbers import *
ERR_NUM = '#NUM!'
ERR_NULL = '#NULL!'
ERR_NA = '#N/A'
ERR_VALUE = '#VALUE!'
ERR_REF = '#REF!'
XLFN = '_xlfn.'
ERR_NAME = '#NAME?'
ERR_DIV = '#DIV/0!'
ER... | PypiClean |
/K2SC-1.0.2.1-py3-none-any.whl/k2sc/detrender.py | from __future__ import division
import math as m
import numpy as np
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as pl
from scipy.optimize import fmin, fmin_powell, minimize
from numpy import (any, array, asarray, ones, ones_like, zeros, isfinite, inf, concatenate, arange, unique, delete,
... | PypiClean |
/ADISON-0.0.3.tar.gz/ADISON-0.0.1/twine/commands/upload.py | # Copyright 2013 Donald Stufft
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | PypiClean |
/MorningstarAutoTestingFramework-0.1.2.zip/MorningstarAutoTestingFramework-0.1.2/Src/UnConfirmCode/Demo2/Demo2.py | from pyxmldiff import xmldiff
DEFAULT_NAMESPACES = {"office": "urn:oasis:names:tc:opendocument:xmlns:office:1.0",}
# region xml_content
xml_content = """
<StockExchangeSecurities>
<MessageInfo>
<MessageCode>200</MessageCode>
<MessageDetail>Request data successfully</MessageDetail>
</Messag... | PypiClean |
/GrimReapersPie-0.1.tar.gz/GrimReapersPie-0.1/grimreaper.py | import logging
import os
import socket
__version__ = '0.1'
log = logging.getLogger(__name__)
class GrimReaper(object):
def __init__(self, socket_path='/tmp/GrimReaper.socket', process_timeout=30):
self._path = socket_path
self._process_timeout = process_timeout
self._connect()
def _... | PypiClean |
/NanoCap-1.0b12.tar.gz/NanoCap-1.0b12/nanocap/gui/widgets.py | import os,sys
from nanocap.core.util import *
from nanocap.core.globals import *
from nanocap.gui.settings import *
class HolderWidget(QtGui.QWidget):
'''
Simple a holder, no alignment etc. Will expand width to fill where added.
'''
def __init__(self,widgets=[],stack="H",align=QtCore.Qt.AlignHCenter,sp... | PypiClean |
/GrindStone-0.4.tar.gz/GrindStone-0.4/grindstone/lib.py | import json
import os
def key_of(d):
"""
Returns the key of a single element dict.
"""
if len(d) > 1 and not type(d) == dict():
raise ValueError('key_of(d) may only except single element dict')
else:
return keys_of(d)[0]
def keys_of(d):
"""
Returns the keys of a dict.
... | PypiClean |
/ExchangeRateApi-0.1.0.tar.gz/ExchangeRateApi-0.1.0/README.md | # Exchange Rate Api
ExchangeRateApi is an unofficial python library which allows to use the api functionality of [ExchangeRateApi](https://www.exchangerate-api.com/), it will make use of the
request library in order to make the requests from the ExchangeRateApi.
## Installation
Use the package manager [pip](https:/... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/dns/rdtypes/IN/PX.py |
import struct
import dns.exception
import dns.rdata
import dns.name
class PX(dns.rdata.Rdata):
"""PX record.
@ivar preference: the preference value
@type preference: int
@ivar map822: the map822 name
@type map822: dns.name.Name object
@ivar mapx400: the mapx400 name
@type mapx400: dns.... | PypiClean |
/MusicOnPolytopes-0.1.0-py3-none-any.whl/polytopes/polytopical_costs.py | import math
import numpy as np
from numba import jit
import polytopes.segmentation_helper as sh
import polytopes.chord_movement as mvt
import polytopes.pattern_manip as pm
import polytopes.pattern_factory as pf
import polytopes.triad_transformations as tt
import polytopes.model.errors as err
import polytopes.accelerat... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_lg.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 |
/OctoPrint-FirmwareCheck-2021.10.11.tar.gz/OctoPrint-FirmwareCheck-2021.10.11/octoprint_firmware_check/__init__.py | from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2018 The OctoPrint Project - Released under terms of the AGPLv3 License"
import textwrap
import flask
import octopr... | PypiClean |
/Adafruit-PlatformDetect-3.49.0.tar.gz/Adafruit-PlatformDetect-3.49.0/adafruit_platformdetect/board.py | import os
import re
try:
from typing import Optional
except ImportError:
pass
from adafruit_platformdetect.constants import boards, chips
__version__ = "3.49.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_PlatformDetect.git"
class Board:
"""Attempt to detect specific boards."""
... | PypiClean |
/GSAS-II-WONDER_win-1.0.1.tar.gz/GSAS-II-WONDER_win-1.0.1/GSAS-II-WONDER/fprime.py | from __future__ import division, print_function
import platform
import math
import wx
import numpy as np
import sys
import matplotlib as mpl
import GSASIIpath
GSASIIpath.SetVersionNumber("$Revision: 3765 $")
import GSASIIElem as G2elem
import GSASIIElemGUI as G2elemGUI
try:
wx.NewIdRef
wx.NewId = wx.NewIdRef
e... | PypiClean |
/Clorm-1.4.1-py3-none-any.whl/clorm/orm/symbols_facts.py |
import itertools
import sys
from typing import Dict, Iterable, Iterator, List, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, cast, overload
from collections import defaultdict
import clingo
import clingo.ast as clast
from .core import *
from .noclingo import SymbolMode, Function, Number, String
from .factbase... | PypiClean |
/ForIocCrawler-1.2.1.tar.gz/ForIocCrawler-1.2.1/crawler/crawler.py |
## --------------------------------------------------------------------------------------------------------------------
import logging # for log
import os # for file handling, exit
import sys # for exit
import multiprocessing # for multiprocessing purpose
import re # for... | PypiClean |
/MD2K_Cerebral_Cortex-3.0.0-py3-none-any.whl/cerebralcortex/core/data_manager/time_series/influxdb_handler.py |
import json
import traceback
from datetime import datetime
from influxdb import InfluxDBClient
from cerebralcortex.core.datatypes.datastream import DataStream
class InfluxdbHandler():
###################################################################
################## STORE DATA METHODS ################... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/models/lookups.py | import itertools
import math
from copy import copy
from djmodels.core.exceptions import EmptyResultSet
from djmodels.db.models.expressions import Func, Value
from djmodels.db.models.fields import DateTimeField, Field, IntegerField
from djmodels.db.models.query_utils import RegisterLookupMixin
from djmodels.utils.datas... | PypiClean |
/ANBUtils-1.6.4.tar.gz/ANBUtils-1.6.4/README.md | # ANBUtils
ANBUtils is a Python package that provides various utility functions for common tasks in data analysis and database operations. It includes functions for working with MongoDB, sending messages via DingTalk, and handling date and time operations.
## Stable Version
- Version: 1.6.0
- Release Date: June 13,... | PypiClean |
/DerPyBooruPhi-0.10.3.tar.gz/DerPyBooruPhi-0.10.3/derpibooru/galleries.py |
# Copyright (c) 2014, Joshua Stone
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the... | PypiClean |
/EnergyFlow-1.3.2.tar.gz/EnergyFlow-1.3.2/energyflow/utils/graph_utils.py |
# _____ _____ _____ _ _ _ _ _______ _____ _ _____
# / ____| __ \ /\ | __ \| | | | | | | |__ __|_ _| | / ____|
# | | __| |__) | / \ | |__) | |__| | | | | | | | | | | | | (___
# | | |_ | _ / / /\ \ | ___/| __ | | | | | | | ... | PypiClean |
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/velocity/velocity.js | CodeMirror.defineMode("velocity", function(config) {
function parseWords(str) {
var obj = {}, words = str.split(" ");
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
return obj;
}
var indentUnit = config.indentUnit;
var keywords = parseWords("#end #else #break #stop... | PypiClean |
/Hummingbird-XFEL-1.3b0.tar.gz/Hummingbird-XFEL-1.3b0/hummingbird/backend/swissfel.py | import glob
import os
import time
import h5py
import numpy as np
import sfdata
from hummingbird import ipc
from . import EventTranslator, Worker, add_record, ureg
class SwissFELTranslator(object):
"""Translate between SwissFEL h5 files and Hummingbird events"""
def __init__(self, state):
self.libra... | PypiClean |
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/5133.71af5a54.chunk.js | "use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[5133],{15133:function(e,t,n){n.r(t),n.d(t,{conf:function(){return r},language:function(){return a}});var r={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{ope... | PypiClean |
/ioddcomcheckergui-1.6.8-py3-none-any.whl/siogeen/tools/gui/IoddComChecker.py | import webbrowser
import os
from threading import Thread
os.environ["KIVY_NO_CONSOLELOG"] = "1"
from kivymd.app import MDApp as App
from kivymd.uix.button import MDFillRoundFlatButton as Button
#from kivymd.uix.tooltip.tooltip import MDTooltip
from kivymd.uix.button import MDFloatingActionButtonSpeedDial as Floating... | PypiClean |
/Neighborhoodize-0.9.6.tar.gz/Neighborhoodize-0.9.6/LICENSE.md | The MIT License (MIT)
Copyright (c) 2015 Brian Lange
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publ... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_en-ag.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 |
/MyProxyClient-2.1.0-py3-none-any.whl/MyProxyClient-2.1.0.dist-info/DESCRIPTION.rst | Software adapted from myproxy_logon. - For myproxy_logon see Access Grid
Toolkit Public License (AGTPL)
This product includes software developed by and/or derived from the Access
Grid Project (http://www.accessgrid.org) to which the U.S. Government retains
certain rights.
Description-Content-Type: UNKNOWN
Description... | PypiClean |
/ImageMKS-0.1.0.tar.gz/ImageMKS-0.1.0/imagemks/structures/shapes.py | import numpy as np
from math import floor, ceil
from .grids import divergent
def circle(r, size=None, centered=True, dtype=np.bool_):
'''
Makes a circle with specified dtype. If bool or int, can be used as a mask.
Parameters
----------
r : numeric
The radius of the circle.
size : tupl... | PypiClean |
/Dooders-0.0.3.tar.gz/Dooders-0.0.3/dooders/sdk/core/assemble.py |
import importlib
from typing import List
from dooders.sdk.config import Config
from dooders.sdk.core import (Action, Condition, Policy, Settings, Strategy,
Surface)
from dooders.sdk.models.environment import Environment
from dooders.sdk.simulation import Simulation
#! need to simplify s... | PypiClean |
/Fxlifestyle%20Course%20Free%20Download-1.tar.gz/Fxlifestyle Course Free Download-1/README.md | <h1></h1>
<p>
<p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://cab2cbhjtozy8x12adw8nk0z6d.hop.clickbank.net/?tid=py" imageanchor="1" rel="nofollow" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img border="0" data-original-height="66" data-original-width="342" src=... | PypiClean |
/Langton-project-0.3.tar.gz/Langton-project-0.3/Langton-project_interface/interface.py | import tkinter as tk
from . import main
from . import random_interface as random
class Application():
""" Creation of the interface """
def __init__(self):
self.root = tk.Tk()
self.root.title("langton's ants")
self.root.geometry("220x435")
frame1 = tk.LabelFrame(se... | PypiClean |
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_categories_id/delete.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from firefly_iii_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/changelog/changelog_2.0_pre_release.rst |
.. _changelog_2.0_pre:
*************************
2.0 Pre-release Changelog
*************************
.. _2.0r:
Release candidates
==================
2.0.0rc9
--------
- Fixed a bug where exporting TextGrids would fail if any were empty :github_issue:`459`
2.0.0rc8
--------
- Fixed a bug where G2P output was not... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/cvdp/cvdp_wrapper.py | import logging
import os
import re
import shutil
import subprocess
from esmvaltool.diag_scripts.shared import (group_metadata, run_diagnostic)
from esmvaltool.diag_scripts.shared import ProvenanceLogger
logger = logging.getLogger(os.path.basename(__file__))
class DiagnosticError(Exception):
"""Error in diagnost... | PypiClean |
/Flask-RateLimiter-0.2.0.tar.gz/Flask-RateLimiter-0.2.0/flask_ratelimiter/__init__.py | from __future__ import absolute_import
from flask import current_app, request, g
from functools import update_wrapper
from six import iteritems
# Version information
from .version import __version__
class RateLimitInfo(object):
"""Store information about rate limiting.
Can be saved in 'g' object for furth... | PypiClean |
/HibiAPI-0.8.0-py3-none-any.whl/hibiapi/utils/decorators/__init__.py | from __future__ import annotations
import asyncio
from asyncio import sleep as async_sleep
from functools import partial, wraps
from inspect import iscoroutinefunction
from time import sleep as sync_sleep
from typing import (
Awaitable,
Callable,
Iterable,
Optional,
Protocol,
Tuple,
Type,
... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/core/bbox/assigners/atss_assigner.py | import warnings
import torch
from ..builder import BBOX_ASSIGNERS
from ..iou_calculators import build_iou_calculator
from .assign_result import AssignResult
from .base_assigner import BaseAssigner
@BBOX_ASSIGNERS.register_module()
class ATSSAssigner(BaseAssigner):
"""Assign a corresponding gt bbox or background... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/cldr/nls/da/gregorian.js | ({"dateFormatItem-yM":"M-yyyy","field-dayperiod":"dagtid","dateFormatItem-yQ":"Q yyyy","field-minute":"minut","eraNames":["f.Kr.","e.Kr."],"dateFormatItem-MMMEd":"E d MMM","field-weekday":"ugedag","dateFormatItem-hms":"h.mm.ss a","dateFormatItem-yQQQ":"QQQ y","dateFormatItem-MMdd":"dd/MM","days-standAlone-wide":["sønda... | PypiClean |
/BuckFit-0.0.1.tar.gz/BuckFit-0.0.1/buckfit/collate_structures.py | from pymatgen.io.vasp.outputs import Vasprun
from buckfit.lammps_data import LammpsData
import numpy as np
def collate_structural_data(params, structs, supercell=None):
"""
Creates a list of directory paths for the vasprun.xml files and passes them and the params data to data_from_vasprun to collect the lammps... | PypiClean |
/DracoPy-0.0.10.tar.gz/DracoPy-0.0.10/draco/docs/spec/prediction.multi.parallelogram.decoder.md | ## Multi Parallelogram Prediction Decoder
### MeshPredictionSchemeConstrainedMultiParallelogramDecoder_ComputeOriginalValues()
~~~~~
void MeshPredictionSchemeConstrainedMultiParallelogramDecoder_ComputeOriginalValues(
num_values) {
signed_values = seq_int_att_dec_symbols_to_signed_ints[curr_att_dec][curr_att]... | PypiClean |
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libreco/graph/neighbor_walk.py | import torch
from .message import ItemMessage, ItemMessageDGL, UserMessage
from ..sampling import bipartite_neighbors, bipartite_neighbors_with_weights
class NeighborWalker:
def __init__(self, model, data_info):
self.paradigm = model.paradigm
self.num_layers = model.num_layers
self.num_ne... | PypiClean |
/Nuphy-0.2.17.tar.gz/Nuphy-0.2.17/nuphy/helps.py |
def HELP_REACT():
print("""
help for reactions:
REACTIONS:========================================
usage: nuphy -i incoming,target -o outgoing -e energyMeV -a outgoingAngle
nuphy react -i h2,c12 -o h1 -e 19 -a 11
nuphy react -i h2,h1 -o he3
# excitation energy of 1.23 MeV:
nuphy react ... | PypiClean |
/Hector_Observations_Pipeline-1.4-py3-none-any.whl/hop/hexabundle_allocation/general_operations/geometry_intersections/segment_with_segment.py | def intersection_slope_segment_and_vertical_segment(vertical_segment, slope_segment):
# calculating intersection point of vertical and slope segments
line = slope_segment.create_line_equation()
intersection_point_y = line.calculate_y_from_x(vertical_segment.start_point[0])
intersection_point = [vertica... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/hrnet/fcos_hrnetv2p_w32_gn-head_4x4_1x_coco.py | _base_ = '../fcos/fcos_r50_caffe_fpn_gn-head_4x4_1x_coco.py'
model = dict(
backbone=dict(
_delete_=True,
type='HRNet',
extra=dict(
stage1=dict(
num_modules=1,
num_branches=1,
block='BOTTLENECK',
num_blocks=(4, ),
... | PypiClean |
/HalRing-2.0.4-py3-none-any.whl/halring/rabbitmq_lib/halring_rabbitmq.py |
import pika
import json
from loguru import logger
class MQClient(object):
def __init__(self, host, user, password, virtual_host, port=5672):
"""
:param host: rabbitMQ服务地址
:param user: rabbitMQ用户
:param password: rabbitMQ密码
:param virtual_host: rabbitMQ对应的虚拟主机,aqc使用的为aqc
... | PypiClean |
/Eskapade_Core-1.0.0-py3-none-any.whl/escore/core_ops/links/event_looper.py | import copy
import sys
from escore import DataStore
from escore import Link
from escore import StatusCode
from escore import process_manager
class EventLooper(Link):
"""Event looper algorithm processes input lines and reprints or stores them.
Input lines are taken from sys.stdin, processed, and printed on s... | PypiClean |
/CellStar-2.0.3-py3-none-any.whl/cellstar/core/parallel/snake_grow.py | import ctypes
from copy import copy
from multiprocessing import Pool, Array, Manager
import numpy as np
from cellstar.core.image_repo import ImageRepo
from cellstar.core.polar_transform import PolarTransform
from cellstar.core.snake import Snake
from cellstar.parameter_fitting.pf_snake import PFSnake
def conv_singl... | PypiClean |
/Ming-0.13.0-py3-none-any.whl/ming/odm/unit_of_work.py | from ming.utils import indent
from .base import state, ObjectState
class UnitOfWork:
def __init__(self, session):
self.session = session
self._objects = {}
def __iter__(self):
return iter(self._objects.values())
def save(self, obj):
self._objects[id(obj)] = obj
@prop... | PypiClean |
/NeodroidAgent-0.4.8-py36-none-any.whl/neodroidagent/agents/numpy_agents/model_free/non_contextual/ucb1_policy.py | import argparse
from neodroid.environments.droid_environment import SingleUnityEnvironment
from neodroid.utilities import Displayable
from neodroidagent.agents.numpy_agents.numpy_agent import NumpyAgent
from neodroidagent.utilities.exploration.sampling.ucb1 import UCB1
__author__ = "Christian Heider Nielsen"
def co... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/ext-searchbox.js | ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"], function(require, exports, module) {
"use strict";
var dom = require("../lib/dom");
var lang = require("../lib/lang");
var event = require("../lib/event");
var searchbo... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/frontend/static/cubane/ishop/frontend/js/product.js | (function (globals){
"use strict";
/*
* Product image gallery
*/
var initProductImages = function initProductImages() {
// product page?
if ($('form.add-to-basket, .product').length === 0)
return;
// clicking on thumbnail should make bigger version visible
$(document).on('click', '.product-... | PypiClean |
/NaverService-0.0.1.tar.gz/NaverService-0.0.1/pkgs/naverlib/req.py | # print(f"{'@'*50} {__name__}")
# ============================================================ Python.
import json
import os
import inspect
import pprint
pp = pprint.PrettyPrinter(indent=2)
# ============================================================ External-Library.
import requests
# ===============================... | PypiClean |
/AircraftDR-0.1-py3-none-any.whl/ADR/parameters.py |
plane_parameters = {
"plane_type": "biplane",
"wing1_x": 0,
"wing1_y": 0,
"wing1_z": 0,
"wing1_clmax_airfoil": 2.2,
"wing1_airfoil1_name": "s1223",
"wing1_airfoil2_name": "s1223",
"wing1_airfoil3_name": "s1223",
"wing1_span1": 0.8605,
"wing1_span2": 0.3895,
"wing1_chord1": 0... | PypiClean |
/Mage2Gen-2.3.3.tar.gz/Mage2Gen-2.3.3/mage2gen/snippets/widget.py | import os
from .. import Module, Phpclass, Phpmethod, Xmlnode, StaticFile, Snippet, SnippetParam
from ..utils import upperfirst
class WidgetSnippet(Snippet):
description = """
"""
TYPE_CHOISES = [
('text', 'Text'),
('select', 'Select'),
('multiselect', 'Multiselect'),
]
def add(self, name, field, fie... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/command_line/transcribe.py | from __future__ import annotations
from pathlib import Path
import rich_click as click
from montreal_forced_aligner import config
from montreal_forced_aligner.command_line.utils import (
common_options,
validate_acoustic_model,
validate_dictionary,
validate_language_model,
)
from montreal_forced_alig... | PypiClean |
/Aoipy-0.15.0-py3-none-any.whl/CharmCord/Classes/CharmCord.py | import discord
from discord.ext import commands
from CharmCord.tools import FunctionHandler
from .CommandHandler import load_commands
import asyncio
global TotalFuncs
global bots
global all_commands
global all_vars
class CharmCord:
# Global variables
global bots
global all_commands
global all_vars
... | PypiClean |
/Finance-Seleya-1.2.3.tar.gz/Finance-Seleya-1.2.3/seleya/data/DataAPI/sqlatom/fetch_engine.py | import importlib, pdb, itertools
import pandas as pd
import sqlalchemy.orm as orm
from sqlalchemy import create_engine, select, and_
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.engine import reflection
from seleya.utilities.exceptions import SQLException
class SQLEngine(object):
def __init__(... | PypiClean |
/BindingGP-0.0.36.tar.gz/BindingGP-0.0.36/bgp/flow.py | import copy
import operator
import os
import time
from deap.base import Fitness
from deap.tools import HallOfFame, Logbook
from mgetool import newclass
from mgetool.exports import Store
from mgetool.packbox import Toolbox
from numpy import random
from sklearn.metrics import r2_score
from bgp.base import CalculatePre... | PypiClean |
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/README.md | <div align=center>
<img width="750px" src="./Imgs/Logo1.png">




{if(!isHTML)return;HEADER+="h1{font-size:2em}h2{font-size:1.5em;}h3{font-size:1.17em;}"+"h4{font-size:1em}h5{font-size:.83em}h6{font-size:.67em}";var _0={};ie7HTML=new(Fix.specialize({init:DUMMY,addFix:function(){this.fixes.push(arguments)},apply:function(){for(var i=0;i<this.fixes.l... | PypiClean |
/NanoCap-1.0b12.tar.gz/NanoCap-1.0b12/nanocap/structures/cap.py | from nanocap.core.globals import *
import os,sys,math,copy,random,time
import numpy
import nanocap.core.points as points
from nanocap.core.util import *
from nanocap.clib import clib_interface
from nanocap.structures.structure import Structure
clib = clib_interface.clib
class Cap(Structure):
def __init__(self,sec... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/data/ItemExplorer.js.uncompressed.js | define("dojox/data/ItemExplorer", ["dijit","dojo","dojox","dojo/require!dijit/Tree,dijit/Dialog,dijit/Menu,dijit/form/ValidationTextBox,dijit/form/Textarea,dijit/form/Button,dijit/form/RadioButton,dijit/form/FilteringSelect"], function(dijit,dojo,dojox){
dojo.provide("dojox.data.ItemExplorer");
dojo.require("dijit.Tree... | PypiClean |
/JSONManipulator-3.1.1.tar.gz/JSONManipulator-3.1.1/README.rst | JSONManipulator
===============
.. image:: https://travis-ci.com/pandrey2003/JSONManipulator.svg?branch=master
:target: https://travis-ci.com/pandrey2003/JSONManipulator
.. image:: https://coveralls.io/repos/github/pandrey2003/JSONManipulator/badge.svg?branch=master
:target: https://coveralls.io/github/pandrey2... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/backends/postgresql/operations.py | from psycopg2.extras import Inet
from djmodels.conf import settings
from djmodels.db import NotSupportedError
from djmodels.db.backends.base.operations import BaseDatabaseOperations
class DatabaseOperations(BaseDatabaseOperations):
cast_char_field_without_max_length = 'varchar'
explain_prefix = 'EXPLAIN'
... | PypiClean |
/MANAclust-0.7.2.tar.gz/MANAclust-0.7.2/mana_clust/mana_clust.py | import argparse
import sys
import numpy as np
import seaborn as sns
from matplotlib import pyplot as plt
from sklearn.cluster import AffinityPropagation as ap
import matplotlib.cm as cm
import umap
import random
import networkx as nx
import community
import pandas as pd
from sklearn.metrics import pairwise
from scipy i... | PypiClean |
/EasyFrames-0.1.7.tar.gz/EasyFrames-0.1.7/easyframes/easyframes.py | from numbers import Number
from collections import Iterable
import re
import pandas as pd
from pandas.io.stata import StataReader
import numpy as np
pd.set_option('expand_frame_repr', False)
class hhkit(object):
def __init__(self, *args, **kwargs):
# if input data frame is specified as a stata data file or text ... | PypiClean |
/ApeMan-0.1.1.tar.gz/ApeMan-0.1.1/docs/36/apeman.rst | ====================
ApeMan in Python 3.6
====================
.. automodule :: apeman.__36__
:members:
:member-order: bysource
:undoc-members:
:private-members:
:special-members:
.. note::
I recently made a modification the the :meth:`__call__` method for the 3.6 version that should probably... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Simulator/Channels/all.py |
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocols |
#+-... | PypiClean |
/DevTool-0.0.2-py3-none-any.whl/devtool/devTool.py | import datetime
import importlib
import os
import yaml
from termcolor import colored
from devtool import (__current_platform__, do_nothing, infoDecorate, logit,
logit_logger, setWrap)
from devtool.utils.common import (match_datetime, validate_date,
validate_datet... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/shadycss/src/apply-shim.js | * The apply shim simulates the behavior of `@apply` proposed at
* https://tabatkins.github.io/specs/css-apply-rule/.
* The approach is to convert a property like this:
*
* --foo: {color: red; background: blue;}
*
* to this:
*
* --foo_-_color: red;
* --foo_-_background: blue;
*
* Then where `@apply ... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js | MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXNonUnicode-bold-italic"],{57500:[775,235,776,40,765],57501:[775,235,759,44,779],57502:[775,235,658,44,771],57523:[703,205,556,-188,517],57846:[688,13,500,89,578],57847:[688,0,500,204,505],57848:[688,0,500,20,581],57849:[688,13,500,32,586],57850:[688,0... | PypiClean |
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/sphinx-apidoc/index.rst | The NESTML modeling language
============================
.. figure:: https://raw.githubusercontent.com/nest/nestml/master/doc/fig/neuron_illustration.svg
:width: 324px
:height: 307px
:align: right
:target: nestml_language/neurons_in_nestml.html
.. figure:: https://raw.githubusercontent.com/nest/nestml/ma... | PypiClean |
/DjangoRequestLogger-0.2.0.tar.gz/DjangoRequestLogger-0.2.0/README.txt | =====================
Django Request Logger
=====================
What is it?
===========
This Django app adds extra fields to log records emitted
by the standard Python logging. Currently these include:
* username - Username of the currently logged in Django user, if any. If no
user is logged in the value is "_" ... | PypiClean |
/NICpolpy-0.1.5-py3-none-any.whl/nicpolpy/ysfitsutilpy4nicpolpy/combutil.py | from pathlib import Path
from warnings import warn
import ccdproc
import numpy as np
import pandas as pd
from astropy.io import fits
from astropy.nddata import CCDData, StdDevUncertainty
from astropy.table import Table
from astropy.time import Time
from ccdproc import combine
from .filemgmt import load_if_exists, mak... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/auth/tokens.py | from datetime import date
from django.conf import settings
from django.utils.http import int_to_base36, base36_to_int
from django.utils.crypto import constant_time_compare, salted_hmac
from django.utils import six
class PasswordResetTokenGenerator(object):
"""
Strategy object used to generate and check tokens... | PypiClean |
/Dowell%20Mail-1.0.2.tar.gz/Dowell Mail-1.0.2/docs/maillib.rst | maillib package
===============
Subpackages
-----------
.. toctree::
:maxdepth: 4
maillib.migrations
maillib.tests
Submodules
----------
maillib.admin module
--------------------
.. automodule:: maillib.admin
:members:
:undoc-members:
:show-inheritance:
maillib.apps module
-------------------
... | PypiClean |
/Aksarantara-1.1.0-py3-none-any.whl/aksarantara/post_options.py | import post_processing as PP
import Map as GM
def ApplyScriptDefaults(Strng, Source, Target, PostOptions=[]):
Options = []
if Target in GM.IndicScripts:
Options += []
if Target == "Telugu":
Options += [
"NasalToAnusvara",
"MToAnusvara",
"TeluguRemoveNu... | PypiClean |
/MatchZoo-2.2.0.tar.gz/MatchZoo-2.2.0/matchzoo/preprocessors/diin_preprocessor.py |
from tqdm import tqdm
import pandas as pd
from matchzoo.engine.base_preprocessor import BasePreprocessor
from matchzoo import DataPack
from .build_vocab_unit import build_vocab_unit
from .chain_transform import chain_transform
from . import units
tqdm.pandas()
class DIINPreprocessor(BasePreprocessor):
"""DIIN ... | PypiClean |
/HarmoniaCosmo-0.1.2-py3-none-any.whl/harmonia/reader/likelihoods.py | import logging
import warnings
# pylint: disable=no-name-in-module
import numpy as np
from scipy.special import loggamma
from harmonia.utils import (
PositiveDefinitenessWarning,
is_positive_definite,
mat_logdet,
)
# Probability distributions
# -----------------------------------------------------------... | PypiClean |
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/docs/source/wrappers.rst | ==============================
Functionality through Wrappers
==============================
.. role:: python(code)
:language: python
In order to comfortably provide additional functionality to environments without changing the interface,
we can use so-called wrappers.
They execute environment resets and steps in... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/doc/extdev/envapi.rst | Build environment API
=====================
.. module:: sphinx.environment
.. class:: BuildEnvironment
**Attributes**
.. attribute:: app
Reference to the :class:`.Sphinx` (application) object.
.. attribute:: config
Reference to the :class:`.Config` object.
.. attribute:: project
T... | PypiClean |
/MNN_FMA-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl/MNN/tools/mnn_fb/AsString.py |
# namespace: MNN
import flatbuffers
class AsString(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsAsString(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = AsString()
x.Init(buf, n + offset)
return x
# AsString
d... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.