hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
93418dec91bbe32938eb313937de4178a3e1aafc
2,629
py
Python
st2api/st2api/config.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2api/st2api/config.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2api/st2api/config.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
33.705128
96
0.698364
9341ac4c40f4960055021c98994022af991aef1c
2,079
py
Python
test/lmp/util/validate/test_raise_if_not_instance.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/util/validate/test_raise_if_not_instance.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
test/lmp/util/validate/test_raise_if_not_instance.py
ProFatXuanAll/char-RNN
531f101b3d1ba20bafd28ca060aafe6f583d1efb
[ "Beerware" ]
null
null
null
"""Test raise exception. Test target: - :py:meth:`lmp.util.validate.raise_if_not_instance`. """ import pytest from lmp.util.validate import raise_if_not_instance def test_not_raise() -> None: """Must not raise when ``val`` is instance of ``val_type``.""" for val in [False, True, 0, 1, -1, 0.1, -0.1, '', None, ...
39.980769
98
0.649832
9341ac8cf69857008c15aaf4e8b5994229a76a44
935
py
Python
algorithms/500-599/542. 01 Matrix.py
USTCLink/LeetcodeSolutions
ec64fea0d6cb3c56ad3d7268982be8701786700b
[ "MIT" ]
3
2020-10-28T20:14:30.000Z
2020-11-03T01:27:04.000Z
algorithms/500-599/542. 01 Matrix.py
USTCLink/LeetcodeSolutions
ec64fea0d6cb3c56ad3d7268982be8701786700b
[ "MIT" ]
null
null
null
algorithms/500-599/542. 01 Matrix.py
USTCLink/LeetcodeSolutions
ec64fea0d6cb3c56ad3d7268982be8701786700b
[ "MIT" ]
null
null
null
class Solution: def updateMatrix(self, matrix: List[List[int]]) -> List[List[int]]: if not matrix: return [] n, m = len(matrix), len(matrix[0]) dp = [[float('inf') for _ in range(m)] for _ in range(n)] for i in range(n): for j in range(m): if m...
38.958333
71
0.33262
9341c140ebf311dc83170cf63d178a3db6db5e2d
1,135
py
Python
appCore/apps/replica/api/views/users.py
jadedgamer/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
4
2017-04-22T11:03:01.000Z
2018-01-16T22:28:15.000Z
appCore/apps/replica/api/views/users.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
10
2017-04-06T19:54:42.000Z
2017-11-07T06:53:10.000Z
appCore/apps/replica/api/views/users.py
alifewellplayed/alifewellplayed.com
b7b3dee8d3b9526c7cfe77078570a29394ef7e76
[ "MIT" ]
1
2017-12-14T12:49:40.000Z
2017-12-14T12:49:40.000Z
from django.shortcuts import get_object_or_404 from django.db.models import Q from rest_framework import generics, permissions, authentication from rest_framework.permissions import IsAuthenticated from rest_framework.views import APIView from rest_framework.response import Response from replica.api.serializers impor...
33.382353
67
0.782379
9341c5f07164af2edad4f24fae403d5f1bdf502e
6,413
py
Python
wienerschnitzelgemeinschaft/src/shai/fastai/other_ensemble_scripts/enstw37.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/shai/fastai/other_ensemble_scripts/enstw37.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/shai/fastai/other_ensemble_scripts/enstw37.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from tqdm import tqdm import matplotlib.pyplot as plt SAMPLE = '../input/sample_submission.csv' label_names = { 0: "Nucleoplasm", 1: "Nuclear membrane", 2: "Nucleoli", 3: "Nucleoli fibrillar center", 4: "Nuclear speckles", 5: ...
39.58642
144
0.498831
9341c8d7ea21187465110b227062803a746639ca
6,275
py
Python
cvdb/annocube.py
jhuapl-boss/cvdb
07f41b362c5311a96ea9b962cf6126e18c0060d2
[ "Apache-2.0" ]
null
null
null
cvdb/annocube.py
jhuapl-boss/cvdb
07f41b362c5311a96ea9b962cf6126e18c0060d2
[ "Apache-2.0" ]
null
null
null
cvdb/annocube.py
jhuapl-boss/cvdb
07f41b362c5311a96ea9b962cf6126e18c0060d2
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Johns Hopkins University Applied Physics Laboratory # # 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...
38.734568
117
0.619283
9341fa950705e3e6911f838c46aff483f9ab0b1c
350
py
Python
expected_results/page_content/accounts_overview_page_content.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
4
2019-08-12T19:36:58.000Z
2021-09-14T18:48:27.000Z
expected_results/page_content/accounts_overview_page_content.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
1
2021-06-02T00:01:00.000Z
2021-06-02T00:01:00.000Z
expected_results/page_content/accounts_overview_page_content.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
2
2019-08-12T10:06:00.000Z
2020-12-25T05:52:40.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ from expected_results.page_content.base_page_content import BasePageContent class AccountsOverviewPageContent(BasePageContent): TITLE = BasePageContent.TITLE + 'Accounts Overview' URL = BasePage...
25
75
0.785714
934212bf83dae2bdb84e9868acc8789fdb750761
576
py
Python
src/webgui/migrations/0002_auto_20201008_1150.py
digitalfabrik/simple-timeslots
a308324c05b7cc94a2fee8ee4490edcb08cff971
[ "Apache-2.0" ]
2
2021-05-12T21:50:52.000Z
2021-05-13T09:57:49.000Z
src/webgui/migrations/0002_auto_20201008_1150.py
digitalfabrik/simple-timeslots
a308324c05b7cc94a2fee8ee4490edcb08cff971
[ "Apache-2.0" ]
7
2020-10-08T08:20:37.000Z
2020-12-19T12:03:39.000Z
src/webgui/migrations/0002_auto_20201008_1150.py
digitalfabrik/simple-timeslots
a308324c05b7cc94a2fee8ee4490edcb08cff971
[ "Apache-2.0" ]
1
2020-12-07T12:35:14.000Z
2020-12-07T12:35:14.000Z
# Generated by Django 3.1.2 on 2020-10-08 11:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('webgui', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='booking', options={'verbose_name': 'B...
25.043478
87
0.59375
934219778dfc0249b5d6a74440c084deb648d70d
2,325
py
Python
src/clusto/commands/reboot.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
null
null
null
src/clusto/commands/reboot.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
null
null
null
src/clusto/commands/reboot.py
thekad/clusto
c141ea3ef4931c6a21fdf42845c6e9de5ee08caa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- mode: python; sh-basic-offset: 4; indent-tabs-mode: nil; coding: utf-8 -*- # vim: tabstop=4 softtabstop=4 expandtab shiftwidth=4 fileencoding=utf-8 import argparse import sys import clusto from clusto import script_helper class Reboot(script_helper.Script): ''' This will reboot a ...
30.592105
91
0.606452
93423ed2392d0a5b05e63aebcc9d373d010826a2
10,344
py
Python
cms/utils.py
christianbertschy/django-cms-2.0
a98d035b47346b7f6924a807338be3af6566537f
[ "BSD-3-Clause" ]
1
2015-09-24T00:36:34.000Z
2015-09-24T00:36:34.000Z
cms/utils.py
christianbertschy/django-cms-2.0
a98d035b47346b7f6924a807338be3af6566537f
[ "BSD-3-Clause" ]
null
null
null
cms/utils.py
christianbertschy/django-cms-2.0
a98d035b47346b7f6924a807338be3af6566537f
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import render_to_response from django.template import RequestContext from django.http import HttpResponse, HttpResponseRedirect from cms import settings from cms.models import Page def auto_render(func): """Decorator that put automaticaly the template path in the context dictionary and ca...
38.741573
158
0.58401
934245ae6edaf3535761846ee5c5970eeb820294
26,223
py
Python
xagents/base.py
abstractguy/xagents
35e216507c7cd4f0d71480e55d46fdcd16f2c940
[ "MIT" ]
37
2021-08-05T16:31:54.000Z
2022-01-16T11:49:46.000Z
xagents/base.py
abstractguy/xagents
35e216507c7cd4f0d71480e55d46fdcd16f2c940
[ "MIT" ]
1
2022-01-08T17:22:53.000Z
2022-01-08T17:22:53.000Z
xagents/base.py
abstractguy/xagents
35e216507c7cd4f0d71480e55d46fdcd16f2c940
[ "MIT" ]
3
2021-08-13T06:25:22.000Z
2021-08-20T01:37:15.000Z
import os import random from abc import ABC from collections import deque from datetime import timedelta from pathlib import Path from time import perf_counter, sleep import cv2 import gym import numpy as np import optuna import pandas as pd import tensorflow as tf import wandb from gym.spaces.box import Box from gym....
34.871011
103
0.578614
9342702c06e51a43d68760fc53068a9f33de1e1e
2,325
py
Python
firelight/firelight.py
roshie548/firelight
3a5af5e2a1e5784127baebcf1517ffddcaff4062
[ "MIT" ]
16
2021-11-29T03:05:31.000Z
2022-01-19T05:32:45.000Z
firelight/firelight.py
roshie548/firelight
3a5af5e2a1e5784127baebcf1517ffddcaff4062
[ "MIT" ]
null
null
null
firelight/firelight.py
roshie548/firelight
3a5af5e2a1e5784127baebcf1517ffddcaff4062
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import sys from firelight.processing.screen_processor import ScreenProcessor from firelight.interfaces.lifx.lifx import LifxSystem from firelight.interfaces.openrgb.openrgb import OpenRGBSystem light_systems = {"lifx": LifxSystem, "openrgb": OpenRGBSystem} d...
28.353659
78
0.636989
9342849bb4c2844abeb487378c9caea2f5784402
16,913
py
Python
SoftLayer/managers/network.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/managers/network.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
SoftLayer/managers/network.py
briancline/softlayer-python
679fb62ba2db095f0177f9d9488ff4a80c3b7387
[ "MIT" ]
null
null
null
""" SoftLayer.network ~~~~~~~~~~~~~~~~~ Network Manager/helpers :license: MIT, see LICENSE for more details. """ from SoftLayer import exceptions from SoftLayer import utils DEFAULT_SUBNET_MASK = ','.join(['hardware', 'datacenter', 'ipAd...
40.078199
79
0.58121
9342e79066d4b23dbe405df001c6d909d21cd3bc
3,028
py
Python
legal-api/tests/unit/core/test_filing.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
1
2019-11-07T20:32:59.000Z
2019-11-07T20:32:59.000Z
legal-api/tests/unit/core/test_filing.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
legal-api/tests/unit/core/test_filing.py
jachurchill/lear
1abeadfa8a68fe84eae28957fcd762d45712b931
[ "Apache-2.0" ]
null
null
null
# Copyright © 2020 Province of British Columbia # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
32.212766
115
0.677675
934302a8094f5767cd82d5128165c54a8c4985e0
1,503
py
Python
smartva/utils/adaptive_eta.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-23T12:57:47.000Z
2020-04-18T17:13:08.000Z
smartva/utils/adaptive_eta.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-09T22:10:07.000Z
2022-02-16T04:57:06.000Z
smartva/utils/adaptive_eta.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
11
2018-12-11T22:01:13.000Z
2022-01-07T11:38:02.000Z
from progressbar import Timer class AdaptiveETA(Timer): """ NOTE: This code was inspired by the python-progressbar Google Code repo because it does not exist in the pypi repo. https://code.google.com/p/python-progressbar/ """ TIME_SENSITIVE = True NUM_SAMPLES = 10 def __init__(self, ...
36.658537
103
0.619428
9343273e4848530454a608e697626fd2bc962a52
1,160
py
Python
setup.py
ska-sa/fakenewsredis
f5f82201c018a7a0c8078557f16142acfe431d7c
[ "BSD-3-Clause" ]
5
2017-11-10T14:20:11.000Z
2018-03-07T18:46:23.000Z
setup.py
ska-sa/fakenewsredis
f5f82201c018a7a0c8078557f16142acfe431d7c
[ "BSD-3-Clause" ]
15
2017-11-10T14:23:32.000Z
2018-03-23T10:33:47.000Z
setup.py
ska-sa/fakenewsredis
f5f82201c018a7a0c8078557f16142acfe431d7c
[ "BSD-3-Clause" ]
5
2017-11-10T14:19:17.000Z
2021-01-12T19:11:24.000Z
import os from setuptools import setup setup( name='fakenewsredis', version='0.10.0', description="Fake implementation of redis API for testing purposes.", long_description=open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(), license='BSD', ...
30.526316
73
0.586207
93432f78ea9dfdd33ac81cdbf8679ddd995b3bc9
554
py
Python
formalchemy/tests/test_validate.py
coredumperror/formalchemy
6d89bb3ac19248e114684df17bbf3885dc26de3e
[ "MIT" ]
20
2015-01-25T13:54:08.000Z
2021-03-09T16:54:53.000Z
formalchemy/tests/test_validate.py
coredumperror/formalchemy
6d89bb3ac19248e114684df17bbf3885dc26de3e
[ "MIT" ]
11
2015-02-05T16:36:19.000Z
2020-11-13T11:41:19.000Z
formalchemy/tests/test_validate.py
coredumperror/formalchemy
6d89bb3ac19248e114684df17bbf3885dc26de3e
[ "MIT" ]
12
2015-02-19T14:06:21.000Z
2021-07-30T08:44:45.000Z
# -*- coding: utf-8 -*- from formalchemy.tests import * def validate_empty(): """ >>> fs = FieldSet(bill) >>> fs.validate() #doctest: +ELLIPSIS,+IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... ValidationError: Cannot validate without binding data >>> fs.render() #doctest: +EL...
23.083333
66
0.570397
934333c9cefc9461366b542c9e882e20cfa26ceb
14,320
py
Python
scanners/zap-advanced/scanner/zapclient/context/zap_context.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
1
2021-05-24T08:17:48.000Z
2021-05-24T08:17:48.000Z
scanners/zap-advanced/scanner/zapclient/context/zap_context.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
null
null
null
scanners/zap-advanced/scanner/zapclient/context/zap_context.py
watchmen-coder/secureCodeBox
ac3482d4ffa6ced7e8251bc7b72144d11ec2d62d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # SPDX-FileCopyrightText: 2021 iteratec GmbH # # SPDX-License-Identifier: Apache-2.0 # -*- coding: utf-8 -*- import collections import logging from zapv2 import ZAPv2 from .. import ZapClient from ..configuration import ZapConfiguration from .zap_context_authentication import ZapConfigureCont...
51.142857
266
0.675419
934342e67561c259003e046a4c8bdfb9c52315b5
8,274
py
Python
esia_connector/client.py
Tartorus/esia-connector
ff980b478d5ec9c367bfc02278663661cb51ea69
[ "BSD-3-Clause" ]
23
2016-06-14T05:04:25.000Z
2022-03-18T13:52:33.000Z
esia_connector/client.py
Tartorus/esia-connector
ff980b478d5ec9c367bfc02278663661cb51ea69
[ "BSD-3-Clause" ]
1
2017-02-22T20:53:19.000Z
2017-02-22T20:53:19.000Z
esia_connector/client.py
Tartorus/esia-connector
ff980b478d5ec9c367bfc02278663661cb51ea69
[ "BSD-3-Clause" ]
18
2016-06-18T12:35:01.000Z
2022-03-23T02:21:31.000Z
import uuid from urllib.parse import urlencode import jwt from jwt.exceptions import InvalidTokenError from esia_connector.exceptions import IncorrectMarkerError from esia_connector.utils import get_timestamp, sign_params, make_request class EsiaSettings: def __init__(self, esia_client_id, redirect_uri, certifi...
40.758621
118
0.637298
9343608cce0f99fe6435232a8369e4599a5f8836
2,470
py
Python
requests_middleware/contrib/cachecontrolware.py
jmcarp/requests-middleware
b899f79af2053f39268ddb76d9a1951e405a34cf
[ "MIT" ]
20
2015-01-16T07:51:59.000Z
2021-07-21T21:25:21.000Z
requests_middleware/contrib/cachecontrolware.py
jmcarp/requests-middleware
b899f79af2053f39268ddb76d9a1951e405a34cf
[ "MIT" ]
1
2015-09-14T16:48:19.000Z
2015-11-08T05:55:03.000Z
requests_middleware/contrib/cachecontrolware.py
jmcarp/requests-middleware
b899f79af2053f39268ddb76d9a1951e405a34cf
[ "MIT" ]
5
2015-01-16T08:04:20.000Z
2019-03-13T04:50:38.000Z
# -*- coding: utf-8 -*- import functools from cachecontrol.cache import DictCache from cachecontrol.controller import CacheController from cachecontrol.filewrapper import CallbackFileWrapper from requests_middleware import BaseMiddleware INVALIDATING_METHODS = set(['PUT', 'DELETE']) class CacheMiddleware(BaseMid...
34.788732
80
0.608502
934371dec82c5a3aaf7b231c95d7c058c331aef2
7,163
py
Python
avatar_sgg/game_avatar_baseline.py
rafiberlin/clp-sose21-pm-vision
55c786182ed4568cdeda4bb3676fa02b9580d68d
[ "MIT" ]
null
null
null
avatar_sgg/game_avatar_baseline.py
rafiberlin/clp-sose21-pm-vision
55c786182ed4568cdeda4bb3676fa02b9580d68d
[ "MIT" ]
null
null
null
avatar_sgg/game_avatar_baseline.py
rafiberlin/clp-sose21-pm-vision
55c786182ed4568cdeda4bb3676fa02b9580d68d
[ "MIT" ]
null
null
null
""" Avatar action routines """ from avatar_sgg.config.util import get_config from avatar_sgg.game_avatar_abstract import Avatar from avatar_sgg.captioning.catr.inference import CATRInference from sentence_transformers import SentenceTransformer import random import os from avatar_sgg.image_retrieval.evaluation imp...
38.510753
120
0.661175
93439438d11b2c09338b205be02ee751c9043557
210
py
Python
riak/datadog_checks/riak/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
riak/datadog_checks/riak/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
riak/datadog_checks/riak/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:45:42.000Z
2018-08-15T05:45:42.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from .riak import Riak from .__about__ import __version__ __all__ = [ '__version__', 'Riak' ]
19.090909
59
0.704762
9343a9ff3a47f9d3ebeec827d8e32e3882805a8a
1,540
py
Python
ch15_debug.py
mppc12/ThinkPythonTest
11c04fb1cc8944b8bd815b3b3d947abde51d3b07
[ "MIT" ]
null
null
null
ch15_debug.py
mppc12/ThinkPythonTest
11c04fb1cc8944b8bd815b3b3d947abde51d3b07
[ "MIT" ]
null
null
null
ch15_debug.py
mppc12/ThinkPythonTest
11c04fb1cc8944b8bd815b3b3d947abde51d3b07
[ "MIT" ]
null
null
null
import copy class Point: """ Represents 一個在平面上的點 """ class Rectangle: """ Represents 一個矩形 attributes: width, height, corner. """ box = Rectangle() box.width = 100.0 box.height = 200.0 box.corner = Point() box.corner.x = 0.0 box.corner.y = 0.0 p1 = Point() p1.x = 3.0 p1.y = 4.0 ...
16.73913
68
0.585714
9343da58e5c07db642b243b8ac5996b52d4a9f43
22,333
py
Python
sacla/scripts/backups/Chip_Manager_v5_before_skew.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/Chip_Manager_v5_before_skew.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/Chip_Manager_v5_before_skew.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import pv, os, re, sys import math, time, string import numpy as np from time import sleep from ca import caput, caget import Chip_StartUp_v5 as startup import Chip_Mapping_v5 as mapping ############################################## # MANAGER MANAGER MANAGER MANAGER MANAGER # # This version last...
35.562102
109
0.551605
9343dccb9ccac1a7306bb2219cfb3fdb69017235
1,824
py
Python
glimix_core/_util/check.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
7
2019-06-10T12:27:25.000Z
2021-07-23T16:36:04.000Z
glimix_core/_util/check.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
12
2017-05-28T10:59:31.000Z
2021-05-17T20:11:00.000Z
glimix_core/_util/check.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
5
2017-08-27T20:13:45.000Z
2022-02-14T06:33:14.000Z
import warnings from numpy import all as npall, ascontiguousarray, clip, isfinite def check_economic_qs(QS): if not isinstance(QS, tuple): raise ValueError("QS must be a tuple.") if not isinstance(QS[0], tuple): raise ValueError("QS[0] must be a tuple.") fmsg = "QS has non-finite values...
25.333333
79
0.617325
9344036ca79065c354c1a639bc4e217a1ad9b73d
20,011
py
Python
tests/app/views/contexts/summary/test_question.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/app/views/contexts/summary/test_question.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/app/views/contexts/summary/test_question.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
from mock import MagicMock from tests.app.app_context_test_case import AppContextTestCase from app.views.contexts.summary.question import Question from app.data_model.answer_store import AnswerStore, Answer class TestQuestion(AppContextTestCase): # pylint: disable=too-many-public-methods def setUp(self): ...
33.240864
88
0.529209
934450f3b232200ed4bb6511e3366ceee2d381b4
14,605
py
Python
detectron2/data/build.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
45
2021-04-09T12:52:44.000Z
2022-03-30T09:08:58.000Z
detectron2/data/build.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
8
2021-06-29T07:47:07.000Z
2022-03-23T04:21:00.000Z
detectron2/data/build.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
10
2021-05-23T05:48:29.000Z
2022-03-16T06:42:13.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import bisect import copy import itertools import logging import numpy as np import operator import pickle import torch.utils.data from fvcore.common.file_io import PathManager from tabulate import tabulate from termcolor import colored import rando...
36.421446
107
0.686272
93445872559561402ef782cdd13f95b7be630201
35,049
py
Python
qnarre/old/bert/modeling.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/old/bert/modeling.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/old/bert/modeling.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
37.525696
98
0.646894
9344700bc54bb2cddc54af66c5a689b5b6823364
5,308
py
Python
InterventionsMIP/main_multitier_acs.py
haoxiangyang89/COVID_Staged_Alert
4c2cc5ef1d38c140875380a5f10a0fe1eaf8a47a
[ "MIT" ]
1
2021-06-24T19:27:01.000Z
2021-06-24T19:27:01.000Z
InterventionsMIP/main_multitier_acs.py
haoxiangyang89/COVID_Staged_Alert
4c2cc5ef1d38c140875380a5f10a0fe1eaf8a47a
[ "MIT" ]
null
null
null
InterventionsMIP/main_multitier_acs.py
haoxiangyang89/COVID_Staged_Alert
4c2cc5ef1d38c140875380a5f10a0fe1eaf8a47a
[ "MIT" ]
3
2021-12-15T13:32:25.000Z
2022-02-24T13:57:07.000Z
if __name__ == '__main__': import datetime as dt import multiprocessing as mp from utils import parse_arguments, parse_arguments_acs from InterventionsMIP import load_config_file, logger, change_paths # Parse arguments args = parse_arguments_acs() # Load config file load_config_file...
49.607477
139
0.532969
9344853c71a5d60cd035cb46229b85b34e9f1fee
4,116
py
Python
framework/permissions.py
sloppyjuicy/chromium-dashboard
48458fc06c7437cede98a0e70788ae148f11b41e
[ "Apache-2.0" ]
1
2021-11-07T18:53:51.000Z
2021-11-07T18:53:51.000Z
framework/permissions.py
sloppyjuicy/chromium-dashboard
48458fc06c7437cede98a0e70788ae148f11b41e
[ "Apache-2.0" ]
null
null
null
framework/permissions.py
sloppyjuicy/chromium-dashboard
48458fc06c7437cede98a0e70788ae148f11b41e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 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...
29.191489
76
0.735666
93449631e273aff566fa338ea4928b7a043b2cb9
3,544
py
Python
controller/base_controller_twisted.py
AnotherKamila/sdn-loadbalancer
34fa80d05d9751aaec42490a7e3883267ea6ebfc
[ "MIT" ]
6
2019-04-28T15:27:09.000Z
2021-05-24T10:43:44.000Z
controller/base_controller_twisted.py
AnotherKamila/sdn-loadbalancer
34fa80d05d9751aaec42490a7e3883267ea6ebfc
[ "MIT" ]
null
null
null
controller/base_controller_twisted.py
AnotherKamila/sdn-loadbalancer
34fa80d05d9751aaec42490a7e3883267ea6ebfc
[ "MIT" ]
1
2019-11-12T07:34:50.000Z
2019-11-12T07:34:50.000Z
#!/usr/bin/env python from p4utils.utils.topology import Topology from twisted.internet import defer, task, reactor from myutils.twisted_utils import print_method_call from controller.sswitch_API_async_wrapper import SimpleSwitchAPIAsyncWrapper from controller.settings import p4settings from threading import Thread ...
33.433962
96
0.685102
9344985783ef9447f764c7f997c43fef9160c1e7
13,434
py
Python
src/openapi_client/model/user.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
6
2022-01-03T07:07:18.000Z
2022-03-21T08:13:49.000Z
src/openapi_client/model/user.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-02T13:01:05.000Z
2022-02-10T12:01:17.000Z
src/openapi_client/model/user.py
Nozbe/NTImporters
12fa898efd41954b5c29bae383aba5ac56044e87
[ "MIT" ]
1
2022-02-10T11:53:55.000Z
2022-02-10T11:53:55.000Z
""" Nozbe Teams API Nozbe Teams API specification # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@nozbe.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiT...
42.378549
121
0.565133
9344d7ecc07365b0a60ba5b58004a19e111dc3de
19,851
py
Python
pyram/galaxymodule/quick_mock.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
pyram/galaxymodule/quick_mock.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
pyram/galaxymodule/quick_mock.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
import numpy as np from .load_sed import * class Simplemock(): """ Calculate flux through a filter for all stellar particle. Example >>> from general import defaults >>> import quick_mock >>> import galaxymodule >>> dfl = defaults.Default() >>> nout = 312#782 # 312 >>> s = load.sim...
36.490809
113
0.54763
9344d84d1d0542c17483b7ad74b53ff13705598c
4,219
py
Python
Demandware/Solebox/SoleboxMonitor.py
lamialifenojojo/Sneaker-Monitors
1fe5957b17b9d769249ce02c5ea6c3bff9489d63
[ "MIT" ]
null
null
null
Demandware/Solebox/SoleboxMonitor.py
lamialifenojojo/Sneaker-Monitors
1fe5957b17b9d769249ce02c5ea6c3bff9489d63
[ "MIT" ]
null
null
null
Demandware/Solebox/SoleboxMonitor.py
lamialifenojojo/Sneaker-Monitors
1fe5957b17b9d769249ce02c5ea6c3bff9489d63
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import logging import dotenv import datetime import time import json logging.basicConfig(filename='Solebox.log', filemode='a', format='%(asctime)s - %(name)s - %(message)s', level=logging.DEBUG) CONFIG = dotenv.dotenv_values() class SoleboxMonitor: def __init__(self,...
37.669643
151
0.576677
9344f4cd015177b4a31fed85695ededf7e5ca758
4,327
py
Python
setup.py
lemonnuggets/movieman
7e2acf92d4dd69d91ac704d8eae7bda4f431fa6a
[ "Apache-2.0" ]
null
null
null
setup.py
lemonnuggets/movieman
7e2acf92d4dd69d91ac704d8eae7bda4f431fa6a
[ "Apache-2.0" ]
null
null
null
setup.py
lemonnuggets/movieman
7e2acf92d4dd69d91ac704d8eae7bda4f431fa6a
[ "Apache-2.0" ]
null
null
null
""" Sets up environment variables, and adds script to startup. """ import os import getpass # print(os.path.abspath(__file__)) username = getpass.getuser() script_dir = os.path.dirname(os.path.abspath(__file__)) default_log_path = os.path.join(script_dir, 'logs') default_dump_path = os.path.join(script_dir, 'dump') de...
61.814286
177
0.689854
93451b1079e9d659fc7f34184effe8d2458d6b38
427
py
Python
datasets/filter/SortByImageRatio.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
143
2021-12-03T02:33:36.000Z
2022-03-29T00:01:48.000Z
datasets/filter/SortByImageRatio.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
33
2021-12-03T10:32:05.000Z
2022-03-31T02:13:55.000Z
datasets/filter/SortByImageRatio.py
zhangzhengde0225/SwinTrack
526be17f8ef266cb924c6939bd8dda23e9b73249
[ "MIT" ]
24
2021-12-04T06:46:42.000Z
2022-03-30T07:57:47.000Z
from ._common import _BaseFilter import numpy as np class SortByImageRatio(_BaseFilter): def __init__(self, descending=False): self.descending = descending def __call__(self, sizes): sizes = np.array(sizes) if self.descending: ratio = sizes[:, 0] / sizes[:, 1] els...
22.473684
45
0.590164
934539cc7ff2a6ab89c2db37221cbef23178133f
1,125
py
Python
viadot/flows/duckdb_transform.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
viadot/flows/duckdb_transform.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
viadot/flows/duckdb_transform.py
angelika233/viadot
99a4c5b622ad099a44ab014a47ba932a747c0ae6
[ "MIT" ]
null
null
null
from typing import Any, Dict, List from prefect import Flow from ..tasks.duckdb import DuckDBQuery query_task = DuckDBQuery() class DuckDBTransform(Flow): def __init__( self, name: str, query: str, credentials: dict = None, tags: List[str] = ["transform"], *args:...
26.162791
91
0.570667
934542a4e01a1a61bdcf7a40a5acc1fe53947467
702
py
Python
tree/0111-minimum-depth-of-binary-tree(深度优先遍历的写法 2).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-01-10T17:03:21.000Z
2021-01-10T17:03:21.000Z
tree/0111-minimum-depth-of-binary-tree(深度优先遍历的写法 2).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
null
null
null
tree/0111-minimum-depth-of-binary-tree(深度优先遍历的写法 2).py
ZHUANGHP/LeetCode-Solution-Python
af2b14abb7f50ee061bcd601c8666b32e448cbd8
[ "Apache-2.0" ]
1
2021-07-25T07:53:14.000Z
2021-07-25T07:53:14.000Z
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def __init__(self): self.min_depth = float("inf") def minDepth(self, root: TreeNode) -> int: if root is None: return 0 self.__dfs(root, 0) ...
23.4
55
0.538462
93454b9f7690141562bdc26e09c26213fe1c735c
4,871
py
Python
utility/text.py
ab3llini/News2Title
80b5117d5495890425ddeaddd77ef64624df5855
[ "MIT" ]
null
null
null
utility/text.py
ab3llini/News2Title
80b5117d5495890425ddeaddd77ef64624df5855
[ "MIT" ]
null
null
null
utility/text.py
ab3llini/News2Title
80b5117d5495890425ddeaddd77ef64624df5855
[ "MIT" ]
1
2019-11-04T01:17:40.000Z
2019-11-04T01:17:40.000Z
from collections import Counter import numpy as np import random import sys, os this_path = os.path.dirname(os.path.realpath(__file__)) root_path = os.path.abspath(os.path.join(this_path, os.pardir)) sys.path.append(root_path) def get_vocabulary(list_): """ Computes the vocabulary for the provided list of s...
27.519774
107
0.657976
93454bf35f23f4f40ea46c972e499da68415f517
604
py
Python
test/language/subtypes/python/StructureSubtypeTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
2
2019-02-06T17:50:24.000Z
2019-11-20T16:51:34.000Z
test/language/subtypes/python/StructureSubtypeTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
1
2019-11-25T16:25:51.000Z
2019-11-25T18:09:39.000Z
test/language/subtypes/python/StructureSubtypeTest.py
PeachOS/zserio
ea01f6906c125a6baab7e8ed865eeb08cd46c37c
[ "BSD-3-Clause" ]
null
null
null
import unittest from testutils import getZserioApi class StructureSubtypeTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "subtypes.zs").structure_subtype def testSubtype(self): identifier = 0xFFFF name = "Name" student = self.api...
27.454545
73
0.693709
934555038ff39a406485d6bdb4d1afc4158b3fdc
4,014
py
Python
remora/fab/constants.py
yuanying/remora
b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3
[ "Apache-2.0" ]
null
null
null
remora/fab/constants.py
yuanying/remora
b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3
[ "Apache-2.0" ]
null
null
null
remora/fab/constants.py
yuanying/remora
b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3
[ "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 # ...
40.545455
78
0.716492
93457061a980f8e46b5a9cbb3ce082ad803a482a
1,987
py
Python
hw03.1/store.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
hw03.1/store.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
hw03.1/store.py
dmryutov/otus-python-0319
c825166ff16a2e26f3d99e375b13c9e2e8ada49b
[ "MIT" ]
null
null
null
import functools import time import redis def retry(attempts=5, silent=True): def decorator(f): @functools.wraps(f) def wrapper(*args, **kwargs): for attempt in range(attempts): try: return f(*args, **kwargs) except (TimeoutError, Co...
26.493333
81
0.586311
934579a1e99c4a3d5b744898e5ea9297af95d8ee
4,147
py
Python
tests/makeTextTables.py
ttm/gmaneLegacy
df9e0926c93358abdb632f7f9ce891330959c835
[ "Unlicense" ]
1
2019-04-25T16:31:12.000Z
2019-04-25T16:31:12.000Z
tests/makeTextTables.py
ttm/gmaneLegacy
df9e0926c93358abdb632f7f9ce891330959c835
[ "Unlicense" ]
null
null
null
tests/makeTextTables.py
ttm/gmaneLegacy
df9e0926c93358abdb632f7f9ce891330959c835
[ "Unlicense" ]
null
null
null
# file dedicated to making the tables # for the main document and the Supporting Information # of the artigcle about text differentiation: # https://github.com/ttm/artigoTextoNasRedes/ AND # http://arxiv.org/abs/1412.7309 # tentar fazer as tabelas focadas nas medidas? # fazer td com 100 mensagens somente de cada list...
33.715447
114
0.679769
9345822168d61b20ecd3dfd96efb7e888fe795de
6,793
py
Python
tests/object_test.py
dreamhost/python-cloudfiles
c51cc46634f1b35eccc23dde7e77ef24e2964a43
[ "X11" ]
8
2015-01-27T22:28:26.000Z
2016-02-12T20:03:26.000Z
tests/object_test.py
dreamhost/python-cloudfiles
c51cc46634f1b35eccc23dde7e77ef24e2964a43
[ "X11" ]
null
null
null
tests/object_test.py
dreamhost/python-cloudfiles
c51cc46634f1b35eccc23dde7e77ef24e2964a43
[ "X11" ]
2
2017-12-03T20:09:11.000Z
2021-01-27T11:30:06.000Z
import unittest try: from hashlib import md5 except ImportError: from md5 import md5 from cloudfiles import Object, Connection from cloudfiles.errors import ResponseError, InvalidObjectName,\ InvalidMetaName, InvalidMetaValue from cloudfiles.authentication import MockAuthent...
32.502392
84
0.600324
9345bd1c125ce025bcfb0e7142cb4826eaa16a48
3,467
py
Python
tests/sklearn_stages/test_scale.py
DavidKatz-il/pdpipe
5ddd066425d99886bfc51cf19ab78b2bf8c7791a
[ "MIT" ]
2
2020-08-03T16:45:04.000Z
2020-08-03T16:45:48.000Z
tests/sklearn_stages/test_scale.py
DavidKatz-il/pdpipe
5ddd066425d99886bfc51cf19ab78b2bf8c7791a
[ "MIT" ]
null
null
null
tests/sklearn_stages/test_scale.py
DavidKatz-il/pdpipe
5ddd066425d99886bfc51cf19ab78b2bf8c7791a
[ "MIT" ]
null
null
null
"""Testing basic pipeline stages.""" import pytest import pandas as pd # from numpy.testing import assert_approx_equal from pdpipe.sklearn_stages import Scale from pdpipe.exceptions import PipelineApplicationError def _some_df1(): return pd.DataFrame( data=[[3.2, 0.3, "A"], [7.2, 0.35, "B"], [12.1, 0.29...
27.085938
70
0.601673
9345c52b37235344a0692f579ac4f94605ec4bbf
15,152
py
Python
neutron/tests/unit/api/rpc/handlers/test_dhcp_rpc.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/api/rpc/handlers/test_dhcp_rpc.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/api/rpc/handlers/test_dhcp_rpc.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack Foundation. # # 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...
45.365269
79
0.579857
9345d4c91d04b700efa718a6e3d6ef27b0090146
1,604
py
Python
links/forms.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
links/forms.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
1
2022-02-17T20:28:19.000Z
2022-02-17T20:28:19.000Z
links/forms.py
timptner/farafmb.de
2b154278d8b44ea3adecafcb8554c1b0b0055e01
[ "MIT" ]
null
null
null
from django import forms from django.forms import ValidationError from django.utils.translation import gettext_lazy as _ from .models import Link class LinkAdminForm(forms.ModelForm): class Meta: model = Link fields = ('url', 'text', 'icon', 'position', 'is_active') help_texts = { ...
37.302326
80
0.604738
9345e074f7920696469ff23300637ff31da284be
10,166
py
Python
tests/test_mol.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
tests/test_mol.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
tests/test_mol.py
Ishan-Kumar2/datamol
480998ad9e7fdabfab25bc25d78364301e55eccb
[ "Apache-2.0" ]
null
null
null
import pytest from rdkit import Chem import datamol as dm def test_to_mol(): smiles = "O=C(C)Oc1ccccc1C(=O)O" mol = dm.to_mol(smiles) assert mol.GetNumAtoms() == 13 smiles = "O=C(C)Oc1ccccc1C(=O)O" mol = dm.to_mol(smiles, add_hs=True) assert mol.GetNumAtoms() == 21 smiles = "fake_smile...
30.346269
109
0.674208
9345efbdfbeb2e436648ff8a6873e0d1e332f7cc
14,284
py
Python
tests/snapshots/snap_test_spacy_affixes.py
linhd-postdata/spacy-affixes
c4aff3a75cec8f782cced8a7765fbfb25369d677
[ "Apache-2.0" ]
3
2019-11-21T09:55:41.000Z
2020-07-18T04:01:10.000Z
tests/snapshots/snap_test_spacy_affixes.py
linhd-postdata/spacy-affixes
c4aff3a75cec8f782cced8a7765fbfb25369d677
[ "Apache-2.0" ]
19
2019-05-28T11:20:39.000Z
2021-02-16T09:16:32.000Z
tests/snapshots/snap_test_spacy_affixes.py
linhd-postdata/spacy-affixes
c4aff3a75cec8f782cced8a7765fbfb25369d677
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots['test_split_on_all 1'] = [ [ 'Cuénta', 'contar', 'VERB', 'Mood=Imp|Number=Sing|Person=2|VerbForm=Fin', ...
14.472138
71
0.322459
93463ed74bc894625e3f56dac64de1f3bfef6046
1,801
py
Python
setup.py
pyiron/pyiron_atomistic
0cd4c910806f44dfc829ddd642e323efcf7e36d5
[ "BSD-3-Clause" ]
14
2021-01-18T10:03:56.000Z
2022-03-01T20:59:35.000Z
setup.py
pyiron/pyiron_atomistics
0cd4c910806f44dfc829ddd642e323efcf7e36d5
[ "BSD-3-Clause" ]
569
2018-04-12T06:37:14.000Z
2022-03-31T18:06:27.000Z
setup.py
pyiron/pyiron_atomistic
0cd4c910806f44dfc829ddd642e323efcf7e36d5
[ "BSD-3-Clause" ]
6
2018-10-23T09:48:48.000Z
2022-02-13T12:13:00.000Z
""" Setuptools based setup module """ from setuptools import setup, find_packages import versioneer setup( name='pyiron-atomistics', version=versioneer.get_version(), description='pyiron - an integrated development environment (IDE) for computational materials science.', long_description='http://pyiro...
33.351852
113
0.562465
93464cfe35b81975c3f3928caab0c736724271cf
84,826
py
Python
salt/master.py
johngrasty/salt
f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5
[ "Apache-2.0" ]
null
null
null
salt/master.py
johngrasty/salt
f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5
[ "Apache-2.0" ]
1
2015-09-02T12:49:48.000Z
2015-09-02T19:22:58.000Z
salt/master.py
johngrasty/salt
f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' This module contains all of the routines needed to set up a master server, this involves preparing the three listeners and the workers needed by the master. ''' # Import python libs from __future__ import absolute_import import os import re import sys import time import errno import logging...
38.038565
180
0.540224
934672d23cee24b0a0638080b93e1c1082b839bd
9,084
py
Python
examples/sptam/dataset.py
linpeisensh/dynaslam2py
17306d4c52059c54f17f258a0f7c0e7b70a6baeb
[ "BSD-2-Clause", "MIT" ]
null
null
null
examples/sptam/dataset.py
linpeisensh/dynaslam2py
17306d4c52059c54f17f258a0f7c0e7b70a6baeb
[ "BSD-2-Clause", "MIT" ]
null
null
null
examples/sptam/dataset.py
linpeisensh/dynaslam2py
17306d4c52059c54f17f258a0f7c0e7b70a6baeb
[ "BSD-2-Clause", "MIT" ]
null
null
null
import numpy as np import cv2 import os import time from collections import defaultdict, namedtuple from threading import Thread, Lock from multiprocessing import Process, Queue class ImageReader(object): def __init__(self, ids, timestamps, cam=None): self.ids = ids self.timestamps = timestamps...
35.346304
87
0.566821
9346a7f5523b59eca007ebfdefd43c9c55b4f581
1,961
py
Python
app/data_models/answer.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
3
2020-09-28T13:21:21.000Z
2021-05-05T14:14:51.000Z
app/data_models/answer.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
402
2019-11-06T17:23:03.000Z
2022-03-31T16:03:35.000Z
app/data_models/answer.py
ajmaddaford/eq-questionnaire-runner
474d16c9a85cdda58419dec68e38537e244210ec
[ "MIT" ]
10
2020-03-03T14:23:27.000Z
2022-01-31T12:21:21.000Z
from __future__ import annotations from dataclasses import asdict, dataclass, field from decimal import Decimal from typing import Optional, Union, overload from markupsafe import Markup, escape DictAnswer = dict[str, Union[int, str]] ListAnswer = list[str] DictAnswerEscaped = dict[str, Union[int, Markup]] ListAnswe...
24.209877
87
0.675166
9346ae9675d800c01afd92dada853a71ef1fd102
1,280
py
Python
setup.py
projectgus/python-canalystii
7ef3a4a369a88976291ea91f93ef2b8c322855b9
[ "BSD-3-Clause" ]
3
2021-09-09T16:30:20.000Z
2022-03-11T10:29:19.000Z
setup.py
projectgus/python-canalystii
7ef3a4a369a88976291ea91f93ef2b8c322855b9
[ "BSD-3-Clause" ]
null
null
null
setup.py
projectgus/python-canalystii
7ef3a4a369a88976291ea91f93ef2b8c322855b9
[ "BSD-3-Clause" ]
null
null
null
import io import os from setuptools import find_packages, setup # Import the README and use it as the long-description. root_dir = os.path.abspath(os.path.dirname(__file__)) with io.open(os.path.join(root_dir, "README.md"), encoding="utf-8") as f: long_description = "\n" + f.read() setup( name="canalystii", ...
35.555556
76
0.663281
9346af47270e5be6afe10e36cbdd2b691aee45ba
4,728
py
Python
conftest.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
conftest.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
conftest.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
""" pytest hooks for sasmodels Hooks for running sasmodels tests via pytest. *pytest_collection_modifyitems* adds the test description to the end of the test name. This is needed for the generated list of tests is sasmodels, where each test has a description giving the name of the model. For example "model_tests::[...
39.4
82
0.63769
9346b43eda0bfdca638974b3a1fe25978931978d
9,556
py
Python
regret/tests/test_integration.py
adiroiban/regret
a0a9eb452a902967cdfab4fceadf55f910ccd5a3
[ "MIT" ]
10
2019-10-21T14:57:52.000Z
2021-10-04T08:46:31.000Z
regret/tests/test_integration.py
adiroiban/regret
a0a9eb452a902967cdfab4fceadf55f910ccd5a3
[ "MIT" ]
35
2019-11-07T00:48:01.000Z
2020-12-09T14:28:12.000Z
regret/tests/test_integration.py
adiroiban/regret
a0a9eb452a902967cdfab4fceadf55f910ccd5a3
[ "MIT" ]
2
2020-08-11T13:37:27.000Z
2020-12-05T14:19:55.000Z
from datetime import date import collections import sys from twisted.trial.unittest import SynchronousTestCase import regret class Calculator: @regret.callable(version="1.2.3") def __call__(self): return 12 @regret.callable(version="1.2.3") def calculate(self): return 12 Calculato...
27.538905
79
0.539242
9346bf6def66f4d574e070cfefb33cf293735eea
2,826
py
Python
tensorflow_asr/models/layers/bnlstmcell.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
608
2020-10-15T16:11:23.000Z
2022-03-28T21:23:55.000Z
tensorflow_asr/models/layers/bnlstmcell.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
174
2020-10-15T16:14:27.000Z
2022-03-28T11:48:56.000Z
tensorflow_asr/models/layers/bnlstmcell.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
191
2020-10-16T01:24:15.000Z
2022-03-28T10:30:55.000Z
# Copyright 2020 Huy Le Nguyen (@usimarit) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
33.247059
124
0.621727
9346cf852f130d4c565363be5a0541817d076c9d
6,928
py
Python
alipay/aop/api/domain/KmsBakingInventoryDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/KmsBakingInventoryDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/KmsBakingInventoryDTO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class KmsBakingInventoryDTO(object): def __init__(self): self._accumulate_inventory = None self._data_id = None self._ending_inventory = None self._ending_position = Non...
33.631068
91
0.617494
9346eb6b112f4fabebd693179c26f896f2e39280
2,076
py
Python
nlp_land_prediction_endpoint/routes/route_auth.py
ag-gipp/NLP-Land-prediction-endpoint
03dc3872fc60fe7cb7cc2841d128b44ac23b76c4
[ "MIT" ]
2
2022-03-15T08:11:16.000Z
2022-03-21T14:52:05.000Z
nlp_land_prediction_endpoint/routes/route_auth.py
ag-gipp/NLP-Land-prediction-endpoint
03dc3872fc60fe7cb7cc2841d128b44ac23b76c4
[ "MIT" ]
15
2021-11-21T22:19:05.000Z
2022-02-24T16:15:23.000Z
nlp_land_prediction_endpoint/routes/route_auth.py
ag-gipp/NLP-Land-prediction-endpoint
03dc3872fc60fe7cb7cc2841d128b44ac23b76c4
[ "MIT" ]
1
2022-01-08T14:03:07.000Z
2022-01-08T14:03:07.000Z
"""This module implements the authentication endpoint""" from datetime import timedelta from decouple import config # type: ignore from fastapi import APIRouter, Depends, HTTPException, status from nlp_land_prediction_endpoint.middleware.auth import ( authenticate_user, create_token, get_current_user, ) ...
36.421053
99
0.754817
9346f32fc06aa49b8fd86dc7b312f78886292092
1,072
py
Python
oscar/lib/python2.7/site-packages/pbr/find_package.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pbr/find_package.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pbr/find_package.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2013 Hewlett-Packard Development Company, L.P. # 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 #...
35.733333
76
0.68097
934717a7b530fbbcb6d655661b5bb907f05eee90
458
py
Python
agc/015/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
agc/015/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
agc/015/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys sys.setrecursionlimit(10 ** 6) stdin = sys.stdin def main(): ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N, A, B = na() if A > B: print(0) elif N == 1: if A == B: print(1) e...
17.615385
62
0.458515
93472185617e1d97e418e09887fab80c9c3e6cc7
102
py
Python
typhoon/contrib/functions/debug.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
1
2021-03-26T07:14:25.000Z
2021-03-26T07:14:25.000Z
typhoon/contrib/functions/debug.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
null
null
null
typhoon/contrib/functions/debug.py
biellls/typhoon-orchestrator
f8e40c905fda8143562fc286359233f29d30c6bb
[ "Apache-2.0" ]
null
null
null
def echo(**kwargs): for k, v in kwargs.items(): print('**', k, '=', v) return kwargs
17
31
0.490196
9347432e87650106895e6218da58aba9481cd951
859
py
Python
clif/testing/python/t6_test.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
966
2017-04-18T04:14:04.000Z
2022-03-03T21:22:44.000Z
clif/testing/python/t6_test.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
48
2017-05-02T23:51:29.000Z
2021-12-06T19:10:11.000Z
clif/testing/python/t6_test.py
wangxf123456/clif
9bff8a28f5d266d6ea4f4bb0dc1d9c9a0c9ee5b1
[ "Apache-2.0" ]
135
2017-04-26T06:15:30.000Z
2022-01-07T02:17:20.000Z
# Copyright 2017 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 agreed to in writing,...
28.633333
74
0.733411
9347992c0bc9e741cae86b733a4233a8290511f7
368
py
Python
tests/eth2/beacon/types/test_fork.py
nrryuya/trinity
7436d9c3fdef5fbeef5d7a1123c8ed2ecd16e033
[ "MIT" ]
null
null
null
tests/eth2/beacon/types/test_fork.py
nrryuya/trinity
7436d9c3fdef5fbeef5d7a1123c8ed2ecd16e033
[ "MIT" ]
null
null
null
tests/eth2/beacon/types/test_fork.py
nrryuya/trinity
7436d9c3fdef5fbeef5d7a1123c8ed2ecd16e033
[ "MIT" ]
null
null
null
import rlp from eth2.beacon.types.forks import ( Fork, ) def test_defaults(sample_fork_params): fork = Fork(**sample_fork_params) assert fork.previous_version == sample_fork_params['previous_version'] assert fork.current_version == sample_fork_params['current_version'] assert fork.slot == sample_...
26.285714
74
0.75
93479df1ceaf78e4295776af31ff8f7358c272a3
250
py
Python
tests/unit_tests/bittensor_tests/test_to_wandb.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
tests/unit_tests/bittensor_tests/test_to_wandb.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
tests/unit_tests/bittensor_tests/test_to_wandb.py
chaosxcode/bittensor
9c2f513cc7fb03844952ae3755162ed914b11cba
[ "MIT" ]
null
null
null
import bittensor def test_axon(): axon = bittensor.axon() axon.to_wandb() def test_dendrite(): dendrite = bittensor.dendrite() dendrite.to_wandb() def test_metagraph(): metagraph = bittensor.metagraph() metagraph.to_wandb()
19.230769
37
0.696
9347d0f949ae596573cf4fe8c5160009e804714e
885
py
Python
CS 211/10-Python/codefiles/02-variables.py
MorganBergen/Learning-CPP
a8d8ed92a6e4cb6c96d091d6c7e1ef551968932b
[ "Unlicense" ]
null
null
null
CS 211/10-Python/codefiles/02-variables.py
MorganBergen/Learning-CPP
a8d8ed92a6e4cb6c96d091d6c7e1ef551968932b
[ "Unlicense" ]
null
null
null
CS 211/10-Python/codefiles/02-variables.py
MorganBergen/Learning-CPP
a8d8ed92a6e4cb6c96d091d6c7e1ef551968932b
[ "Unlicense" ]
null
null
null
import sys # From here on out, at least Python 3.6 is required # Only this file will run a check # variables are just declared, the () indicates that this is a tuple MIN_PYTHON = ( 3, 6, ) # Note the syntax; indentation is part of the language if sys.version_info < MIN_PYTHON: sys.exit("Requires Python >=...
30.517241
79
0.719774
9347d4819c96f42441c71b911b7dd20009580704
40,905
py
Python
dmreader/digital_micrograph.py
JStuckner/smart_tem
5381ba1fa5b74784e520bd0f07e420347959f72e
[ "MIT" ]
1
2021-07-28T05:46:33.000Z
2021-07-28T05:46:33.000Z
dmreader/digital_micrograph.py
JStuckner/smart_tem
5381ba1fa5b74784e520bd0f07e420347959f72e
[ "MIT" ]
null
null
null
dmreader/digital_micrograph.py
JStuckner/smart_tem
5381ba1fa5b74784e520bd0f07e420347959f72e
[ "MIT" ]
null
null
null
# Copyright 2010 Stefano Mazzucco # Copyright 2011-2016 The HyperSpy developers # # This file is part of HyperSpy. It is a fork of the original PIL dm3 plugin # written by Stefano Mazzucco. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as p...
39.907317
98
0.537196
9347da4d63a80431285671f23d79bdc6c76a2b30
2,109
py
Python
work/tests/test_views.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
1
2017-03-13T08:49:49.000Z
2017-03-13T08:49:49.000Z
work/tests/test_views.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
null
null
null
work/tests/test_views.py
allink/allink-apps
101a9e2e0129d932970e0ae89f790d2033a7c805
[ "BSD-3-Clause" ]
null
null
null
# # -*- coding: utf-8 -*- # """ AllinkBasePluginLoadMoreView is going to bes testet in test_plugins.py """ # from __future__ import unicode_literals # # from django.core.urlresolvers import reverse # from django.http import Http404 # from django.test.client import RequestFactory # # from cms.utils.i18n import force_l...
38.345455
71
0.684685
9347f9f5317270d73a429c4952ad0a73942682bd
9,746
py
Python
tests/memberships/test_membership_services.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
tests/memberships/test_membership_services.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
tests/memberships/test_membership_services.py
max-moser/invenio-communities
cfdd6a8b36bf6856db4fd55123c832700eb32376
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2022 Northwestern University. # # Invenio-Communities is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Test community invitations service.""" import pytest from elasticsearch_dsl.query impor...
32.165017
79
0.681613
9348022a95ee3b61e2c998b60b21253758a1383e
15,185
py
Python
coinrun/ppo2.py
jakegrigsby/coinrun
b64bcfb4b952306a397beb00505b0b8ff14200e1
[ "MIT" ]
332
2018-12-06T14:51:44.000Z
2022-03-17T04:36:34.000Z
coinrun/ppo2.py
jakegrigsby/coinrun
b64bcfb4b952306a397beb00505b0b8ff14200e1
[ "MIT" ]
39
2018-12-06T19:19:35.000Z
2021-06-30T13:25:13.000Z
coinrun/ppo2.py
jakegrigsby/coinrun
b64bcfb4b952306a397beb00505b0b8ff14200e1
[ "MIT" ]
85
2018-12-06T14:52:41.000Z
2021-12-02T11:37:49.000Z
""" This is a copy of PPO from openai/baselines (https://github.com/openai/baselines/blob/52255beda5f5c8760b0ae1f676aa656bb1a61f80/baselines/ppo2/ppo2.py) with some minor changes. """ import time import joblib import numpy as np import tensorflow as tf from collections import deque from mpi4py import MPI from coinru...
38.638677
175
0.619295
93482e9c933a6b9c262391cfa94cd5c37b881ab9
1,155
py
Python
clients/client/python/test/test_submit_self_service_login_flow_with_lookup_secret_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/test/test_submit_self_service_login_flow_with_lookup_secret_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/test/test_submit_self_service_login_flow_with_lookup_secret_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.71 Contact: support@ory.sh Generated by: htt...
31.216216
194
0.769697
934844b42a561d2ebefe9c6ec9a93594ee3e9059
1,105
py
Python
args & kwargs/index1.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
args & kwargs/index1.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
args & kwargs/index1.py
Sudani-Coder/python
9c35f04a0521789ba91b7058695139ed074f7796
[ "MIT" ]
null
null
null
peoples = { "Osama": { "HTML": "53%", "CSS": "25%", "JS": "41%", "PY": "10%", "SQL": "17%" }, "Ahmed": { "HTML": "55%", "CSS": "65%", "JS": "75%", "PY": "85%", "SQL": "95%" }, "Omer": { "HTML": "100%", "C...
20.090909
57
0.39276
934859d08ef91f01769f1fadc358d47ffdacea4f
370
py
Python
LC/451.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/451.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/451.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def frequencySort(self, s): """ :type s: str :rtype: str """ d = collections.defaultdict(int) for c in s: d[c] += 1 l = [[-d[key],key] for key in d] l.sort() # print l res = ''.join(...
21.764706
44
0.394595
93486ecb6130911395a2681013684470d4914408
39,012
py
Python
algopy/tracer/tracer.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
54
2015-03-05T13:38:08.000Z
2021-11-29T11:54:48.000Z
algopy/tracer/tracer.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
7
2016-04-06T11:25:00.000Z
2020-11-09T13:53:20.000Z
algopy/tracer/tracer.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
13
2015-01-17T17:05:56.000Z
2021-08-05T01:13:16.000Z
import traceback import time import copy import numpy import algopy import operator from algopy.base_type import Ring class PlotError(Exception): pass class NotSet: def __init__(self, descr=None): if descr is None: descr = '' self.descr = descr def __str__(self): return 'n...
28.74871
158
0.536399
9348a114b271c42a93483268b31c60a53d2b3e22
1,512
py
Python
vyperlogix/sockets/proxies/socks/sockshandler.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/sockets/proxies/socks/sockshandler.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/sockets/proxies/socks/sockshandler.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
""" SocksiPy + urllib2 handler version: 0.2 author: e<e@tr0ll.in> This module provides a Handler which you can use with urllib2 to allow it to tunnel your connection through a socks.sockssocket socket, with out monkey patching the original socket... """ import urllib2 import httplib import socks class SocksiPyConnec...
37.8
183
0.685847
9348b793f688cbebb80dc207e4d4b5c92ab4247d
10,703
py
Python
deepcell_retinamask/model_zoo/retinamask_test.py
vanvalenlab/deepcell-retinamask
c922d4d836e881270da8b43c420c60d365883639
[ "Apache-2.0" ]
null
null
null
deepcell_retinamask/model_zoo/retinamask_test.py
vanvalenlab/deepcell-retinamask
c922d4d836e881270da8b43c420c60d365883639
[ "Apache-2.0" ]
2
2021-11-26T11:18:44.000Z
2022-01-21T11:29:41.000Z
deepcell_retinamask/model_zoo/retinamask_test.py
vanvalenlab/deepcell-retinamask
c922d4d836e881270da8b43c420c60d365883639
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2021 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
34.63754
81
0.520228
9348cdf5f41d4e9ff6aca41fbdb022f5a10f4725
1,036
py
Python
oscar/lib/python2.7/site-packages/django/contrib/postgres/apps.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/postgres/apps.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/postgres/apps.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig from django.db import connections from django.db.backends.signals import connection_created from django.db.models import CharField, TextField from django.utils.translation import ugettext_lazy as _ from .lookups import SearchLookup, TrigramSimilar, Unaccent from .signals import...
38.37037
62
0.736486
9348d86e734a824f9e4153e6af1bf853f83d26f0
440
py
Python
p23.py
cemulate/python-challenge
1c3b790d3a32cd51b3bc9ed4d1acc2760405f358
[ "MIT" ]
null
null
null
p23.py
cemulate/python-challenge
1c3b790d3a32cd51b3bc9ed4d1acc2760405f358
[ "MIT" ]
null
null
null
p23.py
cemulate/python-challenge
1c3b790d3a32cd51b3bc9ed4d1acc2760405f358
[ "MIT" ]
null
null
null
import this print "\nRot13 message:" string = 'va gur snpr bs jung?' print string, "\n" string = string.encode("rot13") print string print "\nambiguity" print "Apologizing to Leopold..." #import smtplib #server = smtplib.SMTP('smtp.gmail.com:587') #server.starttls() #server.login("c.ed.mead@gmail.com", raw_input("...
23.157895
85
0.713636
9348e1bd29555ec84e3e3055e492ca2a2248f2c8
6,504
py
Python
wltp/utils.py
JRCSTU/wltp
18650f372044371ed994a161a93473a75e76d2a9
[ "Apache-2.0" ]
11
2017-05-22T18:31:01.000Z
2021-11-08T12:20:07.000Z
wltp/utils.py
JRCSTU/wltp
18650f372044371ed994a161a93473a75e76d2a9
[ "Apache-2.0" ]
11
2016-08-09T13:37:13.000Z
2020-03-31T20:33:20.000Z
wltp/utils.py
JRCSTU/wltp
18650f372044371ed994a161a93473a75e76d2a9
[ "Apache-2.0" ]
6
2017-11-30T10:22:32.000Z
2020-12-03T14:04:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2013-2020 European Commission (JRC); # Licensed under the EUPL (the 'Licence'); # You may not use this work except in compliance with the Licence. # You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl """software utils unrelated to physics ...
23.480144
102
0.602399
9348e977995c60117d12a3a5575636eeea558f6c
2,941
py
Python
probedesign.py
xyanqian/multi_padlock_design
b2696cb615bd5688668b0fe768a4c19c0d0cb7aa
[ "MIT" ]
6
2019-12-11T16:35:26.000Z
2021-08-12T12:15:04.000Z
probedesign.py
xyanqian/multi_padlock_design
b2696cb615bd5688668b0fe768a4c19c0d0cb7aa
[ "MIT" ]
7
2018-07-05T13:50:27.000Z
2022-03-07T07:20:51.000Z
probedesign.py
xyanqian/multi_padlock_design
b2696cb615bd5688668b0fe768a4c19c0d0cb7aa
[ "MIT" ]
5
2018-11-09T09:46:30.000Z
2022-03-11T15:22:06.000Z
# padlock design pipeline for multiplexed assay with multiple probes per target in cDNA-based expression profiling # Xiaoyan, 2017 from lib import checkinput from lib import screenseq from lib import formatrefseq from lib import parblast from lib import readblast from lib import createoutput from lib import distribute...
42.014286
128
0.687181
9348fa2a7b24d5f1ba8d473bcc99b97bd463b0bc
4,003
py
Python
alipay/aop/api/request/AlipayOpenIotMembershipcouponQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenIotMembershipcouponQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenIotMembershipcouponQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenIotMembershipcouponQueryModel import AlipayOpenIotMembershipcouponQueryModel class AlipayOpenIotMembershipcouponQueryReque...
27.606897
148
0.647514
93492c3855d503370d58d66ffe07f956589d3a73
3,520
py
Python
vinnie/base.py
banthaherder/vinnie
31f9be61a9385dfd18c527d7015c11ab4179f11f
[ "BSD-3-Clause" ]
8
2019-08-08T08:25:15.000Z
2021-04-14T10:34:51.000Z
vinnie/base.py
banthaherder/vinnie
31f9be61a9385dfd18c527d7015c11ab4179f11f
[ "BSD-3-Clause" ]
10
2019-11-12T20:24:54.000Z
2021-11-24T22:18:31.000Z
vinnie/base.py
banthaherder/vinnie
31f9be61a9385dfd18c527d7015c11ab4179f11f
[ "BSD-3-Clause" ]
5
2019-08-07T16:51:19.000Z
2021-04-14T08:08:07.000Z
import semver import re import click from .backends import VinnieGit, VinnieGitHub, VinnieGitLab from .config import VinnieConfig from .exceptions import VinnieConfigError class Vinnie: def __init__(self, **kwargs): # Set object properties from all kwargs self.config = VinnieConfig(**kwargs) ...
30.344828
86
0.639489
9349403b3d00ca804cf8c72d39ee5ec4bc6cde30
7,682
py
Python
bin/hillviewCommon.py
uwieder/Hillview
783fcf0399a46961d36cd9eea2369b7ab611662e
[ "Apache-2.0" ]
null
null
null
bin/hillviewCommon.py
uwieder/Hillview
783fcf0399a46961d36cd9eea2369b7ab611662e
[ "Apache-2.0" ]
null
null
null
bin/hillviewCommon.py
uwieder/Hillview
783fcf0399a46961d36cd9eea2369b7ab611662e
[ "Apache-2.0" ]
null
null
null
"""Common functions user by the Hillview deployment scripts""" # pylint: disable=invalid-name,too-few-public-methods, bare-except import os.path import subprocess import tempfile import json from argparse import ArgumentParser def execute_command(command): """Executes the specified command using a shell""" pr...
38.218905
92
0.625749
9349779a3063435a0632c0e364eb7251e9dd9c90
11,943
py
Python
ifeh_mcmc_RRc.py
idekany/ifeh
8ce3f626c09bfc6f6bb26a8004fc95005ff0ac99
[ "MIT" ]
null
null
null
ifeh_mcmc_RRc.py
idekany/ifeh
8ce3f626c09bfc6f6bb26a8004fc95005ff0ac99
[ "MIT" ]
null
null
null
ifeh_mcmc_RRc.py
idekany/ifeh
8ce3f626c09bfc6f6bb26a8004fc95005ff0ac99
[ "MIT" ]
null
null
null
import joblib import pymc3 as pm import pandas as pd import os import numpy as np from sklearn.linear_model import LinearRegression import arviz as az import ifeh_io as io # ====================================================================================================================== # PREAMBLE # The root dir...
42.960432
120
0.584778
9349a2803686bf422802c21ee364d75e1d61b267
3,306
py
Python
river/tree/splitter/base.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/tree/splitter/base.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/tree/splitter/base.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
import abc import typing from river import base from ..split_criterion.base import SplitCriterion from ..utils import BranchFactory, GradHess, GradHessStats class Splitter(base.Estimator, abc.ABC): """Base class for the tree splitters. Each Attribute Observer (AO) or Splitter monitors one input feature and...
29
93
0.633394
9349b4072e96830d18e06b81d64ec30b22c54aeb
18,120
py
Python
utils.py
nblt/DLDR
7dbe368340203a9f6d8569421173b3b21b0ab159
[ "MIT" ]
13
2021-03-24T05:22:54.000Z
2022-03-24T07:43:53.000Z
utils.py
nblt/DLDR
7dbe368340203a9f6d8569421173b3b21b0ab159
[ "MIT" ]
null
null
null
utils.py
nblt/DLDR
7dbe368340203a9f6d8569421173b3b21b0ab159
[ "MIT" ]
3
2021-03-24T05:28:34.000Z
2022-02-15T06:06:57.000Z
import argparse import os import shutil import time import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data import torch.nn.functional as F import torchvision.transforms as transforms import torchvision.datasets as datasets im...
40.356347
108
0.553974
9349bd2cd33b21348b9e3eeb18954c164d1890de
6,195
py
Python
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py
DiptoChakrabarty/Kube-Automate
2072d1aadd58eb405c7308ff5cfecbf50300ead3
[ "MIT" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: release-1.15 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1bet...
30.975
124
0.618886
9349cdca8c0afe102ec07b42cf7f92f51fdab674
52,929
py
Python
tensorflowvisu_digits.py
cbienpourtoi/test-tensorflow
afc4f86dd5c6ef8e7557b044af75b4b316d369bb
[ "Apache-2.0" ]
8
2017-03-23T04:08:25.000Z
2020-02-13T19:00:33.000Z
tensorflowvisu_digits.py
cbienpourtoi/test-tensorflow
afc4f86dd5c6ef8e7557b044af75b4b316d369bb
[ "Apache-2.0" ]
null
null
null
tensorflowvisu_digits.py
cbienpourtoi/test-tensorflow
afc4f86dd5c6ef8e7557b044af75b4b316d369bb
[ "Apache-2.0" ]
8
2016-12-31T05:08:37.000Z
2019-11-19T08:54:41.000Z
# encoding: UTF-8 # Copyright 2016 Google.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
90.322526
96
0.307639
934a008b767c5be524eaf2a3d4e28be3496c2593
936
py
Python
tests/test_pde.py
maroba/physix
be8b6aabb8b784511906e4a0e531db10072137a5
[ "MIT" ]
null
null
null
tests/test_pde.py
maroba/physix
be8b6aabb8b784511906e4a0e531db10072137a5
[ "MIT" ]
null
null
null
tests/test_pde.py
maroba/physix
be8b6aabb8b784511906e4a0e531db10072137a5
[ "MIT" ]
null
null
null
import unittest import numpy as np from physix.pde import solve_poisson_dirichlet, jacobi class TestPoisson(unittest.TestCase): def test_poisson_1d_dirichlet(self): x = np.linspace(-1, 1, 40) rho = 6*x f_exact = x**3 f = np.zeros_like(x) # Set boundary conditions ...
22.829268
64
0.581197
934a423ab8bffcf740ffb0c78e8d86e8b3fd1143
553
py
Python
refactored-text-only/getAdjacent.py
EndreoT/Minesweeper
9b7a195c0e1995cfacacf66496d32e6e2015d973
[ "MIT" ]
1
2019-07-15T18:07:00.000Z
2019-07-15T18:07:00.000Z
refactored-text-only/getAdjacent.py
EndreoT/Minesweeper
9b7a195c0e1995cfacacf66496d32e6e2015d973
[ "MIT" ]
1
2018-03-25T00:39:59.000Z
2018-07-30T22:46:49.000Z
refactored-text-only/getAdjacent.py
EndreoT/Minesweeper
9b7a195c0e1995cfacacf66496d32e6e2015d973
[ "MIT" ]
2
2019-10-07T02:21:35.000Z
2021-11-26T17:29:47.000Z
from typing import Set from coordinate import Coordinate def get_adjacent(index: Coordinate) -> Set[Coordinate]: """Returns all 9 adjacent coordinates of an input coordinate""" row, col = index.row, index.col coordinates = [ (col - 1, row - 1), (col, row - 1), (col + 1, row - 1), (col - ...
27.65
67
0.555154
934a6df16c9720a83d717703ab3a22968c39dce3
32,368
py
Python
lite-hrnet/src/mmpose/shared_transforms.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
lite-hrnet/src/mmpose/shared_transforms.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
lite-hrnet/src/mmpose/shared_transforms.py
kingcong/MindSpore_Code
afe6ef9cada6c98f601754197db84ee1c21dbc9d
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 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...
38.214876
79
0.563025
934a866877ac5160a341ff8cebfe25efc399f4f1
15,897
py
Python
rl-toolkit/rlf/exp_mgr/auto_plot.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
rl-toolkit/rlf/exp_mgr/auto_plot.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
rl-toolkit/rlf/exp_mgr/auto_plot.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, './') import argparse import yaml from rlf.rl.utils import human_format_int from rlf.exp_mgr.wb_data_mgr import get_report_data from rlf.exp_mgr.plotter import uncert_plot, high_res_save, MARKER_ORDER import matplotlib.pyplot as plt import os.path as osp import os import pandas as pd impor...
40.042821
93
0.56539
934a8ca1ecae3ee37cdb67aba3c21d2c75ab235d
589
py
Python
hs_core/migrations/0040_auto_20190105_1844.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/migrations/0040_auto_20190105_1844.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/migrations/0040_auto_20190105_1844.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2019-01-05 18:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hs_core', '0039_doi_url'), ] operations = [ migrations.AddField( model_name='baseresource', ...
22.653846
57
0.584041
934a8f154894c966dc9828e813c4aff2d55f4965
682
py
Python
Web-app/app.py
profHajal/ML-practice
1333b7ce2fa32eb53f6805c808e2e564a1d4e41a
[ "MIT" ]
1
2020-01-19T01:30:03.000Z
2020-01-19T01:30:03.000Z
Web-app/app.py
profHajal/ML-practice
1333b7ce2fa32eb53f6805c808e2e564a1d4e41a
[ "MIT" ]
null
null
null
Web-app/app.py
profHajal/ML-practice
1333b7ce2fa32eb53f6805c808e2e564a1d4e41a
[ "MIT" ]
4
2019-07-29T09:49:23.000Z
2020-11-11T15:24:11.000Z
import numpy as np from flask import Flask, request, render_template import pickle app = Flask(__name__) model = pickle.load(open('model.pkl', 'rb')) @app.route('/') def home(): return render_template('index.html') @app.route('/predict',methods=['POST']) def predict(): ''' For rendering res...
26.230769
94
0.659824
934a96c3faebec25c4b102a831357c8b09eb44d4
2,891
py
Python
maro/rl/storage/abstract_store.py
zhawan/maro
d8c98deea4296cdcb90efd1fb59bc571cec3a2ef
[ "MIT" ]
null
null
null
maro/rl/storage/abstract_store.py
zhawan/maro
d8c98deea4296cdcb90efd1fb59bc571cec3a2ef
[ "MIT" ]
null
null
null
maro/rl/storage/abstract_store.py
zhawan/maro
d8c98deea4296cdcb90efd1fb59bc571cec3a2ef
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from abc import ABC, abstractmethod from typing import Callable, Tuple class AbstractStore(ABC): @abstractmethod def __init__(self): pass @abstractmethod def put(self, items, index_sampler: Callable[[object], float] = N...
29.20202
123
0.565894
934aee17ae8a074c024bd82ff17e5e4250d53350
3,797
py
Python
tests/common/test_run/ascend/reduce_max_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/reduce_max_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/reduce_max_ad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2019-2021 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...
52.013699
130
0.65025
934b0b9f211fa7bd7900351faa2754812e138cfe
979
py
Python
venv/Lib/site-packages/pyrogram/methods/advanced/__init__.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/methods/advanced/__init__.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/methods/advanced/__init__.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...
32.633333
75
0.745659
934b2945cf2d0be950c90c95a4de14b9e74f1254
72
py
Python
geoapps/simpegPF/EM/Static/__init__.py
RichardScottOZ/geoapps
5b3c1d4fd11add45992e8b2497312ac014272b69
[ "MIT" ]
3
2020-11-27T03:18:28.000Z
2022-03-18T01:29:58.000Z
geoapps/simpegPF/EM/Static/__init__.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
null
null
null
geoapps/simpegPF/EM/Static/__init__.py
sebhmg/geoapps
1463ba4ec3c914abdc7403e54eca0ee2bbc3f4f4
[ "MIT" ]
1
2021-03-21T09:54:33.000Z
2021-03-21T09:54:33.000Z
from . import DC from . import IP from . import SIP from . import Utils
14.4
19
0.722222
934b7367cdd916b591ac90c1f7ea44894c461a35
3,765
py
Python
site_analysis/trajectory.py
bjmorgan/siteid
22504f264763afab5a4fb7c888bd3962d0133cd9
[ "MIT" ]
5
2019-07-29T16:27:04.000Z
2021-11-17T08:45:12.000Z
site_analysis/trajectory.py
bjmorgan/siteid
22504f264763afab5a4fb7c888bd3962d0133cd9
[ "MIT" ]
null
null
null
site_analysis/trajectory.py
bjmorgan/siteid
22504f264763afab5a4fb7c888bd3962d0133cd9
[ "MIT" ]
1
2021-08-09T03:01:10.000Z
2021-08-09T03:01:10.000Z
from collections import Counter from tqdm import tqdm, tqdm_notebook # type: ignore from .polyhedral_site_collection import PolyhedralSiteCollection from .polyhedral_site import PolyhedralSite from .voronoi_site import VoronoiSite from .voronoi_site_collection import VoronoiSiteCollection from .spherical_site import Sp...
35.186916
90
0.660823
934b8cc12695fd889fe25f77c3de422654d73c72
13,945
py
Python
threadartists.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
threadartists.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
threadartists.py
SanjibSarkarU/EDRC
c2408fad8b007b4709ee91caf173f98612afadb1
[ "Apache-2.0" ]
null
null
null
""" A library to allow the sending of artists from threads to matplotlib.animation.FuncAnimation During registration of the various X_Artits objects, the artists get registered by the ArtistManager function. When an object gets out of scope, the artist gets deleted from the list of artists. """ import logging import q...
32.811765
110
0.612191