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
45e5abbbfec147ed3e87c908305dea56797ae5b0
461
py
Python
setup.py
AwsLambdaContinuousDelivery/AwsLambdaContinuousDeliveryCli
f924757bd51e6ebb3e7565166c617921cb73c9f6
[ "MIT" ]
null
null
null
setup.py
AwsLambdaContinuousDelivery/AwsLambdaContinuousDeliveryCli
f924757bd51e6ebb3e7565166c617921cb73c9f6
[ "MIT" ]
null
null
null
setup.py
AwsLambdaContinuousDelivery/AwsLambdaContinuousDeliveryCli
f924757bd51e6ebb3e7565166c617921cb73c9f6
[ "MIT" ]
null
null
null
from setuptools import setup setup( name = "awslambdacicd-cli", version = "0.1.2", author = "Janos Potecki", license = "MIT", packages = [ "awslambdacontinuousdelivery.cli", "awslambdacontinuousdelivery.cli.templates.python" ], entry_points = { ...
27.117647
78
0.548807
0
0
0
0
0
0
0
0
209
0.453362
afd77d47937da5ad76e9e4fe3eba28dc639a3d40
3,587
py
Python
tools/WBDSP/UI_InputSignal.py
ptracton/wb_dsp
73586b10141952e26bbbfb2213b2ccaa1ddbcd39
[ "MIT" ]
null
null
null
tools/WBDSP/UI_InputSignal.py
ptracton/wb_dsp
73586b10141952e26bbbfb2213b2ccaa1ddbcd39
[ "MIT" ]
null
null
null
tools/WBDSP/UI_InputSignal.py
ptracton/wb_dsp
73586b10141952e26bbbfb2213b2ccaa1ddbcd39
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from PyQt4 import QtGui import Signal class UI_InputSignal(QtGui.QDialog): """ """ def __init__(self, parent=None): super(UI_InputSignal, self).__init__(parent) vbox = QtGui.QVBoxLayout() label = QtGui.QLabel("Input Signal") vbox.addWidget(label) ...
39.417582
70
0.681628
3,519
0.981043
0
0
0
0
0
0
262
0.073042
afd7c2fda2691bfb467438d74810d6aea8783977
1,790
py
Python
python/tests/test_stacks.py
daveeS987/data-structures-and-algorithms
e2fc060a558bdf8696331ddeaf317259a56e36a3
[ "MIT" ]
null
null
null
python/tests/test_stacks.py
daveeS987/data-structures-and-algorithms
e2fc060a558bdf8696331ddeaf317259a56e36a3
[ "MIT" ]
null
null
null
python/tests/test_stacks.py
daveeS987/data-structures-and-algorithms
e2fc060a558bdf8696331ddeaf317259a56e36a3
[ "MIT" ]
1
2021-04-06T02:03:31.000Z
2021-04-06T02:03:31.000Z
import pytest from stacks.stacks import Stack def test_Can_successfully_instantiate_an_empty_stack(): new_stack = Stack() actual = new_stack.top expected = None assert actual == expected def test_Can_successfully_push_onto_a_stack(): new_stack = Stack() new_stack.push("a") actual = new_...
22.375
72
0.694413
0
0
0
0
409
0.228492
0
0
252
0.140782
afd810b8d49ea85961df9d02610ae8c6179f739e
1,941
py
Python
api_v1/api_generate_token.py
China-jp/leancloud-medical
18b3cdf6474cf8c667c546a898285318c92d2df9
[ "MIT" ]
null
null
null
api_v1/api_generate_token.py
China-jp/leancloud-medical
18b3cdf6474cf8c667c546a898285318c92d2df9
[ "MIT" ]
null
null
null
api_v1/api_generate_token.py
China-jp/leancloud-medical
18b3cdf6474cf8c667c546a898285318c92d2df9
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from flask.ext.restful import abort from leancloud.errors import LeanCloudError from leancloud.query import Query from leancloud.user import User from handlers import request_validator from models.auth_token import AuthToken import datetime import uuid __author__ = 'Panmax' from flask import re...
35.944444
125
0.563112
1,529
0.776536
0
0
1,456
0.739462
0
0
284
0.144236
afd967c3188fbb324693e3925d0624ce1f560347
1,044
py
Python
ichnaea/alembic/versions/cad2875fd8cb_extend_api_keys.py
crankycoder/ichnaea
fb54000e92c605843b7a41521e36fd648c11ae94
[ "Apache-2.0" ]
1
2018-01-18T16:02:43.000Z
2018-01-18T16:02:43.000Z
ichnaea/alembic/versions/cad2875fd8cb_extend_api_keys.py
crankycoder/ichnaea
fb54000e92c605843b7a41521e36fd648c11ae94
[ "Apache-2.0" ]
null
null
null
ichnaea/alembic/versions/cad2875fd8cb_extend_api_keys.py
crankycoder/ichnaea
fb54000e92c605843b7a41521e36fd648c11ae94
[ "Apache-2.0" ]
1
2018-01-19T17:56:48.000Z
2018-01-19T17:56:48.000Z
"""Extend api keys with sample_store columns. Revision ID: cad2875fd8cb Revises: 385f842b2526 Create Date: 2017-02-22 11:52:47.837989 """ import logging from alembic import op import sqlalchemy as sa log = logging.getLogger('alembic.migration') revision = 'cad2875fd8cb' down_revision = '385f842b2526' def upgrade...
24.27907
63
0.672414
0
0
0
0
0
0
0
0
642
0.614943
afdbf4b87bacf33c9e03d4659cab0141ad61a3a5
1,870
py
Python
sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/tracked_resource_modification_details_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/tracked_resource_modification_details_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
sdk/policyinsights/azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/tracked_resource_modification_details_py3.py
tzhanl/azure-sdk-for-python
18cd03f4ab8fd76cc0498f03e80fbc99f217c96e
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
37.4
82
0.642781
1,354
0.724064
0
0
0
0
0
0
1,364
0.729412
afdccd4d644296589a91c7378dac649e2358df5a
11,059
py
Python
backUp/jd_jxz.py
ZelZhu/faker3
4d1f2aff532211da9f356119c9f8273c3d0796dd
[ "MIT" ]
68
2021-11-19T09:28:04.000Z
2022-03-25T07:06:01.000Z
backUp/jd_jxz.py
ZelZhu/faker3
4d1f2aff532211da9f356119c9f8273c3d0796dd
[ "MIT" ]
2
2022-03-09T12:26:22.000Z
2022-03-10T03:00:49.000Z
backUp/jd_jxz.py
ZelZhu/faker3
4d1f2aff532211da9f356119c9f8273c3d0796dd
[ "MIT" ]
83
2021-11-19T08:27:05.000Z
2022-03-23T07:32:01.000Z
#!/usr/bin/python3 # -*- coding: utf8 -*- """ cron: 30 9 * * * new Env('集勋章'); 活动入口:东东农场->东东乐园(点大风车)->集勋章 500豆 """ # 是否开启通知,Ture:发送通知,False:不发送 isNotice = True # UA 可自定义你的, 默认随机生成UA。 UserAgent = '' import asyncio import json import random import os, re, sys try: import requests except Exception as e: print(...
31.962428
353
0.559996
1,684
0.142314
0
0
0
0
7,221
0.610243
5,201
0.439534
afdcedd441d4f48bbd1a4d60e657e73de3e6409b
1,726
py
Python
SRTM/convert_hgt.py
iDigBio/guoda-datasets
abcba7b03b27e641cd96825dde64f2180a65d978
[ "MIT" ]
6
2016-06-24T09:47:22.000Z
2018-04-10T20:04:58.000Z
SRTM/convert_hgt.py
iDigBio/guoda-datasets
abcba7b03b27e641cd96825dde64f2180a65d978
[ "MIT" ]
14
2016-06-17T20:29:21.000Z
2019-06-13T13:17:21.000Z
SRTM/convert_hgt.py
iDigBio/guoda-datasets
abcba7b03b27e641cd96825dde64f2180a65d978
[ "MIT" ]
null
null
null
from __future__ import division, absolute_import, print_function import os import csv import re import sys import numpy as np import multiprocessing re_split = re.compile("([NS])(\d+)([EW])(\d+)") SAMPLES = 1201 def read_hgt_file(f): fname = os.path.split(f)[-1][:-4].upper() with open(f, "rb") as hgt_data: ...
25.382353
98
0.479722
0
0
0
0
0
0
0
0
98
0.056779
afe3dfd5642f95aed4d378dd2cc6de57d8567659
5,361
py
Python
rtsc_correlation.py
Bushell-lab/StructureFold2
bdeb7643e15aec92c5c56f6285bf7ed7f2dabe2c
[ "MIT" ]
13
2017-10-09T21:55:53.000Z
2021-12-13T03:07:38.000Z
rtsc_correlation.py
Bushell-lab/StructureFold2
bdeb7643e15aec92c5c56f6285bf7ed7f2dabe2c
[ "MIT" ]
4
2019-05-21T03:04:42.000Z
2020-11-07T05:19:52.000Z
rtsc_correlation.py
Bushell-lab/StructureFold2
bdeb7643e15aec92c5c56f6285bf7ed7f2dabe2c
[ "MIT" ]
9
2019-07-11T19:42:56.000Z
2020-01-30T17:01:39.000Z
#!/usr/bin/env python ''' Reformats <.rtsc> files such that correlation may be easily caluclated, either genome-wide or on a per transcript basis. Output is a <.csv>. You may filter output by using a coverage overlap. where you only want to get the correlation between transcripts mutually above a certain threshold. Yo...
40.613636
149
0.656594
0
0
0
0
0
0
0
0
1,595
0.297519
afe45f4906350be6c265277d8a549116790aeb73
895
py
Python
iv/Leetcode/easy/530_min_absolute_diff_binary_search_tree.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
2
2020-09-19T22:28:15.000Z
2020-10-03T01:44:53.000Z
iv/Leetcode/easy/530_min_absolute_diff_binary_search_tree.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
null
null
null
iv/Leetcode/easy/530_min_absolute_diff_binary_search_tree.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
1
2020-10-03T01:43:30.000Z
2020-10-03T01:43:30.000Z
class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def getMinimumDifference(self, root: TreeNode) -> int: nodes = [] def traversal(root, nodes: list): if not root: ...
24.189189
58
0.532961
763
0.852514
0
0
0
0
0
0
14
0.015642
afe5ca73833ae0ee033f6a28eef4827d929c8ec5
3,744
py
Python
test_random_bscs.py
lordofhyphens/cpp-pysim
ac7532ab781cffe447e7e50bd2cd3d80c619eb0e
[ "MIT" ]
null
null
null
test_random_bscs.py
lordofhyphens/cpp-pysim
ac7532ab781cffe447e7e50bd2cd3d80c619eb0e
[ "MIT" ]
null
null
null
test_random_bscs.py
lordofhyphens/cpp-pysim
ac7532ab781cffe447e7e50bd2cd3d80c619eb0e
[ "MIT" ]
null
null
null
from trojan import Trojan, parasite from cktnet import read_bench_file, write_bench_file, get_partitions from random_bsc_partition import repartition_ckt import copy import argparse import random import os.path as path try: import cPickle as pickle except ImportError: import pickle def randbits(seed=None): r...
52
138
0.673611
0
0
96
0.025641
0
0
0
0
997
0.266293
afe5cfafb8008bc831b95a3a68e90c4bb129626a
2,964
py
Python
barbante/utils/tests/test_text.py
hypermindr/barbante
40056e9e4f4564461294b3a1d9afc855062350ac
[ "MIT" ]
10
2015-06-01T21:48:16.000Z
2021-08-20T20:18:48.000Z
barbante/utils/tests/test_text.py
hypermindr/barbante
40056e9e4f4564461294b3a1d9afc855062350ac
[ "MIT" ]
null
null
null
barbante/utils/tests/test_text.py
hypermindr/barbante
40056e9e4f4564461294b3a1d9afc855062350ac
[ "MIT" ]
2
2015-06-03T21:54:32.000Z
2015-11-24T23:13:05.000Z
""" Test module for barbante.text. """ import nose.tools import barbante.utils.text as text def test_calculate_tf_en(): """ Tests calculate_tf for English contents. """ language = "english" contents = "Cooks who don't love cooking don't cook well." results = text.calculate_tf(language, contents)...
36.146341
89
0.610999
0
0
0
0
0
0
0
0
1,132
0.381788
afe5dba68241cb5dd2453af805ca160811228622
3,365
py
Python
YouTubeDownloader/views.py
gabzin/django-ytdownloader
e59e728aeac459b73fd4fb9ca663560855af19fd
[ "MIT" ]
27
2021-11-18T22:01:26.000Z
2022-01-08T14:10:32.000Z
YouTubeDownloader/views.py
gabzin/django-ytdownloader
e59e728aeac459b73fd4fb9ca663560855af19fd
[ "MIT" ]
1
2021-11-21T13:28:00.000Z
2021-11-21T15:05:42.000Z
YouTubeDownloader/views.py
gabzin/django-ytdownloader
e59e728aeac459b73fd4fb9ca663560855af19fd
[ "MIT" ]
5
2021-11-20T07:16:54.000Z
2021-12-16T10:44:38.000Z
#Imports from django.http.response import HttpResponse from django.shortcuts import render from django.contrib import messages from .forms import DownloadForm from pytube import YouTube from math import pow, floor, log from datetime import timedelta from requests import get # Your YouTube V3 Api Key KEY = "" # Conver...
37.388889
142
0.581278
0
0
0
0
0
0
0
0
770
0.228826
afe75e37643caa6a9af81c6d249b336b0e5aca17
45,429
py
Python
fhirzeug/fhirspec.py
skalarsystems/fhir-zeug
19973438823c41247e3efb5b1d35e8942ae01fdb
[ "Apache-2.0" ]
10
2020-04-23T18:13:13.000Z
2020-11-25T07:45:26.000Z
fhirzeug/fhirspec.py
skalarsystems/fhir-zeug
19973438823c41247e3efb5b1d35e8942ae01fdb
[ "Apache-2.0" ]
71
2020-05-20T09:11:22.000Z
2020-10-26T14:01:03.000Z
fhirzeug/fhirspec.py
skalarsystems/fhir-zeug
19973438823c41247e3efb5b1d35e8942ae01fdb
[ "Apache-2.0" ]
1
2020-06-03T11:55:47.000Z
2020-06-03T11:55:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import io import os import re import json import datetime from pathlib import Path import stringcase # type: ignore from typing import Any, Dict, List, Optional, Union, TYPE_CHECKING from .logger import logger from . import fhirclass if TYPE_CHECKING: from .generato...
36.964199
173
0.585133
44,888
0.98807
0
0
3,229
0.071076
0
0
11,540
0.254017
afeb8ca338393a94ffd02cdee2ec1716df4a8337
731
py
Python
hutils/tests.py
dreamplatform/haltu-utils
6308d032791b09e5a46bdb98cfc4d99c96da96d7
[ "BSD-3-Clause" ]
null
null
null
hutils/tests.py
dreamplatform/haltu-utils
6308d032791b09e5a46bdb98cfc4d99c96da96d7
[ "BSD-3-Clause" ]
null
null
null
hutils/tests.py
dreamplatform/haltu-utils
6308d032791b09e5a46bdb98cfc4d99c96da96d7
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.db import models from hutils.managers import QuerySetManager class TestModel(models.Model): i = models.IntegerField() objects = QuerySetManager() class QuerySet(models.query.QuerySet): def less_than(self, c): return self.filter(id__lt=c) class QuerySetM...
24.366667
74
0.740082
617
0.844049
0
0
0
0
0
0
70
0.095759
afebe6f2ea49a4d54ad87a769c40e84344c8632a
109
py
Python
src/lookup_merge.py
alphanexustech/role-directory-proto
27b5bbf7a76022a97057263398c97f9462fd3fff
[ "MIT" ]
null
null
null
src/lookup_merge.py
alphanexustech/role-directory-proto
27b5bbf7a76022a97057263398c97f9462fd3fff
[ "MIT" ]
2
2022-03-24T15:21:38.000Z
2022-03-25T21:33:34.000Z
src/lookup_merge.py
alphanexustech/role-directory-proto
27b5bbf7a76022a97057263398c97f9462fd3fff
[ "MIT" ]
null
null
null
def merge_role_json(files): merged = {} for i in files: merged.update(i) return merged
13.625
27
0.59633
0
0
0
0
0
0
0
0
0
0
afecd187c7058a489009b41d8ff819203ecdac2f
1,868
py
Python
src/sims4communitylib/dialogs/_common_ui_dialog_text_input_ok_cancel.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
118
2019-08-31T04:33:18.000Z
2022-03-28T21:12:14.000Z
src/sims4communitylib/dialogs/_common_ui_dialog_text_input_ok_cancel.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
15
2019-12-05T01:29:46.000Z
2022-02-18T17:13:46.000Z
src/sims4communitylib/dialogs/_common_ui_dialog_text_input_ok_cancel.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
28
2019-09-07T04:11:05.000Z
2022-02-07T18:31:40.000Z
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from typing import Tuple, Any, Callable from protocolbuffer...
36.627451
125
0.697002
1,311
0.70182
0
0
0
0
0
0
361
0.193255
afee559bb9619fc76eddbb0de5034b9cc836e90b
1,923
py
Python
build_an_ai_startup_demo/app/views/main.py
bbueno5000/BuildAnAIStartUpDemo
f70371802a2546530c34b7f04e2b644cd1faec8a
[ "MIT" ]
null
null
null
build_an_ai_startup_demo/app/views/main.py
bbueno5000/BuildAnAIStartUpDemo
f70371802a2546530c34b7f04e2b644cd1faec8a
[ "MIT" ]
null
null
null
build_an_ai_startup_demo/app/views/main.py
bbueno5000/BuildAnAIStartUpDemo
f70371802a2546530c34b7f04e2b644cd1faec8a
[ "MIT" ]
null
null
null
""" DOCSTRING """ import app import flask import keras import numpy import os import random @app.app.route('/') #disease_list = [ # 'Atelectasis', # 'Consolidation', # 'Infiltration', # 'Pneumothorax', # 'Edema', # 'Emphysema', # 'Fibrosis', # 'Effusion', # 'Pneumonia', # 'Pleural_Thicke...
27.869565
86
0.658346
0
0
0
0
1,819
0.945918
0
0
494
0.25689
aff0af697d2bc3a3686bb3de8766a23a8b175f26
437
py
Python
section4/summarychallenge.py
jgyy/python-masterclass
20b3dd49b2b2d3a9dccba0b0c52a261828c6cfd5
[ "Unlicense" ]
null
null
null
section4/summarychallenge.py
jgyy/python-masterclass
20b3dd49b2b2d3a9dccba0b0c52a261828c6cfd5
[ "Unlicense" ]
null
null
null
section4/summarychallenge.py
jgyy/python-masterclass
20b3dd49b2b2d3a9dccba0b0c52a261828c6cfd5
[ "Unlicense" ]
null
null
null
""" Challenge to choose options from lists """ CHOICE = "-" while CHOICE != "0": if CHOICE in "12345": print("You chose {}".format(CHOICE)) else: print("Please choose your option from the list below:") print("1:\tLearn Python") print("2:\tLearn Java") print("3:\tGo Swimmi...
24.277778
63
0.553776
0
0
0
0
0
0
0
0
214
0.489703
aff5059c5098386517f47226d8e0e39141c4a8f9
3,001
py
Python
MGCosmoPop/posteriors/prior.py
nicoborghi/MGCosmoPop
ebf07744caed1ac6694e7c750c1147ac30442fe5
[ "BSD-3-Clause" ]
4
2022-01-31T02:00:30.000Z
2022-03-22T08:00:00.000Z
MGCosmoPop/posteriors/prior.py
nicoborghi/MGCosmoPop
ebf07744caed1ac6694e7c750c1147ac30442fe5
[ "BSD-3-Clause" ]
null
null
null
MGCosmoPop/posteriors/prior.py
nicoborghi/MGCosmoPop
ebf07744caed1ac6694e7c750c1147ac30442fe5
[ "BSD-3-Clause" ]
5
2021-12-13T03:33:48.000Z
2022-03-22T08:00:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 4 11:31:43 2021 @author: Michi """ import numpy as np class Prior(object): ''' Class implementing the prior. At the moment it only supports disjoint priors. contains a method logPrior that returns the sum of log priors for each varia...
30.313131
94
0.539154
2,854
0.951016
0
0
0
0
0
0
1,426
0.475175
aff87a478cf339ba0cf9786a79d5da65b9d037b5
682
py
Python
pid_discreto.py
lodaniel/teoria_de_controle
97d9350f1c5534e11bfc891f32ec604d6a7ace33
[ "Apache-2.0" ]
null
null
null
pid_discreto.py
lodaniel/teoria_de_controle
97d9350f1c5534e11bfc891f32ec604d6a7ace33
[ "Apache-2.0" ]
null
null
null
pid_discreto.py
lodaniel/teoria_de_controle
97d9350f1c5534e11bfc891f32ec604d6a7ace33
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt tfinal = 10 T = 0.1 N = int(tfinal/T) t = np.linspace(0,tfinal,N) t[1] = T t[2] = 2*T y = np.linspace(0,tfinal,N) y[1] = 0 y[2] = 0 u = np.linspace(0,tfinal,N) u[1] = 0 u[2] = 0 r = np.linspace(0,tfinal,N) r[1] = 1 r[2] = 1 e = np.linspace(0,tfinal,N) e[1] = r[1] - y[1...
18.944444
51
0.526393
0
0
0
0
0
0
0
0
16
0.02346
aff8c4003c708639ad7c4f72b3b09d1135fb4817
4,058
py
Python
mmhuman3d/core/visualization/renderer/torch3d_renderer/depth_renderer.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
472
2021-12-03T03:12:55.000Z
2022-03-31T01:33:13.000Z
mmhuman3d/core/visualization/renderer/torch3d_renderer/depth_renderer.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
127
2021-12-03T05:00:14.000Z
2022-03-31T13:47:33.000Z
mmhuman3d/core/visualization/renderer/torch3d_renderer/depth_renderer.py
ykk648/mmhuman3d
26af92bcf6abbe1855e1a8a48308621410f9c047
[ "Apache-2.0" ]
37
2021-12-03T03:23:22.000Z
2022-03-31T08:41:58.000Z
from typing import Iterable, Optional, Tuple, Union import torch from pytorch3d.structures import Meshes from mmhuman3d.core.cameras import MMCamerasBase from .base_renderer import BaseRenderer from .builder import RENDERER, build_shader from .utils import normalize @RENDERER.register_module( name=['Depth', 'de...
36.558559
79
0.575899
3,695
0.910547
0
0
3,786
0.932972
0
0
1,541
0.379744
aff8e664de9e8a592be6d93982dd50a72c78e151
7,131
py
Python
bot.py
0xsmoos/PMD
049ef60f9a4c44b635fc4dc88c5096685d78b5b7
[ "MIT" ]
3
2021-04-22T17:00:05.000Z
2021-08-19T05:33:37.000Z
bot.py
0xsmoos/PMD
049ef60f9a4c44b635fc4dc88c5096685d78b5b7
[ "MIT" ]
4
2021-04-24T10:46:03.000Z
2022-01-06T14:36:00.000Z
bot.py
0xsmoos/PMD
049ef60f9a4c44b635fc4dc88c5096685d78b5b7
[ "MIT" ]
1
2021-05-06T17:12:52.000Z
2021-05-06T17:12:52.000Z
# -*- coding: utf-8 -*- # filename : bot.py # description : Discord bot interface for interacting with the server # author : LikeToAccess # email : liketoaccess@protonmail.com # date : 08-01-2021 # version : v2.0 # usage : python main.py # notes ...
29.345679
98
0.680409
0
0
0
0
4,392
0.615902
5,266
0.738466
2,377
0.333333
aff947dc66ce74ed37d4f50fea9cb7f0759c0e8a
152
py
Python
python/testData/pyi/type/comparisonOperatorOverloads/lib.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/pyi/type/comparisonOperatorOverloads/lib.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/pyi/type/comparisonOperatorOverloads/lib.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class MyClass: def __init__(self, *args): pass def __lt__(self, other): pass def __gt__(self, other): return True
15.2
30
0.559211
151
0.993421
0
0
0
0
0
0
0
0
affae23e9d7b59854ff8ab5e58706d9252734abf
12,277
py
Python
rq1and3_localness/happiness/compute_happiness.py
joh12041/chi-2016-localness
a7048015aac417217d23fccb5f49971922af6322
[ "MIT" ]
4
2016-11-06T21:55:51.000Z
2019-07-23T19:39:00.000Z
rq1and3_localness/happiness/compute_happiness.py
joh12041/chi-2016-localness
a7048015aac417217d23fccb5f49971922af6322
[ "MIT" ]
null
null
null
rq1and3_localness/happiness/compute_happiness.py
joh12041/chi-2016-localness
a7048015aac417217d23fccb5f49971922af6322
[ "MIT" ]
null
null
null
"""RQ3: Happiness algorithm as impacted by localness""" import csv import os import argparse import sys from collections import OrderedDict import numpy from scipy.stats import spearmanr from scipy.stats import wilcoxon sys.path.append("./utils") import bots LOCALNESS_METRICS = ['nday','plurality'] HAPPINESS_EVALU...
49.108
194
0.564144
0
0
0
0
0
0
0
0
3,189
0.259754
affb5675ca38a4b1d3c3c74ee6838fd7720f8076
4,239
py
Python
rubix-stress/workload_runner.py
raunaqmorarka/presto-rubix
3149b6385f6685f5fe934551126b6593f59da9c8
[ "Apache-2.0" ]
162
2016-07-04T05:03:52.000Z
2022-03-29T03:31:59.000Z
rubix-stress/workload_runner.py
raunaqmorarka/presto-rubix
3149b6385f6685f5fe934551126b6593f59da9c8
[ "Apache-2.0" ]
381
2016-07-25T04:09:36.000Z
2022-02-11T11:39:27.000Z
rubix-stress/workload_runner.py
raunaqmorarka/presto-rubix
3149b6385f6685f5fe934551126b6593f59da9c8
[ "Apache-2.0" ]
64
2016-07-13T05:47:14.000Z
2022-03-10T09:03:35.000Z
import logging import random import time import threading from threading import Event from patched_commands import PrestoCommand class WorkloadRunner(threading.Thread): log = logging.getLogger(__name__) def __init__(self, exitEvent, silencePeriodEvent, tid, queries, cluster_label): threading.Thread...
39.616822
137
0.624912
4,104
0.968153
0
0
0
0
0
0
1,008
0.237792
afff826c89cf84dbe2b809d9f7fa9ddb7ae851a3
86
py
Python
chainerltr/evaluation/__init__.py
rjagerman/chainerltr
1fdb6a0a304a465d27149011951a01a5e3de4bbc
[ "MIT" ]
1
2019-04-10T03:18:23.000Z
2019-04-10T03:18:23.000Z
chainerltr/evaluation/__init__.py
rjagerman/chainerltr
1fdb6a0a304a465d27149011951a01a5e3de4bbc
[ "MIT" ]
null
null
null
chainerltr/evaluation/__init__.py
rjagerman/chainerltr
1fdb6a0a304a465d27149011951a01a5e3de4bbc
[ "MIT" ]
null
null
null
from chainerltr.evaluation.ndcg import ndcg from chainerltr.evaluation.dcg import dcg
28.666667
43
0.860465
0
0
0
0
0
0
0
0
0
0
afffc8cbd42fd63be0b6fa9742ef2ac0df2a388d
2,509
py
Python
avalanche/benchmarks/datasets/mini_imagenet/mini_imagenet_data.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
1
2021-09-15T13:57:27.000Z
2021-09-15T13:57:27.000Z
avalanche/benchmarks/datasets/mini_imagenet/mini_imagenet_data.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
null
null
null
avalanche/benchmarks/datasets/mini_imagenet/mini_imagenet_data.py
coreylowman/avalanche
9c1e7765f1577c400ec0c57260221bcffd9566a2
[ "MIT" ]
null
null
null
from typing import List, Tuple, Dict from avalanche.benchmarks.datasets.imagenet_data import ( IMAGENET_TORCHVISION_WNID_TO_IDX, IMAGENET_TORCHVISION_CLASSES, ) MINI_IMAGENET_WNIDS: List[str] = [ "n02110341", "n01930112", "n04509417", "n04067472", "n04515003", "n02120079", "n039246...
19.3
78
0.606218
0
0
0
0
0
0
0
0
1,199
0.47788
b3016f8c0af4fa861d8eee4ecfb546c16c631c0a
465
py
Python
scripts/09.py
hstern2/pet-fish-eric
38cf51613d8a4256bc0c3248fb5c114b83307972
[ "MIT" ]
null
null
null
scripts/09.py
hstern2/pet-fish-eric
38cf51613d8a4256bc0c3248fb5c114b83307972
[ "MIT" ]
null
null
null
scripts/09.py
hstern2/pet-fish-eric
38cf51613d8a4256bc0c3248fb5c114b83307972
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ### while loops #a = 10 #while a <= 100000: # a *= 10 # print(a) #print('this is no longer in the loop because not indented') #a = 10 #while a > 0: # print(a) # if a == 5: # break # a -= 1 #a = 10 #while a > 0: # a -= 1 # if a % 2 == 0: # continue # skip if ...
14.090909
60
0.464516
0
0
0
0
0
0
0
0
433
0.931183
b3025eca2b7a4625acad785a4ee0a16f48b01f83
126
py
Python
car/consumers.py
stefangeorg/town-car
81ca81eed8912911527c3cb6dc521d000482b0fd
[ "Apache-2.0" ]
null
null
null
car/consumers.py
stefangeorg/town-car
81ca81eed8912911527c3cb6dc521d000482b0fd
[ "Apache-2.0" ]
null
null
null
car/consumers.py
stefangeorg/town-car
81ca81eed8912911527c3cb6dc521d000482b0fd
[ "Apache-2.0" ]
null
null
null
def ws_message(message): message.reply_channel.send({ "text": "Just for fun %s" % message.content['text'], })
25.2
60
0.611111
0
0
0
0
0
0
0
0
29
0.230159
b303231d165ddfd087f7fd53fc036372e39d8b6b
1,991
py
Python
core/tests/test_trezor.crypto.rfc6979.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
null
null
null
core/tests/test_trezor.crypto.rfc6979.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
1
2019-02-08T00:22:42.000Z
2019-02-13T09:41:54.000Z
core/tests/test_trezor.crypto.rfc6979.py
Kayuii/trezor-crypto
6556616681a4e2d7e18817e8692d4f6e041dee01
[ "MIT" ]
2
2019-02-07T23:57:09.000Z
2020-10-21T07:07:27.000Z
from common import * from trezor.crypto import rfc6979 from trezor.crypto.hashlib import sha256 class TestCryptoRfc6979(unittest.TestCase): def test_vectors(self): vectors = [ ("c9afa9d845ba75166b5c215767b1d6934e50c3db36e89b127b8a622b120f6721", "sample", "a6e3c57dd...
48.560976
223
0.719237
1,842
0.925163
0
0
0
0
0
0
1,284
0.644902
b30543d6bc96edaac43450d48578207ded1283f4
2,585
py
Python
src/commands/debug.py
mdabessa/discordbot
37f605c5218f55365d4a82914ba604f8c62266e3
[ "MIT" ]
5
2021-03-11T01:47:12.000Z
2022-01-18T05:33:18.000Z
src/commands/debug.py
mdabessa/discordbot
37f605c5218f55365d4a82914ba604f8c62266e3
[ "MIT" ]
null
null
null
src/commands/debug.py
mdabessa/discordbot
37f605c5218f55365d4a82914ba604f8c62266e3
[ "MIT" ]
null
null
null
import modules.database as db import modules.entity as entity category = 'Depuração' entity.Command.newcategory(category, 'Depuração',is_visible=False) async def exe(message, commandpar, bot): if commandpar != None: cont = commandpar.split() text = f'Executando: {cont[0]}' if le...
41.031746
191
0.677369
0
0
0
0
0
0
1,578
0.608327
710
0.273709
b30ec77ef09bdffed154fe1328bf919b56c53f19
2,877
py
Python
tests/test_amqp_transport.py
0x1EE7/tomodachi
8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83
[ "MIT" ]
null
null
null
tests/test_amqp_transport.py
0x1EE7/tomodachi
8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83
[ "MIT" ]
null
null
null
tests/test_amqp_transport.py
0x1EE7/tomodachi
8147b16d8be19b80b3bd7c5d8ed21c9863eaaa83
[ "MIT" ]
null
null
null
import os import signal import pytest from typing import Any from tomodachi.transport.amqp import AmqpTransport, AmqpException from run_test_service_helper import start_service def test_routing_key(monkeypatch: Any) -> None: routing_key = AmqpTransport.get_routing_key('test.topic', {}) assert routing_key == '...
42.308824
138
0.75113
0
0
0
0
0
0
0
0
949
0.329857
b30f1e158c5e65ac948bbdec93ad290aa5c96a51
3,451
py
Python
enteletaor_lib/modules/redis/__init__.py
Seabreg/enteletaor
d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db
[ "BSD-3-Clause" ]
159
2016-03-05T09:57:19.000Z
2022-02-20T02:45:03.000Z
enteletaor_lib/modules/redis/__init__.py
Seabreg/enteletaor
d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db
[ "BSD-3-Clause" ]
8
2016-03-06T13:02:45.000Z
2020-06-12T08:19:16.000Z
enteletaor_lib/modules/redis/__init__.py
Seabreg/enteletaor
d1fbda5fcd68677fbce76e3ed4e79a886b8ad9db
[ "BSD-3-Clause" ]
30
2016-03-06T16:52:42.000Z
2021-03-31T09:46:39.000Z
# -*- coding: utf-8 -*- # # Enteletaor - https://github.com/cr0hn/enteletaor # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of con...
38.344444
118
0.753115
1,115
0.323095
0
0
0
0
0
0
2,056
0.595769
b310e606ad80d3783d14d15dfa55c2d7051109dd
628
py
Python
libs/asyncio/windows_events.py
klmp200/sublime_db
d7fdb3e27d4520c9d65473c061b6ac3be40f9cb2
[ "MIT" ]
1
2019-01-21T17:37:32.000Z
2019-01-21T17:37:32.000Z
libs/asyncio/windows_events.py
klmp200/sublime_db
d7fdb3e27d4520c9d65473c061b6ac3be40f9cb2
[ "MIT" ]
null
null
null
libs/asyncio/windows_events.py
klmp200/sublime_db
d7fdb3e27d4520c9d65473c061b6ac3be40f9cb2
[ "MIT" ]
null
null
null
"""Selector and proactor event loops for Windows.""" from . import events from . import selector_events from . import windows_utils __all__ = ['SelectorEventLoop', 'DefaultEventLoopPolicy', ] class _WindowsSelectorEventLoop(selector_events.BaseSelectorEventLoop): """Windows version of selec...
24.153846
72
0.773885
301
0.479299
0
0
0
0
0
0
140
0.22293
b31211dcdebcd9d087794655b7c39c4690abb81c
1,110
py
Python
handler.py
altbdoor/legend-of-8ball-bot
d6be034bc6e440c2b99cfbf2c7f608f15af3f537
[ "WTFPL" ]
null
null
null
handler.py
altbdoor/legend-of-8ball-bot
d6be034bc6e440c2b99cfbf2c7f608f15af3f537
[ "WTFPL" ]
null
null
null
handler.py
altbdoor/legend-of-8ball-bot
d6be034bc6e440c2b99cfbf2c7f608f15af3f537
[ "WTFPL" ]
null
null
null
import random import time def send_bytes(con, channel, msg): con.send((f'PRIVMSG #{channel} : {msg}\r\n').encode('utf-8')) def sync_fn(con, channel, epoch, user, msg): pass def async_fn(con, channel, epoch, user, msg): if msg.startswith('!8ball'): answer_list = [ 'it is certain', ...
27.073171
81
0.502703
0
0
0
0
0
0
0
0
457
0.411712
b3129e2827a5d1653cdcb5e64182818266d524f0
518
py
Python
main.py
gruporofex/alexa_rofex
338eb1e08da37a45f44eaab70a633e255d4b2be7
[ "Apache-2.0" ]
null
null
null
main.py
gruporofex/alexa_rofex
338eb1e08da37a45f44eaab70a633e255d4b2be7
[ "Apache-2.0" ]
null
null
null
main.py
gruporofex/alexa_rofex
338eb1e08da37a45f44eaab70a633e255d4b2be7
[ "Apache-2.0" ]
1
2019-06-02T14:17:14.000Z
2019-06-02T14:17:14.000Z
import logging from configuration.config import LOGGING_LEVEL from alexa_handlers.AlexaForRFXHandler import AlexaForRFXHandler """ Main entry point for the Lambda function. """ logging.basicConfig(format='%(asctime)s %(message)s') logging.getLogger().setLevel(LOGGING_LEVEL) def lambda_handler(event, context): ...
21.583333
78
0.787645
0
0
0
0
0
0
0
0
134
0.258687
b3132fe7d6b452962cc26ebd5ca01167a2bec067
265
py
Python
nfsmain/admin.py
Kirkkonen/NetForSpeech
d4e7aee3003c88cb7afa21802ca724f55dc10604
[ "Apache-2.0" ]
null
null
null
nfsmain/admin.py
Kirkkonen/NetForSpeech
d4e7aee3003c88cb7afa21802ca724f55dc10604
[ "Apache-2.0" ]
18
2015-02-21T14:38:41.000Z
2015-04-27T08:23:21.000Z
nfsmain/admin.py
kromkrom/NetForSpeech
d4e7aee3003c88cb7afa21802ca724f55dc10604
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin import nfsmain.models # Register your models here. admin.site.register(nfsmain.models.Organisation) admin.site.register(nfsmain.models.Speech) admin.site.register(nfsmain.models.Interview) admin.site.register(nfsmain.models.Event)
29.444444
48
0.833962
0
0
0
0
0
0
0
0
28
0.10566
b314cd99dbfe61e94cec61ba01708bcc90cd79e7
236
py
Python
course/source/exercises/E001/test.py
sebastian-mutz/integrate
ce2a83358e2eb7f482d4fb70d167b1eba2abf2a8
[ "MIT" ]
2
2021-05-17T14:23:50.000Z
2021-08-24T13:07:42.000Z
course/source/exercises/E001/test.py
sebastian-mutz/integrate
ce2a83358e2eb7f482d4fb70d167b1eba2abf2a8
[ "MIT" ]
null
null
null
course/source/exercises/E001/test.py
sebastian-mutz/integrate
ce2a83358e2eb7f482d4fb70d167b1eba2abf2a8
[ "MIT" ]
1
2021-08-24T13:04:01.000Z
2021-08-24T13:04:01.000Z
# wow. such script. many calculation. wow. # let's do some operations and save the results in variables a=20 + 22 b=2077 - 93 c=578 * 4 d=1332/2 e=16**2 print(a, b, c, d, e) # tell the computer to show us the values of each variable
21.454545
80
0.686441
0
0
0
0
0
0
0
0
160
0.677966
b314d4941924cad54312d588bb8f7d87deb0ff9c
3,384
py
Python
app/ui/ui_modify_env.py
ctpbee/bee-box
6aa7339cdf04c54cca6bd0ae9908883c39402526
[ "MIT" ]
2
2020-08-17T01:59:51.000Z
2022-02-11T05:57:22.000Z
app/ui/ui_modify_env.py
ctpbee/bee-box
6aa7339cdf04c54cca6bd0ae9908883c39402526
[ "MIT" ]
null
null
null
app/ui/ui_modify_env.py
ctpbee/bee-box
6aa7339cdf04c54cca6bd0ae9908883c39402526
[ "MIT" ]
2
2020-03-18T02:28:38.000Z
2022-02-11T05:57:23.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'modify_env.ui', # licensing of 'modify_env.ui' applies. # # Created: Wed Dec 25 11:08:05 2019 # by: pyside2-uic running on PySide2 5.13.2 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, QtGui, QtWi...
49.043478
115
0.714243
3,044
0.894242
0
0
0
0
0
0
530
0.155699
b3153fee022b4111953bc5fe49844890599569bd
593
py
Python
webarm/facilities/models.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
webarm/facilities/models.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
webarm/facilities/models.py
AlexGolovaschenko/WebArm
1019b73b1ad5560a626261bbce05137c01edcee5
[ "MIT" ]
null
null
null
from django.db import models # TODO: from django.contrib.gis.db.models import RasterField from companies.models import Company class Facility(models.Model): company = models.ForeignKey(Company, on_delete=models.CASCADE, verbose_name='Компания') name = models.CharField(max_length=200, verbose_name='Наименова...
29.65
91
0.715008
508
0.791277
0
0
0
0
0
0
276
0.429907
b315b6f3d8230ef919a037f3cf78113e344d7733
421
py
Python
Ex_74.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
Ex_74.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
Ex_74.py
soldierloko/Curso-em-Video
d867366425f72fe15903cb17cdc222a7fe7a3831
[ "MIT" ]
null
null
null
#Crie um programa que vai gerar cinco números aleatórios e colocar em um tupla #Depois, mostra a listagem de números gerados e tambem indique o menor e o maior valor que estão na tupla from random import randint n = (randint(1,10),randint(1,10),randint(1,10),randint(1,10),randint(1,10)) print(f'Sorteei os valores ...
35.083333
106
0.733967
0
0
0
0
0
0
0
0
290
0.682353
b3171b0e547151b36dca4c7d117c611b0459a447
5,070
py
Python
scripts/test_script.py
OmoooJ/gluon-facex
c5606fc9e2223c6d6dce2aaf2858d83f5eac1d54
[ "MIT" ]
257
2018-12-28T12:02:28.000Z
2021-11-25T08:43:52.000Z
scripts/test_script.py
OmoooJ/gluon-facex
c5606fc9e2223c6d6dce2aaf2858d83f5eac1d54
[ "MIT" ]
37
2019-01-10T02:31:12.000Z
2020-11-09T03:09:40.000Z
scripts/test_script.py
OmoooJ/gluon-facex
c5606fc9e2223c6d6dce2aaf2858d83f5eac1d54
[ "MIT" ]
57
2018-12-29T01:18:31.000Z
2021-09-14T14:41:35.000Z
# -*- coding: utf-8 -*- # Author: pistonyang@gmail.com import argparse import os import mxnet as mx import sklearn import numpy as np from mxnet import gluon, nd from mxnet.gluon.data import DataLoader from mxnet.gluon.data.vision import transforms from gluonfr.model_zoo import get_model from gluonfr.data import get_r...
44.867257
104
0.65641
0
0
0
0
0
0
0
0
836
0.164892
b317c5d6b720147d41037a618b469ae428deb28e
7,043
py
Python
gamepyd/readPad.py
Marceline/PyXinput
fa60e215e99b8c0fe95767c21fd9ba239a0719bd
[ "Unlicense" ]
2
2020-11-26T09:23:35.000Z
2020-11-27T13:36:46.000Z
gamepyd/readPad.py
Marceline/PyXinput
fa60e215e99b8c0fe95767c21fd9ba239a0719bd
[ "Unlicense" ]
7
2020-10-03T16:38:26.000Z
2020-10-03T17:17:00.000Z
gamepyd/readPad.py
Marceline/PyXinput
fa60e215e99b8c0fe95767c21fd9ba239a0719bd
[ "Unlicense" ]
1
2021-06-04T17:44:55.000Z
2021-06-04T17:44:55.000Z
"""Read the current state of Xbox Controllers""" from ctypes import * import pandas as pd from time import time_ns # Xinput DLL try: _xinput = windll.xinput1_4 except OSError as err: _xinput = windll.xinput1_3 class _xinput_gamepad(Structure): """CType XInput Gamepad Object""" _fields_ = [ ("...
31.868778
129
0.552321
5,865
0.832742
0
0
597
0.084765
0
0
2,621
0.372143
b317e8c8116cb267c95a2dc4fd78e3aa0e010d1f
31,470
py
Python
lib/tool_shed/scripts/check_repositories_for_functional_tests.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/tool_shed/scripts/check_repositories_for_functional_tests.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/tool_shed/scripts/check_repositories_for_functional_tests.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
1
2020-07-25T21:03:18.000Z
2020-07-25T21:03:18.000Z
#!/usr/bin/env python import os, sys, logging, tempfile new_path = [ os.path.join( os.getcwd(), "lib" ), os.path.join( os.getcwd(), "test" ) ] new_path.extend( sys.path[1:] ) sys.path = new_path log = logging.getLogger() log.setLevel( 10 ) log.addHandler( logging.StreamHandler( sys.stdout ) ) from galaxy import egg...
57.743119
167
0.56584
1,086
0.034509
0
0
320
0.010168
0
0
17,095
0.543216
b317eed8bc3c7f37020ba36b17b2500b5686a571
4,433
py
Python
clifford/taylor_expansions.py
tBuLi/clifford
31651d095834ad4c2c5da0692414b55c88823840
[ "BSD-3-Clause" ]
21
2015-03-21T14:20:29.000Z
2020-04-20T02:12:03.000Z
clifford/taylor_expansions.py
tBuLi/clifford
31651d095834ad4c2c5da0692414b55c88823840
[ "BSD-3-Clause" ]
13
2016-09-01T11:58:24.000Z
2017-11-19T17:01:51.000Z
clifford/taylor_expansions.py
tBuLi/clifford
31651d095834ad4c2c5da0692414b55c88823840
[ "BSD-3-Clause" ]
7
2016-08-31T16:19:42.000Z
2017-11-16T17:27:45.000Z
""" .. currentmodule:: clifford.taylor_expansions ===================================================== taylor_expansions (:mod:`clifford.taylor_expansions`) ===================================================== .. versionadded:: 1.4.0 This file implements various Taylor expansions for useful functions of multivecto...
26.866667
109
0.606361
0
0
0
0
2,319
0.523122
0
0
2,625
0.59215
b318c21ad0eb2b6e95186d57efe3b7d26ec2e237
175
py
Python
FlaskApp/extensions.py
re0phimes/FlaskTest
43144766cb09201b27168a3a0b369116dc1a51d3
[ "MIT" ]
1
2019-05-14T08:18:44.000Z
2019-05-14T08:18:44.000Z
FlaskApp/extensions.py
re0phimes/FlaskTest
43144766cb09201b27168a3a0b369116dc1a51d3
[ "MIT" ]
null
null
null
FlaskApp/extensions.py
re0phimes/FlaskTest
43144766cb09201b27168a3a0b369116dc1a51d3
[ "MIT" ]
null
null
null
from flask import Flask, render_template, redirect # from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy # bootstrp = Bootstrap() db = SQLAlchemy()
25
50
0.811429
0
0
0
0
0
0
0
0
63
0.36
b318fb68451b5682ff5190f3321869e6da4e8c1a
2,521
py
Python
month05/Spider/Tecent/Tecent/spiders/tencent.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/Spider/Tecent/Tecent/spiders/tencent.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/Spider/Tecent/Tecent/spiders/tencent.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
import json import scrapy import time import requests from ..items import TecentItem class TencentSpider(scrapy.Spider): name = 'tencent' allowed_domains = ['careers.tencent.com'] first_url = 'https://careers.tencent.com/tencentcareer/api/post/Query?timestamp={}&countryId=&cityId=&bgIds=&productId=&cate...
42.016667
219
0.659262
2,287
0.902882
1,256
0.495855
0
0
0
0
780
0.307935
b3195e2c249e847996cf37ace335078f2ff006fa
2,365
py
Python
paraseres.py
Junking1/DeepLabV3
7480ba2351fd5baa740bd5b8d0441f3103f3bbb0
[ "MIT" ]
null
null
null
paraseres.py
Junking1/DeepLabV3
7480ba2351fd5baa740bd5b8d0441f3103f3bbb0
[ "MIT" ]
null
null
null
paraseres.py
Junking1/DeepLabV3
7480ba2351fd5baa740bd5b8d0441f3103f3bbb0
[ "MIT" ]
null
null
null
import argparse def ad1para(): parser = argparse.ArgumentParser(description="PyTorch DeeplabV3Plus Training") parser.add_argument('--train_path', type=str, default='E:/lab2_train_data.h5', help='the path of train data') parser.add_argument('--val_path', type=str, default='...
52.555556
83
0.578013
0
0
0
0
0
0
0
0
900
0.38055
b31b96b0f97a4a311c4207315ff1606066d471f8
837
py
Python
scripts/plot_discuss_features.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
3
2021-06-19T02:16:46.000Z
2021-07-16T15:56:49.000Z
scripts/plot_discuss_features.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
scripts/plot_discuss_features.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 8 09:04:27 2021 @author: @Daniel03 """ from watex.viewer.plot import QuickPlot # path to dataset # data_fn = 'data/geo_fdata/BagoueDataset2.xlsx' data_fn ='data/geo_fdata/main.bagciv.data2.csv' # set figure title fig_title= '`sfi` vs`ohmS|`geol`' # list of feature...
22.026316
57
0.57945
0
0
0
0
0
0
0
0
384
0.458781
b31be5d103cfb9e8ae792650af1addd027a89193
309
py
Python
main/Customer/urls.py
VikasSherawat/OrderFood
1c9b67d48f3add57053b50b8a07695016fe2bb4a
[ "MIT" ]
null
null
null
main/Customer/urls.py
VikasSherawat/OrderFood
1c9b67d48f3add57053b50b8a07695016fe2bb4a
[ "MIT" ]
4
2020-02-11T21:44:22.000Z
2021-06-10T17:28:46.000Z
main/Customer/urls.py
VikasSherawat/OrderFood
1c9b67d48f3add57053b50b8a07695016fe2bb4a
[ "MIT" ]
1
2017-03-13T04:21:49.000Z
2017-03-13T04:21:49.000Z
from django.conf.urls import url from . import views app_name = 'customer' urlpatterns = [ # url(r'^$', views.index, name='index'), url(r'^fooditems/(?P<shop_id>[0-9]+)/$', views.fooditems, name="fooditems"), url(r'^buyitem/(?P<fooditem_id>[0-9]+)/$', views.buy_fooditem, name="buy_fooditem") ]
28.090909
87
0.647249
0
0
0
0
0
0
0
0
147
0.475728
b31c17bc22fb02364bf3e27057e5970be530fe76
2,149
py
Python
playground/messaging/producer/config.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/messaging/producer/config.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/messaging/producer/config.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
__title__ = "simulation" __author__ = "murlux" __copyright__ = "Copyright 2019, " + __author__ __credits__ = (__author__, ) __license__ = "MIT" __email__ = "murlux@protonmail.com" # Global imports from enum import Enum from typing import Any, Dict from playground.messaging.flow import Flow, flow_from_json from playgr...
30.7
119
0.665891
1,241
0.577478
0
0
0
0
0
0
667
0.310377
b31c75e2046a13da0654b68c56be95811318a66b
314
py
Python
intask_api/tasks/urls.py
KirovVerst/intask
4bdec6f49fa2873cca1354d7d3967973f5bcadc3
[ "MIT" ]
null
null
null
intask_api/tasks/urls.py
KirovVerst/intask
4bdec6f49fa2873cca1354d7d3967973f5bcadc3
[ "MIT" ]
7
2016-08-17T23:08:31.000Z
2022-03-02T02:23:08.000Z
intask_api/tasks/urls.py
KirovVerst/intask
4bdec6f49fa2873cca1354d7d3967973f5bcadc3
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from intask_api.tasks.views import TaskViewSet, TaskUserViewSet router = DefaultRouter() router.register(r'tasks', TaskViewSet, basename='tasks') router.register(r'tasks/(?P<task_id>[0-9]+)/users', TaskUserViewSet, basename='task-users') urlpatterns = router.urls
39.25
91
0.799363
0
0
0
0
0
0
0
0
61
0.194268
b32039c8d905e3757359516982b961e7aa3b1444
5,413
py
Python
data-processing/MongoDB/mongo.py
kennie98/AI-book-recommendation-system
2707b08fe190a9803d3dcb610b96d9b6a984adc0
[ "CC0-1.0" ]
null
null
null
data-processing/MongoDB/mongo.py
kennie98/AI-book-recommendation-system
2707b08fe190a9803d3dcb610b96d9b6a984adc0
[ "CC0-1.0" ]
null
null
null
data-processing/MongoDB/mongo.py
kennie98/AI-book-recommendation-system
2707b08fe190a9803d3dcb610b96d9b6a984adc0
[ "CC0-1.0" ]
null
null
null
import pandas as pd from pymongo import MongoClient from MongoDB.marc import Marc import re import sys class Mongo: tag_mongodb_connection_uri = 'MONGODB_CONNECTION_URI' tag_mongodb_user = 'MONGODB_USER' tag_mongodb_password = 'MONGODB_PASSWORD' tag_mongodb_database = 'MONGODB_DATABASE' tag_mongod...
41.320611
119
0.568631
5,024
0.928136
0
0
161
0.029743
0
0
741
0.136893
b3208faab0bb9858fdeabda875efe2eb39010200
5,673
py
Python
robot3_18c1054/scripts/visualizer.py
18C1054-S-K/robot3_ros
c34cf2989829b3f38648b5e32be1d5cc5264ad80
[ "MIT" ]
null
null
null
robot3_18c1054/scripts/visualizer.py
18C1054-S-K/robot3_ros
c34cf2989829b3f38648b5e32be1d5cc5264ad80
[ "MIT" ]
null
null
null
robot3_18c1054/scripts/visualizer.py
18C1054-S-K/robot3_ros
c34cf2989829b3f38648b5e32be1d5cc5264ad80
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rospy import numpy as np import math import time from sensor_msgs.msg import JointState from std_msgs.msg import Float32, Float32MultiArray, Bool, Header from robot3_18c1054.msg import HandClose from robot3_18c1054.srv import GetHandState, GetHandStateResponse, GetInitTime, GetInitTimeRes...
30.5
176
0.693637
5,207
0.917857
0
0
0
0
0
0
563
0.099242
b3216e51e921df93ba62232e2dc93c7a485cd2b1
6,980
py
Python
gpu_bdb/min/large_ddf.py
cylondata/gpu-bdb
6edef0985e9953c6bc9b4e0639b0dff1c9facefa
[ "Apache-2.0" ]
null
null
null
gpu_bdb/min/large_ddf.py
cylondata/gpu-bdb
6edef0985e9953c6bc9b4e0639b0dff1c9facefa
[ "Apache-2.0" ]
null
null
null
gpu_bdb/min/large_ddf.py
cylondata/gpu-bdb
6edef0985e9953c6bc9b4e0639b0dff1c9facefa
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019-2020, NVIDIA 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 ag...
36.165803
116
0.698281
0
0
0
0
231
0.033095
0
0
3,201
0.458596
b3245056e3f0f3fb5389269f801f8bf1920f67ff
13,768
py
Python
ehb_service/apps/api/views/externalrecord.py
chop-dbhi/ehb-service
62f26cbb1495026caf37e1c326a593253b88bdd9
[ "BSD-2-Clause" ]
1
2018-11-03T15:53:50.000Z
2018-11-03T15:53:50.000Z
ehb_service/apps/api/views/externalrecord.py
chop-dbhi/ehb-service
62f26cbb1495026caf37e1c326a593253b88bdd9
[ "BSD-2-Clause" ]
78
2015-12-16T20:12:20.000Z
2020-04-08T19:42:35.000Z
ehb_service/apps/api/views/externalrecord.py
chop-dbhi/ehb-service
62f26cbb1495026caf37e1c326a593253b88bdd9
[ "BSD-2-Clause" ]
1
2019-11-04T06:24:02.000Z
2019-11-04T06:24:02.000Z
import json import logging from django.db.models import Q from core.forms import ExternalRecordForm, ExternalRecordRelationForm from .constants import ErrorConstants from api.helpers import FormHelpers from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import sta...
36.519894
179
0.529198
13,177
0.957074
0
0
0
0
0
0
3,133
0.227557
b324bf18045ea4a7f105aae6d323ab08dcfbf152
584
py
Python
058.py
souza-joao/cursoemvideo-python3
b9f747d1083c1c779630b25b321b291d76611901
[ "MIT" ]
null
null
null
058.py
souza-joao/cursoemvideo-python3
b9f747d1083c1c779630b25b321b291d76611901
[ "MIT" ]
null
null
null
058.py
souza-joao/cursoemvideo-python3
b9f747d1083c1c779630b25b321b291d76611901
[ "MIT" ]
null
null
null
from random import randint, choice from time import sleep print('_' * 40) print('Vou pensar em um número entre 0 e 10.\n') print('PROCESSANDO...') sleep(3) print('pronto!') sleep(0.5) n = int(input('Em que número eu pensei? ')) print('-' * 80) sleep(2) x = randint(0, 10) cont = 0 while n != x: if n < x: n...
27.809524
86
0.631849
0
0
0
0
0
0
0
0
275
0.466102
b325a4cdd05ee38f1c358b84ae1f77dc879858b0
6,142
py
Python
visual_novel/vn_core/migrations/0001_base_models_for_visual_novels.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
9
2018-03-11T12:53:12.000Z
2020-12-19T14:21:53.000Z
visual_novel/vn_core/migrations/0001_base_models_for_visual_novels.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
6
2020-02-11T22:19:22.000Z
2022-03-11T23:20:10.000Z
visual_novel/vn_core/migrations/0001_base_models_for_visual_novels.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-04-28 16:31 import core.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('cinfo', '0002_test_data'), ] operations = [ migrations.CreateModel( ...
49.934959
160
0.586454
6,258
0.977354
0
0
0
0
0
0
1,779
0.277839
b327fc80caa49ef916375787bf5e4e7f062d013b
8,409
py
Python
cardbuilder/resolution/printer.py
jrhoff/cardbuilder
857360b1827494a286cee9928cb004af882e55b4
[ "MIT" ]
null
null
null
cardbuilder/resolution/printer.py
jrhoff/cardbuilder
857360b1827494a286cee9928cb004af882e55b4
[ "MIT" ]
null
null
null
cardbuilder/resolution/printer.py
jrhoff/cardbuilder
857360b1827494a286cee9928cb004af882e55b4
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from collections import OrderedDict from os import mkdir from os.path import exists, join from typing import Optional, Callable, get_type_hints, Dict import requests from cardbuilder.common.util import dedup_by, retry_with_logging from cardbuilder.exceptions import CardBuilderUsage...
41.220588
121
0.633964
7,951
0.945535
0
0
99
0.011773
0
0
546
0.06493
b329631d1ae39b00c66566b6ebd6369fb6aa8d9a
19,912
py
Python
pysrc/map_info_rdr.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
1,261
2016-12-16T14:29:30.000Z
2022-03-30T20:21:25.000Z
pysrc/map_info_rdr.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
190
2016-12-17T13:44:09.000Z
2022-03-27T09:28:13.000Z
pysrc/map_info_rdr.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
155
2016-12-16T22:17:20.000Z
2022-02-16T20:53:59.000Z
#!/usr/bin/env python # -*- python -*- #BEGIN_LEGAL # #Copyright (c) 2020 Intel 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-...
38.072658
107
0.558206
2,573
0.129219
0
0
0
0
0
0
5,103
0.256278
b329aa0077fedcf56909ba21624d7b73c8f4b2e3
1,638
py
Python
python/scripts/tools/m3qa_unit_test.py
ahoarau/m3meka
237739f0266ce60aaa3013b0d2b22fc07b6374c4
[ "MIT" ]
1
2015-06-19T12:14:18.000Z
2015-06-19T12:14:18.000Z
python/scripts/tools/m3qa_unit_test.py
semeyerz/m3meka
6e5d6b73ad3ebdd8429497923e601eae65d8b2fe
[ "MIT" ]
null
null
null
python/scripts/tools/m3qa_unit_test.py
semeyerz/m3meka
6e5d6b73ad3ebdd8429497923e601eae65d8b2fe
[ "MIT" ]
2
2015-11-27T09:25:54.000Z
2021-08-16T16:29:22.000Z
#! /usr/bin/python #Copyright 2008, Meka Robotics #All rights reserved. #http://mekabot.com #Redistribution and use in source and binary forms, with or without #modification, are permitted. #THIS SOFTWARE IS PROVIDED BY THE Copyright HOLDERS AND CONTRIBUTORS #"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDI...
32.117647
131
0.700855
0
0
0
0
0
0
0
0
1,213
0.740537
b32c6157b37a6c2aef3cf2191a1d45f18ee4504f
229
py
Python
Introducao python/exercicios/ex013b.py
Luis12368/python
23352d75ad13bcfd09ea85ab422fdc6ae1fcc5e7
[ "MIT" ]
null
null
null
Introducao python/exercicios/ex013b.py
Luis12368/python
23352d75ad13bcfd09ea85ab422fdc6ae1fcc5e7
[ "MIT" ]
null
null
null
Introducao python/exercicios/ex013b.py
Luis12368/python
23352d75ad13bcfd09ea85ab422fdc6ae1fcc5e7
[ "MIT" ]
null
null
null
valor = float(input('Insira o valor do produto: ')) desconto = float(input('Insira o vlaor do deaconto: ')) novo_valor = valor - (valor * (desconto / 100)) print(f'O novo valor com {desconto}% de desconto é {novo_valor:.2f}')
28.625
69
0.68559
0
0
0
0
0
0
0
0
122
0.530435
b32c8ac533a9595c7935a15d0c1ab0a2d7c89655
2,271
py
Python
specs/monitor/events_v1_spec.py
marojor/sysdig-sdk-python
c554f9f747ff88ce075b50a50d81f75aff327bb1
[ "MIT" ]
45
2016-04-11T16:50:15.000Z
2020-07-11T23:37:51.000Z
specs/monitor/events_v1_spec.py
marojor/sysdig-sdk-python
c554f9f747ff88ce075b50a50d81f75aff327bb1
[ "MIT" ]
74
2016-08-09T17:10:55.000Z
2020-07-09T08:36:16.000Z
specs/monitor/events_v1_spec.py
marojor/sysdig-sdk-python
c554f9f747ff88ce075b50a50d81f75aff327bb1
[ "MIT" ]
39
2016-04-20T17:22:23.000Z
2020-07-08T17:25:52.000Z
import os import time from expects import expect, have_key, contain, have_keys, be_empty, equal from mamba import it, before, description from sdcclient.monitor import EventsClientV1 from specs import be_successful_api_call with description("Events v1", "integration") as self: with before.all: self.clien...
41.290909
122
0.647292
0
0
0
0
0
0
0
0
593
0.261118
b32ce48bfac67262240dc37403bd03bc3776e361
322
py
Python
app/cryptprice/exceptions/app_exceptions.py
MihailButnaru/cryptprice
b9636dbb0fb88d345fc53a9e8ec0554a888e7302
[ "MIT" ]
2
2020-07-04T23:02:14.000Z
2021-02-04T21:21:14.000Z
app/cryptprice/exceptions/app_exceptions.py
MihailButnaru/cryptprice
b9636dbb0fb88d345fc53a9e8ec0554a888e7302
[ "MIT" ]
4
2021-03-30T13:50:34.000Z
2021-09-22T19:22:57.000Z
app/cryptprice/exceptions/app_exceptions.py
MihailButnaru/cryptprice
b9636dbb0fb88d345fc53a9e8ec0554a888e7302
[ "MIT" ]
null
null
null
from rest_framework.exceptions import APIException __author__ = "Mihail Butnaru" __copyright__ = "Copyright 2020, All rights reserved." class APPServerError(APIException): status_code = 500 default_detail = "Service temporarily unavailable, contact the administrator" default_code = "internal_server_error...
29.272727
81
0.795031
182
0.565217
0
0
0
0
0
0
137
0.425466
b32e4e1996fb297287ca00c74f529be969c107ca
6,771
py
Python
sdk_liteos/third_party/u-boot-v2019.07/u-boot-v2019.07/tools/binman/control.py
openharmony-gitee-mirror/device_bearpi_bearpi_hm_nano
c463575de065aad080f730ffbd479628eb821105
[ "BSD-3-Clause" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
sdk_liteos/third_party/u-boot-v2019.07/u-boot-v2019.07/tools/binman/control.py
openharmony-gitee-mirror/device_bearpi_bearpi_hm_nano
c463575de065aad080f730ffbd479628eb821105
[ "BSD-3-Clause" ]
null
null
null
sdk_liteos/third_party/u-boot-v2019.07/u-boot-v2019.07/tools/binman/control.py
openharmony-gitee-mirror/device_bearpi_bearpi_hm_nano
c463575de065aad080f730ffbd479628eb821105
[ "BSD-3-Clause" ]
1
2021-12-15T09:54:37.000Z
2021-12-15T09:54:37.000Z
# SPDX-License-Identifier: GPL-2.0+ # Copyright (c) 2016 Google, Inc # Written by Simon Glass <sjg@chromium.org> # # Creates binary images from input files controlled by a description # from collections import OrderedDict import os import sys import tools import command import elf from image import Image import state...
34.545918
80
0.585143
0
0
0
0
0
0
0
0
2,590
0.382514
b3306de4e386f43f3bd60bacfbc628514aa6597c
2,683
py
Python
python/Data Structures/Arrays/maximumRange.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Arrays/maximumRange.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Arrays/maximumRange.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
class Solution: def maximumPopulation(self, logs: List[List[int]]) -> int: years_mapped = dict() # Map each person = O(n) # First bottleneck is having to map every year out which increases processing time # The second is also here since we use additional storage to account f...
33.123457
94
0.542303
2,472
0.921357
0
0
0
0
0
0
526
0.196049
b330802951dfea9ae95601d2e89610bb4ee484ba
5,027
py
Python
vision_transformer/Vit.py
ximingxing/Deep-Learning-in-Action
38d5d3d6990553ff9d3ea771d8e83f8b47241b9a
[ "MIT" ]
1
2020-09-16T09:17:37.000Z
2020-09-16T09:17:37.000Z
vision_transformer/Vit.py
ximingxing/Deep-Learning-in-Action
38d5d3d6990553ff9d3ea771d8e83f8b47241b9a
[ "MIT" ]
1
2021-05-13T05:20:07.000Z
2021-05-13T05:20:07.000Z
vision_transformer/Vit.py
ximingxing/Deep-Learning-in-Action
38d5d3d6990553ff9d3ea771d8e83f8b47241b9a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Project : Deep-Learning-in-Action File : Vit.py Description : 论文题目: An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 论文地址: https://arxiv.org/abs/2010.11929 Author : xingximing.xxm Date : 2021/7/11 11:36 AM """ import torch fr...
30.652439
139
0.571912
4,186
0.822882
0
0
0
0
0
0
826
0.162375
b331152f9b2de99eab713f246fc00d258a2ce780
1,677
py
Python
workbooks/WiFi_email.py
DarishkaAMS/laughing-guacamole
f848a922fdccb40fe6bb5e3026ebea54b32fa78d
[ "MIT" ]
null
null
null
workbooks/WiFi_email.py
DarishkaAMS/laughing-guacamole
f848a922fdccb40fe6bb5e3026ebea54b32fa78d
[ "MIT" ]
null
null
null
workbooks/WiFi_email.py
DarishkaAMS/laughing-guacamole
f848a922fdccb40fe6bb5e3026ebea54b32fa78d
[ "MIT" ]
null
null
null
import subprocess import re import smtplib from email.message import EmailMessage command_output = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output=True)\ .stdout.decode('Windows-1251') profile_names = (re.findall("All User Profile : (.*)\r", command_output)) wifi_list = list() if len(pr...
32.882353
103
0.613596
0
0
0
0
0
0
0
0
470
0.280262
b33142a09cea192c1496daaf28a083bed7fd400a
3,518
py
Python
sheets.py
caleby117/xybot
6dcc6ac99ef05ae7791c6c29c1f2f2c4242fb647
[ "Apache-2.0" ]
null
null
null
sheets.py
caleby117/xybot
6dcc6ac99ef05ae7791c6c29c1f2f2c4242fb647
[ "Apache-2.0" ]
null
null
null
sheets.py
caleby117/xybot
6dcc6ac99ef05ae7791c6c29c1f2f2c4242fb647
[ "Apache-2.0" ]
null
null
null
import gspread import time gc = gspread.service_account(filename='creds.json') sheetKey = "<insert shet key here>" wb = gc.open_by_key(sheetKey) localtime = time.asctime() newSheetName = f'XY on {localtime}' worksheet = wb.sheet1 scoreSheet = worksheet.duplicate(insert_sheet_index=1, new_sheet_name=newSheetName) #ma...
21.716049
92
0.688459
2,135
0.606879
0
0
0
0
0
0
800
0.227402
b33207e52f5d4757fcc591f2721a05242c76cc96
3,538
py
Python
rgn/preprocessing.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
rgn/preprocessing.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
3
2022-01-13T03:13:37.000Z
2022-03-12T00:48:18.000Z
rgn/preprocessing.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
import glob import os import numpy as np from io import BytesIO from tqdm import tqdm import bcolz import platform MAX_SEQUENCE_LENGTH = 700 def filter_input_files(input_files): disallowed_file_endings = (".gitignore", ".DS_Store") return list(filter(lambda x: not x.endswith(disallowed_file_endings), input_f...
34.019231
99
0.550594
0
0
0
0
0
0
0
0
438
0.123799
b334e4b92f0e14a486132725ee5eb22fdd3521f3
12,046
py
Python
stfsclient/apis.py
jagans94/stfsclient
e24f109a4256c05ecca9331c21bf8f76e172ad45
[ "MIT" ]
null
null
null
stfsclient/apis.py
jagans94/stfsclient
e24f109a4256c05ecca9331c21bf8f76e172ad45
[ "MIT" ]
2
2019-09-15T19:11:05.000Z
2019-09-21T13:05:11.000Z
stfsclient/apis.py
jagans94/stfsclient
e24f109a4256c05ecca9331c21bf8f76e172ad45
[ "MIT" ]
1
2020-01-19T03:46:32.000Z
2020-01-19T03:46:32.000Z
import grpc from stfsclient.tensorflow_serving import model_pb2 from stfsclient.tensorflow_serving import get_model_metadata_pb2, predict_pb2 from stfsclient.tensorflow_serving import get_model_status_pb2, model_management_pb2 from stfsclient.tensorflow_serving import prediction_service_pb2_grpc from stfsclient.tensor...
33.276243
110
0.648265
11,417
0.947783
0
0
6,728
0.558526
0
0
1,175
0.097543
b336e30f32a8c91df3cdcc80f11eabae458079ff
1,058
py
Python
metropolis/core/tests/test_serializer.py
Ashon/_study_nats_worker
9c137a5cb68b13ddd91f999e61ac5d6125cd155a
[ "MIT" ]
5
2020-01-08T07:58:54.000Z
2021-03-03T13:22:11.000Z
metropolis/core/tests/test_serializer.py
Ashon/python-nats-gateway
9c137a5cb68b13ddd91f999e61ac5d6125cd155a
[ "MIT" ]
3
2019-11-05T01:15:47.000Z
2019-11-07T09:50:25.000Z
metropolis/core/tests/test_serializer.py
Ashon/python-nats-rpc
9c137a5cb68b13ddd91f999e61ac5d6125cd155a
[ "MIT" ]
1
2019-11-06T04:49:52.000Z
2019-11-06T04:49:52.000Z
import unittest from metropolis.core.serializer import DefaultMessageSerializer from metropolis.core.serializer import JsonMessageSerializer class TestDefaultMessageSerializer(unittest.TestCase): def test_default_serializer_should_returns_bytes_msg(self): msg = 'hello' encoded = DefaultMessageSer...
36.482759
64
0.751418
910
0.860113
0
0
0
0
0
0
46
0.043478
b338f100fce3bc7e987544b20907d50a2e935653
5,704
py
Python
ceph_provisioned/ceph_provisioned.py
CCI-MOC/zabbix-ceph
500b7a714225ef03fe4b202af1f49072cc879651
[ "Apache-2.0" ]
1
2020-02-22T20:50:47.000Z
2020-02-22T20:50:47.000Z
ceph_provisioned/ceph_provisioned.py
CCI-MOC/zabbix-ceph
500b7a714225ef03fe4b202af1f49072cc879651
[ "Apache-2.0" ]
null
null
null
ceph_provisioned/ceph_provisioned.py
CCI-MOC/zabbix-ceph
500b7a714225ef03fe4b202af1f49072cc879651
[ "Apache-2.0" ]
null
null
null
#! /bin/python """Calculate provisioned space""" from __future__ import division import sys import subprocess import json import functools import multiprocessing import configparser from pprint import pprint from math import ceil from pyzabbix import ZabbixMetric, ZabbixSender from pyzabbix_socketwrapper import PyZa...
32.409091
164
0.673562
0
0
0
0
0
0
0
0
2,257
0.395687
b339349f3a3b5700cfea185822ee49f0438d9f1b
4,905
py
Python
bin/EmMonitor.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
bin/EmMonitor.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
bin/EmMonitor.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
1
2020-04-02T01:17:43.000Z
2020-04-02T01:17:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2019 Nippon Telegraph and Telephone Corporation # Filename: em_monitor.py ''' EM Monitoring Module for RA ''' import sys import os import time from ncclient import manager from ncclient import transport from ncclient import operations USERNAME = None PASSWO...
31.645161
108
0.640571
1,201
0.244852
0
0
0
0
0
0
1,772
0.361264
b33a0a1302faab794aabfcd653702fef3513e51b
6,307
py
Python
live_cnn/webcam_cnn_pipeline.py
apapiu/live_cnn
d560c14269c81d9b437f4f25169e28c983a7b0af
[ "Apache-2.0" ]
3
2016-11-15T16:04:14.000Z
2017-02-05T23:51:29.000Z
live_cnn/webcam_cnn_pipeline.py
apapiu/live_cnn
d560c14269c81d9b437f4f25169e28c983a7b0af
[ "Apache-2.0" ]
null
null
null
live_cnn/webcam_cnn_pipeline.py
apapiu/live_cnn
d560c14269c81d9b437f4f25169e28c983a7b0af
[ "Apache-2.0" ]
null
null
null
#functions: #to get the dependencies create a conda environment: #conda create --name live_cnn keras ipython opencv scikit-learn #note that the dim ordering here is the theano one - it's faster on CPU. #TODO: do some detection/ bounding box CNN's? import time import os import cv2 import numpy as np from keras.models...
30.322115
96
0.641985
0
0
0
0
0
0
0
0
2,199
0.34866
b33b2269e6d2e9516aade7f62d1a13fd0a9f22d6
2,292
py
Python
robotarm/controllers/api_service.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
1
2022-03-27T20:09:10.000Z
2022-03-27T20:09:10.000Z
robotarm/controllers/api_service.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
4
2022-03-25T03:45:10.000Z
2022-03-29T14:31:16.000Z
robotarm/controllers/api_service.py
AmidBidee/RobotArm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ State Controller Module """ import subprocess from robotarm.controllers import proxy_url import requests import pathlib import psutil BASE_DIR = pathlib.Path(__file__).resolve().parent.parent #print(BASE_DIR) class APIServiceController(): """ contolls api service actions: h...
29.012658
104
0.544939
2,057
0.897469
0
0
0
0
0
0
1,044
0.455497
b33f00818b733f056f6f2336e9dfd9652c3b1327
597
py
Python
tests/components/jellyfin/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/jellyfin/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/jellyfin/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Constants for the Jellyfin integration tests.""" from typing import Final from jellyfin_apiclient_python.connection_manager import CONNECTION_STATE TEST_URL: Final = "https://example.com" TEST_USERNAME: Final = "test-username" TEST_PASSWORD: Final = "test-password" MOCK_SUCCESFUL_CONNECTION_STATE: Final = {"Stat...
33.166667
85
0.785595
0
0
0
0
0
0
0
0
173
0.289782
b33f09e5bf45a9316a7fe457b361826368d9568b
175
py
Python
mysite/LibreBadge/views/views.py
energized-id/energized-id
9dfd483e808cee7e87bfae02864ff2d614609890
[ "MIT" ]
8
2020-03-05T07:04:48.000Z
2022-03-29T14:32:00.000Z
mysite/LibreBadge/views/views.py
energized-id/energized-id
9dfd483e808cee7e87bfae02864ff2d614609890
[ "MIT" ]
36
2020-02-26T18:15:37.000Z
2020-11-25T05:56:09.000Z
mysite/LibreBadge/views/views.py
energized-id/energized-id
9dfd483e808cee7e87bfae02864ff2d614609890
[ "MIT" ]
2
2021-06-20T06:27:16.000Z
2021-11-12T10:48:14.000Z
from .imports import * #Put all views that don't belong elsewere here @login_required def index(request): return render(request, 'LibreBadge/home.html', context = {})
25
50
0.725714
0
0
0
0
104
0.594286
0
0
68
0.388571
b33f2a6de57090a527f6078cd21b1bc58dc5b6e8
1,266
py
Python
examples/basic.py
kpchand/firepack
082b2477024c928e1999691b17eb3c07f015d79f
[ "MIT" ]
1
2021-06-14T10:18:57.000Z
2021-06-14T10:18:57.000Z
examples/basic.py
kpchand/firepack
082b2477024c928e1999691b17eb3c07f015d79f
[ "MIT" ]
null
null
null
examples/basic.py
kpchand/firepack
082b2477024c928e1999691b17eb3c07f015d79f
[ "MIT" ]
null
null
null
from firepack.fields import IntField, StrField from firepack.service import FireService from firepack.errors import SkipError, ValidationError CRAWLED_DB = [] def page_name_validator(name, value): if not value.endswith('.html'): raise ValidationError(name, 'I only know html pages!') class Crawler(Fire...
28.133333
84
0.665877
728
0.575039
0
0
0
0
0
0
380
0.300158
b33f68c75544b629936c29fb4b8ae81e16ce8cfe
10,460
py
Python
dependencies/panda/Panda3D-1.10.0-x64/python/Lib/JOD/JamoDrumNodePath.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
dependencies/panda/Panda3D-1.10.0-x64/python/Lib/JOD/JamoDrumNodePath.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
dependencies/panda/Panda3D-1.10.0-x64/python/Lib/JOD/JamoDrumNodePath.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
""" NodePath for Jam-o-Drum model @author: Ben Buchwald <bb2@alumni.cmu.edu> Last Updated: 11/29/2005 @var DRUMPAD_RADIUS: constant representing the radius of the drumpad as a percentage of the radius of the table @type DRUMPAD_RADIUS: float @var SPINNER_RADIUS: constant representing the radius o...
33.101266
96
0.60631
9,620
0.919694
0
0
0
0
0
0
5,195
0.496654
b34056015462e1089eaab43dc86088ca8783c08f
2,927
py
Python
src/apps/alarm_clock/tests/test_api.py
stefanhoelzl/alarm-clock
efba84e71fcade26bef020dc7eaa10181ea9f96c
[ "MIT" ]
1
2019-07-31T12:39:53.000Z
2019-07-31T12:39:53.000Z
src/apps/alarm_clock/tests/test_api.py
stefanhoelzl/alarm-clock
efba84e71fcade26bef020dc7eaa10181ea9f96c
[ "MIT" ]
null
null
null
src/apps/alarm_clock/tests/test_api.py
stefanhoelzl/alarm-clock
efba84e71fcade26bef020dc7eaa10181ea9f96c
[ "MIT" ]
1
2019-10-04T04:32:20.000Z
2019-10-04T04:32:20.000Z
import pytest from unittest.mock import patch from ..api import * from ..alarm import Alarm from .. import AlarmClockApp from ..alarm_states import Disabled, Enabled class AlarmClockMock(AlarmClockApp): auto_store = False def __init__(self, alarms=None, off=False, snooze=False): super().__init__() ...
27.35514
78
0.617014
358
0.12231
0
0
2,378
0.812436
2,231
0.762214
307
0.104886
b340e1518e138957e56fd973250c45b5d93fb474
4,519
py
Python
skipole/skiadmin/skiadminpackages/editfiles/editfile.py
bernie-skipole/skipole
b45d3291c593e7c03c053ab4f192f1ecc5c3e9b9
[ "MIT" ]
null
null
null
skipole/skiadmin/skiadminpackages/editfiles/editfile.py
bernie-skipole/skipole
b45d3291c593e7c03c053ab4f192f1ecc5c3e9b9
[ "MIT" ]
null
null
null
skipole/skiadmin/skiadminpackages/editfiles/editfile.py
bernie-skipole/skipole
b45d3291c593e7c03c053ab4f192f1ecc5c3e9b9
[ "MIT" ]
null
null
null
"Functions implementing FilePage editing" from ... import ValidateError, FailPage, ServerError from ....ski.project_class_definition import SectionData from ... import skilift from ....skilift import editpage from .. import utils def retrieve_edit_filepage(skicall): "Retrieves widget data for the edit file...
31.823944
115
0.680239
0
0
0
0
0
0
0
0
1,325
0.293206
b3411f8bec2f4f619f83a292d7fea679c2334e6a
5,583
py
Python
django_resto/settings/base.py
sunilsm7/django_resto
b7698653093af7e6f26dd0d0c7b8d6046b402ea4
[ "MIT" ]
1
2017-08-03T01:40:12.000Z
2017-08-03T01:40:12.000Z
django_resto/settings/base.py
sunilsm7/django_resto
b7698653093af7e6f26dd0d0c7b8d6046b402ea4
[ "MIT" ]
null
null
null
django_resto/settings/base.py
sunilsm7/django_resto
b7698653093af7e6f26dd0d0c7b8d6046b402ea4
[ "MIT" ]
null
null
null
""" Django settings for django_resto project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impo...
28.340102
105
0.716819
0
0
0
0
0
0
0
0
3,658
0.655203
b3419549c4ca01cf1366c673fc700d7d9a60d784
5,710
py
Python
alab/norm.py
WeAllOneCode/PGS2
9df272984eacf4e0ea87f1f80e4fdcc9ea1a7a37
[ "MIT" ]
null
null
null
alab/norm.py
WeAllOneCode/PGS2
9df272984eacf4e0ea87f1f80e4fdcc9ea1a7a37
[ "MIT" ]
null
null
null
alab/norm.py
WeAllOneCode/PGS2
9df272984eacf4e0ea87f1f80e4fdcc9ea1a7a37
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2015 University of Southern California and # Nan Hua # # Authors: Nan Hua # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eith...
31.032609
123
0.515762
0
0
0
0
0
0
0
0
1,993
0.349037
b342a3c46ccc9eff45c7a93f20bcee1cba5cd708
23,313
py
Python
src/radixlib/provider.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
32
2022-01-12T16:52:28.000Z
2022-03-24T18:05:47.000Z
src/radixlib/provider.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
3
2022-01-12T17:01:55.000Z
2022-02-12T15:14:16.000Z
src/radixlib/provider.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
1
2022-01-21T04:28:07.000Z
2022-01-21T04:28:07.000Z
from radixlib.api_types.identifiers import ( TransactionIdentifier, ValidatorIdentifier, NetworkIdentifier, AccountIdentifier, TokenIdentifier, StateIdentifier, ) from radixlib.actions import ActionType from radixlib.network import Network import radixlib as radix import requests from typing im...
39.313659
134
0.59306
22,954
0.984601
0
0
0
0
0
0
14,539
0.623643
b345ff960926f97d7b31e1112f2806939c9439c7
1,127
py
Python
db_etl_update_db/queries.py
publichealthengland/coronavirus-dashboard-pipeline-etl
efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c
[ "MIT" ]
7
2021-02-14T12:42:56.000Z
2022-03-02T09:14:22.000Z
db_etl_update_db/queries.py
publichealthengland/coronavirus-dashboard-pipeline-etl
efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c
[ "MIT" ]
19
2021-11-03T09:21:00.000Z
2022-03-07T09:26:47.000Z
db_etl_update_db/queries.py
publichealthengland/coronavirus-dashboard-pipeline-etl
efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c
[ "MIT" ]
2
2021-03-03T16:52:51.000Z
2022-02-28T16:22:33.000Z
#!/usr/bin python3 STATS_QUERY = """\ INSERT INTO covid19.release_stats (release_id, record_count) SELECT ts.release_id AS id, COUNT(*) AS counter FROM covid19.time_series AS ts WHERE ts.partition_id = ANY('{partitions}'::VARCHAR[]) GROUP BY ts.release_id ON CONFLICT ( release_id ) DO UPDATE SET record_count = EXC...
43.346154
75
0.651287
0
0
0
0
0
0
0
0
1,087
0.964508
b34624bfe3809ef151eb67f5a9916a24938c1e64
3,109
py
Python
setup.py
Mr0l3/filometro
46af52121fc3ed94935c9965d2ff51d2d26d1809
[ "MIT" ]
null
null
null
setup.py
Mr0l3/filometro
46af52121fc3ed94935c9965d2ff51d2d26d1809
[ "MIT" ]
null
null
null
setup.py
Mr0l3/filometro
46af52121fc3ed94935c9965d2ff51d2d26d1809
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys from shutil import rmtree from setuptools import setup, find_packages, Command from filometro import __version__ from filometro import __author__ here = os.path.abspath(os.path.dirname(__file__)) class PublishCommand(Command): """Support setup.py publish.""" d...
30.480392
129
0.630749
955
0.306286
0
0
141
0.045221
0
0
1,525
0.489096
b346352117cdba0c6b2f29860a945cac009480d1
2,953
py
Python
nmcli/dummy/_device.py
thex12/nmcli
af0df0283b2d8dbf9158248e69cf1aebcdabeaa1
[ "MIT" ]
1
2021-12-29T17:02:28.000Z
2021-12-29T17:02:28.000Z
nmcli/dummy/_device.py
thex12/nmcli
af0df0283b2d8dbf9158248e69cf1aebcdabeaa1
[ "MIT" ]
45
2021-01-04T12:05:07.000Z
2021-04-21T14:35:55.000Z
nmcli/dummy/_device.py
thex12/nmcli
af0df0283b2d8dbf9158248e69cf1aebcdabeaa1
[ "MIT" ]
2
2021-03-26T12:35:07.000Z
2021-05-01T02:15:16.000Z
from typing import List, Tuple from .._device import DeviceControlInterface, DeviceDetails from ..data.device import Device, DeviceWifi class DummyDeviceControl(DeviceControlInterface): @property def show_args(self): return self._show_args @property def connect_args(self): return self...
31.084211
69
0.651202
2,815
0.953268
0
0
434
0.146969
0
0
43
0.014561
b34719cd1fc2bb1e55eb9ba89ae807337753e699
801
py
Python
examples/abcbook/example206.py
martinlackner/approval-multiwinner
17bb6294b1910531b66c457f7b1a34a966d4113d
[ "MIT" ]
2
2019-07-10T08:54:43.000Z
2019-09-09T16:17:04.000Z
examples/abcbook/example206.py
martinlackner/approval-multiwinner
17bb6294b1910531b66c457f7b1a34a966d4113d
[ "MIT" ]
1
2019-09-11T21:29:47.000Z
2019-09-11T21:29:47.000Z
examples/abcbook/example206.py
martinlackner/approval-multiwinner
17bb6294b1910531b66c457f7b1a34a966d4113d
[ "MIT" ]
1
2019-09-11T16:56:23.000Z
2019-09-11T16:56:23.000Z
""" Example 2.6 (PAV, seq-PAV, revseq-PAV). From "Multi-Winner Voting with Approval Preferences" by Martin Lackner and Piotr Skowron https://arxiv.org/abs/2007.01795 """ from abcvoting import abcrules from abcvoting.preferences import Profile from abcvoting import misc from abcvoting.output import output, DETAILS ou...
24.272727
87
0.705368
0
0
0
0
0
0
0
0
242
0.302122
b3490a3f712a2661b2490d387f96a6b22dd40ef8
7,605
py
Python
Cogs/Encode.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/Encode.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/Encode.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
import asyncio import discord from discord.ext import commands import base64 import binascii import re from Cogs import Nullify def setup(bot): # Add the bot and deps settings = bot.get_cog("Settings") bot.add_cog(Encode(bot, settings)) class Encode: # Init with the bot reference def __init__(self, bot, set...
30.298805
126
0.687968
7,354
0.966995
0
0
5,362
0.705062
5,058
0.665089
1,795
0.236029
b34955dfe5c35177be930f5f64d0fb5e134d2832
1,968
py
Python
9.classes/a_first_look_at_classes.py
yuishihara/python_tutorial
c88db5b1c002dcf69e183ed1a45c02a08aee905c
[ "MIT" ]
null
null
null
9.classes/a_first_look_at_classes.py
yuishihara/python_tutorial
c88db5b1c002dcf69e183ed1a45c02a08aee905c
[ "MIT" ]
null
null
null
9.classes/a_first_look_at_classes.py
yuishihara/python_tutorial
c88db5b1c002dcf69e183ed1a45c02a08aee905c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class MyClass: """A simple example class""" i = 12345 def f(self): return 'hello world' def class_objects(): print(MyClass.i) print(MyClass.f) print(MyClass.f(None)) x = MyClass() class Complex: def __init__(self, realpart, imagpart): ...
18.055046
47
0.554878
798
0.405488
0
0
0
0
0
0
202
0.102642
b34957302a3231537efa791864b2e7c0c023c81a
245
py
Python
40-49/44. strict_zip/strict_zip.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
1
2021-11-30T05:03:24.000Z
2021-11-30T05:03:24.000Z
40-49/44. strict_zip/strict_zip.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
null
null
null
40-49/44. strict_zip/strict_zip.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
2
2021-04-18T05:26:43.000Z
2021-11-28T18:46:43.000Z
from itertools import zip_longest def strict_zip(*sequences): sentinel = object() for tup in zip_longest(*sequences, fillvalue=sentinel): if sentinel in tup: raise ValueError('value out of range') yield tup
24.5
59
0.669388
0
0
208
0.84898
0
0
0
0
20
0.081633
b349c7b8b877c643ef6d69427ce58c59318ed868
1,435
py
Python
src/tm/config/system/routes.py
calopez/pyramid_auth_api
d7854cf33ef5225f9e5d67c738775eaec99fb004
[ "MIT" ]
null
null
null
src/tm/config/system/routes.py
calopez/pyramid_auth_api
d7854cf33ef5225f9e5d67c738775eaec99fb004
[ "MIT" ]
2
2019-12-26T17:21:06.000Z
2020-01-06T19:31:59.000Z
src/tm/config/system/routes.py
calopez/pyramid_auth_api
d7854cf33ef5225f9e5d67c738775eaec99fb004
[ "MIT" ]
null
null
null
from pyramid.response import Response def my_view(request): return { 'user': { 'friendly_name': 'Carlos Andres Lopez'}} def home(request): return Response(''' <div style="margin: 200px"> <form action="login/facebook" method="POST"> <input type="submit" value="Authenticate With Facebook"...
39.861111
94
0.658537
0
0
0
0
0
0
0
0
868
0.604878
b34a6562345bbb78b3671e1bb467aac47ea7b5ce
1,664
py
Python
omega_miya/plugins/bilibili_dynamic_monitor/util.py
Ailitonia/nonebot_miya
71d8cf3e91bbb0dd63cbee85fd757c738b99f10c
[ "MIT" ]
5
2020-10-03T14:24:41.000Z
2021-03-05T12:36:44.000Z
omega_miya/plugins/bilibili_dynamic_monitor/util.py
Ailitonia/nonebot_miya
71d8cf3e91bbb0dd63cbee85fd757c738b99f10c
[ "MIT" ]
null
null
null
omega_miya/plugins/bilibili_dynamic_monitor/util.py
Ailitonia/nonebot_miya
71d8cf3e91bbb0dd63cbee85fd757c738b99f10c
[ "MIT" ]
null
null
null
import base64 import aiohttp from io import BytesIO from nonebot import log # 图片转base64 async def pic_2_base64(url: str) -> str: async def get_image(pic_url: str): timeout_count = 0 while timeout_count < 3: try: timeout = aiohttp.ClientTimeout(total=10) ...
39.619048
98
0.546875
0
0
0
0
0
0
1,573
0.941916
412
0.246707
b34a72eb51bbf4be0f21e5a82d02a446a82a711f
2,972
py
Python
server_obj.py
varadhodiyil/vision_pipeline
3cf2925b9d799bbd0dbf213d23ca35bfed927381
[ "MIT" ]
1
2020-10-05T10:46:44.000Z
2020-10-05T10:46:44.000Z
server_obj.py
varadhodiyil/vision_pipeline
3cf2925b9d799bbd0dbf213d23ca35bfed927381
[ "MIT" ]
null
null
null
server_obj.py
varadhodiyil/vision_pipeline
3cf2925b9d799bbd0dbf213d23ca35bfed927381
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import socket import numpy as np from PIL import Image try: import cPickle as pickle except ImportError: import pickle from datetime import datetime import threading from client_send_message import MessageSender from color_classifier import detect_color import ...
27.018182
92
0.569314
0
0
0
0
0
0
0
0
804
0.270525
b34c9285365db87ed1c599e4cb5dbc704c6fe688
223
py
Python
blazeform/tests/renderers/withaction.py
blazelibs/blazeform
29722ed6398ab9883dd1e1d0e9d1cb04ed8bc0a7
[ "BSD-3-Clause" ]
null
null
null
blazeform/tests/renderers/withaction.py
blazelibs/blazeform
29722ed6398ab9883dd1e1d0e9d1cb04ed8bc0a7
[ "BSD-3-Clause" ]
6
2017-05-15T14:08:46.000Z
2020-10-23T21:31:00.000Z
blazeform/tests/renderers/withaction.py
blazelibs/blazeform
29722ed6398ab9883dd1e1d0e9d1cb04ed8bc0a7
[ "BSD-3-Clause" ]
1
2020-07-01T21:08:38.000Z
2020-07-01T21:08:38.000Z
from __future__ import absolute_import from blazeform.form import Form class TestForm(Form): def __init__(self): Form.__init__(self, 'withactionform', action='/submitto') self.add_text('text', 'Text')
24.777778
65
0.70852
149
0.668161
0
0
0
0
0
0
39
0.174888
b34ceef8d6c2e4dc17ff23fbef63dc632e613112
4,332
py
Python
legacy/metamodel/nn_generator/nn_trainer_evaluate.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
legacy/metamodel/nn_generator/nn_trainer_evaluate.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
legacy/metamodel/nn_generator/nn_trainer_evaluate.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
# coding=utf-8 """ 'input_matrix.py' script hosts the following functions: (1) collect CEA inputs (2) collect CEA outputs (demands) (3) add delay to time-sensitive inputs (4) return the input and target matrices """ from math import sqrt import pandas as pd from legacy.metamodel.nn_generator import ra...
47.086957
106
0.707756
0
0
0
0
0
0
0
0
554
0.127886
b34f561782604d15fbd0ad5fb7b41eb487472431
1,512
py
Python
src/feedfetcher.py
moretti/comic-scraper
12c767499d64f43e0a9703598a6adcad6ffd6330
[ "Unlicense", "MIT" ]
1
2015-02-17T12:37:28.000Z
2015-02-17T12:37:28.000Z
src/feedfetcher.py
moretti/comic-scraper
12c767499d64f43e0a9703598a6adcad6ffd6330
[ "Unlicense", "MIT" ]
null
null
null
src/feedfetcher.py
moretti/comic-scraper
12c767499d64f43e0a9703598a6adcad6ffd6330
[ "Unlicense", "MIT" ]
null
null
null
import feedparser import models import time import datetime as dt from bs4 import BeautifulSoup VALID_IMAGE_ATTRIBUTES = ('alt', 'title', 'src') def fetch(url): f = feedparser.parse(url) feed = models.Feed() feed.link = url feed.website = f.feed.get('link') feed.title = f.feed.get('title') f...
25.2
105
0.618386
0
0
0
0
0
0
0
0
119
0.078704
b351c2add51385b9b29daeb766b3694fbfb43cd6
365
py
Python
src/string_format.py
thehimel/hackerrank-python
e7b172b9379f89d4dbf99161491ae1e552f2692c
[ "MIT" ]
null
null
null
src/string_format.py
thehimel/hackerrank-python
e7b172b9379f89d4dbf99161491ae1e552f2692c
[ "MIT" ]
null
null
null
src/string_format.py
thehimel/hackerrank-python
e7b172b9379f89d4dbf99161491ae1e552f2692c
[ "MIT" ]
null
null
null
""" https://www.hackerrank.com/challenges/whats-your-name/problem Input: Ross Taylor Output: Hello Ross Taylor! You just delved into python. """ def print_full_name(first, last): print(f'Hello {first} {last}! You just delved into python.') if __name__ == '__main__': first_name, last_name = 'Ross', 'Taylor...
18.25
64
0.715068
0
0
0
0
0
0
0
0
223
0.610959