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
794e6076d0019b30f164eb0177f2c860a5934b77
2,137
py
Python
ros2_control_bolt_bringup/launch/bolt_system_position_only_gazebo.launch.py
Benjamin-Amsellem/ros2_control_bolt
ae91f30826eddf2bed7cd5b69f6bab12c6b7dcc8
[ "Apache-2.0" ]
null
null
null
ros2_control_bolt_bringup/launch/bolt_system_position_only_gazebo.launch.py
Benjamin-Amsellem/ros2_control_bolt
ae91f30826eddf2bed7cd5b69f6bab12c6b7dcc8
[ "Apache-2.0" ]
null
null
null
ros2_control_bolt_bringup/launch/bolt_system_position_only_gazebo.launch.py
Benjamin-Amsellem/ros2_control_bolt
ae91f30826eddf2bed7cd5b69f6bab12c6b7dcc8
[ "Apache-2.0" ]
null
null
null
from launch import LaunchDescription from launch.actions import IncludeLaunchDescription from launch.substitutions import Command, FindExecutable, PathJoinSubstitution from launch.launch_description_sources import PythonLaunchDescriptionSource from launch_ros.actions import Node from launch_ros.substitutions import Fi...
30.528571
98
0.617688
794e60b6305209053b335fa8f0743658bae15d6f
355
py
Python
laia/losses/dortmund_bce_loss.py
basbeu/PyLaia
d14458484b56622204b1730a7d53220c5d0f1bc1
[ "MIT" ]
2
2020-09-10T13:31:17.000Z
2021-07-31T09:44:17.000Z
laia/losses/dortmund_bce_loss.py
basbeu/PyLaia
d14458484b56622204b1730a7d53220c5d0f1bc1
[ "MIT" ]
1
2020-12-06T18:11:52.000Z
2020-12-06T18:19:38.000Z
laia/losses/dortmund_bce_loss.py
basbeu/PyLaia
d14458484b56622204b1730a7d53220c5d0f1bc1
[ "MIT" ]
2
2020-04-20T13:40:56.000Z
2020-10-17T11:59:55.000Z
from __future__ import absolute_import from torch.nn import BCEWithLogitsLoss class DortmundBCELoss(BCEWithLogitsLoss): def __init__(self): super(DortmundBCELoss, self).__init__(reduction="sum") def forward(self, output, target): loss = super(DortmundBCELoss, self).forward(output, target) ...
27.307692
67
0.729577
794e618cfb1c109eabf3bdac9d8307e9180cc8ab
1,425
py
Python
parent/restcache/test-server/resttest/resttest/wsgi.py
kinokocchi/Ttada
632311375bb4b5a629a5455dea677c3fd69d873a
[ "MIT" ]
null
null
null
parent/restcache/test-server/resttest/resttest/wsgi.py
kinokocchi/Ttada
632311375bb4b5a629a5455dea677c3fd69d873a
[ "MIT" ]
null
null
null
parent/restcache/test-server/resttest/resttest/wsgi.py
kinokocchi/Ttada
632311375bb4b5a629a5455dea677c3fd69d873a
[ "MIT" ]
null
null
null
""" WSGI config for resttest project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION``...
43.181818
79
0.803509
794e624fdcb29d0663882dac712031dc1c41ad20
6,675
py
Python
python/sklearn/sklearn/dummy.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
1
2017-10-14T04:23:45.000Z
2017-10-14T04:23:45.000Z
python/sklearn/sklearn/dummy.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
python/sklearn/sklearn/dummy.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
# Author: Mathieu Blondel <mathieu@mblondel.org> # License: BSD Style. import numpy as np from .base import BaseEstimator, ClassifierMixin, RegressorMixin from .utils import check_random_state from .utils.fixes import unique from .utils.validation import safe_asarray class DummyClassifier(BaseEstimator, Classifier...
31.485849
79
0.594457
794e62e4aafc8c2ec393b466096743dcc1ab0ac4
5,482
py
Python
qiskit_metal/qlibrary/lumped/resonator_coil_rect.py
wdczdj/qiskit-metal
c77805f66da60021ef8d10d668715c1dc2ebcd1d
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/lumped/resonator_coil_rect.py
wdczdj/qiskit-metal
c77805f66da60021ef8d10d668715c1dc2ebcd1d
[ "Apache-2.0" ]
null
null
null
qiskit_metal/qlibrary/lumped/resonator_coil_rect.py
wdczdj/qiskit-metal
c77805f66da60021ef8d10d668715c1dc2ebcd1d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
41.218045
104
0.568588
794e63dc8c774e769d71067b3c58e691d118ade4
5,347
py
Python
models/sngan_cifar10.py
sudarshanregmi/ICRGAN-and-SSGAN
c9e7b01d89cba19505e566892a678932717b8039
[ "MIT" ]
3
2021-02-03T17:19:33.000Z
2021-02-03T17:22:14.000Z
models/sngan_cifar10.py
sudarshanregmi/ICRGAN-and-SSGAN
c9e7b01d89cba19505e566892a678932717b8039
[ "MIT" ]
null
null
null
models/sngan_cifar10.py
sudarshanregmi/ICRGAN-and-SSGAN
c9e7b01d89cba19505e566892a678932717b8039
[ "MIT" ]
null
null
null
import torch.nn as nn from .gen_resblock import GenBlock class Generator(nn.Module): def __init__(self, args, activation=nn.ReLU(), n_classes=0): super(Generator, self).__init__() self.bottom_width = args.bottom_width self.activation = activation self.n_classes = n_classes ...
35.885906
107
0.620909
794e64393602b4f9f160790fdb9ea04191a0e53a
1,454
py
Python
src/resource-graph/azext_resourcegraph/vendored_sdks/resourcegraph/models/error_py3.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2019-05-10T19:58:09.000Z
2019-05-10T19:58:09.000Z
src/resource-graph/azext_resourcegraph/vendored_sdks/resourcegraph/models/error_py3.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
src/resource-graph/azext_resourcegraph/vendored_sdks/resourcegraph/models/error_py3.py
mayank88mahajan/azure-cli-extensions
8bd389a1877bffd14052bec5519ce75dc6fc34cf
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
31.608696
83
0.577029
794e650a8399ef5a01f6e253d3e63167cbde8df1
9,148
py
Python
protocol/sensor_msgs/msg/not used/_MagneticField.py
Tsinghua-OpenICV/carla_icv_bridge
4d5f8c26b1847dbb16a81fe43f146bf4a9a8da5e
[ "MIT" ]
null
null
null
protocol/sensor_msgs/msg/not used/_MagneticField.py
Tsinghua-OpenICV/carla_icv_bridge
4d5f8c26b1847dbb16a81fe43f146bf4a9a8da5e
[ "MIT" ]
null
null
null
protocol/sensor_msgs/msg/not used/_MagneticField.py
Tsinghua-OpenICV/carla_icv_bridge
4d5f8c26b1847dbb16a81fe43f146bf4a9a8da5e
[ "MIT" ]
1
2020-12-19T05:48:01.000Z
2020-12-19T05:48:01.000Z
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from sensor_msgs/MagneticField.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import protocol.std_msgs.msg as std_msgs class MagneticField(genpy...
38.276151
145
0.648885
794e66062d08af1fd6a8ef151ddab59a3435da38
1,359
py
Python
functions/QBSM.py
Yuleii/yulei-thesis-QBSM-kw94
bb882bc6c809331c370a4d6442c36ad67ccad498
[ "MIT" ]
null
null
null
functions/QBSM.py
Yuleii/yulei-thesis-QBSM-kw94
bb882bc6c809331c370a4d6442c36ad67ccad498
[ "MIT" ]
null
null
null
functions/QBSM.py
Yuleii/yulei-thesis-QBSM-kw94
bb882bc6c809331c370a4d6442c36ad67ccad498
[ "MIT" ]
null
null
null
"""Functions that compute quantile-based sensitivity measures.""" import numpy as np def quantile_measures(quantile_y_x, quantile_y_x_mix): """Estimate the values of quantile based measures.""" m, n_params, len_alp = quantile_y_x_mix.shape[:3] # initialization q_1 = np.zeros((len_alp, n_params)) ...
31.604651
78
0.6078
794e67a16253ecf691a0d0784f21a801c2ec61cb
210
py
Python
1_estrutura_sequencial/06_area_circulo.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
1_estrutura_sequencial/06_area_circulo.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
1_estrutura_sequencial/06_area_circulo.py
cecilmalone/lista_de_exercicios_pybr
6d7c4aeddf8d1b1d839ad05ef5b5813a8fe611b5
[ "MIT" ]
null
null
null
""" 6. Faça um Programa que peça o raio de um círculo, calcule e mostre sua área. """ raio = int(input('Informe o raio do círculo: ')) area = 3.14 * (raio ** 2) print('A área do círculo é: {}'.format(area))
21
77
0.638095
794e689b7c0116cee4078be9f755ca5e2adcdfa4
1,809
py
Python
parse.py
logpacket/sun-rin_geupsic
333f149525f6100869f3123313c8635ef4cddb7e
[ "MIT" ]
null
null
null
parse.py
logpacket/sun-rin_geupsic
333f149525f6100869f3123313c8635ef4cddb7e
[ "MIT" ]
null
null
null
parse.py
logpacket/sun-rin_geupsic
333f149525f6100869f3123313c8635ef4cddb7e
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- import sys import requests from bs4 import BeautifulSoup from datetime import datetime reload(sys) sys.setdefaultencoding('utf8') key = '"keyboard":{"type":"buttons", "buttons":["오늘의 급식", "내일의 급식"]}}' output_date = [] def create_form(menu): menu = menu.replace('\n', '') menu = menu.repla...
32.890909
98
0.557767
794e69386fa7a400922c65085d72d1fd8fe0b2e6
1,325
py
Python
aiida/tools/data/array/trajectory.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
1
2019-07-31T04:08:13.000Z
2019-07-31T04:08:13.000Z
aiida/tools/data/array/trajectory.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
aiida/tools/data/array/trajectory.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
42.741935
79
0.556981
794e6a61a34f4dbaa3ee669bc7173eb7fe760c24
2,877
py
Python
src/binwalk/plugins/lzmamod.py
zhao07/binwalk
99d814a04b183d9f19d8425189a1c20ec8d64d5a
[ "MIT" ]
1
2015-05-04T21:08:20.000Z
2015-05-04T21:08:20.000Z
src/binwalk/plugins/lzmamod.py
zhao07/binwalk
99d814a04b183d9f19d8425189a1c20ec8d64d5a
[ "MIT" ]
null
null
null
src/binwalk/plugins/lzmamod.py
zhao07/binwalk
99d814a04b183d9f19d8425189a1c20ec8d64d5a
[ "MIT" ]
null
null
null
import os import shutil import binwalk.core.plugin from binwalk.core.compat import * from binwalk.core.common import BlockFile class LZMAModPlugin(binwalk.core.plugin.Plugin): ''' Finds and extracts modified LZMA files commonly found in cable modems. Based on Bernardo Rodrigues' work: http://w00tsec.blogsp...
42.308824
124
0.619395
794e6b1fbe3208ce353ab0f3565e274bc96a6dc2
1,231
py
Python
about/models.py
D-GopalKrishna/RobotixWeb2021
3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2
[ "Apache-2.0" ]
null
null
null
about/models.py
D-GopalKrishna/RobotixWeb2021
3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2
[ "Apache-2.0" ]
7
2020-02-12T02:54:35.000Z
2022-03-12T00:06:26.000Z
about/models.py
D-GopalKrishna/RobotixWeb2021
3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2
[ "Apache-2.0" ]
6
2020-02-10T16:37:38.000Z
2021-01-28T13:39:46.000Z
from django.db import models # Create your models here. class Convenor(models.Model): photo = models.ImageField(upload_to='img/convenors') name = models.CharField(max_length=50) branch = models.CharField(max_length=50) fb_id = models.URLField() mail_id = models.EmailField() phone = models.CharF...
27.355556
56
0.697807
794e6c8c1251d8c60e3913d0cce7bdd87337479b
1,148
py
Python
report.py
kaushalvivek/train-escort-app
d87e8c0d6ffcfbc34e7a6c745ad675fdb72eba29
[ "MIT" ]
1
2020-06-07T05:19:34.000Z
2020-06-07T05:19:34.000Z
report.py
kaushalvivek/train-escort-app
d87e8c0d6ffcfbc34e7a6c745ad675fdb72eba29
[ "MIT" ]
3
2020-05-28T09:35:15.000Z
2020-05-28T09:37:24.000Z
report.py
kaushalvivek/train-escort-app
d87e8c0d6ffcfbc34e7a6c745ad675fdb72eba29
[ "MIT" ]
null
null
null
import sqlite3 import dateparser from datetime import datetime, timedelta, date from mail import send_mail # path="/home/traincheck/mysite/" path="" conn = sqlite3.connect(path+'store.db') c = conn.cursor() now = datetime.now() hours = timedelta(hours=24) cutoff= now-hours c.execute("SELECT * from Escort where dateti...
24.425532
72
0.686411
794e6cfd62304f9de7f7b4624f168563d5fc8453
2,353
py
Python
tests/application/test_version.py
pallavigopi/esper-cli
83c3536088031fd6a9e5e6e7ae8f18e3e82eeb78
[ "Apache-2.0" ]
7
2019-05-17T06:56:37.000Z
2022-03-18T16:54:48.000Z
tests/application/test_version.py
pallavigopi/esper-cli
83c3536088031fd6a9e5e6e7ae8f18e3e82eeb78
[ "Apache-2.0" ]
5
2019-07-29T17:55:33.000Z
2022-01-19T02:01:45.000Z
tests/application/test_version.py
pallavigopi/esper-cli
83c3536088031fd6a9e5e6e7ae8f18e3e82eeb78
[ "Apache-2.0" ]
9
2019-08-22T06:15:39.000Z
2021-10-04T09:08:50.000Z
from unittest import TestCase from _pytest.monkeypatch import MonkeyPatch from esper.main import EsperTest from tests.utils import set_configure, teardown class VersionTest(TestCase): def setUp(self) -> None: self.monkeypatch = MonkeyPatch() set_configure(self.monkeypatch) argv = ['app...
31.373333
100
0.58351
794e6d2c92c89bd9bf6da821d62481cf8544a92d
6,819
py
Python
Scalable-Machine-Learning-with-Apache-Spark/ML Electives/MLE 03 - Logistic Regression Lab.py
databricks-academy/scalable-machine-learning-with-apache-spark
2b560dea766e2e6589defaaf6d9d15f361ce6db6
[ "CC0-1.0" ]
null
null
null
Scalable-Machine-Learning-with-Apache-Spark/ML Electives/MLE 03 - Logistic Regression Lab.py
databricks-academy/scalable-machine-learning-with-apache-spark
2b560dea766e2e6589defaaf6d9d15f361ce6db6
[ "CC0-1.0" ]
null
null
null
Scalable-Machine-Learning-with-Apache-Spark/ML Electives/MLE 03 - Logistic Regression Lab.py
databricks-academy/scalable-machine-learning-with-apache-spark
2b560dea766e2e6589defaaf6d9d15f361ce6db6
[ "CC0-1.0" ]
8
2021-12-09T19:40:48.000Z
2022-03-24T19:19:42.000Z
# Databricks notebook source # MAGIC %md-sandbox # MAGIC # MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> # MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> # MAGIC </div> # COMMAND ---------- # M...
38.965714
388
0.733979
794e6db7ca37fa5d225540ae06865448db35ff2e
443
py
Python
game/migrations/0006_profile_num_antidotes.py
shintouki/augmented-pandemic
94725f0390c4bf86ff613f7a1efa477324bbbefe
[ "MIT" ]
null
null
null
game/migrations/0006_profile_num_antidotes.py
shintouki/augmented-pandemic
94725f0390c4bf86ff613f7a1efa477324bbbefe
[ "MIT" ]
12
2016-12-28T13:16:03.000Z
2016-12-28T13:16:03.000Z
game/migrations/0006_profile_num_antidotes.py
shintouki/augmented-pandemic
94725f0390c4bf86ff613f7a1efa477324bbbefe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-07 21:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('game', '0005_safezone'), ] operations = [ migrations.AddField( ...
21.095238
49
0.609481
794e6f2bc13b79438204ca71e53c92258a2addc2
1,776
py
Python
pyscript/ml/bayes.py
airy-ict/learn_python
5a6c45c627208856bb04c2545fae8cba903519d3
[ "MIT" ]
1
2021-06-07T09:01:21.000Z
2021-06-07T09:01:21.000Z
pyscript/ml/bayes.py
airy-ict/learn_python
5a6c45c627208856bb04c2545fae8cba903519d3
[ "MIT" ]
null
null
null
pyscript/ml/bayes.py
airy-ict/learn_python
5a6c45c627208856bb04c2545fae8cba903519d3
[ "MIT" ]
null
null
null
import numpy as np import scipy as sp from sklearn.model_selection import train_test_split from sklearn.naive_bayes import MultinomialNB from sklearn.datasets import load_files from sklearn.feature_extraction.text import * from sklearn.metrics import precision_recall_curve from sklearn.metrics import classification_rep...
28.190476
77
0.70045
794e6f9eb965b2b2e8e31988e4a96a9067079d46
7,341
py
Python
mvg_distributions/covariance_representations/covariance_chol.py
Liang813/tf_mvg
01bc681a8b3aac5dcf0837d481b963f4968eb777
[ "MIT" ]
21
2019-04-04T07:46:54.000Z
2021-12-15T18:06:35.000Z
mvg_distributions/covariance_representations/covariance_chol.py
Liang813/tf_mvg
01bc681a8b3aac5dcf0837d481b963f4968eb777
[ "MIT" ]
8
2019-03-01T10:08:30.000Z
2021-10-04T13:00:11.000Z
mvg_distributions/covariance_representations/covariance_chol.py
Liang813/tf_mvg
01bc681a8b3aac5dcf0837d481b963f4968eb777
[ "MIT" ]
7
2019-12-18T23:41:44.000Z
2021-11-21T10:15:48.000Z
import tensorflow as tf from mvg_distributions.covariance_representations.covariance_matrix import Covariance, DecompMethod class _CovarianceCholeskyCommon(Covariance): def __init__(self, inversion_method=None, **kwargs): self._log_diag_chol_covariance = None self._log_diag_chol_precision = None ...
42.929825
109
0.680016
794e701bbd46b3cca35493e389c73a79e3cc5308
6,073
py
Python
YCgplearn/skutils/tests/test_utils.py
eggachecat/YCgplearn
098bda558f5bb986e9dab70e82394602aca6519c
[ "BSD-3-Clause" ]
null
null
null
YCgplearn/skutils/tests/test_utils.py
eggachecat/YCgplearn
098bda558f5bb986e9dab70e82394602aca6519c
[ "BSD-3-Clause" ]
null
null
null
YCgplearn/skutils/tests/test_utils.py
eggachecat/YCgplearn
098bda558f5bb986e9dab70e82394602aca6519c
[ "BSD-3-Clause" ]
null
null
null
import warnings import numpy as np import scipy.sparse as sp from scipy.linalg import pinv2 from YCgplearn.skutils.testing import (assert_equal, assert_raises, assert_true, assert_almost_equal, assert_array_equal, SkipTest) from YCgplearn....
32.132275
80
0.629178
794e715b3bbca356c804c167be044f11a065b5f2
4,636
py
Python
final_yr_proj/tf_utils1.py
kauku123/Undergraduate_Fin_Proj_2018
e635d03c05785ca898c7a6bc48261de81318be26
[ "Apache-2.0" ]
null
null
null
final_yr_proj/tf_utils1.py
kauku123/Undergraduate_Fin_Proj_2018
e635d03c05785ca898c7a6bc48261de81318be26
[ "Apache-2.0" ]
null
null
null
final_yr_proj/tf_utils1.py
kauku123/Undergraduate_Fin_Proj_2018
e635d03c05785ca898c7a6bc48261de81318be26
[ "Apache-2.0" ]
null
null
null
import h5py import numpy as np import tensorflow as tf import math def load_dataset(): train_dataset = h5py.File('datasets/train_signs.h5', "r") train_set_x_orig = np.array(train_dataset["train_set_x"][:]) # your train set features train_set_y_orig = np.array(train_dataset["train_set_y"][:]) # your train s...
38.31405
136
0.630716
794e717c501359fedebe6c1d19cdf62e0ee958b3
1,171
py
Python
modules/burpstate.py
bellma101/Osmedeus
3713c73edd75bda25423100e4de9c1ffd1cab116
[ "Apache-2.0" ]
null
null
null
modules/burpstate.py
bellma101/Osmedeus
3713c73edd75bda25423100e4de9c1ffd1cab116
[ "Apache-2.0" ]
null
null
null
modules/burpstate.py
bellma101/Osmedeus
3713c73edd75bda25423100e4de9c1ffd1cab116
[ "Apache-2.0" ]
null
null
null
import os from core import execute from core import utils class BurpState(object): """docstring for PortScan""" def __init__(self, options): utils.print_banner("Scanning through BurpState") utils.make_directory(options['env']['WORKSPACE'] + '/burpstate/') self.options = options self.initial() def initial(s...
31.648649
106
0.722459
794e72461d022da8bbe68d41a3cf2e55a06154eb
1,944
py
Python
fahnder/document.py
klorenz/fahnder
98b4a131b9a298da6b44e291be1cceb028dbb074
[ "MIT" ]
null
null
null
fahnder/document.py
klorenz/fahnder
98b4a131b9a298da6b44e291be1cceb028dbb074
[ "MIT" ]
null
null
null
fahnder/document.py
klorenz/fahnder
98b4a131b9a298da6b44e291be1cceb028dbb074
[ "MIT" ]
null
null
null
from typing import Union, Any from datetime import datetime class Document(dict): def __init__(self, type: str, url: str, title: str = None, excerpt: str = None, published_at: Union[datetime, str] = None, thumbnail_url: str = None, mimetype: str = None, ...
34.714286
79
0.543724
794e73180f4450765b53ebceb3c6ad63aa1fa0cb
50,148
py
Python
4. Sequences, Time Series and Prediction/Week 1/Exercise_1_Create_and_predict_synthetic_data_Question-FINAL.py
DhruvAwasthi/TensorFlowSpecialization
aeaa57eefd74f96f7389458662e050667eab7a54
[ "Apache-2.0" ]
2
2020-06-09T08:01:00.000Z
2020-10-22T16:53:08.000Z
4. Sequences, Time Series and Prediction/Week 1/Exercise_1_Create_and_predict_synthetic_data_Question-FINAL.py
DhruvAwasthi/TensorFlowSpecialization
aeaa57eefd74f96f7389458662e050667eab7a54
[ "Apache-2.0" ]
null
null
null
4. Sequences, Time Series and Prediction/Week 1/Exercise_1_Create_and_predict_synthetic_data_Question-FINAL.py
DhruvAwasthi/TensorFlowSpecialization
aeaa57eefd74f96f7389458662e050667eab7a54
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: # ATTENTION: Please do not alter any of the provided code in the exercise. Only add your own code where indicated # ATTENTION: Please do not add or remove any cells in the exercise. The grader will check specific cells based on the cell position. # ATTENTION: Please use...
184.367647
43,275
0.937425
794e732617dd74f7767b97faaed5979567149da5
5,670
py
Python
practicer/gui/pyside/widgets/exercise_details.py
DominikPott/practicer
1e0f10d3cc9ec17ead067708e3334223fbeb72ea
[ "MIT" ]
1
2021-10-01T09:15:08.000Z
2021-10-01T09:15:08.000Z
practicer/gui/pyside/widgets/exercise_details.py
DominikPott/practicer
1e0f10d3cc9ec17ead067708e3334223fbeb72ea
[ "MIT" ]
3
2021-04-18T11:13:25.000Z
2021-04-19T16:36:47.000Z
practicer/gui/pyside/widgets/exercise_details.py
DominikPott/practicer
1e0f10d3cc9ec17ead067708e3334223fbeb72ea
[ "MIT" ]
null
null
null
from PySide2 import QtWidgets, QtCore, QtGui import practicer.gui.pyside.resources # pyside compiles resources. Holds the icons for qresources class ExerciseSpreadSheet(QtWidgets.QWidget): def __init__(self, exercise, stats, parent=None): super(ExerciseSpreadSheet, self).__init__(parent) self.e...
39.103448
118
0.669841
794e7371166f7cb980dfa43dbd5c112311721162
1,712
py
Python
apps/readux/urls.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/readux/urls.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/readux/urls.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
"""URL patterns for the Readux app""" from django.urls import path from . import views, annotations from .search import SearchManifestCanvas urlpatterns = [ path('collection/', views.CollectionsList.as_view(), name='collections list'), path('volume/', views.VolumesList.as_view(), name='volumes list'), path...
46.27027
97
0.689836
794e769e2c86295b3a4eaea3770ec5a9df5aee46
7,387
py
Python
src/.history/Test2/HiwinRT605_Strategy_test_v2_20190628092449.py
SamKaiYang/2019_Hiwin_Shaking
d599f8c87dc4da89eae266990d12eb3a8b0f3e16
[ "MIT" ]
null
null
null
src/.history/Test2/HiwinRT605_Strategy_test_v2_20190628092449.py
SamKaiYang/2019_Hiwin_Shaking
d599f8c87dc4da89eae266990d12eb3a8b0f3e16
[ "MIT" ]
null
null
null
src/.history/Test2/HiwinRT605_Strategy_test_v2_20190628092449.py
SamKaiYang/2019_Hiwin_Shaking
d599f8c87dc4da89eae266990d12eb3a8b0f3e16
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # license removed for brevity #策略 機械手臂 四點來回跑 import threading import time import rospy import os import numpy as np from std_msgs.msg import String from ROS_Socket.srv import * from ROS_Socket.msg import * import math import enum #import Hiwin_RT605_ArmCommand_Socket as ArmTask import Hiwin_RT605...
36.389163
117
0.542981
794e76b2a2c5085d1808cb08b6a0576a2a223d54
7,054
py
Python
rxcs/ana/SNR.py
JacekPierzchlewski/RxCS
250f9ebfe9c12f49754f354e60cc511be76e4632
[ "BSD-2-Clause" ]
3
2015-02-10T17:57:33.000Z
2017-03-16T00:46:45.000Z
rxcs/ana/SNR.py
JacekPierzchlewski/RxCS
250f9ebfe9c12f49754f354e60cc511be76e4632
[ "BSD-2-Clause" ]
null
null
null
rxcs/ana/SNR.py
JacekPierzchlewski/RxCS
250f9ebfe9c12f49754f354e60cc511be76e4632
[ "BSD-2-Clause" ]
null
null
null
"""| This module contains SNR evaluation function of the reconstructed signals. |br| *Examples*: Please go to the *examples/analysis* directory for examples on how to use the SNR analysis modules. |br| *Settings*: Parameters of the SNR analysis are described below. Take a look on '__inputSignals' fu...
37.924731
100
0.612418
794e76d9d20b394b433c41aa35e96783e3b85d90
2,022
py
Python
system/result_printer.py
hz512/Smart-Parking-Enforcement-System
e990903de545693ad6e2536bf167c69ab672d16a
[ "MIT" ]
null
null
null
system/result_printer.py
hz512/Smart-Parking-Enforcement-System
e990903de545693ad6e2536bf167c69ab672d16a
[ "MIT" ]
null
null
null
system/result_printer.py
hz512/Smart-Parking-Enforcement-System
e990903de545693ad6e2536bf167c69ab672d16a
[ "MIT" ]
null
null
null
import os class Printer: def __init__(self, features=None, width=None): if features is None: features = ['slot_id', 'status', 'duration', 'violation', 'msg'] width = [20, 10, 10, 10, 30] self.features = features self.widt...
38.150943
91
0.487636
794e76e9d949cf08c76f8279791e67fee228fca9
3,749
py
Python
watertap3/watertap3/wt_units/basic_unit.py
kurbansitterley/WaterTAP3
8f4493182a39e3ba180019aba02249916dbae500
[ "BSD-3-Clause" ]
null
null
null
watertap3/watertap3/wt_units/basic_unit.py
kurbansitterley/WaterTAP3
8f4493182a39e3ba180019aba02249916dbae500
[ "BSD-3-Clause" ]
34
2021-06-25T17:54:12.000Z
2021-06-25T17:54:27.000Z
watertap3/watertap3/wt_units/basic_unit.py
kurbansitterley/WaterTAP3
8f4493182a39e3ba180019aba02249916dbae500
[ "BSD-3-Clause" ]
4
2021-06-25T18:32:31.000Z
2022-03-24T20:24:18.000Z
from pyomo.environ import Block, Expression, units as pyunits from watertap3.utils import cost_curves, financials from watertap3.wt_units.wt_unit import WT3UnitProcess ## REFERENCE: ADD REFERENCE HERE module_name = 'basic_unit' tpec_or_tic = 'TPEC' class UnitProcess(WT3UnitProcess): def fixed_cap(self): ...
44.105882
185
0.644705
794e782971f595fde9db73666f0625c9f1366d91
1,767
py
Python
message/tests/test_message.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
message/tests/test_message.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
message/tests/test_message.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
from django.test.testcases import TestCase from user.tests.utils import create_active_user from conversation.tests.utils import create_private_chat from message.models import Message from message.queryset import get_chat_messages from .utils import create_deleted_msg, create_message from core.tests.utils import assert...
32.127273
71
0.647425
794e785f410604ab58cbd85ab22417259c4857c8
13,883
py
Python
tests/open_alchemy/schemas/validation/test_unique_secondary.py
MihailMiller/OpenAlchemy
55b751c58ca50706ebc46262f50addb7dec34278
[ "Apache-2.0" ]
40
2019-11-05T06:50:35.000Z
2022-03-09T01:34:57.000Z
tests/open_alchemy/schemas/validation/test_unique_secondary.py
MihailMiller/OpenAlchemy
55b751c58ca50706ebc46262f50addb7dec34278
[ "Apache-2.0" ]
178
2019-11-03T04:10:38.000Z
2022-03-31T00:07:17.000Z
tests/open_alchemy/schemas/validation/test_unique_secondary.py
MihailMiller/OpenAlchemy
55b751c58ca50706ebc46262f50addb7dec34278
[ "Apache-2.0" ]
17
2019-11-04T07:22:46.000Z
2022-03-23T05:29:49.000Z
"""Tests for spec unique tablename.""" import pytest from open_alchemy.schemas import validation CHECK_TESTS = [ pytest.param({"Schema1": {}}, True, None, id="single schema not constructable"), pytest.param( { "Schema1": { "x-tablename": "schema_1", "proper...
31.841743
84
0.345747
794e78f71628c92829ed4fc0d205151128a0b6d4
3,525
py
Python
examples/pipeline/feldman_verifiable_sum/pipeline-feldman-verifiable-sum.py
hubert-he/FATE
6758e150bd7ca7d6f788f9a7a8c8aea7e6500363
[ "Apache-2.0" ]
3,787
2019-08-30T04:55:10.000Z
2022-03-31T23:30:07.000Z
examples/pipeline/feldman_verifiable_sum/pipeline-feldman-verifiable-sum.py
hubert-he/FATE
6758e150bd7ca7d6f788f9a7a8c8aea7e6500363
[ "Apache-2.0" ]
1,439
2019-08-29T16:35:52.000Z
2022-03-31T11:55:31.000Z
examples/pipeline/feldman_verifiable_sum/pipeline-feldman-verifiable-sum.py
hubert-he/FATE
6758e150bd7ca7d6f788f9a7a8c8aea7e6500363
[ "Apache-2.0" ]
1,179
2019-08-29T16:18:32.000Z
2022-03-31T12:55:38.000Z
# # Copyright 2019 The FATE 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...
38.315217
118
0.743262
794e790b6e53e67407a7833c7f4f83bab8625c1d
1,820
py
Python
src/quocslib/timeevolution/piecewise_integrator.py
marcorossignolo/QuOCS
5ed631e2aebc42b226f5992daf27e2da75a89af9
[ "Apache-2.0" ]
null
null
null
src/quocslib/timeevolution/piecewise_integrator.py
marcorossignolo/QuOCS
5ed631e2aebc42b226f5992daf27e2da75a89af9
[ "Apache-2.0" ]
null
null
null
src/quocslib/timeevolution/piecewise_integrator.py
marcorossignolo/QuOCS
5ed631e2aebc42b226f5992daf27e2da75a89af9
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy.linalg import expm # can we do conditional import? try: import jax.scipy as jsp except: raise ImportError def pw_evolution(U_store, drive, A, B, n_slices, dt): """Compute the piecewise evolution of a system defined by the Hamiltonian H = A + drive * B and store the resul...
35
112
0.663736
794e79b4d19525cab0ee659c77d7a4383a1c962c
3,607
py
Python
A3C/options.py
Francesco-Sovrano/Generic-Hierarchical-Deep-Reinforcement-Learning-for-Sentiment-Analysis
f6845b682176b76c97cbfc4e0d2dc8576e9883cb
[ "MIT" ]
13
2018-11-04T16:51:41.000Z
2022-01-31T17:41:15.000Z
A3C/options.py
Francesco-Sovrano/Generic-Hierarchical-Deep-Reinforcement-Learning-for-Sentiment-Analysis
f6845b682176b76c97cbfc4e0d2dc8576e9883cb
[ "MIT" ]
null
null
null
A3C/options.py
Francesco-Sovrano/Generic-Hierarchical-Deep-Reinforcement-Learning-for-Sentiment-Analysis
f6845b682176b76c97cbfc4e0d2dc8576e9883cb
[ "MIT" ]
2
2018-12-12T08:45:30.000Z
2021-06-27T21:47:18.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf def build(): # Common tf.app.flags.DEFINE_boolean("use_gpu", False, "whether to use the GPU") tf.app.flags.DEFINE_string("env_type", "sentipolc", "environment...
69.365385
170
0.768506
794e7b067fca7a338c7c3ad4d8f2ebb65c68785f
13,468
py
Python
submodules/dqd/ribs/emitters/opt/_cma_es.py
JiangZehua/control-pcgrl3D
f9b04e65e1cbf70b7306f4df251450d83c6fb2be
[ "MIT" ]
null
null
null
submodules/dqd/ribs/emitters/opt/_cma_es.py
JiangZehua/control-pcgrl3D
f9b04e65e1cbf70b7306f4df251450d83c6fb2be
[ "MIT" ]
null
null
null
submodules/dqd/ribs/emitters/opt/_cma_es.py
JiangZehua/control-pcgrl3D
f9b04e65e1cbf70b7306f4df251450d83c6fb2be
[ "MIT" ]
null
null
null
"""Implementation of CMA-ES that can be used across various emitters. Adapted from Nikolaus Hansen's pycma: https://github.com/CMA-ES/pycma/blob/master/cma/purecma.py """ import numba as nb import numpy as np class DecompMatrix: """Maintains a covariance matrix and its eigendecomposition. CMA-ES requires th...
40.812121
80
0.604396
794e7ceba492090ad1d58d9ed53edc74bb440771
644
py
Python
convertall.py
dholth/wgc
4e3bd877420fbacd66e961a32adaf1428e24bd42
[ "0BSD" ]
null
null
null
convertall.py
dholth/wgc
4e3bd877420fbacd66e961a32adaf1428e24bd42
[ "0BSD" ]
null
null
null
convertall.py
dholth/wgc
4e3bd877420fbacd66e961a32adaf1428e24bd42
[ "0BSD" ]
null
null
null
#!/bin/python import glob import wgc2 from pathlib import Path if False: """ real 0m51.348s user 0m40.623s sys 0m8.666s """ outdir = "converted" for i in glob.glob("wheels/*.whl"): infile = Path(i) outfile = Path(outdir).joinpath(infile.name) wgc2.recompress(i, outfile) e...
18.4
52
0.599379
794e8038b98f45f8c11052caf9cbe98d97e08bbe
949
py
Python
Logger.py
brilliant-ember/YouTube-Channel-Downloader
6f17a19066a0deeae7e16e91860d04285cdb2f5d
[ "Unlicense" ]
null
null
null
Logger.py
brilliant-ember/YouTube-Channel-Downloader
6f17a19066a0deeae7e16e91860d04285cdb2f5d
[ "Unlicense" ]
22
2021-11-02T10:27:06.000Z
2022-01-08T12:16:40.000Z
Logger.py
brilliant-ember/YouTube-Channel-Downloader
6f17a19066a0deeae7e16e91860d04285cdb2f5d
[ "Unlicense" ]
null
null
null
import logging from utils import get_now_date class Log: def __init__(self, log_file_path): logging.basicConfig(filename=log_file_path, format='%(levelname)s - %(message)s', level=logging.INFO) def log(self, msg:str, level="info", print_log=True) -> None: #TODO add more log levels like debug, warn , critical ....
27.911765
103
0.682824
794e8088807412a9788164fd7106d6718880e3b4
217
py
Python
Sorting/test_distinct.py
matt-sm/codility
355eef4a1be67f5758faa884cb97a5c0ff65169e
[ "MIT" ]
null
null
null
Sorting/test_distinct.py
matt-sm/codility
355eef4a1be67f5758faa884cb97a5c0ff65169e
[ "MIT" ]
null
null
null
Sorting/test_distinct.py
matt-sm/codility
355eef4a1be67f5758faa884cb97a5c0ff65169e
[ "MIT" ]
null
null
null
import pytest import distinct testdata = [([2, 1, 1, 2, 3, 1], 3), ([9, 9, 9, 9, 9], 1)] @pytest.mark.parametrize("A,expected", testdata) def test_distinct(A, expected): assert distinct.solution(A) == expected
21.7
58
0.64977
794e814b317313bb02a3f3b40e966b9c7d038606
701
py
Python
src/part_2_automation/data_driven/runner.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
src/part_2_automation/data_driven/runner.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
src/part_2_automation/data_driven/runner.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
1
2022-03-16T10:39:03.000Z
2022-03-16T10:39:03.000Z
import os from fuzzywuzzy import fuzz from src.part_2_automation.data_driven.parser import get_input_data from src.part_2_automation.data_driven.parser_csv_file import get_input_data_csv def my_test_case(input_data, expected_data): similarity = fuzz.partial_ratio(input_data, expected_data) if similarity > ...
21.242424
80
0.707561
794e81c002c7776a5673aa6ceac3b61ac83cf1b6
437
py
Python
frontend/views.py
hasadna/birdee
304a9e259d69e49535f4529288a01967c9c4c15a
[ "Apache-2.0" ]
1
2017-10-29T05:56:00.000Z
2017-10-29T05:56:00.000Z
frontend/views.py
hasadna/birdee
304a9e259d69e49535f4529288a01967c9c4c15a
[ "Apache-2.0" ]
null
null
null
frontend/views.py
hasadna/birdee
304a9e259d69e49535f4529288a01967c9c4c15a
[ "Apache-2.0" ]
null
null
null
from account.forms import AccountCreationForm from account.models import Account from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import TemplateView, CreateView class MainView(LoginRequiredMixin, TemplateView): template_name = 'frontend/main.html' class AccountRegisterView(Cr...
29.133333
57
0.814645
794e8210f82e3d23df9543aa44d8b2195ab7e407
621
py
Python
homeassistant/components/nest/sensor.py
galihmelon/core
0c852b5f816c9b21f244b7acebfcc952ff29b937
[ "Apache-2.0" ]
null
null
null
homeassistant/components/nest/sensor.py
galihmelon/core
0c852b5f816c9b21f244b7acebfcc952ff29b937
[ "Apache-2.0" ]
47
2020-07-15T06:41:53.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/nest/sensor.py
tedsluis/home-assistant
cc776214772c51d0db808852306fa6762b9616e1
[ "Apache-2.0" ]
1
2018-08-03T20:06:38.000Z
2018-08-03T20:06:38.000Z
"""Support for Nest sensors that dispatches between API versions.""" from homeassistant.config_entries import ConfigEntry from homeassistant.helpers.typing import HomeAssistantType from .const import DATA_SDM from .sensor_legacy import async_setup_legacy_entry from .sensor_sdm import async_setup_sdm_entry async def...
34.5
71
0.800322
794e8220aef17a5a3d56ead8b62c7c81386c783d
5,587
py
Python
app/user/tests/test_user_api.py
dushdesh/django-recipe-api
6343720ec6270fa8dc927677a7af30431e4efbf8
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
dushdesh/django-recipe-api
6343720ec6270fa8dc927677a7af30431e4efbf8
[ "MIT" ]
null
null
null
app/user/tests/test_user_api.py
dushdesh/django-recipe-api
6343720ec6270fa8dc927677a7af30431e4efbf8
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from django.urls import reverse from rest_framework.test import APIClient from rest_framework import status CREATE_USER_URL = reverse('user:create') USER_TOKEN_URL = reverse('user:token') ME_URL = reverse('user:me') def create_user(**p...
31.744318
77
0.615894
794e826dae8d94e015f0fb63e01a4edae4104764
10,186
py
Python
elasticapm/transport/http.py
snappyflow/sftrace-python-agent
dc186b55aef86e7ec7d8d755c72b16c292eac9b3
[ "BSD-3-Clause" ]
null
null
null
elasticapm/transport/http.py
snappyflow/sftrace-python-agent
dc186b55aef86e7ec7d8d755c72b16c292eac9b3
[ "BSD-3-Clause" ]
null
null
null
elasticapm/transport/http.py
snappyflow/sftrace-python-agent
dc186b55aef86e7ec7d8d755c72b16c292eac9b3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # BSD 3-Clause License # # Copyright (c) 2019, Elasticsearch BV # 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 ...
42.441667
119
0.628215
794e82c374da191c7df59fbd4fa68619964ac713
306
py
Python
Python/numOfAlpha.py
Mario263/Hacktoberfest_2021
57965f48d3b19d25d2c0b75525eab4c4dce0157a
[ "MIT" ]
16
2021-10-15T08:41:52.000Z
2022-01-02T11:14:30.000Z
Python/numOfAlpha.py
Mario263/Hacktoberfest_2021
57965f48d3b19d25d2c0b75525eab4c4dce0157a
[ "MIT" ]
5
2021-10-17T06:04:41.000Z
2021-10-30T16:45:40.000Z
Python/numOfAlpha.py
Mario263/Hacktoberfest_2021
57965f48d3b19d25d2c0b75525eab4c4dce0157a
[ "MIT" ]
43
2021-10-15T14:03:48.000Z
2022-03-09T21:32:46.000Z
text = input("Enter text: ") alpha,digit,space = 0,0,0 for x in text: if x.isdigit(): digit+=1 elif x.isspace(): space+=1 elif x.isalpha(): alpha+=1 print('Number of Alphabets =',alpha) print('Number of Digits =',digit) print('Number of Spaces =',space)
20.4
37
0.565359
794e83666d92896681bb16e0eaecef54d57c2277
1,719
py
Python
official/vision/configs/video_classification_test.py
mcasanova1445/models
37be0fdb4abccca633bb3199a4e6f3f71cd174d9
[ "Apache-2.0" ]
1
2022-03-04T02:08:52.000Z
2022-03-04T02:08:52.000Z
official/vision/configs/video_classification_test.py
mcasanova1445/models
37be0fdb4abccca633bb3199a4e6f3f71cd174d9
[ "Apache-2.0" ]
null
null
null
official/vision/configs/video_classification_test.py
mcasanova1445/models
37be0fdb4abccca633bb3199a4e6f3f71cd174d9
[ "Apache-2.0" ]
1
2022-03-21T13:47:02.000Z
2022-03-21T13:47:02.000Z
# Copyright 2022 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.369565
78
0.774869
794e8428eb5a6001068a83715f4ad6acc4994e3f
105,171
py
Python
pysnmp-with-texts/SNANET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/SNANET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/SNANET-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module SNANET-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SNANET-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:08:02 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
135.529639
8,910
0.775775
794e84947417442851a24dc0b8d47fc1781d42d2
1,915
py
Python
mayan/apps/document_parsing/tests/mixins.py
bonitobonita24/mayan-edms-v3.4.7
46604926e09b96716790c9aed462fe231968fd18
[ "Apache-2.0" ]
null
null
null
mayan/apps/document_parsing/tests/mixins.py
bonitobonita24/mayan-edms-v3.4.7
46604926e09b96716790c9aed462fe231968fd18
[ "Apache-2.0" ]
10
2021-03-19T23:48:12.000Z
2022-03-12T00:41:49.000Z
mayan/apps/document_parsing/tests/mixins.py
hidayath-ispace/mayan-edms
83e5d7e50fdace5cc1681b8b882193fef3053c70
[ "Apache-2.0" ]
null
null
null
class DocumentContentToolsViewsTestMixin(object): def _request_document_parsing_error_list_view(self): return self.get(viewname='document_parsing:error_list') def _request_document_parsing_tool_view(self): return self.post( viewname='document_parsing:document_type_submit', data={ ...
34.196429
77
0.655352
794e850cd225621cb748b68c3d1a46ddc4e23efb
5,567
py
Python
plugins/hg4idea/testData/bin/mercurial/hgweb/common.py
dmarcotte/intellij-community
74ed654c3f9ed99f9cc84fa227846b2c38d683c0
[ "Apache-2.0" ]
null
null
null
plugins/hg4idea/testData/bin/mercurial/hgweb/common.py
dmarcotte/intellij-community
74ed654c3f9ed99f9cc84fa227846b2c38d683c0
[ "Apache-2.0" ]
null
null
null
plugins/hg4idea/testData/bin/mercurial/hgweb/common.py
dmarcotte/intellij-community
74ed654c3f9ed99f9cc84fa227846b2c38d683c0
[ "Apache-2.0" ]
1
2019-03-14T10:35:19.000Z
2019-03-14T10:35:19.000Z
# hgweb/common.py - Utility functions needed by hgweb_mod and hgwebdir_mod # # Copyright 21 May 2005 - (c) 2005 Jake Edge <jake@edge2.net> # Copyright 2005, 2006 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later...
35.916129
77
0.670559
794e86676817768b857b2153620496593827dd7a
108
py
Python
exceptions/__init__.py
jeremy-badcock/experiment-length-cli
96ce6f1c89dd83735d88a7806b80709dc8bb87fd
[ "MIT" ]
null
null
null
exceptions/__init__.py
jeremy-badcock/experiment-length-cli
96ce6f1c89dd83735d88a7806b80709dc8bb87fd
[ "MIT" ]
null
null
null
exceptions/__init__.py
jeremy-badcock/experiment-length-cli
96ce6f1c89dd83735d88a7806b80709dc8bb87fd
[ "MIT" ]
null
null
null
from .cli import InvalidArgumentError, InvalidDateFormatError from .experiment import InvalidDateRangeError
36
61
0.888889
794e86d4649ab161d2e025179ecd9984dd38d1e2
16,784
py
Python
yellowbrick/classifier/rocauc.py
Juan0001/yellowbrick
b2336e2b3e549bc3d9647c14893add7dd6bc8a2c
[ "Apache-2.0" ]
null
null
null
yellowbrick/classifier/rocauc.py
Juan0001/yellowbrick
b2336e2b3e549bc3d9647c14893add7dd6bc8a2c
[ "Apache-2.0" ]
null
null
null
yellowbrick/classifier/rocauc.py
Juan0001/yellowbrick
b2336e2b3e549bc3d9647c14893add7dd6bc8a2c
[ "Apache-2.0" ]
null
null
null
# yellowbrick.classifier.rocauc # Implements visual ROC/AUC curves for classification evaluation. # # Author: Rebecca Bilbro <rbilbro@districtdatalabs.com> # Author: Benjamin Bengfort <bbengfort@districtdatalabs.com> # Author: Neal Humphrey # Created: Wed May 18 12:39:40 2016 -0400 # # Copyright (C) 2017 Distric...
38.058957
91
0.634295
794e871cb54dbdd706702778c4281a025954b744
218
py
Python
oauth/templatetags/__init__.py
sometimeslove/www.superstrong.com
8600706e526bf5a979ef095ca25ada09cf44d6ac
[ "MIT" ]
null
null
null
oauth/templatetags/__init__.py
sometimeslove/www.superstrong.com
8600706e526bf5a979ef095ca25ada09cf44d6ac
[ "MIT" ]
10
2020-06-06T01:55:42.000Z
2022-03-12T00:30:36.000Z
oauth/templatetags/__init__.py
sometimeslove/www.superstrong.com
8600706e526bf5a979ef095ca25ada09cf44d6ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ @version: ?? @author: superstrongz @license: MIT Licence @contact: 857508399@qq.com @site: http://www.superstrongz.com/ @software: PyCharm @file: __init__.py @time: ?? """
15.571429
35
0.683486
794e87cee969e30f1b35772f3c67266fe6f3ff97
4,730
py
Python
pyocd/coresight/generic_mem_ap.py
LONGZR007/pyOCD
2c5a20a267c2670db0c233487fefd262f5a7c181
[ "Apache-2.0" ]
null
null
null
pyocd/coresight/generic_mem_ap.py
LONGZR007/pyOCD
2c5a20a267c2670db0c233487fefd262f5a7c181
[ "Apache-2.0" ]
null
null
null
pyocd/coresight/generic_mem_ap.py
LONGZR007/pyOCD
2c5a20a267c2670db0c233487fefd262f5a7c181
[ "Apache-2.0" ]
null
null
null
# pyOCD debugger # Copyright (c) 2020 Cypress Semiconductor Corporation # SPDX-License-Identifier: Apache-2.0 # # 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/lic...
27.988166
91
0.689006
794e898e03edef3950620d38cc7fc74d97d83c85
52
py
Python
lib/networks/__init__.py
bertid/clean-pvnet
8e1afdfe450c7d73274581d2907ad0215cba8331
[ "Apache-2.0" ]
284
2019-12-14T08:09:40.000Z
2022-03-26T02:17:26.000Z
lib/networks/__init__.py
danikhani/clean-pvnet
4f91324c5bc9d2a05624f49c6cad15a33a446106
[ "Apache-2.0" ]
208
2019-12-16T13:09:49.000Z
2022-03-25T07:38:20.000Z
lib/networks/__init__.py
danikhani/clean-pvnet
4f91324c5bc9d2a05624f49c6cad15a33a446106
[ "Apache-2.0" ]
88
2019-12-14T12:33:51.000Z
2022-03-22T21:07:09.000Z
from .make_network import make_network, get_network
26
51
0.865385
794e8a542a4446ecbd75f8604ec31e76aa80142b
3,728
py
Python
src/trainModel.py
XiaominWuFred/autoGaming
9277f6d3c8508ef7c2fa187801b995469af3f3f5
[ "MIT" ]
null
null
null
src/trainModel.py
XiaominWuFred/autoGaming
9277f6d3c8508ef7c2fa187801b995469af3f3f5
[ "MIT" ]
null
null
null
src/trainModel.py
XiaominWuFred/autoGaming
9277f6d3c8508ef7c2fa187801b995469af3f3f5
[ "MIT" ]
null
null
null
# TensorFlow and tf.keras import tensorflow as tf from tensorflow import keras # Helper libraries import numpy as np import matplotlib.pyplot as plt import math from keras import Sequential from keras.layers import Dense, Flatten, Activation, Dropout, Conv2D, MaxPooling2D from PIL import Image import random...
29.354331
107
0.650751
794e8b1c4fb03341588e5a060f664f0a42c55394
551
py
Python
rqalpha/mod/rqalpha_mod_sys_simulation/testing.py
jandykwan/rqalpha
1ed12adb5337ad81cb0c662a45ff4c787b4f3313
[ "Apache-2.0" ]
1
2019-04-22T14:29:24.000Z
2019-04-22T14:29:24.000Z
rqalpha/mod/rqalpha_mod_sys_simulation/testing.py
jandykwan/rqalpha
1ed12adb5337ad81cb0c662a45ff4c787b4f3313
[ "Apache-2.0" ]
2
2018-07-31T08:42:11.000Z
2019-05-07T10:25:52.000Z
rqalpha/mod/rqalpha_mod_sys_simulation/testing.py
jandykwan/rqalpha
1ed12adb5337ad81cb0c662a45ff4c787b4f3313
[ "Apache-2.0" ]
1
2021-11-03T15:42:57.000Z
2021-11-03T15:42:57.000Z
from rqalpha.utils.testing import EnvironmentFixture class SimulationEventSourceFixture(EnvironmentFixture): def __init__(self, *args, **kwargs): super(SimulationEventSourceFixture, self).__init__(*args, **kwargs) self.simulation_event_source = None def init_fixture(self): from rqalph...
39.357143
104
0.76588
794e8b48334faba064479a0a742ff5dc322b2964
4,046
py
Python
terra_sdk/protobuf/tendermint/crypto/keys_pb2.py
sejalsahni/terra.py
0fd84969441c58427a21448520697c3ab3ec2d0c
[ "MIT" ]
24
2021-05-30T05:48:33.000Z
2021-10-07T04:47:15.000Z
terra_sdk/protobuf/tendermint/crypto/keys_pb2.py
sejalsahni/terra.py
0fd84969441c58427a21448520697c3ab3ec2d0c
[ "MIT" ]
18
2021-05-30T09:05:26.000Z
2021-10-17T07:12:12.000Z
terra_sdk/protobuf/tendermint/crypto/keys_pb2.py
sejalsahni/terra.py
0fd84969441c58427a21448520697c3ab3ec2d0c
[ "MIT" ]
10
2021-02-11T00:56:04.000Z
2021-05-27T08:37:49.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tendermint/crypto/keys.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from...
33.163934
358
0.673752
794e8b5b383d76ea0028f0618501d048a461317c
2,421
py
Python
doc/source/conf.py
jamielennox/jsonhome
b886b7167a57370707473b0535e03d0356b40b3e
[ "Apache-2.0" ]
1
2016-08-01T13:08:36.000Z
2016-08-01T13:08:36.000Z
doc/source/conf.py
jamielennox/jsonhome
b886b7167a57370707473b0535e03d0356b40b3e
[ "Apache-2.0" ]
null
null
null
doc/source/conf.py
jamielennox/jsonhome
b886b7167a57370707473b0535e03d0356b40b3e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software...
32.28
79
0.695993
794e8ba07ed5197e30226e9b074cfd8b8f9f210e
13,015
py
Python
nova/api/openstack/compute/simple_tenant_usage.py
hanlind/nova
658ade3aca1305e15c3b29dcced5f184159794cd
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/simple_tenant_usage.py
hanlind/nova
658ade3aca1305e15c3b29dcced5f184159794cd
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/api/openstack/compute/simple_tenant_usage.py
hanlind/nova
658ade3aca1305e15c3b29dcced5f184159794cd
[ "Apache-2.0" ]
1
2020-07-22T22:06:24.000Z
2020-07-22T22:06:24.000Z
# Copyright 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
36.558989
79
0.594622
794e8be7b16a15df9dac4aeeb3260af74c7f8925
411
py
Python
.history/py/UserInput_20201230130306.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/py/UserInput_20201230130306.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
.history/py/UserInput_20201230130306.py
minefarmer/Comprehensive-Python
f97b9b83ec328fc4e4815607e6a65de90bb8de66
[ "Unlicense" ]
null
null
null
# person = input("Enter your name: ") # Carl # print("Hello ", person) # Hello Carl # x = input("Enter a number: ") # 8 # y = input("Enter another number: ") # 7 # z = x + y # print(z) # 87 ## this was the result of concatenation person = input("Enter your name: ") # print("Hello ", person) x = input("En...
21.631579
58
0.576642
794e8cbdb82c51c415bad4fcef252a278b27865c
40,415
py
Python
sx/pisa3/pisa_context.py
kravciuk/pisa
39a7e9379cf059f11fea54127c8bfb242ad477e6
[ "Apache-2.0" ]
null
null
null
sx/pisa3/pisa_context.py
kravciuk/pisa
39a7e9379cf059f11fea54127c8bfb242ad477e6
[ "Apache-2.0" ]
null
null
null
sx/pisa3/pisa_context.py
kravciuk/pisa
39a7e9379cf059f11fea54127c8bfb242ad477e6
[ "Apache-2.0" ]
1
2021-06-10T20:46:31.000Z
2021-06-10T20:46:31.000Z
# -*- coding: utf-8 -*- # Copyright 2010 Dirk Holtwick, holtwick.it # # 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...
38.091423
141
0.503006
794e8eb943228ba371e13c8f18e4b6b873714242
365
py
Python
setup.py
sanmedina/Top-Lifetime-Grosses-scrapper
e8245719f9e204b31e17746c96657b962c901ce7
[ "MIT" ]
null
null
null
setup.py
sanmedina/Top-Lifetime-Grosses-scrapper
e8245719f9e204b31e17746c96657b962c901ce7
[ "MIT" ]
null
null
null
setup.py
sanmedina/Top-Lifetime-Grosses-scrapper
e8245719f9e204b31e17746c96657b962c901ce7
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="Top-Lifetime-Grosses-scrapper", version="1.0.0", packages=["src"], install_requires=[ "beautifulsoup4", "lxml", "requests", "black", "isort", "pre-commit", ], url="", license="", author="sanmedina"...
17.380952
41
0.520548
794e8ed4e8cae3c78b585cbaf78269d71550e58b
444
py
Python
date_models/examine_dataset.py
RossDeVito/news-tsl-cse291
7b9c2fe2feb6da673bd1bd73684cd841bff07496
[ "MIT" ]
null
null
null
date_models/examine_dataset.py
RossDeVito/news-tsl-cse291
7b9c2fe2feb6da673bd1bd73684cd841bff07496
[ "MIT" ]
6
2021-04-06T18:22:56.000Z
2022-03-12T00:52:25.000Z
date_models/examine_dataset.py
RossDeVito/news-tsl-cse291
7b9c2fe2feb6da673bd1bd73684cd841bff07496
[ "MIT" ]
null
null
null
''' Short script used to examine the format of the data in a news timeline dataset ''' import os import pandas as pd from date_models.model_utils import inspect def main(): input_file = '../datasets/t17/bpoil/articles.preprocessed_mod.jsonl' df = pd.read_json(input_file) inspect(df) if __name__ == '__m...
22.2
78
0.707207
794e8fb691d5cab797618210ea056ee76d840476
28,070
py
Python
test/functional/rpc_rawtransaction.py
VeriBlock/pop-bch
fd816fa9e173f944ce468820bfde8ee7a71edc96
[ "MIT" ]
1
2021-09-08T14:27:00.000Z
2021-09-08T14:27:00.000Z
test/functional/rpc_rawtransaction.py
cculianu/bitcoin-abc
007128a7f610936c20e060a4f3a2afe623d453b4
[ "MIT" ]
1
2022-03-09T14:32:59.000Z
2022-03-09T14:32:59.000Z
test/functional/rpc_rawtransaction.py
VeriBlock/pop-bch
fd816fa9e173f944ce468820bfde8ee7a71edc96
[ "MIT" ]
1
2019-10-28T13:39:39.000Z
2019-10-28T13:39:39.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the rawtranscation RPCs. Test the following RPCs: - createrawtransaction - signrawtransacti...
46.627907
139
0.585358
794e9056d41f66b5a9af93f43724bff85ce699fe
3,203
py
Python
jithbot.py
Jithra/JithBot
e99679fde3a74d956c40db15eca91223a401ad2e
[ "MIT" ]
null
null
null
jithbot.py
Jithra/JithBot
e99679fde3a74d956c40db15eca91223a401ad2e
[ "MIT" ]
null
null
null
jithbot.py
Jithra/JithBot
e99679fde3a74d956c40db15eca91223a401ad2e
[ "MIT" ]
null
null
null
from PluginManager import PluginManager import discord import traceback import re print("Starting JithBot") print("Starting Discord Client") # Creates a discord client, which we will use to connect and interact with the server. # All methods with @client.event annotations are event handlers for this client. client = d...
33.364583
104
0.700905
794e90b25d141c582eae5b0f89ea2b5927153f7d
3,782
py
Python
P1/Parte3.py
HerouFenix/PraticasIA
37f829b53e2eb2986468e69de297699fcd2a8462
[ "MIT" ]
2
2019-10-16T13:28:59.000Z
2019-11-13T13:21:51.000Z
P1/Parte3.py
HerouFenix/PraticasIA
37f829b53e2eb2986468e69de297699fcd2a8462
[ "MIT" ]
null
null
null
P1/Parte3.py
HerouFenix/PraticasIA
37f829b53e2eb2986468e69de297699fcd2a8462
[ "MIT" ]
2
2019-10-30T13:33:56.000Z
2019-11-25T14:36:28.000Z
#Funçoes que retornam None #1. Dada uma lista, retornar o elemento que esta a cabeca (ou seja, na posicao 0). def get_head(lista): #( ͡° ͜ʖ ͡°) if len(lista) == 0: #No caso de lista vazia return None return lista[0] #2. Dada uma lista, retornar a sua cauda (ou seja, todos os elementos a excepcao do pr...
34.697248
151
0.638287
794e90ebf4066373e9e80503d5223bdfcb0a3273
580
py
Python
lab8/point.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
1
2021-04-04T07:34:14.000Z
2021-04-04T07:34:14.000Z
lab8/point.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
null
null
null
lab8/point.py
kuzkov/computational-geometry
4411231a8097e618e03b3ef0ad5836e49e837216
[ "MIT" ]
1
2021-02-18T09:50:10.000Z
2021-02-18T09:50:10.000Z
import math import numpy as np from vector import Vector import segment as segment_lib class Point(Vector): def direction(self, segment): det = np.linalg.det([ segment.as_vector().as_array(), segment_lib.Segment(segment.p1, self).as_vector().as_array() ]) return 1 i...
25.217391
91
0.631034
794e90fd526d75f68cf9df0b416a5f4fa1249391
9,900
py
Python
3D/models/main_model.py
zabaras/inn-surrogate
e04bbabb0c93ad9d8880193e3c1410ba5d9211c2
[ "MIT" ]
12
2021-02-17T08:38:23.000Z
2021-12-14T20:34:31.000Z
3D/models/main_model.py
zabaras/inn-surrogate
e04bbabb0c93ad9d8880193e3c1410ba5d9211c2
[ "MIT" ]
1
2021-11-18T13:25:18.000Z
2021-11-18T15:11:57.000Z
3D/models/main_model.py
zabaras/inn-surrogate
e04bbabb0c93ad9d8880193e3c1410ba5d9211c2
[ "MIT" ]
5
2021-02-19T23:06:29.000Z
2021-09-20T17:11:00.000Z
import numpy as np import torch import sys import torch.nn as nn from models.flat_data_model import Flat_data from models.Unflat_data_model import Unflat_data from models.Divide_data_model import divide_data from models.Permute_data_model import Permute_data from models.Downsample_model import Downsample from models....
39.285714
128
0.580707
794e91238f5c819eaef9c850c84c8da86afe80ce
1,810
py
Python
docs/sources/conf.py
imbi7py/filemanager
1f0cf3ceb826528fe6be8fb38cfa1d252afbce22
[ "MIT" ]
24
2020-10-31T11:59:30.000Z
2022-03-23T10:37:05.000Z
docs/sources/conf.py
imbi7py/filemanager
1f0cf3ceb826528fe6be8fb38cfa1d252afbce22
[ "MIT" ]
2
2020-11-19T20:26:21.000Z
2021-05-04T17:06:28.000Z
docs/sources/conf.py
kivymd-extensions/filemanager
1f0cf3ceb826528fe6be8fb38cfa1d252afbce22
[ "MIT" ]
2
2020-11-16T13:37:04.000Z
2021-04-15T09:57:07.000Z
# Configuration file for the Sphinx documentation builder. # https://www.sphinx-doc.org/en/master/usage/configuration.html # Path setup import os import sys sys.path.insert(0, os.path.abspath("_extensions")) sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(".")))) import autoapi_filemanager # NOQA...
25.492958
74
0.739779
794e92f4d7f7435d4f4c9fdaf31ca68fce3ca0ec
26,336
py
Python
Exercises/pacman-search/pacman.py
yajuanw/artificial-intelligence
b10f7651fd4516a9ccf8b90e05a12809a3ba7b33
[ "MIT" ]
2
2021-01-03T11:04:03.000Z
2021-01-03T11:04:03.000Z
Exercises/pacman-search/pacman.py
yajuanw/artificial-intelligence
b10f7651fd4516a9ccf8b90e05a12809a3ba7b33
[ "MIT" ]
null
null
null
Exercises/pacman-search/pacman.py
yajuanw/artificial-intelligence
b10f7651fd4516a9ccf8b90e05a12809a3ba7b33
[ "MIT" ]
null
null
null
# pacman.py # --------- # Licensing Information: You are free to use or extend these projects for # educational purposes provided that (1) you do not distribute or publish # solutions, (2) you retain this notice, and (3) you provide clear # attribution to UC Berkeley, including a link to http://ai.berkeley.edu. # # A...
38.446715
119
0.617216
794e937aba1acbaa3e66d8ba295a9545b3716a49
2,453
py
Python
data/p4VQE/R4/benchmark/startQiskit_noisy666.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy666.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy666.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=12 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
26.956044
118
0.630656
794e9389dcf556f5cc3b7cf14ccb205f42426610
2,865
py
Python
utest/running/test_imports.py
zahed3795/robotframework
9fb227f9116332bb4361271b41165acd94fc5956
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
utest/running/test_imports.py
zahed3795/robotframework
9fb227f9116332bb4361271b41165acd94fc5956
[ "ECL-2.0", "Apache-2.0" ]
29
2021-01-26T07:09:54.000Z
2022-03-28T10:38:54.000Z
utest/running/test_imports.py
zahed3795/robotframework
9fb227f9116332bb4361271b41165acd94fc5956
[ "ECL-2.0", "Apache-2.0" ]
1
2018-04-23T10:03:05.000Z
2018-04-23T10:03:05.000Z
import unittest from robot.running import TestSuite from robot.utils import StringIO from robot.utils.asserts import assert_equal, assert_raises_with_msg def run(suite, **config): result = suite.run(output=None, log=None, report=None, stdout=StringIO(), stderr=StringIO(), **config) ret...
37.697368
78
0.605585
794e94ca6b575f6b93b63a0df021a3d83ea9ce5b
1,962
py
Python
restfulpy/tests/test_smtp_provider.py
maryayi/restfulpy
df4a88a7cc2740c37fd8d80c310e0372b83cd8e0
[ "MIT" ]
1
2021-06-11T21:39:44.000Z
2021-06-11T21:39:44.000Z
restfulpy/tests/test_smtp_provider.py
maryayi/restfulpy
df4a88a7cc2740c37fd8d80c310e0372b83cd8e0
[ "MIT" ]
null
null
null
restfulpy/tests/test_smtp_provider.py
maryayi/restfulpy
df4a88a7cc2740c37fd8d80c310e0372b83cd8e0
[ "MIT" ]
null
null
null
import io import unittest from os.path import dirname, abspath, join from nanohttp import settings, configure from restfulpy.messaging.providers import SmtpProvider from restfulpy.testing.mockup import smtp_server HERE = abspath(dirname(__file__)) class SmtpProviderTestCase(unittest.TestCase): __configuration_...
26.876712
68
0.538226
794e9550fc58b3830385741ac05094b4a021811d
486
py
Python
old_logen/pylogen/logen_dispatch.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
14
2015-10-16T11:35:30.000Z
2021-05-12T15:31:16.000Z
old_logen/pylogen/logen_dispatch.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
null
null
null
old_logen/pylogen/logen_dispatch.py
leuschel/logen
0ea806f54628162615e25177c3ed98f6b2c27935
[ "Apache-2.0" ]
5
2015-10-16T12:44:41.000Z
2019-10-02T02:45:38.000Z
import os import development def get_pylogen_cmd(): if development.get_development(): cmdline = "sicstus -r pylogen_main.sav --goal \"runtime_entry(start),halt.\" -a" else: cmdline = os.path.join(".","pylogen") return cmdline def build_dispatcher(path,Spec,Memo,File,Output): ...
19.44
89
0.619342
794e977690c154aa974b43c0bf271097cf540e0d
2,324
py
Python
tg/support/middlewares.py
sergiobrr/tg2
401d77d82bd9daacb9444150c63bb039bf003436
[ "MIT" ]
812
2015-01-16T22:57:52.000Z
2022-03-27T04:49:40.000Z
tg/support/middlewares.py
sergiobrr/tg2
401d77d82bd9daacb9444150c63bb039bf003436
[ "MIT" ]
74
2015-02-18T17:55:31.000Z
2021-12-13T10:41:08.000Z
tg/support/middlewares.py
sergiobrr/tg2
401d77d82bd9daacb9444150c63bb039bf003436
[ "MIT" ]
72
2015-06-10T06:02:45.000Z
2022-03-27T08:37:24.000Z
from tg.request_local import Request, Response import logging log = logging.getLogger(__name__) class SeekableRequestBodyMiddleware(object): def __init__(self, app): self.app = app def _stream_response(self, data): try: for chunk in data: yield chunk final...
30.181818
75
0.626936
794e97b9528374fd9e20a89c87553ac37988de7c
14,492
py
Python
src/ptb/main.py
richardfat7/enas
e830fc1ad50be1824162719f2b005ade08451359
[ "Apache-2.0" ]
null
null
null
src/ptb/main.py
richardfat7/enas
e830fc1ad50be1824162719f2b005ade08451359
[ "Apache-2.0" ]
null
null
null
src/ptb/main.py
richardfat7/enas
e830fc1ad50be1824162719f2b005ade08451359
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import cPickle as pickle import shutil import sys import time import numpy as np import tensorflow as tf from src import utils from src.utils import Logger from src.utils import DEFINE_boolean from ...
36.23
77
0.642354
794e98703d960c8f9e7efd2722f476e98874392c
120,828
py
Python
scripts/linters/pylint_extensions_test.py
TheoLipeles/oppia
cd0bb873e08fa716014f3d1480fbbfee95b89121
[ "Apache-2.0" ]
2
2021-03-07T18:39:15.000Z
2021-03-29T20:09:11.000Z
scripts/linters/pylint_extensions_test.py
TheoLipeles/oppia
cd0bb873e08fa716014f3d1480fbbfee95b89121
[ "Apache-2.0" ]
null
null
null
scripts/linters/pylint_extensions_test.py
TheoLipeles/oppia
cd0bb873e08fa716014f3d1480fbbfee95b89121
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2018 The Oppia 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 requi...
36.143584
84
0.590724
794e99520d8e1818d9ddc1f6af065c43ffada72e
1,302
py
Python
configs/configuration_customroberta.py
haodingkui/semeval2020-task5-subtask1
bfd0c808c6b1de910d6f58ea040a13442b4bcdca
[ "MIT" ]
2
2020-08-19T12:32:21.000Z
2021-11-08T15:50:08.000Z
configs/configuration_customroberta.py
haodingkui/semeval2020-task5-subtask1
bfd0c808c6b1de910d6f58ea040a13442b4bcdca
[ "MIT" ]
null
null
null
configs/configuration_customroberta.py
haodingkui/semeval2020-task5-subtask1
bfd0c808c6b1de910d6f58ea040a13442b4bcdca
[ "MIT" ]
1
2020-08-19T12:32:48.000Z
2020-08-19T12:32:48.000Z
from .configuration_custombert import CustomBertConfig class CustomRobertaConfig(CustomBertConfig): model_type = "roberta" def __init__( self, vocab_size=30522, hidden_size=768, num_hidden_layers=12, num_attention_heads=12, intermediate_size=3072, hidd...
33.384615
72
0.697389
794e999f6c7cb1a802a5d1be3239924b6186bea7
11,465
py
Python
reinhard/components/basic.py
FasterSpeeding/Reinhard
c665598f2079576f9cc97b7987f463b7963950d9
[ "BSD-3-Clause" ]
10
2020-11-24T19:08:40.000Z
2022-03-03T07:17:41.000Z
reinhard/components/basic.py
FasterSpeeding/Reinhard
c665598f2079576f9cc97b7987f463b7963950d9
[ "BSD-3-Clause" ]
34
2021-05-07T01:36:14.000Z
2022-03-31T08:15:14.000Z
reinhard/components/basic.py
FasterSpeeding/Reinhard
c665598f2079576f9cc97b7987f463b7963950d9
[ "BSD-3-Clause" ]
1
2021-03-07T12:12:21.000Z
2021-03-07T12:12:21.000Z
# -*- coding: utf-8 -*- # cython: language_level=3 # BSD 3-Clause License # # Copyright (c) 2020-2021, Faster Speeding # 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 sour...
41.389892
115
0.704143
794e9a7baff952bc6c3caf54622466869b0ffc57
1,553
py
Python
neutron/plugins/common/constants.py
kevinbenton/neutron
f27fba3ad77d907713e3e1cbfa45d33e0135c08b
[ "Apache-2.0" ]
null
null
null
neutron/plugins/common/constants.py
kevinbenton/neutron
f27fba3ad77d907713e3e1cbfa45d33e0135c08b
[ "Apache-2.0" ]
null
null
null
neutron/plugins/common/constants.py
kevinbenton/neutron
f27fba3ad77d907713e3e1cbfa45d33e0135c08b
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apac...
25.883333
78
0.707019
794e9aa0a3aef6ea9f5f03b676262650592a285e
50,287
py
Python
jina/flow/base.py
ezhaohongwei/jina
9769f2e35eb8a196304a145409f959a7beac0432
[ "Apache-2.0" ]
1
2021-06-14T00:35:14.000Z
2021-06-14T00:35:14.000Z
jina/flow/base.py
ezhaohongwei/jina
9769f2e35eb8a196304a145409f959a7beac0432
[ "Apache-2.0" ]
null
null
null
jina/flow/base.py
ezhaohongwei/jina
9769f2e35eb8a196304a145409f959a7beac0432
[ "Apache-2.0" ]
null
null
null
import argparse import base64 import copy import os import re import threading import uuid import warnings from collections import OrderedDict, defaultdict from contextlib import ExitStack from typing import Optional, Union, Tuple, List, Set, Dict, overload, Type from .builder import build_required, _build_flow, _hang...
40.391165
283
0.597073
794e9abe4023e306179ab9ad9289f65987599dc1
2,067
py
Python
deprecated/stageI/run_exp_mscoco.py
yao-zhao/EDGAN
b3164fb9d5d9b571b52328b7dd187b748d5a304d
[ "MIT" ]
3
2017-05-30T03:57:59.000Z
2019-04-15T07:05:17.000Z
deprecated/stageI/run_exp_mscoco.py
yao-zhao/EDGAN
b3164fb9d5d9b571b52328b7dd187b748d5a304d
[ "MIT" ]
null
null
null
deprecated/stageI/run_exp_mscoco.py
yao-zhao/EDGAN
b3164fb9d5d9b571b52328b7dd187b748d5a304d
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function import dateutil import dateutil.tz import datetime import argparse import pprint from shutil import copyfile import os from misc.dataloader import DataLoader from stageI.model import CondGAN from stageI.trainer_mscoco import CondGANTrainer_mscoco f...
29.528571
99
0.654088
794e9b01871545eeb8d49c1339fa0cb3b38f04fb
5,807
py
Python
core/dbt/config/renderer.py
sethwoodworth/dbt
68babfb4bbd016e198bb09ac8dfd5dc71760ef7e
[ "Apache-2.0" ]
1
2020-10-25T00:13:50.000Z
2020-10-25T00:13:50.000Z
core/dbt/config/renderer.py
azhard/dbt
9cd7cbc9e35e5a7c8c4f17a3d113263f4421ab55
[ "Apache-2.0" ]
null
null
null
core/dbt/config/renderer.py
azhard/dbt
9cd7cbc9e35e5a7c8c4f17a3d113263f4421ab55
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Any, Tuple, Optional, Union from dbt.clients.jinja import get_rendered from dbt.exceptions import DbtProjectError from dbt.exceptions import RecursionException from dbt.node_types import NodeType from dbt.utils import deep_map Keypath = Tuple[Union[str, int], ...] class BaseRenderer: ...
28.747525
79
0.569141
794e9b1ddfbdb4f03412dca5be3ba702143be01f
6,985
py
Python
talon_one/models/feature_flags.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-03-05T06:41:26.000Z
2021-03-05T06:41:26.000Z
talon_one/models/feature_flags.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2021-09-07T08:56:58.000Z
2021-09-07T08:56:58.000Z
talon_one/models/feature_flags.py
talon-one/talon_one.py
f863bb3c2cc5ddc94d9227adcf14947b2ea7db41
[ "MIT" ]
1
2019-05-21T10:27:54.000Z
2019-05-21T10:27:54.000Z
# coding: utf-8 """ Talon.One API The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. #...
33.581731
647
0.627774
794e9b548a9825ac67ef37d111bd6ab1005f9d95
502
py
Python
automation/gui1.py
ArkAngeL43/automation
f8ad20470a3dd2a180c93d84d170dcdd7bb1c45f
[ "MIT" ]
1
2021-07-10T15:43:22.000Z
2021-07-10T15:43:22.000Z
automation/gui1.py
ArkAngeL43/automation
f8ad20470a3dd2a180c93d84d170dcdd7bb1c45f
[ "MIT" ]
null
null
null
automation/gui1.py
ArkAngeL43/automation
f8ad20470a3dd2a180c93d84d170dcdd7bb1c45f
[ "MIT" ]
null
null
null
from tkinter import * root = Tk() root.geometry("400x400") bg = PhotoImage(file = "pop.ppm") # Show image using label label1 = Label( root, image = bg) label1.place(x = 0, y = 0) label2 = Label( root, text = "Welcome") label2.pack(pady = 50) frame1 = Frame(root) frame1.pack(pady = 20 ) button1 = Button(frame1,text="ha...
27.888889
46
0.689243
794e9bea78c76ce0e1c4bd01090211e6af6b34f1
3,644
py
Python
sbo_sphinx/jsdoc.py
safarijv/sbo-sphinx
7a8efb7c49488131c90c19ef1a1563f595630a36
[ "BSD-2-Clause" ]
3
2015-06-28T16:21:05.000Z
2018-08-30T09:48:06.000Z
sbo_sphinx/jsdoc.py
safarijv/sbo-sphinx
7a8efb7c49488131c90c19ef1a1563f595630a36
[ "BSD-2-Clause" ]
5
2015-01-29T22:12:52.000Z
2015-09-22T19:15:21.000Z
sbo_sphinx/jsdoc.py
safarijv/sbo-sphinx
7a8efb7c49488131c90c19ef1a1563f595630a36
[ "BSD-2-Clause" ]
null
null
null
# encoding: utf-8 # Created by Jeremy Bowman at Thu Feb 6 17:41:45 2014 # Copyright (c) 2014 Safari Books Online, LLC. All rights reserved. """ Sphinx extension that uses jsdoc-toolkit and jsdoc-toolkit-rst-template to generate JavaScript API documentation. Depends on having JSDoc formatted comments in the source co...
36.44
79
0.699232
794e9c7a13659b9babebcbc3c70a74bf1a3f13e9
454
py
Python
numba/rewrites/__init__.py
TejasAvinashShetty/numba
5f474010f8f50b3cf358125ba279d345ae5914ef
[ "BSD-2-Clause" ]
null
null
null
numba/rewrites/__init__.py
TejasAvinashShetty/numba
5f474010f8f50b3cf358125ba279d345ae5914ef
[ "BSD-2-Clause" ]
null
null
null
numba/rewrites/__init__.py
TejasAvinashShetty/numba
5f474010f8f50b3cf358125ba279d345ae5914ef
[ "BSD-2-Clause" ]
null
null
null
import numba.core.errors as _errors from numba.core.utils import PYVERSION as _PYVERSION _moved_mod = "numba.core.rewrites" if _PYVERSION >= (3, 7): __getattr__ = _errors.deprecate_moved_module_getattr(__name__, _moved_mod) else: from numba.core.rewrites.registry import ( register_rewrite, # noqa: F4...
28.375
78
0.729075
794e9c94793fe9e63bb19cb346a16ff45b0d00d6
804
py
Python
pylaas_core/interface/core/service_interface.py
Agi-dev/pylaas_core
c44866b5e57eb6f05f5b2b8d731f22d62a8c01c2
[ "MIT" ]
null
null
null
pylaas_core/interface/core/service_interface.py
Agi-dev/pylaas_core
c44866b5e57eb6f05f5b2b8d731f22d62a8c01c2
[ "MIT" ]
2
2021-03-25T21:30:41.000Z
2021-06-01T21:25:37.000Z
pylaas_core/interface/core/service_interface.py
Agi-dev/pylaas_core
c44866b5e57eb6f05f5b2b8d731f22d62a8c01c2
[ "MIT" ]
null
null
null
import abc class ServiceInterface(abc.ABC): @abc.abstractmethod def set_adapter(self, adapter): """Set service adapter Args: adapter: Returns: cls """ pass @abc.abstractmethod def get_adapter(self): """Get current adapter ...
17.866667
73
0.521144
794e9cb603a3b80791571c146902929442ac1bd2
66,506
py
Python
code_rt_sd/sd/plotlib.py
shibaji7/Collaboration_NCAR
c27e0ad8a1f0c6b2e66fa07e6cf57f98c4389899
[ "Apache-2.0" ]
1
2021-11-12T14:40:49.000Z
2021-11-12T14:40:49.000Z
code_rt_sd/sd/plotlib.py
shibaji7/Collaboration_NCAR
c27e0ad8a1f0c6b2e66fa07e6cf57f98c4389899
[ "Apache-2.0" ]
null
null
null
code_rt_sd/sd/plotlib.py
shibaji7/Collaboration_NCAR
c27e0ad8a1f0c6b2e66fa07e6cf57f98c4389899
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """plotlib.py: module is dedicated to plottting.""" __author__ = "Chakraborty, S." __copyright__ = "Copyright 2020, SuperDARN@VT" __credits__ = [] __license__ = "MIT" __version__ = "1.0." __maintainer__ = "Chakraborty, S." __email__ = "shibaji7@vt.edu" __status__ = "Research" import matplotlib ...
47.133948
145
0.575437
794e9cec4ba21ed196e794ac8d0fe3e86999ed64
222
py
Python
eskill_custom/eskill_customisations/doctype/warranty_swap_out/test_warranty_swap_out.py
mohsinalimat/eskill_custom
1aa4a591c71144d751b78e0a2907353336e71f37
[ "MIT" ]
1
2021-07-09T11:49:27.000Z
2021-07-09T11:49:27.000Z
eskill_custom/eskill_customisations/doctype/warranty_swap_out/test_warranty_swap_out.py
mohsinalimat/eskill_custom
1aa4a591c71144d751b78e0a2907353336e71f37
[ "MIT" ]
1
2021-04-13T13:49:55.000Z
2021-04-13T13:49:55.000Z
eskill_custom/eskill_customisations/doctype/warranty_swap_out/test_warranty_swap_out.py
mohsinalimat/eskill_custom
1aa4a591c71144d751b78e0a2907353336e71f37
[ "MIT" ]
4
2021-05-05T01:25:49.000Z
2022-01-31T21:57:56.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Eskill Trading and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestWarrantySwapOut(unittest.TestCase): pass
20.181818
53
0.77027
794e9da92f90c56a550d311dd11fb5ce313ed5d3
1,103
py
Python
backend/users/models.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/users/models.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
backend/users/models.py
landdafku11/mobile-backend
3f3328afd81f85f90170a57689af72f8f705b8a3
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): email = models.EmailField(blank=True, max_length=255, unique=True) apple_id = models.CharField(null=True, max_length=255) username = models.CharField(null=True, max_length=255) password = models....
32.441176
89
0.733454
794e9dd3c4975fee510bcb1b56e5920bcafd83ce
1,549
py
Python
prereq_map/views/api.py
uw-it-aca/prereq-map
aa8cf09145f16451ce625c6716340fc30cd04570
[ "Apache-2.0" ]
null
null
null
prereq_map/views/api.py
uw-it-aca/prereq-map
aa8cf09145f16451ce625c6716340fc30cd04570
[ "Apache-2.0" ]
31
2019-05-15T23:29:38.000Z
2022-02-12T11:43:41.000Z
prereq_map/views/api.py
uw-it-aca/prereq-map
aa8cf09145f16451ce625c6716340fc30cd04570
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import json from django.views.decorators.cache import cache_control from django.http import HttpResponse from django.views import View from prereq_map.utils.process_data import get_graph from prereq_map.utils.typeahead import get_c...
28.163636
63
0.719174
794e9e04f736e27b60875ab9a5a27488ab644469
330
py
Python
pythonchallenge/level12.py
gitduk/web_craw
0d3d5c3de91bb1a1c83845464b7279069d5a66f5
[ "MIT" ]
null
null
null
pythonchallenge/level12.py
gitduk/web_craw
0d3d5c3de91bb1a1c83845464b7279069d5a66f5
[ "MIT" ]
null
null
null
pythonchallenge/level12.py
gitduk/web_craw
0d3d5c3de91bb1a1c83845464b7279069d5a66f5
[ "MIT" ]
2
2021-04-30T06:14:59.000Z
2022-01-20T07:16:14.000Z
from PIL import Image im = Image.open('./evil1.jpg') w, h = im.size im_tuple = [] for i,d in enumerate(im.getdata()): r,g,b = d if r >=100 or g >=100 or b>=100: im_tuple.append(d) else: continue image = Image.new(im.mode, (im.size[0]-10, im.size[1]-10)) image.putdata(im_tuple) image....
13.2
58
0.584848
794e9f3c5cc0a526ebb87844d148070cc30a4df5
10,409
py
Python
tests/gsdata.py
QGB/QPSU
7bc214676d797f42d2d7189dc67c9377bccdf25d
[ "MIT" ]
6
2018-03-25T20:05:21.000Z
2022-03-13T17:23:05.000Z
tests/gsdata.py
pen9un/QPSU
76e1a3f6f6f6f78452e02f407870a5a32177b667
[ "MIT" ]
15
2018-05-14T03:30:21.000Z
2022-03-03T15:33:25.000Z
tests/gsdata.py
pen9un/QPSU
76e1a3f6f6f6f78452e02f407870a5a32177b667
[ "MIT" ]
1
2021-07-15T06:23:45.000Z
2021-07-15T06:23:45.000Z
import hashlib import base64 import requests import pickle import xlwt import os import re import json import random class GsDataAPI: def __init__(self): self.app_key = 'b523947e120c8ee8a88cb278527ddb5a' self.app_secret = '1962972fee15606cd1ad1dc8080bb289' self.sort_map = {'1': 'posttime',...
40.501946
422
0.557883
794e9f604113903def57e31761ff5d173d130045
1,635
py
Python
is_valid/is_match.py
nandoflorestan/transvalid
4e0adbaad35188312189112cac0c4f187116b4b9
[ "MIT" ]
4
2017-10-11T14:04:35.000Z
2019-03-29T08:38:09.000Z
is_valid/is_match.py
nandoflorestan/transvalid
4e0adbaad35188312189112cac0c4f187116b4b9
[ "MIT" ]
1
2017-11-27T14:43:19.000Z
2018-01-14T15:05:38.000Z
is_valid/is_match.py
Daanvdk/is_valid
615c5ae1999095cba398af6ae041a472769857f8
[ "MIT" ]
1
2021-06-05T18:06:49.000Z
2021-06-05T18:06:49.000Z
from .base import Predicate from .explanation import Explanation from .is_str import is_str import re class is_match(Predicate): """ A predicate that checks if the data matches the given pattern. If a string is provided as a pattern this predicate will compile it first. The optional parameter ``flags`...
32.7
78
0.53578
794ea0009fd2f41bafd795e14be694e607bb933d
4,123
py
Python
includes/carddecks.py
torbjornhedqvist/blackjack
773faf0d1a4aaeb27ce7e436fc39d34c8ec46e21
[ "MIT" ]
5
2018-11-25T21:17:46.000Z
2022-02-25T17:18:59.000Z
includes/carddecks.py
torbjornhedqvist/blackjack
773faf0d1a4aaeb27ce7e436fc39d34c8ec46e21
[ "MIT" ]
5
2018-11-25T21:39:41.000Z
2018-11-26T10:45:57.000Z
includes/carddecks.py
torbjornhedqvist/blackjack
773faf0d1a4aaeb27ce7e436fc39d34c8ec46e21
[ "MIT" ]
2
2021-01-09T12:41:45.000Z
2021-08-20T16:19:12.000Z
#!/usr/bin/env python """ Create a playing card deck (normal 52 card deck) or virtual "Shoe" of decks if more than one is defined. When one ore more decks are created they will be shuffled. Copyright (C) Torbjorn Hedqvist - All Rights Reserved You may use, distribute and modify this code under the terms of the MIT lic...
30.768657
90
0.628426
794ea10744e38a5d14d96e353f80b49d78072a64
748
py
Python
pango-1.42.4/tests/gen-installed-test.py
CSRedRat/scratchjr-linux-ubuntu
f11dc037d889e97ca26778dc3133d94f22dbcf38
[ "BSD-3-Clause" ]
1
2021-12-20T17:27:24.000Z
2021-12-20T17:27:24.000Z
pango-1.42.4/tests/gen-installed-test.py
CSRedRat/scratchjr-linux-ubuntu
f11dc037d889e97ca26778dc3133d94f22dbcf38
[ "BSD-3-Clause" ]
3
2021-12-20T17:36:50.000Z
2022-03-06T08:54:25.000Z
pango-1.42.4/tests/gen-installed-test.py
CSRedRat/scratchjr-linux-ubuntu
f11dc037d889e97ca26778dc3133d94f22dbcf38
[ "BSD-3-Clause" ]
null
null
null
import sys import argparse import os template = '''[Test] Type=session Exec={} ''' def build_template(test_dir, test_name): return template.format(os.path.join(test_dir, test_name)) if __name__ == '__main__': argparser = argparse.ArgumentParser(description='Generate installed-test description file') argp...
31.166667
95
0.731283
794ea183db4fa388665805b018f4558b69fd4795
8,268
py
Python
pybrain/tests/optimizationtest.py
sveilleux1/pybrain
1e1de73142c290edb84e29ca7850835f3e7bca8b
[ "BSD-3-Clause" ]
2,208
2015-01-02T02:14:41.000Z
2022-03-31T04:45:46.000Z
pybrain/tests/optimizationtest.py
sveilleux1/pybrain
1e1de73142c290edb84e29ca7850835f3e7bca8b
[ "BSD-3-Clause" ]
91
2015-01-08T16:42:16.000Z
2021-12-11T19:16:35.000Z
pybrain/tests/optimizationtest.py
sveilleux1/pybrain
1e1de73142c290edb84e29ca7850835f3e7bca8b
[ "BSD-3-Clause" ]
786
2015-01-02T15:18:20.000Z
2022-02-23T23:42:40.000Z
from __future__ import print_function #! /usr/bin/env python """ This test script will test the set of optimization algorithms. It tests - the conformity of interface - the behavior on simple functions - the behavior on FitnessEvaluators - the behavior when optimizing a list or an array - the behavior when optim...
29.741007
110
0.626391
794ea1cf784734a0937d715f5b0f44271b7f6bd8
45
py
Python
hello_world.py
fanraul/python-hello-world
a208c62235455b5a0c978fc34c65888ed9277850
[ "MIT" ]
null
null
null
hello_world.py
fanraul/python-hello-world
a208c62235455b5a0c978fc34c65888ed9277850
[ "MIT" ]
null
null
null
hello_world.py
fanraul/python-hello-world
a208c62235455b5a0c978fc34c65888ed9277850
[ "MIT" ]
null
null
null
print ('hello world!') print ('hello github')
22.5
22
0.688889