hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
d221a20f328570df4486c769b0b3faa56183c596
3,357
py
Python
RCJ_pcms_base/scripts/QrCode.py
FablabHome/PCMS_home_robotics
21202fb73811edfcbdfde204ba33fb8bd4360d4b
[ "MIT" ]
1
2021-09-23T09:42:32.000Z
2021-09-23T09:42:32.000Z
RCJ_pcms_base/scripts/QrCode.py
FablabHome/PCMS_home_robotics
21202fb73811edfcbdfde204ba33fb8bd4360d4b
[ "MIT" ]
null
null
null
RCJ_pcms_base/scripts/QrCode.py
FablabHome/PCMS_home_robotics
21202fb73811edfcbdfde204ba33fb8bd4360d4b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import time import cv2 import numpy as np import rospy from cv_bridge import CvBridge from pyzbar import pyzbar from sensor_msgs.msg import CompressedImage from std_msgs.msg import String rospy.init_node('qr_code') def unique_count_app(a): colors, count = np.unique(a.reshape(-1,a.shape[-...
25.625954
113
0.579386
b842c5e20c0185531d6b724ef71046f2b36c1421
3,946
py
Python
deeptrack/sequences.py
BenjaminMidtvedt/DeepTrack-2.0
64245f31e63011fb48d38f211134774bbce28cf4
[ "MIT" ]
1
2022-01-16T14:51:07.000Z
2022-01-16T14:51:07.000Z
deeptrack/sequences.py
BenjaminMidtvedt/DeepTrack-2.0
64245f31e63011fb48d38f211134774bbce28cf4
[ "MIT" ]
null
null
null
deeptrack/sequences.py
BenjaminMidtvedt/DeepTrack-2.0
64245f31e63011fb48d38f211134774bbce28cf4
[ "MIT" ]
null
null
null
"""Features and tools for resolving sequences of images. Classes ------- Sequence Resolves a feature as a sequence. Functions --------- Sequential Converts a feature to be resolved as a sequence. """ from .features import Feature from .properties import SequentialProperty from .types import PropertyLike cl...
29.22963
81
0.64369
79f8732c92f509772bfae9066ba9f8555164e21c
113
py
Python
biclustering/__init__.py
lucasbrunialti/biclustering-experiments
30e51e23b0c3d91939bf7ec49c47d3035e6ecb57
[ "BSD-2-Clause" ]
3
2017-11-21T08:21:32.000Z
2020-03-10T14:57:06.000Z
biclustering/__init__.py
lucasbrunialti/biclustering-experiments
30e51e23b0c3d91939bf7ec49c47d3035e6ecb57
[ "BSD-2-Clause" ]
null
null
null
biclustering/__init__.py
lucasbrunialti/biclustering-experiments
30e51e23b0c3d91939bf7ec49c47d3035e6ecb57
[ "BSD-2-Clause" ]
4
2017-01-18T18:10:37.000Z
2021-12-15T02:23:15.000Z
from biclustering import Bicluster, MSR, DeltaBiclustering __all__ = ['Bicluster', 'MSR', 'DeltaBiclustering']
22.6
58
0.769912
0ddb9a5c1a677b74b8d70bf2bc7a8b2fc3800271
11,961
py
Python
modelling/models/input_variation_hydro_zone_model.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
modelling/models/input_variation_hydro_zone_model.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
modelling/models/input_variation_hydro_zone_model.py
bcgov-c/wally
264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06
[ "Apache-2.0" ]
null
null
null
import os import json from numpy.core.numeric import allclose import pandas as pd import numpy as np from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split import math import csv import itertools from ast import literal_eval from sklearn.metrics import mean_squared_error,...
33.317549
140
0.596188
3df36d90ba99b3345b191890bb0ea532728f189f
1,491
py
Python
autoscaler/__init__.py
vanvalenlab/kiosk-autoscaler
770cc8ec47927549e64c032b4df81732235bdbf9
[ "Apache-2.0" ]
null
null
null
autoscaler/__init__.py
vanvalenlab/kiosk-autoscaler
770cc8ec47927549e64c032b4df81732235bdbf9
[ "Apache-2.0" ]
13
2018-10-29T19:54:17.000Z
2020-04-13T20:38:23.000Z
autoscaler/__init__.py
vanvalenlab/kiosk-autoscaler
770cc8ec47927549e64c032b4df81732235bdbf9
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2020 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
40.297297
78
0.751844
115d769e78e5d0d9a0e60c0eee72c88e16f1dfd6
4,657
py
Python
Merge-NMAP-XML-Files.py
osvaldohdzm/Port-Services-Scan-Tool
7ecad2d3299fd916eef93b45fbebcd475b3135af
[ "MIT" ]
null
null
null
Merge-NMAP-XML-Files.py
osvaldohdzm/Port-Services-Scan-Tool
7ecad2d3299fd916eef93b45fbebcd475b3135af
[ "MIT" ]
null
null
null
Merge-NMAP-XML-Files.py
osvaldohdzm/Port-Services-Scan-Tool
7ecad2d3299fd916eef93b45fbebcd475b3135af
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #################################################################################### # # nMapMerge.py # # Description # Combine nMap xml files into one XML # # Example # python nMapMerge.py -f nmap_scan.xml # python nMapMerge.py -f ./nMap/ # # Author: # Hue B. Solutions LLC, CBHue # # ####...
27.886228
208
0.640971
208c707f0053622260b0ec4cb1722fe83c94b57f
2,581
py
Python
Scripts/GenerateLayerOntology.py
allemangD/cell-locator
0bf11d853ade1a0cf82526ca2063618524559ad0
[ "Apache-2.0" ]
12
2018-07-11T20:29:53.000Z
2021-11-20T11:15:16.000Z
Scripts/GenerateLayerOntology.py
allemangD/cell-locator
0bf11d853ade1a0cf82526ca2063618524559ad0
[ "Apache-2.0" ]
173
2018-06-27T12:17:17.000Z
2022-03-15T16:14:48.000Z
Scripts/GenerateLayerOntology.py
allemangD/cell-locator
0bf11d853ade1a0cf82526ca2063618524559ad0
[ "Apache-2.0" ]
7
2018-08-23T20:56:34.000Z
2021-08-05T08:38:22.000Z
"""Generate layer ontology. Prerequisites: pip install allensdk Initial version written by David Feng <davidf@alleninstitute.org> See https://gist.github.com/dyf/056095756b15a6b76dfb28558c4633da """ import argparse import sys try: from allensdk.api.queries.rma_api import RmaApi import allensdk.core.json_utiliti...
32.670886
122
0.655947
6d4d373b4c8d8334d333a6a789ca7b6fe43036f0
2,462
py
Python
setup.py
clytwynec/pa11ycrawler
fc672d4524463bc050ade4c7c97801c0d5bf8c9e
[ "Apache-2.0" ]
20
2016-05-18T01:13:05.000Z
2019-09-30T14:34:53.000Z
setup.py
clytwynec/pa11ycrawler
fc672d4524463bc050ade4c7c97801c0d5bf8c9e
[ "Apache-2.0" ]
57
2016-04-01T15:43:39.000Z
2019-03-20T21:44:11.000Z
setup.py
clytwynec/pa11ycrawler
fc672d4524463bc050ade4c7c97801c0d5bf8c9e
[ "Apache-2.0" ]
15
2016-08-10T19:47:18.000Z
2020-02-24T04:21:30.000Z
from setuptools import setup VERSION = '1.7.3' DESCRIPTION = 'A Scrapy spider for a11y auditing Open edX installations.' LONG_DESCRIPTION = """pa11ycrawler is a Scrapy spider that runs a Pa11y check on every page of an Open edX installation, to audit it for accessibility purposes.""" def is_requirement(line): li...
33.27027
79
0.582859
bd237a66b7c7f88908eb6d7b73ac261fc2151108
1,703
py
Python
requests/packages/urllib3/__init__.py
devavenkata/sublimeapex
a4a3d7559b58e4d7b1e5e766731a3d30fce6b2ec
[ "MIT" ]
6
2015-01-20T08:26:53.000Z
2019-01-16T00:09:22.000Z
requests/packages/urllib3/__init__.py
devavenkata/sublimeapex
a4a3d7559b58e4d7b1e5e766731a3d30fce6b2ec
[ "MIT" ]
7
2015-01-03T14:06:32.000Z
2015-05-07T01:40:04.000Z
requests/packages/urllib3/__init__.py
devavenkata/sublimeapex
a4a3d7559b58e4d7b1e5e766731a3d30fce6b2ec
[ "MIT" ]
17
2015-06-09T13:01:39.000Z
2021-03-17T03:10:20.000Z
# urllib3/__init__.py # Copyright 2008-2013 Andrey Petrov and contributors (see CONTRIBUTORS.txt) # # This module is part of urllib3 and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ urllib3 - Thread-safe connection pooling and re-using. """ __author__ = 'Andrey Petrov (a...
28.864407
84
0.741632
8242d655b3181f6dbb86f2f0a38f4a4cc995659a
1,722
py
Python
lib/googlecloudsdk/command_lib/functions/v1/delete/command.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/command_lib/functions/v1/delete/command.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/functions/v1/delete/command.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. 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 requir...
41
78
0.784553
e6d2b7ad2abd6b80bdb20a12996b2ab9cb380fe6
494
py
Python
Utils/Logger.py
FullMetalNicky/PitchNet
9987398e304238ed67c588a4166ec0cc1801f805
[ "MIT" ]
null
null
null
Utils/Logger.py
FullMetalNicky/PitchNet
9987398e304238ed67c588a4166ec0cc1801f805
[ "MIT" ]
null
null
null
Utils/Logger.py
FullMetalNicky/PitchNet
9987398e304238ed67c588a4166ec0cc1801f805
[ "MIT" ]
null
null
null
import logging def LogProgram(): logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s", datefmt="%Y-%m-%d %H:%M:%S", filename="log.txt", filemode='w') console = logging.StreamH...
32.933333
75
0.55668
bf9a835022cf1b5840b3784a239a3bb1c6f2c15d
26
py
Python
spoapy/__init__.py
tprodanov/spoa
3a09bc65a08915a1a3956ef74b5b7cc4391cd08c
[ "MIT" ]
null
null
null
spoapy/__init__.py
tprodanov/spoa
3a09bc65a08915a1a3956ef74b5b7cc4391cd08c
[ "MIT" ]
null
null
null
spoapy/__init__.py
tprodanov/spoa
3a09bc65a08915a1a3956ef74b5b7cc4391cd08c
[ "MIT" ]
null
null
null
from spoapy.core import *
13
25
0.769231
c8e815d0966934bcc798babcd0eb42e3ccdce51e
3,229
py
Python
assignments/assignment2/model.py
nikitakogut/dlcourse_ai
bd5826c04331864e0c37c84cf33674438d3f9b01
[ "MIT" ]
1
2019-03-27T09:18:47.000Z
2019-03-27T09:18:47.000Z
assignments/assignment2/model.py
nikitakogut/dlcourse_ai
bd5826c04331864e0c37c84cf33674438d3f9b01
[ "MIT" ]
null
null
null
assignments/assignment2/model.py
nikitakogut/dlcourse_ai
bd5826c04331864e0c37c84cf33674438d3f9b01
[ "MIT" ]
null
null
null
import numpy as np from layers import FullyConnectedLayer, ReLULayer, softmax, softmax_with_cross_entropy, l2_regularization class TwoLayerNet: """ Neural network with two fully connected layers """ def __init__(self, n_input, n_output, hidden_layer_size, reg): """ Initializes the neural net...
37.988235
105
0.613503
df3d01211cf05279a83f1d059ec14e3bd3fd7b70
2,206
py
Python
utest/namespace/test_library_cache.py
crylearner/RIDE3X
767f45b0c908f18ecc7473208def8dc7489f43b0
[ "ECL-2.0", "Apache-2.0" ]
1
2017-08-20T14:46:02.000Z
2017-08-20T14:46:02.000Z
utest/namespace/test_library_cache.py
crylearner/RIDE3X
767f45b0c908f18ecc7473208def8dc7489f43b0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/namespace/test_library_cache.py
crylearner/RIDE3X
767f45b0c908f18ecc7473208def8dc7489f43b0
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import unittest import sys import os from robotide.spec.librarymanager import LibraryManager from threading import Thread from robotide.namespace.cache import LibraryCache from resources import DATAPATH sys.path.append(os.path.join(DATAPATH, 'libs')) class TestLibraryCache(unittest.TestCase): @...
33.938462
102
0.67815
d614d4d47eb4f0d9ced64a90806b7112c12038c7
2,396
py
Python
etutils/viz/scatter3.py
erdogant/etutils
69be71d2b2a0e7536b9244eb90edd689a6d1148c
[ "MIT" ]
null
null
null
etutils/viz/scatter3.py
erdogant/etutils
69be71d2b2a0e7536b9244eb90edd689a6d1148c
[ "MIT" ]
null
null
null
etutils/viz/scatter3.py
erdogant/etutils
69be71d2b2a0e7536b9244eb90edd689a6d1148c
[ "MIT" ]
null
null
null
""" This function creates a 3d scatterplot from etutils.viz.scatter3 import scatter3 A= scatter3(x,y,z <optional>) INPUT: data: numpy array x y z OPTIONAL verbose: Integer [0..5] if verbose >= DEBUG: print('debug message') ...
24.44898
121
0.514608
b03b2c3be68f7feecfa85afe6e10c72be599c55c
3,260
py
Python
tests/ocd_backend/transformers/test_database_transformer.py
openstate/open-raadsinformatie
bb5cb306d794251334942f34e573a204f52db61b
[ "MIT" ]
23
2015-10-28T09:02:41.000Z
2021-12-15T08:40:41.000Z
tests/ocd_backend/transformers/test_database_transformer.py
openstate/open-raadsinformatie
bb5cb306d794251334942f34e573a204f52db61b
[ "MIT" ]
326
2015-11-03T12:59:48.000Z
2022-03-11T23:18:14.000Z
tests/ocd_backend/transformers/test_database_transformer.py
openstate/open-raadsinformatie
bb5cb306d794251334942f34e573a204f52db61b
[ "MIT" ]
10
2016-02-05T08:43:07.000Z
2022-03-09T10:04:32.000Z
import os import json from unittest import TestCase from ocd_backend.models.model import Model from ocd_backend.transformers.database import database_item class DatabaseTransformerTestCase(TestCase): def setUp(self): self.PWD = os.path.dirname(__file__) self.transformer_class = database_item ...
50.9375
130
0.645092
7e703e1301b77456a3c86d21c5923f6f04a26290
699
py
Python
gofile2/errors.py
Itz-fork/Gofile2
14065c6fd5d9ef82baf2fcd099d80c43cee9a564
[ "MIT" ]
9
2021-09-19T15:47:05.000Z
2021-12-10T05:22:44.000Z
gofile2/errors.py
Itz-fork/Gofile2
14065c6fd5d9ef82baf2fcd099d80c43cee9a564
[ "MIT" ]
null
null
null
gofile2/errors.py
Itz-fork/Gofile2
14065c6fd5d9ef82baf2fcd099d80c43cee9a564
[ "MIT" ]
null
null
null
# Original Author: Codec04 # Re-built by Itz-fork # Project: Gofile2 import requests class InvalidToken(Exception): pass class JobFailed(Exception): pass class ResponseError(Exception): pass class InvalidPath(Exception): pass # Function to check if token is valid or not (using request lib as th...
21.181818
96
0.695279
bc6185ab34afcb1afb878944eb9c1ba67938533b
1,659
py
Python
setup.py
mattsanchez/sqlalchemy-sparksql
122f27c8ae7709a5d6df6bbba1194884c59bbb81
[ "Apache-2.0" ]
null
null
null
setup.py
mattsanchez/sqlalchemy-sparksql
122f27c8ae7709a5d6df6bbba1194884c59bbb81
[ "Apache-2.0" ]
null
null
null
setup.py
mattsanchez/sqlalchemy-sparksql
122f27c8ae7709a5d6df6bbba1194884c59bbb81
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup from setuptools.command.test import test as TestCommand import sqlalchemy_sparksql import sys class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def ru...
26.333333
70
0.615431
7aec0cc19c3157a64f6a4be580841c82830021a6
664
py
Python
koku/cost_models/migrations/0003_auto_20210615_2011.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
157
2018-04-30T16:27:53.000Z
2022-03-31T08:17:21.000Z
koku/cost_models/migrations/0003_auto_20210615_2011.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
3,250
2018-04-26T14:14:25.000Z
2022-03-31T23:49:15.000Z
koku/cost_models/migrations/0003_auto_20210615_2011.py
rubik-ai/koku
3255d1c217b7b6685cb2e130bf4e025946e76fac
[ "Apache-2.0" ]
65
2018-05-10T14:11:50.000Z
2022-03-18T19:22:58.000Z
# Generated by Django 3.1.12 on 2021-06-15 20:11 from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [("cost_models", "0002_auto_20210318_1514")] operations = [ migrations.AddField( model_name="costmodel", name="...
30.181818
98
0.597892
728938a32a07383a8aeec68d57f3163806ca0f0c
1,721
py
Python
python_modules/libraries/dagster-k8s/setup.py
joeyfreund/dagster
e551ff4bbb2c42b497a3e1c28cfb51fd5f2b1c21
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/setup.py
joeyfreund/dagster
e551ff4bbb2c42b497a3e1c28cfb51fd5f2b1c21
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-k8s/setup.py
joeyfreund/dagster
e551ff4bbb2c42b497a3e1c28cfb51fd5f2b1c21
[ "Apache-2.0" ]
null
null
null
import argparse import sys from setuptools import find_packages, setup def get_version(name): version = {} with open('dagster_k8s/version.py') as fp: exec(fp.read(), version) # pylint: disable=W0122 if name == 'dagster-k8s': return version['__version__'] elif name == 'dagster-k8s-ni...
29.169492
101
0.598489
42cbad91992189bb16a322caba1e7ef2e17423ef
511
py
Python
var/spack/repos/builtin.mock/packages/extendee/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
3
2019-06-27T13:26:50.000Z
2019-07-01T16:24:54.000Z
var/spack/repos/builtin.mock/packages/extendee/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
75
2016-07-27T11:43:00.000Z
2020-12-08T15:56:53.000Z
var/spack/repos/builtin.mock/packages/extendee/package.py
openbiox/spack
bb6ec7fb40c14b37e094a860e3625af53f633174
[ "ECL-2.0", "Apache-2.0", "MIT" ]
8
2015-10-16T13:51:49.000Z
2021-10-18T13:58:03.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Extendee(Package): """A package with extensions""" homepage = "http://www.example.com...
24.333333
73
0.679061
0fde83b717479801193cd7a93ef17b7567607eb9
1,003
py
Python
code/main.py
abdullahkhawer/ak-encoder-decoder
7553476d40d8629d24fd58541d31ea767381cf6a
[ "Apache-2.0" ]
8
2019-07-04T11:13:55.000Z
2021-06-28T13:19:32.000Z
code/main.py
abdullahkhawer/ak-encoder-decoder
7553476d40d8629d24fd58541d31ea767381cf6a
[ "Apache-2.0" ]
null
null
null
code/main.py
abdullahkhawer/ak-encoder-decoder
7553476d40d8629d24fd58541d31ea767381cf6a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from AKEncoderDecoder import AKEncoderDecoder import os import sys pass_key = os.getenv("AK_ENCODER_DECODER_PASS_KEY", " ") pass_key = '+'.join(str(ord(c)) for c in pass_key) pass_key = eval(pass_key)/2 if __name__ == "__main__": if len(sys.argv) != 3: print("ERROR: Invalid Number of Ar...
30.393939
82
0.666999
e3af27aec21d81cbfbc6c63da67a642852630a5d
1,070
py
Python
mmdet/models/utils/__init__.py
yan-roo/LambdaNetworks-Mask_RCNN
dbd2e3171c69c262a7ed6583f79bdaf329128a2a
[ "Apache-2.0" ]
null
null
null
mmdet/models/utils/__init__.py
yan-roo/LambdaNetworks-Mask_RCNN
dbd2e3171c69c262a7ed6583f79bdaf329128a2a
[ "Apache-2.0" ]
null
null
null
mmdet/models/utils/__init__.py
yan-roo/LambdaNetworks-Mask_RCNN
dbd2e3171c69c262a7ed6583f79bdaf329128a2a
[ "Apache-2.0" ]
null
null
null
from .builder import build_linear_layer, build_transformer from .gaussian_target import gaussian_radius, gen_gaussian_target from .inverted_residual import InvertedResidual from .make_divisible import make_divisible from .normed_predictor import NormedConv2d, NormedLinear from .positional_encoding import (LearnedPositi...
48.636364
78
0.776636
e6033cc0547a0f36d507969825b911bb255aeb53
2,909
py
Python
GUIPackage1/datavisualize/datavisualize6/main_window.py
cybernetor066/test1DesktopAppPySide2
1f6f42bcdb4b0ee39a76c0e2d206c5957cc9ff24
[ "PSF-2.0" ]
null
null
null
GUIPackage1/datavisualize/datavisualize6/main_window.py
cybernetor066/test1DesktopAppPySide2
1f6f42bcdb4b0ee39a76c0e2d206c5957cc9ff24
[ "PSF-2.0" ]
null
null
null
GUIPackage1/datavisualize/datavisualize6/main_window.py
cybernetor066/test1DesktopAppPySide2
1f6f42bcdb4b0ee39a76c0e2d206c5957cc9ff24
[ "PSF-2.0" ]
null
null
null
############################################################################# ## ## Copyright (C) 2016 The Qt Company Ltd. ## Contact: http://www.qt.io/licensing/ ## ## This file is part of the Qt for Python examples of the Qt Toolkit. ## ## $QT_BEGIN_LICENSE:BSD$ ## You may use this file under the terms of the BSD lic...
40.402778
77
0.676521
f036c65900d0a9bf7e71ab916a8aad398a96e0f2
999
py
Python
myproject/urls.py
ritwickjha99/onlineclass
1d0ea759c33ae4204d1ecaa5078b50ec9f3851ca
[ "Apache-2.0" ]
null
null
null
myproject/urls.py
ritwickjha99/onlineclass
1d0ea759c33ae4204d1ecaa5078b50ec9f3851ca
[ "Apache-2.0" ]
null
null
null
myproject/urls.py
ritwickjha99/onlineclass
1d0ea759c33ae4204d1ecaa5078b50ec9f3851ca
[ "Apache-2.0" ]
null
null
null
"""myproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
38.423077
77
0.724725
c7b5a52827f8b09c77b3cde18696f16ed7dca6a3
4,363
py
Python
toontown/toon/DistributedNPCToonBase.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
1
2020-09-27T22:12:47.000Z
2020-09-27T22:12:47.000Z
toontown/toon/DistributedNPCToonBase.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
null
null
null
toontown/toon/DistributedNPCToonBase.py
journeyfan/toontown-journey
7a4db507e5c1c38a014fc65588086d9655aaa5b4
[ "MIT" ]
2
2020-09-26T20:37:18.000Z
2020-11-15T20:55:33.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed import ClockDelta from direct.distributed import DistributedObject from direct.fsm import ClassicFSM from direct.fsm import State from direct.interval.IntervalGlobal import * from pandac.PandaModules import * import random from . import Distrib...
32.559701
94
0.673161
cd609493d26c3581cb9dc00cfdee3a72f669db42
15,229
py
Python
test/IECoreScene/MixSmoothSkinningWeightsOpTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
386
2015-01-02T11:10:43.000Z
2022-03-10T15:12:20.000Z
test/IECoreScene/MixSmoothSkinningWeightsOpTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
484
2015-01-09T18:28:06.000Z
2022-03-31T16:02:04.000Z
test/IECoreScene/MixSmoothSkinningWeightsOpTest.py
bradleyhenke/cortex
f8245cc6c9464b1de9e6c6e57068248198e63de0
[ "BSD-3-Clause" ]
99
2015-01-28T23:18:04.000Z
2022-03-27T00:59:39.000Z
########################################################################## # # Copyright (c) 2010, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistribu...
46.288754
243
0.73406
814eb30d2e20c51f9ed9b3a43a6c0bcc5dd63bdb
10,837
py
Python
tests/test_crawl.py
nfunato/scrapy
9d3ded5f2202e1b933e3f38671b114bb0ea238ce
[ "BSD-3-Clause" ]
null
null
null
tests/test_crawl.py
nfunato/scrapy
9d3ded5f2202e1b933e3f38671b114bb0ea238ce
[ "BSD-3-Clause" ]
null
null
null
tests/test_crawl.py
nfunato/scrapy
9d3ded5f2202e1b933e3f38671b114bb0ea238ce
[ "BSD-3-Clause" ]
1
2019-07-17T09:23:13.000Z
2019-07-17T09:23:13.000Z
import json import socket import logging from testfixtures import LogCapture from twisted.internet import defer from twisted.trial.unittest import TestCase from scrapy.http import Request from scrapy.crawler import CrawlerRunner from tests import mock from tests.spiders import FollowAllSpider, DelaySpider, SimpleSpid...
40.286245
103
0.676202
566494acdee128481d5770bf51f3c335ece9b5d1
2,058
py
Python
bot/exts/utils/bookmark.py
dhzdhd/Obsidian-Python
9ab047aeb96bf79f60f7c268c3252528cbb992a7
[ "MIT" ]
null
null
null
bot/exts/utils/bookmark.py
dhzdhd/Obsidian-Python
9ab047aeb96bf79f60f7c268c3252528cbb992a7
[ "MIT" ]
null
null
null
bot/exts/utils/bookmark.py
dhzdhd/Obsidian-Python
9ab047aeb96bf79f60f7c268c3252528cbb992a7
[ "MIT" ]
null
null
null
import datetime import discord from discord.ext import commands from bot.utils.embed import SuccessEmbed # Add embed support class Bookmark(commands.Cog): def __init__(self, bot: commands.Bot) -> None: self.bot = bot self._dict = {} @commands.Cog.listener() async def on_raw_reaction_add...
35.482759
91
0.633139
5bb6946987b63b884e909f8782b091741b5a5567
1,073
py
Python
tests/v2/test_relationship_to_role.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v2/test_relationship_to_role.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
tests/v2/test_relationship_to_role.py
MichaelTROEHLER/datadog-api-client-python
12c46626622fb1277bb1e172753b342c671348bd
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import absolute_import import sys import unittest im...
27.512821
108
0.746505
3966e2da2fc2c58724cecd98f3d12609bf25c843
1,269
py
Python
src/followbot/scripts/follower_color_filter.py
kaiodt/kaio_ros_ws
d9ee0edb97d16cf2a0a6074fecd049db7367a032
[ "BSD-2-Clause" ]
null
null
null
src/followbot/scripts/follower_color_filter.py
kaiodt/kaio_ros_ws
d9ee0edb97d16cf2a0a6074fecd049db7367a032
[ "BSD-2-Clause" ]
null
null
null
src/followbot/scripts/follower_color_filter.py
kaiodt/kaio_ros_ws
d9ee0edb97d16cf2a0a6074fecd049db7367a032
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python import rospy, cv2, cv_bridge, numpy from sensor_msgs.msg import Image class Follower: # Constructor def __init__(self): # Instantiate a CvBridge object self.bridge = cv_bridge.CvBridge() # Create a CV window cv2.namedWindow("window", 1) # Create a Subscriber to /camera/rgb/image_...
25.897959
87
0.723404
ee77237cfafda8535d47a90a63b3e73d28c5a59e
42
py
Python
demon/__main__.py
lapidshay/DEMON
c7eeeb22be279c9dd9a6555bae06702f369021ac
[ "BSD-2-Clause" ]
30
2017-02-24T08:56:57.000Z
2022-03-29T08:52:07.000Z
demon/__main__.py
KDDComplexNetworkAnalysis/DEMON
c32d80198a90c4d6c2165e34cffd79315aa764e7
[ "BSD-2-Clause" ]
139
2017-08-24T08:40:50.000Z
2022-03-24T01:42:47.000Z
demon/__main__.py
KDDComplexNetworkAnalysis/DEMON
c32d80198a90c4d6c2165e34cffd79315aa764e7
[ "BSD-2-Clause" ]
18
2016-06-08T21:39:46.000Z
2021-08-07T20:04:02.000Z
from demon.alg.Demon import main main()
8.4
32
0.738095
3aa823b76fbb9b08519de64730ed5b8cc52abe43
24,288
py
Python
radio/views.py
hayden-t/trunk-player
26e597afe5f967eed36ae31d2bf2297efcf58ab5
[ "MIT" ]
null
null
null
radio/views.py
hayden-t/trunk-player
26e597afe5f967eed36ae31d2bf2297efcf58ab5
[ "MIT" ]
null
null
null
radio/views.py
hayden-t/trunk-player
26e597afe5f967eed36ae31d2bf2297efcf58ab5
[ "MIT" ]
null
null
null
#import functools import ssl import sys import re import json import pytz from itertools import chain from django.shortcuts import render, redirect from django.http import Http404 from django.views.generic import ListView from django.db.models import Q from django.views.decorators.csrf import csrf_protect, csrf_exempt ...
35.77025
160
0.65905
0a22aec433b1b8addcebae728212cc6b36bb8f1c
688
py
Python
setup.py
parasKumarSahu/Knolml-Analysis-Package
40fd3589ce045fe662c0fb3869464fc906a7d3ce
[ "MIT" ]
null
null
null
setup.py
parasKumarSahu/Knolml-Analysis-Package
40fd3589ce045fe662c0fb3869464fc906a7d3ce
[ "MIT" ]
null
null
null
setup.py
parasKumarSahu/Knolml-Analysis-Package
40fd3589ce045fe662c0fb3869464fc906a7d3ce
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="kml-analysis-parasKumarSahu", version="0.1.1", author="Paras Kumar", author_email="paraskumardavhehal1@gmail.com", description="Wikipedia Analysis Toolkit", long_description=long_desc...
31.272727
68
0.681686
d42d1754a1a90dd23bf5fb5f9c37a26c9dda6e6c
1,935
py
Python
exercises/arduino_projects/plant_watering_system/data_plotter.py
aliaksandr-klimovich/sandbox
adab6b18f3d78a891c38609abc71b5d7a751919c
[ "Unlicense" ]
1
2020-12-25T18:21:18.000Z
2020-12-25T18:21:18.000Z
exercises/arduino_projects/plant_watering_system/data_plotter.py
aliaksandr-klimovich/sandbox
adab6b18f3d78a891c38609abc71b5d7a751919c
[ "Unlicense" ]
1
2021-02-11T15:05:59.000Z
2021-02-11T15:05:59.000Z
exercises/arduino_projects/plant_watering_system/data_plotter.py
aliaksandr-klimovich/sandbox
adab6b18f3d78a891c38609abc71b5d7a751919c
[ "Unlicense" ]
null
null
null
import os import webbrowser from collections import namedtuple from datetime import timedelta, datetime from threading import Thread from data_saver import DB from logger import get_logger PLOT_FILE_NAME = 'plot.svg' PLOT_SIZE = namedtuple('PLOT_SIZE', 'width,height')(width=800, height=600) PIPE_NAME = 'tmp_pipe' ROL...
25.460526
74
0.634625
6c4b4a52848185bdc10cda12f47c4907f59a0324
15,220
py
Python
eqa_nav/tools/train_im_room.py
sawravchy/MT-EQA
9a5483cc29ed6ee8d00590e28264743c6bcbe7ad
[ "BSD-3-Clause" ]
22
2019-06-10T22:50:39.000Z
2021-11-06T15:55:21.000Z
eqa_nav/tools/train_im_room.py
sawravchy/MT-EQA
9a5483cc29ed6ee8d00590e28264743c6bcbe7ad
[ "BSD-3-Clause" ]
1
2019-07-15T08:14:58.000Z
2019-07-18T07:26:20.000Z
eqa_nav/tools/train_im_room.py
sawravchy/MT-EQA
9a5483cc29ed6ee8d00590e28264743c6bcbe7ad
[ "BSD-3-Clause" ]
5
2019-06-10T23:37:13.000Z
2021-11-06T15:55:14.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import h5py import time import argparse import random import numpy as np import os, sys, json import os.path as o...
44.764706
137
0.693627
6db703564f019e77a5652dc6cc38b331bb877065
1,219
py
Python
examples/pipeline/src/gen-version-header.py
dan65prc/conduit
6f73416c8b5526a84a21415d5079bb2b61772144
[ "BSD-3-Clause" ]
5
2018-08-01T02:52:11.000Z
2020-09-19T08:12:07.000Z
examples/pipeline/src/gen-version-header.py
dan65prc/conduit
6f73416c8b5526a84a21415d5079bb2b61772144
[ "BSD-3-Clause" ]
null
null
null
examples/pipeline/src/gen-version-header.py
dan65prc/conduit
6f73416c8b5526a84a21415d5079bb2b61772144
[ "BSD-3-Clause" ]
1
2021-12-02T21:05:35.000Z
2021-12-02T21:05:35.000Z
#!/usr/bin/env python import sys import os import re import subprocess from pprint import pprint checkout_version = subprocess.Popen('git rev-parse HEAD', shell=True, stdout=subprocess.PIPE).stdout.read() checkout_diff = subprocess.Popen('git diff -w', shell=True, stdout=subprocess.PIPE).stdout.read()[:256...
32.945946
167
0.684988
5d3da0de37ce7616effa12dcef365c94ef6bdd6f
2,898
py
Python
model/model_ss.py
gicsaw/ConDo2
77bd4efdd5b6b72ac119f7ae9b217ef114476d21
[ "MIT" ]
null
null
null
model/model_ss.py
gicsaw/ConDo2
77bd4efdd5b6b72ac119f7ae9b217ef114476d21
[ "MIT" ]
null
null
null
model/model_ss.py
gicsaw/ConDo2
77bd4efdd5b6b72ac119f7ae9b217ef114476d21
[ "MIT" ]
null
null
null
#!/usr/bin/env python import torch import torch.nn as nn class ResidualBlock(nn.Module): def __init__(self, hidden_dim, kernel_size, dilation, bn_momentum): super(ResidualBlock, self).__init__() padding = (kernel_size - 1) * dilation // 2 hidden_dim2 = hidden_dim*2 self.conv1 = n...
34.5
74
0.534852
649eecdc665b8e745e7c0d92a5697b533cf4a141
1,692
py
Python
helpers.py
ririw/kaggle-bimbo-pymc3
fbf016751e2459b9fa6c8d058aad9c75fca57731
[ "MIT" ]
null
null
null
helpers.py
ririw/kaggle-bimbo-pymc3
fbf016751e2459b9fa6c8d058aad9c75fca57731
[ "MIT" ]
null
null
null
helpers.py
ririw/kaggle-bimbo-pymc3
fbf016751e2459b9fa6c8d058aad9c75fca57731
[ "MIT" ]
null
null
null
""" This script is intended to translate the data in `csv` format to `sqlite db` while fixing the field type and renaming the columns. The idea is to define some directives and let `odo` takes care of the rest ;-). The script will register the `train` and `test` data into tables with the same respective name. """ impor...
43.384615
132
0.677305
51d72e57aa3e0f2aa1920bf143dd3a56c427a5a8
1,298
py
Python
video_util.py
woo1/youtube-ffmpeg
bef663d34c9a51b4a93454d3a8137fbec08a0d16
[ "MIT" ]
null
null
null
video_util.py
woo1/youtube-ffmpeg
bef663d34c9a51b4a93454d3a8137fbec08a0d16
[ "MIT" ]
null
null
null
video_util.py
woo1/youtube-ffmpeg
bef663d34c9a51b4a93454d3a8137fbec08a0d16
[ "MIT" ]
null
null
null
import os import cv2 def mosaic(img, rect, mosaic_rate=15): x, y, xmax, ymax = rect # if x < 0: # xmax = xmax - x # x = 0 # if y < 0: # ymax = ymax - x # y = 0 if x < 0 or y < 0 or xmax < 0 or ymax < 0: return img w = xmax-x h = ymax-y face_img = img...
25.96
121
0.577042
53e9cf0fc42e46ed436d8dddb9e9b5efa9ee89bf
1,307
py
Python
releasetools.py
lihonglinglory/test
d38cb70ada6946abe711d5e5b8d3fac95d48ed9b
[ "FTL" ]
null
null
null
releasetools.py
lihonglinglory/test
d38cb70ada6946abe711d5e5b8d3fac95d48ed9b
[ "FTL" ]
null
null
null
releasetools.py
lihonglinglory/test
d38cb70ada6946abe711d5e5b8d3fac95d48ed9b
[ "FTL" ]
1
2019-04-27T05:20:48.000Z
2019-04-27T05:20:48.000Z
# Copyright (C) 2009 The Android Open Source Project # Copyright (c) 2011, The Linux Foundation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
35.324324
106
0.729916
3fa3191830bb8fdf61b47fb64cba18ddcc8f7324
6,128
py
Python
genericadmin/admin.py
whatisjasongoldstein/django-genericadmin
77b246890f3813fcc44f28ded7f4cb36aa261e65
[ "MIT" ]
null
null
null
genericadmin/admin.py
whatisjasongoldstein/django-genericadmin
77b246890f3813fcc44f28ded7f4cb36aa261e65
[ "MIT" ]
null
null
null
genericadmin/admin.py
whatisjasongoldstein/django-genericadmin
77b246890f3813fcc44f28ded7f4cb36aa261e65
[ "MIT" ]
null
null
null
import json from functools import update_wrapper from django.contrib import admin from django.conf.urls import url from django.conf import settings from django.contrib.contenttypes.admin import GenericTabularInline, GenericStackedInline from django.contrib.contenttypes.fields import GenericForeignKey from django.contr...
39.535484
106
0.616678
94f6d714c8aca6d43dca0eb4767f8d0b81d9b12d
9,007
py
Python
musicscore/musictree/treeinstruments.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
2
2020-06-22T13:33:28.000Z
2020-12-30T15:09:00.000Z
musicscore/musictree/treeinstruments.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
37
2020-02-18T12:15:00.000Z
2021-12-13T20:01:14.000Z
musicscore/musictree/treeinstruments.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
null
null
null
import uuid from musicscore.musictree.midi import G, D, A, E, C, MidiNote, Midi, B, F, midi_to_frequency, frequency_to_midi from musicscore.musictree.treeclef import TreeClef, TREBLE_CLEF, ALTO_CLEF, BASS_CLEF from musicscore.musicxml.types.complextypes.midiinstrument import ComplexTypeMidiInstrument from musicscore.m...
31.383275
111
0.597091
255c49363a15c3f3eb8e77eff2b8dcf39564880f
3,852
py
Python
open_spiel/python/egt/visualization_test.py
alexminnaar/open_spiel
c17a390f8a007ccc309f76cb0cfa29f06dc5d2c9
[ "Apache-2.0" ]
1
2019-12-19T01:51:03.000Z
2019-12-19T01:51:03.000Z
open_spiel/python/egt/visualization_test.py
alexminnaar/open_spiel
c17a390f8a007ccc309f76cb0cfa29f06dc5d2c9
[ "Apache-2.0" ]
null
null
null
open_spiel/python/egt/visualization_test.py
alexminnaar/open_spiel
c17a390f8a007ccc309f76cb0cfa29f06dc5d2c9
[ "Apache-2.0" ]
1
2020-12-25T03:02:31.000Z
2020-12-25T03:02:31.000Z
# Copyright 2019 DeepMind Technologies Ltd. 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 appl...
33.206897
79
0.722222
322ba076a735a23cbb55ce4e7f4d2ddf5097fbb5
45,724
py
Python
pyAudioAnalysis/audioSegmentation.py
elastic255/pyAudioAnalysis
90cf0ad36194ae73e6c3624a4a84bcbb9f8ed857
[ "Apache-2.0" ]
null
null
null
pyAudioAnalysis/audioSegmentation.py
elastic255/pyAudioAnalysis
90cf0ad36194ae73e6c3624a4a84bcbb9f8ed857
[ "Apache-2.0" ]
null
null
null
pyAudioAnalysis/audioSegmentation.py
elastic255/pyAudioAnalysis
90cf0ad36194ae73e6c3624a4a84bcbb9f8ed857
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import numpy import sklearn.cluster import scipy import os from pyAudioAnalysis import audioFeatureExtraction as aF from pyAudioAnalysis import audioTrainTest as aT from pyAudioAnalysis import audioBasicIO from scipy.spatial import distance import matplotlib.pyplot as plt import sk...
40.42794
203
0.587219
3db336886ae97fe4bdf97f98dbe18559bee8bc97
20,550
py
Python
flux_combined_high_binding/model_691.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_691.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_691.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.138889
798
0.804136
7fd87affb47a7320002a226362a75ebc201a96a5
2,347
py
Python
main.py
nikeee/poor-mans-floyd
77d429ffc662394c454c5b776022775958d22a14
[ "Unlicense" ]
null
null
null
main.py
nikeee/poor-mans-floyd
77d429ffc662394c454c5b776022775958d22a14
[ "Unlicense" ]
null
null
null
main.py
nikeee/poor-mans-floyd
77d429ffc662394c454c5b776022775958d22a14
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from typing import Optional class Node: value: int next: Optional['Node'] def __init__(self, value: int): self.value = value def __str__(self): return f'<{self.value}>' def advance(self) -> Optional['Node']: return self.next def advance_by_two...
25.236559
97
0.624627
88b4def2415c21032dcb9d41dd729f6f90094679
10,923
py
Python
libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py
tridge/uavcan_old
6dd432c9742c22e1dd1638c7f91cf937e4bdb2f1
[ "MIT" ]
null
null
null
libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py
tridge/uavcan_old
6dd432c9742c22e1dd1638c7f91cf937e4bdb2f1
[ "MIT" ]
null
null
null
libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py
tridge/uavcan_old
6dd432c9742c22e1dd1638c7f91cf937e4bdb2f1
[ "MIT" ]
null
null
null
# # UAVCAN DSDL compiler for libuavcan # # Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com> # ''' This module implements the core functionality of the UAVCAN DSDL compiler for libuavcan. Supported Python versions: 3.2+, 2.7. It accepts a list of root namespaces and produces the set of C++ header files for ...
38.059233
117
0.639568
bbed86d03a3eb78165bf4d4950688e61dc8b5dcf
3,056
py
Python
kuri_objects_mapping/scripts/objects_mapping.py
kucars/kuri_mbzirc_challenge_3
9942aae773eb4d32971b43223e4fea1554c1c8c8
[ "BSD-3-Clause" ]
4
2019-03-02T12:55:51.000Z
2019-07-23T08:45:17.000Z
kuri_objects_mapping/scripts/objects_mapping.py
kucars/kuri_mbzirc_challenge_3
9942aae773eb4d32971b43223e4fea1554c1c8c8
[ "BSD-3-Clause" ]
2
2019-07-23T08:40:18.000Z
2019-07-23T13:22:18.000Z
kuri_objects_mapping/scripts/objects_mapping.py
kucars/kuri_mbzirc_challenge_3
9942aae773eb4d32971b43223e4fea1554c1c8c8
[ "BSD-3-Clause" ]
2
2018-06-08T01:40:13.000Z
2019-07-23T11:24:22.000Z
#! /usr/bin/env python #Copyright (c) 2016, Buti Al Delail #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 ...
40.210526
84
0.737565
7240a9e72ee2d0e19528397ff80a5fbf07f69619
5,420
py
Python
features/eolearn/tests/test_radiometric_normalization.py
chorng/eo-learn
a1a3c6fa5568d398f5e43f5ad5aecdfeb05e8d3c
[ "MIT" ]
null
null
null
features/eolearn/tests/test_radiometric_normalization.py
chorng/eo-learn
a1a3c6fa5568d398f5e43f5ad5aecdfeb05e8d3c
[ "MIT" ]
null
null
null
features/eolearn/tests/test_radiometric_normalization.py
chorng/eo-learn
a1a3c6fa5568d398f5e43f5ad5aecdfeb05e8d3c
[ "MIT" ]
null
null
null
""" Credits: Copyright (c) 2018-2019 Johannes Schmid (GeoVille) Copyright (c) 2017-2022 Matej Aleksandrov, Matic Lubej, Devis Peressutti, Žiga Lukšič (Sinergise) This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ from datetime import datetime imp...
30.971429
118
0.569557
f6daec85fffe1ba9b290ed0c873b2ee245a7a6ef
2,846
py
Python
torchsr/datasets/reds.py
mgm52/torchSR
7d9fb3f2f95b58fa3bb0e9ab00dec4c1a2265ac2
[ "MIT" ]
73
2021-04-24T20:50:47.000Z
2022-03-30T09:36:35.000Z
torchsr/datasets/reds.py
DefTruth/torchSR
115c9177cfbe170524e281fc1c2f82af3349bb6a
[ "MIT" ]
7
2021-05-18T09:57:43.000Z
2022-03-21T09:02:09.000Z
torchsr/datasets/reds.py
DefTruth/torchSR
115c9177cfbe170524e281fc1c2f82af3349bb6a
[ "MIT" ]
7
2021-04-26T23:12:42.000Z
2022-03-04T22:50:50.000Z
import os from typing import Callable, List, Optional, Tuple, Union from .common import FolderByDir, pil_loader class REDS(FolderByDir): """`REDS <https://seungjunnah.github.io/Datasets/reds>` Superresolution Dataset Args: root (string): Root directory for the dataset. scale (int, optional):...
47.433333
93
0.587491
5992050ca04656ac4747d4061661f90452004628
2,173
py
Python
ibis/backends/pandas/tests/execution/test_structs.py
matthewmturner/ibis
9360bf9878e78c06cadd6733abd04bf98ee0a090
[ "Apache-2.0" ]
null
null
null
ibis/backends/pandas/tests/execution/test_structs.py
matthewmturner/ibis
9360bf9878e78c06cadd6733abd04bf98ee0a090
[ "Apache-2.0" ]
null
null
null
ibis/backends/pandas/tests/execution/test_structs.py
matthewmturner/ibis
9360bf9878e78c06cadd6733abd04bf98ee0a090
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict import pandas as pd import pandas.util.testing as tm import pytest import ibis import ibis.expr.datatypes as dt from ... import connect, execute @pytest.fixture(scope="module") def value(): return OrderedDict([("fruit", "pear"), ("weight", 0)]) @pytest.fixture(scope="modul...
25.267442
79
0.599632
d387b82fad2600089705a20bc3763b97bad8dd17
5,947
py
Python
Projects/3_Adversarial Search/my_custom_player.py
kdcarlsen/artificial-intelligence
6124dcc5c2caa6b4284dd287a75714cc2b52b0c1
[ "MIT" ]
null
null
null
Projects/3_Adversarial Search/my_custom_player.py
kdcarlsen/artificial-intelligence
6124dcc5c2caa6b4284dd287a75714cc2b52b0c1
[ "MIT" ]
null
null
null
Projects/3_Adversarial Search/my_custom_player.py
kdcarlsen/artificial-intelligence
6124dcc5c2caa6b4284dd287a75714cc2b52b0c1
[ "MIT" ]
null
null
null
from sample_players import DataPlayer # from algorithms import algorithms # from evaluationFuncs import evaluationFuncs _WIDTH = 11 _HEIGHT = 9 _SIZE = (_WIDTH + 2) * _HEIGHT - 2 class CustomPlayer(DataPlayer): """ Implement your own agent to play knight's Isolation The get_action() method is the only requi...
41.880282
117
0.624685
a6c25e1b5039c978603c7e689d1cf937f52c7e91
1,631
py
Python
plugins/vmray/komand_vmray/actions/submit_file/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/vmray/komand_vmray/actions/submit_file/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/vmray/komand_vmray/actions/submit_file/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import komand from .schema import SubmitFileInput, SubmitFileOutput # Custom imports below import base64 class SubmitFile(komand.Action): def __init__(self): super(self.__class__, self).__init__( name="submit_file", description="Submit file for analysis", input=Submit...
39.780488
116
0.646229
54eee5cd28339664107001236657aab8deb34e50
3,455
py
Python
optimisation_studies/overvoltage/5_plot_performance.py
sstcam/sstcam-simulation
3fb67ba64329c201d3995971e5f377c5ec71b18e
[ "BSD-3-Clause" ]
1
2019-12-23T23:26:36.000Z
2019-12-23T23:26:36.000Z
optimisation_studies/overvoltage/5_plot_performance.py
cta-chec/sstCASSIM
75bb863675991f1a36b7d430f9253ae09416f33e
[ "BSD-3-Clause" ]
6
2020-09-18T10:59:41.000Z
2022-03-15T11:01:49.000Z
optimisation_studies/overvoltage/5_plot_performance.py
cta-chec/sstCASSIM
75bb863675991f1a36b7d430f9253ae09416f33e
[ "BSD-3-Clause" ]
2
2020-04-14T08:01:01.000Z
2021-11-30T12:11:17.000Z
import numpy as np import pandas as pd from CHECLabPy.plotting.setup import Plotter from CHECLabPy.plotting.resolutions import ChargeResolutionPlotter from scipy.interpolate import RegularGridInterpolator from IPython import embed # Requirements CRREQ_2PE = ChargeResolutionPlotter.requirement(np.array([2]))[0] CRREQ_2...
35.989583
91
0.678726
184269e428d5bb9b19887e50f34f9af0b34a9510
621
py
Python
d2go/modeling/modeldef/fbnet_modeldef_registry.py
wenliangzhao2018/d2go
a9dce74e5caf4c2260371a1abb603e3d5f14d763
[ "Apache-2.0" ]
687
2021-03-03T07:50:15.000Z
2022-03-25T19:31:57.000Z
d2go/modeling/modeldef/fbnet_modeldef_registry.py
wenliangzhao2018/d2go
a9dce74e5caf4c2260371a1abb603e3d5f14d763
[ "Apache-2.0" ]
193
2021-03-03T17:15:57.000Z
2022-03-31T03:13:47.000Z
d2go/modeling/modeldef/fbnet_modeldef_registry.py
wenliangzhao2018/d2go
a9dce74e5caf4c2260371a1abb603e3d5f14d763
[ "Apache-2.0" ]
90
2021-03-03T16:08:36.000Z
2022-03-30T23:42:19.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import copy class FBNetV2ModelArch(object): _MODEL_ARCH = {} @staticmethod def add(name, arch): assert ( name not in FBNetV2ModelArch._MODEL_ARCH ), "Arch name '{}' is already exist...
23.884615
70
0.652174
f2821019a7cb7b0da8792e13299db6d724cb7e6e
757
py
Python
test_app.py
hypervectorio/ci-for-data-science-tutorial
8d8fb52ef5bbd13f5e5f9f6f77056f95fbeb8674
[ "MIT" ]
2
2021-08-31T14:34:24.000Z
2021-11-12T09:14:11.000Z
test_app.py
hypervectorio/ci-for-data-science-tutorial
8d8fb52ef5bbd13f5e5f9f6f77056f95fbeb8674
[ "MIT" ]
2
2021-06-08T13:29:22.000Z
2021-07-07T13:02:20.000Z
test_app.py
hypervectorio/ci-for-data-science-tutorial
8d8fb52ef5bbd13f5e5f9f6f77056f95fbeb8674
[ "MIT" ]
1
2021-08-31T14:34:29.000Z
2021-08-31T14:34:29.000Z
import hypervector import pytest from app import get_prediction hypervector.API_KEY = "YOUR_API_KEY" @pytest.fixture def hypervector_fixture(): definition = hypervector.Definition.get("YOUR_DEFINITION_UUID") ensemble = definition.ensembles[0] hypervectors = ensemble.hypervectors() benchmark = ensemb...
25.233333
67
0.754293
370a47dcb0753f25224f60bedb244fcb21d0553a
273
py
Python
src/quanguru/extensions/__init__.py
AngsarM/QuanGuru
5db6105f843bbc78c2d5b1547e32d494fbe10b8d
[ "BSD-3-Clause" ]
9
2021-05-23T06:30:45.000Z
2021-12-27T13:33:54.000Z
src/quanguru/extensions/__init__.py
cahitkargi/QuanGuru
9b5c94465cd58bc32f6ff845f29dfdec7e0f9075
[ "BSD-3-Clause" ]
26
2022-03-18T02:40:54.000Z
2022-03-25T07:00:25.000Z
src/quanguru/extensions/__init__.py
cahitkargi/QuanGuru
9b5c94465cd58bc32f6ff845f29dfdec7e0f9075
[ "BSD-3-Clause" ]
5
2021-05-23T06:30:24.000Z
2022-02-04T02:40:08.000Z
r""" Contains certain extensions, such as saving methods. .. currentmodule:: quanguru.extensions Modules ------- .. autosummary:: saveReadCSV _helpers """ from ._helpers import * from .saveReadH5 import * from .saveReadCSV import *
15.166667
56
0.630037
8c9ea19996ef2989fbc8f3a1e8074ddf67a8b6d9
8,480
py
Python
fab/depends.py
zhester/fab
a453e6f02092af11848693137a45d975c7c4dca4
[ "BSD-2-Clause" ]
null
null
null
fab/depends.py
zhester/fab
a453e6f02092af11848693137a45d975c7c4dca4
[ "BSD-2-Clause" ]
null
null
null
fab/depends.py
zhester/fab
a453e6f02092af11848693137a45d975c7c4dca4
[ "BSD-2-Clause" ]
null
null
null
#============================================================================= # # Dependency Discovery Tool # #============================================================================= """ Dependency Discovery Tool ========================= Allows programs to determine dependency chains based on project-specific...
28.843537
78
0.505425
04108873a40aa7e8ea1c9710a18ab1de40f44f67
644
py
Python
disco/extensions/upgrade_simulation/upgrade_inputs.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
2
2022-03-11T20:04:34.000Z
2022-03-14T22:25:29.000Z
disco/extensions/upgrade_simulation/upgrade_inputs.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
4
2022-03-11T17:48:50.000Z
2022-03-17T21:39:47.000Z
disco/extensions/upgrade_simulation/upgrade_inputs.py
NREL/disco
19afa1c397c6c24e37222f6cbf027eb88833beda
[ "BSD-3-Clause" ]
null
null
null
import os from jade.utils.utils import load_data from disco.distribution.distribution_inputs import DistributionInputs from disco.extensions.upgrade_simulation.upgrade_parameters import UpgradeParameters class UpgradeInputs(DistributionInputs): def __init__(self, base_directory): super().__init__(b...
30.666667
84
0.726708
9d3c6120bbb57c741faa7b645dc3bd84ba58e98c
2,101
py
Python
tests/run_sanity_checks.py
alvarobartt/serving-tensorflow-models
e70a4ea191cf5e888277b8bb72f3934931e270c8
[ "MIT" ]
42
2021-02-14T18:52:25.000Z
2022-02-08T16:04:09.000Z
tests/run_sanity_checks.py
alvarobartt/serving-tensorflow-models
e70a4ea191cf5e888277b8bb72f3934931e270c8
[ "MIT" ]
1
2022-01-25T10:52:40.000Z
2022-01-25T11:04:24.000Z
tests/run_sanity_checks.py
alvarobartt/serving-tensorflow-models
e70a4ea191cf5e888277b8bb72f3934931e270c8
[ "MIT" ]
9
2021-03-08T16:16:59.000Z
2022-02-26T17:38:26.000Z
# Copyright 2021 Alvaro Bartolome, alvarobartt @ GitHub # See LICENSE for details. import tensorflow as tf from tensorflow.keras.preprocessing.image import ImageDataGenerator import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns # Mapping of ids to labels (The Simpsons charac...
36.224138
107
0.713946
22f9d667725e3c09af5c57744206ffc1923d44f4
1,553
py
Python
walle/config/settings.py
flying1020/walle-web
c7655a3a258c05dbcb3ba362780864b7d4bc221c
[ "Apache-2.0" ]
null
null
null
walle/config/settings.py
flying1020/walle-web
c7655a3a258c05dbcb3ba362780864b7d4bc221c
[ "Apache-2.0" ]
null
null
null
walle/config/settings.py
flying1020/walle-web
c7655a3a258c05dbcb3ba362780864b7d4bc221c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Application configuration.""" import os from datetime import timedelta class Config(object): """Base configuration.""" VERSION = '2.0.0' SECRET_KEY = os.environ.get('WALLE_SECRET', 'secret-key') APP_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) ...
28.236364
81
0.676755
7d6fb64f97c29064d4daa2ab8f3596281ece8aa1
2,572
py
Python
app/old/former_init.py
SimonSkade/labplaner
5ca73237713faa0d423374fdcf0bf1185ebc11f8
[ "Apache-2.0" ]
1
2021-06-06T17:56:44.000Z
2021-06-06T17:56:44.000Z
app/old/former_init.py
SimonSkade/labplaner
5ca73237713faa0d423374fdcf0bf1185ebc11f8
[ "Apache-2.0" ]
null
null
null
app/old/former_init.py
SimonSkade/labplaner
5ca73237713faa0d423374fdcf0bf1185ebc11f8
[ "Apache-2.0" ]
null
null
null
import os from flask import Flask, render_template, request, redirect, url_for, flash, g from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_marshmallow import Marshmallow from werkzeug.exceptions import NotFound app = Flask(__name__) config = os.environ.get('LAB_CONFIG', default='co...
30.987952
78
0.726672
0f261fc0e6326e61e6c0a48cea07527f041c307b
13,961
py
Python
cryptography/stream_cipher.py
Ale-Cas/MasterDataAnalytics
fcbdbbb534c97c9796231e4b20747988bcdeced8
[ "MIT" ]
null
null
null
cryptography/stream_cipher.py
Ale-Cas/MasterDataAnalytics
fcbdbbb534c97c9796231e4b20747988bcdeced8
[ "MIT" ]
null
null
null
cryptography/stream_cipher.py
Ale-Cas/MasterDataAnalytics
fcbdbbb534c97c9796231e4b20747988bcdeced8
[ "MIT" ]
null
null
null
""" @author: Alessio Castrica @date: 22/02/2022 Implementazione in python del cifrario A5/1. Ho seguito il paper https://www.rocq.inria.fr/secret/Anne.Canteaut/encyclopedia.pdf senza implementare nè la fase di warm-up nè i clock irregolari. Il keystream è generato facendo lo XOR tra il key bit e i feedback bit dei ...
34.728856
109
0.601461
5612ed503513f0f00da0327e7ab1ccb23a16aa99
7,063
py
Python
app/api_1_0/users.py
ToonoW/flashy
565f5348be8f7f7369346be06ed64e2c4f403a1d
[ "MIT" ]
null
null
null
app/api_1_0/users.py
ToonoW/flashy
565f5348be8f7f7369346be06ed64e2c4f403a1d
[ "MIT" ]
null
null
null
app/api_1_0/users.py
ToonoW/flashy
565f5348be8f7f7369346be06ed64e2c4f403a1d
[ "MIT" ]
null
null
null
from flask import jsonify, request, current_app, url_for from flask.ext.login import current_user, login_required from .decorators import permission_required from . import api from ..models import User, Post, Permission from .. import db from .authentication import verify_password @api.route('/users/<int:id>') def ge...
28.479839
78
0.5778
8218ba54c46df3f37419aa6fc32e6ae83c5dc62d
3,257
py
Python
scripts/data_congress_legislators.py
aclu-national/elections-api
8af28a2dcc9507004f28e8ec98aa9e9fee566eaa
[ "MIT" ]
28
2018-11-14T21:07:10.000Z
2022-03-09T04:55:30.000Z
scripts/data_congress_legislators.py
aclu-national/elections-api
8af28a2dcc9507004f28e8ec98aa9e9fee566eaa
[ "MIT" ]
31
2019-01-24T20:57:18.000Z
2021-12-08T15:20:44.000Z
scripts/data_congress_legislators.py
aclu-national/elections-api
8af28a2dcc9507004f28e8ec98aa9e9fee566eaa
[ "MIT" ]
3
2019-04-19T15:39:19.000Z
2021-09-17T23:39:58.000Z
#!/bin/env python import os, re, sys, yaml, json, unicodedata import data_index script = os.path.realpath(sys.argv[0]) scripts_dir = os.path.dirname(script) root_dir = os.path.dirname(scripts_dir) # Build lookup of existing legislators to avoid duplicate records existing_legislator_lookup = {} index = data_index.get...
29.342342
88
0.706171
be11ed0f98b8eb0dbef70620ff48369e9cafc4f5
888
py
Python
carts/migrations/0001_initial.py
RafaAlkhamry2020/django
f7a5b7c34890e08d753dc0dba0aaf85d06c7cc0b
[ "MIT" ]
null
null
null
carts/migrations/0001_initial.py
RafaAlkhamry2020/django
f7a5b7c34890e08d753dc0dba0aaf85d06c7cc0b
[ "MIT" ]
8
2021-03-30T13:48:27.000Z
2022-03-12T00:40:39.000Z
carts/migrations/0001_initial.py
RafaAlkhamry2020/django
f7a5b7c34890e08d753dc0dba0aaf85d06c7cc0b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-07-16 18:48 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('prod...
31.714286
142
0.638514
fb1186aacea091b10139be4a9662cdaa45a024d7
11,246
py
Python
diofant/tensor/array/ndim_array.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
diofant/tensor/array/ndim_array.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
diofant/tensor/array/ndim_array.py
diofant/omg
72fd45f832240d1ded6f0a411e97bb9f7aa9f1d2
[ "BSD-3-Clause" ]
null
null
null
import collections from ...core import Expr, Integer from ...core.sympify import sympify from ...logic import true from ...matrices import MatrixBase from ...printing.defaults import DefaultPrinting from ..indexed import Indexed class NDimArray(DefaultPrinting): """N-dim array. Examples ======== Cr...
28.984536
141
0.533256
bd75dfe22ca10f655ffde16866d4f2c3b12b6e9f
489
py
Python
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_version.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
1
2022-02-18T01:17:27.000Z
2022-02-18T01:17:27.000Z
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_version.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
null
null
null
sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/_version.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.9
94
0.529652
cdfa51015480acd661f3e2524e13710458207bb8
5,860
py
Python
homeassistant/components/mqtt/lock.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
1
2021-03-23T07:20:03.000Z
2021-03-23T07:20:03.000Z
homeassistant/components/mqtt/lock.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
60
2020-08-03T07:32:56.000Z
2022-03-31T06:02:07.000Z
homeassistant/components/mqtt/lock.py
edofullin/core
106dc4d28ad59cb192c60fc7a354cafa86899ea4
[ "Apache-2.0" ]
4
2017-01-10T04:17:33.000Z
2021-09-02T16:37:24.000Z
"""Support for MQTT locks.""" import functools import voluptuous as vol from homeassistant.components import lock from homeassistant.components.lock import LockEntity from homeassistant.const import CONF_NAME, CONF_OPTIMISTIC, CONF_VALUE_TEMPLATE from homeassistant.core import callback import homeassistant.helpers.co...
33.485714
88
0.66843
6a43438b1488464f970c2766390391cf27ee0bc1
15,212
py
Python
neutron/services/metering/drivers/iptables/iptables_driver.py
NeCTAR-RC/neutron
acf78cc3c88aff638180819419a65145a9a79695
[ "Apache-2.0" ]
5
2015-10-20T07:56:53.000Z
2017-12-31T22:39:15.000Z
neutron/services/metering/drivers/iptables/iptables_driver.py
NeCTAR-RC/neutron
acf78cc3c88aff638180819419a65145a9a79695
[ "Apache-2.0" ]
null
null
null
neutron/services/metering/drivers/iptables/iptables_driver.py
NeCTAR-RC/neutron
acf78cc3c88aff638180819419a65145a9a79695
[ "Apache-2.0" ]
3
2015-05-08T22:36:28.000Z
2015-10-24T21:25:35.000Z
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
41.002695
79
0.522548
6f470000566de2292d447debe0a81c004c319943
548
py
Python
Kraven/urls.py
nhaines/Kraven
3bfc091aefe8d00a91f5b993b25e7d6329db4aa2
[ "Apache-2.0" ]
null
null
null
Kraven/urls.py
nhaines/Kraven
3bfc091aefe8d00a91f5b993b25e7d6329db4aa2
[ "Apache-2.0" ]
null
null
null
Kraven/urls.py
nhaines/Kraven
3bfc091aefe8d00a91f5b993b25e7d6329db4aa2
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'Kraven.views.home', name='home'), # url(r'^Kraven/', include('Kraven.foo.urls')), # Uncomm...
30.444444
71
0.686131
1d1f1e3bf9aa2fc994be565b206ec315d675dab9
3,640
py
Python
detectron2/modeling/backbone/vgg16.py
mbsariyildiz/detectron2
1353101f05349c2b54079e896e88cb05ab939475
[ "Apache-2.0" ]
4
2019-12-19T06:30:20.000Z
2022-03-09T10:08:32.000Z
detectron2/modeling/backbone/vgg16.py
mbsariyildiz/detectron2
1353101f05349c2b54079e896e88cb05ab939475
[ "Apache-2.0" ]
null
null
null
detectron2/modeling/backbone/vgg16.py
mbsariyildiz/detectron2
1353101f05349c2b54079e896e88cb05ab939475
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import torch import torch.nn as nn import math from .backbone import Backbone from .build import BACKBONE_REGISTRY from detectr...
32.212389
99
0.583242
2bceeff51e2d74c6a189803f27b3089aa587ffbc
4,685
py
Python
otp/chat/ChatInputTyped.py
MasterLoopyBM/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
1
2020-02-07T18:15:12.000Z
2020-02-07T18:15:12.000Z
otp/chat/ChatInputTyped.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
null
null
null
otp/chat/ChatInputTyped.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
2
2020-11-08T03:38:35.000Z
2021-09-02T07:03:47.000Z
from direct.gui.DirectGui import * from direct.showbase import DirectObject from pandac.PandaModules import * import sys from otp.otpbase import OTPGlobals from otp.otpbase import OTPLocalizer from toontown.chat.ChatGlobals import * class ChatInputTyped(DirectObject.DirectObject): def __init__(self, mainEntry = ...
32.762238
93
0.60683
6dd6b99ca3f23dab3041fbd0d9fe8d62084390f0
911
py
Python
python_pipe_test.py
darth-cheney/jtf-lib
8430e6590c30db67c157159be016d6972121de26
[ "MIT" ]
null
null
null
python_pipe_test.py
darth-cheney/jtf-lib
8430e6590c30db67c157159be016d6972121de26
[ "MIT" ]
null
null
null
python_pipe_test.py
darth-cheney/jtf-lib
8430e6590c30db67c157159be016d6972121de26
[ "MIT" ]
null
null
null
import subprocess, sys, asyncio, requests, json if 'win32' in sys.platform: # Windows specific event-loop policy & cmd asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy()) async def command(): ''' ''' command = ['jtf', 'get', 'cdli', '-p', 'import.txt'] #command = ['jtf', 'get', 'cd...
26.028571
75
0.641054
c01d09f141c95d2d673f6778836456ebec075f3f
8,772
py
Python
storyscript/ErrorCodes.py
marqov/storyscript
4b99ff904305109cfb4310cb504127e2649ba44a
[ "MIT" ]
null
null
null
storyscript/ErrorCodes.py
marqov/storyscript
4b99ff904305109cfb4310cb504127e2649ba44a
[ "MIT" ]
null
null
null
storyscript/ErrorCodes.py
marqov/storyscript
4b99ff904305109cfb4310cb504127e2649ba44a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class ErrorCodes: unidentified_error = ('E0001', '') service_name = ('E0002', "A service name can't contain `.`") arguments_noservice = ('E0003', 'You have defined an argument, but not a service') return_outside = ('E0004', '`return` is allowed only ...
43
79
0.614569
ed9cf9f6c28123b6378673d088d26f4a71fee268
1,664
py
Python
tests/reducers/test_class_weighted_reducer.py
kvzhao/pytorch-metric-learning
9c8a94bd1a906317d5834f26d8a94e59d578b825
[ "MIT" ]
2
2020-08-11T03:42:15.000Z
2022-01-11T07:25:30.000Z
tests/reducers/test_class_weighted_reducer.py
FadouaKhm/pytorch-metric-learning
9eb792bcfc1616b599e6ee457514e3cb3a7235dd
[ "MIT" ]
null
null
null
tests/reducers/test_class_weighted_reducer.py
FadouaKhm/pytorch-metric-learning
9eb792bcfc1616b599e6ee457514e3cb3a7235dd
[ "MIT" ]
1
2021-03-15T04:24:52.000Z
2021-03-15T04:24:52.000Z
import unittest import torch from pytorch_metric_learning.reducers import ClassWeightedReducer class TestClassWeightedReducer(unittest.TestCase): def test_class_weighted_reducer(self): class_weights = torch.tensor([1, 0.9, 1, 0.1, 0, 0, 0, 0, 0, 0]) reducer = ClassWeightedReducer(class_weights) ...
50.424242
109
0.594351
c93c51d35d5b8ddd26ad70d489a459583c331a74
88,234
py
Python
statsmodels/tsa/regime_switching/markov_switching.py
larsoner/statsmodels
e0b772ed95880e58fd0c089c04ab01eb393c2485
[ "BSD-3-Clause" ]
1
2017-11-13T17:13:04.000Z
2017-11-13T17:13:04.000Z
statsmodels/tsa/regime_switching/markov_switching.py
bert9bert/statsmodels
898ddfc483c45bb0f8e5156dd8506abda84c9b63
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/regime_switching/markov_switching.py
bert9bert/statsmodels
898ddfc483c45bb0f8e5156dd8506abda84c9b63
[ "BSD-3-Clause" ]
2
2018-05-22T11:32:30.000Z
2018-11-17T13:58:01.000Z
""" Markov switching models Author: Chad Fulton License: BSD-3 """ from __future__ import division, absolute_import, print_function import warnings import numpy as np import pandas as pd from statsmodels.compat.collections import OrderedDict from scipy.misc import logsumexp from statsmodels.base.data import PandasD...
38.530131
79
0.607725
7cd77f5505bcc4d14b703fb11fb347a93ad28fc4
1,544
py
Python
ejabberd/tests/namecoding.py
ismailqau/xid
e084f04b23c17ad0afc073f1d5ed72d236109832
[ "MIT" ]
9
2019-02-14T15:21:55.000Z
2021-11-09T17:06:58.000Z
ejabberd/tests/namecoding.py
ismailqau/xid
e084f04b23c17ad0afc073f1d5ed72d236109832
[ "MIT" ]
5
2019-02-27T16:10:37.000Z
2020-04-19T10:07:21.000Z
ejabberd/tests/namecoding.py
ismailqau/xid
e084f04b23c17ad0afc073f1d5ed72d236109832
[ "MIT" ]
5
2020-05-01T13:47:02.000Z
2022-02-17T18:08:45.000Z
#!/usr/bin/env python3 # coding=utf-8 # Copyright (C) 2019-2020 The Xaya developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from xidauth import EjabberdXidAuth import logging import sys import unittest class NameCoding...
26.169492
79
0.630181
7e55416b86182567f1c0e9a6a9eb0d4bc9ce326b
2,182
py
Python
zolware_data/models/datasource.py
zolware/zolware_data
5d3e5d654e1282c04225e07ec7897a1d54fe7bb5
[ "MIT" ]
null
null
null
zolware_data/models/datasource.py
zolware/zolware_data
5d3e5d654e1282c04225e07ec7897a1d54fe7bb5
[ "MIT" ]
null
null
null
zolware_data/models/datasource.py
zolware/zolware_data
5d3e5d654e1282c04225e07ec7897a1d54fe7bb5
[ "MIT" ]
null
null
null
import requests import json from bson.objectid import ObjectId from zolware_data import signal_manager from zolware_data.models import signal from zolware_data import config class Datasource: def __init__(self, user, datasource=None): self.signals = [] self.user = user if datasource is n...
32.567164
74
0.609533
8b7101aefe16d5a9593e362e0821775afeb917bf
4,855
py
Python
code/apps/Managed Software Center/Managed Software Center/MSCBadgedTemplateImage.py
dannooooo/munki
3c7cc64a0659e2d5def8dd455a89dd3edf67cfd9
[ "Apache-2.0" ]
1
2018-07-25T21:29:43.000Z
2018-07-25T21:29:43.000Z
code/apps/Managed Software Center/Managed Software Center/MSCBadgedTemplateImage.py
bruienne/munki
55936d96ed2f45ede1469873836d61596486020a
[ "Apache-2.0" ]
null
null
null
code/apps/Managed Software Center/Managed Software Center/MSCBadgedTemplateImage.py
bruienne/munki
55936d96ed2f45ede1469873836d61596486020a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # # MSCBadgedTemplateImage.py # Managed Software Center # # Copyright 2014-2016 Greg Neagle. # # 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/...
44.541284
90
0.657673
6d3c24f99d3cca6ed0c708c1fd6d820f29a031cf
2,171
py
Python
architecture/face/dcgan.py
kad99kev/FGTD-Streamlit
0dc8d2894eadf2260d5e5dcf10ead12ff62f6cd8
[ "MIT" ]
null
null
null
architecture/face/dcgan.py
kad99kev/FGTD-Streamlit
0dc8d2894eadf2260d5e5dcf10ead12ff62f6cd8
[ "MIT" ]
null
null
null
architecture/face/dcgan.py
kad99kev/FGTD-Streamlit
0dc8d2894eadf2260d5e5dcf10ead12ff62f6cd8
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class DCGAN(nn.Module): def __init__( self, noise_size=100, feature_size=128, num_channels=3, embedding_size=768, reduced_dim_size=256, ): super(DCGAN, self).__init__() self.reduced_dim_size = reduced_dim_size ...
37.431034
88
0.578075
956052869a0dfcbc18fed41bc11fed1b53dae2a6
4,645
py
Python
tests/github/python_native_tf.py
brandon-edwards/openfl
9e0521252253eab09571dc2be40f46bfeaf9746a
[ "Apache-2.0" ]
297
2021-01-13T08:49:35.000Z
2022-03-31T15:06:43.000Z
tests/github/python_native_tf.py
brandon-edwards/openfl
9e0521252253eab09571dc2be40f46bfeaf9746a
[ "Apache-2.0" ]
265
2021-02-02T09:57:33.000Z
2022-03-30T22:51:55.000Z
tests/github/python_native_tf.py
brandon-edwards/openfl
9e0521252253eab09571dc2be40f46bfeaf9746a
[ "Apache-2.0" ]
81
2021-01-18T07:52:36.000Z
2022-03-26T18:55:54.000Z
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """Python native tests.""" import numpy as np import openfl.native as fx def one_hot(labels, classes): """ One Hot encode a vector. Args: labels (list): List of labels to onehot encode classes (int): Tot...
32.943262
97
0.654252
46741dc98d35375c8a1d01fc15147ebfd6d18d27
3,948
py
Python
high_performance_pyspark/bad_pyspark.py
fouradam/high-performance-spark-examples
877234d402b7a78c312c481985f57fb285a5ac8b
[ "Apache-2.0" ]
504
2015-10-06T16:42:42.000Z
2022-02-01T02:56:52.000Z
high_performance_pyspark/bad_pyspark.py
pengshuangbao/high-performance-spark-examples
aa835d8cad02befe440a24f802eac5469bb40bbb
[ "Apache-2.0" ]
53
2015-12-21T21:58:16.000Z
2021-04-02T14:05:37.000Z
high_performance_pyspark/bad_pyspark.py
pengshuangbao/high-performance-spark-examples
aa835d8cad02befe440a24f802eac5469bb40bbb
[ "Apache-2.0" ]
232
2015-10-06T04:23:13.000Z
2022-03-25T16:48:41.000Z
# This script triggers a number of different PySpark errors from pyspark import * from pyspark.sql.session import SparkSession global sc def nonExistentInput(sc): """ Attempt to load non existent input >>> nonExistentInput(sc) Traceback (most recent call last): ... Py4JJavaError:... "...
23.927273
100
0.604357
0bf3ba75b24671016890cb5f061ad313534cc798
26,392
py
Python
lib/translations.py
alindt/wttr.in
f8e7aef267c720dec0303c8e31091815f8e51a40
[ "Apache-2.0" ]
null
null
null
lib/translations.py
alindt/wttr.in
f8e7aef267c720dec0303c8e31091815f8e51a40
[ "Apache-2.0" ]
null
null
null
lib/translations.py
alindt/wttr.in
f8e7aef267c720dec0303c8e31091815f8e51a40
[ "Apache-2.0" ]
null
null
null
# vim: fileencoding=utf-8 """ Translation of almost everything. """ FULL_TRANSLATION = [ "af", "da", "de", "fr", "fa", "id", "it", "nb", "nl", "pl", "ru", ] PARTIAL_TRANSLATION = [ "az", "be", "bg", "bs", "ca", "cy", "cs", "el", "eo", "es", "et", "fi", "hi", "hr", "hu", "hy", "is", "ja", "jv", "k...
49.515947
236
0.634624
432ba9f657cddc6e961d3399b5cf1c28eb5ad8e4
4,176
py
Python
render/BitcoinTradingGraph.py
skywalker0803r/Bitcoin-Trader-RL
e6b72d58dd773d9a775a580d6a35051ef8da513e
[ "MIT" ]
null
null
null
render/BitcoinTradingGraph.py
skywalker0803r/Bitcoin-Trader-RL
e6b72d58dd773d9a775a580d6a35051ef8da513e
[ "MIT" ]
null
null
null
render/BitcoinTradingGraph.py
skywalker0803r/Bitcoin-Trader-RL
e6b72d58dd773d9a775a580d6a35051ef8da513e
[ "MIT" ]
2
2021-08-22T13:01:06.000Z
2021-10-14T02:47:52.000Z
import numpy as np import matplotlib import matplotlib.pyplot as plt from matplotlib import style from datetime import datetime from mpl_finance import candlestick_ochl as candlestick style.use('ggplot') class BitcoinTradingGraph: def __init__(self, df, title=None): self.df = df self.net_worths = n...
49.714286
104
0.577586
dec05f70c75d896ee821a1eab4bb137c60d59d60
6,545
py
Python
selfdrive/car/hyundai/carcontroller.py
advpilot/advpilot
0d8940cd678c34c243a8590afb998c49d88599d0
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/carcontroller.py
advpilot/advpilot
0d8940cd678c34c243a8590afb998c49d88599d0
[ "MIT" ]
null
null
null
selfdrive/car/hyundai/carcontroller.py
advpilot/advpilot
0d8940cd678c34c243a8590afb998c49d88599d0
[ "MIT" ]
null
null
null
from cereal import car from common.realtime import DT_CTRL from common.numpy_fast import clip, interp from common.conversions import Conversions as CV from selfdrive.car import apply_std_steer_torque_limits from selfdrive.car.hyundai.hyundaican import create_lkas11, create_clu11, create_lfahda_mfc, create_acc_commands,...
42.225806
162
0.696409
b6157fe1318c14278f48513a6f3ca2726bddb06b
2,294
py
Python
python/ray/data/_internal/delegating_block_builder.py
LaudateCorpus1/ray
20cf2edfef7103c269358a49a48c2159315ee132
[ "Apache-2.0" ]
null
null
null
python/ray/data/_internal/delegating_block_builder.py
LaudateCorpus1/ray
20cf2edfef7103c269358a49a48c2159315ee132
[ "Apache-2.0" ]
41
2021-09-21T01:13:48.000Z
2022-03-19T07:12:22.000Z
python/ray/data/_internal/delegating_block_builder.py
LaudateCorpus1/ray
20cf2edfef7103c269358a49a48c2159315ee132
[ "Apache-2.0" ]
null
null
null
from typing import Any from ray.data.block import Block, T, BlockAccessor from ray.data._internal.block_builder import BlockBuilder from ray.data._internal.simple_block import SimpleBlockBuilder from ray.data._internal.arrow_block import ArrowRow, ArrowBlockBuilder from ray.data._internal.pandas_block import PandasRow...
37.606557
84
0.622929
1be450d881fa28c0a6d072ff762f6992170ad80a
166
py
Python
play-travis/test.py
otus-devops-2019-05/kalinkina_infra
cf1e3fa1b90a3ba1243172e51af25f852566f452
[ "MIT" ]
null
null
null
play-travis/test.py
otus-devops-2019-05/kalinkina_infra
cf1e3fa1b90a3ba1243172e51af25f852566f452
[ "MIT" ]
2
2019-08-08T11:41:41.000Z
2019-08-26T10:43:35.000Z
play-travis/test.py
otus-devops-2019-05/kalinkina_infra
cf1e3fa1b90a3ba1243172e51af25f852566f452
[ "MIT" ]
null
null
null
import unittest class NumbersTest(unittest.TestCase): def test_equal(self): self.assertEqual(1 + 0, 1) if __name__ == '__main__': unittest.main()
15.090909
37
0.668675
3ced4170782a334ab502aff4feae84c9276a6445
19,985
py
Python
tests/unit_tests/gui/mainWmixin/test_tabEnviron.py
mworion/MountWizzard4
4e06b29ec2ef70be40e114b911b7bdf2f858a4b1
[ "Apache-2.0" ]
16
2020-01-11T22:32:26.000Z
2022-03-31T15:18:14.000Z
tests/unit_tests/gui/mainWmixin/test_tabEnviron.py
mworion/MountWizzard4
4e06b29ec2ef70be40e114b911b7bdf2f858a4b1
[ "Apache-2.0" ]
196
2020-01-16T13:56:01.000Z
2022-03-29T02:06:51.000Z
tests/unit_tests/gui/mainWmixin/test_tabEnviron.py
mworion/MountWizzard4
4e06b29ec2ef70be40e114b911b7bdf2f858a4b1
[ "Apache-2.0" ]
6
2019-12-01T19:39:33.000Z
2021-05-27T13:14:20.000Z
############################################################ # -*- coding: utf-8 -*- # # # # # # # # # ## ## # ## # # # # # # # # # # # # # # # ## # ## ## ###### # # # # # # # # # Python-based Tool for interaction with the 10micron mounts # GUI with PyQT5 fo...
31.621835
84
0.677808
7511679e73371585ea0c3b5905da6003649ede50
20,982
py
Python
Products/CMFCore/exportimport/tests/test_actions.py
fulv/Products.CMFCore
1d6ce101b10aaefba8aa917b6aa404e6c49e254d
[ "ZPL-2.1" ]
null
null
null
Products/CMFCore/exportimport/tests/test_actions.py
fulv/Products.CMFCore
1d6ce101b10aaefba8aa917b6aa404e6c49e254d
[ "ZPL-2.1" ]
null
null
null
Products/CMFCore/exportimport/tests/test_actions.py
fulv/Products.CMFCore
1d6ce101b10aaefba8aa917b6aa404e6c49e254d
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2005 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
34.738411
78
0.665761
a2ed779ee3b43671fe31f413817a02f08590fe08
8,641
py
Python
packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py
labaran1/plotly.py
7ec751e8fed4a570c11ea4bea2231806389d62eb
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Textfont(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.mapbox.layer.symbol" _path_str = "layout.mapbox.layer.symbol.textfont" _valid_pr...
37.569565
84
0.569841
fddb4ad33a5f5489b14fb299a7c665f266e660db
212
py
Python
compiler.py
Askar-LLC/hippopserver
5be08ed26f091ff80f46a097c300ad8ba6f19721
[ "Apache-2.0" ]
1
2019-09-02T23:10:36.000Z
2019-09-02T23:10:36.000Z
compiler.py
Askar-LLC/hippopserver
5be08ed26f091ff80f46a097c300ad8ba6f19721
[ "Apache-2.0" ]
null
null
null
compiler.py
Askar-LLC/hippopserver
5be08ed26f091ff80f46a097c300ad8ba6f19721
[ "Apache-2.0" ]
null
null
null
import sys import os import debug #import a debugger from git hub def stateRun(): x = 1 if x: return x def runCode(): cprint = print() def runStation(): runCode() runStation()
9.636364
32
0.599057
67fac0137ddadd93b778cbc88082e6ba92e871d2
8,313
py
Python
attic/encrypt_files_in_dir_to_s3.py
BD2KGenomics/PrecisionImmunology
06310682c50dcf8917b912c8e551299ff7ee41ce
[ "Apache-2.0" ]
28
2016-04-16T21:11:46.000Z
2022-02-07T18:01:56.000Z
attic/encrypt_files_in_dir_to_s3.py
BD2KGenomics/PrecisionImmunology
06310682c50dcf8917b912c8e551299ff7ee41ce
[ "Apache-2.0" ]
207
2016-03-30T20:47:34.000Z
2021-10-15T20:58:10.000Z
attic/encrypt_files_in_dir_to_s3.py
BD2KGenomics/PrecisionImmunology
06310682c50dcf8917b912c8e551299ff7ee41ce
[ "Apache-2.0" ]
9
2016-04-12T23:33:58.000Z
2020-08-17T19:27:49.000Z
#!/usr/bin/env python2.7 # Copyright (C) 2016 UCSC Computational Genomics Lab # # 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...
42.630769
100
0.659569
caae29c7907bf9f98169c242c63d8112447bcc27
2,860
py
Python
keras/layers/merging/multiply.py
itsraina/keras
5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35
[ "Apache-2.0" ]
null
null
null
keras/layers/merging/multiply.py
itsraina/keras
5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35
[ "Apache-2.0" ]
null
null
null
keras/layers/merging/multiply.py
itsraina/keras
5e9376b5b94b6fb445dd52dbfafbc4e95bff5e35
[ "Apache-2.0" ]
null
null
null
# 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...
33.647059
80
0.613287
2feb0316a00b27eb2af11be358cf57539ce25e72
6,456
py
Python
app.py
abhishekkagautam/AI-model-traing-platform
385a1b52c558e2bfc0856077ef41ddfd600e3cf7
[ "Apache-2.0" ]
null
null
null
app.py
abhishekkagautam/AI-model-traing-platform
385a1b52c558e2bfc0856077ef41ddfd600e3cf7
[ "Apache-2.0" ]
null
null
null
app.py
abhishekkagautam/AI-model-traing-platform
385a1b52c558e2bfc0856077ef41ddfd600e3cf7
[ "Apache-2.0" ]
null
null
null
from flask import Flask ,render_template, request, session, redirect, url_for, jsonify, flash import sklearn import pandas as pd from sklearn.model_selection import train_test_split from sklearn import metrics from sklearn.metrics import confusion_matrix import pickle from flask_session import Session from flask import...
34.897297
96
0.620818
1469ae10a1eb10f50cf6b614d125dc6b6038c700
1,183
py
Python
src/python/__init__.py
Dnargne/blackhole
17ffa8c910039878d5352fbd71936c37c7576822
[ "MIT" ]
null
null
null
src/python/__init__.py
Dnargne/blackhole
17ffa8c910039878d5352fbd71936c37c7576822
[ "MIT" ]
null
null
null
src/python/__init__.py
Dnargne/blackhole
17ffa8c910039878d5352fbd71936c37c7576822
[ "MIT" ]
null
null
null
# -*- coding:iso-8859-1 -*- # MIT License # # Copyright (c) 2017 Dnargne # # 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 right...
45.5
81
0.752325
037d3dbc95ead288eafa27da0f6fec1fb4e3e82f
1,892
py
Python
sololink/flightcode/dflog/loadLog.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
68
2019-09-23T03:27:05.000Z
2022-03-12T03:00:41.000Z
sololink/flightcode/dflog/loadLog.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
22
2019-10-26T20:15:56.000Z
2022-02-12T05:41:56.000Z
sololink/flightcode/dflog/loadLog.py
meee1/OpenSolo
6f299639adbad1e8d573c8ae1135832711b600e4
[ "Apache-2.0" ]
33
2019-09-29T19:52:19.000Z
2022-03-12T03:00:43.000Z
#!/usr/bin/env python import subprocess import sys import os import time from pymavlink import mavutil import glob import ConfigParser import shutil from datetime import datetime import argparse SELECT_GPIO = "21" ENABLE_GPIO = "19" #GPIO direction set def setGPIODir(gpio, direction): dir_fd = open("/sys/class/...
22.795181
73
0.701374
7ef3d9b68f82e21ed6a6cbdaaa3e57f54a14a9f6
1,863
py
Python
active_directory_ldap/komand_active_directory_ldap/connection/schema.py
emartin-merrill-r7/insightconnect-plugins
a589745dbcc9f01d3e601431e77ab7221a84c117
[ "MIT" ]
6
2020-11-10T03:07:00.000Z
2022-02-24T18:07:57.000Z
active_directory_ldap/komand_active_directory_ldap/connection/schema.py
OSSSP/insightconnect-plugins
846758dab745170cf1a8c146211a8bea9592e8ff
[ "MIT" ]
17
2020-01-21T16:02:04.000Z
2022-01-12T15:11:26.000Z
active_directory_ldap/komand_active_directory_ldap/connection/schema.py
OSSSP/insightconnect-plugins
846758dab745170cf1a8c146211a8bea9592e8ff
[ "MIT" ]
2
2020-12-26T11:33:23.000Z
2021-09-30T22:22:43.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Input: HOST = "host" PORT = "port" USE_SSL = "use_ssl" USERNAME_PASSWORD = "username_password" class ConnectionSchema(komand.Input): schema = json.loads(""" { "type": "object", "title": "Variables", "properties"...
22.719512
110
0.520129
62d9edc006b52744bc7cc5ab5b83cc28c9f8dd3a
2,213
py
Python
images/backer/src/app.py
elston/flaskit
849e1fcfa8904771e2ebcb55877bb41440359cd5
[ "MIT" ]
2
2018-08-08T22:01:33.000Z
2018-08-08T23:14:43.000Z
images/backer/src/app.py
elston/flaskit
849e1fcfa8904771e2ebcb55877bb41440359cd5
[ "MIT" ]
null
null
null
images/backer/src/app.py
elston/flaskit
849e1fcfa8904771e2ebcb55877bb41440359cd5
[ "MIT" ]
null
null
null
import traceback from flask import ( Flask, render_template) from flask_uploads import ( configure_uploads, patch_request_class) from extensions import ( config, bcrypt, csrf_protect, db, login_manager, migrate, webpack ) def register_extensions(app): # ..con...
18.139344
73
0.639404