hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b60cefb60f76a4f016c09e520a3873524a38f0fc | 499 | py | Python | trinity/tests/test_bonds.py | elliothevel/trinity | af4425e6432f6edd7c56478b039eab654c5fec26 | [
"MIT"
] | null | null | null | trinity/tests/test_bonds.py | elliothevel/trinity | af4425e6432f6edd7c56478b039eab654c5fec26 | [
"MIT"
] | null | null | null | trinity/tests/test_bonds.py | elliothevel/trinity | af4425e6432f6edd7c56478b039eab654c5fec26 | [
"MIT"
] | null | null | null | import trinity.bonds as bonds
import trinity.returns as returns
def test_simulate_returns(expected_bond_returns):
"""Ensure simulated returns match published results."""
interest_rates = [(year['rate'], year['rate_long'])
for year in returns.read_shiller()]
simulated_returns = bonds... | 35.642857 | 77 | 0.727455 |
b60cff1aa58f85db479507a365921e43a1e5cf4d | 705 | py | Python | karutakeqingautoreact/karutakeqingautoreact.py | RealCyGuy/modmail-plugins | e515f827eb3fedf8456fbb5ff65a4e5fa81ab72e | [
"MIT"
] | 8 | 2020-01-03T19:01:59.000Z | 2021-04-14T13:30:49.000Z | karutakeqingautoreact/karutakeqingautoreact.py | RealCyGuy/modmail-plugins | e515f827eb3fedf8456fbb5ff65a4e5fa81ab72e | [
"MIT"
] | 4 | 2020-12-22T12:51:03.000Z | 2022-01-05T20:17:00.000Z | karutakeqingautoreact/karutakeqingautoreact.py | RealCyGuy/modmail-plugins | e515f827eb3fedf8456fbb5ff65a4e5fa81ab72e | [
"MIT"
] | 27 | 2020-01-17T18:05:29.000Z | 2022-02-04T07:38:52.000Z | import discord
from discord.ext import commands
| 29.375 | 70 | 0.652482 |
b60ef291cf0091e55fe384f99b9ffc4eb76852f2 | 4,035 | py | Python | tests/cli/test_capture.py | lkolacek/osbs-client | 90c6db9a414214c681c777468079bcbe7dd7c809 | [
"BSD-3-Clause"
] | 4 | 2020-05-16T22:30:32.000Z | 2021-11-09T22:26:38.000Z | tests/cli/test_capture.py | lkolacek/osbs-client | 90c6db9a414214c681c777468079bcbe7dd7c809 | [
"BSD-3-Clause"
] | 183 | 2019-06-06T09:10:24.000Z | 2022-03-30T12:05:15.000Z | tests/cli/test_capture.py | lkolacek/osbs-client | 90c6db9a414214c681c777468079bcbe7dd7c809 | [
"BSD-3-Clause"
] | 10 | 2019-10-29T21:55:03.000Z | 2021-01-18T14:20:34.000Z | """
Copyright (c) 2015, 2019 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
from __future__ import absolute_import
import json
import os
import responses
import yaml
from tempfile import NamedTemporaryFile
from... | 35.086957 | 157 | 0.680297 |
b60f51942494a012c87412de5d38d61489e17976 | 2,162 | py | Python | ludwig/datasets/iris/__init__.py | dantreiman/ludwig | daeffd21f9eef524afb2037763abd07a93228c2a | [
"Apache-2.0"
] | 7,739 | 2019-02-11T14:06:31.000Z | 2020-12-16T18:30:29.000Z | ludwig/datasets/iris/__init__.py | dantreiman/ludwig | daeffd21f9eef524afb2037763abd07a93228c2a | [
"Apache-2.0"
] | 769 | 2019-02-11T16:13:20.000Z | 2020-12-16T17:26:11.000Z | ludwig/datasets/iris/__init__.py | dantreiman/ludwig | daeffd21f9eef524afb2037763abd07a93228c2a | [
"Apache-2.0"
] | 975 | 2019-02-11T15:55:54.000Z | 2020-12-14T21:45:39.000Z | #! /usr/bin/env python
# Copyright (c) 2022 Predibase, 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 applicabl... | 34.31746 | 96 | 0.702128 |
b612d51dcd798eb329c14c555305828c3465a192 | 3,735 | py | Python | tests/test_interfaces.py | bbtfr/megfile | 7a0d4bd8fa6f52512e99dfd490bf404fb4f5ede0 | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/test_interfaces.py | bbtfr/megfile | 7a0d4bd8fa6f52512e99dfd490bf404fb4f5ede0 | [
"Apache-2.0",
"MIT"
] | null | null | null | tests/test_interfaces.py | bbtfr/megfile | 7a0d4bd8fa6f52512e99dfd490bf404fb4f5ede0 | [
"Apache-2.0",
"MIT"
] | null | null | null | from io import BytesIO
import pytest
from megfile.interfaces import BasePath, Closable, Readable, URIPath, Writable
def test_not_provide_close():
with pytest.raises(TypeError):
Klass1()
def test_with_context():
with Klass2() as reader:
assert reader.closed is False
assert reader.clo... | 19.657895 | 78 | 0.632664 |
b61389f50e9d173999e38179b52a9ada5226258f | 2,563 | py | Python | translation.py | maciejklimek/AnkiCreator | 5e498bcce0f482925e762ab288e90a568b837714 | [
"BSD-3-Clause"
] | 5 | 2015-02-03T20:51:46.000Z | 2017-12-08T03:46:50.000Z | translation.py | maciejklimek/AnkiCreator | 5e498bcce0f482925e762ab288e90a568b837714 | [
"BSD-3-Clause"
] | null | null | null | translation.py | maciejklimek/AnkiCreator | 5e498bcce0f482925e762ab288e90a568b837714 | [
"BSD-3-Clause"
] | null | null | null | from tools import LudiException
__author__ = 'maciek'
| 40.68254 | 115 | 0.438939 |
b614462b2a627cbf32e9f575717e51f418411fde | 608 | py | Python | mail/mail.test.py | dgjungleP/kjyw | 467915a05c4f054062c341b9f2825a2c43b35c03 | [
"MIT"
] | 1,419 | 2016-05-26T00:53:32.000Z | 2022-03-31T21:37:06.000Z | mail/mail.test.py | dgjungleP/kjyw | 467915a05c4f054062c341b9f2825a2c43b35c03 | [
"MIT"
] | 3 | 2017-02-14T09:21:42.000Z | 2021-06-16T08:47:56.000Z | mail/mail.test.py | dgjungleP/kjyw | 467915a05c4f054062c341b9f2825a2c43b35c03 | [
"MIT"
] | 713 | 2016-06-03T10:02:18.000Z | 2022-03-31T08:47:28.000Z | #!/usr/bin/env python
#coding:utf-8
from email.mime.text import MIMEText
from email.header import Header
import smtplib
sender='xxxxx@qq.com'
sender_pass='xxxxxxxxxxxxxx'
host='smtp.qq.com'
recivers=['xxxxxxxx@xxx.com']
mail()
| 20.965517 | 55 | 0.723684 |
b614594c792bcc71148ae6b00e42b3819d01bc79 | 6,582 | py | Python | src/dtpattern/alignment/alignment_cls.py | jumbrich/dtpattern | 38433c89d169a280b0439b9cd4f463d5d7604dd7 | [
"MIT"
] | null | null | null | src/dtpattern/alignment/alignment_cls.py | jumbrich/dtpattern | 38433c89d169a280b0439b9cd4f463d5d7604dd7 | [
"MIT"
] | 2 | 2018-04-25T22:13:34.000Z | 2018-04-26T17:52:43.000Z | src/dtpattern/alignment/alignment_cls.py | jumbrich/dtpattern | 38433c89d169a280b0439b9cd4f463d5d7604dd7 | [
"MIT"
] | null | null | null | import functools
from dtpattern.alignment.alignment_list import align_global, finalize, format_alignment2
from dtpattern.unicode_translate.uc_models import FIX_SYMB
from pyjuhelpers.timer import timer
def compare(item1, item2):
"""
compares first identity and if equals the score
:param item1:
:par... | 37.186441 | 133 | 0.499696 |
3733a08138ec283d797445a7d27a5b19edaeec7d | 6,056 | py | Python | tests/test_validators.py | jpsca/pforms | 77c9da93e5224e79bb147aa873f28951e972bb21 | [
"MIT"
] | 2 | 2020-09-30T22:41:00.000Z | 2020-12-04T16:47:17.000Z | tests/test_validators.py | jpsca/hyperform | d5c450ad8684a853fed26f8c2606877151125a9e | [
"MIT"
] | 2 | 2021-11-18T18:01:28.000Z | 2021-11-18T18:03:29.000Z | tests/test_validators.py | jpsca/hyperform | d5c450ad8684a853fed26f8c2606877151125a9e | [
"MIT"
] | null | null | null | from datetime import date, datetime
import pytest
from proper_forms import Date, DateTime, Field, Integer
from proper_forms import validators as v
DATA = [
[Field, v.Confirmed(), ["password", "password"], True],
[Field, v.Confirmed(), ["password", "password", "password"], True],
[Field, v.Conf... | 39.842105 | 79 | 0.62467 |
3734bdeaee2424fb8a41b0e01dff10a01e85aac8 | 2,084 | py | Python | detection_viz/scripts/fps_calculator.py | Benson516/detection_viz_ROS | 7eb0c3edee9f402ab6fe2d8d4050cd4a67eabf6b | [
"MIT"
] | null | null | null | detection_viz/scripts/fps_calculator.py | Benson516/detection_viz_ROS | 7eb0c3edee9f402ab6fe2d8d4050cd4a67eabf6b | [
"MIT"
] | null | null | null | detection_viz/scripts/fps_calculator.py | Benson516/detection_viz_ROS | 7eb0c3edee9f402ab6fe2d8d4050cd4a67eabf6b | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
import rospy
import numpy as np
import threading
from timeit import default_timer as timer
import time
if __name__ == "__main__":
fps = FPS()
while True:
fps.step()
time.sleep(0.3)
| 26.717949 | 74 | 0.596929 |
37350476fd1d1ae45c6a04af571a3af65e2ef661 | 631 | py | Python | video/migrations/0002_auto_20190705_0808.py | AdventistChurchFinland/hopechannel-wagtail | b5b06e0696a929d5d2e29a368002d27f54a8ff75 | [
"MIT"
] | null | null | null | video/migrations/0002_auto_20190705_0808.py | AdventistChurchFinland/hopechannel-wagtail | b5b06e0696a929d5d2e29a368002d27f54a8ff75 | [
"MIT"
] | 9 | 2020-06-05T23:26:12.000Z | 2021-06-17T20:23:14.000Z | video/migrations/0002_auto_20190705_0808.py | AdventistChurchFinland/hopechannel-wagtail | b5b06e0696a929d5d2e29a368002d27f54a8ff75 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-05 08:08
from django.db import migrations, models
import django.db.models.deletion
| 26.291667 | 133 | 0.616482 |
3735790497e156cdee39aed5c0df2ddf1799e05b | 2,966 | py | Python | examples/main.py | levsh/arrlio | c6819bbe697ebcfbeafdd04af07f26f24b33d670 | [
"MIT"
] | null | null | null | examples/main.py | levsh/arrlio | c6819bbe697ebcfbeafdd04af07f26f24b33d670 | [
"MIT"
] | null | null | null | examples/main.py | levsh/arrlio | c6819bbe697ebcfbeafdd04af07f26f24b33d670 | [
"MIT"
] | null | null | null | import asyncio
import logging
import arrlio
import tasks
from arrlio import crypto
from arrlio.serializer.json import CryptoJson
logger = logging.getLogger("arrlio")
logger.setLevel("INFO")
BACKEND = "arrlio.backend.local"
if __name__ == "__main__":
asyncio.run(main())
| 30.265306 | 95 | 0.599798 |
3735921e137c8c45657a118872073a5c9c2372b6 | 685 | py | Python | classes/face_type.py | t-maes/Energy | 257c6b4a58af1067880870c828e966ba4c6e7f5d | [
"MIT"
] | null | null | null | classes/face_type.py | t-maes/Energy | 257c6b4a58af1067880870c828e966ba4c6e7f5d | [
"MIT"
] | 13 | 2020-09-17T13:11:22.000Z | 2021-10-16T15:15:47.000Z | classes/face_type.py | t-maes/Energy | 257c6b4a58af1067880870c828e966ba4c6e7f5d | [
"MIT"
] | 2 | 2020-10-03T15:29:50.000Z | 2021-10-04T07:50:35.000Z | from enum import Enum
| 23.62069 | 57 | 0.566423 |
37369717bf4744bf752a9e5e1db557ed280d3c7a | 496 | py | Python | Blatt-02/Sonstiges/tribonacci.py | MartinThoma/prog-ws1213 | c82a2fb81bac774f8d3214a25c33124a9f512ef0 | [
"MIT"
] | 1 | 2017-08-10T13:12:03.000Z | 2017-08-10T13:12:03.000Z | Blatt-02/Sonstiges/tribonacci.py | siviaseason/prog-ws1213 | c82a2fb81bac774f8d3214a25c33124a9f512ef0 | [
"MIT"
] | null | null | null | Blatt-02/Sonstiges/tribonacci.py | siviaseason/prog-ws1213 | c82a2fb81bac774f8d3214a25c33124a9f512ef0 | [
"MIT"
] | 2 | 2016-06-08T20:56:04.000Z | 2022-03-11T20:12:37.000Z |
for i in xrange(0,40+1):
print("<tr><td>%i</td><td>%i</td></tr>" % (i, tribonacciBottomUp(i)))
| 21.565217 | 73 | 0.568548 |
37379882a0e02a3d332d5d8f259eede951ecb249 | 1,805 | py | Python | flake8_pie/tests/test_pie803_prefer_logging_interpolation.py | sbdchd/flake8-pie | 96ae441d92abe64b23e1c37b0eb15778434000cc | [
"BSD-2-Clause"
] | 23 | 2019-01-25T14:58:20.000Z | 2022-03-27T02:20:01.000Z | flake8_pie/tests/test_pie803_prefer_logging_interpolation.py | sbdchd/flake8-assign-and-return | 96ae441d92abe64b23e1c37b0eb15778434000cc | [
"BSD-2-Clause"
] | 50 | 2019-04-17T02:37:01.000Z | 2022-03-27T02:19:53.000Z | flake8_pie/tests/test_pie803_prefer_logging_interpolation.py | sbdchd/flake8-assign-and-return | 96ae441d92abe64b23e1c37b0eb15778434000cc | [
"BSD-2-Clause"
] | 5 | 2019-02-21T07:29:12.000Z | 2021-11-06T21:01:26.000Z | from __future__ import annotations
import ast
import pytest
from flake8_pie import Flake8PieCheck
from flake8_pie.pie803_prefer_logging_interpolation import PIE803
from flake8_pie.tests.utils import Error, ex, to_errors
EXAMPLES = [
ex(
code=r"""
logger.info("Login error for %s" % user)
""",
... | 24.066667 | 78 | 0.587812 |
373b0831f54ef02bac3d59c0fc65db6ad11950d7 | 1,517 | py | Python | test/test_graph/test_slice.py | jjon/rdflib | 4c2ab7b392b353bf3c6088017ec9351ce8ac3db6 | [
"BSD-3-Clause"
] | null | null | null | test/test_graph/test_slice.py | jjon/rdflib | 4c2ab7b392b353bf3c6088017ec9351ce8ac3db6 | [
"BSD-3-Clause"
] | 6 | 2021-11-22T19:10:32.000Z | 2022-01-31T19:16:37.000Z | test/test_graph/test_slice.py | jjon/rdflib | 4c2ab7b392b353bf3c6088017ec9351ce8ac3db6 | [
"BSD-3-Clause"
] | null | null | null | from test.data import bob, cheese, hates, likes, michel, pizza, tarek
from rdflib import Graph
| 27.089286 | 76 | 0.556361 |
373cd2d11dd4c527255309c855c5dbf16d3610fd | 2,163 | py | Python | pyContabo/Tags.py | xLeon-python/pyContabo | 9863bd1ab0f95b50186902c90c40ce53d3026afd | [
"MIT"
] | 5 | 2022-01-03T10:34:35.000Z | 2022-01-27T10:34:41.000Z | pyContabo/Tags.py | xLeon-python/pyContabo | 9863bd1ab0f95b50186902c90c40ce53d3026afd | [
"MIT"
] | 4 | 2022-01-14T10:37:57.000Z | 2022-01-20T20:44:54.000Z | pyContabo/Tags.py | xLeon-python/pyContabo | 9863bd1ab0f95b50186902c90c40ce53d3026afd | [
"MIT"
] | 1 | 2022-01-20T14:59:32.000Z | 2022-01-20T14:59:32.000Z | import json
from typing import List, Union
from .Tag import Tag
from .audits.TagsAudits import TagsAudits
| 29.630137 | 250 | 0.520573 |
373ce6abe69658df775573e30396ce08743e65d4 | 1,458 | py | Python | 2021/07/b.py | cj-wong/advent | f6a489773f488f5daf49caa9d652b1886608b928 | [
"MIT"
] | null | null | null | 2021/07/b.py | cj-wong/advent | f6a489773f488f5daf49caa9d652b1886608b928 | [
"MIT"
] | null | null | null | 2021/07/b.py | cj-wong/advent | f6a489773f488f5daf49caa9d652b1886608b928 | [
"MIT"
] | null | null | null | from collections import Counter, defaultdict
from typing import Dict, List
import config
def calculate_crab_pos_change_fuel(start: int, end: int) -> int:
"""Calculate the amount of fuel changed per position.
Args:
start (int): starting position
end (int): ending position
Returns:
... | 23.516129 | 67 | 0.633059 |
373f20855c48097a781ae0349231baa0bc6b5ae5 | 5,730 | py | Python | aplus_client/django/models.py | apluslms/a-plus-client | 21cf1575ef70baf6ece70d6ae99f7bcee554e9b1 | [
"MIT"
] | 1 | 2019-10-13T10:21:51.000Z | 2019-10-13T10:21:51.000Z | aplus_client/django/models.py | apluslms/a-plus-client | 21cf1575ef70baf6ece70d6ae99f7bcee554e9b1 | [
"MIT"
] | null | null | null | aplus_client/django/models.py | apluslms/a-plus-client | 21cf1575ef70baf6ece70d6ae99f7bcee554e9b1 | [
"MIT"
] | 1 | 2018-08-28T18:32:20.000Z | 2018-08-28T18:32:20.000Z | import datetime
from functools import reduce
from urllib.parse import urlsplit
from django.apps import apps
from django.core.exceptions import ObjectDoesNotExist
from django.db import models
from django.utils import timezone
from django.utils.functional import cached_property
from django.utils.translation import ugette... | 31.311475 | 79 | 0.63822 |
373f799d97bc4aea9455aac2ae9a2ed13f94701c | 1,010 | py | Python | tests/changes/api/test_kick_sync_repo.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 443 | 2015-01-03T16:28:39.000Z | 2021-04-26T16:39:46.000Z | tests/changes/api/test_kick_sync_repo.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 12 | 2015-07-30T19:07:16.000Z | 2016-11-07T23:11:21.000Z | tests/changes/api/test_kick_sync_repo.py | vault-the/changes | 37e23c3141b75e4785cf398d015e3dbca41bdd56 | [
"Apache-2.0"
] | 47 | 2015-01-09T10:04:00.000Z | 2020-11-18T17:58:19.000Z | import json
import mock
from changes.config import db
from changes.testutils import APITestCase
| 29.705882 | 80 | 0.623762 |
373fc6a46681c0185948d7219fd4ce20e547707c | 497 | py | Python | app/deployments/migrations/0009_platform_geom.py | gulfofmaine/buoy_barn | f04047fe17a45dbb58a3aac7703edd16616a6dfd | [
"MIT"
] | 1 | 2021-08-06T19:26:06.000Z | 2021-08-06T19:26:06.000Z | app/deployments/migrations/0009_platform_geom.py | gulfofmaine/buoy_barn | f04047fe17a45dbb58a3aac7703edd16616a6dfd | [
"MIT"
] | 152 | 2019-09-20T11:56:58.000Z | 2022-03-25T10:01:12.000Z | app/deployments/migrations/0009_platform_geom.py | gulfofmaine/buoy_barn | f04047fe17a45dbb58a3aac7703edd16616a6dfd | [
"MIT"
] | null | null | null | # Generated by Django 2.1.2 on 2018-12-11 21:08
import django.contrib.gis.db.models.fields
from django.db import migrations
| 24.85 | 124 | 0.645875 |
37401799ef8790b8796a6d77073cb66a40a6c746 | 1,350 | py | Python | send.py | b1tst0rm/pygsuite | 8884d85b3bf038c4e41b6447f0c20af6b1925044 | [
"MIT"
] | 1 | 2021-06-10T16:59:57.000Z | 2021-06-10T16:59:57.000Z | send.py | b1tst0rm/pygsuite | 8884d85b3bf038c4e41b6447f0c20af6b1925044 | [
"MIT"
] | null | null | null | send.py | b1tst0rm/pygsuite | 8884d85b3bf038c4e41b6447f0c20af6b1925044 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import smtplib
import ssl
import traceback
from email.message import EmailMessage
import csv
csv_name = input("Enter path to CSV: ")
with open(csv_name) as csv_file:
csv_reader = csv.reader(csv_file, delimiter=",")
for row in csv_reader:
title = row[0]
last_name = row[1]
... | 27 | 70 | 0.554074 |
37403c0b4b4f8c0a873678dc2513d03b98245665 | 609 | py | Python | falco/client_credentials.py | jasondellaluce/client-py | 694780796289fdd20f1588d06e66c5a1b52ecb26 | [
"Apache-2.0"
] | 20 | 2019-10-14T15:01:14.000Z | 2021-08-09T19:13:08.000Z | falco/client_credentials.py | jasondellaluce/client-py | 694780796289fdd20f1588d06e66c5a1b52ecb26 | [
"Apache-2.0"
] | 45 | 2019-10-14T14:55:30.000Z | 2022-02-11T03:27:37.000Z | falco/client_credentials.py | jasondellaluce/client-py | 694780796289fdd20f1588d06e66c5a1b52ecb26 | [
"Apache-2.0"
] | 11 | 2019-10-14T17:41:06.000Z | 2022-02-21T05:40:44.000Z | import grpc
def get_grpc_channel_credentials(client_crt, client_key, ca_root):
"""Returns a ChannelCredentials object to use with the grpc channel
https://grpc.github.io/grpc/python/grpc.html#create-client-credentials
"""
root_certificates = load_file(ca_root)
private_key = load_file(client_key... | 27.681818 | 106 | 0.747126 |
3741437c9d6eeb011b2b876a314bb32cbeb6caaf | 2,020 | py | Python | scripts/release.py | ydcjeff/api-extractor | 0c8b22d75f21d08c3e7601e1bf15a37963742516 | [
"MIT"
] | 1 | 2021-07-03T18:42:38.000Z | 2021-07-03T18:42:38.000Z | scripts/release.py | ydcjeff/api-extractor | 0c8b22d75f21d08c3e7601e1bf15a37963742516 | [
"MIT"
] | 1 | 2022-02-04T14:42:25.000Z | 2022-02-06T02:21:44.000Z | scripts/release.py | ydcjeff/api-extractor | 0c8b22d75f21d08c3e7601e1bf15a37963742516 | [
"MIT"
] | null | null | null | # pylint: skip-file
import json
import subprocess
import sys
import api_extractor
try:
from semver import VersionInfo
except ImportError:
raise ImportError(
'semver must be installed for release. `pip install semver`'
)
try:
import koloro
except ImportError:
raise ImportError(
'koloro must be inst... | 21.263158 | 79 | 0.634653 |
3743220aa5b97be4c5b07c94e92e07656a597733 | 674 | py | Python | Exercicios Curso Em Video Mundo 3/Exe_081.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | Exercicios Curso Em Video Mundo 3/Exe_081.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | Exercicios Curso Em Video Mundo 3/Exe_081.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | '''
Exerccio Python 081: Crie um programa que vai ler vrios
nmeros e colocar em uma lista. Depois disso, mostre:
A) Quantos nmeros foram digitados.
B) A lista de valores, ordenada de forma decrescente.
C) Se o valor 5 foi digitado e est ou no na lista.
'''
lista = list()
while True:
lista.append(int(input('Digit... | 21.741935 | 57 | 0.675074 |
374483f15bf635d6c70ab7f2db45d14d34cefa97 | 1,327 | py | Python | vulnhub/venus/exploit_not_1337_version.py | nhtri2003gmail/ctf-write-ups | 7e969c47027c39b614e10739ae3a953eed17dfa3 | [
"MIT"
] | 101 | 2020-03-09T17:40:47.000Z | 2022-03-31T23:26:55.000Z | vulnhub/venus/exploit_not_1337_version.py | nhtri2003gmail/ctf-write-ups | 7e969c47027c39b614e10739ae3a953eed17dfa3 | [
"MIT"
] | 1 | 2021-11-09T13:39:40.000Z | 2021-11-10T19:15:04.000Z | vulnhub/venus/exploit_not_1337_version.py | datajerk/ctf-write-ups | 1bc4ecc63a59de7d924c7214b1ce467801792da0 | [
"MIT"
] | 31 | 2020-05-27T12:29:50.000Z | 2022-03-31T23:23:32.000Z | #!/usr/bin/env python3
from pwn import *
binary = context.binary = ELF('./venus_messaging')
if args.REMOTE:
#p = remote('172.19.2.239',9080)
#port blocked? workaround: ssh -L 9080:localhost:9080 magellan@172.19.2.239
p = remote('localhost',9080)
libc = ELF('./libc.so.6')
# lame no ASLR
'''
# ldd /usr/bin/venu... | 25.519231 | 76 | 0.6948 |
3744a67ac0806df733d0a009949e03e1e837df25 | 4,565 | py | Python | waterspout_api/migrations/0014_auto_20210406_1439.py | Water-Systems-Management-UCM/Waterspout | 78965f1e53b09f442e278dff72c290ceac22ed60 | [
"MIT"
] | 1 | 2020-09-10T20:43:24.000Z | 2020-09-10T20:43:24.000Z | waterspout_api/migrations/0014_auto_20210406_1439.py | Water-Systems-Management-UCM/Waterspout | 78965f1e53b09f442e278dff72c290ceac22ed60 | [
"MIT"
] | 72 | 2020-05-28T17:20:12.000Z | 2022-03-28T14:11:40.000Z | waterspout_api/migrations/0014_auto_20210406_1439.py | Water-Systems-Management-UCM/Waterspout | 78965f1e53b09f442e278dff72c290ceac22ed60 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-04-06 21:39
from django.db import migrations, models
| 40.04386 | 111 | 0.605915 |
37452035deb83fe334a0ce5c91b574bc1022bec4 | 66 | py | Python | base_structure/common/config.py | djy-git/base-structure | 7b867086fee66d1cd9b6e4fd9c7dd082fef29575 | [
"MIT"
] | null | null | null | base_structure/common/config.py | djy-git/base-structure | 7b867086fee66d1cd9b6e4fd9c7dd082fef29575 | [
"MIT"
] | null | null | null | base_structure/common/config.py | djy-git/base-structure | 7b867086fee66d1cd9b6e4fd9c7dd082fef29575 | [
"MIT"
] | 2 | 2021-08-12T16:44:45.000Z | 2021-10-19T14:25:25.000Z | """**Configuration module**
1. Constant
----
"""
| 9.428571 | 37 | 0.606061 |
3746076b8924c745799ec314c621f1db42d6ba93 | 237 | py | Python | docs/labs/lab03/notebook/solutions/exercise1.py | lingcog/2019-CS109A | f1eaa62976fe989c3ad3f3ab4b8dd5d71574a2c3 | [
"MIT"
] | 442 | 2019-06-11T06:47:00.000Z | 2022-03-12T11:19:31.000Z | docs/labs/lab03/notebook/solutions/exercise1.py | lelandroberts97/2019-CS109A | 976da6b65c26fd3c5db285cbf9ec9cde92751a70 | [
"MIT"
] | 3 | 2019-09-23T17:32:51.000Z | 2022-02-09T06:06:00.000Z | docs/labs/lab03/notebook/solutions/exercise1.py | lelandroberts97/2019-CS109A | 976da6b65c26fd3c5db285cbf9ec9cde92751a70 | [
"MIT"
] | 486 | 2019-06-17T05:01:07.000Z | 2022-03-13T20:30:44.000Z | A = np.array([ [5, 4, 3, 2, 1], [1, 2, 3, 4, 5], [1.1, 2.2, 3.3, 4.4, 5.5] ])
print(A, "\n")
# set length(shape)
dims = A.shape
print(dims, "\n")
# slicing
print(A[-1, 2:], "\n")
print(A[1:3, 3:5], "\n")
# square
A2 = A * A
print(A2)
| 15.8 | 77 | 0.476793 |
374643baf4905a23f6574e861031e8d99a6d3e66 | 752 | py | Python | src/rentinfo/model.py | SwaggieBroker/HousePriceDataVisualization | 43325cf6ba03548bf4a867dff2cafb4abec7758f | [
"MIT"
] | null | null | null | src/rentinfo/model.py | SwaggieBroker/HousePriceDataVisualization | 43325cf6ba03548bf4a867dff2cafb4abec7758f | [
"MIT"
] | null | null | null | src/rentinfo/model.py | SwaggieBroker/HousePriceDataVisualization | 43325cf6ba03548bf4a867dff2cafb4abec7758f | [
"MIT"
] | null | null | null | from django.conf import settings
from django.db import models
| 34.181818 | 63 | 0.734043 |
37495eaeb03f7a3a0e3a85e6649c760538db37b4 | 9,932 | py | Python | Blinkenlights/clients/cal.py | mbalasz/Blinkenlights | f95cb40fb6c9c078ed174a2b70e74f20084db124 | [
"Apache-2.0"
] | 3 | 2021-05-23T20:16:03.000Z | 2022-02-16T15:52:19.000Z | Blinkenlights/clients/cal.py | mbalasz/Blinkenlights | f95cb40fb6c9c078ed174a2b70e74f20084db124 | [
"Apache-2.0"
] | 2 | 2021-06-15T14:01:01.000Z | 2021-07-08T13:31:10.000Z | Blinkenlights/clients/cal.py | mbalasz/Blinkenlights | f95cb40fb6c9c078ed174a2b70e74f20084db124 | [
"Apache-2.0"
] | 7 | 2021-06-07T11:36:04.000Z | 2021-10-31T23:18:10.000Z | #!/usr/bin/python3
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 34.971831 | 97 | 0.592429 |
3749d562b21ac17eff7db98c573f8f834fbad3b1 | 6,455 | py | Python | edivorce/apps/core/views/efiling.py | seeker25/eDivorce | e0c56424f97a30b74930b35d774c30d7be25b5a1 | [
"Apache-2.0"
] | null | null | null | edivorce/apps/core/views/efiling.py | seeker25/eDivorce | e0c56424f97a30b74930b35d774c30d7be25b5a1 | [
"Apache-2.0"
] | null | null | null | edivorce/apps/core/views/efiling.py | seeker25/eDivorce | e0c56424f97a30b74930b35d774c30d7be25b5a1 | [
"Apache-2.0"
] | null | null | null | import base64
import random
import re
from django.conf import settings
from django.contrib import messages
from django.shortcuts import redirect
from django.urls import reverse
from django.contrib.auth.decorators import login_required
from ..decorators import prequal_completed
from ..models import Document, UserRespo... | 32.933673 | 117 | 0.698993 |
374a5f8b4571959df8d4deab391fa8af6f778e90 | 633 | py | Python | MyApp/admin.py | liqi629/yyapi | 36873d87cb433d6077bafd31fca89ea15aaaed66 | [
"MIT"
] | 1 | 2021-08-06T09:17:37.000Z | 2021-08-06T09:17:37.000Z | MyApp/admin.py | liqi629/yyapi | 36873d87cb433d6077bafd31fca89ea15aaaed66 | [
"MIT"
] | null | null | null | MyApp/admin.py | liqi629/yyapi | 36873d87cb433d6077bafd31fca89ea15aaaed66 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
# django
# appmodels *
from MyApp.models import *
# admin.site.register() ()
admin.site.register(DB_tucao)
admin.site.register(DB_home_href)
admin.site.register(DB_project)
admin.site.register(DB_apis)
admin.site.register(DB_apis_log)
admin.site.register(... | 31.65 | 68 | 0.832543 |
374dd8193ca54427fd3b47ebd2fa213180ba8a3d | 796 | py | Python | pyasn1_modules/rfc3537.py | alvistack/etingof-pyasn1-modules | bdbcc5d9650a8e8382979f089df3307dd4121b49 | [
"BSD-2-Clause"
] | 34 | 2016-04-03T09:10:31.000Z | 2022-02-12T20:38:31.000Z | pyasn1_modules/rfc3537.py | alvistack/etingof-pyasn1-modules | bdbcc5d9650a8e8382979f089df3307dd4121b49 | [
"BSD-2-Clause"
] | 138 | 2017-05-31T09:25:10.000Z | 2022-02-07T09:00:19.000Z | pyasn1_modules/rfc3537.py | alvistack/etingof-pyasn1-modules | bdbcc5d9650a8e8382979f089df3307dd4121b49 | [
"BSD-2-Clause"
] | 36 | 2016-03-16T00:37:04.000Z | 2021-11-12T12:09:43.000Z | #
# This file is part of pyasn1-modules software.
#
# Created by Russ Housley.
#
# Copyright (c) 2019, Vigil Security, LLC
# License: http://snmplabs.com/pyasn1/license.html
#
# SEED Encryption Algorithm in CMS
#
# ASN.1 source from:
# https://www.rfc-editor.org/rfc/rfc4010.txt
#
from pyasn1.type import constraint
fro... | 22.742857 | 77 | 0.757538 |
374e12794e55f64210c0702578375d3bfa8fc2d6 | 311 | py | Python | app/handlers/admin/find_assigned_group.py | jamestiotio/wthslack | 4ada5e2354bfd9ffd46731abe35b65ef8a09d4f1 | [
"MIT"
] | 2 | 2020-07-10T21:06:53.000Z | 2020-10-27T17:05:05.000Z | app/handlers/admin/find_assigned_group.py | wthdevelopers/wthslack | f6566e35b5455fcdfb12d9b33d65843b67aff17c | [
"MIT"
] | 7 | 2020-02-09T12:08:00.000Z | 2021-06-27T16:51:29.000Z | app/handlers/admin/find_assigned_group.py | jamestiotio/wthslack | 4ada5e2354bfd9ffd46731abe35b65ef8a09d4f1 | [
"MIT"
] | 2 | 2020-02-07T15:35:24.000Z | 2020-02-07T17:28:50.000Z | # coding: utf-8
# View a specific participant's assigned group details
# Created by James Raphael Tiovalen (2021)
import slack
import ast
import settings
import config
from slackers.hooks import commands
conv_db = config.conv_handler
| 16.368421 | 54 | 0.784566 |
374e6497dc978569c6363b78e55b35f4198cbcfd | 2,683 | py | Python | isiscb/isisdata/migrations/0049_auto_20160901_1408.py | bgopalachary/IsisCB | c28e3f504eea60ebeff38318d8bb2071abb28ebb | [
"MIT"
] | 4 | 2016-01-25T20:35:33.000Z | 2020-04-07T15:39:52.000Z | isiscb/isisdata/migrations/0049_auto_20160901_1408.py | bgopalachary/IsisCB | c28e3f504eea60ebeff38318d8bb2071abb28ebb | [
"MIT"
] | 41 | 2015-08-19T17:34:41.000Z | 2022-03-11T23:19:01.000Z | isiscb/isisdata/migrations/0049_auto_20160901_1408.py | bgopalachary/IsisCB | c28e3f504eea60ebeff38318d8bb2071abb28ebb | [
"MIT"
] | 2 | 2020-11-25T20:18:18.000Z | 2021-06-24T15:15:41.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 76.657143 | 627 | 0.677972 |
374f3b7ef3585b1770c1ec627dee8e6fd5b66ec8 | 6,195 | py | Python | pylibs/benchmarking/tests/test_run_bench/test_benchmark_driver.py | famousyub/smartyphp | 2691233a8993b8902c6a3d533a6e3f1fe44fe0f8 | [
"MIT"
] | 359 | 2018-06-16T02:42:54.000Z | 2022-03-21T06:39:26.000Z | pylibs/benchmarking/tests/test_run_bench/test_benchmark_driver.py | famousyub/smartyphp | 2691233a8993b8902c6a3d533a6e3f1fe44fe0f8 | [
"MIT"
] | 257 | 2018-07-03T22:08:27.000Z | 2022-03-31T18:45:04.000Z | pylibs/benchmarking/tests/test_run_bench/test_benchmark_driver.py | famousyub/smartyphp | 2691233a8993b8902c6a3d533a6e3f1fe44fe0f8 | [
"MIT"
] | 77 | 2018-06-16T04:00:29.000Z | 2022-02-19T03:07:58.000Z | #!/usr/bin/env python
##############################################################################
# Copyright 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
################################... | 28.548387 | 85 | 0.528168 |
374f55c7814c43d98b1a4269df803668e0d8ed39 | 404 | py | Python | lib/fastlane/plugin/xcconfig_actions/helper/scripts/parse.py | Sifiso36NiCHOLAS/fastlane-plugin-xcconfig_actions | c4c5d3b34bb070a870da91eb5c33083923435151 | [
"MIT"
] | 15 | 2019-02-22T01:29:14.000Z | 2021-09-10T01:15:22.000Z | lib/fastlane/plugin/xcconfig_actions/helper/scripts/parse.py | Sifiso36NiCHOLAS/fastlane-plugin-xcconfig_actions | c4c5d3b34bb070a870da91eb5c33083923435151 | [
"MIT"
] | 2 | 2019-07-23T01:36:00.000Z | 2019-07-23T01:37:38.000Z | lib/fastlane/plugin/xcconfig_actions/helper/scripts/parse.py | Sifiso36NiCHOLAS/fastlane-plugin-xcconfig_actions | c4c5d3b34bb070a870da91eb5c33083923435151 | [
"MIT"
] | 2 | 2021-01-25T05:07:20.000Z | 2021-03-08T02:24:36.000Z | from bs4 import BeautifulSoup
import re
soup = BeautifulSoup(open("page.html"), "html.parser")
entries = soup.find_all("div", id=re.compile("dev.*"))
title_re = re.compile(".*\((.*)\)")
settings = []
for e in entries:
text = e.find("h2", class_="Name").text
m = title_re.match(text)
if m == None:
... | 21.263158 | 54 | 0.626238 |
3752450480eea1c7e55ce4fc9b56d64c75873411 | 4,604 | py | Python | ADT/Homework 9/HashTables/HashTable.py | Devang-25/CS-Jacobs | d56a70c13ce3863bcf3140990fab5b634b30a2af | [
"MIT"
] | null | null | null | ADT/Homework 9/HashTables/HashTable.py | Devang-25/CS-Jacobs | d56a70c13ce3863bcf3140990fab5b634b30a2af | [
"MIT"
] | null | null | null | ADT/Homework 9/HashTables/HashTable.py | Devang-25/CS-Jacobs | d56a70c13ce3863bcf3140990fab5b634b30a2af | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
mytable = HashTable()
""" Inserting Values in the table with keys """
mytable.insertNode(1, 1)
mytable.insertNode(11, 2)
mytable.insertNode(101, 3)
mytable.insertNode(102, 4)
mytable.insertNode(111, 5)
mytable.insertNode(1001, 6)
mytable.insertNode(10... | 32.885714 | 86 | 0.572546 |
37552744d8e9652e02f1f77ca633dcd27815fbb0 | 1,148 | py | Python | library_management/config/library_management.py | pkstimepass/Library-Management | e751c43ccb499bf81ec74e5593b6c7e208127273 | [
"MIT"
] | null | null | null | library_management/config/library_management.py | pkstimepass/Library-Management | e751c43ccb499bf81ec74e5593b6c7e208127273 | [
"MIT"
] | 9 | 2021-03-19T15:44:38.000Z | 2022-03-12T00:52:14.000Z | library_management/config/library_management.py | pkstimepass/Library-Management | e751c43ccb499bf81ec74e5593b6c7e208127273 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from frappe import _
| 31.027027 | 112 | 0.457317 |
375570af4f92c8f4e216e1ebc0166477badfeb09 | 1,213 | py | Python | chapter11/step02/train_model.py | UserAdminD3us/Microsoft-Certified-Azure-Data-Scientist-Associate-Certification-Guide | 62873b5a99120d240a8df8c0b7f81e6c95d5be02 | [
"MIT"
] | null | null | null | chapter11/step02/train_model.py | UserAdminD3us/Microsoft-Certified-Azure-Data-Scientist-Associate-Certification-Guide | 62873b5a99120d240a8df8c0b7f81e6c95d5be02 | [
"MIT"
] | null | null | null | chapter11/step02/train_model.py | UserAdminD3us/Microsoft-Certified-Azure-Data-Scientist-Associate-Certification-Guide | 62873b5a99120d240a8df8c0b7f81e6c95d5be02 | [
"MIT"
] | null | null | null | import argparse
import os
import lightgbm as lgb
import joblib
parser = argparse.ArgumentParser()
parser.add_argument(
"--learning-rate",
type=float,
dest="learning_rate",
help="Learning date for LightGBM",
default=0.01,
)
parser.add_argument(
"--input-path",
type=str,
dest="input_path... | 22.054545 | 86 | 0.690025 |
3755f0af6e1ac846d5a6b76e9670f96ab376bb9b | 12,365 | py | Python | lizard_auth_server/views_api.py | lisannewapstra/lizard-auth-server | 3824edfaedd01caff5eb84bbcb9557ccfec2371a | [
"MIT",
"BSD-3-Clause"
] | 1 | 2019-02-21T02:12:04.000Z | 2019-02-21T02:12:04.000Z | lizard_auth_server/views_api.py | lisannewapstra/lizard-auth-server | 3824edfaedd01caff5eb84bbcb9557ccfec2371a | [
"MIT",
"BSD-3-Clause"
] | 88 | 2015-04-23T15:37:17.000Z | 2021-02-18T15:28:32.000Z | lizard_auth_server/views_api.py | lisannewapstra/lizard-auth-server | 3824edfaedd01caff5eb84bbcb9557ccfec2371a | [
"MIT",
"BSD-3-Clause"
] | 2 | 2018-04-24T08:48:35.000Z | 2021-02-17T10:18:26.000Z | # -*- coding: utf-8 -*-
from django.contrib.auth import authenticate as django_authenticate
from django.contrib.auth.models import User
from django.http import HttpResponse
from django.http import HttpResponseBadRequest
from django.shortcuts import get_object_or_404
from django.utils.decorators import method_decorator
... | 34.157459 | 88 | 0.619895 |
37567441cec8df2625f386786c43826f9d7358ea | 6,446 | py | Python | log_parser/__init__.py | kozlovzxc/python-log-parser | a7b5c2b489e7cece437dfc36746ff58399646fd0 | [
"MIT"
] | null | null | null | log_parser/__init__.py | kozlovzxc/python-log-parser | a7b5c2b489e7cece437dfc36746ff58399646fd0 | [
"MIT"
] | null | null | null | log_parser/__init__.py | kozlovzxc/python-log-parser | a7b5c2b489e7cece437dfc36746ff58399646fd0 | [
"MIT"
] | null | null | null | from pyparsing import *
from string import printable, uppercase
from dateutil import parser as dateutil_parser
import yaml
| 42.973333 | 134 | 0.477195 |
37578518bee7829df262610a24f622d6d408232d | 12,196 | py | Python | python/biograph/vdb/parquet_test.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 16 | 2021-07-14T23:32:31.000Z | 2022-03-24T16:25:15.000Z | python/biograph/vdb/parquet_test.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-20T20:39:47.000Z | 2021-09-16T20:57:59.000Z | python/biograph/vdb/parquet_test.py | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-15T19:38:35.000Z | 2022-01-31T19:24:56.000Z | # pylint: disable=missing-docstring
import unittest
import gzip
import tempfile
from biograph.vdb import vcf_to_parquet, anno_to_parquet
import biograph.vdb.parquet
import pyarrow as pa
import pandas as pd
if __name__ == '__main__':
unittest.main(verbosity=2)
| 45.00369 | 269 | 0.38816 |
375827b6a9a91f6310a50237f1737c67e7e7e925 | 2,430 | py | Python | bot/libraries/helper.py | Feyko/FICSIT-Fred | 94f049214d82d61862fe03405a2fd60a51e48177 | [
"MIT"
] | 5 | 2020-05-24T21:29:34.000Z | 2022-02-04T03:09:18.000Z | bot/libraries/helper.py | Feyko/FICSIT-Fred | 94f049214d82d61862fe03405a2fd60a51e48177 | [
"MIT"
] | 33 | 2021-08-02T16:41:48.000Z | 2022-03-31T21:22:10.000Z | bot/libraries/helper.py | Feyko/FICSIT-Fred | 94f049214d82d61862fe03405a2fd60a51e48177 | [
"MIT"
] | 3 | 2021-03-03T18:48:27.000Z | 2021-07-28T12:23:27.000Z | import re
import asyncio
from html.parser import HTMLParser
import aiohttp
from discord.ext import commands
import config
def permission_check(ctx, level: int):
perms = config.PermissionRoles.fetch_by_lvl(level)
main_guild = ctx.bot.get_guild(config.Misc.fetch("main_guild_id"))
if (main_guild_member :=... | 26.413043 | 112 | 0.597531 |
37589b5d5e93593f28c9b4b9003c4e6bfe3a425e | 8,419 | py | Python | src/build_df_to_plot.py | crahal/centgovspend | 82ae1f63ec735da59cbe75dd47eda51d202d7555 | [
"MIT"
] | 4 | 2018-06-23T09:08:29.000Z | 2021-11-11T18:27:50.000Z | src/build_df_to_plot.py | crahal/centgovspend | 82ae1f63ec735da59cbe75dd47eda51d202d7555 | [
"MIT"
] | null | null | null | src/build_df_to_plot.py | crahal/centgovspend | 82ae1f63ec735da59cbe75dd47eda51d202d7555 | [
"MIT"
] | null | null | null | import glob
import ntpath
import pandas as pd
def build_timely_df(payments):
''' build the longitudinal dataset for figure 2b '''
timely_df = pd.DataFrame(columns=['Number of Payments',
'Value of Payments'])
for year in list(range(2009, 2018)):
timel... | 47.835227 | 112 | 0.473215 |
3758ec23f661c439f9ae34576fefe1e235e69372 | 1,557 | py | Python | src/Anchors/LoopAnchor.py | CelineDknp/SemiParsingCFG | 0263a5b442c7c994279357738afeea59f642428d | [
"MIT"
] | null | null | null | src/Anchors/LoopAnchor.py | CelineDknp/SemiParsingCFG | 0263a5b442c7c994279357738afeea59f642428d | [
"MIT"
] | null | null | null | src/Anchors/LoopAnchor.py | CelineDknp/SemiParsingCFG | 0263a5b442c7c994279357738afeea59f642428d | [
"MIT"
] | null | null | null | from .Anchor import Anchor
from Utils.config import *
| 29.942308 | 100 | 0.71869 |
375baab0f35211b2da08b1e7f0a7cfd2b213edad | 361 | py | Python | imagekitio/constants/files.py | samims/imagekit-python | 4bc8041e22c6333710645ddc95446c9c348eea5b | [
"MIT"
] | 1 | 2020-01-20T16:56:32.000Z | 2020-01-20T16:56:32.000Z | imagekitio/constants/files.py | samims/imagekit-python | 4bc8041e22c6333710645ddc95446c9c348eea5b | [
"MIT"
] | null | null | null | imagekitio/constants/files.py | samims/imagekit-python | 4bc8041e22c6333710645ddc95446c9c348eea5b | [
"MIT"
] | null | null | null | VALID_FILE_OPTIONS = [
"path",
"fileType",
"tags",
"includeFolder",
"name",
"limit",
"skip",
]
VALID_FILE_DETAIL_OPTIONS = ["fileID"]
VALID_UPLOAD_OPTIONS = [
"file",
"file_name",
"use_unique_file_name",
"tags",
"folder",
"is_private_file",
"custom_coordinates",... | 15.041667 | 38 | 0.581717 |
375c80d3b986b5561b93d213ff84e9281e6dd2b6 | 9,972 | py | Python | src/getContents.py | ajayz09/amazon-textract | bea3028596d6b60482017e12b80cbb0d2b91d3a5 | [
"Apache-2.0"
] | 1 | 2021-01-03T01:23:52.000Z | 2021-01-03T01:23:52.000Z | src/getContents.py | ajayz09/amazon-textract | bea3028596d6b60482017e12b80cbb0d2b91d3a5 | [
"Apache-2.0"
] | null | null | null | src/getContents.py | ajayz09/amazon-textract | bea3028596d6b60482017e12b80cbb0d2b91d3a5 | [
"Apache-2.0"
] | null | null | null | import os
import time
import csv
import pandas as pd
# def getPaymentDate(textDocument):
# for line in open(textDocument):
# # for k in keywords:
# if 'Payment Date' in line:
# print(line)
DOCUMENTS_PATH = "../results"
dividendDF = pd.DataFrame(columns=['... | 38.206897 | 175 | 0.586843 |
375d53a0ec7d2340e3ac21436ab3d6fc031b6d7e | 1,929 | py | Python | minecraft/networking/packets/serverbound/play/client_settings_packet.py | Skelmis/PyMcBot | b74b4f344bbcc711974f2551f75da3ddb8874e6f | [
"Apache-2.0"
] | 2 | 2020-02-09T08:55:33.000Z | 2021-03-31T20:53:11.000Z | minecraft/networking/packets/serverbound/play/client_settings_packet.py | Skelmis/PyMcBot | b74b4f344bbcc711974f2551f75da3ddb8874e6f | [
"Apache-2.0"
] | 2 | 2020-08-20T14:32:49.000Z | 2021-02-07T03:28:45.000Z | minecraft/networking/packets/serverbound/play/client_settings_packet.py | Skelmis/PyMcBot | b74b4f344bbcc711974f2551f75da3ddb8874e6f | [
"Apache-2.0"
] | 3 | 2020-10-27T14:27:38.000Z | 2020-12-08T15:11:54.000Z | from minecraft.networking.packets import Packet
from minecraft.networking.types import (
String,
Byte,
VarInt,
Boolean,
UnsignedByte,
Enum,
BitFieldEnum,
AbsoluteHand,
)
| 26.424658 | 74 | 0.579057 |
375e6389f147aa8b980167ffea1afe5678abb33e | 4,203 | py | Python | sspace/backends/cspace.py | Epistimio/sample-space | 5435b7f97a5c9dea279271033fd4582dbd77211f | [
"BSD-3-Clause"
] | null | null | null | sspace/backends/cspace.py | Epistimio/sample-space | 5435b7f97a5c9dea279271033fd4582dbd77211f | [
"BSD-3-Clause"
] | 6 | 2020-05-23T02:16:40.000Z | 2022-03-16T01:37:45.000Z | sspace/backends/cspace.py | Epistimio/sample-space | 5435b7f97a5c9dea279271033fd4582dbd77211f | [
"BSD-3-Clause"
] | null | null | null | import_error = None
try:
import ConfigSpace as cs
import ConfigSpace.hyperparameters as csh
from sspace.utils import sort_dict
cond_dispatch_leaves = {
'eq': cs.EqualsCondition,
'ne': cs.NotEqualsCondition,
'lt': cs.LessThanCondition,
'gt': cs.GreaterThanCondition,
... | 28.787671 | 97 | 0.600999 |
375fe96928fb4b5e369927685271aecb2f3ad149 | 8,287 | py | Python | openstack/kms/v1/key.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | openstack/kms/v1/key.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | openstack/kms/v1/key.py | IamFive/sdk-python | 223b04f90477f7de0f00b3e652d8672ba73271c8 | [
"ECL-2.0",
"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
# distributed under t... | 31.996139 | 75 | 0.601907 |
3761ad381b725114e1ca90dc5552b488a21daeb4 | 16,128 | py | Python | models/roberta.py | tjdevWorks/multimodal-sentiment-prediction | cc656817f12e9676f59dd66c134a365bad8cbcec | [
"Apache-2.0"
] | 8 | 2022-02-04T20:37:26.000Z | 2022-03-30T03:18:04.000Z | models/roberta.py | tjdevWorks/multimodal-sentiment-prediction | cc656817f12e9676f59dd66c134a365bad8cbcec | [
"Apache-2.0"
] | 1 | 2022-02-13T22:44:30.000Z | 2022-02-13T23:15:34.000Z | models/roberta.py | tjdevWorks/TEASEL | cc656817f12e9676f59dd66c134a365bad8cbcec | [
"Apache-2.0"
] | null | null | null | from transformers import RobertaPreTrainedModel
from transformers.models.roberta.modeling_roberta import RobertaEmbeddings, RobertaEncoder, RobertaPooler, RobertaLMHead, RobertaClassificationHead
from transformers.modeling_outputs import BaseModelOutputWithPoolingAndCrossAttentions, MaskedLMOutput, SequenceClassifierOu... | 44.8 | 213 | 0.667783 |
3762cff1ab3661bebf0065d7a9d2efca756c6d5d | 14,847 | py | Python | packages/pdf/src/RPA/PDF/keywords/finder.py | AntonStange/rpaframework | 2a6a4abe56c7fece4f9cfed1ba488774393abdd8 | [
"Apache-2.0"
] | 25 | 2020-03-30T09:01:11.000Z | 2020-05-21T04:04:58.000Z | packages/pdf/src/RPA/PDF/keywords/finder.py | AntonStange/rpaframework | 2a6a4abe56c7fece4f9cfed1ba488774393abdd8 | [
"Apache-2.0"
] | 2 | 2020-04-02T18:08:58.000Z | 2020-05-27T12:07:19.000Z | packages/pdf/src/RPA/PDF/keywords/finder.py | AntonStange/rpaframework | 2a6a4abe56c7fece4f9cfed1ba488774393abdd8 | [
"Apache-2.0"
] | 7 | 2020-04-02T17:17:26.000Z | 2020-05-27T04:18:54.000Z | import functools
import math
import re
from dataclasses import dataclass
try:
# Python >=3.7
from re import Pattern
except ImportError:
# Python =3.6
from re import _pattern_type as Pattern
from typing import (
Callable,
Dict,
List,
Optional,
Union,
)
from RPA.PDF.keywords import (... | 34.052752 | 88 | 0.579309 |
376339fbbed47cfb0b3b622c80e86ed6fa7ed55b | 1,051 | py | Python | sdk/keyvault/azure-keyvault-keys/tests/_keys_test_case.py | kashifkhan/azure-sdk-for-python | 9c28b76e89b0855e41bd12d5b4a59b51acd47eec | [
"MIT"
] | null | null | null | sdk/keyvault/azure-keyvault-keys/tests/_keys_test_case.py | kashifkhan/azure-sdk-for-python | 9c28b76e89b0855e41bd12d5b4a59b51acd47eec | [
"MIT"
] | null | null | null | sdk/keyvault/azure-keyvault-keys/tests/_keys_test_case.py | kashifkhan/azure-sdk-for-python | 9c28b76e89b0855e41bd12d5b4a59b51acd47eec | [
"MIT"
] | null | null | null | import os
import pytest
from devtools_testutils import AzureRecordedTestCase
| 38.925926 | 111 | 0.702188 |
3763446b99da1e9825f4b04bb3b506f8b2412e46 | 1,918 | py | Python | node_editor/dataframe_model_bak/datatable_content.py | lcopey/node_editor | 04d56ae4c7f2149e46903d5dd2e46f3906ef69e6 | [
"MIT"
] | 1 | 2021-04-30T11:28:42.000Z | 2021-04-30T11:28:42.000Z | node_editor/dataframe_model_bak/datatable_content.py | lcopey/node_editor | 04d56ae4c7f2149e46903d5dd2e46f3906ef69e6 | [
"MIT"
] | null | null | null | node_editor/dataframe_model_bak/datatable_content.py | lcopey/node_editor | 04d56ae4c7f2149e46903d5dd2e46f3906ef69e6 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import QVBoxLayout, QApplication, QMainWindow
import pandas as pd
from node_editor.node_content_widget import NodeContentWidget
from .dataframe_view import DataframeView
DEBUG = False
| 33.068966 | 112 | 0.656934 |
37637a324f01571ae1690b30b0221a8ae45d7ede | 2,662 | py | Python | ctimer/cli.py | zztin/ctimer | a0721bb9791b23305ee4ff4a2eb30a1f4d8c80cc | [
"Apache-2.0"
] | null | null | null | ctimer/cli.py | zztin/ctimer | a0721bb9791b23305ee4ff4a2eb30a1f4d8c80cc | [
"Apache-2.0"
] | 35 | 2020-06-07T12:40:43.000Z | 2021-06-03T19:56:01.000Z | ctimer/cli.py | zztin/ctimer | a0721bb9791b23305ee4ff4a2eb30a1f4d8c80cc | [
"Apache-2.0"
] | 1 | 2020-06-04T05:31:03.000Z | 2020-06-04T05:31:03.000Z | """Console script for ctimer."""
from ctimer import ctimer
import ctimer.ctimer_db as db
import sys
import argparse
from ctimer.visual import show_stats as ss
import logging
from ctimer import utils
if __name__ == "__main__":
sys.exit(main())
| 31.690476 | 160 | 0.616454 |
37645efc570cfe79532495ffcd35874cf9a12e74 | 292 | py | Python | 2015/2.py | frodetb/aoc | 2dad7c0d7342d97f4a3a2ad202afe302c3473368 | [
"MIT"
] | null | null | null | 2015/2.py | frodetb/aoc | 2dad7c0d7342d97f4a3a2ad202afe302c3473368 | [
"MIT"
] | null | null | null | 2015/2.py | frodetb/aoc | 2dad7c0d7342d97f4a3a2ad202afe302c3473368 | [
"MIT"
] | null | null | null | instructions = [sorted([int(num) for num in line.split("x")]) for line in open("input_2", "r").readlines()]
# Part 1
print("Part 1:", sum(3 * x * y + 2 * x * z + 2 * y * z for x, y, z in instructions))
# Part 1
print("Part 1:", sum(2 * x + 2 * y + x * y * z for x, y, z in instructions))
| 29.2 | 107 | 0.561644 |
3765c900eb2d09e0228c547fd8a74527b34b5d0c | 213 | py | Python | __init__.py | muhammad-rafi/conf_diff | 90d85c045afcab0d2ab7d16ef43f4a378b231c47 | [
"CNRI-Python"
] | 5 | 2022-03-28T03:32:33.000Z | 2022-03-29T18:22:24.000Z | __init__.py | muhammad-rafi/conf_diff | 90d85c045afcab0d2ab7d16ef43f4a378b231c47 | [
"CNRI-Python"
] | null | null | null | __init__.py | muhammad-rafi/conf_diff | 90d85c045afcab0d2ab7d16ef43f4a378b231c47 | [
"CNRI-Python"
] | null | null | null | import importlib.metadata
try:
__author__ = """Muhammad Rafi"""
__version__ = importlib.metadata.version(__package__ or __name__)
except importlib.metadata.PackageNotFoundError:
__version__ = "0.6.5"
| 26.625 | 69 | 0.755869 |
3766166b65d1e540121498a9b42b52fdaf2ed5db | 197 | py | Python | aioeventbus/typing.py | momocow/python-aioeventbus | 35d17789bb028e81f4613c0a40c3f51304f96df4 | [
"MIT"
] | 2 | 2020-03-06T06:58:27.000Z | 2020-03-07T11:57:39.000Z | aioeventbus/typing.py | momocow/python-aioeventbus | 35d17789bb028e81f4613c0a40c3f51304f96df4 | [
"MIT"
] | null | null | null | aioeventbus/typing.py | momocow/python-aioeventbus | 35d17789bb028e81f4613c0a40c3f51304f96df4 | [
"MIT"
] | null | null | null | from abc import ABC
from typing import Awaitable, Callable, Type, Union
EventClass = Type[EventBase]
Handler = Callable[[EventBase], Union[None, Awaitable[None]]]
| 19.7 | 61 | 0.751269 |
37667d129be38ecf142b51cf7166051726ad367a | 5,256 | py | Python | ZoomImage.py | renshj/High-Cadence-Processing | 5d5a2df741858f6e1466d7c4b008e9245d4b780a | [
"MIT"
] | null | null | null | ZoomImage.py | renshj/High-Cadence-Processing | 5d5a2df741858f6e1466d7c4b008e9245d4b780a | [
"MIT"
] | null | null | null | ZoomImage.py | renshj/High-Cadence-Processing | 5d5a2df741858f6e1466d7c4b008e9245d4b780a | [
"MIT"
] | null | null | null | #This file was created by Wayne Dreyer
#It serves to create a zoomed/cropped image around the detected candidate
import matplotlib.pyplot as plt
from matplotlib.figure import Figure
from PIL import Image
import math
from ZoomObject import ZoomObject
#import DataObject as dataObject
#Takes in path to the ima... | 46.105263 | 265 | 0.682839 |
37668c7ab8f618318b3325cde0c87efe87b84f7c | 2,032 | py | Python | service/dataset_builder.py | sumanthgenz/magma | 44a6c8b834fbf683c959ce336c6cdfe1df828980 | [
"MIT"
] | null | null | null | service/dataset_builder.py | sumanthgenz/magma | 44a6c8b834fbf683c959ce336c6cdfe1df828980 | [
"MIT"
] | null | null | null | service/dataset_builder.py | sumanthgenz/magma | 44a6c8b834fbf683c959ce336c6cdfe1df828980 | [
"MIT"
] | null | null | null | import pickle
import glob
import random
from tqdm import tqdm
import os
import collections
import urllib
import urllib.request
from urllib.request import Request, urlopen
import json
import shutil
if __name__ == "__main__":
queries = ["strawberry", "the green knight", "tyler the creator", "pizza", "zurich"]
... | 30.787879 | 130 | 0.633858 |
37682a93288511c01d92701ef4ba444acd620a71 | 391 | py | Python | app.py | flyme2bluemoon/Flask-Project-Template | 0a2953e4ec77ec577b13655856ab162efb536d4a | [
"MIT"
] | null | null | null | app.py | flyme2bluemoon/Flask-Project-Template | 0a2953e4ec77ec577b13655856ab162efb536d4a | [
"MIT"
] | null | null | null | app.py | flyme2bluemoon/Flask-Project-Template | 0a2953e4ec77ec577b13655856ab162efb536d4a | [
"MIT"
] | null | null | null | from helpers import *
from flask import Flask, redirect, request, render_template, session
from flask_session import Session
app = Flask(__name__)
app.config["TEMPLATES_AUTO_RELOAD"] = True
app.config["SESSION_PERMANENT"] = False
app.config["SESSION_TYPE"] = "filesystem"
Session(app)
if __name__ == "__main__":
a... | 23 | 68 | 0.7289 |
3768f3ba1595d85981a62e468f1663abf36a9838 | 7,179 | py | Python | mmf/utils/logger.py | san2597/mmf | c0812e9281c6e679cb7f00af78a5eda267820aab | [
"BSD-3-Clause"
] | 2 | 2021-02-22T12:15:42.000Z | 2021-05-02T15:22:24.000Z | mmf/utils/logger.py | san2597/mmf | c0812e9281c6e679cb7f00af78a5eda267820aab | [
"BSD-3-Clause"
] | 7 | 2021-03-01T21:16:26.000Z | 2022-02-27T07:07:11.000Z | mmf/utils/logger.py | krantirk/MMF | 2e4acaad7ca8eee4319e1205a560eed81733a0be | [
"BSD-3-Clause"
] | 1 | 2022-03-04T14:19:43.000Z | 2022-03-04T14:19:43.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
import collections
import json
import logging
import os
import sys
from typing import Type
from mmf.utils.configuration import get_mmf_env
from mmf.utils.distributed import is_master
from mmf.utils.file_io import PathManager
from mmf.utils.timer import Timer
| 32.337838 | 86 | 0.620003 |
3769cb9e6e30558704c62fd2397c4328d7099939 | 163 | py | Python | myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/hubic/urls.py | tuvapp/tuvappcom | 5ca2be19f4b0c86a1d4a9553711a4da9d3f32841 | [
"MIT"
] | 1 | 2018-04-06T21:36:59.000Z | 2018-04-06T21:36:59.000Z | myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/hubic/urls.py | tuvapp/tuvappcom | 5ca2be19f4b0c86a1d4a9553711a4da9d3f32841 | [
"MIT"
] | 6 | 2020-06-05T18:44:19.000Z | 2022-01-13T00:48:56.000Z | myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/hubic/urls.py | tuvapp/tuvappcom | 5ca2be19f4b0c86a1d4a9553711a4da9d3f32841 | [
"MIT"
] | 1 | 2022-02-01T17:19:28.000Z | 2022-02-01T17:19:28.000Z | from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
from .provider import HubicProvider
urlpatterns = default_urlpatterns(HubicProvider)
| 27.166667 | 75 | 0.871166 |
376ac08cf10241073ec03135469cc20f62b04104 | 1,710 | py | Python | mex.py | hagai-helman/mex | d4ee6f79dd0f96346a1b16727e5aa91ab808aed5 | [
"MIT"
] | null | null | null | mex.py | hagai-helman/mex | d4ee6f79dd0f96346a1b16727e5aa91ab808aed5 | [
"MIT"
] | null | null | null | mex.py | hagai-helman/mex | d4ee6f79dd0f96346a1b16727e5aa91ab808aed5 | [
"MIT"
] | null | null | null |
def mex(values):
"""Finds the minimal non-negative integer excluded from a given iterable
of non-negative integers."""
finder = MexFinder()
for value in values:
finder.add(value)
return finder.mex()
| 32.884615 | 78 | 0.580117 |
376b687ba9788b6a0541074221d59f6f3f6f83f8 | 1,672 | py | Python | tests/conftest.py | karolow/geocoder | e88014015a3ae2643203944401e7e4030948a635 | [
"MIT"
] | null | null | null | tests/conftest.py | karolow/geocoder | e88014015a3ae2643203944401e7e4030948a635 | [
"MIT"
] | null | null | null | tests/conftest.py | karolow/geocoder | e88014015a3ae2643203944401e7e4030948a635 | [
"MIT"
] | null | null | null | from collections import namedtuple
from pytest import fixture
from geocoder.geocoding import (
Addresses,
Coordinates,
)
| 28.827586 | 80 | 0.668062 |
376bc7a4f7b334355a7cb7a86e7b94a23206268d | 15,949 | py | Python | shop/views.py | log-Z/django_shop | 5c68dcd9a583bda3244edccdadfca74fd841c7ee | [
"MIT"
] | 4 | 2019-08-21T06:05:03.000Z | 2021-01-26T04:21:19.000Z | shop/views.py | log-Z/django_shop | 5c68dcd9a583bda3244edccdadfca74fd841c7ee | [
"MIT"
] | null | null | null | shop/views.py | log-Z/django_shop | 5c68dcd9a583bda3244edccdadfca74fd841c7ee | [
"MIT"
] | 2 | 2021-01-26T04:21:22.000Z | 2021-02-22T07:51:39.000Z | from django.http import HttpRequest
from django.views import generic
from django.shortcuts import render, reverse, get_object_or_404, HttpResponseRedirect
from django.db.utils import IntegrityError
from .models import User, UserType, Goods
from .forms import (RegisterFEForm, RegisterBEForm, LoginFEForm, LoginBEForm, C... | 31.898 | 116 | 0.621669 |
376df6d7f89516a0e412a13d0db28bac87a6c75e | 7,176 | py | Python | update/update_db.py | reclada/db | 09dfdeaad8d1f48082aa0512eed7ba3394f1d737 | [
"Apache-2.0"
] | null | null | null | update/update_db.py | reclada/db | 09dfdeaad8d1f48082aa0512eed7ba3394f1d737 | [
"Apache-2.0"
] | 2 | 2021-06-04T11:42:27.000Z | 2021-06-04T16:16:21.000Z | update/update_db.py | reclada/db | 09dfdeaad8d1f48082aa0512eed7ba3394f1d737 | [
"Apache-2.0"
] | 2 | 2021-04-16T09:00:04.000Z | 2021-06-23T12:07:45.000Z | import os
import json
import stat
from pathlib import Path
import sys
import urllib.parse
import uuid
import shutil
os.chdir(os.path.dirname(os.path.abspath(__file__)))
j = ''
with open('update_config.json') as f:
j = f.read()
j = json.loads(j)
branch_db = j["branch_db"]
branch_runtime = j["branch_runtime"]
bran... | 28.589641 | 133 | 0.603958 |
376e19ebc1589ff77a8fc478cb226ea8ba133c58 | 2,922 | py | Python | Configuration/PyReleaseValidation/python/relval_machine.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Configuration/PyReleaseValidation/python/relval_machine.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Configuration/PyReleaseValidation/python/relval_machine.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | from Configuration.PyReleaseValidation.relval_steps import Matrix, InputInfo, Steps
import os
import json
import collections
workflows = Matrix()
steps = Steps()
def convert_keys_to_string(dictionary):
""" Recursively converts dictionary keys to strings.
Utility to help deal with unicode keys in dicti... | 34.785714 | 104 | 0.600616 |
376ea9466a6314f03a1e7da915e45334793f2ec3 | 2,260 | py | Python | cvxpy/atoms/norm_nuc.py | NunoEdgarGFlowHub/cvxpy | 43270fcc8af8fc4742f1b3519800b0074f2e6693 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cvxpy/atoms/norm_nuc.py | NunoEdgarGFlowHub/cvxpy | 43270fcc8af8fc4742f1b3519800b0074f2e6693 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | cvxpy/atoms/norm_nuc.py | NunoEdgarGFlowHub/cvxpy | 43270fcc8af8fc4742f1b3519800b0074f2e6693 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | """
Copyright 2013 Steven Diamond
This file is part of CVXPY.
CVXPY 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 3 of the License, or
(at your option) any later version.
CVXPY is distributed i... | 27.228916 | 79 | 0.633186 |
376fcab57617bb6cde8c9472e7ac7b41d22d82ce | 15,579 | py | Python | yoyo/tests/test_migrations.py | emurphy/yoyo | f9a32d5448970da3a81041692420d5def490b7b0 | [
"Apache-2.0"
] | null | null | null | yoyo/tests/test_migrations.py | emurphy/yoyo | f9a32d5448970da3a81041692420d5def490b7b0 | [
"Apache-2.0"
] | null | null | null | yoyo/tests/test_migrations.py | emurphy/yoyo | f9a32d5448970da3a81041692420d5def490b7b0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Oliver Cope
#
# 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, ... | 35.649886 | 86 | 0.642275 |
376fd9796861e2c39787309023f2cdb3f5ebed40 | 88 | py | Python | kg_covid_19/transform_utils/drug_central/__init__.py | matentzn/kg-covid-19 | 86dbb348509e2133c3e3b3d66bfa29a299673b66 | [
"BSD-3-Clause"
] | 66 | 2020-03-22T21:23:32.000Z | 2022-03-24T09:34:03.000Z | kg_covid_19/transform_utils/drug_central/__init__.py | MrBearWithHisSword/KGQA-COVID | d7aa08d5892aab77e3e829f61d7cb6ba80cff009 | [
"BSD-3-Clause"
] | 340 | 2020-03-22T19:04:18.000Z | 2022-03-30T14:55:42.000Z | kg_covid_19/transform_utils/drug_central/__init__.py | MrBearWithHisSword/KGQA-COVID | d7aa08d5892aab77e3e829f61d7cb6ba80cff009 | [
"BSD-3-Clause"
] | 26 | 2020-03-23T15:20:12.000Z | 2021-09-07T16:57:30.000Z | from .drug_central import DrugCentralTransform
__all__ = [
"DrugCentralTransform"
] | 17.6 | 46 | 0.784091 |
377084db60ebee117b24913239fec5ff9e73b737 | 2,613 | py | Python | aiogram_oop_framework/core/project.py | drforse/aiogram_oop_framework | ee56b6a0893300fea43f01c2f4c4ea8b5fae1424 | [
"MIT"
] | null | null | null | aiogram_oop_framework/core/project.py | drforse/aiogram_oop_framework | ee56b6a0893300fea43f01c2f4c4ea8b5fae1424 | [
"MIT"
] | null | null | null | aiogram_oop_framework/core/project.py | drforse/aiogram_oop_framework | ee56b6a0893300fea43f01c2f4c4ea8b5fae1424 | [
"MIT"
] | null | null | null | from pathlib import Path
from aiogram_oop_framework.core.funcs import get_init_py
| 34.381579 | 104 | 0.566781 |
37744040390dced1c5df204c66d947e6161d822b | 7,666 | py | Python | project/Shici/Analyzer.py | zhengbomo/python_practice | 1bc5c4ff426f806639bbc01249e66747271ec398 | [
"MIT"
] | 2 | 2016-10-03T10:20:02.000Z | 2018-03-20T00:38:53.000Z | project/Shici/Analyzer.py | zhengbomo/python_practice | 1bc5c4ff426f806639bbc01249e66747271ec398 | [
"MIT"
] | 2 | 2019-10-08T07:13:44.000Z | 2019-10-08T07:13:46.000Z | project/Shici/Analyzer.py | zhengbomo/python_practice | 1bc5c4ff426f806639bbc01249e66747271ec398 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
import os
from bs4 import BeautifulSoup
| 34.071111 | 114 | 0.499739 |
37756f838d9a991c6fb09146913f58963f4cf285 | 3,149 | py | Python | gender_detection_keras.py | matejcrnac/Face_deidentification_kazemi | 434fff49b5a7b555bb3c56a62915fd502e0b75f9 | [
"MIT"
] | 1 | 2019-03-27T10:30:54.000Z | 2019-03-27T10:30:54.000Z | gender_detection_keras.py | matejcrnac/Face_deidentification_kazemi | 434fff49b5a7b555bb3c56a62915fd502e0b75f9 | [
"MIT"
] | null | null | null | gender_detection_keras.py | matejcrnac/Face_deidentification_kazemi | 434fff49b5a7b555bb3c56a62915fd502e0b75f9 | [
"MIT"
] | null | null | null | #Classifier 1-------------------------------------------------------------
# author: Arun Ponnusamy
# website: https://www.arunponnusamy.com
# import necessary packages
from keras.preprocessing.image import img_to_array
from keras.models import load_model
import numpy as np
import cv2
import cvlib as cv
if __n... | 33.5 | 117 | 0.659257 |
3775c014edc4cfe9bbf99059dbab03441eae21fe | 3,389 | py | Python | dnppy/convert/_extract_HDF_layer_data.py | NASA-DEVELOP/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 65 | 2015-09-10T12:59:56.000Z | 2022-02-27T22:09:03.000Z | dnppy/convert/_extract_HDF_layer_data.py | snowzm/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 40 | 2015-04-08T19:23:30.000Z | 2015-08-04T15:53:11.000Z | dnppy/convert/_extract_HDF_layer_data.py | snowzm/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 45 | 2015-08-14T19:09:38.000Z | 2022-02-15T18:53:16.000Z | __author__ = ['djjensen', 'jwely']
__all__ = ["_extract_HDF_layer_data"]
import gdal
import os
def _extract_HDF_layer_data(hdfpath, layer_indexs = None):
"""
Extracts one or more layers from an HDF file and returns a dictionary with
all the data available in the HDF layer for use in further format conver... | 33.89 | 154 | 0.691059 |
377821387853d45c0c5a9841c83920bc6e3f180e | 1,964 | py | Python | network/R2plus1d.py | sabarim/3DC-Seg | 210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7 | [
"MIT"
] | 50 | 2020-09-11T07:57:49.000Z | 2022-03-27T06:37:37.000Z | network/R2plus1d.py | sabarim/3DC-Seg | 210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7 | [
"MIT"
] | 15 | 2020-09-11T12:54:34.000Z | 2022-01-13T08:38:38.000Z | network/R2plus1d.py | sabarim/3DC-Seg | 210ee5b9ddebfed7b44c544e2eeb8c3d00e2a7d7 | [
"MIT"
] | 12 | 2020-10-01T07:29:53.000Z | 2021-09-18T11:00:49.000Z | import torch
from torch import nn
from torchvision.models.video.resnet import VideoResNet, BasicBlock, Conv2Plus1D, R2Plus1dStem
model_urls = {
"r2plus1d_34_8_ig65m": "https://github.com/moabitcoin/ig65m-pytorch/releases/download/v1.0.0/r2plus1d_34_clip8_ig65m_from_scratch-9bae36ae.pth", # noqa: E501
... | 44.636364 | 171 | 0.682281 |
3778b68ea4424c5dd5d977058233e58cf1a45c2c | 2,213 | py | Python | mapillary_tools/gps_parser.py | didier2020/mapillary_tools | 23b8f422559f8dfdabdebc26d0d2001d40fbe2ef | [
"BSD-2-Clause"
] | null | null | null | mapillary_tools/gps_parser.py | didier2020/mapillary_tools | 23b8f422559f8dfdabdebc26d0d2001d40fbe2ef | [
"BSD-2-Clause"
] | null | null | null | mapillary_tools/gps_parser.py | didier2020/mapillary_tools | 23b8f422559f8dfdabdebc26d0d2001d40fbe2ef | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
import datetime
from .geo import utc_to_localtime
import gpxpy
import pynmea2
"""
Methods for parsing gps data from various file format e.g. GPX, NMEA, SRT.
"""
def get_lat_lon_time_from_gpx(gpx_file, local_time=True):
"""
Read location and time stamps from a track in a GPX file.
Re... | 27.6625 | 88 | 0.612743 |
37795fd108033032ce115714c706b125640ba1c5 | 1,685 | py | Python | src/polyd_events/consumer.py | supernothing/polyd-events | 527dbd4c538253bed9a4096711e1ba4ee32202bf | [
"MIT"
] | null | null | null | src/polyd_events/consumer.py | supernothing/polyd-events | 527dbd4c538253bed9a4096711e1ba4ee32202bf | [
"MIT"
] | null | null | null | src/polyd_events/consumer.py | supernothing/polyd-events | 527dbd4c538253bed9a4096711e1ba4ee32202bf | [
"MIT"
] | null | null | null | import logging
import time
import inflection
from .events import Event, RedisEvent
logger = logging.getLogger(__name__)
| 31.203704 | 121 | 0.563798 |
3779f2dd899eee84d4f004b19e2e63ab076d4e73 | 222 | py | Python | #1/problem.py | alinoancea/dcp | 1c1a5da226596b8447064392cc220dfc7ed3e95d | [
"MIT"
] | null | null | null | #1/problem.py | alinoancea/dcp | 1c1a5da226596b8447064392cc220dfc7ed3e95d | [
"MIT"
] | null | null | null | #1/problem.py | alinoancea/dcp | 1c1a5da226596b8447064392cc220dfc7ed3e95d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
print(check([10, 15, 3, 7], 17))
print(check([10, 15, 3, 7], 11)) | 18.5 | 32 | 0.495495 |
377d93c2d0000d6272f263fea0646a212046d38a | 10,124 | py | Python | principal/models.py | carborgar/gestionalumnostfg | 87c6d97ad95cfcd55a88b2f3cb69da7134b80149 | [
"MIT"
] | null | null | null | principal/models.py | carborgar/gestionalumnostfg | 87c6d97ad95cfcd55a88b2f3cb69da7134b80149 | [
"MIT"
] | null | null | null | principal/models.py | carborgar/gestionalumnostfg | 87c6d97ad95cfcd55a88b2f3cb69da7134b80149 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delet... | 36.157143 | 120 | 0.669696 |
377f8c4605d4ec6f7f0742bad0873d2139c831e7 | 1,845 | py | Python | raw_data_profchp.py | mcsoini/PROFILE_READER | c14806116cd20ba83620ded90832498451ed9597 | [
"BSD-2-Clause"
] | null | null | null | raw_data_profchp.py | mcsoini/PROFILE_READER | c14806116cd20ba83620ded90832498451ed9597 | [
"BSD-2-Clause"
] | null | null | null | raw_data_profchp.py | mcsoini/PROFILE_READER | c14806116cd20ba83620ded90832498451ed9597 | [
"BSD-2-Clause"
] | null | null | null | import os
from xlrd import open_workbook
import pandas as pd
from grimsel_h.auxiliary.aux_general import print_full, expand_rows, read_xlsx_table
| 36.9 | 122 | 0.657453 |
378287ed5b55d57f24765ff2c9e50d71d392d932 | 3,438 | py | Python | urdu_tts/tts/text_processor/number_strings.py | mhsiddiqui/nlp_with_docker | a44191f2acc4e7cb62bea8bfdff6ffca123613e9 | [
"Apache-2.0"
] | null | null | null | urdu_tts/tts/text_processor/number_strings.py | mhsiddiqui/nlp_with_docker | a44191f2acc4e7cb62bea8bfdff6ffca123613e9 | [
"Apache-2.0"
] | 3 | 2020-06-05T18:09:02.000Z | 2021-06-10T20:06:02.000Z | urdu_tts/tts/text_processor/number_strings.py | mhsiddiqui/nlp_with_docker | a44191f2acc4e7cb62bea8bfdff6ffca123613e9 | [
"Apache-2.0"
] | null | null | null | import csv
import re
import collections
from tts.text_processor import RESOURCE_PATH
| 30.157895 | 98 | 0.559046 |
37832b3e73a3242cb9e73840ccdaa64e7234eb27 | 37 | py | Python | simclr/modules/transformations/__init__.py | martinmamql/SimCLR-2 | 60fb488a1914ec97af2bd01c85a9ec64e804db1e | [
"MIT"
] | 496 | 2020-03-10T11:29:19.000Z | 2022-03-30T04:52:08.000Z | simclr/modules/transformations/__init__.py | martinmamql/SimCLR-2 | 60fb488a1914ec97af2bd01c85a9ec64e804db1e | [
"MIT"
] | 34 | 2020-03-12T15:03:02.000Z | 2022-01-10T18:46:05.000Z | simclr/modules/transformations/__init__.py | martinmamql/SimCLR-2 | 60fb488a1914ec97af2bd01c85a9ec64e804db1e | [
"MIT"
] | 125 | 2020-03-11T21:50:37.000Z | 2022-03-16T08:24:58.000Z | from .simclr import TransformsSimCLR
| 18.5 | 36 | 0.864865 |
37862852a9d332b6eed256faa5e15ad4b5cc2386 | 100 | py | Python | setup.py | mulh8377/pybind11-skeleton | 84e7a7b14475fc03025118aecdfbf0df27a6f86f | [
"MIT"
] | null | null | null | setup.py | mulh8377/pybind11-skeleton | 84e7a7b14475fc03025118aecdfbf0df27a6f86f | [
"MIT"
] | null | null | null | setup.py | mulh8377/pybind11-skeleton | 84e7a7b14475fc03025118aecdfbf0df27a6f86f | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name="example",
version="0.1",
author="mulh8377",
) | 14.285714 | 28 | 0.64 |
378664d0639f1190d52a650c3361c0ffe40a077a | 1,029 | py | Python | tests/unit/test_param_initializer.py | olavolav/textplot | f665a0d8cf1822b46db7c3ffe1766888ff1de3bf | [
"MIT"
] | 156 | 2020-08-17T19:05:52.000Z | 2022-03-29T13:40:42.000Z | tests/unit/test_param_initializer.py | olavolav/textplot | f665a0d8cf1822b46db7c3ffe1766888ff1de3bf | [
"MIT"
] | 11 | 2020-08-17T12:42:52.000Z | 2021-12-12T09:53:02.000Z | tests/unit/test_param_initializer.py | olavolav/textplot | f665a0d8cf1822b46db7c3ffe1766888ff1de3bf | [
"MIT"
] | 5 | 2020-09-12T03:12:50.000Z | 2022-02-17T00:12:48.000Z | import pytest
import numpy as np # type: ignore
from uniplot.param_initializer import validate_and_transform_options
from uniplot.multi_series import MultiSeries
| 32.15625 | 83 | 0.727891 |
378755b6e4a6d1df5540651db412b6b7152b2607 | 2,055 | py | Python | classes/entities/song.py | Xindictus/Simple-Web-Based-Interface-CRUD | 274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263 | [
"Apache-2.0"
] | null | null | null | classes/entities/song.py | Xindictus/Simple-Web-Based-Interface-CRUD | 274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263 | [
"Apache-2.0"
] | null | null | null | classes/entities/song.py | Xindictus/Simple-Web-Based-Interface-CRUD | 274fe6aa4e6e2583a04b3bb1a8ba3f9aa213c263 | [
"Apache-2.0"
] | null | null | null | #!/Python27/python
from ..database.database import Database
# A class used for song insertion
| 35.431034 | 112 | 0.552798 |
378979218302d31b75d0e2659058fd19f5495d01 | 1,237 | py | Python | NeoAnalysis_Py3.5/NeoAnalysis/readio/h5_io.py | Research-lab-KUMS/NeoAnalysis | 32b508dfade3069b1ec5cc7664574b8d3f2d5f57 | [
"MIT"
] | 23 | 2017-09-04T13:20:38.000Z | 2022-03-08T08:15:17.000Z | NeoAnalysis_Py3.5/NeoAnalysis/readio/h5_io.py | Research-lab-KUMS/NeoAnalysis | 32b508dfade3069b1ec5cc7664574b8d3f2d5f57 | [
"MIT"
] | 4 | 2018-01-05T13:44:29.000Z | 2021-09-30T17:08:15.000Z | NeoAnalysis_Py2.7/NeoAnalysis/readio/h5_io.py | neoanalysis/NeoAnalysis | c5f25b71e16997f3a05f70b1eead11f99a3b7e2b | [
"MIT"
] | 5 | 2017-11-26T19:40:46.000Z | 2021-03-11T17:25:23.000Z | import h5py as hp
import numpy as np
import re | 44.178571 | 98 | 0.514956 |
37898a9927617dbd9f99330a279d83944466a398 | 142 | py | Python | sys_add_path/toy_project_python3/src/folder_1/file_1.py | tedhuang96/python_tricks | 1579176144b8ca32bf2eb5ba0c5291237d8b8935 | [
"MIT"
] | null | null | null | sys_add_path/toy_project_python3/src/folder_1/file_1.py | tedhuang96/python_tricks | 1579176144b8ca32bf2eb5ba0c5291237d8b8935 | [
"MIT"
] | null | null | null | sys_add_path/toy_project_python3/src/folder_1/file_1.py | tedhuang96/python_tricks | 1579176144b8ca32bf2eb5ba0c5291237d8b8935 | [
"MIT"
] | null | null | null |
from src.folder_0.file_0 import func_sum
| 15.777778 | 40 | 0.619718 |
378a6f60c85208588264fa4b0e5b9304df902135 | 1,601 | py | Python | device_gateway/gateway.py | dastultz/home-automation | 4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3 | [
"MIT"
] | null | null | null | device_gateway/gateway.py | dastultz/home-automation | 4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3 | [
"MIT"
] | null | null | null | device_gateway/gateway.py | dastultz/home-automation | 4007dbca43726cdf5949ee2aa1cd4d40ba67b5d3 | [
"MIT"
] | null | null | null | import time
import network_manager
from components import Heartbeat, LogManager
from message_bus import MessageBus
import logger
| 28.087719 | 91 | 0.610868 |
378b8c1c8a129943980f58b79ee2233ffe6b0bae | 3,439 | py | Python | haco/DIDrive_core/demo/latent_rl/collect_data.py | decisionforce/HACO | ebd1dc49598e6ae2704e58c053cc35f2d9e28429 | [
"Apache-2.0"
] | 21 | 2022-02-15T10:11:54.000Z | 2022-03-24T17:44:29.000Z | haco/DIDrive_core/demo/latent_rl/collect_data.py | decisionforce/HACO | ebd1dc49598e6ae2704e58c053cc35f2d9e28429 | [
"Apache-2.0"
] | null | null | null | haco/DIDrive_core/demo/latent_rl/collect_data.py | decisionforce/HACO | ebd1dc49598e6ae2704e58c053cc35f2d9e28429 | [
"Apache-2.0"
] | 3 | 2022-02-22T11:11:43.000Z | 2022-03-17T17:58:44.000Z | import os
from functools import partial
import numpy as np
from ding.envs import SyncSubprocessEnvManager
from ding.utils.default_helper import deep_merge_dicts
from easydict import EasyDict
from tqdm import tqdm
from haco.DIDrive_core.data import CarlaBenchmarkCollector, BenchmarkDatasetSaver
from haco.DIDrive_core.... | 30.433628 | 105 | 0.639139 |
378fb80fb53ae0d7cd227f1351a2926e938d591b | 25,206 | py | Python | recent2.py | hongyi-zhao/recent2 | 5b072ff5d6419c444bb013b88e5e2a4de19b0851 | [
"MIT"
] | null | null | null | recent2.py | hongyi-zhao/recent2 | 5b072ff5d6419c444bb013b88e5e2a4de19b0851 | [
"MIT"
] | null | null | null | recent2.py | hongyi-zhao/recent2 | 5b072ff5d6419c444bb013b88e5e2a4de19b0851 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#https://github.com/kislyuk/argcomplete#synopsis
import argcomplete
import argparse
import hashlib
import json
import os
import re
import socket
import sqlite3
import sys
import time
from pathlib import Path
from tabulate import tabulate
from datetime import datetime
# pip install python-dateutil... | 37.620896 | 165 | 0.568119 |
379060b8d18463c11ec809578384596203b2dae7 | 2,381 | py | Python | sprout/core/auth.py | tjduigna/sprout | d8762ce7e6f04bb082b8ca1e65f73d8900338d9d | [
"Apache-2.0"
] | null | null | null | sprout/core/auth.py | tjduigna/sprout | d8762ce7e6f04bb082b8ca1e65f73d8900338d9d | [
"Apache-2.0"
] | null | null | null | sprout/core/auth.py | tjduigna/sprout | d8762ce7e6f04bb082b8ca1e65f73d8900338d9d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019, Sprout Development Team
# Distributed under the terms of the Apache License 2.0
import hashlib
import secrets
import string
import base64
import hmac
_allowed = (string.digits +
string.ascii_lowercase +
string.ascii_uppercase)
| 29.7625 | 66 | 0.613608 |
3790bcbb0c53fecdcdd2285bc764dfa70337dd15 | 139 | py | Python | src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/__init__.py | cattz/aws-deployment-framework | 089ac40b5a91b4d1ae3151be601a818244eaf1c6 | [
"Apache-2.0"
] | 3 | 2019-03-07T00:33:36.000Z | 2020-01-16T02:32:52.000Z | src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/__init__.py | cattz/aws-deployment-framework | 089ac40b5a91b4d1ae3151be601a818244eaf1c6 | [
"Apache-2.0"
] | null | null | null | src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/__init__.py | cattz/aws-deployment-framework | 089ac40b5a91b4d1ae3151be601a818244eaf1c6 | [
"Apache-2.0"
] | 1 | 2019-11-12T10:08:32.000Z | 2019-11-12T10:08:32.000Z | # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
"""
__init__ for adf-build
"""
| 19.857143 | 73 | 0.726619 |
3791a86fa50aa3b089136b2339b5891bf69c1ce0 | 13,959 | py | Python | sdk/python/pulumi_okta/user_factor_question.py | pulumi/pulumi-okta | 83f7617a85b3d05213901773fa4e6a151ab6076b | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2019-10-29T21:59:22.000Z | 2021-11-08T12:00:24.000Z | sdk/python/pulumi_okta/user_factor_question.py | pulumi/pulumi-okta | 83f7617a85b3d05213901773fa4e6a151ab6076b | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2020-01-06T10:28:09.000Z | 2022-03-25T19:52:40.000Z | sdk/python/pulumi_okta/user_factor_question.py | pulumi/pulumi-okta | 83f7617a85b3d05213901773fa4e6a151ab6076b | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2020-09-11T16:31:04.000Z | 2020-11-24T12:23:17.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 38.243836 | 134 | 0.624328 |
3791e586a9b8f892c8036023d9ce18df5f8e863a | 2,499 | py | Python | cnn_model.py | Onimee58/bangla_ocr_cnn | c274d05adbbf2381d0d467ee7fad57fd89bc4019 | [
"MIT"
] | null | null | null | cnn_model.py | Onimee58/bangla_ocr_cnn | c274d05adbbf2381d0d467ee7fad57fd89bc4019 | [
"MIT"
] | null | null | null | cnn_model.py | Onimee58/bangla_ocr_cnn | c274d05adbbf2381d0d467ee7fad57fd89bc4019 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon May 10 04:24:41 2021
@author: Saif
"""
import numpy as np
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D
from keras.layers import Dropout, Flatten, Dense
from keras.preprocessing import image ... | 34.232877 | 124 | 0.666667 |
3792a6aef987fb5eec6a52d26d7f616c91150edf | 452 | py | Python | tests/test_get.py | bio2bel/uniprot | a4f2ac033a46530ac249969f9a731beb39b12733 | [
"MIT"
] | null | null | null | tests/test_get.py | bio2bel/uniprot | a4f2ac033a46530ac249969f9a731beb39b12733 | [
"MIT"
] | 3 | 2017-08-19T14:57:49.000Z | 2017-08-19T14:58:12.000Z | tests/test_get.py | bio2bel/uniprot | a4f2ac033a46530ac249969f9a731beb39b12733 | [
"MIT"
] | 1 | 2019-10-22T00:50:37.000Z | 2019-10-22T00:50:37.000Z | # -*- coding: utf-8 -*-
"""Test functions that get data."""
import os
import unittest
from bio2bel_uniprot import get_mappings_df
HERE = os.path.abspath(os.path.dirname(__file__))
URL = os.path.join(HERE, 'test.tsv')
| 21.52381 | 50 | 0.672566 |
37940bf72d979b6ddcf361e5f37474a801422c7b | 6,520 | py | Python | tests/plugins/test_types.py | prusse-martin/alfasim-sdk | f6992cb3c1c51e25bf55470508f406ee6c5a5e9b | [
"MIT"
] | 17 | 2019-02-04T12:58:10.000Z | 2021-07-16T12:36:23.000Z | tests/plugins/test_types.py | prusse-martin/alfasim-sdk | f6992cb3c1c51e25bf55470508f406ee6c5a5e9b | [
"MIT"
] | 201 | 2018-08-07T19:39:10.000Z | 2022-03-15T00:20:24.000Z | tests/plugins/test_types.py | prusse-martin/alfasim-sdk | f6992cb3c1c51e25bf55470508f406ee6c5a5e9b | [
"MIT"
] | 5 | 2019-06-07T15:45:34.000Z | 2021-10-13T18:49:52.000Z | import re
import pytest
from alfasim_sdk._internal.types import MultipleReference
from alfasim_sdk._internal.types import Reference
| 30.900474 | 135 | 0.661963 |
3794ba9a44060b3cd6e66adb831807d3aaf08691 | 6,153 | py | Python | math_signals/test/test_relation.py | Omnivanitate/sweep_design | 00c20066d83a2eebf8402294b413737f49a97564 | [
"MIT"
] | null | null | null | math_signals/test/test_relation.py | Omnivanitate/sweep_design | 00c20066d83a2eebf8402294b413737f49a97564 | [
"MIT"
] | null | null | null | math_signals/test/test_relation.py | Omnivanitate/sweep_design | 00c20066d83a2eebf8402294b413737f49a97564 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from scipy.integrate import cumulative_trapezoid
from numpy.testing import assert_array_equal
from math_signals.math_relation import Relation
from math_signals.defaults.base_structures import BaseXY
def math_check(r1, ry, x, y1, y, operation):
r = r1.__getattribute__... | 39.191083 | 102 | 0.568178 |