hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
6632ec0fa062339d2cb2ed1e355603c4916820df
99,944
py
Python
tensorflow/python/ops/embedding_variable_ops_test.py
silingtong123/DeepRec
c9d247d2d7d0c3b3bbc1bab0d734bd0013b449b6
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/embedding_variable_ops_test.py
silingtong123/DeepRec
c9d247d2d7d0c3b3bbc1bab0d734bd0013b449b6
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/embedding_variable_ops_test.py
silingtong123/DeepRec
c9d247d2d7d0c3b3bbc1bab0d734bd0013b449b6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017, Alibaba Inc. # All right reserved. # # Author: Chen Ding <cnady.dc@alibaba-inc.com> # Created: 2018/03/26 # Description: # ============================================================================== """Tests for tensorflow.ops.embedding_variable.""" from __future__ import absolute_import from ...
52.054167
198
0.66064
9537ba2e646d135fe4619f25ba07229d2e95a032
9,201
py
Python
examples/morphing/flight_conditions/classifying_optimal.py
leal26/pyXFOIL
88ff224be25cdb51eb821315f6e094f68fb13247
[ "MIT" ]
50
2016-03-15T17:24:55.000Z
2021-12-28T07:32:45.000Z
examples/morphing/classifying_optimal.py
SzymonSzyszko/AeroPy
b061c690e5926fdd834b7c50837c25108e908156
[ "MIT" ]
22
2017-04-20T11:27:28.000Z
2022-02-09T05:57:06.000Z
examples/morphing/classifying_optimal.py
SzymonSzyszko/AeroPy
b061c690e5926fdd834b7c50837c25108e908156
[ "MIT" ]
34
2016-03-04T15:57:37.000Z
2022-02-15T20:06:54.000Z
import numpy as np import matplotlib.pyplot as plt from aeropy.geometry.airfoil import CST from aeropy.morphing.camber_2D import * import pandas from sklearn.cluster import KMeans from sklearn.metrics import pairwise_distances_argmin_min # testing = 'structurally_consistent' inverted = False morphing_direction = 'fo...
38.497908
156
0.572981
0477b7202250a22c6cee7e88ffa6325f793d45db
1,668
py
Python
basic_func.py
WilliamGong/traffic-analyze
687481f1f53d334a534f8cbdcc66bc2420d18f6c
[ "MIT" ]
null
null
null
basic_func.py
WilliamGong/traffic-analyze
687481f1f53d334a534f8cbdcc66bc2420d18f6c
[ "MIT" ]
null
null
null
basic_func.py
WilliamGong/traffic-analyze
687481f1f53d334a534f8cbdcc66bc2420d18f6c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt from functools import singledispatch # solve Chinese font plt.rcParams['font.sans-serif'] = ['KaiTi'] plt.rcParams['font.serif'] = ['KaiTi'] # plt.rcParams['axes.unicode_minus'] = False # 解决保存图像是负号'-'显示为方块的问题,或者转换负号为字符串 # init functions def ini...
23.492958
78
0.578537
5ea521228ef532e6838d2ee0eb76c0fbbfa93d60
451
py
Python
cursoemvideo/desafios/Desafio017.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
cursoemvideo/desafios/Desafio017.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
cursoemvideo/desafios/Desafio017.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
''' Faça um programa que leia o comprimento do cateto oposto e do cateto adjascente de um triângulo retângulo, calcule e mostre o comprimento da hipotenusa. ''' from math import hypot oposto = float(input("Qual é o comprimento do cateto oposto: ")) adjascente = float(input("Qual é o comprimento do cateto oposto: ")) ...
30.066667
106
0.718404
8d0f29b3b7698a98256733d062d4871699add3bb
3,058
py
Python
model/rnn_with_syntax_model.py
gentaiscool/multi-task-cs-lm
7072752a8ebb73b42468b5ea373c4b9c77d03234
[ "MIT" ]
10
2018-08-14T06:44:01.000Z
2021-02-02T01:36:49.000Z
model/rnn_with_syntax_model.py
gentaiscool/multi-task-cs-lm
7072752a8ebb73b42468b5ea373c4b9c77d03234
[ "MIT" ]
null
null
null
model/rnn_with_syntax_model.py
gentaiscool/multi-task-cs-lm
7072752a8ebb73b42468b5ea373c4b9c77d03234
[ "MIT" ]
2
2019-02-20T02:14:38.000Z
2021-09-11T14:11:12.000Z
import torch.nn as nn import torch from torch.autograd import Variable import torch.nn.functional as F from tqdm import tqdm import torch import torch.nn as nn import torch.nn.functional as F class RNNModel(nn.Module): """Container module with an encoder, a recurrent module, and a decoder.""" def __init__(se...
41.324324
115
0.626226
f5cade0728bc1e548e7740bd766cf36392d5c666
1,708
py
Python
server/server.py
Dachshund77/FlaskEwatson
5ca83d201ae3695974480f7bb84ce9261a973ee5
[ "MIT" ]
null
null
null
server/server.py
Dachshund77/FlaskEwatson
5ca83d201ae3695974480f7bb84ce9261a973ee5
[ "MIT" ]
null
null
null
server/server.py
Dachshund77/FlaskEwatson
5ca83d201ae3695974480f7bb84ce9261a973ee5
[ "MIT" ]
2
2020-09-24T22:17:27.000Z
2020-10-09T22:46:28.000Z
# Main entry point for the server application from flask import Flask from flask import url_for from flask import request as req from datetime import datetime from flask_json import FlaskJSON from flask_json import json_response as res from flask_cors import CORS import logging import time import traceback app = Flask...
27.111111
93
0.771663
1663b73ac2d3976c2675ecdcbc6be395c5324fc8
2,623
py
Python
py12306/helpers/OCR.py
mehrdad-shokri/py12306
e4f20350fe5f71d7a9f3f84ed2e15cdc6493bee7
[ "Apache-2.0" ]
2
2019-01-15T07:34:30.000Z
2019-01-15T09:05:40.000Z
py12306/helpers/OCR.py
talisk/py12306
9346546dd9127b0eed43a313aaf0c86691375055
[ "Apache-2.0" ]
null
null
null
py12306/helpers/OCR.py
talisk/py12306
9346546dd9127b0eed43a313aaf0c86691375055
[ "Apache-2.0" ]
1
2021-07-29T06:30:25.000Z
2021-07-29T06:30:25.000Z
import math import random from py12306.config import Config from py12306.helpers.api import * from py12306.helpers.request import Request from py12306.log.common_log import CommonLog from py12306.vender.ruokuai.main import RKClient class OCR: """ 图片识别 """ session = None def __init__(self): ...
31.60241
97
0.592451
6d06d6f2096cab88c3f1a19c13366df33d9e1dd1
109
py
Python
new1.py
kpmishraindia/wowmeter
6e7c681d5fbc0a69e973c241c9fc134f74f64b2d
[ "Apache-2.0" ]
null
null
null
new1.py
kpmishraindia/wowmeter
6e7c681d5fbc0a69e973c241c9fc134f74f64b2d
[ "Apache-2.0" ]
null
null
null
new1.py
kpmishraindia/wowmeter
6e7c681d5fbc0a69e973c241c9fc134f74f64b2d
[ "Apache-2.0" ]
null
null
null
#new file as required print ('ne1') print ('ne2') #C:\Users\kpmis\OneDrive\Documents\GitHub\wowmeter\new1.py
21.8
58
0.743119
8e38f20ec05de79332f8b76fed7213fc98c1f348
8,176
py
Python
pose_3d_model/mvn/utils/multiview.py
sony-si/pytorch-CycleGAN-and-pix2pix
4ebc64daa369037275c09013aec442a4412f736a
[ "MIT" ]
2
2021-05-23T01:36:51.000Z
2021-06-21T13:20:53.000Z
pose_3d_model/mvn/utils/multiview.py
sony-si/pytorch-CycleGAN-and-pix2pix
4ebc64daa369037275c09013aec442a4412f736a
[ "MIT" ]
null
null
null
pose_3d_model/mvn/utils/multiview.py
sony-si/pytorch-CycleGAN-and-pix2pix
4ebc64daa369037275c09013aec442a4412f736a
[ "MIT" ]
2
2021-04-14T06:11:52.000Z
2021-06-21T13:21:03.000Z
""" This file was copied from github.com/karfly/learnable-triangulation-pytorch and modified for this project needs. The license of the file is in: github.com/karfly/learnable-triangulation-pytorch/blob/master/LICENSE """ import numpy as np import torch class Camera: def __init__(self, R, t, K, dist=None, name=...
38.566038
137
0.66206
61740af55412596458e6df29ffec0d7e4e30d90d
2,904
py
Python
app/recipe/tests/test_ingredients_api.py
ricardocastilloisc/curse-advance-django-docker
2b73b2512ec0bb0b60b8d78c030484f71ab51fef
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
ricardocastilloisc/curse-advance-django-docker
2b73b2512ec0bb0b60b8d78c030484f71ab51fef
[ "MIT" ]
null
null
null
app/recipe/tests/test_ingredients_api.py
ricardocastilloisc/curse-advance-django-docker
2b73b2512ec0bb0b60b8d78c030484f71ab51fef
[ "MIT" ]
null
null
null
from os import name from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingredient from recipe.serializers import IngredientSerializer INGREDIENTS_URL = re...
33
78
0.649449
38c1f141037c8addde7e7893c2e34cfa06b2ec8c
5,726
py
Python
autotest/utilities/test_gdallocationinfo.py
rcoup/gdal
31240deb7b71d990a2abbad1bebedd0918989ca0
[ "MIT" ]
null
null
null
autotest/utilities/test_gdallocationinfo.py
rcoup/gdal
31240deb7b71d990a2abbad1bebedd0918989ca0
[ "MIT" ]
null
null
null
autotest/utilities/test_gdallocationinfo.py
rcoup/gdal
31240deb7b71d990a2abbad1bebedd0918989ca0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: gdallocationinfo testing # Author: Even Rouault <even dot rouault @ mines-paris dot org> # ################################################...
31.461538
137
0.605833
cc19d0059597e136e02cc560d9c4b3ee156b27f3
986
py
Python
movieresources/movieresources/urls.py
AlbertWh1te/MovieResources
ce2a5c3fce34e40e41399cd1404bb7c80f5483f3
[ "MIT" ]
null
null
null
movieresources/movieresources/urls.py
AlbertWh1te/MovieResources
ce2a5c3fce34e40e41399cd1404bb7c80f5483f3
[ "MIT" ]
3
2020-02-12T00:07:28.000Z
2021-06-10T19:46:23.000Z
movieresources/movieresources/urls.py
MarkWh1te/MovieResources
ce2a5c3fce34e40e41399cd1404bb7c80f5483f3
[ "MIT" ]
null
null
null
"""movieresources URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') C...
36.518519
79
0.707911
f01d2e725b3246ab88b2cebfa762cc469ef0c6af
14,187
py
Python
legacy/backends/orchestrator/gcp/orchestrator_gcp_backend.py
ParikhKadam/zenml
867e4d4c982a50447bd182b30af37f2141dac5a4
[ "Apache-2.0" ]
1,275
2020-11-19T14:18:25.000Z
2021-08-13T07:31:39.000Z
legacy/backends/orchestrator/gcp/orchestrator_gcp_backend.py
ParikhKadam/zenml
867e4d4c982a50447bd182b30af37f2141dac5a4
[ "Apache-2.0" ]
62
2020-11-30T16:06:14.000Z
2021-08-10T08:34:52.000Z
legacy/backends/orchestrator/gcp/orchestrator_gcp_backend.py
ParikhKadam/zenml
867e4d4c982a50447bd182b30af37f2141dac5a4
[ "Apache-2.0" ]
75
2020-12-22T19:15:08.000Z
2021-08-13T03:07:50.000Z
# Copyright (c) ZenML GmbH 2020. 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...
38.762295
79
0.573835
8b69230585b02cbdbd192264ae906882409c5383
800
py
Python
api/migrations/0001_initial.py
mikolajczykb/groove-rooms
720d59fe91338ffe4096d07cfbad700c957b4415
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
mikolajczykb/groove-rooms
720d59fe91338ffe4096d07cfbad700c957b4415
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
mikolajczykb/groove-rooms
720d59fe91338ffe4096d07cfbad700c957b4415
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2021-02-19 13:00 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Room', fields=[ ('id', models.AutoField(aut...
30.769231
114
0.5875
0da52c2342d23c295bf4f3ec5e1fc9e764afe12c
1,128
py
Python
tests/usecases/test_room_list_use_case.py
dbaeza24/mastering_python
7907459928dc886334f2ef6032b373fd4c1e0cfd
[ "MIT" ]
null
null
null
tests/usecases/test_room_list_use_case.py
dbaeza24/mastering_python
7907459928dc886334f2ef6032b373fd4c1e0cfd
[ "MIT" ]
null
null
null
tests/usecases/test_room_list_use_case.py
dbaeza24/mastering_python
7907459928dc886334f2ef6032b373fd4c1e0cfd
[ "MIT" ]
1
2020-08-09T22:41:22.000Z
2020-08-09T22:41:22.000Z
import pytest import uuid from unittest import mock from rentomatic.domain import room as r from rentomatic.use_cases import room_list_use_case as uc @pytest.fixture def domain_rooms(): room_1 = r.Room( code = uuid.uuid4(), size=215, price=39, longitude=-0.09998975, latitud...
23.020408
57
0.613475
8a89cc27e321dc156b751b6fd3f064b89c18da13
3,554
py
Python
back/investSimulator/users/serializers.py
Gabydelgado/Invest-Simulator
120706d0d48146b06e202df58403e5ea23cf53f3
[ "MIT" ]
null
null
null
back/investSimulator/users/serializers.py
Gabydelgado/Invest-Simulator
120706d0d48146b06e202df58403e5ea23cf53f3
[ "MIT" ]
null
null
null
back/investSimulator/users/serializers.py
Gabydelgado/Invest-Simulator
120706d0d48146b06e202df58403e5ea23cf53f3
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from rest_auth.registration.serializers import RegisterSerializer from rest_framework import serializers from rest_framework.authtoken.models import Token from . import models try: from allauth.account import app_settings as allauth_settings from allauth.utils imp...
36.639175
77
0.689645
b12d39157c641ecc31aad9158baa850c87681ebd
315
py
Python
packages/w3af/w3af/plugins/auth/__init__.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/auth/__init__.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/auth/__init__.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
def get_long_description(): """ :return: The description for the plugin type. """ return """Auth plugins make possible to scan authorization protected web applications. They make login action in the beginning of the scan, logout - in the end and check current session action regularly."""
31.5
90
0.711111
137a84faaff37a19da01085b232641f39bb43ee6
4,277
py
Python
test/tet_word_random_embedding.py
tolecy/Keras-TextClassification
34746c01ed3976deea108937e023bc6cd4037473
[ "MIT" ]
1
2019-08-24T09:50:15.000Z
2019-08-24T09:50:15.000Z
test/tet_word_random_embedding.py
tolecy/Keras-TextClassification
34746c01ed3976deea108937e023bc6cd4037473
[ "MIT" ]
null
null
null
test/tet_word_random_embedding.py
tolecy/Keras-TextClassification
34746c01ed3976deea108937e023bc6cd4037473
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/6/3 10:51 # @author :Mo # @function :train of textcnn-word-random with baidu-qa-2019 in question title # 适配linux import pathlib import sys import os project_path = str(pathlib.Path(os.path.abspath(__file__)).parent.parent.parent) sys.path.append...
47.522222
231
0.607201
9477239a535a35ae430e05de5911a0f915c05e8c
10,034
py
Python
yolo_cam.py
IDayday/YOLOv4_CAM
8df61f1c59c197126f0385c1ec1cf65a29a80cec
[ "Apache-2.0" ]
34
2021-04-16T12:38:13.000Z
2022-03-25T03:00:07.000Z
yolo_cam.py
IDayday/YOLOv4_CAM
8df61f1c59c197126f0385c1ec1cf65a29a80cec
[ "Apache-2.0" ]
2
2021-12-25T14:49:33.000Z
2021-12-30T01:30:04.000Z
yolo_cam.py
IDayday/YOLOv4_CAM
8df61f1c59c197126f0385c1ec1cf65a29a80cec
[ "Apache-2.0" ]
6
2021-04-17T03:11:13.000Z
2022-02-09T10:31:25.000Z
#-------------------------------------# # 创建YOLO类 #-------------------------------------# import colorsys import os import cv2 import numpy as np import torch import torch.backends.cudnn as cudnn import torch.nn as nn from PIL import Image, ImageDraw, ImageFont from torch.autograd import Variable ...
43.437229
143
0.454654
6993dd59788e3130067a159e016e47163be29557
1,626
py
Python
share/rpcauth/rpcauth.py
elestranobaron/litecoin
1757dde281649c24321c528ef79680897b7ce094
[ "MIT" ]
null
null
null
share/rpcauth/rpcauth.py
elestranobaron/litecoin
1757dde281649c24321c528ef79680897b7ce094
[ "MIT" ]
null
null
null
share/rpcauth/rpcauth.py
elestranobaron/litecoin
1757dde281649c24321c528ef79680897b7ce094
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from argparse import ArgumentParser from base64 import urlsafe_b64encode from binascii import hexl...
34.595745
135
0.694957
fdb48a1809265afbf2b611983a4ab7a8ea6e659a
20,372
py
Python
model.py
smarsu/mtcnn
98c3839e250b18c310efa920bc6289a70379f07d
[ "MIT" ]
null
null
null
model.py
smarsu/mtcnn
98c3839e250b18c310efa920bc6289a70379f07d
[ "MIT" ]
null
null
null
model.py
smarsu/mtcnn
98c3839e250b18c310efa920bc6289a70379f07d
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # MTCNN # Licensed under The MIT License [see LICENSE for details] # Copyright 2019 smarsu. All Rights Reserved. # -------------------------------------------------------- """Implementation of MTCNN in SMNet. Reference: Joint Face Detection and Align...
40.907631
108
0.564795
affa772a3c0c5efd71d9a56c728d473461a0fe6a
25
py
Python
bindings/python/cobble/__init__.py
charliebruce/cobble
92ed485681720efba050e037345dea1c3c031f88
[ "MIT" ]
null
null
null
bindings/python/cobble/__init__.py
charliebruce/cobble
92ed485681720efba050e037345dea1c3c031f88
[ "MIT" ]
5
2021-11-12T17:23:58.000Z
2022-03-29T16:38:45.000Z
bindings/python/cobble/__init__.py
charliebruce/cobble
92ed485681720efba050e037345dea1c3c031f88
[ "MIT" ]
null
null
null
from cobble import cobble
25
25
0.88
89c43aebbfd769e864c55823a6a77d2287a982ee
124,475
py
Python
python/paddle/fluid/dygraph/nn.py
javakian/Paddle
10018f1561cb8f75f8df982dcf2217e50cee2647
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/dygraph/nn.py
javakian/Paddle
10018f1561cb8f75f8df982dcf2217e50cee2647
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/dygraph/nn.py
javakian/Paddle
10018f1561cb8f75f8df982dcf2217e50cee2647
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 PaddlePaddle 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 appli...
40.718024
277
0.595469
f1c77b73375905f8b655cb71e310bdc3ffcacfbf
399
py
Python
exercise039.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
exercise039.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
exercise039.py
AlissonRaphael/python_exercises
3f1185c4f2fff24c9fa2ffd6b60f90599044c985
[ "MIT" ]
null
null
null
from datetime import date nascimento = int(input('Ano de nascimento: ')) atual = date.today().year idade = atual - nascimento if idade > 18: print('Você tem {} anos. Deveria ter se alistado á {} anos.'.format(idade, idade-18)) elif idade < 18: print('Você tem {} anos. Deverá se alistar em {} anos.'.format(idade, ...
30.692308
87
0.694236
646d6d3a35529a050a70b4a06b3c16eec7973452
9,046
py
Python
src/pokemaster2/pokemon.py
kipyin/pokemaster2
816af178de1075b5b4b5137dbe1b9d9dd0bdef2a
[ "MIT" ]
1
2022-01-10T17:13:12.000Z
2022-01-10T17:13:12.000Z
src/pokemaster2/pokemon.py
kipyin/pokemaster2
816af178de1075b5b4b5137dbe1b9d9dd0bdef2a
[ "MIT" ]
22
2021-12-22T05:21:29.000Z
2022-03-28T05:26:09.000Z
src/pokemaster2/pokemon.py
kipyin/pokemaster2
816af178de1075b5b4b5137dbe1b9d9dd0bdef2a
[ "MIT" ]
null
null
null
"""Base Pokemon.""" import operator from typing import Callable, Sequence, Type, TypeVar, Union import attr from pokemaster2.prng import PRNG S = TypeVar("S", bound="Stats") P = TypeVar("P", bound="BasePokemon") STAT_NAMES = ["hp", "atk", "def_", "spatk", "spdef", "spd"] STAT_NAMES_FULL = { "hp": "hp", "at...
30.254181
96
0.563564
452c3d28cfd8333e8e081d61b52b92087f54192f
7,320
py
Python
metrics/ir_metric.py
zhongerqiandan/OpenDialog
f478b2a912c8c742da5ced510ac40da59217ddb3
[ "MIT" ]
98
2020-07-16T06:27:29.000Z
2022-03-12T15:21:51.000Z
metrics/ir_metric.py
zhongerqiandan/OpenDialog
f478b2a912c8c742da5ced510ac40da59217ddb3
[ "MIT" ]
2
2020-07-22T12:00:17.000Z
2021-02-24T01:19:14.000Z
metrics/ir_metric.py
gmftbyGMFTBY/OpenDialog
8eb56b7a21cea1172131db7a56d2656364144771
[ "MIT" ]
19
2020-07-16T08:36:09.000Z
2021-09-14T05:36:54.000Z
import numpy as np # import math def to_relevance_scores(y_true, y_pred): """ Returns a list of relevance scores (binary), which can be used in various information retrieval metrics :param y_true: a list of relevant items (such as document ids) :param y_pred: a list of predicted items :return...
32.533333
98
0.639891
8a7deb4a905015c26846bf5809c8126d2fee43f4
66,336
py
Python
source/browseMode.py
gauravshaha/nvda
4d6790378e18b6350d38ab2a052500e61ee41bfa
[ "bzip2-1.0.6" ]
1
2019-10-26T04:13:35.000Z
2019-10-26T04:13:35.000Z
source/browseMode.py
gauravshaha/nvda
4d6790378e18b6350d38ab2a052500e61ee41bfa
[ "bzip2-1.0.6" ]
null
null
null
source/browseMode.py
gauravshaha/nvda
4d6790378e18b6350d38ab2a052500e61ee41bfa
[ "bzip2-1.0.6" ]
null
null
null
#A part of NonVisual Desktop Access (NVDA) #Copyright (C) 2007-2016 NV Access Limited #This file is covered by the GNU General Public License. #See the file COPYING for more details. import itertools import collections import winsound import time import weakref import wx from logHandler import log import r...
43.931126
564
0.742855
0f95ee380a480356d455daf3e8a42549a213b639
414
py
Python
mera/closures_and_decorators/decorator_for_unicode.py
MikeLaptev/sandbox_python
90d9b520d24602fa298abed4bb85232e12550fb2
[ "Apache-2.0" ]
1
2016-02-25T19:01:01.000Z
2016-02-25T19:01:01.000Z
mera/closures_and_decorators/decorator_for_unicode.py
MikeLaptev/sandbox_python
90d9b520d24602fa298abed4bb85232e12550fb2
[ "Apache-2.0" ]
null
null
null
mera/closures_and_decorators/decorator_for_unicode.py
MikeLaptev/sandbox_python
90d9b520d24602fa298abed4bb85232e12550fb2
[ "Apache-2.0" ]
null
null
null
# coding=UTF-8 ''' Created on Aug, 5 2015 @author: mlaptev ''' def escape_unicode(fn): def wrapped(): print "String to convert '{}'".format(fn()) return "".join([i if ord(i) < 128 else "\\" + str(hex(ord(i))) for i in fn()]) return wrapped @escape_unicode def some_non_latin_string(): ...
20.7
86
0.620773
533311269171602111c5d8abc6f0187bcb42c249
11,620
py
Python
pykg2vec/data/generator.py
rpatil524/pykg2vec
492807b627574f95b0db9e7cb9f090c3c45a030a
[ "MIT" ]
430
2019-04-17T19:04:25.000Z
2022-03-31T12:20:18.000Z
pykg2vec/data/generator.py
Sujit-O/pyKG2Vec
492807b627574f95b0db9e7cb9f090c3c45a030a
[ "MIT" ]
102
2019-05-11T04:29:57.000Z
2022-02-16T12:56:28.000Z
pykg2vec/data/generator.py
Sujit-O/pyKG2Vec
492807b627574f95b0db9e7cb9f090c3c45a030a
[ "MIT" ]
102
2019-06-11T08:40:38.000Z
2022-03-27T09:36:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module is for generating the batch data for training and testing. """ import torch import numpy as np from multiprocessing import Process, Queue from pykg2vec.common import TrainingStrategy def raw_data_generator(command_queue, raw_queue, config): """Function ...
36.772152
143
0.612048
26241c6f91b25078f81333b3ca873fd7c292b2d5
1,157
py
Python
posts/migrations/0004_auto_20200722_1214.py
qoukka/hw05_final
f234514034c513e37035674fcd6b629f873b4b6b
[ "MIT" ]
null
null
null
posts/migrations/0004_auto_20200722_1214.py
qoukka/hw05_final
f234514034c513e37035674fcd6b629f873b4b6b
[ "MIT" ]
12
2021-03-19T13:16:24.000Z
2022-03-12T00:52:03.000Z
posts/migrations/0004_auto_20200722_1214.py
qoukka/hw05_final
f234514034c513e37035674fcd6b629f873b4b6b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2020-07-22 09:14 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('posts', '0003_auto_20200718_1452'), ] operations = [ migrations.AddField( ...
32.138889
150
0.62057
70fb57751e5b3ac0b83d51f9695c98df7882591a
469
py
Python
examples/tests/test_paired_assoc.py
kat-dearstyne/think
1f6de81b694e05996948639b7f7ce14b6dd4ecae
[ "MIT" ]
2
2018-04-18T11:14:19.000Z
2020-07-23T16:25:41.000Z
examples/tests/test_paired_assoc.py
kat-dearstyne/think
1f6de81b694e05996948639b7f7ce14b6dd4ecae
[ "MIT" ]
1
2019-02-08T15:11:50.000Z
2019-04-30T10:14:46.000Z
examples/tests/test_paired_assoc.py
kat-dearstyne/think
1f6de81b694e05996948639b7f7ce14b6dd4ecae
[ "MIT" ]
1
2020-12-20T17:43:40.000Z
2020-12-20T17:43:40.000Z
import unittest from examples.paired_assoc import PairedAssociatesSimulation class PairedAssociatesTest(unittest.TestCase): def test_paired_associates(self, output=False): sim = PairedAssociatesSimulation(n_sims=2) result_correct, result_rt = sim.run() self.assertGreater(result_correct.r...
31.266667
60
0.733475
996caa9c2cd403e9511c0d159d0cefe7f6fd1b3a
14,892
py
Python
salt/utils/dictdiffer.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
salt/utils/dictdiffer.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
salt/utils/dictdiffer.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- """ Calculate the difference between two dictionaries as: (1) items added (2) items removed (3) keys same in both but changed values (4) keys same in both and unchanged values Originally posted at http://stackoverflow.com/questions/1165352/fast-comparison-between-two-python-d...
35.798077
127
0.517862
906ef2feaaa20838c79a2b7e1d53eb7e74be7d69
6,400
py
Python
BBB-firmware/u-boot-v2018.05-rc2/test/py/tests/test_efi_loader.py
guileschool/BEAGLEBONE-tutorials
eecd83e0c14941b05ad38eeb77e5a50602cc29ca
[ "MIT" ]
4
2018-09-28T04:33:26.000Z
2021-03-10T06:29:55.000Z
BBB-firmware/u-boot-v2018.05-rc2/test/py/tests/test_efi_loader.py
guileschool/BEAGLEBONE-tutorials
eecd83e0c14941b05ad38eeb77e5a50602cc29ca
[ "MIT" ]
4
2016-08-30T11:30:25.000Z
2020-12-27T09:58:07.000Z
BBB-firmware/u-boot-v2018.05-rc2/test/py/tests/test_efi_loader.py
guileschool/BEAGLEBONE-tutorials
eecd83e0c14941b05ad38eeb77e5a50602cc29ca
[ "MIT" ]
2
2016-12-30T08:02:57.000Z
2020-05-16T05:59:30.000Z
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. # Copyright (c) 2016, Alexander Graf <agraf@suse.de> # # based on test_net.py. # # SPDX-License-Identifier: GPL-2.0 # Test efi loader implementation import pytest import u_boot_utils """ Note: This test relies on boardenv_* containing configuration value...
32.323232
102
0.71875
57f70e1c401e87c2f443245b450b905b8294b004
1,976
py
Python
07_prot/solution1_for.py
ilaydabozan/biofx_python
b7bef85dcf0b0a9e049f10a0766b9da20bf676c7
[ "MIT" ]
74
2020-12-18T16:04:31.000Z
2022-03-02T09:05:54.000Z
07_prot/solution1_for.py
ilaydabozan/biofx_python
b7bef85dcf0b0a9e049f10a0766b9da20bf676c7
[ "MIT" ]
6
2021-06-30T19:42:04.000Z
2022-02-07T04:45:31.000Z
07_prot/solution1_for.py
ilaydabozan/biofx_python
b7bef85dcf0b0a9e049f10a0766b9da20bf676c7
[ "MIT" ]
169
2020-11-06T19:44:36.000Z
2022-03-30T08:38:42.000Z
#!/usr/bin/env python3 """ Translate DNA/RNA to proteins """ import argparse from typing import NamedTuple class Args(NamedTuple): """ Command-line arguments """ rna: str # -------------------------------------------------- def get_args() -> Args: """Get command-line arguments""" parser = argparse...
30.4
76
0.413968
0585a657171a9ab5de159cf5807d1f4088c02e64
1,118
py
Python
packages/merlin/assets/File.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
packages/merlin/assets/File.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
packages/merlin/assets/File.py
pyre/pyre
0f903836f52450bf81216c5dfdfdfebb16090177
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
# -*- coding: utf-8 -*- # # michael a.g. aïvázis <nichael.aivazis@para-sim.com> # (c) 1998-2021 all rights reserved # support import merlin # superclass from .RealAsset import RealAsset # class declaration class File(RealAsset, family="merlin.assets.files.file", implements=merlin.protocols.file): """ Encaps...
24.304348
91
0.628801
b2fda40c8ae316678a22e21453ee263fac079bc9
2,237
py
Python
ressonantes/core/migrations/0007_auto_20200914_1736.py
ag-castro/brazil-ongs-mapping
80f7542d437913ad92cd74b6e456760f61be32ad
[ "Unlicense" ]
1
2020-09-07T17:33:42.000Z
2020-09-07T17:33:42.000Z
ressonantes/core/migrations/0007_auto_20200914_1736.py
ag-castro/brazil-ongs-mapping
80f7542d437913ad92cd74b6e456760f61be32ad
[ "Unlicense" ]
null
null
null
ressonantes/core/migrations/0007_auto_20200914_1736.py
ag-castro/brazil-ongs-mapping
80f7542d437913ad92cd74b6e456760f61be32ad
[ "Unlicense" ]
null
null
null
# Generated by Django 2.2.15 on 2020-09-14 17:36 import django.core.validators from django.db import migrations, models import django.db.models.deletion import re class Migration(migrations.Migration): dependencies = [ ('core', '0006_auto_20200914_1631'), ] operations = [ migrations.Alt...
55.925
555
0.660706
719527ee2b6485f2b7465d9a3c00df3bb393647f
15,046
py
Python
src/pipgrip/libs/mixology/incompatibility.py
pombredanne/pipgrip
a1e0165d9fc9085052c8a010bedf36daff4133be
[ "BSD-3-Clause" ]
100
2020-01-07T13:32:02.000Z
2022-03-30T14:35:21.000Z
src/pipgrip/libs/mixology/incompatibility.py
pombredanne/pipgrip
a1e0165d9fc9085052c8a010bedf36daff4133be
[ "BSD-3-Clause" ]
50
2020-01-07T13:17:31.000Z
2022-03-01T17:55:57.000Z
src/pipgrip/libs/mixology/incompatibility.py
pombredanne/pipgrip
a1e0165d9fc9085052c8a010bedf36daff4133be
[ "BSD-3-Clause" ]
7
2020-01-09T23:06:10.000Z
2021-04-11T23:57:26.000Z
from typing import Dict, Generator, Hashable, List, Optional from pipgrip.libs.mixology.incompatibility_cause import ( ConflictCause, DependencyCause, IncompatibilityCause, NoVersionsCause, PackageNotFoundCause, RootCause, ) from pipgrip.libs.mixology.package import Package from pipgrip.libs.mi...
34.351598
91
0.550578
133005602ef2dff85f9a89d3cf0e55daf4a0aef4
13,944
py
Python
src/Products/ZCTextIndex/ZCTextIndex.py
zopefoundation/Products.ZCatalog
d4fd9fe28d27e8ff43e911025c1258f1e8d50ad5
[ "ZPL-2.1" ]
4
2018-09-13T22:10:22.000Z
2019-06-15T08:26:52.000Z
src/Products/ZCTextIndex/ZCTextIndex.py
zopefoundation/Products.ZCatalog
d4fd9fe28d27e8ff43e911025c1258f1e8d50ad5
[ "ZPL-2.1" ]
97
2015-02-05T11:58:41.000Z
2022-02-08T21:34:11.000Z
src/Products/ZCTextIndex/ZCTextIndex.py
zopefoundation/Products.ZCatalog
d4fd9fe28d27e8ff43e911025c1258f1e8d50ad5
[ "ZPL-2.1" ]
12
2015-04-03T05:30:24.000Z
2019-08-12T21:50:21.000Z
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
34.600496
79
0.629733
b513703ce8b9cb120229facbdd751c47eb916636
4,245
py
Python
examples/python/reconstruction_system/integrate_scene.py
amoran-symbio/Open3D
ae7e44e0dcef11a5df763819d47dec8c5bd5294b
[ "MIT" ]
1,455
2021-07-27T19:44:50.000Z
2022-03-31T19:39:21.000Z
examples/python/reconstruction_system/integrate_scene.py
amoran-symbio/Open3D
ae7e44e0dcef11a5df763819d47dec8c5bd5294b
[ "MIT" ]
1,439
2021-07-27T16:02:52.000Z
2022-03-31T22:29:05.000Z
examples/python/reconstruction_system/integrate_scene.py
amoran-symbio/Open3D
ae7e44e0dcef11a5df763819d47dec8c5bd5294b
[ "MIT" ]
339
2021-07-28T03:07:28.000Z
2022-03-31T13:38:00.000Z
# ---------------------------------------------------------------------------- # - Open3D: www.open3d.org - # ---------------------------------------------------------------------------- # The MIT License (MIT) # # Copyright (c) 2018-2021 www.open3d.org # # Permission i...
43.762887
80
0.664782
7cc3ad5db5f22b4851e53eee76115c2d63960547
3,058
py
Python
models/bilibili.py
shunkoucho/bilibili-downloader
a82fe81d42f49b658163083e3dd837b7ca949bf6
[ "MIT" ]
8
2021-03-15T01:14:36.000Z
2022-02-10T08:54:36.000Z
models/bilibili.py
shunkoucho/bilibili-downloader
a82fe81d42f49b658163083e3dd837b7ca949bf6
[ "MIT" ]
1
2021-07-03T01:42:36.000Z
2021-07-05T05:49:02.000Z
models/bilibili.py
shunkoucho/bilibili-downloader
a82fe81d42f49b658163083e3dd837b7ca949bf6
[ "MIT" ]
2
2021-02-21T02:56:17.000Z
2022-02-10T08:54:46.000Z
from bs4 import BeautifulSoup import config import requests import time import json import re class BilibiliInfo: '''获取视频和音频相关信息类''' def __init__(self, url): # 视频页地址 self.url = url def get_video_page(self): response = requests.get( url=self.url, headers={ ...
27.303571
164
0.485939
da287bafc7da5b30f5105df70480aaf25ae82309
661
py
Python
odoo-14.0/addons/sale_coupon/__manifest__.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
odoo-14.0/addons/sale_coupon/__manifest__.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
odoo-14.0/addons/sale_coupon/__manifest__.py
Yomy1996/P1
59e24cdd5f7f82005fe15bd7a7ff54dd5364dd29
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': "Sale Coupon", 'summary': "Use discount coupons in sales orders", 'description': """Integrate coupon mechanism in sales orders.""", 'category': 'Sales/Sales', 'version': '1.0', 'depends':...
33.05
74
0.626324
b4ef3d9b554a33c43718d29b20020cecdf23b951
1,176
py
Python
main.py
MrWormsy/polychess
534b0120686c2dc8d0b8c5ef9fc1fe14e607261e
[ "MIT" ]
null
null
null
main.py
MrWormsy/polychess
534b0120686c2dc8d0b8c5ef9fc1fe14e607261e
[ "MIT" ]
null
null
null
main.py
MrWormsy/polychess
534b0120686c2dc8d0b8c5ef9fc1fe14e607261e
[ "MIT" ]
3
2018-12-10T07:20:01.000Z
2018-12-19T08:41:12.000Z
# -*- coding: utf-8 -*- """ Created on Mon Dec 10 09:35:35 2018 @authors: MrWormsy (AKA Antonin ROSA-MARTIN), Loick Combrie, Lucile Delage and David Petit """ from ModeJoueurContreJoueur import ModeJoueurContreJoueur from ModeJoueurContreOrdinateur import ModeJoueurContreOrdinateur from ModeOrdinateurContreOrdinateur...
30.153846
124
0.628401
494bb8998b606856b111b2eb8cd7487fd2ad9a73
417
py
Python
exercicios/ex029.py
luccasocastro/Curso-Python
7ad2b980bb2f95f833811291273d6ca1beb0fe77
[ "MIT" ]
null
null
null
exercicios/ex029.py
luccasocastro/Curso-Python
7ad2b980bb2f95f833811291273d6ca1beb0fe77
[ "MIT" ]
null
null
null
exercicios/ex029.py
luccasocastro/Curso-Python
7ad2b980bb2f95f833811291273d6ca1beb0fe77
[ "MIT" ]
null
null
null
valor = float(input('Informe o valor da casa: ')) sal = float(input('Informe o seu salário: ')) anos = int(input('Informe em quantos anos deseja pagar: ')) prestação = valor/(anos*12) valMax = sal * 30 / 100 print('Para pagar uma casa de R${:.2f} em {} anos a prestação será de R${:.2f}'.format(valor, anos, prestação)) ...
37.909091
111
0.678657
ef5f9a6b3240946fd4439d2f1a3f4e92193659d5
1,962
py
Python
membership/urls.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
13
2015-11-29T12:19:12.000Z
2021-02-21T15:42:11.000Z
membership/urls.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
23
2015-04-29T19:43:34.000Z
2021-02-10T05:50:17.000Z
membership/urls.py
darkismus/kompassi
35dea2c7af2857a69cae5c5982b48f01ba56da1f
[ "CC-BY-3.0" ]
11
2015-09-20T18:59:00.000Z
2020-02-07T08:47:34.000Z
from django.conf.urls import include, url from django.views.generic.base import RedirectView from .views import ( membership_admin_emails_api, membership_admin_member_view, membership_admin_members_view, membership_admin_term_view, membership_apply_view, membership_profile_view, membership_...
28.028571
103
0.644241
76127837868abf5fffdb9d84808bf2ac6f8f1be7
2,719
py
Python
deeptrack/test/test_elementwise.py
HarshithBachimanchi/DeepTrack-2.0
5983f5224b75aef4ce3932662bd15723f13841a0
[ "MIT" ]
1
2022-03-18T17:25:18.000Z
2022-03-18T17:25:18.000Z
deeptrack/test/test_elementwise.py
HarshithBachimanchi/DeepTrack-2.0
5983f5224b75aef4ce3932662bd15723f13841a0
[ "MIT" ]
null
null
null
deeptrack/test/test_elementwise.py
HarshithBachimanchi/DeepTrack-2.0
5983f5224b75aef4ce3932662bd15723f13841a0
[ "MIT" ]
null
null
null
import sys # sys.path.append(".") # Adds the module to path import unittest import operator import itertools from numpy.core.numeric import array_equal from numpy.testing._private.utils import assert_almost_equal from .. import elementwise, features, Image import numpy as np from deeptrack.backend._config import ...
24.276786
102
0.554248
c6706de006d02a680aa2c81bf235abfa7f5d3cdf
1,046
py
Python
coroutines/copipe.py
alick97/python_train
e84fac3e2a1355336c6d74fa5c103abebf701a7e
[ "MIT" ]
null
null
null
coroutines/copipe.py
alick97/python_train
e84fac3e2a1355336c6d74fa5c103abebf701a7e
[ "MIT" ]
null
null
null
coroutines/copipe.py
alick97/python_train
e84fac3e2a1355336c6d74fa5c103abebf701a7e
[ "MIT" ]
null
null
null
# copipe.py # # A simple example showing how to hook up a pipeline with # coroutines. To run this, you will need a log file. # Run the program logsim.py in the background to get a data # source. from coroutine import coroutine # A data source. This is not a coroutine, but it sends # data into one (target) import ...
22.73913
59
0.602294
f143b9c85bed4958835512fe996866c23df3f920
6,164
py
Python
ding/data/buffer/middleware/priority.py
davide97l/DI-engine
d48c93bcd5c07c29f2ce4ac1b7756b8bc255c423
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
ding/data/buffer/middleware/priority.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
ding/data/buffer/middleware/priority.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
from typing import Callable, Any, List, Dict, Optional, Union, TYPE_CHECKING import copy import numpy as np import torch from ding.utils import SumSegmentTree, MinSegmentTree from ding.data.buffer.buffer import BufferedData if TYPE_CHECKING: from ding.data.buffer.buffer import Buffer class PriorityExperienceRepla...
45.323529
119
0.61843
fe1290af386216116f7b306830a6a5fb263e6b6f
12,607
py
Python
spectrochempy/core/analysis/peakfinding.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
spectrochempy/core/analysis/peakfinding.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
spectrochempy/core/analysis/peakfinding.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- # ====================================================================================================================== # Copyright (©) 2015-2021 LCS - Laboratoire Catalyse et Spectrochimie, Caen, France. = # CeCILL-B FREE SOFTWARE LICENSE AGREEMENT - See ful...
43.622837
120
0.627746
b36be15efa6153683a9a2773fd288baf98e11280
532
py
Python
src/LMR.py
cosmobobak/Viridithas-Chess
4eb9b93d4f302496c80f969dd05f8b7c227f3cf4
[ "MIT" ]
null
null
null
src/LMR.py
cosmobobak/Viridithas-Chess
4eb9b93d4f302496c80f969dd05f8b7c227f3cf4
[ "MIT" ]
null
null
null
src/LMR.py
cosmobobak/Viridithas-Chess
4eb9b93d4f302496c80f969dd05f8b7c227f3cf4
[ "MIT" ]
null
null
null
def search_reduction_factor(lateness: int, is_check: bool, gives_check: bool, is_capt: bool, is_promo: bool, d: float) -> float: # return 1.0 DO_NOT_REDUCE = is_capt or is_promo or d < 3 CHECK_EXTENSION = is_check or gives_check and d > 3 if DO_NOT_REDUCE: return 0.6 if CHECK_EXTENSION else 1 ...
29.555556
128
0.595865
335f6704eacccbc1dac97e186c426ff0ea7ca50b
99
py
Python
lamp/__init__.py
Den4200/lamp
85219d207863032b64e30d07c7ea05c4a5251ad9
[ "MIT" ]
null
null
null
lamp/__init__.py
Den4200/lamp
85219d207863032b64e30d07c7ea05c4a5251ad9
[ "MIT" ]
3
2021-06-08T21:21:16.000Z
2022-01-13T02:33:12.000Z
lamp/__init__.py
Den4200/lamp
85219d207863032b64e30d07c7ea05c4a5251ad9
[ "MIT" ]
null
null
null
from configparser import ConfigParser config = ConfigParser() config.read('sys/lamp/config.ini')
16.5
37
0.787879
2a7d0e28dd59bfe249dd976aa9b4890efcd8bce1
804
py
Python
lib/__init__.py
mikeyy/GT-Finder
b21e929f4fcfa99a9520edeaec91bbf6870e04f0
[ "WTFPL" ]
null
null
null
lib/__init__.py
mikeyy/GT-Finder
b21e929f4fcfa99a9520edeaec91bbf6870e04f0
[ "WTFPL" ]
null
null
null
lib/__init__.py
mikeyy/GT-Finder
b21e929f4fcfa99a9520edeaec91bbf6870e04f0
[ "WTFPL" ]
null
null
null
#!/usr/bin/python # # This file is part of GT Finder. # # Copyright(c) 2016 Michael Mooney(mikeyy@mikeyy.com). # # This file may be licensed under the terms of of the # GNU General Public License Version 2 (the ``GPL''). # # Software distributed under the License is distributed # on an ``AS IS'' basis, WITHOUT WARRANTY...
32.16
89
0.74005
e1e6181d8ca275d8f891dee1e7a6a575d186696a
7,070
py
Python
homeassistant/components/configurator/__init__.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
2
2020-03-02T19:17:52.000Z
2020-03-02T19:17:53.000Z
homeassistant/components/configurator/__init__.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
6
2021-02-08T21:05:36.000Z
2022-03-12T00:54:00.000Z
homeassistant/components/configurator/__init__.py
jasperro/core
26d7b2164e8a971506790ae5af06f31abdf278b5
[ "Apache-2.0" ]
1
2020-03-07T10:43:50.000Z
2020-03-07T10:43:50.000Z
""" Support to allow pieces of code to request configuration from the user. Initiate a request by calling the `request_config` method with a callback. This will return a request id that has to be used for future calls. A callback has to be provided to `request_config` which will be called when the user has submitted c...
28.857143
84
0.678359
629489b5582efe1ecdeec49cde30977c3fa37aa4
813
py
Python
secondProject/driveTest/driveTest/urls.py
loic9654/Djangodev
2babb235d68f508c64171a146be8483009dea7f7
[ "Apache-2.0" ]
null
null
null
secondProject/driveTest/driveTest/urls.py
loic9654/Djangodev
2babb235d68f508c64171a146be8483009dea7f7
[ "Apache-2.0" ]
null
null
null
secondProject/driveTest/driveTest/urls.py
loic9654/Djangodev
2babb235d68f508c64171a146be8483009dea7f7
[ "Apache-2.0" ]
null
null
null
"""driveTest URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
35.347826
77
0.707257
e2e216fc55a1438ef86973556380eb127fb7e0a0
8,190
py
Python
backend/src/baserow/contrib/database/application_types.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
null
null
null
backend/src/baserow/contrib/database/application_types.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
null
null
null
backend/src/baserow/contrib/database/application_types.py
cjh0613/baserow
62871f5bf53c9d25446976031aacb706c0abe584
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.management.color import no_style from django.db import connections from django.urls import path, include from baserow.contrib.database.fields.registries import field_type_registry from baserow.contrib.database.views.registries import view_type_registry from baserow.cor...
41.155779
88
0.586569
13abbb037693069a2f0f2d49c17c92c0be2f77e1
172
py
Python
_1327/documents/templatetags/filename.py
julkw/1327
480521256670b9efc787528ab7cdaa4b3305f422
[ "MIT" ]
10
2015-04-13T18:54:46.000Z
2018-11-07T10:42:03.000Z
_1327/documents/templatetags/filename.py
julkw/1327
480521256670b9efc787528ab7cdaa4b3305f422
[ "MIT" ]
530
2015-02-16T19:26:44.000Z
2018-12-03T18:45:44.000Z
_1327/documents/templatetags/filename.py
julkw/1327
480521256670b9efc787528ab7cdaa4b3305f422
[ "MIT" ]
15
2019-07-21T08:45:09.000Z
2022-01-26T13:28:03.000Z
import os from django import template register = template.Library() @register.filter def filename(string): delimiter = os.sep return string.split(delimiter)[-1]
15.636364
38
0.738372
8e32fc3a747a96a73c9da60876bfa6ff04412af9
3,358
py
Python
test/integration/035_changing_relation_type_test/test_changing_relation_type.py
cwkrebs/dbt
0b135772d2db2549225365eeeb465b5316930145
[ "Apache-2.0" ]
1
2022-01-09T19:33:25.000Z
2022-01-09T19:33:25.000Z
test/integration/035_changing_relation_type_test/test_changing_relation_type.py
cwkrebs/dbt
0b135772d2db2549225365eeeb465b5316930145
[ "Apache-2.0" ]
1
2019-02-14T20:10:46.000Z
2019-02-19T13:06:38.000Z
test/integration/035_changing_relation_type_test/test_changing_relation_type.py
cwkrebs/dbt
0b135772d2db2549225365eeeb465b5316930145
[ "Apache-2.0" ]
null
null
null
from test.integration.base import DBTIntegrationTest, use_profile class TestChangingRelationType(DBTIntegrationTest): @property def schema(self): return "changing_relation_type_035" @staticmethod def dir(path): return "test/integration/035_changing_relation_type_test/" + path.lstrip(...
41.975
105
0.656939
4a4b3ddc8338d75ccd898432cc400e4924ad4a96
628
py
Python
rateApp/migrations/0004_auto_20210918_2201.py
enockabere/Project_Rating
b50d1474927b94d3d08a708eaff026e91ec9f950
[ "Unlicense" ]
null
null
null
rateApp/migrations/0004_auto_20210918_2201.py
enockabere/Project_Rating
b50d1474927b94d3d08a708eaff026e91ec9f950
[ "Unlicense" ]
null
null
null
rateApp/migrations/0004_auto_20210918_2201.py
enockabere/Project_Rating
b50d1474927b94d3d08a708eaff026e91ec9f950
[ "Unlicense" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-18 22:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('rateApp', '0003_remove_profile_projects'), ] operations = [ migrations.RemoveField( model_name=...
26.166667
142
0.627389
b6c9d3081e52e93cbdacae81b7cc8bf85d6ef117
17,282
py
Python
goetia/processors.py
camillescott/boink
db75dc0d87126c5ad20c35405699d89153f109a8
[ "MIT" ]
3
2019-03-10T02:30:16.000Z
2020-02-07T20:11:26.000Z
goetia/processors.py
camillescott/boink
db75dc0d87126c5ad20c35405699d89153f109a8
[ "MIT" ]
6
2018-04-11T02:01:18.000Z
2020-01-31T14:21:55.000Z
goetia/processors.py
camillescott/boink
db75dc0d87126c5ad20c35405699d89153f109a8
[ "MIT" ]
2
2019-03-09T19:15:08.000Z
2019-04-18T19:27:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) Camille Scott, 2021 # File : processors.py # License: MIT # Author : Camille Scott <camille.scott.w@gmail.com> # Date : 05.11.2021 import atexit from collections import OrderedDict, defaultdict from enum import Enum, unique as unique_enum import functools import...
34.633267
112
0.538132
c8c57ab1f69973f8de3e640b40aaf44adf26f6f4
14,174
py
Python
wye/organisations/views.py
curioswati-zz/wye
4f370a5aeafe81d90aa44adcec50c1f3eb40004e
[ "MIT" ]
1
2020-12-22T10:24:31.000Z
2020-12-22T10:24:31.000Z
wye/organisations/views.py
curioswati-zz/wye
4f370a5aeafe81d90aa44adcec50c1f3eb40004e
[ "MIT" ]
null
null
null
wye/organisations/views.py
curioswati-zz/wye
4f370a5aeafe81d90aa44adcec50c1f3eb40004e
[ "MIT" ]
null
null
null
import uuid from django.conf import settings from django.conf.urls import patterns, url from django.contrib.auth.tokens import PasswordResetTokenGenerator from django.core.urlresolvers import reverse_lazy from django.http import Http404 from django.shortcuts import redirect, render from django.template import Context,...
41.084058
99
0.592352
7d86597527c9b22c6f8c387610263d3ad329cbea
896
py
Python
tests/integration/spm/test_info.py
exe01/salt
0e4e8a458afc120a149eab83e5b9389c474fedf7
[ "Apache-2.0" ]
null
null
null
tests/integration/spm/test_info.py
exe01/salt
0e4e8a458afc120a149eab83e5b9389c474fedf7
[ "Apache-2.0" ]
null
null
null
tests/integration/spm/test_info.py
exe01/salt
0e4e8a458afc120a149eab83e5b9389c474fedf7
[ "Apache-2.0" ]
null
null
null
""" Tests for the spm info utility """ import shutil import pytest from tests.support.case import SPMCase from tests.support.helpers import destructiveTest, slowTest @destructiveTest @pytest.mark.windows_whitelisted class SPMInfoTest(SPMCase): """ Validate the spm info command """ def setUp(self): ...
23.578947
76
0.654018
f1c1bcb28a078a8956e55586400faae757408a5b
95
py
Python
wagtail/admin/signals.py
evildmp/wagtail
d30856d1b9a8071a2fd9341a3dd9dc20c738e23b
[ "BSD-3-Clause" ]
2
2021-03-18T21:41:05.000Z
2021-03-18T21:41:08.000Z
wagtail/admin/signals.py
evildmp/wagtail
d30856d1b9a8071a2fd9341a3dd9dc20c738e23b
[ "BSD-3-Clause" ]
13
2015-05-08T12:27:10.000Z
2020-01-23T14:45:57.000Z
wagtail/admin/signals.py
evildmp/wagtail
d30856d1b9a8071a2fd9341a3dd9dc20c738e23b
[ "BSD-3-Clause" ]
2
2020-09-03T20:12:32.000Z
2021-03-29T08:29:23.000Z
from django.dispatch import Signal init_new_page = Signal(providing_args=['page', 'parent'])
19
57
0.768421
988480f5f79ec538371da991fa8f860487e1de8f
296
py
Python
operators/buildv2-operator/python/pulumi_pulumi_kubernetes_crds_operators_buildv2_operator/__init__.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
operators/buildv2-operator/python/pulumi_pulumi_kubernetes_crds_operators_buildv2_operator/__init__.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
2
2020-09-18T17:12:23.000Z
2020-12-30T19:40:56.000Z
operators/buildv2-operator/python/pulumi_pulumi_kubernetes_crds_operators_buildv2_operator/__init__.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .provider import * # Make subpackages available: from . import ( build, meta_v1, )
22.769231
80
0.682432
545b86de6d86768e9f6ee68ccda3c4dd014faed4
3,110
py
Python
script.py
ameyjadiye/CoWin-Vaccine-Notifier
8dbe13534729a2f5a9ad3ae9ff9eff550426213c
[ "MIT" ]
null
null
null
script.py
ameyjadiye/CoWin-Vaccine-Notifier
8dbe13534729a2f5a9ad3ae9ff9eff550426213c
[ "MIT" ]
null
null
null
script.py
ameyjadiye/CoWin-Vaccine-Notifier
8dbe13534729a2f5a9ad3ae9ff9eff550426213c
[ "MIT" ]
null
null
null
''' Script: Covid Vaccine Slot Availablity Notifier By Ayushi Rawat ''' import requests from pygame import mixer from datetime import datetime, timedelta import time import json age = 52 pinCodes = ["462003"] num_days = 2 print_flag = 'Y' print("Starting search for Covid vaccine slots!") actual = datetime.today(...
36.162791
148
0.417042
23bf574290f7b5c1c747dbb357d4ca642a3da17b
655
py
Python
mozilla_django_oidc_db/migrations/0005_openidconnectconfig_sync_groups_glob_pattern.py
maykinmedia/mozilla-django-oidc-db
f576a45ee062370b1e07358769a841898509d37f
[ "MIT" ]
null
null
null
mozilla_django_oidc_db/migrations/0005_openidconnectconfig_sync_groups_glob_pattern.py
maykinmedia/mozilla-django-oidc-db
f576a45ee062370b1e07358769a841898509d37f
[ "MIT" ]
21
2021-07-05T15:18:37.000Z
2022-03-30T08:02:17.000Z
mozilla_django_oidc_db/migrations/0005_openidconnectconfig_sync_groups_glob_pattern.py
maykinmedia/mozilla-django-oidc-db
f576a45ee062370b1e07358769a841898509d37f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.24 on 2021-11-23 14:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("mozilla_django_oidc_db", "0004_auto_20210812_1044"), ] operations = [ migrations.AddField( model_name="openidconnectconfig", ...
27.291667
110
0.593893
309fb5a8d60bb24cee88aea34585959319d87670
3,789
py
Python
django_cassandra_engine/utils.py
maria-grigorieva/django_cassandra_engine
70918eeb6edd26c50a394a1ddcf6521b92ec429a
[ "BSD-2-Clause" ]
null
null
null
django_cassandra_engine/utils.py
maria-grigorieva/django_cassandra_engine
70918eeb6edd26c50a394a1ddcf6521b92ec429a
[ "BSD-2-Clause" ]
null
null
null
django_cassandra_engine/utils.py
maria-grigorieva/django_cassandra_engine
70918eeb6edd26c50a394a1ddcf6521b92ec429a
[ "BSD-2-Clause" ]
null
null
null
import inspect import cqlengine import django from django.conf import settings class CursorWrapper(object): """ Simple CursorWrapper implementation based on django.db.utils.CursorWrapper """ def __init__(self, cursor, db): self.cursor = cursor self.db = db WRAP_ERROR_ATTRS = froz...
28.488722
78
0.631037
4ede103a03f44976f9c476143af5a44159fe2b2b
18,930
py
Python
pdd25.py
multimodallearning/pdd2.5
6ca1aca06954528ed32a38dbc849828c4f598b7f
[ "Apache-2.0" ]
10
2020-08-13T09:22:21.000Z
2022-01-25T15:08:08.000Z
pdd25.py
multimodallearning/pdd2.5
6ca1aca06954528ed32a38dbc849828c4f598b7f
[ "Apache-2.0" ]
1
2020-10-27T13:19:48.000Z
2021-03-28T09:29:14.000Z
pdd25.py
multimodallearning/pdd2.5
6ca1aca06954528ed32a38dbc849828c4f598b7f
[ "Apache-2.0" ]
1
2021-08-04T15:11:15.000Z
2021-08-04T15:11:15.000Z
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torch.utils.checkpoint import checkpoint print(torch.__version__[:3]) if(float(torch.__version__[:3])<1.4): print("requires pytorch 1.4 or higher") import matplotlib.pyplot as plt import nibabel as nib import n...
47.80303
339
0.668463
d79e094581554efba97207acb4c008c63492c9b3
302
py
Python
tests/diff_test.py
Key-Differentiators/cs207-FinalProject
d2255a63a4b18a2653812f4c0fa7aa4fe20a18d1
[ "MIT" ]
null
null
null
tests/diff_test.py
Key-Differentiators/cs207-FinalProject
d2255a63a4b18a2653812f4c0fa7aa4fe20a18d1
[ "MIT" ]
14
2019-10-30T18:37:13.000Z
2019-12-10T02:04:33.000Z
tests/diff_test.py
Key-Differentiators/cs207-FinalProject
d2255a63a4b18a2653812f4c0fa7aa4fe20a18d1
[ "MIT" ]
null
null
null
# diff_test.py import pytest import mock from keydifferentiator import __main__ as module def test_diff(): f = '3 * x + 3' x = 1 val, der = module.diff(f, x) assert(val == 6) assert(der == 3) def test_init(): with mock.patch.object(module, "input", return_value='q'): module.main()
17.764706
62
0.652318
a77071df9b3a648eaf60c4fdb1132890625e5278
410,589
py
Python
Lib/pydoc_data/topics.py
rbuzatu90/hyperv-python
82bf5a72b4d956ea05affe1644b47e378dec0f4e
[ "bzip2-1.0.6" ]
195
2016-01-14T16:03:02.000Z
2021-12-29T09:15:02.000Z
Lib/pydoc_data/topics.py
rbuzatu90/hyperv-python
82bf5a72b4d956ea05affe1644b47e378dec0f4e
[ "bzip2-1.0.6" ]
75
2016-01-14T16:03:02.000Z
2020-04-29T22:51:53.000Z
Lib/pydoc_data/topics.py
rbuzatu90/hyperv-python
82bf5a72b4d956ea05affe1644b47e378dec0f4e
[ "bzip2-1.0.6" ]
24
2016-02-29T11:45:47.000Z
2021-12-24T08:41:37.000Z
# -*- coding: utf-8 -*- # Autogenerated by Sphinx on Tue Nov 25 18:24:45 2014 topics = {'assert': u'\nThe "assert" statement\n**********************\n\nAssert statements are a convenient way to insert debugging assertions\ninto a program:\n\n assert_stmt ::= "assert" expression ["," expression]\n\nThe simple form, "a...
5,069
54,147
0.689044
ed3638b5db06066df7dcf34326cbc03d4c033fc5
2,935
py
Python
tasks.py
chen19901225/cqh_file_watcher
48e0c177934a836551851e619926096074d64353
[ "MIT" ]
null
null
null
tasks.py
chen19901225/cqh_file_watcher
48e0c177934a836551851e619926096074d64353
[ "MIT" ]
null
null
null
tasks.py
chen19901225/cqh_file_watcher
48e0c177934a836551851e619926096074d64353
[ "MIT" ]
null
null
null
import os import json import re from invoke import task proj_name = 'cqh_file_watcher' proj_dir = os.path.dirname(os.path.abspath(__file__)) python = os.path.join(proj_dir, 'venv/bin/python') history_path = os.path.join(proj_dir, '.history') def get_branch_name(c): out = c.run("git branch") # print(out) ...
25.08547
90
0.627939
25ab7661bb6756a972cd3dbfd362f11deced8301
12,644
py
Python
src/twisted/mail/protocols.py
mathieui/twisted
35546d2b50742a32edba54719ce3e752dc50dd2a
[ "MIT", "Unlicense" ]
9,953
2019-04-03T23:41:04.000Z
2022-03-31T11:54:44.000Z
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/protocols.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
44
2019-05-27T10:59:29.000Z
2022-03-31T14:14:29.000Z
stackoverflow/venv/lib/python3.6/site-packages/twisted/mail/protocols.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
2,803
2019-04-06T13:15:33.000Z
2022-03-31T07:42:01.000Z
# -*- test-case-name: twisted.mail.test.test_mail -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Mail protocol support. """ from __future__ import absolute_import, division from twisted.mail import pop3 from twisted.mail import smtp from twisted.internet import protocol from twisted....
31.219753
79
0.611594
f7837d743674d88e46151daeb73135fb208d145f
2,795
py
Python
gtfs/schedule.py
eoghanmurray/gtfs-sql
49c20747db88e7e218fb4fc83b61fbc0b37f552d
[ "MIT" ]
2
2020-05-21T21:34:04.000Z
2021-05-22T15:12:51.000Z
gtfs/schedule.py
eoghanmurray/gtfs-sql
49c20747db88e7e218fb4fc83b61fbc0b37f552d
[ "MIT" ]
null
null
null
gtfs/schedule.py
eoghanmurray/gtfs-sql
49c20747db88e7e218fb4fc83b61fbc0b37f552d
[ "MIT" ]
null
null
null
import sqlalchemy import sqlalchemy.orm from entity import * class Schedule: """Represents a full GTFS data set.""" def __init__(self, db_connection): self.db_connection = db_connection self.db_filename = None if '://' not in db_connection: self.db_connection = 'sqlite:...
27.673267
84
0.627191
e8ec74b5d73d43f1c297e19ef7d7f28cbc67235f
2,781
py
Python
tests/misc/non_compliant.py
kaffir/circuitpython
0930f7a7972dc006c079102e292babb1ae02aa1a
[ "MIT" ]
5
2017-07-17T23:28:09.000Z
2020-06-16T17:28:47.000Z
tests/misc/non_compliant.py
kaffir/circuitpython
0930f7a7972dc006c079102e292babb1ae02aa1a
[ "MIT" ]
null
null
null
tests/misc/non_compliant.py
kaffir/circuitpython
0930f7a7972dc006c079102e292babb1ae02aa1a
[ "MIT" ]
null
null
null
# tests for things that are not implemented, or have non-compliant behaviour import array import ustruct # when super can't find self try: exec('def f(): super()') except SyntaxError: print('SyntaxError') # store to exception attribute is not allowed try: ValueError().x = 0 except AttributeError: pri...
21.897638
76
0.696152
d900d5ef5e03534d642cb87074e02652ce3be0f2
7,089
py
Python
drf_firebase_auth/authentication.py
Arka-cell/drf-firebase-auth
7a76b0d2300964962ff0dfa3de0f513a1bc6a9ba
[ "MIT" ]
null
null
null
drf_firebase_auth/authentication.py
Arka-cell/drf-firebase-auth
7a76b0d2300964962ff0dfa3de0f513a1bc6a9ba
[ "MIT" ]
null
null
null
drf_firebase_auth/authentication.py
Arka-cell/drf-firebase-auth
7a76b0d2300964962ff0dfa3de0f513a1bc6a9ba
[ "MIT" ]
4
2021-07-23T10:14:36.000Z
2021-12-06T14:49:51.000Z
# -*- coding: utf-8 -*- """ Authentication backend for handling firebase user.idToken from incoming Authorization header, verifying, and locally authenticating """ from typing import Tuple, Dict import logging import firebase_admin from firebase_admin import auth as firebase_auth from django.utils.encoding import smar...
36.353846
79
0.613345
6967f9be59604400f1306cfebe81b856c2e207cf
1,603
py
Python
aldryn_redirects/middleware.py
what-digital/aldryn-redirects
a0320ee87cfa0e1b6709cda4aa88dd92542c225a
[ "BSD-3-Clause" ]
null
null
null
aldryn_redirects/middleware.py
what-digital/aldryn-redirects
a0320ee87cfa0e1b6709cda4aa88dd92542c225a
[ "BSD-3-Clause" ]
null
null
null
aldryn_redirects/middleware.py
what-digital/aldryn-redirects
a0320ee87cfa0e1b6709cda4aa88dd92542c225a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django import http from django.conf import settings from django.contrib.sites.models import Site from django.db.models import Q from django.utils.deprecation import MiddlewareMixin from .models import Redirect, StaticRedirect class RedirectFallbackMiddleware(MiddlewareMi...
34.847826
104
0.663132
0805da27a60c16649cffe181cee3192fd1d74606
336
py
Python
project/com/vo/BranchVO.py
sahilshah8141/ChequeClearanceSystem
f02efeb45b950be8bb34a35a399a358e7eeed03b
[ "Apache-2.0" ]
null
null
null
project/com/vo/BranchVO.py
sahilshah8141/ChequeClearanceSystem
f02efeb45b950be8bb34a35a399a358e7eeed03b
[ "Apache-2.0" ]
null
null
null
project/com/vo/BranchVO.py
sahilshah8141/ChequeClearanceSystem
f02efeb45b950be8bb34a35a399a358e7eeed03b
[ "Apache-2.0" ]
null
null
null
from wtforms import * class BranchVO: branchId = IntegerField branchName = StringField branchIFSCCode = StringField branchContact = StringField branchEmail = StringField branch_CityId = IntegerField branch_AreaId = IntegerField branch_BankId = IntegerField branchActiveStatus = Str...
15.272727
36
0.732143
2bc2f07e189602f6cd884ab2ac28d62765dcbcf4
42,877
py
Python
src/sage/schemes/elliptic_curves/sha_tate.py
hsm207/sage
020bd59ec28717bfab9af44d2231c53da1ff99f1
[ "BSL-1.0" ]
4
2020-07-17T04:49:44.000Z
2020-07-29T06:33:51.000Z
src/sage/schemes/elliptic_curves/sha_tate.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
1
2020-04-18T16:30:43.000Z
2020-04-18T16:30:43.000Z
src/sage/schemes/elliptic_curves/sha_tate.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Tate-Shafarevich group If `E` is an elliptic curve over a global field `K`, the Tate-Shafarevich group is the subgroup of elements in `H^1(K,E)` which map to zero under every global-to-local restriction map `H^1(K,E) \to H^1(K_v,E)`, one for each place `v` of `K`. The group is usually den...
36.772727
222
0.534529
634a3ef5a0cf24593bf8d998fb8b39b389b229ca
1,344
py
Python
tests/002_finder/001_ispartial.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
13
2016-05-19T15:18:41.000Z
2022-03-22T15:37:32.000Z
tests/002_finder/001_ispartial.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
38
2016-04-07T00:30:58.000Z
2022-02-28T13:29:33.000Z
tests/002_finder/001_ispartial.py
Sam-prog-sudo/boussole
5d6ec94356f9a91ff4d6d23c1700d3512b67006a
[ "MIT" ]
3
2016-05-20T09:21:57.000Z
2020-10-12T10:56:49.000Z
# -*- coding: utf-8 -*- def test_001(settings, finder): """finder.ScssFinder: Simple filename""" partial = finder.is_partial("foo.scss") assert partial is False def test_002(settings, finder): """finder.ScssFinder: Simple partial filename""" partial = finder.is_partial("_foo.scss") assert pa...
26.88
67
0.703869
1a014bcdd8d3d0ce808f5f540f7f31b1680ab2e4
477
py
Python
libpythonpro/tests/test_spam/test_usuarios.py
smkbarbosa/libpythonpro
001a3c470b00a93ffa0180ae0c1bbb32fee04993
[ "Apache-2.0" ]
1
2022-01-23T06:41:05.000Z
2022-01-23T06:41:05.000Z
libpythonpro/tests/test_spam/test_usuarios.py
smkbarbosa/libpythonpro
001a3c470b00a93ffa0180ae0c1bbb32fee04993
[ "Apache-2.0" ]
40
2020-12-25T17:58:26.000Z
2022-03-19T00:36:16.000Z
libpythonpro/tests/test_spam/test_usuarios.py
smkbarbosa/libpythonpro
001a3c470b00a93ffa0180ae0c1bbb32fee04993
[ "Apache-2.0" ]
null
null
null
from libpythonpro.spam.models import Usuario def test_salvar_usuario(sessao): usuario = Usuario(nome='Samuel', email='samuka1@gmail.com') sessao.salvar(usuario) assert isinstance(usuario.id, int) def test_listar_usuario(sessao): usuarios = [Usuario(nome='Samuel', email='samuka1@gmail.com'), ...
29.8125
66
0.696017
6d2bc0e0ad601ac6a5996245794693c2cb0497fc
3,089
py
Python
src/robot/utils/recommendations.py
bhirsz/robotframework
d62ee5091ed932aee8fc12ae5e340a5b19288f05
[ "ECL-2.0", "Apache-2.0" ]
9
2020-04-22T08:30:52.000Z
2020-12-07T08:25:09.000Z
src/robot/utils/recommendations.py
bhirsz/robotframework
d62ee5091ed932aee8fc12ae5e340a5b19288f05
[ "ECL-2.0", "Apache-2.0" ]
63
2020-03-04T17:31:39.000Z
2022-03-01T09:12:16.000Z
src/robot/utils/recommendations.py
bhirsz/robotframework
d62ee5091ed932aee8fc12ae5e340a5b19288f05
[ "ECL-2.0", "Apache-2.0" ]
1
2018-11-30T18:49:45.000Z
2018-11-30T18:49:45.000Z
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
36.77381
75
0.656847
5a1cafe66cb1b394a1dc9665a4ae3454f93a3bd1
2,350
py
Python
tests/cpd_als_benchmark_test.py
ByzanTine/AutoHOOT
007bb423bfc8eefa64e4d1b0f8dad80b440bcf7a
[ "Apache-2.0" ]
null
null
null
tests/cpd_als_benchmark_test.py
ByzanTine/AutoHOOT
007bb423bfc8eefa64e4d1b0f8dad80b440bcf7a
[ "Apache-2.0" ]
null
null
null
tests/cpd_als_benchmark_test.py
ByzanTine/AutoHOOT
007bb423bfc8eefa64e4d1b0f8dad80b440bcf7a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # 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, ...
32.638889
82
0.670213
955d15b0e239cf3d3e662cb7e3fff641f7ff4e7b
1,017
py
Python
tests/test_metrics.py
danirivas/cova-tuner
e7eaf7e75f0c15ce35c449fb67529c9c73386817
[ "Apache-2.0" ]
1
2022-03-04T09:34:00.000Z
2022-03-04T09:34:00.000Z
tests/test_metrics.py
danirivas/cova-tuner
e7eaf7e75f0c15ce35c449fb67529c9c73386817
[ "Apache-2.0" ]
1
2021-12-15T14:52:58.000Z
2021-12-15T14:52:58.000Z
tests/test_metrics.py
danirivas/cova-tuner
e7eaf7e75f0c15ce35c449fb67529c9c73386817
[ "Apache-2.0" ]
null
null
null
import pytest from cova.dnn import metrics @pytest.mark.parametrize( ("bb1", "bb2", "overlap"), [ [[0, 0, 100, 100], [0, 0, 100, 100], 1.0], [[0, 0, 50, 50], [0, 0, 100, 100], 1], [[0, 0, 100, 100], [0, 0, 50, 50], 0.25], [[0, 0, 100, 100], [0, 0, 100, 50], 0.5], [[0, ...
27.486486
87
0.495575
12ed84fb4b49cbed967ff38e96145df084380d22
122
py
Python
phishsense/modelqueue/forms.py
sidin/phishsense
34ec2a6659f2e884fc36c01c80776b161da0be07
[ "BSD-3-Clause" ]
null
null
null
phishsense/modelqueue/forms.py
sidin/phishsense
34ec2a6659f2e884fc36c01c80776b161da0be07
[ "BSD-3-Clause" ]
null
null
null
phishsense/modelqueue/forms.py
sidin/phishsense
34ec2a6659f2e884fc36c01c80776b161da0be07
[ "BSD-3-Clause" ]
null
null
null
from django import forms class URLForm(forms.Form): analysis_url = forms.URLField(label='Analysis URL', required=True)
20.333333
67
0.778689
6a4af8f83be3d75c1b0689679e117513b08ff28f
7,006
py
Python
test/test_full_report_schema_all_of.py
intel471/titan-client-python
b12a2bc73604cf1a7cb0b6e97c81b5af9dee7bfe
[ "MIT" ]
2
2021-08-23T08:41:44.000Z
2021-08-29T15:09:27.000Z
test/test_full_report_schema_all_of.py
intel471/titan-client-python
b12a2bc73604cf1a7cb0b6e97c81b5af9dee7bfe
[ "MIT" ]
1
2021-09-16T18:12:22.000Z
2021-09-22T16:12:11.000Z
test/test_full_report_schema_all_of.py
intel471/titan-client-python
b12a2bc73604cf1a7cb0b6e97c81b5af9dee7bfe
[ "MIT" ]
null
null
null
# coding: utf-8 """ Titan API v1 # Introduction The Intel 471 API is organized around the principles of REST. Our API lets you gather results from our platform with anything that can send a HTTP request, including cURL and modern internet browsers. Access to this API requires an API token which is managed fro...
127.381818
5,526
0.738224
d2a0621dfc4b5a82a4bd263afbfd7a31e9c00b58
47
py
Python
jaseci_kit/jaseci_kit/use_enc.py
Gorgeous-Patrick/jaseci
b423165fefbbc9574cd4467ee05728add7f47e5a
[ "MIT" ]
6
2021-10-30T03:35:36.000Z
2022-02-10T02:06:18.000Z
jaseci_kit/jaseci_kit/use_enc.py
Gorgeous-Patrick/jaseci
b423165fefbbc9574cd4467ee05728add7f47e5a
[ "MIT" ]
85
2021-10-29T22:47:39.000Z
2022-03-31T06:11:52.000Z
jaseci_kit/jaseci_kit/use_enc.py
Gorgeous-Patrick/jaseci
b423165fefbbc9574cd4467ee05728add7f47e5a
[ "MIT" ]
12
2021-11-03T17:29:22.000Z
2022-03-30T16:01:53.000Z
from .modules.use_enc.use_enc import * # noqa
23.5
46
0.744681
52091e4c08e04730fa8855eec21e9f7041fb964b
890
py
Python
setup.py
AnnikaCodes/ps-client
3abd518491b0b06a2463a1f251d4effebf468ef5
[ "MIT" ]
2
2020-07-03T18:19:25.000Z
2020-07-27T03:43:03.000Z
setup.py
AnnikaCodes/ps-client
3abd518491b0b06a2463a1f251d4effebf468ef5
[ "MIT" ]
null
null
null
setup.py
AnnikaCodes/ps-client
3abd518491b0b06a2463a1f251d4effebf468ef5
[ "MIT" ]
null
null
null
"""setup.py sets up the module by Annika, template from https://packaging.python.org/tutorials/packaging-projects/""" import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="ps-client", version="0.0.8", author="Annika", author_email="annik...
27.8125
90
0.653933
370d309157fe8ad9d484c2b9de43c1de7cdececc
7,899
py
Python
backend/fireflame_34285/settings.py
crowdbotics-apps/fireflame-34285
95d1c69b1210cbc9853704e014971823f8df25a8
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/fireflame_34285/settings.py
crowdbotics-apps/fireflame-34285
95d1c69b1210cbc9853704e014971823f8df25a8
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/fireflame_34285/settings.py
crowdbotics-apps/fireflame-34285
95d1c69b1210cbc9853704e014971823f8df25a8
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for fireflame_34285 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
30.380769
112
0.736802
8758b24b7a4ee53ad8353c79ad018f8764fe8dba
19,528
py
Python
service/surf/vendor/elasticsearch/api.py
nppo/search-portal
aedf21e334f178c049f9d6cf37cafd6efc07bc0d
[ "MIT" ]
1
2022-01-10T00:26:12.000Z
2022-01-10T00:26:12.000Z
service/surf/vendor/elasticsearch/api.py
nppo/search-portal
aedf21e334f178c049f9d6cf37cafd6efc07bc0d
[ "MIT" ]
48
2021-11-11T13:43:09.000Z
2022-03-30T11:33:37.000Z
service/surf/vendor/elasticsearch/api.py
nppo/search-portal
aedf21e334f178c049f9d6cf37cafd6efc07bc0d
[ "MIT" ]
null
null
null
import boto3 from collections import defaultdict from django.conf import settings from elasticsearch import Elasticsearch, RequestsHttpConnection from requests_aws4auth import AWS4Auth from project.configuration import SEARCH_FIELDS from surf.vendor.elasticsearch.serializers import SearchResultSerializer class Elas...
39.212851
120
0.545678
c6b614b4823fc11e5d9c7275c261f6a66e6c021d
13,932
py
Python
contrib/gitian-build.py
blenda123/labx
2d6495c3e93fe6e6b734d5bc183d09821a3d0991
[ "MIT" ]
3
2019-07-14T15:43:43.000Z
2020-09-17T04:01:50.000Z
contrib/gitian-build.py
blenda123/labx
2d6495c3e93fe6e6b734d5bc183d09821a3d0991
[ "MIT" ]
null
null
null
contrib/gitian-build.py
blenda123/labx
2d6495c3e93fe6e6b734d5bc183d09821a3d0991
[ "MIT" ]
5
2019-04-30T22:18:20.000Z
2020-07-02T21:20:02.000Z
#!/usr/bin/env python3 import argparse import os import subprocess import sys def setup(): global args, workdir programs = ['ruby', 'git', 'apt-cacher-ng', 'make', 'wget'] if args.kvm: programs += ['python-vm-builder', 'qemu-kvm', 'qemu-utils'] elif args.docker: dockers = ['docker.io',...
55.951807
231
0.641545
cbfbf6edd363af8df55d8558e0ee275bd8db2e73
11,516
py
Python
tests-asyncio/test_asyncio_based_service.py
cburgdorf/async-service
04bbca368b0dfdeb87e8f9ff871ffb23a27b01ee
[ "MIT" ]
null
null
null
tests-asyncio/test_asyncio_based_service.py
cburgdorf/async-service
04bbca368b0dfdeb87e8f9ff871ffb23a27b01ee
[ "MIT" ]
null
null
null
tests-asyncio/test_asyncio_based_service.py
cburgdorf/async-service
04bbca368b0dfdeb87e8f9ff871ffb23a27b01ee
[ "MIT" ]
null
null
null
import asyncio import pytest from async_service import ( AsyncioManager, DaemonTaskExit, Service, as_service, background_asyncio_service, ) class WaitCancelledService(Service): async def run(self) -> None: await self.manager.wait_cancelled() async def do_service_lifecycle_check( ...
29.757106
86
0.709708
c5e715aa368c5f69b46b85168ee56a146a3eb0b9
5,559
py
Python
syft/generic/object_storage.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
null
null
null
syft/generic/object_storage.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
null
null
null
syft/generic/object_storage.py
NicoSerranoP/PySyft
87fcd566c46fce4c16d363c94396dd26bd82a016
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from typing import Union from syft.exceptions import ObjectNotFoundError from syft.generic.frameworks.types import FrameworkTensor from syft.generic.frameworks.types import FrameworkTensorType from syft.generic.abstract.tensor import AbstractTensor from syft.workers.abstract import ...
33.896341
99
0.607124
43509855ed58236941b50167586487fdff5873d9
2,939
py
Python
src/model/strict_balance.py
CVbluecat/TIPS
823974f418bbd970b1f5be07f6ff5de4653f717e
[ "MIT" ]
null
null
null
src/model/strict_balance.py
CVbluecat/TIPS
823974f418bbd970b1f5be07f6ff5de4653f717e
[ "MIT" ]
null
null
null
src/model/strict_balance.py
CVbluecat/TIPS
823974f418bbd970b1f5be07f6ff5de4653f717e
[ "MIT" ]
null
null
null
from queue import Queue from generateAST import TreeNode import copy # tranverse the tree to find the defect node def BFSGetNode(ast, num): nodeQ = Queue() nodeQ.put(ast) # root while(not nodeQ.empty()): tmpNode = nodeQ.get() if tmpNode.beginPoint == num: return tmpNode ...
38.671053
98
0.59442
078accd634f124f1b431bbddc173f3d152aa0d0e
16,846
py
Python
synapse/handlers/account_validity.py
warricksothr/synapse
1de26b346796ec8d6b51b4395017f8107f640c47
[ "Apache-2.0" ]
2
2021-04-22T21:46:34.000Z
2021-04-26T16:48:40.000Z
synapse/handlers/account_validity.py
warricksothr/synapse
1de26b346796ec8d6b51b4395017f8107f640c47
[ "Apache-2.0" ]
1
2021-09-11T08:34:56.000Z
2021-09-11T08:34:56.000Z
synapse/handlers/account_validity.py
warricksothr/synapse
1de26b346796ec8d6b51b4395017f8107f640c47
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 law or agreed to in writin...
40.88835
91
0.657664
f2438a7574393cdc20a3d3f44a7ecb13bec52e1e
51,836
py
Python
tests/test_tenacity.py
zbentley/tenacity
58fbe614433212e27484f70ed7984f33b1bdb707
[ "Apache-2.0" ]
null
null
null
tests/test_tenacity.py
zbentley/tenacity
58fbe614433212e27484f70ed7984f33b1bdb707
[ "Apache-2.0" ]
null
null
null
tests/test_tenacity.py
zbentley/tenacity
58fbe614433212e27484f70ed7984f33b1bdb707
[ "Apache-2.0" ]
null
null
null
# Copyright 2016–2021 Julien Danjou # Copyright 2016 Joshua Harlow # Copyright 2013 Ray Holder # # 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 #...
34.580387
120
0.648121
58feafe71d00210353b53cbd086de2a6339f9331
425
py
Python
web/accounts/urls.py
samuelfirst/nemoobot
b74ad66d4f2052eaba14e4b79e20c3da274b5909
[ "MIT" ]
1
2021-01-30T09:19:37.000Z
2021-01-30T09:19:37.000Z
web/accounts/urls.py
samuelfirst/nemoobot
b74ad66d4f2052eaba14e4b79e20c3da274b5909
[ "MIT" ]
2
2020-12-21T20:57:19.000Z
2021-01-26T08:08:09.000Z
web/accounts/urls.py
samuelfirst/nemoobot
b74ad66d4f2052eaba14e4b79e20c3da274b5909
[ "MIT" ]
1
2020-12-22T07:42:42.000Z
2020-12-22T07:42:42.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('signup/', views.signup, name='signup'), path( 'connect_to_twitch/', views.connect_to_twicth, name='connect_to_twitch' ), path('profile/', views.profile, name='profile'...
26.5625
55
0.621176
0808352ccd16110d1969f1288992d0198bf5ff7b
7,803
py
Python
www/sshop/views/Shop.py
Tiaonmmn/CISCN_2019
beb4a97320c9d66d6aa56831b2752a6af3fec141
[ "Unlicense" ]
null
null
null
www/sshop/views/Shop.py
Tiaonmmn/CISCN_2019
beb4a97320c9d66d6aa56831b2752a6af3fec141
[ "Unlicense" ]
null
null
null
www/sshop/views/Shop.py
Tiaonmmn/CISCN_2019
beb4a97320c9d66d6aa56831b2752a6af3fec141
[ "Unlicense" ]
1
2020-07-17T14:17:50.000Z
2020-07-17T14:17:50.000Z
# -*- coding:utf-8 -*- import tornado.web from sqlalchemy.orm.exc import NoResultFound import urllib import unicodedata from sshop.base import BaseHandler from sshop.models import Commodity, User, Shopcar, BanIP from sshop.settings import limit import traceback import random import sys reload(sys) sys.setdefaultencodin...
42.639344
146
0.550173
916260c4cee7e8796f3cb995b381a8493368e461
20,424
py
Python
PythonAPI/carissma_project/lib/python3.5/site-packages/pandas/tests/indexes/period/test_construction.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
PythonAPI/carissma_project/lib/python3.5/site-packages/pandas/tests/indexes/period/test_construction.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
PythonAPI/carissma_project/lib/python3.5/site-packages/pandas/tests/indexes/period/test_construction.py
AbdulHoffmann/carla_carissma
8d382769ffa02a6c61a22c57160285505f5ff0a4
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
import numpy as np import pytest from pandas.compat import PY3, lmap, lrange, text_type from pandas.core.dtypes.dtypes import PeriodDtype import pandas as pd from pandas import ( Index, Period, PeriodIndex, Series, date_range, offsets, period_range) import pandas.core.indexes.period as period import pandas.util....
39.276923
79
0.578976
f9adecd8fabbd495baeaad029830fe4ee2d12dbe
31,917
py
Python
deucevalere/client/valere.py
BenjamenMeyer/deuce-valere
e9ba7d96825e81e51ddd5f99f1464990969a8f07
[ "Apache-2.0" ]
null
null
null
deucevalere/client/valere.py
BenjamenMeyer/deuce-valere
e9ba7d96825e81e51ddd5f99f1464990969a8f07
[ "Apache-2.0" ]
null
null
null
deucevalere/client/valere.py
BenjamenMeyer/deuce-valere
e9ba7d96825e81e51ddd5f99f1464990969a8f07
[ "Apache-2.0" ]
null
null
null
""" Deuce Valere - Client - Valere """ import datetime import logging from deuceclient.api import Block from deuceclient.common import errors as deuce_errors from stoplight import validate from deucevalere.common.validation import * from deucevalere.common.validation_instance import * class ValereClient(object): ...
47.566319
79
0.480935
f6015e5c8472153234087c50b234d5567924b3f4
1,322
py
Python
migrations/versions/f60b3448eeb8_granular_olink_facet_groups.py
CIMAC-CIDC/cidc-api-gae
23f31c6d5b7f16c121001192822f92fb88395652
[ "MIT" ]
null
null
null
migrations/versions/f60b3448eeb8_granular_olink_facet_groups.py
CIMAC-CIDC/cidc-api-gae
23f31c6d5b7f16c121001192822f92fb88395652
[ "MIT" ]
54
2019-08-09T19:49:11.000Z
2022-01-26T21:36:08.000Z
migrations/versions/f60b3448eeb8_granular_olink_facet_groups.py
CIMAC-CIDC/cidc-api-gae
23f31c6d5b7f16c121001192822f92fb88395652
[ "MIT" ]
4
2019-07-24T12:26:49.000Z
2021-09-29T19:02:01.000Z
"""Granular Olink facet groups Revision ID: f60b3448eeb8 Revises: 26ba8b4e9b51 Create Date: 2020-09-28 08:35:51.265610 """ from alembic import op import sqlalchemy as sa from cidc_api.models import Session, DownloadableFiles # revision identifiers, used by Alembic. revision = "f60b3448eeb8" down_revision = "26ba8b4...
25.423077
77
0.666415
206db63aa1509ea357228e27440965cf48f5453c
862
py
Python
coding_interview/66.py
smartx-jshan/Coding_Practice
bc7d485e7992031e55df62483818b721ad7d1d4f
[ "Apache-2.0" ]
null
null
null
coding_interview/66.py
smartx-jshan/Coding_Practice
bc7d485e7992031e55df62483818b721ad7d1d4f
[ "Apache-2.0" ]
null
null
null
coding_interview/66.py
smartx-jshan/Coding_Practice
bc7d485e7992031e55df62483818b721ad7d1d4f
[ "Apache-2.0" ]
null
null
null
class Solution: def search(self, nums: List[int], target: int) -> int: if not nums: return -1 # find minimal value left = 0 right= len(nums) -1 while left < right: mid = left + (right-left) // 2 if nu...
24.628571
58
0.390951
f7290948c42d8e7aa37006897fa91645c005e290
339
py
Python
ironsms/exceptions/limits.py
viuipan/ironsmslib
0d494ea08a6bcdd0f11f32e88baccd3555b5a0b3
[ "MIT" ]
null
null
null
ironsms/exceptions/limits.py
viuipan/ironsmslib
0d494ea08a6bcdd0f11f32e88baccd3555b5a0b3
[ "MIT" ]
null
null
null
ironsms/exceptions/limits.py
viuipan/ironsmslib
0d494ea08a6bcdd0f11f32e88baccd3555b5a0b3
[ "MIT" ]
null
null
null
from .base import APIException class LimitActiveException(APIException): message = "LIMIT_ACTIVE" description = "number activation has already been completed" limit: int def __init__(self, response): self.limit = response['limit'] super(LimitActiveException, self).__init__(description...
28.25
80
0.731563