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
bf48c12f766440fe89efdec56fd4ce8b427adc83
653
py
Python
Python3/1429-First-Unique-Number/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1429-First-Unique-Number/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1429-First-Unique-Number/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class FirstUnique: def __init__(self, nums: List[int]): self.counter = collections.Counter(nums) self.idx = 0 self.nums = nums def showFirstUnique(self) -> int: while self.idx < len(self.nums) and self.counter[self.nums[self.idx]] > 1: self.idx += 1 ...
27.208333
82
0.601838
506
0.774885
0
0
0
0
0
0
140
0.214395
bf4a21121167372f015ea33b342a6de5c9c4381e
737
py
Python
fias/migrations/0007_add_fks_to_house.py
xiva-wgt/django-fias
966e9905d6205cec8b51cbe6751382198c67f2cb
[ "BSD-3-Clause" ]
108
2015-02-26T16:33:23.000Z
2022-01-05T22:47:59.000Z
fias/migrations/0007_add_fks_to_house.py
xiva-wgt/django-fias
966e9905d6205cec8b51cbe6751382198c67f2cb
[ "BSD-3-Clause" ]
74
2015-01-26T11:15:08.000Z
2021-12-17T05:29:07.000Z
fias/migrations/0007_add_fks_to_house.py
xiva-wgt/django-fias
966e9905d6205cec8b51cbe6751382198c67f2cb
[ "BSD-3-Clause" ]
81
2015-01-22T09:55:59.000Z
2022-03-23T04:53:05.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-08-24 15:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('fias', '0006_add_fks_to_addrobj'), ] operations = [...
27.296296
100
0.629579
547
0.742198
0
0
0
0
0
0
165
0.223881
bf50573fc8c7f1473140c678218ca5ff24e7755c
514
py
Python
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
hello.py
charlieallatson/hello_world
1a759534f9ae4ae27f845dc7b4d5015c9aa91dbc
[ "MIT" ]
null
null
null
""" A new python package to learn how to create python packages """ import sys __version__ = '0.0.22' def hello(name='world'): """ Return a greeting for the given name """ return 'Hello, {}'.format(name) def main(): """ Reads input from the args passed into the script and prints the out...
16.580645
67
0.571984
0
0
0
0
0
0
0
0
259
0.503891
bf5564f8800b67c13332af3f8707a95b96113e55
93
py
Python
magent/__init__.py
PettingZoo-Team/MAgent
99e0d2c3edb49fc4bc6ae0e95c97423eec0b73f7
[ "MIT" ]
121
2020-04-28T01:00:15.000Z
2021-10-06T06:44:00.000Z
magent/__init__.py
PettingZoo-Team/MAgent
99e0d2c3edb49fc4bc6ae0e95c97423eec0b73f7
[ "MIT" ]
2
2021-06-05T04:16:13.000Z
2021-10-12T13:48:34.000Z
magent/__init__.py
PettingZoo-Team/MAgent
99e0d2c3edb49fc4bc6ae0e95c97423eec0b73f7
[ "MIT" ]
23
2020-05-29T04:31:10.000Z
2021-09-07T18:35:43.000Z
from . import gridworld from . import utility # some alias GridWorld = gridworld.GridWorld
13.285714
31
0.774194
0
0
0
0
0
0
0
0
12
0.129032
bf562b96a69896118fd044a0894e367ce47403f6
4,666
py
Python
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
17
2021-01-08T10:35:04.000Z
2022-03-23T07:13:54.000Z
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
null
null
null
Artificial Algae Algorithm/AAA.py
shahind/Nature-Inspired-Algorithms
88cfc37f903bfb3840566257f2d818ac5534affe
[ "MIT" ]
5
2021-01-11T08:31:07.000Z
2022-01-11T06:28:04.000Z
import numpy as np from Sphere import ObjVal from CalculateGreatness import CalculateGreatness from GreatnessOrder import GreatnessOrder from FrictionSurface import FrictionSurface from tournement_selection import tournement_selection def AAA(MaxFEVs, N, D, LB, UB, K, le, Ap): Algae = np.zeros((N,D)) # Xij = ...
32.17931
115
0.541149
0
0
0
0
0
0
0
0
295
0.063223
bf56a4ec5c9c9f5034ff21cf5feff393693d48db
22,712
py
Python
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
1
2021-06-08T08:20:31.000Z
2021-06-08T08:20:31.000Z
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
null
null
null
RL/PPO_ZFlt_stable_2019_1123.py
GuanShiTing/DL_RL_Zoo
520cd92c1a28f64006d51444a0940cc645b95c6d
[ "Apache-2.0" ]
null
null
null
import os import sys from time import time as timer import gym import numpy as np import numpy.random as rd import torch import torch.nn as nn import torch.nn.functional as F """ beta2 PPO ZFlt stable, running state mean std, def run_eval() beta1 GPU, def get_eva_reward() """ class Arguments: env_name = "Lunar...
33.949178
121
0.608401
6,211
0.273468
0
0
776
0.034167
0
0
3,511
0.154588
bf582559e0911ceac34a3c025dbda5c3487ce0a3
759
py
Python
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
ansible/ansiblelints/rules/WeakCryptographyalgo.py
KalmanMeth/defect-prediction
0a4b549b8af5259241f41eaee77dd841e98e0064
[ "Apache-2.0" ]
null
null
null
import ruamel.yaml from ansiblelint import AnsibleLintRule class WeakCryptographyalgo(AnsibleLintRule): id = 'ANSIBLE0010' description = 'check if weak algorithms such as MD5 are used or not ' severity = 'HIGH' tags = {'weak algo'} version_added = 'v1.0.0' shortdesc = 'WeakCryptographyalgo' ...
29.192308
101
0.621871
697
0.918314
0
0
0
0
0
0
164
0.216074
bf588f3851b0b3222aeb9120dab2bdad11f953db
2,966
py
Python
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
2
2021-06-09T20:55:17.000Z
2021-11-03T03:07:37.000Z
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
null
null
null
ApproachV4/src/GetAccountPropertiesV4.py
kanishk2509/TwitterBotDetection
26355410a43c27fff9d58f71ca0d87ff6e707b6a
[ "Unlicense" ]
1
2020-07-26T02:31:38.000Z
2020-07-26T02:31:38.000Z
import tweepy import datetime as dt import requests import re from GetTweetProperties import get_tweet_properties, get_tweet_semantics dow_ratios = {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0} ''' Step 3 Calculating Twitter User Account Properties Component ''' def get_data(user_id, api): tbl = [] try: ...
27.719626
117
0.618678
0
0
0
0
0
0
0
0
995
0.335469
bf58f80c1eddf33be62a39e2715221f40903b812
2,712
py
Python
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
17
2019-04-18T15:28:55.000Z
2020-06-11T15:49:19.000Z
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
4
2020-06-27T04:43:49.000Z
2022-03-23T11:38:25.000Z
VTPtools/vtp-skew.py
moyogo/tirotools
9cf6876fcc50448e6d45d046c10293d8ba103c31
[ "MIT" ]
1
2021-08-07T22:55:03.000Z
2021-08-07T22:55:03.000Z
import argparse import logging import math import re import sys from fontTools.misc.fixedTools import otRound from fontTools.misc.transform import Identity from fontTools.ttLib import TTFont, TTLibError from fontTools.voltLib.parser import Parser from io import StringIO log = logging.getLogger() anchor_re = re.compil...
30.818182
88
0.592183
0
0
0
0
0
0
0
0
617
0.227507
bf597e9b79cff3a9a7086f9c848f3046668b7b67
1,376
py
Python
bnb/utils/general_utils.py
elanmart/bnb-full
6d86964d6580436816a84d1dd822ede02f4bc56f
[ "MIT" ]
4
2018-04-28T14:29:11.000Z
2019-02-08T19:09:04.000Z
bnb/utils/general_utils.py
elanmart/bnb
e7556abc9b76193f1de555315e14785f47b7e99a
[ "BSD-3-Clause" ]
null
null
null
bnb/utils/general_utils.py
elanmart/bnb
e7556abc9b76193f1de555315e14785f47b7e99a
[ "BSD-3-Clause" ]
null
null
null
import inspect import os from collections import namedtuple from contextlib import contextmanager from pathlib import Path from typing import * import git @contextmanager def chdir(path): old = os.getcwd() os.chdir(path) yield os.chdir(old) def normalize_path(path: Union[Path, str]) -> Path: ...
24.140351
69
0.686773
0
0
91
0.066134
107
0.077762
0
0
54
0.039244
bf5a9cb5d3e9f2267ebde9027febc965b300c8da
8,379
py
Python
source/aws/services/transit_gateway_peering_attachments.py
josete89/serverless-transit-network-orchestrator
6a69e1f7ebcbcba20100f80bc2040f0d2ae86cf8
[ "Apache-2.0" ]
42
2019-11-16T18:00:32.000Z
2021-09-16T01:10:53.000Z
source/aws/services/transit_gateway_peering_attachments.py
sukenshah/serverless-transit-network-orchestrator
947edac276f56357859f2d2b8434b9d28fa1c6c1
[ "Apache-2.0" ]
38
2020-01-31T03:31:29.000Z
2021-09-16T03:20:23.000Z
source/aws/services/transit_gateway_peering_attachments.py
sukenshah/serverless-transit-network-orchestrator
947edac276f56357859f2d2b8434b9d28fa1c6c1
[ "Apache-2.0" ]
31
2019-12-09T17:20:03.000Z
2021-03-30T06:52:02.000Z
############################################################################### # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). # ...
46.038462
80
0.509488
7,024
0.838286
0
0
2,329
0.277957
0
0
3,047
0.363647
bf5d47be37cf903e8580c7840db1fffd47cb12b1
86
py
Python
berth/builder/backends/__init__.py
joealcorn/berth.cc
9cba1355d49705a13ae58cfdffa26ee6a3fb9e31
[ "MIT" ]
null
null
null
berth/builder/backends/__init__.py
joealcorn/berth.cc
9cba1355d49705a13ae58cfdffa26ee6a3fb9e31
[ "MIT" ]
null
null
null
berth/builder/backends/__init__.py
joealcorn/berth.cc
9cba1355d49705a13ae58cfdffa26ee6a3fb9e31
[ "MIT" ]
null
null
null
from berth.builder.backends.base import * from berth.builder.backends.sphinx import *
28.666667
43
0.813953
0
0
0
0
0
0
0
0
0
0
bf5da77aeabd12ceb0b5e356d617cea7f17c6b26
138
py
Python
customer/urls.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
8
2019-04-13T14:08:55.000Z
2022-03-06T10:53:44.000Z
customer/urls.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
16
2019-03-31T20:22:21.000Z
2022-01-15T11:43:57.000Z
customer/urls.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
null
null
null
from . import views routeList = ( (r"customers", views.CustomerViewSet), (r"customer_products", views.CustomerProductViewSet), )
19.714286
57
0.717391
0
0
0
0
0
0
0
0
32
0.231884
bf5ea75c0a67371f89833cc073f335bc92883e04
1,064
py
Python
escher/cmd/esdsl.py
msh5/escher
004e90e6df70a15a00331a5c27bf2aef77608d30
[ "Apache-2.0" ]
null
null
null
escher/cmd/esdsl.py
msh5/escher
004e90e6df70a15a00331a5c27bf2aef77608d30
[ "Apache-2.0" ]
null
null
null
escher/cmd/esdsl.py
msh5/escher
004e90e6df70a15a00331a5c27bf2aef77608d30
[ "Apache-2.0" ]
null
null
null
''' Define subcommands for 'esdsl'. ''' import json import click from escher import __version__ @click.group() @click.option('--pretty', '-p', is_flag=True) @click.option('--indent', '-n', type=int) @click.version_option(version=__version__, message='escher %(version)s') @click.pass_context def cli(ctx, pretty, ind...
20.075472
72
0.660714
0
0
0
0
632
0.593985
0
0
203
0.190789
bf5eb68165231d8bd2e30af9eab24faf05a5f7d7
675
py
Python
ui/AutoSelectSettingDialog.py
Zhehua-Hu/Enchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
12
2017-02-20T05:54:12.000Z
2020-02-13T18:26:29.000Z
ui/AutoSelectSettingDialog.py
Zhehua-Hu/-nchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
null
null
null
ui/AutoSelectSettingDialog.py
Zhehua-Hu/-nchain
94bb21f8ff627fab7d28ca15b575ba01710fb579
[ "Apache-2.0" ]
3
2017-02-23T06:35:13.000Z
2020-06-18T07:06:17.000Z
#!/usr/bin/env python # coding=utf-8 """ Provide AutoSelectSettingDialog Class """ from PyQt5.QtWidgets import QDialog, QSpinBox from AutoSelectSetting import Ui_AutoSelectSetting class AutoSelectSettingDialog(QDialog, Ui_AutoSelectSetting): def __init__(self, parent=None): QDialog.__init__(self) ...
21.774194
61
0.700741
489
0.724444
0
0
0
0
0
0
80
0.118519
bf5f3141b7f3a28885d055ded4aacbbcd9bfd9e3
9,432
py
Python
apis_highlighter/highlighter.py
acdh-oeaw/apis_highlighter
2d368ee7fb9c6096a557ec2a24a1864cd776f5f1
[ "MIT" ]
1
2019-07-13T10:52:32.000Z
2019-07-13T10:52:32.000Z
apis_highlighter/highlighter.py
acdh-oeaw/apis_highlighter
2d368ee7fb9c6096a557ec2a24a1864cd776f5f1
[ "MIT" ]
3
2018-08-01T13:44:55.000Z
2020-01-22T09:28:36.000Z
apis_highlighter/highlighter.py
acdh-oeaw/apis_highlighter
2d368ee7fb9c6096a557ec2a24a1864cd776f5f1
[ "MIT" ]
null
null
null
import re from django.contrib.contenttypes.models import ContentType from apis_core.apis_metainfo.models import Text from apis_highlighter.models import Annotation def highlight_text_new(*args, **kwargs): ann_proj_pk = kwargs.pop("set_ann_proj", False) types = kwargs.pop("types", False) users_show = kwa...
36.416988
303
0.513147
0
0
0
0
0
0
0
0
1,698
0.180025
bf5f7e78f69402cb12269c29faa4e2ec83813aa8
13,409
py
Python
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
null
null
null
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
2
2020-03-19T20:04:11.000Z
2021-12-07T16:38:11.000Z
aiida_gollum/parsers/gollum.py
garsua/aiida-gollu2
4e41753c885c1e5aa955578a0e4973d57ccd9a96
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np from aiida.orm.data.parameter import ParameterData from aiida.parsers.parser import Parser from aiida.parsers.exceptions import OutputParsingError from aiida_gollum.calculations.gollum import GollumCalculation __copyright__ = u"Copyright (c), 2015, ECOLE POLYTECHNIQUE FEDERAL...
35.757333
278
0.572899
12,647
0.943172
0
0
0
0
0
0
3,182
0.237303
bf639a181719d10dfc36d41a7287863edc74aed4
418
py
Python
plugin/python/libs/runtime/launcher.py
nomadsinteractive/ark
52f84c6dbd5ca6bdd07d450b3911be1ffd995922
[ "Apache-2.0" ]
5
2018-03-28T09:14:55.000Z
2018-04-02T11:54:33.000Z
plugin/python/libs/runtime/launcher.py
nomadsinteractive/ark
52f84c6dbd5ca6bdd07d450b3911be1ffd995922
[ "Apache-2.0" ]
null
null
null
plugin/python/libs/runtime/launcher.py
nomadsinteractive/ark
52f84c6dbd5ca6bdd07d450b3911be1ffd995922
[ "Apache-2.0" ]
null
null
null
import sys from subprocess import Popen, PIPE, STDOUT, TimeoutExpired if __name__ == '__main__': proc = Popen(sys.argv[1:], stdout=PIPE, stderr=STDOUT) while True: try: for line in iter(proc.stdout.readline, b''): print(line.decode(sys.stdout.encoding or 'utf-8').rstrip()) ...
29.857143
75
0.593301
0
0
0
0
0
0
0
0
20
0.047847
bf642152676e936f1e33bce340262b6207d887ce
746
py
Python
manage.py
stephen22otieno/oneMinutePitch
485e5a94b64b87c0967668f7204cd3c702a189e6
[ "MIT" ]
null
null
null
manage.py
stephen22otieno/oneMinutePitch
485e5a94b64b87c0967668f7204cd3c702a189e6
[ "MIT" ]
null
null
null
manage.py
stephen22otieno/oneMinutePitch
485e5a94b64b87c0967668f7204cd3c702a189e6
[ "MIT" ]
null
null
null
from flask_script import Manager,Server from app import create_app,db from app.models import User,Category,Peptalk,Comments from flask_migrate import Migrate, MigrateCommand app = create_app('development') manager =Manager(app) migrate = Migrate(app,db) manager.add_command('server',Server) manager.add_command('db', ...
25.724138
113
0.737265
0
0
0
0
334
0.447721
0
0
72
0.096515
bf645d7debf666b250cc28d7fe102ce03898024c
2,764
py
Python
winograd.py
yerich/WinoCaptcha
5abd6335e8fda1d2cf8d2d4c9c3f2324def19275
[ "Unlicense", "MIT" ]
2
2019-04-01T20:43:11.000Z
2019-04-02T10:19:18.000Z
winograd.py
yerich/WinoCaptcha
5abd6335e8fda1d2cf8d2d4c9c3f2324def19275
[ "Unlicense", "MIT" ]
null
null
null
winograd.py
yerich/WinoCaptcha
5abd6335e8fda1d2cf8d2d4c9c3f2324def19275
[ "Unlicense", "MIT" ]
null
null
null
import random import re from collections import Counter from operator import itemgetter class Winograd: def __init__(self, filename): self.schema = random_lines(filename, 1)[0] def generate(self): # Switch genders, 50% of the time if(random.randint(0,1) == 1): self.schema = re.sub("<malename>", "<femalena...
35.435897
125
0.628075
2,411
0.872287
0
0
0
0
0
0
649
0.234805
bf654202b335a3ba2dfa9de6adedf93c5fc38356
1,668
py
Python
sitecheck.py
ghostleyjim/DiscordCoronaBotNL
8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3
[ "MIT" ]
null
null
null
sitecheck.py
ghostleyjim/DiscordCoronaBotNL
8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3
[ "MIT" ]
null
null
null
sitecheck.py
ghostleyjim/DiscordCoronaBotNL
8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3
[ "MIT" ]
null
null
null
#testfile to scrape the RIVM website all is copied to bot import requests from bs4 import BeautifulSoup import csv import time import ntplib date_format = "%A %d %B %Y" f = open('updatetime.txt', 'r') old_time = f.readline() old_time = old_time.rstrip('\n') f.close() with open('updatetime.txt', "r+")...
29.263158
96
0.60012
0
0
0
0
0
0
0
0
347
0.208034
bf65b6b01d6ff04b856a4ec4aff1e18a2ea3bdcb
1,067
py
Python
source/engine/detect/step_setup_camera.py
Borrk/DeepLearning-Engine
54f6cdb8a76e76d9f439f8562652f545e4dbc02e
[ "MIT" ]
null
null
null
source/engine/detect/step_setup_camera.py
Borrk/DeepLearning-Engine
54f6cdb8a76e76d9f439f8562652f545e4dbc02e
[ "MIT" ]
null
null
null
source/engine/detect/step_setup_camera.py
Borrk/DeepLearning-Engine
54f6cdb8a76e76d9f439f8562652f545e4dbc02e
[ "MIT" ]
null
null
null
from engine.steps.IStep import IStep from imutils.video import VideoStream import imutils class step_setup_camera(IStep): """ setup camera""" options = {} def __init__(self, output_channel, name=None ): super().__init__(self, output_channel, name) self.usePiCamera = True def IRun(self...
38.107143
117
0.63074
976
0.914714
0
0
0
0
0
0
182
0.170572
bf65f199ebe8974254f6145acc0b95d4220672c6
1,428
py
Python
tota11y/middleware.py
hiisi13/django-tota11y
bf91c6a6e8a2997a6e088af41d46ef0830a4df32
[ "MIT" ]
null
null
null
tota11y/middleware.py
hiisi13/django-tota11y
bf91c6a6e8a2997a6e088af41d46ef0830a4df32
[ "MIT" ]
null
null
null
tota11y/middleware.py
hiisi13/django-tota11y
bf91c6a6e8a2997a6e088af41d46ef0830a4df32
[ "MIT" ]
null
null
null
import re from django.conf import settings from django.utils.encoding import force_text from django.template.loader import render_to_string _HTML_TYPES = ('text/html', 'application/xhtml+xml') class Tota11yMiddleware(object): def process_response(self, request, response): content_encoding = response.g...
38.594595
83
0.617647
1,229
0.860644
0
0
0
0
0
0
167
0.116947
bf6617694b418ef663952f93af37250bef039317
2,487
py
Python
cilantro_audit/home_page.py
CapstoneCilantro/CilantroAuditNewFeature
10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d
[ "MIT" ]
null
null
null
cilantro_audit/home_page.py
CapstoneCilantro/CilantroAuditNewFeature
10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d
[ "MIT" ]
null
null
null
cilantro_audit/home_page.py
CapstoneCilantro/CilantroAuditNewFeature
10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d
[ "MIT" ]
null
null
null
import kivy from kivy.app import App from kivy.lang import Builder from kivy.uix.popup import Popup from kivy.uix.screenmanager import Screen from kivy.uix.screenmanager import ScreenManager from cilantro_audit.admin_page import AdminPage from cilantro_audit.auditor_page import AuditorPage from cilantro_audit.create_a...
33.608108
119
0.772819
1,315
0.528749
0
0
0
0
0
0
269
0.108162
bf68c5f9f6dbda4bc4e365b63fe8c8768421ddab
11,476
py
Python
appengine/monorail/sitewide/userprofile.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/sitewide/userprofile.py
xswz8015/infra
f956b78ce4c39cc76acdda47601b86794ae0c1ba
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/monorail/sitewide/userprofile.py
NDevTK/chromium-infra
d38e088e158d81f7f2065a38aa1ea1894f735ec4
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Classes for the user profile page ("my page").""" from __future__ import print_function from...
42.191176
80
0.720634
10,039
0.874782
0
0
0
0
0
0
1,878
0.163646
bf69b5f1a359c8b233314f0ea6eac2fff5564fb1
404
py
Python
06 Dictionary/copyfun.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
3
2021-05-08T13:11:41.000Z
2021-05-14T02:43:20.000Z
06 Dictionary/copyfun.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
null
null
null
06 Dictionary/copyfun.py
codewithsandy/Python-Basic-Exp
4c70ada4a042923a94301453c7bd76e704cd2989
[ "MIT" ]
null
null
null
d2 = {"Sandy":"Veg", "Rugita":"Fish", "Eshwari":{"B":"maggi", "L":"Pizza", "D":"cake"}} d3 = d2 print(d2.copy()) del d3["Sandy"] print(d2) print("\n") d1 = {"Sandy":"Veg", "Rugita":"Fish", "Eshwari":{"B":"maggi", "L":"Pizza", "D":"cake"}} d4 = d1.copy() # complete copy using dot del d4["Sandy"] ...
22.444444
87
0.542079
0
0
0
0
0
0
0
0
185
0.457921
bf6b7fa8ef56c8e91159fea3e2c469042648b18d
12,766
py
Python
bel/nanopub/pubmed.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
6
2018-01-31T21:25:40.000Z
2020-11-18T16:43:56.000Z
bel/nanopub/pubmed.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
83
2018-01-03T17:31:49.000Z
2021-12-13T19:50:17.000Z
bel/nanopub/pubmed.py
belbio/bel
14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8
[ "Apache-2.0" ]
2
2019-04-12T20:42:06.000Z
2020-07-17T02:49:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Pubmed related utilities Given PMID - collect Pubmed data and Pubtator Bioconcepts used for the BELMgr or enhancing BEL Nanopubs """ # Standard Library import asyncio import copy import datetime import re from typing import Any, Mapping, MutableMapping # Third Party...
29.550926
140
0.622121
0
0
0
0
1,092
0.08554
280
0.021933
4,841
0.37921
bf6b8de0ee75da5ff25ffe6549e61e5b4e5e66f8
921
py
Python
objectoriented.py
rmcneal40/scripting_practice
2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2
[ "MIT" ]
null
null
null
objectoriented.py
rmcneal40/scripting_practice
2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2
[ "MIT" ]
null
null
null
objectoriented.py
rmcneal40/scripting_practice
2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2
[ "MIT" ]
null
null
null
import re class Ops: def __init__(self, name, year): self.name = name self.year = year p1 = Ops("CyberSecurity", 2022) print(p1.year) print(p1.name) class Technology: def __init__(self, name, year, grade, gpa, technology): self.name = name self.year = year self.grade =...
21.418605
110
0.587405
529
0.574376
0
0
0
0
0
0
262
0.284473
bf6c41df7444eeb8c502ae2cb7c1337b9779518c
1,879
py
Python
code/_archive/009_userCheckin.py
LadyMiss88/recommendation-engine-using-social-graph
4ae9978b6251bffdde6793ba394dfa77a7d4a6f4
[ "MIT" ]
null
null
null
code/_archive/009_userCheckin.py
LadyMiss88/recommendation-engine-using-social-graph
4ae9978b6251bffdde6793ba394dfa77a7d4a6f4
[ "MIT" ]
null
null
null
code/_archive/009_userCheckin.py
LadyMiss88/recommendation-engine-using-social-graph
4ae9978b6251bffdde6793ba394dfa77a7d4a6f4
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import simplejson as json import config import pymysql global database_conn global database_cursor database_conn = pymysql.connect(host = config.db_host, user = config.db_user, passwd = config.db_pass, db = config.db_database, use_unicode=True, charset="utf8") dat...
34.163636
162
0.60298
0
0
0
0
0
0
0
0
362
0.192656
bf6c77a4579d9ca212f8e013e1dcddd3b2cbae17
2,255
py
Python
pastebin_mirror/storage.py
imnotjames/pastebin_mirror
8b90d13c7590e12942045da781a081110e7897c1
[ "MIT" ]
5
2017-10-22T21:52:47.000Z
2020-10-24T11:09:25.000Z
pastebin_mirror/storage.py
imnotjames/pastebin_mirror
8b90d13c7590e12942045da781a081110e7897c1
[ "MIT" ]
2
2017-07-26T21:24:47.000Z
2018-05-06T18:05:55.000Z
pastebin_mirror/storage.py
imnotjames/pastebin-mirror
8b90d13c7590e12942045da781a081110e7897c1
[ "MIT" ]
1
2017-07-08T00:45:59.000Z
2017-07-08T00:45:59.000Z
import sqlite3 import logging logger = logging.getLogger(__name__) class SQLite3Storage: def __init__(self, location='pastebin.db'): self.connection = sqlite3.connect(location) def initialize_tables(self): logger.info('creating table `paste` if it doesn\'t exist') self.connection.ex...
26.529412
88
0.489579
2,185
0.968958
0
0
0
0
0
0
1,067
0.473171
bf7021cd6436cdc90fdb123560bbe42e5ab0e529
593
py
Python
httpolice/__init__.py
bmwiedemann/httpolice
4da2bde3d14a24b0623ee45ae10afd192d6fa771
[ "MIT" ]
1
2020-09-19T13:50:36.000Z
2020-09-19T13:50:36.000Z
httpolice/__init__.py
99/httpolice
8175020af13708801fbefc8d4f3787b11093c962
[ "MIT" ]
null
null
null
httpolice/__init__.py
99/httpolice
8175020af13708801fbefc8d4f3787b11093c962
[ "MIT" ]
null
null
null
# -*- coding: utf-8; -*- from httpolice import helpers from httpolice.__metadata__ import version as __version__ from httpolice.blackboard import Complaint from httpolice.exchange import Exchange, check_exchange from httpolice.notice import Severity from httpolice.reports.html import html_report from httpolice.reports...
24.708333
57
0.753794
0
0
0
0
0
0
0
0
125
0.210793
bf70319cef859564f4bb5a2c3ddf695891288229
75,089
py
Python
edtslib/pgdata.py
reticenti/edts-clone
fb78ba4efb646bc86d1982dff8a83629f580d9df
[ "BSD-3-Clause" ]
null
null
null
edtslib/pgdata.py
reticenti/edts-clone
fb78ba4efb646bc86d1982dff8a83629f580d9df
[ "BSD-3-Clause" ]
null
null
null
edtslib/pgdata.py
reticenti/edts-clone
fb78ba4efb646bc86d1982dff8a83629f580d9df
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division import collections import re from . import sector from . import vector3 # "Imagine the galaxy is a giant slice of Battenberg # which for reasons beyond our ken has had small chunks # of carrot cake pushed into it all over the place..." # - CMDR Jackie Silver # This does not valid...
110.425
179
0.680286
0
0
0
0
0
0
0
0
19,621
0.261303
bf71de2744fe5d1242aa731546dcbfd8e15f512b
3,381
py
Python
batch/batch/driver/resource_manager.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
batch/batch/driver/resource_manager.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
batch/batch/driver/resource_manager.py
vrautela/hail
7db6189b5b1feafa88452b8470e497d9505d9a46
[ "MIT" ]
null
null
null
from typing import List, Any, Tuple import abc import logging from hailtop.utils import time_msecs from .instance import Instance from ..file_store import FileStore from ..instance_config import InstanceConfig, QuantifiedResource log = logging.getLogger('compute_manager') class VMDoesNotExist(Exception): pass...
28.897436
138
0.71192
3,077
0.910086
0
0
1,423
0.420881
644
0.190476
228
0.067436
bf722d5a372f87aff15987a7ee497c8e0a060410
6,570
py
Python
lib/URLutils.py
ecartierlipn/neoveille2020
6dd91c39f1210dd1829b5f62637c7c6f81e14386
[ "Apache-2.0" ]
null
null
null
lib/URLutils.py
ecartierlipn/neoveille2020
6dd91c39f1210dd1829b5f62637c7c6f81e14386
[ "Apache-2.0" ]
null
null
null
lib/URLutils.py
ecartierlipn/neoveille2020
6dd91c39f1210dd1829b5f62637c7c6f81e14386
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' URL utils ''' import re,justext, chardet #import urllib2 #from urllib2 import urlopen, URLError, HTTPError, Request from bs4 import BeautifulSoup as bs import unicodedata import requests, os #import settings import logging log = logging.getLogger(__name__) ### utils def ...
36.5
300
0.633333
0
0
0
0
0
0
0
0
2,974
0.451701
bf7319f7bbdd5e51be9c062b9af0fbc76ec7aa71
855
py
Python
problems/test_0849.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0849.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0849.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import unittest from typing import List import utils # O(n) time. O(1) space. Iteration. class Solution: def maxDistToClosest(self, seats: List[int]) -> int: lo = 0 while lo < len(seats) and seats[lo] == 0: lo += 1 result = lo for hi in range(lo + 1, len(seats)): ...
21.923077
70
0.556725
710
0.830409
0
0
0
0
0
0
45
0.052632
bf73761720d08a914d996df2769ba78971749eee
2,792
py
Python
Gerador de Amostra/gerador_amostra.py
Paulognunes/Ajuste-de-Parametros-do-modelo-SIR
99607db943e87658303eea8cb59e1c776073b3e4
[ "MIT" ]
1
2022-01-14T12:44:14.000Z
2022-01-14T12:44:14.000Z
Gerador de Amostra/gerador_amostra.py
Paulognunes/Ajuste-de-Parametros-do-modelo-SIR
99607db943e87658303eea8cb59e1c776073b3e4
[ "MIT" ]
null
null
null
Gerador de Amostra/gerador_amostra.py
Paulognunes/Ajuste-de-Parametros-do-modelo-SIR
99607db943e87658303eea8cb59e1c776073b3e4
[ "MIT" ]
null
null
null
def gera_amostra(data_inicio_corte, data_fim_corte, arquivo_confirmados, arquivo_recuperados, arquivo_obitos, arquivo_datas): confirmados = open(arquivo_confirmados, 'r') recuperados = open(arquivo_recuperados, 'r') obitos = open(arquivo_obitos, 'r') data = open(arquivo_datas, 'r')...
28.20202
110
0.511819
0
0
0
0
0
0
0
0
448
0.160114
bf7570cf463efe1bbbf754068fceecada315ee88
5,040
py
Python
Machine_Learning/use_stocker.py
vhn0912/Finance
39cf49d4d778d322537531cee4ce3981cc9951f9
[ "MIT" ]
441
2020-04-22T02:21:19.000Z
2022-03-29T15:00:24.000Z
Machine_Learning/use_stocker.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
5
2020-07-06T15:19:58.000Z
2021-07-23T18:32:29.000Z
Machine_Learning/use_stocker.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
111
2020-04-21T11:40:39.000Z
2022-03-20T07:26:17.000Z
from stocker import Stocker import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib.style import matplotlib as mpl from matplotlib.pylab import rcParams rcParams['figure.figsize'] = 20, 10 from sklearn.preprocessing import MinMaxScaler from sklearn.linear_model import LinearRegression f...
28
125
0.721825
0
0
0
0
0
0
0
0
1,226
0.243254
bf763a4c8d592b78137aeb2e05f05552f4b74818
2,415
py
Python
squealy/jinjasql_loader.py
zeeshankhan28/squealy
5dfe9c5830ef74978f5defc872500fb710097408
[ "MIT" ]
null
null
null
squealy/jinjasql_loader.py
zeeshankhan28/squealy
5dfe9c5830ef74978f5defc872500fb710097408
[ "MIT" ]
null
null
null
squealy/jinjasql_loader.py
zeeshankhan28/squealy
5dfe9c5830ef74978f5defc872500fb710097408
[ "MIT" ]
1
2022-03-20T18:24:50.000Z
2022-03-20T18:24:50.000Z
import datetime from jinja2 import DictLoader from jinja2 import Environment from jinjasql import JinjaSql from dateutil.relativedelta import relativedelta from dateutil import rrule from squealy.exceptions import InvalidDateRangeException def configure_jinjasql(): """ Configure the environment and return ji...
34.014085
92
0.677433
0
0
0
0
0
0
0
0
805
0.333333
bf77945a989d2be98cc789d1b6b02fc9f2ff8482
698
py
Python
planet.py
PAStephenson/Solar-System-Simulation
619a53335ca0431b6382251a226182d453777793
[ "MIT" ]
null
null
null
planet.py
PAStephenson/Solar-System-Simulation
619a53335ca0431b6382251a226182d453777793
[ "MIT" ]
null
null
null
planet.py
PAStephenson/Solar-System-Simulation
619a53335ca0431b6382251a226182d453777793
[ "MIT" ]
null
null
null
from vector import Vector class Planet: """A class to represent a planet.""" def __init__(self, mass, position, velocity, acceleration): """Initialise the planet.""" self.MASS = mass self.position = position self.velocity = velocity self.acceleration = acceleration ...
31.727273
63
0.666189
670
0.959885
0
0
0
0
0
0
160
0.229226
bf78dd1874f5270c579ee607ac544063c7bfd4b9
21,782
py
Python
assistant/bot.py
jdcarpinelli/dungeons
fb644ba30e2bbd04d019ac279e27fdedfa1b0110
[ "MIT" ]
1
2021-02-11T02:50:11.000Z
2021-02-11T02:50:11.000Z
assistant/bot.py
jdcarpinelli/dungeons
fb644ba30e2bbd04d019ac279e27fdedfa1b0110
[ "MIT" ]
1
2020-06-18T04:13:53.000Z
2020-06-20T17:34:59.000Z
assistant/bot.py
jdcarpinelli/dungeons
fb644ba30e2bbd04d019ac279e27fdedfa1b0110
[ "MIT" ]
null
null
null
## Dungeons and Dragons Assistant # Discord bot to handle... # dice rolling, # relaying messages, # roll tracking, # and (maybe) eventually more! # # Copied and modified code from: # https://realpython.com/how-to-make-a-discord-bot-python/ # ## # Imports import sys, os, time, random, datetime import discord from dis...
35.533442
229
0.622441
0
0
0
0
19,510
0.895694
18,554
0.851804
10,040
0.460931
bf78e11629d9199d5d649ba8cfe17400cd17fd79
3,217
py
Python
Custom_Functions/Model_Generator.py
knownstranger03/Human_Pose_Estimation
fad4b171ffc6514918990b5f48e439ca7f5b3184
[ "MIT" ]
null
null
null
Custom_Functions/Model_Generator.py
knownstranger03/Human_Pose_Estimation
fad4b171ffc6514918990b5f48e439ca7f5b3184
[ "MIT" ]
null
null
null
Custom_Functions/Model_Generator.py
knownstranger03/Human_Pose_Estimation
fad4b171ffc6514918990b5f48e439ca7f5b3184
[ "MIT" ]
null
null
null
import keras import tensorflow from keras.applications.vgg16 import VGG16 from keras.engine.sequential import Sequential from keras.layers import Flatten, Dense, Dropout, BatchNormalization, InputLayer, Conv2D, MaxPool2D, Activation, Concatenate,add from keras.models import Model import warnings warnings.filterwar...
45.957143
128
0.685421
0
0
0
0
0
0
0
0
949
0.294995
bf79ad59a70ac719097fc73bb371a6c0bcb6f953
1,719
py
Python
rndt/templatetags/metadata_tags.py
pasing/geonode-rndt
214a0d17d4b93ae22257550d209c27cad4885692
[ "BSD-2-Clause" ]
null
null
null
rndt/templatetags/metadata_tags.py
pasing/geonode-rndt
214a0d17d4b93ae22257550d209c27cad4885692
[ "BSD-2-Clause" ]
56
2021-01-19T10:06:06.000Z
2021-09-10T15:31:47.000Z
rndt/templatetags/metadata_tags.py
pasing/geonode-rndt
214a0d17d4b93ae22257550d209c27cad4885692
[ "BSD-2-Clause" ]
1
2022-03-20T11:18:01.000Z
2022-03-20T11:18:01.000Z
from django import template from django.core.validators import URLValidator from geonode.base.models import Thesaurus, ThesaurusKeyword from rndt.models import LayerRNDT register = template.Library() @register.filter def get_thesaurus_about(thesaurus_id): t = Thesaurus.objects.filter(id=thesaurus_id) if t.ex...
27.285714
72
0.737056
0
0
0
0
1,498
0.871437
0
0
0
0
bf7af33b2f34f609cedf99fe7194592e05e7a33f
3,563
py
Python
cycada/models/MDAN.py
Luodian/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
150
2019-10-29T01:22:31.000Z
2022-02-16T02:09:31.000Z
cycada/models/MDAN.py
pikachusocute/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
6
2020-01-05T16:56:51.000Z
2021-10-13T03:25:05.000Z
cycada/models/MDAN.py
pikachusocute/MADAN
7a2918da44f5203b72652bc4cba0e70057482114
[ "MIT" ]
23
2019-11-04T15:46:29.000Z
2022-01-16T09:10:01.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import torch import torch.nn as nn import torch.nn.functional as F logger = logging.getLogger(__name__) class GradientReversalLayer(torch.autograd.Function): """ Implement the gradient reversal layer for the convenience of domain adaptation neural netw...
35.277228
101
0.727196
3,389
0.951165
0
0
0
0
0
0
898
0.252035
bf7cfb27c97379288c453a445e960427b967978e
511
py
Python
generator/templates/output/endforeach.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
1
2017-05-26T00:18:26.000Z
2017-05-26T00:18:26.000Z
generator/templates/output/endforeach.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
null
null
null
generator/templates/output/endforeach.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
null
null
null
from blackjack.cmake.ScriptBase import ScriptBase class endforeach(ScriptBase): """ CMake Command - endforeach """ def __init__(self, loopvar: str ): super().__init__() self.LoopVar = loopvar """Loop Variable to end the foreach loop with""" return @property def Comma...
22.217391
56
0.587084
459
0.898239
0
0
98
0.191781
0
0
143
0.279843
bf7f1d14fd8adbed3cf841350eb294961b1fa9c9
776
py
Python
test/hummingbot/connector/exchange/binance/test_binance_web_utils.py
pecuniafinance/hummingbot
2cbb19c187a429d3e6000dc938617ca2a1f9f357
[ "Apache-2.0" ]
542
2021-12-17T22:34:31.000Z
2022-03-31T14:36:23.000Z
test/hummingbot/connector/exchange/binance/test_binance_web_utils.py
pecuniafinance/hummingbot
2cbb19c187a429d3e6000dc938617ca2a1f9f357
[ "Apache-2.0" ]
291
2021-12-17T20:07:53.000Z
2022-03-31T11:07:23.000Z
test/hummingbot/connector/exchange/binance/test_binance_web_utils.py
pecuniafinance/hummingbot
2cbb19c187a429d3e6000dc938617ca2a1f9f357
[ "Apache-2.0" ]
220
2021-12-17T12:41:23.000Z
2022-03-31T23:03:22.000Z
import unittest import hummingbot.connector.exchange.binance.binance_constants as CONSTANTS from hummingbot.connector.exchange.binance import binance_web_utils as web_utils class BinanceUtilTestCases(unittest.TestCase): def test_public_rest_url(self): path_url = "/TEST_PATH" domain = "com" ...
38.8
99
0.755155
599
0.771907
0
0
0
0
0
0
34
0.043814
bf7f857e06dbbdce55ca33b9325e2485fe2d96c5
3,551
py
Python
unit_tests/controllers/test_main_window.py
GrzegorzNieuzyla/PasswordManager
f54ebb7f5f86449d3d1f13542402a536bcf264d7
[ "MIT" ]
null
null
null
unit_tests/controllers/test_main_window.py
GrzegorzNieuzyla/PasswordManager
f54ebb7f5f86449d3d1f13542402a536bcf264d7
[ "MIT" ]
null
null
null
unit_tests/controllers/test_main_window.py
GrzegorzNieuzyla/PasswordManager
f54ebb7f5f86449d3d1f13542402a536bcf264d7
[ "MIT" ]
null
null
null
from PyQt6.QtWidgets import QApplication from pytest_mock import MockerFixture from password_manager.application_context import ApplicationContext from password_manager.controllers.main_window import MainWindowController from password_manager.models.record_data import RecordData def get_context() -> ApplicationConte...
35.158416
114
0.727964
0
0
0
0
0
0
0
0
340
0.095748
bf7fc8a8b957b2b7bbdc53ff35693ae32e07145b
1,915
py
Python
stepik/python67/03_04_04.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
2
2019-05-24T20:10:16.000Z
2020-07-11T06:06:43.000Z
stepik/python67/03_04_04.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
null
null
null
stepik/python67/03_04_04.py
ornichola/learning-new
e567218d8887805e38b1361715d5e3bd51a6bcaf
[ "Unlicense" ]
21
2019-03-11T20:25:05.000Z
2022-02-28T13:53:10.000Z
#[STEPIK] # Программирование на Python https://stepik.org/67 # 03_04_04 Файловый ввод/вывод ''' Имеется файл с данными по успеваемости абитуриентов. Он представляет из себя набор строк, где в каждой строке записана следующая информация: Фамилия;Оценка_по_математике;Оценка_по_физике;Оценка_по_русскому_языку Поля внут...
28.58209
196
0.734726
0
0
0
0
0
0
0
0
1,755
0.683411
bf8039d9c0032c62c24d6cc59c9dc3793dfda2b5
495
py
Python
bot/exceptions.py
christinevandev/KevinMalone
9bb0f0313611c59676d1ae0f8d9249420e70d436
[ "MIT" ]
null
null
null
bot/exceptions.py
christinevandev/KevinMalone
9bb0f0313611c59676d1ae0f8d9249420e70d436
[ "MIT" ]
null
null
null
bot/exceptions.py
christinevandev/KevinMalone
9bb0f0313611c59676d1ae0f8d9249420e70d436
[ "MIT" ]
null
null
null
import logging from discord import commands logger = logging.getLogger(__name__) class NotGuildException(commands.ApplicationCommandError): pass class ErrorHandler: def __init__(self, error): self.err = error self.msg = self._handle_error() def _handle_error(self): if isinstan...
22.5
58
0.688889
406
0.820202
0
0
0
0
0
0
64
0.129293
bf80a6ed202974e61e0995b343b524e3bec0665a
1,921
py
Python
baselines/PPO/src/model.py
dg10mcdos/mario-bmstew
5b1806fc59dc88fd326a4e1de9c02284ba35f9f9
[ "BSD-3-Clause" ]
null
null
null
baselines/PPO/src/model.py
dg10mcdos/mario-bmstew
5b1806fc59dc88fd326a4e1de9c02284ba35f9f9
[ "BSD-3-Clause" ]
null
null
null
baselines/PPO/src/model.py
dg10mcdos/mario-bmstew
5b1806fc59dc88fd326a4e1de9c02284ba35f9f9
[ "BSD-3-Clause" ]
null
null
null
""" @author: Viet Nguyen <nhviet1009@gmail.com> """ import torch.nn as nn import torch.nn.functional as F class PPO(nn.Module): def __init__(self, num_inputs, num_actions): # num_states, num_actions (e.g. 4 & 7) super(PPO, self).__init__() self.conv1 = nn.Conv2d(num_inputs, 32, 3, stride=2, paddi...
42.688889
129
0.5924
1,811
0.942738
0
0
0
0
0
0
646
0.336283
bf815a5689f21b9f61269d3af287f2332400836a
2,423
py
Python
ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
85
2020-07-24T00:04:28.000Z
2022-02-10T10:35:15.000Z
ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py
waikato-ufdl/ufdl-backend
776fc906c61eba6c2f2e6324758e7b8a323e30d7
[ "Apache-2.0" ]
null
null
null
from typing import List, NoReturn from rest_framework import routers from rest_framework.request import Request from rest_framework.response import Response from ...exceptions import BadArgumentValue from ...models.nodes import Hardware from ...serialisers.nodes import HardwareSerialiser from ._RoutedViewSet import R...
35.115942
94
0.658275
2,087
0.861329
0
0
463
0.191085
0
0
1,015
0.418902
bf821f1fba117acb6e32d7d42fd26be0ab419540
197
py
Python
game_generic/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
game_generic/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
game_generic/__init__.py
Holt59/modorganizer-python_plugins
f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # Force load of resources so that Qt can see them: from .resources import * # noqa from .generic_game import GenericGame def createPlugin(): return GenericGame()
17.909091
50
0.700508
0
0
0
0
0
0
0
0
81
0.411168
bf82e91afdcb5e0fddbe0747375ddf3b811c5754
10,575
py
Python
edflow/util.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
2
2021-03-10T13:42:12.000Z
2021-03-10T14:29:53.000Z
edflow/util.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
null
null
null
edflow/util.py
rromb/edflow
8681cadf1770ca1bc1515535768dc14cb0758b0f
[ "MIT" ]
null
null
null
"""Some Utility functions, that make yur life easier but don't fit in any better catorgory than util.""" import numpy as np import os import pickle def linear_var(step, start, end, start_value, end_value, clip_min=0.0, clip_max=1.0): r"""Linear from :math:`(a, \alpha)` to :math:`(b, \beta)`, i.e. :math:`y = ...
29.212707
85
0.564728
2,245
0.212293
242
0.022884
234
0.022128
0
0
3,989
0.37721
bf8425fbb8a6c4e485f1bc15c4ac7de770febef9
5,227
py
Python
Tools/Wings3DExporter/erlang_ext.py
fegorsch/ogre
79b0163a25164a27a0b63958467db96530a2b194
[ "MIT" ]
2,937
2016-02-05T14:26:54.000Z
2022-03-31T14:53:11.000Z
Tools/Wings3DExporter/erlang_ext.py
fegorsch/ogre
79b0163a25164a27a0b63958467db96530a2b194
[ "MIT" ]
916
2016-01-05T23:41:21.000Z
2022-03-26T17:40:31.000Z
Tools/Wings3DExporter/erlang_ext.py
fegorsch/ogre
79b0163a25164a27a0b63958467db96530a2b194
[ "MIT" ]
976
2015-12-30T13:14:27.000Z
2022-03-31T09:21:07.000Z
# Python module to read erlang ext (term) format # # written by Attila Tajti on 2003, for # # TODO: reads compressed data only import os, sys, struct, zlib, cStringIO class erlang_atom: def __init__(self, atom): self.atom = atom def __str__(self): return self.atom def __eq__(self, other): return self.a...
22.242553
73
0.637842
4,860
0.929788
0
0
0
0
0
0
741
0.141764
bf84b8c96e2bdd65eb5bb3c0dbead6d4d0544cd5
2,459
py
Python
src/Examples/Akihabara.Examples.OnRawIO/track.py
Amberarch/Akihabara
22d3984cb225e199b955e6b13be90f1959978bc6
[ "MIT" ]
19
2021-09-13T21:29:58.000Z
2022-03-01T13:44:23.000Z
src/Examples/Akihabara.Examples.OnRawIO/track.py
Amberarch/Akihabara
22d3984cb225e199b955e6b13be90f1959978bc6
[ "MIT" ]
44
2021-09-13T15:27:46.000Z
2022-01-18T13:13:09.000Z
src/Examples/Akihabara.Examples.OnRawIO/track.py
Amberarch/Akihabara
22d3984cb225e199b955e6b13be90f1959978bc6
[ "MIT" ]
10
2021-09-15T16:15:46.000Z
2022-01-21T01:14:54.000Z
#!/usr/bin/python import argparse import subprocess class MediaMetadata: def __init__(self, width, height, framerate): self.width = width self.height = height self.framerate = framerate def from_filepath(filepath): output = subprocess.check_output([ "ffprobe", "-v"...
33.22973
125
0.646198
729
0.296462
0
0
0
0
0
0
1,035
0.420903
bf84f72aa546b58d0a0f6e1870efb1ee915c5fc8
1,261
py
Python
tests/test_backend.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
2
2018-02-18T15:23:18.000Z
2020-02-10T13:40:23.000Z
tests/test_backend.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
41
2017-12-01T01:10:41.000Z
2021-08-24T14:08:09.000Z
tests/test_backend.py
djeromov/django-grainy
d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627
[ "Apache-2.0" ]
1
2021-08-10T17:46:14.000Z
2021-08-10T17:46:14.000Z
from .util import UserTestCase from django.db import models from grainy.const import ( PERM_READ, PERM_UPDATE, PERM_CREATE, PERM_DELETE, ) from grainy.core import ( PermissionSet, ) from django_grainy.backends import GrainyBackend class TestGrainyBackend(UserTestCase): EXPECTED_PERMISSIONS...
28.022222
75
0.68755
1,004
0.796193
0
0
194
0.153846
0
0
121
0.095956
bf85e87ae27dbc7518de916f0330cd2331da96f8
1,698
py
Python
resources/logforms/mdtex_fiction_yml_pdf.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
32
2016-08-27T01:31:42.000Z
2022-03-21T08:59:28.000Z
resources/logforms/mdtex_fiction_yml_pdf.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
3
2016-08-27T00:51:47.000Z
2019-08-26T13:23:04.000Z
resources/logforms/mdtex_fiction_yml_pdf.py
exposit/pythia-oracle
60e4e806c9ed1627f2649822ab1901d28933daac
[ "MIT" ]
10
2016-08-28T14:14:41.000Z
2021-03-18T03:24:22.000Z
#!/usr/bin/env python #-*- coding: utf-8 -*- ##--------------------------------------------------------------------------------------- # # Markdown # fiction: includes only fiction blocks # yml: uses a yaml Front Matter from config.txt # pdf: is ready to convert to pdf (or latex) via pandoc # ##-----------...
31.444444
144
0.478799
0
0
0
0
0
0
0
0
629
0.370436
bf8627d375cf895cf89704a8489ab629b2f6cdbb
249
py
Python
Credit Risk Prediction - Univ.AI/src/submission.py
mrityu-jha/ML-DL-Challenges
5ccf1c28d2db631aae577732c9bb6f095322e99c
[ "MIT" ]
null
null
null
Credit Risk Prediction - Univ.AI/src/submission.py
mrityu-jha/ML-DL-Challenges
5ccf1c28d2db631aae577732c9bb6f095322e99c
[ "MIT" ]
null
null
null
Credit Risk Prediction - Univ.AI/src/submission.py
mrityu-jha/ML-DL-Challenges
5ccf1c28d2db631aae577732c9bb6f095322e99c
[ "MIT" ]
null
null
null
import urllib.parse print( "Hello, Please refer to the below link to access my codes/notebooks being used for Credit Risk Prediction Hackathon") s = urllib.parse.quote( 'github.com/mrityu-jha/Credit-Risk-Prediction-Univ.AI.git') print('https://'+s)
49.8
124
0.771084
0
0
0
0
0
0
0
0
184
0.738956
bf877aabd253c54022394c18ee4dcdeb052fe7ac
1,919
py
Python
utils/pycui.py
bboysteed/dzy
ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26
[ "MIT" ]
null
null
null
utils/pycui.py
bboysteed/dzy
ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26
[ "MIT" ]
null
null
null
utils/pycui.py
bboysteed/dzy
ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from os import name class color: def __init__(self): if name == "nt": # Windows self.RED = 0x04 self.GREY = 0x08 self.BLUE = 0x01 self.CYAN = 0x03 self.BLACK = 0x0 self.GREEN = 0x02 self....
24.922078
68
0.427306
1,870
0.974466
0
0
0
0
0
0
204
0.106305
bf88ab07873f2b729ba26df40d8be261a47e6d53
5,862
py
Python
find-cut-up-regions/find-cut-up-regions.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
20
2015-06-05T14:02:12.000Z
2021-11-02T22:19:18.000Z
find-cut-up-regions/find-cut-up-regions.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2015-10-15T12:58:35.000Z
2015-10-15T12:58:35.000Z
find-cut-up-regions/find-cut-up-regions.py
catseye/NaNoGenLab
3e4a7314e6023557856e1cc910e9d0edc4daf43c
[ "Unlicense" ]
1
2021-04-08T23:50:06.000Z
2021-04-08T23:50:06.000Z
#!/usr/bin/env python from optparse import OptionParser import os import random import sys import PIL from PIL import Image try: from tqdm import tqdm except ImportError: def tqdm(x): return x def mkdir_p(path): try: os.mkdir(path) except OSError: pass def cutup(options, i...
31.516129
81
0.594507
0
0
0
0
0
0
0
0
1,150
0.196179
bf88dee8af3ae2a896f732384f154013a7b47e72
1,925
py
Python
articulation_tutorials/python_service_client/model_selection_client.py
tum-vision/articulation
3bb714fcde14b8d47977bd3b3da2c2cd13ebe685
[ "BSD-2-Clause" ]
3
2017-03-15T16:50:05.000Z
2021-02-28T05:27:24.000Z
articulation_tutorials/python_service_client/model_selection_client.py
AbdelrahmanElsaid/articulation
3bb714fcde14b8d47977bd3b3da2c2cd13ebe685
[ "BSD-2-Clause" ]
null
null
null
articulation_tutorials/python_service_client/model_selection_client.py
AbdelrahmanElsaid/articulation
3bb714fcde14b8d47977bd3b3da2c2cd13ebe685
[ "BSD-2-Clause" ]
7
2015-07-14T14:47:51.000Z
2018-04-02T16:22:23.000Z
#!/usr/bin/env python import roslib; roslib.load_manifest('articulation_tutorials') import rospy import numpy from articulation_msgs.msg import * from articulation_msgs.srv import * from geometry_msgs.msg import Pose, Point, Quaternion from sensor_msgs.msg import ChannelFloat32 PRISMATIC = 0 ROTATIONAL = 1 MODELS={...
27.112676
87
0.697143
0
0
0
0
0
0
0
0
274
0.142338
bf89b25245266126dba56862b20f23c850ea62d7
2,397
py
Python
process.py
Swathisree/d3_Food_facts
cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0
[ "OML" ]
null
null
null
process.py
Swathisree/d3_Food_facts
cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0
[ "OML" ]
null
null
null
process.py
Swathisree/d3_Food_facts
cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0
[ "OML" ]
null
null
null
import pandas as pd import json countries = pd.read_csv('tsv/products_countries.tsv', sep='\t') categories = pd.read_csv('tsv/products_categories_full.tsv', sep='\t') products = pd.read_csv('tsv/products.tsv', sep='\t') combined = pd.merge(left = products, right = categories, on='code' ) combined = pd.merge(left=com...
29.231707
122
0.622445
0
0
0
0
0
0
0
0
398
0.166041
bf8a442f7555ff5867a989ed32bf9d07c2238f69
10,207
py
Python
src/bot.py
jannikbusse/DSA_BOT
87b3972235e5c7b77ca24c8ab34d6d045b8dfeac
[ "MIT" ]
null
null
null
src/bot.py
jannikbusse/DSA_BOT
87b3972235e5c7b77ca24c8ab34d6d045b8dfeac
[ "MIT" ]
1
2020-11-09T23:29:15.000Z
2020-11-09T23:29:15.000Z
src/bot.py
jannikbusse/DSA_BOT
87b3972235e5c7b77ca24c8ab34d6d045b8dfeac
[ "MIT" ]
null
null
null
import discord import queue import db import disc_api import glob_vars import time, threading import dice import helper import logging import re stats = ["mu","kl","in","ch","ff","ge", "ko", "kk"] #careful: in is int in the db! def is_int(s): try: int(s) return True except ValueError: ...
33.13961
146
0.621828
0
0
0
0
0
0
0
0
1,770
0.17341
bf8c232211d8a9e8eb6f6025337e301b97fed78a
12,943
py
Python
acms-pass/t.py
EtoDemerzel0427/Misc-Notes
d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26
[ "MIT" ]
null
null
null
acms-pass/t.py
EtoDemerzel0427/Misc-Notes
d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26
[ "MIT" ]
null
null
null
acms-pass/t.py
EtoDemerzel0427/Misc-Notes
d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26
[ "MIT" ]
null
null
null
import argparse import asyncio import random import signal import sys import time import traceback import yaml from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtNetwork import * from PyQt5.QtWidgets import * from b4 import * class B4: conf = dict() groups = dict() room_...
37.956012
118
0.565402
4,482
0.346288
0
0
0
0
4,662
0.360195
2,219
0.171444
bf8cd3b23bb4289ca1b26b3b9af9020a678e5fa8
13,980
py
Python
src/utils/log.py
jcyrss/hytest
f3a5e53524fcf2917c95721146eb797ffabe4c11
[ "Apache-2.0" ]
8
2021-08-08T01:11:09.000Z
2022-03-07T07:50:08.000Z
src/utils/log.py
Vincentlz/hytest
f3a5e53524fcf2917c95721146eb797ffabe4c11
[ "Apache-2.0" ]
null
null
null
src/utils/log.py
Vincentlz/hytest
f3a5e53524fcf2917c95721146eb797ffabe4c11
[ "Apache-2.0" ]
6
2021-09-07T05:38:24.000Z
2022-03-22T09:52:02.000Z
_f=' case_st_lable' _e='green' _d='tag' _c=' fail' _b='folder_header' _a='executetime' _Z='folder_body' _Y='%Y%m%d_%H%M%S' _X='用例' _W='log' _V='info error-info' _U='%Y-%m-%d %H:%M:%S' _T='abort' _S='fail' _R='pass' _Q='utf8' _P='case_count' _O='case_count_toberun' _N='label' _M='Traceback:\n' _L='suite' _K='case_teardo...
80.809249
1,374
0.721388
13,175
0.903883
0
0
0
0
0
0
4,224
0.289791
bf8ee76e1f64b536bad62c4443845e7dcf14d0c8
5,872
py
Python
blenderneuron/blender/blendernode.py
Helveg/BlenderNEURON
7297e6aa45722f35908b707d0020b0519a6bc60d
[ "MIT" ]
19
2018-02-09T21:30:25.000Z
2022-03-21T23:02:26.000Z
blenderneuron/blender/blendernode.py
Helveg/BlenderNEURON
7297e6aa45722f35908b707d0020b0519a6bc60d
[ "MIT" ]
30
2019-04-16T02:38:24.000Z
2022-03-19T18:42:58.000Z
blenderneuron/blender/blendernode.py
Helveg/BlenderNEURON
7297e6aa45722f35908b707d0020b0519a6bc60d
[ "MIT" ]
5
2018-07-23T16:49:59.000Z
2022-03-02T18:48:07.000Z
import bpy from blenderneuron.blender.blenderroot import BlenderRoot from blenderneuron.blender.blenderrootgroup import * from blenderneuron.commnode import CommNode class BlenderNode(CommNode): def __init__(self, *args, **kwargs): super(BlenderNode, self).__init__("Blender", *args, **kwargs) ...
30.268041
81
0.56812
5,694
0.969687
0
0
187
0.031846
0
0
1,086
0.184946
bf90f187c224578a009a7b143999adefdfe7e863
3,383
py
Python
inventory/zero.py
fbartels/zero
370becc20bc6b89b4453ce71af31c4e5da972372
[ "MIT" ]
null
null
null
inventory/zero.py
fbartels/zero
370becc20bc6b89b4453ce71af31c4e5da972372
[ "MIT" ]
null
null
null
inventory/zero.py
fbartels/zero
370becc20bc6b89b4453ce71af31c4e5da972372
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import argparse import subprocess try: import json except ImportError: import simplejson as json class ZeroInventory(object): def __init__(self): self.inventory = {} self.read_cli_args() # Called with `--list`. if self.args.lis...
32.219048
106
0.516406
3,193
0.943837
0
0
0
0
0
0
932
0.275495
bf9140192eafe23e1e6c3ba78e5132763af92f1c
1,579
py
Python
userbot/plugins/pantele.py
Kirmada7/KirmadaBot
96d72edb0c04445fa10b2a29c177ff74f371c7da
[ "MIT" ]
null
null
null
userbot/plugins/pantele.py
Kirmada7/KirmadaBot
96d72edb0c04445fa10b2a29c177ff74f371c7da
[ "MIT" ]
null
null
null
userbot/plugins/pantele.py
Kirmada7/KirmadaBot
96d72edb0c04445fa10b2a29c177ff74f371c7da
[ "MIT" ]
1
2020-07-12T06:50:04.000Z
2020-07-12T06:50:04.000Z
import asyncio import random import string from asyncio import wait from userbot.events import register @register(outgoing=True, pattern="^.pan") async def generate(e): if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"): message = e.text name = str(message[5:]) ...
35.088889
125
0.527549
0
0
0
0
1,472
0.927536
1,429
0.900441
384
0.241966
bf92e2b796afda65543afc9a1d957b84bd60a4c5
4,124
py
Python
src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 may ...
37.834862
94
0.725024
0
0
0
0
0
0
0
0
1,451
0.351843
bf92f177f7ec59a72d055c6c761cbe15cbc82589
1,743
py
Python
bms_fsm.py
dsoto/ASI-ENNOID-dashboard
8391b4acee770306931c3cf46fd46ec6e96eb4ba
[ "CC-BY-4.0" ]
1
2022-03-03T21:38:06.000Z
2022-03-03T21:38:06.000Z
bms_fsm.py
dsoto/ASI-ENNOID-dashboard
8391b4acee770306931c3cf46fd46ec6e96eb4ba
[ "CC-BY-4.0" ]
null
null
null
bms_fsm.py
dsoto/ASI-ENNOID-dashboard
8391b4acee770306931c3cf46fd46ec6e96eb4ba
[ "CC-BY-4.0" ]
null
null
null
import board import busio import struct import time class BMS_FSM(): def __init__(self): # self.bms_uart = busio.UART(board.TX, board.RX, baudrate=115200) # Feather M4 self.bms_uart = busio.UART(board.D18, board.D19, baudrate=115200) # Grand Central self.bms_request = bytes([0x02, 0x01, 0x0...
37.891304
106
0.567413
1,689
0.969019
0
0
0
0
0
0
529
0.3035
bf94ecc0db6e188b273d33a45521f2cb0f748165
7,660
py
Python
further/pc_algorithm.py
alan-turing-institute/pcit
d8e3b7894d1ecbfed3a3405a31276ff4e9122f67
[ "MIT" ]
4
2018-11-06T09:54:44.000Z
2022-01-19T20:23:50.000Z
further/pc_algorithm.py
alan-turing-institute/pcit
d8e3b7894d1ecbfed3a3405a31276ff4e9122f67
[ "MIT" ]
1
2018-02-04T18:10:43.000Z
2018-02-04T18:10:43.000Z
further/pc_algorithm.py
alan-turing-institute/pcit
d8e3b7894d1ecbfed3a3405a31276ff4e9122f67
[ "MIT" ]
2
2018-12-26T10:06:25.000Z
2020-03-19T03:37:32.000Z
import itertools import matplotlib.pyplot as plt import networkx as nx import numpy as np from pcit.IndependenceTest import pred_indep class descendants(): def __init__(self, skeleton): self.skeleton = skeleton self.desc = list() def dir_desc(self, i): n = self.skeleton.shape[1] ...
37.184466
112
0.503916
7,519
0.981593
0
0
0
0
0
0
56
0.007311
bf96f7be55166477d48c62a3607aa35997d0f553
15,204
py
Python
tests/unit/controllers/v1/test_executions_rbac.py
cognifloyd/st2-open-rbac
fb3251223743e497267277fe9f5cef91f41ade34
[ "Apache-2.0" ]
null
null
null
tests/unit/controllers/v1/test_executions_rbac.py
cognifloyd/st2-open-rbac
fb3251223743e497267277fe9f5cef91f41ade34
[ "Apache-2.0" ]
null
null
null
tests/unit/controllers/v1/test_executions_rbac.py
cognifloyd/st2-open-rbac
fb3251223743e497267277fe9f5cef91f41ade34
[ "Apache-2.0" ]
null
null
null
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
40.43617
99
0.636938
13,331
0.876809
0
0
13,394
0.880952
0
0
3,786
0.249013
bf97afb110f8b2e8ba3c9d7ed701726cf642cd46
2,823
py
Python
train.py
erick-alv/g-hgg
2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee
[ "MIT" ]
null
null
null
train.py
erick-alv/g-hgg
2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee
[ "MIT" ]
null
null
null
train.py
erick-alv/g-hgg
2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee
[ "MIT" ]
null
null
null
import numpy as np import time from common import get_args, experiment_setup from copy import deepcopy import pickle import tensorflow as tf if __name__=='__main__': # Getting arguments from command line + defaults # Set up learning environment including, gym env, ddpg agent, hgg/normal learner, tester args = get_...
32.079545
93
0.735034
0
0
0
0
0
0
0
0
724
0.256465
bf9c418efafede01fd1fe96486cab5628df1217c
145
py
Python
CS1410/Mod1_Practice/schoolPractice/Equality.py
Davidjbennett/DavidBennett.github.io
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
3
2021-05-18T16:17:29.000Z
2022-01-20T15:46:59.000Z
CS1410/Mod1_Practice/schoolPractice/Equality.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
CS1410/Mod1_Practice/schoolPractice/Equality.py
Davidjbennett/DavidBennett
09a2652b7ace8741bf23c6432abd58ee790b9f0c
[ "MIT" ]
null
null
null
first = [10,20,30] second = first third = list(first) print(first == second) print(first == third) print(first is second) print(first is third)
16.111111
22
0.703448
0
0
0
0
0
0
0
0
0
0
bf9c9f2ad47c2493e56e5746ab85cc6e452ae864
1,371
py
Python
tests/fast/test_pickle.py
evinism/littlebaker
d4eac27c23999274397aecdb719c465b13306f26
[ "MIT" ]
19
2020-12-04T02:39:04.000Z
2020-12-04T21:45:09.000Z
tests/fast/test_pickle.py
evinism/littlebaker
d4eac27c23999274397aecdb719c465b13306f26
[ "MIT" ]
13
2020-12-04T22:20:26.000Z
2021-04-29T05:39:51.000Z
tests/fast/test_pickle.py
evinism/littlebaker
d4eac27c23999274397aecdb719c465b13306f26
[ "MIT" ]
1
2021-04-28T06:21:01.000Z
2021-04-28T06:21:01.000Z
from tinybaker import Transform, InputTag, OutputTag, sequence import pickle class StepOne(Transform): foo = InputTag("foo") bar = OutputTag("bar") def script(self): with self.foo.open() as f: data = f.read() with self.bar.open() as f: f.write(data) class StepTwo...
23.637931
66
0.557257
808
0.589351
0
0
0
0
0
0
193
0.140773
bf9d1c229636cf8e73b8136dc8f76f750b3401fc
1,711
py
Python
tests/actors/accessibility/test_accessibility.py
reapler/geckordp
29dab2e6e691954a473e054fa95ba40a3ad10e53
[ "MIT" ]
1
2021-12-24T04:37:02.000Z
2021-12-24T04:37:02.000Z
tests/actors/accessibility/test_accessibility.py
jpramosi/geckordp
29dab2e6e691954a473e054fa95ba40a3ad10e53
[ "MIT" ]
1
2021-07-23T13:38:36.000Z
2021-08-07T14:17:54.000Z
tests/actors/accessibility/test_accessibility.py
reapler/geckordp
29dab2e6e691954a473e054fa95ba40a3ad10e53
[ "MIT" ]
1
2021-10-31T17:31:35.000Z
2021-10-31T17:31:35.000Z
# pylint: disable=unused-import import pytest import tests.helpers.constants as constants from tests.helpers.utils import * from geckordp.rdp_client import RDPClient from geckordp.actors.root import RootActor from geckordp.actors.descriptors.tab import TabActor from geckordp.actors.accessibility.accessibility import Ac...
26.734375
89
0.670953
0
0
0
0
0
0
0
0
158
0.092344
bf9e18fe4d55d3bb8920e6325a4acb85be41d552
481
py
Python
youtube_parser.py
d99p/rude_bot
104e1aee4daa88aa21d80ffc958d8d5445126c1d
[ "Apache-2.0" ]
8
2020-11-16T20:25:05.000Z
2021-10-04T17:06:33.000Z
youtube_parser.py
d99p/rude_bot
104e1aee4daa88aa21d80ffc958d8d5445126c1d
[ "Apache-2.0" ]
3
2021-04-10T20:31:12.000Z
2021-04-12T12:03:32.000Z
youtube_parser.py
d99p/rude_bot
104e1aee4daa88aa21d80ffc958d8d5445126c1d
[ "Apache-2.0" ]
7
2021-03-29T09:42:38.000Z
2022-02-04T12:52:29.000Z
import requests import re def cut_url(content): text = re.findall(r'url="https:\/\/[\w.,@?^=%&:/~+#-]*', content) #idk if this a good way return text[0].replace('url="', '').replace('?version=3', '').replace('/v/', '/watch?v=') def get_urls(url): resp = requests.get(url) urls = [cut_url(link) fo...
25.315789
93
0.621622
0
0
0
0
0
0
0
0
118
0.245322
bf9fb9031e94da688c160248b371ac9be8f9e4a5
17,301
py
Python
DbObjectCreator/DbObjectCreator.py
Haagimus/cautious-rotary-phone
21c4c7869b8166cdb75e5db4eb35acde28b459f2
[ "MIT" ]
2
2020-08-29T22:03:46.000Z
2020-09-03T11:25:04.000Z
DbObjectCreator/DbObjectCreator.py
Haagimus/cautious-rotary-phone
21c4c7869b8166cdb75e5db4eb35acde28b459f2
[ "MIT" ]
null
null
null
DbObjectCreator/DbObjectCreator.py
Haagimus/cautious-rotary-phone
21c4c7869b8166cdb75e5db4eb35acde28b459f2
[ "MIT" ]
null
null
null
import mysql.connector from enum import Enum from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, Query from sqlalchemy.ext.automap import automap_base from sqlalchemy.sql.elements import BinaryExpression from sshtunnel import SSHTunnelForwarder import pymysql import psycopg2 import pymssql imp...
40.048611
166
0.5628
16,924
0.978209
0
0
0
0
0
0
7,179
0.414947
bfa007f01f0521a3952080258ba83656a9eeaff7
564
py
Python
py/leetcode/DungeonGame.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
py/leetcode/DungeonGame.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
py/leetcode/DungeonGame.py
danyfang/SourceCode
8168f6058648f2a330a7354daf3a73a4d8a4e730
[ "MIT" ]
null
null
null
''' Leetcode problem No 174 Dungeon Game Solution written by Xuqiang Fang on 5 July, 2018 ''' class Solution(object): def calculateMinimumHP(self, dungeon): DP = [float("inf") for _ in dungeon[0]] DP[-1] = 1 for i in reversed(xrange(len(dungeon))): DP[-1] = max(DP[-1] - dungeon...
26.857143
62
0.547872
436
0.77305
0
0
0
0
0
0
98
0.173759
bfa0480628cbd64765f0e794d146b8b1cadeec58
10,288
py
Python
pw_make_radcool_structure.py
parkerwray/tmm
8c27a56163d33de5955611eee35864c4485d1b2b
[ "MIT" ]
null
null
null
pw_make_radcool_structure.py
parkerwray/tmm
8c27a56163d33de5955611eee35864c4485d1b2b
[ "MIT" ]
null
null
null
pw_make_radcool_structure.py
parkerwray/tmm
8c27a56163d33de5955611eee35864c4485d1b2b
[ "MIT" ]
null
null
null
""" Import relevant modules """ from __future__ import division, print_function, absolute_import #from tmm.tmm_core import (coh_tmm, unpolarized_RT, ellips, # position_resolved, find_in_structure_with_inf) from wptherml.wptherml.datalib import datalib import tmm.tmm_core as tmm from numpy impor...
39.569231
135
0.585051
0
0
0
0
0
0
0
0
7,876
0.765552
bfa068d8a934be3d7b1205fc6ff72b2f92ee4aa5
636
py
Python
covertutils/covertutils/shells/subshells/__init__.py
aidden-laoch/sabre
0940aa51dfc5074291df9d29db827ddb4010566d
[ "MIT" ]
2
2020-11-23T23:54:32.000Z
2021-05-25T12:28:05.000Z
covertutils/covertutils/shells/subshells/__init__.py
aidden-laoch/sabre
0940aa51dfc5074291df9d29db827ddb4010566d
[ "MIT" ]
1
2021-03-20T05:43:02.000Z
2021-03-20T05:43:02.000Z
covertutils/covertutils/shells/subshells/__init__.py
aidden-laoch/sabre
0940aa51dfc5074291df9d29db827ddb4010566d
[ "MIT" ]
null
null
null
# from covertutils.shells.subshells.simplesubshell import SimpleSubShell # from covertutils.shells.subshells.shellcodesubshell import ShellcodeSubShell # from covertutils.shells.subshells.pythonapisubshell import PythonAPISubShell # from covertutils.shells.subshells.controlsubshell import ControlSubShell # from covertu...
37.411765
101
0.878931
0
0
0
0
0
0
0
0
38
0.059748
bfa0c27f0aad4f5472dc6a2166cb780a75f980c8
1,105
py
Python
tensorflow/contrib/distribute/python/tpu_strategy.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distribute/python/tpu_strategy.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distribute/python/tpu_strategy.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
40.925926
83
0.718552
0
0
0
0
0
0
0
0
813
0.735747
bfa0c62575bd34e4cba52c7f7400939a06bfae09
1,592
py
Python
after/bayes.py
Windsooon/Comments
47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9
[ "MIT" ]
1
2020-07-08T06:17:54.000Z
2020-07-08T06:17:54.000Z
after/bayes.py
Windsooon/Comments
47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9
[ "MIT" ]
null
null
null
after/bayes.py
Windsooon/Comments
47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9
[ "MIT" ]
null
null
null
import os import csv import pickle import pandas as pd import numpy as np import sklearn from sklearn.model_selection import train_test_split, cross_val_score from sklearn.model_selection import KFold from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score from sklearn.naive_bayes import Mu...
31.215686
83
0.766332
0
0
0
0
0
0
0
0
64
0.040201
bfa123a46e6c48d9f51257a647096c4fc2fe9422
818
py
Python
deprecated/printers/bov/tests/test_database.py
nielsdrost/pymt
ae39bf807428827a6904202bf4d3b927daa255ea
[ "MIT" ]
null
null
null
deprecated/printers/bov/tests/test_database.py
nielsdrost/pymt
ae39bf807428827a6904202bf4d3b927daa255ea
[ "MIT" ]
null
null
null
deprecated/printers/bov/tests/test_database.py
nielsdrost/pymt
ae39bf807428827a6904202bf4d3b927daa255ea
[ "MIT" ]
null
null
null
import os import numpy as np from pymt.grids import RasterField from pymt.printers.bov.database import Database def test_bov_database(tmpdir): data = np.arange(6.) field = RasterField((3, 2), (1., 1.), (0., 0.)) field.add_field("Elevation", data, centering="point") with tmpdir.as_cwd(): db ...
24.787879
72
0.625917
0
0
0
0
0
0
0
0
235
0.287286
bfa18c419b9bddacf91037d88c2cff23c5558bdb
8,820
py
Python
flowws_keras_geometry/models/PDBInverseCoarseGrain.py
klarh/flowws-keras-geometry
f6768ff20fdbf85deacd234c116919219500ecbe
[ "MIT" ]
2
2021-11-17T05:08:01.000Z
2021-11-28T17:17:08.000Z
flowws_keras_geometry/models/PDBInverseCoarseGrain.py
klarh/flowws-keras-geometry
f6768ff20fdbf85deacd234c116919219500ecbe
[ "MIT" ]
null
null
null
flowws_keras_geometry/models/PDBInverseCoarseGrain.py
klarh/flowws-keras-geometry
f6768ff20fdbf85deacd234c116919219500ecbe
[ "MIT" ]
null
null
null
import flowws from flowws import Argument as Arg import tensorflow as tf from tensorflow import keras from .internal import HUGE_FLOAT, PairwiseVectorDifference, \ PairwiseVectorDifferenceSum, VectorAttention, Vector2VectorAttention class CoarseGrainAttention(Vector2VectorAttention): def build(self, input_sh...
41.023256
109
0.622222
8,549
0.969274
0
0
5,088
0.576871
0
0
1,447
0.164059
bfa221e1979ae3e08b502d632de23a867c0630aa
3,565
py
Python
DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py
puririshi98/benchmark
79f554f1e1cf36f62994c78e0e6e5b360f554022
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
38.75
87
0.722861
0
0
0
0
0
0
0
0
1,143
0.320617
bfa6e37ce663c12f0fdad157e24b3fc3bb9524e5
11,809
py
Python
src/compas_fea/structure/material.py
franaudo/fea
e164256bac179116520d19d6fc54c98de0610896
[ "MIT" ]
28
2018-02-16T17:21:47.000Z
2022-02-27T21:42:17.000Z
src/compas_fea/structure/material.py
franaudo/fea
e164256bac179116520d19d6fc54c98de0610896
[ "MIT" ]
115
2017-11-30T17:12:47.000Z
2022-01-26T07:41:34.000Z
src/compas_fea/structure/material.py
franaudo/fea
e164256bac179116520d19d6fc54c98de0610896
[ "MIT" ]
13
2018-05-08T13:03:28.000Z
2022-01-23T13:37:06.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from math import log # Author(s): Andrew Liew (github.com/andrewliew) __all__ = [ 'Material', 'Concrete', 'ConcreteSmearedCrack', 'ConcreteDamagedPlasticity', 'ElasticIsotropic', 'St...
26.242222
106
0.474807
10,093
0.854687
0
0
0
0
0
0
6,405
0.542383
bfa749699de26602b2730662f9b8a7ff680aac28
365
py
Python
utilities/mongodb/insert.py
sosomasox/adl
1afc2f385cbae6f1d4fefa5534f194621e4460c4
[ "MIT" ]
null
null
null
utilities/mongodb/insert.py
sosomasox/adl
1afc2f385cbae6f1d4fefa5534f194621e4460c4
[ "MIT" ]
null
null
null
utilities/mongodb/insert.py
sosomasox/adl
1afc2f385cbae6f1d4fefa5534f194621e4460c4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pymongo import MongoClient import json import ast client = MongoClient('mongodb://localhost:27017/') db = client.adl collection = db.adlmodels with open('../data/going_out.jsonl', 'r') as fp: for data in fp.readlines(): data = data.strip() data_dit = ast.literal_eval(d...
22.8125
50
0.690411
0
0
0
0
0
0
0
0
78
0.213699
bfa8558ac1772d42a73ab7a03e7faa0e2989dc76
454
py
Python
utils/Distributions/Gamma.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
utils/Distributions/Gamma.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
utils/Distributions/Gamma.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
#Loading dependencies from .BaseDistribution import BaseDistribution class Gamma(BaseDistribution): def __init__(self, shape, scale): super().__init__() self.shape = shape self.scale = scale def set(self, shape, scale): self.shape = shape self.scale = scale def sample(self): # https://numpy.org/doc/s...
26.705882
107
0.757709
384
0.845815
0
0
0
0
0
0
126
0.277533
bfa8cb6c6419a3d2b51a4b0411b2675939d36c2f
4,087
py
Python
omnibus/code.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
2
2020-06-17T19:54:09.000Z
2020-06-18T20:10:26.000Z
omnibus/code.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
omnibus/code.py
wrmsr/omnibus
3c4ef5eb17b0fff8593fa6a2284337bf193c18d3
[ "BSD-3-Clause" ]
null
null
null
import dis import gc import opcode import sys import textwrap import types import typing as ta from . import lang Code = types.CodeType Function = types.FunctionType Frame = types.FrameType CODE_ARGS = [ 'argcount', 'kwonlyargcount', 'nlocals', 'stacksize', 'flags', 'code', 'consts', ...
24.473054
116
0.663567
1,279
0.312943
146
0.035723
0
0
0
0
858
0.209934
bfa9911aa0052a6c71229ba272f18a078ad0fbf0
925
py
Python
apidoc/libs/args_schema.py
Naisisor/naisi
acda35b9d37c6bacad2192c462c12e64b6277424
[ "MIT" ]
null
null
null
apidoc/libs/args_schema.py
Naisisor/naisi
acda35b9d37c6bacad2192c462c12e64b6277424
[ "MIT" ]
null
null
null
apidoc/libs/args_schema.py
Naisisor/naisi
acda35b9d37c6bacad2192c462c12e64b6277424
[ "MIT" ]
null
null
null
from marshmallow import Schema, fields, validate from apidoc.libs.common import contain_zh from apidoc.settings import Config class PaginateSchema(Schema): page = fields.Int(missing=1, location='query') per_page = fields.Int(missing=Config.API_DOC_PER_PAGE, location='query') class NameSchema(Schema): n...
38.541667
116
0.725405
899
0.868599
0
0
0
0
0
0
289
0.279227
bfa9f514b2c99066b32a9c8b4d3db858314b200e
2,928
py
Python
2021/day20.py
tangarts/advent-of-code
5879fbec1a5377d1288666a357b029f6345d4a5d
[ "MIT" ]
null
null
null
2021/day20.py
tangarts/advent-of-code
5879fbec1a5377d1288666a357b029f6345d4a5d
[ "MIT" ]
null
null
null
2021/day20.py
tangarts/advent-of-code
5879fbec1a5377d1288666a357b029f6345d4a5d
[ "MIT" ]
null
null
null
from advent_of_code.core import parse_input, flatten raw = """..#.#..#####.#.#.#.###.##.....###.##.#..###.####..#####..#....#..#..##..## #..######.###...####..#..#####..##..#.#####...##.#.#..#.##..#.#......#.### .######.###.####...#.##.##..#..#..#####.....#.#....###..#.##......#.....#. .#..#..##..#...##.######.####.#...
32.175824
117
0.470628
0
0
0
0
0
0
0
0
866
0.295765
bfaad62bd9e583e1ea51ba34d2df4f6e9cf1f105
777
py
Python
profiles/migrations/0004_auto_20180220_1915.py
choia/bucket-list-webapp
3f77c58f6f6c66f3ad1d88ee375a39ce294b9680
[ "MIT" ]
1
2020-07-28T17:10:30.000Z
2020-07-28T17:10:30.000Z
profiles/migrations/0004_auto_20180220_1915.py
choia/bucket-list-webapp
3f77c58f6f6c66f3ad1d88ee375a39ce294b9680
[ "MIT" ]
8
2018-01-11T02:09:30.000Z
2022-01-13T00:49:27.000Z
profiles/migrations/0004_auto_20180220_1915.py
choia/bucket-list-webapp
3f77c58f6f6c66f3ad1d88ee375a39ce294b9680
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-02-20 19:15 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0003_postinstance_user_post'), ] operations = [ migrations.Alte...
25.9
63
0.590734
619
0.796654
0
0
0
0
0
0
194
0.249678
bfac716a70e1d5acb5b1e13b1f148e9c8bcc5ce8
4,406
py
Python
pytest_nodev/blacklists.py
nodev-io/pytest-wish
14c9ef2a3891ac245fe572f6fb8e4649930349cb
[ "MIT" ]
21
2016-02-25T18:00:39.000Z
2021-12-13T02:58:24.000Z
pytest_nodev/blacklists.py
nodev-io/pytest-wish
14c9ef2a3891ac245fe572f6fb8e4649930349cb
[ "MIT" ]
18
2016-02-18T20:38:47.000Z
2016-08-25T07:26:14.000Z
pytest_nodev/blacklists.py
nodev-io/pytest-wish
14c9ef2a3891ac245fe572f6fb8e4649930349cb
[ "MIT" ]
6
2016-02-26T13:45:41.000Z
2016-08-25T05:45:58.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2016 Alessandro Amici # # 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, ...
27.886076
87
0.687472
0
0
0
0
0
0
0
0
3,545
0.804585
bfacebc149bcde45d8b837419f726ea675713269
4,574
py
Python
streaming_plot_client.py
Sensirion/libsensors-python
dda92824ce073b4b25f8db90150e90f092275a39
[ "BSD-3-Clause" ]
21
2015-12-31T00:35:37.000Z
2019-10-17T08:17:07.000Z
streaming_plot_client.py
Sensirion/libsensors-python
dda92824ce073b4b25f8db90150e90f092275a39
[ "BSD-3-Clause" ]
5
2015-09-28T13:47:44.000Z
2018-12-12T22:36:09.000Z
streaming_plot_client.py
Sensirion/libsensors-python
dda92824ce073b4b25f8db90150e90f092275a39
[ "BSD-3-Clause" ]
15
2015-11-10T10:11:35.000Z
2021-05-20T08:41:18.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- """ Sample appplication that connects to a mqtt server and plots all sensor data. It is possible to subscribe to only some sensors or to all of them by modifying the subscription topic. To run the script you need to install the paho MQTT library and PyQt as listed in requir...
32.671429
86
0.638828
3,623
0.791913
0
0
0
0
0
0
1,004
0.219454
bfadeebda3d888464f736b1d2628712419a57a4c
4,550
py
Python
services/backend/app/models.py
miguelalb/resume-portal-fastapi
286f732510925c5ad3760ca2af82098ed78e0dd9
[ "BSD-3-Clause" ]
1
2022-02-28T02:29:02.000Z
2022-02-28T02:29:02.000Z
services/backend/app/models.py
miguelalb/resume-portal-fastapi
286f732510925c5ad3760ca2af82098ed78e0dd9
[ "BSD-3-Clause" ]
null
null
null
services/backend/app/models.py
miguelalb/resume-portal-fastapi
286f732510925c5ad3760ca2af82098ed78e0dd9
[ "BSD-3-Clause" ]
null
null
null
import uuid from datetime import datetime from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, Text from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.orm import relationship from app.database import Base class BaseMixin(object): ...
32.042254
86
0.705934
4,160
0.914286
0
0
78
0.017143
0
0
760
0.167033
bfaff810f8ad02f15def8943b57bf4630603e431
1,597
py
Python
python_src/tbd_audio_common/sound_maker.py
CMU-TBD/tbd_audio_common
5afdaccbf1e5c8ad038ce849844cd85e846b8927
[ "MIT-CMU", "MIT" ]
null
null
null
python_src/tbd_audio_common/sound_maker.py
CMU-TBD/tbd_audio_common
5afdaccbf1e5c8ad038ce849844cd85e846b8927
[ "MIT-CMU", "MIT" ]
null
null
null
python_src/tbd_audio_common/sound_maker.py
CMU-TBD/tbd_audio_common
5afdaccbf1e5c8ad038ce849844cd85e846b8927
[ "MIT-CMU", "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import alloy.ros import os import wave import actionlib from tbd_ros_msgs.msg import ( playAudioAction, playAudioGoal ) class SoundMaker(): def __init__(self): self._tbd_audio_client = actionlib.SimpleActionClient("playAudio", playAudioAction) self._tb...
29.574074
123
0.644333
1,429
0.894803
0
0
0
0
0
0
373
0.233563
bfb19827d57787b285507d6f0c699802654b2f05
1,474
py
Python
webserver/ProjetoSS.py
jonnyff/Outliers_NASA-Space-Apps
2713bad7df491e1c32ef2657f4e7e868c3e3777b
[ "Apache-2.0" ]
null
null
null
webserver/ProjetoSS.py
jonnyff/Outliers_NASA-Space-Apps
2713bad7df491e1c32ef2657f4e7e868c3e3777b
[ "Apache-2.0" ]
null
null
null
webserver/ProjetoSS.py
jonnyff/Outliers_NASA-Space-Apps
2713bad7df491e1c32ef2657f4e7e868c3e3777b
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, render_template from flask import json from requests.auth import HTTPBasicAuth app = Flask(__name__) @app.route('/', methods=['GET', 'POST']) def index(): if request.method == 'POST': ipcliente = request.remote_addr programa = request.form['programa'] cmdc...
35.095238
109
0.591588
0
0
0
0
1,151
0.780868
0
0
519
0.352103
bfb1e55075a8b67cd215ee8a1df39ac77cfeba01
2,922
py
Python
pages/forms.py
Mannuel25/Cheqqit
8f2b2447fcd00e4951d16580267de2930cc42253
[ "MIT" ]
11
2022-01-05T11:54:23.000Z
2022-03-25T08:47:02.000Z
pages/forms.py
Mannuel25/Cheqqit
8f2b2447fcd00e4951d16580267de2930cc42253
[ "MIT" ]
null
null
null
pages/forms.py
Mannuel25/Cheqqit
8f2b2447fcd00e4951d16580267de2930cc42253
[ "MIT" ]
null
null
null
from django import forms from .models import UserTasks class AddTaskForm(forms.ModelForm): """ this form will be used to create or update a task """ title = forms.CharField(max_length=100, widget= forms.TextInput (attrs={'placeholder':"Enter the task's title"})) description = forms.CharFiel...
41.15493
97
0.667009
2,860
0.978782
0
0
0
0
0
0
897
0.306982
bfb4a6fbb8d580b5d2075aecbe9dbd0aeb08ff0b
3,232
py
Python
scripts/vramc/encoder.py
paulscottrobson/6502-basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
3
2021-09-30T19:34:11.000Z
2021-10-31T06:55:50.000Z
scripts/vramc/encoder.py
paulscottrobson/6502-Basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
null
null
null
scripts/vramc/encoder.py
paulscottrobson/6502-Basic
d4c360041bfa49427a506465e58bb0ef94beaa44
[ "MIT" ]
1
2021-12-07T21:58:44.000Z
2021-12-07T21:58:44.000Z
# ***************************************************************************** # ***************************************************************************** # # Name: encoder.py # Author: Paul Robson (paul@robsons.org.uk) # Date: 27th March 2021 # Purpose: Encode graphics # # *********************************...
28.350877
107
0.534963
2,347
0.726176
0
0
0
0
0
0
1,059
0.327661
bfb5034780b879d1244f12e00e78645edb6abd45
2,541
py
Python
torchaudio/__init__.py
micmelesse/audio
e8cc7f9130135e8ab96d58b0225d5120da6a0804
[ "BSD-2-Clause" ]
null
null
null
torchaudio/__init__.py
micmelesse/audio
e8cc7f9130135e8ab96d58b0225d5120da6a0804
[ "BSD-2-Clause" ]
1
2021-08-31T22:20:32.000Z
2021-08-31T22:20:32.000Z
torchaudio/__init__.py
micmelesse/audio
e8cc7f9130135e8ab96d58b0225d5120da6a0804
[ "BSD-2-Clause" ]
null
null
null
from torchaudio._internal import module_utils as _mod_utils # noqa: F401 if _mod_utils.is_module_available('torchaudio._torchaudio'): # Note this import has two purposes # 1. Make _torchaudio accessible by the other modules (regular import) # 2. Register torchaudio's custom ops bound via TorchScript #...
35.291667
98
0.709957
0
0
0
0
0
0
0
0
1,795
0.706415