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
283187b1acdcf513705c7326dc53d32846d75468
1,054
py
Python
image.py
harshkothari410/snn-image-segmentation
18fb28e8b2fee3d7583f6e62fd512ba90863c0ee
[ "MIT" ]
7
2016-04-17T21:11:41.000Z
2021-06-25T09:40:40.000Z
image.py
Arthas1121/snn-image-segmentation
18fb28e8b2fee3d7583f6e62fd512ba90863c0ee
[ "MIT" ]
null
null
null
image.py
Arthas1121/snn-image-segmentation
18fb28e8b2fee3d7583f6e62fd512ba90863c0ee
[ "MIT" ]
6
2016-04-17T19:14:41.000Z
2022-03-09T21:03:12.000Z
from PIL import Image def imageread(filename): file = Image.open(filename) pixel_values = list(file.getdata()) # Compute H and W w, h = file.size # compute pixel matrix pixel_mat = [[0 for x in xrange(w)] for x in xrange(h)] count = 0 for x in xrange(h): for y in xrange(w): # print type(pixel_values[...
19.163636
64
0.622391
862c998692f1850567159b1010a13f98027238a1
2,774
py
Python
nipype/interfaces/camino/tests/test_auto_TrackPICo.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
7
2017-02-17T08:54:26.000Z
2022-03-10T20:57:23.000Z
nipype/interfaces/camino/tests/test_auto_TrackPICo.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
1
2016-04-25T15:07:09.000Z
2016-04-25T15:07:09.000Z
nipype/interfaces/camino/tests/test_auto_TrackPICo.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..dti import TrackPICo def test_TrackPICo_inputs(): input_map = dict( anisfile=dict(argstr='-anisfile %s', ), anisthresh=dict(argstr='-anisthresh %f', ), args=dict(argstr='%s', ), cur...
28.597938
67
0.503965
0e167608dba640e8e33ffb8e133f56b11ba0dc0a
10,649
py
Python
apps/project/business/board.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
349
2020-08-04T10:21:01.000Z
2022-03-23T08:31:29.000Z
apps/project/business/board.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
2
2021-01-07T06:17:05.000Z
2021-04-01T06:01:30.000Z
apps/project/business/board.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
70
2020-08-24T06:46:14.000Z
2022-03-25T13:23:27.000Z
import json import requests from flask import request, g, current_app from sqlalchemy import desc, func from sqlalchemy.orm import aliased from apps.auth.models.users import User from apps.project.models.issue import Issue from apps.project.models.modules import Module from apps.project.models.tasks import Task, Task...
46.70614
120
0.594892
83d30c47ebde1323539e62d03f67b271652cf3be
4,899
py
Python
integration_testing/run_travis_tests.py
Glitchfix/mindsdb
e6c33d7085898c223030334962596ae8afa3fbd5
[ "MIT" ]
null
null
null
integration_testing/run_travis_tests.py
Glitchfix/mindsdb
e6c33d7085898c223030334962596ae8afa3fbd5
[ "MIT" ]
null
null
null
integration_testing/run_travis_tests.py
Glitchfix/mindsdb
e6c33d7085898c223030334962596ae8afa3fbd5
[ "MIT" ]
null
null
null
from data_generators import * import traceback import sys import os import itertools import logging from colorlog import ColoredFormatter import time import mindsdb from mindsdb import CONST #@TODO: Currently we use this isntead of randomly generated data since randomly generated data is not reliable enough # We tel...
33.554795
154
0.654419
7a220662c532f6177643a5bc0c91a4955cdccfc8
42,389
py
Python
template_container_human/labels/slice_43.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_43.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
template_container_human/labels/slice_43.py
lkondratova/Brainplot
3c8a88c1995dedeaa5cbd88ee71499c7cf9c571d
[ "MIT" ]
null
null
null
coordinates_E0E1E1 = ((124, 121), (124, 122), (125, 119), (125, 124), (126, 97), (126, 118), (126, 121), (126, 122), (126, 125), (126, 144), (127, 84), (127, 97), (127, 98), (127, 117), (127, 119), (127, 120), (127, 121), (127, 122), (127, 123), (127, 126), (127, 142), (127, 143), (128, 84), (128, 86), (128, 96), (12...
470.988889
865
0.482177
eb7c3fb12e03f2b24dcc584553fc30f0b1f73b73
2,253
py
Python
examples/Redfish/expand_data.py
andreaslangnevyjel/python-ilorest-library
cd40e5ed9dfd615074d34ec6bb929dc8ea04a797
[ "Apache-2.0" ]
214
2016-04-04T12:24:52.000Z
2022-03-28T11:35:46.000Z
examples/Redfish/expand_data.py
andreaslangnevyjel/python-ilorest-library
cd40e5ed9dfd615074d34ec6bb929dc8ea04a797
[ "Apache-2.0" ]
139
2016-04-02T04:22:29.000Z
2022-03-25T06:54:45.000Z
examples/Redfish/expand_data.py
andreaslangnevyjel/python-ilorest-library
cd40e5ed9dfd615074d34ec6bb929dc8ea04a797
[ "Apache-2.0" ]
116
2016-04-04T20:39:42.000Z
2021-11-13T06:53:41.000Z
# Copyright 2020 Hewlett Packard Enterprise Development LP # # 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 ...
35.203125
100
0.684421
6989358b5828b06e1b53569a06aa7612e515fb30
26,624
py
Python
tensorflow_probability/python/math/linalg_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/linalg_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/math/linalg_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability 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 o...
33.872774
115
0.644231
bf628907100ed45f03c6ba2481f962223005d12b
1,945
py
Python
tests/functional/python_tests/cli_wallet/tests/009_get_open_orders.py
drov0/hive
747380ac6d1d621a99c94ccf3fd24bbece754a57
[ "MIT" ]
283
2020-03-20T02:13:12.000Z
2022-03-31T22:40:07.000Z
tests/functional/python_tests/cli_wallet/tests/009_get_open_orders.py
drov0/hive
747380ac6d1d621a99c94ccf3fd24bbece754a57
[ "MIT" ]
19
2020-03-20T03:09:16.000Z
2021-08-28T22:35:09.000Z
tests/functional/python_tests/cli_wallet/tests/009_get_open_orders.py
drov0/hive
747380ac6d1d621a99c94ccf3fd24bbece754a57
[ "MIT" ]
94
2020-03-20T01:53:05.000Z
2022-03-04T11:08:23.000Z
#!/usr/bin/python3 import time from utils.test_utils import * from utils.cmd_args import args from utils.cli_wallet import CliWallet from utils.logger import log, init_logger if __name__ == "__main__": with Test(__file__): with CliWallet( args ) as wallet: creator, user = make_user_for_...
47.439024
108
0.597943
29e2d85ba89fbd087f080618a4c9b26454eeac13
5,258
py
Python
flsim/utils/tests/test_training_time_estimator.py
JohnlNguyen/FLSim
a5ed7c0b84499cd9dbc5fe95f8bcb4ba8ab5a5cb
[ "BSD-3-Clause" ]
79
2021-12-09T18:05:09.000Z
2022-03-23T20:43:46.000Z
flsim/utils/tests/test_training_time_estimator.py
JohnlNguyen/FLSim
a5ed7c0b84499cd9dbc5fe95f8bcb4ba8ab5a5cb
[ "BSD-3-Clause" ]
11
2021-12-30T17:54:04.000Z
2022-03-23T17:23:00.000Z
flsim/utils/tests/test_training_time_estimator.py
JohnlNguyen/FLSim
a5ed7c0b84499cd9dbc5fe95f8bcb4ba8ab5a5cb
[ "BSD-3-Clause" ]
9
2021-12-09T19:55:22.000Z
2022-03-15T00:02:08.000Z
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import torch from flsim.common.pytest_helper import assertEqual, assertAlmostEqual from ...
32.257669
83
0.625333
ce94faadb39823e06566cf7c720f348a448bb628
1,470
py
Python
nicos_demo/vsans1/setups/pressure.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_demo/vsans1/setups/pressure.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_demo/vsans1/setups/pressure.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Vacuum sensors of detector and collimation tube' group = 'lowlevel' devices = dict( det_tube = device('nicos.devices.generic.ManualMove', description = 'pressure detector tube: Tube', abslimits = (0, 1000), fmtstr = '%.4G', pollinterval = 15, maxage = 60, ...
28.269231
63
0.542857
0433d8a6fe3adde21da874f20482a09af670d149
3,366
py
Python
neurolang/utils/testing/logic.py
hndgzkn/NeuroLang
a3178d47f80bc0941440d9bb09e06c2f217b9566
[ "BSD-3-Clause" ]
1
2021-01-07T02:00:22.000Z
2021-01-07T02:00:22.000Z
neurolang/utils/testing/logic.py
hndgzkn/NeuroLang
a3178d47f80bc0941440d9bb09e06c2f217b9566
[ "BSD-3-Clause" ]
207
2020-11-04T12:51:10.000Z
2022-03-30T13:42:26.000Z
neurolang/utils/testing/logic.py
hndgzkn/NeuroLang
a3178d47f80bc0941440d9bb09e06c2f217b9566
[ "BSD-3-Clause" ]
6
2020-11-04T13:59:35.000Z
2021-03-19T05:28:10.000Z
""" This module exposes utility functions for tests on logic expressions. It should not be used for any other purpose than testing. """ from ...expression_pattern_matching import add_match from ...expression_walker import ExpressionWalker from ...expressions import Definition, Expression from ...logic import NaryLogi...
28.285714
78
0.655674
15e199b22e341cb7cab56a47709641d697da9e73
2,734
py
Python
tests/test_edn.py
ciena-blueplanet/pydatomic
6e49d5a4d9716392eaeb8647e1da21eb300d5380
[ "MIT" ]
56
2015-01-14T16:38:37.000Z
2022-02-24T10:54:53.000Z
tests/test_edn.py
ciena-blueplanet/pydatomic
6e49d5a4d9716392eaeb8647e1da21eb300d5380
[ "MIT" ]
null
null
null
tests/test_edn.py
ciena-blueplanet/pydatomic
6e49d5a4d9716392eaeb8647e1da21eb300d5380
[ "MIT" ]
10
2015-01-27T02:53:03.000Z
2021-12-06T11:30:24.000Z
# -*- coding: utf-8 -*- import unittest from datetime import datetime from uuid import UUID from pydatomic import edn class EdnParseTest(unittest.TestCase): def test_all_data(self): data = { '"helloworld"': "helloworld", "23": 23, "23.11": 23.11, "true": Tr...
41.424242
117
0.41368
3ad157ffd25a76d559494e3b24db09b4d1ba2ef8
1,032
py
Python
ophelia/voicerooms/config_options.py
Bunnic/Ophelia
7a521ca8cef1e067b6e402db16911b554057ce0d
[ "MIT" ]
null
null
null
ophelia/voicerooms/config_options.py
Bunnic/Ophelia
7a521ca8cef1e067b6e402db16911b554057ce0d
[ "MIT" ]
null
null
null
ophelia/voicerooms/config_options.py
Bunnic/Ophelia
7a521ca8cef1e067b6e402db16911b554057ce0d
[ "MIT" ]
null
null
null
""" Voicerooms Configuration module. Contains the options required to set up a voiceroom generator. """ from typing import List from ophelia.output import ConfigItem, disp_str from ophelia.utils.discord_utils import ( extract_category_config, extract_text_config, extract_voice_config ) VOICEROOMS_GENERATO...
27.157895
67
0.745155
17d8273c73888cc04c224429611b598d929de315
1,262
py
Python
regression_test_utils/regression_test_utils.py
JivanAmara/test_utils
f077083ebdd8cbcd626ef98994c582cf585fde14
[ "BSD-3-Clause" ]
null
null
null
regression_test_utils/regression_test_utils.py
JivanAmara/test_utils
f077083ebdd8cbcd626ef98994c582cf585fde14
[ "BSD-3-Clause" ]
null
null
null
regression_test_utils/regression_test_utils.py
JivanAmara/test_utils
f077083ebdd8cbcd626ef98994c582cf585fde14
[ "BSD-3-Clause" ]
null
null
null
''' Created on Jul 29, 2015 @author: jivan ''' import jsonpickle, logging # PythonDecorators/my_decorator.py class log_test_case(object): """ @brief: Decorator to log input & output of a method as a jsonpickle'd tuple for easy test creation. Format of the tuple is (<method name>, <args (withou...
35.055556
92
0.561014
095a8c4c739fb420c16da1e1ae8240d1d72e1c59
798
py
Python
Python/Assignments/week3.py
aquib-sh/DSA-C-PY
0cc9e874d5310762edd7b6c12dee07e351668c17
[ "CC0-1.0" ]
null
null
null
Python/Assignments/week3.py
aquib-sh/DSA-C-PY
0cc9e874d5310762edd7b6c12dee07e351668c17
[ "CC0-1.0" ]
null
null
null
Python/Assignments/week3.py
aquib-sh/DSA-C-PY
0cc9e874d5310762edd7b6c12dee07e351668c17
[ "CC0-1.0" ]
null
null
null
def remdup(li): length = len(li) holder = [] if length <= 1: return li for i in range(0, length): if i == length-1: holder.append(li[i]) else: if not li[i] in li[(i+1):]: holder.append(li[i]) return holder def splitsum(l): pos = 0...
17.733333
68
0.384712
b0e650d33133e60c097f26b1e8671202dfc39782
4,133
py
Python
api/streamlit_experiments/s3.py
aws-samples/aws-open-data-analytics-notebooks
680e9689e1b0ceb047960662d220564ae3ecbddb
[ "Apache-2.0" ]
70
2019-05-09T20:02:13.000Z
2021-04-03T12:09:18.000Z
api/streamlit_experiments/s3.py
aws-samples/cloud-experiments
680e9689e1b0ceb047960662d220564ae3ecbddb
[ "Apache-2.0" ]
14
2021-05-15T21:14:28.000Z
2022-03-31T09:09:11.000Z
api/streamlit_experiments/s3.py
aws-samples/aws-open-data-analytics-notebooks
680e9689e1b0ceb047960662d220564ae3ecbddb
[ "Apache-2.0" ]
65
2019-05-20T00:48:04.000Z
2021-04-24T02:28:08.000Z
import streamlit as st import boto3 import botocore import pandas as pd import io s3_client = boto3.client('s3') s3_resource = boto3.resource('s3') def search_buckets(): search = st.text_input('Search S3 bucket in your account', '') response = s3_client.list_buckets() if search: buckets_found = 0 ...
39.361905
117
0.583837
0e506a262abbfab83584566410dfe7ec665436a4
4,172
py
Python
tests/unit/bokeh/models/test_mappers.py
tcmetzger/bokeh
5daff21bfb7e10b69ff9aa2f35eb506777a38264
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/models/test_mappers.py
tcmetzger/bokeh
5daff21bfb7e10b69ff9aa2f35eb506777a38264
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/models/test_mappers.py
tcmetzger/bokeh
5daff21bfb7e10b69ff9aa2f35eb506777a38264
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # 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. #-------------------------------------------------------------------...
32.59375
103
0.394775
a4e32ef9c8adc091f8f4325ae63ce3419162c50b
3,647
py
Python
genedisco/evaluation/hitratio.py
genedisco/genedisco
26b7ce93b222fd80e914f2f2236969b356e7f701
[ "Apache-2.0" ]
11
2022-02-07T13:19:02.000Z
2022-03-25T03:38:15.000Z
genedisco/evaluation/hitratio.py
genedisco/genedisco
26b7ce93b222fd80e914f2f2236969b356e7f701
[ "Apache-2.0" ]
4
2022-02-05T19:12:30.000Z
2022-03-18T09:12:35.000Z
genedisco/evaluation/hitratio.py
genedisco/genedisco
26b7ce93b222fd80e914f2f2236969b356e7f701
[ "Apache-2.0" ]
6
2022-02-07T16:14:54.000Z
2022-03-18T22:26:31.000Z
""" Copyright (C) 2022 Arash Mehrjou, GlaxoSmithKline plc 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,...
47.986842
143
0.732931
12fe26a4af0f0a8758ed418b3d06127b37fa4ad8
920
py
Python
manager/projects/migrations/0016_auto_20201016_0326.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
30
2016-03-26T12:08:04.000Z
2021-12-24T14:48:32.000Z
manager/projects/migrations/0016_auto_20201016_0326.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
1,250
2016-03-23T04:56:50.000Z
2022-03-28T02:27:58.000Z
manager/projects/migrations/0016_auto_20201016_0326.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
11
2016-07-14T17:04:20.000Z
2021-07-01T16:19:09.000Z
# Generated by Django 3.1.2 on 2020-10-16 03:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0015_auto_20201007_0337'), ] operations = [ migrations.RemoveField( model_name='googledrivesource', name...
30.666667
182
0.594565
a201ac4aa8fba548a2db478ed74b26f9d6a8d17b
12,945
py
Python
mvpnet/train_3d.py
shnhrtkyk/mvpnet
cadf636749b5ee6e73e96ff68e4b32728088decd
[ "MIT" ]
79
2020-01-12T20:30:34.000Z
2022-03-15T06:37:09.000Z
mvpnet/train_3d.py
jtpils/mvpnet
cadf636749b5ee6e73e96ff68e4b32728088decd
[ "MIT" ]
4
2020-02-14T17:26:56.000Z
2021-08-30T07:54:47.000Z
mvpnet/train_3d.py
jtpils/mvpnet
cadf636749b5ee6e73e96ff68e4b32728088decd
[ "MIT" ]
10
2020-01-13T05:59:15.000Z
2021-11-02T03:00:22.000Z
#!/usr/bin/env python import os import os.path as osp import sys import argparse import logging import time import socket import warnings import open3d # import before torch import torch from torch import nn from torch.utils.tensorboard import SummaryWriter # Assume that the script is run at the root directory _ROOT...
38.641791
117
0.579452
1b9c8afc1c1891eb64e0bd29e4e9910221cffe1d
41,440
py
Python
src/v5.1/resources/swagger_client/api/learning_standard_equivalence_associations_api.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
2
2021-04-27T17:18:17.000Z
2021-04-27T19:14:39.000Z
src/v5.1/resources/swagger_client/api/learning_standard_equivalence_associations_api.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
null
null
null
src/v5.1/resources/swagger_client/api/learning_standard_equivalence_associations_api.py
xmarcosx/edfi-notebook
0564ebdf1d0f45a9d25056e7e61369f0a837534d
[ "Apache-2.0" ]
1
2022-01-06T09:43:11.000Z
2022-01-06T09:43:11.000Z
# coding: utf-8 """ Ed-Fi Operational Data Store API The Ed-Fi ODS / API enables applications to read and write education data stored in an Ed-Fi ODS through a secure REST interface. *** > *Note: Consumers of ODS / API information should sanitize all data for display and storage. The ODS / API provides reas...
57.555556
493
0.680405
7ac505b3efb2ee5e29189a3312c2a89ae79a9876
128
py
Python
docker/app/conf/application.py
sled30/python-sample-app-test
35a8a1669023dfde7dfc14e6f6cba6926fb1d610
[ "MIT" ]
null
null
null
docker/app/conf/application.py
sled30/python-sample-app-test
35a8a1669023dfde7dfc14e6f6cba6926fb1d610
[ "MIT" ]
null
null
null
docker/app/conf/application.py
sled30/python-sample-app-test
35a8a1669023dfde7dfc14e6f6cba6926fb1d610
[ "MIT" ]
null
null
null
from api import api as application if __name__ == "__main__": application.run(host='0.0.0.0') # api.run(host='0.0.0.0')
21.333333
35
0.648438
8c9d5afe40d4c85f1596803c4f4e1fd94937bfcc
1,528
py
Python
sfi_www/urls.py
sfikrakow/www
ec4e1451849863749d2dc977b8a91c7767e75a1a
[ "MIT" ]
5
2020-04-27T22:51:14.000Z
2020-12-03T13:08:49.000Z
sfi_www/urls.py
sfikrakow/www
ec4e1451849863749d2dc977b8a91c7767e75a1a
[ "MIT" ]
1
2021-04-02T22:31:11.000Z
2021-04-02T22:31:12.000Z
sfi_www/urls.py
sfikrakow/www
ec4e1451849863749d2dc977b8a91c7767e75a1a
[ "MIT" ]
2
2020-04-28T07:08:25.000Z
2021-04-16T09:49:08.000Z
from django.conf import settings from django.conf.urls import include from django.conf.urls.i18n import i18n_patterns from django.contrib import admin from django.urls import path from wagtail.admin import urls as wagtailadmin_urls from wagtail.contrib.sitemaps.views import sitemap from wagtail.core import urls as wagt...
37.268293
96
0.768325
c996895a7b918da169eb2f22d7284c727253bfc5
3,626
py
Python
safe/settings.py
MaryMbugua/Safe
2aaa4760cfa96aafc4d37233fe7b4df584e2ed79
[ "MIT" ]
null
null
null
safe/settings.py
MaryMbugua/Safe
2aaa4760cfa96aafc4d37233fe7b4df584e2ed79
[ "MIT" ]
null
null
null
safe/settings.py
MaryMbugua/Safe
2aaa4760cfa96aafc4d37233fe7b4df584e2ed79
[ "MIT" ]
null
null
null
""" Django settings for safe project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os impo...
26.275362
91
0.699945
e7e96d5bcbaa7b76e47b48a67006f7044bcad3c8
17,357
py
Python
cvpods/modeling/meta_arch/detr.py
reinforcementdriving/cvpods
32d98b74745020be035a0e20337ad934201615c4
[ "Apache-2.0" ]
1
2021-04-24T17:01:29.000Z
2021-04-24T17:01:29.000Z
cvpods/modeling/meta_arch/detr.py
wondervictor/cvpods
614a975e5425bbaeb66bbd1ffca552d633ba89ca
[ "Apache-2.0" ]
null
null
null
cvpods/modeling/meta_arch/detr.py
wondervictor/cvpods
614a975e5425bbaeb66bbd1ffca552d633ba89ca
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) BaseDetection, Inc. and its affiliates. All Rights Reserved """ DETR model and criterion classes. """ import torch import torch.nn.functional as F from torch import nn from cvpods.layers import ShapeSpec, position_encoding_dict from cvpods.modeling.backbo...
41.723558
100
0.612779
8f0c08070cdc926d8829459beaa4ca7be716f1a5
1,322
py
Python
Tools/remove_car_from_sun2012.py
n8886919/YOLO
3726a8819d7880e03f4a7e056751ad10a850201b
[ "BSD-Source-Code" ]
52
2019-03-27T05:18:28.000Z
2022-03-22T04:30:17.000Z
Tools/remove_car_from_sun2012.py
n8886919/YOLO
3726a8819d7880e03f4a7e056751ad10a850201b
[ "BSD-Source-Code" ]
6
2019-08-27T07:48:51.000Z
2022-01-13T01:08:26.000Z
Tools/remove_car_from_sun2012.py
n8886919/YOLO
3726a8819d7880e03f4a7e056751ad10a850201b
[ "BSD-Source-Code" ]
17
2019-03-27T15:12:54.000Z
2022-03-18T21:30:14.000Z
def remove_car_from_sun2012(): from shutil import copyfile import xml.etree.cElementTree as ET bg_root = '/media/nolan/HDD1/sun2012pascalformat' sun_img_path = os.path.join(bg_root, 'JPEGImages') sun_anno_path = os.path.join(bg_root, 'Annotations') counter = 0 for img in os.listdir(sun_img_p...
37.771429
96
0.52118
d8cfc5273e137c985b9a50691494c4aea99e27f0
2,363
py
Python
template/iv.py
houzeyu2683/PythonCrawlerTemplate
701d371789fc81eb8ed052e9e8dd0e83ed847580
[ "MIT" ]
null
null
null
template/iv.py
houzeyu2683/PythonCrawlerTemplate
701d371789fc81eb8ed052e9e8dd0e83ed847580
[ "MIT" ]
null
null
null
template/iv.py
houzeyu2683/PythonCrawlerTemplate
701d371789fc81eb8ed052e9e8dd0e83ed847580
[ "MIT" ]
null
null
null
## The packages. from selenium import webdriver import pandas, os, time, tqdm import re import time ## The goal. ''' 從 ptt 的股票版搜尋文章,時間由新至舊,將搜尋的文章擷取,輸出成表格。 ''' ## ## The arguments. platform = 'dcard' board = 'mood' site = "https://www.dcard.tw/f/mood" number = 20 folder = "LOG/IV" confirmation = False ## ## ...
24.360825
147
0.639441
e8fb23e00c52d8542897df8937fa3b60bad7b2ad
4,710
py
Python
src/datatools/columns_rename.py
ingwersen-erik/dev-datatools
907a8a3ec68e06b757918618c2c292deef9bf2a3
[ "MIT" ]
null
null
null
src/datatools/columns_rename.py
ingwersen-erik/dev-datatools
907a8a3ec68e06b757918618c2c292deef9bf2a3
[ "MIT" ]
null
null
null
src/datatools/columns_rename.py
ingwersen-erik/dev-datatools
907a8a3ec68e06b757918618c2c292deef9bf2a3
[ "MIT" ]
null
null
null
# # MIT License # # Copyright (c) 2021 Erik Ingwersen # # 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, modi...
31.4
87
0.59448
c70c54385ad033648389d9d18f5d3407ce091306
344
py
Python
urls.py
giovanniherdigein/my_first_django
ed547cf8802951a6af17c0683a642548e025935f
[ "Unlicense" ]
null
null
null
urls.py
giovanniherdigein/my_first_django
ed547cf8802951a6af17c0683a642548e025935f
[ "Unlicense" ]
null
null
null
urls.py
giovanniherdigein/my_first_django
ed547cf8802951a6af17c0683a642548e025935f
[ "Unlicense" ]
null
null
null
from django.urls import path from . import views app_name ='crudsite' urlpatterns=[ path('',views.index,name='index'), path('create_item',views.createItem,name= 'create_item'), path('update_item/<int:item_id>/',views.updateItem,name='update_item'), path('delete_item/<int:item_id>/',views.deleteItem...
34.4
76
0.709302
71d0705f6135c102dc41859770354b804739b3ce
2,029
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/account/get_content_settings.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/account/get_content_settings.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/account/get_content_settings.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.283582
103
0.632824
01fe3f40b6829f7fd22099cd602aafa49135bd95
13,623
py
Python
doc/make.py
raspbian-packages/pandas
fb33806b5286deb327b2e0fa96aedf25a6ed563f
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
doc/make.py
raspbian-packages/pandas
fb33806b5286deb327b2e0fa96aedf25a6ed563f
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
doc/make.py
raspbian-packages/pandas
fb33806b5286deb327b2e0fa96aedf25a6ed563f
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Python script for building documentation. To build the docs you must have all optional dependencies for pandas installed. See the installation instructions for a list of these. <del>Note: currently latex builds do not work because of table formats that are not supported in the latex generat...
28.5
95
0.593335
e1071060a680e49b4bfc307f8c45f59ed083707d
4,596
py
Python
the_index/objects/index.py
lastmeta/index_credit
fd85111341d996d678c1a5ac94832904288e3e48
[ "CC0-1.0" ]
null
null
null
the_index/objects/index.py
lastmeta/index_credit
fd85111341d996d678c1a5ac94832904288e3e48
[ "CC0-1.0" ]
null
null
null
the_index/objects/index.py
lastmeta/index_credit
fd85111341d996d678c1a5ac94832904288e3e48
[ "CC0-1.0" ]
null
null
null
class User(): def __init__(self, credit: float, vote: str, against: int): self.credit = credit self.vote = vote self.against = against self.trades = {} def __repr__(self): return ( f'\n credit {self.credit}' f'\n vote {self.vote}' ...
35.90625
105
0.544604
83fc082b545106d02622de20f2083e8a7562f96c
25,777
py
Python
venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/chardet/jisfreq.py
xiegudong45/typeidea
db6504a232d120d6ffa185730bd35b9b9ecffa6c
[ "Apache-2.0" ]
38,667
2015-01-01T00:15:34.000Z
2022-03-31T22:57:03.000Z
env/Lib/site-packages/pip/_vendor/chardet/jisfreq.py
aammjian/cotton
f72b814f795f79a4054688e465c8b0ae5560f3b7
[ "Apache-2.0" ]
8,417
2015-01-01T13:03:16.000Z
2022-03-31T17:40:27.000Z
lib/python2.7/site-packages/pip/_vendor/chardet/jisfreq.py
anish03/weather-dash
d517fa9da9028d1fc5d8fd71d77cee829ddee87b
[ "MIT" ]
11,269
2015-01-01T08:41:17.000Z
2022-03-31T16:12:52.000Z
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
79.070552
98
0.722155
e851f983570ccecaa86411e210398fa509c5ee74
5,199
py
Python
enas/controller.py
dnddnjs/pytorch-vision
d432b467774f838bef37372d6cff3576c6559803
[ "MIT" ]
48
2018-10-14T12:13:54.000Z
2021-12-12T17:48:35.000Z
enas/controller.py
dnddnjs/pytorch-vision
d432b467774f838bef37372d6cff3576c6559803
[ "MIT" ]
6
2018-10-11T01:29:39.000Z
2019-05-29T23:44:49.000Z
enas/controller.py
dnddnjs/pytorch-vision
d432b467774f838bef37372d6cff3576c6559803
[ "MIT" ]
29
2018-11-14T14:01:16.000Z
2021-12-07T00:17:41.000Z
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np device = 'cuda' if torch.cuda.is_available() else 'cpu' class Controller(nn.Module): def __init__(self): super(Controller, self).__init__() # constants self.num_nodes = 7 self.lstm_size = 64 self.tanh_constant = 1.10 se...
37.402878
101
0.734757
792410a8878c6963d6cd8112b58e1a46e3656b36
391
py
Python
Hotails/asgi.py
ErezCohenn/Beyond-07-team-1
37eed5bf1b0902b21f7c824acfd25634c40270db
[ "MIT" ]
1
2022-03-03T12:03:17.000Z
2022-03-03T12:03:17.000Z
Hotails/asgi.py
ErezCohenn/Beyond-07-team-1
37eed5bf1b0902b21f7c824acfd25634c40270db
[ "MIT" ]
38
2022-03-07T14:14:48.000Z
2022-03-31T18:37:52.000Z
Hotails/asgi.py
ErezCohenn/Beyond-07-team-1
37eed5bf1b0902b21f7c824acfd25634c40270db
[ "MIT" ]
5
2022-02-28T18:55:09.000Z
2022-03-06T08:04:40.000Z
""" ASGI config for Hotails project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
ed213be000f725f5747faae6289523d918b77a47
1,995
py
Python
foo/lc/leetcode/editor/cn/[144]Binary Tree Preorder Traversal.py
JaeCoding/keepPying
5bf07b34a6c63e9a6bd2b39c17149adb2dc59570
[ "MIT" ]
1
2020-02-24T15:15:55.000Z
2020-02-24T15:15:55.000Z
foo/lc/leetcode/editor/cn/[144]Binary Tree Preorder Traversal.py
JaeCoding/keepPying
5bf07b34a6c63e9a6bd2b39c17149adb2dc59570
[ "MIT" ]
null
null
null
foo/lc/leetcode/editor/cn/[144]Binary Tree Preorder Traversal.py
JaeCoding/keepPying
5bf07b34a6c63e9a6bd2b39c17149adb2dc59570
[ "MIT" ]
null
null
null
# Given the root of a binary tree, return the preorder traversal of its nodes' v # alues. # # # Example 1: # # # Input: root = [1,null,2,3] # Output: [1,2,3] # # # Example 2: # # # Input: root = [] # Output: [] # # # Example 3: # # # Input: root = [1] # Output: [1] # # # Example 4: # # ...
19
80
0.557895
5419578dbc621b84a223b528e23753aaa12b74cb
5,263
py
Python
ConvNN.py
pierremtb/modded-MNIST-digit-classification
18f55fb00ca6a436712707ab1a21eafaf384553d
[ "MIT" ]
null
null
null
ConvNN.py
pierremtb/modded-MNIST-digit-classification
18f55fb00ca6a436712707ab1a21eafaf384553d
[ "MIT" ]
null
null
null
ConvNN.py
pierremtb/modded-MNIST-digit-classification
18f55fb00ca6a436712707ab1a21eafaf384553d
[ "MIT" ]
null
null
null
# Michael Segev # Pierre Jacquier # Albert Faucher # Group 70 # COMP 551 MP3 # March 18 2019 import torch import torch.nn as nn import torch.optim import torch.nn.functional as F import matplotlib.pyplot as plt import math from helpers import * class ConvNN(torch.nn.Module): def __init__(self): super(Co...
34.398693
115
0.559947
065e304b12cabb5b6c6f2e24116af47fd95a0efd
10,066
py
Python
src/files.py
agtoever/twixtbot-ui
366d7bef33fdbaa260ea8b3330fa9ab29ad05f03
[ "MIT" ]
null
null
null
src/files.py
agtoever/twixtbot-ui
366d7bef33fdbaa260ea8b3330fa9ab29ad05f03
[ "MIT" ]
2
2021-11-10T20:13:45.000Z
2022-01-12T07:38:04.000Z
src/files.py
agtoever/twixtbot-ui
366d7bef33fdbaa260ea8b3330fa9ab29ad05f03
[ "MIT" ]
null
null
null
import PySimpleGUI as sg from backend import twixt import layout as lt import string def str2twixt(move): """ Converts one move string to a twixt backend class move. Handles both T1-style coordinates (e.g.: 'd5', 'f18'') as well as tsgf- style coordinates (e.g.: 'fg', 'bi') as well as special strings ...
33.892256
78
0.566859
358435ab6938a9d40de3109dec9caa90f34c2864
1,034
py
Python
jdcloud_sdk/services/disk/client/DiskClient.py
jdcloud-apigateway/jdcloud-sdk-python
0886769bcf1fb92128a065ff0f4695be099571cc
[ "Apache-2.0" ]
14
2018-04-19T09:53:56.000Z
2022-01-27T06:05:48.000Z
jdcloud_sdk/services/disk/client/DiskClient.py
jdcloud-apigateway/jdcloud-sdk-python
0886769bcf1fb92128a065ff0f4695be099571cc
[ "Apache-2.0" ]
15
2018-09-11T05:39:54.000Z
2021-07-02T12:38:02.000Z
jdcloud_sdk/services/disk/client/DiskClient.py
jdcloud-apigateway/jdcloud-sdk-python
0886769bcf1fb92128a065ff0f4695be099571cc
[ "Apache-2.0" ]
33
2018-04-20T05:29:16.000Z
2022-02-17T09:10:05.000Z
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
34.466667
86
0.744681
e99aa428e4ebfd014ec1d6c28b062b86d539e43b
3,851
py
Python
Vision/AnalyzeFormV2/AnalyzeForm/__init__.py
iii-PaulCridland/azure-search-power-skills
bbc5848c32b3bd6f2c8942693d854563e0cee708
[ "MIT" ]
128
2019-06-12T19:24:34.000Z
2022-03-08T18:39:40.000Z
Vision/AnalyzeFormV2/AnalyzeForm/__init__.py
iii-PaulCridland/azure-search-power-skills
bbc5848c32b3bd6f2c8942693d854563e0cee708
[ "MIT" ]
47
2019-07-15T22:04:23.000Z
2022-03-04T18:35:57.000Z
Vision/AnalyzeFormV2/AnalyzeForm/__init__.py
iii-PaulCridland/azure-search-power-skills
bbc5848c32b3bd6f2c8942693d854563e0cee708
[ "MIT" ]
99
2019-06-28T20:56:21.000Z
2022-03-30T17:17:24.000Z
import logging import json import os import logging import pathlib from azure.core.exceptions import ResourceNotFoundError from azure.ai.formrecognizer import FormRecognizerClient from azure.ai.formrecognizer import FormTrainingClient from azure.core.credentials import AzureKeyCredential import azure.functions as func ...
36.67619
90
0.609192
8eb19cb5bb6e480425577d4672af1bfd07e3f193
265
py
Python
tests/artificial/transf_BoxCox/trend_LinearTrend/cycle_7/ar_12/test_artificial_1024_BoxCox_LinearTrend_7_12_20.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_BoxCox/trend_LinearTrend/cycle_7/ar_12/test_artificial_1024_BoxCox_LinearTrend_7_12_20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_BoxCox/trend_LinearTrend/cycle_7/ar_12/test_artificial_1024_BoxCox_LinearTrend_7_12_20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 7, transform = "BoxCox", sigma = 0.0, exog_count = 20, ar_order = 12);
37.857143
165
0.732075
972ed5804f9aeebbf33d60956e0968a1325d4660
1,106
py
Python
aiotdlib/api/types/sessions.py
mostafa-arshadi/aiotdlib
59f430a65dfb424fc69d471a0d7bcd77ad7acf08
[ "MIT" ]
37
2021-05-04T10:41:41.000Z
2022-03-30T13:48:05.000Z
aiotdlib/api/types/sessions.py
mostafa-arshadi/aiotdlib
59f430a65dfb424fc69d471a0d7bcd77ad7acf08
[ "MIT" ]
13
2021-07-17T19:54:51.000Z
2022-02-26T06:50:00.000Z
aiotdlib/api/types/sessions.py
mostafa-arshadi/aiotdlib
59f430a65dfb424fc69d471a0d7bcd77ad7acf08
[ "MIT" ]
7
2021-09-22T21:27:11.000Z
2022-02-20T02:33:19.000Z
# =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
33.515152
127
0.490054
24b4d02aa4b0856bf30f24067c64833ea23cd95a
669
py
Python
training_site/manage.py
janvorac/guess-the-number
89ba9b70525b6b6d11541372ade6e0d1a48a5543
[ "MIT" ]
null
null
null
training_site/manage.py
janvorac/guess-the-number
89ba9b70525b6b6d11541372ade6e0d1a48a5543
[ "MIT" ]
7
2022-01-25T08:44:26.000Z
2022-02-02T09:07:38.000Z
training_site/manage.py
janvorac/guess-the-number
89ba9b70525b6b6d11541372ade6e0d1a48a5543
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'training_site.settings') try: from django.core.management import execute_from_command_line excep...
29.086957
77
0.681614
88f14a49d414c0b69f5c82bdfa2f989bb01c57bf
7,927
py
Python
plugin/references.py
Narretz/LSP
28ecbb2221956781222fcf2aaa8ceb54c6a34f35
[ "MIT" ]
null
null
null
plugin/references.py
Narretz/LSP
28ecbb2221956781222fcf2aaa8ceb54c6a34f35
[ "MIT" ]
null
null
null
plugin/references.py
Narretz/LSP
28ecbb2221956781222fcf2aaa8ceb54c6a34f35
[ "MIT" ]
null
null
null
import os import sublime import linecache from .core.documents import is_at_word, get_position, get_document_position from .core.panels import ensure_panel from .core.protocol import Request, Point from .core.registry import LspTextCommand, windows from .core.settings import PLUGIN_NAME, settings from .core.url import...
40.651282
113
0.606787
8035a3de023aa6e3d5ea47b099145fa484f4830c
16,547
py
Python
src/encoded/batch_download.py
beta-cell-network/beta-cell-nw
093b078fdb7932ebfcbc0715aeeb2261eda3ee52
[ "MIT" ]
4
2018-01-04T22:31:08.000Z
2021-07-15T17:39:16.000Z
src/encoded/batch_download.py
beta-cell-network/beta-cell-nw
093b078fdb7932ebfcbc0715aeeb2261eda3ee52
[ "MIT" ]
7
2017-10-31T23:47:47.000Z
2022-01-10T00:12:42.000Z
src/encoded/batch_download.py
beta-cell-network/beta-cell-nw
093b078fdb7932ebfcbc0715aeeb2261eda3ee52
[ "MIT" ]
10
2017-09-14T00:57:07.000Z
2021-07-27T23:41:14.000Z
from collections import OrderedDict from pyramid.compat import bytes_ from pyramid.httpexceptions import HTTPBadRequest from pyramid.view import view_config from pyramid.response import Response from snovault import TYPES from snovault.util import simple_path_ids from urllib.parse import ( parse_qs, urlencode, ...
42.104326
231
0.611652
418078d4e3be94880f3339f61052ffce4d274fcc
119
py
Python
batproject/accountapp/admin.py
JaL11/BAT
ed4bccef3c70ec01064ebd0c26933853d4f95355
[ "MIT" ]
1
2020-07-16T14:29:55.000Z
2020-07-16T14:29:55.000Z
batproject/accountapp/admin.py
JaL11/BAT
ed4bccef3c70ec01064ebd0c26933853d4f95355
[ "MIT" ]
63
2020-06-04T14:41:18.000Z
2020-07-29T18:06:14.000Z
batproject/accountapp/admin.py
JaL11/BAT
ed4bccef3c70ec01064ebd0c26933853d4f95355
[ "MIT" ]
6
2020-06-06T13:12:35.000Z
2020-08-28T20:25:51.000Z
from django.contrib import admin # Register your models here. from .models import User admin.site.register(User)
19.833333
33
0.764706
5b802f71e281f98036456fc7a5675e9deac9b681
6,753
py
Python
example/ibc/main.py
kingli-crypto/chainlibpy
8511c08c3bdb7de9cf58254a804ca329188a1dd8
[ "Apache-2.0" ]
null
null
null
example/ibc/main.py
kingli-crypto/chainlibpy
8511c08c3bdb7de9cf58254a804ca329188a1dd8
[ "Apache-2.0" ]
null
null
null
example/ibc/main.py
kingli-crypto/chainlibpy
8511c08c3bdb7de9cf58254a804ca329188a1dd8
[ "Apache-2.0" ]
null
null
null
import json import subprocess import time from pathlib import Path import requests import yaml from pystarport.cluster import (ClusterCLI, find_account, init_cluster, interact, start_cluster) from pystarport.ports import api_port from chainlibpy import Transaction, Wallet from chainlib...
33.26601
104
0.614394
a84fa6edf2b9189f7afa5bdd83be2921d2a76042
3,085
py
Python
yap/controllers/front.py
AFPy/Yap
542fd1b679cedf1772c3ce0948d1fa40390a288e
[ "PSF-2.0" ]
null
null
null
yap/controllers/front.py
AFPy/Yap
542fd1b679cedf1772c3ce0948d1fa40390a288e
[ "PSF-2.0" ]
null
null
null
yap/controllers/front.py
AFPy/Yap
542fd1b679cedf1772c3ce0948d1fa40390a288e
[ "PSF-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # (C) Copyright 2008 Tarek Ziadé <tarek@ziade.org> # import logging import os from os.path import join, dirname import shutil from lxml import etree import time import datetime from pylons import config from sgmllib import SGMLParser from yap.lib.base import * from atomisator.main.config impo...
29.663462
71
0.545867
7bb34199a716aba79a1f5d9cc7cfd915e382ddfa
3,244
py
Python
app/main/views.py
edithamadi/pitch_one
40c8d1c67c77e483b29bd326721dde7f4a20120d
[ "Unlicense" ]
null
null
null
app/main/views.py
edithamadi/pitch_one
40c8d1c67c77e483b29bd326721dde7f4a20120d
[ "Unlicense" ]
null
null
null
app/main/views.py
edithamadi/pitch_one
40c8d1c67c77e483b29bd326721dde7f4a20120d
[ "Unlicense" ]
null
null
null
from flask import render_template,request,redirect,url_for,abort,flash from . import main from flask_login import login_required,current_user from ..models import User,Pitch,Comment from .forms import UpdateProfile,PitchForm,CommentForm from .. import db,photos # import markdown2 # Views @main.route('/') def index(): ...
28.964286
89
0.687115
6e8229ddd4deceb52130dfea853f3d4016ccf290
4,282
py
Python
genRandInputs.py
deehzee/affine-charform
e03d43972e28e2a364bd54b6bd7b95e77bf2e9d2
[ "MIT" ]
2
2019-04-13T03:50:22.000Z
2021-03-02T12:34:47.000Z
genRandInputs.py
deehzee/affine-charform
e03d43972e28e2a364bd54b6bd7b95e77bf2e9d2
[ "MIT" ]
null
null
null
genRandInputs.py
deehzee/affine-charform
e03d43972e28e2a364bd54b6bd7b95e77bf2e9d2
[ "MIT" ]
null
null
null
# genRandInput.py - Generate ranodom input def random_inputs(N = 5, maxvarn = 4, maxs = 3): # N = size of each sample size for each kind # maxvarn = maximum variation for n # maxs = maximum value for s_i # X = type (A, B, C, D, E or F) # n = subscript # r = superscript # S = specialization ...
24.05618
67
0.456796
d5aadadfed1c29d40d8d3576096584dcc5489b49
14,902
py
Python
monai/handlers/checkpoint_saver.py
dylanbuchi/MONAI
1651f1b003b0ffae8b615d191952ad65ad091277
[ "Apache-2.0" ]
2,971
2019-10-16T23:53:16.000Z
2022-03-31T20:58:24.000Z
monai/handlers/checkpoint_saver.py
dylanbuchi/MONAI
1651f1b003b0ffae8b615d191952ad65ad091277
[ "Apache-2.0" ]
2,851
2020-01-10T16:23:44.000Z
2022-03-31T22:14:53.000Z
monai/handlers/checkpoint_saver.py
dylanbuchi/MONAI
1651f1b003b0ffae8b615d191952ad65ad091277
[ "Apache-2.0" ]
614
2020-01-14T19:18:01.000Z
2022-03-31T14:06:14.000Z
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
47.762821
119
0.661119
d514c63a18be319ee21a400e322a3d9cc8f5b7de
30,014
py
Python
plotly/widgets/graph_widget.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/widgets/graph_widget.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/widgets/graph_widget.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
""" Module to allow Plotly graphs to interact with IPython widgets. """ import uuid from collections import deque import pkgutil from requests.compat import json as _json # TODO: protected imports? import ipywidgets as widgets from traitlets import Unicode from IPython.display import Javascript, display import plot...
34.940629
84
0.506697
603daef8bd50008fb784efa6d1e8320da21c3393
3,389
py
Python
apps/greencheck/api/asn_viewset.py
denning/admin-portal
34a8e9f07f88c85c01ae1255517d889fb7951ba5
[ "Apache-2.0" ]
10
2020-11-23T22:47:26.000Z
2022-01-28T16:26:50.000Z
apps/greencheck/api/asn_viewset.py
denning/admin-portal
34a8e9f07f88c85c01ae1255517d889fb7951ba5
[ "Apache-2.0" ]
83
2020-05-17T20:25:50.000Z
2022-03-29T18:11:50.000Z
apps/greencheck/api/asn_viewset.py
denning/admin-portal
34a8e9f07f88c85c01ae1255517d889fb7951ba5
[ "Apache-2.0" ]
3
2020-11-30T00:13:45.000Z
2021-06-11T13:42:04.000Z
import logging from rest_framework import mixins, viewsets from rest_framework.authentication import BasicAuthentication, SessionAuthentication from rest_framework_csv import renderers as drf_csv_rndr # noqa from django.utils.decorators import method_decorator from drf_yasg.utils import swagger_auto_schema # noqa ...
30.531532
89
0.718796
5b785bbb99ef2241514135101ebd7a3f34ce3490
415
py
Python
apps/contrib/utils/email.py
jimialex/django-wise-template-mysql
78b7281ba5cdd1e89a165b217e1b200fdba0135b
[ "MIT" ]
5
2020-04-11T20:11:48.000Z
2021-03-16T23:58:01.000Z
apps/contrib/utils/email.py
jimialex/django-wise-template-mysql
78b7281ba5cdd1e89a165b217e1b200fdba0135b
[ "MIT" ]
5
2020-04-11T20:17:56.000Z
2021-06-16T19:18:29.000Z
apps/contrib/utils/email.py
jimialex/django-wise-template-mysql
78b7281ba5cdd1e89a165b217e1b200fdba0135b
[ "MIT" ]
1
2020-10-10T14:07:37.000Z
2020-10-10T14:07:37.000Z
# -*- coding: utf-8 -*- from django.conf import settings from django.core.mail import EmailMultiAlternatives def send_email(subject, to, text_body, html_body): """Helps to send and email.""" email = EmailMultiAlternatives( subject=subject, from_email=settings.DEFAULT_FROM_EMAIL, to=to...
24.411765
52
0.689157
2a19f5b9566d1435bd3209f6b8d2621391a42acd
15,109
py
Python
libcloud/compute/drivers/softlayer.py
ggreer/libcloud
a391ccdc0d068d37cb906a703f1494af50d83c8f
[ "Apache-2.0" ]
1
2021-06-14T11:11:39.000Z
2021-06-14T11:11:39.000Z
libcloud/compute/drivers/softlayer.py
ggreer/libcloud
a391ccdc0d068d37cb906a703f1494af50d83c8f
[ "Apache-2.0" ]
null
null
null
libcloud/compute/drivers/softlayer.py
ggreer/libcloud
a391ccdc0d068d37cb906a703f1494af50d83c8f
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
33.800895
110
0.551923
11ca3433648652b74a631296db32a4b9a39b19fc
14,869
py
Python
matrix/common/etl/transformers/cell_expression.py
ambrosejcarr/matrix-service
f61252d79941fa962240e27062682c9676f07e95
[ "MIT" ]
null
null
null
matrix/common/etl/transformers/cell_expression.py
ambrosejcarr/matrix-service
f61252d79941fa962240e27062682c9676f07e95
[ "MIT" ]
null
null
null
matrix/common/etl/transformers/cell_expression.py
ambrosejcarr/matrix-service
f61252d79941fa962240e27062682c9676f07e95
[ "MIT" ]
null
null
null
import csv import glob import gzip import hashlib import json import os import pathlib import typing import numpy import scipy.io import zarr from . import MetadataToPsvTransformer from matrix.common.aws.redshift_handler import TableName from matrix.common.etl.dcp_zarr_store import DCPZarrStore from matrix.common.exc...
41.766854
114
0.579057
fba6143b49d5a5da2085ca9b92b550ec03205161
3,208
py
Python
task1/multiboxloss.py
manhph2211/Receipt-data-extraction
bd9ea74fbe8b8cbeddf201c7ea05d9a85cd38ac5
[ "MIT" ]
3
2021-02-04T13:25:51.000Z
2021-08-18T02:15:46.000Z
task1/multiboxloss.py
manhph2211/Receipt-data-extraction
bd9ea74fbe8b8cbeddf201c7ea05d9a85cd38ac5
[ "MIT" ]
null
null
null
task1/multiboxloss.py
manhph2211/Receipt-data-extraction
bd9ea74fbe8b8cbeddf201c7ea05d9a85cd38ac5
[ "MIT" ]
null
null
null
# Jaccard: # Hard negative mining: negative default box = 3times positve default bos # Loss in regression task: MSE ->F.SmoothL1Loss # Loss in classification (multi class): F.CrossEntropy import torch import torch.nn as nn import torch.nn.functional as F from utils import match class MultiBoxLoss(nn.Module): def ...
43.945205
125
0.649938
aa498abe99973fbe01588788e477d78243873a9f
5,518
py
Python
contrib/seeds/makeseeds.py
emberce/Phore
ff388a81e8c9546eb01ab754ada86e560c63ea6e
[ "MIT" ]
1
2018-12-02T18:47:54.000Z
2018-12-02T18:47:54.000Z
contrib/seeds/makeseeds.py
emberce/Phore
ff388a81e8c9546eb01ab754ada86e560c63ea6e
[ "MIT" ]
1
2018-06-17T19:33:23.000Z
2018-06-17T19:33:23.000Z
contrib/seeds/makeseeds.py
emberce/Phore
ff388a81e8c9546eb01ab754ada86e560c63ea6e
[ "MIT" ]
2
2018-04-01T03:11:02.000Z
2018-05-23T17:27:52.000Z
#!/usr/bin/env python3 # Copyright (c) 2013-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Generate seeds.txt from Pieter's DNS seeder # NSEEDS=512 MAX_SEEDS_PER_ASN=2 MIN_BLOCKS = 615801 #...
32.081395
186
0.567235
84209ca2520b89d631856afb67be5aa4a2cd16a4
55,071
py
Python
Lib/test/test_concurrent_futures.py
Horcruxes/cpython
1cbaa505d007e11c4a1f0d2073d72b6c02c7147c
[ "0BSD" ]
33
2021-07-25T14:23:35.000Z
2022-03-31T00:17:30.000Z
Lib/test/test_concurrent_futures.py
Horcruxes/cpython
1cbaa505d007e11c4a1f0d2073d72b6c02c7147c
[ "0BSD" ]
148
2020-02-26T01:08:34.000Z
2022-03-01T15:00:59.000Z
Lib/test/test_concurrent_futures.py
Horcruxes/cpython
1cbaa505d007e11c4a1f0d2073d72b6c02c7147c
[ "0BSD" ]
3
2021-09-30T11:22:32.000Z
2022-02-17T11:19:14.000Z
from test import support from test.support import import_helper from test.support import threading_helper # Skip tests if _multiprocessing wasn't built. import_helper.import_module('_multiprocessing') from test.support import hashlib_helper from test.support.script_helper import assert_python_ok import contextlib im...
35.76039
95
0.618184
6452c8a81d8e93d9fd2794db2306cbf9b018a064
5,057
py
Python
setup.py
Naveenaidu/moban
5a4d41546a99f66b39e7deb3e216c9238fa3b07b
[ "MIT" ]
null
null
null
setup.py
Naveenaidu/moban
5a4d41546a99f66b39e7deb3e216c9238fa3b07b
[ "MIT" ]
null
null
null
setup.py
Naveenaidu/moban
5a4d41546a99f66b39e7deb3e216c9238fa3b07b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Template by pypi-mobans import os import sys import codecs from shutil import rmtree from setuptools import Command, setup, find_packages PY2 = sys.version_info[0] == 2 PY26 = PY2 and sys.version_info[1] < 7 NAME = 'moban' AUTHOR = 'C. W.' VERSION = '0.3.10' EMAIL = 'wangc_2011@hotmail.com'...
25.80102
76
0.595412
7005212e52d344aec7a9101eb4ae457a5712bc37
771
py
Python
Backend/venv/Lib/site-packages/google/cloud/firestore_admin_v1/services/firestore_admin/__init__.py
homer65/fellowcoder
89433e1d44db64d9aa64a8603a7a38bcd220f035
[ "Apache-2.0" ]
2
2021-09-17T10:55:14.000Z
2021-09-17T10:55:38.000Z
Backend/venv/Lib/site-packages/google/cloud/firestore_admin_v1/services/firestore_admin/__init__.py
homer65/fellowcoder
89433e1d44db64d9aa64a8603a7a38bcd220f035
[ "Apache-2.0" ]
2
2020-04-01T07:31:01.000Z
2020-11-30T07:03:51.000Z
Backend/venv/Lib/site-packages/google/cloud/firestore_admin_v1/services/firestore_admin/__init__.py
homer65/fellowcoder
89433e1d44db64d9aa64a8603a7a38bcd220f035
[ "Apache-2.0" ]
1
2020-10-04T12:11:36.000Z
2020-10-04T12:11:36.000Z
# -*- coding: utf-8 -*- # Copyright 2020 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
30.84
74
0.756161
748d557c125cd1f5269c44ca3909cbb4b4f55b20
4,145
py
Python
bin/attrib_to_categorical.py
arup-group/london-pop-synth
38e56230d440d49ddb2e2841d46a5cbaab260c35
[ "MIT" ]
1
2020-11-25T06:56:43.000Z
2020-11-25T06:56:43.000Z
bin/attrib_to_categorical.py
arup-group/london-pop-synth
38e56230d440d49ddb2e2841d46a5cbaab260c35
[ "MIT" ]
null
null
null
bin/attrib_to_categorical.py
arup-group/london-pop-synth
38e56230d440d49ddb2e2841d46a5cbaab260c35
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET import os import argparse import numpy as np import pandas as pd """ Helper CLI for converting raw attribute data (one hot encoded) into classes """ def get_args(): """ Gets command line args. Includes a number of defaults for input and output paths. :return: argparse a...
36.043478
111
0.558987
608c2f9766a40c5d38a4b87b69c1d73a80494e81
33,189
py
Python
SprintMgr/Model.py
esitarski/CrossMgr
de33b5ed662556ec659e6e2910f5fd0f88f25fa0
[ "MIT" ]
25
2015-02-26T01:26:10.000Z
2022-03-25T15:46:55.000Z
SprintMgr/Model.py
esitarski/CrossMgr
de33b5ed662556ec659e6e2910f5fd0f88f25fa0
[ "MIT" ]
76
2015-12-09T04:24:30.000Z
2022-02-18T16:39:28.000Z
SprintMgr/Model.py
esitarski/CrossMgr
de33b5ed662556ec659e6e2910f5fd0f88f25fa0
[ "MIT" ]
17
2015-04-23T07:37:13.000Z
2020-01-22T17:47:16.000Z
import sys import copy import random import datetime import traceback from operator import attrgetter from collections import defaultdict import Utils QualifyingTimeDefault = 99*60*60 Sprint200mQualificationCompetitionTime = 60.0 SprintFinalCompetitionTime = 3*60.0 KeirinCompetitionTime = 5*60.0 class Rider: stat...
32.958292
162
0.659526
215b72e4debb86de578af98cf8b75ba4b2979e70
10,532
py
Python
flexmeasures/data/services/forecasting.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
12
2021-12-18T10:41:10.000Z
2022-03-29T23:00:29.000Z
flexmeasures/data/services/forecasting.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
103
2021-12-07T08:51:15.000Z
2022-03-31T13:28:48.000Z
flexmeasures/data/services/forecasting.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
3
2022-01-18T04:45:48.000Z
2022-03-14T09:48:22.000Z
from datetime import datetime, timedelta from typing import List from flask import current_app import click from rq import get_current_job from rq.job import Job from timetomodel.forecasting import make_rolling_forecasts import timely_beliefs as tb from flexmeasures.data import db from flexmeasures.data.models.foreca...
36.19244
141
0.688283
488e77b23ededf6682d54cf9c6cd3333931c6978
1,039
py
Python
solutions/Course Schedule II/solution.py
nilax97/leetcode-solutions
d3c12f2b289662d199510e0431e177bbf3cda121
[ "MIT" ]
3
2021-06-06T22:03:15.000Z
2021-06-08T08:49:04.000Z
solutions/Course Schedule II/solution.py
nilax97/leetcode-solutions
d3c12f2b289662d199510e0431e177bbf3cda121
[ "MIT" ]
null
null
null
solutions/Course Schedule II/solution.py
nilax97/leetcode-solutions
d3c12f2b289662d199510e0431e177bbf3cda121
[ "MIT" ]
null
null
null
class Solution: def findOrder(self, numCourses: int, prerequisites: List[List[int]]) -> List[int]: order = [] valid = [1] * numCourses val = dict() for x in prerequisites: if x[0] in val: val[x[0]].append(x[1]) else: val[x[0]] =...
29.685714
86
0.361886
e4a6ec94830031686a58be56fd37245202151992
2,209
py
Python
devilry/devilry_compressionutil/backend_registry.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/devilry_compressionutil/backend_registry.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/devilry_compressionutil/backend_registry.py
aless80/devilry-django
416c262e75170d5662542f15e2d7fecf5ab84730
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
from ievv_opensource.utils.singleton import Singleton class DuplicateBackendTypeError(Exception): """ Exception raised when trying to add multiple :class:`.~devilry.devilry_ziputil.backends.PythonZipFileBackend` with same ID. """ class Registry(Singleton): """ Registry for subclasses of ...
26.614458
113
0.611589
05a7a92177c638b16e713c15b994403bf349ee36
26,829
py
Python
platform/gsutil/gslib/tests/test_ls.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
platform/gsutil/gslib/tests/test_ls.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
null
null
null
platform/gsutil/gslib/tests/test_ls.py
bopopescu/SDK
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
[ "Apache-2.0" ]
2
2020-11-04T03:08:21.000Z
2020-11-05T08:14:41.000Z
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. 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 require...
43.766721
103
0.681017
2b94621993cb2121bde7c9ee5c6588cca9078f30
4,598
py
Python
src/tarski/fstrips/visitors.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
29
2018-11-26T20:31:04.000Z
2021-12-29T11:08:40.000Z
src/tarski/fstrips/visitors.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
101
2018-06-07T13:10:01.000Z
2022-03-11T11:54:00.000Z
src/tarski/fstrips/visitors.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
18
2018-11-01T22:44:39.000Z
2022-02-28T04:57:15.000Z
""" Visitors implementing diverse aspects of FSTRIPS problems translation, analysis and compilation. """ from typing import Set from ..syntax.symrefs import TermReference from ..syntax.temporal import ltl from ..syntax.formulas import CompoundFormula, Atom, QuantifiedFormula from ..syntax.terms import Compound...
35.099237
103
0.594389
3ed76ba2b7d42660492afdccca06d4721336bbb4
39,920
py
Python
trainer.py
AZdet/causal-infogan
146b647863a27542ad4a1a01ddb033cdcab9843d
[ "MIT" ]
null
null
null
trainer.py
AZdet/causal-infogan
146b647863a27542ad4a1a01ddb033cdcab9843d
[ "MIT" ]
null
null
null
trainer.py
AZdet/causal-infogan
146b647863a27542ad4a1a01ddb033cdcab9843d
[ "MIT" ]
1
2020-02-15T19:17:24.000Z
2020-02-15T19:17:24.000Z
import numpy as np import csv import os import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torchvision.datasets as dset import torchvision.transforms as transforms from tqdm import tqdm from torch.autograd import Variable from torch.utils.data import DataLoader from t...
47.242604
147
0.500777
bead85c2db00d94e176879ac706fbcf051df380e
2,509
py
Python
wiretap/__init__.py
CBSDigital/Hiero-Wiretap
c1326382b3c8b111ad682ccaec22990b409aff08
[ "BSD-3-Clause" ]
5
2016-11-02T16:27:38.000Z
2018-05-08T06:27:29.000Z
wiretap/__init__.py
CBSDigital/Hiero-Wiretap
c1326382b3c8b111ad682ccaec22990b409aff08
[ "BSD-3-Clause" ]
null
null
null
wiretap/__init__.py
CBSDigital/Hiero-Wiretap
c1326382b3c8b111ad682ccaec22990b409aff08
[ "BSD-3-Clause" ]
null
null
null
"""Loads the platform-appropriate Wiretap Python bindings. @details The Wiretap Python extension requires the Boost.Python and dynamic Wiretap libraries that were both compiled for the current platform and Python version. @note Autodesk refers to "Wiretap" in their SDK Documentation and product ...
29.517647
79
0.654444
ddd435c9593af3c813a55e095a7dd14fa5b59ae1
2,607
py
Python
pyserum/market/types.py
dpguoming/pyserum
d0938e9149de67093808c4d89fee1eb6f75fcd52
[ "MIT" ]
129
2020-08-30T03:50:10.000Z
2022-03-24T02:52:18.000Z
pyserum/market/types.py
dpguoming/pyserum
d0938e9149de67093808c4d89fee1eb6f75fcd52
[ "MIT" ]
87
2020-08-30T04:38:30.000Z
2022-03-23T10:22:11.000Z
pyserum/market/types.py
dpguoming/pyserum
d0938e9149de67093808c4d89fee1eb6f75fcd52
[ "MIT" ]
51
2020-09-29T13:58:20.000Z
2022-03-07T09:49:47.000Z
from __future__ import annotations from typing import NamedTuple from solana.publickey import PublicKey from .._layouts.account_flags import ACCOUNT_FLAGS_LAYOUT from ..enums import Side class AccountFlags(NamedTuple): initialized: bool = False """""" market: bool = False """""" open_orders: bo...
17.264901
57
0.553893
6003e3cc03352ecb5590280b920b34917d2d7722
10,282
py
Python
7-4.py
demogest/Python_Practice
6d074d694e761e0ba390252fbeb1092bb21d26e1
[ "MIT" ]
null
null
null
7-4.py
demogest/Python_Practice
6d074d694e761e0ba390252fbeb1092bb21d26e1
[ "MIT" ]
null
null
null
7-4.py
demogest/Python_Practice
6d074d694e761e0ba390252fbeb1092bb21d26e1
[ "MIT" ]
null
null
null
from tkinter import * # 导入ttk from tkinter import ttk from tkinter import colorchooser import math class App: def __init__(self, master): self.master = master # 保存设置初始的边框宽度 self.width = IntVar() self.width.set(1) # 保存设置初始的边框颜色 self.outline = 'black' # 保存设置初始...
40.164063
110
0.51916
0d0f76f8520cc734ed25f6a5d0a551e54e8a9bb7
3,990
py
Python
datasets/fbms.py
Schmiddo/d2conv3d
9b330be56f0dfb9657a63e3fb3394ab36b35a67b
[ "MIT" ]
16
2021-11-16T04:20:32.000Z
2022-03-10T12:07:13.000Z
datasets/fbms.py
Schmiddo/d2conv3d
9b330be56f0dfb9657a63e3fb3394ab36b35a67b
[ "MIT" ]
1
2022-02-23T14:25:47.000Z
2022-02-23T14:25:47.000Z
datasets/fbms.py
Schmiddo/d2conv3d
9b330be56f0dfb9657a63e3fb3394ab36b35a67b
[ "MIT" ]
1
2022-02-12T07:39:10.000Z
2022-02-12T07:39:10.000Z
import glob import os.path as osp import random as rand import numpy as np from imageio import imread from datasets.base_dataset import VideoSegmentationDataset, INFO, IMAGES_, TARGETS from utils.registry import register @register("dataset") class FBMS(VideoSegmentationDataset): def __init__(self, root, mode="tra...
36.272727
96
0.661404
5d03d9f9863b7a0f7e49e0c815959c550a9eadd8
7,784
py
Python
biothings/hub/datarelease/releasenote.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
biothings/hub/datarelease/releasenote.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
biothings/hub/datarelease/releasenote.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
from dateutil.parser import parse as dtparse import locale locale.setlocale(locale.LC_ALL, '') class ReleaseNoteTxt(object): def __init__(self, changes): self.changes = changes #pprint(self.changes) def save(self, filepath): try: import prettytable except ImportEr...
50.875817
153
0.543165
bbbb6af384bca3e2a6408bc2da9d0fccef7de0c8
1,943
py
Python
main.py
StephanGuingor/KMeans-ST
fa597b77ad145f4f5144b4f7b2d3ed8bd5a10364
[ "MIT" ]
null
null
null
main.py
StephanGuingor/KMeans-ST
fa597b77ad145f4f5144b4f7b2d3ed8bd5a10364
[ "MIT" ]
2
2020-09-17T18:46:59.000Z
2020-09-17T20:39:56.000Z
main.py
StephanGuingor/KMeans-ST
fa597b77ad145f4f5144b4f7b2d3ed8bd5a10364
[ "MIT" ]
3
2020-09-17T18:04:07.000Z
2020-09-17T18:16:15.000Z
import numpy as np import random import matplotlib.pyplot as plt from cercanos import cercanos from Centros import centros from sklearn.datasets.samples_generator import make_blobs from kmeans import * from pprint import pprint import pandas as pd if __name__ == "__main__": X, y_true = make_blobs(n_samp...
29.892308
105
0.569738
05c585d7d6e3c47f8eac8f2d2bfbdd168d4d5e75
7,659
py
Python
cinder/hacking/checks.py
alexpilotti/cinder-ci-fixes
c0ed2ab8cc6b1197e426cd6c58c3b582624d1cfd
[ "Apache-2.0" ]
null
null
null
cinder/hacking/checks.py
alexpilotti/cinder-ci-fixes
c0ed2ab8cc6b1197e426cd6c58c3b582624d1cfd
[ "Apache-2.0" ]
null
null
null
cinder/hacking/checks.py
alexpilotti/cinder-ci-fixes
c0ed2ab8cc6b1197e426cd6c58c3b582624d1cfd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 OpenStack Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
36.127358
78
0.685468
edecc44b113ec7c2667edd65b605a3a327558ff1
2,082
py
Python
source/tests/test_data_type_mutations.py
pankajagrawal16/aws-control-tower-customizations
e4752bf19a1c8f0a597195982d63a1a2c2dd799a
[ "Apache-2.0" ]
1
2020-02-11T16:34:09.000Z
2020-02-11T16:34:09.000Z
source/tests/test_data_type_mutations.py
pankajagrawal16/aws-control-tower-customizations
e4752bf19a1c8f0a597195982d63a1a2c2dd799a
[ "Apache-2.0" ]
null
null
null
source/tests/test_data_type_mutations.py
pankajagrawal16/aws-control-tower-customizations
e4752bf19a1c8f0a597195982d63a1a2c2dd799a
[ "Apache-2.0" ]
null
null
null
###################################################################################################################### # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
61.235294
134
0.446686
b61fea75c50705df58c217578b256772b4157aa4
9,947
py
Python
venv/lib/python3.8/site-packages/pip/_vendor/urllib3/util/timeout.py
liuzhongning/python_learn
47d471e40e6c25271faab549dfa235849264c3b4
[ "MIT" ]
178
2017-07-18T18:58:36.000Z
2022-03-31T03:12:52.000Z
env/Lib/site-packages/pip/_vendor/urllib3/util/timeout.py
aammjian/cotton
f72b814f795f79a4054688e465c8b0ae5560f3b7
[ "Apache-2.0" ]
301
2020-10-03T10:46:31.000Z
2022-03-27T23:46:23.000Z
env/Lib/site-packages/pip/_vendor/urllib3/util/timeout.py
aammjian/cotton
f72b814f795f79a4054688e465c8b0ae5560f3b7
[ "Apache-2.0" ]
86
2022-01-04T06:32:30.000Z
2022-03-30T13:05:51.000Z
from __future__ import absolute_import # The default socket timeout, used by httplib to indicate that no timeout was # specified by the user from socket import _GLOBAL_DEFAULT_TIMEOUT import time from ..exceptions import TimeoutStateError # A sentinel value to indicate that no timeout was specified by the user in # ...
37.965649
84
0.640193
42744dc1384a54c5a3861caccf53bf77081b9c59
4,890
py
Python
tests/test_similarity_smc.py
private-record-linkage/anonlink
ac3919b38b97ee1ead397dfa4050e533b1a80681
[ "Apache-2.0" ]
36
2019-04-30T21:01:13.000Z
2022-02-23T05:28:19.000Z
tests/test_similarity_smc.py
private-record-linkage/anonlink
ac3919b38b97ee1ead397dfa4050e533b1a80681
[ "Apache-2.0" ]
328
2019-04-15T05:19:36.000Z
2022-03-09T15:10:14.000Z
tests/test_similarity_smc.py
private-record-linkage/anonlink
ac3919b38b97ee1ead397dfa4050e533b1a80681
[ "Apache-2.0" ]
9
2019-04-15T01:51:20.000Z
2021-04-19T05:52:50.000Z
import itertools import random import pytest from bitarray import bitarray from anonlink.similarities._smc import _smc_sim from anonlink.similarities import (hamming_similarity, simple_matching_coefficient) SIM_FUNS = [hamming_similarity, simple_matching_coefficient] def test_smc...
39.756098
78
0.579346
2f975d3d870a8284c9bac08a5b41dd92ffabfebf
1,743
py
Python
_scripts/postPumlsToServer.py
carlosraphael/java-design-patterns
e425c2ef2f721600e14b59d67eb5ef27759113f0
[ "MIT" ]
1
2020-03-29T07:29:10.000Z
2020-03-29T07:29:10.000Z
_scripts/postPumlsToServer.py
trileminh94/java-design-patterns
e425c2ef2f721600e14b59d67eb5ef27759113f0
[ "MIT" ]
null
null
null
_scripts/postPumlsToServer.py
trileminh94/java-design-patterns
e425c2ef2f721600e14b59d67eb5ef27759113f0
[ "MIT" ]
1
2020-05-01T10:11:18.000Z
2020-05-01T10:11:18.000Z
import requests, glob, re, os # taken from here: http://stackoverflow.com/a/13641746 def replace(file, pattern, subst): # Read contents from file as a single string file_handle = open(file, 'r') file_string = file_handle.read() file_handle.close() # Use RE package to allow for replacement (also al...
38.733333
172
0.662651
e31aed23b6749c406031290c0080e2b2e64f86cc
328
py
Python
app/email.py
NzauM/Blogs
0fed162b34bda0cfb8f9ed01987d6d618bc9fe7f
[ "MIT" ]
null
null
null
app/email.py
NzauM/Blogs
0fed162b34bda0cfb8f9ed01987d6d618bc9fe7f
[ "MIT" ]
null
null
null
app/email.py
NzauM/Blogs
0fed162b34bda0cfb8f9ed01987d6d618bc9fe7f
[ "MIT" ]
null
null
null
from flask_mail import Message from flask import render_template from . import mail def mail_message(subject,template,to,**kwargs): sender_email = "nzauprojects@gmail.com" email = Message(subject, sender=sender_email, recipients=[to]) email.html = render_template(template + ".html",**kwargs) mail.sen...
29.818182
66
0.746951
87a1d34b3c942d2051d31ce52c4beec53143092e
712
py
Python
ansible/roles/db/molecule/default/tests/test_default.py
kvaga/infra
d65fdbcf9bff2ebb53f4172c1f5437898e45807f
[ "MIT" ]
1
2020-06-15T16:59:53.000Z
2020-06-15T16:59:53.000Z
ansible/roles/db/molecule/default/tests/test_default.py
kvaga/infra
d65fdbcf9bff2ebb53f4172c1f5437898e45807f
[ "MIT" ]
2
2019-06-13T13:01:30.000Z
2019-06-30T18:59:19.000Z
ansible/roles/db/molecule/default/tests/test_default.py
kvaga/infra
d65fdbcf9bff2ebb53f4172c1f5437898e45807f
[ "MIT" ]
1
2020-06-09T11:40:54.000Z
2020-06-09T11:40:54.000Z
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') # check if MongoDB is using right port def test_mongo_port(host): socket = host.socket("tcp://0.0.0.0:27017") assert socket.is_listening ...
29.666667
63
0.759831
c300dcd52798b88e21b853baf4665be6b9d9f2fa
5,314
py
Python
python/lib/Lib/site-packages/django/contrib/gis/db/models/sql/query.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
django/contrib/gis/db/models/sql/query.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
django/contrib/gis/db/models/sql/query.py
mradziej/django
5d38965743a369981c9a738a298f467f854a2919
[ "BSD-3-Clause" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
from django.db import connections from django.db.models.query import sql from django.contrib.gis.db.models.fields import GeometryField from django.contrib.gis.db.models.sql import aggregates as gis_aggregates from django.contrib.gis.db.models.sql.conversion import AreaField, DistanceField, GeomField from django.contri...
44.283333
97
0.65111
0ef1e0b23c2ddadf2ebae89fdac03126d2b06aab
362
py
Python
actions/chef_ohai.py
StackStorm-Exchange/stackstorm-chef
3b16fddb07b78a8a37ccdbb0f051c660e7b75bd9
[ "Apache-2.0" ]
3
2019-04-28T04:50:18.000Z
2022-03-06T09:04:20.000Z
actions/chef_ohai.py
StackStorm-Exchange/stackstorm-chef
3b16fddb07b78a8a37ccdbb0f051c660e7b75bd9
[ "Apache-2.0" ]
null
null
null
actions/chef_ohai.py
StackStorm-Exchange/stackstorm-chef
3b16fddb07b78a8a37ccdbb0f051c660e7b75bd9
[ "Apache-2.0" ]
1
2021-01-28T17:43:14.000Z
2021-01-28T17:43:14.000Z
#!/usr/bin/env python3 import sys from lib import shellhelpers as shell def _locate_ohai(): return 'ohai' if __name__ == '__main__': # this is a workaround since we use run-remote and it # passes missing command as None in argv. command = ([_locate_ohai()] + [i for i in sys.argv[1:] if i != 'None']...
21.294118
75
0.668508
4209a2a10115c32f50ba0c0476388f918c0c2ff2
26,595
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fCoEGPS_template.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fCoEGPS_template.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/fCoEGPS_template.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class FCoEGPS(Base): __slots__ = () _SDM_NAME = 'fCoEGPS' _SDM_ATT_MAP = { 'FcoeHeaderVersion': 'fCoEGPS.header.fcoeHeader.version-1', 'FcoeHeaderReserved': 'fCoEGPS.header.fcoeHeader.reserved-2', 'Fcoe...
39.341716
519
0.667381
fb8f4f4332892f85e068f46e07aa5d606bd009f3
9,504
py
Python
bpnet/models.py
AlanNawzadAmin/bpnet
4c42ad189a624fa82ef97d48117a92a7fb70e830
[ "MIT" ]
null
null
null
bpnet/models.py
AlanNawzadAmin/bpnet
4c42ad189a624fa82ef97d48117a92a7fb70e830
[ "MIT" ]
null
null
null
bpnet/models.py
AlanNawzadAmin/bpnet
4c42ad189a624fa82ef97d48117a92a7fb70e830
[ "MIT" ]
null
null
null
import numpy as np import keras.layers as kl from keras.optimizers import Adam from keras.models import Model from concise.utils.helper import get_from_module import bpnet import bpnet.losses as blosses import gin import keras # TODO - setup the following model as a simple bpnet (?) @gin.configurable def bpnet_model...
42.618834
101
0.504104
acc9d8c25d9106c2b80d48fd98cc69973be9181f
13,392
py
Python
openprocurement/tender/core/tests/utils.py
openprocurement/openprocurement.tender.core
4a22d8eb4d6fe676f9bc01182f83d50b779c3a8d
[ "Apache-2.0" ]
1
2021-11-18T16:34:33.000Z
2021-11-18T16:34:33.000Z
openprocurement/tender/core/tests/utils.py
openprocurement/openprocurement.tender.core
4a22d8eb4d6fe676f9bc01182f83d50b779c3a8d
[ "Apache-2.0" ]
30
2017-03-22T12:16:17.000Z
2018-08-08T04:27:28.000Z
openprocurement/tender/core/tests/utils.py
openprocurement/openprocurement.tender.core
4a22d8eb4d6fe676f9bc01182f83d50b779c3a8d
[ "Apache-2.0" ]
13
2017-02-22T15:59:17.000Z
2018-05-11T06:17:28.000Z
# -*- coding: utf-8 -*- import unittest from copy import deepcopy from datetime import datetime, timedelta, time from mock import patch, MagicMock, call from schematics.transforms import wholelist from schematics.types import StringType from pyramid.exceptions import URLDecodeError from uuid import uuid4 from openprocu...
38.59366
79
0.648073
f69a357a002c4d15374120d54dbad89387c0e497
76,801
py
Python
sky/tools/webkitpy/layout_tests/port/base.py
gitFreeByte/sky_engine
05c9048930f8a0d39c2f6385ba691eccbbdabb20
[ "BSD-3-Clause" ]
1
2021-06-12T00:47:11.000Z
2021-06-12T00:47:11.000Z
sky/tools/webkitpy/layout_tests/port/base.py
gitFreeByte/sky_engine
05c9048930f8a0d39c2f6385ba691eccbbdabb20
[ "BSD-3-Clause" ]
null
null
null
sky/tools/webkitpy/layout_tests/port/base.py
gitFreeByte/sky_engine
05c9048930f8a0d39c2f6385ba691eccbbdabb20
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2010 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 ...
43.986827
189
0.642179
fe7ec3f5152913a84a02cb96cc876646ef913e05
4,204
py
Python
etc/scripts/licenses/golic.py
s4-2/scancode-toolkit
8931b42e2630b94d0cabc834dfb3c16f01f82321
[ "Apache-2.0", "CC-BY-4.0" ]
1,511
2015-07-01T15:29:03.000Z
2022-03-30T13:40:05.000Z
etc/scripts/licenses/golic.py
s4-2/scancode-toolkit
8931b42e2630b94d0cabc834dfb3c16f01f82321
[ "Apache-2.0", "CC-BY-4.0" ]
2,695
2015-07-01T16:01:35.000Z
2022-03-31T19:17:44.000Z
etc/scripts/licenses/golic.py
s4-2/scancode-toolkit
8931b42e2630b94d0cabc834dfb3c16f01f82321
[ "Apache-2.0", "CC-BY-4.0" ]
540
2015-07-01T15:08:19.000Z
2022-03-31T12:13:11.000Z
# -*- coding: utf-8 -*- # # Copyright (c) nexB Inc. and others. All rights reserved. # ScanCode is a trademark of nexB Inc. # SPDX-License-Identifier: Apache-2.0 # See http://www.apache.org/licenses/LICENSE-2.0 for the license text. # See https://github.com/nexB/scancode-toolkit for support or download. # See https://a...
30.028571
102
0.588963
d8344232260d1f664ce2f2ad7d8cc8322e4632ba
125
py
Python
genesis/__init__.py
zznop/bn-genesis
f198143425184010c0e3894f004a8de34f3ccaf6
[ "MIT" ]
24
2019-03-10T15:33:36.000Z
2022-03-14T04:04:38.000Z
genesis/__init__.py
zznop/bn-genesis
f198143425184010c0e3894f004a8de34f3ccaf6
[ "MIT" ]
3
2019-07-04T20:10:06.000Z
2020-04-25T03:28:23.000Z
genesis/__init__.py
zznop/bn-genesis
f198143425184010c0e3894f004a8de34f3ccaf6
[ "MIT" ]
null
null
null
from .loader import * from .checksum import * from .assemble import * from .call_table_enum import * GenesisView.register()
17.857143
30
0.768
659eaba0ae8558df49599ec1ac62501a3ec6cf8e
2,210
py
Python
pettingzoo/gamma/prospector/manual_control.py
AnanthHari/PettingZoo
c147c2992a067fd529570db0bea6a0324f01ee6e
[ "MIT" ]
null
null
null
pettingzoo/gamma/prospector/manual_control.py
AnanthHari/PettingZoo
c147c2992a067fd529570db0bea6a0324f01ee6e
[ "MIT" ]
null
null
null
pettingzoo/gamma/prospector/manual_control.py
AnanthHari/PettingZoo
c147c2992a067fd529570db0bea6a0324f01ee6e
[ "MIT" ]
null
null
null
import pygame import numpy as np from . import constants as const # from prospector import constants as const def manual_control(**kwargs): from .prospector import env as _env env = _env(**kwargs) env.reset() default_scalar = 1 agent = 0 done = False quit_while = False while not done...
35.645161
65
0.515385
752c12c0410b8b7f953fe42e7bb892ac59dd18ba
11,156
py
Python
pdoc/extract.py
Bruntaz/pdoc
60e4b6d9666f88dab7739cf31c639a45b6a8b11b
[ "Unlicense" ]
null
null
null
pdoc/extract.py
Bruntaz/pdoc
60e4b6d9666f88dab7739cf31c639a45b6a8b11b
[ "Unlicense" ]
null
null
null
pdoc/extract.py
Bruntaz/pdoc
60e4b6d9666f88dab7739cf31c639a45b6a8b11b
[ "Unlicense" ]
null
null
null
""" This module handles the interaction with Python's module system, that is it loads the correct module based on whatever the user specified, and provides the rest of pdoc with some additional module metadata. """ from __future__ import annotations import importlib import importlib.util import io import linecache imp...
36.220779
118
0.629437
d7228a80b62953d924be7c6dedcd206a9d1d595d
922
py
Python
tests/components/cloud/__init__.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
tests/components/cloud/__init__.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
tests/components/cloud/__init__.py
pcaston/Open-Peer-Power
81805d455c548e0f86b0f7fedc793b588b2afdfd
[ "Apache-2.0" ]
null
null
null
"""Tests for the cloud component.""" from unittest.mock import patch from openpeerpower.components import cloud from openpeerpower.components.cloud import const from openpeerpower.setup import async_setup_component from tests.common import mock_coro async def mock_cloud(opp, config=None): """Mock cloud.""" ...
31.793103
82
0.73102
710ea4975e99459f4a82717b46e5a5f5c9c51b95
625
py
Python
setup.py
Gscorreia89/pyChemometrics
16f3b4a1af873cf7240230439b503c5aee751ce7
[ "BSD-3-Clause" ]
22
2017-11-27T13:24:42.000Z
2022-01-14T18:09:23.000Z
setup.py
Gscorreia89/pyChemometrics
16f3b4a1af873cf7240230439b503c5aee751ce7
[ "BSD-3-Clause" ]
1
2018-04-23T11:12:28.000Z
2018-04-23T11:12:28.000Z
setup.py
Gscorreia89/pyChemometrics
16f3b4a1af873cf7240230439b503c5aee751ce7
[ "BSD-3-Clause" ]
13
2017-11-27T13:23:51.000Z
2021-06-23T17:35:44.000Z
from setuptools import setup setup( name='pyChemometrics', version='0.13.5', packages=['pyChemometrics'], url='https://github.com/Gscorreia89/pyChemometrics/', documentation='http://pychemometrics.readthedocs.io/en/stable/', license='BSD 3-Clause License', author='Gonçalo Correia', setu...
36.764706
102
0.6976
ba8d72c7c300dd65e3b54715fe6fa23ecc1037dc
551
py
Python
UsbDetector.py
devoctomy/piperformancerecorder
d1d1716a72f339ebfde502d47e11d70b6a0e1ee5
[ "MIT" ]
null
null
null
UsbDetector.py
devoctomy/piperformancerecorder
d1d1716a72f339ebfde502d47e11d70b6a0e1ee5
[ "MIT" ]
null
null
null
UsbDetector.py
devoctomy/piperformancerecorder
d1d1716a72f339ebfde502d47e11d70b6a0e1ee5
[ "MIT" ]
null
null
null
import threading class UsbDetector(): def __init__(self): thread = threading.Thread(target=self._work) thread.daemon = True thread.start() def _work(self): self.context = pyudev.Context() self.monitor = pyudev.Monitor.from_netlink(self.context) self.monitor.fil...
29
64
0.586207
779a0eac0b0f647e9dc8a17eaea365b730f8d407
419
py
Python
wolfram-query.py
alebml/athena
b5e7603ff830eef43469ffc32d39a1260e50bf0b
[ "MIT" ]
null
null
null
wolfram-query.py
alebml/athena
b5e7603ff830eef43469ffc32d39a1260e50bf0b
[ "MIT" ]
null
null
null
wolfram-query.py
alebml/athena
b5e7603ff830eef43469ffc32d39a1260e50bf0b
[ "MIT" ]
null
null
null
import wolframalpha app_id = "L4YVH6-HPV69WKAWQ" def wolframQuery(_input, _appid = "L4YVH6-HPV69WKAWQ"): client = wolframalpha.Client(_appid) res = client.query(str(_input)) try: (next(res.results).text) return str((next(res.results).text)) except: return "Input failed." def testWolframQuery(): print(w...
19.045455
55
0.706444
d66c311ef63fa07f2b31cbdd8a9dd92c00f92003
1,483
py
Python
Tutorials/02_drive_square.py
Iceman1590/AT-TVectorAirgig
7a3fb03ba9c2dd53108d6e8164d36938e56187e1
[ "Apache-2.0" ]
null
null
null
Tutorials/02_drive_square.py
Iceman1590/AT-TVectorAirgig
7a3fb03ba9c2dd53108d6e8164d36938e56187e1
[ "Apache-2.0" ]
null
null
null
Tutorials/02_drive_square.py
Iceman1590/AT-TVectorAirgig
7a3fb03ba9c2dd53108d6e8164d36938e56187e1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 Anki, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License in the file LICENSE.txt or at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unle...
32.955556
81
0.70735
cb78a06dcc72b83c7b96330814202e8f7786e009
62,630
py
Python
zerver/lib/export.py
Rishabh570/zulip
0600646fbfdcfb20c0c0d47950690a6efac873aa
[ "Apache-2.0" ]
null
null
null
zerver/lib/export.py
Rishabh570/zulip
0600646fbfdcfb20c0c0d47950690a6efac873aa
[ "Apache-2.0" ]
11
2021-02-08T20:59:55.000Z
2022-03-12T00:51:41.000Z
zerver/lib/export.py
usmanmuhd/zulip
0600646fbfdcfb20c0c0d47950690a6efac873aa
[ "Apache-2.0" ]
null
null
null
import datetime from boto.s3.key import Key from boto.s3.connection import S3Connection from django.conf import settings from django.db import connection from django.forms.models import model_to_dict from django.utils.timezone import make_aware as timezone_make_aware from django.utils.timezone import utc as timezone_ut...
38.73222
182
0.660674
56704bd0d9931b502a0376f90959f4b091d0cd0e
2,282
py
Python
code_icc/archs/cluster/net5g_two_head.py
ThmCuong/IIC-Python3
5a02b40ffa07b159fa7e89cf5b4ed781f4798ff1
[ "MIT" ]
null
null
null
code_icc/archs/cluster/net5g_two_head.py
ThmCuong/IIC-Python3
5a02b40ffa07b159fa7e89cf5b4ed781f4798ff1
[ "MIT" ]
null
null
null
code_icc/archs/cluster/net5g_two_head.py
ThmCuong/IIC-Python3
5a02b40ffa07b159fa7e89cf5b4ed781f4798ff1
[ "MIT" ]
null
null
null
import torch.nn as nn from code_icc.archs.cluster.net5g import ClusterNet5gTrunk from code_icc.archs.cluster.residual import BasicBlock, ResNet # resnet34 and full channels __all__ = ["ClusterNet5gTwoHead"] class ClusterNet5gTwoHeadHead(nn.Module): def __init__(self, config, output_k, semisup=False): super(C...
27.829268
77
0.677038
1cf12b2525aebd5fac1aad5b1a56e738d51d957a
1,667
py
Python
Huangqun-Weibo.py
Huangqun1998/Data-Crawler-Practice
b2691a18e3710b754b94df6383f6e25ec0a256c8
[ "Apache-2.0" ]
1
2021-10-05T05:52:39.000Z
2021-10-05T05:52:39.000Z
Huangqun-Weibo.py
Huangqun1998/Data-Crawler-Practice
b2691a18e3710b754b94df6383f6e25ec0a256c8
[ "Apache-2.0" ]
null
null
null
Huangqun-Weibo.py
Huangqun1998/Data-Crawler-Practice
b2691a18e3710b754b94df6383f6e25ec0a256c8
[ "Apache-2.0" ]
7
2020-08-09T09:52:15.000Z
2020-08-16T08:04:02.000Z
import requests import json import pymysql class Spider: def __init__(self): self.flag = True self.url = 'https://m.weibo.cn/api/container/getIndex?is_all[]=1%3Fis_all%3D1&is_all[]=1&jumpfrom=weibocom&type=uid&value=3604378011&containerid=1076033604378011' self.headers = { "Use...
34.729167
199
0.613677