hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79573eecb0d2490a477f7a9c44a6afdd183fbc15
1,260
py
Python
cinder/volume/drivers/lenovo/lenovo_fc.py
rackerlabs/cinder
4295ff0a64f781c3546f6c6e0816dbb8100133cb
[ "Apache-2.0" ]
1
2019-02-08T05:24:58.000Z
2019-02-08T05:24:58.000Z
cinder/volume/drivers/lenovo/lenovo_fc.py
rackerlabs/cinder
4295ff0a64f781c3546f6c6e0816dbb8100133cb
[ "Apache-2.0" ]
1
2021-03-21T11:38:29.000Z
2021-03-21T11:38:29.000Z
cinder/volume/drivers/lenovo/lenovo_fc.py
rackerlabs/cinder
4295ff0a64f781c3546f6c6e0816dbb8100133cb
[ "Apache-2.0" ]
15
2017-01-12T10:35:10.000Z
2019-04-19T08:22:10.000Z
# Copyright 2014 Objectif Libre # Copyright 2015 DotHill Systems # # 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 # # U...
34.054054
78
0.726984
79573ef733be2952fb417d10e220321798c4beb8
439
py
Python
books_library/books/migrations/0012_book_liked.py
Ilyes-Hammadi/books-library
cba0df1ae95c3467b8d16caca16383c0af9a98cd
[ "MIT" ]
9
2017-07-20T15:25:51.000Z
2019-08-26T22:48:01.000Z
books_library/books/migrations/0012_book_liked.py
Ilyes-Hammadi/bookslib
cba0df1ae95c3467b8d16caca16383c0af9a98cd
[ "MIT" ]
null
null
null
books_library/books/migrations/0012_book_liked.py
Ilyes-Hammadi/bookslib
cba0df1ae95c3467b8d16caca16383c0af9a98cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-04-06 03:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('books', '0011_book_likes'), ] operations = [ migrations.AddField( ...
20.904762
53
0.605923
79573ff0145f6355352368c73ac7599142c1ba47
19,527
py
Python
salt/modules/mine.py
BnGx/salt
0a560791488d1585bd00b4cfd91a26bb0ac9b459
[ "Apache-2.0" ]
1
2021-09-06T00:14:04.000Z
2021-09-06T00:14:04.000Z
salt/modules/mine.py
BnGx/salt
0a560791488d1585bd00b4cfd91a26bb0ac9b459
[ "Apache-2.0" ]
2
2021-04-30T21:17:57.000Z
2021-12-13T20:40:23.000Z
salt/modules/mine.py
Kamatera/salt
ac960a3308617657d9d039dae9108e0045ab3929
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ The function cache system allows for data to be stored on the master so it can be easily read by other minions """ # Import python libs from __future__ import absolute_import, print_function, unicode_literals import logging import time import traceback # Import salt libs import salt.crypt...
33.725389
126
0.594664
7957408d8bd25e393ad9198d501328d9036a9ca1
2,192
py
Python
ir_config_parameter_multi_company/tests/test_base.py
ShaheenHossain/itpp-labs-misc-addons13
bf62dc5bc1abdc18d78e9560a286babbe1d0e082
[ "MIT" ]
null
null
null
ir_config_parameter_multi_company/tests/test_base.py
ShaheenHossain/itpp-labs-misc-addons13
bf62dc5bc1abdc18d78e9560a286babbe1d0e082
[ "MIT" ]
null
null
null
ir_config_parameter_multi_company/tests/test_base.py
ShaheenHossain/itpp-labs-misc-addons13
bf62dc5bc1abdc18d78e9560a286babbe1d0e082
[ "MIT" ]
3
2020-08-25T01:57:59.000Z
2021-09-11T15:38:02.000Z
# -*- coding: utf-8 -*- from odoo.tests import common class TestBase(common.TransactionCase): at_install = False post_install = True def setUp(self): super(TestBase, self).setUp() self.config_param = self.env["ir.config_parameter"] self.main_company = self.env.user.company_id ...
33.212121
88
0.632755
795740ea289d3eb288c9b4f2752a7fd9b25f6bf6
1,877
py
Python
examples/zstd_dump.py
ostrovok-team/papi-sdk-python
04c2ddc2c6f843fff2fa6be6d3f82d6b50025255
[ "MIT" ]
1
2020-12-30T13:06:41.000Z
2020-12-30T13:06:41.000Z
examples/zstd_dump.py
EmergingTravel/papi-sdk-python
04c2ddc2c6f843fff2fa6be6d3f82d6b50025255
[ "MIT" ]
2
2021-01-18T07:57:29.000Z
2021-06-23T11:04:14.000Z
examples/zstd_dump.py
ostrovok-team/papi-sdk-python
04c2ddc2c6f843fff2fa6be6d3f82d6b50025255
[ "MIT" ]
3
2020-12-30T13:09:45.000Z
2020-12-30T13:42:33.000Z
""" ETG API provides hotel's static data dump in .zstd format. You can find more about the dump structure and the format in our documentation - https://docs.emergingtravel.com/#0b55c99a-7ef0-4a18-bbfe-fd1bdf35d08e Please note that uncompressed data could be more than 20GB. Below is an example of how to handle such la...
35.415094
150
0.614811
795741b5ebc4badc7bfd5fbe224c7fa553eee65a
23,628
py
Python
examples/tests/test_offchain_error_cases.py
xli/client-sdk-python
1d0ec7f7b395bd827b778f1903001088e799fb05
[ "Apache-2.0" ]
1
2021-02-15T14:41:34.000Z
2021-02-15T14:41:34.000Z
examples/tests/test_offchain_error_cases.py
xli/client-sdk-python
1d0ec7f7b395bd827b778f1903001088e799fb05
[ "Apache-2.0" ]
null
null
null
examples/tests/test_offchain_error_cases.py
xli/client-sdk-python
1d0ec7f7b395bd827b778f1903001088e799fb05
[ "Apache-2.0" ]
null
null
null
# Copyright (c) The Diem Core Contributors # SPDX-License-Identifier: Apache-2.0 from diem.offchain import ( Status, Action, jws, http_header, CommandResponseObject, CommandResponseError, PaymentActionObject, ) from diem import LocalAccount, testnet from ..vasp.wallet import ActionResult im...
38.23301
120
0.727781
795741f60e2bd257b13060349288c5251cf83a8a
939
py
Python
solr-synonyms-api/synonyms/endpoints/synonyms.py
JohnamLane/namex
365fb42e99c702a0e6618451dcc86c1955333fd7
[ "Apache-2.0" ]
null
null
null
solr-synonyms-api/synonyms/endpoints/synonyms.py
JohnamLane/namex
365fb42e99c702a0e6618451dcc86c1955333fd7
[ "Apache-2.0" ]
1
2019-05-02T07:10:52.000Z
2019-05-02T07:10:52.000Z
solr-synonyms-api/synonyms/endpoints/synonyms.py
JohnamLane/namex
365fb42e99c702a0e6618451dcc86c1955333fd7
[ "Apache-2.0" ]
null
null
null
import logging import flask_restplus import synonyms.models.synonym as synonym __all__ = ['api'] api = flask_restplus.Namespace('Synonyms', description='Work with synonyms used in Solr') @api.route('/<col>/<term>', methods=['GET']) class _Synonyms(flask_restplus.Resource): @staticmethod def get(col, te...
26.083333
94
0.615548
7957420797900b4da9002c9a62d89d9fc58b153f
2,677
py
Python
tests/test_mlp.py
nlinc1905/evolutionary-reinforcement-learner
a1384426d0d47403abd7382a0c6b6ebe7d949aff
[ "MIT" ]
null
null
null
tests/test_mlp.py
nlinc1905/evolutionary-reinforcement-learner
a1384426d0d47403abd7382a0c6b6ebe7d949aff
[ "MIT" ]
null
null
null
tests/test_mlp.py
nlinc1905/evolutionary-reinforcement-learner
a1384426d0d47403abd7382a0c6b6ebe7d949aff
[ "MIT" ]
null
null
null
import numpy as np import unittest from models.mlp import softmax, relu, MLP def test_softmax(): # Assert that the output matches what is expected for a given input test_array = np.array([[0.2, 0.4, 0.6], [0.4, 0.6, 0.8]]) expected_output = np.array([ [0.2693075, 0.32893292, 0.40175958], ...
36.175676
105
0.650728
795742a5a0d847ad9fbcaef0a0c2a4ab3b785294
3,888
py
Python
src/graph.py
xfontes42/hermes-simulation
152261f0070b6b1520f77c04bc5ffa655eee6a56
[ "MIT" ]
7
2019-07-11T16:07:55.000Z
2020-04-20T13:57:15.000Z
src/graph.py
xfontes42/hermes-simulation
152261f0070b6b1520f77c04bc5ffa655eee6a56
[ "MIT" ]
null
null
null
src/graph.py
xfontes42/hermes-simulation
152261f0070b6b1520f77c04bc5ffa655eee6a56
[ "MIT" ]
1
2019-11-12T15:46:54.000Z
2019-11-12T15:46:54.000Z
""" Graph representing a road network. Graph topology should allow for dynamic run-time changes (e.g. accidents and other phenomena that restrict or even block a given edge). """ from typing import List, Tuple from utils import congestion_time_estimate import networkx as nx class RoadGraph: graph: nx.DiGraph ...
36.679245
92
0.587706
79574363d9c947cfe6b4fe10e6f9545acfd09dfd
4,115
py
Python
examples/tutorial_api_python/05_keypoints_from_images_multi_gpu.py
0x333333/openpose
363cd0b5d44ab127d0786ac1f3398e784933dd5d
[ "DOC" ]
3
2019-10-16T08:35:07.000Z
2019-10-23T08:34:52.000Z
examples/tutorial_api_python/05_keypoints_from_images_multi_gpu.py
adityadas8888/openpose
d89fe626505cde6604396aed77ad283c8f013473
[ "DOC" ]
null
null
null
examples/tutorial_api_python/05_keypoints_from_images_multi_gpu.py
adityadas8888/openpose
d89fe626505cde6604396aed77ad283c8f013473
[ "DOC" ]
null
null
null
# From Python # It requires OpenCV installed for Python import sys import cv2 import os from sys import platform import argparse import time # Import Openpose (Windows/Ubuntu/OSX) dir_path = os.path.dirname(os.path.realpath(__file__)) try: # Windows Import if platform == "win32": # Change these variabl...
37.072072
289
0.633779
79574391f2d5c01951282421727d7eeca67f0f53
20,152
py
Python
stats/nonparametric.py
DockyD/DvM
7fbc6aa33a88b288edab9948071849b02ac71469
[ "MIT" ]
7
2018-03-22T10:44:55.000Z
2021-08-25T01:18:17.000Z
stats/nonparametric.py
DockyD/DvM
7fbc6aa33a88b288edab9948071849b02ac71469
[ "MIT" ]
3
2018-03-19T14:24:08.000Z
2019-02-20T19:11:08.000Z
stats/nonparametric.py
DockyD/DvM
7fbc6aa33a88b288edab9948071849b02ac71469
[ "MIT" ]
7
2018-04-04T14:55:43.000Z
2021-11-15T15:40:15.000Z
""" NonParametric statistical tests Created by Dirk van Moorselaar on 27-02-2018. Copyright (c) 2018 DvM. All rights reserved. """ import cv2 import numpy as np from math import sqrt from scipy.stats import ttest_rel, ttest_ind, wilcoxon, ttest_1samp from IPython import embed def permutationTTest(X1, X2, nr_perm)...
33.925926
139
0.699434
795743a772d220ca3f67a2a77409b2e357bf526b
2,586
py
Python
azure-mgmt-compute/azure/mgmt/compute/models/virtual_machine_scale_set_os_disk.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
1
2017-10-29T15:14:35.000Z
2017-10-29T15:14:35.000Z
azure-mgmt-compute/azure/mgmt/compute/models/virtual_machine_scale_set_os_disk.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
azure-mgmt-compute/azure/mgmt/compute/models/virtual_machine_scale_set_os_disk.py
Berryliao84/Python-Azure
a96ed6e8bbf4290372980a2919b31110da90b164
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
41.709677
105
0.643078
79574421f4a31ff8a90002ef3342c1199a9d7541
94
py
Python
pyccel/parser/syntax/__init__.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
pyccel/parser/syntax/__init__.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
pyccel/parser/syntax/__init__.py
toddrme2178/pyccel
deec37503ab0c5d0bcca1a035f7909f7ce8ef653
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from .basic import * from .openmp import * from .openacc import *
15.666667
23
0.617021
7957442f56be2917126eb2dda27bc6904fa5101d
2,263
py
Python
test/acceptance/features/steps/olm.py
growi/service-binding-operator
f10f7f8838049b0c4e9fe04aa6dbce151296b908
[ "Apache-2.0" ]
null
null
null
test/acceptance/features/steps/olm.py
growi/service-binding-operator
f10f7f8838049b0c4e9fe04aa6dbce151296b908
[ "Apache-2.0" ]
null
null
null
test/acceptance/features/steps/olm.py
growi/service-binding-operator
f10f7f8838049b0c4e9fe04aa6dbce151296b908
[ "Apache-2.0" ]
null
null
null
import re from command import Command from openshift import Openshift class Operator(object): openshift = Openshift() cmd = Command() pod_name_pattern = "{name}.*" name = "" operator_catalog_source_name = "" operator_catalog_image = "" operator_catalog_channel = "" operator_subscrip...
47.145833
154
0.719841
79574461a39c134b1ebb8121bd822dbb0f1b7b7f
86,018
py
Python
0900-hp/hplip-3.21.12/ui5/devmgr5.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/ui5/devmgr5.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
0900-hp/hplip-3.21.12/ui5/devmgr5.py
rgfaber/dev-toolkit
b7e6b1e35a4bfb8ca9ba75e5556917cc49b88f7f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # (c) Copyright 2001-2015 HP Development Company, L.P. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any late...
36.917597
189
0.545537
7957460ae567f9fa80966ca9f15901dadc7ae18d
5,973
py
Python
flow_models/merge.py
piotrjurkiewicz/flow_stats
cc97a8381275cb9dd23ed0c3432abffaf4198431
[ "MIT" ]
9
2019-07-08T09:53:22.000Z
2021-11-19T07:50:11.000Z
flow_models/merge.py
ElsevierSoftwareX/SOFTX-D-21-00003
cc97a8381275cb9dd23ed0c3432abffaf4198431
[ "MIT" ]
1
2021-02-23T16:01:21.000Z
2021-04-03T02:06:32.000Z
flow_models/merge.py
ElsevierSoftwareX/SOFTX-D-21-00003
cc97a8381275cb9dd23ed0c3432abffaf4198431
[ "MIT" ]
5
2019-09-27T14:52:54.000Z
2022-01-25T07:58:24.000Z
#!/usr/bin/python3 """ Merges flows which were split across multiple records due to *active timeout*. """ import argparse import warnings from .lib.io import FlowValFields, io_parser, IN_FORMATS, OUT_FORMATS from .lib.util import logmsg, prepare_file_list class Flow: __slots__ = 'key', 'val' def __init__(s...
38.535484
118
0.542943
7957460c640ff0e84286b297906f8de227cfb6e2
8,839
py
Python
pyNastran/bdf/bdf_interface/card_groups.py
SaravananM21/pyNastran
acfe9da5567ca0477997973b4fe9f9053e39a4d9
[ "BSD-3-Clause" ]
1
2021-08-02T09:49:24.000Z
2021-08-02T09:49:24.000Z
pyNastran/bdf/bdf_interface/card_groups.py
zchlrnr/pyNastran
d89a59a918e8d2262e3d8e6abd01abdc37046cdf
[ "BSD-3-Clause" ]
null
null
null
pyNastran/bdf/bdf_interface/card_groups.py
zchlrnr/pyNastran
d89a59a918e8d2262e3d8e6abd01abdc37046cdf
[ "BSD-3-Clause" ]
null
null
null
acoustic = { # loads 'ACLOAD', 'ACSRCE', # element - property 'CHACBR', 'PACBAR', 'CHACAB', 'PACABS', 'CACINF3', 'CACINF4', 'PACINF', 'CSLOT3', 'CSLOT4', 'AXSLOT', 'GRIDS', 'CAABSF', 'PAABSF', } aero_geom = { # aero cards 'AECOMP', 'AECOMPL', ## aecomps 'AEFACT', ## aef...
23.507979
125
0.528567
795746dadd7adf4ffe4641d7ab5ada50ed2aa1ab
1,433
py
Python
src/api/endpoint/blog.py
DJWOMS/blog_fastapi
f584634a2cd410904df6a7d9478044d269737a91
[ "BSD-3-Clause" ]
39
2020-03-12T13:00:22.000Z
2022-03-30T13:46:21.000Z
src/api/endpoint/blog.py
DJWOMS/blog_fastapi
f584634a2cd410904df6a7d9478044d269737a91
[ "BSD-3-Clause" ]
null
null
null
src/api/endpoint/blog.py
DJWOMS/blog_fastapi
f584634a2cd410904df6a7d9478044d269737a91
[ "BSD-3-Clause" ]
18
2020-03-20T06:01:34.000Z
2022-03-29T15:06:57.000Z
from typing import List from fastapi import APIRouter, Depends from sqlalchemy.orm import Session from src.api.utils.db import get_db from src.blog import service, schemas router = APIRouter() @router.post("/category/", response_model=schemas.CategoryCreate) async def create_category(item: schemas.CategoryCreate, d...
36.74359
92
0.763433
795746db9717ac7bb91430a8e7b6b35e1308141f
88,793
py
Python
pysnmp-with-texts/IRM3-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/IRM3-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/IRM3-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module IRM3-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IRM3-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:44:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
129.43586
8,310
0.767639
795746e2838221b7c4057fbd90ee465a1fc136b3
1,752
py
Python
biobb_adapters/pycompss/biobb_ml/classification/k_neighbors.py
bioexcel/biobb_adapters
45f32feac328cb05f28038b2b00a7416fcae3178
[ "Apache-2.0" ]
null
null
null
biobb_adapters/pycompss/biobb_ml/classification/k_neighbors.py
bioexcel/biobb_adapters
45f32feac328cb05f28038b2b00a7416fcae3178
[ "Apache-2.0" ]
4
2019-03-04T15:22:06.000Z
2021-09-24T14:43:48.000Z
biobb_adapters/pycompss/biobb_ml/classification/k_neighbors.py
bioexcel/biobb_adapters
45f32feac328cb05f28038b2b00a7416fcae3178
[ "Apache-2.0" ]
2
2020-09-08T05:26:23.000Z
2022-03-28T07:09:20.000Z
# Python import os import sys import traceback # Pycompss from pycompss.api.task import task from pycompss.api.parameter import FILE_IN, FILE_OUT # Adapters commons pycompss from biobb_adapters.pycompss.biobb_commons import task_config # Wrapped Biobb from biobb_ml.classification.k_neighbors import KNeighborsTrain # I...
43.8
223
0.77911
7957476121e66d46f0a061037c729c83c99a9e19
6,842
py
Python
tensorflow/lite/micro/tools/make/transform_source.py
leike666666/tensorflow
a3fd0ddfcb716be124e95b51e96e6c1e4507ef64
[ "Apache-2.0" ]
12
2020-12-28T18:42:10.000Z
2022-03-24T17:34:21.000Z
tensorflow/lite/micro/tools/make/transform_source.py
leike666666/tensorflow
a3fd0ddfcb716be124e95b51e96e6c1e4507ef64
[ "Apache-2.0" ]
2
2021-08-25T15:58:11.000Z
2022-02-10T01:47:24.000Z
tensorflow/lite/micro/tools/make/transform_source.py
leike666666/tensorflow
a3fd0ddfcb716be124e95b51e96e6c1e4507ef64
[ "Apache-2.0" ]
3
2020-03-09T19:17:02.000Z
2020-06-26T23:14:31.000Z
# Lint as: python2, python3 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # ...
33.213592
83
0.708857
7957476ae52a292df3c0fecbbdc42b75d5b87837
5,173
py
Python
tests/test_kldiv.py
VirgiAgl/GPflow
95e77a5f2fe1514a30f87b5ed03ad72bbce8dead
[ "Apache-2.0" ]
null
null
null
tests/test_kldiv.py
VirgiAgl/GPflow
95e77a5f2fe1514a30f87b5ed03ad72bbce8dead
[ "Apache-2.0" ]
null
null
null
tests/test_kldiv.py
VirgiAgl/GPflow
95e77a5f2fe1514a30f87b5ed03ad72bbce8dead
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 the GPflow 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 or agreed to in writi...
34.486667
97
0.661318
7957488a3bde5ca46aeebfde0d6250394e842e78
2,788
py
Python
python/ray/tune/examples/pbt_ppo_example.py
zhu-eric/ray
8903bcd0c325f76f2642eb542140bdde5a94f7ac
[ "Apache-2.0" ]
1
2019-10-07T17:20:01.000Z
2019-10-07T17:20:01.000Z
python/ray/tune/examples/pbt_ppo_example.py
zhu-eric/ray
8903bcd0c325f76f2642eb542140bdde5a94f7ac
[ "Apache-2.0" ]
null
null
null
python/ray/tune/examples/pbt_ppo_example.py
zhu-eric/ray
8903bcd0c325f76f2642eb542140bdde5a94f7ac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Example of using PBT with RLlib. Note that this requires a cluster with at least 8 GPUs in order for all trials to run concurrently, otherwise PBT will round-robin train the trials which is less efficient (or you can set {"gpu": 0} to use CPUs for SGD instead). Note that Tune in general does ...
35.291139
78
0.583572
79574a0b5ab2cff9e214c633b4eba5d63d27debd
7,654
py
Python
nanomesh/image/_plane.py
hpgem/nanomesher
06e7648ff8b9ecf4cc1faa967469db6270c0ba5d
[ "Apache-2.0" ]
null
null
null
nanomesh/image/_plane.py
hpgem/nanomesher
06e7648ff8b9ecf4cc1faa967469db6270c0ba5d
[ "Apache-2.0" ]
null
null
null
nanomesh/image/_plane.py
hpgem/nanomesher
06e7648ff8b9ecf4cc1faa967469db6270c0ba5d
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import logging from typing import TYPE_CHECKING, Union import matplotlib.pyplot as plt import numpy as np from .._doc import doc from ._image import Image from ._utils import show_image logger = logging.getLogger(__name__) if TYPE_CHECKING: from .mesh import TriangleMesh @d...
29.666667
79
0.559838
79574aae80605727cdbb5a9b66f67e2ff2e07af0
1,859
py
Python
jesse/indicators/voss.py
slipperlobster/flipper
8482edd77604fcec2ea08913f1748c21be80dac7
[ "MIT" ]
3,999
2018-11-09T10:38:51.000Z
2022-03-31T12:29:12.000Z
jesse/indicators/voss.py
slipperlobster/flipper
8482edd77604fcec2ea08913f1748c21be80dac7
[ "MIT" ]
172
2020-04-16T16:19:08.000Z
2022-03-28T13:28:55.000Z
jesse/indicators/voss.py
pmondal08/jesse
527952a74bc76f76cf3a2d25755386f8db285885
[ "MIT" ]
495
2019-03-01T21:48:53.000Z
2022-03-30T15:35:19.000Z
from collections import namedtuple import numpy as np try: from numba import njit except ImportError: njit = lambda a : a from jesse.helpers import get_candle_source, slice_candles VossFilter = namedtuple('VossFilter', ['voss', 'filt']) def voss(candles: np.ndarray, period: int = 20, predict: int = 3, band...
29.507937
117
0.596557
79574b0f03627988d479aa23cb5884e1ab422412
685
py
Python
Easy/Search_Insert_Position.py
dianjiaogit/LeetCode_Python_solution
390693c839d1be8802c21ea81062443b6d5ea36f
[ "MIT" ]
null
null
null
Easy/Search_Insert_Position.py
dianjiaogit/LeetCode_Python_solution
390693c839d1be8802c21ea81062443b6d5ea36f
[ "MIT" ]
null
null
null
Easy/Search_Insert_Position.py
dianjiaogit/LeetCode_Python_solution
390693c839d1be8802c21ea81062443b6d5ea36f
[ "MIT" ]
null
null
null
# Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. # You may assume no duplicates in the array. # Example 1: # Input: [1,3,5,6], 5 # Output: 2 # Example 2: # Input: [1,3,5,6], 2 # Output: 1 # Example 3: # Inpu...
20.757576
156
0.569343
79574b7d38a488ae732752c84570648aeb722859
1,910
py
Python
test/test_polytope.py
DavidWalz/diversipy
bbc9b6b650529f7cb739cf981dddb3eaad2f2613
[ "BSD-3-Clause" ]
3
2021-01-06T13:35:00.000Z
2021-08-12T08:22:04.000Z
test/test_polytope.py
DavidWalz/diversipy
bbc9b6b650529f7cb739cf981dddb3eaad2f2613
[ "BSD-3-Clause" ]
1
2020-02-20T10:11:38.000Z
2020-02-29T22:52:42.000Z
test/test_polytope.py
DavidWalz/diversipy
bbc9b6b650529f7cb739cf981dddb3eaad2f2613
[ "BSD-3-Clause" ]
null
null
null
from diversipy import polytope import numpy as np import pytest def test_constraints_from_bounds(): A, b = polytope.constraints_from_bounds(lower=[1, 2], upper=[5, 6]) np.testing.assert_almost_equal(A, [[-1, 0], [0, -1], [1, 0], [0, 1]]) np.testing.assert_almost_equal(b, [-1, -2, 5, 6]) def test_check_c...
28.507463
88
0.571204
79574ba7f2b8bb53fec750bba51c34114e19122e
1,579
py
Python
gdc_filtration_tools/tools/filter_contigs.py
MarcSaric/variant-filtration-tool
e4492e2225e87ce904e49401d8919e7f84f9de87
[ "Apache-2.0" ]
null
null
null
gdc_filtration_tools/tools/filter_contigs.py
MarcSaric/variant-filtration-tool
e4492e2225e87ce904e49401d8919e7f84f9de87
[ "Apache-2.0" ]
2
2020-07-08T13:51:37.000Z
2020-07-09T19:31:00.000Z
gdc_filtration_tools/tools/filter_contigs.py
MarcSaric/variant-filtration-tool
e4492e2225e87ce904e49401d8919e7f84f9de87
[ "Apache-2.0" ]
2
2020-08-14T08:51:08.000Z
2021-04-28T15:37:16.000Z
"""Removes the VCF records on chromosomes that are not present in the contig lines of the VCF header. @author: Kyle Hernandez <kmhernan@uchicago.edu> """ import pysam from gdc_filtration_tools.logger import Logger from gdc_filtration_tools.utils import get_pysam_outmode def filter_contigs(input_vcf: str, output_vcf...
28.709091
112
0.639645
79574c01650c47d09ce3798f5d95234ad4aa269b
1,275
py
Python
src/riotwatcher/_apis/league_of_legends/ThirdPartyCodeApiV4.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
489
2015-01-04T22:49:51.000Z
2022-03-28T03:15:54.000Z
src/riotwatcher/_apis/league_of_legends/ThirdPartyCodeApiV4.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
162
2015-02-09T22:10:40.000Z
2022-02-22T13:48:50.000Z
src/riotwatcher/_apis/league_of_legends/ThirdPartyCodeApiV4.py
TheBoringBakery/Riot-Watcher
6e05fffe127530a75fd63e67da37ba81489fd4fe
[ "MIT" ]
221
2015-01-07T18:01:57.000Z
2022-03-26T21:18:48.000Z
from .. import BaseApi, NamedEndpoint from .urls import ThirdPartyCodeApiV4Urls class ThirdPartyCodeApiV4(NamedEndpoint): """ This class wraps the ThirdPartyCode-v4 Api calls provided by the Riot API. See https://developer.riotgames.com/api-methods/#third-party-code-v4 for more detailed information ...
32.692308
90
0.658039
79574dfab9cf518d207b0607095024996e3e4dc0
610
py
Python
crudproject1/enroll/migrations/0001_initial.py
meghanj01/CRUDProject
2f572ff243d0cf4dd3c7120b8429016cb5f15ad3
[ "MIT" ]
null
null
null
crudproject1/enroll/migrations/0001_initial.py
meghanj01/CRUDProject
2f572ff243d0cf4dd3c7120b8429016cb5f15ad3
[ "MIT" ]
null
null
null
crudproject1/enroll/migrations/0001_initial.py
meghanj01/CRUDProject
2f572ff243d0cf4dd3c7120b8429016cb5f15ad3
[ "MIT" ]
null
null
null
# Generated by Django 3.1.13 on 2021-07-19 06:23 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(au...
25.416667
114
0.568852
79574e517284978eff739a9646d5b134968a595c
2,580
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/19_features/numtrees_20/rule_19.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/19_features/numtrees_20/rule_19.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/19_features/numtrees_20/rule_19.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Passanger, obj[1]: Weather, obj[2]: Temperature, obj[3]: Time, obj[4]: Coupon, obj[5]: Coupon_validity, obj[6]: Gender, obj[7]: Age, obj[8]: Maritalstatus, obj[9]: Children, obj[10]: Education, obj[11]: Occupation, obj[12]: Income, obj[13]: Bar, obj[14]: Coffeehouse, obj[15]: Restaurantl...
37.941176
400
0.565504
79574e6db307cdc762e965ff99ab97b28897d6d8
10,520
py
Python
v6.0.5/firewall/fortios_firewall_vipgrp46.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
14
2018-09-25T20:35:25.000Z
2021-07-14T04:30:54.000Z
v6.0.5/firewall/fortios_firewall_vipgrp46.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
32
2018-10-09T04:13:42.000Z
2020-05-11T07:20:28.000Z
v6.0.5/firewall/fortios_firewall_vipgrp46.py
fortinet-solutions-cse/ansible_fgt_modules
c45fba49258d7c9705e7a8fd9c2a09ea4c8a4719
[ "Apache-2.0" ]
11
2018-10-09T00:14:53.000Z
2021-11-03T10:54:09.000Z
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
30.229885
109
0.596293
79574fd1e62cb71f8dfaea6f50eb35e3781dbc2b
2,368
py
Python
tests/pymath/test_calculate_tax.py
BrianLusina/PyCharm
144dd4f6b2d254507237f46c8ee175c407fe053d
[ "Apache-2.0", "MIT" ]
null
null
null
tests/pymath/test_calculate_tax.py
BrianLusina/PyCharm
144dd4f6b2d254507237f46c8ee175c407fe053d
[ "Apache-2.0", "MIT" ]
null
null
null
tests/pymath/test_calculate_tax.py
BrianLusina/PyCharm
144dd4f6b2d254507237f46c8ee175c407fe053d
[ "Apache-2.0", "MIT" ]
null
null
null
from unittest import TestCase, skip from pymath.calculate_tax import calculate_tax # todo: failing tests @skip("Failing tests, not implemented methods correctly") class CalculateTaxTests(TestCase): def test_it_calculates_tax_for_one_person(self): result = calculate_tax({"James": 20500}) self.asse...
37
88
0.604307
79575044c7b646762c580363239430cf49f5e846
2,112
py
Python
basis/producer_consumer_cost.py
dictxwang/python-fragments
029820bfd290c60aeb172e876ddf3937a8704e91
[ "Apache-2.0" ]
null
null
null
basis/producer_consumer_cost.py
dictxwang/python-fragments
029820bfd290c60aeb172e876ddf3937a8704e91
[ "Apache-2.0" ]
null
null
null
basis/producer_consumer_cost.py
dictxwang/python-fragments
029820bfd290c60aeb172e876ddf3937a8704e91
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- __author__ = 'wangqiang' ''' 多进程方式的生成者-消费者模型(测试耗时) 多线程的实现 ''' import threading from queue import Queue import time import uuid import random def producer(name, mq): ''' 生产者,向队列插入数据 :param mq: 共享队列 :return: ''' while True: # 元组的第一项用于表示消息类型,元组第二项使用uuid模拟消息内容 ...
24.275862
133
0.548295
7957504ec2b0029638149ae432540fd032b242ba
55,252
py
Python
google/cloud/compute_v1/services/security_policies/client.py
auphofBSF/python-compute
c81bfa752c9db93edd0cd56fec3a79599704d792
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/security_policies/client.py
auphofBSF/python-compute
c81bfa752c9db93edd0cd56fec3a79599704d792
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/security_policies/client.py
auphofBSF/python-compute
c81bfa752c9db93edd0cd56fec3a79599704d792
[ "Apache-2.0" ]
null
null
null
# -*- 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 or...
44.450523
107
0.61377
79575050f23fb6768f83b7b31a4028460cfce883
194
py
Python
tf_lite_converter.py
angelorodem/tensorflow2-char-rnn
f28503c61de62eade9b477bf13573988fb3807de
[ "MIT" ]
null
null
null
tf_lite_converter.py
angelorodem/tensorflow2-char-rnn
f28503c61de62eade9b477bf13573988fb3807de
[ "MIT" ]
null
null
null
tf_lite_converter.py
angelorodem/tensorflow2-char-rnn
f28503c61de62eade9b477bf13573988fb3807de
[ "MIT" ]
null
null
null
import tensorflow as tf converter = tf.lite.TFLiteConverter.from_saved_model('name_save/saved_model') tflite_model = converter.convert() open("converted_model.tflite", "wb").write(tflite_model)
38.8
77
0.814433
795752341c8adba8b89e4088635cbfeb62146765
13,396
py
Python
smtbx/absolute_structure/__init__.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
smtbx/absolute_structure/__init__.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
smtbx/absolute_structure/__init__.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import absolute_import import math import sys from cctbx.array_family import flex from cctbx import sgtbx, xray from libtbx import adopt_init_args from libtbx.utils import xfrange from libtbx.utils\ import format_float_with_st...
38.828986
85
0.688041
795753f5aa0315b7d93ee121742c2df07df9a666
1,699
py
Python
python/network-security/vernam.py
shivekkhurana/learning
d871343a30cf4db85f3f938a2ca0e419997ca84e
[ "MIT" ]
null
null
null
python/network-security/vernam.py
shivekkhurana/learning
d871343a30cf4db85f3f938a2ca0e419997ca84e
[ "MIT" ]
null
null
null
python/network-security/vernam.py
shivekkhurana/learning
d871343a30cf4db85f3f938a2ca0e419997ca84e
[ "MIT" ]
null
null
null
from random import randint import string class Vernam(object): def __init__(self): super(Vernam, self).__init__() self.chars = string.lowercase + ' ' def o(self, c): return self.chars.find(c) def c(self, o): if o < len(self.chars) and o >= 0: return self.cha...
29.293103
71
0.576221
795754b5ed435b2b41eaea4dcb25c24c63537000
3,030
py
Python
modules/google.py
dngfx/MagicBot
56abfce2aac28f36e24ebe00229625196b269907
[ "WTFPL" ]
1
2020-12-31T03:10:42.000Z
2020-12-31T03:10:42.000Z
modules/google.py
dngfx/MagicBot
56abfce2aac28f36e24ebe00229625196b269907
[ "WTFPL" ]
3
2020-10-12T21:27:28.000Z
2021-08-12T09:46:55.000Z
modules/google.py
dngfx/MagicBot
56abfce2aac28f36e24ebe00229625196b269907
[ "WTFPL" ]
1
2020-10-12T21:17:58.000Z
2020-10-12T21:17:58.000Z
# --depends-on commands # --depends-on config # --require-config google-api-key # --require-config google-search-id import json from src import ModuleManager, utils URL_GOOGLESEARCH = "https://www.googleapis.com/customsearch/v1" URL_GOOGLESUGGEST = "http://google.com/complete/search" @utils.export( "channelse...
35.232558
87
0.50066
7957572d582e4fc6aa8cff914e57abb8c8bab553
103,310
py
Python
superset/views/core.py
jackyq2015/incubator-superset
ffa80c69771a784318e9b713ecf02399f0083556
[ "Apache-2.0" ]
null
null
null
superset/views/core.py
jackyq2015/incubator-superset
ffa80c69771a784318e9b713ecf02399f0083556
[ "Apache-2.0" ]
7
2020-03-24T18:12:00.000Z
2022-03-29T22:27:49.000Z
superset/views/core.py
jackyq2015/incubator-superset
ffa80c69771a784318e9b713ecf02399f0083556
[ "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 u...
36.223703
98
0.58158
795757d49393498167925d2604a062311596d09c
3,631
py
Python
nipyapi/nifi/models/listing_request_entity.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/listing_request_entity.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
1
2020-03-16T10:02:46.000Z
2020-03-16T13:37:42.000Z
nipyapi/nifi/models/listing_request_entity.py
iMajna/nipyapi
5480af8fe8c6b470249837835cb1a067abb6678e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
29.282258
479
0.567612
795758bc417ff76e43d0933f469c92306cb6bf4c
1,510
py
Python
sdk/python/feast/entity.py
lgvital/feast2
833d49559a4d353ac682f27268725fcc14f93f6e
[ "Apache-2.0" ]
1
2019-12-12T13:21:56.000Z
2019-12-12T13:21:56.000Z
sdk/python/feast/entity.py
lgvital/feast2
833d49559a4d353ac682f27268725fcc14f93f6e
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/entity.py
lgvital/feast2
833d49559a4d353ac682f27268725fcc14f93f6e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Feast 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
32.826087
84
0.713245
795758c4c1834967041b2e26095c0fc620d0488b
4,045
py
Python
tensorboard/uploader/util.py
catherinaxu/tensorboard
b2527c579f6f42865c5dcc5c2bc438977bb05616
[ "Apache-2.0" ]
2
2019-11-23T18:36:20.000Z
2019-12-07T20:58:02.000Z
tensorboard/uploader/util.py
catherinaxu/tensorboard
b2527c579f6f42865c5dcc5c2bc438977bb05616
[ "Apache-2.0" ]
null
null
null
tensorboard/uploader/util.py
catherinaxu/tensorboard
b2527c579f6f42865c5dcc5c2bc438977bb05616
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.173913
80
0.704326
79575b35dd682500e0e4aba7a391e30bbc192bcc
7,931
py
Python
configs/topologies/Mesh_XY.py
taomiao/gem5
4effe34f94b599add133357473e1b120b54719ab
[ "BSD-3-Clause" ]
1
2020-07-05T12:35:27.000Z
2020-07-05T12:35:27.000Z
configs/topologies/Mesh_XY.py
taomiao/gem5
4effe34f94b599add133357473e1b120b54719ab
[ "BSD-3-Clause" ]
null
null
null
configs/topologies/Mesh_XY.py
taomiao/gem5
4effe34f94b599add133357473e1b120b54719ab
[ "BSD-3-Clause" ]
1
2019-04-13T20:24:43.000Z
2019-04-13T20:24:43.000Z
# Copyright (c) 2010 Advanced Micro Devices, Inc. # 2016 Georgia Institute of Technology # 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 ...
44.80791
78
0.556424
79575b78986c1b69b2db1221ffe5296898f10e85
101,015
py
Python
scipy/signal/tests/test_signaltools.py
magnusja/scipy
c4a5a1f984e28840010f20a7e41caa21b8f41979
[ "FSFAP" ]
1
2019-06-24T17:59:50.000Z
2019-06-24T17:59:50.000Z
scipy/signal/tests/test_signaltools.py
magnusja/scipy
c4a5a1f984e28840010f20a7e41caa21b8f41979
[ "FSFAP" ]
null
null
null
scipy/signal/tests/test_signaltools.py
magnusja/scipy
c4a5a1f984e28840010f20a7e41caa21b8f41979
[ "FSFAP" ]
1
2019-02-27T06:19:13.000Z
2019-02-27T06:19:13.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import sys from decimal import Decimal from itertools import product import warnings import pytest from pytest import raises as assert_raises from numpy.testing import ( assert_equal, assert_almost_equal, assert_array_eq...
38.018442
98
0.526704
79575da42b09eda2b7d67123e8b4e8fbb79ee8b1
2,556
py
Python
qark/utils.py
lugang21506/qark
ac12f26373911316937fa372f45b9fadb763c5c7
[ "Apache-2.0", "OpenSSL" ]
null
null
null
qark/utils.py
lugang21506/qark
ac12f26373911316937fa372f45b9fadb763c5c7
[ "Apache-2.0", "OpenSSL" ]
null
null
null
qark/utils.py
lugang21506/qark
ac12f26373911316937fa372f45b9fadb763c5c7
[ "Apache-2.0", "OpenSSL" ]
null
null
null
import os from functools import partial import json import urllib.request import time from urllib.error import URLError global TASK_ID TASK_ID = None def create_directories_to_path(path): """Create directories to a path if they don't exist.""" try: os.makedirs(os.path.dirname(path)) ...
30.795181
98
0.61698
79575ec77657ca8dc8139465465c03441c10e754
2,438
py
Python
code/extract_data.py
Zimiao1025/BioSeq-BLM
8e833d9a767d2585bbf1fbee987a065fc421e8e6
[ "BSD-2-Clause" ]
2
2021-12-31T09:12:02.000Z
2022-03-21T13:45:57.000Z
code/extract_data.py
Zimiao1025/BioSeq-BLM
8e833d9a767d2585bbf1fbee987a065fc421e8e6
[ "BSD-2-Clause" ]
null
null
null
code/extract_data.py
Zimiao1025/BioSeq-BLM
8e833d9a767d2585bbf1fbee987a065fc421e8e6
[ "BSD-2-Clause" ]
null
null
null
import os.path import sys t = sys.argv[1] c = '../results/batch/' + str(t) + '/' for a in os.walk(c): for dirname in a[1]: if os.path.exists(c + dirname + '/param.txt'): if os.path.exists(c + dirname + '/cv_model.model'): with open(c + dirname + '/final_results.txt') as f, open(...
46
112
0.389664
79575ef07fefd6db2b6e9b2cb3d550bb0bc9ac3a
2,275
py
Python
tests/test_PropertyReader.py
tku137/JPKay
2be812263c665207bca7664c673d5aef635ea3c5
[ "MIT" ]
1
2016-08-11T05:17:41.000Z
2016-08-11T05:17:41.000Z
tests/test_PropertyReader.py
tku137/JPKay
2be812263c665207bca7664c673d5aef635ea3c5
[ "MIT" ]
null
null
null
tests/test_PropertyReader.py
tku137/JPKay
2be812263c665207bca7664c673d5aef635ea3c5
[ "MIT" ]
null
null
null
# coding=utf-8 import pytest import json from numpy import array from JPKay.core.data_structures import Properties # noinspection PyShadowingNames @pytest.mark.usefixtures("sample_force_file", "general_prop_dict", "segments_prop_dict") class TestPropertyReader: def test_load_java_props(self, sample_force_file...
43.75
117
0.716044
79575f67cbe003dd19b415f1c4dbb71a4b4748ba
7,320
py
Python
third_party/stdlib/getopt.py
ralic/grumpy3
a471f7ba64167d5812c0f6701380f9f71fa937c3
[ "Apache-2.0" ]
null
null
null
third_party/stdlib/getopt.py
ralic/grumpy3
a471f7ba64167d5812c0f6701380f9f71fa937c3
[ "Apache-2.0" ]
null
null
null
third_party/stdlib/getopt.py
ralic/grumpy3
a471f7ba64167d5812c0f6701380f9f71fa937c3
[ "Apache-2.0" ]
null
null
null
"""Parser for command line options. This module helps scripts to parse the command line arguments in sys.argv. It supports the same conventions as the Unix getopt() function (including the special meanings of arguments of the form `-' and `--'). Long options similar to those supported by GNU software may be used as ...
34.691943
77
0.629918
795760b524676f13219ab3967c8d67f9d0dd32a4
5,549
py
Python
tests/system/providers/ec2/__init__.py
befair/bootstrap-vz
ac87a05d96519e4569b38914f5bb32dd3938dd5b
[ "Apache-2.0" ]
null
null
null
tests/system/providers/ec2/__init__.py
befair/bootstrap-vz
ac87a05d96519e4569b38914f5bb32dd3938dd5b
[ "Apache-2.0" ]
null
null
null
tests/system/providers/ec2/__init__.py
befair/bootstrap-vz
ac87a05d96519e4569b38914f5bb32dd3938dd5b
[ "Apache-2.0" ]
1
2019-11-08T15:20:42.000Z
2019-11-08T15:20:42.000Z
from contextlib import contextmanager from tests.system.tools import waituntil import logging log = logging.getLogger(__name__) @contextmanager def prepare_bootstrap(manifest, build_server): if manifest.volume['backing'] == 's3': credentials = {'access-key': build_server.build_settings['ec2-credentials'][...
39.635714
114
0.623175
795763765be523ef702873541c0cbc731b39f15d
3,113
py
Python
www/src/Lib/genericpath.py
frederickavita/testing
577f2e621c188cab59495dcb5166a9e6309a9a81
[ "BSD-3-Clause" ]
4
2018-03-19T12:07:18.000Z
2019-09-20T08:53:31.000Z
www/src/Lib/genericpath.py
frederickavita/testing
577f2e621c188cab59495dcb5166a9e6309a9a81
[ "BSD-3-Clause" ]
null
null
null
www/src/Lib/genericpath.py
frederickavita/testing
577f2e621c188cab59495dcb5166a9e6309a9a81
[ "BSD-3-Clause" ]
null
null
null
""" Path operations common to more than one OS Do not use directly. The OS specific modules import the appropriate functions from this module themselves. """ import os __all__ = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime', 'getsize', 'isdir', 'isfile'] # Does a path exist? # This is fal...
28.824074
78
0.663347
795764413edaca7b802e3c4e5dcbd3e9533fc27f
38
py
Python
tests/__init__.py
infosec-garage/maltools
007c7856f343b267b28b2bca8065ec2832678fc2
[ "MIT" ]
null
null
null
tests/__init__.py
infosec-garage/maltools
007c7856f343b267b28b2bca8065ec2832678fc2
[ "MIT" ]
null
null
null
tests/__init__.py
infosec-garage/maltools
007c7856f343b267b28b2bca8065ec2832678fc2
[ "MIT" ]
null
null
null
"""Unit test package for maltools."""
19
37
0.684211
795764541068f70cc081497df412184cbba59995
3,213
py
Python
GAN/model.py
IvoryCandy/generative-adversarial-networks
4010a20b22ecb016da164b37d6f915788e8f09f5
[ "Apache-2.0" ]
1
2018-06-05T02:26:48.000Z
2018-06-05T02:26:48.000Z
GAN/model.py
IvoryCandy/generative-adversarial-networks
4010a20b22ecb016da164b37d6f915788e8f09f5
[ "Apache-2.0" ]
null
null
null
GAN/model.py
IvoryCandy/generative-adversarial-networks
4010a20b22ecb016da164b37d6f915788e8f09f5
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch.nn.functional as func def de_conv(in_channels, out_channels, kernel_size, stride=2, padding=1, bn=True): """Custom de_convolutional layer for simplicity.""" layers = [nn.ConvTranspose2d(in_channels=in_channels, out_channels=out_channels, ker...
54.457627
136
0.628385
7957649efada28609dfba70d1b41b1cfd1e5de97
3,954
py
Python
examples/connectivity/plot_multi_subject_connectome.py
GaelVaroquaux/nilearn
8e902704bbd186912e753cf08e90eb50f228915c
[ "BSD-2-Clause" ]
1
2020-12-20T00:22:14.000Z
2020-12-20T00:22:14.000Z
examples/connectivity/plot_multi_subject_connectome.py
GaelVaroquaux/nilearn
8e902704bbd186912e753cf08e90eb50f228915c
[ "BSD-2-Clause" ]
3
2016-02-23T09:47:05.000Z
2018-10-12T16:54:38.000Z
examples/connectivity/plot_multi_subject_connectome.py
GaelVaroquaux/nilearn
8e902704bbd186912e753cf08e90eb50f228915c
[ "BSD-2-Clause" ]
3
2017-01-06T09:54:00.000Z
2020-02-17T12:57:35.000Z
""" Group Sparse inverse covariance for multi-subject connectome ============================================================= This example shows how to estimate a connectome on a groupe of subjects using the group sparse inverse covariance estimate. """ import matplotlib.pyplot as plt import numpy as np from nilear...
33.226891
79
0.632524
79576561942604452e6b7b7d47916f20bff8ce8d
5,972
py
Python
features/device-types-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.backend.feature/src/main/resources/agent/src/mqttConnector.py
hasuniea/carbon-device-mgt-plugins
a948a7d69a2e99d6dc1351ae18daf750145d0d32
[ "Apache-2.0" ]
9
2015-10-29T05:24:20.000Z
2018-01-09T08:14:28.000Z
features/device-types-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.backend.feature/src/main/resources/agent/src/mqttConnector.py
hasuniea/carbon-device-mgt-plugins
a948a7d69a2e99d6dc1351ae18daf750145d0d32
[ "Apache-2.0" ]
50
2015-08-04T06:06:51.000Z
2022-01-10T16:17:16.000Z
features/device-types-feature/raspberrypi-plugin-feature/org.wso2.carbon.device.mgt.iot.raspberrypi.backend.feature/src/main/resources/agent/src/mqttConnector.py
hasuniea/carbon-device-mgt-plugins
a948a7d69a2e99d6dc1351ae18daf750145d0d32
[ "Apache-2.0" ]
170
2015-02-12T05:56:29.000Z
2020-02-11T16:39:22.000Z
#!/usr/bin/env python """ /** * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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...
36.414634
114
0.616544
7957666f10791f63d75ac89f891017e1824a11dc
799
py
Python
test/test_edit_contact.py
nicholas-y/python_selenium
84c3344cbed9990903028d9a99c03ee6ffb4aa55
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
nicholas-y/python_selenium
84c3344cbed9990903028d9a99c03ee6ffb4aa55
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
nicholas-y/python_selenium
84c3344cbed9990903028d9a99c03ee6ffb4aa55
[ "Apache-2.0" ]
null
null
null
import random from model.contact import Contact def test_edit_group(app, db, check_ui): i = random.randint(1, 25) if len(db.get_contact_list()) == 0: app.contact.create(Contact(firstname="Tester")) old_contacts = db.get_contact_list() contact = random.choice(old_contacts) old_contacts.remo...
39.95
127
0.732165
795767974c83252945e4e7806825244ac36e86a3
555
py
Python
tests/integration_tests/boolean_tests/operations_tests/test_is_trivial.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
7
2020-05-07T08:13:44.000Z
2021-12-17T07:33:51.000Z
tests/integration_tests/boolean_tests/operations_tests/test_is_trivial.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
17
2019-11-29T23:17:26.000Z
2020-12-20T15:47:17.000Z
tests/integration_tests/boolean_tests/operations_tests/test_is_trivial.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
1
2020-12-17T22:44:21.000Z
2020-12-17T22:44:21.000Z
from typing import Tuple from hypothesis import given from tests.bind_tests.hints import BoundOperation from tests.integration_tests.utils import are_bound_ported_polygons_equal from tests.port_tests.hints import PortedOperation from . import strategies @given(strategies.operations_pairs) def test_basic(operations_...
30.833333
77
0.812613
795767af1700ffd3444c8a027c05a12d5b70d759
1,809
py
Python
ui/widgets/group_selection.py
vvstubbs/NordVpnLinuxGUI
78e78c212c1fc50d2ff9a418285b397f2d65d6a2
[ "MIT" ]
17
2021-12-27T20:19:37.000Z
2022-03-25T10:19:08.000Z
ui/widgets/group_selection.py
vvstubbs/NordVpnLinuxGUI
78e78c212c1fc50d2ff9a418285b397f2d65d6a2
[ "MIT" ]
5
2021-12-28T08:17:26.000Z
2022-02-09T03:44:32.000Z
ui/widgets/group_selection.py
vvstubbs/NordVpnLinuxGUI
78e78c212c1fc50d2ff9a418285b397f2d65d6a2
[ "MIT" ]
5
2021-12-28T08:01:19.000Z
2022-02-22T04:14:42.000Z
from kivy.app import App from kivy.clock import Clock from kivy.properties import StringProperty from kivy.uix.boxlayout import BoxLayout from kivy.lang.builder import Builder from kivy.uix.gridlayout import GridLayout ICON_TABLE = { "Africa_The_Middle_East_And_India": "earth", "P2P": "share", "Asia_Pacifi...
27
63
0.601437
795767df4fad236ff7dc189753ebda7d8d32eea1
1,381
py
Python
exo/studio/figures/views.py
moas/sketchbadges
7c5be91a74f9edd759eaacd9a7b97aef873f7fcb
[ "MIT" ]
null
null
null
exo/studio/figures/views.py
moas/sketchbadges
7c5be91a74f9edd759eaacd9a7b97aef873f7fcb
[ "MIT" ]
null
null
null
exo/studio/figures/views.py
moas/sketchbadges
7c5be91a74f9edd759eaacd9a7b97aef873f7fcb
[ "MIT" ]
null
null
null
from django.core.urlresolvers import reverse from django.shortcuts import get_object_or_404 from django.utils.functional import cached_property from django.views import generic from .forms import EvaluationModel3DForm from .models import EvaluationModel3D, Model3D # Create your views here. class ListModel3DView(gen...
28.183673
71
0.726285
795768cd62a83457515a1a3a92a8c54392e7bf85
18,769
py
Python
shell/impala_client.py
kexianda/impala
2e60347868d7e719d80401f9abcbe971e659502b
[ "Apache-2.0" ]
1
2019-12-14T03:09:50.000Z
2019-12-14T03:09:50.000Z
shell/impala_client.py
kexianda/impala
2e60347868d7e719d80401f9abcbe971e659502b
[ "Apache-2.0" ]
null
null
null
shell/impala_client.py
kexianda/impala
2e60347868d7e719d80401f9abcbe971e659502b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # 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 # "...
37.917172
90
0.699931
7957692c7f4f576f32e0b4d7957f34de13b051fb
2,625
py
Python
tests/mypy/test_mypy.py
ducminhgd/typical
24157060fe463b0a5b110885e69544995c576ccc
[ "MIT" ]
null
null
null
tests/mypy/test_mypy.py
ducminhgd/typical
24157060fe463b0a5b110885e69544995c576ccc
[ "MIT" ]
null
null
null
tests/mypy/test_mypy.py
ducminhgd/typical
24157060fe463b0a5b110885e69544995c576ccc
[ "MIT" ]
null
null
null
import importlib import os import re from pathlib import Path import pytest from mypy import api as mypy_api # This ensures mypy can find the test files, no matter where tests are run from: os.chdir(Path(__file__).parent.parent.parent) cases = ( ("mypy.ini", "success.py", "success.txt"), ("mypy.ini", "fail....
32.407407
88
0.671619
795769480c4a6dafa7f0d066138ed179735bb05c
2,724
py
Python
applications/MetisApplication/test_exemples/square_domain/square_domain_contact.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/MetisApplication/test_exemples/square_domain/square_domain_contact.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/MetisApplication/test_exemples/square_domain/square_domain_contact.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # # # setting the domain size for the problem to be solved domain_size = 2 import mpi # # # ATTENTION: here the order is important # including kratos path kratos_libs_path = '../../.....
28.978723
134
0.805433
79576b349fac5a6d78fa102c6565bafdc32e59e3
31,244
py
Python
python/ct/crypto/cert_test.py
kucske/certificate-transparency
fb5b4503f7e3ddf6721fed60cc8b019303742cd0
[ "Apache-2.0" ]
807
2015-01-03T09:12:09.000Z
2022-03-31T14:59:13.000Z
python/ct/crypto/cert_test.py
kucske/certificate-transparency
fb5b4503f7e3ddf6721fed60cc8b019303742cd0
[ "Apache-2.0" ]
845
2015-01-02T02:03:18.000Z
2022-03-16T09:12:55.000Z
python/ct/crypto/cert_test.py
kucske/certificate-transparency
fb5b4503f7e3ddf6721fed60cc8b019303742cd0
[ "Apache-2.0" ]
313
2015-01-08T07:50:30.000Z
2022-03-03T14:25:46.000Z
#!/usr/bin/env python # coding=utf-8 import unittest import time from ct.crypto import cert from ct.crypto import error from ct.crypto.asn1 import oid from ct.crypto.asn1 import x509_common from ct.crypto.asn1 import x509_extension as x509_ext from ct.crypto.asn1 import x509_name from ct.crypto.asn1 import x509 from ...
41.714286
81
0.659359
79576b40e0bbf99151a5592bece19f00141f8552
21,643
py
Python
skbio/stats/tests/test_power.py
ebolyen/scikit-bio
04dff688aa67de871e7c4b1c47f459d0f701b4d2
[ "BSD-3-Clause" ]
null
null
null
skbio/stats/tests/test_power.py
ebolyen/scikit-bio
04dff688aa67de871e7c4b1c47f459d0f701b4d2
[ "BSD-3-Clause" ]
null
null
null
skbio/stats/tests/test_power.py
ebolyen/scikit-bio
04dff688aa67de871e7c4b1c47f459d0f701b4d2
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
42.604331
79
0.473548
79576c5146e9ea71349c0f1ce0ee1e71392f202e
7,321
py
Python
cvqa-r-nouns/dataset/automatic-dataset/sameQuestionDataset.py
andeeptoor/qpr-qe-datasets
4359af17e7df335abe38a18d046f94f9cef57277
[ "Apache-2.0" ]
null
null
null
cvqa-r-nouns/dataset/automatic-dataset/sameQuestionDataset.py
andeeptoor/qpr-qe-datasets
4359af17e7df335abe38a18d046f94f9cef57277
[ "Apache-2.0" ]
null
null
null
cvqa-r-nouns/dataset/automatic-dataset/sameQuestionDataset.py
andeeptoor/qpr-qe-datasets
4359af17e7df335abe38a18d046f94f9cef57277
[ "Apache-2.0" ]
2
2018-06-09T01:03:05.000Z
2021-02-05T11:45:06.000Z
import json import os import random import pandas as pd import time import sys import re import operator reload(sys) sys.setdefaultencoding('utf8') def readJson(filename): print "Reading [%s]..." % (filename) with open(filename) as inputFile: jsonData = json.load(inputFile) print "Finished reading [%s]." % (fi...
34.533019
211
0.692119
79576e459aaf51e909915d31cf38c2d088d98e18
865
py
Python
lib/exabgp/bgp/message/__init__.py
cloudscale-ch/exabgp
55ee496dfbc3fce75c5107fae7a7d38567154d46
[ "BSD-3-Clause" ]
1,560
2015-01-01T08:53:05.000Z
2022-03-29T20:22:43.000Z
lib/exabgp/bgp/message/__init__.py
nembery/exabgp
53cfff843ddde33bf1c437a1c4ce99de20c6bade
[ "BSD-3-Clause" ]
818
2015-01-01T17:38:40.000Z
2022-03-30T07:29:24.000Z
lib/exabgp/bgp/message/__init__.py
nembery/exabgp
53cfff843ddde33bf1c437a1c4ce99de20c6bade
[ "BSD-3-Clause" ]
439
2015-01-06T21:20:41.000Z
2022-03-19T23:24:25.000Z
# encoding: utf-8 """ update/__init__.py Created by Thomas Mangin on 2010-01-15. Copyright (c) 2009-2017 Exa Networks. All rights reserved. License: 3-clause BSD. (See the COPYRIGHT file) """ # Every Message should be imported from this file # as it makes sure that all the registering decorator are run from exabgp.b...
33.269231
61
0.812717
79576e678ec73951366eaeb3be9e10883f1144e2
361
py
Python
mapclientplugins/zincmodelsourcestep/__init__.py
tsalemink/zincmodelsourcestep
0c5b98fb394e94452ed536beb4de99ace626c95d
[ "Apache-2.0" ]
null
null
null
mapclientplugins/zincmodelsourcestep/__init__.py
tsalemink/zincmodelsourcestep
0c5b98fb394e94452ed536beb4de99ace626c95d
[ "Apache-2.0" ]
null
null
null
mapclientplugins/zincmodelsourcestep/__init__.py
tsalemink/zincmodelsourcestep
0c5b98fb394e94452ed536beb4de99ace626c95d
[ "Apache-2.0" ]
1
2021-06-09T21:50:14.000Z
2021-06-09T21:50:14.000Z
''' MAP Client Plugin ''' __version__ = '0.1.0' __author__ = 'Hugh Sorby' __stepname__ = 'Zinc Model Source' __location__ = 'https://github.com/mapclient-plugins/zincdatasourcestep' # import class that derives itself from the step mountpoint. from mapclientplugins.zincmodelsourcestep import resources_rc from mapclien...
27.769231
72
0.803324
79576e9d62aa7813fb64cfc3c38a716ad66e6531
1,497
py
Python
ports/esp8266/modules/inisetup.py
zeilenschubser/micropython
61dfc61230ca1fd0b964fb86911f19ccdc30acb9
[ "MIT" ]
79
2019-02-07T09:04:50.000Z
2022-02-20T06:54:44.000Z
ports/esp8266/modules/inisetup.py
zeilenschubser/micropython
61dfc61230ca1fd0b964fb86911f19ccdc30acb9
[ "MIT" ]
176
2020-10-18T14:31:03.000Z
2022-03-30T23:22:39.000Z
ports/esp8266/modules/inisetup.py
zeilenschubser/micropython
61dfc61230ca1fd0b964fb86911f19ccdc30acb9
[ "MIT" ]
25
2019-03-20T08:16:57.000Z
2022-03-11T17:59:36.000Z
import uos import network from flashbdev import bdev def wifi(): import ubinascii ap_if = network.WLAN(network.AP_IF) essid = b"MicroPython-%s" % ubinascii.hexlify(ap_if.config("mac")[-3:]) ap_if.config(essid=essid, authmode=network.AUTH_WPA_WPA2_PSK, password=b"micropythoN") def check_bootsec(): ...
22.681818
90
0.643955
79576ec2279f59e4d4e8dc9fc0e5c3d462def945
28,219
py
Python
blechpy/plotting/data_plot.py
thomasrgray/blechpy
46a95991e1d41556a263e48c9c3b61b1d337aae0
[ "MIT" ]
8
2020-10-05T19:00:45.000Z
2021-09-14T16:43:08.000Z
blechpy/plotting/data_plot.py
thomasrgray/blechpy
46a95991e1d41556a263e48c9c3b61b1d337aae0
[ "MIT" ]
25
2019-11-01T14:42:22.000Z
2022-03-02T21:43:58.000Z
blechpy/plotting/data_plot.py
thomasrgray/blechpy
46a95991e1d41556a263e48c9c3b61b1d337aae0
[ "MIT" ]
3
2019-11-01T14:38:42.000Z
2021-10-21T16:15:09.000Z
import pandas as pd import numpy as np import tables import os import umap import pywt import itertools as it from blechpy import dio from blechpy.analysis import spike_analysis as sas from scipy.stats import sem from scipy.ndimage.filters import gaussian_filter1d from statsmodels.stats.diagnostic import lilliefors fro...
35.317897
103
0.602396
79576f9d75413d5d3f6926eea59dc6633578f206
16,943
py
Python
test/mobile/model_test/math_ops.py
tenpercent/pytorch
7f996b855c5070ab4a6bea0f451c8a22c0ce2394
[ "Intel" ]
1
2022-03-29T00:44:31.000Z
2022-03-29T00:44:31.000Z
test/mobile/model_test/math_ops.py
tenpercent/pytorch
7f996b855c5070ab4a6bea0f451c8a22c0ce2394
[ "Intel" ]
null
null
null
test/mobile/model_test/math_ops.py
tenpercent/pytorch
7f996b855c5070ab4a6bea0f451c8a22c0ce2394
[ "Intel" ]
1
2022-03-28T21:49:41.000Z
2022-03-28T21:49:41.000Z
# https://pytorch.org/docs/stable/torch.html#math-operations import math import torch class PointwiseOpsModule(torch.nn.Module): def __init__(self): super(PointwiseOpsModule, self).__init__() def forward(self): return self.pointwise_ops() def pointwise_ops(self): a = torch.rand...
36.048936
110
0.474532
7957700f505fe822d925ca2a068cdc14546fecc5
3,049
py
Python
Gamle scripts/systematic/drop_0_10.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
2
2018-10-10T09:32:34.000Z
2019-03-28T08:42:31.000Z
Gamle scripts/systematic/drop_0_10.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
Gamle scripts/systematic/drop_0_10.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 13 12:31:46 2018 @author: Simon """ import os from createLargerFeatureMatrix import simpleLargeMatrix import pickle from keras.models import Sequential from keras.layers import Dense, Dropout from keras import regularizers import numpy as np path ...
23.274809
137
0.762545
7957715d2faae3e1728cc38e91f3eb3228d4ccc8
311
py
Python
sleep/middleware.py
sleepers-anonymous/zscore
2d7eb2e2c06c307af7fae4058173a25ba9c40025
[ "MIT" ]
3
2015-05-20T02:38:27.000Z
2017-02-13T20:46:40.000Z
sleep/middleware.py
sleepers-anonymous/zscore
2d7eb2e2c06c307af7fae4058173a25ba9c40025
[ "MIT" ]
23
2015-01-06T17:42:22.000Z
2020-10-23T12:32:34.000Z
sleep/middleware.py
sleepers-anonymous/zscore
2d7eb2e2c06c307af7fae4058173a25ba9c40025
[ "MIT" ]
1
2018-01-29T21:54:54.000Z
2018-01-29T21:54:54.000Z
from django.utils import timezone from models import SleeperProfile, Sleeper import pytz class TimezoneMiddleware(object): def process_request(self,request): if request.user.is_authenticated(): tz = pytz.timezone(request.user.sleeperprofile.timezone) timezone.activate(tz)
28.272727
68
0.733119
795771994d5854b046a58287be4338170136341e
10,188
py
Python
tests/test_default_values.py
berland/configsuite
9c1eaeed3610ffaa9e549a35dc2709da44633c75
[ "MIT" ]
8
2019-08-12T08:16:12.000Z
2022-03-15T12:42:03.000Z
tests/test_default_values.py
berland/configsuite
9c1eaeed3610ffaa9e549a35dc2709da44633c75
[ "MIT" ]
95
2019-01-29T08:05:35.000Z
2022-01-06T07:42:59.000Z
tests/test_default_values.py
berland/configsuite
9c1eaeed3610ffaa9e549a35dc2709da44633c75
[ "MIT" ]
14
2019-02-06T08:15:10.000Z
2020-11-05T12:59:37.000Z
"""Copyright 2019 Equinor ASA and The Netherlands Organisation for Applied Scientific Research TNO. Licensed under the MIT license. 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 restric...
38.737643
88
0.652925
795773ed1443726aa14594a1c107c71b94e1a034
3,018
py
Python
salt/tests/unit/formulas/fixtures/kubernetes.py
elenamarcova/metalk8s
d23df7144e710777150fdfe5779d733743715771
[ "Apache-2.0" ]
1
2021-09-04T18:08:07.000Z
2021-09-04T18:08:07.000Z
salt/tests/unit/formulas/fixtures/kubernetes.py
elenamarcova/metalk8s
d23df7144e710777150fdfe5779d733743715771
[ "Apache-2.0" ]
null
null
null
salt/tests/unit/formulas/fixtures/kubernetes.py
elenamarcova/metalk8s
d23df7144e710777150fdfe5779d733743715771
[ "Apache-2.0" ]
null
null
null
"""Expose a really crude mock of K8s API for use in rendering tests.""" import collections import re from typing import Any, Dict, Iterator, List, Optional import pytest APIVersion = str Kind = str ItemList = List[Any] K8sData = Dict[APIVersion, Dict[Kind, ItemList]] class KubernetesMock: """Simple object for...
31.768421
85
0.543075
795774679084758b267625e44e4a8176f1d02ef2
192,329
py
Python
gpMgmt/test/behave/mgmt_utils/steps/mgmt_utils.py
shahin/gpdb
3909ad6b2d9bc06ed4659d2c9223fc12b9409a33
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/test/behave/mgmt_utils/steps/mgmt_utils.py
shahin/gpdb
3909ad6b2d9bc06ed4659d2c9223fc12b9409a33
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/test/behave/mgmt_utils/steps/mgmt_utils.py
shahin/gpdb
3909ad6b2d9bc06ed4659d2c9223fc12b9409a33
[ "PostgreSQL", "Apache-2.0" ]
1
2018-12-04T09:13:57.000Z
2018-12-04T09:13:57.000Z
import commands import fnmatch import getpass import glob import gzip import json import os import platform import shutil import socket import tarfile import thread import yaml import json from collections import defaultdict from datetime import datetime from gppylib.commands.gp import SegmentStart, GpStandbyStart fr...
45.564795
269
0.677371
795774e926b1173dd2d81bfdd0657009cee65339
1,668
py
Python
setup.py
graingert/requests
5d87e1aeba0f98d13b7827c8472dab26eb3bd13e
[ "Apache-2.0" ]
4
2019-05-20T13:15:28.000Z
2019-05-23T04:49:47.000Z
setup.py
graingert/requests
5d87e1aeba0f98d13b7827c8472dab26eb3bd13e
[ "Apache-2.0" ]
1
2021-12-13T20:55:07.000Z
2021-12-13T20:55:07.000Z
vendor/packages/requests/setup.py
joshua-s/fjord
8cdaddf5b05e51fef44675492e115279efe9fd5c
[ "BSD-3-Clause" ]
4
2015-07-08T09:13:44.000Z
2021-12-14T08:33:38.000Z
#!/usr/bin/env python import os import sys import requests try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() packages = [ 'requests', 'requests.packages', 'requests.packa...
28.271186
68
0.626499
7957756fa27efd8fb8c8130dee421fc71e8ef10c
1,677
py
Python
Hint.py
kennethwpak/hangman
ecc911494249752a71d4d3c08328fafe81066402
[ "MIT" ]
null
null
null
Hint.py
kennethwpak/hangman
ecc911494249752a71d4d3c08328fafe81066402
[ "MIT" ]
null
null
null
Hint.py
kennethwpak/hangman
ecc911494249752a71d4d3c08328fafe81066402
[ "MIT" ]
null
null
null
import hangman1 as hm import random secret_word = hm.secret_word letters_guessed = hm.letters_guessed get_available_letters = hm.get_available_letters get_guessed_word = hm.get_guessed_word class hint: def __init__(self): print('Oops, you now meet trouble') print('You can use any hint to help you ...
39
89
0.664878
795776048eceb9321524c67c72e768fea4b7d6d8
188
py
Python
opencivicdata/core/apps.py
palewire/python-opencivicdata
7862be45bef6846d3e284995d208fabcc8635362
[ "BSD-3-Clause" ]
20
2017-06-23T17:31:48.000Z
2021-11-23T19:20:58.000Z
opencivicdata/core/apps.py
palewire/python-opencivicdata
7862be45bef6846d3e284995d208fabcc8635362
[ "BSD-3-Clause" ]
70
2015-01-06T18:40:22.000Z
2017-05-24T18:06:52.000Z
opencivicdata/core/apps.py
california-civic-data-coalition/python-opencivicdata-django
375cd09d48908a7be58186de64f470b233f616d6
[ "BSD-3-Clause" ]
17
2017-05-25T17:05:57.000Z
2021-06-05T14:45:39.000Z
from django.apps import AppConfig import os class BaseConfig(AppConfig): name = "opencivicdata.core" verbose_name = "Open Civic Data - Core" path = os.path.dirname(__file__)
20.888889
43
0.723404
79577618e3ce78e887bd524785db1a6ac1099479
623
py
Python
finance/urls.py
Hamifthi/gym-app
514d7efa4f7777ab9d2e0481311c1c15542756c1
[ "MIT" ]
null
null
null
finance/urls.py
Hamifthi/gym-app
514d7efa4f7777ab9d2e0481311c1c15542756c1
[ "MIT" ]
4
2021-03-30T12:49:27.000Z
2021-06-10T18:27:47.000Z
finance/urls.py
Hamifthi/gym-app
514d7efa4f7777ab9d2e0481311c1c15542756c1
[ "MIT" ]
null
null
null
from django.urls import path, re_path, reverse_lazy from . import views urlpatterns = [ path('submit/income/', views.SubmitIncome.as_view(), name='submit_income'), path('submit/expense/', views.SubmitExpense.as_view(), name='submit_expense'), path('report/form/', views.TransactionReportForm.as_view(), name...
56.636364
99
0.744783
795776bdbafc87f29a4c87412abe4fc850ee03a4
1,654
py
Python
app/auth/views.py
Waithera-m/You-Got-This
efc83bd712ffbb5d57acf3c9925389905adf8673
[ "Unlicense" ]
null
null
null
app/auth/views.py
Waithera-m/You-Got-This
efc83bd712ffbb5d57acf3c9925389905adf8673
[ "Unlicense" ]
null
null
null
app/auth/views.py
Waithera-m/You-Got-This
efc83bd712ffbb5d57acf3c9925389905adf8673
[ "Unlicense" ]
null
null
null
from flask import render_template,redirect,url_for,flash,request from . import auth from ..models import User from .forms import UserRegistrationForm,LoginForm from .. import db from flask_login import login_user,logout_user,login_required from ..email import email_message @auth.route('/login', methods=["GET","POST"]...
30.072727
98
0.691052
7957778bd2fed4a7a1709adc1984924ddd018e7b
31,254
py
Python
merge_statistics.py
loganlebanoff/correct_summarization
cec0d5401ddb5f7c33aca14f31da68b2f8092c53
[ "BSD-3-Clause" ]
2
2019-07-20T14:57:39.000Z
2020-06-01T11:14:40.000Z
merge_statistics.py
loganlebanoff/correct_summarization
cec0d5401ddb5f7c33aca14f31da68b2f8092c53
[ "BSD-3-Clause" ]
null
null
null
merge_statistics.py
loganlebanoff/correct_summarization
cec0d5401ddb5f7c33aca14f31da68b2f8092c53
[ "BSD-3-Clause" ]
null
null
null
import cPickle from pathos.multiprocessing import ProcessingPool as Pool import itertools import os from tqdm import tqdm import numpy as np from absl import flags from absl import app import pickle import util import sys import glob import data from scipy.stats.stats import pearsonr import matplotlib ...
52.972881
240
0.598195
7957778f13badbc805416eb7a8599d292f2cae67
1,939
py
Python
aliquotmaf/annotators/hotspot.py
NCI-GDC/aliquot-maf-tools
6aec9490ab7194ec605bf02c4c8e7c1cfca53973
[ "Apache-2.0" ]
1
2020-09-18T17:52:37.000Z
2020-09-18T17:52:37.000Z
aliquotmaf/annotators/hotspot.py
NCI-GDC/aliquot-maf-tools
6aec9490ab7194ec605bf02c4c8e7c1cfca53973
[ "Apache-2.0" ]
null
null
null
aliquotmaf/annotators/hotspot.py
NCI-GDC/aliquot-maf-tools
6aec9490ab7194ec605bf02c4c8e7c1cfca53973
[ "Apache-2.0" ]
1
2020-08-14T08:49:39.000Z
2020-08-14T08:49:39.000Z
""" Implements the hotspots annotation. """ from __future__ import absolute_import from aliquotmaf.converters.builder import get_builder from .annotator import Annotator class Hotspot(Annotator): def __init__(self, source, scheme, data): super().__init__(name="Hotspot", source=source, scheme=scheme) ...
32.864407
84
0.513667
7957787f8415e186326ba6f325359195d25e97ac
3,688
py
Python
source/setup.py
ph4s3r/webhook-shims
077ab606800612d1cfd048731264ad4cf91bfba6
[ "Apache-2.0" ]
null
null
null
source/setup.py
ph4s3r/webhook-shims
077ab606800612d1cfd048731264ad4cf91bfba6
[ "Apache-2.0" ]
null
null
null
source/setup.py
ph4s3r/webhook-shims
077ab606800612d1cfd048731264ad4cf91bfba6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os, sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand #from pip.req import parse_requirements from pip._internal.req import parse_requirements def parse_requirements(filename): """ load requirements from a pip requirements file """...
32.928571
137
0.667299
795778aa6255d5a769444ef20c68fd4c031e7192
5,749
py
Python
sc2players/playerManagement.py
ttinies/sc2players
fd9b37c268bf1005d9ef73a25e65ed97c8b7895f
[ "Apache-2.0" ]
3
2018-06-16T02:47:59.000Z
2019-12-24T04:51:11.000Z
sc2players/playerManagement.py
ttinies/sc2players
fd9b37c268bf1005d9ef73a25e65ed97c8b7895f
[ "Apache-2.0" ]
2
2018-07-09T05:44:22.000Z
2018-07-13T05:31:17.000Z
sc2players/playerManagement.py
ttinies/sc2players
fd9b37c268bf1005d9ef73a25e65ed97c8b7895f
[ "Apache-2.0" ]
null
null
null
""" PURPOSE: manage records of all known players, both local and remote """ from __future__ import absolute_import from __future__ import division # python 2/3 compatibility from __future__ import print_function # python 2/3 compatibility from six import iteritems, itervalues # python 2/3 compatibility import ...
41.064286
124
0.573317
795778ad5b579edaddca6b50a3bf0dd8d8e97254
21,010
py
Python
zentral/contrib/monolith/forms.py
janheise/zentral
cd809483573301e7d1aa5d3fc2da2c74a62405ab
[ "Apache-2.0" ]
null
null
null
zentral/contrib/monolith/forms.py
janheise/zentral
cd809483573301e7d1aa5d3fc2da2c74a62405ab
[ "Apache-2.0" ]
null
null
null
zentral/contrib/monolith/forms.py
janheise/zentral
cd809483573301e7d1aa5d3fc2da2c74a62405ab
[ "Apache-2.0" ]
null
null
null
from django import forms from django.db import IntegrityError, transaction from django.db.models import F, Max, Q from zentral.contrib.inventory.models import MetaBusinessUnit, Tag from .attachments import MobileconfigFile, PackageFile from .exceptions import AttachmentError from .models import (Catalog, Enrollment, ...
42.02
119
0.606188
795778ca60c3d326796c3934baeacea2e6b807e7
8,713
py
Python
sdk/python/pulumi_azure_nextgen/documentdb/v20191212/sql_resource_sql_stored_procedure.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/documentdb/v20191212/sql_resource_sql_stored_procedure.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/documentdb/v20191212/sql_resource_sql_stored_procedure.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
55.852564
751
0.682888
79577a601a3ff20754dd317ff6442be7f7b5f719
7,492
py
Python
docs/advanced/abf-file-format/old/2017-10-07 header struct formatting/v03.py
ChristianKeine/pyABF
38e0a68e3f021299a285e44a66a9edac57c9bedd
[ "MIT" ]
null
null
null
docs/advanced/abf-file-format/old/2017-10-07 header struct formatting/v03.py
ChristianKeine/pyABF
38e0a68e3f021299a285e44a66a9edac57c9bedd
[ "MIT" ]
null
null
null
docs/advanced/abf-file-format/old/2017-10-07 header struct formatting/v03.py
ChristianKeine/pyABF
38e0a68e3f021299a285e44a66a9edac57c9bedd
[ "MIT" ]
null
null
null
"""Minimal-case demonstration how to read an ABF2 header and data. https://github.com/swharden/pyABF/""" import os import struct STRUCTS_HEADER="""fFileSignature_4s,fFileVersionNumber_4b,uFileInfoSize_I,lActualEpisodes_I,uFileStartDate_I, uFileStartTimeMS_I,uStopwatchTime_I,nFileType_H,nDataFormat_H,nSimultaneousScan...
64.586207
110
0.776428
79577aa0d69cf9042b1f81fd5c88d069bb33ca8b
4,168
py
Python
parse_pbs.py
NCAR/pbs_accounting_parser
a81b6da43c28d54a248c948bacca37c2ff03fde8
[ "MIT" ]
null
null
null
parse_pbs.py
NCAR/pbs_accounting_parser
a81b6da43c28d54a248c948bacca37c2ff03fde8
[ "MIT" ]
3
2018-07-12T21:44:07.000Z
2018-07-12T22:37:12.000Z
parse_pbs.py
NCAR/pbs_accounting_parser
a81b6da43c28d54a248c948bacca37c2ff03fde8
[ "MIT" ]
2
2018-10-10T01:28:57.000Z
2018-11-29T17:21:51.000Z
#MIT License # #Copyright (c) 2018 National Center for Atmospheric Research # #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...
27.602649
82
0.659549
79577b021b7614f443da02698bcfa0027a4ad293
5,993
py
Python
cottonformation/res/codeguruprofiler.py
MacHu-GWU/cottonformation-project
23e28c08cfb5a7cc0db6dbfdb1d7e1585c773f3b
[ "BSD-2-Clause" ]
5
2021-07-22T03:45:59.000Z
2021-12-17T21:07:14.000Z
cottonformation/res/codeguruprofiler.py
MacHu-GWU/cottonformation-project
23e28c08cfb5a7cc0db6dbfdb1d7e1585c773f3b
[ "BSD-2-Clause" ]
1
2021-06-25T18:01:31.000Z
2021-06-25T18:01:31.000Z
cottonformation/res/codeguruprofiler.py
MacHu-GWU/cottonformation-project
23e28c08cfb5a7cc0db6dbfdb1d7e1585c773f3b
[ "BSD-2-Clause" ]
2
2021-06-27T03:08:21.000Z
2021-06-28T22:15:51.000Z
# -*- coding: utf-8 -*- """ This module """ import attr import typing from ..core.model import ( Property, Resource, Tag, GetAtt, TypeHint, TypeCheck, ) from ..core.constant import AttrMeta #--- Property declaration --- @attr.s class PropProfilingGroupChannel(Property): """ AWS Object Type = "AWS::Code...
57.625
244
0.776406
79577b73eb73b8e43e4f481f7d414bbd29be4203
1,108
py
Python
python/simpleMotorTest.py
BillElliot/k9-chess-angular
ed46e5de4865ff9398102e643c802aae61967a1c
[ "Unlicense" ]
10
2016-11-05T22:49:42.000Z
2020-02-07T15:30:05.000Z
python/simpleMotorTest.py
BillElliot/k9-chess-angular
ed46e5de4865ff9398102e643c802aae61967a1c
[ "Unlicense" ]
37
2017-05-30T21:13:09.000Z
2019-03-15T12:49:30.000Z
python/simpleMotorTest.py
BillElliot/k9-chess-angular
ed46e5de4865ff9398102e643c802aae61967a1c
[ "Unlicense" ]
11
2017-05-23T16:38:38.000Z
2021-03-06T22:34:56.000Z
import math import time from roboclaw import Roboclaw address = 0x80 rc = Roboclaw("/dev/roboclaw",115200) rc.Open() version = rc.ReadVersion(address) if version[0]==False: print "GETVERSION Failed" else: print repr(version[1]) rc.SetM1VelocityPID(address,3000,300,0,708) rc.SetM2VelocityPID(address,3000,300,0,720) cl...
24.086957
60
0.755415
79577b84900bcb0b53f813eabdee16858db2d2c4
70,110
py
Python
netpyne/cell/compartCell.py
jchen6727/netpyne
52edba6b337768100861d83987ae6117d3e6ca62
[ "MIT" ]
1
2020-05-11T14:54:54.000Z
2020-05-11T14:54:54.000Z
netpyne/cell/compartCell.py
jchen6727/netpyne
52edba6b337768100861d83987ae6117d3e6ca62
[ "MIT" ]
null
null
null
netpyne/cell/compartCell.py
jchen6727/netpyne
52edba6b337768100861d83987ae6117d3e6ca62
[ "MIT" ]
null
null
null
""" cell/compartCell.py Contains compartCell class Contributors: salvadordura@gmail.com """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import from builtins import super from builtins import next from builtins import ...
53.113636
218
0.532178
79577bbbb25b7bf48d1884c2542aa95916e32032
169
py
Python
adaptivedistillation/models/classifiers/__init__.py
wyze-AI/AdaptiveDistillation
5f4575794101dbb1ed2f7e90a2be03856f76041c
[ "MIT" ]
1
2022-01-12T22:24:07.000Z
2022-01-12T22:24:07.000Z
adaptivedistillation/models/classifiers/__init__.py
wyze-AI/AdaptiveDistillation
5f4575794101dbb1ed2f7e90a2be03856f76041c
[ "MIT" ]
null
null
null
adaptivedistillation/models/classifiers/__init__.py
wyze-AI/AdaptiveDistillation
5f4575794101dbb1ed2f7e90a2be03856f76041c
[ "MIT" ]
2
2022-01-12T22:24:17.000Z
2022-02-15T05:46:30.000Z
from .kd_image import KnowledgeDistillationImageClassifier from .image import ImageClassifierAD __all__ = ['KnowledgeDistillationImageClassifier', 'ImageClassifierAD']
33.8
71
0.863905
79577c2d0a6d806410d23bae3e2090f23e9ea3f5
5,884
py
Python
django/core/handlers/exception.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
django/core/handlers/exception.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
django/core/handlers/exception.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
3
2019-08-20T13:29:34.000Z
2020-01-30T22:05:10.000Z
import asyncio import logging import sys from functools import wraps from asgiref.sync import sync_to_async from django.conf import settings from django.core import signals from django.core.exceptions import ( BadRequest, PermissionDenied, RequestDataTooBig, SuspiciousOperation, TooManyFieldsSent,...
31.634409
79
0.633753
79577cea5ed2e6630bfb15daf87dac46d104a959
2,570
py
Python
tests/functional/test_delete_service_with_active_export.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
tests/functional/test_delete_service_with_active_export.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
tests/functional/test_delete_service_with_active_export.py
AKhodus/adcm
98dbf22af3f1c6afa94505e9acaff0ac4088a602
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
37.246377
98
0.754475
79577df0850f728f1531a12a5fce70fb7861df7c
2,464
py
Python
routes/web_directory.py
TalaoDAO/ecole42
2236f24527966195c953f222f9715ee967348b0f
[ "Apache-2.0" ]
1
2021-09-22T16:30:57.000Z
2021-09-22T16:30:57.000Z
routes/web_directory.py
TalaoDAO/credential-repository
d36c694d9e90ead8a35bd8cc5be47c6d951474ba
[ "Apache-2.0" ]
null
null
null
routes/web_directory.py
TalaoDAO/credential-repository
d36c694d9e90ead8a35bd8cc5be47c6d951474ba
[ "Apache-2.0" ]
null
null
null
from flask import request, render_template, session import json import logging import os logging.basicConfig(level=logging.INFO) # dependances LANGUAGES = ['en', 'fr'] IMAGE_PATH = 'static/directory/' def init_app(app, mode) : app.add_url_rule('/directory', view_func=ssi_directory, methods = ['GET', 'POST'], defaul...
39.111111
140
0.621347
79577e50b309e806cf6061b3de87039bce094efd
1,069
py
Python
setup.py
VictorSanh/promptsource
b7a187217c569f7ad6470af2c1f30e527f6afc5f
[ "Apache-2.0" ]
387
2021-05-19T16:57:56.000Z
2022-03-30T22:55:16.000Z
setup.py
VictorSanh/promptsource
b7a187217c569f7ad6470af2c1f30e527f6afc5f
[ "Apache-2.0" ]
523
2021-05-19T20:32:42.000Z
2022-03-31T13:38:18.000Z
setup.py
VictorSanh/promptsource
b7a187217c569f7ad6470af2c1f30e527f6afc5f
[ "Apache-2.0" ]
103
2021-05-19T20:27:20.000Z
2022-03-28T13:36:56.000Z
from setuptools import setup, find_packages with open('README.md') as readme_file: readme = readme_file.read() with open('requirements.txt') as requirements_file: requirements = requirements_file.read().split('\n') setup( name='promptsource', version='0.1.0', url='https://github.com/bigscience-wo...
31.441176
88
0.647334
79577e646b9425c08edb4a3af05b48bc7145f8ba
1,650
py
Python
veides/sdk/api/properties.py
Veides/veides-sdk-python
0a146f2ac0e9432359524189f6b992d315d2621b
[ "MIT" ]
null
null
null
veides/sdk/api/properties.py
Veides/veides-sdk-python
0a146f2ac0e9432359524189f6b992d315d2621b
[ "MIT" ]
null
null
null
veides/sdk/api/properties.py
Veides/veides-sdk-python
0a146f2ac0e9432359524189f6b992d315d2621b
[ "MIT" ]
null
null
null
import os from veides.sdk.api.exceptions import ConfigurationException class AuthProperties: def __init__(self, token): """ :param token: User's token :type token: str """ self._token = token @property def token(self): return self._token @staticmethod ...
27.04918
95
0.646667
79577f53fcb6442cbcaedca20ea7dcb77343277d
9,427
py
Python
pysrc/faceplace/train_gppvae.py
ahmerb/GPPVAE
6f806426627942a92d96b007ee1c1ece02445e48
[ "Apache-2.0" ]
65
2018-10-31T14:51:52.000Z
2022-03-15T04:57:24.000Z
pysrc/faceplace/train_gppvae.py
ahmerb/GPPVAE
6f806426627942a92d96b007ee1c1ece02445e48
[ "Apache-2.0" ]
4
2019-05-15T09:35:06.000Z
2021-01-06T03:00:02.000Z
pysrc/faceplace/train_gppvae.py
ahmerb/GPPVAE
6f806426627942a92d96b007ee1c1ece02445e48
[ "Apache-2.0" ]
9
2018-12-27T12:02:21.000Z
2021-04-21T04:56:14.000Z
import matplotlib import sys matplotlib.use("Agg") import torch from torch import nn, optim import torch.nn.functional as F from torch.autograd import Variable from torch.utils.data import DataLoader from vae import FaceVAE from vmod import Vmodel from gp import GP import h5py import scipy as sp import os import pdb i...
29.832278
88
0.594569
79577f924c03c45f9bb6812341a6777296981f08
3,000
py
Python
ironic/tests/unit/objects/utils.py
hpproliant/ironic
4f62cd97196b2a0068700ffb17456912147778d0
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/objects/utils.py
hpproliant/ironic
4f62cd97196b2a0068700ffb17456912147778d0
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/objects/utils.py
hpproliant/ironic
4f62cd97196b2a0068700ffb17456912147778d0
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Rackspace Hosting # 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...
30
78
0.681
795780921963d90fe5541fa8f5cf6d675652e245
9,260
py
Python
stylebox.py
LightSoar/pystylebox
2a5cc6f9b5a67c0cb2100ccad139a927117f9e3e
[ "MIT" ]
null
null
null
stylebox.py
LightSoar/pystylebox
2a5cc6f9b5a67c0cb2100ccad139a927117f9e3e
[ "MIT" ]
null
null
null
stylebox.py
LightSoar/pystylebox
2a5cc6f9b5a67c0cb2100ccad139a927117f9e3e
[ "MIT" ]
null
null
null
#!env/bin/python import abc # abstract base class import numpy as np from overrides import overrides def rescale(x, from_lo, from_hi, to_lo, to_hi): # y = yi + (yf-yi)/(xf-xi)*(x-xi) y = to_lo + (to_hi-to_lo)/(from_hi-from_lo)*(x-from_lo) return y class Scatter: def __init__(self, x_domain=[-np.inf...
37.795918
317
0.554752