hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
9c7a8280602a95230f929c37cf9b22def4eaba6c
126
py
Python
beginner/sum-of-all-numbers_vinicius121.py
garvitsharma05/hacktoberithms
25aea28f362de22414569d67436a670bea5a3aeb
[ "MIT" ]
16
2018-10-05T07:35:06.000Z
2021-10-02T12:12:52.000Z
beginner/sum-of-all-numbers_vinicius121.py
garvitsharma05/hacktoberithms
25aea28f362de22414569d67436a670bea5a3aeb
[ "MIT" ]
50
2018-10-04T00:04:24.000Z
2019-10-25T16:29:58.000Z
beginner/sum-of-all-numbers_vinicius121.py
garvitsharma05/hacktoberithms
25aea28f362de22414569d67436a670bea5a3aeb
[ "MIT" ]
115
2018-10-04T02:42:18.000Z
2021-01-27T17:34:21.000Z
#Sum of numbers a = [1, 4] b = [5, 1] def sum_all(lst): return sum(range(min(lst), max(lst) + 1)) print(sum_all(a))
14
45
0.563492
2e3210520663d3186186f70ce2b2b079eb28987d
2,644
py
Python
backend2/src/db/models/article.py
alexxxnf/VirusMutationsAI
c06d2506ab8fe8e20d1d10b1c201ad2355c9e7ba
[ "Apache-2.0" ]
null
null
null
backend2/src/db/models/article.py
alexxxnf/VirusMutationsAI
c06d2506ab8fe8e20d1d10b1c201ad2355c9e7ba
[ "Apache-2.0" ]
null
null
null
backend2/src/db/models/article.py
alexxxnf/VirusMutationsAI
c06d2506ab8fe8e20d1d10b1c201ad2355c9e7ba
[ "Apache-2.0" ]
null
null
null
from enum import Enum, unique from uuid import uuid4 from markupsafe import Markup from sqlalchemy import Column, UnicodeText, Index, Date, Enum as EnumType, ForeignKeyConstraint, PrimaryKeyConstraint from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.orm import relationship from sqlalchemy_utils import T...
33.468354
117
0.715961
3152e2686a688786c7add5f288a1e153eee1fe6f
1,168
py
Python
scripts/FlowByActivity_Crosswalks/write_Crosswalk_BEA_2012_Detail.py
JohnAndrewTaylor/flowsa
21b14b19f08370db574bdd59219a2773983c6f95
[ "CC0-1.0" ]
null
null
null
scripts/FlowByActivity_Crosswalks/write_Crosswalk_BEA_2012_Detail.py
JohnAndrewTaylor/flowsa
21b14b19f08370db574bdd59219a2773983c6f95
[ "CC0-1.0" ]
null
null
null
scripts/FlowByActivity_Crosswalks/write_Crosswalk_BEA_2012_Detail.py
JohnAndrewTaylor/flowsa
21b14b19f08370db574bdd59219a2773983c6f95
[ "CC0-1.0" ]
null
null
null
# write_Crosswalk_BEA_2012_Detail.py (scripts) # !/usr/bin/env python3 # coding=utf-8 """ Create a crosswalk linking BEA to NAICS for 2012 Detail """ from flowsa.common import datapath, load_bea_crosswalk if __name__ == '__main__': cw_load = load_bea_crosswalk() cw = cw_load[['BEA_2012_Detail_Code', 'NAICS...
34.352941
107
0.682363
6a4f8c2d4f425e25ce743c908423a4fa2a00051e
3,059
py
Python
src/celery_longterm_scheduler/tests/test_task.py
ZeitOnline/celery_longterm_scheduler
5dca063cefdf66b3065472f9f4672041640f132a
[ "BSD-3-Clause" ]
22
2018-05-21T21:00:25.000Z
2022-01-19T01:30:29.000Z
src/celery_longterm_scheduler/tests/test_task.py
ZeitOnline/celery_longterm_scheduler
5dca063cefdf66b3065472f9f4672041640f132a
[ "BSD-3-Clause" ]
5
2020-03-19T04:41:03.000Z
2022-01-07T07:26:50.000Z
src/celery_longterm_scheduler/tests/test_task.py
ZeitOnline/celery_longterm_scheduler
5dca063cefdf66b3065472f9f4672041640f132a
[ "BSD-3-Clause" ]
7
2018-05-03T06:30:40.000Z
2022-03-29T14:20:51.000Z
from __future__ import unicode_literals from celery_longterm_scheduler import get_scheduler from celery_longterm_scheduler.conftest import CELERY import mock import pendulum @CELERY.task def echo(arg): return arg def test_should_store_all_arguments_needed_for_send_task(celery_worker): # Cannot do this with ...
42.486111
79
0.667865
9dae610cb97b83a1098477a10bdc36710fc4a50e
2,682
py
Python
huaweicloud-sdk-dms/huaweicloudsdkdms/v2/model/delete_queue_request.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-dms/huaweicloudsdkdms/v2/model/delete_queue_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-dms/huaweicloudsdkdms/v2/model/delete_queue_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six class DeleteQueueRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value...
24.833333
74
0.53393
79071ee9fe7f49640ed19449e3f774d5649ae15f
1,040
py
Python
tests/test_client.py
huangwanquan/python-orion-client
33a430b47ac8cc311d852d838b1f1e1409b5b322
[ "Apache-2.0" ]
null
null
null
tests/test_client.py
huangwanquan/python-orion-client
33a430b47ac8cc311d852d838b1f1e1409b5b322
[ "Apache-2.0" ]
null
null
null
tests/test_client.py
huangwanquan/python-orion-client
33a430b47ac8cc311d852d838b1f1e1409b5b322
[ "Apache-2.0" ]
1
2021-09-30T09:07:14.000Z
2021-09-30T09:07:14.000Z
#!/usr/bin/env python3 # Software Name: ngsildclient # SPDX-FileCopyrightText: Copyright (c) 2021 Orange # SPDX-License-Identifier: Apache 2.0 # # This software is distributed under the Apache 2.0; # see the NOTICE file for more details. # # Author: Fabien BATTELLO <fabien.battello@orange.com> et al. # SPDX-License-Id...
28.108108
83
0.721154
a977d06d45b7bdd596ff1986f46f5a9479df6d90
21,153
py
Python
xtools/formatter.py
DarthNoxix/noxixcogsv2
805f7d9b0c7c2da99b09f17c74f70c9ae41325f7
[ "MIT" ]
null
null
null
xtools/formatter.py
DarthNoxix/noxixcogsv2
805f7d9b0c7c2da99b09f17c74f70c9ae41325f7
[ "MIT" ]
null
null
null
xtools/formatter.py
DarthNoxix/noxixcogsv2
805f7d9b0c7c2da99b09f17c74f70c9ae41325f7
[ "MIT" ]
null
null
null
import datetime import json import math import discord import tabulate from redbot.core.utils.chat_formatting import box # Check if an object is None def check(data): if data: return data return "¯\\_(ツ)_/¯" # Time Converter def time_format(time): minutes, _ = divmod(time, 60) hours, minute...
37.773214
120
0.542051
87ef2823f13d09b08156bddf30ed9cd0edf94ea3
1,957
py
Python
Autocoders/Python/src/fprime_ac/generators/writers/ComponentTestHWriter.py
sommercharles/fprime
f28c92e31d58e7e44bff09ad57d574ca5d5e91c7
[ "Apache-2.0" ]
1
2022-02-15T19:28:01.000Z
2022-02-15T19:28:01.000Z
Autocoders/Python/src/fprime_ac/generators/writers/ComponentTestHWriter.py
abcouwer-jpl/fprime
f28c92e31d58e7e44bff09ad57d574ca5d5e91c7
[ "Apache-2.0" ]
5
2020-07-13T16:56:33.000Z
2020-07-23T20:38:13.000Z
Autocoders/Python/src/fprime_ac/generators/writers/ComponentTestHWriter.py
abcouwer-jpl/fprime
f28c92e31d58e7e44bff09ad57d574ca5d5e91c7
[ "Apache-2.0" ]
null
null
null
#=============================================================================== # NAME: ComponentTestHWriter.py # # DESCRIPTION: A writer for generating component test header files # # AUTHOR: Jordan Ishii # EMAIL: jordan.ishii@jpl.nasa.gov # DATE CREATED : July 8, 2019 # # Copyright 2015, California Institute of Te...
30.578125
80
0.615738
b442395a2db1826bb6947bf64ef582ef3f69b81b
17,785
py
Python
tests/test_acceptance.py
nickswebsite/nickswebsite-serializer
2c131a04a4105afae439670f96b5b72bdfe65854
[ "Unlicense" ]
2
2017-09-26T16:38:36.000Z
2018-08-09T15:09:51.000Z
tests/test_acceptance.py
nickswebsite/nickswebsite-serializer
2c131a04a4105afae439670f96b5b72bdfe65854
[ "Unlicense" ]
8
2015-02-20T13:16:11.000Z
2016-12-20T14:55:43.000Z
tests/test_acceptance.py
nickswebsite/nickswebsite-serializer
2c131a04a4105afae439670f96b5b72bdfe65854
[ "Unlicense" ]
6
2015-05-20T21:26:40.000Z
2018-08-08T10:33:04.000Z
# import datetime from datetime import timedelta, datetime, date, time import random import unittest import uuid import pytz from r2dto.fields import StringField, BooleanField, FloatField, IntegerField, ListField, ObjectField, \ InternetDateTimeField, DateTimeField, UuidField, DateField, TimeField, \ _default...
38.247312
115
0.58167
46fe88b2c078084c49448e4e21d52fd0abf277d1
755
py
Python
lf3py/app/provider.py
rog-works/lf3py
e89937f7aa133ed54d85764f06101ab9abf6b960
[ "CNRI-Python" ]
null
null
null
lf3py/app/provider.py
rog-works/lf3py
e89937f7aa133ed54d85764f06101ab9abf6b960
[ "CNRI-Python" ]
48
2020-12-19T13:47:26.000Z
2021-01-07T22:27:56.000Z
lf3py/app/provider.py
rog-works/lf3py
e89937f7aa133ed54d85764f06101ab9abf6b960
[ "CNRI-Python" ]
null
null
null
from lf3py.aws.sns.record import SNSRecords from lf3py.config import ModuleDefinitions from lf3py.di import DI from lf3py.lang.module import load_module_path from lf3py.task.data import Command, CommandQueue def di_container(modules: ModuleDefinitions) -> DI: di = DI() for symbol_module_path, inject_module_pa...
26.034483
66
0.73245
1fef58e2bafadf3cb74ab879c812675c2ab2ba18
25,354
py
Python
metadata-ingestion/src/datahub/ingestion/source/identity/azure_ad.py
ShubhamThakre/datahub
08a5fcfd017d4a2903a7b637f1e2129b9d7793ea
[ "Apache-2.0" ]
1,603
2016-03-03T17:21:03.000Z
2020-01-22T22:12:02.000Z
metadata-ingestion/src/datahub/ingestion/source/identity/azure_ad.py
ShubhamThakre/datahub
08a5fcfd017d4a2903a7b637f1e2129b9d7793ea
[ "Apache-2.0" ]
1,157
2016-03-03T19:29:22.000Z
2020-01-20T14:41:59.000Z
metadata-ingestion/src/datahub/ingestion/source/identity/azure_ad.py
ShubhamThakre/datahub
08a5fcfd017d4a2903a7b637f1e2129b9d7793ea
[ "Apache-2.0" ]
570
2016-03-03T17:21:05.000Z
2020-01-21T06:54:10.000Z
import json import logging import re import urllib from collections import defaultdict from dataclasses import dataclass, field from typing import Any, Dict, Generator, Iterable, List import click import requests from pydantic.fields import Field from datahub.configuration import ConfigModel from datahub.configuratio...
42.972881
253
0.651889
ddc012bbbfd1dd875eb70c49385568f23faf9eb2
2,342
py
Python
tests/test_map.py
lpozo/pydata-structures
5d014c6c2bef9fd623a6e80feca55f938b1e3ffe
[ "MIT" ]
1
2021-08-15T01:13:53.000Z
2021-08-15T01:13:53.000Z
tests/test_map.py
lpozo/pydata-structures
5d014c6c2bef9fd623a6e80feca55f938b1e3ffe
[ "MIT" ]
null
null
null
tests/test_map.py
lpozo/pydata-structures
5d014c6c2bef9fd623a6e80feca55f938b1e3ffe
[ "MIT" ]
1
2021-07-26T00:51:39.000Z
2021-07-26T00:51:39.000Z
"""Test map.py.""" from collections import OrderedDict import pytest from pyadt import Map @pytest.mark.parametrize( "iterable, expected", [ pytest.param({}, 0), # Empty dict pytest.param({"one": 1, "two": 2}, 2), # dict pytest.param(OrderedDict({"one": 1, "two": 2}), 2), ], )...
21.486239
75
0.599915
417d957a21b562cd8c483e3ac3cc628603ba137a
1,899
py
Python
gamer/plot_slice.py
Thirty-OneR/Turbulence-initial-condition
ec8438602bdd6ec7b5985215e56ff6916b82855e
[ "BSD-3-Clause" ]
2
2021-01-16T03:47:47.000Z
2021-01-16T07:22:41.000Z
gamer/plot_slice.py
Thirty-OneR/Turbulence-initial-condition
ec8438602bdd6ec7b5985215e56ff6916b82855e
[ "BSD-3-Clause" ]
null
null
null
gamer/plot_slice.py
Thirty-OneR/Turbulence-initial-condition
ec8438602bdd6ec7b5985215e56ff6916b82855e
[ "BSD-3-Clause" ]
1
2018-11-16T22:18:35.000Z
2018-11-16T22:18:35.000Z
import argparse import sys import yt # load the command-line parameters parser = argparse.ArgumentParser( description='Plot gas density slices for the blast wave test' ) parser.add_argument( '-s', action='store', required=True, type=int, dest='idx_start', help='first data index' ) parser.add_arg...
35.166667
109
0.597156
5cdee9ac62985e630fdba9539a2c4078a2fc69ca
4,244
py
Python
jmi/jmiforums/migrations/0001_initial.py
VisheshPandita/JMI-forums
58e7b993e8de669d7c3e3b50af438580bf48655c
[ "MIT" ]
null
null
null
jmi/jmiforums/migrations/0001_initial.py
VisheshPandita/JMI-forums
58e7b993e8de669d7c3e3b50af438580bf48655c
[ "MIT" ]
null
null
null
jmi/jmiforums/migrations/0001_initial.py
VisheshPandita/JMI-forums
58e7b993e8de669d7c3e3b50af438580bf48655c
[ "MIT" ]
2
2019-04-13T18:33:01.000Z
2019-04-14T05:14:44.000Z
# Generated by Django 2.2 on 2019-04-19 15:57 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_...
51.13253
132
0.608624
b3affb6c2b7ceb7442721a439f891ce47ea7ea43
4,335
py
Python
neurokit2/eda/eda_intervalrelated.py
aristotelisxs/NeuroKit
61c8c9b26ac7bc8ac5b666ce6cb1dfe59b1c146b
[ "MIT" ]
1
2021-06-10T03:27:15.000Z
2021-06-10T03:27:15.000Z
neurokit2/eda/eda_intervalrelated.py
aristotelisxs/NeuroKit
61c8c9b26ac7bc8ac5b666ce6cb1dfe59b1c146b
[ "MIT" ]
null
null
null
neurokit2/eda/eda_intervalrelated.py
aristotelisxs/NeuroKit
61c8c9b26ac7bc8ac5b666ce6cb1dfe59b1c146b
[ "MIT" ]
1
2020-12-20T17:24:25.000Z
2020-12-20T17:24:25.000Z
# -*- coding: utf-8 -*- import numpy as np import pandas as pd def eda_intervalrelated(data): """Performs EDA analysis on longer periods of data (typically > 10 seconds), such as resting-state data. Parameters ---------- data : Union[dict, pd.DataFrame] A DataFrame containing the different pr...
33.867188
108
0.577624
218a9fad0d2cbd996392578b650fbe9823c5b30b
2,308
py
Python
hwsuite/tests/test_module.py
mike10004/csbridge2020-hw-suite
573c8ed5c0f0da69b2201e1583df52d2cfe9ee3f
[ "MIT" ]
null
null
null
hwsuite/tests/test_module.py
mike10004/csbridge2020-hw-suite
573c8ed5c0f0da69b2201e1583df52d2cfe9ee3f
[ "MIT" ]
null
null
null
hwsuite/tests/test_module.py
mike10004/csbridge2020-hw-suite
573c8ed5c0f0da69b2201e1583df52d2cfe9ee3f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import tempfile from pathlib import Path from unittest import TestCase import hwsuite import hwsuite.init class ModuleMethodsTest(TestCase): def test_find_proj_root_bad(self): with tempfile.TemporaryDirectory() as tempdir: try: hwsuite.find_pro...
39.793103
169
0.604853
95e49e1ff88c544171d3f0bdf2a4a42c7672585c
1,011
py
Python
historicproperty/BufferRequest.py
WaTech/Washington-Historical-Register
c885a23f4d3804fa96684c39981aa6b5c39f67b9
[ "Apache-2.0" ]
null
null
null
historicproperty/BufferRequest.py
WaTech/Washington-Historical-Register
c885a23f4d3804fa96684c39981aa6b5c39f67b9
[ "Apache-2.0" ]
null
null
null
historicproperty/BufferRequest.py
WaTech/Washington-Historical-Register
c885a23f4d3804fa96684c39981aa6b5c39f67b9
[ "Apache-2.0" ]
null
null
null
import requests class BufferRequest(): """ Calls ESRI geometry server with loc and range, gets back a circular buffer of points. """ url = "https://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer" template = "json/BufferRequestData.json" _lat = 0 _lng = 0 _dist = 0...
32.612903
130
0.542038
85396c779edc0817f8adb5768730cff747df1a45
13,773
py
Python
spikecomparison/multisortingcomparison.py
Shawn-Guo-CN/spikecomparison
95524a6a66ac89e793a56db2b291a7468a08c39a
[ "MIT" ]
1
2020-09-11T06:07:47.000Z
2020-09-11T06:07:47.000Z
spikecomparison/multisortingcomparison.py
yger/spikecomparison
8185e21ae4a30312b2dcf962de54a26ab5b08309
[ "MIT" ]
null
null
null
spikecomparison/multisortingcomparison.py
yger/spikecomparison
8185e21ae4a30312b2dcf962de54a26ab5b08309
[ "MIT" ]
1
2020-09-11T06:07:37.000Z
2020-09-11T06:07:37.000Z
import numpy as np import spikeextractors as se from scipy.optimize import linear_sum_assignment from .basecomparison import BaseComparison from .symmetricsortingcomparison import SymmetricSortingComparison from .comparisontools import compare_spike_trains import networkx as nx class MultiSortingComparison(BaseCompa...
47.006826
120
0.558702
b0ac0488b64d99ddc36c2f0eb9a97f59dcfb4dc5
800
py
Python
tests/test_pylibpcap.py
tomkcook/python-libpcap
3ce389051ca0357ea810fc8f8213f1e7a8af504d
[ "BSD-3-Clause" ]
21
2019-09-04T10:52:50.000Z
2022-01-17T14:23:50.000Z
tests/test_pylibpcap.py
tomkcook/python-libpcap
3ce389051ca0357ea810fc8f8213f1e7a8af504d
[ "BSD-3-Clause" ]
12
2019-10-04T20:14:47.000Z
2022-03-23T01:38:20.000Z
tests/test_pylibpcap.py
tomkcook/python-libpcap
3ce389051ca0357ea810fc8f8213f1e7a8af504d
[ "BSD-3-Clause" ]
9
2019-10-04T20:03:56.000Z
2022-02-23T08:18:25.000Z
# -*- coding: utf-8 -*- # @Author: JanKinCai # @Date: 2019-09-03 13:48:13 # @Last Modified by: JanKinCai # @Last Modified time: 2019-11-12 09:22:43 from __future__ import print_function from pylibpcap.pcap import rpcap rpcap_buf = b'\x00\xc0\x9f2A\x8c\x00\xe0\x18\xb1\x0c\xad\x08\x00E\x00\x008' \ b'\x...
25.806452
77
0.595
006746eeb47b99fe47c91a7e3fe8c336352727e4
61,530
py
Python
test/TestCycleLongGraph.py
falcon-org/Falcon
113b47ea6eef6ebbaba91eca596ca89e211cad67
[ "BSD-3-Clause" ]
null
null
null
test/TestCycleLongGraph.py
falcon-org/Falcon
113b47ea6eef6ebbaba91eca596ca89e211cad67
[ "BSD-3-Clause" ]
null
null
null
test/TestCycleLongGraph.py
falcon-org/Falcon
113b47ea6eef6ebbaba91eca596ca89e211cad67
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # A basic test that checks that the graph is correctly parsed and the # dependencies properly constructed. makefile = ''' { "rules": [ { "inputs": [ "input0" ], "outputs": [ "input1" ] }, { "inputs": [ "input1" ], "outputs": [ "input2" ] }, { "inputs": [ "input2" ], "outputs": [ ...
59.854086
69
0.474679
8726ab03fefa906129147346a86c3f09663b5da4
2,021
py
Python
renku/core/commands/project.py
SwissDataScienceCenter/renku-python
5e1ef37ca95ae1e205f7348d7a30221c327df5d3
[ "Apache-2.0" ]
26
2018-06-04T15:21:50.000Z
2022-02-11T17:31:24.000Z
renku/core/commands/project.py
SwissDataScienceCenter/renku-python
5e1ef37ca95ae1e205f7348d7a30221c327df5d3
[ "Apache-2.0" ]
1,655
2018-05-17T22:07:50.000Z
2022-03-31T21:22:01.000Z
renku/core/commands/project.py
SwissDataScienceCenter/renku-python
5e1ef37ca95ae1e205f7348d7a30221c327df5d3
[ "Apache-2.0" ]
19
2018-05-18T14:12:25.000Z
2022-03-30T19:51:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2017-2021 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in c...
42.104167
107
0.777338
b24da92afdd878b45e8b34999072bad379ba5fa3
9,461
py
Python
homeassistant/components/auth/login_flow.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/auth/login_flow.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
24,710
2016-04-13T08:27:26.000Z
2020-03-02T12:59:13.000Z
homeassistant/components/auth/login_flow.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""HTTP views handle login flow. # GET /auth/providers Return a list of auth providers. Example: [ { "name": "Local", "id": null, "type": "local_provider", } ] # POST /auth/login_flow Create a login flow. Will return the first step of the flow. Pass in parameter 'client_id' and 'r...
32.850694
90
0.646232
c726cac3a00ab205c1fee682aace0293e305c2b1
4,303
py
Python
gdal/swig/python/samples/val_repl.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
18
2021-01-27T00:07:35.000Z
2022-03-25T22:20:13.000Z
gdal/swig/python/samples/val_repl.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
4
2019-07-18T15:49:23.000Z
2021-10-19T22:56:50.000Z
gdal/swig/python/samples/val_repl.py
jpapadakis/gdal
f07aa15fd65af36b04291303cc6834c87f662814
[ "MIT" ]
2
2019-12-20T07:43:13.000Z
2021-04-16T22:45:29.000Z
#!/usr/bin/env python3 ############################################################################### # $Id$ # # Project: GDAL Python samples # Purpose: Script to replace specified values from the input raster file # with the new ones. May be useful in cases when you don't like # value, used for ...
31.181159
117
0.595631
8cce425aa349326cef971cbddeb8589d648f202d
1,584
py
Python
baselines/trpo_mpi/run_mujoco.py
chris-chris/baselines
3f676f7d1e16a0880cb7fed5850bc00efba413d6
[ "MIT" ]
1
2017-09-02T22:37:50.000Z
2017-09-02T22:37:50.000Z
baselines/trpo_mpi/run_mujoco.py
paulyang1990/baselines
3f676f7d1e16a0880cb7fed5850bc00efba413d6
[ "MIT" ]
1
2021-06-25T15:48:37.000Z
2021-06-25T15:48:37.000Z
baselines/trpo_mpi/run_mujoco.py
NunoEdgarGFlowHub/baselines
3f676f7d1e16a0880cb7fed5850bc00efba413d6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # noinspection PyUnresolvedReferences import mujoco_py # Mujoco must come before other imports. https://openai.slack.com/archives/C1H6P3R7B/p1492828680631850 from mpi4py import MPI from baselines.common import set_global_seeds import os.path as osp import gym import logging from baselines import l...
33.702128
119
0.734848
c9641d53cf5434436c4f164695aecbe213012b37
1,087
py
Python
neutron/plugins/ml2/drivers/mlnx/config.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
3
2015-02-02T02:51:39.000Z
2015-02-23T10:20:23.000Z
neutron/plugins/ml2/drivers/mlnx/config.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
4
2015-02-23T10:21:11.000Z
2015-03-04T09:28:20.000Z
neutron/plugins/ml2/drivers/mlnx/config.py
SnabbCo/neutron
a657c06d10f2171149c6b1863df36522bdc11cd7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
32.939394
69
0.705612
138f85a10b16fb5df953e13f5913df90dbec6ec4
4,416
py
Python
ipgeoloc.py
ApexPredator-InfoSec/IP-Geolocation
cafecc983449a70046f38567a83bda47e8bf433c
[ "MIT" ]
1
2021-11-12T13:43:30.000Z
2021-11-12T13:43:30.000Z
ipgeoloc.py
ApexPredator-InfoSec/IP-Geolocation
cafecc983449a70046f38567a83bda47e8bf433c
[ "MIT" ]
null
null
null
ipgeoloc.py
ApexPredator-InfoSec/IP-Geolocation
cafecc983449a70046f38567a83bda47e8bf433c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #Title: ipgeoloc.py #Author: ApexPredator #License: MIT #Github: https://github.com/ApexPredator-InfoSec/IP-Geolocation #Description: This script take an IP or list of IPs and run them thru the ipgeolocation.io API to return owner and locaton import requests import argparse from netaddr import IPNetw...
51.952941
330
0.662138
8b93c05f51131a9e736b5b86944b313ceab0beeb
872
py
Python
pyairwatch/system/admins.py
kamartem/PyVMwareAirWatch
98f480b5f7eff76dbf0119f9f30ddbbd8ba0ade1
[ "MIT" ]
2
2021-04-20T03:41:03.000Z
2021-09-23T10:56:11.000Z
pyairwatch/system/admins.py
kamartem/PyVMwareAirWatch
98f480b5f7eff76dbf0119f9f30ddbbd8ba0ade1
[ "MIT" ]
1
2021-01-29T18:39:34.000Z
2021-01-29T18:39:34.000Z
pyairwatch/system/admins.py
kamartem/PyVMwareAirWatch
98f480b5f7eff76dbf0119f9f30ddbbd8ba0ade1
[ "MIT" ]
2
2020-07-07T15:20:37.000Z
2021-12-07T22:25:14.000Z
from .system import System class Admins(System): def __init__(self, client): System.__init__(self, client) def search(self, **kwargs): """ Returns the Admin User's details matching the search parameters /api/system/admins/search?{params} PARAMS: username...
26.424242
74
0.59289
a61a0a37f217861af107e9cecbbe92b8e5f8cdb7
18
py
Python
manage.py
Denis-leparteleg/Nywele-Nakshi
8be560e1dd28f7ad1183619b94c7fd440158c503
[ "MIT" ]
null
null
null
manage.py
Denis-leparteleg/Nywele-Nakshi
8be560e1dd28f7ad1183619b94c7fd440158c503
[ "MIT" ]
null
null
null
manage.py
Denis-leparteleg/Nywele-Nakshi
8be560e1dd28f7ad1183619b94c7fd440158c503
[ "MIT" ]
1
2021-11-12T06:06:22.000Z
2021-11-12T06:06:22.000Z
manager.run()
9
17
0.555556
0cab058ced6a3327a7b6acc4171b31d5c8228389
13,803
py
Python
src/models/pytorch_i3d.py
StevRamos/video_summarization
051632fd9e5ad94dd4a2b2bb31ea928f7269c1ac
[ "MIT" ]
3
2021-11-09T03:05:52.000Z
2022-03-17T08:37:45.000Z
src/models/pytorch_i3d.py
StevRamos/video_summarization
051632fd9e5ad94dd4a2b2bb31ea928f7269c1ac
[ "MIT" ]
3
2021-11-04T03:14:06.000Z
2022-01-13T21:00:51.000Z
src/models/pytorch_i3d.py
StevRamos/video_summarization
051632fd9e5ad94dd4a2b2bb31ea928f7269c1ac
[ "MIT" ]
1
2021-12-05T19:12:45.000Z
2021-12-05T19:12:45.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np import os import sys from collections import OrderedDict class MaxPool3dSamePadding(nn.MaxPool3d): def compute_pad(self, dim, s): if s % self.stride[dim] == 0: retur...
40.478006
145
0.580091
fcfedd75115030b58e5e5b1f128e10e88035f289
6,001
py
Python
tests/components/mobile_app/test_notify.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/mobile_app/test_notify.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/mobile_app/test_notify.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""Notify platform tests for mobile_app.""" from datetime import datetime, timedelta import pytest from openpeerpower.components.mobile_app.const import DOMAIN from openpeerpower.setup import async_setup_component from tests.common import MockConfigEntry @pytest.fixture async def setup_push_receiver(opp, aioclient...
31.255208
88
0.606732
dc53a4e98f0e488197239cfd43dadfc25758725c
493
py
Python
HowToUse.py
maufadel/simpleGeneMapper
cbd4a508434831994006dde1033cfd90657719e2
[ "MIT" ]
1
2017-11-23T14:38:36.000Z
2017-11-23T14:38:36.000Z
HowToUse.py
maufadel/simpleGeneMapper
cbd4a508434831994006dde1033cfd90657719e2
[ "MIT" ]
null
null
null
HowToUse.py
maufadel/simpleGeneMapper
cbd4a508434831994006dde1033cfd90657719e2
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' File name: HowToUse.py Author: Mauricio Fadel Argerich Date created: 21/11/2017 Date last modified: 21/11/2017 Python Version: 3.5.4 ''' from GeneMapper import GeneMapper import pandas as pd gm = GeneMapper() full_data = pd.read_csv('dataframe.csv') print(gm.map_genes(f...
24.65
56
0.602434
27fc65eb14aa86844fb356ca50509518242ea5d6
1,971
py
Python
app.py
maltaro/posthere
c934006684ebec2fb478e38f824004a9e13a4256
[ "MIT" ]
1
2020-06-26T08:51:09.000Z
2020-06-26T08:51:09.000Z
app.py
RobinSrimal/posthere
c934006684ebec2fb478e38f824004a9e13a4256
[ "MIT" ]
null
null
null
app.py
RobinSrimal/posthere
c934006684ebec2fb478e38f824004a9e13a4256
[ "MIT" ]
2
2020-02-03T21:52:49.000Z
2020-02-06T17:32:22.000Z
from flask import Flask, jsonify, request import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.neighbors import NearestNeighbors import joblib from flask_sqlalchemy import SQLAlchemy import psycopg2 import os from dotenv import load_dotenv from decouple import config load_dotenv...
26.635135
127
0.746829
92707fb348716cd9f00d23f6b432c19392170114
751
py
Python
DynamicApproach/AllPairShortestPath(Floyd-Warshall).py
Yadav420dilip/Algorithms
6f476e7a6d1a42d2fa198ac742b6d3da4269c098
[ "Apache-2.0" ]
2
2020-10-14T03:56:35.000Z
2020-11-04T04:01:30.000Z
DynamicApproach/AllPairShortestPath(Floyd-Warshall).py
Yadav420dilip/Algorithms
6f476e7a6d1a42d2fa198ac742b6d3da4269c098
[ "Apache-2.0" ]
null
null
null
DynamicApproach/AllPairShortestPath(Floyd-Warshall).py
Yadav420dilip/Algorithms
6f476e7a6d1a42d2fa198ac742b6d3da4269c098
[ "Apache-2.0" ]
null
null
null
"""The all pair shortest path algorithm is also known as Floyd-Warshall algorithm is used to find all pair shortest path problem from a given weighted graph. As a result of this algorithm, it will generate a matrix, which will represent the minimum distance from any node to all other nodes in the graph. """ """For bet...
37.55
115
0.629827
69c72fec1d74dbcb653a04b6f37baaaf49e5ce06
421
py
Python
keeper/services/dashboard.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
5
2016-05-16T18:46:26.000Z
2019-07-08T15:16:41.000Z
keeper/services/dashboard.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
46
2016-02-18T16:54:36.000Z
2022-03-25T19:43:45.000Z
keeper/services/dashboard.py
lsst-sqre/ltd-keeper
c658bcce726764e7416a8a386b418e83912b0f32
[ "Apache-2.0", "MIT" ]
4
2016-08-20T23:10:07.000Z
2022-03-25T19:52:09.000Z
"""This service updates an edition's dashboard.""" from __future__ import annotations from typing import TYPE_CHECKING, Any if TYPE_CHECKING: from keeper.models import Product __all__ = ["build_dashboard"] def build_dashboard(product: Product, logger: Any) -> None: """Build a dashboard (run from a Celery ...
24.764706
59
0.738717
3977ca40c906690bde0a8f9836d236434542082b
2,716
py
Python
trfl/__init__.py
Ismailhachimi/trfl
bc435c60170cd0bc25dc37fb752a0ba997a47f96
[ "Apache-2.0" ]
null
null
null
trfl/__init__.py
Ismailhachimi/trfl
bc435c60170cd0bc25dc37fb752a0ba997a47f96
[ "Apache-2.0" ]
null
null
null
trfl/__init__.py
Ismailhachimi/trfl
bc435c60170cd0bc25dc37fb752a0ba997a47f96
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The trfl Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
47.649123
82
0.840943
182f6b8a12380bfeb7d874c2668de95176539f71
3,261
py
Python
tests/test_zm.py
delin/zm-py
3b209185991e8ae7dfe3dde8c2f8462f134afb9f
[ "Apache-2.0" ]
10
2018-09-27T06:33:56.000Z
2021-07-10T09:49:57.000Z
tests/test_zm.py
delin/zm-py
3b209185991e8ae7dfe3dde8c2f8462f134afb9f
[ "Apache-2.0" ]
21
2018-09-15T18:59:05.000Z
2021-11-29T23:53:52.000Z
tests/test_zm.py
delin/zm-py
3b209185991e8ae7dfe3dde8c2f8462f134afb9f
[ "Apache-2.0" ]
11
2019-01-26T23:08:00.000Z
2021-11-26T04:40:16.000Z
"""Tests to verify the zm module.""" import unittest from zoneminder import zm class TestZoneMinder(unittest.TestCase): """Tests to verify the ZoneMinder class.""" def test_build_server_url_no_trailing_slash(self): """Verifies that server_url is correct with no trailing slashes.""" host = "...
38.364706
98
0.626802
8e2d99e395346360288dcee1e2bea321c68f9db5
276
py
Python
fiddles/python/fiddle-0007-ScrapyTutorial/tutorial/tutorial/items.py
oneorthomedical/house
03bc23075f4d7a18362f596f96fabddcb237af30
[ "MIT" ]
81
2015-04-11T12:09:21.000Z
2022-03-29T12:16:01.000Z
fiddles/python/fiddle-0007-ScrapyTutorial/tutorial/tutorial/items.py
oneorthomedical/house
03bc23075f4d7a18362f596f96fabddcb237af30
[ "MIT" ]
311
2016-05-28T12:35:22.000Z
2022-03-25T14:57:06.000Z
fiddles/python/fiddle-0007-ScrapyTutorial/tutorial/tutorial/items.py
oneorthomedical/house
03bc23075f4d7a18362f596f96fabddcb237af30
[ "MIT" ]
36
2015-01-03T14:29:51.000Z
2021-12-09T15:40:57.000Z
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class DmozItem(scrapy.Item): title = scrapy.Field() link = scrapy.Field() desc = scrapy.Field()
18.4
51
0.673913
d4647830f0962bc15866721eeb72487776e2f0e4
3,875
py
Python
CoffeOmics/UniprotIdRetrieval.py
Kronopt/COBIG2_scripts
a19d7950e5eec93e0d62f3973ee761620b19ab2e
[ "MIT" ]
1
2019-04-12T15:15:49.000Z
2019-04-12T15:15:49.000Z
CoffeOmics/UniprotIdRetrieval.py
Kronopt/COBIG2_scripts
a19d7950e5eec93e0d62f3973ee761620b19ab2e
[ "MIT" ]
null
null
null
CoffeOmics/UniprotIdRetrieval.py
Kronopt/COBIG2_scripts
a19d7950e5eec93e0d62f3973ee761620b19ab2e
[ "MIT" ]
null
null
null
#!python3 # coding: utf-8 """ UNIPROT ID RETRIEVAL (adapted from UniprotIdRetrieval) Downloads protein sequences from Uniprot, in the desired output format, based on the given ids (either passed as arguments or identified in a file) UniprotIdRetrieval.py [-h] <file> - '-h, --help' shows the help text - 'f...
35.227273
121
0.512
3f1ba97d2831bc5a0aac2914555f1bb5ebb4bc59
1,105
py
Python
Python/well_generator.py
jgruselius/misc
ae4aa6c72cebed1ef0160f95488e3827fbf706c9
[ "Apache-2.0" ]
1
2018-09-28T12:12:17.000Z
2018-09-28T12:12:17.000Z
Python/well_generator.py
jgruselius/misc
ae4aa6c72cebed1ef0160f95488e3827fbf706c9
[ "Apache-2.0" ]
null
null
null
Python/well_generator.py
jgruselius/misc
ae4aa6c72cebed1ef0160f95488e3827fbf706c9
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 import argparse import string def main(args): rows = string.ascii_uppercase[:8] cols = range(1, 13) if args.r: wells = [(r, c) for r in rows for c in cols] else: wells = [(r, c) for c in cols for r in rows] if args.p: fstr = "{}{:02d}" else: ...
29.864865
89
0.602715
248b1e9699fd33f3025ec6703956635788f26ceb
1,897
py
Python
gnes/indexer/chunk/numpy.py
hyzcn/gnes
a556ad287f30e271676b156dc7a47dd7b86956e9
[ "Apache-2.0" ]
2
2020-07-05T03:51:44.000Z
2022-02-18T05:56:37.000Z
gnes/indexer/chunk/numpy.py
hyzcn/gnes
a556ad287f30e271676b156dc7a47dd7b86956e9
[ "Apache-2.0" ]
null
null
null
gnes/indexer/chunk/numpy.py
hyzcn/gnes
a556ad287f30e271676b156dc7a47dd7b86956e9
[ "Apache-2.0" ]
null
null
null
from typing import List, Tuple, Any import numpy as np from .helper import ListKeyIndexer from ..base import BaseChunkIndexer as BCI class NumpyIndexer(BCI): """An exhaustive search indexer using numpy The distance is computed as L1 distance normalized by the number of dimension """ def __init__...
33.875
96
0.603585
d7ec72b038cbbb617dc90c7817529f3abaaa373e
2,225
py
Python
assets/src/ba_data/python/bastd/ui/settings/nettesting.py
SahandAslani/ballistica
7e3814cd2a1920ea8f5820cb1cdbb4dc5420d30e
[ "MIT" ]
2
2020-07-02T22:18:58.000Z
2020-07-02T22:19:49.000Z
assets/src/ba_data/python/bastd/ui/settings/nettesting.py
MalTarDesigns/ballistica
c38ae5c39b3cc7985be166a959245ca060d3bf31
[ "MIT" ]
null
null
null
assets/src/ba_data/python/bastd/ui/settings/nettesting.py
MalTarDesigns/ballistica
c38ae5c39b3cc7985be166a959245ca060d3bf31
[ "MIT" ]
null
null
null
# Copyright (c) 2011-2020 Eric Froemling # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
37.711864
79
0.610337
fd6ec51f091344783dfba4ba8467529229dae71a
1,792
py
Python
scripts/ignored.py
AlwxSin/djangorestframework-stubs
ed6939fd161d4638250352b415c2c454f062ac9c
[ "MIT" ]
null
null
null
scripts/ignored.py
AlwxSin/djangorestframework-stubs
ed6939fd161d4638250352b415c2c454f062ac9c
[ "MIT" ]
null
null
null
scripts/ignored.py
AlwxSin/djangorestframework-stubs
ed6939fd161d4638250352b415c2c454f062ac9c
[ "MIT" ]
null
null
null
MOCK_OBJECTS = ['MockRequest', 'MockView', 'MockTimezone', 'MockLazyStr', 'MockQueryset'] IGNORED_ERRORS = [ *MOCK_OBJECTS, 'Need type annotation for', 'Cannot infer type of lambda', '"type" has no attribute', 'Incompatible types in assignment (expression has type "None", variable has type Module)'...
48.432432
113
0.65625
c17ccd4edcb0e6907a8ed20084a9d157505a7a38
25,903
py
Python
scripts/github_stats.py
leebrian/scraper
c12799618dca9314575aa0c3eb0f4dd1804ec7ab
[ "MIT" ]
1
2018-09-10T05:29:55.000Z
2018-09-10T05:29:55.000Z
scripts/github_stats.py
eipapa/scraper
e4551d5d876165f61617469a8b8f8049bcc4d6c9
[ "MIT" ]
null
null
null
scripts/github_stats.py
eipapa/scraper
e4551d5d876165f61617469a8b8f8049bcc4d6c9
[ "MIT" ]
1
2018-09-01T04:48:25.000Z
2018-09-01T04:48:25.000Z
import github3, datetime, os, errno, getpass, time, csv, math, my_repo, requests, json from collections import defaultdict class GitHub_LLNL_Stats: def __init__(self): print 'Initalizing.' self.unique_contributors = defaultdict(list) self.languages = {} self.languages_size = {} ...
44.354452
100
0.553874
9a9ddf22c65652c77c1a9bf662a19012165cddc7
777
py
Python
tensorflow/sagemakercv/training/optimizers/__init__.py
aws-samples/amazon-sagemaker-cv
0390660c6aae3880e18539af21047c078bfd0e48
[ "Apache-2.0", "BSD-2-Clause-FreeBSD" ]
16
2021-12-14T01:35:16.000Z
2022-03-10T19:31:48.000Z
tensorflow/sagemakercv/training/optimizers/__init__.py
aws-samples/amazon-sagemaker-cv
0390660c6aae3880e18539af21047c078bfd0e48
[ "Apache-2.0", "BSD-2-Clause-FreeBSD" ]
null
null
null
tensorflow/sagemakercv/training/optimizers/__init__.py
aws-samples/amazon-sagemaker-cv
0390660c6aae3880e18539af21047c078bfd0e48
[ "Apache-2.0", "BSD-2-Clause-FreeBSD" ]
1
2022-03-14T18:45:55.000Z
2022-03-14T18:45:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2021, Amazon Web Services. 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/li...
38.85
74
0.763192
b9e4e42e56600235d7ba836cabf6312869b8d76f
6,346
py
Python
test.py
zhanwj/semantic
edde18e42c28c5d0c81f4481151da1f08d8009a4
[ "BSD-3-Clause" ]
1
2018-12-07T15:52:03.000Z
2018-12-07T15:52:03.000Z
test.py
zhanwj/semantic
edde18e42c28c5d0c81f4481151da1f08d8009a4
[ "BSD-3-Clause" ]
null
null
null
test.py
zhanwj/semantic
edde18e42c28c5d0c81f4481151da1f08d8009a4
[ "BSD-3-Clause" ]
1
2021-03-11T14:16:41.000Z
2021-03-11T14:16:41.000Z
# System libs import os import datetime import argparse from distutils.version import LooseVersion # Numerical libs import numpy as np import torch import torch.nn as nn from scipy.io import loadmat # Our libs from dataset import TestDataset from models import ModelBuilder, SegmentationModule from utils import colorEnc...
34.868132
78
0.619918
2b65783d1c6d87f34db8626af970d73ed998bd05
886
py
Python
lib/tweetsclient/config.py
CodeForAfrica/politwoops-tweet-collector
c0427fe07e3b9fb529baf5699306567489b8af29
[ "BSD-3-Clause" ]
61
2016-12-13T04:28:20.000Z
2022-01-27T18:22:29.000Z
lib/tweetsclient/config.py
fjavierg/politwoops-tweet-collector-dockerized
22ce554531b1b052212be6eb972f1a8621b78758
[ "BSD-3-Clause" ]
7
2016-12-16T18:07:23.000Z
2022-02-11T18:51:01.000Z
lib/tweetsclient/config.py
fjavierg/politwoops-tweet-collector-dockerized
22ce554531b1b052212be6eb972f1a8621b78758
[ "BSD-3-Clause" ]
19
2017-01-14T12:03:06.000Z
2022-02-28T19:30:20.000Z
#!/usr/bin/env python3 import os import sys import re import configparser class Config: class __impl: """ Implementation of the singleton interface """ def __init__(self): self.config = None def get(self, environment='development'): """ Load and parses config if ne...
27.6875
60
0.611738
d96f1b8459423a0c0ecbe13f1b382e182778c026
1,302
py
Python
tests/test_master.py
askabelin/aio-pika
38fd5897c556dd41624b8571b061f486e8e7508e
[ "Apache-2.0" ]
null
null
null
tests/test_master.py
askabelin/aio-pika
38fd5897c556dd41624b8571b061f486e8e7508e
[ "Apache-2.0" ]
null
null
null
tests/test_master.py
askabelin/aio-pika
38fd5897c556dd41624b8571b061f486e8e7508e
[ "Apache-2.0" ]
null
null
null
import asyncio import pytest from aio_pika.patterns.master import Master from tests.test_amqp import BaseTestCase class TestCase(BaseTestCase): @pytest.mark.asyncio def test_simple(self): channel = yield from self.create_channel() master = Master(channel) self.state = [] de...
24.111111
57
0.623656
2001ad5854e08ea477d996ad003e3b4281f49789
59,533
py
Python
virtual/lib/python2.7/site-packages/bs4/element.py
laetitia123/Neighbourhood-Django
d0cdc22f17d72a2b6b278079f47110c64e458fca
[ "MIT" ]
1
2020-07-13T09:06:46.000Z
2020-07-13T09:06:46.000Z
virtual/lib/python2.7/site-packages/bs4/element.py
laetitia123/Neighbourhood-Django
d0cdc22f17d72a2b6b278079f47110c64e458fca
[ "MIT" ]
6
2020-02-12T03:13:29.000Z
2022-03-12T00:02:43.000Z
virtual/lib/python2.7/site-packages/bs4/element.py
Elianehbmna/instagramClone
b72d78be5294b9b252f83474fa2372244fe7b394
[ "MIT" ]
1
2021-07-28T20:35:14.000Z
2021-07-28T20:35:14.000Z
# Use of this source code is governed by the MIT license. __license__ = "MIT" try: from collections.abc import Callable # Python 3.6 except ImportError , e: from collections import Callable import re import sys import warnings try: import soupsieve except ImportError, e: soupsieve = None warnings.w...
37.13849
175
0.592646
47243838857880b0cc314f528774557ca04e6bdc
5,987
py
Python
x7/geom/drawing.py
gribbg/x7-geom
a01ef29dc47f1587e3390b552decf92db0bbaa20
[ "BSD-2-Clause" ]
null
null
null
x7/geom/drawing.py
gribbg/x7-geom
a01ef29dc47f1587e3390b552decf92db0bbaa20
[ "BSD-2-Clause" ]
null
null
null
x7/geom/drawing.py
gribbg/x7-geom
a01ef29dc47f1587e3390b552decf92db0bbaa20
[ "BSD-2-Clause" ]
null
null
null
from PIL import Image, ImageDraw, ImageFilter, ImageChops, ImageEnhance, ImageFont from x7.geom.geom import PointUnionList from .typing import * from .transform import Transform def bbox_max(bbox_a, bbox_b): compare = (min, min, max, max) return tuple(compare(a, b) for compare, a, b in zip(compare, bbox_a, b...
33.261111
107
0.581092
b423ed559a6c62d5801a161565890f7edd202923
2,974
py
Python
numba/targets/registry.py
mawanda-jun/numba
8c6658375c1f8fe50e1a5ccd11d4e7bf5a8053de
[ "BSD-2-Clause", "Apache-2.0" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/targets/registry.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Gems/CloudGemMetric/v1/AWS/python/windows/Lib/numba/targets/registry.py
olivier-be/lumberyard
3d688932f919dbf5821f0cb8a210ce24abe39e9e
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
from __future__ import print_function, division, absolute_import import contextlib from . import cpu from .descriptors import TargetDescriptor from .. import dispatcher, utils, typing # ----------------------------------------------------------------------------- # Default CPU target descriptors class _NestedContex...
28.596154
79
0.651984
fb31a39f1245440e23af0b7cd362e07d114116c2
402
py
Python
examples/plot_template.py
dabana/sklearn-jobs
daeaf2827ce0be707b280ec64ecfe852e29409a5
[ "BSD-3-Clause" ]
null
null
null
examples/plot_template.py
dabana/sklearn-jobs
daeaf2827ce0be707b280ec64ecfe852e29409a5
[ "BSD-3-Clause" ]
null
null
null
examples/plot_template.py
dabana/sklearn-jobs
daeaf2827ce0be707b280ec64ecfe852e29409a5
[ "BSD-3-Clause" ]
null
null
null
""" =========================== Plotting Template Estimator =========================== An example plot of :class:`skljobs.template.TemplateEstimator` """ import numpy as np from matplotlib import pyplot as plt from skljobs import TemplateEstimator X = np.arange(100).reshape(100, 1) y = np.zeros((100, )) estimator = ...
22.333333
62
0.651741
47124d3fca091f31e29a7f9811cc03bd5031717b
6,095
bzl
Python
example/third-party/macros/new_sets.bzl
jsgf/reindeer
e9e1f9176bb04c2902ab6acfbe0b8957cf1bf133
[ "MIT" ]
31
2020-08-05T23:27:36.000Z
2022-02-09T18:53:57.000Z
example/third-party/macros/new_sets.bzl
jsgf/reindeer
e9e1f9176bb04c2902ab6acfbe0b8957cf1bf133
[ "MIT" ]
2
2020-08-06T00:07:42.000Z
2022-03-11T20:36:35.000Z
example/third-party/macros/new_sets.bzl
jsgf/reindeer
e9e1f9176bb04c2902ab6acfbe0b8957cf1bf133
[ "MIT" ]
7
2020-08-06T00:06:50.000Z
2022-03-11T20:35:19.000Z
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
25.7173
98
0.622149
60c604f6695567c0da516cf2beac639667170985
60,477
py
Python
frameworks/cocos2d-x/tools/bindings-generator/generator.py
wanmaple/MWFrameworkForCocosLua
170115d08876ca1d194ac6819cc7cc9ad1e50e1a
[ "Apache-2.0" ]
2
2016-07-16T07:35:31.000Z
2017-08-26T09:32:30.000Z
frameworks/cocos2d-x/tools/bindings-generator/generator.py
wanmaple/MWFramework2.0
170115d08876ca1d194ac6819cc7cc9ad1e50e1a
[ "Apache-2.0" ]
null
null
null
frameworks/cocos2d-x/tools/bindings-generator/generator.py
wanmaple/MWFramework2.0
170115d08876ca1d194ac6819cc7cc9ad1e50e1a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # generator.py # simple C++ generator, originally targetted for Spidermonkey bindings # # Copyright (c) 2011 - Zynga Inc. from clang import cindex import sys import pdb import ConfigParser import yaml import re import os import inspect import traceback from Cheetah.Template import Template type_...
42.20307
162
0.562677
a7bb9757749a9b6902dde5138d369754e5325ae8
349
py
Python
invenio_rdm_records/records/__init__.py
diegodelemos/invenio-rdm-records
b1f5a4c29bd4a89ac943da7b63ad9143cec6d874
[ "MIT" ]
null
null
null
invenio_rdm_records/records/__init__.py
diegodelemos/invenio-rdm-records
b1f5a4c29bd4a89ac943da7b63ad9143cec6d874
[ "MIT" ]
null
null
null
invenio_rdm_records/records/__init__.py
diegodelemos/invenio-rdm-records
b1f5a4c29bd4a89ac943da7b63ad9143cec6d874
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 CERN. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """Data access layer.""" from .api import RDMDraft, RDMParent, RDMRecord __all__ = ( "RDMDraft", "RD...
20.529412
77
0.673352
6306f7b97745359467a4944f660638a5793ee14f
6,429
py
Python
tests/unit/test_endpoints.py
shaquille-lab/wagtail-tag-manager
075166f46305fbaeb84b6ae90d9561044e805c43
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_endpoints.py
shaquille-lab/wagtail-tag-manager
075166f46305fbaeb84b6ae90d9561044e805c43
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_endpoints.py
shaquille-lab/wagtail-tag-manager
075166f46305fbaeb84b6ae90d9561044e805c43
[ "BSD-3-Clause" ]
null
null
null
import json from http.cookies import SimpleCookie import pytest from tests.factories.tag import ( TagFactory, tag_lazy_traceable, tag_lazy_analytical, tag_lazy_functional, tag_lazy_delayed, tag_instant_traceable, tag_instant_analytical, tag_instant_delayed, ) from tests.factories.trigg...
28.321586
77
0.645046
36ee20ae9e70fe33cb22c9b1811279d7060f5366
4,038
py
Python
tests/integration/test_keeper_persistent_log/test.py
tianyiYoung/ClickHouse
41012b5ba49df807af52fc17ab475a21fadda9b3
[ "Apache-2.0" ]
5
2021-05-14T02:46:44.000Z
2021-11-23T04:58:20.000Z
tests/integration/test_keeper_persistent_log/test.py
tianyiYoung/ClickHouse
41012b5ba49df807af52fc17ab475a21fadda9b3
[ "Apache-2.0" ]
5
2021-05-21T06:26:01.000Z
2021-08-04T04:57:36.000Z
tests/integration/test_keeper_persistent_log/test.py
tianyiYoung/ClickHouse
41012b5ba49df807af52fc17ab475a21fadda9b3
[ "Apache-2.0" ]
8
2021-05-12T01:38:18.000Z
2022-02-10T06:08:41.000Z
#!/usr/bin/env python3 import pytest from helpers.cluster import ClickHouseCluster import random import string import os import time from kazoo.client import KazooClient, KazooState cluster = ClickHouseCluster(__file__) node = cluster.add_instance('node', main_configs=['configs/enable_keeper.xml', 'configs/logs_conf...
32.304
147
0.617385
c120aaa8a9ecd939652c8b338dbec3dd3b71825f
11,699
py
Python
openstack/tests/unit/cloud/test_services.py
nicolasochem/openstacksdk
34ea72ce5b0b7f16a038ca57b2a9f1ec2f90ce00
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/cloud/test_services.py
nicolasochem/openstacksdk
34ea72ce5b0b7f16a038ca57b2a9f1ec2f90ce00
[ "Apache-2.0" ]
null
null
null
openstack/tests/unit/cloud/test_services.py
nicolasochem/openstacksdk
34ea72ce5b0b7f16a038ca57b2a9f1ec2f90ce00
[ "Apache-2.0" ]
1
2021-03-12T14:28:28.000Z
2021-03-12T14:28:28.000Z
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # # 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 applicab...
41.193662
79
0.588939
31bfa3602181cf0202f8b6809cd958ed45a4abec
3,713
py
Python
statick_tool/plugins/tool/uncrustify_tool_plugin.py
creffett/statick
9545d499ae99729cdcf59966a10311cfb41d3644
[ "CC0-1.0" ]
1
2018-08-29T01:07:55.000Z
2018-08-29T01:07:55.000Z
statick_tool/plugins/tool/uncrustify_tool_plugin.py
creffett/statick
9545d499ae99729cdcf59966a10311cfb41d3644
[ "CC0-1.0" ]
3
2018-09-01T17:33:56.000Z
2019-02-15T15:05:43.000Z
statick_tool/plugins/tool/uncrustify_tool_plugin.py
creffett/statick
9545d499ae99729cdcf59966a10311cfb41d3644
[ "CC0-1.0" ]
null
null
null
"""Apply uncrustify tool and gather results.""" from __future__ import print_function import difflib import subprocess from statick_tool.issue import Issue from statick_tool.tool_plugin import ToolPlugin class UncrustifyToolPlugin(ToolPlugin): """Apply uncrustify tool and gather results.""" def get_name(s...
36.762376
91
0.547805
0025024575b911c21cd732beac13aab34f241866
218
py
Python
WebMirror/management/rss_parser_funcs/feed_parse_extractAllsFairInLoveWar.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
193
2016-08-02T22:04:35.000Z
2022-03-09T20:45:41.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractAllsFairInLoveWar.py
fake-name/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
533
2016-08-23T20:48:23.000Z
2022-03-28T15:55:13.000Z
WebMirror/management/rss_parser_funcs/feed_parse_extractAllsFairInLoveWar.py
rrosajp/ReadableWebProxy
ed5c7abe38706acc2684a1e6cd80242a03c5f010
[ "BSD-3-Clause" ]
19
2015-08-13T18:01:08.000Z
2021-07-12T17:13:09.000Z
def extractAllsFairInLoveWar(item): """ """ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol or frag) or 'preview' in item['title'].lower(): return None return False
24.222222
74
0.706422
c020c2355e4859f3ea3c8bf1138a3ce411001684
329
py
Python
app/util/generate.py
ashleykleynhans/gitea-pr-stats
cc38957a7c28880581a8d4ec6baf6bd48869f6fa
[ "Apache-2.0" ]
null
null
null
app/util/generate.py
ashleykleynhans/gitea-pr-stats
cc38957a7c28880581a8d4ec6baf6bd48869f6fa
[ "Apache-2.0" ]
7
2019-10-05T12:21:44.000Z
2020-02-25T21:34:28.000Z
app/util/generate.py
ashleykleynhans/gitea-pr-stats
cc38957a7c28880581a8d4ec6baf6bd48869f6fa
[ "Apache-2.0" ]
1
2020-02-25T12:05:49.000Z
2020-02-25T12:05:49.000Z
from app import db from app.util import prst import config def generate(repo_name, from_date=None, to_date=None): stats = prst.PrSt(config.token, repo_name, from_date, to_date) table = db.table("report") stats.result["name"] = repo_name stats.result["id"] = table._last_id + 1 table.insert(stats...
21.933333
66
0.705167
0c1944a7d2b623b5bd49e3eb8b232ee44a66e1f3
1,083
py
Python
applications/users/tasks.py
szypkiwonsz/Physiotherapy-Management-System
36decab47890e2f4be259c8796f47324ffad28fe
[ "MIT" ]
null
null
null
applications/users/tasks.py
szypkiwonsz/Physiotherapy-Management-System
36decab47890e2f4be259c8796f47324ffad28fe
[ "MIT" ]
8
2020-08-17T14:36:02.000Z
2022-03-12T00:33:50.000Z
applications/users/tasks.py
szypkiwonsz/Physiotherapy-Management-System
36decab47890e2f4be259c8796f47324ffad28fe
[ "MIT" ]
null
null
null
from celery import shared_task from django.core.mail import EmailMessage from django.template.loader import render_to_string from django.utils.encoding import force_bytes from django.utils.http import urlsafe_base64_encode from applications.users.models import User from applications.users.tokens import account_activat...
33.84375
87
0.721145
9d3cd4ac14e18e0f1194f9f1892c6273f731aa1e
678
py
Python
fastybird_shelly_connector/api/__init__.py
FastyBird/shelly-connector
afbd75da091f96854fa09d3750d9f75406c5bf39
[ "Apache-2.0" ]
null
null
null
fastybird_shelly_connector/api/__init__.py
FastyBird/shelly-connector
afbd75da091f96854fa09d3750d9f75406c5bf39
[ "Apache-2.0" ]
null
null
null
fastybird_shelly_connector/api/__init__.py
FastyBird/shelly-connector
afbd75da091f96854fa09d3750d9f75406c5bf39
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright 2021. FastyBird s.r.o. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
33.9
78
0.705015
32c9af569101d3a1d2b5ba19afbe43e5b75becf5
1,683
py
Python
mango/metadata.py
bednie/mango-explorer
4575395488e97a1f8cb52cc567e3307f11a28932
[ "MIT" ]
null
null
null
mango/metadata.py
bednie/mango-explorer
4575395488e97a1f8cb52cc567e3307f11a28932
[ "MIT" ]
null
null
null
mango/metadata.py
bednie/mango-explorer
4575395488e97a1f8cb52cc567e3307f11a28932
[ "MIT" ]
null
null
null
# # ⚠ Warning # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA...
37.4
104
0.704694
9a08c0c6d76e5446af8778cc88dcdb8bf667e1e6
18,819
py
Python
local_inference_test2.py
Guilhen/object_detection_demo
79addc855276938efaff9d02d68b4c83d603171b
[ "MIT" ]
null
null
null
local_inference_test2.py
Guilhen/object_detection_demo
79addc855276938efaff9d02d68b4c83d603171b
[ "MIT" ]
null
null
null
local_inference_test2.py
Guilhen/object_detection_demo
79addc855276938efaff9d02d68b4c83d603171b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """local_inference_test.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1DoufA_ZZTQ4Cbkrwxll2eoD-ek4rkO7B ## Run inference test Test with images in repository `object_detection_demo/test` directory. """ import os import g...
34.59375
121
0.590308
f8a82f19adccb742f04de4845a1b9cabe4b45c85
1,683
py
Python
src/oscar/apps/catalogue/reviews/forms.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/catalogue/reviews/forms.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
src/oscar/apps/catalogue/reviews/forms.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.utils.translation import gettext_lazy as _ from oscar.core.loading import get_model Vote = get_model('reviews', 'vote') ProductReview = get_model('reviews', 'productreview') class ProductReviewForm(forms.ModelForm): name = forms.CharField(label=_('Name'), required=...
27.590164
62
0.61022
36e6b16b4bab5b817daa4f49c837184d08d7bd71
223
py
Python
frappe/core/doctype/navbar_item/test_navbar_item.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/core/doctype/navbar_item/test_navbar_item.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
frappe/core/doctype/navbar_item/test_navbar_item.py
erpnext-tm/frappe
7b470f28e1cf00b0659c01e06a2d0a4693b28d98
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestNavbarItem(unittest.TestCase): pass
18.583333
58
0.766816
dc12eb19ca637e291bc5f601e2db96e7671e7103
12,443
py
Python
app.py
ASHIK11ab/ON2YOU-E-commerce-website-using-Flask_and_pickle_module
f60663307c98834e30be97d4be838d4a3a7d8e6b
[ "MIT" ]
1
2020-07-01T15:51:37.000Z
2020-07-01T15:51:37.000Z
app.py
ASHIK11ab/ON2YOU-E-commerce-website-using-Flask_and_pickle_module
f60663307c98834e30be97d4be838d4a3a7d8e6b
[ "MIT" ]
null
null
null
app.py
ASHIK11ab/ON2YOU-E-commerce-website-using-Flask_and_pickle_module
f60663307c98834e30be97d4be838d4a3a7d8e6b
[ "MIT" ]
null
null
null
import pickle from flask import Flask, render_template, request, redirect, url_for, flash from myfunctions import* from myfunctions import seller, customer from jinja2.nativetypes import NativeEnvironment app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/sell...
39.252366
152
0.709716
27dcccd61c15e4950090ee24bc988eb87e43e8c7
3,125
py
Python
dl_predictor.py
casey0808/book_recommender
9d401215988d5991944f5b43d3d913ac0c1fd722
[ "MIT" ]
null
null
null
dl_predictor.py
casey0808/book_recommender
9d401215988d5991944f5b43d3d913ac0c1fd722
[ "MIT" ]
null
null
null
dl_predictor.py
casey0808/book_recommender
9d401215988d5991944f5b43d3d913ac0c1fd722
[ "MIT" ]
1
2019-12-09T12:16:57.000Z
2019-12-09T12:16:57.000Z
%matplotlib inline import numpy as np import pandas as pd ratings = pd.read_csv('/gdrive/My Drive/app/ratings.csv', encoding = 'ISO-8859-1') print(ratings.head()) print(ratings.shape) n_users = int(ratings.user_id.nunique()) n_books = int(ratings.book_id.nunique()) print(n_users, n_books) # create a cross-tab for...
35.511364
119
0.664
021e3b7acde2a5eedd6b096d1b7a1f0cf0a268ac
10,450
py
Python
beamline_support.py
RobertSchaffer1/lsdc
010a26f98bec690f8c2cf47b02764c69ce26c2c5
[ "BSD-3-Clause" ]
null
null
null
beamline_support.py
RobertSchaffer1/lsdc
010a26f98bec690f8c2cf47b02764c69ce26c2c5
[ "BSD-3-Clause" ]
147
2020-04-10T20:31:49.000Z
2022-03-22T17:29:52.000Z
beamline_support.py
JunAishima/lsdc
2a68be66642b14a0440182954bcb513c82874ca1
[ "BSD-3-Clause" ]
10
2020-09-25T20:34:55.000Z
2021-10-06T19:11:18.000Z
from string import * import sys import ophyd from ophyd import EpicsMotor from ophyd import EpicsScaler import time import epics import os import logging logger = logging.getLogger(__name__) global beamline_designation,motor_dict,soft_motor_list,scan_list,counter_dict,motor_channel_dict,counter_channel_dict,number_o...
28.396739
274
0.69933
797533c6f4df2bd2aede5ff95ffba6d0b6c7ae07
2,335
py
Python
Election_Portal/migrations/0003_auto_20170928_0851.py
GT-18/Election-Portal-IIT-BHU
6a621f0692cbf57d338674a57b38e9534cfaf220
[ "MIT" ]
null
null
null
Election_Portal/migrations/0003_auto_20170928_0851.py
GT-18/Election-Portal-IIT-BHU
6a621f0692cbf57d338674a57b38e9534cfaf220
[ "MIT" ]
null
null
null
Election_Portal/migrations/0003_auto_20170928_0851.py
GT-18/Election-Portal-IIT-BHU
6a621f0692cbf57d338674a57b38e9534cfaf220
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-09-28 08:51 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ...
40.258621
120
0.602998
911fa79599de9de2d7be20beda8501dd4696e296
17,869
py
Python
examples/services.py
ruuand/impacket
53ccb857143fcb5e77b1b3e8e9f6fc7b6133d8be
[ "Apache-1.1" ]
null
null
null
examples/services.py
ruuand/impacket
53ccb857143fcb5e77b1b3e8e9f6fc7b6133d8be
[ "Apache-1.1" ]
null
null
null
examples/services.py
ruuand/impacket
53ccb857143fcb5e77b1b3e8e9f6fc7b6133d8be
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python # Impacket - Collection of Python classes for working with network protocols. # # SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved. # # This software is provided under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # f...
45.935733
161
0.62947
c4ce2d8594c5453d010927b8952dc3235b2ef599
799
py
Python
test/detext/layers/test_feature_normalizer.py
StarWang/detext
66f071ec2cebf5e54e7d1de40936b5f281c2a69b
[ "BSD-2-Clause" ]
1,229
2020-02-07T22:17:47.000Z
2022-03-26T06:56:52.000Z
test/detext/layers/test_feature_normalizer.py
StarWang/detext
66f071ec2cebf5e54e7d1de40936b5f281c2a69b
[ "BSD-2-Clause" ]
36
2020-04-10T02:00:20.000Z
2022-02-09T06:52:35.000Z
test/detext/layers/test_feature_normalizer.py
StarWang/detext
66f071ec2cebf5e54e7d1de40936b5f281c2a69b
[ "BSD-2-Clause" ]
142
2020-04-07T01:04:07.000Z
2022-03-31T16:22:20.000Z
import tensorflow as tf from detext.layers import feature_normalizer from detext.utils.testing.data_setup import DataSetup class TestFeatureNormalizer(DataSetup, tf.test.TestCase): """Unit test for feature_normalizer.py""" def testFeatureNormalizer(self): batch_size = 10 list_size = 5 ...
28.535714
76
0.69587
b3cb3756fa33bfa3e94b370ae2a28f595472fbe0
811
py
Python
vibration_compensation/data.py
fredizzimo/VibrationCompensation
e668fc70f98983781c2ed26210939f099cd64ca1
[ "MIT" ]
null
null
null
vibration_compensation/data.py
fredizzimo/VibrationCompensation
e668fc70f98983781c2ed26210939f099cd64ca1
[ "MIT" ]
null
null
null
vibration_compensation/data.py
fredizzimo/VibrationCompensation
e668fc70f98983781c2ed26210939f099cd64ca1
[ "MIT" ]
null
null
null
import numpy as np from .phspline import PHSpline from .smoothed_toolpath import SmoothedToolpath class Data: def __init__(self, move_commands, layer_index, maximum_error): self.start_xy = np.array((move_commands["start_x"], move_commands["start_y"])).T self.end_xy = np.array((move_commands[...
47.705882
93
0.678175
1a299a9224bd580cf918ad22f4af92d6ad93857e
9,660
py
Python
models/ecg.py
junming259/VRCNet
8627ae092df60618d18687483c3e3a540d1a0ee0
[ "MIT" ]
99
2021-04-20T17:05:03.000Z
2022-03-31T17:54:28.000Z
models/ecg.py
Allamrahul/VRCNet
945f15fbda01b6d5b4eaa21d6857a0343e893780
[ "MIT" ]
20
2021-05-05T15:23:50.000Z
2022-03-30T10:56:08.000Z
models/ecg.py
Allamrahul/VRCNet
945f15fbda01b6d5b4eaa21d6857a0343e893780
[ "MIT" ]
20
2021-04-21T03:35:32.000Z
2022-02-23T04:03:15.000Z
from __future__ import print_function import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.utils.data import torch.nn.functional as F from utils.model_utils import * from models.pcn import PCN_encoder proj_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path...
39.428571
125
0.610973
c77dd55e77d6ae10e7f889eed895f2c5b2aa4d8c
4,001
py
Python
bcbio/structural/ensemble.py
nuin/bcbio-nextgen
bd084774c8ce9a540d0d0064044f16e92a61358b
[ "MIT" ]
1
2019-10-21T07:22:39.000Z
2019-10-21T07:22:39.000Z
bcbio/structural/ensemble.py
yong27/bcbio-nextgen
9320479d8f21677b61ed1274b4da23d569c686ae
[ "MIT" ]
null
null
null
bcbio/structural/ensemble.py
yong27/bcbio-nextgen
9320479d8f21677b61ed1274b4da23d569c686ae
[ "MIT" ]
null
null
null
"""Combine multiple structural variation callers into single output file. Takes a simple union approach for reporting the final set of calls, reporting the evidence from each input. """ import fileinput import os try: import pybedtools except ImportError: pybedtools = None import toolz as tz import vcf from ...
41.247423
104
0.572857
aa796df76c0e812e5ac2a2d6c0dc708c917b4ead
45,885
py
Python
lib/sqlalchemy/testing/suite/test_types.py
jaens/sqlalchemy
5e9a7eb71389073c28413759f673441627d5290a
[ "MIT" ]
null
null
null
lib/sqlalchemy/testing/suite/test_types.py
jaens/sqlalchemy
5e9a7eb71389073c28413759f673441627d5290a
[ "MIT" ]
null
null
null
lib/sqlalchemy/testing/suite/test_types.py
jaens/sqlalchemy
5e9a7eb71389073c28413759f673441627d5290a
[ "MIT" ]
null
null
null
# coding: utf-8 import datetime import decimal import json import re from .. import config from .. import engines from .. import fixtures from .. import mock from ..assertions import eq_ from ..assertions import is_ from ..config import requirements from ..schema import Column from ..schema import Table from ... impo...
31.514423
79
0.553819
3e4d5bea7c2f4d75ed9e721b7bd15bc6b515f3a9
3,303
py
Python
state_ict_flows_detector.py
nagasudhirpulla/python_scada_voltage_monitoring
6103acfe1a964f65562b4ac3ec8ddd991c3b881c
[ "MIT" ]
null
null
null
state_ict_flows_detector.py
nagasudhirpulla/python_scada_voltage_monitoring
6103acfe1a964f65562b4ac3ec8ddd991c3b881c
[ "MIT" ]
null
null
null
state_ict_flows_detector.py
nagasudhirpulla/python_scada_voltage_monitoring
6103acfe1a964f65562b4ac3ec8ddd991c3b881c
[ "MIT" ]
1
2019-10-07T05:50:30.000Z
2019-10-07T05:50:30.000Z
import pandas as pd from scada_fetcher import fetchScadaPntRealData from appConfig import stateNames from texttable import Texttable class StateIctFlowsDetector: masterFilePath = None ictsDf = None stateSuffixInfoDf = None def __init__(self, masterFilePath='secret/scada_points.xlsx', sheet...
48.573529
126
0.634877
742f50a798bb83bb1b8a63dd55ef8843aeeef432
4,679
py
Python
src/medium_to_various/docjson_to_docx.py
nuuuwan/medium_to_various
acb3006efaf581e87d651f232434ebec6ee83062
[ "MIT" ]
null
null
null
src/medium_to_various/docjson_to_docx.py
nuuuwan/medium_to_various
acb3006efaf581e87d651f232434ebec6ee83062
[ "MIT" ]
null
null
null
src/medium_to_various/docjson_to_docx.py
nuuuwan/medium_to_various
acb3006efaf581e87d651f232434ebec6ee83062
[ "MIT" ]
null
null
null
from docx import Document from docx.enum.style import WD_STYLE_TYPE from docx.enum.text import WD_ALIGN_PARAGRAPH from docx.image.exceptions import UnrecognizedImageError from docx.shared import Inches, Pt, RGBColor from utils import jsonx from medium_to_various.remote_file_utils import get_local_file DEFAULT_IMAGE_W...
35.717557
79
0.656551
738067f3fb19fc1a9495c6036857561fc895ece0
9,529
py
Python
ms_deisotope/feature_map/map_viz.py
mstim/ms_deisotope
29f4f466e92e66b65a2d21eca714aa627caa21db
[ "Apache-2.0" ]
null
null
null
ms_deisotope/feature_map/map_viz.py
mstim/ms_deisotope
29f4f466e92e66b65a2d21eca714aa627caa21db
[ "Apache-2.0" ]
null
null
null
ms_deisotope/feature_map/map_viz.py
mstim/ms_deisotope
29f4f466e92e66b65a2d21eca714aa627caa21db
[ "Apache-2.0" ]
null
null
null
from itertools import cycle from collections import defaultdict try: from matplotlib import pyplot as plt from matplotlib import patches as mpatches, colors as mcolors except (RuntimeError, ImportError): pass import numpy as np from .profile_transform import interpolate, smooth_leveled Ellipse = mpatch...
31.448845
111
0.615175
3ff0d3fbb072a82244e0817db246645ed3bc4c39
1,358
py
Python
kameleon/constants.py
ThinkEE/Kameleon
7f212cd237b6c16b7e85e2fbfa2d70bde731fc5c
[ "MIT" ]
4
2017-06-19T15:56:53.000Z
2018-12-03T10:57:34.000Z
kameleon/constants.py
ThinkEE/Kameleon
7f212cd237b6c16b7e85e2fbfa2d70bde731fc5c
[ "MIT" ]
7
2017-06-19T15:25:37.000Z
2017-06-20T07:34:54.000Z
kameleon/constants.py
ThinkEE/Kameleon
7f212cd237b6c16b7e85e2fbfa2d70bde731fc5c
[ "MIT" ]
null
null
null
################################################################################ # MIT License # # Copyright (c) 2017 Jean-Charles Fosse & Johann Bigler # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in t...
48.5
80
0.681885
d08dfddec33fadee3ff400b696065cb164326d5b
3,389
py
Python
get_questions.py
v1ztep/quiz_bot
8086153c802d768423b3e8a77b127c1671818b6e
[ "MIT" ]
null
null
null
get_questions.py
v1ztep/quiz_bot
8086153c802d768423b3e8a77b127c1671818b6e
[ "MIT" ]
null
null
null
get_questions.py
v1ztep/quiz_bot
8086153c802d768423b3e8a77b127c1671818b6e
[ "MIT" ]
null
null
null
import re from pathlib import Path def get_quiz_questions(): questions_paths = Path('quiz-questions/').glob('*.txt') questions = {} for questions_path in questions_paths: new_questions = select_questions(questions_path) questions.update(new_questions) without_pic_questions = del_pic_...
35.673684
81
0.650339
f32330b26a53f744f34dcd8163fe0d14a988e0d7
2,367
py
Python
lab03/mycv.py
kirill-kundik/computer-graphics
7d079037f755da06541225d559d81aa56b764a84
[ "MIT" ]
null
null
null
lab03/mycv.py
kirill-kundik/computer-graphics
7d079037f755da06541225d559d81aa56b764a84
[ "MIT" ]
null
null
null
lab03/mycv.py
kirill-kundik/computer-graphics
7d079037f755da06541225d559d81aa56b764a84
[ "MIT" ]
null
null
null
class Point: def __init__(self, x, y): self.x = int(x) self.y = int(y) def __repr__(self): return f"Point({self.x}, {self.y})" def __add__(self, other): return Point(self.x + other.x, self.y + other.y) def __mul__(self, other): return Point(self.x * other, self...
22.330189
87
0.450782
676dd72c9c03c6a2bbbba949c3d0ebe32f07f09b
2,652
py
Python
src/plugins/hk_reporter/platform/weibo.py
panda361/nonebot-hk-reporter
b94f6cc31844e9307e355fc81f387ea42501a014
[ "MIT" ]
null
null
null
src/plugins/hk_reporter/platform/weibo.py
panda361/nonebot-hk-reporter
b94f6cc31844e9307e355fc81f387ea42501a014
[ "MIT" ]
null
null
null
src/plugins/hk_reporter/platform/weibo.py
panda361/nonebot-hk-reporter
b94f6cc31844e9307e355fc81f387ea42501a014
[ "MIT" ]
null
null
null
from collections import defaultdict from datetime import datetime import json import time from typing import Any, Optional from bs4 import BeautifulSoup as bs import httpx from nonebot import logger from ..post import Post from ..types import * from ..utils import Singleton from .platform import Platform class Weibo...
35.36
108
0.604449
e179267486521fe6886d41a1566787e915ed60ae
4,746
py
Python
tools/report-converter/codechecker_report_converter/report.py
gocarlos/codechecker
17678b103375a9dbff6e69328d0996d54de78ef3
[ "Apache-2.0" ]
null
null
null
tools/report-converter/codechecker_report_converter/report.py
gocarlos/codechecker
17678b103375a9dbff6e69328d0996d54de78ef3
[ "Apache-2.0" ]
null
null
null
tools/report-converter/codechecker_report_converter/report.py
gocarlos/codechecker
17678b103375a9dbff6e69328d0996d54de78ef3
[ "Apache-2.0" ]
1
2021-01-27T21:45:14.000Z
2021-01-27T21:45:14.000Z
# ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # ---------------------------------------------------...
35.684211
78
0.590181
4db6507fce8d492063fd91d172a446e0e42598f8
3,498
py
Python
bindings/python/ensmallen/datasets/string/sulfurimonasspgwf2378.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/sulfurimonasspgwf2378.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/sulfurimonasspgwf2378.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Sulfurimonas sp. GWF2_37_8. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--pro...
33.314286
223
0.678388
c9724376bd704912ad306a7fea25b43de0761d4c
9,135
py
Python
src/inhibitor_urea_denaturation/2_peptide_normalisation.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/inhibitor_urea_denaturation/2_peptide_normalisation.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
src/inhibitor_urea_denaturation/2_peptide_normalisation.py
dezeraecox-manuscripts/COX_Proteome-stability
a5397baae7f0bc73980b88f8ccf7b83e3d05f590
[ "MIT" ]
null
null
null
import os import re from functools import reduce import numpy as np import pandas as pd from scipy.stats import ttest_1samp from loguru import logger logger.info('Import OK') input_folder = 'results/inhibitor_urea_denaturation/initial_cleanup/' samples = ['VER', 'Control'] pooled_plex = '11' replicates = ['1', '2', ...
42.488372
241
0.695567
cbc0d777dc8f9b4b4b46f3dc0fdc1d2849c670ca
4,328
py
Python
ddtrace/contrib/aiopg/connection.py
farmersbusinessnetwork/dd-trace-py
e83433ff7968838f03a9e191d4dc5edcbc850d5f
[ "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/aiopg/connection.py
farmersbusinessnetwork/dd-trace-py
e83433ff7968838f03a9e191d4dc5edcbc850d5f
[ "BSD-3-Clause" ]
null
null
null
ddtrace/contrib/aiopg/connection.py
farmersbusinessnetwork/dd-trace-py
e83433ff7968838f03a9e191d4dc5edcbc850d5f
[ "BSD-3-Clause" ]
null
null
null
import asyncio import wrapt from aiopg.utils import _ContextManager from .. import dbapi from ...pin import Pin from ...ext import sql, AppTypes class AIOTracedCursor(wrapt.ObjectProxy): """ TracedCursor wraps a psql cursor and traces it's queries. """ def __init__(self, cursor, pin): super(AIOTrac...
33.8125
89
0.623383
5c937a6084932bd4f0d59ca756ef99642c38409f
1,164
py
Python
kronos/core.py
yamad07/kronos
9b84dea3f9bab3459734de51b897a36ff4249cf9
[ "MIT" ]
null
null
null
kronos/core.py
yamad07/kronos
9b84dea3f9bab3459734de51b897a36ff4249cf9
[ "MIT" ]
null
null
null
kronos/core.py
yamad07/kronos
9b84dea3f9bab3459734de51b897a36ff4249cf9
[ "MIT" ]
null
null
null
import click import os import shutil from .src import command as command from .src.modules import utils @click.group('kronos cli') def main(): pass @main.command(help='initialize machine learning project') @click.argument('imgname') @click.option('--dir', default=None) def init(imgname, dir): command.init(img...
25.304348
57
0.712199
c911bf69184f62c8bcea9114b70fbbfdb5b489b9
1,021
py
Python
pytorch_lightning/plugins/precision/tpu_bfloat.py
javierlorenzod/pytorch-lightning
6dba26666aa564db414eb238d99a4213006d8220
[ "Apache-2.0" ]
1
2021-08-05T01:45:26.000Z
2021-08-05T01:45:26.000Z
pytorch_lightning/plugins/precision/tpu_bfloat.py
javierlorenzod/pytorch-lightning
6dba26666aa564db414eb238d99a4213006d8220
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/plugins/precision/tpu_bfloat.py
javierlorenzod/pytorch-lightning
6dba26666aa564db414eb238d99a4213006d8220
[ "Apache-2.0" ]
1
2021-02-16T00:47:46.000Z
2021-02-16T00:47:46.000Z
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
36.464286
95
0.761998
94f8931b12700607f83c280a7768095416134ff1
369
py
Python
Reliability_Tests/ex42.py
dieterch/dReliaCalc
1e0a06e904f3a60527c3a6ae0f45c666a9b48128
[ "MIT" ]
null
null
null
Reliability_Tests/ex42.py
dieterch/dReliaCalc
1e0a06e904f3a60527c3a6ae0f45c666a9b48128
[ "MIT" ]
null
null
null
Reliability_Tests/ex42.py
dieterch/dReliaCalc
1e0a06e904f3a60527c3a6ae0f45c666a9b48128
[ "MIT" ]
null
null
null
from reliability.Repairable_systems import optimal_replacement_time import matplotlib.pyplot as plt optimal_replacement_time(cost_PM=1, cost_CM=5, weibull_alpha=1000, weibull_beta=2.5, q=0) plt.show() ''' Cost model assuming as good as new replacement (q=0): The minimum cost per unit time is 0...
30.75
67
0.745257
e37f9134ac195a89b044bcfd9212f9c44002d803
4,479
py
Python
test/response2_test.py
c-PRIMED/puq
ff71797b05a01b3b32103f4ca229af61794859f6
[ "MIT" ]
14
2015-03-07T21:08:46.000Z
2021-12-06T09:59:20.000Z
test/response2_test.py
c-PRIMED/puq
ff71797b05a01b3b32103f4ca229af61794859f6
[ "MIT" ]
5
2015-03-16T22:06:54.000Z
2019-08-14T12:18:26.000Z
test/response2_test.py
c-PRIMED/puq
ff71797b05a01b3b32103f4ca229af61794859f6
[ "MIT" ]
9
2015-07-09T22:28:56.000Z
2021-11-02T09:16:44.000Z
import numpy as np from puq import * x = UniformParameter('x', 'first variable', min=0, max=10) y = UniformParameter('y', 'second variable', min=-100, max=-50) z = UniformParameter('z', 'third variable', min=20, max=22) def test0(): rf = ResponseFunc('0', params=[x]) rf = unpickle(pickle(rf)) pdf = rf.p...
34.19084
219
0.60326
7323621fc3dfadede8c63ce68fb161fa7771cb31
793
py
Python
Sisin_Vadim_dz_8/3.py
Vadych/python_base
6d4ed96468ebc0da4cd0477df3aac5d5213603a2
[ "Unlicense" ]
null
null
null
Sisin_Vadim_dz_8/3.py
Vadych/python_base
6d4ed96468ebc0da4cd0477df3aac5d5213603a2
[ "Unlicense" ]
null
null
null
Sisin_Vadim_dz_8/3.py
Vadych/python_base
6d4ed96468ebc0da4cd0477df3aac5d5213603a2
[ "Unlicense" ]
null
null
null
from functools import wraps def type_loger(func): @wraps(func) def loging(*args, **kwargs): '''Это логинг из декоратора''' res = func(*args, **kwargs) print (f'{func.__name__}(', end='') print (', '.join([f'{i}: {type(i)}' for i in args]), end='') if args and kwargs: pri...
27.344828
91
0.539723
360eaa89a0c79fee8552e858b12e407f2064fdcd
18
py
Python
exercises/sieve/sieve.py
seemaullal/python-exercisms
43a10cc0bff8c9b095c9c0440ac2eb4b97994c58
[ "MIT" ]
null
null
null
exercises/sieve/sieve.py
seemaullal/python-exercisms
43a10cc0bff8c9b095c9c0440ac2eb4b97994c58
[ "MIT" ]
null
null
null
exercises/sieve/sieve.py
seemaullal/python-exercisms
43a10cc0bff8c9b095c9c0440ac2eb4b97994c58
[ "MIT" ]
null
null
null
def sieve(limit):
9
17
0.722222
919fc8055bffb3d955d04af59e3ad64dd266c72d
7,836
py
Python
polyply/src/backmap.py
jan-stevens/polyply_1.0
17578a0ea546584164722129f0d718a5c9533a1a
[ "Apache-2.0" ]
null
null
null
polyply/src/backmap.py
jan-stevens/polyply_1.0
17578a0ea546584164722129f0d718a5c9533a1a
[ "Apache-2.0" ]
null
null
null
polyply/src/backmap.py
jan-stevens/polyply_1.0
17578a0ea546584164722129f0d718a5c9533a1a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 University of Groningen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
40.184615
86
0.654543
0702e2a5700e8587205d5bb425def72d44d286e3
1,078
py
Python
tests/test_hcv2.py
jiayiliu/handypy
e09af2220dd1378143e79c8819f63fc6a3f0e0ca
[ "MIT" ]
null
null
null
tests/test_hcv2.py
jiayiliu/handypy
e09af2220dd1378143e79c8819f63fc6a3f0e0ca
[ "MIT" ]
null
null
null
tests/test_hcv2.py
jiayiliu/handypy
e09af2220dd1378143e79c8819f63fc6a3f0e0ca
[ "MIT" ]
null
null
null
import tempfile import numpy as np import pytest from handypy import hcv2 as cv2 def test_putText(): img = np.zeros((256, 256, 3), np.uint8) cv2.putText(img, "msg") img = np.zeros((256, 256), np.uint8) cv2.putText(img, "msg") def test_put_chinese_text(): img = np.zeros((256, 256, 3), np.uint8...
23.955556
81
0.622449
1aeb23c527fac98d2dcda3fa9f33f3c1c550dcf4
5,379
py
Python
BPMReader.py
tedyun/GTCtoVCF
a9f2381a84d30eb08e82cbbbc78dc2004c5ddc65
[ "Apache-2.0" ]
37
2017-12-13T18:02:29.000Z
2022-02-23T13:22:56.000Z
BPMReader.py
tedyun/GTCtoVCF
a9f2381a84d30eb08e82cbbbc78dc2004c5ddc65
[ "Apache-2.0" ]
52
2018-01-15T15:35:01.000Z
2021-11-29T16:05:07.000Z
BPMReader.py
tedyun/GTCtoVCF
a9f2381a84d30eb08e82cbbbc78dc2004c5ddc65
[ "Apache-2.0" ]
23
2018-01-24T21:19:15.000Z
2021-09-21T20:12:15.000Z
from IlluminaBeadArrayFiles import BeadPoolManifest, RefStrand from BPMRecord import BPMRecord, IndelSourceSequence class BPMReader(object): """ Get records from a BPM manifest file Attributes: source_file (string) : Source file used to create reader """ def __init__(self, bpm_file, logge...
34.928571
213
0.58245
92f80bf676be3167a46fd19812a7b539ffc1c9d9
7,235
py
Python
build/lib/cplvm/glm_poisson.py
vishalbelsare/cplvm
d8f715258b2c363beb2d59e95e5b5b9e73b503a7
[ "MIT" ]
7
2020-12-17T12:03:46.000Z
2021-11-30T19:27:17.000Z
build/lib/cplvm/glm_poisson.py
vishalbelsare/cplvm
d8f715258b2c363beb2d59e95e5b5b9e73b503a7
[ "MIT" ]
3
2021-11-04T18:10:48.000Z
2022-02-07T23:26:40.000Z
build/lib/cplvm/glm_poisson.py
vishalbelsare/cplvm
d8f715258b2c363beb2d59e95e5b5b9e73b503a7
[ "MIT" ]
3
2020-12-17T12:03:52.000Z
2021-11-05T18:21:03.000Z
import functools import warnings import matplotlib.pyplot as plt import numpy as np import seaborn as sns import tensorflow.compat.v2 as tf import tensorflow_probability as tfp from tensorflow_probability import distributions as tfd from tensorflow_probability import bijectors as tfb from scipy.stats import multiv...
33.341014
112
0.586731
669a8f47589507c94c1b37fbce28466ed9a20cf2
41,282
py
Python
App/ui/crack_ui.py
bambadiagne/Generateur-de-mot-de-passe
668a92fea143dcbe7bae85ec73c3a0401279eab1
[ "MIT" ]
null
null
null
App/ui/crack_ui.py
bambadiagne/Generateur-de-mot-de-passe
668a92fea143dcbe7bae85ec73c3a0401279eab1
[ "MIT" ]
null
null
null
App/ui/crack_ui.py
bambadiagne/Generateur-de-mot-de-passe
668a92fea143dcbe7bae85ec73c3a0401279eab1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'crack.ui' # # Created by: PyQt5 UI code generator 5.15.1 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui,...
54.969374
121
0.3549
4b4d327f683dc97b4f994f1ece996a7eb3cc5cac
2,638
py
Python
flatlander/trainers/ppo.py
wullli/flatlander
2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad
[ "MIT" ]
3
2020-12-30T04:18:42.000Z
2022-03-17T13:15:30.000Z
flatlander/trainers/ppo.py
wullli/flatlander
2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad
[ "MIT" ]
null
null
null
flatlander/trainers/ppo.py
wullli/flatlander
2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad
[ "MIT" ]
null
null
null
import numpy as np from ray.rllib import Policy, TFPolicy from ray.rllib.agents.ppo import PPOTrainer from ray.rllib.agents.ppo.ppo_tf_policy import ValueNetworkMixin, PPOTFPolicy from ray.rllib.agents.ppo.ppo_torch_policy import KLCoeffMixin from ray.rllib.policy.tf_policy import EntropyCoeffSchedule, LearningRateSche...
37.15493
107
0.706217
dfbf31d01cb4d8d5e18be3fd7d61281b55d58f58
3,954
py
Python
oneflow_cambricon-cambricon/oneflow/python/test/ops/test_transpose.py
wanghongsheng01/oneflow_cambricon
187faaa2cb9ba995080ba22499b6219c2d36f0ac
[ "Apache-2.0" ]
null
null
null
oneflow_cambricon-cambricon/oneflow/python/test/ops/test_transpose.py
wanghongsheng01/oneflow_cambricon
187faaa2cb9ba995080ba22499b6219c2d36f0ac
[ "Apache-2.0" ]
null
null
null
oneflow_cambricon-cambricon/oneflow/python/test/ops/test_transpose.py
wanghongsheng01/oneflow_cambricon
187faaa2cb9ba995080ba22499b6219c2d36f0ac
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
34.684211
83
0.646434