hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
6293e0cef216f409af0e0310fdb677fa878afc1b
6,099
py
Python
build/lib/rsnapsim/FileParser.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2022-01-28T18:17:37.000Z
2022-01-28T18:17:37.000Z
build/lib/rsnapsim/FileParser.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
null
null
null
build/lib/rsnapsim/FileParser.py
MunskyGroup/rSNAPsim
af3e496d5252e1d2e1da061277123233a5d609b4
[ "MIT" ]
1
2020-12-02T06:36:17.000Z
2020-12-02T06:36:17.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 21 16:29:21 2020 @author: willi """ import re try: from snapgene_reader import snapgene_file_to_dict, snapgene_file_to_seqrecord except: pass try: from Bio import SeqIO from Bio import Entrez except: pass import os class FileParser(): ''' Cl...
30.959391
153
0.486473
6293ea6ce41b9740ca0cfc4bcd9487ca96c3551a
5,445
py
Python
todo/modules/workflow.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
todo/modules/workflow.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
4
2021-06-08T20:20:08.000Z
2022-03-11T23:30:22.000Z
todo/modules/workflow.py
JulienPalard/cloudmesh
1759b88daef3a13917492d028fdabe08f03ca996
[ "Apache-2.0" ]
null
null
null
from cloudmesh.shell.Shell import Shell from flask import Blueprint from flask import render_template, redirect, flash from datetime import datetime from flask.ext.wtf import Form from wtforms import TextField, SelectField, TextAreaField from cloudmesh.old_inventory.inventory import Inventory from hostlist import expan...
32.60479
110
0.608264
6294190d84741f41fdb3693e73ffafc514e116a8
6,115
py
Python
benchmarks/common/base_model_init.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
1
2019-05-23T01:07:23.000Z
2019-05-23T01:07:23.000Z
benchmarks/common/base_model_init.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
null
null
null
benchmarks/common/base_model_init.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
null
null
null
# # -*- coding: utf-8 -*- # # Copyright (c) 2018 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 app...
41.040268
118
0.645462
629421302d26f530273464ce66ea1c6b88814272
754
py
Python
Chapter01/matrix_manipulations_2.py
suryapa1/Tensorflow_stack
6a6c82ed30401b115cf106ad8271763dda518fa8
[ "MIT" ]
86
2017-12-28T12:18:02.000Z
2022-03-14T03:41:29.000Z
Chapter01/matrix_manipulations_2.py
suryapa1/Tensorflow_stack
6a6c82ed30401b115cf106ad8271763dda518fa8
[ "MIT" ]
1
2019-02-15T18:02:17.000Z
2020-09-23T05:36:17.000Z
Chapter01/matrix_manipulations_2.py
suryapa1/Tensorflow_stack
6a6c82ed30401b115cf106ad8271763dda518fa8
[ "MIT" ]
82
2017-12-21T09:25:04.000Z
2021-04-22T02:38:29.000Z
import tensorflow as tf # Create two random matrices a = tf.Variable(tf.random_normal([4,5], stddev=2)) b = tf.Variable(tf.random_normal([4,5], stddev=2)) #Element Wise Multiplication A = a * b #Multiplication with a scalar 2 B = tf.scalar_mul(2, A) # Elementwise division, its result is C = tf.div(a,b)...
25.133333
93
0.6313
6294a30a38f2eb2dddcbbb5e90d7fd076509693d
34,448
py
Python
sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/aio/operations/_anomaly_detector_client_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/aio/operations/_anomaly_detector_client_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/aio/operations/_anomaly_detector_client_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
46.614344
451
0.672869
6294ca69346a40e40907e7ae4e962a4345556027
3,422
py
Python
gaphor/diagram/tests/test_presentation.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/tests/test_presentation.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/tests/test_presentation.py
Xander982/gaphor
b5c55fa18b79b80d9c14ee0cb0ce8a9963e90f86
[ "Apache-2.0" ]
null
null
null
from gaphor import UML from gaphor.core.modeling import Presentation from gaphor.diagram.presentation import ElementPresentation, LinePresentation class DummyVisualComponent: def size(self, cr): return 0, 0 def draw(self, cr, bounding_box): pass class StubElement(ElementPresentation): d...
27.376
77
0.646406
62950d7f81927795908336f20d4293f418b3849e
1,513
py
Python
list_accounts.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
list_accounts.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
list_accounts.py
schubb2003/element
14d79297b2dd6908e0c84ba533d507acd44fe054
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ # Author: Scott Chubb scott.chubb@netapp.com # Written for Python 3.6 and above # No warranty is offered, use at your own risk. While these scripts have been # tested in lab situations, all use cases cannot be accounted for. # This script gets the network config from a single node for a node r...
29.666667
78
0.709848
6295524ace215e410a86131ccfc1e7a59c00e4b1
5,451
py
Python
tensorflow_model_analysis/extractors/features_extractor.py
pfyang/model-analysis
cc7d75c1bf588123795511572e1b4445d9a52191
[ "Apache-2.0" ]
1
2021-05-10T10:54:09.000Z
2021-05-10T10:54:09.000Z
tensorflow_model_analysis/extractors/features_extractor.py
Saiprasad16/model-analysis
1617375dd35e72447653e54330484c3a2950e4c6
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/extractors/features_extractor.py
Saiprasad16/model-analysis
1617375dd35e72447653e54330484c3a2950e4c6
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
37.854167
80
0.750138
6295540388e372e4998084204d8b6c4f27cd6538
2,579
py
Python
documentation/examples/covariance_matrix_computation.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
54
2015-03-05T13:38:08.000Z
2021-11-29T11:54:48.000Z
documentation/examples/covariance_matrix_computation.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
7
2016-04-06T11:25:00.000Z
2020-11-09T13:53:20.000Z
documentation/examples/covariance_matrix_computation.py
arthus701/algopy
1e2430f803289bbaed6bbdff6c28f98d7767835c
[ "Unlicense" ]
13
2015-01-17T17:05:56.000Z
2021-08-05T01:13:16.000Z
""" In this example it is the goal to compute derivatives of the covariance matrix of a constrained parameter estimation problem. I.e. compute / J1.T J1 J2.T \^-1 / 1 \ C = (1,0) | | | | \ J2 0 / \ 0 / where J1 = J1(x) and J2 = J2(x). The vector x...
25.038835
87
0.66615
629581fd4ebb603a1f7f5c4b7661bda9ad44c5cf
508
py
Python
tests/enterprise_test_data.py
AaronDJohnson/enterprise
d964464bba699a9455897d890a97c40f25c5b004
[ "MIT" ]
35
2017-01-18T18:02:28.000Z
2021-11-14T14:14:35.000Z
tests/enterprise_test_data.py
AaronDJohnson/enterprise
d964464bba699a9455897d890a97c40f25c5b004
[ "MIT" ]
174
2017-02-02T22:13:46.000Z
2022-03-04T21:00:24.000Z
tests/enterprise_test_data.py
AaronDJohnson/enterprise
d964464bba699a9455897d890a97c40f25c5b004
[ "MIT" ]
49
2017-01-17T21:59:43.000Z
2021-11-03T11:26:37.000Z
# enterprise_test_data.py """This module provides the location of data files for tests as `datadir`. Currently they are in `tests/data`, and they are based on the 9-yr data release.""" # import this to get the location of the datafiles for tests. This file # must be kept in the appropriate location relative to the t...
33.866667
83
0.753937
62958e18e193739796a1886a8951d2f05ab4d2a3
14,062
py
Python
premade_modules/2.80/e5e885d0ecb9430a73e0a904cdb6035a2ef77e98/bpy/ops/curve.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.80/e5e885d0ecb9430a73e0a904cdb6035a2ef77e98/bpy/ops/curve.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.80/e5e885d0ecb9430a73e0a904cdb6035a2ef77e98/bpy/ops/curve.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
def cyclic_toggle(direction='CYCLIC_U'): '''Make active spline closed/opened loop :param direction: Direction, Direction to make surface cyclic in :type direction: enum in ['CYCLIC_U', 'CYCLIC_V'], (optional) ''' pass def de_select_first(): '''(De)select first of visible part of each NURBS...
25.660584
454
0.640023
6295e0938eeba964d6a9e0dfa8f9a16af960f4f8
2,026
py
Python
appengine/flexible/multiple_services/gateway-service/services_config.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
appengine/flexible/multiple_services/gateway-service/services_config.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
appengine/flexible/multiple_services/gateway-service/services_config.py
jsj14/python-docs-samples
9cf5461b166eea824c40c704ed06c5ea53cf91d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.931034
77
0.705331
6295ef7cc901288abe48d2ecab4ded068bf808da
2,549
py
Python
loaner/deployments/lib/ui/components/text.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/deployments/lib/ui/components/text.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
loaner/deployments/lib/ui/components/text.py
Bottom-Feeders/GrabNGO
5a467362e423700a5a7276a7fa9a47040033cfcf
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
31.469136
80
0.676736
6295f679a72fbf8c2a96ba669566a7a00097aa91
8,334
py
Python
bndl_cassandra/session.py
bndl/bndl_cassandra
5db434a73e65e4642e5372635a37c81d3c78d3a7
[ "Apache-2.0" ]
null
null
null
bndl_cassandra/session.py
bndl/bndl_cassandra
5db434a73e65e4642e5372635a37c81d3c78d3a7
[ "Apache-2.0" ]
null
null
null
bndl_cassandra/session.py
bndl/bndl_cassandra
5db434a73e65e4642e5372635a37c81d3c78d3a7
[ "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 th...
35.76824
112
0.635469
62962949c50bfcf35a4f2042563546ffa2ca3e8c
11,131
py
Python
classification/utils/parsers.py
qyb225/similar-cloth
c68aa55943f7fa10380ca909b43abb87dcb71a0c
[ "MIT" ]
null
null
null
classification/utils/parsers.py
qyb225/similar-cloth
c68aa55943f7fa10380ca909b43abb87dcb71a0c
[ "MIT" ]
null
null
null
classification/utils/parsers.py
qyb225/similar-cloth
c68aa55943f7fa10380ca909b43abb87dcb71a0c
[ "MIT" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.732203
80
0.645315
629631a7477f9fbc7c31735ef949b3f27e8f6dd2
1,103
py
Python
marqeta/response_models/fee_detail.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/fee_detail.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/fee_detail.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models.fee import Fee from marqeta.response_models import datetime_object import json import re class FeeDetail(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.js...
23.468085
81
0.672711
62965b085fa6f132533fcf3fdd16ad19fef80d3a
11,166
py
Python
qm_2019_sss_6/tests/test_qm_2019_sss_6.py
MolSSI-Education/qm_2019_sss_6
48b2a8229bd09ab61f7e50530a39acfc081f47b1
[ "BSD-3-Clause" ]
null
null
null
qm_2019_sss_6/tests/test_qm_2019_sss_6.py
MolSSI-Education/qm_2019_sss_6
48b2a8229bd09ab61f7e50530a39acfc081f47b1
[ "BSD-3-Clause" ]
2
2019-07-23T20:33:00.000Z
2019-07-31T05:09:01.000Z
qm_2019_sss_6/tests/test_qm_2019_sss_6.py
MolSSI-Education/qm_2019_sss_6
48b2a8229bd09ab61f7e50530a39acfc081f47b1
[ "BSD-3-Clause" ]
17
2019-07-23T20:14:06.000Z
2019-07-31T03:47:36.000Z
""" Unit and regression test for the qm_2019_sss_6 package. """ # Import package, test suite, and other packages as needed import qm_2019_sss_6 # import NobleGasModel.py import pytest import sys import numpy as np atomic_coordinates = np.array([[0.0, 0.0, 0.0], [3.0, 4.0, 5.0]]) # Derived from user input number_of_at...
45.206478
143
0.532689
62966c0f1d0d8a3be429930f59dc400769a729bb
5,015
py
Python
scripts/pyr3dbrc.py
vlouf/r3dbrc
cbcfec06915be8c77613303cb272539194807429
[ "MIT" ]
null
null
null
scripts/pyr3dbrc.py
vlouf/r3dbrc
cbcfec06915be8c77613303cb272539194807429
[ "MIT" ]
null
null
null
scripts/pyr3dbrc.py
vlouf/r3dbrc
cbcfec06915be8c77613303cb272539194807429
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Script for finding the consecutive CPOL and Berrimah files at a given date. @title: pyr3dbrc.py @author: Valentin Louf <valentin.louf@bom.gov.au> @institutions: Australian Bureau of Meteorology @date: 02/09/2020 .. autosummary:: :toctree: generated/ get_radar...
28.821839
118
0.624327
6296dbc3ac5196b95aafac8644416a82ae57dfcb
29,481
py
Python
app/user/rest.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
null
null
null
app/user/rest.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
51
2019-07-03T14:11:19.000Z
2019-07-08T12:24:55.000Z
app/user/rest.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
null
null
null
import base64 import json import pickle import uuid from datetime import datetime, timedelta import pwnedpasswords from fido2 import cbor from fido2.client import ClientData from fido2.ctap2 import AuthenticatorData from flask import Blueprint, abort, current_app, jsonify, request from sqlalchemy.exc import IntegrityE...
35.13826
124
0.707337
6296ea45b9326884146b32c2a36f7309036b6d24
3,186
py
Python
examples/plot_2_example_added_gridsearchcv.py
PhilipMay/PipeGraph
85c6dcec03317835dbf8f54412ffedd2f26e3564
[ "MIT" ]
23
2018-02-09T07:43:06.000Z
2021-09-14T07:27:09.000Z
examples/plot_2_example_added_gridsearchcv.py
PhilipMay/PipeGraph
85c6dcec03317835dbf8f54412ffedd2f26e3564
[ "MIT" ]
5
2018-11-21T20:20:17.000Z
2021-06-15T17:52:50.000Z
examples/plot_2_example_added_gridsearchcv.py
PhilipMay/PipeGraph
85c6dcec03317835dbf8f54412ffedd2f26e3564
[ "MIT" ]
8
2018-03-18T08:08:34.000Z
2021-02-15T08:40:00.000Z
""" .. _example2: Second example: :class:`GridSearchCV` demonstration ---------------------------------------------------- This example shows how to use :class:`GridSearchCv` with **PipeGraph** to effectively fit the best model across a number of hyperparameters. It is equivalent to use :class:`GridSearchCv` with :cl...
43.643836
231
0.676397
6296fb0f64d2112629ffe9029916f8030e023e17
2,040
py
Python
src/command_modules/azure-cli-backup/setup.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-backup/setup.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-backup/setup.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ----------------------------------------------...
32.380952
94
0.613725
62970b7d4bb23a7f3283d104f1d30d54e5f198a2
4,964
py
Python
chatterbot/storage/storage_adapter.py
yego76/ChatterBot
4674b24ea76ddf65584a740d4d36f7d0f1eed749
[ "BSD-3-Clause" ]
1
2020-01-19T17:56:13.000Z
2020-01-19T17:56:13.000Z
chatterbot/storage/storage_adapter.py
yego76/ChatterBot
4674b24ea76ddf65584a740d4d36f7d0f1eed749
[ "BSD-3-Clause" ]
null
null
null
chatterbot/storage/storage_adapter.py
yego76/ChatterBot
4674b24ea76ddf65584a740d4d36f7d0f1eed749
[ "BSD-3-Clause" ]
null
null
null
import logging class StorageAdapter(object): """ This is an abstract class that represents the interface that all storage adapters should implement. """ def __init__(self, base_query=None, *args, **kwargs): """ Initialize common attributes shared by all storage adapters. "...
34
175
0.639807
6297279c97bb26368d2d07765ad3ddc4fa75d2d7
50,194
py
Python
premade_modules/2.78/2.78c/bmesh/ops.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78c/bmesh/ops.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
premade_modules/2.78/2.78c/bmesh/ops.py
echantry/fake-bpy-module
004cdf198841e639b7d9a4c4db95ca1c0d3aa2c7
[ "MIT" ]
null
null
null
def smooth_vert(bm, verts, factor, mirror_clip_x, mirror_clip_y, mirror_clip_z, clip_dist, use_axis_x, use_axis_y, use_axis_z): '''Smooths vertices by using a basic vertex averaging scheme. :param bm: The bmesh to operate on. :type bm: bmesh.types.BMesh :param verts: input vertices ...
33.285146
718
0.689903
62973275eee8cbaf9d0c714e30abf31af0ee1cc2
4,957
py
Python
Model/code/training_image_features.py
teomotun/Restaurant-Plug
1ecaab7bb60706ec0eca96c2f3efb31276c536e7
[ "Apache-2.0" ]
null
null
null
Model/code/training_image_features.py
teomotun/Restaurant-Plug
1ecaab7bb60706ec0eca96c2f3efb31276c536e7
[ "Apache-2.0" ]
null
null
null
Model/code/training_image_features.py
teomotun/Restaurant-Plug
1ecaab7bb60706ec0eca96c2f3efb31276c536e7
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import tarfile import skimage import io import h5py import os import caffe import time # Paths CAFFE_HOME = "/content/drive/My Drive/Yelp-Restaurant-Classification/Model/caffe/" DATA_HOME = "/content/drive/My Drive/Yelp-Restaurant-Classification/Model/data/" FEATURES_HOME = '/con...
45.898148
212
0.734719
629737c6742893055fc6276fdc3c4984769d7214
19,887
py
Python
lift/Generator/Generator.py
wolongyuan/lift-js
95b2012a3993e787f07d0ace3acafbd855bc7c45
[ "MIT" ]
null
null
null
lift/Generator/Generator.py
wolongyuan/lift-js
95b2012a3993e787f07d0ace3acafbd855bc7c45
[ "MIT" ]
null
null
null
lift/Generator/Generator.py
wolongyuan/lift-js
95b2012a3993e787f07d0ace3acafbd855bc7c45
[ "MIT" ]
null
null
null
""" Code generator for Lift JS. """ from Builder import Builder import Registers import Constants import Labels import pprint builder = Builder() context = { 'function': [] } def gen_string_literal(string): label = Constants.string(string) rd = Registers.allocate(1)[0] builder.inst_la(rd, label) ...
32.336585
88
0.559712
6297560ee06ff381f603021339a2306a4465d81a
7,653
py
Python
dvc/repo/diff.py
drorata/dvc
b6bc65fcbf269b94b7c1ce2d9dff641dedb039b0
[ "Apache-2.0" ]
2
2019-06-23T14:24:48.000Z
2019-07-08T12:22:53.000Z
dvc/repo/diff.py
aliseramirez/dvc
92cc9f7e6f19f3b92f43e28131fe50c20b297214
[ "Apache-2.0" ]
null
null
null
dvc/repo/diff.py
aliseramirez/dvc
92cc9f7e6f19f3b92f43e28131fe50c20b297214
[ "Apache-2.0" ]
1
2019-09-02T00:29:40.000Z
2019-09-02T00:29:40.000Z
from __future__ import unicode_literals import os from errno import ENOENT import dvc.logger as logger from dvc.scm.base import FileNotInCommitError from dvc.scm.git import ( DIFF_A_TREE, DIFF_B_TREE, DIFF_A_REF, DIFF_B_REF, DIFF_EQUAL, ) DIFF_TARGET = "target" DIFF_IS_DIR = "is_dir" DIFF_OLD_F...
30.249012
79
0.650333
62977e4bc393d79490a682b31564876978491454
767
py
Python
leetcode_python/src/algorithms/tree/binary_tree_right_side_view.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
leetcode_python/src/algorithms/tree/binary_tree_right_side_view.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
leetcode_python/src/algorithms/tree/binary_tree_right_side_view.py
attilagyoriid/leetcode_python
457b1271cf58df8726d3ec35b4ac6d78a33c49a9
[ "MIT" ]
null
null
null
from collections import deque from typing import List from leetcode_python.src.algorithms.tree.node import Node class BinaryTreeRightSideView: def get_right_side_view(self, root: Node) -> List[int]: result = [] if not root: return result levels = deque() levels.appe...
24.741935
59
0.560626
62978225153824ce502540cca55922ece7ad9e8f
478
py
Python
setup.py
sio13/helmnet
514a2035b4e043825d444496eda375b3d954f853
[ "MIT" ]
5
2021-08-17T07:43:03.000Z
2022-02-07T01:00:57.000Z
setup.py
sio13/helmnet
514a2035b4e043825d444496eda375b3d954f853
[ "MIT" ]
9
2021-08-03T22:09:17.000Z
2022-02-07T09:36:18.000Z
setup.py
sio13/helmnet
514a2035b4e043825d444496eda375b3d954f853
[ "MIT" ]
5
2021-07-12T03:31:41.000Z
2022-02-07T01:02:07.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="helmnet", # Replace with your own username version="0.1.0", author="Antonio Stanziola", author_email="a.stanziola@ucl.ac.uk", description="", long_description=long_description, lo...
26.555556
53
0.688285
6297a93c12c64a47d06386f7ef38e788dae7fe85
4,598
py
Python
pinax/apps/topics/views.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/apps/topics/views.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
null
null
null
pinax/apps/topics/views.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
import os from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, HttpResponse, HttpResponseForbidden, Http404 from django.shortcuts import render_to_response, get_object_or_404 from django.templat...
31.278912
126
0.622662
6297b21525d479d703516736460066c8a67aee86
1,474
py
Python
GearBot/Util/Emoji.py
mrkirby153/GearBot
a61d936c12e906c7bcfaa840a585ee25ffc06138
[ "MIT" ]
null
null
null
GearBot/Util/Emoji.py
mrkirby153/GearBot
a61d936c12e906c7bcfaa840a585ee25ffc06138
[ "MIT" ]
null
null
null
GearBot/Util/Emoji.py
mrkirby153/GearBot
a61d936c12e906c7bcfaa840a585ee25ffc06138
[ "MIT" ]
null
null
null
from discord import utils from Util import Configuration emojis = dict() BACKUPS = { "1": "1⃣", "2": "2⃣", "3": "3⃣", "4": "4⃣", "5": "5⃣", "6": "6⃣", "7": "7⃣", "8": "8⃣", "9": "9⃣", "10": "🔟", "ALTER": "🛠", "BAD_USER": "😶", "BAN": "🚪", "BEAN": "🌱", "...
17.341176
71
0.377205
6297b3ae5f9a8b57dc6e5f823934b6f8e3f9dac7
14,177
py
Python
tests/test_engine/test_queries/test_queryop_comparsion_lte.py
gitter-badger/MontyDB
849d03dc2cfed35739481e9acb1ff0bd8095c91b
[ "BSD-3-Clause" ]
null
null
null
tests/test_engine/test_queries/test_queryop_comparsion_lte.py
gitter-badger/MontyDB
849d03dc2cfed35739481e9acb1ff0bd8095c91b
[ "BSD-3-Clause" ]
null
null
null
tests/test_engine/test_queries/test_queryop_comparsion_lte.py
gitter-badger/MontyDB
849d03dc2cfed35739481e9acb1ff0bd8095c91b
[ "BSD-3-Clause" ]
null
null
null
import pytest from montydb.errors import OperationFailure from datetime import datetime from bson.timestamp import Timestamp from bson.objectid import ObjectId from bson.min_key import MinKey from bson.max_key import MaxKey from bson.int64 import Int64 from bson.decimal128 import Decimal128 from bson.binary import Bi...
23.66778
50
0.546448
6297bac69e1443f39f15dc1317c03550850b7185
448
py
Python
tests/unit/transport/plugins/ssh2/test_transport.py
dmfigol/scrapli
d1f8641a1e3f490dab6bae704f092255efe6655c
[ "MIT" ]
null
null
null
tests/unit/transport/plugins/ssh2/test_transport.py
dmfigol/scrapli
d1f8641a1e3f490dab6bae704f092255efe6655c
[ "MIT" ]
null
null
null
tests/unit/transport/plugins/ssh2/test_transport.py
dmfigol/scrapli
d1f8641a1e3f490dab6bae704f092255efe6655c
[ "MIT" ]
null
null
null
import pytest from scrapli.exceptions import ScrapliConnectionNotOpened def test_open_channel_no_session(ssh2_transport): with pytest.raises(ScrapliConnectionNotOpened): assert ssh2_transport._open_channel() def test_isalive_no_session(ssh2_transport): assert ssh2_transport.isalive() is False def...
24.888889
57
0.805804
6297cb328cb332d4deb75a84bd9c5099d4d5d966
2,835
py
Python
nets/TSP_edge_classification/gin_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
nets/TSP_edge_classification/gin_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
6
2022-01-06T21:27:06.000Z
2022-01-19T06:28:56.000Z
nets/TSP_edge_classification/gin_net.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn """ GIN: Graph Isomorphism Networks HOW POWERFUL ARE GRAPH NEURAL NETWORKS? (Keyulu Xu, Weihua Hu, Jure Leskovec and Stefanie Jegelka, ICLR 2019) https://arxiv.org/pdf/1810.00826.pdf """ from layers.gin_layer import MLP, ApplyNodeFunc, GINLayer class GINNet(nn.Module):...
31.153846
113
0.561552
6297ccfa85da8e453e45e1f0e696beae668541ea
16,845
py
Python
hrl_dynamic_mpc/src/nlp_opt_traj_final.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
1
2017-07-13T14:58:35.000Z
2017-07-13T14:58:35.000Z
hrl_dynamic_mpc/src/nlp_opt_traj_final.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
null
null
null
hrl_dynamic_mpc/src/nlp_opt_traj_final.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
2
2017-03-08T14:44:22.000Z
2019-07-15T23:46:35.000Z
# # # Copyright (c) 2013, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
34.237805
144
0.525675
6297cf2b280380481eb3920699bd6bee6cde05f9
16,042
py
Python
src/sage/combinat/combination.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
1
2016-11-04T16:31:48.000Z
2016-11-04T16:31:48.000Z
src/sage/combinat/combination.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/combination.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
r""" Combinations AUTHORS: - Mike Hansen (2007): initial implementation - Vincent Delecroix (2011): cleaning, bug corrections, doctests """ #***************************************************************************** # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, # # Distributed under the terms of t...
25.544586
86
0.46559
6297dd5050b2d0882f38476f20d766618d5cafcf
610
py
Python
src/util.py
saud-learning-services/canvas-syllabus-scraper
703c240d5e4b714525f4bc30163ee4c47e06ebee
[ "MIT" ]
null
null
null
src/util.py
saud-learning-services/canvas-syllabus-scraper
703c240d5e4b714525f4bc30163ee4c47e06ebee
[ "MIT" ]
9
2021-01-12T00:01:54.000Z
2021-03-23T19:25:14.000Z
src/util.py
saud-learning-services/quiz-response-pdfs
5e14966b47f7a3175fbcd692202899e778b7efbe
[ "MIT" ]
1
2021-05-14T17:10:31.000Z
2021-05-14T17:10:31.000Z
""" QUIZ REPORTS: util authors: @markoprodanovic last edit: Monday, January 12, 2020 """ from termcolor import cprint import sys def print_error(msg): """ Prints the error message without shutting down the script Args: msg (string): Message to print before continuing execution """ cprint(f...
17.941176
74
0.614754
6297f33856f445bac36cc2f924fd6dc22c54e9a2
922
py
Python
python/taichi/lang/snode.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
python/taichi/lang/snode.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
python/taichi/lang/snode.py
ericjang/taichi
0dec0bac6d9c16b7b62ba528f9e0d4268d1d05d2
[ "MIT" ]
null
null
null
from .core import taichi_lang_core class SNode: def __init__(self, ptr): self.ptr = ptr def dense(self, indices, dimensions): if isinstance(dimensions, int): dimensions = [dimensions] * len(indices) return SNode(self.ptr.dense(indices, dimensions)) def dynamic(self, index, dimension): ass...
23.05
55
0.643167
6297fea019a69ca408913ec3c3ff1812e5869b85
1,088
py
Python
oscar/lib/python2.7/site-packages/django_tables2/columns/timecolumn.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django_tables2/columns/timecolumn.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django_tables2/columns/timecolumn.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import, unicode_literals from django.conf import settings from django.db import models from django_tables2.templatetags.django_tables2 import title from .base import library from .templatecolumn import TemplateColumn @library.register class TimeColumn(Te...
32
82
0.66636
629827574f2fc64085990584c4921827888d7c84
5,780
py
Python
practicity/progressTracker/tests.py
pkhurt/practicity
e638a67f091696de15d2852d26f310e3556bdf79
[ "MIT" ]
null
null
null
practicity/progressTracker/tests.py
pkhurt/practicity
e638a67f091696de15d2852d26f310e3556bdf79
[ "MIT" ]
null
null
null
practicity/progressTracker/tests.py
pkhurt/practicity
e638a67f091696de15d2852d26f310e3556bdf79
[ "MIT" ]
null
null
null
import datetime from django.test import TestCase from django.utils import timezone from django.urls import reverse from .models import Exercise, Execution # Create your tests here. def create_practice_session(session_start, days): """ Create a practice session with the given session_start and session_end. ...
42.189781
110
0.605882
6298350dafa0df1f5d4e17d2d211157b8c63872f
25
py
Python
btd6_memory_info/generated/System/Xml/Schema/FacetsChecker/facets_checker.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Xml/Schema/FacetsChecker/facets_checker.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Xml/Schema/FacetsChecker/facets_checker.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class FacetsChecker: pass
25
25
0.88
62983b9e520120b72cc2c165d40f65faf3b6c603
1,121
py
Python
pysharpen/methods/sharpening/gihs.py
Vladimir-Kozub/pansharpen
2d6210e09fd1630e66980e6cd539879be17068bf
[ "MIT" ]
1
2021-06-01T21:07:31.000Z
2021-06-01T21:07:31.000Z
pysharpen/methods/sharpening/gihs.py
Vladimir-Kozub/pansharpen
2d6210e09fd1630e66980e6cd539879be17068bf
[ "MIT" ]
6
2019-12-30T10:40:44.000Z
2021-07-30T19:53:58.000Z
pysharpen/methods/sharpening/gihs.py
Vladimir-Kozub/pansharpen
2d6210e09fd1630e66980e6cd539879be17068bf
[ "MIT" ]
3
2019-10-28T14:54:11.000Z
2021-03-02T13:33:22.000Z
import numpy as np from pysharpen.methods.img_proc import ImgProc from pysharpen.functional import saturate_cast, wider_type class GIHSPansharpening(ImgProc): """ Generalized IHS-like transform for any number of channels. Formula for the output is: MSpan[i] = MS[i] + pan - mean (MS) Similar to Brovey,...
35.03125
102
0.657449
62987463b2ea59682fb86ff99efdd698bded4b9f
9,876
py
Python
qcodes/instrument_drivers/Keysight/keysight_e4980a.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
qcodes/instrument_drivers/Keysight/keysight_e4980a.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
230
2020-08-17T06:08:33.000Z
2022-03-29T12:06:58.000Z
qcodes/instrument_drivers/Keysight/keysight_e4980a.py
liangosc/Qcodes
0f0a59fa4953e3ef44031e94459d1ff661f26473
[ "MIT" ]
null
null
null
from typing import Tuple, Sequence, cast, Any from qcodes import VisaInstrument, InstrumentChannel from qcodes.instrument.parameter import MultiParameter from qcodes.utils.helpers import create_on_off_val_mapping from qcodes.utils.validators import Enum, Numbers class MeasurementPair(MultiParameter): """ Dat...
30.959248
80
0.545059
629875dfa6e276eaef2f3e39e75b94f91aa1fb5f
662
py
Python
time_series/time_series.py
Betaglutamate/Zwietering_model
c88809d58027b82b8d1a86b771180d020e15d1d7
[ "MIT" ]
null
null
null
time_series/time_series.py
Betaglutamate/Zwietering_model
c88809d58027b82b8d1a86b771180d020e15d1d7
[ "MIT" ]
null
null
null
time_series/time_series.py
Betaglutamate/Zwietering_model
c88809d58027b82b8d1a86b771180d020e15d1d7
[ "MIT" ]
null
null
null
import pandas as pd import time_series_function as tsf main_df = pd.read_csv('all_data.csv') length_window = 20 main_df['OD'] = main_df['OD']-0.005 all_experiment_list = [] for name, experiment in main_df.groupby('experiment'): all_experiment_list.append(experiment) train_data = all_experiment_list[1] test_dat...
25.461538
82
0.783988
62987e3c086b12fb77b68b9ba22c01f29e377e54
6,597
py
Python
flexget/plugins/input/tail.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/plugins/input/tail.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/plugins/input/tail.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import io import os import re import logging from sqlalchemy import Column, Integer, Unicode from flexget import options, plugin from flexget.db_schema import versioned_base f...
36.854749
118
0.494467
6298a6652a70aa9e895a4a52ab68b151237be420
718
py
Python
media/convert_videos.py
thejoltjoker/python
4517065e64d83947648e2aad206ac4ec786b166e
[ "MIT" ]
null
null
null
media/convert_videos.py
thejoltjoker/python
4517065e64d83947648e2aad206ac4ec786b166e
[ "MIT" ]
null
null
null
media/convert_videos.py
thejoltjoker/python
4517065e64d83947648e2aad206ac4ec786b166e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ script_name.py Description of script_name.py. """ import subprocess def convert_videos(file_path, preset=None): """Run ffmpeg in subprocess and return the output""" input = "" youtube = ["ffmpeg", "-i", input, "-c:v", "libx264", "-movflags", "faststart", "-...
24.758621
208
0.56546
6299163723bb3783d483481e765fc80ca62384c1
120,471
py
Python
lib/matplotlib/pyplot.py
yuvallanger/matplotlib
e0020d318a9a9685594c6bff4631f74599321459
[ "MIT", "BSD-3-Clause" ]
8
2017-04-11T08:55:30.000Z
2022-03-25T04:31:26.000Z
lib/matplotlib/pyplot.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/pyplot.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
# Note: The first part of this file can be modified in place, but the latter # part is autogenerated by the boilerplate.py script. """ Provides a MATLAB-like plotting framework. :mod:`~matplotlib.pylab` combines pyplot with numpy into a single namespace. This is convenient for interactive work, but for programming it ...
31.603095
98
0.62635
62991d82331162a17a6382d303dc9927fde26df2
13,299
py
Python
cosmotech_api/model/validator_run.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
cosmotech_api/model/validator_run.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
cosmotech_api/model/validator_run.py
Cosmo-Tech/cosmotech-api-python-client
49ef58784605da8dd6b290cab15b363671991d8e
[ "MIT" ]
null
null
null
""" Cosmo Tech Plaform API Cosmo Tech Platform API # noqa: E501 The version of the OpenAPI document: 0.0.11-SNAPSHOT Contact: platform@cosmotech.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from cosmotech_api.model_utils import ( # noqa...
43.891089
121
0.564554
629935f33fed41d87bc9a314c9a529d9cec45130
11,599
py
Python
utils/train_utils.py
mihamerstan/lidar_ordered_points
ca0aca20cbb5c1434529d4722ee1125b095e37e1
[ "MIT" ]
1
2021-05-17T19:08:05.000Z
2021-05-17T19:08:05.000Z
utils/train_utils.py
mihamerstan/lidar_ordered_points
ca0aca20cbb5c1434529d4722ee1125b095e37e1
[ "MIT" ]
null
null
null
utils/train_utils.py
mihamerstan/lidar_ordered_points
ca0aca20cbb5c1434529d4722ee1125b095e37e1
[ "MIT" ]
null
null
null
import argparse import os import logging import numpy as np import random import sys import torch import matplotlib.pyplot as plt from datetime import datetime from torch.serialization import default_restore_location # TODO Update this for new parameters def add_logging_arguments(parser): parser.add_argument("--seed...
49.568376
126
0.734201
6299517249b0da0d97e3ddaca6e1c78144565484
2,433
py
Python
server/danesfield_server/workflow_steps/generate_point_cloud.py
Kitware/Danesfield-App
70d9f5c7c5af2ca92d274c99175783ea43087592
[ "Apache-2.0" ]
25
2018-12-19T08:45:13.000Z
2022-03-27T14:20:42.000Z
server/danesfield_server/workflow_steps/generate_point_cloud.py
Kitware/Danesfield-App
70d9f5c7c5af2ca92d274c99175783ea43087592
[ "Apache-2.0" ]
10
2018-11-30T22:21:45.000Z
2022-01-21T19:43:47.000Z
server/danesfield_server/workflow_steps/generate_point_cloud.py
Kitware/Danesfield-App
70d9f5c7c5af2ca92d274c99175783ea43087592
[ "Apache-2.0" ]
7
2018-12-03T21:42:53.000Z
2021-09-07T17:09:10.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright Kitware Inc. and Contributors # Distributed under the Apache License, 2.0 (apache.org/licenses/LICENSE-2.0) # See accompanying Copyright.txt and LICENSE files for details ##########...
32.878378
80
0.598849
62998baeeff2706c9d15f109ba3820f8d4c46c16
12,480
py
Python
consolemenu/format/menu_borders.py
Admin9705/console-menu
3e48985a54504ac12fd175250aa0995e56ca6165
[ "MIT" ]
1
2021-02-17T21:18:32.000Z
2021-02-17T21:18:32.000Z
consolemenu/format/menu_borders.py
Admin9705/plexguide-menu
ffd024c3da2fb732680dc5f5c1ef5e1f5967ce3a
[ "MIT" ]
null
null
null
consolemenu/format/menu_borders.py
Admin9705/plexguide-menu
ffd024c3da2fb732680dc5f5c1ef5e1f5967ce3a
[ "MIT" ]
null
null
null
import logging import sys class MenuBorderStyle(object): """ Base class for console menu border. Each propery should be overridden by a subclass. """ @property def bottom_left_corner(self): raise NotImplementedError() @property def bottom_right_corner(self): raise NotImplementedError() ...
31.122195
117
0.698077
6299dee4df24847c46ccb5f8e3760eabb5adbf2c
3,222
py
Python
tests/integration/test_glacier.py
Bhaskers-Blu-Org1/ibm-cos-sdk-python-core
dbd5dd4b6362724f068648fad7a6771e20bf994f
[ "Apache-2.0" ]
6
2018-01-18T02:18:28.000Z
2021-03-16T17:42:48.000Z
tests/integration/test_glacier.py
Bhaskers-Blu-Org1/ibm-cos-sdk-python-core
dbd5dd4b6362724f068648fad7a6771e20bf994f
[ "Apache-2.0" ]
12
2017-09-21T13:55:17.000Z
2022-01-25T16:48:28.000Z
tests/integration/test_glacier.py
IBM/ibm-cos-sdk-python-core
18e8a854a2a4fdca7fbb50d5b80fb666734def1f
[ "Apache-2.0" ]
10
2018-01-18T02:17:55.000Z
2020-06-29T13:50:59.000Z
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
44.75
79
0.668839
6299ecce789ea1726389d459a5c87c5cffab04e8
9,966
py
Python
src/wavestate/iirrational/v2/algorithms/MRFprogram.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/v2/algorithms/MRFprogram.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/v2/algorithms/MRFprogram.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
30.664615
87
0.573851
6299f677fadb4a2373ef83841d8121c4185ca554
325
py
Python
setup.py
JasonChen47/tiger
10ab3b071efff9b3bbb9029c114b859e24b1580e
[ "MIT" ]
4
2022-02-25T05:43:04.000Z
2022-03-28T04:24:41.000Z
setup.py
DIAGNijmegen/pathology-tiger-algorithm-example
29dfa266451f5bb60041cae3bd30ce999ac0220a
[ "MIT" ]
null
null
null
setup.py
DIAGNijmegen/pathology-tiger-algorithm-example
29dfa266451f5bb60041cae3bd30ce999ac0220a
[ "MIT" ]
4
2022-03-08T23:33:08.000Z
2022-03-28T04:24:50.000Z
from setuptools import setup, find_packages setup( name="tigeralgorithmexample", version="0.0.1", author="Mart van Rijthoven", author_email="mart.vanrijthoven@gmail.com", packages=find_packages(), license="LICENSE.txt", install_requires=[ "numpy==1.20.2", "tqdm==4.62.3" ...
21.666667
47
0.636923
6299fbff506a6fc46a06dcc9cadf80e22a139c95
729
py
Python
migrations/versions/0094_job_stats_update.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
41
2019-11-28T16:58:41.000Z
2022-01-28T21:11:16.000Z
migrations/versions/0094_job_stats_update.py
cds-snc/notification-api
b1c1064f291eb860b494c3fa65ac256ad70bf47c
[ "MIT" ]
1,083
2019-07-08T12:57:24.000Z
2022-03-08T18:53:40.000Z
migrations/versions/0094_job_stats_update.py
cds-snc/notifier-api
90b385ec49efbaee7e607516fc7d9f08991af813
[ "MIT" ]
9
2020-01-24T19:56:43.000Z
2022-01-27T21:36:53.000Z
"""empty message Revision ID: 0094_job_stats_update Revises: 0093_data_gov_uk Create Date: 2017-06-06 14:37:30.051647 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "0094_job_stats_update" down_revision = "0093_data_gov_uk" def upgrade(): op.add_column("j...
28.038462
91
0.740741
6299ff9cd974904a3f85016eb626d38ec0d1cfba
15,454
py
Python
oscar/lib/python2.7/site-packages/django/contrib/auth/models.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/auth/models.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/auth/models.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.contrib import auth from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager from django.contrib.auth.signals import user_logged_in from django.contrib.contenttypes.models import ContentType from django.core.exceptions import PermissionDenied...
34.039648
103
0.649929
629a15feefe712ad26b386adc9faf27885375ba3
17,603
py
Python
dependencies/plot_spherical.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
dependencies/plot_spherical.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
dependencies/plot_spherical.py
paytonrodman/athena-analysis
f635338122e15c318dfd754d06cc3dbaa42273d2
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python """ Script for plotting vertical (r,theta) or midplane (r,phi) slices of data in spherical coordinates. Run "plot_spherical.py -h" to see description of inputs. See documentation on athena_read.athdf() for important notes about reading files with mesh refinement. Users are encouraged to make ...
43.250614
93
0.524399
629a64953df1482f77bcb84986f8a8762a9b5cea
1,654
py
Python
stargan/noise.py
VDIGPKU/CMUA-Watermark
34152ef7d1c7f6d47488dfd710cc98936fffe43b
[ "MIT" ]
39
2021-12-13T21:59:32.000Z
2022-03-25T12:44:34.000Z
stargan/noise.py
VDIGPKU/CMUA-Watermark
34152ef7d1c7f6d47488dfd710cc98936fffe43b
[ "MIT" ]
2
2022-01-19T12:09:23.000Z
2022-03-28T06:45:13.000Z
stargan/noise.py
VDIGPKU/CMUA-Watermark
34152ef7d1c7f6d47488dfd710cc98936fffe43b
[ "MIT" ]
8
2021-12-17T12:09:18.000Z
2022-03-29T15:50:20.000Z
import numpy as np import os import cv2 from PIL import Image def PIL_to_cv2(image): image = np.array(image) image = image[:,:,::-1].copy() return image def cv2_to_PIL(image): image = image[:,:,::-1].copy().astype(np.uint8) image = Image.fromarray(image) return image def noisy(noise_typ, imag...
30.62963
64
0.564692
629a654dfdf3b09f80de889c83e9498255450cc3
1,949
py
Python
code_examples/pytorch/mnist/test_pytorch_popart_mnist.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
code_examples/pytorch/mnist/test_pytorch_popart_mnist.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
code_examples/pytorch/mnist/test_pytorch_popart_mnist.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright 2019 Graphcore Ltd. import inspect import os import pytest import sys import unittest import tests.test_util as test_util from pytorch_popart_mnist import get_data_loader def run_pytorch_mnist(**kwargs): cwd = os.path.dirname(os.path.abspath(inspect.stack()[0][1])) return test_...
27.842857
79
0.61724
629ab5d55c537bc99f15f03c9c3884a90aab0c6e
201
py
Python
cubelang/postprocessing/__init__.py
poletaevvlad/CubeLang
06f34e7204f4656589eb33c4afe660383704861f
[ "MIT" ]
1
2019-12-04T04:02:11.000Z
2019-12-04T04:02:11.000Z
cubelang/postprocessing/__init__.py
poletaevvlad/CubeLang
06f34e7204f4656589eb33c4afe660383704861f
[ "MIT" ]
null
null
null
cubelang/postprocessing/__init__.py
poletaevvlad/CubeLang
06f34e7204f4656589eb33c4afe660383704861f
[ "MIT" ]
null
null
null
from .optimizer import OptimizingPostprocessor from .formatter import FormattingPostprocessor from .orientation_freezer import OrientationFreezePostprocessor from .base import chain, PostprocessorBase
40.2
63
0.890547
629acedda5c5f064757f4177f09affe5605bd498
21,853
py
Python
tensorflow/python/kernel_tests/fft_ops_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/kernel_tests/fft_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/kernel_tests/fft_ops_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.393715
80
0.601107
629ad4920f42bcba6a10d13760f8c440ec2764d9
10,666
py
Python
assignment1/cs231n/classifiers/neural_net.py
wondervictor/CS231n-Assignments
41f05a441ce21fe478f4a4693bee131c616e66f4
[ "MIT" ]
null
null
null
assignment1/cs231n/classifiers/neural_net.py
wondervictor/CS231n-Assignments
41f05a441ce21fe478f4a4693bee131c616e66f4
[ "MIT" ]
null
null
null
assignment1/cs231n/classifiers/neural_net.py
wondervictor/CS231n-Assignments
41f05a441ce21fe478f4a4693bee131c616e66f4
[ "MIT" ]
1
2018-02-26T12:15:09.000Z
2018-02-26T12:15:09.000Z
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt from past.builtins import xrange class TwoLayerNet(object): """ A two-layer fully-connected neural network. The net has an input dimension of N, a hidden layer dimension of H, and performs classification over C classes. W...
42.494024
81
0.503469
629b00d30a2b229b4a92567ae23f45a1af718207
2,765
py
Python
adrenaline/tests/deployment/boot/deployer.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
20
2018-07-24T23:32:11.000Z
2021-11-08T10:28:45.000Z
adrenaline/tests/deployment/boot/deployer.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
195
2018-07-25T19:59:44.000Z
2021-12-15T04:39:27.000Z
adrenaline/tests/deployment/boot/deployer.py
anniyanvr/snaps-kubernetes
6114d15fdb476a2235cd73bd9118072c698ba045
[ "Apache-2.0" ]
7
2018-08-23T11:35:57.000Z
2020-06-29T08:25:25.000Z
# Copyright 2018 ARICENT HOLDINGS LUXEMBOURG SARL and Cable Television # Laboratories, 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 # #...
41.893939
78
0.731646
629b15a529f61d87d96c6212c5015a9011da33db
214
py
Python
src/examples/reference/ambientlight.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
3
2018-04-23T17:33:02.000Z
2021-01-05T04:52:36.000Z
src/examples/reference/ambientlight.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
1
2018-04-23T17:37:37.000Z
2018-04-23T17:37:37.000Z
src/examples/reference/ambientlight.py
agarwalnaimish/pyprocessing
46695c379c95a7b874f76257c37f44f4b59d39e9
[ "MIT" ]
2
2019-01-16T06:34:52.000Z
2019-10-15T14:03:07.000Z
from pyprocessing import * background(0); noStroke(); directionalLight(126, 126, 126, 0, 0, -1); ambientLight(102, 102, 102); translate(32, 50, 0); rotateY(PI/5); box(40); translate(60, 0, 0); sphere(30); run()
14.266667
42
0.668224
629b2c517a7287ace85a102b6d62a9a8c1a66150
7,410
py
Python
bpycv/hdri_manager.py
Pandinosaurus/bpycv
c576e01622d87eb3534f73bf1a5686bd2463de97
[ "MIT" ]
248
2019-12-29T15:05:26.000Z
2022-03-28T01:53:08.000Z
bpycv/hdri_manager.py
alphastrata/bpycv
838a8a2750101318e1c461d475bb5152e26d606c
[ "MIT" ]
33
2020-01-07T06:58:06.000Z
2022-03-15T03:11:01.000Z
bpycv/hdri_manager.py
alphastrata/bpycv
838a8a2750101318e1c461d475bb5152e26d606c
[ "MIT" ]
39
2020-01-14T14:44:03.000Z
2022-03-27T22:15:51.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: DIYer22@github @mail: ylxx@live.com Created on Sun Jan 12 17:06:39 2020 """ import boxx from boxx import * from boxx import os, setTimeout, mapmt, timegap, sleep, pathjoin import random import glob from bs4 import BeautifulSoup import requests import urllib....
33.2287
89
0.490958
629b93a2b2bbb6f4363e558e802e0fde4cb550b0
4,961
py
Python
utility/cog/character/ability/ability.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
4
2020-01-19T13:53:43.000Z
2020-01-20T13:34:17.000Z
utility/cog/character/ability/ability.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
18
2020-01-19T17:52:17.000Z
2020-02-17T15:06:13.000Z
utility/cog/character/ability/ability.py
DrLarck/DiscordBallZ_
c274e26efce4c5a757d258c54bc285d118618751
[ "MIT" ]
1
2020-01-19T16:33:19.000Z
2020-01-19T16:33:19.000Z
""" Ability super class. -- Author : DrLarck Last update : 25/02/20 (DrLarck) """ # dependance import asyncio import random # graphic from configuration.icon import game_icon # damage object from utility.cog.combat_system.damage.damage import Damage # super class class Ability: """ Represents an ability....
22.756881
105
0.582544
629bdd20be7e55d798fa809508ef23957f17b4ea
4,823
py
Python
common_osint_model/certificate.py
3c7/common-osint-model
4c1253833a96eb236f4d1770e58f20af6e710bcd
[ "MIT" ]
27
2020-06-06T08:31:33.000Z
2022-02-19T16:58:25.000Z
common_osint_model/certificate.py
3c7/common-osint-model
4c1253833a96eb236f4d1770e58f20af6e710bcd
[ "MIT" ]
5
2020-06-09T10:03:35.000Z
2021-10-18T12:47:46.000Z
common_osint_model/certificate.py
3c7/common-osint-model
4c1253833a96eb236f4d1770e58f20af6e710bcd
[ "MIT" ]
5
2020-06-06T20:05:25.000Z
2021-01-15T12:09:32.000Z
from cryptography.x509 import load_pem_x509_certificate from cryptography.x509.extensions import SubjectAlternativeName from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.hashes import MD5, SHA1, SHA256 from cryptography.hazmat.backends.openssl.x509 import _Certificate as Certi...
37.976378
115
0.659963
629c24ed5c21c3ede2d09bce1819db041f1bf656
1,968
py
Python
openapi_core/schema/specs/models.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/specs/models.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
openapi_core/schema/specs/models.py
grktsh/openapi-core
d4ada7bcbb9b13f5c5dd090988c35be7a0d141b7
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """OpenAPI core specs models module""" import logging from openapi_core.compat import partialmethod from openapi_core.schema.operations.exceptions import InvalidOperation from openapi_core.schema.servers.exceptions import InvalidServer log = logging.getLogger(__name__) class Spec(object): ...
32.8
70
0.691057
629c45d7fbffd9e7205af28112461f62e500bf69
3,379
py
Python
mlutils/thirdparty/sklearn_metrics.py
DSciLab/mlutils
352af36f2b34218b6551254f641427b7bbdd0f31
[ "MIT" ]
null
null
null
mlutils/thirdparty/sklearn_metrics.py
DSciLab/mlutils
352af36f2b34218b6551254f641427b7bbdd0f31
[ "MIT" ]
null
null
null
mlutils/thirdparty/sklearn_metrics.py
DSciLab/mlutils
352af36f2b34218b6551254f641427b7bbdd0f31
[ "MIT" ]
null
null
null
import numpy as np from sklearn.utils import _deprecate_positional_args from sklearn.metrics import confusion_matrix @_deprecate_positional_args def cohen_kappa_score(y1, y2, *, labels=None, weights=None, sample_weight=None): r"""Cohen's kappa: a statistic that measures inter-annotator agree...
45.053333
79
0.648417
629c5347cbf11375f62a1b63323ea0ca8ef1dde9
14,044
py
Python
samples/balloon/balloon.py
Tauffer-Consulting/Mask_RCNN
a421160f5a337a72548b78a5064095c71791e0a1
[ "MIT" ]
23,299
2017-11-01T23:43:28.000Z
2022-03-31T07:09:31.000Z
samples/balloon/balloon.py
Tauffer-Consulting/Mask_RCNN
a421160f5a337a72548b78a5064095c71791e0a1
[ "MIT" ]
2,642
2017-11-01T23:55:06.000Z
2022-03-31T06:06:30.000Z
samples/balloon/balloon.py
Tauffer-Consulting/Mask_RCNN
a421160f5a337a72548b78a5064095c71791e0a1
[ "MIT" ]
11,244
2017-11-02T00:04:58.000Z
2022-03-31T02:36:09.000Z
""" Mask R-CNN Train on the toy Balloon dataset and implement color splash effect. Copyright (c) 2018 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla ------------------------------------------------------------ Usage: import the module (see Jupyter notebooks for ex...
37.854447
94
0.587582
629c62c27d9c1442051f571a38f69509a18ce948
18,476
py
Python
libs/applibs/compendium/c15sports.py
olom70/kutpMD
2502ce151a0170504b7aa9581d081c755848f060
[ "MIT" ]
null
null
null
libs/applibs/compendium/c15sports.py
olom70/kutpMD
2502ce151a0170504b7aa9581d081c755848f060
[ "MIT" ]
4
2021-06-08T21:33:38.000Z
2022-03-12T00:29:28.000Z
libs/applibs/compendium/c15sports.py
olom70/kutpMD
2502ce151a0170504b7aa9581d081c755848f060
[ "MIT" ]
null
null
null
import os import sys import libs.applibs.compendium.abstractcompendium as abstractcompendium class Sports(abstractcompendium.Compendium): def __init__(self): super().__init__() self.metValue = {15000 : 5.5 ,15010 : 4.3 ,15020 : 7.0 ,15030 : 5.5 ,...
47.253197
194
0.529985
629c638af571dd2d1e8e45a4c49bdbe3f6542ce0
729
py
Python
data/degrees.py
EQt/treelas
24a5cebf101180822198806c0a4131b0efb7a36d
[ "MIT" ]
3
2020-06-18T13:31:26.000Z
2021-04-05T17:42:56.000Z
data/degrees.py
EQt/treelas
24a5cebf101180822198806c0a4131b0efb7a36d
[ "MIT" ]
null
null
null
data/degrees.py
EQt/treelas
24a5cebf101180822198806c0a4131b0efb7a36d
[ "MIT" ]
null
null
null
import sys from os import path from treelas import Tree def print_deg_stats(fname="dimacs10/europe_0.tree", out=sys.stdout): """ Parse HDF5 file containing "parent" array and printout a line of a TeX table containing some statistics about the degree distribution. """ t = Tree.load(fname) n...
28.038462
73
0.540466
629c64dc876b8d0b13b1a70942be863a291c711e
2,561
py
Python
cuchem/cuchem/api/__init__.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
cuchem/cuchem/api/__init__.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
cuchem/cuchem/api/__init__.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
import logging import os import werkzeug werkzeug.cached_property = werkzeug.utils.cached_property from flask import Blueprint, Flask, send_file, json from flask.globals import current_app from flask.helpers import safe_join from flask_restplus import Api from werkzeug.exceptions import HTTPException from werkzeug.ht...
27.537634
78
0.674736
629c68960d29d5dbb7bde7b27e4a2dd94b252cbd
1,613
py
Python
tests/test_provider_ns1_terraform_ns1.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_ns1_terraform_ns1.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_ns1_terraform_ns1.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_ns1-terraform_ns1.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:22:51 UTC) def test_provider_import(): import terrascript.provider.ns1_terraform.ns1 def test_resource_import(): from terrascript.resource.ns1_terraform.ns1 import ns1_apikey from terrascript.resou...
30.433962
80
0.787973
629c68f2cdb769c51d16e09f88048e1a92d86c74
1,279
py
Python
app/api/crud/admin.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-06-25T00:24:13.000Z
2021-07-10T13:00:39.000Z
app/api/crud/admin.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
null
null
null
app/api/crud/admin.py
flych3r/spotify-tracker
306d549da6a57866ea480c85286d870e7653a1eb
[ "MIT" ]
2
2021-05-16T01:40:39.000Z
2021-07-10T12:59:07.000Z
from typing import Dict, List, Text, Union from app.database.schema import User, UserToken async def get_all_users(): """Gets all users from db.""" return await User.objects.all() async def update_user(user: User): """Updates user on db.""" user = await user.update() await UserToken.objects.cre...
29.744186
70
0.643471
629c97e7858b56d63ac2e19479f66a70cb8f1b18
647
py
Python
push_notifications/migrations/0005_auto_20161117_1306.py
menaweb/django-push-notifications
040619e200ddcec508398515eb2b203d8b406bac
[ "MIT" ]
null
null
null
push_notifications/migrations/0005_auto_20161117_1306.py
menaweb/django-push-notifications
040619e200ddcec508398515eb2b203d8b406bac
[ "MIT" ]
null
null
null
push_notifications/migrations/0005_auto_20161117_1306.py
menaweb/django-push-notifications
040619e200ddcec508398515eb2b203d8b406bac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.dev20161116224037 on 2016-11-17 13:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('push_notifications', '0004_fcm'), ] operations = [ migratio...
30.809524
219
0.656878
629ca4219f88eeb2edb6de5704bc8d45e7e23d5c
61,592
py
Python
lib/XChemMain.py
francois-gaillot/XChemExplorer
43298b32ea6e2aebcf064635f96727034712c05c
[ "MIT" ]
10
2016-01-10T16:12:45.000Z
2021-11-23T11:33:20.000Z
lib/XChemMain.py
francois-gaillot/XChemExplorer
43298b32ea6e2aebcf064635f96727034712c05c
[ "MIT" ]
6
2017-04-07T16:27:27.000Z
2021-05-20T16:41:02.000Z
lib/XChemMain.py
francois-gaillot/XChemExplorer
43298b32ea6e2aebcf064635f96727034712c05c
[ "MIT" ]
8
2016-10-28T14:40:44.000Z
2021-01-15T10:34:30.000Z
# last edited: 15/05/2017, 15:00 import os,glob import sys import subprocess import getpass import gzip from datetime import datetime from PyQt4 import QtGui, QtCore sys.path.append(os.path.join(os.getenv('XChemExplorer_DIR'),'lib')) import XChemDB import XChemLog def space_group_list(): space_group_list = [...
47.931518
429
0.535037
629d06fc635c7bae98cf1cf77a7249b67b9e94e4
3,399
py
Python
ngraph/frontends/onnx/onnx_importer/backend.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
ngraph/frontends/onnx/onnx_importer/backend.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
ngraph/frontends/onnx/onnx_importer/backend.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2018 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.o...
41.45122
96
0.677552
629d12fc758be66a2d27c8c3fa88277461dc135f
1,671
py
Python
apps/agendas/admin/appointment.py
victoraguilarc/agendas
31b24a2d6350605b638b59062f297ef3f58e9879
[ "MIT" ]
2
2020-06-06T23:10:27.000Z
2020-10-06T19:12:26.000Z
apps/agendas/admin/appointment.py
victoraguilarc/medical-appointment
31b24a2d6350605b638b59062f297ef3f58e9879
[ "MIT" ]
3
2021-04-08T20:44:38.000Z
2021-09-22T19:04:16.000Z
apps/agendas/admin/appointment.py
victoraguilarc/agendas
31b24a2d6350605b638b59062f297ef3f58e9879
[ "MIT" ]
1
2020-10-10T14:07:37.000Z
2020-10-10T14:07:37.000Z
# -*- coding: utf-8 -*- from django.contrib import admin from django.http import HttpResponseRedirect from django.urls import reverse, path from django.utils.html import format_html from apps.agendas.models import Appointment from apps.agendas.services.appointment import AppointmentService @admin.register(Appointme...
30.381818
95
0.645721
629d2ae9ada64455dfd932e527b3e7235ca029db
57
py
Python
aiopvapi/__version__.py
sander76/aio-powerview-api
89711e2a0cb4640eb458767d289dcfa3acafb10f
[ "BSD-3-Clause" ]
6
2018-05-31T00:00:34.000Z
2022-02-21T21:57:55.000Z
aiopvapi/__version__.py
sander76/aio-powerview-api
89711e2a0cb4640eb458767d289dcfa3acafb10f
[ "BSD-3-Clause" ]
16
2017-10-07T02:48:22.000Z
2022-03-21T13:06:41.000Z
aiopvapi/__version__.py
sander76/aio-powerview-api
89711e2a0cb4640eb458767d289dcfa3acafb10f
[ "BSD-3-Clause" ]
10
2017-10-10T15:51:20.000Z
2022-01-13T20:17:00.000Z
"""Aio PowerView api version.""" __version__ = "1.6.19"
14.25
32
0.649123
629d2fdc4324b83343af0b5a2df823c934b5df9c
11,614
py
Python
lang/py3/avro/protocol.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
21
2015-09-11T19:52:23.000Z
2021-12-17T02:50:47.000Z
lang/py3/avro/protocol.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
16
2018-03-15T23:11:29.000Z
2021-09-20T12:45:54.000Z
lang/py3/avro/protocol.py
gth828r/avro-python3
c8379728b4a762d99262e526fb53f631076fb143
[ "Apache-2.0" ]
25
2018-01-05T15:13:55.000Z
2021-12-10T20:01:28.000Z
#!/usr/bin/env python3 # -*- mode: python -*- # -*- coding: 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...
28.818859
81
0.662821
629d3189afc24f5ae85d28aa37a8eada3e982765
4,272
py
Python
pjinoise/cli.py
pji/pjinoise
3967d69fa57be1136cdeb8f4a5d187ee455fa783
[ "MIT" ]
1
2021-04-07T06:20:55.000Z
2021-04-07T06:20:55.000Z
pjinoise/cli.py
pji/pjinoise
3967d69fa57be1136cdeb8f4a5d187ee455fa783
[ "MIT" ]
null
null
null
pjinoise/cli.py
pji/pjinoise
3967d69fa57be1136cdeb8f4a5d187ee455fa783
[ "MIT" ]
null
null
null
""" cli ~~~ Run the command line for the pjinoise module. """ import argparse from typing import Callable, List from pjinoise import filters as f from pjinoise import model as m from pjinoise import operations as op from pjinoise import sources as s from pjinoise.common import get_format def _build_source(name: str...
27.56129
67
0.484082
629d5048b1f5464fd82b227ac6a8f519972599cd
15,221
py
Python
pterasoftware/steady_horseshoe_vortex_lattice_method.py
camUrban/PteraSoftware
cd5163aa2cc5ea76a906b271d9d9958ad99e57bd
[ "MIT" ]
68
2020-07-18T20:49:37.000Z
2022-03-23T21:07:35.000Z
pterasoftware/steady_horseshoe_vortex_lattice_method.py
camUrban/PteraSoftware
cd5163aa2cc5ea76a906b271d9d9958ad99e57bd
[ "MIT" ]
13
2020-08-20T04:56:44.000Z
2022-03-27T14:34:02.000Z
pterasoftware/steady_horseshoe_vortex_lattice_method.py
camUrban/PteraSoftware
cd5163aa2cc5ea76a906b271d9d9958ad99e57bd
[ "MIT" ]
17
2020-07-23T22:26:31.000Z
2022-03-27T12:34:27.000Z
""" This module contains the class definition of this package's steady horseshoe vortex lattice solver. This module contains the following classes: SteadyHorseshoeVortexLatticeMethodSolver: This is an aerodynamics solver that uses a steady horseshoe vortex lattice method. This module contains the following ex...
43.613181
88
0.664345
629d58c0ea39766832395fd1f7e5b9b707dac5d3
37,751
py
Python
nova/tests/cells/test_cells_manager.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/cells/test_cells_manager.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/tests/cells/test_cells_manager.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 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 req...
46.548705
79
0.606103
629d799ac3110b7ed3953156056f114094c96f90
607
py
Python
tikz2graphml/__main__.py
ysahil97/tikz-to-yed-graphml
de3cc51675b9d09c68445ac7f40cccd64a28e448
[ "Apache-2.0" ]
null
null
null
tikz2graphml/__main__.py
ysahil97/tikz-to-yed-graphml
de3cc51675b9d09c68445ac7f40cccd64a28e448
[ "Apache-2.0" ]
3
2019-05-03T04:46:19.000Z
2019-05-03T04:47:01.000Z
tikz2graphml/__main__.py
ysahil97/tikz-to-yed-graphml
de3cc51675b9d09c68445ac7f40cccd64a28e448
[ "Apache-2.0" ]
null
null
null
import tkinter import logging from tikz2graphml.Gui import Gui logging.basicConfig(format='%(levelname)-1s : [%(filename)s:%(lineno)d] %(message)s') logger = logging.getLogger() logger.setLevel(logging.INFO) def main(): # Right now, we use GUI(default) to take in Tikz files and output # in specified directory...
23.346154
85
0.663921
629d7b01fa8f1611ab51ce41d1d2c0537bc7e099
3,485
py
Python
dispatcher.py
vascocandeias/maestro-cloud
15e8407a60f77664cb3e6bd083b63bdec52fcbfc
[ "Apache-2.0" ]
null
null
null
dispatcher.py
vascocandeias/maestro-cloud
15e8407a60f77664cb3e6bd083b63bdec52fcbfc
[ "Apache-2.0" ]
null
null
null
dispatcher.py
vascocandeias/maestro-cloud
15e8407a60f77664cb3e6bd083b63bdec52fcbfc
[ "Apache-2.0" ]
null
null
null
import boto3 import datetime import json import os import time QUEUE_NAME = os.environ['QUEUE_NAME'] IDENTITY_POOL_ID = os.environ['IDENTITY_POOL_ID'] COGNITO_USER_POOL = os.environ['COGNITO_USER_POOL'] AMI = os.environ['AMI'] INSTANCE_TYPE = os.environ['INSTANCE_TYPE'] IAM_ARN = os.environ['IAM_ARN'] DAYS = 3 ec2 ...
29.285714
196
0.632138
629d7c11ab9aaf99978bee799af8c5ae3ef0dbc5
19,965
py
Python
snntoolbox/simulation/target_simulators/pyNN_target_sim.py
sunpengfei1122/snn_toolbox
3bdbe329eccd74952989cc704e65567b6bf8b168
[ "MIT" ]
null
null
null
snntoolbox/simulation/target_simulators/pyNN_target_sim.py
sunpengfei1122/snn_toolbox
3bdbe329eccd74952989cc704e65567b6bf8b168
[ "MIT" ]
null
null
null
snntoolbox/simulation/target_simulators/pyNN_target_sim.py
sunpengfei1122/snn_toolbox
3bdbe329eccd74952989cc704e65567b6bf8b168
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Building and simulating spiking neural networks using `pyNN <http://neuralensemble.org/docs/PyNN/>`_. @author: rbodo """ from __future__ import division, absolute_import from __future__ import print_function, unicode_literals import os import sys import time import warnings ...
37.178771
80
0.576709
629d972548cefb1311dd4d2dba858c61d40dc8f9
1,019
py
Python
python/array/0498_diagonal_traverse.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/array/0498_diagonal_traverse.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/array/0498_diagonal_traverse.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def findDiagonalOrder(self, matrix): """ :type matrix: List[List[int]] :rtype: List[int] """ if len(matrix) == 0: return [] r, c, m, n = 0, 0, len(matrix), len(matrix[0]) arr = [] for _ in range(m * n): a...
26.128205
63
0.313052
629dc0f02277c30a1f06564406d2a28d1dd15096
1,729
py
Python
migrations/versions/52ae2f07ac3a_.py
quaintm/octopus
95a732207ee5f43cd0065d8ea6c643cbf3df2d61
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/52ae2f07ac3a_.py
quaintm/octopus
95a732207ee5f43cd0065d8ea6c643cbf3df2d61
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/52ae2f07ac3a_.py
quaintm/octopus
95a732207ee5f43cd0065d8ea6c643cbf3df2d61
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 52ae2f07ac3a Revises: 21224843faf Create Date: 2014-12-08 16:17:50.324073 """ # revision identifiers, used by Alembic. revision = '52ae2f07ac3a' down_revision = '21224843faf' from alembic import op import sqlalchemy as sa def upgrade(): # ## commands auto generated by Alembic - ple...
35.285714
75
0.623482
629dc67d4717ec2512a810097adfa8e18926c685
1,131
py
Python
src/robot/result/messagefilter.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/result/messagefilter.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
1
2021-01-21T03:06:37.000Z
2021-01-21T03:06:37.000Z
src/robot/result/messagefilter.py
bradyarthur/RobotFramework
f45747dfec1095359379ba0088cecd955a83e576
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
36.483871
78
0.740937
629dc834d3af29aabf90d5da349718bd5cf6b606
2,035
py
Python
docs/conf.py
liujiantong/vollib
feefc40e817add7d1b166cd343c957142858fabf
[ "MIT" ]
null
null
null
docs/conf.py
liujiantong/vollib
feefc40e817add7d1b166cd343c957142858fabf
[ "MIT" ]
null
null
null
docs/conf.py
liujiantong/vollib
feefc40e817add7d1b166cd343c957142858fabf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # vollib documentation build configuration file, created by # sphinx-quickstart on Wed Apr 1 19:21:03 2015. # import sys import os sys.path.append('..') # -- General configuration ------------------------------------------------ extensions = [ 'sphinx.ext.autodoc', 'matplotlib.sph...
25.4375
83
0.618673
629de5a979a98f1102167e0203814f6fca6aa4f6
4,966
py
Python
apps/sushi/management/commands/fetch_sushi_reports.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/sushi/management/commands/fetch_sushi_reports.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/sushi/management/commands/fetch_sushi_reports.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
import concurrent.futures from time import sleep from dateparser import parse as parse_date from django.core.management.base import BaseCommand from core.logic.dates import month_start, month_end from sushi.models import SushiCredentials, CounterReportType, SushiFetchAttempt class Command(BaseCommand): help =...
48.686275
96
0.60592
629dff594cabb754f80b2a7fd92ed75173ab3641
6,421
py
Python
models/resnet18_3d_f2f.py
dongzhuoyao/video-query-in-the-wild
41b015b3993d926c5d9bf02ec4402e7b9edac568
[ "Unlicense" ]
null
null
null
models/resnet18_3d_f2f.py
dongzhuoyao/video-query-in-the-wild
41b015b3993d926c5d9bf02ec4402e7b9edac568
[ "Unlicense" ]
null
null
null
models/resnet18_3d_f2f.py
dongzhuoyao/video-query-in-the-wild
41b015b3993d926c5d9bf02ec4402e7b9edac568
[ "Unlicense" ]
null
null
null
import torch.nn as nn from collections import OrderedDict import torch class BasicBlock(nn.Module): expansion = 1 def __init__( self, inplanes, planes, stride=1, downsample=None, groups=1, base_width=64, dilation=1, norm_layer=None, ...
30.870192
90
0.50475
629e26e295ebe12324af3ef3892bd3024c369454
4,978
py
Python
quizzes/migrations/0001_initial.py
aeronlroach/django-quiz
96c0965138d56e8d3b335edb6d6b7c3f67753031
[ "MIT" ]
null
null
null
quizzes/migrations/0001_initial.py
aeronlroach/django-quiz
96c0965138d56e8d3b335edb6d6b7c3f67753031
[ "MIT" ]
null
null
null
quizzes/migrations/0001_initial.py
aeronlroach/django-quiz
96c0965138d56e8d3b335edb6d6b7c3f67753031
[ "MIT" ]
1
2020-04-16T20:41:53.000Z
2020-04-16T20:41:53.000Z
# Generated by Django 3.0.3 on 2020-03-20 18:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Answer', fields=[ ...
48.330097
146
0.588188
629e3b4581d67032ff8e3ca82a65c4943d158589
9,058
py
Python
pyscarphase/scarphase_dump.py
uart/scarphase
be143e35e39174bc3a133a30fdb72ca1602ce288
[ "BSD-3-Clause" ]
6
2016-12-03T15:18:44.000Z
2022-01-13T06:19:01.000Z
pyscarphase/scarphase_dump.py
nujgnayuf/scarphase
be143e35e39174bc3a133a30fdb72ca1602ce288
[ "BSD-3-Clause" ]
5
2015-07-02T15:12:18.000Z
2021-12-08T12:50:06.000Z
pyscarphase/scarphase_dump.py
nujgnayuf/scarphase
be143e35e39174bc3a133a30fdb72ca1602ce288
[ "BSD-3-Clause" ]
6
2015-11-04T04:12:24.000Z
2022-03-27T16:29:24.000Z
# Copyright (c) 2011-2013 Andreas Sembrant # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # - Redistributions of source code must retain the above copyright # notice, this list of conditi...
28.130435
83
0.5552
629e4dc8ac504cd2bf7e557842e4c1ab8f7cbbaa
30,294
py
Python
connector/src/yang/connector/netconf.py
nhattrinh/yang
733009580723909e7ef5eecde304e2873907366b
[ "Apache-2.0" ]
null
null
null
connector/src/yang/connector/netconf.py
nhattrinh/yang
733009580723909e7ef5eecde304e2873907366b
[ "Apache-2.0" ]
null
null
null
connector/src/yang/connector/netconf.py
nhattrinh/yang
733009580723909e7ef5eecde304e2873907366b
[ "Apache-2.0" ]
null
null
null
"""netconf.py module is a wrapper around the ncclient package.""" import re import atexit import logging import subprocess import datetime import lxml.etree as et from ncclient import manager from ncclient import operations from ncclient import transport from ncclient.operations.retrieve import GetReply from ncclient....
35.556338
82
0.535948
629e65e580719fd8849027e133f52d829b5fea3e
4,758
py
Python
tests/registration_test.py
SamTheisens/kawalc1
c0189c04d130680e51ca4396794c735bd51cf258
[ "MIT" ]
14
2019-04-07T08:04:15.000Z
2019-11-03T08:27:51.000Z
tests/registration_test.py
kawalc1/kawalc1
6963f7f3f93e7ab897dfcda265c9dd3b12433f18
[ "MIT" ]
22
2019-03-25T05:27:12.000Z
2020-08-17T22:13:19.000Z
tests/registration_test.py
kawalc1/kawalc1
6963f7f3f93e7ab897dfcda265c9dd3b12433f18
[ "MIT" ]
1
2019-04-07T16:18:33.000Z
2019-04-07T16:18:33.000Z
import os import pathlib import unittest from mengenali import registration import tempfile import json import io from os.path import join, exists, abspath from tests import setup_django_settings class RegistrationTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.overwrite_resources = F...
47.108911
118
0.729718
629e6fbf3f64711d398a70776c0fc75bcb683e3a
2,243
py
Python
leetcode_python/Hash_table/happy-number.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Hash_table/happy-number.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Hash_table/happy-number.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# Time: O(k), where k is the steps to be happy number # Space: O(k) # # Write an algorithm to determine if a number is "happy". # # A happy number is a number defined by the following process: # Starting with any positive integer, replace the number by the sum # of the squares of its digits, and repeat the process unt...
26.081395
75
0.518948
629e7a4fe322efdaea4fc422926aff9b91d42a93
2,465
py
Python
infra/libs/service_utils/_daemon_win32.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
infra/libs/service_utils/_daemon_win32.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
infra/libs/service_utils/_daemon_win32.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 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. """Locking, timeout, and other process management functions.""" import contextlib import ctypes import ctypes.wintypes import os import tempfile GENERIC_WR...
24.405941
81
0.750101
629e7f2d3fe198832fdc172d0692b517b81d2c3a
116,246
py
Python
salt/minion.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
1
2020-09-16T21:31:02.000Z
2020-09-16T21:31:02.000Z
salt/minion.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
salt/minion.py
jbq/pkg-salt
b6742e03cbbfb82f4ce7db2e21a3ff31b270cdb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Routines to set up a minion ''' # Import python libs from __future__ import absolute_import from __future__ import print_function import copy import errno import fnmatch import hashlib import logging import multiprocessing import os import re import salt import signal import sys import threa...
39.526012
127
0.536036
629eb9ccddf2c7eab6628725cfe02ed9eb34c873
1,420
py
Python
utils/loss.py
pooruss/ICNet-Paddle2.2.0rc
0411da034740e46c0d318130c618e333ed9767bc
[ "MIT" ]
null
null
null
utils/loss.py
pooruss/ICNet-Paddle2.2.0rc
0411da034740e46c0d318130c618e333ed9767bc
[ "MIT" ]
null
null
null
utils/loss.py
pooruss/ICNet-Paddle2.2.0rc
0411da034740e46c0d318130c618e333ed9767bc
[ "MIT" ]
null
null
null
"""Custom losses.""" import paddle.nn as nn import paddle.nn.functional as F import numpy as np import paddle __all__ = ['ICNetLoss'] # TODO: optim function class ICNetLoss(nn.CrossEntropyLoss): """Cross Entropy Loss for ICNet""" def __init__(self, aux_weight=0.4, ignore_index=-1): super(ICNetLoss...
47.333333
141
0.676056