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
620ae111fcaca3b1ff3490a57c686b4d0ffe2a6e
21,201
py
Python
src/main.py
lasigeBioTM/IBEnt
de7574991684de72e9b545c2b8fb5c8d95b0a83b
[ "MIT" ]
null
null
null
src/main.py
lasigeBioTM/IBEnt
de7574991684de72e9b545c2b8fb5c8d95b0a83b
[ "MIT" ]
null
null
null
src/main.py
lasigeBioTM/IBEnt
de7574991684de72e9b545c2b8fb5c8d95b0a83b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import division, unicode_literals import argparse import cPickle as pickle import codecs import logging import sys import time import os import itertools from subprocess import Popen, PIPE from pycorenlp import StanfordCoreNLP from classification.ner.banner import BANNERModel fro...
53.0025
128
0.63563
620affec7dba6b8cc0ccaa6017185c614a41f729
15,514
py
Python
QUANTAXIS/QAMarket/QAOrder.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
1
2018-12-05T01:35:09.000Z
2018-12-05T01:35:09.000Z
QUANTAXIS/QAMarket/QAOrder.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
null
null
null
QUANTAXIS/QAMarket/QAOrder.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
1
2021-01-19T06:13:44.000Z
2021-01-19T06:13:44.000Z
# coding:utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # 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 th...
32.456067
155
0.593786
620b037c3c80d45a7c4341c92d992d707c910762
2,472
py
Python
ai4water/eda/utils.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
12
2020-10-13T08:23:17.000Z
2021-01-22T04:36:21.000Z
ai4water/eda/utils.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
1
2020-10-15T02:42:52.000Z
2020-10-15T02:51:07.000Z
ai4water/eda/utils.py
csiro-hydroinformatics/AI4Water
cdb18bd4bf298f77b381f1829045a1e790146985
[ "MIT" ]
2
2020-11-23T04:45:38.000Z
2020-11-26T10:12:34.000Z
import numpy as np from scipy import linalg import matplotlib.pyplot as plt def auto_corr(x, nlags, demean=True): """ autocorrelation like statsmodels https://stackoverflow.com/a/51168178 """ var=np.var(x) if demean: x -= np.mean(x) corr = np.full(nlags+1, np.nan, np.float64) ...
20.949153
64
0.554612
620b4ea92744cab72d8e896f33dd8f7f162260ec
16,107
py
Python
src/helpers/image_functions.py
oliversefrin/lstm-sentinel2-landcover
4c1b74630953afda3c1920c2664df8712a009f44
[ "BSD-3-Clause" ]
16
2020-11-25T07:31:20.000Z
2022-03-15T02:45:26.000Z
src/helpers/image_functions.py
oliversefrin/lstm-sentinel2-landcover
4c1b74630953afda3c1920c2664df8712a009f44
[ "BSD-3-Clause" ]
null
null
null
src/helpers/image_functions.py
oliversefrin/lstm-sentinel2-landcover
4c1b74630953afda3c1920c2664df8712a009f44
[ "BSD-3-Clause" ]
4
2021-02-12T07:49:50.000Z
2021-08-12T12:28:14.000Z
""" This module contains several functions to be used in a pipeline for hyperspectral image classification: ------------------------------------------------- preprocessing_image_ms: scale hyperspectral image simple_image_generator: create an image generator (needed to train a CNN) time_series_image_generato...
38.441527
135
0.506674
620b68fae33d5ad99847107555c2c5b821c153f4
1,347
py
Python
money/migrations/0002_template.py
taqueci/nomoney
940879ffff0d17724709e642d9c1911ac4e996ce
[ "MIT" ]
null
null
null
money/migrations/0002_template.py
taqueci/nomoney
940879ffff0d17724709e642d9c1911ac4e996ce
[ "MIT" ]
2
2020-06-06T13:08:38.000Z
2022-02-10T14:51:16.000Z
money/migrations/0002_template.py
taqueci/nomoney
940879ffff0d17724709e642d9c1911ac4e996ce
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-08 03:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('money', '0001_initial'), ] operations = [ migrations.CreateModel( name='Template', ...
43.451613
146
0.60876
620ba7e406d745a6d9163e761efa371af593106b
130
py
Python
saf/ffm/__init__.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
1
2019-06-08T20:06:33.000Z
2019-06-08T20:06:33.000Z
saf/ffm/__init__.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/ffm/__init__.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
1
2019-06-24T13:00:02.000Z
2019-06-24T13:00:02.000Z
""" This package contains Fickett detonation analog model: ::math: u_t + 1/2 (u^2 + q \lambda)_x = 0, \lamda_t = 0. """
14.444444
54
0.584615
620bb83636164c258434e66958e8d3268e0ccf67
152,852
py
Python
dp_ta/bin/dpwsminput.py
jjjw420/splunk-ibm-websphere-datapower-add-on
52ceeed755ab24d864524b6c3a47bd7e5d929bac
[ "CNRI-Python", "IBM-pibs" ]
null
null
null
dp_ta/bin/dpwsminput.py
jjjw420/splunk-ibm-websphere-datapower-add-on
52ceeed755ab24d864524b6c3a47bd7e5d929bac
[ "CNRI-Python", "IBM-pibs" ]
null
null
null
dp_ta/bin/dpwsminput.py
jjjw420/splunk-ibm-websphere-datapower-add-on
52ceeed755ab24d864524b6c3a47bd7e5d929bac
[ "CNRI-Python", "IBM-pibs" ]
null
null
null
''' IBM Websphere Datapower WSM Modular Input for Splunk Hannes Wagener - 2016 Used the Splunk provided modular input as example. DISCLAIMER You are free to use this code in any way you like, subject to the Python & IBM disclaimers & copyrights. I make no representations about the suitability of this software for any...
51.937479
542
0.534439
620bc6fd439fc8e105d44bb2b8ac145f819c15e2
9,558
py
Python
official/boosted_trees/train_higgs.py
zhewenpsc/TS
c519da2cd5de6bf0046661ab37708ca0598ca632
[ "Apache-2.0" ]
1
2019-08-21T14:00:09.000Z
2019-08-21T14:00:09.000Z
official/boosted_trees/train_higgs.py
anveshchidura/models
191d99a7f9fc58a7aeb0ef2c2c0a7bf8df3c39fc
[ "Apache-2.0" ]
1
2021-03-31T22:13:39.000Z
2021-03-31T22:13:39.000Z
official/boosted_trees/train_higgs.py
omerpwnz/Hand_Detection_Models
191d99a7f9fc58a7aeb0ef2c2c0a7bf8df3c39fc
[ "Apache-2.0" ]
null
null
null
r"""A script that builds boosted trees over higgs data. If you haven't, please run data_download.py beforehand to prepare the data. For some more details on this example, please refer to README.md as well. Note that the model_dir is cleaned up before starting the training. Usage: $ python train_higgs.py --n_trees=1...
38.079681
80
0.735405
620bca009415687dd6d9f33087c84debcbd82893
1,713
py
Python
setup.py
anwarnunez/fusi
c15ea2567e9fca92b1a6a1130eb396825d0f76cf
[ "BSD-3-Clause" ]
null
null
null
setup.py
anwarnunez/fusi
c15ea2567e9fca92b1a6a1130eb396825d0f76cf
[ "BSD-3-Clause" ]
null
null
null
setup.py
anwarnunez/fusi
c15ea2567e9fca92b1a6a1130eb396825d0f76cf
[ "BSD-3-Clause" ]
3
2022-02-14T02:50:45.000Z
2022-03-07T08:23:48.000Z
#!/usr/bin/env python3 import sys try: import configparser except ImportError: import ConfigParser as configparser if len(set(('develop', 'bdist_wheel', 'bdist_egg', 'bdist_rpm', 'bdist', 'sdist', 'bdist_wheel', 'bdist_dumb', 'bdist_wininst', 'install_egg_info', ...
26.353846
72
0.599533
620bda02db3ec2ebbee275d6066aaa1872b52edc
6,172
py
Python
zaza/openstack/charm_tests/openstack_upgrade/tests.py
wolsen/zaza-openstack-tests
2fd494cce284ca0d98b27640e94355544b21cf5a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/openstack/charm_tests/openstack_upgrade/tests.py
wolsen/zaza-openstack-tests
2fd494cce284ca0d98b27640e94355544b21cf5a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
zaza/openstack/charm_tests/openstack_upgrade/tests.py
wolsen/zaza-openstack-tests
2fd494cce284ca0d98b27640e94355544b21cf5a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2020 Canonical Ltd. # # 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 la...
36.958084
79
0.695561
620c10c4bc73581ee95b65b907f43ce2f6d9ed7b
209
py
Python
0x04-python-more_data_structures/7-update_dictionary.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x04-python-more_data_structures/7-update_dictionary.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x04-python-more_data_structures/7-update_dictionary.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # 7-update_dictionary.py def update_dictionary(a_dictionary, key, value): """Replace or add key/value pairs in a dictionary.""" a_dictionary[key] = value return (a_dictionary)
23.222222
57
0.712919
620ca65d70547891bc7372813e61b695f7786c79
1,642
py
Python
PythonProjects/99-jackson/m1_get_web_page.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-jackson/m1_get_web_page.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
PythonProjects/99-jackson/m1_get_web_page.py
much2mutch/csse120-public
4f862a6deb7a5373fb5723fb2a23e4042e4d4157
[ "MIT" ]
null
null
null
""" Scraping the Web, Step 1: Get the HTML from a web page. Summary: 1. install the requests library 2. Then the code to get the HTML from a web page is just: import requests url = "http://whatever_URL_you_want response = requests.get(url) html = response.text See: towardsdat...
31.576923
79
0.631547
620cbc5b3fec46dd6b50d39788acc3d6ad5cd15b
60,493
py
Python
main/courses/exams/views.py
Andymic/class2go
45a457e89790cb83942d24ada816357dc91b8fe4
[ "Apache-2.0" ]
1
2015-11-05T20:49:11.000Z
2015-11-05T20:49:11.000Z
main/courses/exams/views.py
Andymic/class2go
45a457e89790cb83942d24ada816357dc91b8fe4
[ "Apache-2.0" ]
null
null
null
main/courses/exams/views.py
Andymic/class2go
45a457e89790cb83942d24ada816357dc91b8fe4
[ "Apache-2.0" ]
null
null
null
import copy import csv import datetime import HTMLParser import json import logging import markdown import operator import math from pytz import timezone from django.db.models import Max, F import settings FILE_DIR = getattr(settings, 'FILE_UPLOAD_TEMP_DIR', '/tmp') AWS_ACCESS_KEY_ID = getattr(settings, 'AWS_ACCESS_...
43.551476
242
0.640091
620cc2da016fd0795a6e50ed9e4bbf360d35b08a
760
py
Python
setup.py
DaniFdezAlvarez/shexer
4f4dffc95bcad038cbc1bd85b58e5558c7c0a6d1
[ "Apache-2.0" ]
16
2019-03-18T21:32:36.000Z
2022-03-28T17:53:57.000Z
setup.py
DaniFdezAlvarez/shexer
4f4dffc95bcad038cbc1bd85b58e5558c7c0a6d1
[ "Apache-2.0" ]
67
2019-02-27T12:58:55.000Z
2022-03-28T20:38:48.000Z
setup.py
DaniFdezAlvarez/shexer
4f4dffc95bcad038cbc1bd85b58e5558c7c0a6d1
[ "Apache-2.0" ]
2
2019-03-09T00:30:28.000Z
2020-01-09T18:04:14.000Z
from distutils.core import setup from setuptools import find_packages setup( name = 'shexer', packages = find_packages(exclude=["*.local_code.*"]), # this must be the same as the name above version = '1.4.0', description = 'Automatic schema extraction for RDF graphs', author = 'Daniel Fernandez-Alvarez', a...
33.043478
97
0.648684
620cdc7720acf8c5783ce19f3bcc55b4899c97d8
423
py
Python
CLUSTER_MANAGEMENT/ClusterManagement/Clusters/models.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
null
null
null
CLUSTER_MANAGEMENT/ClusterManagement/Clusters/models.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
27
2020-06-05T23:26:44.000Z
2022-02-10T11:21:31.000Z
CLUSTER_MANAGEMENT/ClusterManagement/Clusters/models.py
udhayprakash/Django_Projects
5c5257944d36a552428f8b8a926110d64055fc12
[ "Apache-2.0" ]
null
null
null
from django.db import models # Create your models here. class ClusterDetails(models.Model): cluster_name = models.CharField(max_length=50, unique=True) nodes_count = models.SmallIntegerField() created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) de...
26.4375
63
0.728132
620ce275b80be65353a4411ab4978dacdc5e9fba
1,075
py
Python
scorers/classification/binary/false_positive_count.py
theaiacademy/driverlessai-recipes
4530fb52c65a1c9bfd65abf95b77f910f8df51a4
[ "Apache-2.0" ]
null
null
null
scorers/classification/binary/false_positive_count.py
theaiacademy/driverlessai-recipes
4530fb52c65a1c9bfd65abf95b77f910f8df51a4
[ "Apache-2.0" ]
null
null
null
scorers/classification/binary/false_positive_count.py
theaiacademy/driverlessai-recipes
4530fb52c65a1c9bfd65abf95b77f910f8df51a4
[ "Apache-2.0" ]
null
null
null
"""Optimizes for specific Confusion Matrix Values: `FP` - only recommended if threshold is adjusted""" import typing import numpy as np from h2oaicore.metrics import CustomScorer from sklearn.preprocessing import LabelEncoder from sklearn.metrics import confusion_matrix class CMFalsePositive(CustomScorer): _thres...
37.068966
104
0.682791
620d1480ca543bb5537c53a301d973c49b898720
5,340
py
Python
test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/legacy/Expected/AcceptanceTests/ParameterFlattening/parameterflattening/operations/_availability_sets_operations.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.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 ...
37.342657
111
0.67397
620d16e24c9b1ddb6b02186304b24931a2e2e63f
1,327
py
Python
regparser/history/notices.py
cfpb/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
36
2015-01-05T21:17:36.000Z
2020-04-28T21:02:55.000Z
regparser/history/notices.py
ascott1/regulations-parser
1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca
[ "CC0-1.0" ]
49
2015-01-28T15:54:25.000Z
2018-08-20T20:20:08.000Z
regparser/history/notices.py
ascott1/regulations-parser
1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca
[ "CC0-1.0" ]
23
2015-01-28T15:34:18.000Z
2021-02-20T10:53:34.000Z
from collections import defaultdict def applicable(notices, doc_number): """Given a list of notices and a specific notice number, determine which notices in the list are relevant to that doc number.""" final_notice = [n for n in notices if n['document_number'] == doc_number] # We need the notice fo...
34.025641
78
0.660136
620d340e6e4cd8e06527fcff84e3be2c59a5e3cb
2,020
py
Python
notebook0.py
fox-flex/notebook-app
643177b9c2268412762a2b7e496485cded4fbaaa
[ "MIT" ]
null
null
null
notebook0.py
fox-flex/notebook-app
643177b9c2268412762a2b7e496485cded4fbaaa
[ "MIT" ]
null
null
null
notebook0.py
fox-flex/notebook-app
643177b9c2268412762a2b7e496485cded4fbaaa
[ "MIT" ]
null
null
null
""" notebook class creation """ import datetime LAST_ID = 0 class Note: """ Represent a note in the notebook. """ def __init__(self, memo, tags=''): """ Initialize a note with memo and optional space-separated tags. Automatically set the note's creation date and a unique id. ...
24.938272
79
0.55396
620d3d1756c0bfa895d7600391c67672b0eb5001
4,037
py
Python
src/api/receipts/accountings/resources.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
2
2020-10-15T15:16:08.000Z
2020-11-06T10:41:13.000Z
src/api/receipts/accountings/resources.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
1
2020-11-14T19:40:14.000Z
2020-11-14T19:40:14.000Z
src/api/receipts/accountings/resources.py
cbn-alpin/gefiproj-api
35e3f00dd71bcdd9ad751307ac379aa78d1545cf
[ "MIT" ]
null
null
null
from flask import Blueprint, current_app, jsonify, request from flask_jwt_extended import jwt_required from src.api.users.auth_resources import admin_required from .db_services import ReceiptAccountingDBService from .validation_service import ReceiptAccountingValidationService resources = Blueprint('receipts_accounti...
37.728972
121
0.715135
620d73571609a184eb201281275f776d31a3fa29
3,171
py
Python
Seeder/comments/migrations/0001_initial.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/comments/migrations/0001_initial.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/comments/migrations/0001_initial.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-06-25 16:47 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import mptt.fields import search_blob.models class Migration(migrations.Migration): initial ...
59.830189
224
0.660675
620d91860753652151cb00e6374838067ec5beba
11,946
py
Python
lendingclub/session.py
jgillick/LendingClub
4495f99fd869810f39c00e02b0f4112c6b210384
[ "MIT" ]
55
2015-01-15T22:28:29.000Z
2021-04-13T02:32:36.000Z
lendingclub/session.py
jgillick/LendingClub
4495f99fd869810f39c00e02b0f4112c6b210384
[ "MIT" ]
19
2015-06-29T16:36:31.000Z
2020-09-10T22:19:17.000Z
lendingclub/session.py
jgillick/LendingClub
4495f99fd869810f39c00e02b0f4112c6b210384
[ "MIT" ]
43
2015-02-07T22:16:52.000Z
2020-09-05T05:11:09.000Z
#!/usr/bin/env python """ Manage the LendingClub user session and all raw HTTP calls to the LendingClub site. This will almost always be accessed through the API calls in :class:`lendingclub.LendingClub` instead of directly. """ """ The MIT License (MIT) Copyright (c) 2013 Jeremy Gillick Permission is hereby grante...
32.550409
147
0.60966
620d9b2636db218fd26196b4e2ef46d23f3e4a83
1,568
py
Python
week2_programs/telnet_script.py
morganoh/Python_with_Kirk
11bffec8601e553ccebad5b431702627239f72a1
[ "Apache-2.0" ]
null
null
null
week2_programs/telnet_script.py
morganoh/Python_with_Kirk
11bffec8601e553ccebad5b431702627239f72a1
[ "Apache-2.0" ]
null
null
null
week2_programs/telnet_script.py
morganoh/Python_with_Kirk
11bffec8601e553ccebad5b431702627239f72a1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import telnetlib import time import sys import socket TELNET_PORT = 23 TELNET_TIMEOUT = 6 def send_cmd(remote_conn, cmd): cmd.rstrip('\n') remote_conn.write(cmd + '\n') time.sleep(1) return remote_conn.read_very_eager() def login(remote_conn,username, password): output = ...
22.4
89
0.700255
620d9f1ce997e8d387be71fcc431b1607431de53
2,084
py
Python
cassandra-gateway-server/src/tools/server.py
emeric254/grafana-cassandra-datasource
c0e81b3b5f8909c32c01377b174250608d9c95a7
[ "MIT" ]
2
2020-01-13T14:39:32.000Z
2020-02-02T13:20:45.000Z
cassandra-gateway-server/src/tools/server.py
emeric254/grafana-cassandra-datasource
c0e81b3b5f8909c32c01377b174250608d9c95a7
[ "MIT" ]
null
null
null
cassandra-gateway-server/src/tools/server.py
emeric254/grafana-cassandra-datasource
c0e81b3b5f8909c32c01377b174250608d9c95a7
[ "MIT" ]
1
2020-01-17T11:02:06.000Z
2020-01-17T11:02:06.000Z
# -*- coding: utf-8 -*- import os import logging import configparser from tornado import httpserver, ioloop, netutil, process, web logger = logging.getLogger(__name__) # load SERVER settings config = configparser.ConfigParser() config.read(os.getenv('SETTINGS_FILE', './settings.ini')) if 'SERVER' not in config: ...
31.104478
106
0.674664
620da8ff300d1b8cc108209820051a6b8d946c11
1,027
py
Python
atom/proton/python/test/test_accumulation_goal_deposit_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/test/test_accumulation_goal_deposit_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/test/test_accumulation_goal_deposit_config.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.9.2 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import...
25.04878
114
0.741967
620ddbed163370731be37451a56b8e9a2b7eb822
17,607
py
Python
python/pyclaw/io/ascii.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
null
null
null
python/pyclaw/io/ascii.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
null
null
null
python/pyclaw/io/ascii.py
geoflows/geoclaw-4.x
c8879d25405017b38392aa3b1ea422ff3e3604ea
[ "BSD-3-Clause" ]
2
2019-01-17T04:34:08.000Z
2020-08-11T16:02:28.000Z
#!/usr/bin/env python # encoding: utf-8 r""" Routines for reading and writing an ascii output file :Authors: Kyle T. Mandli (2008-02-07) Initial version """ # ============================================================================ # Copyright (C) 2008 Kyle T. Mandli <mandli@amath.washington.edu> # # Dis...
41.041958
131
0.478332
620e145c96fc1c848b2695faaee7747806388ee1
6,682
py
Python
mapproxy/config/config.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/config/config.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/config/config.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# This file is part of the MapProxy project. # Copyright (C) 2010 Omniscale <http://omniscale.de> # # 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...
32.595122
90
0.648309
620e3a17238ec912199e5492e5e09aceac08b7e4
11,198
py
Python
tower.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
tower.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
tower.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
from typing import Union, Iterable, Optional import mouse import keyboard import numpy as np import pyscreeze import collections import time import win32con import win32gui import win32ui from dynamic_info.session import Btd6Session from dynamic_info.money import MoneyHook from dynamic_info.placeable import Placeabl...
31.994286
150
0.598678
620e4f964506bbc1a951deb0c3f95cdc28c6011a
20,537
py
Python
omnizart/vocal/app.py
Hadiaz1/omnizart
4188e6e193a4d5de6a0bec9f8dc2f0e847310e26
[ "MIT" ]
1
2022-01-11T02:51:56.000Z
2022-01-11T02:51:56.000Z
omnizart/vocal/app.py
Teora/omnizart
880b7a6303f2366fa36edb585f952b877a3feef2
[ "MIT" ]
null
null
null
omnizart/vocal/app.py
Teora/omnizart
880b7a6303f2366fa36edb585f952b877a3feef2
[ "MIT" ]
null
null
null
import os import glob import shutil import subprocess from os.path import join as jpath from collections import OrderedDict from datetime import datetime import h5py import numpy as np import tensorflow as tf from spleeter.separator import Separator from spleeter.utils.logging import logger as sp_logger from omnizart...
41.997955
116
0.660077
620eda19e462ddd7f1ae7e0f04b80401304a0ca9
1,110
py
Python
slavdict/dictionary/migrations/0011_auto_20160719_1527.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
1
2022-01-17T17:26:25.000Z
2022-01-17T17:26:25.000Z
slavdict/dictionary/migrations/0011_auto_20160719_1527.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
8
2020-02-12T13:26:05.000Z
2022-02-10T19:28:07.000Z
slavdict/dictionary/migrations/0011_auto_20160719_1527.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-07-19 15:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dictionary', '0010_phraseological_widecolloc'), ] operations = [ migrations.AddField( model_name='collo...
42.692308
437
0.68018
620eda21577af54833d041166a43815384cb7e67
7,832
py
Python
src/BMM_single_experiment.py
Castel44/SREA
cbc20cca32377659ed68276e21c393bd913d4eb3
[ "CC0-1.0" ]
5
2021-08-16T09:18:18.000Z
2022-02-05T02:32:30.000Z
src/BMM_single_experiment.py
Castel44/SREA
cbc20cca32377659ed68276e21c393bd913d4eb3
[ "CC0-1.0" ]
1
2021-12-15T10:37:52.000Z
2021-12-16T04:10:17.000Z
src/BMM_single_experiment.py
Castel44/SREA
cbc20cca32377659ed68276e21c393bd913d4eb3
[ "CC0-1.0" ]
null
null
null
import argparse import logging import os import shutil import sys import warnings import matplotlib.pyplot as plt import numpy as np import torch from sklearn.model_selection import train_test_split from src.utils.global_var import OUTPATH from src.utils.log_utils import StreamToLogger from src.utils.plotting_utils i...
41.659574
140
0.603677
620f6aae30fe3741ec8d8a8e38f5406c476f88aa
687
py
Python
tests/helpers.py
GClunies/tracking-plan-kit
bb660f96cc3aba0453cf9e451f4b3021d724f797
[ "MIT" ]
4
2019-10-05T01:48:39.000Z
2022-03-20T17:41:00.000Z
tests/helpers.py
GClunies/tracking-plan-kit
bb660f96cc3aba0453cf9e451f4b3021d724f797
[ "MIT" ]
14
2019-07-08T21:12:11.000Z
2021-11-03T14:46:52.000Z
tests/helpers.py
GClunies/tracking-plan-kit
bb660f96cc3aba0453cf9e451f4b3021d724f797
[ "MIT" ]
1
2021-08-17T05:03:40.000Z
2021-08-17T05:03:40.000Z
import pytest import copy from contextlib import contextmanager from tracking_plan.errors import ValidationError @contextmanager def assert_raises_validation_error(expected_msg=None): with pytest.raises(ValidationError) as err_info: yield if expected_msg: assert expected_msg in str(err_info....
28.625
94
0.77147
620f8d503fb4f85a8eb859b2a3c6f707a6d548f7
7,681
py
Python
pywick/models/segmentation/testnets/drnet/drnet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/models/segmentation/testnets/drnet/drnet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/models/segmentation/testnets/drnet/drnet.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
# Source: https://github.com/cyj5030/DRC-Release import torch.nn.functional as F from .utils import * from .backbone import * __all__ = ['DRNet', 'DRCLoss'] class adap_conv(nn.Module): def __init__(self, in_channels, out_channels): super(adap_conv, self).__init__() self.conv = nn.Sequential(*[nn...
41.295699
129
0.603697
620fa57dd7114d3d16944365aadf1a7f43dc2fe0
71
py
Python
pmaf/pipe/agents/mediators/_local/__init__.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-07-02T06:24:17.000Z
2021-07-02T06:24:17.000Z
pmaf/pipe/agents/mediators/_local/__init__.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
1
2021-06-28T12:02:46.000Z
2021-06-28T12:02:46.000Z
pmaf/pipe/agents/mediators/_local/__init__.py
mmtechslv/PhyloMAF
bab43dd4a4d2812951b1fdf4f1abb83edb79ea88
[ "BSD-3-Clause" ]
null
null
null
from ._local_mediator import LocalMediator __all__ = ['LocalMediator']
23.666667
42
0.816901
620fa7117ed04f9480ac8572cede506e22c9769b
10,731
py
Python
tests/test_testcase.py
ryan-rs/pytest-zigzag
7116357ab680a5a9bac47af3ac428f706cee0e93
[ "Apache-2.0" ]
1
2021-01-19T23:59:54.000Z
2021-01-19T23:59:54.000Z
tests/test_testcase.py
ryan-rs/pytest-zigzag
7116357ab680a5a9bac47af3ac428f706cee0e93
[ "Apache-2.0" ]
3
2018-08-23T19:44:46.000Z
2019-02-21T22:04:29.000Z
tests/test_testcase.py
ryan-rs/pytest-zigzag
7116357ab680a5a9bac47af3ac428f706cee0e93
[ "Apache-2.0" ]
3
2018-08-17T00:37:15.000Z
2018-08-21T14:54:56.000Z
# -*- coding: utf-8 -*- """Test cases for the 'pytest_collection_modifyitems' hook function for recording the UUID for test cases.""" # ====================================================================================================================== # Imports # ===================================================...
38.325
120
0.653527
62102b9f5182a00b914c8160d086fa1bcfb0b752
290
py
Python
CritsAndCoffee.Auth.API/API_Auth/api/views.py
srwagsta/critsAndCoffee2.0
4d2042b91675c50c2b6938c1e1863f873c80d391
[ "Apache-1.1" ]
null
null
null
CritsAndCoffee.Auth.API/API_Auth/api/views.py
srwagsta/critsAndCoffee2.0
4d2042b91675c50c2b6938c1e1863f873c80d391
[ "Apache-1.1" ]
10
2020-07-16T23:43:12.000Z
2022-03-02T03:52:43.000Z
CritsAndCoffee.Auth.API/API_Auth/api/views.py
srwagsta/critsAndCoffee2.0
4d2042b91675c50c2b6938c1e1863f873c80d391
[ "Apache-1.1" ]
null
null
null
from flask import Blueprint from flask_restful import Api from API_Auth.api.resources import UserResource, UserList blueprint = Blueprint('api', __name__, url_prefix='/api/v1/users') api = Api(blueprint) api.add_resource(UserResource, '/<int:user_id>') api.add_resource(UserList, '/')
22.307692
66
0.772414
62103910b87e15e9e590ad03d5a23317edc795d7
3,870
py
Python
src/zeit/content/cp/browser/blocks/tests/test_rawtext.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
null
null
null
src/zeit/content/cp/browser/blocks/tests/test_rawtext.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
11
2015-04-16T14:15:08.000Z
2019-02-01T13:23:17.000Z
src/zeit/content/cp/browser/blocks/tests/test_rawtext.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
1
2015-12-03T14:58:26.000Z
2015-12-03T14:58:26.000Z
import zeit.cms.testing import zeit.content.cp import zeit.content.cp.centerpage import zeit.content.text.text class TestRawText(zeit.cms.testing.BrowserTestCase): layer = zeit.content.cp.testing.ZCML_LAYER def setUp(self): super(TestRawText, self).setUp() self.centerpage = zeit.content.cp.c...
40.3125
78
0.64186
621044dff18e3219d90799b9f4f9de72de8c155f
2,007
py
Python
tensorbay/cli/branch.py
Hoteryoung/tensorbay-python-sdk
53c34dd529c20ec69b34ddd348b5c8e74f4094d0
[ "MIT" ]
null
null
null
tensorbay/cli/branch.py
Hoteryoung/tensorbay-python-sdk
53c34dd529c20ec69b34ddd348b5c8e74f4094d0
[ "MIT" ]
null
null
null
tensorbay/cli/branch.py
Hoteryoung/tensorbay-python-sdk
53c34dd529c20ec69b34ddd348b5c8e74f4094d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2021 Graviti. Licensed under MIT License. # """Implementation of gas branch.""" import click from ..client.gas import DatasetClientType from .tbrn import TBRN, TBRNType from .utility import ContextInfo, error, exception_handler, get_dataset_client, get_gas, shorten @exception_h...
32.370968
97
0.715994
62106184338a22335356f52029ac8658065b2c5b
4,485
py
Python
ucsc_apis/network/usnic_conn_policy.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
1
2018-08-15T15:13:43.000Z
2018-08-15T15:13:43.000Z
ucsc_apis/network/usnic_conn_policy.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
8
2017-02-13T09:09:02.000Z
2017-12-27T04:05:26.000Z
ucsc_apis/network/usnic_conn_policy.py
scottwedge/ucsc_apis
c7d0de17cb969fb43984035be2dee630fcb1f610
[ "Apache-2.0" ]
3
2016-11-22T09:49:01.000Z
2020-10-14T01:23:40.000Z
# Copyright 2017 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
35.88
79
0.63456
62106d0d4e0ebec9e04f59589234d1907c824460
868
py
Python
hashicorp_vault_client/test/test_body91.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
hashicorp_vault_client/test/test_body91.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
2
2019-09-30T20:56:41.000Z
2019-10-02T00:22:07.000Z
hashicorp_vault_client/test/test_body91.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ HashiCorp Vault API HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501 OpenAPI spec version: 1.2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest ...
21.7
104
0.68318
62106f5914d23e924889322a1230fafdee76455a
33,197
py
Python
data/transcoder_evaluation_gfg/python/PATH_MAXIMUM_AVERAGE_VALUE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/PATH_MAXIMUM_AVERAGE_VALUE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/PATH_MAXIMUM_AVERAGE_VALUE.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-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. # def f_gold ( cost , N ) : dp = [ [ 0 for i in range ( N + 1 ) ] for j in range ( N + 1 ) ] dp [ 0 ] [ 0 ] = cost [ 0 ] [...
851.205128
7,093
0.414224
6210793d54eeede8e54c6110975befb6c55cced1
7,902
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_02/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_02/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_07_02/models/__init__.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 ...
35.276786
94
0.795748
62108af1c03eb2d46f0e07aff9b4d4dded8a7d61
3,278
py
Python
tests/python/pants_test/task/test_scm_publish_mixin.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/task/test_scm_publish_mixin.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/task/test_scm_publish_mixin.py
dturner-tw/pants
3a04f2e46bf2b8fb0a7999c09e4ffdf9057ed33f
[ "Apache-2.0" ]
1
2019-06-10T17:24:34.000Z
2019-06-10T17:24:34.000Z
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import unittest imp...
36.831461
93
0.764491
621094f665ecf41fb8e85a32162151068f85449f
2,187
py
Python
robotpy_ext/common_drivers/units.py
M-Shadow/robotpy-wpilib-utilities
ba95d45041e00842afadaedd2f3cbf2a3ac9cdf7
[ "MIT", "BSD-3-Clause" ]
null
null
null
robotpy_ext/common_drivers/units.py
M-Shadow/robotpy-wpilib-utilities
ba95d45041e00842afadaedd2f3cbf2a3ac9cdf7
[ "MIT", "BSD-3-Clause" ]
null
null
null
robotpy_ext/common_drivers/units.py
M-Shadow/robotpy-wpilib-utilities
ba95d45041e00842afadaedd2f3cbf2a3ac9cdf7
[ "MIT", "BSD-3-Clause" ]
1
2019-04-14T14:47:41.000Z
2019-04-14T14:47:41.000Z
class Unit(object): """The class for all of the units here""" def __init__(self, base_unit, base_to_unit, unit_to_base): """ Unit constructor, used as a mechanism to convert between various measurements :param base_unit: The instance of Unit to base conversions from. If None, then assum...
35.852459
122
0.707819
6210aa17a256f72647a0503f42536ea343a2c989
225
py
Python
Examples/7.4.4 Queue Setup.py
wangyonghong/RabbitMQ-in-Depth
56a35c6359d500b7597daf1bb2185b4c451a572c
[ "BSD-3-Clause" ]
111
2015-01-06T20:26:31.000Z
2022-03-14T13:17:12.000Z
Examples/7.4.4 Queue Setup.py
wangyonghong/RabbitMQ-in-Depth
56a35c6359d500b7597daf1bb2185b4c451a572c
[ "BSD-3-Clause" ]
4
2018-06-15T20:35:36.000Z
2021-01-13T16:03:40.000Z
Examples/7.4.4 Queue Setup.py
wangyonghong/RabbitMQ-in-Depth
56a35c6359d500b7597daf1bb2185b4c451a572c
[ "BSD-3-Clause" ]
43
2015-04-18T13:44:01.000Z
2022-03-14T13:17:13.000Z
import rabbitpy with rabbitpy.Connection() as connection: with connection.channel() as channel: queue = rabbitpy.Queue(channel, 'statelessd-messages') queue.declare() queue.bind('amq.topic', '#')
28.125
62
0.666667
6210b71ce912b9b6523ad72082ce892624d8eab5
6,353
py
Python
loaner/web_app/backend/api/chrome_api_test.py
riking/loaner
c131ee3ed543c018a0e039ae437fb8e83a912177
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/chrome_api_test.py
riking/loaner
c131ee3ed543c018a0e039ae437fb8e83a912177
[ "Apache-2.0" ]
null
null
null
loaner/web_app/backend/api/chrome_api_test.py
riking/loaner
c131ee3ed543c018a0e039ae437fb8e83a912177
[ "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...
39.955975
85
0.779002
6210eaa288918cdba9be46a4e1abe509bb9fc7cb
30,500
py
Python
stage/test_mongodb_stages.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2020-04-14T03:01:51.000Z
2020-04-14T03:01:51.000Z
stage/test_mongodb_stages.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
null
null
null
stage/test_mongodb_stages.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2019-09-14T08:30:23.000Z
2019-09-14T08:30:23.000Z
# Copyright 2017 StreamSets Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
45.795796
122
0.684361
6210f0aee2cfdaab9a7c3a8afc1c532fbdb5fca5
2,550
py
Python
sdk/redhatopenshift/azure-mgmt-redhatopenshift/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/redhatopenshift/azure-mgmt-redhatopenshift/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "MIT" ]
null
null
null
sdk/redhatopenshift/azure-mgmt-redhatopenshift/setup.py
jkeech/azure-sdk-for-python
ab2b0ea3ef7528900a2f2e27cc7deda440b53f70
[ "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. #----------------------------------------------------------------...
34.459459
91
0.608235
621108bb7e8aa51a9b264dacf2c14ee2acd4d484
5,113
py
Python
pycalc/MAVProxy/modules/mavproxy_smartcamera/sc_config.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
pycalc/MAVProxy/modules/mavproxy_smartcamera/sc_config.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
8
2021-01-28T19:26:22.000Z
2022-03-24T18:07:24.000Z
pycalc/MAVProxy/modules/mavproxy_smartcamera/sc_config.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
""" SmartCameraConfig class : handles config for the smart_camera project smart_camera.cnf file is created in the local directory other classes or files wishing to use this class should add import sc_config """ from os.path import expanduser import ConfigParser class SmartCameraConfig(object): def __init_...
34.782313
105
0.646
621138689798acc161785210f2bffaa2316a8223
1,834
py
Python
lib/connect/management/commands/__init__.py
hdknr/connect
fb99dc3069dc165d6771fb19e2415b45ee421353
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/connect/management/commands/__init__.py
hdknr/connect
fb99dc3069dc165d6771fb19e2415b45ee421353
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/connect/management/commands/__init__.py
hdknr/connect
fb99dc3069dc165d6771fb19e2415b45ee421353
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand from optparse import make_option import sys import inspect import argparse class SubCommand(object): name = '' description = '' args = [] # (tuple, dict) def __init__(self, *args, **kwargs): self.parser = argparse....
26.2
79
0.565976
62113d880f8d2b7f4cd9187baeb37fba764533b8
1,305
py
Python
expfactory_deploy/users/tests/test_admin.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
expfactory_deploy/users/tests/test_admin.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
31
2021-03-08T21:30:47.000Z
2022-03-01T12:09:09.000Z
expfactory_deploy/users/tests/test_admin.py
rwblair/expfactory-deploy
509b74fc16b70234b448a727c4fe7759fb6057c8
[ "MIT" ]
null
null
null
import pytest from django.urls import reverse from expfactory_deploy.users.models import User pytestmark = pytest.mark.django_db class TestUserAdmin: def test_changelist(self, admin_client): url = reverse("admin:users_user_changelist") response = admin_client.get(url) assert response.sta...
31.829268
79
0.629885
62113e1309e7a20082614ce81ffa9b238dc77cd7
28
py
Python
btd6_memory_info/generated/UnityEngine/UI/GraphicRaycaster/graphic_raycaster.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/UI/GraphicRaycaster/graphic_raycaster.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/UnityEngine/UI/GraphicRaycaster/graphic_raycaster.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class GraphicRaycaster: pass
28
28
0.892857
6211724869925adfa4e8c7b7285f66ce4fb4a062
22,757
py
Python
train.py
daniellevy/fast-dro
dc75246ed5df5c40a54990916ec351ec2b9e0d86
[ "MIT" ]
31
2020-10-13T03:18:37.000Z
2022-03-31T15:54:47.000Z
train.py
daniellevy/fast-dro
dc75246ed5df5c40a54990916ec351ec2b9e0d86
[ "MIT" ]
1
2020-12-02T19:31:13.000Z
2020-12-02T19:52:17.000Z
train.py
daniellevy/fast-dro
dc75246ed5df5c40a54990916ec351ec2b9e0d86
[ "MIT" ]
3
2020-10-13T23:31:22.000Z
2021-12-14T22:31:25.000Z
""" Training loop for Digits and ImageNet experiments """ import os import time import logging import argparse import subprocess import json import pdb import copy import numpy as np import pandas as pd import torch import torch.nn.functional as F from torch.optim import Adam, SGD, Adagrad, RMSprop from torch.utils.d...
40.135802
84
0.60254
62117695f8476d3532f6eb0d64f30ef757fe2cb4
2,557
py
Python
model/slim/download_and_convert_data.py
HankCHTsai/eye4cash
50a723526093f1a46f8727607705432a32f3dfdf
[ "Apache-2.0" ]
null
null
null
model/slim/download_and_convert_data.py
HankCHTsai/eye4cash
50a723526093f1a46f8727607705432a32f3dfdf
[ "Apache-2.0" ]
null
null
null
model/slim/download_and_convert_data.py
HankCHTsai/eye4cash
50a723526093f1a46f8727607705432a32f3dfdf
[ "Apache-2.0" ]
1
2020-07-20T09:53:35.000Z
2020-07-20T09:53:35.000Z
# Copyright 2016 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...
31.567901
99
0.72937
621177a9780c53e5c9ee3eb43b3b43b32597687d
3,331
py
Python
rock4/softtest/common/Tracer.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
5
2018-09-25T05:49:49.000Z
2021-12-30T11:06:09.000Z
rock4/softtest/common/Tracer.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
3
2018-04-01T04:27:21.000Z
2019-01-03T11:02:33.000Z
rock4/softtest/common/Tracer.py
RockFeng0/rock4automation
a29270ab9fa4cdc79f6453971b7c7a21f01442b0
[ "MIT" ]
7
2018-09-25T05:49:51.000Z
2021-12-30T11:06:11.000Z
# -*- encoding: utf-8 -*- ''' Current module: rock4.softtest.common.Tracer Rough version history: v1.0 Original version to use ******************************************************************** @AUTHOR: Administrator-Bruce Luo(罗科峰) MAIL: lkf20031988@163.com RCS: rock4.softtest.comm...
31.130841
120
0.531972
6211b21e3c20be142a3915a93de0b70cba9a341c
17,401
py
Python
pims/tiff_stack.py
tsmbland/pims
4f51b31f6a5bac41f4c680c7db1396f00838369e
[ "BSD-3-Clause" ]
null
null
null
pims/tiff_stack.py
tsmbland/pims
4f51b31f6a5bac41f4c680c7db1396f00838369e
[ "BSD-3-Clause" ]
null
null
null
pims/tiff_stack.py
tsmbland/pims
4f51b31f6a5bac41f4c680c7db1396f00838369e
[ "BSD-3-Clause" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import os from datetime import datetime import itertools import numpy as np from pims.frame import Frame try: from PIL import Image # should work with PIL or PILLOW except ImportError: Ima...
30.053541
79
0.565082
6211d6a86da30922512ca332afc6da530e0bce2e
4,564
py
Python
predictionserver/futureconventions/namingconventions.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
1
2020-12-04T17:59:19.000Z
2020-12-04T17:59:19.000Z
predictionserver/futureconventions/namingconventions.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
null
null
null
predictionserver/futureconventions/namingconventions.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
1
2021-03-05T05:03:36.000Z
2021-03-05T05:03:36.000Z
from predictionserver.futureconventions.sepconventions import SepConventions import os import re import uuid import itertools # Things that should be moved elsewhere :) class NamingConventions: def __init__(self, **kwargs): super().__init__(**kwargs) self.DELAYED = "delayed" + SepConventions.sep...
36.222222
90
0.640666
621201366f03bf491569caedb56ac03cb84d1ba5
1,761
py
Python
pywick/models/segmentation/__init__.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
2
2020-11-28T07:56:09.000Z
2021-11-08T09:30:39.000Z
pywick/models/segmentation/__init__.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
pywick/models/segmentation/__init__.py
ashishpatel26/pywick
1afffd1c21c2b188836d3599e802146182757bb5
[ "MIT" ]
null
null
null
""" Below you will find all the latest image segmentation models. To get a list of specific model names that are available programmatically, call the ``pywick.models.model_utils.get_supported_models(...)`` method. To load one of these models with your own number of classes you have two options: 1. You can always load t...
41.928571
209
0.764906
6212107e9870f387742c9a1f7cda6fc4cb02d3ef
4,026
py
Python
demisto_sdk/commands/common/hook_validations/description.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/hook_validations/description.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/hook_validations/description.py
yalonso7/demisto-sdk
4b832078cdadb0b604a064532975e8be68ac726a
[ "MIT" ]
null
null
null
import glob from demisto_sdk.commands.common.constants import ( BETA_INTEGRATION_DISCLAIMER, PACKS_INTEGRATION_NON_SPLIT_YML_REGEX, PACKS_INTEGRATION_YML_REGEX) from demisto_sdk.commands.common.errors import Errors from demisto_sdk.commands.common.hook_validations.base_validator import \ BaseValidator from...
42.378947
110
0.678341
62121ccb72d6510be7db6b33bd57f4aab2f765d2
70,668
py
Python
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/operations/_directory_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/operations/_directory_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_generated/operations/_directory_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
49.87156
146
0.671577
6212560e427cfe07e40a8d0bb9ee0afe31bb3d25
13,201
py
Python
rally/plugins/openstack/services/identity/keystone_v2.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2018-01-01T00:43:41.000Z
2018-01-01T00:43:41.000Z
rally/plugins/openstack/services/identity/keystone_v2.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/services/identity/keystone_v2.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
1
2020-06-05T10:06:37.000Z
2020-06-05T10:06:37.000Z
# 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 agreed to in...
41.643533
79
0.619802
62125efa9eb855fe9f078127e61a96647f3b0675
1,271
py
Python
setup.py
amplify-education/pybreaker
507f65980ad3a0bd906c83e68d4e018371eb7246
[ "BSD-3-Clause" ]
null
null
null
setup.py
amplify-education/pybreaker
507f65980ad3a0bd906c83e68d4e018371eb7246
[ "BSD-3-Clause" ]
null
null
null
setup.py
amplify-education/pybreaker
507f65980ad3a0bd906c83e68d4e018371eb7246
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8 -*- import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = 'pybreaker', version = '0.3.0', description = 'Python implementation of the Circuit Breaker pattern', long_description = open('README.rst', 'r').read(), ...
29.55814
74
0.604249
621270a0866acc089c53412a83ab06f984c84cc4
11,440
py
Python
project/apps/main_site/migrations/0027_auto__add_field_value_slug.py
skoczen/the-steven-manual
20599347ed1618886290c596332738013ac45500
[ "BSD-2-Clause" ]
null
null
null
project/apps/main_site/migrations/0027_auto__add_field_value_slug.py
skoczen/the-steven-manual
20599347ed1618886290c596332738013ac45500
[ "BSD-2-Clause" ]
4
2020-02-12T01:09:50.000Z
2021-06-10T20:34:59.000Z
project/apps/main_site/migrations/0027_auto__add_field_value_slug.py
skoczen/the-steven-manual
20599347ed1618886290c596332738013ac45500
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Value.slug' db.add_column('main_site_value', 'slug', self.gf('django.d...
85.373134
173
0.573776
621276ef2c03fce56ba2db74abd5602c81bcee46
11,715
py
Python
DBParse.py
tyo-nu/SimScripts
3572ce040bb180b0b97cd285ce12211df812d2e2
[ "MIT" ]
1
2018-11-18T01:48:57.000Z
2018-11-18T01:48:57.000Z
DBParse.py
tyo-nu/SimScripts
3572ce040bb180b0b97cd285ce12211df812d2e2
[ "MIT" ]
null
null
null
DBParse.py
tyo-nu/SimScripts
3572ce040bb180b0b97cd285ce12211df812d2e2
[ "MIT" ]
null
null
null
__author__ = 'Dante' import re import os import pybel import json import openbabel as ob def severDB(DB_dump): """This function will check for the presence of individual enzyme files that will be scraped for data in the current directory. Arguments: DB_dump -- DB data dump file name locat...
32.451524
152
0.613828
62127cc2365056641df93f66ac5ee6e134b608a5
32,035
py
Python
lib/python2.7/site-packages/paramiko/sftp_client.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/paramiko/sftp_client.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
lib/python2.7/site-packages/paramiko/sftp_client.py
drpaneas/linuxed.gr
95676e9f18a234092656c61b73b9e6633f2e39ec
[ "MIT" ]
null
null
null
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of Paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
38.642943
107
0.590729
6212bc1479c1198988f01d915531932af8b242ae
3,689
py
Python
xoinvader/tests/test_background.py
pankshok/xoinvader
f25e30431d4898f20626056c12853595857b4f02
[ "MIT" ]
13
2016-06-26T10:30:14.000Z
2021-09-04T19:39:14.000Z
xoinvader/tests/test_background.py
pkulev/xoinvader
f25e30431d4898f20626056c12853595857b4f02
[ "MIT" ]
70
2016-10-10T18:27:17.000Z
2020-05-18T11:27:59.000Z
xoinvader/tests/test_background.py
pankshok/xoinvader
f25e30431d4898f20626056c12853595857b4f02
[ "MIT" ]
null
null
null
"""Test xoinvader.background module.""" from copy import copy import os import pytest from xoinvader.background import Background, Chunk, load_chunks from xoinvader.common import Settings from xoinvader.tests.common import PREFIX CHUNK_NO_NAME = os.path.join(PREFIX, "chunk_no_name.bg") """Background file contains ...
25.441379
72
0.632963
6212c9fbd06928d07d69e9ed65c1a6bd5f304320
6,904
py
Python
tyr/serverutils.py
enr0n/tyr-core
eec16737800dc4415223d91813540142fd80d455
[ "MIT" ]
null
null
null
tyr/serverutils.py
enr0n/tyr-core
eec16737800dc4415223d91813540142fd80d455
[ "MIT" ]
6
2017-06-26T01:53:56.000Z
2017-08-18T23:07:19.000Z
tyr/serverutils.py
enr0n/tyr-core
eec16737800dc4415223d91813540142fd80d455
[ "MIT" ]
null
null
null
import os import sys import socket import Queue import logging import logging.handlers import ConfigParser from threading import Thread from pydispatch import dispatcher from tyr import resources from tyr import events from tyr import testutils log = logging.getLogger('server-utils') log.setLevel(logging.DEBUG) log.a...
33.192308
78
0.582126
6212e2bd62f6167e3a55d3039eac561f64409b5e
772
py
Python
postfix/datadog_checks/postfix/config_models/defaults.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
postfix/datadog_checks/postfix/config_models/defaults.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
postfix/datadog_checks/postfix/config_models/defaults.py
gaffneyd4/integrations-core
4c7725c9f1be4985381aad9740e7186f16a87976
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.base.utils.models.fields import get_default_field_value def shared_postfix_user(field, value): return 'root' def shared_postqueue(field, value): return False def shared_se...
20.864865
75
0.772021
62133a9fa4d7a14385c9430bc7dde558f3599f3e
3,987
py
Python
tools/aggregate_to_csv.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
45
2021-04-09T12:52:44.000Z
2022-03-30T09:08:58.000Z
tools/aggregate_to_csv.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
8
2021-06-29T07:47:07.000Z
2022-03-23T04:21:00.000Z
tools/aggregate_to_csv.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
10
2021-05-23T05:48:29.000Z
2022-03-16T06:42:13.000Z
""" Computes a CSV from the aggregated results for a bunch of seeds, and for one 'shot' type. Once results have been aggregated using aggregate_seeds.py they are placed in an 'aggregate-folder'. This changes based on the dataset in either 'aggregate-folder/coco' or We then take every folder in this aggregate-folder ...
39.87
117
0.611487
62134616f3fd788b3a75e202a5e94200490ab80e
11,438
py
Python
get_classifier_groundth_guidance.py
ZGCTroy/guided-diffusion
af987bb2b65db2875148a5466df79736ea5ae6a1
[ "MIT" ]
null
null
null
get_classifier_groundth_guidance.py
ZGCTroy/guided-diffusion
af987bb2b65db2875148a5466df79736ea5ae6a1
[ "MIT" ]
null
null
null
get_classifier_groundth_guidance.py
ZGCTroy/guided-diffusion
af987bb2b65db2875148a5466df79736ea5ae6a1
[ "MIT" ]
null
null
null
""" Like image_sample.py, but use a noisy image classifier to guide the sampling process towards more realistic images. """ import argparse import os import numpy as np import torch as th import torch.distributed as dist import torch.nn.functional as F from guided_diffusion.image_datasets import load_data import matp...
39.993007
197
0.657283
62134a4c1026d8676aef7d4910cb719148f144bc
3,590
py
Python
qstack/fields/hirshfeld.py
lcmd-epfl/Q-stack
c9f30bf0adc8cfbca33cbd4d991aafc315b6e000
[ "MIT" ]
null
null
null
qstack/fields/hirshfeld.py
lcmd-epfl/Q-stack
c9f30bf0adc8cfbca33cbd4d991aafc315b6e000
[ "MIT" ]
null
null
null
qstack/fields/hirshfeld.py
lcmd-epfl/Q-stack
c9f30bf0adc8cfbca33cbd4d991aafc315b6e000
[ "MIT" ]
null
null
null
import numpy import pyscf from qstack import compound, fields def spherical_atoms(elements, atm_bas): """Get density matrices for spherical atoms. Args: elements (list of str): elements to compute the DM for. atm_bas (string / pyscf basis dictionary): basis to use. Returns: dict ...
34.190476
135
0.634819
62135765c96d23113e2eb9c2b415c95949e21732
1,556
py
Python
mitmproxy/addons/__init__.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
mitmproxy/addons/__init__.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
mitmproxy/addons/__init__.py
takeratta/mitmproxy
569d275d763f499cce9673fcf118dcc8d59d2eeb
[ "MIT" ]
null
null
null
from mitmproxy.addons import allowremote from mitmproxy.addons import anticache from mitmproxy.addons import anticomp from mitmproxy.addons import check_ca from mitmproxy.addons import clientplayback from mitmproxy.addons import core_option_validation from mitmproxy.addons import core from mitmproxy.addons import cut f...
32.416667
54
0.744216
62135b2acf768b60c1d2db2207cc4f61f24460ed
909
py
Python
salt/output/overstatestage.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
2
2019-03-30T02:12:56.000Z
2021-03-08T18:59:46.000Z
salt/output/overstatestage.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/output/overstatestage.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2020-12-04T11:28:06.000Z
2020-12-04T11:28:06.000Z
''' Display clean output of an overstate stage ''' #[{'group2': {'match': ['fedora17-2', 'fedora17-3'], # 'require': ['group1'], # 'sls': ['nginx', 'edit']} # } # ] # Import salt libs import salt.utils def output(data): ''' Format the data for printing stage ...
25.971429
76
0.440044
62135e36e45a9301c31a72e1dc68edb57bba33b7
1,576
py
Python
src/flower/proto/transport_pb2_grpc.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
src/flower/proto/transport_pb2_grpc.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
null
null
null
src/flower/proto/transport_pb2_grpc.py
sishtiaq/flower
e8d57941863dcd193d2c0f4989f3ece5136ce027
[ "Apache-2.0" ]
1
2020-06-01T11:06:18.000Z
2020-06-01T11:06:18.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from flower.proto import transport_pb2 as flower_dot_proto_dot_transport__pb2 class FlowerServiceStub(object): # missing associated documentation comment in .proto file pass def __init__(self, channel): """Constructor. ...
33.531915
98
0.770939
6213985c16f3d35c23ce2dffd502d30647117218
3,691
py
Python
sasmodels/models/gel_fit.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/gel_fit.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/gel_fit.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
r""" *This model was implemented by an interested user!* Unlike a concentrated polymer solution, the fine-scale polymer distribution in a gel involves at least two characteristic length scales, a shorter correlation length ( $a1$ ) to describe the rapid fluctuations in the position of the polymer chains that ensure th...
31.016807
120
0.603901
6214155d077a8a10c886473a380bdbb45a94432b
1,410
py
Python
tests/test_integ_minihw_source.py
pestanko/pysett
e25051b89ca1218747091a063dad6008af987814
[ "MIT" ]
1
2021-07-28T10:50:04.000Z
2021-07-28T10:50:04.000Z
tests/test_integ_minihw_source.py
pestanko/pysett
e25051b89ca1218747091a063dad6008af987814
[ "MIT" ]
null
null
null
tests/test_integ_minihw_source.py
pestanko/pysett
e25051b89ca1218747091a063dad6008af987814
[ "MIT" ]
null
null
null
from pathlib import Path import pytest import shutil import exiot from exiot import RunParams from .prepenv import EXAMPLES_PATH, build_cmake PREPARED_FILES = EXAMPLES_PATH / 'minihw_not_impl' @pytest.fixture(scope='module') def mini_base_dir(tmp_path_factory) -> Path: base = tmp_path_factory.mktemp('mini_not_...
26.603774
71
0.72766
62141db08cebf82c5baa9b4e406cbf00e7272338
4,016
py
Python
unittests/test_ui_onpss_jsonrpc.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
10
2016-12-16T00:05:58.000Z
2018-10-30T17:48:25.000Z
unittests/test_ui_onpss_jsonrpc.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
40
2017-01-04T23:07:05.000Z
2018-04-16T19:52:02.000Z
unittests/test_ui_onpss_jsonrpc.py
stepanandr/taf
75cb85861f8e9703bab7dc6195f3926b8394e3d0
[ "Apache-2.0" ]
23
2016-12-30T05:03:53.000Z
2020-04-01T08:40:24.000Z
# Copyright (c) 2015 - 2017, Intel Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
32.918033
125
0.664592
62142909c6a04b479f0c4fe0414b261da21aed3c
4,946
py
Python
taskflow/tests/test_examples.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
299
2015-01-11T01:36:28.000Z
2022-03-11T08:56:27.000Z
taskflow/tests/test_examples.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
4
2015-02-06T11:12:58.000Z
2018-10-19T18:55:58.000Z
taskflow/tests/test_examples.py
jimbobhickville/taskflow
6ea991ce94f5be46b7e4726b4c4f014e10407786
[ "Apache-2.0" ]
67
2015-01-11T14:34:24.000Z
2022-01-14T02:57:03.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2012 Yahoo! 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...
32.973333
78
0.642742
6214372fd07c35330c2cd0c58c23f87d5571bed4
26,912
py
Python
test/integration/ggrc/converters/test_import_helpers.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
1
2019-01-04T10:55:14.000Z
2019-01-04T10:55:14.000Z
test/integration/ggrc/converters/test_import_helpers.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/converters/test_import_helpers.py
farcry4998/ggrc-core
c469039dabb55033c1b379850feb19e8dda2e2a1
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Module for CSV column definition tests.""" from copy import deepcopy import ddt from ggrc import converters from ggrc.models import mixins from ggrc.models import all_models from ggrc.access_control imp...
26.992979
79
0.570117
621437b40c9580efbf7056435f1514e511e98a3e
583
py
Python
tests/integration/test_settings.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
2
2017-11-08T19:55:57.000Z
2018-12-21T12:41:41.000Z
tests/integration/test_settings.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
null
null
null
tests/integration/test_settings.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
1
2018-10-13T08:59:29.000Z
2018-10-13T08:59:29.000Z
import pytest pytestmark = pytest.mark.sphinx('html', testroot='settings') @pytest.mark.parametrize('page', ['index.html', ], indirect=True) class TestSettingsIndex: def test_index(self, page): h1 = page.find('h1').contents[0].strip() assert 'Settings Template' == h1 div = page.find('div...
27.761905
75
0.668954
6214588535f953c0e70bf41e305690ac8357c55b
2,701
py
Python
python/paddle/fluid/tests/unittests/test_dist_fleet_a_sync_optimizer_sync.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
1
2020-05-27T05:21:42.000Z
2020-05-27T05:21:42.000Z
python/paddle/fluid/tests/unittests/test_dist_fleet_a_sync_optimizer_sync.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_dist_fleet_a_sync_optimizer_sync.py
randytli/Paddle
75dadd586996c71cf5b088b6141b94705561773f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 appli...
36.5
80
0.657904
62147a458a17fb22e4a18a7c5153ef6f366d605b
7,428
py
Python
vplexapi-7.0.0/vplexapi/models/storage_pool.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2020-12-01T11:22:13.000Z
2021-02-16T17:38:42.000Z
vplexapi-7.0.0/vplexapi/models/storage_pool.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0/vplexapi/models/storage_pool.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2021-01-01T21:07:55.000Z
2021-02-20T07:07:40.000Z
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class StoragePool(object): """NOTE: This class is auto...
27.308824
165
0.590065
62147afdfbd338bee4a8d116e23f8e3794847006
33,390
py
Python
intersight/apis/iam_user_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/iam_user_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/apis/iam_user_api.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from s...
46.830295
818
0.593711
62148358e2b17e49f6655c7a7c93effe4dc76371
2,173
py
Python
tests/check_steady_solution/test_steady_state_solution.py
qdouasbin/qod_fvm
760eb5a8043ba9d794eed636d7dc3ddc1358b74c
[ "MIT" ]
1
2020-06-14T06:21:15.000Z
2020-06-14T06:21:15.000Z
tests/check_steady_solution/test_steady_state_solution.py
qdouasbin/qod_fvm
760eb5a8043ba9d794eed636d7dc3ddc1358b74c
[ "MIT" ]
null
null
null
tests/check_steady_solution/test_steady_state_solution.py
qdouasbin/qod_fvm
760eb5a8043ba9d794eed636d7dc3ddc1358b74c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import pickle import toml import glob from qod_fvm import solver import numpy as np class TestSteadyStateSolution(unittest.TestCase): """Advanced test cases.""" # def test_example(self): # # do assert here # pass def test_check_steady_state_cst_ar...
32.924242
91
0.64197
6214c393251da5578b0562f04d02d99caf6aeaae
2,331
py
Python
demos/measure_learning/hovership_unviable_start.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
5
2020-06-08T09:44:44.000Z
2022-03-12T06:13:10.000Z
demos/measure_learning/hovership_unviable_start.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
7
2019-09-27T07:05:34.000Z
2020-04-27T14:15:07.000Z
demos/measure_learning/hovership_unviable_start.py
PFMassiani/vibly
5e552cb2ed375d5cd378b92de2f2473485211f2f
[ "MIT" ]
6
2019-10-02T09:55:10.000Z
2021-03-08T13:55:21.000Z
import models.hovership as true_model import numpy as np import pickle import plotting.corl_plotters as cplot import measure.active_sampling as sampling def run_demo(dynamics_model_path = './data/dynamics/', gp_model_path = './data/gp_model/', results_path='./results/'): ########################################...
36.421875
118
0.599314
6214ded8ff06efb03609ebfe7bb9bf32e4bb0dd2
8,419
py
Python
lingcorpora/corpora/rus_corpus.py
OneAdder/lingcorpora.py
c481b4ae60c0d386544657749b3c7ab5570d32f8
[ "MIT" ]
3
2019-05-27T08:06:51.000Z
2022-03-28T10:40:53.000Z
lingcorpora/corpora/rus_corpus.py
OneAdder/lingcorpora.py
c481b4ae60c0d386544657749b3c7ab5570d32f8
[ "MIT" ]
31
2018-02-13T09:23:56.000Z
2022-02-16T05:50:49.000Z
lingcorpora/corpora/rus_corpus.py
OneAdder/lingcorpora.py
c481b4ae60c0d386544657749b3c7ab5570d32f8
[ "MIT" ]
6
2018-02-22T20:53:41.000Z
2020-03-20T06:27:42.000Z
# python3 # coding=<UTF-8> import os import re from lxml.etree import parse from urllib.request import quote from ..params_container import Container from ..target import Target from ..exceptions import EmptyPageException __author__ = 'akv17' __doc__ = \ """ National Corpus of Russian ========================== A...
27.785479
184
0.569426
6214ec46e7e1b54757998d18bac7a285cd35ac2f
8,021
py
Python
genrl/core/actor_critic.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
null
null
null
genrl/core/actor_critic.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
null
null
null
genrl/core/actor_critic.py
mehulrastogi/genrl
589a3619497b38eaa376168c78b9f84d4ff434e5
[ "MIT" ]
null
null
null
from typing import Tuple import numpy as np import torch import torch.nn as nn from gym import spaces from torch.distributions import Categorical, Normal from genrl.core.base import BaseActorCritic from genrl.core.policies import MlpPolicy from genrl.core.values import MlpValue from genrl.utils.utils import cnn cla...
33.843882
88
0.616507
6214ecf637344f2daf1fd030298396cd6d88d74b
4,399
py
Python
build/management/commands/build_citations.py
AJK-dev/protwis
df736b7a46ad4d86c28ca74486ca1416c928398f
[ "Apache-2.0" ]
3
2019-07-29T11:49:38.000Z
2021-03-03T10:59:29.000Z
build/management/commands/build_citations.py
AJK-dev/protwis
df736b7a46ad4d86c28ca74486ca1416c928398f
[ "Apache-2.0" ]
1
2021-05-12T14:21:53.000Z
2021-05-12T14:21:53.000Z
build/management/commands/build_citations.py
AlibekMamyrbekov/protwis
b3d477b1982623618d995ab5c7f47c918a70238b
[ "Apache-2.0" ]
1
2021-03-03T15:58:50.000Z
2021-03-03T15:58:50.000Z
from django.core.management.base import BaseCommand, CommandError from django.core.management import call_command from django.conf import settings from django.db import connection from django.utils.text import slugify from build.management.commands.parse_excel_annotations import Command as ParseExcel from common.model...
35.475806
269
0.711753
621503300e2abf41fc30d6c18c2b6aad8725eb43
921
py
Python
neuroscience/scidb/load_files.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
3
2017-08-08T09:07:27.000Z
2018-09-12T14:54:56.000Z
neuroscience/scidb/load_files.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
1
2020-10-13T04:13:10.000Z
2020-10-13T04:13:10.000Z
neuroscience/scidb/load_files.py
tpawlowski/image_analytics
60445177a45c81a2c9c389b2f85f0d49d561c211
[ "MIT" ]
2
2018-02-26T18:03:23.000Z
2018-03-20T08:29:00.000Z
# # Multi-node SciDB implementation of MRI # # dzhao@uw.edu, 2016 # import warnings warnings.filterwarnings("ignore") import time import numpy as np import nibabel as nib from scidbpy import connect from scidbpy import save sdb = connect('http://localhost:8080') #sdb.query("remove(mri_4_0)") #sdb.query("remove(mri_...
26.314286
106
0.715527
62156e7c7a8c18094bff3696e6986594f1720112
4,468
py
Python
jrnl/install.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/install.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/install.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from __future__ import absolute_import, unicode_literals import getpass import glob import logging import os import readline import xdg.BaseDirectory import yaml from . import __version__, upgrade, util from .EncryptedJournal import EncryptedJournal from .Journal import Plain...
32.852941
111
0.696509
6215b525ad136522df6a228d93e9b337e2ff9d10
5,291
py
Python
src/protos/CodeTester_pb2_grpc.py
lightest-dev/lightest-testing
7cc1e444691a1a205a5ba8e359a35a00a70c3cff
[ "Apache-2.0" ]
null
null
null
src/protos/CodeTester_pb2_grpc.py
lightest-dev/lightest-testing
7cc1e444691a1a205a5ba8e359a35a00a70c3cff
[ "Apache-2.0" ]
18
2018-08-19T18:25:28.000Z
2019-04-21T14:26:55.000Z
src/protos/CodeTester_pb2_grpc.py
lightest-dev/lightest-testing
7cc1e444691a1a205a5ba8e359a35a00a70c3cff
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc import protos.CodeTester_pb2 as CodeTester__pb2 class CodeTesterStub(object): """Missing associated documentation comment in .proto file""" def __init__(self, channel): """Constructor. Args: channe...
41.015504
96
0.66169
6215c950b86e038d77ea5776fe295437bd6e0ade
22,318
py
Python
salt/modules/zypper.py
jhenry82/salt
53fed2cc634121e0d5921f3fb2d716f10a3479c8
[ "Apache-2.0" ]
null
null
null
salt/modules/zypper.py
jhenry82/salt
53fed2cc634121e0d5921f3fb2d716f10a3479c8
[ "Apache-2.0" ]
null
null
null
salt/modules/zypper.py
jhenry82/salt
53fed2cc634121e0d5921f3fb2d716f10a3479c8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Package support for openSUSE via the zypper package manager ''' # Import python libs import copy import logging import re from contextlib import contextmanager as _contextmanager # Import salt libs import salt.utils from salt.utils.decorators import depends as _depends from salt.exceptions...
27.519112
110
0.597634
6215cc47afb83e516634f2f9452295de068c5cdd
7,160
py
Python
py_binance_chain/depthcache.py
Adelapt98/python-binance-chain
cbf104c97b5db23bc8656b240fe50994c2f79a43
[ "MIT" ]
null
null
null
py_binance_chain/depthcache.py
Adelapt98/python-binance-chain
cbf104c97b5db23bc8656b240fe50994c2f79a43
[ "MIT" ]
null
null
null
py_binance_chain/depthcache.py
Adelapt98/python-binance-chain
cbf104c97b5db23bc8656b240fe50994c2f79a43
[ "MIT" ]
null
null
null
import time from operator import itemgetter from typing import Optional from py_binance_chain.websockets import BinanceChainSocketManager from py_binance_chain.http import HttpApiClient from py_binance_chain.environment import BinanceEnvironment class DepthCache(object): clear_price = "0.00000000" def __in...
27.121212
120
0.542179
6215d314de46c880a437fc4b40a4e7a5c4009d4d
1,831
py
Python
h2o-py/tests/testdir_scikit_grid/pyunit_scal_pca_rf_grid.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
1
2018-03-22T12:45:32.000Z
2018-03-22T12:45:32.000Z
h2o-py/tests/testdir_scikit_grid/pyunit_scal_pca_rf_grid.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_scikit_grid/pyunit_scal_pca_rf_grid.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
1
2018-10-23T02:52:55.000Z
2018-10-23T02:52:55.000Z
from __future__ import print_function import sys sys.path.insert(1,"../../") import h2o from tests import pyunit_utils def scale_pca_rf_pipe(): from h2o.transforms.preprocessing import H2OScaler from h2o.transforms.decomposition import H2OPCA from h2o.estimators.random_forest import H2ORandomForestEstimator ...
33.290909
85
0.620972
621617cd42f1cd8ec382892a09bcb814883d7fb4
73,585
py
Python
toontown/estate/houseDesign.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/estate/houseDesign.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/estate/houseDesign.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directtools.DirectSelection import * from direct.directtools.DirectUtil import ROUND_TO from direct.directtools.DirectGeometry import LineNodePath from direct.gui.DirectGui import * from pandac.PandaModules import * from direct.showbase.DirectObject import DirectObject from toontown.toonbase import Toontown...
44.435386
307
0.641585
621662a5bdc326b836fe09366b52bd411f7680c6
1,758
py
Python
script/python/rocketlogger/tests/__init__.py
ETHZ-TEC/RocketLogger
2e5f679dc54e67bff2616c76871db346d6a0e47a
[ "BSD-3-Clause" ]
12
2017-03-03T15:11:47.000Z
2022-03-26T19:42:09.000Z
script/python/rocketlogger/tests/__init__.py
ETHZ-TEC/RocketLogger
2e5f679dc54e67bff2616c76871db346d6a0e47a
[ "BSD-3-Clause" ]
47
2021-05-26T19:23:07.000Z
2021-12-28T13:21:18.000Z
script/python/rocketlogger/tests/__init__.py
ETHZ-TEC/RocketLogger
2e5f679dc54e67bff2616c76871db346d6a0e47a
[ "BSD-3-Clause" ]
1
2021-10-16T11:56:10.000Z
2021-10-16T11:56:10.000Z
""" RocketLogger Python Library Tests. Copyright (c) 2016-2020, ETH Zurich, Computer Engineering Group 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 a...
43.95
78
0.798635
62168c94fee55efff2b7c70352890acee7b5c37d
8,879
py
Python
examples/utils/launcher.py
aypan17/cule
115a2572e21dcb69807368710a7a4a4fa6dd9b36
[ "BSD-3-Clause" ]
null
null
null
examples/utils/launcher.py
aypan17/cule
115a2572e21dcb69807368710a7a4a4fa6dd9b36
[ "BSD-3-Clause" ]
null
null
null
examples/utils/launcher.py
aypan17/cule
115a2572e21dcb69807368710a7a4a4fa6dd9b36
[ "BSD-3-Clause" ]
null
null
null
import argparse import errno import math import logging import os import psutil import re import shutil import sys import time import torch import warnings from pprint import pprint if sys.version_info.major == 2: import ConfigParser as configparser from distutils.spawn import find_executable else: from s...
52.229412
142
0.689267
6216a0edcaa4f04a574a3e97768c94b80f023a54
1,419
py
Python
backend/test/test_asm/statistics_test.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
backend/test/test_asm/statistics_test.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
backend/test/test_asm/statistics_test.py
zengljnwpu/yaspc
5e85efb5fb8bee02471814b10e950dfb5b04c5d5
[ "MIT" ]
null
null
null
import unittest from backend.asm.statistics import Statistics from backend.sys_dep.x86.register import x86Register from backend.asm.literal import UnnamedSymbol from backend.asm.assembly import Instruction class TestStat (unittest.TestCase): def test_register (self): a = Statistics() b = x86Regist...
34.609756
64
0.675828
6216cc3365f94bd2d2ec00bfb17ea92cc9acb636
8,240
py
Python
nova/api/openstack/compute/contrib/security_group_default_rules.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
1
2021-09-10T15:29:02.000Z
2021-09-10T15:29:02.000Z
nova/api/openstack/compute/contrib/security_group_default_rules.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/contrib/security_group_default_rules.py
rossella/nova
9b1180d5a09227604a470cb9d0790b57daf1b6d7
[ "Apache-2.0" ]
1
2020-07-24T06:47:54.000Z
2020-07-24T06:47:54.000Z
# Copyright 2013 Metacloud Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
38.148148
79
0.674757
6216ce7103fdc2e5e6b9185baa7c4a9ce7e37886
615
py
Python
faulttree/gates/orgate.py
bornobob/ModelChecking
f49d7077e32d3a699d199289349c88ff18206382
[ "MIT" ]
2
2020-02-19T21:07:10.000Z
2020-02-19T21:39:56.000Z
faulttree/gates/orgate.py
bornobob/ModelChecking
f49d7077e32d3a699d199289349c88ff18206382
[ "MIT" ]
9
2020-02-26T13:16:21.000Z
2020-04-01T09:55:40.000Z
faulttree/gates/orgate.py
bornobob/ModelChecking
f49d7077e32d3a699d199289349c88ff18206382
[ "MIT" ]
null
null
null
from faulttree.gates.basegate import Gate class OrGate(Gate): """ An OrGate is the representation for the logical OR-gate. """ def __init__(self, name, input_gates): """ The constructor for an OrGate. :param name: The name of the OrGate. :param input_gates: The child G...
26.73913
75
0.603252