hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
60e7eeab52a00e19d3c68a7d17f751163b8b2396
720
py
Python
tests/test_ratings.py
technicapital/stake-python
8d0a985923318ca7b92f23e0c9a8319a75f37ff2
[ "Apache-2.0" ]
47
2020-09-16T04:17:53.000Z
2022-03-29T12:20:50.000Z
tests/test_ratings.py
technicapital/stake-python
8d0a985923318ca7b92f23e0c9a8319a75f37ff2
[ "Apache-2.0" ]
123
2020-09-10T05:03:43.000Z
2022-02-03T12:13:35.000Z
tests/test_ratings.py
technicapital/stake-python
8d0a985923318ca7b92f23e0c9a8319a75f37ff2
[ "Apache-2.0" ]
5
2021-07-24T08:53:37.000Z
2022-01-24T16:19:50.000Z
import datetime import pytest from stake import RatingsRequest @pytest.mark.asyncio async def test_list_ratings(tracing_client): request = RatingsRequest(symbols=["AAPL", "MSFT"], limit=4) ratings = await tracing_client.ratings.list(request) assert len(ratings) == 4 assert ratings[0].symbol in ("AAP...
28.8
63
0.718056
a11bc4b05e8c2ebd9c2aa282ac4c66e9d679d0ad
3,111
py
Python
fonts/terminus-font-4.49.1/bin/fnutil.py
xfnw/yaft
c57e8f3014aa5cf743ca0855e543dbafc2e0db22
[ "MIT" ]
null
null
null
fonts/terminus-font-4.49.1/bin/fnutil.py
xfnw/yaft
c57e8f3014aa5cf743ca0855e543dbafc2e0db22
[ "MIT" ]
null
null
null
fonts/terminus-font-4.49.1/bin/fnutil.py
xfnw/yaft
c57e8f3014aa5cf743ca0855e543dbafc2e0db22
[ "MIT" ]
null
null
null
# # Copyright (C) 2017-2020 Dimitar Toshkov Zhekov <dimitar.zhekov@gmail.com> # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your option) # any later v...
31.424242
83
0.704597
77e9eef19a7a4cd7db22331ed32562bf4a949ea4
155,499
py
Python
src/tests/api/test_orders.py
NorDULaN/pretix
e2b9fe8e71f3852721a42c594047d88f5181fd29
[ "ECL-2.0", "Apache-2.0" ]
1
2020-04-25T00:11:00.000Z
2020-04-25T00:11:00.000Z
src/tests/api/test_orders.py
NorDULaN/pretix
e2b9fe8e71f3852721a42c594047d88f5181fd29
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/api/test_orders.py
NorDULaN/pretix
e2b9fe8e71f3852721a42c594047d88f5181fd29
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import copy import datetime import json from decimal import Decimal from unittest import mock import pytest from django.core import mail as djmail from django.dispatch import receiver from django.utils.timezone import now from django_countries.fields import Country from django_scopes import scopes_disabled from pytz i...
35.796271
157
0.604525
4c76cc4e4af5c696e99a31e0332a7c23955ce643
2,104
py
Python
socialserver/api/v3/block.py
niallasher/socialserver-neo
7e7d25d939133d149b56ccd54fbfa62d75cabb73
[ "MIT" ]
null
null
null
socialserver/api/v3/block.py
niallasher/socialserver-neo
7e7d25d939133d149b56ccd54fbfa62d75cabb73
[ "MIT" ]
11
2022-03-10T04:55:09.000Z
2022-03-30T14:24:19.000Z
socialserver/api/v3/block.py
niallasher/socialserver-neo
7e7d25d939133d149b56ccd54fbfa62d75cabb73
[ "MIT" ]
null
null
null
# Copyright (c) Niall Asher 2022 from datetime import datetime from flask_restful import Resource, reqparse from socialserver.db import db from socialserver.util.auth import get_user_from_auth_header, auth_reqd from socialserver.constants import ErrorCodes from pony.orm import db_session class Block(Resource): ...
31.402985
88
0.678232
180f4ca07f40040ccc6ffe8a1edbb58ebbf4648e
4,866
py
Python
ark_nlp/factory/predictor/text_classification.py
confstantine/nlp-task
cb152e885bc6f6f1243a12ad90b1c715eb548736
[ "Apache-2.0" ]
1
2021-12-27T04:48:40.000Z
2021-12-27T04:48:40.000Z
ark_nlp/factory/predictor/text_classification.py
confstantine/nlp-task
cb152e885bc6f6f1243a12ad90b1c715eb548736
[ "Apache-2.0" ]
null
null
null
ark_nlp/factory/predictor/text_classification.py
confstantine/nlp-task
cb152e885bc6f6f1243a12ad90b1c715eb548736
[ "Apache-2.0" ]
1
2021-12-27T04:49:35.000Z
2021-12-27T04:49:35.000Z
""" # Copyright 2021 Xiang Wang, Inc. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 Author: Xiang Wang, xiangking1995@163....
28.792899
115
0.583847
07c58708d2df7d60c9749cad381bcc905a005eeb
12,243
py
Python
analysis_utils/visualize.py
AIasd/ADFuzz
388d6568e1e1c0dfcd3951481268f01e2f0c2106
[ "MIT" ]
5
2022-01-06T01:10:47.000Z
2022-03-18T15:39:43.000Z
analysis_utils/visualize.py
AIasd/ADFuzz
388d6568e1e1c0dfcd3951481268f01e2f0c2106
[ "MIT" ]
15
2022-01-03T19:36:36.000Z
2022-03-30T03:57:58.000Z
analysis_utils/visualize.py
AIasd/ADFuzz
388d6568e1e1c0dfcd3951481268f01e2f0c2106
[ "MIT" ]
3
2021-11-22T08:01:47.000Z
2022-03-11T08:53:58.000Z
import sys sys.path.append('.') sys.path.append('pymoo') sys.path.append('fuzzing_utils') import os import pickle import numpy as np from matplotlib import pyplot as plt import seaborn as sns sns.set_theme() # TBD: visualize synthetic function bug distribution (2d) def visualize_synthetic_function_bugs(): pass...
39.493548
257
0.641264
e405055847775ec11f46a2cef8ba1364477690f6
1,201
py
Python
test/test_action_template_category_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
test/test_action_template_category_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
test/test_action_template_category_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a Generated by: https://github.com/swagger-api...
29.292683
135
0.766861
263cc334d16f2aafa2d72e6407cde09d0cc45cd0
26,636
py
Python
tensorflow_transform/beam/analysis_graph_builder.py
LaudateCorpus1/transform
afee306046b8f656355b0170793ee64423f30e23
[ "Apache-2.0" ]
970
2017-02-10T04:33:46.000Z
2022-03-26T08:11:20.000Z
tensorflow_transform/beam/analysis_graph_builder.py
LaudateCorpus1/transform
afee306046b8f656355b0170793ee64423f30e23
[ "Apache-2.0" ]
216
2017-02-23T04:50:59.000Z
2022-03-31T13:52:57.000Z
tensorflow_transform/beam/analysis_graph_builder.py
LaudateCorpus1/transform
afee306046b8f656355b0170793ee64423f30e23
[ "Apache-2.0" ]
238
2017-02-17T16:30:55.000Z
2022-03-03T20:10:25.000Z
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
41.16847
99
0.722631
165d5862a29e79da5dc40f86ec88887da6db3026
4,980
py
Python
sphinx/util/docutils.py
merwok-forks/sphinx
b7cada236f765003a73ab5dca48f975d54c0c298
[ "BSD-2-Clause" ]
null
null
null
sphinx/util/docutils.py
merwok-forks/sphinx
b7cada236f765003a73ab5dca48f975d54c0c298
[ "BSD-2-Clause" ]
null
null
null
sphinx/util/docutils.py
merwok-forks/sphinx
b7cada236f765003a73ab5dca48f975d54c0c298
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinx.util.docutils ~~~~~~~~~~~~~~~~~~~~ Utility functions for docutils. :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import absolute_import import re from copy import copy from contextlib...
31.719745
86
0.618675
015f4fc429ef6921c158f8eef83bb97eafcb18f5
598
py
Python
jax/version.py
dirmeier/jax
9ba28d263479ed5b9cada97bf73aec92ccc69bc6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/version.py
dirmeier/jax
9ba28d263479ed5b9cada97bf73aec92ccc69bc6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/version.py
dirmeier/jax
9ba28d263479ed5b9cada97bf73aec92ccc69bc6
[ "ECL-2.0", "Apache-2.0" ]
1
2020-07-17T18:17:31.000Z
2020-07-17T18:17:31.000Z
# 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, ...
37.375
74
0.757525
6855aa245e370b477218d07cd03f449a26758e7c
396
py
Python
myUniSystem/venv/Lib/site-packages/pkg_resources/py2_warn.py
LukasKaziliunas/uniSystemDemo
11e8c19e6d2bd08eb0449e229dbaa2a0300d8263
[ "MIT" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
myUniSystem/venv/Lib/site-packages/pkg_resources/py2_warn.py
LukasKaziliunas/uniSystemDemo
11e8c19e6d2bd08eb0449e229dbaa2a0300d8263
[ "MIT" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
myUniSystem/venv/Lib/site-packages/pkg_resources/py2_warn.py
LukasKaziliunas/uniSystemDemo
11e8c19e6d2bd08eb0449e229dbaa2a0300d8263
[ "MIT" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
import sys import warnings import textwrap msg = textwrap.dedent(""" Encountered a version of Setuptools that no longer supports this version of Python. Please head to https://bit.ly/setuptools-py2-sunset for support. """) pre = "Setuptools no longer works on Python 2\n" if sys.version_info < (3,): ...
23.294118
63
0.676768
61dad4fff18ff29d771c46bc16244f38d6f16312
1,781
py
Python
fastrf/app/routes/noise_figure.py
TheDubliner/fastrf
31761f58ab588cf441eaf200fb3862beeef625b5
[ "MIT" ]
4
2020-05-29T01:19:09.000Z
2021-03-16T12:05:26.000Z
fastrf/app/routes/noise_figure.py
TheDubliner/fastrf
31761f58ab588cf441eaf200fb3862beeef625b5
[ "MIT" ]
166
2020-04-16T03:34:53.000Z
2022-01-03T16:55:14.000Z
fastrf/app/routes/noise_figure.py
TheDubliner/fastrf
31761f58ab588cf441eaf200fb3862beeef625b5
[ "MIT" ]
2
2021-04-25T23:55:56.000Z
2022-01-10T13:06:19.000Z
import uuid from typing import Dict, List, Union from fastapi import APIRouter from fastrf.models.noise_figure import NoiseFigure router = APIRouter() class NoiseFigureSpec(NoiseFigure): id: str NOISE_FIGURE_SPECS = [ NoiseFigureSpec(id=uuid.uuid4().hex, value=1.5), NoiseFigureSpec(id=uuid.uuid4().he...
25.811594
80
0.723189
ff258d6504dc339b04fbc383d884f9c3f3efe54c
634
py
Python
alibaba/items.py
PandorAstrum/alibaba_skrapy
1548a354785578be1850015eeb439c368f5be4f2
[ "MIT" ]
null
null
null
alibaba/items.py
PandorAstrum/alibaba_skrapy
1548a354785578be1850015eeb439c368f5be4f2
[ "MIT" ]
null
null
null
alibaba/items.py
PandorAstrum/alibaba_skrapy
1548a354785578be1850015eeb439c368f5be4f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class AlibabaItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() title = scrapy.Field() price = scr...
25.36
52
0.675079
c7a34d32e87338a982188ffcbc8ccf8c55c44274
9,133
py
Python
tests/ut/python/dataset/test_dataset_numpy_slices.py
kungfu-team/mindspore-bert
71501cf52ae01db9d6a73fb64bcfe68a6509dc32
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_dataset_numpy_slices.py
kungfu-team/mindspore-bert
71501cf52ae01db9d6a73fb64bcfe68a6509dc32
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_dataset_numpy_slices.py
kungfu-team/mindspore-bert
71501cf52ae01db9d6a73fb64bcfe68a6509dc32
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
33.825926
103
0.68258
84e37b1184cbc7120d934f75c429ede25acbc1d5
10,785
py
Python
compaction_separation.py
seanys/2D-Irregular-Packing-Algorithm
cc10edff2bc2631fcbcb47acf7bb3215e5c5023c
[ "MIT" ]
29
2020-02-07T06:41:25.000Z
2022-03-16T18:04:07.000Z
compaction_separation.py
seanys/2D-Irregular-Packing-Algorithm
cc10edff2bc2631fcbcb47acf7bb3215e5c5023c
[ "MIT" ]
6
2020-04-27T01:36:27.000Z
2022-01-31T11:59:05.000Z
compaction_separation.py
seanys/2D-Irregular-Packing-Algorithm
cc10edff2bc2631fcbcb47acf7bb3215e5c5023c
[ "MIT" ]
12
2020-05-05T05:34:06.000Z
2022-03-26T07:32:46.000Z
""" 该文件实现了拆分算法 Separation去除重叠 和Compaction压缩当前解 ----------------------------------- Created on Wed Dec 11, 2020 @author: seanys,prinway ----------------------------------- We will update this file soon, now it has some wrong. """ from tools.geofunc import GeoFunc from tools.show import PltFunc from tools.lp import sovl...
37.70979
127
0.571164
1aaec58aa695f734eb32540375e9156313d28750
62,139
py
Python
disco/extensions/upgrade_simulation/upgrades/common_functions.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
2
2022-03-11T20:04:34.000Z
2022-03-14T22:25:29.000Z
disco/extensions/upgrade_simulation/upgrades/common_functions.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
4
2022-03-11T17:48:50.000Z
2022-03-17T21:39:47.000Z
disco/extensions/upgrade_simulation/upgrades/common_functions.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
null
null
null
import os import ast import math import json import logging import pathlib import numpy as np import pandas as pd import opendssdirect as dss from .pydss_parameters import * from jade.utils.timing_utils import track_timing, Timer from disco import timer_stats_collector from disco.enums import LoadMult...
45.589875
173
0.633531
87370bb6e892a5c77eabbe7a1670d348678913be
2,784
py
Python
modbus_utils.py
davystrong/FlexFact-Tina
6b5b0603834160abb5fcf66b6e3a532a304790c9
[ "MIT" ]
null
null
null
modbus_utils.py
davystrong/FlexFact-Tina
6b5b0603834160abb5fcf66b6e3a532a304790c9
[ "MIT" ]
null
null
null
modbus_utils.py
davystrong/FlexFact-Tina
6b5b0603834160abb5fcf66b6e3a532a304790c9
[ "MIT" ]
null
null
null
from typing import Any, Dict, List, Optional, Tuple, Union from pathlib import Path import xml.etree.cElementTree as ET from pyModbusTCP.client import ModbusClient as mbClient class ModbusClient(mbClient): def __init__(self, host: str, port: int, unit_id: Optional[int] = None, timeout: Optional[float] = None, deb...
33.95122
139
0.600934
31766a8fe6d0ebd3b4f604b005bb644463ede400
40
py
Python
script/cgi/perthon/ex/syntax3b.py
ErikNissen/webanwendung
92ea306c1764f74035aa843d98eed186ea2339b4
[ "MIT" ]
null
null
null
script/cgi/perthon/ex/syntax3b.py
ErikNissen/webanwendung
92ea306c1764f74035aa843d98eed186ea2339b4
[ "MIT" ]
null
null
null
script/cgi/perthon/ex/syntax3b.py
ErikNissen/webanwendung
92ea306c1764f74035aa843d98eed186ea2339b4
[ "MIT" ]
null
null
null
def test(): print 1 \ print 2
5.714286
11
0.475
75f668d7f72dbf403894a40fb67931fded96d5a1
7,222
py
Python
scripts/random_swaps.py
sandeepsoni/jca_release
3b9ca41fe5a1ff7074347a6720a4025018c23a88
[ "MIT" ]
7
2021-02-01T18:44:08.000Z
2022-02-10T17:43:31.000Z
scripts/random_swaps.py
sandeepsoni/jca_release
3b9ca41fe5a1ff7074347a6720a4025018c23a88
[ "MIT" ]
null
null
null
scripts/random_swaps.py
sandeepsoni/jca_release
3b9ca41fe5a1ff7074347a6720a4025018c23a88
[ "MIT" ]
1
2021-08-21T19:01:38.000Z
2021-08-21T19:01:38.000Z
import argparse import pandas as pd import os import random from random import choices, sample import numpy as np from collections import defaultdict, Counter from itertools import combinations from helpful_functions import safe_open_w def readArgs (): parser = argparse.ArgumentParser (description="swapping code ") ...
33.435185
141
0.705345
c7e25259c6ce1ef8a08d27ff5b21772326fbb298
842
py
Python
.circleci/test_examples.py
cloudify-cosmo/cloudify-diamond-plugin
2d5cd1bbb8e5b272d13b26e3ddd45759cde5e8a7
[ "Apache-2.0" ]
4
2016-02-28T17:01:34.000Z
2019-07-15T08:01:19.000Z
.circleci/test_examples.py
cloudify-cosmo/cloudify-diamond-plugin
2d5cd1bbb8e5b272d13b26e3ddd45759cde5e8a7
[ "Apache-2.0" ]
5
2015-10-06T14:46:24.000Z
2020-09-10T05:49:43.000Z
.circleci/test_examples.py
cloudify-cosmo/cloudify-diamond-plugin
2d5cd1bbb8e5b272d13b26e3ddd45759cde5e8a7
[ "Apache-2.0" ]
10
2015-01-21T17:10:36.000Z
2019-07-22T06:30:28.000Z
######## # Copyright (c) 2014-2019 Cloudify Platform Ltd. 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 ...
29.034483
74
0.752969
26504d233ec9c7b4ac597811b834489a07fd4d26
2,936
py
Python
steelscript/netprofiler/appfwk/reports/netprofiler_hostgroup.py
jkraenzle/steelscript-netprofiler
970a8f492203875a35cc13e94237740b31eb01b4
[ "MIT" ]
5
2016-02-29T01:16:36.000Z
2019-12-08T19:04:54.000Z
steelscript/netprofiler/appfwk/reports/netprofiler_hostgroup.py
jkraenzle/steelscript-netprofiler
970a8f492203875a35cc13e94237740b31eb01b4
[ "MIT" ]
5
2015-08-18T19:07:44.000Z
2020-06-04T15:56:38.000Z
steelscript/netprofiler/appfwk/reports/netprofiler_hostgroup.py
jkraenzle/steelscript-netprofiler
970a8f492203875a35cc13e94237740b31eb01b4
[ "MIT" ]
3
2016-02-29T01:16:37.000Z
2020-06-04T00:43:38.000Z
# Copyright (c) 2019 Riverbed Technology, Inc. # # This software is licensed under the terms and conditions of the MIT License # accompanying the software ("License"). This software is distributed "AS IS" # as set forth in the License. import steelscript.appfwk.apps.report.modules.c3 as c3 from steelscript.appfwk.ap...
40.219178
78
0.676771
8b20d446a6b0a5a69a61c5e5f0256a7502057207
3,368
py
Python
firebase/firestore-py/lib/students/reader.py
BraydenKO/RamLife
10c9bbb7338fbaf6c3d1c98bb2f559e6cc089ee6
[ "MIT" ]
3
2021-10-03T11:37:11.000Z
2022-01-20T15:39:58.000Z
firebase/firestore-py/lib/students/reader.py
BraydenKO/RamLife
10c9bbb7338fbaf6c3d1c98bb2f559e6cc089ee6
[ "MIT" ]
58
2020-03-10T18:48:52.000Z
2021-08-31T23:19:09.000Z
firebase/firestore-py/lib/students/reader.py
Ramaz-Upper-School/RamLife
5015c72f6e6dc53cd5dd37bd3f0f87caf40ec0c4
[ "MIT" ]
8
2020-09-08T18:29:54.000Z
2021-04-20T23:11:50.000Z
import csv from collections import defaultdict import lib.data as data import lib.utils as utils def read_students(): with open(utils.dir.students) as file: return { row ["ID"]: data.User( first = row ["First Name"], last = row ["Last Name"], email = row ["Email"].lower(), id = row ["ID"], ) for r...
31.185185
117
0.708432
394c3f4f6f79572558cb7575e8b65dc97e99fb00
3,548
py
Python
devices/sensors/sht21.py
boretskij/SensorsPy
98ebdf0ec88ff4532918ad16c925a8563780a6bf
[ "MIT" ]
null
null
null
devices/sensors/sht21.py
boretskij/SensorsPy
98ebdf0ec88ff4532918ad16c925a8563780a6bf
[ "MIT" ]
null
null
null
devices/sensors/sht21.py
boretskij/SensorsPy
98ebdf0ec88ff4532918ad16c925a8563780a6bf
[ "MIT" ]
1
2019-10-27T11:38:55.000Z
2019-10-27T11:38:55.000Z
import smbus2 as smbus import time class SHT21: """Class to read temperature and humidity from SHT21. Resources: http://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/Humidity/Sensirion_Humidity_SHT21_Datasheet_V3.pdf https://github.com/jaques/sht21_python/blob/master/sht21....
35.48
133
0.633878
f8dfac8a823f8fb5d407e942861cc1f11e650b09
2,360
py
Python
venv/Lib/site-packages/pyrogram/raw/types/message_entity_bank_card.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/message_entity_bank_card.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/message_entity_bank_card.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.466667
103
0.614831
3b1ac44f78eddcd8fa9f36aca04dc7a7d2c36893
143
py
Python
ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/ifRedundantLinesRemoval/data/pure/in_10_middle_common_part.py
JetBrains-Research/ast-transformations
0ab408af3275b520cc87a473f418c4b4dfcb0284
[ "MIT" ]
8
2021-01-19T21:15:54.000Z
2022-02-23T19:16:25.000Z
ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/ifRedundantLinesRemoval/data/pure/out_10.py
JetBrains-Research/ast-transformations
0ab408af3275b520cc87a473f418c4b4dfcb0284
[ "MIT" ]
4
2020-11-17T14:28:25.000Z
2022-02-24T07:54:28.000Z
ast-transformations-core/src/test/resources/org/jetbrains/research/ml/ast/transformations/ifRedundantLinesRemoval/data/pure/out_10.py
nbirillo/ast-transformations
717706765a2da29087a0de768fc851698886dd65
[ "MIT" ]
1
2022-02-23T19:16:30.000Z
2022-02-23T19:16:30.000Z
s = input() if s: print('foo') a = 2 b = a + a print('bar') else: print('foo1') a = 2 b = a + a print('bar1')
11
17
0.398601
0509437e275d99661515288fbb3ba85ec8684e52
883
py
Python
test.py
kmapgar01/LDHelloWorld
671246ae5425b4e96ecf925e37b8f68a6c08bbeb
[ "Apache-2.0" ]
null
null
null
test.py
kmapgar01/LDHelloWorld
671246ae5425b4e96ecf925e37b8f68a6c08bbeb
[ "Apache-2.0" ]
null
null
null
test.py
kmapgar01/LDHelloWorld
671246ae5425b4e96ecf925e37b8f68a6c08bbeb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import logging import sys import ldclient from ldclient.config import Config root = logging.getLogger() root.setLevel(logging.INFO) ch = logging.StreamHandler(sys.stdout) ch.setLevel(logging.INFO) formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') ch.setFormatt...
23.236842
110
0.696489
5270a52c40b8e4d133cec4fe91caebc80d02a22a
704
py
Python
main/at-spi2-atk/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/at-spi2-atk/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/at-spi2-atk/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
pkgname = "at-spi2-atk" pkgver = "2.38.0" pkgrel = 0 build_style = "meson" hostmakedepends = [ "meson", "pkgconf", "glib-devel", "gettext-tiny", ] makedepends = [ "libglib-devel", "atk-devel", "at-spi2-core-devel", "libxml2-devel" ] pkgdesc = "GTK+ module that bridges ATK to D-Bus AT-SPI" maintainer = "q66 <q66...
30.608696
75
0.698864
692525e518fa390e8afd65f366b1fd717e37be63
2,736
py
Python
tests/test_mongodb.py
crim-ca/weaver
107fec5e19f20b77061b9405a764da911d2db8a2
[ "Apache-2.0" ]
16
2019-03-18T12:23:05.000Z
2022-02-25T00:39:11.000Z
tests/test_mongodb.py
crim-ca/weaver
107fec5e19f20b77061b9405a764da911d2db8a2
[ "Apache-2.0" ]
346
2019-03-06T21:05:04.000Z
2022-03-31T13:38:37.000Z
tests/test_mongodb.py
crim-ca/weaver
107fec5e19f20b77061b9405a764da911d2db8a2
[ "Apache-2.0" ]
5
2019-03-15T01:38:28.000Z
2021-11-11T15:38:43.000Z
""" Based on unittests in https://github.com/wndhydrnt/python-oauth2/tree/master/oauth2/test. """ import unittest import mock from pymongo.collection import Collection from weaver.datatype import Service from weaver.store.mongodb import MongodbServiceStore class MongodbServiceStoreTestCase(unittest.TestCase): ...
46.372881
115
0.724415
546993aaf88392a64cf10aa5bbbc25d528ecbd35
1,359
py
Python
pyACA/FeatureTimeAcfCoeff.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
81
2019-07-08T15:48:03.000Z
2022-03-21T22:52:25.000Z
pyACA/FeatureTimeAcfCoeff.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
24
2019-10-03T19:20:18.000Z
2022-02-28T17:20:40.000Z
pyACA/FeatureTimeAcfCoeff.py
ruohoruotsi/pyACA
339e9395b65a217aa5965638af941b32d5c95454
[ "MIT" ]
26
2019-07-18T23:50:52.000Z
2022-03-10T14:59:35.000Z
# -*- coding: utf-8 -*- """ computes the ACF coefficients of a time domain signal Args: x: audio signal iBlockLength: block length in samples iHopLength: hop length in samples f_s: sample rate of audio data (unused) eta: index (or vector of indices) of coeff result Returns: vacf autocorrel...
26.647059
90
0.657837
b3f7974a3a66d3e3830a9c8ed6175bee4f4ced1f
257
py
Python
plans/serializers.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
plans/serializers.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
plans/serializers.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Plan class PlanSerializer(serializers.ModelSerializer): class Meta: model = Plan fields = ['id', 'name', 'price', 'duration', 'notifications', 'emails', 'apps', 'description']
28.555556
102
0.688716
3e3a34d85236a590ad1d9419836ee765d187efe4
905
py
Python
osr2mp4/ImageProcess/Objects/Components/ScorebarBG.py
ADoesGit/osr2mp4-core
b702295998439dce39a421dbefde71c37f5ddb63
[ "MIT" ]
null
null
null
osr2mp4/ImageProcess/Objects/Components/ScorebarBG.py
ADoesGit/osr2mp4-core
b702295998439dce39a421dbefde71c37f5ddb63
[ "MIT" ]
null
null
null
osr2mp4/ImageProcess/Objects/Components/ScorebarBG.py
ADoesGit/osr2mp4-core
b702295998439dce39a421dbefde71c37f5ddb63
[ "MIT" ]
null
null
null
from .AScorebar import AScorebar class ScorebarBG(AScorebar): def __init__(self, frames, start_time, settings, hasfl): AScorebar.__init__(self, frames, settings=settings) self.map_start = start_time self.hasfl = hasfl def add_to_frame(self, background, cur_time, inbreak): AScorebar.animate(self) if self...
34.807692
92
0.723757
d13c31d0ed4c514c393fa3b27610947346d00789
12,421
py
Python
qa/rpc-tests/util.py
ToranTeam/NewToran
ba40d8884f6f3e0d3aa7a0eb54ada7c6a21e2642
[ "MIT" ]
null
null
null
qa/rpc-tests/util.py
ToranTeam/NewToran
ba40d8884f6f3e0d3aa7a0eb54ada7c6a21e2642
[ "MIT" ]
null
null
null
qa/rpc-tests/util.py
ToranTeam/NewToran
ba40d8884f6f3e0d3aa7a0eb54ada7c6a21e2642
[ "MIT" ]
null
null
null
# Copyright (c) 2014 The Bitcoin Core developers # Copyright (c) 2014-2015 The Dash developers # Copyright (c) 2015-2017 The PIVX developers # Copyright (c) 2017 The TNX developers # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php...
35.795389
104
0.64713
7dd9e2c8e1381ee5428448c4416f56c4296f9c95
1,564
py
Python
tests/test_reader_springer.py
OBrink/chemdataextractor2
152a45f6abbf069d2070232fa5c4038569ac7717
[ "MIT" ]
null
null
null
tests/test_reader_springer.py
OBrink/chemdataextractor2
152a45f6abbf069d2070232fa5c4038569ac7717
[ "MIT" ]
null
null
null
tests/test_reader_springer.py
OBrink/chemdataextractor2
152a45f6abbf069d2070232fa5c4038569ac7717
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ test_reader_springer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Test reader for Springer. .. codeauthor:: Shu Huang <sh2009@cam.ac.uk> """ import unittest import logging import io import os from chemdataextractor.doc.document import Document from chemdataextractor.reader.springer_jats import SpringerJ...
30.076923
93
0.642583
1c128f172caf9c4955301a54a9c08032953c1b72
1,551
py
Python
shops/views_autocomplete.py
EDario333/minegocito
5dd0869fa2510bb8152f4a117f33b2a30bb6d69c
[ "MIT" ]
null
null
null
shops/views_autocomplete.py
EDario333/minegocito
5dd0869fa2510bb8152f4a117f33b2a30bb6d69c
[ "MIT" ]
null
null
null
shops/views_autocomplete.py
EDario333/minegocito
5dd0869fa2510bb8152f4a117f33b2a30bb6d69c
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from django.db.models import Q from django.http import HttpResponse, JsonResponse from django.utils.translation import gettext as _ from users.models import Users import json def my_shops_autocomplete(...
27.210526
99
0.672469
7a7bed78c97a031332d9243385018fd4481bc209
949
py
Python
enubeuta/apps/articles/views.py
Enubeuta6/nuwm-forum
8711619b2e37ed5ac0f4876ec18b06d0153e4571
[ "MIT" ]
null
null
null
enubeuta/apps/articles/views.py
Enubeuta6/nuwm-forum
8711619b2e37ed5ac0f4876ec18b06d0153e4571
[ "MIT" ]
null
null
null
enubeuta/apps/articles/views.py
Enubeuta6/nuwm-forum
8711619b2e37ed5ac0f4876ec18b06d0153e4571
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Article, Comment from django.http import Http404, HttpResponseRedirect from django.urls import reverse def index(request): latest_articles_list = Article.objects.order_by('-pub_date')[:5] return render(request, 'articles/list.html', {'latest_articles_list': la...
32.724138
109
0.759747
7f2cd476aaf37399d8e33fe6e36d7a9bc4e8684c
2,924
py
Python
runsync.py
CrownID/maildump
b8f5a264d6b9a9e5d8225c74133451293c36696e
[ "MIT" ]
null
null
null
runsync.py
CrownID/maildump
b8f5a264d6b9a9e5d8225c74133451293c36696e
[ "MIT" ]
null
null
null
runsync.py
CrownID/maildump
b8f5a264d6b9a9e5d8225c74133451293c36696e
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- import mailproc import ConfigParser import csv import re import os from multiprocessing import Pool from multiprocessing.dummy import Pool as ThreadPool import sqlalchemy from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, ...
26.107143
77
0.6987
f9b70f01c826cadcc7e7fe985cae410f4b718216
2,188
py
Python
student-owl/utils/reader.py
StudentOwl/StudentOwl-Monitoreo
c3592a6ef2ab1234e75d2140317bed91dde45a78
[ "MIT" ]
null
null
null
student-owl/utils/reader.py
StudentOwl/StudentOwl-Monitoreo
c3592a6ef2ab1234e75d2140317bed91dde45a78
[ "MIT" ]
5
2021-01-09T17:10:41.000Z
2021-01-20T20:55:39.000Z
student-owl/utils/reader.py
StudentOwl/StudentOwl-Monitoreo
c3592a6ef2ab1234e75d2140317bed91dde45a78
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from os import path from utils.time_utils import convertTimeToTimestamp class ReaderLogFile(object): """ Reader LogFile class Provides methods for obtaining log lines. """ __EXCLUDED_CLASSES = ('system', 'clipboard', 'url', 'keystrokes',...
29.972603
77
0.50777
54da9d9171744df866836e3e2740864667129885
142
py
Python
tests/test_units/test_auth/test_openid_connect.py
thanegill/aiogoogle
e398df3886b6f6b254fa5413479f503f5bcbf435
[ "MIT" ]
null
null
null
tests/test_units/test_auth/test_openid_connect.py
thanegill/aiogoogle
e398df3886b6f6b254fa5413479f503f5bcbf435
[ "MIT" ]
null
null
null
tests/test_units/test_auth/test_openid_connect.py
thanegill/aiogoogle
e398df3886b6f6b254fa5413479f503f5bcbf435
[ "MIT" ]
null
null
null
# TODO: def test_authorization_url(): pass def test_decode_and_validate(): pass def test_build_user_creds_jwt_grant(): pass
10.142857
38
0.71831
313fab183c1eb167d08f3d1a914ccd1f16f08e1b
2,155
py
Python
car/agent.py
CarliWasTaken/Backend
56f83999b1521c43b738be1856ffd8eeecf22a93
[ "MIT" ]
1
2021-09-29T12:40:25.000Z
2021-09-29T12:40:25.000Z
car/agent.py
CarliWasTaken/Carli
56f83999b1521c43b738be1856ffd8eeecf22a93
[ "MIT" ]
1
2021-11-15T10:01:27.000Z
2021-11-15T10:01:27.000Z
car/agent.py
CarliWasTaken/Backend
56f83999b1521c43b738be1856ffd8eeecf22a93
[ "MIT" ]
null
null
null
import sys sys.path.append('../') import Adafruit_PCA9685 from log.log import Log from typing import * log: log = Log.get_instance() class Servo(): def __init__(self, pwm: Adafruit_PCA9685.PCA9685, number: int, neutral: int, delta_max: int) -> None: self.__pwm: Adafruit_PCA9685.PCA9685 = pwm self...
29.121622
105
0.604176
51338b0e915d2cbfca661d9b921b918994742d0b
1,464
py
Python
test/test_typechecking.py
runtime-jupyter-safety/runtime-jupyter-safety
f62a24b5b4f44fed5111c31441bc6a105441e34c
[ "BSD-3-Clause" ]
null
null
null
test/test_typechecking.py
runtime-jupyter-safety/runtime-jupyter-safety
f62a24b5b4f44fed5111c31441bc6a105441e34c
[ "BSD-3-Clause" ]
20
2020-04-17T02:32:50.000Z
2020-05-07T05:50:32.000Z
test/test_typechecking.py
runtime-jupyter-safety/runtime-jupyter-safety
f62a24b5b4f44fed5111c31441bc6a105441e34c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import logging from typing import Set from nbsafety.data_model.code_cell import cells from nbsafety.singletons import nbs from nbsafety.types import CellId from test.utils import make_safety_fixture, skipif_known_failing logging.basicConfig(level=logging.ERROR) # Reset dependency graph before...
33.272727
85
0.746585
0ae2afa4a77ba578900565879dc885195429738c
9,460
py
Python
src/xgboost_gpu.py
gmmoliveira/xgboost_gpu
2878e8c4655f37796c88fbc19fd555637ea06f1a
[ "Apache-2.0" ]
null
null
null
src/xgboost_gpu.py
gmmoliveira/xgboost_gpu
2878e8c4655f37796c88fbc19fd555637ea06f1a
[ "Apache-2.0" ]
null
null
null
src/xgboost_gpu.py
gmmoliveira/xgboost_gpu
2878e8c4655f37796c88fbc19fd555637ea06f1a
[ "Apache-2.0" ]
null
null
null
''' Copyright 2020 Guilherme Oliveira SPDX-License-Identifier: Apache-2.0 ======================================================================================================================== Author: Guilherme Oliveira Date: july 06, 2020 Contact: gmmoliveira1@gmail.com License: Apache-2.0 (https://www.apache.org/li...
38.455285
139
0.708245
5ce8389d4e1de163c4206b151dbd4a9273b83f4e
114,484
py
Python
pipeline/pipeline.py
rhefner1/ghidonations
aa1b263ce30c952400a5eac8739b1ef52a2e4fed
[ "Apache-2.0" ]
null
null
null
pipeline/pipeline.py
rhefner1/ghidonations
aa1b263ce30c952400a5eac8739b1ef52a2e4fed
[ "Apache-2.0" ]
2
2015-03-11T04:59:20.000Z
2016-02-08T16:42:06.000Z
pipeline/pipeline.py
rhefner1/ghidonations
aa1b263ce30c952400a5eac8739b1ef52a2e4fed
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.5 # # Copyright 2010 Google 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...
37.242681
81
0.680191
a862db1230101aeff3cfeaed26d27e0070f53e78
16,697
py
Python
tbx/text.py
ronhanson/python-tbx
7f5015bcc231b42617bdc3537fb39e5b05d4f7af
[ "MIT" ]
2
2016-05-27T06:21:27.000Z
2018-12-01T15:02:42.000Z
tbx/text.py
ronhanson/python-tbx
7f5015bcc231b42617bdc3537fb39e5b05d4f7af
[ "MIT" ]
null
null
null
tbx/text.py
ronhanson/python-tbx
7f5015bcc231b42617bdc3537fb39e5b05d4f7af
[ "MIT" ]
2
2018-12-01T15:02:43.000Z
2020-11-23T07:57:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 nu """ (c) 2013 - Ronan Delacroix Text Utils :author: Ronan Delacroix """ import json import datetime import os import re import smtplib import unicodedata import six import uuid as UUID import base64 import yaml import io try: import toml...
31.563327
137
0.53279
1be8c0cd59308533dc9f3af4f4efe07d2bc4be66
1,980
py
Python
test/test_bar3d.py
CharileWithZoe/pyecharts
dbded9a8932cc13840b7d130802176fd88a97bf8
[ "MIT" ]
11,032
2017-12-21T01:21:38.000Z
2022-03-31T23:02:38.000Z
test/test_bar3d.py
MatteLin/pyecharts
42717ac1a5be330586bba45196cce1ed961fef54
[ "MIT" ]
1,687
2017-12-21T02:10:47.000Z
2022-03-31T14:31:45.000Z
test/test_bar3d.py
MatteLin/pyecharts
42717ac1a5be330586bba45196cce1ed961fef54
[ "MIT" ]
2,528
2017-12-21T07:57:52.000Z
2022-03-30T15:34:51.000Z
import random from unittest.mock import patch from nose.tools import assert_equal, assert_in from pyecharts import options as opts from pyecharts.charts import Bar3D from pyecharts.faker import Faker @patch("pyecharts.render.engine.write_utf8_html_file") def test_bar3d_base(fake_writer): data = [(i, j, random.r...
34.736842
81
0.615152
0d6a80402cfc549417a16853a19fc59fa586da24
5,356
py
Python
test/test_basic.py
spalato/qtlets
506fb42823ba088f30b2d85c4f8b0c7a3f0c6cd1
[ "MIT" ]
2
2020-09-22T17:44:51.000Z
2022-01-03T22:47:49.000Z
test/test_basic.py
spalato/qtlets
506fb42823ba088f30b2d85c4f8b0c7a3f0c6cd1
[ "MIT" ]
null
null
null
test/test_basic.py
spalato/qtlets
506fb42823ba088f30b2d85c4f8b0c7a3f0c6cd1
[ "MIT" ]
1
2020-10-02T20:17:36.000Z
2020-10-02T20:17:36.000Z
import sys from collections import namedtuple from functools import partial from random import randint, choices from string import ascii_letters, punctuation, digits from types import SimpleNamespace import pytest from PySide2.QtWidgets import QWidget, QPushButton, QVBoxLayout, QCheckBox, \ QLineEdit from PySide...
28.338624
107
0.655153
8862ef53228b689ac5cc22f99ba3436928c0c0fc
789
py
Python
Pyinstalled/dist/Resources/Programs/audioTest.py
scriptslay3r/MyRose
b716969b6bb424be3125c6370b0c9f450cf76151
[ "MIT" ]
1
2020-05-10T17:59:35.000Z
2020-05-10T17:59:35.000Z
Pyinstalled/dist/lib/audioTest.py
scriptslay3r/MyRose
b716969b6bb424be3125c6370b0c9f450cf76151
[ "MIT" ]
null
null
null
Pyinstalled/dist/lib/audioTest.py
scriptslay3r/MyRose
b716969b6bb424be3125c6370b0c9f450cf76151
[ "MIT" ]
null
null
null
import pyaudio import wave filename = 'blue.wav' # Set chunk size of 1024 samples per data frame chunk = 1024 # Open the sound file wf = wave.open(filename, 'rb') # Create an interface to PortAudio p = pyaudio.PyAudio() # Open a .Stream object to write the WAV file to # 'output = True' indicates that the sound ...
23.909091
78
0.679341
6f6d3ce3b61745cc3af1e7683fe573fd8536933d
1,015
py
Python
BaseTools/Source/Python/GenFds/OptRomFileStatement.py
DK519/DK_Project
b562574ba2d223aff5dd3f3c3260ee1f9905e735
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
1
2019-04-28T16:32:26.000Z
2019-04-28T16:32:26.000Z
BaseTools/Source/Python/GenFds/OptRomFileStatement.py
DK519/DK_Project
b562574ba2d223aff5dd3f3c3260ee1f9905e735
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
BaseTools/Source/Python/GenFds/OptRomFileStatement.py
DK519/DK_Project
b562574ba2d223aff5dd3f3c3260ee1f9905e735
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
## @file # process OptionROM generation from FILE statement # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.LongFilePathOs as os from .GenFdsGlobalVariable import ...
22.065217
85
0.650246
bc5f27d0a93cc2fd9690680acb42296287d91171
2,285
py
Python
src/Honeybee_Energy Simulation Par.py
rdzeldenrust/Honeybee
e91e58badc1c9b082596d2cf97baeccdb6d7d0af
[ "CC-BY-3.0" ]
1
2016-03-04T09:47:42.000Z
2016-03-04T09:47:42.000Z
src/Honeybee_Energy Simulation Par.py
rdzeldenrust/Honeybee
e91e58badc1c9b082596d2cf97baeccdb6d7d0af
[ "CC-BY-3.0" ]
null
null
null
src/Honeybee_Energy Simulation Par.py
rdzeldenrust/Honeybee
e91e58badc1c9b082596d2cf97baeccdb6d7d0af
[ "CC-BY-3.0" ]
null
null
null
# By Mostapha Sadeghipour Roudsari # Sadeghipour@gmail.com # Honeybee started by Mostapha Sadeghipour Roudsari is licensed # under a Creative Commons Attribution-ShareAlike 3.0 Unported License. """ EnergyPlus Shadow Parameters - Provided by Honeybee 0.0.55 Args: timestep_:... shadowCalcPar_: ... ...
36.854839
99
0.655142
88bc94d08053a664d77418e30f3b7558713847d0
15,259
py
Python
DPPO/dppo_cont_gae_dist_gpu.py
CAVED123/DPPO
666d54fb95ce6219771a3747bcae29eb88dd8e4b
[ "MIT" ]
1
2020-12-01T13:23:47.000Z
2020-12-01T13:23:47.000Z
DPPO/dppo_cont_gae_dist_gpu.py
CAVED123/DPPO
666d54fb95ce6219771a3747bcae29eb88dd8e4b
[ "MIT" ]
null
null
null
DPPO/dppo_cont_gae_dist_gpu.py
CAVED123/DPPO
666d54fb95ce6219771a3747bcae29eb88dd8e4b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DPPO_cont_GAE_dist_GPU.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1_GZ3wt0ydAf9Fx7YsFuuvOQduCN_NlDC """ """ Distributed Proximal Policy Optimization (Distributed PPO or DPPO) continuous version implementation with ...
41.352304
171
0.620814
a5b5cd5896b78214c10adc60f01a3d9567777162
762
py
Python
binproperty/models.py
skyydq/GreaterWMS
e14014a73b36ec0f0df03712a229b0931cb388fb
[ "Apache-2.0" ]
1,063
2020-11-15T12:55:15.000Z
2022-03-31T14:33:12.000Z
binproperty/models.py
ashrafali46/GreaterWMS
1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72
[ "Apache-2.0" ]
96
2020-11-18T00:06:05.000Z
2022-03-03T09:05:39.000Z
binproperty/models.py
ashrafali46/GreaterWMS
1aed14a8c26c8ac4571db5e6b07ab7e4fa3c7c72
[ "Apache-2.0" ]
349
2020-11-15T13:15:30.000Z
2022-03-31T11:01:15.000Z
from django.db import models class ListModel(models.Model): bin_property = models.CharField(max_length=32, verbose_name="Bin property") creater = models.CharField(max_length=255, verbose_name="Who created") openid = models.CharField(max_length=255, verbose_name="Openid") is_delete = models.BooleanField...
40.105263
104
0.71916
8ea143ca923b68081e8b124796bb1fb1892762f9
1,157
py
Python
test/functional/p2p_mempool.py
satcoin-dev/satcoin
a68f5965a8c28cfcaf8855a661ea3f15de9ae7d5
[ "MIT" ]
4
2021-02-28T04:34:58.000Z
2021-09-14T15:25:31.000Z
test/functional/p2p_mempool.py
satcoin-dev/satcoin
a68f5965a8c28cfcaf8855a661ea3f15de9ae7d5
[ "MIT" ]
null
null
null
test/functional/p2p_mempool.py
satcoin-dev/satcoin
a68f5965a8c28cfcaf8855a661ea3f15de9ae7d5
[ "MIT" ]
1
2021-06-18T13:13:17.000Z
2021-06-18T13:13:17.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test p2p mempool message. Test that nodes are disconnected if they send mempool messages when bloom fi...
33.057143
73
0.736387
09bdf12c4d3027726439f2ff668c685fd262aea8
251
py
Python
Vicar/vicar_app/urls.py
cs-fullstack-fall-2018/django-form-post1-jpark1914
230ba02b30ef48bf86dd1f0797859af7c434fbaf
[ "Apache-2.0" ]
null
null
null
Vicar/vicar_app/urls.py
cs-fullstack-fall-2018/django-form-post1-jpark1914
230ba02b30ef48bf86dd1f0797859af7c434fbaf
[ "Apache-2.0" ]
null
null
null
Vicar/vicar_app/urls.py
cs-fullstack-fall-2018/django-form-post1-jpark1914
230ba02b30ef48bf86dd1f0797859af7c434fbaf
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('',views.home, name='home'), path('game/', views.index, name='index'), path('game/<int:pk>/',views.detail, name='game'), path('game/add/', views.add, name='add') ]
25.1
53
0.621514
da43b01cc0df7ac2135421ffa3eafdbf0c7fd976
3,628
py
Python
PRL/genP.py
balasbk/game-theory
958e093e64799e2dd445d18bd9966251270f81e7
[ "MIT" ]
1
2020-08-08T09:25:27.000Z
2020-08-08T09:25:27.000Z
PRL/genP.py
makgyver/PRL
5ac125bd0bb68978507e4a5a1f1df4e39f67442d
[ "MIT" ]
1
2020-10-15T11:12:49.000Z
2020-10-15T11:12:49.000Z
PRL/genP.py
balasbk/game-theory
958e093e64799e2dd445d18bd9966251270f81e7
[ "MIT" ]
null
null
null
import numpy as np import random class GenP(object): """Abstract class which representes a generic preference generator. Every specific generator MUST inherit from this class.""" def __init__(self, X, y): """Initializes the preference generator. :param X: training instances :param...
29.737705
94
0.592062
77c7f69a03e1d70bdae438b82a05b17ddf030eb1
20,503
py
Python
Lib/test/test_fileio.py
0xb8/cpython-mingw
07ed5a75ac275da2ad9b00e9158b9940ff49acbc
[ "0BSD" ]
21
2019-11-21T03:44:53.000Z
2021-12-03T09:51:44.000Z
Lib/test/test_fileio.py
0xb8/cpython-mingw
07ed5a75ac275da2ad9b00e9158b9940ff49acbc
[ "0BSD" ]
73
2021-06-19T11:08:53.000Z
2022-03-20T08:10:32.000Z
Lib/test/test_fileio.py
0xb8/cpython-mingw
07ed5a75ac275da2ad9b00e9158b9940ff49acbc
[ "0BSD" ]
8
2021-07-14T21:55:18.000Z
2022-01-24T00:12:30.000Z
# Adapted from test_file.py by Daniel Stutzbach import sys import os import io import errno import unittest from array import array from weakref import proxy from functools import wraps from test.support import (TESTFN, TESTFN_UNICODE, check_warnings, run_unittest, make_bad_fd, cpython_only,...
33.069355
84
0.549724
4b7d6c6529b996ad22ab2e22202dde4e607a3606
545
py
Python
clinicaltrials/frontend/migrations/0020_auto_20180207_1355.py
chadmiller/clinicaltrials-act-tracker
d16f5ff7b1fde673e7b00cd674666a19b19bf092
[ "MIT" ]
13
2018-02-20T12:48:42.000Z
2022-03-09T01:55:23.000Z
clinicaltrials/frontend/migrations/0020_auto_20180207_1355.py
chadmiller/clinicaltrials-act-tracker
d16f5ff7b1fde673e7b00cd674666a19b19bf092
[ "MIT" ]
134
2018-02-19T08:42:54.000Z
2021-12-13T19:50:15.000Z
clinicaltrials/frontend/migrations/0020_auto_20180207_1355.py
chadmiller/clinicaltrials-act-tracker
d16f5ff7b1fde673e7b00cd674666a19b19bf092
[ "MIT" ]
3
2018-03-10T19:56:27.000Z
2019-05-03T15:29:30.000Z
# Generated by Django 2.0 on 2018-02-07 13:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('frontend', '0019_auto_20180122_1147'), ] operations = [ migrations.AlterField( model_name='trial', name='status', ...
28.684211
211
0.601835
4764b6be7af692808a91fc22599f83c008da6aa5
1,208
py
Python
yt_p2p/particles.py
brittonsmith/yt_p2p
f85e5033cd2db8fc0bb3a2c5f7a62e3c78666d51
[ "BSD-3-Clause-Clear" ]
null
null
null
yt_p2p/particles.py
brittonsmith/yt_p2p
f85e5033cd2db8fc0bb3a2c5f7a62e3c78666d51
[ "BSD-3-Clause-Clear" ]
null
null
null
yt_p2p/particles.py
brittonsmith/yt_p2p
f85e5033cd2db8fc0bb3a2c5f7a62e3c78666d51
[ "BSD-3-Clause-Clear" ]
null
null
null
""" particle stuff """ #----------------------------------------------------------------------------- # Copyright (c) Britton Smith <brittonsmith@gmail.com>. All rights reserved. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this soft...
34.514286
94
0.580298
53e756cf0d973541ad093d47e6b47dca95145b11
3,231
py
Python
pages/login_page.py
KKashpovski/test_moodle_project
8cd0a53fffe797c47d3b14cc3300c610467432e3
[ "Apache-2.0" ]
null
null
null
pages/login_page.py
KKashpovski/test_moodle_project
8cd0a53fffe797c47d3b14cc3300c610467432e3
[ "Apache-2.0" ]
null
null
null
pages/login_page.py
KKashpovski/test_moodle_project
8cd0a53fffe797c47d3b14cc3300c610467432e3
[ "Apache-2.0" ]
null
null
null
"""Интерактивное поведение страницы авторизации.""" import logging from selenium.webdriver.remote.webelement import WebElement from locators.admin_page_locators import CoursePageLocators from models.auth import AuthData from pages.base_page import BasePage from locators.login_page_locators import LoginPageLocators f...
36.303371
83
0.721139
fb42bba5fb242dc48bc3c8645cd47c195df3e831
6,017
py
Python
acdc_nn/cli.py
compbiomed-unito/acdc-nn
0800a5904c36302f19e48e2d2f7ddae9686f3366
[ "MIT" ]
2
2021-07-13T21:41:39.000Z
2022-01-27T23:51:10.000Z
acdc_nn/cli.py
compbiomed-unito/acdc-nn
0800a5904c36302f19e48e2d2f7ddae9686f3366
[ "MIT" ]
1
2021-09-15T15:53:39.000Z
2021-09-15T15:53:39.000Z
acdc_nn/cli.py
compbiomed-unito/acdc-nn
0800a5904c36302f19e48e2d2f7ddae9686f3366
[ "MIT" ]
4
2021-07-13T21:41:40.000Z
2022-01-27T16:41:49.000Z
from acdc_nn import acdc_nn from acdc_nn import util import ddgun import click from warnings import warn import functools class Substitution(click.ParamType): '''Click parameter class for substitutions''' name = 'amino acid substitution' def convert(self, value, param, ctx): if isinstance(value, ddgun.Substituti...
36.689024
222
0.728436
078e2dd258178612182da452d7cb7c1bbac1f9a1
5,985
py
Python
openmm_ramd/examples/hsp90_ramd_example_api.py
seekrcentral/openmm_ramd
8b0f5094f5c2cfd9d6b77132cc2eaf10d3513d7e
[ "MIT" ]
null
null
null
openmm_ramd/examples/hsp90_ramd_example_api.py
seekrcentral/openmm_ramd
8b0f5094f5c2cfd9d6b77132cc2eaf10d3513d7e
[ "MIT" ]
null
null
null
openmm_ramd/examples/hsp90_ramd_example_api.py
seekrcentral/openmm_ramd
8b0f5094f5c2cfd9d6b77132cc2eaf10d3513d7e
[ "MIT" ]
null
null
null
""" This sample script provides a template that one can use to run their own RAMD simulations. """ import time from sys import stdout import simtk.openmm.app as app import simtk.openmm as mm import simtk.unit as unit import parmed import mdtraj import numpy as np import openmm_ramd.base as base from openmm_ramd impo...
36.493902
151
0.738012
6dc2b66f2e19e5091513030a0aef58c85aeb6636
3,697
py
Python
tests/test_grism.py
ucl-exoplanets/wayne
48fd07588cbbab6f5a32038455e36d7fc6b89625
[ "MIT" ]
7
2017-05-30T09:01:50.000Z
2019-04-05T05:46:23.000Z
tests/test_grism.py
ucl-exoplanets/wayne
48fd07588cbbab6f5a32038455e36d7fc6b89625
[ "MIT" ]
1
2018-06-07T17:31:19.000Z
2018-06-07T19:38:27.000Z
tests/test_grism.py
ucl-exoplanets/wayne
48fd07588cbbab6f5a32038455e36d7fc6b89625
[ "MIT" ]
2
2018-04-30T23:16:22.000Z
2020-09-30T18:12:47.000Z
import unittest import numpy as np import numpy.testing from wayne import grism class Test_G141_Grism(unittest.TestCase): def setUp(self): self.g141_grism = grism.G141() def test__init__(self): grism.G141() # pass if no exceptions def test_get_pixel_wl(self): self.assertAlmost...
45.641975
109
0.705437
aab9cd307978422a7df5fd48df08cd48b6d0146f
254
py
Python
patterns/util/page_loader.py
constanm/selenium-py
38ef4300ff572014688cc3efe365822eeaea0856
[ "MIT" ]
null
null
null
patterns/util/page_loader.py
constanm/selenium-py
38ef4300ff572014688cc3efe365822eeaea0856
[ "MIT" ]
null
null
null
patterns/util/page_loader.py
constanm/selenium-py
38ef4300ff572014688cc3efe365822eeaea0856
[ "MIT" ]
null
null
null
def require_loaded(func): def load_page(page, *params, **kwds): if not page.is_loaded(): page.load() assert page.is_loaded(), "page should be loaded by now" return func(page, *params, **kwds) return load_page
28.222222
63
0.606299
11b6608b7114676b646efdfde5d0c0e1160099d7
11,295
py
Python
pyvista/plotting/camera.py
rohankumardubey/pyvista
ec5aa343d857d0c7e6a79aeeba340797bc868ced
[ "MIT" ]
1
2021-05-12T07:38:46.000Z
2021-05-12T07:38:46.000Z
pyvista/plotting/camera.py
rohankumardubey/pyvista
ec5aa343d857d0c7e6a79aeeba340797bc868ced
[ "MIT" ]
null
null
null
pyvista/plotting/camera.py
rohankumardubey/pyvista
ec5aa343d857d0c7e6a79aeeba340797bc868ced
[ "MIT" ]
null
null
null
"""Module containing pyvista implementation of vtkCamera.""" import numpy as np import pyvista from pyvista import _vtk class Camera(_vtk.vtkCamera): """PyVista wrapper for the VTK Camera class. Examples -------- Create a camera at the pyvista module level >>> import pyvista >>> camera = p...
25.554299
101
0.535812
f4c1ffa0dca42847cd0008bcf2d7680087ac45b4
1,540
py
Python
gfg/arrays/kth_largest_sum_contiguous_subarray.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
1
2019-04-18T03:29:02.000Z
2019-04-18T03:29:02.000Z
gfg/arrays/kth_largest_sum_contiguous_subarray.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
gfg/arrays/kth_largest_sum_contiguous_subarray.py
rrwt/daily-coding-challenge
b16fc365fd142ebab429e605cb146c8bb0bc97a2
[ "MIT" ]
null
null
null
""" Given an array of integers. Write a program to find the K-th largest sum of contiguous subarray within the array of numbers which has negative and positive numbers. Input: a[] = {20, -5, -1}, k = 3 Output: 14 Explanation: All sum of contiguous subarrays are (20, 15, 14, -5, -6, -1) so the 3rd largest sum is 14. In...
31.428571
88
0.619481
95e69e223c0338693b270e860ccd562255eb4384
3,159
py
Python
dataset/inat.py
xiaofanustc/cifar_ssl
23537b91469cf470cb7a92b2fe8b7e372b39f201
[ "MIT" ]
5
2021-07-21T05:59:55.000Z
2022-01-08T08:43:25.000Z
dataset/inat.py
xujinglin/imbalanced-semi-self
7cccaa2a1415b8dac485bd520e7814ed3c2ea31d
[ "MIT" ]
null
null
null
dataset/inat.py
xujinglin/imbalanced-semi-self
7cccaa2a1415b8dac485bd520e7814ed3c2ea31d
[ "MIT" ]
1
2021-07-31T05:25:24.000Z
2021-07-31T05:25:24.000Z
from torch.utils.data import Dataset, DataLoader from torchvision import transforms import os from PIL import Image RGB_statistics = { 'iNaturalist18': { 'mean': [0.466, 0.471, 0.380], 'std': [0.195, 0.194, 0.192] } } def get_data_transform(split, rgb_mean, rbg_std): data_transforms = { ...
34.714286
117
0.615068
2c799c3555b769d317c45347b87a7f5477c0b4fa
1,728
py
Python
cvnets/layers/random_layers.py
KelOdgSmile/ml-cvnets
503ec3b4ec187cfa0ed451d0f61de22f669b0081
[ "AML" ]
1
2021-12-20T09:25:18.000Z
2021-12-20T09:25:18.000Z
cvnets/layers/random_layers.py
footh/ml-cvnets
d9064fe7e7a2d6a7a9817df936432856a0500a25
[ "AML" ]
null
null
null
cvnets/layers/random_layers.py
footh/ml-cvnets
d9064fe7e7a2d6a7a9817df936432856a0500a25
[ "AML" ]
null
null
null
# # For licensing see accompanying LICENSE file. # Copyright (C) 2020 Apple Inc. All Rights Reserved. # from torch import Tensor from .base_layer import BaseLayer import random from utils.math_utils import bound_fn from collections import OrderedDict class RandomApply(BaseLayer): """ Apply layers randoml...
33.882353
113
0.605903
7fb10b4d75a59e098c4c632e9382de6e77677137
7,518
py
Python
mmtrack/datasets/got10k_dataset.py
wenry55/mmtracking
89e3d4e7a0d16d56d74f9ed1fd3fb9b5b92c9f1d
[ "Apache-2.0" ]
null
null
null
mmtrack/datasets/got10k_dataset.py
wenry55/mmtracking
89e3d4e7a0d16d56d74f9ed1fd3fb9b5b92c9f1d
[ "Apache-2.0" ]
null
null
null
mmtrack/datasets/got10k_dataset.py
wenry55/mmtracking
89e3d4e7a0d16d56d74f9ed1fd3fb9b5b92c9f1d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import glob import os import os.path as osp import shutil import time import numpy as np from mmdet.datasets import DATASETS from .base_sot_dataset import BaseSOTDataset @DATASETS.register_module() class GOT10kDataset(BaseSOTDataset): """GOT10k Dataset of single o...
40.858696
79
0.548018
f902ae452b11069414a9270940293aaa4873d9ad
2,228
py
Python
testing/test_sct_label_utils.py
kousu-1/spinalcordtoolbox
9b1c2179fe31be489dab7f08c43e9bd5902931c0
[ "MIT" ]
null
null
null
testing/test_sct_label_utils.py
kousu-1/spinalcordtoolbox
9b1c2179fe31be489dab7f08c43e9bd5902931c0
[ "MIT" ]
null
null
null
testing/test_sct_label_utils.py
kousu-1/spinalcordtoolbox
9b1c2179fe31be489dab7f08c43e9bd5902931c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python ######################################################################################### # # Test function sct_label_utils # # --------------------------------------------------------------------------------------- # Copyright (c) 2014 Polytechnique Montreal <www.neuro.polymtl.ca> # Author: Augus...
33.757576
120
0.58079
5d91e9ccaf9c4c621f5bc5ab89c298c3ebecce86
10,109
py
Python
nova/tests/functional/libvirt/test_reshape.py
nfvri/nova
2ce5a440c44eb512f07adacd313304e226bb56a0
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/libvirt/test_reshape.py
nfvri/nova
2ce5a440c44eb512f07adacd313304e226bb56a0
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/libvirt/test_reshape.py
nfvri/nova
2ce5a440c44eb512f07adacd313304e226bb56a0
[ "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 # ...
44.730088
79
0.62934
2a5da2ceb023068a38d2e7cf71ca796c155a5286
11,394
py
Python
FCB1010/SpecialTransportComponent.py
gaelhuot/FCB1010-Ableton-live
d3cbe36a3d85d5632a09517f7137c68a2206598f
[ "Apache-2.0" ]
2
2021-10-08T11:46:52.000Z
2021-12-15T20:15:53.000Z
FCB1010/SpecialTransportComponent.py
gaelhuot/FCB1010-Ableton-live
d3cbe36a3d85d5632a09517f7137c68a2206598f
[ "Apache-2.0" ]
null
null
null
FCB1010/SpecialTransportComponent.py
gaelhuot/FCB1010-Ableton-live
d3cbe36a3d85d5632a09517f7137c68a2206598f
[ "Apache-2.0" ]
2
2021-10-17T02:24:55.000Z
2022-03-31T02:41:30.000Z
import Live from _Framework.TransportComponent import TransportComponent from _Framework.ButtonElement import ButtonElement from _Framework.EncoderElement import EncoderElement #added from _Framework.SubjectSlot import subject_slot #added #TEMPO_TOP = 300.0 #TEMPO_BOTTOM = 40.0 from .MIDI_Map import TEMPO_TOP ...
42.04428
157
0.628138
5ffc64cf688e2e686baf3cc94801bd15d44e21d5
381
py
Python
host/control_flow_constants.py
laochanlam/cheetah-release
a836bd31f02fb9f612afaf1f90d4d2638c8294e7
[ "MIT" ]
10
2020-06-14T15:17:19.000Z
2022-03-30T19:58:41.000Z
host/control_flow_constants.py
laochanlam/cheetah-release
a836bd31f02fb9f612afaf1f90d4d2638c8294e7
[ "MIT" ]
null
null
null
host/control_flow_constants.py
laochanlam/cheetah-release
a836bd31f02fb9f612afaf1f90d4d2638c8294e7
[ "MIT" ]
3
2020-06-25T22:47:05.000Z
2022-01-26T04:07:28.000Z
CHEETAH_MASTER_IP = '10.243.38.88' CHEETAH_MASTER_PORT = 23456 CHEETAH_WORKER_NODES = 1 ...
1.282828
34
0.186352
016db7b4a9ffd70a1575d693a22c4646caab0fde
6,405
py
Python
data/nyu_depth_raw_loader.py
linpeisensh/sim
e849d76caa0a20507436d4a6f9aab06e659ae6b2
[ "MIT" ]
117
2019-11-17T04:27:58.000Z
2022-03-31T20:41:27.000Z
data/nyu_depth_raw_loader.py
linpeisensh/sim
e849d76caa0a20507436d4a6f9aab06e659ae6b2
[ "MIT" ]
6
2019-12-04T23:08:38.000Z
2022-03-07T10:44:08.000Z
data/nyu_depth_raw_loader.py
linpeisensh/sim
e849d76caa0a20507436d4a6f9aab06e659ae6b2
[ "MIT" ]
29
2019-11-20T06:09:23.000Z
2022-03-07T10:21:13.000Z
from __future__ import division import argparse import numpy as np from path import Path from pebble import ProcessPool import scipy.misc import sys from tqdm import tqdm from collections import Counter import torch parser = argparse.ArgumentParser() parser.add_argument("dataset_dir", metavar='DIR', ...
37.45614
123
0.588915
ec09787ec5050d50d1e06cee8f138ff773a886c6
1,533
py
Python
poco/utils/simplerpc/rpcclient.py
felixonmars/Poco
f44bf05501bb54561c15ef1b7ad5e5342ba96110
[ "Apache-2.0" ]
null
null
null
poco/utils/simplerpc/rpcclient.py
felixonmars/Poco
f44bf05501bb54561c15ef1b7ad5e5342ba96110
[ "Apache-2.0" ]
null
null
null
poco/utils/simplerpc/rpcclient.py
felixonmars/Poco
f44bf05501bb54561c15ef1b7ad5e5342ba96110
[ "Apache-2.0" ]
null
null
null
# encoding=utf-8 from simplerpc import RpcAgent import simplerpc import time class RpcClient(RpcAgent): CONNECTING, CONNECTED, CLOSED = 1, 2, 3 """docstring for RpcClient""" def __init__(self, conn): super(RpcClient, self).__init__() self.conn = conn self.conn.connect_cb = self....
25.55
60
0.582518
4f938719152240e3743c57c0bb7840194b6c6d46
633
py
Python
code/api/dashboard.py
CiscoSecurity/tr-05-docker-relay
8cf9cced02eb338d06d80419b35e563156ac6c9f
[ "MIT" ]
null
null
null
code/api/dashboard.py
CiscoSecurity/tr-05-docker-relay
8cf9cced02eb338d06d80419b35e563156ac6c9f
[ "MIT" ]
null
null
null
code/api/dashboard.py
CiscoSecurity/tr-05-docker-relay
8cf9cced02eb338d06d80419b35e563156ac6c9f
[ "MIT" ]
1
2021-03-12T14:06:46.000Z
2021-03-12T14:06:46.000Z
from flask import Blueprint from api.utils import jsonify_data, get_jwt, get_json from api.schemas import DashboardTileSchema, DashboardTileDataSchema dashboard_api = Blueprint('dashboard', __name__) @dashboard_api.route('/tiles', methods=['POST']) def tiles(): _ = get_jwt() return jsonify_data([]) @dashbo...
24.346154
68
0.709321
24e95fc227e4ca3903b02431eb8ddcdc2c5edec1
23,649
py
Python
tensorflow/python/ops/linalg_grad.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/linalg_grad.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/linalg_grad.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. 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...
39.746218
81
0.653854
e23ead7e6c3e444596f035fbf46988ec1b586e00
13,870
py
Python
byteblower/samples/wireless_endpoint/ipv6_tcp.py
shmir/PyByteBlower
fe6962a8f1c5b1fde3184bc05b4d16be7ddb628f
[ "BSD-3-Clause" ]
null
null
null
byteblower/samples/wireless_endpoint/ipv6_tcp.py
shmir/PyByteBlower
fe6962a8f1c5b1fde3184bc05b4d16be7ddb628f
[ "BSD-3-Clause" ]
null
null
null
byteblower/samples/wireless_endpoint/ipv6_tcp.py
shmir/PyByteBlower
fe6962a8f1c5b1fde3184bc05b4d16be7ddb628f
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import time import random import datetime from byteblower.byteblowerll.byteblower import ByteBlower, DeviceStatus_Reserved import sys configuration = { # Address (IP or FQDN) of the ByteBlower server to use 'server_address': 'byteblower-tp-1300.lab.byteblower.excentis.co...
39.070423
110
0.661067
8b4ae306ce123d222d8f26a0f8932861941dd27d
777
py
Python
src/model/experiment.py
VinGPan/classification_model_search
fab7ce6fc131b858f1b79633e0f7b86d1446c93d
[ "MIT" ]
null
null
null
src/model/experiment.py
VinGPan/classification_model_search
fab7ce6fc131b858f1b79633e0f7b86d1446c93d
[ "MIT" ]
null
null
null
src/model/experiment.py
VinGPan/classification_model_search
fab7ce6fc131b858f1b79633e0f7b86d1446c93d
[ "MIT" ]
null
null
null
from src.model.build_models import build_models from src.model.compute_features import compute_features from src.model.data_cleansing import cleanse from src.model.report import report from src.model.split import split from src.model.utils import read_args, read_yml, makedir from src.utils.logging import logger def r...
28.777778
58
0.750322
37cec0fe22a79e72cdbdab7484adbeb3a793936b
9,588
py
Python
predict_augmented_npy_maxout2048_extradense.py
pcoster/kaggle-galaxies
bb1908d23ed80e9aeb706166007830760769daf0
[ "BSD-3-Clause" ]
374
2015-01-05T02:18:47.000Z
2021-12-13T10:30:06.000Z
predict_augmented_npy_maxout2048_extradense.py
Adaydl/kaggle-galaxies
bb1908d23ed80e9aeb706166007830760769daf0
[ "BSD-3-Clause" ]
5
2015-01-02T17:17:08.000Z
2016-01-05T18:45:38.000Z
predict_augmented_npy_maxout2048_extradense.py
Adaydl/kaggle-galaxies
bb1908d23ed80e9aeb706166007830760769daf0
[ "BSD-3-Clause" ]
173
2015-01-05T14:26:37.000Z
2021-10-10T14:17:58.000Z
""" Load an analysis file and redo the predictions on the validation set / test set, this time with augmented data and averaging. Store them as numpy files. """ import numpy as np # import pandas as pd import theano import theano.tensor as T import layers import cc_layers import custom import load_data import realtime...
39.45679
214
0.744994
6d7e561a529ea63ba6d2abbd47ec17d39cc7e98e
65,487
py
Python
controllers/ajax.py
Kandongwe/RunestoneServer
f555868521b3717beec0ec42dbcbcb443c64686c
[ "MIT" ]
null
null
null
controllers/ajax.py
Kandongwe/RunestoneServer
f555868521b3717beec0ec42dbcbcb443c64686c
[ "MIT" ]
null
null
null
controllers/ajax.py
Kandongwe/RunestoneServer
f555868521b3717beec0ec42dbcbcb443c64686c
[ "MIT" ]
null
null
null
# ************************* # |docname| - Runestone API # ************************* # This module implements the API that the Runestone Components use to communicate with a Runestone Server. # **Most of this file is Deprecated** # **Do not** make any changes to the following functions. They will be removed in an upcom...
34.340325
379
0.554873
aafc8d2e72cc52f6f98aa56679df42389f794787
7,529
py
Python
src/biokbase/narrative/tests/test_job.py
Tianhao-Gu/narrative-jupyterlab
94a4b4a6bbb583f65ce50c8f8343083aceafff05
[ "MIT" ]
2
2019-05-03T10:12:56.000Z
2020-10-26T05:35:16.000Z
src/biokbase/narrative/tests/test_job.py
Tianhao-Gu/narrative-jupyterlab
94a4b4a6bbb583f65ce50c8f8343083aceafff05
[ "MIT" ]
9
2019-05-19T04:13:55.000Z
2022-03-23T19:18:44.000Z
src/biokbase/narrative/tests/test_job.py
Tianhao-Gu/narrative-jupyterlab
94a4b4a6bbb583f65ce50c8f8343083aceafff05
[ "MIT" ]
2
2019-03-12T17:41:10.000Z
2019-04-24T15:33:50.000Z
import unittest import mock import mock import biokbase.narrative.jobs.jobmanager from biokbase.narrative.jobs.job import Job from .util import TestConfig import os from IPython.display import ( HTML, Javascript ) from .narrative_mock.mockclients import get_mock_client from .narrative_mock.mockcomm import MockC...
38.413265
110
0.64298
32e11dbb3067ab2d75bfea04e54babba970f55fd
662
py
Python
src/web/server.py
topinfrassi01/Cumulus
13ec845f8e979653a51f9fe5f424c81923fffd92
[ "Apache-2.0" ]
null
null
null
src/web/server.py
topinfrassi01/Cumulus
13ec845f8e979653a51f9fe5f424c81923fffd92
[ "Apache-2.0" ]
null
null
null
src/web/server.py
topinfrassi01/Cumulus
13ec845f8e979653a51f9fe5f424c81923fffd92
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request from services.get_keywords_for_date import get_keywords_for_date from services.get_articles import get_articles from datetime import date from urllib import parse import json app = Flask(__name__) @app.route('/') def root(): keywords = get_keywords_for_date((date...
22.827586
65
0.73716
143812cd34df00be8eb35c4da9070c598812ff8a
68,091
py
Python
kleister/api/user_api.py
kleister/kleister-python
321120b96db59e20b30853b44af3bec6b667db05
[ "Apache-2.0" ]
null
null
null
kleister/api/user_api.py
kleister/kleister-python
321120b96db59e20b30853b44af3bec6b667db05
[ "Apache-2.0" ]
1
2018-03-31T12:33:37.000Z
2018-03-31T12:33:37.000Z
kleister/api/user_api.py
kleister/kleister-python
321120b96db59e20b30853b44af3bec6b667db05
[ "Apache-2.0" ]
null
null
null
""" Kleister OpenAPI API definition for Kleister, manage mod packs for Minecraft # noqa: E501 The version of the OpenAPI document: 1.0.0-alpha1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from kleister.api_client import ApiClient, Endpoint as _...
41.142598
88
0.494397
2ad41f64a55f8393362e82a696f036bfa0f4d399
15,502
py
Python
python/paddle/nn/__init__.py
wangwin/Paddle
b7d185d6caf78630d228dfcb90750a21d637583d
[ "Apache-2.0" ]
null
null
null
python/paddle/nn/__init__.py
wangwin/Paddle
b7d185d6caf78630d228dfcb90750a21d637583d
[ "Apache-2.0" ]
null
null
null
python/paddle/nn/__init__.py
wangwin/Paddle
b7d185d6caf78630d228dfcb90750a21d637583d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. 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 app...
57.414815
87
0.8028
e3f0d92a2ec4e98ce6f7edfbb7abe366e04972bc
6,866
py
Python
lasaft/source_separation/conditioned/cunet/models/dcun_tfc_film_lasaft.py
roger-tseng/Conditioned-Source-Separation-LaSAFT
47cf2b7d11ac442f58127afb4ed5a8af360b20d9
[ "MIT" ]
2
2022-01-03T08:22:24.000Z
2022-02-10T23:25:41.000Z
lasaft/source_separation/conditioned/cunet/models/dcun_tfc_film_lasaft.py
ws-choi/LightSAFT-Net-for-MDX-Challenge
bd38f44cad681deb7f1cf296b2efdd4c018c8212
[ "MIT" ]
null
null
null
lasaft/source_separation/conditioned/cunet/models/dcun_tfc_film_lasaft.py
ws-choi/LightSAFT-Net-for-MDX-Challenge
bd38f44cad681deb7f1cf296b2efdd4c018c8212
[ "MIT" ]
3
2021-05-27T13:25:19.000Z
2021-08-05T11:34:06.000Z
import inspect from argparse import ArgumentParser import torch from torch import nn from lasaft.source_separation.conditioned.LaSAFT import TFC_LaSAFT from lasaft.source_separation.conditioned.cunet.dcun_film import DenseCUNet_FiLM, DenseCUNet_FiLM_Framework from lasaft.source_separation.conditioned.loss_functions im...
41.612121
107
0.599913
c3ac20d3fc9b6bc1560422184b6a8b2ba29603bf
1,750
py
Python
data/p4VQE/R4/benchmark/startCirq649.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startCirq649.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startCirq649.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=12 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
27.777778
77
0.693143
94576bf2550330a3bb745e959d6748e9ac809060
2,569
py
Python
examples/framework_examples/dqn_per.py
1abner1/machin
d10727b52d981c898e31cdd20b48a3d972612bb6
[ "MIT" ]
1
2021-10-08T18:38:50.000Z
2021-10-08T18:38:50.000Z
examples/framework_examples/dqn_per.py
1abner1/machin
d10727b52d981c898e31cdd20b48a3d972612bb6
[ "MIT" ]
null
null
null
examples/framework_examples/dqn_per.py
1abner1/machin
d10727b52d981c898e31cdd20b48a3d972612bb6
[ "MIT" ]
null
null
null
from machin.frame.algorithms import DQNPer from machin.utils.logging import default_logger as logger import torch as t import torch.nn as nn import gym # configurations env = gym.make("CartPole-v0") observe_dim = 4 action_num = 2 max_episodes = 1000 max_steps = 200 solved_reward = 190 solved_repeat = 5 # model defin...
30.583333
82
0.567925
61f5661ef6e5ae78cf89c16163469b615f9c01c8
3,792
py
Python
ckanext/resourceproxy/blueprint.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
58
2015-01-11T09:05:15.000Z
2022-03-17T23:44:07.000Z
ckanext/resourceproxy/blueprint.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
1,467
2015-01-01T16:47:44.000Z
2022-02-28T16:51:20.000Z
ckanext/resourceproxy/blueprint.py
ziveo/ckan
f4cfe5e28789df58b2bf7e73e5989ffda00e5c5c
[ "Apache-2.0" ]
17
2015-03-13T18:05:05.000Z
2020-11-06T13:55:32.000Z
# encoding: utf-8 from logging import getLogger import requests from six.moves.urllib.parse import urlsplit from flask import Blueprint, make_response import ckan.lib.base as base import ckan.logic as logic from ckan.common import config, _ from ckan.plugins.toolkit import (asint, abort, get_action, c) log = getLog...
33.557522
79
0.63423
c8a14b4587f76fa408024070978fa090eebff443
83
py
Python
xfeat/base/__init__.py
Drunkar/xfeat
7eced097072a67f06548cc778b27b2310c5e5511
[ "MIT" ]
304
2020-06-19T05:00:14.000Z
2022-03-19T19:39:04.000Z
xfeat/base/__init__.py
Drunkar/xfeat
7eced097072a67f06548cc778b27b2310c5e5511
[ "MIT" ]
4
2020-06-28T11:30:33.000Z
2022-02-17T14:31:39.000Z
xfeat/base/__init__.py
Drunkar/xfeat
7eced097072a67f06548cc778b27b2310c5e5511
[ "MIT" ]
15
2020-06-19T08:34:56.000Z
2022-02-17T14:51:30.000Z
from xfeat.base._mixin import TransformerMixin, OptunaSelectorMixin, SelectorMixin
41.5
82
0.879518
352d8d933ebf483eef8d8a10f2b00b5be7060f97
457
py
Python
codes_/1010_Pairs_of_Songs_With_Total_Durations_Divisible_by_60.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/1010_Pairs_of_Songs_With_Total_Durations_Divisible_by_60.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/1010_Pairs_of_Songs_With_Total_Durations_Divisible_by_60.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
# %% [1010. Pairs of Songs With Total Durations Divisible by 60](https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/) # 問題:60の倍数となるtimeの2つの要素のペア数を返せ # 解法:collections.Counterを用いる class Solution: def numPairsDivisibleBy60(self, time: List[int]) -> int: c = collections.Counter([t...
45.7
148
0.645514
5b2be9167156d5eea66b339c225e957ab32d2dc2
1,791
py
Python
examples/examples_perf_test.py
m-szalay/Cirq
1bd083a87fdf49212f347d88f15713e90cc72f8f
[ "Apache-2.0" ]
null
null
null
examples/examples_perf_test.py
m-szalay/Cirq
1bd083a87fdf49212f347d88f15713e90cc72f8f
[ "Apache-2.0" ]
null
null
null
examples/examples_perf_test.py
m-szalay/Cirq
1bd083a87fdf49212f347d88f15713e90cc72f8f
[ "Apache-2.0" ]
null
null
null
import cirq import examples.bell_inequality import examples.bernstein_vazirani import examples.grover import examples.place_on_bristlecone import examples.hello_qubit import examples.quantum_fourier_transform import examples.bcs_mean_field import examples.phase_estimator import examples.basic_arithmetic import examples...
28.428571
71
0.815745
3d6f5e6828de9a3dcba2545ac8f8aa2ad031b8ac
10,641
py
Python
ssguan/ignitor/base/error.py
samuelbaizg/ssguan
97def0609d61e40472554464470758b5fb9eca35
[ "Apache-2.0" ]
1
2015-07-14T14:24:05.000Z
2015-07-14T14:24:05.000Z
ssguan/ignitor/base/error.py
samuelbaizg/ssguan
97def0609d61e40472554464470758b5fb9eca35
[ "Apache-2.0" ]
null
null
null
ssguan/ignitor/base/error.py
samuelbaizg/ssguan
97def0609d61e40472554464470758b5fb9eca35
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015 www.suishouguan.com # # Licensed under the Private License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://github.com/samuelbaizg/ssguan/blob/master/LICENSE # # Unless re...
31.114035
181
0.620148
97fd1baee2671bedcf292097f58571ae06a2cdf7
383
py
Python
baselines/deepq/__init__.py
seungjaeryanlee/baselines-tf2
299c2e6fb0b1dc8dd5f25c826eb004cf276a5bfe
[ "MIT" ]
10
2019-06-18T16:20:20.000Z
2021-01-10T04:18:07.000Z
baselines/deepq/__init__.py
seungjaeryanlee/baselines-tf2
299c2e6fb0b1dc8dd5f25c826eb004cf276a5bfe
[ "MIT" ]
5
2019-07-02T03:11:00.000Z
2020-07-27T17:32:41.000Z
baselines/deepq/__init__.py
seungjaeryanlee/baselines-tf2
299c2e6fb0b1dc8dd5f25c826eb004cf276a5bfe
[ "MIT" ]
6
2019-06-03T23:03:40.000Z
2021-03-09T06:51:28.000Z
from baselines.deepq import models # noqa from baselines.deepq.deepq_learner import DEEPQ #noqa from baselines.deepq.deepq import learn # noqa from baselines.deepq.replay_buffer import ReplayBuffer, PrioritizedReplayBuffer # noqa def wrap_atari_dqn(env): from baselines.common.atari_wrappers import wrap_deepmin...
42.555556
87
0.817232
9e4d7281dfb66b59f488d0c889022130df4e7801
716
py
Python
src/charma/persons/directors/decorators.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-01-16T23:36:10.000Z
2020-01-16T23:36:10.000Z
src/charma/persons/directors/decorators.py
mononobi/imovie-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
24
2020-06-08T18:27:04.000Z
2021-06-06T12:01:39.000Z
src/charma/persons/directors/decorators.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-12-20T05:29:04.000Z
2020-12-20T05:29:04.000Z
# -*- coding: utf-8 -*- """ directors decorators module. """ import charma.persons.directors.services as director_services def director_hook(): """ decorator to register a director hook. :raises InvalidDirectorHookTypeError: invalid director hook type error. :returns: director hook class. :rtyp...
19.888889
75
0.638268
194667fbce715d84e883b96c1efccc1d258536af
305
py
Python
data/multilingual/Latn.KDE/Serif_12/pdf_to_json_test_Latn.KDE_Serif_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.KDE/Serif_12/pdf_to_json_test_Latn.KDE_Serif_12.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.KDE/Serif_12/pdf_to_json_test_Latn.KDE_Serif_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.KDE/Serif_12/udhr_Latn.KDE_Serif_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.5
75
0.813115
112896c78c0934e782bbb95bb051cdf0272d0765
410
py
Python
webdjango/migrations/0003_address_street_address_3.py
myog-io/WebDjangular
73d3c40aa449eec5acc59d4493ee94059bddabbd
[ "MIT" ]
1
2018-09-14T15:17:19.000Z
2018-09-14T15:17:19.000Z
webdjango/migrations/0003_address_street_address_3.py
MyOwnGamesLLC/WebDjangular
73d3c40aa449eec5acc59d4493ee94059bddabbd
[ "MIT" ]
41
2018-12-16T16:58:54.000Z
2019-02-22T20:08:58.000Z
webdjango/migrations/0003_address_street_address_3.py
myog-io/WebDjangular
73d3c40aa449eec5acc59d4493ee94059bddabbd
[ "MIT" ]
1
2019-12-10T09:32:49.000Z
2019-12-10T09:32:49.000Z
# Generated by Django 2.1.4 on 2019-01-22 16:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('webdjango', '0002_auto_20181222_2028'), ] operations = [ migrations.AddField( model_name='address', name='street_add...
21.578947
63
0.614634
513cca381242917ae4dd8a31aa893f598754a716
30,820
py
Python
luigi/hadoop.py
mulby/luigi
230380cc69604550defc5db0f666e0919b015a3c
[ "Apache-2.0" ]
null
null
null
luigi/hadoop.py
mulby/luigi
230380cc69604550defc5db0f666e0919b015a3c
[ "Apache-2.0" ]
null
null
null
luigi/hadoop.py
mulby/luigi
230380cc69604550defc5db0f666e0919b015a3c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 Spotify AB # # 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, s...
37.043269
193
0.606587
b8b979bb7ad11dd4bfe266301a21e89e2cb7b90e
979
py
Python
Part 3/Chapter 07/Exercises/exercise_53.py
phuycke/Practice-of-computing-using-Python
9e477bcaecb0e447dfa7184d2071ca338801c86f
[ "MIT" ]
1
2019-08-13T11:12:59.000Z
2019-08-13T11:12:59.000Z
Part 3/Chapter 07/Exercises/exercise_53.py
phuycke/Practice-of-computing-using-Python
9e477bcaecb0e447dfa7184d2071ca338801c86f
[ "MIT" ]
null
null
null
Part 3/Chapter 07/Exercises/exercise_53.py
phuycke/Practice-of-computing-using-Python
9e477bcaecb0e447dfa7184d2071ca338801c86f
[ "MIT" ]
1
2021-05-16T11:42:19.000Z
2021-05-16T11:42:19.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: Pieter Huycke email: pieter.huycke@ugent.be GitHub: phuycke """ #%% def hole_counter(string = str): holes = 0 for letter in string: if letter in ["a", "A" "b", "B", "d", "D" "e", "g", "o", "O" "p", "P", "q", "Q"]: holes...
21.282609
94
0.501532
341bb3eb29d46af5ff438987f7f34718f837653a
9,236
py
Python
Source/boost_1_33_1/libs/compatibility/generate_cpp_c_headers.py
spxuw/RFIM
32b78fbb90c7008b1106b0cff4f8023ae83c9b6d
[ "MIT" ]
4
2021-07-31T13:56:01.000Z
2021-11-13T02:55:10.000Z
Source/boost_1_33_1/libs/compatibility/generate_cpp_c_headers.py
spxuw/RFIM
32b78fbb90c7008b1106b0cff4f8023ae83c9b6d
[ "MIT" ]
null
null
null
Source/boost_1_33_1/libs/compatibility/generate_cpp_c_headers.py
spxuw/RFIM
32b78fbb90c7008b1106b0cff4f8023ae83c9b6d
[ "MIT" ]
7
2021-08-31T14:34:23.000Z
2022-01-19T08:25:58.000Z
# This Python script creates a full set of C++ C header files that # are missing on some platforms. # # Usage: # mkdir cpp_c_headers # cd cpp_c_headers # python generate_cpp_c_headers.py # # The files created by this script are in the directory: # root/boost/compatibility/cpp_c_headers # # Supported platforms: ...
34.207407
79
0.580771
3c6d078fda690a62852c4b6dd4570a0e2716036f
432
py
Python
setup.py
wnormandin/df-backend
94006f66ee16cf932b960751c9d491b39dcff0d0
[ "MIT" ]
null
null
null
setup.py
wnormandin/df-backend
94006f66ee16cf932b960751c9d491b39dcff0d0
[ "MIT" ]
1
2019-08-04T20:38:19.000Z
2019-08-04T20:38:19.000Z
setup.py
wnormandin/df-backend
94006f66ee16cf932b960751c9d491b39dcff0d0
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from df_backend import __version__ setup( name="df_backend", version=__version__, install_requires=[ 'django', 'django-rest-framework', 'django-waitress' ], author='William Normandin', author_email='bill@pokeybill.us', ...
24
60
0.666667
844ef88e46a93cfeb1e4a8e26d40a9b1f6960df4
2,082
py
Python
src/io_graph.py
SergeyKuz1001/formal_languages_autumn_2020
0cdf5cf16cfe609c88df34b5ee47b4e980f44b69
[ "Apache-2.0" ]
null
null
null
src/io_graph.py
SergeyKuz1001/formal_languages_autumn_2020
0cdf5cf16cfe609c88df34b5ee47b4e980f44b69
[ "Apache-2.0" ]
5
2020-09-09T16:44:54.000Z
2020-12-17T12:15:05.000Z
src/io_graph.py
SergeyKuz1001/formal_languages_autumn_2020
0cdf5cf16cfe609c88df34b5ee47b4e980f44b69
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Sergey Kuzivanov # # 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 i...
34.131148
75
0.652738
d12698490fd13d7d8e31b7af51cdab1d6c3a659e
2,843
py
Python
tests/python/pants_test/tasks/test_ivy_resolve_integration.py
arloherrine/pants
5f98f7734590eb21a2992a4c28415f838a2e6927
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/tasks/test_ivy_resolve_integration.py
arloherrine/pants
5f98f7734590eb21a2992a4c28415f838a2e6927
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/tasks/test_ivy_resolve_integration.py
arloherrine/pants
5f98f7734590eb21a2992a4c28415f838a2e6927
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import re ...
34.670732
93
0.674991