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
4a5148333f31c4597e7614726735b54546105dbc
95
py
Python
EncryptionSystems/Exponential.py
Sirius2051/atbash
cda11c9f0c99e20a2350fd3a8a7ef1a61fe269a9
[ "Apache-2.0" ]
null
null
null
EncryptionSystems/Exponential.py
Sirius2051/atbash
cda11c9f0c99e20a2350fd3a8a7ef1a61fe269a9
[ "Apache-2.0" ]
null
null
null
EncryptionSystems/Exponential.py
Sirius2051/atbash
cda11c9f0c99e20a2350fd3a8a7ef1a61fe269a9
[ "Apache-2.0" ]
null
null
null
class Exponential: def __init__(self): self.rules = "" def Convertion(self, text): pass
13.571429
28
0.684211
a36cf9078f94af041fe749ab4f012a2e70eeac34
663
py
Python
spirit/topic/utils.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
1
2020-12-08T01:09:30.000Z
2020-12-08T01:09:30.000Z
spirit/topic/utils.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
16
2015-08-10T18:28:18.000Z
2022-03-11T23:12:48.000Z
spirit/topic/utils.py
StepanBakshayev/Spirit
28c053983d8323801d022c5314af7fdff4569228
[ "MIT" ]
6
2018-06-25T02:17:53.000Z
2020-12-08T01:09:32.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from ..comment.bookmark.models import CommentBookmark from .notification.models import TopicNotification from .unread.models import TopicUnread def topic_viewed(request, topic): # Todo test detail views user = request.user comment_number = ...
30.136364
87
0.75264
02b55fc7ddb52d0664e4c72539a6571c7f1b8d2e
4,153
py
Python
dev_tools/parsers/extract_propery_from_csv.py
rbertran/microprobe
232b60aad88b3541de1a962d6da924b234cd521c
[ "Apache-2.0" ]
2
2019-11-20T18:29:02.000Z
2019-11-20T18:29:05.000Z
dev_tools/parsers/extract_propery_from_csv.py
rbertran/microprobe
232b60aad88b3541de1a962d6da924b234cd521c
[ "Apache-2.0" ]
null
null
null
dev_tools/parsers/extract_propery_from_csv.py
rbertran/microprobe
232b60aad88b3541de1a962d6da924b234cd521c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 IBM Corporation # # 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 ...
26.119497
76
0.628702
9ac60571abc21c6a67dc758c4fb54537ece547b5
1,678
py
Python
insta/views.py
jinka/Inst-Photo-App
4c64033d800951855d9c6185506e0f2f3c830ba3
[ "MIT" ]
null
null
null
insta/views.py
jinka/Inst-Photo-App
4c64033d800951855d9c6185506e0f2f3c830ba3
[ "MIT" ]
null
null
null
insta/views.py
jinka/Inst-Photo-App
4c64033d800951855d9c6185506e0f2f3c830ba3
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin from django.views.generic import ListView, DetailView, CreateView, UpdateView from .models import Image from django.contrib.auth.decorators import login_required from .email import send_welcome_email @log...
27.966667
78
0.697259
60f7cc3fe0928a459753f4e3c8ee1c472c9ce8e2
615
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/numtrees_200/rule_161.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/numtrees_200/rule_161.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/numtrees_200/rule_161.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Driving_to, obj[1]: Passanger, obj[2]: Weather, obj[3]: Temperature, obj[4]: Time, obj[5]: Coupon, obj[6]: Coupon_validity, obj[7]: Gender, obj[8]: Age, obj[9]: Maritalstatus, obj[10]: Children, obj[11]: Education, obj[12]: Occupation, obj[13]: Income, obj[14]: Bar, obj[15]: Coffeehouse,...
76.875
441
0.678049
9343632d9f140fbf1062b66ad13c2a6e1127323b
157
py
Python
tests/test_temporal.py
fahadalisarwar1/soundly
d9ba95bc8edbc760d9c6199178fd9d07aeddee6d
[ "MIT" ]
null
null
null
tests/test_temporal.py
fahadalisarwar1/soundly
d9ba95bc8edbc760d9c6199178fd9d07aeddee6d
[ "MIT" ]
null
null
null
tests/test_temporal.py
fahadalisarwar1/soundly
d9ba95bc8edbc760d9c6199178fd9d07aeddee6d
[ "MIT" ]
null
null
null
from soundly.features.statistical import get_max import numpy as np def test_max(): arr = np.array([1, 2, 3, 4, 5, 6, 7]) assert get_max(arr) == 7
19.625
48
0.656051
a18246e2df817ec3fdc229e249079833bf2a75a2
2,514
py
Python
python/spark_dbconnect/__init__.py
jholycross/spark-esri
c8635777d17c8f4c22a0c098e2fa606f8b614371
[ "Apache-2.0" ]
18
2020-07-31T14:08:16.000Z
2022-02-07T19:12:46.000Z
python/spark_dbconnect/__init__.py
jholycross/spark-esri
c8635777d17c8f4c22a0c098e2fa606f8b614371
[ "Apache-2.0" ]
1
2020-08-07T01:02:52.000Z
2021-06-30T17:08:38.000Z
python/spark_dbconnect/__init__.py
jholycross/spark-esri
c8635777d17c8f4c22a0c098e2fa606f8b614371
[ "Apache-2.0" ]
8
2020-07-31T16:21:07.000Z
2022-02-16T15:17:34.000Z
# # Code borrowed and modified from https://www.esri.com/arcgis-blog/products/arcgis-pro/health/use-proximity-tracing-to-identify-possible-contact-events/ # import os import subprocess from typing import Dict import arcpy from pyspark import SparkConf, SparkContext from pyspark.sql import SparkSession from spark.java...
37.522388
152
0.68218
615ed6e075e901fd64e316ba646cbf3c33d4b645
7,180
py
Python
examples/nativeMode/teleport/aliceTest.py
WrathfulSpatula/SimulaQron
eaa5548df2f992e187ee70ccd81f192a1ce93e14
[ "BSD-3-Clause" ]
null
null
null
examples/nativeMode/teleport/aliceTest.py
WrathfulSpatula/SimulaQron
eaa5548df2f992e187ee70ccd81f192a1ce93e14
[ "BSD-3-Clause" ]
null
null
null
examples/nativeMode/teleport/aliceTest.py
WrathfulSpatula/SimulaQron
eaa5548df2f992e187ee70ccd81f192a1ce93e14
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2017, Stephanie Wehner and Axel Dahlberg # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # notice, this lis...
40.337079
104
0.691783
aac6f7e9de31909b95e6ac76a883b707dbbd9c55
72
py
Python
pyhac/module/__init__.py
zroger49/hac
5905369344c985d5293d572a610c82308306e385
[ "Apache-2.0" ]
28
2021-08-18T09:33:30.000Z
2021-11-08T09:14:35.000Z
pyhac/module/__init__.py
zroger49/hac
5905369344c985d5293d572a610c82308306e385
[ "Apache-2.0" ]
3
2021-08-19T14:01:25.000Z
2021-09-06T10:57:46.000Z
pyhac/module/__init__.py
zroger49/hac
5905369344c985d5293d572a610c82308306e385
[ "Apache-2.0" ]
4
2021-08-12T02:35:17.000Z
2021-09-21T18:35:16.000Z
from .module import Module from .control import MouseControl, KeyControl
36
45
0.847222
3ab1491bf594c963c00a5aa650cd0b9000f36ff8
3,186
py
Python
src/labpyrinth/geometry.py
alistair-broomhead/labpyrinth
0bc8481f3975019b3a64120d9758345e7f178e00
[ "BSD-3-Clause" ]
null
null
null
src/labpyrinth/geometry.py
alistair-broomhead/labpyrinth
0bc8481f3975019b3a64120d9758345e7f178e00
[ "BSD-3-Clause" ]
null
null
null
src/labpyrinth/geometry.py
alistair-broomhead/labpyrinth
0bc8481f3975019b3a64120d9758345e7f178e00
[ "BSD-3-Clause" ]
null
null
null
import itertools import typing from pygame.math import Vector2 class Coordinate: def __init__(self, x, y): self.x = x self.y = y def __eq__(self, other): x, y = other return x == self.x and y == self.y def __repr__(self): return f'{type(self).__name__}{*self,}' ...
23.954887
73
0.596045
04668f406a3cd714bff1a2c5bdd134765b0c46a7
417
py
Python
web/setup.py
euri16/python-url-shortener
f54b8b0c1f1370747b3e1aafb87bc6b94e26a18d
[ "Apache-2.0" ]
null
null
null
web/setup.py
euri16/python-url-shortener
f54b8b0c1f1370747b3e1aafb87bc6b94e26a18d
[ "Apache-2.0" ]
null
null
null
web/setup.py
euri16/python-url-shortener
f54b8b0c1f1370747b3e1aafb87bc6b94e26a18d
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name="UrlShortener", version="1.0", author="Eury Pérez", classifiers=[ "Development Status :: 1 - Planning" ], install_requires=[ "Flask", "Flask-SQLAlchemy", "SQLAlchemy", "Flask-Cache", "uWSGI", "pass...
18.130435
45
0.503597
a6262d9805342265ccd5337c025031024f83b09a
4,774
py
Python
stages/stage 5.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
stages/stage 5.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
stages/stage 5.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
from enemy import enemy import stage import player import pygame as pg from player import fire pg.init() r = (255,0,0) display = pg.display.set_mode((900,600)) clock = pg.time.Clock() bullet1 = pg.mixer.Sound('audio/1.wav') bullet2 = pg.mixer.Sound('audio/2.wav') #sound.play() music = pg.mixer.music.load('audio/dvs.mp...
32.69863
198
0.514244
a9bbb2a2ae31a4a05044ac0194b9494e7c241a8a
870
py
Python
test/system/volume/UNMOUNT_VOL_BASIC_1.py
YongJin-Cho/poseidonos
c07a0240316d4536aa09f22d7977604f3650d752
[ "BSD-3-Clause" ]
null
null
null
test/system/volume/UNMOUNT_VOL_BASIC_1.py
YongJin-Cho/poseidonos
c07a0240316d4536aa09f22d7977604f3650d752
[ "BSD-3-Clause" ]
null
null
null
test/system/volume/UNMOUNT_VOL_BASIC_1.py
YongJin-Cho/poseidonos
c07a0240316d4536aa09f22d7977604f3650d752
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import subprocess import os import sys import json sys.path.append("../lib/") sys.path.append("../array/") import json_parser import pos import cli import test_result import MOUNT_VOL_BASIC_1 VOL_NAME = MOUNT_VOL_BASIC_1.VOL_NAME ARRAYNAME = MOUNT_VOL_BASIC_1.ARRAYNAME def clear_result(): ...
23.513514
74
0.696552
bc5f6b4436c9932d78570fcdc1f9f0f54f55d5b4
611
py
Python
test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/_operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
35
2018-04-03T12:15:53.000Z
2022-03-11T14:03:34.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/_operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
652
2017-08-28T22:44:41.000Z
2022-03-31T21:20:31.000Z
test/vanilla/version-tolerant/Expected/AcceptanceTests/MultipleInheritanceVersionTolerant/multipleinheritanceversiontolerant/aio/_operations/__init__.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
29
2017-08-28T20:57:01.000Z
2022-03-11T14:03:38.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.642857
94
0.602291
e708202c46ca8f3cbf9944bfac96d302904376e8
44,367
py
Python
cirq-core/cirq/circuits/circuit_operation_test.py
Nexuscompute/Cirq
640ef8f82d6a56ec95361388ce7976e096cca906
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/circuits/circuit_operation_test.py
Nexuscompute/Cirq
640ef8f82d6a56ec95361388ce7976e096cca906
[ "Apache-2.0" ]
4
2022-01-16T14:12:15.000Z
2022-02-24T03:58:46.000Z
cirq-core/cirq/circuits/circuit_operation_test.py
Nexuscompute/Cirq
640ef8f82d6a56ec95361388ce7976e096cca906
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.849668
117
0.642099
0c2815fb10ef23fd9bf46d7e2a323823b4c02653
2,662
py
Python
mayan/apps/events/links.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2021-06-17T18:24:25.000Z
2021-06-17T18:24:25.000Z
mayan/apps/events/links.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
7
2020-06-06T00:01:04.000Z
2022-01-13T01:47:17.000Z
mayan/apps/events/links.py
Syunkolee9891/Mayan-EDMS
3759a9503a264a180b74cc8518388f15ca66ac1a
[ "Apache-2.0" ]
1
2020-07-29T21:03:27.000Z
2020-07-29T21:03:27.000Z
from __future__ import unicode_literals from django.apps import apps from django.utils.translation import ugettext_lazy as _ from mayan.apps.navigation.classes import Link from .icons import ( icon_events_list, icon_events_for_object, icon_event_types_subscriptions_list, icon_object_event_types_user_subc...
31.690476
72
0.745304
3b4cd2784053319a8e29f158bd70768576959baf
118,528
py
Python
python/cudf/cudf/core/column/string.py
vuule/cudf
efebcd1452692ee15f3d30627a9ef3d0cafa85d5
[ "Apache-2.0" ]
null
null
null
python/cudf/cudf/core/column/string.py
vuule/cudf
efebcd1452692ee15f3d30627a9ef3d0cafa85d5
[ "Apache-2.0" ]
1
2022-01-18T19:36:35.000Z
2022-01-18T19:36:35.000Z
python/cudf/cudf/core/column/string.py
vuule/cudf
efebcd1452692ee15f3d30627a9ef3d0cafa85d5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2019-2020, NVIDIA CORPORATION. import pickle import warnings from codecs import decode import numpy as np import pandas as pd import pyarrow as pa import cudf._lib as libcudf import cudf._lib.string_casting as str_cast from cudf._lib.nvtext.generate_ngrams import ( generate_ngrams as cpp_generate...
29.991903
119
0.532836
5fdde393ccfdc10a80261cf7572774c756f0f070
6,122
py
Python
cupy/cuda/curand.py
ytoyama/yans_chainer_hackathon
744e7a5a67da8dec2869879f0adfae2d43eaf75c
[ "MIT" ]
null
null
null
cupy/cuda/curand.py
ytoyama/yans_chainer_hackathon
744e7a5a67da8dec2869879f0adfae2d43eaf75c
[ "MIT" ]
null
null
null
cupy/cuda/curand.py
ytoyama/yans_chainer_hackathon
744e7a5a67da8dec2869879f0adfae2d43eaf75c
[ "MIT" ]
null
null
null
"""Thin wrapper of cuRAND.""" import ctypes import sys from cupy.cuda import internal from cupy.cuda import runtime if 'win32' == sys.platform: _curand = internal.load_library( internal.get_windows_cuda_library_names('curand')) else: _curand = internal.load_library('curand') _I = ctypes.c_int _U = ct...
27.452915
79
0.68801
5dbb0abe7674012a4fd4825b80c89d5d9e4ef0ce
8,097
py
Python
tests/prediction_latency_test/prepare.py
yarenty/mindsdb
9164bca6f45fd0f5ec329babe973f286ffe59709
[ "MIT" ]
null
null
null
tests/prediction_latency_test/prepare.py
yarenty/mindsdb
9164bca6f45fd0f5ec329babe973f286ffe59709
[ "MIT" ]
null
null
null
tests/prediction_latency_test/prepare.py
yarenty/mindsdb
9164bca6f45fd0f5ec329babe973f286ffe59709
[ "MIT" ]
null
null
null
import os import atexit import importlib.util import time import csv from subprocess import Popen import pandas as pd import docker import requests import psutil import schemas as schema from config import CONFIG class Dataset: def __init__(self, name, **kwargs): self.name = name self.target = k...
29.768382
100
0.595529
8ea731d9a9b1c3c4223268cca1da10a854715f58
1,599
py
Python
test/try_hdfs.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
1
2017-11-16T02:13:15.000Z
2017-11-16T02:13:15.000Z
test/try_hdfs.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
null
null
null
test/try_hdfs.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
null
null
null
# BEGIN_COPYRIGHT # # Copyright 2009-2014 CRS4. # # 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...
27.101695
77
0.710444
74a8f2466360fceb866dbe69cfd8b4f4c376a38d
10,011
py
Python
sparse_operation_kit/sparse_operation_kit/core/initialize.py
aalbersk/DeepRec
f673a950780959b44dcda99398880a1d883ab338
[ "Apache-2.0" ]
292
2021-12-24T03:24:33.000Z
2022-03-31T15:41:05.000Z
sparse_operation_kit/sparse_operation_kit/core/initialize.py
aalbersk/DeepRec
f673a950780959b44dcda99398880a1d883ab338
[ "Apache-2.0" ]
54
2021-12-24T06:40:09.000Z
2022-03-30T07:57:24.000Z
sparse_operation_kit/sparse_operation_kit/core/initialize.py
aalbersk/DeepRec
f673a950780959b44dcda99398880a1d883ab338
[ "Apache-2.0" ]
75
2021-12-24T04:48:21.000Z
2022-03-29T10:13:39.000Z
# # Copyright (c) 2021, NVIDIA CORPORATION. # # 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...
42.240506
110
0.60014
5f6b846487b83c9be86f878ba14a6b4843e90211
23,520
py
Python
planners/rrdtPlanner.py
jkwang1992/rrdt
5579081fc53f56573c772ff9a894c0093e0bc5e0
[ "MIT" ]
8
2019-05-21T04:40:53.000Z
2020-10-17T07:20:04.000Z
planners/rrdtPlanner.py
soraxas/rrdt
5579081fc53f56573c772ff9a894c0093e0bc5e0
[ "MIT" ]
null
null
null
planners/rrdtPlanner.py
soraxas/rrdt
5579081fc53f56573c772ff9a894c0093e0bc5e0
[ "MIT" ]
3
2021-07-16T07:06:14.000Z
2022-02-09T12:06:06.000Z
import logging import random from overrides import overrides from checkCollision import * from helpers import * from planners.particleFilterSampler import (ENERGY_START, RANDOM_RESTART_PARTICLES_ENERGY_UNDER, Particle, ParticleFil...
40.551724
124
0.580612
ec443a38acb01b203cda05b716c5ce5f3cf3575a
1,694
py
Python
sdk/identity/azure-identity/azure/identity/_constants.py
lsundaralingam/azure-sdk-for-python
538a5055b4330c6b324fa54a00e96d73d882fa63
[ "MIT" ]
1
2021-04-26T21:15:01.000Z
2021-04-26T21:15:01.000Z
sdk/identity/azure-identity/azure/identity/_constants.py
lsundaralingam/azure-sdk-for-python
538a5055b4330c6b324fa54a00e96d73d882fa63
[ "MIT" ]
1
2021-01-19T22:41:38.000Z
2021-01-19T22:41:38.000Z
sdk/identity/azure-identity/azure/identity/_constants.py
lsundaralingam/azure-sdk-for-python
538a5055b4330c6b324fa54a00e96d73d882fa63
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ DEVELOPER_SIGN_ON_CLIENT_ID = "04b07795-8ddb-461a-bbee-02f9e1bf7b46" AZURE_VSCODE_CLIENT_ID = "aebc6443-996d-45c2-90f0-388ff96faa56" VSCODE_CREDENTIALS_SECTION = "VS C...
35.291667
81
0.757379
28ee36b6510d97df2cc947ff298c8faccc8a66b7
1,288
py
Python
custom_imports/file_module/ext_finder.py
madman-bob/python-custom-imports
e9d6979865bfde5f149a2190d8f2895d333ab219
[ "MIT" ]
null
null
null
custom_imports/file_module/ext_finder.py
madman-bob/python-custom-imports
e9d6979865bfde5f149a2190d8f2895d333ab219
[ "MIT" ]
1
2020-05-21T02:36:07.000Z
2020-05-21T12:55:24.000Z
custom_imports/file_module/ext_finder.py
madman-bob/python-custom-imports
e9d6979865bfde5f149a2190d8f2895d333ab219
[ "MIT" ]
null
null
null
import sys from dataclasses import dataclass from pathlib import Path from types import ModuleType from typing import Iterable, Optional from custom_imports.importer import Finder __all__ = ["FileModuleExtensionFinder"] @dataclass(frozen=True) class FileModuleExtensionFinder(Finder[Path]): """ Finder for fi...
31.414634
86
0.709627
38c97db66a92e3e65d4bf78d2a5f12f8f118c9a1
3,214
py
Python
optlang_enumerator/cobra_cnapy.py
cnapy-org/optlang_enumerator
4a754608bc1aa142c2ad5f27834868ab6b1ca9a8
[ "Apache-2.0" ]
2
2021-08-30T13:52:35.000Z
2021-08-30T17:57:18.000Z
optlang_enumerator/cobra_cnapy.py
cnapy-org/optlang_enumerator
4a754608bc1aa142c2ad5f27834868ab6b1ca9a8
[ "Apache-2.0" ]
null
null
null
optlang_enumerator/cobra_cnapy.py
cnapy-org/optlang_enumerator
4a754608bc1aa142c2ad5f27834868ab6b1ca9a8
[ "Apache-2.0" ]
2
2021-05-07T15:18:20.000Z
2021-11-15T10:38:35.000Z
import cobra from cobra.util.context import get_context from functools import partial import hashlib import pickle """ Extensions of cobra classes used in optlang_enumerator """ def set_hash_value(self): context = get_context(self) if context: context(partial(self.restore_hash_value, self._hash_value)...
36.11236
117
0.757934
2078530ddd9cd08fb2d656a9dd3d50de0d863cfb
2,110
py
Python
src/get_reference_metadata.py
Fnyasimi/summary-gwas-imputation
eb6c744fd30afd707dbdc81cf2e73723e8b6416c
[ "MIT" ]
20
2018-12-26T09:51:32.000Z
2022-01-22T17:21:14.000Z
src/get_reference_metadata.py
Fnyasimi/summary-gwas-imputation
eb6c744fd30afd707dbdc81cf2e73723e8b6416c
[ "MIT" ]
14
2019-12-06T17:52:32.000Z
2022-03-24T15:45:11.000Z
src/get_reference_metadata.py
Fnyasimi/summary-gwas-imputation
eb6c744fd30afd707dbdc81cf2e73723e8b6416c
[ "MIT" ]
18
2019-01-25T14:45:08.000Z
2022-03-11T20:41:35.000Z
#!/usr/bin/env python __author__ = "alvaro barbeira" import os import logging import pandas from genomic_tools_lib import Utilities, Logging from genomic_tools_lib.data_management import GTExMisc from genomic_tools_lib.file_formats import ModelTraining from genomic_tools_lib.individual_data import Genotype def run(a...
36.37931
144
0.708057
9d06a1cc7818dc356968666a60407b175ac2cb8f
674
py
Python
migrations/versions/cd9f3f359db1_add_setter_username.py
melodily/wordle-with-friends
2485c8b3127db3a921410463bab6a61f486aeb1d
[ "MIT" ]
null
null
null
migrations/versions/cd9f3f359db1_add_setter_username.py
melodily/wordle-with-friends
2485c8b3127db3a921410463bab6a61f486aeb1d
[ "MIT" ]
null
null
null
migrations/versions/cd9f3f359db1_add_setter_username.py
melodily/wordle-with-friends
2485c8b3127db3a921410463bab6a61f486aeb1d
[ "MIT" ]
null
null
null
"""Add setter username Revision ID: cd9f3f359db1 Revises: efa327561105 Create Date: 2022-02-06 13:55:24.170817 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cd9f3f359db1' down_revision = 'efa327561105' branch_labels = None depends_on = None def upgrade(): ...
23.241379
85
0.698813
2da520c9cac1ddc5dd7cced56642239f26b0e895
839
py
Python
oss_server/notification/urls.py
pallet-io/Pallet-API
fd3b8ed4c8063d9010ed53ace6ec068c983ae22e
[ "BSD-3-Clause" ]
10
2018-01-30T06:21:43.000Z
2022-01-03T12:18:07.000Z
oss_server/notification/urls.py
pallet-io/Pallet-API
fd3b8ed4c8063d9010ed53ace6ec068c983ae22e
[ "BSD-3-Clause" ]
4
2018-02-21T02:30:37.000Z
2018-03-04T05:20:30.000Z
oss_server/notification/urls.py
pallet-io/Pallet-API
fd3b8ed4c8063d9010ed53ace6ec068c983ae22e
[ "BSD-3-Clause" ]
2
2018-01-31T04:22:52.000Z
2018-03-10T14:04:35.000Z
from django.conf.urls import url from .v1.views import AddressSubscriptionCreateView, TxSubscriptionCreateView from .v1.views import AddressSubscriptionDetailView, TxSubscriptionDetailView from .v1.views import AddressSubscriptionDeleteView, TxSubscriptionDeleteView urlpatterns = [ url(r'^v1/address/subscription$...
55.933333
108
0.753278
db02fa4730e4ccf0343a9dece17b1d04ab515d80
1,195
py
Python
setup.py
ma-sadeghi/pardiso4py
f8396df2040be4e5d8c854a4bade116f6e658f67
[ "BSD-3-Clause" ]
6
2020-11-24T09:46:19.000Z
2022-01-12T13:22:51.000Z
setup.py
ma-sadeghi/pardiso4py
f8396df2040be4e5d8c854a4bade116f6e658f67
[ "BSD-3-Clause" ]
null
null
null
setup.py
ma-sadeghi/pardiso4py
f8396df2040be4e5d8c854a4bade116f6e658f67
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup setup( name='pypardiso', version="0.3.1", packages=['pypardiso'], install_requires=['mkl', 'mkl-service', 'numpy', 'scipy', 'psutil'], author="Adrian Haas", license=open('LICENSE.txt').read(), url="https://github.com/haasad/PyPardisoProject", long_descriptio...
39.833333
118
0.629289
7948659d614246078f34235e52dcb4383d957696
1,385
py
Python
ooobuild/dyn/xml/crypto/x_cipher_context.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/xml/crypto/x_cipher_context.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/dyn/xml/crypto/x_cipher_context.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
37.432432
88
0.768231
4b91ff41ca8f24fa293be7055456e91b81b261c7
2,435
py
Python
lib/googlecloudsdk/api_lib/dns/export_util.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/api_lib/dns/export_util.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/googlecloudsdk/api_lib/dns/export_util.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2014 Google LLC. 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 requir...
35.289855
74
0.708419
049f4ec0eeb5742da51514fcc9ce4fae477f4443
7,784
py
Python
neutron/db/migration/alembic_migrations/versions/52ff27f7567a_support_for_vpnaas.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
3
2015-02-02T02:51:39.000Z
2015-02-23T10:20:23.000Z
neutron/db/migration/alembic_migrations/versions/52ff27f7567a_support_for_vpnaas.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
4
2015-02-23T10:21:11.000Z
2015-03-04T09:28:20.000Z
neutron/db/migration/alembic_migrations/versions/52ff27f7567a_support_for_vpnaas.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 OpenStack 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 # # Unless required by applicable law ...
45.255814
79
0.659044
084d0879f1764536f425576ef0b45dc613b7cb3b
77,841
py
Python
Lib/test/test_patma.py
holmanb/cpython
9405a02f4c50e235d01d942bd91eb4bea2a86e96
[ "0BSD" ]
12
2021-04-22T14:52:17.000Z
2021-12-21T12:51:31.000Z
Lib/test/test_patma.py
holmanb/cpython
9405a02f4c50e235d01d942bd91eb4bea2a86e96
[ "0BSD" ]
14
2020-03-12T01:10:53.000Z
2022-01-01T14:00:53.000Z
Lib/test/test_patma.py
holmanb/cpython
9405a02f4c50e235d01d942bd91eb4bea2a86e96
[ "0BSD" ]
5
2021-04-25T22:26:29.000Z
2022-01-25T22:22:30.000Z
import array import collections import contextlib import dataclasses import enum import inspect import unittest import warnings def no_perf(f): f.no_perf = None return f @dataclasses.dataclass class MyClass: x: int y: str __match_args__ = ("x", "y") @dataclasses.dataclass class Point: x: i...
25.454872
131
0.425573
3c795cfd280db64cfac223774bbb98411012e7ea
2,499
py
Python
metadata_etl.py
DanielKnott95/TrueFilm
c859207bdd07ba0700d6326d6b83c568e6649724
[ "MIT" ]
null
null
null
metadata_etl.py
DanielKnott95/TrueFilm
c859207bdd07ba0700d6326d6b83c568e6649724
[ "MIT" ]
null
null
null
metadata_etl.py
DanielKnott95/TrueFilm
c859207bdd07ba0700d6326d6b83c568e6649724
[ "MIT" ]
null
null
null
import pyspark.sql.functions as F from pyspark.sql import SparkSession from pyspark.sql.types import StringType from SPARQLWrapper import SPARQLWrapper, JSON from pyspark.sql.functions import udf, desc from utils import setup_logger logger = setup_logger(__name__) sparql = SPARQLWrapper("https://query.wikidata.org/s...
37.298507
116
0.638255
4082f5868acb3240bd0b7da12ab9fc72defefe09
1,141
py
Python
setup.py
semicolom/django-tools-seo
9b16731949480fc25ad010811e528d22bf335bfb
[ "MIT" ]
2
2018-11-07T18:21:16.000Z
2021-07-09T21:57:41.000Z
setup.py
QPC-database/django-tools-seo
9b16731949480fc25ad010811e528d22bf335bfb
[ "MIT" ]
2
2018-11-12T14:33:31.000Z
2019-03-06T17:16:13.000Z
setup.py
QPC-database/django-tools-seo
9b16731949480fc25ad010811e528d22bf335bfb
[ "MIT" ]
1
2021-07-09T21:57:43.000Z
2021-07-09T21:57:43.000Z
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-tools-seo', v...
33.558824
80
0.657318
a757e98fd54ab13728b028eb093e76ae81ea343d
822
py
Python
survey/urls.py
suger-luck/health
1e02525d52508184faf1119f553d57e3b757d960
[ "MIT" ]
null
null
null
survey/urls.py
suger-luck/health
1e02525d52508184faf1119f553d57e3b757d960
[ "MIT" ]
null
null
null
survey/urls.py
suger-luck/health
1e02525d52508184faf1119f553d57e3b757d960
[ "MIT" ]
null
null
null
from django.urls import path from survey import views urlpatterns = [ path('index/', views.index, name='index'), # 首页 path('login/', views.login,name='login'), # 登录页面 path('login_user/', views.login_user, name='login_user'), # 登录用户名校验 path('login_check/', views.login_check, name='login_check'), # 登录校验...
48.352941
88
0.684915
fac772042e5606fb8e030e24e77872332a250b6a
7,841
py
Python
setup.py
nataliaratnikova/rucio
4c7789bb9cdb824cc90b91fa0b66acf1b0fac128
[ "Apache-2.0" ]
1
2018-02-27T08:03:41.000Z
2018-02-27T08:03:41.000Z
setup.py
greed2411/rucio
3e9a50ce1c3b062a0d048e7aa125ca8ce36fe78e
[ "Apache-2.0" ]
null
null
null
setup.py
greed2411/rucio
3e9a50ce1c3b062a0d048e7aa125ca8ce36fe78e
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2018 CERN for the benefit of the ATLAS collaboration. # # 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...
34.390351
109
0.631425
78939760c42b9d8a029f24bb532122ead4d04b61
8,413
py
Python
python/tvm/micro/artifact.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
python/tvm/micro/artifact.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
null
null
null
python/tvm/micro/artifact.py
janifer112x/incubator-tvm
98c2096f4944bdbdbbb2b7b20ccd35c6c11dfbf6
[ "Apache-2.0" ]
2
2022-03-18T08:26:34.000Z
2022-03-20T06:02:48.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.240909
99
0.584928
e3183e8ca6ba269ab25836ee501d02330de998b5
2,804
py
Python
cterasdk/edge/ftp.py
CTERA-Networks/ctera-python-sdk
35d9cb6949590e664fd237d29f54ce054fe80a9e
[ "Apache-2.0" ]
5
2020-02-25T22:34:48.000Z
2020-02-29T22:56:39.000Z
cterasdk/edge/ftp.py
ctera/ctera-python-sdk
a86cb575d538620a12f326fe5e92f5abb5cc1f6b
[ "Apache-2.0" ]
16
2020-03-25T19:12:03.000Z
2021-06-02T14:45:34.000Z
cterasdk/edge/ftp.py
ctera/ctera-python-sdk
a86cb575d538620a12f326fe5e92f5abb5cc1f6b
[ "Apache-2.0" ]
3
2020-10-22T18:22:06.000Z
2021-10-03T18:38:41.000Z
import logging from .enum import Mode from ..exception import CTERAException from .base_command import BaseCommand class FTP(BaseCommand): """ Gateway FTP configuration APIs """ def get_configuration(self): """ Get the current FTP configuration :return cterasdk.common.object.Object:...
39.492958
102
0.670827
e1f07aa343595c7f276fd901b259d7090f6db05d
68
py
Python
DistanceConfiguration/DistanceConfigItem.py
oswald0071/RaspberryDistanceSensorRead
4c2cff0de37191c0ad6a9b327c7f500bbcc0e283
[ "MIT" ]
null
null
null
DistanceConfiguration/DistanceConfigItem.py
oswald0071/RaspberryDistanceSensorRead
4c2cff0de37191c0ad6a9b327c7f500bbcc0e283
[ "MIT" ]
null
null
null
DistanceConfiguration/DistanceConfigItem.py
oswald0071/RaspberryDistanceSensorRead
4c2cff0de37191c0ad6a9b327c7f500bbcc0e283
[ "MIT" ]
null
null
null
class DistanceModel: name = '' echo = 0 trigger = 0
13.6
21
0.514706
044028fef604823b1ef089c63295dadadf88a4d3
4,722
py
Python
azure-metrics-calc-storage-size/metrics-data.py
calebrob6/ai4eutils
7ffc8ad26300af70b6f9a3b665dd1803e5e4e603
[ "MIT" ]
null
null
null
azure-metrics-calc-storage-size/metrics-data.py
calebrob6/ai4eutils
7ffc8ad26300af70b6f9a3b665dd1803e5e4e603
[ "MIT" ]
null
null
null
azure-metrics-calc-storage-size/metrics-data.py
calebrob6/ai4eutils
7ffc8ad26300af70b6f9a3b665dd1803e5e4e603
[ "MIT" ]
null
null
null
#%% Constants and imports import utils import datetime import pandas as pd import humanfriendly import math import os from azure.mgmt.resource import ResourceManagementClient from azure.mgmt.monitor import MonitorManagementClient from azure.mgmt.storage import StorageManagementClient from enum import Enum class Aut...
31.691275
129
0.638077
bf3b139b18604fa74fe5dbaeb05980dfc999012c
1,381
py
Python
src/brouwers/shop/models/presentation.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
6
2015-03-03T13:23:07.000Z
2021-12-19T18:12:41.000Z
src/brouwers/shop/models/presentation.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
95
2015-02-07T00:55:39.000Z
2022-02-08T20:22:05.000Z
src/brouwers/shop/models/presentation.py
modelbrouwers/modelbrouwers
e0ba4819bf726d6144c0a648fdd4731cdc098a52
[ "MIT" ]
2
2016-03-22T16:53:26.000Z
2019-02-09T22:46:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ @python_2_unicode_compatible class HomepageCategory(models.Model): main_category = models.OneToOneFiel...
30.021739
87
0.709631
d1518934d40796718f07e933620e09e691791424
1,798
py
Python
mistune/__init__.py
sakshi87/mistune
ef45d4d61c258c22f100ee3db179ffcc04bde8bb
[ "BSD-3-Clause" ]
null
null
null
mistune/__init__.py
sakshi87/mistune
ef45d4d61c258c22f100ee3db179ffcc04bde8bb
[ "BSD-3-Clause" ]
null
null
null
mistune/__init__.py
sakshi87/mistune
ef45d4d61c258c22f100ee3db179ffcc04bde8bb
[ "BSD-3-Clause" ]
null
null
null
from .markdown import Markdown from .block_parser import BlockParser from .inline_parser import InlineParser from .renderers import AstRenderer, HTMLRenderer from .scanner import escape, escape_url, escape_html, unikey from .plugins import PLUGINS def create_markdown(escape=True, renderer=None, plugins=None): """...
29
73
0.645717
b0c5c19a0e3c5ffdd2aeb8ae0709e31cfecb2e32
1,430
py
Python
tests/staticfiles_tests/test_forms.py
peteralexandercharles/django
61c7350f41f2534daf3888709f3c987b7d779a29
[ "BSD-3-Clause", "0BSD" ]
null
null
null
tests/staticfiles_tests/test_forms.py
peteralexandercharles/django
61c7350f41f2534daf3888709f3c987b7d779a29
[ "BSD-3-Clause", "0BSD" ]
null
null
null
tests/staticfiles_tests/test_forms.py
peteralexandercharles/django
61c7350f41f2534daf3888709f3c987b7d779a29
[ "BSD-3-Clause", "0BSD" ]
null
null
null
from urllib.parse import urljoin from django.contrib.staticfiles import storage from django.forms import Media from django.templatetags.static import static from django.test import SimpleTestCase, override_settings class StaticTestStorage(storage.StaticFilesStorage): def url(self, name): return urljoin("...
36.666667
113
0.651049
ecc7dac0bc02466a5e214ddb5443dee5119a1727
1,516
py
Python
homepage/views.py
tdavn/portfolio_django
cdbadd53d5137b15955717c15f4d3991ac5a9b7d
[ "MIT" ]
null
null
null
homepage/views.py
tdavn/portfolio_django
cdbadd53d5137b15955717c15f4d3991ac5a9b7d
[ "MIT" ]
null
null
null
homepage/views.py
tdavn/portfolio_django
cdbadd53d5137b15955717c15f4d3991ac5a9b7d
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic import TemplateView from .models import ContactMessage # Create your views here. class HompageView(TemplateView): '''Display homepage''' template_name = 'homepage/index.html' def post(self, request): info = self.request.POST Co...
26.137931
64
0.69591
4ac3d1477eb1ca87de0a77d25f734524e15ec1e2
1,946
py
Python
extlist.py
rf-crescenzi/PrimeNumbers
af830701990e83d2e1b047f2260af815c2ebdf00
[ "Unlicense" ]
null
null
null
extlist.py
rf-crescenzi/PrimeNumbers
af830701990e83d2e1b047f2260af815c2ebdf00
[ "Unlicense" ]
null
null
null
extlist.py
rf-crescenzi/PrimeNumbers
af830701990e83d2e1b047f2260af815c2ebdf00
[ "Unlicense" ]
null
null
null
# Subclass of list which add2 2 useful methods class ExtendedList(list): # Recoursive method able to return, of a given integers list, all the integers lesser # than or equal to a given number. If the list is already sorted, set the argument # 'already_sorted' to True, in order not to waste time sorting it again. ...
46.333333
141
0.721994
ccf87556d44f35c4a796a46ccb2490fe498024d9
3,087
py
Python
lib/surface/compute/instances/add_labels.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/compute/instances/add_labels.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/surface/compute/instances/add_labels.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 Google LLC. 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 requir...
37.192771
74
0.76482
a99f7a218938a3da5afb3fcc70f5571e18938199
1,812
py
Python
app.py
hherrerob/Automated-Resume-Screening-System
4788024d58211b02ccdb4e9599bf08b1a5ceeb40
[ "MIT" ]
null
null
null
app.py
hherrerob/Automated-Resume-Screening-System
4788024d58211b02ccdb4e9599bf08b1a5ceeb40
[ "MIT" ]
null
null
null
app.py
hherrerob/Automated-Resume-Screening-System
4788024d58211b02ccdb4e9599bf08b1a5ceeb40
[ "MIT" ]
null
null
null
import warnings import screen import search import utils import validators from flask import (Flask, request) from flask_cors import CORS warnings.filterwarnings(action='ignore', category=UserWarning, module='gensim') app = Flask(__name__) CORS(app) app.config.from_object(__name__) @app.route('/candidate/compare'...
26.647059
103
0.678256
50f1a1d7b2b13c1be9983514717847335f627b48
978
py
Python
spendit/urls.py
walki/spend_it
88bf2961a5e1b0b199ec839f70f170b2678c9358
[ "MIT" ]
null
null
null
spendit/urls.py
walki/spend_it
88bf2961a5e1b0b199ec839f70f170b2678c9358
[ "MIT" ]
null
null
null
spendit/urls.py
walki/spend_it
88bf2961a5e1b0b199ec839f70f170b2678c9358
[ "MIT" ]
null
null
null
"""spendit 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') Class-ba...
39.12
79
0.694274
63def8e397fdb37f2ffdfd58d924d5d957d9588e
1,902
py
Python
microbit/compass.py
elecfreaks/EF_Produce_MicroPython
7ed7da11b0ea9dcb7e317d1b5ebc1396a6baf7e6
[ "MIT" ]
2
2020-08-06T07:32:57.000Z
2022-02-11T02:37:21.000Z
microbit/compass.py
elecfreaks/EF_Produce_MicroPython
7ed7da11b0ea9dcb7e317d1b5ebc1396a6baf7e6
[ "MIT" ]
null
null
null
microbit/compass.py
elecfreaks/EF_Produce_MicroPython
7ed7da11b0ea9dcb7e317d1b5ebc1396a6baf7e6
[ "MIT" ]
2
2020-11-23T07:26:21.000Z
2021-09-11T02:34:09.000Z
"""This module lets you access the built-in electronic compass. Before using, the compass should be calibrated, otherwise the readings may be wrong. .. warning:: Calibrating the compass will cause your program to pause until calibration is complete. Calibration consists of a little game to draw a circle set_p...
31.180328
88
0.702944
882f4c20cb3f4118e43cf9980bf67808c90f2ef7
1,747
py
Python
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
1
2022-03-30T22:39:15.000Z
2022-03-30T22:39:15.000Z
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/account/models/name_availability_information.py
Christina-Kang/azure-sdk-for-python
bbf982eb06aab04b8151f69f1d230b7f5fb96ebf
[ "MIT" ]
2
2017-01-20T18:25:46.000Z
2017-05-12T21:31:47.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 ...
35.653061
77
0.621065
ea8291517de32685f7da2922c00bb9a5dad84b84
11,811
py
Python
laboratory/settings.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
null
null
null
laboratory/settings.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
null
null
null
laboratory/settings.py
Wellheor1/l2
d980210921c545c68fe9d5522bb693d567995024
[ "MIT" ]
null
null
null
import logging import os import sys import warnings from collections import OrderedDict PROFILING = False BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = None DEBUG = "DLIS" in os.environ INTERNAL_IPS = ['127.0.0.1', '192.168.0.200', '192.168.0.101', '192.168.102.4', '192.168.0.12...
26.363839
171
0.695453
6c6dc8b256f0f0430101b75ec77c3d289a3a0bb9
2,222
py
Python
packages/syft/src/syft/core/node/common/action/garbage_collect_batched_action.py
exityan/PySyft
35166c487a5be57f9ad28929ed88a8ba6bdd5aeb
[ "Apache-2.0" ]
2
2020-10-19T19:18:46.000Z
2020-12-07T12:06:30.000Z
packages/syft/src/syft/core/node/common/action/garbage_collect_batched_action.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
5
2020-09-11T05:47:12.000Z
2020-10-13T08:36:17.000Z
packages/syft/src/syft/core/node/common/action/garbage_collect_batched_action.py
Metrix1010/PySyft
6477f64b63dc285059c3766deab3993653cead2e
[ "Apache-2.0" ]
1
2021-05-09T08:43:34.000Z
2021-05-09T08:43:34.000Z
# stdlib from typing import List from typing import Optional # third party from google.protobuf.reflection import GeneratedProtocolMessageType from nacl.signing import VerifyKey # syft relative from ..... import serialize from .....logger import critical from .....proto.core.node.common.action.garbage_collect_batched...
33.164179
88
0.710171
2046e36a0ccadf422e45ac2aab7dd54f6816a818
23,651
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/aio/operations/_ddos_protection_plans_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/aio/operations/_ddos_protection_plans_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/aio/operations/_ddos_protection_plans_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
50.002114
207
0.673587
a872a143536ff7e394312382273b2d1f8c628fcd
467
py
Python
src/runners/__init__.py
am-rutherford/pymarl
0919e1ab9109b5ac8f719dde7c41ca4403849af1
[ "Apache-2.0" ]
1
2022-03-01T17:45:41.000Z
2022-03-01T17:45:41.000Z
src/runners/__init__.py
am-rutherford/pymarl
0919e1ab9109b5ac8f719dde7c41ca4403849af1
[ "Apache-2.0" ]
null
null
null
src/runners/__init__.py
am-rutherford/pymarl
0919e1ab9109b5ac8f719dde7c41ca4403849af1
[ "Apache-2.0" ]
null
null
null
REGISTRY = {} from .episode_runner import EpisodeRunner REGISTRY["episode"] = EpisodeRunner from .parallel_runner import ParallelRunner REGISTRY["parallel"] = ParallelRunner from .async_episode_runner import AsyncEpisodeRunner REGISTRY["async"] = AsyncEpisodeRunner from .render_episode_runner import RenderEpisodeRu...
27.470588
56
0.837259
24d06bce763b9c1fa20c1f5c5739dd6f6f59f8de
281
py
Python
codeHL/codeHLshell.py
atria-tools/monk
4961457f4db5dfa98fc6001a289c24e460e5b025
[ "Apache-2.0" ]
null
null
null
codeHL/codeHLshell.py
atria-tools/monk
4961457f4db5dfa98fc6001a289c24e460e5b025
[ "Apache-2.0" ]
1
2015-03-22T12:37:18.000Z
2015-03-22T12:37:18.000Z
codeHL/codeHLshell.py
HeeroYui/monk
4961457f4db5dfa98fc6001a289c24e460e5b025
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import monkDebug as debug import sys import monkTools import re listRegExp = [ [ r'#(.*?)\n', r'<span class="code-preproc">#\1</span>\n'] ] def transcode(value): for reg1, reg2 in listRegExp: value = re.sub(reg1, reg2, value, flags=re.DOTALL) return value
18.733333
59
0.683274
02c10eead09c90a3af3917e9ecd4ef40a2a4cc5d
322
py
Python
04_03_sos_return.py
simonmonk/prog_pico_ed1
36e70f88ea7dc73e75399cd390d1cc2023843971
[ "MIT" ]
6
2021-05-08T13:19:33.000Z
2022-03-20T08:29:44.000Z
04_03_sos_return.py
simonmonk/prog_pico_ed1
36e70f88ea7dc73e75399cd390d1cc2023843971
[ "MIT" ]
1
2021-03-05T20:27:15.000Z
2021-11-17T09:07:43.000Z
04_03_sos_return.py
simonmonk/prog_pico_ed1
36e70f88ea7dc73e75399cd390d1cc2023843971
[ "MIT" ]
2
2021-07-02T15:19:37.000Z
2021-10-06T00:53:25.000Z
from machine import Pin from utime import sleep led = Pin(25, Pin.OUT) def blink(times, delay): for x in range(1, times+1): led.on() sleep(delay) led.off() sleep(delay) return times * delay * 2 while True: print(blink(3, 0.2)) sleep(0.4) print(blink(3, 0.6)...
17.888889
31
0.559006
ffe5a9ff7e8ae043b3ab04a9894699da4a93d0f6
1,914
py
Python
utils/plots.py
danilojodas/keras-YOLOv3-model-set
da6d1af57bcea139d548843f0488cf61ab00f965
[ "MIT" ]
null
null
null
utils/plots.py
danilojodas/keras-YOLOv3-model-set
da6d1af57bcea139d548843f0488cf61ab00f965
[ "MIT" ]
null
null
null
utils/plots.py
danilojodas/keras-YOLOv3-model-set
da6d1af57bcea139d548843f0488cf61ab00f965
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 7 22:56:27 2020 @author: DANILO """ import os import pandas as pd import matplotlib.pyplot as plt import numpy as np def loss_function(folder='', save_plot=False): plt.rc('axes', labelsize=12) plt.rc('xtick', labelsize=11) plt.rc('ytick', labelsize=11) ...
30.870968
124
0.613898
488e3cd1a3077f8ec18829832358426121872afa
9,257
py
Python
examples/language_model/gpt-3/dygraph/args.py
MrJStyle/PaddleNLP
fd02d65d0a5dc6a2adac21ec5703424508e38acd
[ "Apache-2.0" ]
1
2021-10-14T05:35:00.000Z
2021-10-14T05:35:00.000Z
examples/language_model/gpt-3/dygraph/args.py
Yingyingcososc/PaddleNLP
0f2d8a6343ac4854f99e6353a5d3e14aabc66c8e
[ "Apache-2.0" ]
null
null
null
examples/language_model/gpt-3/dygraph/args.py
Yingyingcososc/PaddleNLP
0f2d8a6343ac4854f99e6353a5d3e14aabc66c8e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 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...
31.593857
173
0.608729
54760faf7be239b06b8a8c177a53feef74a39876
311
py
Python
Scrapper_example/items.py
danielpassy/Hebrew-Song-SImilarity
cebe87618e165c89a4cfa7cf591965f402cdbe0b
[ "MIT" ]
null
null
null
Scrapper_example/items.py
danielpassy/Hebrew-Song-SImilarity
cebe87618e165c89a4cfa7cf591965f402cdbe0b
[ "MIT" ]
null
null
null
Scrapper_example/items.py
danielpassy/Hebrew-Song-SImilarity
cebe87618e165c89a4cfa7cf591965f402cdbe0b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy import scrapy class QuotetutorialItem(scrapy.Item): title = scrapy.Field() author = scrapy.Field() tag = scrapy.Field() pass
18.294118
53
0.688103
1204394084ace020e7b4399f1039dd312fa7ebd3
142
py
Python
Python/test/helloword.py
isai129/CodeTask
bb4d6ee7f2a39424fddc939a792a0a78171ca580
[ "MIT" ]
1
2021-02-06T01:56:43.000Z
2021-02-06T01:56:43.000Z
Python/test/helloword.py
isai129/CodeTask
bb4d6ee7f2a39424fddc939a792a0a78171ca580
[ "MIT" ]
null
null
null
Python/test/helloword.py
isai129/CodeTask
bb4d6ee7f2a39424fddc939a792a0a78171ca580
[ "MIT" ]
null
null
null
# 第一个python程序 print('hello,word') print('The quick brown fox', 'jumps over', 'the laazy dog') print('100+200=', 100 + 200) name = input()
14.2
59
0.647887
29f89133bac80a90e9b04034632114a6d1c76e8d
4,577
py
Python
v2/os_cmd/cdk/lib/IotPolicy/assets/iot_policy.py
bvitali/aws-iot-greengrass-accelerators
31d9920fc8312bceb89c3f610fe7368d78b117d6
[ "MIT-0" ]
47
2019-09-13T09:22:44.000Z
2022-03-04T12:19:03.000Z
v2/os_cmd/cdk/lib/IotPolicy/assets/iot_policy.py
bvitali/aws-iot-greengrass-accelerators
31d9920fc8312bceb89c3f610fe7368d78b117d6
[ "MIT-0" ]
5
2020-04-13T02:43:47.000Z
2021-11-16T19:44:22.000Z
v2/os_cmd/cdk/lib/IotPolicy/assets/iot_policy.py
bvitali/aws-iot-greengrass-accelerators
31d9920fc8312bceb89c3f610fe7368d78b117d6
[ "MIT-0" ]
27
2019-09-13T18:19:42.000Z
2022-02-21T21:13:32.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import os import sys import json import logging as logger import boto3 from botocore.config import Config from botocore.exceptions import ClientError logger.getLogger().setLevel(logger.INFO) def get_aws_client(name...
33.166667
93
0.634695
7895862e2f8e9671545aacaf9e00913099146308
7,736
py
Python
mercury/fog_model/iot_devices/ue/ue.py
greenlsi/mercury_mso_framework
8b9639e5cb4b2c526a65861c93a9fe9db2460ea4
[ "Apache-2.0" ]
1
2020-07-21T11:22:39.000Z
2020-07-21T11:22:39.000Z
mercury/fog_model/iot_devices/ue/ue.py
greenlsi/mercury_mso_framework
8b9639e5cb4b2c526a65861c93a9fe9db2460ea4
[ "Apache-2.0" ]
2
2021-08-25T16:09:58.000Z
2022-02-10T02:21:03.000Z
mercury/fog_model/iot_devices/ue/ue.py
greenlsi/mercury_mso_framework
8b9639e5cb4b2c526a65861c93a9fe9db2460ea4
[ "Apache-2.0" ]
1
2021-02-24T15:54:09.000Z
2021-02-24T15:54:09.000Z
from xdevs.models import Coupled, Port from mercury.config.iot_devices import UserEquipmentConfig from mercury.msg.network import PhysicalPacket, NetworkPacket from mercury.msg.iot_devices import ServiceDelayReport from .ue_antenna import UserEquipmentAntenna from .service_mux import UEServiceMux from .service import S...
53.351724
110
0.757239
7f8536e330e42176e576535a4d16a46be7b42850
62
py
Python
python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingUnion/main.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingUnion/main.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/PyAnnotateVariableTypeIntentionTest/AnnotationImportTypingUnion/main.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
from lib import foo def func(): var = foo v<caret>ar
10.333333
19
0.596774
8926194856163eccfb63e2bae9f2c14f8c1fb88f
4,696
py
Python
benchmark/startQiskit1671.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit1671.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit1671.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=66 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
33.070423
82
0.608603
a1bd7c6bfa24d76ed9c9642e70b0f33e0c20c87d
5,180
py
Python
shadowsocks/server_pool.py
ovear/shadowsocks
1c32446f1adf6e50bed65fb4baf28d22431ed7e6
[ "MIT" ]
10
2015-01-11T13:26:25.000Z
2016-04-16T04:58:48.000Z
shadowsocks/server_pool.py
ShenXuGongZi/shadowsocks
1c32446f1adf6e50bed65fb4baf28d22431ed7e6
[ "MIT" ]
null
null
null
shadowsocks/server_pool.py
ShenXuGongZi/shadowsocks
1c32446f1adf6e50bed65fb4baf28d22431ed7e6
[ "MIT" ]
1
2021-04-23T12:36:32.000Z
2021-04-23T12:36:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014 clowwindy # # 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 # ...
35.724138
124
0.622201
de6b220a074d12a2af3ec321e4151988f8b328c3
1,233
py
Python
Pytorch Basic Exercises/Building an AutoEncoder with Pytorch/helper.py
padam56/Miscellaneous
596ed3491dc65b38cca1e960b20beb80557224aa
[ "MIT" ]
null
null
null
Pytorch Basic Exercises/Building an AutoEncoder with Pytorch/helper.py
padam56/Miscellaneous
596ed3491dc65b38cca1e960b20beb80557224aa
[ "MIT" ]
null
null
null
Pytorch Basic Exercises/Building an AutoEncoder with Pytorch/helper.py
padam56/Miscellaneous
596ed3491dc65b38cca1e960b20beb80557224aa
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import torch def show_image(noisy_image,org_image,pred_image = None): if pred_image == None: f, (ax1, ax2) = plt.subplots(1, 2, figsize=(10,5)) ax1.set_title('noisy_image') ax1.imshow(noisy_image.permute(1,2,0).squ...
29.357143
80
0.575831
6bb9c371fc0f4f62db8dd9bc7dabf6596ac74164
9,707
py
Python
Lib/test/test_compiler/test_static/non_static_inheritance.py
mananpal1997/cinder
a8804cc6e3a5861463ff959abcd09ad60a0763e5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/test/test_compiler/test_static/non_static_inheritance.py
mananpal1997/cinder
a8804cc6e3a5861463ff959abcd09ad60a0763e5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/test/test_compiler/test_static/non_static_inheritance.py
mananpal1997/cinder
a8804cc6e3a5861463ff959abcd09ad60a0763e5
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
import unittest from compiler.pycodegen import CinderCodeGenerator from .common import StaticTestBase class NonStaticInheritanceTests(StaticTestBase): def test_static_return_is_resolved_with_multiple_levels_of_inheritance(self): codestr = """ class C: def foobar(self, x: int) ...
26.667582
87
0.463686
feb70962a1f7fd5519703a10a605386138fc5c05
3,646
py
Python
tensorflow_model_optimization/python/examples/clustering/keras/mnist/mnist_mha.py
arovir01/model-optimization
92bfb45da34715eeff8849c2007cf3b734429120
[ "Apache-2.0" ]
1,318
2018-10-31T23:57:52.000Z
2022-03-30T11:07:40.000Z
tensorflow_model_optimization/python/examples/clustering/keras/mnist/mnist_mha.py
arovir01/model-optimization
92bfb45da34715eeff8849c2007cf3b734429120
[ "Apache-2.0" ]
410
2019-05-15T14:11:13.000Z
2022-03-31T07:27:07.000Z
tensorflow_model_optimization/python/examples/clustering/keras/mnist/mnist_mha.py
arovir01/model-optimization
92bfb45da34715eeff8849c2007cf3b734429120
[ "Apache-2.0" ]
290
2019-05-14T17:42:49.000Z
2022-03-28T02:21:45.000Z
# Copyright 2021 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...
34.074766
101
0.75096
e22b1cf7369f6851c0ea78bb9647c19e347f7e7b
552
py
Python
handlers/eventhandlers/74-friend-remove.py
osukurikku/kuriso
ae6a6f2d87f2aa592c9fe105a6c01872a02cc057
[ "MIT" ]
6
2021-03-07T20:14:29.000Z
2022-03-10T20:28:20.000Z
handlers/eventhandlers/74-friend-remove.py
osukurikku/kuriso
ae6a6f2d87f2aa592c9fe105a6c01872a02cc057
[ "MIT" ]
3
2021-04-20T17:18:58.000Z
2022-03-28T18:17:35.000Z
handlers/eventhandlers/74-friend-remove.py
osukurikku/kuriso
ae6a6f2d87f2aa592c9fe105a6c01872a02cc057
[ "MIT" ]
4
2021-03-30T12:55:07.000Z
2022-03-10T09:01:16.000Z
from handlers.decorators import OsuEvent from packets.OsuPacketID import OsuPacketID from packets.Reader.PacketResolver import PacketResolver from helpers import userHelper from typing import TYPE_CHECKING if TYPE_CHECKING: from objects.Player import Player # Client packet: 74 @OsuEvent.register_handler(OsuPacke...
32.470588
68
0.827899
893b3c7a5bac6c984505f8c2fd2301bb1aa6e663
17,614
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_images_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_images_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/_virtual_machine_images_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.721485
221
0.659589
1f837d58bf821ed2597cbb4c62fe9c31be77a2fb
6,135
py
Python
tests/components/smartthings/test_fan.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
4
2016-06-22T12:00:41.000Z
2018-06-11T20:31:25.000Z
tests/components/smartthings/test_fan.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
58
2020-08-03T07:33:02.000Z
2022-03-31T06:02:05.000Z
tests/components/smartthings/test_fan.py
tbarbette/core
8e58c3aa7bc8d2c2b09b6bd329daa1c092d52d3c
[ "Apache-2.0" ]
6
2019-07-06T00:43:13.000Z
2021-01-16T13:27:06.000Z
""" Test for the SmartThings fan platform. The only mocking required is of the underlying SmartThings API object so real HTTP calls are not initiated during testing. """ from pysmartthings import Attribute, Capability from homeassistant.components.fan import ( ATTR_SPEED, ATTR_SPEED_LIST, DOMAIN as FAN_DO...
31.953125
88
0.683293
7380d837740ad063089328c0370d3c058c9424e4
1,227
py
Python
delete.py
stephen-eades/auto-delete-tweets
c4dae327d4b6394c1add1323ae36636978c37d88
[ "MIT" ]
null
null
null
delete.py
stephen-eades/auto-delete-tweets
c4dae327d4b6394c1add1323ae36636978c37d88
[ "MIT" ]
1
2020-12-22T22:34:05.000Z
2021-04-05T17:14:23.000Z
delete.py
stephen-eades/auto-delete-tweets
c4dae327d4b6394c1add1323ae36636978c37d88
[ "MIT" ]
null
null
null
import tweepy from datetime import datetime, timedelta import sys from os import environ # Delete tweets older than 365 days that are not pinned or favorited by user def delete_old_tweets(): twitter_user = 'stephen_eades' consumer_key = environ['API_KEY'] consumer_secret_key = environ['API_SECRET_KEY'] ...
37.181818
111
0.671557
5e2b8d7dd21f748eb4181df86914d8464cc78977
786
py
Python
account/forms.py
maretaatmadja/django_patronus
fe34e1a7c40b535165ef4e752adb61e4c41c32ae
[ "MIT" ]
null
null
null
account/forms.py
maretaatmadja/django_patronus
fe34e1a7c40b535165ef4e752adb61e4c41c32ae
[ "MIT" ]
8
2021-03-30T13:46:40.000Z
2022-03-12T00:35:09.000Z
account/forms.py
maretaatmadja/django_patronus
fe34e1a7c40b535165ef4e752adb61e4c41c32ae
[ "MIT" ]
null
null
null
from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import get_user_model from django.forms import ModelForm, DateInput from .models import Profile class MyUserCreationForm(UserCreationForm): class Meta(UserCreationForm.Meta): fields = ('username', 'first_name', 'last_name', 'em...
31.44
65
0.694656
0d38a3828531c9c383900b5000d03f570d8e3331
3,310
py
Python
transformer/plugins/test_resolve.py
jsabak/Transformer
c96ff1bed109f114f7c69143c85ee362e5f518d1
[ "MIT" ]
null
null
null
transformer/plugins/test_resolve.py
jsabak/Transformer
c96ff1bed109f114f7c69143c85ee362e5f518d1
[ "MIT" ]
null
null
null
transformer/plugins/test_resolve.py
jsabak/Transformer
c96ff1bed109f114f7c69143c85ee362e5f518d1
[ "MIT" ]
null
null
null
import logging import random import sys import uuid from pathlib import Path from types import ModuleType import pytest from hypothesis import given from hypothesis._strategies import permutations from transformer.plugins.contracts import plugin, Contract from .resolve import load_plugins_from_module, resolve, NoPlug...
32.772277
83
0.662236
25b1d4bb7815373bb6aaa494f729e73cbb8d0c5a
1,696
py
Python
nomadgram/images/models.py
Yesdoing/nomadgram
a78b48de15d7897c0ee959ae8ee8e92eb991eb88
[ "MIT" ]
null
null
null
nomadgram/images/models.py
Yesdoing/nomadgram
a78b48de15d7897c0ee959ae8ee8e92eb991eb88
[ "MIT" ]
17
2020-06-05T16:49:27.000Z
2022-03-11T23:26:03.000Z
nomadgram/images/models.py
Yesdoing/nomadgram
a78b48de15d7897c0ee959ae8ee8e92eb991eb88
[ "MIT" ]
null
null
null
from django.db import models from nomadgram.users import models as user_models from taggit.managers import TaggableManager from django.utils.encoding import python_2_unicode_compatible # Create your models here. @python_2_unicode_compatible class TimeStampedModel(models.Model): created_at = models.DateTimeField(a...
27.354839
95
0.711675
ba397a5de902e7ff73909a6ec3837eb46cd0c6be
7,544
py
Python
lib/models/cell_searchs/search_cells.py
wangguangyuan/AutoDL-Projects
1ce3249a5a58af3506b8c9af977008ddf8198445
[ "MIT" ]
1
2020-01-19T01:28:07.000Z
2020-01-19T01:28:07.000Z
lib/models/cell_searchs/search_cells.py
wangguangyuan/AutoDL-Projects
1ce3249a5a58af3506b8c9af977008ddf8198445
[ "MIT" ]
null
null
null
lib/models/cell_searchs/search_cells.py
wangguangyuan/AutoDL-Projects
1ce3249a5a58af3506b8c9af977008ddf8198445
[ "MIT" ]
null
null
null
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2019 # ################################################## import math, random, torch import warnings import torch.nn as nn import torch.nn.functional as F from copy import deepcopy from ..cell_operations import OPS # This m...
38.10101
140
0.627651
3a55d611ed58ba8610373289576ed71daa2c6caa
843
py
Python
tests/conftest.py
binking/News_website
7f1ed5d64e46ab5001660c7efb83419bb603da6f
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
binking/News_website
7f1ed5d64e46ab5001660c7efb83419bb603da6f
[ "BSD-3-Clause" ]
null
null
null
tests/conftest.py
binking/News_website
7f1ed5d64e46ab5001660c7efb83419bb603da6f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Defines fixtures available to all tests.""" import os import pytest from webtest import TestApp from news_website.settings import TestConfig from news_website.app import create_app from news_website.database import db as _db from .factories import UserFactory @pytest.yield_fixture(scope=...
17.5625
46
0.695136
178debc7dc006e79a7825337d999bbd82a056489
5,128
py
Python
tests/platforms/test_weibo.py
he0119/nonebot-bison
31f02d73dbdfcbbd4b824a9b6a1cfc9aa0fc6b09
[ "MIT" ]
null
null
null
tests/platforms/test_weibo.py
he0119/nonebot-bison
31f02d73dbdfcbbd4b824a9b6a1cfc9aa0fc6b09
[ "MIT" ]
null
null
null
tests/platforms/test_weibo.py
he0119/nonebot-bison
31f02d73dbdfcbbd4b824a9b6a1cfc9aa0fc6b09
[ "MIT" ]
null
null
null
from datetime import datetime import feedparser import pytest import respx from httpx import Response from nonebug.app import App from pytz import timezone from .utils import get_file, get_json @pytest.fixture def weibo(app: App): from nonebot_bison.platform import platform_manager return platform_manager[...
37.985185
975
0.704563
44ebdea987783db7943a76eff8283118cc24382b
19,887
py
Python
tf2onnx/rewriter/loop_rewriter_base.py
natke/tensorflow-onnx
af083a2e070d67b7ca47e9babe7ff6938b169176
[ "MIT" ]
1
2021-10-13T05:38:36.000Z
2021-10-13T05:38:36.000Z
tf2onnx/rewriter/loop_rewriter_base.py
daquexian/tensorflow-onnx
cb016ef5b2483b78b0c0ceea23652d4a6a142cf0
[ "MIT" ]
null
null
null
tf2onnx/rewriter/loop_rewriter_base.py
daquexian/tensorflow-onnx
cb016ef5b2483b78b0c0ceea23652d4a6a142cf0
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. """ tf2onnx.rewriter.loop_rewriter_base """ from __future__ import division from __future__ import print_function import logging from collections import OrderedDict from tf2onnx import utils from tf2onnx.graph_matcher impor...
44.689888
120
0.663851
4bf6853dc91f970b10de065c232b2b60375be661
29,879
py
Python
venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_idrac_bios.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_idrac_bios.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_idrac_bios.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Dell EMC OpenManage Ansible Modules # Version 3.0.0 # Copyright (C) 2018-2020 Dell Inc. or its subsidiaries. All Rights Reserved. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # from __future__ import (absolute_import, division, print_functio...
70.138498
120
0.65705
aec8f968419a7d5a71c3eaf5a4b54168dadb7c31
164
py
Python
rsocket/datetime_helpers.py
Precognize/rsocket-py
31704d53c232e0c0f53783b9a56117e5bd0645ce
[ "MIT" ]
null
null
null
rsocket/datetime_helpers.py
Precognize/rsocket-py
31704d53c232e0c0f53783b9a56117e5bd0645ce
[ "MIT" ]
null
null
null
rsocket/datetime_helpers.py
Precognize/rsocket-py
31704d53c232e0c0f53783b9a56117e5bd0645ce
[ "MIT" ]
null
null
null
from datetime import timedelta def to_milliseconds(period: timedelta) -> int: return round(period.total_seconds() * 1000) + round(period.microseconds / 1000)
27.333333
83
0.756098
c018b89980196e7b23508e5cb3dd490e354f62b7
570
py
Python
src/processing/IJM/lipidomics/3.0-lipidomics_processing.py
coongroup/MITOMICS
6515c23017288ee91984ba052ce6b6cc74ade60a
[ "MIT" ]
null
null
null
src/processing/IJM/lipidomics/3.0-lipidomics_processing.py
coongroup/MITOMICS
6515c23017288ee91984ba052ce6b6cc74ade60a
[ "MIT" ]
null
null
null
src/processing/IJM/lipidomics/3.0-lipidomics_processing.py
coongroup/MITOMICS
6515c23017288ee91984ba052ce6b6cc74ade60a
[ "MIT" ]
null
null
null
# load modules import pandas as pd # load data combined_collapsed_path = "combined_lipidomics_data_collapsed.tsv" combined_collapsed_df = pd.read_csv(combined_collapsed_path, sep="\t", index_col="replicate") # load redundant CoQ details Coq10_species_path = "coq_species_to_drop.xlsx" Coq10_species_df = pd.read_excel...
33.529412
109
0.812281
376117089990516c929c670dc99516684776dbaf
1,823
py
Python
src/ggrc/notifications/job_emails.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/notifications/job_emails.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc/notifications/job_emails.py
j0gurt/ggrc-core
84662dc85aa8864c907eabe70b8efccf92298a1f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Import/Export notifications """ from urlparse import urljoin from ggrc import settings from ggrc.notifications import common IMPORT_COMPLETED = { "title": u"{filename} was imported successfully"...
28.484375
78
0.645639
e324e3b590d37873469a789b8db88e6444936146
8,239
py
Python
law/contrib/docker/sandbox.py
HerrHorizontal/law
c31091d3bf39a25e79b3796ed5742346ddff8b77
[ "BSD-3-Clause" ]
null
null
null
law/contrib/docker/sandbox.py
HerrHorizontal/law
c31091d3bf39a25e79b3796ed5742346ddff8b77
[ "BSD-3-Clause" ]
null
null
null
law/contrib/docker/sandbox.py
HerrHorizontal/law
c31091d3bf39a25e79b3796ed5742346ddff8b77
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ Docker sandbox implementation. """ __all__ = ["DockerSandbox"] import os import sys import uuid import socket import subprocess import luigi import six from law.config import Config from law.sandbox.base import Sandbox from law.target.local import LocalFileTarget from law.cli.software import d...
35.360515
98
0.593397
e751ee0569c881a85f034d4e7fed235140c2fd3c
2,272
py
Python
src/gluonts/testutil/dummy_datasets.py
ykaitao/gluon-ts
9622550974e9e0819e25438fc45353f8a6474b55
[ "Apache-2.0" ]
1
2020-01-19T13:27:51.000Z
2020-01-19T13:27:51.000Z
src/gluonts/testutil/dummy_datasets.py
ykaitao/gluon-ts
9622550974e9e0819e25438fc45353f8a6474b55
[ "Apache-2.0" ]
null
null
null
src/gluonts/testutil/dummy_datasets.py
ykaitao/gluon-ts
9622550974e9e0819e25438fc45353f8a6474b55
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
32.927536
75
0.664613
ab0e5333213556a84c797b30a420f36487e4eeff
7
py
Python
HeadFirstPython/chapter7/Test.py
yhj630520/pythonLearn
1f151f2ead1b3ee30a96f5cb8b31e352def48b27
[ "Apache-2.0" ]
null
null
null
HeadFirstPython/chapter7/Test.py
yhj630520/pythonLearn
1f151f2ead1b3ee30a96f5cb8b31e352def48b27
[ "Apache-2.0" ]
null
null
null
HeadFirstPython/chapter7/Test.py
yhj630520/pythonLearn
1f151f2ead1b3ee30a96f5cb8b31e352def48b27
[ "Apache-2.0" ]
null
null
null
# 测试代码
3.5
6
0.571429
d0524c2f9348ff763787d12f9c3ea34d8eb5d89a
18,949
py
Python
src/conversation_analytics_toolkit/filtering2.py
watson-developer-cloud/assistant-dialog-flow-analysis
0c7bcd9527636dce77c74b80f60dbe23e6682e13
[ "Apache-2.0" ]
19
2020-06-07T19:13:06.000Z
2022-01-22T02:34:11.000Z
src/conversation_analytics_toolkit/filtering2.py
watson-developer-cloud/assistant-dialog-flow-analysis
0c7bcd9527636dce77c74b80f60dbe23e6682e13
[ "Apache-2.0" ]
32
2020-06-04T14:09:03.000Z
2021-02-11T15:05:07.000Z
src/conversation_analytics_toolkit/filtering2.py
watson-developer-cloud/assistant-dialog-flow-analysis
0c7bcd9527636dce77c74b80f60dbe23e6682e13
[ "Apache-2.0" ]
10
2020-06-04T18:49:53.000Z
2021-11-26T12:42:08.000Z
# (C) Copyright IBM Corp. 2019, 2020. # # 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...
48.093909
166
0.629796
89f7dbb3d30b7466688198db18cea712e378bf69
13,472
py
Python
sagemaker-python-sdk/mxnet_gluon_sentiment/sentiment.py
cswiercz/amazon-sagemaker-examples
8e6864f4d70012ca7b5f2d3abfcaea0da97ed918
[ "Apache-2.0" ]
7
2018-10-25T16:35:54.000Z
2022-02-12T15:24:11.000Z
sagemaker-python-sdk/mxnet_gluon_sentiment/sentiment.py
cswiercz/amazon-sagemaker-examples
8e6864f4d70012ca7b5f2d3abfcaea0da97ed918
[ "Apache-2.0" ]
null
null
null
sagemaker-python-sdk/mxnet_gluon_sentiment/sentiment.py
cswiercz/amazon-sagemaker-examples
8e6864f4d70012ca7b5f2d3abfcaea0da97ed918
[ "Apache-2.0" ]
2
2019-03-27T06:06:45.000Z
2019-04-10T07:21:13.000Z
from __future__ import print_function import logging import mxnet as mx from mxnet import gluon, autograd, nd from mxnet.gluon import nn import numpy as np import json import time import re from mxnet.io import DataIter, DataBatch, DataDesc import bisect, random from collections import Counter from itertools import ch...
37.526462
109
0.599985
d2f782888a9395e15c18a100768c0badaa90a7db
1,034
py
Python
wizard.py
VukAnd/os
9708eab438e841a46603b81bfb3e251fe24a8ce0
[ "MIT" ]
null
null
null
wizard.py
VukAnd/os
9708eab438e841a46603b81bfb3e251fe24a8ce0
[ "MIT" ]
1
2020-05-18T09:23:56.000Z
2020-05-18T09:24:22.000Z
wizard.py
VukAnd/os
9708eab438e841a46603b81bfb3e251fe24a8ce0
[ "MIT" ]
2
2020-05-18T09:05:25.000Z
2020-05-18T10:01:32.000Z
import os import urllib.request import time print('Welcome to the setup wizard. This will install the required packages and the OS on your computer. The OS will be installed in the folder of this wizard.') proceed = input('Proceed? (Y/N)\n') if proceed == 'Y' or proceed == 'y': print('Okay. Do you accept the discla...
47
161
0.675048
25ab4b6f061c1d86438a033cf67afc06e2f3af99
826
py
Python
del_all.py
KungPaoChick/Find_LinkedIn_jobs
51266e83a8269cfcfad15562342f25650e3ec30c
[ "MIT" ]
30
2021-03-10T13:57:52.000Z
2021-09-10T16:48:01.000Z
del_all.py
KungPaoChick/Find_LinkedIn_jobs
51266e83a8269cfcfad15562342f25650e3ec30c
[ "MIT" ]
2
2021-10-04T03:19:53.000Z
2022-01-11T01:43:14.000Z
del_all.py
KungPaoChick/Find_LinkedIn_jobs
51266e83a8269cfcfad15562342f25650e3ec30c
[ "MIT" ]
4
2021-03-11T06:10:37.000Z
2021-08-28T15:02:56.000Z
# This file just deletes everything you have scraped... # Basically just think of this file as cleaning up this directory. import os import shutil import colorama def del_recs(): deleted = [] for content in os.listdir(os.getcwd()): if not content in repo_content: deleted.append(content) ...
27.533333
88
0.605327
6f32cca8fe66cbd2e1c34125e31262e4bb89ff75
1,185
py
Python
util/parse_magdir.py
aking1012/python-magic
92d532b940a25aff09ca97c53d969ffa1e172efa
[ "MIT" ]
null
null
null
util/parse_magdir.py
aking1012/python-magic
92d532b940a25aff09ca97c53d969ffa1e172efa
[ "MIT" ]
null
null
null
util/parse_magdir.py
aking1012/python-magic
92d532b940a25aff09ca97c53d969ffa1e172efa
[ "MIT" ]
null
null
null
''' Generate fileMimes as: cd libmagic/magic/Magicdir grep -R mime . > fileMimes Then run this script to generate file_types.py It's a simple dictionary of all mime-types and what Magicdir file detects them. ''' lines = open('fileMimes', 'r').readlines() def dedupe(fileMimes): mimeType = [] source = [] final =...
22.358491
75
0.586498
ffbab1163cf040615a1a20903344685789c2294c
412
py
Python
sdk/python/pulumi_gcp/osconfig/__init__.py
pjbizon/pulumi-gcp
0d09cbc1dcf50093a177531f7596c27db11a2e58
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/osconfig/__init__.py
pjbizon/pulumi-gcp
0d09cbc1dcf50093a177531f7596c27db11a2e58
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/osconfig/__init__.py
pjbizon/pulumi-gcp
0d09cbc1dcf50093a177531f7596c27db11a2e58
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.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! *** from .. import _utilities import typing # Export this package's modules as members: from .guest_policies import * from .os_policy_assig...
31.692308
87
0.745146
a02b8d9d61f46d40f313c313018494c8a18862a5
63
py
Python
src/enrich/__init__.py
Somsubhra/Simplify
eeb0899347fb6474de2d674a04b6cd2838dc3490
[ "MIT" ]
null
null
null
src/enrich/__init__.py
Somsubhra/Simplify
eeb0899347fb6474de2d674a04b6cd2838dc3490
[ "MIT" ]
null
null
null
src/enrich/__init__.py
Somsubhra/Simplify
eeb0899347fb6474de2d674a04b6cd2838dc3490
[ "MIT" ]
null
null
null
__author__ = 's7a' # All imports from enricher import Enricher
15.75
29
0.777778
67d46af06ec779c35fe664326815cb311695424d
1,311
py
Python
alshamelah_api/apps/support/permissions.py
devna-dev/durar-backend
36ea29bafd4cb95098e4057eb71df211dc923008
[ "MIT" ]
null
null
null
alshamelah_api/apps/support/permissions.py
devna-dev/durar-backend
36ea29bafd4cb95098e4057eb71df211dc923008
[ "MIT" ]
null
null
null
alshamelah_api/apps/support/permissions.py
devna-dev/durar-backend
36ea29bafd4cb95098e4057eb71df211dc923008
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from rest_framework import permissions class CanManageSupport(permissions.IsAuthenticated): """ Write documentation """ # book_lookup = 'parent_lookup_book' case of parent child def has_pe...
28.5
87
0.654462
777a6a87721dc793166c86f2891bbb9e4817b5d6
337
py
Python
src/tests/binary_number_tests.py
cschlay/mini-toy-computer
986802b019697e732ff8de04233c27c1a1900284
[ "MIT" ]
null
null
null
src/tests/binary_number_tests.py
cschlay/mini-toy-computer
986802b019697e732ff8de04233c27c1a1900284
[ "MIT" ]
null
null
null
src/tests/binary_number_tests.py
cschlay/mini-toy-computer
986802b019697e732ff8de04233c27c1a1900284
[ "MIT" ]
null
null
null
from tests.randomizer import random_binary_number CASES = 5 print("POSITIVE NUMBERS TEST") for x in range(CASES): A = random_binary_number() A[0] = 0 print(f"{str(A)} = {A.decimal()}") print("NEGATIVE NUMBERS TEST") for x in range(CASES): A = random_binary_number() A[0] = 1 print(f"{str(A)} =...
21.0625
49
0.637982
0c2fd6a3180f45a812b54bbd85ab022e1645aab5
2,343
py
Python
scenario-1/python/whole_test.py
ludwikkazmierczak/selenium-wbb
11ee4db5630d74502fd131724047a90d40a6be42
[ "Apache-2.0" ]
null
null
null
scenario-1/python/whole_test.py
ludwikkazmierczak/selenium-wbb
11ee4db5630d74502fd131724047a90d40a6be42
[ "Apache-2.0" ]
null
null
null
scenario-1/python/whole_test.py
ludwikkazmierczak/selenium-wbb
11ee4db5630d74502fd131724047a90d40a6be42
[ "Apache-2.0" ]
null
null
null
import time from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.common.keys import Keys from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By class whole_test:...
43.388889
106
0.661118
acc0b8dd1f6a15078663b9c6cd36362585cb76d6
576
py
Python
CPAC/registration/__init__.py
gkiar/C-PAC
0926b451dd8622b25eb68c7bcc770f0156238b23
[ "BSD-3-Clause" ]
null
null
null
CPAC/registration/__init__.py
gkiar/C-PAC
0926b451dd8622b25eb68c7bcc770f0156238b23
[ "BSD-3-Clause" ]
null
null
null
CPAC/registration/__init__.py
gkiar/C-PAC
0926b451dd8622b25eb68c7bcc770f0156238b23
[ "BSD-3-Clause" ]
null
null
null
from .registration import create_fsl_flirt_linear_reg, \ create_fsl_fnirt_nonlinear_reg, \ create_register_func_to_anat, \ create_bbregister_func_to_anat, \ create_wf_calculate_ants_warp from .output_func_to_standard im...
44.307692
60
0.647569
59da6ff7ac03fc22cefeae6a1c4c0bfd2a331daf
24,274
py
Python
poky-dunfell/bitbake/lib/toaster/toastermain/management/commands/buildimport.py
lacie-life/YoctoPi
3412e78468a9b84da50bb1aadb12b459001a3712
[ "MIT" ]
14
2021-11-04T07:47:37.000Z
2022-03-21T10:10:30.000Z
poky-dunfell/bitbake/lib/toaster/toastermain/management/commands/buildimport.py
lacie-life/YoctoPi
3412e78468a9b84da50bb1aadb12b459001a3712
[ "MIT" ]
null
null
null
poky-dunfell/bitbake/lib/toaster/toastermain/management/commands/buildimport.py
lacie-life/YoctoPi
3412e78468a9b84da50bb1aadb12b459001a3712
[ "MIT" ]
6
2021-11-02T10:56:19.000Z
2022-03-06T11:58:20.000Z
# # BitBake Toaster Implementation # # Copyright (C) 2018 Wind River Systems # # SPDX-License-Identifier: GPL-2.0-only # # buildimport: import a project for project specific configuration # # Usage: # (a) Set up Toaster environent # # (b) Call buildimport # $ /path/to/bitbake/lib/toaster/manage.py buildi...
41.851724
203
0.546634
840e7ad4ffa1da0e7f84310f6c671e19aba3814d
13,987
py
Python
test/functest/testcase_5.py
georgepar/sdnvpn-mirror
0224ff358ef1ee79f090a79a6e54346f945b994f
[ "Apache-2.0" ]
null
null
null
test/functest/testcase_5.py
georgepar/sdnvpn-mirror
0224ff358ef1ee79f090a79a6e54346f945b994f
[ "Apache-2.0" ]
null
null
null
test/functest/testcase_5.py
georgepar/sdnvpn-mirror
0224ff358ef1ee79f090a79a6e54346f945b994f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2015 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 # import argparse import os from r...
41.627976
78
0.595053