id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Jalapeno-0.1.4.tar.gz/Jalapeno-0.1.4/Jalapeno_data/Sites/first/Pages/doc/config.md | title: 初始化&配置
pos: 2
###初始化Jalapeno目录
首先我们在终端执行
$Jalop -s
或
$Jalop shortcuts
该指令可以在你的用户主目录(下载/文档/图片/...的上一级目录)下生成一个'Jalapeno'文件夹,但是你的文件夹上面会有一把锁子的图标,意味着你的文件夹需要访问权限,需要输入密码才能修改,你可能会说这多不方便啊。于是我们有了下面的操作,把这把锁子去掉
$Jalop -u
或
$Jalop unlock
好了,来看我们的目录文件夹吧。
###配置个人信息
在第一次运行前我们需要对Jalapeno进... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/urls/base.py | from urllib.parse import unquote, urlsplit, urlunsplit
from asgiref.local import Local
from django.utils.functional import lazy
from django.utils.translation import override
from .exceptions import NoReverseMatch, Resolver404
from .resolvers import _get_cached_resolver, get_ns_resolver, get_resolver
from .utils impo... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js |
var DateTimeShortcuts = {
calendars: [],
calendarInputs: [],
clockInputs: [],
calendarDivName1: 'calendarbox', // name of calendar <div> that gets toggled
calendarDivName2: 'calendarin', // name of <div> that contains calendar
calendarLinkName: 'calendarlink',// name of the link that is used t... | PypiClean |
/ConfigViper-0.5.tar.gz/ConfigViper-0.5/configviper/configviper.py |
import codecs
import hashlib
import json
import logging
import os
import pprint
import shutil
import socket
import threading
import warnings
import converters
from lockfile import lockfile
try:
from logging import NullHandler
except ImportError:
# keeps Python 2.6 working
class NullHandler(logging.Handl... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/grid/EnhancedGrid.js | if(!dojo._hasResource["dojox.grid.EnhancedGrid"]){
dojo._hasResource["dojox.grid.EnhancedGrid"]=true;
dojo.provide("dojox.grid.EnhancedGrid");
dojo.require("dojox.grid.DataGrid");
dojo.require("dojox.grid.enhanced._Plugin");
dojo.requireLocalization("dojox.grid.enhanced","EnhancedGrid",null,"ROOT,cs,de,es,fr,hu,it,ja,k... | PypiClean |
/DevDoc-0.3.tar.gz/DevDoc-0.3/devdoc/devdoc.py | import inspect
import importlib
import os
import sys
import platform
import glob
def rm_docstring_from_source(source):
"""
Remote the docstring from the source code of a function or a class
**Parameters**
> **source:** `str` -- Source code of a function or a class
**Returns**
> `str` -- Sour... | PypiClean |
/Aggregator-20.5.tar.gz/Aggregator-20.5/README.rst |
=================
Aggregator README
=================
This package contains a class for aggregation of high resolution data on coarse grids.
Installation:
-------------
After downloading the source from github_ install via pip, descending
into the top-level of the source tree
and launching::
pip3 install .
or ... | PypiClean |
/GoogleAppEngineMapReduce-1.9.22.0.tar.gz/GoogleAppEngineMapReduce-1.9.22.0/mapreduce/input_readers.py | __all__ = [
"AbstractDatastoreInputReader",
"ALLOW_CHECKPOINT",
"BadReaderParamsError",
"BlobstoreLineInputReader",
"BlobstoreZipInputReader",
"BlobstoreZipLineInputReader",
"COUNTER_IO_READ_BYTES",
"COUNTER_IO_READ_MSEC",
"DatastoreEntityInputReader",
"DatastoreInputReader",
... | PypiClean |
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/access_control/models.py | from django.core.exceptions import ValidationError
from django.db import models
from django.db.models import signals
from django.contrib.auth.models import User as DjangoUser, Group as DjangoGroup
from django.contrib.contenttypes.models import ContentType
from helmholtz.core.models import CastManager, Cast, CastQuerySe... | PypiClean |
/GinniroDQN-0.9.0.tar.gz/GinniroDQN-0.9.0/ginniro/worldmodel/wo_feature_imp.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class AttentionGRUCell(nn.Module):
def __init__(self, input_size, hidden_size):
super(AttentionGRUCell, self).__init__()
self.hidden_size = hidden_size
self.Wr = nn.Linear(input_size, hi... | PypiClean |
/GsuiteToMd-1.3.0.tar.gz/GsuiteToMd-1.3.0/docs/build/html/_static/js/html5shiv-printshiv.min.js | !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/src/lib/resolveDefaultsAtRules.js | import postcss from 'postcss'
import selectorParser from 'postcss-selector-parser'
import { flagEnabled } from '../featureFlags'
let getNode = {
id(node) {
return selectorParser.attribute({
attribute: 'id',
operator: '=',
value: node.value,
quoteMark: '"',
})
},
}
function minimumI... | PypiClean |
/Flask-Actions-0.6.6.tar.gz/Flask-Actions-0.6.6/docs/index.rst | Flask-Actions
=========================================
.. module:: Flask-Actions
The **Flask-Actions** extension provides support for writing external actions in Flask. This includes running a development server, a customized Python shell,a fastcgi server like django .
Install
-------------------------
Install w... | PypiClean |
/Charisma_toolbox-0.0.2-py3-none-any.whl/orangecontrib/extension/utils/splitt.py | def train_test_split(*arrays, **options):
"""Split arrays or matrices into random train and test subsets
Quick utility that wraps input validation and
``next(ShuffleSplit().split(X, y))`` and application to input data
into a single call for splitting (and optionally subsampling) data in a
oneliner.
... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/UpgradeBar.js | define(["dijit","dojo","dojox","dojo/require!dojo/window,dojo/fx,dojo/cookie,dijit/_Widget,dijit/_Templated"],function(_1,_2,_3){
_2.provide("dojox.widget.UpgradeBar");
_2.require("dojo.window");
_2.require("dojo.fx");
_2.require("dojo.cookie");
_2.require("dijit._Widget");
_2.require("dijit._Templated");
_2.experiment... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/colorama/colorama/ansitowin32.py | import re
import sys
import os
from .ansi import AnsiFore, AnsiBack, AnsiStyle, Style, BEL
from .winterm import WinTerm, WinColor, WinStyle
from .win32 import windll, winapi_test
winterm = None
if windll is not None:
winterm = WinTerm()
class StreamWrapper(object):
'''
Wraps a stream (such as stdout), ... | PypiClean |
/JWST_IMAGE_MAKER-0.3.1.tar.gz/JWST_IMAGE_MAKER-0.3.1/JWST_IMAGE_MAKER/Regridding.py | import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits
from astropy import wcs
import glob
from JWST_IMAGE_MAKER import importing
from scipy import ndimage
# main function
def regrid_images(new_processed_data: np.ndarray, filenames: list):
"""This function aligns different images in space b... | PypiClean |
/DESPOTIC-2.1.tar.gz/DESPOTIC-2.1/despotic/zonedcloud.py |
import numpy as np
from .cloud import cloud
from .dustProp import dustProp
from .despoticError import despoticError
from copy import deepcopy
import scipy.constants as physcons
mH = physcons.m_p*1e3
kB = physcons.k*1e7
G = physcons.G*1e3
h = physcons.h*1e7
c = physcons.c*1e2
class zonedcloud(object):
"""
A cl... | PypiClean |
/JO_AutoMl_Sathishmahi-0.0.5-py3-none-any.whl/JO_AutoMl/handle_categorical_features.py | from sklearn.preprocessing import LabelEncoder, LabelBinarizer
import pandas as pd
from JO_AutoMl.all_names import handle_catData_dict as dic
from JO_AutoMl.exception import CustomException
import sys
class cat_value:
def __init__(self):
labelEncoder = LabelEncoder()
labelBinarizer = LabelBinarize... | PypiClean |
/Mirolyubov_lab3_new_version-4.0.1.tar.gz/Mirolyubov_lab3_new_version-4.0.1/Mirolyubov_lab3_new_version/xml_serializer.py | from Mirolyubov_lab3_new_version.packing import convert, deconvert
from Mirolyubov_lab3_new_version.CONSTANTS import PRIMITIVE_TYPES
class Xml:
def __init__(self):
self.pos = 0
self.indent = 0
def dumps(self, obj):
return self.serialize_to_str(convert(obj))
def dump(self, obj, fi... | PypiClean |
/CodetagCrawler-1.0.17.tar.gz/CodetagCrawler-1.0.17/README.md | # Codetag Crawler
## Description:
This package provides a click command line interface to a codetag crawler, which
searches through a target directory for codetags, and formats them to a .csv format
that can be imported to Azure DevOps or other services using equivalent .csv formats.
A config file is provided to defin... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Environment.py | import copy
import os
import sys
import re
import shlex
from collections import UserDict
import SCons.Action
import SCons.Builder
import SCons.Debug
from SCons.Debug import logInstanceCreation
import SCons.Defaults
from SCons.Errors import UserError, BuildError
import SCons.Memoize
import SCons.Node
import SCons.Node.... | PypiClean |
/Agora-Fountain-0.5.6.tar.gz/Agora-Fountain-0.5.6/agora/fountain/index/paths.py | import logging
import multiprocessing
from datetime import datetime as dt
import networkx as nx
from concurrent.futures import wait, ALL_COMPLETED
from concurrent.futures.thread import ThreadPoolExecutor
from agora.fountain.index import core as index, seeds
__author__ = 'Fernando Serena'
log = logging.getLogger('ag... | PypiClean |
/Audit-Alembic-0.1.0.tar.gz/Audit-Alembic-0.1.0/ci/appveyor-bootstrap.py | from __future__ import print_function
from os import environ
from os.path import exists
from subprocess import check_call
try:
from urllib.request import urlretrieve
except ImportError:
from urllib import urlretrieve
BASE_URL = "https://www.python.org/ftp/python/"
GET_PIP_URL = "https://bootstrap.pypa.io/get-... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/data/utils/pythoneditor/rectangularselection.py | from PyQt5.QtCore import Qt, QMimeData
from PyQt5.QtWidgets import QApplication, QTextEdit
from PyQt5.QtGui import QKeyEvent, QKeySequence, QPalette, QTextCursor
class RectangularSelection:
"""This class does not replresent any object, but is part of Qutepart
It just groups together Qutepart rectangular selec... | PypiClean |
/OASYS1-ALS-ShadowOui-0.0.60.tar.gz/OASYS1-ALS-ShadowOui-0.0.60/orangecontrib/xoppy/als/widgets/srcalc/srcalc_idpower.py | import sys, os, platform
import numpy
from PyQt5.QtWidgets import QApplication, QSizePolicy
from PyQt5 import QtGui, QtWidgets
from orangewidget import gui
from orangewidget.settings import Setting
from oasys.widgets import gui as oasysgui, congruence
from orangecontrib.xoppy.widgets.gui.ow_xoppy_widget import Xoppy... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/semver/classes/range.js | class Range {
constructor (range, options) {
options = parseOptions(options)
if (range instanceof Range) {
if (
range.loose === !!options.loose &&
range.includePrerelease === !!options.includePrerelease
) {
return range
} else {
return new Range(range.raw, op... | PypiClean |
/EditObj2-0.5.1.tar.gz/EditObj2-0.5.1/undoredo.py |
# undoredo.py
# Copyright (C) 2007 Jean-Baptiste LAMY -- jiba@tuxfamily.org
#
# 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 2 of the License, or
# (at your option) any later ve... | PypiClean |
/Milla-1.0.tar.gz/Milla-1.0/src/milla/util.py | from wsgiref.handlers import format_date_time
import datetime
import time
try:
import configparser
except ImportError:
import ConfigParser as configparser
def asbool(val):
'''Test a value for truth
Returns ``False`` values evaluating as false, such as the integer
``0`` or ``None``, and for the fol... | PypiClean |
/Flask%20Babac-0.1.0.tar.gz/Flask Babac-0.1.0/README.md | [](https://github.com/psf/black)
# Flask Babac
A Python3 Flask front-end application to search the Cycle Babac catalogue and return description, price and availability.
## Installation
1. Clone the repository
```bash
git clone https:/... | PypiClean |
/Balltic-0.2.0.tar.gz/Balltic-0.2.0/balltic/core/gpowder.py | __author__ = 'Anthony Byuraev'
__all__ = ['GunPowder']
import os
import json
import typing
from abc import ABCMeta, abstractclassmethod, abstractmethod
BASE_PATH = os.getcwd()
GPOWDER_KEYS = (
'f',
'ro',
'k_1',
'k_2',
'I_k',
'Z_k',
'etta',
'name',
'alpha_k',
'lambda_1',
'... | PypiClean |
/CC_distributions-0.1.tar.gz/CC_distributions-0.1/CC_distributions/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/onnx_api/segmentation.py | import os
from typing import Dict, Union, Tuple
import copy
import cv2 as cv
import numpy as np
from onnxruntime import InferenceSession
from NaMAZU.onnx_api.midas import WEIGHT_PATH
from .utils import download_weight
WEIGHT_PATH = {
"basic": "https://github.com/NMZ0429/NaMAZU/releases/download/Checkpoint/basic... | PypiClean |
/Flask-Reuploaded-1.3.0.tar.gz/Flask-Reuploaded-1.3.0/docs/index.rst | ================
Flask-Reuploaded
================
.. currentmodule:: flask_uploads
Flask-Reuploaded provides file uploads for Flask.
This extension allows your application to flexibly and efficiently handle file
uploading and serving the uploaded files.
You can create different sets of uploads - one for document at... | PypiClean |
/GSEIM-1.4.tar.gz/GSEIM-1.4/src/grc/core/generator/FlowGraphProxy.py |
from __future__ import absolute_import
class FlowGraphProxy(object): # TODO: move this in a refactored Generator
def __init__(self, fg):
self.orignal_flowgraph = fg
def __getattr__(self, item):
return getattr(self.orignal_flowgraph, item)
def get_pad_sources(self):
"""
... | PypiClean |
/COAsT-3.2.1.tar.gz/COAsT-3.2.1/coast/diagnostics/transect.py | from ..data.coast import Coast
from ..data.gridded import Gridded
from scipy.ndimage import convolve1d
from scipy import interpolate
import gsw
import os.path as path_lib
import xarray as xr
import numpy as np
from scipy.integrate import cumtrapz
import warnings
import traceback
from .._utils.logging_util import get_sl... | PypiClean |
/Emonic-1.0.1.tar.gz/Emonic-1.0.1/emonic/components/blueprint.py | from werkzeug.routing import Map, Rule
from werkzeug.exceptions import NotFound
from werkzeug.wrappers import Request, Response
from .sessions import session_manager
from ..components import pin_error, access_denied
import json
import os
class Blueprint:
def __init__(self, name, import_name, url_prefix=''):
... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/zh-cn.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['zh-cn']={"editor":"所见即所得编辑器","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"按 ALT+0 获得帮助","browseServer":"浏览服务器","url":"URL","protocol":"协议","u... | PypiClean |
/HPCCSystemsECLDOc-2.0.0.tar.gz/HPCCSystemsECLDOc-2.0.0/ecldoc/markdown2latex.py | import re
import markdown
import xml.dom.minidom
from urllib.parse import urlparse
import http.client
import os
import tempfile
import urllib.request
import urllib.parse
import urllib.error
start_single_quote_re = re.compile("(^|\s|\")'")
start_double_quote_re = re.compile("(^|\s|'|`)\"")
end_double_quote_re = re.com... | PypiClean |
/KL_Audit_supportV2.7-1.0-py3-none-any.whl/AuditModule/common/AppConstants.py | from datetime import datetime
from AuditModule.common.configuration_settings import config
class AuditLogsConstants:
def __init__(self):
pass
audit_time_date_format = "%Y-%m-%d %H:%M:%S.%f"
epoch_date = datetime(1970, 1, 1)
application_type_json = {"login_handler": {"application_type": "login... | PypiClean |
/DOE2_SIM_Parser-0.20-py3-none-any.whl/doe2_sim_parser/split_sim.py | import logging
from collections import defaultdict
from typing import Generator, List, Tuple
from doe2_sim_parser.utils import (
PATTERN_REPORT_HEAD, PATTERN_REPORT_HOURLY_REPORT, PATTERN_REPORT_TITLE)
from doe2_sim_parser.utils.convert_path import convert_path
from doe2_sim_parser.utils.data_types import SIM, Pa... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/modules/ColorPicker/ColorPicker.js | ColorPicker._pluginInfo={name:"colorPicker",version:"$LastChangedRevision: 1084 $".replace(/^[^:]*:\s*(.*)\s*\$$/,"$1"),developer:"James Sleeman",developer_url:"http://www.gogo.co.nz/",c_owner:"Gogo Internet Services",license:"htmlArea",sponsor:"Gogo Internet Services",sponsor_url:"http://www.gogo.co.nz/"};function Col... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/openai_handler/helpers.py | import random
import time
import math
import openai
import tiktoken
import mindsdb.utilities.profiler as profiler
def retry_with_exponential_backoff(
initial_delay: float = 1,
hour_budget: float = 0.3,
jitter: bool = False,
exponential_base: int = 2,
errors: tuple = (openai.e... | PypiClean |
/BullETS-0.1.1.tar.gz/BullETS-0.1.1/src/bullets/utils/holiday_date_util.py | from datetime import datetime, timedelta
from enum import IntEnum
Weekday = IntEnum('Weekday', 'Monday Tuesday Wednesday Thursday Friday Saturday Sunday', start=0)
NthWeek = IntEnum('NthWeek', 'First Second Third Fourth Last', start=1)
def nth_day_of_nth_week(date: datetime, nth_week: int, week_day: int) -> datetime... | PypiClean |
/BBDown_GUI-1.1.0.2-py3-none-any.whl/BBDown_GUI/Form/form_main.py | import os
import json
from PyQt5.QtWidgets import QMainWindow, QFileDialog
from PyQt5.QtGui import QPixmap, QIcon
from BBDown_GUI.UI.ui_main import Ui_Form_main
from BBDown_GUI.Form.form_login import FormLogin
from BBDown_GUI.Form.form_output import FormOutput
from BBDown_GUI.Form.form_about import FormAbout
from B... | PypiClean |
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/api/hyperion.grid.CylindricalPolarGrid.rst | ==================================
hyperion.grid.CylindricalPolarGrid
==================================
.. currentmodule:: hyperion.grid
.. autoclass:: CylindricalPolarGrid
.. rubric:: Methods
.. autosummary::
~CylindricalPolarGrid.set_walls
~CylindricalPolarGrid.read
~CylindricalPolarGrid... | PypiClean |
/CommandLineApp-3.0.7.tar.gz/CommandLineApp-3.0.7/docs/source/PyMagArticle/Listing2.py | import csv
import sys
import commandlineapp
class csvcat(commandlineapp.CommandLineApp):
"""Concatenate comma separated value files.
"""
_app_name = 'csvcat'
EXAMPLES_DESCRIPTION = '''
To concatenate 2 files, including all columns and headers:
$ csvcat file1.csv file2.csv
To concatenate 2 fil... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/visualchars/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 |
/FoBiS.py-3.0.5.tar.gz/FoBiS.py-3.0.5/LICENSE.gpl3.md | GNU GENERAL PUBLIC LICENSE
==========================
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>
Everyone is permitted to copy and distribute verbatim copies of this license
document, but changing it is not allowed.
## Preamble
The GNU General Public Lice... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/HartreeFock.py | from dataclasses import dataclass, field
from scipy import linalg
import numpy as np
import pandas as pd
from collections import deque
from gqcms import Hubbard
from .General import IterativeAlgorithm, DIIS
@dataclass
class HubbardEnvironment:
"""
Class that stores variables used during Hubbard Hartree-Fock ... | PypiClean |
/LIV_robotics-0.1.5-py3-none-any.whl/liv/utils/utils.py | import random
import re
import time
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from omegaconf import OmegaConf
from torch import distributions as pyd
from torch.distributions.utils import _standard_normal
class eval_mode:
def __init__(self, *models):
self.models... | PypiClean |
/Heppi-0.4.tar.gz/Heppi-0.4/heppi/heppi.py |
try:
import ROOT
except ImportError:
raise ImportError(
"""
ROOT is not in your environement, or not intsalled.
Please check!
""")
try:
from termcolor import colored
from jsmin import jsmin
from progressbar import ProgressBar, Bar, Percentage, ETA
... | PypiClean |
/django-chuck-0.2.3.tar.gz/django-chuck/modules/django-cms/project/apps/filer/views.py | from django import forms
from django.contrib.admin import widgets
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response
from django.template import RequestCo... | PypiClean |
/EHRQC-0.4.tar.gz/EHRQC-0.4/qc/pipeline.py | from extract import extractMimicDemographics
from extract import extractOmopDemographics
from extract import extractMimicVitals
from extract import extractOmopVitals
from extract import extractMimicLabMeasurements
from extract import extractOmopLabMeasurements
from demographicsGraphs import plot as plotDemographicsGra... | PypiClean |
/AutoROM.accept-rom-license-0.6.1.tar.gz/AutoROM.accept-rom-license-0.6.1/README.md | <p align="center">
<img src="https://raw.githubusercontent.com/Farama-Foundation/AutoROM/master/autorom-text.png" width="500px"/>
</p>
AutoROM automatically installs Atari ROM files for ALE-Py (which Gymnasium Depends on) and multi-agent-ALE (which PettingZoo depends on, but will replaced by ALE-Py in the future)... | PypiClean |
/HerePyHive-0.6.2.tar.gz/HerePyHive-0.6.2/pyhive/sqlalchemy_presto.py | from __future__ import absolute_import
from __future__ import unicode_literals
import re
from sqlalchemy import exc
from sqlalchemy import types
from sqlalchemy import util
# TODO shouldn't use mysql type
from sqlalchemy.databases import mysql
from sqlalchemy.engine import default
from sqlalchemy.sql import compiler
f... | PypiClean |
/MusicRaft-0.9.7-py3-none-any.whl/musicraft/abcraft/external.py | import re, sys, locale, ghostscript
from .. import (Shared, dbg_print)
from ..raft.external import External, encoding
class Ps2PDF(External):
tabName = True # = hitch-hike with previously created sibling, abcm2ps.
fmtNameIn = '%s.ps'
fmtNameOut = '%s.pdf'
exec_file = None # 'ps2pdf'
reMsg = r'.*... | PypiClean |
/AirThings-API-0.1.5.tar.gz/AirThings-API-0.1.5/README.md | # airthings-api
## Description
Python Wrappers for AirThings API
## Installation
* Package published at https://pypi.org/project/airthings-api/
* Install package: `pip install -i airthings-api`
## Usage (Jupyter)
> NB: You can now use async/await at the top level in the IPython terminal and in the notebook, it sho... | PypiClean |
/Federated-Learning-Server-0.0.12.tar.gz/Federated-Learning-Server-0.0.12/Server/datachannel_server.py | import socket
import threading
import logging
import datetime
import os
from Server.utils import prepare_model,receive,save_model,load_input
logging.basicConfig(level=logging.NOTSET)
class DatachannelServer:
def __init__(self, ip, port,clientsDB,modelsDB,server_model_path,model_type,golden_data_input,golden_dat... | PypiClean |
/CellPhoneDBu-1.1.1.7-py3-none-any.whl/cellphonedb/src/core/database/sqlalchemy_repository/GeneRepository.py | import pandas as pd
from cellphonedb.src.core.core_logger import core_logger
from cellphonedb.src.core.database.Repository import Repository
from cellphonedb.src.core.database.sqlalchemy_models.db_model_gene import Gene
from cellphonedb.src.core.database.sqlalchemy_models.db_model_multidata import Multidata
from cellp... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/variables/modularVariable.py | from __future__ import unicode_literals
__docformat__ = 'restructuredtext'
from fipy.variables.cellVariable import CellVariable
__all__ = ["ModularVariable"]
from future.utils import text_to_native_str
__all__ = [text_to_native_str(n) for n in __all__]
class ModularVariable(CellVariable):
r"""
The `ModularVa... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/drawing/Drawing.js.uncompressed.js | define("dojox/drawing/Drawing", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){
dojo.provide("dojox.drawing.Drawing");
(function(){
var _plugsInitialized = false;
dojo.declare("dojox.drawing.Drawing", [], {
// summary:
// Drawing is a project that sits on top of DojoX GFX and uses SVG and
// VML ve... | PypiClean |
/BioSAK-1.72.0.tar.gz/BioSAK-1.72.0/doc/KEGG.md | ### Dependencies:
blast+ or diamond
### Annotation with NCBI blastp (default, for small dataset)
BioSAK KEGG -db_dir path/to/your/KEGG_db_dir -t 6 -seq_in input.faa -depth input.depth
### Annotation with Diamond blastp (for big dataset)
BioSAK KEGG -db_dir path/to/your/KEGG_db_dir -t 12 -seq_in faa_folder... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/social_media/js/social/home.js | const social_home = new Vue({
el: '#social_home',
delimiters: ["[[", "]]"],
data: {
pendingPosts: {
next: null,
previous: null,
results: []
},
currentPost: {
media: [],
content: null,
title: '',
sched... | PypiClean |
/AGouTI-1.0.3.tar.gz/AGouTI-1.0.3/agouti_pkg/simplejson/ordered_dict.py | from UserDict import DictMixin
class OrderedDict(dict, DictMixin):
def __init__(self, *args, **kwds):
if len(args) > 1:
raise TypeError('expected at most 1 arguments, got %d' % len(args))
try:
self.__end
except AttributeError:
self.clear()
self.u... | PypiClean |
/Google_Colab_Transfer-0.1.6-py3-none-any.whl/colab_transfer/transfer.py | import glob
import os
import shutil
from pathlib import Path
from colab_transfer.google_drive import mount_google_drive, is_google_drive_mounted
from colab_transfer.utils import get_path_to_home_of_google_drive, get_path_to_home_of_local_machine
def copy_file(file_name,
source=None,
desti... | PypiClean |
/DA4RDM-RecSys-ContentBased-1.0.10.tar.gz/DA4RDM-RecSys-ContentBased-1.0.10/src/DA4RDM_RecSys_ContentBased/preprocessor.py | import copy
from enum import IntFlag
import gc
import os
import re
# 3rd party libraries
import numpy as np
import pandas as pd
import tensorflow as tf
import tensorflow_hub as hub
import tensorflow_text as text
import nlpaug.augmenter.char as nac
import nlpaug.augmenter.word as naw
import nlpaug.augmenter.sentence a... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/apps/merchant/delivery/forms.py | from __future__ import unicode_literals
from django.conf import settings
from django import forms
from django.forms.utils import ErrorList
from cubane.forms import BaseForm, BaseModelForm, BootstrapTextInput
from cubane.ishop.models import DeliveryOption
class DeliveryOptionForm(BaseModelForm):
class Meta:
... | PypiClean |
/DKUtils-2.11.6.tar.gz/DKUtils-2.11.6/dkutils/dictionary_comparator.py | from pprint import pformat
from textwrap import indent
class DictionaryComparator:
def __init__(self, left, right):
"""
Utility that can be used to perform a shallow comparison on two dictionaries.
Parameters
----------
left : dict
Left dictionary.
rig... | PypiClean |
/BioSAK-1.72.0.tar.gz/BioSAK-1.72.0/My_Python_scripts/01_file_and_folder.py |
import os
import time
def get_time_since_last_modification(target_folder_or_file):
last_modified_time = os.path.getmtime(target_folder_or_file)
current_time = time.time()
tslm_sec = current_time - last_modified_time
tslm_min = tslm_sec / 60
tslm_hour = tslm_sec / (60 * 60)
tslm_day = tslm... | PypiClean |
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/mode/coffeescript/coffeescript.js | CodeMirror.defineMode('coffeescript', function(conf) {
var ERRORCLASS = 'error';
function wordRegexp(words) {
return new RegExp("^((" + words.join(")|(") + "))\\b");
}
var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!\?]");
var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\},:`=... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/paper-slider/.github/ISSUE_TEMPLATE.md | <!-- Instructions: https://github.com/PolymerElements/paper-slider/CONTRIBUTING.md#filing-issues -->
### Description
<!-- Example: The `paper-foo` element causes the page to turn pink when clicked. -->
### Expected outcome
<!-- Example: The page stays the same color. -->
### Actual outcome
<!-- Example: The page tu... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/tools/mixtures/mogpuremax.py | __author__ = 'Frank Sehnke, sehnke@in.tum.de'
from scipy import random, zeros, ones, exp, sqrt, cos, log
stND = zeros(1000)
for i in range(1000):
x = -4.0 + float(i) * 8.0 / 1000.0
stND[i] = 1.0 / 2.51 * exp(-0.5 * (x) ** 2)
# FIXME: different class name?
class MixtureOfGaussians:
def __init__(self, nu... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/static/mezzanine/tinymce/langs/et.js | tinymce.addI18n('et',{
"Cut": "L\u00f5ika",
"Heading 5": "Pealkiri 5",
"Header 2": "Pealkiri 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Sinu veebilehitseja ei toeta otsest ligip\u00e4\u00e4su l\u00f5ikelauale. Palun kasuta selle asemel kl... | PypiClean |
/Kato-FlaskAppBuilder-1.1.14.tar.gz/Kato-FlaskAppBuilder-1.1.14/flask_appbuilder/security/manager.py | import datetime
import logging
from flask import url_for, g, session
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import LoginManager, current_user
from flask_openid import OpenID
from flask_babel import lazy_gettext as _
from .views import AuthDBView, AuthOIDView, ResetMyP... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/freezer/IncludedEntryPoints.py | import collections
import fnmatch
import os
from nuitka.Options import getShallNotIncludeDllFilePatterns, isShowInclusion
from nuitka.Tracing import general, inclusion_logger
from nuitka.utils.FileOperations import (
areSamePaths,
getReportPath,
hasFilenameExtension,
haveSameFileContents,
isRelativ... | PypiClean |
/FunID-0.3.16.2.tar.gz/FunID-0.3.16.2/README.md | #### This is Beta release. Unstable. We're eagaring bug reports
## Scheduling
### Beta release part 1 (2023 Feburary ~ As paper published, ver 0.3)
- ~~Will operate normally most of the case~~ We tried our best, but it's still very buggy. Please report bugs for us
- Will be tested by our lab memebers to fix bugs and a... | PypiClean |
/CherryMusic-0.41.3.tar.gz/CherryMusic-0.41.3/res/js/ext/jplayer.playlist.js |
(function($, undefined) {
jPlayerPlaylist = function(cssSelector, playlist, options) {
var self = this;
this.active = false;
this.current = 0;
this.loop = false; // Flag used with the jPlayer repeat event
this.shuffled = false;
this.removing = false; // Flag is true during remove animation, disabl... | PypiClean |
/3dtrees_nbingo-0.1.5-py3-none-any.whl/data/data_types.py | from __future__ import annotations
from dataclasses import dataclass, field
from typing import Dict, Optional, Union, Callable, Sequence
from abc import ABC, abstractmethod
from itertools import product
import functools
import numpy as np
LINKAGE_CELL_OPTIONS = ['single', 'complete', 'average']
LINKAGE_REGION_OPTIONS ... | PypiClean |
/Leonardo_Ai_SDK-1.19.1-py3-none-any.whl/leonardoaisdk/sdk.py |
import requests as requests_http
from .dataset import Dataset
from .generation import Generation
from .initimage import InitImage
from .model import Model
from .sdkconfiguration import SDKConfiguration
from .user import User
from .variation import Variation
from leonardoaisdk import utils
from leonardoaisdk.models imp... | PypiClean |
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/trans/views/api.py |
import csv
from django.http import HttpResponse, JsonResponse
from weblate.api.serializers import StatisticsSerializer
from weblate.trans.stats import get_project_stats
from weblate.utils.views import get_component, get_project
def export_stats_project(request, project):
"""Export stats in JSON format."""
... | PypiClean |
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/methods/messages/send_photo.py |
import os
import re
from datetime import datetime
from typing import Union, BinaryIO, List, Optional, Callable
import newgram
from newgram import raw, enums
from newgram import types
from newgram import utils
from newgram.errors import FilePartMissing
from newgram.file_id import FileType
class SendPhoto:
async ... | PypiClean |
/M_Ana_package-0.0.5-py3-none-any.whl/MAna/data/data_cleaning.py | def drop_missing_values(df, threshold=0.5, axis=0, subset=None):
"""
Drops missing values from a dataframe.
Parameters:
-----------
df : pandas.DataFrame
The dataframe to drop missing values from.
threshold : float, optional (default=0.5)
The threshold for the proportion of miss... | PypiClean |
/Lantz-0.3.zip/Lantz-0.3/lantz/drivers/tektronix/tds1012.py | import numpy as np
from lantz.feat import Feat
from lantz.action import Action
from lantz.messagebased import MessageBasedDriver
from lantz.errors import InvalidCommand
class TDS1012(MessageBasedDriver):
"""Tektronix TDS1012 100MHz 2 Channel Digital Storage Oscilloscope
"""
MANUFACTURER_ID = '0x699'
... | PypiClean |
/Aj_Zsl_nlu-4.2.0-py3-none-any.whl/nlu/utils/environment/offline_load_utils.py | import json
import os
from nlu.universe.annotator_class_universe import AnnoClassRef
from nlu.universe.component_universes import jsl_id_to_empty_component
from nlu.universe.universes import Licenses
# These Spark NLP imports are not unused and will be dynamically loaded, do not remove!
from sparknlp.annotator impor... | PypiClean |
/Fraunhofer-1.0.3.tar.gz/Fraunhofer-1.0.3/fraunhofer/specfit.py | from __future__ import print_function
__authors__ = 'David Nidever <dnidever@montana.edu>'
__version__ = '20200711' # yyyymmdd
import os
import shutil
import contextlib, io, sys
import numpy as np
import warnings
from astropy.io import fits
from astropy.table import Table
from dlnpyutils.minpack import curve_fit
fro... | PypiClean |
/Mopidy-3.4.1-py3-none-any.whl/mopidy/audio/utils.py | from mopidy import httpclient
from mopidy.internal.gi import Gst
def calculate_duration(num_samples, sample_rate):
"""Determine duration of samples using GStreamer helper for precise
math."""
return Gst.util_uint64_scale(num_samples, Gst.SECOND, sample_rate)
def create_buffer(data, timestamp=None, durat... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/concrete/delta.py | from ..core import Add, Dummy, Integer, Mul, cacheit
from ..functions import KroneckerDelta, Piecewise, piecewise_fold
from ..logic import true
from ..polys import factor
from ..sets import Interval
from ..utilities import default_sort_key
@cacheit
def _expand_delta(expr, index):
"""Expand the first Add containin... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/worker/collector/battle_episode_serial_collector.py | from typing import Optional, Any, List, Tuple
from collections import namedtuple, deque
from easydict import EasyDict
import numpy as np
import torch
from ding.envs import BaseEnvManager
from ding.utils import build_logger, EasyTimer, SERIAL_COLLECTOR_REGISTRY, dicts_to_lists
from ding.torch_utils import to_tensor, to... | PypiClean |
/FCSAppAccessSDK-1.0.2-py3-none-any.whl/FCSAppAccess/app_access.py | import threading
import time
import typing
import urllib.parse
import requests
import FCSAppAccess.exceptions as exceptions
import FCSAppAccess.models.device_code as device_code_model
class FCSAppAccess:
url_base = "https://fangcloudservices.pythonanywhere.com/api/v1"
def __init__(self, client_id: str, cli... | PypiClean |
/HolmesV-2021.10.8.tar.gz/HolmesV-2021.10.8/mycroft/util/format.py | import datetime
import warnings
from calendar import leapdays
from enum import Enum
from mycroft.util.bracket_expansion import expand_parentheses, expand_options
# lingua_franca is optional, both lingua_franca and lingua_nostra are supported
# if both are installed preference is given to LN
# "setters" will be set ... | PypiClean |
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/test/xslt/borrowed/mb_20030915.py | import os
from Xml.Xslt import test_harness
from Ft.Lib import Uri
from Ft.Xml.InputSource import DefaultFactory
from Ft.Xml.Lib import TreeCompare
from Ft.Xml.Xslt import Processor, Error
uri = Uri.OsPathToUri(os.path.abspath(__file__))
tests = []
title = 'PI after prolog'
source = """<?xml version="1.0" encoding="... | PypiClean |
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/packaging/rpm.py |
__revision__ = "src/engine/SCons/Tool/packaging/rpm.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog"
import os
import SCons.Builder
import SCons.Tool.rpmutils
from SCons.Environment import OverrideEnvironment
from SCons.Tool.packaging import stripinstallbuilder, src_targz
from SCons.Errors import UserEr... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/promise-polyfill/Promise.js | function MakePromise (asap) {
function Promise(fn) {
if (typeof this !== 'object' || typeof fn !== 'function') throw new TypeError();
this._state = null;
this._value = null;
this._deferreds = []
doResolve(fn, resolve.bind(this), reject.bind(this));
}
function handle(deferred) {
var me = this;
if (th... | PypiClean |
/GitBanshee-0.1.tar.gz/GitBanshee-0.1/gitbanshee/static/js/socket.io.js |
var io = ('undefined' === typeof module ? {} : module.exports);
(function() {
/**
* socket.io
* Copyright(c) 2011 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
(function (exports, global) {
/**
* IO namespace.
*
* @namespace
*/
var io = exports;
/**
* Socket.IO version
*
* @api ... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/yaml/yaml/composer.py | __all__ = ['Composer', 'ComposerError']
from .error import MarkedYAMLError
from .events import *
from .nodes import *
class ComposerError(MarkedYAMLError):
pass
class Composer:
def __init__(self):
self.anchors = {}
def check_node(self):
# Drop the STREAM-START event.
if self.che... | PypiClean |
/OPML_Methods-0.1.14.tar.gz/OPML_Methods-0.1.14/OPML_Methods/MethodLagranja.py | import numexpr as ne
from sympy import *
import numpy as np
import matplotlib.pyplot as plt
class MethodLagranja:
def find(x: str, y: str, x_y, f, z, x_from, x_to, y_from, y_to, left_x_y):
"""
Функция находит экстермумы, седловые точки и точки дальнейшего исследования
по методу лагранжа и... | PypiClean |
/Lightflow-1.11.1.tar.gz/Lightflow-1.11.1/lightflow/models/exceptions.py | class LightflowException(RuntimeError):
""" Lightflow base class for all exceptions. """
def __init__(self, message=''):
self.message = message
def __str__(self):
return self.message
def __repr__(self):
return "<LightflowException - {}>".format(self.message)
class ConfigLoadE... | PypiClean |
/Mesa-2.1.1-py3-none-any.whl/mesa/visualization/templates/external/bootstrap-slider-11.0.2/test/specs/RangeHighlightsSpec.js | describe("RangeHighlights Render Tests", function() {
var testSlider1;
var testSlider2;
var testSlider3;
var testSlider4;
//setup
beforeEach(function() {
var rangeHighlightsOpts1 = [
{ "start": 2, "end": 5, "class": "category1" }, // left: 10%; width: 15%
{ "s... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct34.py | pairs="""
129 46
15 96
109 30
4 151
19 128
87 99
32 100
20 154
65 36
72 6
113 35
132 156
20 44
135 37
121 72
122 32
35 44
38 28
111 10
115 43
95 108
86 21
99 94
152 10
50 96
156 137
9 63
122 159
101 57
15 130
124 128
117 131
76 158
107 102
104 18
23 16
129 134
121 110
104 6
93 21
2 116
12 138
76 138
89 154
69 82
95 22
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.