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
13c6792424b30063b9f89e747c2b1468df519743
4,372
py
Python
frontend/amundsen_application/__init__.py
stswn/amundsen
49724624c70bdd3043784a8474fa635f67873eab
[ "Apache-2.0" ]
null
null
null
frontend/amundsen_application/__init__.py
stswn/amundsen
49724624c70bdd3043784a8474fa635f67873eab
[ "Apache-2.0" ]
null
null
null
frontend/amundsen_application/__init__.py
stswn/amundsen
49724624c70bdd3043784a8474fa635f67873eab
[ "Apache-2.0" ]
null
null
null
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import ast import importlib import logging import logging.config import os import warnings from flask import Flask, Blueprint from flask_restful import Api from amundsen_application.api import init_routes from amundsen_applicatio...
42.862745
111
0.770357
db9ad3095904add4656fffc486d64d726ee32c84
15,180
py
Python
varnish/datadog_checks/varnish/varnish.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
2
2019-05-28T03:48:29.000Z
2019-07-05T07:05:58.000Z
varnish/datadog_checks/varnish/varnish.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
4
2019-07-03T02:53:19.000Z
2019-07-10T14:52:14.000Z
varnish/datadog_checks/varnish/varnish.py
glasser/integrations-core
1dd515d49b1690a1369ee5195713605b1b072b1f
[ "BSD-3-Clause" ]
1
2020-01-15T16:58:51.000Z
2020-01-15T16:58:51.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import json import re import shlex import xml.parsers.expat # python 2.4 compatible from collections import defaultdict from distutils.version import LooseVersion from os import geteuid from six import PY3, iter...
45.449102
116
0.543808
e1adca5ca81262dcee99b9e8b3ca2f07ed9afb5b
1,691
py
Python
addons/odoo_shipping_service_apps/models/product_packaging.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/odoo_shipping_service_apps/models/product_packaging.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/odoo_shipping_service_apps/models/product_packaging.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
# -*- coding: utf-8 -*- ################################################################################# ## Copyright (c) 2018-Present Webkul Software Pvt. Ltd. (<https://webkul.com/>) # You should have received a copy of the License along with this program. # If not, see <https://store.webkul.com/license.htm...
34.510204
82
0.567711
15dd5f3f22de6a6cfa47ea1011d58805103d205e
7,579
py
Python
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_09_01/operations/_baseline_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_09_01/operations/_baseline_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2018_09_01/operations/_baseline_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
50.526667
133
0.677926
165632db701dc82ace23ab80b243be730229702b
37,331
py
Python
test/integration/plugins/nuagevsp/test_nuage_vsp_domain_template.py
cl-k-takahashi/cloudstack
ca17b6a126d8842adb750146a3f843e6acbadd04
[ "Apache-2.0" ]
14
2015-01-12T13:46:12.000Z
2021-07-19T19:33:28.000Z
test/integration/plugins/nuagevsp/test_nuage_vsp_domain_template.py
cl-k-takahashi/cloudstack
ca17b6a126d8842adb750146a3f843e6acbadd04
[ "Apache-2.0" ]
2
2015-04-02T21:08:53.000Z
2015-04-02T21:11:06.000Z
test/integration/plugins/nuagevsp/test_nuage_vsp_domain_template.py
cl-k-takahashi/cloudstack
ca17b6a126d8842adb750146a3f843e6acbadd04
[ "Apache-2.0" ]
8
2015-07-17T12:36:51.000Z
2018-08-09T16:23:40.000Z
# 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 u...
44.654306
79
0.652594
5974d33c0948f55703bd19101734c4ea28ba0262
3,786
py
Python
eclcli/monitoring/monitoringclient/v2/samples.py
hanasuke/eclcli
a72191799986a02596d0d467253fd9f5ee03c5c8
[ "Apache-2.0" ]
32
2016-08-31T04:12:40.000Z
2020-12-11T04:49:57.000Z
eclcli/monitoring/monitoringclient/v2/samples.py
hanasuke/eclcli
a72191799986a02596d0d467253fd9f5ee03c5c8
[ "Apache-2.0" ]
27
2016-09-06T07:50:36.000Z
2021-09-14T09:46:03.000Z
eclcli/monitoring/monitoringclient/v2/samples.py
hanasuke/eclcli
a72191799986a02596d0d467253fd9f5ee03c5c8
[ "Apache-2.0" ]
24
2016-09-02T01:09:09.000Z
2021-01-19T09:14:16.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 # ...
33.504425
79
0.593238
45689584f00f450aa0109bc7163b2da669c1df87
320
py
Python
tests/ansible/lib/modules/custom_python_json_args_module.py
schlueter/mitogen
76102927c81d5dfcc6c91565b2984f24dd3ee678
[ "BSD-3-Clause" ]
null
null
null
tests/ansible/lib/modules/custom_python_json_args_module.py
schlueter/mitogen
76102927c81d5dfcc6c91565b2984f24dd3ee678
[ "BSD-3-Clause" ]
null
null
null
tests/ansible/lib/modules/custom_python_json_args_module.py
schlueter/mitogen
76102927c81d5dfcc6c91565b2984f24dd3ee678
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # I am an Ansible Python JSONARGS module. I should receive an encoding string. import json import sys json_arguments = """<<INCLUDE_ANSIBLE_MODULE_JSON_ARGS>>""" print "{" print " \"changed\": false," print " \"msg\": \"Here is my input\"," print " \"input\": [%s]" % (json_arguments,) print "}"
22.857143
78
0.6625
082703324ed899662ca27015dc019509b2f1f48c
1,097
py
Python
devops/deploy_cf_example.py
MacHu-GWU/awslambda_spider-project
00a14c15e42b93c743fec43f04e16d485861db68
[ "MIT" ]
null
null
null
devops/deploy_cf_example.py
MacHu-GWU/awslambda_spider-project
00a14c15e42b93c743fec43f04e16d485861db68
[ "MIT" ]
null
null
null
devops/deploy_cf_example.py
MacHu-GWU/awslambda_spider-project
00a14c15e42b93c743fec43f04e16d485861db68
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This is an example about how to deploy CloudFormation and integrate it with your DevOps automation scripts. The CloudFormation template will be generated from a python script that taking all configurations and smartly decide which AWS resource and the naming convention should be created. Y...
31.342857
89
0.77484
210c4839efc7c1edf2b52f0d945e20c2664fe4c1
18,739
py
Python
bc/longform/migrations/0009_rename_line_graph.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-02-27T07:27:17.000Z
2021-02-27T07:27:17.000Z
bc/longform/migrations/0009_rename_line_graph.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
null
null
null
bc/longform/migrations/0009_rename_line_graph.py
Buckinghamshire-Digital-Service/buckinghamshire-council
bbbdb52b515bcdfc79a2bd9198dfa4828405370e
[ "BSD-3-Clause" ]
1
2021-06-09T15:56:54.000Z
2021-06-09T15:56:54.000Z
# Generated by Django 2.2.18 on 2021-06-03 11:09 from django.db import migrations import wagtail.contrib.table_block.blocks import wagtail.core.blocks import wagtail.core.fields import wagtail.embeds.blocks import wagtail.images.blocks import bc.longform.blocks import bc.utils.blocks class Migration(migrations.Mig...
48.421189
242
0.306206
e5cebd001db7a021d890dfe7996eaabb85452fdb
14,349
py
Python
gooddata-afm-client/gooddata_afm_client/rest.py
hkad98/gooddata-python-sdk
64942080ecb44c2d8e914e57f7a591daa6cca205
[ "MIT" ]
null
null
null
gooddata-afm-client/gooddata_afm_client/rest.py
hkad98/gooddata-python-sdk
64942080ecb44c2d8e914e57f7a591daa6cca205
[ "MIT" ]
null
null
null
gooddata-afm-client/gooddata_afm_client/rest.py
hkad98/gooddata-python-sdk
64942080ecb44c2d8e914e57f7a591daa6cca205
[ "MIT" ]
null
null
null
""" OpenAPI definition No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0 Contact: support@gooddata.com Generated by: https://openapi-generator.tech """ import io import json import logg...
40.533898
150
0.554394
0f242681c80f72b7efde4a749a7760ecd8830042
299
py
Python
apps/auth/view.py
dafinoer/flask-largefile
59cb41361802610717ff07ee7541d3b4eca63471
[ "MIT" ]
null
null
null
apps/auth/view.py
dafinoer/flask-largefile
59cb41361802610717ff07ee7541d3b4eca63471
[ "MIT" ]
null
null
null
apps/auth/view.py
dafinoer/flask-largefile
59cb41361802610717ff07ee7541d3b4eca63471
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template mod_auth = Blueprint('auth', __name__, url_prefix='/auth') @mod_auth.route('/signin/', methods=['GET', 'POST']) def hello_world(): context = { 'title': 'hallo world' } return render_template('auth/register.html', context=context)
23
65
0.675585
5f3478e401527abd6ebdb8a6daf69394af0b5680
1,452
py
Python
bsuite/tests/sweep_test.py
neale/bsuite
0430d90bc2d74d604f5a2215bc524de4c614d97e
[ "Apache-2.0" ]
2
2020-03-11T07:32:03.000Z
2021-02-17T20:19:03.000Z
bsuite/tests/sweep_test.py
neale/bsuite
0430d90bc2d74d604f5a2215bc524de4c614d97e
[ "Apache-2.0" ]
null
null
null
bsuite/tests/sweep_test.py
neale/bsuite
0430d90bc2d74d604f5a2215bc524de4c614d97e
[ "Apache-2.0" ]
1
2020-09-06T00:35:43.000Z
2020-09-06T00:35:43.000Z
# pylint: disable=g-bad-file-header # Copyright 2019 DeepMind Technologies Limited. 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/...
32.266667
78
0.723829
0f3241d69896626df436b522376df8a0f4017930
697
py
Python
blog/user/models.py
lyh001126/blog
ed6697e7ccce3f7376d70944b3985da1503af875
[ "MIT" ]
null
null
null
blog/user/models.py
lyh001126/blog
ed6697e7ccce3f7376d70944b3985da1503af875
[ "MIT" ]
null
null
null
blog/user/models.py
lyh001126/blog
ed6697e7ccce3f7376d70944b3985da1503af875
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class User(AbstractUser): #手机号 mobile=models.CharField(max_length=11,unique=True,blank=False) #头像信息 upload_to图片上传位置 avatar=models.ImageField(upload_to='avatar/%Y%m%d/',blank=True) #简介信息 ...
25.814815
67
0.703013
348231676ff088b4524b3edb4325ff4ccb129a12
21,063
py
Python
nikola/plugins/command/check.py
ivanyschen/nikola
c75adc76f008af7ac37b009f71764f5bf0c48e87
[ "MIT" ]
1,901
2015-01-02T02:49:51.000Z
2022-03-30T23:31:35.000Z
nikola/plugins/command/check.py
ivanyschen/nikola
c75adc76f008af7ac37b009f71764f5bf0c48e87
[ "MIT" ]
1,755
2015-01-01T08:17:16.000Z
2022-03-24T18:02:22.000Z
nikola/plugins/command/check.py
ivanyschen/nikola
c75adc76f008af7ac37b009f71764f5bf0c48e87
[ "MIT" ]
421
2015-01-02T18:06:37.000Z
2022-03-28T23:18:54.000Z
# -*- coding: utf-8 -*- # Copyright © 2012-2021 Roberto Alsina and others. # 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 t...
46.190789
191
0.562123
f1ec9f61d9e017cc676aac7450caaa7cfa959cf7
8,038
py
Python
tests/component_tastypie/test_application.py
newrelic/newrelic-python-agen
4f292ec1219c0daffc5721a7b3a245b97d0f83ba
[ "Apache-2.0" ]
92
2020-06-12T17:53:23.000Z
2022-03-01T11:13:21.000Z
tests/component_tastypie/test_application.py
newrelic/newrelic-python-agen
4f292ec1219c0daffc5721a7b3a245b97d0f83ba
[ "Apache-2.0" ]
347
2020-07-10T00:10:19.000Z
2022-03-31T17:58:56.000Z
tests/component_tastypie/test_application.py
newrelic/newrelic-python-agen
4f292ec1219c0daffc5721a7b3a245b97d0f83ba
[ "Apache-2.0" ]
58
2020-06-17T13:51:57.000Z
2022-03-06T14:26:53.000Z
# Copyright 2010 New Relic, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
37.737089
79
0.741602
34c291f8a24d9a5cfef20181427815e308f103b4
3,463
py
Python
Simulation.py
tahanakabi/Deep-Reinforcenment-learning-for-TCL-control
fdd8f814f5f6bc55df3693dfbcbe94750b246c77
[ "MIT" ]
6
2020-03-14T06:31:50.000Z
2022-03-05T09:12:45.000Z
Simulation.py
tahanakabi/Deep-Reinforcenment-learning-for-TCL-control
fdd8f814f5f6bc55df3693dfbcbe94750b246c77
[ "MIT" ]
1
2021-08-13T02:39:05.000Z
2021-08-13T08:25:48.000Z
Simulation.py
tahanakabi/Deep-Reinforcenment-learning-for-TCL-control
fdd8f814f5f6bc55df3693dfbcbe94750b246c77
[ "MIT" ]
3
2020-04-04T15:02:06.000Z
2022-03-05T09:12:44.000Z
from TCL import TCL import random import pandas as pd from scipy.optimize import minimize import numpy as np import pickle from scipy.optimize import basinhopping iterations = 1000 num_TCLs = 30 import matplotlib.pyplot as plt def createTCLs(n, T0): # initialize a list of TCLs TCLs=[] for i i...
32.669811
128
0.622004
05aca1e779687d9a7cf1295c7386adca098f5cc4
6,739
py
Python
pytorch_translate/research/knowledge_distillation/collect_top_k_probs.py
Atry/translate
c257544d4f991886fefe2abd35c44a9ff913ed03
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/research/knowledge_distillation/collect_top_k_probs.py
Atry/translate
c257544d4f991886fefe2abd35c44a9ff913ed03
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/research/knowledge_distillation/collect_top_k_probs.py
Atry/translate
c257544d4f991886fefe2abd35c44a9ff913ed03
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import numpy as np import torch import torch.nn.functional as F from fairseq import options, progress_bar, utils from pytorch_translate import hybrid_transformer_rnn # noqa from pytorch_translate import rnn # noqa from pytorch_translate import transformer # noqa from pytorch_translate import ...
32.873171
88
0.670129
5d0e96ec0cb24dd9b4f86557aa986069b6986017
13,655
py
Python
analysis/patterns_plot_comparison_timeResolved_multiseed.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
analysis/patterns_plot_comparison_timeResolved_multiseed.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
analysis/patterns_plot_comparison_timeResolved_multiseed.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
4
2020-02-18T09:25:20.000Z
2021-11-20T23:52:29.000Z
# -*- coding: utf-8 -*- """ Spyder Editor time resolved analysis for seeds 10000 to 10007. data points are the mean values within each bin of each seed (10 bins excluding 0 and 1 for input R; 8 seeds) """ from pathlib import Path import numpy as np import matplotlib.pyplot as plt # from scipy.stats import binned_stati...
40.399408
89
0.569828
4c28b2e5478414d5a31b9d078f49f99b9868c05e
23,859
py
Python
library/ceph_volume.py
rammeena/ignas_ceph_install
c09cc468832dce11c1bde4903f7634393b3fca10
[ "Apache-2.0" ]
null
null
null
library/ceph_volume.py
rammeena/ignas_ceph_install
c09cc468832dce11c1bde4903f7634393b3fca10
[ "Apache-2.0" ]
null
null
null
library/ceph_volume.py
rammeena/ignas_ceph_install
c09cc468832dce11c1bde4903f7634393b3fca10
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import datetime import copy import json import os ANSIBLE_METADATA = { 'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: ceph_volume short_description: Create ceph OSDs with ceph-volume description: - Using the ceph-vol...
30.945525
155
0.593151
4d41fbc10e04e5fedfd0d6575c328a805c87133d
5,648
py
Python
openCV/examples/camera_calibration.py
mosesnah-shared/my_baxter_experiment
d6675c9032b73200afab211550242773d85d3cc7
[ "MIT" ]
1
2021-07-21T02:36:04.000Z
2021-07-21T02:36:04.000Z
openCV/examples/camera_calibration.py
mosesnah-shared/my_baxter_experiment
d6675c9032b73200afab211550242773d85d3cc7
[ "MIT" ]
null
null
null
openCV/examples/camera_calibration.py
mosesnah-shared/my_baxter_experiment
d6675c9032b73200afab211550242773d85d3cc7
[ "MIT" ]
null
null
null
# [Updated] [Moses C. Nah] [2021.06.29] # Author: Addison Sears-Collins # https://automaticaddison.com # Description: Perform camera calibration using a chessboard. # [CODE NEED IMPROVEMENT] [Moses C. Nah] import cv2 # Import the OpenCV library to enable computer vision import numpy as...
49.982301
180
0.616678
88e460524401c0b588915d9593a20a85f804b950
346
py
Python
pipeline/log.py
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
pipeline/log.py
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
pipeline/log.py
vincent-octo/risteys
5bb1e70b78988770048b91b42fad025faf98d84a
[ "MIT" ]
null
null
null
import logging from os import getenv level = getenv("LOG_LEVEL", logging.INFO) logger = logging.getLogger("pipeline") handler = logging.StreamHandler() formatter = logging.Formatter( "%(asctime)s %(levelname)-8s %(module)-21s %(funcName)-25s: %(message)s") handler.setFormatter(formatter) logger.addHandler(handle...
24.714286
77
0.754335
a07275ef61b20fe66a6b4e5a75069e1efe9586ec
1,037
py
Python
neurotin/commands/main.py
mscheltienne/neurotin-analysis
841b7d86c0c990169cceb02b40d9eb6bd0d07612
[ "MIT" ]
null
null
null
neurotin/commands/main.py
mscheltienne/neurotin-analysis
841b7d86c0c990169cceb02b40d9eb6bd0d07612
[ "MIT" ]
null
null
null
neurotin/commands/main.py
mscheltienne/neurotin-analysis
841b7d86c0c990169cceb02b40d9eb6bd0d07612
[ "MIT" ]
null
null
null
import glob import os import sys from importlib import import_module from pathlib import Path import neurotin def run(): """Entrypoint for neurotin <command> usage.""" root = Path(__file__).parent valid_commands = sorted(glob.glob(str(root / "neurotin_*.py"))) valid_commands = [ file.split(os...
28.805556
74
0.606557
c3b6263bbef075f56f0092abfa8fbfb0d4e6fdd0
11,911
py
Python
mezzanine/forms/migrations/0020_auto__chg_field_field_choices_fr_CH__chg_field_field_choices__chg_fiel.py
agepoly/mezzanine
59d891483d2b58184cac6714068e843e22a0716d
[ "BSD-2-Clause" ]
null
null
null
mezzanine/forms/migrations/0020_auto__chg_field_field_choices_fr_CH__chg_field_field_choices__chg_fiel.py
agepoly/mezzanine
59d891483d2b58184cac6714068e843e22a0716d
[ "BSD-2-Clause" ]
1
2015-10-01T18:22:53.000Z
2021-03-06T12:13:31.000Z
mezzanine/forms/migrations/0020_auto__chg_field_field_choices_fr_CH__chg_field_field_choices__chg_fiel.py
agepoly/mezzanine
59d891483d2b58184cac6714068e843e22a0716d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Field.choices_fr_CH' db.alter_column(u'forms_field', '...
81.582192
167
0.570229
5ffa44b7f6e0d108dc763a90a46c8c3bec490e17
3,977
py
Python
kindred/saveFunctions.py
wasimaftab/kindred
bb737006843ad1ab4062e5b26864ccda1efd7216
[ "MIT" ]
null
null
null
kindred/saveFunctions.py
wasimaftab/kindred
bb737006843ad1ab4062e5b26864ccda1efd7216
[ "MIT" ]
null
null
null
kindred/saveFunctions.py
wasimaftab/kindred
bb737006843ad1ab4062e5b26864ccda1efd7216
[ "MIT" ]
null
null
null
import os import codecs import kindred import bioc import six def convertKindredCorpusToBioCCollection(corpus): assert isinstance(corpus,kindred.Corpus) collection = bioc.BioCCollection() for kdoc in corpus.documents: assert isinstance(kdoc,kindred.Document) biocDoc = bioc.BioCDocument() collection.add_doc...
29.242647
139
0.709832
522fa91667cb553ef814f5ccd82f9bb5ddbe2f35
1,273
py
Python
src/api/endpoint/ws.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
7
2022-02-06T09:49:27.000Z
2022-03-03T14:23:32.000Z
src/api/endpoint/ws.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
null
null
null
src/api/endpoint/ws.py
PKU-GeekGame/gs-backend
d13219609d4e52810540bda6a3bddac1bf5406ce
[ "MIT" ]
null
null
null
from sanic import Blueprint, Request from sanic.server.websockets.impl import WebsocketImplProtocol import json from .. import get_cur_user bp = Blueprint('ws', url_prefix='/ws') @bp.websocket('/push') async def push(req: Request, ws: WebsocketImplProtocol) -> None: # xxx: cannot use dependency injection in webs...
33.5
89
0.641005
348b5ae649a30fce4320a6132fa1e17c56caeb03
5,553
py
Python
tfmpl/figure.py
cuijianaaa/tf-matplotlib
a197b77f71c32c56e54368d716d9603fd3903f1a
[ "MIT" ]
null
null
null
tfmpl/figure.py
cuijianaaa/tf-matplotlib
a197b77f71c32c56e54368d716d9603fd3903f1a
[ "MIT" ]
null
null
null
tfmpl/figure.py
cuijianaaa/tf-matplotlib
a197b77f71c32c56e54368d716d9603fd3903f1a
[ "MIT" ]
null
null
null
# Copyright 2018 Christoph Heindl. # # Licensed under MIT License # ============================================================ import tensorflow as tf import traceback import numpy as np from functools import wraps from tfmpl.meta import vararg_decorator, as_list from tfmpl.meta import PositionalTensorArgs def fig...
39.94964
111
0.623087
2a10bdadf74479e4623ce15bb8c272b807080e4c
1,287
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/utilities/logic/fail.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/modules/utilities/logic/fail.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/modules/utilities/logic/fail.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2012, Dag Wieers <dag@wieers.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1'...
27.978261
92
0.700078
ff9471bb475a6ec15efbef2a221292e76a022719
87
py
Python
InteractivePython/week01/logic.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2020-10-12T13:33:29.000Z
2020-10-12T13:33:29.000Z
InteractivePython/week01/logic.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
null
null
null
InteractivePython/week01/logic.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2016-11-09T07:28:45.000Z
2016-11-09T07:28:45.000Z
#!/usr/bin/env python3 a = True b = False print('===') print(a and b) print(a or b)
8.7
22
0.586207
8bc6882bc5e6d2612f72399cb4cba82b8d43735a
2,090
py
Python
bokeh/_testing/plugins/log_file.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
bokeh/_testing/plugins/log_file.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
bokeh/_testing/plugins/log_file.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.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. #-------------------------------------------------------------------...
34.262295
82
0.280383
8024b4185f7899ebcdd70a2e170ee891436256b0
1,664
py
Python
vendor/packages/translate-toolkit/translate/convert/test_tiki2po.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
2
2019-08-19T17:08:47.000Z
2019-10-05T11:37:02.000Z
vendor/packages/translate-toolkit/translate/convert/test_tiki2po.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
vendor/packages/translate-toolkit/translate/convert/test_tiki2po.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # tiki2po unit tests # Author: Wil Clouser <wclouser@mozilla.com> # Date: 2008-12-01 from translate.convert import tiki2po from translate.storage import tiki from translate.convert import test_convert from translate.misc import wStringIO class TestTiki2Po: def test_c...
29.192982
71
0.66887
0aa0e1e075e51042727c959b12bb76c1c7573094
2,926
py
Python
mirai/views.py
mboukhalfa/backend
5c3c3bd375ed1110ccda517b30c36003ca4b0426
[ "MIT" ]
null
null
null
mirai/views.py
mboukhalfa/backend
5c3c3bd375ed1110ccda517b30c36003ca4b0426
[ "MIT" ]
null
null
null
mirai/views.py
mboukhalfa/backend
5c3c3bd375ed1110ccda517b30c36003ca4b0426
[ "MIT" ]
null
null
null
from dsmirai.persistent_model import dashboard_helper from rest_framework import status from rest_framework.views import APIView from rest_framework import viewsets from rest_framework.response import Response from mirai import tasks from mirai.permissions import IsOwner from mirai.models import IaaS, IaaSConsumptio...
28.407767
110
0.682843
904332360e464c0df023d0072493a1f74f93bf8d
4,444
py
Python
airflow/_vendor/connexion/options.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
airflow/_vendor/connexion/options.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
airflow/_vendor/connexion/options.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.000Z
import logging import pathlib from typing import Optional # NOQA try: from swagger_ui_bundle import (swagger_ui_2_path, swagger_ui_3_path) except ImportError: swagger_ui_2_path = swagger_ui_3_path = None MODULE_PATH = pathlib.Path(__file__).absolute().parent NO_UI_MSG = """...
30.648276
86
0.619937
ce9682d085b2cfc21fee8c9a2b9483e9edbe904d
25,249
py
Python
intersight/apis/security_unit_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/security_unit_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/security_unit_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from s...
49.99802
818
0.613727
8c8af814f0ab5b2e041bce2c67ab76d9c39c0c15
310
py
Python
cpt/config.py
theirix/conan-package-tools
73094e19234f0bbe9fe7d99004f39580979c1cc5
[ "MIT" ]
null
null
null
cpt/config.py
theirix/conan-package-tools
73094e19234f0bbe9fe7d99004f39580979c1cc5
[ "MIT" ]
null
null
null
cpt/config.py
theirix/conan-package-tools
73094e19234f0bbe9fe7d99004f39580979c1cc5
[ "MIT" ]
null
null
null
class ConfigManager(object): def __init__(self, conan_api, printer): self._conan_api = conan_api self.printer = printer def install(self, url): self.printer.print_message("Installing config from address %s" % url) self._conan_api.config_install(url, verify_ssl=True)
28.181818
77
0.687097
c2556825d231f056ddb781c5794fce6da1bff025
29,127
py
Python
tests/unit/modules/test_reg.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
tests/unit/modules/test_reg.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
tests/unit/modules/test_reg.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import salt.modules.reg as reg import salt.utils.stringutils import salt.utils.win_reg from salt.exceptions import CommandExecutionError from tests.support.helpers import destructiveTest, random_string from tests.support....
33.556452
88
0.530504
921008acdcaf3eed8a95cf2a915a23685344bc84
2,116
py
Python
src/python/psic/classify/wash_over/prepare_washover.py
UNCG-CSE/Poststorm_Imagery
f963d451050b793d7e8350137e0b145c80e739b5
[ "MIT" ]
7
2019-09-21T15:14:58.000Z
2019-11-04T18:52:37.000Z
src/python/psic/classify/wash_over/prepare_washover.py
UNCG-CSE/Poststorm_Imagery
f963d451050b793d7e8350137e0b145c80e739b5
[ "MIT" ]
744
2019-09-11T01:15:44.000Z
2020-06-09T23:56:16.000Z
src/python/psic/classify/wash_over/prepare_washover.py
UNCG-CSE/Poststorm_Imagery
f963d451050b793d7e8350137e0b145c80e739b5
[ "MIT" ]
6
2019-10-09T11:08:15.000Z
2020-09-16T06:57:33.000Z
import random import warnings from getpass import getuser from os import path import cv2 import numpy as np import pandas as pd from psic.resizer.generate import ResizeImages warnings.filterwarnings("ignore") SEED = 405 def get_washover_data() -> tuple: random.seed = SEED if getuser() == 'mattm': ...
33.0625
119
0.663989
336777a227f39c75722be5f47f499c18a9885955
2,787
py
Python
++version.py
mscroggs/symfem
284248513da1faf12826a52cabe5752b9b6267af
[ "MIT" ]
13
2021-02-05T13:38:29.000Z
2022-03-26T18:41:55.000Z
++version.py
mscroggs/feast
c12ac6def4fa331477a02973a01ef54ee5e233ce
[ "MIT" ]
65
2021-01-01T18:10:56.000Z
2022-03-28T07:40:40.000Z
++version.py
mscroggs/feast
c12ac6def4fa331477a02973a01ef54ee5e233ce
[ "MIT" ]
4
2021-08-10T11:36:04.000Z
2021-09-29T16:13:56.000Z
""" This script increases the version number of Symfem in all the relevant locations. Once this has been run and the code pushed, Symfembot will automatically create a new version tag on GitHub. """ import json from datetime import datetime # Check that CHANGELOG_SINCE_LAST_VERSION.md is not empty with open("CHANGELO...
30.966667
77
0.623968
b50e9d7b91fbffb43746da414439fab9e3e1f309
763
py
Python
tests/engine_tests/test_import_jobs.py
luebbert42/sauron-engine
9d67ecb8254544ec7ac16fbb80b33edc7a9758e3
[ "MIT" ]
30
2019-12-17T09:59:15.000Z
2021-07-14T20:09:52.000Z
tests/engine_tests/test_import_jobs.py
luebbert42/sauron-engine
9d67ecb8254544ec7ac16fbb80b33edc7a9758e3
[ "MIT" ]
367
2020-02-24T17:28:25.000Z
2022-03-15T15:47:46.000Z
tests/engine_tests/test_import_jobs.py
luebbert42/sauron-engine
9d67ecb8254544ec7ac16fbb80b33edc7a9758e3
[ "MIT" ]
5
2020-04-15T10:14:55.000Z
2021-12-21T07:49:06.000Z
from typing import List import pytest from sauron.engine import Engine from pprint import pprint from tests.utils import job_import_module, job_import_module_verbose engine = Engine() class TestFirstEngineCases: def test_can_parse_two_jobs(self): engine.import_jobs(job_import_module) jobs = engin...
30.52
75
0.686763
3083263e0c8db7c91e15f7f7532d527836878714
1,428
py
Python
sandesh/send.py
krantirk/Slack-Sandesh
37bd7aaadfcf432ebc9ca6034b900a4cd10aac1c
[ "MIT" ]
1
2020-04-20T09:29:40.000Z
2020-04-20T09:29:40.000Z
sandesh/send.py
krantirk/Slack-Sandesh
37bd7aaadfcf432ebc9ca6034b900a4cd10aac1c
[ "MIT" ]
null
null
null
sandesh/send.py
krantirk/Slack-Sandesh
37bd7aaadfcf432ebc9ca6034b900a4cd10aac1c
[ "MIT" ]
null
null
null
""" A simple slack message sender @author: Kranti Kumar (jagannathrk2020@gmail.com) """ import collections import json import os import requests def send(msg, use_raw=False, webhook=None): """ A function to send messages on slack :param msg: string, list of strings, dictionary (or defaultdict/OrderedDict)...
31.043478
108
0.641457
889955826d62b4fbea475dc91d85ef7ad95b71e0
5,706
py
Python
consensus/poet/sgx/setup.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
1
2018-06-28T07:39:38.000Z
2018-06-28T07:39:38.000Z
consensus/poet/sgx/setup.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
5
2018-05-17T21:56:07.000Z
2018-06-11T19:52:08.000Z
consensus/poet/sgx/setup.py
ltavag/sawtooth-core
50659f23437b27ecd666d4cf129f812e6adaedc4
[ "Apache-2.0" ]
4
2018-06-13T16:28:26.000Z
2018-06-13T16:47:22.000Z
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
35.440994
80
0.6034
7839faff8447fcab1e400d41d1272a46c2077411
1,049
py
Python
colony.py
furubayashim/colony_image_analysis
e49a4b30892a3e803ee1557972564dcdda9a397b
[ "MIT" ]
null
null
null
colony.py
furubayashim/colony_image_analysis
e49a4b30892a3e803ee1557972564dcdda9a397b
[ "MIT" ]
1
2020-06-30T08:47:20.000Z
2020-06-30T08:47:20.000Z
colony.py
furubayashim/colony_image_analysis
e49a4b30892a3e803ee1557972564dcdda9a397b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pandas as pd import numpy as np from PIL import Image file_path = 'D.xlsx' image_path = 'D.jpg' df = pd.read_excel(file_path) im = Image.open(image_path) def cropColony(row,im): '''Crop the bottom half-ish of colony ''' left = row['X'] - row['Width']/4 upper = row['Y'] ...
24.97619
74
0.632984
39382fa3ccc6d72768677cc4c127c49b2e997042
56,521
py
Python
cli/cli.py
TuDatTr/P4STA
d254608f5acd2a33af7b9242287dc6214700e0c8
[ "Apache-2.0" ]
20
2020-09-04T02:55:49.000Z
2022-03-18T13:44:42.000Z
cli/cli.py
TuDatTr/P4STA
d254608f5acd2a33af7b9242287dc6214700e0c8
[ "Apache-2.0" ]
5
2019-12-17T16:56:59.000Z
2021-06-07T08:32:21.000Z
cli/cli.py
TuDatTr/P4STA
d254608f5acd2a33af7b9242287dc6214700e0c8
[ "Apache-2.0" ]
6
2019-12-12T22:17:05.000Z
2022-01-14T10:11:32.000Z
# Copyright 2019-present Ralf Kundel, Fridolin Siegmund # # 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 applic...
43.477692
80
0.488703
6e5260e32f44a9ec96d63d9789702e0f6a502da4
18,277
py
Python
.history/implementations/pixelda/pixelda_try_20190106193156.py
Napkin-DL/PyTorch-GAN
4668fb434a74a4e4771631944e4abfb0ec1c8795
[ "MIT" ]
null
null
null
.history/implementations/pixelda/pixelda_try_20190106193156.py
Napkin-DL/PyTorch-GAN
4668fb434a74a4e4771631944e4abfb0ec1c8795
[ "MIT" ]
null
null
null
.history/implementations/pixelda/pixelda_try_20190106193156.py
Napkin-DL/PyTorch-GAN
4668fb434a74a4e4771631944e4abfb0ec1c8795
[ "MIT" ]
null
null
null
import argparse import os import numpy as np import math import itertools import torchvision.transforms as transforms from torchvision.utils import save_image from torch.utils.data import DataLoader from torchvision import datasets from torch.autograd import Variable from mnistm import MNISTM import torch.nn as nn ...
39.053419
145
0.64852
a2601efb61a73043f2dfa595b607e6ab49141f5e
14
py
Python
global_config.py
roc-and-roll/roc-and-rollies
bc46366f7d0361f7c40bee3a5a65aba43185ed02
[ "MIT" ]
2
2016-04-16T20:42:57.000Z
2016-09-13T08:16:54.000Z
global_config.py
roc-and-roll/roc-and-rollies
bc46366f7d0361f7c40bee3a5a65aba43185ed02
[ "MIT" ]
11
2016-03-26T00:09:21.000Z
2016-11-25T13:41:54.000Z
global_config.py
roc-and-roll/roc-and-rollies
bc46366f7d0361f7c40bee3a5a65aba43185ed02
[ "MIT" ]
1
2021-10-12T07:05:58.000Z
2021-10-12T07:05:58.000Z
debug = False
7
13
0.714286
10152dbd5128c9cbf240b308847b89d7ccbbb6f7
14,023
py
Python
contrib/gitian-build.py
minblock/telnetcoin
9ff7f7561e9246290321777b7da8f716ce6cd98c
[ "MIT" ]
null
null
null
contrib/gitian-build.py
minblock/telnetcoin
9ff7f7561e9246290321777b7da8f716ce6cd98c
[ "MIT" ]
null
null
null
contrib/gitian-build.py
minblock/telnetcoin
9ff7f7561e9246290321777b7da8f716ce6cd98c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import subprocess import sys def setup(): global args, workdir programs = ['ruby', 'git', 'apt-cacher-ng', 'make', 'wget'] if args.kvm: programs += ['python-vm-builder', 'qemu-kvm', 'qemu-utils'] elif args.docker: dockers = ['docker.io',...
59.92735
238
0.66013
02282e4dab22fa97a1de7ffa70917fb64ff78b77
985
py
Python
folder_hash/hasher.py
KrazyKirby99999/folder-hash
6a28ffc570e3e9241195231043ebfb9a0145111c
[ "MIT" ]
null
null
null
folder_hash/hasher.py
KrazyKirby99999/folder-hash
6a28ffc570e3e9241195231043ebfb9a0145111c
[ "MIT" ]
null
null
null
folder_hash/hasher.py
KrazyKirby99999/folder-hash
6a28ffc570e3e9241195231043ebfb9a0145111c
[ "MIT" ]
null
null
null
import hashlib import os BUF_SIZE = 65536 class Hasher: def __init__(self, folder_path, hash_algo): self.folder_path = folder_path self.hash_algo = hash_algo self.folder_hash = self.get_hash() def get_hash(self): try: hasher = hashlib.new(self.hash_algo) e...
28.142857
71
0.565482
f08f11e92992bc63537edbb5f9b0933f74f8eadc
89
py
Python
second/data/__init__.py
Michalos88/second-improved
ffb418421a4e12fc49c7312f340649e01ac69632
[ "MIT" ]
3
2020-04-21T03:50:57.000Z
2020-11-15T02:39:35.000Z
second/data/__init__.py
Michalos88/second-improved
ffb418421a4e12fc49c7312f340649e01ac69632
[ "MIT" ]
null
null
null
second/data/__init__.py
Michalos88/second-improved
ffb418421a4e12fc49c7312f340649e01ac69632
[ "MIT" ]
null
null
null
# from . import kitti_dataset # from . import nuscenes_dataset from .import lyft_dataset
22.25
32
0.797753
62fc76e3fdd4e9db5e4bfdba060bd1b431d4832a
14,804
py
Python
src/compat_patcher_core/registry.py
jayvdb/compat-patcher-core
bfeb295092e191735a9c086d2b6dd846e4b89d1b
[ "MIT" ]
4
2019-06-30T21:56:16.000Z
2020-07-16T02:43:05.000Z
src/compat_patcher_core/registry.py
jayvdb/compat-patcher-core
bfeb295092e191735a9c086d2b6dd846e4b89d1b
[ "MIT" ]
2
2020-07-16T03:38:20.000Z
2021-01-19T22:04:19.000Z
src/compat_patcher_core/registry.py
jayvdb/compat-patcher-core
bfeb295092e191735a9c086d2b6dd846e4b89d1b
[ "MIT" ]
1
2020-08-13T03:48:47.000Z
2020-08-13T03:48:47.000Z
from __future__ import absolute_import, print_function, unicode_literals import collections import itertools import six from compat_patcher_core.utilities import ( tuplify_software_version, _import_attribute_from_dotted_string, ) class PatchingRegistry(object): """ This registry is used to store an...
38.451948
107
0.633613
aa031bf937a06c552a61b6346ca54a21ca9e95da
2,842
py
Python
setup.py
mevers303/tika-python
710c17611a2076692d89fe8a9efa858fa7cfa2d8
[ "Apache-2.0" ]
null
null
null
setup.py
mevers303/tika-python
710c17611a2076692d89fe8a9efa858fa7cfa2d8
[ "Apache-2.0" ]
null
null
null
setup.py
mevers303/tika-python
710c17611a2076692d89fe8a9efa858fa7cfa2d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # # 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, Versi...
30.55914
87
0.698452
c0d35b3fd73023a683d2e8ef02de68806d3d5592
22
py
Python
tqsdk/__version__.py
shinny-mayanqiong/tqsdk-python
5e3f22af5900bfd6c9ffa6fbda3bf247ee4c1777
[ "Apache-2.0" ]
3,208
2018-06-12T10:51:17.000Z
2022-03-30T14:40:50.000Z
tqsdk/__version__.py
shinny-mayanqiong/tqsdk-python
5e3f22af5900bfd6c9ffa6fbda3bf247ee4c1777
[ "Apache-2.0" ]
297
2018-07-23T07:42:43.000Z
2021-10-13T05:19:05.000Z
tqsdk/__version__.py
shinny-mayanqiong/tqsdk-python
5e3f22af5900bfd6c9ffa6fbda3bf247ee4c1777
[ "Apache-2.0" ]
656
2018-06-25T06:27:58.000Z
2022-03-31T08:01:14.000Z
__version__ = '2.9.2'
11
21
0.636364
b66f6cd4c260840990b31134b454d457bf49949d
902
py
Python
rentmybike/settings/default.py
vinaychittora/lbr
7867f76014e2c51fa9046bef7a3c31aeba6b7c69
[ "BSD-2-Clause-FreeBSD" ]
5
2015-01-22T08:23:29.000Z
2021-08-19T15:40:34.000Z
rentmybike/settings/default.py
zubeir-Abubakar/rentmybikes
8ac159ca06b9d314c17b4ace5df2b58b3cf70503
[ "BSD-2-Clause-FreeBSD" ]
1
2015-03-17T17:37:44.000Z
2015-03-17T17:37:44.000Z
rentmybike/settings/default.py
zubeir-Abubakar/rentmybikes
8ac159ca06b9d314c17b4ace5df2b58b3cf70503
[ "BSD-2-Clause-FreeBSD" ]
9
2015-03-23T17:59:53.000Z
2021-08-19T14:32:25.000Z
import os as _os APPLICATION_NAME = 'rentmybike' DEBUG = True BASE_PATH = _os.path.abspath( _os.path.join(_os.path.dirname(__file__), '..', '..') ) TEMPLATES = { 'DIRS': [_os.path.join(BASE_PATH, 'templates')], 'TMP_DIR': '/tmp/{}'.format(APPLICATION_NAME), 'STATIC_DIR': _os.path.join(BASE_PATH, 'st...
20.5
74
0.703991
da119c05f9d603f39b5490dc12df7ca72e63e052
379
py
Python
vol2/66.py
EdisonAlgorithms/ProjectEuler
95025ede2c92dbd3ed2dccc0f8a97e9a3db95ef0
[ "MIT" ]
null
null
null
vol2/66.py
EdisonAlgorithms/ProjectEuler
95025ede2c92dbd3ed2dccc0f8a97e9a3db95ef0
[ "MIT" ]
null
null
null
vol2/66.py
EdisonAlgorithms/ProjectEuler
95025ede2c92dbd3ed2dccc0f8a97e9a3db95ef0
[ "MIT" ]
null
null
null
from math import sqrt def minX(d): m, x, y, k, sd = 1, 1, 0, 1, sqrt(d) while k != 1 or y == 0: m = k * (m / k + 1) - m m = m - int((m - sd) / k) * k xx = (x * m + d * y) / abs(k) yy = (x + y * m) / abs(k) k = (m * m - d) / k x = xx y = yy return x if __name__ == '__main__': print max([minX(d), d] f...
23.6875
84
0.453826
c3e9546c9201bea46549447787e5be7946687e33
344
py
Python
kyu_7/isograms/is_isogram.py
ikostan/codewars
69f0ae66e849df102d921cfad3ce2e74bdeda1fc
[ "Unlicense" ]
1
2022-02-12T05:56:04.000Z
2022-02-12T05:56:04.000Z
kyu_7/isograms/is_isogram.py
iKostanOrg/codewars
69f0ae66e849df102d921cfad3ce2e74bdeda1fc
[ "Unlicense" ]
182
2020-04-30T00:51:36.000Z
2021-09-07T04:15:05.000Z
kyu_7/isograms/is_isogram.py
iKostanOrg/codewars
69f0ae66e849df102d921cfad3ce2e74bdeda1fc
[ "Unlicense" ]
4
2020-04-29T22:04:20.000Z
2021-07-13T20:04:14.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ def is_isogram(string: str) -> bool: """ Determines whether a string that contains only letters is an isogram :param string: str :return: bool """ return len(set(string.l...
22.933333
53
0.65407
f3106af9ad5992ac9322a12832071f6de6a7d34e
334
py
Python
python/JournalGUIResourceUsage.Available.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
26
2017-11-23T19:30:03.000Z
2022-02-09T10:35:10.000Z
python/JournalGUIResourceUsage.Available.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
51
2017-11-16T15:02:32.000Z
2022-03-01T13:51:58.000Z
python/JournalGUIResourceUsage.Available.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
9
2017-11-20T09:20:01.000Z
2021-09-15T13:08:30.000Z
import clr def process_input(func, input): if isinstance(input, list): return [func(x) for x in input] else: return func(input) def journalGUIResourceUsageAvailable(jguiru): if jguiru.__repr__() == 'JournalGUIResourceUsage': return jguiru.Available else: return None OUT = process_input(journalGUIResourceUsageAv...
30.363636
75
0.784431
25515edf9812b488ac103a1bd8f4bc13835257cd
66,901
py
Python
trove/tests/api/instances.py
ISCAS-VDI/trove-base
6a13b8771f8c9f259577e79d12355f9142964169
[ "Apache-2.0" ]
null
null
null
trove/tests/api/instances.py
ISCAS-VDI/trove-base
6a13b8771f8c9f259577e79d12355f9142964169
[ "Apache-2.0" ]
null
null
null
trove/tests/api/instances.py
ISCAS-VDI/trove-base
6a13b8771f8c9f259577e79d12355f9142964169
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
39.054874
79
0.621859
f2bd09ce28384e28c1aed270c18be9eb2aa73ec9
283
py
Python
compare_mt/__init__.py
zdou0830/compare-mt
23b156b9f95b0dad74c4f78940effe485165ec2f
[ "BSD-3-Clause" ]
null
null
null
compare_mt/__init__.py
zdou0830/compare-mt
23b156b9f95b0dad74c4f78940effe485165ec2f
[ "BSD-3-Clause" ]
null
null
null
compare_mt/__init__.py
zdou0830/compare-mt
23b156b9f95b0dad74c4f78940effe485165ec2f
[ "BSD-3-Clause" ]
null
null
null
import compare_mt.ngram_utils import compare_mt.stat_utils import compare_mt.corpus_utils import compare_mt.sign_utils import compare_mt.scorers import compare_mt.bucketers import compare_mt.reporters import compare_mt.arg_utils import compare_mt.print_utils __version__ = "0.2.1"
21.769231
30
0.869258
7c9ef0f30f34f762f7af88df108dda9000b6327b
359
py
Python
src/app/error_handlers/names.py
SantaSpeen/web-merchandise-shop
5febf4e88d0b7438b5d4d5b5529d2bf123d0ab28
[ "MIT" ]
null
null
null
src/app/error_handlers/names.py
SantaSpeen/web-merchandise-shop
5febf4e88d0b7438b5d4d5b5529d2bf123d0ab28
[ "MIT" ]
null
null
null
src/app/error_handlers/names.py
SantaSpeen/web-merchandise-shop
5febf4e88d0b7438b5d4d5b5529d2bf123d0ab28
[ "MIT" ]
null
null
null
#!usr/bin/python """ Merchandise shop handled error names. """ NAMES = { 200: "OK", 400: "BAD REQUEST", 401: "Unauthorized", 403: "Forbidden", 404: "Not Found", 410: "Gone", 418: "I'm a teapot", 500: "Internal Server Error", 501: "Not Implemented", 502: "Bad Gateway", } C...
14.958333
41
0.545961
0f1a79794f610f7676939e54194c038907784d16
982
py
Python
utils/utils.py
stefanosantaris/EGAD
9d338a48cedd0048130be98b2f62c48b51211ebf
[ "Apache-2.0" ]
null
null
null
utils/utils.py
stefanosantaris/EGAD
9d338a48cedd0048130be98b2f62c48b51211ebf
[ "Apache-2.0" ]
null
null
null
utils/utils.py
stefanosantaris/EGAD
9d338a48cedd0048130be98b2f62c48b51211ebf
[ "Apache-2.0" ]
1
2020-12-01T14:01:29.000Z
2020-12-01T14:01:29.000Z
import torch import numpy as np import scipy.sparse as sps def pad_with_last_val(vect,k): device = 'cuda' if vect.is_cuda else 'cpu' pad = torch.ones(k - vect.size(0), dtype=torch.long, device = device) * vect[-1] vect = torch.cat([vect,pad]) return vec...
35.071429
70
0.658859
cb401d2971f55c94cc3c207bcb217286796da7fd
364
py
Python
exercicios-Python/ex003.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex003.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/ex003.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
cores = {'azul': '\33[34m', 'brancosublinhado': '\33[4;30m', 'limpador': '\33[m', 'vermelho': '\33[31m'} n1= int(input('Digite um número ')) n2 = int(input('Digite outro número ')) soma = n1 + n2 print('A soma entre {}{}{} e {}{}{} vale {}{}'.format(cores['azul'], n1, cores['limpador'], cores['brancosublinhado'], n2, c...
60.666667
167
0.60989
51f34b6f510219859d86862208be0bb5e7a23a47
7,389
py
Python
PC/VC6/build_ssl.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
1
2021-12-26T22:20:34.000Z
2021-12-26T22:20:34.000Z
PC/VC6/build_ssl.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
null
null
null
PC/VC6/build_ssl.py
ystk/debian-python3.1
6241444a6994140621d1b143a2d6b311b184366a
[ "PSF-2.0" ]
2
2018-08-06T04:37:38.000Z
2022-02-27T18:07:12.000Z
# Script for building the _ssl module for Windows. # Uses Perl to setup the OpenSSL environment correctly # and build OpenSSL, then invokes a simple nmake session # for _ssl.pyd itself. # THEORETICALLY, you can: # * Unpack the latest SSL release one level above your main Python source # directory. It is likely you ...
36.399015
83
0.578427
aac2c847da3da85080206e07674b29cec51bedb6
447
py
Python
setup.py
divio/divio-wagalytics
3b64f0ebb2fd4e8c7eb1f767262036e0eba6bccf
[ "BSD-2-Clause" ]
null
null
null
setup.py
divio/divio-wagalytics
3b64f0ebb2fd4e8c7eb1f767262036e0eba6bccf
[ "BSD-2-Clause" ]
null
null
null
setup.py
divio/divio-wagalytics
3b64f0ebb2fd4e8c7eb1f767262036e0eba6bccf
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from divio_wagalytics import __version__ setup( name='divio-wagalytics', version=__version__, description=open('README.rst').read(), author='Divio AG', author_email='info@divio.com', packages=find_packages(), platforms=['O...
22.35
43
0.671141
f81eef94a821e5f404d977968e4807bb9d33839d
385
py
Python
test/run/t421.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
test/run/t421.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
test/run/t421.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
print repr(1) print repr(100L) print repr(1.5) print repr([]) print repr([1,2,3,4]) print repr(()) print repr((1,2,3,4)) print repr({}) print repr({1:2,3:4}) print repr('') print repr('hello world') print repr(object()) class A(object): def __init__(self): pass print repr(A()) class B: def __init__(self): pa...
16.041667
44
0.649351
521ed046c27cbfaf490ad6d9ad2d77be8366ca36
1,535
py
Python
10.py
ldm5180/aoc-2020
50822fc83aaaa2b2a1418f87122f401972eec5cf
[ "MIT" ]
null
null
null
10.py
ldm5180/aoc-2020
50822fc83aaaa2b2a1418f87122f401972eec5cf
[ "MIT" ]
null
null
null
10.py
ldm5180/aoc-2020
50822fc83aaaa2b2a1418f87122f401972eec5cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys def get_input_file(): return os.path.basename(os.path.abspath(sys.argv[0])).strip(".py") + ".in" def read_input(filename): with open(filename, 'r') as f: data = f.readlines(); num_data = [ int(x.strip()) for x in data ] num_data.sort() ...
26.016949
78
0.52443
0f2af39fadc9e9413efcd368081af33a112699e8
454
py
Python
python_practice/curs_eg/curse_eg4.py
vimm0/python_exercise
7773d95b4c25b82a9d014f7a814ac83df9ebac17
[ "MIT" ]
null
null
null
python_practice/curs_eg/curse_eg4.py
vimm0/python_exercise
7773d95b4c25b82a9d014f7a814ac83df9ebac17
[ "MIT" ]
null
null
null
python_practice/curs_eg/curse_eg4.py
vimm0/python_exercise
7773d95b4c25b82a9d014f7a814ac83df9ebac17
[ "MIT" ]
1
2018-01-04T16:27:31.000Z
2018-01-04T16:27:31.000Z
import curses def make_win(stdscr, h,l, y,x, str): win = stdscr.subwin(h,l, y,x) # ??? win.erase() win.box() win.addstr(2, 2, str) return win def test(stdscr): curses.curs_set(0) stdscr.box() stdscr.addstr(2, 2, "windows everywhere") win1 = make_win(stdscr, 10,12, 5,5, "Window 1") win2 =...
22.7
50
0.621145
e27ffc5195a5c3981a4d6544c0dc7356ec549a3a
754
py
Python
data/modules/graphic/two_D/player_gui/gui_abstract_object.py
Sheidaas/gamee
434db4648e1719a648b8784f201b03b4c8e243c3
[ "CC-BY-3.0" ]
null
null
null
data/modules/graphic/two_D/player_gui/gui_abstract_object.py
Sheidaas/gamee
434db4648e1719a648b8784f201b03b4c8e243c3
[ "CC-BY-3.0" ]
null
null
null
data/modules/graphic/two_D/player_gui/gui_abstract_object.py
Sheidaas/gamee
434db4648e1719a648b8784f201b03b4c8e243c3
[ "CC-BY-3.0" ]
null
null
null
class GuiAbstractObject: def is_clicked(self, mouse): area = (self.position[0] * self.screen.engine.settings.graphic['screen']['resolution_scale'][0], self.position[1] * self.screen.engine.settings.graphic['screen']['resolution_scale'][1], (self.position[0] + self.position[2...
47.125
126
0.600796
106de98ac86ed6f90c07227ae675d837e2f2ca8f
4,332
py
Python
stdplugins/lydia.py
archertanu/ZenBot
af87c40034f4e9b78c29712b56175b79b5e75c15
[ "Apache-2.0" ]
9
2019-09-01T06:38:42.000Z
2020-09-07T08:27:01.000Z
stdplugins/lydia.py
qrovic/userbot
ae917b697818d6a8fe4b439f6f41f156e9cea0a3
[ "Apache-2.0" ]
1
2021-02-08T20:42:44.000Z
2021-02-08T20:42:44.000Z
stdplugins/lydia.py
qrovic/userbot
ae917b697818d6a8fe4b439f6f41f156e9cea0a3
[ "Apache-2.0" ]
5
2019-09-01T17:08:54.000Z
2020-02-20T13:54:58.000Z
"""Lydia AI plugin for @UniBorg .eai <as a reply to user's message //Turns AI on For that user. .dai <as a reply to user's message //Turns AI off For that user. .lai // Outputs List Of Currently added Users in AI Auto-Chat. Description: A module that Act as a chatbot and chat with a User/other Bot. This Module Needs ...
40.111111
133
0.599261
3eeafb1a11bd3b920155648b193c612a1c4409a9
3,561
py
Python
gpu_tests/test_fp16_optimizer.py
dedsecurity/gpt-ded
0ac5a12418c0eb0906ba6072c141a1323ee6470b
[ "MIT" ]
3
2021-12-14T00:58:54.000Z
2021-12-14T00:58:59.000Z
gpu_tests/test_fp16_optimizer.py
dedsecurity/gpt-ded
0ac5a12418c0eb0906ba6072c141a1323ee6470b
[ "MIT" ]
null
null
null
gpu_tests/test_fp16_optimizer.py
dedsecurity/gpt-ded
0ac5a12418c0eb0906ba6072c141a1323ee6470b
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. All Rights Reserved. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import copy import logging import unittest import torch from omegaconf import OmegaConf from metaseq.optim.fp16_optim...
31.794643
87
0.542263
69f9f4f412851761e3313837f8633f458e6cec36
9,960
py
Python
src/data/paraphrase.py
matejklemen/paraphrase-nli
d31ecba7e54eea4c3b098a2de7bc35f538e4e6dc
[ "MIT" ]
null
null
null
src/data/paraphrase.py
matejklemen/paraphrase-nli
d31ecba7e54eea4c3b098a2de7bc35f538e4e6dc
[ "MIT" ]
null
null
null
src/data/paraphrase.py
matejklemen/paraphrase-nli
d31ecba7e54eea4c3b098a2de7bc35f538e4e6dc
[ "MIT" ]
null
null
null
import csv import logging from collections import Counter from io import StringIO from typing import Union, Iterable, Optional from warnings import warn import pandas as pd import torch from src.data import TransformersSeqPairDataset class QQPTransformersDataset(TransformersSeqPairDataset): def __init__(self, p...
38.455598
126
0.604618
9d43c324250ee2f25318e8052e6439885a1c5f35
207
py
Python
Collect/ESACCI/__init__.py
TimHessels/watertools
77bb412a72f068d255d614f4f8a8f2cfb7d78a26
[ "Apache-2.0" ]
3
2021-01-26T11:21:31.000Z
2021-12-31T21:28:18.000Z
Collect/ESACCI/__init__.py
TimHessels/watertools
77bb412a72f068d255d614f4f8a8f2cfb7d78a26
[ "Apache-2.0" ]
null
null
null
Collect/ESACCI/__init__.py
TimHessels/watertools
77bb412a72f068d255d614f4f8a8f2cfb7d78a26
[ "Apache-2.0" ]
4
2019-01-02T06:45:55.000Z
2021-06-30T11:51:38.000Z
# -*- coding: utf-8 -*- """ Authors: Tim Hessels Module: Collect/ESACCI Description: This script automatically downloads ESACCI data """ from .LU import main as LU __all__ = ['LU'] __version__ = '0.1'
12.9375
48
0.681159
507d39124df74db0835d45c057041a98bf4f375f
3,935
py
Python
chrome/common/extensions/docs/server2/mock_file_system.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2017-03-21T23:19:25.000Z
2019-02-03T05:32:47.000Z
chrome/common/extensions/docs/server2/mock_file_system.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/docs/server2/mock_file_system.py
pozdnyakov/chromium-crosswalk
0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
3
2017-07-31T19:09:52.000Z
2019-01-04T18:48:50.000Z
# Copyright 2013 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 file_system import FileSystem, FileNotFoundError from future import Future from test_file_system import TestFileSystem class MockFileSystem(FileSystem)...
31.230159
78
0.680813
a6eef245ee38391f27b64df50d320015bdf9e877
3,291
py
Python
benchmark/startCirq2846.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2846.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2846.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=41 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
37.397727
77
0.680644
3003d48674a047aef8a302388180b2ce59e36e0f
1,656
py
Python
airbyte-integrations/connectors/source-okta/setup.py
luizgribeiro/airbyte
71a96f5417b678c39b34e2e92234d8a51529e086
[ "MIT" ]
2
2021-03-02T09:17:41.000Z
2021-03-02T11:02:23.000Z
airbyte-integrations/connectors/source-okta/setup.py
luizgribeiro/airbyte
71a96f5417b678c39b34e2e92234d8a51529e086
[ "MIT" ]
52
2021-06-11T12:39:05.000Z
2022-03-30T04:59:35.000Z
airbyte-integrations/connectors/source-okta/setup.py
luizgribeiro/airbyte
71a96f5417b678c39b34e2e92234d8a51529e086
[ "MIT" ]
2
2021-12-14T17:15:40.000Z
2021-12-14T17:18:03.000Z
# # MIT License # # Copyright (c) 2020 Airbyte # # 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, pu...
33.12
80
0.732488
7c01b919b3dd791b5c962788b13c733728005df3
2,117
py
Python
resources/common.py
18F/cg-backup-db
0e42ea77d322b0bfbf542785d3055fc3ba181832
[ "CC0-1.0" ]
2
2017-02-22T20:45:40.000Z
2017-12-08T01:21:18.000Z
resources/common.py
18F/cg-backup-db
0e42ea77d322b0bfbf542785d3055fc3ba181832
[ "CC0-1.0" ]
17
2016-11-25T19:22:53.000Z
2020-04-02T21:34:32.000Z
resources/common.py
cloud-gov/cg-migrate-db
0e42ea77d322b0bfbf542785d3055fc3ba181832
[ "CC0-1.0" ]
4
2016-11-29T20:38:21.000Z
2018-05-06T04:37:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import http.server import socketserver import subprocess import sys import shutil def build_psql_env(creds, cmd): return 'PGPASSWORD="{}" {} -h "{}" -d "{}" -U "{}"'.format(creds['password'], cmd, creds['host'], creds['db_name'], creds['username']) def bu...
32.569231
138
0.661313
2684cb82e7d39972f638cd0022b308229318c20a
235
py
Python
Layers/Base.py
starasteh/DeepLearning_from_scratch
6ed4685e4da57ad5ea51edf84010f2cc9725a2ba
[ "MIT" ]
6
2020-09-13T17:03:26.000Z
2021-05-16T14:03:59.000Z
Layers/Base.py
starasteh/DeepLearning_from_scratch
6ed4685e4da57ad5ea51edf84010f2cc9725a2ba
[ "MIT" ]
null
null
null
Layers/Base.py
starasteh/DeepLearning_from_scratch
6ed4685e4da57ad5ea51edf84010f2cc9725a2ba
[ "MIT" ]
2
2021-03-17T02:20:42.000Z
2021-04-24T16:28:45.000Z
''' Created on January 2020. @author: Soroosh Tayebi Arasteh <soroosh.arasteh@fau.de> https://github.com/tayebiarasteh/ ''' import numpy as np class base_layer: phase = 'train' class Phase: train = 'train' test = 'test'
15.666667
56
0.680851
1e58a8ba37adf8040d1f84e1984fcb3b8b10aaa1
1,401
py
Python
src/sage/arith/all.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
4
2020-07-17T04:49:44.000Z
2020-07-29T06:33:51.000Z
src/sage/arith/all.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
2
2018-10-30T13:40:20.000Z
2020-07-23T12:13:30.000Z
src/sage/arith/all.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
from .misc import (algdep, bernoulli, is_prime, is_prime_power, is_pseudoprime, is_pseudoprime_power, prime_powers, primes_first_n, eratosthenes, primes, next_prime_power, next_probable_prime, next_prime, previous_prime, previous_prime_power, random_prime, divisors, sigma, gcd, GCD, xlcm, xgcd, xkcd...
46.7
71
0.798001
aa91ecbd5954c8d30fd2146141482b196d301678
55,753
py
Python
fabio/edfimage.py
juliiaa28/fabio
a8b958e8527092d355b3e28e8715cf25044019b0
[ "Apache-2.0" ]
null
null
null
fabio/edfimage.py
juliiaa28/fabio
a8b958e8527092d355b3e28e8715cf25044019b0
[ "Apache-2.0" ]
null
null
null
fabio/edfimage.py
juliiaa28/fabio
a8b958e8527092d355b3e28e8715cf25044019b0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Project: X-ray image reader # https://github.com/silx-kit/fabio # # # Copyright (C) European Synchrotron Radiation Facility, Grenoble, France # # Principal author: Jérôme Kieffer (Jerome.Kieffer@ESRF.eu) # # Permission is hereby granted, free of charge, to any person # o...
38.134747
151
0.583323
7902f30e420cc51a9b42e3cee0042d4c19b7a707
9,545
py
Python
lib/python2.7/site-packages/networkx/algorithms/centrality/current_flow_betweenness_subset.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
15
2018-04-26T08:17:18.000Z
2021-03-05T08:44:13.000Z
lib/python2.7/site-packages/networkx/algorithms/centrality/current_flow_betweenness_subset.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
71
2015-01-05T16:50:55.000Z
2020-09-30T19:17:47.000Z
lib/python2.7/site-packages/networkx/algorithms/centrality/current_flow_betweenness_subset.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
14
2015-02-15T22:19:18.000Z
2020-09-30T18:54:54.000Z
""" Current-flow betweenness centrality measures for subsets of nodes. """ # Copyright (C) 2010-2011 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. __author__ = """Aric Hagberg (hagberg@lanl.gov)""" __all_...
36.155303
80
0.629649
6f98a0637a6f94827e2b18ab7b9cc48acd98fbf2
4,470
py
Python
deep transfer learning/DSAN/DSAN.py
cqh6666/transfer_learning_code
93225814b8225d9cd8e4addffba6a7d52203443b
[ "MIT" ]
78
2019-11-21T06:38:44.000Z
2022-03-26T12:45:00.000Z
deep transfer learning/DSAN/DSAN.py
cqh6666/transfer_learning_code
93225814b8225d9cd8e4addffba6a7d52203443b
[ "MIT" ]
2
2019-12-17T10:20:50.000Z
2021-09-05T20:41:08.000Z
deep transfer learning/DSAN/DSAN.py
cqh6666/transfer_learning_code
93225814b8225d9cd8e4addffba6a7d52203443b
[ "MIT" ]
33
2019-11-27T10:00:51.000Z
2022-03-01T02:39:53.000Z
from __future__ import print_function import torch import torch.nn.functional as F from torch.autograd import Variable import os import math import data_loader import ResNet as models from Weight import Weight from Config import * import time os.environ["CUDA_VISIBLE_DEVICES"] = cuda_id cuda = not no_cuda and torch.cu...
40.27027
112
0.647427
3b724442276455e78383f83ea57252745138d511
195
py
Python
profiles_api/serializers.py
FerencKovacs1/profiles-rest-api
431b5debdffe7ee425c6fb5011dd6525a1f8c4f5
[ "MIT" ]
null
null
null
profiles_api/serializers.py
FerencKovacs1/profiles-rest-api
431b5debdffe7ee425c6fb5011dd6525a1f8c4f5
[ "MIT" ]
5
2021-03-19T09:33:53.000Z
2022-02-10T10:24:13.000Z
profiles_api/serializers.py
FerencKovacs1/profiles-rest-api
431b5debdffe7ee425c6fb5011dd6525a1f8c4f5
[ "MIT" ]
null
null
null
from rest_framework import serializers class HelloSerializer(serializers.Serializer): """Serializers a name field for testing our APIView""" name = serializers.CharField(max_length=10)
32.5
58
0.784615
14ee089c06dd2c5ba7be8c30df8d8dba1ff5aaf3
9,907
py
Python
docs/source/conf.py
tchaplin86/evennia
bbecd693a94062079466a6d58d6c01864eaf9779
[ "BSD-3-Clause" ]
3
2017-08-08T16:27:14.000Z
2019-07-06T19:06:47.000Z
docs/source/conf.py
tchaplin86/evennia
bbecd693a94062079466a6d58d6c01864eaf9779
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
tchaplin86/evennia
bbecd693a94062079466a6d58d6c01864eaf9779
[ "BSD-3-Clause" ]
2
2021-03-22T00:03:36.000Z
2021-03-22T00:38:25.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import os import sys import re from recommonmark.transform import AutoStructify from sp...
30.204268
91
0.628142
f7a0c41face8a8254f839fd7fe2a36dc398bf15c
1,354
py
Python
insights/specs/datasources/malware_detection.py
skateman/insights-core
e7cd3001ffc2558757b9e7759dbe27b8b29f4bac
[ "Apache-2.0" ]
1
2021-11-08T16:25:01.000Z
2021-11-08T16:25:01.000Z
insights/specs/datasources/malware_detection.py
ahitacat/insights-core
0ba58dbe5edceef0bd4a74c1caf6b826381ccda5
[ "Apache-2.0" ]
null
null
null
insights/specs/datasources/malware_detection.py
ahitacat/insights-core
0ba58dbe5edceef0bd4a74c1caf6b826381ccda5
[ "Apache-2.0" ]
null
null
null
from insights.core.context import HostContext from insights.core.dr import SkipComponent from insights.specs import Specs from insights.core.plugins import datasource from insights.core.spec_factory import DatasourceProvider from insights.client.apps.malware_detection import MalwareDetectionClient from insights.client....
42.3125
120
0.71418
336ed39f09da5b1a20c94fa89d073d03741a6084
1,818
py
Python
src/make_regressor_summary.py
s-a-nersisyan/ExhauFS
435f2f2a347241e899eb6ad9782a1e0cf5bf5428
[ "MIT" ]
5
2021-08-05T17:22:19.000Z
2022-03-30T22:36:57.000Z
src/make_regressor_summary.py
s-a-nersisyan/ExhauFS
435f2f2a347241e899eb6ad9782a1e0cf5bf5428
[ "MIT" ]
null
null
null
src/make_regressor_summary.py
s-a-nersisyan/ExhauFS
435f2f2a347241e899eb6ad9782a1e0cf5bf5428
[ "MIT" ]
1
2021-03-30T08:21:27.000Z
2021-03-30T08:21:27.000Z
import pickle from src.utils.common import * from src.utils.summary_regressors import plot_kaplan_meier_curves, plot_roc_auc_curves def main(config_path): config, df, ann, _ = load_config_and_input_data(config_path, load_n_k=False) model = initialize_regression_model(config, df, ann, None) regressor, be...
33.666667
86
0.641914
d9223e87e2d8b01f2c1c47ebbe134507e478e5cd
2,479
py
Python
server/server.py
lancewl/python-multithreaded-http-server
d4b848a0a367c902d1bfe4152781deffaaef8590
[ "MIT" ]
null
null
null
server/server.py
lancewl/python-multithreaded-http-server
d4b848a0a367c902d1bfe4152781deffaaef8590
[ "MIT" ]
null
null
null
server/server.py
lancewl/python-multithreaded-http-server
d4b848a0a367c902d1bfe4152781deffaaef8590
[ "MIT" ]
null
null
null
from http.server import ThreadingHTTPServer, SimpleHTTPRequestHandler from http import HTTPStatus import urllib.parse import sys import io import os import hashlib import click import json class MyHttpRequestHandler(SimpleHTTPRequestHandler): def list_directory(self, path): # Override the original file li...
33.5
89
0.581686
86351e429b62532699b08ac9d0e167f8a6eff1f0
2,749
py
Python
tests/integration/modules/test_dockermod.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/test_dockermod.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
tests/integration/modules/test_dockermod.py
fake-name/salt
d8f04936e4407f51946e32e8166159778f6c31a5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Integration tests for the docker_container states """ # Import Python Libs from __future__ import absolute_import, print_function, unicode_literals import random import string import sys # Import Salt Libs import salt.utils.path # Import 3rd-party libs from salt.ext.six.moves import rang...
29.880435
89
0.653692
eae0b3776c2dc4d708226abed3c69c6e481b33b9
716
py
Python
midi_transformer/modules/utils.py
s-omranpour/Midi-Transformer
7ffa9e318b3f92dc71a9d38c0f6bd148addbb787
[ "MIT" ]
9
2021-03-25T09:31:43.000Z
2022-03-30T12:53:41.000Z
midi_transformer/modules/utils.py
s-omranpour/Midi-Transformer
7ffa9e318b3f92dc71a9d38c0f6bd148addbb787
[ "MIT" ]
2
2021-06-24T14:03:58.000Z
2021-10-10T08:48:11.000Z
midi_transformer/modules/utils.py
s-omranpour/Midi-Transformer
7ffa9e318b3f92dc71a9d38c0f6bd148addbb787
[ "MIT" ]
null
null
null
import numpy as np import torch from torch import nn from torch.nn import functional as F def nucleus_sample(x, top_p=1., t=1.): probs = F.softmax(x.cpu().detach()/t) sorted_probs, sorted_indices = torch.sort(probs, descending=True) cumsum_sorted_probs = torch.cumsum(sorted_probs, dim=0) threshold = cu...
35.8
90
0.715084
59e99883f535a173cbadfae1346ba9cfd896ae10
1,366
py
Python
bot/cogs/manager.py
ldanielx/discord-gragas-bot
965db116d518cb9fb661ee03bb15fba9ce6708b4
[ "MIT" ]
null
null
null
bot/cogs/manager.py
ldanielx/discord-gragas-bot
965db116d518cb9fb661ee03bb15fba9ce6708b4
[ "MIT" ]
null
null
null
bot/cogs/manager.py
ldanielx/discord-gragas-bot
965db116d518cb9fb661ee03bb15fba9ce6708b4
[ "MIT" ]
null
null
null
from discord.ext import commands from discord import Embed class Manager(commands.Cog, name="Manager"): def __init__(self, bot): self.bot = bot @commands.command( name="reload", description="Reload BOT command", ) @commands.is_owner() async def _reload(self, ctx, extension...
25.773585
70
0.585652
678b062ed261ca25628fb64e9e8ddbd93493237f
7,197
py
Python
warprnnt_numba/rnnt_loss/rnnt_atomic_locks/rnnt_atomic_locks_pytorch.py
titu1994/warprnnt_numba
b1bc81e02dfb05143c3d55ac7b50c8131e85b194
[ "MIT" ]
7
2022-01-25T22:05:54.000Z
2022-02-23T09:01:32.000Z
warprnnt_numba/rnnt_loss/rnnt_atomic_locks/rnnt_atomic_locks_pytorch.py
titu1994/warprnnt_numba
b1bc81e02dfb05143c3d55ac7b50c8131e85b194
[ "MIT" ]
null
null
null
warprnnt_numba/rnnt_loss/rnnt_atomic_locks/rnnt_atomic_locks_pytorch.py
titu1994/warprnnt_numba
b1bc81e02dfb05143c3d55ac7b50c8131e85b194
[ "MIT" ]
1
2022-01-24T13:12:11.000Z
2022-01-24T13:12:11.000Z
# Copyright 2018-2019, Mingkun Huang # # 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 wr...
41.601156
114
0.661109
e81efaa834aa296567b0e80b825772fdec8a1c0a
4,838
py
Python
paper_evaluation/IV.F_sensitivity_geographic_location/testWithLocError.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
5
2022-03-11T18:08:32.000Z
2022-03-31T13:47:49.000Z
paper_evaluation/IV.F_sensitivity_geographic_location/testWithLocError.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
null
null
null
paper_evaluation/IV.F_sensitivity_geographic_location/testWithLocError.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
null
null
null
##################################################### # Content-Aware Detection of Timestamp Manipulation # # IEEE Trans. on Information Forensics and Security # # R. Padilha, T. Salem, S. Workman, # # F. A. Andalo, A. Rocha, N. Jacobs # ##################################################...
28.458824
115
0.627325
91f34487c4ddb913a8d265d3b34629d8573a97d7
16,978
py
Python
testing/run_summarize.py
LiangqinGong/magma
4c2588119ee636999b230b248fca3e3824a23be9
[ "BSD-3-Clause" ]
2
2019-12-25T00:49:55.000Z
2019-12-25T02:19:41.000Z
testing/run_summarize.py
LiangqinGong/magma
4c2588119ee636999b230b248fca3e3824a23be9
[ "BSD-3-Clause" ]
3
2020-01-02T05:21:16.000Z
2020-01-07T20:04:05.000Z
testing/run_summarize.py
LiangqinGong/magma
4c2588119ee636999b230b248fca3e3824a23be9
[ "BSD-3-Clause" ]
1
2021-12-27T06:12:22.000Z
2021-12-27T06:12:22.000Z
#!/usr/bin/env python # # MAGMA (version 2.0) -- # Univ. of Tennessee, Knoxville # Univ. of California, Berkeley # Univ. of Colorado, Denver # @date ## @file run_summarize.py # @author Mark Gates # # Usage: # First run tests, saving output in tests.txt: # ./run_tests.py [options] > tests.txt # or # ./test...
31.616387
157
0.525621
a2156397f90be97d6bd0312a92440b571597af67
26,017
py
Python
xonsh/history.py
Granitosaurus/xonsh
3796c4ba3b2e857a02760b260b5a911b148a511d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/history.py
Granitosaurus/xonsh
3796c4ba3b2e857a02760b260b5a911b148a511d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xonsh/history.py
Granitosaurus/xonsh
3796c4ba3b2e857a02760b260b5a911b148a511d
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- """Implements the xonsh history object.""" import os import sys import uuid import time import json import glob import argparse import operator import datetime import builtins import functools import threading import collections import collections.abc as abc from xonsh.lazyasd import LazyObject...
36.184979
83
0.567398
8db0dcc6a3afe786808e273d638ef3f63513ebfd
5,539
py
Python
examples/utils.py
vishalbelsare/HyperStream
35d63962f78cdfaac0383e38d79b16af373f1492
[ "MIT" ]
12
2017-01-14T15:26:51.000Z
2020-10-04T14:46:44.000Z
examples/utils.py
vishalbelsare/HyperStream
35d63962f78cdfaac0383e38d79b16af373f1492
[ "MIT" ]
27
2017-04-04T22:49:02.000Z
2018-02-22T13:46:52.000Z
examples/utils.py
vishalbelsare/HyperStream
35d63962f78cdfaac0383e38d79b16af373f1492
[ "MIT" ]
6
2017-04-04T15:09:52.000Z
2018-11-19T08:01:23.000Z
from IPython.core.display import display, HTML import random from dateutil.parser import parse from datetime import datetime epoch = datetime.utcfromtimestamp(0).replace(tzinfo=None) def unix_time_miliseconds(dt): return (dt.replace(tzinfo=None) - epoch).total_seconds() * 1000.0 def plot_high_chart(time, data, ...
31.651429
110
0.462719
45a2caf080976d6dbd60cf97a2bb3c144ff59ea4
85
py
Python
tester.py
titansarus/CMinusCompiler
c389ccfa1de59cd7c929acfdda2382449ba0bcd5
[ "MIT" ]
3
2022-02-13T17:09:32.000Z
2022-02-14T05:32:43.000Z
tester.py
titansarus/CMinusCompiler
c389ccfa1de59cd7c929acfdda2382449ba0bcd5
[ "MIT" ]
null
null
null
tester.py
titansarus/CMinusCompiler
c389ccfa1de59cd7c929acfdda2382449ba0bcd5
[ "MIT" ]
null
null
null
class Tester: def __init__(self): self.memory = {} def execute()
17
24
0.541176
703efcf757b5a50624e6d27d0fddd05d46bf1561
3,139
py
Python
grb/attack/modification/nea.py
sigeisler/grb
c89e21076dc05d1edb87dfe2eff20c29ba6bd0c1
[ "MIT" ]
null
null
null
grb/attack/modification/nea.py
sigeisler/grb
c89e21076dc05d1edb87dfe2eff20c29ba6bd0c1
[ "MIT" ]
null
null
null
grb/attack/modification/nea.py
sigeisler/grb
c89e21076dc05d1edb87dfe2eff20c29ba6bd0c1
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as sp import scipy.linalg as spl from tqdm.auto import tqdm from ..base import ModificationAttack class NEA(ModificationAttack): """ NEA: Adversarial Attacks on Node Embeddings via Graph Poisoning. """ def __init__(self, n_edge_mod, ...
36.929412
111
0.554635
675654ebf0dc4ebcffceb78caf4079131241b051
294
py
Python
setup.py
alesplana/rm-mapping
4b4d1c5a712c4686bc478d86dbf63f33853fe20d
[ "MIT" ]
null
null
null
setup.py
alesplana/rm-mapping
4b4d1c5a712c4686bc478d86dbf63f33853fe20d
[ "MIT" ]
null
null
null
setup.py
alesplana/rm-mapping
4b4d1c5a712c4686bc478d86dbf63f33853fe20d
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='rm-mapping', version='0.8', packages=['rm-mapping'], url='https://github.com/alesplana/rm-mapping', license='', author='amielesplana', author_email='alesplana@up.edu.ph', description='Raman Mapping Tool (PCA-KMeans)' )
22.615385
50
0.656463
08144d32c8a02fbc2d89326b1f52b7f92600bca8
8,974
py
Python
neuralprophet/tools/configure.py
adasegroup/neural_prophet
9647f6666d6c66f1c8a18613e5f66212df5fa09a
[ "MIT" ]
4
2021-04-21T14:36:27.000Z
2021-05-13T21:44:56.000Z
neuralprophet/tools/configure.py
neuralprophet/neural_prophet_lightning
9647f6666d6c66f1c8a18613e5f66212df5fa09a
[ "MIT" ]
null
null
null
neuralprophet/tools/configure.py
neuralprophet/neural_prophet_lightning
9647f6666d6c66f1c8a18613e5f66212df5fa09a
[ "MIT" ]
2
2021-07-26T06:43:03.000Z
2021-09-14T13:06:51.000Z
from collections import OrderedDict from dataclasses import dataclass, field import numpy as np import pandas as pd import logging import inspect import torch import math from neuralprophet.utils import utils_torch log = logging.getLogger("NP.config") def from_kwargs(cls, kwargs): return cls(**{k: v for k, v in...
36.778689
110
0.596612
fdab68937c3c08a43ce5f9a053f37b9e50904785
2,070
py
Python
cfgov/agreements/tests/test_jinja2tags.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
156
2015-01-16T15:16:46.000Z
2020-08-04T04:48:01.000Z
cfgov/agreements/tests/test_jinja2tags.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
3,604
2015-01-05T22:09:12.000Z
2020-08-14T17:09:19.000Z
cfgov/agreements/tests/test_jinja2tags.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
102
2015-01-28T14:51:18.000Z
2020-08-10T00:00:39.000Z
import random from django.template import engines from django.test import TestCase from agreements.models import Agreement, Issuer class TestJinja2Tags(TestCase): def _render(self, s, context=None): if not context: context = {} template = engines["wagtail-env"].from_string(s) ...
36.964286
76
0.615942
c548c0450ee18f57183c0e95173df17c3d04934a
442
py
Python
Chapter07/mapCallback.py
ibiscum/Learning-Concurrency-in-Python
d3f0320ad2a80c46b37de331bf335b80df0d3ed9
[ "MIT" ]
null
null
null
Chapter07/mapCallback.py
ibiscum/Learning-Concurrency-in-Python
d3f0320ad2a80c46b37de331bf335b80df0d3ed9
[ "MIT" ]
null
null
null
Chapter07/mapCallback.py
ibiscum/Learning-Concurrency-in-Python
d3f0320ad2a80c46b37de331bf335b80df0d3ed9
[ "MIT" ]
null
null
null
import time from concurrent.futures import ThreadPoolExecutor from concurrent.futures import as_completed values = [2, 3, 4, 5, 6, 7, 8] def multiply_by_two(n): return 2 * n def done(): print("Task Done") def main(): with ThreadPoolExecutor(max_workers=3) as executor: results = executor.map(m...
17
55
0.667421
b9ebd48ab01910ea0a43a5756eb180a9a11d7325
13,123
py
Python
surpyval/regression/regression.py
dfm/SurPyval
014fba8f1d4a0f43218a3713ce80a78191ad8be9
[ "MIT" ]
null
null
null
surpyval/regression/regression.py
dfm/SurPyval
014fba8f1d4a0f43218a3713ce80a78191ad8be9
[ "MIT" ]
null
null
null
surpyval/regression/regression.py
dfm/SurPyval
014fba8f1d4a0f43218a3713ce80a78191ad8be9
[ "MIT" ]
null
null
null
import re from autograd import jacobian from autograd import grad import autograd.numpy as np from scipy.stats import uniform from surpyval import round_sig, fs_to_xcn from scipy.special import ndtri as z from surpyval import nonparametric as nonp from copy import deepcopy, copy import matplotlib.pyplot as plt from s...
31.698068
275
0.544312
c1e85ae9a9517576bd6e0ce1c37c769ace613c43
3,974
py
Python
run/hello-broken/e2e_test.py
CourierKyn/python-docs-samples
2988e7f925dd55770a593dbfd84ecbe4806e37b6
[ "Apache-2.0" ]
1
2021-11-07T18:53:47.000Z
2021-11-07T18:53:47.000Z
run/hello-broken/e2e_test.py
CourierKyn/python-docs-samples
2988e7f925dd55770a593dbfd84ecbe4806e37b6
[ "Apache-2.0" ]
9
2021-07-06T20:57:46.000Z
2021-11-05T22:58:24.000Z
run/hello-broken/e2e_test.py
CourierKyn/python-docs-samples
2988e7f925dd55770a593dbfd84ecbe4806e37b6
[ "Apache-2.0" ]
null
null
null
# 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 or agreed to in writing, ...
24.68323
84
0.554102
a4b255451c5f00e737fc699e596fc71258b3515b
2,222
py
Python
uncertainty_baselines/models/wide_resnet_dropout_test.py
thlarsen13/thlarsen_uncertainty_models
f274b6024d04ff1cd77570994bc3767bac049b83
[ "Apache-2.0" ]
794
2020-07-17T06:23:58.000Z
2022-03-31T08:31:53.000Z
uncertainty_baselines/models/wide_resnet_dropout_test.py
ranganathkrishnan/uncertainty-baselines
b9c6b870790034c1a2303246f887fd2cf53bff38
[ "Apache-2.0" ]
136
2020-08-04T22:42:04.000Z
2022-03-26T21:07:03.000Z
uncertainty_baselines/models/wide_resnet_dropout_test.py
ranganathkrishnan/uncertainty-baselines
b9c6b870790034c1a2303246f887fd2cf53bff38
[ "Apache-2.0" ]
129
2020-08-16T12:46:55.000Z
2022-03-31T23:00:10.000Z
# coding=utf-8 # Copyright 2021 The Uncertainty Baselines 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 ap...
37.033333
77
0.626463