id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/GeoNode-3.2.0-py3-none-any.whl/geonode/themes/admin.py |
from django import forms
from django.contrib import admin
from .models import Partner, GeoNodeThemeCustomization, JumbotronThemeSlide
@admin.register(Partner)
class PartnerAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'title', 'href',)
class GeonodeThemCustomizationForm(forms.ModelForm):
class Me... | PypiClean |
/OAIPMHScraper-0.4.1.tar.gz/OAIPMHScraper-0.4.1/oaipmhscraper/eprints_harvest.py |
import simplejson
from oaipmh_scraper import OAIPMHScraper
from eprintsxml import Eprints3XML, NS
from xml.parsers.expat import ExpatError
from datetime import datetime
import sys, traceback
import logging
logger = logging.getLogger("Eprints3 Harvester")
logger.setLevel(logging.INFO)
ch = logging.StreamHandler()... | PypiClean |
/Autowire-1.1.4-py3-none-any.whl/autowire/base_container.py | from __future__ import annotations
import abc
from typing import Any, Callable, ContextManager, Dict, Optional, TypeVar
from autowire.base_resource import BaseResource
from autowire.exc import ResourceNotProvidedError
from autowire.implementation import (
ConstantImplementation,
ContextManagerImplementation,
... | PypiClean |
/OTLModel/Classes/Kast.py | from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from abc import abstractmethod
from OTLMOW.OTLModel.Classes.Behuizing import Behuizing
from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField
from OTLMOW.OTLModel.Datatypes.DtcAfmetingBxlxhInMm import DtcAfmetingBxlxhInMm
from OTLMOW.OTLModel.Da... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/dns/dnssec.py | from io import BytesIO
import struct
import time
import dns.exception
import dns.hash
import dns.name
import dns.node
import dns.rdataset
import dns.rdata
import dns.rdatatype
import dns.rdataclass
from ._compat import string_types
class UnsupportedAlgorithm(dns.exception.DNSException):
"""The DNSSEC algorithm ... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/backbones/hrnet.py | import warnings
import torch.nn as nn
from mmcv.cnn import build_conv_layer, build_norm_layer
from mmcv.runner import BaseModule, ModuleList, Sequential
from torch.nn.modules.batchnorm import _BatchNorm
from ..builder import BACKBONES
from .resnet import BasicBlock, Bottleneck
class HRModule(BaseModule):
"""Hig... | PypiClean |
/Logria-0.9.14.tar.gz/Logria-0.9.14/logria/communication/input_handler.py | import multiprocessing
import time
from fcntl import F_GETFL, F_SETFL, fcntl
from os import O_NONBLOCK
from subprocess import PIPE, Popen
from typing import List
class InputStream():
"""
Spawns a process that will create queues we can read from to get input from a stream
"""
def __init__(self, args: ... | PypiClean |
/GCN4LP-0.1-py3-none-any.whl/src/vgae/predict.py | import os
from configparser import ConfigParser
import numpy as np
import scipy.sparse as sp
from src.util.load_data import load_data
class Predict():
def __init__(self):
self.hidden_emb = None
self.adj_orig = None
def load_model_adj(self, config_path):
'''
load hidden_emb and... | PypiClean |
/GeophPy-0.32.2.tar.gz/GeophPy-0.32.2/docs/_build/html/_static/underscore.js | (function(){function q(a,c,d){if(a===c)return a!==0||1/a==1/c;if(a==null||c==null)return a===c;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual&&b.isFunction(a.isEqual))return a.isEqual(c);if(c.isEqual&&b.isFunction(c.isEqual))return c.isEqual(a);var e=l.call(a);if(e!=l.call(c))return false;switch(e){case... | PypiClean |
/Eden-2.1.14.zip/Eden-2.1.14/eden/edenLib/openGl/learn/ttftest/freetype-2.4.8/src/tools/docmaker/sources.py |
import fileinput, re, sys, os, string
################################################################
##
## BLOCK FORMAT PATTERN
##
## A simple class containing compiled regular expressions used
## to detect potential documentation format block comments within
## C source code
##
## note that the 'column'... | PypiClean |
/GenomeTreeTk-0.1.6.tar.gz/GenomeTreeTk-0.1.6/genometreetk/arb.py |
import os
import sys
import csv
import logging
import biolib.seq_io as seq_io
from biolib.taxonomy import Taxonomy
from genometreetk.common import (read_gtdb_metadata,
read_genome_dir_file,
read_gtdb_taxonomy)
class Arb(object):
"""Methods... | PypiClean |
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/examples/pilot-api/example-pilot-compute-data-cloud.py | import sys
import os
import time
import logging
import uuid
#logging.basicConfig(level=logging.DEBUG)
#sys.path.append(os.path.join(os.path.dirname(__file__), "../.."))
from pilot import PilotComputeService, PilotDataService, ComputeDataService, State
from bigjob import logger
COORDINATION_URL = "redis://localhost:6... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/policy/sql.py | from typing import List, Dict, Any, Tuple, Union, Optional
from collections import namedtuple, deque
import copy
import torch
from torch.distributions import Categorical
from ditk import logging
from easydict import EasyDict
from ding.torch_utils import Adam, to_device
from ding.utils.data import default_collate, defau... | PypiClean |
/MaTiSSe.py-1.3.3.tar.gz/MaTiSSe.py-1.3.3/CONTRIBUTING.md | # How to contribute
This project is open source, therefore, anyone interested to use, to develop or to contribute to it is welcome.
The project must remain KISS (Keep It Simple and Stupid) thus a few guidelines for contributing are provided.
## Issues Handling
If you find issues (bugs or new features requests) you ... | PypiClean |
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/codegen/plugins/print_operation.py | from __future__ import annotations
import textwrap
from typing import TYPE_CHECKING, List, Optional
from strawberry.codegen import CodegenFile, QueryCodegenPlugin
from strawberry.codegen.types import (
GraphQLBoolValue,
GraphQLEnumValue,
GraphQLFieldSelection,
GraphQLInlineFragment,
GraphQLIntValu... | PypiClean |
/NitPycker-0.1.tar.gz/NitPycker-0.1/nitpycker/plugins/manager.py | import argparse
import importlib
import inspect
import logging
import os
import unittest
from nitpycker.plugins.text_reporter import TextReporter
from nitpycker.plugins import Plugin, TestReporter
from nitpycker.result import ResultAggregator
__author__ = "Benjamin Schubert, ben.c.schubert@gmail.com"
def get_subcla... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcommon/model/api.py | import inspect
import asyncio
from imswitch.imcommon.framework import Mutex, Signal, SignalInterface
class APIExport:
""" Decorator for methods that should be exported to API. """
def __init__(self, *, runOnUIThread=False):
self._APIExport = True
self._APIRunOnUIThread = runOnUIThread
d... | PypiClean |
/OASYS1_HALF_SRW-0.0.3-py3-none-any.whl/orangecontrib/srw/widgets/scanning/ow_histogram_scan.py |
import sys, numpy
import os
import time
from PyQt5.QtGui import QTextCursor
from PyQt5.QtWidgets import QFileDialog, QInputDialog, QMessageBox
from orangewidget import gui
from orangewidget.settings import Setting
from oasys.widgets import gui as oasysgui
from oasys.widgets import congruence
from oasys.widgets.gui im... | PypiClean |
/EasyNMT-2.0.2.tar.gz/EasyNMT-2.0.2/easynmt/models/OpusMT.py | import time
from transformers import MarianMTModel, MarianTokenizer
import torch
from typing import List
import logging
logger = logging.getLogger(__name__)
class OpusMT:
def __init__(self, easynmt_path: str = None, max_loaded_models: int = 10):
self.models = {}
self.max_loaded_models = max_loade... | PypiClean |
/KPyGithub-1.32a1.tar.gz/KPyGithub-1.32a1/github/IssueComment.py |
# ########################## Copyrights and license ############################
# #
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
# Copyright 2012 Zearin <zearin@gonk.net> ... | PypiClean |
/DBigBang-0.2.tar.gz/DBigBang-0.2/dbigbang/utils.py | import networkx as nx
import pandas as pd
def labeled_blockmodel(g, partition):
"""
Perform blockmodel transformation on graph *g*
and partition represented by dictionary *partition*.
Values of *partition* are used to partition the graph.
Keys of *partition* are used to label the nodes of the
... | PypiClean |
/ECoXiPy-0.4.0.tar.gz/ECoXiPy-0.4.0/ecoxipy/transformation.py | import abc
from tinkerpy import metaclass
from ecoxipy import _unicode
NODE_TYPES = ('element', 'processing_instruction', 'text', 'comment',
'document')
class MATCH(object):
class _AddMatch(object):
def __init__(self, node_type):
self._attribute_name = '_MATCH_' + node_type
... | PypiClean |
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/redbot/core/modlog.py | import os
from datetime import datetime
from typing import List, Union
import discord
from redbot.core import Config
from redbot.core.bot import Red
from .utils.common_filters import (
filter_invites,
filter_mass_mentions,
filter_urls,
escape_spoilers,
)
__all__ = [
"Case",
"CaseType",
"... | PypiClean |
/LensProtocolPy-0.1.2.tar.gz/LensProtocolPy-0.1.2/README.md | # LensPy
Python library for the Lens Protocol.
Check out documentation on [readthedocs](https://lens-py.readthedocs.io/en/latest/#).
---
_-- WORK IN PROGRESS -- expected completion by Feb/March 2023_
---
### Aims for this project:
- Make Lens Protocol easy to use and accessible to Python developers.
- Build ... | PypiClean |
/ADCPy-0.1.1.tar.gz/ADCPy-0.1.1/README.md | # ADCPy - code to work with ADCP data from the raw binary using python 3.x
[](https://adcpy.readthedocs.io/en/latest/?badge=latest)
[](https://travis-ci.org/m... | PypiClean |
/Clorm-1.4.1-py3-none-any.whl/clorm/orm/atsyntax.py |
#import logging
#import os
import inspect
import collections.abc as cabc
import functools
from typing import Any, Callable, List, Sequence, Tuple, Type
from .core import *
from .core import get_field_definition, infer_field_definition
__all__ = [
'TypeCastSignature',
'ContextBuilder',
'make_function_asp_... | PypiClean |
/BackupPC-Clone-1.0.1.tar.gz/BackupPC-Clone-1.0.1/README.rst | BackupPC-Clone
##############
BackupPC-Clone is a tool for cloning, copying, or syncing the data of `BackupPC <https://github.com/backuppc/backuppc>`_
from one filesystem to another filesystem where ``rsync`` fails.
+-----------------------------------------------------------------------------------------------------... | PypiClean |
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/earl_pytorch/dataset/create_dataset_v2.py | import json
import os
import subprocess
import sys
import time
from typing import Tuple, Iterator
import ballchasing
import numpy as np
import pandas as pd
import torch
from torch.nn import CrossEntropyLoss
from torch.optim import Adam
from torch.utils.data.dataset import T_co, IterableDataset
from tqdm.contrib.concur... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Debug.py | import atexit
import os
import sys
import time
import weakref
import inspect
# Global variable that gets set to 'True' by the Main script,
# when the creation of class instances should get tracked.
track_instances = False
# List of currently tracked classes
tracked_classes = {}
def logInstanceCreation(instance, name=... | PypiClean |
/MLUtilities-1.0.0.tar.gz/MLUtilities-1.0.0/README.md | # MLUtilities
A collection of scripts for ML utilization

This package contains utility function for machine learning model building and data preprocessing such as
removing highly correlated features, date feature eng... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Tool/cyglink.py | from SCons.Tool.linkCommon import StringizeLibSymlinks, EmitLibSymlinks
from SCons.Util import CLVar, is_String
from . import gnulink
def cyglink_lib_emitter(target, source, env, **kw):
verbose = True
if 'variable_prefix' in kw:
var_prefix = kw['variable_prefix']
else:
var_prefix = 'SHLIB... | PypiClean |
/EasyNERTag-0.2-py3-none-any.whl/easynertag/core.py | from typing import List
from nltk.tokenize import RegexpTokenizer
import re
def white_space_split(text: str)->List[str]:
return text.split(" ")
class Engine:
def __init__(self,word_tokenize=white_space_split,pos_tag=None) -> None:
"""
word_tokenize: function for do word tokenize (default is ... | PypiClean |
/CMake_Class_Creator-0.1.6-py3-none-any.whl/CMakeClassCreator/class_inserter.py | from CMakeClassCreator import source_inserter
class ClassInserterException(Exception):
pass
_implementation_extensions = [".c", ".C", ".c++", ".cc", ".cpp", ".cxx"]
_header_extensions = [".hpp", ".h", ".hh", ".h++", ".hpp", ".hxx"]
def insert_class_next_to_other_class(cmake_ast, class_name, reference_class_name)... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/utils/struct/dataclass.py |
# Part of this code has been copy-pasted from the google/flax repository
# the copyright notice is reproduced below
# Copyright 2020 The Flax Authors.
#
# 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 L... | PypiClean |
/ModMLPy-0.1.0.tar.gz/ModMLPy-0.1.0/CONTRIBUTING.md | ```{todo} THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
The document assumes you are using a source repository service that promotes a
contribution model similar to [GitHub's fork and pull request workflow].
While this is true for the majority of services (like GitHub, GitLab,
BitBu... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/extensions/FontWarnings.js | (function(d,g){var f="2.0";var b=d.CombineConfig("FontWarnings",{messageStyle:{position:"fixed",bottom:"4em",left:"3em",width:"40em",border:"3px solid #880000","background-color":"#E0E0E0",color:"black",padding:"1em","font-size":"small","white-space":"normal","border-radius":".75em","-webkit-border-radius":".75em","-mo... | PypiClean |
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/project/project.py | import atexit, os, queue, threading, time, traceback, weakref
from . import (
attributes, clock, construct, edit_queue, fill, load, merge, recurse)
from .. util import exception, log
EDIT_QUEUE_MAXSIZE = 1000
NO_DATATYPE_ERROR = 'No "datatype" field in section "%s"'
MIN_TIME = 0.0001
class Project:
CHILDREN ... | PypiClean |
/Mopidy-Podcast-3.0.1.tar.gz/Mopidy-Podcast-3.0.1/docs/index.rst | **************
Mopidy-Podcast
**************
Mopidy-Podcast is a Mopidy_ extension for browsing and playing
podcasts.
This extension lets you browse podcasts distributed as RSS feeds and
play individual episodes in a variety of audio formats. Podcasts are
mapped to albums, while podcast episodes are shown as tracks ... | PypiClean |
/Mopidy-Mopify-1.7.3.tar.gz/Mopidy-Mopify-1.7.3/mopidy_mopify/static/debug/src/app/services/servicemanager.service.js | 'use strict';
angular.module('mopify.services.servicemanager', [
'LocalStorageModule',
'mopify.services.settings'
]).factory('ServiceManager', [
'$rootScope',
'$window',
'localStorageService',
'Settings',
function ($rootScope, $window, localStorageService, Settings) {
var rootkey = 'settings';
fun... | PypiClean |
/DjangoDav-0.0.1b16.tar.gz/DjangoDav-0.0.1b16/djangodav/fs/resources.py | import hashlib
import mimetypes
from sys import getfilesystemencoding
import os
import datetime
import shutil
import urllib
from django.http import HttpResponse
from django.utils.http import http_date
from djangodav.base.resources import BaseDavResource
from djangodav.responses import ResponseException
from djangodav... | PypiClean |
/Dero-0.15.0-py3-none-any.whl/dero/data/summarize/subset/outliers/summary/main.py | import pandas as pd
from dero.data.summarize.subset.outliers.summary.overview import bad_df_summary_df
from dero.data.summarize.subset.outliers.summary.stats import full_df_summary_stats_df
from dero.data.summarize.subset.outliers.select import drop_outliers_by_cutoffs
from dero.data.summarize.subset.outliers.summary.... | PypiClean |
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/GalleryUser.rst | .. _user:
====
user
====
The :class:`CGATReportPlugins.Renderer.User` does not render.
This renderer can be used to do some plotting within a
:term:`tracker`.
The examples below illustrate how different types of content can
be rendered.
Plotting with matplotlib
========================
The following :term:`tracker... | PypiClean |
/MNN_FMA-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl/MNN/tools/mnn_fb/Input.py |
# namespace: MNN
import flatbuffers
class Input(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsInput(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Input()
x.Init(buf, n + offset)
return x
# Input
def Init(self... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/fullpage/plugin.js | (function (domGlobals) {
'use strict';
var Cell = function (initial) {
var value = initial;
var get = function () {
return value;
};
var set = function (v) {
value = v;
};
return {
get: get,
set: set
};
};
var global = tinymce.u... | PypiClean |
/310_notebook-0.1.0-py3-none-any.whl/310_notebook/labextension/static/vendors-node_modules_css-loader_dist_runtime_api_js-node_modules_css-loader_dist_runtime_cssW-72eba1.a3ba3318a5d7528b56d6.js | "use strict";
(self["webpackChunk_310_notebook"] = self["webpackChunk_310_notebook"] || []).push([["vendors-node_modules_css-loader_dist_runtime_api_js-node_modules_css-loader_dist_runtime_cssW-72eba1"],{
/***/ "./node_modules/css-loader/dist/runtime/api.js":
/*!*****************************************************!*\... | PypiClean |
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megenginelite/utils.py | import threading
import warnings
import numpy as np
from .base import *
from .struct import *
from .tensor import *
class TensorBatchCollector:
"""
A tensor utils is used to collect many single batch tensor to a multi batch
size tensor, when the multi batch size tensor collect finish, the result
ten... | PypiClean |
/Kr0nOs_Bot-3.3.11-py3-none-any.whl/redbot/core/generic_casetypes.py | ban = {"name": "ban", "default_setting": True, "image": "\N{HAMMER}", "case_str": "Ban"}
kick = {"name": "kick", "default_setting": True, "image": "\N{WOMANS BOOTS}", "case_str": "Kick"}
hackban = {
"name": "hackban",
"default_setting": True,
"image": "\N{BUST IN SILHOUETTE}\N{HAMMER}",
"case_str": "H... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/FK6layers.py | pairs="""
26 134
140 71
137 169
56 40
35 189
2 162
47 171
75 31
113 188
133 98
52 175
146 64
97 27
49 129
15 93
67 172
10 120
185 63
180 139
48 158
163 167
165 158
81 21
195 203
22 62
121 169
83 190
200 13
36 110
34 199
18 101
111 98
7 82
10 82
103 70
46 20
53 94
7 16
37 45
27 203
60 197
176 19
195 84
46 96
9 23
74 135... | PypiClean |
/CodeGra.fs-0.4.2-py3-none-any.whl/codegra_fs/constants.py | fixed_mode_help = """Mount the original files as read only. It is still
possible to create new files, but it is not possible to alter or delete
existing files. The files shown are always the student revision files. The
created new files are only visible during a single session, they are **NOT**
uploaded to the server."... | PypiClean |
/DESlib-0.3.5-py3-none-any.whl/deslib/des/probabilistic/base.py |
# Author: Rafael Menelau Oliveira e Cruz <rafaelmenelau@gmail.com>
#
# License: BSD 3 clause
from abc import abstractmethod, ABCMeta
import numpy as np
from deslib.des.base import BaseDES
class BaseProbabilistic(BaseDES):
"""Base class for a DS method based on the potential function model.
All DS methods b... | PypiClean |
/NIA_image_2latex-1.0-py3-none-any.whl/eval.py | from dataset.dataset import Im2LatexDataset
import os
import sys
import argparse
import logging
import yaml
import numpy as np
import torch
from torchtext.data import metrics
from munch import Munch
from tqdm.auto import tqdm
import wandb
from Levenshtein import distance
from models import get_model, Model
from utils... | PypiClean |
/CrudeBHT-1.0.7-py3-none-any.whl/code/bhtree.py | from body import Body
from quadrant import Quadrant
class BHTree:
body: Body = None
nw: 'BHTree' = None
ne: 'BHTree' = None
sw: 'BHTree' = None
se: 'BHTree' = None
def __init__(self, quad: Quadrant):
self.quadrant = quad
def is_leaf(self) -> bool:
"""
If all nodes... | PypiClean |
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/user_request.py | import builtins
import datetime
from files_sdk.api import Api
from files_sdk.list_obj import ListObj
from files_sdk.exceptions import InvalidParameterError, MissingParameterError, NotImplementedError
class UserRequest:
default_attributes = {
'id': None, # int64 - ID
'name': None, # string -... | PypiClean |
/DVDev-0.1.3.tar.gz/DVDev-0.1.3/dvdev/public/js/development-bundle/ui/effects.core.js | ;jQuery.effects || (function($) {
$.effects = {
version: "1.7",
// Saves a set of properties in a data storage
save: function(element, set) {
for(var i=0; i < set.length; i++) {
if(set[i] !== null) element.data("ec.storage."+set[i], element[0].style[set[i]]);
}
},
// Restores a set of previously saved pr... | PypiClean |
/Instrumental-lib-0.7.zip/Instrumental-lib-0.7/instrumental/drivers/cameras/__init__.py | import abc
import json
import os.path
import numpy as np
from .. import Instrument
from ... import Q_, conf
from ...errors import Error
class Camera(Instrument):
"""A generic camera device.
Camera driver internals can often be quite different; however, Instrumental defines a few basic
concepts that all ... | PypiClean |
/Flask-SimplePay-1.5.tar.gz/Flask-SimplePay-1.5/flask_simplepay/core.py | import base64
import datetime as dt
import logging
import random
import json
import typing
from flask import Flask, Blueprint, abort, redirect, request, make_response, \
jsonify, flash
from flask_sqlalchemy import SQLAlchemy
import iso8601
import pytz
from flask_simplepay.model import TransactionMixin, OrderAddre... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/accounting/model/contact.py | import re # noqa: F401
import sys # noqa: F401
from typing import (
Optional,
Union,
List,
Dict,
)
from MergePythonSDK.shared.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
OpenApiModel,
change_keys_js_to_python,... | PypiClean |
/DISPbind-1.0.2.tar.gz/DISPbind-1.0.2/dispbind/bam2bw.py | import sys
import os
import os.path
import numpy.core.multiarray
import pysam
import pybedtools
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
from helper import logger, which
__author__ = [
'Rui Dong (rdong@mgh.harvard.edu)'
]
__all__ = ['align']
#@logger
def bam2bw(options):
# check index ... | PypiClean |
/ApiSpbStuRuz-1.1.2.tar.gz/ApiSpbStuRuz-1.1.2/License.md | MIT License
Copyright (c) 2023 Simonovsky Daniil Leonidovich
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, mer... | PypiClean |
/Flask%20of%20Cinema-1.0.0.tar.gz/Flask of Cinema-1.0.0/static/js/datepicker.js | (function($) {
'use strict';
let _defaults = {
// Close when date is selected
autoClose: false,
// the default output format for the input field value
format: 'mmm dd, yyyy',
// Used to create date object from current input string
parse: null,
// The initial date to view when first o... | PypiClean |
/Health_management-0.1-py3-none-any.whl/HEALTH_MANAGEMENT.py | # get date time
def getdate():
'''through this function you will get the date and time'''
import datetime
return datetime.datetime.now()
# loading function
def loading():
import time
for i in range(0,7):
print(".", end="")
time.sleep(1)
return print("loading over")
# FUNCTION T... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_my-mm.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": [
"\u1014\u1036\u1014\u1000\u103a",
"\u100a\u1014\u1031"
... | PypiClean |
/CustomPipeline-0.0.3-py3-none-any.whl/rpcore/effect.py | from rplibs.six import iteritems, iterkeys
from rplibs.yaml import load_yaml_file
from panda3d.core import Filename
from direct.stdpy.file import open
from rpcore.rpobject import RPObject
from rpcore.loader import RPLoader
class Effect(RPObject):
""" This class represents an instance of a compiled effect. It c... | PypiClean |
/FileDropper-0.2.tar.gz/FileDropper-0.2/FileDropper.py | import os.path, re, socket, urllib, urllib2
from types import StringTypes
from BeautifulSoup import BeautifulSoup
import poster.encode, poster.streaminghttp
# Permissions
FD_PERM_PUBLIC = 0
FD_PERM_PASSWORD = 1
FD_PERM_PRIVATE = 2
# Prefix for all the URLs used in the module
FD_URL = "http://www.filedropp... | PypiClean |
/Num_CFS_Cluster-0.5.3.tar.gz/Num_CFS_Cluster-0.5.3/README.md | # Causal-Fermion-System-of-Dirac-Sphere
Basically for a set of parameters i use Symengine to produce a function, which is the integrand of the Action-Integral. The integration is done numerically. I am searching for the set of parameters, which minimizes the Integral.
[Causal-Fermion-Systems](https://en.wikipedia.org/... | PypiClean |
/Aries-core-0.1.330.tar.gz/Aries-core-0.1.330/Aries/tasks.py | import logging
import pstats
import subprocess
import threading
import time
import traceback
from cProfile import Profile
# try:
from .outputs import CaptureOutput
# except SystemError:
# import sys
# from os.path import dirname
# aries_parent = dirname(dirname(__file__))
# if aries_parent not in sys.pa... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/avatars/settings.py | class AvatarSettingsManager(object):
"""The settings manager is responsible for loading and saving settings.
Each user can have different avatar configuration and the settings
manager is responsible for loading and saving per-user configuration for
services.
This class is intended to be sub-classe... | PypiClean |
/KratosDamApplication-9.2.0-cp36-cp36m-win_amd64.whl/KratosMultiphysics/DamApplication/dam_MPI_thermo_mechanic_solver.py | from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
#import kratos core and applications
import KratosMultiphysics
import KratosMultiphysics.mpi as mpi
import KratosMultiphysics.TrilinosApplication as TrilinosApplication
import KratosMu... | 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/canvas/utils.py | import graphlab.connect as _mt
import logging as _logging
import json as _json
import math as _math
import datetime as _datetime
import six as _six
import sys
if sys.version_info.major > 2:
long = int
"""
This package contains the implementation of the server component of GraphLab
Canvas, the visualization engine... | PypiClean |
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/modules/encoders/bert_encoder.py | import sys
from typing import Optional, Union
import torch
from torch import nn
from BIT_DL.pytorch.core import layers
from BIT_DL.pytorch.modules.embedders.embedders import WordEmbedder
from BIT_DL.pytorch.modules.embedders.position_embedders import PositionEmbedder
from BIT_DL.pytorch.modules.encoders.encoder_base ... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/core/characters.py |
from __future__ import unicode_literals
# Character ranges of letters
letters = 'a-zA-Z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u0103\u0106\u0107\
\u010c-\u010f\u0112-\u0115\u011a-\u012d\u0131\u0141\u0142\u0147\u0148\
\u0150-\u0153\u0158-\u0161\u0164\u0165\u016e-\u0171\u017d\u017e\
\u0391-\u03a1\u03a3-\u03a9\u03b1-\u03c9\u0... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/modules/overlayoutlines.py | import numpy
import skimage.color
import skimage.segmentation
import skimage.util
from cellprofiler_core.image import Image
from cellprofiler_core.module import Module
from cellprofiler_core.setting import Binary, Divider, SettingsGroup, Color
from cellprofiler_core.setting.choice import Choice
from cellprofiler_core.s... | PypiClean |
/KnitScript-0.1.tar.gz/KnitScript-0.1/README.md | # KnitScript
## Set Up
Install Development Version (from local source code)
```
$ git clone https://github.khoury.northeastern.edu/mhofmann/KnitScript.git
$ pip install -e KnitScript
```
This will clone the repository to your machine and then install the system for active development to your python
interpreter ass... | PypiClean |
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/Heterogeneous_Highway_Env/envs/lane_keeping_env.py | from __future__ import division, print_function, absolute_import
import copy
from typing import Tuple
import numpy as np
from gym.envs.registration import register
from highway_env.envs.common.abstract import AbstractEnv
from highway_env.road.lane import LineType, SineLane, StraightLane
from highway_env.road.road im... | PypiClean |
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/condensation/node.py |
import math
import copy
from oslo_config import cfg
from cloudferry.condensation import algorithms
CONF = cfg.CONF
class Node(object):
"""This class is representation of physical server"""
def __init__(self, name, core, ram, core_ratio, ram_ratio,
ram_factor, core_factor):
sel... | PypiClean |
/Charisma_toolbox-0.0.2-py3-none-any.whl/Charisma_toolbox-0.0.2.data/data/help/orange3-example/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/nodes/BuiltinRangeNodes.py | import math
from nuitka.PythonVersions import python_version
from nuitka.specs import BuiltinParameterSpecs
from .ExpressionBases import (
ExpressionChildHavingBase,
ExpressionChildrenHavingBase,
)
from .ExpressionShapeMixins import ExpressionListShapeExactMixin
from .IterationHandles import (
IterationHa... | PypiClean |
/FEV_KEGG-1.1.4.tar.gz/FEV_KEGG-1.1.4/FEV_KEGG/Experiments/39.py | from FEV_KEGG.Evolution.Taxonomy import NCBI
import FEV_KEGG.KEGG.Organism as Organism
from FEV_KEGG.Graph.Elements import EcNumber
from FEV_KEGG.KEGG.NUKA import NUKA
if __name__ == '__main__':
output = ['Maj. %\tothers\tboth\tours']
#- extract EC numbers
theirECnumberStrings = ['1.1.1.-', '1.... | PypiClean |
/EXtra_data-1.14.0-py3-none-any.whl/extra_data/reader.py | import datetime
import fnmatch
import logging
import os
import os.path as osp
import re
import signal
import sys
import tempfile
import time
from collections import defaultdict
from collections.abc import Iterable, Mapping
from itertools import groupby
from multiprocessing import Pool
from operator import index
from pa... | PypiClean |
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/tweak/shell/vendor/codemirror-2.13/mode/lua/lua.js |
CodeMirror.defineMode("lua", function(config, parserConfig) {
var indentUnit = config.indentUnit;
function prefixRE(words) {
return new RegExp("^(?:" + words.join("|") + ")", "i");
}
function wordRE(words) {
return new RegExp("^(?:" + words.join("|") + ")$", "i");
}
var specials = wordRE(parserCo... | PypiClean |
/MyGNUHealth-1.0.5.tar.gz/MyGNUHealth-1.0.5/mygnuhealth/glucose.py |
import datetime
from uuid import uuid4
from PySide2.QtCore import QObject, Signal, Slot
from tinydb import TinyDB
from mygnuhealth.myghconf import dbfile
from mygnuhealth.core import PageOfLife
class Glucose(QObject):
"""Class that manages the person blood glucose readings
Attributes:
----------... | PypiClean |
/Codenotes-1.0a2-py3-none-any.whl/codenotes/util/help.py | from typing import Text, Final
CLI_USAGE_TEXT: Final[Text] = """[quote]Write any thought you have without quitting from the command line[/quote]
[header]USAGE[/header]
codenotes <command> <annotation> <text> <flags>
[header]CORE COMMANDS[/header]
add Create new note or task with the content typed
search Search... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/src/extensions/reorder-columns/bootstrap-table-reorder-columns.js | $.akottr.dragtable.prototype._restoreState = function (persistObj) {
let i = 0
for (const [field, value] of Object.entries(persistObj)) {
const $th = this.originalTable.el.find(`th[data-field="${field}"]`)
if (!$th.length) {
i++
continue
}
this.originalTable.startIndex = $th.prevAll()... | PypiClean |
/GraphQL_core_next-1.1.1-py3-none-any.whl/graphql/execution/middleware.py | from functools import partial, reduce
from inspect import isfunction
from typing import Callable, Iterator, Dict, List, Tuple, Any, Optional
__all__ = ["MiddlewareManager"]
GraphQLFieldResolver = Callable[..., Any]
class MiddlewareManager:
"""Manager for the middleware chain.
This class helps to wrap reso... | PypiClean |
/GRIDOPT-1.3.7rc1.tar.gz/GRIDOPT-1.3.7rc1/LICENSE.md | Copyright (c) 2019, Tomas Tinoco De Rubira.
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 foll... | PypiClean |
/Harambe-0.10.0.tar.gz/Harambe-0.10.0/harambe/skel/create/app/config.py | from . import (get_var_path,
ROOT_DIR,
VAR_DIR,
AVAILABLE_APPS)
class BaseConfig(object):
"""
Base Configuration.
"""
# ------------------------------------------------------------------------------
#: Config
#: Site's name or Name of the application
... | PypiClean |
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/custom_body_force/hdf5_output_tool.py | import KratosMultiphysics
import h5py
import numpy as np
class Hdf5OutputTool:
def __init__(self, model, settings, ):
default_settings = KratosMultiphysics.Parameters("""
{
"model_part_name" : "main_model_part",
"file_name" : "output_file",
... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/data/owneighbors.py | import numpy as np
from AnyQt.QtCore import Qt
from Orange.data import Table, Domain, ContinuousVariable
from Orange.data.util import get_unique_names
from Orange.preprocess import RemoveNaNColumns, Impute
from Orange import distance
from Orange.widgets import gui
from Orange.widgets.settings import Setting
from Oran... | PypiClean |
/Merlot-0.2.zip/Merlot-0.2/merlot/static/merlot.js | var dateFormat = "yy-mm-dd";
$(document).ready(function() {
// focus in login page
$('#form\\.username').focus();
function dateTranslatorSetup(input) {
input.before('<div class="hint date-translated">'+merlot.i18n.TYPE_DATE_BELOW_I18N+'</div>');
};
$("#form\\.date").datepicker({... | PypiClean |
/DeepXDE-1.9.3-py3-none-any.whl/deepxde/backend/tensorflow_compat_v1/tensor.py | from packaging.version import Version
import tensorflow.compat.v1 as tf
if Version(tf.__version__) < Version("2.7.0"):
raise RuntimeError("DeepXDE requires TensorFlow>=2.7.0.")
# The major changes from TensorFlow 1.x to TensorFlow 2.x are:
# 1. Eager execution: enable_eager_execution(), disable_eager_execution... | PypiClean |
/DXR-1.9.4.tar.gz/DXR-1.9.4/dxr_cli/code_execution.py | import os
from queue import Queue
from subprocess import PIPE, Popen
from threading import Thread
# Local
# from DXRExplain.utilities.parsers import get_code_exec_command, get_error_message
GRAY = "\033[37m"
END = "\033[0m"
# Standard library
import re
######
# MAIN
######
def get_language(args):
"""
Ret... | PypiClean |
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/layout/matrix_drawing.py | import math
from .. colors import COLORS, arithmetic
from .. util import log
from . import font
##########################################################################
# Drawing Functions
# Lovingly borrowed from Adafruit
# https://github.com/adafruit/Adafruit-GFX-Library/blob/master/Adafruit_GFX.cpp
##############... | PypiClean |
/NEU-ipgw-manager-3.0rc0.tar.gz/NEU-ipgw-manager-3.0rc0/ipgw/cli/ipgw.py | from .arguments import args
from ..core.errors_modals import *
from ..core.config import config, add_user, set_default_username, update_last_login_info
from .get_info import get_settings
from .print_status import print_ipgw_status
import logging
# ipgw的命令行界面。
from ..core.ipgw import IPGW
logging.basicConfig(format='%(... | PypiClean |
/Boodler-2.0.3.tar.gz/Boodler-2.0.3/src/boodle/stereo.py | # Currently, a stereo object is represented as a tuple of zero, two, or
# four floats: (xscale, xshift, yscale, yshift). A 2-tuple only has
# the X values, and the 0-tuple represents the identity (1,0,1,0).
# However, the implementation may change in the future. So keep using
# these utility functions.
# Handy constan... | PypiClean |
/HexColors-0.0.2.tar.gz/HexColors-0.0.2/hexcolors/colors.py | from enum import Enum
# DATA FROM https://www.rapidtables.com/web/color/html-color-codes.html August 2nd 2019
class ColorEnum(Enum):
def __get__(self, instance, owner):
return self.value
class Red(ColorEnum):
LIGHT_SALMON = (255, 160, 122)
SALMON = (250, 128, 114)
DARK_SALMON = (233, 150, 1... | PypiClean |
/Graphy-1.0.0.tar.gz/Graphy-1.0.0/graphy/line_chart.py | import copy
import warnings
from graphy import common
class LineStyle(object):
"""Represents the style for a line on a line chart. Also provides some
convenient presets.
Object attributes (Passed directly to the Google Chart API. Check there for
details):
width: Width of the line
on: Length of a... | PypiClean |
/IHEWAwapor-0.0.2.tar.gz/IHEWAwapor-0.0.2/LICENSE.rst | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Pream... | PypiClean |
/Flask-Security-Too-5.3.0.tar.gz/Flask-Security-Too-5.3.0/flask_security/static/js/webauthn.js | function b64enc(buf) {
return base64js.fromByteArray(buf)
.replace(/\+/g, "-")
.replace(/\//g, "_")
.replace(/=/g, "");
}
function b64RawEnc(buf) {
return base64js.fromByteArray(buf)
.replace(/\+/g, "-")
.replace(/\//g, "_");
}
function encode(a... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/classes/ui/NativeListBox.js | (function(tinymce) {
var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, Dispatcher = tinymce.util.Dispatcher;
/**
* This class is used to create list boxes/select list. This one will generate
* a native control the way that the browser produces them by default.
*
* @class tinymce.ui.Nativ... | PypiClean |
/Brian2Cuda-1.0a2-py3-none-any.whl/brian2cuda/utils/stringtools.py | import re
import os
def append_f(match):
'''
Append ``'f'`` to the string in ``match`` if it doesn't end with ``'f'``.
Used in ``replace_floating_point_literals``.
Parameters
----------
match : re.MatchObject
The return type of e.g. ``re.match`` or ``re.search``.
Returns
----... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.