hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 248 | max_forks_repo_name stringlengths 5 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6af148a08a578a5383b105b30ec3598b62b9c1f1 | 385 | py | Python | Q58/sol.py | shivamT95/projecteuler | 3e87b64235edd8444bc27198717a38e0ae0e0c0b | [
"MIT"
] | null | null | null | Q58/sol.py | shivamT95/projecteuler | 3e87b64235edd8444bc27198717a38e0ae0e0c0b | [
"MIT"
] | null | null | null | Q58/sol.py | shivamT95/projecteuler | 3e87b64235edd8444bc27198717a38e0ae0e0c0b | [
"MIT"
] | null | null | null | import math
def is_prime(n):
if n == 1:
return False
if n % 2 == 0 and n > 2:
return False
return all(n % i for i in range(3, int(math.sqrt(n))+1,2))
tot = 1
dia = 0
for side_length in range(3,100001,2):
hi = side_length**2
for i in range(4):
if is_prime(hi-i*side_length+i):
dia = dia+1
... | 18.333333 | 60 | 0.592208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
6af16d0caa3aded0dbc0cbf9957a4f9e9107ae10 | 1,530 | py | Python | lesson_07/02.py | alexartwww/geekbrains | f58720dc1d29bc94201b8b9c9239813c0d14ed64 | [
"MIT"
] | null | null | null | lesson_07/02.py | alexartwww/geekbrains | f58720dc1d29bc94201b8b9c9239813c0d14ed64 | [
"MIT"
] | null | null | null | lesson_07/02.py | alexartwww/geekbrains | f58720dc1d29bc94201b8b9c9239813c0d14ed64 | [
"MIT"
] | null | null | null | task = '''
Реализовать проект расчета суммарного расхода ткани на производство одежды.
Основная сущность (класс) этого проекта — одежда, которая может иметь
определенное название. К типам одежды в этом проекте относятся пальто и костюм.
У этих типов одежды существуют параметры: размер (для пальто) и рост (для костюма)... | 25.081967 | 83 | 0.67451 | 448 | 0.208663 | 0 | 0 | 282 | 0.131346 | 0 | 0 | 1,424 | 0.663251 |
0a7357e7ea86e6139bf2479d07ddffa8fab66e70 | 1,170 | py | Python | core/fanarttvapi.py | SchadLucas/pyscrape | 814a5e767ed899b5929533729c15262f1ad6a52b | [
"MIT"
] | null | null | null | core/fanarttvapi.py | SchadLucas/pyscrape | 814a5e767ed899b5929533729c15262f1ad6a52b | [
"MIT"
] | 1 | 2015-05-07T11:38:32.000Z | 2015-05-07T11:38:32.000Z | core/fanarttvapi.py | SchadLucas/pyscrape | 814a5e767ed899b5929533729c15262f1ad6a52b | [
"MIT"
] | null | null | null | import urllib2
import json
import time
from core.helpers.decorator import Cached
from core.helpers.config import config
from core.helpers.logger import log, LogLevel
@Cached
def __request(request):
log('Send Fanart Request: ' + request.replace(config.fanart.api_key, 'XXX'), 'DEBUG')
headers = {'Accept': 'app... | 27.857143 | 89 | 0.655556 | 0 | 0 | 0 | 0 | 335 | 0.286325 | 0 | 0 | 138 | 0.117949 |
0a73919f13735ea63c30a1b71cb346f2f001cba6 | 2,096 | py | Python | metrics.py | AndreasLH/Image-Colourization | b41182354446feeb80000a84e5db9100b30e9d81 | [
"MIT"
] | 1 | 2021-11-01T09:53:34.000Z | 2021-11-01T09:53:34.000Z | metrics.py | AndreasLH/Image-Colourization | b41182354446feeb80000a84e5db9100b30e9d81 | [
"MIT"
] | null | null | null | metrics.py | AndreasLH/Image-Colourization | b41182354446feeb80000a84e5db9100b30e9d81 | [
"MIT"
] | null | null | null | from math import log10, sqrt
import cv2
import numpy as np
def PSNR(original, compressed):
'''
Calculates the Peak signal to noise ratio between a ground truth image and predicted image.
see https://www.geeksforgeeks.org/python-peak-signal-to-noise-ratio-psnr/
for reference
Parameters
--... | 24.372093 | 95 | 0.564885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,148 | 0.54771 |
0a750b96f7d83d3d539bea6b3d201533cd437b4f | 832 | py | Python | redirink/insights/tests/test_models.py | Egor4ik325/redirink | 17ef85f48145ee6112f2fcbab60dcd9d65ba78bf | [
"MIT"
] | null | null | null | redirink/insights/tests/test_models.py | Egor4ik325/redirink | 17ef85f48145ee6112f2fcbab60dcd9d65ba78bf | [
"MIT"
] | null | null | null | redirink/insights/tests/test_models.py | Egor4ik325/redirink | 17ef85f48145ee6112f2fcbab60dcd9d65ba78bf | [
"MIT"
] | 1 | 2021-12-31T00:46:31.000Z | 2021-12-31T00:46:31.000Z | """Test insight model is working the way it should."""
import pytest
from django.core.exceptions import ValidationError
from django.db import DataError
from .factories import InsightFactory
pytestmark = pytest.mark.django_db
def test_create_new_fake_visitor_instance_using_factory(visitor):
pass
def test_creat... | 23.111111 | 65 | 0.796875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 100 | 0.120192 |
0a7533a2a833e21052e44904ba80f9df53fd03e4 | 4,560 | py | Python | scripts/list-all-test-suites-for-ci.py | uc-cdis/gen3-qa | 6634678b17cb5dd86533667c22037b1e2ddeb0b8 | [
"Apache-2.0"
] | 4 | 2019-08-30T22:25:24.000Z | 2021-09-15T19:19:44.000Z | scripts/list-all-test-suites-for-ci.py | uc-cdis/gen3-qa | 6634678b17cb5dd86533667c22037b1e2ddeb0b8 | [
"Apache-2.0"
] | 148 | 2018-04-16T17:26:54.000Z | 2022-03-04T16:16:02.000Z | scripts/list-all-test-suites-for-ci.py | uc-cdis/gen3-qa | 6634678b17cb5dd86533667c22037b1e2ddeb0b8 | [
"Apache-2.0"
] | 3 | 2019-08-01T03:15:38.000Z | 2022-03-07T01:23:12.000Z | import os
import subprocess
test_suites_that_cant_run_in_parallel = [
"test-apis-dbgapTest", # not thread-safe
"test-google-googleDataAccessTest", # not thread-safe
"test-google-googleServiceAccountRemovalTest", # not thread-safe
"test-guppy-guppyTest", ... | 49.032258 | 112 | 0.608114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,566 | 0.562719 |
0a7597366e4cc059f4fa32bc7a905bc75e50266d | 1,045 | py | Python | querybook/server/lib/query_executor/all_executors.py | set5think/querybook | 25738fe113faa8ee414826d1aa910354ae8a4146 | [
"Apache-2.0"
] | 1 | 2021-04-01T15:30:11.000Z | 2021-04-01T15:30:11.000Z | querybook/server/lib/query_executor/all_executors.py | set5think/querybook | 25738fe113faa8ee414826d1aa910354ae8a4146 | [
"Apache-2.0"
] | null | null | null | querybook/server/lib/query_executor/all_executors.py | set5think/querybook | 25738fe113faa8ee414826d1aa910354ae8a4146 | [
"Apache-2.0"
] | 1 | 2021-04-02T17:43:41.000Z | 2021-04-02T17:43:41.000Z | from lib.utils.plugin import import_plugin
from .base_executor import parse_exception
from .executors.hive import HiveQueryExecutor
from .executors.presto import PrestoQueryExecutor
from .executors.sqlalchemy import (
MysqlQueryExecutor,
DruidQueryExecutor,
SqliteQueryExecutor,
SnowflakeQueryExecutor,
... | 24.880952 | 83 | 0.749282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 117 | 0.111962 |
0a7705eb0f14b8b24300a2a99d4b3ece8aed7a37 | 3,189 | py | Python | bot/exts/info/pypi.py | MrGrote/bot | acaae30d1c6d401d383e3c1cc55dd1c19ced32c3 | [
"MIT"
] | 1 | 2022-03-08T07:10:30.000Z | 2022-03-08T07:10:30.000Z | bot/exts/info/pypi.py | MrGrote/bot | acaae30d1c6d401d383e3c1cc55dd1c19ced32c3 | [
"MIT"
] | null | null | null | bot/exts/info/pypi.py | MrGrote/bot | acaae30d1c6d401d383e3c1cc55dd1c19ced32c3 | [
"MIT"
] | null | null | null | import itertools
import random
import re
from contextlib import suppress
from disnake import Embed, NotFound
from disnake.ext.commands import Cog, Context, command
from disnake.utils import escape_markdown
from bot.bot import Bot
from bot.constants import Colours, NEGATIVE_REPLIES, RedirectOutput
from bot.log import ... | 36.238636 | 117 | 0.625902 | 2,384 | 0.74757 | 0 | 0 | 2,245 | 0.703982 | 2,183 | 0.684541 | 730 | 0.228912 |
0a77c9190291f537620b1ae307203f1368f48062 | 853 | py | Python | app/decorators.py | GinnyGaga/lanbo | d0bd200b93643d3ede69b5fcce72cefd5c167e37 | [
"MIT"
] | null | null | null | app/decorators.py | GinnyGaga/lanbo | d0bd200b93643d3ede69b5fcce72cefd5c167e37 | [
"MIT"
] | null | null | null | app/decorators.py | GinnyGaga/lanbo | d0bd200b93643d3ede69b5fcce72cefd5c167e37 | [
"MIT"
] | null | null | null | from functools import wraps
from flask import abort
from flask_login import current_user
from .models import Permission
<<<<<<< HEAD
def permission_required(permission):
def decorator(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if not current_user.can(permission):
... | 25.088235 | 56 | 0.695193 | 0 | 0 | 0 | 0 | 306 | 0.358734 | 0 | 0 | 0 | 0 |
0a77fdb1c15169709a632c8652ce9cffd62abd68 | 491 | py | Python | jnpy/experiments/Qt/pyqtgraph_tutorial/codeloop_org_materials/c4_drawing_curves.py | jojoquant/jnpy | c874060af4b129ae09cee9f8542517b7b2f6573b | [
"MIT"
] | 5 | 2020-05-19T07:32:39.000Z | 2022-03-14T09:09:48.000Z | jnpy/experiments/Qt/pyqtgraph_tutorial/codeloop_org_materials/c4_drawing_curves.py | jojoquant/jnpy | c874060af4b129ae09cee9f8542517b7b2f6573b | [
"MIT"
] | null | null | null | jnpy/experiments/Qt/pyqtgraph_tutorial/codeloop_org_materials/c4_drawing_curves.py | jojoquant/jnpy | c874060af4b129ae09cee9f8542517b7b2f6573b | [
"MIT"
] | 3 | 2020-04-02T08:30:17.000Z | 2020-05-03T12:12:05.000Z | # !/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Datetime : 2019/11/14 上午2:26
# @Author : Fangyang
# @Software : PyCharm
import sys
from PyQt5.QtWidgets import QApplication
import pyqtgraph as pg
import numpy as np
app = QApplication(sys.argv)
x = np.arange(1000)
y = np.random.normal(size=(3, 1000))
plotWidget = ... | 19.64 | 47 | 0.678208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 152 | 0.307071 |
0a78179deb3bba9140ba6fad7537f792839802d1 | 826 | py | Python | compyle/api.py | nauaneed/compyle | 218c76de8aa684e1fb198072e40cb97a5e6845b3 | [
"BSD-3-Clause"
] | null | null | null | compyle/api.py | nauaneed/compyle | 218c76de8aa684e1fb198072e40cb97a5e6845b3 | [
"BSD-3-Clause"
] | null | null | null | compyle/api.py | nauaneed/compyle | 218c76de8aa684e1fb198072e40cb97a5e6845b3 | [
"BSD-3-Clause"
] | null | null | null | from .array import Array, wrap
from .ast_utils import (get_symbols, get_assigned,
get_unknown_names_and_calls, has_return, has_node)
from .config import get_config, set_config, use_config, Config
from .cython_generator import (
CythonGenerator, get_func_definition
)
from .ext_module import E... | 34.416667 | 77 | 0.77724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0a79b3e5980fa9ccf32a0d7267aad362eafb93af | 39,389 | py | Python | test/dialect/mssql/test_compiler.py | gujun4990/sqlalchemy | 057bae2295feb86529a04f09cd2f3d4c2c6d88a8 | [
"MIT"
] | 1 | 2018-11-15T16:02:17.000Z | 2018-11-15T16:02:17.000Z | test/dialect/mssql/test_compiler.py | gujun4990/sqlalchemy | 057bae2295feb86529a04f09cd2f3d4c2c6d88a8 | [
"MIT"
] | null | null | null | test/dialect/mssql/test_compiler.py | gujun4990/sqlalchemy | 057bae2295feb86529a04f09cd2f3d4c2c6d88a8 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8
from sqlalchemy.testing import eq_, is_
from sqlalchemy import schema
from sqlalchemy.sql import table, column, quoted_name
from sqlalchemy.dialects import mssql
from sqlalchemy.dialects.mssql import mxodbc
from sqlalchemy.testing import fixtures, AssertsCompiledSQL
from sqlalchemy import sql
from... | 39.193035 | 79 | 0.514991 | 38,798 | 0.984996 | 0 | 0 | 271 | 0.00688 | 0 | 0 | 10,654 | 0.270482 |
0a7c17bb65b9c51d7ea399323ecb512289bae204 | 8,155 | py | Python | sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 277 | 2018-06-18T14:57:09.000Z | 2022-03-29T04:05:06.000Z | sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 1,447 | 2018-06-20T00:58:34.000Z | 2022-03-31T21:28:43.000Z | sdk/python/pulumi_kubernetes/coordination/v1/_inputs.py | polivbr/pulumi-kubernetes | 36a5fb34240a38a60b52a5f4e55e66e248d9305f | [
"Apache-2.0"
] | 95 | 2018-06-30T03:30:05.000Z | 2022-03-29T04:05:09.000Z | # coding=utf-8
# *** WARNING: this file was generated by pulumigen. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from ... import me... | 46.073446 | 335 | 0.682649 | 7,725 | 0.947272 | 0 | 0 | 7,763 | 0.951931 | 0 | 0 | 4,089 | 0.50141 |
0a7c48d84a538009f1d4846a3bf1ffec3626caf1 | 1,005 | py | Python | Components/Align All Components.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | 1 | 2021-09-04T18:41:30.000Z | 2021-09-04T18:41:30.000Z | Components/Align All Components.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | null | null | null | Components/Align All Components.py | davidtahim/Glyphs-Scripts | 5ed28805b5fe03c63d904ad2f79117844c22aa44 | [
"Apache-2.0"
] | null | null | null | #MenuTitle: Align All Components
# -*- coding: utf-8 -*-
__doc__="""
Fakes auto-alignment in glyphs that cannot be auto-aligned.
"""
import GlyphsApp
thisFont = Glyphs.font # frontmost font
thisFontMaster = thisFont.selectedFontMaster # active master
thisFontMasterID = thisFont.selectedFontMaster.id # active master
l... | 32.419355 | 81 | 0.78607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 339 | 0.337313 |
0a7c6f49614d6822678c761e9a25fddc34bcb0a8 | 818 | py | Python | SC101Lecture_code/SC101_week4/draw_basic.py | Jewel-Hong/SC-projects | 9502b3f0c789a931226d4ce0200ccec56e47bc14 | [
"MIT"
] | null | null | null | SC101Lecture_code/SC101_week4/draw_basic.py | Jewel-Hong/SC-projects | 9502b3f0c789a931226d4ce0200ccec56e47bc14 | [
"MIT"
] | null | null | null | SC101Lecture_code/SC101_week4/draw_basic.py | Jewel-Hong/SC-projects | 9502b3f0c789a931226d4ce0200ccec56e47bc14 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Stanford CS106AP
TK Drawing Lecture Exercises
Courtesy of Nick Parlante
"""
import tkinter as tk
# provided function, this code is complete
def make_canvas(width, height):
"""
Creates and returns a drawing canvas
of the given int size, ready for drawing.
"""
top = tk.T... | 21.526316 | 69 | 0.656479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 350 | 0.417661 |
0a7cd64e2508df91e539f1a6f804bc5eb4b0ea83 | 12,372 | py | Python | audio/audio_server.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_server.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_server.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null |
# Only PCM 16 bit wav 44100 Hz - Use audacity or sox to convert audio files.
# WAV generation
# Synth
# sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bip.wav synth 0.25 sine 800
# sox -n --no-show-progress -G --channels 1 -r 44100 -b 16 -t wav bop.wav synth 0.25 sine 400
# Voices
# pico2wave -l ... | 30.93 | 116 | 0.516246 | 9,015 | 0.728661 | 0 | 0 | 0 | 0 | 0 | 0 | 3,392 | 0.274167 |
0a7ce8d41f3884cc3735bd20c347dfb81bcc70b3 | 2,714 | py | Python | torchvision/datasets/kinetics.py | sh1doy/vision | d7dce1034a0682bf8832bc89cda9589d6598087d | [
"BSD-3-Clause"
] | null | null | null | torchvision/datasets/kinetics.py | sh1doy/vision | d7dce1034a0682bf8832bc89cda9589d6598087d | [
"BSD-3-Clause"
] | null | null | null | torchvision/datasets/kinetics.py | sh1doy/vision | d7dce1034a0682bf8832bc89cda9589d6598087d | [
"BSD-3-Clause"
] | null | null | null | from .video_utils import VideoClips
from .utils import list_dir
from .folder import make_dataset
from .vision import VisionDataset
class Kinetics400(VisionDataset):
"""
`Kinetics-400 <https://deepmind.com/research/open-source/open-source-datasets/kinetics/>`_
dataset.
Kinetics-400 is an action recogn... | 39.333333 | 97 | 0.669123 | 2,580 | 0.950626 | 0 | 0 | 0 | 0 | 0 | 0 | 1,454 | 0.535741 |
0a7e85c92ceca48b141eaf4f09d1496be103b6aa | 10,795 | py | Python | venv/lib/python2.7/site-packages/sphinx/builders/qthelp.py | CharleyFarley/ovvio | 81489ee64f91e4aab908731ce6ddf59edb9314bf | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/sphinx/builders/qthelp.py | CharleyFarley/ovvio | 81489ee64f91e4aab908731ce6ddf59edb9314bf | [
"MIT"
] | null | null | null | venv/lib/python2.7/site-packages/sphinx/builders/qthelp.py | CharleyFarley/ovvio | 81489ee64f91e4aab908731ce6ddf59edb9314bf | [
"MIT"
] | 1 | 2016-08-24T01:08:34.000Z | 2016-08-24T01:08:34.000Z | # -*- coding: utf-8 -*-
"""
sphinx.builders.qthelp
~~~~~~~~~~~~~~~~~~~~~~
Build input files for the Qt collection generator.
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import os
import re
import codecs
import posixpath
from os impo... | 36.103679 | 80 | 0.568133 | 8,186 | 0.758314 | 0 | 0 | 0 | 0 | 0 | 0 | 3,799 | 0.351922 |
0a7edac2ed561ec67cb5f3e276d02750502435c8 | 7,252 | py | Python | scripts/scrape_sciencedirect_urls.py | UWPRG/BETO2020 | 55b5b329395da79047e9083232101d15af9f2c49 | [
"MIT"
] | 4 | 2020-03-04T21:08:11.000Z | 2020-10-28T11:28:00.000Z | scripts/scrape_sciencedirect_urls.py | UWPRG/BETO2020 | 55b5b329395da79047e9083232101d15af9f2c49 | [
"MIT"
] | null | null | null | scripts/scrape_sciencedirect_urls.py | UWPRG/BETO2020 | 55b5b329395da79047e9083232101d15af9f2c49 | [
"MIT"
] | 6 | 2019-04-15T16:51:16.000Z | 2019-11-13T02:45:53.000Z | """
This code is used to scrape ScienceDirect of publication urls and write them to
a text file in the current directory for later use.
"""
import selenium
from selenium import webdriver
import numpy as np
import pandas as pd
import bs4
from bs4 import BeautifulSoup
import time
from sklearn.utils import shuffle
def s... | 33.730233 | 125 | 0.628792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,663 | 0.505102 |
0a7ef598ad33e1712e909b5218a858b7b8de970f | 1,903 | py | Python | superset/typing.py | GodelTech/superset | da170aa57e94053cf715f7b41b09901c813a149a | [
"Apache-2.0"
] | 7 | 2020-07-31T04:50:01.000Z | 2021-12-08T07:56:42.000Z | superset/typing.py | GodelTech/superset | da170aa57e94053cf715f7b41b09901c813a149a | [
"Apache-2.0"
] | 77 | 2020-02-02T07:54:13.000Z | 2022-03-23T18:22:04.000Z | superset/typing.py | GodelTech/superset | da170aa57e94053cf715f7b41b09901c813a149a | [
"Apache-2.0"
] | 6 | 2020-03-25T01:02:29.000Z | 2021-05-12T17:11:19.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 39.645833 | 84 | 0.755123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 786 | 0.413032 |
0a7f17dbb71fa4b55ccb4daea833fc07286f055d | 2,042 | py | Python | log_system_information.py | ibaiGorordo/depthai | 57b437f38ebe80e870ee4852ca7ccc80eaaa76cc | [
"MIT"
] | 476 | 2020-04-21T11:38:55.000Z | 2022-03-29T02:59:34.000Z | log_system_information.py | ibaiGorordo/depthai | 57b437f38ebe80e870ee4852ca7ccc80eaaa76cc | [
"MIT"
] | 440 | 2020-04-15T19:15:01.000Z | 2022-03-31T21:17:33.000Z | log_system_information.py | ibaiGorordo/depthai | 57b437f38ebe80e870ee4852ca7ccc80eaaa76cc | [
"MIT"
] | 124 | 2020-04-23T19:23:25.000Z | 2022-03-30T19:12:36.000Z | #!/usr/bin/env python3
import json
import platform
def make_sys_report(anonymous=False, skipUsb=False, skipPackages=False):
def get_usb():
try:
import usb.core
except ImportError:
yield "NoLib"
return
speeds = ["Unknown", "Low", "Full", "High", "Super",... | 34.610169 | 89 | 0.589128 | 0 | 0 | 1,707 | 0.835945 | 0 | 0 | 0 | 0 | 451 | 0.220862 |
0a7f1dd168a64e7f7f19d3324731c892ec275922 | 1,845 | py | Python | patch.py | silverhikari/romtools | 2a09290fef85f35502a95c5c2874317029f0439c | [
"Apache-2.0"
] | 5 | 2018-02-02T06:36:56.000Z | 2020-12-21T20:17:20.000Z | patch.py | silverhikari/romtools | 2a09290fef85f35502a95c5c2874317029f0439c | [
"Apache-2.0"
] | 8 | 2017-10-10T17:50:47.000Z | 2021-06-02T00:02:58.000Z | patch.py | silverhikari/romtools | 2a09290fef85f35502a95c5c2874317029f0439c | [
"Apache-2.0"
] | 2 | 2017-10-10T20:15:24.000Z | 2021-12-17T04:50:16.000Z | """
Utils for creating xdelta patches.
"""
import logging
from subprocess import check_output, CalledProcessError
from shutil import copyfile
from os import remove, path
class PatchChecksumError(Exception):
def __init__(self, message, errors):
super(PatchChecksumError, self).__init__(message)
class Patc... | 27.132353 | 78 | 0.564228 | 1,669 | 0.904607 | 0 | 0 | 0 | 0 | 0 | 0 | 297 | 0.160976 |
0a7fa4ecf8696f5df75632b66c0092d937a89bf0 | 2,346 | py | Python | enigma.py | fewieden/Enigma-Machine | 0c130d3cf1bb5146d438cc39dca55ebbcb0f1cdf | [
"MIT"
] | 1 | 2018-10-29T10:46:10.000Z | 2018-10-29T10:46:10.000Z | enigma.py | fewieden/Enigma-Machine | 0c130d3cf1bb5146d438cc39dca55ebbcb0f1cdf | [
"MIT"
] | null | null | null | enigma.py | fewieden/Enigma-Machine | 0c130d3cf1bb5146d438cc39dca55ebbcb0f1cdf | [
"MIT"
] | 1 | 2021-09-05T16:18:25.000Z | 2021-09-05T16:18:25.000Z | from rotor import Rotor
import sys
import getopt
class Enigma:
def __init__(self, key, rotors):
self.key = list(key)
self.rotors = []
for i in range(0, len(rotors)):
self.rotors.append(Rotor(self.key[i], rotors[i]))
def encrypt(self, word):
cipher = ''
for ... | 29.696203 | 110 | 0.498721 | 700 | 0.29838 | 0 | 0 | 0 | 0 | 0 | 0 | 490 | 0.208866 |
0a8049edeef1e3bee26e482ae16b802069251b6f | 6,780 | py | Python | andersoncd/group.py | idc9/andersoncd | af2123b241e5f82f7c51b2bbf5196fb02723b582 | [
"BSD-3-Clause"
] | null | null | null | andersoncd/group.py | idc9/andersoncd | af2123b241e5f82f7c51b2bbf5196fb02723b582 | [
"BSD-3-Clause"
] | null | null | null | andersoncd/group.py | idc9/andersoncd | af2123b241e5f82f7c51b2bbf5196fb02723b582 | [
"BSD-3-Clause"
] | null | null | null | import time
import numpy as np
from scipy import sparse
from numba import njit
from numpy.linalg import norm
from scipy.sparse.linalg import svds
from andersoncd.lasso import dual_lasso
def primal_grp(R, w, alpha, grp_size):
return (0.5 * norm(R) ** 2 + alpha *
norm(w.reshape(-1, grp_size), axis=1).... | 31.100917 | 79 | 0.488791 | 0 | 0 | 0 | 0 | 1,400 | 0.20649 | 0 | 0 | 791 | 0.116667 |
0a804f8203f3e605d7c6651f77fee25137c52bc6 | 6,259 | py | Python | textattack/search_methods/greedy_word_swap_wir.py | dheerajrav/TextAttack | 41e747215bb0f01c511af95b16b94704c780cd5a | [
"MIT"
] | null | null | null | textattack/search_methods/greedy_word_swap_wir.py | dheerajrav/TextAttack | 41e747215bb0f01c511af95b16b94704c780cd5a | [
"MIT"
] | null | null | null | textattack/search_methods/greedy_word_swap_wir.py | dheerajrav/TextAttack | 41e747215bb0f01c511af95b16b94704c780cd5a | [
"MIT"
] | null | null | null | """
Greedy Word Swap with Word Importance Ranking
===================================================
When WIR method is set to ``unk``, this is a reimplementation of the search
method from the paper: Is BERT Really Robust?
A Strong Baseline for Natural Language Attack on Text Classification and
Entailment by Jin et... | 41.450331 | 87 | 0.615594 | 5,544 | 0.885764 | 0 | 0 | 0 | 0 | 0 | 0 | 1,488 | 0.237738 |
0a81693f8777fdc22a6d886900c28851626fa805 | 377 | py | Python | lemur/deployment/service.py | rajatsharma94/lemur | 99f46c1addcd40154835e151d0b189e1578805bb | [
"Apache-2.0"
] | 1,656 | 2015-09-20T03:12:28.000Z | 2022-03-29T18:00:54.000Z | lemur/deployment/service.py | rajatsharma94/lemur | 99f46c1addcd40154835e151d0b189e1578805bb | [
"Apache-2.0"
] | 3,017 | 2015-09-18T23:15:24.000Z | 2022-03-30T22:40:02.000Z | lemur/deployment/service.py | rajatsharma94/lemur | 99f46c1addcd40154835e151d0b189e1578805bb | [
"Apache-2.0"
] | 401 | 2015-09-18T23:02:18.000Z | 2022-02-20T16:13:14.000Z | from lemur import database
def rotate_certificate(endpoint, new_cert):
"""
Rotates a certificate on a given endpoint.
:param endpoint:
:param new_cert:
:return:
"""
# ensure that certificate is available for rotation
endpoint.source.plugin.update_endpoint(endpoint, new_cert)
endpo... | 23.5625 | 62 | 0.71618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 165 | 0.437666 |
0a819052de1a3c3f8fa2090ece2179f25885147a | 767 | py | Python | pype/celery.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | 1 | 2016-06-28T13:13:27.000Z | 2016-06-28T13:13:27.000Z | pype/celery.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | 12 | 2016-06-28T11:19:46.000Z | 2017-05-05T14:24:14.000Z | pype/celery.py | h2020-westlife-eu/VRE | a85d5370767939b1971415be48a551ae6b1edc5d | [
"MIT"
] | null | null | null | # coding: utf-8
# Copyright Luna Technology 2015
# Matthieu Riviere <mriviere@luna-technology.com>
from __future__ import absolute_import
import os
from celery import Celery
# Set the default Django settings module for the 'celery' program
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pype.settings')
from djan... | 23.96875 | 65 | 0.783572 | 0 | 0 | 0 | 0 | 252 | 0.328553 | 0 | 0 | 244 | 0.318123 |
0a82635dab6776cd0ffd24a37efd7bf2386d6303 | 1,827 | py | Python | train/general_train_example/1_parse.py | ss433s/sosweety | 4cb1a0f061f26e509ee51c0fabd0284ad15804a5 | [
"MIT"
] | null | null | null | train/general_train_example/1_parse.py | ss433s/sosweety | 4cb1a0f061f26e509ee51c0fabd0284ad15804a5 | [
"MIT"
] | null | null | null | train/general_train_example/1_parse.py | ss433s/sosweety | 4cb1a0f061f26e509ee51c0fabd0284ad15804a5 | [
"MIT"
] | null | null | null | import os, sys
import json
# 获取当前路径, 通过anchor文件获取项目root路径
this_file_path = os.path.split(os.path.realpath(__file__))[0]
this_path = this_file_path
root_path = this_file_path
while this_path:
if os.path.exists(os.path.join(this_path, 'sosweety_root_anchor.py')):
root_path = this_path
break... | 29.467742 | 85 | 0.667761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 287 | 0.152741 |
0a82a3ff8df3d7d05c880b80e09b0d2ae4679de0 | 16,834 | py | Python | ruleex/hypinv/model.py | rohancode/ruleex_modified | ec974e7811fafc0c06d4d2c53b4e2898dd6b7305 | [
"Apache-2.0"
] | 18 | 2019-09-19T09:50:52.000Z | 2022-03-20T13:59:20.000Z | ruleex/hypinv/model.py | rohancode/ruleex_modified | ec974e7811fafc0c06d4d2c53b4e2898dd6b7305 | [
"Apache-2.0"
] | 3 | 2020-10-31T05:15:32.000Z | 2022-02-10T00:34:05.000Z | ruleex/hypinv/model.py | rohancode/ruleex_modified | ec974e7811fafc0c06d4d2c53b4e2898dd6b7305 | [
"Apache-2.0"
] | 7 | 2020-12-06T20:55:50.000Z | 2021-12-11T18:14:51.000Z | from gtrain import Model
import numpy as np
import tensorflow as tf
class NetForHypinv(Model):
"""
Implementaion of the crutial function for the HypINV algorithm.
Warning: Do not use this class but implement its subclass, for example see FCNetForHypinv
"""
def __init__(self, weights):
self... | 45.010695 | 159 | 0.594214 | 16,635 | 0.988179 | 0 | 0 | 0 | 0 | 0 | 0 | 3,004 | 0.178448 |
0a8392531b265c3630ab7efd862cf9bb543e8116 | 126 | py | Python | py_tdlib/constructors/get_chat_member.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/get_chat_member.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/get_chat_member.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Method
class getChatMember(Method):
chat_id = None # type: "int53"
user_id = None # type: "int32"
| 18 | 32 | 0.690476 | 94 | 0.746032 | 0 | 0 | 0 | 0 | 0 | 0 | 30 | 0.238095 |
0a83eff7c2dc361748d280106f49c290cfe4b19f | 6,474 | py | Python | src/phrase_manager/phrase_manager.py | Franco7Scala/GeneratingNaturalLanguageAdversarialExamplesThroughParticleFiltering | 095b47eb76503d44f54f701d303193328a5a4c86 | [
"MIT"
] | null | null | null | src/phrase_manager/phrase_manager.py | Franco7Scala/GeneratingNaturalLanguageAdversarialExamplesThroughParticleFiltering | 095b47eb76503d44f54f701d303193328a5a4c86 | [
"MIT"
] | 6 | 2020-01-28T23:09:44.000Z | 2022-02-10T01:16:59.000Z | src/phrase_manager/phrase_manager.py | Franco7Scala/GeneratingNaturalLanguageAdversarialExamplesThroughParticleFiltering | 095b47eb76503d44f54f701d303193328a5a4c86 | [
"MIT"
] | null | null | null | import numpy
from keras.preprocessing import sequence
from keras.preprocessing.text import Tokenizer
from src.support import support
class PhraseManager:
def __init__(self, configuration):
self.train_phrases, self.train_labels = self._read_train_phrases()
self.test_phrases, self.test_labels = se... | 40.21118 | 143 | 0.61384 | 6,334 | 0.978375 | 0 | 0 | 0 | 0 | 0 | 0 | 454 | 0.070127 |
0a842caaf70906bbc1cf4b3a4ba3ba9841f2aa9c | 1,172 | py | Python | setup.py | fonar/paypalhttp_python | 218136324c3dc6d4021db907c94cb6ac30cb1060 | [
"MIT"
] | null | null | null | setup.py | fonar/paypalhttp_python | 218136324c3dc6d4021db907c94cb6ac30cb1060 | [
"MIT"
] | null | null | null | setup.py | fonar/paypalhttp_python | 218136324c3dc6d4021db907c94cb6ac30cb1060 | [
"MIT"
] | null | null | null | from setuptools import setup
version = "1.0.0"
long_description = """
PayPalHttp is a generic http client designed to be used with code-generated projects.
"""
setup(
name="paypalhttp",
long_description=long_description,
version=version,
author="PayPal",
packages=["paypalhttp", "paypalhttp/testu... | 34.470588 | 86 | 0.620307 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 788 | 0.672355 |
0a8510d776fffba4b52eff1b8a24d1b7d723d4dd | 1,836 | py | Python | ooobuild/csslo/xml/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/csslo/xml/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/csslo/xml/__init__.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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 License at
#
# http: // www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 57.375 | 130 | 0.827887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 593 | 0.322985 |
0a854fbf5fe92dd3c9a7f42e69f796c6cc578917 | 333 | py | Python | bluebottle/tasks/migrations/0012_merge.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/tasks/migrations/0012_merge.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/tasks/migrations/0012_merge.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-09-27 15:35
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tasks', '0011_auto_20160919_1508'),
('tasks', '0011_auto_20160920_1019'),
]
operatio... | 19.588235 | 47 | 0.657658 | 184 | 0.552553 | 0 | 0 | 0 | 0 | 0 | 0 | 134 | 0.402402 |
0a85751a815d71753d3e2aaa3ccbd06b815ba219 | 5,200 | py | Python | bat_train/evaluate.py | bgotthold-usgs/batdetect | 0d4a70f1cda9f6104f6f785f0d953f802fddf0f1 | [
"BSD-Source-Code"
] | 59 | 2018-03-05T08:58:59.000Z | 2022-03-19T17:33:14.000Z | bat_train/evaluate.py | bgotthold-usgs/batdetect | 0d4a70f1cda9f6104f6f785f0d953f802fddf0f1 | [
"BSD-Source-Code"
] | 11 | 2018-03-16T21:46:51.000Z | 2021-12-14T16:07:55.000Z | bat_train/evaluate.py | bgotthold-usgs/batdetect | 0d4a70f1cda9f6104f6f785f0d953f802fddf0f1 | [
"BSD-Source-Code"
] | 24 | 2018-03-15T14:48:08.000Z | 2022-01-09T01:12:51.000Z | import numpy as np
from sklearn.metrics import roc_curve, auc
def compute_error_auc(op_str, gt, pred, prob):
# classification error
pred_int = (pred > prob).astype(np.int)
class_acc = (pred_int == gt).mean() * 100.0
# ROC - area under curve
fpr, tpr, thresholds = roc_curve(gt, pred)
roc_auc ... | 38.80597 | 109 | 0.649038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,751 | 0.336731 |
0a86094f8b6e8a0e12d48278a3971b48591f4ec2 | 27,399 | py | Python | azure-mgmt/tests/test_mgmt_network.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 2 | 2020-07-29T14:22:17.000Z | 2020-11-06T18:47:40.000Z | azure-mgmt/tests/test_mgmt_network.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 1 | 2016-08-01T07:37:04.000Z | 2016-08-01T07:37:04.000Z | azure-mgmt/tests/test_mgmt_network.py | SUSE/azure-sdk-for-python | 324f99d26dd6f4ee9793b9bf1d4d5f928e4b6c2f | [
"MIT"
] | 1 | 2020-12-12T21:04:41.000Z | 2020-12-12T21:04:41.000Z | # coding: utf-8
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#---------------------------------------------------------------------... | 33.454212 | 115 | 0.567904 | 26,772 | 0.977045 | 0 | 0 | 26,396 | 0.963323 | 0 | 0 | 4,496 | 0.164082 |
0a862e609f431ba255f2003bb9d5372890839f22 | 1,680 | py | Python | Networks/Threading/server.py | polbebe/PinkPanther | c6ba47956b2cae6468ac0cfe56229b5434fec754 | [
"MIT"
] | null | null | null | Networks/Threading/server.py | polbebe/PinkPanther | c6ba47956b2cae6468ac0cfe56229b5434fec754 | [
"MIT"
] | null | null | null | Networks/Threading/server.py | polbebe/PinkPanther | c6ba47956b2cae6468ac0cfe56229b5434fec754 | [
"MIT"
] | null | null | null | import gym
import gym.spaces as spaces
import sys
import socket
from _thread import *
import os
import numpy as np
import pandas as pd
import math as m
import time
import random
class NetEnv(gym.Env):
def __init__(self):
# Robot State values that will be bounced with client
self.robot_state = None
self.p... | 20 | 60 | 0.691667 | 1,359 | 0.807007 | 0 | 0 | 0 | 0 | 0 | 0 | 426 | 0.252969 |
0a86cf6fa8f86673090e299d74c945f26f918502 | 909 | py | Python | backend/app/app/db/session.py | zhkuo24/full-stack-fastapi-demo | 25b0d4e5c7fe303b751974748b687e98d4454f48 | [
"MIT"
] | 7 | 2021-01-06T15:44:58.000Z | 2022-02-12T05:07:10.000Z | backend/app/app/db/session.py | zhkuo24/full-stack-fastapi-demo | 25b0d4e5c7fe303b751974748b687e98d4454f48 | [
"MIT"
] | null | null | null | backend/app/app/db/session.py | zhkuo24/full-stack-fastapi-demo | 25b0d4e5c7fe303b751974748b687e98d4454f48 | [
"MIT"
] | 2 | 2022-03-09T23:20:06.000Z | 2022-03-11T02:48:08.000Z | # -*- coding: utf-8 -*-
# @File : session.py
# @Author : zhkuo
# @Time : 2021/1/3 9:12 下午
# @Desc :
from sqlalchemy import create_engine
# from sqlalchemy.orm import scoped_session
from sqlalchemy.orm import sessionmaker
from app.core.config import settings
"""
参考:
https://www.osgeo.cn/sqlalchemy/orm/session_... | 28.40625 | 99 | 0.766777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 775 | 0.729069 |
0a8741dde6ef103d06812289a7da5d5ee4748c1d | 2,427 | py | Python | src/tkdialog/dialog.py | KosukeMizuno/tkdialog | 082fc106908bbbfa819d1a129929165f11d4e944 | [
"MIT"
] | null | null | null | src/tkdialog/dialog.py | KosukeMizuno/tkdialog | 082fc106908bbbfa819d1a129929165f11d4e944 | [
"MIT"
] | null | null | null | src/tkdialog/dialog.py | KosukeMizuno/tkdialog | 082fc106908bbbfa819d1a129929165f11d4e944 | [
"MIT"
] | null | null | null | from pathlib import Path
import pickle
import tkinter as tk
import tkinter.filedialog
def open_dialog(**opt):
"""Parameters
----------
Options will be passed to `tkinter.filedialog.askopenfilename`.
See also tkinter's document.
Followings are example of frequently used options.
- filetypes=[(l... | 25.547368 | 79 | 0.622167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,354 | 0.546188 |
0a880ef41f3bfd67c8ea6c85667d8aef79348500 | 1,744 | py | Python | cinder/tests/unit/fake_group_snapshot.py | lightsey/cinder | e03d68e42e57a63f8d0f3e177fb4287290612b24 | [
"Apache-2.0"
] | 571 | 2015-01-01T17:47:26.000Z | 2022-03-23T07:46:36.000Z | cinder/tests/unit/fake_group_snapshot.py | vexata/cinder | 7b84c0842b685de7ee012acec40fb4064edde5e9 | [
"Apache-2.0"
] | 37 | 2015-01-22T23:27:04.000Z | 2021-02-05T16:38:48.000Z | cinder/tests/unit/fake_group_snapshot.py | vexata/cinder | 7b84c0842b685de7ee012acec40fb4064edde5e9 | [
"Apache-2.0"
] | 841 | 2015-01-04T17:17:11.000Z | 2022-03-31T12:06:51.000Z | # Copyright 2016 EMC Corporation
#
# 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 License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 33.538462 | 78 | 0.679472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 725 | 0.415711 |
0a88b532a2c292c3b22e23456f113d6c77d67696 | 1,258 | py | Python | src/tree_visualizer.py | szymanskir/msi | 27013bac31e62b36dff138cfbb91852c96f77ef3 | [
"MIT"
] | null | null | null | src/tree_visualizer.py | szymanskir/msi | 27013bac31e62b36dff138cfbb91852c96f77ef3 | [
"MIT"
] | null | null | null | src/tree_visualizer.py | szymanskir/msi | 27013bac31e62b36dff138cfbb91852c96f77ef3 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import networkx as nx
from networkx.drawing.nx_agraph import graphviz_layout
def display_resolution_tree(resolution_tree: nx.classes.DiGraph):
_draw_resolution_tree_(resolution_tree)
plt.show()
def _draw_resolution_tree_(tree: nx.classes.DiGraph, enable_edge_labels: bool = Tr... | 33.105263 | 120 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 81 | 0.064388 |
0a89d9e3455e77e62d24b044c32fc90cbc464fc1 | 368 | py | Python | setup.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | 7 | 2019-08-04T20:37:55.000Z | 2020-03-05T08:36:10.000Z | setup.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | 1 | 2019-10-21T05:43:28.000Z | 2019-10-21T05:43:28.000Z | setup.py | SilicalNZ/canvas | 44d1eee02c334aae6b41aeba01ed0ecdf83aed21 | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name = 'sili-canvas',
version = '0.0.1',
license = 'MIT',
url = 'https://github.com/SilicalNZ/canvas',
description = 'A series of easy to use classes to perform complex 2D array transformations',
long_description = '',
author = 'SilicalNZ',
packages ... | 26.285714 | 96 | 0.649457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 189 | 0.513587 |
0a8a41bb9d474871c5ea7be817390ae9d2fe8454 | 49,397 | py | Python | tests/viz_tests.py | theoretical-olive/incubator-superset | 72fc581b1559e7ce08b11c481b88eaa01b2d17de | [
"Apache-2.0"
] | 2 | 2020-06-29T20:02:34.000Z | 2020-06-29T20:02:35.000Z | tests/viz_tests.py | theoretical-olive/incubator-superset | 72fc581b1559e7ce08b11c481b88eaa01b2d17de | [
"Apache-2.0"
] | null | null | null | tests/viz_tests.py | theoretical-olive/incubator-superset | 72fc581b1559e7ce08b11c481b88eaa01b2d17de | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 38.381507 | 88 | 0.494099 | 48,110 | 0.973473 | 0 | 0 | 4,327 | 0.087554 | 0 | 0 | 11,454 | 0.231764 |
0a8a7f44a0585244eb2c07e0db4cb782cb9fe0fb | 1,840 | py | Python | chord_sim/modules/taskqueue.py | ryogrid/FunnelKVS | 65c4308ce6e08b819b5396fc1aa658468c276362 | [
"MIT"
] | 8 | 2022-01-12T00:46:25.000Z | 2022-03-30T12:00:52.000Z | chord_sim/modules/taskqueue.py | ryogrid/FunnelKVS | 65c4308ce6e08b819b5396fc1aa658468c276362 | [
"MIT"
] | null | null | null | chord_sim/modules/taskqueue.py | ryogrid/FunnelKVS | 65c4308ce6e08b819b5396fc1aa658468c276362 | [
"MIT"
] | 1 | 2022-01-12T06:22:31.000Z | 2022-01-12T06:22:31.000Z | # coding:utf-8
from typing import Dict, List, Optional, cast, TYPE_CHECKING
from .chord_util import ChordUtil, InternalControlFlowException, NodeIsDownedExceptiopn
if TYPE_CHECKING:
from .chord_node import ChordNode
class TaskQueue:
JOIN_PARTIAL = "join_partial"
def __init__(self, existing_node : 'Chor... | 41.818182 | 134 | 0.613587 | 1,757 | 0.886478 | 0 | 0 | 0 | 0 | 0 | 0 | 735 | 0.370838 |
0a8b4fc2b42148f674fa2146ee9800ea9e96f927 | 2,614 | py | Python | surname_rnn/surname/containers.py | sudarshan85/nlpbook | 41e59d706fb31f5185a0133789639ccffbddb41f | [
"Apache-2.0"
] | null | null | null | surname_rnn/surname/containers.py | sudarshan85/nlpbook | 41e59d706fb31f5185a0133789639ccffbddb41f | [
"Apache-2.0"
] | null | null | null | surname_rnn/surname/containers.py | sudarshan85/nlpbook | 41e59d706fb31f5185a0133789639ccffbddb41f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import pandas as pd
from pathlib import Path
from torch.utils.data import DataLoader
class ModelContainer(object):
def __init__(self, model, optimizer, loss_fn, scheduler=None):
self.model = model
self.optimizer = optimizer
self.loss_fn = loss_fn
self.scheduler = scheduler
cl... | 33.512821 | 100 | 0.729533 | 2,500 | 0.956389 | 0 | 0 | 468 | 0.179036 | 0 | 0 | 188 | 0.07192 |
0a8d1e23712a4b58170f56ad1d0354b9b57142a5 | 45 | py | Python | AudioLib/__init__.py | yNeshy/voice-change | 2535351bcd8a9f2d58fcbff81a2051c4f6ac6ab4 | [
"MIT"
] | 11 | 2021-02-04T11:35:37.000Z | 2022-03-26T10:32:00.000Z | AudioLib/__init__.py | yNeshy/voice-change | 2535351bcd8a9f2d58fcbff81a2051c4f6ac6ab4 | [
"MIT"
] | 4 | 2021-03-22T09:36:54.000Z | 2021-03-26T09:10:51.000Z | AudioLib/__init__.py | yNeshy/voice-change | 2535351bcd8a9f2d58fcbff81a2051c4f6ac6ab4 | [
"MIT"
] | 6 | 2021-02-24T09:03:35.000Z | 2021-11-16T02:00:53.000Z | from AudioLib.AudioEffect import AudioEffect
| 22.5 | 44 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0a8f1638c1d0ec4d963f02a274edb9bb4662cfb2 | 679 | py | Python | programs/buck_logging.py | lakshmi2005/buck | 012a59d5d2e5a45b483e85fb190d2b67ea0c56ab | [
"Apache-2.0"
] | 1 | 2018-02-28T06:26:56.000Z | 2018-02-28T06:26:56.000Z | programs/buck_logging.py | lakshmi2005/buck | 012a59d5d2e5a45b483e85fb190d2b67ea0c56ab | [
"Apache-2.0"
] | 1 | 2018-12-10T15:54:22.000Z | 2018-12-10T19:30:37.000Z | programs/buck_logging.py | lakshmi2005/buck | 012a59d5d2e5a45b483e85fb190d2b67ea0c56ab | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from __future__ import print_function
import logging
import os
def setup_logging():
# Set log level of the messages to show.
level_name = os.environ.get('BUCK_WRAPPER_LOG_LEVEL', 'INFO')
level_name_to_level = {
'CRITICAL': logging.CRITICAL,
'ERROR': logging.ERROR,
... | 27.16 | 78 | 0.624448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 204 | 0.300442 |
0a8f6e13baf9b1f8e5a29dd8f55cd71b2926de6a | 1,151 | py | Python | CONTENT/DS-n-Algos/ALGO/__PYTHON/celeb.py | Web-Dev-Collaborative/DS-ALGO-OFFICIAL | 6d7195d33c28a0fe22f12231efffb39f4bf05c97 | [
"Apache-2.0"
] | 11 | 2021-02-18T04:53:44.000Z | 2022-01-16T10:57:39.000Z | CONTENT/DS-n-Algos/ALGO/__PYTHON/celeb.py | Web-Dev-Collaborative/DS-ALGO-OFFICIAL | 6d7195d33c28a0fe22f12231efffb39f4bf05c97 | [
"Apache-2.0"
] | 162 | 2021-03-09T01:52:11.000Z | 2022-03-12T01:09:07.000Z | CONTENT/DS-n-Algos/ALGO/__PYTHON/celeb.py | Web-Dev-Collaborative/DS-ALGO-OFFICIAL | 6d7195d33c28a0fe22f12231efffb39f4bf05c97 | [
"Apache-2.0"
] | 8 | 2021-02-18T05:12:34.000Z | 2022-03-06T19:02:14.000Z | def orangesRotting(elemnts):
if not elemnts or len(elemnts) == 0:
return 0
n = len(elemnts)
m = len(elemnts[0])
rotten = []
for i in range(n):
for j in range(m):
if elemnts[i][j] == 2:
rotten.append((i, j))
mins = 0
def dfs(rotten):
... | 25.021739 | 48 | 0.38662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0a8fdb2b5cc10e441111eda628478417245011ef | 5,283 | py | Python | official/cv/c3d/src/c3d_model.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | official/cv/c3d/src/c3d_model.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | official/cv/c3d/src/c3d_model.py | leelige/mindspore | 5199e05ba3888963473f2b07da3f7bca5b9ef6dc | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 40.638462 | 100 | 0.570509 | 4,438 | 0.840053 | 0 | 0 | 0 | 0 | 0 | 0 | 1,039 | 0.196669 |
0a90c84a059304b0e838dbe80594658dfad7edd3 | 2,119 | py | Python | blmath/geometry/apex.py | metabolize/blmath | 8ea8d7be60349a60ffeb08a3e34fca20ef9eb0da | [
"BSD-2-Clause"
] | 6 | 2019-09-28T16:48:34.000Z | 2022-03-25T17:05:46.000Z | blmath/geometry/apex.py | metabolize/blmath | 8ea8d7be60349a60ffeb08a3e34fca20ef9eb0da | [
"BSD-2-Clause"
] | 6 | 2019-09-09T16:42:02.000Z | 2021-06-25T15:25:50.000Z | blmath/geometry/apex.py | metabolize/blmath | 8ea8d7be60349a60ffeb08a3e34fca20ef9eb0da | [
"BSD-2-Clause"
] | 4 | 2017-05-09T16:15:07.000Z | 2019-02-15T14:15:30.000Z | import numpy as np
from blmath.numerics import vx
def apex(points, axis):
'''
Find the most extreme point in the direction of the axis provided.
axis: A vector, which is an 3x1 np.array.
'''
coords_on_axis = points.dot(axis)
return points[np.argmax(coords_on_axis)]
def inflection_points(poin... | 36.534483 | 129 | 0.738084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,095 | 0.516753 |
0a9150e1ffc2d578382971b5ac300e3f70157319 | 637 | py | Python | examples/client/main.py | TheFarGG/Discode | facf6cd4f82baef2288a23dbe6f2a02dfc2407e2 | [
"MIT"
] | 3 | 2021-11-06T11:07:18.000Z | 2022-03-18T09:04:42.000Z | examples/client/main.py | UnrealFar/Discode | facf6cd4f82baef2288a23dbe6f2a02dfc2407e2 | [
"MIT"
] | 3 | 2021-11-06T11:22:05.000Z | 2022-03-12T16:36:52.000Z | examples/client/main.py | UnrealFar/Discode | facf6cd4f82baef2288a23dbe6f2a02dfc2407e2 | [
"MIT"
] | 4 | 2021-11-06T11:08:26.000Z | 2022-03-12T14:25:57.000Z | import os
import discode
TOKEN = os.environ.get("TOKEN")
# The token from the developer portal.
client = discode.Client(token=TOKEN, intents=discode.Intents.default())
@client.on_event("ready")
async def on_ready():
print(client.user, "is ready!")
# The ready listener gets fired when the bot/client is comple... | 23.592593 | 108 | 0.726845 | 0 | 0 | 0 | 0 | 266 | 0.417582 | 205 | 0.321821 | 279 | 0.437991 |
0a91aa29e60075c1d841a9fa42cfbeabf426976a | 2,225 | py | Python | timm/models/layers/__init__.py | kkahatapitiya/pytorch-image-models | 94f9d54ac22354f3cf7ada9a7304ac97143deb14 | [
"Apache-2.0"
] | null | null | null | timm/models/layers/__init__.py | kkahatapitiya/pytorch-image-models | 94f9d54ac22354f3cf7ada9a7304ac97143deb14 | [
"Apache-2.0"
] | null | null | null | timm/models/layers/__init__.py | kkahatapitiya/pytorch-image-models | 94f9d54ac22354f3cf7ada9a7304ac97143deb14 | [
"Apache-2.0"
] | null | null | null | from .activations import *
from .adaptive_avgmax_pool import \
adaptive_avgmax_pool2d, select_adaptive_pool2d, AdaptiveAvgMaxPool2d, SelectAdaptivePool2d
from .blur_pool import BlurPool2d
from .classifier import ClassifierHead, create_classifier
from .cond_conv2d import CondConv2d, get_condconv_initializer
from .co... | 54.268293 | 105 | 0.865169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0a93d3f57e61e9da5895ceeab547d073a015db76 | 468 | py | Python | riccipy/metrics/bondi_2.py | cjayross/riccipy | 2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846 | [
"MIT"
] | 4 | 2019-08-17T04:28:06.000Z | 2021-01-02T15:19:18.000Z | riccipy/metrics/bondi_2.py | grdbii/riccipy | 2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846 | [
"MIT"
] | 3 | 2019-08-02T04:07:43.000Z | 2020-06-18T07:49:38.000Z | riccipy/metrics/bondi_2.py | grdbii/riccipy | 2cc0ca5e1aa4af91b203b3ff2bb1effd7d2f4846 | [
"MIT"
] | null | null | null | """
Name: Bondi
References: Bondi, Proc. Roy. Soc. Lond. A, v282, p303, (1964)
Coordinates: Spherical
Symmetry: Spherical
Notes: Outgoing Coordinates
"""
from sympy import Function, diag, sin, symbols
coords = symbols("r v theta phi", real=True)
variables = ()
functions = symbols("C M", cls=Function)
r, v, th, ph = co... | 27.529412 | 86 | 0.621795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 173 | 0.369658 |
0a94bf94b86f2d0bf5c868fffdac3fa72c685955 | 19,040 | py | Python | cfgov/ask_cfpb/tests/test_views.py | atuggle/cfgov-refresh | 5a9cfd92b460b9be7befb39f5845abf56857aeac | [
"CC0-1.0"
] | null | null | null | cfgov/ask_cfpb/tests/test_views.py | atuggle/cfgov-refresh | 5a9cfd92b460b9be7befb39f5845abf56857aeac | [
"CC0-1.0"
] | 1 | 2016-09-14T21:11:19.000Z | 2016-09-14T21:11:19.000Z | cfgov/ask_cfpb/tests/test_views.py | atuggle/cfgov-refresh | 5a9cfd92b460b9be7befb39f5845abf56857aeac | [
"CC0-1.0"
] | null | null | null | from __future__ import unicode_literals
import json
from django.apps import apps
from django.core.urlresolvers import NoReverseMatch, reverse
from django.http import Http404, HttpRequest, QueryDict
from django.test import TestCase, override_settings
from django.utils import timezone
from wagtail.wagtailcore.models i... | 37.628458 | 76 | 0.624475 | 18,393 | 0.966019 | 0 | 0 | 11,101 | 0.583036 | 0 | 0 | 3,563 | 0.187132 |
0a950c28a9d44906d9a72986af5603b4ab55c885 | 1,583 | py | Python | setup.py | bcongdon/instapaper-to-sqlite | 378b87ffcd2832aeff735dd78a0c8206d220b899 | [
"MIT"
] | 1 | 2021-10-04T05:48:51.000Z | 2021-10-04T05:48:51.000Z | setup.py | bcongdon/instapaper-to-sqlite | 378b87ffcd2832aeff735dd78a0c8206d220b899 | [
"MIT"
] | null | null | null | setup.py | bcongdon/instapaper-to-sqlite | 378b87ffcd2832aeff735dd78a0c8206d220b899 | [
"MIT"
] | 1 | 2022-02-26T14:12:13.000Z | 2022-02-26T14:12:13.000Z | import os
from setuptools import setup
VERSION = "0.2"
def get_long_description():
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
encoding="utf8",
) as fp:
return fp.read()
setup(
name="instapaper-to-sqlite",
description="Save data from In... | 29.867925 | 87 | 0.632975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 862 | 0.544536 |
0a95cfa206f2acf8636e2a3399ef4362d43aa15a | 3,092 | py | Python | pybm/commands/compare.py | nicholasjng/pybm | 13e256ca5c2c8239f9d611b9849dab92f70b2834 | [
"Apache-2.0"
] | 12 | 2021-10-10T20:00:07.000Z | 2022-02-09T11:29:07.000Z | pybm/commands/compare.py | nicholasjng/pybm | 13e256ca5c2c8239f9d611b9849dab92f70b2834 | [
"Apache-2.0"
] | 20 | 2021-10-13T09:37:20.000Z | 2022-03-07T15:14:00.000Z | pybm/commands/compare.py | nicholasjng/pybm | 13e256ca5c2c8239f9d611b9849dab92f70b2834 | [
"Apache-2.0"
] | 1 | 2022-02-09T10:09:41.000Z | 2022-02-09T10:09:41.000Z | from typing import List
from pybm import PybmConfig
from pybm.command import CLICommand
from pybm.config import get_reporter_class
from pybm.exceptions import PybmError
from pybm.reporters import BaseReporter
from pybm.status_codes import ERROR, SUCCESS
from pybm.util.path import get_subdirs
class CompareCommand(CLI... | 32.893617 | 86 | 0.597025 | 2,795 | 0.903946 | 0 | 0 | 0 | 0 | 0 | 0 | 861 | 0.278461 |
0a9605df608e45d997ef3a777c5490c843c12343 | 1,728 | py | Python | dddm/recoil_rates/halo.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | null | null | null | dddm/recoil_rates/halo.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | 85 | 2021-09-20T12:08:53.000Z | 2022-03-30T12:48:06.000Z | dddm/recoil_rates/halo.py | JoranAngevaare/dddm | 3461e37984bac4d850beafecc9d1881b84fb226c | [
"MIT"
] | null | null | null | """
For a given detector get a WIMPrate for a given detector (not taking into
account any detector effects
"""
import numericalunits as nu
import wimprates as wr
import dddm
export, __all__ = dddm.exporter()
@export
class SHM:
"""
class used to pass a halo model to the rate computation
must cont... | 33.882353 | 97 | 0.618634 | 1,507 | 0.872106 | 0 | 0 | 1,515 | 0.876736 | 0 | 0 | 906 | 0.524306 |
0a964781b5354d9a284fd5961c977de9c81e555d | 17,664 | py | Python | picket/rvae/train_eval_models.py | rekords-uw/Picket | 773797ae1c1ed37c345facfb43e289a75d92cc1c | [
"MIT"
] | 10 | 2020-11-24T17:26:01.000Z | 2021-09-26T18:41:44.000Z | picket/rvae/train_eval_models.py | rekords-uw/Picket | 773797ae1c1ed37c345facfb43e289a75d92cc1c | [
"MIT"
] | null | null | null | picket/rvae/train_eval_models.py | rekords-uw/Picket | 773797ae1c1ed37c345facfb43e289a75d92cc1c | [
"MIT"
] | 3 | 2021-05-26T12:45:37.000Z | 2021-11-22T04:51:40.000Z | #!/usr/bin/env python3
import torch
from torch import optim
import torch.nn.functional as F
import argparse
from sklearn.metrics import mean_squared_error
import numpy as np
import json
from . import utils
from .model_utils import get_pi_exact_vec, rnn_vae_forward_one_stage, rnn_vae_forward_two_stage
def training_... | 52.260355 | 194 | 0.614753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,592 | 0.146739 |
0a96a8a9570ed3b24a4bfee94944da9262d1bde3 | 449 | py | Python | setup.py | nopipifish/bert4keras | d8fd065b9b74b8a82b381b7183f9934422e4caa9 | [
"Apache-2.0"
] | 1 | 2020-09-09T02:34:28.000Z | 2020-09-09T02:34:28.000Z | setup.py | nopipifish/bert4keras | d8fd065b9b74b8a82b381b7183f9934422e4caa9 | [
"Apache-2.0"
] | null | null | null | setup.py | nopipifish/bert4keras | d8fd065b9b74b8a82b381b7183f9934422e4caa9 | [
"Apache-2.0"
] | null | null | null | #! -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='bert4keras',
version='0.8.4',
description='an elegant bert4keras',
long_description='bert4keras: https://github.com/bojone/bert4keras',
license='Apache License 2.0',
url='https://github.com/bojone/bert4keras',
... | 26.411765 | 72 | 0.674833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 217 | 0.483296 |
0a96c59de05ef2cf939a78138027073d3aeef532 | 489 | py | Python | sztuczna_inteligencja/3-lab/backtrackingSolve.py | Magikis/Uniwersity | 06964ef31d721af85740df1dce3f966006ab9f78 | [
"MIT"
] | 12 | 2017-11-30T08:45:48.000Z | 2018-04-26T14:15:45.000Z | sztuczna_inteligencja/3-lab/backtrackingSolve.py | Magikis/Uniwersity | 06964ef31d721af85740df1dce3f966006ab9f78 | [
"MIT"
] | null | null | null | sztuczna_inteligencja/3-lab/backtrackingSolve.py | Magikis/Uniwersity | 06964ef31d721af85740df1dce3f966006ab9f78 | [
"MIT"
] | 9 | 2017-10-16T09:42:59.000Z | 2018-01-27T19:48:45.000Z | # import cProfile
# import pstats
# import io
from picture import *
# pr = cProfile.Profile()
# pr.enable()
def out(p):
for i in range(2):
print([len(x) for x in p.perms[i]])
if __name__ == '__main__':
p = Picture()
p.genPerms()
p.detuctAll()
p.backtrackLoop()
p.saveOtput()
# pr... | 18.111111 | 56 | 0.586912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 238 | 0.486708 |
0a96d8eb608d332f737e6f0d0e18267bfd899873 | 1,512 | py | Python | benchmark/generate_examples_strprose.py | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | 1 | 2021-06-23T05:10:36.000Z | 2021-06-23T05:10:36.000Z | benchmark/generate_examples_strprose.py | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | null | null | null | benchmark/generate_examples_strprose.py | HALOCORE/SynGuar | 8f7f9ba52e83091ad3def501169fd60d20b28321 | [
"MIT"
] | null | null | null | # imports
import os
import json
import subprocess
abs_join = lambda p1, p2 : os.path.abspath(os.path.join(p1, p2))
# constants
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
SEED_RELPATH = "./strprose/example_files/_seeds.json"
SEED_FULLPATH = abs_join(SCRIPT_DIR, SEED_RELPATH)
SEED_INFO = None
with open(SEE... | 32.170213 | 89 | 0.683862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 408 | 0.269841 |
0a96db7bc8255b1b1b651c9085fc3a06e4243461 | 1,753 | py | Python | mmtbx/regression/tls/tst_u_tls_vs_u_ens_03.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/regression/tls/tst_u_tls_vs_u_ens_03.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/regression/tls/tst_u_tls_vs_u_ens_03.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
from mmtbx.tls import tools
import math
import time
pdb_str_1 = """
CRYST1 10.000 10.000 10.000 90.00 90.00 90.00 P1
ATOM 1 CA THR A 6 0.000 0.000 0.000 1.00 0.00 C
ATOM 1 CA THR B 6 3.000 0.000 0.000 1.00 0.00 C
"""... | 34.372549 | 79 | 0.498003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 919 | 0.524244 |
0a96e21fb56076c17506b44887fb9f2f8344e7b0 | 558 | py | Python | elliesite/context_processors.py | davidkartuzinski/ellieplatformsite | 63a41cb2a15ae81a7cd3cdf68d783398b3205ce2 | [
"MIT"
] | 1 | 2021-06-26T22:18:31.000Z | 2021-06-26T22:18:31.000Z | ellie/context_processors.py | open-apprentice/ellieplatform-website | 3018feb05a2a44b916afba3e8e2eb71c18147117 | [
"MIT"
] | 12 | 2021-06-26T22:38:45.000Z | 2021-07-07T15:49:43.000Z | elliesite/context_processors.py | davidkartuzinski/ellieplatformsite | 63a41cb2a15ae81a7cd3cdf68d783398b3205ce2 | [
"MIT"
] | 1 | 2021-07-07T15:33:43.000Z | 2021-07-07T15:33:43.000Z | import sys
from django.urls import resolve
def global_vars(request):
return {
'GLOBAL_TWITTER_ACCOUNT': '@open_apprentice',
'ORGANIZATION_NAME': 'Open Apprentice Foundation',
'ORGANIZATION_WEBSITE': 'https://openapprentice.org',
'ORGANIZATION_LOGO': '/static/img/ellie/open-apprenti... | 39.857143 | 107 | 0.693548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 325 | 0.582437 |
0a96e48e2da874873ab9a54b25f7428bb39c7d94 | 18,180 | py | Python | tools/train_net_step.py | va1shn9v/Detectron.pytorch | 3e1cb11f160148248cbbd79e3dd9f490ca9c280a | [
"MIT"
] | null | null | null | tools/train_net_step.py | va1shn9v/Detectron.pytorch | 3e1cb11f160148248cbbd79e3dd9f490ca9c280a | [
"MIT"
] | null | null | null | tools/train_net_step.py | va1shn9v/Detectron.pytorch | 3e1cb11f160148248cbbd79e3dd9f490ca9c280a | [
"MIT"
] | null | null | null | """ Training script for steps_with_decay policy"""
import argparse
import os
import sys
import pickle
import resource
import traceback
import logging
from collections import defaultdict
import numpy as np
import yaml
import torch
from torch.autograd import Variable
import torch.nn as nn
import cv2
cv2.setNumThreads(0... | 38.435518 | 107 | 0.642079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,763 | 0.261991 |
0a9772419f2ef3e57950559b990b8ce8968146c1 | 4,402 | py | Python | Lib/site-packages/astroid/brain/brain_numpy_core_multiarray.py | punithmadaiahkumar/try-django | 39680a7583122bdd722789f92400edae67c6251d | [
"MIT"
] | 4 | 2021-10-20T12:39:09.000Z | 2022-02-26T15:02:08.000Z | Lib/site-packages/astroid/brain/brain_numpy_core_multiarray.py | punithmadaiahkumar/try-django | 39680a7583122bdd722789f92400edae67c6251d | [
"MIT"
] | 12 | 2020-07-05T14:30:46.000Z | 2020-08-06T21:06:00.000Z | Lib/site-packages/astroid/brain/brain_numpy_core_multiarray.py | punithmadaiahkumar/try-django | 39680a7583122bdd722789f92400edae67c6251d | [
"MIT"
] | 1 | 2021-10-20T13:47:10.000Z | 2021-10-20T13:47:10.000Z | # Copyright (c) 2019-2020 hippo91 <guillaume.peillex@gmail.com>
# Copyright (c) 2020 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2021 Pierre Sassoulas <pierre.sassoulas@gmail.com>
# Copyright (c) 2021 Marc Mueller <30130371+cdce8p@users.noreply.github.com>
# Licensed under the LGPL: https://www.gnu.org/licens... | 43.584158 | 133 | 0.647887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,179 | 0.722172 |
0a9876a51a89bf0aa93f351a61986d7fa1facb0f | 211 | py | Python | tests/asp/weakConstraints/testcase13.bug.weakconstraints.gringo.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 19 | 2015-12-03T08:53:45.000Z | 2022-03-31T02:09:43.000Z | tests/asp/weakConstraints/testcase13.bug.weakconstraints.gringo.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 80 | 2017-11-25T07:57:32.000Z | 2018-06-10T19:03:30.000Z | tests/asp/weakConstraints/testcase13.bug.weakconstraints.gringo.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 6 | 2015-01-15T07:51:48.000Z | 2020-06-18T14:47:48.000Z | input = """
2 18 3 0 3 19 20 21
1 1 1 0 18
2 23 3 0 3 19 24 25
1 1 2 1 21 23
3 5 21 19 20 24 25 0 0
6 0 5 5 21 19 20 24 25 1 1 1 1 1
0
21 a
19 b
20 c
24 d
25 e
28 f
0
B+
0
B-
1
0
1
"""
output = """
COST 1@1
"""
| 8.115385 | 32 | 0.540284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 192 | 0.909953 |
0a98cfd9f20dfc0c1b38e64c743a29230c7a8c4f | 195 | py | Python | whoPay.py | susurigirl/susuri | cec96cc9abd5a25762e15db27c17e70a95ae874c | [
"MIT"
] | null | null | null | whoPay.py | susurigirl/susuri | cec96cc9abd5a25762e15db27c17e70a95ae874c | [
"MIT"
] | null | null | null | whoPay.py | susurigirl/susuri | cec96cc9abd5a25762e15db27c17e70a95ae874c | [
"MIT"
] | null | null | null | import random
names_string = input("내기를 할 친구들의 이름을 적습니다. 콤마(,)로 분리해서 적습니다.\n")
names = names_string.split(",")
print(names)
n = random.randint(0, len(names))
print(f"오늘 커피는 {names[n]}가 쏩니다!")
| 19.5 | 64 | 0.676923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 141 | 0.532075 |
0a98e4f650bd93b816382fc9c8f7255712fc94e9 | 1,044 | py | Python | jp.atcoder/abc056/arc070_b/26725094.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc056/arc070_b/26725094.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc056/arc070_b/26725094.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
import typing
import numpy as np
def solve(a: np.ndarray, k: int) -> typing.NoReturn:
n = len(a)
def compute_dp(a: np.ndarray) -> np.ndarray:
dp = np.zeros((n + 1, k), np.bool8)
dp[0, 0] = True
for i in range(n):
dp[i + 1] = dp[i].copy()
... | 23.2 | 65 | 0.425287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0a99a93e656914b21bfd27861c1447d786a91bee | 2,929 | py | Python | MicroPython_BUILD/components/micropython/esp32/modules_examples/mqtt_example.py | FlorianPoot/MicroPython_ESP32_psRAM_LoBo | fff2e193d064effe36a7d456050faa78fe6280a8 | [
"Apache-2.0"
] | 838 | 2017-07-14T10:08:13.000Z | 2022-03-22T22:09:14.000Z | MicroPython_BUILD/components/micropython/esp32/modules_examples/mqtt_example.py | FlorianPoot/MicroPython_ESP32_psRAM_LoBo | fff2e193d064effe36a7d456050faa78fe6280a8 | [
"Apache-2.0"
] | 395 | 2017-08-18T15:56:17.000Z | 2022-03-20T11:28:23.000Z | MicroPython_BUILD/components/micropython/esp32/modules_examples/mqtt_example.py | FlorianPoot/MicroPython_ESP32_psRAM_LoBo | fff2e193d064effe36a7d456050faa78fe6280a8 | [
"Apache-2.0"
] | 349 | 2017-09-02T18:00:23.000Z | 2022-03-31T23:26:22.000Z | import network
def conncb(task):
print("[{}] Connected".format(task))
def disconncb(task):
print("[{}] Disconnected".format(task))
def subscb(task):
print("[{}] Subscribed".format(task))
def pubcb(pub):
print("[{}] Published: {}".format(pub[0], pub[1]))
def datacb(msg):
print("[{}] Data arrived... | 33.284091 | 216 | 0.712188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,585 | 0.54114 |
0a9a47e3f3a1f529a8e26eeea21042cb90395afd | 585 | py | Python | mlb/game/migrations/0009_game_game_type.py | atadams/mlb | 633b2eb53e5647c64a48c31ca68a50714483fb1d | [
"MIT"
] | null | null | null | mlb/game/migrations/0009_game_game_type.py | atadams/mlb | 633b2eb53e5647c64a48c31ca68a50714483fb1d | [
"MIT"
] | null | null | null | mlb/game/migrations/0009_game_game_type.py | atadams/mlb | 633b2eb53e5647c64a48c31ca68a50714483fb1d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2019-12-14 19:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('game', '0008_auto_20191214_1019'),
]
operations = [
migrations.AddField(
model_name='game',
name='game_type',
... | 30.789474 | 253 | 0.589744 | 492 | 0.841026 | 0 | 0 | 0 | 0 | 0 | 0 | 236 | 0.403419 |
0a9a9f93de2f3ba2e7d9c2affc936358894ee511 | 36,217 | py | Python | backend/main/chapters/c06_lists.py | Vman45/futurecoder | 0f4abc0ab00ec473e6cf6f51d534ef2deb26a086 | [
"MIT"
] | null | null | null | backend/main/chapters/c06_lists.py | Vman45/futurecoder | 0f4abc0ab00ec473e6cf6f51d534ef2deb26a086 | [
"MIT"
] | 1 | 2022-02-28T01:35:27.000Z | 2022-02-28T01:35:27.000Z | backend/main/chapters/c06_lists.py | suchoudh/futurecoder | 0f4abc0ab00ec473e6cf6f51d534ef2deb26a086 | [
"MIT"
] | null | null | null | # flake8: NOQA E501
import ast
import random
from textwrap import dedent
from typing import List
from main.exercises import generate_list, generate_string
from main.text import ExerciseStep, MessageStep, Page, Step, VerbatimStep, search_ast
from main.utils import returns_stdout
class IntroducingLists(Page):
clas... | 34.038534 | 415 | 0.608333 | 35,913 | 0.991606 | 0 | 0 | 3,677 | 0.101527 | 0 | 0 | 26,044 | 0.71911 |
0a9abefb5c7f43f4b3586ebf44ef35bd05d5118a | 1,223 | py | Python | redisSeed.py | bigmacd/miscPython | ec473c724be54241e369a1bdb0f739d2b0ed02ee | [
"BSD-3-Clause"
] | null | null | null | redisSeed.py | bigmacd/miscPython | ec473c724be54241e369a1bdb0f739d2b0ed02ee | [
"BSD-3-Clause"
] | null | null | null | redisSeed.py | bigmacd/miscPython | ec473c724be54241e369a1bdb0f739d2b0ed02ee | [
"BSD-3-Clause"
] | null | null | null | import time
import redis
import json
import argparse
""" Follows the StackExchange best practice for creating a work queue.
Basically push a task and publish a message that a task is there."""
def PushTask(client, queue, task, topic):
client.lpush(queue, task)
client.publish(topic, queue)
if __name_... | 34.942857 | 95 | 0.614881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 383 | 0.313164 |
0a9ca97f3e91b994b2c90fedaf1ef527a056c57a | 891 | py | Python | app/celery.py | TIHLDE/Lepton | 60ec0793381f1c1b222f305586e8c2d4345fb566 | [
"MIT"
] | 7 | 2021-03-04T18:49:12.000Z | 2021-03-08T18:25:51.000Z | app/celery.py | TIHLDE/Lepton | 60ec0793381f1c1b222f305586e8c2d4345fb566 | [
"MIT"
] | 251 | 2021-03-04T19:19:14.000Z | 2022-03-31T14:47:53.000Z | app/celery.py | tihlde/Lepton | 5cab3522c421b76373a5c25f49267cfaef7b826a | [
"MIT"
] | 3 | 2021-10-05T19:03:04.000Z | 2022-02-25T13:32:09.000Z | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
# set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
app = Celery("app")
# Using a string here means the worker doesn't have to serialize
# the ... | 27 | 66 | 0.751964 | 0 | 0 | 0 | 0 | 91 | 0.102132 | 0 | 0 | 478 | 0.536476 |
0a9d2e6c0217618be0d23544b03fc29100edce45 | 161 | py | Python | src/garage/core/__init__.py | researchai/unsupervised_meta_rl | 9ca4b41438277ef6cfea047482b98de9da07815a | [
"MIT"
] | 1 | 2019-07-31T06:53:38.000Z | 2019-07-31T06:53:38.000Z | src/garage/core/__init__.py | researchai/unsupervised_meta_rl | 9ca4b41438277ef6cfea047482b98de9da07815a | [
"MIT"
] | null | null | null | src/garage/core/__init__.py | researchai/unsupervised_meta_rl | 9ca4b41438277ef6cfea047482b98de9da07815a | [
"MIT"
] | 1 | 2020-02-05T00:34:07.000Z | 2020-02-05T00:34:07.000Z | from garage.core.serializable import Serializable
from garage.core.parameterized import Parameterized # noqa: I100
__all__ = ['Serializable', 'Parameterized']
| 32.2 | 65 | 0.807453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 41 | 0.254658 |
0a9de0f402594abfa8300f717bad17c1f1a23420 | 856 | py | Python | formidable/forms/boundfield.py | jayvdb/django-formidable | df8bcd0c882990d72d302be47aeb4fb11915b1fa | [
"MIT"
] | null | null | null | formidable/forms/boundfield.py | jayvdb/django-formidable | df8bcd0c882990d72d302be47aeb4fb11915b1fa | [
"MIT"
] | null | null | null | formidable/forms/boundfield.py | jayvdb/django-formidable | df8bcd0c882990d72d302be47aeb4fb11915b1fa | [
"MIT"
] | null | null | null | from django.forms import forms
class FormatBoundField(forms.BoundField):
"""
The format field skips the rendering with the label attribute
in the form level (i.e => form.as_p() doesn't have to generate any label
for format field).
This boundfield has this main goal.
"""
def __init__(self,... | 23.777778 | 76 | 0.671729 | 813 | 0.949766 | 0 | 0 | 0 | 0 | 0 | 0 | 354 | 0.413551 |
0a9deb518dd12c6a3961ce613b76fcc3db2acd68 | 602 | py | Python | algorithm_training/abc87.py | hirotosuzuki/algorithm_training | 3134bad4ea2ea57a77e05be6f21ba776a558f520 | [
"MIT"
] | null | null | null | algorithm_training/abc87.py | hirotosuzuki/algorithm_training | 3134bad4ea2ea57a77e05be6f21ba776a558f520 | [
"MIT"
] | null | null | null | algorithm_training/abc87.py | hirotosuzuki/algorithm_training | 3134bad4ea2ea57a77e05be6f21ba776a558f520 | [
"MIT"
] | null | null | null | class TaskA:
def run(self):
V, A, B, C = map(int, input().split())
pass
class TaskB:
def run(self):
A = int(input())
B = int(input())
C = int(input())
X = int(input())
counter = 0
for a in range(A+1):
for b in range(B+1):
... | 21.5 | 54 | 0.413621 | 536 | 0.890365 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 0.016611 |
0a9e0852ce066b6a61ac5cfb9625f8879b66f594 | 536 | py | Python | serveur/serveurDroit.py | PL4typus/SysNetProject17 | 283c127a3363876360bc52b54eae939c6104c6b4 | [
"MIT"
] | null | null | null | serveur/serveurDroit.py | PL4typus/SysNetProject17 | 283c127a3363876360bc52b54eae939c6104c6b4 | [
"MIT"
] | null | null | null | serveur/serveurDroit.py | PL4typus/SysNetProject17 | 283c127a3363876360bc52b54eae939c6104c6b4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import socket,sys,os
TCP_IP = '127.0.0.1'
TCP_PORT = 6262
BUFFER_SIZE = 1024
s= socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.bind((TCP_IP,TCP_PORT))
s.listen(5)
conn, addr = s.accept()
print('Connection entrante :', addr)
data = conn.recv(BUFFER_SIZE)
if data == "m" :
os.popen("chmod... | 14.486486 | 51 | 0.641791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 108 | 0.201493 |
0a9ea2c54f2546f23ad0eceb20e12ee8b19cd36b | 888 | py | Python | BE/common/helpers.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | 1 | 2018-05-06T00:31:35.000Z | 2018-05-06T00:31:35.000Z | BE/common/helpers.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | null | null | null | BE/common/helpers.py | kosior/ngLearn-1 | 4cc52153876aca409d56bd9cabace9283946bd32 | [
"MIT"
] | null | null | null | from rest_framework_jwt.utils import jwt_decode_handler
from users.models import User
from users.serializers import UserSerializer
def jwt_response_payload_handler(token, user=None, request=None):
return {
'token': token,
'user': UserSerializer(user, context={'request': request}).data
}
def... | 24 | 71 | 0.684685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 53 | 0.059685 |
0a9ed4d324eb619f1707025aa2d1ca6c25ef2609 | 17,230 | py | Python | src/finn/util/basic.py | quetric/finn-base-1 | 1494a13a430c784683c2c33288823f83d1cd6fed | [
"BSD-3-Clause"
] | null | null | null | src/finn/util/basic.py | quetric/finn-base-1 | 1494a13a430c784683c2c33288823f83d1cd6fed | [
"BSD-3-Clause"
] | null | null | null | src/finn/util/basic.py | quetric/finn-base-1 | 1494a13a430c784683c2c33288823f83d1cd6fed | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2020 Xilinx, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the f... | 38.9819 | 88 | 0.673593 | 1,884 | 0.109344 | 0 | 0 | 0 | 0 | 0 | 0 | 8,508 | 0.49379 |
0a9f22dd58e0b2b2c094a6f1cf7277e84b5b669b | 9,455 | py | Python | mainmenu.py | jeffrypaul37/Hospital-Management-System | 4ff08bed5387ca23e3f31dbbf46e625d8ae5807b | [
"Apache-2.0"
] | null | null | null | mainmenu.py | jeffrypaul37/Hospital-Management-System | 4ff08bed5387ca23e3f31dbbf46e625d8ae5807b | [
"Apache-2.0"
] | null | null | null | mainmenu.py | jeffrypaul37/Hospital-Management-System | 4ff08bed5387ca23e3f31dbbf46e625d8ae5807b | [
"Apache-2.0"
] | null | null | null | from tkinter import *
from tkcalendar import Calendar
from datetime import datetime
from datetime import date
import tkinter as tk
from tkinter import ttk
from tkinter.messagebox import askyesno
import re
import sqlite3
import tkinter.messagebox
import pandas as pd
import pandas as pd
import datetime
... | 31.20462 | 230 | 0.564886 | 8,233 | 0.870756 | 0 | 0 | 0 | 0 | 0 | 0 | 1,593 | 0.168482 |
0a9f437ec901227c3a525ef2b2000464e450f945 | 3,399 | py | Python | chia_tea/discord/commands/test_wallets.py | Tea-n-Tech/chia-tea | a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96 | [
"BSD-3-Clause"
] | 6 | 2021-08-05T21:31:15.000Z | 2021-11-15T20:54:25.000Z | chia_tea/discord/commands/test_wallets.py | Tea-n-Tech/chia-tea | a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96 | [
"BSD-3-Clause"
] | 49 | 2021-08-05T19:33:08.000Z | 2022-03-30T19:33:38.000Z | chia_tea/discord/commands/test_wallets.py | Tea-n-Tech/chia-tea | a5bd327b9d5e048e55e9f5d8cefca2dbcd5eae96 | [
"BSD-3-Clause"
] | 1 | 2022-01-09T17:08:32.000Z | 2022-01-09T17:08:32.000Z | import os
import tempfile
import unittest
from datetime import datetime
from google.protobuf.json_format import ParseDict
from ...monitoring.MonitoringDatabase import MonitoringDatabase
from ...protobuf.generated.computer_info_pb2 import ADD, UpdateEvent
from ...protobuf.generated.monitoring_service_pb2 import DataUp... | 35.40625 | 74 | 0.527214 | 2,991 | 0.879965 | 0 | 0 | 2,934 | 0.863195 | 2,886 | 0.849073 | 146 | 0.042954 |
0a9f5b949039e60cbeefb54542ccaa4f60417abd | 990 | py | Python | render/PC_Normalisation.py | sun-pyo/OcCo | e2e12dbaa8f9b98fb8c42fc32682f49e99be302f | [
"MIT"
] | 158 | 2020-08-19T18:13:28.000Z | 2022-03-30T13:55:32.000Z | render/PC_Normalisation.py | sun-pyo/OcCo | e2e12dbaa8f9b98fb8c42fc32682f49e99be302f | [
"MIT"
] | 28 | 2020-05-30T04:02:33.000Z | 2022-03-30T15:46:38.000Z | render/PC_Normalisation.py | sun-pyo/OcCo | e2e12dbaa8f9b98fb8c42fc32682f49e99be302f | [
"MIT"
] | 18 | 2020-08-19T19:52:38.000Z | 2022-02-06T11:42:26.000Z | # Copyright (c) 2020. Hanchen Wang, hw501@cam.ac.uk
import os, open3d, numpy as np
File_ = open('ModelNet_flist_short.txt', 'w')
if __name__ == "__main__":
root_dir = "../data/ModelNet_subset/"
for root, dirs, files in os.walk(root_dir, topdown=False):
for file in files:
if '.ply' in fi... | 41.25 | 96 | 0.586869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 230 | 0.232323 |
0aa08817091e8a101312819073f37fbcd1819291 | 20,634 | py | Python | pymatgen/apps/battery/insertion_battery.py | adozier/pymatgen | f1cc4d8db24ec11063be2fd84b4ea911f006eeb7 | [
"MIT"
] | 18 | 2019-06-15T18:08:21.000Z | 2022-01-30T05:01:29.000Z | ComRISB/pyextern/pymatgen/pymatgen/apps/battery/insertion_battery.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | null | null | null | ComRISB/pyextern/pymatgen/pymatgen/apps/battery/insertion_battery.py | comscope/Comsuite | b80ca9f34c519757d337487c489fb655f7598cc2 | [
"BSD-3-Clause"
] | 11 | 2019-06-05T02:57:55.000Z | 2021-12-29T02:54:25.000Z | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
This module is used for analysis of materials with potential application as
intercalation batteries.
"""
__author__ = "Anubhav Jain, Shyue Ping Ong"
__co... | 38.932075 | 97 | 0.630804 | 19,740 | 0.956673 | 0 | 0 | 1,475 | 0.071484 | 0 | 0 | 7,049 | 0.341621 |
0aa0ecacfe2573f92054f8caab4ad37415452b90 | 7,202 | py | Python | python/GafferUI/ColorSwatchPlugValueWidget.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 561 | 2016-10-18T04:30:48.000Z | 2022-03-30T06:52:04.000Z | python/GafferUI/ColorSwatchPlugValueWidget.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 1,828 | 2016-10-14T19:01:46.000Z | 2022-03-30T16:07:19.000Z | python/GafferUI/ColorSwatchPlugValueWidget.py | ddesmond/gaffer | 4f25df88103b7893df75865ea919fb035f92bac0 | [
"BSD-3-Clause"
] | 120 | 2016-10-18T15:19:13.000Z | 2021-12-20T16:28:23.000Z | ##########################################################################
#
# Copyright (c) 2013, John Haddon. All rights reserved.
# Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that ... | 34.625 | 142 | 0.71494 | 4,657 | 0.646626 | 0 | 0 | 426 | 0.05915 | 0 | 0 | 2,525 | 0.350597 |
0aa3e139fa08c65698af3c065bdbf7e9c6759f7b | 1,946 | py | Python | NewsPaperD7(final)/NewsPaper/News/migrations/0001_initial.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | 1 | 2021-05-29T21:17:56.000Z | 2021-05-29T21:17:56.000Z | NewsPaperD6/NewsPaper/News/migrations/0001_initial.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | null | null | null | NewsPaperD6/NewsPaper/News/migrations/0001_initial.py | GregTMJ/django-files | dfd2c8da596522b77fb3dfc8089f0d287a94d53b | [
"MIT"
] | 1 | 2021-06-30T12:43:39.000Z | 2021-06-30T12:43:39.000Z | # Generated by Django 3.2 on 2021-04-15 18:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | 42.304348 | 153 | 0.611511 | 1,789 | 0.919322 | 0 | 0 | 0 | 0 | 0 | 0 | 244 | 0.125385 |
0aa3ebc9e71e06ddfc092d3a9a924b404661453e | 2,019 | py | Python | osh/cmd_exec_test.py | rhencke/oil | c40004544e47ee78cde1fcb22c672162b8eb2cd2 | [
"Apache-2.0"
] | 1 | 2019-01-25T01:15:51.000Z | 2019-01-25T01:15:51.000Z | osh/cmd_exec_test.py | rhencke/oil | c40004544e47ee78cde1fcb22c672162b8eb2cd2 | [
"Apache-2.0"
] | null | null | null | osh/cmd_exec_test.py | rhencke/oil | c40004544e47ee78cde1fcb22c672162b8eb2cd2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2016 Andy Chu. All rights reserved.
# 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 License at
#
# http://www.apache.org/licenses/LICENSE-2.0
"""
cmd_exec_test.py: Test... | 26.92 | 80 | 0.722635 | 1,246 | 0.617137 | 0 | 0 | 0 | 0 | 0 | 0 | 519 | 0.257058 |
0aa43893204c6ba098361aa19c39257195d9d726 | 425 | py | Python | blitz_api/migrations/0020_auto_20190529_1200.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 3 | 2019-10-22T00:16:49.000Z | 2021-07-15T07:44:43.000Z | blitz_api/migrations/0020_auto_20190529_1200.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 1,183 | 2018-04-19T18:40:30.000Z | 2022-03-31T21:05:05.000Z | blitz_api/migrations/0020_auto_20190529_1200.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 12 | 2018-04-17T19:16:42.000Z | 2022-01-27T00:19:59.000Z | # Generated by Django 2.0.8 on 2019-05-29 16:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blitz_api', '0019_merge_20190524_1719'),
]
operations = [
migrations.AlterField(
model_name='exportmedia',
name='fil... | 22.368421 | 83 | 0.607059 | 332 | 0.781176 | 0 | 0 | 0 | 0 | 0 | 0 | 124 | 0.291765 |
0aa458014e027a9ad777515ef9c0b45d42da4384 | 93 | py | Python | archiveis/__init__.py | palewire/archiveis | 11b2f1a4be4e7fbdcd52d874733cf20bc2d4f480 | [
"MIT"
] | 6 | 2021-11-09T11:00:56.000Z | 2022-01-14T03:44:52.000Z | archiveis/__init__.py | palewire/archiveis | 11b2f1a4be4e7fbdcd52d874733cf20bc2d4f480 | [
"MIT"
] | 4 | 2022-03-28T23:39:23.000Z | 2022-03-28T23:39:24.000Z | archiveis/__init__.py | palewire/archiveis | 11b2f1a4be4e7fbdcd52d874733cf20bc2d4f480 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from .api import capture
__version__ = "0.0.7"
__all__ = ("capture",)
| 15.5 | 24 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 37 | 0.397849 |
0aa50be39d8821cc01c657b693bc988aa6fe4578 | 5,265 | py | Python | temp/discrete_a2c_agent.py | linklab/link_rl | e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99 | [
"MIT"
] | null | null | null | temp/discrete_a2c_agent.py | linklab/link_rl | e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99 | [
"MIT"
] | null | null | null | temp/discrete_a2c_agent.py | linklab/link_rl | e3d3196dcd49fd71b45941e07fc0d8a27d1d8c99 | [
"MIT"
] | 1 | 2021-11-23T12:30:37.000Z | 2021-11-23T12:30:37.000Z | import numpy as np
import torch
import torch.nn.functional as F
from codes.d_agents.a0_base_agent import float32_preprocessor
from codes.d_agents.on_policy.on_policy_agent import OnPolicyAgent
from codes.e_utils import rl_utils, replay_buffer
from codes.d_agents.actions import ProbabilityActionSelector
from codes.e_ut... | 41.785714 | 128 | 0.688319 | 5,077 | 0.931731 | 0 | 0 | 0 | 0 | 0 | 0 | 910 | 0.167003 |
0aa514fa3ff45ce4defbd248dad8a995955378b1 | 188 | py | Python | edmundbotadder/cogs/webhook.py | thebeanogamer/edmund-botadder | 91e71ce572f3206b99e1f7a68d40bc37b947daf5 | [
"MIT"
] | null | null | null | edmundbotadder/cogs/webhook.py | thebeanogamer/edmund-botadder | 91e71ce572f3206b99e1f7a68d40bc37b947daf5 | [
"MIT"
] | null | null | null | edmundbotadder/cogs/webhook.py | thebeanogamer/edmund-botadder | 91e71ce572f3206b99e1f7a68d40bc37b947daf5 | [
"MIT"
] | null | null | null | from discord.ext.commands import Bot, Cog
class Webhook(Cog):
"""
Webhook functionality
"""
def __init__(self, bot: Bot):
self.bot = bot
def setup(bot):
bot.add_cog(Webhook(bot)) | 15.666667 | 41 | 0.696809 | 101 | 0.537234 | 0 | 0 | 0 | 0 | 0 | 0 | 31 | 0.164894 |
0aa6e5ef18ddd1cd84d84ba40a68b3ca12d3ecf7 | 789 | py | Python | apps/core/forms.py | allexvissoci/djangoecommerce | 645c05daa5f13c1e42184a7c6f534b9c260d280a | [
"CC0-1.0"
] | null | null | null | apps/core/forms.py | allexvissoci/djangoecommerce | 645c05daa5f13c1e42184a7c6f534b9c260d280a | [
"CC0-1.0"
] | null | null | null | apps/core/forms.py | allexvissoci/djangoecommerce | 645c05daa5f13c1e42184a7c6f534b9c260d280a | [
"CC0-1.0"
] | null | null | null | from django import forms
from django.core.mail import send_mail
from django.conf import settings
class ContactForm(forms.Form):
name = forms.CharField(label='Nome', required=True)
email = forms.EmailField(label='E-mail')
message = forms.CharField(label='Mensagem', widget=forms.Textarea(),
... | 32.875 | 75 | 0.595691 | 689 | 0.873257 | 0 | 0 | 0 | 0 | 0 | 0 | 101 | 0.12801 |
0aa6ee42edcf06446ba2b86d62dbe6a27542ef2e | 5,475 | py | Python | Fchat/Gui/AddFriendWidget.py | jamesaxl/FreeSnake | 3cef45165bce50d0f296e0d016b49d45aa31a653 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2018-11-15T22:55:01.000Z | 2020-01-01T21:21:07.000Z | Fchat/Gui/AddFriendWidget.py | jamesaxl/FreeSnake | 3cef45165bce50d0f296e0d016b49d45aa31a653 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2019-11-10T20:31:29.000Z | 2021-07-31T18:24:47.000Z | Fchat/Gui/AddFriendWidget.py | jamesaxl/FreeSnake | 3cef45165bce50d0f296e0d016b49d45aa31a653 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2018-11-15T22:55:17.000Z | 2018-11-15T22:55:17.000Z | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gio, Gtk, Gdk
class AddFriendWidget(Gtk.Box):
def __init__(self, main_window, fchat_prv, friend_list):
Gtk.Box.__init__(self, spacing=7, orientation = Gtk.Orientation.VERTICAL)
self.fchat_prv = fchat_prv
self.main_window... | 35.784314 | 107 | 0.667032 | 5,390 | 0.984475 | 0 | 0 | 0 | 0 | 0 | 0 | 260 | 0.047489 |
0aa7a0ee45227c9db1cfad5be465b9e3f1596fbf | 533 | py | Python | python01/game.py | liyan2013/hogwarts | 4b81d968b049a13cb2aa293d32c034ca3a30ee79 | [
"Apache-2.0"
] | null | null | null | python01/game.py | liyan2013/hogwarts | 4b81d968b049a13cb2aa293d32c034ca3a30ee79 | [
"Apache-2.0"
] | null | null | null | python01/game.py | liyan2013/hogwarts | 4b81d968b049a13cb2aa293d32c034ca3a30ee79 | [
"Apache-2.0"
] | null | null | null | import random
def game():
# 我的血量
my_hp = 1000
# 敌人的血量
enemy_hp = 1000
while True:
# 我受到随机的攻击,减少血量
my_hp = my_hp - random.randint(0, 50)
# 敌人收到随机的攻击,减少血量
enemy_hp = enemy_hp - random.randint(0, 50)
if my_hp <= 0:
# 如果我此时的血量<=0,则敌人赢了
... | 17.766667 | 51 | 0.463415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 273 | 0.39508 |
0aa7b0d58d58a3a7d6eb18bd016c9b5d7166087a | 681 | py | Python | petstore/api/api_response.py | andrii-grytsenko/io.swagger.petstore3.testing | 81a0a16d574d0c0664b297e7ba7ff2bb5a9a0c40 | [
"MIT"
] | null | null | null | petstore/api/api_response.py | andrii-grytsenko/io.swagger.petstore3.testing | 81a0a16d574d0c0664b297e7ba7ff2bb5a9a0c40 | [
"MIT"
] | null | null | null | petstore/api/api_response.py | andrii-grytsenko/io.swagger.petstore3.testing | 81a0a16d574d0c0664b297e7ba7ff2bb5a9a0c40 | [
"MIT"
] | null | null | null | from enum import Enum
class ApiResponseType(Enum):
error = "Error"
warning = "Warning"
info = "Info"
ok = "OK"
too_busy = "Too busy"
class ApiResponse:
def __init__(self, code: int, response_type: ApiResponseType, message):
self.code = code
self.type = response_type
s... | 25.222222 | 102 | 0.654919 | 650 | 0.954479 | 0 | 0 | 0 | 0 | 0 | 0 | 138 | 0.202643 |
0aa7bee18a6d9f952d21c773ce61328493a8b54b | 7,503 | py | Python | test/integration/component/test_browse_templates2.py | ycyun/ablestack-cloud | b7bd36a043e2697d05303246373988aa033c9229 | [
"Apache-2.0"
] | 1,131 | 2015-01-08T18:59:06.000Z | 2022-03-29T11:31:10.000Z | test/integration/component/test_browse_templates2.py | ycyun/ablestack-cloud | b7bd36a043e2697d05303246373988aa033c9229 | [
"Apache-2.0"
] | 5,908 | 2015-01-13T15:28:37.000Z | 2022-03-31T20:31:07.000Z | test/integration/component/test_browse_templates2.py | ycyun/ablestack-cloud | b7bd36a043e2697d05303246373988aa033c9229 | [
"Apache-2.0"
] | 1,083 | 2015-01-05T01:16:52.000Z | 2022-03-31T12:14:10.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 35.060748 | 144 | 0.620552 | 6,117 | 0.815274 | 0 | 0 | 3,295 | 0.439158 | 0 | 0 | 2,212 | 0.294815 |
0aa818d9912fa4e7124c341cc827cf2ddf2f640c | 11,501 | py | Python | tests/components/ozw/test_websocket_api.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 1 | 2021-07-08T20:09:55.000Z | 2021-07-08T20:09:55.000Z | tests/components/ozw/test_websocket_api.py | pcaston/core | e74d946cef7a9d4e232ae9e0ba150d18018cfe33 | [
"Apache-2.0"
] | 47 | 2021-02-21T23:43:07.000Z | 2022-03-31T06:07:10.000Z | tests/components/ozw/test_websocket_api.py | OpenPeerPower/core | f673dfac9f2d0c48fa30af37b0a99df9dd6640ee | [
"Apache-2.0"
] | null | null | null | """Test OpenZWave Websocket API."""
from unittest.mock import patch
from openzwavemqtt.const import (
ATTR_CODE_SLOT,
ATTR_LABEL,
ATTR_OPTIONS,
ATTR_POSITION,
ATTR_VALUE,
ValueType,
)
from openpeerpower.components.ozw.const import ATTR_CONFIG_PARAMETER
from openpeerpower.components.ozw.lock im... | 29.795337 | 87 | 0.629858 | 0 | 0 | 0 | 0 | 0 | 0 | 10,524 | 0.915051 | 2,522 | 0.219285 |
0aaa20d8b1879b4c1bc74cd5f86f6df85b43a7e8 | 30,173 | py | Python | tests/test_formatters.py | samueljacques-qc/notification-utils | 77f09cb2633ea5938a28ed50c21c7ae5075da7f2 | [
"MIT"
] | null | null | null | tests/test_formatters.py | samueljacques-qc/notification-utils | 77f09cb2633ea5938a28ed50c21c7ae5075da7f2 | [
"MIT"
] | null | null | null | tests/test_formatters.py | samueljacques-qc/notification-utils | 77f09cb2633ea5938a28ed50c21c7ae5075da7f2 | [
"MIT"
] | null | null | null | import pytest
from flask import Markup
from notifications_utils.formatters import (
unlink_govuk_escaped,
notify_email_markdown,
notify_letter_preview_markdown,
notify_plain_text_email_markdown,
sms_encode,
formatted_list,
strip_dvla_markup,
strip_pipes,
escape_html,
remove_whit... | 28.094041 | 190 | 0.545388 | 0 | 0 | 0 | 0 | 25,918 | 0.855803 | 0 | 0 | 13,585 | 0.448572 |
0aaa92e8b56443a2b167621484f9881042d7391b | 983 | py | Python | ProgramFlow/functions/banner.py | kumarvgit/python3 | 318c5e7503fafc9c60082fa123e2930bd82a4ec9 | [
"MIT"
] | null | null | null | ProgramFlow/functions/banner.py | kumarvgit/python3 | 318c5e7503fafc9c60082fa123e2930bd82a4ec9 | [
"MIT"
] | null | null | null | ProgramFlow/functions/banner.py | kumarvgit/python3 | 318c5e7503fafc9c60082fa123e2930bd82a4ec9 | [
"MIT"
] | null | null | null | def banner_text(text):
screen_width = 80
if len(text) > screen_width - 4:
print("EEK!!")
print("THE TEXT IS TOO LONG TO FIT IN THE SPECIFIED WIDTH")
if text == "*":
print("*" * screen_width)
else:
centred_text = text.center(screen_width - 4)
output_string = "**{0... | 30.71875 | 67 | 0.66531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 427 | 0.434385 |
0aab53b2cca857c20d172807e1c32d755b133366 | 153 | py | Python | Adafruit_BluefruitLE/interfaces/__init__.py | acoomans/Adafruit_Python_BluefruitLE | 34fc6f596371b961628369d78ce836950514062f | [
"MIT"
] | 415 | 2015-08-19T00:07:10.000Z | 2022-03-14T13:35:45.000Z | Adafruit_BluefruitLE/interfaces/__init__.py | acoomans/Adafruit_Python_BluefruitLE | 34fc6f596371b961628369d78ce836950514062f | [
"MIT"
] | 51 | 2015-09-30T14:42:01.000Z | 2020-11-02T21:12:26.000Z | Adafruit_BluefruitLE/interfaces/__init__.py | acoomans/Adafruit_Python_BluefruitLE | 34fc6f596371b961628369d78ce836950514062f | [
"MIT"
] | 174 | 2015-10-06T07:16:51.000Z | 2022-03-14T13:35:50.000Z | from .provider import Provider
from .adapter import Adapter
from .device import Device
from .gatt import GattService, GattCharacteristic, GattDescriptor
| 30.6 | 65 | 0.843137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0aab7620f824873c7b572e13e03aa334f91e254d | 143 | py | Python | axju/generic/__init__.py | axju/axju | de0b3d9c63b7cca4ed16fb50e865c159b4377953 | [
"MIT"
] | null | null | null | axju/generic/__init__.py | axju/axju | de0b3d9c63b7cca4ed16fb50e865c159b4377953 | [
"MIT"
] | null | null | null | axju/generic/__init__.py | axju/axju | de0b3d9c63b7cca4ed16fb50e865c159b4377953 | [
"MIT"
] | null | null | null | from axju.generic.basic import BasicWorker
from axju.generic.execution import ExecutionWorker
from axju.generic.template import TemplateWorker
| 35.75 | 50 | 0.874126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |