id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/ColorFull_ColorBurst-1.0.0-py3-none-any.whl/ColorBurst/LISCENCE.md | MIT License
Copyright (c) 2022 Sachin Acharya
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, publish, di... | PypiClean |
/Impression-CMS-0.2.0.tar.gz/Impression-CMS-0.2.0/impression/themes/admin/static/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 |
/Movie_Nester-1.0.4.zip/Movie_Nester-1.0.4/README.txt | This is Python version 3.3.3
============================
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013 Python Software Foundation. All rights reserved.
Python 3.x is a new version of the language, which is incompatible with the 2.x
line of releases. The language is most... | PypiClean |
/CloudXNS-API-SDK-Python-1.0.4.tar.gz/CloudXNS-API-SDK-Python-1.0.4/cloudxns/api.py |
import hashlib
import time
import httplib2
import urllib
from restclient import GET, POST, PUT, DELETE, fix_params
try:
import json
except ImportError:
import simplejson as json
__API_URL__ = 'https://www.cloudxns.net/api2/'
__httplib_params__ = {'disable_ssl_certificate_validation':True}
class Api:
def... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/unsupervised/owcorrespondence.py | import sys
from collections import namedtuple, OrderedDict
import numpy as np
from AnyQt.QtWidgets import QListView, QApplication
from AnyQt.QtGui import QBrush, QColor, QPainter
from AnyQt.QtCore import QEvent, QItemSelectionModel, QItemSelection
import pyqtgraph as pg
import Orange.data
from Orange.statistics imp... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/policy/pg.py | from typing import List, Dict, Any, Tuple, Union
from collections import namedtuple
import torch
from ding.rl_utils import get_gae_with_default_last_value, get_train_sample
from ding.torch_utils import Adam, to_device
from ding.utils import POLICY_REGISTRY, split_data_generator
from ding.utils.data import default_coll... | PypiClean |
/GraphQL_core_next-1.1.1-py3-none-any.whl/graphql/subscription/map_async_iterator.py | from asyncio import Event, ensure_future, wait
from concurrent.futures import FIRST_COMPLETED
from inspect import isasyncgen, isawaitable
from typing import AsyncIterable, Callable
__all__ = ["MapAsyncIterator"]
# noinspection PyAttributeOutsideInit
class MapAsyncIterator:
"""Map an AsyncIterable over a callback... | PypiClean |
/ARS-0.5a2.zip/ARS-0.5a2/ars/graphics/base.py | from abc import ABCMeta, abstractmethod
class Entity(object):
"""Renderable and movable object.
It has position and orientation. The underlying object is :attr:`actor`,
which connects to the real entity handled by the graphics library in use.
"""
__metaclass__ = ABCMeta
adapter = None
@abstractmethod
de... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/sessions/backends/base.py | from __future__ import unicode_literals
import base64
from datetime import datetime, timedelta
try:
from django.utils.six.moves import cPickle as pickle
except ImportError:
import pickle
import string
from django.conf import settings
from django.core.exceptions import SuspiciousOperation
from django.utils.cry... | PypiClean |
/Boorunaut-0.4.3-py3-none-any.whl/booru/core/views.py | from django.shortcuts import get_object_or_404, redirect
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_protect
from django.views.generic import CreateView, RedirectView, TemplateView
from rolepermissions.checkers import has_permission
from booru.account.decorators i... | PypiClean |
/Cahoots-0.5.2.zip/Cahoots-0.5.2/cahoots/parsers/name.py | from cahoots.parsers.base import BaseParser
from cahoots.parsers.number import NumberParser
from SereneRegistry import registry
import re
import string
class NameParser(BaseParser):
'''Determines if given data is a name'''
prefixes = ['MS', 'MISS', 'MRS', 'MR', 'MASTER', 'REV', 'FR', 'DR',
'A... | PypiClean |
/MolPainter-gpantel-1.1.3.tar.gz/MolPainter-gpantel-1.1.3/MolPainter/cmdbar.py | import tkinter as tk
from tkinter import ttk, messagebox
from .layer_configurator import LayerConfigurator
from .molecule_configurator import MoleculeConfigurator
class CmdBar(tk.Frame):
"""
This defines the row of buttons across the top of the window.
"""
def __init__(self, master=None):
sup... | PypiClean |
/Interleave_Playlist-1.0.0a7-py3-none-any.whl/interleave_playlist/persistence/watched.py | import csv
import os
from os import path
from interleave_playlist.core.playlist import FileGroup, get_playlist, PlaylistEntry
from interleave_playlist.persistence import input_
from interleave_playlist.persistence import settings
def get_watched() -> list[FileGroup]:
with open(input_.get_watched_file_name(), 'r'... | PypiClean |
/ModelSEEDpy-freiburgermsu-0.3.1.4.tar.gz/ModelSEEDpy-freiburgermsu-0.3.1.4/modelseedpy_freiburgermsu/fbapkg/drainfluxpkg.py |
from __future__ import absolute_import
import logging
logger = logging.getLogger("modelseedpy_freiburgermsu")
from modelseedpy_freiburgermsu.fbapkg.basefbapkg import BaseFBAPkg
from modelseedpy_freiburgermsu.core.fbahelper import FBAHelper
#Base class for FBA packages
class DrainFluxPkg(BaseFBAPkg):
def __init_... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Latin-Modern/fontdata.js | (function(A,f,F,p){var C="2.7.9";var c="LatinModernMathJax_Alphabets",x="LatinModernMathJax_Arrows",z="LatinModernMathJax_DoubleStruck",D="LatinModernMathJax_Fraktur",i="LatinModernMathJax_Latin",w="LatinModernMathJax_Main",o="LatinModernMathJax_Marks",y="LatinModernMathJax_Misc",G="LatinModernMathJax_Monospace",B="Lat... | PypiClean |
/ElfAnalyzer-0.0.2.tar.gz/ElfAnalyzer-0.0.2/README.md | # ElfAnalyzer
## Description
This module parses and analyzes ELF file for Forensic and investigations.
Parses:
- ELF identification
- ELF headers
- Program headers
- ELF sections
- ELF symbols tables
- Comment section
- Note sections
- Dynamic section
## Requirements
This package require:
- python3
- pyt... | PypiClean |
/CMake_Class_Creator-0.1.6-py3-none-any.whl/CMakeClassCreator/source_inserter.py | from CMakeClassCreator import whitespace_inserter, ast, list_item_string_path
from abc import ABC, abstractmethod
class SourceInserterException(Exception):
pass
class InsertAction(object):
def __init__(self, position, content):
self.position = position
self.content = content
@property... | PypiClean |
/Aj_Zsl_nlu-4.2.0-py3-none-any.whl/nlu/pipe/viz/streamlit_viz/viz_building_blocks/classifier.py | import nlu
from nlu.discovery import Discoverer
from typing import List, Optional, Union
import streamlit as st
import pandas as pd
from nlu.pipe.viz.streamlit_viz.streamlit_utils_OS import StreamlitUtilsOS
from nlu.pipe.viz.streamlit_viz.gen_streamlit_code import get_code_for_viz
from nlu.pipe.viz.streamlit_viz.styles... | PypiClean |
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/trans/autotranslate.py |
from typing import List, Optional
from celery import current_task
from django.core.exceptions import PermissionDenied
from django.db import transaction
from weblate.machinery.models import MACHINERY
from weblate.trans.models import Change, Component, Suggestion, Unit
from weblate.utils.state import STATE_FUZZY, STAT... | PypiClean |
/Catwalk-2.0.2.tar.gz/Catwalk-2.0.2/catwalk/test/model.py | from hashlib import sha1
import os
import md5
import sha
from datetime import datetime
#from sqlalchemy.types import *
from sqlalchemy import *
from sqlalchemy.orm import relation, backref, synonym
from sqlalchemy.ext.declarative import DeclarativeMeta, declarative_base, synonym_for
from zope.sqlalchemy import ZopeT... | PypiClean |
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/obitools/location/__init__.py | import obitools
import re
import array
class Location(object):
"""
Define a location on a sequence.
"""
def extractSequence(self,sequence):
'''
Extract subsequence corresponding to a Location.
@param sequence:
@type sequence: C{BioSequence} or C{str}
... | PypiClean |
/MarkovPy-0.5.14.tar.gz/MarkovPy-0.5.14/markov/markov.py | import random
import re
from collections import Counter, namedtuple
re_smiley = re.compile(r'[8;:=%][-oc*^]?[)(D\/\\]')
re_smiley_reversed = re.compile(r'[)(D\/\\][-oc*^]?[8;:=%]')
re_smiley_asian = re.compile(r'\^[o_.]?\^')
extra_smileys = ['<3', '\o', '\o/', 'o/']
re_smileys = [re_smiley, re_smiley_reversed, re_smil... | PypiClean |
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/clustering/thresholdcalculator.py | from __future__ import absolute_import, division, print_function, unicode_literals
import sys
import numpy as np
from AdaptivePELE.constants import blockNames
from AdaptivePELE.clustering import thresholdcalculatortypes
from abc import abstractmethod
class ThresholdCalculatorBuilder():
def build(self, clusteringB... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/model/owlogisticregression.py | from itertools import chain
import numpy as np
from AnyQt.QtCore import Qt
from Orange.data import Table, Domain, ContinuousVariable, StringVariable
from Orange.classification.logistic_regression import LogisticRegressionLearner
from Orange.widgets import settings, gui
from Orange.widgets.utils.owlearnerwidget import ... | PypiClean |
/CloudReg-1.0.1-py3-none-any.whl/cloudreg/scripts/create_precomputed_volume.py | from .util import tqdm_joblib, calc_hierarchy_levels
import math
from cloudvolume import CloudVolume
import numpy as np
import joblib
from joblib import Parallel, delayed
from glob import glob
import argparse
import PIL
from PIL import Image
from psutil import virtual_memory
from tqdm import tqdm
import tinybrain
from... | PypiClean |
/GloboNetworkAPI-0.9.6.tar.gz/GloboNetworkAPI-0.9.6/networkapiclient/xml_utils.py |
from xml.dom import InvalidCharacterErr
from xml.dom.minidom import *
from xml.dom.minicompat import StringTypes
import re
class XMLErrorUtils(Exception):
"""Representa um erro ocorrido durante o marshall ou unmarshall do XML."""
def __init__(self, cause, message):
self.cause = cause
self.m... | PypiClean |
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/doc/source/pipeline.rst | ========
Pipeline
========
The following diagrams explain Dragonflow pipeline in more details
.. image:: ../images/pipeline1.jpg
:alt: Dragonflow Pipeline
:width: 600
:height: 525
:align: center
.. image:: ../images/pipeline2.jpg
:alt: Dragonflow Pipeline
:width: 600
:height: 525
:al... | PypiClean |
/BuildStream-2.0.1-cp39-cp39-manylinux_2_28_x86_64.whl/buildstream/_options/option.py |
from typing import TYPE_CHECKING
from ..node import _assert_symbol_name
if TYPE_CHECKING:
from typing import Optional
# Shared symbols for validation purposes
#
OPTION_SYMBOLS = ["type", "description", "variable"]
# Option()
#
# An abstract class representing a project option.
#
# Concrete classes must be cr... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dComboBox.py | import wx, dabo, dabo.ui
if __name__ == "__main__":
dabo.ui.loadUI("wx")
import dControlItemMixin as dcm
import dabo.dEvents as dEvents
from dabo.dLocalize import _
from dabo.ui import makeDynamicProperty
import dKeys
class dComboBox(dcm.dControlItemMixin, wx.ComboBox):
"""
Creates a combobox, which combines a dro... | PypiClean |
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/administration/user_auth/servers.py | from smc.base.model import ElementCreator, Element, ElementRef, ElementList
from smc.api.exceptions import CreateElementFailed
from smc.base.structs import NestedDict
from smc.base.util import element_resolver
from smc.elements.servers import ContactAddressMixin
class AuthenticationMethod(Element):
"""
An Aut... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_kab-dz.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 |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/blog/management/commands/import_posterous.py | import json
import time
from datetime import datetime
from django.core.management.base import CommandError
from mezzanine.blog.management.base import BaseImporterCommand
class Command(BaseImporterCommand):
"""
Import Tumblr blog posts into the blog app.
"""
def add_arguments(self, parser):
... | PypiClean |
/Concentration%20Free%20Outlier%20Factor-0.3.1.tar.gz/Concentration Free Outlier Factor-0.3.1/README.md | [](https://github.com/luk-f/pyCFOF/actions/workflows/python-publish.yml)
# pyCFOF
## Pour commencer
### Installation
Lancer `pip install -r requirements.txt` ou `python3 -m pip install -r requirements.txt`.
Ou à partir du dépôt ... | PypiClean |
/Gbtestapi0.2-0.1a10.tar.gz/Gbtestapi0.2-0.1a10/src/gailbot/plugins/suite.py |
import sys
import os
from typing import Dict, List, Any, Tuple
import time
from pydantic import BaseModel
from gailbot.plugins.plugin import Plugin, Methods
from gailbot.core.utils.logger import makelogger
from gailbot.configs import PLUGIN_CONFIG
from gailbot.core.pipeline import (
Pipeline,
Component,
C... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/dtl/contrib/dom.js.uncompressed.js | define("dojox/dtl/contrib/dom", [
"dojo/_base/kernel",
"dojo/_base/lang",
"dojo/_base/connect",
"dojo/dom-style",
"dojo/dom-construct",
"../_base",
"../dom"
], function(kernel,lang,connect,domStyle,domConstruct,dd,dddom){
/*=====
dd = dojox.dtl;
=====*/
var ddch = lang.getObject("dojox.dtl.contrib.dom", tru... | PypiClean |
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/pilot/impl/pilot_manager.py | import sys
import os
import time
import threading
import logging
import pdb
import Queue
import uuid
import traceback
import urlparse
from bigjob import logger
import pilot
from pilot.api import ComputeDataService, State
from pilot.impl.pilotdata_manager import DataUnit
from pilot.impl.pilotcompute_manager import Com... | PypiClean |
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/cli/systeminfo.py | __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2020 The OctoPrint Project - Released under terms of the AGPLv3 License"
import datetime
import logging
import os
import click
from zipstream.ng import ZIP_DEFLATED, ZipStream
from octoprint.cli im... | PypiClean |
/CustomPipeline-0.0.3-py3-none-any.whl/rpcore/pluginbase/base_plugin.py | from direct.stdpy.file import join
from rpcore.rpobject import RPObject
class BasePlugin(RPObject):
""" This is the base class for all plugins. All plugin classes derive from
this class. Additionally there are a lot of helpful functions provided,
such as creating render stages. """
# Plugins can se... | PypiClean |
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/gi2taxid.sh |
usage(){
echo "
Written by Brian Bushnell.
Last modified December 19, 2019
Description: Renames sequences to indicate their NCBI taxIDs.
The headers must be in NCBI or Silva format with gi numbers,
accessions, or organism names. Only supports fasta and gff files.
Usage: gi2taxid.sh in=<file> out=<file> server
Pa... | PypiClean |
/CADPR-0.1.1-py3-none-any.whl/_SnowflakePull.py | class SnowflakePull:
import pandas
def snowflake_pull(self, query: str | dict | None, un, wh, db, role, schema=None, table=None,
sample_table: bool = False, sample_val: bool = False, table_sample: dict = None,
dtypes_conv=None, separate_dataframes: bool = True, po... | PypiClean |
/BO4ML-0.3.1.tar.gz/BO4ML-0.3.1/readme_pypi.md | # BO4ML: Bayesian Optimization library Automated machine learning
### Contact us
Duc Anh Nguyen
Email:d-dot-a-dot-nguyen-at-liacs-dot-leidenuniv-dot-nl
Website: [ecole-itn.eu](https://ecole-itn.eu/)
## Citation
### Paper Reference
Duc Anh Nguyen, Anna V. Kononova, Stefan Menzel, Bernhard Sendhoff and Thomas Bäck... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/security/oauth2_servers.py | from oauthlib.oauth2.rfc6749.endpoints import (
AuthorizationEndpoint, IntrospectEndpoint, ResourceEndpoint,
RevocationEndpoint, TokenEndpoint,
)
from oauthlib.oauth2.rfc6749.grant_types import (
ClientCredentialsGrant, ImplicitGrant as OAuth2ImplicitGrant,
RefreshTokenGrant, ResourceOwnerPasswordCreden... | PypiClean |
/Cryptortool-1.5.6.tar.gz/Cryptortool-1.5.6/cryptortool/cli.py | try:
from cryptortool.cryptortool import Cryptor
except ModuleNotFoundError:
from cryptortool import Cryptor
def logo():
import os
os.system('cls||clear')
print("""
... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/code_generation/Contexts.py | import collections
from abc import abstractmethod
from contextlib import contextmanager
from nuitka import Options
from nuitka.__past__ import getMetaClassBase, iterItems
from nuitka.Constants import isMutable
from nuitka.PythonVersions import python_version
from nuitka.Serialization import ConstantAccessor
from nuitk... | PypiClean |
/NEURON_gpu_nightly-8.2a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/plugins.py | from .rxdException import RxDException
from . import rxd
from . import options
from . import species
from . import node
from . import section1d
class SolverPlugin:
def __init__(self):
_initialize(self)
"""Interface for solver plugins."""
def init(self, species_list, reactions_list):
"""P... | PypiClean |
/Flask_Admin-1.6.1-py3-none-any.whl/flask_admin/contrib/sqla/view.py | import logging
import warnings
import inspect
from sqlalchemy.orm.attributes import InstrumentedAttribute
from sqlalchemy.orm.base import manager_of_class, instance_state
from sqlalchemy.orm import joinedload, aliased
from sqlalchemy.sql.expression import desc
from sqlalchemy import Boolean, Table, func, or_
from sqla... | PypiClean |
/LangSpider-1.2.tar.gz/LangSpider-1.2/lang_spider/sync_spider.py |
import time
import requests
import threading
import urllib3
from enum import Enum
from abc import abstractmethod
from lang_spider.common.logger import logger
from lang_spider.web_http import Request,Response
from lang_spider.scheduler import QueueScheduler
from concurrent.futures import ThreadPoolExecutor
urllib3.dis... | PypiClean |
/ExplorerFramework-0.1.0-py3-none-any.whl/Explorer/explorer.py | class Water:
"""
This class is used to testing import and package code.
"""
# * testing functions
def add( num1, num2, stringify=False):
"""Adds 2 given numbers
Args:
num1 (int): This variable will be the one added by num2
num2 (int): This variable will ... | PypiClean |
/Mopidy-Lagukan-0.2.4.tar.gz/Mopidy-Lagukan-0.2.4/README.md | # Mopidy-Lagukan
Lagukan is a music recommendation service, and this extension allows it to
control which songs Mopidy plays. Lagukan will learn your preferences based on
what you skip. See https://lagukan.com.
[](https://youtu.be/Rr2R1fSZwPo)
## Installati... | PypiClean |
/Agatsuma-0.2.176.default.3499b00918ca.tip.tar.gz/Agatsuma-0.2.176.default.3499b00918ca.tip/agatsuma/web/tornado/spells/standalone/session_backends/mongo_backend.py |
import re
import time
import datetime
import pymongo
from agatsuma import log, Spell
from agatsuma.interfaces import AbstractSpell, IInternalSpell
from agatsuma.commons.types import Atom
from agatsuma.web.tornado.interfaces import ISessionBackendSpell
from agatsuma.web.tornado import BaseSessionManager
"""
Used ... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/src/extensions/multiple-sort/bootstrap-table-multiple-sort.js | let isSingleSort = false
const Utils = $.fn.bootstrapTable.utils
$.extend($.fn.bootstrapTable.defaults.icons, {
plus: {
bootstrap3: 'glyphicon-plus',
bootstrap4: 'fa-plus',
bootstrap5: 'fa-plus',
semantic: 'fa-plus',
materialize: 'plus',
foundation: 'fa-plus',
bulma: 'fa-plus',
'boots... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/postgres/search.py | from django.db.models import CharField, Field, FloatField, TextField
from django.db.models.expressions import CombinedExpression, Func, Value
from django.db.models.functions import Cast, Coalesce
from django.db.models.lookups import Lookup
class SearchVectorExact(Lookup):
lookup_name = 'exact'
def process_rh... | PypiClean |
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/postprocessing/SeqMetrics/_cls.py | import warnings
import numpy as np
from sklearn import preprocessing
# from sklearn.metrics import hinge_loss
from sklearn.metrics import balanced_accuracy_score
import sklearn
from .utils import list_subclass_methods, msg
from ._main import Metrics
from ai4water.backend import get_attributes
CLS_METRICS = get_attr... | PypiClean |
/Amino_new.py-5.0.tar.gz/Amino_new.py-5.0/new/sub_client.py | import hmac
import json
import base64
import requests
from uuid import UUID
from os import urandom
from hashlib import sha1
from time import timezone
from typing import BinaryIO
from binascii import hexlify
from time import time as timestamp
from json_minify import json_minify
from . import client
from .lib.util impo... | PypiClean |
/EMalign-1.0.5.tar.gz/EMalign-1.0.5/src/align_volumes_3d.py | import math
import logging
import numpy as np
from numpy import linalg as LA
from scipy.optimize import minimize
from scipy.spatial.transform import Rotation
from src.common_finufft import cryo_downsample
from src.cryo_project_itay_finufft import cryo_project
from src.genRotationsGrid import genRotationsGrid
from src.a... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/STIX-Web/Script/BoldItalic/Main.js | MathJax.OutputJax.SVG.FONTDATA.FONTS["STIXMathJax_Script-bold-italic"]={directory:"Script/BoldItalic",family:"STIXMathJax_Script",weight:"bold",style:"italic",id:"STIXWEBSCRIPTBI",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],8458:[462,224,819,27,771,"771 449l-278 -518c21 -10 52 -12 73 -12c24 0 58 1 110 35l20 -41c-45 -33 -1... | PypiClean |
/CATCHM-0.1-py3-none-any.whl/catchm/embeddings.py | from networkx.readwrite import edgelist
import numpy as np
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.utils.validation import check_array, check_is_fitted
import networkx as nx
from nodevectors import Node2Vec
import pandas as pd
from catchm.inductive import inductive_pooling
from catchm.ne... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/doc/sphinx/source/doc/models.rst | .. _doc-models:
#################
Creating models
#################
*Camelot* makes it easy to create views for any type of *Python* objects.
.. index:: SQLALchemy
SQLAlchemy is a very powerful Object Relational Mapper (ORM) with lots of possibilities for handling
simple or sophisticated datastructures. The `SQL... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/modules/runimagejmacro.py | import logging
import itertools
import os
import subprocess
from cellprofiler_core.image import Image
from cellprofiler.modules import _help
from cellprofiler_core.module import Module
from cellprofiler_core.setting.text import Filename, ImageName, Text, Directory
from cellprofiler_core.setting.do_something import Do... | PypiClean |
/Gestus-0.3.4.tar.gz/Gestus-0.3.4/gestus/migrations/0004_auto__del_field_website_url.py | from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Website.url'
db.delete_column(u'gestus_website', 'url')
def backwards(sel... | PypiClean |
/My_messenger_client_app-0.0.1-py3-none-any.whl/client/client/database.py | import datetime
import os
import sys
sys.path.append('../')
from common.variables import *
from sqlalchemy import create_engine, Table, Column, Integer, String, Text, MetaData, DateTime
from sqlalchemy.orm import mapper, sessionmaker
from sqlalchemy.sql import default_comparator
class ClientDatabase:
"""
Кла... | PypiClean |
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/client/util/funcutils.py |
# Copyright (c) 2015-2016, Thierry Lemeunier <thierry at lemeunier dot net>
# 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 n... | PypiClean |
/fastapi_jsonapi-2.0.0.tar.gz/fastapi_jsonapi-2.0.0/fastapi_jsonapi/data_layers/filtering/sqlalchemy.py | from typing import Any, List, Tuple, Type, Union
from pydantic import BaseModel
from pydantic.fields import ModelField
from sqlalchemy import and_, not_, or_
from sqlalchemy.orm import InstrumentedAttribute, aliased
from sqlalchemy.sql.elements import BinaryExpression
from fastapi_jsonapi.data_layers.shared import cr... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/flot/plugins/jquery.flot.pie.js | (function($) {
// Maximum redraw attempts when fitting labels within the plot
var REDRAW_ATTEMPTS = 10;
// Factor by which to shrink the pie when fitting labels within the plot
var REDRAW_SHRINK = 0.95;
function init(plot) {
var canvas = null,
target = null,
optio... | PypiClean |
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libreco/algorithms/pinsage.py | from .torch_modules import PinSageModel
from ..bases import ModelMeta, SageBase
from ..graph import NeighborWalker
from ..torchops import set_torch_seed
class PinSage(SageBase, metaclass=ModelMeta, backend="torch"):
"""*PinSage* algorithm. See :ref:`PinSage` for more details.
.. NOTE::
This algorithm... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/os.d.ts | declare module 'os' {
interface CpuInfo {
model: string;
speed: number;
times: {
user: number;
nice: number;
sys: number;
idle: number;
irq: number;
};
}
interface NetworkInterfaceBase {
address: string;
... | PypiClean |
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/ChimneyDetector/infer.py |
import os
import cv2
from lib.infer_detector import Infer
import torch
import time
from tqdm import tqdm
import argparse
import csv
import warnings
import shutil
# Ignore warning messages:
warnings.filterwarnings("ignore")
def get_args():
parser = argparse.ArgumentParser('EfficientDet-based chimney detection mod... | PypiClean |
/Flask-Velox-2014.04.25.tar.gz/Flask-Velox-2014.04.25/flask_velox/mixins/sqla/read.py | from flask import request
from flask_velox.mixins.sqla.object import BaseModelMixin, SingleObjectMixin
class ListModelMixin(BaseModelMixin):
""" Mixin provides ability to list multiple instances of a SQLAlchemy
model.
As well as attributes supported by the classes this mixin inherits from
other attri... | PypiClean |
/CaptureFile-1.1.0.tar.gz/CaptureFile-1.1.0/README.md | # CaptureFile - Transactional record logging library
## Overview
Capture files are compressed transactional record logs and by convention use the
extension ".capture". Records can be appended but not modified and are
explicitly committed to the file.
Any records that are added but not committed will not be visible t... | PypiClean |
/LanguageToolBear-0.10.0.tar.gz/LanguageToolBear-0.10.0/coalaLanguageToolBear/LanguageToolBear.py | import shutil
from guess_language import guess_language
from coalib.bearlib import deprecate_settings
from coalib.bears.LocalBear import LocalBear
from dependency_management.requirements.PipRequirement import PipRequirement
from coalib.results.Diff import Diff
from coalib.results.Result import Result
from coalib.resu... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/markupsafe/markupsafe/__init__.py | import re
import string
from ._compat import int_types
from ._compat import iteritems
from ._compat import Mapping
from ._compat import PY2
from ._compat import string_types
from ._compat import text_type
from ._compat import unichr
__version__ = "1.1.1"
__all__ = ["Markup", "soft_unicode", "escape", "escape_silent"... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/admin/utils.py | import datetime
import decimal
import json
from collections import defaultdict
from django.core.exceptions import FieldDoesNotExist
from django.db import models, router
from django.db.models.constants import LOOKUP_SEP
from django.db.models.deletion import Collector
from django.forms.utils import pretty_name
from djan... | PypiClean |
/MangaReaderScraper-0.51.tar.gz/MangaReaderScraper-0.51/scraper/parsers/mangakaka.py | import logging
import re
from pathlib import Path
from typing import Dict, Iterable, List, Optional, Tuple
import requests
from bs4 import BeautifulSoup
from bs4.element import Tag
from scraper.exceptions import MangaDoesNotExist, VolumeDoesntExist
from scraper.new_types import SearchResults
from scraper.parsers.base... | PypiClean |
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/tpu_exporters/faster_rcnn.py | """Python library for faster_rcnn model, tailored for TPU inference."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=protected-access
import tensorflow.compat.v1 as tf
# pylint: disable=g-import-not-at-top
# Checking TF version, because... | PypiClean |
/Django-TimelineJS-0.2.tar.gz/Django-TimelineJS-0.2/timelinejs/models.py | from django.db import models
from django.utils import simplejson
class Timeline(models.Model):
headline = models.CharField(max_length=200, help_text='Headline for timeline')
type = models.CharField(max_length=50, default="default")
start_date = models.DateField(blank=True, help_text='Timeline start date')... | PypiClean |
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/experiments/_rgr.py | __all__ = ["MLRegressionExperiments"]
from ai4water.utils.utils import get_version_info, dateandtime_now
from ._main import Experiments
from .utils import regression_space
from ai4water.backend import xgboost, lightgbm, catboost, sklearn
VERSION_INFO = get_version_info(sklearn=sklearn)
class MLRegressionExperiment... | PypiClean |
/FallingRocks-2.0.zip/FallingRocks-2.0/gameplay/gui_old.py | import subprocess
from PyQt5.QtCore import QObject, Qt, pyqtSignal, pyqtSlot, QBasicTimer, QTimer
from PyQt5.QtWidgets import QApplication, QMainWindow, QFrame, \
QDesktopWidget, QWidget, QLabel
from PyQt5.QtGui import QIcon, QPixmap, QPalette
from powerup import PowerupType, PowerupTimeInterval
class UserInterfa... | PypiClean |
/AnalysisProjectDependencies-0.1.tar.gz/AnalysisProjectDependencies-0.1/bower_components/jquery/src/css/support.js | define( [
"../core",
"../var/document",
"../var/documentElement",
"../var/support"
], function( jQuery, document, documentElement, support ) {
"use strict";
( function() {
// Executing both pixelPosition & boxSizingReliable tests require only one layout
// so they're executed at the same time to save the secon... | PypiClean |
/LFPy-2.3.tar.gz/LFPy-2.3/examples/bioRxiv281717/example_parallel_network_parameters.py | import matplotlib
import os
if 'DISPLAY' not in os.environ.keys():
matplotlib.use('agg')
import os
import numpy as np
from scipy import stats
from glob import glob
import json
from parameters import ParameterSet
from mpi4py import MPI
import neuron
import sys
from urllib.request import urlopen
from example_parallel... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/mode/yaml/yaml.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use s... | PypiClean |
/BIDS_stb-0.0.2.tar.gz/BIDS_stb-0.0.2/bids_stb/stb.py | import click
import sys
import json
import os
@click.command()
@click.argument('json_orig_path', type=click.Path(exists=True)) #help='Path of the original BIDS-format JSON.')
@click.option('--condition_names','-c',multiple=True, help='Condition names as they appear in the BIDS file. Takes multipe inputs separated by ... | PypiClean |
/MatPlotTheme-0.1.2.zip/MatPlotTheme-0.1.2/matplottheme/__init__.py | __version__ = '0.1.2'
__full_version__ = '0.1.2'
from .palette.default import Palette as _DefaultPalette
from .style.default import Style as _DefaultStyle
_palette = _DefaultPalette()
_style = _DefaultStyle(_palette)
def legend(ax, *args, **kwargs):
'''
Place a legend to the input :class:`matplotlib.axes.Ax... | PypiClean |
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/Functions/tensorflow_functions/people_retrain.py | r"""Simple transfer learning with Inception v3 or Mobilenet models.
With support for TensorBoard.
This example shows how to take a Inception v3 or Mobilenet model trained on
ImageNet images, and train a new top layer that can recognize other classes of
images.
The top layer receives as input a 2048-dimensional vector (... | PypiClean |
/Aquila_Resolve-0.1.4-py3-none-any.whl/Aquila_Resolve/processors.py | from __future__ import annotations
from typing import TYPE_CHECKING
from collections import defaultdict
import re
if TYPE_CHECKING:
from .g2p import G2p
_re_digit = re.compile(r"\d+")
class Processor:
def __init__(self, g2p: G2p):
self._lookup = g2p.lookup
self._cmu_get = g2p.dict.get
... | PypiClean |
/IPRA-3.17.51-py3-none-any.whl/ipra/View2/main.py | import customtkinter
from ipra.Utility.StringUtilityCTK import GetStringSingletionCTK
from ipra.Utility.ConfigUtility import GetConfigSingletion
from ipra.Logger.logger import Logger
from ipra.View2.aboutFrameCTK import AboutFrame
from ipra.View2.editSettingFrameCTK import EditSettingFrame
from ipra.View2.policyRobotF... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/auth/tokens.py | from datetime import datetime
from django.conf import settings
from django.utils.crypto import constant_time_compare, salted_hmac
from django.utils.http import base36_to_int, int_to_base36
class PasswordResetTokenGenerator:
"""
Strategy object used to generate and check tokens for the password
reset mech... | PypiClean |
/CRIkit2-0.4.4.tar.gz/CRIkit2-0.4.4/docs/source/cri_walkthru.rst | .. _cri_walkthru:
.. image:: _static/CRIkit2_Logo.png
:align: left
|
|
|
|
|
|
|
Walk-Thru: CRI Processing
=========================
This walk-thru will take you through several steps:
- `Overview`_
- `Generating the built-in Raman/BCARS numerical phantom`_
- `Viewing dark, NRB, and dataset spectra`_
- `Dark s... | PypiClean |
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/docs/usage/install.rst | Installation
==============
From source (recommended)
-------------------------------------
If you intend to install the latest unreleased version of the library (i.e from source), you can simply do:
.. code-block:: console
$ git clone https://github.com/SforAiDl/KD_Lib.git
$ cd KD_lib
$ python setup.p... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dButton.py | import wx
import dabo
import dabo.ui
if __name__ == "__main__":
dabo.ui.loadUI("wx")
import dControlMixin as cm
from dabo.dLocalize import _
import dabo.dEvents as dEvents
from dabo.ui import makeDynamicProperty
class dButton(cm.dControlMixin, wx.Button):
"""
Creates a button that can be pressed by the user to t... | PypiClean |
/OTLModel/Classes/StalenProfiel.py | from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from abc import abstractmethod
from OTLMOW.OTLModel.Classes.ConstructieElement import ConstructieElement
from OTLMOW.OTLModel.Classes.StalenConstructieElement import StalenConstructieElement
from OTLMOW.OTLModel.Classes.ConstructieElementenGC import Cons... | PypiClean |
/JustCause-0.4.tar.gz/JustCause-0.4/notebooks/template.ipynb | ```
import os
import sys
import math
import logging
from pathlib import Path
import numpy as np
import scipy as sp
import sklearn
import statsmodels.api as sm
from statsmodels.formula.api import ols
%load_ext autoreload
%autoreload 2
import matplotlib as mpl
import matplotlib.pyplot as plt
%matplotlib inline
%config... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/opencollective-postinstall/README.md | # Open Collective postinstall
[](https://greenkeeper.io/)
Lightweight npm postinstall message to invite people to donate to your collective
## Installation
```
npm install --save opencollective-postinstall
```
And in y... | PypiClean |
/ContrailOnlineCAService-0.4.0.tar.gz/ContrailOnlineCAService-0.4.0/contrail/security/onlineca/server/openssl_utils.py | __author__ = "P J Kershaw"
__date__ = "24/09/12"
__copyright__ = "(C) 2012 Science and Technology Facilities Council"
__license__ = "BSD - see LICENSE file in top-level directory"
__contact__ = "Philip.Kershaw@stfc.ac.uk"
__revision__ = '$Id$'
import re
from OpenSSL import crypto
class X509SubjectNameError(Exception... | PypiClean |
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/src/envs/common/action.py | import functools
import itertools
from typing import TYPE_CHECKING, Optional, Union, Tuple, Callable, List
from gym import spaces
import numpy as np
from highway_env import utils
from highway_env.utils import Vector
from highway_env.vehicle.behavior import IDMVehicle
from highway_env.vehicle.dynamics import BicycleVeh... | PypiClean |
/GhTrack-1.1.1.tar.gz/GhTrack-1.1.1/README.md | Introduction
============
github-track is a Python library to use the [Github API v3](http://developer.github.com/v3). With it, you can pull any public repositories pull requests from Python scripts. **Sending email currently work only with sendGrid**
The full documentation can be found here [github-track full docs](h... | PypiClean |
/OCRfixr-1.5.1-py3-none-any.whl/ocrfixr/spellcheck.py | from transformers import logging
logging.set_verbosity_error()
import re
import string
import ast
import importlib_resources
from collections import Counter
from transformers import pipeline
from symspellpy import SymSpell, Verbosity
from metaphone import doublemetaphone
import pkg_resources
### Load in project resou... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/lang/no.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang.no={dir:'ltr',editorTitle:'Rikteksteditor, %1, trykk ALT 0 for hjelp.',toolbar:'Verktøylinje',editor:'Rikteksteditor',source:'Kilde',newPage:'Ny Side',save:'La... | PypiClean |
/Nxpy-0.6.0.tar.gz/Nxpy-0.6.0/nxpy/maven/artifact.py |
# Copyright Nicola Musatti 2010 - 2017
# Use, modification, and distribution are subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# See http://nxpy.sourceforge.net for library home page. ---------------------
r"""
Maven artifa... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/lib/RemoteConnector.py | import urllib
import urllib2
import urlparse
import sys
import os
import re
import pickle
from os.path import join as pathjoin
from zipfile import ZipFile
from cStringIO import StringIO
import dabo
import dabo.dException as dException
from dabo.dApp import dApp
from dabo.dObject import dObject
from dabo.dLocalize impo... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/nls/nb/latinEntities.js | define(
"dojox/editor/plugins/nls/nb/latinEntities", //begin v1.x content
({
/* These are already handled in the default RTE
amp:"ampersand",lt:"less-than sign",
gt:"greater-than sign",
nbsp:"no-break space\nnon-breaking space",
quot:"quote",
*/
iexcl:"invertert utropstegn",
cent:"cent-tegn",
pound:"pund-t... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.