id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/ui/select.py | from warnings import warn
from muntjac.event import field_events
from muntjac.data.util.filter.simple_string_filter import SimpleStringFilter
from muntjac.data.container import IContainer, IFilterable, IIndexed
from muntjac.ui import abstract_select
from muntjac.event.field_events import \
FocusEvent, BlurEvent, ... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/modules/unmixcolors.py | import math
import numpy
import scipy.linalg
from cellprofiler_core.image import Image
from cellprofiler_core.module import Module
from cellprofiler_core.preferences import get_default_image_directory
from cellprofiler_core.setting import Divider
from cellprofiler_core.setting import HiddenCount
from cellprofiler_core... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/html5lib/filters/sanitizer.py | from __future__ import absolute_import, division, unicode_literals
import re
from xml.sax.saxutils import escape, unescape
from pip._vendor.six.moves import urllib_parse as urlparse
from . import base
from ..constants import namespaces, prefixes
__all__ = ["Filter"]
allowed_elements = frozenset((
(namespaces[... | PypiClean |
/Catactor-0.1.2.tar.gz/Catactor-0.1.2/shell_scripts/preprocessing_one_to_multi/visualization_BICCN_multi.sh | set -euxo pipefail
echo $PATH
sf_marker='GABAergic_markers_fc.txt,Glutamatergic_markers_fc.txt,Non.Neuronal_markers_fc.txt'
ta_marker='tasic2016_gaba.csv,tasic2016_glu.csv,tasic2016_gli.csv'
cu_marker='cusanovich2018_inh.txt,cusanovich2018_ext.txt,cusanovich2018_gli.txt'
tn_marker='tasic2018_gaba.txt,tasic2018_glu.txt,... | PypiClean |
/BlueWhale3_Network-1.4.2-cp38-cp38-macosx_10_9_x86_64.whl/orangecontrib/network/widgets/OWNxGroups.py | import numpy as np
import scipy.sparse as sp
from Orange.data import DiscreteVariable, Table, Domain
from Orange.widgets import gui
from Orange.widgets.settings import ContextSetting, DomainContextHandler, \
Setting
from Orange.widgets.utils.itemmodels import DomainModel
from Orange.widgets.widget import Input, Ou... | PypiClean |
/DeSide-1.0.2.tar.gz/DeSide-1.0.2/README.md | # DeSide: Cellular Deconvolution of Bulk RNA-seq
<img src="https://raw.githubusercontent.com/OnlyBelter/DeSide/main/docs/_static/logo.png" width="300">


 any later version.
#
# The BPMN-RPA O... | PypiClean |
/parts/Top/Glasses/Prescription1.py | def Prescription1():
return (
'<defs>'
' <filter id="filter0_d_0_1716" x="8" y="8.00009" width="125.932" height="39.8202" filterUnits="userSpaceOnUse"'
' color-interpolation-filters="sRGB">'
' <feFlood flood-opacity="0" result="BackgroundImageFix" />'
' ... | PypiClean |
/Elpotrero-1.6.2.tar.gz/Elpotrero-1.6.2/elpotrero/_files/tree/scripts/tools/config/configurationvalues.py | import os
import sys
import yaml
import shyaml
import elpotrero.lib.util as elutil
# Note: configuration file for this tool and all other tools in this directory
_TOOLSCONFIG = "tools.config.yaml"
def _here():
"""standard "here" helper function"""
return os.path.dirname(os.path.realpath(__file__))
def load... | PypiClean |
/Lurlene-14-py3-none-any.whl/lurlene/parse.py |
# This file is part of Lurlene.
#
# Lurlene is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Lurlene is distributed in the hope tha... | PypiClean |
/MDAKit-1.0.0-py3-none-any.whl/MDKit/tools/dssp.py | import argparse
import os
import sys
from pandas import DataFrame
from mdtraj import load, compute_dssp
from MDAnalysis import Universe
from numpy import sum
# Full mode: 7
comment7 = [
"#'H' : Alpha helix",
"#'B' : Residue in isolated beta-bridge",
"#'E' : Extended strand, participates in beta ladder",
... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/hilbert/fock.py |
from typing import List, Optional, Union
from functools import partial
import numpy as np
from numba import jit
from .homogeneous import HomogeneousHilbert
FOCK_MAX = np.iinfo(np.intp).max - 1
"""
Maximum number of particles in the fock space.
It is `maxvalue(np.int64)-1` because we use N+1 in several formulas
and ... | PypiClean |
/KDVS-2.0.0.tar.gz/KDVS-2.0.0/kdvs/tools/v1vs2/err_stats.py |
r"""
Check if all statistical details of :class:`~kdvs.fw.impl.stat.L1L2.L1L2_L1L2`
are reported in the same way (up to those elements that are present in both v1 and v2).
"""
import csv
import os
import pprint
dir10_root = '/home/grzegorz/KDVS2.0-1vs2/1.0/feb465c2b89611e2bf935cf9dd7722c1_disk_data/'
dir10_data = '/h... | PypiClean |
/Flask-CMS-XP-0.1.0.tar.gz/Flask-CMS-XP-0.1.0/admin/user.py |
import json
from flask import request,session,render_template,\
redirect, url_for
from .admin_app import admin_app
from models import User
from libs import db, csrf
from flask import jsonify
from forms.account_form import AdminEditInfoForm
@admin_app.route("/user/list/<int:page>", methods=['get', ... | PypiClean |
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imscripting/view/EditorView.py | import uuid
from PyQt5 import Qsci
from qtpy import QtCore, QtGui, QtWidgets
from .guitools import BetterPushButton
class EditorView(QtWidgets.QTabWidget):
""" View that displays a variable amount of editor instances in different
tabs, where the user can edit scripts. """
sigRunAllClicked = QtCore.Sign... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/layout/RotatorContainer.js | define("dojox/layout/RotatorContainer",["dojo/_base/declare","dojo/_base/html","dojo/_base/connect","dojo/_base/lang","dojo/_base/array","dojo/_base/fx","dojo/fx","dijit/_base/manager","dijit/layout/StackContainer","dijit/layout/StackController","dijit/_Widget","dijit/_Templated","dijit/_Contained"],function(_1,_2,_3,_... | PypiClean |
/ImpactEffect-0.0.3-py3-none-any.whl/impactEffects/utils/print.py | from impactEffects.core.config import *
def print_energy(energy0, energy0_megatons):
energy_power = log(energy0)/log(10)
energy_power = int(energy_power)
energy0 /= 10**energy_power
megaton_power = log(energy0_megatons)/log(10)
megaton_power = int(megaton_power)
energy0_megatons /= 10**megato... | PypiClean |
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/imports/G2pwd_FP.py | from __future__ import division, print_function
import os.path as ospath
import numpy as np
import GSASIIobj as G2obj
import GSASIIpath
GSASIIpath.SetVersionNumber("$Revision: 1620 $")
class fp_ReaderClass(G2obj.ImportPowderData):
'Routines to import powder data from a FullProf 1-10 column .dat file'
def __init... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/_editor/plugins/FontChoice.js.uncompressed.js | define("dijit/_editor/plugins/FontChoice", [
"dojo/_base/array", // array.indexOf array.map
"dojo/_base/declare", // declare
"dojo/dom-construct", // domConstruct.place
"dojo/i18n", // i18n.getLocalization
"dojo/_base/lang", // lang.delegate lang.hitch lang.isString
"dojo/store/Memory", // MemoryStore
"dojo/_bas... | PypiClean |
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/_text_helpers.py | import dataclasses
from . import _api
from .ft2font import KERNING_DEFAULT, LOAD_NO_HINTING
LayoutItem = dataclasses.make_dataclass(
"LayoutItem", ["char", "glyph_idx", "x", "prev_kern"])
def warn_on_missing_glyph(codepoint):
_api.warn_external(
"Glyph {} ({}) missing from current font.".format(
... | PypiClean |
/BanditBear-0.10.0.tar.gz/BanditBear-0.10.0/coalaBanditBear/BanditBear.py | import json
from coalib.bearlib.abstractions.Linter import linter
from dependency_management.requirements.PipRequirement import PipRequirement
from coalib.results.Result import Result
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
from coalib.settings.Setting import typed_list
@linter(executable='bandit'... | PypiClean |
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/experiment_planning/experiment_planner_baseline_3DUNet_v21.py |
from copy import deepcopy
import numpy as np
from CartiMorph_nnUNet.experiment_planning.common_utils import get_pool_and_conv_props
from CartiMorph_nnUNet.experiment_planning.experiment_planner_baseline_3DUNet import ExperimentPlanner
from CartiMorph_nnUNet.network_architecture.generic_UNet import Generic_UNet
from C... | PypiClean |
/Flask-Celery-Tools-1.4.1.tar.gz/Flask-Celery-Tools-1.4.1/flask_celery/backends/database/__init__.py |
from contextlib import contextmanager
from datetime import datetime, timedelta
from sqlalchemy.exc import IntegrityError, ProgrammingError
from flask_celery.backends.base import LockBackend
from flask_celery.backends.database.models import Lock
from flask_celery.backends.database.sessions import SessionManager
cla... | PypiClean |
/Canto-0.9.8.tar.gz/Canto-0.9.8/canto_next/server.py |
#Canto - RSS reader backend
# Copyright (C) 2016 Jack Miller <jack@codezen.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
from .protocol import CantoSocket
from .hoo... | PypiClean |
/Discord%20Anti-Spam-1.8.1.tar.gz/Discord Anti-Spam-1.8.1/antispam/libs/lib_hikari.py | import asyncio
import datetime
import logging
from typing import Dict, Optional, Union, List
from unittest.mock import AsyncMock
import hikari.errors
from hikari import (
ForbiddenError,
GuildTextChannel,
InternalServerError,
NotFoundError,
Permissions,
RateLimitTooLongError,
UnauthorizedEr... | PypiClean |
/HillTau-1.0.tar.gz/HillTau-1.0/htgraph.py | '''
2021
Mar 31
sub->prd is connected with double arrow,
ligand with single arrow,
inhibit with tee and
modifier with diamond
legends and constant are added
Apr 7: group is added
Apr 8: eqns added with pluse and sigma
May 4: HillTau API is called for reading json file
May 10:
added matplotlib for getting colors... | PypiClean |
/CustomizableSocketServer-2.3.0.tar.gz/CustomizableSocketServer-2.3.0/README.md | # What is this project?
I will be creating a TCP server which can coordinate and maintain connections on several clients. Using selectors
# Some Notes:
1. must generate a private key and cert with openssl to use the server
2. the BaseSocket class is very bare bones, by design. It includes a connection sequence and an ... | PypiClean |
/Bravo-2.0.tar.gz/Bravo-2.0/bravo/region.py | from gzip import GzipFile
from StringIO import StringIO
from struct import pack, unpack
class MissingChunk(Exception):
"""
The requested chunk isn't in this region.
"""
class Region(object):
"""
An MCRegion-style paged chunk file.
"""
free_pages = None
positions = None
def __init... | PypiClean |
/Microsoft-AI-Azure-Utility-Samples-0.3.7.tar.gz/Microsoft-AI-Azure-Utility-Samples-0.3.7/azure_utils/configuration/configuration_ui.py | from tkinter import Frame, TRUE, Label, Text, END, Button
from tkinter import messagebox
from azure_utils.configuration.configuration_validation import Validation, ValidationResult
from azure_utils.configuration.project_configuration import ProjectConfiguration
class SettingsUpdate(Frame):
"""
UI Wrapper... | PypiClean |
/Flask-AppBuilder-red-2.1.13.tar.gz/Flask-AppBuilder-red-2.1.13/flask_appbuilder/const.py | from flask_babel import lazy_gettext
"""
All constants and messages definitions go here
Log messages obey the following rule:
LOGMSG_<SEV>_<MODULE>_<NAME>
<SEV> :- INF | DEB | WAR | ERR
<MODULE> :- SEC
Flash messages obey the following rule:
FLAMSG_<SEV>_<MODULE>... | PypiClean |
/AIKIF-0.2.2.tar.gz/AIKIF-0.2.2/aikif/toolbox/text_tools.py |
def parse_text_to_table(txt):
"""
takes a blob of text and finds delimiter OR guesses
the column positions to parse into a table.
input: txt = blob of text, lines separated by \n
output: res = table of text
"""
res = [] # resulting table
delim = identify_delim(txt)
... | PypiClean |
/Frontiersman-2.0.2-py3-none-any.whl/frontiersman/Player.py | class PlayerResourceHand:
def __init__(self):
self.brick = 0
self.grain = 0
self.lumber = 0
self.ore = 0
self.wool = 0
self.totalResources = 0
def update(self):
self.totalResources = self.brick + self.grain + self.lumber + self.ore + self.wool
class Pla... | PypiClean |
/MokaPlayer-0.8.5.7.tar.gz/MokaPlayer-0.8.5.7/mokaplayer/core/player.py | import datetime
import gzip
import json
import logging
import pathlib
import time
from threading import Thread
from mokaplayer.core.helpers.event import Event
from mokaplayer.core.keyboard import KeyboardClient
from mokaplayer.core.library import Library
from mokaplayer.core.queue import Queue
from mokaplayer.core.str... | PypiClean |
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/adapters/__init__.py |
# Copyright 2011 Fanficdownloader team, 2020 FanFicFare team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | PypiClean |
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/chemdataextractor/biblio/xmp.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from collections import defaultdict
from lxml import etree
RDF_NS = '{http://www.w3.org/1999/02/22-rdf-syntax-ns#}'
XML_NS = '{http://www.w3.org/XML/1998/namespace}'
NS... | PypiClean |
/Flask-httpretty-1.3.0.tar.gz/Flask-httpretty-1.3.0/flask_httpretty/core.py | import functools
import httpretty.core as core
from httpretty.core import httpretty, URIInfo, fakesock, Entry
from httpretty.compat import ClassTypes, urlsplit
from httpretty.http import parse_requestline
from httpretty.utils import decode_utf8, utf8
old_fakesocket_sendall = fakesock.socket.sendall
def f_sendall(... | PypiClean |
/Flashflood-0.13.0.tar.gz/Flashflood-0.13.0/flashflood/core/edge.py |
from tornado import gen
from tornado.queues import Queue
from flashflood import functional
from flashflood.lod import ListOfDict
class IterEdge(object):
"""Synchronous data flow edge
Attributes:
status (text): ``ready``, ``done`` or ``aborted``
records (iterable): records store
fiel... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Tool/clangxx.py | #
# Copyright (c) 2001 - 2019 The SCons Foundation
#
# 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... | PypiClean |
/DeepXDE-1.9.3-py3-none-any.whl/deepxde/geometry/sampler.py | __all__ = ["sample"]
import numpy as np
import skopt
from .. import config
def sample(n_samples, dimension, sampler="pseudo"):
"""Generate pseudorandom or quasirandom samples in [0, 1]^dimension.
Args:
n_samples (int): The number of samples.
dimension (int): Space dimension.
sampler... | PypiClean |
/ACME%20oneM2M%20CSE-0.3.0.tar.gz/ACME oneM2M CSE-0.3.0/acme/SecurityManager.py |
from Logging import Logging
from Constants import Constants as C
import CSE
from Configuration import Configuration
class SecurityManager(object):
def __init__(self):
Logging.log('SecurityManager initialized')
if Configuration.get('cse.enableACPChecks'):
Logging.log('ACP checking ENABLED')
else:
Loggin... | PypiClean |
/AutoMapDB-0.1.5-py3-none-any.whl/automapdb/utils.py | import functools
import json
import logging
import os
import sys
from pprint import pformat
from typing import Any, Callable
from xml.dom import minidom
import yaml
log = logging.getLogger(__name__)
def set_logger(lvl, log_file="/tmp/automapdb.log"):
sys.tracebacklimit = None if lvl == "DEBUG" else 0
numlvl... | PypiClean |
/Binomialdistributions2021-0.1.tar.gz/Binomialdistributions2021-0.1/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
stde... | PypiClean |
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/bundles/security/services/security_service.py | from datetime import timedelta
from flask import current_app as app, session
from flask_login.signals import user_logged_in
from flask_login.utils import logout_user as _logout_user
from flask_principal import Identity, AnonymousIdentity, identity_changed
from flask_unchained import url_for, lazy_gettext as _
from flas... | PypiClean |
/MySQL-python-vincent-1.2.5.tar.gz/MySQL-python-vincent-1.2.5/doc/user_guide.rst | ====================
MySQLdb User's Guide
====================
.. contents::
..
Introduction
------------
MySQLdb is an thread-compatible interface to the popular MySQL
database server that provides the Python database API.
Installation
------------
The ``README`` file has complete installation instructions.
_my... | PypiClean |
/AaronTools-1.0b14.tar.gz/AaronTools-1.0b14/ring.py |
import itertools
import os
import re
from glob import glob
from AaronTools.const import AARONLIB, AARONTOOLS
from AaronTools.fileIO import FileReader, read_types
from AaronTools.geometry import Geometry
class Ring(Geometry):
"""
Attributes:
name
atoms
end
"""
AARON_LIBS = os... | PypiClean |
/Flask-Triangle-OctoKrishna-0.5.5.tar.gz/Flask-Triangle-OctoKrishna-0.5.5/flask_triangle/modifiers/patterns.py | from __future__ import absolute_import
from ..modifier import Modifier
class Regexp(Modifier):
"""
Adds a regular expresion constraint to an input.
..note: This validator does not support string format.
"""
def __init__(self, regexp, client=True):
"""
:arg regexp: A ``regular exp... | PypiClean |
/Helios_Scanner-1.1-py3-none-any.whl/helios/ext/libcms/cms_scanner_core.py | import os
import logging
import sys
from helios.ext.libcms.detector import CMSDetector
# Main module loader for CMS Scanners
class CustomModuleLoader:
folder = ""
blacklist = ['cms_scanner.py', '__init__.py']
modules = []
logger = None
is_aggressive = False
module = None
# common paths fo... | PypiClean |
/NEMO_CE-1.6.12-py3-none-any.whl/NEMO/views/event_details.py | from django.contrib.auth.decorators import login_required
from django.http import HttpResponseNotFound
from django.shortcuts import get_object_or_404, render
from django.views.decorators.http import require_GET
from NEMO.models import AreaAccessRecord, Reservation, ScheduledOutage, TrainingEvent, UsageEvent
from NEMO.... | PypiClean |
/ApeMan-0.1.1.tar.gz/ApeMan-0.1.1/readme.rst | ------------
Introduction
------------
This package provides a form of layer management for Python.
It transparently substitutes an existing module with ones patch thereof.
This `normalizes` or `standardizes` the original modules across ones code base.
ApeMan intercepts ones ``import`` calls to substitute the desired... | PypiClean |
/Lantz-0.3.zip/Lantz-0.3/lantz/drivers/legacy/prior/nanoscanz.py | from lantz import Action, Feat
from lantz.drivers.legacy.serial import SerialDriver
from lantz.errors import InstrumentError
class NanoScanZ(SerialDriver):
"""Driver for the NanoScanZ Nano Focusing Piezo Stage from Prior.
"""
ENCODING = 'ascii'
RECV_TERMINATION = '\r'
SEND_TERMINATION = '\r'
... | PypiClean |
/GISAXS_XPCS-0.2.5.tar.gz/GISAXS_XPCS-0.2.5/gisaxs_xpcs/manage_h5_data.py |
from typing import List
from pathlib import Path
import numpy as np
import h5py
from tqdm import tqdm
from .common_tools import get_zaptime_files, save_create, measure_speed
from .read_edf import read_edf_gz
from .gisaxs_parameters import GisaxsParameters
__all__ = ['h5_manager']
class H5PathNotProvidedError(Valu... | PypiClean |
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/scenario/README.md | Scenario
========
## Overview
By default CloudFerry tool is going to migrate resources and instances,
specified in the filter config file, from the source cloud to the destination
cloud.
Default location of filter config file is `configs/filter.yaml`, but it always
can be changed by modifying main configuration file ... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/configforms/views.py |
import logging
from django.http import (Http404, HttpResponse, HttpResponseBadRequest,
HttpResponseRedirect)
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_protect
from django.views.generic.base import TemplateView
logger = logging.getLogg... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/rate_version_response.py |
from msrest.serialization import Model
class RateVersionResponse(Model):
"""RateVersionResponse.
:param version_id: ID of the rate schedule version
:type version_id: int
:param begin_date: Begin date for the version
:type begin_date: datetime
:param end_date: End date for the version
:ty... | PypiClean |
/HPI-0.3.20230327.tar.gz/HPI-0.3.20230327/my/bluemaestro.py | # todo most of it belongs to DAL... but considering so few people use it I didn't bother for now
from datetime import datetime, timedelta
from pathlib import Path
import re
import sqlite3
from typing import Iterable, Sequence, Set, Optional
from my.core import get_files, LazyLogger, dataclass, Res
from my.core.sqlite ... | PypiClean |
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/static/kqwebclient/leaflet/3rd_libs/leaflet-icon-pulse/L.Icon.Pulse.js | (function(window) {
L.Icon.Pulse = L.DivIcon.extend({
options: {
className: '',
iconSize: [12,12],
fillColor: 'red',
color: 'red',
animate: true,
heartbeat: 1,
},
initialize: function (options) {
L.setOpti... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/chardet/langcyrillicmodel.py |
# KOI8-R language model
# Character Mapping Table:
KOI8R_char_to_order_map = (
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, # 10
253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253, # 20
252,252,252,252,252,252,252... | PypiClean |
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/samples/fft.py |
import sys
try:
import FFT
except ModuleNotFoundError:
print("Module FFT not found, cannot continue")
sys.exit(1)
from osgeo import gdal
# =============================================================================
def Usage():
print("Usage: fft.py [-inv] [-of out_format] [-ot out_type] infile ou... | PypiClean |
/Mathexs-0.0.3.tar.gz/Mathexs-0.0.3/README.txt | Version : 0.0.1
Hello,
Here is the README to how to use the _package "Mathex"
So first we have 3 class:
- Operator
- ProblemRandom = No Function Definied
- DrawPos.Library = Only Shape.Circle(Size, TextColor, TimeToWait, Speed,BackgroundColor)
How use DrawPos.Library.Shape.Circle(Size, TextColor, TimeToWait, Speed,Ba... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/a11yhelp/dialogs/lang/fi.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("a11yhelp","fi",{title:"Saavutettavuus ohjeet",contents:"Ohjeen sisällöt. Sulkeaksesi tämän dialogin paina ESC.",legend:[{name:"Y... | PypiClean |
/DingCrypto-1.13.tar.gz/DingCrypto-1.13/DingCrypto.py | import StringIO, base64, binascii, hashlib, string, struct
from random import choice
from Crypto.Cipher import AES
class DingCrypto:
def __init__(self, encodingAesKey, key):
self.encodingAesKey = encodingAesKey
self.key = key
self.aesKey = base64.b64decode(self.encodingAesKey + '=')
... | PypiClean |
/FinvoiceLib-0.1.13.tar.gz/FinvoiceLib-0.1.13/finvoicelib/elements/invoice.py |
from finvoicelib.elements import CurrencyElement
from finvoicelib.elements import DateElement
from finvoicelib.elements import Element
from finvoicelib.elements.seller import SellerReferenceIdentifier
class InvoiceDate(DateElement):
"""
InvoiceDate
"""
tag = 'InvoiceDate'
class InvoiceTypeCode(Ele... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/js/common/custom.js | let pikaDayInstances = []
let flatpickrInstances = []
let flatpickrInstancesNoMin = []
let formBuilderDatePickers = []
window.URL = window.URL || window.webkitURL;
function toggleSideBar (event) {
const sideBar = document.querySelector('.srm-sidebar-full-container')
if (sideBar.classList.contains('srm-open')... | PypiClean |
/NehorayRapid-0.0.1-py3-none-any.whl/mmedit/core/evaluation/metric_utils.py | import cv2
import numpy as np
def gaussian(x, sigma):
"""Gaussian function.
Args:
x (array_like): The independent variable.
sigma (float): Standard deviation of the gaussian function.
Return:
ndarray or scalar: Gaussian value of `x`.
"""
return np.exp(-x**2 / (2 * sigma**... | PypiClean |
/DataEngineer-0.2.9.tar.gz/DataEngineer-0.2.9/pkgs/dataengineer/datacls.py | from ipylib.idebug import *
from dataengineer.base import *
__all__ = ['BaseDataClass']
class BaseDataClass(BaseClass):
# 데이타-타입 파싱은 직접한 후에, 데이타-클래스로 만들어라. 여기서 파싱 안한다.
# @funcIdentity
def __init__(self, datanm=None, **doc):
self._set_name(datanm)
self.setup(**doc)
@property
de... | PypiClean |
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/doctrees/nbsphinx/_build/html/_build/doctrees/nbsphinx/_build/html/hn_module_tutorial.ipynb | # Tutorial for the HN module of HavNegpy package
```
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
import HavNegpy as dd
%matplotlib qt
os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44')
def create_dataframe(f):
col_names = ['Freq', 'T', 'Eps1', 'Eps2']
#f ... | PypiClean |
/AaronTools-1.0b14.tar.gz/AaronTools-1.0b14/component.py | import os
import re
import numpy as np
from AaronTools.const import (
AARONLIB,
AARONTOOLS,
BONDI_RADII,
ELEMENTS,
VDW_RADII,
)
from AaronTools.fileIO import read_types
from AaronTools.finders import BondedTo, CloserTo, NotAny
from AaronTools.geometry import Geometry
from AaronTools.substituent im... | PypiClean |
/ComponentDB-CLI-3.15.5.tar.gz/ComponentDB-CLI-3.15.5/cdbCli/service/cli/cdbCliCmnds/setItemLocation.py |
import sys
import re
import csv
from tkinter.messagebox import NO
import click
from cdbApi import SimpleLocationInformation
from cdbApi import ApiException
from rich import print
from cdbCli.common.cli import cliBase
from cdbCli.common.cli.cliBase import CliBase
from cdbCli.service.cli.cdbCliCmnds.setItemLogById imp... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/utils/MemoryUsage.py | from nuitka.containers.OrderedDicts import OrderedDict
from nuitka.Tracing import memory_logger, printLine
from .Utils import isMacOS, isWin32Windows
def getOwnProcessMemoryUsage():
"""Memory usage of own process in bytes."""
if isWin32Windows():
# adapted from http://code.activestate.com/recipes/57... | PypiClean |
/Flask-AppBuilder-redirect-2.1.13.tar.gz/Flask-AppBuilder-redirect-2.1.13/flask_appbuilder/api/__init__.py | import functools
import logging
import re
import traceback
from apispec import yaml_utils
from flask import Blueprint, current_app, jsonify, make_response, request
from flask_babel import lazy_gettext as _
import jsonschema
from marshmallow import ValidationError
from marshmallow_sqlalchemy.fields import Related, Rela... | PypiClean |
/EModelRunner-1.1.16.tar.gz/EModelRunner-1.1.16/emodelrunner/create_hoc_tools.py |
# Copyright 2020-2022 Blue Brain Project / EPFL
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agree... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/oauth2/user.py | from django.contrib.auth import get_user_model
from django.db import IntegrityError, transaction
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
from ..users.setupnewuser import setup_new_user
from .exceptions import OAuth2UserDataValidationError, OAuth2UserIdNotProvidedError
f... | PypiClean |
/IOT3ApiClient-1.0.0.tar.gz/IOT3ApiClient-1.0.0/requests/help.py | from __future__ import print_function
import json
import platform
import sys
import ssl
import idna
import urllib3
from . import __version__ as requests_version
try:
import charset_normalizer
except ImportError:
charset_normalizer = None
try:
import chardet
except ImportError:
chardet = None
try:
... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/glob2/glob2/compat.py |
from collections import namedtuple
from functools import update_wrapper
from threading import RLock
_CacheInfo = namedtuple("CacheInfo", ["hits", "misses", "maxsize", "currsize"])
class _HashedSeq(list):
__slots__ = 'hashvalue'
def __init__(self, tup, hash=hash):
self[:] = tup
self.hashvalue... | PypiClean |
/ChemDataExtractor_c-1.0.0-py3-none-any.whl/chemdataextractor/scrape/base.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from abc import ABCMeta, abstractproperty, abstractmethod
import logging
import requests
import six
log = logging.getLogger(__name__)
class BaseScraper(six.with_metacl... | PypiClean |
/DiscordPyExt-0.0.3-py3-none-any.whl/discordPyExt/setup/deploy.py | import asyncio
import logging
import os
import typing
import sys
from discordPyExt.ext.data import DataLoader
from discordPyExt.setup.extension import DcExtension
from discordPyExt.setup.interface import DcDeployerInterface
from discordPyExt.setup.ext.bot import DeployBot
import inspect
from discordPyExt.ext.storage i... | PypiClean |
/Mr_Demuxy-1.2.2.tar.gz/Mr_Demuxy-1.2.2/README.md |
Mr\_Demuxy
================
A Demultixper for Combinatorially Multiplexed Next Generation Reads
Author: Daniel E. Lefever
Author-email
[lefeverde<span>@</span>gmail<span>.</span>com](mailto:lefeverde%40gmail.com)
License: MIT
Introduction:
-------------
Mr. Demuxy is a fairly simple, self-contained Python ... | PypiClean |
/Cipher_Bot-0.3.2-py3-none-any.whl/Cipher/core/core.py | import asyncio
import re
import aiohttp
import daiquiri
from pkg_resources import iter_entry_points
import Cipher
from Cipher.core.config import CipherConfigFile
from Cipher.core.event import Event, UnexpectedDisconnectEvent, MessageChannelEvent, MessageUserEvent, CommandEvent
from Cipher.core.models import User
cl... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/code_generation/LoaderCodes.py | import sys
from nuitka import Options
from nuitka.ModuleRegistry import (
getDoneModules,
getUncompiledModules,
getUncompiledTechnicalModules,
)
from nuitka.plugins.Plugins import Plugins
from nuitka.PythonVersions import python_version
from nuitka.Tracing import inclusion_logger
from nuitka.utils.CStrings... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/controllers/ralfit_controller.py | import ral_nlls
import numpy as np
from fitbenchmarking.controllers.base_controller import Controller
from fitbenchmarking.utils.exceptions import UnknownMinimizerError
class RALFitController(Controller):
"""
Controller for the RALFit fitting software.
"""
algorithm_check = {
'all': ['gn... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/documentation/USAGE.rst | .. _USAGE:
==========
Using FiPy
==========
This document explains how to use :term:`FiPy` in a practical sense.
To see the problems that :term:`FiPy` is capable of solving, you can
run any of the scripts in the :ref:`examples <part:examples>`.
.. note::
We strongly recommend you proceed through the :ref:`exampl... | PypiClean |
/FLORIS-3.4.1.tar.gz/FLORIS-3.4.1/floris/tools/uncertainty_interface.py |
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
# ... | PypiClean |
/EISeg-1.1.1-py3-none-any.whl/eiseg/inference/clicker.py | import cv2
import numpy as np
from copy import deepcopy
class Clicker(object):
def __init__(self,
gt_mask=None,
init_clicks=None,
ignore_label=-1,
click_indx_offset=0):
self.click_indx_offset = click_indx_offset
if gt_mask is not ... | PypiClean |
/Markdown-Editor-1.0.7.tar.gz/Markdown-Editor-1.0.7/markdown_editor/libs/bootstrap-3.1.1-dist/js/bootstrap.js | if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') }
/* ========================================================================
* Bootstrap: transition.js v3.1.1
* http://getbootstrap.com/javascript/#transitions
* ========================================================... | PypiClean |
/Assessor-0.2.13.tar.bz2/Assessor-0.2.13/tastypie/validation.py | from django.core.exceptions import ImproperlyConfigured
from django.forms import ModelForm
from django.forms.models import model_to_dict
class Validation(object):
"""
A basic validation stub that does no validation.
"""
def __init__(self, **kwargs):
pass
def is_valid(self, bundle, request... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_am-et.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"\u1325\u12cb\u1275",
"\u12a8\u1230\u12d3\u1275"
],
... | PypiClean |
/MSM_PELE-1.1.1-py3-none-any.whl/AdaptivePELE/AdaptivePELE/validator/validatorBlockNames.py | try:
# Check if the basestring type if available, this will fail in python3
basestring
except NameError:
basestring = str
class ControlFileParams:
generalParams = "GeneralParams"
spawningBlockname = "SpawningParams"
simulationBlockname = "SimulationParams"
clusteringBlockname = "clustering... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/nsw74psid3.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def nsw74psid3(path):
"""Labour Training Evaluation Data
These data are pertinent to an invest... | PypiClean |
/NEMO_CE-1.6.12-py3-none-any.whl/NEMO/rates.py | import json
from abc import ABC, abstractmethod
from logging import getLogger
from typing import Dict, List, Union
from django.conf import settings
from NEMO.models import Consumable, Tool
from NEMO.utilities import get_class_from_settings
rates_logger = getLogger(__name__)
class Rates(ABC):
rates = None
@abst... | 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/webhook_trigger.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 |
/Bugs%20Everywhere%20(BEurtle%20fork)-1.5.0.1.-2012-07-16-.zip/Bugs Everywhere (BEurtle fork)-1.5.0.1.-2012-07-16-/libbe/command/commit.py |
import sys
import libbe
import libbe.bugdir
import libbe.command
import libbe.command.util
import libbe.storage
import libbe.ui.util.editor
class Commit (libbe.command.Command):
"""Commit the currently pending changes to the repository
>>> import sys
>>> import libbe.bugdir
>>> bd = libbe.bugdir.Si... | PypiClean |
/Django-Yummy-0.2.6.tar.gz/Django-Yummy-0.2.6/yummy/migrations/0018_auto__chg_field_recipe_price__chg_field_recipe_difficulty.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Recipe.price'
db.alter_column('yummy_recipe', 'price', self.gf('django.db.models.fields.SmallIntegerField')(null=... | PypiClean |
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/toolkits/classifier/decision_tree_classifier.py | import graphlab as _graphlab
import graphlab.connect as _mt
from graphlab.toolkits._model import _get_default_options_wrapper
from graphlab.toolkits._supervised_learning import Classifier as _Classifier
import graphlab.toolkits._supervised_learning as _sl
import graphlab.toolkits._main as _toolkits_main
from graphlab.t... | PypiClean |
/HySpec-0.1.4.4.tar.gz/HySpec-0.1.4.4/spectralAdv/imageViewerDialogs.py | from __future__ import division
import time
import sys
import os
import functools
from math import *
import matplotlib
import matplotlib.pyplot as plt
#matplotlib.use('Qt4Agg')
from spectral import *
import numpy as np
from scipy.optimize import nnls
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWid... | PypiClean |
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/factor/genetic/mutation_factors.py | import numpy as np
import pandas as pd
import gevent.monkey
import multiprocessing
import itertools, time
from .accumulators import accumulators_pool
from ...utilities.mlog import MLog
GLOBAL_ORDER_ID = 0
class GeneticMutationFactors(object):
def __init__(self,
del_prob,
add_pr... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/aiohttp/worker.py |
import asyncio
import os
import re
import signal
import sys
from types import FrameType
from typing import Any, Awaitable, Callable, Optional, Union # noqa
from gunicorn.config import AccessLogFormat as GunicornAccessLogFormat
from gunicorn.workers import base
from aiohttp import web
from .helpers import set_resul... | PypiClean |
/Football_Pitch-0.0.2.tar.gz/Football_Pitch-0.0.2/README.md | ## Table of Contents
1. [Installation](#installation)
2. [Project Motivation](#motivation)
3. [File Descriptions](#files)
4. [Results](#results)
5. [Licensing, Authors, and Acknowledgements](#licensing)
## Installation <a name="installation"></a>
Python 3* were used in creating this project.
$ pip install twine.
#... | PypiClean |
/Abies-0.0.5.tar.gz/Abies-0.0.5/extern/pybind11/noxfile.py | import nox
nox.options.sessions = ["lint", "tests", "tests_packaging"]
PYTHON_VERISONS = ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
@nox.session(reuse_venv=True)
def lint(session: nox.Session) -> None:
"""
Lint the codebase (except for clang-format/tidy).
"""
session.install("pre-com... | PypiClean |
/MeneTools-3.3.0-py3-none-any.whl/menetools/utils.py |
# Copyright (C) 2017-2023 Clémence Frioux & Arnaud Belcour - Inria Dyliss - Pleiade
# This program 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 of the License, or
# (at your option)... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/eo.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['eo']={"dir":"ltr","editor":"Redaktilo por Riĉiga Teksto","common":{"editorHelp":"Premu ALT 0 por helpilo","browseServer":"Foliumi en la Servilo","url":"URL","p... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.