id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/EasyDeL-0.0.29-py3-none-any.whl/EasyDel/trainer/fsdp_train.py | import dataclasses
import functools
import os
import time
import typing
import IPython.display
from fjutils.easylm import blockwise_cross_entropy, cross_entropy_loss_and_accuracy
import wandb
from datasets import Dataset
from EasyDel.trainer.config import TrainArguments
import jax
import flax
import optax
from trans... | PypiClean |
/DEODR-0.2.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl/deodr/opengl/pyrender.py | from typing import Optional, Tuple
import numpy as np
import pyrender
import trimesh
from deodr.differentiable_renderer import Camera, Scene3D
from deodr.triangulated_mesh import ColoredTriMesh
def arcsinc(x: float) -> float:
return np.arcsin(x) / x if abs(x) > 1e-6 else 1
def min_rotation(vec1: np.ndarray, v... | PypiClean |
/HttpMax-1.2.tar.gz/HttpMax-1.2/README.md | # HttpMax
**HttpMax** is a simple, asynchronous, fast and beautiful HTTP library.
```python
import HttpMax
import asyncio
async def main():
r = await HttpMax.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
r.status_code
>>>200
r.headers['content-type']
>>>'application/json;... | PypiClean |
/AccessControl-5.5.tar.gz/AccessControl-5.5/docs/requestmethod.rst | Request method decorators
=========================
Using request method decorators, you can limit functions or methods to only
be callable when the HTTP request was made using a particular method.
To limit access to a function or method to POST requests, use the
`requestmethod` decorator factory::
>>> from Access... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/nls/zh/colors.js | ({"lightsteelblue":"浅钢蓝色","orangered":"橙红色","midnightblue":"深蓝色","cadetblue":"灰蓝色","seashell":"海贝色","slategrey":"灰石色","coral":"珊瑚色","darkturquoise":"深粉蓝","antiquewhite":"古董白","mediumspringgreen":"间春绿色","salmon":"橙红","darkgrey":"深灰色","ivory":"象牙色","greenyellow":"绿黄色","mistyrose":"浅玫瑰色","lightsalmon":"淡橙色","silver":"银白色"... | PypiClean |
/IRT-AI-0.0.1a0.tar.gz/IRT-AI-0.0.1a0/src/tiai/mediapip/hand.py | import cv2
import mediapipe as mp
def read_infrared_data(file):
lines = open(file, "r", encoding='utf-8')
data = []
for line in lines:
vs = line.strip().split(",")
row = [float(v) for v in vs]
data.append(row)
return data
def find_temp(csv_matrix,image_x,image_y,image_width,ima... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/string/sprintf.js | define("dojox/string/sprintf",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/sniff","./tokenize"],function(_1,_2,_3,_4){
var _5=_2.getObject("string",true,dojox);
_5.sprintf=function(_6,_7){
for(var _8=[],i=1;i<arguments.length;i++){
_8.push(arguments[i]);
}
var _9=new _5.sprintf.Formatter(_6);
return _9.format.app... | PypiClean |
/Flask-AdminLTE2-1.0.0.tar.gz/Flask-AdminLTE2-1.0.0/flask_adminlte2/static/plugins/jQuery/core.js |
define( [
"./var/arr",
"./var/document",
"./var/getProto",
"./var/slice",
"./var/concat",
"./var/push",
"./var/indexOf",
"./var/class2type",
"./var/toString",
"./var/hasOwn",
"./var/fnToString",
"./var/ObjectFunctionString",
"./var/support",
"./var/isFunction",
"./var/isWindow",
"./core/DOMEval",
"./c... | PypiClean |
/FairDynamicRec-0.0.123-py3-none-any.whl/fair_dynamic_rec/core/rankers/ea_linear_upper_confidence_bound.py | import numpy as np
from .ea_linear_submodular_bandit import EALSB
class EALinUCB(EALSB):
def __init__(self, config, dataObj, parameters=None):
super(EALinUCB, self).__init__(config, dataObj, parameters)
self.dim = self.dataObj.feature_data['train_item_latent_features'].shape[1]
# parameter... | PypiClean |
/Oasys-Canvas-Core-1.0.7.tar.gz/Oasys-Canvas-Core-1.0.7/orangecanvas/scheme/readwrite.py | import sys
import warnings
import base64
import itertools
from xml.etree.ElementTree import TreeBuilder, Element, ElementTree, parse
from collections import defaultdict, namedtuple
from itertools import chain, count
import pickle
import json
import pprint
import ast
from ast import literal_eval
import logging
imp... | PypiClean |
/NetComp-0.2.3.tar.gz/NetComp-0.2.3/netcomp/distance/exact.py | import numpy as np
from numpy import linalg as la
import networkx as nx
from netcomp.linalg import (renormalized_res_mat,resistance_matrix,
fast_bp,laplacian_matrix,normalized_laplacian_eig,
_flat,_pad,_eigs)
from netcomp.distance import get_features,aggregate_fe... | PypiClean |
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/fonts/views.py |
from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist, PermissionDenied, ValidationError
from django.shortcuts import redirect
from django.utils.decorators import method_decorator
from django.utils.translation import gettext as _
from django.views.generic impor... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/themes/Tom.js.uncompressed.js | define("dojox/charting/themes/Tom", ["../Theme", "dojox/gfx/gradutils", "./common"], function(Theme, gradutils, themes){
// created by Tom Trenka
var g = Theme.generateGradient,
defaultFill = {type: "linear", space: "shape", x1: 0, y1: 0, x2: 0, y2: 100};
themes.Tom = new Theme({
chart: {
fill: "#18... | PypiClean |
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/addons/models.py |
from appconf import AppConf
from django.db import Error as DjangoDatabaseError
from django.db import models
from django.db.models import Q
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.urls import reverse
from django.utils.functional import cached_property
from weblat... | PypiClean |
/GSAS-II-WONDER_osx-1.0.4.tar.gz/GSAS-II-WONDER_osx-1.0.4/GSAS-II-WONDER/CifFile/YappsStarParser_1_1.py | from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from .StarFile import StarBlock,StarFile,StarList,StarDict
from io import StringIO
# An alternative specification for the Cif Parser, based on Yapps2
# by Amit Patel (htt... | PypiClean |
/MLTSA-0.0.7.tar.gz/MLTSA-0.0.7/README.rst |
*****
MLTSA
*****
Info
#####
This is a Python module to apply the MLTSA approach for relevant CV identification on Molecular Dynamics data using both Sklearn and TensorFlow modules.
> examples : Contains files with the easy to call 1D/2D/MD examples to generate data or play around with it as tests for the approach... | PypiClean |
/CLOVER_GUI-1.0.0a1-py3-none-any.whl/clover_gui/details/storage.py |
import tkinter as tk
from typing import Callable
import ttkbootstrap as ttk
from clover.impact.finance import COST, COST_DECREASE, OM
from clover.impact.ghgs import GHGS, GHG_DECREASE, OM_GHGS
from clover.simulation.storage_utils import Battery
from ttkbootstrap.constants import *
from ttkbootstrap.scrolled import... | PypiClean |
/CryptoDigital-0.0.2.tar.gz/CryptoDigital-0.0.2/README.md | # Example Package
[GetHub Project](https://github.com/DrSudoSaeed/)
This is a library to get the online price of digital currencies
This library is very easy and convenient to use !
**Follow the steps below to use:**
```
from CryptoDigital import *
# Use the following function to get the dollar price:
print(dola... | PypiClean |
/ADDPIO-1.0.3b1.tar.gz/ADDPIO-1.0.3b1/README.rst | ADDPIO project
==================
This project allows the Raspberry Pi* to access the sensors (accelerometer, gyroscope, ...)
and other IO of an Android* device, similar to the GPIO library. There is a corresponding
Android app (ADDPIO on the Google Play Store) to run on the Android device(s). The Raspberry
Pi and al... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/aiohttp_socks/proto.py | import asyncio
import socket
import struct
from .errors import (
SocksConnectionError, InvalidServerReply, SocksError,
InvalidServerVersion, NoAcceptableAuthMethods,
LoginAuthenticationFailed, UnknownAuthMethod
)
RSV = NULL = 0x00
SOCKS_VER4 = 0x04
SOCKS_VER5 = 0x05
SOCKS_CMD_CONNECT = 0x01
SOCKS_CMD_BIN... | PypiClean |
/CoolAMQP-1.2.15.tar.gz/CoolAMQP-1.2.15/coolamqp/attaches/declarer.py | from __future__ import print_function, absolute_import, division
import collections
import logging
from concurrent.futures import Future
from coolamqp.attaches.channeler import Channeler, ST_ONLINE
from coolamqp.attaches.utils import Synchronized
from coolamqp.exceptions import AMQPError, ConnectionDead
from coolamqp... | PypiClean |
/Flask_RESTful_DRY-0.3.1-py3-none-any.whl/flask_dry/api/allow.py |
r'''Allow/deny objects.
All of these objects are intended to be immutable.
'''
__all__ = ('Allow', 'Deny')
class base:
def __init__(self, *names):
self._names = frozenset(names)
def __repr__(self):
return "<{}: {}>".format(self.__class__.__name__, sorted(self._names))
def intersection... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","pt-br",{euro:"Euro",lsquo:"Aspas simples esquerda",rsquo:"Aspas simples direita",ldquo:"Aspas duplas esquerda",rdquo:"Aspas duplas dir... | PypiClean |
/AirStrip-2.0.2.tar.gz/AirStrip-2.0.2/airstrip/air.py | from puke import *
import json
import os
import re
from distutils import version
from verlib import NormalizedVersion
from distutils.version import StrictVersion, LooseVersion
AIRSTRIP_ROOT = os.path.dirname(os.path.realpath(__file__))
NORMALIZE_VERSION = re.compile(r'([^\d]*)')
# System-wide yawns path
AIRSTRIP_YAWN... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/numbers/numbertheory.py | import mpmath
import sympy
from mathics.builtin.base import Builtin, SympyFunction
from mathics.core.atoms import Integer, Integer0, Integer10, Rational, Real
from mathics.core.attributes import (
A_LISTABLE,
A_NUMERIC_FUNCTION,
A_ORDERLESS,
A_PROTECTED,
A_READ_PROTECTED,
)
from mathics.core.conver... | PypiClean |
/DobbyStockSimulation-0.1.1.tar.gz/DobbyStockSimulation-0.1.1/.history/main_package/Stock_main_20221223162516.py | import numpy as np
import random
class SizeError(Exception):
def __init__(self):
self.message = "Error: size must be a positive integer"
class Stock(object):
def __init__(self):
try:
size = int(input("How many round do you want to play with?"))
if... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/plugins/standard/TkinterPlugin.py | """ Details see below in class definition.
"""
import os
import sys
from nuitka import Options
from nuitka.plugins.PluginBase import NuitkaPluginBase
from nuitka.utils.FileOperations import listDllFilesFromDirectory, relpath
from nuitka.utils.Utils import isWin32Windows
def _isTkInterModule(module):
full_name = ... | PypiClean |
/Bootcampspot-python-0.0.3.tar.gz/Bootcampspot-python-0.0.3/bcs/bootcampspot.py | import json
import os
from datetime import datetime
from typing import Dict, List
import requests
from io import StringIO
from .errors import CourseError, EnrollmentError
class Bootcampspot:
def __init__(self, email: str, password: str):
'''Get Auth and call `/me` endpoint for course info.'''
se... | PypiClean |
/NavAdd-0.1.1.tar.gz/NavAdd-0.1.1/navadd/navadd.py | from StringIO import StringIO
from trac import mimeview
from trac import resource
from trac import wiki
from trac.core import *
from trac.web.api import IRequestFilter
from trac.web.chrome import INavigationContributor
from trac.util import Markup
from genshi.builder import tag, Element
class NavAdd(Component):
... | PypiClean |
/mysmile-0.7.2.tar.gz/mysmile-0.7.2/apps/preferences/views.py | from django.shortcuts import render
from django.http import HttpResponseNotFound
from django.template import RequestContext, loader, Template, TemplateDoesNotExist
from django.views.decorators.csrf import requires_csrf_token
import logging
logger = logging.getLogger(__name__) # Get an instance of a logger
from apps.... | PypiClean |
/6D657461666C6F77-0.0.17.tar.gz/6D657461666C6F77-0.0.17/metaflow/metaflow_version.py | # This file is imported from https://github.com/aebrahim/python-git-version
from __future__ import print_function
from subprocess import check_output, CalledProcessError
from os import path, name, devnull, environ, listdir
__all__ = ("get_version",)
CURRENT_DIRECTORY = path.dirname(path.abspath(__file__))
VERSION_F... | PypiClean |
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Meta/M_Link.py |
from _MOM import MOM
from _TFL import TFL
import _MOM._Meta.M_Entity
import _MOM.E_Type_Manager
from _TFL.I18N import _, _T, _Tn
from _TFL.predicate import cartesian, filtered_join, paired, plural_of, uniq
from _TFL.pyk import pyk
from _TF... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/verifier.py |
import asyncio
from typing import Sequence, Optional, TYPE_CHECKING
import aiorpcx
from .util import bh2u, TxMinedInfo, NetworkJobOnDefaultServer
from .crypto import sha256d
from .bitcoin import hash_decode, hash_encode
from .transaction import Transaction
from .blockchain import hash_header
from .interface import G... | PypiClean |
/BioTEMPy-2.1.0a0-py3-none-any.whl/TEMPy/maps/em_map.py |
import datetime
import math
from random import randrange
import sys
import numpy as np
from scipy.ndimage.interpolation import (
affine_transform,
map_coordinates,
shift,
spline_filter,
)
from scipy.ndimage import (
generic_filter,
laplace,
minimum_filter,
uniform_filter,
)
from scipy... | PypiClean |
/Gridspeccer-0.2.1-py3-none-any.whl/gridspeccer/aux.py | import sys
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.patches as mpatches
from matplotlib.ticker import MaxNLocator
from matplotlib import cm
from matplotlib.offsetbox import OffsetImage, AnnotationBbox
from matplotlib import colorbar
from mpl_toolkits.axes_grid1.inset_locator import inset_ax... | PypiClean |
/CityLearn-1.3.1-py3-none-any.whl/citylearn/building.py | import math
from typing import List, Mapping, Union
from gym import spaces
import numpy as np
from citylearn.base import Environment
from citylearn.data import EnergySimulation, CarbonIntensity, Pricing, Weather
from citylearn.energy_model import Battery, ElectricHeater, HeatPump, PV, StorageTank
from citylearn.preproc... | PypiClean |
/LongTermBiosignals-1.0.0.tar.gz/LongTermBiosignals-1.0.0/src/biosignals/sources/HEM.py |
# ===================================
# IT - LongTermBiosignals
# Package: biosignals
# Module: HEM
# Description: Class HEM, a type of BiosignalSource, with static procedures to read and write datafiles from
# Hospital Egas Moniz, Portugal.
# Contributors: João Saraiva, Mariana Abreu
# Created: 25/04/2022
# Last U... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Tool/MSCommon/vc.py | import SCons.compat
import SCons.Util
import subprocess
import os
import platform
from string import digits as string_digits
from subprocess import PIPE
import SCons.Warnings
from SCons.Tool import find_program_path
from . import common
from .common import CONFIG_CACHE, debug
from .sdk import get_installed_sdks
cl... | PypiClean |
/mutation_simulator-3.0.1-py3-none-any.whl/mutation_simulator/it_mutator.py | from __future__ import annotations
from random import choice, shuffle
from typing import TYPE_CHECKING, Tuple
from tqdm import tqdm
from .bedpe_writer import BedpeWriter
from .fasta_writer import FastaWriter
from .util import pairwise, print_warning, sample_with_minimum_distance
if TYPE_CHECKING:
from argparse imp... | PypiClean |
/GraphGit-0.2.0.tar.gz/GraphGit-0.2.0/ez_setup.py | import sys
DEFAULT_VERSION = "0.6c9"
DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb',
'setuptools-0.6b2-py2.3.egg': '5657759... | PypiClean |
/MSOIKKG-1.0-py3-none-any.whl/flood_tool/geo.py | from numpy import array, asarray, mod, sin, cos, tan, sqrt, arctan2, floor, rad2deg, deg2rad, stack, pi
from scipy.linalg import inv
import numpy as np
__all__ = ['get_easting_northing_from_gps_lat_long',
'get_gps_lat_long_from_easting_northing']
class Ellipsoid(object):
""" Data structure for a globa... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/localflavor/mk/forms.py | from __future__ import absolute_import, unicode_literals
import datetime
from django.core.validators import EMPTY_VALUES
from django.forms import ValidationError
from django.forms.fields import RegexField, Select
from django.utils.translation import ugettext_lazy as _
from django.contrib.localflavor.mk.mk_choices im... | PypiClean |
/Machine_Learning_Preprocess_CLI-1.0.1-py3-none-any.whl/cli_app/feature_scaling.py | import pandas as pd
from cli_app.data_description import DataDescription
from sklearn.preprocessing import MinMaxScaler, StandardScaler
class FeatureScaling:
bold_start = "\033[1m"
bold_end = "\033[0;0m"
# All the Tasks associated with this class.
tasks = [
"\n1. Perform Normalization(Min... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/pending_approval/db.py | from datetime import datetime, timedelta
from loguru import logger
from sqlalchemy import Boolean, Column, DateTime, Integer, String, Unicode, select
from flexget import db_schema
from flexget.entry import Entry
from flexget.event import event
from flexget.utils import json, serialization
from flexget.utils.database ... | PypiClean |
/Grinder-Webtest-0.1.tar.gz/Grinder-Webtest-0.1/webtest/parser.py | # Everything in this script should be compatible with Jython 2.2.1.
import sys
from xml import sax
from urlparse import urlparse
class MalformedXML (Exception):
"""Raised when any malformed XML is encountered."""
pass
class Request:
"""Store attributes pertaining to an HTTP Request, including:
... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/data/PicasaStore.js | define("dojox/data/PicasaStore",["dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","dojo/io/script","dojo/data/util/simpleFetch","dojo/date/stamp"],function(_1,_2,_3,_4,_5,_6){
var _7=_2("dojox.data.PicasaStore",null,{constructor:function(_8){
if(_8&&_8.label){
this.label=_8.label;
}
if(_8&&"urlPreventCache" ... | PypiClean |
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/codegen/templates.py | import re
from collections.abc import Mapping
from jinja2 import (
ChoiceLoader,
Environment,
PackageLoader,
StrictUndefined,
TemplateNotFound,
)
from brian2.utils.stringtools import get_identifiers, indent, strip_empty_lines
__all__ = ["Templater"]
AUTOINDENT_START = "%%START_AUTOINDENT%%"
AUTO... | PypiClean |
/Moose-0.9.9b3.tar.gz/Moose-0.9.9b3/moose/actions/operate.py | from __future__ import unicode_literals
import os
from moose.toolbox import video
from moose.shortcuts import ivisit
from moose.utils._os import makedirs, makeparents
from .base import AbstractAction, IllegalAction
import logging
logger = logging.getLogger(__name__)
class BaseExtract(AbstractAction):
"""
C... | PypiClean |
/Fastoo-0.1.4.tar.gz/Fastoo-0.1.4/README.md | # fastoo
A powerful framework for dealing with FastAPI apps.
It includes various utilities for building big FastAPI apps, inclding templates and modules.
## Quickstart
-m means add default modules
```
python -m pip install fastoo==0.1.4
fastoo new blog -m
cd blog
uvicorn app:app --reload
```
### More commands
``... | PypiClean |
/Flask-Heroku-Cacheify-1.6.1.tar.gz/Flask-Heroku-Cacheify-1.6.1/README.md | # flask-heroku-cacheify
Automatic Flask cache configuration on Heroku.

## Purpose
Configuring your cache on Heroku can be a time sink. There are lots of
different caching addons available on Heroku (... | PypiClean |
/MarsGT-0.2.1.tar.gz/MarsGT-0.2.1/README.md | ## Title:MarsGT:Multi-omics data analysis for rare population inference using single-cell graph transformer
**Note: This project is for internal testing purposes only. Do not use it in a production environment.**
MarsGT, for rare cell identification from matched scRNA-seq (snRNA-seq) and scATAC-seq (snATAC-seq),includ... | PypiClean |
/MPoL-0.1.13.tar.gz/MPoL-0.1.13/src/mpol/connectors.py | import torch
import torch.fft # to avoid conflicts with old torch.fft *function*
from torch import nn
from . import utils
def index_vis(vis, griddedDataset):
r"""
Index model visibilities to same locations as a :class:`~mpol.datasets.GriddedDataset`. Assumes that vis is "packed" just like the :class:`~mpol.... | PypiClean |
/IHEWAcollect-0.0.31.tar.gz/IHEWAcollect-0.0.31/docs/api/IHEWAcollect.scripts.rst | IHEWAcollect.scripts package
============================
Submodules
----------
IHEWAcollect.scripts.credential module
--------------------------------------
.. automodule:: IHEWAcollect.scripts.credential
:members:
:undoc-members:
:show-inheritance:
IHEWAcollect.scripts.main module
-----------------------... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/jszip/preprocess.js | var geojsonData = {};
// Shapefile parser, following the specification at
// http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf
SHP = {
NULL: 0,
POINT: 1,
POLYLINE: 3,
POLYGON: 5
};
SHP.getShapeName = function(id) {
for (var name in this) {
if (id === this[name]) {
retu... | PypiClean |
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/auxiliary/color_table.py |
import os
import tempfile
from typing import Optional, Union
from osgeo import gdal
from osgeo_utils.auxiliary.base import PathLikeOrStr
from osgeo_utils.auxiliary.color_palette import (
ColorPalette,
ColorPaletteOrPathOrStrings,
get_color_palette,
)
from osgeo_utils.auxiliary.util import PathOrDS, open_d... | PypiClean |
/ElGamalEllipticCurves-0.1.11.tar.gz/ElGamalEllipticCurves-0.1.11/README.md | This package was written for learning purposes only. It should not be used in any situation where real security is required.
I have implemented the El Gamal method of asymetric key exchnge over elliptic curves. The field, curve, and starting point used in this implementation came from http://www.secg.org/sec2-v2.pdf u... | PypiClean |
/ControlYourWay-1.2.1.tar.gz/ControlYourWay-1.2.1/ControlYourWay_p27/ControlYourWay_p27.py | import ssl
import threading
import Queue
import calendar
import time
import httplib
from httplib import HTTPConnection, HTTPS_PORT
import socket
import websocket
import logging
from logging.handlers import RotatingFileHandler
# HTTPSConnection is not working in Ubuntu. This code fixes the problem
# From: http://askub... | PypiClean |
/Beat_ML1-0.13.1.tar.gz/Beat_ML1-0.13.1/econml/iv/dr/_dr.py | import numpy as np
from sklearn.base import clone
from sklearn.linear_model import LinearRegression, LogisticRegressionCV
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import FunctionTransformer
from sklearn.dummy import DummyClassifier
from ..._ortho_learner import _OrthoLearner
from ..._cate_esti... | PypiClean |
/Nimbus_Splash-1.1.0.tar.gz/Nimbus Splash-1.1.0/nimbus_splash/job.py | import os
import subprocess
from glob import glob
from . import utils as ut
def write_file(input_file: str, node_type: str, time: str,
dependency_paths: dict[str, str],
verbose: bool = False) -> str:
'''
Writes slurm jobscript to file for ORCA calculation on nimbus
Output f... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Neo-Euler/Fraktur/Regular/Main.js | MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.NeoEulerMathJax_Fraktur={directory:"Fraktur/Regular",family:"NeoEulerMathJax_Fraktur",testString:"\u00A0\u210C\u2128\u212D\uD835\uDD04\uD835\uDD05\uD835\uDD07\uD835\uDD08\uD835\uDD09\uD835\uDD0A\uD835\uDD0D\uD835\uDD0E\uD835\uDD0F\uD835\uDD10\uD835\uDD11",32:[0,0,333,0,0],16... | PypiClean |
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/draw/draw_plot.py | __author__ = 'Sergei F. Kliver'
import argparse
import numpy as np
import scipy.stats as stats
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.ioff()
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input_file", action="store", dest="input_file",
help... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/canvas/gui/tooltree.py | import logging
from AnyQt.QtWidgets import (
QTreeView, QWidget, QVBoxLayout, QSizePolicy, QStyledItemDelegate,
QStyle, QAction
)
from AnyQt.QtGui import QStandardItemModel
from AnyQt.QtCore import Qt, QEvent, QModelIndex, QAbstractProxyModel
from AnyQt.QtCore import pyqtSignal as Signal
log = logging.getLogg... | PypiClean |
/Data_Generator-1.0.1-py3-none-any.whl/data_generator/output.py | import csv
import json
from datetime import datetime as dt
from os import makedirs
from os.path import isdir, join
# pyre-ignore
from tqdm import tqdm
# pyre-ignore
from xlsxwriter import Workbook
def _check_dir(dirpath: str) -> None:
"""Checks for <dirpath> existence and creates it recursively, if not found.
... | PypiClean |
/DataExpress-0.0.2.tar.gz/DataExpress-0.0.2/Extract.py | import DE_LibUtil as U
import DE_DataBase as D
import DE_LogEventos as L
import DE_Parametros as P
import DE_Gera_Arquivos as G
import inspect
import os
import socket as sk
import datetime as dt
import json
import pandas as pd
import requests
lib = U.LIB()
db = D.DATABASE()
par = P.PARAMETROS()
class EXTRACAO:
... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/sampler/base.py |
import abc
from typing import Optional, Union, Tuple, Callable, Iterator
import numpy as np
from flax import linen as nn
from jax import numpy as jnp
from netket import jax as nkjax
from netket.hilbert import AbstractHilbert
from netket.utils import mpi, get_afun_if_module, wrap_afun
from netket.utils.deprecation im... | PypiClean |
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/post_train_tools/inputfileGeneratorForGenomeScan_p.py | import re
import numpy as np
import gzip
#output_handle=open("/home/koh/MLData/test.txt", 'w')
import time
import gzip
import math
import os.path
import multiprocessing
import sys
import glob
import deepgmap.data_preprocessing_tools.seq_to_binary2 as sb2
import time
import psutil
import getopt
#from __future__ import ... | PypiClean |
/CustomerProfile-0.1.1.tar.gz/CustomerProfile-0.1.1/docs/installation.rst | .. highlight:: shell
============
Installation
============
Stable release
--------------
To install CustomerProfile, run this command in your terminal:
.. code-block:: console
$ pip install CustomerProfile
This is the preferred method to install CustomerProfile, as it will always install the most recent sta... | PypiClean |
/BPMN_RPA-7.1.2.tar.gz/BPMN_RPA-7.1.2/BPMN_RPA/Scripts/TextMining.py | import json
import os
import pickle
import shutil
import subprocess
import sys
import BPMN_RPA.Scripts.SQLserver as SQLserver
import spacy
import tensorflow
# The BPMN-RPA TextMining module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#... | PypiClean |
/dirtrav-1.0.0.tar.gz/dirtrav-1.0.0/docs/appcontext.rst | .. currentmodule:: flask
The Application Context
=======================
The application context keeps track of the application-level data during
a request, CLI command, or other activity. Rather than passing the
application around to each function, the :data:`current_app` and
:data:`g` proxies are accessed instead.
... | PypiClean |
/OceanMonkey-1.0.0.tar.gz/OceanMonkey-1.0.0/oceanmonkey/core/template.py | import abc
import os
import string
import oceanmonkey
class Template(abc.ABC):
@abc.abstractmethod
def create(self):
""" """
class ProjectTemplate(Template):
def __init__(self, project_name):
self.__project_name = project_name
self.__project_template_path = os.path.join(
... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/jinja2/jinja2/exceptions.py | from jinja2._compat import imap, text_type, PY2, implements_to_string
class TemplateError(Exception):
"""Baseclass for all template errors."""
if PY2:
def __init__(self, message=None):
if message is not None:
message = text_type(message).encode('utf-8')
Excepti... | PypiClean |
/Gnosis_Utils-1.2.2.tar.gz/Gnosis_Utils-1.2.2/gnosis/util/introspect.py |
import gnosis.pyconfig
def docstrings():
if not gnosis.pyconfig.Can_AssignDoc(): return
"""
containers.__doc__ = "A tuple of built-in types that contain parts"
simpletypes.__doc__ = "A tuple of built-in types that have no parts"
datatypes.__doc__ = "A tuple of all the built-in types that hol... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/clustering/clustering.py | import numpy as np
import scipy.sparse
from Orange.data import Table, Instance
from Orange.data.table import DomainTransformationError
from Orange.misc.wrapper_meta import WrapperMeta
from Orange.preprocess import Continuize, SklImpute
class ClusteringModel:
def __init__(self, projector):
self.projector... | PypiClean |
/BubbleTea-py-0.0.7.tar.gz/BubbleTea-py-0.0.7/README.md | Bubbletea
--
A python library which enables developers and data scientists to quickly build any data applications on top of The Graph network. Whether you are building dashboards to visualize protocol data or leveraging existing machine learning models to do some data science work, we hope this library will be the fas... | PypiClean |
/ChadBot6-0.1-py3-none-any.whl/ChadBot/generation/rajat_work/qgen/generator/symsub.py | import string
from itertools import product
import numpy as np
from nltk.corpus import stopwords
from nltk.corpus import wordnet as wn
from tqdm import tqdm
from .base import BaseGenerator
import sys
from ..util.nlp import get_spacy_model
class SymSubGenerator(BaseGenerator):
""" Generate questions via sense-d... | PypiClean |
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/ump/trade/capital.py | import numpy as np
import pandas as pd
from ultron.kdutils import date as date_utils
from ultron.utilities.logger import kd_logger
from ultron.kdutils.progress import Progress
from ultron.ump.core.base import PickleStateMixin
from ultron.ump.trade.commission import Commission
from ultron.ump.trade.order import Order
... | PypiClean |
/KitnIRC-0.3.1.tar.gz/KitnIRC-0.3.1/kitnirc/contrib/cron.py | import datetime
import logging
import random
import threading
import time
from kitnirc.modular import Module
_log = logging.getLogger(__name__)
class Cron(object):
"""An individual cron entry."""
def __init__(self, event, seconds, minutes, hours):
self.event = event
self.seconds = self.par... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/plugins/autolink/editor_plugin.js | (function(){tinymce.create("tinymce.plugins.AutolinkPlugin",{init:function(a,b){var c=this;if(tinyMCE.isIE){return}a.onKeyDown.add(function(d,f){if(f.keyCode==13){return c.handleEnter(d)}});a.onKeyPress.add(function(d,f){if(f.which==41){return c.handleEclipse(d)}});a.onKeyUp.add(function(d,f){if(f.keyCode==32){return c... | PypiClean |
/ImmuneDB-0.29.11.tar.gz/ImmuneDB-0.29.11/immunedb/identification/vdj_sequence.py | import re
from Bio.Seq import Seq
import dnautils
from immunedb.common.models import CDR3_OFFSET
import immunedb.util.lookups as lookups
class VDJSequence(object):
def __init__(self, seq_id, sequence, quality=None, rev_comp=False,
copy_number=1):
if quality and len(sequence) != len(qual... | PypiClean |
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/docs/admin/continuous.rst | .. _continuous-translation:
Continuous localization
=======================
There is infrastructure in place so that your translation closely follows
development. This way translators can work on translations the entire time,
instead of working through huge amount of new text just prior to release.
.. seealso::
... | PypiClean |
/OASYS1-XOPPY-1.2.10.tar.gz/OASYS1-XOPPY-1.2.10/orangecontrib/xoppy/widgets/source/xtc.py | import sys,os
import numpy
import platform
from PyQt5.QtWidgets import QApplication
from orangewidget import gui
from orangewidget.settings import Setting
from oasys.widgets import gui as oasysgui, congruence
from xoppylib.xoppy_util import locations
from oasys.widgets.exchange import DataExchangeObject
from orangec... | PypiClean |
/CLOVER_GUI-1.0.0a1-py3-none-any.whl/clover_gui/details/system.py |
import ttkbootstrap as ttk
import tkinter as tk
from clover import ProgrammerJudgementFault
from clover.fileparser import BATTERY, DIESEL_GENERATOR
from clover.generation.solar import PVPanel
from clover.impact.finance import ImpactingComponent
from clover.impact.__utils__ import LIFETIME, SIZE_INCREMENT
from clover.... | PypiClean |
/EMC-info-1.5.2.tar.gz/EMC-info-1.5.2/README.md | 
EarthMC is a large Minecraft server this package lets you get info about things on that server.
[PyPI](https://pypi.org/project/EMC-info) **|** [Github](https://github.com/TheSuperGamer20578/EMC-info) **|** [Changelog](https://github.com/TheSuperGamer20578/EMC-info/... | PypiClean |
/CSVSee-0.2.tar.gz/CSVSee-0.2/docs/csvs.rst | csvs
====
``csvs`` is the primary frontend for CSVSee. You can run this without arguments
to see what it expects. At minimum, you'll need to provide the name of a
command. Currently, two commands are implemented:
* ``csvs graph``: Generate graphs from ``.csv`` files
* ``csvs grep``: Search in text files and generate ... | PypiClean |
/Couchapp-1.0.2.tar.gz/Couchapp-1.0.2/couchapp/templates/vendor/couchapp/_attachments/jquery.couchProfile.js |
(function($) {
$.couchProfile = {};
$.couchProfile.templates = {
profileReady : '<div class="avatar">{{#gravatar_url}}<img src="{{gravatar_url}}"/>{{/gravatar_url}}<div class="name">{{nickname}}</div></div><p>Hello {{nickname}}!</p><div style="clear:left;"></div>',
newProfile : '<form><p>Hello ... | PypiClean |
/MistressGPT-0.9.9.tar.gz/MistressGPT-0.9.9/chatmistress/chatmistress.py | import os
from typing import Dict, List, Optional, Union
import click
from dotenv import load_dotenv
from prompt_toolkit import PromptSession
from prompt_toolkit.completion import WordCompleter
from prompt_toolkit.history import FileHistory
from rich.console import Console
from .core import init_chat_components, inte... | PypiClean |
/AX3_model_extras-2.0.0-py3-none-any.whl/ax3_model_extras/fields.py | from io import BytesIO
from django.core.exceptions import ValidationError
from django.db.models import ImageField
from django.utils.translation import gettext_lazy as _
from PIL import Image
from resizeimage import resizeimage
from resizeimage.imageexceptions import ImageSizeError
class OptimizedImageField(ImageFiel... | PypiClean |
/InowasFlopyAdapter-1.5.0.tar.gz/InowasFlopyAdapter-1.5.0/FlopyAdapter/Read/ReadDrawdown.py | import os
import flopy.utils.binaryfile as bf
class ReadDrawdown:
_filename = None
def __init__(self, workspace):
for file in os.listdir(workspace):
if file.endswith(".ddn"):
self._filename = os.path.join(workspace, file)
pass
def read_times(self):
try... | PypiClean |
/KarnaughMap-1.1.2.tar.gz/KarnaughMap-1.1.2/src/KMap/Mapper.py | __all__ = ["KarnaughMap"]
__author__ = "Alexander Bisland"
__version__ = "2.6.1"
supported_from = "3.8.1"
import re
import itertools
from typing import Union, TypeVar, List
_KMap = TypeVar("_KMap", bound="KarnaughMap")
class KarnaughMap: # TODO - map middle for 5+6
"""Create Karnaugh Map objects which can be s... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.8.20.rst | ============================
Djblets 0.8.20 Release Notes
============================
**Release date**: June 15, 2015
djblets.webapi
==============
.. currentmodule:: djblets.webapi.resources
* Fix :py:meth:`WebAPIResource.serialize_object` failing to return a copy
of the original serialized data.
This could... | PypiClean |
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/ScheduledTaskMetadata.py | from __future__ import absolute_import
from .Core import *
from .ScheduledTask import *
from .Metadata import *
from ..Base import (
getXmlNodeBool,
getXmlNodeFloat,
getXmlNodeInt,
getXmlNodeText,
KalturaClientPlugin,
KalturaEnumsFactory,
KalturaObjectBase,
KalturaObjectFactory,
Kal... | PypiClean |
/Dero-0.15.0-py3-none-any.whl/dero/manager/sectionpath/sectionpath.py | from typing import List, Union
import os
from dero.mixins.repr import ReprMixin
SectionPathOrStr = Union[str, 'SectionPath']
class SectionPath(ReprMixin):
repr_cols = ['path_str', 'sections']
def __init__(self, section_path: str):
self.path_str = section_path
self.sections = _section_path_st... | PypiClean |
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/lib/vcs/utils/helpers.py | import datetime
import logging
import os
import re
import time
import urllib.request
import mercurial.url
from pygments import highlight
from pygments.formatters import TerminalFormatter
from pygments.lexers import ClassNotFound, guess_lexer_for_filename
from kallithea.lib.vcs import backends
from kallithea.lib.vcs.e... | PypiClean |
/FEV_KEGG-1.1.4.tar.gz/FEV_KEGG-1.1.4/FEV_KEGG/lib/Biopython/KEGG/KGML/KGML_parser.py | from xml.etree import ElementTree
from io import StringIO
from FEV_KEGG.lib.Biopython.KEGG.KGML.KGML_pathway import Component, Entry, Graphics
from FEV_KEGG.lib.Biopython.KEGG.KGML.KGML_pathway import Pathway, Reaction, Relation
def read(handle):
"""Parse a single KEGG Pathway from given file handle.
Retur... | PypiClean |
/3DJCG-3Dvisual-question-answering-0.1.0.tar.gz/3DJCG-3Dvisual-question-answering-0.1.0/3DJCG_3Dvisual_question_answering/app.py | from uuid import uuid4
from pathlib import Path
from typing import Optional
import aiofiles
import torch
import argparse
from fastapi import FastAPI, UploadFile
from PIL import Image
# from .models import ImageEntityRecognition
from data.scannet.model_util_scannet import ScannetDatasetConfig
from models.vqanet.vqanet... | PypiClean |
/MASSA_Algorithm-0.9.1-py3-none-any.whl/MASSA_Algorithm/MASSApreparation.py | import numpy as np
import pandas as pd
from sklearn.decomposition import PCA
from sklearn.preprocessing import MinMaxScaler
def normalizer_or_matrix(file, biological_activity):
# Biological activity:
if len(biological_activity) == 1:
bio_array = (file[biological_activity].to_numpy(copy=True)).reshape(-1,1) #Transf... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/data/instance.py | from itertools import chain
from math import isnan
from numbers import Real, Integral
import numpy as np
from Orange.data import Value, Unknown
__all__ = ["Instance"]
class Instance:
def __init__(self, domain, data=None, id=None):
"""
Construct a new data instance.
:param domain: domai... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Scanner/C.py |
__revision__ = "src/engine/SCons/Scanner/C.py 2014/07/05 09:42:21 garyo"
import SCons.Node.FS
import SCons.Scanner
import SCons.Util
import SCons.cpp
class SConsCPPScanner(SCons.cpp.PreProcessor):
"""
SCons-specific subclass of the cpp.py module's processing.
We subclass this so that: 1) we can deal w... | PypiClean |
/Eskapade_Spark-1.0.0-py3-none-any.whl/eskapadespark/links/spark_df_creator.py | from eskapade import Link, StatusCode, process_manager, DataStore
from eskapadespark.helpers import process_transform_funcs
from eskapadespark import SparkManager, data_conversion
class SparkDfCreator(Link):
"""Link to create a Spark dataframe from generic input data."""
def __init__(self, **kwargs):
... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/yaml/yaml.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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.