hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
b3195e2c249e847996cf37ace335078f2ff006fa
2,365
py
Python
paraseres.py
Junking1/DeepLabV3
7480ba2351fd5baa740bd5b8d0441f3103f3bbb0
[ "MIT" ]
null
null
null
paraseres.py
Junking1/DeepLabV3
7480ba2351fd5baa740bd5b8d0441f3103f3bbb0
[ "MIT" ]
null
null
null
paraseres.py
Junking1/DeepLabV3
7480ba2351fd5baa740bd5b8d0441f3103f3bbb0
[ "MIT" ]
null
null
null
import argparse
52.555556
83
0.578013
b31b96b0f97a4a311c4207315ff1606066d471f8
837
py
Python
scripts/plot_discuss_features.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
3
2021-06-19T02:16:46.000Z
2021-07-16T15:56:49.000Z
scripts/plot_discuss_features.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
scripts/plot_discuss_features.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 8 09:04:27 2021 @author: @Daniel03 """ from watex.viewer.plot import QuickPlot # path to dataset # data_fn = 'data/geo_fdata/BagoueDataset2.xlsx' data_fn ='data/geo_fdata/main.bagciv.data2.csv' # set figure title fig_title= '`sfi` vs`ohmS|`geol`' # list of feature...
22.026316
57
0.57945
b31be5d103cfb9e8ae792650af1addd027a89193
309
py
Python
main/Customer/urls.py
VikasSherawat/OrderFood
1c9b67d48f3add57053b50b8a07695016fe2bb4a
[ "MIT" ]
null
null
null
main/Customer/urls.py
VikasSherawat/OrderFood
1c9b67d48f3add57053b50b8a07695016fe2bb4a
[ "MIT" ]
4
2020-02-11T21:44:22.000Z
2021-06-10T17:28:46.000Z
main/Customer/urls.py
VikasSherawat/OrderFood
1c9b67d48f3add57053b50b8a07695016fe2bb4a
[ "MIT" ]
1
2017-03-13T04:21:49.000Z
2017-03-13T04:21:49.000Z
from django.conf.urls import url from . import views app_name = 'customer' urlpatterns = [ # url(r'^$', views.index, name='index'), url(r'^fooditems/(?P<shop_id>[0-9]+)/$', views.fooditems, name="fooditems"), url(r'^buyitem/(?P<fooditem_id>[0-9]+)/$', views.buy_fooditem, name="buy_fooditem") ]
28.090909
87
0.647249
b31c17bc22fb02364bf3e27057e5970be530fe76
2,149
py
Python
playground/messaging/producer/config.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/messaging/producer/config.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/messaging/producer/config.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
__title__ = "simulation" __author__ = "murlux" __copyright__ = "Copyright 2019, " + __author__ __credits__ = (__author__, ) __license__ = "MIT" __email__ = "murlux@protonmail.com" # Global imports from enum import Enum from typing import Any, Dict from playground.messaging.flow import Flow, flow_from_json from playgr...
30.7
119
0.665891
b31c75e2046a13da0654b68c56be95811318a66b
314
py
Python
intask_api/tasks/urls.py
KirovVerst/intask
4bdec6f49fa2873cca1354d7d3967973f5bcadc3
[ "MIT" ]
null
null
null
intask_api/tasks/urls.py
KirovVerst/intask
4bdec6f49fa2873cca1354d7d3967973f5bcadc3
[ "MIT" ]
7
2016-08-17T23:08:31.000Z
2022-03-02T02:23:08.000Z
intask_api/tasks/urls.py
KirovVerst/intask
4bdec6f49fa2873cca1354d7d3967973f5bcadc3
[ "MIT" ]
null
null
null
from rest_framework.routers import DefaultRouter from intask_api.tasks.views import TaskViewSet, TaskUserViewSet router = DefaultRouter() router.register(r'tasks', TaskViewSet, basename='tasks') router.register(r'tasks/(?P<task_id>[0-9]+)/users', TaskUserViewSet, basename='task-users') urlpatterns = router.urls
39.25
91
0.799363
b32039c8d905e3757359516982b961e7aa3b1444
5,413
py
Python
data-processing/MongoDB/mongo.py
kennie98/AI-book-recommendation-system
2707b08fe190a9803d3dcb610b96d9b6a984adc0
[ "CC0-1.0" ]
null
null
null
data-processing/MongoDB/mongo.py
kennie98/AI-book-recommendation-system
2707b08fe190a9803d3dcb610b96d9b6a984adc0
[ "CC0-1.0" ]
null
null
null
data-processing/MongoDB/mongo.py
kennie98/AI-book-recommendation-system
2707b08fe190a9803d3dcb610b96d9b6a984adc0
[ "CC0-1.0" ]
null
null
null
import pandas as pd from pymongo import MongoClient from MongoDB.marc import Marc import re import sys if __name__ == '__main__': mongo = Mongo('../config.ini') mongo.processMarcOutputFile() print("=================== store to MongoDB ===================") mongo.connectToMongoDB() mongo.storeToM...
41.320611
119
0.568631
b3208faab0bb9858fdeabda875efe2eb39010200
5,673
py
Python
robot3_18c1054/scripts/visualizer.py
18C1054-S-K/robot3_ros
c34cf2989829b3f38648b5e32be1d5cc5264ad80
[ "MIT" ]
null
null
null
robot3_18c1054/scripts/visualizer.py
18C1054-S-K/robot3_ros
c34cf2989829b3f38648b5e32be1d5cc5264ad80
[ "MIT" ]
null
null
null
robot3_18c1054/scripts/visualizer.py
18C1054-S-K/robot3_ros
c34cf2989829b3f38648b5e32be1d5cc5264ad80
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rospy import numpy as np import math import time from sensor_msgs.msg import JointState from std_msgs.msg import Float32, Float32MultiArray, Bool, Header from robot3_18c1054.msg import HandClose from robot3_18c1054.srv import GetHandState, GetHandStateResponse, GetInitTime, GetInitTimeRes...
30.5
176
0.693637
b3216e51e921df93ba62232e2dc93c7a485cd2b1
6,980
py
Python
gpu_bdb/min/large_ddf.py
cylondata/gpu-bdb
6edef0985e9953c6bc9b4e0639b0dff1c9facefa
[ "Apache-2.0" ]
null
null
null
gpu_bdb/min/large_ddf.py
cylondata/gpu-bdb
6edef0985e9953c6bc9b4e0639b0dff1c9facefa
[ "Apache-2.0" ]
null
null
null
gpu_bdb/min/large_ddf.py
cylondata/gpu-bdb
6edef0985e9953c6bc9b4e0639b0dff1c9facefa
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019-2020, 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 ag...
36.165803
116
0.698281
b3245056e3f0f3fb5389269f801f8bf1920f67ff
13,768
py
Python
ehb_service/apps/api/views/externalrecord.py
chop-dbhi/ehb-service
62f26cbb1495026caf37e1c326a593253b88bdd9
[ "BSD-2-Clause" ]
1
2018-11-03T15:53:50.000Z
2018-11-03T15:53:50.000Z
ehb_service/apps/api/views/externalrecord.py
chop-dbhi/ehb-service
62f26cbb1495026caf37e1c326a593253b88bdd9
[ "BSD-2-Clause" ]
78
2015-12-16T20:12:20.000Z
2020-04-08T19:42:35.000Z
ehb_service/apps/api/views/externalrecord.py
chop-dbhi/ehb-service
62f26cbb1495026caf37e1c326a593253b88bdd9
[ "BSD-2-Clause" ]
1
2019-11-04T06:24:02.000Z
2019-11-04T06:24:02.000Z
import json import logging from django.db.models import Q from core.forms import ExternalRecordForm, ExternalRecordRelationForm from .constants import ErrorConstants from api.helpers import FormHelpers from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import sta...
36.519894
179
0.529198
b324bf18045ea4a7f105aae6d323ab08dcfbf152
584
py
Python
058.py
souza-joao/cursoemvideo-python3
b9f747d1083c1c779630b25b321b291d76611901
[ "MIT" ]
null
null
null
058.py
souza-joao/cursoemvideo-python3
b9f747d1083c1c779630b25b321b291d76611901
[ "MIT" ]
null
null
null
058.py
souza-joao/cursoemvideo-python3
b9f747d1083c1c779630b25b321b291d76611901
[ "MIT" ]
null
null
null
from random import randint, choice from time import sleep print('_' * 40) print('Vou pensar em um nmero entre 0 e 10.\n') print('PROCESSANDO...') sleep(3) print('pronto!') sleep(0.5) n = int(input('Em que nmero eu pensei? ')) print('-' * 80) sleep(2) x = randint(0, 10) cont = 0 while n != x: if n < x: n =...
27.809524
86
0.631849
b325a4cdd05ee38f1c358b84ae1f77dc879858b0
6,142
py
Python
visual_novel/vn_core/migrations/0001_base_models_for_visual_novels.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
9
2018-03-11T12:53:12.000Z
2020-12-19T14:21:53.000Z
visual_novel/vn_core/migrations/0001_base_models_for_visual_novels.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
6
2020-02-11T22:19:22.000Z
2022-03-11T23:20:10.000Z
visual_novel/vn_core/migrations/0001_base_models_for_visual_novels.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-04-28 16:31 import core.fields from django.db import migrations, models import django.db.models.deletion
49.934959
160
0.586454
b327fc80caa49ef916375787bf5e4e7f062d013b
8,409
py
Python
cardbuilder/resolution/printer.py
jrhoff/cardbuilder
857360b1827494a286cee9928cb004af882e55b4
[ "MIT" ]
null
null
null
cardbuilder/resolution/printer.py
jrhoff/cardbuilder
857360b1827494a286cee9928cb004af882e55b4
[ "MIT" ]
null
null
null
cardbuilder/resolution/printer.py
jrhoff/cardbuilder
857360b1827494a286cee9928cb004af882e55b4
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from collections import OrderedDict from os import mkdir from os.path import exists, join from typing import Optional, Callable, get_type_hints, Dict import requests from cardbuilder.common.util import dedup_by, retry_with_logging from cardbuilder.exceptions import CardBuilderUsage...
41.220588
121
0.633964
b329631d1ae39b00c66566b6ebd6369fb6aa8d9a
19,912
py
Python
pysrc/map_info_rdr.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
1,261
2016-12-16T14:29:30.000Z
2022-03-30T20:21:25.000Z
pysrc/map_info_rdr.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
190
2016-12-17T13:44:09.000Z
2022-03-27T09:28:13.000Z
pysrc/map_info_rdr.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
155
2016-12-16T22:17:20.000Z
2022-02-16T20:53:59.000Z
#!/usr/bin/env python # -*- python -*- #BEGIN_LEGAL # #Copyright (c) 2020 Intel 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-...
38.072658
107
0.558206
b329aa0077fedcf56909ba21624d7b73c8f4b2e3
1,638
py
Python
python/scripts/tools/m3qa_unit_test.py
ahoarau/m3meka
237739f0266ce60aaa3013b0d2b22fc07b6374c4
[ "MIT" ]
1
2015-06-19T12:14:18.000Z
2015-06-19T12:14:18.000Z
python/scripts/tools/m3qa_unit_test.py
semeyerz/m3meka
6e5d6b73ad3ebdd8429497923e601eae65d8b2fe
[ "MIT" ]
null
null
null
python/scripts/tools/m3qa_unit_test.py
semeyerz/m3meka
6e5d6b73ad3ebdd8429497923e601eae65d8b2fe
[ "MIT" ]
2
2015-11-27T09:25:54.000Z
2021-08-16T16:29:22.000Z
#! /usr/bin/python #Copyright 2008, Meka Robotics #All rights reserved. #http://mekabot.com #Redistribution and use in source and binary forms, with or without #modification, are permitted. #THIS SOFTWARE IS PROVIDED BY THE Copyright HOLDERS AND CONTRIBUTORS #"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDI...
32.117647
131
0.700855
b32c6157b37a6c2aef3cf2191a1d45f18ee4504f
229
py
Python
Introducao python/exercicios/ex013b.py
Luis12368/python
23352d75ad13bcfd09ea85ab422fdc6ae1fcc5e7
[ "MIT" ]
null
null
null
Introducao python/exercicios/ex013b.py
Luis12368/python
23352d75ad13bcfd09ea85ab422fdc6ae1fcc5e7
[ "MIT" ]
null
null
null
Introducao python/exercicios/ex013b.py
Luis12368/python
23352d75ad13bcfd09ea85ab422fdc6ae1fcc5e7
[ "MIT" ]
null
null
null
valor = float(input('Insira o valor do produto: ')) desconto = float(input('Insira o vlaor do deaconto: ')) novo_valor = valor - (valor * (desconto / 100)) print(f'O novo valor com {desconto}% de desconto {novo_valor:.2f}')
28.625
69
0.68559
b32c8ac533a9595c7935a15d0c1ab0a2d7c89655
2,271
py
Python
specs/monitor/events_v1_spec.py
marojor/sysdig-sdk-python
c554f9f747ff88ce075b50a50d81f75aff327bb1
[ "MIT" ]
45
2016-04-11T16:50:15.000Z
2020-07-11T23:37:51.000Z
specs/monitor/events_v1_spec.py
marojor/sysdig-sdk-python
c554f9f747ff88ce075b50a50d81f75aff327bb1
[ "MIT" ]
74
2016-08-09T17:10:55.000Z
2020-07-09T08:36:16.000Z
specs/monitor/events_v1_spec.py
marojor/sysdig-sdk-python
c554f9f747ff88ce075b50a50d81f75aff327bb1
[ "MIT" ]
39
2016-04-20T17:22:23.000Z
2020-07-08T17:25:52.000Z
import os import time from expects import expect, have_key, contain, have_keys, be_empty, equal from mamba import it, before, description from sdcclient.monitor import EventsClientV1 from specs import be_successful_api_call with description("Events v1", "integration") as self: with before.all: self.clien...
41.290909
122
0.647292
b32ce48bfac67262240dc37403bd03bc3776e361
322
py
Python
app/cryptprice/exceptions/app_exceptions.py
MihailButnaru/cryptprice
b9636dbb0fb88d345fc53a9e8ec0554a888e7302
[ "MIT" ]
2
2020-07-04T23:02:14.000Z
2021-02-04T21:21:14.000Z
app/cryptprice/exceptions/app_exceptions.py
MihailButnaru/cryptprice
b9636dbb0fb88d345fc53a9e8ec0554a888e7302
[ "MIT" ]
4
2021-03-30T13:50:34.000Z
2021-09-22T19:22:57.000Z
app/cryptprice/exceptions/app_exceptions.py
MihailButnaru/cryptprice
b9636dbb0fb88d345fc53a9e8ec0554a888e7302
[ "MIT" ]
null
null
null
from rest_framework.exceptions import APIException __author__ = "Mihail Butnaru" __copyright__ = "Copyright 2020, All rights reserved."
29.272727
81
0.795031
b32e4e1996fb297287ca00c74f529be969c107ca
6,771
py
Python
sdk_liteos/third_party/u-boot-v2019.07/u-boot-v2019.07/tools/binman/control.py
openharmony-gitee-mirror/device_bearpi_bearpi_hm_nano
c463575de065aad080f730ffbd479628eb821105
[ "BSD-3-Clause" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
sdk_liteos/third_party/u-boot-v2019.07/u-boot-v2019.07/tools/binman/control.py
openharmony-gitee-mirror/device_bearpi_bearpi_hm_nano
c463575de065aad080f730ffbd479628eb821105
[ "BSD-3-Clause" ]
null
null
null
sdk_liteos/third_party/u-boot-v2019.07/u-boot-v2019.07/tools/binman/control.py
openharmony-gitee-mirror/device_bearpi_bearpi_hm_nano
c463575de065aad080f730ffbd479628eb821105
[ "BSD-3-Clause" ]
1
2021-12-15T09:54:37.000Z
2021-12-15T09:54:37.000Z
# SPDX-License-Identifier: GPL-2.0+ # Copyright (c) 2016 Google, Inc # Written by Simon Glass <sjg@chromium.org> # # Creates binary images from input files controlled by a description # from collections import OrderedDict import os import sys import tools import command import elf from image import Image import state...
34.545918
80
0.585143
b3306de4e386f43f3bd60bacfbc628514aa6597c
2,683
py
Python
python/Data Structures/Arrays/maximumRange.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Arrays/maximumRange.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Arrays/maximumRange.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
#Hashmap is not really that much more efficient #The runtime was slightly faster most likely due to the speedier lookup than dictionairy # Not much of a space improvement either
33.123457
94
0.542303
b330802951dfea9ae95601d2e89610bb4ee484ba
5,027
py
Python
vision_transformer/Vit.py
ximingxing/Deep-Learning-in-Action
38d5d3d6990553ff9d3ea771d8e83f8b47241b9a
[ "MIT" ]
1
2020-09-16T09:17:37.000Z
2020-09-16T09:17:37.000Z
vision_transformer/Vit.py
ximingxing/Deep-Learning-in-Action
38d5d3d6990553ff9d3ea771d8e83f8b47241b9a
[ "MIT" ]
1
2021-05-13T05:20:07.000Z
2021-05-13T05:20:07.000Z
vision_transformer/Vit.py
ximingxing/Deep-Learning-in-Action
38d5d3d6990553ff9d3ea771d8e83f8b47241b9a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Project : Deep-Learning-in-Action File : Vit.py Description : : An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale : https://arxiv.org/abs/2010.11929 Author : xingximing.xxm Date : 2021/7/11 11:36 AM """ import torch from torch...
30.652439
139
0.571912
b331152f9b2de99eab713f246fc00d258a2ce780
1,677
py
Python
workbooks/WiFi_email.py
DarishkaAMS/laughing-guacamole
f848a922fdccb40fe6bb5e3026ebea54b32fa78d
[ "MIT" ]
null
null
null
workbooks/WiFi_email.py
DarishkaAMS/laughing-guacamole
f848a922fdccb40fe6bb5e3026ebea54b32fa78d
[ "MIT" ]
null
null
null
workbooks/WiFi_email.py
DarishkaAMS/laughing-guacamole
f848a922fdccb40fe6bb5e3026ebea54b32fa78d
[ "MIT" ]
null
null
null
import subprocess import re import smtplib from email.message import EmailMessage command_output = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output=True)\ .stdout.decode('Windows-1251') profile_names = (re.findall("All User Profile : (.*)\r", command_output)) wifi_list = list() if len(pr...
32.882353
103
0.613596
b33142a09cea192c1496daaf28a083bed7fd400a
3,518
py
Python
sheets.py
caleby117/xybot
6dcc6ac99ef05ae7791c6c29c1f2f2c4242fb647
[ "Apache-2.0" ]
null
null
null
sheets.py
caleby117/xybot
6dcc6ac99ef05ae7791c6c29c1f2f2c4242fb647
[ "Apache-2.0" ]
null
null
null
sheets.py
caleby117/xybot
6dcc6ac99ef05ae7791c6c29c1f2f2c4242fb647
[ "Apache-2.0" ]
null
null
null
import gspread import time gc = gspread.service_account(filename='creds.json') sheetKey = "<insert shet key here>" wb = gc.open_by_key(sheetKey) localtime = time.asctime() newSheetName = f'XY on {localtime}' worksheet = wb.sheet1 scoreSheet = worksheet.duplicate(insert_sheet_index=1, new_sheet_name=newSheetName) #ma...
21.716049
92
0.688459
b33207e52f5d4757fcc591f2721a05242c76cc96
3,538
py
Python
rgn/preprocessing.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
rgn/preprocessing.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
3
2022-01-13T03:13:37.000Z
2022-03-12T00:48:18.000Z
rgn/preprocessing.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
import glob import os import numpy as np from io import BytesIO from tqdm import tqdm import bcolz import platform MAX_SEQUENCE_LENGTH = 700 input_files = glob.glob("../data/raw/*") input_files_filtered = filter_input_files(input_files) for file_path in input_files_filtered: if platform.system() == 'Windows': ...
34.019231
99
0.550594
b334e4b92f0e14a486132725ee5eb22fdd3521f3
12,046
py
Python
stfsclient/apis.py
jagans94/stfsclient
e24f109a4256c05ecca9331c21bf8f76e172ad45
[ "MIT" ]
null
null
null
stfsclient/apis.py
jagans94/stfsclient
e24f109a4256c05ecca9331c21bf8f76e172ad45
[ "MIT" ]
2
2019-09-15T19:11:05.000Z
2019-09-21T13:05:11.000Z
stfsclient/apis.py
jagans94/stfsclient
e24f109a4256c05ecca9331c21bf8f76e172ad45
[ "MIT" ]
1
2020-01-19T03:46:32.000Z
2020-01-19T03:46:32.000Z
import grpc from stfsclient.tensorflow_serving import model_pb2 from stfsclient.tensorflow_serving import get_model_metadata_pb2, predict_pb2 from stfsclient.tensorflow_serving import get_model_status_pb2, model_management_pb2 from stfsclient.tensorflow_serving import prediction_service_pb2_grpc from stfsclient.tensor...
33.276243
110
0.648265
b336e30f32a8c91df3cdcc80f11eabae458079ff
1,058
py
Python
metropolis/core/tests/test_serializer.py
Ashon/_study_nats_worker
9c137a5cb68b13ddd91f999e61ac5d6125cd155a
[ "MIT" ]
5
2020-01-08T07:58:54.000Z
2021-03-03T13:22:11.000Z
metropolis/core/tests/test_serializer.py
Ashon/python-nats-gateway
9c137a5cb68b13ddd91f999e61ac5d6125cd155a
[ "MIT" ]
3
2019-11-05T01:15:47.000Z
2019-11-07T09:50:25.000Z
metropolis/core/tests/test_serializer.py
Ashon/python-nats-rpc
9c137a5cb68b13ddd91f999e61ac5d6125cd155a
[ "MIT" ]
1
2019-11-06T04:49:52.000Z
2019-11-06T04:49:52.000Z
import unittest from metropolis.core.serializer import DefaultMessageSerializer from metropolis.core.serializer import JsonMessageSerializer
36.482759
64
0.751418
b338f100fce3bc7e987544b20907d50a2e935653
5,704
py
Python
ceph_provisioned/ceph_provisioned.py
CCI-MOC/zabbix-ceph
500b7a714225ef03fe4b202af1f49072cc879651
[ "Apache-2.0" ]
1
2020-02-22T20:50:47.000Z
2020-02-22T20:50:47.000Z
ceph_provisioned/ceph_provisioned.py
CCI-MOC/zabbix-ceph
500b7a714225ef03fe4b202af1f49072cc879651
[ "Apache-2.0" ]
null
null
null
ceph_provisioned/ceph_provisioned.py
CCI-MOC/zabbix-ceph
500b7a714225ef03fe4b202af1f49072cc879651
[ "Apache-2.0" ]
null
null
null
#! /bin/python """Calculate provisioned space""" from __future__ import division import sys import subprocess import json import functools import multiprocessing import configparser from pprint import pprint from math import ceil from pyzabbix import ZabbixMetric, ZabbixSender from pyzabbix_socketwrapper import PyZa...
32.409091
164
0.673562
b339349f3a3b5700cfea185822ee49f0438d9f1b
4,905
py
Python
bin/EmMonitor.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
bin/EmMonitor.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
null
null
null
bin/EmMonitor.py
multi-service-fabric/element-manager
e550d1b5ec9419f1fb3eb6e058ce46b57c92ee2f
[ "Apache-2.0" ]
1
2020-04-02T01:17:43.000Z
2020-04-02T01:17:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2019 Nippon Telegraph and Telephone Corporation # Filename: em_monitor.py ''' EM Monitoring Module for RA ''' import sys import os import time from ncclient import manager from ncclient import transport from ncclient import operations USERNAME = None PASSWO...
31.645161
108
0.640571
b33a0a1302faab794aabfcd653702fef3513e51b
6,307
py
Python
live_cnn/webcam_cnn_pipeline.py
apapiu/live_cnn
d560c14269c81d9b437f4f25169e28c983a7b0af
[ "Apache-2.0" ]
3
2016-11-15T16:04:14.000Z
2017-02-05T23:51:29.000Z
live_cnn/webcam_cnn_pipeline.py
apapiu/live_cnn
d560c14269c81d9b437f4f25169e28c983a7b0af
[ "Apache-2.0" ]
null
null
null
live_cnn/webcam_cnn_pipeline.py
apapiu/live_cnn
d560c14269c81d9b437f4f25169e28c983a7b0af
[ "Apache-2.0" ]
null
null
null
#functions: #to get the dependencies create a conda environment: #conda create --name live_cnn keras ipython opencv scikit-learn #note that the dim ordering here is the theano one - it's faster on CPU. #TODO: do some detection/ bounding box CNN's? import time import os import cv2 import numpy as np from keras.models...
30.322115
96
0.641985
b33b2269e6d2e9516aade7f62d1a13fd0a9f22d6
2,292
py
Python
robotarm/controllers/api_service.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
1
2022-03-27T20:09:10.000Z
2022-03-27T20:09:10.000Z
robotarm/controllers/api_service.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
4
2022-03-25T03:45:10.000Z
2022-03-29T14:31:16.000Z
robotarm/controllers/api_service.py
AmidBidee/RobotArm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ State Controller Module """ import subprocess from robotarm.controllers import proxy_url import requests import pathlib import psutil BASE_DIR = pathlib.Path(__file__).resolve().parent.parent #print(BASE_DIR)
29.012658
104
0.544939
b33f00818b733f056f6f2336e9dfd9652c3b1327
597
py
Python
tests/components/jellyfin/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/jellyfin/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/jellyfin/const.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Constants for the Jellyfin integration tests.""" from typing import Final from jellyfin_apiclient_python.connection_manager import CONNECTION_STATE TEST_URL: Final = "https://example.com" TEST_USERNAME: Final = "test-username" TEST_PASSWORD: Final = "test-password" MOCK_SUCCESFUL_CONNECTION_STATE: Final = {"Stat...
33.166667
85
0.785595
b33f09e5bf45a9316a7fe457b361826368d9568b
175
py
Python
mysite/LibreBadge/views/views.py
energized-id/energized-id
9dfd483e808cee7e87bfae02864ff2d614609890
[ "MIT" ]
8
2020-03-05T07:04:48.000Z
2022-03-29T14:32:00.000Z
mysite/LibreBadge/views/views.py
energized-id/energized-id
9dfd483e808cee7e87bfae02864ff2d614609890
[ "MIT" ]
36
2020-02-26T18:15:37.000Z
2020-11-25T05:56:09.000Z
mysite/LibreBadge/views/views.py
energized-id/energized-id
9dfd483e808cee7e87bfae02864ff2d614609890
[ "MIT" ]
2
2021-06-20T06:27:16.000Z
2021-11-12T10:48:14.000Z
from .imports import * #Put all views that don't belong elsewere here
25
50
0.725714
b33f2a6de57090a527f6078cd21b1bc58dc5b6e8
1,266
py
Python
examples/basic.py
kpchand/firepack
082b2477024c928e1999691b17eb3c07f015d79f
[ "MIT" ]
1
2021-06-14T10:18:57.000Z
2021-06-14T10:18:57.000Z
examples/basic.py
kpchand/firepack
082b2477024c928e1999691b17eb3c07f015d79f
[ "MIT" ]
null
null
null
examples/basic.py
kpchand/firepack
082b2477024c928e1999691b17eb3c07f015d79f
[ "MIT" ]
null
null
null
from firepack.fields import IntField, StrField from firepack.service import FireService from firepack.errors import SkipError, ValidationError CRAWLED_DB = [] crawler = Crawler() crawler.call({ 'user_id': 1, 'page_name': 'about.html' }) # Values are stored in native python types wherever possible: print(...
28.133333
84
0.665877
b33f68c75544b629936c29fb4b8ae81e16ce8cfe
10,460
py
Python
dependencies/panda/Panda3D-1.10.0-x64/python/Lib/JOD/JamoDrumNodePath.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
dependencies/panda/Panda3D-1.10.0-x64/python/Lib/JOD/JamoDrumNodePath.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
dependencies/panda/Panda3D-1.10.0-x64/python/Lib/JOD/JamoDrumNodePath.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
""" NodePath for Jam-o-Drum model @author: Ben Buchwald <bb2@alumni.cmu.edu> Last Updated: 11/29/2005 @var DRUMPAD_RADIUS: constant representing the radius of the drumpad as a percentage of the radius of the table @type DRUMPAD_RADIUS: float @var SPINNER_RADIUS: constant representing the radius o...
33.101266
96
0.60631
b34056015462e1089eaab43dc86088ca8783c08f
2,927
py
Python
src/apps/alarm_clock/tests/test_api.py
stefanhoelzl/alarm-clock
efba84e71fcade26bef020dc7eaa10181ea9f96c
[ "MIT" ]
1
2019-07-31T12:39:53.000Z
2019-07-31T12:39:53.000Z
src/apps/alarm_clock/tests/test_api.py
stefanhoelzl/alarm-clock
efba84e71fcade26bef020dc7eaa10181ea9f96c
[ "MIT" ]
null
null
null
src/apps/alarm_clock/tests/test_api.py
stefanhoelzl/alarm-clock
efba84e71fcade26bef020dc7eaa10181ea9f96c
[ "MIT" ]
1
2019-10-04T04:32:20.000Z
2019-10-04T04:32:20.000Z
import pytest from unittest.mock import patch from ..api import * from ..alarm import Alarm from .. import AlarmClockApp from ..alarm_states import Disabled, Enabled
27.35514
78
0.617014
b340e1518e138957e56fd973250c45b5d93fb474
4,519
py
Python
skipole/skiadmin/skiadminpackages/editfiles/editfile.py
bernie-skipole/skipole
b45d3291c593e7c03c053ab4f192f1ecc5c3e9b9
[ "MIT" ]
null
null
null
skipole/skiadmin/skiadminpackages/editfiles/editfile.py
bernie-skipole/skipole
b45d3291c593e7c03c053ab4f192f1ecc5c3e9b9
[ "MIT" ]
null
null
null
skipole/skiadmin/skiadminpackages/editfiles/editfile.py
bernie-skipole/skipole
b45d3291c593e7c03c053ab4f192f1ecc5c3e9b9
[ "MIT" ]
null
null
null
"Functions implementing FilePage editing" from ... import ValidateError, FailPage, ServerError from ....ski.project_class_definition import SectionData from ... import skilift from ....skilift import editpage from .. import utils def retrieve_edit_filepage(skicall): "Retrieves widget data for the edit file...
31.823944
115
0.680239
b3411f8bec2f4f619f83a292d7fea679c2334e6a
5,583
py
Python
django_resto/settings/base.py
sunilsm7/django_resto
b7698653093af7e6f26dd0d0c7b8d6046b402ea4
[ "MIT" ]
1
2017-08-03T01:40:12.000Z
2017-08-03T01:40:12.000Z
django_resto/settings/base.py
sunilsm7/django_resto
b7698653093af7e6f26dd0d0c7b8d6046b402ea4
[ "MIT" ]
null
null
null
django_resto/settings/base.py
sunilsm7/django_resto
b7698653093af7e6f26dd0d0c7b8d6046b402ea4
[ "MIT" ]
null
null
null
""" Django settings for django_resto project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impo...
28.340102
105
0.716819
b3419549c4ca01cf1366c673fc700d7d9a60d784
5,710
py
Python
alab/norm.py
WeAllOneCode/PGS2
9df272984eacf4e0ea87f1f80e4fdcc9ea1a7a37
[ "MIT" ]
null
null
null
alab/norm.py
WeAllOneCode/PGS2
9df272984eacf4e0ea87f1f80e4fdcc9ea1a7a37
[ "MIT" ]
null
null
null
alab/norm.py
WeAllOneCode/PGS2
9df272984eacf4e0ea87f1f80e4fdcc9ea1a7a37
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2015 University of Southern California and # Nan Hua # # Authors: Nan Hua # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eith...
31.032609
123
0.515762
b342a3c46ccc9eff45c7a93f20bcee1cba5cd708
23,313
py
Python
src/radixlib/provider.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
32
2022-01-12T16:52:28.000Z
2022-03-24T18:05:47.000Z
src/radixlib/provider.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
3
2022-01-12T17:01:55.000Z
2022-02-12T15:14:16.000Z
src/radixlib/provider.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
1
2022-01-21T04:28:07.000Z
2022-01-21T04:28:07.000Z
from radixlib.api_types.identifiers import ( TransactionIdentifier, ValidatorIdentifier, NetworkIdentifier, AccountIdentifier, TokenIdentifier, StateIdentifier, ) from radixlib.actions import ActionType from radixlib.network import Network import radixlib as radix import requests from typing im...
39.313659
134
0.59306
b345ff960926f97d7b31e1112f2806939c9439c7
1,127
py
Python
db_etl_update_db/queries.py
publichealthengland/coronavirus-dashboard-pipeline-etl
efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c
[ "MIT" ]
7
2021-02-14T12:42:56.000Z
2022-03-02T09:14:22.000Z
db_etl_update_db/queries.py
publichealthengland/coronavirus-dashboard-pipeline-etl
efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c
[ "MIT" ]
19
2021-11-03T09:21:00.000Z
2022-03-07T09:26:47.000Z
db_etl_update_db/queries.py
publichealthengland/coronavirus-dashboard-pipeline-etl
efcf5c77091afe8a0f7edce2e5934fe8c1f6dc1c
[ "MIT" ]
2
2021-03-03T16:52:51.000Z
2022-02-28T16:22:33.000Z
#!/usr/bin python3 STATS_QUERY = """\ INSERT INTO covid19.release_stats (release_id, record_count) SELECT ts.release_id AS id, COUNT(*) AS counter FROM covid19.time_series AS ts WHERE ts.partition_id = ANY('{partitions}'::VARCHAR[]) GROUP BY ts.release_id ON CONFLICT ( release_id ) DO UPDATE SET record_count = EXC...
43.346154
75
0.651287
b34624bfe3809ef151eb67f5a9916a24938c1e64
3,109
py
Python
setup.py
Mr0l3/filometro
46af52121fc3ed94935c9965d2ff51d2d26d1809
[ "MIT" ]
null
null
null
setup.py
Mr0l3/filometro
46af52121fc3ed94935c9965d2ff51d2d26d1809
[ "MIT" ]
null
null
null
setup.py
Mr0l3/filometro
46af52121fc3ed94935c9965d2ff51d2d26d1809
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys from shutil import rmtree from setuptools import setup, find_packages, Command from filometro import __version__ from filometro import __author__ here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md'), mode='r', encoding='utf-8') a...
30.480392
129
0.630749
b346352117cdba0c6b2f29860a945cac009480d1
2,953
py
Python
nmcli/dummy/_device.py
thex12/nmcli
af0df0283b2d8dbf9158248e69cf1aebcdabeaa1
[ "MIT" ]
1
2021-12-29T17:02:28.000Z
2021-12-29T17:02:28.000Z
nmcli/dummy/_device.py
thex12/nmcli
af0df0283b2d8dbf9158248e69cf1aebcdabeaa1
[ "MIT" ]
45
2021-01-04T12:05:07.000Z
2021-04-21T14:35:55.000Z
nmcli/dummy/_device.py
thex12/nmcli
af0df0283b2d8dbf9158248e69cf1aebcdabeaa1
[ "MIT" ]
2
2021-03-26T12:35:07.000Z
2021-05-01T02:15:16.000Z
from typing import List, Tuple from .._device import DeviceControlInterface, DeviceDetails from ..data.device import Device, DeviceWifi
31.084211
69
0.651202
b34719cd1fc2bb1e55eb9ba89ae807337753e699
801
py
Python
examples/abcbook/example206.py
martinlackner/approval-multiwinner
17bb6294b1910531b66c457f7b1a34a966d4113d
[ "MIT" ]
2
2019-07-10T08:54:43.000Z
2019-09-09T16:17:04.000Z
examples/abcbook/example206.py
martinlackner/approval-multiwinner
17bb6294b1910531b66c457f7b1a34a966d4113d
[ "MIT" ]
1
2019-09-11T21:29:47.000Z
2019-09-11T21:29:47.000Z
examples/abcbook/example206.py
martinlackner/approval-multiwinner
17bb6294b1910531b66c457f7b1a34a966d4113d
[ "MIT" ]
1
2019-09-11T16:56:23.000Z
2019-09-11T16:56:23.000Z
""" Example 2.6 (PAV, seq-PAV, revseq-PAV). From "Multi-Winner Voting with Approval Preferences" by Martin Lackner and Piotr Skowron https://arxiv.org/abs/2007.01795 """ from abcvoting import abcrules from abcvoting.preferences import Profile from abcvoting import misc from abcvoting.output import output, DETAILS ou...
24.272727
87
0.705368
b3490a3f712a2661b2490d387f96a6b22dd40ef8
7,605
py
Python
Cogs/Encode.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/Encode.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/Encode.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
import asyncio import discord from discord.ext import commands import base64 import binascii import re from Cogs import Nullify
30.298805
126
0.687968
b34955dfe5c35177be930f5f64d0fb5e134d2832
1,968
py
Python
9.classes/a_first_look_at_classes.py
yuishihara/python_tutorial
c88db5b1c002dcf69e183ed1a45c02a08aee905c
[ "MIT" ]
null
null
null
9.classes/a_first_look_at_classes.py
yuishihara/python_tutorial
c88db5b1c002dcf69e183ed1a45c02a08aee905c
[ "MIT" ]
null
null
null
9.classes/a_first_look_at_classes.py
yuishihara/python_tutorial
c88db5b1c002dcf69e183ed1a45c02a08aee905c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 if __name__ == "__main__": class_objects() instance_objects() method_objects() class_and_instance_variables()
18.055046
47
0.554878
b34957302a3231537efa791864b2e7c0c023c81a
245
py
Python
40-49/44. strict_zip/strict_zip.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
1
2021-11-30T05:03:24.000Z
2021-11-30T05:03:24.000Z
40-49/44. strict_zip/strict_zip.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
null
null
null
40-49/44. strict_zip/strict_zip.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
2
2021-04-18T05:26:43.000Z
2021-11-28T18:46:43.000Z
from itertools import zip_longest
24.5
59
0.669388
b349c7b8b877c643ef6d69427ce58c59318ed868
1,435
py
Python
src/tm/config/system/routes.py
calopez/pyramid_auth_api
d7854cf33ef5225f9e5d67c738775eaec99fb004
[ "MIT" ]
null
null
null
src/tm/config/system/routes.py
calopez/pyramid_auth_api
d7854cf33ef5225f9e5d67c738775eaec99fb004
[ "MIT" ]
2
2019-12-26T17:21:06.000Z
2020-01-06T19:31:59.000Z
src/tm/config/system/routes.py
calopez/pyramid_auth_api
d7854cf33ef5225f9e5d67c738775eaec99fb004
[ "MIT" ]
null
null
null
from pyramid.response import Response
39.861111
94
0.658537
b34a6562345bbb78b3671e1bb467aac47ea7b5ce
1,664
py
Python
omega_miya/plugins/bilibili_dynamic_monitor/util.py
Ailitonia/nonebot_miya
71d8cf3e91bbb0dd63cbee85fd757c738b99f10c
[ "MIT" ]
5
2020-10-03T14:24:41.000Z
2021-03-05T12:36:44.000Z
omega_miya/plugins/bilibili_dynamic_monitor/util.py
Ailitonia/nonebot_miya
71d8cf3e91bbb0dd63cbee85fd757c738b99f10c
[ "MIT" ]
null
null
null
omega_miya/plugins/bilibili_dynamic_monitor/util.py
Ailitonia/nonebot_miya
71d8cf3e91bbb0dd63cbee85fd757c738b99f10c
[ "MIT" ]
null
null
null
import base64 import aiohttp from io import BytesIO from nonebot import log # base64
39.619048
98
0.546875
b34a72eb51bbf4be0f21e5a82d02a446a82a711f
2,972
py
Python
server_obj.py
varadhodiyil/vision_pipeline
3cf2925b9d799bbd0dbf213d23ca35bfed927381
[ "MIT" ]
1
2020-10-05T10:46:44.000Z
2020-10-05T10:46:44.000Z
server_obj.py
varadhodiyil/vision_pipeline
3cf2925b9d799bbd0dbf213d23ca35bfed927381
[ "MIT" ]
null
null
null
server_obj.py
varadhodiyil/vision_pipeline
3cf2925b9d799bbd0dbf213d23ca35bfed927381
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import socket import numpy as np from PIL import Image try: import cPickle as pickle except ImportError: import pickle from datetime import datetime import threading from client_send_message import MessageSender from color_classifier import detect_color import ...
27.018182
92
0.569314
b34c9285365db87ed1c599e4cb5dbc704c6fe688
223
py
Python
blazeform/tests/renderers/withaction.py
blazelibs/blazeform
29722ed6398ab9883dd1e1d0e9d1cb04ed8bc0a7
[ "BSD-3-Clause" ]
null
null
null
blazeform/tests/renderers/withaction.py
blazelibs/blazeform
29722ed6398ab9883dd1e1d0e9d1cb04ed8bc0a7
[ "BSD-3-Clause" ]
6
2017-05-15T14:08:46.000Z
2020-10-23T21:31:00.000Z
blazeform/tests/renderers/withaction.py
blazelibs/blazeform
29722ed6398ab9883dd1e1d0e9d1cb04ed8bc0a7
[ "BSD-3-Clause" ]
1
2020-07-01T21:08:38.000Z
2020-07-01T21:08:38.000Z
from __future__ import absolute_import from blazeform.form import Form
24.777778
65
0.70852
b34ceef8d6c2e4dc17ff23fbef63dc632e613112
4,332
py
Python
legacy/metamodel/nn_generator/nn_trainer_evaluate.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
legacy/metamodel/nn_generator/nn_trainer_evaluate.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
legacy/metamodel/nn_generator/nn_trainer_evaluate.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
# coding=utf-8 """ 'input_matrix.py' script hosts the following functions: (1) collect CEA inputs (2) collect CEA outputs (demands) (3) add delay to time-sensitive inputs (4) return the input and target matrices """ from math import sqrt import pandas as pd from legacy.metamodel.nn_generator import ra...
47.086957
106
0.707756
b34f561782604d15fbd0ad5fb7b41eb487472431
1,512
py
Python
src/feedfetcher.py
moretti/comic-scraper
12c767499d64f43e0a9703598a6adcad6ffd6330
[ "Unlicense", "MIT" ]
1
2015-02-17T12:37:28.000Z
2015-02-17T12:37:28.000Z
src/feedfetcher.py
moretti/comic-scraper
12c767499d64f43e0a9703598a6adcad6ffd6330
[ "Unlicense", "MIT" ]
null
null
null
src/feedfetcher.py
moretti/comic-scraper
12c767499d64f43e0a9703598a6adcad6ffd6330
[ "Unlicense", "MIT" ]
null
null
null
import feedparser import models import time import datetime as dt from bs4 import BeautifulSoup VALID_IMAGE_ATTRIBUTES = ('alt', 'title', 'src')
25.2
105
0.618386
b351c2add51385b9b29daeb766b3694fbfb43cd6
365
py
Python
src/string_format.py
thehimel/hackerrank-python
e7b172b9379f89d4dbf99161491ae1e552f2692c
[ "MIT" ]
null
null
null
src/string_format.py
thehimel/hackerrank-python
e7b172b9379f89d4dbf99161491ae1e552f2692c
[ "MIT" ]
null
null
null
src/string_format.py
thehimel/hackerrank-python
e7b172b9379f89d4dbf99161491ae1e552f2692c
[ "MIT" ]
null
null
null
""" https://www.hackerrank.com/challenges/whats-your-name/problem Input: Ross Taylor Output: Hello Ross Taylor! You just delved into python. """ if __name__ == '__main__': first_name, last_name = 'Ross', 'Taylor' print_full_name(first_name, last_name)
18.25
64
0.715068
b35206db6eaaa312fca86f170531ab36f181b6a0
6,745
py
Python
server.py
eugenetan01/TranslatorBot
e814d11b5a492a26ecb84737c31dc2c92c9711d8
[ "MIT" ]
null
null
null
server.py
eugenetan01/TranslatorBot
e814d11b5a492a26ecb84737c31dc2c92c9711d8
[ "MIT" ]
null
null
null
server.py
eugenetan01/TranslatorBot
e814d11b5a492a26ecb84737c31dc2c92c9711d8
[ "MIT" ]
null
null
null
import json import logging from telegram import InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackQueryHandler, ConversationHandler import os from googletrans import Translator import Controller as controller import DBController as dbController...
40.878788
166
0.722016
b3530c3a8484a4747a14654a1eca8555cff02513
60
py
Python
login.py
saaassin13/test_python10
102acab0417b238cba5f452604bda09ea2a98591
[ "MIT" ]
null
null
null
login.py
saaassin13/test_python10
102acab0417b238cba5f452604bda09ea2a98591
[ "MIT" ]
null
null
null
login.py
saaassin13/test_python10
102acab0417b238cba5f452604bda09ea2a98591
[ "MIT" ]
null
null
null
num = 1 num1 = 1111 num2 = 2222 num3 = 3333 num4 = 4444
6
11
0.6
b354e2175d42b27df0d6c702ef00771b60b91fe6
60
py
Python
modules/shared/infrastructure/requests/django/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
6
2020-08-09T23:41:08.000Z
2021-03-16T22:05:40.000Z
modules/shared/infrastructure/requests/django/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
1
2020-10-02T02:59:38.000Z
2020-10-02T02:59:38.000Z
modules/shared/infrastructure/requests/django/__init__.py
eduardolujan/hexagonal_architecture_django
8055927cb460bc40f3a2651c01a9d1da696177e8
[ "BSD-3-Clause" ]
2
2021-03-16T22:05:43.000Z
2021-04-30T06:35:25.000Z
from .django_request import Request __all__ = ('Request',)
15
35
0.75
b35557efbdcd9de6dfaad18c72d80170e6a3f1c7
871
py
Python
tests/test_cluster_assignment.py
mo6zes/Reproducing-Deep-Fair-Clustering
91f915436821eb05cdd021d3e9eb050a248fe993
[ "Unlicense" ]
4
2021-01-30T12:36:18.000Z
2022-03-23T10:10:45.000Z
tests/test_cluster_assignment.py
mo6zes/Reproducing-Deep-Fair-Clustering
91f915436821eb05cdd021d3e9eb050a248fe993
[ "Unlicense" ]
1
2021-11-05T09:16:36.000Z
2021-11-05T15:27:25.000Z
tests/test_cluster_assignment.py
mo6zes/Reproducing-Deep-Fair-Clustering
91f915436821eb05cdd021d3e9eb050a248fe993
[ "Unlicense" ]
1
2021-03-21T19:44:45.000Z
2021-03-21T19:44:45.000Z
""" Source: https://github.com/vlukiyanov/pt-dec/blob/master/tests/test_cluster.py """ import torch from unittest import TestCase from module import ClusterAssignment
30.034483
82
0.608496
b357152a7c97a6a98a37a74b2b7b43161d57c224
2,789
py
Python
products/models.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
products/models.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
products/models.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.urls import reverse import random,os from ecommerce_src.utils import unique_slug_generator,get_filename from django.db.models.signals import pre_save from django.utils.encoding import smart_str from django.core.files.storage import FileSystemStorage from django.conf import setti...
32.811765
122
0.726067
b35836893267f52783e00ae095462a2ce8e96ecc
5,473
py
Python
ai/project/scraper.py
BoraKurucu/Artificial-Intelligence
5681ad43a79e349b36eab3f8c1fd994fffcf0cfe
[ "MIT" ]
null
null
null
ai/project/scraper.py
BoraKurucu/Artificial-Intelligence
5681ad43a79e349b36eab3f8c1fd994fffcf0cfe
[ "MIT" ]
null
null
null
ai/project/scraper.py
BoraKurucu/Artificial-Intelligence
5681ad43a79e349b36eab3f8c1fd994fffcf0cfe
[ "MIT" ]
1
2021-02-23T19:34:12.000Z
2021-02-23T19:34:12.000Z
import time from selenium import webdriver from selenium.webdriver.chrome.options import Options
35.083333
101
0.610451
b359b7be06a297e1d25880bf92aada1e13ba8821
3,930
py
Python
server.py
LutherMckeiver/http-server
4ce81dfad82c5b2792bf21f088985ddb784d43c9
[ "MIT" ]
null
null
null
server.py
LutherMckeiver/http-server
4ce81dfad82c5b2792bf21f088985ddb784d43c9
[ "MIT" ]
null
null
null
server.py
LutherMckeiver/http-server
4ce81dfad82c5b2792bf21f088985ddb784d43c9
[ "MIT" ]
null
null
null
from http.server import BaseHTTPRequestHandler, HTTPServer from urllib.parse import urlparse, parse_qs from cowpy import cow import os import json httpcow = '''<!DOCTYPE html> <html> <head> <title> cowsay </title> </head> <body> <header> <nav> <ul> <li><a href="/cow">cowsay</a></li...
28.273381
97
0.526718
b35e517ebb50cbef91f32f99c017eebf79d3a397
2,873
py
Python
byceps/services/site/dbmodels/site.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
33
2018-01-16T02:04:51.000Z
2022-03-22T22:57:29.000Z
byceps/services/site/dbmodels/site.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
7
2019-06-16T22:02:03.000Z
2021-10-02T13:45:31.000Z
byceps/services/site/dbmodels/site.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
14
2019-06-01T21:39:24.000Z
2022-03-14T17:56:43.000Z
""" byceps.services.site.dbmodels.site ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from typing import Optional from ....database import db from ....typing import BrandID, PartyID from ....util.instances import ReprBuilder f...
34.202381
110
0.678037
b35f49c197da4ac821ef9e64e2d19def9b56f814
178
py
Python
setup.py
cxu-fork/pipupgradeall
fcca62aa0c334d9f9eca8323c7d17f228d937ee7
[ "MIT" ]
null
null
null
setup.py
cxu-fork/pipupgradeall
fcca62aa0c334d9f9eca8323c7d17f228d937ee7
[ "MIT" ]
1
2020-10-27T01:51:33.000Z
2020-10-27T01:51:33.000Z
setup.py
cxu-fork/pipupgradeall
fcca62aa0c334d9f9eca8323c7d17f228d937ee7
[ "MIT" ]
2
2020-10-26T20:36:01.000Z
2020-10-26T21:00:47.000Z
import setuptools setuptools.setup( name='pipupgradeall', py_modules=['pipupgradeall'], entry_points={"console_scripts": ["pipupgradeall = pipupgradeall:_main"],}, )
25.428571
79
0.724719
b35f99354012d3ad1fdad1496663748a0d44b801
1,799
py
Python
src/air_controller.py
n-guitar/flask-natuer-remo
197ff7b6031caa3ac36eaf2bbeca71fbeac090db
[ "MIT" ]
5
2021-08-13T14:55:58.000Z
2022-03-21T12:11:11.000Z
src/air_controller.py
n-guitar/flask-natuer-remo
197ff7b6031caa3ac36eaf2bbeca71fbeac090db
[ "MIT" ]
null
null
null
src/air_controller.py
n-guitar/flask-natuer-remo
197ff7b6031caa3ac36eaf2bbeca71fbeac090db
[ "MIT" ]
null
null
null
from flask import Blueprint from api.json_dataclient import AppliancesDataClient from api.remoclient import NatureRemoClient air_controller = Blueprint('air_controller', __name__, url_prefix='/air/api')
38.276596
100
0.761534
b360a4c4991b238fe7765fcb44a5651558f24263
275
py
Python
kollect/management/commands/runserver.py
dcramer/kollect
a8586ec07f671e01e80df2336ad1fa5dfe4804e5
[ "Apache-2.0" ]
7
2018-09-03T20:52:00.000Z
2021-09-12T20:52:43.000Z
kollect/management/commands/runserver.py
dcramer/kollect
a8586ec07f671e01e80df2336ad1fa5dfe4804e5
[ "Apache-2.0" ]
9
2020-02-11T23:11:31.000Z
2022-01-13T00:53:07.000Z
tabletop/management/commands/runserver.py
dcramer/tabletop-server
062f56d149a29d5ab8605e220c156c1b4fb52d2f
[ "Apache-2.0" ]
null
null
null
from django.conf import settings from django.contrib.staticfiles.management.commands.runserver import Command as BaseCommand
30.555556
91
0.738182
b36181990f0e7a289739c1df1c506a6c08cadfb1
1,952
py
Python
code/api_controlers/apis.py
AICyberTeam/retrievalSystem
3a6b4a3f38ed179b529d3ac0cf0aad9aa6b98903
[ "MIT" ]
51
2021-11-07T03:14:12.000Z
2022-03-31T11:47:56.000Z
code/api_controlers/apis.py
AICyberTeam/retrievalSystem
3a6b4a3f38ed179b529d3ac0cf0aad9aa6b98903
[ "MIT" ]
null
null
null
code/api_controlers/apis.py
AICyberTeam/retrievalSystem
3a6b4a3f38ed179b529d3ac0cf0aad9aa6b98903
[ "MIT" ]
13
2021-11-07T03:14:14.000Z
2022-03-20T11:14:03.000Z
from flask import Flask, request, jsonify import json, os from threading import Timer from api_controlers import base_function, image_encode_ctl, delete_encode_ctl,\ text_search_ctl, image_search_ctl, semantic_localization_ctl, utils
36.830189
83
0.665471
b36472502cc6bb056b8f449921017ab2cdc6baa1
2,440
py
Python
atnp/collecter.py
alanfgn/text-analysis-political-news
2a6e81bbc68eac7cacd63b0fcf157161264a91b1
[ "MIT" ]
null
null
null
atnp/collecter.py
alanfgn/text-analysis-political-news
2a6e81bbc68eac7cacd63b0fcf157161264a91b1
[ "MIT" ]
null
null
null
atnp/collecter.py
alanfgn/text-analysis-political-news
2a6e81bbc68eac7cacd63b0fcf157161264a91b1
[ "MIT" ]
null
null
null
import atnp.utils as utils import requests import csv import re import os
28.045977
73
0.611475
b3654a8261cc1c66da5a7989b216f4998e241a89
754
py
Python
alembic/versions/5ce477cd7ee3_add_otp_column.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
7
2019-09-18T19:45:46.000Z
2020-05-18T20:07:07.000Z
alembic/versions/5ce477cd7ee3_add_otp_column.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
252
2019-09-18T20:25:03.000Z
2022-03-25T11:23:50.000Z
alembic/versions/5ce477cd7ee3_add_otp_column.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
8
2019-09-18T11:02:45.000Z
2021-05-18T17:08:51.000Z
"""add otp column Revision ID: 5ce477cd7ee3 Revises: 54f029830204 Create Date: 2020-05-12 19:04:09.302116 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5ce477cd7ee3' down_revision = '54f029830204' branch_labels = None depends_on = None
24.322581
74
0.679045
b3665ca9272e655d3f741a8fee81a4c7439cc490
631
py
Python
setup.py
claranet/boto-mfa-profile
c789cc01fccf9014862ae64ee36895b1458c0237
[ "MIT" ]
1
2019-05-15T04:46:22.000Z
2019-05-15T04:46:22.000Z
setup.py
claranet/boto-mfa-profile
c789cc01fccf9014862ae64ee36895b1458c0237
[ "MIT" ]
2
2019-10-28T14:44:14.000Z
2020-05-27T12:14:16.000Z
setup.py
claranet/boto-source-profile-mfa
c789cc01fccf9014862ae64ee36895b1458c0237
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name='boto-source-profile-mfa', version='0.0.11', description='AWS boto helper library for reusing MFA tokens in profiles with the same source profile', author='Raymond Butcher', author_email='ray.butcher@claranet.uk', url='https://gith...
24.269231
106
0.62599
b367a99d2eea02a6be2ff588beeb604ce121f954
870
py
Python
packs/kubernetes/actions/secret_delete.py
pearsontechnology/st2contrib
f60ff517079b91de7ee84fdf91cd742784e2731e
[ "Apache-2.0" ]
5
2016-10-11T11:52:53.000Z
2017-06-15T05:21:05.000Z
packs/kubernetes/actions/secret_delete.py
pearsontechnology/st2contrib
f60ff517079b91de7ee84fdf91cd742784e2731e
[ "Apache-2.0" ]
25
2016-07-28T17:50:35.000Z
2017-09-25T09:26:18.000Z
packs/kubernetes/actions/secret_delete.py
pearsontechnology/st2contrib
f60ff517079b91de7ee84fdf91cd742784e2731e
[ "Apache-2.0" ]
1
2017-05-05T19:12:01.000Z
2017-05-05T19:12:01.000Z
#!/usr/bin/python import json import base64 from st2actions.runners.pythonrunner import Action from lib import k8s from datetime import datetime deleteoptions = {}
29
90
0.67931
b367e04a0c647330d45d344829776dd6eaf4daa7
3,087
py
Python
keras_approach.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
keras_approach.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
keras_approach.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
#!/usr/bin/env python import tensorflow import pandas as pd import numpy as np from time import time from keras.models import Sequential from keras.layers import Dense from keras.callbacks import TensorBoard from keras.wrappers.scikit_learn import KerasRegressor from sklearn.model_selection import train_test...
27.318584
112
0.694201
b3689078026756fd3c5035e1b65e769c2b8ddc88
1,725
py
Python
transfer_characteristics/signals.py
qh73xe/transfer_characteristics
1cdf120602501bd744fe83c208394bf96cf3bf50
[ "MIT" ]
null
null
null
transfer_characteristics/signals.py
qh73xe/transfer_characteristics
1cdf120602501bd744fe83c208394bf96cf3bf50
[ "MIT" ]
null
null
null
transfer_characteristics/signals.py
qh73xe/transfer_characteristics
1cdf120602501bd744fe83c208394bf96cf3bf50
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* """""" def gen_chirp(duration, fs=96, **kwargs): """Generate chirp signal. Args: duration (float) : ( sec). fs (int, optional) : ( kHz. 96kHz) **kwargs: scipy.signal.chirp . f0 (float) : Frequency (e.g. Hz) at time t...
23.310811
72
0.577391
b369861278c0f6577303d1013bf15fd9eaf975ac
55
py
Python
D02/set/hapus_clear.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
D02/set/hapus_clear.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
D02/set/hapus_clear.py
shdx8/dtwrhs
108decb8056931fc7601ed455a72ef0d65983ab0
[ "MIT" ]
null
null
null
set_saya = {1,2,3,4,5} set_saya.clear() print(set_saya)
18.333333
22
0.709091
b36db078f5ad5b524a09271c885138fe8560c69f
40
py
Python
lale/datasets/uci/__init__.py
haodeqi/lale
b58cda5d17ba6ee233e9afa91844afa413af5520
[ "Apache-2.0" ]
null
null
null
lale/datasets/uci/__init__.py
haodeqi/lale
b58cda5d17ba6ee233e9afa91844afa413af5520
[ "Apache-2.0" ]
null
null
null
lale/datasets/uci/__init__.py
haodeqi/lale
b58cda5d17ba6ee233e9afa91844afa413af5520
[ "Apache-2.0" ]
null
null
null
from .uci_datasets import fetch_drugscom
40
40
0.9
b36f756e8c02928780345bf238c0fd02acb4022d
37
py
Python
pyautoeasy/__main__.py
SaranshBaniyal/pyautoeasy
22d7cf556fd05f94a1a5806ce731011523779ef5
[ "MIT" ]
4
2021-10-10T18:20:49.000Z
2021-12-06T18:38:59.000Z
pyautoeasy/__main__.py
SaranshBaniyal/pyautoeasy
22d7cf556fd05f94a1a5806ce731011523779ef5
[ "MIT" ]
8
2021-10-10T18:05:28.000Z
2021-12-07T03:37:45.000Z
pyautoeasy/__main__.py
SaranshBaniyal/pyautoeasy
22d7cf556fd05f94a1a5806ce731011523779ef5
[ "MIT" ]
5
2021-10-11T13:41:15.000Z
2021-12-27T15:02:31.000Z
from pyautoeasy import cli cli.main()
18.5
26
0.810811
b36f7b55fef96f9aeb10f4219fd2d711b6be42d7
39,009
py
Python
invoice_ar/tests/test_serializers.py
mbaragiola/heimdallerp
8d32131a20bd0f3609d772ac437f4f24622abfc7
[ "0BSD" ]
8
2016-04-07T11:58:42.000Z
2019-06-24T01:38:12.000Z
invoice_ar/tests/test_serializers.py
mbaragiola/heimdallerp
8d32131a20bd0f3609d772ac437f4f24622abfc7
[ "0BSD" ]
null
null
null
invoice_ar/tests/test_serializers.py
mbaragiola/heimdallerp
8d32131a20bd0f3609d772ac437f4f24622abfc7
[ "0BSD" ]
null
null
null
from datetime import date, timedelta from decimal import Decimal from contact.models import Contact from django.contrib.auth.models import User from django.core.urlresolvers import reverse from geo.models import Country, Locality from invoice.models import (INVOICE_STATUSTYPE_DRAFT, VAT, CompanyInvoice, ...
33.628448
76
0.503243
b36ff8b258a3b936864a267d1093c9ac36b4d023
1,412
py
Python
tests/misc/test_ordersort.py
BarrensZeppelin/PyRival
bb01523283af0130c3921445ed5e532bfcf053af
[ "Apache-2.0" ]
748
2018-09-27T01:08:12.000Z
2022-03-25T17:31:56.000Z
tests/misc/test_ordersort.py
swarajspatil158/PyRival
07c4c38b2b6ca69a275d2ed3743b6c09af80b732
[ "Apache-2.0" ]
38
2019-02-24T14:50:02.000Z
2022-03-25T01:27:50.000Z
tests/misc/test_ordersort.py
swarajspatil158/PyRival
07c4c38b2b6ca69a275d2ed3743b6c09af80b732
[ "Apache-2.0" ]
288
2018-10-29T11:55:57.000Z
2022-03-20T04:37:27.000Z
import random from pyrival.ordersort import *
26.641509
77
0.596317
b370896f47311d0de8df8d3319b14b23e5a40b32
912
py
Python
agmcs/0010/0010.py
saurabh896/python-1
f8d3aedf4c0fe6e24dfa3269ea7e642c9f7dd9b7
[ "MIT" ]
3,976
2015-01-01T15:49:39.000Z
2022-03-31T03:47:56.000Z
agmcs/0010/0010.py
oyesam7/python-1
220734af09fa09a6f615d4f1b4612a0ab75d91d1
[ "MIT" ]
97
2015-01-11T02:59:46.000Z
2022-03-16T14:01:56.000Z
agmcs/0010/0010.py
oyesam7/python-1
220734af09fa09a6f615d4f1b4612a0ab75d91d1
[ "MIT" ]
3,533
2015-01-01T06:19:30.000Z
2022-03-28T13:14:54.000Z
from PIL import Image, ImageDraw, ImageFont import random im = Image.new('RGBA',(120,50),(255,255,255)) text = random.sample('abcdefghijklmnopqrstuvwxyz\ ABCDEFGHIJKLMNOPQRSTUVWXYZ',4) draw = ImageDraw.Draw(im) font = ImageFont.truetype("msyh.ttf",40) x=0 y=0 for i in xrange(200): x1 = random.randint(0,120) ...
27.636364
84
0.671053
b370d17d5c8b1ddccff4041e2effd7503de95a5e
8,292
py
Python
home/templatetags/table_tags.py
davidjrichardson/toucans
7446b78ec2a09ff90eb83d4a78638c909deb06e1
[ "MIT" ]
1
2020-04-20T05:37:09.000Z
2020-04-20T05:37:09.000Z
home/templatetags/table_tags.py
davidjrichardson/toucans
7446b78ec2a09ff90eb83d4a78638c909deb06e1
[ "MIT" ]
23
2019-03-13T10:54:36.000Z
2022-03-11T23:33:59.000Z
home/templatetags/table_tags.py
davidjrichardson/toucans
7446b78ec2a09ff90eb83d4a78638c909deb06e1
[ "MIT" ]
null
null
null
from functools import reduce from django import template register = template.Library() def generate_3leg_table(standings): # Check if all of the standings provided are empty standings_are_empty = reduce(lambda x, y: x and y, map(lambda x: x.is_empty, standings)) if standings_are_empty: stand...
43.873016
113
0.599735
b371587fd6814326d2d07cd04a37a379d3827420
1,893
py
Python
Playlist.py
FloSewn/Jukeberry
9afb4a544ba1f35c6bde41b7bc25be0aa6b87954
[ "MIT" ]
null
null
null
Playlist.py
FloSewn/Jukeberry
9afb4a544ba1f35c6bde41b7bc25be0aa6b87954
[ "MIT" ]
null
null
null
Playlist.py
FloSewn/Jukeberry
9afb4a544ba1f35c6bde41b7bc25be0aa6b87954
[ "MIT" ]
null
null
null
from Songlist import Songlist import random
26.291667
113
0.577919
b37267d6c2c6d0c826bf45142f7dbce6bb47ab24
4,131
py
Python
model.py
khk4912/slash-dpy
751f66cb0eb330d230695c179e44ce99b4575fd1
[ "MIT" ]
2
2021-05-09T17:46:10.000Z
2021-05-09T17:46:13.000Z
model.py
khk4912/slash-dpy
751f66cb0eb330d230695c179e44ce99b4575fd1
[ "MIT" ]
null
null
null
model.py
khk4912/slash-dpy
751f66cb0eb330d230695c179e44ce99b4575fd1
[ "MIT" ]
null
null
null
import inspect from dataclasses import dataclass from typing import Callable, Optional, OrderedDict import aiohttp import discord from discord.member import Member from discord.role import Role from discord.user import User from exceptions import InvaildArgument SUB_COMMAND = 1 SUB_COMMAND_GROUP = 2 STRING = 3 INTEG...
25.5
88
0.535706
b37268a6e2b21c06a412ba95af142dfc30df87fd
20,192
py
Python
labelprop/voxelmorph2d.py
nathandecaux/labelprop
c92c453e12cc8575929d947db4ae7b266433eb52
[ "MIT" ]
null
null
null
labelprop/voxelmorph2d.py
nathandecaux/labelprop
c92c453e12cc8575929d947db4ae7b266433eb52
[ "MIT" ]
null
null
null
labelprop/voxelmorph2d.py
nathandecaux/labelprop
c92c453e12cc8575929d947db4ae7b266433eb52
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions.normal import Normal from monai.networks.nets import UNet,Classifier,DenseNet,BasicUNet,DynUNet import numpy as np import math from kornia.geometry.transform import get_perspective_transform,get_affine_matrix2d from .MultiLevelN...
37.186004
314
0.595186
b3778118c079067408f2edb5b9e482453afbdd52
9,672
py
Python
couplet_composer/support/tools/llvm.py
anttikivi/couplet-composer
0f6aaf894b35ea60d8047c0072ec146d4e1d2a6f
[ "MIT" ]
null
null
null
couplet_composer/support/tools/llvm.py
anttikivi/couplet-composer
0f6aaf894b35ea60d8047c0072ec146d4e1d2a6f
[ "MIT" ]
16
2020-10-29T17:31:47.000Z
2022-03-07T17:01:52.000Z
couplet_composer/support/tools/llvm.py
anttikivi/couplet-composer
0f6aaf894b35ea60d8047c0072ec146d4e1d2a6f
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Antti Kivi # Licensed under the MIT License """A module that contains the class for the object that represents LLVM and various LLVM tools in the toolchain of the build script. """ import os import stat from argparse import Namespace from ...util import http, shell from ...build_directory impo...
29.487805
165
0.57072
2fa3085303864c7e12eabfe87f9bd18ac95b7ca4
3,269
py
Python
perception/Old/CVChess-master/src/MarkImage.py
gabrieledamone/DE3-ROB1-CHESS
19ec74f10317d27683817989e729cacd6fe55a3f
[ "CC-BY-4.0" ]
25
2018-03-28T09:46:50.000Z
2022-02-10T02:51:46.000Z
perception/Old/CVChess-master/src/MarkImage.py
gabrieledamone/DE3-ROB1-CHESS
19ec74f10317d27683817989e729cacd6fe55a3f
[ "CC-BY-4.0" ]
2
2018-02-25T13:14:46.000Z
2020-06-15T09:24:09.000Z
perception/Old/CVChess-master/src/MarkImage.py
gabrieledamone/DE3-ROB1-CHESS
19ec74f10317d27683817989e729cacd6fe55a3f
[ "CC-BY-4.0" ]
21
2018-02-06T23:09:28.000Z
2021-06-24T16:58:59.000Z
#!/opt/local/bin/python import os, sys import numpy as np import cv, cv2 import CVAnalysis from Board import Board from util import print_message, print_status #==========[ Global Data ]========== corner_keypoints = [] corner_image_points = [] corner_board_points = [] corner_sift_desc = [] def get_closest_keyp...
28.675439
82
0.655552
2fa6051aedcd77c23a8930e26b6cd51d26ec9f9d
607
py
Python
4fun/open_web.py
gatitoz-luan/extras
b5caf73afcdc5e24f3ad97ef565cb15a7fee2764
[ "MIT" ]
null
null
null
4fun/open_web.py
gatitoz-luan/extras
b5caf73afcdc5e24f3ad97ef565cb15a7fee2764
[ "MIT" ]
null
null
null
4fun/open_web.py
gatitoz-luan/extras
b5caf73afcdc5e24f3ad97ef565cb15a7fee2764
[ "MIT" ]
null
null
null
from time import sleep import urllib.request import webbrowser try: urllib.request.urlopen("https://www.youtube.com/watch?v=ffbI0JMW7g4") except Exception as erro: # Desligando o wifi, ou o site no estiver no ar print('\033[1; 31mO melhor vdeo do youtube no est acessvel no momento.\033[m') er = erro # Var...
43.357143
86
0.708402
2fa6797946f30447b24a6199a63c2d91f44255e0
5,546
py
Python
crystal_toolkit/components/symmetry.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
null
null
null
crystal_toolkit/components/symmetry.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
5
2018-10-18T19:52:12.000Z
2018-11-17T19:02:49.000Z
crystal_toolkit/components/symmetry.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
null
null
null
from fractions import Fraction from dash import html import numpy as np from dash import callback_context from dash.dependencies import Input, Output from pymatgen.core.structure import Structure from pymatgen.symmetry.analyzer import SpacegroupAnalyzer from pymatgen.util.string import unicodeify_spacegroup, unicodeif...
33.817073
94
0.545979
2fa6c536a0c61526a9ec8c3d285219c9f61ba8f1
14,306
py
Python
operation_obj.py
Frichetten/aws_api_shapeshifter
c5b8891ca98eb290c0773c5fb46672d64cd7fae0
[ "MIT" ]
16
2022-02-13T00:35:30.000Z
2022-02-14T20:11:55.000Z
operation_obj.py
Frichetten/aws_api_shapeshifter
c5b8891ca98eb290c0773c5fb46672d64cd7fae0
[ "MIT" ]
null
null
null
operation_obj.py
Frichetten/aws_api_shapeshifter
c5b8891ca98eb290c0773c5fb46672d64cd7fae0
[ "MIT" ]
1
2022-02-16T18:27:34.000Z
2022-02-16T18:27:34.000Z
from xeger import Xeger import api_signer import protocol_formatter import aws_api_shapeshifter """ The operation_obj will be the primary location where parameters are altered and configured. Every user generated modification will pass throug here. As a result this code is ugly and I'm only partially sorry. "...
34.555556
134
0.572557
2fa7cb7b773d534e726796a3ee44b6013d7d462d
244
py
Python
get_confluence_page_latex_path.py
Open-Measure/TOME-Python
55159b3fbb55224b34e4fb71b63e4678c84ab4b7
[ "CC-BY-4.0" ]
1
2021-04-17T14:44:47.000Z
2021-04-17T14:44:47.000Z
get_confluence_page_latex_path.py
Open-Measure/TOME-Python
55159b3fbb55224b34e4fb71b63e4678c84ab4b7
[ "CC-BY-4.0" ]
null
null
null
get_confluence_page_latex_path.py
Open-Measure/TOME-Python
55159b3fbb55224b34e4fb71b63e4678c84ab4b7
[ "CC-BY-4.0" ]
null
null
null
import settings
27.111111
59
0.758197
2fa7dec69496a095a2c47ea6cc15a0aee006cc97
29,064
py
Python
chesstab/gui/uci.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
chesstab/gui/uci.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
chesstab/gui/uci.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
# uci.py # Copyright 2015 Roger Marsh # License: See LICENSE.TXT (BSD licence) """Control multiple UCI compliant chess engines.""" import tkinter import tkinter.messagebox import tkinter.filedialog from solentware_grid.core.dataclient import DataSource from solentware_misc.gui.exceptionhandler import ExceptionHandl...
37.071429
87
0.525495
2fa9b6e0222d2c0b70dc7ec3aecbef873f179373
4,704
py
Python
Exercises/flask-blogly/app.py
pedwards95/Springboard_Class
9df8dbd8832223e89b89d12db3f7e0b178e2ed79
[ "MIT" ]
null
null
null
Exercises/flask-blogly/app.py
pedwards95/Springboard_Class
9df8dbd8832223e89b89d12db3f7e0b178e2ed79
[ "MIT" ]
null
null
null
Exercises/flask-blogly/app.py
pedwards95/Springboard_Class
9df8dbd8832223e89b89d12db3f7e0b178e2ed79
[ "MIT" ]
null
null
null
# python -m venv venv # source venv/Scripts/activate # pip install pylint # pip install ipython # pip install flask # pip install flask_debugtoolbar # pip install pylint-flask # pip install psycopg2-binary # pip install flask-sqlalchemy # pip install pylint_flask_sqlalchemy # pip install pylint-sqlalchemy # pip install...
31.36
87
0.713435
2fac0c4396b2a1e4917a749d9f069dc4251273b4
541
py
Python
src/errors/errors.py
stdevAdrianPaez/cool-compiler-2020
7a783a0a69eabe9d7c80bdeddeabbb9d06445aba
[ "MIT" ]
null
null
null
src/errors/errors.py
stdevAdrianPaez/cool-compiler-2020
7a783a0a69eabe9d7c80bdeddeabbb9d06445aba
[ "MIT" ]
null
null
null
src/errors/errors.py
stdevAdrianPaez/cool-compiler-2020
7a783a0a69eabe9d7c80bdeddeabbb9d06445aba
[ "MIT" ]
null
null
null
""" Copyright (c) 2020 School of Math and Computer Science, University of Havana COOL compiler project """ LEXER_ERRORS = [] PARSER_ERRORS = [] SEMANTIC_ERRORS = []
24.590909
78
0.715342
2facf704e67c18a43aeaa59d0fa5a011f2590e09
398
py
Python
safe_relay_service/tokens/migrations/0008_priceoracleticker_inverse.py
vaporyorg/safe-relay-service
1289c3d31639f83aa2c0110ff3b84a69212b81f5
[ "MIT" ]
5
2021-06-07T14:07:32.000Z
2022-03-26T19:42:45.000Z
safe_relay_service/tokens/migrations/0008_priceoracleticker_inverse.py
vaporyorg/safe-relay-service
1289c3d31639f83aa2c0110ff3b84a69212b81f5
[ "MIT" ]
24
2019-12-11T14:43:38.000Z
2022-03-01T12:37:24.000Z
safe_relay_service/tokens/migrations/0008_priceoracleticker_inverse.py
vaporyorg/safe-relay-service
1289c3d31639f83aa2c0110ff3b84a69212b81f5
[ "MIT" ]
4
2020-05-25T03:30:53.000Z
2021-11-22T06:51:12.000Z
# Generated by Django 2.1.3 on 2018-12-12 10:47 from django.db import migrations, models
20.947368
53
0.610553
2fad9a654e68fbbd2c8a4a136f03a32478751ee4
1,177
py
Python
emmet/action_utils/utils.py
jingyuexing/py-emmet
e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11
[ "MIT" ]
29
2019-11-12T16:15:15.000Z
2022-02-06T10:51:25.000Z
emmet/action_utils/utils.py
jingyuexing/py-emmet
e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11
[ "MIT" ]
3
2020-04-25T11:02:53.000Z
2021-11-25T10:39:09.000Z
emmet/action_utils/utils.py
jingyuexing/py-emmet
e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11
[ "MIT" ]
7
2020-04-25T09:42:54.000Z
2021-02-16T20:29:41.000Z
from ..scanner_utils import is_space def token_list(value: str, offset=0): "Returns ranges of tokens in given value. Tokens are space-separated words." ranges = [] l = len(value) pos = 0 start = 0 end = 0 while pos < l: end = pos ch = value[pos] pos += 1 ...
23.078431
89
0.531011
2faef444b1852c4a4b65fb3d4c3766d0712c2492
2,765
py
Python
tests/test_effect_overlay.py
niklasR/brave
5234bd9cecd6d7282cd0b50acfda44890cf4cfb8
[ "Apache-2.0" ]
1
2018-12-04T21:58:27.000Z
2018-12-04T21:58:27.000Z
tests/test_effect_overlay.py
niklasR/brave
5234bd9cecd6d7282cd0b50acfda44890cf4cfb8
[ "Apache-2.0" ]
null
null
null
tests/test_effect_overlay.py
niklasR/brave
5234bd9cecd6d7282cd0b50acfda44890cf4cfb8
[ "Apache-2.0" ]
1
2018-12-07T12:21:08.000Z
2018-12-07T12:21:08.000Z
import time, pytest, inspect from utils import * from PIL import Image # @pytest.mark.skip(reason="known bug that effects made visible at start should not be permitted") def test_effect_overlay_visible_at_creation(run_brave): '''Test that visible:true on creation also does not work if mixer is playing/paused''' ...
41.893939
109
0.632911
2fafadc84ca6d4bd015e4f90fe2035ddef798fc3
1,659
py
Python
RaNDaL/packages/models/text_fields/tree_field.py
adam-bentley/RaNDaL
d079ea4773815630f25f83ab0fbb8eefdbf2d17c
[ "MIT" ]
null
null
null
RaNDaL/packages/models/text_fields/tree_field.py
adam-bentley/RaNDaL
d079ea4773815630f25f83ab0fbb8eefdbf2d17c
[ "MIT" ]
null
null
null
RaNDaL/packages/models/text_fields/tree_field.py
adam-bentley/RaNDaL
d079ea4773815630f25f83ab0fbb8eefdbf2d17c
[ "MIT" ]
null
null
null
import json from numpy import ndarray from tensorflow.python.keras import Sequential from ...helpers.segmentation import split_characters from .text_field import TextArea
33.18
82
0.502712
2fb05c28f9fc1d23f3b79a475475fc481afb0de9
2,742
py
Python
pyez/PyEZ_Cookbook_2017/15-Monitoring_IPSEC_tunnels/ike-tunnels.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
117
2016-08-22T15:52:28.000Z
2022-01-08T00:53:28.000Z
pyez/PyEZ_Cookbook_2017/15-Monitoring_IPSEC_tunnels/ike-tunnels.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
12
2017-10-28T09:44:44.000Z
2018-11-21T15:12:42.000Z
pyez/PyEZ_Cookbook_2017/15-Monitoring_IPSEC_tunnels/ike-tunnels.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
78
2016-08-19T05:35:28.000Z
2022-03-13T07:16:27.000Z
# Copyright 2017, Juniper Networks Pvt Ltd. # All rights reserved. from jnpr.junos import Device from jnpr.junos.utils.config import Config from lxml import etree import dill import xmltodict from io import StringIO from contextlib import redirect_stdout from collections import defaultdict from operator import itemget...
32.642857
77
0.539023
2fb06c21eb891caf2ba79588b761d865ccf7d6e3
21,869
py
Python
sdk/python/pulumi_newrelic/service_level.py
pulumi/pulumi-newrelic
cd9a882f3524883ed155f87ff26c4c17cd048c9a
[ "ECL-2.0", "Apache-2.0" ]
6
2019-09-17T20:41:26.000Z
2022-01-13T23:54:14.000Z
sdk/python/pulumi_newrelic/service_level.py
pulumi/pulumi-newrelic
cd9a882f3524883ed155f87ff26c4c17cd048c9a
[ "ECL-2.0", "Apache-2.0" ]
136
2019-04-29T21:34:57.000Z
2022-03-30T17:07:03.000Z
sdk/python/pulumi_newrelic/service_level.py
pulumi/pulumi-newrelic
cd9a882f3524883ed155f87ff26c4c17cd048c9a
[ "ECL-2.0", "Apache-2.0" ]
3
2019-10-05T10:33:59.000Z
2021-06-15T16:37:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
44.630612
241
0.637661
2fb0c6198b297677732f2c4daf939edfc49f4ce4
3,484
py
Python
tools/precommit_converter/extractor/extractor.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
52
2018-08-24T02:28:43.000Z
2021-07-06T04:44:22.000Z
tools/precommit_converter/extractor/extractor.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
62
2018-09-17T06:59:16.000Z
2021-12-15T06:02:51.000Z
tools/precommit_converter/extractor/extractor.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
35
2018-09-14T02:42:10.000Z
2022-02-05T10:34:46.000Z
import json from typing import List, Tuple, Optional from iconservice.base.block import Block from tools.precommit_converter.data.icon_service_info import IconServiceInfo from tools.precommit_converter.data.key_value import KeyValue
39.590909
99
0.528703
2fb1c6be4ef74a37e43239a8048564bf4ff487d1
2,389
py
Python
hw2-romv-scheduler/user_simulator/transaction_parsing_patterns.py
eladn/romv-scheduler-python
4afa4312686d7e218faa0cff9790096dff0501fc
[ "MIT" ]
1
2021-01-28T16:50:24.000Z
2021-01-28T16:50:24.000Z
hw2-romv-scheduler/user_simulator/transaction_parsing_patterns.py
eladn/romv-scheduler-python
4afa4312686d7e218faa0cff9790096dff0501fc
[ "MIT" ]
null
null
null
hw2-romv-scheduler/user_simulator/transaction_parsing_patterns.py
eladn/romv-scheduler-python
4afa4312686d7e218faa0cff9790096dff0501fc
[ "MIT" ]
null
null
null
# Collection of patterns used for parsing the input workload test file. # Used by the method: TransactionSimulator.parse_transaction_from_test_line(..) # Used by the method: TransactionSimulator.parse_and_add_operation(..)
59.725
119
0.619506
2fb1dc0865cc26fff0ec597322348e9156d9ffbc
298
py
Python
ssb_sparktools/utils/utils.py
statisticsnorway/SSB_Spark_tools
95271519b0babcfbc9ec2c93503e287d776eaedb
[ "Apache-2.0" ]
1
2021-06-25T06:16:50.000Z
2021-06-25T06:16:50.000Z
ssb_sparktools/utils/utils.py
statisticsnorway/SSB_Spark_tools
95271519b0babcfbc9ec2c93503e287d776eaedb
[ "Apache-2.0" ]
6
2020-09-04T07:32:29.000Z
2021-07-08T11:04:02.000Z
ssb_sparktools/utils/utils.py
statisticsnorway/SSB_Spark_tools
95271519b0babcfbc9ec2c93503e287d776eaedb
[ "Apache-2.0" ]
null
null
null
import os import sys
29.8
78
0.550336
2fb29c745c8c1dc478e042622cebe679734864c2
185
py
Python
home/tests.py
mennonitengemeinde/church_site
ae9ef5f0f78811cecd734705339511dc0efb8340
[ "MIT" ]
null
null
null
home/tests.py
mennonitengemeinde/church_site
ae9ef5f0f78811cecd734705339511dc0efb8340
[ "MIT" ]
44
2020-05-13T20:15:26.000Z
2022-03-04T02:58:58.000Z
home/tests.py
mennonitengemeinde/church_site
ae9ef5f0f78811cecd734705339511dc0efb8340
[ "MIT" ]
4
2020-06-05T17:59:52.000Z
2021-02-06T19:09:43.000Z
from django.test import TestCase
20.555556
51
0.697297
2fb2fdfa61351569e57447f454e2aeffc1bbdbb3
104
py
Python
crud/crudexample/admin.py
Neeraj2701/numpy
bbc3167427eb8ecafeee3c5c9606b3532405dd96
[ "BSD-3-Clause" ]
null
null
null
crud/crudexample/admin.py
Neeraj2701/numpy
bbc3167427eb8ecafeee3c5c9606b3532405dd96
[ "BSD-3-Clause" ]
null
null
null
crud/crudexample/admin.py
Neeraj2701/numpy
bbc3167427eb8ecafeee3c5c9606b3532405dd96
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from crudexample.models import employee admin.site.register(employee)
20.8
39
0.846154