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
e99385b476437e2b2258af182121e6b707636676
4,781
py
Python
lisa/base_tools/wget.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
48
2018-05-19T17:46:34.000Z
2020-09-28T21:09:06.000Z
lisa/base_tools/wget.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
1,261
2018-05-17T04:32:22.000Z
2020-11-23T17:29:13.000Z
lisa/base_tools/wget.py
anirudhrb/lisa
fe009802577c81e45ca2ff5a34d353878caa725d
[ "MIT" ]
133
2018-05-15T23:12:14.000Z
2020-11-13T10:37:49.000Z
import re from pathlib import PurePosixPath from typing import TYPE_CHECKING, Optional, Type from lisa.executable import Tool from lisa.tools.ls import Ls from lisa.tools.mkdir import Mkdir from lisa.tools.powershell import PowerShell from lisa.tools.rm import Rm from lisa.util import LisaException, is_valid_url if T...
31.453947
87
0.590253
4,401
0.919749
0
0
273
0.057053
0
0
1,158
0.242006
e995e4148b59ca5a7b4ba1e5e2c168dedb8fd4e8
1,787
py
Python
Datacamp Assignments/Data Engineer Track/2. Streamlined Data Ingestion with pandas/35_handle_deeply_nested_data.py
Ali-Parandeh/Data_Science_Playground
c529e9b3692381572de259e7c93938d6611d83da
[ "MIT" ]
null
null
null
Datacamp Assignments/Data Engineer Track/2. Streamlined Data Ingestion with pandas/35_handle_deeply_nested_data.py
Ali-Parandeh/Data_Science_Playground
c529e9b3692381572de259e7c93938d6611d83da
[ "MIT" ]
null
null
null
Datacamp Assignments/Data Engineer Track/2. Streamlined Data Ingestion with pandas/35_handle_deeply_nested_data.py
Ali-Parandeh/Data_Science_Playground
c529e9b3692381572de259e7c93938d6611d83da
[ "MIT" ]
1
2021-03-10T09:40:05.000Z
2021-03-10T09:40:05.000Z
# Load other business attributes and set meta prefix from pandas.io.json import json_normalize flat_cafes = json_normalize(data["businesses"], sep="_", record_path="categories", meta=['name', 'alias', ...
52.558824
154
0.493005
0
0
0
0
0
0
0
0
1,391
0.7784
e9960edde95bcaeefa3f37767c2580e46bec455b
2,310
py
Python
deprecated/obsolete/src/coverinst.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
90
2015-04-07T10:26:53.000Z
2022-03-07T15:14:57.000Z
deprecated/obsolete/src/coverinst.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
14
2015-10-13T16:25:59.000Z
2021-01-21T18:31:03.000Z
deprecated/obsolete/src/coverinst.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
32
2015-04-07T10:41:29.000Z
2022-02-26T05:17:28.000Z
import sys infn = sys.argv[1] outfn = infn.split(".py")[0]+"_INST.py" code = [] for l in open(infn): code.append(l) outf = open(outfn, 'w') outf.write("import covertool\n") ln = 0 inComment = False justEnded = False currentIndent = 0 lineIndent = 0 okChangeIndent = False skipNext = False doNotInstrument = ["cl...
25.666667
90
0.490909
0
0
0
0
0
0
0
0
327
0.141558
e997ebbde4fce0c730819b363c5adbce38d2664d
8,729
py
Python
actionkit_templates/settings.py
MoveOnOrg/actionkit-templates
2d06ad7634fac59e352d5cd8625f3092624d30e4
[ "Unlicense", "MIT" ]
8
2016-11-29T07:34:04.000Z
2021-06-09T18:09:25.000Z
actionkit_templates/settings.py
MoveOnOrg/actionkit-templates
2d06ad7634fac59e352d5cd8625f3092624d30e4
[ "Unlicense", "MIT" ]
12
2016-12-06T17:24:58.000Z
2022-02-21T20:11:47.000Z
actionkit_templates/settings.py
MoveOnOrg/actionkit-templates
2d06ad7634fac59e352d5cd8625f3092624d30e4
[ "Unlicense", "MIT" ]
4
2016-12-25T11:16:34.000Z
2020-02-11T18:48:26.000Z
import json import os import sys import time try: from urlparse import urlparse except ImportError: # python3 from urllib.parse import urlparse from django.conf.urls import url from django.conf.urls.static import static from django.http import HttpResponse, Http404 from django.shortcuts import render_to_re...
35.77459
112
0.643487
0
0
0
0
0
0
0
0
2,459
0.281705
e9a055a93eab839ab9a14c3a44071ae1537f4ac6
1,528
py
Python
fpga/test/fifo/fifo_tb.py
edge-analytics/fpga-sleep-tracker
50efd114500e134297be5229775a9ec6809abb53
[ "MIT" ]
2
2021-11-05T13:27:35.000Z
2022-03-12T04:44:03.000Z
fpga/test/fifo/fifo_tb.py
edge-analytics/fpga-sleep-tracker
50efd114500e134297be5229775a9ec6809abb53
[ "MIT" ]
null
null
null
fpga/test/fifo/fifo_tb.py
edge-analytics/fpga-sleep-tracker
50efd114500e134297be5229775a9ec6809abb53
[ "MIT" ]
null
null
null
import cocotb from cocotb.clock import Clock from cocotb.triggers import ClockCycles, RisingEdge, FallingEdge, NextTimeStep, ReadWrite N = 16 test_input = list(range(N)) async def writer(dut): for i in test_input: busy_check = lambda : not dut.ready_for_input.value while busy_check(): ...
28.296296
89
0.630236
0
0
0
0
396
0.259162
1,298
0.849476
153
0.100131
e9a05f45a351e31a1eadb205f7bd181f6ae63473
2,314
py
Python
Mock-exams/02-Mock-exam/notes/notes/app/views.py
M0673N/Python-Web-Basics
cecc27f7a12f990756edcc8885290eb3b2e487b7
[ "MIT" ]
null
null
null
Mock-exams/02-Mock-exam/notes/notes/app/views.py
M0673N/Python-Web-Basics
cecc27f7a12f990756edcc8885290eb3b2e487b7
[ "MIT" ]
null
null
null
Mock-exams/02-Mock-exam/notes/notes/app/views.py
M0673N/Python-Web-Basics
cecc27f7a12f990756edcc8885290eb3b2e487b7
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from notes.app.forms import ProfileForm, NoteForm, NoteDeleteForm from notes.app.models import Profile, Note def home(request): if request.method == 'GET': profile = Profile.objects.first() if not profile: form = ProfileForm() ...
29.291139
88
0.600259
0
0
0
0
0
0
0
0
308
0.133103
e9a09dff959ae1110da793fb71caa1d3736f73bf
3,066
py
Python
trainwiki.py
tomsonsgs/TRAN-MMA-master
91bf927c64a8d813ba60ae12e61e8f44830a82cc
[ "Apache-2.0" ]
null
null
null
trainwiki.py
tomsonsgs/TRAN-MMA-master
91bf927c64a8d813ba60ae12e61e8f44830a82cc
[ "Apache-2.0" ]
null
null
null
trainwiki.py
tomsonsgs/TRAN-MMA-master
91bf927c64a8d813ba60ae12e61e8f44830a82cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jul 2 00:56:18 2019 @author: tang """ seed=102 vocab="vocab.bin" train_file="train.bin" dropout=0.3 hidden_size=256 embed_size=100 action_embed_size=100 field_embed_size=32 type_embed_size=32 lr_decay=0.5 beam_size=5 patience=2 lstm='lstm' col_att='affine' model_name='wiki' ...
28.924528
63
0.689498
0
0
0
0
0
0
0
0
1,610
0.525114
e9a18b845016664a0d3350f6afe5c55f943340ff
3,476
py
Python
heritago/heritages/tests/tests_annotationdatamodel.py
SWE574-Groupago/heritago
ec7d279df667a4f2c3560dfac4b5b17046163a95
[ "MIT" ]
6
2017-02-13T10:22:18.000Z
2017-03-11T20:38:30.000Z
heritago/heritages/tests/tests_annotationdatamodel.py
SWE574-Groupago/heritago
ec7d279df667a4f2c3560dfac4b5b17046163a95
[ "MIT" ]
172
2017-02-12T21:07:27.000Z
2017-06-08T10:46:58.000Z
heritago/heritages/tests/tests_annotationdatamodel.py
SWE574-RenameMe/heritago
ec7d279df667a4f2c3560dfac4b5b17046163a95
[ "MIT" ]
17
2017-02-13T08:29:37.000Z
2017-06-29T14:43:53.000Z
import unittest from django.test import Client class AnnotationDataModelTests(unittest.TestCase): api_url_template = "/api/v1/heritages/#/annotations" xpath_annotation_response = "" heritage_path = "" api_url_set = "" @classmethod def setUpClass(cls): cls.heritage_path = "/api/v1/heri...
39.954023
116
0.561277
3,424
0.98504
0
0
2,324
0.668585
0
0
988
0.284235
e9a26fd47a49716298a92bfa1c231de0e135e9dd
824
py
Python
tests/test_main.py
cesarbruschetta/julio-cesar-decrypter
1f8b94b6370fb0a8bbfc1fa6b44adc9d69bf088c
[ "BSD-2-Clause" ]
null
null
null
tests/test_main.py
cesarbruschetta/julio-cesar-decrypter
1f8b94b6370fb0a8bbfc1fa6b44adc9d69bf088c
[ "BSD-2-Clause" ]
null
null
null
tests/test_main.py
cesarbruschetta/julio-cesar-decrypter
1f8b94b6370fb0a8bbfc1fa6b44adc9d69bf088c
[ "BSD-2-Clause" ]
null
null
null
import unittest from unittest.mock import patch from jc_decrypter.main import process, main class TestMainProcess(unittest.TestCase): @patch("jc_decrypter.main.decrypter") def test_arg_decrypter(self, mk_decrypter): process(["--token", "1234567890"]) mk_decrypter.assert_called_once_with("123...
27.466667
85
0.679612
725
0.879854
0
0
402
0.487864
0
0
145
0.175971
e9a341910fc41cf0116d2acf9b1914cdde30cec5
615
py
Python
library/tests/test_setup.py
pimoroni/mics6814-python
73c4f23d36c1f97dcdcb2d4ee08a52f6fedcda79
[ "MIT" ]
6
2021-05-16T05:02:57.000Z
2022-01-05T16:02:46.000Z
library/tests/test_setup.py
pimoroni/mics6814-python
73c4f23d36c1f97dcdcb2d4ee08a52f6fedcda79
[ "MIT" ]
3
2021-09-15T10:24:56.000Z
2022-01-24T21:16:05.000Z
library/tests/test_setup.py
pimoroni/mics6814-python
73c4f23d36c1f97dcdcb2d4ee08a52f6fedcda79
[ "MIT" ]
null
null
null
import mock def test_setup(ioexpander): from mics6814 import MICS6814 mics6814 = MICS6814() mics6814._ioe.set_pwm_period.assert_called_once_with(5100) mics6814._ioe.set_mode.assert_has_calls(( mock.call(3, ioexpander.PWM), mock.call(7, ioexpander.PWM), mock.call(2, ioexpander...
24.6
67
0.666667
0
0
0
0
0
0
0
0
0
0
e9a3a2aba365270bf90b9a6d7673d3d58bca51fe
3,290
py
Python
template_maker/data/documents.py
codeforamerica/template-maker
66d4744c123d5b868cf259e947dc924bb5a25c9a
[ "BSD-3-Clause" ]
9
2015-02-23T22:03:30.000Z
2020-01-31T19:06:50.000Z
template_maker/data/documents.py
codeforamerica/template-maker
66d4744c123d5b868cf259e947dc924bb5a25c9a
[ "BSD-3-Clause" ]
37
2015-03-01T01:10:22.000Z
2015-12-31T17:24:42.000Z
template_maker/data/documents.py
codeforamerica/template-maker
66d4744c123d5b868cf259e947dc924bb5a25c9a
[ "BSD-3-Clause" ]
2
2016-01-21T09:59:17.000Z
2021-04-16T10:51:04.000Z
import datetime from template_maker.database import db from template_maker.generator.models import DocumentBase, DocumentPlaceholder from template_maker.builder.models import TemplateBase, TemplatePlaceholders from template_maker.data.placeholders import get_template_placeholders def get_all_documents(): ''' R...
31.333333
90
0.730091
0
0
0
0
0
0
0
0
357
0.108511
e9a3a67be8807d04ec27501d70d8ad63e1c4fad0
1,194
py
Python
app/db.py
JuanDM93/fcc-fastapi-demo
7d20f91fa96989d22426632c1ab2550f62898789
[ "MIT" ]
null
null
null
app/db.py
JuanDM93/fcc-fastapi-demo
7d20f91fa96989d22426632c1ab2550f62898789
[ "MIT" ]
null
null
null
app/db.py
JuanDM93/fcc-fastapi-demo
7d20f91fa96989d22426632c1ab2550f62898789
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base from .config import settings SQLALCHEMY_DATABASE_URL = 'postgresql://{user}:{password}@{host}:{port}/{db}'.format( user=settings.DB_USER, password=settings.DB_PASSWORD, hos...
23.88
85
0.664154
0
0
95
0.079564
0
0
0
0
598
0.500838
e9a3b150e872655275d100c3ba1868368c2d52e0
716
py
Python
katph/spiders/stackoverflow_spider.py
trujunzhang/katph
b71b5a7171b133fcf087f77cd612c13a966ecd61
[ "MIT" ]
null
null
null
katph/spiders/stackoverflow_spider.py
trujunzhang/katph
b71b5a7171b133fcf087f77cd612c13a966ecd61
[ "MIT" ]
null
null
null
katph/spiders/stackoverflow_spider.py
trujunzhang/katph
b71b5a7171b133fcf087f77cd612c13a966ecd61
[ "MIT" ]
null
null
null
import scrapy from scrapy.selector import Selector from katph.items import StackItem class katphSpider(scrapy.Spider): name = "stackoverflow" allowed_domains = ["stackoverflow.com"] start_urls = [ "%s/questions?pagesize=50&sort=newest" % "http://stackoverflow.com", ] def parse(self, respo...
31.130435
76
0.603352
628
0.877095
416
0.581006
0
0
0
0
215
0.300279
e9a3c9a700552b660476506eef95bc2604a7a3bc
1,156
py
Python
migrations/0002_user_biography_user_gender_user_phone_number_and_more.py
sepydev/django-user
1a67caa197f9bb72ec41491cac1ae0a94385da87
[ "MIT" ]
1
2022-02-05T18:26:02.000Z
2022-02-05T18:26:02.000Z
migrations/0002_user_biography_user_gender_user_phone_number_and_more.py
mrprocs/django-user
1a67caa197f9bb72ec41491cac1ae0a94385da87
[ "MIT" ]
null
null
null
migrations/0002_user_biography_user_gender_user_phone_number_and_more.py
mrprocs/django-user
1a67caa197f9bb72ec41491cac1ae0a94385da87
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-02-07 17:53 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name...
33.028571
264
0.601211
1,033
0.893599
0
0
0
0
0
0
287
0.24827
e9a5f013db2d4eef22aa1809148db7e678473ae5
501
py
Python
utils/constants.py
tholiao/learning-morph-and-ctrl
6093cc7cede3b7ab2f3304d7060815712d535a2d
[ "MIT" ]
1
2022-03-10T08:17:18.000Z
2022-03-10T08:17:18.000Z
utils/constants.py
tholiao/learning-morph-and-ctrl
6093cc7cede3b7ab2f3304d7060815712d535a2d
[ "MIT" ]
null
null
null
utils/constants.py
tholiao/learning-morph-and-ctrl
6093cc7cede3b7ab2f3304d7060815712d535a2d
[ "MIT" ]
null
null
null
import numpy as np from walkers import ScalableWalker DEFAULT_SCENE = "scenes/walker.ttt" DEFAULT_WALKER = ScalableWalker N_MRPH_PARAMS = [3, 3, 6] N_CTRL_PARAMS = [4, 8, 8] MORPHOLOGY_BOUNDS = [ [[0.7] * 3, [1.4] * 3], [[0.7] * 3, [1.4] * 3], [[0.7] * 6, [1.4] * 6] ] CONTROLLER_BOUNDS = [ [[1, -np...
22.772727
73
0.493014
0
0
0
0
0
0
0
0
19
0.037924
e9a6214120a911400cce37d1a1a474426ab60fe5
1,284
py
Python
hardware/joystick.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
hardware/joystick.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
hardware/joystick.py
davidji/roundbot
2ca34a83c9feb3331f1b818106f06b3182c4970e
[ "Apache-2.0" ]
null
null
null
from solid import * from solid.utils import * import util from util import inch_to_mm, tube, ABIT, corners, pipe from fixings import M3 from math import tan, radians """ Sub-miniature analog joy-sticks. There's not much useful in documentation of their measurements. I'm going to treat it like a sphere with a 14mm ...
28.533333
114
0.696262
0
0
0
0
0
0
0
0
353
0.274922
e9a7d2f66b4f8dbaa2eb22e345ef51c2d6c7fe14
2,360
py
Python
src/Line.py
npanuhin/BIOCAD-BWA
50f56fd7d08b8ad1247934c902fb137f3c28cdf8
[ "MIT" ]
null
null
null
src/Line.py
npanuhin/BIOCAD-BWA
50f56fd7d08b8ad1247934c902fb137f3c28cdf8
[ "MIT" ]
null
null
null
src/Line.py
npanuhin/BIOCAD-BWA
50f56fd7d08b8ad1247934c902fb137f3c28cdf8
[ "MIT" ]
null
null
null
from typing import List from collections import deque class Line: """ Properties: start_x {0} start_y {1} end_x {2} end_y {3} dots = [dot1, ..., dotN] {4} coords = (start_x, start_y, end_x, end_y) """ def __init__(self, start_x=None, start_y=Non...
25.106383
84
0.555932
2,140
0.90678
0
0
432
0.183051
0
0
459
0.194492
e9a8550e13deee649e253f45b07fa459658b1f18
205
py
Python
hw_asr/model/__init__.py
ArturGoldman/ASR-HW
96494a7ce3f6661fbafb8077f15ece8c6e4b1a11
[ "MIT" ]
null
null
null
hw_asr/model/__init__.py
ArturGoldman/ASR-HW
96494a7ce3f6661fbafb8077f15ece8c6e4b1a11
[ "MIT" ]
null
null
null
hw_asr/model/__init__.py
ArturGoldman/ASR-HW
96494a7ce3f6661fbafb8077f15ece8c6e4b1a11
[ "MIT" ]
1
2021-10-29T18:46:14.000Z
2021-10-29T18:46:14.000Z
from hw_asr.model.baseline_model import BaselineModel, BasicLSTM, BasicGRU from hw_asr.model.QuartzNet import QuartzNet __all__ = [ "BaselineModel", "BasicLSTM", "BasicGRU", "QuartzNet" ]
20.5
74
0.731707
0
0
0
0
0
0
0
0
47
0.229268
e9ab3dbd3f61574c06a9441f006ee914a6d3064c
4,458
py
Python
Fishers LDA/fishersLDA.py
Exorust/Machine-Learning-Algorithms
c634fd0a1a49ea2574f0867b591ee8a2cd401fd2
[ "MIT" ]
null
null
null
Fishers LDA/fishersLDA.py
Exorust/Machine-Learning-Algorithms
c634fd0a1a49ea2574f0867b591ee8a2cd401fd2
[ "MIT" ]
null
null
null
Fishers LDA/fishersLDA.py
Exorust/Machine-Learning-Algorithms
c634fd0a1a49ea2574f0867b591ee8a2cd401fd2
[ "MIT" ]
null
null
null
'''********************************************** CODE TO IMPLEMENT FISHER'S LDA - Given two dimensional dataset with two classes 0 and 1, Perform Fisher's LDA on the dataset, Perform dimensionality reduction and find the suitable vector to project it onto, Find the threshold value for separation of the two classes **...
32.540146
104
0.685509
0
0
0
0
0
0
0
0
2,006
0.449574
e9ad668ebc54401a790054fd2f8bfe6c1d6a7c9b
3,071
py
Python
study/pytorch_study/14_dropout.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
2
2020-04-06T09:09:19.000Z
2020-07-24T03:59:55.000Z
study/pytorch_study/14_dropout.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
study/pytorch_study/14_dropout.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import torch n_input = 1 # n_hidden should be very big to make dropout's effect more clear n_hidden = 100 n_output = 1 EPOCH = 1000 LR = 0.01 torch.manual_seed(1) # reproducible N_SAMPLES = 20 # training data x = torch.unsqueeze(torch.linspace(-1, 1, N_SAMPLES), 1) y = x + 0.3 * torc...
32.326316
101
0.652231
0
0
0
0
0
0
0
0
500
0.160514
e9b1301b28dc40f613c5048548a9e3fd67d1e1a8
72,649
py
Python
harmonica/twiss.py
i-a-morozov/harmonica
546e664e59457ad9cc354d108402137e90e0d8c2
[ "MIT" ]
null
null
null
harmonica/twiss.py
i-a-morozov/harmonica
546e664e59457ad9cc354d108402137e90e0d8c2
[ "MIT" ]
null
null
null
harmonica/twiss.py
i-a-morozov/harmonica
546e664e59457ad9cc354d108402137e90e0d8c2
[ "MIT" ]
null
null
null
""" Twiss module. Compute twiss parameters from amplitude & phase data. Twiss filtering & processing. """ import numpy import torch import pandas from scipy import odr from .util import mod, generate_pairs, generate_other from .statistics import weighted_mean, weighted_variance from .statistics import median, biwei...
42.360933
357
0.595218
72,066
0.991975
0
0
5,986
0.082396
0
0
23,083
0.317733
e9b137261c2449a945a4fb05ca0369045630920a
879
py
Python
casbin/util/util.py
goodrain/pycasbin
1a481ba1af7619e1cc7e83896581d14976927d80
[ "Apache-2.0" ]
null
null
null
casbin/util/util.py
goodrain/pycasbin
1a481ba1af7619e1cc7e83896581d14976927d80
[ "Apache-2.0" ]
null
null
null
casbin/util/util.py
goodrain/pycasbin
1a481ba1af7619e1cc7e83896581d14976927d80
[ "Apache-2.0" ]
null
null
null
def escape_assertion(s): """escapes the dots in the assertion, because the expression evaluation doesn't support such variable names.""" s = s.replace("r.", "r_") s = s.replace("p.", "p_") return s def remove_comments(s): """removes the comments starting with # in the text.""" pos = s.find(...
20.44186
115
0.576792
0
0
0
0
0
0
0
0
362
0.411832
e9b3ab19d9a17d4244b5f5d4ce4ee01f10101503
399
py
Python
multiobj_rationale/fuseprop/__init__.py
binghong-ml/multiobj-rationale
735916854fba1886730ecac306dd509e930d67bd
[ "MIT" ]
1
2021-08-17T00:43:11.000Z
2021-08-17T00:43:11.000Z
multiobj_rationale/fuseprop/__init__.py
binghong-ml/multiobj-rationale
735916854fba1886730ecac306dd509e930d67bd
[ "MIT" ]
null
null
null
multiobj_rationale/fuseprop/__init__.py
binghong-ml/multiobj-rationale
735916854fba1886730ecac306dd509e930d67bd
[ "MIT" ]
1
2021-08-17T00:43:12.000Z
2021-08-17T00:43:12.000Z
from multiobj_rationale.fuseprop.mol_graph import MolGraph from multiobj_rationale.fuseprop.vocab import common_atom_vocab from multiobj_rationale.fuseprop.gnn import AtomVGNN from multiobj_rationale.fuseprop.dataset import * from multiobj_rationale.fuseprop.chemutils import find_clusters, random_subgraph, extract_subg...
66.5
172
0.892231
0
0
0
0
0
0
0
0
0
0
e9b44aa1e89f954d4739decd6c84438a72e8d03d
5,445
py
Python
thespian/test/test_troupe.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
null
null
null
thespian/test/test_troupe.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
null
null
null
thespian/test/test_troupe.py
dendron2000/Thespian
0acbc5a0803f6d2be3421ea6eb08c6beecbf3802
[ "MIT" ]
null
null
null
import time import datetime from thespian.test import * from thespian.actors import * from thespian.troupe import troupe max_listen_wait = datetime.timedelta(seconds=4) max_ask_wait = datetime.timedelta(seconds=2.5) class Bee(Actor): def receiveMessage(self, msg, sender): if isinstance(msg, tuple): ...
30.082873
77
0.617998
1,613
0.296235
0
0
1,816
0.333517
0
0
1,383
0.253994
e9b739710ac88a977ee95593a167d4e063e1ba18
1,197
py
Python
tools/upd.py
vladimirivanoviliev/amps-blog-web-grid-bake-off
25c24e1fbfc57df4e669487957dd440b338c7847
[ "MIT" ]
3
2017-10-21T01:37:03.000Z
2021-07-22T16:08:02.000Z
tools/upd.py
vladimirivanoviliev/amps-blog-web-grid-bake-off
25c24e1fbfc57df4e669487957dd440b338c7847
[ "MIT" ]
2
2020-01-15T22:50:18.000Z
2020-07-19T14:55:28.000Z
tools/upd.py
vladimirivanoviliev/amps-blog-web-grid-bake-off
25c24e1fbfc57df4e669487957dd440b338c7847
[ "MIT" ]
5
2020-01-27T13:52:04.000Z
2020-10-28T07:38:46.000Z
from AMPS import Client import random import time import json import sys def main(*args): publish_rate = None # publish as fast as possible by default try: publish_rate = int(args[0]) start = int(args[1]) end = int(args[2]) except Exception: pass # set up the client ...
23.94
65
0.548872
0
0
0
0
0
0
0
0
248
0.207185
e9b97dc8d0695130796496766449b39ed72da44e
8,299
py
Python
sdk/python/pulumi_aws/sns/platform_application.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/sns/platform_application.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/sns/platform_application.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime class PlatformApplication(pulumi.CustomResource): """ Provides an SNS platform application...
54.960265
384
0.719605
8,076
0.973129
0
0
0
0
0
0
3,689
0.444511
e9bbd39d6d8b86209c5aaf7a41e2a233bc9104f2
4,815
py
Python
functions/height.py
Hilvcha/PINGAN
0eb1435750c2ce3dc5de3a50d390aae044360fd5
[ "MIT" ]
7
2018-04-01T17:24:56.000Z
2021-06-07T09:39:52.000Z
functions/height.py
Hilvcha/PINGAN
0eb1435750c2ce3dc5de3a50d390aae044360fd5
[ "MIT" ]
5
2018-03-31T18:24:52.000Z
2019-10-09T16:27:49.000Z
functions/height.py
Hilvcha/PINGAN
0eb1435750c2ce3dc5de3a50d390aae044360fd5
[ "MIT" ]
2
2020-03-04T08:48:54.000Z
2021-06-07T09:39:51.000Z
# coding : utf-8 # created by wyj import numpy as np import pandas as pd import math from utils.feature_utils import df_empty # TERMINALNO,TIME,TRIP_ID,LONGITUDE,LATITUDE,DIRECTION,HEIGHT,SPEED,CALLSTATE,Y # 对传入的表按trip_id分组,取每组的海拔的最大连续子数组,对每个人的所有行程的子数组取最大,平均, 方差。 # def max_sub(arr): # sum = 0 # height = -999 ...
32.979452
117
0.586708
0
0
0
0
0
0
0
0
2,582
0.512607
e9bc10c08079eec1973b577a0d5e59f56835d97e
2,850
py
Python
live_cd_scripts/os_scanner.py
ForbiddenApplePy/applepy
4eb0965f7f634b0f340beee54dce09c12e3e4f54
[ "WTFPL" ]
null
null
null
live_cd_scripts/os_scanner.py
ForbiddenApplePy/applepy
4eb0965f7f634b0f340beee54dce09c12e3e4f54
[ "WTFPL" ]
null
null
null
live_cd_scripts/os_scanner.py
ForbiddenApplePy/applepy
4eb0965f7f634b0f340beee54dce09c12e3e4f54
[ "WTFPL" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import os import json import windows_utilman import pyAesCrypt import requests from secureCrypt import cryptResult os.system('loadkeys fr') os.system('lsblk > result.txt') if os.path.exists('/mnt/targetDrive'): pass else: os.system('mkdir /mnt/targetDrive') ...
29.6875
135
0.545614
0
0
0
0
0
0
0
0
1,021
0.356246
e9bd49e911285196dc03e66b536b44da7fb8a285
2,336
py
Python
app/views.py
taeram/idiocy
01acf569785f0294540a1b0214b8eccd81818b9c
[ "MIT" ]
null
null
null
app/views.py
taeram/idiocy
01acf569785f0294540a1b0214b8eccd81818b9c
[ "MIT" ]
1
2019-12-06T21:20:10.000Z
2019-12-06T21:20:11.000Z
app/views.py
taeram/idiocy
01acf569785f0294540a1b0214b8eccd81818b9c
[ "MIT" ]
null
null
null
from app import app import os from flask import abort, \ redirect, \ render_template, \ request, \ send_from_directory, \ url_for from .helpers import generate_code, \ is_valid_url, \ is_aut...
31.146667
119
0.550514
0
0
0
0
1,867
0.799229
0
0
298
0.127568
e9bd8c135bbdae40ce2ed51669ba9beb880235de
561
py
Python
typeidea/comment/adminx.py
LastDanceG/typeblog
fdd043546813866669c004bc8d8aedbfcfa326f2
[ "MIT" ]
1
2020-02-20T12:01:43.000Z
2020-02-20T12:01:43.000Z
typeidea/comment/adminx.py
LastDanceG/typeblog
fdd043546813866669c004bc8d8aedbfcfa326f2
[ "MIT" ]
2
2020-06-06T00:45:15.000Z
2021-06-10T22:35:31.000Z
typeidea/comment/adminx.py
LastDanceG/typeblog
fdd043546813866669c004bc8d8aedbfcfa326f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import xadmin from django.contrib import admin # from typeidea.custom_site import custom_site from typeidea.custom_admin import BaseOwnerAdmin from .models import Comment # Register your models here. class CommentAdmin(object): list_display = ['ta...
26.714286
86
0.750446
247
0.440285
0
0
0
0
0
0
183
0.326203
e9be790eafe58cf7aaa0017314b055dd2bdf4ea4
79
py
Python
core/devices/__init__.py
kisonho/torchmanager
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
[ "BSD-2-Clause" ]
null
null
null
core/devices/__init__.py
kisonho/torchmanager
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
[ "BSD-2-Clause" ]
null
null
null
core/devices/__init__.py
kisonho/torchmanager
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
[ "BSD-2-Clause" ]
null
null
null
from .devices import data_parallel, empty_cache, find, move_to_device, CPU, GPU
79
79
0.822785
0
0
0
0
0
0
0
0
0
0
e9bfd30a608b29439adc950385f985d929b086eb
1,443
py
Python
prepare_dataset/filter_ratio_and_warnings.py
Florian-Barthel/stylegan2
4ef87038bf9370596cf2b729e1d1a1bc3ebcddd8
[ "BSD-Source-Code" ]
null
null
null
prepare_dataset/filter_ratio_and_warnings.py
Florian-Barthel/stylegan2
4ef87038bf9370596cf2b729e1d1a1bc3ebcddd8
[ "BSD-Source-Code" ]
null
null
null
prepare_dataset/filter_ratio_and_warnings.py
Florian-Barthel/stylegan2
4ef87038bf9370596cf2b729e1d1a1bc3ebcddd8
[ "BSD-Source-Code" ]
null
null
null
from tqdm import tqdm import shutil import os from PIL import Image import warnings src_folder = '../../modified_datasets/cars_flat' dest_folder = '../../modified_datasets/cars_flat_ratio_warnings' if not os.path.exists(dest_folder): os.makedirs(dest_folder) num_kept = 0 num_removed = 0 num_corrupt_EXIF = 0 for...
31.369565
104
0.582121
0
0
0
0
0
0
0
0
237
0.164241
e9c1766ed44cd38de086fdbbfdce35e66d2ab6f5
2,548
py
Python
src/backend/apps/posts/utils.py
Vixx-X/ati-project
0ef80772a6fc3807e401cf58b9e15f3628373383
[ "MIT" ]
null
null
null
src/backend/apps/posts/utils.py
Vixx-X/ati-project
0ef80772a6fc3807e401cf58b9e15f3628373383
[ "MIT" ]
61
2021-06-10T03:27:06.000Z
2022-03-12T01:01:34.000Z
src/backend/apps/posts/utils.py
Vixx-X/ati-project
0ef80772a6fc3807e401cf58b9e15f3628373383
[ "MIT" ]
null
null
null
from mongoengine.queryset.visitor import Q from backend.apps.posts.models import Post from backend.apps.user.signals import check_comment_signal from backend.apps.user.utils import are_friends def _get_two_last_obj_with_path(path_list): size = len(path_list) if not size: raise Exception("path_list ca...
29.627907
76
0.654631
0
0
0
0
0
0
0
0
279
0.109498
e9c28c0a97751dccd5d3dc1b21e7750a3497a062
272
py
Python
src/globus_cli/commands/timer/__init__.py
globusonline/globus-cli
696857baafac198141edc3c1c29c72215f217df1
[ "Apache-2.0" ]
null
null
null
src/globus_cli/commands/timer/__init__.py
globusonline/globus-cli
696857baafac198141edc3c1c29c72215f217df1
[ "Apache-2.0" ]
1
2016-04-09T17:26:05.000Z
2016-04-11T16:13:50.000Z
src/globus_cli/commands/timer/__init__.py
globusonline/globus-cli
696857baafac198141edc3c1c29c72215f217df1
[ "Apache-2.0" ]
null
null
null
from globus_cli.parsing import group from .list import list_command from .show import show_command @group("timer") def timer_command(): """Schedule and manage jobs in Globus Timer""" timer_command.add_command(list_command) timer_command.add_command(show_command)
19.428571
50
0.794118
0
0
0
0
87
0.319853
0
0
53
0.194853
e9c3402cd5440828a3062f0ffd949c6878c6a821
5,340
py
Python
openslides_backend/action/actions/projector/toggle.py
ostcar/openslides-backend
e6ceac497c37a1e3e7f408c6cfb29cf21d985b4c
[ "MIT" ]
5
2020-01-20T13:57:15.000Z
2021-03-27T14:14:44.000Z
openslides_backend/action/actions/projector/toggle.py
ostcar/openslides-backend
e6ceac497c37a1e3e7f408c6cfb29cf21d985b4c
[ "MIT" ]
859
2020-01-11T22:58:37.000Z
2022-03-30T14:54:06.000Z
openslides_backend/action/actions/projector/toggle.py
ostcar/openslides-backend
e6ceac497c37a1e3e7f408c6cfb29cf21d985b4c
[ "MIT" ]
16
2020-01-04T20:28:57.000Z
2022-02-10T12:06:54.000Z
from typing import Any, Dict, List from ....models.models import Projection, Projector from ....permissions.permissions import Permissions from ....shared.filters import And, FilterOperator from ....shared.patterns import Collection, FullQualifiedId, string_to_fqid from ....shared.schema import required_id_schema from...
40.763359
88
0.548876
4,589
0.859363
2,492
0.466667
4,626
0.866292
0
0
727
0.136142
e9c3d07f73748d2980ffa18343832a605023692e
3,235
py
Python
sfftk_migrate/__init__.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
null
null
null
sfftk_migrate/__init__.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
2
2020-04-02T15:25:10.000Z
2020-04-03T14:32:12.000Z
sfftk_migrate/__init__.py
emdb-empiar/sfftk-migrate
fc8941082256456edb61fe22ecbf932f6258352a
[ "Apache-2.0" ]
null
null
null
""" sfftk-migrate ============== This is a simple tool to allow users to easily migrate older versions of EMDB-SFF files to the latest (supported version). It has only one dependency: `lxml` which effects part of the migrations. Presently it only works with XML (.sff) EMDB-SFF files. How does it work? --------------...
29.678899
127
0.678825
0
0
0
0
0
0
0
0
2,819
0.871406
e9c9d816a148fcaa90837526278207a3fb99ed20
802
py
Python
RTplzrunBlog/ThisandThat/1168.py
lkc263/Algorithm_Study_Python
5b9a74ecf7e864c861df2280a1bf4b393b0fcbca
[ "MIT" ]
null
null
null
RTplzrunBlog/ThisandThat/1168.py
lkc263/Algorithm_Study_Python
5b9a74ecf7e864c861df2280a1bf4b393b0fcbca
[ "MIT" ]
null
null
null
RTplzrunBlog/ThisandThat/1168.py
lkc263/Algorithm_Study_Python
5b9a74ecf7e864c861df2280a1bf4b393b0fcbca
[ "MIT" ]
null
null
null
from sys import stdin as s n, k = map(int, s.readline().split()) tree = [0] * 400005 def init(node, s, e): if s == e: tree[node] = 1 return tree[node] mid = (s + e) >> 1 tree[node] = init(2 * node, s, mid) + init(2 * node + 1, mid + 1, e) return tree[node] def query(node, s, e, k)...
19.095238
72
0.451372
0
0
0
0
0
0
0
0
22
0.027431
e9ca0883ad077b45b1ec76d740903d31001f2d85
609
py
Python
Python Advanced/File Handling/Exercise/directory_traversal.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
1
2022-03-16T10:23:04.000Z
2022-03-16T10:23:04.000Z
Python Advanced/Advanced/File Handling/Exercise/directory_traversal.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
Python Advanced/Advanced/File Handling/Exercise/directory_traversal.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
1
2021-12-04T12:30:57.000Z
2021-12-04T12:30:57.000Z
from os import listdir, path def traverse_dir(current_path, files_by_ext): for el in listdir(current_path): if path.isdir(path.join(current_path, el)): traverse_dir(path.join(current_path, el), files_by_ext) else: extension = el.split(".")[-1] if extension not i...
27.681818
67
0.619048
0
0
0
0
0
0
0
0
27
0.044335
e9cf0657e1bdcd66fa582464fcd1514ef88a229a
263
py
Python
server/api/serializers/letter.py
MePsyDuck/OAPS
ddbc69fbd11d1a02d37514d48f5dabe04cd23405
[ "MIT" ]
null
null
null
server/api/serializers/letter.py
MePsyDuck/OAPS
ddbc69fbd11d1a02d37514d48f5dabe04cd23405
[ "MIT" ]
null
null
null
server/api/serializers/letter.py
MePsyDuck/OAPS
ddbc69fbd11d1a02d37514d48f5dabe04cd23405
[ "MIT" ]
null
null
null
from rest_framework import serializers from api.models import Letter class LetterSerializer(serializers.ModelSerializer): class Meta: model = Letter fields = ('id', 'subject', 'body', 'created', 'modified', 'sender', 'receiver', 'remarks')
26.3
98
0.692015
190
0.722433
0
0
0
0
0
0
65
0.247148
e9d02a79d3683b498fff07cac5f4adf3cfd6b53d
356
py
Python
applications/admin.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
null
null
null
applications/admin.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
null
null
null
applications/admin.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Application, ApplicationGroup, ApplicationPeriod class ApplicationAdmin(admin.ModelAdmin): list_display = [ '__str__', ] admin.site.register(Application, ApplicationAdmin) admin.site.register(ApplicationGroup, ApplicationAdmin) admin.site.register(A...
29.666667
68
0.803371
87
0.244382
0
0
0
0
0
0
9
0.025281
e9d6bbb09e450702b15b4ceb0a5be3a4e585501e
7,237
py
Python
flink_rest_client/v1/jars.py
frego-dev/flink-rest-client
e63e3bc4e6ec73a1a86adb3bfbc011087a5248bd
[ "MIT" ]
null
null
null
flink_rest_client/v1/jars.py
frego-dev/flink-rest-client
e63e3bc4e6ec73a1a86adb3bfbc011087a5248bd
[ "MIT" ]
null
null
null
flink_rest_client/v1/jars.py
frego-dev/flink-rest-client
e63e3bc4e6ec73a1a86adb3bfbc011087a5248bd
[ "MIT" ]
null
null
null
import ntpath import os from flink_rest_client.common import _execute_rest_request, RestException class JarsClient: def __init__(self, prefix): """ Constructor. Parameters ---------- prefix: str REST API url prefix. It must contain the host, port pair. ...
30.92735
120
0.579107
7,135
0.985906
0
0
0
0
0
0
4,934
0.681774
e9d8b5a198128b03e1b20f916a54a13a506755fc
112,962
py
Python
earthy/wordlist.py
alvations/earthy
29a4e01050a5fd46a0ad49cd0aedfd25cd8ba787
[ "Apache-2.0" ]
6
2017-05-09T18:12:00.000Z
2017-12-22T16:26:35.000Z
earthy/wordlist.py
alvations/earthy
29a4e01050a5fd46a0ad49cd0aedfd25cd8ba787
[ "Apache-2.0" ]
1
2017-05-09T05:40:32.000Z
2017-05-09T05:40:32.000Z
earthy/wordlist.py
alvations/earthy
29a4e01050a5fd46a0ad49cd0aedfd25cd8ba787
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import string from charguana import get_charset punctuations = set(list(string.punctuation) + list(get_charset('Currency_Symbol')) + list(get_charset('Close_Punctuation')) + list(get_charset('Open_Punctuation')) + list(get_cha...
8,068.714286
112,534
0.63964
0
0
0
0
0
0
0
0
118,657
0.897937
e9da4c23e10982ade2cffc9ff31b496b0afdcefd
2,320
py
Python
kovalenko1.py
Maxim-Kovalenko/turtle-graphics-programms
768866f9b6658dc0933b0391387a6bdec64ad6ec
[ "Apache-2.0" ]
1
2020-04-14T08:31:24.000Z
2020-04-14T08:31:24.000Z
kovalenko1.py
Maxim-Kovalenko/turtle-graphics-programms
768866f9b6658dc0933b0391387a6bdec64ad6ec
[ "Apache-2.0" ]
null
null
null
kovalenko1.py
Maxim-Kovalenko/turtle-graphics-programms
768866f9b6658dc0933b0391387a6bdec64ad6ec
[ "Apache-2.0" ]
1
2021-01-05T15:47:59.000Z
2021-01-05T15:47:59.000Z
from turtle import * from random import * # from random import * def move(x, y): penup() goto(x, y) pendown() def fillpolygon(side, count, color1, color2): pencolor(color2) fillcolor(color1) begin_fill() for i in range(count): forward(side) left(360 / count...
21.886792
56
0.563793
0
0
0
0
0
0
0
0
419
0.180603
e9da66e1d85822aa027c49a94455e58540701de1
7,156
py
Python
iec/iec_lookup/tests/test_integration_services.py
divinedeveloper/iec-web-service
0d5e7a05356cc8d88372a559bd5df787d8dc1f75
[ "MIT" ]
null
null
null
iec/iec_lookup/tests/test_integration_services.py
divinedeveloper/iec-web-service
0d5e7a05356cc8d88372a559bd5df787d8dc1f75
[ "MIT" ]
null
null
null
iec/iec_lookup/tests/test_integration_services.py
divinedeveloper/iec-web-service
0d5e7a05356cc8d88372a559bd5df787d8dc1f75
[ "MIT" ]
null
null
null
from iec_lookup.services.iec_lookup_service import IECLookupService from iec_lookup.tests.fixtures import mongo_test_db_setup, importer_exporter_code_details_as_json, importer_exporter_code_details_as_object, dgft_succes_response_html_string, dgft_error_response_html_string, iec_table_section_list, basic_iec_details_as...
42.595238
279
0.827138
5,832
0.81498
0
0
5,909
0.825741
0
0
2,046
0.285914
e9db9333dcabf339b75e8e3dafb52fedc14104d7
9,713
py
Python
tests.py
klen/http-router
b571aed91200e9d57da4d2136d7e1a5312ef6c4e
[ "MIT" ]
11
2020-11-10T15:12:58.000Z
2022-01-24T13:14:53.000Z
tests.py
klen/http-router
b571aed91200e9d57da4d2136d7e1a5312ef6c4e
[ "MIT" ]
2
2021-05-01T13:59:14.000Z
2022-03-09T20:45:02.000Z
tests.py
klen/http-router
b571aed91200e9d57da4d2136d7e1a5312ef6c4e
[ "MIT" ]
null
null
null
"""HTTP Router tests.""" import inspect import typing as t from re import compile as re import pytest @pytest.fixture def router(): from http_router import Router, NotFound, MethodNotAllowed, RouterError # noqa return Router() def test_router_basic(router): assert router assert not router.trim_l...
25.901333
97
0.616596
356
0.036652
0
0
503
0.051786
0
0
2,124
0.218676
e9ded115d696296991152dc24cb65d091ffcff68
4,072
py
Python
venv/Lib/site-packages/tests/unit/driver/test_async_generic_driver.py
melihteke/ebook_study
4848ea42e37ee1d6ec777bfc33f49984653ace34
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tests/unit/driver/test_async_generic_driver.py
melihteke/ebook_study
4848ea42e37ee1d6ec777bfc33f49984653ace34
[ "MIT" ]
null
null
null
venv/Lib/site-packages/tests/unit/driver/test_async_generic_driver.py
melihteke/ebook_study
4848ea42e37ee1d6ec777bfc33f49984653ace34
[ "MIT" ]
null
null
null
from pathlib import Path import pytest import scrapli from scrapli.channel import Channel from scrapli.transport import Transport from ...test_data.unit_test_cases import TEST_CASES TEST_DATA_DIR = f"{Path(scrapli.__file__).parents[1]}/tests/test_data" def test_init(sync_generic_driver_conn): """Test that all...
42.416667
99
0.766208
0
0
0
0
3,520
0.86444
3,103
0.762033
1,087
0.266945
e9dfba4367dce3d55494d724918c8e7f5c9acb43
2,301
py
Python
tests/timesheet/test_regroup.py
simonbru/taxi
3940f520b6d61b5ac7c851c38dfd05da2f65b647
[ "WTFPL" ]
17
2016-02-02T14:10:49.000Z
2021-11-30T00:04:29.000Z
tests/timesheet/test_regroup.py
simonbru/taxi
3940f520b6d61b5ac7c851c38dfd05da2f65b647
[ "WTFPL" ]
70
2015-01-08T17:02:42.000Z
2021-09-21T20:08:07.000Z
tests/timesheet/test_regroup.py
simonbru/taxi
3940f520b6d61b5ac7c851c38dfd05da2f65b647
[ "WTFPL" ]
8
2015-08-23T12:50:36.000Z
2021-11-26T10:33:45.000Z
import datetime from . import create_timesheet def test_regroup_doesnt_regroup_entries_with_different_alias(): contents = """01.04.2013 foo 2 bar bar 2 bar""" t = create_timesheet(contents) entries = list(t.entries.filter(regroup=True).values())[0] assert len(entries) == 2 def test_regroup_doesnt_...
25.285714
78
0.694046
0
0
0
0
0
0
0
0
423
0.183833
e9e0012334031a979e4c8078a3fc972d1c90c1a0
5,192
py
Python
speaker/adam.py
shannon-jia/speaker
31c642f018725dd4878ef6a4e7a19b12b05774c8
[ "MIT" ]
null
null
null
speaker/adam.py
shannon-jia/speaker
31c642f018725dd4878ef6a4e7a19b12b05774c8
[ "MIT" ]
null
null
null
speaker/adam.py
shannon-jia/speaker
31c642f018725dd4878ef6a4e7a19b12b05774c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # _*_ coding: utf-8 _*_ import asyncio import logging import struct log = logging.getLogger(__name__) class TcpClientProtocol(asyncio.Protocol): def __init__(self, master): self.master = master def connection_made(self, transport): self.transport = transport ...
28.685083
72
0.548151
4,192
0.807396
0
0
0
0
742
0.142912
848
0.163328
e9e0f660874b7198857a18d3f6b0c75b556083fb
721
py
Python
forMySQL/countupgetpoints.py
ryosuke0503/DockerMySQL
c1f3a8e92623cdf0297cd6f721fb9d92046f4091
[ "MIT" ]
null
null
null
forMySQL/countupgetpoints.py
ryosuke0503/DockerMySQL
c1f3a8e92623cdf0297cd6f721fb9d92046f4091
[ "MIT" ]
null
null
null
forMySQL/countupgetpoints.py
ryosuke0503/DockerMySQL
c1f3a8e92623cdf0297cd6f721fb9d92046f4091
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import mysql.connector import pandas as pd import sys #tablename = str(sys.argv[1]) csvname = "result1232.csv" #総得点を出したいチーム名 target = str(sys.argv[1]) # 接続する conn = mysql.connector.connect( host="localhost", database="toto", user="root", password="root" ) print("connection:...
22.53125
111
0.660194
0
0
0
0
0
0
0
0
356
0.461738
e9e13d802219234f0d6ee29b93ebb1c9e6c8a66a
629
py
Python
tests/core/test_annotations.py
penguinmenac3/leanai
6d26575b248ff03c4a24009cd82f26ea99d96d15
[ "MIT" ]
1
2021-03-28T21:32:59.000Z
2021-03-28T21:32:59.000Z
tests/core/test_annotations.py
penguinmenac3/leanai
6d26575b248ff03c4a24009cd82f26ea99d96d15
[ "MIT" ]
null
null
null
tests/core/test_annotations.py
penguinmenac3/leanai
6d26575b248ff03c4a24009cd82f26ea99d96d15
[ "MIT" ]
null
null
null
import unittest from leanai.core.annotations import RunOnlyOnce class TestAnnotations(unittest.TestCase): def setUp(self) -> None: self.var = 0 def runner(self): return self.var @RunOnlyOnce def run_once(self): return self.var def test_output(self): self.var = 1 ...
21.689655
50
0.616852
514
0.81717
0
0
60
0.09539
0
0
10
0.015898
756552474094f48324d4b90b89114e9f83580b79
1,971
py
Python
pyext/professor2/__init__.py
iamholger/professor
25753a19de0dbbd2db0eb80cedc87adc017459a1
[ "MIT" ]
2
2016-12-01T13:08:45.000Z
2017-01-09T05:36:44.000Z
pyext/professor2/__init__.py
iamholger/professor
25753a19de0dbbd2db0eb80cedc87adc017459a1
[ "MIT" ]
null
null
null
pyext/professor2/__init__.py
iamholger/professor
25753a19de0dbbd2db0eb80cedc87adc017459a1
[ "MIT" ]
null
null
null
import sys pyversion = sys.version_info if sys.version_info[0] < 2 or (sys.version_info[0] == 2 and sys.version_info[1] < 7): raise Exception("Professor2 requires Python 2.7 or greater") ## Import Cython wrappings on the C++ core library from professor2.core import * __version__ = version() from professor2.errors...
33.40678
119
0.620497
0
0
0
0
0
0
0
0
1,170
0.593607
7567342e6e2ce849445abb8610ff24fc2aab8a0f
558
py
Python
stack/lambdas/rekopoc-check-status/lambda_function.py
anapt/rekognition-video-people-blurring-cdk
ce1a57178bcd81a17d7f287ff4ccf2be6aae93b2
[ "MIT-0" ]
9
2021-10-01T08:21:03.000Z
2022-03-02T14:34:16.000Z
stack/lambdas/rekopoc-check-status/lambda_function.py
anapt/rekognition-video-people-blurring-cdk
ce1a57178bcd81a17d7f287ff4ccf2be6aae93b2
[ "MIT-0" ]
null
null
null
stack/lambdas/rekopoc-check-status/lambda_function.py
anapt/rekognition-video-people-blurring-cdk
ce1a57178bcd81a17d7f287ff4ccf2be6aae93b2
[ "MIT-0" ]
3
2021-10-01T08:33:32.000Z
2022-02-02T22:40:48.000Z
import boto3 reko = boto3.client('rekognition') s3 = boto3.client('s3') def lambda_handler(event, context): job_id = event['job_id'] reko_client = boto3.client('rekognition') response = reko_client.get_face_detection(JobId=job_id, MaxResults=100) return { "statusCode": 200, "body": ...
26.571429
75
0.577061
0
0
0
0
0
0
0
0
153
0.274194
756844e5d69bfb4f7a881cf7182f56ff34c5aee1
201
py
Python
tests/manualThreadTests.py
velexio/pyLegos
64d3622f2b6d78a02b171e0438a0224a951d2644
[ "MIT" ]
null
null
null
tests/manualThreadTests.py
velexio/pyLegos
64d3622f2b6d78a02b171e0438a0224a951d2644
[ "MIT" ]
2
2016-11-23T00:36:34.000Z
2016-11-23T00:39:08.000Z
tests/manualThreadTests.py
velexio/pyLegos
64d3622f2b6d78a02b171e0438a0224a951d2644
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time from pylegos.core import Thread def worker(sleepSec): time.sleep(sleepSec) t = Thread() t.runAndWait(threadName='test', runFunc=worker(10)) print('finished')
14.357143
51
0.726368
0
0
0
0
0
0
0
0
37
0.18408
756a6183aee4660b960c432b4510670a699bf9cb
1,314
py
Python
hazelcast/protocol/codec/count_down_latch_await_codec.py
tonytheonlypony/hazelcast-python-client
3aafeaf2ebc05aee4f2386c62c079db496a7c81f
[ "Apache-2.0" ]
98
2015-12-08T14:26:27.000Z
2022-03-23T17:44:11.000Z
hazelcast/protocol/codec/count_down_latch_await_codec.py
tonytheonlypony/hazelcast-python-client
3aafeaf2ebc05aee4f2386c62c079db496a7c81f
[ "Apache-2.0" ]
396
2016-02-23T11:07:55.000Z
2022-03-31T14:26:34.000Z
hazelcast/protocol/codec/count_down_latch_await_codec.py
tonytheonlypony/hazelcast-python-client
3aafeaf2ebc05aee4f2386c62c079db496a7c81f
[ "Apache-2.0" ]
62
2015-12-09T11:20:53.000Z
2022-01-28T01:30:54.000Z
from hazelcast.serialization.bits import * from hazelcast.protocol.builtin import FixSizedTypesCodec from hazelcast.protocol.client_message import OutboundMessage, REQUEST_HEADER_SIZE, create_initial_buffer, RESPONSE_HEADER_SIZE from hazelcast.protocol.codec.custom.raft_group_id_codec import RaftGroupIdCodec from hazel...
43.8
127
0.853881
0
0
0
0
0
0
0
0
30
0.022831
756b0adc0964779163796787d2e6398c5eb4706e
980
py
Python
LeetCode/088 Merge Sorted Array.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/088 Merge Sorted Array.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
LeetCode/088 Merge Sorted Array.py
gesuwen/Algorithms
0c9cf4412d76f8b69ef68cc80636323f5a0e5786
[ "MIT" ]
null
null
null
# Array; Two Pointers # Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. # # Note: # # The number of elements initialized in nums1 and nums2 are m and n respectively. # You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional ele...
28.823529
125
0.533673
531
0.541837
0
0
0
0
0
0
628
0.640816
756bf0598578d01db0afb38f8bafb682754f2e0c
1,007
py
Python
caf_verilog/test/test_capture_buffer.py
chiranthsiddappa/caf_verilog
cd3cfd00459dc03518fcce53d5d6ac5194fb2adc
[ "MIT" ]
1
2019-06-04T22:05:12.000Z
2019-06-04T22:05:12.000Z
caf_verilog/test/test_capture_buffer.py
chiranthsiddappa/caf_verilog
cd3cfd00459dc03518fcce53d5d6ac5194fb2adc
[ "MIT" ]
6
2019-04-17T17:21:42.000Z
2019-09-11T16:15:28.000Z
caf_verilog/test/test_capture_buffer.py
chiranthsiddappa/caf_verilog
cd3cfd00459dc03518fcce53d5d6ac5194fb2adc
[ "MIT" ]
null
null
null
from unittest import TestCase from .. import capture_buffer as capt_buff from tempfile import mkdtemp import os class TestCaptureBuffer(TestCase): def test_capture_buffer(self): """ Test that the files are written out for instantiation and testbench. :return: """ tmpdir = ...
31.46875
93
0.637537
892
0.885799
0
0
0
0
0
0
294
0.291956
756c7eea74e1f5249521b52dff9a4f1dfed719d3
933
py
Python
db_to_excel.py
jfernandez04/fromdb_to_excel
f06bfbd83825f887afc814706dc6c34e6ba44f17
[ "Apache-2.0" ]
null
null
null
db_to_excel.py
jfernandez04/fromdb_to_excel
f06bfbd83825f887afc814706dc6c34e6ba44f17
[ "Apache-2.0" ]
3
2018-02-21T20:25:32.000Z
2018-02-23T18:25:44.000Z
db_to_excel.py
jfernandez04/fromdb_to_excel
f06bfbd83825f887afc814706dc6c34e6ba44f17
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import mysql.connector import xlsxwriter from query import q, table,columns from letters import letters import string import json import os dir_path = os.path.dirname(os.path.realpath(__file__)) with open(dir_path + '/config.json', "r") as json_data_file: conf = json.load(json_data_file) conn = my...
21.697674
62
0.681672
0
0
0
0
0
0
0
0
91
0.097535
756f24ba8abf0f406f6c9f0a863f8c02bdb32b06
1,317
py
Python
setup.py
tyler-a-cox/radio_sim
e54891905597578e2be6a9e6a9a201ba1cbd603c
[ "BSD-2-Clause" ]
null
null
null
setup.py
tyler-a-cox/radio_sim
e54891905597578e2be6a9e6a9a201ba1cbd603c
[ "BSD-2-Clause" ]
2
2021-06-22T19:31:52.000Z
2021-07-14T21:33:01.000Z
setup.py
tyler-a-cox/radio_sim
e54891905597578e2be6a9e6a9a201ba1cbd603c
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup import os import sys import json sys.path.append("radio_sim") def package_files(package_dir, subdirectory): # walk the input package_dir/subdirectory # return a package_data list paths = [] directory = os.path.join(package_dir, subdirectory) for (path, directories, f...
23.945455
77
0.603645
0
0
0
0
0
0
0
0
529
0.40167
756fb9d469af8300eef5fa58dfbcbd277e34d405
1,959
py
Python
oremda/pipeline/engine/__init__.py
OpenChemistry/oremda
3fb4cb8318713b87ecd7999ee2b725da745dd023
[ "BSD-3-Clause" ]
11
2021-09-01T23:10:51.000Z
2022-03-20T07:39:37.000Z
oremda/pipeline/engine/__init__.py
OpenChemistry/oremda
3fb4cb8318713b87ecd7999ee2b725da745dd023
[ "BSD-3-Clause" ]
22
2021-05-18T14:10:27.000Z
2021-10-04T15:06:27.000Z
oremda/pipeline/engine/__init__.py
OpenChemistry/oremda
3fb4cb8318713b87ecd7999ee2b725da745dd023
[ "BSD-3-Clause" ]
2
2021-09-01T22:11:13.000Z
2021-10-30T09:12:36.000Z
import asyncio import logging import sys import coloredlogs import signal from oremda.typing import ContainerType from oremda.clients.singularity import SingularityClient from oremda.pipeline.engine.rpc.client import RpcClient from oremda.pipeline.engine.context import pipeline_context from oremda.pipeline.engine.conf...
29.681818
79
0.720265
0
0
0
0
0
0
920
0.469627
323
0.16488
7570df54465fd5d936a3ab3554540e61e267bf96
2,369
py
Python
main.py
RareDrops/discord-emote-script
bc1f4892fd4294449b2340a51b276e4ebb3b37e6
[ "MIT" ]
null
null
null
main.py
RareDrops/discord-emote-script
bc1f4892fd4294449b2340a51b276e4ebb3b37e6
[ "MIT" ]
null
null
null
main.py
RareDrops/discord-emote-script
bc1f4892fd4294449b2340a51b276e4ebb3b37e6
[ "MIT" ]
null
null
null
from pynput import keyboard from pynput.keyboard import Key, Controller from os.path import exists import win32clipboard import os from PIL import Image from pystray import Icon as icon, Menu, MenuItem as item import pystray RECORDING = False WORD = "" keyboard_press = Controller() def send_to_clipboard(...
29.987342
123
0.61545
0
0
0
0
0
0
0
0
334
0.140988
7571df3479e0827912764d9107db9cc7c8bfd97c
27,986
py
Python
moloch_connector.py
splunk-soar-connectors/moloch
d1956ee500b2c3f3882f3512366ae480270e89f8
[ "Apache-2.0" ]
1
2022-02-13T19:18:41.000Z
2022-02-13T19:18:41.000Z
moloch_connector.py
splunk-soar-connectors/moloch
d1956ee500b2c3f3882f3512366ae480270e89f8
[ "Apache-2.0" ]
2
2021-12-09T01:35:35.000Z
2022-02-24T20:04:27.000Z
moloch_connector.py
splunk-soar-connectors/moloch
d1956ee500b2c3f3882f3512366ae480270e89f8
[ "Apache-2.0" ]
null
null
null
# File: moloch_connector.py # # Copyright (c) 2019-2022 Splunk Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
41.460741
134
0.643393
24,669
0.881476
0
0
0
0
0
0
8,966
0.320374
7574fa5420556c5e1887475cd923bc9a0ffab1f4
2,600
py
Python
testing/python-image-upload/upload.py
pkalauner-tuwien/polyglot-and-ambiguous-files
109eb7d5533de4a053841313e7c14918f9cd9df0
[ "MIT" ]
null
null
null
testing/python-image-upload/upload.py
pkalauner-tuwien/polyglot-and-ambiguous-files
109eb7d5533de4a053841313e7c14918f9cd9df0
[ "MIT" ]
1
2021-03-23T20:13:21.000Z
2021-03-23T20:13:21.000Z
testing/python-image-upload/upload.py
pkalauner-tuwien/polyglot-and-ambiguous-files
109eb7d5533de4a053841313e7c14918f9cd9df0
[ "MIT" ]
null
null
null
from flask import * from flask_csp.csp import csp_header, csp_default import imghdr import os import hashlib import subprocess app = Flask(__name__) app.config["UPLOAD_DIRECTORY"] = 'uploads' app.config["ALLOWED_EXTENSIONS"] = ["jpg", "jpeg", "png", "gif"] # Remove report-uri from default CSP header h = csp_default(...
34.666667
145
0.687308
0
0
0
0
1,863
0.716538
0
0
1,061
0.408077
7577e2f7df5f804c676013417ab035ff063a393c
8,767
py
Python
test.py
AllenChen1998/RAD
9778e2576e427a26b2181561648f82162237a7dd
[ "MIT" ]
1
2021-08-05T04:08:15.000Z
2021-08-05T04:08:15.000Z
test.py
AllenChen1998/RAD
9778e2576e427a26b2181561648f82162237a7dd
[ "MIT" ]
null
null
null
test.py
AllenChen1998/RAD
9778e2576e427a26b2181561648f82162237a7dd
[ "MIT" ]
null
null
null
import os import cv2 import json import time import shutil import argparse import numpy as np import PIL.Image from copy import deepcopy import mmcv from mmdet.apis import init_detector, inference_detector, show_result # install mmdet v1 in https://github.com/open-mmlab/mmdetection # download correspongdi...
50.97093
196
0.677883
0
0
0
0
0
0
0
0
2,858
0.325995
7578054f5e5fa0cd2bf6c67b5dfd6c6a49acba24
563
py
Python
posts/migrations/0002_auto_20181129_2311.py
ddeveloper72/Dhjango-Blog
8f9771a149a944e32aa192de97ab69092a1492d2
[ "CC-BY-3.0" ]
null
null
null
posts/migrations/0002_auto_20181129_2311.py
ddeveloper72/Dhjango-Blog
8f9771a149a944e32aa192de97ab69092a1492d2
[ "CC-BY-3.0" ]
null
null
null
posts/migrations/0002_auto_20181129_2311.py
ddeveloper72/Dhjango-Blog
8f9771a149a944e32aa192de97ab69092a1492d2
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2018-11-29 23:11 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0001_initial'), ] operations = [ migrations.RenameField( mode...
21.653846
49
0.57016
412
0.731794
0
0
0
0
0
0
150
0.26643
757912d9e4012e01b625eaf478b57827dc9d6ad6
415
py
Python
la/oblas/data/dgeev01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
1,811
2015-05-21T12:47:27.000Z
2022-03-24T04:48:00.000Z
la/oblas/data/dgeev01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
42
2016-09-29T05:23:28.000Z
2021-10-30T03:12:00.000Z
la/oblas/data/dgeev01.py
wtsia/gosl
8302f76dfe76d24ea5026b225bdad234383dacf9
[ "BSD-3-Clause" ]
171
2015-07-14T07:50:35.000Z
2022-03-09T10:04:15.000Z
import numpy as np import scipy.linalg as la from auxiliary import * a = np.matrix([ [+0.35, +0.45, -0.14, -0.17], [+0.09, +0.07, -0.54, +0.35], [-0.44, -0.33, -0.03, +0.17], [+0.25, -0.32, -0.13, +0.11], ], dtype=float) w, vl, vr = la.eig(a, left=True, right=True) vprintC('w', w) print for i in ran...
18.043478
44
0.53253
0
0
0
0
0
0
0
0
15
0.036145
757aed5f2d7b170e9c0c6e816158ab521912f796
9,969
py
Python
source/menus/menus.py
HugoPFe/Project-Asteroids
7a58ba00283216e83f02b2f58cf1944e9e217433
[ "MIT" ]
null
null
null
source/menus/menus.py
HugoPFe/Project-Asteroids
7a58ba00283216e83f02b2f58cf1944e9e217433
[ "MIT" ]
4
2021-06-20T21:32:53.000Z
2021-08-12T11:12:17.000Z
source/menus/menus.py
HugoPFe/Project-Asteroids
7a58ba00283216e83f02b2f58cf1944e9e217433
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from util import * from constants import FPS, VERSION, SCREEN_WIDTH, SCREEN_HEIGHT from ui.button import * from ui.font import * from media.paths import bg, logo, body_font, title_font class Main: def __init__(self): """ It's the abstract class for all sc...
34.856643
104
0.51921
9,668
0.969515
0
0
482
0.048335
0
0
1,264
0.126755
757b44c079d1af1e49497f1e9f96873e80ae2cd3
15,155
py
Python
Cursos/treina_web.py
FranciscoAlveJr/Bot_Telegram
9960485a4a25648719ef6fafcb3b02c82db79253
[ "MIT" ]
null
null
null
Cursos/treina_web.py
FranciscoAlveJr/Bot_Telegram
9960485a4a25648719ef6fafcb3b02c82db79253
[ "MIT" ]
null
null
null
Cursos/treina_web.py
FranciscoAlveJr/Bot_Telegram
9960485a4a25648719ef6fafcb3b02c82db79253
[ "MIT" ]
null
null
null
import requests import json import os from bs4 import BeautifulSoup as bs import random import time import base64 import m3u8 treinaweb_sessions = requests.Session() class Downloader(): def index(self): escolha = input('Qual plataforma voce deseja baixar?\n1 - TreinaWeb\n2 - AvMakers\n3 - Freelae\nRe...
37.512376
234
0.512966
14,968
0.98701
0
0
0
0
0
0
4,764
0.314144
757c4a2be3e6e27c73b14c6ddc8062d7cb6e67ce
10,724
py
Python
A037274/simple.py
sethtroisi/OEIS
2c10b86d8a8be69aa8020623d4802e3d68772ede
[ "Apache-2.0" ]
3
2019-05-25T23:08:48.000Z
2021-12-11T03:59:42.000Z
A037274/simple.py
sethtroisi/OEIS
2c10b86d8a8be69aa8020623d4802e3d68772ede
[ "Apache-2.0" ]
1
2019-03-07T21:22:52.000Z
2019-03-07T21:22:52.000Z
A037274/simple.py
sethtroisi/OEIS
2c10b86d8a8be69aa8020623d4802e3d68772ede
[ "Apache-2.0" ]
1
2021-04-29T06:35:07.000Z
2021-04-29T06:35:07.000Z
import gmpy2 import itertools import subprocess import math import time from collections import defaultdict from factordb.factordb import FactorDB START = 2 STOP = 5000 # Also see A056938 def product(factors): temp = 1 for factor in factors: temp *= factor return temp def factordb_format(number): ...
26.743142
98
0.563129
0
0
0
0
0
0
0
0
2,007
0.18715
757deb3edec28d6288b4d6073331b4f58c9cf7f2
14,541
py
Python
system/scripts/coordinator/strategies.py
maxvonhippel/snake
0805773dc34e1480dffaae40174aa1f82d1c6ce8
[ "BSD-3-Clause" ]
11
2015-11-24T11:07:28.000Z
2021-12-23T04:10:29.000Z
system/scripts/coordinator/strategies.py
maxvonhippel/snake
0805773dc34e1480dffaae40174aa1f82d1c6ce8
[ "BSD-3-Clause" ]
null
null
null
system/scripts/coordinator/strategies.py
maxvonhippel/snake
0805773dc34e1480dffaae40174aa1f82d1c6ce8
[ "BSD-3-Clause" ]
6
2016-03-01T06:32:21.000Z
2022-03-24T19:31:41.000Z
#Samuel Jero <sjero@purdue.edu> #vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 import os import sys import time from datetime import datetime import re import pprint from types import NoneType import ast import manipulations import fields system_home = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0...
45.726415
231
0.510213
14,202
0.976687
0
0
0
0
0
0
2,846
0.195722
757f3810745dc98b37ec435828ecf0e2aaa534d5
1,212
py
Python
app/file2mysql.py
ToHanwei/CORD
09f75b136431222ec945b2ddd6798ae805ec332e
[ "MIT" ]
null
null
null
app/file2mysql.py
ToHanwei/CORD
09f75b136431222ec945b2ddd6798ae805ec332e
[ "MIT" ]
null
null
null
app/file2mysql.py
ToHanwei/CORD
09f75b136431222ec945b2ddd6798ae805ec332e
[ "MIT" ]
null
null
null
#!coding:utf-8 import os import sys import pymysql def connetc2mysql(): try: conn = pymysql.connect( host = '10.15.50.100', port = 3306, user= 'root', password = 'Zhaolab@C809!!', db = 'CORdbPro', charset = 'utf8', use_unicode=True) except Exception as e: print(e) else: print("connect s...
19.548387
73
0.660066
0
0
0
0
0
0
0
0
291
0.240099
757fe53371e91dc422879bc5ad40243b0d086700
2,478
py
Python
start_simple_test.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
start_simple_test.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
start_simple_test.py
rartino/python-optimade-server
84457091c7ec0db52a7e034bb6a7cd4bcbdd4e57
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2019 Rickard Armiento # # This file is part of a Python candidate reference implementation of # the optimade API [https://www.optimade.org/] # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "...
34.901408
99
0.726796
0
0
0
0
0
0
0
0
1,691
0.682405
7581ce931238117bdcd49cbe392056bdbbeb384d
2,609
py
Python
examples/deep_dream.py
vacancy/LibNeuralArt
fb7696877ac2bf08e1e4e46caec9ccd14ce4797c
[ "MIT" ]
1
2022-03-09T14:38:01.000Z
2022-03-09T14:38:01.000Z
examples/deep_dream.py
vacancy/LibNeuralArt
fb7696877ac2bf08e1e4e46caec9ccd14ce4797c
[ "MIT" ]
null
null
null
examples/deep_dream.py
vacancy/LibNeuralArt
fb7696877ac2bf08e1e4e46caec9ccd14ce4797c
[ "MIT" ]
null
null
null
import os import argparse import cv2 import numpy as np import tensorflow as tf from nart import opr, aopr from nart.model import VGG16 from nart.logconf import logger LEARNING_RATE = 1.5 JITTER = 32 as_netin = lambda x: x[np.newaxis, :] def make_step(sess, net, end): ''' iter only one step, providing end ''' ...
33.448718
110
0.651974
0
0
0
0
0
0
0
0
723
0.277118
75822d824753f70d530800d691025e523bb8dcb9
1,079
py
Python
5.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
5.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
5.py
niharikasingh/aoc2018
21d430d393321e6066eca22d7c6b49e5eb42d756
[ "MIT" ]
null
null
null
import re text = '' with open('5input1.txt', 'r') as ifile: text = ifile.read().strip() def find_length(text): text = list(text) t0 = '' t1 = '' restart = True while (restart): restart = False loop = len(text) - 1 i = 0 # print(text) while (i < loop): ...
25.690476
57
0.489342
0
0
0
0
0
0
0
0
209
0.193698
758282c4a758ece35ff671a6c5cb62d706708b74
2,903
py
Python
game/tests/node_test.py
madvid/42_Gomoku
e57ac625d977d874dc5791e5455d7c145669c6d8
[ "MIT" ]
null
null
null
game/tests/node_test.py
madvid/42_Gomoku
e57ac625d977d874dc5791e5455d7c145669c6d8
[ "MIT" ]
null
null
null
game/tests/node_test.py
madvid/42_Gomoku
e57ac625d977d874dc5791e5455d7c145669c6d8
[ "MIT" ]
null
null
null
from board import Node from metrics import * parent = Node(None, np.zeros((5,5)), 1) parent.nb_free_three = 0 def test_node1(): g = np.array([ [1, -1, -1], [1, -1, -1], [1, 1, 0] ]) n = Node(parent, g, BLACK) next_mv = n.generate_next_moves() assert (next_mv[0].grid ...
23.224
41
0.349983
0
0
0
0
0
0
0
0
0
0
7584210fe482f4212d8e7879d8d01a58011b39a4
1,122
py
Python
venv/Lib/site-packages/pyo/examples/22-events/08-function-calls.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/pyo/examples/22-events/08-function-calls.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/pyo/examples/22-events/08-function-calls.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
""" 08-function-calls.py - Using custom algorithms with python function calls. **EventCall** :: EventCall(function, *args, occurrences=inf, stopEventsWhenDone=True) EventCall calls a function, with any number of arguments (\*args) and uses its return value for the given parameter. The example below use a functio...
22.897959
78
0.680036
0
0
0
0
0
0
0
0
692
0.616756
7584b9125e63b40a450fd83b83b2635f253ee500
1,824
py
Python
modules/cisne_api.py
ppcamp/ReportCovid19Itabira
a48cb20072a1e9cecdaab589876f5b0e2e3440b6
[ "MIT" ]
1
2020-06-23T14:54:19.000Z
2020-06-23T14:54:19.000Z
modules/cisne_api.py
ppcamp/ReportCovid19Itabira
a48cb20072a1e9cecdaab589876f5b0e2e3440b6
[ "MIT" ]
8
2020-06-20T16:33:23.000Z
2020-07-31T17:33:05.000Z
modules/cisne_api.py
ppcamp/ReportCovid19Itabira
a48cb20072a1e9cecdaab589876f5b0e2e3440b6
[ "MIT" ]
null
null
null
import requests import json import pandas as pd from datetime import datetime def GetEpidemicWeek(curr_date): ''' Parameters ---------- curr_date: (str) Date in yyyy-mm-dd Return ------ (int) Week number of year ''' _aux = datetime.strptime(curr_date, '%Y-%m-%d') return _aux.is...
26.057143
92
0.576754
0
0
0
0
0
0
0
0
820
0.449561
75858d15ba85e9ff5541366ae7ab4ccf2759852d
2,048
py
Python
main.py
Andrey22/Python_Lesson2_Neural_University
014f8da8e3002e081aba3fb1ce9dcf56e5af1d57
[ "MIT" ]
null
null
null
main.py
Andrey22/Python_Lesson2_Neural_University
014f8da8e3002e081aba3fb1ce9dcf56e5af1d57
[ "MIT" ]
null
null
null
main.py
Andrey22/Python_Lesson2_Neural_University
014f8da8e3002e081aba3fb1ce9dcf56e5af1d57
[ "MIT" ]
null
null
null
''' Задача 1 Вывести на экран циклом пять строк из нулей, причем каждая строка должна быть пронумерована. ''' print ('Task1') for i in range(5): i+=1 print(i,'00000') ''' Задача 2 Пользователь в цикле вводит 10 цифр. Найти количество введеных пользователем цифр 5. ''' print ('Task2') count=0 for i in range(10):...
17.210084
92
0.631348
0
0
0
0
0
0
0
0
1,523
0.576239
7585d58771f71f59f83ac3fcba41c6ed4b3d1ae1
1,836
py
Python
aboutdialog.py
ShawnDriscoll/PyQt5-Dice-App
90d64db322b5330800be43247d46e196258f6a6b
[ "MIT" ]
null
null
null
aboutdialog.py
ShawnDriscoll/PyQt5-Dice-App
90d64db322b5330800be43247d46e196258f6a6b
[ "MIT" ]
null
null
null
aboutdialog.py
ShawnDriscoll/PyQt5-Dice-App
90d64db322b5330800be43247d46e196258f6a6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'aboutdialog.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, ...
48.315789
317
0.706972
1,496
0.814815
0
0
0
0
0
0
641
0.349129
7586aaf36cfc9aa4004d62afa11753f68be84c72
5,351
py
Python
PHASE_2/Application_SourceCode/backend/covid_utils.py
vicinx3/disease-outbreak
035e78875c374e2cdbd4720a4f2ed1370f63a88c
[ "MIT" ]
null
null
null
PHASE_2/Application_SourceCode/backend/covid_utils.py
vicinx3/disease-outbreak
035e78875c374e2cdbd4720a4f2ed1370f63a88c
[ "MIT" ]
null
null
null
PHASE_2/Application_SourceCode/backend/covid_utils.py
vicinx3/disease-outbreak
035e78875c374e2cdbd4720a4f2ed1370f63a88c
[ "MIT" ]
null
null
null
import requests import datetime from db import convert_code from pycountry_convert import country_name_to_country_alpha2 from pprint import pprint import json url = r'https://pomber.github.io/covid19/timeseries.json' response = requests.get(url) if response.status_code != 200: print("Failed to connect to pomber") ...
27.869792
90
0.555971
0
0
0
0
0
0
0
0
785
0.146702
758800528ccfe0918aa562d413d55854aa70f801
2,398
py
Python
cdc_kafka/parsed_row.py
woodlee/sqlserver-cdc-to-kafka
602c17432a87c1aaee94dc6c971cde8496314fda
[ "MIT" ]
10
2020-04-09T09:32:54.000Z
2021-10-04T09:20:59.000Z
cdc_kafka/parsed_row.py
woodlee/sqlserver-cdc-to-kafka
602c17432a87c1aaee94dc6c971cde8496314fda
[ "MIT" ]
4
2019-10-04T14:15:32.000Z
2020-05-13T18:48:58.000Z
cdc_kafka/parsed_row.py
woodlee/sqlserver-cdc-to-kafka
602c17432a87c1aaee94dc6c971cde8496314fda
[ "MIT" ]
6
2019-11-11T18:01:00.000Z
2021-06-09T09:49:57.000Z
import datetime from functools import total_ordering from typing import Tuple, Any, Dict, Optional from . import change_index @total_ordering class ParsedRow(object): def __init__(self, table_fq_name: str, row_kind: str, operation_name: str, event_db_time: datetime.datetime, change_idx: Optional...
42.070175
112
0.662219
2,252
0.939116
0
0
2,268
0.945788
0
0
257
0.107173
75893c568f3d251f68a9d4ffb2aa6e88611b92ae
446
py
Python
mikeio/xyz.py
rhaDHI/mikeio
eb24503d935df969eac32569a41d223d6f0e2edf
[ "BSD-3-Clause" ]
65
2019-11-27T13:42:52.000Z
2022-03-31T11:41:56.000Z
mikeio/xyz.py
rhaDHI/mikeio
eb24503d935df969eac32569a41d223d6f0e2edf
[ "BSD-3-Clause" ]
178
2019-12-17T19:43:04.000Z
2022-03-31T06:54:06.000Z
mikeio/xyz.py
rhaDHI/mikeio
eb24503d935df969eac32569a41d223d6f0e2edf
[ "BSD-3-Clause" ]
41
2019-12-17T18:21:04.000Z
2022-03-16T12:15:40.000Z
import pandas as pd def read_xyz(filename): # try: df = pd.read_csv(filename, sep="\t", header=None) if df.shape[1] == 1: df = pd.read_csv(filename, sep=" ", header=None) ncol = df.shape[1] names = ["x", "y", "z", "name"] df.columns = names[0:ncol] return df def dataframe_to_...
17.84
62
0.61435
0
0
0
0
0
0
0
0
32
0.071749
7589bb1ca93e2908a7e4afbfc16f38fe65552b2e
646
py
Python
tests/conftest.py
josiahls/fast-reinforcement-learning
66136009dd7052d4a9c07631d5c170c9aeba67f3
[ "Apache-2.0" ]
42
2019-08-06T14:09:43.000Z
2022-03-03T19:03:26.000Z
tests/conftest.py
josiahls/fast-reinforcement-learning
66136009dd7052d4a9c07631d5c170c9aeba67f3
[ "Apache-2.0" ]
7
2019-08-12T23:04:25.000Z
2021-01-15T16:39:57.000Z
tests/conftest.py
josiahls/fast-reinforcement-learning
66136009dd7052d4a9c07631d5c170c9aeba67f3
[ "Apache-2.0" ]
6
2019-09-20T20:08:59.000Z
2021-04-03T15:34:11.000Z
import pytest def pytest_addoption(parser): parser.addoption("--include_performance_tests", action="store_true", help="Will run the performance tests which do full model testing. This could take a few" "days to fully accomplish.") @pytest.fixture() def include_pe...
35.888889
118
0.732198
0
0
0
0
354
0.547988
0
0
275
0.425697
758a746fea53069cc01b12087b264b7e85fe4798
534
py
Python
chassis/rechteck.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
4
2022-02-08T21:53:57.000Z
2022-03-27T21:28:20.000Z
chassis/rechteck.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
null
null
null
chassis/rechteck.py
ThePBone/RobomasterCheatsheet
14089f4a20d72700e653e291137a4cbc9d13b694
[ "MIT" ]
null
null
null
from robomaster import robot import time ep_robot = robot.Robot() xy_speed = 1/2 # m/s z_speed = 90/2 # m/s if __name__ == '__main__': #ep_robot.initialize(conn_type="sta", sn="3JKDH6U0011J02") ep_robot.initialize(conn_type="ap") ep_chassis = ep_robot.chassis for i in range(4): # 1 Meter...
24.272727
66
0.640449
0
0
0
0
0
0
0
0
116
0.216822
758afd7cbb115376a34da86e1eeaae56905b6dcf
447
pyde
Python
processing/Mod. 6/sketch_6_1_l37/sketch_6_1_l37.pyde
nanam0rgana/2019-fall-polytech-cs
1a31acb3cf22edc930318dec17324b05dd7788d5
[ "MIT" ]
null
null
null
processing/Mod. 6/sketch_6_1_l37/sketch_6_1_l37.pyde
nanam0rgana/2019-fall-polytech-cs
1a31acb3cf22edc930318dec17324b05dd7788d5
[ "MIT" ]
null
null
null
processing/Mod. 6/sketch_6_1_l37/sketch_6_1_l37.pyde
nanam0rgana/2019-fall-polytech-cs
1a31acb3cf22edc930318dec17324b05dd7788d5
[ "MIT" ]
null
null
null
def setup (): size (500, 500) smooth () background (255) noStroke () colorMode(HSB) flug = bool(True) i=0 j=0 def draw (): global i, j, flug if(flug): for i in range (10): for j in range (5): fill (10, random (0, 255) , random (10, 250)) re...
22.35
61
0.478747
0
0
0
0
0
0
0
0
0
0
758b01fbbf221b2664b2728c99e75c2df92abd02
280
py
Python
src/main.py
lauhuiyik/same-page
decd8b5f45eeca750edfecd4b21a37103553ad9d
[ "MIT" ]
1
2020-05-25T21:32:48.000Z
2020-05-25T21:32:48.000Z
src/main.py
lauhuiyik/same-page
decd8b5f45eeca750edfecd4b21a37103553ad9d
[ "MIT" ]
null
null
null
src/main.py
lauhuiyik/same-page
decd8b5f45eeca750edfecd4b21a37103553ad9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python ########## import web from handlers.front import FrontPage from handlers.home import HomePage ########## urls = ('/home', 'HomePage', '/', 'FrontPage') app = web.application(urls, globals()) ########## if __name__ == "__main__": app.run()
14
38
0.582143
0
0
0
0
0
0
0
0
92
0.328571
758b72cef82f8f852b093d91ef15a93d7537c56c
3,758
py
Python
ssfunc/fansub.py
End-of-Eternity/ssfunc
5adbd5602ebc1db1a3cc3483c759c936d24ad705
[ "MIT" ]
3
2021-07-20T22:25:36.000Z
2021-12-07T10:05:41.000Z
ssfunc/fansub.py
End-of-Eternity/ssfunc
5adbd5602ebc1db1a3cc3483c759c936d24ad705
[ "MIT" ]
null
null
null
ssfunc/fansub.py
End-of-Eternity/ssfunc
5adbd5602ebc1db1a3cc3483c759c936d24ad705
[ "MIT" ]
1
2021-09-20T19:09:55.000Z
2021-09-20T19:09:55.000Z
import ass import subdigest import subprocess import os def dump_subs(subsfile: str, subsdata: subdigest.Subtitles): """ Exports subsdata to subsfile manually over using dump_file() to avoid the utf-8 encode warning. """ with open(subsfile, "w", encoding="utf_8_sig") as f: for section in subsd...
26.842857
99
0.537254
0
0
0
0
0
0
0
0
1,425
0.378989
758bfb17d11799615d242c0ec597dafd07b4d3fa
1,955
py
Python
tbot/twitch_bot/functions/faceit.py
thomaserlang/tbot
99cfa204d86ef35cf2cc9482ae5a44abb35b443a
[ "MIT" ]
null
null
null
tbot/twitch_bot/functions/faceit.py
thomaserlang/tbot
99cfa204d86ef35cf2cc9482ae5a44abb35b443a
[ "MIT" ]
10
2022-02-14T11:40:20.000Z
2022-03-09T22:44:03.000Z
tbot/twitch_bot/functions/faceit.py
thomaserlang/tbot
99cfa204d86ef35cf2cc9482ae5a44abb35b443a
[ "MIT" ]
1
2020-09-19T16:38:24.000Z
2020-09-19T16:38:24.000Z
import logging from tbot.twitch_bot.var_filler import fills_vars, Send_error from tbot import config @fills_vars('faceit.username', 'faceit.elo', 'faceit.level', 'faceit.next_level_points', 'faceit.next_level') async def faceit_elo(bot, channel, args, var_args, **kwargs): if not var_args or \ not 'fac...
34.298246
109
0.544246
0
0
0
0
1,853
0.947826
1,738
0.889003
662
0.338619
758d3ae4874f3aae353700d2388d8c12f38f9087
740
py
Python
setup.py
nickzhuang0613/BaiduSpider
f7c2dfc917c8617a8f5f3691bac642c376faed0f
[ "MIT" ]
1
2021-03-13T04:35:34.000Z
2021-03-13T04:35:34.000Z
setup.py
nickzhuang0613/BaiduSpider
f7c2dfc917c8617a8f5f3691bac642c376faed0f
[ "MIT" ]
null
null
null
setup.py
nickzhuang0613/BaiduSpider
f7c2dfc917c8617a8f5f3691bac642c376faed0f
[ "MIT" ]
null
null
null
import setuptools with open('README.md', 'r', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup( name='BaiduSpider', version='0.0.6', author='Sam Zhang', author_email='samzhang951@outlook.com', description='BaiduSpider,一个爬取百度的利器', long_description=long_description, ...
26.428571
53
0.636486
0
0
0
0
0
0
0
0
320
0.421053
758f66b1bfeec1c3413eae058bce0eb697970ad8
411
py
Python
utils/reward.py
1980744819/playing-mario-with-DQN
f263e3615bf4439ad17d95a9f449c6145792402b
[ "MIT" ]
3
2020-03-12T19:20:27.000Z
2020-12-16T06:21:05.000Z
utils/reward.py
1980744819/playing-mario-with-DQN
f263e3615bf4439ad17d95a9f449c6145792402b
[ "MIT" ]
null
null
null
utils/reward.py
1980744819/playing-mario-with-DQN
f263e3615bf4439ad17d95a9f449c6145792402b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : reward.py # @Author: zixiao # @Date : 2019-03-28 # @Desc : def get_reward(info, last_info): re = info['coins'] - last_info['coins'] + info['time'] - last_info['time'] + ( info['lives'] - last_info['lives']) * 10 + info['score'] - last_info['sc...
29.357143
113
0.562044
0
0
0
0
0
0
0
0
188
0.457421
758f716bb197ed14c12012351f797136c91cbd8a
1,270
py
Python
Buddystring.py
pgupta119/LeetCode
3e7418402d736cba19362fe7525fdc9067cfcaef
[ "MIT" ]
null
null
null
Buddystring.py
pgupta119/LeetCode
3e7418402d736cba19362fe7525fdc9067cfcaef
[ "MIT" ]
null
null
null
Buddystring.py
pgupta119/LeetCode
3e7418402d736cba19362fe7525fdc9067cfcaef
[ "MIT" ]
null
null
null
# Given two strings a and b, return true if you can swap two letters in a so the result is equal to b, otherwise, return false. # Swapping letters is defined as taking two indices i and j (0-indexed) such that i != j and swapping the characters at a[i] and b[j]. For example, swapping at indices 0 and 2 in "abcd" resul...
42.333333
204
0.616535
731
0.575591
0
0
0
0
0
0
788
0.620472
759014d40b4767cde83fe06211c68c1440c3f6c4
14
py
Python
noop.py
OpenIotNetwork/echo-firmware
007ead22704231f320abdc1ce32430a6d69a57f7
[ "Apache-2.0" ]
1
2021-03-08T18:34:06.000Z
2021-03-08T18:34:06.000Z
noop.py
OpenIotNetwork/echo-firmware
007ead22704231f320abdc1ce32430a6d69a57f7
[ "Apache-2.0" ]
null
null
null
noop.py
OpenIotNetwork/echo-firmware
007ead22704231f320abdc1ce32430a6d69a57f7
[ "Apache-2.0" ]
null
null
null
print("NOOP")
7
13
0.642857
0
0
0
0
0
0
0
0
6
0.428571
75903cb74255d9a040c92dad9af5ac01cf28b1cb
54
py
Python
srichand_cloudmesh_ex2.py
futuresystems/465-srijchand
f52127dfd2cefa7836e25b3ca8a4d81f8ec041ab
[ "Apache-2.0" ]
null
null
null
srichand_cloudmesh_ex2.py
futuresystems/465-srijchand
f52127dfd2cefa7836e25b3ca8a4d81f8ec041ab
[ "Apache-2.0" ]
null
null
null
srichand_cloudmesh_ex2.py
futuresystems/465-srijchand
f52127dfd2cefa7836e25b3ca8a4d81f8ec041ab
[ "Apache-2.0" ]
null
null
null
import cloudmesh print cloudmesh.shell("cloud list")
13.5
35
0.796296
0
0
0
0
0
0
0
0
12
0.222222
7590bc68d426088e6dfdde0c77099c6866ef8478
3,583
py
Python
datasets/robothor_data.py
SgtVincent/Robothor-2020---VIPL-ICT
5eee00c077c07e69120fb8108f574c2339688f34
[ "Apache-2.0" ]
null
null
null
datasets/robothor_data.py
SgtVincent/Robothor-2020---VIPL-ICT
5eee00c077c07e69120fb8108f574c2339688f34
[ "Apache-2.0" ]
1
2022-03-14T03:34:49.000Z
2022-03-14T03:34:49.000Z
datasets/robothor_data.py
SgtVincent/Robothor-2020---VIPL-ICT
5eee00c077c07e69120fb8108f574c2339688f34
[ "Apache-2.0" ]
null
null
null
from .constants import ( ROBOTHOR_ORIGINAL_CLASS_LIST ) import re import os import json import networkx import h5py import numpy as np scene_types = ['FloorPlan_Train1', 'FloorPlan_Train2', 'FloorPlan_Train3', 'FloorPlan_Train4', 'FloorPlan_Train5', 'FloorPlan_Train6', 'FloorPlan_Trai...
36.191919
115
0.662294
0
0
0
0
0
0
0
0
720
0.200949
7593f4e87b009e30bfc06b0f207cd76f6db5a110
288
py
Python
QRcodegenerator.py
arpitarunkumaar/Hacktoberfest2021
0af40f90a6c0716caadbbfff44ece947b6146f60
[ "MIT" ]
125
2021-10-01T19:05:26.000Z
2021-10-03T13:32:42.000Z
QRcodegenerator.py
arpitarunkumaar/Hacktoberfest2021
0af40f90a6c0716caadbbfff44ece947b6146f60
[ "MIT" ]
201
2021-10-30T20:40:01.000Z
2022-03-22T17:26:28.000Z
QRcodegenerator.py
arpitarunkumaar/Hacktoberfest2021
0af40f90a6c0716caadbbfff44ece947b6146f60
[ "MIT" ]
294
2021-10-01T18:46:05.000Z
2021-10-03T14:25:07.000Z
import pyqrcode from pyqrcode import QRCode # String which represent the QR code s = "https://www.youtube.com/channel/UCeO9hPCfRzqb2yTuAn713Mg" # Generate QR code url = pyqrcode.create(s) # Create and save the png file naming "myqr.png" url.svg("myyoutube.svg", scale = 8)
24
62
0.725694
0
0
0
0
0
0
0
0
178
0.618056
759471eca6eb7bbbb400247ad8d624471bce9b4f
979
py
Python
tests/packerlicious/test_post_processor_docker.py
gnewson/packerlicious
9a5373bc3a63f949e7912dad0214340d5fddbd85
[ "Apache-2.0" ]
109
2017-07-17T03:32:09.000Z
2022-02-27T18:24:18.000Z
tests/packerlicious/test_post_processor_docker.py
gnewson/packerlicious
9a5373bc3a63f949e7912dad0214340d5fddbd85
[ "Apache-2.0" ]
175
2017-07-16T21:41:40.000Z
2021-03-19T22:28:19.000Z
tests/packerlicious/test_post_processor_docker.py
gnewson/packerlicious
9a5373bc3a63f949e7912dad0214340d5fddbd85
[ "Apache-2.0" ]
68
2017-07-16T20:52:38.000Z
2022-01-08T18:24:17.000Z
import pytest import packerlicious.post_processor as post_processor class TestDockerImportPostProcessor(object): def test_required_fields_missing(self): b = post_processor.DockerImport() with pytest.raises(ValueError) as excinfo: b.to_dict() assert 'required' in str(excinfo....
23.309524
53
0.694586
898
0.917263
0
0
0
0
0
0
30
0.030644
7598e6392d65a78f154a1a2db4cb51bdef6f7043
3,017
py
Python
app/app.py
jemarulanda/microservicioMapeo
fbf3cef57a0a8aec611171460f4a3434339aa0fe
[ "MIT" ]
null
null
null
app/app.py
jemarulanda/microservicioMapeo
fbf3cef57a0a8aec611171460f4a3434339aa0fe
[ "MIT" ]
null
null
null
app/app.py
jemarulanda/microservicioMapeo
fbf3cef57a0a8aec611171460f4a3434339aa0fe
[ "MIT" ]
null
null
null
'''Module main''' import json import os from rabbitmq import RabbitMQ from pika import exceptions from parameter import Parameter from send_grid import SendGrid from traceability import Traceability from transform import Transform import uuid class App: '''class Application''' @classmethod def __init__(cl...
38.679487
136
0.569108
2,709
0.897912
0
0
2,654
0.879682
0
0
879
0.291349
759923fc156d69b7e7b7231814ffe05abf19e1c1
26,488
py
Python
modules/organizations_tab.py
scrummastermind/sumologictoolbox
02d9acb970943521685091d36b8d5135e817c22c
[ "Apache-2.0" ]
null
null
null
modules/organizations_tab.py
scrummastermind/sumologictoolbox
02d9acb970943521685091d36b8d5135e817c22c
[ "Apache-2.0" ]
null
null
null
modules/organizations_tab.py
scrummastermind/sumologictoolbox
02d9acb970943521685091d36b8d5135e817c22c
[ "Apache-2.0" ]
null
null
null
class_name = 'organizations_tab' from qtpy import QtCore, QtGui, QtWidgets, uic import os from logzero import logger import pathlib import json from modules.sumologic_orgs import SumoLogic_Orgs class CreateOrUpdateOrgDialog(QtWidgets.QDialog): def __init__(self, deployments, org_details=None, trials_enabled=Fals...
48.247723
127
0.669435
26,287
0.992412
0
0
0
0
0
0
4,078
0.153957
759a0430a9251f3f49f413680d321c1b741036a9
562
py
Python
hello.py
Sid672/Music
ee3c35ae1dfa71372dc6ce5a101503beaac91fd5
[ "MIT" ]
null
null
null
hello.py
Sid672/Music
ee3c35ae1dfa71372dc6ce5a101503beaac91fd5
[ "MIT" ]
null
null
null
hello.py
Sid672/Music
ee3c35ae1dfa71372dc6ce5a101503beaac91fd5
[ "MIT" ]
null
null
null
#Code # python code # script_name: hello # # author: Siddharth # description: composition # # set up from earsketch import * # Initialized init() setTempo(120) # varible chord = RD_UK_HOUSE__5THCHORD_2 secondarybeat = HIPHOP_BASSSUB_001 mainbeat = HOUSE_MAIN_BEAT_003 # Music fitMedia(chord, 1, 1, 16) se...
17.030303
42
0.709964
0
0
0
0
0
0
0
0
143
0.254448
759a621d0c21d47983881f0990e0d95c9d89af8b
575
py
Python
utf8_to_sjis.py
yo16/utf8_to_sjis
a0ea7205a2acb96743ca8cb24c38cf1db2cb0ffb
[ "MIT" ]
null
null
null
utf8_to_sjis.py
yo16/utf8_to_sjis
a0ea7205a2acb96743ca8cb24c38cf1db2cb0ffb
[ "MIT" ]
null
null
null
utf8_to_sjis.py
yo16/utf8_to_sjis
a0ea7205a2acb96743ca8cb24c38cf1db2cb0ffb
[ "MIT" ]
null
null
null
import codecs import os codecs.register_error('none', lambda e: ('?', e.end)) def utf8_to_sjis(files, in_dir, out_dir): os.makedirs(out_dir, exist_ok=True) for f in files: utf8_to_sjis_one(f, in_dir, out_dir) def utf8_to_sjis_one(file, in_dir, out_dir): with open(f'{in_dir}/{file}', mode='r', encoding='ut...
19.166667
81
0.673043
0
0
0
0
0
0
0
0
111
0.193043
759b22ff49969cf5635a933561ca5a0c9d611cf7
363
py
Python
mavweb/server/apps.py
vixadd/MAVWed
c86327a18c1f5260aa77a5975d2977df5e9267cc
[ "MIT" ]
null
null
null
mavweb/server/apps.py
vixadd/MAVWed
c86327a18c1f5260aa77a5975d2977df5e9267cc
[ "MIT" ]
null
null
null
mavweb/server/apps.py
vixadd/MAVWed
c86327a18c1f5260aa77a5975d2977df5e9267cc
[ "MIT" ]
null
null
null
from django.apps import AppConfig from mavweb.mavlink_arbiter.main import Main class ServerConfig(AppConfig): """ Django Server configurations. """ name = 'server' class MavlinkArbiter(AppConfig): """ Mavlink arbiter used for application pairing with mavlink functions. """ name = 'ma...
20.166667
72
0.699725
278
0.76584
0
0
0
0
0
0
154
0.424242