id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/ModularTorch-0.1.4.tar.gz/ModularTorch-0.1.4/modular_torch/DataSetup.py | import os
import zipfile
import requests
from pathlib import Path
import torch
import torchvision
from torch.utils.data import DataLoader
from torchvision.datasets import ImageFolder
def get_data(data_link: str = None, name: str = "food_data", data_path: any = None, remove_zip: bool = True) -> None:
"""Fetches... | PypiClean |
/ConGen-0.0.5.tar.gz/ConGen-0.0.5/src/congen/exporters/GeoTIFFExporter.py | import os, re, unicodedata
import numpy as np
from exporters.Exporter import Exporter
from osgeo import gdal, gdal_array
class GeoTIFFExporter(Exporter):
def export(self):
self.export_raster_layers()
def export_raster_layers(self, no_data_value=65535):
"""
Useful links:
http... | PypiClean |
/GT_521F52-1.0.0.tar.gz/GT_521F52-1.0.0/README.md | # GT_521F52
This is a library for working with the ADH-Tech GT521F52 fingerprint scanner.
## GETTING STARTED
Clone this repository into your projects folder and import the GT-521F52 module
to your application. The project is well documented, but if there are any doubts
feel free to contact. The [examples.py](example... | PypiClean |
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/how-to/contributing/strategy/writing_the_new_strategy.rst | Writing the new strategy
========================
Identify a new strategy
-----------------------
If you're not sure if you have a strategy that has already been implemented, you
can search the :ref:`strategies-index` to see if they are implemented. If you
are still unsure please get in touch: `via the gitter room
<h... | PypiClean |
/ATpy-0.9.7.tar.gz/ATpy-0.9.7/docs/format_ascii.rst | .. _format_ascii:
============
ASCII tables
============
.. note::
There are probably as many ASCII table formats as astronomers (if not
more). These generally store a single table, and can sometimes include
meta-data.
Overview
--------
Reading ASCII tables is supported thanks to the `asciitable <http:/... | PypiClean |
/EISeg-1.1.1-py3-none-any.whl/eiseg/util/voc.py | import xml.etree.ElementTree as ET
class VocAnnotations:
def __init__(self,
filename,
witdh,
height,
depth=3,
foldername="VOC2007",
sourcename="Unknown"):
self.root = ET.Element("annotation")
self... | PypiClean |
/Autoneuro-0.0.1.tar.gz/Autoneuro-0.0.1/application/modelTraining/classificationModels.py | import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearn.model_selection import RandomizedSearchCV
from sklearn.metrics import accuracy_score, roc_auc_score, classification_report
from sklearn.model_selection import cros... | PypiClean |
/Flask-OpenTracing-1.1.0.tar.gz/Flask-OpenTracing-1.1.0/README.rst | #################
Flask-OpenTracing
#################
This package enables distributed tracing in Flask applications via `The OpenTracing Project`_. Once a production system contends with real concurrency or splits into many services, crucial (and formerly easy) tasks become difficult: user-facing latency optimization... | PypiClean |
/Flaskel-3.1.0rc2-py3-none-any.whl/flaskel/views/resource.py | import typing as t
from sqlalchemy.exc import SQLAlchemyError
from vbcore.db.exceptions import DBError
from vbcore.db.support import SQLASupport
from vbcore.http import httpcode, HttpMethod
from flaskel import abort, cap, db_session, PayloadValidator, Response, webargs
from flaskel.ext.default import builder
from ..... | PypiClean |
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/printer/printer.py | from __future__ import annotations
import dataclasses
from itertools import chain
from typing import (
TYPE_CHECKING,
Any,
Dict,
List,
Optional,
Set,
Tuple,
TypeVar,
Union,
cast,
overload,
)
from graphql import is_union_type
from graphql.language.printer import print_ast
fr... | PypiClean |
/ApiDoc-1.4.0.tar.gz/ApiDoc-1.4.0/apidoc/factory/source/element.py | import collections
from apidoc.object.source_raw import Sampleable, Displayable
from apidoc.lib.util.cast import to_boolean
class Element():
""" Populate Helper Factory
"""
def set_common_datas(self, element, name, datas):
"""Populated common data for an element from dictionnary datas
"... | PypiClean |
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/tool_box/tb_common/dates.py |
#-----------------------------------------------------------------------
"""
Provides a set of date and datetime object generators that take
string or date/datetime inputs and produce a date or datetime
object. Particularly useful for interpreting a range of
date/datetime string formats.
"""
#--------... | PypiClean |
/CDF-0.32.tar.gz/CDF-0.32/cdf/istp/interface.py |
# Stock Python modules.
import os
import os.path
import shutil
import sys
import tempfile
# cdf extension modules.
from .. import interface as cdf
from .. import internal
from .. import typing
###
# TODO: The complex interactions of the various strategies are not well
# documented and are in fact quite fragile. The... | PypiClean |
/EdaSpiffWorkflow-0.0.2.tar.gz/EdaSpiffWorkflow-0.0.2/EdaSpiffWorkflow_Aadesh_G/util/weakmethod.py |
from builtins import object
#
# DO NOT EDIT THIS FILE.
# THIS CODE IS TAKE FROM Exscript.util:
# https://github.com/knipknap/exscript/tree/master/src/Exscript/util
#
# Copyright (C) 2007-2010 Samuel Abels.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Gener... | PypiClean |
/cowsuper-0.0.2-py3-none-any.whl/cowsuper/examples/datasets/generate_weak_signals.ipynb | ```
import numpy as np
import pandas as pd
import nltk
import re
import matplotlib.pyplot as plt
from json import JSONDecoder
from functools import partial
import json
from pprint import pprint
from bs4 import BeautifulSoup
from nltk.tokenize import WordPunctTokenizer
from nltk.corpus import stopwords
from nltk.stem im... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/widget/Chart.js.uncompressed.js | define("dojox/charting/widget/Chart", ["dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/array","dojo/_base/html","dojo/_base/declare", "dojo/query",
"dijit/_Widget", "../Chart", "dojox/lang/utils", "dojox/lang/functional","dojox/lang/functional/lambda",
"dijit/_base/manager"],
function(kernel, lang, arr, html, d... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/tools/analysis_tools/optimize_anchors.py | import argparse
import os.path as osp
import mmcv
import numpy as np
import torch
from mmcv import Config
from scipy.optimize import differential_evolution
from mmdet.core import bbox_cxcywh_to_xyxy, bbox_overlaps, bbox_xyxy_to_cxcywh
from mmdet.datasets import build_dataset
from mmdet.utils import get_root_logger, r... | PypiClean |
/AppiumExtended-0.5.49b0-py3-none-any.whl/appium_extended_terminal/terminal.py | import logging
import base64
import re
import sys
import time
import traceback
from typing import Dict, Any, Union, Tuple
# sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath( __file__)))) # The sys.path.append line adds the
# parent directory of the tests directory to the Python module search path, allo... | PypiClean |
/Chronoclust-0.2.1.2.tar.gz/Chronoclust-0.2.1.2/chronoclust/objects/microcluster.py | import numpy as np
import chronoclust.utilities.mc_functions as nmba
__author__ = "Givanna Putri, Deeksha Singh, Mark Read, and Tao Tang"
__copyright__ = "Copyright 2017, Cytoclust Project"
__credits__ = ["Givanna Putri", "Deeksha Singh", "Mark Read", "Tao Tang"]
__version__ = "0.0.1"
__maintainer__ = "Givanna Putri"
... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/necks/yolo_neck.py |
import torch
import torch.nn.functional as F
from mmcv.cnn import ConvModule
from mmcv.runner import BaseModule
from ..builder import NECKS
class DetectionBlock(BaseModule):
"""Detection block in YOLO neck.
Let out_channels = n, the DetectionBlock contains:
Six ConvLayers, 1 Conv2D Layer and 1 YoloLaye... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/chardet/langturkishmodel.py |
# 255: Control characters that usually does not exist in any text
# 254: Carriage/Return
# 253: symbol (punctuation) that does not belong to word
# 252: 0 - 9
# Character Mapping Table:
Latin5_TurkishCharToOrderMap = (
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,25... | PypiClean |
/KITTI%20Iterator-1.4.0.tar.gz/KITTI Iterator-1.4.0/kitti_iterator/plotter.py | from ctypes.wintypes import POINT
import numpy as np
import os
###
# Plotter Code
###
#
from PyQt5 import QtCore, QtGui, QtWidgets
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph.opengl as gl
import numpy as np
import sys
from pyqtgraph import Vector
import math
import matplotlib as mpl
cmap = mpl.colormaps[... | PypiClean |
/DensityClust-1.4.9.tar.gz/DensityClust-1.4.9/LDC_MGM_main/LDC_MGM_main.py | import os
import shutil
import pandas as pd
from DensityClust.localDenClust2 import LocalDensityCluster as LDC
from DensityClust import split_cube
from tools import show_clumps
from DensityClust.localDenClust2 import Data, Param
from DensityClust.LocalDensityClustering_main import localDenCluster
from fit_clump_functio... | PypiClean |
/Droplet_Detector-0.1.3.tar.gz/Droplet_Detector-0.1.3/README.md | # Droplet-Detector

---

<img src = "https://img.shields.io/badge/Code%20Coverage-80%25... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/doc/extdev/parserapi.rst | .. _parser-api:
Parser API
==========
`The docutils documentation describes`__ parsers as follows:
The Parser analyzes the input document and creates a node tree
representation.
__ http://docutils.sourceforge.net/docs/dev/hacking.html#parsing-the-document
In Sphinx, the parser modules works as same as docu... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/examples/meshing/gmshRefinement.py | from __future__ import division
from __future__ import unicode_literals
from builtins import range
from fipy import input
from fipy import CellVariable, Gmsh2D, DiffusionTerm, Viewer
from fipy.tools import numerix
from matplotlib import cm
monitor = None
geo = """\
c1_x = 6;
c1_y = 6;
c2_x = 4;
c2_y = 4;
r = 0.2;
Po... | PypiClean |
/2dwavesim-1.0.0.tar.gz/2dwavesim-1.0.0/README.md | # 2dwavesim
This is a project that simulates waves on 2D plates/rooms. Given boundaries (or walls) and points where oscillation will be forced, this will simulate the resulting wavemodes!
Currently it supports setting the attenuation properties of individual boundaries, multiple forcing points based on either data ... | PypiClean |
/Kr0nOs_Bot-3.3.11-py3-none-any.whl/redbot/core/core_commands.py | import asyncio
import contextlib
import datetime
import importlib
import itertools
import logging
import os
import re
import sys
import platform
import getpass
import pip
import traceback
from collections import namedtuple
from pathlib import Path
from random import SystemRandom
from string import ascii_letters, digits... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/gas/gas.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 |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/xmpp/UserService.js.uncompressed.js | define("dojox/xmpp/UserService", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){
dojo.provide("dojox.xmpp.UserService");
dojo.declare("dojox.xmpp.UserService", null, {
constructor: function(xmppService){
this.session= xmppService;
},
getPersonalProfile: function(){
var req={
id: this.session.getNextIq... | PypiClean |
/Flask-Security-Utils-1.0.2.tar.gz/Flask-Security-Utils-1.0.2/security_utils/CountryFirewall.py | import logging
import os
from IP2Location import IP2Location, IP2LocationIPTools
from urllib.request import urlopen
from os.path import exists as file_exists
traza = logging.getLogger(__name__)
class CountryFirewall():
"""
Clase de utilidad
"""
__instance = None
__ipCountryFileDB = None... | PypiClean |
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/bootstrap/Gruntfile.js | module.exports = function (grunt) {
'use strict';
// Force use of Unix newlines
grunt.util.linefeed = '\n';
RegExp.quote = function (string) {
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&');
};
var fs = require('fs');
var path = require('path');
var npmShrinkwrap = require('npm-shrinkwrap'... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/install.py | import os
import stat
from shutil import copy2, copystat
import SCons.Action
import SCons.Tool
import SCons.Util
from SCons.Subst import SUBST_RAW
from SCons.Tool.linkCommon import (
StringizeLibSymlinks,
CreateLibSymlinks,
EmitLibSymlinks,
)
# We keep track of *all* installed files.
_INSTALLED_FILES = []... | PypiClean |
/DeepXDE-1.9.3-py3-none-any.whl/deepxde/nn/tensorflow/fnn.py | from .nn import NN
from .. import activations
from .. import initializers
from .. import regularizers
from ...backend import tf
class FNN(NN):
"""Fully-connected neural network."""
def __init__(
self,
layer_sizes,
activation,
kernel_initializer,
regularization=None,
... | PypiClean |
/FaceDetector_cc-0.0.2-py3-none-any.whl/FaceDec.py | import cv2 as c
import time
import mediapipe as mp
import numpy as np
class FaceDetector:
def __init__(
self,
cam_index: int = 0,
cam_width: int = 640,
cam_height: int = 360,
min_detection_confidence=0.5,
model_selection=0):
"""Face D... | PypiClean |
/HAFFET-0.1.2.tar.gz/HAFFET-0.1.2/sdapy/functions.py | import numpy as np
import emcee, os, re, math
import h5py
from six import string_types
from dateutil.parser import parse
from sdapy import filters
import pandas as pd
# ztfquery source path
LOCALSOURCE = os.getenv('ZTFDATA',"./Data/")
def Lbol_to_Mbol(L):
# bolometric luminosity to bolometric mag
return -2.5*(... | PypiClean |
/MAPIE-0.6.5-py3-none-any.whl/mapie/regression/quantile_regression.py | from __future__ import annotations
import warnings
from typing import Iterable, List, Optional, Tuple, Union, cast
import numpy as np
from sklearn.base import RegressorMixin, clone
from sklearn.linear_model import QuantileRegressor
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipe... | PypiClean |
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/cluster/Pack.py | import collections
import hashlib
import os
import re
import socket
import sys
import threading
import time
import msgpack
from Crypto import Random
from Crypto.Cipher import AES
from BaseThreadedModule import BaseThreadedModule
from utils.Decorators import ModuleDocstringParser, setInterval
from utils.misc import Ti... | PypiClean |
/KVM48-1.3.600-py3-none-any.whl/kvm48/utils.py | import os
import re
import time
import urllib.parse
from typing import Optional
__all__ = [
"extension_from_url",
"sanitize_filename",
"sanitize_filepath",
"read_keypress_with_timeout",
]
def extension_from_url(url: str, *, dot: bool = False) -> str:
ext = os.path.splitext(urllib.parse.urlparse(... | PypiClean |
/guibits-1.0-py3-none-any.whl/src/guibits1_0/cursoring.py |
# author R.N.Bosworth
# version 28 Jul 22 19:55
import PyQt6.QtCore
from . import coloring, cursor_blinking, font_size_checking
from . import resolving, scrolling, show_checking
from . import type_checking2_0, windowing
"""
Copyright (C) 2014,2015,2016,2017,2020,2021,2022 R.N.Bosworth
This program is free softwar... | PypiClean |
/Flask-Hypertable-0.3.0.tar.gz/Flask-Hypertable-0.3.0/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com/coderfi/flask_hypert... | PypiClean |
/Hippodamia-0.4.2.tar.gz/Hippodamia-0.4.2/hippodamia/onboarding.py | import datetime
import pprint
from hippodamia.enums import Enforcement
from hippodamia.agentshadow.states.state_ids import state_ids
import json
import pelops.logging.mylogger
from threading import Lock
import collections
class _GIDMapping:
location = None
room = None
device = None
type = None
nam... | PypiClean |
/JitViewer-0.2.1.tar.gz/JitViewer-0.2.1/_jitviewer/static/canjs/1.1.4/can.mootools.min.js | (function(n,j){var c=n.can||{};if("undefined"===typeof GLOBALCAN||!1!==GLOBALCAN)n.can=c;c.isDeferred=function(a){var b=this.isFunction;return a&&b(a.then)&&b(a.pipe)};var Ra=0;c.cid=function(a,b){return a._cid?a._cid:a._cid=(b||"")+ ++Ra};c.addEvent=function(a,b){this.__bindEvents||(this.__bindEvents={});var d=a.split... | PypiClean |
/Fict-1.0.1.tar.gz/Fict-1.0.1/README.md | # FICT is a simple file integrity checking tool.
## Usage
Basic usage is as follows.
```
cd ~
fict init
fict add ~/Documents
fict list
fict compute
fict check
```
The database will is stored in `~/.fict/fict_db`. The fict_db file that's normally in `~/.fict`
can be manipulated manually. The changes will be ingested u... | PypiClean |
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/data/analyzer/windows/modules/auxiliary/human.py |
import random
import re
import logging
import threading
from lib.common.abstracts import Auxiliary
from lib.common.defines import (
KERNEL32, USER32, WM_GETTEXT, WM_GETTEXTLENGTH, WM_CLOSE, BM_CLICK,
EnumWindowsProc, EnumChildProc, create_unicode_buffer
)
log = logging.getLogger(__name__)
RESOLUTION = {
... | PypiClean |
/AutoWave-0.5.tar.gz/AutoWave-0.5/README.md | # AutoWave - Automatic Audio Classification Library
<p align="center"><img src="https://github.com/TechyNilesh/AutoWave/blob/main/logo/autowave_logo.png?raw=true" alt="Brain+Machine"></p>
**AutoWave** is an complete audio automatic classification library with other features plottings,audio agumentaion, data loading et... | PypiClean |
/AutoAWSMFA-0.0.4.tar.gz/AutoAWSMFA-0.0.4/auto_aws_mfa/__main__.py |
import boto3
import getpass
import argparse
import subprocess
import configparser
from boto3 import client
from . import __version__
from .mfa import handle_mfa
from os import getenv, path, name
from datetime import datetime
from .session import handle_session
from sys import exit, stderr, argv
from botocore.exceptio... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/date/posix.js.uncompressed.js | define("dojox/date/posix", ["dojo/_base/kernel", "dojo/date", "dojo/date/locale", "dojo/string", "dojo/cldr/supplemental"],
function(dojo, dojoDate, dojoDateLocale, dojoString, dojoCldrSupplemental){
dojo.getObject("date.posix", true, dojox);
dojox.date.posix.strftime = function(/*Date*/dateObject, /*String*/f... | PypiClean |
/FairNLP-5.1.0.tar.gz/FairNLP-5.1.0/FNLP/LanguageEngines/Categorizer/MainCategories.py | extended_stop_words = ["with", "more", "s", "has", "have", "they", "this", "their", "was", "not", "said", "also",
"most", "but", "from", "whether", "so", "ways", "if", "were", "have", "my", "being", "re", "what",
"where", "many", "other", "t", "i", "than", "had", "who", "am... | PypiClean |
/GreenGlacier-1.0.0.tar.gz/GreenGlacier-1.0.0/greenglacier.py |
from __future__ import print_function
import os
import hashlib
import math
import binascii
import gevent
import gevent.pool
import gevent.queue
import gevent.monkey
gevent.monkey.patch_socket()
gevent.monkey.patch_ssl()
gevent.monkey.patch_os()
from retrying import retry
# the following helper functions are (temp... | PypiClean |
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/client.py |
import asyncio
import functools
import inspect
import logging
import os
import platform
import re
import shutil
import sys
from concurrent.futures.thread import ThreadPoolExecutor
from datetime import datetime, timedelta
from hashlib import sha256
from importlib import import_module
from io import StringIO, BytesIO
fr... | PypiClean |
/Comickaze-2.0.1b1.tar.gz/Comickaze-2.0.1b1/comickaze/Comickaze.py | from typing import List
import logging
import coloredlogs
import requests
from .Downloader import Downloader
from .objects import Suggestion, Comic, Chapter
from .util import soupify, create_session
class Comickaze:
BASE_URL = "https://readcomicsonline.ru"
def __init__(self, log_level: str = "ERROR"):
... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/interfaces/jetsoncam_BAK.py | import numpy as np
import cv2, queue, threading
from imswitch.imcommon.model import initLogger
# https://stackoverflow.com/questions/33432426/importerror-no-module-named-queue
# bufferless VideoCapture
class VideoCapture:
def __init__(self, name):
self.cap = cv2.VideoCapture(0, cv2.CAP_V4L2)
self.... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/rust/rust.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../../addon/mode/simple"], mod);
else // Plain br... | PypiClean |
/IQM_Vis-0.2.5.80-py3-none-any.whl/IQM_Vis/UI/experiment_mode.py | import os
import random
import threading
import warnings
import time
import numpy as np
import pandas as pd
from PyQt6.QtWidgets import (QMainWindow,
QHBoxLayout,
QVBoxLayout,
QTabWidget,
QApplication,
... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/reading_import_profile.py |
from msrest.serialization import Model
class ReadingImportProfile(Model):
"""ReadingImportProfile.
All required parameters must be populated in order to send to Azure.
:param channel_interval_in_seconds: The interval of the readings in
seconds
:type channel_interval_in_seconds: int
:param ... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/modules/Opera/Opera.js | Opera._pluginInfo={name:"Opera",origin:"Xinha Core",version:"$LastChangedRevision: 1084 $".replace(/^[^:]*:\s*(.*)\s*\$$/,"$1"),developer:"The Xinha Core Developer Team",developer_url:"$HeadURL: http://svn.xinha.org/trunk/modules/Opera/Opera.js $".replace(/^[^:]*:\s*(.*)\s*\$$/,"$1"),sponsor:"Gogo Internet Services Lim... | PypiClean |
/GTsegments-0.22.tar.gz/GTsegments-0.22/src/gtsegments/gbk.py |
# Copyright (c) 2013-2016, Philippe Bordron <philippe.bordron+GTsegments@gmail.com>
#
# This file is part of GTsegments.
#
# GTsegments is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as published by
# the Free Software Foundation, either version 3 ... | PypiClean |
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/FAQ.rst | ***
FAQ
***
=========
Plotting
=========
I can not see the full plot when using ``arange``
*************************************************
Note that the module uses python ranges. Thus, plotting
a histogram with arange(0,100,1) will only bin the
values from 0 to 99 and ignore values greater or larger
that 100.
I... | PypiClean |
/Mailchimp%20Python-0.1.12.tar.gz/Mailchimp Python-0.1.12/mailchimp/objects/mc_list_stats.py | from .base_object import BaseObject
class MCListStats(BaseObject):
item_url = None
def __init__(self, json_data={}):
super(MCListStats, self).__init__()
self.member_count = None
self.unsubscribe_count = None
self.cleaned_count = None
self.member_count_since_send = None... | PypiClean |
/ORMithorynque-0.1.1.tar.bz2/ORMithorynque-0.1.1/doc/html/searchindex.js | Search.setIndex({envversion:49,filenames:["benchmark","index","inheritance","querying","relation","transaction","tuto"],objects:{},objnames:{},objtypes:{},terms:{"byte":[0,4,6],"case":6,"class":[],"default":[4,5,6],"final":[3,6],"float":6,"import":[0,6],"int":[4,6],"new":[1,4,6],"return":[3,4],"static":6,"true":[4,6],a... | PypiClean |
/Geode_GEM-0.12.0-py3-none-any.whl/geode_gem/ui/widgets/widgets.py |
# GObject
from gi.repository import Gtk, Pango
# ------------------------------------------------------------------------------
# Class
# ------------------------------------------------------------------------------
class ListBoxItem(Gtk.ListBoxRow):
def __init__(self):
""" Constructor
"""
... | PypiClean |
/BioSAK-1.72.0.tar.gz/BioSAK-1.72.0/doc/iTOL.md |
### Dataset types
+ ColorStrip https://itol.embl.de/help.cgi#strip
BioSAK iTOL -ColorStrip -lg MagTaxon.txt -lt Phylum -o ColorStrip_taxon.txt
+ ColorRange https://itol.embl.de/help.cgi#dsRanges
BioSAK iTOL -ColorRange -lg MagTaxon.txt -lt Phylum -o ColorRange_taxon.txt
BioSAK iTOL -ColorRange -t... | PypiClean |
/Gen_Gaus_Bi_distributions-0.1.tar.gz/Gen_Gaus_Bi_distributions-0.1/Gen_Gaus_Bi_distributions/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/MyConnect_SQL-1.1.0-py3-none-any.whl/MyConnect/AuthLogin.py |
from tkinter import *
from tkinter import messagebox
import mysql.connector as MC
from mysql.connector import errorcode
# Var
global lg
global LoginFrame
u1 = ""
usernameGL = ""
lgn = ""
lg = Tk()
LoginFrame = Frame(lg, width=350, height=350, bg="white")
# Def
class login():
# Windows
def setTitle(title... | PypiClean |
/AHRS-0.3.1-py3-none-any.whl/ahrs/filters/roleq.py | import numpy as np
from ..common.orientation import ecompass
from ..common.mathfuncs import cosd, sind
class ROLEQ:
"""
Recursive Optimal Linear Estimator of Quaternion
Uses OLEQ to estimate the initial attitude.
Parameters
----------
gyr : numpy.ndarray, default: None
N-by-3 array wi... | PypiClean |
/DirectoryStorage-1.1.21.tar.gz/DirectoryStorage-1.1.21/Full.py |
import os, errno, time, sys, string, struct, md5, cPickle, random, re
import cStringIO
from ZODB import POSException
from ZODB import TimeStamp
from ZODB.ConflictResolution import ConflictResolvingStorage, ResolvedSerial
from BaseDirectoryStorage import BaseDirectoryStorage
from utils import z16, z64, z128, OMAGIC,... | PypiClean |
/FFTA-0.3.5.1-py3-none-any.whl/ffta/nfmd/NFMD.py | import numpy as np
import torch
import time
class NFMD:
def __init__(self, signal, num_freqs, window_size,
windows=None,
optimizer=torch.optim.SGD,
optimizer_opts={'lr': 1e-4},
max_iters=1000,
target_loss=1e-4,
d... | PypiClean |
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/models/data_stream.py | from sqlalchemy.orm import relationship, Mapped
from sqlalchemy import (Column, Integer, String,
Boolean, Enum, ForeignKey, DateTime)
from sqlalchemy.dialects.postgresql import BIGINT
from typing import List, Dict, Optional, TYPE_CHECKING
import configparser
import enum
import re
from operator i... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/data/oweditdomain.py | import warnings
from xml.sax.saxutils import escape
from itertools import zip_longest, repeat, chain
from contextlib import contextmanager
from collections import namedtuple, Counter
from functools import singledispatch, partial
from typing import (
Tuple, List, Any, Optional, Union, Dict, Sequence, Iterable, Named... | PypiClean |
/HuTao%20agent-1.0.3.tar.gz/HuTao agent-1.0.3/walnut_agent/common/Fzpagpoco.py | __author__ = 'paomian'
import logging
from airtest.core.api import *
class PKpoco(object):
@property
def platform(self):
return self.Spoco.desired_capabilities['platformName']
def __init__(self, spoco):
self.Spoco = spoco
def is_element_text_exists(self, text):
"""
... | PypiClean |
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/sync.py | import asyncio
import functools
import inspect
from . import events, errors, utils, connection
from .client.account import _TakeoutClient
from .client.telegramclient import TelegramClient
from .tl import types, functions, custom
from .tl.custom import (
Draft,
Dialog,
MessageButton,
Forward,
Button... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/poco/sdk/interfaces/input.py | __author__ = 'lxn3032'
import warnings
class InputInterface(object):
"""
This is one of the main communication interfaces. This interface ensures the ability for simulated input on target
device. So far, the interface supports only some basic methods definitions. The motion event will be added in future
... | PypiClean |
/FC%20CloudTrails%20SDK-1.0.4.tar.gz/FC CloudTrails SDK-1.0.4/fc/cloudtrailsdk/utils/functions.py | import json
import os
import logging
import sys
import traceback
from fc.cloudtrailsdk.client.tracker import Tracker
from fc.cloudtrailsdk.model.event import Event, ExceptionEvent, DependencyEvent
logger = logging.getLogger(__name__)
def configure_tracker(app_name="", app_version="", tracker_environment=None):
... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/kn.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 |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/src/locale/bootstrap-table-fr-CH.js | $.fn.bootstrapTable.locales['fr-CH'] = {
formatCopyRows () {
return 'Copy Rows'
},
formatPrint () {
return 'Print'
},
formatLoadingMessage () {
return 'Chargement en cours'
},
formatRecordsPerPage (pageNumber) {
return `${pageNumber} lignes par page`
},
formatShowingRows (pageFrom, pag... | PypiClean |
/morelia-0.9.2-py3-none-any.whl/morelia/matchers.py | r"""
Steps
=====
.. _matching-steps:
Matching steps
--------------
When Morelia executes steps described in feature files it looks
inside passed :py:class:`unittest.TestCase` object and search for methods
which name starts with `step_`. Then it selects correct method using:
* `Regular expressions`_
* `Format-like s... | PypiClean |
/HafrenHaver-1.0.277.tar.gz/HafrenHaver-1.0.277/README.md | # HafrenHaver
Arcane Audio-Visual Computations
==========
[](https://circleci.com/gh/InnovAnon-Inc/HafrenHaver)
[:
"""
Mixin for handling form submissions.
"""
form_class = None
"""
Set this to the form class (WTForms) you want to use.
.. seealso:: http://wtforms.simplecodes.com/
... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/image/FlickrBadge.js.uncompressed.js | define("dojox/image/FlickrBadge", ["dojo", "dojox/main", "dojox/image/Badge", "dojox/data/FlickrRestStore"], function(dojo, dojox){
dojo.getObject("image", true, dojox);
return dojo.declare("dojox.image.FlickrBadge", dojox.image.Badge, {
children: "a.flickrImage",
// userid: String
// If you know your Flic... | PypiClean |
/Gbtestapi-0.1a10-py3-none-any.whl/gailbot/core/utils/download.py |
import shutil
from typing import List
from tqdm.auto import tqdm
import requests
from zipfile import ZipFile
import os
import socket
from .logger import makelogger
logger = makelogger("download")
def download_from_urls(
urls: List[str], download_dir: str, unzip: bool = True, chunkSize: int = 8192
) -> List[str]... | PypiClean |
/Cosmos_Coin_Masternode_Setup-1.1.0-py3-none-any.whl/MasternodeSetup/masternode.py |
# MIT License
#
# Copyright (c) 2018 Cosmos Coin Developers, https://cosmoscoin.co/
#
# 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 ri... | PypiClean |
/BlazeWeb-0.6.2-py3-none-any.whl/blazeweb/utils/filesystem.py | import os
from os import path
from shutil import copy2, copystat, rmtree
from blazeutils import NotGiven
from blazeweb.globals import settings
from blazeweb.hierarchy import list_component_mappings, hm
__all__ = [
'mkdirs',
'copy_static_files',
]
class Error(EnvironmentError):
pass
try:
WindowsErr... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/has-unicode/README.md | has-unicode
===========
Try to guess if your terminal supports unicode
```javascript
var hasUnicode = require("has-unicode")
if (hasUnicode()) {
// the terminal probably has unicode support
}
```
```javascript
var hasUnicode = require("has-unicode").tryHarder
hasUnicode(function(unicodeSupported) {
if (unicodeSu... | PypiClean |
/lib/Utils/__init__.py | from __future__ import absolute_import, division, print_function
import sys
import json
import itertools
from socket import timeout as socket_timeout
try:
from urllib.request import urlopen
from urllib.error import URLError
except ImportError:
from urllib2 import urlopen, URLError
# Functions
def get_py... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/db/backends/spatialite/base.py | from ctypes.util import find_library
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.backends.sqlite3.base import (
DatabaseWrapper as SQLiteDatabaseWrapper,
)
from .client import SpatiaLiteClient
from .features import DatabaseFeatures
from .introspection im... | PypiClean |
/ETSProjectTools-0.6.0.tar.gz/ETSProjectTools-0.6.0/enthought/proxy/util.py |
import os
import urllib2
from connect_HTTP_handler import ConnectHTTPHandler
from connect_HTTPS_handler import ConnectHTTPSHandler
def install_proxy_handlers(pinfo, cfg=None):
"""
Use a proxy for future urllib2.urlopen commands.
The specified pinfo should be a dictionary containing the following:
... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/es_AR.py |
languages={'gv': u'ga\xe9lico man\xe9s', 'gu': u'goujarat\xed', 'gd': u'ga\xe9lico escoc\xe9s', 'ga': u'irland\xe9s', 'gl': 'gallego', 'la': u'lat\xedn', 'ln': 'lingala', 'lo': 'laosiano', 'tt': u't\xe1taro', 'tr': 'turco', 'ts': 'tsonga', 'lv': 'letonio', 'lt': 'lituano', 'th': u'tailand\xe9s', 'ti': 'tigrinya', 'te'... | PypiClean |
/InsightIDR4Py-0.3.1.tar.gz/InsightIDR4Py-0.3.1/README.md | # InsightIDR4Py
A Python client allowing simplified interaction with Rapid7's InsightIDR REST API.
InsightIDR4Py allows users to perform numerous actions within Rapid7 [InsightIDR](https://docs.rapid7.com/insightidr/). This tool handles some of the challenges and complexities of using the InsightIDR REST API, includin... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/hris/model/sync_status.py | import re # noqa: F401
import sys # noqa: F401
from typing import (
Optional,
Union,
List,
Dict,
)
from MergePythonSDK.shared.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
OpenApiModel,
change_keys_js_to_python,... | PypiClean |
/ELDAM_LCA-1.0-py3-none-any.whl/eldam/core/parameters.py | from collections import OrderedDict
from openpyxl.utils import quote_sheetname
from eldam.utils.misc import find_data_file
from eldam.settings import ELDA_TEMPLATE_VERSION
ELDA_TEMPLATE_FILEPATH = find_data_file('files/EldaTemplate.xlsm')
ELDA_INDEX_FILEPATH = find_data_file('files/EldaIndex.xlsx')
JINJA2_TEMPLATES_... | PypiClean |
/ATpy-0.9.7.tar.gz/ATpy-0.9.7/docs/developers.rst | ======================
Custom reading/writing
======================
One of the new features introduced in ATpy 0.9.2 is the ability for users to write their own read/write functions and *register* them with ATpy. A read or write function needs to satisfy the following requirements:
* The first argument should be a `... | PypiClean |
/GS-PRACTICE-1.0.1.tar.gz/GS-PRACTICE-1.0.1/src/gspractice/run_gspractice.py | import os
import sys
import argparse
import logging
logger = logging.getLogger(__name__)
#logger.setLevel(logging.INFO)
import warnings
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from collections import Counter
import rpy2.robjects as robjects
from rpy2.robjects import pandas2ri
pandas2ri.ac... | PypiClean |
/HolmesV-2021.10.8.tar.gz/HolmesV-2021.10.8/mycroft/client/text/text_client.py | import sys
import io
from math import ceil
import xdg.BaseDirectory
from mycroft.client.text.gui_server import start_qml_gui
from mycroft.tts import TTS
import os
import os.path
import time
import curses
import textwrap
import json
import mycroft.version
from threading import Thread, Lock
from mycroft.messagebus.cli... | PypiClean |
/OSG-Gratia-Viewer-0.1.tar.gz/OSG-Gratia-Viewer-0.1/src/gratia/tools/gridscan_download.py |
import sys, urllib, urllib2, datetime, time
try:
from pysqlite2 import dbapi2 as sqlite
sqlite_present = True
except Exception, e:
sqlite_present = False
try:
import sqlite3 as sqlite
sqlite_present = True
except:
pass
def do_excuse(line):
if line.find("Checking for O... | PypiClean |
/DDLJ-0.0.3-py3-none-any.whl/DDLj/DDLj.py |
import json
import pandas as pd
import re
from flatten_json import flatten,unflatten
temp=[]
DDF_list=[]
ColList=[]
Domain_Com=[]
MinMaxList=[]
colBuild=''
sqlstring=''
colName=''
ArrayList=[]
Empty_Df=[]
#L2P_builder function convert the logical name to physical name using glossary words
#separated by '_', if No gl... | PypiClean |
/Levenshtein-0.19.3-cp310-cp310-macosx_10_9_x86_64.whl/Levenshtein-0.19.3.data/data/README.md | # Levenshtein
<p>
<a href="https://github.com/maxbachmann/Levenshtein/actions">
<img src="https://github.com/maxbachmann/Levenshtein/workflows/Build/badge.svg"
alt="Continous Integration">
</a>
<a href="https://pypi.org/project/levenshtein/">
<img src="https://img.shields.io/pypi/v/levenshtein"
... | PypiClean |
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/recurrence_repetition_update.py | import re # noqa: F401
import sys # noqa: F401
from firefly_iii_client.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,... | PypiClean |
/BootstrapPy-0.6.tar.gz/BootstrapPy-0.6/bootstrappy/templates/+package+/static/js/i18n/grid.locale-he.js | ;(function($){
/**
* jqGrid Hebrew Translation
* Shuki Shukrun shukrun.shuki@gmail.com
* http://trirand.com/blog/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
**/
$.jgrid = $.jgrid || {};
$.extend($.jgrid,{
defaults :... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/site/content/docs/5.0/utilities/vertical-align.md | ---
layout: docs
title: Vertical alignment
description: Easily change the vertical alignment of inline, inline-block, inline-table, and table cell elements.
group: utilities
---
Change the alignment of elements with the [`vertical-alignment`](https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align) utilities. ... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.