hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
35c0ed329cd7d8d2056b7e34556321128f797142
1,457
py
Python
torch3d/models/pointnet2.py
zhangmozhe/torch3d
d47e9b243e520f9c0c72a26c271d2c7ad242cb65
[ "BSD-3-Clause" ]
null
null
null
torch3d/models/pointnet2.py
zhangmozhe/torch3d
d47e9b243e520f9c0c72a26c271d2c7ad242cb65
[ "BSD-3-Clause" ]
null
null
null
torch3d/models/pointnet2.py
zhangmozhe/torch3d
d47e9b243e520f9c0c72a26c271d2c7ad242cb65
[ "BSD-3-Clause" ]
1
2020-06-03T15:19:25.000Z
2020-06-03T15:19:25.000Z
import torch import torch.nn as nn from torch3d.nn import SetAbstraction
35.536585
184
0.59094
35c12c665a38adb43714ee6a7e812bc5fee89003
325
py
Python
tests/test_engine.py
znhv/winsio
4d4e69961285ea3dcebc5ad6358e2d753d6b4f9d
[ "MIT" ]
null
null
null
tests/test_engine.py
znhv/winsio
4d4e69961285ea3dcebc5ad6358e2d753d6b4f9d
[ "MIT" ]
null
null
null
tests/test_engine.py
znhv/winsio
4d4e69961285ea3dcebc5ad6358e2d753d6b4f9d
[ "MIT" ]
null
null
null
import unittest.mock as mock import pytest from brainstorm.scripts import engine from brainstorm.games import calc # def test_player_ready(monkeypatch): # with monkeypatch.context() as m: # m.setattr('builtins.input', lambda prompt="": "y") # result = engine.player_ready() # assert result is ...
25
60
0.707692
35c16cadc73c78b1e8e17420e27d77517793b258
1,328
py
Python
Day01.py
peiliming007/PythonByJoker
f457706bcdc43c8743dd88a210c5ca0b28aabd21
[ "Apache-2.0" ]
null
null
null
Day01.py
peiliming007/PythonByJoker
f457706bcdc43c8743dd88a210c5ca0b28aabd21
[ "Apache-2.0" ]
null
null
null
Day01.py
peiliming007/PythonByJoker
f457706bcdc43c8743dd88a210c5ca0b28aabd21
[ "Apache-2.0" ]
null
null
null
#1 celsius=float(input(":>>")) fahrenheit=(9 / 5) *celsius + 32 print("%.1f" % fahrenheit) #2 radius=float(input(":>>")) length=float(input(":>>")) area= radius*radius*3.14159265 volume=area*length print("The area is %.4f" % area ) print("The volume is %.1f" % volume) #3 feet=float(input(":>>")) me...
21.419355
65
0.637048
35c4595b0ebd1fa1dbe98d7023f5193c7b298c15
5,595
py
Python
botx/bots/bots.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/bots/bots.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/bots/bots.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Implementation for bot classes.""" import asyncio from dataclasses import InitVar, field from typing import Any, Callable, Dict, List from weakref import WeakSet from loguru import logger from pydantic.dataclasses import dataclass from botx import concurrency, exception_handlers, exceptions, shared, typing from b...
36.331169
87
0.648794
35c7b5af3988bd0290ffa3910c3ac39d7b3a8d95
4,242
py
Python
orka_inventory.py
jeff-vincent/orka-ansible-dynamic-inventory
0a0e19597d5cd06e6bb0214a96826376dca76a1e
[ "MIT" ]
null
null
null
orka_inventory.py
jeff-vincent/orka-ansible-dynamic-inventory
0a0e19597d5cd06e6bb0214a96826376dca76a1e
[ "MIT" ]
null
null
null
orka_inventory.py
jeff-vincent/orka-ansible-dynamic-inventory
0a0e19597d5cd06e6bb0214a96826376dca76a1e
[ "MIT" ]
1
2022-01-05T20:31:53.000Z
2022-01-05T20:31:53.000Z
#!/usr/bin/python3 import argparse import json import os import subprocess if __name__ == '__main__': args = parse_args() name_contains = os.environ.get('ANSIBLE_NAME_CONTAINS') main(args, name_contains)
32.883721
99
0.610797
35c890b336369e56ae920d6e9a1f19392e8e1399
8,647
py
Python
tests/test_release_summary.py
kids-first/kf-task-release-reports
6c973fc82b7dab89c45832dd0b61a1ef85a5ebf7
[ "Apache-2.0" ]
null
null
null
tests/test_release_summary.py
kids-first/kf-task-release-reports
6c973fc82b7dab89c45832dd0b61a1ef85a5ebf7
[ "Apache-2.0" ]
11
2018-10-26T17:09:17.000Z
2019-09-23T14:53:53.000Z
tests/test_release_summary.py
kids-first/kf-task-release-reports
6c973fc82b7dab89c45832dd0b61a1ef85a5ebf7
[ "Apache-2.0" ]
null
null
null
import boto3 import datetime import requests import pytest from unittest.mock import patch from reports.reporting import release_summary from collections import Counter from functools import partial ENTITIES = [ 'participants', 'biospecimens', 'phenotypes', 'genomic-files', 'study-files', 'rea...
35.731405
77
0.663814
35cadb5be4b90796980534e95cf42d32733a5cb1
875
py
Python
apps/payroll/models/employee.py
youssriaboelseod/pyerp
9ef9873e2ff340010656f0c518bccf9d7a14dbaa
[ "MIT" ]
115
2019-08-18T16:12:54.000Z
2022-03-29T14:17:20.000Z
apps/payroll/models/employee.py
youssriaboelseod/pyerp
9ef9873e2ff340010656f0c518bccf9d7a14dbaa
[ "MIT" ]
22
2019-09-09T01:34:54.000Z
2022-03-12T00:33:40.000Z
apps/payroll/models/employee.py
youssriaboelseod/pyerp
9ef9873e2ff340010656f0c518bccf9d7a14dbaa
[ "MIT" ]
83
2019-08-17T17:09:20.000Z
2022-03-25T04:46:53.000Z
# Django Library from django.contrib.auth.models import User from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ # Thirdparty Library from apps.base.models import PyFather # Tabla de Empleados
35
80
0.742857
35cba22e1908f51ae40f6b613a82f59b7cb71986
89
py
Python
apps/players/apps.py
xeroz/admin-django
e10c5eb87f9aea7a714e5be2307969a3b998706c
[ "MIT" ]
12
2018-03-20T21:38:53.000Z
2021-10-31T10:00:12.000Z
apps/players/apps.py
xeroz/admin-django
e10c5eb87f9aea7a714e5be2307969a3b998706c
[ "MIT" ]
79
2018-03-18T14:26:47.000Z
2022-03-01T15:51:40.000Z
apps/players/apps.py
xeroz/admin-django
e10c5eb87f9aea7a714e5be2307969a3b998706c
[ "MIT" ]
4
2018-05-18T15:39:56.000Z
2020-10-29T09:28:41.000Z
from django.apps import AppConfig
14.833333
33
0.752809
35cbb4dfe9729e65b9b76b8a0c6acb3a8449dd0a
8,063
py
Python
tas/__main__.py
lispsil/tas
cccc48b3de23050acd094d62b9dae9ff2db81ca8
[ "MIT" ]
1
2020-03-12T15:29:41.000Z
2020-03-12T15:29:41.000Z
tas/__main__.py
lispsil/tas
cccc48b3de23050acd094d62b9dae9ff2db81ca8
[ "MIT" ]
null
null
null
tas/__main__.py
lispsil/tas
cccc48b3de23050acd094d62b9dae9ff2db81ca8
[ "MIT" ]
1
2021-10-10T18:21:24.000Z
2021-10-10T18:21:24.000Z
import os import signal import atexit import json import time from pathlib import Path import subprocess import argparse import pprint from distutils.util import strtobool children_pid = [] cmd_parser = argparse.ArgumentParser(add_help=False) cmd_parser.add_argument( "cmd", type=str, choices=["new", "del", "run"...
36.156951
87
0.549423
35cc4a008448b3ebfc8b1a072bfd124465d46230
2,410
py
Python
1._metis_models_and_data_2019-12-16b/METIS source code/Indicators/kpis/Transmission usage.py
tamas-borbath/METIS
cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036
[ "CC-BY-4.0" ]
1
2021-12-07T09:05:48.000Z
2021-12-07T09:05:48.000Z
1._metis_models_and_data_2019-12-16b/METIS source code/Indicators/kpis/Transmission usage.py
tamas-borbath/METIS_data_and_scripts
cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036
[ "CC-BY-4.0" ]
null
null
null
1._metis_models_and_data_2019-12-16b/METIS source code/Indicators/kpis/Transmission usage.py
tamas-borbath/METIS_data_and_scripts
cf3dc0f0f96ccb6ad72ddf15ba7e31ddc6339036
[ "CC-BY-4.0" ]
null
null
null
######################################################## # Copyright (c) 2015-2017 by European Commission. # # All Rights Reserved. # ######################################################## extends("BaseKPI.py") """ Transmission usage (%) ---------------------- Indexed by * sco...
41.551724
209
0.734855
35cc8dce8cfa78125ee76beb2078c100cbc1294f
672
py
Python
apps/bloguser/migrations/0003_auto_20180505_1717.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/bloguser/migrations/0003_auto_20180505_1717.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/bloguser/migrations/0003_auto_20180505_1717.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
# Generated by Django 2.0.3 on 2018-05-05 17:17 from django.db import migrations, models
28
135
0.610119
35ccd2a1b21c453583e810926aac3c4fcc8ecf4b
10,808
py
Python
qrcodescanner.py
globophobe/pygame-qrcode-demo
3a375b4e658712fed56df0005314bdd0d92ccfff
[ "MIT" ]
3
2015-04-08T12:54:06.000Z
2016-08-13T04:32:40.000Z
qrcodescanner.py
globophobe/qrcodescanner-base
3a375b4e658712fed56df0005314bdd0d92ccfff
[ "MIT" ]
null
null
null
qrcodescanner.py
globophobe/qrcodescanner-base
3a375b4e658712fed56df0005314bdd0d92ccfff
[ "MIT" ]
3
2018-01-16T02:49:18.000Z
2019-05-21T19:52:34.000Z
# -*- coding: utf-8 -*- import os import datetime import logging import requests import numpy import cv2 import zbar from Queue import Queue from threading import Thread from PIL import Image logger = logging.getLogger(__name__) TEMP_DIR = os.path.join(os.getcwd(), 'temp') def get_temp_dir(): """Create TEMP_DIR ...
34.864516
78
0.560696
35cdb055a4bb2320fd07ae79ac8bec7d003524cf
4,495
py
Python
rescape_region/schema_models/settings/settings_schema.py
calocan/rescape-region
8cb0c4d5e2f4c92939eb9a30473808decdb4bef2
[ "MIT" ]
1
2021-05-08T12:04:23.000Z
2021-05-08T12:04:23.000Z
rescape_region/schema_models/settings/settings_schema.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
15
2021-04-06T18:05:04.000Z
2022-03-12T00:22:35.000Z
rescape_region/schema_models/settings/settings_schema.py
rescapes/rescape-region
b247aa277928d126bcf020c8204994b00ae4c18d
[ "MIT" ]
null
null
null
import graphene from django.db import transaction from graphene import InputObjectType, Mutation, Field, ObjectType from graphene_django.types import DjangoObjectType from graphql_jwt.decorators import login_required from rescape_graphene import REQUIRE, graphql_update_or_create, graphql_query, guess_update_or_create, ...
36.844262
117
0.754171
35d3caf546997ac4a3e9ab5b7bbe7a7b734d8898
72,977
py
Python
juju/client/_client8.py
wallyworld/python-libjuju
1de9ad1cea120a691041c243877a6316ba648900
[ "Apache-2.0" ]
null
null
null
juju/client/_client8.py
wallyworld/python-libjuju
1de9ad1cea120a691041c243877a6316ba648900
[ "Apache-2.0" ]
1
2019-02-11T10:00:15.000Z
2019-02-11T10:06:20.000Z
juju/client/_client8.py
CanonicalBootStack/python-libjuju
43fb846042f4cd7d31ae11b1542862477bd76d36
[ "Apache-2.0" ]
null
null
null
# DO NOT CHANGE THIS FILE! This file is auto-generated by facade.py. # Changes will be overwritten/lost when the file is regenerated. from juju.client.facade import Type, ReturnMapping from juju.client._definitions import *
57.057858
163
0.357113
35d5d3f3a69a394f6e66a0e4e4556dcfbb654d90
4,637
py
Python
dectate/app.py
morepath/dectate
511920acbeba5b070c532c9b0fa54b53c2baeb0a
[ "BSD-3-Clause" ]
23
2016-03-24T20:13:43.000Z
2021-08-10T05:16:41.000Z
dectate/app.py
morepath/dectate
511920acbeba5b070c532c9b0fa54b53c2baeb0a
[ "BSD-3-Clause" ]
46
2016-03-29T14:03:39.000Z
2021-04-18T14:39:54.000Z
dectate/app.py
morepath/dectate
511920acbeba5b070c532c9b0fa54b53c2baeb0a
[ "BSD-3-Clause" ]
6
2016-04-06T14:08:36.000Z
2020-04-19T14:22:38.000Z
import sys from .config import Configurable, Directive, commit, create_code_info def directive(action_factory): """Create a classmethod to hook action to application class. You pass in a :class:`dectate.Action` or a :class:`dectate.Composite` subclass and can attach the result as a class method to...
31.544218
78
0.665301
35d5e04e5892b72fc7057d291530a91e4883bc62
1,127
py
Python
app/user/serializers.py
falleng0d/medicar-backend
30bedff54ae84da7a67350852cd508c54e5bf6e7
[ "MIT" ]
null
null
null
app/user/serializers.py
falleng0d/medicar-backend
30bedff54ae84da7a67350852cd508c54e5bf6e7
[ "MIT" ]
null
null
null
app/user/serializers.py
falleng0d/medicar-backend
30bedff54ae84da7a67350852cd508c54e5bf6e7
[ "MIT" ]
null
null
null
from collections import OrderedDict from django.contrib.auth import get_user_model # If used custom user model from rest_framework import serializers UserModel = get_user_model()
34.151515
87
0.645075
35d619e412abb96bf3e95ecb361e6a948cab08cb
2,542
py
Python
easy-receptive-fields-pytorch/receptivefield/tests/test_pytorch.py
Swinsie/cv-rep-fork
1c3454934645e3f9afa39ba90c3b216eb9ed7f75
[ "Apache-2.0" ]
null
null
null
easy-receptive-fields-pytorch/receptivefield/tests/test_pytorch.py
Swinsie/cv-rep-fork
1c3454934645e3f9afa39ba90c3b216eb9ed7f75
[ "Apache-2.0" ]
null
null
null
easy-receptive-fields-pytorch/receptivefield/tests/test_pytorch.py
Swinsie/cv-rep-fork
1c3454934645e3f9afa39ba90c3b216eb9ed7f75
[ "Apache-2.0" ]
null
null
null
import pytest import torch.nn as nn from numpy.testing import assert_allclose from receptivefield.pytorch import PytorchReceptiveField from receptivefield.image import get_default_image from receptivefield.types import ImageShape def model_fn() -> nn.Module: model = SimpleVGG(disable_activations=True) model...
29.218391
87
0.616444
35d72c0843e71e8c73c42625fa71b7593cdf2c85
192
py
Python
KSFGHAction/__init__.py
KOLANICH-GHActions/KSFGHAction.py
e1d54ae0043d93d8b190f8e758b978bf8e779c51
[ "Unlicense" ]
null
null
null
KSFGHAction/__init__.py
KOLANICH-GHActions/KSFGHAction.py
e1d54ae0043d93d8b190f8e758b978bf8e779c51
[ "Unlicense" ]
3
2019-12-23T22:58:40.000Z
2019-12-25T11:20:13.000Z
KSFGHAction/__init__.py
KOLANICH/KSFGHAction.py
e1d54ae0043d93d8b190f8e758b978bf8e779c51
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import typing from .utils import ClassDictMeta from .issueParser import * from .linter import * from miniGHAPI.GitHubAPI import * from miniGHAPI.GHActionsEnv import *
19.2
36
0.791667
35da15160bebb0c093e96b03a913df011244fd8f
831
py
Python
model_zoo/jag_utils/python/build_inclusive_from_exclusive.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
194
2016-07-19T15:40:21.000Z
2022-03-19T08:06:10.000Z
model_zoo/jag_utils/python/build_inclusive_from_exclusive.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
1,021
2016-07-19T12:56:31.000Z
2022-03-29T00:41:47.000Z
model_zoo/jag_utils/python/build_inclusive_from_exclusive.py
jonesholger/lbann
3214f189a1438565d695542e076c4fa8e7332d34
[ "Apache-2.0" ]
74
2016-07-28T18:24:00.000Z
2022-01-24T19:41:04.000Z
import sys if len(sys.argv) != 4 : print 'usage:', sys.argv[0], 'index_fn id_mapping_fn output_fn' exit(9) a = open(sys.argv[1]) a.readline() header = a.readline() dir = a.readline() #build map: filename -> set of bad samples mp = {} mp_good = {} mp_bad = {} for line in a : t = line.split() mp[t[0]] = set() ...
17.680851
65
0.56438
35db3c607e8460d5391f5e65c6e7e40b3c6921ac
7,147
py
Python
app/tests/functional/test_user.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
3
2019-11-16T06:51:17.000Z
2019-11-21T01:18:31.000Z
app/tests/functional/test_user.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
27
2019-11-17T13:56:49.000Z
2021-06-28T12:04:18.000Z
app/tests/functional/test_user.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
1
2021-04-23T23:57:28.000Z
2021-04-23T23:57:28.000Z
import json from app import utils
31.484581
78
0.646705
35dd29f78d96791ddc38a66b186a7265c181d8b6
15,814
py
Python
MultiAV/MultiAV.py
Virag007/Multi-Malware-Detection-Engine-based-on-Blockchain
80e91b2f2ec15d271141568451492fefd88f8ace
[ "MIT" ]
2
2020-11-18T10:00:22.000Z
2020-12-18T13:48:25.000Z
MultiAV/MultiAV.py
Virag007/Multi-Malware-Detection-Engine-based-on-Blockchain
80e91b2f2ec15d271141568451492fefd88f8ace
[ "MIT" ]
null
null
null
MultiAV/MultiAV.py
Virag007/Multi-Malware-Detection-Engine-based-on-Blockchain
80e91b2f2ec15d271141568451492fefd88f8ace
[ "MIT" ]
1
2020-12-18T13:48:27.000Z
2020-12-18T13:48:27.000Z
from threading import * from tkinter import * from tkinter.filedialog import askopenfilename import tkinter, tkinter.scrolledtext import os import sys import urllib.request import glob import time import hashlib import quarantaene from vta import vtapi import argparse os_name = sys.platform terminations = [] if "win"...
34.008602
155
0.608511
35de2fad41fb3b2060ce525003204693b12af0ed
8,421
py
Python
model.py
ishine/Speaker_Verification
69935cf422c2fbfe1258c5b4e682c46cf07ec4f4
[ "MIT" ]
337
2018-11-12T14:52:43.000Z
2022-03-09T09:23:33.000Z
model.py
ishine/Speaker_Verification
69935cf422c2fbfe1258c5b4e682c46cf07ec4f4
[ "MIT" ]
27
2018-12-17T09:53:18.000Z
2022-02-17T01:43:51.000Z
model.py
ishine/Speaker_Verification
69935cf422c2fbfe1258c5b4e682c46cf07ec4f4
[ "MIT" ]
112
2018-11-29T05:29:31.000Z
2022-03-23T09:23:19.000Z
import tensorflow as tf import numpy as np import os import time from utils import random_batch, normalize, similarity, loss_cal, optim from configuration import get_config from tensorflow.contrib import rnn config = get_config() # Test Session
49.828402
134
0.609785
35deafd975317c421134eb40936909b54e0afa4b
1,701
py
Python
server/swagger_server/test/test_statements_controller.py
lhannest/pharos-beacon
101da505203622a76882c1b21dc861a8143ed0d1
[ "MIT" ]
null
null
null
server/swagger_server/test/test_statements_controller.py
lhannest/pharos-beacon
101da505203622a76882c1b21dc861a8143ed0d1
[ "MIT" ]
null
null
null
server/swagger_server/test/test_statements_controller.py
lhannest/pharos-beacon
101da505203622a76882c1b21dc861a8143ed0d1
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from flask import json from six import BytesIO from swagger_server.models.beacon_annotation import BeaconAnnotation # noqa: E501 from swagger_server.models.beacon_statement import BeaconStatement # noqa: E501 from swagger_server.test import BaseTestCase if ...
31.5
82
0.562022
35df05205df26d9b8705fd6ac8ad49277f753502
752
py
Python
mailmerge/smtp_dummy.py
Denzeldeveloper/Python-Auto-MailMerge-
4df95a67ef1b1c0f79a09f6c1c373b81d4220822
[ "MIT" ]
null
null
null
mailmerge/smtp_dummy.py
Denzeldeveloper/Python-Auto-MailMerge-
4df95a67ef1b1c0f79a09f6c1c373b81d4220822
[ "MIT" ]
null
null
null
mailmerge/smtp_dummy.py
Denzeldeveloper/Python-Auto-MailMerge-
4df95a67ef1b1c0f79a09f6c1c373b81d4220822
[ "MIT" ]
null
null
null
"""Dummy SMTP API."""
25.066667
71
0.606383
35dfaf06e8a5f5aaf7ae1089fe23e645c5b81780
3,395
py
Python
steepshot_bot/steepshot_api.py
weyoume/wetelegrambot
fcee44a701319b190484e91b3ce444571a5bdd90
[ "MIT" ]
null
null
null
steepshot_bot/steepshot_api.py
weyoume/wetelegrambot
fcee44a701319b190484e91b3ce444571a5bdd90
[ "MIT" ]
null
null
null
steepshot_bot/steepshot_api.py
weyoume/wetelegrambot
fcee44a701319b190484e91b3ce444571a5bdd90
[ "MIT" ]
null
null
null
import json import logging import requests from requests.exceptions import RequestException from steepshot_bot import settings from steepshot_bot.exceptions import SteepshotServerError from steepshot_bot.steem import get_signed_transaction logger = logging.getLogger(__name__) API_URLS = { 'posts_recent': setti...
34.642857
110
0.648895
35e0f0d3502703e87d1e48941fca0756c0155a59
10,315
py
Python
kernelized_correlation_filter.py
ElnuraMusaoglu/KernelizedCorrelationFilter
78eab4297218b107cf7688e7e7c76d79b5609893
[ "MIT" ]
null
null
null
kernelized_correlation_filter.py
ElnuraMusaoglu/KernelizedCorrelationFilter
78eab4297218b107cf7688e7e7c76d79b5609893
[ "MIT" ]
null
null
null
kernelized_correlation_filter.py
ElnuraMusaoglu/KernelizedCorrelationFilter
78eab4297218b107cf7688e7e7c76d79b5609893
[ "MIT" ]
null
null
null
''' Elnura Musaoglu 2021 ''' import numpy as np import cv2 from numpy.fft import fftn, ifftn, fft2, ifft2, fftshift from numpy import conj, real from utils import gaussian2d_rolled_labels, cos_window from hog_cpp.fhog.get_hog import get_hog vgg_path = 'model/imagenet-vgg-verydeep-19.mat' vgg_model = create_model()...
40.93254
136
0.575279
35e24c24b699b1a26e6f2ffbc1f1f23fc306cb6b
3,839
py
Python
sketches/demo_02a/editor.py
heerdyes/raspi-art
2e38c1926b6a6f4c745e0629b193d9c3c15acc22
[ "MIT" ]
1
2021-02-02T12:36:07.000Z
2021-02-02T12:36:07.000Z
sketches/demo_02a/editor.py
heerdyes/raspi-art
2e38c1926b6a6f4c745e0629b193d9c3c15acc22
[ "MIT" ]
null
null
null
sketches/demo_02a/editor.py
heerdyes/raspi-art
2e38c1926b6a6f4c745e0629b193d9c3c15acc22
[ "MIT" ]
null
null
null
from arch import * from wnds import * from helper import * import os
28.021898
79
0.505079
35e6fd9082eae1ca801cddf99ab1c81fb1bb1309
23,626
py
Python
app.py
Ator97/dataMiningDataviz
0cf78b93c45ee08f73045b057f95290f8bf7d26e
[ "Apache-2.0" ]
null
null
null
app.py
Ator97/dataMiningDataviz
0cf78b93c45ee08f73045b057f95290f8bf7d26e
[ "Apache-2.0" ]
null
null
null
app.py
Ator97/dataMiningDataviz
0cf78b93c45ee08f73045b057f95290f8bf7d26e
[ "Apache-2.0" ]
null
null
null
import base64 import datetime import io import dash from dash.dependencies import Input, Output, State import dash_core_components as dcc import dash_html_components as html import dash_table import pandas as pd import plotly.express as px from apyori import apriori from scipy.spatial import distance import plotly.gra...
41.017361
206
0.526496
35e7e19298ec398add76703d93ea4b308eefc9cc
3,394
py
Python
pepys_import/file/highlighter/support/export.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2021-05-14T08:22:47.000Z
2022-02-04T19:48:25.000Z
pepys_import/file/highlighter/support/export.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
1,083
2019-11-06T17:01:07.000Z
2022-03-25T10:26:51.000Z
pepys_import/file/highlighter/support/export.py
debrief/pepys-import
12d29c0e0f69e1119400334983947893e7679b6b
[ "Apache-2.0" ]
4
2019-11-06T12:00:45.000Z
2021-06-09T04:18:28.000Z
import html from tqdm import tqdm from .color_picker import color_for, html_color_for, mean_color_for def export_report(filename, chars, dict_colors, include_key=False): """ Export a HTML report showing all the extraction usages for the file. :param filename: Output filename :param chars: Character...
32.634615
99
0.578079
35e8080312909f6045b82180fc2168f39798312c
4,694
py
Python
Task 4/scripts/utilities_activity7.py
gourab337/Technocolab_DL_Internship
269c578b9eab5a02f65d9c0952e19db69bf9a1b0
[ "MIT" ]
1
2020-11-29T20:09:46.000Z
2020-11-29T20:09:46.000Z
Task 4/scripts/utilities_activity7.py
gourab337/Technocolab_DL_Internship
269c578b9eab5a02f65d9c0952e19db69bf9a1b0
[ "MIT" ]
null
null
null
Task 4/scripts/utilities_activity7.py
gourab337/Technocolab_DL_Internship
269c578b9eab5a02f65d9c0952e19db69bf9a1b0
[ "MIT" ]
1
2020-12-01T05:39:11.000Z
2020-12-01T05:39:11.000Z
"""Utility functions used in Activity 7.""" import random import numpy as np from matplotlib import pyplot as plt from keras.callbacks import TensorBoard def create_groups(data, group_size=7): """Create distinct groups from a continuous series. Parameters ---------- data: np.array Series of...
27.290698
82
0.639966
ea0058bf191d7578f0be7e70bc2cea8837da26ba
10,577
py
Python
pygenenet/CausalNetwork.py
ttdtrang/pygenenet
49cc0c088e4f633f18e0294e42a0603a7027f06d
[ "MIT" ]
null
null
null
pygenenet/CausalNetwork.py
ttdtrang/pygenenet
49cc0c088e4f633f18e0294e42a0603a7027f06d
[ "MIT" ]
null
null
null
pygenenet/CausalNetwork.py
ttdtrang/pygenenet
49cc0c088e4f633f18e0294e42a0603a7027f06d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import itertools __metaclass__ = type def combineIVs(species, IVs, IVscores, IV0,exp_digitized, bins, thresholds): '''score every possible combination of IV in input IVs''' I = [] scores = [] to_remove = [] tj = len(IV0[IV0.notnull()]) bg_score = 0. ...
45.008511
143
0.525102
ea008637c73dda8e84514900695de29b3ed914c6
14,069
py
Python
animation_retarget/animation_retarget_mh.py
curmil/makehuman-utils
1e1a56479bc1deac613802e891abf440cbeb342e
[ "CC0-1.0" ]
3
2018-04-16T15:14:54.000Z
2021-08-11T16:00:58.000Z
animation_retarget/animation_retarget_mh.py
curmil/makehuman-utils
1e1a56479bc1deac613802e891abf440cbeb342e
[ "CC0-1.0" ]
1
2020-10-29T07:53:51.000Z
2020-10-29T07:53:51.000Z
animation_retarget/animation_retarget_mh.py
curmil/makehuman-utils
1e1a56479bc1deac613802e891abf440cbeb342e
[ "CC0-1.0" ]
5
2019-08-09T15:21:50.000Z
2022-02-21T14:02:45.000Z
#!/usr/bin/python """ **Project Name:** MakeHuman **Product Home Page:** http://www.makehuman.org/ **Code Home Page:** https://bitbucket.org/MakeHuman/makehuman/ **Author:** Jonas Hauquier, Thomas Larsson **Copyright(c):** MakeHuman Team 2001-2015 **Licensing:** AGPL3 This program...
36.074359
157
0.665435
ea01af5836b19c682f107e67a34eda620b66f4f3
1,376
py
Python
Python/Config.py
mariocar/Nerf_Aimbot
5afe56c9904b9facc59342e316e126dc11a1157b
[ "MIT" ]
13
2020-10-19T15:16:34.000Z
2021-12-13T19:20:17.000Z
Python/Config.py
mariocar/Nerf_Aimbot
5afe56c9904b9facc59342e316e126dc11a1157b
[ "MIT" ]
1
2022-03-14T18:45:56.000Z
2022-03-20T00:04:04.000Z
Python/Config.py
DDeGonge/Nerf_Aimbot
5afe56c9904b9facc59342e316e126dc11a1157b
[ "MIT" ]
5
2020-10-16T17:27:12.000Z
2022-03-18T17:52:39.000Z
""" MECHANICAL PARAMETERS """ s0_step_per_rev = 27106 s1_step_per_rev = 27106 pitch_travel_rads = 0.5 yaw_travel_rads = 1.2 pitch_center_rads = 0.21 yaw_center_rads = 0.59 default_vel_radps = 2.5 default_accel_radps2 = 20 trigger_min_pwm = 40 trigger_max_pwm = 120 trigger_hold_s = 0.5 """ PI PINOUTS """ half_press...
18.849315
73
0.734012
ea030c574075dd05328271b1ccc630cdf7f9c443
1,303
py
Python
solum-6.0.0/solum/objects/sqlalchemy/execution.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
39
2015-09-26T01:30:52.000Z
2021-05-20T23:37:43.000Z
solum-6.0.0/solum/objects/sqlalchemy/execution.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
solum-6.0.0/solum/objects/sqlalchemy/execution.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
30
2015-10-25T18:06:39.000Z
2020-01-14T12:14:06.000Z
# Copyright 2014 - Rackspace Hosting # # 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 in ...
33.410256
75
0.744436
ea045fe7b9c17066011316e1d2c7191ab7f63a8f
5,143
py
Python
cryptopunks/utils.py
tesla809/colorpunx
bee4557ab87a3804b249eaad4fb83fc96942fad7
[ "Apache-2.0" ]
1
2021-11-19T23:56:15.000Z
2021-11-19T23:56:15.000Z
cryptopunks/utils.py
tesla809/colorpunx
bee4557ab87a3804b249eaad4fb83fc96942fad7
[ "Apache-2.0" ]
null
null
null
cryptopunks/utils.py
tesla809/colorpunx
bee4557ab87a3804b249eaad4fb83fc96942fad7
[ "Apache-2.0" ]
null
null
null
"""Tools for working with Cryptopunk NFTs; this includes utilities for data analysis and image preparation for training machine learning models using Cryptopunks as training data. Functions: get_punk(id) pixel_to_img(pixel_str, dim) flatten(img) unflatten(img) sort_dict_by_function_of_value(d, f) ...
27.356383
180
0.614816
ea058d42499e1a5f03be44819e5b160692dcae59
307
py
Python
newspaper/articles/admin.py
Krishna-Patil/Newspaper_app
2cf209899c00bb6a086aacb0dff4767f75226cb7
[ "MIT" ]
null
null
null
newspaper/articles/admin.py
Krishna-Patil/Newspaper_app
2cf209899c00bb6a086aacb0dff4767f75226cb7
[ "MIT" ]
null
null
null
newspaper/articles/admin.py
Krishna-Patil/Newspaper_app
2cf209899c00bb6a086aacb0dff4767f75226cb7
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Article, ArticleAdmin) admin.site.register(Comment)
17.055556
42
0.736156
ea06238c6c6f8de7ed088df9c80dadbb3372a8f9
1,277
py
Python
GUI/Generic/GTasks.py
gcewing/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
9
2019-07-15T19:03:27.000Z
2021-11-24T19:50:02.000Z
GUI/Generic/GTasks.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
3
2019-09-11T13:22:10.000Z
2020-08-19T20:13:00.000Z
GUI/Generic/GTasks.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
4
2020-02-23T16:50:06.000Z
2022-02-10T07:15:35.000Z
# # PyGUI - Tasks - Generic # from GUI.Properties import Properties, overridable_property
33.605263
83
0.740799
ea06d13a5da8e06d3e01f08a6a3425f88f182886
755
py
Python
presentingfeatures/forms.py
fahimfarhan/cancer-web-app
6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef
[ "MIT" ]
null
null
null
presentingfeatures/forms.py
fahimfarhan/cancer-web-app
6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef
[ "MIT" ]
5
2021-03-18T20:13:38.000Z
2022-01-13T00:35:37.000Z
presentingfeatures/forms.py
fahimfarhan/cancer-web-app
6c5d8c5c90b0909cbd161d2ae87b4f12549bdfef
[ "MIT" ]
null
null
null
from django import forms from presentingfeatures.models import Status, Investigation
26.034483
71
0.545695
ea088f92e58e2a58e35be9d342ed82158fd80454
209
wsgi
Python
generators/app/templates/settings/apache/backend.wsgi
hallucino5105/generator-my-react-project
18a7fbe70d1c847df8a043e1f8845e63938dadd4
[ "Apache-2.0" ]
null
null
null
generators/app/templates/settings/apache/backend.wsgi
hallucino5105/generator-my-react-project
18a7fbe70d1c847df8a043e1f8845e63938dadd4
[ "Apache-2.0" ]
5
2020-02-26T11:29:36.000Z
2020-02-26T11:30:05.000Z
generators/app/templates/settings/apache/backend.wsgi
hallucino5105/generator-my-react-project
18a7fbe70d1c847df8a043e1f8845e63938dadd4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import os import sys import logging logging.basicConfig(stream=sys.stderr) sys.path.append(os.path.dirname(os.path.abspath(__file__))) from app.app import application
16.076923
59
0.77512
ea08f7de993fe4b0b5eb995cb3bc781d63e74534
582
py
Python
mundo2/parte3/partea/ex058.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo2/parte3/partea/ex058.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
mundo2/parte3/partea/ex058.py
fcdennis/CursoPython
485ef7e706af74eae9ee336714ddd8b493bd8e5d
[ "MIT" ]
null
null
null
from random import randint computador = randint(0, 10) print('Sou seu computador...\nAcabei de pensar e um nmero entre 0 e 10.') print('Ser que voc consegue adivinhar qual foi?') palpite = int(input('Qual o seu palpite? ')) contador = 1 while palpite != computador: contador += 1 if palpite > computador: ...
36.375
74
0.656357
ea0bc106c32b9bce7d4aafa4b320fbbe8499e3bd
3,215
py
Python
June-17-2020/Managing-the-Full-API-Lifecycle/servers/production.py
Nirothipan/labs
1cdd27dae1b03b78686037ed1bbc69ade3b44f33
[ "Apache-2.0" ]
2
2020-06-25T08:28:33.000Z
2022-02-17T14:12:43.000Z
June-17-2020/Managing-the-Full-API-Lifecycle/servers/production.py
Nirothipan/labs
1cdd27dae1b03b78686037ed1bbc69ade3b44f33
[ "Apache-2.0" ]
4
2020-04-30T18:25:31.000Z
2020-07-15T21:36:41.000Z
June-17-2020/Managing-the-Full-API-Lifecycle/servers/production.py
Nirothipan/labs
1cdd27dae1b03b78686037ed1bbc69ade3b44f33
[ "Apache-2.0" ]
13
2020-04-30T18:19:53.000Z
2020-07-21T16:27:51.000Z
#!/usr/bin/env python3 import json from http import server, HTTPStatus import socketserver import ssl import datetime import uuid import time def main(): """ Run as a standalone server if needed """ EndpointHandler.run() if __name__ == '__main__': main()
31.519608
109
0.434215
ea0d7555db6e36c6d337cec2eb924498e3225c71
259
py
Python
tilemapbase/__init__.py
Simage/TileMapBase
85665c24a372028e327396a4b0feaca22c67d3ce
[ "MIT" ]
null
null
null
tilemapbase/__init__.py
Simage/TileMapBase
85665c24a372028e327396a4b0feaca22c67d3ce
[ "MIT" ]
null
null
null
tilemapbase/__init__.py
Simage/TileMapBase
85665c24a372028e327396a4b0feaca22c67d3ce
[ "MIT" ]
null
null
null
__version__ = "0.4.6" from .tiles import init, get_cache from .mapping import project, to_lonlat, Extent, Plotter, extent_from_frame from .utils import start_logging from . import tiles from . import mapping from . import utils from . import ordnancesurvey
23.545455
75
0.787645
ea0e70ed7f48b9ea77840bcc6953a91b092a58f3
1,166
py
Python
src/bpp/migrations/0232_auto_20210101_1751.py
iplweb/django-bpp
85f183a99d8d5027ae4772efac1e4a9f21675849
[ "BSD-3-Clause" ]
1
2017-04-27T19:50:02.000Z
2017-04-27T19:50:02.000Z
src/bpp/migrations/0232_auto_20210101_1751.py
mpasternak/django-bpp
434338821d5ad1aaee598f6327151aba0af66f5e
[ "BSD-3-Clause" ]
41
2019-11-07T00:07:02.000Z
2022-02-27T22:09:39.000Z
src/bpp/migrations/0232_auto_20210101_1751.py
iplweb/bpp
f027415cc3faf1ca79082bf7bacd4be35b1a6fdf
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.11 on 2021-01-01 16:51 from django.db import migrations, models
36.4375
297
0.608919
ea112a6e9b0c0b4d5227f718d1442eae696135fa
2,251
py
Python
Tensorflow_2X_PythonFiles/demo51_texttokenizer.py
mahnooranjum/Tensorflow_DeepLearning
65ab178d4c17efad01de827062d5c85bdfb9b1ca
[ "MIT" ]
null
null
null
Tensorflow_2X_PythonFiles/demo51_texttokenizer.py
mahnooranjum/Tensorflow_DeepLearning
65ab178d4c17efad01de827062d5c85bdfb9b1ca
[ "MIT" ]
null
null
null
Tensorflow_2X_PythonFiles/demo51_texttokenizer.py
mahnooranjum/Tensorflow_DeepLearning
65ab178d4c17efad01de827062d5c85bdfb9b1ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Demo51_TextTokenizer.ipynb # **Spit some [tensor] flow** We need to learn the intricacies of tensorflow to master deep learning `Let's get this over with` ## So we OHE the last NLP problem, why not do the same and feed it to the neural network? Well because, features in a language, are no...
24.467391
149
0.665038
ea12cb6de419df1a315ae612d46dcba363f94b68
5,472
py
Python
floodsystem/flood.py
Manz2TheMax/1A_FloodWarning_Group2
cce498c69daf7ea409463e39aa6beda19203c155
[ "MIT" ]
null
null
null
floodsystem/flood.py
Manz2TheMax/1A_FloodWarning_Group2
cce498c69daf7ea409463e39aa6beda19203c155
[ "MIT" ]
null
null
null
floodsystem/flood.py
Manz2TheMax/1A_FloodWarning_Group2
cce498c69daf7ea409463e39aa6beda19203c155
[ "MIT" ]
null
null
null
"""This module provides tools for assessing flood risk """ from datetime import timedelta from floodsystem.datafetcher import fetch_measure_levels import numpy as np from floodsystem.analysis import polyfit from matplotlib import dates as date def stations_level_over_threshold(stations, tol): """For a list of Mon...
38
126
0.701389
ea13103cadb7d3efae73e9bac04af504790aa183
3,349
py
Python
Visualization_with_PyGal.py
rocketpy/data_profiling
83ac32c50a5d5589769a342b945673e8403f3fed
[ "MIT" ]
null
null
null
Visualization_with_PyGal.py
rocketpy/data_profiling
83ac32c50a5d5589769a342b945673e8403f3fed
[ "MIT" ]
null
null
null
Visualization_with_PyGal.py
rocketpy/data_profiling
83ac32c50a5d5589769a342b945673e8403f3fed
[ "MIT" ]
1
2021-09-04T13:58:53.000Z
2021-09-04T13:58:53.000Z
# A python svg graph plotting library and creating interactive charts ! # PyPi: https://pypi.org/project/pygal/ # Docs: http://www.pygal.org/en/stable/index.html # Chart types: http://www.pygal.org/en/stable/documentation/types/index.html # Maps: http://www.pygal.org/en/stable/documentation/types/maps/pygal_maps_wor...
25.761538
94
0.654225
ea13756a0ffd8a68a14fc4db2d7499ba93d9435e
17,663
py
Python
robogen/rgkit/backup bots/Dulladob01.py
andrewgailey/robogen
7e96cfa26d2e6dc383c5d205816ddd98f8f100d7
[ "Unlicense" ]
null
null
null
robogen/rgkit/backup bots/Dulladob01.py
andrewgailey/robogen
7e96cfa26d2e6dc383c5d205816ddd98f8f100d7
[ "Unlicense" ]
null
null
null
robogen/rgkit/backup bots/Dulladob01.py
andrewgailey/robogen
7e96cfa26d2e6dc383c5d205816ddd98f8f100d7
[ "Unlicense" ]
null
null
null
# Dulladob 0.1 by Camelot Chess # http://robotgame.net/viewrobot/7641 import rg spawn_param = 8 #which turn to we begin bouncing? suicide_param = 6 #when to blow ourselves up (param*surrounders>hp)? suicide_fear_param = 6 #which to fear enemies blowing up? staying_still_bonus = 0.34 #points for staying put best_cen...
39.16408
135
0.628885
ea1590334af24435c30185a2cb73b1bcb47990a6
12,795
py
Python
telestream_cloud_qc_sdk/test/test_video_config.py
pandastream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
null
null
null
telestream_cloud_qc_sdk/test/test_video_config.py
pandastream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
2
2016-07-06T14:13:31.000Z
2018-03-07T12:54:58.000Z
telestream_cloud_qc_sdk/test/test_video_config.py
Telestream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
null
null
null
# coding: utf-8 """ Qc API Qc API # noqa: E501 The version of the OpenAPI document: 3.0.0 Contact: cloudsupport@telestream.net Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import telestream_cloud_qc from telestream_cl...
47.040441
132
0.511059
ea181d806b5b9dbcd288d38db58d0fa940f79080
223
py
Python
topics/topic_1/9square_of_number.py
VladBaryliuk/my_trainings
10c4bf2147c361ab918c591577a076b0d276ede0
[ "Apache-2.0" ]
null
null
null
topics/topic_1/9square_of_number.py
VladBaryliuk/my_trainings
10c4bf2147c361ab918c591577a076b0d276ede0
[ "Apache-2.0" ]
null
null
null
topics/topic_1/9square_of_number.py
VladBaryliuk/my_trainings
10c4bf2147c361ab918c591577a076b0d276ede0
[ "Apache-2.0" ]
null
null
null
square_of_number()
22.3
40
0.623318
ea1a1e4df5ca384ebf5252f38a1f95b8bff9c295
6,275
py
Python
scannerProyecto2Tejada.py
tej17584/proyecto2DisenoLenguajes
a8aead2908eb4e87c8b7d9d373690766d6dfcd9c
[ "MIT" ]
null
null
null
scannerProyecto2Tejada.py
tej17584/proyecto2DisenoLenguajes
a8aead2908eb4e87c8b7d9d373690766d6dfcd9c
[ "MIT" ]
null
null
null
scannerProyecto2Tejada.py
tej17584/proyecto2DisenoLenguajes
a8aead2908eb4e87c8b7d9d373690766d6dfcd9c
[ "MIT" ]
null
null
null
# Nombre: Alejandro Tejada # Curso: Diseo lenguajes de programacion # Fecha: Abril 2021 # Programa: scannerProyecto2Tejada.py # Propsito: Este programa tiene como fin leer el file de entrada # V 1.0 # imports import pickle from pprint import pprint as pp objeSCanner = Scanner()
33.55615
80
0.508526
ea1c12db4d5af227141198911161b74bbd00e24e
1,271
py
Python
.tox/scenario/lib/python2.7/site-packages/oslo_middleware/__init__.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
.tox/scenario/lib/python2.7/site-packages/oslo_middleware/__init__.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
.tox/scenario/lib/python2.7/site-packages/oslo_middleware/__init__.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
# 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 in writing, software # d...
39.71875
78
0.739575
ea1c349d5a962884cd1e7e0a9b53304ae80ef64b
648
py
Python
programmers/lv2_review/openchat.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv2_review/openchat.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv2_review/openchat.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
# [] if __name__ == "__main__": record = [ "Enter uid1234 Muzi", "Enter uid4567 Prodo", "Leave uid1234", "Enter uid1234 Prodo", "Change uid4567 Ryan", ] print(solution(record))
23.142857
55
0.498457
ea1c8dc482231f31a61b11ef7f70060a085b4cca
227
py
Python
chanjet_openapi_python_sdk/exception/serialize_response_exception.py
Chanjet/chanjet-openapi-python-sdk-
a076ce11d6d1789e657b96d72bbbcff594dbb4e9
[ "MIT" ]
2
2021-08-12T05:22:56.000Z
2021-09-08T09:03:38.000Z
chanjet_openapi_python_sdk/exception/serialize_response_exception.py
Chanjet/chanjet-openapi-python-sdk
a076ce11d6d1789e657b96d72bbbcff594dbb4e9
[ "MIT" ]
null
null
null
chanjet_openapi_python_sdk/exception/serialize_response_exception.py
Chanjet/chanjet-openapi-python-sdk
a076ce11d6d1789e657b96d72bbbcff594dbb4e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/8/6 15:01 # @Author : zc # @Desc : jsonresponse
22.7
44
0.647577
ea1cac9b8b5465978251233d73081760528adcd8
17,699
py
Python
scrud_django/decorators.py
Django-Stack-Backend/Django-backend-React-frontend
4c814ab9b97d70a259d4b93e30d118deba9831fd
[ "BSD-3-Clause" ]
1
2021-11-22T20:39:26.000Z
2021-11-22T20:39:26.000Z
scrud_django/decorators.py
Django-Stack-Backend/Django-backend-React-frontend
4c814ab9b97d70a259d4b93e30d118deba9831fd
[ "BSD-3-Clause" ]
null
null
null
scrud_django/decorators.py
Django-Stack-Backend/Django-backend-React-frontend
4c814ab9b97d70a259d4b93e30d118deba9831fd
[ "BSD-3-Clause" ]
null
null
null
from datetime import timezone from functools import partial, update_wrapper from django.utils.cache import get_conditional_response from django.utils.http import http_date, quote_etag from rest_framework import status from rest_framework.metadata import BaseMetadata from rest_framework.response import Response from re...
37.818376
87
0.611277
ea1ddd5fb3b7764b25bce86e343d6fc2d860a274
670
py
Python
cloud/scripts/estudos/fiis_ifix_gestores.py
codennine/trendfii
d13ee68ddcf80b0d58384c2c1f5972f210ae9d04
[ "MIT" ]
null
null
null
cloud/scripts/estudos/fiis_ifix_gestores.py
codennine/trendfii
d13ee68ddcf80b0d58384c2c1f5972f210ae9d04
[ "MIT" ]
4
2019-06-19T20:25:43.000Z
2021-06-02T03:43:05.000Z
cloud/scripts/estudos/fiis_ifix_gestores.py
codennine/trendfii
d13ee68ddcf80b0d58384c2c1f5972f210ae9d04
[ "MIT" ]
null
null
null
#coding=utf-8 import os from bs4 import BeautifulSoup files = [] gestores = { 'EDY11': {'fiis': [], 'vacancia':0} } for r,d,f in os.walk('../gestores_ifix'): for file in f: handle = open(os.path.join(r, file), 'r') html = handle.read() soup = BeautifulSoup(html, 'html.parser') ...
23.103448
66
0.51194
ea1e3a374da6546ba9cfee034f40a9ff5ef3cbde
86
py
Python
RL/Custom-env/Custom-env/envs/__init__.py
Poppins001/Projects
386b741c2a8361289d73af658c8c6779ec8315b2
[ "MIT" ]
1
2018-06-01T14:40:49.000Z
2018-06-01T14:40:49.000Z
RL/Custom-env/Custom-env/envs/__init__.py
Poppins001/Projects
386b741c2a8361289d73af658c8c6779ec8315b2
[ "MIT" ]
null
null
null
RL/Custom-env/Custom-env/envs/__init__.py
Poppins001/Projects
386b741c2a8361289d73af658c8c6779ec8315b2
[ "MIT" ]
null
null
null
from Custom-env.envs.Env1 import ENV1_NAME from Custom-env.envs.Env2 import ENV2_NAME
28.666667
42
0.837209
ea1fff46a82c83c0a760acd9e59925eaa45ebb42
1,176
py
Python
Trie/14. Longest Common Prefix/solution.py
Shalini180/LeetCode-Solutions
0ea364fa40b69dd129230903a0bdbe0fc116db08
[ "Unlicense" ]
9
2021-03-24T11:21:03.000Z
2022-02-14T05:05:48.000Z
Trie/14. Longest Common Prefix/solution.py
Shalini180/LeetCode-Solutions
0ea364fa40b69dd129230903a0bdbe0fc116db08
[ "Unlicense" ]
38
2021-10-07T18:04:12.000Z
2021-12-05T05:53:27.000Z
Trie/14. Longest Common Prefix/solution.py
Shalini180/LeetCode-Solutions
0ea364fa40b69dd129230903a0bdbe0fc116db08
[ "Unlicense" ]
27
2021-10-06T19:55:48.000Z
2021-11-18T16:53:20.000Z
''' Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Example 1: Input: strs = ["flower","flow","flight"] Output: "fl" Constraints: 1 <= strs.length <= 200 0 <= strs[i].length <= 200 strs[i] consists of only lower-case En...
23.52
86
0.547619
ea20af329182c07294d2c1bbed18aee79997d85a
32
py
Python
uresnet/iotools/__init__.py
NuTufts/uresnet_pytorch
3a05f2349ae1e9601d05a80384920d8a22b4bc34
[ "MIT" ]
null
null
null
uresnet/iotools/__init__.py
NuTufts/uresnet_pytorch
3a05f2349ae1e9601d05a80384920d8a22b4bc34
[ "MIT" ]
null
null
null
uresnet/iotools/__init__.py
NuTufts/uresnet_pytorch
3a05f2349ae1e9601d05a80384920d8a22b4bc34
[ "MIT" ]
null
null
null
from .iotools import io_factory
16
31
0.84375
ea210e1e988d4d420b55731b7d3f040fb88524e4
11,867
py
Python
model_selection.py
elalamik/Regression_Project_Predicting_Age_of_Abalones
f3123ee7ae96fa963d7db7c75699779fd03cd05f
[ "MIT" ]
null
null
null
model_selection.py
elalamik/Regression_Project_Predicting_Age_of_Abalones
f3123ee7ae96fa963d7db7c75699779fd03cd05f
[ "MIT" ]
null
null
null
model_selection.py
elalamik/Regression_Project_Predicting_Age_of_Abalones
f3123ee7ae96fa963d7db7c75699779fd03cd05f
[ "MIT" ]
null
null
null
import statsmodels.api as sm import statsmodels.formula.api as smf import numpy as np import pandas as pd from mlxtend.feature_selection import ExhaustiveFeatureSelector as EFS from sklearn.linear_model import LinearRegression import sys; import re def detect_dummies(X,variable): ''' If no dummies simply return...
34.397101
162
0.720317
ea2175fd92a81a7aa44dc7fd222cd723428cd81c
1,972
py
Python
play.py
amm042/pyMonty
eb4400d179a73571c02c5bf2b0793bff4a488092
[ "MIT" ]
null
null
null
play.py
amm042/pyMonty
eb4400d179a73571c02c5bf2b0793bff4a488092
[ "MIT" ]
null
null
null
play.py
amm042/pyMonty
eb4400d179a73571c02c5bf2b0793bff4a488092
[ "MIT" ]
null
null
null
""" Montey hall client Alan Marchiori 2019 """ import logging import socket import time import argparse if __name__ == "__main__": parser = argparse.ArgumentParser( description=__doc__) parser.add_argument( '-a', '--addr', type=str, help='ip address of the server', required=False, ...
30.338462
80
0.559838
ea21bdaf4495b9f91ab1a9b78ddc86efc5c91b1c
687
py
Python
publishing_boy/tests/utils.py
przemekkot/publishing-boy
7ed069ab2393d684057ddad196c49a58101e9fda
[ "MIT" ]
null
null
null
publishing_boy/tests/utils.py
przemekkot/publishing-boy
7ed069ab2393d684057ddad196c49a58101e9fda
[ "MIT" ]
7
2020-02-12T02:27:28.000Z
2022-02-10T08:54:02.000Z
publishing_boy/tests/utils.py
przemekkot/publishing-boy
7ed069ab2393d684057ddad196c49a58101e9fda
[ "MIT" ]
null
null
null
import os import tempfile from django.core.files.storage import FileSystemStorage import django.core.files.storage # dummy django.conf.settings # switch settings django.core.files.storage.settings = Settings()
24.535714
64
0.751092
ea2206dfae42e6d124e7e16bb3567b4adca04132
1,070
py
Python
app/report/models/call_table_model.py
michaelscales88/mWreporting_final
b0399fb32fd594c2f5a20d47c2c0dceaecb6f326
[ "MIT" ]
2
2019-06-10T21:15:03.000Z
2020-01-02T13:12:45.000Z
app/report/models/call_table_model.py
michaelscales88/python-reporting-app
b0399fb32fd594c2f5a20d47c2c0dceaecb6f326
[ "MIT" ]
14
2018-01-18T19:07:15.000Z
2018-05-16T18:44:55.000Z
app/report/models/call_table_model.py
michaelscales88/mWreporting_final
b0399fb32fd594c2f5a20d47c2c0dceaecb6f326
[ "MIT" ]
null
null
null
# data/models.py import datetime from sqlalchemy.ext.hybrid import hybrid_property from app.extensions import db
31.470588
79
0.694393
ea22bbec328c45633bc90472df085445b7749a42
342
py
Python
dataentry/models.py
abrehman90/Integrate-SummerNote-in-Django
a588578f007e153b85e1b18e71fa37d05bdef7ef
[ "MIT" ]
1
2021-12-15T03:47:19.000Z
2021-12-15T03:47:19.000Z
dataentry/models.py
abrehman90/Integrate-SummerNote-in-Django
a588578f007e153b85e1b18e71fa37d05bdef7ef
[ "MIT" ]
null
null
null
dataentry/models.py
abrehman90/Integrate-SummerNote-in-Django
a588578f007e153b85e1b18e71fa37d05bdef7ef
[ "MIT" ]
null
null
null
from django.db import models # Create your models here.
24.428571
57
0.695906
ea230ac82e5bb4386e749cb1be502c5bdba91b6d
76
py
Python
dotfiles/common/.gdbinit.d/eigen.py
HaoZeke/Dotfiles
f4ac24b0d7e08d87b1f402af67e463c528b1b69d
[ "Unlicense" ]
14
2018-10-29T18:54:25.000Z
2021-12-21T00:22:52.000Z
dotfiles/common/.gdbinit.d/eigen.py
HaoZeke/Dotfiles
f4ac24b0d7e08d87b1f402af67e463c528b1b69d
[ "Unlicense" ]
1
2018-08-20T17:41:10.000Z
2018-08-20T17:42:23.000Z
dotfiles/common/.gdbinit.d/eigen.py
HaoZeke/Dotfiles
f4ac24b0d7e08d87b1f402af67e463c528b1b69d
[ "Unlicense" ]
3
2018-08-20T17:36:29.000Z
2021-01-23T05:18:30.000Z
# Eigen pretty printer __import__('eigengdb').register_eigen_printers(None)
25.333333
52
0.828947
ea23411116c11712b8563c0700e8c3b9b69e0e40
1,055
py
Python
sv/loading.py
thalesians/bayestsa
d54ea04ffa9903473b11c906545e95b2666afb88
[ "Apache-2.0" ]
18
2017-03-07T19:13:18.000Z
2021-01-05T00:35:30.000Z
sv/loading.py
HanMeh/bayestsa
d54ea04ffa9903473b11c906545e95b2666afb88
[ "Apache-2.0" ]
null
null
null
sv/loading.py
HanMeh/bayestsa
d54ea04ffa9903473b11c906545e95b2666afb88
[ "Apache-2.0" ]
14
2016-12-27T00:09:40.000Z
2020-12-27T19:23:53.000Z
from collections import OrderedDict import numpy as np from pandas import DataFrame from sv import SVData, CorTiming
31.029412
92
0.629384
ea26327ae6b47dd4a986055221217b74fe00a65e
3,741
py
Python
sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/models/virtual_network_link.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/models/virtual_network_link.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-privatedns/azure/mgmt/privatedns/models/virtual_network_link.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.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 ...
45.621951
139
0.654103
ea26c82baaca0ecaf568c61b139222fcd9a4d7cf
2,986
py
Python
13_while_loops_challenges/58_guess_my_word.py
r7asmu7s/art_of_doing_python
62a03bcca084046c319976fc308bf3de3a2d412d
[ "Unlicense" ]
null
null
null
13_while_loops_challenges/58_guess_my_word.py
r7asmu7s/art_of_doing_python
62a03bcca084046c319976fc308bf3de3a2d412d
[ "Unlicense" ]
null
null
null
13_while_loops_challenges/58_guess_my_word.py
r7asmu7s/art_of_doing_python
62a03bcca084046c319976fc308bf3de3a2d412d
[ "Unlicense" ]
null
null
null
import random print('Welcome to the GUESS MY WORD APP.') game_dict = {"sports": ['basketball', 'baseball', 'soccer', 'football', 'tennis', 'curling'], "colors": ['orange', 'yellow', 'purple', 'aquamarine', 'violet', 'gold'], "fruits": ['apple', 'banana', 'watermelon', 'peach', 'mango', 'strawberry'], "classes": ['eng...
35.129412
123
0.673141
ea26f9c2bf7b019ef8aa7a75cd7953f9dff2b3d1
5,247
py
Python
crunch-shake/parse.py
zhiyanfoo/crunch-shake
ff2bc24615ad037601e912b1b8b3905e4f9d3540
[ "MIT" ]
1
2019-02-22T19:30:42.000Z
2019-02-22T19:30:42.000Z
crunch-shake/parse.py
zhiyanfoo/crunch-shake
ff2bc24615ad037601e912b1b8b3905e4f9d3540
[ "MIT" ]
null
null
null
crunch-shake/parse.py
zhiyanfoo/crunch-shake
ff2bc24615ad037601e912b1b8b3905e4f9d3540
[ "MIT" ]
null
null
null
from utils import get_matcher from lookup import ROMAN_TO_INT from lines import Dialogue, Character, Instruction, Act, Scene def get_speaking_characters(raw_play_lines, character_matcher): """ Return a set of all character names Parameters ---------- raw_play_lines : list of str lines of th...
37.212766
79
0.61559
ea281895334d9f6eb2e1d0053bb87208fe4b79cf
428
py
Python
backend/schemas/comment.py
golani04/bug-tracker
a3f91fe6a2202bd60721ab0b0f4bf46b0fb4d872
[ "MIT" ]
null
null
null
backend/schemas/comment.py
golani04/bug-tracker
a3f91fe6a2202bd60721ab0b0f4bf46b0fb4d872
[ "MIT" ]
1
2021-05-21T16:15:52.000Z
2021-05-21T16:15:52.000Z
backend/schemas/comment.py
golani04/bug-tracker
a3f91fe6a2202bd60721ab0b0f4bf46b0fb4d872
[ "MIT" ]
null
null
null
from datetime import datetime from uuid import UUID from typing import Optional from pydantic import BaseModel, Field
20.380952
89
0.75
ea2a96d721e0464fc48d0be7b3b409eb02575d4c
1,216
py
Python
videos_to_images.py
hikaruya8/dimotion
68c1e561e2d26f49ada59a82ed9faae373718033
[ "MIT" ]
null
null
null
videos_to_images.py
hikaruya8/dimotion
68c1e561e2d26f49ada59a82ed9faae373718033
[ "MIT" ]
null
null
null
videos_to_images.py
hikaruya8/dimotion
68c1e561e2d26f49ada59a82ed9faae373718033
[ "MIT" ]
null
null
null
import os import subprocess # # MELD.Rawtrain_splits, test_splits, dev_splits dir_path = './MELD/MELD.Raw/dev_splits/' # class_list = os.listdir(path=dir_path) # print(class_list) # # for class_list_i in (class_list): # # # class_path = os.path.join(dir_path, class_list_i) # for file_name in os.list...
27.636364
89
0.71875
ea2b625a6e5ae7073ed5a6fd9af95fcd3ef81b59
15,396
py
Python
ur_driver/src/ur_driver/deserializeRT.py
Hugal31/universal_robot
06d8b9e2f5f86aa54f9f2845f11edbc84e2f951e
[ "Apache-2.0", "BSD-3-Clause" ]
749
2015-01-20T22:14:20.000Z
2022-03-31T07:31:51.000Z
ur_driver/src/ur_driver/deserializeRT.py
Hugal31/universal_robot
06d8b9e2f5f86aa54f9f2845f11edbc84e2f951e
[ "Apache-2.0", "BSD-3-Clause" ]
431
2015-01-05T02:02:45.000Z
2022-03-07T15:18:51.000Z
ur_driver/src/ur_driver/deserializeRT.py
Hugal31/universal_robot
06d8b9e2f5f86aa54f9f2845f11edbc84e2f951e
[ "Apache-2.0", "BSD-3-Clause" ]
788
2015-01-12T08:11:21.000Z
2022-03-30T11:53:01.000Z
from __future__ import print_function import struct import copy #this class handles different protocol versions #this parses RobotStateRT for versions = v1.5 #http://wiki03.lynero.net/Technical/RealTimeClientInterface?foswiki_redirect_cache=9b4574b30760f720c6f79c5f1f2203dd #this parses RobotStateRT for versions <= ...
36.657143
115
0.58067
ea2b8336beb92adf459272aedc193a552076d2fb
1,457
py
Python
Data-Science/code.py
shikharratna/ga-learner-dsmp-repo
a852a8759679dddcab3e59930240d22fcab9ba73
[ "MIT" ]
null
null
null
Data-Science/code.py
shikharratna/ga-learner-dsmp-repo
a852a8759679dddcab3e59930240d22fcab9ba73
[ "MIT" ]
null
null
null
Data-Science/code.py
shikharratna/ga-learner-dsmp-repo
a852a8759679dddcab3e59930240d22fcab9ba73
[ "MIT" ]
null
null
null
# -------------- #Header files import pandas as pd import numpy as np import matplotlib.pyplot as plt data=pd.read_csv(path) #path of the data file- path #Code starts here data.Gender.replace('-','Agender',inplace=True) gender_count=data.Gender.value_counts() gender_count.plot(kind='bar') # ----------...
21.746269
59
0.710364
ea2b8e4736bc02950c2c39a75c6d5d79e88d9882
14,205
py
Python
stupidb/core.py
mrcrnkovich/stupidb
4274f60b7f8f2455c0031c73e053964d4d3e3e1d
[ "Apache-2.0" ]
43
2018-12-29T22:14:55.000Z
2022-03-17T03:38:16.000Z
stupidb/core.py
mrcrnkovich/stupidb
4274f60b7f8f2455c0031c73e053964d4d3e3e1d
[ "Apache-2.0" ]
102
2021-07-19T21:20:22.000Z
2022-03-22T02:57:02.000Z
stupidb/core.py
mrcrnkovich/stupidb
4274f60b7f8f2455c0031c73e053964d4d3e3e1d
[ "Apache-2.0" ]
3
2021-12-04T19:14:33.000Z
2022-01-08T17:28:36.000Z
"""StupiDB. The stupidest database you'll ever come across. This is project designed to illustate the concepts that underly a typical relational database implementation, starting at naive execution of table-stakes features up to rule-based query optimization. .. warning:: Please do not use this for any other reaso...
28.930754
88
0.612672
ea2bb80a4845b58954c6062cd938e68d554b3abd
169
py
Python
www/aeki/cgi/aeki_config.py
otuk/aeki
6de9629a74698737e07ae86650925e3051ead5ee
[ "MIT" ]
null
null
null
www/aeki/cgi/aeki_config.py
otuk/aeki
6de9629a74698737e07ae86650925e3051ead5ee
[ "MIT" ]
null
null
null
www/aeki/cgi/aeki_config.py
otuk/aeki
6de9629a74698737e07ae86650925e3051ead5ee
[ "MIT" ]
null
null
null
aeki_config = { "AEKI_HOST": "localhost", # rename to hostname for cgi if you like "IOT_HOST":"localhost" # assumes iot test device is also on local host }
24.142857
75
0.674556
ea2bf117e4da0f0fabb4774dddd8eef0987316da
6,540
py
Python
Baseline/NABA/naba.py
sarthak-chakraborty/PARIMA
c6ceb6e17fc3c934603fa843febc42a8b6ee5bb1
[ "MIT" ]
13
2021-03-06T16:53:33.000Z
2022-02-04T20:28:13.000Z
Baseline/NABA/naba.py
sarthak-chakraborty/Adaptive-360-video
c6ceb6e17fc3c934603fa843febc42a8b6ee5bb1
[ "MIT" ]
6
2021-06-02T08:08:09.000Z
2022-03-12T00:58:26.000Z
Baseline/NABA/naba.py
sarthak-chakraborty/Adaptive-360-video
c6ceb6e17fc3c934603fa843febc42a8b6ee5bb1
[ "MIT" ]
3
2021-05-26T03:32:04.000Z
2021-07-17T14:34:20.000Z
import numpy as np import math import pickle def get_data(data, frame_nos, dataset, topic, usernum, fps, milisec, width, height, view_width, view_height): """ Read and return the viewport data """ VIEW_PATH = '../../Viewport/' view_info = pickle.load(open(VIEW_PATH + 'ds{}/viewport_ds{}_topic{}_user...
29.459459
146
0.669266
ea2cea171e2a0a408098703594d6df6015c2788a
333
py
Python
python/primes.py
matheuskiser/pdx_code_guild
49a5c62fb468253eb4d9a1fb11166df79bb10873
[ "MIT" ]
null
null
null
python/primes.py
matheuskiser/pdx_code_guild
49a5c62fb468253eb4d9a1fb11166df79bb10873
[ "MIT" ]
null
null
null
python/primes.py
matheuskiser/pdx_code_guild
49a5c62fb468253eb4d9a1fb11166df79bb10873
[ "MIT" ]
null
null
null
""" User picks number n and program returns all prime number from 0 until n. """ number_picked = int(raw_input("Pick a number: ")) print 2 for i in range(3, number_picked, 2): if is_prime(i): print i,
17.526316
72
0.600601
ea2d0db0e5013c516e20cfd3f224e6f24b6a4de8
9,331
py
Python
gateway/settings.py
42cc/dashr-gw
45ec8f99a730b97b80a4068a0e9ae8991904038e
[ "MIT" ]
2
2018-02-06T12:18:49.000Z
2018-02-08T08:26:56.000Z
gateway/settings.py
42cc/dashr-gw
45ec8f99a730b97b80a4068a0e9ae8991904038e
[ "MIT" ]
null
null
null
gateway/settings.py
42cc/dashr-gw
45ec8f99a730b97b80a4068a0e9ae8991904038e
[ "MIT" ]
3
2018-02-12T02:14:11.000Z
2020-05-21T19:25:41.000Z
""" Django settings for gateway project. Generated by 'django-admin startproject' using Django 1.11.1. 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/ """ import os...
27.606509
79
0.647305
ea2f6cab964b758bde6ba04ace1b9ebcbb9b589e
1,961
py
Python
basics-data-structure/array/processQueries.py
nishantml/Data-Structure-And-Algorithms
1f75bdbddb5fa4bccba762515460c73280cde65d
[ "MIT" ]
null
null
null
basics-data-structure/array/processQueries.py
nishantml/Data-Structure-And-Algorithms
1f75bdbddb5fa4bccba762515460c73280cde65d
[ "MIT" ]
null
null
null
basics-data-structure/array/processQueries.py
nishantml/Data-Structure-And-Algorithms
1f75bdbddb5fa4bccba762515460c73280cde65d
[ "MIT" ]
1
2020-08-25T19:05:19.000Z
2020-08-25T19:05:19.000Z
""" Given the array queries of positive integers between 1 and m, you have to process all queries[i] (from i=0 to i=queries.length-1) according to the following rules: In the beginning, you have the permutation P=[1,2,3,...,m]. For the current i, find the position of queries[i] in the permutation P (indexing from 0) ...
33.810345
221
0.63284
ea3096bc5a6227f2c2556b76f3b507bcc714068c
1,876
py
Python
setup.py
david26694/sktools
28cb8179b4c895cf00aea1399b2677158bd35bd8
[ "MIT" ]
10
2020-05-03T09:52:06.000Z
2021-11-30T07:38:27.000Z
setup.py
david26694/sktools
28cb8179b4c895cf00aea1399b2677158bd35bd8
[ "MIT" ]
7
2020-11-19T16:08:09.000Z
2021-06-17T11:37:31.000Z
setup.py
david26694/sktools
28cb8179b4c895cf00aea1399b2677158bd35bd8
[ "MIT" ]
3
2020-06-21T08:46:31.000Z
2021-08-17T11:32:20.000Z
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = ['scikit-learn', 'pandas', 'scipy', 'numpy', 'category_encoder...
26.8
80
0.624733
ea319b174e521eedd1eb8788136bfce6b273b847
1,982
py
Python
test_autogalaxy/util/test_error_util.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
7
2021-05-29T08:46:29.000Z
2022-01-23T14:06:20.000Z
test_autogalaxy/util/test_error_util.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
3
2021-01-06T09:42:44.000Z
2022-03-10T15:52:23.000Z
test_autogalaxy/util/test_error_util.py
caoxiaoyue/PyAutoGalaxy
ad2b4b27404f5bf0f65ba9a0cd7c3ee6570e2d05
[ "MIT" ]
3
2021-02-10T07:45:16.000Z
2022-01-21T17:36:40.000Z
from autofit.non_linear.samples.pdf import quantile import autogalaxy as ag import numpy as np
27.527778
73
0.617558
ea3310d718c746d6f372cb145583373a0ec60324
5,967
py
Python
src/whereshallwemeet/caller.py
bizzinho/whereShallWeMeet
449cc1aeb9334688392b8b3ffa4b6def1f308bc5
[ "MIT" ]
null
null
null
src/whereshallwemeet/caller.py
bizzinho/whereShallWeMeet
449cc1aeb9334688392b8b3ffa4b6def1f308bc5
[ "MIT" ]
null
null
null
src/whereshallwemeet/caller.py
bizzinho/whereShallWeMeet
449cc1aeb9334688392b8b3ffa4b6def1f308bc5
[ "MIT" ]
null
null
null
import os import pathlib import sys import googlemaps from datetime import datetime as dt from typing import Union, Tuple, List
28.6875
79
0.537121
ea332701c21bd1585589dad2180e6c25dfdb1886
4,451
py
Python
iCount/plotting/plot_rnamap.py
genialis/iCount
80dba0f7292a364c62843d71e76c1b22e6268e14
[ "MIT" ]
null
null
null
iCount/plotting/plot_rnamap.py
genialis/iCount
80dba0f7292a364c62843d71e76c1b22e6268e14
[ "MIT" ]
1
2021-09-30T12:55:37.000Z
2021-09-30T12:55:37.000Z
iCount/plotting/plot_rnamap.py
ulelab/iCount
b9dc1b21b80e4dae77b3ac33734514091fbe3151
[ "MIT" ]
4
2021-03-23T12:38:55.000Z
2021-05-14T10:10:00.000Z
""".. Line to protect from pydocstyle D205, D400. Plot distribution RNA-map ------------------------- Plot distribution of crosslinks relative to landmark of specific type. """ import os import pandas as pd import iCount # pylint: disable=wrong-import-order import matplotlib # Force matplotlib to not use any Xwind...
28.350318
109
0.625253
ea33e9758376d259b5c2e71586d76551a1685aa4
7,772
py
Python
search_and_change/search_and_change_num.py
physics-sp/frida-tools
8ae44d041417152f0717f48513043a320649e9e9
[ "MIT" ]
5
2020-02-08T12:25:40.000Z
2021-08-25T16:49:59.000Z
search_and_change/search_and_change_num.py
physics-sp/frida-tools
8ae44d041417152f0717f48513043a320649e9e9
[ "MIT" ]
null
null
null
search_and_change/search_and_change_num.py
physics-sp/frida-tools
8ae44d041417152f0717f48513043a320649e9e9
[ "MIT" ]
4
2020-06-03T04:27:02.000Z
2021-06-07T15:16:20.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- import sys import time try: import frida except ImportError: sys.exit('install frida\nsudo pip3 install frida') # number of times that 'old_value' was find in memory matches = None if __name__ == '__main__': argc = len(sys.argv) if argc < 4 or argc > 11: usage = ...
30.478431
151
0.634328
ea35cc90fef2c59b54455f8db397478309f4335a
17,435
py
Python
text_extensions_for_pandas/jupyter/span.py
ZachEichen/text-extensions-for-pandas
b3132c26806d57ec168818e43138e55e2583acdf
[ "Apache-2.0" ]
193
2020-05-11T21:15:57.000Z
2022-03-23T09:59:32.000Z
text_extensions_for_pandas/jupyter/span.py
ZachEichen/text-extensions-for-pandas
b3132c26806d57ec168818e43138e55e2583acdf
[ "Apache-2.0" ]
207
2020-05-07T17:38:13.000Z
2022-02-11T18:02:13.000Z
text_extensions_for_pandas/jupyter/span.py
ZachEichen/text-extensions-for-pandas
b3132c26806d57ec168818e43138e55e2583acdf
[ "Apache-2.0" ]
28
2020-05-07T16:43:52.000Z
2022-02-25T15:21:18.000Z
# # Copyright (c) 2021 IBM Corp. # 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 in writi...
40.735981
220
0.562604
ea371b2906f6a90db71a9dd98eef0ab8bb4b4389
243
py
Python
Comprehensions/05. Filter Numbers.py
milenpenev/Python_Advanced
2f32012dd682fa9541bbf5fa155f6bdbcfa946de
[ "MIT" ]
null
null
null
Comprehensions/05. Filter Numbers.py
milenpenev/Python_Advanced
2f32012dd682fa9541bbf5fa155f6bdbcfa946de
[ "MIT" ]
null
null
null
Comprehensions/05. Filter Numbers.py
milenpenev/Python_Advanced
2f32012dd682fa9541bbf5fa155f6bdbcfa946de
[ "MIT" ]
null
null
null
start = int(input()) end = int(input()) print([int(_) for _ in range(start, end + 1) if is_divisible(_)])
22.090909
66
0.654321
ea37e30aaa000862cd2a845865431af3031ecbc6
188
py
Python
src/plugins/hk_reporter/platform/__init__.py
panda361/nonebot-hk-reporter
b94f6cc31844e9307e355fc81f387ea42501a014
[ "MIT" ]
null
null
null
src/plugins/hk_reporter/platform/__init__.py
panda361/nonebot-hk-reporter
b94f6cc31844e9307e355fc81f387ea42501a014
[ "MIT" ]
null
null
null
src/plugins/hk_reporter/platform/__init__.py
panda361/nonebot-hk-reporter
b94f6cc31844e9307e355fc81f387ea42501a014
[ "MIT" ]
null
null
null
from .bilibili import Bilibili from .rss import Rss from .weibo import Weibo from .utils import check_sub_target from .platform import PlatformNoTarget from .utils import platform_manager
26.857143
38
0.840426
ea384cdec08dafa6c13c92feb566f42fb716a71c
13,837
py
Python
Decision_Maker-Temp_Humid/Temp_Humid_Mqtt_Controller.py
cantiusdeepan/Cadrea
bdd341f8e9ee7a5103611d5bdac1a820ab9fdd81
[ "MIT" ]
null
null
null
Decision_Maker-Temp_Humid/Temp_Humid_Mqtt_Controller.py
cantiusdeepan/Cadrea
bdd341f8e9ee7a5103611d5bdac1a820ab9fdd81
[ "MIT" ]
null
null
null
Decision_Maker-Temp_Humid/Temp_Humid_Mqtt_Controller.py
cantiusdeepan/Cadrea
bdd341f8e9ee7a5103611d5bdac1a820ab9fdd81
[ "MIT" ]
null
null
null
####### File will publish a score between 0-5 on how good an idea # (0- Don't open, 5 - Very good conditions for opening window) # it is to open the window to clear the room given the current internal and external weather conditions # Factors considered - ________ # Internal temperature # External Temperature (Effect ...
42.185976
152
0.627376
ea38f8206042b01f8b467e0f3e3183966c12c73d
6,538
py
Python
pynagios/perf_data.py
jimbrowne/pynagios
f144b5507b1b3966a8f587bd07d0c7845db90182
[ "MIT" ]
null
null
null
pynagios/perf_data.py
jimbrowne/pynagios
f144b5507b1b3966a8f587bd07d0c7845db90182
[ "MIT" ]
null
null
null
pynagios/perf_data.py
jimbrowne/pynagios
f144b5507b1b3966a8f587bd07d0c7845db90182
[ "MIT" ]
1
2022-02-11T09:27:21.000Z
2022-02-11T09:27:21.000Z
""" Tools for creating performance data for Nagios plugin responses. If you're adding performance data to a :py:class:`~pynagios.response.Response` object, then :py:func:`~pynagios.response.Response.set_perf_data` can be called instead of having to create an entire :py:class:`PerfData` object. """ import re from pynag...
33.701031
91
0.599725
ea3a1bdee6e7843b3236745c73bb61d6e0e2dd05
354
py
Python
py/priq.py
frasertweedale/drill
4e71b5348b633fd9beecb243c046f19ddfe131fe
[ "MIT" ]
1
2020-09-02T17:25:26.000Z
2020-09-02T17:25:26.000Z
py/priq.py
frasertweedale/drill
4e71b5348b633fd9beecb243c046f19ddfe131fe
[ "MIT" ]
null
null
null
py/priq.py
frasertweedale/drill
4e71b5348b633fd9beecb243c046f19ddfe131fe
[ "MIT" ]
null
null
null
import heap
15.391304
33
0.59322
ea3a5b10c9e85e5dacebb77bf4f8cac72e39e843
3,249
py
Python
report/api/app.py
Aaron-DH/openstack_sample_project
711a56311806d52b632e4394743bd4bdbacb103a
[ "Apache-2.0" ]
null
null
null
report/api/app.py
Aaron-DH/openstack_sample_project
711a56311806d52b632e4394743bd4bdbacb103a
[ "Apache-2.0" ]
null
null
null
report/api/app.py
Aaron-DH/openstack_sample_project
711a56311806d52b632e4394743bd4bdbacb103a
[ "Apache-2.0" ]
null
null
null
from wsgiref import simple_server import os from oslo_config import cfg from oslo_log import log as logging from paste import deploy import pecan from report.api import hooks from report.agent import rpcapi LOG = logging.getLogger(__name__) CONF = cfg.CONF pecan_opts = [ cfg.StrOpt('root', defaul...
25.382813
75
0.596183
ea3b4a5064c4a8a783500e634bbd859b7a0ab263
2,318
py
Python
cahoots/parsers/email.py
SerenitySoftwareLLC/cahoots
866336c51436343ff5e56f83f89dddc82a5693a3
[ "MIT" ]
8
2015-03-24T15:34:40.000Z
2016-12-24T22:09:47.000Z
cahoots/parsers/email.py
hickeroar/cahoots
8fa795d7d933507c6cbf490bd20c1b3562689c5a
[ "MIT" ]
34
2015-03-06T06:27:54.000Z
2015-05-27T05:23:27.000Z
cahoots/parsers/email.py
hickeroar/cahoots
8fa795d7d933507c6cbf490bd20c1b3562689c5a
[ "MIT" ]
4
2015-04-05T06:24:50.000Z
2015-05-30T02:40:21.000Z
""" The MIT License (MIT) Copyright (c) Serenity Software, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, m...
35.661538
78
0.716566
ea3cf21c67467cbaac5cfdc96125b0af5671f94a
326
py
Python
src/praxxis/model/update_model.py
blimongi/praxxis
4c2496c89d1d26d01b91896496342ca60f3d15ae
[ "MIT" ]
9
2019-07-31T23:50:16.000Z
2021-08-21T00:43:44.000Z
src/praxxis/model/update_model.py
blimongi/praxxis
4c2496c89d1d26d01b91896496342ca60f3d15ae
[ "MIT" ]
22
2019-08-01T00:37:53.000Z
2020-03-31T05:01:57.000Z
src/praxxis/model/update_model.py
blimongi/praxxis
4c2496c89d1d26d01b91896496342ca60f3d15ae
[ "MIT" ]
7
2020-01-03T02:28:36.000Z
2021-05-13T20:59:19.000Z
""" This file requests a new model from the storage pool. """ import os import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) import requests from requests.auth import HTTPBasicAuth from src.praxxis.sqlite import sqlite_telemetry def update_model(): """TODO: implement this""" ...
16.3
67
0.776074
ea3d55b836b67869362d50e8f2439e202c28d2d7
40,516
py
Python
Process_Data/audio_processing.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
8
2020-08-26T13:32:56.000Z
2022-01-18T21:05:46.000Z
Process_Data/audio_processing.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
1
2020-07-24T17:06:16.000Z
2020-07-24T17:06:16.000Z
Process_Data/audio_processing.py
Wenhao-Yang/DeepSpeaker-pytorch
99eb8de3357c85e2b7576da2a742be2ffd773ead
[ "MIT" ]
5
2020-12-11T03:31:15.000Z
2021-11-23T15:57:55.000Z
#!/usr/bin/env python # encoding: utf-8 import os import pathlib import traceback <<<<<<< HEAD ======= import random >>>>>>> Server/Server import librosa import numpy as np import soundfile as sf import torch import torch.nn.utils.rnn as rnn_utils from pydub import AudioSegment from python_speech_features import fbank...
34.718081
197
0.626518
ea3f6b2815870dddcf136d6b81a2a73d2ad33c33
3,822
py
Python
gamestonk_terminal/stocks/dark_pool_shorts/stockgrid_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
1
2022-03-15T13:05:40.000Z
2022-03-15T13:05:40.000Z
gamestonk_terminal/stocks/dark_pool_shorts/stockgrid_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
gamestonk_terminal/stocks/dark_pool_shorts/stockgrid_model.py
minhhoang1023/GamestonkTerminal
195dc19b491052df080178c0cc6a9d535a91a704
[ "MIT" ]
null
null
null
""" Stockgrid View """ __docformat__ = "numpy" import logging from typing import List, Tuple import pandas as pd import requests from gamestonk_terminal.decorators import log_start_end logger = logging.getLogger(__name__)
25.144737
94
0.599686
ea410dc0122ec7353bc207c7a8f3f53b18676252
2,918
py
Python
Communal.Network.v.py
HolocronFoundation/Communal.Network
41eff8ac3ca54897f19cd584e1cfc58f9326ab80
[ "CC0-1.0" ]
1
2019-03-08T18:41:26.000Z
2019-03-08T18:41:26.000Z
Communal.Network.v.py
HolocronFoundation/Communal.Network
41eff8ac3ca54897f19cd584e1cfc58f9326ab80
[ "CC0-1.0" ]
null
null
null
Communal.Network.v.py
HolocronFoundation/Communal.Network
41eff8ac3ca54897f19cd584e1cfc58f9326ab80
[ "CC0-1.0" ]
null
null
null
item: event({channel_index: indexed(uint256), reply_to_index: indexed(uint256), metadata: indexed(uint256)}) # item_index is the index of the sent item in C.N. # TODO: Implement channeling # Channel management struct channel: owner: address name_display: bytes32 name_unique: bytes32 # TODO: finish impleme...
39.972603
207
0.765593
ea4135e0971c3f38be4f8fa5f8203ba013d2457e
2,414
py
Python
floodsystem/geo.py
Ericsong2333/partia-flood-warning-system
545a257f601535c62b3341059fdf2203e06c8e17
[ "MIT" ]
null
null
null
floodsystem/geo.py
Ericsong2333/partia-flood-warning-system
545a257f601535c62b3341059fdf2203e06c8e17
[ "MIT" ]
null
null
null
floodsystem/geo.py
Ericsong2333/partia-flood-warning-system
545a257f601535c62b3341059fdf2203e06c8e17
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT """This module contains a collection of functions related to geographical data. """ from floodsystem.utils import sorted_by_key # noqa import math from haversine import haversine,Unit def stations_within_radius(statio...
28.4
130
0.609776
ea4292de7cf5cedb5b3ae53916a825188ffc20c5
852
py
Python
codes/Constant.py
YasserDaho/Saliency-3DSal
4a8ff399c8b24ccc88bb04311d6f9797d0cae2d1
[ "MIT" ]
2
2020-04-19T13:25:47.000Z
2020-05-08T17:14:38.000Z
codes/Constant.py
YasserDaho/Saliency-3DSal
4a8ff399c8b24ccc88bb04311d6f9797d0cae2d1
[ "MIT" ]
null
null
null
codes/Constant.py
YasserDaho/Saliency-3DSal
4a8ff399c8b24ccc88bb04311d6f9797d0cae2d1
[ "MIT" ]
1
2019-09-24T17:42:08.000Z
2019-09-24T17:42:08.000Z
""""" Path to the Image Dataset directories """"" TR_IMG_DIR = './WORKSPACE/DATASET/annotation/' GT_IMG_DIR = './WORKSPACE/DATASET/annotation/' """"" Path to Numpy Video directories """"" TR_VID_DIR = './WORKSPACE/DATA/TR_DATA/' GT_VID_DIR = './WORKSPACE/DATA/GT_DATA/' """"" Path to Numpy batches directories """"...
17.75
57
0.676056
ea436f37e311aec310471106ec69e43fc23e41c4
1,152
py
Python
cannlytics/lims/qc.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
7
2021-05-31T15:30:22.000Z
2022-02-05T14:12:31.000Z
cannlytics/lims/qc.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
17
2021-06-09T01:04:27.000Z
2022-03-18T14:48:12.000Z
cannlytics/lims/qc.py
mindthegrow/cannlytics
c266bc1169bef75214985901cd3165f415ad9ba7
[ "MIT" ]
5
2021-06-07T13:52:33.000Z
2021-08-04T00:09:39.000Z
""" Quality Control Tools | Cannlytics Author: Keegan Skeate <keegan@cannlytics.com> Created: 2/6/2021 Updated: 6/23/2021 License: MIT License <https://opensource.org/licenses/MIT> Perform various quality control checks and analyses to ensure that your laboratory is operating as desired. TODO: - Trend an...
24.510638
69
0.737847
ea43b6473a80169e05c17d102859f981a7b958d9
76
py
Python
containershare/validator/__init__.py
vsoch/containershare-python
9db2a4d7c7fcb0c21edd5d2e2b5396d7108fe392
[ "BSD-3-Clause" ]
null
null
null
containershare/validator/__init__.py
vsoch/containershare-python
9db2a4d7c7fcb0c21edd5d2e2b5396d7108fe392
[ "BSD-3-Clause" ]
1
2018-07-30T22:11:56.000Z
2018-07-30T22:11:56.000Z
containershare/validator/__init__.py
vsoch/containershare-python
9db2a4d7c7fcb0c21edd5d2e2b5396d7108fe392
[ "BSD-3-Clause" ]
null
null
null
from .library import LibraryValidator from .runtime import RuntimeValidator
25.333333
37
0.868421
ea442c2de4ff492dd4374c04a850d9f728259783
343
py
Python
packages/pyright-internal/src/tests/samples/genericTypes1.py
sransara/pyright
4e117682c946b60f2b24fd75a07736954b21f158
[ "MIT" ]
1
2020-12-28T16:58:24.000Z
2020-12-28T16:58:24.000Z
packages/pyright-internal/src/tests/samples/genericTypes1.py
sransara/pyright
4e117682c946b60f2b24fd75a07736954b21f158
[ "MIT" ]
1
2021-08-31T20:37:43.000Z
2021-08-31T20:37:43.000Z
packages/pyright-internal/src/tests/samples/genericTypes1.py
sransara/pyright
4e117682c946b60f2b24fd75a07736954b21f158
[ "MIT" ]
null
null
null
# This sample tests that the type analyzer flags as an error # an attempt to assign to or delete a generic type. from typing import Dict # This should generate an error because assignment # of generic types isn't allowed. Dict[str, int] = {} # This should generate an error because deletion # of generic types isn't a...
24.5
60
0.755102