hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
20c83995292e682498e01d8809458f2de8d3b1a0
1,875
py
Python
faculty/clients/auth.py
jkeelan/faculty
3cf50f243fba1bfe7a346de88654d3616ac35b15
[ "Apache-2.0" ]
null
null
null
faculty/clients/auth.py
jkeelan/faculty
3cf50f243fba1bfe7a346de88654d3616ac35b15
[ "Apache-2.0" ]
null
null
null
faculty/clients/auth.py
jkeelan/faculty
3cf50f243fba1bfe7a346de88654d3616ac35b15
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 Faculty Science Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
30.241935
74
0.691733
1,244
0.663467
0
0
0
0
0
0
1,518
0.8096
20c8dc629ba478e2775bf9fa36b8d56bb2d26c1d
2,612
py
Python
ward_mapping/migrations/0001_initial.py
Suraj1127/ward-mapping-application
53fa39bab875ca47fdab814fd28ea0b7d2086c15
[ "MIT" ]
1
2019-05-16T04:08:40.000Z
2019-05-16T04:08:40.000Z
ward_mapping/migrations/0001_initial.py
Suraj1127/ward-mapping-application
53fa39bab875ca47fdab814fd28ea0b7d2086c15
[ "MIT" ]
null
null
null
ward_mapping/migrations/0001_initial.py
Suraj1127/ward-mapping-application
53fa39bab875ca47fdab814fd28ea0b7d2086c15
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-05-15 16:43 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Map2011', fields=[ ('id', models.AutoField(au...
46.642857
114
0.584227
2,521
0.965161
0
0
0
0
0
0
483
0.184916
20ca4306616ba4229666606128bb772fe88420f6
2,704
py
Python
hangingart/space.py
IanRichardDavies/HangingArt
94f6321c6e3bd6c73d479a33b6b18d3bfbaf371a
[ "MIT" ]
null
null
null
hangingart/space.py
IanRichardDavies/HangingArt
94f6321c6e3bd6c73d479a33b6b18d3bfbaf371a
[ "MIT" ]
null
null
null
hangingart/space.py
IanRichardDavies/HangingArt
94f6321c6e3bd6c73d479a33b6b18d3bfbaf371a
[ "MIT" ]
null
null
null
""" Module concerning Space objects """ # Python Libraries # First Party Imports class Space: """ Class holding logic for each individual surface upon which art can be hung. #TODO: more documentation """ def __init__( self, max_hor_dim: float = 0.0, min_hor_dim: float...
29.714286
67
0.566938
2,620
0.968935
0
0
0
0
0
0
551
0.203772
20cc5934d839eb06728df2e30f577167bc2cdc91
5,443
py
Python
main.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
1
2017-09-07T22:47:52.000Z
2017-09-07T22:47:52.000Z
main.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
null
null
null
main.py
yycho0108/2048_tf
b29a8a20d051a464814957e153ea7c099576bc0a
[ "MIT" ]
1
2020-04-12T16:12:20.000Z
2020-04-12T16:12:20.000Z
#!/usr/bin/python import sys import numpy as np import tensorflow as tf from memory import Memory, MultiMemory from qnet import * from layers import * from game import Game ## Load Parameters gamma = .99 #Discount factor. num_episodes = 10000 #Total number of episodes to train network for. test_episodes = 200 #Total...
31.645349
112
0.570825
0
0
0
0
0
0
0
0
929
0.170678
20cca36f0660a5cec8d40a240e5c97178d31a054
5,511
py
Python
predict.py
ciampluca/counting_perineuronal_nets
29463a4810b74943ee5234673e9e0816716b7fee
[ "Apache-2.0" ]
6
2021-12-16T13:47:56.000Z
2022-02-05T09:49:37.000Z
predict.py
ciampluca/counting_perineuronal_nets
29463a4810b74943ee5234673e9e0816716b7fee
[ "Apache-2.0" ]
1
2021-06-28T17:09:48.000Z
2021-06-28T18:58:04.000Z
predict.py
ciampluca/counting_perineuronal_nets
29463a4810b74943ee5234673e9e0816716b7fee
[ "Apache-2.0" ]
null
null
null
import argparse from pathlib import Path import hydra from omegaconf import OmegaConf import torch from torch.utils.data import DataLoader from tqdm import tqdm from datasets.patched_datasets import PatchedMultiImageDataset, RandomAccessMultiImageDataset @torch.no_grad() def score_patches(loader, model, device, cfg)...
43.054688
141
0.678098
0
0
0
0
604
0.109599
0
0
1,313
0.238251
20cda404e20b8445bfe6243758a4bf304606f130
375
py
Python
test/test.py
innovate-invent/configutator
372b45c44a10171b8518e61f2a7974969304c33a
[ "MIT" ]
null
null
null
test/test.py
innovate-invent/configutator
372b45c44a10171b8518e61f2a7974969304c33a
[ "MIT" ]
1
2017-09-22T05:52:54.000Z
2017-09-22T05:52:54.000Z
test/test.py
innovate-invent/configutator
372b45c44a10171b8518e61f2a7974969304c33a
[ "MIT" ]
null
null
null
from configutator import ConfigMap, ArgMap, EnvMap, loadConfig import sys def test(param1: int, param2: str): """ This is a test :param param1: An integer :param param2: A string :return: Print the params """ print(param1, param2) if __name__ == '__main__': for argMap in loadConfig(sys...
22.058824
62
0.642667
0
0
0
0
0
0
0
0
134
0.357333
20cdadc43f7f0fbddcc40c1c7b51c46475d844b7
2,384
py
Python
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
1
2019-12-16T16:45:11.000Z
2019-12-16T16:45:11.000Z
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
3
2021-06-04T22:05:06.000Z
2021-09-22T18:05:05.000Z
app/ecommerce/admin.py
nguyenanhtuan21/ecommerce-django
df29b31073b8e24ae9fbb294ca0c3ba8c81c09ae
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Brand, Product, Profile, Instagram, OrderItem,Order from django.utils.html import format_html # Register your models here. def make_published(modeladmin, request, queryset): queryset.update(name='Váy') make_published.short_description = "Mark selected stories as...
40.40678
149
0.707215
1,777
0.745073
0
0
0
0
0
0
766
0.321174
20cdcbc31867bb9709b928a4acae70fbdca1641b
3,211
py
Python
util/dates.py
cumanachao/utopia-crm
6d648971c427ca9f380b15ed0ceaf5767b88e8b9
[ "BSD-3-Clause" ]
13
2020-12-14T19:56:04.000Z
2021-11-06T13:24:48.000Z
util/dates.py
cumanachao/utopia-crm
6d648971c427ca9f380b15ed0ceaf5767b88e8b9
[ "BSD-3-Clause" ]
5
2020-12-14T19:56:30.000Z
2021-09-22T22:09:39.000Z
util/dates.py
cumanachao/utopia-crm
6d648971c427ca9f380b15ed0ceaf5767b88e8b9
[ "BSD-3-Clause" ]
3
2021-03-24T03:55:08.000Z
2022-01-13T15:22:34.000Z
import calendar from datetime import date, datetime, timedelta from time import localtime from django.utils.translation import ugettext_lazy as _ def add_business_days(from_date, add_days): """ This is just used to add business days to a function. Should be moved to util. """ business_days_to_add = ad...
30.875
116
0.638742
0
0
0
0
0
0
0
0
886
0.275927
20cfca94bf1866157bf1f47a272c02db1e2ee2a1
1,211
py
Python
leetcode/9isPalindrome.py
wanglingyun/interview-questions
41aad1146c1cf8cfff741a0127ce973733fdcac6
[ "Apache-2.0" ]
null
null
null
leetcode/9isPalindrome.py
wanglingyun/interview-questions
41aad1146c1cf8cfff741a0127ce973733fdcac6
[ "Apache-2.0" ]
null
null
null
leetcode/9isPalindrome.py
wanglingyun/interview-questions
41aad1146c1cf8cfff741a0127ce973733fdcac6
[ "Apache-2.0" ]
null
null
null
# Definition for singly-linked list. import unittest import math class TestClass(unittest.TestCase): def isPalindrome(self, x: int) -> bool: if(x<0): return False rx = self.reverseNum(x) return rx == x def reverseNum(self,x: int): rx = 0 while x>=1: ...
22.425926
44
0.523534
1,097
0.905863
0
0
0
0
0
0
46
0.037985
20d0880440126c65c69df8c4573d843710e04d7e
433
py
Python
polyglot/utils.py
riccardoFasan/deeply
b025d2b85282d6934edc8c2f824ca9ad68a8ba08
[ "MIT" ]
2
2022-03-14T17:47:20.000Z
2022-03-20T09:51:27.000Z
polyglot/utils.py
riccardoFasan/deepl-translator-script
b025d2b85282d6934edc8c2f824ca9ad68a8ba08
[ "MIT" ]
1
2022-03-31T07:00:28.000Z
2022-03-31T07:01:05.000Z
polyglot/utils.py
riccardoFasan/deepl-translator-script
b025d2b85282d6934edc8c2f824ca9ad68a8ba08
[ "MIT" ]
1
2021-12-28T09:21:31.000Z
2021-12-28T09:21:31.000Z
from typing import Any, Iterator, Optional import colorama DownloadedDocumentStream = Optional[Iterator[Any]] def get_truncated_text(text: str, limit: int) -> str: return text[:limit] + "..." if len(text) > limit else text def get_color_by_percentage(percentage: int) -> str: if percentage > 90: retu...
25.470588
62
0.706697
0
0
0
0
0
0
0
0
5
0.011547
20d29550aa2f57d0c74fa67f5970acb95e350f79
2,771
py
Python
LocadoraDeFilmes/funcoes_dos_filmes.py
JoaoVitorBernardino/Sistema-de-locadora-de-filmes
cf0cd0d8c9ad49fe48ab14626f241c4e0bb39846
[ "MIT" ]
null
null
null
LocadoraDeFilmes/funcoes_dos_filmes.py
JoaoVitorBernardino/Sistema-de-locadora-de-filmes
cf0cd0d8c9ad49fe48ab14626f241c4e0bb39846
[ "MIT" ]
null
null
null
LocadoraDeFilmes/funcoes_dos_filmes.py
JoaoVitorBernardino/Sistema-de-locadora-de-filmes
cf0cd0d8c9ad49fe48ab14626f241c4e0bb39846
[ "MIT" ]
null
null
null
import os from DataBase.dados_filmes import * from DataBase.dados_aluguel import * def cadastrar_filme(): os.system('cls' if os.name == 'nt' else 'clear') nome = input('Digite o nome do filme: ') ano = input('Digite o ano de lançamento do filme: ') codigo = input('Digite o código do filme: ') filme...
32.6
103
0.582461
0
0
0
0
0
0
0
0
897
0.321736
20d2eced67b2dc37a106dd6188cfaac2ce3f1efd
599
py
Python
find-optional-modules/delete-pyc.py
berkut-174/salt-windows-msi
3a0b9c891db95dfcfc5daa518305e1a5cc20d1b0
[ "Apache-2.0" ]
null
null
null
find-optional-modules/delete-pyc.py
berkut-174/salt-windows-msi
3a0b9c891db95dfcfc5daa518305e1a5cc20d1b0
[ "Apache-2.0" ]
null
null
null
find-optional-modules/delete-pyc.py
berkut-174/salt-windows-msi
3a0b9c891db95dfcfc5daa518305e1a5cc20d1b0
[ "Apache-2.0" ]
null
null
null
''' delete pyc except salt-minion.pyc ''' from __future__ import print_function import os SRCDIR = r'c:\salt' def action(start_path): skipped = 0 deleted = 0 for dirpath, dirnames, filenames in os.walk(start_path): for f in filenames: fp = os.path.join(dirpath, f) if fp.en...
23.038462
60
0.534224
0
0
0
0
0
0
0
0
98
0.163606
20d36a5f003e151ad485d22dfd0ea098ae87f73e
387
py
Python
DeepLearningAI/notification.py
philson-philip/harp
8e38573cad1c3e16c062044a8f011658293d1531
[ "MIT" ]
1
2019-02-08T20:14:14.000Z
2019-02-08T20:14:14.000Z
DeepLearningAI/notification.py
philson-philip/harp
8e38573cad1c3e16c062044a8f011658293d1531
[ "MIT" ]
6
2021-03-18T22:10:34.000Z
2022-03-11T23:40:16.000Z
DeepLearningAI/notification.py
philson-philip/harp
8e38573cad1c3e16c062044a8f011658293d1531
[ "MIT" ]
3
2019-02-08T20:14:23.000Z
2019-03-10T06:10:07.000Z
from win10toast import ToastNotifier import time def Notify(MessageTitle,MessageBody): toaster = ToastNotifier() toaster.show_toast(MessageTitle, MessageBody, icon_path="logo.ico", duration=3,threaded=True) from playsound import playsound playsound('Notifi...
35.181818
53
0.689922
0
0
0
0
0
0
0
0
29
0.074935
20d57f78d8a0255a09b457d1362b139f81bf6db0
2,883
py
Python
datasets/cifar10.py
killianlevacher/defenseInvGAN-src
8fa398536773c5bc00c906562d2d9359572b8157
[ "MIT" ]
14
2019-12-12T11:28:18.000Z
2022-03-09T11:56:04.000Z
datasets/cifar10.py
killianlevacher/defenseInvGAN-src
8fa398536773c5bc00c906562d2d9359572b8157
[ "MIT" ]
7
2019-12-16T22:20:01.000Z
2022-02-10T00:45:21.000Z
datasets/cifar10.py
killianlevacher/defenseInvGAN-src
8fa398536773c5bc00c906562d2d9359572b8157
[ "MIT" ]
2
2020-04-01T09:02:00.000Z
2021-08-01T14:27:11.000Z
import os import numpy as np import cPickle as pickle from datasets.dataset import Dataset class Cifar10(Dataset): """Implements the Dataset class to handle CIFAR-10. Attributes: y_dim: The dimension of label vectors (number of classes). split_data: A dictionary of { ...
30.347368
101
0.534513
2,789
0.967395
0
0
0
0
0
0
979
0.339577
20d64baaf85f6901221960787dd47f6f3ae74d9b
759
py
Python
tests/test_collide.py
csayres/kaiju
0b4ca4fab5322351b97b8316b2d755d91bc05c16
[ "BSD-3-Clause" ]
null
null
null
tests/test_collide.py
csayres/kaiju
0b4ca4fab5322351b97b8316b2d755d91bc05c16
[ "BSD-3-Clause" ]
null
null
null
tests/test_collide.py
csayres/kaiju
0b4ca4fab5322351b97b8316b2d755d91bc05c16
[ "BSD-3-Clause" ]
null
null
null
import pytest import kaiju from kaiju.robotGrid import RobotGridNominal from kaiju import utils def test_collide(plot=False): # should make a grid rg = RobotGridNominal() collidedRobotIDs = [] for rid, r in rg.robotDict.items(): if r.holeID == "R-13C1": r.setAlphaBeta(90,0) coll...
24.483871
104
0.648221
0
0
0
0
0
0
0
0
64
0.084321
20d675e25832cd9793c5f67b4cb83f944dbf455c
2,839
py
Python
Lib/site-packages/psycopg/__init__.py
RosaSineSpinis/twitter_bitcon_tag_analyser
3311022b6fd629ce85f0c4fa0516e310bed05d74
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/psycopg/__init__.py
RosaSineSpinis/twitter_bitcon_tag_analyser
3311022b6fd629ce85f0c4fa0516e310bed05d74
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/psycopg/__init__.py
RosaSineSpinis/twitter_bitcon_tag_analyser
3311022b6fd629ce85f0c4fa0516e310bed05d74
[ "bzip2-1.0.6" ]
null
null
null
""" psycopg -- PostgreSQL database adapter for Python """ # Copyright (C) 2020-2021 The Psycopg Team import logging from . import pq # noqa: F401 import early to stabilize side effects from . import types from . import postgres from .copy import Copy, AsyncCopy from ._enums import IsolationLevel from .cursor import...
27.563107
76
0.738288
0
0
0
0
0
0
0
0
1,247
0.439239
20d72cb6f933da26640aaaa4fbce23b2cbb317bd
434
py
Python
Datasets/Terrain/us_ned_topo_diversity.py
liuxb555/earthengine-py-examples
cff5d154b15a17d6a241e3c003b7fc9a2c5903f3
[ "MIT" ]
75
2020-06-09T14:40:11.000Z
2022-03-07T08:38:10.000Z
Datasets/Terrain/us_ned_topo_diversity.py
gentaprekazi/earthengine-py-examples
76ae8e071a71b343f5e464077afa5b0ed2f9314c
[ "MIT" ]
1
2022-03-15T02:23:45.000Z
2022-03-15T02:23:45.000Z
Datasets/Terrain/us_ned_topo_diversity.py
gentaprekazi/earthengine-py-examples
76ae8e071a71b343f5e464077afa5b0ed2f9314c
[ "MIT" ]
35
2020-06-12T23:23:48.000Z
2021-11-15T17:34:50.000Z
import ee import geemap # Create a map centered at (lat, lon). Map = geemap.Map(center=[40, -100], zoom=4) dataset = ee.Image('CSP/ERGo/1_0/US/topoDiversity') usTopographicDiversity = dataset.select('constant') usTopographicDiversityVis = { 'min': 0.0, 'max': 1.0, } Map.setCenter(-111.313, 39.724, 6) Map.addLaye...
21.7
54
0.71659
0
0
0
0
0
0
0
0
133
0.306452
20d89580fd6577e22f09078f9105ed4eb217404f
6,139
py
Python
cnn_to_mlp.py
minimario/CNN-Cert
0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c
[ "Apache-2.0" ]
54
2020-09-09T12:43:43.000Z
2022-03-17T17:31:19.000Z
cnn_to_mlp.py
jinzh154/CNN-Cert
0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c
[ "Apache-2.0" ]
9
2019-04-26T15:33:21.000Z
2022-02-17T13:20:47.000Z
cnn_to_mlp.py
jinzh154/CNN-Cert
0dd60a8e8277cfecef3ab4d1ed055e62f92fd71c
[ "Apache-2.0" ]
16
2019-02-17T03:02:36.000Z
2021-05-17T13:59:07.000Z
""" cnn_to_mlp.py Converts CNNs to MLP networks Copyright (C) 2018, Akhilan Boopathy <akhilan@mit.edu> Lily Weng <twweng@mit.edu> Pin-Yu Chen <Pin-Yu.Chen@ibm.com> Sijia Liu <Sijia.Liu@ibm.com> Luca Daniel <dluca@mit.edu> """ from tenso...
42.93007
127
0.620948
0
0
0
0
0
0
0
0
1,971
0.321062
20da2372e14378343601425914ba9a4d487c8b91
5,328
py
Python
libsymple.py
aoeftiger/PySymple
00b887a59a107426d940aeb1e42a30a521b5729d
[ "MIT" ]
1
2019-12-18T15:30:19.000Z
2019-12-18T15:30:19.000Z
libsymple.py
aoeftiger/PySymple
00b887a59a107426d940aeb1e42a30a521b5729d
[ "MIT" ]
null
null
null
libsymple.py
aoeftiger/PySymple
00b887a59a107426d940aeb1e42a30a521b5729d
[ "MIT" ]
null
null
null
''' Copyright 2014 by Adrian Oeftiger, oeftiger@cern.ch This module provides various numerical integration methods for Hamiltonian vector fields on (currently two-dimensional) phase space. The integrators are separated according to symplecticity. The method is_symple() is provided to check for symplecticity of a given...
45.152542
77
0.647147
3,974
0.745871
0
0
3,158
0.592718
0
0
2,219
0.416479
20dc7c2e8b065dfa920a34dee44b90c37f1c51a5
256
py
Python
Rasp_Pi_2018/should_i_water/water_plants_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
2
2018-05-20T00:26:31.000Z
2018-06-13T16:22:48.000Z
Rasp_Pi_2018/should_i_water/water_plants_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
null
null
null
Rasp_Pi_2018/should_i_water/water_plants_task.py
BitKnitting/should_I_water
8d849671892b7bbc9e947e0ba041c4c3527b6bbd
[ "MIT" ]
null
null
null
import os import sys LIB_PATH = os.environ['LADYBUG_LIB_PATH'] sys.path.append(LIB_PATH) from water_plants_lib import WaterPlants ############### if __name__ == "__main__": water_plants = WaterPlants() water_plants.send_start_watering_packets()
19.692308
46
0.734375
0
0
0
0
0
0
0
0
43
0.167969
20de1adfff69feef6f33b16295086d0f5529ee20
2,055
py
Python
undp-transparency-portal-be/undp_admin/api_views.py
undp/transparencyportal
244fbb82c05d119f0acbe7f5efbb44572d9150a0
[ "CC-BY-3.0" ]
5
2019-09-10T15:05:18.000Z
2022-02-02T02:53:32.000Z
undp-transparency-portal-be/undp_admin/api_views.py
undp/transparencyportal
244fbb82c05d119f0acbe7f5efbb44572d9150a0
[ "CC-BY-3.0" ]
4
2019-04-02T15:02:20.000Z
2021-11-09T10:55:32.000Z
undp-transparency-portal-be/undp_admin/api_views.py
undp/transparencyportal
244fbb82c05d119f0acbe7f5efbb44572d9150a0
[ "CC-BY-3.0" ]
2
2021-09-01T14:30:29.000Z
2021-09-01T14:32:57.000Z
from django.shortcuts import render # Create your views here. from rest_framework.views import APIView from rest_framework.viewsets import GenericViewSet from undp_admin.models import AboutUs, AdminLog, JOBS, LOG_STATUSES from undp_admin.serializers import AboutUsSerializer from utilities.mixins import ResponseViewMi...
39.519231
96
0.697324
1,600
0.778589
0
0
0
0
0
0
293
0.142579
20df1df6d17c6f6ed2e728f416d617232f800db9
2,681
py
Python
COVIDSafepassage/passsystem/admin.py
VICS-CORE/safepassage_server
58bc04dbfa55430c0218567211e5259de77518ae
[ "MIT" ]
null
null
null
COVIDSafepassage/passsystem/admin.py
VICS-CORE/safepassage_server
58bc04dbfa55430c0218567211e5259de77518ae
[ "MIT" ]
8
2020-04-25T09:42:25.000Z
2022-03-12T00:23:32.000Z
COVIDSafepassage/passsystem/admin.py
VICS-CORE/safepassage_server
58bc04dbfa55430c0218567211e5259de77518ae
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Pass, User, Organisation, Roles, Vehicle, Identity, Team from treebeard.admin import TreeAdmin from treebeard.forms import movenodeform_factory class AdminUserView(admin.ModelAdmin): model = User readonly_fields = ('user_id',) list_display = ...
37.760563
121
0.70981
2,109
0.786647
0
0
0
0
0
0
1,134
0.422977
20df31b6f10759e65d52beef5fda7d1f46c80d54
1,592
py
Python
python/climate_ae/data_generator/utils.py
kueddelmaier/latent-linear-adjustment-autoencoders
f180732695a6c2abd8a9ad9d8cfeed2f82f047bb
[ "MIT" ]
3
2020-10-29T19:08:27.000Z
2021-08-14T09:19:48.000Z
python/climate_ae/data_generator/utils.py
kueddelmaier/latent-linear-adjustment-autoencoders
f180732695a6c2abd8a9ad9d8cfeed2f82f047bb
[ "MIT" ]
6
2020-11-13T19:01:07.000Z
2022-01-04T09:34:05.000Z
python/climate_ae/data_generator/utils.py
kueddelmaier/latent-linear-adjustment-autoencoders
f180732695a6c2abd8a9ad9d8cfeed2f82f047bb
[ "MIT" ]
1
2021-03-01T15:28:56.000Z
2021-03-01T15:28:56.000Z
import numpy as np import tensorflow as tf def parse_dataset(example_proto, img_size_h, img_size_w, img_size_d, dim_anno1, dim_anno2, dim_anno3, dtype_img=tf.float64): features = { 'inputs': tf.io.FixedLenFeature(shape=[], dtype=tf.string), 'annotations': tf.io.FixedLenFeature(shape=[dim_anno...
41.894737
84
0.704774
0
0
0
0
0
0
0
0
136
0.085427
20df33ace10cb4d9d76d4f800c169534a71238a5
78
py
Python
uci_janggi/__init__.py
sprinter89/uci_janggi
1acdf8db9a186eb44be6c462329c9965f5952f7e
[ "MIT" ]
null
null
null
uci_janggi/__init__.py
sprinter89/uci_janggi
1acdf8db9a186eb44be6c462329c9965f5952f7e
[ "MIT" ]
null
null
null
uci_janggi/__init__.py
sprinter89/uci_janggi
1acdf8db9a186eb44be6c462329c9965f5952f7e
[ "MIT" ]
null
null
null
#this file does nothing except informing pypi that uci_janggi.py is a package
39
77
0.820513
0
0
0
0
0
0
0
0
77
0.987179
20e0cbef167c1c068cc1264bcbdca5e71f4391df
8,251
py
Python
app/app/api/views.py
dtcooper/crazyarms
71ea0e58958233daaceb8750043f74ef1a141079
[ "MIT" ]
15
2021-01-18T17:16:51.000Z
2022-03-28T22:16:19.000Z
app/app/api/views.py
dtcooper/carb
71ea0e58958233daaceb8750043f74ef1a141079
[ "MIT" ]
4
2021-03-14T16:28:40.000Z
2021-03-31T16:48:49.000Z
app/app/api/views.py
dtcooper/carb
71ea0e58958233daaceb8750043f74ef1a141079
[ "MIT" ]
3
2021-07-15T02:24:19.000Z
2022-03-18T11:50:05.000Z
import json import logging from django.conf import settings from django.contrib.auth import authenticate from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, JsonResponse from django.utils.decorators import method_decorator from django.views import View from django.views.decorators.csrf...
37
120
0.5769
7,566
0.91698
0
0
1,519
0.184099
0
0
1,533
0.185796
20e14f7ef604899504925d65072a7843fff0a6db
40,435
py
Python
notebooks/Users/kasri@berkeley.edu/final_project_team25_centrality.py
superli3/ucb-w261-sp2021-team25
102e9859e878a54f84554e66425097217a0485e7
[ "Apache-2.0" ]
null
null
null
notebooks/Users/kasri@berkeley.edu/final_project_team25_centrality.py
superli3/ucb-w261-sp2021-team25
102e9859e878a54f84554e66425097217a0485e7
[ "Apache-2.0" ]
null
null
null
notebooks/Users/kasri@berkeley.edu/final_project_team25_centrality.py
superli3/ucb-w261-sp2021-team25
102e9859e878a54f84554e66425097217a0485e7
[ "Apache-2.0" ]
1
2021-04-19T20:41:48.000Z
2021-04-19T20:41:48.000Z
// Databricks notebook source // MAGIC %md // MAGIC // MAGIC W261 Final Project // MAGIC ------------------ // MAGIC ## Graph Centrality for Airline Delay Prediction // MAGIC // MAGIC #### Justin Trobec, Jeff Li, Sonya Chen, Karthik Srinivasan // MAGIC #### Spring 2021, Section 5 // MAGIC #### Group 25 // COMMAN...
35.130321
656
0.679609
0
0
0
0
0
0
0
0
15,190
0.375665
20e282771bc57317c73491a2286791812cf8bb2b
2,715
py
Python
microsim/column_names.py
dabreegster/RAMP-UA
04b7473aed441080ee10b6f68eb8b9135dac6879
[ "MIT" ]
10
2020-07-01T15:04:28.000Z
2021-11-01T17:04:27.000Z
microsim/column_names.py
dabreegster/RAMP-UA
04b7473aed441080ee10b6f68eb8b9135dac6879
[ "MIT" ]
229
2020-05-12T12:21:57.000Z
2022-03-22T09:40:12.000Z
microsim/column_names.py
dabreegster/RAMP-UA
04b7473aed441080ee10b6f68eb8b9135dac6879
[ "MIT" ]
10
2020-04-29T16:17:28.000Z
2021-12-23T13:11:30.000Z
class ColumnNames: """Used to record standard dataframe column names used throughout""" LOCATION_DANGER = "Danger" # Danger associated with a location LOCATION_NAME = "Location_Name" # Name of a location LOCATION_ID = "ID" # Unique ID for each location # Define the different types of activities...
46.810345
115
0.704236
2,715
1
0
0
0
0
0
0
1,661
0.611786
20e4504512f6f3017cd6e385cfabae07f81ee87a
382
py
Python
datasets/script/ds_cut_last.py
PoCInnovation/SmartShark
2cf5eb32306fb5bd88972f44331322ae58d4bb2c
[ "MIT" ]
26
2020-11-26T13:05:31.000Z
2022-03-22T11:04:41.000Z
datasets/script/ds_cut_last.py
PoCFrance/SmartShark
2cf5eb32306fb5bd88972f44331322ae58d4bb2c
[ "MIT" ]
4
2020-09-26T16:30:47.000Z
2022-03-06T18:02:52.000Z
datasets/script/ds_cut_last.py
PoCFrance/SmartShark
2cf5eb32306fb5bd88972f44331322ae58d4bb2c
[ "MIT" ]
9
2021-01-19T16:44:23.000Z
2022-02-15T21:06:29.000Z
fichier = open("/run/media/Thytu/TOSHIBA EXT/PoC/Smartshark/DS/ds_benign_cleaned_div_3.csv", "r") pos = 12 #pos to flatten def flat_line(line, target): index = 0 pos = 0 for l in line: pos += 1 if (l == ','): index += 1 if index == target: break; print(l...
21.222222
97
0.552356
0
0
0
0
0
0
0
0
97
0.253927
20e53640a34afd90bd7994b855aba3b499daef58
835
py
Python
Scripts/python/setup_k8s_thirdparty.py
SnowPhoenix0105/ToolSite
c5084010665434711867b1b5cd4915fe79ab2c7b
[ "MIT" ]
null
null
null
Scripts/python/setup_k8s_thirdparty.py
SnowPhoenix0105/ToolSite
c5084010665434711867b1b5cd4915fe79ab2c7b
[ "MIT" ]
7
2021-08-28T09:27:39.000Z
2021-09-26T15:35:13.000Z
Scripts/python/setup_k8s_thirdparty.py
SnowPhoenix0105/ToolSite
c5084010665434711867b1b5cd4915fe79ab2c7b
[ "MIT" ]
null
null
null
from python.utils.cmd_exec import cmd_exec import json import logging from python.utils.path import Path, pcat from logging import DEBUG from python.utils.log import config_logging _logger = logging.getLogger(__name__) def setup_k8s_thirdparty(): list_path = Path.SCRIPTS_CONFIG_K8S_THIRD_PARTY_LIST _logger....
29.821429
65
0.728144
0
0
0
0
0
0
0
0
109
0.130539
20e5596dc72fd005174ca47cd9087713926d0058
1,506
py
Python
utils/callbacks.py
YossiAsher/utils
c389d061378fca0b5495691c999f93adfa882faf
[ "MIT" ]
null
null
null
utils/callbacks.py
YossiAsher/utils
c389d061378fca0b5495691c999f93adfa882faf
[ "MIT" ]
null
null
null
utils/callbacks.py
YossiAsher/utils
c389d061378fca0b5495691c999f93adfa882faf
[ "MIT" ]
null
null
null
import os.path import glob import wandb import numpy as np from tensorflow.keras.callbacks import Callback class ValLog(Callback): def __init__(self, dataset=None, table="predictions", project="svg-attention6", run=""): super().__init__() self.dataset = dataset self.table_name = table ...
40.702703
97
0.616866
1,395
0.926295
0
0
0
0
0
0
145
0.096282
20e603c9bd357a4fc46fca97e132ad4376a93633
12,680
py
Python
cirrocumulus/anndata_util.py
PfizerRD/cirrocumulus
c7ce0c8c3c246282046e6d373d60442af55d3f09
[ "BSD-3-Clause" ]
null
null
null
cirrocumulus/anndata_util.py
PfizerRD/cirrocumulus
c7ce0c8c3c246282046e6d373d60442af55d3f09
[ "BSD-3-Clause" ]
null
null
null
cirrocumulus/anndata_util.py
PfizerRD/cirrocumulus
c7ce0c8c3c246282046e6d373d60442af55d3f09
[ "BSD-3-Clause" ]
1
2022-02-06T23:08:26.000Z
2022-02-06T23:08:26.000Z
import anndata import numpy as np import pandas as pd DATA_TYPE_MODULE = 'module' DATA_TYPE_UNS_KEY = 'data_type' ADATA_MODULE_UNS_KEY = 'anndata_module' def get_base(adata): base = None if 'log1p' in adata.uns and adata.uns['log1p']['base'] is not None: base = adata.uns['log1p'][base] return bas...
41.168831
135
0.596688
0
0
0
0
0
0
0
0
2,197
0.173265
20e63d705639da49401b6833ac2f7010dc3cf8e6
23,612
py
Python
apps/cumulative_gdd.py
ua-snap/usda-dash
caeab072728a5c78b63b1547985f3e6476b348fa
[ "MIT" ]
null
null
null
apps/cumulative_gdd.py
ua-snap/usda-dash
caeab072728a5c78b63b1547985f3e6476b348fa
[ "MIT" ]
17
2020-01-22T00:15:52.000Z
2021-11-04T21:35:37.000Z
apps/cumulative_gdd.py
ua-snap/usda-dash
caeab072728a5c78b63b1547985f3e6476b348fa
[ "MIT" ]
1
2022-03-31T04:39:34.000Z
2022-03-31T04:39:34.000Z
#!/usr/bin/env python3 """ Template for SNAP Dash apps. """ import os import json import plotly.graph_objs as go import xarray as xr import dash import dash_core_components as dcc import dash_html_components as html import dash_dangerously_set_inner_html as ddsih import dash_table import pandas as pd import geopandas ...
34.825959
3,692
0.380103
0
0
0
0
14,938
0.631895
0
0
10,980
0.464467
20e69aa1204b71354dd606f9dd415d38b56a677a
15,298
py
Python
tests/integration/test_occ.py
aavcc/taiga-openshift
7c33284573ceed38f755b8159ad83f3f68d2f7cb
[ "MIT" ]
null
null
null
tests/integration/test_occ.py
aavcc/taiga-openshift
7c33284573ceed38f755b8159ad83f3f68d2f7cb
[ "MIT" ]
12
2019-11-25T14:08:32.000Z
2021-06-24T10:35:51.000Z
tests/integration/test_occ.py
threefoldtech/Threefold-Circles
cbc433796b25cf7af9a295af65d665a4a279e2d6
[ "Apache-2.0" ]
1
2018-06-07T10:58:15.000Z
2018-06-07T10:58:15.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz> # Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com> # Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com> # Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net> # This program is free software: you can r...
42.376731
88
0.664727
0
0
0
0
0
0
0
0
3,600
0.235294
20e7676617875b614527d964e3fa868094f4c605
4,450
py
Python
python-code/dlib-learning/face_reco_from_camera.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/dlib-learning/face_reco_from_camera.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/dlib-learning/face_reco_from_camera.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
# created at 2018-05-11 # updated at 2018-08-23 # support multi-faces now # By coneypo # Blog: http://www.cnblogs.com/AdaminXie # GitHub: https://github.com/coneypo/Dlib_face_recognition_from_camera import dlib # 人脸识别的库dlib import numpy as np # 数据处理的库numpy import cv2 # 图像处理的库OpenCv import pandas as p...
28.164557
120
0.634382
0
0
0
0
0
0
0
0
2,273
0.435608
20e848a5145974495ecc337b35a8d2b22c5a5616
340
py
Python
tpow/examples/check_read_rom.py
sken10/tpow
6accbfe133a41959c2d35d5c8401e622d4f9efc2
[ "MIT" ]
1
2020-10-31T05:37:41.000Z
2020-10-31T05:37:41.000Z
tpow/examples/check_read_rom.py
sken10/tpow
6accbfe133a41959c2d35d5c8401e622d4f9efc2
[ "MIT" ]
null
null
null
tpow/examples/check_read_rom.py
sken10/tpow
6accbfe133a41959c2d35d5c8401e622d4f9efc2
[ "MIT" ]
null
null
null
"""check_read_rom.py get ROMID of 1-wire device. assume only one 1-wire device on the bus. """ import tpow.usb9097 import tpow.device import cfg bus = tpow.usb9097.USB9097(cfg.com_port) # USB9097('COM3') id_little = tpow.device.read_rom(bus) id_big = [a for a in reversed(id_little)] print(" ".join(['%02X' % ord(a) ...
21.25
59
0.711765
0
0
0
0
0
0
0
0
122
0.358824
20e8ac2901c046279a37346f2a01171b0a59374c
1,522
py
Python
common/xrd-ui-tests-python/tests/xroad_trust_view_details_cs_ca/XroadTrustViewDetailsCsCa.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
3
2018-03-15T14:22:50.000Z
2021-11-08T10:30:35.000Z
common/xrd-ui-tests-python/tests/xroad_trust_view_details_cs_ca/XroadTrustViewDetailsCsCa.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
11
2017-04-06T09:25:41.000Z
2018-06-04T09:08:48.000Z
common/xrd-ui-tests-python/tests/xroad_trust_view_details_cs_ca/XroadTrustViewDetailsCsCa.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
20
2017-03-14T07:21:58.000Z
2019-05-21T09:26:30.000Z
# coding=utf-8 import unittest from main.maincontroller import MainController import view_management """ UC TRUST_02: View the Details of a Certification Service CA RIA URL: https://jira.ria.ee/browse/XTKB-185 Depends on finishing other test(s): Requires helper scenarios: X-Road version: 6.16.0 """ class Xroad...
31.708333
131
0.657687
1,212
0.795798
0
0
0
0
0
0
554
0.363756
20eb0a186ef36f16b32ac0c98a703bfa733a0d35
8,002
py
Python
test/test_jarsigner_sign_command.py
fullstaq-labs/venafi-codesigning-gitlab
0799ce7e6b74c8d1836a01b509dc5f50541356b3
[ "Apache-2.0" ]
null
null
null
test/test_jarsigner_sign_command.py
fullstaq-labs/venafi-codesigning-gitlab
0799ce7e6b74c8d1836a01b509dc5f50541356b3
[ "Apache-2.0" ]
1
2021-07-12T09:06:53.000Z
2021-07-12T09:06:53.000Z
test/test_jarsigner_sign_command.py
fullstaq-labs/venafi-codesigning-gitlab
0799ce7e6b74c8d1836a01b509dc5f50541356b3
[ "Apache-2.0" ]
null
null
null
from venafi_codesigning_gitlab_integration.jarsigner_sign_command import JarsignerSignConfig from venafi_codesigning_gitlab_integration.jarsigner_sign_command import JarsignerSignCommand from venafi_codesigning_gitlab_integration import utils import pytest import logging import subprocess import os import re fake_tpp_...
33.481172
97
0.676456
0
0
0
0
0
0
0
0
1,866
0.233192
20eb50420f20c4e8a8059ec57505d6d0d5ad5fae
1,602
py
Python
GreyNsights/utils.py
kamathhrishi/GreyNSights
9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f
[ "MIT" ]
19
2021-02-24T12:28:04.000Z
2021-10-06T11:55:46.000Z
GreyNsights/utils.py
kamathhrishi/GreyNSights
9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f
[ "MIT" ]
2
2021-08-11T01:25:14.000Z
2021-08-11T01:26:32.000Z
GreyNsights/utils.py
kamathhrishi/GreyNSights
9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f
[ "MIT" ]
null
null
null
# python dependencies import codecs import pickle import struct def pickle_string_to_obj(obj): return pickle.loads(codecs.decode(obj, "base64")) def get_encoded_obj(obj): return codecs.encode(pickle.dumps(obj), "base64").decode() def log_message(msg_type: str, message: str): """The default style of lo...
22.56338
72
0.637328
0
0
0
0
0
0
0
0
496
0.309613
20eced0df909101c4f435345f41c4866a1674f9a
138
py
Python
test/resources/inspectors/python/case27_using_requests.py
nihalshetty-boop/hyperstyle
9a6d53cd1ca220d97d296c0087056b5885b26281
[ "Apache-2.0" ]
18
2020-10-05T16:48:11.000Z
2022-03-22T04:15:38.000Z
test/resources/inspectors/python/case27_using_requests.py
nihalshetty-boop/hyperstyle
9a6d53cd1ca220d97d296c0087056b5885b26281
[ "Apache-2.0" ]
60
2020-10-05T17:01:05.000Z
2022-01-27T12:46:14.000Z
test/resources/inspectors/python/case27_using_requests.py
nihalshetty-boop/hyperstyle
9a6d53cd1ca220d97d296c0087056b5885b26281
[ "Apache-2.0" ]
6
2021-02-09T09:31:19.000Z
2021-08-13T07:45:51.000Z
import requests def do_search(bookstore_url, params): return requests.get(url=bookstore_url, params=params)
19.714286
42
0.652174
0
0
0
0
0
0
0
0
0
0
20ed1b39d69f2ba4a229353cc72ed388d06f0047
4,568
py
Python
scripts/location_map_report.py
xperylabhub/iLEAPP
fd1b301bf2094387f51ccdbd10ed233ce9abd687
[ "MIT" ]
null
null
null
scripts/location_map_report.py
xperylabhub/iLEAPP
fd1b301bf2094387f51ccdbd10ed233ce9abd687
[ "MIT" ]
null
null
null
scripts/location_map_report.py
xperylabhub/iLEAPP
fd1b301bf2094387f51ccdbd10ed233ce9abd687
[ "MIT" ]
null
null
null
# coding: utf-8 #Import the necessary Python modules import pandas as pd import folium from folium.plugins import TimestampedGeoJson from shapely.geometry import Point import os from datetime import datetime from branca.element import Template, MacroElement import html from scripts.location_map_constants import iLEAPP_...
35.968504
170
0.613835
0
0
0
0
0
0
0
0
869
0.190236
20eec783eef37492901442687717aaffec487075
48
py
Python
onebarangay_psql/statistics/__init__.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
onebarangay_psql/statistics/__init__.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
43
2022-02-07T00:18:35.000Z
2022-03-21T04:42:48.000Z
onebarangay_psql/statistics/__init__.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
"""Default init file for statistics package."""
24
47
0.729167
0
0
0
0
0
0
0
0
47
0.979167
20eeefc46871bc4a82ccda95a4d09005d4444a71
1,096
py
Python
src/BL/test/test_RandomNumber.py
yukiYamada/ThaGame
4f206303d60b5760452a7eab8700626657f3e39e
[ "MIT" ]
null
null
null
src/BL/test/test_RandomNumber.py
yukiYamada/ThaGame
4f206303d60b5760452a7eab8700626657f3e39e
[ "MIT" ]
null
null
null
src/BL/test/test_RandomNumber.py
yukiYamada/ThaGame
4f206303d60b5760452a7eab8700626657f3e39e
[ "MIT" ]
null
null
null
# third party modules import pytest # user modules from BL_main.RandomNumber import Number, Numbers, InvalidArgumentExceptionOfNumber def test_NumberClass_InvalidException_underNumber(): ''' Test argument. under number. ''' with pytest.raises(InvalidArgumentExceptionOfNumber): Number.create(1) ...
24.355556
82
0.667883
0
0
0
0
0
0
0
0
234
0.213504
20efb6e68d19a66f29b03a03d92401ec1cbcda69
6,185
py
Python
evaluate_ranking.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
1
2022-02-24T02:16:55.000Z
2022-02-24T02:16:55.000Z
evaluate_ranking.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
null
null
null
evaluate_ranking.py
aydindemircioglu/radFS
b50b2a78f7c7975751b699b6b74a2761f7fa3501
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python3 import json import seaborn as sns from matplotlib import cm from matplotlib.colors import ListedColormap, LinearSegmentedColormap import matplotlib.colors as colors from scipy.stats import spearmanr import pylab import scipy.cluster.hierarchy as sch from scipy.stats import pearsonr, friedmanchisqu...
30.46798
114
0.620049
0
0
0
0
0
0
0
0
1,035
0.16734
20f09232bbd39f5341bb954d6c3dd267beb0e85a
10,058
py
Python
venv/lib/python3.6/site-packages/ansible/module_utils/facts/hardware/aix.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/module_utils/facts/hardware/aix.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
ansible/ansible/module_utils/facts/hardware/aix.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that ...
39.754941
137
0.509644
9,158
0.910519
0
0
0
0
0
0
2,994
0.297673
20f0b9c08e120b15c6e37ccd433da0ddfa26dd09
1,148
py
Python
servicedirectory/src/sd-api/classes/urls.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
servicedirectory/src/sd-api/classes/urls.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
servicedirectory/src/sd-api/classes/urls.py
ealogar/servicedirectory
fb4f4bfa8b499b93c03af589ef2f34c08a830b17
[ "Apache-2.0" ]
null
null
null
''' (c) Copyright 2013 Telefonica, I+D. Printed in Spain (Europe). All Rights Reserved. The copyright to the software program(s) is property of Telefonica I+D. The program(s) may be used and or copied only with the express written consent of Telefonica I+D or in accordance with the terms and conditions stipulated in t...
42.518519
106
0.743031
0
0
0
0
0
0
0
0
562
0.489547
20f40bb6774c781a86ff7385108395d2e004318d
9,669
py
Python
lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py
kbaseapps/kb_RDP_Classifier
7ac139db66b0291c847084e0633cb311befd05e1
[ "MIT" ]
null
null
null
lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py
kbaseapps/kb_RDP_Classifier
7ac139db66b0291c847084e0633cb311befd05e1
[ "MIT" ]
null
null
null
lib/kb_RDP_Classifier/kb_RDP_ClassifierImpl.py
kbaseapps/kb_RDP_Classifier
7ac139db66b0291c847084e0633cb311befd05e1
[ "MIT" ]
1
2021-09-24T18:18:40.000Z
2021-09-24T18:18:40.000Z
# -*- coding: utf-8 -*- #BEGIN_HEADER import logging import os import uuid import shutil from installed_clients.WorkspaceClient import Workspace from installed_clients.DataFileUtilClient import DataFileUtil from installed_clients.KBaseReportClient import KBaseReport from installed_clients.GenericsAPIClient import Gene...
28.862687
121
0.562416
9,102
0.934977
0
0
0
0
0
0
3,757
0.385927
20f473683e772c87b537f146508f569bdfe393ff
4,189
py
Python
image2text.py
minhpvwh/pytesseract-vie
4159941a0f538845c535d090907cf230946cb4fe
[ "Leptonica", "BSD-2-Clause" ]
null
null
null
image2text.py
minhpvwh/pytesseract-vie
4159941a0f538845c535d090907cf230946cb4fe
[ "Leptonica", "BSD-2-Clause" ]
null
null
null
image2text.py
minhpvwh/pytesseract-vie
4159941a0f538845c535d090907cf230946cb4fe
[ "Leptonica", "BSD-2-Clause" ]
null
null
null
import os import cv2 import glob import tqdm import argparse from skimage.filters import threshold_local import pytesseract import numpy as np import random def check_exist(path): try: if not os.path.exists(path): os.mkdir(path) except Exception: raise ("please check your folder again") pass def median_fil...
32.726563
108
0.610169
0
0
0
0
0
0
0
0
1,216
0.290284
20f4974dbfb9b7e44a6eecfec1209588daffaa28
762
py
Python
__main__.py
JeffreyTsang/Brickbreaker
37f0d143e9f937027fc281aef1511d0e9c804b8b
[ "MIT" ]
null
null
null
__main__.py
JeffreyTsang/Brickbreaker
37f0d143e9f937027fc281aef1511d0e9c804b8b
[ "MIT" ]
null
null
null
__main__.py
JeffreyTsang/Brickbreaker
37f0d143e9f937027fc281aef1511d0e9c804b8b
[ "MIT" ]
null
null
null
# __main__.py # Walker M. White (wmw2) # November 12, 2012 """__main__ module for Breakout This is the module with the application code. Make sure that this module is in a folder with the following files: breakout.py (the primary controller class) model.py (the model classes) game2d.py (the view ...
29.307692
83
0.711286
0
0
0
0
0
0
0
0
636
0.834646
20f4bb00c3e32da2d3d3c84f05ad3e299944fc74
394
py
Python
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
syamasakigoodrx/astronomer
0f1ca98bc04c46abe750bd9668aa75330601d300
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import git # The top-level path of this repository git_repo = git.Repo(__file__, search_parent_directories=True) git_root_dir = Path(git_repo.git.rev_parse("--show-toplevel")) # This should match the major.minor version list in .circleci/generate_circleci_config.py # Patch version should alwa...
35.818182
89
0.763959
0
0
0
0
0
0
0
0
211
0.535533
4545c91d0cdf7bdd633b1682893229895b5c4a88
2,808
py
Python
mrkt/framework/platform/AWS.py
Tefx/Meerkat
ad9d4d3973a990406b976998dce9727b40139650
[ "MIT" ]
null
null
null
mrkt/framework/platform/AWS.py
Tefx/Meerkat
ad9d4d3973a990406b976998dce9727b40139650
[ "MIT" ]
null
null
null
mrkt/framework/platform/AWS.py
Tefx/Meerkat
ad9d4d3973a990406b976998dce9727b40139650
[ "MIT" ]
null
null
null
from ...common.utils import patch; patch() import boto3 import urllib.request from .PaaS import PaaS from ..service import docker from ...common.consts import * COREOS_AMI_URL = "https://stable.release.core-os.net/amd64-usr/current/coreos_production_ami_hvm_{region}.txt" COREOS_USERNAME = "core" VM_TAG = [{"Resource...
37.44
110
0.535613
2,216
0.789174
0
0
0
0
0
0
312
0.111111
45485b7021d68a5f5cea1ac732317f7615814dbe
3,099
py
Python
csrweb/api/resources.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
csrweb/api/resources.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
csrweb/api/resources.py
edbeard/csrweb
aecf8b6199aa6ce04a89c549ea2b970369f750e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ csrweb.api.resources ~~~~~~~~~~~~~~~~~~~~ API resources. :copyright: Copyright 2019 by Ed Beard. :license: MIT, see LICENSE file for more details. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode...
32.621053
133
0.700871
1,401
0.452081
0
0
1,581
0.510165
0
0
964
0.311068
454b01b109820104ab60f6103cb4df1d537ab584
1,084
py
Python
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
5
2017-05-28T03:13:17.000Z
2019-12-17T11:34:16.000Z
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
2
2016-01-03T03:22:27.000Z
2018-11-29T19:55:49.000Z
tests/test_signer.py
led8rgb/wmsigner
fdf888220e97b260639ebc4c5c86ae144939305f
[ "MIT" ]
3
2016-08-28T11:39:32.000Z
2019-09-17T10:47:17.000Z
import unittest from wmsigner import Signer # Для запуска тестов эти данные должны быть заполнены signer = Signer(wmid='000000000000', keys='/home/egor/000000000000.kwm', password='**********') class TestWMSigner(unittest.TestCase): def test_equal(self): """ Получ...
26.439024
78
0.606089
885
0.73201
0
0
0
0
0
0
616
0.509512
454b47b3f84be1c2c230d352ee328c9b29ca854a
676
py
Python
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
test/test.py
jinjunnn/cloud1
629016594b61cd7404da45f7c54e1d9c1bc3b69d
[ "MIT" ]
null
null
null
import os, sys import csv import leancloud from leancloud import cloud import requests import re leancloud.init("ELXEVn8IoKWzNVU52gmYKnn6-gzGzoHsz", master_key="kYWSFq2AwQyBhujn5oIBo64n") data_info = {'id': 2017718538, 'user_name': 'js999986', 'first_name': '一手引流工作室', 'last_name': None, 'userName': None, 'url': None,...
35.578947
200
0.720414
0
0
0
0
0
0
0
0
483
0.606023
454c3029fdf43b8fecffd75acd0e4868c4a676d6
273
py
Python
src/submarine/submarine.py
mokshasoul/aoc-2021-python
6e6f24659c45f32eab5302075c3c2c0a0a876a60
[ "MIT" ]
null
null
null
src/submarine/submarine.py
mokshasoul/aoc-2021-python
6e6f24659c45f32eab5302075c3c2c0a0a876a60
[ "MIT" ]
null
null
null
src/submarine/submarine.py
mokshasoul/aoc-2021-python
6e6f24659c45f32eab5302075c3c2c0a0a876a60
[ "MIT" ]
null
null
null
import re import numpy as np class Submarine: def __init__(self) -> None: self.depth = 0 self.aim_depth = 0 self.gamma_rate = 0 self.epsilon_rate = 0 self.oxygen_generator_rate = 0 self.carbon_dioxide_scrubber = 0
21
40
0.608059
236
0.864469
0
0
0
0
0
0
0
0
454ca970a91a509b88675311e18e5508a0f457e1
1,729
py
Python
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
python/spark/ctr_logistic.py
zzhou9/google-searchAds
6fed04a624cc637f472f866e91e465ebe11102d3
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from pyspark import SparkContext from pyspark.mllib.classification import LogisticRegressionWithLBFGS, LogisticRegressionModel from pyspark.mllib.regression import LabeledPoint from pyspark.mllib.util import MLUtils #(' 101356, 101356, 32714, 32714, 5963, 10594, 21240, 34825, 5963...
36.787234
99
0.685367
0
0
0
0
0
0
0
0
459
0.265471
45502c36194120822d47a489bb35792d7a4b090d
754
py
Python
matplotlib/axessetting.py
mk43/python-practice-project
4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e
[ "Apache-2.0" ]
7
2018-05-29T07:14:22.000Z
2020-03-05T06:45:04.000Z
matplotlib/axessetting.py
mk43/python-practice-project
4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e
[ "Apache-2.0" ]
null
null
null
matplotlib/axessetting.py
mk43/python-practice-project
4260456c1006c1f3e2a6f00bcb2639d6e8a71e5e
[ "Apache-2.0" ]
5
2018-11-08T04:03:48.000Z
2020-03-05T06:45:06.000Z
import matplotlib.pyplot as plt import numpy as np x = np.linspace(-10, 10, 40) y1 = 10 * x + 50 y2 = x**2 plt.figure() plt.plot(x, y1, 'b-') plt.plot(x, y2, 'b--') plt.xlim((-20, 20)) plt.ylim((-60, 160)) plt.xlabel('I am x') plt.ylabel('I am y') plt.xticks(np.linspace(-20, 20, 5)) plt.yticks([0, 50, 100], [r'$bad$...
24.322581
60
0.690981
0
0
0
0
0
0
0
0
120
0.159151
4552844d1989cd409ab97253e0c1d21d415c08b6
1,943
py
Python
Xgam/__init__.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
1
2021-06-14T20:27:30.000Z
2021-06-14T20:27:30.000Z
Xgam/__init__.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
null
null
null
Xgam/__init__.py
aurelio-amerio/Xgam
fb65ed009bb35984eadd0c576aa385ca3702c8ce
[ "MIT" ]
1
2021-06-14T20:27:55.000Z
2021-06-14T20:27:55.000Z
#!/usr/bin/env python # # # # Autor: Michela Negro, GSFC/CRESST/UMBC . # # On behalf of the Fermi-LAT Collaboration. ...
36.660377
80
0.507463
0
0
0
0
0
0
0
0
1,307
0.672671
4554d96aff6eab12cf01ea18c66f303bf1e65edd
3,008
py
Python
tests/test_clouds.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
1
2019-04-10T11:37:25.000Z
2019-04-10T11:37:25.000Z
tests/test_clouds.py
d-mo/mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
3
2021-04-07T23:15:17.000Z
2021-09-23T23:21:45.000Z
tests/test_clouds.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
null
null
null
"""Tests Cloud models and Controllers""" import os import uuid import json from deepdiff import DeepDiff from pprint import pprint def unicode_to_str(data): if isinstance(data, dict): return {unicode_to_str(key): unicode_to_str(value) for key, value in data.iteritems()} elif isinstanc...
29.782178
78
0.628657
0
0
0
0
0
0
0
0
459
0.152593
4555138ee889d6a8eb7274ba38acfdb8b6a01114
36,944
py
Python
adapt/jedparse/jedParser.py
aeschylus/Adapt
3a769e621c7cdb9ca201bb1a75484fdeb84105ea
[ "MIT" ]
null
null
null
adapt/jedparse/jedParser.py
aeschylus/Adapt
3a769e621c7cdb9ca201bb1a75484fdeb84105ea
[ "MIT" ]
null
null
null
adapt/jedparse/jedParser.py
aeschylus/Adapt
3a769e621c7cdb9ca201bb1a75484fdeb84105ea
[ "MIT" ]
1
2021-01-20T21:26:10.000Z
2021-01-20T21:26:10.000Z
# $ANTLR 3.1 jed.g 2014-02-17 18:49:15 import sys from antlr3 import * from antlr3.compat import set, frozenset import os import sys from bitarray import bitarray # for convenience in actions HIDDEN = BaseRecognizer.HIDDEN # token types F=9 STAR=19 OTHER=5 C=18 L=11 N=12 J=10 V=15 ONE=7 Q=14 P=13 EOF=-1 ...
27.570149
151
0.481242
36,075
0.976478
0
0
0
0
0
0
5,914
0.16008
4555aaa5efb8e9633d6c3233732fefd9345316e0
41
py
Python
Python/Tests/TestData/FormattingTests/linereduction.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/FormattingTests/linereduction.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
Python/Tests/TestData/FormattingTests/linereduction.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
null
null
null
(a + b + c + d+ e+ f )
4.555556
8
0.146341
0
0
0
0
0
0
0
0
0
0
4555f8bdea823e3c6bf72f128d96fb3a61fb035f
6,542
py
Python
day_10.py
JeffHanna/Advent_of_Code_2018
a47f7c5dc1ef28df41a26a21fc16626cb2a9c922
[ "MIT" ]
null
null
null
day_10.py
JeffHanna/Advent_of_Code_2018
a47f7c5dc1ef28df41a26a21fc16626cb2a9c922
[ "MIT" ]
null
null
null
day_10.py
JeffHanna/Advent_of_Code_2018
a47f7c5dc1ef28df41a26a21fc16626cb2a9c922
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ --- Day 10: The Stars Align --- It's no use; your navigation system simply isn't capable of providing walking directions in the arctic circle, and certainly not in 1018. The Elves suggest an alternative. In times like these, North Pole rescue operations will arrange points of light in the s...
32.068627
419
0.486854
0
0
0
0
0
0
0
0
5,089
0.777897
4556270ed64165ee50af5ad0e7a8aeb1bf232a5f
302
py
Python
torrents/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
torrents/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
torrents/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from torrents import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ url(r'^upload/$', views.upload, name='upload'), url(r'^browse/$', views.browse, name='browse'), ]
25.166667
51
0.735099
0
0
0
0
0
0
0
0
40
0.13245
45563edf7177293ae810f1142fc2457d7d0c9f98
170,658
py
Python
TACT.py
CFARS/TACT
1b2bbf1f9d0a45cff232ec447286419faac66b58
[ "BSD-3-Clause" ]
1
2022-03-23T11:50:53.000Z
2022-03-23T11:50:53.000Z
TACT.py
CFARS/TACT
1b2bbf1f9d0a45cff232ec447286419faac66b58
[ "BSD-3-Clause" ]
4
2021-12-18T04:01:41.000Z
2022-03-10T16:13:18.000Z
TACT.py
CFARS/TACT
1b2bbf1f9d0a45cff232ec447286419faac66b58
[ "BSD-3-Clause" ]
null
null
null
""" This is the main script to analyze projects without an NDA in place. Authors: Nikhil Kondabala, Alexandra Arntsen, Andrew Black, Barrett Goudeau, Nigel Swytink-Binnema, Nicolas Jolin Updated: 7/01/2021 Example command line execution: python TACT.py -in /Users/aearntsen/cfarsMASTER/CFARSPhase3/test/518Tower...
55.211258
372
0.607127
0
0
0
0
0
0
0
0
45,819
0.268475
4557176f3d49e4358253305342218dd4750b9adc
1,343
py
Python
FileStorage/language/LanguagePack.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
1
2020-07-15T10:02:40.000Z
2020-07-15T10:02:40.000Z
FileStorage/language/LanguagePack.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
null
null
null
FileStorage/language/LanguagePack.py
Thiefxt/FileStorage
db2882b2ea861f4412cb453edef6439501b13705
[ "MIT" ]
null
null
null
""" @Author : xiaotao @Email : 18773993654@163.com @Lost modifid : 2020/4/24 10:18 @Filename : LanguagePack.py @Description : @Software : PyCharm """ class RET: """ 语言类包 """ OK = "200" DBERR = "501" NODATA = "462" DATAEXIST = "433" DATAERR = "499" REQERR = "521" ...
19.463768
52
0.531646
757
0.488072
0
0
421
0.271438
0
0
613
0.395229
45582f74d0d0ee28b2acea145b7197bbf28904ac
1,414
py
Python
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
app/core/tests/test_model.py
rahulsudhakar10/receipe-api-project
29f205607905bbee347ea9ca505751f4d4cd508a
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from core import models def sample_user(email='test@londonappdev.com', password='testpass'): """Create a sample user""" return get_user_model().objects.create_user(email, password) class ModelTest(TestCase): def test_user_wi...
28.28
68
0.642857
1,140
0.806223
0
0
0
0
0
0
145
0.102546
4558b0a8efff5ece908e59c6b9303248612636c0
2,427
py
Python
validate_binary_tree/solution_2.py
nunezpaul/practice_problems
22449c014046b702a4284bb66548f3a70c265622
[ "MIT" ]
null
null
null
validate_binary_tree/solution_2.py
nunezpaul/practice_problems
22449c014046b702a4284bb66548f3a70c265622
[ "MIT" ]
null
null
null
validate_binary_tree/solution_2.py
nunezpaul/practice_problems
22449c014046b702a4284bb66548f3a70c265622
[ "MIT" ]
null
null
null
class TreeNode(object): def __str__(self): left = self.left.val if self.left else 'N' right = self.right.val if self.right else 'N' return "{left} {val} {right}".format(val=self.val, left=left, right=right) def __init__(self, val): self.val = val self.right = None ...
22.682243
82
0.651834
338
0.139267
0
0
0
0
0
0
69
0.02843
455a1e9bca84b3eaa5bb4b8f7d096c8385e30f66
307
py
Python
Chapter 11/B05385_11_xx_runping.py
jef-n/Mastering-QGIS-Second-Edition
96ae03293dd8d54c9ef916962580b69758cf8287
[ "MIT" ]
18
2016-11-10T06:18:45.000Z
2022-02-27T14:49:00.000Z
Chapter 11/B05385_11_xx_runping.py
jef-n/Mastering-QGIS-Second-Edition
96ae03293dd8d54c9ef916962580b69758cf8287
[ "MIT" ]
null
null
null
Chapter 11/B05385_11_xx_runping.py
jef-n/Mastering-QGIS-Second-Edition
96ae03293dd8d54c9ef916962580b69758cf8287
[ "MIT" ]
13
2017-10-24T21:21:51.000Z
2020-06-27T15:41:54.000Z
import subprocess import time proc = subprocess.Popen( ["ping", "-c", "10", "localhost"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) counter = 0 for line in iter(proc.stdout.readline, ''): print line progress.setPercentage( counter ) counter +=10
18.058824
43
0.667752
0
0
0
0
0
0
0
0
27
0.087948
455a97ef8134576551c4ea049b3b9d369f2092fc
630
py
Python
for_short.py
deepakxyz/get-earth
eb4e594d499452b711966a819237e4d6160d2a17
[ "MIT" ]
2
2021-05-21T07:03:14.000Z
2021-08-05T14:35:37.000Z
for_short.py
deepakxyz/get-earth
eb4e594d499452b711966a819237e4d6160d2a17
[ "MIT" ]
null
null
null
for_short.py
deepakxyz/get-earth
eb4e594d499452b711966a819237e4d6160d2a17
[ "MIT" ]
null
null
null
from get_earth import GetEarth # 835 , 1416 # p11 = (835, 1416) # p12 = (885,1516) # p1 = (886,1416) # p2 = (935,1516) # p1 = (885, 1415) # p2 = (890, 1420) # p1 = (890,1415) # p2 = (895,1420) # p1 = (835, 1416) # p2 = (885,1516) # start where you end it # p1 = (885, 1416) # p2 = (935,1516) # p1 = (835,1516) # ...
14.318182
43
0.555556
0
0
0
0
0
0
0
0
465
0.738095
455c1d1f7a5c452b8ffe6f08ac4dbcdcc3e74500
562
py
Python
algo/lc.118.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
algo/lc.118.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
algo/lc.118.py
cdluminate/MyNotes
cf28f2a3fa72723153147e21fed5e7b598baf44f
[ "CC0-1.0" ]
null
null
null
class Solution(object): def generate(self, numRows): """ :type numRows: int :rtype: List[List[int]] """ # first pass: empty triangle tria = [ [0 for j in range(i+1)] for i in range(numRows) ] print(tria) # second pass: fill in value...
28.1
60
0.451957
561
0.998221
0
0
0
0
0
0
131
0.233096
455cfcd1a4533c63cce20863058bc3230fd98394
2,076
py
Python
aoc_cqkh42/year_2020/day_12.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
aoc_cqkh42/year_2020/day_12.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
aoc_cqkh42/year_2020/day_12.py
cqkh42/advent-of-code
bcf31cf8973a5b6d67492c412dce10df742e04d1
[ "MIT" ]
null
null
null
""" Solutions for day 12 of 2020's Advent of Code """ from typing import Tuple def _rotate_right(n, e) -> Tuple[int, int]: return -e, n def _rotate_left(n, e) -> Tuple[int, int]: return e, -n def part_a(data) -> int: """ Solution for part a Parameters ---------- data: str Return...
21.625
65
0.461464
0
0
0
0
0
0
0
0
363
0.174855
455d6ce36a65cf0610f2586646f75e04d7e70b2f
138
py
Python
test.py
loremcookie/_logging_module
c24f962ad321b8b2d7ac362e65dbd6d259686ebc
[ "MIT" ]
null
null
null
test.py
loremcookie/_logging_module
c24f962ad321b8b2d7ac362e65dbd6d259686ebc
[ "MIT" ]
null
null
null
test.py
loremcookie/_logging_module
c24f962ad321b8b2d7ac362e65dbd6d259686ebc
[ "MIT" ]
null
null
null
import _logging as logging logger = logging.logging() logger.DEBUG('TEST') logger.ERROR('TEST') logger.INFO('TEST') logger.WARNING('TEST')
23
26
0.753623
0
0
0
0
0
0
0
0
24
0.173913
455db22f99db07331fddab80325507e7476dc805
3,786
py
Python
src/main/resources/python/stack.py
VAlgoLang/ManimDSLCompiler
87020d135fa7360aaeccf7e2b9a453f6ffb0fb33
[ "BSD-3-Clause" ]
19
2020-11-05T13:55:45.000Z
2021-01-08T13:19:40.000Z
src/main/resources/python/stack.py
VAlgoLang/ManimDSLCompiler
87020d135fa7360aaeccf7e2b9a453f6ffb0fb33
[ "BSD-3-Clause" ]
29
2020-10-13T10:29:21.000Z
2021-01-10T18:34:06.000Z
src/main/resources/python/stack.py
VAlgoLang/ManimDSLCompiler
87020d135fa7360aaeccf7e2b9a453f6ffb0fb33
[ "BSD-3-Clause" ]
6
2021-03-20T07:04:11.000Z
2022-03-22T02:39:03.000Z
class Stack(DataStructure, ABC): def __init__(self, ul, ur, ll, lr, aligned_edge, color=WHITE, text_color=WHITE, text_weight=NORMAL, font="Times New Roman"): super().__init__(ul, ur, ll, lr, aligned_edge, color, text_color, text_weight, font) self.empty = None def create_init(s...
46.740741
120
0.626519
3,737
0.987058
0
0
0
0
0
0
117
0.030903
455ecf77b284ae23c05aaa297b5a0ed55da0477f
1,519
py
Python
notebooks_for_development/phase_fold_bh_peg.py
mwanakijiji/rrlfe2
0637b348b8d3e54ff34c56caa8b4c6fdac1c699e
[ "MIT" ]
null
null
null
notebooks_for_development/phase_fold_bh_peg.py
mwanakijiji/rrlfe2
0637b348b8d3e54ff34c56caa8b4c6fdac1c699e
[ "MIT" ]
null
null
null
notebooks_for_development/phase_fold_bh_peg.py
mwanakijiji/rrlfe2
0637b348b8d3e54ff34c56caa8b4c6fdac1c699e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Reads in photometry from different sources, normalizes them, and puts them # onto a BJD time scale # Created 2021 Dec. 28 by E.S. import numpy as np import pandas as pd from astropy.time import Time import matplotlib.pyplot as plt from sklearn.preprocessing import MinMaxScaler...
33.021739
120
0.75181
0
0
0
0
0
0
0
0
624
0.410797
455edc273b8a123c3adfc56630705426d3b15ce0
356
py
Python
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
1
2022-02-24T17:30:53.000Z
2022-02-24T17:30:53.000Z
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
null
null
null
djelectionguard/migrations/0010_auto_20210308_0939.py
Joneswn/Baloti
c499666dd9e2553fac88130dea2b6e9df8278234
[ "MIT" ]
2
2021-10-06T11:52:41.000Z
2022-01-20T11:07:27.000Z
# Generated by Django 3.1.7 on 2021-03-08 09:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('djelectionguard', '0009_decentralized_default_false'), ] operations = [ migrations.RemoveField( model_name='contest', name='...
19.777778
64
0.623596
271
0.761236
0
0
0
0
0
0
125
0.351124
456020c6f80bf546826faf9d3db7db5ef4399eed
4,012
py
Python
history/predict.py
Snipa22/pytrader
5a730435332a159e68ba13ec01b4b7bfa380ec82
[ "MIT" ]
3
2016-04-11T13:51:07.000Z
2022-03-10T15:42:24.000Z
history/predict.py
Snipa22/pytrader
5a730435332a159e68ba13ec01b4b7bfa380ec82
[ "MIT" ]
null
null
null
history/predict.py
Snipa22/pytrader
5a730435332a159e68ba13ec01b4b7bfa380ec82
[ "MIT" ]
null
null
null
from history.tools import normalization, filter_by_mins, create_sample_row from history.models import Price, PredictionTest import time from history.tools import print_and_log def predict_v2(ticker,hidden_layers=15,NUM_MINUTES_BACK=1000,NUM_EPOCHS=1000,granularity_minutes=15,datasetinputs=5,learningrate=0.005,bias=F...
48.337349
380
0.692423
0
0
0
0
0
0
0
0
496
0.123629
45604bd1b05655ed30e4f3d8cdc52c6f47f66f14
16,129
py
Python
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
1
2018-07-24T05:40:44.000Z
2018-07-24T05:40:44.000Z
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
null
null
null
master_cGAN_mnist_useLabel.py
tanlinc/opticalFlowGAN
f568e531265029f2f25f223ee92e1f53c0bb52f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 18 12:06:09 2018 @author: linkermann Wasserstein GAN simplified """ import os, sys sys.path.append(os.getcwd()) import tflib.save_images as imsaver import tflib.plot as plotter #import tflib.mnist as mnistloader import time import numpy as np impor...
49.627692
150
0.684915
0
0
0
0
0
0
0
0
6,255
0.387811
456368c28972d08c5777b27f3941bd69bf9f4b4c
2,786
py
Python
rl_teacher/selector.py
oguzserbetci/rl-teacher-atari
fd6c399921d347333d7c5b4b12c63f1a955cea5c
[ "MIT" ]
null
null
null
rl_teacher/selector.py
oguzserbetci/rl-teacher-atari
fd6c399921d347333d7c5b4b12c63f1a955cea5c
[ "MIT" ]
5
2018-10-15T11:52:05.000Z
2018-10-30T12:58:53.000Z
rl_teacher/selector.py
oguzserbetci/rl-teacher-atari
fd6c399921d347333d7c5b4b12c63f1a955cea5c
[ "MIT" ]
null
null
null
from rl_teacher.segment_sampling import segments_from_rand_rollout, sample_segment_from_path, basic_segment_from_null_action import numpy as np class Selector(object): def __init__(self): print("Selector initialized") def select(self, segments): print("Selector.select()") return segmen...
37.648649
169
0.66224
2,632
0.944724
0
0
0
0
0
0
386
0.13855
45636a74d98ccc7ab3ff22be9c83602f958559c0
9,474
py
Python
pynet/models/vae/vunet.py
CorentinAmbroise/pynet
c353e5f80e75f785a460422ab7b39fa8f776991a
[ "CECILL-B" ]
null
null
null
pynet/models/vae/vunet.py
CorentinAmbroise/pynet
c353e5f80e75f785a460422ab7b39fa8f776991a
[ "CECILL-B" ]
null
null
null
pynet/models/vae/vunet.py
CorentinAmbroise/pynet
c353e5f80e75f785a460422ab7b39fa8f776991a
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################## # NSAp - Copyright (C) CEA, 2020 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html #...
34.830882
79
0.576947
8,603
0.908064
0
0
7,002
0.739075
0
0
4,432
0.467807
456499cb6f4f56978c9d9e33ec8c47f7702e105f
1,161
py
Python
api/subparts/alpha/alpha.py
schana/swagger-based-api
964cd549e73a81a0a72037cb8f75271708d061db
[ "Apache-2.0" ]
null
null
null
api/subparts/alpha/alpha.py
schana/swagger-based-api
964cd549e73a81a0a72037cb8f75271708d061db
[ "Apache-2.0" ]
null
null
null
api/subparts/alpha/alpha.py
schana/swagger-based-api
964cd549e73a81a0a72037cb8f75271708d061db
[ "Apache-2.0" ]
null
null
null
import collections import flask_restplus from flask_restplus import fields from flask_restplus import reqparse from api import util api = util.build_api('alpha', __name__, url_prefix='/subparts/alpha') v1 = util.build_namespace(api, 'v1', description='Version 1') AlphaSpec = collections.namedtuple('Alpha', ['x_and_...
32.25
77
0.707149
395
0.340224
0
0
416
0.358312
0
0
181
0.1559
4566cf4e6c09c759fddb48cfdd14738b0604abb8
4,612
py
Python
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
fast_automl/baseline.py
dsbowen/fast-automl
0799849859eec015eaa0a9e78936724b8ae300e9
[ "MIT" ]
null
null
null
"""# Baseline classifier and regressor""" import numpy as np import pandas as pd from sklearn.base import BaseEstimator, ClassifierMixin, RegressorMixin from sklearn.utils.multiclass import check_classification_targets from sklearn.utils.validation import _check_sample_weight class BaselineClassifier(ClassifierMixin...
28.645963
96
0.597572
4,329
0.938638
0
0
0
0
0
0
3,061
0.663703
456a57330f91e998b987f4f3389f029412491435
268
py
Python
code/client/05_year/client.py
honzajavorek/co-je-api
f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f
[ "MIT" ]
11
2018-07-13T14:40:56.000Z
2021-07-09T07:27:37.000Z
code/client/05_year/client.py
honzajavorek/co-je-api
f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f
[ "MIT" ]
167
2018-06-30T13:40:18.000Z
2021-07-27T06:27:54.000Z
code/client/05_year/client.py
honzajavorek/co-je-api
f24538d2c1f6a3fe7a3fcf33575d3b241e4ff62f
[ "MIT" ]
2
2018-11-07T12:19:39.000Z
2018-11-10T10:03:21.000Z
import requests response = requests.get("https://cojeapi.honzajavorek.now.sh/movies") movies = response.json() for movie in movies: response = requests.get(movie['url']) movie_details = response.json() print(movie_details['name'], movie_details['year'])
26.8
69
0.720149
0
0
0
0
0
0
0
0
61
0.227612
456b9d36efdf097837bfdedc583dac092dcbd61c
4,927
py
Python
EDGAR/Generic_Parser.py
laurakchen/Intended-Use-Of_Proceeds
4d958fbeddb3eb20b6a3ab1166ad918673408ddc
[ "Apache-2.0" ]
null
null
null
EDGAR/Generic_Parser.py
laurakchen/Intended-Use-Of_Proceeds
4d958fbeddb3eb20b6a3ab1166ad918673408ddc
[ "Apache-2.0" ]
null
null
null
EDGAR/Generic_Parser.py
laurakchen/Intended-Use-Of_Proceeds
4d958fbeddb3eb20b6a3ab1166ad918673408ddc
[ "Apache-2.0" ]
4
2021-01-10T02:22:24.000Z
2021-01-29T07:01:16.000Z
""" Program to provide generic parsing for all files in user-specified directory. The program assumes the input files have been scrubbed, i.e., HTML, ASCII-encoded binary, and any other embedded document structures that are not intended to be analyzed have been deleted from the file. Dependencies: Pytho...
38.795276
104
0.629592
0
0
0
0
0
0
0
0
2,394
0.485598
456ce9a81e255b4fb4013dc47630ffa6a975e439
1,542
py
Python
sound.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
1
2020-10-11T15:34:56.000Z
2020-10-11T15:34:56.000Z
sound.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
sound.py
TWoolhouse/Libraries
26079ed387cb800cb97f20980720ae094008c7bf
[ "MIT" ]
null
null
null
import sinput import keys class Volume: __volume = None def __init__(self, sync: int=0): if sync != False or self.__volume is None: self.sync(sync) def __constrain(self, val: int, min: int=0, max: int=100): return (min if val < min else (max if val > max else val)) def _...
24.09375
66
0.559663
1,512
0.980545
0
0
214
0.138781
0
0
0
0
456d5f84b2506b512723f3a37ab5b953c8eded00
4,882
py
Python
Code/techne_library_code.py
uk-gov-mirror/nationalarchives.TechneTraining
aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a
[ "MIT" ]
null
null
null
Code/techne_library_code.py
uk-gov-mirror/nationalarchives.TechneTraining
aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a
[ "MIT" ]
null
null
null
Code/techne_library_code.py
uk-gov-mirror/nationalarchives.TechneTraining
aabb15f2bfe6bbbcc824dbdaa7f8c59632fea21a
[ "MIT" ]
null
null
null
import os from sklearn.model_selection import train_test_split import numpy as np from operator import itemgetter from math import log import random from gensim.summarization.summarizer import summarize from sklearn.naive_bayes import BernoulliNB from sklearn.metrics import accuracy_score from sklearn.metrics import co...
33.902778
140
0.670012
0
0
0
0
0
0
0
0
252
0.051618
456d637d0c21bbaf1dc386e6ddbca0f048272275
785
py
Python
Max/Max_0295_20200201.py
Morek999/OMSCS_Taiwan_Leetcode
8ec18e08e9313bc3326846ca6ef6e569380a133f
[ "MIT" ]
1
2020-01-08T14:10:24.000Z
2020-01-08T14:10:24.000Z
Max/Max_0295_20200201.py
Morek999/OMSCS_Taiwan_Leetcode
8ec18e08e9313bc3326846ca6ef6e569380a133f
[ "MIT" ]
null
null
null
Max/Max_0295_20200201.py
Morek999/OMSCS_Taiwan_Leetcode
8ec18e08e9313bc3326846ca6ef6e569380a133f
[ "MIT" ]
null
null
null
""" 295. Find Median from Data Stream https://leetcode.com/problems/find-median-from-data-stream/ Time complexity: O() Space complexity: O() Solution: """ from typing import List class MedianFinder: def __init__(self): """ initialize your data structure here. """ se...
23.787879
68
0.559236
437
0.556688
0
0
0
0
0
0
363
0.46242
456e07cc6bba172145470a41d9133e6c7f291230
2,701
py
Python
sensor/src/upload_metrics.py
tubone24/raspi_plant_checker
e80ccd61c50cbba883f4af8fafafc0404bdf8978
[ "MIT" ]
null
null
null
sensor/src/upload_metrics.py
tubone24/raspi_plant_checker
e80ccd61c50cbba883f4af8fafafc0404bdf8978
[ "MIT" ]
null
null
null
sensor/src/upload_metrics.py
tubone24/raspi_plant_checker
e80ccd61c50cbba883f4af8fafafc0404bdf8978
[ "MIT" ]
1
2021-12-03T05:28:20.000Z
2021-12-03T05:28:20.000Z
from gql import gql, Client from gql.transport.requests import RequestsHTTPTransport import requests from datetime import datetime, timedelta, timezone import os from os.path import join, dirname from dotenv import load_dotenv dotenv_path = join(dirname(__file__), "../../", '.env') load_dotenv(dotenv_path) RASPI_URL ...
28.135417
90
0.583858
0
0
0
0
0
0
0
0
891
0.329878
456e575a68c8ec3a64ef628b7c4703459442d23a
199
py
Python
python-fundamental/unit03/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
9
2020-10-25T15:13:32.000Z
2022-03-26T11:27:21.000Z
python-fundamental/unit03/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
null
null
null
python-fundamental/unit03/01.py
sharebook-kr/learningspoons-bootcamp-finance
0288f3f3b39f54420e4e9987f1de12892dc680ea
[ "MIT" ]
7
2021-03-01T11:06:45.000Z
2022-03-14T07:06:04.000Z
import requests import pandas as pd url = "http://comp.fnguide.com/SVO2/common/lookup_data.asp?mkt_gb=1&comp_gb=1" resp = requests.get(url) data = resp.json() df = pd.DataFrame(data=data) df.head()
22.111111
78
0.738693
0
0
0
0
0
0
0
0
72
0.361809
4570e2df961c67f0b695d56e2b1d04a5a28131d6
7,316
py
Python
tank-wars/game/instruction_view.py
isabelaranguren/cse210-project
62c7812e7c592030cdfd4b08a91eea225c2820f6
[ "MIT" ]
1
2021-04-23T21:04:57.000Z
2021-04-23T21:04:57.000Z
tank-wars/game/instruction_view.py
isabelaranguren/cse210-project
62c7812e7c592030cdfd4b08a91eea225c2820f6
[ "MIT" ]
2
2021-03-04T19:48:38.000Z
2021-03-07T06:39:55.000Z
tank-wars/game/instruction_view.py
isabelaranguren/cse210-project
62c7812e7c592030cdfd4b08a91eea225c2820f6
[ "MIT" ]
2
2021-03-27T17:28:07.000Z
2021-04-23T21:05:05.000Z
import arcade from arcade.gui import UIImageButton, UIManager, UIToggle import game.constants as constants from game.gameview import GameView class MainView(arcade.View): """ View to show start screen. The responsibility of this class is to offer the user to either play or view the instructions Stereotype:...
33.254545
122
0.613313
7,166
0.979497
0
0
0
0
0
0
4,215
0.576134
4571550f6f8b64310d107516d99e19dee198a41b
2,711
py
Python
src/api/datamanage/lite/dmonitor/filters.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/datamanage/lite/dmonitor/filters.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/datamanage/lite/dmonitor/filters.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
41.707692
111
0.727407
1,040
0.378595
0
0
0
0
0
0
1,545
0.562432
4571c0f5a311380362a2ed94f464b2d2bf10f14f
1,162
py
Python
project/concept_recog.py
hskang9/HelloWorld
50b09f710176f082c5dac955bc7ea3578a42bd40
[ "MIT" ]
null
null
null
project/concept_recog.py
hskang9/HelloWorld
50b09f710176f082c5dac955bc7ea3578a42bd40
[ "MIT" ]
null
null
null
project/concept_recog.py
hskang9/HelloWorld
50b09f710176f082c5dac955bc7ea3578a42bd40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json from watson_developer_cloud import NaturalLanguageUnderstandingV1 as nlu import watson_developer_cloud.natural_language_understanding.features.v1 \ as Features def concept_recog(path='./test.txt'): #with open(path, 'rt', encoding='utf-8') as f: # inputs = f.read() ...
28.341463
74
0.605852
0
0
0
0
0
0
0
0
325
0.27969
45723f2ab738ef71e49f0975850a3b605e12c203
2,120
py
Python
tests/test_utils_math.py
kevinddchen/Cirq-PrimeFactorization
9104a60b983b345595c8016205dd0dd616483eaa
[ "MIT" ]
null
null
null
tests/test_utils_math.py
kevinddchen/Cirq-PrimeFactorization
9104a60b983b345595c8016205dd0dd616483eaa
[ "MIT" ]
null
null
null
tests/test_utils_math.py
kevinddchen/Cirq-PrimeFactorization
9104a60b983b345595c8016205dd0dd616483eaa
[ "MIT" ]
null
null
null
import pytest from factor import modular_inverse, continued_fraction, approximate_fraction, is_prime def test_modular_inverse(): assert modular_inverse(a=1, N=2) == 1 assert modular_inverse(a=1, N=5) == 1 assert modular_inverse(a=2, N=5) == 3 assert modular_inverse(a=3, N=5) == 2 assert modular_i...
34.193548
86
0.64717
0
0
0
0
0
0
0
0
0
0
4573153b3fe512c2a5e16ccae54eb2974cf42494
6,242
py
Python
i7app/__main__.py
eblade/images7
7fa7c961e046a178243c866fd1f3b82f7e58c73d
[ "BSD-3-Clause", "MIT" ]
null
null
null
i7app/__main__.py
eblade/images7
7fa7c961e046a178243c866fd1f3b82f7e58c73d
[ "BSD-3-Clause", "MIT" ]
null
null
null
i7app/__main__.py
eblade/images7
7fa7c961e046a178243c866fd1f3b82f7e58c73d
[ "BSD-3-Clause", "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os import zmq import time import logging from PyQt5 import QtWidgets as W, QtCore as C, QtGui as G from qtzevents.bus import Pub, Push from qtzevents.background import Background from images7.config import Config from images7.system import System from .grid import ThumbView ...
27.257642
103
0.630567
5,114
0.819289
0
0
0
0
0
0
525
0.084108
45754cc8939f2ca8f5551df60c1a102df61680b5
2,049
py
Python
week01/day01/shopping.py
GsQxZz/fullstack
9010c0c69aec901fd0e0b4434445e822f682c367
[ "Apache-2.0" ]
null
null
null
week01/day01/shopping.py
GsQxZz/fullstack
9010c0c69aec901fd0e0b4434445e822f682c367
[ "Apache-2.0" ]
null
null
null
week01/day01/shopping.py
GsQxZz/fullstack
9010c0c69aec901fd0e0b4434445e822f682c367
[ "Apache-2.0" ]
null
null
null
iphone_price = 5800 mac_price = 9000 coffee_price = 32 python_price = 80 bicyle_price = 1500 list = [] salary = int(input("Please input your salary:")) print("**********欢迎来到购物车系统**********") while True: print("1. iPhone 11 ————%d元" % iphone_price) print("2. Mac book ————%d" % mac_price) print("3. cof...
28.859155
60
0.537823
0
0
0
0
0
0
0
0
880
0.363486
45756f7f3335ea9abab94df669ff19ff707b1db9
1,079
py
Python
test/test_edit_contact.py
Zaichkov/python_training
be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
Zaichkov/python_training
be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
Zaichkov/python_training
be8aff0b38c5a93c5574762ce5c8c27e6fe11b5a
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact import random def test_edit_some_contact(app, orm, check_ui): if len(orm.get_contact_list()) == 0: app.contact.create(Contact(firstname="St_Claus")) old_contacts = orm.get_contact_list() contact_for_edit = random.choice(old_contacts) contact = Contact(firstnam...
46.913043
107
0.720111
0
0
0
0
0
0
0
0
119
0.110287
4576b3475ac0244bd672a11541f51bd060fa0ab8
1,555
py
Python
dowsing/maturin.py
thatch/dowsing
ee81fb26ea4ac67bb951652706107d7f40a546bd
[ "MIT" ]
1
2022-03-21T22:41:58.000Z
2022-03-21T22:41:58.000Z
dowsing/maturin.py
thatch/dowsing
ee81fb26ea4ac67bb951652706107d7f40a546bd
[ "MIT" ]
47
2020-10-02T20:33:58.000Z
2022-03-31T19:10:18.000Z
dowsing/maturin.py
thatch/dowsing
ee81fb26ea4ac67bb951652706107d7f40a546bd
[ "MIT" ]
4
2020-05-25T04:50:51.000Z
2022-02-04T15:20:28.000Z
from pathlib import Path from typing import Sequence import tomlkit from .types import BaseReader, Distribution class MaturinReader(BaseReader): def __init__(self, path: Path): self.path = path def get_requires_for_build_sdist(self) -> Sequence[str]: return [] # TODO def get_requires_...
29.339623
91
0.534405
1,438
0.924759
0
0
0
0
0
0
357
0.229582
457919564bdf80b71f716bf686e0ed54de0bb593
9,424
py
Python
pytype/overlays/typed_dict.py
hboshnak/pytype
b6b6448dc562a7200326c92e75efeed203984e16
[ "Apache-2.0" ]
null
null
null
pytype/overlays/typed_dict.py
hboshnak/pytype
b6b6448dc562a7200326c92e75efeed203984e16
[ "Apache-2.0" ]
null
null
null
pytype/overlays/typed_dict.py
hboshnak/pytype
b6b6448dc562a7200326c92e75efeed203984e16
[ "Apache-2.0" ]
null
null
null
"""Implementation of TypedDict.""" import dataclasses from typing import Any, Dict, Set from pytype.abstract import abstract from pytype.abstract import abstract_utils from pytype.abstract import function from pytype.overlays import classgen from pytype.pytd import pytd @dataclasses.dataclass class TypedDictProper...
34.520147
80
0.694822
9,115
0.967211
0
0
704
0.074703
0
0
2,111
0.224003
4579450f7ab9dcd55c2527f2db1b882e121fbb78
4,962
py
Python
esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
148
2017-02-07T13:16:03.000Z
2022-03-26T02:21:56.000Z
esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
2,026
2017-02-03T12:57:13.000Z
2022-03-31T15:11:51.000Z
esmvaltool/cmorizers/obs/cmorize_obs_aphro_ma.py
cffbots/ESMValTool
a9b6592a02f2085634a214ff5f36a736fa18ff47
[ "Apache-2.0" ]
113
2017-01-27T13:10:19.000Z
2022-02-03T13:42:11.000Z
"""ESMValTool CMORizer for APHRODITE Monsoon Asia (APHRO-MA) data. Tier Tier 3: restricted dataset. Source http://aphrodite.st.hirosaki-u.ac.jp/download/ Last access 20200306 Download and processing instructions Register at http://aphrodite.st.hirosaki-u.ac.jp/download/create/ Download the ...
33.08
77
0.620919
0
0
0
0
0
0
0
0
2,430
0.489525
457e24632a032a8570bd0202286ce93c186089e2
1,285
py
Python
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
tests/test_init.py
Oprax/backup-utils
8de928d5257c9a67c65ca906e49596abe1e3b1ba
[ "MIT" ]
null
null
null
import sys import json from pathlib import Path from unittest.mock import patch import pytest from conftest import FakeFile, config @patch.object(sys, "argv", ["backup_utils", "-v"]) def test_version(capsys): from backup_utils import main, __version__ with pytest.raises(SystemExit): main() cap...
25.7
68
0.650584
0
0
0
0
659
0.51284
0
0
584
0.454475
457e2b38d8a451c8e775c1c394ef7b2670d5e8bd
5,074
py
Python
tests/walkers/enum_values_test.py
yyang08/swagger-spec-compatibility
e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe
[ "Apache-2.0" ]
18
2019-04-30T21:07:30.000Z
2021-12-16T17:56:08.000Z
tests/walkers/enum_values_test.py
yyang08/swagger-spec-compatibility
e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe
[ "Apache-2.0" ]
30
2019-02-26T11:25:44.000Z
2021-04-16T00:12:11.000Z
tests/walkers/enum_values_test.py
yyang08/swagger-spec-compatibility
e7a6ba6fc53c6a8a92ba26016219a595a8cecbbe
[ "Apache-2.0" ]
6
2019-02-25T22:12:29.000Z
2020-12-23T00:24:48.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from copy import deepcopy import mock import pytest from swagger_spec_compatibility.spec_utils import load_spec_from_spec_dict from swagger_spec_compatibility.util import Entit...
38.732824
136
0.522862
0
0
0
0
999
0.196886
0
0
1,296
0.25542
457e798e0ae1080ec8d8cbb20b32459584d047c1
4,997
py
Python
src/logisimpy/multiplexer.py
Kingorgg/logisimpy
de8764c931b42c04a2f6341a1d3811226b90c425
[ "MIT" ]
null
null
null
src/logisimpy/multiplexer.py
Kingorgg/logisimpy
de8764c931b42c04a2f6341a1d3811226b90c425
[ "MIT" ]
null
null
null
src/logisimpy/multiplexer.py
Kingorgg/logisimpy
de8764c931b42c04a2f6341a1d3811226b90c425
[ "MIT" ]
null
null
null
from logisimpy.circuit import Circuit, Wire from logisimpy.logic import AND, AND3, NOT, OR class MUX2x1(Circuit): """ 2x1 Multiplexer logic. The MUX element has two data inputs, one select input and one data output. If the select input is 0, the data from the first input is transfered to the outp...
26.721925
86
0.336202
4,900
0.980588
0
0
0
0
0
0
3,023
0.604963