id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/EasyDeL-0.0.29-py3-none-any.whl/EasyDel/transform/falcon.py | import jax
from jax import numpy as jnp
import torch
# CONVERTER Falcon-7B
def falcon_convert_pt_to_flax_7b(state_dict_pt, n_layers: int, device=jax.devices('cpu')[0], bias=False):
with jax.default_device(device):
state_dict_flax = {}
state_dict_flax[('transformer', 'wte', 'embedding')] = state_di... | PypiClean |
/IQA_pytorch-0.1.tar.gz/IQA_pytorch-0.1/IQA_pytorch/DISTS.py | import numpy as np
import os
import sys
import torch
from torchvision import models,transforms
import torch.nn as nn
import torch.nn.functional as F
import inspect
from .utils import downsample
class L2pooling(nn.Module):
def __init__(self, filter_size=5, stride=2, channels=None, pad_off=0):
super(L2poolin... | PypiClean |
/KaTrain-1.14.0-py3-none-any.whl/katrain/core/game.py | import copy
import math
import os
import re
import threading
from datetime import datetime
from typing import Dict, List, Optional, Union
from kivy.clock import Clock
from katrain.core.constants import (
OUTPUT_DEBUG,
OUTPUT_EXTRA_DEBUG,
OUTPUT_INFO,
PLAYER_AI,
PLAYER_HUMAN,
PROGRAM_NAME,
... | PypiClean |
/Block_Fund_Trading-1.0.tar.gz/Block_Fund_Trading-1.0/Scrappers/Scrapper_ETH:BTC.py | from Keys.keys import API_keys
import sqlite3
import sqlalchemy
from sqlalchemy import create_engine
from twisted.internet import task
from twisted.internet import reactor
from BinanceAPI.client import Client
import time
from BinanceAPI.enums import *
import save_historical_data_to_replace
from BinanceKeys import Binan... | PypiClean |
/GoogleAppEngineMapReduce-1.9.22.0.tar.gz/GoogleAppEngineMapReduce-1.9.22.0/mapreduce/mapreduce_pipeline.py | from __future__ import with_statement
__all__ = [
"CleanupPipeline",
"MapPipeline",
"MapperPipeline",
"MapreducePipeline",
"ReducePipeline",
"ShufflePipeline",
]
import pipeline
from pipeline import common as pipeline_common
from google.appengine.api import app_identity
from mapreduce i... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/masked/combobox.py | import wx
from wx.lib.masked import *
# jmg 12/9/03 - when we cut ties with Py 2.2 and earlier, this would
# be a good place to implement the 2.3 logger class
from wx.tools.dbg import Logger
##dbg = Logger()
##dbg(enable=1)
## ---------- ---------- ---------- ---------- ---------- ---------- ----------
## Because ca... | PypiClean |
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/yacc.py |
__revision__ = "src/engine/SCons/Tool/yacc.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog"
import os.path
import SCons.Defaults
import SCons.Tool
import SCons.Util
YaccAction = SCons.Action.Action("$YACCCOM", "$YACCCOMSTR")
def _yaccEmitter(target, source, env, ysuf, hsuf):
yaccflags = env.subst("... | PypiClean |
/LabJackPython-9-20-2010.tar.gz/LabJackPython-9-20-2010/src/u12.py | import platform
import ctypes
import os, atexit
import math
from time import time
import struct
WINDOWS = "Windows"
ON_WINDOWS = (os.name == 'nt')
class U12Exception(Exception):
"""Custom Exception meant for dealing specifically with U12 Exceptions.
Error codes are either going to be a LabJackUD error code o... | PypiClean |
/Ngoto-0.0.39-py3-none-any.whl/ngoto/core/util/rich/_palettes.py | from .palette import Palette
# Taken from https://en.wikipedia.org/wiki/ANSI_escape_code (Windows 10 column)
WINDOWS_PALETTE = Palette(
[
(12, 12, 12),
(197, 15, 31),
(19, 161, 14),
(193, 156, 0),
(0, 55, 218),
(136, 23, 152),
(58, 150, 221),
(204, 2... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/required_address_child.py |
from msrest.serialization import Model
class RequiredAddressChild(Model):
"""RequiredAddressChild.
All required parameters must be populated in order to send to Azure.
:param country: Required. The address country <span
class='property-internal'>Required</span> <span
class='property-internal'... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/dtl/dom.js | if(!dojo._hasResource["dojox.dtl.dom"]){
dojo._hasResource["dojox.dtl.dom"]=true;
dojo.provide("dojox.dtl.dom");
dojo.require("dojox.dtl._base");
dojo.require("dojox.dtl.Context");
(function(){
var dd=dojox.dtl;
dd.BOOLS={checked:1,disabled:1,readonly:1};
dd.TOKEN_CHANGE=-11;
dd.TOKEN_ATTR=-12;
dd.TOKEN_CUSTOM=-13;
dd.... | PypiClean |
/Flask_SpaProxy-0.2-py3-none-any.whl/flask_spaproxy/spa_proxy.py | import copy
import os
from typing import List, Callable, Optional
from flask import Flask
from flask_spaproxy import reverse_proxy
from flask_spaproxy.utils import is_url_for_file
class SpaProxy:
def __init__(self, app: Flask, spa_page='index.html', view_decorators: Optional[List[Callable]] = None):
""... | PypiClean |
/ELDAM_LCA-1.0-py3-none-any.whl/eldam/gui/widgets/generate_elda_index.py | import os
from PyQt5.QtCore import QUrl
from eldam.gui.widgets import EldamWidget, EldamWidgetWithProgressBar
from eldam.gui.dialogs import DirectoryOpenDialog, EldaIndexSaveDialog
from eldam.gui.gui_parameters import STATUS_FILE_ALREADY_EXISTS, STATUS_WRITING_PERMISSION_ERROR, \
ELDA_READING_PERMISSION_ERROR
fr... | PypiClean |
/Fabric3-1.14.post1.tar.gz/Fabric3-1.14.post1/fabric/main.py | import getpass
from collections import Mapping
import inspect
from optparse import OptionParser
import os
import sys
import types
import six
# For checking callables against the API, & easy mocking
from fabric import api, state, colors
from fabric.contrib import console, files, project
from fabric.network import dis... | PypiClean |
/LightZero-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/zoo/board_games/go/envs/go_env.py | import os
import sys
import numpy as np
import pygame
from ding.envs import BaseEnv, BaseEnvTimestep
from ding.utils import ENV_REGISTRY
from gym import spaces
from pettingzoo.classic.go import coords, go
from pettingzoo.utils.agent_selector import agent_selector
def get_image(path):
from os import path as os_pa... | PypiClean |
/Heaty-2020.10b2.tar.gz/Heaty-2020.10b2/heaty/gui/heated_space/building_elements/input_fields.py | from heaty.gui.settings.settings import Units
from heaty.gui.user_input import processing
def get_fields():
return {
'A': {
'label': 'A',
'tooltip': 'area of the building element',
'default_value': '1.0',
'default_unit': Units.default_unit(Units.area),
... | PypiClean |
/IbPy2-0.8.0.tar.gz/IbPy2-0.8.0/demo/fancy_marketdata.py |
from ib.ext.Contract import Contract
from ib.opt import ibConnection, message
from time import sleep
# print all messages from TWS
def watcher(msg):
print msg
# show Bid and Ask quotes
def my_BidAsk(msg):
if msg.field == 1:
print ('%s:%s: bid: %s' % (contractTuple[0],
contractT... | PypiClean |
/Flask-Styleguide-0.4.0.tar.gz/Flask-Styleguide-0.4.0/docs/index.rst | Flask-Styleguide
================
Extension provides an easy way to automatically generate living styleguide
for your application from `KSS documentation <http://warpspire.com/kss/>`_
format.
|Living Styleguide|
.. note::
KSS is a documentation for humans. It's human readable, machine parsable,
and easy to ... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Platform/__init__.py | from __future__ import print_function
__revision__ = "src/engine/SCons/Platform/__init__.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan"
import SCons.compat
import importlib
import os
import sys
import tempfile
import SCons.Errors
import SCons.Subst
import SCons.Tool
def platform_default(... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/lorem/zh_TW/__init__.py | from typing import Dict
from .. import Provider as LoremProvider
class Provider(LoremProvider):
"""Implement lorem provider for ``zh_TW`` locale."""
word_connector = ""
word_list = (
"一個",
"我們",
"時間",
"台灣",
"可以",
"公司",
"沒有",
"信息",
"... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/data/owdiscretize.py | from collections import namedtuple
from AnyQt.QtWidgets import (
QListView, QHBoxLayout, QStyledItemDelegate, QApplication
)
from AnyQt.QtCore import Qt
import Orange.data
import Orange.preprocess.discretize as disc
from Orange.widgets import widget, gui, settings
from Orange.widgets.utils import itemmodels, var... | PypiClean |
/ITU-Turkish-NLP-Pipeline-Caller-2.2.0.tar.gz/ITU-Turkish-NLP-Pipeline-Caller-2.2.0/pipeline_caller.py |
name = "ITU Turkish NLP Pipeline Caller"
copyright = "Copyright 2015 Ferit Tunçer"
license = "GPLv2\n\
This program is free software; you can redistribute it and/or \
modify it under the terms of the GNU General Public License version 2 \
as published by the Free Software Foundation. \
This program is distributed in ... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/semver/internal/re.js | const {
MAX_SAFE_COMPONENT_LENGTH,
MAX_SAFE_BUILD_LENGTH,
MAX_LENGTH,
} = require('./constants')
const debug = require('./debug')
exports = module.exports = {}
// The actual regexps go on exports.re
const re = exports.re = []
const safeRe = exports.safeRe = []
const src = exports.src = []
const t = exports.t = {... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/oauth2/views.py | from functools import wraps
from logging import getLogger
from django.contrib.auth import get_user_model, login
from django.http import Http404
from django.shortcuts import redirect, render
from django.urls import reverse
from django.views.decorators.cache import never_cache
from ..core.exceptions import Banned
from ... | PypiClean |
/Chronix2Grid-1.2.0.post1.tar.gz/Chronix2Grid-1.2.0.post1/chronix2grid/grid2op_utils/gen_utils.py |
import json
import pandas as pd
import os
import cvxpy as cp
import numpy as np
from chronix2grid.generation.renewable.generate_solar_wind import get_add_dim as get_add_dim_renew
from chronix2grid.grid2op_utils.noise_generation_utils import (get_forecast,
... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/a11yhelp/dialogs/lang/es-mx.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("a11yhelp","es-mx",{title:"Instrucciones de accesibilidad",contents:"Contenidos de ayuda. Para cerrar este cuadro de diálogo pres... | PypiClean |
/Fortuna-5.1.1.tar.gz/Fortuna-5.1.1/README.md | # Fortuna: Generative Modeling Toolkit for Python3
© 2023 Robert Sharp, all rights reserved.
Fortuna's main goal is to provide a quick and easy way to build custom random
functions for your data that are byte-code fast and thread aware. Fortuna also
offers a variety of high-performance random number functions like
... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/managers/SLMManager.py | import enum
import glob
import math
import os
import numpy as np
from PIL import Image
from scipy import signal as sg
from imswitch.imcommon.framework import Signal, SignalInterface
from imswitch.imcommon.model import initLogger
class SLMManager(SignalInterface):
sigSLMMaskUpdated = Signal(object) # (maskCombi... | PypiClean |
/Gbtestapi0.2-0.1a10.tar.gz/Gbtestapi0.2-0.1a10/src/gailbot/services/converter/payload/transcribedDirPayload.py | from typing import Union
import os
from .payloadObject import PayLoadObject, PayLoadStatus
from ...organizer.source import SourceObject
from gailbot.core.utils.general import is_directory, is_file, copy
from gailbot.core.utils.logger import makelogger
from gailbot.workspace.manager import WorkspaceManager
from gailbot... | PypiClean |
/CodeforcesApiPy-2.0.11.tar.gz/CodeforcesApiPy-2.0.11/codeforces_api/api_request_maker.py | import collections
import hashlib
import json
import random
import time
import requests
class CodeforcesApiRequestMaker:
_api_key = None
_secret = None
_rand = 0
assigned_rand = False
anonymous = False
def __init__(self, api_key=None, secret=None, random_number=1000000):
"""
... | PypiClean |
/GermlineFilter-1.2.tar.gz/GermlineFilter-1.2/README.txt | Version 1.2:
=============
New in this version:
--------------------
- This version is hashing CHR:POS, REF and ALT field together. Each line is stored in a set,
and the intersection is taken over the set of somatic calls and germline calls.
- The user has the option of choosing the ecryption algorithm - AES of Blo... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/databrowse/sites.py | from __future__ import unicode_literals
from django import http
from django.db import models
from django.contrib.databrowse.datastructures import EasyModel
from django.shortcuts import render_to_response
from django.utils.safestring import mark_safe
class AlreadyRegistered(Exception):
pass
class NotRegistered(Ex... | PypiClean |
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/DeviceFirmwareMultipartUploadREDFISH.py |
import argparse
import getpass
import json
import logging
import os
import platform
import re
import requests
import subprocess
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script u... | PypiClean |
/360monitoringcli-1.0.19-py3-none-any.whl/cli360monitoring/lib/usertokens.py |
import json
from prettytable import PrettyTable
from .api import apiGet, apiPost
from .config import Config
from .functions import printError, printWarn
class UserTokens(object):
def __init__(self, config: Config):
self.config = config
self.usertokens = None
self.table = PrettyTable(fie... | PypiClean |
/Fsdb-1.2.2-py3-none-any.whl/Fsdb-1.2.2.dist-info/DESCRIPTION.rst | ======
Fsdb
======
**python file system database**
.. image:: https://img.shields.io/pypi/l/Fsdb.svg
:target: https://pypi.python.org/pypi/Fsdb/
:alt: License
.. image:: https://img.shields.io/pypi/v/Fsdb.svg
:target: https://pypi.python.org/pypi/Fsdb/
:alt: Version
.. im... | PypiClean |
/githubkit-0.10.7-py3-none-any.whl/githubkit/rest/teams.py | from typing import TYPE_CHECKING, Dict, List, Union, Literal, Optional, overload
from pydantic import BaseModel, parse_obj_as
from githubkit.utils import UNSET, Missing, exclude_unset
from .types import (
OrgsOrgTeamsPostBodyType,
TeamsTeamIdPatchBodyType,
OrgsOrgTeamsTeamSlugPatchBodyType,
TeamsTeam... | PypiClean |
/Ethack-1.0.0.tar.gz/Ethack-1.0.0/src/ethack/webattack.py | from twilio.rest import Client
import socket,time,smtplib,ssl,random,poplib,os,hashlib,string
from email.message import EmailMessage
from datetime import datetime
from webbot import Browser
from scapy.all import *
def CheckValue(type_word):
try:
int(type_word)
return True
except:
return... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mobile/SpinWheelDatePicker.js.uncompressed.js | define("dojox/mobile/SpinWheelDatePicker", [
"dojo/_base/declare",
"dojo/dom-class",
"dojo/date",
"dojo/date/locale",
"./SpinWheel",
"./SpinWheelSlot"
], function(declare, domClass, ddate, datelocale, SpinWheel, SpinWheelSlot){
/*=====
var SpinWheel = dojox.mobile.SpinWheel;
var SpinWheelSlot = dojox.mobile.Sp... | PypiClean |
/Mushu-0.2.tar.gz/Mushu-0.2/libmushu/__init__.py | from __future__ import division
from importlib import import_module
import logging
from libmushu.ampdecorator import AmpDecorator
__version__ = '0.2'
__all__ = ['supported_amps', 'get_available_amps', 'get_amp']
# TODO: low level driver must have a real name?
supported_amps = {
'epoc': ['emotiv', 'Epoc'],
... | PypiClean |
/OPTALG-1.1.8rc1.tar.gz/OPTALG-1.1.8rc1/optalg/opt_solver/augl.py |
from __future__ import print_function
import numpy as np
from functools import reduce
from .opt_solver_error import *
from .problem import cast_problem, OptProblem
from .opt_solver import OptSolver
from optalg.lin_solver import new_linsolver
from scipy.sparse import bmat,eye,coo_matrix,tril
class OptSolverAugL(OptSol... | PypiClean |
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/NumFloorDetector/lib/utils/sync_batchnorm/replicate.py |
import functools
from torch.nn.parallel.data_parallel import DataParallel
__all__ = [
'CallbackContext',
'execute_replication_callbacks',
'DataParallelWithCallback',
'patch_replication_callback'
]
class CallbackContext(object):
pass
def execute_replication_callbacks(modules):
"""
Exec... | PypiClean |
/AwesomeTkinter-2021.11.8-py3-none-any.whl/awesometkinter/text.py | import tkinter as tk
from tkinter import ttk
from .utils import *
from .scrollbar import SimpleScrollbar
class ScrolledText(tk.Text):
"""Scrolled multiline entry good for log output
has both horizontal and vertical scrollbar
auto-scroll vertically by default, if you move vertical scrollbar it will stop ... | PypiClean |
/Fraunhofer-1.0.3.tar.gz/Fraunhofer-1.0.3/fraunhofer/models.py | from __future__ import print_function
__authors__ = 'David Nidever <dnidever@montana.edu>'
__version__ = '20210201' # yyyymmdd
import os
#import sys, traceback
import contextlib, io, sys
import numpy as np
import warnings
from astropy.io import fits
from astropy.table import Table
import astropy.units as u
from astr... | PypiClean |
/AutoLayout-1.0.tar.gz/AutoLayout-1.0/README.md | # AutoLayout
## About
AutoLayout is an automated layout generator software for the popular gdspy library.
It does the packing process in a hierarchal way

## Features:
* Automated fully optimized layout and device packing
* Full-Factorial Automatic Device Set Generation
... | PypiClean |
/DeepCell-0.12.9.tar.gz/DeepCell-0.12.9/deepcell/training.py | import datetime
import os
import numpy as np
import tensorflow as tf
from tensorflow.keras import backend as K
from tensorflow.keras.optimizers import SGD
from tensorflow.keras.losses import MSE
from tensorflow.python.data import Dataset
from deepcell import losses
from deepcell import image_generators
from deepcell.... | PypiClean |
/BuildStream-external-0.30.0.tar.gz/BuildStream-external-0.30.0/bst_external/elements/collect_integration.py | import os
import stat
from buildstream import Element, ElementError, Scope
class ExtractIntegrationElement(Element):
def configure(self, node):
self.node_validate(node, [
'script-path',
'ignore'
])
self.script_path = self.node_subst_member(node, 'script-path')
... | PypiClean |
/Chameleon-4.1.0.tar.gz/Chameleon-4.1.0/src/chameleon/template.py | import hashlib
import inspect
import logging
import os
import sys
import tempfile
from .compiler import Compiler
from .config import AUTO_RELOAD
from .config import CACHE_DIRECTORY
from .config import DEBUG_MODE
from .config import EAGER_PARSING
from .exc import ExceptionFormatter
from .exc import RenderError
from .ex... | PypiClean |
/AgentsPy-1.0.tar.gz/AgentsPy-1.0/agents/ui.py | import sys
import math
import bisect
from collections import deque
from PyQt5 import QtCore, QtWidgets, QtGui
from PyQt5.QtChart import (
QChart,
QChartView,
QLineSeries,
QValueAxis,
QBarSet,
QBarSeries,
QBarCategoryAxis,
)
from PyQt5.QtCore import QPointF, QLineF, Qt
from PyQt5.QtGui import... | PypiClean |
/NlpToolkit-WordNet-1.0.24.tar.gz/NlpToolkit-WordNet-1.0.24/README.md | Turkish WordNet KeNet
============
# WordNet
Wordnet, in its broader definition, is a highly comprehensive dictionary that is built on distinct word senses along with their definitions. Most of the words in a wordnet are open-class words such as nouns, verbs, adjectives and adverbs. Main building blocks of a wordnet ... | PypiClean |
/ACord-0.0.1a0-py3-none-any.whl/acord/client.py | import asyncio
import typing
import warnings
from zlib import compress
import acord
import sys
import traceback
from inspect import iscoroutinefunction
from acord.core.decoders import ETF, JSON, decompressResponse
from acord.core.signals import gateway
from .core.http import HTTPClient
from .errors import *
from func... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/sketch/PreexistingAnnotation.js | if(!dojo._hasResource["dojox.sketch.PreexistingAnnotation"]){
dojo._hasResource["dojox.sketch.PreexistingAnnotation"]=true;
dojo.provide("dojox.sketch.PreexistingAnnotation");
dojo.require("dojox.sketch.Annotation");
dojo.require("dojox.sketch.Anchor");
(function(){
var ta=dojox.sketch;
ta.PreexistingAnnotation=functio... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/av/_Media.js | if(!dojo._hasResource["dojox.av._Media"]){
dojo._hasResource["dojox.av._Media"]=true;
dojo.provide("dojox.av._Media");
dojo.declare("dojox.av._Media",null,{mediaUrl:"",initialVolume:1,autoPlay:false,bufferTime:2000,minBufferTime:300,updateTime:100,id:"",isDebug:false,percentDownloaded:0,_flashObject:null,flashMedia:nul... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/es_DO.py |
languages={'gv': u'ga\xe9lico man\xe9s', 'gu': u'goujarat\xed', 'gd': u'ga\xe9lico escoc\xe9s', 'ga': u'irland\xe9s', 'gl': 'gallego', 'la': u'lat\xedn', 'ln': 'lingala', 'lo': 'laosiano', 'tt': u't\xe1taro', 'tr': 'turco', 'ts': 'tsonga', 'lv': 'letonio', 'lt': 'lituano', 'th': u'tailand\xe9s', 'ti': 'tigrinya', 'te'... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/lib/aloha/ui-attributefield.js | * Aloha Editor is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.*
*
* Aloha Editor is distributed in the hope that it will be usef... | PypiClean |
/NewsCrawler-0.0.9.tar.gz/NewsCrawler-0.0.9/crawler/news_crawler.py |
import json
import urllib.request
import urllib.parse
import os
import datetime
import yaml
import ssl
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir))
TMP_PATH = "/tmp"
class NewsCrawler(object):
"""Retrieves article metadata from various sources"""
def __in... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/semver/index.js | const internalRe = require('./internal/re')
const constants = require('./internal/constants')
const SemVer = require('./classes/semver')
const identifiers = require('./internal/identifiers')
const parse = require('./functions/parse')
const valid = require('./functions/valid')
const clean = require('./functions/clean')
... | PypiClean |
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/network/mtprotosender.py | import asyncio
import collections
import struct
from . import authenticator
from ..extensions.messagepacker import MessagePacker
from .mtprotoplainsender import MTProtoPlainSender
from .requeststate import RequestState
from .mtprotostate import MTProtoState
from ..tl.tlobject import TLRequest
from .. import helpers, u... | PypiClean |
/Mopidy-Tidal-0.3.2.tar.gz/Mopidy-Tidal-0.3.2/mopidy_tidal/backend.py | from __future__ import unicode_literals
import json
import logging
import os
from mopidy import backend
from pykka import ThreadingActor
from tidalapi import Config, Quality, Session
from mopidy_tidal import Extension, context, library, playback, playlists
logger = logging.getLogger(__name__)
class TidalBackend(T... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/view/controls/editors/booleditor.py |
from PyQt4 import QtGui
from PyQt4 import QtCore
from PyQt4.QtCore import Qt
from customeditor import AbstractCustomEditor
from camelot.core import constants
from camelot.core.utils import ugettext
class BoolEditor(QtGui.QCheckBox, AbstractCustomEditor):
"""Widget for editing a boolean field"""
editingFinis... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/audit_settings_request.py |
from msrest.serialization import Model
class AuditSettingsRequest(Model):
"""AuditSettingsRequest.
All required parameters must be populated in order to send to Azure.
:param bill_contains_line_item_descriptions: Required.
:type bill_contains_line_item_descriptions:
~energycap.sdk.models.BillC... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/nls/pt/latinEntities.js | define(
"dojox/editor/plugins/nls/pt/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:"ponto de exclamação invertido",
cent:"símbolo de centav... | PypiClean |
/HubbardMeanField-1.0.tar.gz/HubbardMeanField-1.0/hubbardmeanfield/hubbard/base.py | from warnings import warn
import numpy as np
from hubbard.kpoints.base import HubbardKPoints
class Hubbard(HubbardKPoints):
"""Base class for the Mean field Hubbard model, at the Gamma point only."""
#
## IO
#
# Everything of interest for IO is in the parent class.
# The only thing to look ou... | PypiClean |
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/dragonflow/controller/df_publisher_service.py |
from eventlet import queue
import sys
import time
import traceback
from neutron.common import config as common_config
from oslo_log import log as logging
from dragonflow.common import exceptions
from dragonflow.common import utils as df_utils
from dragonflow import conf as cfg
from dragonflow.controller import servi... | PypiClean |
/BigQuery-GCS-0.0.8.zip/BigQuery-GCS-0.0.8/README.md | # BigQuery-GCS
[](https://travis-ci.org/pirsquare/BigQuery-GCS)
Dealing with large query results isn't so [straightforward in BigQuery](https://cloud.google.com/bigquery/querying-data#largequeryresults) . This library provides wrapper to hel... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/model/template/acer.py | from typing import Union, Dict, Optional
import torch
import torch.nn as nn
from ding.utils import SequenceType, squeeze, MODEL_REGISTRY
from ..common import ReparameterizationHead, RegressionHead, DiscreteHead, MultiHead, \
FCEncoder, ConvEncoder
@MODEL_REGISTRY.register('acer')
class ACER(nn.Module):
r"""
... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/airtest/report/report.py | import json
import os
import io
import re
import six
import sys
from PIL import Image
import shutil
import jinja2
import traceback
from copy import deepcopy
from datetime import datetime
from jinja2 import evalcontextfilter, Markup, escape
from airtest.aircv import imread, get_resolution
from airtest.core.settings impo... | PypiClean |
/Bubot_Core-0.1.19-py3-none-any.whl/Bubot/Core/Obj.py | import json
from os.path import dirname, isfile, join
from uuid import uuid4
from Bubot.Core.BubotHelper import BubotHelper
from Bubot.Core.ObjForm import ObjForm
from Bubot.Core.ObjModel import ObjModel
from Bubot.Helpers.ActionDecorator import async_action
from Bubot.Helpers.ExtException import KeyNotFound, ExtExce... | PypiClean |
/GangliPy-0.0.1.tar.gz/GangliPy-0.0.1/LICENSE.md | GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 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.
... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/jq/README | -------------------------------------------------------------------------------
DojoX jq
-------------------------------------------------------------------------------
Version 0.0.1
Release date: 8/9/2009
-------------------------------------------------------------------------------
Project state:
experimental
------... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/db/migrations/loader.py | import pkgutil
import sys
from importlib import import_module, reload
from django.apps import apps
from django.conf import settings
from django.db.migrations.graph import MigrationGraph
from django.db.migrations.recorder import MigrationRecorder
from .exceptions import (
AmbiguityError, BadMigrationError, Inconsi... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/teams/models.py | import hashlib
import random
from django.conf import settings
from django.contrib.sites.models import Site
from django.db import models
from django.urls import reverse
from ccc.packages.models import TwilioNumber
from ccc.teams import cloud_tasks
class Team(models.Model):
"""
Model to store team information... | PypiClean |
/BlackScholes-Simulations-0.0.1.tar.gz/BlackScholes-Simulations-0.0.1/BlackScholes-Pricing-Simulations/BlackScholes-Simulations.py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
from scipy.stats import norm
import pandas as pd
from tqdm import tqdm
class BlackScholes__Pricing_Simulations:
def __init__(self, call, stock, strike, maturity, interest, volatility, dividend, Npath, mu):
... | PypiClean |
/Mopidy.OrangePi.Pidi-1.1.0.tar.gz/Mopidy.OrangePi.Pidi-1.1.0/README.rst | ****************************
Mopidy-OrangePi-PiDi
****************************
Mopidy extension for displaying song info and album art using pidi display plugins.
Installation
============
Install by running::
pip3 install Mopidy.OrangePi.Pidi
Or, if available, install the Debian/Ubuntu package from `apt.mopid... | PypiClean |
/EMFTLABELS-0.0.2.tar.gz/EMFTLABELS-0.0.2/README.md | User Guide
Prepare the Etiketten A4 paper suitable for Laserprinter.
Start the script. You should see the window like this:
Preferences
If this is the first time you start it, you have to set up the labels dimmensions and other layout features. select File->Preferences to open Preferences dialog box. The values belo... | PypiClean |
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/wordcount/plugin.min.js | !(function () { var a = {}, b = function (b) { for (var c = a[b], e = c.deps, f = c.defn, g = e.length, h = new Array(g), i = 0; i < g; ++i)h[i] = d(e[i]); var j = f.apply(null, h); if (void 0 === j) throw 'module [' + b + '] returned undefined'; c.instance = j; }, c = function (b, c, d) { if (typeof b !== 'string') th... | PypiClean |
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/types/inline_mode/inline_query_result_venue.py |
import pyrogram
from pyrogram import raw, types
from .inline_query_result import InlineQueryResult
class InlineQueryResultVenue(InlineQueryResult):
"""A venue.
By default, the venue will be sent by the user. Alternatively, you can use *input_message_content* to send a message
with the specified content ... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/doc/teacher_doc/random.rst | Random tasks parameters
=======================
Typical INGInious tasks are displayed the same way for all the students.
However, it is possible to display some parameters randomly for students to
avoid copy/pasting their peers submissions.
This can, for instance, be a numerical value for a computation, or the name of... | PypiClean |
/Gnosis-0.1.1.tar.gz/Gnosis-0.1.1/gnosis/util/hashcash.py | import sys
from string import ascii_letters
from math import ceil, floor
from sha import sha
from random import choice
from time import strftime, localtime, time
ERR = sys.stderr # Destination for error messages
DAYS = 60 * 60 * 24 # Seconds in a day
tries = [0] # Count hashes perfor... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/core/text/text_pango.py | __all__ = ('LabelPango', )
from types import MethodType
from os.path import isfile
from kivy.resources import resource_find
from kivy.core.text import LabelBase, FontContextManagerBase
from kivy.core.text._text_pango import (
KivyPangoRenderer,
kpango_get_extents,
kpango_get_ascent,
kpa... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/monitoring/frontend/monitoring/src/components/organisms/ws-analytics/index.js | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import HoverPaper from '../../atoms/hover-paper';
import HR from '../../atoms/hr';
import WSServiceSelect from '../../molecules/ws-service-select';
import ResponseTime from '../../cels/response-time';
import Throughput... | PypiClean |
/ConSSL-0.0.1-py3-none-any.whl/CSSL/models/self_supervised/swav/swav_module.py | import math
import os
from argparse import ArgumentParser
from typing import Callable, Optional
import numpy as np
import pytorch_lightning as pl
import torch
from pytorch_lightning.callbacks import ModelCheckpoint
from pytorch_lightning.core.optimizer import LightningOptimizer
from torch import distributed as dist
fr... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","pl",{title:"Instrukcje dotyczące dostępności",contents:"Zawartość pomocy. Wciśnij ESC, aby zamknąć to okno.",legend:[{name:"Informacje og... | PypiClean |
/MyMessenger-0.3.3-py3-none-any.whl/my_messenger/jim/utils.py | import json
import time
from .config import DEBUG_MODE
# Кодировка
ENCODING = 'utf-8'
def dict_to_bytes(message_dict):
"""
Преобразование словаря в байты
:param message_dict: словарь
:return: bytes
"""
# Проверям, что пришел словарь
if isinstance(message_dict, dict):
# Преобразуе... | PypiClean |
/Ella-Series-0.1.tar.gz/Ella-Series-0.1/ella_series/models.py | from datetime import datetime
from django.db import models
from django.utils.translation import ugettext_lazy as _
from ella.core.models import Publishable
from ella.core.cache.utils import CachedForeignKey, get_cached_list, get_cached_object
class Serie(Publishable):
hide_newer_parts = models.BooleanField(_('H... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/_Builder.js | define("dojox/grid/_Builder",["../main","dojo/_base/array","dojo/_base/lang","dojo/_base/window","dojo/_base/event","dojo/_base/sniff","dojo/_base/connect","dojo/dnd/Moveable","dojox/html/metrics","./util","dojo/_base/html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b){
var dg=_1.grid;
var _c=function(td){
return td.cell... | PypiClean |
/Minicash-0.5.1.tar.gz/Minicash-0.5.1/README.md | # Minicash
##### *A cryptocurrency without blockchain*
--------------------------------------------
### What is Minicash?
As the title says Minicash is a cryptocurrency that doesn't use blockchain but instead uses a ledger of addresses and balances. It uses GPG asymmetric cryptography for secure communication an... | PypiClean |
/LWTools-1.0.5.tar.gz/LWTools-1.0.5/LWT/lmtanalysis/BuildEventRear5.py | import sqlite3
from time import *
from lmtanalysis.Chronometer import Chronometer
from lmtanalysis.Animal import *
from lmtanalysis.Detection import *
from lmtanalysis.Measure import *
import numpy as np
from lmtanalysis.Event import *
from lmtanalysis.Measure import *
#from affine import Affine
import matplotlib.pyplo... | PypiClean |
/KratosHDF5Application-9.4-cp38-cp38-win_amd64.whl/KratosMultiphysics/HDF5Application/core/operations/model_part.py | import KratosMultiphysics
# --- HDF5 Imports ---
import KratosMultiphysics.HDF5Application as KratosHDF5
from ..utils import ParametersWrapper
from ..file_io import OpenHDF5File
# --- STD Imports ---
from importlib import import_module
import sys
import typing
#import abc
def Prefix(pattern, model_part, time_format... | PypiClean |
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/rest/mambusaving.py | from ..mambugeturl import getsavingssurl
from .mambustruct import MambuStruct, MambuError
from .mamburestutils import MambuStructIterator
mod_urlfunc = getsavingssurl
# Objeto con una Cuenta desde Mambu
class MambuSaving(MambuStruct):
"""A Savings account from Mambu.
With the default urlfunc, entid argument... | PypiClean |
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/pyprof/parse/kernel.py | import cxxfilt, struct, binascii
#Helper functions
def demangle(name):
"""
Demangle a C++ string
"""
return cxxfilt.demangle(name)
def encode_object_id(pid, tid):
"""
Given process id (pid) and thread id (tid), return the object id.
object id = pid (little endian 4 bytes) + tid (little endian 8 bytes)
"""
o... | PypiClean |
/CADPR-0.1.1-py3-none-any.whl/SnowflakeData.py | class SnowflakeData:
def __init__(self, username, warehouse, role, database=None, schema=None, table=None, column_name = None,
col_and_or = None, get_ex_val = None, like_flag = None):
self.__username = username
self.__warehouse = warehouse
self.__role = role
self.__... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js | MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.MathJax_AMS,{8705:[846,21,500,56,444],8708:[860,166,556,55,497],8709:[587,3,778,54,720],8717:[440,1,429,102,456],8722:[270,-230,500,84,417],8724:[766,93,778,57,722],8726:[430,23,778,91,685],8733:[472,-28,778,56,722],8736:[694,0,722,55,666],8737:[714,20,722... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/controllers/mantid_controller.py | from mantid import simpleapi as msapi
from mantid.fitfunctions import FunctionFactory, IFunction1D
import numpy as np
from fitbenchmarking.controllers.base_controller import Controller
from fitbenchmarking.cost_func.cost_func_factory import create_cost_func
from fitbenchmarking.utils.exceptions import ControllerAttrib... | PypiClean |
/Leonardo_Ai_SDK-1.19.1-py3-none-any.whl/leonardoaisdk/models/operations/getuserself.py |
from __future__ import annotations
import dataclasses
import requests as requests_http
from dataclasses_json import Undefined, dataclass_json
from leonardoaisdk import utils
from typing import Optional
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class GetUserSelf200ApplicationJSONUserDetails... | PypiClean |
/IPRA_SESG-3.20.51-py3-none-any.whl/ipra/Model/Robot/cignaRobot.py | from genericpath import exists
import os
from ipra.Model.Robot.baseRobot import BaseRobot
from bs4 import BeautifulSoup
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver... | PypiClean |
/CaseRecommender-1.1.1.tar.gz/CaseRecommender-1.1.1/caserec/recommenders/rating_prediction/gsvdplusplus.py | # © 2019. Case Recommender (MIT License)
import numpy as np
from caserec.recommenders.rating_prediction.matrixfactorization import MatrixFactorization
from caserec.utils.process_data import ReadFile
__author__ = 'Eduardo Fressato <eduardofressato@hotmail.com>'
class GSVDPlusPlus(MatrixFactorization):
def __init... | PypiClean |
/Akara-2.0.0a4.tar.gz/Akara-2.0.0a4/lib/resource/__init__.py | #__all__ = ['manager', 'standard_index']
CREATED = 'akara:created'
UPDATED = 'akara:updated'
CONTENT_LENGTH = 'akara:size'
CONTENT_TYPE = 'akara:type'
class resource(object):
'''
An analogue of a Web resource
In effect it serves as a cache of the actual stored repository data
Standard reposi... | PypiClean |
/Edatora-0.2.tar.gz/Edatora-0.2/Script/Report/model.py | from scipy import stats
from scipy.stats import linregress
from scipy.stats import chi2_contingency
import statsmodels.api as sm
from statsmodels.formula.api import ols
import pandas as pd
# Creating a function that provide an overview of the data
## To include a comment for each section
## To print the first... | PypiClean |
/Fangorn-0.3.2.tar.gz/Fangorn-0.3.2/fangorn/test/small.py | import unittest
from . import visualize, TestCase
from ..base import NotFoundError, IntegrityError
def setUpModule():
raise unittest.SkipTest('Abstract module')
class TestNsSmall(TestCase):
printTree = False
def pprint(self):
if self.printTree:
print(visualize(self.testee))
def dump(sel... | PypiClean |
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/tl/functions/phone.py | from ...tl.tlobject import TLObject
from ...tl.tlobject import TLRequest
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeDataJSON, TypeInputFile, TypeInputGroupCall, TypeInputPeer, TypeInputPhoneCall, TypeInp... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.