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
924c4a9c561c7aed9575e75c33ca46d044434fc2
9,184
py
Python
dyc/methods/MethodBuilder.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
dyc/methods/MethodBuilder.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
dyc/methods/MethodBuilder.py
lukerm48/dyc
f7b0a1daf9cdcc4d19bc48cbc4e22c5d5a9b8426
[ "MIT" ]
null
null
null
""" File for classes that handles the actual business logic of the application. Here is the the place where the actual reading, parsing and validation of the files happens. """ import re import click from .MethodInterface import MethodInterface from ..utils import ( get_leading_whitespace, get_indent_forward, ...
39.416309
178
0.530488
8,778
0.955793
493
0.05368
0
0
0
0
1,850
0.201437
924e8e77c2bc19143e903e4c018fdd8b4185b457
746
py
Python
jp.atcoder/agc015/agc015_b/8556570.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/agc015/agc015_b/8556570.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/agc015/agc015_b/8556570.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
# 2019-11-22 16:25:33(JST) import sys def main(): s = sys.stdin.readline().rstrip() n = len(s) take_times = [[None for _ in range(n)] for _ in range(n)] for i in range(n): for j in range(n): if i == j: take_times[i][j] = 0 elif s[i] == 'U':...
24.866667
62
0.386059
0
0
0
0
0
0
0
0
43
0.057641
924fec3ac075b37f75ff462088795707dc130a3b
1,539
py
Python
recipes/kangaru/all/conanfile.py
jaspervandeven/conan-center-index
d3c8a2180c4b5e95f63c08c518e1b1a9a7017a23
[ "MIT" ]
null
null
null
recipes/kangaru/all/conanfile.py
jaspervandeven/conan-center-index
d3c8a2180c4b5e95f63c08c518e1b1a9a7017a23
[ "MIT" ]
null
null
null
recipes/kangaru/all/conanfile.py
jaspervandeven/conan-center-index
d3c8a2180c4b5e95f63c08c518e1b1a9a7017a23
[ "MIT" ]
1
2021-03-10T04:02:57.000Z
2021-03-10T04:02:57.000Z
from conans import ConanFile, tools, CMake import os class KangaruConan(ConanFile): name = "kangaru" description = "A dependency injection container for C++11, C++14 and later" license = "MIT" topics = ("conan", "gracicot", "kangaru", "DI", "IoC", "inversion of control") homepage = "https:/...
37.536585
92
0.638077
1,480
0.961663
0
0
78
0.050682
0
0
397
0.25796
925073b67d11908413dc3c2418ab4f3c9e2f45f4
8,989
py
Python
ai.py
qwlea/chess
06213ebbcd379e1968ebcfed41d38b9a00f9f3c8
[ "Apache-2.0" ]
null
null
null
ai.py
qwlea/chess
06213ebbcd379e1968ebcfed41d38b9a00f9f3c8
[ "Apache-2.0" ]
null
null
null
ai.py
qwlea/chess
06213ebbcd379e1968ebcfed41d38b9a00f9f3c8
[ "Apache-2.0" ]
null
null
null
from player import Player import copy from random import randint # This AI class uses MiniMax Alpha-Beta Pruning in order to find the best possible move(s) each turn. class MiniMax(Player): def __init__(self, pid, board, logic): super().__init__(pid, board) self._logic = logic # Board ev...
61.993103
124
0.679608
8,806
0.979642
0
0
0
0
0
0
5,277
0.587051
9250af11f4ee1e071c1b4ca4904fcbb36dc56250
2,971
py
Python
boxes/scrapers/tasks/scrap_news.py
konradarchicinski/pybox
37c2dae80e1629e3cf2d3e3e86afaaff06b4de17
[ "MIT" ]
1
2021-04-16T06:29:41.000Z
2021-04-16T06:29:41.000Z
boxes/scrapers/tasks/scrap_news.py
konradarchicinski/pybox
37c2dae80e1629e3cf2d3e3e86afaaff06b4de17
[ "MIT" ]
null
null
null
boxes/scrapers/tasks/scrap_news.py
konradarchicinski/pybox
37c2dae80e1629e3cf2d3e3e86afaaff06b4de17
[ "MIT" ]
null
null
null
#!/usr/bin/env python from boxes.scrapers import DATA_PATH from pybox.task import Task from pybox.scraper.news_reader import NewsReader from datetime import date, timedelta, datetime def update_reader_settings(iteration, reader_settings): """Auxiliar function, returns the settings passed to the reader with u...
30.947917
76
0.678559
0
0
0
0
0
0
0
0
1,384
0.465836
9251d2e24adbc05adaa81a9a2ac85b187ddf6015
841
py
Python
bot/models.py
pyprism/Hiren-TwitBot
358184673c0d3fb8f5dc3420590239b3178f5a81
[ "MIT" ]
null
null
null
bot/models.py
pyprism/Hiren-TwitBot
358184673c0d3fb8f5dc3420590239b3178f5a81
[ "MIT" ]
null
null
null
bot/models.py
pyprism/Hiren-TwitBot
358184673c0d3fb8f5dc3420590239b3178f5a81
[ "MIT" ]
null
null
null
from django.db import models class TwitterApp(models.Model): name = models.CharField(max_length=500) consumer_key = models.CharField(max_length=1000) consumer_secret = models.CharField(max_length=1000) access_token = models.CharField(max_length=1000) access_token_secret = models.CharField(max_leng...
33.64
59
0.752675
806
0.958383
0
0
0
0
0
0
0
0
9252f6d1f1c84c37818126312a777ccbe609b205
842
py
Python
models/utils/scheduler/constant_warmup_scheduler.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
models/utils/scheduler/constant_warmup_scheduler.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
models/utils/scheduler/constant_warmup_scheduler.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
class ConstantWarmupScheduler: def __init__(self, warmup_steps, warmup_value, ultimate_value, per_iteration): self.warmup_steps = warmup_steps self.warmup_value = warmup_value self.ultimate_value = ultimate_value self.per_iteration = per_iteration self.position = 0 def s...
29.034483
82
0.643705
841
0.998812
0
0
0
0
0
0
0
0
92533fd03fb0f3a8993a9f914c09ba1fc8a481b8
677
py
Python
tests/data23/recipe-577194.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/data23/recipe-577194.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/data23/recipe-577194.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
class Thing(object): """A thing, does stuff.""" def __init__(self): self.special = "My special value!" def process(self, default=True): """Accept any argument with no special processing (except True).""" if default is True: # Notice I'm checking identity, not truth or equality ...
35.631579
81
0.611521
470
0.694239
0
0
0
0
0
0
315
0.465288
925401b8a6748c444b83c26016063c2cd09a8be6
1,233
py
Python
python/simulator.py
mhoffmann7/MIMO-MRT-Simulator
9bca63b416b137fa3ded4984c40e669b5bc421bd
[ "MIT" ]
null
null
null
python/simulator.py
mhoffmann7/MIMO-MRT-Simulator
9bca63b416b137fa3ded4984c40e669b5bc421bd
[ "MIT" ]
null
null
null
python/simulator.py
mhoffmann7/MIMO-MRT-Simulator
9bca63b416b137fa3ded4984c40e669b5bc421bd
[ "MIT" ]
null
null
null
from get_users_channels import getUsers from user_association import userAssociation from mmimo_mrt import computeBitrates from dpb import Dpb import numpy as np def singleUESetSimulation(no_ue, scenario, dpb_algorithm, dpb, assignment_method): pathloss, position, corr_data = getUsers(scenario,no_ue) pathl...
34.25
137
0.763179
0
0
0
0
0
0
0
0
36
0.029197
92547b1bbce31fcc16cedbc5f31e0b560a198f06
687
py
Python
docsensesearch-backend/utilscripts/test_sp.py
docsense/search
a71ad708784270019612b6e037ad3c3f95dfa448
[ "MIT" ]
null
null
null
docsensesearch-backend/utilscripts/test_sp.py
docsense/search
a71ad708784270019612b6e037ad3c3f95dfa448
[ "MIT" ]
null
null
null
docsensesearch-backend/utilscripts/test_sp.py
docsense/search
a71ad708784270019612b6e037ad3c3f95dfa448
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import requests reload(sys) sys.setdefaultencoding('utf-8') from bs4 import BeautifulSoup link = sys.argv[1] + "/_api/web/lists(guid'" + sys.argv[2] + "')/Items" ids = [] try: r = requests.get(link) bs = BeautifulSoup(r.text, features="xml") for i in bs.findAll('entry'): ...
25.444444
76
0.57933
0
0
0
0
0
0
0
0
172
0.250364
925480aad2538abcd3adf524e7dc5e68a3d73cf6
5,362
py
Python
anchore_engine/services/policy_engine/api/models/gate_spec.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2019-06-27T08:47:48.000Z
2019-06-27T08:47:48.000Z
anchore_engine/services/policy_engine/api/models/gate_spec.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
4
2020-11-07T00:16:02.000Z
2020-11-08T20:52:06.000Z
anchore_engine/services/policy_engine/api/models/gate_spec.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2019-11-23T03:39:28.000Z
2019-11-23T03:39:28.000Z
# coding: utf-8 from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from anchore_engine.services.policy_engine.api.models.base_model_ import Model from anchore_engine.services.policy_engine.api.models.trigger_spec import TriggerSpec # noqa: F401,E501 from anchore_engine.se...
28.827957
113
0.608355
5,002
0.932861
0
0
3,508
0.654233
0
0
3,291
0.613764
925516901a3dfc5e7e1b727ddefa47860ebbf98a
395
py
Python
lists/v7/sum_numbers.py
py-bootcamp/learn-python-with-tdd
5d0c6fbbbea07204228323557a932bc4023fc8b5
[ "MIT" ]
5
2020-11-13T18:43:52.000Z
2022-03-23T01:07:11.000Z
lists/v7/sum_numbers.py
py-bootcamp/learn-python-with-tdd
5d0c6fbbbea07204228323557a932bc4023fc8b5
[ "MIT" ]
null
null
null
lists/v7/sum_numbers.py
py-bootcamp/learn-python-with-tdd
5d0c6fbbbea07204228323557a932bc4023fc8b5
[ "MIT" ]
null
null
null
from typing import List def sum_numbers(numbers: List[float]) -> float: "Calculate the total from a list of numbers." total = 0.0 for number in numbers: total += number return total def sum_all(*numbers_to_sum: List[float]) -> List[float]: "Calculate the respective sums of every list p...
23.235294
63
0.693671
0
0
0
0
0
0
0
0
101
0.255696
92588762a2b3b34b9bfdc6caf756989bb0850c29
3,576
py
Python
redux/g7_sci_extract.py
joungh93/PyRAF_GMOS_IFU
1750caaf846c426cf1fc761ad539f740c8ae64d9
[ "MIT" ]
null
null
null
redux/g7_sci_extract.py
joungh93/PyRAF_GMOS_IFU
1750caaf846c426cf1fc761ad539f740c8ae64d9
[ "MIT" ]
null
null
null
redux/g7_sci_extract.py
joungh93/PyRAF_GMOS_IFU
1750caaf846c426cf1fc761ad539f740c8ae64d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 31 16:29:33 2019 @author: jlee """ import time start_time = time.time() import numpy as np import glob, os import g0_init_cfg as ic from astropy.io import fits # ----- Importing IRAF from the root directory ----- # current_dir = os.getcwd() os....
30.827586
99
0.558445
0
0
0
0
0
0
0
0
1,677
0.46896
92589690e29dd174295e61558264b2f4a3b4282f
244
py
Python
woodwork/tests/test_cli.py
not-so-rabh/woodwork
18e44c371e77ebc41baae57289bfc4fd1804b122
[ "BSD-3-Clause" ]
null
null
null
woodwork/tests/test_cli.py
not-so-rabh/woodwork
18e44c371e77ebc41baae57289bfc4fd1804b122
[ "BSD-3-Clause" ]
13
2021-03-04T19:26:15.000Z
2022-01-21T10:49:07.000Z
woodwork/tests/test_cli.py
RG4421/woodwork
739b4e7e4b7eccbd5772251d294523240f10664e
[ "BSD-3-Clause" ]
null
null
null
import subprocess def test_list_logical_types(): subprocess.check_output(['python', '-m', 'woodwork', 'list-logical-types']) def test_list_semantic_tags(): subprocess.check_output(['python', '-m', 'woodwork', 'list-semantic-tags'])
24.4
79
0.713115
0
0
0
0
0
0
0
0
84
0.344262
925a12b56c9fb4a07f26e67c0db081323877aa7b
770
py
Python
buffer/in-vicinity-python/io_python/test_os_io.py
zaqwes8811/coordinator-tasks
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
[ "MIT" ]
null
null
null
buffer/in-vicinity-python/io_python/test_os_io.py
zaqwes8811/coordinator-tasks
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
[ "MIT" ]
15
2015-03-07T12:46:41.000Z
2015-04-11T09:08:36.000Z
matlab_ext/identification/dals/os_io/test_os_io.py
zaqwes8811/micro-apps
7f63fdf613eff5d441a3c2c7b52d2a3d02d9736a
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- #!/usr/bin/env python ''' ''' from usaio import PCFileOperatons import unittest ''' Dropbox ''' class TestDropboxFileOperatons(unittest.TestCase): pass ''' PC ''' class TestPCFileOperatons(unittest.TestCase): ''' ''' def testOpenClose(self): pcfile = PCFileOperatons() # должно выкидыва...
28.518519
75
0.701299
506
0.580941
0
0
0
0
0
0
400
0.459242
925ad854367cffcab0b72b26714e6ad39f176b24
19,279
py
Python
wrapless.py
mpi3d/goodix-fp-dump
039940845bd5eeb98cd92d72f267e3be77feb156
[ "MIT" ]
136
2021-05-05T14:16:17.000Z
2022-03-31T09:04:18.000Z
wrapless.py
tsunekotakimoto/goodix-fp-dump
b88ecbababd3766314521fe30ee943c4bd1810df
[ "MIT" ]
14
2021-08-20T09:49:39.000Z
2022-03-20T13:18:05.000Z
wrapless.py
tsunekotakimoto/goodix-fp-dump
b88ecbababd3766314521fe30ee943c4bd1810df
[ "MIT" ]
11
2021-08-02T15:49:11.000Z
2022-02-06T22:06:42.000Z
from protocol import Protocol from typing import Optional import logging import struct from dataclasses import dataclass from usb.core import USBTimeoutError from Crypto.Cipher import AES from Crypto.Hash import HMAC, SHA256 from Crypto.Random import get_random_bytes from crccheck.crc import Crc32Mpeg2 USB_CHUNK_SIZE...
34.989111
88
0.591317
16,619
0.862026
0
0
691
0.035842
0
0
2,728
0.141501
925c6033603c561ea55693dac40cadc80e60ea16
10,293
py
Python
silverberg/client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
1
2019-09-22T04:00:56.000Z
2019-09-22T04:00:56.000Z
silverberg/client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
14
2015-01-22T01:00:50.000Z
2017-12-06T03:35:46.000Z
silverberg/client.py
TimothyZhang/silverberg
fb93ab68988c6ad6f7a4136d2c5b16b32966d0ca
[ "Apache-2.0" ]
4
2015-03-31T19:49:05.000Z
2020-03-03T20:44:32.000Z
# Copyright 2012 Rackspace Hosting, 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 applicable law or agreed to ...
35.739583
102
0.644224
9,233
0.897017
0
0
143
0.013893
0
0
5,977
0.580686
925d8851eb0b2902f89aba2f36bb8f3af0d834ca
1,491
py
Python
accounts/models.py
bsugimoto/DymondTechnology
5b5740e0fabd546ad9770ac343235c2973d3a0c4
[ "MIT" ]
null
null
null
accounts/models.py
bsugimoto/DymondTechnology
5b5740e0fabd546ad9770ac343235c2973d3a0c4
[ "MIT" ]
null
null
null
accounts/models.py
bsugimoto/DymondTechnology
5b5740e0fabd546ad9770ac343235c2973d3a0c4
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from django.db.models.signals import post_save from multiselectfield import MultiSelectField from django.dispatch import receiver def user_directory_path(instance, filename): # file will be uploaded to MEDIA_ROOT/user_<id>/<filename> # re...
45.181818
87
0.735748
752
0.504359
0
0
269
0.180416
0
0
478
0.32059
925dd9afa8ee77d0df78cadfcabe6966241f2767
3,416
py
Python
hypercane/actions/identify.py
ato/hypercane
290ef402006ee8f8d98090e31da52819e26145a0
[ "MIT" ]
2
2020-06-11T18:42:02.000Z
2020-10-06T21:17:15.000Z
hypercane/actions/identify.py
ato/hypercane
290ef402006ee8f8d98090e31da52819e26145a0
[ "MIT" ]
55
2020-06-01T00:23:00.000Z
2022-02-21T20:52:29.000Z
hypercane/actions/identify.py
ato/hypercane
290ef402006ee8f8d98090e31da52819e26145a0
[ "MIT" ]
3
2021-02-07T05:36:24.000Z
2021-12-17T05:45:14.000Z
import logging module_logger = logging.getLogger("hypercane.actions.sample") def discover_timemaps(args): from hypercane.utils import get_web_session, save_resource_data from hypercane.identify import discover_resource_data_by_input_type, \ discover_timemaps_by_input_type, generate_faux_urits, \ ...
35.583333
113
0.74678
0
0
0
0
0
0
0
0
518
0.151639
925e1e9d69320dc2a3507c471bdf305b87ca4a4f
1,459
py
Python
type_checker.py
perimosocordiae/onearg
1ed8027f864b31d77193f4cb511dd93b7c4166bb
[ "MIT" ]
null
null
null
type_checker.py
perimosocordiae/onearg
1ed8027f864b31d77193f4cb511dd93b7c4166bb
[ "MIT" ]
null
null
null
type_checker.py
perimosocordiae/onearg
1ed8027f864b31d77193f4cb511dd93b7c4166bb
[ "MIT" ]
null
null
null
from collections import defaultdict from parser import PARSER from syntax_tree import build_ast from type_objects import BuiltinType def check_types(syntax_tree): all_types = defaultdict(dict) # Define builtin primitive types. for t in ('int', 'float', 'string', 'void'): all_types[t][None] = BuiltinType(t...
31.042553
77
0.702536
0
0
0
0
0
0
0
0
358
0.245374
925f4af91f977c93af580c343c412cbe16f6b8e5
766
py
Python
flowvision/layers/attention/se.py
lixiang007666/vision
2eced8d6ed2dc42f6451f81f8883318fa0bd24d3
[ "BSD-3-Clause" ]
null
null
null
flowvision/layers/attention/se.py
lixiang007666/vision
2eced8d6ed2dc42f6451f81f8883318fa0bd24d3
[ "BSD-3-Clause" ]
null
null
null
flowvision/layers/attention/se.py
lixiang007666/vision
2eced8d6ed2dc42f6451f81f8883318fa0bd24d3
[ "BSD-3-Clause" ]
null
null
null
import oneflow as flow import oneflow.nn as nn class SEModule(nn.Module): def __init__( self, channels, reduction=16, rd_channels=None, act_layer=nn.ReLU, gate_layer=nn.Sigmoid, mlp_bias=False, ): super(SEModule, self).__init__() rd_chann...
29.461538
83
0.616188
716
0.934726
0
0
0
0
0
0
0
0
925f8106e1816c84af6c9460fc5d7a713fd377a8
5,253
py
Python
kerberos_client.py
EvilMcJerkface/ok
c16b329a9b6f87e1af4bded86a09364482b6029c
[ "MIT" ]
16
2015-01-26T11:13:19.000Z
2022-01-31T13:48:54.000Z
kerberos_client.py
EvilMcJerkface/ok
c16b329a9b6f87e1af4bded86a09364482b6029c
[ "MIT" ]
null
null
null
kerberos_client.py
EvilMcJerkface/ok
c16b329a9b6f87e1af4bded86a09364482b6029c
[ "MIT" ]
3
2016-03-03T18:46:39.000Z
2021-09-03T05:47:51.000Z
import sys import shutil import getpass import lib.krb5 as krb5 import lib.krb5_ctypes as krb5_ctypes import ctypes import binascii import ctypes import pdb import json import gc #import IPython from kerberos_serializer import * import os gc.disable() CC_PATH = '/tmp/krb5cc_1000' # Delete the default cache def clear_...
31.644578
85
0.673139
0
0
0
0
0
0
0
0
1,470
0.27984
926004827692514a2e7e1fab88210f1b0ac22384
344
py
Python
setup.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
setup.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
setup.py
FreeDiscovery/FreeDiscovery-S3-connector
c10a6e1c26f95c199e94908f4e8534f735b94e37
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from setuptools import setup, find_packages from freedscovery_s3_connector._version import __version__ setup(name='freedscovery_s3_connector', version=__version__, description='', author='FreeDiscovery Developpers', packages=find_packages(), inc...
24.571429
58
0.732558
0
0
0
0
0
0
0
0
96
0.27907
926080df7fe450b583f1afff1fb17e6b9cc7b79a
2,669
py
Python
seqauto/management/commands/import_sequencing_info.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
5
2021-01-14T03:34:42.000Z
2022-03-07T15:34:18.000Z
seqauto/management/commands/import_sequencing_info.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
551
2020-10-19T00:02:38.000Z
2022-03-30T02:18:22.000Z
seqauto/management/commands/import_sequencing_info.py
SACGF/variantgrid
515195e2f03a0da3a3e5f2919d8e0431babfd9c9
[ "RSA-MD" ]
null
null
null
import pandas as pd from django.core.management.base import BaseCommand from library.log_utils import console_logger from seqauto.models import Sequencer, SequencingInfo, EnrichmentKit from snpdb.models import Lab, LabProject LAB_NAME = "lab name" INSTITUTION = "institution" DOI = "doi" PAPER_NAME = "paper name" YEAR...
39.25
133
0.557887
2,192
0.821281
0
0
0
0
0
0
518
0.19408
92632090c4e3d282320b824c62a3295534a71fb2
8,746
py
Python
tests/test_utils_conf.py
Cologler/anyioc-python
87aaf52208b8c510c9128f89359300a2158e3637
[ "MIT" ]
null
null
null
tests/test_utils_conf.py
Cologler/anyioc-python
87aaf52208b8c510c9128f89359300a2158e3637
[ "MIT" ]
null
null
null
tests/test_utils_conf.py
Cologler/anyioc-python
87aaf52208b8c510c9128f89359300a2158e3637
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- import pytest from pytest import raises from anyioc import ServiceProvider, LifeTime from anyioc.utils_conf import BadConfError, load_conf def from_conf(conf: dict): provider = ServiceProvider() loa...
29.153333
149
0.53533
297
0.033958
0
0
0
0
0
0
1,756
0.200777
9263ae98e68deabf82d6263e3f38c433bcba634f
34,195
py
Python
src/eduid_userdb/tests/test_user.py
SUNET/eduid-userdb
5970880caf0b0e2bdee6c23869ef287acc87af2a
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
src/eduid_userdb/tests/test_user.py
SUNET/eduid-userdb
5970880caf0b0e2bdee6c23869ef287acc87af2a
[ "BSD-2-Clause-FreeBSD" ]
12
2015-08-28T12:05:32.000Z
2020-06-23T13:31:29.000Z
src/eduid_userdb/tests/test_user.py
SUNET/eduid-userdb
5970880caf0b0e2bdee6c23869ef287acc87af2a
[ "BSD-2-Clause-FreeBSD" ]
2
2016-10-24T06:37:33.000Z
2016-11-21T11:39:39.000Z
import unittest from datetime import datetime from hashlib import sha256 from bson import ObjectId from six import string_types from eduid_userdb import LockedIdentityNin, OidcAuthorization, OidcIdToken, Orcid from eduid_userdb.credentials import METHOD_SWAMID_AL2_MFA, U2F, CredentialList, Password from eduid_userdb....
38.682127
120
0.555578
33,357
0.975493
0
0
0
0
0
0
10,555
0.308671
926458d1d9c97fc6abf90370ad0d99e05fe59844
13,515
py
Python
ivy_vision/quantization.py
unifyai/vision
7a1d0115da1dcc640709a1bc92e7e31eb63ed566
[ "Apache-2.0" ]
11
2022-02-09T02:51:59.000Z
2022-03-31T09:35:24.000Z
ivy_vision/quantization.py
unifyai/vision
7a1d0115da1dcc640709a1bc92e7e31eb63ed566
[ "Apache-2.0" ]
5
2022-03-11T03:46:18.000Z
2022-03-31T06:07:31.000Z
ivy_vision/quantization.py
unifyai/vision
7a1d0115da1dcc640709a1bc92e7e31eb63ed566
[ "Apache-2.0" ]
1
2022-02-20T12:25:11.000Z
2022-02-20T12:25:11.000Z
"""Collection of Quantization Functions""" # global import ivy as _ivy # local from ivy_vision import single_view_geometry as _ivy_svg MIN_DENOMINATOR = 1e-12 MIN_DEPTH_DIFF = 1e-2 def quantize_to_image(pixel_coords, final_image_dims, feat=None, feat_prior=None, with_db=False, pixel_coords_va...
42.904762
119
0.645727
0
0
0
0
0
0
0
0
3,579
0.264758
92649a378fb9f445f1cb4f5a9e530473e26b4104
260
py
Python
verify/admin.py
openstax/verification
ad6d7b7d66bcd222f7848c49c0bc1ac08c437a45
[ "MIT" ]
null
null
null
verify/admin.py
openstax/verification
ad6d7b7d66bcd222f7848c49c0bc1ac08c437a45
[ "MIT" ]
15
2019-06-17T15:49:41.000Z
2022-03-11T23:48:24.000Z
verify/admin.py
openstax/verification
ad6d7b7d66bcd222f7848c49c0bc1ac08c437a45
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Verification class VerificationAdmin(admin.ModelAdmin): list_display = ('ox_accounts_id', 'salesforce_id', 'status') list_filter = ('status', ) admin.site.register(Verification, VerificationAdmin)
28.888889
64
0.773077
138
0.530769
0
0
0
0
0
0
47
0.180769
9266bbe11d1b61ca34c8e1102cddeae6080d6514
260
py
Python
libs/__init__.py
s-kostyuk/ahaf_activation_1
1ec1515d8b0228c83f45b9b09a747f2f6dd3b767
[ "MIT" ]
null
null
null
libs/__init__.py
s-kostyuk/ahaf_activation_1
1ec1515d8b0228c83f45b9b09a747f2f6dd3b767
[ "MIT" ]
null
null
null
libs/__init__.py
s-kostyuk/ahaf_activation_1
1ec1515d8b0228c83f45b9b09a747f2f6dd3b767
[ "MIT" ]
null
null
null
from .act_name_to_f import activation_name_to_function from .multiopt_proxy import MultiOptProxy from .running_stat import RunningStat from .save_load_net import save_network, load_network, save_optimizer, load_optimizer from .create_net import create_network
43.333333
85
0.880769
0
0
0
0
0
0
0
0
0
0
9267d808febd8df821dcd1afc41b5923d6971fdd
12,396
py
Python
ansible/plugins/action/ms_include_jinja_vars.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
18
2015-02-22T12:53:50.000Z
2019-03-15T16:45:10.000Z
ansible/plugins/action/ms_include_jinja_vars.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
20
2015-01-20T22:35:02.000Z
2017-11-06T11:17:34.000Z
ansible/plugins/action/ms_include_jinja_vars.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
5
2015-01-13T04:23:09.000Z
2019-01-03T17:00:31.000Z
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import six from os import path, walk import traceback import re from ansible.errors import AnsibleError, AnsibleParserError from ansible.module_utils._text import to_native from ansible.plugins.action import ActionBase from mc_sta...
34.529248
93
0.543482
12,046
0.971765
637
0.051388
0
0
0
0
2,071
0.16707
92682d145301e3cf26643177715c46fcd5839c3d
952
py
Python
tools/Vitis-AI-Library/graph_runner/test/format_json.py
hito0512/Vitis-AI
996459fb96cb077ed2f7e789d515893b1cccbc95
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tools/Vitis-AI-Library/graph_runner/test/format_json.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tools/Vitis-AI-Library/graph_runner/test/format_json.py
wangyifan778/Vitis-AI
f61061eef7550d98bf02a171604c9a9f283a7c47
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# # Copyright 2019 Xilinx 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 applicable law or agreed to in writing...
28.848485
74
0.705882
0
0
0
0
0
0
0
0
599
0.629202
9269038550ac2eb627129808f919645ed6371394
111
py
Python
managers/exec_details_manager.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
3
2021-07-11T03:52:50.000Z
2022-01-06T11:30:08.000Z
managers/exec_details_manager.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
null
null
null
managers/exec_details_manager.py
renuchauhan625/RazorPyOfficial
e5e3c2cb638b0e402f665aa2e756debd7c456237
[ "Apache-2.0" ]
1
2021-07-18T05:42:40.000Z
2021-07-18T05:42:40.000Z
''' Created on 14-Jul-2021 @author: Abhishek Prajapati ''' execution_details = [] razor_status = "In Progress"
15.857143
28
0.720721
0
0
0
0
0
0
0
0
72
0.648649
92692d7f00f3377986985af8973ac66784ff3072
6,760
py
Python
Project/scripts/path_planner.py
manasdesai/Path-Planning-and-Control-Theory-
6bc5a748b88b7226e069ff4837950fba793e28bb
[ "MIT" ]
6
2020-08-02T17:41:07.000Z
2022-03-01T18:06:06.000Z
Project/scripts/path_planner.py
manasdesai/Path-Planning-and-Control-Theory-
6bc5a748b88b7226e069ff4837950fba793e28bb
[ "MIT" ]
1
2020-07-30T07:14:25.000Z
2020-07-31T12:21:12.000Z
Project/scripts/path_planner.py
manasdesai/Path-Planning-and-Control-Theory-
6bc5a748b88b7226e069ff4837950fba793e28bb
[ "MIT" ]
3
2021-06-18T12:57:24.000Z
2022-02-28T04:02:50.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist, Point, PoseStamped from nav_msgs.msg import Path from std_msgs.msg import Float32MultiArray, Float64 from path_nav.msg import points, mylist import math import random global obs_in_path obs_in_path = [] global rate def get_obs(request): ...
32.037915
205
0.568639
5,223
0.772633
0
0
987
0.146006
0
0
930
0.137574
926993a758d4bcc12fbe159bf42b98c618c9eb80
6,808
py
Python
uservoice/client.py
uservoice/uservoice-python
296af32d861562eeb11886d55f7e00dff30383e9
[ "MIT" ]
4
2015-01-29T18:05:32.000Z
2018-05-03T17:02:09.000Z
uservoice/client.py
uservoice/uservoice-python
296af32d861562eeb11886d55f7e00dff30383e9
[ "MIT" ]
13
2015-01-21T08:20:48.000Z
2018-08-20T20:41:01.000Z
uservoice/client.py
uservoice/uservoice-python
296af32d861562eeb11886d55f7e00dff30383e9
[ "MIT" ]
6
2015-07-12T21:15:12.000Z
2020-10-22T16:32:54.000Z
from future import standard_library standard_library.install_aliases() from builtins import object import operator import array import urllib.request, urllib.parse, urllib.error import urllib.request, urllib.error, urllib.parse import json import uservoice from requests_oauthlib import OAuth1 from urllib.parse import p...
43.641026
194
0.611633
6,439
0.945799
0
0
0
0
0
0
894
0.131316
926b0aae20c9db282c44cb01fb1eb01eb50d3739
4,754
py
Python
content/gui/gui_2.py
mm5110/PIC16A
e2dab91439c2627f6a47f4bf6d16de8ba5977fe8
[ "MIT" ]
10
2020-11-07T04:07:34.000Z
2021-12-31T10:19:12.000Z
content/gui/gui_2.py
mm5110/PIC16A
e2dab91439c2627f6a47f4bf6d16de8ba5977fe8
[ "MIT" ]
16
2021-02-03T22:35:01.000Z
2021-05-24T21:28:56.000Z
content/gui/gui_2.py
mm5110/PIC16A
e2dab91439c2627f6a47f4bf6d16de8ba5977fe8
[ "MIT" ]
19
2020-11-11T05:44:53.000Z
2022-02-01T14:10:15.000Z
# Our next aim is to build a simple app that will # accept user input and show useful output. # Our app will be a penguin classifier: input some # measurements of a penguin, and the classifier will # make an educated guess about the penguin's species. # This means that we'll need to find a way to bring in # our mac...
31.071895
72
0.597602
0
0
0
0
0
0
0
0
2,212
0.465292
926f0826b49de22b8199e308698b8a8bb238dfee
13,417
py
Python
src/shortcircuit/model/crest/pycrest/eve.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
35
2016-06-22T20:07:31.000Z
2021-04-07T11:02:08.000Z
src/shortcircuit/model/crest/pycrest/eve.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
15
2016-06-17T09:36:02.000Z
2020-10-30T11:39:07.000Z
src/shortcircuit/model/crest/pycrest/eve.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
16
2016-10-02T16:09:18.000Z
2021-05-29T02:51:14.000Z
import os import base64 import requests import time import zlib from . import version from compat import bytes_, text_ from errors import APIException from weak_ciphers import WeakCiphersAdapter try: from urllib.parse import urlparse, urlunparse, parse_qsl except ImportError: # pragma: no cover from urlparse ...
33.128395
106
0.585675
12,723
0.948275
0
0
0
0
0
0
2,057
0.153313
9270ac95e899e83cadb5cec384f9e4de3f872548
4,160
py
Python
CAD_lib/geometry.py
JohnAD/CAD_lib
67985e09e146d71b4c2b6997e758f6514fc30f5e
[ "MIT" ]
null
null
null
CAD_lib/geometry.py
JohnAD/CAD_lib
67985e09e146d71b4c2b6997e758f6514fc30f5e
[ "MIT" ]
null
null
null
CAD_lib/geometry.py
JohnAD/CAD_lib
67985e09e146d71b4c2b6997e758f6514fc30f5e
[ "MIT" ]
null
null
null
################################### # # Point # ################################### class Point(object): ''' A point. ''' def __init__(self, x=0.0, y=0.0, z=None): if hasattr(x, 'x'): # is this an objext containing x,y,z objects? If so, then transfer those. tx = x.x ...
23.771429
102
0.47476
3,874
0.93125
0
0
0
0
0
0
1,168
0.280769
927130d7806b470ffda0c0ca41177feb165a188a
1,658
py
Python
data_utils/rdp.py
muzik999/road_connectivity
8d9893752a633f9339e91b7b697f700ca669b729
[ "MIT" ]
96
2019-06-06T05:13:34.000Z
2022-03-23T12:01:07.000Z
data_utils/rdp.py
muzik999/road_connectivity
8d9893752a633f9339e91b7b697f700ca669b729
[ "MIT" ]
35
2019-07-05T06:03:22.000Z
2022-03-09T03:11:02.000Z
data_utils/rdp.py
muzik999/road_connectivity
8d9893752a633f9339e91b7b697f700ca669b729
[ "MIT" ]
30
2019-07-17T09:37:26.000Z
2022-02-28T19:09:22.000Z
#!/usr/bin/env python3 """ The Ramer-Douglas-Peucker algorithm roughly ported from the pseudo-code provided by http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm The code is taken from https://github.com/mitroadmaps/roadtracer/blob/master/lib/discoverlib/rdp.py """ from math import sqrt def distance(a, ...
28.586207
87
0.603136
0
0
0
0
0
0
0
0
785
0.473462
92717020cb7b92c5eb59f2d9a730411c3f60cef4
101,305
py
Python
rtamt/parser/stl/StlParser.py
xiaoyaooo/rtamt
edb7bf664720c52e9d70920102c450b1f593af95
[ "BSD-3-Clause" ]
null
null
null
rtamt/parser/stl/StlParser.py
xiaoyaooo/rtamt
edb7bf664720c52e9d70920102c450b1f593af95
[ "BSD-3-Clause" ]
null
null
null
rtamt/parser/stl/StlParser.py
xiaoyaooo/rtamt
edb7bf664720c52e9d70920102c450b1f593af95
[ "BSD-3-Clause" ]
1
2021-05-18T12:57:46.000Z
2021-05-18T12:57:46.000Z
# Generated from StlParser.g4 by ANTLR 4.5.1 # encoding: utf-8 from __future__ import print_function from antlr4 import * from io import StringIO def serializedATN(): with StringIO() as buf: buf.write(u"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\3") buf.write(u"H\u010c\4\2\t\2\4\3\t\3\4\4\t...
37.040219
633
0.578965
91,866
0.906826
0
0
0
0
0
0
11,822
0.116697
92717f71e70e1d088e212b1ad5b9f5e93d1233a2
23
py
Python
app/__init__.py
dixonwhitmire/fastapi-template
eb67b80420c9fe6265190ca1003f18859709fe58
[ "Apache-2.0" ]
520
2015-03-17T23:04:53.000Z
2022-03-27T22:10:59.000Z
app/__init__.py
dixonwhitmire/fastapi-template
eb67b80420c9fe6265190ca1003f18859709fe58
[ "Apache-2.0" ]
544
2015-02-19T16:56:58.000Z
2022-03-28T18:23:38.000Z
app/__init__.py
dixonwhitmire/fastapi-template
eb67b80420c9fe6265190ca1003f18859709fe58
[ "Apache-2.0" ]
306
2015-03-23T19:42:15.000Z
2022-03-18T22:22:11.000Z
__version__ = "0.42.0"
11.5
22
0.652174
0
0
0
0
0
0
0
0
8
0.347826
927303a84f42823f69e85cdc571a7f5088e0421b
8,337
py
Python
combiner/combiner/tf/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-19T04:26:12.000Z
2022-03-19T04:26:12.000Z
combiner/combiner/tf/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
combiner/combiner/tf/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.565789
80
0.644836
0
0
0
0
0
0
0
0
1,915
0.229699
92745101ac9b7fb8a1d621ca0d57ec6d077050b3
832
py
Python
tflens/model/tfstate.py
neovasili/tflens
1aa46160c1ccf47f32de2fa44b4169ae6439483e
[ "MIT" ]
3
2020-10-15T14:46:20.000Z
2021-11-03T23:45:56.000Z
tflens/model/tfstate.py
neovasili/tflens
1aa46160c1ccf47f32de2fa44b4169ae6439483e
[ "MIT" ]
25
2020-10-14T08:09:05.000Z
2021-06-23T18:05:38.000Z
tflens/model/tfstate.py
neovasili/tflens
1aa46160c1ccf47f32de2fa44b4169ae6439483e
[ "MIT" ]
null
null
null
from tflens.model.tfstate_resource import TfStateResource class TfState(): def __init__(self, content: dict): super().__init__() self.__content = content self.__version = self.__content['version'] self.__tf_version = self.__content['terraform_version'] self.__serial = self.__content['serial'] ...
27.733333
59
0.727163
772
0.927885
0
0
0
0
0
0
65
0.078125
9274d416d7048e207bf11ee0a1a4caf193e5c80c
13,140
py
Python
ck_solution/module/mm-simulator/module.py
phesse001/Trust-Tools
baf7b70dbd5e9febca403d792df28a718ca90c93
[ "MIT" ]
null
null
null
ck_solution/module/mm-simulator/module.py
phesse001/Trust-Tools
baf7b70dbd5e9febca403d792df28a718ca90c93
[ "MIT" ]
null
null
null
ck_solution/module/mm-simulator/module.py
phesse001/Trust-Tools
baf7b70dbd5e9febca403d792df28a718ca90c93
[ "MIT" ]
null
null
null
import os # # Collective Knowledge () # # # # # Developer: # cfg={} # Will be updated by CK (meta description of this module) work={} # Will be updated by CK (temporal data) ck=None # Will be updated by CK (initialized CK kernel) # Local settings #################################################################...
31.662651
148
0.54277
0
0
0
0
0
0
0
0
6,785
0.516362
9276b7e92fbafdac27d50333d01d384cadbdbcef
1,087
py
Python
deplugins/cfront_ssl.py
arndtroth/AWSomeOverview
e9010f4356215f5c00bb053a1bc6504c567ecf9d
[ "Apache-2.0" ]
1
2018-06-20T13:27:52.000Z
2018-06-20T13:27:52.000Z
deplugins/cfront_ssl.py
arndtroth/AWSomeOverview
e9010f4356215f5c00bb053a1bc6504c567ecf9d
[ "Apache-2.0" ]
1
2019-03-15T12:30:56.000Z
2019-03-15T12:30:56.000Z
deplugins/cfront_ssl.py
arndtroth/AWSomeOverview
e9010f4356215f5c00bb053a1bc6504c567ecf9d
[ "Apache-2.0" ]
null
null
null
""" Class for Data Extraction from CloudFront """ import boto3 from deplugins.base import AWSFact class CloudFront (AWSFact): NAME = "CloudFront-SSL" OPTION = 'cfront_ssl' ORDERED_HEADINGS = ['Id', 'SSLSupportMethod', 'MinimumProtocolVersion', 'IAMCertificateId'] def get_all_regions(self): ...
31.057143
97
0.633855
984
0.905244
0
0
0
0
0
0
439
0.403864
92772f7652e5d7de73104cce45e1da31b37c887a
2,348
py
Python
733.flood-fill.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
733.flood-fill.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
733.flood-fill.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=733 lang=python3 # # [733] Flood Fill # # https://leetcode.com/problems/flood-fill/description/ # # algorithms # Easy (52.32%) # Likes: 745 # Dislikes: 146 # Total Accepted: 86.6K # Total Submissions: 163.5K # Testcase Example: '[[1,1,1],[1,1,0],[1,0,1]]\n1\n1\n2' # # # An image is repre...
30.493506
100
0.617121
650
0.276831
0
0
0
0
0
0
1,639
0.698041
9278b5055cf7701d71ff39aa690e2ba8bd96a0df
2,205
py
Python
src/graph_transpiler/webdnn/backend/webgpu/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/webgpu/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/webgpu/kernels/reshape.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from typing import List from webdnn.backend.code_generator.allocator import MemoryLayout from webdnn.backend.code_generator.injectors.buffer_injector import BufferInjector from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.webgpu.generator import WebGPUDescr...
32.910448
91
0.673469
0
0
0
0
1,026
0.465306
0
0
685
0.310658
9278cc591836f5c26f4155dd214702456cfc9574
6,624
py
Python
Ping-pong.py
IlyA1536/Ping-Pong
662d0e5801fab4bae949afeae6e67d050c8b58f4
[ "CC0-1.0" ]
null
null
null
Ping-pong.py
IlyA1536/Ping-Pong
662d0e5801fab4bae949afeae6e67d050c8b58f4
[ "CC0-1.0" ]
null
null
null
Ping-pong.py
IlyA1536/Ping-Pong
662d0e5801fab4bae949afeae6e67d050c8b58f4
[ "CC0-1.0" ]
null
null
null
from pygame import * from random import randint #фоновая музыка mixer.init() mixer.music.load('music.mp3') mixer.music.play() #подключение звуков GOAL_sound = mixer.Sound('GOAL.wav') hit_sound = mixer.Sound('HIT.wav') #шрифты и надписи font.init() font1 = font.SysFont("Arial", 73) win_left_text = fo...
31.69378
97
0.575483
1,771
0.2289
0
0
0
0
0
0
2,630
0.339925
92794c155ed2c47d8f504e48e0719392aee204cd
1,277
py
Python
openwhisk/devices.py
jdsheehan/cristata
7115417c63f193b2eee85a6e0461106880e718aa
[ "Apache-2.0" ]
5
2018-07-30T18:50:55.000Z
2019-03-20T18:07:05.000Z
openwhisk/devices.py
jdsheehan/cristata
7115417c63f193b2eee85a6e0461106880e718aa
[ "Apache-2.0" ]
1
2018-06-25T21:08:35.000Z
2018-07-13T21:23:39.000Z
openwhisk/devices.py
jdsheehan/cristata
7115417c63f193b2eee85a6e0461106880e718aa
[ "Apache-2.0" ]
7
2018-06-25T21:09:29.000Z
2020-06-29T14:09:01.000Z
#!/usr/bin/env python #author mark_purcell@ie.ibm.com import json import os import requests import csv from db2 import DB2 SQL_TEMPLATE = '' SQL_TEMPLATE += 'CALL {database}(); ' def build_query(database): sql_template = SQL_TEMPLATE.format(database=database) return sql_template, True def process_response...
22.017241
98
0.588097
0
0
0
0
0
0
0
0
273
0.213782
927c35a89cf67b0b0ea4047744d2f4c1543ea266
554
py
Python
faq/urls/normal.py
coordt/django-faq
1aa924ee5806dd8611fcf4a83ec46182b191ab60
[ "BSD-3-Clause" ]
1
2019-06-14T15:29:49.000Z
2019-06-14T15:29:49.000Z
faq/urls/normal.py
natgeosociety/django-faq
1aa924ee5806dd8611fcf4a83ec46182b191ab60
[ "BSD-3-Clause" ]
null
null
null
faq/urls/normal.py
natgeosociety/django-faq
1aa924ee5806dd8611fcf4a83ec46182b191ab60
[ "BSD-3-Clause" ]
1
2016-05-05T21:56:37.000Z
2016-05-05T21:56:37.000Z
# -*- coding: utf-8 -*- from django.conf.urls import url from faq.views import TopicListView, TopicDetailView, question_detail # Include these patterns if you want URLs like: # # /faq/ # /faq/topic/ # /faq/topic/#question # urlpatterns = [ url(r'^$', TopicListView.as_view(), name='faq-topic-list'), u...
21.307692
69
0.579422
0
0
0
0
0
0
0
0
248
0.447653
927cacc6f1985cec9c819c64c22a24d06d77cb91
22,599
py
Python
bitcoin/bitcoin.py
lucasmoten/pizero-minipitft
fcc4232348f0ebfbb6891fe52bf37036350a618a
[ "MIT" ]
1
2020-11-29T21:24:31.000Z
2020-11-29T21:24:31.000Z
bitcoin/bitcoin.py
lucasmoten/pizero-minipitft
fcc4232348f0ebfbb6891fe52bf37036350a618a
[ "MIT" ]
11
2020-12-03T16:40:51.000Z
2020-12-07T15:47:31.000Z
bitcoin/bitcoin.py
lucasmoten/pizero-minipitft
fcc4232348f0ebfbb6891fe52bf37036350a618a
[ "MIT" ]
1
2022-03-30T05:18:42.000Z
2022-03-30T05:18:42.000Z
# -*- coding: utf-8 -*- import time import subprocess import digitalio import board from PIL import Image, ImageDraw, ImageFont import adafruit_rgb_display.st7789 as st7789 import requests ##################################################################################################### # You can disable panels th...
38.499148
145
0.640427
0
0
0
0
0
0
0
0
5,521
0.244303
927d630001b81a2b7cbcd0affc97c5a4e1a4fbf6
15,341
py
Python
scenarios/instance_provision_pressure.py
stdweird/cbtool
7ee1344c8bfa9d5cd6b4b6b620a35304509a1876
[ "Apache-2.0" ]
69
2015-01-29T14:19:57.000Z
2021-12-05T13:21:37.000Z
scenarios/instance_provision_pressure.py
stdweird/cbtool
7ee1344c8bfa9d5cd6b4b6b620a35304509a1876
[ "Apache-2.0" ]
132
2015-01-07T21:39:11.000Z
2022-01-28T19:12:18.000Z
scenarios/instance_provision_pressure.py
stdweird/cbtool
7ee1344c8bfa9d5cd6b4b6b620a35304509a1876
[ "Apache-2.0" ]
50
2015-02-10T15:53:22.000Z
2022-01-13T06:22:10.000Z
#!/usr/bin/python import itertools import fnmatch import json import os import pwd import redis import prettytable import datetime from sys import path, argv, stdout from time import sleep, time from optparse import OptionParser from common import * class ExpRunner: # ##########################################...
39.846753
154
0.472981
12,476
0.813246
0
0
0
0
0
0
4,856
0.316537
927feb504f8852916c65fed6b6c9f88a6f9cb945
24,612
py
Python
tacker/tests/unit/db/utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/tests/unit/db/utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/tests/unit/db/utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright 2015 Brocade Communications System, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
43.254833
79
0.596376
0
0
0
0
0
0
0
0
11,667
0.474037
9282e076561a09b5b5e807ad3ccd8b3ba2cf7148
264
py
Python
leap_year_using_inbuilt_funciton.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
2
2019-07-10T06:32:05.000Z
2019-11-13T07:52:53.000Z
leap_year_using_inbuilt_funciton.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
null
null
null
leap_year_using_inbuilt_funciton.py
Ratheshprabakar/Python-Programs
fca9d4f0b5f5f5693b3d7e25c6d890f4973dc19e
[ "MIT" ]
1
2019-10-12T06:56:13.000Z
2019-10-12T06:56:13.000Z
#Python program to check whether the year is leap or not using inbuilt function import calendar def main(): x=int(input("Enter the year")) if calendar.isleap(x): print(x,"is leap year") else: print(x,"is not a leap year") if __name__=='__main__': main()
22
79
0.704545
0
0
0
0
0
0
0
0
139
0.526515
9285021996e531713e496d0c51fcc3ab2e94ce3e
32
py
Python
build/lib/maguro/version.py
rmaniego/karton
68e66599159a2cca316965a6fa24c1bf4a65e53a
[ "MIT" ]
1
2021-06-28T21:31:43.000Z
2021-06-28T21:31:43.000Z
build/lib/maguro/version.py
rmaniego/maguro
68e66599159a2cca316965a6fa24c1bf4a65e53a
[ "MIT" ]
null
null
null
build/lib/maguro/version.py
rmaniego/maguro
68e66599159a2cca316965a6fa24c1bf4a65e53a
[ "MIT" ]
null
null
null
""" maguro """ version = "0.0.9"
16
17
0.5
0
0
0
0
0
0
0
0
21
0.65625
9285a25b9d2fbbdda300d5bb1bf0da1d2258c4e4
208
py
Python
src/build-scripts/hydrafw-revision.py
0x8008135/hydrafw
c031ff86983a89f173c2ac0cceeaf8113704e10c
[ "Apache-2.0" ]
163
2016-12-28T04:57:23.000Z
2022-03-31T15:05:17.000Z
src/build-scripts/hydrafw-revision.py
0x8008135/hydrafw
c031ff86983a89f173c2ac0cceeaf8113704e10c
[ "Apache-2.0" ]
47
2016-12-27T23:21:46.000Z
2022-02-27T08:36:21.000Z
src/build-scripts/hydrafw-revision.py
0x8008135/hydrafw
c031ff86983a89f173c2ac0cceeaf8113704e10c
[ "Apache-2.0" ]
62
2016-12-27T06:28:32.000Z
2022-02-22T13:51:29.000Z
from git import * import re r = re.compile("v(\d+\.\d+).*") git=Repo(search_parent_directories=True).git version = git.describe(tags=True,always=True,dirty=True,long=True) print(r.search(version).group(1))
23.111111
66
0.725962
0
0
0
0
0
0
0
0
15
0.072115
9286688c082091e5345a71747b2028f3e00ce126
7,022
py
Python
cisco_deviot/gateway.py
CiscoDevIoT/gateway-python-sdk
6bc087cde44337dc76ee974775d116e2a8091c75
[ "Apache-2.0" ]
1
2019-02-27T00:50:27.000Z
2019-02-27T00:50:27.000Z
cisco_deviot/gateway.py
CiscoDevIoT/gateway-python-sdk
6bc087cde44337dc76ee974775d116e2a8091c75
[ "Apache-2.0" ]
null
null
null
cisco_deviot/gateway.py
CiscoDevIoT/gateway-python-sdk
6bc087cde44337dc76ee974775d116e2a8091c75
[ "Apache-2.0" ]
1
2019-03-01T19:03:51.000Z
2019-03-01T19:03:51.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
41.064327
126
0.51239
6,245
0.889348
0
0
0
0
0
0
1,333
0.189832
928812ba9d8d40761eede59af222c55c1b93f423
2,658
py
Python
vault/models.py
szaydel/locksmith
39316e1b321d973576d0b3dcc840a1fde98ef0f1
[ "Apache-2.0" ]
64
2015-01-04T00:04:26.000Z
2021-10-09T04:44:57.000Z
vault/models.py
szaydel/locksmith
39316e1b321d973576d0b3dcc840a1fde98ef0f1
[ "Apache-2.0" ]
2
2015-04-11T17:37:06.000Z
2015-05-04T13:41:44.000Z
vault/models.py
szaydel/locksmith
39316e1b321d973576d0b3dcc840a1fde98ef0f1
[ "Apache-2.0" ]
19
2015-01-19T21:31:07.000Z
2020-02-15T08:53:38.000Z
# Copyright 2013 Evan Hazlett and contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
41.53125
79
0.715576
1,745
0.656509
0
0
0
0
0
0
759
0.285553
9288db8bce578378c4eef0b2f0dd1396e58bb840
4,482
py
Python
src/PCE_Codes/graphs.py
nasa/UQPCE
64f2143cddf83ca2e835442db2fc9ef33c6d26be
[ "NASA-1.3" ]
13
2020-11-07T22:03:35.000Z
2022-01-12T22:08:53.000Z
src/PCE_Codes/graphs.py
nasa/UQPCE
64f2143cddf83ca2e835442db2fc9ef33c6d26be
[ "NASA-1.3" ]
null
null
null
src/PCE_Codes/graphs.py
nasa/UQPCE
64f2143cddf83ca2e835442db2fc9ef33c6d26be
[ "NASA-1.3" ]
4
2020-11-23T16:24:03.000Z
2022-03-25T01:25:21.000Z
from builtins import getattr from warnings import warn try: from mpi4py.MPI import DOUBLE as MPI_DOUBLE, COMM_WORLD as MPI_COMM_WORLD import matplotlib.pyplot as plt import numpy as np except: warn('Ensure that all required packages are installed.') exit() from PCE_Codes._helpers import _warn from...
32.715328
83
0.585676
4,022
0.897367
0
0
0
0
0
0
1,954
0.435966
9288fc164e0faa00174f655789c095f5517d439e
21,121
py
Python
scripts/kidney.py
vickiwickinger/ThinkBayes2
2259f1e83dba9a959b2cc84c7b83318b53b3ee24
[ "MIT" ]
1,337
2015-01-06T06:23:55.000Z
2022-03-31T21:06:21.000Z
scripts/kidney.py
vickiwickinger/ThinkBayes2
2259f1e83dba9a959b2cc84c7b83318b53b3ee24
[ "MIT" ]
43
2015-04-23T13:14:15.000Z
2022-01-04T12:55:59.000Z
scripts/kidney.py
vickiwickinger/ThinkBayes2
2259f1e83dba9a959b2cc84c7b83318b53b3ee24
[ "MIT" ]
1,497
2015-01-13T22:05:32.000Z
2022-03-30T09:19:53.000Z
"""This file contains code for use with "Think Bayes", by Allen B. Downey, available from greenteapress.com Copyright 2012 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ from __future__ import print_function, division import math import numpy import random import sys import correlation ...
27.008951
80
0.573884
9,239
0.437432
1,131
0.053549
0
0
0
0
8,294
0.39269
92893bf164929c8a7d2d8a430070228cde40df01
256
py
Python
django/chat/views.py
AngelOnFira/django-quasar-template
f1f33a05bd78285d1dddd7480f1279f769576700
[ "MIT" ]
null
null
null
django/chat/views.py
AngelOnFira/django-quasar-template
f1f33a05bd78285d1dddd7480f1279f769576700
[ "MIT" ]
1
2022-02-14T11:05:12.000Z
2022-02-14T11:05:12.000Z
django/chat/views.py
AngelOnFira/django-quasar-template
f1f33a05bd78285d1dddd7480f1279f769576700
[ "MIT" ]
null
null
null
from .models import Message from .serializers import MessageSerializer from rest_framework import viewsets class MessageViewSet(viewsets.ModelViewSet): queryset = Message.objects.all().order_by("created_at") serializer_class = MessageSerializer
25.6
59
0.8125
145
0.566406
0
0
0
0
0
0
12
0.046875
928957e67f711c82d8b751175b522466746c5306
157
py
Python
src/data_loader/__init__.py
YCaptain/MapWorld-pred
12f35cd0744cabe1303321e0256b17967fe43da9
[ "MIT" ]
null
null
null
src/data_loader/__init__.py
YCaptain/MapWorld-pred
12f35cd0744cabe1303321e0256b17967fe43da9
[ "MIT" ]
null
null
null
src/data_loader/__init__.py
YCaptain/MapWorld-pred
12f35cd0744cabe1303321e0256b17967fe43da9
[ "MIT" ]
null
null
null
from .spacenet_loader import SpaceNetDataLoader from .spacenet_road_loader import SpaceNetRoadDataLoader from .cyclegan_data import CustomDatasetDataLoader
31.4
56
0.898089
0
0
0
0
0
0
0
0
0
0
928aafa4ae95d17a8208147f42a9e723807969fb
2,608
py
Python
fbrp/src/fbrp/runtime/base.py
ali-senguel/fairo-explore
893481da270eed1e6d504c71e483d685ca9218d1
[ "MIT" ]
null
null
null
fbrp/src/fbrp/runtime/base.py
ali-senguel/fairo-explore
893481da270eed1e6d504c71e483d685ca9218d1
[ "MIT" ]
null
null
null
fbrp/src/fbrp/runtime/base.py
ali-senguel/fairo-explore
893481da270eed1e6d504c71e483d685ca9218d1
[ "MIT" ]
null
null
null
import asyncio from fbrp.process import ProcDef import a0 import argparse import asyncio import contextlib import enum import psutil import json class BaseLauncher: def __init__(self): pass async def run(self, name: str, proc_def: ProcDef, args: argparse.Namespace): raise NotImplementedError(...
30.682353
84
0.597009
2,457
0.942101
0
0
0
0
1,380
0.529141
438
0.167945
928bb066d36b361a796df63bf40e98b8b8f26f01
88
py
Python
pytest_relaxed/__init__.py
cclauss/pytest-relaxed
2f6f83b35af312ce8f34686af79e7fdb7ca23726
[ "BSD-2-Clause" ]
24
2017-04-06T22:09:33.000Z
2022-03-26T14:06:38.000Z
pytest_relaxed/__init__.py
cclauss/pytest-relaxed
2f6f83b35af312ce8f34686af79e7fdb7ca23726
[ "BSD-2-Clause" ]
14
2017-11-15T18:53:17.000Z
2021-12-13T23:25:38.000Z
pytest_relaxed/__init__.py
cclauss/pytest-relaxed
2f6f83b35af312ce8f34686af79e7fdb7ca23726
[ "BSD-2-Clause" ]
8
2017-05-24T20:21:31.000Z
2022-03-10T05:58:26.000Z
# Convenience imports. # flake8: noqa from .trap import trap from .raises import raises
17.6
26
0.772727
0
0
0
0
0
0
0
0
36
0.409091
928bff163a9c28010dac3e96f467a861b8f12154
1,375
py
Python
main/views.py
felipeue/SmartBuilding
57d904c6166c87f836bc8fada9eb5a2bc82069b8
[ "MIT" ]
null
null
null
main/views.py
felipeue/SmartBuilding
57d904c6166c87f836bc8fada9eb5a2bc82069b8
[ "MIT" ]
null
null
null
main/views.py
felipeue/SmartBuilding
57d904c6166c87f836bc8fada9eb5a2bc82069b8
[ "MIT" ]
null
null
null
from django.views.generic import TemplateView, RedirectView from django.contrib.auth import login, logout, authenticate from django.shortcuts import render from main.permissions import * class IndexView(TemplateView): template_name = "home.html" def login_resident(request): if request.method == 'POST': ...
31.25
72
0.612364
259
0.188364
0
0
0
0
0
0
160
0.116364
928cdb12cb361d5fcb3ef68b59a2d730df5d6777
1,072
py
Python
parser.py
wongalvis/WiktionaryCrawler
4a61e5f28d4bca591b10f9bcc2b3c0d29138fc15
[ "Unlicense" ]
null
null
null
parser.py
wongalvis/WiktionaryCrawler
4a61e5f28d4bca591b10f9bcc2b3c0d29138fc15
[ "Unlicense" ]
null
null
null
parser.py
wongalvis/WiktionaryCrawler
4a61e5f28d4bca591b10f9bcc2b3c0d29138fc15
[ "Unlicense" ]
1
2019-03-28T00:25:46.000Z
2019-03-28T00:25:46.000Z
import config, lang import pb import urllib2 import urlnorm import os import time def parse(pages): spelings = [] speling_dirpath = "data/speling/%s/%s/" % (config.wiki_lang, config.start_cat) pages_dirpath = "data/pages/%s/%s/" % (config.wiki_lang, config.start_cat) counter = 0 for page in pages: counter +=...
23.304348
79
0.677239
0
0
0
0
0
0
0
0
107
0.099813
928ec887f63d3c4f2f730f5e35706d8bb96d40b2
8,087
py
Python
sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_automation_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_automation_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/securityinsights/v20190101preview/get_automation_rule.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
37.439815
229
0.657722
5,716
0.706813
577
0.071349
5,048
0.624212
0
0
2,669
0.330036
928fe78301baaab64810fda9828eb05526f5d381
416
py
Python
utils/hmdb_label.py
raozhongyu/3D-ConvNets-for-Action-Recognition
8ede339ad4988bfee78a419022cff9f719d2af71
[ "MIT" ]
46
2018-08-25T07:45:07.000Z
2022-01-27T04:06:38.000Z
utils/hmdb_label.py
raozhongyu/3D-ConvNets-for-Action-Recognition
8ede339ad4988bfee78a419022cff9f719d2af71
[ "MIT" ]
1
2018-10-10T12:59:43.000Z
2018-10-10T12:59:43.000Z
utils/hmdb_label.py
raozhongyu/3D-ConvNets-for-Action-Recognition
8ede339ad4988bfee78a419022cff9f719d2af71
[ "MIT" ]
19
2018-10-10T12:58:44.000Z
2021-04-25T16:12:08.000Z
import os img_path = '/home/deep/datasets/hmdb/' clip_length = 16 f = open('ucfTrainTestlist/hmdb.txt', 'w') actions = os.listdir(img_path) actions.sort(key=str.lower) label = 0 for action in actions: print(action) samples = os.listdir(img_path + action) samples.sort(key=str.lower) for sample in sam...
20.8
64
0.644231
0
0
0
0
0
0
0
0
67
0.161058
9291017fab8fc41f30f6a3b5858bb70a792408b4
73
py
Python
ik/src/tests/python/test_Solver.py
LaudateCorpus1/ik
c472230ecd6958f7a105d7188ebb1e871ef7a8b1
[ "MIT" ]
363
2017-08-22T03:07:55.000Z
2022-03-27T02:41:30.000Z
ik/src/tests/python/test_Solver.py
LaudateCorpus1/ik
c472230ecd6958f7a105d7188ebb1e871ef7a8b1
[ "MIT" ]
18
2019-04-05T12:43:03.000Z
2022-01-19T16:25:48.000Z
ik/src/tests/python/test_Solver.py
LaudateCorpus1/ik
c472230ecd6958f7a105d7188ebb1e871ef7a8b1
[ "MIT" ]
53
2017-09-27T07:14:03.000Z
2022-01-03T17:55:18.000Z
import ik import unittest class TestSolver(unittest.TestCase): pass
12.166667
36
0.780822
45
0.616438
0
0
0
0
0
0
0
0
929107b27ad9748f2ff4956a92dd324eba875c13
437
py
Python
geotrek/feedback/migrations/0031_report_eid.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/migrations/0031_report_eid.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/migrations/0031_report_eid.py
GeotrekCE/Geotrek
c1393925c1940ac795ab7fc04819cd8c78bc79fb
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.14 on 2022-03-24 11:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('feedback', '0030_auto_20220324_0947'), ] operations = [ migrations.AddField( model_name='report', name='eid', ...
23
104
0.613272
343
0.784897
0
0
0
0
0
0
111
0.254005
9295f185bea3693f60585923f865715fd849e6ea
1,232
py
Python
transl-service-sls/test_handler.py
viktormishyn/transl-service-aws
2bae073aded82f316123eefd845aa1a1e0a69b5d
[ "MIT" ]
null
null
null
transl-service-sls/test_handler.py
viktormishyn/transl-service-aws
2bae073aded82f316123eefd845aa1a1e0a69b5d
[ "MIT" ]
null
null
null
transl-service-sls/test_handler.py
viktormishyn/transl-service-aws
2bae073aded82f316123eefd845aa1a1e0a69b5d
[ "MIT" ]
null
null
null
import json import pytest from handler import detect_language, translate_message, handler @pytest.mark.skip @pytest.mark.parametrize("test_input, expected", [ ('This text is written in English', 'en'), ('Этот текст написан mostly по-русски', 'ru'), ('Ten tekst jest napisany w jezyku polskim, ale bez znako...
34.222222
86
0.693182
0
0
0
0
1,194
0.923434
0
0
519
0.401392
9297372fa443955e53e67f87e3ad4b6f573eebaa
715
py
Python
ag/orbit/node/config/interface.py
AlphaGriffin/orbit-node
6e330a2734a6a5dfbb52d984fe0b2f8dff4755cd
[ "MIT" ]
null
null
null
ag/orbit/node/config/interface.py
AlphaGriffin/orbit-node
6e330a2734a6a5dfbb52d984fe0b2f8dff4755cd
[ "MIT" ]
null
null
null
ag/orbit/node/config/interface.py
AlphaGriffin/orbit-node
6e330a2734a6a5dfbb52d984fe0b2f8dff4755cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2018 Alpha Griffin # @%@~LICENSE~@%@ from ag.orbit.command import main from ag.orbit.node.config import get_webapi_interface, set_webapi_interface def run(args): if args and len(args) != 1: raise ValueError("Expecting exactly 1 argument") if args: ip ...
20.428571
75
0.606993
0
0
0
0
0
0
0
0
229
0.32028
92978a18ec72ff57a63325176d0b1a9c34d9e043
849
py
Python
license_plate_classifier.py
neryay/OCR_SPACE_License_Plate_Detection
c61b620df4558cc7b0b9a868405395f7aa708dac
[ "Unlicense" ]
null
null
null
license_plate_classifier.py
neryay/OCR_SPACE_License_Plate_Detection
c61b620df4558cc7b0b9a868405395f7aa708dac
[ "Unlicense" ]
null
null
null
license_plate_classifier.py
neryay/OCR_SPACE_License_Plate_Detection
c61b620df4558cc7b0b9a868405395f7aa708dac
[ "Unlicense" ]
null
null
null
import ocr_space_api_engine as ocr_eng import licensePlate_string_parser as license_parser import DB_Utils import os import datetime def run(): dataset_rel_path = 'images/' files = os.listdir(dataset_rel_path) vehicles = {license_parser.tables_names[0]: {}, license_parser.tables...
32.653846
97
0.673734
0
0
0
0
0
0
0
0
9
0.010601
929828265e477d2b3b2741fd74dc69a90b281f11
1,420
py
Python
tests/integration/test_display_para_from_json.py
lizschley/number_six
a427202397822fca1f49d43d138c24fffdbe95da
[ "MIT" ]
1
2020-07-14T20:13:05.000Z
2020-07-14T20:13:05.000Z
tests/integration/test_display_para_from_json.py
lizschley/number_six
a427202397822fca1f49d43d138c24fffdbe95da
[ "MIT" ]
3
2021-04-06T20:40:08.000Z
2021-06-03T21:54:21.000Z
tests/integration/test_display_para_from_json.py
lizschley/number_six
a427202397822fca1f49d43d138c24fffdbe95da
[ "MIT" ]
null
null
null
'''These tests are for utilities to call paragraph helpers that instansiate the common classes. I am using ''' # pylint: disable=missing-function-docstring import testing.constants.common as common def test_display_para_from_json_returns_dictionary(display_text_from_json): '''This is an integration test, testi...
39.444444
81
0.772535
0
0
0
0
0
0
0
0
597
0.420423
929893933759cc9c2a16174a003428aa9861cd4f
1,290
py
Python
src/main/python/ch03/sec03/demo_corpus_loader.py
zhuyuanxiang/Hanlp-Books-Examples
17aff14fa22ec6bc422ffa53497f98c22f9c7efe
[ "MIT" ]
4
2021-01-04T07:04:32.000Z
2021-07-25T12:25:58.000Z
src/main/python/ch03/sec03/demo_corpus_loader.py
zhuyuanxiang/Hanlp-Books-Examples
17aff14fa22ec6bc422ffa53497f98c22f9c7efe
[ "MIT" ]
null
null
null
src/main/python/ch03/sec03/demo_corpus_loader.py
zhuyuanxiang/Hanlp-Books-Examples
17aff14fa22ec6bc422ffa53497f98c22f9c7efe
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @Author : zYx.Tom @Contact : 526614962@qq.com @site : https://zhuyuanxiang.github.io --------------------------- @Software : PyCharm @Project : Hanlp-Books-Examples @File : demo_corpus_loader.py @Version : v0.1 @Time : 2020-12-21 16:27 @...
24.807692
72
0.55969
0
0
0
0
0
0
0
0
640
0.475483
929a40a2c2266e63e865c5849f48f7efa2fab62e
1,895
py
Python
saged/get_tissue_data.py
ben-heil/saged
a2c039f00bfc97011c2ee1343c39af42e6f2e1e6
[ "BSD-3-Clause" ]
3
2020-07-24T01:06:04.000Z
2021-12-20T14:35:21.000Z
saged/get_tissue_data.py
ben-heil/saged
a2c039f00bfc97011c2ee1343c39af42e6f2e1e6
[ "BSD-3-Clause" ]
39
2020-06-26T12:54:35.000Z
2022-03-23T14:16:34.000Z
saged/get_tissue_data.py
ben-heil/saged
a2c039f00bfc97011c2ee1343c39af42e6f2e1e6
[ "BSD-3-Clause" ]
1
2020-05-29T14:24:16.000Z
2020-05-29T14:24:16.000Z
""" Create a label file and a pickled subset file of the recount3 dataset containing only samples with manually annotated tissue labels """ import argparse import pickle from typing import Dict import pandas as pd def map_samples_to_labels(file_path: str) -> Dict[str, str]: metadata_df = pd.read_csv(file_path, ...
34.454545
98
0.729815
0
0
0
0
0
0
0
0
513
0.270712
929df0c92f35ab103a77aaa4f06fb08b870d147f
278
py
Python
hermes_common/tests/leaks/dealloc.py
certik/hermes1d-llnl
8e3b76fd3022af90e5c4c3923337a422d79604d5
[ "BSD-3-Clause" ]
1
2016-08-18T23:21:55.000Z
2016-08-18T23:21:55.000Z
hermes_common/tests/leaks/dealloc.py
certik/hermes1d-llnl
8e3b76fd3022af90e5c4c3923337a422d79604d5
[ "BSD-3-Clause" ]
null
null
null
hermes_common/tests/leaks/dealloc.py
certik/hermes1d-llnl
8e3b76fd3022af90e5c4c3923337a422d79604d5
[ "BSD-3-Clause" ]
null
null
null
""" This module contains testing classes for the leaks test. """ class A(object): def __init__(self, c): print "A.__init__() was called" self._c = c def __del__(self): print "A.__del__() was called" self._c.event("__del__ was called")
19.857143
56
0.604317
211
0.758993
0
0
0
0
0
0
133
0.478417
929ea315775a00593ed7a9f890d334c617507497
4,136
py
Python
tests/broker/test_del_parameter.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
tests/broker/test_del_parameter.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
tests/broker/test_del_parameter.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
#!/usr/bin/env python # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2016 Contributor # # 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...
42.204082
89
0.60324
3,072
0.742747
0
0
0
0
0
0
2,011
0.486219
929f30d54fb67d713942739135dbf52d301c492c
1,210
py
Python
tests/json_type_content_validator_tests.py
vklap/flask-json-content-type-validator
9c6e596b1e47dc1fd4fe0ab738abbc7a4a8ab206
[ "MIT" ]
2
2019-11-15T17:59:36.000Z
2020-06-08T04:42:36.000Z
tests/json_type_content_validator_tests.py
vklap/flask-json-content-type-validator
9c6e596b1e47dc1fd4fe0ab738abbc7a4a8ab206
[ "MIT" ]
null
null
null
tests/json_type_content_validator_tests.py
vklap/flask-json-content-type-validator
9c6e596b1e47dc1fd4fe0ab738abbc7a4a8ab206
[ "MIT" ]
null
null
null
import unittest import json from tests.dummy_flask_app import app class JsonTypeContentValidatorTests(unittest.TestCase): def setUp(self): app.testing = True self.app = app.test_client() def test_dummy_resource_should_return_data_given_json_content_header(self): # given url = ...
29.512195
85
0.643802
1,141
0.942975
0
0
0
0
0
0
162
0.133884
929fca46bf26c17e3a094d83f8ff90c1a0c57add
582
py
Python
webware/MiddleKit/WebBrowser/BrowseObject.py
PeaceWorksTechnologySolutions/w4py3-middlekit
a9554e20c47010e7b0c0deee63e1786482c59a1c
[ "MIT" ]
2
2020-10-31T09:12:58.000Z
2021-02-20T13:52:14.000Z
webware/MiddleKit/WebBrowser/BrowseObject.py
WebwareForPython/w4py3-middlekit
f740e2d2d3a5c225d6b8f9eb27ac08f8deed47e6
[ "MIT" ]
2
2020-01-07T15:24:09.000Z
2020-01-08T15:39:57.000Z
webware/MiddleKit/WebBrowser/BrowseObject.py
PeaceWorksTechnologySolutions/w4py3-middlekit
a9554e20c47010e7b0c0deee63e1786482c59a1c
[ "MIT" ]
1
2021-09-27T21:04:18.000Z
2021-09-27T21:04:18.000Z
from .StorePage import StorePage class BrowseObject(StorePage): def writeContent(self): req = self.request() className = req.field('class') serialNum = int(req.field('serialNum')) obj = self.store().fetchObject(className, serialNum, None) if obj is None: self.w...
29.1
66
0.539519
546
0.938144
0
0
0
0
0
0
75
0.128866
92a06ec22b5b18f54c6edc08711413ab59ced176
199
py
Python
mountain/db.py
tehmaze-labs/mountain
f9fc9d66b3bd525b771acc2d76e36aaf405dc51a
[ "MIT" ]
2
2019-09-22T15:33:55.000Z
2022-02-20T09:34:12.000Z
mountain/db.py
tehmaze-labs/mountain
f9fc9d66b3bd525b771acc2d76e36aaf405dc51a
[ "MIT" ]
null
null
null
mountain/db.py
tehmaze-labs/mountain
f9fc9d66b3bd525b771acc2d76e36aaf405dc51a
[ "MIT" ]
null
null
null
# Import SQLAlchemy from flask.ext.sqlalchemy import SQLAlchemy # Import Flask from .app import app # Define the database object which is imported # by modules and controllers db = SQLAlchemy(app)
19.9
46
0.788945
0
0
0
0
0
0
0
0
107
0.537688
92a0c630be89c797fa922d133d8774ad4cfcc3c7
324
py
Python
Samples/Simple_Demo/Python_Export/Export_whole_project/D4P_export_demo.py
Embarcadero/Delphi4PythonExporter
0137a298552e5356fa2cadb4fc288adeed0f03f4
[ "MIT" ]
18
2022-02-02T20:23:03.000Z
2022-03-29T11:26:41.000Z
Samples/Simple_Demo/Python_Export/Export_whole_project/D4P_export_demo.py
Embarcadero/Delphi4PythonExporter
0137a298552e5356fa2cadb4fc288adeed0f03f4
[ "MIT" ]
3
2022-02-14T13:19:29.000Z
2022-03-28T20:07:33.000Z
Samples/Simple_Demo/Python_Export/Export_whole_project/D4P_export_demo.py
Embarcadero/Delphi4PythonExporter
0137a298552e5356fa2cadb4fc288adeed0f03f4
[ "MIT" ]
6
2022-02-10T03:12:04.000Z
2022-03-27T17:41:30.000Z
from delphifmx import * from parent_window import Parent_Form def main(): Application.Initialize() Application.Title = 'Exporter Demo' Application.MainForm = Parent_Form(Application) Application.MainForm.Show() Application.Run() Application.MainForm.Destroy() if __name__ == '__main__': mai...
23.142857
51
0.725309
0
0
0
0
0
0
0
0
25
0.07716
92a139101f7375dea0fe1c410b3894330370bd08
2,867
py
Python
scripts/generate-new-list.py
shiaki/sforzando
24aa5c49693fe783336cf41847b1b361e709d086
[ "MIT" ]
null
null
null
scripts/generate-new-list.py
shiaki/sforzando
24aa5c49693fe783336cf41847b1b361e709d086
[ "MIT" ]
null
null
null
scripts/generate-new-list.py
shiaki/sforzando
24aa5c49693fe783336cf41847b1b361e709d086
[ "MIT" ]
null
null
null
#!/usr/bin/python ''' Read results from visual inspection, create new target lists. ''' import os, sys import json import glob, shutil from collections import OrderedDict if __name__ == '__main__': # read candidate events. with open('candidate-events.json', 'r') as fp: cand_events = json.load(fp...
31.855556
70
0.560516
0
0
0
0
0
0
0
0
810
0.282525
92a1643415ce525953e9608207d138948ae44c6e
736
py
Python
setup.py
movermeyer/rexlex
6c451a3b7e9134cbdf895a7ec5682e480480ef1a
[ "BSD-3-Clause" ]
null
null
null
setup.py
movermeyer/rexlex
6c451a3b7e9134cbdf895a7ec5682e480480ef1a
[ "BSD-3-Clause" ]
null
null
null
setup.py
movermeyer/rexlex
6c451a3b7e9134cbdf895a7ec5682e480480ef1a
[ "BSD-3-Clause" ]
1
2018-03-05T00:40:04.000Z
2018-03-05T00:40:04.000Z
#!/usr/bin/env python from setuptools import find_packages, setup long_description = """Basic regular expression lexer implementation. """ appname = "rexlex" version = "0.02" setup(**{ "name": appname, "version": version, "packages": [ 'tater', ], "author": "Thom Neale", "package...
23
68
0.588315
0
0
0
0
0
0
0
0
405
0.550272
92a2d943773633b0c8d2368e44bf92c1be473d13
2,776
py
Python
alipay/aop/api/domain/EduWorkAddress.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/EduWorkAddress.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/EduWorkAddress.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class EduWorkAddress(object): def __init__(self): self._address = None self._city = None self._district_name = None self._province = None self._street_name = Non...
27.485149
77
0.569885
2,659
0.957853
0
0
1,194
0.430115
0
0
336
0.121037
92a3e68d41a9710b084dfa63bf531cd128f665af
450
py
Python
Python/435.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
1
2020-12-10T05:36:15.000Z
2020-12-10T05:36:15.000Z
Python/435.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
null
null
null
Python/435.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
3
2020-04-06T05:55:08.000Z
2021-08-29T14:26:54.000Z
class Solution: def eraseOverlapIntervals(self, intervals: List[List[int]]) -> int: if not intervals: return 0 count = 0 intervals.sort() left, right = intervals[0] for start, end in intervals[1:]: if start < right: count += 1 ...
26.470588
71
0.451111
419
0.931111
0
0
0
0
0
0
0
0
92a551a7495fb26a88c28fac7bc5841ea1c6677d
585
py
Python
tests/basic_tests/test_obj.py
sriteja777/My_Mario
ee90abb1f40d42805cf6a92f9773aa04a1743a44
[ "MIT" ]
1
2021-03-24T13:52:15.000Z
2021-03-24T13:52:15.000Z
tests/basic_tests/test_obj.py
sriteja777/My_Mario
ee90abb1f40d42805cf6a92f9773aa04a1743a44
[ "MIT" ]
null
null
null
tests/basic_tests/test_obj.py
sriteja777/My_Mario
ee90abb1f40d42805cf6a92f9773aa04a1743a44
[ "MIT" ]
1
2018-12-18T13:59:29.000Z
2018-12-18T13:59:29.000Z
import sys sys.path.append('/home/sriteja/PycharmProjects/My_Mario/mymario') import objects as o import config as c ob = o.Obj(10, 10, 5,6, 'a') def test_init(): assert (ob.max_x, ob.max_y, ob.min_x, ob.min_y, ob.string, ob.check_ends) == (10, 10, 5, 6, 'a', False) def test_update(): ob.min_x = 4 ob.mi...
20.892857
107
0.605128
0
0
0
0
0
0
0
0
60
0.102564
92a5e861cf4d8399bd7cd91a87489badf6a26104
3,479
py
Python
termdoc/htdm.py
jtauber/termdoc
4dd765437ddf8a1bf3eb8c2bbbda4f71273fee85
[ "MIT" ]
7
2021-05-20T23:54:30.000Z
2021-10-21T03:01:21.000Z
termdoc/htdm.py
jtauber/termdoc
4dd765437ddf8a1bf3eb8c2bbbda4f71273fee85
[ "MIT" ]
24
2021-05-18T07:56:00.000Z
2021-08-14T12:35:34.000Z
termdoc/htdm.py
jtauber/termdoc
4dd765437ddf8a1bf3eb8c2bbbda4f71273fee85
[ "MIT" ]
null
null
null
import collections from enum import Enum, auto class Duplicates(Enum): ALLOW = auto() IGNORE = auto() ERROR = auto() class HTDM: def __init__(self, address_sep=".", duplicates=Duplicates.ALLOW): self.counters = [] self.address_sep = address_sep self.duplicates = duplicates ...
36.239583
85
0.569991
3,426
0.984766
476
0.136821
0
0
0
0
87
0.025007
92a80e67902b327f49022344c6449b52dc564296
199
py
Python
CircuitPython_Made_Easy_On_CPX/cpx_play_tone/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
CircuitPython_Made_Easy_On_CPX/cpx_play_tone/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
CircuitPython_Made_Easy_On_CPX/cpx_play_tone/code.py
albinger/Adafruit_Learning_System_Guides
4fe2da261fe5d1ca282b86bd3b93ee1466346fa7
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2017 Kattni Rembor for Adafruit Industries # # SPDX-License-Identifier: MIT from adafruit_circuitplayground.express import cpx cpx.play_tone(262, 1) cpx.play_tone(294, 1)
22.111111
68
0.80402
0
0
0
0
0
0
0
0
99
0.497487
92a90c376bb34719218ade2a529d194a53bd4e68
4,375
py
Python
modules/all_class.py
shequ123/Tron_monitor
ac071481f04395c54da12aebd13096bb76337a10
[ "MIT" ]
2
2018-11-26T09:08:00.000Z
2018-12-05T04:16:49.000Z
modules/all_class.py
shequ123/Tron_monitor
ac071481f04395c54da12aebd13096bb76337a10
[ "MIT" ]
null
null
null
modules/all_class.py
shequ123/Tron_monitor
ac071481f04395c54da12aebd13096bb76337a10
[ "MIT" ]
null
null
null
# 这个文件包含3个类 # Transaction # Top # Block # 用来实例化后实行解析操作 class Transaction: txID = '' ret = [] signature = [] raw_data = {} txdata = {} type = '' def __init__(self, tx): self.txID = tx['txID'] self.ret = tx['ret'] self.signature = tx['signature'] self.raw_dat...
24.857955
100
0.630629
3,910
0.881226
0
0
0
0
0
0
1,088
0.245211
92aac54ee2f007488fca049482a6bfd926d66471
2,432
py
Python
oo/carro.py
Jaques1974/pythonbirds
dcd7270442dc652ff698689b81ee45c9a7c76c2d
[ "MIT" ]
null
null
null
oo/carro.py
Jaques1974/pythonbirds
dcd7270442dc652ff698689b81ee45c9a7c76c2d
[ "MIT" ]
null
null
null
oo/carro.py
Jaques1974/pythonbirds
dcd7270442dc652ff698689b81ee45c9a7c76c2d
[ "MIT" ]
null
null
null
""" Você deve criar uma classe carro que vai possuir dois atributos compostos por outras duas classes: 1)Motor 2)Direção O Motor terá a responsabilidade de controlar a velocidade. Ele oferece os seguintes atributos: 1)Atributo de dado velocidade 2)Método acelerar, que deverá incrementar a velocidade de uma unidade ...
17.751825
93
0.612664
219
0.08767
0
0
0
0
0
0
2,245
0.898719
92abd4bfab45f4773add1ea8e00aef24b3e5cafc
2,482
py
Python
gpflowopt/acquisition/poi.py
kyu999/GPflowOpt
972aa70a57222c66ce9bcfe077f92deb4fbaf227
[ "Apache-2.0" ]
258
2017-04-28T15:47:35.000Z
2022-03-31T08:44:40.000Z
gpflowopt/acquisition/poi.py
yanpei18345156216/GPflowOpt
f1c268e6b5dc4d7f458e06c59095901d55b73c32
[ "Apache-2.0" ]
123
2017-04-28T22:20:47.000Z
2021-10-01T16:29:47.000Z
gpflowopt/acquisition/poi.py
yanpei18345156216/GPflowOpt
f1c268e6b5dc4d7f458e06c59095901d55b73c32
[ "Apache-2.0" ]
69
2017-06-06T00:18:01.000Z
2022-02-25T21:43:39.000Z
# Copyright 2017 Joachim van der Herten # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
36.5
154
0.670024
1,706
0.687349
0
0
0
0
0
0
1,433
0.577357
92ae05ad8c75372791cf6ad5c9f3d0a8771a5d26
3,160
py
Python
courriers/backends/mailjet.py
multiplay/django-courriers
4a043ad190652126e6a6a979b196286304cc4be3
[ "MIT" ]
null
null
null
courriers/backends/mailjet.py
multiplay/django-courriers
4a043ad190652126e6a6a979b196286304cc4be3
[ "MIT" ]
null
null
null
courriers/backends/mailjet.py
multiplay/django-courriers
4a043ad190652126e6a6a979b196286304cc4be3
[ "MIT" ]
1
2022-02-12T11:34:44.000Z
2022-02-12T11:34:44.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django.template.loader import render_to_string from django.utils.translation import ugettext as _ from django.utils.functional import cached_property from django.core.exceptions import ImproperlyConfigured try: f...
32.57732
106
0.625316
2,409
0.762342
0
0
130
0.041139
0
0
516
0.163291
92aeaf3bb38c5d7ba7802606c755df910d5db3eb
307
py
Python
rnmu/pme/clique.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
8
2017-06-13T13:07:34.000Z
2020-02-13T06:30:42.000Z
rnmu/pme/clique.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
null
null
null
rnmu/pme/clique.py
marianotepper/nmu_rfit
c726be892b928b884f81452697b9211cf273e03c
[ "BSD-3-Clause" ]
3
2017-06-10T18:30:57.000Z
2019-03-19T07:28:25.000Z
from networkx import Graph, complement from networkx.algorithms.clique import find_cliques def maximal_independent_sets(mat): g = Graph(mat) for u in g.nodes(): if g.has_edge(u, u): g.remove_edge(u, u) cg = complement(g) isets = list(find_cliques(cg)) return isets
23.615385
51
0.664495
0
0
0
0
0
0
0
0
0
0
92aeeb3e9d61abc362adc14aaad14c366f08ca7b
47,930
py
Python
src/vbr/tableclasses/redcap/autogenerated/qst_mcc1_v03.py
a2cps/python-vbr
9d5d4480386d0530450d59157e0da6937320f928
[ "BSD-3-Clause" ]
1
2021-05-26T19:08:29.000Z
2021-05-26T19:08:29.000Z
src/vbr/tableclasses/redcap/autogenerated/qst_mcc1_v03.py
a2cps/python-vbr
9d5d4480386d0530450d59157e0da6937320f928
[ "BSD-3-Clause" ]
7
2021-05-04T13:12:39.000Z
2022-03-09T21:04:33.000Z
src/vbr/tableclasses/redcap/autogenerated/qst_mcc1_v03.py
a2cps/python-vbr
9d5d4480386d0530450d59157e0da6937320f928
[ "BSD-3-Clause" ]
2
2021-04-20T14:46:52.000Z
2021-06-07T20:28:28.000Z
"""Autogenerated 2021-11-16T11:37:36.551949 by redcap_classfiles.py """ from ....pgrest import * from ...constants import Constants from ..rcconstants import REDCapConstants from ..rcaptable import RcapTable __all__ = ["RcapQstMcc1V03"] class RcapQstMcc1V03(RcapTable): """Qst Mcc1 V03""" __redcap_form_nam...
68.964029
245
0.528041
47,687
0.99493
0
0
0
0
0
0
33,451
0.697914
92b048524e06f46f14c0a5fe0c3471d724de29c7
4,241
py
Python
NLP_Preprocessing/utils/utils_preprocessing.py
Centroida/case_ontotext
ad6cb3aaea5edc618bdb90443d95d067410c539f
[ "Apache-2.0" ]
2
2018-02-11T10:34:48.000Z
2018-02-11T17:31:21.000Z
NLP_Preprocessing/utils/utils_preprocessing.py
Centroida/case_ontotext
ad6cb3aaea5edc618bdb90443d95d067410c539f
[ "Apache-2.0" ]
null
null
null
NLP_Preprocessing/utils/utils_preprocessing.py
Centroida/case_ontotext
ad6cb3aaea5edc618bdb90443d95d067410c539f
[ "Apache-2.0" ]
null
null
null
# -*- coding: iso-8859-15 -*- import unicodedata import nltk from nltk.stem.porter import PorterStemmer import itertools from nltk.tokenize import RegexpTokenizer import pandas as pd import numpy as np import re from nltk.corpus import stopwords from tqdm import tqdm import glob import multiprocessing from functools im...
34.479675
90
0.590663
0
0
0
0
0
0
0
0
1,055
0.248762
92b0497c2fa2c3a01be8e9844086d5b63c53e894
1,902
py
Python
rx/testing/reactivetest.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
4,342
2015-01-06T09:00:23.000Z
2022-03-28T15:05:50.000Z
rx/testing/reactivetest.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
613
2015-01-07T20:44:56.000Z
2022-03-20T06:14:20.000Z
rx/testing/reactivetest.py
mmpio/RxPY
4ed60bb5c04aa85de5210e5537a6adfe1b667d50
[ "MIT" ]
420
2015-01-07T14:30:30.000Z
2022-03-11T22:47:46.000Z
from typing import Any import math import types from rx.core.notification import OnNext, OnError, OnCompleted from .recorded import Recorded from .subscription import Subscription def is_prime(i: int) -> bool: """Tests if number is prime or not""" if i <= 1: return False _max = int(math.floor(...
23.775
63
0.627234
1,441
0.757624
0
0
684
0.359621
0
0
64
0.033649
92b1e3a36f771edef543cb8815d84b4cc693e74f
12,296
py
Python
my_main2.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
my_main2.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
my_main2.py
aitor-garcia-p/NCRFpp
3e83fc6c462941eff65b8b42bfe6630277b92d6b
[ "Apache-2.0" ]
null
null
null
from model.sentclassifier import SentClassifier from model.seqlabel import SeqLabel from utils.data import Data import torch import os import sys from utils.functions import normalize_word import time from main import recover_nbest_label, get_ner_fmeasure, recover_label, batchify_with_label def label_input(input_line...
42.546713
156
0.588728
0
0
0
0
0
0
0
0
1,578
0.128334
92b26fb10b69150eb5abb2d1e46488489f0a691c
55
py
Python
play_motion/play_motion/src/play_motion/__init__.py
hect1995/Robotics_intro
1b687585c20db5f1114d8ca6811a70313d325dd6
[ "BSD-3-Clause" ]
7
2018-10-24T14:52:20.000Z
2021-01-12T14:59:00.000Z
play_motion/play_motion/src/play_motion/__init__.py
hect1995/Robotics_intro
1b687585c20db5f1114d8ca6811a70313d325dd6
[ "BSD-3-Clause" ]
null
null
null
play_motion/play_motion/src/play_motion/__init__.py
hect1995/Robotics_intro
1b687585c20db5f1114d8ca6811a70313d325dd6
[ "BSD-3-Clause" ]
17
2019-09-29T10:22:41.000Z
2021-04-08T12:38:37.000Z
from .move_joint import move_joint, print_err, print_ok
55
55
0.854545
0
0
0
0
0
0
0
0
0
0
92b2ec2594b7f624a5e0c4ef610a7491441323d8
694
py
Python
GRUCon2021/task7/scripts/parse.py
BlackVS/CTFs
ca7d5c9a3dbf1bcfe7607bbfd454eca470634dde
[ "MIT" ]
10
2020-09-06T12:08:32.000Z
2021-07-19T15:12:30.000Z
GRUCon2021/task7/scripts/parse.py
BlackVS/CTFs
ca7d5c9a3dbf1bcfe7607bbfd454eca470634dde
[ "MIT" ]
null
null
null
GRUCon2021/task7/scripts/parse.py
BlackVS/CTFs
ca7d5c9a3dbf1bcfe7607bbfd454eca470634dde
[ "MIT" ]
1
2021-11-22T05:14:56.000Z
2021-11-22T05:14:56.000Z
#!/usr/bin/python import binascii import dpkt import struct import sys # Start the pcap file parsing f = open("usbtraffic.pcap", 'rb') pcap = dpkt.pcap.Reader(f) #print(pcap) lba = 0 packets = [] for ts, buf in pcap: #print(ts) if buf[64:68] == b'USBC': #lba = int( buf[], 16) a = buf[0x51:0x55]...
23.133333
66
0.567723
0
0
0
0
0
0
0
0
178
0.256484
92b4a1d863351284e48ed8cd2f0cf5dc7bead1a6
2,586
py
Python
online_store/weather/views.py
PhiVaLo/final_project2
3d61404f2fe4b9e4503087e523ea16d6c411f57f
[ "Apache-2.0" ]
null
null
null
online_store/weather/views.py
PhiVaLo/final_project2
3d61404f2fe4b9e4503087e523ea16d6c411f57f
[ "Apache-2.0" ]
14
2020-12-06T13:31:34.000Z
2020-12-12T12:55:06.000Z
online_store/weather/views.py
PhiVaLo/final_project2
3d61404f2fe4b9e4503087e523ea16d6c411f57f
[ "Apache-2.0" ]
1
2020-12-17T14:33:19.000Z
2020-12-17T14:33:19.000Z
from django.shortcuts import render from . utils import get_html_content from store.utils import cartData # Create your views here. def weather(request): weather_data = {} unknown_location = {} try: if 'city' in request.GET: # Fetch weather data city = request.GET.get('c...
41.047619
170
0.549111
0
0
0
0
0
0
0
0
715
0.276489