hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
fed947f3b45976f09b22c7d3b90930f13ee6efbd
30,788
py
Python
zerver/views/registration.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
1
2020-08-24T08:26:03.000Z
2020-08-24T08:26:03.000Z
zerver/views/registration.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
null
null
null
zerver/views/registration.py
kaustubh-nair/zulip
fb96407607c1f42b350980ad13af20b884750606
[ "Apache-2.0" ]
null
null
null
import logging import smtplib import urllib from typing import Dict, List, Optional from django.conf import settings from django.contrib.auth import authenticate, get_backends from django.core import validators from django.core.exceptions import ValidationError from django.db.models import Q from django.http import Ht...
46.790274
109
0.638625
58c07acc7c0d516797a1ef890db449ab8c9f9ef7
11,327
py
Python
zhusuan/distributions/base.py
ycguo028/zhusuan
244536d93c55e486a3587e53229f0a7e1b19bef0
[ "MIT" ]
4
2017-05-23T20:18:41.000Z
2020-03-03T15:00:53.000Z
zhusuan/distributions/base.py
ycguo028/zhusuan
244536d93c55e486a3587e53229f0a7e1b19bef0
[ "MIT" ]
null
null
null
zhusuan/distributions/base.py
ycguo028/zhusuan
244536d93c55e486a3587e53229f0a7e1b19bef0
[ "MIT" ]
2
2018-11-27T02:43:22.000Z
2019-11-23T18:27:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division import tensorflow as tf from zhusuan.utils import add_name_scope __all__ = [ 'Distribution', ] class Distribution(object): """ The :class:`Distribution` class is the base class for var...
37.382838
79
0.632648
d931996119597182cc91df651148a269f7a8541f
7,601
py
Python
dvc/fs/fsspec_wrapper.py
discdiver/dvc
d4861d535ab868e59a5b602846ef70ebe6526b75
[ "Apache-2.0" ]
1
2022-03-16T13:27:40.000Z
2022-03-16T13:27:40.000Z
dvc/fs/fsspec_wrapper.py
InEase/dvc
e60ab00f5126912ca58da8df39ce6277fb30023d
[ "Apache-2.0" ]
null
null
null
dvc/fs/fsspec_wrapper.py
InEase/dvc
e60ab00f5126912ca58da8df39ce6277fb30023d
[ "Apache-2.0" ]
null
null
null
import os import shutil from typing import IO, TYPE_CHECKING, Any, Dict, Iterator, Optional, overload from funcy import cached_property from tqdm.utils import CallbackIOWrapper from ._callback import DEFAULT_CALLBACK from .base import FileSystem FSPath = str AnyFSPath = str if TYPE_CHECKING: from typing_extensi...
30.773279
79
0.617682
8e5c99be0b07750dec2d972c0c723cb3ae1a9db9
287
py
Python
src/Injectors/File/5.py
shownadda/Malware-Dev
a3fb40371bb4c4f41c582747af41ae8800050f5c
[ "Unlicense" ]
46
2022-01-30T14:29:02.000Z
2022-03-25T03:49:13.000Z
src/Injectors/File/5.py
shownadda/Malware-Dev
a3fb40371bb4c4f41c582747af41ae8800050f5c
[ "Unlicense" ]
null
null
null
src/Injectors/File/5.py
shownadda/Malware-Dev
a3fb40371bb4c4f41c582747af41ae8800050f5c
[ "Unlicense" ]
1
2022-03-05T03:42:55.000Z
2022-03-05T03:42:55.000Z
## Extract injected image from Main image import PIL.Image import io with open("pizza.jpg", "rb") as f: content = f.read() offset = content.index(bytes.fromhex("FFD9")) f.seek(offset + 2) new_img = PIL.Image.open(io.BytesIO(f.read())) new_img.save("fresh_pizza.png")
28.7
50
0.66899
fade289f995a5a3f0e5de20f12ee8e817890b9c2
10,661
py
Python
contest/views/admin.py
scintiller/OnlineJudge
4e66da0e366c8b950a1ccae2b435b81d9fe07e6c
[ "MIT" ]
null
null
null
contest/views/admin.py
scintiller/OnlineJudge
4e66da0e366c8b950a1ccae2b435b81d9fe07e6c
[ "MIT" ]
6
2020-06-05T21:37:42.000Z
2022-01-13T01:19:55.000Z
contest/views/admin.py
scintiller/OnlineJudge
4e66da0e366c8b950a1ccae2b435b81d9fe07e6c
[ "MIT" ]
null
null
null
import copy import os import zipfile from ipaddress import ip_network import dateutil.parser from django.http import FileResponse from account.decorators import check_contest_permission, ensure_created_by from account.models import User from submission.models import Submission, JudgeStatus from utils.api import APIVi...
43.872428
118
0.632305
78190d97d688b4cf86f1b27dd3b735361cc19e02
674
py
Python
pytglib/api/types/check_chat_username_result_public_chats_too_much.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/check_chat_username_result_public_chats_too_much.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/check_chat_username_result_public_chats_too_much.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object class CheckChatUsernameResultPublicChatsTooMuch(Object): """ The user has too much chats with username, one of them should be made private first Attributes: ID (:obj:`str`): ``CheckChatUsernameResultPublicChatsTooMuch`` No parameters required. Returns: ...
21.741935
87
0.678042
479b8c80a01b6aadda26944229a6f16fed38d6f0
696
py
Python
entity/ReminderInfo.py
zwffff2015/stock
5f6017ab3a9af8920b1e595c5e3595458c95ce30
[ "MIT" ]
null
null
null
entity/ReminderInfo.py
zwffff2015/stock
5f6017ab3a9af8920b1e595c5e3595458c95ce30
[ "MIT" ]
null
null
null
entity/ReminderInfo.py
zwffff2015/stock
5f6017ab3a9af8920b1e595c5e3595458c95ce30
[ "MIT" ]
null
null
null
class ReminderInfo: def __init__(self, maxPrice, minPrice, upPercent, downPercent, receiver, code, name, buyPrice=0, yesterdayHighPrice=0, yesterdayChangePercent=0, totalChangePercentLast30Days=0): self.maxPrice = maxPrice self.minPrice = minPrice ...
40.941176
100
0.666667
6e5c9ff38b08faeba03ac289230a2556fc8047cc
10,053
py
Python
src/v5.1/resources/swagger_client/models/tpdm_anonymized_student_education_organization_association.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
2
2021-04-27T17:18:17.000Z
2021-04-27T19:14:39.000Z
src/v5.1/resources/swagger_client/models/tpdm_anonymized_student_education_organization_association.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
null
null
null
src/v5.1/resources/swagger_client/models/tpdm_anonymized_student_education_organization_association.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
1
2022-01-06T09:43:11.000Z
2022-01-06T09:43:11.000Z
# coding: utf-8 """ Ed-Fi Operational Data Store API The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas...
37.935849
482
0.679598
9828b45924c30d21484d0de726dd951478e26894
1,157
py
Python
tests/queues_test.py
Cormen-Lib-Developers/Cormen-Lib
7877f1180cb76b56c909b70a35d85af8a83e530a
[ "MIT" ]
8
2022-01-24T00:34:59.000Z
2022-03-15T01:34:51.000Z
tests/queues_test.py
Cormen-Lib-Developers/Cormen-Lib
7877f1180cb76b56c909b70a35d85af8a83e530a
[ "MIT" ]
8
2022-02-09T22:07:35.000Z
2022-03-17T16:23:08.000Z
tests/queues_test.py
Cormen-Lib-Developers/Cormen-Lib
7877f1180cb76b56c909b70a35d85af8a83e530a
[ "MIT" ]
null
null
null
import unittest from dalpy.queues import Queue, QueueUnderflowError class QueueTest(unittest.TestCase): def test_init(self): q = Queue() self.assertTrue(q.is_empty()) self.assertEqual(q.size(), 0) def test_empty_ops(self): q = Queue() self.assertRaises(QueueUnderflowE...
26.295455
67
0.581677
9ce829efb3bb462dcebbca0fb7778f3f0d58cb99
2,565
py
Python
toH5.py
anuradhawick/seq2vec
4ced909f4046a7aa8ec0562ea85e75d5702054b5
[ "MIT" ]
6
2021-05-10T02:10:20.000Z
2022-01-16T06:53:14.000Z
toH5.py
anuradhawick/seq2vec
4ced909f4046a7aa8ec0562ea85e75d5702054b5
[ "MIT" ]
1
2021-12-29T01:53:58.000Z
2022-01-07T00:53:42.000Z
toH5.py
anuradhawick/seq2vec
4ced909f4046a7aa8ec0562ea85e75d5702054b5
[ "MIT" ]
null
null
null
import h5py from glob import glob from tqdm import tqdm import numpy as np import argparse def main(tmp_path, tmp_sort_path, h5_filename): ds_size = 0 d_shape = 0 for file in glob(tmp_path): for line in open(file): if d_shape == 0: d_shape = len(line.strip().split()) - ...
30.535714
119
0.584795
4bdd036e0bdd279896ac3971e7e656ef257e97ad
4,444
py
Python
mitmproxy/utils.py
dolfly/mitmproxy
4604c25c6055a37e5f25a238d2a089759bd5d98a
[ "MIT" ]
null
null
null
mitmproxy/utils.py
dolfly/mitmproxy
4604c25c6055a37e5f25a238d2a089759bd5d98a
[ "MIT" ]
null
null
null
mitmproxy/utils.py
dolfly/mitmproxy
4604c25c6055a37e5f25a238d2a089759bd5d98a
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, print_function, division) import os import datetime import re import time import json import importlib import inspect def timestamp(): """ Returns a serializable UTC timestamp. """ return time.time() def format_timestamp(s): s = time.localtime(s) d...
25.107345
78
0.566382
3345696e4641f7fca9071586964f350bce68ae4a
8,775
py
Python
python/setup.py
NVIDIA/cuQuantum
0f00494d4639d760228ac002e83e6d2d3dd97eca
[ "BSD-3-Clause" ]
52
2021-12-04T20:39:12.000Z
2022-03-29T11:52:55.000Z
python/setup.py
NVIDIA/cuQuantum
0f00494d4639d760228ac002e83e6d2d3dd97eca
[ "BSD-3-Clause" ]
3
2022-02-01T22:46:50.000Z
2022-03-24T01:52:29.000Z
python/setup.py
NVIDIA/cuQuantum
0f00494d4639d760228ac002e83e6d2d3dd97eca
[ "BSD-3-Clause" ]
18
2021-12-20T17:52:07.000Z
2022-03-29T02:27:58.000Z
# Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES # # SPDX-License-Identifier: BSD-3-Clause import os import site import subprocess import sys from packaging.version import Version from setuptools import setup, Extension, find_packages from Cython.Build import cythonize # Get __version__ variable source_ro...
35.526316
100
0.646154
a9526c8701734fce756f26d5982cef2c440da913
3,008
py
Python
tests/unit/test_multipart.py
sivel/requisitor
c6b10d400111998591ea9e21148c9cd7e905a453
[ "Apache-2.0" ]
7
2020-04-17T04:05:19.000Z
2020-05-15T14:35:21.000Z
tests/unit/test_multipart.py
sivel/requisitor
c6b10d400111998591ea9e21148c9cd7e905a453
[ "Apache-2.0" ]
null
null
null
tests/unit/test_multipart.py
sivel/requisitor
c6b10d400111998591ea9e21148c9cd7e905a453
[ "Apache-2.0" ]
null
null
null
import os import pathlib from email.message import Message import pytest from requisitor.multipart import Field from requisitor.multipart import prepare_multipart def test_prepare_multipart(request): fixture_boundary = b'===============9055186793967377464==' here = os.path.dirname(__file__) multipart =...
29.782178
77
0.589096
fdce3a22f4d9ef80c42411304912340c9bf70bda
29,371
py
Python
examples/pytorch/speech-pretraining/run_wav2vec2_pretraining_no_trainer.py
yhavinga/transformers
9932ee4b4bca9045d941af6687ef69eedcf68483
[ "Apache-2.0" ]
2
2022-02-19T07:02:52.000Z
2022-02-19T07:02:55.000Z
examples/pytorch/speech-pretraining/run_wav2vec2_pretraining_no_trainer.py
yhavinga/transformers
9932ee4b4bca9045d941af6687ef69eedcf68483
[ "Apache-2.0" ]
2
2022-03-14T10:13:16.000Z
2022-03-14T11:50:27.000Z
examples/pytorch/speech-pretraining/run_wav2vec2_pretraining_no_trainer.py
yhavinga/transformers
9932ee4b4bca9045d941af6687ef69eedcf68483
[ "Apache-2.0" ]
1
2022-02-20T11:47:53.000Z
2022-02-20T11:47:53.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. 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/LI...
40.34478
200
0.652038
8d80bbcd8903d2bf2811e04b5697b5d07e4c92b6
419
py
Python
app/api/decorators.py
imdreamer2018/blogByFlask
87f374e40b45c95cb87402c3fe1bf4df226a297d
[ "MIT" ]
2
2020-05-18T00:56:25.000Z
2020-05-18T00:56:27.000Z
app/api/decorators.py
imdreamer2018/SimpleBlog
87f374e40b45c95cb87402c3fe1bf4df226a297d
[ "MIT" ]
4
2020-05-16T13:22:44.000Z
2020-05-16T13:22:47.000Z
app/api/decorators.py
imdreamer2018/SimpleBlog
87f374e40b45c95cb87402c3fe1bf4df226a297d
[ "MIT" ]
null
null
null
from functools import wraps from flask import g from .errors import forbidden def permission_required(permission): def decorator(f): @wraps(f) def decorated_function(*args,**kwargs): if not g.current_user.can(permission): return forbidden('Insufficient permissio...
32.230769
61
0.649165
dd171b6cde35a15bd755691b1cacdad663f9f12e
9,654
py
Python
kloudless/client.py
theonlybex/kloudless-python
3e00b4659e5f790a9129e858b19d0bf283cd8e1c
[ "MIT" ]
null
null
null
kloudless/client.py
theonlybex/kloudless-python
3e00b4659e5f790a9129e858b19d0bf283cd8e1c
[ "MIT" ]
null
null
null
kloudless/client.py
theonlybex/kloudless-python
3e00b4659e5f790a9129e858b19d0bf283cd8e1c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import re import requests from . import exceptions from .auth import APIKeyAuth, BearerTokenAuth from .re_patterns import download_file_patterns from .resources import ResourceList, Resource, Response, ResponseJson from .util import logger, url_join, construct_kloudless_endpoi...
35.233577
82
0.611871
79727ea6bea04bb19fd21c9f87e3618788bff520
2,192
py
Python
typo/wsgi.py
SmartTeleMax/typod
1f559929535cdc104221f531b9921ad58a010dc3
[ "MIT" ]
3
2016-01-24T11:59:34.000Z
2018-07-04T06:00:18.000Z
typo/wsgi.py
SmartTeleMax/typod
1f559929535cdc104221f531b9921ad58a010dc3
[ "MIT" ]
null
null
null
typo/wsgi.py
SmartTeleMax/typod
1f559929535cdc104221f531b9921ad58a010dc3
[ "MIT" ]
1
2021-04-12T21:17:51.000Z
2021-04-12T21:17:51.000Z
# -*- coding: utf-8 -*- import cgi import sys import json from itertools import product import click from correctors import TYPO_CLASSES def make_app(corrector, format, limit=10): def application(env, start_response): method = env['REQUEST_METHOD'] if method == 'GET': qs = cgi.parse_...
33.212121
81
0.573449
f307c54a08f28127b097643c61d22e014f01b2df
1,083
py
Python
Algo-1/week6/4-Quadruplets-2/quadruplets_2.py
pepincho/Python101-and-Algo1-Courses
7cf38d26d5be5ffc1a37477ae6375a99906df9e2
[ "MIT" ]
2
2016-10-11T14:09:05.000Z
2017-01-20T19:30:34.000Z
Algo-1/week6/4-Quadruplets-2/quadruplets_2.py
pepincho/HackBulgaria
7cf38d26d5be5ffc1a37477ae6375a99906df9e2
[ "MIT" ]
null
null
null
Algo-1/week6/4-Quadruplets-2/quadruplets_2.py
pepincho/HackBulgaria
7cf38d26d5be5ffc1a37477ae6375a99906df9e2
[ "MIT" ]
null
null
null
class Quadruplets_2: # Returns the number of quadruplets that sum to zero. # a - [int] # b - [int] # c - [int] # d - [int] @staticmethod def zero_quadruplets_count(a, b, c, d): left_sums = {} right_sums = {} counter = 0 for elem1 in a: for elem2...
22.5625
71
0.467221
bb433ef93ad10413cbd9ed4bf96c3ca539e94782
564
py
Python
apps/officehours/models.py
ezl/hnofficehours
3729eca064998bd2d0a9ba1b4fe7e56ccc57324b
[ "MIT" ]
2
2015-11-05T13:47:44.000Z
2020-07-20T19:57:45.000Z
apps/officehours/models.py
ezl/hnofficehours
3729eca064998bd2d0a9ba1b4fe7e56ccc57324b
[ "MIT" ]
null
null
null
apps/officehours/models.py
ezl/hnofficehours
3729eca064998bd2d0a9ba1b4fe7e56ccc57324b
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from django.contrib.sites.models import Site import schedule.models from schedule.models import Calendar def create_global_calendar(sender=None, app=None, **kwargs): if not sender: return cal_name = getattr(settings, 'GLOBAL_CALENDAR_SLUG',...
37.6
82
0.723404
1e7cab34df8bb3fbab415842a9413eb5b70b7177
1,245
py
Python
user/migrations/0003_auto_20200720_1241.py
MohammadReza-Jafari/Gizshop_api
f2dc895a32d5964e7d4d27da5172f132b511b7ee
[ "MIT" ]
null
null
null
user/migrations/0003_auto_20200720_1241.py
MohammadReza-Jafari/Gizshop_api
f2dc895a32d5964e7d4d27da5172f132b511b7ee
[ "MIT" ]
5
2021-04-08T21:57:34.000Z
2022-02-10T12:43:03.000Z
user/migrations/0003_auto_20200720_1241.py
MohammadReza-Jafari/Gizshop_api
f2dc895a32d5964e7d4d27da5172f132b511b7ee
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-07-20 08:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0002_auto_20200720_1221'), ] operations = [ migrations.AlterField( model_name='customuser', name='address', ...
28.295455
62
0.563052
da3d3a7dda608ba3fc672d4d8264efb50c965d4f
5,330
py
Python
pulsar/client/job_directory.py
nuwang/pulsar
ccebb1563c8f8eaca0505ed168920d8121bd8a1e
[ "Apache-2.0" ]
null
null
null
pulsar/client/job_directory.py
nuwang/pulsar
ccebb1563c8f8eaca0505ed168920d8121bd8a1e
[ "Apache-2.0" ]
null
null
null
pulsar/client/job_directory.py
nuwang/pulsar
ccebb1563c8f8eaca0505ed168920d8121bd8a1e
[ "Apache-2.0" ]
null
null
null
""" """ import os.path import posixpath from collections import deque from logging import getLogger from galaxy.util import in_directory from .util import PathHelper log = getLogger(__name__) TYPES_TO_METHOD = dict( input="inputs_directory", unstructured="unstructured_files_directory", config="configs_...
36.758621
143
0.700188
4a0c35da91f6b94c7700c85ce9c497ac17fa1a2c
1,602
py
Python
build/_downloads/2e3e83652169c85c0c0972d072ffa8a2/two_layer_net_module.py
ScorpioDoctor/antares02
631b817d2e98f351d1173b620d15c4a5efed11da
[ "BSD-3-Clause" ]
null
null
null
build/_downloads/2e3e83652169c85c0c0972d072ffa8a2/two_layer_net_module.py
ScorpioDoctor/antares02
631b817d2e98f351d1173b620d15c4a5efed11da
[ "BSD-3-Clause" ]
null
null
null
build/_downloads/2e3e83652169c85c0c0972d072ffa8a2/two_layer_net_module.py
ScorpioDoctor/antares02
631b817d2e98f351d1173b620d15c4a5efed11da
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ PyTorch: 自定义 nn Modules -------------------------- 一个完全连接的ReLU网络,只有一个隐藏层,没有偏置,最小化欧氏误差训练从x预测y。 该实现将模型定义为自定义模块的子类。当你需要一个比已有的简单序列化模块更复杂的模型的时候, 你就需要用这种方式来定义你的模型。 请注意:这里有两个词,一个是 模型(model);另一个是 模块(module)。我们可以用模块的方式来定义模型 """ import torch class TwoLayerNet(torch.nn.Module): def __init__(se...
24.272727
56
0.653558
b5e860aaf87c8f9283e72f530c020920407da243
7,720
py
Python
gateware/spi_flash.py
paddatrapper/HDMI2USB-litex-firmware
6a0235abe0ce9195b1717742c13c0dc4d45c3f4d
[ "BSD-2-Clause" ]
4
2018-08-19T03:50:15.000Z
2020-07-24T23:08:48.000Z
gateware/spi_flash.py
bunnie/litex-buildenv
7a704884a7f139716880ea02fec9309e253878e4
[ "BSD-2-Clause" ]
null
null
null
gateware/spi_flash.py
bunnie/litex-buildenv
7a704884a7f139716880ea02fec9309e253878e4
[ "BSD-2-Clause" ]
null
null
null
from migen import * from migen.genlib.misc import timeline from litex.soc.interconnect import wishbone from litex.soc.interconnect.csr import AutoCSR, CSRStorage, CSRStatus _FAST_READ = 0x0b _DIOFR = 0xbb _QIOFR = 0xeb def _format_cmd(cmd, spi_width): """ `cmd` is the read instruction. Since everything is ...
29.465649
104
0.468005
60e917440fdc6ad8ae7907d2051dd98635c085ae
4,815
py
Python
notebooks/extract.py
kerteszg/EmbeddingNet
9bff4711116e6a7f5b95c9ff5a5fc5c350d1fd86
[ "MIT" ]
2
2020-06-04T10:25:22.000Z
2021-07-30T14:09:46.000Z
notebooks/extract.py
kerteszg/EmbeddingNet
9bff4711116e6a7f5b95c9ff5a5fc5c350d1fd86
[ "MIT" ]
null
null
null
notebooks/extract.py
kerteszg/EmbeddingNet
9bff4711116e6a7f5b95c9ff5a5fc5c350d1fd86
[ "MIT" ]
null
null
null
import cv2 import os class Observation: def __init__(self, line): lst = line.split(',') lst = [int(x) for x in lst] self.id = lst[0] self.frame = lst[1] self.UpperPointShort = [lst[2], lst[3]] self.UpperPointCorner = [lst[4], lst[5]] self.UpperPointLong = [ls...
37.913386
139
0.541641
a8de20a81ac74b49cdb0b0ef75c4361495ccc13f
1,338
py
Python
codes/string/karp_rabin_v1.py
NilLau/NilLau.github.io
e55768be0be4d6549b24c702554c11e64958d4c7
[ "MIT" ]
null
null
null
codes/string/karp_rabin_v1.py
NilLau/NilLau.github.io
e55768be0be4d6549b24c702554c11e64958d4c7
[ "MIT" ]
6
2019-06-20T10:05:10.000Z
2019-07-08T04:53:01.000Z
codes/string/karp_rabin_v1.py
117ami/117ami.github.io
e55768be0be4d6549b24c702554c11e64958d4c7
[ "MIT" ]
null
null
null
import string def rabin_karp(s: string, pat: string): '''Implementation of Rabin-Karp Algorithm to find all occurrence of pat in s. ''' m, n = len(s), len(pat) h_pat = 0 # Hash value for pat h_sub = 0 # Hash value for substring (with length n) of s prime_modulus = 101 # A prime number s...
31.857143
78
0.59716
af2e5f02bebdb2950b12825dd5eb23e73862ceb9
532
py
Python
tests/fields/test_migrations_encrypted_default/0002_integerencryptedmodel_field_2.py
hishamkaram/django-cryptography
d3b5737dc562c46a475f12bda828e1c724b56633
[ "BSD-3-Clause" ]
null
null
null
tests/fields/test_migrations_encrypted_default/0002_integerencryptedmodel_field_2.py
hishamkaram/django-cryptography
d3b5737dc562c46a475f12bda828e1c724b56633
[ "BSD-3-Clause" ]
null
null
null
tests/fields/test_migrations_encrypted_default/0002_integerencryptedmodel_field_2.py
hishamkaram/django-cryptography
d3b5737dc562c46a475f12bda828e1c724b56633
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django_cryptography.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fields', '0001_initial'), ] operations = [ migrations.AddField( model_name='in...
24.181818
101
0.654135
0de89882c51248aedeab4445d17ab7655ac10307
23,745
py
Python
main.py
sherif-zeet/yt5
89c008c0d5be6eb87f2f472a245d53b38980437a
[ "Apache-2.0" ]
null
null
null
main.py
sherif-zeet/yt5
89c008c0d5be6eb87f2f472a245d53b38980437a
[ "Apache-2.0" ]
null
null
null
main.py
sherif-zeet/yt5
89c008c0d5be6eb87f2f472a245d53b38980437a
[ "Apache-2.0" ]
1
2021-06-08T13:15:31.000Z
2021-06-08T13:15:31.000Z
from flask import Flask, request, send_file from pytube import YouTube import logging import sys """ Flask YouTube Video Downloader - Python Marketer https://pythonmarketer.com/2020/10/07/making-a-youtube-video-downloader-with-pythons-flask-and-pytube3-libraries/ """ logging.basicConfig(stream=sys.stderr, lev...
58.485222
1,486
0.680017
4818bdb7fa22ed847a65aa9c1e214311fff4ea58
5,960
py
Python
DominantSparseEigenAD/CG.py
buwantaiji/DominantSparseEigenAD
36d534b6713ba256309b07116ebc542bee01cd51
[ "Apache-2.0" ]
23
2019-10-29T03:35:18.000Z
2022-02-11T16:38:24.000Z
DominantSparseEigenAD/CG.py
buwantaiji/DominantSparseEigenAD
36d534b6713ba256309b07116ebc542bee01cd51
[ "Apache-2.0" ]
null
null
null
DominantSparseEigenAD/CG.py
buwantaiji/DominantSparseEigenAD
36d534b6713ba256309b07116ebc542bee01cd51
[ "Apache-2.0" ]
6
2019-11-06T09:09:45.000Z
2022-02-09T06:24:15.000Z
import torch def CG_torch(A, b, initialx, sparse=False): """ Compute the unique solution x of the system of linear equation Ax = b, using Conjugate Gradient(CG) method and implemented by Pytorch. Input: `A`: The square matrix A, which is assumed to be real symmetric and posit...
42.269504
92
0.602852
8345008d0529dad735c9093b79a4258545bf7adf
4,147
py
Python
bot/views.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
2
2020-12-31T06:21:54.000Z
2021-11-15T15:35:45.000Z
bot/views.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
null
null
null
bot/views.py
ujlbu4/vas3k.club
1ec907cf7e5ae3a74059cde8729ca0b3e2d55a3e
[ "MIT" ]
null
null
null
import hashlib import hmac import json import logging from django.conf import settings from django.core.cache import cache from django.http import HttpResponse, Http404 from django.shortcuts import render from telegram import Update from auth.helpers import auth_required from bot.bot import bot from bot.handlers.mode...
32.912698
98
0.648421
c16483b5705e000692b77e94b67bb4bcb6012113
998
py
Python
src/izi/apps/promotions/app.py
izi-core/izi-core
21176be2d41f0cf54ca954f294209c585f643dba
[ "BSD-3-Clause" ]
null
null
null
src/izi/apps/promotions/app.py
izi-core/izi-core
21176be2d41f0cf54ca954f294209c585f643dba
[ "BSD-3-Clause" ]
null
null
null
src/izi/apps/promotions/app.py
izi-core/izi-core
21176be2d41f0cf54ca954f294209c585f643dba
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from izi.core.application import Application from izi.core.loading import get_class, get_model KeywordPromotion = get_model('promotions', 'KeywordPromotion') PagePromotion = get_model('promotions', 'PagePromotion') class PromotionsApplication(Application): name = 'promotions' ...
32.193548
72
0.667335
4e37880211a73d771c180ab2b1b7332b962585ac
184
py
Python
src/spaceone/secret/connector/__init__.py
ku524/secret
c5dad49f40ab1cbbaa0b8f01222de10ae73d1fb1
[ "Apache-2.0" ]
null
null
null
src/spaceone/secret/connector/__init__.py
ku524/secret
c5dad49f40ab1cbbaa0b8f01222de10ae73d1fb1
[ "Apache-2.0" ]
null
null
null
src/spaceone/secret/connector/__init__.py
ku524/secret
c5dad49f40ab1cbbaa0b8f01222de10ae73d1fb1
[ "Apache-2.0" ]
null
null
null
from spaceone.secret.connector.aws_secret_manager_connector import * from spaceone.secret.connector.vault_connector import * from spaceone.secret.connector.identity_connector import *
46
68
0.869565
e716854030dbc0f82d6a31e5382aa06affcbe378
188
py
Python
ecliptic/studies/forms.py
ryanroser/ecliptic
1734624af129809416b95331cd9d5d7d892e3d1c
[ "MIT" ]
1
2016-07-24T08:20:48.000Z
2016-07-24T08:20:48.000Z
ecliptic/studies/forms.py
ryanroser/ecliptic
1734624af129809416b95331cd9d5d7d892e3d1c
[ "MIT" ]
null
null
null
ecliptic/studies/forms.py
ryanroser/ecliptic
1734624af129809416b95331cd9d5d7d892e3d1c
[ "MIT" ]
null
null
null
from django import forms from studies.models import Study class StudyForm(forms.ModelForm): class Meta: model = Study fields = ['name', 'hypothesis', 'conclusion',]
23.5
54
0.670213
749bef0e9146d365e9f7f7114ce92a631ffed7bb
27,782
py
Python
cinder/tests/unit/api/v3/test_group_types.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
3
2015-04-02T21:44:36.000Z
2016-04-29T21:19:04.000Z
cinder/tests/unit/api/v3/test_group_types.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
3
2016-04-29T21:45:26.000Z
2016-05-04T19:41:23.000Z
cinder/tests/unit/api/v3/test_group_types.py
lightsey/cinder
e03d68e42e57a63f8d0f3e177fb4287290612b24
[ "Apache-2.0" ]
4
2016-01-27T00:25:52.000Z
2021-03-25T19:54:08.000Z
# Copyright 2016 EMC 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 ...
40.73607
78
0.570153
9313d99fe6aba852c87659d12267f433f217ea21
12,398
py
Python
tools/perf/metrics/timeline.py
anirudhSK/chromium
a8f23c87e656ab9ba49de9ccccbc53f614cdcb41
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/metrics/timeline.py
anirudhSK/chromium
a8f23c87e656ab9ba49de9ccccbc53f614cdcb41
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/metrics/timeline.py
anirudhSK/chromium
a8f23c87e656ab9ba49de9ccccbc53f614cdcb41
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-04-17T13:19:09.000Z
2021-10-21T12:55:15.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import itertools from metrics import Metric from telemetry.core.timeline.model import TimelineModel from telemetry.core.timeline import bo...
35.626437
80
0.710437
f0f5bd7c3e2b2b00aa2555eecd0cbe55dad993ee
170,499
py
Python
pandas/core/series.py
mntss/pandas
fc6b441ba527ca32b460ae4f4f5a6802335497f9
[ "BSD-3-Clause" ]
2
2021-12-28T09:06:32.000Z
2022-01-28T06:47:12.000Z
pandas/core/series.py
soumyas567/pandas
ccb36cc8f1eeed53dea321ee7381602a6957de54
[ "BSD-3-Clause" ]
null
null
null
pandas/core/series.py
soumyas567/pandas
ccb36cc8f1eeed53dea321ee7381602a6957de54
[ "BSD-3-Clause" ]
1
2021-02-23T20:52:58.000Z
2021-02-23T20:52:58.000Z
""" Data structure for 1-dimensional cross-sectional and time series data """ from __future__ import annotations from textwrap import dedent from typing import ( IO, TYPE_CHECKING, Any, Callable, Hashable, Iterable, Literal, Sequence, Union, cast, overload, ) import warnings...
30.665288
88
0.53242
d0a01b86f1f05022aea614bb4f8412f3ff55628e
739
py
Python
Python/creational_patterns/abstract_factory/list_factory/list_factory.py
ploukareas/Design-Patterns
8effde38d73ae9058c3028c97ef395644a90d55b
[ "BSD-3-Clause", "MIT" ]
28
2018-09-28T07:45:35.000Z
2022-02-12T12:25:05.000Z
Python/creational_patterns/abstract_factory/list_factory/list_factory.py
ploukareas/Design-Patterns
8effde38d73ae9058c3028c97ef395644a90d55b
[ "BSD-3-Clause", "MIT" ]
null
null
null
Python/creational_patterns/abstract_factory/list_factory/list_factory.py
ploukareas/Design-Patterns
8effde38d73ae9058c3028c97ef395644a90d55b
[ "BSD-3-Clause", "MIT" ]
5
2021-05-10T23:19:55.000Z
2022-03-04T20:26:35.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ˅ from creational_patterns.abstract_factory.factory.factory import Factory from creational_patterns.abstract_factory.list_factory.list_data import ListData from creational_patterns.abstract_factory.list_factory.list_link import ListLink from creational_patterns.abstract_f...
18.475
80
0.644114
067fe7cc7eb3536d42b3641880bdaeaa3f6d04d1
5,438
py
Python
src/config/utils/provision_forwarding_mode.py
jnpr-pranav/contrail-controller
428eee37c28c31830fd764315794e1a6e52720c1
[ "Apache-2.0" ]
37
2020-09-21T10:42:26.000Z
2022-01-09T10:16:40.000Z
src/config/utils/provision_forwarding_mode.py
jnpr-pranav/contrail-controller
428eee37c28c31830fd764315794e1a6e52720c1
[ "Apache-2.0" ]
null
null
null
src/config/utils/provision_forwarding_mode.py
jnpr-pranav/contrail-controller
428eee37c28c31830fd764315794e1a6e52720c1
[ "Apache-2.0" ]
21
2020-08-25T12:48:42.000Z
2022-03-22T04:32:18.000Z
#!/usr/bin/python # # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import object import sys import argparse import configparser from vnc_api.vnc_api import * from vnc_admin_ap...
37.246575
101
0.589187
b81701b1193d716f953e7edfe8d856bd136d4c7d
7,523
py
Python
5-1-10/InputText.py
QueenChristina/Calculus-Zombies
81611015ba505bff6679d029280854e3934fad15
[ "MIT" ]
3
2019-08-30T02:53:34.000Z
2022-01-03T07:05:39.000Z
5-1-10/InputText.py
QueenChristina/Calculus-Zombies
81611015ba505bff6679d029280854e3934fad15
[ "MIT" ]
null
null
null
5-1-10/InputText.py
QueenChristina/Calculus-Zombies
81611015ba505bff6679d029280854e3934fad15
[ "MIT" ]
null
null
null
""" Copyright 2017, Silas Gyger, silasgyger@gmail.com, All rights reserved. Borrowed from https://github.com/Nearoo/pygame-text-input under the MIT license. """ import os.path import pygame, sys import pygame.locals as pl from Files import Var pygame.font.init() class TextInput: """ This ...
40.229947
107
0.580752
ea497a584fb9d46a73e6e039c1e8b561461f39ba
2,233
py
Python
sendowl_python/sendowl.py
aaron235/sendowl-python
a519431d88359f2147dc5288cf78ab579fc4a5d7
[ "MIT" ]
null
null
null
sendowl_python/sendowl.py
aaron235/sendowl-python
a519431d88359f2147dc5288cf78ab579fc4a5d7
[ "MIT" ]
null
null
null
sendowl_python/sendowl.py
aaron235/sendowl-python
a519431d88359f2147dc5288cf78ab579fc4a5d7
[ "MIT" ]
null
null
null
import requests import json from typing import List, Dict, Union class SendOwl: def __init__(self, key: str = None, secret: str = None): self._key = key self._secret = secret self._baseUrl = f"https://{self._key}:{self._secret}@www.sendowl.com/api/v1/" def _apiRequest(self, method: str, path: str, params: D...
35.444444
105
0.699955
9f03c13f8b87cfd822a8600282299a86e0a41926
26,755
py
Python
nova/tests/test_quantum.py
bopopescu/openstack-12
2c7e0d1e63cae7aaa38095439843c9a2abb0382b
[ "Apache-2.0" ]
null
null
null
nova/tests/test_quantum.py
bopopescu/openstack-12
2c7e0d1e63cae7aaa38095439843c9a2abb0382b
[ "Apache-2.0" ]
null
null
null
nova/tests/test_quantum.py
bopopescu/openstack-12
2c7e0d1e63cae7aaa38095439843c9a2abb0382b
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011,2012 Nicira, 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/...
41.28858
79
0.590768
4609f9fa98117f60d60b540f91bc187a3d28419b
28,739
py
Python
gridpath/project/operations/fuel_burn.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
null
null
null
gridpath/project/operations/fuel_burn.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
null
null
null
gridpath/project/operations/fuel_burn.py
souissim/gridpath
4eeca2be24b485edc56026e38cfda83f4a6b27ea
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2020 Blue Marble Analytics 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 ag...
39.314637
91
0.520408
5bfaac9e8ceda51407a658066fddd665d23d943d
2,689
py
Python
quaternion/challenge/challenge.py
assert0/hackasat-qualifier-2021
ffa17fc3c3f167c2a81fd3c12e43af9aacb2e95c
[ "MIT" ]
39
2021-07-09T09:50:15.000Z
2022-02-25T19:55:50.000Z
quaternion/challenge/challenge.py
assert0/hackasat-qualifier-2021
ffa17fc3c3f167c2a81fd3c12e43af9aacb2e95c
[ "MIT" ]
null
null
null
quaternion/challenge/challenge.py
assert0/hackasat-qualifier-2021
ffa17fc3c3f167c2a81fd3c12e43af9aacb2e95c
[ "MIT" ]
6
2021-07-21T07:58:02.000Z
2022-03-29T02:57:10.000Z
# Quaternion Challenge import os, sys from numpy import dot, cross, array from numpy.linalg import norm from time import sleep from timeout import timeout, TimeoutError time = int(os.getenv("TIMEOUT",90)) def render_intro(vec): art = [ " QUATERNION ", " CHALLA...
24.669725
134
0.401636
3155aa4c4fc7652c0cee1f3373c05b0d2e202cf9
9,756
py
Python
tests/test_execute.py
adriangb/di
f277bb7189c8e8bde41170afb3181e6600b06be8
[ "MIT" ]
57
2021-09-28T00:48:08.000Z
2022-03-16T16:50:39.000Z
tests/test_execute.py
adriangb/di
f277bb7189c8e8bde41170afb3181e6600b06be8
[ "MIT" ]
59
2021-09-25T00:06:22.000Z
2022-03-31T15:49:36.000Z
tests/test_execute.py
adriangb/di
f277bb7189c8e8bde41170afb3181e6600b06be8
[ "MIT" ]
3
2021-12-31T10:03:03.000Z
2021-12-31T16:07:54.000Z
import contextvars import functools import sys import threading import time from contextlib import contextmanager from typing import Any, AsyncGenerator, Generator, List if sys.version_info < (3, 8): from typing_extensions import Literal else: from typing import Literal import anyio import pytest from di.con...
27.175487
89
0.635301
56ba83affa527e62cf9c295a7d3ff5af9f3ef93c
9,235
py
Python
freeclimb/models/queue_list.py
FreeClimbAPI/python-sdk
1ec89eddc0069a39989579552b979a9d21418117
[ "MIT" ]
null
null
null
freeclimb/models/queue_list.py
FreeClimbAPI/python-sdk
1ec89eddc0069a39989579552b979a9d21418117
[ "MIT" ]
6
2020-03-03T20:14:26.000Z
2021-12-06T22:11:15.000Z
freeclimb/models/queue_list.py
FreeClimbAPI/python-sdk
1ec89eddc0069a39989579552b979a9d21418117
[ "MIT" ]
null
null
null
# coding: utf-8 """ FreeClimb API FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site teleph...
28.415385
667
0.580834
d5e99239a69e9869c26640e141443017c147489e
303
py
Python
data/multilingual/Latn.KEA/Sans_12/pdf_to_json_test_Latn.KEA_Sans_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.KEA/Sans_12/pdf_to_json_test_Latn.KEA_Sans_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.KEA/Sans_12/pdf_to_json_test_Latn.KEA_Sans_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.KEA/Sans_12/udhr_Latn.KEA_Sans_12.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.3
73
0.811881
cf07f5987247f1c15224452d25f2033768decd84
1,165
py
Python
idaes/power_generation/unit_models/steamheater.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/power_generation/unit_models/steamheater.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/power_generation/unit_models/steamheater.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
1
2022-03-17T11:08:43.000Z
2022-03-17T11:08:43.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
48.541667
81
0.64721
1a726d227e55a1fe5903ccaf57af778322750713
29,686
py
Python
benchmarks/ltl_timed_automata/train/f3/train_gate_0024.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/ltl_timed_automata/train/f3/train_gate_0024.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/ltl_timed_automata/train/f3/train_gate_0024.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from collections import Iterable from itertools import chain from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_rational_type, msat_get_integer_type, \ msat_get_bool_type from mathsat import msat_make_and, ms...
43.527859
81
0.497541
cf29bcb55657ad0e6c4f4696b8c6f3b675a75be8
928
py
Python
tests/integration/cartography/intel/aws/test_s3.py
eRaMvn/cartography
807e9216700d32f23739e3b5d227b32fd81aee19
[ "Apache-2.0" ]
1
2022-03-31T03:24:37.000Z
2022-03-31T03:24:37.000Z
tests/integration/cartography/intel/aws/test_s3.py
srics/cartography
19a06766e304d657d956246179a2bb01a6d9aef6
[ "Apache-2.0" ]
1
2021-02-23T18:08:04.000Z
2021-03-31T08:17:23.000Z
tests/integration/cartography/intel/aws/test_s3.py
srics/cartography
19a06766e304d657d956246179a2bb01a6d9aef6
[ "Apache-2.0" ]
1
2021-07-12T16:05:55.000Z
2021-07-12T16:05:55.000Z
import cartography.intel.aws.s3 import tests.data.aws.s3 TEST_ACCOUNT_ID = '000000000000' TEST_REGION = 'us-east-1' TEST_UPDATE_TAG = 123456789 def test_load_s3_buckets(neo4j_session, *args): """ Ensure that expected buckets get loaded with their key fields. """ data = tests.data.aws.s3.LIST_BUCKETS...
20.622222
99
0.529095
5f8b970b038ea6d3a3c9f176aea0e8208424fc8d
103,485
py
Python
jax/lax.py
pcmoritz/jax
d065f8630ccd40a6369e6ff81325fb9db0195f14
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/lax.py
pcmoritz/jax
d065f8630ccd40a6369e6ff81325fb9db0195f14
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/lax.py
pcmoritz/jax
d065f8630ccd40a6369e6ff81325fb9db0195f14
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
40.935522
92
0.71851
112b01f069ed1a5f515e8ec07a81dc18195e2583
4,082
py
Python
huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_databases_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_databases_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_postgresql_databases_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListPostgresqlDatabasesResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
28.746479
84
0.593092
c5a0b2c9d857d12cf58dee276eb040622c15c800
2,042
py
Python
envs/classic_control.py
bvanberl/cs885-project
486f549b354c58a60d45204b71ebd6a3d6f17de9
[ "MIT" ]
null
null
null
envs/classic_control.py
bvanberl/cs885-project
486f549b354c58a60d45204b71ebd6a3d6f17de9
[ "MIT" ]
null
null
null
envs/classic_control.py
bvanberl/cs885-project
486f549b354c58a60d45204b71ebd6a3d6f17de9
[ "MIT" ]
null
null
null
import gym import cv2 from gym import wrappers import numpy as np class ClassicControlEnv(gym.Env): def __init__(self, env_name, seed=0, max_steps=1000, n_frames=1, action_repeat=1, image_size=(84,84)): self._env = gym.make(env_name) self._env.seed(seed) self.max_steps = max_step...
35.206897
107
0.600881
79b29106836cf3e6a4c1b6805272187b74383f71
5,253
py
Python
SignalExtractor/ModifiedSignal.py
Janga-Lab/Penguin-1
f6162be3549c470416da0fab590ae7d04c74bfa5
[ "MIT" ]
1
2021-04-25T19:37:05.000Z
2021-04-25T19:37:05.000Z
SignalExtractor/ModifiedSignal.py
Janga-Lab/Penguin-1
f6162be3549c470416da0fab590ae7d04c74bfa5
[ "MIT" ]
9
2021-06-19T08:46:23.000Z
2021-08-28T19:01:20.000Z
SignalExtractor/ModifiedSignal.py
Janga-Lab/Penguin-1
f6162be3549c470416da0fab590ae7d04c74bfa5
[ "MIT" ]
1
2021-03-04T18:19:45.000Z
2021-03-04T18:19:45.000Z
#!/usr/bin/env python import getopt import argparse import sys, getopt import h5py, numpy as np, os, sys import itertools # import matplotlib.pyplot as plt import SignalExtractor.eventHelper as eH from SignalExtractor.eventHelper import f_events # ########################################### file control ########...
40.72093
119
0.4091
63746e7d3358ac3ff6b0e748c82d68d476e540c9
2,495
py
Python
vkwave/api/methods/stats.py
krasnovmv/vkwave
e0db86cc16f97797765aadfb811ec87ff7945b1f
[ "MIT" ]
null
null
null
vkwave/api/methods/stats.py
krasnovmv/vkwave
e0db86cc16f97797765aadfb811ec87ff7945b1f
[ "MIT" ]
null
null
null
vkwave/api/methods/stats.py
krasnovmv/vkwave
e0db86cc16f97797765aadfb811ec87ff7945b1f
[ "MIT" ]
null
null
null
from vkwave.types.responses import * from ._category import Category from ._utils import get_params class Stats(Category): async def get( self, return_raw_response: bool = False, group_id: typing.Optional[int] = None, app_id: typing.Optional[int] = None, timestamp_from: typ...
30.426829
74
0.612425
be1d8783a1a82eadd2be0fefd039c5f8e9bbd33f
1,868
py
Python
flightservices/migrations/0001_initial.py
ashutoshacharya24/FlightReservation
b4cb991ba07fb3537b54b56e697ccc22b0f98c45
[ "MIT" ]
null
null
null
flightservices/migrations/0001_initial.py
ashutoshacharya24/FlightReservation
b4cb991ba07fb3537b54b56e697ccc22b0f98c45
[ "MIT" ]
null
null
null
flightservices/migrations/0001_initial.py
ashutoshacharya24/FlightReservation
b4cb991ba07fb3537b54b56e697ccc22b0f98c45
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-10-31 11:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Flight', fields=[ ...
39.744681
128
0.581906
4f55c3956f3ddbb5daa3ff03c386ddfacbc522c5
1,701
py
Python
app/core/migrations/0001_initial.py
SachinI001/recipe-app-api
d18331b4150f7f2958e75a9e6d97e079f6bdc2cc
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
SachinI001/recipe-app-api
d18331b4150f7f2958e75a9e6d97e079f6bdc2cc
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
SachinI001/recipe-app-api
d18331b4150f7f2958e75a9e6d97e079f6bdc2cc
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2021-12-30 14:41 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', f...
50.029412
266
0.637272
54e3b717b771ad42a25b162c422d29ae5bb70bc4
3,410
py
Python
pyquest/benchmarks.py
hillmich/quantum-benchmarks-1
e7ab97e004f638d8681b5ee9cbbe662d64bc3378
[ "MIT" ]
79
2019-07-03T01:54:30.000Z
2021-04-19T12:28:08.000Z
pyquest/benchmarks.py
hillmich/quantum-benchmarks-1
e7ab97e004f638d8681b5ee9cbbe662d64bc3378
[ "MIT" ]
28
2019-07-16T21:03:49.000Z
2021-02-14T14:59:45.000Z
pyquest/benchmarks.py
hillmich/quantum-benchmarks-1
e7ab97e004f638d8681b5ee9cbbe662d64bc3378
[ "MIT" ]
21
2019-07-04T05:21:53.000Z
2021-02-22T18:59:47.000Z
import numpy as np from pyquest_cffi import quest import pytest env = quest.createQuESTEnv() nqubits_list = range(4,26) def entangler(circuit, qubits, pairs): for a, b in pairs: circuit.cx(qubits[a], qubits[b]) return circuit def first_rotation(qubits, nqubits): for k in range(nqubits): q...
31.869159
76
0.682698
4d2e66ab5b9ff8e9d2e2f8ccdf8913a21853d61b
7,910
py
Python
exchange_server/tests/common.py
brentm5/integrations-core
5cac8788c95d8820435ef9c5d32d6a5463cf491d
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
exchange_server/tests/common.py
brentm5/integrations-core
5cac8788c95d8820435ef9c5d32d6a5463cf491d
[ "BSD-3-Clause" ]
null
null
null
exchange_server/tests/common.py
brentm5/integrations-core
5cac8788c95d8820435ef9c5d32d6a5463cf491d
[ "BSD-3-Clause" ]
1
2021-06-21T19:21:51.000Z
2021-06-21T19:21:51.000Z
# (C) Datadog, Inc. 2010-2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) MINIMAL_INSTANCE = { 'host': '.', } CHECK_NAME = 'exchange_server' DATABASE_INSTANCES = [ 'Information Store/_Total', 'Information Store - Mailbox Database 1266275882/_Total', 'edgetransport/_Tota...
34.541485
115
0.739317
d049e85105f525dc6b01e2a9f5148b01fd26c3fe
7,943
py
Python
kopf/reactor/causation.py
MarkusH/kopf
caaf399c46af0fcb10730eec2db303484d31b38b
[ "MIT" ]
1,038
2019-03-26T16:32:56.000Z
2022-03-27T09:15:03.000Z
kopf/reactor/causation.py
MarkusH/kopf
caaf399c46af0fcb10730eec2db303484d31b38b
[ "MIT" ]
393
2019-03-26T13:43:42.000Z
2020-09-14T13:18:14.000Z
kopf/reactor/causation.py
MarkusH/kopf
caaf399c46af0fcb10730eec2db303484d31b38b
[ "MIT" ]
116
2019-03-31T23:01:09.000Z
2022-03-18T16:44:58.000Z
""" Detection of the event causes, based on the resource state. The low-level watch-events are highly limited in information on what caused them, and they only notify that the object was changed somehow: * ``ADDED`` for the newly created objects (or for the first-time listing). * ``MODIFIED`` for the changes of any f...
35.779279
100
0.724286
7c254b41be74cb251fbf9f724a7a0b874ee40321
1,352
py
Python
sandbox/src1/TCSE3-3rd-examples/src/py/regex/swap3.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
5
2016-05-28T14:12:28.000Z
2021-04-22T10:23:12.000Z
sandbox/src1/TCSE3-3rd-examples/src/py/regex/swap3.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
null
null
null
sandbox/src1/TCSE3-3rd-examples/src/py/regex/swap3.py
sniemi/SamPy
e048756feca67197cf5f995afd7d75d8286e017b
[ "BSD-2-Clause" ]
2
2015-07-13T10:04:10.000Z
2021-04-22T10:23:23.000Z
#!/usr/bin/env python import re, glob, string # as swap1.py except that we here use a regex with comments and compile it: arg = r'[^,]+' call = re.compile(r""" (?P<start> # preserve start of function string superLibFunc # name of function to match \s* # optional whitespace ...
40.969697
75
0.527367
44bc6a45f1b18c3ca564931bc13a5b1c60d0729c
606
py
Python
leetcode/404.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
1
2019-08-28T23:15:25.000Z
2019-08-28T23:15:25.000Z
leetcode/404.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
leetcode/404.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
""" link: https://leetcode.com/problems/sum-of-left-leaves problem: 求树的所有左叶子的和。 solution: 递归。 """ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def su...
24.24
85
0.613861
b8098e4639a3270505b13b79a38370689e5f1e20
1,582
py
Python
tools/util_test.py
riginding/deno
08303b78bf487fbcd10c1450288b2cc51ab119b7
[ "MIT" ]
1
2020-08-17T07:01:51.000Z
2020-08-17T07:01:51.000Z
tools/util_test.py
riginding/deno
08303b78bf487fbcd10c1450288b2cc51ab119b7
[ "MIT" ]
null
null
null
tools/util_test.py
riginding/deno
08303b78bf487fbcd10c1450288b2cc51ab119b7
[ "MIT" ]
null
null
null
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import os from test_util import DenoTestCase, run_tests from util import (parse_exit_code, shell_quote_win, parse_wrk_output, root_path) class TestUtil(DenoTestCase): def test_parse_exit_code(self): assert parse_e...
36.790698
73
0.634008
913999083229481dd648d31306ce85f216ee6eb9
12,363
py
Python
backdoor/backdoor-svhn/curves.py
Bhaskers-Blu-Org1/model-sanitization
1eff7e9f35e4fd194ffc83a55e4f6688ca9bb5c3
[ "Apache-2.0" ]
15
2020-05-04T15:28:36.000Z
2021-12-31T02:34:12.000Z
backdoor/backdoor-svhn/curves.py
Bhaskers-Blu-Org1/model-sanitization
1eff7e9f35e4fd194ffc83a55e4f6688ca9bb5c3
[ "Apache-2.0" ]
1
2020-05-14T04:56:22.000Z
2020-05-27T14:10:12.000Z
error-injection/injection_cifar/curves.py
IBM/model-sanitization
1eff7e9f35e4fd194ffc83a55e4f6688ca9bb5c3
[ "Apache-2.0" ]
4
2020-06-29T15:18:57.000Z
2022-03-27T17:04:07.000Z
import numpy as np import math import torch import torch.nn.functional as F from torch.nn import Module, Parameter from torch.nn.modules.utils import _pair from scipy.special import binom class Bezier(Module): def __init__(self, num_bends): super(Bezier, self).__init__() self.register_buffer( ...
38.514019
100
0.603333
ddb0cf854187d8f3dd0e62860cdc375315d49dc9
202
py
Python
app/compile_translations.py
YuliyaSinkevich/fastogt_site_new
9e4c98a24d1d7594a302dc58bbb862a1e6b204b7
[ "BSD-3-Clause" ]
null
null
null
app/compile_translations.py
YuliyaSinkevich/fastogt_site_new
9e4c98a24d1d7594a302dc58bbb862a1e6b204b7
[ "BSD-3-Clause" ]
1
2019-01-03T16:35:01.000Z
2019-01-03T16:35:01.000Z
app/compile_translations.py
YuliyaSinkevich/fastogt_site_new
9e4c98a24d1d7594a302dc58bbb862a1e6b204b7
[ "BSD-3-Clause" ]
5
2018-12-04T17:56:37.000Z
2020-03-06T18:04:55.000Z
#!/usr/bin/env python3 import constants as constants import subprocess # pybabel compile -d translations if __name__ == '__main__': subprocess.call(['pybabel', 'compile', '-d', 'translations'])
18.363636
65
0.712871
2b3f6555f4ebed61fb8fc4b91090508677700fb0
23,310
py
Python
plugins/php/index.py
basoro/SLEMP
ad3865e441cb5a872d01348749e79bb515152055
[ "Apache-2.0" ]
null
null
null
plugins/php/index.py
basoro/SLEMP
ad3865e441cb5a872d01348749e79bb515152055
[ "Apache-2.0" ]
null
null
null
plugins/php/index.py
basoro/SLEMP
ad3865e441cb5a872d01348749e79bb515152055
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 import sys import io import os import time import re import json import shutil reload(sys) sys.setdefaultencoding('utf8') sys.path.append(os.getcwd() + "/class/core") sys.path.append("/usr/local/lib/python2.7/site-packages") import slemp app_debug = False if slemp.isAppleSystem(): app_debug = Tr...
32.420028
172
0.59172
8a2512f83aa697e3d419712733c2826c3672b075
2,255
py
Python
tests/test_hbridge.py
duyenle1312/Salvius
27d9e72dfbdaf1bc87f75dece2aacaf641468647
[ "MIT" ]
74
2015-07-11T21:13:27.000Z
2021-09-26T01:22:05.000Z
tests/test_hbridge.py
devjewel01/Salvius
27d9e72dfbdaf1bc87f75dece2aacaf641468647
[ "MIT" ]
18
2015-09-27T18:12:05.000Z
2020-05-15T21:08:35.000Z
tests/test_hbridge.py
devjewel01/Salvius
27d9e72dfbdaf1bc87f75dece2aacaf641468647
[ "MIT" ]
26
2015-08-06T00:02:47.000Z
2021-07-23T04:33:39.000Z
from unittest import TestCase from zorg.test import MockAdaptor from salvius.hbridge import RelayHBridge, ServoHBridge class HBridgeTestCase(TestCase): def setUp(self): super(HBridgeTestCase, self).setUp() self.connection = MockAdaptor({ 'methods': ['servo_write', 'digital_write'] ...
30.066667
65
0.664745
13a8e92f7421fd4eea77f2ac3b1c71dee67066a9
1,637
py
Python
src/bitcoin_acks/migrations/versions/ac1f880ead3a_add_high_priority_fields.py
benthecarman/wasabi-acks
e9663d845e8f63f06e5e49737966fafa5e8a1eb4
[ "MIT" ]
43
2018-04-29T03:30:18.000Z
2021-02-11T05:24:49.000Z
src/bitcoin_acks/migrations/versions/ac1f880ead3a_add_high_priority_fields.py
benthecarman/wasabi-acks
e9663d845e8f63f06e5e49737966fafa5e8a1eb4
[ "MIT" ]
46
2018-05-02T01:27:34.000Z
2022-03-26T13:29:55.000Z
src/bitcoin_acks/migrations/versions/ac1f880ead3a_add_high_priority_fields.py
benthecarman/wasabi-acks
e9663d845e8f63f06e5e49737966fafa5e8a1eb4
[ "MIT" ]
11
2018-05-15T23:47:47.000Z
2021-01-27T14:57:54.000Z
"""add high priority fields Revision ID: ac1f880ead3a Revises: 7bb40ce4cd80 Create Date: 2019-06-11 20:16:46.699366 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'ac1f880ead3a' down_revision = '7bb40ce4cd80' branch_labels = None depends_on = None def upgrad...
36.377778
118
0.717166
a30a81664b095d89a9bcae0c1456883d5e0516c6
546
py
Python
.history/postImages/index_20201006184017.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
2
2020-10-21T22:14:15.000Z
2020-10-21T22:14:16.000Z
.history/postImages/index_20201006184017.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
.history/postImages/index_20201006184017.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
import csv import requests df = open("bridgeData3.csv",'r').readlines() # url = https://b2ptc.herokuapp.com/bridges finalCsv = df[1:] obj - {} for i in finalCsv: obj[i[0]] = {projectCode:i[1],before_image:} print(finalCsv) # for i in finalCsv: # x = i.split(',') # requests.put(url+x[0],data={before:x[2...
32.117647
97
0.679487
3c237374920407f2103ab40169b97633a0b41364
3,273
py
Python
test/srcchange.py
kurazsi/scons
348f8d81b6aa49d8798eac268700806d121c5f4f
[ "MIT" ]
1
2020-03-21T05:24:47.000Z
2020-03-21T05:24:47.000Z
test/srcchange.py
kurazsi/scons
348f8d81b6aa49d8798eac268700806d121c5f4f
[ "MIT" ]
null
null
null
test/srcchange.py
kurazsi/scons
348f8d81b6aa49d8798eac268700806d121c5f4f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
27.974359
77
0.721051
a1f886dfcc028820a3a57c16c5976e23eb147fbf
11,491
py
Python
tests/scripts/thread-cert/border_routing/test_dnssd_server.py
lab11/openthread
3bb025a7924b8f3281445f3c6c500230f0d41784
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/border_routing/test_dnssd_server.py
lab11/openthread
3bb025a7924b8f3281445f3c6c500230f0d41784
[ "BSD-3-Clause" ]
5
2020-08-31T04:22:48.000Z
2021-01-26T11:54:29.000Z
tests/scripts/thread-cert/border_routing/test_dnssd_server.py
lab11/openthread
3bb025a7924b8f3281445f3c6c500230f0d41784
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2021, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
40.748227
113
0.605604
27c74f26ed9b06ca9e4dc6f6b59dd58490f44126
545
py
Python
setup.py
baidalala/PAV-Healthcare
3bcd2fe0a272643b480e538a836827c41ba84445
[ "MIT" ]
null
null
null
setup.py
baidalala/PAV-Healthcare
3bcd2fe0a272643b480e538a836827c41ba84445
[ "MIT" ]
null
null
null
setup.py
baidalala/PAV-Healthcare
3bcd2fe0a272643b480e538a836827c41ba84445
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in pav_healthcare/__init__.py from pav_healthcare import __version__ as version setup( name='pav_healthcare', version=vers...
25.952381
69
0.776147
2be4ccf08a199832f2683715bb513b38bcba5a2b
2,862
py
Python
deepnlpf/helpers/mongodb.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
3
2020-04-11T14:12:45.000Z
2020-05-30T16:31:06.000Z
deepnlpf/helpers/mongodb.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
34
2020-03-20T19:36:40.000Z
2022-03-20T13:00:32.000Z
deepnlpf/helpers/mongodb.py
deepnlpf/deepnlpf
6508ab1e8fd395575d606ee20223f25591541e25
[ "Apache-2.0" ]
1
2020-09-05T06:44:15.000Z
2020-09-05T06:44:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Path: deepnlpf/conn/ File: mongodb.py Class: ConnectMongoDB Description: Date: 23/03/2019 """ from mongoengine import * from pymongo import MongoClient from deepnlpf.config import database class ConnectMongoDB(object): def __init__(self): ...
24.461538
96
0.540881
15d530d59739f46f7d5f42f5827305073976203a
924
py
Python
novaclient/tests/functional/v2/test_fixedips.py
alvarolopez/python-novaclient
ef7cb1d44d47a1273810603fd96d982d7f0bd7d6
[ "Apache-1.1" ]
null
null
null
novaclient/tests/functional/v2/test_fixedips.py
alvarolopez/python-novaclient
ef7cb1d44d47a1273810603fd96d982d7f0bd7d6
[ "Apache-1.1" ]
null
null
null
novaclient/tests/functional/v2/test_fixedips.py
alvarolopez/python-novaclient
ef7cb1d44d47a1273810603fd96d982d7f0bd7d6
[ "Apache-1.1" ]
null
null
null
# Copyright 2015 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 to ...
38.5
78
0.745671
84791d9dd8426753ced1361f6eacf7576e446a76
8,115
py
Python
xpf/__init__.py
dooglewoogle/xpf
46b38f8096f22ae2e5c00e86b57f190b3c8b8249
[ "MIT" ]
1
2020-06-17T10:20:27.000Z
2020-06-17T10:20:27.000Z
xpf/__init__.py
dooglewoogle/xpf
46b38f8096f22ae2e5c00e86b57f190b3c8b8249
[ "MIT" ]
1
2021-01-15T02:06:44.000Z
2021-01-15T02:06:44.000Z
xpf/__init__.py
dooglewoogle/xpf
46b38f8096f22ae2e5c00e86b57f190b3c8b8249
[ "MIT" ]
3
2019-09-27T08:51:02.000Z
2021-01-17T20:32:21.000Z
""" #Overview Xpf is an interface to perforce which offers the following benefits: * Pure python, no compiled dependencies (allow for use in Python 2, Python 3, Max, Maya & Motion Builder etc) * Failsafe calls - this module will not raise errors if the perforce server is in-accessible. * PyPi distribution ...
30.507519
113
0.754405
62eb06670ccc32cdd015f000af42037d10f4f016
520
py
Python
ratter/tests/test_stack.py
fa-me/ratter
dce438b047d818aca92d47aa72a0268d48aab2d9
[ "BSD-3-Clause" ]
null
null
null
ratter/tests/test_stack.py
fa-me/ratter
dce438b047d818aca92d47aa72a0268d48aab2d9
[ "BSD-3-Clause" ]
null
null
null
ratter/tests/test_stack.py
fa-me/ratter
dce438b047d818aca92d47aa72a0268d48aab2d9
[ "BSD-3-Clause" ]
null
null
null
import unittest from ratter.material import Material from ratter.stack import Layerstack from ratter.layer import Layer class LayerstackTests(unittest.TestCase): def setUp(self): l1 = Layer("layer1", Material("air")) l2 = Layer("layer2", Material("water")) self.layerstack = Layerstack([l1,...
28.888889
60
0.713462
69b0b4d551f1371e3761671b529ac5d0f70690f6
9,264
py
Python
financeAPI/financeAPI.py
tirthajyoti/Finance-with-Python
d64d0cbec3533ef93e506c9097ca91ac610eb531
[ "MIT" ]
63
2020-06-07T04:00:17.000Z
2022-03-29T08:59:01.000Z
financeAPI/financeAPI.py
vegatek/Finance-with-Python
d64d0cbec3533ef93e506c9097ca91ac610eb531
[ "MIT" ]
3
2020-06-14T11:54:36.000Z
2022-02-26T16:03:30.000Z
financeAPI/financeAPI.py
vegatek/Finance-with-Python
d64d0cbec3533ef93e506c9097ca91ac610eb531
[ "MIT" ]
63
2020-06-06T21:43:16.000Z
2022-03-21T11:57:58.000Z
""" A finance API class using the API from https://financialmodelingprep.com/ NOTE: You need to register on their website to obtain your own secret API key """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import json from urllib.request import urlopen class FinanceAPI(): """ ...
32.734982
104
0.505289
095f0153e74f2529cd5fa99c0dd298a30f7504ba
896
py
Python
pymtl3/passes/PlaceholderPass.py
tancheng/pymtl3
9e3a582c805a1aa3d9c12a208e907bc73f2514d5
[ "BSD-3-Clause" ]
1
2022-01-03T06:22:11.000Z
2022-01-03T06:22:11.000Z
pymtl3/passes/PlaceholderPass.py
tancheng/pymtl3
9e3a582c805a1aa3d9c12a208e907bc73f2514d5
[ "BSD-3-Clause" ]
null
null
null
pymtl3/passes/PlaceholderPass.py
tancheng/pymtl3
9e3a582c805a1aa3d9c12a208e907bc73f2514d5
[ "BSD-3-Clause" ]
null
null
null
#========================================================================= # PlaceholderPass.py #========================================================================= # Author : Peitian Pan # Date : Jan 27, 2020 from pymtl3 import Placeholder from pymtl3.passes.BasePass import BasePass, PassMetadata from pymtl3....
33.185185
90
0.59375
30255b664bd660a30aaebb390ee3e537c6182204
17,191
py
Python
desktop/core/src/desktop/api2_tests.py
sbaudoin/hue
55c125f389915b23608c825a98ca2e41b702f32a
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/api2_tests.py
sbaudoin/hue
55c125f389915b23608c825a98ca2e41b702f32a
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/api2_tests.py
sbaudoin/hue
55c125f389915b23608c825a98ca2e41b702f32a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (...
32.68251
132
0.662963
4ec8f2bd358a9b667c7613d8933616928ab19ce4
1,949
py
Python
setup.py
alexmojaki/more-itertools
97f501415c5efd96a0a4af56ffdc0a524cca03b6
[ "MIT" ]
null
null
null
setup.py
alexmojaki/more-itertools
97f501415c5efd96a0a4af56ffdc0a524cca03b6
[ "MIT" ]
null
null
null
setup.py
alexmojaki/more-itertools
97f501415c5efd96a0a4af56ffdc0a524cca03b6
[ "MIT" ]
1
2020-05-05T03:17:42.000Z
2020-05-05T03:17:42.000Z
from re import sub from setuptools import setup from more_itertools import __version__ def get_long_description(): # Fix display issues on PyPI caused by RST markup readme = open('README.rst').read() version_lines = [] with open('docs/versions.rst') as infile: next(infile) for line ...
35.436364
78
0.63058
df17aefc323f7004d7def63ad4ba2ecba2181e42
2,794
py
Python
external/anomaly/anomaly_segmentation/configs/stfpm/configuration.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
44
2018-10-27T15:28:19.000Z
2019-02-26T12:50:39.000Z
external/anomaly/anomaly_segmentation/configs/stfpm/configuration.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
31
2018-11-09T20:33:47.000Z
2019-02-28T09:58:22.000Z
external/anomaly/anomaly_segmentation/configs/stfpm/configuration.py
ntyukaev/training_extensions
c897d42e50828fea853ceda0795e1f0e7d6e9909
[ "Apache-2.0" ]
27
2018-11-05T21:59:34.000Z
2019-02-28T14:28:50.000Z
""" Configurable parameters for STFPM anomaly classification task """ # Copyright (C) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
34.493827
117
0.681818
269d2d0e9bcda1619fdd0fb9004ecff5e1f8a871
8,587
py
Python
chia/wallet/cc_wallet/cc_utils.py
ForestCrazy/chia-blockchain-remote-plot
0ba838b7a8ea2b5410d438ac70295df699a30dae
[ "Apache-2.0" ]
6
2021-06-15T00:43:35.000Z
2021-11-01T02:32:37.000Z
chia/wallet/cc_wallet/cc_utils.py
ForestCrazy/chia-blockchain-remote-plot
0ba838b7a8ea2b5410d438ac70295df699a30dae
[ "Apache-2.0" ]
33
2021-09-28T10:17:59.000Z
2022-03-29T10:13:18.000Z
chia/wallet/cc_wallet/cc_utils.py
ForestCrazy/chia-blockchain-remote-plot
0ba838b7a8ea2b5410d438ac70295df699a30dae
[ "Apache-2.0" ]
1
2021-07-01T05:31:02.000Z
2021-07-01T05:31:02.000Z
import dataclasses from typing import List, Optional, Tuple from blspy import AugSchemeMPL, G2Element from chia.types.blockchain_format.coin import Coin from chia.types.blockchain_format.program import Program, INFINITE_COST from chia.types.blockchain_format.sized_bytes import bytes32 from chia.types.condition_opcode...
33.542969
117
0.707348
516ef50a25bae41e00d159f0b6d672a5b30d5ee9
9,982
py
Python
src/cool_compiler/parser/cool_parser.py
matcom-school/cool-compiler-2021
0a982f1708ed948a45610035a597d6ff12bab22b
[ "MIT" ]
null
null
null
src/cool_compiler/parser/cool_parser.py
matcom-school/cool-compiler-2021
0a982f1708ed948a45610035a597d6ff12bab22b
[ "MIT" ]
null
null
null
src/cool_compiler/parser/cool_parser.py
matcom-school/cool-compiler-2021
0a982f1708ed948a45610035a597d6ff12bab22b
[ "MIT" ]
null
null
null
from sly import Parser from .__dependency import CoolTokens from .factory_decored import NodesName class CoolParser(Parser): tokens = CoolTokens.tokens start = 'program' precedence = ( ('right', 'ARROW'), ('left','NOT'), ('nonassoc', '=','<','LESS_OR'), ('left', '+', '-'), ...
34.780488
106
0.599479
f7ae0c26027712ff2b57fc030224fdd6939d3aad
1,911
py
Python
simplemonitor/Alerters/pushbullet.py
cgroschupp/simplemonitor
0d4cb4823193bdd93c3f9176eea3bfab07007be1
[ "BSD-3-Clause" ]
373
2015-12-21T02:39:21.000Z
2022-03-08T10:49:43.000Z
simplemonitor/Alerters/pushbullet.py
cgroschupp/simplemonitor
0d4cb4823193bdd93c3f9176eea3bfab07007be1
[ "BSD-3-Clause" ]
910
2015-10-13T08:16:38.000Z
2022-03-29T12:16:52.000Z
simplemonitor/Alerters/pushbullet.py
cgroschupp/simplemonitor
0d4cb4823193bdd93c3f9176eea3bfab07007be1
[ "BSD-3-Clause" ]
196
2015-03-24T19:15:42.000Z
2022-02-06T22:39:55.000Z
""" SimpleMonitor alerts via pushbullet """ from typing import cast import requests import requests.auth from ..Monitors.monitor import Monitor from .alerter import Alerter, AlertLength, AlertType, register @register class PushbulletAlerter(Alerter): """Send push notification via Pushbullet.""" alerter_ty...
32.389831
87
0.658817
2d0a18e0eaa274379d7aefa3648d3db294c3bd9f
6,292
py
Python
tests/test_bootstraphistogram.py
davehadley/bootstraphistogram
4f4c4e73c0209a3508a56abfe4acb4cb0e85b1bd
[ "MIT" ]
1
2020-06-26T14:29:29.000Z
2020-06-26T14:29:29.000Z
tests/test_bootstraphistogram.py
davehadley/bootstraphistogram
4f4c4e73c0209a3508a56abfe4acb4cb0e85b1bd
[ "MIT" ]
4
2021-11-09T17:11:38.000Z
2022-02-07T11:22:05.000Z
tests/test_bootstraphistogram.py
davehadley/bootstraphistogram
4f4c4e73c0209a3508a56abfe4acb4cb0e85b1bd
[ "MIT" ]
null
null
null
import pickle import unittest from typing import Optional import boost_histogram as bh import numpy as np from bootstraphistogram import BootstrapHistogram def _standard_error_mean(size, sigma=1.0): return sigma / np.sqrt(size) def _standard_error_std(size, sigma=1.0): return np.sqrt(sigma ** 2 / (2.0 * s...
33.647059
82
0.594882
fdc3a9bd3808cc9d6c833eef78d6caf5e7a7ab93
1,511
py
Python
episode-6/django/src/projwatson/watsonlanguage/watsonutils/baseservice.py
chughts/python-primer-companion-code
3a147616183932d52714373b68054c212a040dc9
[ "Apache-2.0" ]
18
2016-03-30T14:55:28.000Z
2019-01-01T12:41:27.000Z
episode-6/django/src/projwatson/watsonlanguage/watsonutils/baseservice.py
chughts/python-primer-companion-code
3a147616183932d52714373b68054c212a040dc9
[ "Apache-2.0" ]
5
2016-02-22T20:12:33.000Z
2018-11-19T15:33:46.000Z
episode-6/django/src/projwatson/watsonlanguage/watsonutils/baseservice.py
chughts/python-primer-companion-code
3a147616183932d52714373b68054c212a040dc9
[ "Apache-2.0" ]
21
2016-02-22T19:22:59.000Z
2020-12-02T14:46:36.000Z
# -*- coding: utf-8 -*- # Copyright 2016 IBM # # 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...
29.627451
74
0.704169
a6fc091d614a11e2d28bf5fef379bc72f02eeb6a
6,862
py
Python
original/chartbot_original.py
JCLemme/chartbot
cdb79d294a1e79469efea6248c62c8e9d2de1442
[ "MIT" ]
null
null
null
original/chartbot_original.py
JCLemme/chartbot
cdb79d294a1e79469efea6248c62c8e9d2de1442
[ "MIT" ]
1
2019-03-07T07:47:43.000Z
2019-03-07T07:47:43.000Z
original/chartbot_original.py
JCLemme/chartbot
cdb79d294a1e79469efea6248c62c8e9d2de1442
[ "MIT" ]
null
null
null
import sys import datetime import config import billboard import inflect import spotipy import spotipy.oauth2 as oauth2 import spotipy.util as util from fuzzywuzzy import fuzz def compareData(str1, str2): if(len(str1) > len(str2)): if str2 not in str1: return 0 else: ret...
31.62212
143
0.585835
7472ed2fb8a864d30c104797835724d0383c10da
17,359
py
Python
dvc/remote/gdrive.py
dchichkov/dvc
907853b98598094caef4d0c45c4f0f54573af6e4
[ "Apache-2.0" ]
null
null
null
dvc/remote/gdrive.py
dchichkov/dvc
907853b98598094caef4d0c45c4f0f54573af6e4
[ "Apache-2.0" ]
null
null
null
dvc/remote/gdrive.py
dchichkov/dvc
907853b98598094caef4d0c45c4f0f54573af6e4
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import os import posixpath import logging import re import threading from urllib.parse import urlparse from funcy import retry, wrap_with, wrap_prop, cached_property from funcy.py3 import cat from dvc.progress import Tqdm from dvc.scheme import Schemes from dvc.path_info import Clo...
35.068687
119
0.597212
ac651cd203c99f5f40e6d837d43c472c29aee026
870
py
Python
ml_project/src/entities/train_pipeline_parameters.py
made-ml-in-prod-2021/mrtimmy89
d1c6d69aae63e396d1ee6b4f5e9238a8b04a44f2
[ "MIT" ]
null
null
null
ml_project/src/entities/train_pipeline_parameters.py
made-ml-in-prod-2021/mrtimmy89
d1c6d69aae63e396d1ee6b4f5e9238a8b04a44f2
[ "MIT" ]
4
2021-05-09T15:56:09.000Z
2021-06-06T07:33:40.000Z
ml_project/src/entities/train_pipeline_parameters.py
made-ml-in-prod-2021/mrtimmy89
d1c6d69aae63e396d1ee6b4f5e9238a8b04a44f2
[ "MIT" ]
null
null
null
""" Create dataclass for storing train parameters """ from dataclasses import dataclass from marshmallow_dataclass import class_schema import yaml from src.entities.split_parameters import SplittingParams from src.entities.training_parameters import TrainingParams @dataclass() class TrainingPipelinePar...
24.166667
72
0.722989
e6ad88ef180d8eba69f72bbaaa19757edf66bacd
1,462
py
Python
stochSMB.py
ehultee/stoch-SMB
324f8fdfa0e19bd66f5e904cf07c31d7af71cde7
[ "MIT" ]
3
2021-05-12T19:15:22.000Z
2021-06-23T00:04:03.000Z
stochSMB.py
ehultee/stoch-SMB
324f8fdfa0e19bd66f5e904cf07c31d7af71cde7
[ "MIT" ]
1
2021-08-06T14:24:51.000Z
2021-08-06T14:24:51.000Z
stochSMB.py
ehultee/stoch-SMB
324f8fdfa0e19bd66f5e904cf07c31d7af71cde7
[ "MIT" ]
1
2021-08-03T20:21:02.000Z
2021-08-03T20:21:02.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Aug 17 18:14:37 2021 Edited Thu Nov 4 2021: rename and make this the main resource file for the rpo @author: lizz """ import numpy as np from scipy import optimize def segments_fit(X, Y, maxcount): xmin = X.min() xmax = X.max() n = len...
27.074074
92
0.491108
d75a285783b9493a02c8f5cda11843d9e02afec4
1,857
py
Python
src/marketClassify.py
ChampionNi/money-tree
64f6894f46f8df011e9a875d9c866958969fce83
[ "Apache-2.0" ]
null
null
null
src/marketClassify.py
ChampionNi/money-tree
64f6894f46f8df011e9a875d9c866958969fce83
[ "Apache-2.0" ]
null
null
null
src/marketClassify.py
ChampionNi/money-tree
64f6894f46f8df011e9a875d9c866958969fce83
[ "Apache-2.0" ]
null
null
null
#-*-coding=utf-8-*- __author__ = 'ni' import pandas as pd import os import numpy as np import tushare as ts global global_rate global_rate = 10000 #pd.set_option('display.max_rows',None) class StatisticsMarketValue(): def __init__(self): print("StatisticsMarketValue") def start_statistics(self, min,...
35.037736
111
0.661282
061c5d43929c7dd2176a9d2cded13f1f9589b995
1,465
py
Python
lib/spyder.py
hack123321/Instagram
46f9765f7e45ccfe298b9e415efc2ea60f18c60f
[ "MIT" ]
null
null
null
lib/spyder.py
hack123321/Instagram
46f9765f7e45ccfe298b9e415efc2ea60f18c60f
[ "MIT" ]
null
null
null
lib/spyder.py
hack123321/Instagram
46f9765f7e45ccfe298b9e415efc2ea60f18c60f
[ "MIT" ]
null
null
null
# Date: 05/05/2018 # Author: Pure-L0G1C # Description: Browser Manager from requests import Session from .const import site_details from .scraper import Scraper, Queue class Spyder(object): def __init__(self): self.proxy = None self.isAlive = True self.proxy_info = None...
26.160714
111
0.558362
2d1bc4005ce612b201b4c642b5ed415b286d5ef6
6,175
py
Python
Lab_Week_08_-_Temporal_Difference_Learning/Solutions/env.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
Lab_Week_08_-_Temporal_Difference_Learning/Solutions/env.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
Lab_Week_08_-_Temporal_Difference_Learning/Solutions/env.py
eBe02/COMP0037-21_22
c0872548ff4b653e3f786734666838813db2149a
[ "Apache-2.0" ]
null
null
null
from td.Environment import BaseEnvironment class CliffWalkEnvironment(BaseEnvironment): # Initialization function which is called once when an environment object is created. # In this function, the grid dimensions and special locations (start and goal locations and the cliff locations) # are stored for ea...
44.746377
116
0.608259
655a1519866446f39b503617fad196e2eeaae2b4
1,142
py
Python
setup.py
msabramo/hmac_cli
32a2e2fd86e2b96c6b21415b14257b834b3bce2e
[ "MIT" ]
null
null
null
setup.py
msabramo/hmac_cli
32a2e2fd86e2b96c6b21415b14257b834b3bce2e
[ "MIT" ]
null
null
null
setup.py
msabramo/hmac_cli
32a2e2fd86e2b96c6b21415b14257b834b3bce2e
[ "MIT" ]
2
2015-04-12T16:31:22.000Z
2020-04-10T19:40:29.000Z
import os from setuptools import setup this_dir = os.path.dirname(__file__) long_description = "\n" + open(os.path.join(this_dir, 'README.rst')).read() setup( name='hmac_cli', version='0.0.0', description='Simple CLI for encrypting data with a private key, using HMAC', long_description=long_descriptio...
30.864865
80
0.619965
bd8e680a2701eff05dce387edc19d42c858d9d60
5,243
py
Python
pyvideoai/metrics/AP.py
kiyoon/PyVideoAI
c4d3ba7a69723aeae7da48245989ae11cbdb1f8b
[ "MIT" ]
22
2021-06-01T07:40:01.000Z
2022-03-14T07:09:01.000Z
pyvideoai/metrics/AP.py
kiyoon/PyVideoAI
c4d3ba7a69723aeae7da48245989ae11cbdb1f8b
[ "MIT" ]
null
null
null
pyvideoai/metrics/AP.py
kiyoon/PyVideoAI
c4d3ba7a69723aeae7da48245989ae11cbdb1f8b
[ "MIT" ]
null
null
null
# @achalddave's AP implementations from __future__ import division import numpy as np def compute_average_precision(groundtruth, predictions, false_negatives=0): """ Computes average precision for a binary problem. This is based off of the PASCAL VOC implementation. Args: groundtruth (array-l...
38.837037
79
0.639519
36421622c7d601b06a879015436c24ae647bd6a6
556
py
Python
fdlb_backend/supervisor_neural_network/migrations/0002_auto_20180321_1917.py
flying-pi/forDLbook
bb29a906234191e2f76d59e1bc3c47427057f895
[ "MIT" ]
1
2018-01-27T16:15:15.000Z
2018-01-27T16:15:15.000Z
fdlb_backend/supervisor_neural_network/migrations/0002_auto_20180321_1917.py
flying-pi/forDLbook
bb29a906234191e2f76d59e1bc3c47427057f895
[ "MIT" ]
null
null
null
fdlb_backend/supervisor_neural_network/migrations/0002_auto_20180321_1917.py
flying-pi/forDLbook
bb29a906234191e2f76d59e1bc3c47427057f895
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-03-21 19:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('supervisor_neural_network', '0001_initial'), ] operations = [ migrations.AlterField( model_name='weightmodel', name='a...
23.166667
54
0.582734
0ec73e36339e5abfb3515e107eb01deff2014942
7,304
py
Python
src/szlc_to_pads.py
Jiangshan00001/easyeda_to_pads
ce83d8faffd1af40d28242045e1da62a27e8f089
[ "Apache-2.0" ]
5
2021-07-08T08:13:24.000Z
2022-01-15T21:33:48.000Z
src/szlc_to_pads.py
Jiangshan00001/easyeda_to_pads
ce83d8faffd1af40d28242045e1da62a27e8f089
[ "Apache-2.0" ]
1
2021-07-23T06:14:37.000Z
2021-10-06T04:01:39.000Z
src/szlc_to_pads.py
Jiangshan00001/easyeda_to_pads
ce83d8faffd1af40d28242045e1da62a27e8f089
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 __author__ = "songjiangshan" __copyright__ = "Copyright (C) 2021 songjiangshan \n All Rights Reserved." __license__ = "" __version__ = "1.0" import sys import time import codecs import requests # 导入requests包 import json from pads_ascii import PadsAscii from easyeda import EasyEda from szlc_read impor...
27.051852
165
0.601999
6ea419b85b75f1759926bbad0e00667fdd2f1ee7
91
py
Python
micadoparser/__init__.py
micado-scale/micado-parser
5feadb18ca3c83f6ffca261e28b98bdf08c80125
[ "Apache-2.0" ]
null
null
null
micadoparser/__init__.py
micado-scale/micado-parser
5feadb18ca3c83f6ffca261e28b98bdf08c80125
[ "Apache-2.0" ]
2
2022-01-25T12:45:02.000Z
2022-01-25T12:54:04.000Z
micadoparser/__init__.py
micado-scale/micado-parser
5feadb18ca3c83f6ffca261e28b98bdf08c80125
[ "Apache-2.0" ]
null
null
null
from micadoparser.parser import set_template from micadoparser.exceptions import MultiError
45.5
46
0.901099
8baa1fb48322f2ea77493d73c5c6ecdf34ab330f
144,193
py
Python
datalad/support/gitrepo.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/support/gitrepo.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/support/gitrepo.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
38.543972
116
0.55683
3fe2b4508dcedca262e3bdf54a7f9fd2c3c5580f
39,043
py
Python
QGraphViz/QGraphViz.py
Phrongorre/QGraphViz
41a06e79d97699036b3e09b17055b9d7d9d4f8fa
[ "MIT" ]
null
null
null
QGraphViz/QGraphViz.py
Phrongorre/QGraphViz
41a06e79d97699036b3e09b17055b9d7d9d4f8fa
[ "MIT" ]
null
null
null
QGraphViz/QGraphViz.py
Phrongorre/QGraphViz
41a06e79d97699036b3e09b17055b9d7d9d4f8fa
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Author: Saifeddine ALOUI Description: Main Class to QGraphViz tool """ from PyQt5.QtWidgets import QApplication, QWidget, QScrollArea, QSizePolicy from PyQt5.QtGui import QPainter, QPen, QBrush, QColor, QPainterPath, QImage, QLinearGradient from PyQt5.QtCore import Qt, QR...
41.35911
230
0.539354
f64cce0ffd1ce5f1e3baddf79293be4290d79f09
1,492
py
Python
mmcls/models/necks/gap.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1,190
2020-07-10T01:16:01.000Z
2022-03-31T09:48:38.000Z
mmcls/models/necks/gap.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
702
2020-07-13T13:31:33.000Z
2022-03-31T06:48:04.000Z
mmcls/models/necks/gap.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
502
2020-07-10T02:40:55.000Z
2022-03-31T02:07:09.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn from ..builder import NECKS @NECKS.register_module() class GlobalAveragePooling(nn.Module): """Global Average Pooling neck. Note that we use `view` to remove extra channel after pooling. We do not use `squeeze` as it will...
32.434783
78
0.597185
88039dc084cb4b2ee33dc4dd6a2c4262f5360fd9
5,525
py
Python
flask_website/database.py
AutoAllenWu/flask-website
70c1ea729a6b81deca4726d505dc019d7139f0bc
[ "BSD-3-Clause" ]
null
null
null
flask_website/database.py
AutoAllenWu/flask-website
70c1ea729a6b81deca4726d505dc019d7139f0bc
[ "BSD-3-Clause" ]
null
null
null
flask_website/database.py
AutoAllenWu/flask-website
70c1ea729a6b81deca4726d505dc019d7139f0bc
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime from sqlalchemy import create_engine, Column, Integer, String, DateTime, \ ForeignKey, event from sqlalchemy.orm import scoped_session, sessionmaker, backref, relation from sqlalchemy.ext.declarative import declarative_base from werkzeug import cached_property...
30.865922
78
0.646335