hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
03363eef7025fa99b4d3764cff3b4ec766405a19
1,429
py
Python
setup.py
crossan007/Meshtastic-python
27c827cf3d42aec9834600b1b61a1681b0c714a9
[ "Apache-2.0" ]
null
null
null
setup.py
crossan007/Meshtastic-python
27c827cf3d42aec9834600b1b61a1681b0c714a9
[ "Apache-2.0" ]
null
null
null
setup.py
crossan007/Meshtastic-python
27c827cf3d42aec9834600b1b61a1681b0c714a9
[ "Apache-2.0" ]
null
null
null
# Note: you shouldn't need to run this script manually. It is run implicitly by the pip3 install command. import pathlib from setuptools import setup # The directory containing this file HERE = pathlib.Path(__file__).parent with open("README.md", "r") as fh: long_description = fh.read() # This call to setup() ...
32.477273
106
0.628411
9caf9f0fa2308af1bd3ec8fa4ade1378d9f156e8
213
py
Python
fintoc/managers/invoices_manager.py
KnowYourselves/fintoc-python
7b61850db6bb029aafd6fbf8e37b46e1188474a9
[ "BSD-3-Clause" ]
80
2020-05-10T13:41:26.000Z
2022-01-14T14:20:40.000Z
fintoc/managers/invoices_manager.py
nmassardot/fintoc-python
5560e1f06ede0ff155d4274d3d8cf91e40e53710
[ "BSD-3-Clause" ]
23
2020-05-27T22:48:06.000Z
2022-01-04T13:40:09.000Z
fintoc/managers/invoices_manager.py
nmassardot/fintoc-python
5560e1f06ede0ff155d4274d3d8cf91e40e53710
[ "BSD-3-Clause" ]
8
2020-09-22T16:13:32.000Z
2021-12-11T19:58:58.000Z
"""Module to hold the invoices manager.""" from fintoc.mixins import ManagerMixin class InvoicesManager(ManagerMixin): """Represents an invoices manager.""" resource = "invoice" methods = ["all"]
17.75
42
0.694836
35d2c9440aa28f81257dfb943be20e3163edfd05
1,072
py
Python
routes/index.py
MatanelAbayof/Wikishield
9cc34e413eb8fd0246555e8df93fe774a4531955
[ "Apache-2.0" ]
1
2020-08-19T10:19:22.000Z
2020-08-19T10:19:22.000Z
routes/index.py
MatanelAbayof/Wikishield
9cc34e413eb8fd0246555e8df93fe774a4531955
[ "Apache-2.0" ]
null
null
null
routes/index.py
MatanelAbayof/Wikishield
9cc34e413eb8fd0246555e8df93fe774a4531955
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint, redirect, render_template index = Blueprint('index', __name__) # ---------------------------------------------------------------------------------------------------- @index.route('/') def homepage(): """ homepage route """ return render_template("homepage.html") # ----...
23.304348
102
0.399254
2dc8c61e3884b41f3677b78b73b90cc2ee5c0ac0
100,699
py
Python
zerver/tests/test_signup.py
rtzll/zulip
b831df8f7fc2f5b89ec998266901ac491d52a7fc
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_signup.py
rtzll/zulip
b831df8f7fc2f5b89ec998266901ac491d52a7fc
[ "Apache-2.0" ]
null
null
null
zerver/tests/test_signup.py
rtzll/zulip
b831df8f7fc2f5b89ec998266901ac491d52a7fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.http import HttpResponse from django.test import TestCase, override_settings from django.utils.timezone import now as timezone_now ...
43.144387
114
0.615676
2658b95c4370ce6c5bbd24abe6c558ae24902a26
18,447
py
Python
statsmodels/nonparametric/kde.py
ginggs/statsmodels
a74a179d2a3267ed992871f8d9ef6c6d86c9b934
[ "BSD-3-Clause" ]
6
2019-12-26T08:34:44.000Z
2021-05-05T03:10:06.000Z
statsmodels/nonparametric/kde.py
ginggs/statsmodels
a74a179d2a3267ed992871f8d9ef6c6d86c9b934
[ "BSD-3-Clause" ]
1
2019-07-29T08:35:08.000Z
2019-07-29T08:35:08.000Z
statsmodels/nonparametric/kde.py
ginggs/statsmodels
a74a179d2a3267ed992871f8d9ef6c6d86c9b934
[ "BSD-3-Clause" ]
4
2020-04-07T00:06:17.000Z
2021-06-17T15:11:36.000Z
""" Univariate Kernel Density Estimators References ---------- Racine, Jeff. (2008) "Nonparametric Econometrics: A Primer," Foundation and Trends in Econometrics: Vol 3: No 1, pp1-88. http://dx.doi.org/10.1561/0800000009 https://en.wikipedia.org/wiki/Kernel_%28statistics%29 Silverman, B.W. Density Estimatio...
33.662409
90
0.596032
e9337abe06d52be9cadfc15c31642a3d078896b6
512
py
Python
quiz_api/quizzes/migrations/0015_auto_20201130_0344.py
vldslv/quiz_api
64e5f0f6fe03a532e21409940ad3890eaab8052a
[ "BSD-3-Clause" ]
null
null
null
quiz_api/quizzes/migrations/0015_auto_20201130_0344.py
vldslv/quiz_api
64e5f0f6fe03a532e21409940ad3890eaab8052a
[ "BSD-3-Clause" ]
null
null
null
quiz_api/quizzes/migrations/0015_auto_20201130_0344.py
vldslv/quiz_api
64e5f0f6fe03a532e21409940ad3890eaab8052a
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.1 on 2020-11-30 00:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('quizzes', '0014_question_answer_type'), ] operations = [ migrations.AlterField( model_name='question', name='answer_...
26.947368
167
0.625
55fbfeb7bbd0d691b5fefb56fba286cb0f4976f1
12,477
py
Python
ramp-frontend/ramp_frontend/tests/test_admin.py
frcaud/ramp-board
3df90e51a4faeb0c03bab5dc13e12311807a618e
[ "BSD-3-Clause" ]
null
null
null
ramp-frontend/ramp_frontend/tests/test_admin.py
frcaud/ramp-board
3df90e51a4faeb0c03bab5dc13e12311807a618e
[ "BSD-3-Clause" ]
null
null
null
ramp-frontend/ramp_frontend/tests/test_admin.py
frcaud/ramp-board
3df90e51a4faeb0c03bab5dc13e12311807a618e
[ "BSD-3-Clause" ]
null
null
null
import re import shutil import pytest from werkzeug.datastructures import ImmutableMultiDict from ramp_utils import generate_flask_config from ramp_utils import read_config from ramp_utils.testing import database_config_template from ramp_utils.testing import ramp_config_template from ramp_database.model import Mod...
37.244776
86
0.636772
cff1dcb38adf56cd273c18181cb3d86cab7ae113
2,330
py
Python
mmdet3d/ops/__init__.py
chence17/fcaf3d
636aaa0410430deedd7bd4979e8c1bc307424a84
[ "MIT" ]
95
2021-12-01T07:32:48.000Z
2022-03-11T07:12:32.000Z
mmdet3d/ops/__init__.py
chence17/fcaf3d
636aaa0410430deedd7bd4979e8c1bc307424a84
[ "MIT" ]
15
2021-12-03T09:56:17.000Z
2022-03-07T13:01:12.000Z
mmdet3d/ops/__init__.py
chence17/fcaf3d
636aaa0410430deedd7bd4979e8c1bc307424a84
[ "MIT" ]
21
2021-12-02T11:07:55.000Z
2022-03-28T15:25:02.000Z
from mmcv.ops import (RoIAlign, SigmoidFocalLoss, get_compiler_version, get_compiling_cuda_version, nms, roi_align, sigmoid_focal_loss) from .ball_query import ball_query from .furthest_point_sample import (Points_Sampler, furthest_point_sample, ...
55.47619
78
0.719742
f99d30348e5cb78a7bec0884dce2dc7bf7cefd05
58
py
Python
scilog/__init__.py
soerenwolfers/scilog
ca66a6a7b8d267c8f2998b2a935b35b8f95b7558
[ "MIT" ]
null
null
null
scilog/__init__.py
soerenwolfers/scilog
ca66a6a7b8d267c8f2998b2a935b35b8f95b7558
[ "MIT" ]
null
null
null
scilog/__init__.py
soerenwolfers/scilog
ca66a6a7b8d267c8f2998b2a935b35b8f95b7558
[ "MIT" ]
null
null
null
from .scilog import record,load,analyze,ConvergencePlotter
58
58
0.87931
69980dc4f75401a67140b78148972f2063a9378d
2,367
py
Python
HypothesisTesting/TurnOnAC.py
teerasitk/DataAnalyticsIOTBootCamp
7b0c6d008fc83136878c56b2bff496e61d5656cb
[ "MIT" ]
null
null
null
HypothesisTesting/TurnOnAC.py
teerasitk/DataAnalyticsIOTBootCamp
7b0c6d008fc83136878c56b2bff496e61d5656cb
[ "MIT" ]
null
null
null
HypothesisTesting/TurnOnAC.py
teerasitk/DataAnalyticsIOTBootCamp
7b0c6d008fc83136878c56b2bff496e61d5656cb
[ "MIT" ]
null
null
null
import pandas as pd from scipy.stats import ttest_1samp, t, sem import matplotlib.pyplot as plt # for plot graph df_temp = pd.read_csv("../Data/NodeTemperature.csv") # Load the csv file df_temp.AbsT = pd.to_datetime(df_temp.AbsT) # convert data-time text into actual datetime list df_temp = df_temp.set_index("AbsT") # ...
31.56
72
0.689058
1b42e848a314b5e75e704039668bdc7f10ace8c8
5,544
py
Python
sdk/python/pulumi_azure_nextgen/resources/v20190701/deployment_at_subscription_scope.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/resources/v20190701/deployment_at_subscription_scope.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/resources/v20190701/deployment_at_subscription_scope.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...
44.352
746
0.670996
4f93a93d3ed5d8846880799f10183542f8fb095e
1,139
py
Python
problems/g4_world/Vrp.py
cprudhom/pycsp3
980927188f4262c9ea48a6534795712f09d731d6
[ "MIT" ]
null
null
null
problems/g4_world/Vrp.py
cprudhom/pycsp3
980927188f4262c9ea48a6534795712f09d731d6
[ "MIT" ]
null
null
null
problems/g4_world/Vrp.py
cprudhom/pycsp3
980927188f4262c9ea48a6534795712f09d731d6
[ "MIT" ]
null
null
null
""" See https://en.wikipedia.org/wiki/Vehicle_routing_problem This model is similar to the one proposed by Jakob Puchinger for the 2009 MiniZinc competition Example of Execution: python3 vrp.py -data=Vrp_P-n16-k8.json """ from pycsp3 import * n, capacity, demand, distances = data # x[i][j] is 1 iff the arc (i,j) ...
31.638889
124
0.646181
dda55d9db2391b520b10c77cc12da9ac70edbb71
634
py
Python
src/manage.py
yurdosii/GroupLinks.api
d07e98dda4afe77912df61bdd639f4640ebecce0
[ "MIT" ]
null
null
null
src/manage.py
yurdosii/GroupLinks.api
d07e98dda4afe77912df61bdd639f4640ebecce0
[ "MIT" ]
null
null
null
src/manage.py
yurdosii/GroupLinks.api
d07e98dda4afe77912df61bdd639f4640ebecce0
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'grouplinks_api.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise...
28.818182
78
0.68612
4306ddd4702969f8ff46459210adfdb6a5aea8b9
2,699
py
Python
pypos/hmm.py
palle-k/pypos
94276cc483aa84031e4f7797494c489ee875b8db
[ "MIT" ]
null
null
null
pypos/hmm.py
palle-k/pypos
94276cc483aa84031e4f7797494c489ee875b8db
[ "MIT" ]
null
null
null
pypos/hmm.py
palle-k/pypos
94276cc483aa84031e4f7797494c489ee875b8db
[ "MIT" ]
null
null
null
import numpy as np from typing import Optional class HMM: def __init__(self, n_states: int, n_emissions: int): self.n_states = n_states self.n_emissions = n_emissions self.transition_prob_: Optional[np.ndarray] = None self.start_prob_: Optional[np.ndarray] = None self.emis...
35.513158
103
0.580956
dc5ab2c5063ac43238ee24f645a151d1d4ab70e8
407
py
Python
src/FFEAT/ffeat/flow/__init__.py
PatrikValkovic/MasterThesis
6e9f3b186541db6c8395ebc96ace7289d01c805b
[ "MIT" ]
null
null
null
src/FFEAT/ffeat/flow/__init__.py
PatrikValkovic/MasterThesis
6e9f3b186541db6c8395ebc96ace7289d01c805b
[ "MIT" ]
null
null
null
src/FFEAT/ffeat/flow/__init__.py
PatrikValkovic/MasterThesis
6e9f3b186541db6c8395ebc96ace7289d01c805b
[ "MIT" ]
null
null
null
############################### # # Created by Patrik Valkovic # 3/9/2021 # ############################### """ Module implementing classes controlling flow of the algorithm. """ from .Lambda import Lambda from .Select import Select from .Sequence import Sequence from .Parallel import Parallel from .EachArg import Each...
22.611111
62
0.665848
1803293cb7139aa137bae64a8995605eb6803c18
4,051
py
Python
detect_secrets_server/storage/s3.py
ekmixon/detect-secrets-server
f2a708fa1a4628a7a93039cae92ef90e8b94d9db
[ "Apache-2.0" ]
110
2018-04-13T02:41:40.000Z
2021-11-08T10:29:57.000Z
detect_secrets_server/storage/s3.py
sthagen/detect-secrets-server
4e71fa7f551cd1c55803a3fa62145285676fcb50
[ "Apache-2.0" ]
50
2018-08-21T10:36:06.000Z
2021-04-13T00:42:05.000Z
detect_secrets_server/storage/s3.py
sthagen/detect-secrets-server
4e71fa7f551cd1c55803a3fa62145285676fcb50
[ "Apache-2.0" ]
40
2018-07-06T22:03:38.000Z
2021-09-09T16:21:32.000Z
import os from .file import FileStorage from .file import FileStorageWithLocalGit from detect_secrets_server.core.usage.s3 import should_enable_s3_options class S3Storage(FileStorage): """For file state management, backed to Amazon S3. See detect_secrets_server.storage.file.FileStorage for the expected ...
32.408
83
0.593434
40967919b46da17147530b5852309a783bd2814d
387
py
Python
2. Programming Fundamentals With Python (May 2021)/01.Basic Syntax, Conditional Statements and Loops/02_number_definer.py
kzborisov/SoftUni
ccb2b8850adc79bfb2652a45124c3ff11183412e
[ "MIT" ]
1
2021-02-07T07:51:12.000Z
2021-02-07T07:51:12.000Z
2. Programming Fundamentals With Python (May 2021)/01.Basic Syntax, Conditional Statements and Loops/02_number_definer.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
2. Programming Fundamentals With Python (May 2021)/01.Basic Syntax, Conditional Statements and Loops/02_number_definer.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
# Task 02. Number Definer num = float(input()) if num == 0: result = 'zero' elif num > 0: result = 'positive' if num < 1: result = 'small ' + result elif num > 1000000: result = 'large ' + result else: result = 'negative' if num > -1: result = 'small ' + result elif...
18.428571
34
0.534884
5971a987a5ac227b07dcd247b25cd28bc4908dd0
7,046
py
Python
flask_pancake/flags.py
NicMul/flask-pancake
f3f898e2d7c22581aa892280a793a8bd0396d072
[ "MIT" ]
null
null
null
flask_pancake/flags.py
NicMul/flask-pancake
f3f898e2d7c22581aa892280a793a8bd0396d072
[ "MIT" ]
null
null
null
flask_pancake/flags.py
NicMul/flask-pancake
f3f898e2d7c22581aa892280a793a8bd0396d072
[ "MIT" ]
null
null
null
from __future__ import annotations import abc import random from typing import TYPE_CHECKING, Dict, Generic, Optional, Tuple, TypeVar from cached_property import cached_property from flask import current_app from .constants import EXTENSION_NAME, RAW_FALSE, RAW_TRUE from .registry import registry if TYPE_CHECKING: ...
33.712919
88
0.628726
c3ba6b7c8ac00df51c9c7f3205362a667a1dbecc
18,982
py
Python
tests/unit/bokeh/core/property/test_dataspec.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2015-01-31T14:42:39.000Z
2015-01-31T14:42:39.000Z
tests/unit/bokeh/core/property/test_dataspec.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2021-05-12T10:14:45.000Z
2021-05-12T10:14:45.000Z
tests/unit/bokeh/core/property/test_dataspec.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2021-03-04T05:23:36.000Z
2021-03-04T05:23:36.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
30.517685
133
0.513961
14246c0db8a46e55191fe8b4f8c495d953645b12
15,529
py
Python
Tuchart/main.py
zhy0313/TuChart
23116c5ac876b11e3434ef67064613dc977dd4c4
[ "MIT" ]
1
2019-03-20T08:27:22.000Z
2019-03-20T08:27:22.000Z
build/lib/Tuchart/main.py
fasiondog/TuChart
23116c5ac876b11e3434ef67064613dc977dd4c4
[ "MIT" ]
null
null
null
build/lib/Tuchart/main.py
fasiondog/TuChart
23116c5ac876b11e3434ef67064613dc977dd4c4
[ "MIT" ]
3
2017-11-27T06:01:57.000Z
2019-03-21T14:53:14.000Z
#-*- coding:utf-8 -*- from __future__ import print_function import os,sys,sip,time from datetime import datetime,timedelta from qtpy.QtWidgets import QTreeWidgetItem,QMenu,QApplication,QAction,QMainWindow from qtpy import QtGui,QtWidgets from qtpy.QtCore import Qt,QUrl,QDate from Graph import graphpage from layout impo...
45.142442
127
0.586902
573e2b8dce3e4e86b7731c5aa1c96bd6798148fa
306
py
Python
test.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
null
null
null
test.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
3
2021-04-29T22:57:09.000Z
2021-05-03T15:32:39.000Z
test.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
1
2021-08-29T09:53:09.000Z
2021-08-29T09:53:09.000Z
from core import file_handling as file_h, driver_handling as driver_h from website_handling import collect_websites as collect websites = file_h.website_reader_cookie_websites() driver = driver_h.webdriver_setup() #idcac_poc.addon_check(driver, websites) collect.generate_success_list(driver, websites)
30.6
69
0.849673
fa69bd7d7c68df58c1e6190ea72750add1635a1f
8,184
py
Python
datanode/src/slippy_util_test.py
airmap/InterUSS-Platform
fa19af360826b4dd7b841013c0c569a4f282919d
[ "Apache-2.0" ]
null
null
null
datanode/src/slippy_util_test.py
airmap/InterUSS-Platform
fa19af360826b4dd7b841013c0c569a4f282919d
[ "Apache-2.0" ]
1
2021-03-26T12:13:17.000Z
2021-03-26T12:13:17.000Z
datanode/src/slippy_util_test.py
isabella232/InterUSS-Platform
fa19af360826b4dd7b841013c0c569a4f282919d
[ "Apache-2.0" ]
2
2019-08-11T20:20:32.000Z
2021-03-26T12:01:43.000Z
"""Test of the InterUSS Platform Data Node slippy utilities. Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless requi...
43.301587
84
0.661901
12663adde6dee25c0714369e6ef31c046edf352b
570
py
Python
django_app/visitas_granada/migrations/0007_auto_20200619_1039.py
AngelValera/SSBW
7bcd1380b2406de7a4850a7e00b1428f2fb5c099
[ "MIT" ]
null
null
null
django_app/visitas_granada/migrations/0007_auto_20200619_1039.py
AngelValera/SSBW
7bcd1380b2406de7a4850a7e00b1428f2fb5c099
[ "MIT" ]
5
2020-06-18T16:30:42.000Z
2022-01-13T02:54:01.000Z
django_app/visitas_granada/migrations/0007_auto_20200619_1039.py
AngelValera/SSBW
7bcd1380b2406de7a4850a7e00b1428f2fb5c099
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-19 08:39 import django.core.validators from django.db import migrations import sorl.thumbnail.fields class Migration(migrations.Migration): dependencies = [ ('visitas_granada', '0006_auto_20200619_1036'), ] operations = [ migrations.AlterField( ...
27.142857
177
0.67193
c9b12faec58d2939adc18b008f7e310703d46457
111,264
py
Python
s/sv221mn.py
byeongal/pefile_ordlookup
9400d24890601e4ec47f3b279b72f4fd9ca1d58d
[ "MIT" ]
null
null
null
s/sv221mn.py
byeongal/pefile_ordlookup
9400d24890601e4ec47f3b279b72f4fd9ca1d58d
[ "MIT" ]
null
null
null
s/sv221mn.py
byeongal/pefile_ordlookup
9400d24890601e4ec47f3b279b72f4fd9ca1d58d
[ "MIT" ]
null
null
null
# md5 : e4d92ee9e51d571e98231351d2b9aa6d # sha1 : f28d4e3190863734ac8a6759692cf3b5c9e210a8 # sha256 : a6939c20ced2c6ac4f4b0eb4294044094ab00c6303133c696ccdfb43d4bc3c16 ord_names = { 20: b'??0Link@@QAE@ABV0@@Z', 21: b'??0Link@@QAE@XZ', 22: b'??0Stack@@QAE@GG@Z', 23: b'??1Stack@@QAE@XZ', 24: b'??4Link...
45.995866
83
0.651442
563582b15d77da5eb881db3a8f1e008b1e1bff8f
120
py
Python
pae/book_edit_bootstrap/django/test/testapp/views.py
wasit7/book_pae
c53cca3342593a2769f398db9bf969515d3de117
[ "MIT" ]
null
null
null
pae/book_edit_bootstrap/django/test/testapp/views.py
wasit7/book_pae
c53cca3342593a2769f398db9bf969515d3de117
[ "MIT" ]
null
null
null
pae/book_edit_bootstrap/django/test/testapp/views.py
wasit7/book_pae
c53cca3342593a2769f398db9bf969515d3de117
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. def homep(request): return render(request, 'homep.html')
24
37
0.775
57edcceceada6f3fd64ff2a1d6a153815c8ff332
1,461
py
Python
vaultup/manifests/auth_method.py
momothereal/vaultup
cab1718f8835ce5d35b8352d32bf2a5528257e39
[ "Apache-2.0" ]
null
null
null
vaultup/manifests/auth_method.py
momothereal/vaultup
cab1718f8835ce5d35b8352d32bf2a5528257e39
[ "Apache-2.0" ]
4
2019-10-03T22:36:56.000Z
2019-10-09T16:12:26.000Z
vaultup/manifests/auth_method.py
momothereal/vaultup
cab1718f8835ce5d35b8352d32bf2a5528257e39
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Optional import hvac from vaultup.manifests import ManifestItem class LdapAuthConfigManifest(ManifestItem): def __init__(self, client: hvac.Client, name: str, data: Dict): super().__init__(data) def convert(self) -> Optional[Dict]: return self.data AUTH_TYPES = {...
28.647059
103
0.62423
1293e34cc58e9a42ae65bd5a9cb06b6214ddb407
15,963
py
Python
ktrain/graph/stellargraph/layer/gcn.py
happy-machine/ktrain
221e7ce91f8cfdc280fc733083e901fcedb9f7e5
[ "MIT" ]
null
null
null
ktrain/graph/stellargraph/layer/gcn.py
happy-machine/ktrain
221e7ce91f8cfdc280fc733083e901fcedb9f7e5
[ "MIT" ]
null
null
null
ktrain/graph/stellargraph/layer/gcn.py
happy-machine/ktrain
221e7ce91f8cfdc280fc733083e901fcedb9f7e5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2018-2019 Data61, CSIRO # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
37.56
153
0.628579
cddc2ce7e577c6022b47652dc49aa070f8a41897
12,539
py
Python
lib/python/bdebuild/meta/repoloadutil.py
apaprocki/bde-tools
74cee6ed6c2de1bbb0d7cb7fdc96b60a37cab434
[ "Apache-2.0" ]
null
null
null
lib/python/bdebuild/meta/repoloadutil.py
apaprocki/bde-tools
74cee6ed6c2de1bbb0d7cb7fdc96b60a37cab434
[ "Apache-2.0" ]
null
null
null
lib/python/bdebuild/meta/repoloadutil.py
apaprocki/bde-tools
74cee6ed6c2de1bbb0d7cb7fdc96b60a37cab434
[ "Apache-2.0" ]
null
null
null
"""Utilities to load parts of a repository. """ import glob import os import re from bdebuild.common import blderror from bdebuild.common import sysutil from bdebuild.meta import repounits from bdebuild.meta import optionsparser def load_package_group(path): """Load a package group. Args: path (str...
32.233933
79
0.598134
e42da0476c04e07a9fc4695b0b963b02986af08d
18,835
py
Python
code/optimizer/optimize_scheduling_routing.py
MiquelFerriol/TwinNet
6b627cd6e2f6bedd7cdbec790a96b19cd634ff69
[ "Apache-2.0" ]
null
null
null
code/optimizer/optimize_scheduling_routing.py
MiquelFerriol/TwinNet
6b627cd6e2f6bedd7cdbec790a96b19cd634ff69
[ "Apache-2.0" ]
null
null
null
code/optimizer/optimize_scheduling_routing.py
MiquelFerriol/TwinNet
6b627cd6e2f6bedd7cdbec790a96b19cd634ff69
[ "Apache-2.0" ]
null
null
null
""" Copyright 2021 Universitat Politècnica de Catalunya 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...
40.074468
116
0.554765
744ee3be090d9ec1b30307fcb2162d1792b1a5af
1,857
py
Python
setup.py
SocioDroid/django-excel-response
8aef53162b79b0b951eca73f642f5d6d0f29507c
[ "Apache-2.0" ]
null
null
null
setup.py
SocioDroid/django-excel-response
8aef53162b79b0b951eca73f642f5d6d0f29507c
[ "Apache-2.0" ]
null
null
null
setup.py
SocioDroid/django-excel-response
8aef53162b79b0b951eca73f642f5d6d0f29507c
[ "Apache-2.0" ]
null
null
null
import os from setuptools import setup # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) with open('README.rst', 'r') as f: README = f.read() with open('VERSION', 'r') as vfile: VERSION = vfile.read().strip() setup( name='django-exc...
33.160714
94
0.620894
1ba5a40dbb20f7fa60a549ebb5de775851386fb9
2,505
py
Python
promort/predictions_manager/models.py
lucalianas/ProMort
63702e1b573025e1f956f7d7a0e829f655e728f9
[ "MIT" ]
3
2016-12-28T08:12:51.000Z
2020-07-08T21:03:48.000Z
promort/predictions_manager/models.py
lucalianas/ProMort
63702e1b573025e1f956f7d7a0e829f655e728f9
[ "MIT" ]
37
2016-11-11T09:57:45.000Z
2022-03-31T16:04:53.000Z
promort/predictions_manager/models.py
lucalianas/ProMort
63702e1b573025e1f956f7d7a0e829f655e728f9
[ "MIT" ]
4
2016-04-22T07:49:40.000Z
2021-09-22T08:09:44.000Z
# Copyright (c) 2021, CRS4 # # 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, distribu...
44.732143
100
0.730539
48fa5839e2f2609fe9da1d82791684963b0917ce
5,222
py
Python
helper/UCR_loader.py
akryeem/dtan
b8251c3d08f36a0a75083cdb00e21aef27e6e44b
[ "MIT" ]
null
null
null
helper/UCR_loader.py
akryeem/dtan
b8251c3d08f36a0a75083cdb00e21aef27e6e44b
[ "MIT" ]
null
null
null
helper/UCR_loader.py
akryeem/dtan
b8251c3d08f36a0a75083cdb00e21aef27e6e44b
[ "MIT" ]
null
null
null
""" Created on Oct 2019 author: ronsha """ # local from helper.util import get_dataset_info import torch from torch.utils.data import TensorDataset, DataLoader from torch.utils.data.sampler import SubsetRandomSampler from tslearn.datasets import UCR_UEA_datasets import numpy as np import os def load_txt_file(data...
34.813333
114
0.67388
3f6b68c29a82962b94c40d4ccfb6f64ddec3ac08
1,173
py
Python
src/model.py
ameya-parab/digit-recognizer
3b1f75f702155a7c5556f521244a29209094498e
[ "MIT" ]
null
null
null
src/model.py
ameya-parab/digit-recognizer
3b1f75f702155a7c5556f521244a29209094498e
[ "MIT" ]
null
null
null
src/model.py
ameya-parab/digit-recognizer
3b1f75f702155a7c5556f521244a29209094498e
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class NeuralNetwork(nn.Module): def __init__(self): super(NeuralNetwork, self).__init__() self.conv1 = nn.Conv2d(in_channels=1, out_channels=32, kernel_size=5, stride=1) self.conv2 = nn.Conv2d(in_channels=32, out_channels=...
27.928571
88
0.623188
3712690d22ea0e83e6f520e9058571758115cc9b
392
py
Python
ch5/performances.map.py
ldmcdaniel/learning_python
63717c397cd75e45a8aef909d4b601466cd6036a
[ "MIT" ]
55
2018-07-04T10:12:15.000Z
2022-03-03T19:51:54.000Z
ch5/performances.map.py
ldmcdaniel/learning_python
63717c397cd75e45a8aef909d4b601466cd6036a
[ "MIT" ]
6
2020-03-24T16:37:46.000Z
2021-06-10T21:04:36.000Z
ch5/performances.map.py
ldmcdaniel/learning_python
63717c397cd75e45a8aef909d4b601466cd6036a
[ "MIT" ]
32
2018-07-10T05:56:31.000Z
2021-09-04T23:19:42.000Z
from time import time mx = 2 * 10 ** 7 t = time() absloop = [] for n in range(mx): absloop.append(abs(n)) print('for loop: {:.4f} s'.format(time() - t)) t = time() abslist = [abs(n) for n in range(mx)] print('list comprehension: {:.4f} s'.format(time() - t)) t = time() absmap = list(map(abs, range(mx))) print('...
19.6
56
0.591837
e9b5f8aa339d2447e0117ff126fda2edac2758fe
1,841
py
Python
AlexaSongBot/__main__.py
victorsilva0292/trTt2Ls
9f8edbee0ffd533b3063a2ad602e226059563b08
[ "MIT" ]
null
null
null
AlexaSongBot/__main__.py
victorsilva0292/trTt2Ls
9f8edbee0ffd533b3063a2ad602e226059563b08
[ "MIT" ]
null
null
null
AlexaSongBot/__main__.py
victorsilva0292/trTt2Ls
9f8edbee0ffd533b3063a2ad602e226059563b08
[ "MIT" ]
null
null
null
# © @Mr_Dark_Prince from config import OWNER_ID from pyrogram.types.bots_and_keyboards import reply_keyboard_markup from AlexaSongBot.modules import * from pyrogram import idle, filters from pyrogram.types import InlineKeyboardMarkup from pyrogram.types import InlineKeyboardButton from AlexaSongBot import app, LOGGER f...
29.693548
118
0.692015
c65c1f244360f9fede69c442aa616805d4baeebf
6,977
py
Python
L1Trigger/L1THGCalUtilities/python/clustering3d.py
eric-moreno/cmssw
3dc2c26f276632ac8357ac7b52675f04649e3903
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
L1Trigger/L1THGCalUtilities/python/clustering3d.py
eric-moreno/cmssw
3dc2c26f276632ac8357ac7b52675f04649e3903
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
L1Trigger/L1THGCalUtilities/python/clustering3d.py
eric-moreno/cmssw
3dc2c26f276632ac8357ac7b52675f04649e3903
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms from L1Trigger.L1THGCal.hgcalBackEndLayer2Producer_cfi import distance_C3d_params, \ dbscan_C3d_params, \ histoMax_C3d_params, \ ...
58.141667
128
0.638383
bee8dcadbb906427555777915e95f1a0a4e1debf
3,403
py
Python
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/matplotlib/_pylab_helpers.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/matplotlib/_pylab_helpers.py
mattl1598/testing
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
1
2018-04-15T22:59:15.000Z
2018-04-15T22:59:15.000Z
editing files/Portable Python 3.2.5.1/App/Lib/site-packages/matplotlib/_pylab_helpers.py
mattl1598/Project-Mochachino
cd8124773b83a07301c507ffbb9ccaafbfe7a274
[ "Unlicense" ]
null
null
null
""" Manage figures for pyplot interface. """ import sys, gc import atexit import traceback def error_msg(msg): print(msg, file=sys.stderr) class Gcf(object): """ Singleton to manage a set of integer-numbered figures. This class is never instantiated; it consists of two class attributes (a lis...
24.307143
66
0.57273
03af6247b105ea71c73924af798634c33d945649
258
py
Python
CCC/CCC_11_S2_Multiple_Choice.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
null
null
null
CCC/CCC_11_S2_Multiple_Choice.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
1
2021-10-14T18:26:56.000Z
2021-10-14T18:26:56.000Z
CCC/CCC_11_S2_Multiple_Choice.py
Togohogo1/pg
ee3c36acde47769c66ee13a227762ee677591375
[ "MIT" ]
1
2021-08-06T03:39:55.000Z
2021-08-06T03:39:55.000Z
count = 0 wrong = [] correct = [] N = int(input()) for i in range(N): ans = input() wrong.append(ans) for i in range(N): ans = input() correct.append(ans) for i in range(N): if wrong[i] == correct[i]: count += 1 print(count)
12.9
30
0.546512
a3660768f17eff379c6ef4dc1b50f3637302b130
4,915
py
Python
docker_compose_postgres/__init__.py
d10xa/docker-compose-postgres
435c9933949b47968d852f9010e910517af10894
[ "MIT" ]
null
null
null
docker_compose_postgres/__init__.py
d10xa/docker-compose-postgres
435c9933949b47968d852f9010e910517af10894
[ "MIT" ]
null
null
null
docker_compose_postgres/__init__.py
d10xa/docker-compose-postgres
435c9933949b47968d852f9010e910517af10894
[ "MIT" ]
null
null
null
__version__ = '0.0.2' from subprocess import call, list2cmdline import yaml import argparse import os import re REGEX_ENV_WITH_DEFAULT = re.compile(r'\${(.+):-(.+)}') def run_postgres( file, command, disable_tty, docker_compose_command, print_command, env_postgres_us...
28.74269
79
0.601831
52f08f8c5aaf5f9422b54a3505fb2933d8315224
5,349
py
Python
behavioral_cloning/model.py
bartekx43/AlphaTTT
a01c38833a7f841483146bebeef73323d527d812
[ "MIT" ]
3
2021-05-23T23:55:03.000Z
2021-07-09T16:01:10.000Z
behavioral_cloning/model.py
bartekx43/AlphaTTT
a01c38833a7f841483146bebeef73323d527d812
[ "MIT" ]
null
null
null
behavioral_cloning/model.py
bartekx43/AlphaTTT
a01c38833a7f841483146bebeef73323d527d812
[ "MIT" ]
2
2021-07-09T11:44:09.000Z
2021-07-11T12:32:58.000Z
import os import numpy as np from copy import deepcopy from collections import deque import torch from torch import nn from torch.nn import functional as F from torch.optim import AdamW torch.manual_seed(80085) np.random.seed(80085) def softXEnt (inp, target): # temporary logprobs = torch.log(inp) cross_entropy ...
31.650888
117
0.672088
1a3fa20a45029a1209f44b58932498dc03d8d3e7
677
py
Python
face_recognition.py
M-inghsin/oss-enterprise
0f65b71ff356e6dcd82486a1226c7fd39aa4a1af
[ "CC-BY-4.0" ]
null
null
null
face_recognition.py
M-inghsin/oss-enterprise
0f65b71ff356e6dcd82486a1226c7fd39aa4a1af
[ "CC-BY-4.0" ]
1
2020-12-09T17:37:20.000Z
2020-12-09T17:37:21.000Z
face_recognition.py
M-inghsin/oss-enterprise
0f65b71ff356e6dcd82486a1226c7fd39aa4a1af
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python #-*- coding: utf-8 -*- # Library: pip3 install opencv-python import cv2 # Load the cascade # /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/data/haarcascade_frontalface_alt.xml face_cascade = cv2.CascadeClassifier('face_detector.xml') # Read the input image img = ...
28.208333
120
0.714919
ebbcf514ad4e4dc88e9cba7bb13fdb54c14fdf71
1,676
py
Python
First_course/ex3_1.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
First_course/ex3_1.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
First_course/ex3_1.py
laetrid/learning
b28312c34db2118fb7d5691834b8f7e628117642
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python ''' Learning Python Class#3 I. Create an IP address converter (dotted decimal to binary). This will be similar to what we did in class2 except: A. Make the IP address a command-line argument instead of prompting the user for it. ./binary_converter.py 10.88.17.23 B. Simplify ...
28.896552
95
0.665871
7118af8c382513632fb098b4eb6fcffede74c371
68,558
py
Python
numpy/core/tests/test_regression.py
mdboom/numpy
7ae0206c4b5685a3b0abd1865850e0c92aeb7389
[ "BSD-3-Clause" ]
3
2015-06-25T20:50:18.000Z
2021-06-11T22:09:02.000Z
numpy/core/tests/test_regression.py
mdboom/numpy
7ae0206c4b5685a3b0abd1865850e0c92aeb7389
[ "BSD-3-Clause" ]
null
null
null
numpy/core/tests/test_regression.py
mdboom/numpy
7ae0206c4b5685a3b0abd1865850e0c92aeb7389
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, absolute_import, print_function import pickle import sys import platform import gc import copy import warnings import tempfile from os import path from io import BytesIO import numpy as np from numpy.testing import ( run_module_suite, TestCase, assert_, assert_equal, a...
35.894241
92
0.544313
3803559bbc0dd9666aba6a4127cfc243449e0567
18,826
py
Python
app/gws/spec/generator/parser.py
gbd-consult/gbd-websuite
7212f41081c04614fdb4641e902d4de3424da8c5
[ "Apache-2.0" ]
3
2020-07-24T10:10:18.000Z
2022-03-16T10:22:04.000Z
app/gws/spec/generator/parser.py
gbd-consult/gbd-websuite
7212f41081c04614fdb4641e902d4de3424da8c5
[ "Apache-2.0" ]
28
2020-03-03T17:35:58.000Z
2021-07-12T12:05:47.000Z
app/gws/spec/generator/parser.py
gbd-consult/gbd-websuite
7212f41081c04614fdb4641e902d4de3424da8c5
[ "Apache-2.0" ]
1
2021-02-22T14:32:10.000Z
2021-02-22T14:32:10.000Z
"""Parse py source files and create a list of units of interest""" import ast from typing import Dict, List, cast from . import base def parse(state: base.ParserState, meta): for b in base.BUILTINS: state.types[b] = base.TAtom(name=b) state.types['TUncheckedEnum'] = base.TAtom(name='str') for ...
30.218299
105
0.537289
4e09750451d64d4910c72f9a08e8e6d5dbdf5222
24,222
py
Python
layers/attention.py
sdadas/yast
f9cd471ae3c915acb8111dd85a53acc72348c355
[ "Apache-2.0" ]
2
2018-12-18T03:12:13.000Z
2018-12-31T18:03:27.000Z
layers/attention.py
sdadas/yast
f9cd471ae3c915acb8111dd85a53acc72348c355
[ "Apache-2.0" ]
6
2020-01-28T21:59:18.000Z
2022-02-09T23:29:00.000Z
layers/attention.py
sdadas/yast
f9cd471ae3c915acb8111dd85a53acc72348c355
[ "Apache-2.0" ]
1
2020-07-07T18:25:15.000Z
2020-07-07T18:25:15.000Z
from keras import initializers, regularizers, constraints, activations from keras.engine import Layer, InputSpec from keras import backend as K from keras.layers.recurrent import Recurrent """ Keras attention layers created by Christos Baziotis (https://github.com/cbaziotis) - see https://github.com/keras-team/keras/...
42.198606
118
0.553175
71dd6824844c89126d53e168a3cd7f9ab284bfed
489
py
Python
test/oslo_test/module1.py
peter-wangxu/python_play
5774c192a49ea0c35504697dd75e1c2c8e366097
[ "Apache-2.0" ]
null
null
null
test/oslo_test/module1.py
peter-wangxu/python_play
5774c192a49ea0c35504697dd75e1c2c8e366097
[ "Apache-2.0" ]
null
null
null
test/oslo_test/module1.py
peter-wangxu/python_play
5774c192a49ea0c35504697dd75e1c2c8e366097
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from oslo_config import cfg import test1.module2 opt_group = cfg.OptGroup(name='simple', title='A Simple Example') simple_opts = [ cfg.BoolOpt('enable', default=False, help=('True enables, False disables.')) ] CONF = cfg.CONF CONF.r...
25.736842
55
0.689162
40450ac93cfa72bfb0f5daf12a88f7e6e2d8382b
369
py
Python
ros/build/waypoint_updater/catkin_generated/pkg.develspace.context.pc.py
bryantravissmith/SelfDrivingCar-ND-Capstone
58147b0b3977a918b2cf9f182c315c8dd7c041e2
[ "MIT" ]
null
null
null
ros/build/waypoint_updater/catkin_generated/pkg.develspace.context.pc.py
bryantravissmith/SelfDrivingCar-ND-Capstone
58147b0b3977a918b2cf9f182c315c8dd7c041e2
[ "MIT" ]
11
2020-01-28T23:13:19.000Z
2022-03-12T00:10:25.000Z
ros/build/waypoint_updater/catkin_generated/pkg.develspace.context.pc.py
bryantravissmith/SelfDrivingCar-ND-Capstone
58147b0b3977a918b2cf9f182c315c8dd7c041e2
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "waypoint_updater" PROJECT_SPACE_DIR =...
41
68
0.704607
02442bdca847aaefa807753df4b42bb874f69a5e
1,066
py
Python
ch08/main.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch08/main.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
ch08/main.py
stoneflyop1/py_machine_learning
18fd635d312f957ca4fcc23d856a1bcd4cf95f48
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_csv('../data/movie_data.csv') import cleandata df['review'] = df['review'].apply(cleandata.preprocessor) # grid search, 非常耗时 #import gridlearn #gridlearn.learn(df) from sklearn.feature_extraction.text import HashingVectorizer from sklearn.linear_model import SGDClassifier import tok...
28.810811
68
0.752345
facb76938b3e6e7a2c3b52ab8531fee900bfdcdc
563
py
Python
timeline/utils.py
vstasn/django-shop-schedule
e48ae78454d0e0687b96c07e4877ffacf466a8fd
[ "MIT" ]
null
null
null
timeline/utils.py
vstasn/django-shop-schedule
e48ae78454d0e0687b96c07e4877ffacf466a8fd
[ "MIT" ]
null
null
null
timeline/utils.py
vstasn/django-shop-schedule
e48ae78454d0e0687b96c07e4877ffacf466a8fd
[ "MIT" ]
null
null
null
import datetime def format_time(day_of_week, time): return "{}{:02d}{:02d}".format(day_of_week, time.hour, time.minute) def timetostring(rtime): full_date = datetime.datetime.strptime(str(rtime).zfill(5), "%w%H%M") return "{:02d}.{:02d}".format(full_date.hour, full_date.minute) def subminutes(time1, m...
28.15
75
0.714032
2280b99146eb01e95ad8e96290b2e4c19fb52266
27,007
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/operations/_application_security_groups_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/operations/_application_security_groups_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/operations/_application_security_groups_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.828413
219
0.671641
cfc63bd788de2e38d7c092aeaea61a78411f1b65
1,538
py
Python
webdriver/tests/get_element_tag_name/get.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
webdriver/tests/get_element_tag_name/get.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
7,642
2018-05-28T09:38:03.000Z
2022-03-31T20:55:48.000Z
webdriver/tests/get_element_tag_name/get.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
from tests.support.asserts import assert_error, assert_success def get_element_tag_name(session, element_id): return session.transport.send( "GET", "session/{session_id}/element/{element_id}/name".format( session_id=session.session_id, element_id=element_id)) def test_no_top_brow...
32.041667
71
0.735371
a40ff9efe418cce820c11d5dc24f49f4889c8ed2
5,413
py
Python
skbeam/core/tests/test_feature.py
licode/scikit-beam
8100cc9525a5be4ab1e48f6a6b2b7d33302db27e
[ "BSD-3-Clause" ]
1
2018-10-12T02:01:02.000Z
2018-10-12T02:01:02.000Z
skbeam/core/tests/test_feature.py
licode/scikit-beam
8100cc9525a5be4ab1e48f6a6b2b7d33302db27e
[ "BSD-3-Clause" ]
null
null
null
skbeam/core/tests/test_feature.py
licode/scikit-beam
8100cc9525a5be4ab1e48f6a6b2b7d33302db27e
[ "BSD-3-Clause" ]
null
null
null
# ###################################################################### # Copyright (c) 2014, Brookhaven Science Associates, Brookhaven # # National Laboratory. All rights reserved. # # # # @author: Li Li (lili@bnl.g...
45.487395
75
0.55145
6f0d3698deb7ee9a157cd4e7181c16f80f38ff6b
9,888
py
Python
nemo/collections/asr/modules/conformer_encoder.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
1
2021-06-19T19:27:19.000Z
2021-06-19T19:27:19.000Z
nemo/collections/asr/modules/conformer_encoder.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
nemo/collections/asr/modules/conformer_encoder.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. 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...
38.625
107
0.63218
bb1152506c891b434268f050de6322a772d56712
3,324
py
Python
troposphere/frauddetector.py
pierretr/troposphere
1bd6a010a3132aa3436ffe6b892f352876face4b
[ "BSD-2-Clause" ]
4,573
2015-01-02T20:31:04.000Z
2022-03-31T17:15:32.000Z
troposphere/frauddetector.py
pierretr/troposphere
1bd6a010a3132aa3436ffe6b892f352876face4b
[ "BSD-2-Clause" ]
1,730
2015-01-02T19:24:47.000Z
2022-03-31T23:22:52.000Z
troposphere/frauddetector.py
pierretr/troposphere
1bd6a010a3132aa3436ffe6b892f352876face4b
[ "BSD-2-Clause" ]
1,753
2015-01-01T01:24:12.000Z
2022-03-27T05:36:17.000Z
# Copyright (c) 2012-2021, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. # # *** Do not modify - this file is autogenerated *** # Resource specification version: 39.1.0 from troposphere import Tags from . import AWSObject, AWSProperty from .validators import boolean class ...
25.181818
52
0.529483
875a975855ead45fe0e94fa9e0990fe0ef22e926
6,326
py
Python
kubernetes/client/models/v1_node_list.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_node_list.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_node_list.py
iguazio/python
c2684bb479d44a49a2010ec4ede5ffa7b17349dd
[ "Apache-2.0" ]
1
2019-01-10T11:13:52.000Z
2019-01-10T11:13:52.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.13.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
29.839623
281
0.594689
2ac3e7213fda0c3738565b8c92f155a8d809a1ae
2,378
py
Python
arithmetic_analysis/in_static_equilibrium.py
NISH1001/Python
7a9b3c7292cbd71fdc7723f449b9bbcbefbf9747
[ "MIT" ]
6
2022-03-25T06:41:39.000Z
2022-03-28T17:26:42.000Z
arithmetic_analysis/in_static_equilibrium.py
NISH1001/Python
7a9b3c7292cbd71fdc7723f449b9bbcbefbf9747
[ "MIT" ]
33
2022-02-19T19:41:47.000Z
2022-02-24T20:53:39.000Z
arithmetic_analysis/in_static_equilibrium.py
NISH1001/Python
7a9b3c7292cbd71fdc7723f449b9bbcbefbf9747
[ "MIT" ]
3
2022-02-21T21:00:29.000Z
2022-02-24T13:48:21.000Z
""" Checks if a system of forces is in static equilibrium. """ from __future__ import annotations from numpy import array, cos, cross, ndarray, radians, sin def polar_force( magnitude: float, angle: float, radian_mode: bool = False ) -> list[float]: """ Resolves force along rectangular compon...
28.650602
87
0.549201
1f4948688b1ebb59a7eefb01f83d63c9f3d1ff74
58
py
Python
tests/source/test_18.py
DragosUnguru/PyPP-Byterun
2cbd7c875e7578e38706e48c2e38e0f5abfe6662
[ "MIT" ]
1
2020-02-16T01:45:57.000Z
2020-02-16T01:45:57.000Z
tests/source/test_18.py
DragosUnguru/PyPP-Byterun
2cbd7c875e7578e38706e48c2e38e0f5abfe6662
[ "MIT" ]
null
null
null
tests/source/test_18.py
DragosUnguru/PyPP-Byterun
2cbd7c875e7578e38706e48c2e38e0f5abfe6662
[ "MIT" ]
null
null
null
def main(): a = 3 b = 10 c = a % b c = 15 b = c % a
7.25
11
0.362069
4a2baa226668353cf0da570460bd3481f6306c5b
6,520
py
Python
mds/providers.py
hdemma/mds-provider
f50b79b686cbb4631e5d4b241a0fe1a6336d2f8d
[ "MIT" ]
17
2018-09-21T00:46:09.000Z
2021-09-29T13:26:22.000Z
mds/providers.py
hdemma/mds-provider
f50b79b686cbb4631e5d4b241a0fe1a6336d2f8d
[ "MIT" ]
56
2018-09-20T18:02:12.000Z
2020-05-21T07:41:28.000Z
mds/providers.py
hdemma/mds-provider
f50b79b686cbb4631e5d4b241a0fe1a6336d2f8d
[ "MIT" ]
22
2018-09-20T23:53:26.000Z
2021-06-07T19:00:41.000Z
""" Work with Providers from the registry. """ import csv import pathlib import uuid import requests import mds.github from .schemas import STATUS_CHANGES, TRIPS, EVENTS, VEHICLES from .versions import Version class Provider(): """ A simple model for an entry in a Provider registry. """ def __init_...
33.096447
109
0.578681
a2f1bd3eb2a46babe18ad78a473d78638f160382
277,100
py
Python
sympy/solvers/ode/ode.py
mijo2/sympy
8a6beee32556d42c6d0b1c1687681b3b2cfed9b9
[ "BSD-3-Clause" ]
1
2020-12-26T05:30:08.000Z
2020-12-26T05:30:08.000Z
sympy/solvers/ode/ode.py
mijo2/sympy
8a6beee32556d42c6d0b1c1687681b3b2cfed9b9
[ "BSD-3-Clause" ]
null
null
null
sympy/solvers/ode/ode.py
mijo2/sympy
8a6beee32556d42c6d0b1c1687681b3b2cfed9b9
[ "BSD-3-Clause" ]
null
null
null
r""" This module contains :py:meth:`~sympy.solvers.ode.dsolve` and different helper functions that it uses. :py:meth:`~sympy.solvers.ode.dsolve` solves ordinary differential equations. See the docstring on the various functions for their uses. Note that partial differential equations support is in ``pde.py``. Note t...
39.039166
256
0.560834
7a5115d8cc0dc7569d64dd2bc9cef714afccc648
10,560
py
Python
tests/monte_carlo_test.py
DarrenZhang01/Neural_Tangents_TensorFlow
2fd360c8b1b8c9106044034f6a8b5c2734db9c3d
[ "Apache-2.0" ]
4
2020-12-25T17:37:13.000Z
2022-01-03T17:00:23.000Z
tests/monte_carlo_test.py
DarrenZhang01/TensorFlow_GSoC
2fd360c8b1b8c9106044034f6a8b5c2734db9c3d
[ "Apache-2.0" ]
33
2020-07-18T18:57:54.000Z
2020-08-17T13:58:46.000Z
tests/monte_carlo_test.py
DarrenZhang01/Neural_Tangents_TensorFlow
2fd360c8b1b8c9106044034f6a8b5c2734db9c3d
[ "Apache-2.0" ]
1
2021-08-16T19:00:06.000Z
2021-08-16T19:00:06.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
39.550562
91
0.61108
8a70aa657e21622afe49b2fe1e53c11166610e76
2,443
py
Python
test/asr-test.py
format37/vosk-api-gpu
05e5130b6deea320fe2967937de5006a7298f024
[ "Apache-2.0" ]
null
null
null
test/asr-test.py
format37/vosk-api-gpu
05e5130b6deea320fe2967937de5006a7298f024
[ "Apache-2.0" ]
null
null
null
test/asr-test.py
format37/vosk-api-gpu
05e5130b6deea320fe2967937de5006a7298f024
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # https://raw.githubusercontent.com/alphacep/vosk-server/master/client-samples/python/asr-test.py import asyncio import websockets import sys import os import datetime import pickle import json if len(sys.argv) != 4: print('Wrong parameters count. Please pass:') print('1. Count of file...
30.5375
97
0.496521
a634cfd7782fae44d40c51c590c50cf7b60b9819
1,498
py
Python
tests/data/expected/openapi/remote_ref/body_and_parameters/main.py
sondrelg/fastapi-code-generator
6080b31b18bcf34708b821f9de709af77c05592b
[ "MIT" ]
null
null
null
tests/data/expected/openapi/remote_ref/body_and_parameters/main.py
sondrelg/fastapi-code-generator
6080b31b18bcf34708b821f9de709af77c05592b
[ "MIT" ]
null
null
null
tests/data/expected/openapi/remote_ref/body_and_parameters/main.py
sondrelg/fastapi-code-generator
6080b31b18bcf34708b821f9de709af77c05592b
[ "MIT" ]
null
null
null
# generated by fastapi-codegen: # filename: body_and_parameters.yaml # timestamp: 2020-06-19T00:00:00+00:00 from __future__ import annotations from typing import List, Optional from fastapi import FastAPI, Query from .models import Pet, PetForm app = FastAPI(version="1.0.0", title="Swagger Petstore", license=...
19.973333
84
0.626168
a16847bb3ecd913304f793ad4e7cac041465b05c
6,981
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_09_01/aio/operations/_metrics_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_09_01/aio/operations/_metrics_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_09_01/aio/operations/_metrics_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
51.711111
133
0.655493
3021df6211382bc8814047a52bc9ca3af7e7ffd4
13,001
py
Python
browbeat/elastic.py
jsitnicki/browbeat
f5f9dcef2375a28fed8cc97f973eeecabd2114b7
[ "Apache-2.0" ]
null
null
null
browbeat/elastic.py
jsitnicki/browbeat
f5f9dcef2375a28fed8cc97f973eeecabd2114b7
[ "Apache-2.0" ]
null
null
null
browbeat/elastic.py
jsitnicki/browbeat
f5f9dcef2375a28fed8cc97f973eeecabd2114b7
[ "Apache-2.0" ]
1
2019-12-01T14:35:28.000Z
2019-12-01T14:35:28.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed ...
41.404459
98
0.474117
16998aafe3ee63cf494d30333664fff295995324
2,675
py
Python
pkg/main.py
bruce30262/idapkg
5d6af9bd59c5dc886d68335119fae41491f06ea7
[ "MIT" ]
125
2019-04-04T22:54:53.000Z
2021-12-15T02:13:12.000Z
pkg/main.py
bruce30262/idapkg
5d6af9bd59c5dc886d68335119fae41491f06ea7
[ "MIT" ]
19
2019-04-02T15:56:37.000Z
2022-03-17T09:12:52.000Z
pkg/main.py
Jinmo/pm
5d6af9bd59c5dc886d68335119fae41491f06ea7
[ "MIT" ]
14
2019-05-29T17:31:08.000Z
2021-09-26T01:34:42.000Z
import os import ida_diskio from . import __version__ from .config import g from .logger import getLogger from .package import LocalPackage from .virtualenv_utils import prepare_virtualenv log = getLogger(__name__) RC = b""" _idapkg_basedir = os.path.expanduser(os.path.join('~', 'idapkg')) def init_idapkg(basedir)...
27.864583
81
0.608224
bc6555ffc0e998f2ec4e2961a4b8599793b282da
1,119
py
Python
tests/test_cython.py
Psycojoker/uvloop
03487c80a508ea92e66f976fa196e64514894205
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_cython.py
Psycojoker/uvloop
03487c80a508ea92e66f976fa196e64514894205
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_cython.py
Psycojoker/uvloop
03487c80a508ea92e66f976fa196e64514894205
[ "Apache-2.0", "MIT" ]
1
2019-09-24T18:25:43.000Z
2019-09-24T18:25:43.000Z
import asyncio from uvloop._testbase import UVTestCase class TestCythonIntegration(UVTestCase): def test_cython_coro_is_coroutine(self): from uvloop.loop import _test_coroutine_1 from asyncio.coroutines import _format_coroutine coro = _test_coroutine_1() self.assertTrue( ...
33.909091
79
0.691689
c9076aae20a1309d440fe81fd01cd897728b6782
87,564
py
Python
modules/templates/RLPPTM/helpers.py
armin11/eden
70834282bc1dee7d1bc00ea617c384755f3bf806
[ "MIT" ]
1
2021-08-11T13:52:57.000Z
2021-08-11T13:52:57.000Z
modules/templates/RLPPTM/helpers.py
armin11/eden
70834282bc1dee7d1bc00ea617c384755f3bf806
[ "MIT" ]
1
2021-07-19T05:05:48.000Z
2021-07-19T05:05:48.000Z
modules/templates/RLPPTM/helpers.py
armin11/eden
70834282bc1dee7d1bc00ea617c384755f3bf806
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Helper functions and classes for RLPPTM template @license: MIT """ import json from gluon import current, Field, URL, \ CRYPT, IS_EMAIL, IS_IN_SET, IS_LOWER, IS_NOT_IN_DB, \ SQLFORM, A, DIV, H4, H5, I, INPUT, LI, P, SPAN, TABLE, TD, TH, TR, UL ...
35.624085
100
0.464814
ca5eb1a819bdf28fdc5cb54fe4883800ea5e8c8d
39,327
py
Python
PSHandler.py
l0gan/PoshC2
1012ff5684e9a0f7811bf76fd04f43ccd7649e3a
[ "BSD-3-Clause" ]
1
2020-06-27T00:34:07.000Z
2020-06-27T00:34:07.000Z
PSHandler.py
TheWover/PoshC2
ef33808a3f0c4473a4a238518551997463e31e53
[ "BSD-3-Clause" ]
null
null
null
PSHandler.py
TheWover/PoshC2
ef33808a3f0c4473a4a238518551997463e31e53
[ "BSD-3-Clause" ]
null
null
null
import base64, re, traceback, os, sys from Alias import ps_alias from Colours import Colours from Utils import validate_sleep_time from DB import new_task, update_sleep, get_history, select_item, update_label, unhide_implant, kill_implant, get_implantdetails, get_c2server_all, get_newimplanturl, get_allurls, get_sharpu...
51.074026
300
0.588959
266234154c474d11bd5a3899761263d716593b79
1,241
py
Python
test/proj4/proj-regression-EPSG-4326-3.py
dvuckovic/magics-test
bd8baf97b0db986f6adf63700d3cf77bbcbad2f2
[ "Apache-2.0" ]
7
2019-03-19T09:32:41.000Z
2022-02-07T13:20:33.000Z
test/proj4/proj-regression-EPSG-4326-3.py
dvuckovic/magics-test
bd8baf97b0db986f6adf63700d3cf77bbcbad2f2
[ "Apache-2.0" ]
2
2021-03-30T05:37:20.000Z
2021-08-17T13:58:04.000Z
test/proj4/proj-regression-EPSG-4326-3.py
dvuckovic/magics-test
bd8baf97b0db986f6adf63700d3cf77bbcbad2f2
[ "Apache-2.0" ]
5
2019-03-19T10:43:46.000Z
2021-09-09T14:28:39.000Z
from Magics.macro import * import os def plot_area(epsg, llx, lly, urx, ury): img = os.path.basename(__file__).split('.')[0] title = "Projection {} : [{:.2f}, {:.2f}, {:.2f}, {:.2f}]".format(epsg, llx, lly, urx, ury) #Setting output png = output( output_formats = ['png'], output_name ...
28.860465
101
0.630137
ad4de74b5aa8a62b1f73687922de435f97c9949e
1,319
py
Python
ThomsonTau.py
BlancaNietoPetinal/Thompson-Tau-Method
2d4736ac8f3bef7f10d4e78312f5ff004f0e96a6
[ "Unlicense" ]
null
null
null
ThomsonTau.py
BlancaNietoPetinal/Thompson-Tau-Method
2d4736ac8f3bef7f10d4e78312f5ff004f0e96a6
[ "Unlicense" ]
null
null
null
ThomsonTau.py
BlancaNietoPetinal/Thompson-Tau-Method
2d4736ac8f3bef7f10d4e78312f5ff004f0e96a6
[ "Unlicense" ]
null
null
null
import numpy as np import scipy.stats as ss def maxim(data): ''' Calculates de maximum value in a list with nan values Inputs: - data: array-like. Outputs: - m: int, the maximun value in the array. - ind: the index of the maximum. ''' m = 0 ind = 0 for i in range(len(data)): if not(np....
26.38
109
0.639121
f10248c5a01558e78e0ee1df39d208b050fb38b1
2,830
py
Python
heliosburn/proxy/modules/traffic_reader.py
thecodeteam/heliosburn
513f6335c9788948d82e5c9285d7869f3ff4cc10
[ "MIT" ]
null
null
null
heliosburn/proxy/modules/traffic_reader.py
thecodeteam/heliosburn
513f6335c9788948d82e5c9285d7869f3ff4cc10
[ "MIT" ]
null
null
null
heliosburn/proxy/modules/traffic_reader.py
thecodeteam/heliosburn
513f6335c9788948d82e5c9285d7869f3ff4cc10
[ "MIT" ]
1
2020-09-17T18:19:05.000Z
2020-09-17T18:19:05.000Z
from module import AbstractModule from twisted.python import log import json import redis from module_decorators import SkipHandler class TrafficReader(AbstractModule): """ Extension of AbstractModule class used to serialize traffic to a Redis pubsub channel. """ def _get_request_message(self, ht...
34.512195
76
0.652297
240be5dabe80dff1c6f319951fcea012ff0b660f
42,079
py
Python
tensorflow/python/estimator/training.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
4
2021-06-15T17:26:07.000Z
2021-11-17T10:58:08.000Z
tensorflow/python/estimator/training.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
4
2020-09-26T00:55:50.000Z
2022-02-10T01:53:06.000Z
tensorflow/python/estimator/training.py
Zwysilence/tensorflow
b55001be83da044bb21d539d433dec6231eaec55
[ "Apache-2.0" ]
6
2018-12-20T01:35:20.000Z
2020-07-10T17:29:57.000Z
# Copyright 2017 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...
39.179702
144
0.686447
b4059bf717f5a5b7b5a23c6e3b2f5b6cfe641fdd
2,968
py
Python
lidardet/datasets/base.py
Jiaolong/trajectory-prediction
3fd4e6253b44dfdc86e7c08e93c002baf66f2e46
[ "Apache-2.0" ]
6
2021-05-10T09:42:01.000Z
2022-01-04T08:03:42.000Z
lidardet/datasets/base.py
Jiaolong/trajectory-prediction
3fd4e6253b44dfdc86e7c08e93c002baf66f2e46
[ "Apache-2.0" ]
3
2021-08-16T02:19:10.000Z
2022-01-10T02:05:48.000Z
lidardet/datasets/base.py
Jiaolong/trajectory-prediction
3fd4e6253b44dfdc86e7c08e93c002baf66f2e46
[ "Apache-2.0" ]
1
2021-07-15T00:51:58.000Z
2021-07-15T00:51:58.000Z
import numpy as np from pathlib import Path from collections import defaultdict from torch.utils.data import Dataset from .registry import DATASETS from .augmentor import DataAugmentor from .processor import DataProcessor @DATASETS.register class PointCloudDataset(Dataset): def __init__(self, cfg, logger=None): ...
35.333333
108
0.584232
c4cf69bcf3f38f0cafb6db86de951fd40b2deddf
2,733
py
Python
Tools/Scripts/webkitpy/tool/steps/update_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/tool/steps/update_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/tool/steps/update_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
44.803279
81
0.749726
d74b324b256310dd42659b194a31eefeac0fc9de
1,177
py
Python
setup.py
sushilkanathia/todoist-python
d277e8294eeec2f23445ec26a1dc11367e451930
[ "MIT" ]
null
null
null
setup.py
sushilkanathia/todoist-python
d277e8294eeec2f23445ec26a1dc11367e451930
[ "MIT" ]
null
null
null
setup.py
sushilkanathia/todoist-python
d277e8294eeec2f23445ec26a1dc11367e451930
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #The OS module in python provides functions for interacting with the operating system. OS, comes under Python's standard utility modules. import os #Setuptools is a package development process library designed to facilitate packaging Python projects by enhancing the Python standard library dist...
31.810811
153
0.683093
0453689c0f49be882bf8832f16ed3d96188fc9df
666
py
Python
tests/method/test_method_print_bound_method.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
2
2021-12-18T01:52:50.000Z
2022-01-17T19:41:52.000Z
tests/method/test_method_print_bound_method.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
18
2021-11-30T04:05:53.000Z
2022-02-01T03:30:04.000Z
tests/method/test_method_print_bound_method.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
null
null
null
from textwrap import dedent import pytest from pylox.lox import Lox # Base cases from https://github.com/munificent/craftinginterpreters/blob/master/test/method/print_bound_method.lox TEST_SRC = dedent( """\ class Foo { method() { } } var foo = Foo(); print foo.method; // expect: <fn method...
22.2
115
0.701201
d05644267a753a63685ad8b0fd6897473430c213
750
py
Python
untitled/untitled/urls.py
EvgenDEP1/untitled
66e33b5f4114f5cc86575f6a242ceefde84a7165
[ "Apache-2.0" ]
null
null
null
untitled/untitled/urls.py
EvgenDEP1/untitled
66e33b5f4114f5cc86575f6a242ceefde84a7165
[ "Apache-2.0" ]
null
null
null
untitled/untitled/urls.py
EvgenDEP1/untitled
66e33b5f4114f5cc86575f6a242ceefde84a7165
[ "Apache-2.0" ]
null
null
null
"""untitled URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
34.090909
77
0.709333
7d7956a4a4a648d8a2212f423b26901429d7c12a
16,345
py
Python
dashboard/dashboard/speed_releasing_test.py
PLSV/catapult
88e5b1f40c89c4b80d3dd56a722936d07f222a55
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/speed_releasing_test.py
PLSV/catapult
88e5b1f40c89c4b80d3dd56a722936d07f222a55
[ "BSD-3-Clause" ]
6
2020-07-19T21:51:44.000Z
2022-02-13T08:22:58.000Z
dashboard/dashboard/speed_releasing_test.py
PLSV/catapult
88e5b1f40c89c4b80d3dd56a722936d07f222a55
[ "BSD-3-Clause" ]
1
2020-07-24T18:22:03.000Z
2020-07-24T18:22:03.000Z
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function from __future__ import division from __future__ import absolute_import import webapp2 import webtest from google.appe...
43.355438
80
0.683451
0f40446a71d7f7175cd34aa9ab457e35c182fb6d
14,735
py
Python
xonsh/ptk_shell/key_bindings.py
meramsey/xonsh
5685ffc8b8aa921012b31dc8af02e14388b730e9
[ "BSD-2-Clause-FreeBSD" ]
4,716
2016-06-07T05:48:42.000Z
2022-03-31T22:30:15.000Z
xonsh/ptk_shell/key_bindings.py
meramsey/xonsh
5685ffc8b8aa921012b31dc8af02e14388b730e9
[ "BSD-2-Clause-FreeBSD" ]
3,644
2016-06-07T05:55:42.000Z
2022-03-31T13:25:57.000Z
xonsh/ptk_shell/key_bindings.py
agoose77/xonsh
7331d8aee50e8939f8fe4d5b7133ed3907f204f4
[ "BSD-2-Clause-FreeBSD" ]
576
2016-06-07T06:28:32.000Z
2022-03-31T02:46:15.000Z
# -*- coding: utf-8 -*- """Key bindings for prompt_toolkit xonsh shell.""" from prompt_toolkit import search from prompt_toolkit.application.current import get_app from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filters import ( Condition, IsMultiline, HasSelection, EmacsInsertMode,...
33.951613
114
0.676485
8e0aa91e35340eb48cf5367b084df1e158d82b10
28
py
Python
py_blender_room/framework/sceneobject.py
hq9000/py_blender_room
62b2722e42eb0411930472dea4c2fac616768e2d
[ "MIT" ]
3
2020-11-22T17:46:27.000Z
2022-01-07T11:28:29.000Z
py_blender_room/framework/sceneobject.py
hq9000/py_blender_room
62b2722e42eb0411930472dea4c2fac616768e2d
[ "MIT" ]
1
2020-08-31T02:46:06.000Z
2020-08-31T07:58:06.000Z
py_blender_room/framework/sceneobject.py
hq9000/py_blender_room
62b2722e42eb0411930472dea4c2fac616768e2d
[ "MIT" ]
null
null
null
class SceneObject: pass
9.333333
18
0.714286
8b4edc007c018be1ea18f54a64ddb89ddf84a3b4
1,661
py
Python
tests/test_spnego.py
martinhoefling/smbprotocol
8a4f08244a53a7a818cccc81866cfa62439c0125
[ "MIT" ]
null
null
null
tests/test_spnego.py
martinhoefling/smbprotocol
8a4f08244a53a7a818cccc81866cfa62439c0125
[ "MIT" ]
null
null
null
tests/test_spnego.py
martinhoefling/smbprotocol
8a4f08244a53a7a818cccc81866cfa62439c0125
[ "MIT" ]
null
null
null
from pyasn1.codec.der.decoder import decode from pyasn1.type.univ import ObjectIdentifier from smbprotocol.spnego import InitialContextToken, NegotiateToken, MechTypes class TestSpnego(object): def test_parse_initial_context_token(self): data = b"\x60\x76\x06\x06\x2b\x06\x01\x05" \ b"\x05...
41.525
77
0.578567
4dff9b293bf5a1dcd67e1200ba30c20d6c5091a7
554
py
Python
setup.py
logmatic/logmatic-python
15d39c8c05f903054aaed9a5213f47756c0870ec
[ "MIT" ]
38
2016-02-12T17:02:16.000Z
2019-03-28T19:56:27.000Z
setup.py
logmatic/logmatic-python
15d39c8c05f903054aaed9a5213f47756c0870ec
[ "MIT" ]
7
2016-03-03T17:03:09.000Z
2018-01-04T12:29:05.000Z
setup.py
logmatic/logmatic-python
15d39c8c05f903054aaed9a5213f47756c0870ec
[ "MIT" ]
10
2016-02-23T09:34:12.000Z
2018-11-23T00:30:07.000Z
from distutils.core import setup setup( name='logmatic-python', version='0.1.7', author='Logmatic.io support team', author_email='support@logmatic.io', packages = ['logmatic'], scripts=[], url='https://github.com/logmatic/logmatic-python', download_url = 'https://github.com/logmatic/log...
30.777778
79
0.673285
b5b9061cac9e8b8a6405a456f35de4d5cc224353
5,251
py
Python
clumioapi/models/audit_parent_entity.py
clumio-code/clumio-python-sdk
63bfaf3afed5c0ab4bae3dd1be52271249d07c51
[ "Apache-2.0" ]
null
null
null
clumioapi/models/audit_parent_entity.py
clumio-code/clumio-python-sdk
63bfaf3afed5c0ab4bae3dd1be52271249d07c51
[ "Apache-2.0" ]
1
2021-09-16T05:56:05.000Z
2021-09-16T05:56:05.000Z
clumioapi/models/audit_parent_entity.py
clumio-code/clumio-python-sdk
63bfaf3afed5c0ab4bae3dd1be52271249d07c51
[ "Apache-2.0" ]
null
null
null
# # Copyright 2021. Clumio, Inc. # from typing import Any, Dict, Mapping, Optional, Sequence, Type, TypeVar T = TypeVar('T', bound='AuditParentEntity') class AuditParentEntity: """Implementation of the 'AuditParentEntity' model. The parent object of the primary entity associated with or affected by the ...
54.697917
92
0.354028
a115476a9cc5b9a34dc970ac9322ab78255c1495
377
py
Python
manafa/parsing/batteryStats/__init__.py
greensoftwarelab/E-MANAFA
d0ccc01a821af5b02fdcb588a4d14ff56a26cd5d
[ "MIT" ]
null
null
null
manafa/parsing/batteryStats/__init__.py
greensoftwarelab/E-MANAFA
d0ccc01a821af5b02fdcb588a4d14ff56a26cd5d
[ "MIT" ]
null
null
null
manafa/parsing/batteryStats/__init__.py
greensoftwarelab/E-MANAFA
d0ccc01a821af5b02fdcb588a4d14ff56a26cd5d
[ "MIT" ]
null
null
null
""" This module contains Classes to parse and manipulate information coming from the BatteryStats Android Service. BatteryStatsConstants contains constants associated with batterystats events and respective meaning. BatteryStatsParser.py contains BatteryStatsParser and utils to parse dumpsys batterystats output and ob...
53.857143
122
0.848806
1411de61c0e7846ff337cb133583c0a9df4ceec3
281
py
Python
apps/core/managers.py
ozknightwalker/Djongo-tutorial
6d1d86c133924a09da2832d6125966cedeff6365
[ "MIT" ]
null
null
null
apps/core/managers.py
ozknightwalker/Djongo-tutorial
6d1d86c133924a09da2832d6125966cedeff6365
[ "MIT" ]
null
null
null
apps/core/managers.py
ozknightwalker/Djongo-tutorial
6d1d86c133924a09da2832d6125966cedeff6365
[ "MIT" ]
null
null
null
from django.db import models from .query import UndeletedQuerySet class UndeletedManager(models.Manager): def get_queryset(self): return UndeletedQuerySet( model=self.model, using=self._db, hints=self._hints).filter(deleted_at__isnull=True)
23.416667
62
0.715302
71795db1e29dc4a3c9d5344a142b36b029a06a8d
1,438
py
Python
adminmgr/media/code/A3/task1/BD_0012_0792_0948_1324_5SDKuyT.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
9
2019-11-08T02:05:27.000Z
2021-12-13T12:06:35.000Z
adminmgr/media/code/A3/task1/BD_0012_0792_0948_1324_5SDKuyT.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
6
2019-11-27T03:23:16.000Z
2021-06-10T19:15:13.000Z
adminmgr/media/code/A3/task1/BD_0012_0792_0948_1324_5SDKuyT.py
IamMayankThakur/test-bigdata
cef633eb394419b955bdce479699d0115d8f99c3
[ "Apache-2.0" ]
4
2019-11-26T17:04:27.000Z
2021-12-13T11:57:03.000Z
from __future__ import print_function import sys from pyspark.sql import SparkSession from pyspark.sql.functions import * from pyspark.sql.types import * spark_session_obj = SparkSession.builder\ .appName('StructuredSpark')\ .getOrCreate() userSchema = StructType([ StructField('ID', IntegerType(), True), Struct...
32.681818
151
0.75452
f48bc7142d0b61afd9e9667af7ef52344b2d91ba
275
py
Python
Python/Sets/Set .difference() Operation.py
guptamadhur/HackerRank
e0f1ba82296eea88d2b34132d3b1a28cd67ffa03
[ "MIT" ]
null
null
null
Python/Sets/Set .difference() Operation.py
guptamadhur/HackerRank
e0f1ba82296eea88d2b34132d3b1a28cd67ffa03
[ "MIT" ]
null
null
null
Python/Sets/Set .difference() Operation.py
guptamadhur/HackerRank
e0f1ba82296eea88d2b34132d3b1a28cd67ffa03
[ "MIT" ]
null
null
null
# Author: Madhur Gupta # Github: github.com/guptamadhur # Project: Hacker Rank Practice Python if __name__ == '__main__': n = int(input()) A = set(map(int,input().split())) n = int(input()) B = set(map(int, input().split())) print(len(A.difference(B)))
22.916667
38
0.618182
d5308f4cc7137d2226e4a963a923b3db362368c5
3,350
py
Python
Database/client_methods.py
RomaOkorosso/fes-test-task
cfd8212dfbc9b2b0669ce6e1ea0a59b3f96809dc
[ "MIT" ]
null
null
null
Database/client_methods.py
RomaOkorosso/fes-test-task
cfd8212dfbc9b2b0669ce6e1ea0a59b3f96809dc
[ "MIT" ]
null
null
null
Database/client_methods.py
RomaOkorosso/fes-test-task
cfd8212dfbc9b2b0669ce6e1ea0a59b3f96809dc
[ "MIT" ]
null
null
null
# created by RomaOkorosso at 21.03.2021 # client_methods.py from datetime import datetime, timedelta, date from typing import Optional, List from Models.models import Client, TakenBook, Book from Models import schemas from sqlalchemy.orm import Session from Database.exceptions import * from pydantic import ValidationE...
33.5
86
0.625075
746bcce002d007d7be186ffdbf8be9207ef9e47e
3,784
py
Python
mopidy_spotify/distinct.py
jimbofreedman/mopidy-spotify
6b3f41368cc22653d13c1ac1696e66bd5744a95a
[ "Apache-2.0" ]
7
2018-06-24T12:57:19.000Z
2020-04-28T14:35:26.000Z
mopidy_spotify/distinct.py
jimbofreedman/mopidy-spotify
6b3f41368cc22653d13c1ac1696e66bd5744a95a
[ "Apache-2.0" ]
null
null
null
mopidy_spotify/distinct.py
jimbofreedman/mopidy-spotify
6b3f41368cc22653d13c1ac1696e66bd5744a95a
[ "Apache-2.0" ]
3
2018-05-29T00:05:37.000Z
2019-02-28T09:47:43.000Z
from __future__ import unicode_literals import logging import spotify from mopidy_spotify import search logger = logging.getLogger(__name__) def get_distinct(config, session, web_client, field, query=None): # To make the returned data as interesting as possible, we limit # ourselves to data extracted fro...
30.031746
74
0.624207
4bb942a733b86fa63b62487fe39e6b6376b8011b
61,737
py
Python
Mac/BuildScript/build-installer.py
myarchsource/python2
967e509ff8ad450919d5cf708b8e35387b63db03
[ "CNRI-Python-GPL-Compatible" ]
473
2017-02-03T04:03:02.000Z
2022-02-12T17:44:25.000Z
Mac/BuildScript/build-installer.py
myarchsource/python2
967e509ff8ad450919d5cf708b8e35387b63db03
[ "CNRI-Python-GPL-Compatible" ]
70
2017-02-02T21:20:07.000Z
2022-02-04T15:32:45.000Z
Mac/BuildScript/build-installer.py
myarchsource/python2
967e509ff8ad450919d5cf708b8e35387b63db03
[ "CNRI-Python-GPL-Compatible" ]
37
2017-02-11T21:02:34.000Z
2020-11-16T10:51:45.000Z
#!/usr/bin/env python """ This script is used to build "official" universal installers on macOS. NEW for 3.6.8 / 2.7.16: - also build and use Tk 8.6 for 10.6+ installers NEW for 3.6.5: - support Intel 64-bit-only () and 32-bit-only installer builds - build and link with private Tcl/Tk 8.6 for 10.9+ builds - deprecate ...
37.034793
174
0.581045
c0276c450710abc832fffa6bddf328f70fd648e6
9,330
py
Python
simulator/pybullet/fixed_draco_main.py
junhyeokahn/PnC
388440f7db7b2aedf1e397d0130d806090865c35
[ "MIT" ]
25
2019-01-31T13:51:34.000Z
2022-02-08T13:19:01.000Z
simulator/pybullet/fixed_draco_main.py
junhyeokahn/PnC
388440f7db7b2aedf1e397d0130d806090865c35
[ "MIT" ]
5
2020-06-01T20:48:46.000Z
2022-02-08T11:42:02.000Z
simulator/pybullet/fixed_draco_main.py
junhyeokahn/PnC
388440f7db7b2aedf1e397d0130d806090865c35
[ "MIT" ]
9
2018-11-20T22:37:50.000Z
2021-09-14T17:17:27.000Z
import os import sys cwd = os.getcwd() sys.path.append(cwd) sys.path.append(cwd + '/utils/python_utils') sys.path.append(cwd + '/simulator/pybullet') sys.path.append(cwd + '/build/lib') import time, math from collections import OrderedDict import copy import signal import shutil import cv2 import pybullet as p impor...
39.201681
119
0.622186
7746af5020e668189dbc4f76965c292197ec117f
753
py
Python
haystack/management/commands/haystack_info.py
dulmandakh/django-haystack
01c440618a63fa03e05ce9f4d2615e0933f642b1
[ "BSD-3-Clause" ]
null
null
null
haystack/management/commands/haystack_info.py
dulmandakh/django-haystack
01c440618a63fa03e05ce9f4d2615e0933f642b1
[ "BSD-3-Clause" ]
null
null
null
haystack/management/commands/haystack_info.py
dulmandakh/django-haystack
01c440618a63fa03e05ce9f4d2615e0933f642b1
[ "BSD-3-Clause" ]
null
null
null
from django.core.management.base import BaseCommand from haystack import connections from haystack.constants import DEFAULT_ALIAS class Command(BaseCommand): help = "Provides feedback about the current Haystack setup." def handle(self, **options): """Provides feedback about the current Haystack setu...
32.73913
74
0.662683
50d78e7d689e0e4b48a85a1310baab3829ea90b9
2,406
py
Python
behavioral/template_method.py
MADTeacher/design-patterns
8cac737a923f3e3dbfd4c5f38f95eeb74b0ca020
[ "MIT" ]
11
2021-07-23T10:10:25.000Z
2022-02-09T08:54:16.000Z
behavioral/template_method.py
MADTeacher/design-patterns
8cac737a923f3e3dbfd4c5f38f95eeb74b0ca020
[ "MIT" ]
null
null
null
behavioral/template_method.py
MADTeacher/design-patterns
8cac737a923f3e3dbfd4c5f38f95eeb74b0ca020
[ "MIT" ]
8
2021-03-26T17:57:15.000Z
2022-01-03T13:23:42.000Z
from abc import ABC, abstractmethod from typing import List class Pizza: """Класс приготовляемой шеф-поваром пиццы""" def __init__(self): self.__state: List[str] = ['base'] def add_ingredient(self, ingredient: str) -> None: print(f"В пиццу добавлен ингредиент: {ingredient}") self....
27.655172
62
0.645054
0f8769abbefea0c538bf89f2c6369586e11f0cd8
831
py
Python
atcoder/abc/abc149_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/abc/abc149_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/abc/abc149_c.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
def miller_rabin(n): """ primality Test if n < 3,825,123,056,546,413,051, it is enough to test a = 2, 3, 5, 7, 11, 13, 17, 19, and 23. Complexity: O(log^3 n) """ assert(n >= 1) if n == 2: return True if n <= 1 or not n & 1: return False primes = [2, 3, 5,...
19.785714
62
0.405535
41c22598cef5606219069802493372d21e4e826a
2,876
py
Python
python/tron.py
newrelic-experimental/demo-pythontron
0561d7e496da3a518c28102010c3c76445a47307
[ "Apache-2.0" ]
null
null
null
python/tron.py
newrelic-experimental/demo-pythontron
0561d7e496da3a518c28102010c3c76445a47307
[ "Apache-2.0" ]
null
null
null
python/tron.py
newrelic-experimental/demo-pythontron
0561d7e496da3a518c28102010c3c76445a47307
[ "Apache-2.0" ]
null
null
null
import os import sys from flask import Flask, Response from api.help import help_message from dependency_injection_container import Container from lib.app_logging import AppLogging from lib.tron_response import TronResponse from repository.helpers import inventory_repository_selector app = Flask(__name__) @app.err...
25.678571
92
0.73783
1fff79c7c297ddae3bbff2a59c09186fc49b4ada
11,710
py
Python
ces/coin_database.py
coincell-pub/CLI-crypto-console
30c2d2c64e14d0cfa54aafd0cabb7d1524cd5d56
[ "BSD-2-Clause", "BSD-2-Clause-FreeBSD" ]
null
null
null
ces/coin_database.py
coincell-pub/CLI-crypto-console
30c2d2c64e14d0cfa54aafd0cabb7d1524cd5d56
[ "BSD-2-Clause", "BSD-2-Clause-FreeBSD" ]
null
null
null
ces/coin_database.py
coincell-pub/CLI-crypto-console
30c2d2c64e14d0cfa54aafd0cabb7d1524cd5d56
[ "BSD-2-Clause", "BSD-2-Clause-FreeBSD" ]
null
null
null
# Copyright (c) 2021, coincell # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the foll...
44.694656
107
0.563792
64d32016949b8988e7f3520c8fe40ba9ba078b48
1,041
py
Python
alipay/aop/api/response/AlipayUserCardActivateurlQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayUserCardActivateurlQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayUserCardActivateurlQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayUserCardActivateurlQueryResponse(AlipayResponse): def __init__(self): super(AlipayUserCardActivateurlQueryResponse, self).__init__() self._apply_card_url = None...
28.916667
111
0.701249
30ec0d5c40fdf63edb0374a6e5345cb3b288ed38
82,060
py
Python
virtual_env/.cognitive_venv/Lib/site-packages/azure/storage/blob/pageblobservice.py
RajdeepBiswas/AI_Enabled_Image_Bucketization
d8cd23d49d5f6a93003e3a20a637fdb8f2032f19
[ "MIT" ]
1
2021-10-16T19:33:56.000Z
2021-10-16T19:33:56.000Z
virtual_env/.cognitive_venv/Lib/site-packages/azure/storage/blob/pageblobservice.py
RajdeepBiswas/AI_Enabled_Image_Bucketization
d8cd23d49d5f6a93003e3a20a637fdb8f2032f19
[ "MIT" ]
null
null
null
virtual_env/.cognitive_venv/Lib/site-packages/azure/storage/blob/pageblobservice.py
RajdeepBiswas/AI_Enabled_Image_Bucketization
d8cd23d49d5f6a93003e3a20a637fdb8f2032f19
[ "MIT" ]
1
2019-07-25T15:09:05.000Z
2019-07-25T15:09:05.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import sys...
53.880499
118
0.654716
7f8bb0d4ca1c87794dcdfd2f043b728d54955e42
4,380
py
Python
eval/eval_calibration.py
dallascard/ACT
af3b88a89153d66dc421932c2abbf3792d7a1c37
[ "Apache-2.0" ]
null
null
null
eval/eval_calibration.py
dallascard/ACT
af3b88a89153d66dc421932c2abbf3792d7a1c37
[ "Apache-2.0" ]
null
null
null
eval/eval_calibration.py
dallascard/ACT
af3b88a89153d66dc421932c2abbf3792d7a1c37
[ "Apache-2.0" ]
null
null
null
from optparse import OptionParser import numpy as np # Evaluate the overall calibration of the output of a mdoel def main(): usage = "%prog output.npz [output2.npz ...]" parser = OptionParser(usage=usage) parser.add_option('-n', dest='n_bins', default=10, help='Number of bins: defa...
34.21875
137
0.59589
3d6ee95973024ea6f79c10ef6c0e2d10f47f91b1
5,884
py
Python
sdk/python/pulumi_aws/cloudwatch/get_log_group.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cloudwatch/get_log_group.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/cloudwatch/get_log_group.py
chivandikwa/pulumi-aws
19c08bf9dcb90544450ffa4eec7bf6751058fde2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
33.816092
238
0.64446