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
18130c6e5fbe0f38293aa354b84d8f09216fa4df
280
py
Python
life/app/management/commands/execute_jobs.py
coronasafe/life_backend
00eacfdc5cd544dc136fb306340fb0d56afa78ff
[ "MIT" ]
1
2021-05-15T20:40:00.000Z
2021-05-15T20:40:00.000Z
life/app/management/commands/execute_jobs.py
coronasafe/life_backend
00eacfdc5cd544dc136fb306340fb0d56afa78ff
[ "MIT" ]
null
null
null
life/app/management/commands/execute_jobs.py
coronasafe/life_backend
00eacfdc5cd544dc136fb306340fb0d56afa78ff
[ "MIT" ]
2
2021-05-08T01:45:42.000Z
2021-05-17T02:00:10.000Z
from django.core.management.base import BaseCommand from life.app.tasks.job_executor import run_jobs class Command(BaseCommand): """ Management command to Force run Jobs. """ help = "Force run jobs" def handle(self, *args, **options): run_jobs()
17.5
51
0.675
bfab9d15326e4255af3e175001e1bba778183579
6,838
py
Python
salt/fileserver/gitfs.py
l2ol33rt/salt
ff68bbd9f4bda992a3e039822fb32f141e94347c
[ "Apache-2.0" ]
1
2021-04-05T19:46:35.000Z
2021-04-05T19:46:35.000Z
salt/fileserver/gitfs.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
null
null
null
salt/fileserver/gitfs.py
dv-trading/salt
f5d4334178c50d0dfcd205d5a7fb9cfb27fd369e
[ "Apache-2.0" ]
4
2020-11-04T06:28:05.000Z
2022-02-09T10:54:49.000Z
# -*- coding: utf-8 -*- ''' Git Fileserver Backend With this backend, branches and tags in a remote git repository are exposed to salt as different environments. To enable, add ``git`` to the :conf_master:`fileserver_backend` option in the Master config file. .. code-block:: yaml fileserver_backend: - git...
31.511521
79
0.690553
3383e372111159f070699710fd4ef89e145d60c1
27,920
py
Python
great_expectations/cli/suite.py
OmriBromberg/great_expectations
60eb81ebfb08fef5d37d55c316dc962928beb165
[ "Apache-2.0" ]
1
2021-11-09T05:07:43.000Z
2021-11-09T05:07:43.000Z
great_expectations/cli/suite.py
OmriBromberg/great_expectations
60eb81ebfb08fef5d37d55c316dc962928beb165
[ "Apache-2.0" ]
null
null
null
great_expectations/cli/suite.py
OmriBromberg/great_expectations
60eb81ebfb08fef5d37d55c316dc962928beb165
[ "Apache-2.0" ]
null
null
null
import copy import os import sys from typing import Any, Dict, List, Optional, Union import click from great_expectations import DataContext from great_expectations import exceptions as ge_exceptions from great_expectations.cli import toolkit # noinspection PyPep8Naming from great_expectations.cli.mark import Mark a...
34.726368
148
0.65111
26a9fe4b0c05d452143783cfe917eb9ed314c813
3,707
py
Python
utilities/waypoint_generator/waypoint_generator_obstacle_avoidance.py
Maritime-Robotics-Student-Society/sailing-robot
2c53d41b643ae199a4e51d97a91ded7f6cf813e3
[ "MIT" ]
87
2016-02-04T08:44:00.000Z
2022-03-19T19:53:48.000Z
utilities/waypoint_generator/waypoint_generator_obstacle_avoidance.py
LaurieChen/sailing-robot
840fb10d18026ea0f2ea546691c9bf958b8842d3
[ "MIT" ]
269
2016-01-29T08:19:59.000Z
2020-02-13T12:33:26.000Z
utilities/waypoint_generator/waypoint_generator_obstacle_avoidance.py
LaurieChen/sailing-robot
840fb10d18026ea0f2ea546691c9bf958b8842d3
[ "MIT" ]
45
2016-02-11T22:59:53.000Z
2020-12-10T02:58:50.000Z
#!/usr/bin/python2 # READY FOR MIT # Script to generate waypoints for the obstacle avoidance challenge # man: # waypoint_generator path/to/waypoint.yaml from __future__ import print_function import os import sys my_dir = os.path.dirname(__file__) robot_src_dir = os.path.abspath(os.path.join(my_dir, '../../src/sail...
32.80531
88
0.610467
d5b03b9e057b3b8f837ef63bc6179aa7419c6065
7,316
py
Python
communauto/__init__.py
hadrien/communauto
9f8e195deb38f233914e8c4703ad8dcc383bf3c0
[ "MIT" ]
null
null
null
communauto/__init__.py
hadrien/communauto
9f8e195deb38f233914e8c4703ad8dcc383bf3c0
[ "MIT" ]
null
null
null
communauto/__init__.py
hadrien/communauto
9f8e195deb38f233914e8c4703ad8dcc383bf3c0
[ "MIT" ]
null
null
null
import csv import io import sys import warnings from collections import ChainMap from datetime import datetime from decimal import Decimal from enum import Enum from importlib.resources import read_text from itertools import chain from typing import Dict, Iterable, List import pytz import typer import httpx import str...
27.712121
88
0.609759
39cf587afcfdba7e73943517380a28f244f0ac99
4,720
py
Python
python/cuml/test/test_incremental_pca.py
Nicholas-7/cuml
324d4490dc5254e1188d1678e704622eb69678cb
[ "Apache-2.0" ]
2,743
2018-10-11T17:28:58.000Z
2022-03-31T19:20:50.000Z
python/cuml/test/test_incremental_pca.py
Nicholas-7/cuml
324d4490dc5254e1188d1678e704622eb69678cb
[ "Apache-2.0" ]
4,280
2018-10-11T22:29:57.000Z
2022-03-31T22:02:44.000Z
python/cuml/test/test_incremental_pca.py
Nicholas-7/cuml
324d4490dc5254e1188d1678e704622eb69678cb
[ "Apache-2.0" ]
454
2018-10-11T17:40:56.000Z
2022-03-25T17:07:09.000Z
# # Copyright (c) 2020, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
32.328767
77
0.654237
e0c6b3bdf29fafcfc415526dab10f791ca52a4eb
10,037
py
Python
lib/galaxy/jobs/mapper.py
igorhollaender/sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
2
2018-10-14T16:42:39.000Z
2018-10-14T16:42:41.000Z
lib/galaxy/jobs/mapper.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/jobs/mapper.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
import logging import inspect import os import sys import galaxy.jobs.rules from galaxy.jobs import stock_rules from .rule_helper import RuleHelper log = logging.getLogger( __name__ ) DYNAMIC_RUNNER_NAME = "dynamic" DYNAMIC_DESTINATION_ID = "dynamic_legacy_from_url" ERROR_MESSAGE_NO_RULE_FUNCTION = "Galaxy misconfi...
41.135246
121
0.653582
7aee2b3df4ad049bfc6df65a7faae31dabc454c3
1,209
py
Python
onebarangay_psql/users/tests/test_forms.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
onebarangay_psql/users/tests/test_forms.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
43
2022-02-07T00:18:35.000Z
2022-03-21T04:42:48.000Z
onebarangay_psql/users/tests/test_forms.py
PrynsTag/oneBarangay-PostgreSQL
11d7b97b57603f4c88948905560a22a5314409ce
[ "Apache-2.0" ]
null
null
null
"""Module for all Form Tests.""" import pytest from django.utils.translation import gettext_lazy as _ from onebarangay_psql.users.forms import UserAdminCreationForm from onebarangay_psql.users.models import User pytestmark = pytest.mark.django_db class TestUserAdminCreationForm: """Test class for all tests rela...
33.583333
90
0.647643
d2054715f11c47b8fc3bd73288fd13c0fd5e71e8
14,660
py
Python
tensorflow/contrib/distribute/python/minimize_loss_test.py
P-Hidringer/tensorflow
2008b941ca9cc27121c55a4f5b4fde0231d315d2
[ "Apache-2.0" ]
1
2018-05-30T00:34:05.000Z
2018-05-30T00:34:05.000Z
tensorflow/contrib/distribute/python/minimize_loss_test.py
jwplayer/tensorflow
c8731009708d4694fc553562a267d75064fc5ab4
[ "Apache-2.0" ]
1
2018-05-11T18:18:05.000Z
2018-05-11T18:18:05.000Z
tensorflow/contrib/distribute/python/minimize_loss_test.py
jwplayer/tensorflow
c8731009708d4694fc553562a267d75064fc5ab4
[ "Apache-2.0" ]
1
2021-11-16T19:59:48.000Z
2021-11-16T19:59:48.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.385675
90
0.637381
edb1920cdfa9bb7ccbb11aace1f04c7518c1e644
11,170
py
Python
dopamine/utils/example_viz_lib.py
Mehooz/DRDRL_object
3a3ffd75505a48eb1d7bdde463579cd9c1fa92bb
[ "Apache-2.0" ]
null
null
null
dopamine/utils/example_viz_lib.py
Mehooz/DRDRL_object
3a3ffd75505a48eb1d7bdde463579cd9c1fa92bb
[ "Apache-2.0" ]
null
null
null
dopamine/utils/example_viz_lib.py
Mehooz/DRDRL_object
3a3ffd75505a48eb1d7bdde463579cd9c1fa92bb
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Dopamine 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 applicable law...
43.294574
84
0.66598
e891126d93d235f3ee04ecf6c2986031f24f498c
7,411
py
Python
daal4py/sklearn/ensemble/AdaBoostClassifier.py
amgrigoriev/daal4py
97fbe7a9181410dac348dc724178e8605492e3c4
[ "Apache-2.0" ]
null
null
null
daal4py/sklearn/ensemble/AdaBoostClassifier.py
amgrigoriev/daal4py
97fbe7a9181410dac348dc724178e8605492e3c4
[ "Apache-2.0" ]
null
null
null
daal4py/sklearn/ensemble/AdaBoostClassifier.py
amgrigoriev/daal4py
97fbe7a9181410dac348dc724178e8605492e3c4
[ "Apache-2.0" ]
null
null
null
# ******************************************************************************* # Copyright 2014-2020 Intel Corporation # All Rights Reserved. # # This software is licensed under the Apache License, Version 2.0 (the # "License"), the following terms apply: # # You may not use this file except in compliance with the L...
43.087209
139
0.57833
641b42f8e8eb0f6494e98fc4dec8f894bd62c5bb
559
py
Python
web/migrations/0011_auto_20150914_1041.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
5
2015-09-16T10:50:53.000Z
2016-01-16T09:10:37.000Z
web/migrations/0011_auto_20150914_1041.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
10
2015-09-07T05:58:03.000Z
2019-02-15T10:36:48.000Z
web/migrations/0011_auto_20150914_1041.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
6
2015-09-06T19:42:46.000Z
2019-12-29T21:31:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('web', '0010_auto_20150908_1426'), ] operations = [ migrations.AlterField( model_name='event', name='...
27.95
210
0.631485
f9b82bc3799fd2e7d2dee853d432ed2c29e9eb34
14,282
bzl
Python
swift/internal/swift_protoc_gen_aspect.bzl
Chenyang1112/rules_swift.0.9.0
f796267edac24be4345c73032540c5be3fee59ad
[ "Apache-2.0" ]
1
2020-03-15T08:23:28.000Z
2020-03-15T08:23:28.000Z
swift/internal/swift_protoc_gen_aspect.bzl
Chenyang1112/rules_swift.0.9.0
f796267edac24be4345c73032540c5be3fee59ad
[ "Apache-2.0" ]
null
null
null
swift/internal/swift_protoc_gen_aspect.bzl
Chenyang1112/rules_swift.0.9.0
f796267edac24be4345c73032540c5be3fee59ad
[ "Apache-2.0" ]
null
null
null
# 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...
39.128767
99
0.680157
74a624ea7517acb9f3c0701df7584615d00e4b87
2,464
py
Python
manif.py
TheWitchers3/Flask_Server
b8a66e007cd2dd3fb2e045841b4460678546c304
[ "bzip2-1.0.6" ]
3
2020-07-17T18:27:10.000Z
2020-10-13T03:11:02.000Z
manif.py
TheWitchers3/Flask_Server
b8a66e007cd2dd3fb2e045841b4460678546c304
[ "bzip2-1.0.6" ]
1
2021-06-02T01:05:16.000Z
2021-06-02T01:05:16.000Z
manif.py
TheWitchers3/Flask_Server
b8a66e007cd2dd3fb2e045841b4460678546c304
[ "bzip2-1.0.6" ]
null
null
null
import re import tweepy from tweepy import OAuthHandler from textblob import TextBlob def clean_tweet(tweet): return ' '.join(re.sub("(@[A-Za-z0-9]+)|([^0-9A-Za-z \t]) |(\w+:\/\/\S+)", " ", tweet).split()) def get_tweet_sentiment(tweet): analysis = TextBlob(clean_tweet(tweet)) if analysis.sentiment.pola...
30.8
99
0.60836
40e5bd0c7d49821de61aa290e167439bf30de8e8
669
py
Python
app/core/management/commands/wait_for_db.py
j-dunham/recipe-app-api
120be6de09ac99517b0833280fe49a327d1c4833
[ "MIT" ]
1
2019-04-18T17:31:07.000Z
2019-04-18T17:31:07.000Z
app/core/management/commands/wait_for_db.py
j-dunham/recipe-app-api
120be6de09ac99517b0833280fe49a327d1c4833
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
j-dunham/recipe-app-api
120be6de09ac99517b0833280fe49a327d1c4833
[ "MIT" ]
null
null
null
import time from django.db import connections from django.db.utils import OperationalError from django.core.management.base import BaseCommand class Command(BaseCommand): """Django command to pause execution until database is available""" def handle(self, *args, **options): self.stdout.write("Waitin...
31.857143
80
0.650224
0ab6cda6faf8376791f8d948f7c0e8a4ff115fb4
564
py
Python
adminapp/migrations/0007_alter_subscriber_user.py
mofresh27/MuseumExperience-Group2-Python-BE-1
d6ca7aceeddfcfdefdf112ab5e40cf74d6b472ce
[ "MIT" ]
null
null
null
adminapp/migrations/0007_alter_subscriber_user.py
mofresh27/MuseumExperience-Group2-Python-BE-1
d6ca7aceeddfcfdefdf112ab5e40cf74d6b472ce
[ "MIT" ]
1
2021-07-19T14:27:28.000Z
2021-07-19T14:27:28.000Z
adminapp/migrations/0007_alter_subscriber_user.py
mofresh27/MuseumExperience-Group2-Python-BE-1
d6ca7aceeddfcfdefdf112ab5e40cf74d6b472ce
[ "MIT" ]
2
2021-07-14T21:56:46.000Z
2021-07-15T16:11:41.000Z
# Generated by Django 3.2.4 on 2021-07-08 03:17 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('adminapp', '0006_alter_subscriber_user'), ] operations = [ migrations.Alte...
26.857143
156
0.679078
f29bd888a63e41afe0f312b1541b6de4b6c59c5a
13,439
py
Python
test/unit/session/test_session.py
DaveSawyer/box-python-sdk
6a5134ff9bbbbc0478bb39d7f622fe3829048cbf
[ "Apache-2.0" ]
null
null
null
test/unit/session/test_session.py
DaveSawyer/box-python-sdk
6a5134ff9bbbbc0478bb39d7f622fe3829048cbf
[ "Apache-2.0" ]
null
null
null
test/unit/session/test_session.py
DaveSawyer/box-python-sdk
6a5134ff9bbbbc0478bb39d7f622fe3829048cbf
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from functools import partial from io import IOBase from numbers import Number from mock import MagicMock, Mock, PropertyMock, call, patch, ANY import pytest from boxsdk.auth.oauth2 import OAuth2 from boxsdk.config import API, Proxy from boxsdk.exception import BoxAPIException, BoxException from boxs...
38.287749
150
0.754
2f818680599014adfab1550717056ab2186b5d3a
15,601
py
Python
api_tests/wikis/views/test_wiki_detail.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
null
null
null
api_tests/wikis/views/test_wiki_detail.py
chennan47/osf.io
270608592b39a94941a3e329c0dc16d295a82472
[ "Apache-2.0" ]
18
2020-03-24T16:16:14.000Z
2022-03-03T22:37:48.000Z
api_tests/wikis/views/test_wiki_detail.py
kounoAkihiro/SV-RDM-OSF
76fb0c739f4cdabf03b5bfd2bc63d83b1c2d4796
[ "Apache-2.0" ]
1
2021-10-04T21:16:56.000Z
2021-10-04T21:16:56.000Z
import mock import pytest import furl from urlparse import urlparse from nose.tools import * # flake8: noqa from api.base.settings.defaults import API_BASE from osf.models import Guid from addons.wiki.models import NodeWikiPage from tests.base import ApiWikiTestCase from osf_tests.factories import (ProjectFactory,...
46.84985
92
0.684123
5161faa99fd57d8572d2fc066b9b77b40a95cee5
330
py
Python
Section1/taximeter.py
koltpython/python-exercises-fall2019
716493c5c3c93c3c68723f099376d017ff27ac4d
[ "MIT" ]
2
2019-11-07T10:59:51.000Z
2019-11-07T12:24:54.000Z
Section1/taximeter.py
koltpython/python-exercises
716493c5c3c93c3c68723f099376d017ff27ac4d
[ "MIT" ]
null
null
null
Section1/taximeter.py
koltpython/python-exercises
716493c5c3c93c3c68723f099376d017ff27ac4d
[ "MIT" ]
1
2020-03-09T10:49:04.000Z
2020-03-09T10:49:04.000Z
name = input('Welcome, what is your name: ') loc = input(f'Hi, {name}! Where are you going from?') dest = input('And, where are we going?') dist = float(input('What is the total distance in km?')) total = 4 + 1.15*dist print(f'Okay, {name}. You are travelling from {loc} to {dest} which is {dist} kms and your total is ...
41.25
109
0.669697
bb99314c6c2294ad43d659308b7534b853294545
1,512
py
Python
PSME/lui/OS/rootfs/opt/intel/rackscale/include/psme_xml_structure/lui_model_managers/cpu_id_manager.py
opencomputeproject/HWMgmt-DeviceMgr-PSME
2a00188aab6f4bef3776987f0842ef8a8ea972ac
[ "Apache-2.0" ]
5
2021-10-07T15:36:37.000Z
2022-03-01T07:21:49.000Z
PSME/lui/OS/rootfs/opt/intel/rackscale/include/psme_xml_structure/lui_model_managers/cpu_id_manager.py
opencomputeproject/DM-Redfish-PSME
912f7b6abf5b5c2aae33c75497de4753281c6a51
[ "Apache-2.0" ]
null
null
null
PSME/lui/OS/rootfs/opt/intel/rackscale/include/psme_xml_structure/lui_model_managers/cpu_id_manager.py
opencomputeproject/DM-Redfish-PSME
912f7b6abf5b5c2aae33c75497de4753281c6a51
[ "Apache-2.0" ]
1
2021-03-24T19:37:58.000Z
2021-03-24T19:37:58.000Z
""" * @section LICENSE * * @copyright * Copyright (c) 2015-2017 Intel Corporation * * @copyright * 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 * * @copyright * http://www.apach...
34.363636
100
0.725529
dafe6a918f761a32a82d45486b0400d9aa653315
6,592
py
Python
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/cameras/handlers/follow_track_offset_camera.py
timmattison/amazon-sagemaker-examples
4277a89d4279827bcdcacb30076ec18bf355b00d
[ "Apache-2.0" ]
4
2020-03-26T14:26:13.000Z
2021-06-29T11:14:58.000Z
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/cameras/handlers/follow_track_offset_camera.py
timmattison/amazon-sagemaker-examples
4277a89d4279827bcdcacb30076ec18bf355b00d
[ "Apache-2.0" ]
5
2020-09-26T00:44:52.000Z
2022-02-10T01:06:32.000Z
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/cameras/handlers/follow_track_offset_camera.py
timmattison/amazon-sagemaker-examples
4277a89d4279827bcdcacb30076ec18bf355b00d
[ "Apache-2.0" ]
8
2020-12-14T15:49:24.000Z
2022-03-23T18:38:36.000Z
import numpy as np import rospy import math from gazebo_msgs.srv import SetModelState, GetModelState from gazebo_msgs.msg import ModelState, ModelStates from markov.deepracer_exceptions import GenericRolloutException from markov.rospy_wrappers import ServiceProxyWrapper from markov.track_geom.track_data import TrackDa...
52.31746
116
0.68037
08168373ee3fb5fa618c1293796a6a9042bd9b66
16,472
py
Python
statsmodels/tsa/vector_ar/tests/test_var.py
kevindavenport/statsmodels
c8e980da57cb9d5be64872ad5e13893e6ae7cd0d
[ "BSD-3-Clause" ]
1
2016-09-02T20:31:32.000Z
2016-09-02T20:31:32.000Z
statsmodels/tsa/vector_ar/tests/test_var.py
kevindavenport/statsmodels
c8e980da57cb9d5be64872ad5e13893e6ae7cd0d
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/vector_ar/tests/test_var.py
kevindavenport/statsmodels
c8e980da57cb9d5be64872ad5e13893e6ae7cd0d
[ "BSD-3-Clause" ]
null
null
null
""" Test VAR Model """ from __future__ import print_function # pylint: disable=W0612,W0231 from statsmodels.compat.python import iteritems, StringIO, lrange, BytesIO, range from nose.tools import assert_raises import nose import os import sys import numpy as np import statsmodels.api as sm import statsmodels.tsa.vect...
29.309609
100
0.578497
b9e2fb17df5b2409f1a86d712c15bff121cf6979
11,039
py
Python
tests/unit/bokeh/embed/test_standalone.py
dkapitan/bokeh
d518cecd1d9919db49e3c0033e8c1b89db9965bf
[ "BSD-3-Clause" ]
1
2020-02-07T16:57:56.000Z
2020-02-07T16:57:56.000Z
tests/unit/bokeh/embed/test_standalone.py
dkapitan/bokeh
d518cecd1d9919db49e3c0033e8c1b89db9965bf
[ "BSD-3-Clause" ]
1
2021-05-11T04:37:17.000Z
2021-05-11T04:37:17.000Z
tests/unit/bokeh/embed/test_standalone.py
dkapitan/bokeh
d518cecd1d9919db49e3c0033e8c1b89db9965bf
[ "BSD-3-Clause" ]
1
2020-03-06T07:38:50.000Z
2020-03-06T07:38:50.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
37.420339
110
0.55784
7cb5ebd33e19bc59b2398b62314c2c672bff6b4f
5,048
py
Python
abcnn/graph.py
DeepQuantitative/text_matching
7e75d76154613e4063193b3eda0d4ce555f685a1
[ "Apache-2.0" ]
621
2019-05-07T06:21:06.000Z
2022-03-29T03:18:57.000Z
abcnn/graph.py
DeepQuantitative/text_matching
7e75d76154613e4063193b3eda0d4ce555f685a1
[ "Apache-2.0" ]
16
2019-06-15T10:15:32.000Z
2022-02-16T06:12:57.000Z
abcnn/graph.py
DeepQuantitative/text_matching
7e75d76154613e4063193b3eda0d4ce555f685a1
[ "Apache-2.0" ]
183
2019-05-31T17:02:20.000Z
2022-03-16T07:15:05.000Z
import tensorflow as tf from abcnn import args class Graph: def __init__(self, abcnn1=False, abcnn2=False): self.p = tf.placeholder(dtype=tf.int32, shape=(None, args.seq_length), name='p') self.h = tf.placeholder(dtype=tf.int32, shape=(None, args.seq_length), name='h') self.y = tf.placeho...
43.145299
119
0.571712
1c531d22bf8c4576c5bb117a2c359271a0a03d5d
528
py
Python
Level1/Ex_3.py
zac11/Python_Excerices
775739e2639be1f82cc3690c854b9ea0ece05042
[ "Apache-2.0" ]
2
2019-03-09T20:31:06.000Z
2020-06-19T12:15:13.000Z
Level1/Ex_3.py
zac11/Python_Excerices
775739e2639be1f82cc3690c854b9ea0ece05042
[ "Apache-2.0" ]
null
null
null
Level1/Ex_3.py
zac11/Python_Excerices
775739e2639be1f82cc3690c854b9ea0ece05042
[ "Apache-2.0" ]
1
2018-08-11T18:36:49.000Z
2018-08-11T18:36:49.000Z
""" With a given integral number n, write a program to generate a dictionary that contains (i, i*i) such that is an integral number between 1 and n (both included). and then the program should print the dictionary. Suppose the following input is supplied to the program: 8 Then, the output should be: {1: 1, 2: 4, 3: 9,...
19.555556
210
0.623106
345172cdbde38532f54b5b72a9fb353df334db15
16,936
py
Python
Lib/site-packages/urllib3/contrib/pyopenssl.py
ldepaula3/TextAnalyticsApp
cd87f2017cf301266a82355d4c781de67b9c6ac9
[ "bzip2-1.0.6" ]
7
2019-12-21T00:14:14.000Z
2021-03-11T14:51:37.000Z
Lib/site-packages/urllib3/contrib/pyopenssl.py
ldepaula3/TextAnalyticsApp
cd87f2017cf301266a82355d4c781de67b9c6ac9
[ "bzip2-1.0.6" ]
29
2019-10-09T11:16:21.000Z
2020-06-23T09:32:09.000Z
Lib/site-packages/urllib3/contrib/pyopenssl.py
ldepaula3/TextAnalyticsApp
cd87f2017cf301266a82355d4c781de67b9c6ac9
[ "bzip2-1.0.6" ]
1
2021-05-07T10:13:31.000Z
2021-05-07T10:13:31.000Z
""" SSL with SNI_-support for Python 2. Follow these instructions if you would like to verify SSL certificates in Python 2. Note, the default libraries do *not* do certificate checking; you need to do additional work to validate certificates yourself. This needs the following packages installed: * pyOpenSSL (...
34.847737
97
0.642419
07ef7b33796d01d51455b12b14dbf8509e120a49
1,594
py
Python
src/sentry/models/authprovider.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
1
2019-10-17T17:46:16.000Z
2019-10-17T17:46:16.000Z
src/sentry/models/authprovider.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
src/sentry/models/authprovider.py
pierredup/sentry
0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function from bitfield import BitField from django.db import models from django.utils import timezone from sentry.db.models import ( BoundedPositiveIntegerField, EncryptedJsonField, FlexibleForeignKey, Model, sane_repr, ) class AuthProvider(Model): ...
28.981818
97
0.716437
2254799a08067a7daecd225bf6a3f1078157a43c
10,773
py
Python
tests/tests.py
benhowes/django-side-effects
8caaa66dfcd85c4c65f6a9d80d306b98a1eab6a0
[ "MIT" ]
null
null
null
tests/tests.py
benhowes/django-side-effects
8caaa66dfcd85c4c65f6a9d80d306b98a1eab6a0
[ "MIT" ]
null
null
null
tests/tests.py
benhowes/django-side-effects
8caaa66dfcd85c4c65f6a9d80d306b98a1eab6a0
[ "MIT" ]
null
null
null
from unittest import mock from django.test import TestCase from side_effects import registry, decorators, settings class RegistryFunctionTests(TestCase): """Test the free functions in the registry module.""" def setUp(self): registry._registry.clear() def test_fname(self): self.assert...
32.744681
86
0.640304
842b93c43104944832376724b0133e758e37cfc5
9,939
py
Python
dataframe_utilities.py
labscript-suite-temp-archive/lyse-fork--mearnshaw-lyse--forked-from--labscript_suite-lyse
f72266fe6e70cdfaf9a57338307e2a8379d7ba4b
[ "BSD-2-Clause" ]
null
null
null
dataframe_utilities.py
labscript-suite-temp-archive/lyse-fork--mearnshaw-lyse--forked-from--labscript_suite-lyse
f72266fe6e70cdfaf9a57338307e2a8379d7ba4b
[ "BSD-2-Clause" ]
null
null
null
dataframe_utilities.py
labscript-suite-temp-archive/lyse-fork--mearnshaw-lyse--forked-from--labscript_suite-lyse
f72266fe6e70cdfaf9a57338307e2a8379d7ba4b
[ "BSD-2-Clause" ]
null
null
null
##################################################################### # # # /dataframe_utilities.py # # # # Copyright 2013, Monash University ...
40.901235
98
0.591709
34a106db6f86c512a164b86f587cb7a8c6a4af2e
1,743
py
Python
classifiers/binary/dtclassifier.py
marinakiseleva/thex_model
9d498b697b7c4b03e1db31cae4d7a469311229f7
[ "MIT" ]
4
2020-07-20T21:15:19.000Z
2021-10-01T19:45:47.000Z
classifiers/binary/dtclassifier.py
marinakiseleva/thex_model
9d498b697b7c4b03e1db31cae4d7a469311229f7
[ "MIT" ]
1
2019-12-18T17:45:10.000Z
2019-12-18T17:45:10.000Z
classifiers/binary/dtclassifier.py
marinakiseleva/thex_model
9d498b697b7c4b03e1db31cae4d7a469311229f7
[ "MIT" ]
1
2021-10-06T23:11:32.000Z
2021-10-06T23:11:32.000Z
import sys import pandas as pd from sklearn.model_selection import GridSearchCV from sklearn.metrics import brier_score_loss from sklearn.tree import DecisionTreeClassifier from thex_data.data_consts import TARGET_LABEL, CPU_COUNT, LOSS_FUNCTION class DTClassifier(): """ Decision tree classifier """ ...
34.176471
84
0.601836
25985a64ce671533c476ec68a14129f00afc5cb5
5,928
py
Python
tests/test_utils.py
arnavkapoor/dateparser
f884c353863aafca48d35a38ed9a23ddab90bd6a
[ "BSD-3-Clause" ]
1
2021-04-07T09:00:57.000Z
2021-04-07T09:00:57.000Z
tests/test_utils.py
arnavkapoor/dateparser
f884c353863aafca48d35a38ed9a23ddab90bd6a
[ "BSD-3-Clause" ]
null
null
null
tests/test_utils.py
arnavkapoor/dateparser
f884c353863aafca48d35a38ed9a23ddab90bd6a
[ "BSD-3-Clause" ]
null
null
null
import itertools from datetime import datetime import pytest from tests import BaseTestCase from parameterized import parameterized, param from dateparser.utils import ( find_date_separator, localize_timezone, apply_timezone, apply_timezone_from_settings, registry, get_last_day_of_month, get_previous_lea...
38
117
0.662787
734ddfa418ce1b2a2cf34dbb3389b737e0e97dad
10,975
py
Python
pytools/src/IndexEval/evalcontinously.py
selentd/pythontools
ab3158dca1c3f6ef0f6d6678070da4a6551fa334
[ "Apache-2.0" ]
null
null
null
pytools/src/IndexEval/evalcontinously.py
selentd/pythontools
ab3158dca1c3f6ef0f6d6678070da4a6551fa334
[ "Apache-2.0" ]
null
null
null
pytools/src/IndexEval/evalcontinously.py
selentd/pythontools
ab3158dca1c3f6ef0f6d6678070da4a6551fa334
[ "Apache-2.0" ]
null
null
null
''' Created on 17.03.2016 @author: selen00r ''' import datetime import evalbase import evalrunner import fetchdata import indexdata import transactionchecker class EvalContinously(evalbase.EvalBase): ''' classdocs ''' maxDaysKey = "maxDays" maxWinKey = "maxWin" maxLossKey = "maxLoss" ...
41.259398
157
0.682733
e81547f5a9ff424d20f5829ae95876d8d09cd811
1,106
py
Python
sponge-app/sponge-app-demo-service/sponge/sponge_demo_binary_result.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
9
2017-12-16T21:48:57.000Z
2022-01-06T12:22:24.000Z
sponge-app/sponge-app-demo-service/sponge/sponge_demo_binary_result.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
3
2020-12-18T11:56:46.000Z
2022-03-31T18:37:10.000Z
sponge-app/sponge-app-demo-service/sponge/sponge_demo_binary_result.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
2
2019-12-29T16:08:32.000Z
2020-06-15T14:05:34.000Z
""" Sponge Knowledge Base Demo """ class HtmlFileOutput(Action): def onConfigure(self): self.withLabel("HTML file output").withDescription("Returns the HTML file.") self.withNoArgs().withResult(BinaryType().withMimeType("text/html").withLabel("HTML file")) self.withFeatures({"icon":"web"}) ...
33.515152
148
0.641049
377473683665d62266d90c2f7aa4e13b632dc6e6
16,327
py
Python
telnetserver/telnetserver.py
OliverLSanz/python-telnetserver
c85a7786322b41af5aeb4d7da6f59c4e55c7a168
[ "MIT" ]
1
2020-08-04T14:31:48.000Z
2020-08-04T14:31:48.000Z
telnetserver/telnetserver.py
OliverLSanz/Simple-Python-Telnet-Server
c85a7786322b41af5aeb4d7da6f59c4e55c7a168
[ "MIT" ]
3
2020-08-04T14:33:09.000Z
2021-04-14T11:48:25.000Z
telnetserver/telnetserver.py
OliverLSanz/python-telnetserver
c85a7786322b41af5aeb4d7da6f59c4e55c7a168
[ "MIT" ]
null
null
null
"""Basic Telnet server module. Contains one class, TelnetServer, which can be instantiated to start a server running then used to send and receive messages from clients. It is a generalization made by Oliver L. Sanz from Mark Frimston's mud-py server. """ import socket import select import time import sys class T...
40.715711
190
0.614565
40ae38c9ad3a9a0b56474e1c28aaa4ea1e9451af
68,921
py
Python
sleekxmpp/xmlstream/xmlstream.py
dashdash-chat/SleekXMPP
00d5de83536e9ca22ea4a27460e42097651ce60f
[ "BSD-3-Clause" ]
null
null
null
sleekxmpp/xmlstream/xmlstream.py
dashdash-chat/SleekXMPP
00d5de83536e9ca22ea4a27460e42097651ce60f
[ "BSD-3-Clause" ]
null
null
null
sleekxmpp/xmlstream/xmlstream.py
dashdash-chat/SleekXMPP
00d5de83536e9ca22ea4a27460e42097651ce60f
[ "BSD-3-Clause" ]
null
null
null
""" sleekxmpp.xmlstream.xmlstream ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module provides the module for creating and interacting with generic XML streams, along with the necessary eventing infrastructure. Part of SleekXMPP: The Sleek XMPP Library :copyright: (c) 2011 Nathanael C. Fritz :...
40.399179
94
0.561643
c558e9f7af28a1053e87043c62baf90c1c9e114e
4,708
py
Python
utils.py
OakLake/GANs
12131b7ba64849986cf31991ef1ed39691f26e51
[ "MIT" ]
null
null
null
utils.py
OakLake/GANs
12131b7ba64849986cf31991ef1ed39691f26e51
[ "MIT" ]
null
null
null
utils.py
OakLake/GANs
12131b7ba64849986cf31991ef1ed39691f26e51
[ "MIT" ]
null
null
null
import os import numpy as np import errno import torchvision.utils as vutils from tensorboardX import SummaryWriter from IPython import display from matplotlib import pyplot as plt import torch ''' TensorBoard Data will be stored in './runs' path ''' class Logger: def __init__(self, model_name, data_name): ...
34.115942
114
0.609601
50d429d6c8bc593fcaab595f4a36cd7140d6c1fb
6,702
py
Python
ingest/qtl/eqtlgen_2018/process.py
opentargets/sumstat_data
9fb0aafd763def5d0a274e5175def21db1e41de2
[ "Apache-2.0" ]
1
2018-11-30T10:19:08.000Z
2018-11-30T10:19:08.000Z
ingest/qtl/eqtlgen_2018/process.py
opentargets/sumstat_data
9fb0aafd763def5d0a274e5175def21db1e41de2
[ "Apache-2.0" ]
1
2018-11-02T10:50:57.000Z
2018-11-02T10:50:57.000Z
ingest/qtl/eqtlgen_2018/process.py
opentargets/sumstat_data
9fb0aafd763def5d0a274e5175def21db1e41de2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Ed Mountjoy # ''' # Set SPARK_HOME and PYTHONPATH to use 2.4.0 export PYSPARK_SUBMIT_ARGS="--driver-memory 8g pyspark-shell" export SPARK_HOME=/Users/em21/software/spark-2.4.0-bin-hadoop2.7 export PYTHONPATH=$SPARK_HOME/python:$SPARK_HOME/python/lib/py4j-2.4.0-src.zip:...
28.041841
124
0.522232
2d5d1cb6373939e8d707a7bba1b3d4615b1dc075
19,444
py
Python
torch/distributed/_shard/sharded_tensor/__init__.py
YifanShenSZ/pytorch
b4232f7cbe407909f9d95b91304c73fdc4c66a50
[ "Intel" ]
null
null
null
torch/distributed/_shard/sharded_tensor/__init__.py
YifanShenSZ/pytorch
b4232f7cbe407909f9d95b91304c73fdc4c66a50
[ "Intel" ]
null
null
null
torch/distributed/_shard/sharded_tensor/__init__.py
YifanShenSZ/pytorch
b4232f7cbe407909f9d95b91304c73fdc4c66a50
[ "Intel" ]
null
null
null
# coding=utf-8 import copy import functools from typing import List import torch import torch.distributed._shard.sharding_spec as shard_spec from torch.distributed._shard.partial_tensor import _PartialTensor from .api import ( _CUSTOM_SHARDED_OPS, _SHARDED_OPS, Shard, ShardedTensor, ShardedTensor...
41.725322
124
0.651049
11303bb945bc072a9179262dd1f21c809f71e016
734
py
Python
examples/setup.py
meangrape/build_manpage
05f68158e2256df4f8e888b91f22a2e18ae49712
[ "Apache-2.0" ]
1
2020-05-15T00:38:23.000Z
2020-05-15T00:38:23.000Z
examples/setup.py
meangrape/build_manpage
05f68158e2256df4f8e888b91f22a2e18ae49712
[ "Apache-2.0" ]
null
null
null
examples/setup.py
meangrape/build_manpage
05f68158e2256df4f8e888b91f22a2e18ae49712
[ "Apache-2.0" ]
1
2020-05-15T00:38:31.000Z
2020-05-15T00:38:31.000Z
#!/usr/bin/env python3 import os.path import sys from setuptools import setup, find_packages from build_manpage import build_manpage HOME=os.path.expanduser('~') setup( name='example', version='0.2.0', author='Jay Edwards', cmdclass={'build_manpage': build_manpage}, author_email='jay@meangrape.c...
24.466667
71
0.637602
0d8f39d7a1b79765dcac221d5a546b1b955a58af
25,871
py
Python
electrum/gui/qt/channels_list.py
jeroz1/electrum-ravencoin-utd
1775d61162d3c6a4e60a040a7eef69b2cc0e7b1f
[ "MIT" ]
1
2022-03-06T08:02:55.000Z
2022-03-06T08:02:55.000Z
electrum/gui/qt/channels_list.py
jeroz1/electrum-ravencoin-utd
1775d61162d3c6a4e60a040a7eef69b2cc0e7b1f
[ "MIT" ]
null
null
null
electrum/gui/qt/channels_list.py
jeroz1/electrum-ravencoin-utd
1775d61162d3c6a4e60a040a7eef69b2cc0e7b1f
[ "MIT" ]
1
2021-05-25T19:05:23.000Z
2021-05-25T19:05:23.000Z
# -*- coding: utf-8 -*- import traceback from enum import IntEnum from typing import Sequence, Optional, Dict from abc import abstractmethod, ABC from PyQt5 import QtCore, QtGui from PyQt5.QtCore import Qt, QRect, QSize from PyQt5.QtWidgets import (QMenu, QHBoxLayout, QLabel, QVBoxLayout, QGridLayout, QLineEdit, ...
44.605172
181
0.638978
e9326e27c1985656bac32da4ed08d70ca574b301
1,017
py
Python
src/temporal/PlotSZA.py
scottaiton/gemini3d
21f59aabb4d842d587dbeba428ba7353905e063e
[ "Apache-2.0" ]
22
2020-09-17T05:08:59.000Z
2022-02-24T18:22:06.000Z
src/temporal/PlotSZA.py
scottaiton/gemini3d
21f59aabb4d842d587dbeba428ba7353905e063e
[ "Apache-2.0" ]
52
2020-07-23T13:55:59.000Z
2022-03-19T13:59:43.000Z
src/temporal/PlotSZA.py
scottaiton/gemini3d
21f59aabb4d842d587dbeba428ba7353905e063e
[ "Apache-2.0" ]
11
2020-08-20T12:07:06.000Z
2021-12-14T13:03:04.000Z
import astropy.coordinates as ac import astropy import astropy.units as u from argparse import ArgumentParser def solarzenithangle(t, glat, glon, alt_m): """ Parameters ---------- t : datetime time of observation glat : float latitude glon : float longitude alt_m : floa...
22.108696
82
0.631268
4b8ec0567a2469c2836fb326882a543759b65a15
814
py
Python
peon/tests/test_commandline/test_project_tree/test_inspect.py
roch1990/peon
0e9e40956c05138c0820fe380b354fdd1fe95e01
[ "MIT" ]
32
2020-05-18T14:02:59.000Z
2022-02-06T15:00:12.000Z
peon/tests/test_commandline/test_project_tree/test_inspect.py
roch1990/peon
0e9e40956c05138c0820fe380b354fdd1fe95e01
[ "MIT" ]
42
2020-05-22T20:29:08.000Z
2021-03-10T21:24:23.000Z
peon/tests/test_commandline/test_project_tree/test_inspect.py
roch1990/peon
0e9e40956c05138c0820fe380b354fdd1fe95e01
[ "MIT" ]
4
2020-07-02T06:32:42.000Z
2022-01-24T22:46:02.000Z
import pytest from peon.src.comandline.project_tree import ProjectTree from peon.tests.utils import TestProjectTree def test_inspect_success(): assert list( set( ProjectTree( path_to_project=[f'{TestProjectTree().pythonpath}/tests/fixtures'], ).inspect(), )...
29.071429
93
0.632678
7d30cb6381cf8d5ddfeb26d6aa4375bb4502c0a3
10,133
py
Python
preprocessy/resampling/_split.py
RiyaGupta99/preprocessy
1cccf56e96f95394e939ea9aa2751857c071af75
[ "MIT" ]
null
null
null
preprocessy/resampling/_split.py
RiyaGupta99/preprocessy
1cccf56e96f95394e939ea9aa2751857c071af75
[ "MIT" ]
null
null
null
preprocessy/resampling/_split.py
RiyaGupta99/preprocessy
1cccf56e96f95394e939ea9aa2751857c071af75
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from ..utils import num_of_samples class Split: """Class for resampling and splitting input data""" def __init__(self): self.df = None self.train_df = None self.target_label = None self.train_y = None self.test_df = None ...
37.52963
115
0.552847
f63a2d58eeba59549da507addf1250590db6b23a
5,460
py
Python
denise/retrain_market.py
DeepRPCA/Denise
90d08dbcf03a126567093d99bce98bee0b4f6357
[ "Apache-2.0" ]
null
null
null
denise/retrain_market.py
DeepRPCA/Denise
90d08dbcf03a126567093d99bce98bee0b4f6357
[ "Apache-2.0" ]
null
null
null
denise/retrain_market.py
DeepRPCA/Denise
90d08dbcf03a126567093d99bce98bee0b4f6357
[ "Apache-2.0" ]
null
null
null
"""Retrain already trained models on market data""" import sys import shutil from absl import app from absl import flags from lsr import algo_tf from lsr import evaluation from lsr import market_matrices # pylint: disable=unused-import from lsr import positive_semidefinite_matrices # pylint: disable=unused-import fr...
36.4
95
0.689194
fc5f94d0c66a455674d38876821ec3ed0c32ccb4
16,314
py
Python
src/apps/dailytrans/reports/last5yearsreport.py
COAStatistics/aprp
8b06116a32001b040868a3cfa44e7d1f3bfb4742
[ "MIT" ]
2
2020-07-11T23:20:54.000Z
2021-07-14T03:15:28.000Z
src/apps/dailytrans/reports/last5yearsreport.py
COAStatistics/aprp
8b06116a32001b040868a3cfa44e7d1f3bfb4742
[ "MIT" ]
38
2018-09-26T15:11:34.000Z
2022-03-18T08:05:02.000Z
src/apps/dailytrans/reports/last5yearsreport.py
COAStatistics/aprp
8b06116a32001b040868a3cfa44e7d1f3bfb4742
[ "MIT" ]
6
2018-08-24T05:50:32.000Z
2019-03-12T01:22:44.000Z
import pandas as pd import numpy as np import psycopg2 from datetime import date from sqlalchemy import create_engine from _pydecimal import Decimal, Context, ROUND_HALF_UP from django.conf import settings from apps.configs.models import AbstractProduct, Last5YearsItems from functools import reduce import operator imp...
58.264286
422
0.642761
6644c14a3ad8f6acdaad9f56536c7d2f6e01c491
1,035
py
Python
python3/tests/test_merge_k_sorted_lists.py
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
4
2018-03-05T02:27:16.000Z
2021-03-15T14:19:44.000Z
python3/tests/test_merge_k_sorted_lists.py
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
null
null
null
python3/tests/test_merge_k_sorted_lists.py
qianbinbin/leetcode
915cecab0c940cd13847683ec55b17b77eb0f39b
[ "MIT" ]
2
2018-07-22T10:32:10.000Z
2018-10-20T03:14:28.000Z
from unittest import TestCase from leetcodepy.merge_k_sorted_lists import * from leetcodepy.utils import linked_lists SOLUTION1 = Solution1() SOLUTION2 = Solution2() def LISTS1(): return [linked_lists.from_values(1, 4, 5), linked_lists.from_values(1, 3, 4), linked_lists.from_values(2, 6)] EXPECTED1 = linked_l...
31.363636
113
0.74686
449d2506d04fa2a56fb2cafe4c4e521ada190706
15,601
py
Python
homeassistant/components/homekit/util.py
bannhead/core
b113984875381b486ef6722080d992db254559bf
[ "Apache-2.0" ]
1
2021-09-11T19:53:41.000Z
2021-09-11T19:53:41.000Z
homeassistant/components/homekit/util.py
bannhead/core
b113984875381b486ef6722080d992db254559bf
[ "Apache-2.0" ]
47
2020-07-23T07:14:33.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/homekit/util.py
bannhead/core
b113984875381b486ef6722080d992db254559bf
[ "Apache-2.0" ]
1
2020-12-21T22:15:32.000Z
2020-12-21T22:15:32.000Z
"""Collection of useful functions for the HomeKit component.""" from collections import OrderedDict, namedtuple import io import ipaddress import logging import os import re import secrets import socket import pyqrcode import voluptuous as vol from homeassistant.components import binary_sensor, fan, media_player, sen...
30.35214
88
0.651753
715faa6fd9f0b9020130e843ef5596024c9ea2e8
4,954
py
Python
mimic3models/length_of_stay/logistic/main.py
PNilayam/CS598_DLH
058809856d1ac4d78857679b0880fd7a810ed8e8
[ "MIT" ]
null
null
null
mimic3models/length_of_stay/logistic/main.py
PNilayam/CS598_DLH
058809856d1ac4d78857679b0880fd7a810ed8e8
[ "MIT" ]
null
null
null
mimic3models/length_of_stay/logistic/main.py
PNilayam/CS598_DLH
058809856d1ac4d78857679b0880fd7a810ed8e8
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from sklearn.impute import SimpleImputer from sklearn.preprocessing import StandardScaler from sklearn.linear_model import LinearRegression from mimic3benchmark.readers import LengthOfStayReader from mimic3models import common_utils from mimi...
41.630252
119
0.671175
f02e5977f8af4e02720001fe1de67f768a0f95fd
2,542
py
Python
surfactant_example/formulation/tests/test_formulation_data_source.py
force-h2020/force-bdss-plugin-surfactant-example
ba442f2b39919f7d071f4384f8eaba0d99f44b1f
[ "BSD-2-Clause", "MIT" ]
null
null
null
surfactant_example/formulation/tests/test_formulation_data_source.py
force-h2020/force-bdss-plugin-surfactant-example
ba442f2b39919f7d071f4384f8eaba0d99f44b1f
[ "BSD-2-Clause", "MIT" ]
null
null
null
surfactant_example/formulation/tests/test_formulation_data_source.py
force-h2020/force-bdss-plugin-surfactant-example
ba442f2b39919f7d071f4384f8eaba0d99f44b1f
[ "BSD-2-Clause", "MIT" ]
null
null
null
from unittest import TestCase from traits.testing.unittest_tools import UnittestTools from force_bdss.api import DataValue from surfactant_example.surfactant_plugin import SurfactantPlugin from surfactant_example.formulation.formulation_data_source import ( calculate_solvent_conc, MissingIngredientException) fro...
29.55814
71
0.656963
355abb2572ee40967f7056901a3c3292ffff1885
4,047
py
Python
tests/test_web_player.py
dachrisch/spotify_sentiment_classifier
3365d49b3f63e0140b916e05cade7c04c6ee3094
[ "Unlicense" ]
1
2020-05-12T21:38:57.000Z
2020-05-12T21:38:57.000Z
tests/test_web_player.py
dachrisch/spotify_sentiment_classifier
3365d49b3f63e0140b916e05cade7c04c6ee3094
[ "Unlicense" ]
1
2020-05-12T19:51:21.000Z
2020-05-12T19:51:21.000Z
tests/test_web_player.py
dachrisch/spotify_sentiment_classifier
3365d49b3f63e0140b916e05cade7c04c6ee3094
[ "Unlicense" ]
null
null
null
from unittest import TestCase from bs4 import BeautifulSoup from sentiment.classify.sentiment import Sentiment from tests.web_testing_base import TestClientMixin class TestWebPlayer(TestCase, TestClientMixin): def setUp(self): self._setup_testclient() self._setup_logged_in() def test_login...
42.6
119
0.699778
8aaf4c8f72b65d2533d4612642ec4004964b63ea
917
py
Python
mcad/src/dl180_g6_tray_2in.py
nicklasfrahm/hardware
968adb7888fa22fae37cacbd82efb420e37ff148
[ "MIT" ]
4
2021-11-21T16:13:07.000Z
2022-02-23T20:34:14.000Z
mcad/src/dl180_g6_tray_2in.py
nicklasfrahm/hardware
968adb7888fa22fae37cacbd82efb420e37ff148
[ "MIT" ]
1
2022-03-26T13:22:06.000Z
2022-03-26T13:22:06.000Z
mcad/src/dl180_g6_tray_2in.py
nicklasfrahm/libre19
968adb7888fa22fae37cacbd82efb420e37ff148
[ "MIT" ]
null
null
null
""" A 2.5-inch drive tray for the HP Proliant DL180 G6. """ from solid import OpenSCADObject, cube, translate from lib.utils import build, stl, combine print() print("Rendering to STL via OpenSCAD CLI may take several") print("minutes due to STL import! Please be patient!") print() original = stl("vendor/proliant_tra...
20.377778
77
0.664122
3abcec4f0c404d786ddd724310b954f27494c802
706
py
Python
setup.py
joostsijm/python_supremacy1914
a6c8fd9835bbf26fed2adabb2996c92197f362f6
[ "Apache-2.0" ]
2
2020-05-28T06:07:22.000Z
2020-06-05T13:18:42.000Z
setup.py
joostsijm/python_supremacy1914
a6c8fd9835bbf26fed2adabb2996c92197f362f6
[ "Apache-2.0" ]
2
2020-04-22T21:15:36.000Z
2020-05-29T17:48:39.000Z
setup.py
joostsijm/python_supremacy1914
a6c8fd9835bbf26fed2adabb2996c92197f362f6
[ "Apache-2.0" ]
1
2020-05-28T06:07:47.000Z
2020-05-28T06:07:47.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="supremacy1914_wrapper", version="0.1.4", author="Joost Sijm", author_email="joostsijm@gmail.com", description="Supremacy1914 API wrapper in Python", long_description=long_description, ...
28.24
61
0.671388
20110c4e3fe8d8aab7036b566df626525858b64c
13,098
py
Python
webServer/app/PavementPainter.py
sheggen/pavement-painter
88e151f5262e04581e4df5740d06e628cda32aca
[ "MIT" ]
null
null
null
webServer/app/PavementPainter.py
sheggen/pavement-painter
88e151f5262e04581e4df5740d06e628cda32aca
[ "MIT" ]
8
2019-03-27T16:10:11.000Z
2022-03-11T23:53:53.000Z
webServer/app/PavementPainter.py
sheggen/pavement-painter
88e151f5262e04581e4df5740d06e628cda32aca
[ "MIT" ]
null
null
null
from PIL import Image import numpy import time, datetime from app.PCA_9685 import PCA_9685 from app.OBD2 import * import threading import RPi.GPIO as GPIO import sys, os numpy.set_printoptions(threshold=sys.maxsize) # for printing array during testing class PavementPainter(threading.Thread): def __init__(sel...
38.186589
172
0.558864
28d63f8c67a401d7ccace6b35bfa5d0495d7c02e
16,381
py
Python
src/analyze-log.py
slamajakub/visnav-py
872363a8f115ae2dc8966f7c890891a41cb60b16
[ "MIT" ]
null
null
null
src/analyze-log.py
slamajakub/visnav-py
872363a8f115ae2dc8966f7c890891a41cb60b16
[ "MIT" ]
null
null
null
src/analyze-log.py
slamajakub/visnav-py
872363a8f115ae2dc8966f7c890891a41cb60b16
[ "MIT" ]
null
null
null
import sys import csv import math import numpy as np import matplotlib.pyplot as plt from batch1 import get_system_model from missions.didymos import DidymosSystemModel from missions.rosetta import RosettaSystemModel try: from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.gaussian_pro...
41.055138
137
0.4819
92e87e64d736abc4aea7637893ccda59f678f36d
4,281
py
Python
EscapePyPromptLineString/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
EscapePyPromptLineString/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
EscapePyPromptLineString/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' import traceback import time import sys try: from PyQt5.QtWidgets import * from PyQt5.QtCore import * except: try: from PyQt4.QtGui import * from PyQt4.QtCore import * except: from PySide.QtGui import *...
28.164474
91
0.648914
e2c4760638840726cd8e5e8f7fe3bbc850c9981a
698
py
Python
code/taskA/migrations/0001_initial.py
nft-appraiser/nft-appraiser-api
6d6495049851afd3d9bfc6969d0e1c9bc430dc81
[ "MIT" ]
null
null
null
code/taskA/migrations/0001_initial.py
nft-appraiser/nft-appraiser-api
6d6495049851afd3d9bfc6969d0e1c9bc430dc81
[ "MIT" ]
null
null
null
code/taskA/migrations/0001_initial.py
nft-appraiser/nft-appraiser-api
6d6495049851afd3d9bfc6969d0e1c9bc430dc81
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-12-01 02:32 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='TaskA_table', fields=[ ('id', models.BigAut...
27.92
117
0.574499
51ae944c54e6d9c5307d2b5d672967d89497bc50
26,111
py
Python
py_entitymatching/debugblocker/backup_debugblocker.py
dmvieira/py_entitymatching
25b48cf3a60f0cd05f25ffd38b735a461686eff7
[ "BSD-3-Clause" ]
null
null
null
py_entitymatching/debugblocker/backup_debugblocker.py
dmvieira/py_entitymatching
25b48cf3a60f0cd05f25ffd38b735a461686eff7
[ "BSD-3-Clause" ]
null
null
null
py_entitymatching/debugblocker/backup_debugblocker.py
dmvieira/py_entitymatching
25b48cf3a60f0cd05f25ffd38b735a461686eff7
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple import heapq as hq import logging import numpy from operator import attrgetter import pandas as pd from py_entitymatching.utils.validation_helper import validate_object_type import py_entitymatching as em import py_entitymatching.catalog.catalog_manager as cm logger = logging.getLog...
40.357032
102
0.648807
db54fcfcb819c7863f8816485eea8ba0b95be50e
2,165
py
Python
common/src/autogluon/common/utils/pandas_utils.py
taesup-aws/autogluon
51b20c4a18de148b4f06b384e56b102c86727153
[ "Apache-2.0" ]
null
null
null
common/src/autogluon/common/utils/pandas_utils.py
taesup-aws/autogluon
51b20c4a18de148b4f06b384e56b102c86727153
[ "Apache-2.0" ]
null
null
null
common/src/autogluon/common/utils/pandas_utils.py
taesup-aws/autogluon
51b20c4a18de148b4f06b384e56b102c86727153
[ "Apache-2.0" ]
null
null
null
import logging import math from functools import wraps from pandas import DataFrame from ..features.infer_types import get_type_map_raw from ..features.types import R_INT, R_FLOAT, R_CATEGORY logger = logging.getLogger(__name__) def _suspend_logging(func): """hides any logs within the called func that are bel...
41.634615
180
0.703002
acc5521ab856c28a12c8d1f86487836fab5e2b64
4,155
py
Python
ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/version/catalog_version_data.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
33.508065
108
0.611071
589a4ebff241f508f6d4b05646dcc54758230db0
2,485
py
Python
genie/models/utils.py
epfl-dlab/GenIE
62ae6af936c9375c36d3d5ad60401bf579875bd9
[ "MIT" ]
8
2022-02-08T11:12:37.000Z
2022-03-16T08:27:50.000Z
genie/models/utils.py
epfl-dlab/GenIE
62ae6af936c9375c36d3d5ad60401bf579875bd9
[ "MIT" ]
1
2022-03-07T07:36:24.000Z
2022-03-07T20:58:12.000Z
genie/models/utils.py
epfl-dlab/GenIE
62ae6af936c9375c36d3d5ad60401bf579875bd9
[ "MIT" ]
7
2022-02-22T22:48:35.000Z
2022-03-18T05:18:30.000Z
import numpy as np import torch import pickle def label_smoothed_nll_loss( lprobs: torch.Tensor, target: torch.Tensor, target_attention_mask: torch.Tensor, epsilon: float, ignore_index: int = None, reduce: bool = True, ): # target.shape -> batch_size x tgt_seq_length; lprobs.shape -> batch...
34.041096
117
0.655936
9fd0e190a5f9922db8644d601d10fec58678d34a
4,908
py
Python
net/fpn_net_lite_old.py
YoungYoung619/Low-light-scene-augmentation
72a4124dfacbec86835ea9e102bc4679800c0627
[ "Apache-2.0" ]
8
2019-06-11T06:30:38.000Z
2021-11-04T01:59:27.000Z
net/fpn_net_lite_old.py
YoungYoung619/Low-light-scene-augmentation
72a4124dfacbec86835ea9e102bc4679800c0627
[ "Apache-2.0" ]
1
2020-05-28T06:31:17.000Z
2020-05-28T06:31:17.000Z
net/fpn_net_lite_old.py
YoungYoung619/Low-light-scene-augmentation
72a4124dfacbec86835ea9e102bc4679800c0627
[ "Apache-2.0" ]
1
2020-11-16T07:28:06.000Z
2020-11-16T07:28:06.000Z
import tensorflow as tf from net.lite_utils.conv_block import backbone_lite slim = tf.contrib.slim def group_norm(x, G=32, esp=1e-5): # normalize # tranpose: [bs, h, w, c] to [bs, c, h, w] following the paper x = tf.transpose(x, [0, 3, 1, 2]) N, C, H, W = x.get_shape().as_list() G = min(G, C) ...
40.229508
129
0.666259
9b26261a914cf28bf9d214d6691011717bcc892e
972
py
Python
project/urls.py
Kibet1816/Neighbourhood
fcfa7e23910f35085201440a537785c8bff363c9
[ "MIT" ]
null
null
null
project/urls.py
Kibet1816/Neighbourhood
fcfa7e23910f35085201440a537785c8bff363c9
[ "MIT" ]
6
2020-06-05T22:19:07.000Z
2022-03-11T23:55:52.000Z
project/urls.py
Kibet1816/Neighbourhood
fcfa7e23910f35085201440a537785c8bff363c9
[ "MIT" ]
null
null
null
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
36
79
0.693416
680a701631db69d3d7e589284845dfe3cdcaf388
330
py
Python
leapyear.py
SUBHAROOP/Learning-Python
83a28a5e71ed3ab33c1510ba90b62559d241039e
[ "MIT" ]
null
null
null
leapyear.py
SUBHAROOP/Learning-Python
83a28a5e71ed3ab33c1510ba90b62559d241039e
[ "MIT" ]
null
null
null
leapyear.py
SUBHAROOP/Learning-Python
83a28a5e71ed3ab33c1510ba90b62559d241039e
[ "MIT" ]
null
null
null
a=int(input('Enter the Year:')) if (a % 4 ==0): if (a % 100 == 0): if ( a % 400 == 0): print('{0}Leap year'.format(a)) else: print('{0} is not Leap year'.format(a)) else: print('{0} is Leap year'.format(a)) else: print('{0} is not Leap year'.format(a)) ...
25.384615
53
0.448485
f4898e7b9dde1d3b0f675fb1efbac40a3f38500d
3,680
py
Python
huggingface/inferentia/question_answering/model.py
yeahhhhhhhhhh/djl-demo
261b30541a966561fba9a91a3c6f7d5dca1f5e69
[ "Apache-2.0" ]
44
2021-04-21T14:22:39.000Z
2022-03-28T05:43:43.000Z
huggingface/inferentia/question_answering/model.py
yeahhhhhhhhhh/djl-demo
261b30541a966561fba9a91a3c6f7d5dca1f5e69
[ "Apache-2.0" ]
9
2021-04-21T18:23:30.000Z
2022-01-17T05:14:42.000Z
huggingface/inferentia/question_answering/model.py
yeahhhhhhhhhh/djl-demo
261b30541a966561fba9a91a3c6f7d5dca1f5e69
[ "Apache-2.0" ]
22
2021-04-23T02:33:19.000Z
2022-02-23T05:43:38.000Z
#!/usr/bin/env python # # Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the ...
36.435644
111
0.61413
4095094fbb70cfbac18fcc1432f06dc749deb4ff
12,509
py
Python
recognition/scripts/face_detection_node.py
aaramirezd/open_ptrack_v2
2c4c29ee72450f67a9f4ea777d1f4b8e3dad7358
[ "BSD-3-Clause" ]
null
null
null
recognition/scripts/face_detection_node.py
aaramirezd/open_ptrack_v2
2c4c29ee72450f67a9f4ea777d1f4b8e3dad7358
[ "BSD-3-Clause" ]
null
null
null
recognition/scripts/face_detection_node.py
aaramirezd/open_ptrack_v2
2c4c29ee72450f67a9f4ea777d1f4b8e3dad7358
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import cv2 import sys, math import dlib import datetime import numpy import cProfile import multiprocessing import tf import rospy import rospkg import cv_bridge import message_filters from std_msgs.msg import * from sensor_msgs.msg import * from geometry_msgs.msg import * fro...
35.638177
148
0.706371
d93c7a6e502feaef3ac8f8b041dee076c6531e46
576
py
Python
webapp/api/api/migrations/0063_auto_20220606_1107.py
CogStack/MedCATweb
8a0e751769e019502ff0fa4565f21a433a339eb4
[ "Apache-2.0" ]
2
2019-07-18T05:48:49.000Z
2019-07-19T00:27:26.000Z
webapp/api/api/migrations/0063_auto_20220606_1107.py
CogStack/MedCATweb
8a0e751769e019502ff0fa4565f21a433a339eb4
[ "Apache-2.0" ]
null
null
null
webapp/api/api/migrations/0063_auto_20220606_1107.py
CogStack/MedCATweb
8a0e751769e019502ff0fa4565f21a433a339eb4
[ "Apache-2.0" ]
2
2019-07-16T17:07:00.000Z
2019-08-12T14:06:26.000Z
# Generated by Django 2.2.24 on 2022-06-06 11:07 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0062_auto_20220426_1558'), ] operations = [ migrations.AlterField( model_name='conceptdb',...
28.8
212
0.645833
e10b56bb6de8dd0b0934537d2c9fa8097d7fc03d
11,636
py
Python
clients/kratos/python/ory_kratos_client/model/inline_response503.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/ory_kratos_client/model/inline_response503.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
clients/kratos/python/ory_kratos_client/model/inline_response503.py
ory/sdk-generator
958314d130922ad6f20f439b5230141a832231a5
[ "Apache-2.0" ]
null
null
null
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
44.243346
446
0.579151
fb933a0f53f9026bcbba5da216d3b8ee11958120
7,611
py
Python
tests/core/foundation_tests.py
LTD-Beget/cement
e885932583c14037599a2aa8a16d4d8a521364bd
[ "BSD-3-Clause" ]
null
null
null
tests/core/foundation_tests.py
LTD-Beget/cement
e885932583c14037599a2aa8a16d4d8a521364bd
[ "BSD-3-Clause" ]
null
null
null
tests/core/foundation_tests.py
LTD-Beget/cement
e885932583c14037599a2aa8a16d4d8a521364bd
[ "BSD-3-Clause" ]
null
null
null
"""Tests for cement.core.setup.""" import os import sys from cement.core import foundation, exc, backend, config, extension, plugin from cement.core import log, output, handler, hook, arg, controller from cement.utils import test from cement.utils.misc import init_defaults def my_extended_func(): return 'KAPLA' ...
30.444
78
0.615556
8d96e3dec5ee1e8132cd8b11597c398e82e3563a
1,553
py
Python
geoparsing/product.py
sayonkumarsaha/satellite-index-earth-observation-experiement
83c853ef3e94fd01194af6f16eb66fb5ac191942
[ "MIT" ]
null
null
null
geoparsing/product.py
sayonkumarsaha/satellite-index-earth-observation-experiement
83c853ef3e94fd01194af6f16eb66fb5ac191942
[ "MIT" ]
null
null
null
geoparsing/product.py
sayonkumarsaha/satellite-index-earth-observation-experiement
83c853ef3e94fd01194af6f16eb66fb5ac191942
[ "MIT" ]
1
2019-12-09T11:50:54.000Z
2019-12-09T11:50:54.000Z
from os.path import os, join from granule import Granule import time def _substr(s, n, split_string): """ Recursively get string between n-th and (n+1)-th occurence. Useful for getting band information (bandinf) such as polarisation VV, VH, ... """ if n == 0: return s[:s.f...
27.732143
94
0.62009
31c839943dccdf450e5bb93e24e2938b061ef7ad
6,684
py
Python
Tests/Other.py
joel-intito/tm1py
42e59dcdeb70357577c19e974995936b5dbb1131
[ "MIT" ]
null
null
null
Tests/Other.py
joel-intito/tm1py
42e59dcdeb70357577c19e974995936b5dbb1131
[ "MIT" ]
null
null
null
Tests/Other.py
joel-intito/tm1py
42e59dcdeb70357577c19e974995936b5dbb1131
[ "MIT" ]
null
null
null
import configparser from pathlib import Path import random import unittest from base64 import b64encode from TM1py.Exceptions import TM1pyRestException, TM1pyException from TM1py.Objects import MDXView, User from TM1py.Services import TM1Service from TM1py.Utils import Utils config = configparser.ConfigParser() confi...
39.785714
119
0.613106
1452080bb8eb7635db12dfddd182c3413527db9e
4,909
py
Python
screens/game.py
NoPlagiarism/Vk-Melody-Guess
8763a658705df32c1bea8abc71ac18aa45915d70
[ "MIT" ]
null
null
null
screens/game.py
NoPlagiarism/Vk-Melody-Guess
8763a658705df32c1bea8abc71ac18aa45915d70
[ "MIT" ]
null
null
null
screens/game.py
NoPlagiarism/Vk-Melody-Guess
8763a658705df32c1bea8abc71ac18aa45915d70
[ "MIT" ]
null
null
null
from colorsys import hsv_to_rgb from kivy.lang import Builder from kivy.properties import ObjectProperty, StringProperty, ListProperty from kivymd.uix.slider import MDSlider as _MDSlider from kivy.uix.screenmanager import ScreenManager from kivymd.app import MDApp from kivymd.uix.screen import MDScreen from random impo...
27.892045
72
0.598085
1b02a6d0b82db3637171c293b2f99a0c832b023d
23,366
py
Python
catalyst/__main__.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
catalyst/__main__.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
catalyst/__main__.py
erlendve/catalyst
463575bc23c0abd1287f8ec81c4377baabf2b8b8
[ "Apache-2.0" ]
null
null
null
import errno import os from functools import wraps import click import sys import logbook import pandas as pd from catalyst.marketplace.marketplace import Marketplace from six import text_type from catalyst.data import bundles as bundles_module from catalyst.exchange.exchange_bundle import ExchangeBundle from catalys...
26.136465
79
0.617222
52d5399498951b0563f3c6d2105b8a3f42842c3c
3,718
py
Python
electrum/gui/qt/qrcodewidget.py
zcoinofficial/electrum
5fdc234f817aed1d7d4bcd894fafd99972423314
[ "MIT" ]
23
2018-02-19T16:59:23.000Z
2020-09-10T16:58:44.000Z
electrum/gui/qt/qrcodewidget.py
zcoinofficial/electrum
5fdc234f817aed1d7d4bcd894fafd99972423314
[ "MIT" ]
37
2018-03-04T11:59:44.000Z
2020-09-27T19:58:21.000Z
electrum/gui/qt/qrcodewidget.py
zcoinofficial/electrum
5fdc234f817aed1d7d4bcd894fafd99972423314
[ "MIT" ]
12
2018-02-20T01:37:48.000Z
2020-08-06T06:18:42.000Z
import os import qrcode from PyQt5.QtGui import QColor import PyQt5.QtGui as QtGui from PyQt5.QtWidgets import ( QApplication, QVBoxLayout, QTextEdit, QHBoxLayout, QPushButton, QWidget) import electrum_xzc from electrum_xzc.i18n import _ from .util import WindowModalDialog class QRCodeWidget(QWidget): def ...
27.746269
88
0.541689
8cb2f26c5e31b23df06aebf888e591ddb087f953
1,362
py
Python
src/rastervision/run.py
anuragreddygv323/raster-vision
db2bc35f21968618a333cee2f5e86f29e7d56483
[ "Apache-2.0" ]
12
2018-07-31T01:52:00.000Z
2021-04-22T12:43:28.000Z
src/rastervision/run.py
anuragreddygv323/raster-vision
db2bc35f21968618a333cee2f5e86f29e7d56483
[ "Apache-2.0" ]
1
2020-02-03T13:46:43.000Z
2022-03-29T16:53:24.000Z
src/rastervision/run.py
yoninachmany/raster-vision-deepglobe-semseg
14a6495f23bbef0bf7f7c47fb37b856a559b272f
[ "Apache-2.0" ]
11
2018-05-03T10:43:08.000Z
2021-08-16T05:45:29.000Z
""" Execute a sequence of tasks for a run, given a json file with options for that run. Example usage: `python run.py options.json train_model` """ import argparse import json from rastervision.semseg.settings import SEMSEG from rastervision.semseg.run import SemsegRunner from rastervision.tagging.settings import TAG...
30.954545
78
0.684288
f3757c47631c2439507177dc5abad52118784868
275
py
Python
mypy-debugging/mypy_minimal_example.py
mbforbes/rndjam1
3cb8f75a4ad7b2efb98a426caebb0641ddf773c2
[ "MIT" ]
4
2018-06-01T15:59:17.000Z
2021-03-16T13:40:52.000Z
mypy-debugging/mypy_minimal_example.py
mbforbes/rndjam1
3cb8f75a4ad7b2efb98a426caebb0641ddf773c2
[ "MIT" ]
10
2017-10-05T18:19:36.000Z
2019-06-26T18:11:35.000Z
mypy-debugging/mypy_minimal_example.py
mbforbes/rndjam1
3cb8f75a4ad7b2efb98a426caebb0641ddf773c2
[ "MIT" ]
null
null
null
import torch i = torch.IntTensor() f = torch.FloatTensor() reveal_type(i) reveal_type(f) def foo(i: torch.IntTensor, f: torch.FloatTensor) -> None: pass # these behave as expected foo(i, f) foo(1, 2) # these typecheck OK, but I think should error foo(i, i) foo(f, f)
15.277778
58
0.690909
ccd47eb91f9fdf1c7a2e1acb6c30bdd483db5207
10,916
py
Python
example/distill/mnist_distill/train_with_fleet.py
wangxicoding/edl
75d651e72e5297aba2e597588cf958ea336deb4e
[ "Apache-2.0" ]
90
2020-04-21T01:46:10.000Z
2022-02-10T09:09:34.000Z
example/distill/mnist_distill/train_with_fleet.py
wangxicoding/edl
75d651e72e5297aba2e597588cf958ea336deb4e
[ "Apache-2.0" ]
37
2018-03-02T22:41:15.000Z
2020-04-22T16:48:36.000Z
example/distill/mnist_distill/train_with_fleet.py
wangxicoding/edl
75d651e72e5297aba2e597588cf958ea336deb4e
[ "Apache-2.0" ]
34
2018-03-02T23:28:25.000Z
2020-03-25T08:50:29.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
36.265781
81
0.649872
ca24a7060a3a1a862d878ae424b194fa092b02ad
3,741
py
Python
code/evaluate_correction/evaluate.py
JeyDi/Mispelling
e2a91178707532f4b00949bbf37fcd17671f1a08
[ "MIT" ]
1
2019-03-19T23:08:58.000Z
2019-03-19T23:08:58.000Z
code/evaluate_correction/evaluate.py
JeyDi/Mispelling
e2a91178707532f4b00949bbf37fcd17671f1a08
[ "MIT" ]
null
null
null
code/evaluate_correction/evaluate.py
JeyDi/Mispelling
e2a91178707532f4b00949bbf37fcd17671f1a08
[ "MIT" ]
null
null
null
from os import path, listdir from itertools import product from evaluate_correction import evaluate_utility def check(truth,perturbed, corrected): return (is_perturbed(perturbed, truth), is_corrected(perturbed, corrected), is_truth(truth, corrected)) def is_perturbed(truth, perturbed): return int(perturbed !...
31.70339
134
0.662657
673c1874fcf9d63729d953574ddd5c23f00f256b
6,138
py
Python
mmtbx/suitename/suites.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
mmtbx/suitename/suites.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
mmtbx/suitename/suites.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import nested_scopes, generators, division, absolute_import from __future__ import with_statement, print_function import sys, os # Copyright 2021 Richardson Lab at Duke University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complian...
32.823529
95
0.69143
2d87bebab843cb4cf84b592e1ac9db7edf284b79
9,408
py
Python
Server/integrations/duo/DuoExternalAuthenticator.py
rkondratenko/oxAuth
a083722fcefddfc31895b89900ee21999077cf52
[ "MIT" ]
380
2015-01-08T23:28:43.000Z
2022-03-07T20:19:51.000Z
Server/integrations/duo/DuoExternalAuthenticator.py
rkondratenko/oxAuth
a083722fcefddfc31895b89900ee21999077cf52
[ "MIT" ]
1,489
2020-11-06T14:04:47.000Z
2020-11-06T14:30:43.000Z
Server/integrations/duo/DuoExternalAuthenticator.py
HomeMeCEO/oxAuth
e391298e55e34f0f732c7ecd199bffe42289992b
[ "MIT" ]
172
2015-01-10T09:48:21.000Z
2022-02-24T03:01:59.000Z
# oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. # Copyright (c) 2016, Gluu # # Author: Yuriy Movchan # from org.gluu.service.cdi.util import CdiUtil from org.gluu.oxauth.security import Identity from org.gluu.model.custom.script.type.auth import PersonAuthentic...
39.2
144
0.640731
f9aa976e3d82009bb9b99c50cbbb4e2a1b43b9af
2,813
py
Python
lib/core/evaluation.py
lucasstna/HRNet-Facial-Landmark-Detection
0af2745339524ca179f6df277ca8fd5c1ded0586
[ "MIT" ]
null
null
null
lib/core/evaluation.py
lucasstna/HRNet-Facial-Landmark-Detection
0af2745339524ca179f6df277ca8fd5c1ded0586
[ "MIT" ]
null
null
null
lib/core/evaluation.py
lucasstna/HRNet-Facial-Landmark-Detection
0af2745339524ca179f6df277ca8fd5c1ded0586
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Created by Tianheng Cheng(tianhengcheng@gmail.com), Yang Zhao # ------------------------------------------------------------------------------ import math import torch import ...
31.255556
109
0.525062
f2659b46bce9fea62ef2840e73249b2256de04d3
2,032
py
Python
python/grasp_proxy_matlab.py
mgualti/DeepRLManip
6b982a319edae51d9c7c740c3a83fe8ce3a97ca7
[ "MIT" ]
23
2018-10-30T02:34:39.000Z
2022-01-13T09:58:00.000Z
python/grasp_proxy_matlab.py
mgualti/DeepRLManip
6b982a319edae51d9c7c740c3a83fe8ce3a97ca7
[ "MIT" ]
null
null
null
python/grasp_proxy_matlab.py
mgualti/DeepRLManip
6b982a319edae51d9c7c740c3a83fe8ce3a97ca7
[ "MIT" ]
5
2018-11-03T19:56:59.000Z
2020-03-02T08:28:31.000Z
'''Provides an interface to the Matlab grasp detector.''' # python import os # scipy from numpy import array, ascontiguousarray, fromstring, reshape, rollaxis # matlab import matlab import matlab.engine # self import hand_descriptor from hand_descriptor import HandDescriptor class GraspProxyMatlab: '''A class for i...
31.261538
96
0.702756
6052a6a8497ff000c25bfbbbf15b1ef4ca35cc6b
1,569
py
Python
wdreconcile/typematcher.py
rpatil524/openrefine-wikibase
bfdbcf3dccc586c6a4fc5103162d7cfe0f69c15b
[ "MIT" ]
null
null
null
wdreconcile/typematcher.py
rpatil524/openrefine-wikibase
bfdbcf3dccc586c6a4fc5103162d7cfe0f69c15b
[ "MIT" ]
null
null
null
wdreconcile/typematcher.py
rpatil524/openrefine-wikibase
bfdbcf3dccc586c6a4fc5103162d7cfe0f69c15b
[ "MIT" ]
null
null
null
from .utils import to_q from .sparqlwikidata import sparql_wikidata import config from string import Template class TypeMatcher(object): """ Interface that caches the subclasses of parent classes. Cached using Redis sets, with expiration. """ def __init__(self, redis_client): self.r = redi...
29.055556
92
0.636711
cb3daa5d04943181caf328209a3294d59d23ac48
13,463
py
Python
pySPACE/tools/progressbar.py
pyspace/pyspace
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
[ "BSD-3-Clause" ]
32
2015-02-20T09:03:09.000Z
2022-02-25T22:32:52.000Z
pySPACE/tools/progressbar.py
pyspace/pyspace
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
[ "BSD-3-Clause" ]
5
2015-05-18T15:08:40.000Z
2020-03-05T19:18:01.000Z
pySPACE/tools/progressbar.py
pyspace/pyspace
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
[ "BSD-3-Clause" ]
18
2015-09-28T07:16:38.000Z
2021-01-20T13:52:19.000Z
#!/usr/bin/python # -*- coding: iso-8859-1 -*- """Text progressbar library for Python This library provides a text mode progressbar. This is typically used to display the progress of a long running operation, providing a visual clue that processing is underway. The ProgressBar class manages the progress, and the form...
33.573566
91
0.605511
22927fe9b48d1a397dee5837531530424087612d
501
py
Python
3_advanced/chapter18/practice/logarithm.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
4
2021-03-01T00:32:45.000Z
2021-05-21T22:01:52.000Z
3_advanced/chapter18/practice/logarithm.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
29
2020-09-12T22:56:04.000Z
2021-09-25T17:08:42.000Z
3_advanced/chapter18/practice/logarithm.py
code4tomorrow/Python
035b6f5d8fd635a16caaff78bcd3f582663dadc3
[ "MIT" ]
7
2021-02-25T01:50:55.000Z
2022-02-28T00:00:42.000Z
""" Create a recursive method that mirrors how a logarithm works in math. You can have the base by default by ten. You do not have to deal with decimals, just worry about returning integers. Note: Logarithms return the power that you raise a base number to in order to get a number. Ex: logarithm of 9 to base 3 = 2; I...
29.470588
69
0.728543
8e2035638701ed4823e9583e319a0cacf11853e6
575
py
Python
yap.py
pythonista-blitz/unrailed-ai
bd511871234fe50dd8e0c9ab7aaa93d73df37cb0
[ "MIT" ]
1
2021-09-06T00:54:29.000Z
2021-09-06T00:54:29.000Z
yap.py
pythonista-blitz/unrailed-ai
bd511871234fe50dd8e0c9ab7aaa93d73df37cb0
[ "MIT" ]
null
null
null
yap.py
pythonista-blitz/unrailed-ai
bd511871234fe50dd8e0c9ab7aaa93d73df37cb0
[ "MIT" ]
null
null
null
import argparse import os import sys from yapf.yapflib.yapf_api import FormatFile my_parser = argparse.ArgumentParser(description='List the content of a folder') my_parser.add_argument('Path', metavar='path', type=str, help='the path to list') args ...
27.380952
79
0.64
6568b05465221d9776a6583dcae32729b8857807
1,163
py
Python
jawa/attributes/local_variable_type.py
4577/Jawa
23f93020ef6687567e45a9afa09bfd6e0faf6f0a
[ "MIT" ]
1
2021-12-30T10:53:57.000Z
2021-12-30T10:53:57.000Z
jawa/attributes/local_variable_type.py
GiantTreeLP/jawa-fixed
dbdd1cb6ef2439bf6496adef8732775c792036ec
[ "MIT" ]
null
null
null
jawa/attributes/local_variable_type.py
GiantTreeLP/jawa-fixed
dbdd1cb6ef2439bf6496adef8732775c792036ec
[ "MIT" ]
1
2021-01-21T12:17:39.000Z
2021-01-21T12:17:39.000Z
from struct import pack from collections import namedtuple from jawa.attribute import Attribute local_variable_type_entry = namedtuple('local_variable_type_entry', [ 'start_pc', 'length', 'name_index', 'signature_index', 'index' ]) class LocalVariableTypeTableAttribute(Attribute): ADDED_IN ...
24.744681
77
0.599312
b5a8d3e701f86470810edf670a2fe0b2b71b8f41
19,825
py
Python
sdk/python/pulumi_azure_nextgen/batch/v20181201/pool.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/batch/v20181201/pool.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/batch/v20181201/pool.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
59.89426
882
0.70628
328b13e7ae9e98077002fa13aa2707b1720e91fb
1,281
py
Python
cvs_trans.py
SL-RU/Under
31291588e92351c068919e3487ec814f1a1f40e2
[ "MIT" ]
null
null
null
cvs_trans.py
SL-RU/Under
31291588e92351c068919e3487ec814f1a1f40e2
[ "MIT" ]
null
null
null
cvs_trans.py
SL-RU/Under
31291588e92351c068919e3487ec814f1a1f40e2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os, sys lns = list() i = 0 with open("ImportText.csv", encoding='utf-16') as f: for l in f: q = () i+=1 if "\t" in l: q = l.split("\"\t\"") else: q = l.split("\" \"") if len(q) == 1: print(str(i) + ": " + l) ...
19.119403
65
0.360656
d3829f6a2bb888220705b7c273f8e1fea774dfa9
17,484
py
Python
musket_text/preprocessors.py
petrochenko-pavel-a/musket_text
9571b9d554ed66496c911222d319e42242351eb6
[ "MIT" ]
null
null
null
musket_text/preprocessors.py
petrochenko-pavel-a/musket_text
9571b9d554ed66496c911222d319e42242351eb6
[ "MIT" ]
null
null
null
musket_text/preprocessors.py
petrochenko-pavel-a/musket_text
9571b9d554ed66496c911222d319e42242351eb6
[ "MIT" ]
null
null
null
import os import numpy as np from musket_core import utils,preprocessing,context,model,datasets from musket_core.context import get_current_project_data_path from nltk.tokenize import casual_tokenize from musket_core.datasets import DataSet, PredictionItem from musket_core import configloader from musket_core im...
34.015564
147
0.594544
3b0071c71ea85640e2697176ba236b9468ffe6ed
4,428
py
Python
server/board.py
dadrian/blinken-board
994131a9dcda20b9a6af47d0349d55ce8d023ddb
[ "Apache-2.0" ]
null
null
null
server/board.py
dadrian/blinken-board
994131a9dcda20b9a6af47d0349d55ce8d023ddb
[ "Apache-2.0" ]
null
null
null
server/board.py
dadrian/blinken-board
994131a9dcda20b9a6af47d0349d55ce8d023ddb
[ "Apache-2.0" ]
null
null
null
try: import pygame except: pass import psu import socket import struct import logger import time try: from websocket import create_connection except: pass import base64 class Board(object): def __init__(self, size=(600,490), host=('127.0.0.1', 1337), width=57, height=44, use_pygame=True, reconnec...
30.328767
143
0.544941
bfb91d86b3567156505d6eda13201950baecbdd1
526
py
Python
src/hri/src/stt.py
APMMonteiro/european_robotic_league
1a7345bdbdf4a57c434c6fda44b0714c277877a7
[ "BSD-3-Clause-Clear" ]
null
null
null
src/hri/src/stt.py
APMMonteiro/european_robotic_league
1a7345bdbdf4a57c434c6fda44b0714c277877a7
[ "BSD-3-Clause-Clear" ]
null
null
null
src/hri/src/stt.py
APMMonteiro/european_robotic_league
1a7345bdbdf4a57c434c6fda44b0714c277877a7
[ "BSD-3-Clause-Clear" ]
null
null
null
import sounddevice as sd import speech_recognition as sr # initialize the recognizer r = sr.Recognizer() print("Make sure you select the right device (0,1,2...)") print(sr.Microphone.list_microphone_names()) with sr.Microphone(device_index=2,sample_rate = 48000) as source: # read the audio data from the default ...
30.941176
66
0.745247
3bf9e252915de05c15f517fec1ec69d62c6b11fd
7,381
py
Python
qiskit/chemistry/drivers/gaussiand/__init__.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
qiskit/chemistry/drivers/gaussiand/__init__.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
4
2020-11-27T09:34:13.000Z
2021-04-30T21:13:41.000Z
qiskit/chemistry/drivers/gaussiand/__init__.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
40.333333
109
0.732286
19f8e2a49e57190bb385e735affe5a52d0388dc8
4,833
py
Python
frustum_pointnet/configs/dan/parallel/__init__.py
anurag1paul/pseudo_lidar
02faf327efd43c986629d0ea797b058e464c05aa
[ "MIT" ]
1
2020-03-19T21:30:57.000Z
2020-03-19T21:30:57.000Z
frustum_pointnet/configs/dan/parallel/__init__.py
anurag1paul/pseudo_lidar
02faf327efd43c986629d0ea797b058e464c05aa
[ "MIT" ]
null
null
null
frustum_pointnet/configs/dan/parallel/__init__.py
anurag1paul/pseudo_lidar
02faf327efd43c986629d0ea797b058e464c05aa
[ "MIT" ]
1
2022-01-26T03:36:42.000Z
2022-01-26T03:36:42.000Z
import numpy as np import torch import torch.optim as optim from datasets.kitti import FrustumKitti from datasets.vkitti.attributes import vkitti_attributes as vkitti from datasets.vkitti import FrustumVkitti from meters.kitti import MeterFrustumKitti from modules.frustum import FrustumPointDanParallelLoss from evalua...
44.33945
103
0.827023
f679cf4f4c74b5acdba643cf7891714e201c35b0
5,166
py
Python
credit_integration/migrations/0001_initial.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
1
2021-01-12T08:14:10.000Z
2021-01-12T08:14:10.000Z
credit_integration/migrations/0001_initial.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
249
2017-04-18T14:00:13.000Z
2022-03-30T12:18:03.000Z
credit_integration/migrations/0001_initial.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
7
2017-04-18T08:43:54.000Z
2021-07-28T07:29:30.000Z
import credit_integration.enums from django.conf import settings from django.db import migrations, models import django.db.models.deletion import enumfields.fields class Migration(migrations.Migration): initial = True dependencies = [ ("leasing", "0045_move_plotsearch_to_plotsearch_app"), mi...
33.764706
86
0.378242
10a93524c4481be2f255813c9db4b958bd763ec5
966
py
Python
test/exp/build.py
xiyie/yolox
3916c492b987b60e44bb64057696ba945e5557f3
[ "Apache-2.0" ]
1
2021-09-09T07:50:23.000Z
2021-09-09T07:50:23.000Z
test/exp/build.py
xiyie/yolox
3916c492b987b60e44bb64057696ba945e5557f3
[ "Apache-2.0" ]
null
null
null
test/exp/build.py
xiyie/yolox
3916c492b987b60e44bb64057696ba945e5557f3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. import importlib import os import sys def get_exp_by_file(exp_file): try: sys.path.append(os.path.dirname(exp_file)) current_exp = importlib.import_module(os.path.basename(exp_file...
26.108108
88
0.630435
942de13c221f3c0fb342cdc2d263496cc5aba1c6
2,728
py
Python
evmosproto/cosmos/slashing/v1beta1/tx_pb2_grpc.py
hanchon-live/evmosproto
141f336cf027a88c5bf227ab49069dd1cf2e4853
[ "MIT" ]
null
null
null
evmosproto/cosmos/slashing/v1beta1/tx_pb2_grpc.py
hanchon-live/evmosproto
141f336cf027a88c5bf227ab49069dd1cf2e4853
[ "MIT" ]
null
null
null
evmosproto/cosmos/slashing/v1beta1/tx_pb2_grpc.py
hanchon-live/evmosproto
141f336cf027a88c5bf227ab49069dd1cf2e4853
[ "MIT" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from evmosproto.cosmos.slashing.v1beta1 import tx_pb2 as cosmos_dot_slashing_dot_v1beta1_dot_tx__pb2 class MsgStub(object): """Msg defines the slashing Msg...
37.369863
120
0.684751
54819829fd43a66c9bc5baf0a34ef0a3175390ef
5,244
py
Python
tests/backends/test_utils.py
Lord-Elrond/django
178109c1734ccc16386c3e3cbae1465c7a1b8ed8
[ "BSD-3-Clause", "0BSD" ]
61,676
2015-01-01T00:05:13.000Z
2022-03-31T20:37:54.000Z
tests/backends/test_utils.py
Lord-Elrond/django
178109c1734ccc16386c3e3cbae1465c7a1b8ed8
[ "BSD-3-Clause", "0BSD" ]
8,884
2015-01-01T00:12:05.000Z
2022-03-31T19:53:11.000Z
tests/backends/test_utils.py
Lord-Elrond/django
178109c1734ccc16386c3e3cbae1465c7a1b8ed8
[ "BSD-3-Clause", "0BSD" ]
33,143
2015-01-01T02:04:52.000Z
2022-03-31T19:42:46.000Z
"""Tests for django.db.backends.utils""" from decimal import Decimal, Rounded from django.db import NotSupportedError, connection from django.db.backends.utils import ( format_number, split_identifier, split_tzname_delta, truncate_name, ) from django.test import ( SimpleTestCase, TransactionTestCase, skipIfDBF...
48.110092
119
0.646834
e5aa3c48ae61e3a307a3575d1db96a1358904f60
18,037
py
Python
python/ccxt/coinegg.py
caoshitong369/ccxt
e0f183448bbf8f95e84c71e5f185404dabab3955
[ "MIT" ]
3
2020-06-02T10:48:48.000Z
2022-03-12T20:46:01.000Z
python/ccxt/coinegg.py
caoshitong369/ccxt
e0f183448bbf8f95e84c71e5f185404dabab3955
[ "MIT" ]
3
2020-09-08T00:13:39.000Z
2021-05-08T20:05:48.000Z
python/ccxt/coinegg.py
caoshitong369/ccxt
e0f183448bbf8f95e84c71e5f185404dabab3955
[ "MIT" ]
1
2019-11-27T06:36:26.000Z
2019-11-27T06:36:26.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationE...
37.892857
163
0.458225
246212df9cdb90f510ece27b8df35a7fa998ee5a
600
py
Python
full_system/configuration.py
jeiros/BP-Hack
8ecd1ab4edc9541f1d9a575a3a1f9c5ce31c00ce
[ "MIT" ]
1
2019-11-19T14:42:18.000Z
2019-11-19T14:42:18.000Z
full_system/configuration.py
Jspujol/BP-Hack
c5c079e0c1fad5ad04c521d678ec6f02fb5ce6a6
[ "MIT" ]
null
null
null
full_system/configuration.py
Jspujol/BP-Hack
c5c079e0c1fad5ad04c521d678ec6f02fb5ce6a6
[ "MIT" ]
1
2021-12-15T11:40:24.000Z
2021-12-15T11:40:24.000Z
# define two constants, one for the eye aspect ratio to indicate # blink and then a second constant for the number of consecutive # frames the eye must be below the threshold AR_THRESHOLD = {} AR_THRESHOLD['eye'] = AR_THRESHOLD['mouth'] = 0 AR_THRESHOLD['eye'] = 0.17 AR_THRESHOLD['mouth'] = - 0.67 AR_CONSEC_FRAMES = ...
26.086957
64
0.738333
96a87871d682a6a84b3292ed9c6c1db0ec95ce1d
1,004
py
Python
test_readme.py
tarczynskitomek/polski-w-it
088b57278a90c37b3595b6cb4515d2d48b1e0709
[ "Apache-2.0" ]
null
null
null
test_readme.py
tarczynskitomek/polski-w-it
088b57278a90c37b3595b6cb4515d2d48b1e0709
[ "Apache-2.0" ]
null
null
null
test_readme.py
tarczynskitomek/polski-w-it
088b57278a90c37b3595b6cb4515d2d48b1e0709
[ "Apache-2.0" ]
null
null
null
import re import pytest @pytest.fixture def readme(): with open("README.md", "r", encoding="utf-8") as myfile: return [line for line in myfile.readlines() if line[0] == '|'] def english_term(row): return row[1:row[1:].find('|')].strip() @pytest.mark.skip(reason="TODO: skipped after migrating to A...
29.529412
82
0.716135