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
5e919f500bdb61fdacf742cd30485e1fec67466a
2,439
py
Python
src/python/grpcio/grpc/experimental/aio/__init__.py
nondejus/grpc
e5e8d7dc70f97b1e52612facb3f57990b2240005
[ "Apache-2.0" ]
3
2020-10-12T15:47:01.000Z
2022-01-14T19:51:26.000Z
src/python/grpcio/grpc/experimental/aio/__init__.py
nondejus/grpc
e5e8d7dc70f97b1e52612facb3f57990b2240005
[ "Apache-2.0" ]
11
2021-04-08T22:10:50.000Z
2022-03-12T00:52:35.000Z
src/python/grpcio/grpc/experimental/aio/__init__.py
nondejus/grpc
e5e8d7dc70f97b1e52612facb3f57990b2240005
[ "Apache-2.0" ]
2
2019-11-13T05:27:48.000Z
2020-01-21T06:35:19.000Z
# Copyright 2019 gRPC 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 writing...
31.269231
96
0.693727
695
0.284953
0
0
0
0
0
0
1,523
0.624436
5e924c02bab981c33ede2b50dac4e2d8e48fe849
6,634
py
Python
trainer.py
Ayush8120/PocketTanks
9498b441e4fbac007879d8963da6edf3913d02e3
[ "MIT" ]
null
null
null
trainer.py
Ayush8120/PocketTanks
9498b441e4fbac007879d8963da6edf3913d02e3
[ "MIT" ]
1
2022-02-11T21:31:03.000Z
2022-02-12T00:56:54.000Z
trainer.py
Ayush8120/PocketTanks
9498b441e4fbac007879d8963da6edf3913d02e3
[ "MIT" ]
2
2019-04-25T22:24:52.000Z
2022-02-11T21:22:27.000Z
import os import threading import time from collections import deque import numpy as np from threading import Thread from agents.dqn_agent import DqnAgent from main import App # Number of games to play from utils.logger import DataLogger n_episodes = 10000 save_period = 50 # Saves off every n episodes' model bat...
30.431193
120
0.590142
823
0.124058
0
0
0
0
0
0
1,837
0.276907
5e924cb1859e402ab872813f9e3537dccb1f09db
2,840
py
Python
tests/splinter/repeating_area/test_areas.py
jsfehler/stere
066c38b11636850ce11a0451a7b1efc8887b1015
[ "MIT" ]
17
2017-12-11T15:49:10.000Z
2021-06-16T19:29:45.000Z
tests/splinter/repeating_area/test_areas.py
jsfehler/stere
066c38b11636850ce11a0451a7b1efc8887b1015
[ "MIT" ]
328
2018-02-06T02:29:21.000Z
2022-03-30T10:47:33.000Z
tests/splinter/repeating_area/test_areas.py
jsfehler/stere
066c38b11636850ce11a0451a7b1efc8887b1015
[ "MIT" ]
3
2019-04-05T19:40:55.000Z
2021-11-04T06:50:32.000Z
import logging import pytest from selenium.webdriver.remote.remote_connection import LOGGER from stere.areas import Area, Areas LOGGER.setLevel(logging.WARNING) def test_areas_append_wrong_type(): """Ensure a TypeError is raised when non-Area objects are appended to an Areas. """ a = Areas() ...
23.666667
77
0.674648
0
0
0
0
0
0
0
0
862
0.303521
5e94ee09424c092167e8b387cf605930cd27a367
1,388
py
Python
tests/sqlstore_tests.py
tistaharahap/oauth1-provider
c7059bce68734744d0aa3b83ecb218865a5c1341
[ "MIT" ]
1
2017-06-26T07:36:03.000Z
2017-06-26T07:36:03.000Z
tests/sqlstore_tests.py
tistaharahap/oauth1-provider
c7059bce68734744d0aa3b83ecb218865a5c1341
[ "MIT" ]
null
null
null
tests/sqlstore_tests.py
tistaharahap/oauth1-provider
c7059bce68734744d0aa3b83ecb218865a5c1341
[ "MIT" ]
null
null
null
import with_sql as sqlprovider import unittest class SQLStoreTestCase(unittest.TestCase): def setUp(self): sqlprovider.app.config['TESTING'] = True self.app = sqlprovider.app.test_client() def error_mime_json(self): return "Return payload data must be a JSON String" def error_no...
28.916667
110
0.683718
1,333
0.960375
0
0
0
0
0
0
323
0.232709
5e9585f59d070272ad95cdcbd7dd8d78e2818f13
765
py
Python
saph/users/views/auth.py
smallproblem/saph
eec9755ad26d5515f70604ebaa708583185649bb
[ "MIT" ]
null
null
null
saph/users/views/auth.py
smallproblem/saph
eec9755ad26d5515f70604ebaa708583185649bb
[ "MIT" ]
2
2020-09-28T03:09:06.000Z
2020-10-02T08:55:34.000Z
saph/users/views/auth.py
smallproblem/saph
eec9755ad26d5515f70604ebaa708583185649bb
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.contrib.auth.views import LoginView from django.contrib.auth.forms import AuthenticationForm from django.views.generic import CreateView from django.shortcuts import reverse, redirect from users.forms import JoinusForm class LoginView(LoginView): template_n...
29.423077
56
0.729412
484
0.63268
0
0
0
0
0
0
64
0.08366
5e962450aea8934c38b6cac2187895b4964bca2f
688
py
Python
workers/portscanner.py
wotschel/Forker
06f3b4cdcc55df8cea0ce57f6f3fa0cd507e192f
[ "MIT" ]
null
null
null
workers/portscanner.py
wotschel/Forker
06f3b4cdcc55df8cea0ce57f6f3fa0cd507e192f
[ "MIT" ]
null
null
null
workers/portscanner.py
wotschel/Forker
06f3b4cdcc55df8cea0ce57f6f3fa0cd507e192f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket #debugon = False #forks = 3 worklist = ["localhost", "127.0.0.1"] def worker(var): sock = None ports = [21, 22, 25, 80, 110, 443, 445, 3306] # for port in range(1, 65536): for port in ports: try: sock = socket.create_connection((var, port),...
19.657143
63
0.540698
0
0
0
0
0
0
0
0
189
0.274709
5e964e9a43d5e710febe1660966f2e83ba9afc1c
2,940
py
Python
bin/sm_mp_incd.py
pjmartel/consequent
fa0a41e056a6b240d41819a8e5c310a9057fa7e9
[ "MIT" ]
null
null
null
bin/sm_mp_incd.py
pjmartel/consequent
fa0a41e056a6b240d41819a8e5c310a9057fa7e9
[ "MIT" ]
null
null
null
bin/sm_mp_incd.py
pjmartel/consequent
fa0a41e056a6b240d41819a8e5c310a9057fa7e9
[ "MIT" ]
1
2019-10-24T18:25:59.000Z
2019-10-24T18:25:59.000Z
import numpy as np from random import sample, seed #import matplotlib.pyplot as plt from sys import argv, stdout #from scipy.stats import gumbel_r from score_matrix import readScoreMatrix, getMatrix from seqali import smithWaterman, smithFast, plotMat, plotTraceMat from multiprocessing import Process, Manager def scra...
26.486486
113
0.668027
0
0
0
0
0
0
0
0
1,210
0.411565
5e97096c2259e87531d4203f6d5a602384f504c8
883
py
Python
Grayscale Image Denoising/noise.py
Yemen-Romanian/pattern-recognition
cb0ab31e590b071c57c2e89ec85f2383375860e3
[ "MIT" ]
null
null
null
Grayscale Image Denoising/noise.py
Yemen-Romanian/pattern-recognition
cb0ab31e590b071c57c2e89ec85f2383375860e3
[ "MIT" ]
null
null
null
Grayscale Image Denoising/noise.py
Yemen-Romanian/pattern-recognition
cb0ab31e590b071c57c2e89ec85f2383375860e3
[ "MIT" ]
null
null
null
import numpy as np def gaussian_noise(image, mean=0, var=1): n_rows, n_cols = image.shape noise = np.random.normal(mean, var**0.5, (n_rows, n_cols)) noise = noise.reshape((n_rows, n_cols)) result = (noise + image).astype(np.uint8) # print(np.any(result[result > 255])) # result = result.astype(...
27.59375
62
0.602492
0
0
0
0
0
0
0
0
147
0.166478
5e9a150ff611f08ec820a625c4ec922654b7d1ab
12,223
py
Python
tweet.py
Mar199605/sentiment_visual
afee54ec4b2ed33f87927d1740cb8ad6cee3ad10
[ "MIT" ]
null
null
null
tweet.py
Mar199605/sentiment_visual
afee54ec4b2ed33f87927d1740cb8ad6cee3ad10
[ "MIT" ]
null
null
null
tweet.py
Mar199605/sentiment_visual
afee54ec4b2ed33f87927d1740cb8ad6cee3ad10
[ "MIT" ]
null
null
null
import os import time import csv import json import re import twint from cleantext import clean from textblob import TextBlob from google.cloud import translate_v2 os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r"C:\\Users\\ht_ma\\env\\service-account-file.json" # Key needed translate_client_0 = translate...
31.421594
162
0.502659
0
0
0
0
0
0
0
0
3,908
0.319725
5e9b0b809eefab660e738e3c900de340f11bd12d
2,792
py
Python
hydroserver/physical_interfaces/camera_controller.py
gfvandehei/hydroponics-rpi-server
e9c0cdbb2a72f908dae299f28d00dad23d7b5bb6
[ "MIT" ]
null
null
null
hydroserver/physical_interfaces/camera_controller.py
gfvandehei/hydroponics-rpi-server
e9c0cdbb2a72f908dae299f28d00dad23d7b5bb6
[ "MIT" ]
null
null
null
hydroserver/physical_interfaces/camera_controller.py
gfvandehei/hydroponics-rpi-server
e9c0cdbb2a72f908dae299f28d00dad23d7b5bb6
[ "MIT" ]
null
null
null
import time import cv2 from threading import Thread import numpy as np from hydroserver.physical_interfaces.camera_streamer import CameraStreamer from hydroserver.physical_interfaces.camera_storage import CameraStore import hydroserver.model.model as Model class CameraController(Thread): def __init__( ...
35.794872
88
0.63861
2,522
0.903295
0
0
0
0
0
0
1,306
0.467765
5e9b711115f13a486c2ea830660e274a63129004
478
py
Python
src/bpmn_python/graph/classes/events/intermediate_catch_event_type.py
ToJestKrzysio/ProcessVisualization
9a359a31816bf1be65e3684a571509e3a2c2c0ac
[ "MIT" ]
null
null
null
src/bpmn_python/graph/classes/events/intermediate_catch_event_type.py
ToJestKrzysio/ProcessVisualization
9a359a31816bf1be65e3684a571509e3a2c2c0ac
[ "MIT" ]
null
null
null
src/bpmn_python/graph/classes/events/intermediate_catch_event_type.py
ToJestKrzysio/ProcessVisualization
9a359a31816bf1be65e3684a571509e3a2c2c0ac
[ "MIT" ]
null
null
null
# coding=utf-8 """ Class used for representing tIntermediateCatchEvent of BPMN 2.0 graph """ import graph.classes.events.catch_event_type as catch_event class IntermediateCatchEvent(catch_event.CatchEvent): """ Class used for representing tIntermediateCatchEvent of BPMN 2.0 graph """ def __init__(sel...
26.555556
74
0.715481
322
0.67364
0
0
0
0
0
0
266
0.556485
5e9c05834cf6ad1608c5d29f26bb72785dc3ceb3
45
py
Python
pyIOS/exceptions.py
jtdub/pyIOS
1842b92068e3b0a980d53e0719efd41dbbdaf082
[ "Apache-2.0" ]
12
2016-01-09T17:47:05.000Z
2022-02-09T18:09:41.000Z
pyIOS/exceptions.py
jtdub/pyIOS
1842b92068e3b0a980d53e0719efd41dbbdaf082
[ "Apache-2.0" ]
16
2016-01-05T15:49:31.000Z
2016-08-04T20:59:15.000Z
pyIOS/exceptions.py
jtdub/pyIOS
1842b92068e3b0a980d53e0719efd41dbbdaf082
[ "Apache-2.0" ]
1
2016-04-06T16:00:32.000Z
2016-04-06T16:00:32.000Z
class InvalidInputError(Exception): pass
15
35
0.777778
44
0.977778
0
0
0
0
0
0
0
0
5e9cfe480f48cebb3ee33cedf5c2da8409e69016
71
py
Python
purestorage/__init__.py
sile16/rest-client
01604e00e8a64157e056fca614d320c3afd0f2d1
[ "BSD-2-Clause" ]
20
2018-10-26T01:33:15.000Z
2022-03-31T19:56:08.000Z
purestorage/__init__.py
sile16/rest-client
01604e00e8a64157e056fca614d320c3afd0f2d1
[ "BSD-2-Clause" ]
15
2018-08-09T20:42:21.000Z
2022-01-14T15:59:58.000Z
purestorage/__init__.py
sile16/rest-client
01604e00e8a64157e056fca614d320c3afd0f2d1
[ "BSD-2-Clause" ]
16
2018-10-22T18:31:42.000Z
2021-08-09T15:33:35.000Z
from .purestorage import FlashArray, PureError, PureHTTPError, VERSION
35.5
70
0.84507
0
0
0
0
0
0
0
0
0
0
5e9d51222054c4d9f5cea79d0046024a1b6003ba
28,600
py
Python
gerryopt/compile.py
pjrule/gerryopt
c9b5abca3b27caa39c9f86f904e1207eafc8751c
[ "MIT" ]
null
null
null
gerryopt/compile.py
pjrule/gerryopt
c9b5abca3b27caa39c9f86f904e1207eafc8751c
[ "MIT" ]
null
null
null
gerryopt/compile.py
pjrule/gerryopt
c9b5abca3b27caa39c9f86f904e1207eafc8751c
[ "MIT" ]
1
2022-01-12T20:54:09.000Z
2022-01-12T20:54:09.000Z
"""Compiler/transpiler for the GerryOpt DSL.""" import ast import json import inspect from copy import deepcopy from textwrap import dedent from dataclasses import dataclass, field, is_dataclass, asdict from enum import Enum from itertools import product from typing import (Callable, Iterable, Sequence, Set, Dict, List...
36.294416
94
0.620629
14,391
0.503111
0
0
10,720
0.374773
0
0
6,652
0.232555
5e9f6762a15db846cc32799b17cfd011720d5591
3,122
py
Python
tdi/dev_support/DevHelp.py
orozda/mdsplus
101265b0f94554e06c0e461b59862a6d3b656f8c
[ "BSD-2-Clause" ]
null
null
null
tdi/dev_support/DevHelp.py
orozda/mdsplus
101265b0f94554e06c0e461b59862a6d3b656f8c
[ "BSD-2-Clause" ]
null
null
null
tdi/dev_support/DevHelp.py
orozda/mdsplus
101265b0f94554e06c0e461b59862a6d3b656f8c
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2017, Massachusetts Institute of Technology All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list o...
43.361111
80
0.606342
0
0
0
0
0
0
0
0
1,515
0.485266
5e9f9dc3d6e213db9657bb6eb351051a106357c9
6,805
py
Python
ncbi_single_use_genome.py
marco-mariotti/ncbi_single_use_genome
976da1dc195955c344119e222cc731453797d893
[ "MIT" ]
null
null
null
ncbi_single_use_genome.py
marco-mariotti/ncbi_single_use_genome
976da1dc195955c344119e222cc731453797d893
[ "MIT" ]
null
null
null
ncbi_single_use_genome.py
marco-mariotti/ncbi_single_use_genome
976da1dc195955c344119e222cc731453797d893
[ "MIT" ]
null
null
null
#! /usr/bin/env -S python3 -u import os, shutil, sys, glob, traceback from easyterm import * help_msg="""This program downloads one specific NCBI assembly, executes certains operations, then cleans up data ### Input/Output: -a genome NCBI accession -o folder to download to ### Actions: -c bash command ...
31.799065
112
0.638648
0
0
0
0
0
0
0
0
3,874
0.569287
5ea0d191ed54273a061ed7e8a50245385460de2f
224
py
Python
World_1/002Usingformat.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
World_1/002Usingformat.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
World_1/002Usingformat.py
wesleyendliche/Python_exercises
44cdcb921201eb0b11ff1ac4b01b4a86859c2ffe
[ "MIT" ]
null
null
null
nome = input('Digite seu nome: ') name = input('Type your name: ') print('É um prazer te conhecer, {}{}{}!'.format('\033[1;36m', nome, '\033[m')) print('It is nice to meet you, {}{}{}!'.format('\033[4;30m', name, '\033[m'))
44.8
78
0.584821
0
0
0
0
0
0
0
0
145
0.644444
5ea112ef558fca9073cce1f7c0ebf8ece1f28a9a
2,289
py
Python
Module_06/tests/sauce_lab/test_checkout_details.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
Module_06/tests/sauce_lab/test_checkout_details.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
Module_06/tests/sauce_lab/test_checkout_details.py
JoseGtz/2021_python_selenium
c7b39479c78839ba2e2e2633a0f673a8b02fb4cb
[ "Unlicense" ]
null
null
null
"""Test cases for inventory item""" import pytest from Module_06.src.elements.inventory_item import InventoryItem from Module_06.src.pages.login import LoginPage from Module_06.tests.common.test_base import TestBase from Module_06.src.pages.checkout_details import CheckoutDetailsPage from Module_06.src.pages.checkout_...
36.333333
83
0.706859
1,863
0.813893
0
0
1,810
0.790738
0
0
251
0.109655
5ea1b42b0e5d60db5690353440e0919475138e12
2,217
py
Python
tests/test_cuda_graph_helpers.py
hpi-epic/gpucsl
f461c47ce17105f7cf25aa65d39cb671021f07e4
[ "MIT" ]
5
2022-03-22T14:56:05.000Z
2022-03-26T18:41:58.000Z
tests/test_cuda_graph_helpers.py
hpi-epic/gpucsl
f461c47ce17105f7cf25aa65d39cb671021f07e4
[ "MIT" ]
12
2022-03-26T10:39:04.000Z
2022-03-31T20:43:54.000Z
tests/test_cuda_graph_helpers.py
hpi-epic/gpucsl
f461c47ce17105f7cf25aa65d39cb671021f07e4
[ "MIT" ]
null
null
null
import cupy as cp import numpy as np import pandas as pd import itertools import math import networkx as nx from gpucsl.pc.kernel_management import get_module function_names = [ "compact<6,6>", ] module = get_module("helpers/graph_helpers.cu", function_names, ("-D", "PYTHON_TEST")) def test_compact_on_random_ske...
24.097826
86
0.519621
0
0
0
0
0
0
0
0
99
0.044655
5ea267b7599a251894f7be39dbaec041e355e0b1
4,583
py
Python
capsul/engine/module/python.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
5
2018-10-31T10:16:53.000Z
2022-03-11T08:11:32.000Z
capsul/engine/module/python.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
78
2018-10-30T17:04:38.000Z
2022-03-17T17:39:41.000Z
capsul/engine/module/python.py
servoz/capsul
2d72228c096f1c43ecfca7f3651b353dc35e209e
[ "CECILL-B" ]
11
2019-01-21T10:05:08.000Z
2022-02-22T17:02:22.000Z
# -*- coding: utf-8 -*- ''' Python configuration module for CAPSUL This config module allows the customization of python executable and python path in process execution. It can (as every config module) assign specific config values for different environments (computing resources, typically). Python configuration is s...
47.247423
362
0.669867
0
0
0
0
0
0
0
0
2,346
0.511892
5ea28c59393a6e808bc7631cfe435d3d54ff90cc
3,600
py
Python
face.py/DetectFace.py
DNSKT/python
081e439e9e9f2e9b58ace5ff0cba93b8c46d5e36
[ "MIT" ]
4
2021-10-02T02:14:06.000Z
2022-01-13T01:54:16.000Z
face.py/DetectFace.py
DNSKT/python
081e439e9e9f2e9b58ace5ff0cba93b8c46d5e36
[ "MIT" ]
null
null
null
face.py/DetectFace.py
DNSKT/python
081e439e9e9f2e9b58ace5ff0cba93b8c46d5e36
[ "MIT" ]
null
null
null
import asyncio import io import glob import os import sys import time import uuid import requests from urllib.parse import urlparse from io import BytesIO # To install this module, run: # python -m pip install Pillow from PIL import Image, ImageDraw from azure.cognitiveservices.vision.face import FaceClien...
48.648649
133
0.755833
0
0
0
0
0
0
0
0
1,708
0.474444
5ea2f5c49120331dea159521e5e8c35ca8b6be45
2,741
py
Python
examples/tesselation.py
2dx/moderngl
5f932560a535469626d79d22e4205f400e18f328
[ "MIT" ]
916
2019-03-11T19:15:20.000Z
2022-03-31T19:22:16.000Z
examples/tesselation.py
2dx/moderngl
5f932560a535469626d79d22e4205f400e18f328
[ "MIT" ]
218
2019-03-11T06:05:52.000Z
2022-03-30T16:59:22.000Z
examples/tesselation.py
2dx/moderngl
5f932560a535469626d79d22e4205f400e18f328
[ "MIT" ]
110
2019-04-06T18:32:24.000Z
2022-03-21T20:30:47.000Z
#!/usr/bin/env python3 '''Simple example of using tesselation to render a cubic Bézier curve''' import numpy as np import moderngl from ported._example import Example class Tessellation(Example): title = "Tessellation" gl_version = (4, 0) def __init__(self, **kwargs): super().__init__(**kwargs)...
28.552083
85
0.511127
2,518
0.917973
0
0
0
0
0
0
1,848
0.673715
5ea4c56b19379cf79c7f01fa78cbab208ced0a25
326
py
Python
setup.py
rahul0705/smv
01a4545be55f9355c8cc1d28918a8ab24d4a02e1
[ "MIT" ]
null
null
null
setup.py
rahul0705/smv
01a4545be55f9355c8cc1d28918a8ab24d4a02e1
[ "MIT" ]
null
null
null
setup.py
rahul0705/smv
01a4545be55f9355c8cc1d28918a8ab24d4a02e1
[ "MIT" ]
null
null
null
""" author: Rahul Mohandas """ import setuptools setuptools.setup( name="smv", version="0.1", packages=setuptools.find_packages(exclude=["tests"]), author="Rahul Mohandas", author_email="rahul@rahulmohandas.com", description="It's like scp but for moving", license="MIT", test_suite="tes...
20.375
57
0.671779
0
0
0
0
0
0
0
0
130
0.398773
5ea4f8d3a7d608af36cb9f970a681dca5774ff4b
905
py
Python
py/ssm_report/charts.py
acorg/ssm-report
bddc33cb167f6ca766c56747529828807bebd803
[ "MIT" ]
null
null
null
py/ssm_report/charts.py
acorg/ssm-report
bddc33cb167f6ca766c56747529828807bebd803
[ "MIT" ]
null
null
null
py/ssm_report/charts.py
acorg/ssm-report
bddc33cb167f6ca766c56747529828807bebd803
[ "MIT" ]
null
null
null
import logging; module_logger = logging.getLogger(__name__) from pathlib import Path # ---------------------------------------------------------------------- def get_chart(virus_type, assay, lab, infix="", chart_dir=Path("merges")): if virus_type in ["bvic", "byam"]: vt = virus_type[:2] # virus_type[0] + ...
41.136364
123
0.554696
0
0
0
0
0
0
0
0
513
0.566851
5ea524e0a2aaf6646e0647b7e3b3bb487ad9b0d6
14,650
py
Python
sciunit/base.py
russelljjarvis/sciun
f8f6ede84299dc700afe94b07ae4e98f87a19116
[ "MIT" ]
1
2020-05-28T00:35:23.000Z
2020-05-28T00:35:23.000Z
sciunit/base.py
ChihweiLHBird/sciunit
f5669d165fa505c3a17ac17af3d3c78aafd44ae2
[ "MIT" ]
1
2020-12-29T04:28:57.000Z
2020-12-29T04:28:57.000Z
sciunit/base.py
russelljjarvis/sciunit
f8f6ede84299dc700afe94b07ae4e98f87a19116
[ "MIT" ]
null
null
null
"""The base class for many SciUnit objects.""" import sys PLATFORM = sys.platform PYTHON_MAJOR_VERSION = sys.version_info.major if PYTHON_MAJOR_VERSION < 3: # Python 2 raise Exception('Only Python 3 is supported') import json, git, pickle, hashlib import numpy as np import pandas as pd from pathlib import Path...
34.551887
138
0.553925
13,287
0.906962
0
0
2,320
0.158362
0
0
6,465
0.441297
5ea72399ea15c71aa2c24c3a7b572b15a149a2ff
741
py
Python
arpym/tools/regularized_payoff.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2021-04-10T13:24:30.000Z
2022-03-26T08:20:42.000Z
arpym/tools/regularized_payoff.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
null
null
null
arpym/tools/regularized_payoff.py
dpopadic/arpmRes
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
[ "MIT" ]
6
2019-08-13T22:02:17.000Z
2022-02-09T17:49:12.000Z
# -*- coding: utf-8 -*-" from numpy import pi, exp, sqrt from scipy.special import erf def regularized_payoff(x, k_strk, h, method): """For details, see here: Parameters ---------- x : array, shape (j_,) k : scalar method: string h: scalar Returns ------- ...
22.454545
73
0.45749
0
0
0
0
0
0
0
0
277
0.373819
5eab19f2aca9d090175ce4ce170870b18995458b
623
py
Python
functions/solution/functions_numstr_human.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
1
2019-01-02T15:04:08.000Z
2019-01-02T15:04:08.000Z
functions/solution/functions_numstr_human.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
null
null
null
functions/solution/functions_numstr_human.py
giserh/book-python
ebd4e70cea1dd56986aa8efbae3629ba3f1ba087
[ "MIT" ]
null
null
null
from typing import Union NUMBER_DICT = { '0': 'zero', '1': 'one', '2': 'two', '3': 'three', '4': 'four', '5': 'five', '6': 'six', '7': 'seven', '8': 'eight', '9': 'nine', '.': 'and', } def number_to_str(number: Union[int, float]) -> str: """ >>> number_to_str(1969)...
18.878788
54
0.548957
0
0
0
0
0
0
0
0
422
0.677368
5eacda4c41904fde53e82605bee0dcf17f4ef068
5,343
py
Python
cJobObject.py
SkyLined/mWindowsAPI
d64d57bbf87d2a7b33cf7de89263553793484a84
[ "CC-BY-4.0" ]
7
2017-10-09T14:32:22.000Z
2021-01-30T07:25:50.000Z
cJobObject.py
SkyLined/mWindowsAPI
d64d57bbf87d2a7b33cf7de89263553793484a84
[ "CC-BY-4.0" ]
2
2017-12-12T02:53:18.000Z
2019-02-19T09:23:18.000Z
cJobObject.py
SkyLined/mWindowsAPI
d64d57bbf87d2a7b33cf7de89263553793484a84
[ "CC-BY-4.0" ]
1
2017-12-12T02:42:18.000Z
2017-12-12T02:42:18.000Z
from mWindowsSDK import *; from .fbIsValidHandle import fbIsValidHandle; from .fbLastErrorIs import fbLastErrorIs; from .fohOpenForProcessIdAndDesiredAccess import fohOpenForProcessIdAndDesiredAccess; from .fsGetPythonISA import fsGetPythonISA; from .fThrowLastError import fThrowLastError; from .oSystemInfo import oSys...
49.934579
164
0.763242
4,850
0.90773
0
0
0
0
0
0
821
0.153659
5ead65667024bc75288d96cebf09e19da2212ee1
325
py
Python
pyatmos/class_atmos.py
lcx366/ATMOS
e079601ea4704d26defd7447ceed0b8be1f89e2f
[ "MIT" ]
11
2019-12-12T01:15:22.000Z
2022-03-11T02:38:10.000Z
pyatmos/class_atmos.py
lcx366/ATMOS
e079601ea4704d26defd7447ceed0b8be1f89e2f
[ "MIT" ]
2
2021-06-19T23:41:18.000Z
2022-03-24T22:59:11.000Z
pyatmos/class_atmos.py
lcx366/ATMOS
e079601ea4704d26defd7447ceed0b8be1f89e2f
[ "MIT" ]
null
null
null
class ATMOS(object): ''' class ATMOS - attributes: - self defined - methods: - None ''' def __init__(self,info): self.info = info for key in info.keys(): setattr(self, key, info[key]) def __repr__(self): return 'Instance of class AT...
19.117647
43
0.513846
324
0.996923
0
0
0
0
0
0
124
0.381538
5ead8819552a60d1c0e97dd3a85e065b78457769
9,746
py
Python
core/views/directions.py
Egorka96/med-org-portal
3f55fb59daea03684b3bc6b5c394cd06cfd6e2df
[ "MIT" ]
2
2020-03-02T17:29:14.000Z
2020-05-28T13:19:49.000Z
core/views/directions.py
Egorka96/med-org-portal
3f55fb59daea03684b3bc6b5c394cd06cfd6e2df
[ "MIT" ]
88
2020-02-17T09:46:57.000Z
2022-03-12T00:24:32.000Z
core/views/directions.py
Egorka96/med-org-portal
3f55fb59daea03684b3bc6b5c394cd06cfd6e2df
[ "MIT" ]
1
2020-04-17T15:56:51.000Z
2020-04-17T15:56:51.000Z
import dataclasses import datetime import json import os import tempfile from core.excel.directions import DirectionsExcel from django.conf import settings from django.contrib import messages from django.contrib.auth.mixins import PermissionRequiredMixin from django.core.files import File from django.shortcuts import ...
35.184116
120
0.635543
9,320
0.928194
0
0
0
0
0
0
1,502
0.149587
5eae8ac7a005dd1b0f71911185c7c5a0a7158078
361
py
Python
problem/10000~19999/17206/17206.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/10000~19999/17206/17206.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/10000~19999/17206/17206.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
t=int(input()) if not (1 <= t <= 100000): exit(-1) dp=[0]*100001 dp[3]=3 for i in range(4,100001): if i%3==0 or i%7==0: dp[i]=i dp[i]+=dp[i-1] query=[*map(int,input().split())] if len(query)!=t: exit(-1) for i in query: if not (10 <= int(i) <= 80000): exit(-1) print(dp[int(i)]) succ=False try: input(...
19
44
0.565097
0
0
0
0
0
0
0
0
0
0
5eae8d82dc5183916e03e85619c769e8bdd57923
21,108
py
Python
quantarhei/qm/liouvillespace/heom.py
slamavl/quantarhei
d822bc2db86152c418e330a9152e7866869776f7
[ "MIT" ]
14
2016-10-16T13:26:05.000Z
2021-11-09T11:40:52.000Z
quantarhei/qm/liouvillespace/heom.py
slamavl/quantarhei
d822bc2db86152c418e330a9152e7866869776f7
[ "MIT" ]
61
2016-09-19T10:45:56.000Z
2021-11-10T13:53:06.000Z
quantarhei/qm/liouvillespace/heom.py
slamavl/quantarhei
d822bc2db86152c418e330a9152e7866869776f7
[ "MIT" ]
21
2016-08-30T09:09:28.000Z
2022-03-30T03:16:35.000Z
# -*- coding: utf-8 -*- """ Representation of Hierarchical Equations of Motion """ import numpy from ... import REAL, COMPLEX from ..propagators.dmevolution import DensityMatrixEvolution from ..hilbertspace.operators import ReducedDensityMatrix from ..hilbertspace.operators import UnityOperator from ...core.units...
30.724891
93
0.45054
20,074
0.951014
0
0
0
0
0
0
6,287
0.297849
5eaeca45e629aa19975f979a92e385f19c770edc
17,980
py
Python
pyOSA/_OSA_Jupyter.py
gregmoille/InstrumentControl
4cc8477e36f7c4ad4bf4f54036fdd8dd985b4133
[ "MIT" ]
3
2018-05-02T20:14:15.000Z
2020-10-18T03:57:09.000Z
pyOSA/.ipynb_checkpoints/_OSA_Jupyter-checkpoint.py
gregmoille/InstrumentControl
4cc8477e36f7c4ad4bf4f54036fdd8dd985b4133
[ "MIT" ]
1
2019-05-23T15:21:08.000Z
2019-05-23T15:21:08.000Z
pyOSA/.ipynb_checkpoints/_OSA_Jupyter-checkpoint.py
gregmoille/InstrumentControl
4cc8477e36f7c4ad4bf4f54036fdd8dd985b4133
[ "MIT" ]
2
2019-05-16T20:36:25.000Z
2020-09-22T18:26:49.000Z
import numpy as np import threading import os import plotly.graph_objects as go import pandas as pd import sys import re from scipy import constants as cts from IPython.display import display, HTML import time work_dir = os.path.join(os.path.dirname(__file__), '../') work_dir = os.path.abspath(work_dir) path = os.path...
35.745527
136
0.469689
13,762
0.765023
0
0
0
0
0
0
5,421
0.301351
5eafe280d36c9d0913ae120c305742245a644cb5
5,036
py
Python
tests/timelog.py
cmanley/viewvc
18ce398586ff99ee13ac64f85c205efdf9c23bad
[ "BSD-2-Clause" ]
2
2015-04-03T14:15:48.000Z
2019-08-06T07:09:58.000Z
tests/timelog.py
cmanley/viewvc
18ce398586ff99ee13ac64f85c205efdf9c23bad
[ "BSD-2-Clause" ]
null
null
null
tests/timelog.py
cmanley/viewvc
18ce398586ff99ee13ac64f85c205efdf9c23bad
[ "BSD-2-Clause" ]
1
2022-01-11T13:02:46.000Z
2022-01-11T13:02:46.000Z
import time import profile from vclib.ccvs import rcsparse import viewvc try: import tparse except ImportError: tparse = None def lines_changed(delta): idx = 0 added = deleted = 0 while idx < len(delta): op = delta[idx] i = delta.find(' ', idx + 1) j = delta.find('\n', i + 1) line = int(de...
27.977778
77
0.616958
1,542
0.306195
0
0
0
0
0
0
528
0.104845
5eb100dbb0d696d5a60712b084844f646f003f84
1,206
py
Python
mysite/ct/migrations/0016_auto_20150626_0301.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
8
2015-06-02T15:34:44.000Z
2019-03-21T12:27:30.000Z
mysite/ct/migrations/0016_auto_20150626_0301.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
761
2015-01-07T05:13:08.000Z
2022-02-10T10:23:37.000Z
mysite/ct/migrations/0016_auto_20150626_0301.py
cjlee112/socraticqs2
2e7dd9d2ec687f68ca8ca341cf5f1b3b8809c820
[ "Apache-2.0" ]
12
2015-01-28T20:09:36.000Z
2018-03-20T13:32:11.000Z
from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('ct', '0015_migrate_fsm'), ] operations = [ migrations.AlterField( model_name='concept', name='title', field=models.CharField(max_length=200), ...
40.2
521
0.584577
1,162
0.963516
0
0
0
0
0
0
434
0.359867
5eb103b20a3f39de88460c4a6decebedc719548b
51
py
Python
src/pipeline/__init__.py
euranova/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
6
2021-09-17T02:09:29.000Z
2022-03-20T04:15:15.000Z
src/pipeline/__init__.py
Jason-Xu-Ncepu/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
null
null
null
src/pipeline/__init__.py
Jason-Xu-Ncepu/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
4
2021-06-29T22:57:18.000Z
2022-03-09T09:19:17.000Z
""" Contains the pipeline used to test models. """
25.5
50
0.686275
0
0
0
0
0
0
0
0
50
0.980392
5eb119a3037c25e9d68b817c1a432c5bb93a20a4
1,954
py
Python
import_result.py
IsobelMarguarethe/Bilby-GWTC-1-Analysis-and-Verification
8829096f69f2dcd9ccd628e018c855179ecf0b49
[ "MIT" ]
6
2020-05-13T02:00:41.000Z
2021-03-06T09:30:38.000Z
import_result.py
IsobelMarguarethe/Bilby-GWTC-1-Analysis-and-Verification
8829096f69f2dcd9ccd628e018c855179ecf0b49
[ "MIT" ]
null
null
null
import_result.py
IsobelMarguarethe/Bilby-GWTC-1-Analysis-and-Verification
8829096f69f2dcd9ccd628e018c855179ecf0b49
[ "MIT" ]
4
2020-05-13T02:06:48.000Z
2022-02-03T00:42:18.000Z
#!/usr/bin/env python """ Script to convert a result into the standard format of this directory """ import argparse import bilby import numpy as np # Set a random seed so the resampling is reproducible np.random.seed(1234) parser = argparse.ArgumentParser() parser.add_argument('result', help="The result file to imp...
36.867925
77
0.707779
0
0
0
0
0
0
0
0
691
0.353634
5eb3c2e37e129386b93102ad60b647ab6808cb94
18,653
py
Python
bauer_bsm/bsm/client.py
alkradhazar/test1
addb391d9e8bac8a7d8ed8a5310fb695ce15eaf6
[ "Apache-2.0" ]
7
2020-07-07T07:43:41.000Z
2022-01-21T22:31:33.000Z
bauer_bsm/bsm/client.py
alkradhazar/test1
addb391d9e8bac8a7d8ed8a5310fb695ce15eaf6
[ "Apache-2.0" ]
2
2021-02-28T22:06:54.000Z
2021-09-29T09:47:45.000Z
bauer_bsm/bsm/client.py
alkradhazar/test1
addb391d9e8bac8a7d8ed8a5310fb695ce15eaf6
[ "Apache-2.0" ]
2
2021-09-24T03:49:19.000Z
2022-03-02T12:53:00.000Z
# BSM Python library and command line tool # # Copyright (C) 2020 chargeIT mobility GmbH # # SPDX-License-Identifier: Apache-2.0 from . import config from . import md from . import util as butil from ..crypto import util as cutil from ..sunspec.core import client as sclient from ..sunspec.core import suns from ..suns...
34.800373
134
0.633785
15,311
0.820833
0
0
0
0
0
0
5,888
0.31566
5eb3c974fa92731f0fdca10f3d676b0f6e0ffd2f
5,664
py
Python
users/models.py
pnwclw/cyfmazyr
dfeca513c7334335426d226ec3834af598b08b8c
[ "MIT" ]
1
2020-07-18T11:20:29.000Z
2020-07-18T11:20:29.000Z
users/models.py
panwaclaw/cyfmazyr
dfeca513c7334335426d226ec3834af598b08b8c
[ "MIT" ]
8
2020-05-24T14:08:12.000Z
2021-09-08T02:03:52.000Z
users/models.py
pnwclw/cyfmazyr
dfeca513c7334335426d226ec3834af598b08b8c
[ "MIT" ]
1
2020-05-24T12:24:40.000Z
2020-05-24T12:24:40.000Z
from django.contrib.auth.models import AbstractUser from django.db import models from django.utils import timezone from django.utils.translation import ugettext as _ from simple_history.models import HistoricalRecords from phonenumber_field.modelfields import PhoneNumberField from internals.models import School, Univ...
38.27027
159
0.69827
5,094
0.899364
0
0
0
0
0
0
1,554
0.274364
5eb46db6b4f0d64982209cc3ae42fc847fe7c287
84
py
Python
google_play_scraper/constants/google_play.py
mrommel/google-play-scraper
3bfcef87bc754192162841bc057919762b8bf548
[ "MIT" ]
null
null
null
google_play_scraper/constants/google_play.py
mrommel/google-play-scraper
3bfcef87bc754192162841bc057919762b8bf548
[ "MIT" ]
null
null
null
google_play_scraper/constants/google_play.py
mrommel/google-play-scraper
3bfcef87bc754192162841bc057919762b8bf548
[ "MIT" ]
null
null
null
from enum import Enum class Sort(int, Enum): NEWEST = 2 MOST_RELEVANT = 1
12
22
0.654762
59
0.702381
0
0
0
0
0
0
0
0
5eb4a2f00f9d8a891e52f77fa6e0a7cf21d67a41
1,282
py
Python
pystruct/utils/graph.py
dugu9sword/pystruct
07c1e02c62d138f79c2114b8c14ca7e2b65540b4
[ "BSD-2-Clause" ]
null
null
null
pystruct/utils/graph.py
dugu9sword/pystruct
07c1e02c62d138f79c2114b8c14ca7e2b65540b4
[ "BSD-2-Clause" ]
null
null
null
pystruct/utils/graph.py
dugu9sword/pystruct
07c1e02c62d138f79c2114b8c14ca7e2b65540b4
[ "BSD-2-Clause" ]
null
null
null
import numpy as np def make_grid_edges(x, neighborhood=4, return_lists=False): if neighborhood not in [4, 8]: raise ValueError("neighborhood can only be '4' or '8', got %s" % repr(neighborhood)) inds = np.arange(x.shape[0] * x.shape[1]).reshape(x.shape[:2]) inds = inds.ast...
32.871795
80
0.556942
0
0
0
0
0
0
0
0
137
0.106864
5eb5c4c0903c665a41afc0516f248dfc593530f7
1,939
py
Python
Muscollo/Tests/plot_inverse_dynamics.py
chrisdembia/opensim-moco
ff67eaeae4d3f1a02d3a0dec78347a70802692d7
[ "Apache-2.0" ]
2
2020-05-16T11:13:13.000Z
2020-11-17T09:20:39.000Z
Muscollo/Tests/plot_inverse_dynamics.py
chrisdembia/opensim-moco
ff67eaeae4d3f1a02d3a0dec78347a70802692d7
[ "Apache-2.0" ]
null
null
null
Muscollo/Tests/plot_inverse_dynamics.py
chrisdembia/opensim-moco
ff67eaeae4d3f1a02d3a0dec78347a70802692d7
[ "Apache-2.0" ]
1
2020-07-23T22:24:26.000Z
2020-07-23T22:24:26.000Z
# -------------------------------------------------------------------------- # # OpenSim Muscollo: plot_inverse_dynamics.py # # -------------------------------------------------------------------------- # # Copyright (c) 2017 Stanford University and the Authors # # ...
49.717949
78
0.489943
0
0
0
0
0
0
0
0
1,426
0.735431
5eb5ffe69b5c83729920cda7555dd6bc8ad0aa83
6,485
py
Python
xd/xview3/vessel_length/dataset/__init__.py
smly/xview3-kohei-solution
f6933ff437240c6c07fd61c3bd4290b639d17531
[ "MIT" ]
2
2022-01-14T08:00:34.000Z
2022-01-17T12:42:44.000Z
xd/xview3/vessel_length/dataset/__init__.py
smly/xview3-kohei-solution
f6933ff437240c6c07fd61c3bd4290b639d17531
[ "MIT" ]
null
null
null
xd/xview3/vessel_length/dataset/__init__.py
smly/xview3-kohei-solution
f6933ff437240c6c07fd61c3bd4290b639d17531
[ "MIT" ]
1
2022-01-31T21:25:21.000Z
2022-01-31T21:25:21.000Z
from dataclasses import dataclass from pathlib import Path import cv2 import numpy as np import pandas as pd import torch from omegaconf import DictConfig from torch.utils.data import DataLoader, Dataset from xd.utils.configs import dynamic_load @dataclass class XView3DataSource: train_csv: Path = Path("data/in...
33.086735
89
0.59522
5,699
0.878797
0
0
1,029
0.158674
0
0
1,225
0.188897
5eb6ed393de918f8c3120b183de9a52d1c9d90da
216
py
Python
master/scripts/paths.py
OPU-Surveillance-System/monitoring
2c2c657c74fce9a5938d986372f9077708617d9c
[ "MIT" ]
4
2020-12-24T11:51:28.000Z
2022-02-08T09:02:38.000Z
master/scripts/paths.py
OPU-Surveillance-System/monitoring
2c2c657c74fce9a5938d986372f9077708617d9c
[ "MIT" ]
1
2021-11-16T02:54:35.000Z
2021-11-16T02:54:35.000Z
master/scripts/paths.py
OPU-Surveillance-System/monitoring
2c2c657c74fce9a5938d986372f9077708617d9c
[ "MIT" ]
null
null
null
""" Define the environment paths """ #Path variables TEMPLATE_PATH = "/home/scom/documents/opu_surveillance_system/monitoring/master/" STATIC_PATH = "/home/scom/documents/opu_surveillance_system/monitoring/static/"
27
81
0.805556
0
0
0
0
0
0
0
0
181
0.837963
5eb703c2f5ca89811146d4e9b20de24a3405a5d5
3,181
py
Python
tests/strategies/test_local_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
tests/strategies/test_local_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
tests/strategies/test_local_strategy.py
gijswobben/customs
72c0d071fe35ed84eb6d6371eb651edcd13a1044
[ "MIT" ]
null
null
null
from flask.globals import request import pytest from flask import Flask from typing import Dict from customs import Customs from customs.exceptions import UnauthorizedException from customs.strategies import LocalStrategy def test_local_strategy_initialization_without_customs(): class Local(LocalStrategy): ...
30.586538
77
0.688463
1,090
0.34266
0
0
0
0
0
0
530
0.166614
5eb7f47546bca179adc2ac8b071991f097ead1c9
3,105
py
Python
package/spack-omega-h/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-omega-h/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-omega-h/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
41.959459
78
0.644767
1,847
0.594847
0
0
0
0
0
0
2,066
0.665378
5eb834e28210f09f415768f60fec78d4bb5c4bb0
984
py
Python
core/data.py
mohamadnosratian/Pricer
a19fddc526add55385abd9569c0d3bdbd0cb79c4
[ "MIT" ]
null
null
null
core/data.py
mohamadnosratian/Pricer
a19fddc526add55385abd9569c0d3bdbd0cb79c4
[ "MIT" ]
1
2020-11-29T15:26:47.000Z
2020-11-29T15:26:47.000Z
core/data.py
mohamadnosratian/Pricer
a19fddc526add55385abd9569c0d3bdbd0cb79c4
[ "MIT" ]
null
null
null
import TmConv import time class Data(): def __init__(self, content): self.content = content self.corrent = '-' self.object = {} def update(self): Cp, name = self.content.Update() if Cp != self.corrent: self.corrent = Cp self.object = { ...
24.6
88
0.505081
955
0.970528
0
0
0
0
0
0
34
0.034553
5eb8db949bc6779860bde61b3f9a676998243338
8,002
py
Python
src/sage/categories/super_modules.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
src/sage/categories/super_modules.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
src/sage/categories/super_modules.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
r""" Super modules """ #***************************************************************************** # Copyright (C) 2015 Travis Scrimshaw <tscrim at ucdavis.edu> # # Distributed under the terms of the GNU General Public License (GPL) # http://www.gnu.org/licenses/ #*********************************...
35.40708
93
0.567733
6,741
0.842414
0
0
943
0.117846
0
0
6,149
0.768433
5eb917289cf2645c455634d8b05490fcdaf7e3cd
2,616
py
Python
emissor/processing/api.py
cltl/GMRCAnnotation
cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839
[ "MIT" ]
null
null
null
emissor/processing/api.py
cltl/GMRCAnnotation
cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839
[ "MIT" ]
18
2021-01-12T15:18:07.000Z
2021-03-23T12:30:57.000Z
emissor/processing/api.py
cltl/EMISSOR
68504c859c36b1b65b2c0002d065028b3d5b5d08
[ "MIT" ]
null
null
null
from abc import ABC from typing import Iterable, Any, Tuple, Mapping from emissor.persistence import ScenarioStorage from emissor.persistence.persistence import ScenarioController from emissor.representation.scenario import Signal, Modality class DataPreprocessor(ABC): def preprocess(self): raise NotImpl...
24.679245
106
0.675076
2,360
0.902141
0
0
553
0.211391
0
0
8
0.003058
5eb921e1f305cdd4c49679c44d5fbbbb4958bfcf
336
py
Python
pseudocode/scratch_code.py
AndrewBeers/DifferentialPrivacy_For_Quotes
db63d9b9d533f37b9f2c546ffef1d4dd883cd3cb
[ "MIT" ]
null
null
null
pseudocode/scratch_code.py
AndrewBeers/DifferentialPrivacy_For_Quotes
db63d9b9d533f37b9f2c546ffef1d4dd883cd3cb
[ "MIT" ]
2
2021-09-08T01:38:38.000Z
2022-01-13T02:11:04.000Z
pseudocode/scratch_code.py
AndrewBeers/DifferentialPrivacy_For_Quotes
db63d9b9d533f37b9f2c546ffef1d4dd883cd3cb
[ "MIT" ]
null
null
null
from colour import Color from pprint import pprint def test_function(): red = Color("red") green = Color("green") colors = list(red.range_to(green, 20)) # pprint(colors) # pprint(dir(colors[0])) for color in colors: print(color.get_hex()) return if __name__ == '__main__': ...
16
42
0.627976
0
0
0
0
0
0
0
0
62
0.184524
5eb9b284f901406c6cbd4aa345e318f7d639ee36
2,779
py
Python
src/ros_libav/common.py
ORANKWON/ros_libav
d8d1417d0dd422db717de593718df240316b77ed
[ "MIT" ]
null
null
null
src/ros_libav/common.py
ORANKWON/ros_libav
d8d1417d0dd422db717de593718df240316b77ed
[ "MIT" ]
null
null
null
src/ros_libav/common.py
ORANKWON/ros_libav
d8d1417d0dd422db717de593718df240316b77ed
[ "MIT" ]
1
2019-03-02T04:41:36.000Z
2019-03-02T04:41:36.000Z
# @Author: Jose Rojas # @Date: 2018-07-10T08:20:17-07:00 # @Email: jrojas@redlinesolutions.co # @Project: ros-libav-node # @Last modified by: jrojas # @Last modified time: 2018-07-13T17:26:29-07:00 # @License: MIT License # @Copyright: Copyright @ 2018, Jose Rojas import rospy import av import av.filter class No...
28.357143
88
0.570349
2,466
0.88737
0
0
0
0
0
0
499
0.179561
5eba6763e45275c05c6ea71d177bcb0b20fdb6c3
266
py
Python
zeri_di_funzioni/stima_ordine.py
Ro0t-set/metodi-numerici
d586bce78f94f1aa6736218c9123064a57cb87ec
[ "MIT" ]
5
2021-05-21T12:22:18.000Z
2021-07-02T16:48:32.000Z
zeri_di_funzioni/stima_ordine.py
AlePioggia/metodi-numerici
a231f4a857074d811eb230b1114545f05fabe65f
[ "MIT" ]
null
null
null
zeri_di_funzioni/stima_ordine.py
AlePioggia/metodi-numerici
a231f4a857074d811eb230b1114545f05fabe65f
[ "MIT" ]
2
2021-06-22T10:20:58.000Z
2021-07-02T19:58:24.000Z
# -*- coding: utf-8 -*- """ Metodo per la stima dell'ordine """ import numpy as np def stima_ordine(xks,num_iterazioni): k = num_iterazioni - 3 return np.log(abs(xks[k+2]-xks[k+3])/abs(xks[k+1]-xks[k+2])) / np.log(abs(xks[k+1]-xks[k+2])/abs(xks[k]-xks[k+1]))
33.25
118
0.62406
0
0
0
0
0
0
0
0
62
0.233083
5eba75a29b860145b0023e5e394f13be95f75dca
539
py
Python
src/game_objects/projectiles/projectile.py
ozcer/Project-Ooze
28eb84995f4fa283366e3f04edb7e393d5281ac5
[ "MIT" ]
1
2018-10-10T02:11:50.000Z
2018-10-10T02:11:50.000Z
src/game_objects/projectiles/projectile.py
ozcer/Project-Ooze
28eb84995f4fa283366e3f04edb7e393d5281ac5
[ "MIT" ]
29
2018-03-16T05:07:18.000Z
2018-04-03T03:58:32.000Z
src/game_objects/projectiles/projectile.py
ozcer/FlaPy-Bird
28eb84995f4fa283366e3f04edb7e393d5281ac5
[ "MIT" ]
1
2018-03-18T00:27:12.000Z
2018-03-18T00:27:12.000Z
import pygame from src.game_objects.dynamic import Dynamic from src.game_objects.foes.foe import Foe class Projectile(Dynamic): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def decayable(self): """ Overriding decayable in GameObject :ret...
21.56
53
0.612245
434
0.805195
0
0
0
0
0
0
80
0.148423
5ebac3e5f4a5272b4168613de726fdb25fcb20e1
1,773
py
Python
API/app/getLatLng.py
EdmundoSanchezM/Trobify
08733546737cd8baf2537eb00dcf37b1f6445a8f
[ "MIT" ]
null
null
null
API/app/getLatLng.py
EdmundoSanchezM/Trobify
08733546737cd8baf2537eb00dcf37b1f6445a8f
[ "MIT" ]
null
null
null
API/app/getLatLng.py
EdmundoSanchezM/Trobify
08733546737cd8baf2537eb00dcf37b1f6445a8f
[ "MIT" ]
null
null
null
import requests import urllib.parse from bs4 import BeautifulSoup from geopy.geocoders import Nominatim def parseCoord (coord): start = 0 for i in range(0, len(coord)): if coord[i].isnumeric () or coord[i] == '-' : start = i break coordAsStr = coord[start: - 1].split (", ")...
30.568966
137
0.598985
0
0
0
0
0
0
0
0
368
0.207441
5ebb524fc20cdce67043f7ce16122bebdb4e6bf2
390
py
Python
python/echoserver.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
7
2016-01-03T19:42:07.000Z
2018-10-23T14:03:12.000Z
python/echoserver.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
null
null
null
python/echoserver.py
vesche/snippets
7a9d598df99c26c4e0c63669f9f95a94eeed0d08
[ "Unlicense" ]
1
2018-03-09T08:52:01.000Z
2018-03-09T08:52:01.000Z
#!/usr/bin/env python import socket import sys if len(sys.argv) == 2: port = int(sys.argv[1]) else: print('Usage: ./echoserver.py <port>') sys.exit(1) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind(('127.0.0.1', port)) s.listen(1) while 1: client, address = s.accept() data = client...
17.727273
53
0.623077
0
0
0
0
0
0
0
0
63
0.161538
5ebb91cb5e4e0255ed257a4d8c5da3f46959b083
1,416
py
Python
Py Apple Dynamics V7.3 SRC/PA-Dynamics V7.3/PA_ATTITUDE.py
musen142/py-apple-dynamics
95f831ecf9c9167e9709c63deabc989eda6bf669
[ "Apache-2.0" ]
1
2022-01-18T11:47:29.000Z
2022-01-18T11:47:29.000Z
Py Apple Dynamics V7.3 SRC/PA-Dynamics V7.3/PA_ATTITUDE.py
musen142/py-apple-dynamics
95f831ecf9c9167e9709c63deabc989eda6bf669
[ "Apache-2.0" ]
null
null
null
Py Apple Dynamics V7.3 SRC/PA-Dynamics V7.3/PA_ATTITUDE.py
musen142/py-apple-dynamics
95f831ecf9c9167e9709c63deabc989eda6bf669
[ "Apache-2.0" ]
null
null
null
from math import sin,cos,pi def cal_ges(PIT,ROL,l,b,w,x,Hc): YA=0 P=PIT*pi/180 R=ROL*pi/180 Y=YA*pi/180 #腿1 ABl_x=l/2 - x -(l*cos(P)*cos(Y))/2 + (b*cos(P)*sin(Y))/2 ABl_y=w/2 - (b*(cos(R)*cos(Y) + sin(P)*sin(R)*sin(Y)))/2 - (l*(cos(R)*sin(Y) - cos(Y)*sin(P)*sin(R)))/2 ABl_z= - Hc - (b*(...
32.930233
109
0.47952
0
0
0
0
0
0
0
0
20
0.014045
5ebc7941277bb454426f173139c1ec78075f5c4f
7,477
py
Python
src/tau_clients/parsers.py
vmware-samples/tau-clients
d7d07885dec9a1e44a5acf76ee62a33064629ab0
[ "BSD-2-Clause" ]
2
2021-07-27T12:02:28.000Z
2021-12-30T13:47:23.000Z
src/tau_clients/parsers.py
vmware-samples/tau-clients
d7d07885dec9a1e44a5acf76ee62a33064629ab0
[ "BSD-2-Clause" ]
4
2021-07-27T12:03:05.000Z
2022-02-11T13:55:05.000Z
src/tau_clients/parsers.py
vmware-samples/tau-clients
d7d07885dec9a1e44a5acf76ee62a33064629ab0
[ "BSD-2-Clause" ]
null
null
null
# Copyright 2021 VMware, Inc. # SPDX-License-Identifier: BSD-2 import ipaddress from typing import Any from typing import Dict from typing import Optional from urllib import parse import tau_clients try: import pymisp except ImportError: raise ImportError("This module requires 'pymisp' to be installed.") from...
41.77095
97
0.57269
7,148
0.955998
0
0
872
0.116624
0
0
2,338
0.312692
5ebca2415c32be73b3b846d60b82069b036022ff
12,398
py
Python
HSI_Data_Preparation.py
fjpsxh/CNN_HSIC_MRF
83f3202b512e3cdee1d0555593a55c6d0d6aa4fb
[ "MIT" ]
56
2017-05-07T18:08:35.000Z
2021-08-31T08:57:56.000Z
HSI_Data_Preparation.py
zoeyingz/CNN_HSIC_MRF
83f3202b512e3cdee1d0555593a55c6d0d6aa4fb
[ "MIT" ]
2
2018-05-25T11:14:47.000Z
2018-06-14T06:12:27.000Z
HSI_Data_Preparation.py
zoeyingz/CNN_HSIC_MRF
83f3202b512e3cdee1d0555593a55c6d0d6aa4fb
[ "MIT" ]
22
2017-10-25T02:32:20.000Z
2021-08-31T08:58:01.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 18 16:21:13 2017 @author: Xiangyong Cao This code is modified based on https://github.com/KGPML/Hyperspectral """ import scipy.io import numpy as np from random import shuffle import random import scipy.ndimage from skimage.util import pad import os import time import pan...
40.917492
118
0.660106
0
0
0
0
0
0
0
0
3,081
0.248508
5ebd6ec4df2b4d6b96a69a2fe794a4cefe53fc90
1,253
py
Python
fedml_api/model/linear/har/encoders.py
ziqi-zhang/FedML
83cfc1245609c50f21d13be5f180f67576c57735
[ "Apache-2.0" ]
null
null
null
fedml_api/model/linear/har/encoders.py
ziqi-zhang/FedML
83cfc1245609c50f21d13be5f180f67576c57735
[ "Apache-2.0" ]
null
null
null
fedml_api/model/linear/har/encoders.py
ziqi-zhang/FedML
83cfc1245609c50f21d13be5f180f67576c57735
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn from pdb import set_trace as st def get_encoder(model_type): model_type = model_type.lower().capitalize() return eval("{}".format(model_type)) class Cnn1(nn.Module): def __init__(self, data_size, n_classes): """ """ super(Cnn1, self).__init__() ...
26.659574
72
0.584198
1,063
0.848364
0
0
0
0
0
0
132
0.105347
5ebf381a379c6a121f8f5413969634f97d6a2668
263
py
Python
validadores/regras/valor.py
mayronceccon/olist-python-labs-project
217188212158ba2401866e06173d762e346ebeee
[ "MIT" ]
null
null
null
validadores/regras/valor.py
mayronceccon/olist-python-labs-project
217188212158ba2401866e06173d762e346ebeee
[ "MIT" ]
null
null
null
validadores/regras/valor.py
mayronceccon/olist-python-labs-project
217188212158ba2401866e06173d762e346ebeee
[ "MIT" ]
null
null
null
from .regra import Regra class Valor(Regra): def __init__(self, valor): self.__valor = float(valor) def is_valid(self): if type(self.__valor) is not float and type(self.__valor) is not int: raise Exception('Valor inválido')
23.909091
77
0.65019
236
0.893939
0
0
0
0
0
0
17
0.064394
5ebfcba39af614fbdd7ab0a691121807d8fb70ac
4,075
py
Python
src/python/pants/backend/core/tasks/scm_publish.py
hythloday/pants
107e9b0957f6949ac4bd535fbef8d2d8cba05c5c
[ "Apache-2.0" ]
11
2015-01-20T01:39:41.000Z
2019-08-08T07:27:44.000Z
src/python/pants/backend/core/tasks/scm_publish.py
hythloday/pants
107e9b0957f6949ac4bd535fbef8d2d8cba05c5c
[ "Apache-2.0" ]
1
2016-03-15T20:35:18.000Z
2016-03-15T20:35:18.000Z
src/python/pants/backend/core/tasks/scm_publish.py
fakeNetflix/square-repo-pants
28a018c7f47900aec4f576c81a52e0e4b41d9fec
[ "Apache-2.0" ]
5
2015-03-30T02:46:53.000Z
2018-03-08T20:10:43.000Z
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (nested_scopes, generators, division, absolute_import, with_statement, print_function, unicode_literals) from abc import abst...
29.316547
99
0.659387
3,678
0.902577
0
0
1,215
0.29816
0
0
843
0.206871
5ec056e8a3fe7a1dd0d7eedbbca11575fb19f604
122
py
Python
abc/abc204/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc204/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc204/b/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) A = list(map(int, input().split())) ans = 0 for a in A: if a > 10: ans += a - 10 print(ans)
13.555556
35
0.491803
0
0
0
0
0
0
0
0
0
0
5ec20deb24c94cf9ee316404a6b77dc4dd8b8ff6
842
py
Python
students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/models.py
EgorovM/ITMO_ICT_WebDevelopment_2021-2022
35c41ba024d7a3cd89654bd4db23f7d447e0f0a2
[ "MIT" ]
null
null
null
students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/models.py
EgorovM/ITMO_ICT_WebDevelopment_2021-2022
35c41ba024d7a3cd89654bd4db23f7d447e0f0a2
[ "MIT" ]
null
null
null
students/K33401/laboratory_works/Egorov_Michil/laboratory_work_2/room/models.py
EgorovM/ITMO_ICT_WebDevelopment_2021-2022
35c41ba024d7a3cd89654bd4db23f7d447e0f0a2
[ "MIT" ]
null
null
null
from django.db import models class Room(models.Model): SUBJECTS = ( ('math', 'Математика'), ('inf', 'Информатика'), ('othr', 'Другое') ) SUBJECTS_COLOR = ( ('math', '#28a745'), ('inf', '#007bff'), ('othr', '#6c757d') ) name = models.CharField(max_le...
24.764706
62
0.627078
837
0.963176
0
0
0
0
0
0
121
0.139241
5ec2acbce4a69ac08d74be58cb9979e47b281c7d
412
py
Python
pytalk/obsolete/message.py
henryz2004/pytalk
76d84985ddb1e049cc4db2d5d11b52c49927164e
[ "MIT" ]
3
2018-02-27T00:47:38.000Z
2021-06-04T20:50:13.000Z
pytalk/obsolete/message.py
henryz2004/pytalk
76d84985ddb1e049cc4db2d5d11b52c49927164e
[ "MIT" ]
null
null
null
pytalk/obsolete/message.py
henryz2004/pytalk
76d84985ddb1e049cc4db2d5d11b52c49927164e
[ "MIT" ]
null
null
null
from pynet import socket_utility class Message: """ Stores a string message and whether or not it is a notification (NTF) or plain message (MSG) """ def __init__(self, message): self.message = message def prepare(self, max_bytes=None): return socket_utility.prepare(...
22.888889
97
0.650485
372
0.902913
0
0
0
0
0
0
110
0.26699
5ec47955f1ecf4b81bd290a76d77ba6d233be01c
1,181
py
Python
backend/keplerapi/api/migrations/0010_auto_20200627_2003.py
ADSPI/kepler
db45471e3428eea93579e48f130f255a1f5974c4
[ "MIT" ]
2
2020-02-16T15:23:21.000Z
2020-03-07T12:39:56.000Z
backend/keplerapi/api/migrations/0010_auto_20200627_2003.py
creativepisystem/kepler
307708666a1913fbb369a57b5fca04b20209929d
[ "MIT" ]
null
null
null
backend/keplerapi/api/migrations/0010_auto_20200627_2003.py
creativepisystem/kepler
307708666a1913fbb369a57b5fca04b20209929d
[ "MIT" ]
1
2020-05-13T00:07:18.000Z
2020-05-13T00:07:18.000Z
# Generated by Django 3.0.3 on 2020-06-27 20:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0009_auto_20200625_2347'), ] operations = [ migrations.AlterModelOptions( name='hiredservice', options={'orde...
28.804878
132
0.54022
1,088
0.921253
0
0
0
0
0
0
301
0.254869
5ec50ef5996e125d5eaf7ab56c50549bb75fe8e9
1,184
py
Python
Scripts/ReverseSearch/social_media.py
balswyan/senior-capstone-fall-2018
8740614f0db917bfdc5131095fe566a92b806e73
[ "MIT" ]
1
2020-03-03T01:01:41.000Z
2020-03-03T01:01:41.000Z
Scripts/ReverseSearch/social_media.py
balswyan/senior-capstone-fall-2018
8740614f0db917bfdc5131095fe566a92b806e73
[ "MIT" ]
null
null
null
Scripts/ReverseSearch/social_media.py
balswyan/senior-capstone-fall-2018
8740614f0db917bfdc5131095fe566a92b806e73
[ "MIT" ]
null
null
null
import urllib2 from cookielib import CookieJar import os import re import time import json cookies = CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookies)) opener.addheaders = [('User-agent', 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 ' '(KHTML, like...
47.36
145
0.686655
0
0
0
0
0
0
0
0
575
0.485642
5ec54d097af06658b5b632d52a4f3101a7a15d52
1,939
py
Python
Server.py
ReFormationPro/SPSC
d3be0637a095ddfcfe2d32272b5a6ca962b393da
[ "Apache-2.0" ]
null
null
null
Server.py
ReFormationPro/SPSC
d3be0637a095ddfcfe2d32272b5a6ca962b393da
[ "Apache-2.0" ]
null
null
null
Server.py
ReFormationPro/SPSC
d3be0637a095ddfcfe2d32272b5a6ca962b393da
[ "Apache-2.0" ]
null
null
null
import socket as Socket import threading as Threading from pprint import pprint import Packet def main(): serverThread = startServer() #getCommands(serverThread) print("Goodbye.") def getCommands(serverThread): print("Server Commands") while True: cmd = input("0- Halt") if cmd == "0": print("H...
23.361446
70
0.639505
1,428
0.736462
0
0
0
0
0
0
288
0.14853
5ec5c3c5ad95f9da38c7ad657235db69b5b006c7
354
py
Python
hackerrank/algorithms/general/kangaroo/kangaroo.py
nicklambourne/hackerrank-solutions
9536aa16a67325566e6d3ebea5d5f2c5bf12a05d
[ "MIT" ]
null
null
null
hackerrank/algorithms/general/kangaroo/kangaroo.py
nicklambourne/hackerrank-solutions
9536aa16a67325566e6d3ebea5d5f2c5bf12a05d
[ "MIT" ]
null
null
null
hackerrank/algorithms/general/kangaroo/kangaroo.py
nicklambourne/hackerrank-solutions
9536aa16a67325566e6d3ebea5d5f2c5bf12a05d
[ "MIT" ]
null
null
null
#!/bin/python3 import sys def kangaroo(x1, v1, x2, v2): if (x1 < x2 and v1 <= v2) or (x2 < x1 and v2 <= v1): return "NO" if ((x2 - x1) % (v2-v1)) == 0: return "YES" return "NO" x1, v1, x2, v2 = input().strip().split(' ') x1, v1, x2, v2 = [int(x1), int(v1), int(x2), int(v2)] result = kanga...
22.125
56
0.519774
0
0
0
0
0
0
0
0
30
0.084746
5ec62c30a034128c3c15a108e434ab6f4d99a322
216
py
Python
plugins/espcms_cms.py
cflq3/getcms
6cf07da0ea3ec644866df715cff1f311a46ee378
[ "MIT" ]
22
2016-09-01T08:27:07.000Z
2021-01-11T13:32:59.000Z
plugins/espcms_cms.py
cflq3/getcms
6cf07da0ea3ec644866df715cff1f311a46ee378
[ "MIT" ]
null
null
null
plugins/espcms_cms.py
cflq3/getcms
6cf07da0ea3ec644866df715cff1f311a46ee378
[ "MIT" ]
20
2015-11-07T19:09:48.000Z
2018-05-02T03:10:41.000Z
#!/usr/bin/env python # encoding: utf-8 def run(whatweb, pluginname): whatweb.recog_from_content(pluginname, "espcms") whatweb.recog_from_file(pluginname, "templates/wap/cn/public/footer.html", "espcms")
21.6
88
0.736111
0
0
0
0
0
0
0
0
91
0.421296
5ec64e7203ff5e47285eff2de68b2cba358d3dc6
116
py
Python
examples/02_current_price.py
sharebook-kr/coinonepy
9d946a20d2228f90f3fe8dfb557e16a4ce214151
[ "MIT" ]
2
2021-08-31T09:06:05.000Z
2021-12-03T12:26:49.000Z
examples/02_current_price.py
sharebook-kr/coinonepy
9d946a20d2228f90f3fe8dfb557e16a4ce214151
[ "MIT" ]
null
null
null
examples/02_current_price.py
sharebook-kr/coinonepy
9d946a20d2228f90f3fe8dfb557e16a4ce214151
[ "MIT" ]
1
2021-12-03T12:26:50.000Z
2021-12-03T12:26:50.000Z
import coinonepy btc = coinonepy.get_current_price("btc") btc_last_price = float(btc['last']) print(btc_last_price)
23.2
40
0.793103
0
0
0
0
0
0
0
0
11
0.094828
5ec664692a8004415ba033ef9d8d62ed175a5bc8
2,115
py
Python
tests/techniques/test_train_policy_gradient.py
alphagamatoe/AlphaToe
a7cd0969aa46dfd151a22ed8b9aec1a894747b17
[ "MIT" ]
172
2016-09-27T12:23:10.000Z
2022-01-19T09:52:11.000Z
tests/techniques/test_train_policy_gradient.py
afcarl/AlphaToe
1220f4f883dbbd7ac1d84092bdaf04ca18a4dbc2
[ "MIT" ]
13
2018-07-19T09:42:28.000Z
2018-09-25T15:08:05.000Z
tests/techniques/test_train_policy_gradient.py
afcarl/AlphaToe
1220f4f883dbbd7ac1d84092bdaf04ca18a4dbc2
[ "MIT" ]
63
2016-09-27T13:00:51.000Z
2021-04-04T04:34:37.000Z
import functools from unittest import TestCase from common.base_game_spec import BaseGameSpec from common.network_helpers import create_network from games.tic_tac_toe import TicTacToeGameSpec from games.tic_tac_toe_x import TicTacToeXGameSpec from techniques.train_policy_gradient import train_policy_gradients class ...
39.90566
106
0.580142
1,797
0.849645
0
0
0
0
0
0
0
0
5ec6853372a2b5e21b95ce1c9271c4a2d1694982
2,865
py
Python
paddlespeech/text/speechtask/punctuation_restoration/model/lstm.py
hysunflower/PaddleSpeech
bf393573a4f738b163c672e075999b97f445a39a
[ "Apache-2.0" ]
null
null
null
paddlespeech/text/speechtask/punctuation_restoration/model/lstm.py
hysunflower/PaddleSpeech
bf393573a4f738b163c672e075999b97f445a39a
[ "Apache-2.0" ]
null
null
null
paddlespeech/text/speechtask/punctuation_restoration/model/lstm.py
hysunflower/PaddleSpeech
bf393573a4f738b163c672e075999b97f445a39a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.313953
74
0.613962
2,178
0.760209
0
0
0
0
0
0
603
0.210471
5ec76f7b2d8bd24f38f18fcf89397e41c3adc670
3,448
py
Python
sdk/python/core/tests/test_sanity_augmentation.py
YDK-Solutions/ydk
7ab961284cdc82de8828e53fa4870d3204d7730e
[ "ECL-2.0", "Apache-2.0" ]
125
2016-03-15T17:04:13.000Z
2022-03-22T02:46:17.000Z
sdk/python/core/tests/test_sanity_augmentation.py
YDK-Solutions/ydk
7ab961284cdc82de8828e53fa4870d3204d7730e
[ "ECL-2.0", "Apache-2.0" ]
818
2016-03-17T17:06:00.000Z
2022-03-28T03:56:17.000Z
sdk/python/core/tests/test_sanity_augmentation.py
YDK-Solutions/ydk
7ab961284cdc82de8828e53fa4870d3204d7730e
[ "ECL-2.0", "Apache-2.0" ]
93
2016-03-15T19:18:55.000Z
2022-02-24T13:55:07.000Z
# ---------------------------------------------------------------- # Copyright 2016 Cisco Systems # # 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/LICENS...
34.138614
77
0.674304
1,848
0.535963
0
0
320
0.092807
0
0
872
0.2529
5eca0176387a7151273d1f8238c5afd0d8ffbd54
36,675
py
Python
src/telem.py
swharden/Telem-A-Gator
e2fcca77e9ae68ec5d002409e3d46c67ddc8ebb8
[ "MIT" ]
null
null
null
src/telem.py
swharden/Telem-A-Gator
e2fcca77e9ae68ec5d002409e3d46c67ddc8ebb8
[ "MIT" ]
null
null
null
src/telem.py
swharden/Telem-A-Gator
e2fcca77e9ae68ec5d002409e3d46c67ddc8ebb8
[ "MIT" ]
1
2019-06-18T13:58:19.000Z
2019-06-18T13:58:19.000Z
import time import os import glob import datetime import numpy import threading import subprocess #import scipy.stats from PyQt4 import QtCore, QtGui import matplotlib matplotlib.use('TkAgg') matplotlib.rcParams['backend'] = 'TkAgg' import pylab def shortenTo(s,maxsize=100): if len(s)<=maxsize: return s fir...
37.309257
187
0.531425
34,389
0.937669
0
0
0
0
0
0
10,238
0.279155
5eca186387175ce199864fab1e34908e3cd7c9c5
2,000
py
Python
Gathered CTF writeups/2019-10-12-hitcon/lost_key/modulus.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/2019-10-12-hitcon/lost_key/modulus.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/2019-10-12-hitcon/lost_key/modulus.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
import random from crypto_commons.generic import bytes_to_long, multiply, factor, long_to_bytes from crypto_commons.netcat.netcat_commons import nc, receive_until_match, receive_until, send from crypto_commons.rsa.rsa_commons import gcd_multi def prepare_values(): prefix = bytes_to_long("X: ") factors, _ = f...
23.255814
93
0.557
0
0
0
0
0
0
0
0
75
0.0375
5eca3822d3d88e640f8cd392a9134c9bdd311c55
1,458
py
Python
pincer/middleware/ready.py
shivamdurgbuns/Pincer
aa27d6d65023ea62a2d0c09c1e9bc0fe4763e0c3
[ "MIT" ]
null
null
null
pincer/middleware/ready.py
shivamdurgbuns/Pincer
aa27d6d65023ea62a2d0c09c1e9bc0fe4763e0c3
[ "MIT" ]
null
null
null
pincer/middleware/ready.py
shivamdurgbuns/Pincer
aa27d6d65023ea62a2d0c09c1e9bc0fe4763e0c3
[ "MIT" ]
null
null
null
# Copyright Pincer 2021-Present # Full MIT License can be found in `LICENSE` at the project root. """ non-subscription event sent immediately after connecting, contains server information """ from __future__ import annotations from typing import TYPE_CHECKING from ..commands import ChatCommandHandler from ..exceptio...
24.711864
70
0.682442
0
0
0
0
0
0
834
0.572016
581
0.398491
5ecb8246d4044f46b66c6135aafacc666491da6d
327
py
Python
1177.py
oliveiraeverton/uri
91e87dd1c9d18facd0b276d73caf53ed41d8eaea
[ "MIT" ]
null
null
null
1177.py
oliveiraeverton/uri
91e87dd1c9d18facd0b276d73caf53ed41d8eaea
[ "MIT" ]
null
null
null
1177.py
oliveiraeverton/uri
91e87dd1c9d18facd0b276d73caf53ed41d8eaea
[ "MIT" ]
null
null
null
vetor = [] entradaUsuario = int(input()) repetir = 1000 indice = 0 adicionar = 0 while(repetir > 0): vetor.append(adicionar) adicionar += 1 if(adicionar == entradaUsuario): adicionar = 0 repetir -= 1 repetir = 1000 while(repetir>0): repetir -= 1 print("N[{}] = {}".format(indice, vetor[indice])) indic...
18.166667
51
0.639144
0
0
0
0
0
0
0
0
12
0.036697
5ece95cf5808af191aa4776b596abeebfb595d6b
1,620
py
Python
conftest.py
RussellJQA/stg-python-webdriver-cert
73fa7b02f38fe534e074d727f96994a92636ba7b
[ "MIT" ]
4
2021-04-29T22:03:36.000Z
2021-10-20T11:25:55.000Z
conftest.py
RussellJQA/stg-python-webdriver-cert
73fa7b02f38fe534e074d727f96994a92636ba7b
[ "MIT" ]
null
null
null
conftest.py
RussellJQA/stg-python-webdriver-cert
73fa7b02f38fe534e074d727f96994a92636ba7b
[ "MIT" ]
1
2021-05-30T12:56:13.000Z
2021-05-30T12:56:13.000Z
""" This module implements some pytest fixtures for use with Selenium WebDriver. """ import os import time import pytest # pip installed from dotenv import find_dotenv, load_dotenv from selenium.webdriver import Chrome from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.support.wait impor...
31.153846
101
0.758025
0
0
917
0.566049
1,221
0.753704
0
0
779
0.480864
5ecf1e2171d2690342787b732c0021b9436bde5e
4,029
py
Python
api/lib/datafetcher/DataFetcher.py
NLeRoy917/indcovid
cbc94ad3e9993364743fae92f553ef2d154bee18
[ "Apache-2.0" ]
null
null
null
api/lib/datafetcher/DataFetcher.py
NLeRoy917/indcovid
cbc94ad3e9993364743fae92f553ef2d154bee18
[ "Apache-2.0" ]
null
null
null
api/lib/datafetcher/DataFetcher.py
NLeRoy917/indcovid
cbc94ad3e9993364743fae92f553ef2d154bee18
[ "Apache-2.0" ]
1
2021-03-24T15:46:19.000Z
2021-03-24T15:46:19.000Z
import requests import time import pandas class DataFetcher(): """ Python interface for the CKAN Indiana Coronavirus Data Site. URL: https://hub.mph.in.gov/dataset?q=COVID """ _session = requests.Session() _session.headers = { 'application': 'IndCovid.com', 'User-Agent': 'NLeRoy917@gmail....
34.144068
161
0.602135
3,534
0.877141
0
0
0
0
0
0
1,781
0.442045
5ed167138cffc066c8275849b2ee1e74108aad6f
1,631
py
Python
pybots/src/audio/vario.py
aivian/robots
6827886916e36432ce1d806f0a78edef6c9270d9
[ "MIT" ]
null
null
null
pybots/src/audio/vario.py
aivian/robots
6827886916e36432ce1d806f0a78edef6c9270d9
[ "MIT" ]
null
null
null
pybots/src/audio/vario.py
aivian/robots
6827886916e36432ce1d806f0a78edef6c9270d9
[ "MIT" ]
1
2021-09-24T17:08:30.000Z
2021-09-24T17:08:30.000Z
from audio.sounds import beep import numpy as np import time class VarioTone(object): """ A class to make vario sounds """ def __init__(self, max_val=5.0): """ Constructor Arguments: max_val: optional (defaults to 5), the saturation vario reading in meters per second ...
26.306452
78
0.521766
1,567
0.96076
0
0
0
0
0
0
335
0.205395
5ed2d6e06ea77385ae38bbc942bc6b4df97670f0
1,309
py
Python
design.py
Raj-kar/Shuffle-Game-with-python
1b0a765559850137bc49e503b6a79a03c3e8fb12
[ "MIT" ]
null
null
null
design.py
Raj-kar/Shuffle-Game-with-python
1b0a765559850137bc49e503b6a79a03c3e8fb12
[ "MIT" ]
null
null
null
design.py
Raj-kar/Shuffle-Game-with-python
1b0a765559850137bc49e503b6a79a03c3e8fb12
[ "MIT" ]
null
null
null
from functions import decorate, ascii_text def rules(): # Some Game rules, first shown at screen ! decorate(" ************************************************************ ") decorate(" * * ") decorate(" * Welcome to Word jumbling, Suffl...
52.36
129
0.524828
0
0
0
0
0
0
0
0
989
0.755539
5ed3010660f532f36ff748813256fddc0ccb424a
1,224
py
Python
Supernova/database/pack.py
Feliconut/PurdueCS324-LSST
79273ba0ef8ed9aab9e08c736c22631a8e250f6e
[ "Apache-2.0" ]
null
null
null
Supernova/database/pack.py
Feliconut/PurdueCS324-LSST
79273ba0ef8ed9aab9e08c736c22631a8e250f6e
[ "Apache-2.0" ]
null
null
null
Supernova/database/pack.py
Feliconut/PurdueCS324-LSST
79273ba0ef8ed9aab9e08c736c22631a8e250f6e
[ "Apache-2.0" ]
1
2021-02-24T03:54:33.000Z
2021-02-24T03:54:33.000Z
from shutil import copy, make_archive, rmtree from os import mkdir, remove from os.path import join, exists from .io import DATA_PATH, fetch_locus def pack(name, locus_ids, include_alerts=False): if exists(name + '.zip'): raise FileExistsError(name + '.zip') DST_PATH = name + '_temp' print(f'Creat...
38.25
70
0.606209
0
0
0
0
0
0
0
0
254
0.207516
5ed383700e85d30633a0a565fb47e10ed17d6cee
975
py
Python
utils/keychain.py
remcoroyen/ShallotNetwork
d8f36533d613839f70b8eab30112d85229764af2
[ "MIT" ]
null
null
null
utils/keychain.py
remcoroyen/ShallotNetwork
d8f36533d613839f70b8eab30112d85229764af2
[ "MIT" ]
null
null
null
utils/keychain.py
remcoroyen/ShallotNetwork
d8f36533d613839f70b8eab30112d85229764af2
[ "MIT" ]
null
null
null
from Crypto.Util import number def random_prime(bit_size): return number.getPrime(bit_size) def random_int(bit_size): return number.getRandomInteger(bit_size) class KeyChain: def __init__(self): self.keys = [] self.keyids = [] def new_key(self, key, key_id): self.k...
23.780488
55
0.57641
801
0.821538
0
0
0
0
0
0
29
0.029744
5ed3c8a738f51e8e4457aa68a1a92a2c4383f96b
731
py
Python
python3/dec-hexIPformatter.py
7RU7H/hacking-scripts
1672db32ab0875b8105c62deaa72b7b756ceac5f
[ "MIT" ]
null
null
null
python3/dec-hexIPformatter.py
7RU7H/hacking-scripts
1672db32ab0875b8105c62deaa72b7b756ceac5f
[ "MIT" ]
null
null
null
python3/dec-hexIPformatter.py
7RU7H/hacking-scripts
1672db32ab0875b8105c62deaa72b7b756ceac5f
[ "MIT" ]
null
null
null
""" You can run this in the following format: For decimal: python3 ip2dh.py D <Ip-address> For Hexadecimal: python3 ip2dh.py H <Ip-address> https://gist.github.com/mzfr """ #!/usr/bin/python3 import sys if len(sys.argv) < 3: print('\nYou must give desired format and IPv4 address as input...') print('e.g.: D 1...
22.151515
72
0.619699
0
0
0
0
0
0
0
0
385
0.526676
5ed4ceefc3e109900c35d9955460f833cabd84e2
485
py
Python
manage.py
diogenesjusto/flask_leaderboard
86dac90785e01747ffbde99e6ba65cf42e4c016e
[ "MIT" ]
5
2020-06-15T02:56:39.000Z
2021-12-28T19:18:18.000Z
manage.py
diogenesjusto/flask_leaderboard
86dac90785e01747ffbde99e6ba65cf42e4c016e
[ "MIT" ]
2
2019-12-01T15:50:05.000Z
2021-12-17T07:54:23.000Z
manage.py
diogenesjusto/flask_leaderboard
86dac90785e01747ffbde99e6ba65cf42e4c016e
[ "MIT" ]
9
2020-01-19T11:21:33.000Z
2022-02-22T06:28:52.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from config import Config from main import User, Submission app = Flask(__name__) # app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db' app.config.from_object(Conf...
22.045455
60
0.77732
0
0
0
0
0
0
0
0
74
0.152577
5ed5c293015f6fb8f00d8af0364b706eaa0ed94e
3,176
py
Python
settings.py
brandonivey/alertas
b4bc9adad1ea01a7f15c3867ef9da00197e33301
[ "BSD-3-Clause" ]
null
null
null
settings.py
brandonivey/alertas
b4bc9adad1ea01a7f15c3867ef9da00197e33301
[ "BSD-3-Clause" ]
null
null
null
settings.py
brandonivey/alertas
b4bc9adad1ea01a7f15c3867ef9da00197e33301
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ eve-app settings """ # Use the MongoHQ sandbox as our backend. MONGO_HOST = 'localhost' MONGO_PORT = 27017 MONGO_USERNAME = '' MONGO_PASSWORD = '' MONGO_DBNAME = 'notifications' # also, correctly set the API entry point # SERVER_NAME = 'localhost' # Enable reads (GET), inserts (POS...
28.872727
153
0.560139
0
0
0
0
0
0
0
0
2,021
0.636335
5ed705bdaa66e16d951b96579ba77a4976ae6a2d
66
py
Python
pygame_ui/__init__.py
oof6969696969/pygame_ui
ca59652f30718dd8c578d994239d3a2d7aadae9c
[ "MIT" ]
null
null
null
pygame_ui/__init__.py
oof6969696969/pygame_ui
ca59652f30718dd8c578d994239d3a2d7aadae9c
[ "MIT" ]
null
null
null
pygame_ui/__init__.py
oof6969696969/pygame_ui
ca59652f30718dd8c578d994239d3a2d7aadae9c
[ "MIT" ]
null
null
null
from lib.pygame_ui import UIManager, Widgets, Shapes, load_theme
33
65
0.818182
0
0
0
0
0
0
0
0
0
0
5ed74807e632739391f37e5ba60bcdb485e2cdb5
2,884
py
Python
test/test_Motion/test_ForceMomentSystem.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
15
2020-09-11T19:25:07.000Z
2022-03-12T16:34:53.000Z
test/test_Motion/test_ForceMomentSystem.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
null
null
null
test/test_Motion/test_ForceMomentSystem.py
henrystoldt/MAPLEAF
af970d3e8200832f5e70d537b15ad38dd74fa551
[ "MIT" ]
3
2021-12-24T19:39:53.000Z
2022-03-29T01:06:28.000Z
#Created by: Declan Quinn #May 2019 #To run tests: #In this file: [test_StandardAtmosphere.py] #In all files in the current directory: [python -m unittest discover] #Add [-v] for verbose output (displays names of all test functions) import unittest from MAPLEAF.Motion import ForceMomentSystem from MAPLEAF.Motion imp...
43.69697
153
0.694521
2,450
0.849515
0
0
0
0
0
0
597
0.207004
5ed76a1d4a9d801f30aced725248325dce473b59
2,349
py
Python
rebench/environment.py
tobega/ReBench
123a9187f74d32f93b823dd0c354244aecd7437e
[ "MIT" ]
null
null
null
rebench/environment.py
tobega/ReBench
123a9187f74d32f93b823dd0c354244aecd7437e
[ "MIT" ]
null
null
null
rebench/environment.py
tobega/ReBench
123a9187f74d32f93b823dd0c354244aecd7437e
[ "MIT" ]
null
null
null
import getpass import os import subprocess from cpuinfo import get_cpu_info from psutil import virtual_memory try: from urllib.parse import urlparse except ImportError: # Python 2.7 from urlparse import urlparse def _encode_str(out): as_string = out.decode('utf-8') if as_string and as_string[-1...
32.178082
83
0.611324
0
0
0
0
0
0
0
0
651
0.277139
5ed81a7d9ae972c6969d8b4ad2ed74cbe180da8e
1,138
py
Python
pipupgrade/cli/__init__.py
codingCoffee/pipupgrade
cdb2921fbe294afe9da5caf7cf07c222a3780acb
[ "MIT" ]
null
null
null
pipupgrade/cli/__init__.py
codingCoffee/pipupgrade
cdb2921fbe294afe9da5caf7cf07c222a3780acb
[ "MIT" ]
null
null
null
pipupgrade/cli/__init__.py
codingCoffee/pipupgrade
cdb2921fbe294afe9da5caf7cf07c222a3780acb
[ "MIT" ]
null
null
null
# imports - compatibility imports from __future__ import print_function from pipupgrade._compat import input # imports - standard imports import inspect # imports - module imports from pipupgrade.cli.parser import get_parsed_args from pipupgrade.util import get_if_empty, merge_dict _ACCEPTABLE_YES = ("", "y", ...
22.76
58
0.640598
0
0
0
0
0
0
0
0
200
0.175747
0d5987b219b64d6b388ff98a861c6bc4ea2a00e4
321
py
Python
csv_to_table/urls.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
csv_to_table/urls.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
csv_to_table/urls.py
KariSpace/CRM_Sedicomm
cb19e90ca99c7a50a1841afbfb878191f62dec5c
[ "MIT" ]
null
null
null
from . import views from django.contrib.auth import views as auth_views from django.urls import path urlpatterns = [ #Kari CSV_TO_TABLE Commit path('csv_upload/', views.csv_table, name='csv_table'), path('today/', views.today_table, name='today_table'), path('search/', views.search, name='search'), ...
26.75
59
0.71028
0
0
0
0
0
0
0
0
87
0.271028
0d5a30331837c0027e55c2d8e2c93ae9b5c82120
810
py
Python
tests/test_data_utils.py
claydodo/lineout
f3de9ac40c62c8231a63dbf64d91aa2aa299f9c6
[ "Unlicense" ]
null
null
null
tests/test_data_utils.py
claydodo/lineout
f3de9ac40c62c8231a63dbf64d91aa2aa299f9c6
[ "Unlicense" ]
null
null
null
tests/test_data_utils.py
claydodo/lineout
f3de9ac40c62c8231a63dbf64d91aa2aa299f9c6
[ "Unlicense" ]
null
null
null
from unittest import TestCase from src.lineout.data import * class TestDataUtils(TestCase): def test_get_result_list(self): sample_list = [{'id': 1, 'name': 'a'}, {'id': 2, 'name': 'b'}] paginated = { 'count': 2, 'previous': None, 'next': None, 'resu...
27.931034
71
0.57037
746
0.920988
0
0
0
0
0
0
87
0.107407
0d5ad59ba224418983bf8048ad6cf393b546dc31
738
py
Python
tests/core/sdo/tests.py
aceofwings/Cantactular
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
3
2017-01-26T01:37:42.000Z
2018-07-22T02:42:52.000Z
tests/core/sdo/tests.py
aceofwings/Cantactular
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
1
2017-07-07T18:02:20.000Z
2017-07-07T18:02:20.000Z
tests/core/sdo/tests.py
aceofwings/Evt-Gateway
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
null
null
null
# import unittest # import os # from gateway.can.sdo.message import SdoMessage # from gateway.can.sdo.message import CommandByte # class TestSdoMessage(unittest.TestCase): # def setUp(self): # self.sdoMessage = SdoMessage.getMessege(0x1018,0x01,0x00) # self.anotherMessage = SdoMessage.getMessege(0x2...
35.142857
77
0.650407
0
0
0
0
0
0
0
0
718
0.9729
0d5bea25696485b9e77b020b40679ffea0d8c825
6,295
py
Python
app/views/v2/scan_results.py
TLSInventory/backend
81e660e6c54168e0574636771f6425c9a6ed3599
[ "MIT" ]
1
2021-03-13T09:46:46.000Z
2021-03-13T09:46:46.000Z
app/views/v2/scan_results.py
TLSInventory/backend
81e660e6c54168e0574636771f6425c9a6ed3599
[ "MIT" ]
14
2020-09-20T10:00:24.000Z
2021-07-10T14:28:54.000Z
app/views/v2/scan_results.py
TLSInventory/backend
81e660e6c54168e0574636771f6425c9a6ed3599
[ "MIT" ]
2
2021-01-17T20:24:45.000Z
2021-01-24T12:03:51.000Z
from typing import List import app.views.v1.misc import app.db_models as db_models from . import bp from flask import request, jsonify from loguru import logger import flask_jwt_extended import app.db_schemas as db_schemas import app.utils.authentication_utils as authentication_utils import app.actions as actions ...
38.384146
147
0.727244
0
0
0
0
4,087
0.649245
0
0
1,191
0.189198
0d5bf4fc7b9f858d534dd913cfd8d7635732cd1a
3,305
py
Python
gameOfLife.py
andrewKv/pythonGraphicsPrograms
a24b3e56e729820f191fed58c2a01aa9b947a7b6
[ "MIT" ]
null
null
null
gameOfLife.py
andrewKv/pythonGraphicsPrograms
a24b3e56e729820f191fed58c2a01aa9b947a7b6
[ "MIT" ]
null
null
null
gameOfLife.py
andrewKv/pythonGraphicsPrograms
a24b3e56e729820f191fed58c2a01aa9b947a7b6
[ "MIT" ]
null
null
null
from Graphics import * CELL_SIZE = 20 ROWS, COLUMNS = 40, 40 class Cell: def __init__(self, pos): self.pos = pos self.alive = False self.flipNextGen = False def switch(self): self.alive = not self.alive def draw(self, win): r = Rectangle(Point(self.pos[0], self.pos[...
29.508929
111
0.500454
437
0.132224
0
0
0
0
0
0
469
0.141906
0d5c7cacb296792d24de984ae8cecf8793347e8c
679
py
Python
projecteuler/projectEuler69.py
qingfengxia/python-projecteuler
a2cba042fe7256364f6a5fa55df805a87da9a301
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
projecteuler/projectEuler69.py
qingfengxia/python-projecteuler
a2cba042fe7256364f6a5fa55df805a87da9a301
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
projecteuler/projectEuler69.py
qingfengxia/python-projecteuler
a2cba042fe7256364f6a5fa55df805a87da9a301
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals, absolute_import, division """ Find the value of n ≤ 1,000,000 for which n/φ(n) is a maximum. """ from factorization import primefactorize, totient def problem69(): """ in fact, it can be solved by print 2*3*5*7*11*13*17...
25.148148
103
0.569956
0
0
0
0
0
0
0
0
269
0.394428
0d5d262e5b19e0ba4bdabadc738b737c68da0c82
5,018
py
Python
games/pathfinder.py
wnormandin/resources
43be223b0c66e944985357a6d23891b551ac2937
[ "MIT" ]
null
null
null
games/pathfinder.py
wnormandin/resources
43be223b0c66e944985357a6d23891b551ac2937
[ "MIT" ]
null
null
null
games/pathfinder.py
wnormandin/resources
43be223b0c66e944985357a6d23891b551ac2937
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import collections import heapq class Queue: """ Basic queue implementation using collections.deque() """ def __init__(self): self.elements = collections.deque() def empty(self): """ Test if queue is empty """ return len(self.eleme...
27.571429
74
0.567955
4,927
0.981865
0
0
0
0
0
0
763
0.152053
0d5d3731a59994ba117b8a32c3775bfdf7b49b71
1,259
py
Python
7. Trees/binary_euler_tour.py
vivek28111992/data_structure_and_algorithm_in_python_practice
16cb3ba5d02049352b40482de647acaad4b3b44a
[ "MIT" ]
null
null
null
7. Trees/binary_euler_tour.py
vivek28111992/data_structure_and_algorithm_in_python_practice
16cb3ba5d02049352b40482de647acaad4b3b44a
[ "MIT" ]
null
null
null
7. Trees/binary_euler_tour.py
vivek28111992/data_structure_and_algorithm_in_python_practice
16cb3ba5d02049352b40482de647acaad4b3b44a
[ "MIT" ]
null
null
null
# Binary Euler Tour # A Binary Euler Tour base class providing a specialized tour for binary tree. from eulerTour import EulerTour class BinaryEulerTour(EulerTour): """Abstract base class for performing Euler tour of a binary tree. This version includes an additional _hook_invisit that is called after the to...
41.966667
164
0.625894
1,125
0.893566
0
0
0
0
0
0
541
0.429706
0d5d6ad9d06bd923dd1bb90a10f3405d61fda119
200
py
Python
wallet/admin.py
curanetwork/curwallet
fef5896a6d4b9f99c03d71ab0385655cdadf9a6e
[ "MIT" ]
5
2018-11-26T16:35:40.000Z
2019-01-14T02:35:47.000Z
wallet/admin.py
curanetwork/curwallet
fef5896a6d4b9f99c03d71ab0385655cdadf9a6e
[ "MIT" ]
null
null
null
wallet/admin.py
curanetwork/curwallet
fef5896a6d4b9f99c03d71ab0385655cdadf9a6e
[ "MIT" ]
null
null
null
from django.contrib import admin from base.conf import settings admin.site.site_title = f'{settings.ICO_TOKEN_NAME} Wallet' admin.site.site_header = f'{settings.ICO_TOKEN_NAME} Wallet Administration'
40
75
0.825
0
0
0
0
0
0
0
0
85
0.425
0d5d8e4687fb579fa2049d6dbbb448c87e9ea36b
462
py
Python
shoppinglist/models.py
christiankuhl/foodplanner
20c4a577849bf0ba9304f82f43c307552e846bf2
[ "MIT" ]
null
null
null
shoppinglist/models.py
christiankuhl/foodplanner
20c4a577849bf0ba9304f82f43c307552e846bf2
[ "MIT" ]
null
null
null
shoppinglist/models.py
christiankuhl/foodplanner
20c4a577849bf0ba9304f82f43c307552e846bf2
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Ingredient(models.Model): account = models.CharField(max_length=255) member = models.CharField(max_length=255) ref_meal = models.CharField(max_length=255,blank=True) ref_date = models.DateField(blank=True) ingredient ...
38.5
62
0.714286
404
0.874459
0
0
0
0
0
0
26
0.056277