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
de725902f24523dc4f0cb06e33505cadc76a710c
38,783
py
Python
pysim/epcstd.py
larioandr/thesis-rfidsim
6a5b3ef02964ff2d49bf5dae55af270801af28a5
[ "MIT" ]
null
null
null
pysim/epcstd.py
larioandr/thesis-rfidsim
6a5b3ef02964ff2d49bf5dae55af270801af28a5
[ "MIT" ]
null
null
null
pysim/epcstd.py
larioandr/thesis-rfidsim
6a5b3ef02964ff2d49bf5dae55af270801af28a5
[ "MIT" ]
null
null
null
from enum import Enum import random import collections import numpy as np # ####################################################################### # Data Types ####################################################################### # def __str__(self): return self._string class _Session0(_Session): ...
30.610103
79
0.592682
de72e8f348089a00d8a491df1f651cf4a945ca9c
1,500
py
Python
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
1
2021-06-15T21:01:53.000Z
2021-06-15T21:01:53.000Z
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
null
null
null
Heap/378-Kth_Smalles_Element_in_a_Sorted_Matrix.py
dingwenzheng730/Leet
c08bd48e8dcc6bca41134d218d39f66bfc112eaf
[ "MIT" ]
null
null
null
''' Given an n x n matrix where each of the rows and columns are sorted in ascending order, return the kth smallest element in the matrix. Note that it is the kth smallest element in the sorted order, not the kth distinct element. Input: matrix = [[1,5,9],[10,11,13],[12,13,15]], k = 8 Output: 13 Explanation: The elem...
24.193548
134
0.611333
de73b0477272b09621a0a7e87406fe9c6c2a1f06
5,088
py
Python
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
baseStation/test/vision/service/test_visionService.py
olgam4/design3
6e05d123a24deae7dda646df535844a158ef5cc0
[ "WTFPL" ]
null
null
null
from unittest import TestCase from unittest.mock import Mock import numpy as np from pathfinding.domain.angle import Angle from pathfinding.domain.coord import Coord from vision.domain.image import Image from vision.domain.rectangle import Rectangle from vision.infrastructure.cvVisionException import CameraDoesNotExi...
45.428571
117
0.725825
de758aaeb7ae98b14c58fbe707173fad48237087
8,753
py
Python
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
3
2022-03-19T21:30:10.000Z
2022-03-30T08:20:48.000Z
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
null
null
null
bmdal/layer_features.py
dholzmueller/bmdal_reg
1a9e9c19fbd350ec32a2bd7b505e7015df7dc9bf
[ "Apache-2.0" ]
null
null
null
from .feature_maps import * import torch.nn as nn def create_grad_feature_map(model: nn.Module, grad_layers: List[LayerGradientComputation], use_float64: bool = False) -> FeatureMap: """ Creates a feature map corresponding to phi_{grad} or phi_{ll}, depending on which layers are ...
44.207071
118
0.682052
de759ba42ef02e88463fee41b02959bd0f0ddd2c
35,389
py
Python
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
3
2021-02-01T06:47:06.000Z
2022-01-09T05:54:35.000Z
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
4
2019-10-23T09:52:36.000Z
2022-03-11T23:17:23.000Z
pinsey/gui/MainWindow.py
RailKill/Pinsey
72a283e6c5683b27918b511d80e45c3af4e67539
[ "MIT" ]
null
null
null
from configparser import ConfigParser from configparser import DuplicateSectionError from PyQt5 import QtCore, QtGui, QtWidgets from pinsey import Constants from pinsey.Utils import clickable, center, picture_grid, horizontal_line, resolve_message_sender, name_set, windows from pinsey.gui.MessageWindow import MessageW...
50.700573
121
0.628755
de7659b57f254205c0bc591d8af1e1375127f4d8
336
py
Python
Chat app/Check IP.py
ArturWagnerBusiness/Projects-2018-2020
37a217dc325f3ba42d8a7a1a743e5b6f8fab5df4
[ "MIT" ]
null
null
null
Chat app/Check IP.py
ArturWagnerBusiness/Projects-2018-2020
37a217dc325f3ba42d8a7a1a743e5b6f8fab5df4
[ "MIT" ]
null
null
null
Chat app/Check IP.py
ArturWagnerBusiness/Projects-2018-2020
37a217dc325f3ba42d8a7a1a743e5b6f8fab5df4
[ "MIT" ]
null
null
null
from os import system as c i = "ipconfig" input(c(i)) # import win32clipboard # from time import sleep as wait # set clipboard data # while True: # win32clipboard.OpenClipboard() # win32clipboard.EmptyClipboard() # win32clipboard.SetClipboardText('Clipboard Blocked!') # win32clipboard.CloseClipboard() ...
24
59
0.720238
de766a3b6f5c4477c098e9f336005c2394afbbc1
1,506
py
Python
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
app/api/api_v1/tasks/emails.py
cdlaimin/fastapi
4acf1a1da4a1eedd81a3bdf6256661c2464928b9
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : emails.py @Contact : 1053522308@qq.com @License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/9/27 10:22 wuxiaoqiang 1.0 None """ import asyn...
34.227273
108
0.625498
de76f5e1a1407299a65c28e63772cca898458059
13,487
py
Python
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
lightwood/encoders/text/distilbert.py
ritwik12/lightwood
7975688355fba8b0f8349dd55a1b6cb625c3efd0
[ "MIT" ]
null
null
null
import time import copy import random import logging from functools import partial import numpy as np import torch from torch.utils.data import DataLoader from transformers import DistilBertModel, DistilBertForSequenceClassification, DistilBertTokenizer, AlbertModel, AlbertForSequenceClassification, DistilBertTokenize...
46.993031
456
0.671091
de775456d4d41592b9970922b77c527e29122163
4,542
py
Python
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
scripts/scopdominfo.py
stivalaa/cuda_satabsearch
b947fb711f8b138e5a50c81e7331727c372eb87d
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # # scomdominfo.py - Report information folds and classes of a list of SCOP sids # # File: scomdominfo.py # Author: Alex Stivala # Created: November 2008 # # $Id: scopdominfo.py 3009 2009-12-08 03:01:48Z alexs $ # ...
30.689189
148
0.610524
de79c16d6df471bd5320f3fc4154354634f400a7
1,334
py
Python
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
null
null
null
serverless/pytorch/foolwood/siammask/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
1
2021-09-17T10:19:30.000Z
2021-09-17T10:19:30.000Z
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT from tools.test import * import os
34.205128
93
0.614693
de79c50bcf2db093ce388c48ecf4f5cdef4ddb45
10,842
py
Python
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
null
null
null
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
null
null
null
pynmt/__init__.py
obrmmk/demo
b5deb85b2b2bf118b850f93c255ee88d055156a8
[ "MIT" ]
1
2021-11-23T14:04:36.000Z
2021-11-23T14:04:36.000Z
import torch import torch.nn as nn from torch.nn import (TransformerEncoder, TransformerDecoder, TransformerEncoderLayer, TransformerDecoderLayer) from torch import Tensor from typing import Iterable, List import math import os import numpy as np try: from janome.tokenizer import Tokenizer ex...
36.14
168
0.620365
de7a78e426a815b7bd976727be3160a469af797a
9,185
py
Python
probedb/certs/builddb.py
dingdang2012/tlsprober
927f6177939470235bf336bca27096369932fc66
[ "Apache-2.0" ]
1
2019-01-30T13:18:02.000Z
2019-01-30T13:18:02.000Z
probedb/certs/builddb.py
dingdang2012/tlsprober
927f6177939470235bf336bca27096369932fc66
[ "Apache-2.0" ]
null
null
null
probedb/certs/builddb.py
dingdang2012/tlsprober
927f6177939470235bf336bca27096369932fc66
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2012 Opera Software ASA # # 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 ...
27.665663
163
0.706369
de7c4534ed26f1d3158aaf6b53415fa79e0c249d
574
py
Python
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
patron/__init__.py
rafaelaraujobsb/patron
b2d23d4149a5f48156a4a2b0638daac33a66cc6a
[ "MIT" ]
null
null
null
from flask import Flask from loguru import logger from flasgger import Swagger from patron.api import api_bp logger.add("api.log", format="{time:YYYY-MM-DD at HH:mm:ss} | {level} | {message}", rotation="500 MB") template = { "swagger": "2.0", "info": { "title": "PATRON", "description": "", ...
19.793103
102
0.602787
de7dc549a1952d8dda02b33f493f1bb859b37917
735
py
Python
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
1
2018-08-31T09:39:11.000Z
2018-08-31T09:39:11.000Z
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
src/perceptron.py
tomoki/deep-learning-from-scratch
0b6144806b6b79462d6d65616a64b1774f876973
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pylab as plt
17.093023
31
0.469388
de8007cfcf1b7fa53b4609e54f0ca14a7d5ba1bb
210
py
Python
notebooks/_solutions/case4_air_quality_analysis18.py
jorisvandenbossche/2018-Bordeaux-pandas-course
3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6
[ "BSD-3-Clause" ]
3
2019-07-23T15:14:03.000Z
2020-11-10T06:12:18.000Z
notebooks/_solutions/case4_air_quality_analysis18.py
jorisvandenbossche/2018-Bordeaux-pandas-course
3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6
[ "BSD-3-Clause" ]
null
null
null
notebooks/_solutions/case4_air_quality_analysis18.py
jorisvandenbossche/2018-Bordeaux-pandas-course
3f6b9fe6f02c2ab484c3f9744d7d39b926438dd6
[ "BSD-3-Clause" ]
3
2020-03-04T23:40:20.000Z
2021-11-04T16:41:10.000Z
# with tidy long table fig, ax = plt.subplots() sns.violinplot(x='station', y='no2', data=data_tidy[data_tidy['datetime'].dt.year == 2011], palette="GnBu_d", ax=ax) ax.set_ylabel("NO$_2$ concentration (g/m)")
52.5
116
0.704762
de82bbe06365e1885857bfec2f5eb9144e01b08c
1,729
py
Python
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
dncnn/dncnn.py
kTonpa/DnCNN
aca7e07ccbe6b75bee7d4763958dade4a8eee609
[ "MIT" ]
null
null
null
""" Project: dncnn Author: khalil MEFTAH Date: 2021-11-26 DnCNN: Deep Neural Convolutional Network for Image Denoising model implementation """ import torch from torch import nn import torch.nn.functional as F # helper functions # main classe
25.80597
142
0.638519
de848d1a58c8622dd6042ce58386b34d78eaa285
41,886
py
Python
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
88
2017-01-19T03:15:24.000Z
2022-03-30T16:22:19.000Z
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
null
null
null
scripts/fabfile/tasks.py
Alchem-Lab/deneva
5201ef12fd8235fea7833709b8bffe45f53877eb
[ "Apache-2.0" ]
22
2017-01-20T10:22:31.000Z
2022-02-10T18:55:36.000Z
#!/usr/bin/python from __future__ import print_function import logging from fabric.api import task,run,local,put,get,execute,settings from fabric.decorators import * from fabric.context_managers import shell_env,quiet from fabric.exceptions import * from fabric.utils import puts,fastprint from time import sleep from c...
36.549738
172
0.542138
de852461942a9c2a911b8c95e145d87c827bf61c
651
py
Python
mezzanine_recipes/forms.py
tjetzinger/mezzanine-recipes
f00be89ae5b93fdb2cf2771270efb4ecfa30e313
[ "MIT" ]
6
2015-02-01T18:08:41.000Z
2021-06-20T16:24:11.000Z
mezzanine_recipes/forms.py
tjetzinger/mezzanine-recipes
f00be89ae5b93fdb2cf2771270efb4ecfa30e313
[ "MIT" ]
2
2020-02-11T21:19:13.000Z
2020-06-05T16:38:44.000Z
mezzanine_recipes/forms.py
tjetzinger/mezzanine-recipes
f00be89ae5b93fdb2cf2771270efb4ecfa30e313
[ "MIT" ]
1
2016-05-17T20:16:25.000Z
2016-05-17T20:16:25.000Z
from django import forms from mezzanine.blog.forms import BlogPostForm from .models import BlogPost # These fields need to be in the form, hidden, with default values, # since it posts to the blog post admin, which includes these fields # and will use empty values instead of the model defaults, without # these spe...
26.04
73
0.723502
de86c719ac9ffce9e1f273be9d0dc93bbd224576
14,533
py
Python
reviews/migrations/0022_auto_20190302_1556.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
null
null
null
reviews/migrations/0022_auto_20190302_1556.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
4
2020-06-05T18:21:18.000Z
2021-06-10T20:17:31.000Z
reviews/migrations/0022_auto_20190302_1556.py
UrbanBogger/horrorexplosion
3698e00a6899a5e8b224cd3d1259c3deb3a2ca80
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2019-03-02 15:56 from __future__ import unicode_literals import ckeditor.fields from django.db import migrations, models import django.db.models.deletion
113.539063
1,908
0.637515
de876b3ed14bbdc7196b4d80c31ffed86152546c
1,414
py
Python
setup.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
8
2018-02-26T16:24:07.000Z
2021-06-30T07:40:52.000Z
setup.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
null
null
null
setup.py
imdaveho/intermezzo
3fe4824a747face996e301ca5190caec0cb0a6fd
[ "MIT" ]
null
null
null
import platform from setuptools import setup if platform.system() == "Windows": setup( name="intermezzo", version="0.1.0", description="A library for creating cross-platform text-based interfaces using termbox-go.", long_description="", url="https://github.com/imdaveho/inter...
35.35
100
0.601839
de87df11dbf3b3a221e585a21372627cd71cbf40
173
py
Python
aula3/ola/urls.py
Danilo-Xaxa/django_cs50w
5ae2e076f35a8c32a4e445f8cfd1c66500fbc496
[ "MIT" ]
null
null
null
aula3/ola/urls.py
Danilo-Xaxa/django_cs50w
5ae2e076f35a8c32a4e445f8cfd1c66500fbc496
[ "MIT" ]
null
null
null
aula3/ola/urls.py
Danilo-Xaxa/django_cs50w
5ae2e076f35a8c32a4e445f8cfd1c66500fbc496
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('<str:nome>', views.cumprimentar, name='cumprimentar'), ]
24.714286
64
0.676301
de88715741307a44df748cb0254417ebbcf130e6
70,016
py
Python
MOTION.py
catubc/MOTION
528ce8a860e4f1f1075b85d3bcb162fb78bdad81
[ "MIT" ]
null
null
null
MOTION.py
catubc/MOTION
528ce8a860e4f1f1075b85d3bcb162fb78bdad81
[ "MIT" ]
null
null
null
MOTION.py
catubc/MOTION
528ce8a860e4f1f1075b85d3bcb162fb78bdad81
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import cv2, os, sys, glob import scipy import sklearn import imageio import matplotlib.cm as cm import matplotlib import time from sklearn import decomposition, metrics, manifold, svm from tsne import bh_sne from matplotlib.path ...
39.049637
257
0.638211
de88b285c3b2ad75dee639aa1cc273972692cd58
619
py
Python
MinersArchers/game/game_data/cells/Cell_pygame.py
ea-evdokimov/MinersArchers
2e2830d3723b66cbd0e8829092124e30f8b4c854
[ "MIT" ]
null
null
null
MinersArchers/game/game_data/cells/Cell_pygame.py
ea-evdokimov/MinersArchers
2e2830d3723b66cbd0e8829092124e30f8b4c854
[ "MIT" ]
null
null
null
MinersArchers/game/game_data/cells/Cell_pygame.py
ea-evdokimov/MinersArchers
2e2830d3723b66cbd0e8829092124e30f8b4c854
[ "MIT" ]
null
null
null
import pygame from game.game_data.cells.Cell import Cell from game.pygame_ import PICS_pygame, CELL_SIZE from game.pygame_.Object import Object
30.95
91
0.691438
de8b266bc66642e780d1f515de7639ab0386bd85
2,690
py
Python
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
scheduler.py
shuaiqi361/a-PyTorch-Tutorial-to-Object-Detection
5706b82ff67911864967aa72adf7e4a994c7ec89
[ "MIT" ]
null
null
null
import json import os import torch import math def adjust_learning_rate(optimizer, scale): """ Scale learning rate by a specified factor. :param optimizer: optimizer whose learning rate must be shrunk. :param scale: factor to multiply learning rate with. """ for param_group in optimizer.param...
36.351351
106
0.600743
de8c74beee9cae08acd3e8037eb35833307f76e4
93
py
Python
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/routing/feeds/feed_type.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
from enum import Enum
13.285714
26
0.645161
de8c915237260239c036a5cbacb8018944e669da
8,774
py
Python
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
lego_sorter.py
bmleedy/lego_sorter
0164bc0042127f255590d1883b5edadfba781537
[ "BSD-2-Clause" ]
null
null
null
#!/bin/python3 """This is the top-level program to operate the Raspberry Pi based lego sorter.""" # Things I can set myself: AWB, Brightness, crop, exposure_mode, # exposure_speed,iso (sensitivity), overlays, preview_alpha, # preview_window, saturation, shutter_speed, # Thought for future enhancement: at start...
35.379032
94
0.624915
de8d539f5152c1d0482b8d70ccc7c573352b8f81
6,061
py
Python
tableloader/tableFunctions/types.py
warlof/yamlloader
ff1c1e62ec40787dd77115f6deded8a93e77ebf6
[ "MIT" ]
26
2015-07-08T12:55:30.000Z
2022-01-21T11:44:35.000Z
tableloader/tableFunctions/types.py
warlof/yamlloader
ff1c1e62ec40787dd77115f6deded8a93e77ebf6
[ "MIT" ]
16
2016-05-01T17:42:44.000Z
2021-06-02T04:33:53.000Z
tableloader/tableFunctions/types.py
warlof/yamlloader
ff1c1e62ec40787dd77115f6deded8a93e77ebf6
[ "MIT" ]
17
2016-05-01T11:15:00.000Z
2021-12-02T03:25:04.000Z
# -*- coding: utf-8 -*- from yaml import load, dump try: from yaml import CSafeLoader as SafeLoader print "Using CSafeLoader" except ImportError: from yaml import SafeLoader print "Using Python SafeLoader" import os import sys reload(sys) sys.setdefaultencoding("utf-8") from sqlalchemy import Table
63.135417
193
0.530606
de8e61ed55aedc48bfff03d78334a493e87826b6
242
py
Python
core/views.py
AlikBerry/countdown_timer
457f6d499b1fd702d43c348a012ae78780009e3b
[ "MIT" ]
null
null
null
core/views.py
AlikBerry/countdown_timer
457f6d499b1fd702d43c348a012ae78780009e3b
[ "MIT" ]
null
null
null
core/views.py
AlikBerry/countdown_timer
457f6d499b1fd702d43c348a012ae78780009e3b
[ "MIT" ]
null
null
null
from django.shortcuts import render from core.models import Projects,InfoNotifications,WarningNotifications from django.http import HttpResponse from .tasks import sleepy
22
71
0.801653
de8e8bcbbb73ed82dfadbb561cfbfe8bb447a711
5,017
py
Python
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
networks/autoencoder/losses.py
annachen/dl_playground
f263dc16b4f0d91f6d33d94e678a9bbe2ace8913
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np EPS = 1e-5 def KL_monte_carlo(z, mean, sigma=None, log_sigma=None): """Computes the KL divergence at a point, given by z. Implemented based on https://www.tensorflow.org/tutorials/generative/cvae This is the part "log(p(z)) - log(q(z|x)) where z is sampled from...
24.960199
88
0.590592
de9037d4a2c6b5fbbf0a5f4e22a9796ae161e5b0
4,288
py
Python
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
Onderdelen/Hoofdscherm.py
RemcoTaal/IDP
33959e29235448c38b7936f16c7421a24130e745
[ "MIT" ]
null
null
null
from tkinter import * import os, xmltodict, requests def knop1(): 'Open GUI huidig station' global root root.destroy() os.system('Huidig_Station.py') def knop2(): 'Open GUI ander station' global root root.destroy() os.system('Ander_Station.py') def nl_to_eng(): 'Wanneer er op d...
34.861789
117
0.541045
de93263b9043812ffa8057bd744f43dfad03bbdf
27
py
Python
py2ifttt/__init__.py
moevis/py2ifttt
99dc2be647c53c9279f2f212528fef7190de7476
[ "MIT" ]
3
2018-05-04T12:50:04.000Z
2020-02-28T03:22:53.000Z
py2ifttt/__init__.py
moevis/py2ifttt
99dc2be647c53c9279f2f212528fef7190de7476
[ "MIT" ]
null
null
null
py2ifttt/__init__.py
moevis/py2ifttt
99dc2be647c53c9279f2f212528fef7190de7476
[ "MIT" ]
null
null
null
from .py2ifttt import IFTTT
27
27
0.851852
de9373d0df66278e0b02dc262104db37303b9a61
3,806
py
Python
server-program/clientApplication.py
ezequias2d/projeto-so
993f3dd12135946fe5b4351e8488b7aa8a18f37e
[ "MIT" ]
null
null
null
server-program/clientApplication.py
ezequias2d/projeto-so
993f3dd12135946fe5b4351e8488b7aa8a18f37e
[ "MIT" ]
null
null
null
server-program/clientApplication.py
ezequias2d/projeto-so
993f3dd12135946fe5b4351e8488b7aa8a18f37e
[ "MIT" ]
null
null
null
import socket import tokens import connection import io import os from PIL import Image from message.literalMessage import LiteralMessage from baseApplication import BaseApplication host = input('Host: ') ClientApplication(host, 50007)
34.288288
121
0.547031
de949d00cedaeb2c6790aaae5c34a82b7c16d8c5
230
py
Python
ethernet/recv.py
bobbae/pingcap
c573688b42d35cefdbfa0121580807885aae8869
[ "Unlicense" ]
null
null
null
ethernet/recv.py
bobbae/pingcap
c573688b42d35cefdbfa0121580807885aae8869
[ "Unlicense" ]
1
2019-10-11T16:16:22.000Z
2019-10-11T16:16:22.000Z
ethernet/recv.py
bobbae/pingcap
c573688b42d35cefdbfa0121580807885aae8869
[ "Unlicense" ]
null
null
null
import sys import socket ETH_P_ALL=3 # not defined in socket module, sadly... s=socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(ETH_P_ALL)) s.bind((sys.argv[1], 0)) r=s.recv(2000) sys.stdout.write("<%s>\n"%repr(r))
25.555556
75
0.726087
de94dc8dcf783cae1964a6addda472d802119e98
1,110
py
Python
legacy/exam.py
wangxinhe2006/xyzzyy
3267614132a3b9e448b6733f13e8019aa79db922
[ "MIT" ]
1
2021-07-16T02:29:35.000Z
2021-07-16T02:29:35.000Z
legacy/exam.py
wangxinhe2006/xyzzyy
3267614132a3b9e448b6733f13e8019aa79db922
[ "MIT" ]
null
null
null
legacy/exam.py
wangxinhe2006/xyzzyy
3267614132a3b9e448b6733f13e8019aa79db922
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from json import loads from urllib.request import urlopen, Request SITE = input('Site: ') COOKIE = 'pj=' + input('pj=') examList = loads(urlopen(Request(f'{SITE}/data/module/homework/all.asp?sAct=GetHomeworkListByStudent&iIsExam=1&iPageCount=' + loads(urlopen(Request(f'{SITE}/data/module/home...
48.26087
312
0.664865
de95cb380efb4a5351375e80063db451dd2899b5
3,803
py
Python
TkPy/module.py
tbor8080/pyprog
3642b9af2a92f7369d9b6fa138e47ba22df3271c
[ "MIT" ]
null
null
null
TkPy/module.py
tbor8080/pyprog
3642b9af2a92f7369d9b6fa138e47ba22df3271c
[ "MIT" ]
null
null
null
TkPy/module.py
tbor8080/pyprog
3642b9af2a92f7369d9b6fa138e47ba22df3271c
[ "MIT" ]
null
null
null
import sys import os import tkinter.filedialog as fd from time import sleep import datetime import tkinter import tkinter as tk from tkinter import ttk from tkinter import scrolledtext import threading # New File & Duplicate File Save # FileSave
34.261261
106
0.616618
de97499bd44b3c33d3853cafca12103889273c3c
6,005
py
Python
core/polyaxon/cli/components/tuner.py
Ohtar10/polyaxon
1e41804e4ae6466b6928d06bc6ee6d2d9c7b8931
[ "Apache-2.0" ]
null
null
null
core/polyaxon/cli/components/tuner.py
Ohtar10/polyaxon
1e41804e4ae6466b6928d06bc6ee6d2d9c7b8931
[ "Apache-2.0" ]
null
null
null
core/polyaxon/cli/components/tuner.py
Ohtar10/polyaxon
1e41804e4ae6466b6928d06bc6ee6d2d9c7b8931
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, Inc. # # 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 ...
28.732057
85
0.657119
de974a6af213636bff804abc1abfb40a31e4354d
8,810
py
Python
judge/base/__init__.py
fanzeyi/Vulpix
9448e968973073c98231b22663bbebb2a452dcd7
[ "BSD-3-Clause" ]
13
2015-03-08T11:59:28.000Z
2021-07-11T11:58:01.000Z
src/tornado/demos/Vulpix-master/judge/base/__init__.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
null
null
null
src/tornado/demos/Vulpix-master/judge/base/__init__.py
ptphp/PyLib
07ac99cf2deb725475f5771b123b9ea1375f5e65
[ "Apache-2.0" ]
3
2015-05-29T16:14:08.000Z
2016-04-29T07:25:26.000Z
# -*- coding: utf-8 -*- # AUTHOR: Zeray Rice <fanzeyi1994@gmail.com> # FILE: judge/base/__init__.py # CREATED: 01:49:33 08/03/2012 # MODIFIED: 15:42:49 19/04/2012 # DESCRIPTION: Base handler import re import time import urllib import hashlib import httplib import datetime import functools import traceback import simp...
40.787037
147
0.559932
de9773cffe9839ef07dd2219fd1b0246be382284
1,839
py
Python
src/blog/migrations/0001_initial.py
triump0870/rohan
3bd56ccdc35cb67823117e78dc02becbfbd0b329
[ "MIT" ]
null
null
null
src/blog/migrations/0001_initial.py
triump0870/rohan
3bd56ccdc35cb67823117e78dc02becbfbd0b329
[ "MIT" ]
null
null
null
src/blog/migrations/0001_initial.py
triump0870/rohan
3bd56ccdc35cb67823117e78dc02becbfbd0b329
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import markdownx.models import myblog.filename from django.conf import settings
39.12766
152
0.582926
de9904583298a90d85047bd7e803be42fe6b0d62
1,545
py
Python
exams/61a-su20-practice-mt/q6/tests/q6.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
1
2022-01-22T11:45:01.000Z
2022-01-22T11:45:01.000Z
exams/61a-su20-practice-mt/q6/tests/q6.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
null
null
null
exams/61a-su20-practice-mt/q6/tests/q6.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
null
null
null
test = {'name': 'q6', 'points': 10, 'suites': [{'cases': [{'code': '>>> increment = lambda x: x + 1\n' '\n' '>>> square = lambda x: x * x\n' '\n' '>>> do_nothing = make_zipper(increment, ' ...
49.83871
80
0.253722
de9bc65cbfa30de1a8294fb16fd3712d1ce427db
3,566
py
Python
#17.py
Domino2357/daily-coding-problem
95ddef9db53c8b895f2c085ba6399a3144a4f8e6
[ "MIT" ]
null
null
null
#17.py
Domino2357/daily-coding-problem
95ddef9db53c8b895f2c085ba6399a3144a4f8e6
[ "MIT" ]
null
null
null
#17.py
Domino2357/daily-coding-problem
95ddef9db53c8b895f2c085ba6399a3144a4f8e6
[ "MIT" ]
null
null
null
""" This problem was asked by Google. Suppose we represent our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: dir subdir1 subdir2 file.ext The directory dir contains an empty sub-directory subdir1 and a sub-directory subdir2 containin...
31.280702
124
0.666854
de9bd50729808fda9f77f7ae5831c5d7b432a027
1,315
py
Python
turbot/db.py
emre/turbot
7bc49a8b79bce7f2490036d9255e5b3df8fff4b1
[ "MIT" ]
3
2017-10-17T22:02:06.000Z
2018-05-07T10:29:31.000Z
turbot/db.py
emre/turbot
7bc49a8b79bce7f2490036d9255e5b3df8fff4b1
[ "MIT" ]
null
null
null
turbot/db.py
emre/turbot
7bc49a8b79bce7f2490036d9255e5b3df8fff4b1
[ "MIT" ]
3
2018-10-16T13:28:57.000Z
2021-02-24T13:23:29.000Z
from os.path import expanduser, exists from os import makedirs TURBOT_PATH = expanduser('~/.turbot') UPVOTE_LOGS = expanduser("%s/upvote_logs" % TURBOT_PATH) CHECKPOINT = expanduser("%s/checkpoint" % TURBOT_PATH) REFUND_LOG = expanduser("%s/refunds" % TURBOT_PATH)
24.351852
56
0.650951
de9c334f30690be489dc54509a0861d269ca08ea
111
py
Python
output/models/ms_data/additional/member_type021_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/additional/member_type021_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/additional/member_type021_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.additional.member_type021_xsd.member_type021 import Root __all__ = [ "Root", ]
18.5
83
0.774775
de9ca51de5e3ba22b379f50a5e136405d59c8422
4,361
py
Python
estimator.py
2besweet/Covid-19-project
8cfa76662ed0b84999134a9faacbf390e8de31f3
[ "MIT" ]
1
2021-01-31T19:04:11.000Z
2021-01-31T19:04:11.000Z
estimator.py
2besweet/Covid-19-project
8cfa76662ed0b84999134a9faacbf390e8de31f3
[ "MIT" ]
1
2021-05-11T10:34:00.000Z
2021-05-11T10:34:00.000Z
estimator.py
2besweet/Covid-19-project
8cfa76662ed0b84999134a9faacbf390e8de31f3
[ "MIT" ]
null
null
null
reportedCases=eval(input('Enter the number of reported cases:-')) name=input('Enter the name of the region:-') days=eval(input('Enter the number of days:-')) totalHospitalbeds=eval(input('Enter the total number of beds available in the region:')) avgDailyIncomeInUsd=eval(input('Enter the Average income:-')) avgDaily...
40.757009
127
0.698234
dea196647fceafaeec0ee9058ac3907d2c76082c
3,752
py
Python
pys3crypto.py
elitest/pys3crypto
9dfef5935ff1c663b8641eaa052e778cdf34a565
[ "MIT" ]
null
null
null
pys3crypto.py
elitest/pys3crypto
9dfef5935ff1c663b8641eaa052e778cdf34a565
[ "MIT" ]
null
null
null
pys3crypto.py
elitest/pys3crypto
9dfef5935ff1c663b8641eaa052e778cdf34a565
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Original Author @elitest # This script uses boto3 to perform client side decryption # of data encryption keys and associated files # and encryption in ways compatible with the AWS SDKs # This support is not available in boto3 at this time # Wishlist: # Currently only tested with KMS managed s...
36.427184
125
0.709488
dea3d4b6a9500edd440cd83df9ceb44f4b4e36eb
1,777
py
Python
openTEL_11_19/presentation_figures/tm112_utils.py
psychemedia/presentations
a4d7058b1f716c59a89d0bcd1390ead75d769d43
[ "Apache-2.0" ]
null
null
null
openTEL_11_19/presentation_figures/tm112_utils.py
psychemedia/presentations
a4d7058b1f716c59a89d0bcd1390ead75d769d43
[ "Apache-2.0" ]
null
null
null
openTEL_11_19/presentation_figures/tm112_utils.py
psychemedia/presentations
a4d7058b1f716c59a89d0bcd1390ead75d769d43
[ "Apache-2.0" ]
1
2019-11-05T10:35:40.000Z
2019-11-05T10:35:40.000Z
from IPython.display import HTML #TO DO - the nested table does not display? #Also, the nested execution seems to take a long time to run? #Profile it to see where I'm going wrong!
38.630435
133
0.563309
dea4ec2e4ccc51ad602efcb7e648252790b6ff2d
984
py
Python
src/pages/artists_main.py
haoweini/spotify_stream
83fd13d4da9fb54a595611d4c0cd594eb5b8a9fd
[ "MIT" ]
null
null
null
src/pages/artists_main.py
haoweini/spotify_stream
83fd13d4da9fb54a595611d4c0cd594eb5b8a9fd
[ "MIT" ]
null
null
null
src/pages/artists_main.py
haoweini/spotify_stream
83fd13d4da9fb54a595611d4c0cd594eb5b8a9fd
[ "MIT" ]
null
null
null
from turtle import width import streamlit as st import numpy as np import pandas as pd from dis import dis import streamlit as st from data.get_saved_library import get_saved_library, display_user_name, display_user_pic from data.get_recently_played import get_recently_played from data.get_top_artists import get_top_ar...
31.741935
136
0.816057
dea61adbc856f28630be94c795fc850aa45a1770
595
py
Python
Leetcode/res/Longest Common Prefix/2.py
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
1
2022-03-04T16:06:41.000Z
2022-03-04T16:06:41.000Z
Leetcode/res/Longest Common Prefix/2.py
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
Leetcode/res/Longest Common Prefix/2.py
AllanNozomu/CompetitiveProgramming
ac560ab5784d2e2861016434a97e6dcc44e26dc8
[ "MIT" ]
null
null
null
# Author: allannozomu # Runtime: 56 ms # Memory: 13 MB
24.791667
58
0.403361
dea6d3637da9acba0c0473fcafaedf9d82d434e7
884
py
Python
tests/factory_fixtures/contact_number.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
null
null
null
tests/factory_fixtures/contact_number.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
56
2021-08-05T02:49:38.000Z
2022-03-31T19:35:13.000Z
tests/factory_fixtures/contact_number.py
donovan-PNW/dwellinglybackend
448df61f6ea81f00dde7dab751f8b2106f0eb7b1
[ "MIT" ]
null
null
null
import pytest from models.contact_number import ContactNumberModel
29.466667
82
0.70362
dea6d4847a9416f809c2342943ab00ca26b745bd
835
py
Python
tests/test_seq_comparision.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
8
2017-10-23T17:59:35.000Z
2021-05-10T03:01:30.000Z
tests/test_seq_comparision.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2019-08-25T19:24:12.000Z
2019-09-05T12:16:10.000Z
tests/test_seq_comparision.py
krzjoa/sciquence
6a5f758c757200fffeb0fdc9206462f1f89e2444
[ "MIT" ]
2
2018-02-28T09:47:53.000Z
2019-08-25T19:24:16.000Z
import unittest import numpy as np from sciquence.sequences import * if __name__ == '__main__': unittest.main()
30.925926
91
0.475449
dea6f4a43ec33dab31441d90f5221fa29eeb9456
8,191
py
Python
analysis_guis/code_test.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
null
null
null
analysis_guis/code_test.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
3
2021-08-09T21:51:41.000Z
2021-08-09T21:51:45.000Z
analysis_guis/code_test.py
Sepidak/spikeGUI
25ae60160308c0a34e7180f3e39a1c4dc6aad708
[ "MIT" ]
3
2021-10-16T14:07:59.000Z
2021-10-16T17:09:03.000Z
# -*- coding: utf-8 -*- """ Simple example using BarGraphItem """ # import initExample ## Add path to library (just for examples; you do not need this) import numpy as np import pickle as p import pandas as pd from analysis_guis.dialogs.rotation_filter import RotationFilter from analysis_guis.dialogs impor...
37.401826
129
0.605421
dea94f5c042a5187e7e181584aadcbc88251aee3
2,852
py
Python
att/gm.py
thexdesk/foiamail
d135bbb5f52d5a31ca8ce3450bd0035f94a182f5
[ "MIT" ]
null
null
null
att/gm.py
thexdesk/foiamail
d135bbb5f52d5a31ca8ce3450bd0035f94a182f5
[ "MIT" ]
null
null
null
att/gm.py
thexdesk/foiamail
d135bbb5f52d5a31ca8ce3450bd0035f94a182f5
[ "MIT" ]
null
null
null
""" downloads gmail atts """ import base64, os from auth.auth import get_service from msg.label import agencies, get_atts from report.response import get_threads, get_status from att.drive import get_or_create_atts_folder,\ check_if_drive, make_drive_folder, upload_to_drive ### START CONFIG ### buffer_path = ...
32.781609
119
0.630785
dea9df41450058a28e28c535ce8960f8b770dc38
1,147
py
Python
pex/pip/download_observer.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/pip/download_observer.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/pip/download_observer.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import from pex.pip.log_analyzer import LogAnalyzer from pex.typing import TYPE_CHECKING, Generic if TYPE_CHECKING: from typing import Iterable, Mappi...
23.408163
66
0.646905
deaa58029f2b553b02dbaa81816ff5ce9e456f8a
3,424
py
Python
dispatchlib/types.py
ryxcommar/dispatchlib
bf3b6e5617af41579b240a7733cd9cc86a8a38ed
[ "MIT" ]
null
null
null
dispatchlib/types.py
ryxcommar/dispatchlib
bf3b6e5617af41579b240a7733cd9cc86a8a38ed
[ "MIT" ]
null
null
null
dispatchlib/types.py
ryxcommar/dispatchlib
bf3b6e5617af41579b240a7733cd9cc86a8a38ed
[ "MIT" ]
null
null
null
from typing import Any from typing import Callable from typing import Iterable class NextDispatch(Exception): pass class DispatcherType(type): class Dispatcher(FunctionMixin, metaclass=DispatcherType): dispatch: callable register: callable registry: Iterable class MetaDispatcher(FunctionMixin...
26.96063
79
0.651285
deabe0363fc1143c6a3fe5cc62b534d0a3e480ca
2,096
py
Python
pbpstats/data_loader/nba_possession_loader.py
pauldevos/pbpstats
71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152
[ "MIT" ]
null
null
null
pbpstats/data_loader/nba_possession_loader.py
pauldevos/pbpstats
71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152
[ "MIT" ]
null
null
null
pbpstats/data_loader/nba_possession_loader.py
pauldevos/pbpstats
71c0b5e2bd45d0ca031646c70cd1c1f30c6a7152
[ "MIT" ]
null
null
null
from pbpstats.resources.enhanced_pbp import StartOfPeriod
39.54717
121
0.624046
dead01ec590550c2d98b328ed72222f137d3778b
7,033
py
Python
vmware_nsx_tempest/tests/nsxv/api/base_provider.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/base_provider.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/base_provider.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 OpenStack Foundation # 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 requ...
39.072222
78
0.65278
deadc8ea87d0e57d203447ee89704b440dd4a622
3,650
py
Python
read_csv.py
BigTony666/football-manager
12a4c3dc2bb60f9634b419b7c230d6f78df8d650
[ "MIT" ]
11
2019-04-23T23:15:43.000Z
2021-07-13T06:37:25.000Z
read_csv.py
BigTony666/football-manager
12a4c3dc2bb60f9634b419b7c230d6f78df8d650
[ "MIT" ]
null
null
null
read_csv.py
BigTony666/football-manager
12a4c3dc2bb60f9634b419b7c230d6f78df8d650
[ "MIT" ]
2
2019-03-07T21:07:34.000Z
2020-04-19T15:28:31.000Z
#!/usr/bin/env python # coding: utf-8 # In[2]: from collections import defaultdict import csv import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt # ## read data to numpy(not in use) # In[385]: # def readCsvToNumpy(file_name, feat_num): # util_mat = [] # with open...
27.037037
117
0.596164
deaf2eb47ddc3dd822c0c77690801b5b8b2a48b0
1,492
py
Python
layers/ternary_ops.py
victorjoos/QuantizedNeuralNetworks-Keras-Tensorflow
4080ddff9c9e9a6fd5c1dd90997c63968195bb7e
[ "BSD-3-Clause" ]
1
2018-08-22T12:13:25.000Z
2018-08-22T12:13:25.000Z
layers/ternary_ops.py
victorjoos/QuantizedNeuralNetworks-Keras-Tensorflow
4080ddff9c9e9a6fd5c1dd90997c63968195bb7e
[ "BSD-3-Clause" ]
null
null
null
layers/ternary_ops.py
victorjoos/QuantizedNeuralNetworks-Keras-Tensorflow
4080ddff9c9e9a6fd5c1dd90997c63968195bb7e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import keras.backend as K from time import sleep def _ternarize(W, H=1): '''The weights' ternarization function, # References: - [Recurrent Neural Networks with Limited Numerical Precision](http://arxiv.org/abs/1608.06902) - [Ternary Weig...
27.127273
99
0.632038
deafcfc518bad5ab9572431f7de653f846580238
1,050
py
Python
python/5.concurrent/ZCoroutine/z_new_ipc/8.condition.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
25
2018-06-13T08:13:44.000Z
2020-11-19T14:02:11.000Z
python/5.concurrent/ZCoroutine/z_new_ipc/8.condition.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
null
null
null
python/5.concurrent/ZCoroutine/z_new_ipc/8.condition.py
lotapp/BaseCode
0255f498e1fe67ed2b3f66c84c96e44ef1f7d320
[ "Apache-2.0" ]
13
2018-06-13T08:13:38.000Z
2022-01-06T06:45:07.000Z
import asyncio cond = None p_list = [] # # if __name__ == "__main__": asyncio.run(main())
23.333333
75
0.526667
deb039b791ed71607787c0d4ffc9f5bb4edef521
930
py
Python
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
Q846_Hand-of-Straights.py
xiaosean/leetcode_python
844ece02d699bfc620519bd94828ed0e18597f3e
[ "MIT" ]
null
null
null
from collections import Counter
31
63
0.410753
deb1c543d933d4026fb5899f87ff8c3384301fea
174
py
Python
hover/utils/misc.py
haochuanwei/hover
53eb38c718e44445b18a97e391b7f90270802b04
[ "MIT" ]
1
2020-12-08T13:04:18.000Z
2020-12-08T13:04:18.000Z
hover/utils/misc.py
MaxCodeXTC/hover
feeb0e0c59295a3c883823ccef918dfe388b603c
[ "MIT" ]
null
null
null
hover/utils/misc.py
MaxCodeXTC/hover
feeb0e0c59295a3c883823ccef918dfe388b603c
[ "MIT" ]
null
null
null
"""Mini-functions that do not belong elsewhere.""" from datetime import datetime
24.857143
50
0.718391
deb28e42e8f7639fbbb2df4266120ee03fd2a028
193
py
Python
admin.py
sfchronicle/najee
0c66b05ba10616243d9828465da97dee7bfedc0d
[ "MIT", "Unlicense" ]
null
null
null
admin.py
sfchronicle/najee
0c66b05ba10616243d9828465da97dee7bfedc0d
[ "MIT", "Unlicense" ]
null
null
null
admin.py
sfchronicle/najee
0c66b05ba10616243d9828465da97dee7bfedc0d
[ "MIT", "Unlicense" ]
null
null
null
import flask_admin as admin # from flask_admin.contrib.sqla import ModelView from app import app # from app import db from models import * # Admin admin = admin.Admin(app) # Add Admin Views
16.083333
48
0.766839
deb449183523148b00bdabf18e21714bbe3551c8
467
py
Python
src/courses/migrations/0006_auto_20200521_2038.py
GiomarOsorio/another-e-learning-platform
5cfc76420eb3466691f5187c915c179afb13199a
[ "MIT" ]
null
null
null
src/courses/migrations/0006_auto_20200521_2038.py
GiomarOsorio/another-e-learning-platform
5cfc76420eb3466691f5187c915c179afb13199a
[ "MIT" ]
8
2020-06-25T22:16:20.000Z
2022-03-12T00:39:27.000Z
src/courses/migrations/0006_auto_20200521_2038.py
GiomarOsorio/another-e-learning-platform
5cfc76420eb3466691f5187c915c179afb13199a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-21 20:38 from django.db import migrations, models
24.578947
129
0.631692
deb684b2e0198456aadb77cab383b2b6c0c2748f
776
py
Python
mypi/settings.py
sujaymansingh/mypi
768bdda2ed43faba8a69c7985ee063e1016b9299
[ "BSD-2-Clause-FreeBSD" ]
4
2016-08-22T17:13:43.000Z
2020-10-21T16:50:07.000Z
mypi/settings.py
sujaymansingh/mypi
768bdda2ed43faba8a69c7985ee063e1016b9299
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
mypi/settings.py
sujaymansingh/mypi
768bdda2ed43faba8a69c7985ee063e1016b9299
[ "BSD-2-Clause-FreeBSD" ]
1
2016-08-22T17:13:47.000Z
2016-08-22T17:13:47.000Z
import os # We should try to import any custom settings. SETTINGS_MODULE_NAME = os.getenv("MYPI_SETTINGS_MODULE") if SETTINGS_MODULE_NAME: SETTINGS_MODULE = import_module(SETTINGS_MODULE_NAME) else: SETTINGS_MODULE = object() # Try to get everything from the custom settings, but provide a default. PACKAGES_...
29.846154
72
0.744845
deb7178741e12b76740cccb10cf2e3f8e186116d
1,866
py
Python
alipay/aop/api/domain/KbAdvertPreserveCommissionClause.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KbAdvertPreserveCommissionClause.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/KbAdvertPreserveCommissionClause.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import *
29.15625
81
0.587889
deba0ac91a90f7d9408ab094dc6d137f7476170c
4,495
py
Python
smart_contract/__init__.py
publicqi/CTFd-Fox
b1d0169db884cdf3cb665faa8987443e7630d108
[ "MIT" ]
1
2021-01-09T15:20:14.000Z
2021-01-09T15:20:14.000Z
smart_contract/__init__.py
publicqi/CTFd-Fox
b1d0169db884cdf3cb665faa8987443e7630d108
[ "MIT" ]
null
null
null
smart_contract/__init__.py
publicqi/CTFd-Fox
b1d0169db884cdf3cb665faa8987443e7630d108
[ "MIT" ]
null
null
null
from __future__ import division # Use floating point for math calculations from flask import Blueprint from CTFd.models import ( ChallengeFiles, Challenges, Fails, Flags, Hints, Solves, Tags, db, ) from CTFd.plugins import register_plugin_assets_directory from CTFd.plugins.challenges...
32.338129
87
0.629588
deba5b19ee11e4b42757cf8302210ae77f1c6474
295
py
Python
01-data_types/d13.py
philiphinton/learn_python
6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4
[ "MIT" ]
null
null
null
01-data_types/d13.py
philiphinton/learn_python
6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4
[ "MIT" ]
3
2022-01-17T22:55:09.000Z
2022-01-26T07:26:13.000Z
01-data_types/d13.py
philiphinton/learn_python
6ddfe3c7818d6c919bfa49bd6302c75ee761b6a4
[ "MIT" ]
1
2021-12-14T01:33:21.000Z
2021-12-14T01:33:21.000Z
shopping_list = { 'Tomatoes': 6, 'Bananas': 5, 'Crackers': 2, 'Sugar': 1, 'Icecream': 1, 'Bread': 3, 'Chocolate': 2 } # Just the keys print(shopping_list.keys()) # Just the values # print(shopping_list.values()) # Both keys and values # print(shopping_list.items())
17.352941
31
0.610169
debc22c03ed999e303334d1da3320e421b5bfacc
119
py
Python
applications/jupyter-extension/nteract_on_jupyter/notebooks/utils/cb/python/__init__.py
jjhenkel/nteract
088222484b59af14b1da22de4d0990d8925adf95
[ "BSD-3-Clause" ]
null
null
null
applications/jupyter-extension/nteract_on_jupyter/notebooks/utils/cb/python/__init__.py
jjhenkel/nteract
088222484b59af14b1da22de4d0990d8925adf95
[ "BSD-3-Clause" ]
null
null
null
applications/jupyter-extension/nteract_on_jupyter/notebooks/utils/cb/python/__init__.py
jjhenkel/nteract
088222484b59af14b1da22de4d0990d8925adf95
[ "BSD-3-Clause" ]
null
null
null
from .surface import * from .modifiers import * from .evaluator import Evaluator from .lowlevel import display_results
23.8
37
0.815126
debcd3fde3c56a4f5ccca0c23d8a57a7d2afd960
588
py
Python
Numbers/PrimeFac.py
Arjuna197/the100
2963b4fe1b1b8e673a23b2cf97f4bcb263af9781
[ "MIT" ]
1
2022-02-20T18:49:49.000Z
2022-02-20T18:49:49.000Z
Numbers/PrimeFac.py
dan-garvey/the100
2963b4fe1b1b8e673a23b2cf97f4bcb263af9781
[ "MIT" ]
13
2017-12-13T02:31:54.000Z
2017-12-13T02:37:45.000Z
Numbers/PrimeFac.py
dan-garvey/the100
2963b4fe1b1b8e673a23b2cf97f4bcb263af9781
[ "MIT" ]
null
null
null
import math from math import* print('enter a positive integer') FacMe=int(input()) primefacts=[1] if not isPrime(FacMe): if FacMe % 2==0: primefacts.append(2) if FacMe % 3==0: primefacts.append(3) for i in range(5,FacMe): if FacMe%i==0: if isPrime(i): ...
21.777778
40
0.547619
debd457fd6d2c1141a031eefaca5f163110cfa64
1,130
py
Python
src/wtfjson/validators/url.py
binary-butterfly/wtfjson
551ad07c895ce3c94ac3015b6b5ecc2102599b56
[ "MIT" ]
null
null
null
src/wtfjson/validators/url.py
binary-butterfly/wtfjson
551ad07c895ce3c94ac3015b6b5ecc2102599b56
[ "MIT" ]
1
2021-10-11T08:55:45.000Z
2021-10-11T08:55:45.000Z
src/wtfjson/validators/url.py
binary-butterfly/wtfjson
551ad07c895ce3c94ac3015b6b5ecc2102599b56
[ "MIT" ]
null
null
null
# encoding: utf-8 """ binary butterfly validator Copyright (c) 2021, binary butterfly GmbH Use of this source code is governed by an MIT-style license that can be found in the LICENSE.txt. """ import re from typing import Any, Optional from ..abstract_input import AbstractInput from ..fields import Field from ..vali...
30.540541
103
0.650442
debe6ce18f853e6b1e54abf97ade00987edf8450
1,270
py
Python
runner/run_descriptions/runs/curious_vs_vanilla.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
18
2018-12-29T01:52:25.000Z
2021-11-08T06:48:20.000Z
runner/run_descriptions/runs/curious_vs_vanilla.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
2
2019-06-13T12:52:55.000Z
2019-10-30T03:27:11.000Z
runner/run_descriptions/runs/curious_vs_vanilla.py
alex-petrenko/curious-rl
6cd0eb78ab409c68f8dad1a8542d625f0dd39114
[ "MIT" ]
3
2019-05-11T07:50:53.000Z
2021-11-18T08:15:56.000Z
from runner.run_descriptions.run_description import RunDescription, Experiment, ParamGrid _params = ParamGrid([ ('prediction_bonus_coeff', [0.00, 0.05]), ]) _experiments = [ Experiment( 'doom_maze_very_sparse', 'python -m algorithms.curious_a2c.train_curious_a2c --env=doom_maze_very_sparse --g...
40.967742
145
0.711024
debed6abf0cd6d720ad9aac4713a4ef0c18b842a
383
py
Python
xappt_qt/__init__.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
null
null
null
xappt_qt/__init__.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
12
2020-10-11T22:42:12.000Z
2021-10-04T19:38:51.000Z
xappt_qt/__init__.py
cmontesano/xappt_qt
74f8c62e0104a67b4b4eb65382df851221bf0bab
[ "MIT" ]
1
2021-09-29T23:53:34.000Z
2021-09-29T23:53:34.000Z
import os from xappt_qt.__version__ import __version__, __build__ from xappt_qt.plugins.interfaces.qt import QtInterface # suppress "qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow)" os.environ['QT_LOGGING_RULES'] = '*.debug=false;qt.qpa.*=false' version = tuple(map(int, __version__.split('.'))) + (__build__, )...
27.357143
65
0.749347
dec0b14005ec6feafc62d8f18253556640fa35db
145,150
py
Python
py/countdowntourney.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
py/countdowntourney.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
py/countdowntourney.py
elocemearg/atropine
894010bcc89d4e6962cf3fc15ef526068c38898d
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python3 import sys import sqlite3; import re; import os; import random import qualification from cttable import CandidateTable, TableVotingGroup, PhantomTableVotingGroup import cttable SW_VERSION_SPLIT = (1, 1, 4) SW_VERSION = ".".join([str(x) for x in SW_VERSION_SPLIT]) EARLIEST_COMPATIBLE_DB_VERSION = (...
39.691004
388
0.586035
dec0da50ce4a56fc78832aa67c6d71d1a1a1c437
995
py
Python
t/plugin/plugin_020deploy_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
1
2019-10-15T08:37:56.000Z
2019-10-15T08:37:56.000Z
t/plugin/plugin_020deploy_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
t/plugin/plugin_020deploy_test.py
jrmsdev/pysadm
0d6b3f0c8d870d83ab499c8d9487ec8e3a89fc37
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jeremas Casteglione <jrmsdev@gmail.com> # See LICENSE file. from glob import glob from os import path, makedirs
36.851852
80
0.676382
dec30d56b6d0887d305f33e490a67d25b3dd39cd
4,189
py
Python
jsonReadWrite.py
nsobczak/ActivityWatchToCSV
cefb67e9f1c834008f2b39c0baf6c7c506327a4d
[ "Apache-2.0" ]
null
null
null
jsonReadWrite.py
nsobczak/ActivityWatchToCSV
cefb67e9f1c834008f2b39c0baf6c7c506327a4d
[ "Apache-2.0" ]
null
null
null
jsonReadWrite.py
nsobczak/ActivityWatchToCSV
cefb67e9f1c834008f2b39c0baf6c7c506327a4d
[ "Apache-2.0" ]
null
null
null
""" ############## # jsonReader # ############## """ # Import import json from platform import system from enum import Enum from datetime import timedelta # %% ____________________________________________________________________________________________________ # ____________________________________________________...
30.136691
121
0.545476
dec3721fd14d0e108bf21ac443dd1b7796946011
286
py
Python
pythons/reTesting.py
whats2000/coding-stuff-I-make-from-learning
d82809ba12f9d74bdb41eca5ba8f12f4cd96929e
[ "MIT" ]
null
null
null
pythons/reTesting.py
whats2000/coding-stuff-I-make-from-learning
d82809ba12f9d74bdb41eca5ba8f12f4cd96929e
[ "MIT" ]
null
null
null
pythons/reTesting.py
whats2000/coding-stuff-I-make-from-learning
d82809ba12f9d74bdb41eca5ba8f12f4cd96929e
[ "MIT" ]
null
null
null
import re test = input(" : ") test.encode('unicode-escape').decode().replace('\\\\', '\\') print(" : "+test) if re.match(test, "a"): print(test + " Match 1") if re.match(test, "aa"): print(test + " Match 2") if re.match(test, "aaaa"): print(test + " Match 3")
16.823529
60
0.562937
dec3efd877d3ce87cbe9fc53530bf43be70d8149
306
py
Python
2021-12-23/1.py
xiaozhiyuqwq/seniorschool
7375038b00a6d2deaec5d70bfac25ddbf4d2558e
[ "Apache-2.0" ]
null
null
null
2021-12-23/1.py
xiaozhiyuqwq/seniorschool
7375038b00a6d2deaec5d70bfac25ddbf4d2558e
[ "Apache-2.0" ]
null
null
null
2021-12-23/1.py
xiaozhiyuqwq/seniorschool
7375038b00a6d2deaec5d70bfac25ddbf4d2558e
[ "Apache-2.0" ]
null
null
null
# t=0 # for x in range(1,9): for y in range(1,11): for z in range(1,13): if 6*x+5*y+4*z==50: print("x ",x," y ",y," z ",z," ") t=t+1 print(" {} ".format(t)) #by xiaozhiyuqwq #https://www.rainyat.work #2021-12-23
21.857143
60
0.46732
dec6337c650811d4d0bda0d9fb32eb5e333b7344
15,088
py
Python
Project-2/Ishan Pandey/job_compare.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
1
2021-06-03T16:08:33.000Z
2021-06-03T16:08:33.000Z
Project-2/Ishan Pandey/job_compare.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
16
2021-04-27T12:58:03.000Z
2021-05-28T14:02:14.000Z
Project-2/Ishan Pandey/job_compare.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
70
2021-04-26T13:48:35.000Z
2021-05-28T21:04:34.000Z
# from job_scrapper_gui import naukri_gui from tkinter import * from PIL import ImageTk import PIL.Image import naukri_scrapper import linkedin_scrapper import indeed import simply_hired_scrapper from selenium import webdriver root = Tk() root.title("Compare Jobs") root.geometry("1000x670") root.configure(background=...
57.808429
176
0.696911
dec771d07fef05c3b6f9bec75d34bca56cffa1b5
3,648
py
Python
data_augmentor/multidimension.py
ZhiangChen/tornado_ML
d8bded61a6a234ca67e31776bc8576c6c18f5621
[ "MIT" ]
2
2018-12-09T20:08:51.000Z
2021-02-01T17:49:14.000Z
data_augmentor/multidimension.py
ZhiangChen/tornado_ML
d8bded61a6a234ca67e31776bc8576c6c18f5621
[ "MIT" ]
1
2019-11-15T06:15:03.000Z
2019-11-15T06:15:03.000Z
multidimension.py
DREAMS-lab/data_augmentor
f204ee3af805b17d9946d3d5c6e7ca62398f09e5
[ "MIT" ]
null
null
null
""" multispectrum Zhiang Chen, Feb, 2020 """ import gdal import cv2 import numpy as np import math import os if __name__ == '__main__': st = MultDim() # split tiles """ st.readTiff("./datasets/C3/Orth5.tif", channel=5) R = st.readImage("./datasets/Rock/R.png", channel=1) G = st.readImage("....
35.076923
105
0.569353
dec7a039bcd25fbdc90d163100b8870f23f0424a
399
py
Python
tests/serializers/test_template_data_serializers.py
banillie/bcompiler-engine
26b63b6e630e2925175ffff6b48b42d70f7ba544
[ "MIT" ]
2
2019-09-23T08:51:48.000Z
2019-10-14T08:44:28.000Z
tests/serializers/test_template_data_serializers.py
banillie/bcompiler-engine
26b63b6e630e2925175ffff6b48b42d70f7ba544
[ "MIT" ]
27
2019-07-08T11:15:03.000Z
2020-06-22T15:47:25.000Z
tests/serializers/test_template_data_serializers.py
yulqen/bcompiler-engine
40eff19e04eabacac991bb34d31a7e7a7d6b729a
[ "MIT" ]
1
2019-09-07T14:05:16.000Z
2019-09-07T14:05:16.000Z
import json from engine.serializers.template import TemplateCellSerializer
30.692308
75
0.802005
deca8e26bb6a2a9ae53903a22809984f7a74b454
26,490
py
Python
project.py
PetruSicoe/Python101-GameProject
82121a8e110ee484acdf85843725882d60957b25
[ "CC-BY-4.0" ]
null
null
null
project.py
PetruSicoe/Python101-GameProject
82121a8e110ee484acdf85843725882d60957b25
[ "CC-BY-4.0" ]
null
null
null
project.py
PetruSicoe/Python101-GameProject
82121a8e110ee484acdf85843725882d60957b25
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 from random import randrange import random import pygame, sys from pygame.locals import * import string pygame.font.init() MENU_WIDTH = 1000 MENU_HEIGHT = 1000 GUESS_WIDTH = 1000 GUESS_HEIGHT = 650 HANGMAN_WIDTH = 1300 HANGMAN_HEIGHT = 720 BLACK = (0,0,0) WHITE = (25...
40.197269
177
0.555795
decaa14b52fa5524baf2d5d190931296e44de823
2,018
py
Python
Modules/CrossMapLRN.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
52
2020-02-28T20:40:15.000Z
2021-08-25T05:35:17.000Z
Modules/CrossMapLRN.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
2
2021-02-14T15:57:03.000Z
2021-10-05T12:21:34.000Z
Modules/CrossMapLRN.py
EmilPi/PuzzleLib
31aa0fab3b5e9472b9b9871ca52e4d94ea683fa9
[ "Apache-2.0" ]
8
2020-02-28T20:40:11.000Z
2020-07-09T13:27:23.000Z
import numpy as np from PuzzleLib.Backend import gpuarray from PuzzleLib.Backend.Dnn import crossMapLRN, crossMapLRNBackward from PuzzleLib.Modules.LRN import LRN if __name__ == "__main__": unittest()
32.031746
101
0.700198
decc19f50e9a41be1bc95cb6e0bf5f4f77162b78
4,802
py
Python
src/metrics.py
enryH/specpride
1bedd87dc8f31a6b86426c6e03dc0c27706bc9aa
[ "Apache-2.0" ]
2
2020-01-14T12:02:52.000Z
2020-01-14T14:03:30.000Z
src/metrics.py
enryH/specpride
1bedd87dc8f31a6b86426c6e03dc0c27706bc9aa
[ "Apache-2.0" ]
5
2019-12-09T10:59:10.000Z
2020-01-16T14:32:00.000Z
src/metrics.py
enryH/specpride
1bedd87dc8f31a6b86426c6e03dc0c27706bc9aa
[ "Apache-2.0" ]
9
2020-01-14T12:26:54.000Z
2020-01-16T08:26:06.000Z
import copy from typing import Iterable import numba as nb import numpy as np import spectrum_utils.spectrum as sus def dot(spectrum1: sus.MsmsSpectrum, spectrum2: sus.MsmsSpectrum, fragment_mz_tolerance: float) -> float: """ Compute the dot product between the given spectra. Parameters ----...
31.592105
79
0.660975
deccbee42c5be781692fc226272ac89e27a4e7a6
797
py
Python
examples/multi-class_neural_network.py
sun1638650145/classicML
7e0c2155bccb6e491a150ee689d3786526b74565
[ "Apache-2.0" ]
12
2020-05-10T12:11:06.000Z
2021-10-31T13:23:55.000Z
examples/multi-class_neural_network.py
sun1638650145/classicML
7e0c2155bccb6e491a150ee689d3786526b74565
[ "Apache-2.0" ]
null
null
null
examples/multi-class_neural_network.py
sun1638650145/classicML
7e0c2155bccb6e491a150ee689d3786526b74565
[ "Apache-2.0" ]
2
2021-01-17T06:22:05.000Z
2021-01-18T14:32:51.000Z
""" BP. """ import sys import classicML as cml DATASET_PATH = './datasets/iris_dataset.csv' CALLBACKS = [cml.callbacks.History(loss_name='categorical_crossentropy', metric_name='accuracy')] # ds = cml.data.Dataset(label_mode='one-hot', standardization=True, ...
28.464286
72
0.644918
decdd56ee9283490fb231ea62e1de89aa2fa1fee
2,596
py
Python
pool/serializer/PoolSerializer.py
salran40/POAP
9ff2ab68b55aeffe104d127c4beb8b1372b2c8de
[ "Apache-2.0" ]
null
null
null
pool/serializer/PoolSerializer.py
salran40/POAP
9ff2ab68b55aeffe104d127c4beb8b1372b2c8de
[ "Apache-2.0" ]
null
null
null
pool/serializer/PoolSerializer.py
salran40/POAP
9ff2ab68b55aeffe104d127c4beb8b1372b2c8de
[ "Apache-2.0" ]
null
null
null
__author__ = "arunrajms" from rest_framework import serializers from pool.models import Pool from rest_framework.validators import UniqueValidator import re TYPE_CHOICES = ['Integer','IP','IPv6','AutoGenerate','Vlan','MgmtIP'] PUT_TYPE_CHOICES = ['Integer','IP','IPv6','Vlan','MgmtIP'] SCOPE_CHOICES = ['global','fabri...
36.56338
91
0.724961
dece77460bb0515a4dff433a0f6f8e80d7adc76c
3,735
py
Python
yiffscraper/downloader.py
ScraperT/yiffscraper
49482a544fc7f11e6ea5db2626dbc2404529d656
[ "MIT" ]
42
2019-12-23T23:55:12.000Z
2022-02-07T04:12:59.000Z
yiffscraper/downloader.py
arin17bishwa/yiffscraper
49482a544fc7f11e6ea5db2626dbc2404529d656
[ "MIT" ]
7
2020-01-12T13:04:56.000Z
2020-05-18T07:11:51.000Z
yiffscraper/downloader.py
arin17bishwa/yiffscraper
49482a544fc7f11e6ea5db2626dbc2404529d656
[ "MIT" ]
7
2020-03-12T03:47:53.000Z
2020-07-26T08:05:55.000Z
import os import platform from datetime import datetime import time from pathlib import Path import asyncio from dateutil.parser import parse as parsedate from dateutil import tz import aiohttp
31.923077
122
0.626774
ded08df80894e1241c99188254ecd7f7c259352b
380
py
Python
linked_lists/find_loop.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
linked_lists/find_loop.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
linked_lists/find_loop.py
maanavshah/coding-interview
4c842cdbc6870da79684635f379966d1caec2162
[ "MIT" ]
null
null
null
# O(n) time | O(1) space
20
30
0.560526
ded4491d8cef57cccb094e0f83641638968be15a
3,066
py
Python
src/tests/attention_test.py
feperessim/attention_keras
322a16ee147122026b63305aaa5e899d9e5de883
[ "MIT" ]
422
2019-03-17T13:08:59.000Z
2022-03-31T12:08:29.000Z
src/tests/attention_test.py
JKhodadadi/attention_keras
322a16ee147122026b63305aaa5e899d9e5de883
[ "MIT" ]
51
2019-03-17T20:08:11.000Z
2022-03-18T03:51:42.000Z
src/tests/attention_test.py
JKhodadadi/attention_keras
322a16ee147122026b63305aaa5e899d9e5de883
[ "MIT" ]
285
2019-03-17T19:06:22.000Z
2022-03-31T02:29:17.000Z
import pytest from layers.attention import AttentionLayer from tensorflow.keras.layers import Input, GRU, Dense, Concatenate, TimeDistributed from tensorflow.keras.models import Model import tensorflow as tf def test_attention_layer_standalone_fixed_b_fixed_t(): """ Tests fixed batch size and time steps E...
37.390244
101
0.7182
ded5e7681d684ad45f836b0b523b89035ed45f16
1,572
py
Python
Python/9248_Suffix_Array/9248_suffix_array_lcp_array.py
ire4564/Baekjoon_Solutions
3e6689efa30d6b850cdc29570c76408a1e1b2b49
[ "Apache-2.0" ]
4
2020-11-17T09:52:29.000Z
2020-12-13T11:36:14.000Z
Python/9248_Suffix_Array/9248_suffix_array_lcp_array.py
ire4564/Baekjoon_Solutions
3e6689efa30d6b850cdc29570c76408a1e1b2b49
[ "Apache-2.0" ]
2
2020-11-19T11:21:02.000Z
2020-11-19T22:07:15.000Z
Python/9248_Suffix_Array/9248_suffix_array_lcp_array.py
ire4564/Baekjoon_Solutions
3e6689efa30d6b850cdc29570c76408a1e1b2b49
[ "Apache-2.0" ]
12
2020-11-17T06:55:13.000Z
2021-05-16T14:39:37.000Z
from itertools import zip_longest, islice if __name__ == '__main__': L = input() inverse_suffix_array = suffix_array_best(L) suffix_array = inverse_array(inverse_suffix_array) for item in suffix_array: print(item + 1, end=' ') LCP = lcp_array(L, suffix_array) ...
20.684211
64
0.448473
ded667020b68f181edc8b21f22dbb71557c2c7cc
1,329
py
Python
lgr/tools/compare/utils.py
ron813c/lgr-core
68ba730bf7f9e61cb97c9c08f61bc58b8ea24e7b
[ "BSD-3-Clause" ]
7
2017-07-10T22:39:52.000Z
2021-06-25T20:19:28.000Z
lgr/tools/compare/utils.py
ron813c/lgr-core
68ba730bf7f9e61cb97c9c08f61bc58b8ea24e7b
[ "BSD-3-Clause" ]
13
2016-10-26T19:42:00.000Z
2021-12-13T19:43:42.000Z
lgr/tools/compare/utils.py
ron813c/lgr-core
68ba730bf7f9e61cb97c9c08f61bc58b8ea24e7b
[ "BSD-3-Clause" ]
8
2016-11-07T15:40:27.000Z
2020-09-22T13:48:52.000Z
# -*- coding: utf-8 -*- """ utils.py - Definition of utility functions. """ from collections import namedtuple from lgr.utils import format_cp VariantProperties = namedtuple('VariantProperties', ['cp', 'type', 'when', 'not_when', ...
24.611111
77
0.574116
ded78378f0da72d7d6e0a021bbb1b4a6004db8f0
2,386
py
Python
tests/test__file_object.py
StateArchivesOfNorthCarolina/tomes_metadata
8b73096c1b16e0db2895a6c01d4fc4fd9621cf55
[ "MIT" ]
null
null
null
tests/test__file_object.py
StateArchivesOfNorthCarolina/tomes_metadata
8b73096c1b16e0db2895a6c01d4fc4fd9621cf55
[ "MIT" ]
2
2018-09-12T20:36:22.000Z
2018-09-13T20:14:50.000Z
tests/test__file_object.py
StateArchivesOfNorthCarolina/tomes-packager
8b73096c1b16e0db2895a6c01d4fc4fd9621cf55
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # import modules. import sys; sys.path.append("..") import hashlib import json import logging import os import plac import unittest import warnings from tomes_packager.lib.directory_object import * from tomes_packager.lib.file_object import * # enable logging. logging.basicConfig(level=logging....
27.744186
84
0.642079
ded98a6b09e99064104171c0327f9f5f8f68c1fa
244
py
Python
tests/test_helpers.py
c137digital/unv_web
52bea090c630b4e2a393c70907d35c9558d259fa
[ "MIT" ]
null
null
null
tests/test_helpers.py
c137digital/unv_web
52bea090c630b4e2a393c70907d35c9558d259fa
[ "MIT" ]
null
null
null
tests/test_helpers.py
c137digital/unv_web
52bea090c630b4e2a393c70907d35c9558d259fa
[ "MIT" ]
null
null
null
from unv.web.helpers import url_with_domain, url_for_static
24.4
63
0.737705
deda4206dc73f8dbe4b33d7d756e79510962b4d8
10,829
py
Python
game.py
IliketoTranslate/Pickaxe-clicker
e74ebd66842bd47c4ed1c4460e9f45e30a2ad1d7
[ "MIT" ]
null
null
null
game.py
IliketoTranslate/Pickaxe-clicker
e74ebd66842bd47c4ed1c4460e9f45e30a2ad1d7
[ "MIT" ]
null
null
null
game.py
IliketoTranslate/Pickaxe-clicker
e74ebd66842bd47c4ed1c4460e9f45e30a2ad1d7
[ "MIT" ]
null
null
null
import pygame icon = pygame.image.load("diamond_pickaxe.png") screen_weight = 1750 screen_height = 980 pygame.init() window = pygame.display.set_mode((screen_weight, screen_height)) pygame.display.set_caption('Pickaxe clicker') pygame.display.set_icon(icon) # zmienne wytrzymao_kilofa = 50 max_wytrzymao_kilofa = 50...
49.447489
296
0.576138
dedba85b4c2428f8778fd3f7f0d4d19fee14a759
4,383
py
Python
tests/test_predictor.py
WeijieChen2017/pytorch-3dunet
15c782481cb7bc3e2083a80bcc8b114cc8697c20
[ "MIT" ]
1
2021-08-04T04:03:37.000Z
2021-08-04T04:03:37.000Z
tests/test_predictor.py
LalithShiyam/pytorch-3dunet
f6b6c13cb0bb6194e95976b0245b76aaa9e9a496
[ "MIT" ]
null
null
null
tests/test_predictor.py
LalithShiyam/pytorch-3dunet
f6b6c13cb0bb6194e95976b0245b76aaa9e9a496
[ "MIT" ]
1
2022-03-14T04:43:24.000Z
2022-03-14T04:43:24.000Z
import os from tempfile import NamedTemporaryFile import h5py import numpy as np import torch from skimage.metrics import adapted_rand_error from torch.utils.data import DataLoader from pytorch3dunet.datasets.hdf5 import StandardHDF5Dataset from pytorch3dunet.datasets.utils import prediction_collate, get_test_loaders...
35.346774
114
0.62423
dedbd6180bc5f6b44a69dd4d23b7983f144a3239
2,560
py
Python
catalog/views.py
DigimundoTesca/Tv-Mundo
09904759d1f4f9bf2d5c7c31b97af82c3c963bfd
[ "MIT" ]
null
null
null
catalog/views.py
DigimundoTesca/Tv-Mundo
09904759d1f4f9bf2d5c7c31b97af82c3c963bfd
[ "MIT" ]
6
2017-09-19T07:26:14.000Z
2017-09-27T10:06:49.000Z
catalog/views.py
DigimundoTesca/Tv-Mundo
09904759d1f4f9bf2d5c7c31b97af82c3c963bfd
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404 from django.contrib.auth.decorators import login_required from catalog.models import Videos, Category, Docs, Subscriber from django.contrib.auth.decorators import login_required
24.380952
76
0.622656
dedc38f09d494832d839db3e999852609e6a45ac
519
py
Python
python/database/get_twitter_predict_by_order.py
visdata/DeepClue
8d80ecd783919c97ba225db67664a0dfe5f3fb37
[ "Apache-2.0" ]
1
2020-12-06T08:04:32.000Z
2020-12-06T08:04:32.000Z
python/database/get_twitter_predict_by_order.py
visdata/DeepClue
8d80ecd783919c97ba225db67664a0dfe5f3fb37
[ "Apache-2.0" ]
null
null
null
python/database/get_twitter_predict_by_order.py
visdata/DeepClue
8d80ecd783919c97ba225db67664a0dfe5f3fb37
[ "Apache-2.0" ]
null
null
null
import MySQLdb db = MySQLdb.connect('localhost', 'root', 'vis_2014', 'FinanceVis') cursor = db.cursor() sql = 'select predict_news_word from all_twitter where symbol=%s order by predict_news_word+0 desc' cursor.execute(sql, ('AAPL', )) results = cursor.fetchall() file_twitter_predict = open('twitter_predict_AAPL.csv...
25.95
99
0.714836
dedd33f5b7d0869e4ad454abba7866e56edaacbb
301
py
Python
examples/matplotlib/mpl_plot_dot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,159
2018-04-03T08:50:54.000Z
2022-03-31T18:03:52.000Z
examples/matplotlib/mpl_plot_dot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
1,656
2018-03-23T14:15:05.000Z
2022-03-31T14:00:28.000Z
examples/matplotlib/mpl_plot_dot.py
sudojarvis/arviz
73531be4f23df7d764b2e3bec8c5ef5cb882590d
[ "Apache-2.0" ]
316
2018-04-03T14:25:52.000Z
2022-03-25T10:41:29.000Z
""" Dot Plot ========= _thumb: .2, .8 _example_title: Plot distribution. """ import matplotlib.pyplot as plt import numpy as np import arviz as az az.style.use("arviz-darkgrid") data = np.random.normal(0, 1, 1000) az.plot_dot(data, dotcolor="C1", point_interval=True, figsize=(12, 6)) plt.show()
15.842105
70
0.69103
dedeaccf1b8d4bb294ba8b9e2278d86179d43f0e
405
py
Python
kattis/solutions/alphabetspam.py
yifeng-pan/competitive_programming
c59edb1e08aa2db2158a814e3d34f4302658d98e
[ "Unlicense" ]
null
null
null
kattis/solutions/alphabetspam.py
yifeng-pan/competitive_programming
c59edb1e08aa2db2158a814e3d34f4302658d98e
[ "Unlicense" ]
null
null
null
kattis/solutions/alphabetspam.py
yifeng-pan/competitive_programming
c59edb1e08aa2db2158a814e3d34f4302658d98e
[ "Unlicense" ]
null
null
null
# https://open.kattis.com/problems/alphabetspam import sys import math xs = input() white = 0 lower = 0 higher =0 other = 0 for i in xs: if i == '_': white += 1 elif ('a' <= i) & (i <= 'z'): lower += 1 elif ('A' <= i) & (i <= "Z"): higher += 1 else: other += 1 print(...
15.576923
47
0.511111
dee0061d48e6e49cac68657f95ed5ac4927eaa8e
3,813
py
Python
src/chain_orientation_three_vars_symbolic.py
Scriddie/Varsortability
357213d5ceefb6362060c56e12c18b41dc689306
[ "MIT" ]
4
2021-12-08T07:54:00.000Z
2022-03-09T07:55:21.000Z
src/chain_orientation_three_vars_symbolic.py
Scriddie/Varsortability
357213d5ceefb6362060c56e12c18b41dc689306
[ "MIT" ]
null
null
null
src/chain_orientation_three_vars_symbolic.py
Scriddie/Varsortability
357213d5ceefb6362060c56e12c18b41dc689306
[ "MIT" ]
1
2022-03-09T07:55:43.000Z
2022-03-09T07:55:43.000Z
import numpy as np from sympy import simplify, sqrt, symbols from sympy.stats import Normal, covariance as cov, variance as var if __name__ == "__main__": ab, bc, a, b, c = symbols([ "beta_{A_to_B}", "beta_{B_to_C}", "sigma_A", "sigma_B", "sigma_C"]) Na = Normal('Na',...
28.455224
69
0.441385
dee00922a67f6dff4732cf526028648896d0fc92
2,290
py
Python
Phototweet.py
sbamueller/RasperryPi_BildFeinstaub
3666db384ead64893b3c548065aa31cef6c126af
[ "Apache-2.0" ]
null
null
null
Phototweet.py
sbamueller/RasperryPi_BildFeinstaub
3666db384ead64893b3c548065aa31cef6c126af
[ "Apache-2.0" ]
null
null
null
Phototweet.py
sbamueller/RasperryPi_BildFeinstaub
3666db384ead64893b3c548065aa31cef6c126af
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2.7 # coding=<UTF-8> # tweetpic.py take a photo with the Pi camera and tweet it # by Alex Eames http://raspi.tv/?p=5918 import tweepy from subprocess import call from datetime import datetime import requests import json i = datetime.now() #take time and date for filename no...
31.369863
80
0.691266
dee0dfeab71167aee2a17e14945c71c0e31e66be
1,762
py
Python
jaffalearn/logging.py
tqbl/jaffalearn
a5bb79fcb3e84fd6e17b6356429e5885386a5a58
[ "0BSD" ]
null
null
null
jaffalearn/logging.py
tqbl/jaffalearn
a5bb79fcb3e84fd6e17b6356429e5885386a5a58
[ "0BSD" ]
null
null
null
jaffalearn/logging.py
tqbl/jaffalearn
a5bb79fcb3e84fd6e17b6356429e5885386a5a58
[ "0BSD" ]
null
null
null
from pathlib import Path import pandas as pd from torch.utils.tensorboard import SummaryWriter
30.37931
70
0.605562