hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
1c11fa31f6af0b8605aa97c0e4887d1677041561
106,217
py
Python
agMontage/mViewer.py
AndrewDGood/mViewer
3cde275c60204dca77d019263392864332f958b7
[ "BSD-3-Clause" ]
null
null
null
agMontage/mViewer.py
AndrewDGood/mViewer
3cde275c60204dca77d019263392864332f958b7
[ "BSD-3-Clause" ]
null
null
null
agMontage/mViewer.py
AndrewDGood/mViewer
3cde275c60204dca77d019263392864332f958b7
[ "BSD-3-Clause" ]
null
null
null
#--------------------------------------------------------------------------------- # Montage Viewer Python Application #--------------------------------------------------------------------------------- from threading import Thread import tornado.ioloop imp...
32.935504
220
0.482766
0d4d35f429d9884d50d3487eaab77b76c0811763
1,285
py
Python
Leetcode/426.convert-binary-search-tree-to-sorted-doubly-linked-list.py
EdwaRen/Competitve-Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
1
2021-05-03T21:48:25.000Z
2021-05-03T21:48:25.000Z
Leetcode/426.convert-binary-search-tree-to-sorted-doubly-linked-list.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
Leetcode/426.convert-binary-search-tree-to-sorted-doubly-linked-list.py
EdwaRen/Competitve_Programming
e8bffeb457936d28c75ecfefb5a1f316c15a9b6c
[ "MIT" ]
null
null
null
""" # Definition for a Node. """ class Node(object): def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right class Solution(object): def treeToDoublyList(self, root): """ :type root: Node :rtype: Node """ ...
17.60274
51
0.491051
950c92e998c8a53d9b60f588122b143ce85bff54
8,244
py
Python
main.py
bbhulani/sdc_p12_semantic_seg
73043d6b9d228288313b47a69fffa6c428d451ba
[ "MIT" ]
null
null
null
main.py
bbhulani/sdc_p12_semantic_seg
73043d6b9d228288313b47a69fffa6c428d451ba
[ "MIT" ]
null
null
null
main.py
bbhulani/sdc_p12_semantic_seg
73043d6b9d228288313b47a69fffa6c428d451ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os.path import tensorflow as tf import helper import warnings from distutils.version import LooseVersion import project_tests as tests # Check TensorFlow Version assert LooseVersion(tf.__version__) >= LooseVersion('1.0'), 'Please use TensorFlow version 1.0 or newer. You are using {}'.fo...
42.715026
146
0.698083
22b49a83c062eceacf7fc2c0217ef15498ab7d88
451
py
Python
eclcli/rca/rcaclient/v2/versions.py
shimisho/eclcli
a1f55ec9c6a0849c8b2100ddb8938a3bee141100
[ "Apache-2.0" ]
null
null
null
eclcli/rca/rcaclient/v2/versions.py
shimisho/eclcli
a1f55ec9c6a0849c8b2100ddb8938a3bee141100
[ "Apache-2.0" ]
null
null
null
eclcli/rca/rcaclient/v2/versions.py
shimisho/eclcli
a1f55ec9c6a0849c8b2100ddb8938a3bee141100
[ "Apache-2.0" ]
null
null
null
from .. import base def getversion(obj): try: return obj.version except AttributeError: return obj class Version(base.Resource): def __repr__(self): return "<Version>" class VersionManager(base.ManagerWithFind): resource_class = Version def list(self): return se...
18.791667
69
0.618625
8dd0a20f53fdb8035aad302461a03c3e5d34c01b
5,272
py
Python
paddlevideo/tasks/train_dali.py
ttjygbtj/PaddleVideo
8cafade8d1a230e56e046f5295077afb7a7075e3
[ "Apache-2.0" ]
null
null
null
paddlevideo/tasks/train_dali.py
ttjygbtj/PaddleVideo
8cafade8d1a230e56e046f5295077afb7a7075e3
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
paddlevideo/tasks/train_dali.py
Thinksky5124/PaddleVideo
c8e9c5ff53d99bd70bfeb6246a53e668064a9940
[ "Apache-2.0" ]
null
null
null
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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...
36.611111
154
0.612481
99d1396e619c6315323ce733c8514213d99577a8
4,412
py
Python
resource/Ui_QR_code.py
zengbolin/pyqt5_python-
55d7b82b940bff825e8282de0d15ecd3875a6eff
[ "Apache-2.0" ]
7
2019-11-23T05:22:48.000Z
2022-03-30T05:46:36.000Z
resource/Ui_QR_code.py
zengbolin/pyqt5_python-
55d7b82b940bff825e8282de0d15ecd3875a6eff
[ "Apache-2.0" ]
null
null
null
resource/Ui_QR_code.py
zengbolin/pyqt5_python-
55d7b82b940bff825e8282de0d15ecd3875a6eff
[ "Apache-2.0" ]
1
2021-05-06T06:18:35.000Z
2021-05-06T06:18:35.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'I:\python_base_Code\PyQt5学习\PyQt_Demo\resource\UI\QR_code.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets # 二维码界面实现 class Ui_Form(obje...
42.834951
115
0.589755
c74a70d33b23c5a605717fec76cc0df89708fef0
14,313
py
Python
src/mayaToMantra/deployment/mayaToMantra/scripts/scripts/mtm_initialize.py
haggi/OpenMaya
746e0740f480d9ef8d2173f31b3c99b9b0ea0d24
[ "MIT" ]
42
2015-01-03T15:07:25.000Z
2021-12-09T03:56:59.000Z
src/mayaToMantra/deployment/mayaToMantra/scripts/scripts/mtm_initialize.py
haggi/OpenMaya
746e0740f480d9ef8d2173f31b3c99b9b0ea0d24
[ "MIT" ]
66
2015-01-02T13:28:44.000Z
2022-03-16T14:00:57.000Z
src/mayaToMantra/deployment/mayaToMantra/scripts/scripts/mtm_initialize.py
haggi/OpenMaya
746e0740f480d9ef8d2173f31b3c99b9b0ea0d24
[ "MIT" ]
12
2015-02-07T05:02:17.000Z
2020-07-10T17:21:44.000Z
import pymel.core as pm import pymel.core.uitypes as pui from pymel.core import Callback import maya.cmds as cmds import logging import os import getpass import subprocess import mtm_mantraAttributes as mantraAttributes import mtm_attributeManager import shutil import sys #import AETemplates.AEdagNodeTemplate as dgTmp...
37.765172
152
0.650178
20c291900c56c80e90f428e62fac1a4059ac57ce
4,899
py
Python
conanfile.py
icolwell-as/Lanelet2
0e2e222352936cd70a9fab5256684a97c3091996
[ "BSD-3-Clause" ]
19
2020-07-28T14:50:10.000Z
2021-12-21T18:45:38.000Z
conanfile.py
icolwell-as/Lanelet2
0e2e222352936cd70a9fab5256684a97c3091996
[ "BSD-3-Clause" ]
1
2020-11-08T10:32:27.000Z
2020-11-08T10:32:27.000Z
conanfile.py
icolwell-as/Lanelet2
0e2e222352936cd70a9fab5256684a97c3091996
[ "BSD-3-Clause" ]
11
2020-08-02T01:12:51.000Z
2021-12-18T07:17:16.000Z
import os import sys import em import xml.etree.ElementTree as ET from conans import ConanFile, CMake, tools find_mrt_cmake=""" set(mrt_cmake_modules_FOUND True) include(${CMAKE_CURRENT_LIST_DIR}/mrt_cmake_modules-extras.cmake) """ cmake_lists=""" cmake_minimum_required(VERSION 3.0) project(lanelet2) cmake_policy(SET...
40.155738
151
0.719126
4b874874851d348e226ae2300b2fb53d178652e2
13,430
py
Python
readimc/_imc_mcd_file.py
mezwick/readimc
7f362157b468220ad07bb4d1cb48abb7d8199b73
[ "MIT" ]
null
null
null
readimc/_imc_mcd_file.py
mezwick/readimc
7f362157b468220ad07bb4d1cb48abb7d8199b73
[ "MIT" ]
null
null
null
readimc/_imc_mcd_file.py
mezwick/readimc
7f362157b468220ad07bb4d1cb48abb7d8199b73
[ "MIT" ]
null
null
null
import mmap import numpy as np import re import xml.etree.ElementTree as ET from imageio import imread from os import PathLike from typing import BinaryIO, List, Optional, Sequence, Union from readimc._imc_mcd_xml_parser import IMCMcdXmlParser, IMCMcdXmlParserError from readimc.data import Acquisition from readimc.da...
37.830986
79
0.574981
703cf18c35303307f1a9e9eee59a0b6df50ee29b
346
py
Python
src/main.py
syatsuzuka/Sample_TkinterApp
e2b25f2c8222bf128b71c0c66443890dbca61941
[ "Apache-2.0" ]
null
null
null
src/main.py
syatsuzuka/Sample_TkinterApp
e2b25f2c8222bf128b71c0c66443890dbca61941
[ "Apache-2.0" ]
null
null
null
src/main.py
syatsuzuka/Sample_TkinterApp
e2b25f2c8222bf128b71c0c66443890dbca61941
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 ''' Sample Tkinter App ''' import tkinter as tk import json from gui.MainWindow import MainWindow if __name__ == '__main__': ''' main function ''' root = tk.Tk() func_dict = dict() settings = json.load(open("config/settings.json")) app = MainWindow(root, func_dict, set...
14.416667
54
0.635838
a19642f4888b1fa3cfad07801764104261e72912
4,300
py
Python
viseron/camera/frame.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
399
2020-08-31T21:13:07.000Z
2022-03-31T18:54:26.000Z
viseron/camera/frame.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
157
2020-09-01T18:59:56.000Z
2022-03-25T07:14:19.000Z
viseron/camera/frame.py
dadaloop82/viseron
1c6c446a4856e16c0e2ed6b9323d169fbdcae20f
[ "MIT" ]
53
2020-09-01T07:35:59.000Z
2022-03-28T23:21:16.000Z
"""Frame read from FFmpeg.""" import logging from typing import List import cv2 import numpy as np from viseron.detector.detected_object import DetectedObject LOGGER = logging.getLogger(__name__) class Frame: """Represents a frame read from FFMpeg.""" def __init__( self, cvt_color, ...
30.496454
85
0.647907
fe54167467bb6199791cf844b6a8fc4b32971a6f
42
py
Python
Chapter01/git_tag.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
13
2018-06-21T01:44:49.000Z
2021-12-01T10:49:53.000Z
Chapter01/git_tag.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
null
null
null
Chapter01/git_tag.py
PacktPublishing/Secret-Recipes-of-the-Python-Ninja
805d00c7a54927ba94c9077e9a580508ee3c5e56
[ "MIT" ]
6
2018-10-05T08:29:24.000Z
2022-01-11T14:49:50.000Z
git tag -a <tag_name> -m "<tag_message>"
14
40
0.642857
6b167b76185ec035b7492dfa81e1dc02daa7ebba
1,261
py
Python
quest/pycocoevalcap/bleu/bleu.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/pycocoevalcap/bleu/bleu.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
quest/pycocoevalcap/bleu/bleu.py
shuokabe/deepQuest-mod
7140a57c30deedb0570bc835c6ad3c848f0039f4
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # File Name : bleu.py # # Description : Wrapper for BLEU scorer. # # Creation Date : 06-01-2015 # Last Modified : Thu 19 Mar 2015 09:13:28 PM PDT # Authors : Hao Fang <hfang@uw.edu> and Tsung-Yi Lin <tl483@cornell.edu> from bleu_scorer import BleuScorer class Bleu: def __init__(self, n=4...
26.270833
80
0.57732
81ad7f3c40914b6ac3220f0a4595f40cb53153f5
299
py
Python
Implementation-of-linear-algebra-operations/2.simple-numpy-implementation/lesson1.py
zelzhan/Linear-algebra-with-python
a58042c9f29f67aafcd2c1c4c1300a0e9223a650
[ "MIT" ]
null
null
null
Implementation-of-linear-algebra-operations/2.simple-numpy-implementation/lesson1.py
zelzhan/Linear-algebra-with-python
a58042c9f29f67aafcd2c1c4c1300a0e9223a650
[ "MIT" ]
null
null
null
Implementation-of-linear-algebra-operations/2.simple-numpy-implementation/lesson1.py
zelzhan/Linear-algebra-with-python
a58042c9f29f67aafcd2c1c4c1300a0e9223a650
[ "MIT" ]
null
null
null
#Using the distance formula and trigonometry functions in Python, calculate the #magnitude and direction of a line with the two coordinates, (5,3) and (1,1). import numpy as np import math a = np.array([5, 3]) b = np.array([1, 1]) length = np.linalg.norm(a-b) angle = math.atan((a-b)[1]/(a-b)[0])
29.9
157
0.692308
e9d5359a52796193b3ef95c55a3422d64190fc1f
13,773
py
Python
backend/whip/serializers.py
tecty/SENG2011
81861a2d4452dee16433d5038d34beaaed9665c8
[ "MIT" ]
null
null
null
backend/whip/serializers.py
tecty/SENG2011
81861a2d4452dee16433d5038d34beaaed9665c8
[ "MIT" ]
null
null
null
backend/whip/serializers.py
tecty/SENG2011
81861a2d4452dee16433d5038d34beaaed9665c8
[ "MIT" ]
2
2019-01-08T03:08:03.000Z
2019-11-19T13:24:19.000Z
from django.contrib.auth.models import User,Group from rest_framework import serializers,validators from .models import Location, Profile, Parameter, Post, Bid,Event,Message from django.utils import timezone # to support the recursive message from rest_framework_recursive.fields import RecursiveField class LocationS...
33.592683
104
0.603209
0d8fddd0ba24e39cfea36ac6f6d8e708da0a403a
31,872
py
Python
sklearn/metrics/_regression.py
ryuwd/scikit-learn
da562b4fa58bdce4a7f3470f733f33d728747a66
[ "BSD-3-Clause" ]
13
2020-05-03T18:42:05.000Z
2022-03-23T07:44:19.000Z
sklearn/metrics/_regression.py
ryuwd/scikit-learn
da562b4fa58bdce4a7f3470f733f33d728747a66
[ "BSD-3-Clause" ]
2
2022-03-11T13:26:38.000Z
2022-03-11T23:28:31.000Z
sklearn/metrics/_regression.py
ryuwd/scikit-learn
da562b4fa58bdce4a7f3470f733f33d728747a66
[ "BSD-3-Clause" ]
8
2020-10-05T20:56:08.000Z
2020-10-27T23:30:03.000Z
"""Metrics to assess performance on regression task. Functions named as ``*_score`` return a scalar value to maximize: the higher the better. Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize: the lower the better. """ # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # ...
35.452725
79
0.629706
b62987f66abfd36f0476135eb24fc728a991f946
5,544
py
Python
users/migrations/0016_auto_20201030_0142.py
namanmalikk/UpCare
43af1a3d291d4580cdf9348e9c38da4a7e41db73
[ "Apache-2.0" ]
null
null
null
users/migrations/0016_auto_20201030_0142.py
namanmalikk/UpCare
43af1a3d291d4580cdf9348e9c38da4a7e41db73
[ "Apache-2.0" ]
null
null
null
users/migrations/0016_auto_20201030_0142.py
namanmalikk/UpCare
43af1a3d291d4580cdf9348e9c38da4a7e41db73
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.10 on 2020-10-29 20:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0015_auto_20201030_0139'), ] operations = [ migrations.AlterField( model_name='symptom', name='name', ...
291.789474
5,210
0.731782
df6b27cef2c8da008bf74eb848e9805140a570c6
1,228
py
Python
src/waldur_mastermind/billing/managers.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
2
2017-01-20T15:26:25.000Z
2017-08-03T04:38:08.000Z
src/waldur_mastermind/billing/managers.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
src/waldur_mastermind/billing/managers.py
opennode/nodeconductor-assembly-waldur
cad9966389dc9b52b13d2301940c99cf4b243900
[ "MIT" ]
null
null
null
from django.contrib.contenttypes.models import ContentType from django.db import models as django_models from waldur_core.core import managers as core_managers from waldur_core.structure.managers import filter_queryset_for_user class UserFilterMixin: def filtered_for_user(self, user, queryset=None): if q...
34.111111
84
0.697883
e9796e26c591500379363cc2b3f1621c1cc874c4
4,249
py
Python
identity_data.py
Identity-Stick/identity-stick-server
4cafa21e1573ac9f2663ca7127b844b47e392bab
[ "MIT" ]
2
2021-06-18T13:33:24.000Z
2022-01-11T00:14:45.000Z
identity_data.py
Identity-Stick/identity-stick-server
4cafa21e1573ac9f2663ca7127b844b47e392bab
[ "MIT" ]
null
null
null
identity_data.py
Identity-Stick/identity-stick-server
4cafa21e1573ac9f2663ca7127b844b47e392bab
[ "MIT" ]
1
2020-12-02T15:32:27.000Z
2020-12-02T15:32:27.000Z
#!/usr/bin/env python3 """ ______________ MIT License Copyright (c) 2020 Julian Rösner 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...
31.242647
82
0.750059
2c77a174599477c2dbccd8e9247eeac7b0a1b477
16,972
py
Python
buycoins_sdk/tests/client/test_client.py
GoZaddy/buycoins_sdk
404ab183dc9d575d04abc60fa84fb5b1001a97a9
[ "MIT" ]
16
2021-02-09T13:34:10.000Z
2021-02-15T12:51:00.000Z
buycoins_sdk/tests/client/test_client.py
GoZaddy/buycoins_sdk
404ab183dc9d575d04abc60fa84fb5b1001a97a9
[ "MIT" ]
7
2021-02-07T06:12:30.000Z
2021-02-12T00:12:41.000Z
buycoins_sdk/tests/client/test_client.py
GoZaddy/buycoins_sdk
404ab183dc9d575d04abc60fa84fb5b1001a97a9
[ "MIT" ]
1
2021-02-12T19:22:05.000Z
2021-02-12T19:22:05.000Z
from unittest import TestCase, main from unittest.mock import Mock from buycoins_sdk import BuycoinsGraphqlClient, enums, errors, client from .fixtures import * def _add_error_to_result(result: dict, message: str = 'random error message'): res = result res['errors'] = [{ 'message': message }] ...
39.561772
111
0.617016
dc4a6fab0645e38bf849674252586411250b9346
308
py
Python
sympy/mpmath/functions/__init__.py
dqnykamp/sympy
f341893eea26c7ee90be45df181eac1d21b7a541
[ "BSD-3-Clause" ]
625
2015-01-07T04:56:25.000Z
2022-03-28T16:30:27.000Z
sympy_old/mpmath/functions/__init__.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
322
2015-01-01T15:19:37.000Z
2022-03-27T05:07:51.000Z
sympy_old/mpmath/functions/__init__.py
curzel-it/KiPyCalc
909c783d5e6967ea58ca93f875106d8a8e3ca5db
[ "MIT" ]
160
2015-01-25T01:16:52.000Z
2022-03-21T14:44:20.000Z
from . import functions # Hack to update methods from . import factorials from . import hypergeometric from . import expintegrals from . import bessel from . import orthogonal from . import theta from . import elliptic from . import zeta from . import rszeta from . import zetazeros from . import qfunctions
22
28
0.785714
18fdf6144cc1d80a7c689064ee7f08cc7f3a19c2
317
py
Python
my_cv/03/03_03_canny.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
2
2020-04-06T09:09:19.000Z
2020-07-24T03:59:55.000Z
my_cv/03/03_03_canny.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
my_cv/03/03_03_canny.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
import cv2 """ 1、使用高斯滤波器对图像去噪 2、计算梯度 3、在边缘上使用非最大抑制(NMS) 4、在检测到的边缘上使用双阈值去除假阳性 5、最后分析所有的边缘及其之间的连接,保留真的边缘,消除不明显的边缘""" # 转化为灰度图像 img = cv2.imread('test.jpg', 0) # 使用canny边缘检测算法 cv2.imwrite('test_canny.jpg', cv2.Canny(img, 200, 300)) cv2.imshow("canny", cv2.imread('test_canny.jpg')) cv2.waitKey() cv2.destroyAllWindows()
21.133333
55
0.750789
5dfbec245291e78ea8065d88cde320c53f0affec
308
py
Python
storage3/utils.py
supabase-community/storage-py
7ff6a7a305b652974d64b500e55255345e3162d7
[ "MIT" ]
1
2022-03-31T14:44:15.000Z
2022-03-31T14:44:15.000Z
storage3/utils.py
supabase-community/storage-py
7ff6a7a305b652974d64b500e55255345e3162d7
[ "MIT" ]
null
null
null
storage3/utils.py
supabase-community/storage-py
7ff6a7a305b652974d64b500e55255345e3162d7
[ "MIT" ]
null
null
null
from httpx import AsyncClient as AsyncClient # noqa: F401 from httpx import Client as BaseClient __version__ = "0.3.2" class SyncClient(BaseClient): def aclose(self) -> None: self.close() class StorageException(Exception): """Error raised when an operation on the storage API fails."""
22
66
0.717532
3ec39f98f8dc932954f15dbfda3d01b6706db494
12,902
py
Python
vunit/com/codec_vhdl_package.py
bjacobs1/vunit
a7f7717a172855ea7852296bb768370d50cfc992
[ "Artistic-2.0" ]
1
2020-08-30T08:30:02.000Z
2020-08-30T08:30:02.000Z
vunit/com/codec_vhdl_package.py
smgl9/vunit
9933d9a1ae600cc241894244361282dd7f7227d7
[ "Artistic-2.0" ]
null
null
null
vunit/com/codec_vhdl_package.py
smgl9/vunit
9933d9a1ae600cc241894244361282dd7f7227d7
[ "Artistic-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2014-2018, Lars Asplund lars.anders.asplund@gmail.com """ Module containing the CodecVHDLPackage class...
41.089172
115
0.625794
d652e638999b9f4dda4d097341fa897579f2bed6
6,735
py
Python
test/ibm_test_case.py
mtreinish/qiskit-ibm-runtime
fd741a3f9d8bd11c702682e60c522797618a1ed7
[ "Apache-2.0" ]
null
null
null
test/ibm_test_case.py
mtreinish/qiskit-ibm-runtime
fd741a3f9d8bd11c702682e60c522797618a1ed7
[ "Apache-2.0" ]
null
null
null
test/ibm_test_case.py
mtreinish/qiskit-ibm-runtime
fd741a3f9d8bd11c702682e60c522797618a1ed7
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
33.675
89
0.627023
2ea198542b2479557e1fb8cf68064018cf58ba59
84
py
Python
main.py
SuperSonicHub1/FreeEpicGamesCalendar
82d444bf37d9cafa701be2b6354e8279be6b1a24
[ "Unlicense" ]
2
2022-02-13T04:16:03.000Z
2022-03-09T10:06:08.000Z
main.py
SuperSonicHub1/FreeEpicGamesCalendar
82d444bf37d9cafa701be2b6354e8279be6b1a24
[ "Unlicense" ]
null
null
null
main.py
SuperSonicHub1/FreeEpicGamesCalendar
82d444bf37d9cafa701be2b6354e8279be6b1a24
[ "Unlicense" ]
null
null
null
from free_epic_games import create_app app = create_app() app.run("0.0.0.0", 8080)
16.8
38
0.738095
0a34bf4a7fa5f404371550413719b60a78d98661
586
py
Python
run2-rdx/conds/cond-cutflow_mc-2016-md-sim09b-bare.py
umd-lhcb/lhcb-ntuples-gen
d306895a0dc6bad2def19ca3d7d1304a5a9be239
[ "BSD-2-Clause" ]
null
null
null
run2-rdx/conds/cond-cutflow_mc-2016-md-sim09b-bare.py
umd-lhcb/lhcb-ntuples-gen
d306895a0dc6bad2def19ca3d7d1304a5a9be239
[ "BSD-2-Clause" ]
105
2018-12-20T19:09:19.000Z
2022-03-19T09:53:06.000Z
run2-rdx/conds/cond-cutflow_mc-2016-md-sim09b-bare.py
umd-lhcb/lhcb-ntuples-gen
d306895a0dc6bad2def19ca3d7d1304a5a9be239
[ "BSD-2-Clause" ]
null
null
null
from Configurables import DaVinci DaVinci().DataType = '2016' DaVinci().Simulation = True DaVinci().TupleFile = 'cutflow_mc-bare.root' # Additional global flags DaVinci().MoniSequence += ['CUTFLOW', 'BARE'] from Configurables import LHCbApp LHCbApp().CondDBtag = "sim-20161124-2-vc-md100" LHCbApp().DDDBtag = "dddb...
24.416667
90
0.761092
129f28b6ad6db67420d990e4fedef10259761245
1,118
py
Python
kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
2
2020-07-02T05:47:41.000Z
2020-07-02T05:50:34.000Z
kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
1
2021-03-25T23:44:49.000Z
2021-03-25T23:44:49.000Z
k8sdeployment/k8sstat/python/kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py
JeffYFHuang/gpuaccounting
afa934350ebbd0634beb60b9df4a147426ea0006
[ "MIT" ]
1
2021-10-13T17:45:37.000Z
2021-10-13T17:45:37.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
27.95
139
0.76297
54919d6a36cfb11b1e272db4a6a033c09e88e5e2
4,976
py
Python
neighbourhood_project/settings.py
dukundejeanne/neighbourhood_django
fb20f2c1dc9acec08c03668ccebece6d28493f9d
[ "MIT" ]
null
null
null
neighbourhood_project/settings.py
dukundejeanne/neighbourhood_django
fb20f2c1dc9acec08c03668ccebece6d28493f9d
[ "MIT" ]
4
2020-02-12T02:36:58.000Z
2021-09-08T01:24:24.000Z
neighbourhood_project/settings.py
dukundejeanne/neighbourhood_django
fb20f2c1dc9acec08c03668ccebece6d28493f9d
[ "MIT" ]
null
null
null
""" Django settings for neighbourhood_project project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ ""...
26.609626
91
0.684486
9be6bb64f520ad20706cdc87ca9d024948d6051c
4,744
py
Python
ohapi/public.py
dwivedikriti/open-humans-api
d7f23bcb6827c92f70f81992de3def0dc57a1d04
[ "MIT" ]
null
null
null
ohapi/public.py
dwivedikriti/open-humans-api
d7f23bcb6827c92f70f81992de3def0dc57a1d04
[ "MIT" ]
null
null
null
ohapi/public.py
dwivedikriti/open-humans-api
d7f23bcb6827c92f70f81992de3def0dc57a1d04
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import os import re import signal from functools import partial try: from urllib import urlencode except ImportError: from urllib.parse import urlencode import click import concurrent.futures import requests import sys from humanfriendly import format_size, parse_size f...
28.407186
79
0.578836
a51d4b9577b8109ecc4fe05e8b1f90f8ad9d6edf
1,100
py
Python
update_others.py
XiaogangHe/cv
814fabeb93c6302526ad0fca79587bf3fbd2a0ea
[ "CC-BY-4.0" ]
null
null
null
update_others.py
XiaogangHe/cv
814fabeb93c6302526ad0fca79587bf3fbd2a0ea
[ "CC-BY-4.0" ]
null
null
null
update_others.py
XiaogangHe/cv
814fabeb93c6302526ad0fca79587bf3fbd2a0ea
[ "CC-BY-4.0" ]
1
2020-12-20T08:02:39.000Z
2020-12-20T08:02:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function import re import json import requests def get_number_of_citations(url): r = requests.get(url) try: r.raise_for_status() except Exception as e: print(e) return None results = re.finda...
23.913043
76
0.571818
b95020b46f0e685adaf3a432aa598592cf4ebf47
6,053
py
Python
cifar10_imagenet_eval.py
power1997312/-2020
d89a02e6be831a4ae86e75a2aa6db63292c9cebd
[ "Apache-2.0" ]
6
2019-04-28T15:59:43.000Z
2021-12-22T02:15:43.000Z
cifar10_imagenet_eval.py
power1997312/-2020
d89a02e6be831a4ae86e75a2aa6db63292c9cebd
[ "Apache-2.0" ]
14
2020-03-24T18:18:41.000Z
2022-03-12T00:17:55.000Z
cifar10_imagenet_eval.py
power1997312/-2020
d89a02e6be831a4ae86e75a2aa6db63292c9cebd
[ "Apache-2.0" ]
1
2020-10-16T13:19:05.000Z
2020-10-16T13:19:05.000Z
# Copyright 2015 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 applica...
33.815642
85
0.673385
e10fc7aab2e3871b906d7d5756caf701e0df748f
8,660
py
Python
influxdb_service_sdk/model/container/ingress_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
influxdb_service_sdk/model/container/ingress_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
influxdb_service_sdk/model/container/ingress_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ingress.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf imp...
52.484848
1,019
0.766166
a9ea908c02a74e6749566685a683907ca963c310
8,046
py
Python
userbot/modules/system_stats.py
gepeng001/WeebProject
4e5f3fe3b0a694ba44c2682d05961d508a84bef3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/system_stats.py
gepeng001/WeebProject
4e5f3fe3b0a694ba44c2682d05961d508a84bef3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/system_stats.py
gepeng001/WeebProject
4e5f3fe3b0a694ba44c2682d05961d508a84bef3
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for getting information about the server. """ import platform import shutil import sys im...
35.135371
93
0.517897
105839460ea13455d32500684326d086dd535d54
1,620
py
Python
fabric_cf/actor/core/kernel/rpc_request_type.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/actor/core/kernel/rpc_request_type.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/actor/core/kernel/rpc_request_type.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # 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 ...
32.4
80
0.730864
ffc95c4c6ceb5631be346304f5f9c1c5fe5f2377
13,197
py
Python
sql/instance.py
hunkjun/Archery2
a4198b51710fef4db15d74cfa8f3ae364c4a1feb
[ "Apache-2.0" ]
null
null
null
sql/instance.py
hunkjun/Archery2
a4198b51710fef4db15d74cfa8f3ae364c4a1feb
[ "Apache-2.0" ]
null
null
null
sql/instance.py
hunkjun/Archery2
a4198b51710fef4db15d74cfa8f3ae364c4a1feb
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import shlex import MySQLdb import os import time import simplejson as json from django.conf import settings from django.contrib.auth.decorators import permission_required from django.http import HttpResponse from django.views.decorators.cache import cache_page from common.config import SysCo...
40.481595
116
0.626885
d5962d3e6fce27e4708f225ceb435293361581ce
176
py
Python
Day19/Solution.py
varadharajaan/30-Days-of-Code
b5e83c59aefd8122cdd0c7ea890042bc94b6e30d
[ "MIT" ]
76
2016-12-17T09:00:51.000Z
2021-08-18T18:46:49.000Z
Day19/Solution.py
Ankur-9598/30-Days-Of-Code
42c682cd6ae0a1642e1548690615e424e881d1ae
[ "MIT" ]
70
2019-05-22T05:53:44.000Z
2020-11-16T14:26:14.000Z
Day19/Solution.py
Ankur-9598/30-Days-Of-Code
42c682cd6ae0a1642e1548690615e424e881d1ae
[ "MIT" ]
116
2017-01-01T20:22:27.000Z
2021-07-25T08:05:51.000Z
class Calculator(AdvancedArithmetic): def divisorSum(self, n): s = 0 for i in range(1,n+1): if (n%i == 0): s+=i return s
25.142857
37
0.460227
a799516aca1f05306eb0132ee6de1ba3528bb45a
6,043
py
Python
isi_sdk_8_2_2/isi_sdk_8_2_2/models/cluster_config_device.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/cluster_config_device.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_2/isi_sdk_8_2_2/models/cluster_config_device.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 9 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ClusterConfigDevice(object...
29.768473
361
0.579348
c63d63306e3b07e73f49cdd2412c78e0657a2e08
851
py
Python
sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_deployment/batch/batch_deployment_settings.py
dubiety/azure-sdk-for-python
62ffa839f5d753594cf0fe63668f454a9d87a346
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_deployment/batch/batch_deployment_settings.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_deployment/batch/batch_deployment_settings.py
ellhe-blaster/azure-sdk-for-python
82193ba5e81cc5e5e5a5239bba58abe62e86f469
[ "MIT" ]
null
null
null
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import logging from typing import Any from azure.ai.ml._schema import PatchedSchemaMeta from azure.ai.ml.entities._deployment.deployment_s...
35.458333
100
0.652174
4719f0b27f3a3161c35d14dd03e0face72daa1fd
4,893
py
Python
tests/test_multi_body_errors.py
dmig/fastapi
497e5e6257a282162a435b4d37f82d567fe73195
[ "MIT" ]
5
2020-06-17T10:02:51.000Z
2021-03-19T12:55:50.000Z
tests/test_multi_body_errors.py
dmig/fastapi
497e5e6257a282162a435b4d37f82d567fe73195
[ "MIT" ]
22
2020-06-27T19:24:59.000Z
2020-10-18T19:35:50.000Z
tests/test_multi_body_errors.py
dmig/fastapi
497e5e6257a282162a435b4d37f82d567fe73195
[ "MIT" ]
1
2021-01-30T14:29:30.000Z
2021-01-30T14:29:30.000Z
from decimal import Decimal from typing import List from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel, condecimal app = FastAPI() class Item(BaseModel): name: str age: condecimal(gt=Decimal(0.0)) @app.post("/items/") def save_item_no_body(item: List[Item]...
30.203704
87
0.405273
4a5c8bcf90589cace8b9b2b2283e688316b1a4ac
6,433
py
Python
frappe/website/doctype/website_settings/website_settings.py
kevingdc/frappe
985bf3042e8277ef8ca93065b89f12a8c097f1a8
[ "MIT" ]
null
null
null
frappe/website/doctype/website_settings/website_settings.py
kevingdc/frappe
985bf3042e8277ef8ca93065b89f12a8c097f1a8
[ "MIT" ]
null
null
null
frappe/website/doctype/website_settings/website_settings.py
kevingdc/frappe
985bf3042e8277ef8ca93065b89f12a8c097f1a8
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import requests import frappe from frappe import _ from frappe.utils import get_request_site_address, encode from frappe.model.document import Document from six.moves.urllib.parse...
34.40107
128
0.736826
b70da614c13d7461383d9057bad8e4caa9c06033
8,557
py
Python
04_train_vae.py
anofox/aws_summit
5c483cab69c10e77fa2524c799cd7114030d0f58
[ "Apache-2.0" ]
null
null
null
04_train_vae.py
anofox/aws_summit
5c483cab69c10e77fa2524c799cd7114030d0f58
[ "Apache-2.0" ]
null
null
null
04_train_vae.py
anofox/aws_summit
5c483cab69c10e77fa2524c799cd7114030d0f58
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from keras.layers import Dense, Input from keras.layers import Conv2D, Flatten, Lambda from keras.layers import Reshape, Conv2DTranspose from keras.models import Model from keras.datasets import mnist from kera...
33.425781
136
0.646839
757c50cd4aca42b352998d153813e11e734ccde4
7,280
py
Python
digits/data/select.py
eegdigits/digits
09d680ac0ecc16b79a9b096aa28baf8a378108f4
[ "MIT" ]
null
null
null
digits/data/select.py
eegdigits/digits
09d680ac0ecc16b79a9b096aa28baf8a378108f4
[ "MIT" ]
null
null
null
digits/data/select.py
eegdigits/digits
09d680ac0ecc16b79a9b096aa28baf8a378108f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Methods to (sub)-select an imported dataset given some criteria. """ import numpy as np # Selectors based on ranges # # workaround for this slicing issue # https://bpaste.net/show/bb7601ca91a8 # as suggested by papna in #pydata is to use # swaplevel().sort().loc().swaplevel().sort() def...
34.018692
134
0.674313
54763b49f67a96c10453e9e05a8bf7514f691d0f
9,512
py
Python
nova/conductor/tasks/live_migrate.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
null
null
null
nova/conductor/tasks/live_migrate.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
2
2015-02-03T06:25:24.000Z
2015-02-04T10:10:36.000Z
nova/conductor/tasks/live_migrate.py
bopopescu/nova-8
768d7cc0a632e1a880f00c5840c1ec8051e161be
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
44.24186
79
0.65307
29734fbcb9dea8da4aba3662f7fb8d3f2c767e40
6,981
py
Python
evaluation/dataset_indexing_test.py
LaudateCorpus1/dm_c19_modelling
25c0a3c47df4f93991acaf4b5e4d3ab0a6d9b5ab
[ "Apache-2.0" ]
3
2021-07-21T10:05:55.000Z
2021-09-06T09:28:56.000Z
evaluation/dataset_indexing_test.py
deepmind/c19_modelling
25c0a3c47df4f93991acaf4b5e4d3ab0a6d9b5ab
[ "Apache-2.0" ]
1
2021-10-05T16:20:25.000Z
2021-10-05T16:20:25.000Z
evaluation/dataset_indexing_test.py
LaudateCorpus1/dm_c19_modelling
25c0a3c47df4f93991acaf4b5e4d3ab0a6d9b5ab
[ "Apache-2.0" ]
2
2021-08-04T16:10:28.000Z
2021-10-05T16:15:25.000Z
# pylint: disable=g-bad-file-header # Copyright 2020 DeepMind Technologies Limited. 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/...
43.092593
80
0.694027
4d30d652c7f5347f2af33b9f4def9743773ae7d3
482
py
Python
tests/test_remove_item_from_cart.py
joshmgrant/Python-Pytest-Nerodia
55e8d92cd21e3093e6eb434e4ab7b126c974c6f0
[ "MIT" ]
1
2019-03-19T08:29:02.000Z
2019-03-19T08:29:02.000Z
tests/test_remove_item_from_cart.py
joshmgrant/Python-Pytest-Nerodia
55e8d92cd21e3093e6eb434e4ab7b126c974c6f0
[ "MIT" ]
null
null
null
tests/test_remove_item_from_cart.py
joshmgrant/Python-Pytest-Nerodia
55e8d92cd21e3093e6eb434e4ab7b126c974c6f0
[ "MIT" ]
null
null
null
import pytest def test_removes_one(browser): browser.goto('www.saucedemo.com/inventory.html') browser.button(class_name='add-to-cart-button').click() browser.button(class_name='add-to-cart-button').click() browser.button(class_name='remove-from-cart-button').click() assert browser.span(class_nam...
32.133333
69
0.728216
7c04e27953242f96e04e58488ad5962abe57d0ce
2,830
py
Python
modules/NotificationFimJornada.py
camargo2019/conecta
3bf67a7aa5280d1d263e5ee40cbc48f0045fcb99
[ "MIT" ]
1
2021-08-01T05:40:31.000Z
2021-08-01T05:40:31.000Z
modules/NotificationFimJornada.py
camargo2019/conecta
3bf67a7aa5280d1d263e5ee40cbc48f0045fcb99
[ "MIT" ]
null
null
null
modules/NotificationFimJornada.py
camargo2019/conecta
3bf67a7aa5280d1d263e5ee40cbc48f0045fcb99
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os import sys import json import time import glob from tkinter import * from PIL import ImageTk, Image from threading import Thread from datetime import datetime from .database.datalocal import * from .Notifications import * import pygetwindow as gw import subprocess class Noti...
44.21875
137
0.524028
755b51e57d6319e942b85397a2ac058c833ea313
1,056
py
Python
setup.py
mszaf/forge
b401fb30dde6817f972009d6f3b5748bc3e5d374
[ "MIT" ]
null
null
null
setup.py
mszaf/forge
b401fb30dde6817f972009d6f3b5748bc3e5d374
[ "MIT" ]
null
null
null
setup.py
mszaf/forge
b401fb30dde6817f972009d6f3b5748bc3e5d374
[ "MIT" ]
null
null
null
""" Setup """ from setuptools import setup setup(name='tele-forge', version='1.0.0', description='convenient cli with extendable collection of useful plugins', url='https://github.com/TeleTrackingTechnologies/forge', author='Brandon Horn, Kenneth Poling, Paul Verardi, Cameron Tucker, Clint Wadle...
31.058824
88
0.582386
69bdeb94284d8f639b5d693c06b534e1cfd41ea4
1,198
py
Python
tests/unittests/models/layers/test_window_attention3d.py
krishnakatyal/towhee
c5e043aa1509cf46644ca6b53f691d6ed2647212
[ "Apache-2.0" ]
null
null
null
tests/unittests/models/layers/test_window_attention3d.py
krishnakatyal/towhee
c5e043aa1509cf46644ca6b53f691d6ed2647212
[ "Apache-2.0" ]
1
2022-01-19T06:21:07.000Z
2022-01-19T06:21:07.000Z
tests/unittests/models/layers/test_window_attention3d.py
jennyli-z/towhee
55c55fd961229575b75eae269b55090c839f8dcd
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Zilliz. 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 applicable law or agree...
34.228571
86
0.696995
a9ba19405d38b9fe51da574754449c5a450da256
277
py
Python
fondInformatica/python/Esercitazione2_max3n (lupia).py
peppelongo96/materiale-LT-ing-informatica-unical
dead349a0c50d04c72ecd8f673c5a60cd413c680
[ "MIT" ]
null
null
null
fondInformatica/python/Esercitazione2_max3n (lupia).py
peppelongo96/materiale-LT-ing-informatica-unical
dead349a0c50d04c72ecd8f673c5a60cd413c680
[ "MIT" ]
null
null
null
fondInformatica/python/Esercitazione2_max3n (lupia).py
peppelongo96/materiale-LT-ing-informatica-unical
dead349a0c50d04c72ecd8f673c5a60cd413c680
[ "MIT" ]
null
null
null
x = int(input("Inserisci il primo numero:> ")) y = int(input("Inserisci il secondo numero:> ")) z = int(input("Inserisci il terzo numero:> ")) if x >= y and x >= z: massimo = x elif y >= x and y >= z: massimo = y else: massimo = z print('Il massimo è', massimo)
19.785714
48
0.595668
e9bf0d222a3ce2c8e07fb755804999c0a91589a0
5,388
py
Python
algolab_class_API/views/api/server_admin.py
KMU-algolab/algolab_class
fdf22cd10d5af71eae63e259c4f88f2b55b44ec7
[ "MIT" ]
1
2019-01-10T05:46:09.000Z
2019-01-10T05:46:09.000Z
algolab_class_API/views/api/server_admin.py
KMU-algolab/algolab_class
fdf22cd10d5af71eae63e259c4f88f2b55b44ec7
[ "MIT" ]
7
2018-12-25T15:59:49.000Z
2019-01-10T05:45:25.000Z
algolab_class_API/views/api/server_admin.py
KMU-algolab/algolab_class
fdf22cd10d5af71eae63e259c4f88f2b55b44ec7
[ "MIT" ]
null
null
null
from . import mixins from . import jwt from django.contrib.auth.models import User from rest_framework import viewsets, status, mixins as mx from rest_framework.response import Response from rest_framework.decorators import action from algolab_class_API import models, serializers class ServerAdminProblemViewSet(mi...
40.511278
109
0.623794
003b298da3f8a757acb9551c63bfe54fa983b146
913
py
Python
nomadgram/users/migrations/0002_auto_20180802_1146.py
jnano/nomadgram
e12dd27fc6a8d6f77e4e56308a42ad08fef98a7d
[ "MIT" ]
null
null
null
nomadgram/users/migrations/0002_auto_20180802_1146.py
jnano/nomadgram
e12dd27fc6a8d6f77e4e56308a42ad08fef98a7d
[ "MIT" ]
5
2020-06-05T18:47:49.000Z
2021-09-08T00:06:20.000Z
nomadgram/users/migrations/0002_auto_20180802_1146.py
jnano/nomadgram
e12dd27fc6a8d6f77e4e56308a42ad08fef98a7d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-08-02 02:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='bio', field=mode...
26.852941
147
0.538883
19adb2e743629f550e3fd22dbf38a4610a2408a6
2,607
py
Python
vidgear/tests/benchmark_tests/test_benchmark_playback.py
winnerineast/vidgear
2d2cbd48f55bf884dc38107106f0a17e1170810b
[ "MIT" ]
1
2020-12-01T15:55:29.000Z
2020-12-01T15:55:29.000Z
vidgear/tests/benchmark_tests/test_benchmark_playback.py
Brainiarc7/vidgear
d0989d95d22ee07a73819d332c5fac82cd5c4cf7
[ "MIT" ]
null
null
null
vidgear/tests/benchmark_tests/test_benchmark_playback.py
Brainiarc7/vidgear
d0989d95d22ee07a73819d332c5fac82cd5c4cf7
[ "MIT" ]
1
2020-12-01T15:55:33.000Z
2020-12-01T15:55:33.000Z
""" ============================================ vidgear library code is placed under the MIT license Copyright (c) 2019 Abhishek Thakur 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 with...
36.71831
162
0.71308
facc5bd379e838db34fcc7fc11a845d4c668c131
2,831
py
Python
configs/lane_detection/bezierlanenet/resnet18_culane_aug1b.py
voldemortX/DeeplabV3_PyTorch1.3_Codebase
d22d23e74800fafb58eeb61d6649008745c1a287
[ "BSD-3-Clause" ]
1
2020-09-17T06:21:39.000Z
2020-09-17T06:21:39.000Z
configs/lane_detection/bezierlanenet/resnet18_culane_aug1b.py
voldemortX/pytorch-segmentation
9c62c0a721d11c8ea6bf312ecf1c7b238a54dcda
[ "BSD-3-Clause" ]
null
null
null
configs/lane_detection/bezierlanenet/resnet18_culane_aug1b.py
voldemortX/pytorch-segmentation
9c62c0a721d11c8ea6bf312ecf1c7b238a54dcda
[ "BSD-3-Clause" ]
null
null
null
from importmagician import import_from with import_from('./'): # Data pipeline from configs.lane_detection.common.datasets.culane_bezier import dataset from configs.lane_detection.common.datasets.train_level1b_288 import train_augmentation from configs.lane_detection.common.datasets.test_288 import test...
27.754902
103
0.680678
b1885a9e07f92e0a1107eddae33c2428acf3f080
718
py
Python
Alphabets/Capital Alphabets/W.py
vijayakumarr345/pattern
d857812cea625098a18c9d45ca01b22a379d5fb0
[ "MIT" ]
null
null
null
Alphabets/Capital Alphabets/W.py
vijayakumarr345/pattern
d857812cea625098a18c9d45ca01b22a379d5fb0
[ "MIT" ]
1
2021-03-18T12:33:06.000Z
2021-03-18T12:33:48.000Z
Alphabets/Capital Alphabets/W.py
vijayakumarr345/pattern
d857812cea625098a18c9d45ca01b22a379d5fb0
[ "MIT" ]
null
null
null
# Capital Alphabet W using Function def for_W(): """ *'s printed in the Shape of Capital W """ for row in range(9): for col in range(9): if col%8 ==0 or row+col ==8 and row>3 or row -col ==0 and row >3: print('*',end=' ') else: print(' ',en...
25.642857
78
0.408078
315189e6cdd539797c1a4ce8c7c1d1e9498e0026
52,111
py
Python
cinder/volume/drivers/zfssa/zfssaiscsi.py
bswartz/cinder
6cfecade9e2ee86bbb7d95c3c401c9e4c70f6a96
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/zfssa/zfssaiscsi.py
bswartz/cinder
6cfecade9e2ee86bbb7d95c3c401c9e4c70f6a96
[ "Apache-2.0" ]
null
null
null
cinder/volume/drivers/zfssa/zfssaiscsi.py
bswartz/cinder
6cfecade9e2ee86bbb7d95c3c401c9e4c70f6a96
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. 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 ...
43.57107
79
0.537622
2d97ce8bc497b1956a723542bb0bba4c78c3f233
8,436
py
Python
robin_stocks/authentication.py
jacov/robin_stocks
c7dba7f9680be7d518577fcfce2a3edecf5a13a1
[ "MIT" ]
null
null
null
robin_stocks/authentication.py
jacov/robin_stocks
c7dba7f9680be7d518577fcfce2a3edecf5a13a1
[ "MIT" ]
null
null
null
robin_stocks/authentication.py
jacov/robin_stocks
c7dba7f9680be7d518577fcfce2a3edecf5a13a1
[ "MIT" ]
null
null
null
"""Contains all functions for the purpose of logging in and out to Robinhood.""" import getpass import os import pickle import random import robin_stocks.helper as helper import robin_stocks.urls as urls def generate_device_token(): """This function will generate a token used when loggin on. :returns: A str...
42.606061
138
0.616169
ddf8cd8b3e0b8c568941bf677991a238a86c7931
164,456
py
Python
redis/client.py
sam974/redis-py
8ed9e4785714a6e9294d823cd60c3070f2c491e6
[ "MIT" ]
null
null
null
redis/client.py
sam974/redis-py
8ed9e4785714a6e9294d823cd60c3070f2c491e6
[ "MIT" ]
null
null
null
redis/client.py
sam974/redis-py
8ed9e4785714a6e9294d823cd60c3070f2c491e6
[ "MIT" ]
null
null
null
from itertools import chain import datetime import warnings import time import threading import time as mod_time import re import hashlib from redis.connection import (ConnectionPool, UnixDomainSocketConnection, SSLConnection) from redis.lock import Lock from redis.exceptions import ( ...
38.094973
79
0.59875
179e6f66437758d13244042bb59f2c333c4782b4
11,260
py
Python
sdk/python/pulumi_aws/sns/platform_application.py
johnktims/pulumi-aws
c838bc79043f5376c66fc66275a1e012edd3ab7d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/sns/platform_application.py
johnktims/pulumi-aws
c838bc79043f5376c66fc66275a1e012edd3ab7d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/sns/platform_application.py
johnktims/pulumi-aws
c838bc79043f5376c66fc66275a1e012edd3ab7d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Platfo...
68.242424
431
0.744938
e55661080b1c3788446a69b9fc3348286a98b31c
18,553
py
Python
IPython/zmq/zmqshell.py
btel/ipython
6ecc466f4571913479172d974a6dd8bea5658941
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/zmq/zmqshell.py
btel/ipython
6ecc466f4571913479172d974a6dd8bea5658941
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/zmq/zmqshell.py
btel/ipython
6ecc466f4571913479172d974a6dd8bea5658941
[ "BSD-3-Clause-Clear" ]
null
null
null
"""A ZMQ-based subclass of InteractiveShell. This code is meant to ease the refactoring of the base InteractiveShell into something with a cleaner architecture for 2-process use, without actually breaking InteractiveShell itself. So we're doing something a bit ugly, where we subclass and override what we want to fix....
40.508734
89
0.635746
eaff817fd988d4e85a8f63012f5eea85fb0cc219
5,191
py
Python
Tests/Methods/Slot/test_SlotW61_meth.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Slot/test_SlotW61_meth.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Slot/test_SlotW61_meth.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from pyleecan.Classes.LamSlot import LamSlot from pyleecan.Classes.SlotW61 import SlotW61 from pyleecan.Classes.Slot import Slot from pyleecan.Methods.Slot.SlotW61 import ( S61_InnerCheckError, S61_WindError, S61_WindWError, ) # For AlmostEqual DELTA = 1e-5 slotW61...
29.162921
79
0.60393
4124a38902c9d56258c5c3a0cbeed4d0a6d8735c
10,314
py
Python
2_Computer_Vision/src/keras_yolo3/yolo.py
AntonMu/eqanalytics
6b4494861c2e4c04ad6a1e8ed1d9e8432c631c13
[ "MIT" ]
7
2019-07-15T05:19:59.000Z
2021-07-13T12:33:57.000Z
2_Computer_Vision/src/keras_yolo3/yolo.py
AntonMu/EQanalytics
6b4494861c2e4c04ad6a1e8ed1d9e8432c631c13
[ "MIT" ]
11
2020-01-28T22:14:45.000Z
2022-03-11T23:52:35.000Z
2_Computer_Vision/src/keras_yolo3/yolo.py
AntonMu/eqanalytics
6b4494861c2e4c04ad6a1e8ed1d9e8432c631c13
[ "MIT" ]
1
2020-04-04T00:06:55.000Z
2020-04-04T00:06:55.000Z
# -*- coding: utf-8 -*- """ Class definition of YOLO_v3 style detection model on image and video """ import colorsys import os from timeit import default_timer as timer import numpy as np from keras import backend as K from keras.models import load_model from keras.layers import Input from PIL import Image, ImageFont...
35.443299
102
0.558561
b1dd51d660f095e0416bc23391a093a966472c15
3,583
py
Python
django_grpc_framework/proto_serializers.py
amrhgh/django-grpc-framework
158e1d9001bd426410ca962e2f72b14ee3e2f935
[ "Apache-2.0" ]
269
2020-05-06T03:22:43.000Z
2022-03-26T21:05:24.000Z
django_grpc_framework/proto_serializers.py
amrhgh/django-grpc-framework
158e1d9001bd426410ca962e2f72b14ee3e2f935
[ "Apache-2.0" ]
19
2020-06-03T03:46:39.000Z
2022-03-30T20:24:55.000Z
django_grpc_framework/proto_serializers.py
amrhgh/django-grpc-framework
158e1d9001bd426410ca962e2f72b14ee3e2f935
[ "Apache-2.0" ]
39
2020-05-27T07:23:12.000Z
2022-03-27T13:10:24.000Z
from rest_framework.serializers import ( BaseSerializer, Serializer, ListSerializer, ModelSerializer, LIST_SERIALIZER_KWARGS, ) from rest_framework.settings import api_settings from rest_framework.exceptions import ValidationError from django_grpc_framework.protobuf.json_format import ( message_to_dict, par...
35.83
91
0.643874
7f03c0dfeeb8ed15ff1c8f34e6c8087cc57c9470
2,508
py
Python
tests/test_constraints.py
Andy-math/optimizer
a65f5ee54a0ae4e02aefb008d47c2d551d071ef0
[ "Apache-2.0" ]
1
2021-06-29T10:05:05.000Z
2021-06-29T10:05:05.000Z
tests/test_constraints.py
Andy-math/optimizer
a65f5ee54a0ae4e02aefb008d47c2d551d071ef0
[ "Apache-2.0" ]
null
null
null
tests/test_constraints.py
Andy-math/optimizer
a65f5ee54a0ae4e02aefb008d47c2d551d071ef0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import numpy from optimizer import trust_region from overloads.typedefs import ndarray """ f = x^2 + (y-2)^2 = x^2 + y^2 - 4y + 4 -x-1 <= y <= x+1 x-1 <= y <= -x+1 -x-y <= 1 -x+y <= 1 x-y <= 1 y-x <= 1 """ class Test_constraints: def test1(self) -> None: def func(_x: ndarray...
26.125
71
0.469697
85d683714d531ae692f4b2fa142f7782b706f04d
1,219
py
Python
6002x/findCombination.py
CarlosEduardoAS/MITx
532695d69c77581b6df80c145283b349b75e4973
[ "MIT" ]
null
null
null
6002x/findCombination.py
CarlosEduardoAS/MITx
532695d69c77581b6df80c145283b349b75e4973
[ "MIT" ]
null
null
null
6002x/findCombination.py
CarlosEduardoAS/MITx
532695d69c77581b6df80c145283b349b75e4973
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue May 25 16:10:53 2021 @author: caear """ import numpy import itertools def find_combination(choices, total): """ choices: a non-empty list of ints total: a positive int Returns result, a numpy.array of length len(choices) such that * each eleme...
29.02381
77
0.61854
a61712d357d7779fb92b00a8ec32fa05acd9f284
2,621
py
Python
DataLoader.py
Times125/break_captcha
9ab16d1d7737630786039d07caec308bdb8a26d9
[ "MIT" ]
13
2019-08-14T09:36:03.000Z
2021-04-05T06:35:05.000Z
DataLoader.py
Times125/break_captcha
9ab16d1d7737630786039d07caec308bdb8a26d9
[ "MIT" ]
6
2019-09-26T09:45:12.000Z
2022-03-11T23:56:08.000Z
DataLoader.py
Times125/break_captcha
9ab16d1d7737630786039d07caec308bdb8a26d9
[ "MIT" ]
6
2019-08-16T14:46:04.000Z
2021-06-05T01:53:20.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @Author: _defined @Time: 2019/8/9 16:55 @Description: """ import os import tensorflow as tf from settings import (config, DataMode) class DataLoader(object): """ data loader for train, test and validation """ def __init__(self, mode): """ ...
28.802198
117
0.602823
bf2b03d05e0bc12787c098e6fbf6ef08a5c89301
1,685
py
Python
Scripts/enhancer.py
shashank7991/eBuy
2e65572967b33e7205b38c048b7be2d9943173b6
[ "MIT" ]
null
null
null
Scripts/enhancer.py
shashank7991/eBuy
2e65572967b33e7205b38c048b7be2d9943173b6
[ "MIT" ]
null
null
null
Scripts/enhancer.py
shashank7991/eBuy
2e65572967b33e7205b38c048b7be2d9943173b6
[ "MIT" ]
null
null
null
#!c:\users\krutarth\desktop\ecommerce-2\scripts\python.exe # # The Python Imaging Library # $Id$ # # this demo script creates four windows containing an image and a slider. # drag the slider to modify the image. # try: from tkinter import Tk, Toplevel, Frame, Label, Scale, HORIZONTAL except ImportError:...
26.328125
81
0.623739
6adf9eb911309b7eb19135e60f97456a99d11db1
2,404
py
Python
sdk/python/pulumi_aws/wafregional/geo_match_set.py
Charliekenney23/pulumi-aws
55bd0390160d27350b297834026fee52114a2d41
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/wafregional/geo_match_set.py
Charliekenney23/pulumi-aws
55bd0390160d27350b297834026fee52114a2d41
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/wafregional/geo_match_set.py
Charliekenney23/pulumi-aws
55bd0390160d27350b297834026fee52114a2d41
[ "ECL-2.0", "Apache-2.0" ]
1
2021-03-08T15:05:29.000Z
2021-03-08T15:05:29.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from .. import utilities, tables class GeoMatchSet(pulumi.CustomResour...
39.409836
152
0.68178
c319b98e0d2df60d12ced9900fd1f3c30c922a6b
918
py
Python
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/usql_table_statistics_paged.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
2
2020-07-29T14:22:17.000Z
2020-11-06T18:47:40.000Z
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/usql_table_statistics_paged.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2016-08-01T07:37:04.000Z
2016-08-01T07:37:04.000Z
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/usql_table_statistics_paged.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2018-11-09T06:17:41.000Z
2018-11-09T06:17:41.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
32.785714
78
0.578431
0f5687e4cca4b17903780e38735c112312594054
1,474
py
Python
praw/util/cache.py
nickatnight/praw
6ba5c92e5d5210338c0a2a2755a5e5e226a002fa
[ "BSD-2-Clause" ]
1
2020-11-09T00:09:23.000Z
2020-11-09T00:09:23.000Z
praw/util/cache.py
nickatnight/praw
6ba5c92e5d5210338c0a2a2755a5e5e226a002fa
[ "BSD-2-Clause" ]
1
2021-03-13T21:26:49.000Z
2021-03-13T21:26:49.000Z
praw/util/cache.py
nickatnight/praw
6ba5c92e5d5210338c0a2a2755a5e5e226a002fa
[ "BSD-2-Clause" ]
null
null
null
"""Caching utilities.""" from typing import Any, Callable, Optional class cachedproperty: """A decorator for caching a property's result. Similar to `property`, but the wrapped method's result is cached on the instance. This is achieved by setting an entry in the object's instance dictionary with the...
32.755556
80
0.651289
785b0c49026272e86d45ad297f32b139e88d4124
3,207
py
Python
searx/engines/json_engine.py
xu1991/open
5398dab4ba669b3ca87d9fe26eb24431c45f153e
[ "CC0-1.0" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
master/searx-master/searx/engines/json_engine.py
AlexRogalskiy/DevArtifacts
931aabb8cbf27656151c54856eb2ea7d1153203a
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
searx/engines/json_engine.py
xu1991/open
5398dab4ba669b3ca87d9fe26eb24431c45f153e
[ "CC0-1.0" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
from collections import Iterable from json import loads from sys import version_info from searx.url_utils import urlencode from searx.utils import to_string if version_info[0] == 3: unicode = str search_url = None url_query = None content_query = None title_query = None paging = False suggestion_query = '' result...
23.408759
74
0.55067
306aea119205928453f1400fecc1fd4f813d3152
6,600
py
Python
test/completion/stdlib.py
haoqixu/jedi
ea93dbc08eac0a1b8c39e15c554c0b0c4ce65591
[ "MIT" ]
10
2020-07-21T21:59:54.000Z
2021-07-19T11:01:47.000Z
test/completion/stdlib.py
haoqixu/jedi
ea93dbc08eac0a1b8c39e15c554c0b0c4ce65591
[ "MIT" ]
null
null
null
test/completion/stdlib.py
haoqixu/jedi
ea93dbc08eac0a1b8c39e15c554c0b0c4ce65591
[ "MIT" ]
1
2021-01-30T18:17:01.000Z
2021-01-30T18:17:01.000Z
""" std library stuff """ # ----------------- # builtins # ----------------- arr = [''] #? str() sorted(arr)[0] #? str() next(reversed(arr)) next(reversed(arr)) # should not fail if there's no return value. def yielder(): yield None #? None next(reversed(yielder())) # empty reversed should not raise an error ...
14.316703
79
0.506515
3ef23880f0b55cc7ccb0bf49524d8582edfba662
6,538
py
Python
python/ray/serve/tests/test_cluster.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
1
2021-09-20T15:45:59.000Z
2021-09-20T15:45:59.000Z
python/ray/serve/tests/test_cluster.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
53
2021-10-06T20:08:04.000Z
2022-03-21T20:17:25.000Z
python/ray/serve/tests/test_cluster.py
yuanchi2807/ray
cf512254bb4bcd71ff1818dff5c868ab10c5f620
[ "Apache-2.0" ]
1
2022-03-27T09:01:59.000Z
2022-03-27T09:01:59.000Z
from collections import defaultdict import os import sys import time import pytest import requests import ray from ray import serve from ray.cluster_utils import Cluster from ray.serve.deployment_state import ReplicaStartupStatus, ReplicaState from ray._private.test_utils import SignalActor, wait_for_condition @py...
31.737864
86
0.689355
af0ca5610daabc4196a0cf4ab3b5e5d75f915c26
409
py
Python
examples/lecture09b.py
SeattleCentral/ITC110
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
12
2017-01-05T03:43:10.000Z
2019-01-18T03:39:09.000Z
examples/lecture09b.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
null
null
null
examples/lecture09b.py
ogarmela/ITC110-1
b444097b10225396f3f4465c5cfc37ba442df951
[ "MIT" ]
2
2019-02-28T05:13:40.000Z
2019-11-09T05:06:35.000Z
print("Enter a date formated as: YYYY-MM-DD") # Print it out like Jan 23, 2018 date_input = input("Enter the date to format: ") year = date_input[0:4] month = int(date_input[5:7]) day = date_input[-2:] months_list = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ] pri...
22.722222
59
0.596577
4bb0108b5ff27caa13065353fdba1eb3d185f81a
26,840
py
Python
backend/tournesol/tests/test_api_comparison.py
iamnkc/tournesol
4a09985f494577917c357783a37dfae02c57fd82
[ "CC0-1.0" ]
null
null
null
backend/tournesol/tests/test_api_comparison.py
iamnkc/tournesol
4a09985f494577917c357783a37dfae02c57fd82
[ "CC0-1.0" ]
null
null
null
backend/tournesol/tests/test_api_comparison.py
iamnkc/tournesol
4a09985f494577917c357783a37dfae02c57fd82
[ "CC0-1.0" ]
null
null
null
import datetime from copy import deepcopy from unittest.mock import patch from django.db.models import ObjectDoesNotExist, Q from django.test import TestCase from django.utils import timezone from rest_framework import status from rest_framework.test import APIClient from core.tests.factories.user import UserFactory ...
35.039164
88
0.60149
214e5bbf3df86491971ee073185fa30948af4cc3
15,143
py
Python
scripts/coverage-scores/update-coverage.py
thomaskonrad/osm_austria_building_coverage
3f678837b6800adfdd165f9b8424d1a258ca63de
[ "MIT" ]
2
2015-06-21T19:39:05.000Z
2015-06-22T10:54:17.000Z
scripts/coverage-scores/update-coverage.py
thomaskonrad/osm-austria-building-coverage
3f678837b6800adfdd165f9b8424d1a258ca63de
[ "MIT" ]
2
2018-02-17T16:51:06.000Z
2018-02-23T07:11:13.000Z
scripts/coverage-scores/update-coverage.py
thomaskonrad/osm_austria_building_coverage
3f678837b6800adfdd165f9b8424d1a258ca63de
[ "MIT" ]
3
2019-10-16T08:46:13.000Z
2021-04-14T23:49:07.000Z
#!/usr/bin/env python3 import psycopg2 import sys from PIL import Image import os import struct import argparse import math def hex2rgb(hex): # Remove the hash in the beginning hex = hex[1:] return struct.unpack('BBB', bytes.fromhex(hex)) def calculate_coverage_full_tiles(basemap_tiles_path, osm_tiles_...
43.265714
160
0.596183
8704af97b2bbac46a8b9a5ae5798d9b182e8c122
7,119
py
Python
tests/test_numbers.py
NickRuiz/power-asr
bbb42f1c20a2a78303c427b0f0361fbd7499e428
[ "MIT" ]
16
2019-09-06T08:25:45.000Z
2022-01-06T04:44:14.000Z
tests/test_numbers.py
NickRuiz/power-asr
bbb42f1c20a2a78303c427b0f0361fbd7499e428
[ "MIT" ]
4
2017-08-18T03:44:48.000Z
2019-05-03T20:51:10.000Z
tests/test_numbers.py
NickRuiz/power-asr
bbb42f1c20a2a78303c427b0f0361fbd7499e428
[ "MIT" ]
4
2019-04-26T02:27:38.000Z
2022-02-26T04:44:44.000Z
import unittest import traceback from normalize import TextToNumEng, NumToTextEng class TextToNumEng_Test(unittest.TestCase): def test_not_number(self): try: actual = TextToNumEng.convert('hi there') self.assertIsNone(actual) except Exception as e: self.asse...
33.580189
95
0.6168
cbd87ba6a508cae12b4b9f05c699b80d0fda024c
3,366
py
Python
xojbackend/app/app/settings.py
mazharkafi004/XOJ
834091418a7c4d008e44c3ff49df5955f38d9378
[ "MIT" ]
null
null
null
xojbackend/app/app/settings.py
mazharkafi004/XOJ
834091418a7c4d008e44c3ff49df5955f38d9378
[ "MIT" ]
null
null
null
xojbackend/app/app/settings.py
mazharkafi004/XOJ
834091418a7c4d008e44c3ff49df5955f38d9378
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib imp...
24.569343
91
0.693405
96082ce1b4312230df028fc6a6117a8519b208d7
10,421
py
Python
lncrawl/core/sources.py
mesmerlord/lncrawler
b309e892969ecd3e7c8e68aef70b6614131fcb3c
[ "Apache-2.0" ]
null
null
null
lncrawl/core/sources.py
mesmerlord/lncrawler
b309e892969ecd3e7c8e68aef70b6614131fcb3c
[ "Apache-2.0" ]
null
null
null
lncrawl/core/sources.py
mesmerlord/lncrawler
b309e892969ecd3e7c8e68aef70b6614131fcb3c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import hashlib import importlib.util import json import logging import os import re import time from concurrent.futures import Future, ThreadPoolExecutor from importlib.abc import FileLoader from pathlib import Path from typing import Dict, List, Type import requests from packaging import versi...
31.966258
143
0.615584
a5ad60b8212974a3dff8fac3753a7bfab4c07bd5
2,827
py
Python
models.py
Anmepod44/first-django-site
9ebe472d9e641bc20a864a1fb3be293dd10bca86
[ "MIT" ]
null
null
null
models.py
Anmepod44/first-django-site
9ebe472d9e641bc20a864a1fb3be293dd10bca86
[ "MIT" ]
null
null
null
models.py
Anmepod44/first-django-site
9ebe472d9e641bc20a864a1fb3be293dd10bca86
[ "MIT" ]
null
null
null
from django.db import models import uuid # Create your models here. class Genre(models.Model): #The Genre Entity name=models.CharField(max_length=200,help_text="Enter a Book Genre i.e Science Fiction ,Horror etc") def __str__(self): return self.name class Book(models.Model): #The Book...
33.258824
171
0.68058
7f421a8c2a528e58f59e06018afbb05572bd479d
2,358
py
Python
Python/Simple_Chat_Bot_TFIDS/ChatBot.py
not4YU5H/hacktoberfest2021-2
ae3d17f8bef81aa79231ee07db46a79841b4b06b
[ "CC0-1.0" ]
81
2021-10-01T13:19:13.000Z
2021-10-06T08:43:35.000Z
Python/Simple_Chat_Bot_TFIDS/ChatBot.py
not4YU5H/hacktoberfest2021-2
ae3d17f8bef81aa79231ee07db46a79841b4b06b
[ "CC0-1.0" ]
67
2021-10-01T13:43:46.000Z
2021-10-06T13:55:49.000Z
Python/Simple_Chat_Bot_TFIDS/ChatBot.py
not4YU5H/hacktoberfest2021-2
ae3d17f8bef81aa79231ee07db46a79841b4b06b
[ "CC0-1.0" ]
394
2021-10-01T11:55:24.000Z
2021-10-06T13:45:57.000Z
import nltk import warnings warnings.filterwarnings("ignore") import numpy as np import random import string f=open('train_txt.txt','r',errors = 'ignore') raw=f.read() raw=raw.lower() sent_tokens = nltk.sent_tokenize(raw)# converts to list of sentences word_tokens = nltk.word_tokenize(raw) lemmer = nltk.stem.WordN...
28.071429
106
0.673876
d6f36c304e0086baf8bdefd8d5f89bc540cc6e96
956
py
Python
airflow/airflow/dags/spark_submit_pi.py
just4jc/pipeline
3c7a4fa59c6363833766d2b55fa55ace6b6af351
[ "Apache-2.0" ]
null
null
null
airflow/airflow/dags/spark_submit_pi.py
just4jc/pipeline
3c7a4fa59c6363833766d2b55fa55ace6b6af351
[ "Apache-2.0" ]
null
null
null
airflow/airflow/dags/spark_submit_pi.py
just4jc/pipeline
3c7a4fa59c6363833766d2b55fa55ace6b6af351
[ "Apache-2.0" ]
2
2018-08-19T15:05:18.000Z
2020-08-13T16:31:48.000Z
""" Code that goes along with the Airflow located at: http://airflow.readthedocs.org/en/latest/tutorial.html """ from airflow import DAG from airflow.operators import BashOperator from datetime import datetime, timedelta default_args = { 'owner': 'airflow', 'depends_on_past': False, 'start_date': datetime...
29.875
166
0.695607
a0a1b6bf4dbafcd353855ffd2270ee3a3c1730e1
7,550
py
Python
sscls/modeling/classification/effnet.py
poodarchu/sscls
8b1bd94b1ef4f0cef3ec6ecbb48be9dab129687b
[ "MIT" ]
2
2020-04-26T13:41:24.000Z
2020-05-06T10:15:06.000Z
sscls/modeling/classification/effnet.py
poodarchu/sscls
8b1bd94b1ef4f0cef3ec6ecbb48be9dab129687b
[ "MIT" ]
null
null
null
sscls/modeling/classification/effnet.py
poodarchu/sscls
8b1bd94b1ef4f0cef3ec6ecbb48be9dab129687b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """EfficientNet models.""" import torch import torch.nn as nn from sscls.core.config import cfg import sscls.utils....
30.816327
76
0.560662
193a20f2547a50fa84e4e7b677aa55a9646a38e5
948
py
Python
src/genie/libs/parser/iosxe/tests/ShowIpBgpTemplatePeerSession/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowIpBgpTemplatePeerSession/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowIpBgpTemplatePeerSession/cli/equal/golden_output2_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "peer_session": { "PEER-SESSION": { "local_policies": "0x5025FD", "inherited_polices": "0x0", "fall_over_bfd": True, "suppress_four_byte_as_capability": True, "description": "desc1!", "disable_connected_check": True,...
32.689655
85
0.509494
d557794c4578290ea7fdb33a4d4ef7d30c28bb27
1,018
py
Python
app.py
emumba-com/aws-bootcloud
ac0c26c57405999f00fb985dc665dad89a985053
[ "MIT" ]
null
null
null
app.py
emumba-com/aws-bootcloud
ac0c26c57405999f00fb985dc665dad89a985053
[ "MIT" ]
1
2020-11-20T10:06:36.000Z
2020-11-20T10:26:57.000Z
app.py
emumba-com/aws-bootcloud
ac0c26c57405999f00fb985dc665dad89a985053
[ "MIT" ]
2
2020-11-15T15:09:15.000Z
2021-03-09T14:02:39.000Z
import os import sys import time from multiprocessing import Process from datetime import datetime from flask import render_template sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '.')) from auth import auth_bp from admin import admin_bp, fetch_instances_cost_from_aws from user_blu...
23.136364
88
0.735756
f0991054082e140d60270cefb3e4385f668e77d4
85
py
Python
error.py
RedstonekPL/Jejabot
cd2685fba422bacd8b27a45c43fd67beb454db62
[ "MIT" ]
null
null
null
error.py
RedstonekPL/Jejabot
cd2685fba422bacd8b27a45c43fd67beb454db62
[ "MIT" ]
null
null
null
error.py
RedstonekPL/Jejabot
cd2685fba422bacd8b27a45c43fd67beb454db62
[ "MIT" ]
null
null
null
class BadUserError(Exception): def __init__(self, message): self.message = message
28.333333
30
0.776471
97265417eee434e031a7b58330e40542a88043f7
2,307
py
Python
bin/fuzzer-libs/mipsel/usr/share/gdb/auto-load/usr/lib/mipsel-linux-gnu/libstdc++.so.6.0.20-gdb.py
CAFA1/shellphish-afl
6a3f015e3e557210ae39a2b69d4a1cca52405d3f
[ "BSD-2-Clause" ]
null
null
null
bin/fuzzer-libs/mipsel/usr/share/gdb/auto-load/usr/lib/mipsel-linux-gnu/libstdc++.so.6.0.20-gdb.py
CAFA1/shellphish-afl
6a3f015e3e557210ae39a2b69d4a1cca52405d3f
[ "BSD-2-Clause" ]
null
null
null
bin/fuzzer-libs/mipsel/usr/share/gdb/auto-load/usr/lib/mipsel-linux-gnu/libstdc++.so.6.0.20-gdb.py
CAFA1/shellphish-afl
6a3f015e3e557210ae39a2b69d4a1cca52405d3f
[ "BSD-2-Clause" ]
null
null
null
# -*- python -*- # Copyright (C) 2009-2014 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later versio...
37.819672
72
0.717815
f2c2bce3a5b20c2350cb340f04c3be9bda970496
5,648
py
Python
examples/image_captioning/train.py
Evanc123/chainer
929af7189b1271683200aa9b0ba6da2dd3dee110
[ "MIT" ]
90
2017-02-23T04:04:47.000Z
2020-04-09T12:06:50.000Z
examples/image_captioning/train.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
7
2017-07-23T13:38:06.000Z
2018-07-10T07:09:03.000Z
examples/image_captioning/train.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
32
2017-02-28T07:40:38.000Z
2021-02-17T11:33:09.000Z
#!/usr/bin/env python import argparse import chainer from chainer.datasets import TransformDataset from chainer import iterators from chainer import optimizers from chainer import training from chainer.training import extensions import datasets from model import ImageCaptionModel def main(): parser = argparse.A...
38.951724
79
0.643059
b25ae506ea862df4816759fbb68846db5db51d8d
1,591
py
Python
data/p3BR/R2/benchmark/startCirq32.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startCirq32.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R2/benchmark/startCirq32.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=3 # total number=7 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for ...
26.516667
77
0.697674
e7aac5073d58d07c8854965f3cb1b284ab82065d
16,583
py
Python
PyInstaller/archive/writers.py
ravindrajeet27/pyinstaller
e2d61ecb4bf1fa4708b6db036929b6971fc641e8
[ "Apache-2.0" ]
12
2020-12-15T15:12:06.000Z
2022-03-18T16:17:42.000Z
PyInstaller/archive/writers.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
10
2020-09-30T12:49:45.000Z
2020-10-04T10:26:33.000Z
PyInstaller/archive/writers.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
10
2020-12-15T15:12:14.000Z
2022-02-09T21:02:17.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2005-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
36.688053
157
0.571549
76d40edf2503a64425aa968e01180bdedd3fbc11
8,367
py
Python
src/zenmake/waf/waflib/extras/javatest.py
pustotnik/raven
adb75d04a1ce719266eb34c29b35151dfaf91a8a
[ "BSD-3-Clause" ]
2
2019-10-14T05:05:34.000Z
2022-03-28T04:55:00.000Z
extras/javatest.py
drobilla/autowaf
b600c928b221a001faeab7bd92786d0b25714bc8
[ "BSD-3-Clause" ]
42
2020-08-25T07:59:32.000Z
2021-11-15T03:12:29.000Z
extras/javatest.py
drobilla/autowaf
b600c928b221a001faeab7bd92786d0b25714bc8
[ "BSD-3-Clause" ]
1
2021-08-13T13:59:51.000Z
2021-08-13T13:59:51.000Z
#! /usr/bin/env python # encoding: utf-8 # Federico Pellegrin, 2019 (fedepell) """ Provides Java Unit test support using :py:class:`waflib.Tools.waf_unit_test.utest` task via the **javatest** feature. This gives the possibility to run unit test and have them integrated into the standard waf unit test environment. It ...
35.155462
122
0.726067
ac9d5d32e9278e80cd11c2bbb29b245995f702cf
5,290
py
Python
homeassistant/components/syncthing/__init__.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/syncthing/__init__.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/syncthing/__init__.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The syncthing integration.""" import asyncio import logging import aiosyncthing from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( CONF_TOKEN, CONF_URL, CONF_VERIFY_SSL, EVENT_HOMEASSISTANT_STOP, Platform, ) from homeassistant.core import HomeAssistant from h...
30.402299
99
0.59414
468692fa4620ef1acd50a0a3f2463eb4927b6c7b
7,081
py
Python
src/backend/api/handlers/tests/decorators_test.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
null
null
null
src/backend/api/handlers/tests/decorators_test.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
null
null
null
src/backend/api/handlers/tests/decorators_test.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
null
null
null
import logging from unittest.mock import patch import pytest from flask import g from google.cloud import ndb from werkzeug.test import Client from backend.common import auth from backend.common.consts.auth_type import AuthType from backend.common.consts.event_type import EventType from backend.common.models.account ...
33.244131
88
0.635221
3c83188e3f4e1015f705b6a97a6c20254c7ed04b
8,528
py
Python
snapraid-runner.py
Maleesh/snapraid-runner
209c2054a7e0d21bb96de119d951c3fb770c9155
[ "MIT" ]
null
null
null
snapraid-runner.py
Maleesh/snapraid-runner
209c2054a7e0d21bb96de119d951c3fb770c9155
[ "MIT" ]
null
null
null
snapraid-runner.py
Maleesh/snapraid-runner
209c2054a7e0d21bb96de119d951c3fb770c9155
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from __future__ import division import argparse import configparser import logging import logging.handlers import os.path import subprocess import sys import threading import time import traceback from collections import Counter, defaultdict from io import StringIO import argparse # Global vari...
28.332226
78
0.678354
b138ebe473b39f30d0c7912dd6f82dbdd6b77718
4,432
py
Python
doc/source/conf.py
mail2nsrajesh/mistral
b19d87141563e00f18cd74c685392d0b9b70e351
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
mail2nsrajesh/mistral
b19d87141563e00f18cd74c685392d0b9b70e351
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
mail2nsrajesh/mistral
b19d87141563e00f18cd74c685392d0b9b70e351
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
32.82963
79
0.696751
31bb90c352c04fcba9f456a4a29c62fbc97c6130
8,291
py
Python
src/pytezos/block/header.py
bitnovo/pytezos
3932fffc812a0fd3ebb615e5f7320b20ce2fc629
[ "MIT" ]
null
null
null
src/pytezos/block/header.py
bitnovo/pytezos
3932fffc812a0fd3ebb615e5f7320b20ce2fc629
[ "MIT" ]
null
null
null
src/pytezos/block/header.py
bitnovo/pytezos
3932fffc812a0fd3ebb615e5f7320b20ce2fc629
[ "MIT" ]
null
null
null
from pprint import pformat from typing import Any, Dict, List, Optional import bson # type: ignore from pytezos.block.forge import bump_fitness, forge_block_header, forge_protocol_data from pytezos.context.impl import ExecutionContext from pytezos.context.mixin import ContextMixin from pytezos.crypto.encoding import...
33.979508
95
0.559161
389c0fce6224fae9bfafdfd0a02c639b204a5620
3,591
py
Python
arpa/models/base.py
svandiekendialpad/python-arpa
2284b815866aeb08f65f786da416e78d7937ee1d
[ "MIT" ]
39
2015-07-04T12:29:56.000Z
2022-02-02T20:49:31.000Z
arpa/models/base.py
svandiekendialpad/python-arpa
2284b815866aeb08f65f786da416e78d7937ee1d
[ "MIT" ]
17
2015-10-31T13:36:25.000Z
2021-04-10T15:16:01.000Z
arpa/models/base.py
svandiekendialpad/python-arpa
2284b815866aeb08f65f786da416e78d7937ee1d
[ "MIT" ]
17
2015-08-25T14:27:34.000Z
2021-10-18T01:13:35.000Z
from abc import ABCMeta, abstractmethod UNK = '<unk>' SOS = '<s>' EOS = '</s>' class ARPAModel(metaclass=ABCMeta): def __init__(self, unk=UNK): self._base = 10 self._unk = unk def __contains__(self, word): self._check_word(word) return word in self.vocabulary() def __len...
27.204545
81
0.52548
ea0a6fbeb3b87f4841ad76b541ea7c793e17fca6
293
py
Python
bot/utils/xbox.py
FLaPProductions/monument-common
110c325e477b1ef319fc149da620eada73cc7868
[ "Apache-2.0" ]
null
null
null
bot/utils/xbox.py
FLaPProductions/monument-common
110c325e477b1ef319fc149da620eada73cc7868
[ "Apache-2.0" ]
null
null
null
bot/utils/xbox.py
FLaPProductions/monument-common
110c325e477b1ef319fc149da620eada73cc7868
[ "Apache-2.0" ]
null
null
null
import aiohttp async def getxuid(username): async with aiohttp.ClientSession() as session: async with session.get(f'https://xbl-api.prouser123.me/xuid/{username}/raw') as r: if r.status == 200: xuid = await r.text() return xuid
32.555556
91
0.583618
bdecc10b3765d79dab3afb04ae237e20f497b3bf
11,896
py
Python
Power-Source/Python38/Lib/site-packages/fairseq_cli/anotherTest.py
dreamsavior/sugoi-translator-server-builder
4bc6142841942d35f8256829b1161aeafae34c62
[ "MIT" ]
null
null
null
Power-Source/Python38/Lib/site-packages/fairseq_cli/anotherTest.py
dreamsavior/sugoi-translator-server-builder
4bc6142841942d35f8256829b1161aeafae34c62
[ "MIT" ]
null
null
null
Power-Source/Python38/Lib/site-packages/fairseq_cli/anotherTest.py
dreamsavior/sugoi-translator-server-builder
4bc6142841942d35f8256829b1161aeafae34c62
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Translate raw text with a trained model. Batches data on-the-fly. """ import ast import fileinput import logging...
35.831325
90
0.584062
f124b7ff58669033dd18308bae6f4bbd0022b547
21,264
py
Python
chives/server/ws_connection.py
HiveProject2021/chives-light-wallet
0c7c36bfc703b26ce3c938027de643dc90e4191f
[ "Apache-2.0" ]
7
2021-12-26T11:05:19.000Z
2022-02-24T10:42:45.000Z
chives/server/ws_connection.py
HiveProject2021/chives-light-wallet
0c7c36bfc703b26ce3c938027de643dc90e4191f
[ "Apache-2.0" ]
8
2021-12-14T17:27:29.000Z
2022-03-29T18:18:22.000Z
chives/server/ws_connection.py
HiveProject2021/chives-light-wallet
0c7c36bfc703b26ce3c938027de643dc90e4191f
[ "Apache-2.0" ]
1
2021-12-09T23:51:12.000Z
2021-12-09T23:51:12.000Z
import asyncio import logging import time import traceback from typing import Any, Callable, Dict, List, Optional from aiohttp import WSCloseCode, WSMessage, WSMsgType from chives.cmds.init_funcs import chives_full_version_str from chives.protocols.protocol_message_types import ProtocolMessageTypes from chives.protoc...
42.023715
119
0.611503