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
08e511f1a5de576d29d0f24338c61be5e0fb82ee
2,250
py
Python
multiband_melgan/dataset.py
AppleHolic/multiband_melgan
e0864d0fc205c3bdf5e19c77753e105e29a2641b
[ "MIT" ]
41
2020-06-24T08:07:23.000Z
2022-01-24T16:39:54.000Z
multiband_melgan/dataset.py
AppleHolic/multiband_melgan
e0864d0fc205c3bdf5e19c77753e105e29a2641b
[ "MIT" ]
2
2020-06-24T08:02:15.000Z
2020-11-23T02:56:42.000Z
multiband_melgan/dataset.py
AppleHolic/multiband_melgan
e0864d0fc205c3bdf5e19c77753e105e29a2641b
[ "MIT" ]
5
2020-07-03T04:00:50.000Z
2020-11-04T03:24:48.000Z
import numpy as np import librosa import os from pytorch_sound.data.meta.ljspeech import LJSpeechMeta from torch.utils.data import Dataset, DataLoader from typing import Tuple class AudioDataset(Dataset): def __init__(self, meta_frame, crop_length: int, seed: int = 1234): self.meta_frame = meta_frame ...
34.090909
106
0.679111
1,163
0.516889
0
0
0
0
0
0
218
0.096889
08e85c7f00798390cfd21fa3cd1b2758063f698c
3,830
py
Python
yasmss/sparkmapper/sparkmapper.py
AshirwadPradhan/yasmss
8b8b7108a3a437f0c757f19225a0c2082dbbd488
[ "MIT" ]
null
null
null
yasmss/sparkmapper/sparkmapper.py
AshirwadPradhan/yasmss
8b8b7108a3a437f0c757f19225a0c2082dbbd488
[ "MIT" ]
2
2019-09-22T03:27:20.000Z
2019-09-22T13:56:35.000Z
yasmss/sparkmapper/sparkmapper.py
AshirwadPradhan/yasmss
8b8b7108a3a437f0c757f19225a0c2082dbbd488
[ "MIT" ]
2
2019-09-15T13:10:41.000Z
2019-10-29T11:20:10.000Z
"""Get the parsed query from the driver and apply transformation and action based on the query template """ import time import pyspark.sql.functions as f from pyspark.sql import SparkSession from pyspark.sql.types import IntegerType, StringType, StructField, StructType import yaml from schema import schema with ...
33.304348
91
0.621671
3,308
0.863708
0
0
0
0
0
0
613
0.160052
08ea5997bb021488c38f1e74924d799e82ac53bd
17,456
py
Python
src/rangeen/_emotes.py
khera-shanu/Rangeen
0a7f7699c0030d28fd42211c1fb33c89ced3e857
[ "MIT" ]
null
null
null
src/rangeen/_emotes.py
khera-shanu/Rangeen
0a7f7699c0030d28fd42211c1fb33c89ced3e857
[ "MIT" ]
null
null
null
src/rangeen/_emotes.py
khera-shanu/Rangeen
0a7f7699c0030d28fd42211c1fb33c89ced3e857
[ "MIT" ]
null
null
null
class Emote: smile = u"๐Ÿ˜„" satisfied = u"๐Ÿ˜†" blush = u"๐Ÿ˜Š" smiley = u"๐Ÿ˜ƒ" relaxed = u"โ˜บ๏ธ" smirk = u"๐Ÿ˜" heart_eyes = u"๐Ÿ˜" kissing_heart = u"๐Ÿ˜˜" kissing_closed_eyes = u"๐Ÿ˜š" flushed = u"๐Ÿ˜ณ" relieved = u"๐Ÿ˜Œ" grin = u"๐Ÿ˜" wink = u"๐Ÿ˜‰" stuck_out_tongue_winking_eye = u...
21.261876
42
0.477601
20,005
0.99995
0
0
0
0
0
0
5,944
0.297111
08ee02203bdf0fc6105effa49f09100d9294242e
8,412
py
Python
main_gui.py
vedymin/All_IPG_Move
b8b079fd471709731a7550cec3a5add3db409b81
[ "MIT" ]
null
null
null
main_gui.py
vedymin/All_IPG_Move
b8b079fd471709731a7550cec3a5add3db409b81
[ "MIT" ]
null
null
null
main_gui.py
vedymin/All_IPG_Move
b8b079fd471709731a7550cec3a5add3db409b81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'main_gui.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): ...
54.980392
116
0.714812
8,158
0.969805
0
0
0
0
0
0
703
0.083571
08f00026b0a8d4a6cccad1a88563ce7a5b83f749
1,522
py
Python
src/config.py
DQiaole/ZITS
5f7a060167790789d5e29a3d14d3c2ef8a34e765
[ "Apache-2.0" ]
40
2022-03-02T06:12:43.000Z
2022-03-30T02:17:02.000Z
src/config.py
DQiaole/ZITS
5f7a060167790789d5e29a3d14d3c2ef8a34e765
[ "Apache-2.0" ]
6
2022-03-06T03:53:14.000Z
2022-03-31T06:36:34.000Z
src/config.py
DQiaole/ZITS
5f7a060167790789d5e29a3d14d3c2ef8a34e765
[ "Apache-2.0" ]
5
2022-03-04T06:39:44.000Z
2022-03-28T04:58:32.000Z
import os import yaml class Config(dict): def __init__(self, config_path): with open(config_path, 'r') as f: self._yaml = f.read() self._dict = yaml.load(self._yaml, Loader=yaml.FullLoader) self._dict['PATH'] = os.path.dirname(config_path) def __getattr__(self, na...
35.395349
107
0.557819
716
0.470434
0
0
0
0
0
0
644
0.423127
08f0432c93f8f390bd7d7a71479785cb462167ba
8,786
py
Python
examples/acados_python/test/generate_c_code.py
besticka/acados
32767a19aed01a15b5e7b83ebc6ddbd669a47954
[ "BSD-2-Clause" ]
null
null
null
examples/acados_python/test/generate_c_code.py
besticka/acados
32767a19aed01a15b5e7b83ebc6ddbd669a47954
[ "BSD-2-Clause" ]
null
null
null
examples/acados_python/test/generate_c_code.py
besticka/acados
32767a19aed01a15b5e7b83ebc6ddbd669a47954
[ "BSD-2-Clause" ]
null
null
null
# # Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren, # Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor, # Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan, # Jonas Koenemann, Yutao Chen, Tobias Schรถls, Jonas Schlagenhauf, Moritz Diehl # # This file is part of acado...
31.604317
178
0.669019
0
0
0
0
0
0
0
0
3,694
0.420394
08f05b58d9116c10d8df8fa1c928dc1cf428e826
2,820
py
Python
collectors/cpustats.py
vijayanant/kunai
0dfe169731eaceb1bba66e12715b3968d2a3de20
[ "MIT" ]
1
2020-04-12T21:05:46.000Z
2020-04-12T21:05:46.000Z
collectors/cpustats.py
vijayanant/kunai
0dfe169731eaceb1bba66e12715b3968d2a3de20
[ "MIT" ]
null
null
null
collectors/cpustats.py
vijayanant/kunai
0dfe169731eaceb1bba66e12715b3968d2a3de20
[ "MIT" ]
null
null
null
import httplib # Used only for handling httplib.HTTPException (case #26701) import os import sys import platform import re import urllib import urllib2 import traceback import time from StringIO import StringIO from multiprocessing import subprocess from kunai.log import logger from kunai.collector import Collector ...
32.790698
114
0.510638
2,498
0.885816
0
0
0
0
0
0
465
0.164894
08f3eae9e91dde600e2781b52aa83909fff87587
1,560
py
Python
prob_h.py
ShinjiKatoA16/icpc2017ucsy
de1954620036e8025b7b4c1b469e6b8c57af212e
[ "MIT" ]
null
null
null
prob_h.py
ShinjiKatoA16/icpc2017ucsy
de1954620036e8025b7b4c1b469e6b8c57af212e
[ "MIT" ]
null
null
null
prob_h.py
ShinjiKatoA16/icpc2017ucsy
de1954620036e8025b7b4c1b469e6b8c57af212e
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- ''' 2017 ICPC at UCSY Problem-H: Sum Square ''' import sys class TestCase(): pass def parse_tc(tc): ''' Input: Test Case Update: Return: None ''' x = list(map(int,tc.infile.readline().split())) tc.dataset = x[0] tc...
16.956522
69
0.501923
26
0.016667
0
0
0
0
0
0
281
0.180128
08f52305d640784da8d8fb26cf618726da107b3a
2,357
py
Python
spark_mapinput.py
pw2393/spark-bitcoin-parser
320eb30ffcc462b0607655d2f4002a82590fd120
[ "MIT" ]
11
2017-09-29T05:37:57.000Z
2022-02-04T06:34:17.000Z
spark_mapinput.py
pw2393/spark-bitcoin-parser
320eb30ffcc462b0607655d2f4002a82590fd120
[ "MIT" ]
2
2018-07-03T12:19:50.000Z
2019-10-19T21:24:53.000Z
spark_mapinput.py
pw2393/spark-bitcoin-parser
320eb30ffcc462b0607655d2f4002a82590fd120
[ "MIT" ]
3
2019-11-09T13:01:07.000Z
2021-12-03T04:20:29.000Z
""" Author: Peng Wu License: MIT """ # Initialize Spark Context: local multi-threads from pyspark import SparkConf, SparkContext output_folder = './csv/' def main(): # Initialize Spark Context: local multi-threads conf = SparkConf().setAppName("BTC-InputMapper") sc = SparkContext(conf=conf) # Load...
28.39759
117
0.602036
0
0
0
0
0
0
0
0
1,218
0.516759
08f5c575bcbcd0ee74f875b6fd32a403f396576c
6,819
py
Python
neuralpredictors/layers/readouts/factorized.py
kellirestivo/neuralpredictors
57205a90d2e3daa5f8746c6ef6170be9e35cb5f5
[ "MIT" ]
9
2020-11-26T18:22:32.000Z
2022-01-22T15:51:52.000Z
neuralpredictors/layers/readouts/factorized.py
kellirestivo/neuralpredictors
57205a90d2e3daa5f8746c6ef6170be9e35cb5f5
[ "MIT" ]
60
2020-10-21T15:32:28.000Z
2022-02-25T10:38:16.000Z
neuralpredictors/layers/readouts/factorized.py
mohammadbashiri/neuralpredictors
8e60c9ce91f83e3dcaa1b3dbe4422e1509ccbd5f
[ "MIT" ]
21
2020-10-21T09:29:17.000Z
2022-02-07T10:04:46.000Z
import torch from torch import nn as nn import numpy as np from .base import Readout class FullFactorized2d(Readout): """ Factorized fully connected layer. Weights are a sum of outer products between a spatial filter and a feature vector. """ def __init__( self, in_shape, out...
35.889474
120
0.60698
6,686
0.980496
0
0
982
0.144009
0
0
1,322
0.19387
08f7015d2835dcc1e926fd4acbcfff51249816e9
1,186
py
Python
app/main/views.py
josphat-otieno/news-app
e6ff307230bd2cab787489fca4850004cd9bdbd0
[ "MIT" ]
null
null
null
app/main/views.py
josphat-otieno/news-app
e6ff307230bd2cab787489fca4850004cd9bdbd0
[ "MIT" ]
null
null
null
app/main/views.py
josphat-otieno/news-app
e6ff307230bd2cab787489fca4850004cd9bdbd0
[ "MIT" ]
1
2022-02-28T22:33:33.000Z
2022-02-28T22:33:33.000Z
from flask import render_template,request, redirect, url_for from . import main from ..requests import get_articles, get_news_sources,get_top_headlines, get_news_category @main.route('/') def index(): ''' view root function that returns the idex page and its data ''' title="Welcome to your favorite new...
34.882353
120
0.729342
0
0
0
0
1,010
0.851602
0
0
406
0.342327
08f715599ebdccb7db7f9153cc150737106850d8
6,904
py
Python
fabric_cf/actor/core/util/resource_count.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/actor/core/util/resource_count.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
67
2020-12-21T15:39:49.000Z
2022-02-27T17:55:00.000Z
fabric_cf/actor/core/util/resource_count.py
fabric-testbed/ControlFramework
95ab745e32f15c993bc7a017aa97a5a0f67f210f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
33.033493
119
0.637167
5,652
0.818656
0
0
0
0
0
0
3,888
0.563152
08f958d96728940d01ac948489adc3f2710db6d4
114
py
Python
unweaver/graphs/digraphgpkg/nodes/__init__.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
4
2019-04-24T16:38:57.000Z
2021-12-28T20:38:08.000Z
unweaver/graphs/digraphgpkg/nodes/__init__.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
3
2021-06-02T04:06:33.000Z
2021-11-02T01:47:20.000Z
unweaver/graphs/digraphgpkg/nodes/__init__.py
jsbeckwith/unweaver
a4ba9e4e288c75e93bf7f9d67bc11680f09c3da0
[ "Apache-2.0" ]
1
2020-08-13T04:42:05.000Z
2020-08-13T04:42:05.000Z
from .node_view import NodeView from .node import Node from .nodes_view import NodesView from .nodes import Nodes
22.8
33
0.824561
0
0
0
0
0
0
0
0
0
0
08f98d32f073c8a759a51d5a1b5fc9a27ec1c07c
1,927
py
Python
python/http_request.py
MrVallentin/http_request
b21cb23ead1e3bc7176f09804f9cc9287b9f0168
[ "MIT" ]
null
null
null
python/http_request.py
MrVallentin/http_request
b21cb23ead1e3bc7176f09804f9cc9287b9f0168
[ "MIT" ]
null
null
null
python/http_request.py
MrVallentin/http_request
b21cb23ead1e3bc7176f09804f9cc9287b9f0168
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Author: Christian Vallentin <[email protected]> # Website: http://vallentinsource.com # Repository: https://github.com/MrVallentin/http_request # # Date Created: February 28, 2016 # Last Modified: February 29, 2016 # # Developed and tested using Python 3.5.1 import http.client, urllib....
23.790123
65
0.694862
0
0
0
0
0
0
0
0
444
0.23041
3e92c270410556137345bdc66663f957e85d9d78
937
py
Python
notebook/pypdf2_merge_page.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/pypdf2_merge_page.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/pypdf2_merge_page.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import PyPDF2 merger = PyPDF2.PdfFileMerger() merger.append('data/src/pdf/sample1.pdf', pages=(0, 1)) merger.append('data/src/pdf/sample2.pdf', pages=(2, 4)) merger.merge(2, 'data/src/pdf/sample3.pdf', pages=(0, 3, 2)) merger.write('data/temp/sample_merge_page.pdf') merger.close() merger = PyPDF2.PdfFileMerger() m...
30.225806
85
0.741729
0
0
0
0
0
0
0
0
328
0.350053
3e93e3456bdf96692c3deeb42d3cc140eb248959
1,983
py
Python
examples/nlp/bert_squad_pytorch/data.py
gh-determined-ai/determined
9a1ab33a3a356b69681b3351629fef4ab98ddb56
[ "Apache-2.0" ]
1,729
2020-04-27T17:36:40.000Z
2022-03-31T05:48:39.000Z
examples/nlp/bert_squad_pytorch/data.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
1,940
2020-04-27T17:34:14.000Z
2022-03-31T23:02:28.000Z
examples/nlp/bert_squad_pytorch/data.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
214
2020-04-27T19:57:28.000Z
2022-03-29T08:17:16.000Z
from transformers.data.processors.squad import SquadV1Processor, SquadV2Processor from transformers import squad_convert_examples_to_features import urllib.request import os def load_and_cache_examples(data_dir: str, tokenizer, task, max_seq_length, doc_stride, max_query_length, evaluate=False): if (task == "SQuAD...
44.066667
122
0.670701
0
0
0
0
0
0
0
0
399
0.20121
3e946fdc0458e3cc6d05239b37f7f11a04a0d076
898
py
Python
test_simplebuy.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
1
2018-09-07T10:10:29.000Z
2018-09-07T10:10:29.000Z
test_simplebuy.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
null
null
null
test_simplebuy.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
null
null
null
import random import numpy as np import pandas as pd import trading_env # np.set_printoptions(threshold=np.nan) #df = pd.read_hdf('dataset/SGXTW.h5', 'STW') #df = pd.read_hdf('dataset/SGXTWsample.h5', 'STW') df = pd.read_csv('dataset/btc_indexed2.csv') print(df.describe()) env = trading_env.make(env_id='training_v1'...
27.212121
77
0.587973
0
0
0
0
0
0
0
0
275
0.306236
3e9679307c3b46578c6f09f3d9606e2140ef17b5
1,253
py
Python
sandbox/images/reseau_serveur_utile.py
chiesax/sandbox
3b628e0068c6f7116c3a98d481299158a8bf5de3
[ "MIT" ]
null
null
null
sandbox/images/reseau_serveur_utile.py
chiesax/sandbox
3b628e0068c6f7116c3a98d481299158a8bf5de3
[ "MIT" ]
1
2015-12-29T09:38:21.000Z
2015-12-30T16:16:19.000Z
sandbox/images/reseau_serveur_utile.py
chiesax/sandbox
3b628e0068c6f7116c3a98d481299158a8bf5de3
[ "MIT" ]
null
null
null
#!/usr/bin/python3.4 # -*-coding:utf-8 -* """ https://openclassrooms.com/courses/apprenez-a-programmer-en-python/le-reseau ร€ LA FIN LE TERMINAL QUITTE PYTHON : DONC CE PROGRAMME NE MARCHE PAS !! """ # Les deux lignes prรฉcรฉdentes serviraient si je rendais ce fichier # directement exรฉcutable import socket # Construi...
27.844444
89
0.739824
0
0
0
0
0
0
0
0
900
0.714286
3e9b7d58a68d506fe7a43a816c3f565b193865ec
10,030
py
Python
crawler_shopee.py
HariWu1995/ecommerce_crawlers
578957dbbce2914f8af16c5f21c6529591a9f1d4
[ "CC0-1.0" ]
null
null
null
crawler_shopee.py
HariWu1995/ecommerce_crawlers
578957dbbce2914f8af16c5f21c6529591a9f1d4
[ "CC0-1.0" ]
null
null
null
crawler_shopee.py
HariWu1995/ecommerce_crawlers
578957dbbce2914f8af16c5f21c6529591a9f1d4
[ "CC0-1.0" ]
null
null
null
import os import sys import time from tqdm import tqdm as print_progress import csv import json import logging import numpy as np import pandas as pd import random import cv2 from PIL import Image from matplotlib import pyplot as plt import re import requests from io import BytesIO from bs4 impo...
34.826389
131
0.598006
0
0
0
0
0
0
0
0
2,145
0.213667
3e9c99bd9c44f5d31431b1d6a56ba33cddb063ae
6,584
py
Python
tests/inferbeddings/regularizers/test_regularizers.py
issca/inferbeddings
80492a7aebcdcac21e758514c8af403d77e8594a
[ "MIT" ]
33
2017-07-25T14:31:00.000Z
2019-03-06T09:18:00.000Z
tests/inferbeddings/regularizers/test_regularizers.py
issca/inferbeddings
80492a7aebcdcac21e758514c8af403d77e8594a
[ "MIT" ]
1
2017-08-22T13:49:30.000Z
2017-08-22T13:49:30.000Z
tests/inferbeddings/regularizers/test_regularizers.py
issca/inferbeddings
80492a7aebcdcac21e758514c8af403d77e8594a
[ "MIT" ]
9
2017-10-05T08:50:45.000Z
2019-04-18T12:40:56.000Z
# -*- coding: utf-8 -*- import numpy as np import tensorflow as tf from inferbeddings.regularizers import TransEEquivalentPredicateRegularizer from inferbeddings.regularizers import DistMultEquivalentPredicateRegularizer from inferbeddings.regularizers import ComplExEquivalentPredicateRegularizer from inferbeddings.r...
39.662651
124
0.659326
0
0
0
0
5,925
0.899909
0
0
140
0.021264
3e9de159f87129c1ecdbf87d9939fc63a59cd88b
1,360
py
Python
Chapter 08/8.11_chaos_game.py
ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition
c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e
[ "MIT" ]
120
2018-03-04T07:17:00.000Z
2022-01-25T08:09:57.000Z
Chapter 08/8.11_chaos_game.py
ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition
c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e
[ "MIT" ]
3
2019-03-24T09:32:43.000Z
2020-07-28T07:35:49.000Z
Chapter 08/8.11_chaos_game.py
ACsBlack/Tkinter-GUI-Application-Development-Blueprints-Second-Edition
c6a045fbf5ba3ece5e8a02bbe33ac13bb57b2b8e
[ "MIT" ]
81
2018-04-18T06:51:46.000Z
2022-03-30T01:31:35.000Z
""" Code illustration: 8.11 Chaos Game Tkinter GUI Application Development Blueprints """ import random from tkinter import Tk, Canvas import math WIDTH = 800 HEIGHT = 500 v1 = (float(WIDTH/2), 0.0) v2 = (0.00, float(HEIGHT)) v3 = (float(WIDTH), float(HEIGHT)) last_point = None root = Tk() canvas = Canvas(roo...
21.25
75
0.605147
0
0
0
0
0
0
0
0
111
0.081618
3e9e105d1fe756d9759cec38597f51f376c2fdd7
1,129
py
Python
home/migrations/0010_auto_20150916_1146.py
taedori81/gentlecoffee
62de8ff17c934afdfde188ecc6b9dbfb400d0682
[ "BSD-3-Clause" ]
null
null
null
home/migrations/0010_auto_20150916_1146.py
taedori81/gentlecoffee
62de8ff17c934afdfde188ecc6b9dbfb400d0682
[ "BSD-3-Clause" ]
null
null
null
home/migrations/0010_auto_20150916_1146.py
taedori81/gentlecoffee
62de8ff17c934afdfde188ecc6b9dbfb400d0682
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import wagtail.wagtailcore.fields import wagtail.wagtailcore.blocks import datetime import wagtail.wagtailimages.blocks class Migration(migrations.Migration): dependencies = [ ('home', '0009_subscrib...
33.205882
266
0.648361
900
0.797166
0
0
0
0
0
0
164
0.145261
3e9f295d7038dec0577aca1bae6bbad75edf434c
2,083
py
Python
src/hard/multi_search.py
JadielTeofilo/General-Algorithms
dfcf86c6ecd727573079f8971187c47bdb7a37bb
[ "MIT" ]
null
null
null
src/hard/multi_search.py
JadielTeofilo/General-Algorithms
dfcf86c6ecd727573079f8971187c47bdb7a37bb
[ "MIT" ]
null
null
null
src/hard/multi_search.py
JadielTeofilo/General-Algorithms
dfcf86c6ecd727573079f8971187c47bdb7a37bb
[ "MIT" ]
null
null
null
""" 17.17 Multi Search: Given a string b and an array of smaller strings T, design a method to search b for each small string in T. In - text: str, words: List[str] Out - List[str] lgget`s go to the party tonight? ['go', 'test', 'jump'] return ['go'] O(k^2 + n*t) time complexity, where k is the size of text, n is ...
24.797619
120
0.586174
1,070
0.513682
0
0
0
0
0
0
623
0.299088
3e9f73be09a575abe5d0c2f48b7beb177bd85283
793
py
Python
setup.py
yoarch/replace
5255810c019141f7de03b96c26a9b732d2218597
[ "MIT" ]
null
null
null
setup.py
yoarch/replace
5255810c019141f7de03b96c26a9b732d2218597
[ "MIT" ]
null
null
null
setup.py
yoarch/replace
5255810c019141f7de03b96c26a9b732d2218597
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="replacefs", version="1.2.0", python_requires='>=3', author="yoarch", author_email="[email protected]", description="Search and replace CLI tool for strings on the all system", ...
28.321429
76
0.659521
0
0
0
0
0
0
0
0
377
0.47541
3e9f9ed5bec5e5e254a0bf74367dcc5d5151767d
26
py
Python
tests/unit/test_modulegraph/__init__.py
hawkhai/pyinstaller
016a24479b34de161792c72dde455a81ad4c78ae
[ "Apache-2.0" ]
9,267
2015-01-01T04:08:45.000Z
2022-03-31T11:42:38.000Z
tests/unit/test_modulegraph/__init__.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
5,150
2015-01-01T12:09:56.000Z
2022-03-31T18:06:12.000Z
tests/unit/test_modulegraph/__init__.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
2,101
2015-01-03T10:25:27.000Z
2022-03-30T11:04:42.000Z
""" modulegraph tests """
13
25
0.615385
0
0
0
0
0
0
0
0
25
0.961538
3ea0a1cb7ee908d792303d9bcee0623c9c0029ae
774
py
Python
ZD2.py
Novomlinov/Lab5
bd86f277be60173472202329a86790ca08549c26
[ "MIT" ]
null
null
null
ZD2.py
Novomlinov/Lab5
bd86f277be60173472202329a86790ca08549c26
[ "MIT" ]
null
null
null
ZD2.py
Novomlinov/Lab5
bd86f277be60173472202329a86790ca08549c26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys if __name__ == '__main__': A = list(map(int, input().split())) if len(A) != 10: print("ะะตะฒะตั€ะฝั‹ะน ั€ะฐะทะผะตั€ ัะฟะธัะบะฐ", file=sys.stderr) exit(1) s = 0 for item in A: if not ((item % 2) == 0): s += item x...
25.8
57
0.5
0
0
0
0
0
0
0
0
263
0.302647
3ea4ef2ff77ddb776dc4b7390350caad1477ed17
687
py
Python
elements/requesting.py
pughlab/GENIE-FMI-converter
62009d419ac9ada8bfea2432412e0304724ae842
[ "MIT" ]
null
null
null
elements/requesting.py
pughlab/GENIE-FMI-converter
62009d419ac9ada8bfea2432412e0304724ae842
[ "MIT" ]
1
2019-11-19T16:49:21.000Z
2019-11-19T16:49:21.000Z
elements/requesting.py
pughlab/GENIE-FMI-converter
62009d419ac9ada8bfea2432412e0304724ae842
[ "MIT" ]
1
2019-12-12T04:27:29.000Z
2019-12-12T04:27:29.000Z
import requests import re import sys xml = re.compile(r'<.+>|\n') # queries using closed intervals [x,y], 1-based def get_segment(url, chrom, coords): r = requests.get(url, params={'segment': "{}:{},{}".format(chrom, *coords)}) if r.status_code == requests.codes.ok: return re.sub(xml, '', r.text).uppe...
28.625
105
0.611354
0
0
0
0
0
0
0
0
174
0.253275
3ea642dd21695e59f25c2f55930176a71d62c99c
82
py
Python
python-analysers/src/test/resources/org/jetbrains/research/lupa/pythonAnalysis/imports/analysis/psi/importStatementsData/in_3_several_imports.py
JetBrains-Research/Lupa
c105487621564c60cae17395bf32eb40868ceb89
[ "Apache-2.0" ]
16
2022-01-11T00:32:20.000Z
2022-03-25T21:40:52.000Z
python-analysers/src/test/resources/org/jetbrains/research/lupa/pythonAnalysis/imports/analysis/psi/importStatementsData/in_3_several_imports.py
nbirillo/Kotlin-Analysis
73c3b8a59bf40ed932bb512f30b0ff31f251af40
[ "Apache-2.0" ]
12
2021-07-05T11:42:01.000Z
2021-12-23T07:57:54.000Z
python-analysers/src/test/resources/org/jetbrains/research/lupa/pythonAnalysis/imports/analysis/psi/importStatementsData/in_3_several_imports.py
nbirillo/Kotlin-Analysis
73c3b8a59bf40ed932bb512f30b0ff31f251af40
[ "Apache-2.0" ]
3
2021-09-10T13:21:54.000Z
2021-11-23T11:37:55.000Z
import cmath import math import logging import random import plotly import pandas
11.714286
14
0.853659
0
0
0
0
0
0
0
0
0
0
3ea72258a32209376e761138207efecbaefac54c
6,916
py
Python
tf_agents/policies/categorical_q_policy.py
gregorgebhardt/agents
b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/categorical_q_policy.py
gregorgebhardt/agents
b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/categorical_q_policy.py
gregorgebhardt/agents
b6aeae5e0ed68dd4e4ec2ca73ef971254d3208f3
[ "Apache-2.0" ]
3
2019-09-08T22:05:56.000Z
2020-05-27T08:27:15.000Z
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # 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...
41.915152
78
0.686669
5,783
0.836177
0
0
5,803
0.839069
0
0
3,189
0.461105
3ea75b500ba52b9dd243fdb83d052c734dde9d13
477
py
Python
invenio_oarepo_oai_pmh_harvester/rules/uk/creator.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
invenio_oarepo_oai_pmh_harvester/rules/uk/creator.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
invenio_oarepo_oai_pmh_harvester/rules/uk/creator.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
from invenio_oarepo_oai_pmh_harvester.register import Decorators from invenio_oarepo_oai_pmh_harvester.rules.utils import iter_array from invenio_oarepo_oai_pmh_harvester.transformer import OAITransformer @Decorators.rule("xoai") @Decorators.pre_rule("/dc/creator") def transform_creator(paths, el, results, phase, **k...
29.8125
71
0.735849
0
0
0
0
269
0.563941
0
0
41
0.085954
3ea87068d5cb5b9e7405c8d14e13c79ddfb0503e
639
py
Python
tests/test_queries.py
guillaumevincent/rangevoting
a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36
[ "MIT" ]
4
2015-03-23T09:48:32.000Z
2020-08-25T13:19:08.000Z
tests/test_queries.py
guillaumevincent/rangevoting
a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36
[ "MIT" ]
4
2015-04-27T23:50:28.000Z
2015-09-23T07:05:25.000Z
tests/test_queries.py
guillaumevincent/rangevoting
a8a1d5c7aabf2ea30fd89453e7bdec53d981ca36
[ "MIT" ]
2
2015-09-21T08:58:25.000Z
2020-08-25T13:19:14.000Z
import unittest import queries class QueriesTestCase(unittest.TestCase): def test_get_rangevote_query(self): uuid = 1 get_rangevote_query = queries.GetRangeVoteQuery(uuid) self.assertEqual(uuid, get_rangevote_query.uuid) def test_get_rangevote_results_query(self): uuid = 1 ...
24.576923
76
0.746479
604
0.945227
0
0
0
0
0
0
0
0
3ea985da6ab078979759098314b0008ca7d1ea59
1,490
py
Python
cgatpipelines/tools/pipeline_docs/pipeline_windows/trackers/GenomicContext.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
cgatpipelines/tools/pipeline_docs/pipeline_windows/trackers/GenomicContext.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
cgatpipelines/tools/pipeline_docs/pipeline_windows/trackers/GenomicContext.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
from MedipReport import ProjectTracker from CGATReport.Tracker import SingleTableTrackerRows, \ SingleTableTrackerEdgeList class ContextSummary(ProjectTracker, SingleTableTrackerRows): table = "context_stats" class GatFold(ProjectTracker, SingleTableTrackerEdgeList): '''fold change matrix.''' row =...
24.032258
76
0.642953
960
0.644295
0
0
0
0
0
0
403
0.27047
3ead938794e4c6cd2d0971d9e594b96ceaee54b7
6,852
py
Python
interfaces/withdrawal_gui.py
firminoneto11/terceiro-projeto-curso-python
685a0e6fafdc07a28a4e7589ac40db0de61737c0
[ "MIT" ]
1
2021-04-07T00:28:41.000Z
2021-04-07T00:28:41.000Z
interfaces/withdrawal_gui.py
firminoneto11/terceiro-projeto-curso-python
685a0e6fafdc07a28a4e7589ac40db0de61737c0
[ "MIT" ]
null
null
null
interfaces/withdrawal_gui.py
firminoneto11/terceiro-projeto-curso-python
685a0e6fafdc07a28a4e7589ac40db0de61737c0
[ "MIT" ]
null
null
null
from tkinter import * from interfaces.functions import centralize from tkinter import messagebox from interfaces.functions import update_session_data_csv, update_clients_csv, get_current_balance class WithdrawalGUI: def __init__(self, frame, label): """ This __init__ method initializes the sub wi...
48.253521
120
0.597052
6,664
0.971145
0
0
0
0
0
0
2,636
0.384145
3eaea2f364b0232cd2155f284fa3e784667552cf
321
py
Python
card_collector_db/urls.py
tyhunt99/card-collector-db
932bd829eb46f9492e6a25326140823629161bab
[ "MIT" ]
null
null
null
card_collector_db/urls.py
tyhunt99/card-collector-db
932bd829eb46f9492e6a25326140823629161bab
[ "MIT" ]
4
2020-06-05T20:53:52.000Z
2022-02-10T08:32:51.000Z
card_collector_db/urls.py
tyhunt99/card-collector-db
932bd829eb46f9492e6a25326140823629161bab
[ "MIT" ]
null
null
null
''' cardcollectordb URL Configuration ''' from django.contrib import admin from django.urls import include, path from account.views import SignUp urlpatterns = [ path('admin/', admin.site.urls), path('account/', include('account.urls'), name='account'), path('signup/', SignUp.as_view(), name='signup'), ]...
21.4
62
0.697819
0
0
0
0
0
0
0
0
99
0.308411
3eaf7ae8895d39770420351b1a65c6dd69d2f75e
1,829
py
Python
sdk/python/kfp/v2/components/utils.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
1
2021-10-23T00:39:47.000Z
2021-10-23T00:39:47.000Z
sdk/python/kfp/v2/components/utils.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
null
null
null
sdk/python/kfp/v2/components/utils.py
ryansteakley/pipelines
98677b2190fb327be68e4bb0d00c520593707f21
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
31.534483
77
0.689995
0
0
0
0
0
0
0
0
1,218
0.665938
3eafedfb7f7bd2c80bdda6855f91326da49ebb9e
3,068
py
Python
backend/test/notification_tests/notification_rest_tests.py
raphaelrpl/portal
9e84e52a73500390187d3fc7c4871cf8a3620231
[ "MIT" ]
null
null
null
backend/test/notification_tests/notification_rest_tests.py
raphaelrpl/portal
9e84e52a73500390187d3fc7c4871cf8a3620231
[ "MIT" ]
null
null
null
backend/test/notification_tests/notification_rest_tests.py
raphaelrpl/portal
9e84e52a73500390187d3fc7c4871cf8a3620231
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from datetime import datetime, date from decimal import Decimal from base import GAETestCase from notification_app.notification_model import Notification from routes.notifications import rest from gaegraph.model import Node from mock impor...
38.835443
97
0.712842
2,701
0.880378
0
0
0
0
0
0
128
0.041721
3eb1886d18a07c578c32647296635bbe0ed29b6d
285
py
Python
yamlcfg/__init__.py
RiskIQ/pyyamlcfg
93affb9dfdbae7deebd60b50b23b7036682866e4
[ "BSD-2-Clause" ]
2
2016-05-25T13:50:14.000Z
2017-08-08T18:24:04.000Z
yamlcfg/__init__.py
RiskIQ/pyyamlcfg
93affb9dfdbae7deebd60b50b23b7036682866e4
[ "BSD-2-Clause" ]
2
2015-09-13T12:48:50.000Z
2019-04-25T10:26:00.000Z
yamlcfg/__init__.py
RiskIQ/pyyamlcfg
93affb9dfdbae7deebd60b50b23b7036682866e4
[ "BSD-2-Clause" ]
3
2016-04-29T07:12:44.000Z
2019-04-08T07:52:14.000Z
#!/usr/bin/env python ''' yamlcfg Bring in Configs into namespace ''' from yamlcfg.conf import Config as BaseConfig from yamlcfg.yml import YAMLConfig YMLConfig = YAMLConfig YamlConfig = YAMLConfig from yamlcfg.util import normalize, validate_ext from yamlcfg.env import check_env
19
48
0.8
0
0
0
0
0
0
0
0
69
0.242105
3eb1b1746b5ee00b2b35cef5dad3b395d8706a08
294
py
Python
www/bigghosthead/bigghosthead/items.py
baijiege9/BigGhostHead
1ffa0bf390bad707e4fc902f9af98a4c73eea554
[ "BSD-3-Clause" ]
null
null
null
www/bigghosthead/bigghosthead/items.py
baijiege9/BigGhostHead
1ffa0bf390bad707e4fc902f9af98a4c73eea554
[ "BSD-3-Clause" ]
null
null
null
www/bigghosthead/bigghosthead/items.py
baijiege9/BigGhostHead
1ffa0bf390bad707e4fc902f9af98a4c73eea554
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from scrapy.item import Item, Field class BigghostheadItem(Item): # ็”ตๅ•†็ฝ‘็ซ™็š„fields productId = Field() title = Field()# ๅ•†ๅ“ store = Field()# ๅบ—้“บ #ๆ–ฐ้—ปๅšๅฎข็š„fields text = Field()# ๆ–‡ๆœฌ keywords = Field()# ๅ…ณ้”ฎ่ฏ comment = Field() productId = Field()
22.615385
35
0.602041
271
0.816265
0
0
0
0
0
0
103
0.310241
3eb626e1df9d6b1845d27917297cdbee245c41fb
5,008
py
Python
protos/gen/python/protos/public/modeldb/Lineage_pb2_grpc.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
protos/gen/python/protos/public/modeldb/Lineage_pb2_grpc.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
protos/gen/python/protos/public/modeldb/Lineage_pb2_grpc.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from ..modeldb import Lineage_pb2 as modeldb_dot_Lineage__pb2 class LineageServiceStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. Args: cha...
43.547826
103
0.76877
3,161
0.63119
0
0
0
0
0
0
1,141
0.227835
3ebb613990f10c469e7937a90350ba7e43ef9d8e
10,709
py
Python
src/sparnn/layers/basic/conv_lstm_layer.py
JoeinChina/DeepWeather
2677edc16d9865ec98401aaf121aaabd24974aaf
[ "MIT" ]
1
2020-07-23T04:13:02.000Z
2020-07-23T04:13:02.000Z
src/sparnn/layers/basic/conv_lstm_layer.py
JoeBuzh/DeepWeather
2677edc16d9865ec98401aaf121aaabd24974aaf
[ "MIT" ]
null
null
null
src/sparnn/layers/basic/conv_lstm_layer.py
JoeBuzh/DeepWeather
2677edc16d9865ec98401aaf121aaabd24974aaf
[ "MIT" ]
null
null
null
import numpy import logging import theano import theano.tensor as TT from theano.gradient import grad_clip from sparnn.utils import * from sparnn.layers import Layer logger = logging.getLogger(__name__) class ConvLSTMLayer(Layer): def __init__(self, layer_param): super(ConvLSTMLayer, self).__init__(lay...
59.494444
127
0.530488
10,500
0.980484
0
0
0
0
0
0
1,234
0.11523
3ebbdc540dc8fa6d2e3f28778c968adced8e307f
779
py
Python
build_script.py
lammda/mercari-solution
e6e216d33d19b62fdd4fb2a906bd904ede9c5aaa
[ "MIT" ]
249
2018-03-31T13:08:55.000Z
2022-02-23T16:13:16.000Z
build_script.py
arita37/mercari-solution
374301ad1c32cbc93dcc40313d5d7bb9c5503746
[ "MIT" ]
1
2018-10-24T00:49:12.000Z
2019-08-28T17:37:00.000Z
build_script.py
arita37/mercari-solution
374301ad1c32cbc93dcc40313d5d7bb9c5503746
[ "MIT" ]
84
2018-03-31T20:32:10.000Z
2022-03-06T10:56:58.000Z
import base64 import glob import gzip def build_script(submission_name): script_template = open('script_template.tmpl') script = open('script/script_{name}.py'.format(name=submission_name), 'wt') file_data = {} for fn in glob.glob('mercari/*.py') + glob.glob('mercari/*.pyx'): content = open(f...
31.16
114
0.661104
0
0
0
0
0
0
0
0
136
0.174583
3ebc05f1d094795c30a0aca20105e5ff7a3813fa
596
py
Python
data_visualization_gui/src/interactive.py
bbueno5000/DataGUI
940fcd0fb8dbde22350eacd538a8a1c244eb28ea
[ "MIT" ]
null
null
null
data_visualization_gui/src/interactive.py
bbueno5000/DataGUI
940fcd0fb8dbde22350eacd538a8a1c244eb28ea
[ "MIT" ]
2
2021-03-31T19:46:50.000Z
2021-12-13T20:37:15.000Z
data_visualization_gui/src/interactive.py
bbueno5000/DataGUI
940fcd0fb8dbde22350eacd538a8a1c244eb28ea
[ "MIT" ]
null
null
null
""" DOCSTRING """ import dash import dash.dependencies as dependencies import dash_core_components.Graph as Graph import dash_core_components.Input as Input import dash_html_components.Div as Div import dash_html_components.H1 as H1 app = dash.Dash() app.layout = Div(children=[Input(id='input', value='blank', type='te...
35.058824
92
0.753356
0
0
0
0
224
0.375839
0
0
90
0.151007
3ebc6bb0c418253d021814396ba94a1161d06814
18,106
py
Python
pidlearningscript.py
mtw30/ml_accumualtor_controller
d80d62ac66ccea9e6f089d9deebf796678fa818b
[ "Apache-2.0" ]
null
null
null
pidlearningscript.py
mtw30/ml_accumualtor_controller
d80d62ac66ccea9e6f089d9deebf796678fa818b
[ "Apache-2.0" ]
null
null
null
pidlearningscript.py
mtw30/ml_accumualtor_controller
d80d62ac66ccea9e6f089d9deebf796678fa818b
[ "Apache-2.0" ]
null
null
null
# My script to process the generated data # The temperature we want to aim for aimTemperature = float(30 + 273) # To halt the script import sys # Numpy matrices import numpy as np #Used to get the epoch time to calculate the time difference dt import datetime import time #Regular expressions import re # Generate rando...
37.486542
122
0.643378
5,426
0.29968
0
0
0
0
0
0
8,099
0.44731
3ebd20504757b6e90b9dac2cead03c7e3e9835fc
2,188
py
Python
graphjson.py
suprfanz/flask-fb-neo4j-alchemy
8ee5692bdbddc94342b38144d299e9d1a1b0b68d
[ "MIT" ]
2
2018-03-09T03:10:49.000Z
2020-10-22T10:28:03.000Z
graphjson.py
suprfanz/flask-fb-neo4j-alchemy
8ee5692bdbddc94342b38144d299e9d1a1b0b68d
[ "MIT" ]
null
null
null
graphjson.py
suprfanz/flask-fb-neo4j-alchemy
8ee5692bdbddc94342b38144d299e9d1a1b0b68d
[ "MIT" ]
null
null
null
""" graphjson module pull an event from neo4j and creates graphjson formated file to be used with AlchemyJS Written by Ray Bernard [email protected] """ import json from neo4j.v1 import GraphDatabase, basic_auth from config import neo4j_dbip, neo4j_admin, neo4j_password session = GraphDatabase.driver("bolt://{}:7687"...
29.173333
112
0.664534
0
0
0
0
0
0
0
0
944
0.431444
3ebd492c672da94f9dbeb381a25939527becda92
2,507
py
Python
dataset.py
kisom/aipnd-classifier
a361fc5f25402bbdfb23ddc08ad1b071fff50210
[ "MIT" ]
null
null
null
dataset.py
kisom/aipnd-classifier
a361fc5f25402bbdfb23ddc08ad1b071fff50210
[ "MIT" ]
null
null
null
dataset.py
kisom/aipnd-classifier
a361fc5f25402bbdfb23ddc08ad1b071fff50210
[ "MIT" ]
null
null
null
""" dataset.py defines a container for a training dataset. """ import os import torch from torchvision import datasets, transforms class Dataset: """ Dataset encapsulations training, validation, and testing datasets from a single top-level directory. """ def __init__(self, data_dir, batchsize): ...
32.986842
88
0.618668
2,373
0.94655
0
0
0
0
0
0
332
0.132429
3ebef9e4fbaf39a788a4ad55fc4f3d9f0f5242a4
3,659
py
Python
site-packages/cinderclient/tests/unit/v2/test_cgsnapshots.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
site-packages/cinderclient/tests/unit/v2/test_cgsnapshots.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
1
2018-09-10T23:44:02.000Z
2018-09-12T16:28:07.000Z
site-packages/cinderclient/tests/unit/v2/test_cgsnapshots.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
2
2018-09-07T23:17:23.000Z
2019-01-11T16:10:08.000Z
# Copyright (C) 2012 - 2014 EMC Corporation. # # 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 # # Un...
38.515789
78
0.639519
2,898
0.79202
0
0
0
0
0
0
1,159
0.316753
3ebf6af93d750f46cb0ac8a35e125abd85daa7b2
710
py
Python
mlps/core/data/cnvrtr/functions/IPTransferDivide.py
seculayer/automl-mlps
80569909ec1c25db1ceafbb85b27d069d1a66aa3
[ "Apache-2.0" ]
null
null
null
mlps/core/data/cnvrtr/functions/IPTransferDivide.py
seculayer/automl-mlps
80569909ec1c25db1ceafbb85b27d069d1a66aa3
[ "Apache-2.0" ]
2
2022-03-31T07:39:59.000Z
2022-03-31T07:40:18.000Z
mlps/core/data/cnvrtr/functions/IPTransferDivide.py
seculayer/AutoAPE-mlps
80569909ec1c25db1ceafbb85b27d069d1a66aa3
[ "Apache-2.0" ]
1
2021-11-03T09:09:07.000Z
2021-11-03T09:09:07.000Z
# -*- coding: utf-8 -*- # Author : Manki Baek # e-mail : [email protected] # Powered by Seculayer ยฉ 2021 Service Model Team from mlps.core.data.cnvrtr.ConvertAbstract import ConvertAbstract class IPTransferDivide(ConvertAbstract): def __init__(self, **kwargs): super().__init__(**kwargs) sel...
24.482759
65
0.612676
367
0.504814
0
0
0
0
0
0
216
0.297111
3ec23576c70ac623990dae2bb8e27678909b68f6
2,327
py
Python
dataAnalytics/roomAnalytics.py
PeterJWei/EnergyFootprinting
0396efba7d4e6863452e322f9f7561c6cd756478
[ "MIT" ]
null
null
null
dataAnalytics/roomAnalytics.py
PeterJWei/EnergyFootprinting
0396efba7d4e6863452e322f9f7561c6cd756478
[ "MIT" ]
null
null
null
dataAnalytics/roomAnalytics.py
PeterJWei/EnergyFootprinting
0396efba7d4e6863452e322f9f7561c6cd756478
[ "MIT" ]
null
null
null
import DBScrape import calendar import datetime import time import csv import sys import os days = 30 class roomAnalytics: energyDictionary = {} energyCounts = {} def backspace(self): print '\r', def roomData(self): databaseScrape = DBScrape.DBScrape() t = (2017, 5, 1, 0, 0, 0, 0, 0, 0) beginTime = calend...
25.021505
96
0.638161
2,169
0.932101
0
0
0
0
0
0
147
0.063171
3ec715aa850089a5f7b7b582922c73d2960606c8
778
py
Python
tests/test_kubernetes_master.py
damoxc/charm-kubernetes-master
624095b278e9f235a03d061132e9fdf029d45b71
[ "Apache-2.0" ]
null
null
null
tests/test_kubernetes_master.py
damoxc/charm-kubernetes-master
624095b278e9f235a03d061132e9fdf029d45b71
[ "Apache-2.0" ]
null
null
null
tests/test_kubernetes_master.py
damoxc/charm-kubernetes-master
624095b278e9f235a03d061132e9fdf029d45b71
[ "Apache-2.0" ]
null
null
null
import pytest from unittest import mock from reactive import kubernetes_master from charms.reactive import endpoint_from_flag, remove_state from charmhelpers.core import hookenv def patch_fixture(patch_target): @pytest.fixture() def _fixture(): with mock.patch(patch_target) as m: yield m ...
27.785714
76
0.767352
0
0
158
0.203085
101
0.12982
0
0
98
0.125964
3ec94f77c122b98fdf7c96a211b8a9024dac0bae
57,058
py
Python
pysnmp-with-texts/HH3C-DOT3-EFM-EPON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/HH3C-DOT3-EFM-EPON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/HH3C-DOT3-EFM-EPON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HH3C-DOT3-EFM-EPON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HH3C-DOT3-EFM-EPON-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:26:25 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
169.311573
5,121
0.783483
0
0
0
0
0
0
0
0
25,010
0.438326
3ecbd115bcfdc5ce591f196d4fe1390310b89ddc
576
py
Python
example/runscripts/nhilton/run_batch_job.py
weegreenblobbie/pith-tool
25708bd2354cc5d97eb0c0a0046ca4704e4ced0a
[ "MIT" ]
2
2016-03-04T19:25:29.000Z
2016-03-10T02:22:36.000Z
example/runscripts/nhilton/run_batch_job.py
weegreenblobbie/pith-tool
25708bd2354cc5d97eb0c0a0046ca4704e4ced0a
[ "MIT" ]
10
2016-03-01T03:23:17.000Z
2017-04-27T00:37:09.000Z
example/runscripts/nhilton/run_batch_job.py
weegreenblobbie/pith-tool
25708bd2354cc5d97eb0c0a0046ca4704e4ced0a
[ "MIT" ]
null
null
null
import argparse from module_a.fun_1 import fun_1 from module_c.fun_4 import fun_4 from external_a.extra_fun import extra_fun def main(): parser = argparse.ArgumentParser() parser.add_argument( 'input_txt_file', help = 'Some input file', ) args = parser.parse_args() print('Run...
16
46
0.626736
0
0
0
0
0
0
0
0
111
0.192708
3eccd3d6d89a4b4cb5aaf3d2889bce0836f4e413
395
py
Python
DFS BFS/Leetcode 1436. Destination City.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
31
2020-06-23T00:40:04.000Z
2022-01-08T11:06:24.000Z
DFS BFS/Leetcode 1436. Destination City.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
null
null
null
DFS BFS/Leetcode 1436. Destination City.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
7
2020-04-30T08:46:03.000Z
2021-08-28T16:25:54.000Z
class Solution: def destCity(self, paths: List[List[str]]) -> str: dic = collections.defaultdict(list) for [x,y] in paths: dic[x].append(y) res = set() stack = [] stack.append(paths[0][0]) while stack: while dic[stack[-1]]: ...
30.384615
54
0.473418
395
1
0
0
0
0
0
0
0
0
3eccf323bfafeef7616f6d78bb34226073a6758e
3,039
py
Python
i18n/listeners/proxyContainer/ListShouldContainSubListProxy.py
Rexmen/i18n
b615f2d1e06b58f4647f1b269fc37d7921bc5c4b
[ "MIT" ]
null
null
null
i18n/listeners/proxyContainer/ListShouldContainSubListProxy.py
Rexmen/i18n
b615f2d1e06b58f4647f1b269fc37d7921bc5c4b
[ "MIT" ]
null
null
null
i18n/listeners/proxyContainer/ListShouldContainSubListProxy.py
Rexmen/i18n
b615f2d1e06b58f4647f1b269fc37d7921bc5c4b
[ "MIT" ]
null
null
null
from .Proxy import Proxy from robot.libraries.BuiltIn import BuiltIn import sys from robot.libraries.Screenshot import Screenshot from robot.api import logger import I18nListener as i18n import ManyTranslations as ui from robot.utils import unic class ListShouldContainSubListProxy(Proxy): def __init__(self, arg_fo...
50.65
137
0.58901
2,792
0.918723
0
0
0
0
0
0
199
0.065482
3ecdb050826a3f9850819307adc5e13bc204f458
3,218
py
Python
dl_bounds/src/experiments/exp_bad_minima_branchout.py
google/dl_bounds
b38fbd73f30d2fd8d1b57ad8706c07a223689365
[ "Apache-2.0" ]
12
2018-02-23T11:57:26.000Z
2021-04-20T20:38:16.000Z
dl_bounds/src/experiments/exp_bad_minima_branchout.py
google/dl_bounds
b38fbd73f30d2fd8d1b57ad8706c07a223689365
[ "Apache-2.0" ]
null
null
null
dl_bounds/src/experiments/exp_bad_minima_branchout.py
google/dl_bounds
b38fbd73f30d2fd8d1b57ad8706c07a223689365
[ "Apache-2.0" ]
7
2018-06-28T04:10:45.000Z
2021-10-14T01:18:59.000Z
# coding=utf-8 # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
32.836735
75
0.724984
2,215
0.688316
0
0
0
0
0
0
1,071
0.332815
3ecdb707d9b5224c78e8710bc0080bbb309fdaf0
279
py
Python
config.py
DiagnoSkin/diagnoskin-server
e1cae10423323cc681d6acf6cc5d1511e6e2cae5
[ "Apache-2.0" ]
null
null
null
config.py
DiagnoSkin/diagnoskin-server
e1cae10423323cc681d6acf6cc5d1511e6e2cae5
[ "Apache-2.0" ]
4
2021-06-08T20:42:49.000Z
2022-03-12T00:08:54.000Z
config.py
DiagnoSkin/diagnoskin-server
e1cae10423323cc681d6acf6cc5d1511e6e2cae5
[ "Apache-2.0" ]
null
null
null
import json class Config: def __init__(self, configPath): with open(configPath) as configFile: configFileContent = json.load(configFile) self.imageHeight = configFileContent['imageHeight'] self.imageWidth = configFileContent['imageWidth']
34.875
59
0.698925
266
0.953405
0
0
0
0
0
0
25
0.089606
3ece59f5395837726a33f7c182a3a996e31afa97
699
py
Python
World 1/If...Else/ex029 - Eletronic Radar.py
MiguelChichorro/PythonExercises
3b2726e7d9ef92c1eb6b977088692c42a2a7b86e
[ "MIT" ]
2
2021-04-23T19:18:06.000Z
2021-05-15T17:45:21.000Z
World 1/If...Else/ex029 - Eletronic Radar.py
MiguelChichorro/PythonExercises
3b2726e7d9ef92c1eb6b977088692c42a2a7b86e
[ "MIT" ]
1
2021-05-14T00:29:23.000Z
2021-05-14T00:29:23.000Z
World 1/If...Else/ex029 - Eletronic Radar.py
MiguelChichorro/PythonExercises
3b2726e7d9ef92c1eb6b977088692c42a2a7b86e
[ "MIT" ]
1
2021-05-14T00:19:33.000Z
2021-05-14T00:19:33.000Z
from time import sleep colors = {"clean": "\033[m", "red": "\033[31m", "green": "\033[32m", "yellow": "\033[33m", "blue": "\033[34m", "purple": "\033[35m", "cian": "\033[36m"} v = float(input("Enter the car speed was: ")) tic = (v - 80) * 7 print("{}Loading......
38.833333
103
0.546495
0
0
0
0
0
0
0
0
354
0.506438
3ece62c6129ee74730b7e33194559a50dbbdff89
1,913
py
Python
687.longest-univalue-path.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
687.longest-univalue-path.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
687.longest-univalue-path.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=687 lang=python3 # # [687] Longest Univalue Path # # https://leetcode.com/problems/longest-univalue-path/description/ # # algorithms # Easy (34.69%) # Likes: 1312 # Dislikes: 351 # Total Accepted: 76.5K # Total Submissions: 218.3K # Testcase Example: '[5,4,5,1,1,5]' # # Given a binary tre...
21.021978
78
0.504966
723
0.373643
0
0
0
0
0
0
1,141
0.589664
3ecfb19dcb608f2b63fc8fd0aece69c83033985f
6,085
py
Python
scripts/wordnet.py
WladimirSidorenko/SentimentLexicon
0d7203b7b7e3ca5d11759fdad656f775fa5d6e95
[ "MIT" ]
13
2016-08-03T18:46:02.000Z
2022-02-22T22:30:19.000Z
scripts/wordnet.py
WladimirSidorenko/SentimentLexicon
0d7203b7b7e3ca5d11759fdad656f775fa5d6e95
[ "MIT" ]
2
2019-10-22T13:03:48.000Z
2019-12-05T21:41:36.000Z
scripts/wordnet.py
WladimirSidorenko/SentimentLexicon
0d7203b7b7e3ca5d11759fdad656f775fa5d6e95
[ "MIT" ]
5
2019-12-25T13:53:18.000Z
2020-06-05T20:47:31.000Z
#!/usr/bin/env python2.7 # -*- coding: utf-8; mode: python; -*- """ Module for reading and processing GemaNet files. Constants: POS - list of parts-of-speech present in GermaNet RELTYPES - types of GermaNet relations Classes: Germanet - main class for processing GermaNet files """ #################################...
35.794118
79
0.517173
4,434
0.728677
0
0
0
0
0
0
2,999
0.492851
3ed5304c84ec79c59f7ad03780e20d83636a1751
493
py
Python
exec_ops/python/run.py
orm011/skyhookml
0cec9011ffbece3348cf56275f027c4b5b31b4d4
[ "MIT" ]
null
null
null
exec_ops/python/run.py
orm011/skyhookml
0cec9011ffbece3348cf56275f027c4b5b31b4d4
[ "MIT" ]
null
null
null
exec_ops/python/run.py
orm011/skyhookml
0cec9011ffbece3348cf56275f027c4b5b31b4d4
[ "MIT" ]
null
null
null
import sys sys.path.append('./python') import skyhook.common as lib import io import json import math import numpy import os import os.path import skimage.io import struct user_func = None # user_func will be defined by the exec call in meta_func def callback(*args): return user_func(*args) def meta_func(meta):...
17.607143
57
0.720081
0
0
0
0
0
0
0
0
111
0.225152
3ed7524764506c9bf8a8c074a4bfe30279004c01
36
py
Python
example_package/model_eval.py
aaronengland/example_package
1e45fccc27af57b9d2bb58e16e58ef57d81b656e
[ "MIT" ]
null
null
null
example_package/model_eval.py
aaronengland/example_package
1e45fccc27af57b9d2bb58e16e58ef57d81b656e
[ "MIT" ]
null
null
null
example_package/model_eval.py
aaronengland/example_package
1e45fccc27af57b9d2bb58e16e58ef57d81b656e
[ "MIT" ]
null
null
null
# model eval def roc_curve(): pass
9
16
0.694444
0
0
0
0
0
0
0
0
12
0.333333
3ed921fc020d2c520c2bb21c3fba179cbc45d373
2,836
py
Python
ducky/asm/lexer.py
happz/ducky
1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad
[ "MIT" ]
3
2015-04-25T18:25:37.000Z
2017-08-31T20:52:29.000Z
ducky/asm/lexer.py
happz/ducky-legacy
1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad
[ "MIT" ]
27
2015-01-06T21:59:22.000Z
2016-11-12T07:31:39.000Z
ducky/asm/lexer.py
happz/ducky-legacy
1c6a875ca5a7a9cc71836bad5b7e45cc398d42ad
[ "MIT" ]
1
2017-05-14T18:52:34.000Z
2017-05-14T18:52:34.000Z
import ply.lex # # Lexer setup # instructions = ( 'NOP', 'INT', 'IPI', 'RETINT', 'CALL', 'RET', 'CLI', 'STI', 'HLT', 'RST', 'IDLE', 'PUSH', 'POP', 'INC', 'DEC', 'ADD', 'SUB', 'CMP', 'J', 'AND', 'OR', 'XOR', 'NOT', 'SHL', 'SHR', 'SHRS', 'LW', 'LS', 'LB', 'LI', 'LIU', 'LA', 'STW', 'STS', 'STB', 'MOV', 'SWP', 'MU...
27.269231
112
0.563822
248
0.087447
0
0
0
0
0
0
1,152
0.406206
3ed9543d76f8e0c91108d623c8ce3f5c3c426593
3,965
py
Python
MyUser/api/tests/allauth_login.py
mrvafa/blog-api
cef0773b3199bfb785126ce82567fd7fc78e6c89
[ "MIT" ]
null
null
null
MyUser/api/tests/allauth_login.py
mrvafa/blog-api
cef0773b3199bfb785126ce82567fd7fc78e6c89
[ "MIT" ]
null
null
null
MyUser/api/tests/allauth_login.py
mrvafa/blog-api
cef0773b3199bfb785126ce82567fd7fc78e6c89
[ "MIT" ]
null
null
null
from django.test import TestCase, override_settings from django.urls import reverse from rest_framework.test import APIClient from MyUser.models import User @override_settings(ACCOUNT_EMAIL_VERIFICATION='none') class TestAllAuthLogin(TestCase): def setUp(self): self.client = APIClient() self.user...
50.189873
118
0.64691
3,750
0.945776
0
0
3,804
0.959395
0
0
1,129
0.284741
3ed9a5ed8b96c7fface62084d850daafe13c098c
1,478
py
Python
flashcards/commands/sets.py
zergov/flashcards
4d1b1c277585b95517ed6c00ceff7555c8c131eb
[ "MIT" ]
21
2016-06-13T00:51:49.000Z
2021-03-20T05:04:23.000Z
flashcards/commands/sets.py
zergov/flashcards
4d1b1c277585b95517ed6c00ceff7555c8c131eb
[ "MIT" ]
11
2016-06-10T10:17:57.000Z
2020-01-30T15:14:35.000Z
flashcards/commands/sets.py
zergov/flashcards
4d1b1c277585b95517ed6c00ceff7555c8c131eb
[ "MIT" ]
4
2017-01-02T13:26:21.000Z
2021-07-07T04:20:00.000Z
""" flashcards.commands.sets ~~~~~~~~~~~~~~~~~~~ Contains the commands and subcommands related to the sets resource. """ import os import click from flashcards import sets from flashcards import storage @click.group('sets') def sets_group(): """Command related to the StudySet object """ pass @click.comma...
25.482759
78
0.703654
0
0
0
0
1,202
0.813261
0
0
697
0.471583
3ed9dea01e0c68f96f2ada5e7ccd8ced87c473be
329
py
Python
legiti_challenge/feature_store_pipelines/user/__init__.py
rafaelleinio/legiti-challenge
5f15cb759d13e23292dffd103bc63583c934bf8b
[ "MIT" ]
1
2021-04-01T19:55:51.000Z
2021-04-01T19:55:51.000Z
legiti_challenge/feature_store_pipelines/user/__init__.py
rafaelleinio/legiti-challenge
5f15cb759d13e23292dffd103bc63583c934bf8b
[ "MIT" ]
null
null
null
legiti_challenge/feature_store_pipelines/user/__init__.py
rafaelleinio/legiti-challenge
5f15cb759d13e23292dffd103bc63583c934bf8b
[ "MIT" ]
null
null
null
"""Module containing imports for user entity feature set pipelines.""" from legiti_challenge.feature_store_pipelines.user.user_chargebacks import ( UserChargebacksPipeline, ) from legiti_challenge.feature_store_pipelines.user.user_orders import UserOrdersPipeline __all__ = ["UserChargebacksPipeline", "UserOrdersPi...
41.125
88
0.841945
0
0
0
0
0
0
0
0
115
0.349544
3eda7f92aad073987eebca83a079837bb3553721
5,908
py
Python
sdf/step.py
pschou/py-sdf
0a269ed155d026e29429d76666fb63c95d2b4b2c
[ "MIT" ]
null
null
null
sdf/step.py
pschou/py-sdf
0a269ed155d026e29429d76666fb63c95d2b4b2c
[ "MIT" ]
null
null
null
sdf/step.py
pschou/py-sdf
0a269ed155d026e29429d76666fb63c95d2b4b2c
[ "MIT" ]
null
null
null
import numpy as np import struct import getpass import struct from datetime import datetime edge_curve = {} def _make_edge_curve(i,a,b,fp,v0,v1,s01): a_str = struct.pack('<fff',a[0],a[1],a[2]) b_str = struct.pack('<fff',b[0],b[1],b[2]) f_val = a_str+b_str r_val = b_str+a_str if f_val in edge_curve...
52.283186
164
0.488659
0
0
0
0
0
0
0
0
1,986
0.336154
3edaa008a2ee781cad3cfd27460bbf4776c643ad
209
py
Python
djmail/apps.py
CuriousLearner/djmail
da4cd3d4749f116b714f5f509cadc0a5d2cfb9c4
[ "BSD-3-Clause" ]
53
2015-06-22T11:24:00.000Z
2021-08-30T21:00:08.000Z
djmail/apps.py
CuriousLearner/djmail
da4cd3d4749f116b714f5f509cadc0a5d2cfb9c4
[ "BSD-3-Clause" ]
28
2015-11-04T16:11:00.000Z
2021-02-24T17:48:14.000Z
djmail/apps.py
CuriousLearner/djmail
da4cd3d4749f116b714f5f509cadc0a5d2cfb9c4
[ "BSD-3-Clause" ]
22
2015-07-29T15:53:53.000Z
2020-12-21T04:32:26.000Z
from django.apps import AppConfig class DjMailConfig(AppConfig): name = 'djmail' verbose_name = "DjMail" def ready(self): from . import signals super(DjMailConfig, self).ready()
19
41
0.660287
172
0.822967
0
0
0
0
0
0
16
0.076555
3edffdae907a0e7657c6b259ab845792ce337f54
349
py
Python
flask-api/schema/change_password.py
PapamichMarios/Intranet
65cd98d08a1a550d70e1afa4859a0b105c049817
[ "MIT" ]
1
2021-12-21T19:13:37.000Z
2021-12-21T19:13:37.000Z
flask-api/schema/change_password.py
PapamichMarios/Intranet
65cd98d08a1a550d70e1afa4859a0b105c049817
[ "MIT" ]
null
null
null
flask-api/schema/change_password.py
PapamichMarios/Intranet
65cd98d08a1a550d70e1afa4859a0b105c049817
[ "MIT" ]
null
null
null
from marshmallow import Schema, fields, validate class ChangePasswordSchema(Schema): id = fields.Number(attribute="id") oldPassword = fields.String(attribute="old_password", validate=validate.Length(min=8, max=256), required=True) password = fields.String(attribute="password", validate=validate.Length(min...
43.625
114
0.762178
297
0.851003
0
0
0
0
0
0
28
0.080229
3ee1169f26e39df8113aa1b6b00e7646bd86f543
6,100
py
Python
ros/src/tl_detector/light_classification/tl_classifier.py
jkoloda/CarND-Capstone
79ccd31930f5aab307a16db7b6c799a2ea54dc41
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
jkoloda/CarND-Capstone
79ccd31930f5aab307a16db7b6c799a2ea54dc41
[ "MIT" ]
null
null
null
ros/src/tl_detector/light_classification/tl_classifier.py
jkoloda/CarND-Capstone
79ccd31930f5aab307a16db7b6c799a2ea54dc41
[ "MIT" ]
null
null
null
from styx_msgs.msg import TrafficLight import tensorflow as tf import numpy as np import rospy import cv2 import os MAX_IMAGE_WIDTH = 300 MAX_IMAGE_HEIGHT = 300 class TLClassifier(object): """Traffic light classifier based on a tensorflow model.""" def __init__(self, is_site=True): """Build, load a...
32.972973
79
0.587869
5,934
0.972787
0
0
0
0
0
0
2,284
0.374426
3ee194cecfeab3512df97384ab2ebd0feb3a1a32
3,554
py
Python
esp.py
dries007/MicroPythonUtils
fba10989713f85ce4afa598c550737720df24648
[ "MIT" ]
null
null
null
esp.py
dries007/MicroPythonUtils
fba10989713f85ce4afa598c550737720df24648
[ "MIT" ]
null
null
null
esp.py
dries007/MicroPythonUtils
fba10989713f85ce4afa598c550737720df24648
[ "MIT" ]
null
null
null
import os import serial import time import binascii import textwrap import re from wifi import WIFI_SSID, WIFI_PASS def ctrl(key): # Thank you https://github.com/zeevro/esp_file_sender/ return chr(ord(key.upper()) - ord('A') + 1) class Esp: def __init__(self, port, baudrate): super().__init__()...
32.018018
153
0.565841
2,599
0.731289
0
0
0
0
0
0
1,328
0.373663
3ee1be975102fb088be8688d19317a0aa2d3e773
3,909
py
Python
dev/tools/leveleditor/pandac/libpandaodeModules.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
dev/tools/leveleditor/pandac/libpandaodeModules.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
dev/tools/leveleditor/pandac/libpandaodeModules.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from extension_native_helpers import * Dtool_PreloadDLL('libpandaode') from libpandaode import * from extension_native_helpers import * Dtool_PreloadDLL('libpanda') from libpanda import * def convert(self): if self.getClass() == OdeGeom.GCSphere: return self.convertToSphere() elif self.getClass() == Od...
27.921429
53
0.724738
0
0
0
0
0
0
0
0
53
0.013558
3ee350f95efe4a8c2344a53f97be58f2e3f0dcc2
1,087
py
Python
view_note.py
pushkar-anand/make-a-note
ca129dd1df1b62faad0c451e0818742bb1b1bc08
[ "Apache-2.0" ]
1
2018-10-02T07:09:29.000Z
2018-10-02T07:09:29.000Z
view_note.py
pushkar-anand/make-a-note
ca129dd1df1b62faad0c451e0818742bb1b1bc08
[ "Apache-2.0" ]
3
2018-10-01T13:40:13.000Z
2019-05-02T23:17:52.000Z
view_note.py
pushkar-anand/make-a-note
ca129dd1df1b62faad0c451e0818742bb1b1bc08
[ "Apache-2.0" ]
6
2018-10-02T07:09:30.000Z
2019-06-09T17:09:49.000Z
import gi import json gi.require_version('Gtk', '3.0') from gi.repository import Gtk class NewNoteWindow(Gtk.Window): def __init__(self, nid): Gtk.Window.__init__(self, title="Note") with open('notes.json') as data_file: data = json.load(data_file) notes = data["notes"] ...
30.194444
74
0.589696
998
0.918123
0
0
0
0
0
0
170
0.156394
3ee37804938d5d76c8a9bfe4608d76c629788f81
4,588
py
Python
homeserver/voice_control/voice_controller.py
miikama/home-server
07a9dbb9438e3c316c37cb52ca3c709d0b059af1
[ "MIT" ]
null
null
null
homeserver/voice_control/voice_controller.py
miikama/home-server
07a9dbb9438e3c316c37cb52ca3c709d0b059af1
[ "MIT" ]
1
2019-11-30T10:59:28.000Z
2019-11-30T10:59:28.000Z
homeserver/voice_control/voice_controller.py
miikama/home-server
07a9dbb9438e3c316c37cb52ca3c709d0b059af1
[ "MIT" ]
null
null
null
from homeserver.voice_control.google_speech import GoogleVoiceRecognition from homeserver.voice_control.snowboy.snowboydecoder import HotwordDetector, play_audio_file #make the voicecontrol follow the device interface structure for control from homeserver.interface import DeviceInterface, DeviceTarget # import the ...
24.275132
92
0.735833
4,101
0.893854
0
0
0
0
0
0
1,322
0.288143
3ee3d2c54d6989f6ad2059cbf79a527aa7c5bc22
451
py
Python
main.py
CSULB-RMC/testing-repo
f0f82f43dadd91c2e6b968cb6ed13b50df4505c2
[ "Unlicense" ]
null
null
null
main.py
CSULB-RMC/testing-repo
f0f82f43dadd91c2e6b968cb6ed13b50df4505c2
[ "Unlicense" ]
null
null
null
main.py
CSULB-RMC/testing-repo
f0f82f43dadd91c2e6b968cb6ed13b50df4505c2
[ "Unlicense" ]
null
null
null
# Name: HELLO WORLD # Author: Fenteale # # Notes: # This is just a tiny program meant to showcase what # a repository will look like when downloaded through # github. print("Hello World!") print("This is just meant to be a tiny program to show off what a repo looks like.") inp = input("Type something here: ") print...
23.736842
84
0.716186
0
0
0
0
0
0
0
0
380
0.842572
3ee5a364faab5171c5ce76299e1bdd425fb0f34b
188
py
Python
arduinowithpyFirmata.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
arduinowithpyFirmata.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
arduinowithpyFirmata.py
xfzlun/WinUIAutomation
0f94388671cf0aacbc8499293b7dd31ddfa205fa
[ "MIT" ]
null
null
null
from pyfirmata import Arduino, util import time board = Arduino('/dev/ttyACM0') while 1: board.digital[13].write(0) time.sleep(1) board.digital[13].write(1) time.sleep(1)
18.8
35
0.680851
0
0
0
0
0
0
0
0
14
0.074468
3ee683dea81950011c4a8893e44e207f0c0558cc
275
py
Python
2016/Day5/tests.py
dh256/adventofcode
428eec13f4cbf153333a0e359bcff23070ef6d27
[ "MIT" ]
null
null
null
2016/Day5/tests.py
dh256/adventofcode
428eec13f4cbf153333a0e359bcff23070ef6d27
[ "MIT" ]
null
null
null
2016/Day5/tests.py
dh256/adventofcode
428eec13f4cbf153333a0e359bcff23070ef6d27
[ "MIT" ]
null
null
null
import pytest from Door import Door def test_find_password(): door_id = "abc" door = Door(door_id) assert(door.find_password() == "18f47a30") def test_find_password2(): door_id = "abc" door = Door(door_id) assert(door.find_password2() == "05ace8e3")
22.916667
47
0.676364
0
0
0
0
0
0
0
0
30
0.109091
3ee8fa63da0e0bfe5eb55277fd9f507afe7bfefe
1,528
py
Python
CondTools/SiPixel/test/SiPixelCPEGenericErrorParmReader_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
13
2015-11-30T15:49:45.000Z
2022-02-08T16:11:30.000Z
CondTools/SiPixel/test/SiPixelCPEGenericErrorParmReader_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
640
2015-02-11T18:55:47.000Z
2022-03-31T14:12:23.000Z
CondTools/SiPixel/test/SiPixelCPEGenericErrorParmReader_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
51
2015-08-11T21:01:40.000Z
2022-03-30T07:31:34.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("SiPixelCPEGenericErrorParmReaderTest") process.load("CondCore.DBCommon.CondDBSetup_cfi") process.load("FWCore.MessageService.MessageLogger_cfi") process.source = cms.Source("EmptySource") process.maxEvents = cms.untracked.PSet( input = cms.untracked...
40.210526
103
0.620419
0
0
0
0
0
0
0
0
519
0.33966
3eea8ad1e4ebfd2294a6137803d28554a3bc0130
5,621
py
Python
tools/perf/benchmarks/smoothness.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-01-25T10:18:18.000Z
2021-01-23T15:29:56.000Z
tools/perf/benchmarks/smoothness.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/smoothness.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:13.000Z
2020-11-04T07:24:13.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry import test from benchmarks import silk_flags from measurements import smoothness import page_sets @test.Disabled # crbug.com/368767 class...
32.871345
80
0.794698
4,836
0.860345
0
0
3,420
0.608433
0
0
1,962
0.349048
3eeacd092135bae68f848fe55ada198c37b80c48
315
py
Python
setup.py
igorccouto/robot
67019ee1f52d5474ce36734c1e56725046471cd9
[ "MIT" ]
null
null
null
setup.py
igorccouto/robot
67019ee1f52d5474ce36734c1e56725046471cd9
[ "MIT" ]
null
null
null
setup.py
igorccouto/robot
67019ee1f52d5474ce36734c1e56725046471cd9
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='robot', version='1.0', author='Igor Couto', author_email='[email protected]', description='A project to execute a robot that performs several actions on the browser.', packages=find_packages(), license='MIT' )
28.636364
96
0.660317
0
0
0
0
0
0
0
0
126
0.4
3eec09187c14d47ed9948ca3461f050626849937
31,103
py
Python
carcassonne.py
pierre-dejoue/carcassonne
046c39fd61f17072e6d75a48ef65afa7be82a973
[ "MIT" ]
null
null
null
carcassonne.py
pierre-dejoue/carcassonne
046c39fd61f17072e6d75a48ef65afa7be82a973
[ "MIT" ]
null
null
null
carcassonne.py
pierre-dejoue/carcassonne
046c39fd61f17072e6d75a48ef65afa7be82a973
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import boundary import functools import graphics import itertools import json import operator import os.path import random import re import secrets import sys import traceback from boundary import Boundary from boundary import Domain from boundary import Orientation from boundary...
36.764775
230
0.635051
12,324
0.396232
2,024
0.065074
3,692
0.118702
0
0
4,594
0.147703
3eec12f5620398b980058505bc6d6b26e01d13f2
11,029
py
Python
business_card/mainpage.py
AshxStudio/PyLearning
4ae42f9ef0c1b0e6bf3ff415f98687ba1058636e
[ "MIT" ]
null
null
null
business_card/mainpage.py
AshxStudio/PyLearning
4ae42f9ef0c1b0e6bf3ff415f98687ba1058636e
[ "MIT" ]
null
null
null
business_card/mainpage.py
AshxStudio/PyLearning
4ae42f9ef0c1b0e6bf3ff415f98687ba1058636e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainpage.ui' # # Created by: PyQt5 UI code generator 5.8.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtGui import * class Ui_Form(object): def setupUi(self, Form): ...
54.59901
80
0.710581
10,880
0.976047
0
0
0
0
0
0
1,573
0.141114
3eecad1535b44d09acd50ef4de76145c633066a1
2,890
py
Python
project/classification/posture_classification/ops/data_processor.py
jh-lau/solid_ai_waddle
b966f2c6e8b6b48c62064d58461692231aa2116b
[ "MIT" ]
null
null
null
project/classification/posture_classification/ops/data_processor.py
jh-lau/solid_ai_waddle
b966f2c6e8b6b48c62064d58461692231aa2116b
[ "MIT" ]
null
null
null
project/classification/posture_classification/ops/data_processor.py
jh-lau/solid_ai_waddle
b966f2c6e8b6b48c62064d58461692231aa2116b
[ "MIT" ]
null
null
null
""" @Author : liujianhan @Date : 2018/6/2 ไธŠๅˆ11:59 @Project : posture_classification @FileName : data_processor.py @Description : Placeholder """ import os from typing import Tuple import pandas as pd from keras.applications.resnet50 import preprocess_input from keras.preprocessing.ima...
34.404762
80
0.664014
0
0
0
0
0
0
0
0
754
0.25
3eecb6e97ffd929b50cc81c0b14af95a02561e17
150
py
Python
1015.py
gabzin/beecrowd
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
3
2021-12-15T20:27:14.000Z
2022-03-01T12:30:08.000Z
1015.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
1015.py
gabzin/uri
177bdf3f87bacfd924bd031a973b8db877379fe5
[ "MIT" ]
null
null
null
from math import sqrt x1,y1=map(float,input().split()) x2,y2=map(float,input().split()) p1=x2-x1 p2=y2-y1 res=sqrt((p1*p1)+(p2*p2)) print("%.4f"%res)
18.75
32
0.66
0
0
0
0
0
0
0
0
6
0.04
3eed4a648db7f6b58a8270deb65a534840398278
43
py
Python
modules/pointer_network/__init__.py
matthew-z/pytorch_rnet
670f3796cd01595903ef781ec7eb0e55c020e77b
[ "MIT" ]
227
2017-09-20T08:17:07.000Z
2022-02-16T23:48:04.000Z
modules/pointer_network/__init__.py
matthew-z/R-Net
670f3796cd01595903ef781ec7eb0e55c020e77b
[ "MIT" ]
18
2017-10-25T14:42:56.000Z
2020-04-14T18:50:48.000Z
modules/pointer_network/__init__.py
matthew-z/R-Net
670f3796cd01595903ef781ec7eb0e55c020e77b
[ "MIT" ]
59
2017-10-02T15:25:27.000Z
2021-05-28T07:57:39.000Z
from .pointer_network import PointerNetwork
43
43
0.906977
0
0
0
0
0
0
0
0
0
0
3eedf65adf2ccf1a08d61e0dec0f3caf4fa9559f
985
py
Python
twitch_the_universim_chat/views.py
gaelfargeas/twitch_universim_streamer_chat
4773bf30e6aab3d9f950ba027e7aa3e51278428c
[ "BSD-3-Clause" ]
null
null
null
twitch_the_universim_chat/views.py
gaelfargeas/twitch_universim_streamer_chat
4773bf30e6aab3d9f950ba027e7aa3e51278428c
[ "BSD-3-Clause" ]
null
null
null
twitch_the_universim_chat/views.py
gaelfargeas/twitch_universim_streamer_chat
4773bf30e6aab3d9f950ba027e7aa3e51278428c
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render, redirect from django.utils.datastructures import MultiValueDictKeyError def index(request): return render(request, "chat.html", {}) def logged(request): try : bot_name = request.POST["bot_name"] streamer_name = request.POST["streamer_name"] stream_...
27.361111
62
0.631472
0
0
0
0
0
0
0
0
238
0.241624
3eef9508412716c264b3b444bb752f75ff044dba
1,480
py
Python
numba/exttypes/tests/test_extension_attributes.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
1
2015-01-29T06:52:36.000Z
2015-01-29T06:52:36.000Z
numba/exttypes/tests/test_extension_attributes.py
shiquanwang/numba
a41c85fdd7d6abf8ea1ebe9116939ddc2217193b
[ "BSD-2-Clause" ]
null
null
null
numba/exttypes/tests/test_extension_attributes.py
shiquanwang/numba
a41c85fdd7d6abf8ea1ebe9116939ddc2217193b
[ "BSD-2-Clause" ]
null
null
null
""" Test class attributes. """ import numba from numba import * from numba.testing.test_support import parametrize, main def make_base(compiler): @compiler class Base(object): value1 = double value2 = int_ @void(int_, double) def __init__(self, value1, value2): se...
20.555556
73
0.551351
505
0.341216
0
0
978
0.660811
0
0
238
0.160811
3ef2102b67623964df7f8e5b43fb31855632c83c
1,386
py
Python
tests/plugins/pull/test_poll.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
4
2018-10-07T11:32:00.000Z
2019-04-23T09:34:23.000Z
tests/plugins/pull/test_poll.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
null
null
null
tests/plugins/pull/test_poll.py
HazardDede/pnp
469ca17254dcca1a4eefe0dc5ac574692a9ab38e
[ "MIT" ]
1
2019-08-12T19:56:10.000Z
2019-08-12T19:56:10.000Z
import time from datetime import datetime import pytest from pnp.plugins.pull import StopPollingError from pnp.plugins.pull.simple import CustomPolling from . import make_runner, start_runner @pytest.mark.asyncio async def test_poll(): events = [] def callback(plugin, payload): events.append(payload...
24.75
110
0.683983
0
0
0
0
836
0.603175
794
0.572872
62
0.044733
3ef267c5d2fee953bb87ccf05e6b6f25d5d276e4
3,632
py
Python
motorisedcameratracking/Cameras.py
wDove1/motorisedcameratracking
97ae1722978fc99faf37c0ab7e3c8f39e3e2355d
[ "Apache-2.0" ]
null
null
null
motorisedcameratracking/Cameras.py
wDove1/motorisedcameratracking
97ae1722978fc99faf37c0ab7e3c8f39e3e2355d
[ "Apache-2.0" ]
null
null
null
motorisedcameratracking/Cameras.py
wDove1/motorisedcameratracking
97ae1722978fc99faf37c0ab7e3c8f39e3e2355d
[ "Apache-2.0" ]
null
null
null
from picamera import PiCamera from time import * from cv2 import * import numpy as np import os from PIL import Image from .errors import * class RPICam: """A class for the raspberry pi camera Attributes: modelDetails: A dictionary containing details of the Camera imagePath: The ...
35.262136
99
0.566079
3,487
0.960077
0
0
0
0
0
0
1,641
0.451817
3ef53bdde39e3c5144f18bd2ee63f39dd48f0058
1,568
py
Python
simdigree/dummy.py
aryakaul/simdigree
403e0130771c400b7687179363c7eba5ed9feeb2
[ "MIT" ]
1
2018-11-12T19:41:14.000Z
2018-11-12T19:41:14.000Z
simdigree/dummy.py
aryakaul/simdigree
403e0130771c400b7687179363c7eba5ed9feeb2
[ "MIT" ]
null
null
null
simdigree/dummy.py
aryakaul/simdigree
403e0130771c400b7687179363c7eba5ed9feeb2
[ "MIT" ]
null
null
null
class Dummy: """ Class for use when given a pedigree to model. I create a 'dummy' for each individual with key information about that individual """ def __init__(self, parents, founder, children=[]): self.parents = parents self.founder = founder self.children = children...
24.5
123
0.616071
1,565
0.998087
0
0
0
0
0
0
367
0.234056
3ef554160c1a186dae9bd51e974deb08ac86e468
1,226
py
Python
setup.py
Superbuy-Team/sbcnab240
fe32ffa1efc3f07f8e1be607d4bf110f5134720a
[ "MIT" ]
5
2017-12-19T17:50:56.000Z
2019-02-12T03:19:50.000Z
setup.py
Superbuy-Team/sbcnab240
fe32ffa1efc3f07f8e1be607d4bf110f5134720a
[ "MIT" ]
null
null
null
setup.py
Superbuy-Team/sbcnab240
fe32ffa1efc3f07f8e1be607d4bf110f5134720a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages """ Uma biblioteca para leitura de arquivos CNAB 240. """ setup( name='sbcnab240', version='0.1.0', url='https://github.com/Superbuy-Team/sbcnab240/', license='MIT', author='SuperBuy Team', author_email='[email protected]', description='Uma bibl...
31.435897
70
0.630506
0
0
0
0
0
0
0
0
725
0.591354
3ef60e720154164bc72b950006e65765140586cd
860
py
Python
mlib/web/shadow_lib.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
1
2020-06-16T17:26:45.000Z
2020-06-16T17:26:45.000Z
mlib/web/shadow_lib.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
mlib/web/shadow_lib.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
from mlib.proj.struct import Project from mlib.web.html import HTMLPage, Hyperlink, HTMLImage SKIPPED_SOURCE = [ '@log_invokation', 'global DOC', '@staticmethod' ] def scipy_doc_url(funname): return f'https://docs.scipy.org/doc/scipy/reference/generated/{funname}.html' FUN_LINKS = { 'bilinear': 'https...
27.741935
105
0.676744
0
0
0
0
0
0
0
0
316
0.367442
3efa82e7a5854f87ab9bf7282fade9ac7afa8bff
3,607
py
Python
markdown-journal.py
fire-wally/markdown-notebook
8fe22f645d6aca65f5f02cf4a67993e809795396
[ "Apache-2.0" ]
null
null
null
markdown-journal.py
fire-wally/markdown-notebook
8fe22f645d6aca65f5f02cf4a67993e809795396
[ "Apache-2.0" ]
null
null
null
markdown-journal.py
fire-wally/markdown-notebook
8fe22f645d6aca65f5f02cf4a67993e809795396
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python3 import sys import os import shutil import markdown class Page(object): def __init__(self, filename, mtime): self.file_name = filename self.modified_at = mtime def main(argv): if len(argv) != 3: print("USAGE: markdown-journal.py source-dir output-dir") r...
33.71028
108
0.640144
127
0.035209
0
0
0
0
0
0
752
0.208484
3efbe3ec6f7235b59b283ab4d9dd8c0d9a53ffcd
1,090
py
Python
plugins/modules/set_java_trusted_sites_facts.py
c2platform/ansible-collection-core
40c4e86349cda170c406c9af2b74d7760dcf5c86
[ "MIT" ]
null
null
null
plugins/modules/set_java_trusted_sites_facts.py
c2platform/ansible-collection-core
40c4e86349cda170c406c9af2b74d7760dcf5c86
[ "MIT" ]
null
null
null
plugins/modules/set_java_trusted_sites_facts.py
c2platform/ansible-collection-core
40c4e86349cda170c406c9af2b74d7760dcf5c86
[ "MIT" ]
null
null
null
#!/usr/bin/python from ansible.module_utils.basic import * def site_result(site, trusted_sites_download): rs = trusted_sites_download['results'] for r in rs: if r['site'] == site: return r msg = "Result for site {} not found in {}".format(site, rs) raise Exception(msg) def set_j...
30.277778
75
0.647706
0
0
0
0
0
0
0
0
322
0.295413
3efc5fe15cf4eeb421dcf698ef2f0aa33c8d45db
53
py
Python
src/signal_backtester/schemas/__init__.py
xibalbas/signal_backtester
8eaa52ecad22419b29b0e0e34eaadfea83f4e4b9
[ "MIT" ]
14
2022-03-04T20:23:45.000Z
2022-03-30T11:04:40.000Z
src/signal_backtester/schemas/__init__.py
xibalbas/signal_backtester
8eaa52ecad22419b29b0e0e34eaadfea83f4e4b9
[ "MIT" ]
null
null
null
src/signal_backtester/schemas/__init__.py
xibalbas/signal_backtester
8eaa52ecad22419b29b0e0e34eaadfea83f4e4b9
[ "MIT" ]
2
2022-03-05T10:18:19.000Z
2022-03-06T12:51:49.000Z
"""Schemas Schemas Package more description """
10.6
20
0.679245
0
0
0
0
0
0
0
0
52
0.981132
3efdff5f0d2a7d90af9b5f718370bdc45e63e120
5,829
py
Python
py/src/api_custo.py
Ennoriel/veille-pedagogique
63f368ad1faee2f6fca86fff68ccccc7ac89f81b
[ "FSFAP" ]
null
null
null
py/src/api_custo.py
Ennoriel/veille-pedagogique
63f368ad1faee2f6fca86fff68ccccc7ac89f81b
[ "FSFAP" ]
null
null
null
py/src/api_custo.py
Ennoriel/veille-pedagogique
63f368ad1faee2f6fca86fff68ccccc7ac89f81b
[ "FSFAP" ]
null
null
null
from itertools import chain, combinations from re import search from urllib.parse import urlparse from pymongo.errors import BulkWriteError from tweepy import OAuthHandler, API from yaml import load as yaml_load, BaseLoader from objects.article import Article from objects.hashtag import Hashtag from objects.tweet imp...
31.33871
111
0.731515
5,273
0.901213
0
0
0
0
0
0
1,859
0.317723
3eff530062f79f81142b5bbce7a5802437435e1c
3,985
py
Python
ensemble_compilation/physical_db.py
LumingSun/deepdb-public
39cf21b3145c3255f15eb40df606b02a53323e86
[ "MIT" ]
48
2020-02-21T10:19:18.000Z
2022-03-29T20:59:20.000Z
ensemble_compilation/physical_db.py
LumingSun/deepdb-public
39cf21b3145c3255f15eb40df606b02a53323e86
[ "MIT" ]
7
2020-04-29T15:13:05.000Z
2021-06-08T13:33:53.000Z
ensemble_compilation/physical_db.py
jschj/deepdb-public
655ada13a043a4226a239b0c0a65bcdefef87a02
[ "MIT" ]
18
2020-02-21T13:11:49.000Z
2022-03-07T23:27:05.000Z
import psycopg2 import pandas as pd from ensemble_compilation.utils import gen_full_join_query, print_conditions class DBConnection: def __init__(self, db_user="postgres", db_password="postgres", db_host="localhost", db_port="5432", db="shopdb"): self.db_user = db_user self.db_password...
36.227273
118
0.524969
3,855
0.967378
0
0
0
0
0
0
260
0.065245
4103275c6f48564c6ff1fad5fb0a8944ab60a436
137,967
py
Python
release/stubs/Autodesk/AutoCAD/EditorInput.py
paoloemilioserra/ironpython-stubs
49d92db7f28f25ccd3654c5f6ae83daa0c401fa1
[ "MIT" ]
null
null
null
release/stubs/Autodesk/AutoCAD/EditorInput.py
paoloemilioserra/ironpython-stubs
49d92db7f28f25ccd3654c5f6ae83daa0c401fa1
[ "MIT" ]
null
null
null
release/stubs/Autodesk/AutoCAD/EditorInput.py
paoloemilioserra/ironpython-stubs
49d92db7f28f25ccd3654c5f6ae83daa0c401fa1
[ "MIT" ]
null
null
null
# encoding: utf-8 # module Autodesk.AutoCAD.EditorInput calls itself EditorInput # from Acmgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null, accoremgd, Version=24.0.0.0, Culture=neutral, PublicKeyToken=null # by generator 1.145 # no doc # no imports # no functions # classes class AddedKeywords(Enu...
34.972624
486
0.648677
136,645
0.990418
0
0
16,485
0.119485
0
0
75,948
0.550479
4104d25dc6796ebc87ccaf0dca4400cb888e648b
169
py
Python
AutotestWebD/all_models_for_mock/models/__init__.py
yangjourney/sosotest
2e88099a829749910ca325253c9b1a2e368d21a0
[ "MIT" ]
422
2019-08-18T05:04:20.000Z
2022-03-31T06:49:19.000Z
AutotestWebD/all_models_for_mock/models/__init__.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
10
2019-10-24T09:55:38.000Z
2021-09-29T17:28:43.000Z
AutotestWebD/all_models_for_mock/models/__init__.py
LinSongJian1985/sosotest
091863dee531b5726650bb63efd6f169267cbeb4
[ "MIT" ]
202
2019-08-18T05:04:27.000Z
2022-03-30T05:57:18.000Z
from all_models_for_mock.models.M0001_mock import * from all_models_for_mock.models.M0002_keywords import * from all_models_for_mock.models.M0003_statisic_task import *
42.25
60
0.87574
0
0
0
0
0
0
0
0
0
0
41067ed6db1ed6b79ce07e5f1ba003d3a292c73c
151
py
Python
chpt8/Reverse.py
GDG-Buea/learn-python
9dfe8caa4b57489cf4249bf7e64856062a0b93c2
[ "Apache-2.0" ]
null
null
null
chpt8/Reverse.py
GDG-Buea/learn-python
9dfe8caa4b57489cf4249bf7e64856062a0b93c2
[ "Apache-2.0" ]
2
2018-05-21T09:39:00.000Z
2018-05-27T15:59:15.000Z
chpt8/Reverse.py
GDG-Buea/learn-python
9dfe8caa4b57489cf4249bf7e64856062a0b93c2
[ "Apache-2.0" ]
2
2018-05-19T14:59:56.000Z
2018-05-19T15:25:48.000Z
# This program reverses a given string def reverse(): user_string = input("Enter a string: ") s = user_string[::-1] print(s) reverse()
13.727273
43
0.629139
0
0
0
0
0
0
0
0
56
0.370861
4108814557aaf45fa9bd2469a548f631f9648812
29,383
py
Python
pauxy/walkers/thermal.py
pauxy-qmc/pauxy
1da80284284769b59361c73cfa3c2d914c74a73f
[ "Apache-2.0" ]
16
2020-08-05T17:17:17.000Z
2022-03-18T04:06:18.000Z
pauxy/walkers/thermal.py
pauxy-qmc/pauxy
1da80284284769b59361c73cfa3c2d914c74a73f
[ "Apache-2.0" ]
4
2020-05-17T21:28:20.000Z
2021-04-22T18:05:50.000Z
pauxy/walkers/thermal.py
pauxy-qmc/pauxy
1da80284284769b59361c73cfa3c2d914c74a73f
[ "Apache-2.0" ]
5
2020-05-18T01:03:18.000Z
2021-04-13T15:36:29.000Z
import copy import cmath import numpy import scipy.linalg from pauxy.estimators.thermal import greens_function, one_rdm_from_G, particle_number from pauxy.estimators.mixed import local_energy from pauxy.walkers.stack import PropagatorStack from pauxy.walkers.walker import Walker from pauxy.utils.linalg import regularis...
41.678014
130
0.510499
23,871
0.812409
0
0
0
0
0
0
5,476
0.186366
4108de14460ec5d4d27312f76596c4d68c7d284a
1,607
py
Python
schedules_tools/batches/utils.py
RedHat-Eng-PGM/python-schedules-tools
6166cdd0e5f7c08fba1c50f113ae6a6103460f9b
[ "MIT" ]
1
2019-05-06T21:10:35.000Z
2019-05-06T21:10:35.000Z
schedules_tools/batches/utils.py
RedHat-Eng-PGM/schedules-tools
fd96a9e1df4e53b8da3048c013af0cd2c290f9b5
[ "MIT" ]
5
2019-05-06T21:25:38.000Z
2021-02-05T20:54:30.000Z
schedules_tools/batches/utils.py
RedHat-Eng-PGM/schedules-tools
fd96a9e1df4e53b8da3048c013af0cd2c290f9b5
[ "MIT" ]
1
2019-10-31T01:51:41.000Z
2019-10-31T01:51:41.000Z
from collections import OrderedDict import os import re from schedules_tools.schedule_handlers.smart_sheet import ScheduleHandler_smartsheet import yaml DEFAULT_TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'templates') DEPENDENCY_REGEX = re.compile(r'^{(?P<to>predecessor|\d+)}(?P<type>[F|S]+)?' ...
31.509804
88
0.645924
0
0
0
0
0
0
0
0
348
0.216553