hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
6e4cf85303623618f7fb5038daec890f74903ee3
2,641
py
Python
ILSpy.ConvertedToPython/TreeNodes/Analyzer/AnalyzedTypeExtensionMethodsTreeNode.py
exyi/ILSpy
17ddfa01ff4915c4ca8461c56fb7d04d25fc591e
[ "MIT" ]
1
2021-04-26T19:46:09.000Z
2021-04-26T19:46:09.000Z
ILSpy.ConvertedToPython/TreeNodes/Analyzer/AnalyzedTypeExtensionMethodsTreeNode.py
exyi/ILSpy
17ddfa01ff4915c4ca8461c56fb7d04d25fc591e
[ "MIT" ]
null
null
null
ILSpy.ConvertedToPython/TreeNodes/Analyzer/AnalyzedTypeExtensionMethodsTreeNode.py
exyi/ILSpy
17ddfa01ff4915c4ca8461c56fb7d04d25fc591e
[ "MIT" ]
null
null
null
# Copyright (c) 2011 AlphaSierraPapa for the SharpDevelop Team # # 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 use, copy, mo...
41.920635
99
0.775842
6e4d8cf0e65920064f1566f74432415d41b6c22a
3,187
py
Python
src/detector.py
omelchert/LEPM_1DFD
aa5ba78e557cdcd0a10a16065c0f17119f51ab78
[ "BSD-3-Clause" ]
null
null
null
src/detector.py
omelchert/LEPM_1DFD
aa5ba78e557cdcd0a10a16065c0f17119f51ab78
[ "BSD-3-Clause" ]
null
null
null
src/detector.py
omelchert/LEPM_1DFD
aa5ba78e557cdcd0a10a16065c0f17119f51ab78
[ "BSD-3-Clause" ]
null
null
null
import sys import numpy as np # EOF: detector.py
32.85567
81
0.569187
6e4dee90bdd936152cb862e03942c4be61d9a3e5
249
py
Python
2.datatype/1.number_typecasting.py
Tazri/Python
f7ca625800229c8a7e20b64810d6e162ccb6b09f
[ "DOC" ]
null
null
null
2.datatype/1.number_typecasting.py
Tazri/Python
f7ca625800229c8a7e20b64810d6e162ccb6b09f
[ "DOC" ]
null
null
null
2.datatype/1.number_typecasting.py
Tazri/Python
f7ca625800229c8a7e20b64810d6e162ccb6b09f
[ "DOC" ]
null
null
null
number_int = int("32"); number_float= float(32); number_complex = complex(3222342332432435435345324435324523423); print(type(number_int),": ",number_int); print(type(number_float),": ",number_float); print(type(number_complex),": ",number_complex);
35.571429
64
0.767068
6e50868796b7b8940a4c3451e490a815d749a818
338
py
Python
tests/test_kitty.py
raphaelavergud/CatApp
cf0a68e2c78307684e167a748e72e068c25a6089
[ "MIT" ]
null
null
null
tests/test_kitty.py
raphaelavergud/CatApp
cf0a68e2c78307684e167a748e72e068c25a6089
[ "MIT" ]
null
null
null
tests/test_kitty.py
raphaelavergud/CatApp
cf0a68e2c78307684e167a748e72e068c25a6089
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest import kitty from kitty import uncomfy_checker import mock if __name__ == '__main__': unittest.main()
22.533333
69
0.736686
6e52ebb7ea5d298c9a93f221c29b566a183e81fe
251
py
Python
latest/modules/physics/control/control_plots-5.py
sympy/sympy_doc
ec4f28eed09d5acb9e55874e82cc86c74e762c0d
[ "BSD-3-Clause" ]
20
2015-01-28T01:08:13.000Z
2021-12-19T04:03:28.000Z
latest/modules/physics/control/control_plots-5.py
sympy/sympy_doc
ec4f28eed09d5acb9e55874e82cc86c74e762c0d
[ "BSD-3-Clause" ]
31
2015-01-27T07:16:19.000Z
2021-11-15T10:58:15.000Z
latest/modules/physics/control/control_plots-5.py
sympy/sympy_doc
ec4f28eed09d5acb9e55874e82cc86c74e762c0d
[ "BSD-3-Clause" ]
38
2015-01-08T18:48:27.000Z
2021-12-02T13:19:43.000Z
from sympy.abc import s from sympy.physics.control.lti import TransferFunction from sympy.physics.control.control_plots import ramp_response_plot tf1 = TransferFunction(s, (s+4)*(s+8), s) ramp_response_plot(tf1, upper_limit=2) # doctest: +SKIP
41.833333
67
0.780876
6e52fb33dd28eee7b106bc48ba5c34f08261ca0b
2,309
py
Python
src/pynorare/__main__.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
null
null
null
src/pynorare/__main__.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
5
2020-07-20T11:05:07.000Z
2022-03-11T15:51:52.000Z
src/pynorare/__main__.py
concepticon/pynorare
3cf5ea2d1597c5acc84963f781ff49d96b4d7e02
[ "MIT" ]
null
null
null
""" Main command line interface to the pynorare package. """ import sys import pathlib import contextlib from cldfcatalog import Config, Catalog from clldutils.clilib import register_subcommands, get_parser_and_subparsers, ParserError, PathType from clldutils.loglib import Logging from pyconcepticon import Concepticon...
32.985714
99
0.644435
6e535cb6e52945115eb6d7ac8b6103b52efc86b8
92
py
Python
app_kasir/apps.py
rizkyarwn/projectkasir
6524a052bcb52534524db1c5fba05d31a0f0d801
[ "MIT" ]
2
2018-06-28T10:52:47.000Z
2018-06-28T10:52:48.000Z
app_kasir/apps.py
rizkyarwn/projectkasir
6524a052bcb52534524db1c5fba05d31a0f0d801
[ "MIT" ]
null
null
null
app_kasir/apps.py
rizkyarwn/projectkasir
6524a052bcb52534524db1c5fba05d31a0f0d801
[ "MIT" ]
null
null
null
from django.apps import AppConfig
15.333333
33
0.76087
6e536b50d4b1d1ed9120b0881d839d4c283289b4
2,472
py
Python
evaluator.py
kavinyao/SKBPR
305aeb846ee89234d8eae3b73452c2fdad2496b4
[ "MIT" ]
null
null
null
evaluator.py
kavinyao/SKBPR
305aeb846ee89234d8eae3b73452c2fdad2496b4
[ "MIT" ]
null
null
null
evaluator.py
kavinyao/SKBPR
305aeb846ee89234d8eae3b73452c2fdad2496b4
[ "MIT" ]
1
2018-09-29T08:31:40.000Z
2018-09-29T08:31:40.000Z
""" Evaluate recommendations. """ import config from collections import defaultdict
35.314286
94
0.640372
6e53df58b8e50b1065505ed5b573aa01243270d1
12,263
py
Python
yolov3_deepsort.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
1
2021-02-28T15:22:43.000Z
2021-02-28T15:22:43.000Z
yolov3_deepsort.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
null
null
null
yolov3_deepsort.py
h-enes-simsek/deep_sort_pytorch
0a9ede55e53355c19455197cc8daa60336c652bb
[ "MIT" ]
null
null
null
import os import cv2 import time import argparse import torch import warnings import numpy as np from detector import build_detector from deep_sort import build_tracker from utils.draw import draw_boxes from utils.parser import get_config from utils.log import get_logger from utils.io import write_results from numpy ...
42.432526
149
0.572698
280906641aae735ca1d3dbc649fdb86d59c81472
1,172
py
Python
aerosandbox/numpy/array.py
askprash/AeroSandbox
9e82966a25ced9ce96ca29bae45a4420278f0f1d
[ "MIT" ]
null
null
null
aerosandbox/numpy/array.py
askprash/AeroSandbox
9e82966a25ced9ce96ca29bae45a4420278f0f1d
[ "MIT" ]
null
null
null
aerosandbox/numpy/array.py
askprash/AeroSandbox
9e82966a25ced9ce96ca29bae45a4420278f0f1d
[ "MIT" ]
1
2021-09-11T03:28:45.000Z
2021-09-11T03:28:45.000Z
import numpy as onp import casadi as cas def length(array) -> int: """ Returns the length of an 1D-array-like object. Args: array: Returns: """ try: return len(array) except TypeError: # array has no function len() -> either float, int, or CasADi type try: ...
25.478261
89
0.529863
280a3ff7069c05f2fa4cfad162456023976a914d
181
py
Python
states/__init__.py
EemeliSyynimaa/Pore
1eca9aa7163f1d31ae84c862790693eb3c904433
[ "MIT" ]
null
null
null
states/__init__.py
EemeliSyynimaa/Pore
1eca9aa7163f1d31ae84c862790693eb3c904433
[ "MIT" ]
null
null
null
states/__init__.py
EemeliSyynimaa/Pore
1eca9aa7163f1d31ae84c862790693eb3c904433
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'eeneku' from main_menu import MainMenu from world_map import WorldMap from local_map import LocalMap __all__ = [MainMenu, WorldMap, LocalMap]
22.625
40
0.762431
280b4458ea5ac2ac7597da9b972198f9e0db4a04
2,502
py
Python
instagram/migrations/0001_initial.py
Maxwel5/photo-app-instagram
8635346a5115dcc7e282791bd646f0a7f9dd2917
[ "MIT" ]
null
null
null
instagram/migrations/0001_initial.py
Maxwel5/photo-app-instagram
8635346a5115dcc7e282791bd646f0a7f9dd2917
[ "MIT" ]
8
2020-06-06T00:09:24.000Z
2022-02-10T10:48:10.000Z
instagram/migrations/0001_initial.py
Maxwel5/photo-app-instagram
8635346a5115dcc7e282791bd646f0a7f9dd2917
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-10-22 07:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone
41.7
154
0.584333
280b7ce2e2cb3f65d56ba5e4705455b1cbb3bb0e
3,283
py
Python
capspayment/api_payin.py
agorapay/python-sdk
c5b7fd6894f95e6862446248b26c16253c8fd4f4
[ "MIT" ]
null
null
null
capspayment/api_payin.py
agorapay/python-sdk
c5b7fd6894f95e6862446248b26c16253c8fd4f4
[ "MIT" ]
null
null
null
capspayment/api_payin.py
agorapay/python-sdk
c5b7fd6894f95e6862446248b26c16253c8fd4f4
[ "MIT" ]
null
null
null
""" Payin API """ from dataclasses import dataclass from typing import Union from api_payin_model import ( PayinAdjustPaymentRequest, PayinCancelRequest, PayinCancelResponse, PayinCaptureRequest, PayinCaptureResponse, PayinMandateRequest, PayinMandateResponse, PayinOrderDetailsRequest,...
32.186275
82
0.687786
280b8063834de2658f477b63373426eabdf7a4f6
5,516
py
Python
tests/test_api.py
HealthByRo/fdadb
e020a902ca20cebd5999bc2dbc530375ab0922fb
[ "MIT" ]
1
2020-06-11T04:44:22.000Z
2020-06-11T04:44:22.000Z
tests/test_api.py
HealthByRo/fdadb
e020a902ca20cebd5999bc2dbc530375ab0922fb
[ "MIT" ]
8
2018-11-26T09:22:14.000Z
2019-10-23T13:17:44.000Z
tests/test_api.py
HealthByRo/fdadb
e020a902ca20cebd5999bc2dbc530375ab0922fb
[ "MIT" ]
null
null
null
from rest_framework.reverse import reverse from rest_framework.test import APITestCase from fdadb.models import MedicationName, MedicationNDC, MedicationStrength
45.966667
120
0.583575
280c4e3ff6e2c8be5af4beb5882bf9b9cd5ee1c7
3,626
py
Python
script/gen_canonical_combining_class.py
CyberZHG/UChar
e59ee5e3ad166288380407df6d5e6c0fe20681cf
[ "MIT" ]
1
2020-07-15T16:16:20.000Z
2020-07-15T16:16:20.000Z
script/gen_canonical_combining_class.py
CyberZHG/UChar
e59ee5e3ad166288380407df6d5e6c0fe20681cf
[ "MIT" ]
null
null
null
script/gen_canonical_combining_class.py
CyberZHG/UChar
e59ee5e3ad166288380407df6d5e6c0fe20681cf
[ "MIT" ]
1
2020-06-01T01:15:29.000Z
2020-06-01T01:15:29.000Z
#!/usr/bin/env python """ Copyright 2020 Zhao HG 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 use, copy, modify, merge, publish, ...
40.741573
99
0.660232
280cef3837d316af797287a2c5c707f3a00a10c1
3,676
py
Python
server.py
Timothylock/twillio-buzzer-connector
9ac7e4763a5eee7d04daa054841e17332c0bac13
[ "Apache-2.0" ]
null
null
null
server.py
Timothylock/twillio-buzzer-connector
9ac7e4763a5eee7d04daa054841e17332c0bac13
[ "Apache-2.0" ]
null
null
null
server.py
Timothylock/twillio-buzzer-connector
9ac7e4763a5eee7d04daa054841e17332c0bac13
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request from twilio.twiml.voice_response import VoiceResponse, Gather import datetime import os import json import http.client app = Flask(__name__) allowUntil = datetime.datetime.now() # Fetch env vars whitelisted_numbers = os.environ['WHITELISTED_NUMBERS'].split(",") # Numbers allowed to d...
33.418182
121
0.639554
280f1650f5bc3fd7a59f3f2ae253341d13e12350
5,738
py
Python
App/GUI_Pages/LoginPage.py
TUIASI-AC-enaki/Shopping_Application
d6c6f446618937347f9c78fe3b969bc2c2ef9331
[ "Apache-2.0" ]
null
null
null
App/GUI_Pages/LoginPage.py
TUIASI-AC-enaki/Shopping_Application
d6c6f446618937347f9c78fe3b969bc2c2ef9331
[ "Apache-2.0" ]
null
null
null
App/GUI_Pages/LoginPage.py
TUIASI-AC-enaki/Shopping_Application
d6c6f446618937347f9c78fe3b969bc2c2ef9331
[ "Apache-2.0" ]
null
null
null
import tkinter as tk from tkinter import font as tkfont, ttk import logging as log import sys from cx_Oracle import DatabaseError from GUI_Pages.BasicPage import TitlePage from Utilities.Cipher import Cipher, get_hash FORMAT = '[%(asctime)s] [%(levelname)s] : %(message)s' log.basicConfig(stream=sys.stdout, level=lo...
50.778761
140
0.682468
2810be0978f433319136f58db93ce028bbbb9a9c
8,151
py
Python
cosmos/ingestion/ingest/process/hierarchy_extractor/bert_hierarchy_extractor/train/bert_extractor_trainer.py
ilmcconnell/Cosmos
84245034727c30e20ffddee9e02c7e96f3aa115e
[ "Apache-2.0" ]
30
2019-03-14T08:24:34.000Z
2022-03-09T06:05:44.000Z
cosmos/ingestion/ingest/process/hierarchy_extractor/bert_hierarchy_extractor/train/bert_extractor_trainer.py
ilmcconnell/Cosmos
84245034727c30e20ffddee9e02c7e96f3aa115e
[ "Apache-2.0" ]
78
2019-02-07T22:14:48.000Z
2022-03-09T05:59:18.000Z
cosmos/ingestion/ingest/process/hierarchy_extractor/bert_hierarchy_extractor/train/bert_extractor_trainer.py
ilmcconnell/Cosmos
84245034727c30e20ffddee9e02c7e96f3aa115e
[ "Apache-2.0" ]
11
2019-03-02T01:20:06.000Z
2022-03-25T07:25:46.000Z
from bert_hierarchy_extractor.datasets.train_dataset import TrainHierarchyExtractionDataset from bert_hierarchy_extractor.datasets.utils import cudafy from bert_hierarchy_extractor.logging.utils import log_metrics import numpy as np from torch.utils.data import DataLoader from transformers import AdamW, get_linear_sche...
39.567961
104
0.585818
2811f691c9df0cfa06acd32c5b53be25799129d1
786
py
Python
lvl2.py
choxner/python-challenge
3c726936027087bc38f830a758549dd68467af52
[ "Apache-2.0" ]
null
null
null
lvl2.py
choxner/python-challenge
3c726936027087bc38f830a758549dd68467af52
[ "Apache-2.0" ]
null
null
null
lvl2.py
choxner/python-challenge
3c726936027087bc38f830a758549dd68467af52
[ "Apache-2.0" ]
null
null
null
# Level 2 of pythonchallenge.com! # Challenge: within the source code of this level, there is a # set of jumbled characters. Within these characters, find the # letters and join them together to find the correct url. from solution_framework import Solution import requests # to view source code import re ...
26.2
69
0.722646
2812d4c9e6e9c407e500296b0bda22c042be6c3e
1,444
py
Python
saleor/social/migrations/0001_initial.py
autobotasia/saleor
e03e9f6ab1bddac308a6609d6b576a87e90ae655
[ "CC-BY-4.0" ]
1
2022-02-19T13:27:40.000Z
2022-02-19T13:27:40.000Z
saleor/social/migrations/0001_initial.py
autobotasia/saleor
e03e9f6ab1bddac308a6609d6b576a87e90ae655
[ "CC-BY-4.0" ]
null
null
null
saleor/social/migrations/0001_initial.py
autobotasia/saleor
e03e9f6ab1bddac308a6609d6b576a87e90ae655
[ "CC-BY-4.0" ]
2
2021-12-03T16:59:37.000Z
2022-02-19T13:05:42.000Z
# Generated by Django 3.1.7 on 2021-05-10 07:38 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import saleor.core.utils.json_serializer
41.257143
156
0.640582
28137bb29b2acdc147558b677e97f5e615bea160
2,900
py
Python
adduser.py
Vignesh424/Face-Recognition-Attendance-Python
5d9c33b64bd41918edc55290a320f73bc4afa4e5
[ "Apache-2.0" ]
null
null
null
adduser.py
Vignesh424/Face-Recognition-Attendance-Python
5d9c33b64bd41918edc55290a320f73bc4afa4e5
[ "Apache-2.0" ]
null
null
null
adduser.py
Vignesh424/Face-Recognition-Attendance-Python
5d9c33b64bd41918edc55290a320f73bc4afa4e5
[ "Apache-2.0" ]
null
null
null
import cv2 import os import sqlite3 import dlib import re,time from playsound import playsound import pyttsx3 cam = cv2.VideoCapture(0) cam.set(3, 640) # set video width cam.set(4, 480) # set video height face_detector = cv2.CascadeClassifier('C:/Users/ACER/Desktop/PROJECT ALL RESOURCE/PROJECT ALL RESOURCE/F...
43.283582
182
0.686207
2814523dd67ea38c542b435dab46056033dd5d9d
4,847
py
Python
web/app/djrq/model/ampache/__init__.py
bmillham/djrq2
c84283b75a7c15da1902ebfc32b7d75159c09e20
[ "MIT" ]
1
2016-11-23T20:50:00.000Z
2016-11-23T20:50:00.000Z
web/app/djrq/model/ampache/__init__.py
bmillham/djrq2
c84283b75a7c15da1902ebfc32b7d75159c09e20
[ "MIT" ]
15
2017-01-15T04:18:40.000Z
2017-02-25T04:13:06.000Z
web/app/djrq/model/ampache/__init__.py
bmillham/djrq2
c84283b75a7c15da1902ebfc32b7d75159c09e20
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import * from sqlalchemy import * from sqlalchemy.sql import func, or_ from sqlalchemy.types import TIMESTAMP from sqlalchemy.ext.hybrid import hybrid_property from time import time import markupsafe from sqlalchemy.ext.associationproxy import ...
29.023952
100
0.637508
2814df1e327e7a389483fc7f28c047ef76e86e37
8,753
py
Python
conet/datasets/duke_oct_flat_sp.py
steermomo/conet
21d60fcb4ab9a01a00aa4d9cd0bdee79ea35cc4b
[ "MIT" ]
null
null
null
conet/datasets/duke_oct_flat_sp.py
steermomo/conet
21d60fcb4ab9a01a00aa4d9cd0bdee79ea35cc4b
[ "MIT" ]
null
null
null
conet/datasets/duke_oct_flat_sp.py
steermomo/conet
21d60fcb4ab9a01a00aa4d9cd0bdee79ea35cc4b
[ "MIT" ]
1
2020-05-18T10:05:24.000Z
2020-05-18T10:05:24.000Z
import multiprocessing as mp # mp.set_start_method('spawn') import math import os import pickle import random from glob import glob from os import path import albumentations as alb import cv2 import numpy as np import skimage import torch import imageio from albumentations.pytorch import ToTensorV2 from skimage.color...
30.498258
109
0.595224
28162dcf4efa8e10ec1ddcb4eb91bfa4cb4b0d83
107
py
Python
Chapter 01/fraction-type.py
arifmudi/Applying-Math-with-Python
abeb6b0a9bcfa8b21092b9793d4e691cf5a146bf
[ "MIT" ]
34
2020-07-23T14:42:42.000Z
2022-03-18T07:00:17.000Z
Chapter 01/fraction-type.py
arifmudi/Applying-Math-with-Python
abeb6b0a9bcfa8b21092b9793d4e691cf5a146bf
[ "MIT" ]
null
null
null
Chapter 01/fraction-type.py
arifmudi/Applying-Math-with-Python
abeb6b0a9bcfa8b21092b9793d4e691cf5a146bf
[ "MIT" ]
31
2020-07-22T11:09:33.000Z
2022-03-15T16:59:53.000Z
from fractions import Fraction num1 = Fraction(1, 3) num2 = Fraction(1, 7) num1 * num2 # Fraction(1, 21)
17.833333
30
0.691589
281720b5fdc07905c3eb03b6c213540b162d5693
1,109
py
Python
tests/config/test_project.py
gaborbernat/toxn
1ecb1121b3e3dc30b892b0254cb5566048b5d2e7
[ "MIT" ]
4
2018-04-15T15:12:32.000Z
2019-06-03T12:41:06.000Z
tests/config/test_project.py
gaborbernat/tox3
1ecb1121b3e3dc30b892b0254cb5566048b5d2e7
[ "MIT" ]
3
2018-03-15T11:06:30.000Z
2018-04-15T15:17:29.000Z
tests/config/test_project.py
gaborbernat/tox3
1ecb1121b3e3dc30b892b0254cb5566048b5d2e7
[ "MIT" ]
1
2019-09-25T19:53:09.000Z
2019-09-25T19:53:09.000Z
from io import StringIO from pathlib import Path import pytest from toxn.config import from_toml
25.790698
59
0.6844
2819b274258b4f59c03325199e582718bece2d5e
536
py
Python
edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/__init__.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
null
null
null
edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/__init__.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
13
2021-03-25T22:24:38.000Z
2022-03-12T00:56:45.000Z
edinet_baseline_hourly_module/edinet_models/pyEMIS/ConsumptionModels/__init__.py
BeeGroup-cimne/module_edinet
0cda52e9d6222a681f85567e9bf0f7e5885ebf5e
[ "MIT" ]
1
2019-03-13T09:49:56.000Z
2019-03-13T09:49:56.000Z
from constantMonthlyModel import ConstantMonthlyModel from constantModel import ConstantModel from twoParameterModel import TwoParameterModel from threeParameterModel import ThreeParameterModel from anyModel import AnyModelFactory from schoolModel import SchoolModel, SchoolModelFactory from recurrentModel import Recurr...
44.666667
64
0.902985
281aa6d325487ceb00b0753134cf1290afd8b2fd
326
py
Python
tinder_config_ex.py
nathan-149/tinderbot
0413fbbba0219faf4415d75fd4f23518951b03a0
[ "MIT" ]
18
2020-06-30T18:31:44.000Z
2021-12-17T05:04:58.000Z
tinder_config_ex.py
havzor1231/Tinder-Bot
189524d7c80921a47b06262bd3cd42abaad7a85d
[ "MIT" ]
2
2020-07-21T07:55:48.000Z
2020-11-20T10:02:23.000Z
tinder_config_ex.py
havzor1231/Tinder-Bot
189524d7c80921a47b06262bd3cd42abaad7a85d
[ "MIT" ]
9
2020-07-12T08:00:00.000Z
2022-03-24T03:29:40.000Z
host = 'https://api.gotinder.com' #leave tinder_token empty if you don't use phone verification tinder_token = "0bb19e55-5f12-4a23-99df-8e258631105b" # Your real config file should simply be named "config.py" # Just insert your fb_username and fb_password in string format # and the fb_auth_token.py module will do the ...
40.75
63
0.785276
281c7adc874167e64dc0db3f96ec79ad8d491740
1,958
py
Python
simone/test.py
ross/simone
cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4
[ "MIT" ]
null
null
null
simone/test.py
ross/simone
cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4
[ "MIT" ]
1
2021-11-04T13:47:28.000Z
2021-11-04T13:47:28.000Z
simone/test.py
ross/simone
cfee8eaa04a7ddd235f735fa6c07adac28b4c6a4
[ "MIT" ]
1
2021-10-20T14:44:19.000Z
2021-10-20T14:44:19.000Z
from django.test.runner import DiscoverRunner from io import StringIO from logging import StreamHandler, getLogger from unittest import TextTestRunner, TextTestResult class SimoneRunner(DiscoverRunner): test_runner = SimoneTestRunner
31.079365
78
0.670582
281e79df5e1dd65bfbeca11e0d9ea108af82bb30
18
py
Python
library/tutorial/__init__.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
library/tutorial/__init__.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
library/tutorial/__init__.py
gottaegbert/penter
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
__all__ = ["fibo"]
18
18
0.611111
2820ef5bc2fdcf7913515a4a45ac8b19c189a6ce
1,340
py
Python
longest path in matrix.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
longest path in matrix.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
longest path in matrix.py
buhuhaha/python
4ff72ac711f0948ae5bcb0886d68e8df77fe515b
[ "MIT" ]
null
null
null
row = [-1, -1, -1, 0, 0, 1, 1, 1] col = [-1, 0, 1, -1, 1, -1, 0, 1] if __name__ == '__main__': mat = [ ['D', 'E', 'H', 'X', 'B'], ['A', 'O', 'G', 'P', 'E'], ['D', 'D', 'C', 'F', 'D'], ['E', 'B', 'E', 'A', 'S'], ['C', 'D', 'Y', 'E', 'N'] ] ch = '...
20.30303
85
0.435075
28226ec9ea67dad00950fa1852a66dbf14540c2c
4,653
py
Python
AnimalProfile/session/batchAnimals.py
AtMostafa/AnimalProfile
866f55659b80291f840ecacd090afada5f4de674
[ "MIT" ]
null
null
null
AnimalProfile/session/batchAnimals.py
AtMostafa/AnimalProfile
866f55659b80291f840ecacd090afada5f4de674
[ "MIT" ]
null
null
null
AnimalProfile/session/batchAnimals.py
AtMostafa/AnimalProfile
866f55659b80291f840ecacd090afada5f4de674
[ "MIT" ]
null
null
null
__all__ = ('get_session_list', 'get_animal_list', 'get_event', 'get_tag_pattern', 'get_pattern_animalList', 'get_current_animals') import datetime import logging from .. import Root from .. import File from .. import Profile from ..Profile import EventProfile from...
33.47482
119
0.663873
282403dbaa1f17f6e0d6f80a9faabdc5990009bd
10,747
py
Python
IsaacAgent.py
dholmdahl/connect4-1
cdcd92ee30f45e89a9f01ebc87a8b6d797cc4a81
[ "MIT" ]
null
null
null
IsaacAgent.py
dholmdahl/connect4-1
cdcd92ee30f45e89a9f01ebc87a8b6d797cc4a81
[ "MIT" ]
null
null
null
IsaacAgent.py
dholmdahl/connect4-1
cdcd92ee30f45e89a9f01ebc87a8b6d797cc4a81
[ "MIT" ]
null
null
null
from random import choice from copy import deepcopy from game_data import GameData from agents import Agent import numpy as np import random import pickle import pandas as pd
33.902208
199
0.499209
28254fc9a86cfb17a27b879bc1d9e02d48b17b76
1,288
py
Python
HTTPServer.py
dannyb648/HTTPServer
e7877646d2ee890229d5db67055abed2f3a91812
[ "MIT" ]
null
null
null
HTTPServer.py
dannyb648/HTTPServer
e7877646d2ee890229d5db67055abed2f3a91812
[ "MIT" ]
null
null
null
HTTPServer.py
dannyb648/HTTPServer
e7877646d2ee890229d5db67055abed2f3a91812
[ "MIT" ]
null
null
null
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler from SocketServer import ThreadingMixIn from os import curdir, sep import threading import urlparse import mimetypes PORT_NUMBER = 8080 VERSION_NUMBER = '1.0.0' if __name__ == '__main__': server = ThreadedHTTPServer(('', PORT_NUMBER), Handler) print 'Sta...
24.769231
61
0.736801
2826bae5797a9d9d95a636c0a99581f2619ca237
5,872
py
Python
algorand-oracle-smart-contracts/src/algorand_oracle.py
damees/algorand-oracle
f7f078f9d153341d1ba546ff66e8afbf2685f114
[ "MIT" ]
null
null
null
algorand-oracle-smart-contracts/src/algorand_oracle.py
damees/algorand-oracle
f7f078f9d153341d1ba546ff66e8afbf2685f114
[ "MIT" ]
null
null
null
algorand-oracle-smart-contracts/src/algorand_oracle.py
damees/algorand-oracle
f7f078f9d153341d1ba546ff66e8afbf2685f114
[ "MIT" ]
null
null
null
from pyteal import * ADMIN_KEY = Bytes("admin") WHITELISTED_KEY = Bytes("whitelisted") REQUESTS_BALANCE_KEY = Bytes("requests_balance") MAX_BUY_AMOUNT = Int(1000000000) MIN_BUY_AMOUNT = Int(10000000) REQUESTS_SELLER = Addr("N5ICVTFKS7RJJHGWWM5QXG2L3BV3GEF6N37D2ZF73O4PCBZCXP4HV3K7CY") MARKET_EXCHANGE_NOTE = Bytes("alg...
35.161677
111
0.547854
28271eebbca12a80c721021d335930842259d168
20,198
py
Python
custom_components/shelly/__init__.py
astrandb/ShellyForHASS
f404d3007a26945f310a801c6c7d196d7fa1fe23
[ "MIT" ]
null
null
null
custom_components/shelly/__init__.py
astrandb/ShellyForHASS
f404d3007a26945f310a801c6c7d196d7fa1fe23
[ "MIT" ]
null
null
null
custom_components/shelly/__init__.py
astrandb/ShellyForHASS
f404d3007a26945f310a801c6c7d196d7fa1fe23
[ "MIT" ]
null
null
null
""" Support for Shelly smart home devices. For more details about this component, please refer to the documentation at https://home-assistant.io/components/shelly/ """ # pylint: disable=broad-except, bare-except, invalid-name, import-error from datetime import timedelta import logging import time import as...
36.003565
87
0.576839
28274273d3b6e8ded8878a57fe78503427048f15
664
py
Python
examples/petstore/migrations/versions/36745fa33987_remove_unique_constraint.py
fastack-dev/fastack-migrate
1e9d3b3b1d25bec000432026b975053e5350e3da
[ "MIT" ]
1
2021-12-23T03:20:57.000Z
2021-12-23T03:20:57.000Z
examples/petstore/migrations/versions/36745fa33987_remove_unique_constraint.py
fastack-dev/fastack-migrate
1e9d3b3b1d25bec000432026b975053e5350e3da
[ "MIT" ]
1
2022-02-09T08:10:30.000Z
2022-02-09T08:10:30.000Z
examples/petstore/migrations/versions/36745fa33987_remove_unique_constraint.py
fastack-dev/fastack-migrate
1e9d3b3b1d25bec000432026b975053e5350e3da
[ "MIT" ]
null
null
null
"""remove unique constraint Revision ID: 36745fa33987 Revises: 6b7ad8fd60f9 Create Date: 2022-01-06 08:31:55.141039 """ from alembic import op # revision identifiers, used by Alembic. revision = "36745fa33987" down_revision = "6b7ad8fd60f9" branch_labels = None depends_on = None
24.592593
72
0.701807
282798301fe62d89dc92c6e1905920362da8011c
564
py
Python
addons/website_event_track_live_quiz/controllers/track_live_quiz.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_event_track_live_quiz/controllers/track_live_quiz.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/website_event_track_live_quiz/controllers/track_live_quiz.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.website_event_track_live.controllers.track_live import EventTrackLiveController
43.384615
113
0.79078
28289fb87251908aef9d071f6be27139338d9810
2,640
py
Python
strongholds-and-followers/retainer/retainer.py
kbsletten/AvraeAliases
a392881dcddccc2155d10fd4d231f1be53c54bda
[ "MIT" ]
null
null
null
strongholds-and-followers/retainer/retainer.py
kbsletten/AvraeAliases
a392881dcddccc2155d10fd4d231f1be53c54bda
[ "MIT" ]
null
null
null
strongholds-and-followers/retainer/retainer.py
kbsletten/AvraeAliases
a392881dcddccc2155d10fd4d231f1be53c54bda
[ "MIT" ]
1
2022-03-17T18:06:25.000Z
2022-03-17T18:06:25.000Z
embed <drac2> GVARS = load_json(get_gvar("c1ee7d0f-750d-4f92-8d87-70fa22c07a81")) CLASSES = [load_json(get_gvar(gvar)) for gvar in GVARS] DISPLAY = { "acrobatics": "Acrobatics", "animalhandling": "Animal Handling", "athletics": "Athletics", "arcana": "Arcana", "deception": "Deception", "dex": "Dex...
36.164384
122
0.625
2829cb6a0e893f3f47a265e061c7b3ffa93b9eea
8,351
py
Python
bloomberg_functions.py
sophierubin1224/strategy_draft
410206e5679865ffa25506e733c13b5b03416586
[ "MIT" ]
null
null
null
bloomberg_functions.py
sophierubin1224/strategy_draft
410206e5679865ffa25506e733c13b5b03416586
[ "MIT" ]
null
null
null
bloomberg_functions.py
sophierubin1224/strategy_draft
410206e5679865ffa25506e733c13b5b03416586
[ "MIT" ]
4
2021-04-12T23:30:14.000Z
2021-04-13T13:19:15.000Z
################################################################################ ##### For Bloomberg ------------------------------------------------------------ ##### Can't use this if you're on a Mac :( ################################################################################ from __future__ import print_f...
41.341584
81
0.544246
282a2f90de76609dae1135f6d1faa97131c57a5d
3,767
py
Python
backend/histocat/worker/segmentation/processors/acquisition_processor.py
BodenmillerGroup/histocat-web
c598cd07506febf0b7c209626d4eb869761f2e62
[ "MIT" ]
4
2021-06-14T15:19:25.000Z
2022-02-09T13:17:39.000Z
backend/histocat/worker/segmentation/processors/acquisition_processor.py
BodenmillerGroup/histocat-web
c598cd07506febf0b7c209626d4eb869761f2e62
[ "MIT" ]
null
null
null
backend/histocat/worker/segmentation/processors/acquisition_processor.py
BodenmillerGroup/histocat-web
c598cd07506febf0b7c209626d4eb869761f2e62
[ "MIT" ]
1
2022-02-09T13:17:41.000Z
2022-02-09T13:17:41.000Z
import os from typing import Sequence, Union import numpy as np import tifffile from deepcell.applications import Mesmer from imctools.io.ometiff.ometiffparser import OmeTiffParser from skimage import measure from sqlalchemy.orm import Session from histocat.core.acquisition import service as acquisition_service from ...
38.835052
105
0.723653
282c0f9d07c95149eb897900350f51bc9e832909
9,800
py
Python
Fractals.py
do-it-for-coffee/fractals
6050dc72ddeed45aefafed489e07a40ee8d8dc1d
[ "Apache-2.0" ]
null
null
null
Fractals.py
do-it-for-coffee/fractals
6050dc72ddeed45aefafed489e07a40ee8d8dc1d
[ "Apache-2.0" ]
null
null
null
Fractals.py
do-it-for-coffee/fractals
6050dc72ddeed45aefafed489e07a40ee8d8dc1d
[ "Apache-2.0" ]
null
null
null
import math import numpy as np import random import os from PIL import Image import pyttsx3 if __name__ == '__main__': pass
35.507246
94
0.521429
282ccb40eb876af8551ca4938f1b672da9c20208
1,189
py
Python
helpers.py
AHS-Open-Sorcery/HTNE-Project
c6caf57f1e89302c06ef0a84ddb83c645274d183
[ "MIT" ]
null
null
null
helpers.py
AHS-Open-Sorcery/HTNE-Project
c6caf57f1e89302c06ef0a84ddb83c645274d183
[ "MIT" ]
null
null
null
helpers.py
AHS-Open-Sorcery/HTNE-Project
c6caf57f1e89302c06ef0a84ddb83c645274d183
[ "MIT" ]
null
null
null
from data_retrieval import * import emailer from login.config import Config from sentiment_analysis import * import tweepy import json
27.022727
117
0.710681
282cfc4e7936eaf93017c54214756f8505acd57a
3,291
py
Python
attack_metrics/mr.py
asplos2020/DRTest
c3de497142d9b226e518a1a0f95f7350d2f7acd6
[ "MIT" ]
1
2021-04-01T07:31:17.000Z
2021-04-01T07:31:17.000Z
attack_metrics/mr.py
Justobe/DRTest
85c3c9b2a46cafa7184130f2596c5f9eb3b20bff
[ "MIT" ]
null
null
null
attack_metrics/mr.py
Justobe/DRTest
85c3c9b2a46cafa7184130f2596c5f9eb3b20bff
[ "MIT" ]
1
2020-12-24T12:12:54.000Z
2020-12-24T12:12:54.000Z
""" This tutorial shows how to generate adversarial examples using FGSM and train a model using adversarial training with TensorFlow. It is very similar to mnist_tutorial_keras_tf.py, which does the same thing but with a dependence on keras. The original paper can be found at: https://arxiv.org/abs/1412.6572 """ from _...
33.242424
101
0.717107
282d70a51f36fc140a29300e30c60da47fb2411b
7,434
py
Python
detect_deeplabv3plus_ascend.py
jackhanyuan/deeplabv3plus-ascend
817006a4514257aa8cd07d752b70bbff9709ba9f
[ "Apache-2.0" ]
null
null
null
detect_deeplabv3plus_ascend.py
jackhanyuan/deeplabv3plus-ascend
817006a4514257aa8cd07d752b70bbff9709ba9f
[ "Apache-2.0" ]
null
null
null
detect_deeplabv3plus_ascend.py
jackhanyuan/deeplabv3plus-ascend
817006a4514257aa8cd07d752b70bbff9709ba9f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # by [jackhanyuan](https://github.com/jackhanyuan) 07/03/2022 import argparse import copy import glob import os import re import sys import time from pathlib import Path import cv2 import acl import torch import numpy as np from PIL import Image import torch.nn.functiona...
34.738318
114
0.595776
282db7a977d5ee21b51eae4baa89a5c662e12b73
1,044
py
Python
trim2.py
AmadeusChan/GeminiGraph
893b05ee5c560ec51d41ab6a58a300baade8a9f5
[ "Apache-2.0" ]
null
null
null
trim2.py
AmadeusChan/GeminiGraph
893b05ee5c560ec51d41ab6a58a300baade8a9f5
[ "Apache-2.0" ]
null
null
null
trim2.py
AmadeusChan/GeminiGraph
893b05ee5c560ec51d41ab6a58a300baade8a9f5
[ "Apache-2.0" ]
null
null
null
import os with open("./simple_graph.txt", "r") as f: N = int(f.readline()) edges = [] while True: line = f.readline().strip() if line == None or len(line) == 0: break line = line.split(" ") edges.append([int(line[0]), int(line[1])]) con = [] for i in range(N): ...
18.642857
50
0.51341
282de6dc694665ce1234b3c8d5c5765ed89dc979
3,516
py
Python
Classes/Data.py
zerowsir/stock_study
ae2f3fab2b0cb3f4c980f0b229547867902415c4
[ "MIT" ]
5
2020-04-27T08:07:06.000Z
2022-01-02T14:47:21.000Z
Classes/Data.py
zerowsir/stock_study
ae2f3fab2b0cb3f4c980f0b229547867902415c4
[ "MIT" ]
null
null
null
Classes/Data.py
zerowsir/stock_study
ae2f3fab2b0cb3f4c980f0b229547867902415c4
[ "MIT" ]
3
2020-04-25T12:29:09.000Z
2021-07-09T05:47:01.000Z
# coding=utf-8 """ __title__ = '' __file__ = '' __author__ = 'tianmuchunxiao' __mtime__ = '2019/7/4' """ import requests import datetime import pandas as pd from io import StringIO TODAY = datetime.date.strftime(datetime.date.today(), '%Y%m%d')
42.878049
834
0.700512
28306d7ad64f3293bff710f9c34f8a63246637c0
4,151
py
Python
tledb/common/misc.py
rtubio/tledb
2bfb13497d4ba7c155505fa7396abd7bf837b3a5
[ "Apache-2.0" ]
null
null
null
tledb/common/misc.py
rtubio/tledb
2bfb13497d4ba7c155505fa7396abd7bf837b3a5
[ "Apache-2.0" ]
5
2020-11-09T00:24:16.000Z
2022-02-10T15:10:19.000Z
tledb/common/misc.py
rtubio/tledb
2bfb13497d4ba7c155505fa7396abd7bf837b3a5
[ "Apache-2.0" ]
1
2020-11-08T10:35:23.000Z
2020-11-08T10:35:23.000Z
import datetime import logging import pytz import socket logger = logging.getLogger('common') def get_fqdn(ip_address): """ Function that transforms a given IP address into the associated FQDN name for that host. :param ip_address: IP address of the remote host. :return: FQDN name for that host...
30.748148
78
0.688991
2832742f4b503c46d1f0a267a28c5b2b06f21e83
2,455
py
Python
CoC/CoC_Default_CmdSets.py
macorvalan/MyGame
29a14bcb1ffb11b158d325112d5698107d8f1188
[ "Unlicense" ]
null
null
null
CoC/CoC_Default_CmdSets.py
macorvalan/MyGame
29a14bcb1ffb11b158d325112d5698107d8f1188
[ "Unlicense" ]
null
null
null
CoC/CoC_Default_CmdSets.py
macorvalan/MyGame
29a14bcb1ffb11b158d325112d5698107d8f1188
[ "Unlicense" ]
null
null
null
""" """ from evennia import default_cmds from evennia import CmdSet
24.068627
72
0.627291
2832f2cc2b9e737de1d148d89d82f9fe93379119
6,300
py
Python
dit/inference/counts.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
1
2021-03-15T08:51:42.000Z
2021-03-15T08:51:42.000Z
dit/inference/counts.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
null
null
null
dit/inference/counts.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
null
null
null
""" Non-cython methods for getting counts and distributions from data. """ import numpy as np try: # cython from .pycounts import counts_from_data, distribution_from_data except ImportError: # no cython from boltons.iterutils import windowed_iter from collections import Counter, defaultdict from it...
35
98
0.619524
28336284c8b0c58eec05e4f7f5c39c75af17be88
1,845
py
Python
tests/test_get_meetings.py
GeorgianBadita/Dronem-gym-envirnoment
f3b488f6a4b55722c4b129051555a68d7775278c
[ "MIT" ]
5
2020-06-13T10:43:42.000Z
2022-01-25T10:37:32.000Z
tests/test_get_meetings.py
GeorgianBadita/Dronem-gym-envirnoment
f3b488f6a4b55722c4b129051555a68d7775278c
[ "MIT" ]
null
null
null
tests/test_get_meetings.py
GeorgianBadita/Dronem-gym-envirnoment
f3b488f6a4b55722c4b129051555a68d7775278c
[ "MIT" ]
null
null
null
""" @author: Badita Marin-Georgian @email: geo.badita@gmail.com @date: 21.03.2020 00:58 """ from env_interpretation import Meeting from env_interpretation.meeting import get_valid_meetings
38.4375
104
0.656369
2834130633642f13cf991cd575cca24813206c77
1,670
py
Python
python/test/environment/test_reset.py
stacyvjong/PandemicSimulator
eca906f5dc8135d7c90a1582b96621235f745c17
[ "Apache-2.0" ]
null
null
null
python/test/environment/test_reset.py
stacyvjong/PandemicSimulator
eca906f5dc8135d7c90a1582b96621235f745c17
[ "Apache-2.0" ]
null
null
null
python/test/environment/test_reset.py
stacyvjong/PandemicSimulator
eca906f5dc8135d7c90a1582b96621235f745c17
[ "Apache-2.0" ]
null
null
null
# Confidential, Copyright 2020, Sony Corporation of America, All rights reserved. import copy import numpy as np from pandemic_simulator.environment import CityRegistry, Home, GroceryStore, Office, School, Hospital, PopulationParams, \ LocationParams from pandemic_simulator.script_helpers import make_standard_loc...
36.304348
122
0.742515
28343120a82f0ad353610fd53956f8cb3bf271dc
1,008
py
Python
Groups/Group_ID_6/SIFT_and_RESIFT/Code_files/sift.py
sonaldangi12/DataScience
3d7cd529a96f37c2ef179ee408e2c6d8744d746a
[ "MIT" ]
5
2020-12-13T07:53:22.000Z
2020-12-20T18:49:27.000Z
Groups/Group_ID_6/SIFT_and_RESIFT/Code_files/sift.py
Gulnaz-Tabassum/DataScience
1fd771f873a9bc0800458fd7c05e228bb6c4e8a0
[ "MIT" ]
null
null
null
Groups/Group_ID_6/SIFT_and_RESIFT/Code_files/sift.py
Gulnaz-Tabassum/DataScience
1fd771f873a9bc0800458fd7c05e228bb6c4e8a0
[ "MIT" ]
24
2020-12-12T11:23:28.000Z
2021-10-04T13:09:38.000Z
from libs import *
56
128
0.779762
283446254a407be87bc62c4c4206eacf19fcc853
651
py
Python
Q14__/23_Maximum_Points_You_Can_Obtain_from_Cards/Solution.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
Q14__/23_Maximum_Points_You_Can_Obtain_from_Cards/Solution.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
Q14__/23_Maximum_Points_You_Can_Obtain_from_Cards/Solution.py
hsclinical/leetcode
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
[ "Apache-2.0" ]
null
null
null
from typing import List
32.55
79
0.506912
28349545dacdb38c6ebe53a67d01ff333f29fa0c
1,192
py
Python
utils/editResult.py
JasonHippo/Scene_text_detection_and_recognition
c0da141d71b7b888d560296b201aecbbd735b565
[ "MIT" ]
4
2021-12-27T14:37:33.000Z
2022-03-30T10:56:57.000Z
utils/editResult.py
JasonHippo/Scene_text_detection_and_recognition
c0da141d71b7b888d560296b201aecbbd735b565
[ "MIT" ]
null
null
null
utils/editResult.py
JasonHippo/Scene_text_detection_and_recognition
c0da141d71b7b888d560296b201aecbbd735b565
[ "MIT" ]
null
null
null
import pandas as pd import argparse badword = ["!", "$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","/","]","^","_","`","{","|","}","~","",""] if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--path', help='the path of file') ...
32.216216
141
0.428691
28360d264e9f210900fd3d3f89893b647f81343f
133
py
Python
Service/Ipv4_stun/startup.py
zlf7735268/Tenet
54005ad5d17b5d1f5ef4cc04aa6eb7939e58c2c5
[ "Apache-2.0" ]
2
2021-12-17T01:21:19.000Z
2021-12-17T14:49:42.000Z
Service/Ipv4_stun/startup.py
zlf7735268/Tenet
54005ad5d17b5d1f5ef4cc04aa6eb7939e58c2c5
[ "Apache-2.0" ]
null
null
null
Service/Ipv4_stun/startup.py
zlf7735268/Tenet
54005ad5d17b5d1f5ef4cc04aa6eb7939e58c2c5
[ "Apache-2.0" ]
null
null
null
from Ipv4_stun.transfer import Transfer #m=Transfer(address=('172.16.0.156',9080)) m=Transfer(address=('127.0.0.1', 82)) m.run()
26.6
43
0.691729
2837b7ad00fad751653116c498c45a40929e5a19
4,030
py
Python
generator/season.py
fraziermatthew/njba
acedec351543b8ecf339beb2d27c635f3377e929
[ "MIT" ]
null
null
null
generator/season.py
fraziermatthew/njba
acedec351543b8ecf339beb2d27c635f3377e929
[ "MIT" ]
null
null
null
generator/season.py
fraziermatthew/njba
acedec351543b8ecf339beb2d27c635f3377e929
[ "MIT" ]
null
null
null
"""season.py: Generates random NJBA season data.""" __author__ = "Matthew Frazier" __copyright__ = "Copyright 2019, University of Delaware, CISC 637 Database Systems" __email__ = "matthew@udel.edu" from datetime import timedelta import calendar import csv ''' Steps to run this project: 1. Create a virtual env a...
33.032787
106
0.536476
2837e96df35c3511f85fcf1e1d1d5915d5541eac
2,746
py
Python
src/pace/allele_similarity.py
tmadden/pace
0be5d92579efc4e6219f5c58bb4e4ac6754e865e
[ "MIT" ]
null
null
null
src/pace/allele_similarity.py
tmadden/pace
0be5d92579efc4e6219f5c58bb4e4ac6754e865e
[ "MIT" ]
9
2019-01-16T15:13:37.000Z
2019-07-29T18:31:58.000Z
src/pace/allele_similarity.py
tmadden/pace
0be5d92579efc4e6219f5c58bb4e4ac6754e865e
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import pace from pace.definitions import amino_acids, builtin_aa_encodings, builtin_allele_similarities from pace.sklearn import create_one_hot_encoder from pkg_resources import resource_stream def get_allele_similarity_mat(allele_similarity_name): """ Get a ...
36.131579
101
0.717407
2838bf018ab619624c31ab34ebae1fd0c469063d
13,884
py
Python
client/forms/reader_form.py
zhmzlzn/Network-Pj-BookReader
891d395f2db464f4d4e7b84dd03c3cddebbafd30
[ "MIT" ]
6
2019-11-28T10:47:46.000Z
2021-11-04T08:22:56.000Z
client/forms/reader_form.py
zhmzlzn/python-BookReader
891d395f2db464f4d4e7b84dd03c3cddebbafd30
[ "MIT" ]
null
null
null
client/forms/reader_form.py
zhmzlzn/python-BookReader
891d395f2db464f4d4e7b84dd03c3cddebbafd30
[ "MIT" ]
4
2019-12-17T15:29:22.000Z
2021-05-28T16:39:51.000Z
import tkinter as tk from tkinter import * from tkinter import messagebox from tkinter.simpledialog import askinteger from protocol.secure_transmission.secure_channel import establish_secure_channel_to_server from protocol.message_type import MessageType from protocol.data_conversion.from_byte import deserialize_messag...
43.118012
129
0.584054
2838cb9fb3068b931f43ec405489f94b2abb45c7
3,285
py
Python
akispy/__init__.py
ryanleland/Akispy
dbbb85a1d1b027051e11179289cc9067cb90baf6
[ "MIT" ]
null
null
null
akispy/__init__.py
ryanleland/Akispy
dbbb85a1d1b027051e11179289cc9067cb90baf6
[ "MIT" ]
2
2017-05-19T21:59:04.000Z
2021-06-25T15:28:07.000Z
akispy/__init__.py
ryanleland/Akispy
dbbb85a1d1b027051e11179289cc9067cb90baf6
[ "MIT" ]
1
2017-05-18T05:23:47.000Z
2017-05-18T05:23:47.000Z
#!/usr/bin/env python """Light weight python client for Akismet API.""" __title__ = 'akispy' __version__ = '0.2' __author__ = 'Ryan Leland' __copyright__ = 'Copyright 2012 Ryan Leland' import http.client, urllib.request, urllib.parse, urllib.error
30.990566
101
0.557991
283a11f41a96444be50edc2390d31671ac936bd1
1,599
py
Python
scripts/extract_mfcc.py
xavierfav/coala
b791ad6bb5c4f7b8f8f8fa8e0c5bd5b89b0ecbc3
[ "MIT" ]
34
2020-06-12T15:54:22.000Z
2021-12-16T08:16:45.000Z
scripts/extract_mfcc.py
xavierfav/ae-w2v-attention
8039c056ad365769bdf8d77d6292d4f3cfb957a4
[ "MIT" ]
3
2020-06-22T09:06:27.000Z
2021-07-10T09:58:30.000Z
scripts/extract_mfcc.py
xavierfav/coala
b791ad6bb5c4f7b8f8f8fa8e0c5bd5b89b0ecbc3
[ "MIT" ]
4
2020-10-23T03:29:35.000Z
2021-08-19T09:31:57.000Z
""" This script is used to compute mffc features for target task datasets. Warning: Need manual editing for switching datasets """ import os import librosa import soundfile as sf import numpy as np from tqdm import tqdm from pathlib import Path FILES_LOCATION = '../data/UrbanSound8K/audio' FILES_LOCATION = '../data/G...
30.75
89
0.632896
283a66142e84ec8f0ef344d826e481e7692288fc
391
py
Python
sqli/__main__.py
everilae/sqli
8a63076dc8316b38ce521b63e67bea8d2ccf2a80
[ "MIT" ]
null
null
null
sqli/__main__.py
everilae/sqli
8a63076dc8316b38ce521b63e67bea8d2ccf2a80
[ "MIT" ]
1
2017-10-22T11:13:58.000Z
2020-06-01T09:20:20.000Z
sqli/__main__.py
everilae/sqli
8a63076dc8316b38ce521b63e67bea8d2ccf2a80
[ "MIT" ]
null
null
null
import argparse import astunparse import sys from . import check parser = argparse.ArgumentParser() parser.add_argument("file", nargs="?", type=argparse.FileType("r"), default=sys.stdin) args = parser.parse_args() poisoned = check(args.file.read()) print("Possible SQL injections:") for p in poi...
23
67
0.682864
283aae358baff3c73b726efc887ef653ab678494
318
py
Python
rammstein.py
wildekek/rammstein-generator
fc7ef34260c4dddaba01ff4c964349e13bd4bf1a
[ "MIT" ]
3
2015-10-11T15:39:30.000Z
2019-06-18T19:20:00.000Z
rammstein.py
wildekek/rammstein-generator
fc7ef34260c4dddaba01ff4c964349e13bd4bf1a
[ "MIT" ]
null
null
null
rammstein.py
wildekek/rammstein-generator
fc7ef34260c4dddaba01ff4c964349e13bd4bf1a
[ "MIT" ]
1
2019-06-16T21:49:16.000Z
2019-06-16T21:49:16.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- a='Du hast mich' b='Du, du hast'+'\n'+a c=a+' gefragt' d=j([b,b,'']) e=j(['Willst du bis der Tod euch scheidet','Treurig sein fr alle Tage?','Nein, nein!','']) f=j([d,b,a,'',j([c,c,c,'Und ich hab nichts gesagt','']),e,e]) print j([d,f,f,e])
28.909091
91
0.566038
283bc06264c86314c6694bec3801d78f4ce49fef
799
py
Python
tests/test_06_reporting_classes.py
themperek/pyuvm
12abf6b0a631321c0fcce6ebbc04b8cc9900c6a8
[ "Apache-2.0" ]
null
null
null
tests/test_06_reporting_classes.py
themperek/pyuvm
12abf6b0a631321c0fcce6ebbc04b8cc9900c6a8
[ "Apache-2.0" ]
null
null
null
tests/test_06_reporting_classes.py
themperek/pyuvm
12abf6b0a631321c0fcce6ebbc04b8cc9900c6a8
[ "Apache-2.0" ]
null
null
null
import pyuvm_unittest from pyuvm import *
34.73913
68
0.524406
283c7a1056bf5070026e3e0618dc2649d53dd2ec
203
py
Python
sucursal_crud/sucursal_crud_api/models/puntoDeRetiro.py
cassa10/challenge-api
0bcc4f38b049f930faca45b80d869835650e2a23
[ "MIT" ]
null
null
null
sucursal_crud/sucursal_crud_api/models/puntoDeRetiro.py
cassa10/challenge-api
0bcc4f38b049f930faca45b80d869835650e2a23
[ "MIT" ]
null
null
null
sucursal_crud/sucursal_crud_api/models/puntoDeRetiro.py
cassa10/challenge-api
0bcc4f38b049f930faca45b80d869835650e2a23
[ "MIT" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator from .nodo import Nodo
33.833333
70
0.817734
283cfb68139e552afe4cbfabaafdcde926934b65
8,429
py
Python
trinity/sync/header/chain.py
g-r-a-n-t/trinity
f108b6cd34ed9aabfcf9e235badd91597650ecd5
[ "MIT" ]
1
2021-04-07T07:33:28.000Z
2021-04-07T07:33:28.000Z
trinity/sync/header/chain.py
g-r-a-n-t/trinity
f108b6cd34ed9aabfcf9e235badd91597650ecd5
[ "MIT" ]
null
null
null
trinity/sync/header/chain.py
g-r-a-n-t/trinity
f108b6cd34ed9aabfcf9e235badd91597650ecd5
[ "MIT" ]
null
null
null
import asyncio from typing import Sequence from async_service import Service, background_asyncio_service from eth.abc import BlockHeaderAPI from eth.exceptions import CheckpointsMustBeCanonical from eth_typing import BlockNumber from trinity._utils.pauser import Pauser from trinity.chains.base import AsyncChainAPI fr...
37.629464
97
0.626409
283d50169f9d4063fc968899a7356c0ef91c4024
2,436
py
Python
plato/clients/scaffold.py
iQua/plato
76fdac06af8b4d85922cd12749b4a687e3161745
[ "Apache-2.0" ]
null
null
null
plato/clients/scaffold.py
iQua/plato
76fdac06af8b4d85922cd12749b4a687e3161745
[ "Apache-2.0" ]
null
null
null
plato/clients/scaffold.py
iQua/plato
76fdac06af8b4d85922cd12749b4a687e3161745
[ "Apache-2.0" ]
1
2021-05-18T15:03:32.000Z
2021-05-18T15:03:32.000Z
""" A federated learning client using SCAFFOLD. Reference: Karimireddy et al., "SCAFFOLD: Stochastic Controlled Averaging for Federated Learning" (https://arxiv.org/pdf/1910.06378.pdf) """ import os from dataclasses import dataclass import torch from plato.clients import simple
35.304348
93
0.694992
283e3728c74f274d987dc75b56ca98081fe4485b
2,307
py
Python
test/test.py
SK-415/bilireq
ce4dfa2ae05a88291162907b86caf29ab868bedc
[ "MIT" ]
2
2021-10-20T06:32:35.000Z
2022-03-26T11:40:07.000Z
test/test.py
SK-415/bilireq
ce4dfa2ae05a88291162907b86caf29ab868bedc
[ "MIT" ]
1
2021-12-06T01:37:08.000Z
2021-12-06T01:37:08.000Z
test/test.py
SK-415/bilireq
ce4dfa2ae05a88291162907b86caf29ab868bedc
[ "MIT" ]
null
null
null
import asyncio import sys from pathlib import Path sys.path.append(str(Path(__file__).parent.parent)) from bilireq.auth import Auth from bilireq.dynamic import get_user_dynamics, get_followed_dynamics_update_info, get_followed_new_dynamics, get_followed_history_dynamics from bilireq.live import get_rooms_info_by_ids ...
30.355263
138
0.704378
283f0444ed2c9cb2e8181317df155e9ffdbf38c6
1,105
py
Python
scripts/pgmviz.py
anindex/auto_localization
e8acc6fb4a4221115e2d4f9ba87fd077ad741b70
[ "MIT" ]
1
2020-09-03T14:29:27.000Z
2020-09-03T14:29:27.000Z
scripts/pgmviz.py
anindex/auto_localization
e8acc6fb4a4221115e2d4f9ba87fd077ad741b70
[ "MIT" ]
null
null
null
scripts/pgmviz.py
anindex/auto_localization
e8acc6fb4a4221115e2d4f9ba87fd077ad741b70
[ "MIT" ]
2
2019-09-26T15:20:37.000Z
2021-07-14T11:00:49.000Z
import re import numpy def read_pgm(filename, byteorder='>'): """Return image data from a raw PGM file as numpy array. Format specification: http://netpbm.sourceforge.net/doc/pgm.html """ with open(filename, 'rb') as f: buffer = f.read() try: header, width, height, maxval = re.sea...
34.53125
99
0.529412
283fe692e8590b67f92e91991108dc8259bb2861
406
py
Python
sgnlp/models/span_extraction/__init__.py
vincenttzc/sgnlp
44ae12a5ae98c9a1945d346e9373854c7d472a4b
[ "MIT" ]
null
null
null
sgnlp/models/span_extraction/__init__.py
vincenttzc/sgnlp
44ae12a5ae98c9a1945d346e9373854c7d472a4b
[ "MIT" ]
null
null
null
sgnlp/models/span_extraction/__init__.py
vincenttzc/sgnlp
44ae12a5ae98c9a1945d346e9373854c7d472a4b
[ "MIT" ]
null
null
null
from .config import RecconSpanExtractionConfig from .tokenization import RecconSpanExtractionTokenizer from .modeling import RecconSpanExtractionModel from .preprocess import RecconSpanExtractionPreprocessor from .postprocess import RecconSpanExtractionPostprocessor from .train import train from .eval import evaluate f...
40.6
58
0.889163
2841fd174e918cba71310ebfefa31472caa5fe2f
331
py
Python
pandoc-starter/MarkTex/marktex/config.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
pandoc-starter/MarkTex/marktex/config.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
pandoc-starter/MarkTex/marktex/config.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
'''Don't change the basic param''' import os '''prog path''' config_path = os.path.split(__file__)[0] marktemp_path = os.path.join(config_path,"markenv.tex") '''tools setting''' image_download_retry_time = 10 # # wait_manully_if_all_failed = False # tex give_rele_path = True
23.642857
55
0.770393
28420d9ddb5dd0a224753623044f62aac5eba76f
669
py
Python
ProgramsToRead/ExercisesLists/Lista05/Exer12Lista05.py
ItanuRomero/PythonStudyPrograms
2b784b2af068b34e65ddf817ca8d99c1ca3a710e
[ "MIT" ]
null
null
null
ProgramsToRead/ExercisesLists/Lista05/Exer12Lista05.py
ItanuRomero/PythonStudyPrograms
2b784b2af068b34e65ddf817ca8d99c1ca3a710e
[ "MIT" ]
null
null
null
ProgramsToRead/ExercisesLists/Lista05/Exer12Lista05.py
ItanuRomero/PythonStudyPrograms
2b784b2af068b34e65ddf817ca8d99c1ca3a710e
[ "MIT" ]
null
null
null
# Questo 12. Construa uma funo que receba uma string como parmetro # e devolva outra string com os carateres emba- ralhados. Por exemplo: # se funo receber a palavra python, pode retornar npthyo, ophtyn ou # qualquer outra combinao possvel, de forma aleatria. Padronize em # sua funo que todos os caracteres sero dev...
37.166667
71
0.751868
28426aef923f9eca775a9b7c35cef0f1597b7c28
54,872
py
Python
DataScience/Numpy.py
AlPus108/Python_lessons
0e96117d9a8b76fd651e137fc126ddedaa6accd9
[ "MIT" ]
null
null
null
DataScience/Numpy.py
AlPus108/Python_lessons
0e96117d9a8b76fd651e137fc126ddedaa6accd9
[ "MIT" ]
null
null
null
DataScience/Numpy.py
AlPus108/Python_lessons
0e96117d9a8b76fd651e137fc126ddedaa6accd9
[ "MIT" ]
null
null
null
# Numpy # NumPy: https://numpy.org/doc/stable/ # NumPy https://numpy.org/devdocs/reference/ufuncs.html # NumPy - / . # # . , (), , # . . list, # numpy-, . . # numpy , . . # , numpy-. 60% - numpy 40% - . . # . # , , . # ? , # ...
37.842759
129
0.64563
2842d30820f635256f73ae79bc6c16f824dc89f6
704
py
Python
setup.py
jlevy44/Submit-HPC
83dfd60587fab2c75e02f1c14b688b4bc51aff8c
[ "MIT" ]
1
2020-06-11T00:51:24.000Z
2020-06-11T00:51:24.000Z
setup.py
jlevy44/Submit-HPC
83dfd60587fab2c75e02f1c14b688b4bc51aff8c
[ "MIT" ]
null
null
null
setup.py
jlevy44/Submit-HPC
83dfd60587fab2c75e02f1c14b688b4bc51aff8c
[ "MIT" ]
1
2020-06-19T01:05:07.000Z
2020-06-19T01:05:07.000Z
from setuptools import setup with open('README.md','r', encoding='utf-8') as f: long_description = f.read() setup(name='submit_hpc', version='0.1.2', description='Collection of growing job submission scripts, not to replace workflow specifications.', url='https://github.com/jlevy44/Submit-HPC', ...
37.052632
106
0.666193
28461474953cc9c257de317f17581d4ef1a01795
18,209
py
Python
DQN/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
2
2021-04-12T02:41:00.000Z
2021-05-15T02:18:15.000Z
DQN/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
DQN/network.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import tensorflow as tf import tensorflow.contrib.slim as slim seed = 0
55.012085
123
0.473228
2847498b54c2f788df1761ffd02163a689964021
5,924
py
Python
128/utility.py
Jeffrey-Ede/Adaptive-Partial-STEM
dc13e64ba3fb8266d39a260780af615b170a3c88
[ "MIT" ]
3
2020-04-29T21:45:21.000Z
2021-08-13T16:01:14.000Z
128/utility.py
Jeffrey-Ede/intelligent-partial-STEM
dc13e64ba3fb8266d39a260780af615b170a3c88
[ "MIT" ]
null
null
null
128/utility.py
Jeffrey-Ede/intelligent-partial-STEM
dc13e64ba3fb8266d39a260780af615b170a3c88
[ "MIT" ]
null
null
null
import tensorflow as tf import itertools import numpy as np FLAGS = tf.flags.FLAGS def auto_name(name): """Append number to variable name to make it unique. Inputs: name: Start of variable name. Returns: Full variable name with number afterwards to make it un...
33.280899
116
0.613774
2847f21bc2086528a4db0c276260fe7ae1c988d5
1,336
py
Python
tests/test_lexer.py
codyd51/camelback
2dd1269bcbc7ce35fcab1df7dfddce229c51e610
[ "MIT" ]
2
2018-11-22T16:45:24.000Z
2018-11-26T16:13:31.000Z
tests/test_lexer.py
codyd51/camelback
2dd1269bcbc7ce35fcab1df7dfddce229c51e610
[ "MIT" ]
null
null
null
tests/test_lexer.py
codyd51/camelback
2dd1269bcbc7ce35fcab1df7dfddce229c51e610
[ "MIT" ]
null
null
null
import os import unittest from camelback.lexer import Lexer
37.111111
113
0.355539
28484e4880b21cb0cfb818580cf5e99d4d59fc00
568
py
Python
tests/conftest.py
ljnsn/pycwatch
9fb8910b010e7e89357a9c6b99197697ee5a8cf6
[ "MIT" ]
1
2022-02-25T17:23:17.000Z
2022-02-25T17:23:17.000Z
tests/conftest.py
ljnsn/pycwatch
9fb8910b010e7e89357a9c6b99197697ee5a8cf6
[ "MIT" ]
1
2022-02-28T18:37:08.000Z
2022-02-28T18:37:08.000Z
tests/conftest.py
ljnsn/pycwatch
9fb8910b010e7e89357a9c6b99197697ee5a8cf6
[ "MIT" ]
null
null
null
"""Fixtures and configuration for the test suite.""" from pathlib import Path import pytest import vcr from pycwatch import CryptoWatchClient BASE_DIR = Path(__file__).parent.absolute() api_vcr = my_vcr = vcr.VCR( serializer="yaml", cassette_library_dir=BASE_DIR.joinpath("vcr_cassettes").as_posix(), rec...
20.285714
71
0.739437
2848866b78d851fe0130aa00ed413f094e4d8df4
6,861
py
Python
cxphasing/CXResolutionEstimate.py
jbgastineau/cxphasing
a9847a0afb9a981d81f027e75c06c9bb2b531d33
[ "MIT" ]
3
2018-05-11T16:05:55.000Z
2021-12-20T08:52:02.000Z
cxphasing/CXResolutionEstimate.py
jbgastineau/cxphasing
a9847a0afb9a981d81f027e75c06c9bb2b531d33
[ "MIT" ]
null
null
null
cxphasing/CXResolutionEstimate.py
jbgastineau/cxphasing
a9847a0afb9a981d81f027e75c06c9bb2b531d33
[ "MIT" ]
2
2018-11-14T08:57:10.000Z
2021-12-20T08:52:06.000Z
""" .. module:: CXResolutionEstimate.py :platform: Unix :synopsis: A class for predicting the resolution of a ptychography measurement. .. moduleauthor:: David Vine <djvine@gmail.com> """ import requests import pdb import scipy as sp import numpy as np import scipy.fftpack as spf from pylab import * def rec...
27.011811
126
0.69538
284932efb61177d76bc830e6f9381821ff06ec7e
997
py
Python
classes/migrations/0007_auto_20201206_1223.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
null
null
null
classes/migrations/0007_auto_20201206_1223.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
3
2021-06-05T00:01:48.000Z
2021-09-22T19:39:12.000Z
classes/migrations/0007_auto_20201206_1223.py
henrylameck/school_management_system
38c270977d001d28f2338eb90fffc3e8c2598d06
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-12-06 09:23 from django.db import migrations, models
26.236842
53
0.563691
2849b9c3dc25b3aa339fd03d7bee0279359be673
1,129
py
Python
Analysis/views_in_dow.py
harrisonxia/Lil-Data
204467aa740bef10d865925508d7cf007cac19b3
[ "MIT" ]
5
2018-11-14T03:31:13.000Z
2022-01-12T04:20:16.000Z
Analysis/views_in_dow.py
harrisonxia/Lil-Data
204467aa740bef10d865925508d7cf007cac19b3
[ "MIT" ]
null
null
null
Analysis/views_in_dow.py
harrisonxia/Lil-Data
204467aa740bef10d865925508d7cf007cac19b3
[ "MIT" ]
null
null
null
import sys from pyspark.sql import SparkSession, functions, types from pyspark.sql.functions import date_format import json if __name__ == '__main__': spark = SparkSession.builder.appName('views_in_dow').getOrCreate() spark.sparkContext.setLogLevel('WARN') views_in_dow()
35.28125
154
0.723649
284d7bf5c6289c980a9a21998f63efdfc660f3b8
570
py
Python
videoprocessor/app.py
ashish1595/uPresent
663acc6ad7c958c8d45699918c60e48535aff3b3
[ "MIT" ]
1
2020-09-02T23:51:15.000Z
2020-09-02T23:51:15.000Z
videoprocessor/app.py
ashish1595/uPresent
663acc6ad7c958c8d45699918c60e48535aff3b3
[ "MIT" ]
1,143
2020-01-26T07:18:37.000Z
2022-03-31T21:02:44.000Z
videoprocessor/app.py
ashish1595/uPresent
663acc6ad7c958c8d45699918c60e48535aff3b3
[ "MIT" ]
4
2020-01-27T07:47:29.000Z
2020-07-22T10:54:15.000Z
from flask import Flask from flask_restful import Api from elasticapm.contrib.flask import ElasticAPM from flask_restful_swagger import swagger from resources import custom_logger from resources.routes import initialize_routes import logging app = Flask(__name__) app.config.from_object("config.Config") # Initializing...
24.782609
47
0.801754
284e0e3fc7904eb4e425103fc8997d9f8ee44f17
1,593
py
Python
cogs/rng.py
Ana-gram/Amanager
5ceef312125b1c73dea59d37f8f06e22293c8960
[ "Apache-2.0" ]
12
2021-04-23T18:10:24.000Z
2021-05-03T13:08:54.000Z
cogs/rng.py
Ana-gram/Amanager
5ceef312125b1c73dea59d37f8f06e22293c8960
[ "Apache-2.0" ]
3
2021-04-04T17:47:02.000Z
2021-11-20T10:59:46.000Z
cogs/rng.py
Margana314/Amanager
87e241d942ca07f3ed8dfc5e1aebfde6f58bbdac
[ "Apache-2.0" ]
3
2021-04-30T11:07:28.000Z
2021-05-01T11:35:27.000Z
import discord, random from discord.ext import commands from discord_slash import cog_ext from discord_slash.utils.manage_commands import create_option
40.846154
190
0.603264
284ed97a6e7a6cca5b8e4fac818f272a6b8ee59d
1,538
py
Python
app.py
dodoche/essaie
53d22cfec969a8f992f4b5cb473bb41a215975b6
[ "Apache-2.0" ]
null
null
null
app.py
dodoche/essaie
53d22cfec969a8f992f4b5cb473bb41a215975b6
[ "Apache-2.0" ]
null
null
null
app.py
dodoche/essaie
53d22cfec969a8f992f4b5cb473bb41a215975b6
[ "Apache-2.0" ]
null
null
null
from flask import Flask from kubernetes.client.rest import ApiException from pprint import pprint from kubernetes import client, config app = Flask(__name__) if __name__ == "__main__": app.run(host='0.0.0.0',port=8000)
48.0625
171
0.727568
284f1b158ca4db2c6a71a6bb4e065847635e83d7
447
py
Python
Chapter2_Python/Logic.py
LKilian1/UdemyML_Template
4d9cd40c35ff29d796e2b7d327e0032ee7dc2f5a
[ "MIT" ]
null
null
null
Chapter2_Python/Logic.py
LKilian1/UdemyML_Template
4d9cd40c35ff29d796e2b7d327e0032ee7dc2f5a
[ "MIT" ]
null
null
null
Chapter2_Python/Logic.py
LKilian1/UdemyML_Template
4d9cd40c35ff29d796e2b7d327e0032ee7dc2f5a
[ "MIT" ]
null
null
null
i_am_broke = False if i_am_broke: print("I am broke.") else: print("I am not broke.") my_bank_account = 1000 if my_bank_account <= 0: print("I am broke.") else: print("I am not broke.") # equal == # less < # greater > # not equal != # less or equal <= # greater or equal >= my_age = 21 if my_age ...
13.96875
33
0.604027
284f52f9892227b12c3c28dae697a2873a90c1e7
34
py
Python
my_script.py
jeroenpijpker/easy_CD_tutorial
2827508a7060c74ff937d7820c5b0f5cdfa4d6a4
[ "MIT" ]
null
null
null
my_script.py
jeroenpijpker/easy_CD_tutorial
2827508a7060c74ff937d7820c5b0f5cdfa4d6a4
[ "MIT" ]
null
null
null
my_script.py
jeroenpijpker/easy_CD_tutorial
2827508a7060c74ff937d7820c5b0f5cdfa4d6a4
[ "MIT" ]
null
null
null
print("x") print("x") print("x")
6.8
10
0.529412
2851770a789aa6df103f42e0f34d59c8093d59ff
498
py
Python
neighbour/migrations/0014_auto_20211228_2342.py
mary-wan/Neighbourhood
4150ea60d8ab471fce7173c50c040f36320f3f40
[ "Unlicense" ]
2
2022-01-17T03:52:59.000Z
2022-02-18T15:09:34.000Z
neighbour/migrations/0014_auto_20211228_2342.py
mary-wan/Neighbourhood
4150ea60d8ab471fce7173c50c040f36320f3f40
[ "Unlicense" ]
null
null
null
neighbour/migrations/0014_auto_20211228_2342.py
mary-wan/Neighbourhood
4150ea60d8ab471fce7173c50c040f36320f3f40
[ "Unlicense" ]
null
null
null
# Generated by Django 2.2.24 on 2021-12-28 20:42 from django.db import migrations
21.652174
52
0.566265
2853e0d7d747d6c3288b88732191d861e6eecd97
427
py
Python
scipy/ndimage/tests/__init__.py
Ennosigaeon/scipy
2d872f7cf2098031b9be863ec25e366a550b229c
[ "BSD-3-Clause" ]
9,095
2015-01-02T18:24:23.000Z
2022-03-31T20:35:31.000Z
scipy/ndimage/tests/__init__.py
Ennosigaeon/scipy
2d872f7cf2098031b9be863ec25e366a550b229c
[ "BSD-3-Clause" ]
11,500
2015-01-01T01:15:30.000Z
2022-03-31T23:07:35.000Z
scipy/ndimage/tests/__init__.py
Ennosigaeon/scipy
2d872f7cf2098031b9be863ec25e366a550b229c
[ "BSD-3-Clause" ]
5,838
2015-01-05T11:56:42.000Z
2022-03-31T23:21:19.000Z
from __future__ import annotations from typing import List, Type import numpy # list of numarray data types integer_types: List[Type] = [ numpy.int8, numpy.uint8, numpy.int16, numpy.uint16, numpy.int32, numpy.uint32, numpy.int64, numpy.uint64] float_types: List[Type] = [numpy.float32, numpy.float64] comple...
26.6875
63
0.754098
285632d72a4a6ee14ee3a1b9a5965b712d109e62
10,286
py
Python
experiments/utils.py
linshaoxin-maker/taas
34e11fab167a7beb78fbe6991ff8721dc9208793
[ "MIT" ]
4
2021-02-28T11:58:18.000Z
2022-02-03T03:26:45.000Z
experiments/utils.py
linshaoxin-maker/taas
34e11fab167a7beb78fbe6991ff8721dc9208793
[ "MIT" ]
null
null
null
experiments/utils.py
linshaoxin-maker/taas
34e11fab167a7beb78fbe6991ff8721dc9208793
[ "MIT" ]
null
null
null
import torch import os import subprocess as sp from mlutils.pt.training import TrainerBatch from mlutils.callbacks import Callback from os import path import numpy as np import json def torch_detach(x): return x.detach().cpu().numpy() def save_topics(save_path, vocab, topic_prob, topk=100, logger=None): ...
33.504886
119
0.586914
28567dfbf8e22fcad08ad19553a2399e95399e25
6,612
py
Python
noise/perlin.py
AnthonyBriggs/Python-101
e6c7584fd6791bb5d7d05fd419faa46dc7148f61
[ "MIT" ]
3
2017-08-02T23:40:55.000Z
2018-07-02T14:59:07.000Z
noise/perlin.py
AnthonyBriggs/Python-101
e6c7584fd6791bb5d7d05fd419faa46dc7148f61
[ "MIT" ]
null
null
null
noise/perlin.py
AnthonyBriggs/Python-101
e6c7584fd6791bb5d7d05fd419faa46dc7148f61
[ "MIT" ]
null
null
null
#!/usr/bin/python """ TODO: where'd I get this from? """ import math import random p = ( 151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103, 30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197, 62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20, 125,136,171,168,68,175,74,165...
31.942029
92
0.58908
2856b66bfd0e689f82a8cb47b06e0b491d804f30
3,555
py
Python
tests/test_random.py
xadrnd/display_sdk_ios
f8a140d1cf3d1e8f63b915caf8c723d771dac13f
[ "BSD-3-Clause" ]
null
null
null
tests/test_random.py
xadrnd/display_sdk_ios
f8a140d1cf3d1e8f63b915caf8c723d771dac13f
[ "BSD-3-Clause" ]
null
null
null
tests/test_random.py
xadrnd/display_sdk_ios
f8a140d1cf3d1e8f63b915caf8c723d771dac13f
[ "BSD-3-Clause" ]
null
null
null
from test_base import DisplaySDKTest from utils import *
25.76087
106
0.501547
28573be47f861d148cdbe92b563ea159f2c46f16
1,964
py
Python
libretto/plugin/__init__.py
johnwcchau/libretto
8b8cde81a978536f1c797e070818188bd2c006e5
[ "MIT" ]
null
null
null
libretto/plugin/__init__.py
johnwcchau/libretto
8b8cde81a978536f1c797e070818188bd2c006e5
[ "MIT" ]
null
null
null
libretto/plugin/__init__.py
johnwcchau/libretto
8b8cde81a978536f1c797e070818188bd2c006e5
[ "MIT" ]
null
null
null
import logging from configparser import ConfigParser from typing import Callable __plugins = {}
32.733333
82
0.588595
2858823061844e57eb3d0e1bf225fe8863fd7485
30,325
py
Python
cax/tasks/tsm_mover.py
XENON1T/cax
06de9290851904695275fd34d7c74e2c9eb7fe59
[ "0BSD" ]
2
2016-05-19T05:51:15.000Z
2017-10-13T13:43:00.000Z
cax/tasks/tsm_mover.py
XENON1T/cax
06de9290851904695275fd34d7c74e2c9eb7fe59
[ "0BSD" ]
93
2016-03-26T20:34:01.000Z
2021-03-25T21:41:57.000Z
cax/tasks/tsm_mover.py
XENON1T/cax
06de9290851904695275fd34d7c74e2c9eb7fe59
[ "0BSD" ]
2
2017-05-19T03:47:09.000Z
2018-12-19T18:10:45.000Z
"""Handle copying data between sites. tsm_mover.py contains the necessary classes to upload and download from tape backup and syncronize it with the runDB. Author: Boris Bauermeister Email: Boris.Bauermeister@fysik.su.se """ import datetime import logging import os import time import hashlib import ...
38.679847
142
0.54526
285a8bab289bfb8c666439b93d30129bb0e1ff4e
2,076
py
Python
src/network/topology.py
joelwanner/smtax
7d46f02cb3f15f2057022c574e0f3a8e5236d647
[ "MIT" ]
null
null
null
src/network/topology.py
joelwanner/smtax
7d46f02cb3f15f2057022c574e0f3a8e5236d647
[ "MIT" ]
null
null
null
src/network/topology.py
joelwanner/smtax
7d46f02cb3f15f2057022c574e0f3a8e5236d647
[ "MIT" ]
null
null
null
from network.route import * # TODO: remove workaround for circular dependencies import interface.parse as parser
23.590909
102
0.560694
285ae74b0cd6ba7b852c770105e6b5d4523be1ae
5,310
py
Python
leetcode_python/Sort/wiggle-sort-ii.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Sort/wiggle-sort-ii.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Sort/wiggle-sort-ii.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://www.hrwhisper.me/leetcode-wiggle-sort-ii/ # V1' # http://bookshadow.com/weblog/2015/12/31/leetcode-wiggle-sort-ii/ # V1'' # https://www.jiuzhang.com/solution/wiggle-sort-ii/#tag-highlight-lang-python # V2 # Time: O(n) ~ O(n^2) # Space: O(1) # Tri Partition (aka Dutch National Flag Problem) w...
34.038462
103
0.468927
285af3b4261da560e2b691c6b8e6dc0c7a368402
517
py
Python
model/Rules/ZigZag.py
GigliOneiric/ElliotWave
5d0fc166530a57132dce4e4c00ecb33cb8101aaa
[ "Apache-2.0" ]
null
null
null
model/Rules/ZigZag.py
GigliOneiric/ElliotWave
5d0fc166530a57132dce4e4c00ecb33cb8101aaa
[ "Apache-2.0" ]
null
null
null
model/Rules/ZigZag.py
GigliOneiric/ElliotWave
5d0fc166530a57132dce4e4c00ecb33cb8101aaa
[ "Apache-2.0" ]
null
null
null
import config.Text
21.541667
97
0.54352
285ef9691cdce93a606e382f9fdd9a1cebb1c5b6
232
py
Python
views.py
Rexypoo/shortnsweet
e773f01f2fdd6630b8d649232b48a753aa387c4f
[ "Apache-2.0" ]
null
null
null
views.py
Rexypoo/shortnsweet
e773f01f2fdd6630b8d649232b48a753aa387c4f
[ "Apache-2.0" ]
null
null
null
views.py
Rexypoo/shortnsweet
e773f01f2fdd6630b8d649232b48a753aa387c4f
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import get_object_or_404, redirect, render from .models import ShortURL
29
64
0.806034
285f254edbac663963266cf598f4a69429de61bf
4,153
py
Python
pyautomailer/command_line.py
matteocappello94/pyautomailer
933c23426d00d32543da3af03fe67a7e8fa38247
[ "MIT" ]
null
null
null
pyautomailer/command_line.py
matteocappello94/pyautomailer
933c23426d00d32543da3af03fe67a7e8fa38247
[ "MIT" ]
2
2018-08-08T07:51:14.000Z
2018-08-10T14:35:32.000Z
pyautomailer/command_line.py
matteocappello94/pyautomailer
933c23426d00d32543da3af03fe67a7e8fa38247
[ "MIT" ]
null
null
null
import argparse import sys import logging as log from pyautomailer import PyAutoMailer, PyAutoMailerMode # Bulk-send mode function # One-send mode function # From log_level string get log_level object of logging module
36.752212
79
0.575969
285fac9d4a82de6931604146cf170d6983d5310f
4,225
py
Python
test-suite/handwritten-src/python/test_foo_interface.py
trafi/trafi-djinni
47cd2c849782e2ab4b38e5dc6a5a3104cc87f673
[ "Apache-2.0" ]
16
2020-10-18T20:09:29.000Z
2022-02-21T07:11:13.000Z
test-suite/handwritten-src/python/test_foo_interface.py
trafi/trafi-djinni
47cd2c849782e2ab4b38e5dc6a5a3104cc87f673
[ "Apache-2.0" ]
53
2020-10-13T20:08:29.000Z
2022-03-10T14:59:50.000Z
test-suite/handwritten-src/python/test_foo_interface.py
trafi/trafi-djinni
47cd2c849782e2ab4b38e5dc6a5a3104cc87f673
[ "Apache-2.0" ]
13
2020-10-16T20:31:36.000Z
2022-01-28T15:37:05.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals # Example code written by a python developer to access cpp implementation of Foo # This file should be hand-written by a python developer from foo_interface import FooInterface from djinni.support import decode...
31.296296
108
0.626509
286006999e3a7c33bbad8b78611b5c41448309f0
4,324
py
Python
examples/dvrl_asr/dvrl_asr_finetuning.py
SeunghyunSEO/seosh_fairseq
443b2a8effb6b8fba5758989076cf992470ccb62
[ "MIT" ]
null
null
null
examples/dvrl_asr/dvrl_asr_finetuning.py
SeunghyunSEO/seosh_fairseq
443b2a8effb6b8fba5758989076cf992470ccb62
[ "MIT" ]
2
2022-02-22T08:28:06.000Z
2022-02-22T09:26:26.000Z
examples/dvrl_asr/dvrl_asr_finetuning.py
SeunghyunSEO/seosh_fairseq
443b2a8effb6b8fba5758989076cf992470ccb62
[ "MIT" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import logging import os import to...
36.336134
132
0.698196
286032d47c652ffe5a80685b84caa53cf8ed1a03
2,727
py
Python
opensource/opencv/write_to_video.py
marciojv/hacks-cognitives-plataforms
5b43f52d6afde4ad2768ad5b85e376578e2c9b2f
[ "Apache-2.0" ]
1
2021-05-14T18:43:51.000Z
2021-05-14T18:43:51.000Z
opensource/opencv/write_to_video.py
marciojv/hacks-cognitives-plataforms
5b43f52d6afde4ad2768ad5b85e376578e2c9b2f
[ "Apache-2.0" ]
null
null
null
opensource/opencv/write_to_video.py
marciojv/hacks-cognitives-plataforms
5b43f52d6afde4ad2768ad5b85e376578e2c9b2f
[ "Apache-2.0" ]
9
2019-02-04T22:08:08.000Z
2021-07-17T12:12:12.000Z
# para executar # python write_to_video.py --output example.avi # ou # python write_to_video.py --output example.avi --picamera 1 # python -m pip install imutils from __future__ import print_function from imutils.video import VideoStream import numpy as np import argparse import imutils import time import cv2 #https:...
27.826531
71
0.69527