id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pylib/forwarder.py |
import fcntl
import logging
import os
import psutil
import re
import sys
import time
import android_commands
import cmd_helper
import constants
from pylib import valgrind_tools
def _GetProcessStartTime(pid):
return psutil.Process(pid).create_time
class _FileLock(object):
"""With statement-aware implementatio... | PypiClean |
/CirclesGenderDetectorPython-0.0.3.tar.gz/CirclesGenderDetectorPython-0.0.3/CirclesGenderDetectionPython/gender_detection.py | import numpy as np
import tensorflow as tf
import os
from tensorflow.keras.utils import Sequence
from keras.models import load_model
from tensorflow.keras import Sequential,Model,Input
from tensorflow.keras.layers import Conv2D,MaxPool2D,Flatten,Dense,Dropout,GlobalAveragePooling2D
from keras.regularizers import l2
imp... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/doc/sphinx/source/doc/fields.rst | ============
Column types
============
SQLAlchemy comes with a set of column types that can be used. These column types will trigger the
use of a certain :class:`QtGui.QDelegate` to visualize them in the views. Camelot extends those SQLAlchemy
field types with some of its own.
An overview of field types from SQLAlc... | PypiClean |
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/site.py | import builtins
import datetime
from files_sdk.models.usage_snapshot import UsageSnapshot
from files_sdk.api import Api
from files_sdk.exceptions import InvalidParameterError, MissingParameterError, NotImplementedError
class Site:
default_attributes = {
'name': None, # string - Site name
'allow... | PypiClean |
/BubbleDet-1.0.0.tar.gz/BubbleDet-1.0.0/CHANGELOG.rst | Changelog
=========
1.0.0 (2023-08-30)
------------------
* First public release of BubbleDet, together with submission to arXiv.
0.5.0 (2023-08-29)
------------------
* Automated extrapolation, and improved error estimates.
0.4.0 (2023-08-28)
------------------
* Added findDeterminant functionality for d=1.
... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/maps/urls.py |
from django.conf.urls import url, include
from django.views.generic import TemplateView
from geonode.monitoring import register_url_event
from . import views
js_info_dict = {
'packages': ('geonode.maps', ),
}
new_map_view = views.new_map
existing_map_view = views.map_view
map_embed = views.map_embed
map_edit = ... | PypiClean |
/CharlaGUI-1.1-py3-none-any.whl/charlagui/utils/parser.py | import os, glob
from io import StringIO
import json
class Parser:
def __init__(self):
self.current_settings = {}
def parse_2_dict(self):
for file in glob.iglob('*/**.kts'):
with open(os.path.realpath(file), 'r') as file:
for root, dirs, files in os.walk... | PypiClean |
/NlpToolkit-Classification-1.0.16.tar.gz/NlpToolkit-Classification-1.0.16/Classification/Model/DecisionTree/DecisionTree.py | from Classification.Instance.CompositeInstance import CompositeInstance
from Classification.Instance.Instance import Instance
from Classification.InstanceList.InstanceList import InstanceList
from Classification.Model.DecisionTree.DecisionNode import DecisionNode
from Classification.Model.ValidatedModel import Validate... | PypiClean |
/LiPydomics-1.6.8-py3-none-any.whl/lipydomics/plotting.py | import os
import numpy as np
from scipy.sparse import coo_matrix
from csv import reader
from matplotlib import pyplot as plt, colors as mcolors
from matplotlib import rcParams
from lipydomics.util import fetch_lipid_class_log2fc
rcParams['font.size'] = 8
CS = ['#2FA2AB', '#9BD0B9', 'Purple', 'Blue', 'Green', 'Orange... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/nls/dijit-all_ja-jp.js | dojo.provide("dijit.nls.dijit-all_ja-jp");dojo.provide("dojo.nls.colors");dojo.nls.colors._built=true;dojo.provide("dojo.nls.colors.ja_jp");dojo.nls.colors.ja_jp={"lightsteelblue":"ライト・スチール・ブルー","orangered":"オレンジ・レッド","midnightblue":"ミッドナイト・ブルー","cadetblue":"くすんだ青","seashell":"シーシェル","slategrey":"スレート・グレイ","coral":"珊瑚"... | PypiClean |
/HzCheck_Mucci-0.0.0.tar.gz/HzCheck_Mucci-0.0.0/src/HzCheck_Mucci/main.py | import os
import socket
import subprocess
import threading
def getwifi():
result = subprocess.run(['netsh', 'wlan', 'show', 'interfaces'], stdout=subprocess.PIPE)
output = result.stdout.decode('utf-8').strip()
for line in output.split('\n'):
if 'SSID' in line:
wifi_name = line.split(':'... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/core/management/commands/createdb.py | from __future__ import print_function, unicode_literals
from future.builtins import int, input
from optparse import make_option
from socket import gethostname
from django.core.management.base import NoArgsCommand, CommandError
from django.contrib.auth import get_user_model
from django.contrib.sites.models import Site... | PypiClean |
/Copreus-0.4.0.tar.gz/Copreus-0.4.0/copreus/drivers/rotaryencoder2.py | import RPi.GPIO as GPIO
from copreus.baseclasses.arotaryencoder import ARotaryEncoder
class RotaryEncoder2(ARotaryEncoder):
"""Driver for rotary encoder like the KY-040 together with schmitttriggers for debouncing and a flipflop for
direction detection in hardware. (e.g. http://www.bristolwatch.com/ele2/rotar... | PypiClean |
/Modulation-0.0.4.tar.gz/Modulation-0.0.4/modulation/signal_utilities/noise_generation/gaussian_noise.py |
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 10-12-2020
"""
from enum import Enum
from functools import partial
from pathlib import Path
import numpy
import torchaudio
from draugr.numpy_utilities import get_sampler, normalise_signal
from draugr.torch_utilities import to_te... | PypiClean |
/ITA-test4-2.1.tar.gz/ITA-test4-2.1/hate_tweet_map/tweets_searcher/SearchTweets.py | import concurrent
import os
from concurrent import futures
import logging
import math
import time
import pandas as pd
from concurrent.futures import Future, as_completed
from datetime import datetime, timezone
from typing import Optional
import requests
import yaml
from tqdm import tqdm
from hate_tweet_map import uti... | PypiClean |
/CatLearn-0.6.2.tar.gz/CatLearn-0.6.2/catlearn/optimize/mlmin.py | import os.path
import numpy as np
from scipy.spatial.distance import euclidean
from ase.optimize import MDMin
from ase.io import read, write
from ase.io.trajectory import TrajectoryWriter
from ase.parallel import parprint, parallel_function
from catlearn.optimize.io import print_info, print_version, print_cite_mlmin
... | PypiClean |
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/module/linear.py | import numpy as np
from ..functional.nn import linear, relu
from ..tensor import Parameter
from . import init
from .module import Module
class Linear(Module):
r"""Applies a linear transformation to the input. For instance, if input
is x, then output y is:
.. math::
y = xW^T + b
where :... | PypiClean |
/aimm_simulator-2.0.3.tar.gz/aimm_simulator-2.0.3/examples/AIMM_simulator_example_n9.py |
from sys import stderr,argv
from itertools import combinations
import numpy as np
from random import seed
from AIMM_simulator import Sim,Logger,MME,Scenario,RIC,np_array_to_str
from Q_learning_generalized_01 import Q_learner
class MyScenario(Scenario):
def loop(self,interval=0.1,speed=2.0):
a=speed/1.414
mo... | PypiClean |
/InowasFlopyAdapter-1.5.0.tar.gz/InowasFlopyAdapter-1.5.0/FlopyAdapter/Read/ReadConcentration.py | import errno
import os
import flopy.utils.binaryfile as bf
class ReadConcentration:
_filename = None
_workspace = None
def __init__(self, workspace):
self._workspace = workspace
for file in os.listdir(workspace):
if file.upper() == "MT3D001.UCN":
self._filenam... | PypiClean |
/3b-bot-1.1.0.tar.gz/3b-bot-1.1.0/best_buy_bullet_bot/command_line.py | import argparse
import warnings
from best_buy_bullet_bot.utils import count_cores
from best_buy_bullet_bot.version import __version__
class NoAction(argparse.Action):
"""Makes argument do nothing.
This is useful if we want an argument to show up in the
help menu, but remain uncallable.
"""
def ... | PypiClean |
/MarkWiki-1.6.tar.gz/MarkWiki-1.6/markwiki/git/git_integration.py | '''Versioning of the wiki pages through git'''
from sh import git
from markwiki.renderer import render_markdown_txt
class GitIntegration(object):
GIT_MSG = 'change on page %s'
def __init__(self, wiki_path):
self.path = wiki_path
self.git = git.bake(_cwd=self.path)
self.git.init()
... | PypiClean |
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/jobs/job_runner.py |
import logging
import os
import shutil
import time
import uuid
import time
from pathlib import Path
from jade.common import JOBS_OUTPUT_DIR, OUTPUT_DIR
from jade.enums import Status, ResourceMonitorType
from jade.exceptions import ExecutionError
from jade.hpc.common import HpcType
from jade.hpc.hpc_manager import Hpc... | PypiClean |
/LightNER-0.3.0.tar.gz/LightNER-0.3.0/README.md | # LightNER
[](https://opensource.org/licenses/Apache-2.0)
[](https://badge.fury.io/py/LightNER)
[](https://pepy.tech/project/lightner)
<!-- [![Docume... | PypiClean |
/CatKit-0.5.4-py3-none-any.whl/catkit/gen/molecules.py | import catkit
import networkx as nx
import itertools
import numpy as np
def bin_hydrogen(hydrogens=1, bins=1):
"""Recursive function for determining distributions of
hydrogens across bins.
"""
if bins == 1:
yield [hydrogens]
elif hydrogens == 0:
yield [0] * bins
else:
... | PypiClean |
/Flask-AppBuilder-redirect-2.1.13.tar.gz/Flask-AppBuilder-redirect-2.1.13/flask_appbuilder/fields.py | from __future__ import unicode_literals
import operator
from wtforms import widgets
from wtforms.compat import string_types, text_type
from wtforms.fields import Field, SelectField, SelectFieldBase
from wtforms.validators import ValidationError
class AJAXSelectField(Field):
"""
Simple class to convert p... | PypiClean |
/ChemDataExtractor_c-1.0.0-py3-none-any.whl/chemdataextractor/scrape/fields.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import re
import dateutil.parser
import six
from .base import BaseField
from ..text.processors import strip_querystring
log = logging.getLogger(__name__... | PypiClean |
/Chatty-0.2.tar.gz/Chatty-0.2/chatty/sessions/email.py | from email import message_from_bytes
# noinspection PyProtectedMember
from email.message import EmailMessage, MIMEPart
from email.utils import parsedate_to_datetime
from typing import Callable, Type
import datetime
import imaplib
import logging
import smtplib
import threading
import time
import tzlocal
from chatty.ex... | PypiClean |
/Fanery-0.2.5.tar.gz/Fanery-0.2.5/fanery/_mddb.py | from collections import defaultdict
from time import time as timestamp
from _auth import hooks
from _term import Hict
class MemDictStore(object):
def __init__(self):
self._prelogins = defaultdict(dict)
self._abuses = defaultdict(list)
self._models = dict()
self._sessions = dict()
... | PypiClean |
/MITuna-1.0.tar.gz/MITuna-1.0/tuna/machine.py | """class for maintaining machine characteristics and interactions"""
import os
import socket
from time import sleep
from io import BytesIO
import tempfile
from subprocess import Popen, PIPE
from sqlalchemy import Text, Column, orm
from sqlalchemy.dialects.mysql import TINYINT, INTEGER
from tuna.machine_management_int... | PypiClean |
/BGT_Client-1.0.2-py3-none-any.whl/dgt_sdk/protobuf/client_block_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_in... | PypiClean |
/AirStrip-2.0.2.tar.gz/AirStrip-2.0.2/airstrip/github.py | from puke import *
import puke.Cache
import json
import yaml
import os
import base64
import requests
import sys, logging, os, traceback
GITHUB_ROOT = "https://api.github.com"
GITGIT_ROOT = "https://github.com"
GITRAW_ROOT = "https://raw.github.com"
class GitHubInit():
########################################
# H... | PypiClean |
/Buche_Silberstein_model_2020-1.0.1.tar.gz/Buche_Silberstein_model_2020-1.0.1/README.md | # Buche_Silberstein_model_2020
[](https://github.com/mbuche/Buche_Silberstein_model_2020/releases/) [](https://github.com/mbuche/chain_breaking_polymer_networks/blob/maste... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/packaging/ipk.py |
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
import SCons.Builder
import SCons.Node.FS
import SCons.Util
from SCons.Tool.packaging import stripinstallbuilder, putintopackageroot
def package(env, target, source, PACKAGEROOT, NAME, VERSION, DESCRIPTION,
SUMMARY, X_IPK_PRIORITY,... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/fo.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['fo']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Trýst ALT og 0 fyri vegleiðing","browseServer":"Ambætarakagi","... | PypiClean |
/EOmaps-7.0-py3-none-any.whl/eomaps/grid.py |
import logging
from itertools import chain
from functools import lru_cache
import numpy as np
from matplotlib.collections import LineCollection
_log = logging.getLogger(__name__)
class GridLines:
"""Class to draw grid-lines."""
def __init__(self, m, d=None, auto_n=10, layer=None, bounds=None, n=100):
... | PypiClean |
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/event_response2.py | import re # noqa: F401
import sys # noqa: F401
from openapi_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 |
/LittleHTTPServer-0.5.0.tar.gz/LittleHTTPServer-0.5.0/README.rst |
What is it?
===========
``LittleHTTPServer`` is intended to extend SimpleHTTPServer a little bit more.
Requirements
------------
* Python 2.6 or 3.x and later
Features
--------
* Provide an arbitrary directory not only current directory
* Provide some directories optimized for Sphinx document
* Provide selectable... | PypiClean |
/MultiStageClustering-0.5.tar.gz/MultiStageClustering-0.5/multistageclustering/msc.py | import pandas as pd
import numpy as np
from sklearn.cluster import KMeans
from sklearn.metrics import silhouette_score
from sklearn.decomposition import PCA
import collections
from collections import defaultdict
def multi_stage_clustering(data_frame, level_one_feature_list = [] , level_two_feature_list = [], explai... | PypiClean |
/Cartridge-1.3.4-py3-none-any.whl/cartridge/shop/checkout.py | import decimal
import locale
from django.utils.translation import gettext_lazy as _
from mezzanine.accounts import ProfileNotConfigured, get_profile_for_user
from mezzanine.conf import settings
from mezzanine.utils.email import send_mail_template
from cartridge.shop.models import Order
from cartridge.shop.utils impor... | PypiClean |
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/cond_tutorial_new.ipynb | # Tutorial for Conductivity module
```
# import the necessary packages along with HavNegpy
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
import HavNegpy as dd
%matplotlib qt
# extract the data
filename = 'cond_example_data.txt'
col_names = ['Freq','Sig1','Sig2']
df = pd.read_csv(f... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_nnh-cm.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/DBSamizdat-0.8.6.tar.gz/DBSamizdat-0.8.6/src/dbsamizdat/samizdat.py | from collections import OrderedDict
from time import time as now
from string import Template
from abc import ABC, ABCMeta
from enum import Enum
from json import dumps as jsondumps
from hashlib import md5
from .util import db_object_identity, fqify_node, nodenamefmt
from .exceptions import UnsuitableNameError
_DBINFO_... | PypiClean |
/ButterflyNet-1.1.0-py3-none-any.whl/bfnet/BFHandler.py | import _ssl
import asyncio
import logging
import multiprocessing
import ssl
import sys
import types
from concurrent import futures
from bfnet.Butterfly import Butterfly
from bfnet.Net import Net
class ButterflyHandler(object):
"""
A ButterflyHandler is a class that describes what happens when a Butterfly is c... | PypiClean |
/NREL_shift-0.1.0a0-py3-none-any.whl/shift/clustering.py |
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# 2. Redist... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/en/TeX.js | MathJax.Localization.addTranslation("en","TeX",{version:"2.7.9",isLoaded:true,strings:{ExtraOpenMissingClose:"Extra open brace or missing close brace",ExtraCloseMissingOpen:"Extra close brace or missing open brace",MissingLeftExtraRight:"Missing \\left or extra \\right",MissingScript:"Missing superscript or subscript a... | PypiClean |
/GroopM-0.3.4.tar.gz/GroopM-0.3.4/groopm/groopmUtils.py |
__author__ = "Michael Imelfort"
__copyright__ = "Copyright 2012/2013"
__credits__ = ["Michael Imelfort"]
__license__ = "GPL3"
__version__ = "0.2.11"
__maintainer__ = "Michael Imelfort"
__email__ = "mike@mikeimelfort.com"
__status__ = "Released"
#########################################################################... | PypiClean |
/EMPOL_GUI-2.2.8.tar.gz/EMPOL_GUI-2.2.8/EMPOL_GUI/empol_center_finding.py | import numpy as np
import math
import matplotlib.pyplot as plt
from astropy.io import fits
import os
import fnmatch
from astropy.io.fits import getheader
from astropy.stats import sigma_clipped_stats
from astropy.modeling import models, fitting
from scipy.optimize import curve_fit
from scipy import interpolate
import n... | PypiClean |
/KiwiCoder-0.3.tar.gz/KiwiCoder-0.3/kiwi/core/bio_op.py | import asyncio
import json
import uuid
from abc import ABC, abstractmethod
from time import sleep
from typing import Dict, List, Callable
from kiwi.common.exception import ToBeImplementException, AttributeNotExistException
from kiwi.common.constant import ContainerType, PeripheryUsage
from kiwi.util.graph import DAG... | PypiClean |
/Heralding-1.0.7.tar.gz/Heralding-1.0.7/heralding/misc/session.py |
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along... | PypiClean |
/BioSignalML-0.6.0a.tar.gz/BioSignalML-0.6.0a/biosignalml/units/__init__.py |
import logging
from biosignalml.rdf import Resource, NS
from ontology import UNITS
# Export package class
from convert import UnitConverter
__all__ = [ 'get_units_uri' ]
_direct = {
'Bpm': 'BeatsPerMinute',
'bpm': 'BeatsPerMinute',
'cc': 'CubicCentimetre',
'pm': 'PerMinute',
'1/min': 'Pe... | PypiClean |
/OTLModel/Classes/OverlangseMarkering.py | from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Classes.Markering import Markering
from OTLMOW.OTLModel.Classes.AOWSType import AOWSType
from OTLMOW.OTLModel.Datatypes.KlOverlangseMarkeringCode import KlOverlangseMarkeringCode
from OTLMOW.OTLModel.Datatypes.KlOverlangsemarkeringTy... | PypiClean |
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/thing_delete_response.py | import re # noqa: F401
import sys # noqa: F401
from openapi_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 |
/AutONMT-tf-0.1.2.tar.gz/AutONMT-tf-0.1.2/autonmt/configs.py | from dataclasses import dataclass
from typing import Dict
class ConfigError(RuntimeError):
"""Exception class for pipeline configuration errors"""
class ModelConfig:
def __init__(self, model_file, model_type, config) -> None:
if model_file is not None and model_type is not None:
raise Conf... | PypiClean |
/Flask_OpenAPI3_UI-1.6.0-py3-none-any.whl/flask_openapi/ui2/static/lib/backbone-min.js | !function(t,e){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(i,n,s){t.Backbone=e(t,s,i,n)});else if("undefined"!=typeof exports){var i=require("underscore");e(t,exports,i)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,i,n){var s=t.Backbone,r=... | PypiClean |
/IOmatchbox-0.23.tar.gz/IOmatchbox-0.23/README.md | # IOmatchbox
Functions and examples to control Integrated Optics CW lasers and standalone TECs through serial commands with Python.
The official software can be found on the [Supplier Download Site](https://integratedoptics.com/downloads)
Documentation is also available through the same website. The serial commands h... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/backends/base/schema.py | import hashlib
import logging
from datetime import datetime
from djmodels.db.backends.ddl_references import (
Columns, ForeignKeyName, IndexName, Statement, Table,
)
from djmodels.db.backends.utils import split_identifier
from djmodels.db.models import Index
from djmodels.db.transaction import TransactionManagemen... | PypiClean |
/EGEGrouper-0.7.1.tar.gz/EGEGrouper-0.7.1/egegrouper/sme_sqlite3.py |
# Copyright (C) 2017-2018 Aleksandr Popov
# This program 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.
# This program is distribut... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/fs-minipass/index.js | 'use strict'
const MiniPass = require('minipass')
const EE = require('events').EventEmitter
const fs = require('fs')
let writev = fs.writev
/* istanbul ignore next */
if (!writev) {
// This entire block can be removed if support for earlier than Node.js
// 12.9.0 is not needed.
const binding = process.binding('f... | PypiClean |
/LearnPythonPackaging-0.0.1-py3-none-any.whl/framework/cansignal.py | class Signal:
def __init__(self, dbc, name=None, curr_value=None):
if not dbc.check_signal_name(name):
raise
choices = dbc.find_choices_by_signal_name(name)
if choices is not None:
if curr_value not in choices.keys():
raise
self.name = name
... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/functions/elementary/exponential.py | from mpmath.libmp.libmpf import prec_to_dps
from ...core import (Add, E, Function, I, Integer, Mul, Pow, expand_log, nan,
oo, pi, zoo)
from ...core.function import ArgumentIndexError, _coeff_isneg
from ...ntheory import multiplicity, perfect_power
from .miscellaneous import sqrt
class exp_polar(... | PypiClean |
/OPi.GPIO-0.5.2.tar.gz/OPi.GPIO-0.5.2/README.rst | OPi.GPIO
========
.. image:: https://travis-ci.org/rm-hull/OPi.GPIO.svg?branch=master
:target: https://travis-ci.org/rm-hull/OPi.GPIO
.. image:: https://coveralls.io/repos/github/rm-hull/OPi.GPIO/badge.svg?branch=master
:target: https://coveralls.io/github/rm-hull/OPi.GPIO?branch=master
.. image:: https://read... | PypiClean |
/Foercasting_Models-0.0.1-py3-none-any.whl/Models/Multistep_Models.py | from numpy import array
from keras.models import Sequential
from keras.layers import Dense, Flatten, LSTM, TimeDistributed, RepeatVector
from keras.layers.convolutional import Conv1D
from keras.layers.convolutional import MaxPooling1D
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):... | PypiClean |
/Indago-0.4.6-py3-none-any.whl/indago/_mrfo.py | import numpy as np
from ._optimizer import Optimizer, CandidateState
class MRFO(Optimizer):
"""Manta Ray Foraging Optimization method class.
Reference: Zhao, Weiguo, Zhenxing Zhang, and Liying Wang.
Manta ray foraging optimization: An effective bio-inspired optimizer for engineering applications.
... | PypiClean |
/Hystrix-Box-0.2.tar.gz/Hystrix-Box-0.2/HystrixBox/Tools/fileType/video.py | from HystrixBox.Tools.fileType.extenstion import Extension
class Flv(Extension):
EXTENSION = 'flv'
MIME = 'video/x-flv'
DESCRIPTION = 'Flash video file'
def __init__(self):
super(Flv, self).__init__(
extension=Flv.EXTENSION,
mime=Flv.MIME,
description=Flv.D... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Platform/posix.py | import platform
import subprocess
from SCons.Platform import TempFileMunge
from SCons.Platform.virtualenv import ImportVirtualenv
from SCons.Platform.virtualenv import ignore_virtualenv, enable_virtualenv
exitvalmap = {
2 : 127,
13 : 126,
}
def escape(arg):
"""escape shell special characters"""
slash... | PypiClean |
/mrv-1.0.2-stable.zip/mrv-1.0.2-stable/mrv/maya/util.py | """All kinds of utility methods and classes that are used in more than one modules """
__docformat__ = "restructuredtext"
import maya.mel as mm
import maya.cmds as cmds
import maya.OpenMaya as api
import mrv.util as util
from mrv.util import capitalize,uncapitalize
import networkx.exception as networkxexc
import trac... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/chardet/jpcntx.py |
# This is hiragana 2-char sequence table, the number in each cell represents its frequency category
jp2CharContext = (
(0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1),
(2,4,0,4,0,3,0,4,0,3,4,4,4,2,4... | PypiClean |
/ConSSL-0.0.1-py3-none-any.whl/CSSL/models/self_supervised/ssl_finetuner.py | from typing import List, Optional
import pytorch_lightning as pl
import torch
from pytorch_lightning.metrics import Accuracy
from torch.nn import functional as F
from CSSL.models.self_supervised import SSLEvaluator
class SSLFineTuner(pl.LightningModule):
"""
Finetunes a self-supervised learning backbone usi... | PypiClean |
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/api/profitability.py | import decimal
import octobot_trading.constants as constants
import octobot_trading.errors as errors
import octobot_trading.util as util
def get_profitability_stats(exchange_manager) -> tuple:
port_profit = exchange_manager.exchange_personal_data.portfolio_manager.portfolio_profitability
return port_profit.p... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/lilconfig/readme.md | # Lilconfig ⚙️
[](https://badge.fury.io/js/lilconfig)
[](https://packagephobia.now.sh/result?p=lilconfig)
[](https://cove... | PypiClean |
/LaminB-ID-3.0.0.tar.gz/LaminB-ID-3.0.0/README.md | # LaminB-ID
## **Introduction**
This project was created to improve the current method of phenotyping Lamin B as a readout of the nuclear\
membrane and nuclear pore complex. The script is free for anyone to download and use,\
provided the accompanying [paper](https://www.tandfonline.com/journals/kncl20) is properly c... | PypiClean |
/FFTA-0.3.5.1-py3-none-any.whl/ffta/gkpfm/load_excitation.py |
from __future__ import division, print_function, absolute_import, unicode_literals
__author__ = "Rajiv Giridharagopal"
__copyright__ = "Copyright 2018, Ginger Lab"
__maintainer__ = "Rajiv Giridharagopal"
__email__ = "rgiri@uw.edu"
__status__ = "Development"
import os
import h5py
import numpy as np
import pyUSID as ... | PypiClean |
/Kheiron-1.0.4-py3-none-any.whl/kheiron/trainer.py | from typing import Optional, Any, List, Dict, Callable, TypeVar
from tqdm import tqdm
from kheiron.utils import *
from kheiron.constants import SavedFiles
from kheiron.opts import TrainingOptions
from kheiron.early_stop import EarlyStopping
from torch import nn
from torch.utils.data import Dataset as TorchDataset, Da... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/yaml/yaml/resolver.py | __all__ = ['BaseResolver', 'Resolver']
from .error import *
from .nodes import *
import re
class ResolverError(YAMLError):
pass
class BaseResolver:
DEFAULT_SCALAR_TAG = 'tag:yaml.org,2002:str'
DEFAULT_SEQUENCE_TAG = 'tag:yaml.org,2002:seq'
DEFAULT_MAPPING_TAG = 'tag:yaml.org,2002:map'
yaml_imp... | PypiClean |
/KIF-0.3.2.tar.gz/KIF-0.3.2/key_interactions_finder/model_building.py | from dataclasses import dataclass, field
from abc import ABC, abstractmethod
from typing import Tuple, Optional
from pathlib import Path
import json
import pickle
import time
from datetime import timedelta
import pandas as pd
import numpy as np
# ML models
from xgboost import XGBRegressor, XGBClassifier
from catboost ... | PypiClean |
/Abdullah-Encrypt-0.0.1.tar.gz/Abdullah-Encrypt-0.0.1/src/Abdullah_Encrypt/Abdullah_Encrypt.py | class Up():
def Encode(data):
code = data
x = code.replace("q","あ")
x= x.replace("Q","ぃ")
x= x.replace("w","い")
x= x.replace("W","ぅ")
x= x.replace("e","う")
x= x.replace("E","ぇ")
x= x.r... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/filetools/plugin.js | /**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
'use strict';
( function() {
CKEDITOR.plugins.add( 'filetools', {
lang: 'az,bg,ca,cs,da,de,de-ch,en,en-au,eo,es,es-mx,et,eu,fa,fr,gl,h... | PypiClean |
/ForesightPy-1.0.11.tar.gz/ForesightPy-1.0.11/README.md | # Foresight [](https://travis-ci.com/msc-acse/acse-9-independent-research-project-OliverJBoom) [](h... | PypiClean |
/Forthon-0.10.1.tar.gz/Forthon-0.10.1/source/wrappergen_derivedtypes.py | import sys
from . import fvars
import string
import hashlib
from .cfinterface import *
class ForthonDerivedType:
def __init__(self, typelist, pkgname, pkgsuffix, pkgbase, c, f, isz, writemodules, fcompname):
if not typelist:
return
self.pkgname = pkgname
self.pkgsuffix = pkgsu... | PypiClean |
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/directory/applications/application.py | from office365.directory.applications.api import ApiApplication
from office365.directory.applications.public_client import PublicClientApplication
from office365.directory.applications.roles.role import AppRole
from office365.directory.applications.spa import SpaApplication
from office365.directory.certificates.certifi... | PypiClean |
/Ella-Galleries-1.0.2.tar.gz/Ella-Galleries-1.0.2/ella_galleries/migrations/0001_initial.py | from south.db import db
from django.db import models
from south.v2 import SchemaMigration
from ella_galleries.models import *
import datetime
from ella.core.models import Publishable
class Migration(SchemaMigration):
depends_on = (
("core", "0002_initial_publishable"),
)
def forwards(self, orm):
... | PypiClean |
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-grid/src/ts/entities/gridOptions.ts |
module awk.grid {
export interface GridOptions {
// set once in init, can never change
virtualPaging?: boolean;
toolPanelSuppressPivot?: boolean;
toolPanelSuppressValues?: boolean;
rowsAlreadyGrouped?: boolean;
suppressRowClickSelection?: boolean;
suppressC... | PypiClean |
/Mini-AMF-0.9.1.tar.gz/Mini-AMF-0.9.1/miniamf/util/__init__.py | from __future__ import absolute_import
import calendar
import datetime
import inspect
import six
import miniamf
# The exception thrown on failure to load a module changed from
# ImportError to ModuleNotFoundError at some point in the 3.x series.
# 2.x does not have ModuleNotFoundError, and shimming it is too much
# ... | PypiClean |
/dipex-4.54.5.tar.gz/dipex-4.54.5/integrations/ad_integration/ad_common.py | import json
import logging
import random
import subprocess
import time
from typing import Dict
from typing import List
from typing import Optional
import more_itertools
try:
from winrm import Session
from winrm.exceptions import WinRMTransportError
from winrm.vendor.requests_kerberos.exceptions import Ker... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/minimist/CHANGELOG.md | # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v1.2.7](https://github.com/minimistjs/minimist/compare/v1.2.6...... | PypiClean |
/Marine_Traffic_API-0.20.1-py3-none-any.whl/marinetrafficapi/voyage_info/VI01_voyage_forecasts/models.py | from marinetrafficapi.models import Model
from marinetrafficapi.fields import NumberField, TextField, DatetimeField, \
LinestringField
class VoyageForecast(Model):
"""Get a voyage forecast for a vessel or your MarineTraffic fleet"""
mmsi = NumberField(index='MMSI',
desc="Maritime M... | PypiClean |
/DatastructuresENSF338_Alex_Kaylyn-1.0-py3-none-any.whl/datastructures/Linear/singlyLL.py | from pathlib import Path
import sys
path_root = Path(__file__).parents[2]
sys.path.append(str(path_root))
from datastructures.nodes.SNode import Node
class SinglyLL:
def __init__(self, head=None):
self.head = head
self.tail = head
self.size = 0
if head:
current = head
... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/control/motion_generation.py | try:
#version 0.9+
from klampt.plan.motionplanning import interpolate_nd_min_time,brake_nd
from klampt.plan.motionplanning import combine_nd_cubic
except ImportError:
#version 0.8.x
from klampt.plan.motionplanning import interpolateNDMinTime as interpolate_nd_min_time
from klampt.plan.motionplan... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Utilities/sconsign.py | import getopt
import os
import sys
from dbm import whichdb
import time
import pickle
import SCons.compat
import SCons.SConsign
def my_whichdb(filename):
if filename[-7:] == ".dblite":
return "SCons.dblite"
try:
with open(filename + ".dblite", "rb"):
return "SCons.dblite"
exce... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/cldr/nls/ja/gregorian.js | define(
"dojo/cldr/nls/ja/gregorian", //begin v1.x content
{
"field-weekday": "曜日",
"dateFormatItem-yQQQ": "yQQQ",
"dateFormatItem-yMEd": "y/M/d(EEE)",
"dateFormatItem-MMMEd": "M月d日(E)",
"eraNarrow": [
"BC",
"AD"
],
"dateFormat-long": "y年M月d日",
"months-format-wide": [
"1月",
"2月",
"3月",
"4月",
"5月",... | PypiClean |
/GatorMiner-1.0.0.tar.gz/GatorMiner-1.0.0/src/markdown.py | import os
import logging
from typing import Dict, List
import commonmark
import pandas as pd
from . import constants as cts
# pylint: disable=logging-fstring-interpolation
logging.basicConfig(
format="[%(asctime)s]{%(pathname)s:%(lineno)d}\n%(levelname)s:\
%(message)s",
datefmt="%Y-%m-%d:%H:%M:%S",
... | PypiClean |
/GSEWidgets-0.0.1.tar.gz/GSEWidgets-0.0.1/README.md | <h1 align="center">GSEWidgets</h1>
GSEWidgets is a package that makes use of Qt6 to create some easy to use and define widgets. This is achieved by
combining the functionality of PyQt6 and qtpy libraries. Most of the custom widgets are created to be used
with specific applications developed for GSECARS.
## Installat... | PypiClean |
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/client/builtins/random_reader.py | from ..reader_module import ReaderModule
from joule import utilities
import asyncio
import numpy as np
import textwrap
ARGS_DESC = """
---
:name:
Random Reader
:author:
John Donnal
:license:
Open
:url:
http://git.wattsworth.net/wattsworth/joule.git
:description:
generate a random data stream
:usage:
This... | PypiClean |
/Chill-Streams-0.4.0.tar.gz/Chill-Streams-0.4.0/chill_streams/station_list.py | import re
from argparse import ArgumentParser
from csv import reader
from .pkg_resources import pkgfiles
from . import data
from .url import URL
DEFAULT_STATIONS_CSV = "stations.csv"
# dark cyan; RGB-format text: 72, 201, 176
ANSI_DK_CY = '\x1b[38;2;72;201;176m'
ANSI_YELO = '\x1b[38;2;244;208;63m' # yellow
ANSI_DK_O... | PypiClean |
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/README.rst | ===================
README for DeepGMAP
===================
Introduction
============
One of the fundamental goals in biology is the genotype-phenotype mapping, or to predict a phenotype from a genotype. Genotype originally means \
a set of protein-coding genes that affect phenotypes, but here I extend the definition ... | PypiClean |
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/directory/invitations/collection.py | from office365.directory.invitations.invitation import Invitation
from office365.entity_collection import EntityCollection
from office365.runtime.queries.create_entity import CreateEntityQuery
class InvitationCollection(EntityCollection):
"""Invitation's collection"""
def __init__(self, context, resource_pat... | PypiClean |
/MDsrv-0.3.5.tar.gz/MDsrv-0.3.5/mdsrv/webapp/js/lib/colorpicker.min.js | if( typeof importScripts !== 'function' ){
(function(w,l,r){function s(a,c){var d=c.getBoundingClientRect();return{x:Math.max(Math.min(a.clientX-d.left,c.clientWidth),0),y:Math.max(Math.min(a.clientY-d.top,c.clientHeight),0)}}function f(a,c,d){a=l.createElementNS("http://www.w3.org/2000/svg",a);for(var b in c)a.setAttr... | PypiClean |
/GxDoxybook-1.1.0.tar.gz/GxDoxybook-1.1.0/doxybook/genbook.py |
import sys
import os
import re
import shutil
import argparse
class GenXML():
def __init__(self, path, outputpath, is_server=None, path_type = 'all'):
self.path = path #doc_path
self.outputpath = outputpath
if not os.path.exists(self.outputpath):
os.system('mkdir -p ' + self.ou... | PypiClean |
/Dpowers-0.1.5rc1.tar.gz/Dpowers-0.1.5rc1/Dlib/Dhelpers/builtin_manipulation/customprint.py | import builtins, inspect, traceback
from ..container import container
from . import _add_tty_disable_option
# =======================================================================
# Alternating the builtin print function
# =======================================================================
# ====================... | PypiClean |
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/3003.57cfe277.chunk.js | "use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[3003],{93003:function(e,n,s){s.r(n),s.d(n,{conf:function(){return i},language:function(){return t}});var i={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",c... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.