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
b166dad82fde9d6a3518b1f26a85b2e2546d77b9
16,633
py
Python
files/models.py
AdrianoCahete/website
114156e24b37e5f2293aeac3c29ab4d5cd8311cd
[ "MIT" ]
null
null
null
files/models.py
AdrianoCahete/website
114156e24b37e5f2293aeac3c29ab4d5cd8311cd
[ "MIT" ]
null
null
null
files/models.py
AdrianoCahete/website
114156e24b37e5f2293aeac3c29ab4d5cd8311cd
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # vim: set expandtab sw=4 ts=4 sts=4: # # phpMyAdmin web site # # Copyright (C) 2008 - 2016 Michal Cihar <michal@cihar.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundati...
32.486328
94
0.554199
b166eaf0f74796997babad39184ea07ba1f3c842
948
py
Python
main/models/sign.py
fakegit/gxgk-wechat-server
89ad21bcd2dcd1c28e43d4b230d47207e78098b3
[ "MIT" ]
1,564
2015-09-01T13:11:02.000Z
2022-03-29T08:44:56.000Z
main/models/sign.py
fakegit/gxgk-wechat-server
89ad21bcd2dcd1c28e43d4b230d47207e78098b3
[ "MIT" ]
11
2015-12-13T05:04:15.000Z
2019-09-10T06:14:03.000Z
main/models/sign.py
fakegit/gxgk-wechat-server
89ad21bcd2dcd1c28e43d4b230d47207e78098b3
[ "MIT" ]
649
2015-12-11T09:23:09.000Z
2022-03-04T17:31:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from . import db
26.333333
70
0.619198
b167bd125d417e4efdcc02611c67219208d449ac
2,579
py
Python
pinax/projects/sample_group_project/urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/projects/sample_group_project/urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
null
null
null
pinax/projects/sample_group_project/urls.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
from django.conf import settings from django.conf.urls.defaults import * from django.views.generic.simple import direct_to_template from django.contrib import admin admin.autodiscover() from account.openid_consumer import PinaxConsumer handler500 = "pinax.views.server_error" if settings.ACCOUNT_OPEN_SIGNUP: ...
29.306818
99
0.669252
b1684a8441dca67ce07724eebd55d0e4be2809be
3,060
py
Python
synapse/storage/schema/delta/50/make_event_content_nullable.py
Cadair/synapse
466866a1d9dd1fcf82348a36c0532cb0c6614767
[ "Apache-2.0" ]
2
2020-04-30T18:38:02.000Z
2020-07-08T21:38:28.000Z
synapse/storage/schema/delta/50/make_event_content_nullable.py
Cadair/synapse
466866a1d9dd1fcf82348a36c0532cb0c6614767
[ "Apache-2.0" ]
4
2020-03-04T23:47:05.000Z
2021-12-09T21:41:44.000Z
synapse/storage/schema/delta/50/make_event_content_nullable.py
Cadair/synapse
466866a1d9dd1fcf82348a36c0532cb0c6614767
[ "Apache-2.0" ]
2
2020-03-03T18:34:52.000Z
2022-03-31T11:06:18.000Z
# -*- coding: utf-8 -*- # Copyright 2018 New Vector Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
31.546392
84
0.671242
b169661dd2e123c3c4e9fd3e7fd531b5b79cc52c
1,822
py
Python
tools/applause_detection/applause_detection.py
AudiovisualMetadataPlatform/amp_mgms
593d4f4d40b597a7753cd152cd233976e6b28c75
[ "Apache-2.0" ]
null
null
null
tools/applause_detection/applause_detection.py
AudiovisualMetadataPlatform/amp_mgms
593d4f4d40b597a7753cd152cd233976e6b28c75
[ "Apache-2.0" ]
1
2022-02-16T16:21:03.000Z
2022-02-16T16:21:03.000Z
tools/applause_detection/applause_detection.py
AudiovisualMetadataPlatform/amp_mgms
593d4f4d40b597a7753cd152cd233976e6b28c75
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os import os.path import shutil import subprocess import sys import tempfile import argparse import amp.utils if __name__ == "__main__": main()
36.44
120
0.687157
b16a393bb50e48e50f448e75e1aa34a864d369d1
226
py
Python
5_Pham_Ngo_Tien_Dung/3.1.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
5_Pham_Ngo_Tien_Dung/3.1.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
null
null
null
5_Pham_Ngo_Tien_Dung/3.1.py
lpython2006e/exercies
84343eae57d86708a7984aa02f77183a4688a508
[ "MIT" ]
8
2020-07-10T14:13:54.000Z
2020-08-03T08:17:50.000Z
"""Write a program that allow user enter a file name (path) then content, allow user to save it""" filename = input("Please input filename") f= open(filename,"w+") content = input("Please input content") f.write(content)
37.666667
99
0.712389
b16c522c8657dbedfb8cc24e18349f5784c77002
8,203
py
Python
2019/intcode/intcode/tests/test_intcode.py
Ganon11/AdventCode
eebf3413c8e73c45d0e0a65a80e57eaf594baead
[ "MIT" ]
null
null
null
2019/intcode/intcode/tests/test_intcode.py
Ganon11/AdventCode
eebf3413c8e73c45d0e0a65a80e57eaf594baead
[ "MIT" ]
null
null
null
2019/intcode/intcode/tests/test_intcode.py
Ganon11/AdventCode
eebf3413c8e73c45d0e0a65a80e57eaf594baead
[ "MIT" ]
null
null
null
import intcode if __name__ == "__main__": test_reddit()
31.30916
85
0.720224
b16cd2c50420d1e6d132def2948468675ae9b60d
720
py
Python
tests/test_DataAugmenterExternally.py
AlexKay28/zarnitsa
c7e93423dcc1f000849f8c1e1f685e8a91b90f9c
[ "Apache-2.0" ]
8
2021-07-19T18:25:03.000Z
2021-10-05T15:25:20.000Z
tests/test_DataAugmenterExternally.py
AlexKay28/zarnitsa
c7e93423dcc1f000849f8c1e1f685e8a91b90f9c
[ "Apache-2.0" ]
22
2021-07-26T19:13:32.000Z
2021-10-09T18:56:07.000Z
tests/test_DataAugmenterExternally.py
AlexKay28/zarnitsa
c7e93423dcc1f000849f8c1e1f685e8a91b90f9c
[ "Apache-2.0" ]
1
2021-08-10T12:24:00.000Z
2021-08-10T12:24:00.000Z
import os import sys import pytest import numpy as np import pandas as pd from scipy.stats import ks_2samp sys.path.append("zarnitsa/") from zarnitsa.stats import DataAugmenterExternally N_TO_CHECK = 500 SIG = 0.5 def test_augment_column_permute(dae, normal_data): """ Augment column with normal distrib...
20
84
0.730556
b16d517f951d0f5516bebdb100e3d55e1e838a34
22,314
py
Python
cgc/Collision.py
Jfeatherstone/ColorGlass
f242541df614a8eea97c43d3480c779e92660ebb
[ "MIT" ]
null
null
null
cgc/Collision.py
Jfeatherstone/ColorGlass
f242541df614a8eea97c43d3480c779e92660ebb
[ "MIT" ]
null
null
null
cgc/Collision.py
Jfeatherstone/ColorGlass
f242541df614a8eea97c43d3480c779e92660ebb
[ "MIT" ]
null
null
null
from .Wavefunction import Wavefunction import numpy as np from scipy.fft import ifft2, fft2 import numba CACHE_OPTIMIZATIONS = True # Using custom functions within other jitted functions can cause some issues, # so we define the signatures explicitly for these two functions. # Because of the same issue described ...
37.314381
202
0.63691
b1716479f1c26f49cf955c116938436d2e898588
21
py
Python
fastagram/tags/models/__init__.py
dobestan/fastagram
8c57401512d7621890a4f160d4b27c6e0d3ab326
[ "MIT" ]
1
2016-03-27T10:36:01.000Z
2016-03-27T10:36:01.000Z
fastagram/tags/models/__init__.py
dobestan/django-101-fastagram
8c57401512d7621890a4f160d4b27c6e0d3ab326
[ "MIT" ]
3
2016-03-25T05:32:39.000Z
2016-03-28T04:59:17.000Z
fastagram/tags/models/__init__.py
dobestan/django-101-fastagram
8c57401512d7621890a4f160d4b27c6e0d3ab326
[ "MIT" ]
1
2016-03-28T16:35:36.000Z
2016-03-28T16:35:36.000Z
from .tag import Tag
10.5
20
0.761905
b1724ba73246edc325129a0b1a56c982075f8024
8,346
py
Python
tensorflow/contrib/model_pruning/python/learning.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/model_pruning/python/learning.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/model_pruning/python/learning.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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...
42.581633
81
0.684999
b172a5ff4bd5c2830f5d2332f4e30cc2a061bc37
306
py
Python
run2.py
akuz/deep-gen-mnist
13d4d350a0dc9dc7f0111c839fb7158654f048c4
[ "MIT" ]
null
null
null
run2.py
akuz/deep-gen-mnist
13d4d350a0dc9dc7f0111c839fb7158654f048c4
[ "MIT" ]
null
null
null
run2.py
akuz/deep-gen-mnist
13d4d350a0dc9dc7f0111c839fb7158654f048c4
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import model if __name__ == "__main__": print("Making level configs...") level_configs = model.default_level_configs() print("Making filter variables...") filters = model.make_filters(tf.get_default_graph(), level_configs) print("Done")
19.125
71
0.70915
b17399bedc9351d3452e2254d35db67407d43d19
11,201
py
Python
payload_templates/lin_shell_payload.py
ahirejayeshbapu/python-shell
3560fe03f89557c1189255ca2737accdeda48faf
[ "MIT" ]
4
2018-09-20T13:37:28.000Z
2022-02-23T00:36:55.000Z
payload_templates/lin_shell_payload.py
ahirejayeshbapu/python-shell
3560fe03f89557c1189255ca2737accdeda48faf
[ "MIT" ]
null
null
null
payload_templates/lin_shell_payload.py
ahirejayeshbapu/python-shell
3560fe03f89557c1189255ca2737accdeda48faf
[ "MIT" ]
null
null
null
import subprocess, os, socket, re, pickle, docx, urllib2 from platform import platform from getpass import getuser from time import sleep from datetime import datetime port = !!!!! ip_addr = @@@@@ lkey = ##### End = $$$$$ skey = %%%%% time_to_sleep = ^^^^^ type_of_scout = 'Command Shell' try: operati...
37.713805
130
0.44871
b17454e4938df93dd6729a10260ca6df34c9564c
84
py
Python
scripts/python/make-dist-cfg.py
brakmic/cm3
b99e280eca00c322e04e0586951de50108e51343
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
2
2015-03-02T17:01:32.000Z
2021-12-29T14:34:46.000Z
scripts/python/make-dist-cfg.py
ganeshbabuNN/cm3
9fb432d44a2ba89575febb38f7c1eb3dca6a3879
[ "BSD-4-Clause-UC", "BSD-4-Clause", "BSD-3-Clause" ]
1
2015-07-23T07:51:22.000Z
2015-07-23T07:51:22.000Z
scripts/python/make-dist-cfg.py
RodneyBates/M3Devel
7b8dd3fc8f5b05d1c69774d92234ea50d143a692
[ "BSD-4-Clause-UC", "BSD-4-Clause" ]
1
2021-12-29T14:35:47.000Z
2021-12-29T14:35:47.000Z
#! /usr/bin/env python from pylib import * CopyConfigForDistribution(InstallRoot)
14
38
0.785714
b175213c84777ec0e61947cb929e05305bf328ad
17,813
py
Python
bench.py
citorva/verificateur_defis_leviathan
98cd7280253a541d94b34c120879556585ef814c
[ "CC0-1.0" ]
null
null
null
bench.py
citorva/verificateur_defis_leviathan
98cd7280253a541d94b34c120879556585ef814c
[ "CC0-1.0" ]
null
null
null
bench.py
citorva/verificateur_defis_leviathan
98cd7280253a541d94b34c120879556585ef814c
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pygame import threading import time import math import sys import argparse import bench_core import multiprocessing # Couleurs du programme. Peut tre modifi tout moment couleur_txt = (0xc0, 0xc0, 0xc0) # Couleur gris clair pour le texte commun couleur_vic = (0x28...
41.233796
242
0.662999
b17694133578e1b1a9c1c195cbd91ca5e72b6295
181
py
Python
test/conftest.py
PlaidCloud/sqlalchemy-greenplum
b40beeee8b775290b262d3b9989e8faeba8b2d20
[ "BSD-3-Clause" ]
6
2019-05-10T18:31:05.000Z
2021-09-08T16:59:46.000Z
test/conftest.py
PlaidCloud/sqlalchemy-greenplum
b40beeee8b775290b262d3b9989e8faeba8b2d20
[ "BSD-3-Clause" ]
2
2018-06-04T23:28:16.000Z
2022-03-08T14:20:14.000Z
test/conftest.py
PlaidCloud/sqlalchemy-greenplum
b40beeee8b775290b262d3b9989e8faeba8b2d20
[ "BSD-3-Clause" ]
1
2019-06-13T10:12:44.000Z
2019-06-13T10:12:44.000Z
from sqlalchemy.dialects import registry registry.register("greenplum", "sqlalchemy_greenplum.dialect", "GreenplumDialect") from sqlalchemy.testing.plugin.pytestplugin import *
22.625
82
0.823204
b177b1d71b976403fe1dab8da5d47925b29da724
10,319
py
Python
xclim/core/locales.py
bzah/xclim
18ceee3f1db2d39355913c1c60ec32ddca6baccc
[ "Apache-2.0" ]
null
null
null
xclim/core/locales.py
bzah/xclim
18ceee3f1db2d39355913c1c60ec32ddca6baccc
[ "Apache-2.0" ]
2
2021-06-23T09:26:54.000Z
2021-07-26T19:28:41.000Z
xclim/core/locales.py
bzah/xclim
18ceee3f1db2d39355913c1c60ec32ddca6baccc
[ "Apache-2.0" ]
1
2021-03-02T20:12:28.000Z
2021-03-02T20:12:28.000Z
# -*- coding: utf-8 -*- # noqa: D205,D400 """ Internationalization ==================== Defines methods and object to help the internationalization of metadata for the climate indicators computed by xclim. All the methods and objects in this module use localization data given in json files. These files are expected t...
35.582759
198
0.64609
b1784fe113bca2d558cd14a80d284029cd03a532
92
py
Python
tests/samples/importing/nested/base.py
machinable-org/machinable
9d96e942dde05d68699bc7bc0c3d062ee18652ad
[ "MIT" ]
23
2020-02-28T14:29:04.000Z
2021-12-23T20:50:54.000Z
tests/samples/importing/nested/base.py
machinable-org/machinable
9d96e942dde05d68699bc7bc0c3d062ee18652ad
[ "MIT" ]
172
2020-02-24T12:12:11.000Z
2022-03-29T03:08:24.000Z
tests/samples/importing/nested/base.py
machinable-org/machinable
9d96e942dde05d68699bc7bc0c3d062ee18652ad
[ "MIT" ]
1
2020-11-23T22:42:20.000Z
2020-11-23T22:42:20.000Z
from machinable import Component
15.333333
32
0.75
b17898d3cc02bf7ea9e57ca3010adf0a3b3916ab
435
py
Python
source/blockchain_backup/config/gunicorn.conf.py
denova-com/blockchain-backup
a445bcbd67bd6485a4969dc1e24d51fbffc43cff
[ "OLDAP-2.6", "OLDAP-2.4" ]
null
null
null
source/blockchain_backup/config/gunicorn.conf.py
denova-com/blockchain-backup
a445bcbd67bd6485a4969dc1e24d51fbffc43cff
[ "OLDAP-2.6", "OLDAP-2.4" ]
null
null
null
source/blockchain_backup/config/gunicorn.conf.py
denova-com/blockchain-backup
a445bcbd67bd6485a4969dc1e24d51fbffc43cff
[ "OLDAP-2.6", "OLDAP-2.4" ]
null
null
null
# See # The configuration file should be a valid Python source file with a python extension (e.g. gunicorn.conf.py). # https://docs.gunicorn.org/en/stable/configure.html bind='127.0.0.1:8962' timeout=75 daemon=True user='user' accesslog='/var/local/log/user/blockchain_backup.gunicorn.access.log' errorlog='/var/l...
29
113
0.777011
b1791920593f4e50adb1ee5900ad47f68783a7d1
211
py
Python
code_snippets/api-monitor-schedule-downtime.py
brettlangdon/documentation
87c23cb1d5e3e877bb37a19f7231b5d9239509dc
[ "BSD-3-Clause" ]
null
null
null
code_snippets/api-monitor-schedule-downtime.py
brettlangdon/documentation
87c23cb1d5e3e877bb37a19f7231b5d9239509dc
[ "BSD-3-Clause" ]
null
null
null
code_snippets/api-monitor-schedule-downtime.py
brettlangdon/documentation
87c23cb1d5e3e877bb37a19f7231b5d9239509dc
[ "BSD-3-Clause" ]
null
null
null
from datadog import initialize, api options = { 'api_key': 'api_key', 'app_key': 'app_key' } initialize(**options) # Schedule downtime api.Downtime.create(scope='env:staging', start=int(time.time()))
17.583333
64
0.691943
b17998122b0c9414fb547e0a5c5bf8d5f8b4473a
63
py
Python
src/oscar/apps/customer/__init__.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
4,639
2015-01-01T00:42:33.000Z
2022-03-29T18:32:12.000Z
src/oscar/apps/customer/__init__.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,215
2015-01-02T22:32:51.000Z
2022-03-29T12:16:23.000Z
src/oscar/apps/customer/__init__.py
QueoLda/django-oscar
8dd992d82e31d26c929b3caa0e08b57e9701d097
[ "BSD-3-Clause" ]
2,187
2015-01-02T06:33:31.000Z
2022-03-31T15:32:36.000Z
default_app_config = 'oscar.apps.customer.apps.CustomerConfig'
31.5
62
0.84127
b179f01fa470edabbb25665461efb486ca6b1128
795
py
Python
modnotes/converters.py
jack1142/SinbadCogs-1
e0f24c0dbc3f845aa7a37ca96d00ee59494911ca
[ "BSD-Source-Code" ]
null
null
null
modnotes/converters.py
jack1142/SinbadCogs-1
e0f24c0dbc3f845aa7a37ca96d00ee59494911ca
[ "BSD-Source-Code" ]
null
null
null
modnotes/converters.py
jack1142/SinbadCogs-1
e0f24c0dbc3f845aa7a37ca96d00ee59494911ca
[ "BSD-Source-Code" ]
null
null
null
import contextlib import re from typing import NamedTuple, Optional import discord from redbot.core.commands import BadArgument, Context, MemberConverter _discord_member_converter_instance = MemberConverter() _id_regex = re.compile(r"([0-9]{15,21})$") _mention_regex = re.compile(r"<@!?([0-9]{15,21})>$")
27.413793
79
0.693082
b179ff426e1a26e74d3b6cc6592435b4bf9294c3
224
py
Python
face_api/admin.py
glen-s-abraham/face-detection-api
ce671a9750065c0fc82d0dd668299738f1c07508
[ "MIT" ]
null
null
null
face_api/admin.py
glen-s-abraham/face-detection-api
ce671a9750065c0fc82d0dd668299738f1c07508
[ "MIT" ]
null
null
null
face_api/admin.py
glen-s-abraham/face-detection-api
ce671a9750065c0fc82d0dd668299738f1c07508
[ "MIT" ]
null
null
null
from django.contrib import admin from face_api.models import KnowledgeDatabase from face_api.models import ImageUploads # Register your models here. admin.site.register(KnowledgeDatabase) admin.site.register(ImageUploads)
24.888889
45
0.848214
b17a29c0eb42919a5d5dc662a31db12c22531561
4,596
py
Python
plugins/base/views.py
adlerosn/corpusslayer
d3dea2e2d15e911d048a39f6ef6cb2d5f7b33e58
[ "MIT" ]
null
null
null
plugins/base/views.py
adlerosn/corpusslayer
d3dea2e2d15e911d048a39f6ef6cb2d5f7b33e58
[ "MIT" ]
1
2019-07-06T20:43:45.000Z
2019-07-06T20:43:45.000Z
plugins/base/views.py
adlerosn/corpusslayer
d3dea2e2d15e911d048a39f6ef6cb2d5f7b33e58
[ "MIT" ]
null
null
null
# Copyright (c) 2017 Adler Neves <adlerosn@gmail.com> # # MIT License # # 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, ...
38.3
104
0.698216
b17abbe2c8f968394190d9316ec3a085ca24ece7
197
py
Python
addons/stats/scripts/predictors/abstract_predictor.py
Kait-tt/tacowassa
7e71c6ef6b5f939a99a3600025b26d459ebc0233
[ "MIT" ]
null
null
null
addons/stats/scripts/predictors/abstract_predictor.py
Kait-tt/tacowassa
7e71c6ef6b5f939a99a3600025b26d459ebc0233
[ "MIT" ]
141
2016-08-23T03:44:17.000Z
2017-10-08T02:39:36.000Z
addons/stats/scripts/predictors/abstract_predictor.py
Kait-tt/tacowassa
7e71c6ef6b5f939a99a3600025b26d459ebc0233
[ "MIT" ]
1
2019-04-05T15:19:43.000Z
2019-04-05T15:19:43.000Z
# coding:utf-8 from abc import ABCMeta, abstractmethod
19.7
45
0.720812
b17ac66814a8b6950eb9f7e8278e334fa9498901
216
py
Python
day11/eqatri.py
nikhilsamninan/python-files
15198459081097058a939b40b5e8ef754e578fe0
[ "Apache-2.0" ]
null
null
null
day11/eqatri.py
nikhilsamninan/python-files
15198459081097058a939b40b5e8ef754e578fe0
[ "Apache-2.0" ]
null
null
null
day11/eqatri.py
nikhilsamninan/python-files
15198459081097058a939b40b5e8ef754e578fe0
[ "Apache-2.0" ]
null
null
null
size = 5 m = (2 * size)-2 for i in range(0, size): for j in range(0, m): print(end=" ") m = m - 1 for j in range(0, i + 1): if(m%2!=0): print("*", end=" ") print("")
12.705882
31
0.388889
b17bb1524daf129418a0726643402df5cb23be6d
691
py
Python
tests/test_constants.py
9cat/dydx-v3-python
c222f3d0b1a870e63fcceaf19b42109c9558a6df
[ "Apache-2.0" ]
null
null
null
tests/test_constants.py
9cat/dydx-v3-python
c222f3d0b1a870e63fcceaf19b42109c9558a6df
[ "Apache-2.0" ]
null
null
null
tests/test_constants.py
9cat/dydx-v3-python
c222f3d0b1a870e63fcceaf19b42109c9558a6df
[ "Apache-2.0" ]
null
null
null
from dydx3.constants import SYNTHETIC_ASSET_MAP, SYNTHETIC_ASSET_ID_MAP, ASSET_RESOLUTION, COLLATERAL_ASSET
40.647059
107
0.688857
b17beb716bfd95140964574b9d48ea04c12d770d
5,802
py
Python
src/cogs/invasion.py
calsf/codex-prime
c651d4c2f34581babc8078d01fe84dc95f3b7c36
[ "MIT" ]
null
null
null
src/cogs/invasion.py
calsf/codex-prime
c651d4c2f34581babc8078d01fe84dc95f3b7c36
[ "MIT" ]
null
null
null
src/cogs/invasion.py
calsf/codex-prime
c651d4c2f34581babc8078d01fe84dc95f3b7c36
[ "MIT" ]
null
null
null
#INVASION COMMANDS: # !invasions // !atinvasions <reward> // !rminvasions import discord from discord.ext import commands import asyncio from src import sess
42.977778
122
0.54757
b17cbc82703ac9fc882cd99a409335fa53853226
226
py
Python
samples-python/datalayer.calc/calculations/__init__.py
bracoe/ctrlx-automation-sdk
6b2e61e146c557488125baf941e4d64c6fa6d0fb
[ "MIT" ]
16
2021-08-23T13:07:12.000Z
2022-02-21T13:29:21.000Z
samples-python/datalayer.calc/calculations/__init__.py
bracoe/ctrlx-automation-sdk
6b2e61e146c557488125baf941e4d64c6fa6d0fb
[ "MIT" ]
null
null
null
samples-python/datalayer.calc/calculations/__init__.py
bracoe/ctrlx-automation-sdk
6b2e61e146c557488125baf941e4d64c6fa6d0fb
[ "MIT" ]
10
2021-09-29T09:58:33.000Z
2022-01-13T07:20:00.000Z
__version__ = '2.0.0' __description__ = 'Sample for calculations with data from the ctrlX Data Layer' __author__ = 'Fantastic Python Developers' __licence__ = 'MIT License' __copyright__ = 'Copyright (c) 2021 Bosch Rexroth AG'
45.2
79
0.778761
b17e60242b5d5da25f1f85bc29429ee00fd48f19
320
py
Python
sqlalchemist/models/definitions.py
pmav99/sqlalchemist
af784f8d6e7c6c7298ad273c481af748cc0332d5
[ "BSD-3-Clause" ]
7
2019-09-06T21:58:42.000Z
2021-12-02T21:48:35.000Z
sqlalchemist/models/definitions.py
pmav99/sqlalchemy_playground
af784f8d6e7c6c7298ad273c481af748cc0332d5
[ "BSD-3-Clause" ]
null
null
null
sqlalchemist/models/definitions.py
pmav99/sqlalchemy_playground
af784f8d6e7c6c7298ad273c481af748cc0332d5
[ "BSD-3-Clause" ]
1
2021-01-22T03:23:21.000Z
2021-01-22T03:23:21.000Z
import sqlalchemy as sa from .meta import Base __all__ = [ "Person", ]
16.842105
48
0.6625
b17eab4940677c2202b0aa8a880f82fca874b795
2,732
py
Python
examples/example_hello_world.py
clbarnes/figurefirst
ed38e246a96f28530bf663eb6920da1c3ccee610
[ "MIT" ]
67
2016-06-03T20:37:56.000Z
2022-03-08T19:05:06.000Z
examples/example_hello_world.py
clbarnes/figurefirst
ed38e246a96f28530bf663eb6920da1c3ccee610
[ "MIT" ]
56
2016-05-23T17:44:04.000Z
2021-11-18T19:23:52.000Z
examples/example_hello_world.py
clbarnes/figurefirst
ed38e246a96f28530bf663eb6920da1c3ccee610
[ "MIT" ]
11
2017-07-13T14:25:08.000Z
2021-12-01T00:15:01.000Z
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt plt.ion() from figurefirst import FigureLayout layout = FigureLayout('example_hello_world_layout.svg') layout.make_mplfigures() d = np.array([[144, 57], [138, 57], [138, 59], [141, 61], [141, 82], [138, 84], [138, 85], [142, 85], [147, 85], [147...
143.789474
2,363
0.493411
b17fee2e7308f25f04ee5daea15a5c921b98ff99
2,009
py
Python
cifar_exps/metric/local_config.py
maestrojeong/Deep-Hash-Table-ICML18-
0c7efa230f950d5a2cd1928ac9f5d99f4276d2b5
[ "MIT" ]
70
2018-06-03T04:19:13.000Z
2021-11-08T10:40:46.000Z
cifar_exps/metric/local_config.py
maestrojeong/Deep-Hash-Table-ICML18-
0c7efa230f950d5a2cd1928ac9f5d99f4276d2b5
[ "MIT" ]
null
null
null
cifar_exps/metric/local_config.py
maestrojeong/Deep-Hash-Table-ICML18-
0c7efa230f950d5a2cd1928ac9f5d99f4276d2b5
[ "MIT" ]
14
2018-06-03T16:34:55.000Z
2020-09-09T17:02:30.000Z
import sys sys.path.append("../../configs") #../../configs from path import EXP_PATH import numpy as np DECAY_PARAMS_DICT =\ { 'stair' : { 128 :{ 'a1': {'initial_lr' : 1e-5, 'decay_steps' : 50000, 'decay_rate' : 0.3}, 'a2' : {'initial_lr' : 3e-4, 'decay_step...
36.527273
88
0.47337
b18129f45c367129cdadaeeefa97748f7c44101b
1,133
py
Python
POO punto 2/ManagerUsers.py
nan0te/Python-Algorithm-And-DataStructure
7b7802b56d397c38f230f5efb687cedc6cc263f3
[ "MIT" ]
null
null
null
POO punto 2/ManagerUsers.py
nan0te/Python-Algorithm-And-DataStructure
7b7802b56d397c38f230f5efb687cedc6cc263f3
[ "MIT" ]
null
null
null
POO punto 2/ManagerUsers.py
nan0te/Python-Algorithm-And-DataStructure
7b7802b56d397c38f230f5efb687cedc6cc263f3
[ "MIT" ]
null
null
null
from Profesional import Profesional from Particular import Particular from Comercial import Comercial |
28.325
68
0.620477
b1826d4965ab04b828a39c0aa6af7cd8e92a7f3e
10,419
py
Python
src/ggrc/models/mixins/with_action.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-12T23:46:00.000Z
2019-01-12T23:46:00.000Z
src/ggrc/models/mixins/with_action.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/models/mixins/with_action.py
MikalaiMikalalai/ggrc-core
f0f83b3638574bb64de474f3b70ed27436ca812a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2020 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Contains WithAction mixin. A mixin for processing actions on an object in the scope of put request . """ from collections import namedtuple, defaultdict import werkzeug.exceptions as wzg_exceptions fro...
33.501608
79
0.613783
b183550bc53fd30c394fa716585596aa04c10f32
99
py
Python
tests/__init__.py
Fokko/example-library-python
b20b69c6dae93c32cd3d2c86a644abbf6b85199b
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
Fokko/example-library-python
b20b69c6dae93c32cd3d2c86a644abbf6b85199b
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
Fokko/example-library-python
b20b69c6dae93c32cd3d2c86a644abbf6b85199b
[ "Apache-2.0" ]
null
null
null
import sys, os path = os.path.dirname(__file__) if path not in sys.path: sys.path.append(path)
19.8
32
0.717172
b184dd55b715329d1a0d130a5cfdba08a4a14ccb
3,457
py
Python
GAN_discriminator.py
SEE-MOF/Generation_of_atmospheric_cloud_fields_using_GANs
6dce1447e140f5724638ac576bbf913af4e8a0e6
[ "MIT" ]
null
null
null
GAN_discriminator.py
SEE-MOF/Generation_of_atmospheric_cloud_fields_using_GANs
6dce1447e140f5724638ac576bbf913af4e8a0e6
[ "MIT" ]
null
null
null
GAN_discriminator.py
SEE-MOF/Generation_of_atmospheric_cloud_fields_using_GANs
6dce1447e140f5724638ac576bbf913af4e8a0e6
[ "MIT" ]
1
2020-12-11T15:03:36.000Z
2020-12-11T15:03:36.000Z
import torch
37.576087
92
0.582586
b1867ef42ce297b26321e0a3ab432ed29359ffca
7,770
py
Python
statuspage_io.py
spyder007/pi-monitoring
fab660adcf6ed89a591a6ed2060d653369843e6e
[ "MIT" ]
null
null
null
statuspage_io.py
spyder007/pi-monitoring
fab660adcf6ed89a591a6ed2060d653369843e6e
[ "MIT" ]
null
null
null
statuspage_io.py
spyder007/pi-monitoring
fab660adcf6ed89a591a6ed2060d653369843e6e
[ "MIT" ]
null
null
null
import logging import statuspage_io_client import configuration from enums import OpLevel logger = logging.getLogger(__name__)
38.85
223
0.674775
b188895e8bd69c46255cb2668635f56b60539874
14,875
py
Python
tests/test_gpath.py
ConductorTechnologies/ciopath
574bfc38859cc68a80b98f8b0cf0d9aeddb646e5
[ "MIT" ]
1
2020-10-13T07:50:19.000Z
2020-10-13T07:50:19.000Z
tests/test_gpath.py
ConductorTechnologies/ciopath
574bfc38859cc68a80b98f8b0cf0d9aeddb646e5
[ "MIT" ]
null
null
null
tests/test_gpath.py
ConductorTechnologies/ciopath
574bfc38859cc68a80b98f8b0cf0d9aeddb646e5
[ "MIT" ]
null
null
null
""" test gpath isort:skip_file """ import os import sys import unittest try: from unittest import mock except ImportError: import mock SRC = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "src") if SRC not in sys.path: sys.path.insert(0, SRC) from ciopath.gpath import Pat...
32.620614
93
0.604034
b188abfaae0783909143fd3975f59d921af7acbd
3,513
py
Python
linter.py
KidkArolis/SublimeLinter-contrib-healthier
5b912af5f9afca85de86d709c46d3e566057823f
[ "MIT" ]
null
null
null
linter.py
KidkArolis/SublimeLinter-contrib-healthier
5b912af5f9afca85de86d709c46d3e566057823f
[ "MIT" ]
3
2019-01-25T15:21:38.000Z
2019-01-30T23:52:11.000Z
linter.py
KidkArolis/SublimeLinter-contrib-healthier
5b912af5f9afca85de86d709c46d3e566057823f
[ "MIT" ]
null
null
null
"""This module exports the Healthier plugin class.""" import json import logging import re import shlex from SublimeLinter.lint import NodeLinter logger = logging.getLogger('SublimeLinter.plugin.healthier')
32.831776
79
0.545687
b188c34a63c4e8f52180a384c6fb116f6a431c46
7,184
py
Python
model_compression_toolkit/gptq/pytorch/quantization_facade.py
ofirgo/model_optimization
18be895a35238df128913183b05e60550c2b6e6b
[ "Apache-2.0" ]
42
2021-10-31T10:17:49.000Z
2022-03-21T08:51:46.000Z
model_compression_toolkit/gptq/pytorch/quantization_facade.py
ofirgo/model_optimization
18be895a35238df128913183b05e60550c2b6e6b
[ "Apache-2.0" ]
6
2021-10-31T15:06:03.000Z
2022-03-31T10:32:53.000Z
model_compression_toolkit/gptq/pytorch/quantization_facade.py
ofirgo/model_optimization
18be895a35238df128913183b05e60550c2b6e6b
[ "Apache-2.0" ]
18
2021-11-01T12:16:43.000Z
2022-03-25T16:52:37.000Z
# Copyright 2022 Sony Semiconductors Israel, Inc. 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 b...
60.369748
334
0.680122
b188f10ec381323c6265f65bdee66f4fcf49a96c
11,472
py
Python
transformer/dataset/graph.py
tmpaul06/dgl
8f458464b0e14c78978db4b91590e8ca718c5ec6
[ "Apache-2.0" ]
1
2019-03-15T07:25:09.000Z
2019-03-15T07:25:09.000Z
transformer/dataset/graph.py
tmpaul06/dgl
8f458464b0e14c78978db4b91590e8ca718c5ec6
[ "Apache-2.0" ]
null
null
null
transformer/dataset/graph.py
tmpaul06/dgl
8f458464b0e14c78978db4b91590e8ca718c5ec6
[ "Apache-2.0" ]
null
null
null
import dgl import torch as th import numpy as np import itertools import time from collections import * Graph = namedtuple('Graph', ['g', 'src', 'tgt', 'tgt_y', 'nids', 'eids', 'nid_arr', 'n_nodes', 'n_edges', 'n_tokens', 'layer_eids']) # We need to create new graph pools for relative position atte...
44.638132
174
0.539139
b189f5ce6dc38c0cbcc1102caf8a791a932e5870
12,747
py
Python
tests/asgi/test_configuration.py
mrmilu/ariadne
cba577bd4befd16e0ec22701a5ac68f719661a9a
[ "BSD-3-Clause" ]
1
2020-05-28T01:48:58.000Z
2020-05-28T01:48:58.000Z
tests/asgi/test_configuration.py
mrmilu/ariadne
cba577bd4befd16e0ec22701a5ac68f719661a9a
[ "BSD-3-Clause" ]
null
null
null
tests/asgi/test_configuration.py
mrmilu/ariadne
cba577bd4befd16e0ec22701a5ac68f719661a9a
[ "BSD-3-Clause" ]
null
null
null
# pylint: disable=not-context-manager from unittest.mock import ANY, Mock from starlette.testclient import TestClient from ariadne.asgi import ( GQL_CONNECTION_ACK, GQL_CONNECTION_INIT, GQL_DATA, GQL_ERROR, GQL_START, GraphQL, ) from ariadne.types import Extension ...
36.524355
87
0.672394
b18afbecdd582dccbd726f5d982378f6fc6adc50
7,056
py
Python
OpenAI-Gym/agents/ddpg.py
stmobo/Machine-Learning
83f69c7afb0a4bc1dc94482b8d23805e8ab2acde
[ "MIT" ]
2
2017-09-26T04:39:04.000Z
2017-10-12T08:57:51.000Z
OpenAI-Gym/agents/ddpg.py
stmobo/Machine-Learning
83f69c7afb0a4bc1dc94482b8d23805e8ab2acde
[ "MIT" ]
null
null
null
OpenAI-Gym/agents/ddpg.py
stmobo/Machine-Learning
83f69c7afb0a4bc1dc94482b8d23805e8ab2acde
[ "MIT" ]
null
null
null
import tensorflow as tf import prettytensor as pt import numpy as np import gym import math import random from collections import deque from agents import mixed_network, spaces, replay_buffer tensorType = tf.float32 """ Implements a Deep Deterministic Policy Gradient agent. Adjustable parameters: - Actor / Critic ...
45.230769
150
0.658872
b18b42a0184f3b3519a30ad5c379fbaef6c9cbc7
14,426
py
Python
tests/unit/test_door.py
buxx/rolling
ef1268fe6ddabe768a125c3ce8b37e0b9cbad4a5
[ "MIT" ]
14
2019-11-16T18:51:51.000Z
2022-01-15T17:50:34.000Z
tests/unit/test_door.py
buxx/rolling
ef1268fe6ddabe768a125c3ce8b37e0b9cbad4a5
[ "MIT" ]
148
2018-12-10T09:07:45.000Z
2022-03-08T10:51:04.000Z
tests/unit/test_door.py
buxx/rolling
ef1268fe6ddabe768a125c3ce8b37e0b9cbad4a5
[ "MIT" ]
1
2020-08-05T14:25:48.000Z
2020-08-05T14:25:48.000Z
from aiohttp.test_utils import TestClient import pytest import typing import unittest.mock from rolling.kernel import Kernel from rolling.model.character import CharacterModel from rolling.model.character import MINIMUM_BEFORE_EXHAUSTED from rolling.server.document.affinity import AffinityDirectionType from rolling.se...
32.272931
93
0.643768
b18c5f15c9a68336330b6b76a56071233826bf51
1,311
py
Python
myWeather2_github.py
RCElectronic/weatherlight
5d70b5bdbb67396620c211399c502b801878667f
[ "MIT" ]
null
null
null
myWeather2_github.py
RCElectronic/weatherlight
5d70b5bdbb67396620c211399c502b801878667f
[ "MIT" ]
null
null
null
myWeather2_github.py
RCElectronic/weatherlight
5d70b5bdbb67396620c211399c502b801878667f
[ "MIT" ]
null
null
null
# myWeather.py for inkyphat and RPiZW print('Starting') try: import requests print('requests module imported') except: print('Sorry, need to install requests module') exit() wx_url = 'api.openweathermap.org/data/2.5/weather?' wx_city = 'q=Quispamsis,CA&units=metric' wx_cityID = 'id=6115383&...
30.488372
64
0.617849
b18cdd01036a990db77da457c825c577e134e9df
4,526
py
Python
push-to-gee.py
Servir-Mekong/sentinel-1-pipeline
79ccba65d974aa5c337adc4d72fa1df8ef75d20c
[ "MIT" ]
16
2020-04-19T12:54:55.000Z
2022-03-24T18:59:32.000Z
push-to-gee.py
Servir-Mekong/sentinel-1-pipeline
79ccba65d974aa5c337adc4d72fa1df8ef75d20c
[ "MIT" ]
2
2021-04-30T21:14:14.000Z
2021-06-02T01:39:56.000Z
push-to-gee.py
Servir-Mekong/sentinel-1-pipeline
79ccba65d974aa5c337adc4d72fa1df8ef75d20c
[ "MIT" ]
1
2021-04-21T08:58:12.000Z
2021-04-21T08:58:12.000Z
# -*- coding: utf-8 -*- from dotenv import load_dotenv load_dotenv('.env') import logging logging.basicConfig(filename='logs/push-2-gee.log', level=logging.INFO) import ast import glob import json import os import subprocess from datetime import datetime from dbio import * scale_factor = 10000 output_path = os.ge...
33.776119
122
0.592134
b18dfbe911fad785c5c6176e1eec4c5f85de7b49
938
py
Python
rabbitai/tasks/celery_app.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/tasks/celery_app.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/tasks/celery_app.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
""" This is the main entrypoint used by Celery workers. As such, it needs to call create_app() in order to initialize things properly """ from typing import Any from celery.signals import worker_process_init # Rabbitai framework imports from rabbitai import create_app from rabbitai.extensions import celery_app, db #...
32.344828
87
0.765458
b18ee92e764bf93ddc723331ee49b72f1366542a
4,403
py
Python
adapters/adapter.py
ChristfriedBalizou/jeamsql
abd7735831b572f1f1a2d8e47b0759801fd5881c
[ "MIT" ]
null
null
null
adapters/adapter.py
ChristfriedBalizou/jeamsql
abd7735831b572f1f1a2d8e47b0759801fd5881c
[ "MIT" ]
null
null
null
adapters/adapter.py
ChristfriedBalizou/jeamsql
abd7735831b572f1f1a2d8e47b0759801fd5881c
[ "MIT" ]
null
null
null
from tabulate.tabulate import tabulate import subprocess import sys import os import re import csv import io import json
24.461111
81
0.539859
b18f1a4acb87b8bb932241fcbf259f84c3dba954
3,000
py
Python
MyCrypto/dsa/sm2_dsa.py
hiyouga/cryptography-experiment
d76abc56d6c09c96dd93abcd51d3c9e38fc8787c
[ "MIT" ]
8
2019-11-30T14:45:13.000Z
2022-03-16T10:09:34.000Z
MyCrypto/dsa/sm2_dsa.py
hiyouga/Cryptographic-Algorithms-Python
d76abc56d6c09c96dd93abcd51d3c9e38fc8787c
[ "MIT" ]
null
null
null
MyCrypto/dsa/sm2_dsa.py
hiyouga/Cryptographic-Algorithms-Python
d76abc56d6c09c96dd93abcd51d3c9e38fc8787c
[ "MIT" ]
null
null
null
import sys sys.path.append("../..") import random from MyCrypto.utils.bitarray import bitarray from MyCrypto.algorithms.exgcd import inverse from MyCrypto.ecc.sm2 import SM2 if __name__ == '__main__': message = b'message' uid = b'ID:A' sm2_dsa = SM2_DSA() sk, pk = sm2_dsa.generate_keys() sign ...
35.714286
92
0.549667
b18f8ac4ca91a60fabe49e7603be45706caf3334
52
py
Python
chatbot/component/__init__.py
zgj0607/ChatBot
3c6126754b9d037a04bd80d13874e2ae16b2c421
[ "Apache-2.0" ]
null
null
null
chatbot/component/__init__.py
zgj0607/ChatBot
3c6126754b9d037a04bd80d13874e2ae16b2c421
[ "Apache-2.0" ]
null
null
null
chatbot/component/__init__.py
zgj0607/ChatBot
3c6126754b9d037a04bd80d13874e2ae16b2c421
[ "Apache-2.0" ]
null
null
null
__all__ = ( 'readonly_admin', 'singleton' )
10.4
21
0.576923
b18f8f8fa2a426987f403aea37090ba3d3fc94d4
5,103
py
Python
calculadora.py
LucasCouto22/calculadoraPython
84426c8d71f2c2186ae500245423516000e19ec0
[ "Apache-2.0" ]
null
null
null
calculadora.py
LucasCouto22/calculadoraPython
84426c8d71f2c2186ae500245423516000e19ec0
[ "Apache-2.0" ]
null
null
null
calculadora.py
LucasCouto22/calculadoraPython
84426c8d71f2c2186ae500245423516000e19ec0
[ "Apache-2.0" ]
null
null
null
controller = 0 fim = 0 while controller != 2: if controller == 1 or controller == 0: e = int(input('Digite um nmero para escolher: \n' ' 1 para soma \n' ' 2 para subtrao \n' ' 3 para multiplicao \n' ' 4 para diviso inteira \n' ...
26.440415
77
0.406232
b190d1c3b154f53e7b40cd2cb8a33782b7ce1f7f
1,982
py
Python
prime_issue_spoilage/main.py
NicholasSynovic/ssl-metrics-github-issue-spoilage
05711b6103aa6b6b935d02aa92fbcaf735a63cea
[ "BSD-3-Clause" ]
null
null
null
prime_issue_spoilage/main.py
NicholasSynovic/ssl-metrics-github-issue-spoilage
05711b6103aa6b6b935d02aa92fbcaf735a63cea
[ "BSD-3-Clause" ]
null
null
null
prime_issue_spoilage/main.py
NicholasSynovic/ssl-metrics-github-issue-spoilage
05711b6103aa6b6b935d02aa92fbcaf735a63cea
[ "BSD-3-Clause" ]
null
null
null
from argparse import Namespace from datetime import datetime import pandas from dateutil.parser import parse as dateParse from intervaltree import IntervalTree from pandas import DataFrame from prime_issue_spoilage.utils.primeIssueSpoilageArgs import mainArgs if __name__ == "__main__": main()
28.314286
77
0.706862
b192038591712556b2d6695f9b0d3ac03bfac07f
4,544
py
Python
IFR/mmseg/datasets/pipelines/semi/loading.py
jfzhuang/IFR
d6ffdd0c0810d7bb244f102ba8cc19c12f61e102
[ "MIT" ]
3
2022-03-09T13:15:15.000Z
2022-03-21T06:59:10.000Z
IFR/mmseg/datasets/pipelines/semi/loading.py
jfzhuang/IFR
d6ffdd0c0810d7bb244f102ba8cc19c12f61e102
[ "MIT" ]
null
null
null
IFR/mmseg/datasets/pipelines/semi/loading.py
jfzhuang/IFR
d6ffdd0c0810d7bb244f102ba8cc19c12f61e102
[ "MIT" ]
null
null
null
import os.path as osp import mmcv import numpy as np from mmseg.datasets.builder import PIPELINES
40.571429
116
0.650088
b192ffd8dc0dbef0c193761ff4f0641070958f09
3,384
py
Python
topologies/dc_t1.py
andriymoroz/sai-challenger
665f5dbff8c797cfd55cc0c13b03a77aefdb9977
[ "Apache-2.0" ]
11
2021-04-23T05:54:05.000Z
2022-03-29T16:37:42.000Z
topologies/dc_t1.py
andriymoroz/sai-challenger
665f5dbff8c797cfd55cc0c13b03a77aefdb9977
[ "Apache-2.0" ]
4
2021-06-02T11:05:31.000Z
2021-11-26T14:39:50.000Z
topologies/dc_t1.py
andriymoroz/sai-challenger
665f5dbff8c797cfd55cc0c13b03a77aefdb9977
[ "Apache-2.0" ]
14
2021-02-27T15:17:31.000Z
2021-11-01T10:15:51.000Z
from contextlib import contextmanager import pytest from sai import SaiObjType
40.285714
110
0.637411
b193f13f0d572526822d816991b5f3105ef56820
7,045
py
Python
asynchronous_qiwi/models/QIWIWallet/master_m/list_qvc.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
3
2021-05-20T02:36:30.000Z
2021-11-28T16:00:15.000Z
asynchronous_qiwi/models/QIWIWallet/master_m/list_qvc.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
null
null
null
asynchronous_qiwi/models/QIWIWallet/master_m/list_qvc.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
1
2021-11-28T16:00:20.000Z
2021-11-28T16:00:20.000Z
from loguru import logger import datetime from pydantic.fields import ModelField from typing import Optional, List, Union, Any from ....utils.tools.str_datetime import convert from pydantic import BaseModel, Field, validator, ValidationError from ....data_types.QIWIWallet.list_qvc import ReleasedCardStatus, CardType, C...
41.686391
107
0.628957
b194d8469a9b5649a06d4a8f9eab020579871edb
818
py
Python
src/mciso/visualize.py
lancechua/mciso
2fd406b7c54f9cb6b331ae8ad3470d1f47696494
[ "MIT" ]
2
2021-08-06T14:20:37.000Z
2022-03-29T16:13:10.000Z
src/mciso/visualize.py
lancechua/mciso
2fd406b7c54f9cb6b331ae8ad3470d1f47696494
[ "MIT" ]
null
null
null
src/mciso/visualize.py
lancechua/mciso
2fd406b7c54f9cb6b331ae8ad3470d1f47696494
[ "MIT" ]
1
2021-08-06T14:21:13.000Z
2021-08-06T14:21:13.000Z
import matplotlib.pyplot as plt import pandas as pd def scenarios_by_product( X: "np.ndarray", indices: list, products: list, ax: plt.Axes = None ) -> plt.Axes: """Plot generated scenarios, with a subplot for each product""" if ax is None: _, ax = plt.subplots(X.shape[-1], 1, figsize=(8, X.shape[-...
27.266667
87
0.57335
b194dd14e51803a9d2a228b8e98a09f53e6b31cf
26,160
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_api_management_client_enums.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
36.536313
123
0.718425
b197033d00037d8ccf26822dfa92949370b97250
308
py
Python
lcd_rom_small.py
rhubarbdog/microbit-LCD-driver
d1a7f5cf3c4cfe825da873ae1a25b5765fe8ca3e
[ "MIT" ]
2
2020-11-23T20:27:03.000Z
2021-11-04T12:08:10.000Z
lcd_rom_small.py
rhubarbdog/microbit-LCD-driver
d1a7f5cf3c4cfe825da873ae1a25b5765fe8ca3e
[ "MIT" ]
1
2021-12-14T10:47:00.000Z
2021-12-14T12:02:08.000Z
lcd_rom_small.py
rhubarbdog/microbit-LCD-driver
d1a7f5cf3c4cfe825da873ae1a25b5765fe8ca3e
[ "MIT" ]
null
null
null
from microbit import * import microbit_i2c_lcd as lcd i2c.init(sda=pin15,scl=pin13) display = lcd.lcd(i2c) display.lcd_display_string(str(chr(247)), 1) print("this will display a pi symbol for ROM A00 japaneese\n"+\ "display a divide symbol for the A02 ROM european") i2c.init(sda=pin20,scl=pin19)
23.692308
63
0.746753
b19975a6c0f70cdf1b6594a54b946673ec51a754
11,349
py
Python
benchmarks/benchmarks.py
alanefl/vdf-competition
84efc3aec180c43582c9421c6fb7fb2e22000635
[ "Apache-2.0" ]
97
2018-10-04T18:10:42.000Z
2021-08-23T10:37:06.000Z
benchmarks/benchmarks.py
alanefl/vdf-competition
84efc3aec180c43582c9421c6fb7fb2e22000635
[ "Apache-2.0" ]
4
2018-10-04T18:20:49.000Z
2021-05-03T07:13:14.000Z
benchmarks/benchmarks.py
alanefl/vdf-competition
84efc3aec180c43582c9421c6fb7fb2e22000635
[ "Apache-2.0" ]
17
2018-10-08T18:08:21.000Z
2022-01-12T00:54:32.000Z
import time import textwrap import math import binascii from inkfish.create_discriminant import create_discriminant from inkfish.classgroup import ClassGroup from inkfish.iterate_squarings import iterate_squarings from inkfish import proof_wesolowski from inkfish.proof_of_time import (create_proof_of_time_nwesolowski,...
38.602041
114
0.707639
b19995883a43664eea79cdbbf4ebcc8afcf1f9f2
2,415
py
Python
ccl_dask_blizzard.py
michaelleerilee/CCL-M2BLIZZARD
ff936647d69c5e83553b55d84d7b3a0636290c77
[ "BSD-3-Clause" ]
null
null
null
ccl_dask_blizzard.py
michaelleerilee/CCL-M2BLIZZARD
ff936647d69c5e83553b55d84d7b3a0636290c77
[ "BSD-3-Clause" ]
null
null
null
ccl_dask_blizzard.py
michaelleerilee/CCL-M2BLIZZARD
ff936647d69c5e83553b55d84d7b3a0636290c77
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from load_for_ccl_inputs import load_for_ccl_inputs from ccl_marker_stack import ccl_dask base = '/home/mrilee/nobackup/tmp/others/' fnames = None if False: fnames = ['ccl-inputs-globe-122736+23.csv.gz'] if False: fnames = ['ccl-inputs-globe-122736+23.csv.gz' ...
30.56962
119
0.670807
b19b15001ce2daedc7edc47219f748a11fbd096b
3,108
py
Python
setup.py
RiS3-Lab/polytracker
2ea047738717ff0c22e3b157934667c9ed84fa6f
[ "Apache-2.0" ]
null
null
null
setup.py
RiS3-Lab/polytracker
2ea047738717ff0c22e3b157934667c9ed84fa6f
[ "Apache-2.0" ]
1
2020-09-01T15:58:13.000Z
2021-01-18T16:24:56.000Z
setup.py
RiS3-Lab/polytracker
2ea047738717ff0c22e3b157934667c9ed84fa6f
[ "Apache-2.0" ]
null
null
null
import os import re import sys from setuptools import setup, find_packages from typing import Optional, Tuple SETUP_DIR = os.path.dirname(os.path.realpath(__file__)) POLYTRACKER_HEADER = os.path.join(SETUP_DIR, 'polytracker', 'include', 'polytracker', 'polytracker.h') if not os.path.exists(POLYTRACKER_HEADER): sy...
35.318182
120
0.604247
b19b3f7c4a68fc939bc0e963cc37d4583121c7aa
111
py
Python
Game22/modules/online/__init__.py
ttkaixin1998/pikachupythongames
609a3a5a2be3f5a187c332c7980bb5bb14548f02
[ "MIT" ]
4,013
2018-06-16T08:00:02.000Z
2022-03-30T11:48:14.000Z
Game22/modules/online/__init__.py
pigbearcat/Games
b8c47ef1bcce9a9db3f3730c162e6e8e08b508a2
[ "MIT" ]
22
2018-10-18T00:15:50.000Z
2022-01-13T08:16:15.000Z
Game22/modules/online/__init__.py
pigbearcat/Games
b8c47ef1bcce9a9db3f3730c162e6e8e08b508a2
[ "MIT" ]
2,172
2018-07-20T04:03:14.000Z
2022-03-31T14:18:29.000Z
'''''' from .server import gobangSever from .client import gobangClient from .playOnline import playOnlineUI
27.75
36
0.810811
b19b4f05269a9c0a51ba854a6b3f0bd1816a6911
9,317
py
Python
gazette_processor/gazette.py
GabrielTrettel/DiariesProcessor
817b4d8d1bbf0fe88b315b159e949fe49a2324f7
[ "MIT" ]
2
2020-10-04T19:45:45.000Z
2020-10-28T20:21:08.000Z
gazette_processor/gazette.py
GabrielTrettel/DiariesProcessor
817b4d8d1bbf0fe88b315b159e949fe49a2324f7
[ "MIT" ]
6
2020-09-25T14:31:12.000Z
2020-09-28T13:37:37.000Z
gazette_processor/gazette.py
GabrielTrettel/DiariesProcessor
817b4d8d1bbf0fe88b315b159e949fe49a2324f7
[ "MIT" ]
null
null
null
import os,sys, re from math import ceil, floor if __name__ == "__main__": input_f = sys.argv[1] output_f = sys.argv[2] # g = Gazette(input_f, "", "") # g.__split_cols() # print(g.linear_text) for file in os.listdir(input_f): g = Gazette(input_f + '/' + file,"", "") print...
30.152104
114
0.605452
b19b6144712313556ed4af7f1913f9e90750f30c
1,065
py
Python
homepairs/HomepairsApp/Apps/Tenants/migrations/0001_initial.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
1
2021-01-19T00:48:10.000Z
2021-01-19T00:48:10.000Z
homepairs/HomepairsApp/Apps/Tenants/migrations/0001_initial.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
17
2020-01-23T05:51:18.000Z
2020-06-16T02:33:41.000Z
homepairs/HomepairsApp/Apps/Tenants/migrations/0001_initial.py
YellowRainBoots/2.0
bf215350c2da0ab28ad2ec6f9338fb1b73b3f2e5
[ "MIT" ]
1
2020-08-06T02:10:58.000Z
2020-08-06T02:10:58.000Z
# Generated by Django 3.0.2 on 2020-03-03 21:48 from django.db import migrations, models import django.db.models.deletion
35.5
139
0.611268
b19cab2172cb675aff98cad37d3038a9d288244b
21,295
py
Python
edk2toolext/image_validation.py
cfernald/edk2-pytool-extensions
3452e781a021e9b736fb10dbd3e7645a2efc400f
[ "BSD-2-Clause-Patent" ]
null
null
null
edk2toolext/image_validation.py
cfernald/edk2-pytool-extensions
3452e781a021e9b736fb10dbd3e7645a2efc400f
[ "BSD-2-Clause-Patent" ]
null
null
null
edk2toolext/image_validation.py
cfernald/edk2-pytool-extensions
3452e781a021e9b736fb10dbd3e7645a2efc400f
[ "BSD-2-Clause-Patent" ]
null
null
null
# @file image_validation.py # This tool allows a user validate an PE/COFF file # against specific requirements ## # Copyright (c) Microsoft Corporation # # SPDX-License-Identifier: BSD-2-Clause-Patent ## from datetime import datetime import os from pefile import PE, SECTION_CHARACTERISTICS, MACHINE_TYPE, SUBSYSTEM_TYP...
34.795752
112
0.505565
b19eba8650f17954158c7ab292c05abfa2a4065c
44
py
Python
src/basics/files/delete_fichero.py
FoxNeo/MyPythonProjects
3499ef0853f0087f6f143e1633b0a88a3d7b9818
[ "MIT" ]
null
null
null
src/basics/files/delete_fichero.py
FoxNeo/MyPythonProjects
3499ef0853f0087f6f143e1633b0a88a3d7b9818
[ "MIT" ]
null
null
null
src/basics/files/delete_fichero.py
FoxNeo/MyPythonProjects
3499ef0853f0087f6f143e1633b0a88a3d7b9818
[ "MIT" ]
null
null
null
import os os.remove("fichero_generado.txt")
14.666667
33
0.795455
b19fd8f1c6f4a820c1d3db28aa85e5f3c1020cae
31,290
py
Python
Canon-M10.py
emanuelelaface/Canon-M10
bd4559b2e528fbaa9559a92c4e752ce5f96c1053
[ "MIT" ]
3
2019-12-06T22:32:31.000Z
2022-02-13T00:35:55.000Z
Canon-M10.py
emanuelelaface/Canon-M10
bd4559b2e528fbaa9559a92c4e752ce5f96c1053
[ "MIT" ]
null
null
null
Canon-M10.py
emanuelelaface/Canon-M10
bd4559b2e528fbaa9559a92c4e752ce5f96c1053
[ "MIT" ]
5
2019-12-06T22:32:23.000Z
2021-12-26T20:46:56.000Z
# -*- coding: utf-8 -*- from remi.gui import * from remi import start, App import cv2 import numpy import chdkptp import time import threading import rawpy if __name__ == "__main__": start(M10GUI, address='0.0.0.0', port=8081, multiple_instance=False, enable_file_cache=True, start_browser=False, debug=False, upda...
58.376866
703
0.577245
b1a00da7893518e48125fe8f8ffac5ec512f86f7
781
py
Python
server/utils/exception/exception.py
mnichangxin/blog-server
44544c53542971e4ba31b7d1a58d2a7fe55bfe06
[ "MIT" ]
null
null
null
server/utils/exception/exception.py
mnichangxin/blog-server
44544c53542971e4ba31b7d1a58d2a7fe55bfe06
[ "MIT" ]
null
null
null
server/utils/exception/exception.py
mnichangxin/blog-server
44544c53542971e4ba31b7d1a58d2a7fe55bfe06
[ "MIT" ]
null
null
null
from werkzeug.exceptions import HTTPException
32.541667
74
0.627401
b1a21975ae4f7b1e5e6eec59130eae251c21b5f0
2,159
py
Python
backend/fetch_tweet.py
phuens/Tweet_Analysis
8d5fca79107bd4af5278a4530ea1131482f49b42
[ "MIT" ]
null
null
null
backend/fetch_tweet.py
phuens/Tweet_Analysis
8d5fca79107bd4af5278a4530ea1131482f49b42
[ "MIT" ]
null
null
null
backend/fetch_tweet.py
phuens/Tweet_Analysis
8d5fca79107bd4af5278a4530ea1131482f49b42
[ "MIT" ]
null
null
null
import json import csv import tweepy from textblob import TextBlob import nltk from nltk.tokenize import word_tokenize if __name__ == '__main__': consumer_key = consumer_secret = access_token = access_token_secret = hashtag_phrase = 'geocode:27.466079,89.639010,30km' search_for_hashtags(c...
38.553571
131
0.637332
b1a2e9e876bf7788f4968b9eb3b29a91a90c21c3
9,585
py
Python
umich_daily.py
mpars0ns/scansio-sonar-es
ea7b1928277317b97c84443812da01af99ef0feb
[ "BSD-3-Clause" ]
36
2015-10-14T21:17:16.000Z
2022-01-21T16:34:24.000Z
umich_daily.py
mpars0ns/scansio-sonar-es
ea7b1928277317b97c84443812da01af99ef0feb
[ "BSD-3-Clause" ]
5
2015-10-19T13:47:55.000Z
2017-06-21T07:12:41.000Z
umich_daily.py
mpars0ns/scansio-sonar-es
ea7b1928277317b97c84443812da01af99ef0feb
[ "BSD-3-Clause" ]
8
2016-04-28T09:34:20.000Z
2022-01-21T16:34:23.000Z
import argparse import sys from multiprocessing import cpu_count, Process, Queue import json import logging from datetime import datetime from elasticsearch import Elasticsearch from elasticsearch.helpers import bulk, scan import hashlib from helpers.certparser import process_cert from helpers.hostparser import procc...
45.212264
119
0.605842
b1a35e06a9245c638232ac973c3cdcca21d276f6
980
py
Python
project/tests/scripts/system_vars.py
LeDron12/c2eo
4f0dc6ed79df0739bd834eda6a0f77f3caf4292c
[ "MIT" ]
12
2021-08-05T12:12:09.000Z
2022-03-08T13:33:53.000Z
project/tests/scripts/system_vars.py
LeDron12/c2eo
4f0dc6ed79df0739bd834eda6a0f77f3caf4292c
[ "MIT" ]
26
2021-08-23T10:25:37.000Z
2022-03-30T12:56:08.000Z
project/tests/scripts/system_vars.py
LeDron12/c2eo
4f0dc6ed79df0739bd834eda6a0f77f3caf4292c
[ "MIT" ]
12
2021-08-17T09:20:07.000Z
2022-03-31T13:37:28.000Z
integer = [ ['lld', 'long long', 9223372036854775807, -9223372036854775808], ['ld', 'long', 9223372036854775807, -9223372036854775808], ['lu', 'unsigned long', 18446744073709551615, 0], ['d', 'signed', 2147483647, -2147483648], ['u', 'unsigned', 4294967295, 0], ['hd', 'short', 32767, -32768], ...
29.69697
68
0.596939
b1a435a669f2409d097f7f74a5d9ca3c12d7e85f
1,944
py
Python
isaactest/tests/recieve_verify_emails.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
null
null
null
isaactest/tests/recieve_verify_emails.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2016-01-15T11:28:06.000Z
2016-01-25T17:09:18.000Z
isaactest/tests/recieve_verify_emails.py
jsharkey13/isaac-selenium-testing
fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8
[ "MIT" ]
1
2019-05-14T16:53:49.000Z
2019-05-14T16:53:49.000Z
from ..utils.log import log, INFO, ERROR, PASS from ..utils.i_selenium import assert_tab, image_div from ..tests import TestWithDependency __all__ = ["recieve_verify_emails"] ##### # Test : Recieve Verification Emails #####
44.181818
149
0.718107
b1a4e4ea2b00add4c4b415ad7ce218f992351283
536
py
Python
setup.py
msabramo/grr
4b13392528d61a3d42e6c3baa14fa74cc920c055
[ "CC0-1.0" ]
null
null
null
setup.py
msabramo/grr
4b13392528d61a3d42e6c3baa14fa74cc920c055
[ "CC0-1.0" ]
null
null
null
setup.py
msabramo/grr
4b13392528d61a3d42e6c3baa14fa74cc920c055
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup import sys setup( name='grr', version='0.2', author='Kunal Mehta', author_email='legoktm@gmail.com', url='https://github.com/legoktm/grr/', license='CC-0', description='A command-line utility to work with Gerrit', long_description=open...
24.363636
74
0.613806
b1a5144b5a072c013aabc225925d03cb09f975fc
11,553
py
Python
runtime/server/x86_gpu/model_repo_stateful/wenet/1/wenet_onnx_model.py
zelda3721/wenet
f41555469b93bcc055a95432dd14fd1400522964
[ "Apache-2.0" ]
null
null
null
runtime/server/x86_gpu/model_repo_stateful/wenet/1/wenet_onnx_model.py
zelda3721/wenet
f41555469b93bcc055a95432dd14fd1400522964
[ "Apache-2.0" ]
null
null
null
runtime/server/x86_gpu/model_repo_stateful/wenet/1/wenet_onnx_model.py
zelda3721/wenet
f41555469b93bcc055a95432dd14fd1400522964
[ "Apache-2.0" ]
1
2022-02-08T07:39:13.000Z
2022-02-08T07:39:13.000Z
# Copyright (c) 2021, 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 appli...
42.947955
87
0.528348
b1a58559665e94514cdf1de5372c35158b389ecc
7,254
py
Python
stuojchaques.py
sunlupeng2020/stuoj
f8c109894e7a7118dc632fef34c55a01fe116f9a
[ "Apache-2.0" ]
null
null
null
stuojchaques.py
sunlupeng2020/stuoj
f8c109894e7a7118dc632fef34c55a01fe116f9a
[ "Apache-2.0" ]
null
null
null
stuojchaques.py
sunlupeng2020/stuoj
f8c109894e7a7118dc632fef34c55a01fe116f9a
[ "Apache-2.0" ]
null
null
null
# # # stuojstuquestionbh from selenium import webdriver # from selenium.webdriver.common.by import By import pymysql import re from bs4 import BeautifulSoup import connsql # import loginzznuoj from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC im...
35.043478
114
0.666391
b1a5a19351b24a513cab2db62b55e27e8f29e1d1
3,899
py
Python
tests/test_core.py
TheCheapestPixels/panda3d-stageflow
7a049d939dec39e3ac780872bbaba5c25f309397
[ "BSD-3-Clause" ]
3
2020-10-04T18:52:37.000Z
2022-02-21T13:21:45.000Z
tests/test_core.py
TheCheapestPixels/panda3d-stageflow
7a049d939dec39e3ac780872bbaba5c25f309397
[ "BSD-3-Clause" ]
2
2020-05-28T03:33:47.000Z
2020-05-28T03:38:30.000Z
tests/test_core.py
TheCheapestPixels/panda3d-stageflow
7a049d939dec39e3ac780872bbaba5c25f309397
[ "BSD-3-Clause" ]
null
null
null
from stageflow import Flow from stageflow import Stage # FIXME: Now add the ways that Flow *shouldn't* be usable: # * transitioning to non-existent stages # * passing invalid objects to Flow(stages=...)
24.36875
58
0.616055
b1a639ae9556a6f333b9ef26546b354a0f37d7a5
1,925
py
Python
Yukki/__main__.py
nezukorobot/YUUKI
7589acbb7db1e52710ee9fce1bdc6df5cb924be6
[ "MIT" ]
null
null
null
Yukki/__main__.py
nezukorobot/YUUKI
7589acbb7db1e52710ee9fce1bdc6df5cb924be6
[ "MIT" ]
null
null
null
Yukki/__main__.py
nezukorobot/YUUKI
7589acbb7db1e52710ee9fce1bdc6df5cb924be6
[ "MIT" ]
1
2021-12-01T10:17:55.000Z
2021-12-01T10:17:55.000Z
import asyncio import time import uvloop import importlib from pyrogram import Client as Bot, idle from .config import API_ID, API_HASH, BOT_TOKEN, MONGO_DB_URI, SUDO_USERS, LOG_GROUP_ID from Yukki import BOT_NAME, ASSNAME, app, chacha, aiohttpsession from Yukki.YukkiUtilities.database.functions import clean_restart_st...
29.166667
90
0.662338
b1a71b362a63e180bb73d60affe130cb3f02f9e9
3,180
py
Python
loopchain/blockchain/transactions/transaction_builder.py
metalg0su/loopchain
dd27f8f42a350d1b22b0985749b1e821c053fe49
[ "Apache-2.0" ]
null
null
null
loopchain/blockchain/transactions/transaction_builder.py
metalg0su/loopchain
dd27f8f42a350d1b22b0985749b1e821c053fe49
[ "Apache-2.0" ]
7
2019-08-28T00:19:28.000Z
2020-07-31T07:07:53.000Z
loopchain/blockchain/transactions/transaction_builder.py
metalg0su/loopchain
dd27f8f42a350d1b22b0985749b1e821c053fe49
[ "Apache-2.0" ]
null
null
null
import hashlib from abc import abstractmethod, ABC from typing import TYPE_CHECKING from .. import Signature, ExternalAddress, Hash32 from loopchain.crypto.hashing import build_hash_generator if TYPE_CHECKING: from secp256k1 import PrivateKey from . import Transaction, TransactionVersioner
32.783505
92
0.659119
b1a7a9bcfc93410c2986fe9c347507c8fbff9db4
1,132
py
Python
PyBank/main.py
yongjinjiang/python-challenge
4b266976baf8339186fae7140024ae5a3af3bc76
[ "ADSL" ]
null
null
null
PyBank/main.py
yongjinjiang/python-challenge
4b266976baf8339186fae7140024ae5a3af3bc76
[ "ADSL" ]
null
null
null
PyBank/main.py
yongjinjiang/python-challenge
4b266976baf8339186fae7140024ae5a3af3bc76
[ "ADSL" ]
null
null
null
import csv import os resource_dir="/Users/jyj/OneDrive/A_A_Data_Analysis/MINSTP201808DATA2/03-Python/Homework/PyBank/Resources" file_path=os.path.join(resource_dir,"budget_data.csv") with open(file_path,newline="") as data_file: csvreader=csv.reader(data_file,delimiter=",") next(csvreader) i=0 Nu...
31.444444
106
0.626325
b1a801667f7526e28011c5f08b7558d194b2a413
3,508
py
Python
demo.py
sshopov/pyconau2017
e492e284a5afa5115f81fddf83546168b128591c
[ "MIT" ]
21
2018-01-09T15:55:44.000Z
2020-03-22T06:27:52.000Z
demo.py
sshopov/pyconau2017
e492e284a5afa5115f81fddf83546168b128591c
[ "MIT" ]
null
null
null
demo.py
sshopov/pyconau2017
e492e284a5afa5115f81fddf83546168b128591c
[ "MIT" ]
9
2017-08-08T10:19:09.000Z
2019-03-01T12:12:30.000Z
#!/usr/bin/env python3 ''' Source name: demo.py Author(s): Stoyan Shopov Python Version: 3.* 32-bit or 64-bit License: LGPL Description: This program was demoed on EV3D4 at PyCon Australia 2017. It kicks off 2 threads a move thread and a feel thread. The move thread drives the bot forward un...
26.37594
84
0.643672
b1a8412c74612f899302b6781aec760fcfd3dd6d
21,742
py
Python
Game/story.py
starc52/GDE-Project
50ee4055e26c1873b1c21dcb2a8c2d05f7bca40f
[ "MIT" ]
null
null
null
Game/story.py
starc52/GDE-Project
50ee4055e26c1873b1c21dcb2a8c2d05f7bca40f
[ "MIT" ]
null
null
null
Game/story.py
starc52/GDE-Project
50ee4055e26c1873b1c21dcb2a8c2d05f7bca40f
[ "MIT" ]
1
2021-07-06T03:38:24.000Z
2021-07-06T03:38:24.000Z
from Game.player import Player from pygame import * from Game.const import *
39.966912
250
0.664474
b1a88bc7e1241c7e280f5c4ac943fa677100e8e2
7,651
py
Python
utilities/tag-bumper.py
stackrox/collector
4c3913176eb62636e32a8a56f889e611c638de73
[ "Apache-2.0" ]
1
2022-03-31T15:25:16.000Z
2022-03-31T15:25:16.000Z
utilities/tag-bumper.py
stackrox/collector
4c3913176eb62636e32a8a56f889e611c638de73
[ "Apache-2.0" ]
4
2022-03-31T16:16:00.000Z
2022-03-31T23:24:33.000Z
utilities/tag-bumper.py
stackrox/collector
4c3913176eb62636e32a8a56f889e611c638de73
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 from sh import git, ErrorReturnCode import argparse import sys import os import atexit import re def exit_handler(repo): """ Rollback the repo to the branch passed as an argument. Parameters: repo: An sh.Command baked for git on the working repository. """ print('...
29.091255
119
0.640439
b1a911035784142a39959873000505c8b7d79b40
2,455
py
Python
openshift/helper/openshift.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
openshift/helper/openshift.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
openshift/helper/openshift.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import json from kubernetes.client import models as k8s_models from kubernetes.client import apis as k8s_apis from kubernetes.client.rest import ApiException from urllib3.exceptions import MaxRetryError from . import VERSION_RX from .. import config from...
35.071429
127
0.712424
b1a93d370fc62aa987aa9250ab1bac4da3444f9c
35
py
Python
tests/__init__.py
jsta/nhdpy
38f52a68907e4d838715c77b18e61450eb775c72
[ "MIT" ]
null
null
null
tests/__init__.py
jsta/nhdpy
38f52a68907e4d838715c77b18e61450eb775c72
[ "MIT" ]
8
2020-11-12T16:42:23.000Z
2021-03-04T19:00:09.000Z
tests/__init__.py
jsta/nhdpy
38f52a68907e4d838715c77b18e61450eb775c72
[ "MIT" ]
null
null
null
"""Unit test package for nhdpy."""
17.5
34
0.657143
b1a94a4b34655e087c8464bf5e2ca43f8d328eaa
10,423
py
Python
ltcl/modules/lvae_nonlinear.py
anonymous-authors-iclr2022-481/ltcl
0d8902228fa6c37f875bb60c4d16988462a9655a
[ "MIT" ]
8
2021-10-16T08:35:37.000Z
2022-02-10T09:25:50.000Z
leap/modules/lvae_nonlinear.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
null
null
null
leap/modules/lvae_nonlinear.py
weirayao/leap
8d10b8413d02d3be49d5c02a13a0aa60a741d8da
[ "MIT" ]
1
2021-11-30T04:06:43.000Z
2021-11-30T04:06:43.000Z
"""Temporal VAE with gaussian margial and laplacian transition prior""" import torch import numpy as np import ipdb as pdb import torch.nn as nn import pytorch_lightning as pl import torch.distributions as D from torch.nn import functional as F from .components.beta import BetaVAE_MLP from .metrics.correla...
40.399225
111
0.570469
b1a94cda8b0a8f59129a19a7e19f329084618c94
7,196
py
Python
cargame/camera.py
jocelynthiojaya/Self-Learning-Cars
5dbd47f4f34155cf50cd6c6a6daef70449f96398
[ "Apache-2.0" ]
null
null
null
cargame/camera.py
jocelynthiojaya/Self-Learning-Cars
5dbd47f4f34155cf50cd6c6a6daef70449f96398
[ "Apache-2.0" ]
null
null
null
cargame/camera.py
jocelynthiojaya/Self-Learning-Cars
5dbd47f4f34155cf50cd6c6a6daef70449f96398
[ "Apache-2.0" ]
null
null
null
import arcade from cargame.globals import conf from cargame import util # This math is for getting the ratio from zoom. I honestly # don't know what it is called, i just constructed it by hand # Long form is 1 - (x - 1) / 2 zoom_multiplexer = lambda x : (3 - x)/2 # TODO: Implement anchor
34.932039
153
0.591857
b1ac9e7af9abde201568a2b9eff7f851241bb02a
168
py
Python
configs/tsmnet/tsmnet_r50-d1_769x769_40k_cityscapes_video.py
labdeeman7/TRDP_temporal_stability_semantic_segmentation
efe0f13c2ed4e203d1caa41810e39e09152b508e
[ "Apache-2.0" ]
null
null
null
configs/tsmnet/tsmnet_r50-d1_769x769_40k_cityscapes_video.py
labdeeman7/TRDP_temporal_stability_semantic_segmentation
efe0f13c2ed4e203d1caa41810e39e09152b508e
[ "Apache-2.0" ]
null
null
null
configs/tsmnet/tsmnet_r50-d1_769x769_40k_cityscapes_video.py
labdeeman7/TRDP_temporal_stability_semantic_segmentation
efe0f13c2ed4e203d1caa41810e39e09152b508e
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/tsm_r50-d8.py', '../_base_/datasets/cityscapes_769x769.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ]
42
81
0.684524
b1aca6b126eaf2078a24e5384b735f4060abd7a2
1,883
py
Python
abc/104/c_retry2.py
515hikaru/solutions
9fb3e4600f9a97b78211a5736c98354d4cbebc38
[ "MIT" ]
null
null
null
abc/104/c_retry2.py
515hikaru/solutions
9fb3e4600f9a97b78211a5736c98354d4cbebc38
[ "MIT" ]
9
2019-12-29T17:57:39.000Z
2020-02-16T16:36:04.000Z
abc104/c_retry2.py
515hikaru/abc-sandbox
6445dd9d6583bd48a285d6e5693173529933da51
[ "MIT" ]
null
null
null
from itertools import combinations if __name__ == '__main__': main()
29.888889
86
0.495486
b1acfa5bf6bd71ea82cf922fd4900527c2980874
4,418
py
Python
merlin/celery.py
robinson96/merlin
962b97ac037465f0fe285ceee6b77e554d8a29fe
[ "MIT" ]
null
null
null
merlin/celery.py
robinson96/merlin
962b97ac037465f0fe285ceee6b77e554d8a29fe
[ "MIT" ]
null
null
null
merlin/celery.py
robinson96/merlin
962b97ac037465f0fe285ceee6b77e554d8a29fe
[ "MIT" ]
null
null
null
############################################################################### # Copyright (c) 2019, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory # Written by the Merlin dev team, listed in the CONTRIBUTORS file. # <merlin@llnl.gov> # # LLNL-CODE-797170 # All righ...
33.218045
88
0.715708
b1ad3f5981efc006ce7e36a91015794cd61586bc
648
py
Python
webapi/apps/web/management/mockup.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
webapi/apps/web/management/mockup.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
webapi/apps/web/management/mockup.py
NovaSBE-DSKC/retention-evaluation
5b68b9282f0b5479a9dc5238faef68067c76b861
[ "MIT" ]
null
null
null
import random import pandas as pd import json
20.903226
108
0.634259
b1ad704b385cea93f718a905833492ee873ae1bf
1,332
py
Python
migrations/versions/e91e2508f055_.py
ifat-mohit/flask-microblog
f4f5f0df600779caecbe442d30a7ecc517ad515f
[ "MIT" ]
1
2021-02-13T23:47:46.000Z
2021-02-13T23:47:46.000Z
migrations/versions/e91e2508f055_.py
ifat-mohit/flask-microblog
f4f5f0df600779caecbe442d30a7ecc517ad515f
[ "MIT" ]
2
2021-02-14T17:04:53.000Z
2021-06-02T00:35:49.000Z
migrations/versions/e91e2508f055_.py
mohidex/flask-microblog
f4f5f0df600779caecbe442d30a7ecc517ad515f
[ "MIT" ]
1
2020-04-07T11:56:22.000Z
2020-04-07T11:56:22.000Z
"""empty message Revision ID: e91e2508f055 Revises: a064e677a1f1 Create Date: 2019-11-04 22:59:00.701304 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e91e2508f055' down_revision = 'a064e677a1f1' branch_labels = None depends_on = None
31.714286
89
0.682432
490a5d4dee030077442db885609423fe0007703e
758
py
Python
cli/cli_cloudformation.py
reneses/cloud-cli
1f765cfb67cb9ffde1633fffe0da11893fb1503f
[ "MIT" ]
null
null
null
cli/cli_cloudformation.py
reneses/cloud-cli
1f765cfb67cb9ffde1633fffe0da11893fb1503f
[ "MIT" ]
null
null
null
cli/cli_cloudformation.py
reneses/cloud-cli
1f765cfb67cb9ffde1633fffe0da11893fb1503f
[ "MIT" ]
null
null
null
from menu import Menu, MenuEntry from logic.cloudformation import CloudFormation
25.266667
71
0.604222
490a7e4e927bf1f9002b7ce41d2b092342ed19da
3,107
py
Python
bot/models/__init__.py
masterbpro/radio-archive
c612cd845d969a6577a3facbdd8183048f8db2de
[ "MIT" ]
null
null
null
bot/models/__init__.py
masterbpro/radio-archive
c612cd845d969a6577a3facbdd8183048f8db2de
[ "MIT" ]
null
null
null
bot/models/__init__.py
masterbpro/radio-archive
c612cd845d969a6577a3facbdd8183048f8db2de
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from peewee import SqliteDatabase, Model, PrimaryKeyField, IntegerField, CharField, BooleanField, DateTimeField from bot.data.config import STATIC_DIR from bot.utils.logging import logger db = SqliteDatabase(f"{STATIC_DIR}/db.sqlite3") User.create_table(safe=True) Archive...
30.762376
111
0.620856
490c3a09e90ac7741bc5df730d26dac2764368fc
40,373
py
Python
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/utils/op/fusedbatchnorm.py
quic-ykota/aimet
c897bd4c360e3a0fb7a329c6bb98b569f66bace1
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/utils/op/fusedbatchnorm.py
seaun163/aimet
de94e5522e0c9250fb422d064b77ef9ecc70f239
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/tensorflow/src/python/aimet_tensorflow/utils/op/fusedbatchnorm.py
seaun163/aimet
de94e5522e0c9250fb422d064b77ef9ecc70f239
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2019-2020, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modifica...
43.552319
118
0.626112
490d54319f77117f33898d0f301f950c860478c3
4,878
py
Python
flaskex.py
DesuDeluxe/simple_rest_api
c9bed666269882adae97db974c29f9f8e406ce80
[ "MIT" ]
null
null
null
flaskex.py
DesuDeluxe/simple_rest_api
c9bed666269882adae97db974c29f9f8e406ce80
[ "MIT" ]
null
null
null
flaskex.py
DesuDeluxe/simple_rest_api
c9bed666269882adae97db974c29f9f8e406ce80
[ "MIT" ]
null
null
null
import os from flask import Flask, Response, render_template, redirect from flask_restful import reqparse,request, abort, Api, Resource, fields, marshal_with from flask_sqlalchemy import SQLAlchemy import sqlite3 app = Flask(__name__) p_dir = os.path.dirname(os.path.abspath(__file__)) db_file = "sqlite:///{}".forma...
32.304636
193
0.693727
491193c73d24c3c74876c7aa66287f19f2f09a60
6,203
py
Python
backend/server/device_legacy/routes.py
kristof-g/TempHum-Supervisor-Sys
aa7343c5dab5941b905333fd0172b688f8b4896f
[ "MIT" ]
null
null
null
backend/server/device_legacy/routes.py
kristof-g/TempHum-Supervisor-Sys
aa7343c5dab5941b905333fd0172b688f8b4896f
[ "MIT" ]
null
null
null
backend/server/device_legacy/routes.py
kristof-g/TempHum-Supervisor-Sys
aa7343c5dab5941b905333fd0172b688f8b4896f
[ "MIT" ]
null
null
null
import sys import os import json import csv from time import strftime from datetime import timedelta, date, datetime from flask import Blueprint, render_template, redirect, request, url_for, flash import server.configuration as cfg from server.postalservice import checkTemp from server.helpers import LoginRequired, p...
44.307143
120
0.59036
4912467ee29fbe811c78fea1ef046cb9707fcd7e
2,507
py
Python
gdsfactory/components/resistance_sheet.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/components/resistance_sheet.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
gdsfactory/components/resistance_sheet.py
simbilod/gdsfactory
4d76db32674c3edb4d16260e3177ee29ef9ce11d
[ "MIT" ]
null
null
null
from functools import partial from gdsfactory.cell import cell from gdsfactory.component import Component from gdsfactory.components.compass import compass from gdsfactory.components.via_stack import via_stack_slab_npp_m3 from gdsfactory.types import ComponentSpec, Floats, LayerSpecs, Optional pad_via_stack_slab_npp ...
28.816092
94
0.643797
4912d26a22acac060d471e8872438c7e944e8077
17,008
py
Python
cogdl/trainers/sampled_trainer.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/trainers/sampled_trainer.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/trainers/sampled_trainer.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
from abc import abstractmethod import argparse import copy import numpy as np import torch from tqdm import tqdm from cogdl.data import Dataset from cogdl.data.sampler import ( SAINTSampler, NeighborSampler, ClusteredLoader, ) from cogdl.models.supervised_model import SupervisedModel from cogdl.trainers.b...
36.893709
127
0.602305
491377c3b97184cf6e4325a1301a6746ac433ea2
7,448
py
Python
sample-input/sph-factors/pin-cell/sph-factors.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
97
2015-01-02T02:13:45.000Z
2022-03-09T14:12:45.000Z
sample-input/sph-factors/pin-cell/sph-factors.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
325
2015-01-07T17:43:14.000Z
2022-02-21T17:22:00.000Z
sample-input/sph-factors/pin-cell/sph-factors.py
AI-Pranto/OpenMOC
7f6ce4797aec20ddd916981a56a4ba54ffda9a06
[ "MIT" ]
73
2015-01-17T19:11:58.000Z
2022-03-24T16:31:37.000Z
import openmoc import openmc.openmoc_compatible import openmc.mgxs import numpy as np import matplotlib # Enable Matplotib to work for headless nodes matplotlib.use('Agg') import matplotlib.pyplot as plt plt.ioff() opts = openmoc.options.Options() openmoc.log.set_log_level('NORMAL') ##############################...
36.509804
79
0.649436
4913c3ea285b469820f3898e3feff4274634fe9e
494
py
Python
VerifyServer.py
ACueva/Avi-Playground
cb1768999630ed884cff5d40c0faa86d24802754
[ "Apache-2.0" ]
null
null
null
VerifyServer.py
ACueva/Avi-Playground
cb1768999630ed884cff5d40c0faa86d24802754
[ "Apache-2.0" ]
null
null
null
VerifyServer.py
ACueva/Avi-Playground
cb1768999630ed884cff5d40c0faa86d24802754
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import urllib2, json from urlparse import urlparse
21.478261
31
0.61336