hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
5445ab0135e0f3ff0f80b808bab631bc81bb1f98
804
py
Python
nsapiwrapper/exceptions.py
DolphDev/nsapiwrapper
cd67be445cfc4845f822ff815f3fb265f75061c9
[ "MIT" ]
null
null
null
nsapiwrapper/exceptions.py
DolphDev/nsapiwrapper
cd67be445cfc4845f822ff815f3fb265f75061c9
[ "MIT" ]
null
null
null
nsapiwrapper/exceptions.py
DolphDev/nsapiwrapper
cd67be445cfc4845f822ff815f3fb265f75061c9
[ "MIT" ]
null
null
null
"""Exceptions for this library"""
18.272727
46
0.705224
544703b0ead742e49b1d2aa2223e76a2cd97299b
62,639
py
Python
src.py
edbezci/mapOverlayHumanoid
95d5e16fb983a7384abea6f51599483274ff0f62
[ "MIT" ]
null
null
null
src.py
edbezci/mapOverlayHumanoid
95d5e16fb983a7384abea6f51599483274ff0f62
[ "MIT" ]
null
null
null
src.py
edbezci/mapOverlayHumanoid
95d5e16fb983a7384abea6f51599483274ff0f62
[ "MIT" ]
null
null
null
# lines 1-4 imports the necessary libraries import pygame import os import random import math import sys import hlp import intro import dsb # this is the last module with the description files ''' declaring some global variables beacause in Python, we can set global variables that can be used in future functions se...
56.279425
200
0.61765
544732e628a00b56caac8c9cd412468f1e74169a
8,514
py
Python
iologik/e2210.py
shannon-jia/iologik
bda254ee1cdb3f4d724fbb9d6fe993257f1cce52
[ "MIT" ]
null
null
null
iologik/e2210.py
shannon-jia/iologik
bda254ee1cdb3f4d724fbb9d6fe993257f1cce52
[ "MIT" ]
null
null
null
iologik/e2210.py
shannon-jia/iologik
bda254ee1cdb3f4d724fbb9d6fe993257f1cce52
[ "MIT" ]
null
null
null
import aiohttp import asyncio import async_timeout import logging from collections import namedtuple, deque from .events import Events from html.parser import HTMLParser log = logging.getLogger(__name__)
38.7
161
0.499765
5448e80da68c244752c3380cbc4f039308ae3d65
7,009
py
Python
apps/cmdb/verify/operate.py
yanshicheng/super-ops
dd39fe971bfd0f912cab155b82e41a09aaa47892
[ "Apache-2.0" ]
null
null
null
apps/cmdb/verify/operate.py
yanshicheng/super-ops
dd39fe971bfd0f912cab155b82e41a09aaa47892
[ "Apache-2.0" ]
1
2022-01-17T09:34:14.000Z
2022-01-18T13:32:20.000Z
apps/cmdb/verify/operate.py
yanshicheng/super_ops
dd39fe971bfd0f912cab155b82e41a09aaa47892
[ "Apache-2.0" ]
null
null
null
from ..models import Classify, Fields, Asset, AssetBind, ClassifyBind from django.db.models import Q from collections import OrderedDict from django.forms.models import model_to_dict def get_c_classify_bind(cid): """ classify_id """ parent_bind_obj = ClassifyBind.objects.filter(child_classify_...
31.859091
89
0.610786
544b2254aa27aedc58e9f1dae64e313ac23e420d
525
py
Python
glass/mirror.py
fwcd/glass
eba5321753a41e4ebb28f6933ec554c104cb0f4c
[ "MIT" ]
2
2021-02-01T23:06:35.000Z
2022-01-12T15:39:30.000Z
glass/mirror.py
fwcd/glass
eba5321753a41e4ebb28f6933ec554c104cb0f4c
[ "MIT" ]
1
2022-03-18T04:07:58.000Z
2022-03-19T18:00:08.000Z
glass/mirror.py
fwcd/glass
eba5321753a41e4ebb28f6933ec554c104cb0f4c
[ "MIT" ]
null
null
null
import subprocess from pathlib import Path from urllib.parse import urlparse
35
88
0.67619
544bbee47e78ee286a199342f8cffdd22f773ed2
3,880
py
Python
modeling/__init__.py
WinstonHuTiger/BOEMD-UNet
f81a0506b8b8a90fd783afcda61f28acb113fc77
[ "MIT" ]
2
2021-10-03T11:49:32.000Z
2021-12-15T11:40:52.000Z
modeling/__init__.py
WinstonHuTiger/BOEMD-UNet
f81a0506b8b8a90fd783afcda61f28acb113fc77
[ "MIT" ]
null
null
null
modeling/__init__.py
WinstonHuTiger/BOEMD-UNet
f81a0506b8b8a90fd783afcda61f28acb113fc77
[ "MIT" ]
null
null
null
import os import torch from modeling.unet import * from modeling.bAttenUnet import MDecoderUNet, MMultiBAUNet, MMultiBUNet def build_transfer_learning_model(args, nchannels, nclass, pretrained, model='unet'): """ param args: param nclass: number of classes param pretrained: path to the pretrained mo...
27.51773
85
0.559794
544c328461515102957fb6ba2f7ecaadd80e93ff
1,356
py
Python
A.py
JK-Incorporated/EYN-DOS
6dc331655b5fd04e6d37651ea79ac4e204bfd52e
[ "BSD-3-Clause" ]
null
null
null
A.py
JK-Incorporated/EYN-DOS
6dc331655b5fd04e6d37651ea79ac4e204bfd52e
[ "BSD-3-Clause" ]
null
null
null
A.py
JK-Incorporated/EYN-DOS
6dc331655b5fd04e6d37651ea79ac4e204bfd52e
[ "BSD-3-Clause" ]
null
null
null
import os from os import listdir from os.path import isfile, join dir_path = os.path.dirname(os.path.realpath(__file__)) filesys = [f for f in listdir(dir_path) if isfile(join(dir_path, f))] size=0 for path, dirs, files in os.walk(dir_path): for f in files: fp = os.path.join(path, f) size += os.p...
22.229508
69
0.526549
544ec34dfb38023e11066f7adf551926d37772c9
3,111
py
Python
api_site/src/api_x/application/entry/bankcard_views.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
1
2019-10-14T11:51:49.000Z
2019-10-14T11:51:49.000Z
api_site/src/api_x/application/entry/bankcard_views.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
api_site/src/api_x/application/entry/bankcard_views.py
webee/pay
b48c6892686bf3f9014bb67ed119506e41050d45
[ "W3C" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from api_x.utils import response from api_x.utils.entry_auth import verify_request from flask import request from . import application_mod as mod from .. import dba from .. import bankcard from api_x.utils.parser import to_bool from pytoolbox.util.log import get_l...
34.566667
104
0.724204
544eed2f5a6fd341973e64324b8db14d8a1824d5
2,928
py
Python
httpd/httpd.py
protocollabs/dmprd
c39e75532ae73458b8239b2d21ca69e42b68929f
[ "MIT" ]
1
2018-09-05T08:16:00.000Z
2018-09-05T08:16:00.000Z
httpd/httpd.py
protocollabs/dmprd
c39e75532ae73458b8239b2d21ca69e42b68929f
[ "MIT" ]
8
2017-01-08T19:11:16.000Z
2018-09-24T12:20:40.000Z
httpd/httpd.py
protocollabs/dmprd
c39e75532ae73458b8239b2d21ca69e42b68929f
[ "MIT" ]
2
2017-08-23T12:41:02.000Z
2018-08-17T08:11:35.000Z
import asyncio import os try: from aiohttp import web except ImportError: web = None
34.046512
100
0.565574
5451d6245307e0c41240f5d6be7ea9013b165899
196
py
Python
SImple-Number.py
TonikaHristova/Loops
55b3f1608cf81d185fe98366450b527350d86f3b
[ "MIT" ]
null
null
null
SImple-Number.py
TonikaHristova/Loops
55b3f1608cf81d185fe98366450b527350d86f3b
[ "MIT" ]
null
null
null
SImple-Number.py
TonikaHristova/Loops
55b3f1608cf81d185fe98366450b527350d86f3b
[ "MIT" ]
null
null
null
import math num = int(input()) is_prime = True if num < 2: print("Not prime") for i in range(2, int(math.sqrt(num)+1)): if num / i == 0: is_prime = False print(is_prime)
9.8
41
0.571429
54520f95709f73e2e760152d29139cc05ba229e9
218
py
Python
badgify/apps.py
BrendanBerkley/django-badgify
61203e92cb76982f778caf168d371a72a401db10
[ "MIT" ]
null
null
null
badgify/apps.py
BrendanBerkley/django-badgify
61203e92cb76982f778caf168d371a72a401db10
[ "MIT" ]
null
null
null
badgify/apps.py
BrendanBerkley/django-badgify
61203e92cb76982f778caf168d371a72a401db10
[ "MIT" ]
null
null
null
from django.apps import AppConfig
19.818182
42
0.674312
545268aad6cd438a8b86741579655c5f5b28ba41
249
py
Python
test/test_i18n.py
timgates42/uliweb
80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1
[ "BSD-2-Clause" ]
202
2015-01-12T08:10:48.000Z
2021-11-08T09:04:32.000Z
test/test_i18n.py
timgates42/uliweb
80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1
[ "BSD-2-Clause" ]
30
2015-01-01T09:07:17.000Z
2021-06-03T12:58:45.000Z
test/test_i18n.py
timgates42/uliweb
80c0459c5e5d257b665eb2e1d0b5f68ad55c42f1
[ "BSD-2-Clause" ]
58
2015-01-12T03:28:54.000Z
2022-01-14T01:58:08.000Z
from uliweb.i18n import ugettext_lazy as _ def test_1(): """ >>> x = _('Hello') >>> print repr(x) ugettext_lazy('Hello') """ def test_1(): """ >>> x = _('Hello {0}') >>> print x.format('name') Hello name """
16.6
42
0.48996
545316d49d38f35bdeec6536c47e60475a119d98
1,041
py
Python
KeyBoardControlImageCaptue.py
Prashant-1305/Tello-Drone
11c3f845a9887c66ac7e52e042dfd28f23555d2e
[ "MIT" ]
null
null
null
KeyBoardControlImageCaptue.py
Prashant-1305/Tello-Drone
11c3f845a9887c66ac7e52e042dfd28f23555d2e
[ "MIT" ]
null
null
null
KeyBoardControlImageCaptue.py
Prashant-1305/Tello-Drone
11c3f845a9887c66ac7e52e042dfd28f23555d2e
[ "MIT" ]
null
null
null
import KeyPressModule as kp from djitellopy import tello import time import cv2 global img kp.init() skynet = tello.Tello() skynet.connect() print(skynet.get_battery()) skynet.streamon() while True: keyVals = getKeyboardInput() skynet.send_rc_control(keyVals[0], keyVals[1], keyVals[2], keyVals[3]) img ...
22.148936
74
0.616715
545376512fee3de8e6da4487e774ee09c7ad912d
1,479
py
Python
cnns/foolbox/foolbox_2_3_0/tests/test_model_zoo.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
12
2021-07-27T07:18:24.000Z
2022-03-09T13:52:20.000Z
cnns/foolbox/foolbox_2_3_0/tests/test_model_zoo.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
2
2021-08-03T09:21:33.000Z
2021-12-29T14:25:30.000Z
cnns/foolbox/foolbox_2_3_0/tests/test_model_zoo.py
anonymous-user-commits/perturb-net
66fc7c4a1234fa34b92bcc85751f0a6e23d80a23
[ "MIT" ]
3
2021-11-18T14:46:40.000Z
2022-01-03T15:47:23.000Z
from foolbox import zoo import numpy as np import foolbox import sys import pytest from foolbox.zoo.model_loader import ModelLoader from os.path import join, dirname test_data = [ # private repo won't work on travis # ('https://github.com/bethgelab/AnalysisBySynthesis.git', (1, 28, 28)), # ('https://gith...
27.90566
76
0.694388
54538684df9453f633582e0d87edd283242082a7
8,464
py
Python
tests/unit/nistbeacon/test_nistbeacon.py
urda/py_nist_beacon
0251970ec31bc370c326c4c3c3b93a5513bdc028
[ "Apache-2.0" ]
11
2017-05-06T02:42:34.000Z
2021-02-11T10:13:09.000Z
tests/unit/nistbeacon/test_nistbeacon.py
urda/nistbeacon
0251970ec31bc370c326c4c3c3b93a5513bdc028
[ "Apache-2.0" ]
31
2015-12-13T12:04:10.000Z
2021-01-27T02:34:34.000Z
tests/unit/nistbeacon/test_nistbeacon.py
urda/py_nist_beacon
0251970ec31bc370c326c4c3c3b93a5513bdc028
[ "Apache-2.0" ]
1
2015-12-25T03:50:25.000Z
2015-12-25T03:50:25.000Z
""" Copyright 2015-2017 Peter Urda 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, softwar...
34.129032
79
0.69258
54539ddc987a464c0db1b706648667e1f538fd7a
5,417
py
Python
aae/auto_pose/visualization/render_pose.py
shbe-aau/multi-pose-estimation
0425ed9dcc7969f0281cb435615abc33c640e157
[ "MIT" ]
4
2021-12-28T09:25:06.000Z
2022-01-13T12:55:44.000Z
aae/auto_pose/visualization/render_pose.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
null
null
null
aae/auto_pose/visualization/render_pose.py
shbe-aau/multi-view-pose-estimation
22cea6cd09684fe655fb2214bc14856f589048e1
[ "MIT" ]
1
2022-01-13T13:00:15.000Z
2022-01-13T13:00:15.000Z
import cv2 import numpy as np import os from auto_pose.meshrenderer import meshrenderer from auto_pose.ae.utils import lazy_property
47.517544
158
0.567288
5454b8f602a3ea5235a7102af61b547b5c4c3b31
1,128
py
Python
client/nodes/common/docker_subsriber.py
CanboYe/BusEdge
2e53e1d1d82559fc3e9f0029b2f0faf4e356b210
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
2
2021-08-17T14:14:28.000Z
2022-02-02T02:09:33.000Z
client/nodes/common/docker_subsriber.py
cmusatyalab/gabriel-BusEdge
528a6ee337882c6e709375ecd7ec7e201083c825
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
client/nodes/common/docker_subsriber.py
cmusatyalab/gabriel-BusEdge
528a6ee337882c6e709375ecd7ec7e201083c825
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause" ]
1
2021-09-01T16:18:29.000Z
2021-09-01T16:18:29.000Z
# SPDX-FileCopyrightText: 2021 Carnegie Mellon University # # SPDX-License-Identifier: Apache-2.0 import cv2 import numpy as np import rospy from gabriel_protocol import gabriel_pb2 from std_msgs.msg import UInt8MultiArray
29.684211
72
0.720745
54562608a59ce9476a71d70e032f5d5bf8f6d75b
138
py
Python
datx/base_station.py
ipipdotnet/datx-python
68d6e99363abc6ae48714be38aa90a5ae6e20fd4
[ "Apache-2.0" ]
39
2018-03-13T02:48:36.000Z
2021-03-18T07:51:54.000Z
datx/base_station.py
ipipdotnet/datx-python
68d6e99363abc6ae48714be38aa90a5ae6e20fd4
[ "Apache-2.0" ]
1
2018-11-06T08:30:31.000Z
2018-11-06T08:30:31.000Z
datx/base_station.py
ipipdotnet/datx-python
68d6e99363abc6ae48714be38aa90a5ae6e20fd4
[ "Apache-2.0" ]
10
2018-04-28T02:07:08.000Z
2020-11-09T04:26:47.000Z
# -*- coding: utf-8 -*- """ :copyright: 2018 by IPIP.net """ from .district import District
15.333333
33
0.623188
5456722cbb51619ad54be3201718c3cfa01f24c7
13,034
py
Python
cogs/user.py
billydevyt/RoboBilly
6d79ab9626a6d6b487dd73688ad7187212e7864c
[ "MIT" ]
6
2020-11-07T16:46:18.000Z
2021-01-03T11:52:39.000Z
cogs/user.py
billyeatcookies/RoboBilly
6d79ab9626a6d6b487dd73688ad7187212e7864c
[ "MIT" ]
3
2020-11-30T01:52:41.000Z
2021-01-03T11:53:18.000Z
cogs/user.py
billyeatcookies/RoboBilly
6d79ab9626a6d6b487dd73688ad7187212e7864c
[ "MIT" ]
7
2021-04-17T07:27:58.000Z
2021-08-31T15:21:42.000Z
""" User module """ import discord import random import asyncio from discord.ext import commands from discord.ext.commands import has_permissions, MissingPermissions, BadArgument import requests, json, pyfiglet from datetime import timedelta, datetime #===================================== ADD COG ================...
43.15894
490
0.603192
5459131a00c531976bbf1bad787c4cbce19610f5
622
py
Python
wsu/tools/simx/simx/python/simx/protomap/util.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
1
2020-02-28T20:35:09.000Z
2020-02-28T20:35:09.000Z
wsu/tools/simx/simx/python/simx/protomap/util.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
wsu/tools/simx/simx/python/simx/protomap/util.py
tinyos-io/tinyos-3.x-contrib
3aaf036722a2afc0c0aad588459a5c3e00bd3c01
[ "BSD-3-Clause", "MIT" ]
null
null
null
def sync_read(socket, size): """ Perform a (temporary) blocking read. The amount read may be smaller than the amount requested if a timeout occurs. """ timeout = socket.gettimeout() socket.settimeout(None) try: return socket.recv(size) finally: socket.settimeout(time...
22.214286
65
0.607717
545b4ee6fb3b667ccf9bf2aadc9dfb4077e4dee6
976
py
Python
mergeKsortedlist.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
2
2019-05-16T03:11:44.000Z
2019-10-25T03:20:05.000Z
mergeKsortedlist.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
null
null
null
mergeKsortedlist.py
ZhouLihua/leetcode
7a711e450756fb7b5648e938879d690e583f5957
[ "MIT" ]
null
null
null
#Definition for singly-linked list. import sys
27.885714
50
0.482582
545c039475e437fcfe31a7978e08b358e2864ddd
1,334
py
Python
f5/bigip/tm/vcmp/test/unit/test_virtual_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
272
2016-02-23T06:05:44.000Z
2022-02-20T02:09:32.000Z
f5/bigip/tm/vcmp/test/unit/test_virtual_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
1,103
2016-02-11T17:48:03.000Z
2022-02-15T17:13:37.000Z
f5/bigip/tm/vcmp/test/unit/test_virtual_disk.py
nghia-tran/f5-common-python
acb23a6e5830a119b460c19a578654113419f5c3
[ "Apache-2.0" ]
167
2016-02-11T17:48:21.000Z
2022-01-17T20:13:05.000Z
# Copyright 2017 F5 Networks 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 writi...
29.644444
74
0.749625
545c6c254ab620127f5ce9a6e6a0f63adc08b458
1,281
py
Python
tinylinks/admin.py
lavindiuss/django-shorter
50bc018e762b396cd9bc71991f6ea1329aaceddd
[ "MIT" ]
null
null
null
tinylinks/admin.py
lavindiuss/django-shorter
50bc018e762b396cd9bc71991f6ea1329aaceddd
[ "MIT" ]
null
null
null
tinylinks/admin.py
lavindiuss/django-shorter
50bc018e762b396cd9bc71991f6ea1329aaceddd
[ "MIT" ]
null
null
null
"""Admin sites for the ``django-tinylinks`` app.""" from django.contrib import admin from django.template.defaultfilters import truncatechars from django.utils.translation import ugettext_lazy as _ from django.template.loader import render_to_string from tinylinks.forms import TinylinkAdminForm from tinylinks.models ...
28.466667
76
0.699454
545c8aae9bf713a7f6422a8269de2049905dd92f
562
py
Python
wk11frontend.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
null
null
null
wk11frontend.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
null
null
null
wk11frontend.py
alvaro-root/pa2_2021
fee3931f9e10a7d39af9bf2ce5f033e41621bbda
[ "MIT" ]
null
null
null
import requests import json if __name__ == "__main__": main()
21.615385
82
0.551601
545fd8631d933f37ee5ed9022359f6f1a7a06f4b
73
py
Python
software/python/XilinxKcu1500Pgp3/__init__.py
ejangelico/cryo-on-epix-hr-dev
354bf205a67d3c43b4e815823dd78cec85d3b672
[ "BSD-3-Clause-LBNL" ]
1
2021-05-24T22:01:54.000Z
2021-05-24T22:01:54.000Z
software/python/XilinxKcu1500Pgp3/__init__.py
ejangelico/cryo-on-epix-hr-dev
354bf205a67d3c43b4e815823dd78cec85d3b672
[ "BSD-3-Clause-LBNL" ]
1
2021-02-25T20:27:36.000Z
2021-03-31T17:55:08.000Z
software/python/XilinxKcu1500Pgp3/__init__.py
ejangelico/cryo-on-epix-hr-dev
354bf205a67d3c43b4e815823dd78cec85d3b672
[ "BSD-3-Clause-LBNL" ]
4
2020-10-21T21:39:37.000Z
2021-07-24T02:19:34.000Z
#!/usr/bin/env python from XilinxKcu1500Pgp3.XilinxKcu1500Pgp3 import *
18.25
49
0.808219
545fe80c1b80eb166756266947e1f74465ae48f6
2,517
py
Python
files/files.py
StevenKangWei/tools
f0de7d2202dbe979b06ba8344addad6df6e96320
[ "MIT" ]
15
2021-07-06T13:03:09.000Z
2022-03-05T04:18:13.000Z
files/files.py
StevenKangWei/tools
f0de7d2202dbe979b06ba8344addad6df6e96320
[ "MIT" ]
1
2021-12-03T05:39:24.000Z
2021-12-03T05:39:24.000Z
files/files.py
StevenKangWei/tools
f0de7d2202dbe979b06ba8344addad6df6e96320
[ "MIT" ]
5
2021-07-30T09:31:31.000Z
2022-01-03T06:30:25.000Z
#!/usr/bin/python import os import glob import traceback import datetime import dandan from flask import Flask from flask import abort from flask import send_file from flask import send_from_directory from flask import render_template from werkzeug.routing import BaseConverter import config __VERSI...
25.683673
90
0.642034
546042473af828587af78168aa3e36324191b2db
2,961
py
Python
jdcloud_sdk/services/iotcore/models/DeviceVO.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/iotcore/models/DeviceVO.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/iotcore/models/DeviceVO.py
Tanc009/jdcloud-sdk-python
8b045c99bc5b73ca7348e950b6f01e03a27982f5
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
43.544118
401
0.69875
54607def7c2c2dd5026968fee33155a24a8770a7
155
py
Python
satyrus/sat/types/__init__.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
satyrus/sat/types/__init__.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
satyrus/sat/types/__init__.py
lucasvg/Satyrus3-FinalProject-EspTopsOTM
024785752abdc46e3463d8c94df7c3da873c354d
[ "MIT" ]
null
null
null
from .array import Array from .string import String from .problem import Constraint, Loop from .main import SatType, Var, Number from .expr import Expr
31
39
0.780645
54615497a597809e722b75e586e88b607f457119
470
py
Python
magma/backend/util.py
Kuree/magma
be2439aa897768c5810be72e3a55a6f772ac83cf
[ "MIT" ]
null
null
null
magma/backend/util.py
Kuree/magma
be2439aa897768c5810be72e3a55a6f772ac83cf
[ "MIT" ]
null
null
null
magma/backend/util.py
Kuree/magma
be2439aa897768c5810be72e3a55a6f772ac83cf
[ "MIT" ]
null
null
null
import os __magma_codegen_debug_info = False if os.environ.get("MAGMA_CODEGEN_DEBUG_INFO", False): __magma_codegen_debug_info = True
21.363636
53
0.77234
546277ddd1038ab1b79d6538508e871a2186c14c
3,560
py
Python
src/backend/main.py
tuimac/servertools
ceda2685a248d700f48aea4f93887b0f89a264a8
[ "MIT" ]
null
null
null
src/backend/main.py
tuimac/servertools
ceda2685a248d700f48aea4f93887b0f89a264a8
[ "MIT" ]
null
null
null
src/backend/main.py
tuimac/servertools
ceda2685a248d700f48aea4f93887b0f89a264a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from subprocess import Popen, PIPE, DEVNULL, run import socket import sys import traceback import argparse import time import logging import os logger = logging.getLogger("django") if __name__ == '__main__': main()
30.169492
108
0.538202
5463fe7521a3910ac70e77bb4ec4fc1c354e171b
35
py
Python
pyble/const/characteristic/sensor_location.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
14
2015-03-30T23:11:36.000Z
2020-04-07T00:57:12.000Z
pyble/const/characteristic/sensor_location.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
3
2016-05-17T06:11:07.000Z
2017-05-15T16:43:09.000Z
pyble/const/characteristic/sensor_location.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
11
2016-03-11T08:53:03.000Z
2019-03-11T21:32:13.000Z
NAME="Sensor Location" UUID=0x2A5D
11.666667
22
0.8
546484ce8b5ed762d88a0033bf3308f52967f631
296
py
Python
active-learning/seq_data.py
ansunsujoe/ml-research
7ab529a5ec1d420385e64b9eebf87e0847b85afd
[ "MIT" ]
null
null
null
active-learning/seq_data.py
ansunsujoe/ml-research
7ab529a5ec1d420385e64b9eebf87e0847b85afd
[ "MIT" ]
null
null
null
active-learning/seq_data.py
ansunsujoe/ml-research
7ab529a5ec1d420385e64b9eebf87e0847b85afd
[ "MIT" ]
null
null
null
import random from tqdm import tqdm if __name__ == "__main__": with open("sequences-1-train.txt", "w") as f: for i in tqdm(range(5000)): f.write(",".join(random_seq()) + "\n")
29.6
76
0.614865
546488ac5fe6da6a714985e1c5c6692b62df9032
3,585
py
Python
datatest/main.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
277
2016-05-12T13:22:49.000Z
2022-03-11T00:18:32.000Z
datatest/main.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
57
2016-05-18T01:03:32.000Z
2022-02-17T13:48:43.000Z
datatest/main.py
ajhynes7/datatest
78742e98de992807286655f5685a2dc33a7b452e
[ "Apache-2.0" ]
16
2016-05-22T11:35:19.000Z
2021-12-01T19:41:42.000Z
"""Datatest main program""" import sys as _sys from unittest import TestProgram as _TestProgram from unittest import defaultTestLoader as _defaultTestLoader try: from unittest.signals import installHandler except ImportError: installHandler = None from datatest import DataTestRunner __unittest = True __datat...
38.138298
80
0.538633
54655fd5e9013ea6eec439615853e317aa7b100b
17,503
py
Python
zvmsdk/vmops.py
jasealpers/python-zvm-sdk
feb19dd40915b1a6cad74e7ccda17bc76d015ea5
[ "Apache-2.0" ]
9
2017-06-13T17:46:33.000Z
2019-01-08T03:00:00.000Z
zvmsdk/vmops.py
jasealpers/python-zvm-sdk
feb19dd40915b1a6cad74e7ccda17bc76d015ea5
[ "Apache-2.0" ]
4
2018-07-18T21:41:21.000Z
2019-01-07T06:05:15.000Z
zvmsdk/vmops.py
jasealpers/python-zvm-sdk
feb19dd40915b1a6cad74e7ccda17bc76d015ea5
[ "Apache-2.0" ]
20
2017-02-27T09:46:13.000Z
2019-05-29T23:17:52.000Z
# Copyright 2017 IBM Corp. # # 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 t...
40.144495
79
0.588642
546685a1cd267c088cdbed690f4354973078c4ca
3,481
py
Python
Q146.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q146.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q146.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
""" Q146 LRU Cache Medium Author: Lingqing Gan Date: 08/06/2019 Question: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return ...
26.172932
76
0.600402
54670eac7c97edca8f6b8dd01151c748a6156511
9,940
py
Python
bin/genparams.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
7
2015-01-05T06:32:49.000Z
2020-10-30T19:29:07.000Z
bin/genparams.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
null
null
null
bin/genparams.py
neonkingfr/VizBench
e41f559cb6e761d717f2f5b202482d5d8dacd2d8
[ "MIT" ]
4
2016-03-09T22:29:26.000Z
2021-04-07T13:52:28.000Z
# This script reads *VizParams.list files that define Vizlet parameters # and generates .h files for them, making runtime access to them much faster. # This allows new parameters to be added just by editing one file. import sys import os import re types={"bool":"BOOL","int":"INT","double":"DBL","string":"STR"} realty...
27.458564
124
0.609557
54685a8741677f7fae5e8b83b5e24b77c1c400f9
712
py
Python
notebooks/session_4/s3-sobelAndmatplotlib.py
bigmpc/cv-spring-2021
81d9384f74f5411804cdbb26be5b7ced0d0f5958
[ "Apache-2.0" ]
3
2021-03-09T10:00:50.000Z
2021-12-26T07:19:09.000Z
notebooks/session_4/s3-sobelAndmatplotlib.py
bigmpc/cv-spring-2021
81d9384f74f5411804cdbb26be5b7ced0d0f5958
[ "Apache-2.0" ]
null
null
null
notebooks/session_4/s3-sobelAndmatplotlib.py
bigmpc/cv-spring-2021
81d9384f74f5411804cdbb26be5b7ced0d0f5958
[ "Apache-2.0" ]
1
2021-02-27T16:09:30.000Z
2021-02-27T16:09:30.000Z
import cv2 import numpy as np import matplotlib.pyplot as plt #Read the image as grayscale: image = cv2.imread('building.jpg', 0) #Compute the gradient approximations using the Sobel operator: dx = cv2.Sobel(image, cv2.CV_32F, 1, 0) dy = cv2.Sobel(image, cv2.CV_32F, 0, 1) #Visualize the results: plt.figu...
19.777778
63
0.671348
5468626a4d8739106b686cc86e072541eeccc86e
956
py
Python
reporter-cli/sql-pdf/python/src/reporterprimary/__init__.py
rgolubtsov/reporter-multilang
6d7e04bbd57342ea80e1beccea3c4de1b1c4e203
[ "Unlicense" ]
3
2017-04-28T16:40:22.000Z
2019-02-22T16:57:12.000Z
reporter-cli/sql-pdf/python/src/reporterprimary/__init__.py
rgolubtsov/reporter-multilang
6d7e04bbd57342ea80e1beccea3c4de1b1c4e203
[ "Unlicense" ]
46
2017-01-17T01:10:15.000Z
2019-06-13T20:45:12.000Z
reporter-cli/sql-pdf/python/src/reporterprimary/__init__.py
rgolubtsov/reporter-multilang
6d7e04bbd57342ea80e1beccea3c4de1b1c4e203
[ "Unlicense" ]
1
2017-07-06T14:18:55.000Z
2017-07-06T14:18:55.000Z
# -*- coding: utf-8 -*- # reporter-cli/sql-pdf/python/src/reporterprimary/__init__.py # ============================================================================= # Reporter Multilang. Version 0.5.9 # ============================================================================= # A tool to generate human-readable re...
45.52381
79
0.561715
5468c394ce1fe6e2cc2dd6fce2fd7d4c6e567c44
3,494
py
Python
bem/teq_planet.py
DanielAndreasen/bem
c4cca79322f08b5e9a3f3d39749c11d9f6296aae
[ "MIT" ]
null
null
null
bem/teq_planet.py
DanielAndreasen/bem
c4cca79322f08b5e9a3f3d39749c11d9f6296aae
[ "MIT" ]
null
null
null
bem/teq_planet.py
DanielAndreasen/bem
c4cca79322f08b5e9a3f3d39749c11d9f6296aae
[ "MIT" ]
null
null
null
import numpy as np from uncertainties import umath as um def getTeqpl(Teffst, aR, ecc, A=0, f=1/4.): """Return the planet equilibrium temperature. Relation adapted from equation 4 page 4 in http://www.mpia.de/homes/ppvi/chapter/madhusudhan.pdf and https://en.wikipedia.org/wiki/Stefan%E2%80%93Boltzmann_law...
48.527778
100
0.660561
5469add1bc5b0732388dfd9a2adc569e52915599
1,656
py
Python
poppy/data_preprocess.py
phanxuanphucnd/BertTextClassification
c9a0500f07d831f924f56cc8211569b035c6e47a
[ "MIT" ]
1
2021-06-14T21:03:04.000Z
2021-06-14T21:03:04.000Z
poppy/data_preprocess.py
phanxuanphucnd/BertTextClassification
c9a0500f07d831f924f56cc8211569b035c6e47a
[ "MIT" ]
null
null
null
poppy/data_preprocess.py
phanxuanphucnd/BertTextClassification
c9a0500f07d831f924f56cc8211569b035c6e47a
[ "MIT" ]
null
null
null
import pandas as pd import re import os from tqdm import tqdm ## Cleaning train raw dataset train = open('./data/raw/train.crash').readlines() train_ids = [] train_texts = [] train_labels = [] for id, line in tqdm(enumerate(train)): line = line.strip() if line.startswith("train_"): train_ids.append...
23.323944
80
0.618357
546a32ceac58022d2ad2cfb8c9d2804371eb31f5
6,456
py
Python
websaw/core/app.py
valq7711/websaw
fb5718ad3ecd011d7fbb3f24fa007d84951bd58c
[ "MIT" ]
1
2022-02-25T15:02:25.000Z
2022-02-25T15:02:25.000Z
websaw/core/app.py
valq7711/websaw
fb5718ad3ecd011d7fbb3f24fa007d84951bd58c
[ "MIT" ]
null
null
null
websaw/core/app.py
valq7711/websaw
fb5718ad3ecd011d7fbb3f24fa007d84951bd58c
[ "MIT" ]
null
null
null
import functools from types import SimpleNamespace from typing import List from . import globs from .context import BaseContext from .exceptions import FixtureProcessError from .reloader import Reloader from .static_registry import static_registry
31.960396
118
0.577912
546beba67c891d71b93c4df6d7f37c550d736d00
1,772
py
Python
observations/r/chest_sizes.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
observations/r/chest_sizes.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
observations/r/chest_sizes.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def chest_sizes(path): """Chest measurements of 5738 Scottish Militiamen ...
29.533333
71
0.705418
546e4ec20d3fdf8c1c5f8ed657bb3f80549f9803
1,365
py
Python
setup.py
google/ads-api-reports-fetcher
de0bacc3ab520b020cf19985284b7e3dbc9778b0
[ "Apache-2.0" ]
4
2022-02-16T12:42:26.000Z
2022-03-30T17:14:32.000Z
setup.py
google/ads-api-reports-fetcher
de0bacc3ab520b020cf19985284b7e3dbc9778b0
[ "Apache-2.0" ]
null
null
null
setup.py
google/ads-api-reports-fetcher
de0bacc3ab520b020cf19985284b7e3dbc9778b0
[ "Apache-2.0" ]
1
2022-03-28T05:51:57.000Z
2022-03-28T05:51:57.000Z
import pathlib from setuptools import setup, find_packages HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text() setup(name="google-ads-api-report-fetcher", version="0.1", description="Library for fetching reports from Google Ads API and saving them locally / BigQuery.", lo...
36.891892
105
0.621245
546e73d201a7995e9aa7205db669d55b27e2e940
2,880
py
Python
scan_service/scan_service/utils/stats.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
12
2021-04-06T06:27:18.000Z
2022-03-18T10:52:29.000Z
scan_service/scan_service/utils/stats.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
6
2022-01-04T13:32:16.000Z
2022-03-28T21:13:59.000Z
scan_service/scan_service/utils/stats.py
kkkkv/tgnms
a3b8fd8a69b647a614f9856933f05e50a4affadf
[ "MIT" ]
7
2021-09-27T13:14:42.000Z
2022-03-28T16:24:15.000Z
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. import asyncio import logging import time from collections import defaultdict from typing import DefaultDict, Dict, List from tglib.clients.prometheus_client import PrometheusClient, consts from tglib.exceptions import ClientRuntimeError ...
32.727273
87
0.594097
547084a7679711993b0e3d30495458fce0c7f40b
1,866
py
Python
multithread_pipeline.py
kapitsa2811/smartOCR
6ecca79b29778778b1458ea28763a39920a3d58a
[ "MIT" ]
null
null
null
multithread_pipeline.py
kapitsa2811/smartOCR
6ecca79b29778778b1458ea28763a39920a3d58a
[ "MIT" ]
null
null
null
multithread_pipeline.py
kapitsa2811/smartOCR
6ecca79b29778778b1458ea28763a39920a3d58a
[ "MIT" ]
null
null
null
import glob import os from io import StringIO from threading import Thread import logging from logger import TimeHandler from costants import THREADS, INFERENCE_GRAPH from pipeline import pipeline logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) logger.addHandler(TimeHandler().handler) ...
29.619048
115
0.576099
5470a342899892808b0ad450ef5da5a2f9cf5b36
12,319
py
Python
src/keys_server/GMO/GMOKeysLookup.py
OasisLMF/gem
95c755a1cb76a2bbc41e5dd7bc503c59123ca3ac
[ "BSD-2-Clause" ]
null
null
null
src/keys_server/GMO/GMOKeysLookup.py
OasisLMF/gem
95c755a1cb76a2bbc41e5dd7bc503c59123ca3ac
[ "BSD-2-Clause" ]
null
null
null
src/keys_server/GMO/GMOKeysLookup.py
OasisLMF/gem
95c755a1cb76a2bbc41e5dd7bc503c59123ca3ac
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Python 2 standard library imports import csv import io import logging import os # Python 2 non-standard library imports import pandas as pd # Imports from Oasis core repos + subpackages or modules within keys_server from oasislmf.utils.coverages import COVERAGE_TYPES from oasislmf.utils.per...
36.554896
606
0.596396
5470aea747a6878071245059e1de2776baa03338
18,485
py
Python
pandemic_eval.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
pandemic_eval.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
pandemic_eval.py
aypan17/value_learning
240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe
[ "MIT" ]
null
null
null
import time import sys import json import argparse from tqdm import trange from typing import Any, Callable, Dict, List, Optional, Tuple, Union import torch import numpy as np from scipy.spatial.distance import jensenshannon import gym import matplotlib.pyplot as plt from matplotlib.axes import Axes fr...
47.51928
182
0.648526
5471ef5e2041074700733cd254f4357bec345d93
3,289
py
Python
WagerBrain/odds.py
sedemmler/WagerBrain
b1cc33f5eb7a6130106bf8251b554718e2d22172
[ "MIT" ]
83
2020-03-26T22:14:24.000Z
2022-03-22T19:00:48.000Z
website.py
rax-v/XSS
ff70b89c9fb94a19caaf84e81eddeeca052344ea
[ "MIT" ]
2
2020-03-26T19:34:03.000Z
2020-03-27T19:56:14.000Z
website.py
rax-v/XSS
ff70b89c9fb94a19caaf84e81eddeeca052344ea
[ "MIT" ]
19
2020-04-06T10:47:30.000Z
2022-03-30T19:16:42.000Z
from fractions import Fraction from math import gcd import numpy as np """ Convert the style of gambling odds to Function Name (Decimal, American, Fractional). TO DO: Fix edge case related to Fraction module that causes weird rounding / slightly off output """ def american_odds(odds): """ :param odds: ...
28.850877
123
0.578291
5472180161d7e60f43fc9232da207e59fa3cb086
16,438
py
Python
GANs/jsigan/ops.py
JonathanLehner/nnabla-examples
2971b987484945e12fb171594181908789485a0f
[ "Apache-2.0" ]
null
null
null
GANs/jsigan/ops.py
JonathanLehner/nnabla-examples
2971b987484945e12fb171594181908789485a0f
[ "Apache-2.0" ]
null
null
null
GANs/jsigan/ops.py
JonathanLehner/nnabla-examples
2971b987484945e12fb171594181908789485a0f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony Corporation. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.359091
98
0.55828
5475f0c326a3f8de3e388b70e03c71cc3faf4139
2,973
py
Python
neptune/internal/hardware/gpu/gpu_monitor.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
13
2019-02-11T13:18:38.000Z
2019-12-26T06:26:07.000Z
neptune/internal/hardware/gpu/gpu_monitor.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
39
2019-03-07T13:40:10.000Z
2020-01-07T17:19:24.000Z
neptune/internal/hardware/gpu/gpu_monitor.py
neptune-ml/neptune-client
7aea63160b5149c3fec40f62d3b0da7381a35748
[ "Apache-2.0" ]
4
2019-02-11T13:07:23.000Z
2019-11-26T08:20:24.000Z
# # Copyright (c) 2019, Neptune Labs Sp. z o.o. # # 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 agr...
35.392857
100
0.664649
54768720b8a58a3c4d1cf1c8c265ceea8f6fc111
5,219
py
Python
tests/redis_map.py
jaredlunde/redis_structures
b9cce5f5c85db5e12c292633ff8d04e3ae053294
[ "MIT" ]
2
2016-04-05T08:40:47.000Z
2016-06-27T14:03:26.000Z
tests/redis_map.py
jaredLunde/redis_structures
b9cce5f5c85db5e12c292633ff8d04e3ae053294
[ "MIT" ]
1
2015-10-27T14:30:53.000Z
2015-11-09T17:54:33.000Z
tests/redis_map.py
jaredlunde/redis_structures
b9cce5f5c85db5e12c292633ff8d04e3ae053294
[ "MIT" ]
null
null
null
#!/usr/bin/python3 -S # -*- coding: utf-8 -*- """ `Redis Map Tests` ------------------------------------------------------ 2015 Jared Lunde The MIT License (MIT) http://github.com/jaredlunde """ import datetime import time import pickle import unittest from redis_structures.debug import RandData, gen_rand_s...
30.881657
80
0.57923
5477f31f091eaba6d081dd15b6e4e452029c17e6
4,480
py
Python
examples/parser_example.py
pibico/beacontools
513e1c7ff2aaf74b6c7d7b10805c2f6ca4384e3d
[ "MIT" ]
139
2017-06-09T17:15:23.000Z
2022-03-15T03:02:17.000Z
examples/parser_example.py
pibico/beacontools
513e1c7ff2aaf74b6c7d7b10805c2f6ca4384e3d
[ "MIT" ]
71
2017-06-20T03:20:56.000Z
2022-02-13T22:47:53.000Z
examples/parser_example.py
pibico/beacontools
513e1c7ff2aaf74b6c7d7b10805c2f6ca4384e3d
[ "MIT" ]
59
2017-06-20T03:10:00.000Z
2022-03-15T23:54:44.000Z
# -*- coding: utf-8 -*- from beacontools import parse_packet # Eddystone UID packet uid_packet = b"\x02\x01\x06\x03\x03\xaa\xfe\x17\x16\xaa\xfe\x00\xe3\x12\x34\x56\x78\x90\x12" \ b"\x34\x67\x89\x01\x00\x00\x00\x00\x00\x01\x00\x00" uid_frame = parse_packet(uid_packet) print("Namespace: %s" % uid_frame.nam...
40
94
0.690625
547c48103894763c6518d10f40329e0d7d4eaefd
1,228
py
Python
mlsurvey/sl/workflows/multiple_learning_workflow.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/workflows/multiple_learning_workflow.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
mlsurvey/sl/workflows/multiple_learning_workflow.py
jlaumonier/mlsurvey
373598d067c7f0930ba13fe8da9756ce26eecbaf
[ "MIT" ]
null
null
null
from kedro.io import DataCatalog, MemoryDataSet from kedro.pipeline import Pipeline from kedro.runner import SequentialRunner import mlsurvey as mls from mlsurvey.workflows.learning_workflow import LearningWorkflow
34.111111
87
0.653094
547cd68f734cef8dede708252277b864855b2580
2,542
py
Python
backend/apps/cmdb/migrations/0001_initial.py
renmcc/SA2
a524124c140ae0b291b10dafc11d38744dd93bd9
[ "MIT" ]
4
2020-06-25T05:57:39.000Z
2021-06-26T04:58:16.000Z
backend/apps/cmdb/migrations/0001_initial.py
renmcc/SA2
a524124c140ae0b291b10dafc11d38744dd93bd9
[ "MIT" ]
null
null
null
backend/apps/cmdb/migrations/0001_initial.py
renmcc/SA2
a524124c140ae0b291b10dafc11d38744dd93bd9
[ "MIT" ]
1
2020-12-10T15:12:11.000Z
2020-12-10T15:12:11.000Z
# Generated by Django 2.2.12 on 2020-06-15 16:55 import datetime from django.db import migrations, models import django.db.models.deletion
59.116279
215
0.632179
547d39324fd1deeba259dcc2ee665fe787ad6b6c
1,055
py
Python
sphecius/ciphers/base.py
douglasdaly/sphecius
df8fc8dd2add157c6360c2b66cb22ac6f0241051
[ "MIT" ]
1
2019-09-26T01:08:20.000Z
2019-09-26T01:08:20.000Z
sphecius/ciphers/base.py
douglasdaly/sphecius
df8fc8dd2add157c6360c2b66cb22ac6f0241051
[ "MIT" ]
null
null
null
sphecius/ciphers/base.py
douglasdaly/sphecius
df8fc8dd2add157c6360c2b66cb22ac6f0241051
[ "MIT" ]
1
2019-09-26T01:08:19.000Z
2019-09-26T01:08:19.000Z
# -*- coding: utf-8 -*- """ base.py Base Cipher Object class @author: Douglas Daly @date: 1/12/2017 """ # # Imports # from abc import ABCMeta, abstractmethod from ..alphabets import English # # Classes #
16.484375
50
0.57346
547ee9e4da4b047390b557dc16580a853bcc3c8e
281
py
Python
setup.py
codewars/python-unittest
5a6cc27a51a9d91ce997c953099515c701b76057
[ "MIT" ]
4
2020-06-20T12:36:09.000Z
2021-10-31T22:04:48.000Z
setup.py
codewars/python-unittest
5a6cc27a51a9d91ce997c953099515c701b76057
[ "MIT" ]
null
null
null
setup.py
codewars/python-unittest
5a6cc27a51a9d91ce997c953099515c701b76057
[ "MIT" ]
3
2020-07-11T13:46:24.000Z
2022-02-23T20:55:19.000Z
from setuptools import setup setup( name="codewars_unittest", version="0.1.0", packages=["codewars_unittest"], license="MIT", description="unittest runner with Codewars output", install_requires=[], url="https://github.com/Codewars/python-unittest", )
23.416667
55
0.690391
547f16545ac590cbce83d8fc70ff6fbb32f028e2
16,628
py
Python
code/python/FactSetFunds/v1/fds/sdk/FactSetFunds/model/classifications.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/FactSetFunds/v1/fds/sdk/FactSetFunds/model/classifications.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/FactSetFunds/v1/fds/sdk/FactSetFunds/model/classifications.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" FactSet Funds API FactSet Mutual Funds data offers over 50 fund- and share class-specific data points for mutual funds listed in the United States. <p>FactSet Mutual Funds Reference provides fund-specific reference information as well as FactSet's proprietary classification system. It includes but is not l...
57.536332
709
0.619016
547ff536693b82874299f521ef54379c7a3ee663
1,637
py
Python
tests/test_drc.py
atait/lymask
a047bee386e7c9c7f04030277cdfaf7b3c731d14
[ "MIT" ]
3
2020-12-01T07:55:50.000Z
2022-03-16T22:18:07.000Z
tests/test_drc.py
atait/lymask
a047bee386e7c9c7f04030277cdfaf7b3c731d14
[ "MIT" ]
null
null
null
tests/test_drc.py
atait/lymask
a047bee386e7c9c7f04030277cdfaf7b3c731d14
[ "MIT" ]
2
2020-12-01T22:56:35.000Z
2021-05-03T09:30:09.000Z
import os, sys import subprocess import xmltodict import lymask from lymask import batch_drc_main from conftest import test_dir drc_file = os.path.join(test_dir, 'tech', 'lymask_example_tech', 'drc', 'default.yml') layout_file = os.path.join(test_dir, '2_drc_src.oas') outfile = os.path.join(test_dir, '2_drc_run.lyrdb...
30.886792
115
0.722053
5480da3b737fa2ac8f9665bf668142513e4bbaba
1,731
py
Python
graphviz/parameters/formatters.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
graphviz/parameters/formatters.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
graphviz/parameters/formatters.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
"""Rendering formatter parameter handling.""" import typing from . import base __all__ = ['FORMATTERS', 'verify_formatter', 'Formatter'] FORMATTERS = {'cairo', 'core', 'gd', 'gdiplus', 'gdwbmp', 'xlib'} REQUIRED = False
28.377049
84
0.60312
5480e17b073b3d2de7a418823c0645c307bf4d95
183
py
Python
reward/utils/device.py
lgvaz/torchrl
cfff8acaf70d1fec72169162b95ab5ad3547d17a
[ "MIT" ]
5
2018-06-21T14:33:40.000Z
2018-08-18T02:26:03.000Z
reward/utils/device.py
lgvaz/reward
cfff8acaf70d1fec72169162b95ab5ad3547d17a
[ "MIT" ]
null
null
null
reward/utils/device.py
lgvaz/reward
cfff8acaf70d1fec72169162b95ab5ad3547d17a
[ "MIT" ]
2
2018-05-08T03:34:49.000Z
2018-06-22T15:04:17.000Z
import torch CONFIG = {"device": torch.device("cuda" if torch.cuda.is_available() else "cpu")}
22.875
81
0.704918
548192ff87fcf5b59d3f5cc728048383ca680545
5,727
py
Python
Source/Functions/RPSLS.Python.Api/NextMove/next_move.py
ivan-b-ivanov/RockPaperScissorsLizardSpock
9167bcbe5ad2937e834408475c2ec66cf92fef84
[ "MIT" ]
null
null
null
Source/Functions/RPSLS.Python.Api/NextMove/next_move.py
ivan-b-ivanov/RockPaperScissorsLizardSpock
9167bcbe5ad2937e834408475c2ec66cf92fef84
[ "MIT" ]
null
null
null
Source/Functions/RPSLS.Python.Api/NextMove/next_move.py
ivan-b-ivanov/RockPaperScissorsLizardSpock
9167bcbe5ad2937e834408475c2ec66cf92fef84
[ "MIT" ]
null
null
null
import logging import random import os import json from typing import Tuple, List import requests R_rock, P_paper, S_scissors, V_spock, L_lizard = ('R', 'P', 'S', 'V', 'L') INTERNAL_MOVES_ENCODING = [R_rock, P_paper, S_scissors, V_spock, L_lizard]
39.226027
101
0.596124
5481ba7b076cad5057871b2955d0e7140c538c8a
5,410
py
Python
examples/trials/nas_cifar10/src/cifar10/nni_child_cifar10.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
2
2019-12-30T20:42:17.000Z
2021-01-24T16:51:56.000Z
examples/trials/nas_cifar10/src/cifar10/nni_child_cifar10.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
null
null
null
examples/trials/nas_cifar10/src/cifar10/nni_child_cifar10.py
runauto/nni
30152b04c4739f5b4f95087dee5f1e66ee893078
[ "MIT" ]
1
2020-01-11T13:19:26.000Z
2020-01-11T13:19:26.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import shutil import logging import tensorflow as tf from src.cifar10.data_utils import read_data from src.cifar10.general_child import GeneralChild import src.cifar10_flags from src.cifar10_flags impo...
33.190184
85
0.64085
5481d023ae1cb5111f38843d186a6cb4876d216a
175
py
Python
apps/oper/apps.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/oper/apps.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/oper/apps.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
from django.apps import AppConfig
17.5
34
0.64
5481e05c5889a5fab05aff46f53912b82371d733
1,952
py
Python
stella/core/interpreter/lexer.py
xabinapal/stella
ae02055749f997323390d642c99a37b80aa5df68
[ "MIT" ]
null
null
null
stella/core/interpreter/lexer.py
xabinapal/stella
ae02055749f997323390d642c99a37b80aa5df68
[ "MIT" ]
null
null
null
stella/core/interpreter/lexer.py
xabinapal/stella
ae02055749f997323390d642c99a37b80aa5df68
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import io import collections from stella.core.utils import RewindableIterator from stella.core.interpreter.productions import Token __all__ = ['Tokenizer', 'Lexer'] ################################################################################ ### Tokenizer ################################...
29.134328
82
0.483607
548332d9c8a9e409da8648383e49cb1b1c4dbca5
12,628
py
Python
tensorflow_v1/10_-_Sequence-to-sequence/03_-_Dynamic_attention_with_par-inject.py
mtanti/deeplearningtutorial
a6fef37c77216e4f98dba2bde7c62d6aa6292476
[ "MIT" ]
5
2019-05-31T08:30:28.000Z
2020-02-13T20:17:13.000Z
tensorflow_v1/10_-_Sequence-to-sequence/03_-_Dynamic_attention_with_par-inject.py
mtanti/deeplearningtutorial
a6fef37c77216e4f98dba2bde7c62d6aa6292476
[ "MIT" ]
null
null
null
tensorflow_v1/10_-_Sequence-to-sequence/03_-_Dynamic_attention_with_par-inject.py
mtanti/deeplearningtutorial
a6fef37c77216e4f98dba2bde7c62d6aa6292476
[ "MIT" ]
6
2019-04-12T15:34:05.000Z
2019-10-01T16:57:39.000Z
import matplotlib.pyplot as plt import numpy as np import tensorflow as tf tf.logging.set_verbosity(tf.logging.ERROR) max_epochs = 6000 init_stddev = 0.0001 source_embedding_size = 2 target_embedding_size = 2 source_state_size = 2 preattention_size = 2 target_state_size = 2 max_seq_len = 10 source_tokens = [ ...
52.83682
230
0.633275
54835562ea5262f2ee7bb00d7ceac361aa51a6f1
226
py
Python
lnd/utils.py
gsmadi/lightningpy
14f4cc2dd5eb8726a06db8798944302974b890aa
[ "MIT" ]
null
null
null
lnd/utils.py
gsmadi/lightningpy
14f4cc2dd5eb8726a06db8798944302974b890aa
[ "MIT" ]
3
2019-08-21T11:51:52.000Z
2019-10-07T11:51:45.000Z
lnd/utils.py
smadici-labs/pylnd
14f4cc2dd5eb8726a06db8798944302974b890aa
[ "MIT" ]
null
null
null
import codecs
20.545455
53
0.738938
5483a8653b465908b4e7a3a5f68321bd151006ac
1,649
py
Python
ctapipe/image/muon/ring_fitter.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
53
2015-06-23T15:24:20.000Z
2021-09-23T22:30:58.000Z
ctapipe/image/muon/ring_fitter.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
1,537
2015-06-24T11:27:16.000Z
2022-03-31T16:17:08.000Z
ctapipe/image/muon/ring_fitter.py
chaimain/ctapipe
ff80cff2daaf56e1d05ea6501c68fd83a9cf79d5
[ "BSD-3-Clause" ]
275
2015-07-09T14:09:28.000Z
2022-03-17T22:25:51.000Z
import numpy as np from ctapipe.core import Component from ctapipe.containers import MuonRingContainer from .fitting import kundu_chaudhuri_circle_fit, taubin_circle_fit import traitlets as traits # the fit methods do not expose the same interface, so we # force the same interface onto them, here. # we also modify th...
32.333333
71
0.691935
5484be9bfb8cd5688ba3f0f969954eaa83e32875
1,873
py
Python
Main.py
dalwindercheema/FWPython
4c5d4d6d0b29a199dbf37d16bd4ed9bb2ac22d19
[ "BSD-2-Clause" ]
2
2021-12-18T17:08:02.000Z
2021-12-22T04:19:15.000Z
Main.py
dalwindercheema/FWPython
4c5d4d6d0b29a199dbf37d16bd4ed9bb2ac22d19
[ "BSD-2-Clause" ]
null
null
null
Main.py
dalwindercheema/FWPython
4c5d4d6d0b29a199dbf37d16bd4ed9bb2ac22d19
[ "BSD-2-Clause" ]
null
null
null
import pandas as pd from os import listdir import numpy from sklearn.model_selection import StratifiedKFold from FS_ALO import WFS from FW_ALO import WFW from WFSWFW_ALO import WFSWFW import matplotlib.pyplot as plt # Main program Cost,Best_WFS,Best_WFW,Best_WFSWFW,CC=main_CV()
36.019231
107
0.645489
548634bd7f60817d2246c17acdb44bb98affa644
1,189
py
Python
demo/demo/models.py
dracarysX/django-rest-query
62fe8ee8f72251a1a8982265fff57870f2d43ca9
[ "MIT" ]
2
2017-06-28T02:51:52.000Z
2017-06-28T09:28:33.000Z
demo/demo/models.py
dracarysX/django-rest-query
62fe8ee8f72251a1a8982265fff57870f2d43ca9
[ "MIT" ]
null
null
null
demo/demo/models.py
dracarysX/django-rest-query
62fe8ee8f72251a1a8982265fff57870f2d43ca9
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*-coding: utf-8 -*- __author__ = 'dracarysX' from django.db import models
22.018519
48
0.652649
54870fd0b78e5e716753c262ab01d38621a1dd9c
4,796
py
Python
feedback-api/src/api/services/feedback/feedback_camunda_service.py
josekudiyirippil/queue-management
e56a987e14cfd2b50b820f679c7669060450da8e
[ "Apache-2.0" ]
30
2018-09-19T03:30:51.000Z
2022-03-07T02:57:05.000Z
feedback-api/src/api/services/feedback/feedback_camunda_service.py
ann-aot/queue-management
8ac8353a1e5f3f27fea74e70831ab5f0590d1805
[ "Apache-2.0" ]
159
2018-09-17T23:45:58.000Z
2022-03-30T17:35:05.000Z
feedback-api/src/api/services/feedback/feedback_camunda_service.py
ann-aot/queue-management
8ac8353a1e5f3f27fea74e70831ab5f0590d1805
[ "Apache-2.0" ]
52
2018-05-18T18:30:06.000Z
2021-08-25T12:00:29.000Z
# Copyright 2019 Province of British Columbia # # 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 agre...
51.021277
111
0.641785
5489ae18fd1a18ba304d5257203fc13d1b20346d
2,334
py
Python
dezede/urls.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
15
2015-02-10T21:16:31.000Z
2021-03-25T16:46:20.000Z
dezede/urls.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
4
2021-02-10T15:42:08.000Z
2022-03-11T23:20:38.000Z
dezede/urls.py
dezede/dezede
985ed1b42a2a6bab996e26c1b92444ae04afcc2c
[ "BSD-3-Clause" ]
6
2016-07-10T14:20:48.000Z
2022-01-19T18:34:02.000Z
from django.conf import settings from django.conf.urls import * from django.conf.urls.static import static from django.contrib import admin from django.contrib.sitemaps.views import sitemap from django.views.decorators.cache import cache_page from django.views.generic import TemplateView from ajax_select import urls as...
38.9
79
0.662811
548afc21b16ee46ad8044ba3566ba260b8c8d71a
899
py
Python
database/chemtrack/contacts.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/chemtrack/contacts.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
database/chemtrack/contacts.py
mshobair/invitro_cheminformatics
17201496c73453accd440646a1ee81726119a59c
[ "MIT" ]
null
null
null
import datetime from database.database_schemas import Schemas from sqlalchemy import Column, Integer, String, DateTime from database.base import Base
31
80
0.72525
548ba908b52f98060805c6474bd241356237c223
7,487
py
Python
otter/generate/autograder.py
drjbarker/otter-grader
9e89e1675b09cf7889995b5f1bc8e1648bf6c309
[ "BSD-3-Clause" ]
null
null
null
otter/generate/autograder.py
drjbarker/otter-grader
9e89e1675b09cf7889995b5f1bc8e1648bf6c309
[ "BSD-3-Clause" ]
null
null
null
otter/generate/autograder.py
drjbarker/otter-grader
9e89e1675b09cf7889995b5f1bc8e1648bf6c309
[ "BSD-3-Clause" ]
null
null
null
""" Gradescope autograder configuration generator for Otter Generate """ import os import json import shutil # import subprocess import zipfile import tempfile import pathlib import pkg_resources import yaml from glob import glob from subprocess import PIPE from jinja2 import Template from .token import APIClient fr...
38.792746
110
0.631762
548be68a4be4ce8e389208606dd772dad630cd84
4,947
py
Python
kanka-manager/test.py
davidbradlycurtis/kanka-manager
f44f814c6d9433a40cb1edc558baac12f26b31ad
[ "MIT" ]
null
null
null
kanka-manager/test.py
davidbradlycurtis/kanka-manager
f44f814c6d9433a40cb1edc558baac12f26b31ad
[ "MIT" ]
null
null
null
kanka-manager/test.py
davidbradlycurtis/kanka-manager
f44f814c6d9433a40cb1edc558baac12f26b31ad
[ "MIT" ]
null
null
null
import requests import yaml import json import os import sys import logging from kankaclient.client import KankaClient logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s') LOGGER = logging.getLogger('KankaManagement') token = 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiNjUxYz...
46.233645
1,002
0.686275
548e7df7f685de5e09edd46875612218fa28a72f
1,788
py
Python
setup.py
m-aciek/python-sdk
ab447b58ae5f45ce2d5beb4bfc4d7063e42b4311
[ "MIT" ]
null
null
null
setup.py
m-aciek/python-sdk
ab447b58ae5f45ce2d5beb4bfc4d7063e42b4311
[ "MIT" ]
null
null
null
setup.py
m-aciek/python-sdk
ab447b58ae5f45ce2d5beb4bfc4d7063e42b4311
[ "MIT" ]
2
2018-03-30T10:10:56.000Z
2018-05-25T09:27:36.000Z
#!/usr/bin/env python import os import re import codecs from setuptools import setup, find_packages ground = os.path.abspath(os.path.dirname(__file__)) metadata = read(os.path.join(ground, 'hyperwallet', '__init__.py')) setup( name = 'hyperwallet-sdk', url = extract_metaitem('url'), author = extract_m...
33.735849
114
0.636465
548fac7398ada6cb536131133e9e9aa0af68eb01
7,850
py
Python
big-picture-spectra/big-picture-spectra.py
aibhleog/plotting-playground
84c19698e659de97c263362c7440faa3f873476e
[ "MIT" ]
null
null
null
big-picture-spectra/big-picture-spectra.py
aibhleog/plotting-playground
84c19698e659de97c263362c7440faa3f873476e
[ "MIT" ]
null
null
null
big-picture-spectra/big-picture-spectra.py
aibhleog/plotting-playground
84c19698e659de97c263362c7440faa3f873476e
[ "MIT" ]
null
null
null
''' This script makes an image very similar to Figure 2 of Hutchison et al. 2019 (https://arxiv.org/pdf/1905.08812.pdf). Undoubtedly, there are likely simpler ways to make this figure -- this is how I chose to code it up. Because the figure in the paper uses some proprietary data, the code below will generate fake dat...
39.25
217
0.707771
54902b07fce1f2bf2bcf246ab039ab703861aaf3
8,517
py
Python
pesummary/core/plots/corner.py
pesummary/pesummary
99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8
[ "MIT" ]
1
2021-08-03T05:58:20.000Z
2021-08-03T05:58:20.000Z
pesummary/core/plots/corner.py
pesummary/pesummary
99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8
[ "MIT" ]
1
2020-06-13T13:29:35.000Z
2020-06-15T12:45:04.000Z
pesummary/core/plots/corner.py
pesummary/pesummary
99e3c450ecbcaf5a23564d329bdf6e0080f6f2a8
[ "MIT" ]
3
2021-07-08T08:31:28.000Z
2022-03-31T14:08:58.000Z
# Licensed under an MIT style license -- see LICENSE.md import numpy as np from scipy.stats import gaussian_kde from matplotlib.colors import LinearSegmentedColormap, colorConverter import corner __author__ = ["Charlie Hoy <charlie.hoy@ligo.org>"] def hist2d( x, y, bins=20, range=None, weights=None, levels=No...
36.242553
80
0.589996
549070123669b37704f083b9611ce10258a9d787
2,240
py
Python
tests/test_tokenizer.py
mkartawijaya/dango
9cc9d498c4eac851d6baa96ced528c1d91a87216
[ "BSD-3-Clause" ]
null
null
null
tests/test_tokenizer.py
mkartawijaya/dango
9cc9d498c4eac851d6baa96ced528c1d91a87216
[ "BSD-3-Clause" ]
null
null
null
tests/test_tokenizer.py
mkartawijaya/dango
9cc9d498c4eac851d6baa96ced528c1d91a87216
[ "BSD-3-Clause" ]
null
null
null
from typing import List import pytest import dango # Since extracting the reading of the dictionary form depends on knowledge # of the internal workings of SudachiPy we treat this functionality as a # black box and just perform a smoke test if we get some plausible output. # This test could break depending on the...
36.129032
82
0.525446
5490a142b6dfe4a57805f7133f0d2ea9a4a1539c
2,829
py
Python
neutron_lib/db/sqlalchemytypes.py
rolaya/neutron-lib
41a2226dfb93a0e6138de260f5126fa7c954178c
[ "Apache-2.0" ]
null
null
null
neutron_lib/db/sqlalchemytypes.py
rolaya/neutron-lib
41a2226dfb93a0e6138de260f5126fa7c954178c
[ "Apache-2.0" ]
null
null
null
neutron_lib/db/sqlalchemytypes.py
rolaya/neutron-lib
41a2226dfb93a0e6138de260f5126fa7c954178c
[ "Apache-2.0" ]
null
null
null
# 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 # d...
33.678571
78
0.607282
5491d3f5c105c58d0e54d67614d6a8faed7a1e75
256
py
Python
Algorithm/Array/217. Contains Duplicate.py
smsubham/Data-Structure-Algorithms-Questions
45da68231907068ef4e4a0444ffdac69b337fa7c
[ "Apache-2.0" ]
null
null
null
Algorithm/Array/217. Contains Duplicate.py
smsubham/Data-Structure-Algorithms-Questions
45da68231907068ef4e4a0444ffdac69b337fa7c
[ "Apache-2.0" ]
null
null
null
Algorithm/Array/217. Contains Duplicate.py
smsubham/Data-Structure-Algorithms-Questions
45da68231907068ef4e4a0444ffdac69b337fa7c
[ "Apache-2.0" ]
null
null
null
# https://leetcode.com/problems/contains-duplicate/ # We are forming whole set always which isn't optimal though time complexity is O(n).
36.571429
85
0.710938
54940d248d43c1725fcc0fa869fadb3c0a38e2a1
1,488
py
Python
script/check_conf_whitelist.py
Kaiyuan-Zhang/Gravel-public
ff3f7dc7d5ac63d91e26f03ae4e49a7451c6cb22
[ "MIT" ]
4
2020-04-11T19:11:25.000Z
2021-02-06T10:46:39.000Z
script/check_conf_whitelist.py
Kaiyuan-Zhang/Gravel-public
ff3f7dc7d5ac63d91e26f03ae4e49a7451c6cb22
[ "MIT" ]
1
2021-11-01T20:19:23.000Z
2021-11-01T20:19:43.000Z
script/check_conf_whitelist.py
Kaiyuan-Zhang/Gravel-public
ff3f7dc7d5ac63d91e26f03ae4e49a7451c6cb22
[ "MIT" ]
1
2020-04-18T03:36:03.000Z
2020-04-18T03:36:03.000Z
import sys import os if __name__ == '__main__': if len(sys.argv) < 3: print("Usage: {} <conf-list> <conf-dir> [white-list-files]".format(sys.argv[0])) sys.exit(-1) conf_list_file = sys.argv[1] conf_dir = sys.argv[2] conf_list = {} white_list_files = sys.argv[3:] ele_white_list ...
31.659574
93
0.536962
54944c0a9b4c84df76cbc3d9fc9c516394ab50a2
4,383
py
Python
models/joint_inference_model.py
pnsuau/neurips18_hierchical_image_manipulation
712ff8008f8d4c38626bd556fc44adfbcde8fa28
[ "MIT" ]
null
null
null
models/joint_inference_model.py
pnsuau/neurips18_hierchical_image_manipulation
712ff8008f8d4c38626bd556fc44adfbcde8fa28
[ "MIT" ]
null
null
null
models/joint_inference_model.py
pnsuau/neurips18_hierchical_image_manipulation
712ff8008f8d4c38626bd556fc44adfbcde8fa28
[ "MIT" ]
null
null
null
import torch from torch.autograd import Variable from util.util import * from util.data_util import * import numpy as np from PIL import Image from data.base_dataset import get_transform_params, get_raw_transform_fn, \ get_transform_fn, get_soft_bbox, get_masked_image from util.data_util i...
42.553398
94
0.620123
549626fa07a7cc95e2aa2428a235bbc1adf539d5
2,102
py
Python
solutions/051_n_queens.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/051_n_queens.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
solutions/051_n_queens.py
abawchen/leetcode
41d3b172a7694a46a860fbcb0565a3acccd000f2
[ "MIT" ]
null
null
null
import time start_time = time.time() s = Solution() print s.solveNQueens(1) print s.solveNQueens(2) print s.solveNQueens(3) print (4, s.solveNQueens(4)) print (5, len(s.solveNQueens(5))) print (6, len(s.solveNQueens(6))) print (7, len(s.solveNQueens(7))) print (8, len(s.solveNQueens(8))) print (9, len(s.solveNQueen...
28.794521
108
0.471456
5497a6164438dad00ba23076949d1e3d84fd4868
3,812
py
Python
tests/v2/parties/test_parties.py
jama5262/Politico
7292f604723cf115004851b9767688cf1a956bb1
[ "MIT" ]
null
null
null
tests/v2/parties/test_parties.py
jama5262/Politico
7292f604723cf115004851b9767688cf1a956bb1
[ "MIT" ]
2
2019-02-19T12:43:32.000Z
2019-03-04T16:15:38.000Z
tests/v2/parties/test_parties.py
jama5262/Politico
7292f604723cf115004851b9767688cf1a956bb1
[ "MIT" ]
null
null
null
import unittest import json from app import createApp from app.api.database.migrations.migrations import migrate
36.304762
128
0.635887
5497dc6a086f32d3001f4b0c68ed070534942148
179
py
Python
tests/_compat.py
lanius/hunk
bba04d9fb7f37c378ea41bc934c3a02401e34fe6
[ "MIT" ]
1
2015-04-03T08:35:41.000Z
2015-04-03T08:35:41.000Z
tests/_compat.py
lanius/hunk
bba04d9fb7f37c378ea41bc934c3a02401e34fe6
[ "MIT" ]
null
null
null
tests/_compat.py
lanius/hunk
bba04d9fb7f37c378ea41bc934c3a02401e34fe6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys PY2 = sys.version_info[0] == 2 if not PY2: json_text = lambda rv: rv.data.decode(rv.charset) else: json_text = lambda rv: rv.data
12.785714
53
0.625698
549905ffeca6d09d599080cd848b9e365ea51dd3
763
py
Python
oriskami/test/resources/test_router_data.py
oriskami/oriskami-python
2b0d81f713a9149977907183c67eec136d49ee8c
[ "MIT" ]
4
2017-05-28T19:37:31.000Z
2017-06-13T11:34:26.000Z
oriskami/test/resources/test_router_data.py
ubivar/ubivar-python
2b0d81f713a9149977907183c67eec136d49ee8c
[ "MIT" ]
null
null
null
oriskami/test/resources/test_router_data.py
ubivar/ubivar-python
2b0d81f713a9149977907183c67eec136d49ee8c
[ "MIT" ]
null
null
null
import os import oriskami import warnings from oriskami.test.helper import (OriskamiTestCase)
38.15
69
0.714286
54990a8312bff53b0e8f90e7a2361334c451c834
1,625
py
Python
osbot_aws/helpers/IAM_Policy.py
artem7902/OSBot-AWS
4b676b8323f18d3d9809d41263f3a71745ec2828
[ "Apache-2.0" ]
null
null
null
osbot_aws/helpers/IAM_Policy.py
artem7902/OSBot-AWS
4b676b8323f18d3d9809d41263f3a71745ec2828
[ "Apache-2.0" ]
null
null
null
osbot_aws/helpers/IAM_Policy.py
artem7902/OSBot-AWS
4b676b8323f18d3d9809d41263f3a71745ec2828
[ "Apache-2.0" ]
null
null
null
from osbot_aws.apis.IAM import IAM
36.111111
123
0.649846
5499335d4a53f32fd4ee6cd0b97b91f92adeec0e
3,959
py
Python
data_visualization.py
vashineyu/Common_tools
b933660e007ae104910c975d074523012bb7b58e
[ "Apache-2.0" ]
1
2018-10-26T09:33:26.000Z
2018-10-26T09:33:26.000Z
data_visualization.py
vashineyu/Common_tools
b933660e007ae104910c975d074523012bb7b58e
[ "Apache-2.0" ]
null
null
null
data_visualization.py
vashineyu/Common_tools
b933660e007ae104910c975d074523012bb7b58e
[ "Apache-2.0" ]
null
null
null
# Visualization function import numpy as np import matplotlib.pyplot as plt from math import ceil from PIL import Image from scipy.ndimage.filters import gaussian_filter def img_combine(img, ncols=5, size=1, path=False): """ Draw the images with array img: image array to plot - size = n x im_w x im_h x 3 ...
34.12931
113
0.602172
5499a0762a3bf6035430062da7d86593750133d8
2,037
py
Python
src/CIA_History.py
Larz60p/WorldFactBook
c2edb4c8b0b9edab4a41b7384aade6d1d8ce6128
[ "MIT" ]
1
2019-03-29T03:33:43.000Z
2019-03-29T03:33:43.000Z
src/CIA_History.py
Larz60p/WorldFactBook
c2edb4c8b0b9edab4a41b7384aade6d1d8ce6128
[ "MIT" ]
null
null
null
src/CIA_History.py
Larz60p/WorldFactBook
c2edb4c8b0b9edab4a41b7384aade6d1d8ce6128
[ "MIT" ]
null
null
null
# copyright (c) 2018 Larz60+ from lxml import html import ScraperPaths import CIA_ScanTools import GetPage import os import json import sys from bs4 import BeautifulSoup if __name__ == '__main__': CIA_History()
31.828125
103
0.522337
549b59fe62af96d3a0abf31ed9194bf5c91e167c
301
py
Python
tests/thumbnail_tests/urls.py
roojoom/sorl-thumbnail
f10fd48f8b33efe4f468ece056fd545be796bf72
[ "BSD-3-Clause" ]
2
2019-04-09T16:07:23.000Z
2019-04-09T16:07:26.000Z
tests/thumbnail_tests/urls.py
roojoom/sorl-thumbnail
f10fd48f8b33efe4f468ece056fd545be796bf72
[ "BSD-3-Clause" ]
null
null
null
tests/thumbnail_tests/urls.py
roojoom/sorl-thumbnail
f10fd48f8b33efe4f468ece056fd545be796bf72
[ "BSD-3-Clause" ]
1
2020-02-18T13:00:55.000Z
2020-02-18T13:00:55.000Z
from django.conf.urls import patterns from django.conf import settings urlpatterns = patterns( '', (r'^media/(?P<path>.+)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), (r'^(.*\.html)$', 'thumbnail_tests.views.direct_to_template'), )
27.363636
67
0.671096
549b88a77a4a74ecdad5b7ba7eb748aea0547a53
822
py
Python
data/mapper.py
GhostBadger/Kurien_G_DataViz_Fall2020
817f1a352027d4d81db0260393912e78a2a5e596
[ "MIT" ]
null
null
null
data/mapper.py
GhostBadger/Kurien_G_DataViz_Fall2020
817f1a352027d4d81db0260393912e78a2a5e596
[ "MIT" ]
1
2020-12-13T03:46:44.000Z
2020-12-13T03:46:44.000Z
data/mapper.py
GhostBadger/Kurien_G_DataViz_Fall2020
817f1a352027d4d81db0260393912e78a2a5e596
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt hfont = {'fontname':'Lato'} #draw a simple line chart showing population grown over the last 115 years years = [1900, 1950, 1955, 1960, 1965, 1970, 1975, 1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015] pops = [1.6, 2.5, 2.6, 3.0, 3.3, 3.6, 4.2, 4.4, 4.8, 5.3, 5.7, 6.1, 6.5, 6.9, 7.3]...
31.615385
98
0.69708
549b92a869131a02e61a4b0496d5ecab3305509e
28,057
py
Python
classification/train_classifier_tf.py
dnarqq/WildHack
4fb9e4545cb47a4283ebc1dec955c0817b1664c0
[ "MIT" ]
402
2019-05-08T17:28:25.000Z
2022-03-27T19:30:07.000Z
classification/train_classifier_tf.py
dnarqq/WildHack
4fb9e4545cb47a4283ebc1dec955c0817b1664c0
[ "MIT" ]
72
2019-05-07T18:33:32.000Z
2022-03-10T07:48:39.000Z
classification/train_classifier_tf.py
dnarqq/WildHack
4fb9e4545cb47a4283ebc1dec955c0817b1664c0
[ "MIT" ]
162
2019-05-18T15:45:27.000Z
2022-03-25T20:17:45.000Z
r"""Train an EfficientNet classifier. Currently implementation of multi-label multi-class classification is non-functional. During training, start tensorboard from within the classification/ directory: tensorboard --logdir run --bind_all --samples_per_plugin scalars=0,images=0 Example usage: python train_cla...
40.13877
116
0.641729
549bb5431eeb75a8dbdf100c69a7b7af3cb1061c
4,704
py
Python
pyreach/impl/constraints_impl_test.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
13
2021-09-01T01:10:22.000Z
2022-03-05T10:01:52.000Z
pyreach/impl/constraints_impl_test.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
null
null
null
pyreach/impl/constraints_impl_test.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
6
2021-09-20T21:17:53.000Z
2022-03-14T18:42:48.000Z
# Copyright 2021 Google LLC # # 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, ...
39.864407
74
0.688776
549d785cbbd7f0e2ec80896ebc16b20cd8e0ba82
3,400
py
Python
qplan/parse.py
mackstann/qplaniso
97c4fbeeb529dfef0778cedc3e79087f6a87f5c4
[ "CC0-1.0" ]
null
null
null
qplan/parse.py
mackstann/qplaniso
97c4fbeeb529dfef0778cedc3e79087f6a87f5c4
[ "CC0-1.0" ]
null
null
null
qplan/parse.py
mackstann/qplaniso
97c4fbeeb529dfef0778cedc3e79087f6a87f5c4
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 import itertools if __name__ == '__main__': import pprint with open('example-plan.txt') as f: pprint.pprint(parse(f.read()).as_dict())
26.5625
98
0.523529
549e3c5ec51f517db74f9b45d00df6b1a26198eb
2,397
py
Python
10054 - The Necklace/main.py
Shree-Gillorkar/uva-onlinejudge-solutions
df64f5c3a136827b5ca7871df1cf8aafadcf5c9b
[ "MIT" ]
24
2017-10-15T04:04:55.000Z
2022-01-31T17:14:29.000Z
10054 - The Necklace/main.py
ashishrana080699/uva-onlinejudge-solutions
d2d0a58e53e3d9acf6d20e56a40900423ae705c4
[ "MIT" ]
1
2019-07-11T04:22:55.000Z
2019-07-14T19:34:41.000Z
10054 - The Necklace/main.py
ashishrana080699/uva-onlinejudge-solutions
d2d0a58e53e3d9acf6d20e56a40900423ae705c4
[ "MIT" ]
27
2017-01-06T17:33:57.000Z
2021-11-25T00:07:54.000Z
from sys import stdin from collections import defaultdict, deque MAX_COLORS = 51 def build_necklace(beads): """Construct an euler circuit in the graph defined by the beads""" # For a graph to have an euler circuit all vertices must have # even degree. (Plus 0 or 2 odd vertices) Init and ckeck degree ...
27.238636
79
0.553191
549ee02e71d944702ec6c3b3ab3e03cf388c6552
458
py
Python
tests/test_eeg.py
y1ngyang/NeuroKit.py
867655f84bf210626649bca72258af6a2b5a2791
[ "MIT" ]
null
null
null
tests/test_eeg.py
y1ngyang/NeuroKit.py
867655f84bf210626649bca72258af6a2b5a2791
[ "MIT" ]
null
null
null
tests/test_eeg.py
y1ngyang/NeuroKit.py
867655f84bf210626649bca72258af6a2b5a2791
[ "MIT" ]
null
null
null
import pytest import doctest import os import numpy as np import pandas as pd import neurokit as nk run_tests_in_local = False #============================================================================== # data #============================================================================== #def test_read_acqknow...
16.962963
79
0.458515
549fb62cea23b9b1c82de165b05b9e48e6855b9f
231,371
py
Python
tests/semantics/models.py
dnikolay-ebc/FiLiP
9a84979da8dff4523cb91e40869070bd02aa91fe
[ "BSD-3-Clause" ]
6
2021-11-21T21:57:38.000Z
2022-02-22T08:20:30.000Z
tests/semantics/models.py
RWTH-EBC/FiLiP
e294c5ef94b2b6ad9611316e50b5c550bcd77c1b
[ "BSD-3-Clause" ]
83
2021-04-08T18:34:20.000Z
2022-03-30T12:18:32.000Z
tests/semantics/models.py
dnikolay-ebc/FiLiP
9a84979da8dff4523cb91e40869070bd02aa91fe
[ "BSD-3-Clause" ]
5
2021-10-04T08:39:21.000Z
2022-03-30T07:30:57.000Z
""" Autogenerated Models for the vocabulary described by the ontologies: http://www.semanticweb.org/redin/ontologies/2020/11/untitled-ontology-25 (ParsingTesterOntology) https://w3id.org/saref (saref.ttl) """ from enum import Enum from typing import Dict, Union, List from filip.semantics.semantics_models import\ Se...
29.788979
165
0.73243
549fd848dd75d3c337cc6b1655249d58340ef912
2,744
py
Python
plotting/trackTurnOn.py
will-fawcett/trackerSW
fc097b97539d0b40a15e1d6e112f4048cb4122b4
[ "MIT" ]
null
null
null
plotting/trackTurnOn.py
will-fawcett/trackerSW
fc097b97539d0b40a15e1d6e112f4048cb4122b4
[ "MIT" ]
null
null
null
plotting/trackTurnOn.py
will-fawcett/trackerSW
fc097b97539d0b40a15e1d6e112f4048cb4122b4
[ "MIT" ]
null
null
null
from utils import prepareLegend from colours import colours from ROOT import * gROOT.SetBatch(1) gStyle.SetPadLeftMargin(0.15) # increase space for left margin gStyle.SetPadBottomMargin(0.15) # increase space for left margin gStyle.SetGridStyle(3) gStyle.SetGridColor(kGray) gStyle.SetPadTickX(1) # add tics on top ...
27.717172
94
0.623178
54a054f1ed42ee815b1ac8ae21d88b15ea91f8bb
154
py
Python
pybo/inits/__init__.py
hfukada/pybo
3be57adad901fcd8d45b8ee2af7c6032ab47611d
[ "BSD-2-Clause" ]
115
2015-01-21T21:31:22.000Z
2021-08-08T17:10:16.000Z
pybo/inits/__init__.py
hfukada/pybo
3be57adad901fcd8d45b8ee2af7c6032ab47611d
[ "BSD-2-Clause" ]
5
2016-02-24T16:00:01.000Z
2020-12-21T00:28:30.000Z
pybo/inits/__init__.py
hfukada/pybo
3be57adad901fcd8d45b8ee2af7c6032ab47611d
[ "BSD-2-Clause" ]
35
2015-02-27T15:27:36.000Z
2020-08-19T07:43:53.000Z
""" Initialization methods. """ # pylint: disable=wildcard-import from .methods import * from . import methods __all__ = [] __all__ += methods.__all__
12.833333
33
0.714286
54a07034e31ea393994499d210b41085f8ae28cb
2,362
py
Python
src/Process/Process.py
mauriciocarvalho01/pln_api
06743f1ae9e084ad15f1c91b32eb3719344f4a4b
[ "MIT" ]
1
2021-12-14T19:10:44.000Z
2021-12-14T19:10:44.000Z
src/Process/Process.py
mauriciocarvalho01/pln_api
06743f1ae9e084ad15f1c91b32eb3719344f4a4b
[ "MIT" ]
null
null
null
src/Process/Process.py
mauriciocarvalho01/pln_api
06743f1ae9e084ad15f1c91b32eb3719344f4a4b
[ "MIT" ]
null
null
null
import spacy from nltk.tokenize import word_tokenize from nltk.tokenize import sent_tokenize from nltk.corpus import stopwords from nltk.probability import FreqDist from string import punctuation from tqdm import tqdm from rank_bm25 import BM25Okapi import time from collections import defaultdict from heapq import nlar...
34.735294
148
0.600762