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
d14105e5a8b52c61c90d194c5ef582389ee082bc
543
py
Python
projects/rpi_led/project.py
Cruikshanks/electronics
fbd33fdd5ab1f3084fb777107767f89af3b2989c
[ "MIT" ]
null
null
null
projects/rpi_led/project.py
Cruikshanks/electronics
fbd33fdd5ab1f3084fb777107767f89af3b2989c
[ "MIT" ]
null
null
null
projects/rpi_led/project.py
Cruikshanks/electronics
fbd33fdd5ab1f3084fb777107767f89af3b2989c
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.OUT) led_state = False try: while True: GPIO.output(18, led_state) if led_state: print("The LED is on. Press 'enter' to switch it off") else: print("The LED is off. Press 'enter' to switch it on") ...
20.884615
66
0.541436
0
0
0
0
0
0
0
0
130
0.239411
d142b6a4d0c3c10a42751a0476a211f1e2be9723
63,715
py
Python
SampleScripts/grasp.py
kyspencer/GAMMA-PC-A-Greedy-Memetic-Algorithm-for-Storing-Cooling-Objects
3462ff8cc555ad646b59909c661ca58b21294a7b
[ "MIT" ]
null
null
null
SampleScripts/grasp.py
kyspencer/GAMMA-PC-A-Greedy-Memetic-Algorithm-for-Storing-Cooling-Objects
3462ff8cc555ad646b59909c661ca58b21294a7b
[ "MIT" ]
null
null
null
SampleScripts/grasp.py
kyspencer/GAMMA-PC-A-Greedy-Memetic-Algorithm-for-Storing-Cooling-Objects
3462ff8cc555ad646b59909c661ca58b21294a7b
[ "MIT" ]
1
2019-11-11T21:43:34.000Z
2019-11-11T21:43:34.000Z
# grasp.py # This script implements the GRASP heuristic for the dynamic bin packing # problem. # Author: Kristina Yancey Spencer from __future__ import print_function import numpy as np import random import solutions_dynamic as solmaker import sys from copy import deepcopy from itertools import combinations from...
41.945359
98
0.58148
61,638
0.967402
0
0
0
0
0
0
15,626
0.245248
d142c7d81fb966cbfca34d86396212cc9b63e454
13,244
py
Python
scripts/copy_bundles.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
scripts/copy_bundles.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
scripts/copy_bundles.py
VIIgit/azul
bb61965f625c667979a2f255f6bc39dcafaaf40b
[ "Apache-2.0" ]
null
null
null
import argparse import csv from datetime import datetime import logging import sys import time from typing import Set, Tuple from urllib.parse import urlparse, urlunparse from botocore.config import Config from botocore.exceptions import ClientError from hca.util import SwaggerAPIException from azul import config, re...
53.837398
119
0.586077
12,591
0.950695
0
0
6,011
0.453866
0
0
4,702
0.355029
d142df79bef452231592066c73c02fa23e4fff32
398
py
Python
firsttest/models/check.py
charlos1204/firsttest
2c66385ae7149d1403071c2bf6da997873350556
[ "MIT" ]
null
null
null
firsttest/models/check.py
charlos1204/firsttest
2c66385ae7149d1403071c2bf6da997873350556
[ "MIT" ]
null
null
null
firsttest/models/check.py
charlos1204/firsttest
2c66385ae7149d1403071c2bf6da997873350556
[ "MIT" ]
null
null
null
#import numpy as np #import pickle #import sequence2vector as s2v_tools #y_data_name = '/data/label_dataset.pkl'# #Y = pickle.load(open(y_data_name, 'rb')) #print(Y.shape) #Y = s2v_tools.seq2vectorize(Y) #print(Y) from keras.models import Sequential import plotresults as pltrslts import pickle network = pickle.l...
18.090909
54
0.748744
0
0
0
0
0
0
0
0
235
0.590452
d1440a5d8d1674d5c1865a9e8914bba72236e29c
2,146
py
Python
tools/build.py
kxf3199/gltf_tool
b060135209dff2127095575b8fc87849b5bfbdf4
[ "MIT" ]
1
2022-03-04T10:53:42.000Z
2022-03-04T10:53:42.000Z
tools/build.py
spindro/disney_brdf_for_yocto-gl
aa79c60ec9603240f35a6c70ed20586d3fe5df45
[ "MIT" ]
null
null
null
tools/build.py
spindro/disney_brdf_for_yocto-gl
aa79c60ec9603240f35a6c70ed20586d3fe5df45
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 -B # build utility for easy development # complete and unreliable hack used for making it easier to develop import click, os, platform, markdown, glob, textwrap def build(target, dirname, buildtype, cmakeopts=''): os.system('mkdir -p build/{dirname}; cd build/{dirname}; cmake ../../ -GNin...
30.225352
257
0.671482
0
0
0
0
1,509
0.703169
0
0
908
0.423113
d146f4973440816e4a9c135565077e8cd8ed1f36
2,108
py
Python
server/wrangle/config.py
kdinkla/ProtoMPDA
08ec7de3a24ea07da19062b009ca81a0f5a9c924
[ "MIT" ]
3
2017-12-07T19:11:24.000Z
2020-07-03T07:51:09.000Z
server/wrangle/config.py
kdinkla/Screenit
08ec7de3a24ea07da19062b009ca81a0f5a9c924
[ "MIT" ]
null
null
null
server/wrangle/config.py
kdinkla/Screenit
08ec7de3a24ea07da19062b009ca81a0f5a9c924
[ "MIT" ]
null
null
null
import sqlite3 as lite import csv # Constants. inputPath = "/Users/kdinkla/Desktop/Novartis/HCS/CellMorph/www.ebi.ac.uk/huber-srv/cellmorph/data/" outputPath = "/Users/kdinkla/MPDA/git/wrangle/db/" sqlDotReplacement = '_' # Screening parameters. plates = ["HT" + str(i).zfill(2) for i in range(1, 69)] plateDirectories...
31.462687
125
0.652277
0
0
0
0
0
0
0
0
872
0.413662
d1484a9f3cc1c846f424f96a4602ea6fd126b3cd
952
py
Python
src/stationbook/book/tests/test_view_station_borehole_layer_add.py
EIDA/stationbook
80d36189170328257955b236c9ed6a8657a92853
[ "MIT" ]
3
2019-02-07T18:03:56.000Z
2020-06-30T11:09:50.000Z
src/stationbook/book/tests/test_view_station_borehole_layer_add.py
EIDA/stationbook
80d36189170328257955b236c9ed6a8657a92853
[ "MIT" ]
13
2019-03-25T08:09:25.000Z
2022-03-11T23:40:25.000Z
src/stationbook/book/tests/test_view_station_borehole_layer_add.py
EIDA/stationbook
80d36189170328257955b236c9ed6a8657a92853
[ "MIT" ]
1
2019-07-26T10:23:37.000Z
2019-07-26T10:23:37.000Z
from django.urls import resolve, reverse from .base_classes import NetworkStationTest from ..views import station_borehole_layer_add class StationBoreholeLayerAddTests(NetworkStationTest): def __init__(self, *args): NetworkStationTest.__init__( self, *args, url="statio...
35.259259
77
0.726891
815
0.856092
0
0
0
0
0
0
101
0.106092
d148ad0b74eafb9e28b83f4e64a1d66cc75dbe56
590
py
Python
engfrosh_site/frosh/migrations/0004_alter_team_group.py
engfrosh/engfrosh
8eed0f3e86ff43de569c280a5f1571c02f2324f2
[ "MIT" ]
1
2021-05-21T01:01:16.000Z
2021-05-21T01:01:16.000Z
engfrosh_site/frosh/migrations/0004_alter_team_group.py
engfrosh/engfrosh
8eed0f3e86ff43de569c280a5f1571c02f2324f2
[ "MIT" ]
50
2021-05-20T21:00:55.000Z
2022-03-12T00:59:18.000Z
engfrosh_site/frosh/migrations/0004_alter_team_group.py
engfrosh/engfrosh
8eed0f3e86ff43de569c280a5f1571c02f2324f2
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-19 00:08 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ('frosh', '0003_alter_team_coin_amount'), ] operations = [...
28.095238
163
0.662712
464
0.786441
0
0
0
0
0
0
165
0.279661
d14a47851458aeac04d23e1f6be1cad44af69083
905
py
Python
CMSIS/DSP/Testing/PatternGeneration/Convolutions.py
milos-lazic/CMSIS_5
61b74b70bd961af9e2a8bb6bc1632c1014e7c42e
[ "Apache-2.0" ]
6
2019-05-30T21:02:44.000Z
2022-01-16T23:40:23.000Z
CMSIS/DSP/Testing/PatternGeneration/Convolutions.py
milos-lazic/CMSIS_5
61b74b70bd961af9e2a8bb6bc1632c1014e7c42e
[ "Apache-2.0" ]
2
2019-05-23T10:11:45.000Z
2019-08-28T15:13:56.000Z
CMSIS/DSP/Testing/PatternGeneration/Convolutions.py
milos-lazic/CMSIS_5
61b74b70bd961af9e2a8bb6bc1632c1014e7c42e
[ "Apache-2.0" ]
2
2019-11-27T09:56:17.000Z
2021-11-25T11:02:17.000Z
import os.path import numpy as np import itertools import Tools # Those patterns are used for tests and benchmarks. # For tests, there is the need to add tests for saturation def writeTests(config): NBSAMPLES=128 inputsA=np.random.randn(NBSAMPLES) inputsB=np.random.randn(NBSAMPLES) inputsA = inpu...
20.568182
69
0.741436
0
0
0
0
0
0
0
0
224
0.247514
d14a8262549a69bf5004e70bf2d22c44d9e1fbdd
6,594
py
Python
cesiumpy/entities/tests/test_color.py
cksammons7/cesiumpy
0ffa7509fdac03644f0e2fb91385106c40284aa1
[ "Apache-2.0" ]
62
2015-12-30T04:17:25.000Z
2022-02-09T04:26:24.000Z
cesiumpy/entities/tests/test_color.py
cksammons7/cesiumpy
0ffa7509fdac03644f0e2fb91385106c40284aa1
[ "Apache-2.0" ]
20
2016-01-19T10:07:21.000Z
2021-11-15T18:36:45.000Z
cesiumpy/entities/tests/test_color.py
cksammons7/cesiumpy
0ffa7509fdac03644f0e2fb91385106c40284aa1
[ "Apache-2.0" ]
33
2016-02-03T13:28:29.000Z
2022-02-26T13:14:41.000Z
#!/usr/bin/env python # coding: utf-8 import nose import unittest import traitlets import cesiumpy import cesiumpy.testing as tm class TestColor(unittest.TestCase): def test_maybe_color(self): blue = cesiumpy.color.Color.maybe('blue') self.assertEqual(repr(blue), "Color.BLUE") self.ass...
35.074468
81
0.607067
6,323
0.958902
0
0
0
0
0
0
1,211
0.183652
d14a9fead3b8a6d1a0d3f6e69ca6d8524429fdaf
410
py
Python
todo/migrations/0004_alter_post_title.py
Saup21/Todo-list
f806fee5ba11a2ce6a8242d8675f0984d2c2f0eb
[ "MIT" ]
14
2021-05-14T15:06:38.000Z
2021-09-10T06:29:23.000Z
todo/migrations/0004_alter_post_title.py
Saup21/Todo-list
f806fee5ba11a2ce6a8242d8675f0984d2c2f0eb
[ "MIT" ]
null
null
null
todo/migrations/0004_alter_post_title.py
Saup21/Todo-list
f806fee5ba11a2ce6a8242d8675f0984d2c2f0eb
[ "MIT" ]
3
2021-05-16T12:39:41.000Z
2021-05-18T04:13:57.000Z
# Generated by Django 3.2.1 on 2021-05-12 20:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('todo', '0003_auto_20210511_0127'), ] operations = [ migrations.AlterField( model_name='post', name='ti...
21.578947
63
0.570732
311
0.758537
0
0
0
0
0
0
92
0.22439
d14ad9b665a10159104a85fed696e67d8770cb72
1,246
py
Python
vn.trader/strategyMain.py
freeitaly/TT
9b88ccec3739077649b0f57787d7f02764ad6897
[ "MIT" ]
null
null
null
vn.trader/strategyMain.py
freeitaly/TT
9b88ccec3739077649b0f57787d7f02764ad6897
[ "MIT" ]
null
null
null
vn.trader/strategyMain.py
freeitaly/TT
9b88ccec3739077649b0f57787d7f02764ad6897
[ "MIT" ]
null
null
null
# encoding: UTF-8 import sys import ctypes import platform from vtEngine import MainEngine from ctaAlgo.uiStrategyWindow import * #---------------------------------------------------------------------- def main(): """主程序入口""" # 设置底部任务栏图标,win7以下请注释掉 try: ctypes.windll.shell32.SetCurrentProcessExpl...
23.961538
84
0.61557
0
0
0
0
0
0
0
0
562
0.398582
d14b01acc806f687e4dbb90d8f0ce282fa3e47ab
304
py
Python
notes/code/sfpd/histo.py
skrilladeville/msds692
1690846e7299819cd5b1b24a56968bf1074e16bf
[ "MIT" ]
87
2018-08-10T23:27:24.000Z
2022-03-29T05:07:45.000Z
notes/code/sfpd/histo.py
skrilladeville/msds692
1690846e7299819cd5b1b24a56968bf1074e16bf
[ "MIT" ]
1
2019-10-06T15:45:03.000Z
2019-10-06T15:45:03.000Z
notes/code/sfpd/histo.py
skrilladeville/msds692
1690846e7299819cd5b1b24a56968bf1074e16bf
[ "MIT" ]
171
2018-08-20T23:59:43.000Z
2022-03-31T16:21:52.000Z
import sys from csvcols import get_column categories = get_column(sys.argv[1], col=1) descriptions = get_column(sys.argv[1], col=2) for c, n in categories.most_common(len(categories)): print("%6d %s" % (n, c)) for d, n in descriptions.most_common(len(descriptions)): print("%6d %s" % (n, d))
23.384615
56
0.684211
0
0
0
0
0
0
0
0
16
0.052632
d14c9b8f7f4b5ed59766d994c17ec61a593de502
5,742
py
Python
autopatch/target_finder.py
Hydrogen-OS-P/tools
6bf6f5a9f922ca64a22434cd986db5452f7a796b
[ "Apache-2.0" ]
2
2020-05-17T00:33:41.000Z
2020-05-21T16:08:35.000Z
autopatch/target_finder.py
Hydrogen-OS-P/tools
6bf6f5a9f922ca64a22434cd986db5452f7a796b
[ "Apache-2.0" ]
null
null
null
autopatch/target_finder.py
Hydrogen-OS-P/tools
6bf6f5a9f922ca64a22434cd986db5452f7a796b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2 # Filename: target_finder.py """ Fast search the target out. Usage: target_finder.py TARGET - TARGET target path relative to current directory. """ __author__ = 'duanqz@gmail.com' import sys import re import os import fnmatch import commands class TargetFinder: # The framework part...
29.147208
91
0.564089
5,259
0.915883
0
0
602
0.104842
0
0
1,690
0.294323
d14d43cb5ea0c774889305ac6803d6586c9a4422
853
py
Python
geotrek/flatpages/serializers.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
50
2016-10-19T23:01:21.000Z
2022-03-28T08:28:34.000Z
geotrek/flatpages/serializers.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
1,422
2016-10-27T10:39:40.000Z
2022-03-31T13:37:10.000Z
geotrek/flatpages/serializers.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
46
2016-10-27T10:59:10.000Z
2022-03-22T15:55:56.000Z
from rest_framework import serializers as rest_serializers from geotrek.flatpages import models as flatpages_models from geotrek.common.serializers import ( TranslatedModelSerializer, BasePublishableSerializerMixin, RecordSourceSerializer, TargetPortalSerializer ) class FlatPageSerializer(BasePublishableSeri...
40.619048
84
0.757327
576
0.675264
0
0
0
0
0
0
112
0.131301
d14d5d346317e2adeb5762d4720c2c3c5e7859a8
460
py
Python
examples/docs_snippets/docs_snippets/overview/modes_resources/pipeline_with_modes.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
2
2021-06-21T17:50:26.000Z
2021-06-21T19:14:23.000Z
examples/docs_snippets/docs_snippets/overview/modes_resources/pipeline_with_modes.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
7
2022-03-16T06:55:04.000Z
2022-03-18T07:03:25.000Z
examples/docs_snippets/docs_snippets/overview/modes_resources/pipeline_with_modes.py
bitdotioinc/dagster
4fe395a37b206b1a48b956fa5dd72bf698104cca
[ "Apache-2.0" ]
1
2021-08-18T17:21:57.000Z
2021-08-18T17:21:57.000Z
from dagster import ModeDefinition, pipeline from .database_resources import postgres_database, sqlite_database from .solids_with_resources import generate_table_1, generate_table_2 @pipeline( mode_defs=[ ModeDefinition("local_dev", resource_defs={"database": sqlite_database}), ModeDefinition("pr...
28.75
81
0.767391
0
0
0
0
274
0.595652
0
0
37
0.080435
d14e2d8867ddf65a2458144b49954f5383e47eb9
3,687
py
Python
tests/robot/test_files/py2.py
tiobe/modernize
d0e0188989bbad610ad35d052753985fab72e989
[ "BSD-3-Clause" ]
null
null
null
tests/robot/test_files/py2.py
tiobe/modernize
d0e0188989bbad610ad35d052753985fab72e989
[ "BSD-3-Clause" ]
null
null
null
tests/robot/test_files/py2.py
tiobe/modernize
d0e0188989bbad610ad35d052753985fab72e989
[ "BSD-3-Clause" ]
null
null
null
# This file is part of krakenex. # # krakenex is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # krakenex is distributed in the...
29.97561
71
0.590453
2,833
0.768375
0
0
0
0
0
0
2,201
0.596962
d14f95d4a726b589d4b5ddfbe61823721f991d94
1,553
py
Python
apostello/migrations/0007_auto_20160315_1213.py
LaudateCorpus1/apostello
1ace89d0d9e1f7a1760f6247d90a60a9787a4f12
[ "MIT" ]
69
2015-10-03T20:27:53.000Z
2021-04-06T05:26:18.000Z
apostello/migrations/0007_auto_20160315_1213.py
LaudateCorpus1/apostello
1ace89d0d9e1f7a1760f6247d90a60a9787a4f12
[ "MIT" ]
73
2015-10-03T17:53:47.000Z
2020-10-01T03:08:01.000Z
apostello/migrations/0007_auto_20160315_1213.py
LaudateCorpus1/apostello
1ace89d0d9e1f7a1760f6247d90a60a9787a4f12
[ "MIT" ]
29
2015-10-23T22:00:13.000Z
2021-11-30T04:48:06.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-15 12:13 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("apostello", "0006_userprofile_show_tour")] operations = [ m...
33.76087
115
0.490663
1,424
0.883923
0
0
0
0
0
0
475
0.294848
d14f96e0734761eeae0e630ef8c89ddc1d156cc7
5,287
py
Python
bridle/const_expr.py
iguessthislldo/avidly
0257c22966c297fad1254574cac60bb52b2da6ff
[ "MIT" ]
1
2022-02-16T08:23:35.000Z
2022-02-16T08:23:35.000Z
bridle/const_expr.py
iguessthislldo/bridle
f7b0228a5d3e1e05e5643c2f787dd175dd243965
[ "MIT" ]
null
null
null
bridle/const_expr.py
iguessthislldo/bridle
f7b0228a5d3e1e05e5643c2f787dd175dd243965
[ "MIT" ]
null
null
null
import enum import operator as pyop from abc import ABC, abstractmethod from collections.abc import Callable from typing import Any, Optional import inspect import string from dataclasses import dataclass from typing import TYPE_CHECKING from .errors import ConstExprError, InternalError if TYPE_CHECKING: from .tre...
31.470238
88
0.621714
4,623
0.874409
0
0
1,155
0.21846
0
0
590
0.111594
d15217dd90e5162f260518d778ebbec59b2a77fc
706
py
Python
pysmock/models/Info.py
pysmock/pysmock-codegen
e95384756f9a80b49b7e015a408a29889e2a1b68
[ "MIT" ]
null
null
null
pysmock/models/Info.py
pysmock/pysmock-codegen
e95384756f9a80b49b7e015a408a29889e2a1b68
[ "MIT" ]
null
null
null
pysmock/models/Info.py
pysmock/pysmock-codegen
e95384756f9a80b49b7e015a408a29889e2a1b68
[ "MIT" ]
null
null
null
from yaml import YAMLObject from . import Contact, License class Info(YAMLObject): yaml_tag = u'info' def __init__(self,name: str ="",title: str = "", description: str = "",termsOfService: str = "", contact: Contact = None, license: License = None, version: str = "1.0.0"): self.name = name self.title = ...
41.529412
199
0.694051
646
0.915014
0
0
0
0
0
0
91
0.128895
d152ae39f545ea4c14b90863158e7dfdebe61a2c
2,356
py
Python
sites/de/zdf.py
eminga/simplEPG
c38994b6bbba618d85528aa8ea426d936447c4e6
[ "MIT" ]
2
2019-10-14T05:48:23.000Z
2021-07-29T04:32:07.000Z
sites/de/zdf.py
eminga/simplEPG
c38994b6bbba618d85528aa8ea426d936447c4e6
[ "MIT" ]
null
null
null
sites/de/zdf.py
eminga/simplEPG
c38994b6bbba618d85528aa8ea426d936447c4e6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2018 eminga # Licensed under MIT License import datetime, pytz, re, helper def grab(channel, timespan): tz = pytz.timezone("Europe/Berlin") now = datetime.datetime.now(tz) shows = [] a = 0 if now.time().hour < 7: a = -1 for i in range(a, 14): date = now + datetime....
32.273973
149
0.630306
0
0
0
0
0
0
0
0
664
0.281475
d153802f775ba942a3655fb99bae349c7849f9df
361
py
Python
algorithms/warmup/compare-the-triplets.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
41
2018-05-11T07:54:34.000Z
2022-03-29T19:02:32.000Z
algorithms/warmup/compare-the-triplets.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
2
2021-09-13T10:03:26.000Z
2021-10-04T10:21:05.000Z
algorithms/warmup/compare-the-triplets.py
PingHuskar/hackerrank
1bfdbc63de5d0f94cd9e6ae250476b4a267662f2
[ "Unlicense" ]
21
2019-01-23T19:06:59.000Z
2021-12-23T16:03:47.000Z
# Algorithms > Warmup > Compare the Triplets # Compare the elements in two triplets. # # https://www.hackerrank.com/challenges/compare-the-triplets/problem # a = map(int, input().split()) b = map(int, input().split()) alice, bob = 0, 0 for i, j in zip(a, b): if i > j: alice += 1 elif i < ...
22.5625
69
0.581717
0
0
0
0
0
0
0
0
160
0.443213
d154ae1217c3ae34783bb85b3da68ecf82e62291
223
py
Python
app/__init__.py
cca/libraries_syllabus_notifications
0d42c96ca6fd777e501024bb986418e8897b3dbc
[ "ECL-2.0" ]
null
null
null
app/__init__.py
cca/libraries_syllabus_notifications
0d42c96ca6fd777e501024bb986418e8897b3dbc
[ "ECL-2.0" ]
5
2016-01-02T20:12:21.000Z
2022-01-21T20:31:39.000Z
app/__init__.py
cca/libraries_syllabus_notifications
0d42c96ca6fd777e501024bb986418e8897b3dbc
[ "ECL-2.0" ]
null
null
null
# @TODO we want to "from .app import main" so the test suite can import the # main() function but if we do that then app.py throws errors when importing # from config.py & its other dependencies from .has_syllabus import *
44.6
76
0.753363
0
0
0
0
0
0
0
0
192
0.860987
d155115bca693ea9440a64b39244f42d954a8b6e
5,153
py
Python
sdk/notificationhubs/azure-mgmt-notificationhubs/azure/mgmt/notificationhubs/models/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/notificationhubs/azure-mgmt-notificationhubs/azure/mgmt/notificationhubs/models/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/notificationhubs/azure-mgmt-notificationhubs/azure/mgmt/notificationhubs/models/__init__.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.422414
94
0.751213
0
0
0
0
0
0
0
0
1,655
0.321172
d15558fb9295192842b6c51525c356994ca03dbe
6,334
py
Python
utils/util.py
gmshashank/Deep_Flow_Prediction
9b4c388b70a458cddac20258242a6a36965524bc
[ "MIT" ]
null
null
null
utils/util.py
gmshashank/Deep_Flow_Prediction
9b4c388b70a458cddac20258242a6a36965524bc
[ "MIT" ]
null
null
null
utils/util.py
gmshashank/Deep_Flow_Prediction
9b4c388b70a458cddac20258242a6a36965524bc
[ "MIT" ]
null
null
null
from genericpath import exists import math import numpy as np import os import re from PIL import Image import matplotlib.pyplot as plt from matplotlib import cm # append line to log file def log(file, line, doPrint=True): f = open(file, "a+") f.wrtite(line + "\n") f.close() if doPrint: print(l...
30.747573
117
0.526208
1,875
0.296021
0
0
0
0
0
0
319
0.050363
d155acb201ce5a145d858874d493c8fbc320df36
612
py
Python
tests/data/pdf_download_data.py
dbbabcock/BOE_tabulator
4d0a6176a2393610377d24a05536f8c1fe159932
[ "MIT" ]
1
2021-02-17T02:26:38.000Z
2021-02-17T02:26:38.000Z
tests/data/pdf_download_data.py
dbbabcock/BOE_tabulator
4d0a6176a2393610377d24a05536f8c1fe159932
[ "MIT" ]
null
null
null
tests/data/pdf_download_data.py
dbbabcock/BOE_tabulator
4d0a6176a2393610377d24a05536f8c1fe159932
[ "MIT" ]
null
null
null
from .sample_boe_page import HTML_TEXT # static sample of html text used for testing, scraped from # https://comptroller.baltimorecity.gov/boe/meetings/minutes SAMPLE_HTML = HTML_TEXT # Example set of expected year links pulled from HTML_TEXT YEAR_LINKS = { "2020": "/minutes-2020", "2019": "/2019", "2018"...
27.818182
60
0.637255
0
0
0
0
0
0
0
0
431
0.704248
d15614a481b75b0930ec4f17c90504a24aa1a1b1
1,325
py
Python
Fib Surname.py
Gerrydh/C-S-Exercises
b4b8e6c4142e8f0c69910f5e9dd353e706671618
[ "Apache-2.0" ]
null
null
null
Fib Surname.py
Gerrydh/C-S-Exercises
b4b8e6c4142e8f0c69910f5e9dd353e706671618
[ "Apache-2.0" ]
null
null
null
Fib Surname.py
Gerrydh/C-S-Exercises
b4b8e6c4142e8f0c69910f5e9dd353e706671618
[ "Apache-2.0" ]
null
null
null
# Gerard Hanlon, 30.01.2018 # A program that displays Fibonacci numbers. def fib(n): """This function returns the nth Fibonacci numbers.""" i = 0 # variable i = the first fibonacci number j = 1 # variable j = the second fibonacci number n = n - 1 # variable n = n - 1 while n >= 0: # while n is greater than ...
47.321429
154
0.691321
0
0
0
0
0
0
0
0
996
0.751698
d1573555106525d0958ee59e807692fbb800871e
19,560
py
Python
tools/rest_integration_test.py
osrf/cloudsim-legacy
01ea7dd2708ed9797a860ac839028ec62fd96a23
[ "Apache-2.0" ]
null
null
null
tools/rest_integration_test.py
osrf/cloudsim-legacy
01ea7dd2708ed9797a860ac839028ec62fd96a23
[ "Apache-2.0" ]
null
null
null
tools/rest_integration_test.py
osrf/cloudsim-legacy
01ea7dd2708ed9797a860ac839028ec62fd96a23
[ "Apache-2.0" ]
1
2021-03-16T15:00:51.000Z
2021-03-16T15:00:51.000Z
#!/usr/bin/env python from __future__ import print_function import os import sys import unittest import time import datetime import logging from cloudsim_rest_api import CloudSimRestApi import traceback # add cloudsim directory to system path basepath = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) ...
36.155268
80
0.561145
8,204
0.419427
0
0
0
0
0
0
4,741
0.242382
d1586b82c5202f4d705413de1f0ddf437f02a38a
5,562
py
Python
test/test_p4lib_delete.py
Tech-pandit/python-p4lib
6b5602321c3c79151a1e603c4ef7eac4a405fb68
[ "MIT" ]
null
null
null
test/test_p4lib_delete.py
Tech-pandit/python-p4lib
6b5602321c3c79151a1e603c4ef7eac4a405fb68
[ "MIT" ]
null
null
null
test/test_p4lib_delete.py
Tech-pandit/python-p4lib
6b5602321c3c79151a1e603c4ef7eac4a405fb68
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2002-2005 ActiveState Corp. # See LICENSE.txt for license details. # Author: # Trent Mick (TrentM@ActiveState.com) # Home: # http://trentm.com/projects/px/ """Test p4lib.py's interface to 'p4 delete'.""" import os import sys import unittest import types import pprint import ...
33.506024
77
0.530025
5,072
0.911902
0
0
0
0
0
0
1,521
0.273463
d158b7f689bacb09ad2436e6c7462164b316215a
1,261
py
Python
src/infra/repo/base.py
gntzh/fastapi-tmpl
83cb815c4fb5ced0f87286e485a4089bb0097b8f
[ "MIT" ]
null
null
null
src/infra/repo/base.py
gntzh/fastapi-tmpl
83cb815c4fb5ced0f87286e485a4089bb0097b8f
[ "MIT" ]
null
null
null
src/infra/repo/base.py
gntzh/fastapi-tmpl
83cb815c4fb5ced0f87286e485a4089bb0097b8f
[ "MIT" ]
null
null
null
from typing import Any, Generic, Protocol, Type, TypeVar from loguru import logger from sqlalchemy import select, func from sqlalchemy.ext.asyncio import AsyncSession class ModelBase(Protocol): id: Any def __init__(*args, **kwargs): ... T = TypeVar("T") ModelT = TypeVar("ModelT", bound=ModelBase)...
23.792453
86
0.572561
1,024
0.809486
0
0
0
0
654
0.516996
31
0.024506
d1592de01ccfcfaa6800db9a077337ed4875fae8
1,723
py
Python
shaping.py
kotikkonstantin/convasr
3d4d7f3627269372ae1eb7ff7423b29838f47ac0
[ "MIT" ]
17
2019-08-01T07:45:46.000Z
2022-03-25T05:15:13.000Z
shaping.py
kotikkonstantin/convasr
3d4d7f3627269372ae1eb7ff7423b29838f47ac0
[ "MIT" ]
14
2020-05-30T16:18:28.000Z
2021-06-24T08:08:19.000Z
shaping.py
kotikkonstantin/convasr
3d4d7f3627269372ae1eb7ff7423b29838f47ac0
[ "MIT" ]
6
2020-07-10T14:43:02.000Z
2021-04-08T19:28:53.000Z
import functools import typing import torch # equal to 1T class _T(torch.Tensor): pass class BY(torch.Tensor): pass class T(torch.Tensor): pass class B(torch.Tensor): pass class S(torch.Tensor): pass class BCT(torch.Tensor): pass class CT(torch.Tensor): pass class BCt(torch.Tensor): pass class Bt(torch...
20.270588
149
0.647707
378
0.219385
0
0
295
0.171213
0
0
298
0.172954
d15966aff54460eabbd17a44b8dbeb7ba2af747c
305
py
Python
snmp/simple_snmp.py
gahlberg/pynet_class_work
2389e7e5717d4b479ee002ada3b45694b7566756
[ "Apache-2.0" ]
null
null
null
snmp/simple_snmp.py
gahlberg/pynet_class_work
2389e7e5717d4b479ee002ada3b45694b7566756
[ "Apache-2.0" ]
null
null
null
snmp/simple_snmp.py
gahlberg/pynet_class_work
2389e7e5717d4b479ee002ada3b45694b7566756
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from snmp_helper import snmp_get_oid,snmp_extract COMMUNITY_STRING = 'galileo' SNMP_PORT = 7961 IP = '50.76.53.27' a_device = (IP, COMMUNITY_STRING, SNMP_PORT) OID = '1.3.6.1.2.1.1.1.0' snmp_data = snmp_get_oid(a_device, oid=OID) output = snmp_extract(snmp_data) print output
16.944444
49
0.740984
0
0
0
0
0
0
0
0
62
0.203279
d15b50d016c594fe47cebba986b4e8896fb93412
8,037
py
Python
titanic2.py
kyzoon/kaggle_titanic
9aad72932343d3387b744688cb1cd7edbfd4ef41
[ "MIT" ]
null
null
null
titanic2.py
kyzoon/kaggle_titanic
9aad72932343d3387b744688cb1cd7edbfd4ef41
[ "MIT" ]
null
null
null
titanic2.py
kyzoon/kaggle_titanic
9aad72932343d3387b744688cb1cd7edbfd4ef41
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'preston.zhu' import numpy as np import pandas as pd import re import operator from sklearn.ensemble import RandomForestClassifier, ExtraTreesRegressor import pdb def get_title(name): # 正则表达式搜索,搜索到如' Mr.'的字符串 title_search = re.search(' ([A-Za-z]+)\.', nam...
32.938525
96
0.725395
0
0
0
0
0
0
0
0
5,865
0.57147
d15c49fa119b79934420f79c9fd8d2957dc1d3c8
397
py
Python
genericCode/sortingAlgorithms/CountingSort.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
8
2015-04-16T03:43:49.000Z
2018-08-14T22:47:03.000Z
genericCode/sortingAlgorithms/CountingSort.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
null
null
null
genericCode/sortingAlgorithms/CountingSort.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
7
2016-03-22T20:29:27.000Z
2018-09-29T18:55:47.000Z
''' Normal Counting sort without any associated array to keep track of Time Complexity = O(n) Space Complexity = O(n + k) Auxilary Space = O(k) ''' def countingSort(a): b = [0]*(max(a) + 1) c = [] for i in range(len(a)): b[a[i]] += 1 for i in range(len(b)): if(b[i] != 0)...
23.352941
70
0.493703
0
0
0
0
0
0
0
0
163
0.410579
d15cc02ff61cc22a23fc2bcad4c8987b71be6858
2,768
py
Python
src/td/auth.py
annihilatorrrr/opentele
ff90c36a867cf7902e80f480a35041c5e7902e4c
[ "MIT" ]
30
2022-01-17T20:46:02.000Z
2022-03-31T18:49:07.000Z
src/td/auth.py
studasd/opentele
ff90c36a867cf7902e80f480a35041c5e7902e4c
[ "MIT" ]
4
2022-02-13T10:21:12.000Z
2022-03-28T16:05:51.000Z
src/td/auth.py
studasd/opentele
ff90c36a867cf7902e80f480a35041c5e7902e4c
[ "MIT" ]
9
2022-01-24T18:02:08.000Z
2022-03-24T14:23:16.000Z
from __future__ import annotations from .configs import * from . import shared as td import hashlib # if TYPE_CHECKING: # from ..opentele import * class AuthKeyType(IntEnum): """ Type of `AuthKey` ### Attributes: Generated (`IntEnum`): Generated key Temporary (`IntEnum`...
25.394495
139
0.561055
2,609
0.942558
0
0
458
0.165462
0
0
807
0.291546
d15d785d728aebc40b0768e439bd949eef225e9d
1,867
py
Python
qingmi/utils/crypto.py
xiongxianzhu/qingmi
ae5a446abec3982ebf2c5dde8546ef72f9453137
[ "BSD-3-Clause" ]
20
2018-05-22T09:29:40.000Z
2020-12-11T04:53:15.000Z
qingmi/utils/crypto.py
xiongxianzhu/qingmi
ae5a446abec3982ebf2c5dde8546ef72f9453137
[ "BSD-3-Clause" ]
65
2019-03-07T02:43:06.000Z
2021-01-07T03:43:52.000Z
qingmi/utils/crypto.py
xiongxianzhu/qingmi
ae5a446abec3982ebf2c5dde8546ef72f9453137
[ "BSD-3-Clause" ]
6
2019-03-08T06:39:47.000Z
2021-07-01T11:02:56.000Z
# coding: utf-8 """ Qingmi's standard crypto functions and utilities. """ import hashlib import hmac import random import time import base64 def get_random_string(length=12, allowed_chars='abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'): ...
24.246753
76
0.658811
0
0
0
0
0
0
0
0
863
0.426594
d15dbe35e2489fb154babfaa98a14ea5839eeee9
1,286
py
Python
chap3-3.py
mikidake/Ex3
0dcbc3c673d3311914e90febf26b578499658535
[ "MIT" ]
null
null
null
chap3-3.py
mikidake/Ex3
0dcbc3c673d3311914e90febf26b578499658535
[ "MIT" ]
null
null
null
chap3-3.py
mikidake/Ex3
0dcbc3c673d3311914e90febf26b578499658535
[ "MIT" ]
null
null
null
# Chapter3 Ex.3) # Modification of 'Guess My Number' # Guess My Number # # The computer picks a random number between 1 and 100 # The player tries to guess it and the computer lets # the player know if the guess is too high, too low # or right on the money # The player can try to guess up to three times im...
29.906977
82
0.615086
0
0
0
0
0
0
0
0
740
0.575428
d15f9a96fb68b6e5f7144ec6a07111b116feb832
702
py
Python
setup.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
setup.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
setup.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages version = '0.1.2' setup( name = 'etsproxy', version = version, description = 'proxy modules for backwards compatibility', long_description = open('README.rst').read(), packages = find_packages(), author = 'Enthought, Inc.', author_email = 'info...
28.08
76
0.632479
0
0
0
0
0
0
0
0
258
0.367521
d15fa493017a48b72a5d8296a6eda7a3577ea9b0
618
py
Python
VSCode_work/chapter5/chapter5_5_5.py
yangyahu-1994/Python-Crash-Course
6f8ef7fe8466d88931a0d3cc423ba5d966663b9d
[ "MIT" ]
12
2020-10-22T14:03:27.000Z
2022-03-28T08:14:22.000Z
VSCode_work/chapter5/chapter5_5_5.py
syncccc/Python-Crash-Course
51fe429dd606583a790f3c1603bb3439382c09e0
[ "MIT" ]
null
null
null
VSCode_work/chapter5/chapter5_5_5.py
syncccc/Python-Crash-Course
51fe429dd606583a790f3c1603bb3439382c09e0
[ "MIT" ]
9
2020-12-22T10:22:12.000Z
2022-03-28T08:14:53.000Z
# 创建变量,外星人为绿色 alien_color = 'green' # 条件判断 if alien_color == 'green': print("You get 5 points.") elif alien_color == 'yellow': print("\nYou get 10 points.") else: print("\nYou get 15 points.") # 创建变量,外星人为黄色 alien_color = 'yellow' # 条件判断 if alien_color == 'green': print("You get 5 points.") elif alien...
19.3125
33
0.634304
0
0
0
0
0
0
0
0
395
0.562678
d160b7200db507198e23acc84368e5834d8ad4b2
11,630
py
Python
openpype/modules/ftrack/event_handlers_server/action_tranfer_hierarchical_values.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
1
2022-03-23T06:24:24.000Z
2022-03-23T06:24:24.000Z
openpype/modules/ftrack/event_handlers_server/action_tranfer_hierarchical_values.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
null
null
null
openpype/modules/ftrack/event_handlers_server/action_tranfer_hierarchical_values.py
Tilix4/OpenPype
8909bd890170880aa7ec8b673abaa25a9bdf40f2
[ "MIT" ]
null
null
null
import copy import json import collections import ftrack_api from openpype_modules.ftrack.lib import ( ServerAction, statics_icon, ) from openpype_modules.ftrack.lib.avalon_sync import create_chunks class TransferHierarchicalValues(ServerAction): """Transfer values across hierarhcical attributes. A...
33.51585
79
0.524678
11,283
0.970163
0
0
0
0
0
0
3,327
0.286071
d161ec660784d01b878001017831664382622e75
382
py
Python
cyan/util/_enum.py
huajitech/cyan
6809f7b738b2b4c458d08346f533167c7e7c0a83
[ "MIT" ]
5
2022-01-23T11:57:55.000Z
2022-01-25T07:03:09.000Z
cyan/util/_enum.py
huajitech/cyan
6809f7b738b2b4c458d08346f533167c7e7c0a83
[ "MIT" ]
null
null
null
cyan/util/_enum.py
huajitech/cyan
6809f7b738b2b4c458d08346f533167c7e7c0a83
[ "MIT" ]
2
2022-01-25T03:04:43.000Z
2022-01-25T07:03:17.000Z
from enum import EnumMeta from typing import Any def get_enum_key(enum: EnumMeta, value: Any, default: Any = ...) -> Any: """ 获取 `Enum` 值对应的键。 参数: - enum: Enum 类型 - value: 将要查询对应键的值 - default: 当对应键不存在时返回的默认值(默认返回传入的 `value` 参数) """ return enum._value2member_map_.get( ...
20.105263
72
0.581152
0
0
0
0
0
0
0
0
238
0.50211
d16267f20a44ebfcce9ce2338b818e8f62ab0d51
2,809
py
Python
test/test_ean.py
blazaid/pycodes
e263fad64ad7d056feb7ac2056e1d27aec52a6d9
[ "Apache-2.0" ]
null
null
null
test/test_ean.py
blazaid/pycodes
e263fad64ad7d056feb7ac2056e1d27aec52a6d9
[ "Apache-2.0" ]
null
null
null
test/test_ean.py
blazaid/pycodes
e263fad64ad7d056feb7ac2056e1d27aec52a6d9
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from pycodes.ean import Ean13 from pycodes.exceptions import EmptyCode, CharacterNotAllowed, BadCodeLength, \ WrongChecksum class Ean13TestCase(TestCase): def setUp(self): self.valid_codes = ( '0000000000000', '1111111111116', '2222222...
36.960526
79
0.57209
2,650
0.94239
0
0
0
0
0
0
331
0.11771
d164f315ded6b300d4bc413ca69bcb22b80fe89a
1,479
py
Python
storage_cost_analysis.py
akosfenyvesi/FobSimApp
27e48dfbc5176a8f91cf30b2a1fdf7a181b56968
[ "CC0-1.0" ]
null
null
null
storage_cost_analysis.py
akosfenyvesi/FobSimApp
27e48dfbc5176a8f91cf30b2a1fdf7a181b56968
[ "CC0-1.0" ]
null
null
null
storage_cost_analysis.py
akosfenyvesi/FobSimApp
27e48dfbc5176a8f91cf30b2a1fdf7a181b56968
[ "CC0-1.0" ]
null
null
null
import os from pandas import DataFrame import time times = [0] sizes = [0] run_time_seconds = 200 def run_storage_analysis(): path = 'temporary' # initialize the size\ total_size = 0 # use the walk() method to navigate through directory tree for dirpath, dirnames, filenames in os.wa...
30.183673
89
0.586207
0
0
0
0
0
0
0
0
293
0.198107
d1658eb7471fa12b2945fd99872da777877398b1
10,163
py
Python
conda_forge_tick/mamba_solver.py
Prodyte/cf-scripts
1800432178f158d824b17faef9ed70d557a06c8d
[ "MIT" ]
null
null
null
conda_forge_tick/mamba_solver.py
Prodyte/cf-scripts
1800432178f158d824b17faef9ed70d557a06c8d
[ "MIT" ]
null
null
null
conda_forge_tick/mamba_solver.py
Prodyte/cf-scripts
1800432178f158d824b17faef9ed70d557a06c8d
[ "MIT" ]
null
null
null
"""This module has code to use mamba to test if a given package can be solved. The basic workflow is for yaml file in .ci_support 1. run the conda_build api to render the recipe 2. pull out the host/build and run requirements, possibly for more than one output. 3. send them to mamba to check if they can be solved. M...
29.372832
88
0.60858
1,987
0.195513
0
0
121
0.011906
0
0
3,644
0.358556
d16648848c84b4c377e73350d46f1aaa0e9b2444
649
py
Python
student_core/urls.py
michaelchen-lab/LMS_Backend
f8727398c66b94926e625ebd194e8330481727eb
[ "MIT" ]
null
null
null
student_core/urls.py
michaelchen-lab/LMS_Backend
f8727398c66b94926e625ebd194e8330481727eb
[ "MIT" ]
null
null
null
student_core/urls.py
michaelchen-lab/LMS_Backend
f8727398c66b94926e625ebd194e8330481727eb
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from student_core.views import * # Create a router and register our viewsets with it. router = DefaultRouter() router.register(r'initial', StudentInitialViewSet, basename="student_initial") router.register(r'submission', StudentSubm...
40.5625
107
0.802773
0
0
0
0
0
0
0
0
249
0.383667
d1680b983b55af635dd1b1c4efc3a00f490e8be1
10,276
py
Python
core/database/generator.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
6
2018-10-29T19:46:49.000Z
2022-03-10T15:39:47.000Z
core/database/generator.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
null
null
null
core/database/generator.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
4
2018-10-16T13:28:27.000Z
2022-02-05T18:43:57.000Z
#------------------Bombermans Team---------------------------------# #Author : B3mB4m #Concat : b3mb4m@protonmail.com #Project : https://github.com/b3mb4m/Shellsploit #LICENSE : https://github.com/b3mb4m/Shellsploit/blob/master/LICENSE #------------------------------------------------------------------# def generato...
34.139535
201
0.647042
0
0
0
0
0
0
0
0
1,262
0.12281
d168739d8cc490f771d23c7a1b691bf5116d7173
430
py
Python
bugtests/test286c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test286c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
bugtests/test286c.py
doom38/jython_v2.2.1
0803a0c953c294e6d14f9fc7d08edf6a3e630a15
[ "CNRI-Jython" ]
null
null
null
""" Test multilevel overriding of java methods in jythonc. """ from java.util import Date class SubDate(Date): def toString(self): s = Date.toString(self) return 'SubDate -> Date' class SubSubDate(SubDate): def toString(self): return 'SubSubDate -> ' + SubDate.toString(self) asser...
23.888889
65
0.655814
217
0.504651
0
0
0
0
0
0
143
0.332558
d168c674a46ffa65b77a20654f78a65b574815fc
2,195
py
Python
segmentation/utils/converter.py
enjoy-the-science/brain-texts
2f90cff6b7efd610791b278579c62ba802eb0f02
[ "MIT" ]
null
null
null
segmentation/utils/converter.py
enjoy-the-science/brain-texts
2f90cff6b7efd610791b278579c62ba802eb0f02
[ "MIT" ]
null
null
null
segmentation/utils/converter.py
enjoy-the-science/brain-texts
2f90cff6b7efd610791b278579c62ba802eb0f02
[ "MIT" ]
null
null
null
import warnings import sys if not sys.warnoptions: warnings.simplefilter("ignore") from segmentation.utils.DataReader import DataReader import argparse import glob import os def arguments(): parser = argparse.ArgumentParser() parser.add_argument("-i", "--input", type=str, help="P...
30.486111
99
0.638269
0
0
0
0
0
0
0
0
494
0.225057
d16a18b5e5a64b815eb735cb177e88912486769f
1,020
py
Python
bomber/views.py
acdh-oeaw/DAAC-DB
e1332db708bb6f5bfe5f202e6ae7e04bf4b593b3
[ "MIT" ]
null
null
null
bomber/views.py
acdh-oeaw/DAAC-DB
e1332db708bb6f5bfe5f202e6ae7e04bf4b593b3
[ "MIT" ]
null
null
null
bomber/views.py
acdh-oeaw/DAAC-DB
e1332db708bb6f5bfe5f202e6ae7e04bf4b593b3
[ "MIT" ]
null
null
null
from django.shortcuts import render from django_tables2 import RequestConfig from django.views.generic.detail import DetailView from django.db.models import Count from crew.models import Person from .models import Bomber from .tables import BomberTable def bomber(request): table = BomberTable(Bomber.objects.all(...
37.777778
171
0.755882
511
0.50098
0
0
0
0
0
0
133
0.130392
d16ceb896d9da20d75ec5f24a103e4ea1f377294
187
py
Python
BOJ/14000~14999/14471.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/14000~14999/14471.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/14000~14999/14471.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
n,m=map(int,input().split()) L = [list(map(int,input().split())) for i in range(m)] ans = 0 L.sort(key = lambda t:t[0],reverse = True) for i in L[:-1]: ans += max(0,n-i[0]) print(ans)
26.714286
54
0.582888
0
0
0
0
0
0
0
0
0
0
d16d1cb99b4e9f346c6042010a46e200ea4ee6ee
343
py
Python
libra/discovery_set.py
Xing-Huang/libra-client
bf74bc66b98a279476d751b637b1f84da84a51fe
[ "MIT" ]
null
null
null
libra/discovery_set.py
Xing-Huang/libra-client
bf74bc66b98a279476d751b637b1f84da84a51fe
[ "MIT" ]
null
null
null
libra/discovery_set.py
Xing-Huang/libra-client
bf74bc66b98a279476d751b637b1f84da84a51fe
[ "MIT" ]
null
null
null
from canoser import Struct from libra.account_config import AccountConfig from libra.event import EventKey class DiscoverySet(Struct): _fields = [] DISCOVERY_SET_STRUCT_NAME = "DiscoverySet" @classmethod def change_event_key(cls): return EventKey.new_from_address(AccountConfig.disc...
28.583333
82
0.752187
231
0.673469
0
0
128
0.373178
0
0
14
0.040816
d16e384cf387a664a33b991f18c0766cbc5a4c0d
4,294
py
Python
dev_tools/scan_inclusions.py
frannuca/quantlib
63e66f5f767397e5b7c79fa78eaed4e3e0a6b7c6
[ "BSD-3-Clause" ]
null
null
null
dev_tools/scan_inclusions.py
frannuca/quantlib
63e66f5f767397e5b7c79fa78eaed4e3e0a6b7c6
[ "BSD-3-Clause" ]
null
null
null
dev_tools/scan_inclusions.py
frannuca/quantlib
63e66f5f767397e5b7c79fa78eaed4e3e0a6b7c6
[ "BSD-3-Clause" ]
1
2022-02-24T04:54:18.000Z
2022-02-24T04:54:18.000Z
import os, sys, re, string import xml.dom.minidom import xml.dom.ext QL_ROOT = "C:/Projects/QuantLibSVN/trunk/" VC8 = "C:/Program Files/Microsoft Visual Studio 8/" BOOST = "C:/Boost/boost_1_33_1/" QL = QL_ROOT +"QuantLib/" QL_ADDIN = QL_ROOT + "QuantLibAddin/" OBJECT_HANDLER = QL_ROOT + "ObjectHandler/" ...
33.811024
98
0.617839
144
0.033535
0
0
0
0
0
0
686
0.159758
d16e58dab4d8d43ee2c7010a1953ed764c83accd
531
py
Python
python/15_bsearch/bsearch_recursion.py
shipan3452/algo
0494cc0d8f5daf108daf4358c4531a29279dd380
[ "Apache-2.0" ]
22,028
2018-09-27T05:55:19.000Z
2022-03-30T10:44:46.000Z
python/15_bsearch/bsearch_recursion.py
wangjing013/algo
b2c1228ff915287ad7ebeae4355fa26854ea1557
[ "Apache-2.0" ]
164
2018-10-06T15:11:08.000Z
2022-03-28T10:04:34.000Z
python/15_bsearch/bsearch_recursion.py
wangjing013/algo
b2c1228ff915287ad7ebeae4355fa26854ea1557
[ "Apache-2.0" ]
7,250
2018-09-30T00:45:25.000Z
2022-03-31T20:15:33.000Z
""" Author: dreamkong """ from typing import List def bsearch(nums: List[int], target: int) -> int: return bsearch_internally(nums, 0, len(nums)-1, target) def bsearch_internally(nums: List[int], low: int, high: int, target: int) -> int: if low > high: return -1 mid = low+int((high-low) >>...
23.086957
81
0.619586
0
0
0
0
0
0
0
0
29
0.054614
d16e9d0e26c5e30db9fe137457ef9304c8e4a910
5,779
py
Python
ports/esp32/boards/METERBOARD32/modules/mbus/device.py
henriknelson/micropython
eb6c2bd0f4ac133bcb8edb81fb29aa21ade5211b
[ "MIT" ]
1
2020-01-21T01:49:20.000Z
2020-01-21T01:49:20.000Z
ports/esp32/boards/METERBOARD32/modules/mbus/device.py
henriknelson/micropython
eb6c2bd0f4ac133bcb8edb81fb29aa21ade5211b
[ "MIT" ]
null
null
null
ports/esp32/boards/METERBOARD32/modules/mbus/device.py
henriknelson/micropython
eb6c2bd0f4ac133bcb8edb81fb29aa21ade5211b
[ "MIT" ]
null
null
null
from mbus.record import ValueRecord from machine import RTC import ubinascii import random import time import re class MBusDevice: """Class that encapulates/emulates a single MBus device""" def __init__(self, primary_address, secondary_address, manufacturer, meter_type): self._primary_address = primary...
37.283871
106
0.643191
5,664
0.9801
0
0
0
0
0
0
1,180
0.204188
d170c6d1ba1ad41f7fcd3c9b748bcfe597baaf93
20,442
py
Python
alphamind/model/data_preparing.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
186
2017-11-27T01:26:44.000Z
2022-03-28T16:11:33.000Z
alphamind/model/data_preparing.py
rongliang-tech/alpha-mind
39f720974c637d17e185e445dc05c9fc4863a241
[ "MIT" ]
2
2017-12-19T02:47:36.000Z
2021-01-09T05:25:18.000Z
alphamind/model/data_preparing.py
vishalbelsare/alpha-mind
9b7a23bc3354103f16e46ea31fd1ba6c7b69e0ae
[ "MIT" ]
65
2017-11-27T01:26:47.000Z
2022-03-17T10:50:52.000Z
# -*- coding: utf-8 -*- """ Created on 2017-8-24 @author: cheng.li """ import bisect import datetime as dt from typing import Iterable from typing import Union import numpy as np import pandas as pd from simpleutils.asserts import require from PyFin.DateUtilities import Period from PyFin.api import BizDayConventions...
41.54878
140
0.57964
0
0
0
0
0
0
0
0
1,208
0.059094
d170d5f0af719c619aa67b12d13b02a0402cfc23
666
py
Python
AppleFluenza/__main__.py
fxrcha/AppleFluenza
707f5bd991d11c523e7f363a501deec17b5ef6c3
[ "MIT" ]
6
2021-02-18T06:45:28.000Z
2021-02-24T14:59:43.000Z
AppleFluenza/__main__.py
fxrcha/AppleFluenza
707f5bd991d11c523e7f363a501deec17b5ef6c3
[ "MIT" ]
null
null
null
AppleFluenza/__main__.py
fxrcha/AppleFluenza
707f5bd991d11c523e7f363a501deec17b5ef6c3
[ "MIT" ]
null
null
null
import logging import sys from AppleFluenza.bot import auto_load_cogs, bot from utils.getenv import getenv from utils.cli import header, option_parser if __name__ == "__main__": header() auto_load_cogs(bot) optparser = option_parser() (options, args) = optparser.parse_args(sys.argv) token = g...
22.2
70
0.686186
0
0
0
0
0
0
0
0
93
0.13964
d172045e2991b3f71ea33d94ff2354816c13eea0
3,017
py
Python
tests/utils.py
data4help/shiny-bassoon
a240f4b5ec3ad8642e206b582266dc79125eba58
[ "MIT" ]
null
null
null
tests/utils.py
data4help/shiny-bassoon
a240f4b5ec3ad8642e206b582266dc79125eba58
[ "MIT" ]
null
null
null
tests/utils.py
data4help/shiny-bassoon
a240f4b5ec3ad8642e206b582266dc79125eba58
[ "MIT" ]
null
null
null
# %% Packages import os import pickle from pyhocon import ConfigTree # %% Functions def load_pickle(loading_path: str): """This method loads the file at the specified path :param loading_path: Path at which object is saved :type loading_path: str :return: Desired file :rtype: Could be basically...
31.103093
82
0.706331
0
0
0
0
0
0
0
0
1,592
0.527676
d1720a3f200947c6d598c557c5d06099c334bc22
11,905
py
Python
chatbrick/brick/icn.py
BluehackRano/cb-wh
ecf11100ad83df71eac9d56f6abbd59ceeda9d83
[ "MIT" ]
null
null
null
chatbrick/brick/icn.py
BluehackRano/cb-wh
ecf11100ad83df71eac9d56f6abbd59ceeda9d83
[ "MIT" ]
null
null
null
chatbrick/brick/icn.py
BluehackRano/cb-wh
ecf11100ad83df71eac9d56f6abbd59ceeda9d83
[ "MIT" ]
1
2019-03-05T06:50:11.000Z
2019-03-05T06:50:11.000Z
import logging import blueforge.apis.telegram as tg import requests from blueforge.apis.facebook import Message, ImageAttachment, QuickReply, QuickReplyTextItem, TemplateAttachment, \ GenericTemplate, Element, PostBackButton from chatbrick.util import get_items_from_xml, UNKNOWN_ERROR_MSG import time logger = lo...
44.256506
159
0.374549
12,196
0.956624
0
0
0
0
12,074
0.947055
4,298
0.337124
66f44f9766c4d040eac6704c6c2ae8556c45fffa
342
py
Python
Monitoring/dht22_monitor.py
jpradass/Raspberry-Utils
b14c25e7dc9bedbea62d19240db3fb202372ea2c
[ "MIT" ]
null
null
null
Monitoring/dht22_monitor.py
jpradass/Raspberry-Utils
b14c25e7dc9bedbea62d19240db3fb202372ea2c
[ "MIT" ]
null
null
null
Monitoring/dht22_monitor.py
jpradass/Raspberry-Utils
b14c25e7dc9bedbea62d19240db3fb202372ea2c
[ "MIT" ]
null
null
null
import time import requests INFLUX_URL = 'http://localhost:8086/write?db=DHT22' def sendDataToGrafana(humidity, temp, pressure): requests.post(INFLUX_URL, data='temperature value=' + str(temp)) requests.post(INFLUX_URL, data='humidity value=' + str(humidity)) requests.post(INFLUX_URL, data='pressure valu...
28.5
69
0.736842
0
0
0
0
0
0
0
0
92
0.269006
66f4c17269c6170a21fe09050ef187d175632d22
3,384
py
Python
compiler/parser/expression_models/comparison.py
Fire-Script/FireScript
8103b9bafe68163c8018aae2e760b6ad50310595
[ "MIT" ]
2
2021-12-31T02:23:13.000Z
2022-01-13T09:59:52.000Z
compiler/parser/expression_models/comparison.py
classPythonAddike/FireScript
8103b9bafe68163c8018aae2e760b6ad50310595
[ "MIT" ]
1
2021-12-31T13:24:07.000Z
2021-12-31T13:24:07.000Z
compiler/parser/expression_models/comparison.py
classPythonAddike/FireScript
8103b9bafe68163c8018aae2e760b6ad50310595
[ "MIT" ]
3
2021-12-31T12:08:23.000Z
2022-01-02T12:00:57.000Z
from compiler.bytecode.opcodes import OpCodes from compiler.errors.errors import FTypeError from compiler.parser.expressions import Expression from typing import List, Dict class EqualToExp(Expression): """ Syntax: (= arg1 arg2) Argument Types: Any Return Type: Bool Check if two objects are equal...
27.737705
100
0.60195
3,195
0.944149
0
0
414
0.12234
0
0
844
0.249409
66f5b0cbb8ef944f7945f54d1777a667ec6dbe6b
3,024
py
Python
Echoes/Filezilla.py
xeddmc/BrainDamage
855f696883d495e2f1b1b55ced31a54f3426c50e
[ "Apache-2.0" ]
1,520
2020-10-23T06:22:06.000Z
2022-03-26T09:17:47.000Z
Echoes/Filezilla.py
1612480331/BrainDamage
ac412e32583436cab3e836713008c207229c9cf2
[ "Apache-2.0" ]
12
2017-03-25T16:31:20.000Z
2021-12-28T05:04:52.000Z
Echoes/Filezilla.py
1612480331/BrainDamage
ac412e32583436cab3e836713008c207229c9cf2
[ "Apache-2.0" ]
661
2020-10-23T06:23:53.000Z
2021-09-06T23:05:30.000Z
# Based on the work of https://github.com/AlessandroZ/LaZagne/blob/master/Windows/lazagne/ import xml.etree.cElementTree as ET import os, base64 class Filezilla(): def __init__(self): options = {'command': '-f', 'action': 'store_true', 'dest': 'filezilla', 'help': 'filezilla'} def run(self): i...
37.8
102
0.472553
2,833
0.936839
0
0
0
0
0
0
668
0.220899
66f69535e1d0a44683902c8b5bdee87b710b453d
1,519
py
Python
flights/models.py
solnsubuga/flightapp
2da79cb4edef51507152a1d27388292a15b67815
[ "Apache-2.0" ]
null
null
null
flights/models.py
solnsubuga/flightapp
2da79cb4edef51507152a1d27388292a15b67815
[ "Apache-2.0" ]
8
2020-02-12T00:24:07.000Z
2021-09-08T01:11:22.000Z
flights/models.py
solnsubuga/flightapp
2da79cb4edef51507152a1d27388292a15b67815
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class Flight(models.Model): STATUSES = ( ('SCHEDULED', 'SCHEDULED'), ('DELAYED', 'DELAYED'), ('ON_TIME', 'ON TIME'), ('ARRIVED', 'ARRIVED'), ('LATE', 'LATE') ) number = models.CharField(max_len...
30.38
64
0.681369
1,437
0.946017
0
0
279
0.183673
0
0
109
0.071758
66f7a9674e5203f57287eed9d7aa1d82b181de7d
709
py
Python
look_w.py
kakkarja/english-words
aa6a7c20044d95b6209f06189c8feb424a9a3c2a
[ "Unlicense" ]
1
2020-10-08T00:30:06.000Z
2020-10-08T00:30:06.000Z
look_w.py
kakkarja/english-words
aa6a7c20044d95b6209f06189c8feb424a9a3c2a
[ "Unlicense" ]
1
2018-05-01T14:01:14.000Z
2018-05-01T14:01:14.000Z
look_w.py
kakkarja/english-words
aa6a7c20044d95b6209f06189c8feb424a9a3c2a
[ "Unlicense" ]
1
2018-04-29T18:38:40.000Z
2018-04-29T18:38:40.000Z
import os from pathlib import Path # Geting users home directory h_path = str(Path.home()) # + any addtional path to a folder that contain word.txt # Change directory to h_path where words.txt is located os.chdir(h_path) # Open words.txt. words = open('words.txt').read().split() def look_w(word,num): # Looking ...
29.541667
85
0.64598
0
0
0
0
0
0
0
0
329
0.461431
66f8eeacb2ab5fc5e4c283571992585729baa9ec
6,284
py
Python
libcity/model/trajectory_loc_prediction/SERM.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
221
2021-09-06T03:33:31.000Z
2022-03-28T05:36:49.000Z
libcity/model/trajectory_loc_prediction/SERM.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
43
2021-09-19T16:12:28.000Z
2022-03-31T16:29:03.000Z
libcity/model/trajectory_loc_prediction/SERM.py
moghadas76/test_bigcity
607b9602c5b1113b23e1830455e174b0901d7558
[ "Apache-2.0" ]
64
2021-09-06T07:56:10.000Z
2022-03-25T08:48:35.000Z
import torch import torch.nn as nn import numpy as np from libcity.model.abstract_model import AbstractModel from torch.nn.utils.rnn import pack_padded_sequence from torch.nn.utils.rnn import pad_packed_sequence class EmbeddingMatrix(nn.Module): # text_embdeding def __init__(self, input_size, output_size, word_v...
45.868613
117
0.635901
6,166
0.965852
0
0
0
0
0
0
1,498
0.234649
66fccecdd57f544efb11cfb6e000ed732e25712c
826
py
Python
not_used/jobs_to_csv.py
oaklandanalytics/parcel_cutting_board
c134ab3c239090e7acb04d1257186763bf437640
[ "BSD-3-Clause" ]
null
null
null
not_used/jobs_to_csv.py
oaklandanalytics/parcel_cutting_board
c134ab3c239090e7acb04d1257186763bf437640
[ "BSD-3-Clause" ]
null
null
null
not_used/jobs_to_csv.py
oaklandanalytics/parcel_cutting_board
c134ab3c239090e7acb04d1257186763bf437640
[ "BSD-3-Clause" ]
1
2019-12-27T15:28:17.000Z
2019-12-27T15:28:17.000Z
import geopandas as gpd # not used anymore - converts esri jobs shapefile to a csv # see assign_jobs_lat_lng.py gdf = gpd.GeoDataFrame.from_file("est10_esri_gt1.shp") gdf = gdf.to_crs(epsg=4326) fname_map = { 'Duns_Numbe': 'duns_number', 'Business_N': 'business_name', 'Emp_Total': 'total_employment', ...
29.5
79
0.687651
0
0
0
0
0
0
0
0
491
0.594431
66fcf10eec6db42f209edd690e099b600c633815
3,968
py
Python
sentence_generator.py
gabrielilharco/sentence-generator
5d75dca74363bd9ddcd54f9559b94bb6185667e3
[ "MIT" ]
5
2018-05-12T13:54:07.000Z
2019-06-16T09:56:52.000Z
sentence_generator.py
gabrielilharco/sentence-generator
5d75dca74363bd9ddcd54f9559b94bb6185667e3
[ "MIT" ]
null
null
null
sentence_generator.py
gabrielilharco/sentence-generator
5d75dca74363bd9ddcd54f9559b94bb6185667e3
[ "MIT" ]
null
null
null
import argparse import random import operator import os def parse_grammar(file_path): """ Generate a grammar from a file describing the production rules. Note that the symbols are inferred from the production rules. For more information on the format of the file, please reffer to the README.md or the the sample ...
29.834586
92
0.717742
0
0
0
0
0
0
0
0
1,732
0.436492
66fe1b2c78a96ea5174f4741a76ed0ec07d633c4
6,639
py
Python
student_paulo.py
IgaoGuru/Csgo-NeuralNetwork
d161548cb5b61cf4f515e3e0c845daf4cfcaa8ba
[ "MIT" ]
2
2020-10-18T19:20:16.000Z
2021-11-15T14:11:39.000Z
student_paulo.py
IgaoGuru/Csgo-NeuralNetwork
d161548cb5b61cf4f515e3e0c845daf4cfcaa8ba
[ "MIT" ]
3
2021-06-08T21:51:43.000Z
2022-01-13T02:54:14.000Z
student_paulo.py
IgaoGuru/Csgo-NeuralNetwork
d161548cb5b61cf4f515e3e0c845daf4cfcaa8ba
[ "MIT" ]
null
null
null
#TODO: use only one (RGB) channel import numpy as np import pandas as pd import os from torch.utils import data from torch.utils.data.dataloader import DataLoader as DataLoader import torch from torchvision import transforms from natsort import natsorted, ns import cv2 from PIL import Image import matplotlib.pyplot as ...
32.072464
98
0.595722
2,769
0.417081
0
0
0
0
0
0
1,760
0.2651
66ff808193f491101625deb10d4b03096229d8fa
204
py
Python
tests/deeply/test_exception.py
achillesrasquinha/deeply
fd1ce32da130591fc92df8df89e07f1497b2b902
[ "MIT" ]
2
2021-10-05T16:37:30.000Z
2021-10-11T21:31:43.000Z
tests/deeply/test_exception.py
achillesrasquinha/deeply
fd1ce32da130591fc92df8df89e07f1497b2b902
[ "MIT" ]
null
null
null
tests/deeply/test_exception.py
achillesrasquinha/deeply
fd1ce32da130591fc92df8df89e07f1497b2b902
[ "MIT" ]
1
2021-07-16T02:23:37.000Z
2021-07-16T02:23:37.000Z
# imports - module imports from deeply.exception import ( DeeplyError ) # imports - test imports import pytest def test_deeply_error(): with pytest.raises(DeeplyError): raise DeeplyError
18.545455
36
0.730392
0
0
0
0
0
0
0
0
50
0.245098
66ffbb10c3681dba5f743ff2d041228d5ccdc263
1,153
py
Python
test/common.py
philippe-goetz/python-jwt
8dff3e43023f344642af55ad82f3cfb28b00f8d5
[ "MIT" ]
null
null
null
test/common.py
philippe-goetz/python-jwt
8dff3e43023f344642af55ad82f3cfb28b00f8d5
[ "MIT" ]
null
null
null
test/common.py
philippe-goetz/python-jwt
8dff3e43023f344642af55ad82f3cfb28b00f8d5
[ "MIT" ]
null
null
null
""" Common setup and patching for tests """ #pylint: disable=wrong-import-order from datetime import datetime as orig_datetime, timedelta from mock import patch import threading #pylint: disable=W0401,W0614 from test.fixtures import * _thread_state = threading.local() def _new_utcnow(): """ Return last set datet...
28.825
78
0.70425
0
0
0
0
0
0
0
0
364
0.315698
0f0041c3812a531ebd6ee9156ded1a3d042762da
11,015
py
Python
modules/bot_oc.py
opencitations/telegrambot
7a74893bb0a7a85d5db04045832d7b2c676bff48
[ "MIT" ]
1
2021-07-18T02:48:40.000Z
2021-07-18T02:48:40.000Z
modules/bot_oc.py
opencitations/telegrambot
7a74893bb0a7a85d5db04045832d7b2c676bff48
[ "MIT" ]
null
null
null
modules/bot_oc.py
opencitations/telegrambot
7a74893bb0a7a85d5db04045832d7b2c676bff48
[ "MIT" ]
null
null
null
my_commands = { "/contact" : {"notes":" Retrieve all the accounts (email, Twitter, GitHub, etc.) to contact the OpenCitations folks", 'parse_mode':'Markdown'}, "/ask" : {"notes":"Params: <DOI>. Retrieve information about the entity identified by the input DOI (source: COCI)", 'parse_mode':'Markdown'}, "/ci...
39.90942
167
0.535361
0
0
0
0
0
0
0
0
5,733
0.520472
0f0047c195a44a1e7096ffa7a8721ac9af656c82
225
py
Python
WebFrameDocs/src/demo/fileStorage/script/genScaleMap.py
Bean-jun/LearnGuide
30a8567b222d18b15d3e9027a435b5bfe640a046
[ "MIT" ]
1
2022-02-23T13:42:01.000Z
2022-02-23T13:42:01.000Z
WebFrameDocs/src/demo/fileStorage/script/genScaleMap.py
Bean-jun/LearnGuide
30a8567b222d18b15d3e9027a435b5bfe640a046
[ "MIT" ]
null
null
null
WebFrameDocs/src/demo/fileStorage/script/genScaleMap.py
Bean-jun/LearnGuide
30a8567b222d18b15d3e9027a435b5bfe640a046
[ "MIT" ]
null
null
null
""" A-Z: 65-90 a-z: 97-122 """ dic = {} n = 0 for i in range(10): dic[n] = str(i) n += 1 for i in range(65, 91): dic[n] = chr(i) n += 1 for i in range(97, 123): dic[n] = chr(i) n += 1 print(dic)
9.782609
24
0.444444
0
0
0
0
0
0
0
0
30
0.133333
0f00a88c0e78055394352e113ece75275cfd78f2
6,894
py
Python
src/dagian/tests/lifetime_feature_generator.py
ianlini/dagian
2ab5b574ba7bbccb204bd285b3d8e1a6200972ce
[ "MIT" ]
11
2018-06-20T16:30:01.000Z
2021-08-16T14:14:40.000Z
src/dagian/tests/lifetime_feature_generator.py
ianlini/dagian
2ab5b574ba7bbccb204bd285b3d8e1a6200972ce
[ "MIT" ]
29
2018-06-09T10:32:57.000Z
2019-02-24T13:06:53.000Z
src/dagian/tests/lifetime_feature_generator.py
ianlini/dagian
2ab5b574ba7bbccb204bd285b3d8e1a6200972ce
[ "MIT" ]
3
2018-06-23T05:12:33.000Z
2021-10-11T02:51:49.000Z
from __future__ import print_function, division, absolute_import, unicode_literals from io import StringIO import dagian from dagian import Argument as A from dagian.decorators import ( require, will_generate, ) import numpy as np import pandas as pd from scipy.sparse import csr_matrix from sklearn.model_selec...
41.035714
95
0.66333
6,542
0.948941
0
0
6,372
0.924282
0
0
2,161
0.313461
0f0216b386fed492d52639a4b739d1af569a3fae
2,198
py
Python
spyre/spyre/spyrelets/peaktrack_spyrelet.py
zhong-lab/code
068ca3df58c3804fcc858f26ac5b26106e1d0cb0
[ "BSD-2-Clause" ]
1
2022-03-27T07:47:19.000Z
2022-03-27T07:47:19.000Z
peaktrack_spyrelet.py
zhong-lab/code
068ca3df58c3804fcc858f26ac5b26106e1d0cb0
[ "BSD-2-Clause" ]
null
null
null
peaktrack_spyrelet.py
zhong-lab/code
068ca3df58c3804fcc858f26ac5b26106e1d0cb0
[ "BSD-2-Clause" ]
4
2019-11-08T22:39:04.000Z
2021-11-05T02:39:37.000Z
import numpy as np import pyqtgraph as pg import matplotlib.pyplot as plt import csv import sys from PyQt5.Qsci import QsciScintilla, QsciLexerPython from PyQt5.QtWidgets import QPushButton, QTextEdit, QVBoxLayout import time import random import os from spyre import Spyrelet, Task, Element from spyre.widget...
32.323529
73
0.61465
1,392
0.633303
0
0
1,242
0.565059
0
0
313
0.142402
0f02200fde2e322e2f135a475e57f32165299b7f
4,592
py
Python
cdpybio/general.py
cdeboever3/cdpybio
893010dc42e4c324af6cdd1c93ca415466fab0cf
[ "MIT" ]
2
2016-09-09T11:54:03.000Z
2021-12-09T16:12:23.000Z
cdpybio/general.py
cdeboever3/cdpybio
893010dc42e4c324af6cdd1c93ca415466fab0cf
[ "MIT" ]
null
null
null
cdpybio/general.py
cdeboever3/cdpybio
893010dc42e4c324af6cdd1c93ca415466fab0cf
[ "MIT" ]
2
2022-01-28T20:05:05.000Z
2022-02-01T18:04:43.000Z
import re import numpy as np import pandas as pd import scipy.stats as stats R_REGEX = re.compile('(.*):(.*)-(.*)') R_REGEX_STRAND = re.compile('(.*):(.*)-(.*):(.*)') def chunks(l, n): """Yield successive n-sized chunks from l.""" # https://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-even...
29.248408
97
0.617814
0
0
224
0.04878
0
0
0
0
2,225
0.484538
0f026f96d7b8eeca00baed4c3da006c965de1fd0
4,351
py
Python
docs/doxygen/log.py
tkrupa-intel/openvino
8c0ff5d9065486d23901a9c27debd303661f465f
[ "Apache-2.0" ]
1
2022-01-19T15:36:45.000Z
2022-01-19T15:36:45.000Z
docs/doxygen/log.py
tkrupa-intel/openvino
8c0ff5d9065486d23901a9c27debd303661f465f
[ "Apache-2.0" ]
22
2021-02-03T12:41:51.000Z
2022-02-21T13:04:48.000Z
docs/doxygen/log.py
tkrupa-intel/openvino
8c0ff5d9065486d23901a9c27debd303661f465f
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2017-2021 Intel Corporation # # 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.apa...
39.198198
110
0.568605
0
0
0
0
0
0
0
0
1,386
0.318547
0f0332fe549cc56074e3fec02ab90c04fd4ee657
4,735
py
Python
rec_to_nwb/processing/nwb/components/electrodes/extension/fl_electrode_extension_manager.py
asilvaalex4/rec_to_nwb
8f7d9535fa25002bf821d4f04aacf1d722ab9601
[ "Apache-2.0" ]
1
2021-01-20T00:26:30.000Z
2021-01-20T00:26:30.000Z
rec_to_nwb/processing/nwb/components/electrodes/extension/fl_electrode_extension_manager.py
asilvaalex4/rec_to_nwb
8f7d9535fa25002bf821d4f04aacf1d722ab9601
[ "Apache-2.0" ]
12
2020-11-13T01:36:32.000Z
2022-01-23T20:35:55.000Z
rec_to_nwb/processing/nwb/components/electrodes/extension/fl_electrode_extension_manager.py
asilvaalex4/rec_to_nwb
8f7d9535fa25002bf821d4f04aacf1d722ab9601
[ "Apache-2.0" ]
3
2020-10-20T06:52:45.000Z
2021-07-06T23:00:53.000Z
import copy import logging.config import os from rec_to_nwb.processing.exceptions.not_compatible_metadata import NotCompatibleMetadata from rec_to_nwb.processing.header.module.header import Header from rec_to_nwb.processing.nwb.components.electrodes.extension.fl_electrode_extension import FlElectrodeExtension from rec...
46.421569
122
0.741922
3,886
0.820697
0
0
3,828
0.808448
0
0
167
0.035269
0f03c437607dd785e33ff9e71aa3dbb48d46d5a4
1,314
py
Python
utils/prediction.py
ZhengLiangliang1996/Speech-Recogniton-Tool-Box
0a2353d990e3f0a3057a747ff52fd3a066d4289d
[ "MIT" ]
null
null
null
utils/prediction.py
ZhengLiangliang1996/Speech-Recogniton-Tool-Box
0a2353d990e3f0a3057a747ff52fd3a066d4289d
[ "MIT" ]
null
null
null
utils/prediction.py
ZhengLiangliang1996/Speech-Recogniton-Tool-Box
0a2353d990e3f0a3057a747ff52fd3a066d4289d
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ Author: LiangLiang ZHENG Date: File Description """ import sys import time import os sys.path.append('..') from __future__ import print_function import sys import argparse from keras import backend as K from utils.cha_level_helper import output_sequence import numpy as np #TODO: still need...
28.565217
80
0.649924
0
0
0
0
0
0
0
0
510
0.388128
0f043fd8060ea318b76a0b1d439aef5060a3a833
14,408
py
Python
smq/plot.py
x75/smq
17fc1219b3f34f6e6035d261021b8e772b7a287d
[ "MIT" ]
null
null
null
smq/plot.py
x75/smq
17fc1219b3f34f6e6035d261021b8e772b7a287d
[ "MIT" ]
null
null
null
smq/plot.py
x75/smq
17fc1219b3f34f6e6035d261021b8e772b7a287d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as pl import pandas as pd import seaborn as sns import smq.logging as log # check pandas, seaborne # FIXME: fix hardcoded tablenames from smq.utils import set_attr_from_dict def get_data_from_item_log(items): tbl_key = items[0].name # print "%s.run: tbl_key = %s" ...
33.981132
139
0.530261
13,750
0.954331
0
0
0
0
0
0
4,821
0.334606
0f045c6ae18a61a369eced501af84eaf8bea2c34
642
py
Python
test/model/test_pddl_action_representation.py
DLR-RM/rafcon-task-planner-plugin
9d004c76aa6f54c992a2f3f00b9dd98f9fb4e498
[ "BSD-3-Clause" ]
1
2020-05-21T17:08:02.000Z
2020-05-21T17:08:02.000Z
test/model/test_pddl_action_representation.py
DLR-RM/rafcon-task-planner-plugin
9d004c76aa6f54c992a2f3f00b9dd98f9fb4e498
[ "BSD-3-Clause" ]
null
null
null
test/model/test_pddl_action_representation.py
DLR-RM/rafcon-task-planner-plugin
9d004c76aa6f54c992a2f3f00b9dd98f9fb4e498
[ "BSD-3-Clause" ]
null
null
null
from rafcontpp.model.pddl_action_representation import PddlActionRepresentation from rafcontpp.model.pddl_action_representation import action_to_upper def test_action_to_upper(): #arrange action = PddlActionRepresentation('myAction','(action:)',['(at ?a - Object)'],['Object'],[':strips'],['param1','param2']) ...
42.8
125
0.697819
0
0
0
0
0
0
0
0
163
0.253894
0f049fdb1bc9e04e29bedc84047ec6d4aaba04ae
13,380
py
Python
awsume/awsumepy/app.py
icyfork/awsume
524c667599b8bfba521f0397214bb363f1b706fa
[ "MIT" ]
null
null
null
awsume/awsumepy/app.py
icyfork/awsume
524c667599b8bfba521f0397214bb363f1b706fa
[ "MIT" ]
null
null
null
awsume/awsumepy/app.py
icyfork/awsume
524c667599b8bfba521f0397214bb363f1b706fa
[ "MIT" ]
null
null
null
import os import sys import argparse import difflib import json import logging import pluggy import colorama import boto3 from pathlib import Path from . lib.autoawsume import create_autoawsume_profile from ..autoawsume.process import kill, kill_autoawsume from . lib.profile import aggregate_profiles, get_role_chain, ...
46.137931
142
0.626831
12,609
0.942377
0
0
0
0
0
0
1,473
0.11009
0f067b4300c65db4f51f2b088598a9976507db44
4,254
py
Python
mtkclient/gui/toolsMenu.py
P-Salik/mtkclient
ca702a4ec84da4ec607f1e6484ff605e79a69f46
[ "MIT" ]
null
null
null
mtkclient/gui/toolsMenu.py
P-Salik/mtkclient
ca702a4ec84da4ec607f1e6484ff605e79a69f46
[ "MIT" ]
null
null
null
mtkclient/gui/toolsMenu.py
P-Salik/mtkclient
ca702a4ec84da4ec607f1e6484ff605e79a69f46
[ "MIT" ]
null
null
null
from PySide6.QtCore import Slot, QObject, Signal from PySide6.QtWidgets import QTableWidget, QTableWidgetItem from mtkclient.gui.toolkit import trap_exc_during_debug, asyncThread, FDialog from mtkclient.Library.mtk_da_cmd import DA_handler import os import sys import json sys.excepthook = trap_exc_during_debug class U...
39.388889
110
0.668077
3,935
0.925012
0
0
970
0.228021
0
0
296
0.069582
0f07cbe922efe088c09747c107ff6e124768d889
412
py
Python
Semenenya_Vladislav_dz_2/task_2_3.py
neesaj/1824_GB_Python_1
bcafcef4819fcaaddc7a9f7a93ab256b6637c516
[ "MIT" ]
null
null
null
Semenenya_Vladislav_dz_2/task_2_3.py
neesaj/1824_GB_Python_1
bcafcef4819fcaaddc7a9f7a93ab256b6637c516
[ "MIT" ]
null
null
null
Semenenya_Vladislav_dz_2/task_2_3.py
neesaj/1824_GB_Python_1
bcafcef4819fcaaddc7a9f7a93ab256b6637c516
[ "MIT" ]
null
null
null
lst = ['инженер-конструктор Игорь', 'главный бухгалтер МАРИНА', 'токарь высшего разряда нИКОЛАй', 'директор аэлита'] some_str = '' i = 0 for elem in lst: some_str = elem lst[i] = some_str.split() some_str = '' i += 1 for i in lst: for j in range(len(i)): if j == len(i)-1: som...
21.684211
116
0.558252
0
0
0
0
0
0
0
0
216
0.428571
0f095bc4079d063bb1c75421ffb1d0b5da98ff4e
834
py
Python
mooc.py
fichas/Down_Mooc
9777755cdf44aadb10100ddcd6437f2f16afe98c
[ "MIT" ]
18
2020-02-28T08:42:19.000Z
2021-08-24T15:53:35.000Z
mooc.py
fichas/Down_Mooc
9777755cdf44aadb10100ddcd6437f2f16afe98c
[ "MIT" ]
1
2020-08-07T06:59:19.000Z
2020-08-07T07:25:53.000Z
mooc.py
fichas/Down_Mooc
9777755cdf44aadb10100ddcd6437f2f16afe98c
[ "MIT" ]
2
2020-08-11T13:25:19.000Z
2021-08-31T03:23:40.000Z
# -*- coding: utf-8 -*- import re import sys import os import requests headers = {'Referer':'http://d0.ananas.chaoxing.com/','User-Agent': 'User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'} url=sys.argv[1] #print(url) re...
22.540541
205
0.568345
0
0
0
0
0
0
0
0
349
0.418465
0f0a513efe32c280bcacaf1a2ab45f2537b65890
1,220
py
Python
src/api/test/test_datahub_serializer.py
RogerTangos/datahub-stub
8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89
[ "MIT" ]
192
2015-07-29T15:20:35.000Z
2021-09-06T21:42:01.000Z
src/api/test/test_datahub_serializer.py
RogerTangos/datahub-stub
8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89
[ "MIT" ]
120
2015-10-27T21:43:11.000Z
2021-08-12T15:15:43.000Z
src/api/test/test_datahub_serializer.py
RogerTangos/datahub-stub
8c3e89c792e45ccc9ad067fcf085ddd52f7ecd89
[ "MIT" ]
56
2015-09-19T05:58:41.000Z
2021-09-14T09:46:11.000Z
from mock import patch from django.test import TestCase from ..serializer import DataHubSerializer class DataHubSerializerTests(TestCase): """Test DataHubSerializer methods""" def setUp(self): self.username = "delete_me_username" self.repo_base = "delete_me_repo_base" self.password ...
32.105263
72
0.682787
1,116
0.914754
0
0
0
0
0
0
181
0.148361
0f0a874b832d5307c77060e388ac90f502854fe7
852
py
Python
notes/algo-ds-practice/problems/number_theory/multiplicative_mod_inverse/multiplicative_mod_inverse.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
6
2020-07-05T05:15:19.000Z
2021-01-24T20:17:14.000Z
notes/algo-ds-practice/problems/number_theory/multiplicative_mod_inverse/multiplicative_mod_inverse.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
null
null
null
notes/algo-ds-practice/problems/number_theory/multiplicative_mod_inverse/multiplicative_mod_inverse.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
2
2020-09-14T06:46:37.000Z
2021-06-15T09:17:21.000Z
from algo.number_theory.extended_gcd.extended_gcd import extended_gcd from algo.number_theory.eulers_totient_function.eulers_totient import etf def mod_inverse_gcd(a, m): ''' a and m should be coprime! Complexity -> O(log(m)). ''' return extended_gcd(a, m)[0] def mod_inverse_eulers(a, m): ''...
20.780488
73
0.627934
0
0
0
0
0
0
0
0
319
0.374413
0f0b7b2c5564b7c02453602dda17e447559b3a6d
56
py
Python
tests/unchained/conftest.py
uolot/py-yaml-fixtures
0b165d91578420cd4cb0b2fc245ae0e39578ede5
[ "MIT" ]
13
2018-08-14T12:28:54.000Z
2022-02-08T04:25:47.000Z
tests/unchained/conftest.py
uolot/py-yaml-fixtures
0b165d91578420cd4cb0b2fc245ae0e39578ede5
[ "MIT" ]
5
2019-02-23T04:01:48.000Z
2021-04-08T17:37:40.000Z
tests/unchained/conftest.py
uolot/py-yaml-fixtures
0b165d91578420cd4cb0b2fc245ae0e39578ede5
[ "MIT" ]
5
2018-09-04T03:28:46.000Z
2021-04-09T11:46:03.000Z
from flask_unchained.bundles.sqlalchemy.pytest import *
28
55
0.857143
0
0
0
0
0
0
0
0
0
0
0f0bb21d732e1e1a3fe041762c735e3ea255fe56
345
py
Python
meadow/meadow/migrations/0007_book_is_approved.py
digital-gachilib/meadow
7a4510bc6290a74305536c35b24867d79107bd30
[ "MIT" ]
null
null
null
meadow/meadow/migrations/0007_book_is_approved.py
digital-gachilib/meadow
7a4510bc6290a74305536c35b24867d79107bd30
[ "MIT" ]
26
2020-04-05T08:37:16.000Z
2021-09-22T18:47:20.000Z
meadow/meadow/migrations/0007_book_is_approved.py
digital-gachilib/meadow
7a4510bc6290a74305536c35b24867d79107bd30
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-28 15:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("meadow", "0006_mmake_isbn_charfield"), ] operations = [ migrations.AddField(model_name="book", name="is_approved", field=models.BooleanField...
23
110
0.684058
252
0.730435
0
0
0
0
0
0
101
0.292754
0f0bb8584063b7dea01c7c517b101023b6b85c01
2,831
py
Python
fire/cli/__init__.py
xidus/FIRE
9508b26faff4830b70981c21d3fdc33c20c85dde
[ "MIT" ]
1
2018-12-15T16:13:09.000Z
2018-12-15T16:13:09.000Z
fire/cli/__init__.py
xidus/FIRE
9508b26faff4830b70981c21d3fdc33c20c85dde
[ "MIT" ]
49
2018-11-13T23:04:09.000Z
2019-10-31T11:15:13.000Z
fire/cli/__init__.py
xidus/FIRE
9508b26faff4830b70981c21d3fdc33c20c85dde
[ "MIT" ]
3
2018-11-15T14:06:36.000Z
2019-01-07T13:30:29.000Z
""" Kommandoliniebrugergrænsefladen (en command-line interface, CLI) til FIREs API. """ import sys import click from fire.api import FireDb firedb = FireDb() _show_colors = True def _set_monochrome(ctx, param, value): """ Anvend værdien af --monokrom og sæt den globale værdi af _show_colors. """ g...
22.291339
110
0.635818
0
0
0
0
0
0
0
0
1,281
0.449001
0f0d09870e10aa47900875345d9579dc0d49b729
817
py
Python
background_modelling.py
blurry-mood/computer-vision-opencv
327fe65b1c731e19c4d83c468f93cc7edc818918
[ "MIT" ]
1
2021-12-22T09:47:15.000Z
2021-12-22T09:47:15.000Z
background_modelling.py
blurry-mood/computer-vision-opencv
327fe65b1c731e19c4d83c468f93cc7edc818918
[ "MIT" ]
null
null
null
background_modelling.py
blurry-mood/computer-vision-opencv
327fe65b1c731e19c4d83c468f93cc7edc818918
[ "MIT" ]
null
null
null
import cv2 as cv """ Choose background substractor """ algo = 'MOG2' input = 'videos/shine.mp4' if algo == 'MOG2': backSub = cv.createBackgroundSubtractorMOG2() else: backSub = cv.createBackgroundSubtractorKNN() capture = cv.VideoCapture(input) if not capture.isOpened(): print('Unable to open: ' + inpu...
22.081081
73
0.609547
0
0
0
0
0
0
0
0
104
0.127295
0f10e889a3b3c3b84aaddb6c89475481e138ea2f
3,271
py
Python
visualization.py
Agnar22/MachineLearning
bee0fcf0712de6384eb0d2d95be8574fea31fdf2
[ "MIT" ]
1
2021-01-11T18:00:06.000Z
2021-01-11T18:00:06.000Z
visualization.py
Agnar22/MachineLearning
bee0fcf0712de6384eb0d2d95be8574fea31fdf2
[ "MIT" ]
null
null
null
visualization.py
Agnar22/MachineLearning
bee0fcf0712de6384eb0d2d95be8574fea31fdf2
[ "MIT" ]
null
null
null
import config import pandas as pd import matplotlib.pyplot as plt #import lstm from keras.models import Sequential import matplotlib.dates as mdates def visualize_spread_for_countries(data: pd.DataFrame): """ :param data: a pandas dataframe of the data to visualize. :return: """ countries_to_visualize = [] ...
38.034884
121
0.641394
0
0
0
0
0
0
0
0
1,163
0.355549
0f110666530b2d0778bb5bff1c809c8ebc73b13f
1,146
py
Python
src/livedumper/common.py
m45t3r/livedumper
f6441283269b4a602cafea3be5cda9446fc64005
[ "BSD-2-Clause" ]
17
2015-02-10T12:18:22.000Z
2018-03-23T05:28:51.000Z
src/livedumper/common.py
m45t3r/livedumper
f6441283269b4a602cafea3be5cda9446fc64005
[ "BSD-2-Clause" ]
3
2015-01-12T17:32:20.000Z
2016-12-13T23:55:38.000Z
src/livedumper/common.py
m45t3r/livedumper
f6441283269b4a602cafea3be5cda9446fc64005
[ "BSD-2-Clause" ]
3
2015-02-06T09:58:09.000Z
2016-01-04T23:46:28.000Z
"Common functions that may be used everywhere" from __future__ import (absolute_import, division, print_function, unicode_literals) import os import sys from distutils.util import strtobool try: input = raw_input except NameError: pass def yes_no_query(question): """Ask the user...
26.045455
70
0.602094
0
0
0
0
0
0
0
0
546
0.47644
0f116262d51df870092baaa77da7c1a3942b13fa
121
py
Python
BOJ/week02/recursion/ex10872.py
FridayAlgorithm/taesong_study
50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c
[ "MIT" ]
null
null
null
BOJ/week02/recursion/ex10872.py
FridayAlgorithm/taesong_study
50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c
[ "MIT" ]
null
null
null
BOJ/week02/recursion/ex10872.py
FridayAlgorithm/taesong_study
50c07ee6ead0fb5bb80e0decb03b801cbbbabf9c
[ "MIT" ]
2
2020-12-27T15:03:46.000Z
2021-03-06T14:13:34.000Z
N = int(input()) def factorial(N): if N == 0: return 1 return N * factorial(N-1) print(factorial(N))
11
29
0.545455
0
0
0
0
0
0
0
0
0
0
0f11a8afccc861d59d504d51479b9cc0588a8670
4,498
py
Python
pytest_lambda/fixtures.py
mikelane/pytest-lambda
e83b47e3b4fdb088f18fc7ee1f52c3ae933c5663
[ "MIT" ]
1
2021-04-21T03:07:15.000Z
2021-04-21T03:07:15.000Z
pytest_lambda/fixtures.py
mikelane/pytest-lambda
e83b47e3b4fdb088f18fc7ee1f52c3ae933c5663
[ "MIT" ]
null
null
null
pytest_lambda/fixtures.py
mikelane/pytest-lambda
e83b47e3b4fdb088f18fc7ee1f52c3ae933c5663
[ "MIT" ]
null
null
null
import inspect from typing import Union, Callable, Any, Iterable from pytest_lambda.exceptions import DisabledFixtureError, NotImplementedFixtureError from pytest_lambda.impl import LambdaFixture __all__ = ['lambda_fixture', 'static_fixture', 'error_fixture', 'disabled_fixture', 'not_implemented_fixture'] ...
33.819549
87
0.689862
0
0
0
0
0
0
0
0
2,600
0.577521
0f11c7fc72c1e19f0e03c6226a3a153483d3fe2a
16,983
py
Python
NaiveBayes/NaiveBayes/arffreader/ArffProcessor.py
NickChapman/Naive-Bayes
7620bca26d63bc0adebda974870ecdd0def8fac2
[ "MIT" ]
null
null
null
NaiveBayes/NaiveBayes/arffreader/ArffProcessor.py
NickChapman/Naive-Bayes
7620bca26d63bc0adebda974870ecdd0def8fac2
[ "MIT" ]
4
2016-02-15T21:32:39.000Z
2016-02-18T08:49:27.000Z
Nicholas_Chapman_NBC_Submission/arffreader/ArffProcessor.py
NickChapman/Naive-Bayes
7620bca26d63bc0adebda974870ecdd0def8fac2
[ "MIT" ]
null
null
null
import random, math import utils class ArffProcessor(object): """Loads and manages an ARFF file""" def __init__(self, file_path): """Loads an ARFF file, fills in missing data points @param file_path: Path to the ARFF file """ # Load the file into memory and do initial proce...
52.906542
123
0.579933
16,949
0.997998
0
0
384
0.022611
0
0
4,736
0.278867
0f12055f98804756bad971fcd0011760c5d5e75a
15,935
py
Python
indico/web/util.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/web/util.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
indico/web/util.py
javfg/indico
2634756ba1e9caf6dd8fc9afc3f47291fda5816d
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. import hashlib import sys from datetime import datetime import sentry_sdk from authlib.oauth2 import OAut...
38.12201
120
0.669658
584
0.036649
0
0
2,159
0.135488
0
0
7,013
0.4401
0f1273a2a398899dbb4a15cc92f3fa611276f39e
7,071
py
Python
eval_DCBC.py
dzhi1993/DCBC_evaluation
9751278987ae356a6a7b55afe60d43fed8df933b
[ "MIT" ]
null
null
null
eval_DCBC.py
dzhi1993/DCBC_evaluation
9751278987ae356a6a7b55afe60d43fed8df933b
[ "MIT" ]
null
null
null
eval_DCBC.py
dzhi1993/DCBC_evaluation
9751278987ae356a6a7b55afe60d43fed8df933b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Created on Mon Aug 17 11:31:32 2020 Distance-Controlled Boundaries Coefficient (DCBC) evaluation for a functional parcellation of brain cortex INPUTS: sn: The return subject number hems: Hemisphere to test. 'L' - left hemisphere; 'R'...
42.341317
113
0.537548
0
0
0
0
0
0
0
0
2,447
0.346061
0f128327ac454f125d92bc8c80bfc98fabb7bc4f
6,331
py
Python
pythonclient/swagger_client/models/repository.py
kongyew/qualys_cli
720a22088994d3ff2b635ba87209c971da24c56c
[ "MIT" ]
null
null
null
pythonclient/swagger_client/models/repository.py
kongyew/qualys_cli
720a22088994d3ff2b635ba87209c971da24c56c
[ "MIT" ]
null
null
null
pythonclient/swagger_client/models/repository.py
kongyew/qualys_cli
720a22088994d3ff2b635ba87209c971da24c56c
[ "MIT" ]
null
null
null
# coding: utf-8 """ Container Security API # Authentication You must authenticate to the Qualys Cloud Platform using Qualys account credentials (user name and password) and get the JSON Web Token (JWT) before you can start using the Container Security APIs. Use the Qualys Authentication API to get the JWT. *...
33.497354
779
0.626125
5,339
0.843311
0
0
2,236
0.353183
0
0
3,226
0.509556
0f1592f3be048e8437004cc1fbfde1d17593625b
689
py
Python
noise_layers/rotate.py
pierrefdz/HiDDeN
c1ca842389f86239c4e3ac9911f784cd3965f260
[ "MIT" ]
null
null
null
noise_layers/rotate.py
pierrefdz/HiDDeN
c1ca842389f86239c4e3ac9911f784cd3965f260
[ "MIT" ]
null
null
null
noise_layers/rotate.py
pierrefdz/HiDDeN
c1ca842389f86239c4e3ac9911f784cd3965f260
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F from torchvision.transforms import functional import numpy as np class Rotate(nn.Module): """ Rotate the image by random angle between -degrees and degrees. """ def __init__(self, degrees, interpolation_method='nearest'): super(Rotate, self...
31.318182
77
0.716981
567
0.822932
0
0
0
0
0
0
87
0.12627
0f162b0c31fb0578dd692face5da5fae3fc2df41
278
py
Python
app/utils/weak_random.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
app/utils/weak_random.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
app/utils/weak_random.py
michel-rodrigues/viggio_backend
f419f0b939209722e1eb1e272f33de172cd5c1f1
[ "MIT" ]
null
null
null
import random import string def random_string_digits(string_length=10): """Generate a random string of letters and digits.""" letters_and_digits = string.ascii_letters + string.digits return ''.join(random.choice(letters_and_digits) for _ in range(string_length))
30.888889
83
0.769784
0
0
0
0
0
0
0
0
55
0.197842
0f1665f0055f31ec323063994f87f3173d7444f6
28,521
py
Python
bibleutils/test/test_versification.py
47rooks/bible-utilities
b744828214dbadd6f0c1b6d514a796761159b779
[ "MIT" ]
null
null
null
bibleutils/test/test_versification.py
47rooks/bible-utilities
b744828214dbadd6f0c1b6d514a796761159b779
[ "MIT" ]
null
null
null
bibleutils/test/test_versification.py
47rooks/bible-utilities
b744828214dbadd6f0c1b6d514a796761159b779
[ "MIT" ]
null
null
null
''' Created on Jan 22, 2017 @author: Daniel ''' import unittest from bibleutils.versification import VersificationID, BookID, Identifier, \ ReferenceFormID, parse_refs, ETCBCHVersification, Ref, convert_refs, \ expand_refs, VersificationException class Test(unittest.TestCase): def setUp(sel...
53.510319
104
0.570948
28,135
0.986466
0
0
0
0
0
0
6,981
0.244767