hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a25305a7babbe322d60da76d347533910b26de0
6,881
py
Python
openGaussBase/testcase/SQL/INNERFUNC/pg_buffercache_pages/Opengauss_Function_Innerfunc_Pg_Buffercache_Pages_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/pg_buffercache_pages/Opengauss_Function_Innerfunc_Pg_Buffercache_Pages_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/pg_buffercache_pages/Opengauss_Function_Innerfunc_Pg_Buffercache_Pages_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
45.269737
84
0.640023
4a2530a8a3bbb94735f282c17a76a8273e300b78
6,082
py
Python
tests/python/gpu/test_kvstore_gpu.py
leeesangwon/incubator-mxnet
0514233103baff5e1581cf2057f561f7a36616c2
[ "Apache-2.0" ]
211
2016-06-06T08:32:36.000Z
2021-07-03T16:50:16.000Z
tests/python/gpu/test_kvstore_gpu.py
leeesangwon/incubator-mxnet
0514233103baff5e1581cf2057f561f7a36616c2
[ "Apache-2.0" ]
42
2017-01-05T02:45:13.000Z
2020-08-11T23:45:27.000Z
tests/python/gpu/test_kvstore_gpu.py
leeesangwon/incubator-mxnet
0514233103baff5e1581cf2057f561f7a36616c2
[ "Apache-2.0" ]
58
2016-10-27T07:37:08.000Z
2021-07-03T16:50:17.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
44.394161
107
0.649622
4a253174fede91a0e5e4798fbd6515d2aa72841a
27,276
py
Python
flight-simulator/hackflight/parser/build/scripts-3.5/msppg.py
CobraPi/Gesture-Controled-Drone
94053b27f1ecd4d667ea603d45a5e29ffbfe2787
[ "CC0-1.0" ]
1
2020-03-02T16:38:21.000Z
2020-03-02T16:38:21.000Z
flight-simulator/hackflight/parser/build/scripts-3.5/msppg.py
CobraPi/Gesture-Controled-Drone
94053b27f1ecd4d667ea603d45a5e29ffbfe2787
[ "CC0-1.0" ]
null
null
null
flight-simulator/hackflight/parser/build/scripts-3.5/msppg.py
CobraPi/Gesture-Controled-Drone
94053b27f1ecd4d667ea603d45a5e29ffbfe2787
[ "CC0-1.0" ]
null
null
null
#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3 ''' msppg.py Multiwii Serial Protocol Parser Generator Copyright (C) Rob Jones, Alec Singer, Chris Lavin, Blake Liebling, Simon D. Levy 2015 This program is part of Hackflight This code is free software: you can redistribute it and/or modify it under t...
38.965714
117
0.541428
4a2533731eeda6a951c653fb9bdcd1391b440c23
3,613
py
Python
tests/search/IndexCreatorVisitor.py
Gawaboumga/PyMatex
3ccc0aa23211a064aa31a9b509b108cd606a4992
[ "MIT" ]
1
2019-03-05T09:45:04.000Z
2019-03-05T09:45:04.000Z
tests/search/IndexCreatorVisitor.py
Gawaboumga/PyMatex
3ccc0aa23211a064aa31a9b509b108cd606a4992
[ "MIT" ]
null
null
null
tests/search/IndexCreatorVisitor.py
Gawaboumga/PyMatex
3ccc0aa23211a064aa31a9b509b108cd606a4992
[ "MIT" ]
null
null
null
from tests import BaseTest from pymatex.node import NodeType from pymatex.search import IndexCreatorVisitor class IndexCreatorVisitorTests(BaseTest.BaseTest): def test_visit_basic_addition(self): ast = self.parse(r'3 + x') data = {} pk = 1 visitor = IndexCreatorVisitor(data, pk) ...
40.144444
77
0.632438
4a253413d40c1b79b932086e01316341b9122459
908
py
Python
env/lib/python2.7/site-packages/django/contrib/admin/decorators.py
diego-d5000/MisValesMd
b641782bc2546776e9f55f452ec7fb48100dc482
[ "MIT" ]
null
null
null
env/lib/python2.7/site-packages/django/contrib/admin/decorators.py
diego-d5000/MisValesMd
b641782bc2546776e9f55f452ec7fb48100dc482
[ "MIT" ]
null
null
null
env/lib/python2.7/site-packages/django/contrib/admin/decorators.py
diego-d5000/MisValesMd
b641782bc2546776e9f55f452ec7fb48100dc482
[ "MIT" ]
null
null
null
def register(*models, **kwargs): """ Registers the given model(s) classes and wrapped ModelAdmin class with admin site: @register(Author) class AuthorAdmin(admin.ModelAdmin): pass A kwarg of `site` can be passed as the admin site, otherwise the default admin site will be ...
31.310345
77
0.669604
4a2534260135bb46bf59bab894f8e9e029e7f1ca
21,546
py
Python
app/celery/tasks.py
department-of-veterans-affairs/notification-api
698bc98d8e78a13a0b2cfc432cfc718ff1016b06
[ "MIT" ]
10
2020-05-04T14:11:06.000Z
2022-02-22T19:06:36.000Z
app/celery/tasks.py
department-of-veterans-affairs/notification-api
698bc98d8e78a13a0b2cfc432cfc718ff1016b06
[ "MIT" ]
554
2020-05-07T21:56:24.000Z
2022-03-31T23:04:51.000Z
app/celery/tasks.py
department-of-veterans-affairs/notification-api
698bc98d8e78a13a0b2cfc432cfc718ff1016b06
[ "MIT" ]
4
2020-08-27T16:43:29.000Z
2021-02-17T22:17:27.000Z
from datetime import datetime from collections import namedtuple, defaultdict from flask import current_app from notifications_utils.recipients import ( RecipientCSV ) from notifications_utils.statsd_decorators import statsd from notifications_utils.template import ( SMSMessageTemplate, WithSubjectTemplate...
37.933099
120
0.704864
4a25360bc3bd82a7b4326f53dc1d57738cd802b1
7,339
py
Python
research/delf/delf/python/training/model/export_global_model.py
jkreddy123/models
30b6962c4772d7d7b24a68d4477979fa88a713a5
[ "Apache-2.0" ]
null
null
null
research/delf/delf/python/training/model/export_global_model.py
jkreddy123/models
30b6962c4772d7d7b24a68d4477979fa88a713a5
[ "Apache-2.0" ]
null
null
null
research/delf/delf/python/training/model/export_global_model.py
jkreddy123/models
30b6962c4772d7d7b24a68d4477979fa88a713a5
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 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 ...
39.67027
80
0.710315
4a25373bbb45aded58d37b3ce2e9b4130ef30b75
1,680
py
Python
scmoib/plotting/_silhouette.py
colomemaria/scmoib-package
2e707502463a8a5fee62459e26570bee456334f4
[ "MIT" ]
null
null
null
scmoib/plotting/_silhouette.py
colomemaria/scmoib-package
2e707502463a8a5fee62459e26570bee456334f4
[ "MIT" ]
null
null
null
scmoib/plotting/_silhouette.py
colomemaria/scmoib-package
2e707502463a8a5fee62459e26570bee456334f4
[ "MIT" ]
null
null
null
import episcanpy as epi from anndata import AnnData from typing import Union # TODO remove extra parameters def silhouette( adata: AnnData, cluster_annot: str, value: str = 'X_pca', metric: str = 'euclidean', save: Union[str, None] = None, palette: object = None, ...
25.846154
56
0.491071
4a2537dd6156b884f52989e67ce5afd52ade7758
3,534
py
Python
Tuition_Management_Software/Registration_Section/Analysis.py
Sam-Varghese/Tuition-Management-Software
858b9b8832418ddc3f9cde29d89fd0c917614d17
[ "MIT" ]
1
2021-04-07T15:09:41.000Z
2021-04-07T15:09:41.000Z
Tuition_Management_Software/Registration_Section/Analysis.py
Sam-Varghese/Tuition-Management-Software
858b9b8832418ddc3f9cde29d89fd0c917614d17
[ "MIT" ]
null
null
null
Tuition_Management_Software/Registration_Section/Analysis.py
Sam-Varghese/Tuition-Management-Software
858b9b8832418ddc3f9cde29d89fd0c917614d17
[ "MIT" ]
null
null
null
# Python file containing program to analyse registration records # Importing necessary libraries from Classes import * from tkinter import * from tkinter import ttk import threading import matplotlib.pyplot as plt import time import pandas as pd lock = threading.Lock() print('Importing necessary libraries for recor...
29.949153
94
0.651104
4a25383f159f7b8f9ec4fef6778b5eeeea8ce233
9,297
py
Python
sysinv/cgts-client/cgts-client/cgtsclient/tests/v1/test_kube_upgrade_shell.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
10
2020-02-07T18:57:44.000Z
2021-09-11T10:29:34.000Z
sysinv/cgts-client/cgts-client/cgtsclient/tests/v1/test_kube_upgrade_shell.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
1
2021-01-14T12:01:55.000Z
2021-01-14T12:01:55.000Z
sysinv/cgts-client/cgts-client/cgtsclient/tests/v1/test_kube_upgrade_shell.py
albailey/config
40ebe63d7dfc6a0a03216ebe55ed3ec9cf5410b9
[ "Apache-2.0" ]
10
2020-10-13T08:37:46.000Z
2022-02-09T00:21:25.000Z
# # Copyright (c) 2019 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import mock from cgtsclient.tests import test_shell from cgtsclient.v1.kube_upgrade import KubeUpgrade class KubeUpgradeTest(test_shell.ShellTest): def setUp(self): super(KubeUpgradeTest, self).setUp() def te...
50.803279
79
0.613209
4a25384a96d55fb548fb11e7312eda0efa1fbbbc
6,930
py
Python
backend/still_timer_32077/settings.py
crowdbotics-apps/still-timer-32077
04d0d9d956a72f68830ac8e6609c12e4035223eb
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/still_timer_32077/settings.py
crowdbotics-apps/still-timer-32077
04d0d9d956a72f68830ac8e6609c12e4035223eb
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/still_timer_32077/settings.py
crowdbotics-apps/still-timer-32077
04d0d9d956a72f68830ac8e6609c12e4035223eb
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for still_timer_32077 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ im...
29.615385
112
0.731025
4a253a020764e9667dcf56ec87b8615862689bb0
23,503
py
Python
gpMgmt/bin/gppylib/gpcatalog.py
Tylarb/gpdb
15e1341cfbac7f70d2086a9a1d46149a82765b5e
[ "PostgreSQL", "Apache-2.0" ]
1
2020-07-08T13:20:27.000Z
2020-07-08T13:20:27.000Z
gpMgmt/bin/gppylib/gpcatalog.py
Tylarb/gpdb
15e1341cfbac7f70d2086a9a1d46149a82765b5e
[ "PostgreSQL", "Apache-2.0" ]
6
2020-06-24T18:56:06.000Z
2022-02-26T08:53:11.000Z
gpMgmt/bin/gppylib/gpcatalog.py
Tylarb/gpdb
15e1341cfbac7f70d2086a9a1d46149a82765b5e
[ "PostgreSQL", "Apache-2.0" ]
1
2021-09-17T15:46:31.000Z
2021-09-17T15:46:31.000Z
#!/usr/bin/env python # # Copyright (c) 2010-2011 EMC Corporation. All Rights Reserved # """ gpcatalog.py Contains two classes representing catalog metadata: Catalog - a container class for CatalogTables CatalogTable - metadata about a single tables """ # =======================================...
36.43876
115
0.578777
4a253a79b84e39b7f4e237df80f09e0236dce379
1,460
py
Python
server/test_runner.py
Arun89-crypto/codechefsrm
bd793a40bf034f88deee3c98f342b86b3010d554
[ "MIT" ]
null
null
null
server/test_runner.py
Arun89-crypto/codechefsrm
bd793a40bf034f88deee3c98f342b86b3010d554
[ "MIT" ]
1
2021-11-20T20:56:47.000Z
2021-11-20T21:00:10.000Z
server/test_runner.py
Arun89-crypto/codechefsrm
bd793a40bf034f88deee3c98f342b86b3010d554
[ "MIT" ]
3
2021-11-20T16:48:40.000Z
2021-12-05T13:44:17.000Z
import unittest from tests import ( test_contact_us, test_about_us, test_team, test_admin_register, test_admin_login, test_events, test_access_refresh, test_me, ) from importlib import import_module import argparse def configure_options(): parser = argparse.ArgumentParser() pa...
27.54717
76
0.736986
4a253b139096f01d4f9b234adc4a5862aab765f4
2,405
py
Python
app/request.py
Cian747/job
b268aa6826fb31649f7a0f8da1bdd8b84a04e122
[ "MIT" ]
null
null
null
app/request.py
Cian747/job
b268aa6826fb31649f7a0f8da1bdd8b84a04e122
[ "MIT" ]
null
null
null
app/request.py
Cian747/job
b268aa6826fb31649f7a0f8da1bdd8b84a04e122
[ "MIT" ]
null
null
null
import urllib.request,json from .models.job import Jobs from flask_login import current_user from app import db job_api_url = None def configure_request(app): global job_api_url # job_api_url = app.config['JOB_API_URL'] job_api_url='https://api.lever.co/v0/postings/leverdemo?mode=json' def general(): ...
31.233766
179
0.575052
4a253c292120ad05258e99b546aa2163240b1241
4,143
py
Python
pysnmp/HP-ICF-AUTORUN.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HP-ICF-AUTORUN.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HP-ICF-AUTORUN.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HP-ICF-AUTORUN (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-AUTORUN # Produced by pysmi-0.3.4 at Mon Apr 29 19:20:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2...
111.972973
529
0.764905
4a253c514d4233ae90cc235c1df7630561e933ea
923
py
Python
NumericalMethods/lab_3/scalar_product_method.py
fivard/Third_course
fe0a331ab5e54ac31ccb0650b6b3a03ad3ab4cf9
[ "MIT" ]
null
null
null
NumericalMethods/lab_3/scalar_product_method.py
fivard/Third_course
fe0a331ab5e54ac31ccb0650b6b3a03ad3ab4cf9
[ "MIT" ]
null
null
null
NumericalMethods/lab_3/scalar_product_method.py
fivard/Third_course
fe0a331ab5e54ac31ccb0650b6b3a03ad3ab4cf9
[ "MIT" ]
null
null
null
import numpy as np np.set_printoptions(precision=3) given_matrix = np.array([[11, 7, 3, 7], [7, 10, -1, 4], [3, -1, 16, -7], [7, 4, -7, 15]]) eps = 0.01 def find_max_own_value(matrix): c...
26.371429
55
0.505959
4a253c7e2b0b9e7995a08bba39f82a1435450f7c
19,205
py
Python
trio/_core/tests/test_ki.py
Zac-HD/trio
3da1c6f846169d9a04371aa2230ac5f5a266f6a5
[ "Apache-2.0", "MIT" ]
null
null
null
trio/_core/tests/test_ki.py
Zac-HD/trio
3da1c6f846169d9a04371aa2230ac5f5a266f6a5
[ "Apache-2.0", "MIT" ]
null
null
null
trio/_core/tests/test_ki.py
Zac-HD/trio
3da1c6f846169d9a04371aa2230ac5f5a266f6a5
[ "Apache-2.0", "MIT" ]
null
null
null
import outcome import pytest import sys import os import signal import threading import contextlib import time from async_generator import ( async_generator, yield_, isasyncgenfunction, asynccontextmanager ) from ... import _core from ...testing import wait_all_tasks_blocked from ..._util import signal_raise, is_...
31.796358
80
0.635928
4a253d5ec9c3d0a05f4bff6f6e332ce8df33f156
1,031
py
Python
test/test_1002.py
ralphribeiro/uri-projecteuler
7151d86e014aea9c56026cc88f50b4e940117dd8
[ "MIT" ]
null
null
null
test/test_1002.py
ralphribeiro/uri-projecteuler
7151d86e014aea9c56026cc88f50b4e940117dd8
[ "MIT" ]
null
null
null
test/test_1002.py
ralphribeiro/uri-projecteuler
7151d86e014aea9c56026cc88f50b4e940117dd8
[ "MIT" ]
null
null
null
from unittest import TestCase from exercicios.ex1002 import calcula_area_circunferencia class TesteEx1002(TestCase): def test_argumento_deve_ser_float(self): chamada = 1 with self.assertRaises(TypeError): calcula_area_circunferencia(chamada) def test_area_para_raio_0_ou_negativo_d...
30.323529
72
0.71581
4a253dfcdfcf466b790bbe04e87612542e92c627
1,079
py
Python
scripts/xml_to_csv.py
freds0/capybara_dataset
f6ba28f22064176c574629ea5a7cc2354acbcc78
[ "MIT" ]
1
2021-12-02T19:59:05.000Z
2021-12-02T19:59:05.000Z
scripts/xml_to_csv.py
freds0/capybara_dataset
f6ba28f22064176c574629ea5a7cc2354acbcc78
[ "MIT" ]
null
null
null
scripts/xml_to_csv.py
freds0/capybara_dataset
f6ba28f22064176c574629ea5a7cc2354acbcc78
[ "MIT" ]
null
null
null
import os import glob import pandas as pd import xml.etree.ElementTree as ET def xml_to_csv(path): xml_list = [] for xml_file in glob.glob(path + '/*.xml'): tree = ET.parse(xml_file) root = tree.getroot() for member in root.findall('object'): value = (root.find('filename')....
29.972222
90
0.534754
4a253f1b4cdf808489273729435c0bf560451acf
7,675
py
Python
FusionIIIT/Fusion/settings/common.py
gshubha/Fusion
7a00a88a65b44257efefb49796a1aca8354e5e34
[ "bzip2-1.0.6" ]
1
2021-03-04T16:18:46.000Z
2021-03-04T16:18:46.000Z
FusionIIIT/Fusion/settings/common.py
gshubha/Fusion
7a00a88a65b44257efefb49796a1aca8354e5e34
[ "bzip2-1.0.6" ]
null
null
null
FusionIIIT/Fusion/settings/common.py
gshubha/Fusion
7a00a88a65b44257efefb49796a1aca8354e5e34
[ "bzip2-1.0.6" ]
null
null
null
''' Django settings for Fusion project. Generated by 'django-admin startproject' using Django 1.11.4. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ ''' import os ...
27.607914
91
0.704625
4a253f24f234e5415ffac9d7c992eb31f7a89121
665
py
Python
e_commerce/cart/urls.py
MiKueen/Django
67afc73676a9a58d4d0badc5b53410f164846b79
[ "Apache-2.0" ]
null
null
null
e_commerce/cart/urls.py
MiKueen/Django
67afc73676a9a58d4d0badc5b53410f164846b79
[ "Apache-2.0" ]
8
2019-08-06T02:03:39.000Z
2021-06-10T18:07:47.000Z
e_commerce/cart/urls.py
MiKueen/Django
67afc73676a9a58d4d0badc5b53410f164846b79
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from .views import ( add_to_cart, delete_from_cart, order_details, checkout, update_transaction_records, success ) app_name = 'cart' urlpatterns = [ url(r'^add-to-cart/(?P<item_id>[-\w]+)/$', add_to_cart, name="add_to_cart"), url(r'^order-summary/$', o...
30.227273
85
0.655639
4a253fb02056eb79413cfcb2b6e1844d7bf64702
25,143
py
Python
jupyterlab_gcsfilebrowser/jupyterlab_gcsfilebrowser/handlers.py
angelakuo/jupyter-extensions
06efeb0240e7bbba59b8dc7b4941ab4301737471
[ "Apache-2.0" ]
null
null
null
jupyterlab_gcsfilebrowser/jupyterlab_gcsfilebrowser/handlers.py
angelakuo/jupyter-extensions
06efeb0240e7bbba59b8dc7b4941ab4301737471
[ "Apache-2.0" ]
1
2020-11-17T18:08:16.000Z
2020-11-17T18:08:16.000Z
jupyterlab_gcsfilebrowser/jupyterlab_gcsfilebrowser/handlers.py
mwiewior/jupyter-extensions
b928265ee22246ac2761a5439b8363e98ec735e6
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 """Request handler classes for the extensions.""" import base64 import json import re import tornado.gen as gen import os import datetime import notebook import nbformat from collections import namedtuple from notebook.base.handlers import APIHandler, app_log from google.cloud import storage # us...
29.545241
80
0.632462
4a25404ad6d90e52b39c4d69a76254f499eb983f
16,866
py
Python
dschema/dschema.py
Teriks/dschema
0e76088b2d969695ac7a7e5add7c838c429e4462
[ "BSD-3-Clause" ]
null
null
null
dschema/dschema.py
Teriks/dschema
0e76088b2d969695ac7a7e5add7c838c429e4462
[ "BSD-3-Clause" ]
null
null
null
dschema/dschema.py
Teriks/dschema
0e76088b2d969695ac7a7e5add7c838c429e4462
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018, Teriks # All rights reserved. # # dschema is distributed under the following BSD 3-Clause License # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the...
40.73913
207
0.580517
4a25408df901febd9e970cb060d4f6e114f76849
398
py
Python
search.py
AlexHerry/python
55b1932bfb3a7cdb237267d2a24dd6910db2fd20
[ "MIT" ]
null
null
null
search.py
AlexHerry/python
55b1932bfb3a7cdb237267d2a24dd6910db2fd20
[ "MIT" ]
null
null
null
search.py
AlexHerry/python
55b1932bfb3a7cdb237267d2a24dd6910db2fd20
[ "MIT" ]
null
null
null
#-*-coding:utf-8 -*- import easygui easygui.msgbox("我们正在寻找10-12岁的女孩") while(1): sex = easygui.enterbox("你是男孩还是女孩。如果你是男生,请输入m;如果你是女生,请输入f") if sex == 'm' or sex == 'f': break; else: easygui.msgbox("请输入正确的性别") if sex == 'm': easygui.msgbox("你不可以加入我们的球队") else: age = easygui.integerbox(...
26.533333
62
0.60804
4a2541359f1314a7bc5ff80957edc49d3e945f3f
779
py
Python
post/urls.py
CosBett/Prime-InstaClone
08b8ed0c4b6da712e51290dc477063c48b408f96
[ "Unlicense" ]
null
null
null
post/urls.py
CosBett/Prime-InstaClone
08b8ed0c4b6da712e51290dc477063c48b408f96
[ "Unlicense" ]
null
null
null
post/urls.py
CosBett/Prime-InstaClone
08b8ed0c4b6da712e51290dc477063c48b408f96
[ "Unlicense" ]
null
null
null
from django.urls import path,include from . import views from django.contrib.auth import views as auth_views urlpatterns = [ path('',views.landing_page, name = 'landing_page' ), path('signup/',views.sign_up, name = 'signup' ), path('home/',views.index, name = 'homepage' ), path('', include('django.cont...
41
76
0.676508
4a25429ba772637bbc74a0c843cee10719f22f31
5,294
py
Python
test/test_core/test_permission.py
CherryGS/nonebot_plugin_PCtrl
96858d9deabd6c9db49db6b67157aeeead8b910a
[ "MIT" ]
2
2022-01-07T11:15:00.000Z
2022-03-18T17:22:15.000Z
test/test_core/test_permission.py
CherryGS/nonebot_plugin_PCtrl
96858d9deabd6c9db49db6b67157aeeead8b910a
[ "MIT" ]
1
2022-01-10T15:58:20.000Z
2022-01-21T00:25:04.000Z
test/test_core/test_permission.py
CherryGS/nonebot_plugin_PCtrl
96858d9deabd6c9db49db6b67157aeeead8b910a
[ "MIT" ]
null
null
null
from random import choices, randint, sample import pytest from controller.core.permission import ( PyUserPerm, UserPerm, del_perms, get_perms, insert_perm_after_query, insert_perm_ignore, insert_perm_update, merge_perm, set_perms, ) from controller.methods import DISABLE_TYPE, ENABL...
33.935897
88
0.629581
4a25429eec76bc02932c820eb686e9be244bf8c5
9,450
py
Python
messager/common/rpc/proxy.py
snowflying/messager
83a23997047a918d82db1123b0005b34c50b1403
[ "Apache-2.0" ]
null
null
null
messager/common/rpc/proxy.py
snowflying/messager
83a23997047a918d82db1123b0005b34c50b1403
[ "Apache-2.0" ]
null
null
null
messager/common/rpc/proxy.py
snowflying/messager
83a23997047a918d82db1123b0005b34c50b1403
[ "Apache-2.0" ]
null
null
null
# Copyright 2012-2013 Red Hat, 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...
41.447368
79
0.637143
4a2543fa09bbd343fdb18bb6f06c029727f3b5ee
9,425
py
Python
server/organisation/fixtures/layouts.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
2
2017-07-04T16:19:09.000Z
2019-08-16T04:54:47.000Z
server/organisation/fixtures/layouts.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
null
null
null
server/organisation/fixtures/layouts.py
coll-gate/collgate
8c2ff1c59adda2bf318040f588c05263317a2812
[ "MIT" ]
1
2018-04-13T08:28:09.000Z
2018-04-13T08:28:09.000Z
# -*- coding: utf-8; -*- # # @file accession_layouts.py # @brief Setup the value for the organisation layouts and types of models of descriptors. # @author Frédéric SCHERMA (INRA UMR1095) # @date 2017-01-03 # @copyright Copyright (c) 2017 INRA/CIRAD # @license MIT (see LICENSE file) # @details LAYOUTS = { 'organi...
35.836502
91
0.282653
4a25446b884f5541bec7410f7db5b208d9ace452
3,361
py
Python
models/augment_cnn.py
FduJyy/bayes_darts
fa46d73e06b710264693f108433ee1f555e97456
[ "MIT" ]
null
null
null
models/augment_cnn.py
FduJyy/bayes_darts
fa46d73e06b710264693f108433ee1f555e97456
[ "MIT" ]
null
null
null
models/augment_cnn.py
FduJyy/bayes_darts
fa46d73e06b710264693f108433ee1f555e97456
[ "MIT" ]
null
null
null
""" CNN for network augmentation """ import torch import torch.nn as nn from models.augment_cells import AugmentCell from models import ops class AuxiliaryHead(nn.Module): """ Auxiliary head in 2/3 place of network to let the gradient flow well """ def __init__(self, input_size, C, n_classes): """ ass...
32.95098
95
0.55787
4a2544e1329cdb4d132f333a4a0724ad0f455bd0
13,855
py
Python
salt/modules/upstart.py
bogdanr/salt
4f198525873a1b7da3fbb9994dbb40d381494922
[ "Apache-2.0" ]
null
null
null
salt/modules/upstart.py
bogdanr/salt
4f198525873a1b7da3fbb9994dbb40d381494922
[ "Apache-2.0" ]
null
null
null
salt/modules/upstart.py
bogdanr/salt
4f198525873a1b7da3fbb9994dbb40d381494922
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module for the management of upstart systems. The Upstart system only supports service starting, stopping and restarting. Currently (as of Ubuntu 12.04) there is no tool available to disable Upstart services (like update-rc.d). This[1] is the recommended way to disable an Upstart service. S...
26.491396
183
0.631036
4a25450e14bcba9d9c9eb0bbfe38fa196caa31f1
5,453
py
Python
saleor/graphql/webhook/enums.py
BearerPipelineTest/saleor
1257145235cd2f59e932ac067ee18673fd5b6a54
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/webhook/enums.py
BearerPipelineTest/saleor
1257145235cd2f59e932ac067ee18673fd5b6a54
[ "CC-BY-4.0" ]
52
2021-12-27T04:33:50.000Z
2022-03-28T04:54:44.000Z
saleor/graphql/webhook/enums.py
sakapong/saleor
a1a7a223bba28fc7941e8f270edbc1aa7c6b71f4
[ "CC-BY-4.0" ]
null
null
null
import graphene from ...webhook.event_types import WebhookEventAsyncType, WebhookEventSyncType from ..core.utils import str_to_enum checkout_updated_event_enum_description = ( "A checkout is updated. It also triggers all updates related to the checkout." ) order_confirmed_event_enum_description = ( "An order...
46.606838
87
0.777003
4a25458a9c2856d534debeac5aa77b7e4b824de3
2,899
py
Python
rotate/k2.py
dfm/cerot
9c62039b21edc90bd09b6466e8000fd2fb7329ea
[ "Apache-2.0" ]
null
null
null
rotate/k2.py
dfm/cerot
9c62039b21edc90bd09b6466e8000fd2fb7329ea
[ "Apache-2.0" ]
null
null
null
rotate/k2.py
dfm/cerot
9c62039b21edc90bd09b6466e8000fd2fb7329ea
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function import everest import exoarch import numpy as np from scipy.signal import savgol_filter __all__ = ["get_light_curve"] def sigma_clip(f, thresh=5, window=49): """Get a binary mask of 'good' points using sigma clipping Args: thr...
31.172043
79
0.596758
4a2545fee14b103dd69c1e377d63813498b6cd95
28
py
Python
gui/test.py
ErlendHer/AlgoView
946c2bb38e2ab3af011281c9672af4fcca84ae87
[ "Apache-2.0" ]
1
2020-11-26T09:37:28.000Z
2020-11-26T09:37:28.000Z
gui/test.py
ErlendHer/AlgoView
946c2bb38e2ab3af011281c9672af4fcca84ae87
[ "Apache-2.0" ]
null
null
null
gui/test.py
ErlendHer/AlgoView
946c2bb38e2ab3af011281c9672af4fcca84ae87
[ "Apache-2.0" ]
1
2020-12-09T17:18:12.000Z
2020-12-09T17:18:12.000Z
a = 2 b = {} print(type(b))
7
14
0.464286
4a25460b42f3b32206405e2010afb3bea3d17db4
2,097
py
Python
aliyun-python-sdk-imageprocess/aliyunsdkimageprocess/request/v20200320/DetectKneeKeypointXRayRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-imageprocess/aliyunsdkimageprocess/request/v20200320/DetectKneeKeypointXRayRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-imageprocess/aliyunsdkimageprocess/request/v20200320/DetectKneeKeypointXRayRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.822581
99
0.758226
4a25463c2286657f04779a6626378ae0a018c74f
175
py
Python
Python/swapping_variable_values.py
aaaaaaaaaanyaaaaaaaaa/Hello-world
ff47220589c34c1cd4555346e92d3255b433975f
[ "MIT" ]
3
2019-03-22T06:28:17.000Z
2019-03-29T17:15:49.000Z
Python/swapping_variable_values.py
aaaaaaaaaanyaaaaaaaaa/Hello-world
ff47220589c34c1cd4555346e92d3255b433975f
[ "MIT" ]
1
2015-10-18T11:24:08.000Z
2015-10-18T11:34:07.000Z
Python/swapping_variable_values.py
aaaaaaaaaanyaaaaaaaaa/Hello-world
ff47220589c34c1cd4555346e92d3255b433975f
[ "MIT" ]
3
2018-10-10T18:20:01.000Z
2018-10-21T13:51:43.000Z
#We take 2 variables with certain values: a= 10 b= 20 # Swapping the values of the variables: b= a + b a= b - a b= b - a # Printing out to check the values: print a print b
14.583333
41
0.674286
4a25469c1fec921850514f4a960d2879bd4361f9
18,859
py
Python
python/common/diagnostic/pydevDebug/runfiles.py
CountZer0/PipelineConstructionSet
0aa73a8a63c72989b2d1c677efd78dad4388d335
[ "BSD-3-Clause" ]
21
2015-04-27T05:01:36.000Z
2021-11-22T13:45:14.000Z
python/common/diagnostic/pydevDebug/runfiles.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
null
null
null
python/common/diagnostic/pydevDebug/runfiles.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
7
2015-04-11T11:37:19.000Z
2020-05-22T09:49:04.000Z
import fnmatch import os.path import re import sys import unittest try: __setFalse = False except: import __builtin__ setattr(__builtin__, 'True', 1) setattr(__builtin__, 'False', 0) #================================================================================================================...
35.516008
125
0.514025
4a254739cc3c94bd18fe79235462d71e0355becc
15,776
py
Python
yatube/posts/tests/test_views.py
annrud/post_publishing_platform
c065799203c0800ce05d038f3491fb6184b5cbc7
[ "MIT" ]
1
2021-11-09T09:40:37.000Z
2021-11-09T09:40:37.000Z
yatube/posts/tests/test_views.py
annrud/post_publishing_platform
c065799203c0800ce05d038f3491fb6184b5cbc7
[ "MIT" ]
null
null
null
yatube/posts/tests/test_views.py
annrud/post_publishing_platform
c065799203c0800ce05d038f3491fb6184b5cbc7
[ "MIT" ]
null
null
null
import shutil import tempfile from http import HTTPStatus from django import forms from django.conf import settings from django.core.cache import cache from django.core.files.uploadedfile import SimpleUploadedFile from django.core.paginator import Page from django.test import Client, TestCase from django.test.utils im...
40.976623
79
0.61771
4a25480eae4cc89441bdfba7a0937e6c8735d281
82
py
Python
line/messaging/events/unfollow.py
shlee322/python-line-api
674a9c0f4f7e4faa5d813fbd3d6e603b128d9be7
[ "Apache-2.0" ]
6
2016-10-02T15:27:55.000Z
2016-12-01T15:08:31.000Z
line/messaging/events/unfollow.py
shlee322/python-line-api
674a9c0f4f7e4faa5d813fbd3d6e603b128d9be7
[ "Apache-2.0" ]
null
null
null
line/messaging/events/unfollow.py
shlee322/python-line-api
674a9c0f4f7e4faa5d813fbd3d6e603b128d9be7
[ "Apache-2.0" ]
3
2016-10-04T16:43:48.000Z
2020-03-01T08:08:37.000Z
from .event import Event class UnfollowEvent(Event): type = 'unfollow'
13.666667
28
0.670732
4a2548cb6ae24444d4e10984f4f26784ab43ef03
5,970
py
Python
beta/tests/tensorflow/sparsity/magnitude/test_algorithm.py
kshpv/nncf_pytorch
9f7035e31732f5a3c0403edce759729d9425d4a5
[ "Apache-2.0" ]
null
null
null
beta/tests/tensorflow/sparsity/magnitude/test_algorithm.py
kshpv/nncf_pytorch
9f7035e31732f5a3c0403edce759729d9425d4a5
[ "Apache-2.0" ]
null
null
null
beta/tests/tensorflow/sparsity/magnitude/test_algorithm.py
kshpv/nncf_pytorch
9f7035e31732f5a3c0403edce759729d9425d4a5
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
44.887218
114
0.740536
4a2548f625053c4de7c52887b83958b1bc69ae8b
370
py
Python
healthcheck/settings/dev.py
praekeltfoundation/healthcheck
3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba
[ "BSD-3-Clause" ]
null
null
null
healthcheck/settings/dev.py
praekeltfoundation/healthcheck
3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba
[ "BSD-3-Clause" ]
23
2020-07-16T15:40:35.000Z
2021-12-13T13:59:30.000Z
healthcheck/settings/dev.py
praekeltfoundation/healthcheck
3f8b3722ea41c2d81c706e0f9a3473ba2cb2f2ba
[ "BSD-3-Clause" ]
1
2021-02-24T04:58:40.000Z
2021-02-24T04:58:40.000Z
from healthcheck.settings.base import * # noqa: F403 SECRET_KEY = env.str("SECRET_KEY", "testsecretkey") # noqa: F405 DEBUG = env.bool("DEBUG", True) # noqa: F405 DATABASES = { "default": env.db( # noqa: F405 default="postgres://postgres:postgres@localhost:5432/healthcheck" ), } ALLOWED_HOSTS = env...
33.636364
73
0.672973
4a254a198bdd57cf8e6bbad3b41ec240ff6d6d17
9,322
py
Python
voltagebudget/neurons.py
voytekresearch/voltagebudget
358318a3d3b28d18a3d2a7321b0691479d2536df
[ "MIT" ]
null
null
null
voltagebudget/neurons.py
voytekresearch/voltagebudget
358318a3d3b28d18a3d2a7321b0691479d2536df
[ "MIT" ]
null
null
null
voltagebudget/neurons.py
voytekresearch/voltagebudget
358318a3d3b28d18a3d2a7321b0691479d2536df
[ "MIT" ]
null
null
null
import inspect import csv import numpy as np from brian2 import * from copy import deepcopy from voltagebudget.util import burst from voltagebudget.util import pulse def shadow_adex(N, time, ns, ts, **adex_kwargs): """Est. the 'shadow voltage' of the AdEx membrane voltage.""" # In the neuron can't fire, we're...
28.078313
136
0.513624
4a254a7a06e89fd5b3018e75708e502d983fe7ee
4,045
py
Python
tests/test_endpoints_cbv.py
jekel/sanic-jwt
4f6ab07376ad90011d40e205feacae8219359d6f
[ "MIT" ]
226
2017-09-05T08:23:58.000Z
2022-03-28T09:23:47.000Z
tests/test_endpoints_cbv.py
jekel/sanic-jwt
4f6ab07376ad90011d40e205feacae8219359d6f
[ "MIT" ]
179
2017-09-27T08:33:16.000Z
2022-01-28T20:35:23.000Z
tests/test_endpoints_cbv.py
jekel/sanic-jwt
4f6ab07376ad90011d40e205feacae8219359d6f
[ "MIT" ]
45
2017-10-14T10:26:46.000Z
2022-02-04T15:01:20.000Z
import jwt from sanic import Sanic from sanic.response import json from sanic.views import HTTPMethodView from sanic_jwt import exceptions, Initialize from sanic_jwt.decorators import protected class User(object): def __init__(self, id, username, password): self.id = id self.username = username ...
30.186567
78
0.651422
4a254b3dd516a4e6308875532bce823495328fe1
2,294
py
Python
Logica-Fuzzy/ex02.py
andressagomes26/Logica-Fuzzy
b0fcd987409a6d3a1ac5c877932d07ec6e75e261
[ "MIT" ]
null
null
null
Logica-Fuzzy/ex02.py
andressagomes26/Logica-Fuzzy
b0fcd987409a6d3a1ac5c877932d07ec6e75e261
[ "MIT" ]
null
null
null
Logica-Fuzzy/ex02.py
andressagomes26/Logica-Fuzzy
b0fcd987409a6d3a1ac5c877932d07ec6e75e261
[ "MIT" ]
null
null
null
from ex01 import valor_min_PRESSAO, valor_medio_PRESSAO, valor_max_PRESSAO from ex01 import valor_min_VELOCIDADE, valor_max_VELOCIDADE ''' PASSO 2: Inferir (aplicar as regras) * Aplicar os valores nebulosos aos antecedentes das regras do sistema. ''' pressao_pedal = float(input('Informe a Pressão no Pedal do...
29.410256
79
0.69442
4a254bb8229fb36cd4f9d5e888ea1e984fe91392
188
py
Python
Processing.py
CommanderStorm/Roseninselachter-Processor
b9c264846ed39890fb3003662f063ec7123360bd
[ "Apache-2.0" ]
1
2019-11-21T10:48:09.000Z
2019-11-21T10:48:09.000Z
Processing.py
CommanderStorm/Roseninselachter-Processor
b9c264846ed39890fb3003662f063ec7123360bd
[ "Apache-2.0" ]
null
null
null
Processing.py
CommanderStorm/Roseninselachter-Processor
b9c264846ed39890fb3003662f063ec7123360bd
[ "Apache-2.0" ]
null
null
null
import json def processing(JSONDaten_Filename): with open(JSONDaten_Filename) as json_file: data = json.load(json_file) print(data['vertecies']) print(data['edges'])
20.888889
47
0.696809
4a254ce86aa51ffc3706be1b1589cb389422091e
1,265
py
Python
project/tests/test__config.py
SweedInsight/flask-jwt-auth-backend
a80f0b2ce7880cdbe59931565ec9f6fcbbfa552f
[ "MIT" ]
null
null
null
project/tests/test__config.py
SweedInsight/flask-jwt-auth-backend
a80f0b2ce7880cdbe59931565ec9f6fcbbfa552f
[ "MIT" ]
null
null
null
project/tests/test__config.py
SweedInsight/flask-jwt-auth-backend
a80f0b2ce7880cdbe59931565ec9f6fcbbfa552f
[ "MIT" ]
null
null
null
# project/server/tests/test_config.py import unittest from flask import current_app from flask_testing import TestCase from project.server import app class TestDevelopmentConfig(TestCase): def create_app(self): app.config.from_object('project.server.config.DevelopmentConfig') return app d...
27.5
107
0.702767
4a254d33e2e5f0965ffd89e2fae124095ca31916
6,857
py
Python
eop/dataset.py
redhog/EmbarrassmentOfPandas
e0c5c38bfaa79c04424f0d8ecde2c83b7da64908
[ "MIT" ]
null
null
null
eop/dataset.py
redhog/EmbarrassmentOfPandas
e0c5c38bfaa79c04424f0d8ecde2c83b7da64908
[ "MIT" ]
null
null
null
eop/dataset.py
redhog/EmbarrassmentOfPandas
e0c5c38bfaa79c04424f0d8ecde2c83b7da64908
[ "MIT" ]
1
2021-04-28T22:03:09.000Z
2021-04-28T22:03:09.000Z
import uuid import weakref import inspect def valuerepr(obj): s = str(obj) if "\n" not in s: return s[:30] t = type(obj) t = "%s.%s" % (t.__module__, t.__name__) try: return "<%s#%s>" % (t, hash(obj)) except: return "<%s@%s>" % (t, id(obj)) def tagify(tag): if isins...
32.808612
114
0.586116
4a254d47f70fe89c5643e5985dd52d55f47dfd33
42
py
Python
hpvm/projects/predtuner/predtuner/approxes/__init__.py
vzyrianov/hpvm-autograd
521cc3b684531548aea75f9fe3cc673aaa4a2e90
[ "Apache-2.0" ]
null
null
null
hpvm/projects/predtuner/predtuner/approxes/__init__.py
vzyrianov/hpvm-autograd
521cc3b684531548aea75f9fe3cc673aaa4a2e90
[ "Apache-2.0" ]
null
null
null
hpvm/projects/predtuner/predtuner/approxes/__init__.py
vzyrianov/hpvm-autograd
521cc3b684531548aea75f9fe3cc673aaa4a2e90
[ "Apache-2.0" ]
null
null
null
from .approxes import get_knobs_from_file
21
41
0.880952
4a254df0989101ec50d259180e9ea8fd2cab294a
1,238
py
Python
imodels/experimental/bartpy/sigma.py
stjordanis/imodels
3c31df3f3d600d3b9c07fabdffd375b93e139c50
[ "MIT" ]
102
2019-07-16T13:45:35.000Z
2020-09-14T19:12:49.000Z
imodels/experimental/bartpy/sigma.py
stjordanis/imodels
3c31df3f3d600d3b9c07fabdffd375b93e139c50
[ "MIT" ]
2
2020-01-03T20:47:14.000Z
2020-01-03T21:17:39.000Z
imodels/experimental/bartpy/sigma.py
stjordanis/imodels
3c31df3f3d600d3b9c07fabdffd375b93e139c50
[ "MIT" ]
8
2019-08-09T08:40:34.000Z
2020-09-06T17:51:10.000Z
class Sigma: """ A representation of the sigma term in the model. Specifically, this is the sigma of y itself, i.e. the sigma in y ~ Normal(sum_of_trees, sigma) The default prior is an inverse gamma distribution on the variance The parametrization is slightly different to the numpy gamma v...
33.459459
107
0.66559
4a254e332cc601cb1f42236589c430f0f4e438a2
2,943
py
Python
day_6.py
kurtrm/advent_of_code_2018
a3db9df31de730479c8c2b3f2869b274a0e024e9
[ "MIT" ]
null
null
null
day_6.py
kurtrm/advent_of_code_2018
a3db9df31de730479c8c2b3f2869b274a0e024e9
[ "MIT" ]
null
null
null
day_6.py
kurtrm/advent_of_code_2018
a3db9df31de730479c8c2b3f2869b274a0e024e9
[ "MIT" ]
null
null
null
""" (1, 1), (8, 3) -> (5, 1), (3, 4) (a, b), (c, d) (a - c) + (b - d) 4 2 a a a a a . c c c c a A a a a . c c c c a a a d d e c c c c a a d d d e c c C c . . d D d e e c c c b b . d e E e e c c b B b . e e e e . . b b b . e e e f f f b b b . e e f f f f b b b . f f f f F f """ import numpy as np f...
31.645161
100
0.584098
4a254e535c170f16cb768ab0327e0ad4beb92eb0
1,346
py
Python
master_test1.py
DACUS1995/NAO---Robot-Human-interaction
f14233850afd83c3a450f39944745b5f7288ebd9
[ "MIT" ]
1
2019-08-30T13:07:24.000Z
2019-08-30T13:07:24.000Z
master_test1.py
DACUS1995/NAO---Robot-Human-interaction
f14233850afd83c3a450f39944745b5f7288ebd9
[ "MIT" ]
null
null
null
master_test1.py
DACUS1995/NAO---Robot-Human-interaction
f14233850afd83c3a450f39944745b5f7288ebd9
[ "MIT" ]
null
null
null
import argparse from naoqi import ALProxy from naoqi import ALBroker import time IP = "172.19.8.207" PORT = 9559 def main1(robotIP, PORT): motionProxy = ALProxy("ALMotion", robotIP, PORT) postureProxy = ALProxy("ALRobotPosture", robotIP, PORT) # Wake up robot #motionProxy.wakeUp() #time.sleep(5...
24.472727
115
0.679792
4a254ec3a5fc39927be2ca8daa0a47562fc65ff5
1,921
py
Python
lm_eval/tasks/anli.py
bigscience-workshop/lm-evaluation-harness
c639c81974d6d0efea2e471f6292cf3c6ae67e4c
[ "MIT" ]
null
null
null
lm_eval/tasks/anli.py
bigscience-workshop/lm-evaluation-harness
c639c81974d6d0efea2e471f6292cf3c6ae67e4c
[ "MIT" ]
null
null
null
lm_eval/tasks/anli.py
bigscience-workshop/lm-evaluation-harness
c639c81974d6d0efea2e471f6292cf3c6ae67e4c
[ "MIT" ]
null
null
null
""" Adversarial NLI: A New Benchmark for Natural Language Understanding https://arxiv.org/pdf/1910.14599.pdf Adversarial NLI (ANLI) is a dataset collected via an iterative, adversarial human-and-model-in-the-loop procedure. It consists of three rounds that progressively increase in difficulty and complexity, and each ...
26.315068
106
0.690265
4a254f0d131438f3f59729371cae801ecdc12935
3,939
py
Python
modules/icinga/files/usr/local/bin/check_pingdom.py
camdesgov/govuk-puppet
927a0e617e7e678a0ef11a5409628487f3c828b0
[ "MIT" ]
null
null
null
modules/icinga/files/usr/local/bin/check_pingdom.py
camdesgov/govuk-puppet
927a0e617e7e678a0ef11a5409628487f3c828b0
[ "MIT" ]
null
null
null
modules/icinga/files/usr/local/bin/check_pingdom.py
camdesgov/govuk-puppet
927a0e617e7e678a0ef11a5409628487f3c828b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Testing: ./check_pingdom.py <checkid> # Pingdom IDs are found in manifests/config/pingdom.pp # You must have an /etc/pingdom.ini which looks like templates/etc/pingdom.ini.erb # import base64 import sys import ConfigParser import json from urllib2 import * # General Config pingdom_api...
33.381356
129
0.593552
4a254f7bf2f79d2f3e6b8d64c203c4b9778f1740
446
py
Python
users/migrations/0002_users_active_default.py
mitodl/ocw-studio
949f96ec0647064f8d495ebdd22d66eea7d024a5
[ "BSD-3-Clause" ]
2
2020-08-07T15:55:41.000Z
2021-08-16T18:28:09.000Z
users/migrations/0002_users_active_default.py
mitodl/ocw-studio
949f96ec0647064f8d495ebdd22d66eea7d024a5
[ "BSD-3-Clause" ]
924
2020-08-10T17:54:19.000Z
2022-03-31T21:15:17.000Z
users/migrations/0002_users_active_default.py
mitodl/ocw-studio
949f96ec0647064f8d495ebdd22d66eea7d024a5
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.6 on 2021-04-02 17:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("users", "0001_initial"), ] operations = [ migrations.AlterField( model_name="user", name="is_active", fi...
21.238095
68
0.565022
4a254fa6c1504aa8e289dc2e95b65874a147f54d
7,662
py
Python
controllers/controller_commons/controller_communication_interface.py
tuncali/VeTeF
3810cffd87fc6a9d815774cb3d914d3a47288055
[ "Apache-2.0" ]
null
null
null
controllers/controller_commons/controller_communication_interface.py
tuncali/VeTeF
3810cffd87fc6a9d815774cb3d914d3a47288055
[ "Apache-2.0" ]
null
null
null
controllers/controller_commons/controller_communication_interface.py
tuncali/VeTeF
3810cffd87fc6a9d815774cb3d914d3a47288055
[ "Apache-2.0" ]
null
null
null
"""Defines ControllerCommunicationInterface class""" import struct from webots_controller_parameter import WebotsControllerParameter class ControllerCommunicationInterface(object): """ControllerCommunicationInterface class handles the messaging between supervisor and the vehicle controllers.""" VHC_POSITION_M...
47.590062
119
0.647481
4a254fd429fb9e84e9247dffcda5fab0b5f33c6b
3,115
py
Python
e-paper/RaspberryPi&JetsonNano/python/examples/epd_7in5_V2_test.py
ms900ft/slowmovieui
1238bb55cc092889bed2123f0803c93592a43016
[ "MIT" ]
null
null
null
e-paper/RaspberryPi&JetsonNano/python/examples/epd_7in5_V2_test.py
ms900ft/slowmovieui
1238bb55cc092889bed2123f0803c93592a43016
[ "MIT" ]
null
null
null
e-paper/RaspberryPi&JetsonNano/python/examples/epd_7in5_V2_test.py
ms900ft/slowmovieui
1238bb55cc092889bed2123f0803c93592a43016
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import sys import os picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic') libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib') if os.path.exists(libdir): sys.path.append(libdir) import logging from ...
34.230769
90
0.622472
4a254ff7e4a7193b09dcce743ce741ac7b1dfcb2
5,459
py
Python
test/generate.py
charles-typ/pandas
e3e4fc350aa2234569fe488889254ffb1e86d30b
[ "BSD-3-Clause" ]
null
null
null
test/generate.py
charles-typ/pandas
e3e4fc350aa2234569fe488889254ffb1e86d30b
[ "BSD-3-Clause" ]
null
null
null
test/generate.py
charles-typ/pandas
e3e4fc350aa2234569fe488889254ffb1e86d30b
[ "BSD-3-Clause" ]
null
null
null
import string import timeit import numpy as np import logging logging.basicConfig(level = logging.INFO,format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s') logger = logging.getLogger(__name__) from pandas import DataFrame, MultiIndex, Series, concat, date_range, merge, merge_asof from pandas import pipelin...
34.99359
207
0.631618
4a25506c6926ec9655aec0b93c206a67531f8984
3,266
py
Python
minecraft/__init__.py
ky13/pyCraft
27ebbbb04e3c3c5ade88ec9452ccfd6261f79625
[ "Apache-2.0" ]
1
2018-12-13T08:39:26.000Z
2018-12-13T08:39:26.000Z
minecraft/__init__.py
vEaglee/pyCraft
316ea4d63d6be5c59fe4b121db920b117130c6e9
[ "Apache-2.0" ]
null
null
null
minecraft/__init__.py
vEaglee/pyCraft
316ea4d63d6be5c59fe4b121db920b117130c6e9
[ "Apache-2.0" ]
null
null
null
""" A modern, Python3-compatible, well-documented library for communicating with a MineCraft server. """ __version__ = "0.5.0" SUPPORTED_MINECRAFT_VERSIONS = { '1.8': 47, '1.8.1': 47, '1.8.2': 47, '1.8.3': 47, '1.8.4': 47, '1.8.5': 47, '1.8.6': 4...
23.496403
71
0.390386
4a2551005c8c4924f44239999e84d6d65b6e3e7a
9,491
py
Python
Packs/GenericSQL/Integrations/GenericSQL/GenericSQL_test.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/GenericSQL/Integrations/GenericSQL/GenericSQL_test.py
mazmat-panw/content
024a65c1dea2548e2637a9cbbe54966e9e34a722
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/GenericSQL/Integrations/GenericSQL/GenericSQL_test.py
henry-sue-pa/content
043c6badfb4f9c80673cad9242fdea72efe301f7
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import os import pytest import sqlalchemy from GenericSQL import Client, sql_query_execute, generate_default_port_by_dialect class ResultMock: def __init__(self): pass def fetchall(self): return [] ARGS1 = { 'query': "select Name from city", 'limit': 5, 'skip': 0 } ARGS2 = { ...
37.074219
127
0.597724
4a2551cbd3d782426815501d197c862dafbfba17
958
py
Python
greendoge/wallet/trade_record.py
grayfallstown/greendoge-blockchain
31e325913374d694dc0859140d006a642e7f95ac
[ "Apache-2.0" ]
44
2021-07-06T10:09:06.000Z
2022-02-09T04:30:14.000Z
greendoge/wallet/trade_record.py
grayfallstown/greendoge-blockchain
31e325913374d694dc0859140d006a642e7f95ac
[ "Apache-2.0" ]
67
2021-07-06T11:57:18.000Z
2022-02-02T16:14:15.000Z
greendoge/wallet/trade_record.py
grayfallstown/greendoge-blockchain
31e325913374d694dc0859140d006a642e7f95ac
[ "Apache-2.0" ]
16
2021-07-06T10:36:37.000Z
2022-03-15T08:35:16.000Z
from dataclasses import dataclass from typing import List, Optional, Tuple from greendoge.types.blockchain_format.coin import Coin from greendoge.types.blockchain_format.sized_bytes import bytes32 from greendoge.types.spend_bundle import SpendBundle from greendoge.util.ints import uint8, uint32, uint64 from greendoge....
31.933333
65
0.769311
4a25526a8d67085dddf76948161bcbe3cd110bae
3,100
py
Python
data/p2DJ/New/R2/benchmark/startQiskit_QC62.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startQiskit_QC62.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p2DJ/New/R2/benchmark/startQiskit_QC62.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=2 # total number=10 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy a...
28.181818
82
0.624516
4a2552949421e005c478ff95f2b666fde31a09a8
5,179
py
Python
src/SocialNetwork_API/services/user.py
mungpham/mungpham
3545dafdb498503d2f138d4b7515a7ae8f195994
[ "MIT" ]
null
null
null
src/SocialNetwork_API/services/user.py
mungpham/mungpham
3545dafdb498503d2f138d4b7515a7ae8f195994
[ "MIT" ]
null
null
null
src/SocialNetwork_API/services/user.py
mungpham/mungpham
3545dafdb498503d2f138d4b7515a7ae8f195994
[ "MIT" ]
null
null
null
import _thread import time import hashlib from django.core.exceptions import ValidationError from django.db import transaction from django.db.models import Q from django.conf import settings from django.template.defaultfilters import slugify from SocialNetwork_API.services.base import BaseService from SocialNetwork_A...
31.198795
112
0.575208
4a2552c2e1a451429efc2cb457e1d002521e8ba4
887
py
Python
setup.py
alastairflynn/cartograph
c538d25b438315a23ca04fbfab63c7cef082a8a8
[ "MIT" ]
null
null
null
setup.py
alastairflynn/cartograph
c538d25b438315a23ca04fbfab63c7cef082a8a8
[ "MIT" ]
null
null
null
setup.py
alastairflynn/cartograph
c538d25b438315a23ca04fbfab63c7cef082a8a8
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="cartograph", version="0.0.1", author="Alastair Flynn", author_email="contact@alastairflynn.com", description="A package for drawing map tiles", long_description=long_description, l...
34.115385
81
0.659526
4a2553dcb28cf359d8cb703bababa1f262a9f332
4,885
py
Python
docs/conf.py
alexwohletz/cookie_test
6bef4af9468ca1897f3c8fe0519e49fa9eaeeaaf
[ "MIT" ]
null
null
null
docs/conf.py
alexwohletz/cookie_test
6bef4af9468ca1897f3c8fe0519e49fa9eaeeaaf
[ "MIT" ]
null
null
null
docs/conf.py
alexwohletz/cookie_test
6bef4af9468ca1897f3c8fe0519e49fa9eaeeaaf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # cookie_test documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this #...
29.786585
77
0.68741
4a2553dfe94a433e1a41e6be317c6fc66103c950
92,289
py
Python
pattern/db/__init__.py
kkoch986/pattern
db807c888dcd15f515afe31753c9b0345a11b542
[ "BSD-3-Clause" ]
2
2015-12-08T15:59:25.000Z
2016-03-15T20:11:29.000Z
pattern/db/__init__.py
kkoch986/pattern
db807c888dcd15f515afe31753c9b0345a11b542
[ "BSD-3-Clause" ]
null
null
null
pattern/db/__init__.py
kkoch986/pattern
db807c888dcd15f515afe31753c9b0345a11b542
[ "BSD-3-Clause" ]
null
null
null
#### PATTERN | DB ################################################################################## # -*- coding: utf-8 -*- # Copyright (c) 2010 University of Antwerp, Belgium # Author: Tom De Smedt <tom@organisms.be> # License: BSD (see LICENSE.txt for details). # http://www.clips.ua.ac.be/pages/pattern ############...
42.256868
139
0.559525
4a25549586edecb650f1b129d71d0c890956a683
1,565
py
Python
quantum/common/topics.py
ericwanghp/quantum
1c0d543552c38a5eac6dd08580b73725c5757876
[ "Apache-2.0" ]
1
2021-04-18T15:23:19.000Z
2021-04-18T15:23:19.000Z
quantum/common/topics.py
ericwanghp/quantum
1c0d543552c38a5eac6dd08580b73725c5757876
[ "Apache-2.0" ]
null
null
null
quantum/common/topics.py
ericwanghp/quantum
1c0d543552c38a5eac6dd08580b73725c5757876
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
31.3
70
0.720767
4a2554c67cdf635ffce437accb9865ade0402acd
1,912
py
Python
taivasnet/train-linear.py
ikanher/numpy-MNIST
f41daa6181a04d82667ba4e3f694afcd4b291845
[ "MIT" ]
null
null
null
taivasnet/train-linear.py
ikanher/numpy-MNIST
f41daa6181a04d82667ba4e3f694afcd4b291845
[ "MIT" ]
null
null
null
taivasnet/train-linear.py
ikanher/numpy-MNIST
f41daa6181a04d82667ba4e3f694afcd4b291845
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Trains a linear model to predict y = 2x """ import argparse from taivasnet.dataloaders import RegressionDataLoader from taivasnet.networks import NeuralNet from taivasnet.optimizers import SGD from taivasnet.models import LinearModel if __name__ == '__main__': parser = argparse.Argument...
35.407407
119
0.648536
4a25550b22bbbc7c180dec8d64d346b29dc53e8c
3,099
py
Python
test/test_identity_resource.py
passbase/passbase-python
9d5b9cf21b38c2a50fe3755084ef8291d9e2d4d9
[ "MIT" ]
8
2020-09-09T14:30:46.000Z
2020-10-19T14:09:00.000Z
test/test_identity_resource.py
passbase/passbase-python
9d5b9cf21b38c2a50fe3755084ef8291d9e2d4d9
[ "MIT" ]
null
null
null
test/test_identity_resource.py
passbase/passbase-python
9d5b9cf21b38c2a50fe3755084ef8291d9e2d4d9
[ "MIT" ]
1
2021-04-23T21:05:19.000Z
2021-04-23T21:05:19.000Z
# coding: utf-8 """ Verification API # Introduction <span class=\"subtext\"> Welcome to the Passbase Verifications API docs. This documentation will help you understand our models and the Verification API with its endpoints. Based on this you can build your own system (i.e. verification) and hook it up to Pa...
77.475
2,289
0.708616
4a2556315519d705c70ae91714827e8267823042
6,815
py
Python
p2_continuous-control/Reacher_MultiAgent_Control_Exercise/scripts/model.py
derektan95/drl-algorithms-collection
bd4bcf82d28027c84e919df371ed20576e1c4379
[ "MIT" ]
null
null
null
p2_continuous-control/Reacher_MultiAgent_Control_Exercise/scripts/model.py
derektan95/drl-algorithms-collection
bd4bcf82d28027c84e919df371ed20576e1c4379
[ "MIT" ]
null
null
null
p2_continuous-control/Reacher_MultiAgent_Control_Exercise/scripts/model.py
derektan95/drl-algorithms-collection
bd4bcf82d28027c84e919df371ed20576e1c4379
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F def hidden_init(layer): fan_in = layer.weight.data.size()[0] lim = 1. / np.sqrt(fan_in) return (-lim, lim) class Actor(nn.Module): """Actor (Policy) Model.""" def __init__(self, state_size, action_size, seed, fc...
38.721591
100
0.587087
4a2556bb224fa27a6eab98083eac0a94d01937e5
443
py
Python
zip_file_example/append_file/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
117
2015-12-18T07:18:27.000Z
2022-03-28T00:25:54.000Z
zip_file_example/append_file/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
8
2018-10-03T09:38:46.000Z
2021-12-13T19:51:09.000Z
zip_file_example/append_file/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
28
2016-08-02T17:43:47.000Z
2022-03-21T08:31:12.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # Добавляем файл в архив import zipfile with zipfile.ZipFile('out.zip', mode='w', compression=zipfile.ZIP_DEFLATED) as f: f.write('file_1.txt') f.write('sub_dir/file_1.1.txt', 'file_1.1.txt') f.write('sub_dir/file_1.1.txt') # out.zi...
29.533333
99
0.683973
4a2556cc81a750c8525bf3705cda340e4e4be0fc
14,131
py
Python
python/level1_single_api/9_amct/amct_caffe/resnet50/src/ResNet50_sample.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
25
2020-11-20T09:01:35.000Z
2022-03-29T10:35:38.000Z
python/level1_single_api/9_amct/amct_caffe/resnet50/src/ResNet50_sample.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
5
2021-02-28T20:49:37.000Z
2022-03-04T21:50:27.000Z
python/level1_single_api/9_amct/amct_caffe/resnet50/src/ResNet50_sample.py
Ascend/samples
5e060ddf8c502cf0e248ecbe1c8986e95351cbbd
[ "Apache-2.0" ]
16
2020-12-06T07:26:13.000Z
2022-03-01T07:51:55.000Z
#!/usr/bin/python3 # pylint: disable=C0103 # -*- coding: UTF-8 -*- """ Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the Apache License Version 2.0.You may not use this file except in compliance with the...
36.895561
79
0.617649
4a2557c30533d4931acb4d23c838e7864d13fce2
1,447
py
Python
bento_map/loader.py
bento-dbaas/bento2globomap
257d914fad1bfa364b4910f797527b287176b6db
[ "BSD-3-Clause" ]
1
2018-01-18T17:31:36.000Z
2018-01-18T17:31:36.000Z
bento_map/loader.py
bento-dbaas/bento2globomap
257d914fad1bfa364b4910f797527b287176b6db
[ "BSD-3-Clause" ]
null
null
null
bento_map/loader.py
bento-dbaas/bento2globomap
257d914fad1bfa364b4910f797527b287176b6db
[ "BSD-3-Clause" ]
null
null
null
from logging import info from requests import post from globomap_loader_api_client.auth import Auth from globomap_loader_api_client.update import Update from bento_map.settings import MAP_ENDPOINT, MAP_USERNAME, MAP_PASSWORD, \ BOT_ENDPOINT, DATABASE_PROVIDER class Loader(object): def __init__(self): ...
29.530612
76
0.588113
4a2557d9fded487106240ed3a6ba926199716945
1,120
py
Python
examples/invalid_sklearn_test.py
dkarageo/lovpy
85f43c07aeed4b318238c35da606de2dc65ca24f
[ "Apache-2.0" ]
null
null
null
examples/invalid_sklearn_test.py
dkarageo/lovpy
85f43c07aeed4b318238c35da606de2dc65ca24f
[ "Apache-2.0" ]
null
null
null
examples/invalid_sklearn_test.py
dkarageo/lovpy
85f43c07aeed4b318238c35da606de2dc65ca24f
[ "Apache-2.0" ]
null
null
null
from pandas import read_csv from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report from sklearn.metrics import confusion_matrix from sklearn.metrics import accuracy_score from sklearn.svm import SVC # Load dataset url = "https://raw.githubusercontent.com/jbrownlee/Datas...
32
87
0.742857
4a255858298dc2f3b25015d5bfc77c1cfe9fd23d
4,708
py
Python
src/robot_properties_bolt/config.py
Danfoa/robot_properties_bolt
ae4b8d5fe932c7bc2deebe6eb0a8f0c99d2c5eac
[ "BSD-3-Clause" ]
null
null
null
src/robot_properties_bolt/config.py
Danfoa/robot_properties_bolt
ae4b8d5fe932c7bc2deebe6eb0a8f0c99d2c5eac
[ "BSD-3-Clause" ]
null
null
null
src/robot_properties_bolt/config.py
Danfoa/robot_properties_bolt
ae4b8d5fe932c7bc2deebe6eb0a8f0c99d2c5eac
[ "BSD-3-Clause" ]
null
null
null
# @namespace robot_properties_bolt.config """ This module includes configuration for the Bolt. @file config.py @copyright Copyright (c) 2020, New York University and Max Planck Gesellschaft, License BSD-3-Clause """ import numpy as np from math import pi from os.path import join,...
28.191617
79
0.638488
4a2558b34e234290f1ef3f47d79218ccccd6a834
1,772
py
Python
03/queue_to_do/solution.py
kevinah95/foobar
0118a083291e55eff7a3587b26f2d9d26b00a91d
[ "MIT" ]
null
null
null
03/queue_to_do/solution.py
kevinah95/foobar
0118a083291e55eff7a3587b26f2d9d26b00a91d
[ "MIT" ]
null
null
null
03/queue_to_do/solution.py
kevinah95/foobar
0118a083291e55eff7a3587b26f2d9d26b00a91d
[ "MIT" ]
null
null
null
def result(): from functools import reduce product = reduce((lambda x, y: x ^ y), [0, 1, 2, 3, 4]) # product = 2 #print product ^ 6 def answer2(start,length): first_column_array = [start] for i in range(length - 1): previous = first_column_array[-1] current = previous + length ...
26.058824
99
0.594808
4a2558f9c81868177345559624088c22fc3346a0
65
py
Python
13. Modules - Lab/fibonacci_sequence/__init__.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
2
2021-04-04T06:26:13.000Z
2022-02-18T22:21:49.000Z
13. Modules - Lab/fibonacci_sequence/__init__.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
null
null
null
13. Modules - Lab/fibonacci_sequence/__init__.py
elenaborisova/Python-Advanced
4c266d81f294372c3599741e8ba53f59fdc834c5
[ "MIT" ]
3
2021-02-01T12:32:03.000Z
2021-04-12T13:45:20.000Z
from tribonacci_sequence.sequence import create_sequence, locate
32.5
64
0.892308
4a25599927c549592b4a62a60373912ce7d7541a
4,385
py
Python
examples/checkpoints.py
nirs/python-ovirt-engine-sdk4
454e39d8d9e06511f8488a83a1b5649823cc22c6
[ "Apache-2.0" ]
3
2022-01-14T00:37:58.000Z
2022-03-26T12:26:32.000Z
examples/checkpoints.py
nirs/python-ovirt-engine-sdk4
454e39d8d9e06511f8488a83a1b5649823cc22c6
[ "Apache-2.0" ]
29
2021-07-20T12:42:44.000Z
2022-03-28T13:01:33.000Z
examples/checkpoints.py
nirs/python-ovirt-engine-sdk4
454e39d8d9e06511f8488a83a1b5649823cc22c6
[ "Apache-2.0" ]
12
2021-07-20T12:27:07.000Z
2022-02-24T11:10:12.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- # # Copyright (c) 2021 Red Hat, 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 re...
31.099291
104
0.693501
4a255adb0d22a5c6c111b79160de36c13bc0c557
671
py
Python
planar_ising/sparse_lu/csr_matrix.py
ValeryTyumen/planar_ising
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
[ "MIT" ]
8
2019-05-02T20:27:21.000Z
2020-11-01T20:41:38.000Z
planar_ising/sparse_lu/csr_matrix.py
ValeryTyumen/planar_ising
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
[ "MIT" ]
1
2019-09-03T18:15:53.000Z
2019-09-06T16:41:12.000Z
planar_ising/sparse_lu/csr_matrix.py
ValeryTyumen/planar_ising
5a1803487e1dd59c5d5e790cc949b7234bf52ac8
[ "MIT" ]
3
2019-08-11T23:08:58.000Z
2022-03-19T09:09:50.000Z
class CSRMatrix: def __init__(self, signs, logs, column_indices, row_first_element_indices): self._signs = signs self._logs = logs self._column_indices = column_indices self._row_first_element_indices = row_first_element_indices @property def signs(self): return s...
19.735294
79
0.673621
4a255b53b68dc43e854006c2893af20cc38ed5d8
860
py
Python
Exercises/Exercise06/Python/helper.py
Lucksong/Exercises-Solutions
614c3ad9945d83de21ef2bfdd38e0c67cedc4c8b
[ "CC-BY-3.0" ]
436
2015-01-09T23:29:34.000Z
2022-03-31T11:25:38.000Z
Exercises/Exercise06/Python/helper.py
Lucksong/Exercises-Solutions
614c3ad9945d83de21ef2bfdd38e0c67cedc4c8b
[ "CC-BY-3.0" ]
13
2015-04-12T12:54:32.000Z
2020-03-07T06:52:09.000Z
Exercises/Exercise06/Python/helper.py
Lucksong/Exercises-Solutions
614c3ad9945d83de21ef2bfdd38e0c67cedc4c8b
[ "CC-BY-3.0" ]
195
2015-01-14T05:08:28.000Z
2022-02-21T21:01:55.000Z
from definitions import * import numpy # Function to compute the matrix product (sequential algorithm, dot prod) def seq_mat_mul_sdot(N, A, B, C): for i in range(N): for j in range(N): tmp = 0.0 for k in range(N): tmp += A[i*N+k] * B[k*N+j] C[i*N+j] = t...
26.875
74
0.57093
4a255cc7d2c20ccb4328e3ce001190f714c2558a
1,358
py
Python
pyntcloud/utils/mesh.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
pyntcloud/utils/mesh.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
pyntcloud/utils/mesh.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
import numpy as np import pandas as pd def quadrilateral_to_triangular(mesh): new_mesh = pd.DataFrame() quadrilateral_vertex = mesh[["v1", "v2", "v3", "v4"]].values triangular_vertex = np.vstack( (quadrilateral_vertex[:, [0, 1, 2]], quadrilateral_vertex[:, [2, 3, 0]])) new_mesh["v1"...
34.820513
80
0.61782
4a255d8fe2e9c513b058d7721aed650507f7eb8e
1,987
py
Python
cluster/silhouette.py
cjku97/project5
256d9dedd37bab90eedb9f07e2bfe78669d1c4e1
[ "MIT" ]
null
null
null
cluster/silhouette.py
cjku97/project5
256d9dedd37bab90eedb9f07e2bfe78669d1c4e1
[ "MIT" ]
null
null
null
cluster/silhouette.py
cjku97/project5
256d9dedd37bab90eedb9f07e2bfe78669d1c4e1
[ "MIT" ]
null
null
null
import numpy as np from scipy.spatial.distance import cdist class Silhouette: def __init__(self, metric: str = "euclidean"): """ inputs: metric: str the name of the distance metric to use """ self.metric = metric def score(self, X: np.ndarray, y: np....
29.656716
94
0.520886
4a255e282e038c28df9174e2112785905c98a8ee
75
py
Python
Strings/F-strings/f-strings.py
fsierra2000/Python
19c3f52797b366019794ea75508d7317ef492ed5
[ "MIT" ]
null
null
null
Strings/F-strings/f-strings.py
fsierra2000/Python
19c3f52797b366019794ea75508d7317ef492ed5
[ "MIT" ]
null
null
null
Strings/F-strings/f-strings.py
fsierra2000/Python
19c3f52797b366019794ea75508d7317ef492ed5
[ "MIT" ]
null
null
null
name = ??? age = ??? print(f"Hello, My name is ??? and I'm ??? years old.")
25
54
0.52
4a255e644419d7c8bf1c2c2a359e8d7f58db9be4
1,668
py
Python
iteration.py
anishkarki/CODILITYTRAININGPYTHON
e25c629348172cb7f53c02be510fdc1d8056ee3c
[ "Apache-2.0" ]
null
null
null
iteration.py
anishkarki/CODILITYTRAININGPYTHON
e25c629348172cb7f53c02be510fdc1d8056ee3c
[ "Apache-2.0" ]
null
null
null
iteration.py
anishkarki/CODILITYTRAININGPYTHON
e25c629348172cb7f53c02be510fdc1d8056ee3c
[ "Apache-2.0" ]
null
null
null
#Binary Gap import unittest #from stackclass import StackDeclare from collections import deque MAXINT = 2147483647 class StackDeclare: def __init__(self): self.items = deque() def isEmpty(self): return self.items == [] def push(self, item): self.items.append(item) de...
21.384615
48
0.52518
4a255eb442a823f591e9b306dfd4d26460324f16
13,558
py
Python
tools/VmaDumpVis/VmaDumpVis.py
Fahien/VulkanMemoryAllocator
01099675548f32762d4d7b15afcf17dcf358e642
[ "MIT" ]
null
null
null
tools/VmaDumpVis/VmaDumpVis.py
Fahien/VulkanMemoryAllocator
01099675548f32762d4d7b15afcf17dcf358e642
[ "MIT" ]
null
null
null
tools/VmaDumpVis/VmaDumpVis.py
Fahien/VulkanMemoryAllocator
01099675548f32762d4d7b15afcf17dcf358e642
[ "MIT" ]
null
null
null
# # Copyright (c) 2018-2021 Advanced Micro Devices, Inc. All rights reserved. # # 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 righ...
42.63522
180
0.639475
4a255ff5494941435c75c98333a91538cab19de4
1,421
py
Python
na_common/dates.py
NewAcropolis/na-common
d9a7a5d46f1ec34277e752d39af5fc9fc144300e
[ "MIT" ]
null
null
null
na_common/dates.py
NewAcropolis/na-common
d9a7a5d46f1ec34277e752d39af5fc9fc144300e
[ "MIT" ]
null
null
null
na_common/dates.py
NewAcropolis/na-common
d9a7a5d46f1ec34277e752d39af5fc9fc144300e
[ "MIT" ]
null
null
null
from datetime import datetime class EventDate: def __init__(self, event_datetime): self.event_datetime = datetime.strptime(event_datetime, '%Y-%m-%d %H:%M') def get_event_date_objs(event_dates): event_date_objs = [] for e in event_dates: event_date_objs.append(EventDate(e['event_datetime...
31.577778
116
0.649543
4a2560ccbcfd07eb759472abd167e2a4914cbc8e
328,261
py
Python
sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
1
2020-03-05T18:10:35.000Z
2020-03-05T18:10:35.000Z
sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
2
2020-03-03T23:11:13.000Z
2020-03-30T18:50:55.000Z
sdk/logic/azure-mgmt-logic/azure/mgmt/logic/models/_models.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "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 ...
41.301082
145
0.67277
4a25618452f41039a1ee3aa3591fd0a06267b73b
1,638
py
Python
setup.py
roaet/pyresty
77a04e61e450df0331c6cb5c3eacb7aef1c87a89
[ "Apache-2.0" ]
null
null
null
setup.py
roaet/pyresty
77a04e61e450df0331c6cb5c3eacb7aef1c87a89
[ "Apache-2.0" ]
null
null
null
setup.py
roaet/pyresty
77a04e61e450df0331c6cb5c3eacb7aef1c87a89
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Justin Hammond # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
31.5
69
0.68315
4a2562e824504fe0d49fb1917ab8720c17848638
1,036
py
Python
fibonacci_calculator_mpu/Calculator/FibonacciService.py
MaartenUijen/fibonacci_calculator_mpu
b96b1894d4801b3332726cc503618a9d6b8bef29
[ "MIT" ]
null
null
null
fibonacci_calculator_mpu/Calculator/FibonacciService.py
MaartenUijen/fibonacci_calculator_mpu
b96b1894d4801b3332726cc503618a9d6b8bef29
[ "MIT" ]
null
null
null
fibonacci_calculator_mpu/Calculator/FibonacciService.py
MaartenUijen/fibonacci_calculator_mpu
b96b1894d4801b3332726cc503618a9d6b8bef29
[ "MIT" ]
null
null
null
from typing import List from fibonacci_calculator_mpu.Calculator.FibonacciData import FibonacciData class FibonacciService: def __init__(self): """ Instance of Fibonacci Data""" self.f = FibonacciData() def get_fibonacci_number(self, n: int) -> int: """ :param n: An index. ...
32.375
90
0.655405
4a25635611a816007708ca63bb8fe32173ebf4d3
3,633
py
Python
Chapter_02/06_ssh_paramiko.py
dpazavalos/BlackHatPython3
73a84ceec6220ec51d83c36afdfb558c8ddbd5e5
[ "MIT" ]
null
null
null
Chapter_02/06_ssh_paramiko.py
dpazavalos/BlackHatPython3
73a84ceec6220ec51d83c36afdfb558c8ddbd5e5
[ "MIT" ]
null
null
null
Chapter_02/06_ssh_paramiko.py
dpazavalos/BlackHatPython3
73a84ceec6220ec51d83c36afdfb558c8ddbd5e5
[ "MIT" ]
null
null
null
import threading import paramiko import subprocess import socket from typing import List, Optional import getpass # # # # # # Common send/recv functions # # # def send_data(*, to_socket: socket.socket, data_stream: bytes, send_timeout=2) -> None: """ Centralised function to handle sending dat...
27.11194
96
0.597303
4a2563fc1af5b69a96bf429ac36ff0fb0bb7777e
124
py
Python
heatrapy/mats/__init__.py
djsilva99/heatrapy
91902e8fd9e216638855856ed7c0757bbade11c2
[ "MIT" ]
31
2019-03-21T15:41:18.000Z
2022-03-21T15:41:49.000Z
heatrapy/mats/__init__.py
danieljosesilva/heatrapy
5d1297d67ea237b2c6537133ace8c1f4a6091518
[ "MIT" ]
9
2020-09-01T08:50:52.000Z
2022-03-12T00:55:53.000Z
heatrapy/mats/__init__.py
djsilva99/heatrapy
91902e8fd9e216638855856ed7c0757bbade11c2
[ "MIT" ]
7
2020-03-10T19:34:32.000Z
2022-03-28T01:12:59.000Z
"""Mats. This submodule access the properties of materials """ from .calmatpro import CalMatPro __all__ = ['CalMatPro']
12.4
49
0.733871
4a256586eb50aab307b6ea6489df3f71ff0536b5
1,732
py
Python
color_histogram/core/hist_common.py
waragai-katsunori/ColorHistogram
f57c1115a94aa72387a6e40aef88b1861eb470ab
[ "MIT" ]
null
null
null
color_histogram/core/hist_common.py
waragai-katsunori/ColorHistogram
f57c1115a94aa72387a6e40aef88b1861eb470ab
[ "MIT" ]
null
null
null
color_histogram/core/hist_common.py
waragai-katsunori/ColorHistogram
f57c1115a94aa72387a6e40aef88b1861eb470ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ## @package color_histogram.core.hist_common # # Common color histogram functions for 1D, 2D, 3D. # @author tody # @date 2015/08/29 import numpy as np def colorCoordinates(color_ids, num_bins, color_range): color_ids = np.array(color_ids).T c_min, c_max = color_range ...
26.646154
85
0.700924
4a2565983995548cdb6873d1cad6e45bfc941f34
6,811
py
Python
main/results/experiments_falcon.py
wissembrdj/welink
ebc0cd4742578ad22014bd8067796e8cc1869f02
[ "MIT" ]
null
null
null
main/results/experiments_falcon.py
wissembrdj/welink
ebc0cd4742578ad22014bd8067796e8cc1869f02
[ "MIT" ]
null
null
null
main/results/experiments_falcon.py
wissembrdj/welink
ebc0cd4742578ad22014bd8067796e8cc1869f02
[ "MIT" ]
null
null
null
import json import csv from result import Result import requests import time import re import io from extract_entities import entities writer = csv.writer(open("falcon_results_qald7.csv", 'a', newline='')) url = 'https://labs.tib.eu/falcon/api?mode=long' headers = {'Content-type': 'application/json'} ...
49
203
0.502129
4a25659fd5f6ac46b43718f03d32a72da48ee2c9
1,094
py
Python
creacion_de_aplicaciones/tkinter_iris/app/gui/delete_last.py
soytupadrrre/Master_Python_Eip
c4774209d7dd15584233fe5d4cc01b1434c9316b
[ "MIT" ]
null
null
null
creacion_de_aplicaciones/tkinter_iris/app/gui/delete_last.py
soytupadrrre/Master_Python_Eip
c4774209d7dd15584233fe5d4cc01b1434c9316b
[ "MIT" ]
null
null
null
creacion_de_aplicaciones/tkinter_iris/app/gui/delete_last.py
soytupadrrre/Master_Python_Eip
c4774209d7dd15584233fe5d4cc01b1434c9316b
[ "MIT" ]
null
null
null
import tkinter as tk from app import RestIris class DeleteLastApp: def __init__(self, master=None): # build ui self.delete_last_view = tk.Tk() if master is None else tk.Toplevel(master) self.delete_last_view.title("Victor Luque - Tkinter - Delete Last") self.label41 = tk.Label(self....
32.176471
82
0.64351
4a256632e734042e27d8dd34caedf694b21e5de4
1,459
py
Python
Ch10-1.py
illmatictime/python-mini-project
e0b31fc78254d46c0744d690f8093289b375f600
[ "MIT" ]
1
2021-03-01T07:17:09.000Z
2021-03-01T07:17:09.000Z
Ch10-1.py
illmatictime/python-mini-project
e0b31fc78254d46c0744d690f8093289b375f600
[ "MIT" ]
null
null
null
Ch10-1.py
illmatictime/python-mini-project
e0b31fc78254d46c0744d690f8093289b375f600
[ "MIT" ]
null
null
null
import string def openFile(): while True: try: fileName = input("Please enter file name to process: ") fileOpen = open(fileName) wordTuple = dict() for line in fileOpen: line = line.translate(str.maketrans('', '', ...
24.728814
79
0.527759
4a25665fc6f3c212e7f868a7c371c4c15efdc93c
151
py
Python
bert_e/git_host/cache.py
tcarmet/bert-e
8e0623d9a8c7bd111790d72307862167eca18a23
[ "Apache-2.0" ]
null
null
null
bert_e/git_host/cache.py
tcarmet/bert-e
8e0623d9a8c7bd111790d72307862167eca18a23
[ "Apache-2.0" ]
null
null
null
bert_e/git_host/cache.py
tcarmet/bert-e
8e0623d9a8c7bd111790d72307862167eca18a23
[ "Apache-2.0" ]
null
null
null
from bert_e.lib.lru_cache import LRUCache from collections import defaultdict BUILD_STATUS_CACHE = defaultdict(LRUCache) # type: Dict[str, LRUCache]
30.2
71
0.821192
4a25672f05ab2e4670f29e104f5173db728c2b2c
2,577
py
Python
src/roles/timelord.py
MishaCatskill/lykos
d2ed4859958a24677fd4dab25391e9e6016a81f8
[ "BSD-2-Clause" ]
null
null
null
src/roles/timelord.py
MishaCatskill/lykos
d2ed4859958a24677fd4dab25391e9e6016a81f8
[ "BSD-2-Clause" ]
null
null
null
src/roles/timelord.py
MishaCatskill/lykos
d2ed4859958a24677fd4dab25391e9e6016a81f8
[ "BSD-2-Clause" ]
null
null
null
import re import random import itertools import math import threading import time from collections import defaultdict from src.utilities import * from src import channels, users, debuglog, errlog, plog from src.functions import get_players, get_all_players, get_main_role, get_reveal_role, get_target from src.decorator...
35.791667
109
0.661234
4a256823daed13128370692ee3314a17984f5dde
600
py
Python
tests/test_catalog_record_converter.py
CSCfi/etsin-finder-search
c76888de65a3c32d98f78f863850a374606420c1
[ "MIT" ]
null
null
null
tests/test_catalog_record_converter.py
CSCfi/etsin-finder-search
c76888de65a3c32d98f78f863850a374606420c1
[ "MIT" ]
9
2017-11-11T10:35:41.000Z
2021-01-21T10:58:50.000Z
tests/test_catalog_record_converter.py
CSCfi/etsin-finder-search
c76888de65a3c32d98f78f863850a374606420c1
[ "MIT" ]
2
2018-03-06T08:19:48.000Z
2019-03-20T06:55:16.000Z
# This file is part of the Etsin service # # Copyright 2017-2018 Ministry of Education and Culture, Finland # # :author: CSC - IT Center for Science Ltd., Espoo Finland <servicedesk@csc.fi> # :license: MIT from etsin_finder_search.catalog_record_converter import CRConverter from .helpers import get_test_object_from_fi...
37.5
117
0.811667
4a2568dc93f37d66ec01e259ce64f9620e38bfa5
641
py
Python
tests/mainGUI_test.py
ryandalex1/time-block
371c62fb713e4ae9e9a046d492b137ce3ca47134
[ "MIT" ]
null
null
null
tests/mainGUI_test.py
ryandalex1/time-block
371c62fb713e4ae9e9a046d492b137ce3ca47134
[ "MIT" ]
null
null
null
tests/mainGUI_test.py
ryandalex1/time-block
371c62fb713e4ae9e9a046d492b137ce3ca47134
[ "MIT" ]
null
null
null
import unittest import mainGUI from datetime import * class InitDate(unittest.TestCase): def tearDown(self): pass def setUp(self): self.new_date = mainGUI.Date(datetime.today()) self.new_date.startH = 7 self.new_date.endH = 15 self.new_date.startHChange = 7 se...
23.740741
108
0.663027
4a256914919e4b3a194d9102f47caa4659516bf7
534
py
Python
users/admin.py
silencemind/Department-Managment-System
e39a28e5043344d323a4af639dca7e79c888f259
[ "PostgreSQL" ]
1
2020-12-10T15:04:59.000Z
2020-12-10T15:04:59.000Z
users/admin.py
silencemind/College-Managment-System
e39a28e5043344d323a4af639dca7e79c888f259
[ "PostgreSQL" ]
5
2020-11-04T07:49:11.000Z
2021-06-10T20:22:10.000Z
users/admin.py
silencemind/Department-Managment-System
e39a28e5043344d323a4af639dca7e79c888f259
[ "PostgreSQL" ]
null
null
null
from django.contrib import admin from .models import Users from django.contrib.auth.admin import UserAdmin from department.models import * # Register your models here. class UsersAdmin(UserAdmin): model = Users fieldsets = UserAdmin.fieldsets + ( ('Additional Info', { 'fields': ( ...
17.225806
47
0.522472
4a256b876063d229f947ae412957e5db38386078
1,012
py
Python
Desafios/desafio98.py
gustavodoamaral/115_Desafios_Python
8baa1c0353a40f7a63f442293bc0f6852fd94da0
[ "MIT" ]
1
2022-02-07T01:12:19.000Z
2022-02-07T01:12:19.000Z
Desafios/desafio98.py
gustavodoamaral/desafios_python_gustavo_guanabara
8baa1c0353a40f7a63f442293bc0f6852fd94da0
[ "MIT" ]
null
null
null
Desafios/desafio98.py
gustavodoamaral/desafios_python_gustavo_guanabara
8baa1c0353a40f7a63f442293bc0f6852fd94da0
[ "MIT" ]
null
null
null
from time import sleep def lin(): print(f"{'-='*30}") def contador(inicio, fim, passo): """ FAZ UMA CONTAGEM E MOSTRA NA TELA PARAM. INICIO: INICIO DA CONTAGEM PARAM. FIM: FINAL DA CONTAGEN PARAM. PASSO: PASSO DA CONTAGEM RETURN: SEM RETORNO """ if passo == 0: passo = 1 ...
23
66
0.527668
4a256c9cb0f590e1196715934749bd32ae405ed7
6,988
py
Python
maint_tools/test_docstrings.py
danielmlevans/scikit-learn
8fc351656a44789893bd8b092ea12fbbf5b803ca
[ "BSD-3-Clause" ]
null
null
null
maint_tools/test_docstrings.py
danielmlevans/scikit-learn
8fc351656a44789893bd8b092ea12fbbf5b803ca
[ "BSD-3-Clause" ]
null
null
null
maint_tools/test_docstrings.py
danielmlevans/scikit-learn
8fc351656a44789893bd8b092ea12fbbf5b803ca
[ "BSD-3-Clause" ]
null
null
null
import re from inspect import signature from typing import Optional import pytest from sklearn.utils import all_estimators numpydoc_validation = pytest.importorskip("numpydoc.validate") # List of modules ignored when checking for numpydoc validation. DOCSTRING_IGNORE_LIST = [ "HuberRegressor", "IterativeImpu...
30.515284
85
0.629794