hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
1ff1702bcb8da359b79def16dce5a4619ac6195a
512
py
Python
projects/blink1led/blink1led.py
johnnymast/Raspberry-pi-3B
9bde1a17d07159a2773c1c23ec9cb30079a74105
[ "MIT" ]
1
2017-01-18T00:03:38.000Z
2017-01-18T00:03:38.000Z
projects/blink1led/blink1led.py
johnnymast/Raspberry-pi-3B
9bde1a17d07159a2773c1c23ec9cb30079a74105
[ "MIT" ]
null
null
null
projects/blink1led/blink1led.py
johnnymast/Raspberry-pi-3B
9bde1a17d07159a2773c1c23ec9cb30079a74105
[ "MIT" ]
null
null
null
#!/usr/bin/python import RPi.GPIO as GPIO import time # Set board mode this means real counting the pins GPIO.setmode(GPIO.BOARD) GPIO.cleanup() # Set pin 7 to accept output GPIO.setup(7,GPIO.OUT) try: while(1): # Set pin 7 to HIGH this means power will flow GPIO.output(7, GPIO.HIGH) # W...
18.285714
54
0.623047
87b615227acaacf27616211adb07c396afcd74d4
2,438
py
Python
Flask/Blog/user/forms.py
LieonShelly/PythonFun
811760d368885109f9359c2663d8ce74886f6ad6
[ "MIT" ]
null
null
null
Flask/Blog/user/forms.py
LieonShelly/PythonFun
811760d368885109f9359c2663d8ce74886f6ad6
[ "MIT" ]
null
null
null
Flask/Blog/user/forms.py
LieonShelly/PythonFun
811760d368885109f9359c2663d8ce74886f6ad6
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from flask_login import current_user from Blog.user.models import User from flask_wtf.file import FileAllowed, FileField class ...
44.327273
106
0.700164
f6fb5e91e68299b262be21f17347d7212104a56d
1,140
py
Python
config.py
jonathankamau/MovieBuff-API
9ede6625b65f362b154aad0b3f525207aac77cdd
[ "MIT" ]
1
2018-09-14T03:44:55.000Z
2018-09-14T03:44:55.000Z
config.py
jonathankamau/MovieBuff-API
9ede6625b65f362b154aad0b3f525207aac77cdd
[ "MIT" ]
55
2020-06-03T02:48:43.000Z
2021-07-22T02:45:54.000Z
config.py
jonathankamau/MovieBuff-API
9ede6625b65f362b154aad0b3f525207aac77cdd
[ "MIT" ]
1
2018-12-17T16:30:09.000Z
2018-12-17T16:30:09.000Z
"""App environment configurations.""" import os from dotenv import load_dotenv dotenv_path = os.path.join(os.path.dirname(__file__), '.env') load_dotenv(dotenv_path) class Development(): """Model Development enviroment config object.""" DEBUG = True DEVELOPMENT = True SQLALCHEMY_DATABASE_URI = os....
21.509434
67
0.712281
5e67c3d44eaa957f5224995cba079b36392ebbce
23
py
Python
pandora-ckz/pandora/infinite/models.py
williamlagos/django-coding
246dc1aba32eae0b035c407de3e8fe954606b776
[ "MIT" ]
4
2015-06-30T11:24:14.000Z
2018-06-03T05:32:18.000Z
smartagent/models.py
jamespacileo/django-smartagent
568a8843744b138199f72c14b68ed2f1ec841571
[ "MIT" ]
21
2020-03-24T18:18:22.000Z
2021-03-31T20:18:53.000Z
smartagent/models.py
jamespacileo/django-smartagent
568a8843744b138199f72c14b68ed2f1ec841571
[ "MIT" ]
null
null
null
__author__ = 'James'
11.5
20
0.652174
a4651bb7c77dd2a3c977d670c9a4ebd693658104
81,013
py
Python
test/quantization/fx/test_numeric_suite_fx.py
gardenia22/pytorch
deb6989880d8a62bb45ce6c6b058bb5d2e28cf91
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
test/quantization/fx/test_numeric_suite_fx.py
Jam3/pytorch
33d8769c285b51922c378d11a90a442a28e06762
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
test/quantization/fx/test_numeric_suite_fx.py
Jam3/pytorch
33d8769c285b51922c378d11a90a442a28e06762
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
import copy import math import operator import unittest import torch import torch.nn as nn import torch.nn.functional as F from torch.ao.quantization import default_dynamic_qconfig import torch.nn.quantized as nnq toq = torch.ops.quantized from torch.ao.quantization.quantize_fx import ( convert_fx, prepare_fx,...
39.231477
112
0.611902
6841bd4b8edadca1f760c87c33024034cc0bd096
7,022
py
Python
neural_sp/models/modules/attention.py
ishine/neural_sp
7995613541d994976b00d80dcc12e2835163acfb
[ "Apache-2.0" ]
577
2018-09-17T14:39:34.000Z
2022-03-29T10:48:09.000Z
neural_sp/models/modules/attention.py
ishine/neural_sp
7995613541d994976b00d80dcc12e2835163acfb
[ "Apache-2.0" ]
221
2019-04-21T01:44:09.000Z
2022-02-10T02:08:47.000Z
neural_sp/models/modules/attention.py
ishine/neural_sp
7995613541d994976b00d80dcc12e2835163acfb
[ "Apache-2.0" ]
139
2019-01-09T02:18:00.000Z
2022-03-29T07:40:08.000Z
# Copyright 2018 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Single-head attention layer.""" import numpy as np import torch import torch.nn as nn class AttentionMechanism(nn.Module): """Single-head attention layer. Args: kdim (int): dimension ...
38.582418
99
0.561663
287962e1d5d953b9ab830ae11eddc68a43bc2963
903
py
Python
nagios/views.py
Cola20150301/nagios
9a60538705b6d25edea17423c880c61ab43cf8ab
[ "Apache-2.0" ]
null
null
null
nagios/views.py
Cola20150301/nagios
9a60538705b6d25edea17423c880c61ab43cf8ab
[ "Apache-2.0" ]
null
null
null
nagios/views.py
Cola20150301/nagios
9a60538705b6d25edea17423c880c61ab43cf8ab
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.shortcuts import render, HttpResponseRedirect, HttpResponse import json # Create your views here. from common.mymako import render_mako_context from views_main import Nagios from fetch_nagios import FetchNagios def home(request): """ 首页 """ data = FetchNagios().get_...
23.763158
71
0.679956
aa2fe985da4db5dbeb0c5c4bb1b05b5c273297cf
4,708
py
Python
hyperstyle/src/python/review/inspectors/pmd/pmd.py
hyperskill/hyperstyle
bf3c6e2dc42290ad27f2d30ce42d84a53241544b
[ "Apache-2.0" ]
18
2020-10-05T16:48:11.000Z
2022-03-22T04:15:38.000Z
hyperstyle/src/python/review/inspectors/pmd/pmd.py
hyperskill/hyperstyle
bf3c6e2dc42290ad27f2d30ce42d84a53241544b
[ "Apache-2.0" ]
60
2020-10-05T17:01:05.000Z
2022-01-27T12:46:14.000Z
hyperstyle/src/python/review/inspectors/pmd/pmd.py
hyperskill/hyperstyle
bf3c6e2dc42290ad27f2d30ce42d84a53241544b
[ "Apache-2.0" ]
6
2021-02-09T09:31:19.000Z
2021-08-13T07:45:51.000Z
import csv import logging import os from pathlib import Path from typing import Any, Dict, List from hyperstyle.src.python.review.application_config import LanguageVersion from hyperstyle.src.python.review.common.file_system import check_set_up_env_variable, new_temp_dir from hyperstyle.src.python.review.common.subpro...
39.898305
120
0.650595
160eac812b9fdd421a7c5104bbcb57320d8dfa62
2,009
py
Python
3rdParty/V8/v7.9.317/tools/testrunner/testproc/seed.py
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
20,995
2015-01-01T05:12:40.000Z
2022-03-31T21:39:18.000Z
tools/testrunner/testproc/seed.py
Andrea-MariaDB-2/v8
a0f0ebd7a876e8cb2210115adbfcffe900e99540
[ "BSD-3-Clause" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
tools/testrunner/testproc/seed.py
Andrea-MariaDB-2/v8
a0f0ebd7a876e8cb2210115adbfcffe900e99540
[ "BSD-3-Clause" ]
4,523
2015-01-01T15:12:34.000Z
2022-03-28T06:23:41.000Z
# Copyright 2018 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import random from collections import defaultdict from . import base from ..utils import random_utils class SeedProc(base.TestProcProducer): def __ini...
31.390625
79
0.702837
32b2d9c80ff1b649d0068bcb9fa2e54813dc500c
9,827
py
Python
yadlt/models/rbm_models/dbn.py
Perfect-SoftwareEngineer/Deep-Learning-Tensorflow
b191cd2c8ff9d8cb6e2c6dedcac4483fa7548366
[ "MIT" ]
null
null
null
yadlt/models/rbm_models/dbn.py
Perfect-SoftwareEngineer/Deep-Learning-Tensorflow
b191cd2c8ff9d8cb6e2c6dedcac4483fa7548366
[ "MIT" ]
null
null
null
yadlt/models/rbm_models/dbn.py
Perfect-SoftwareEngineer/Deep-Learning-Tensorflow
b191cd2c8ff9d8cb6e2c6dedcac4483fa7548366
[ "MIT" ]
null
null
null
"""Implementation of Deep Belief Network Model using TensorFlow.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf from yadlt.core import SupervisedModel from yadlt.core import Trainer from yadlt.models.rbm_model...
37.796154
79
0.599878
5b213703e459353de060af515445d270e2c4de15
613
py
Python
apps/characters/migrations/0011_auto_20210805_1121.py
lucasjaroszewski/incremental-game
bae8823f986be0fd046bd50195d43fbc548fad90
[ "MIT" ]
null
null
null
apps/characters/migrations/0011_auto_20210805_1121.py
lucasjaroszewski/incremental-game
bae8823f986be0fd046bd50195d43fbc548fad90
[ "MIT" ]
5
2021-06-09T17:54:51.000Z
2022-03-12T00:46:49.000Z
apps/characters/migrations/0011_auto_20210805_1121.py
lucasjaroszewski/incremental-game
bae8823f986be0fd046bd50195d43fbc548fad90
[ "MIT" ]
1
2020-09-27T18:26:15.000Z
2020-09-27T18:26:15.000Z
# Generated by Django 3.1.2 on 2021-08-05 14:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('characters', '0010_character_dungeon'), ] operations = [ migrations.AddField( model_name='character', name='icon', ...
25.541667
86
0.588907
6ef1794adad2e16f95309d0afebcfaf150bd46be
15,459
py
Python
corehq/apps/commtrack/views.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/commtrack/views.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/commtrack/views.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
import copy import json from django.contrib import messages from django.http import Http404, HttpResponseBadRequest, HttpResponseRedirect from django.urls import reverse from django.utils.decorators import method_decorator from django.utils.translation import ugettext as _ from django.utils.translation import ugettext...
38.744361
119
0.658322
0fed691331ec28b7b1c0a4f324a6a7d490515ab6
2,331
py
Python
ooobuild/cssdyn/uri/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/cssdyn/uri/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/cssdyn/uri/__init__.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
72.84375
159
0.864436
3cfb0239d1bcb7d0709aeb8f5511cdb95f205d48
1,298
py
Python
Notes/Sprint3/graphs2.py
mark-morelos/CS_Notes
339c47ae5d7e678b7ac98d6d78857d016c611e38
[ "MIT" ]
1
2021-02-28T07:43:59.000Z
2021-02-28T07:43:59.000Z
Notes/Sprint3/graphs2.py
mark-morelos/CS_Notes
339c47ae5d7e678b7ac98d6d78857d016c611e38
[ "MIT" ]
null
null
null
Notes/Sprint3/graphs2.py
mark-morelos/CS_Notes
339c47ae5d7e678b7ac98d6d78857d016c611e38
[ "MIT" ]
1
2021-03-03T03:52:21.000Z
2021-03-03T03:52:21.000Z
# Adjacency Matrix grah_matrix = [ [0,1,0,0,0], [1,0,1,1,1], [0,1,0,1,0], [0,1,1,0,0], [0,1,0,0,0] ] # What are my neigbors for A? # graph_matrix[0] # <- All the neighbors for A # # Is B and C connected? # graph_matrix[1][2] == 1 # return true # # Add connection from A to C # graph_matrix[0][2] ...
22.37931
94
0.605547
fe4089fba1ead6c598bc32577e8b43f0d06dffac
1,838
py
Python
pdms/qtum_bridge/R8Blockchain/qtumblockchain.py
chris0203/pmes
97df332b859803e9953f983dda3ca47d4bc35758
[ "Apache-2.0" ]
null
null
null
pdms/qtum_bridge/R8Blockchain/qtumblockchain.py
chris0203/pmes
97df332b859803e9953f983dda3ca47d4bc35758
[ "Apache-2.0" ]
null
null
null
pdms/qtum_bridge/R8Blockchain/qtumblockchain.py
chris0203/pmes
97df332b859803e9953f983dda3ca47d4bc35758
[ "Apache-2.0" ]
null
null
null
from bitcoinrpc.authproxy import AuthServiceProxy from hashlib import sha256 from R8Blockchain.blockchain_handler import BlockchainHandler import codecs import logging class QtumBlockchain(BlockchainHandler): def __init__(self, qtum_rpc): self.qtum_rpc = qtum_rpc self.decode_hex = codecs.getdecod...
27.432836
62
0.692057
387483e127d508384db2c3e2f97efcfaeda0cefa
4,916
py
Python
dense_map/geometry_mapper/tools/cameras_to_texrecon.py
CodeMasterBond/isaac
b21a533cf30eed012fe12ece047b6d87418d7c6f
[ "Apache-2.0" ]
19
2021-11-18T19:29:16.000Z
2022-02-23T01:55:51.000Z
dense_map/geometry_mapper/tools/cameras_to_texrecon.py
CodeMasterBond/isaac
b21a533cf30eed012fe12ece047b6d87418d7c6f
[ "Apache-2.0" ]
13
2021-11-30T17:14:46.000Z
2022-03-22T21:38:33.000Z
dense_map/geometry_mapper/tools/cameras_to_texrecon.py
CodeMasterBond/isaac
b21a533cf30eed012fe12ece047b6d87418d7c6f
[ "Apache-2.0" ]
6
2021-12-03T02:38:21.000Z
2022-02-23T01:52:03.000Z
# Copyright (c) 2021, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. # # All rights reserved. # # The "ISAAC - Integrated System for Autonomous and Adaptive Caretaking # platform" software is licensed under the Apache License, Version 2.0 # (the "Li...
30.725
94
0.5893
29d3365891f0cbf8a13be972e1ff6ed0efcdfa12
1,052
py
Python
isi_sdk_7_2/test/test_compatibilities_ssd_active_active_item.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_7_2/test/test_compatibilities_ssd_active_active_item.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_7_2/test/test_compatibilities_ssd_active_active_item.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 2 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_7_2 from isi...
25.658537
126
0.747148
b55efd3bfb834dcd6b46876872e4070f520c902f
450
py
Python
semantic_release/__init__.py
MattPColeman/python-semantic-release
09af5f11a6134c8711b59a5bcd57c917c0c91b5e
[ "MIT" ]
445
2015-07-27T17:48:25.000Z
2022-03-31T15:48:10.000Z
semantic_release/__init__.py
MattPColeman/python-semantic-release
09af5f11a6134c8711b59a5bcd57c917c0c91b5e
[ "MIT" ]
338
2015-07-27T18:44:52.000Z
2022-03-31T11:38:53.000Z
semantic_release/__init__.py
MattPColeman/python-semantic-release
09af5f11a6134c8711b59a5bcd57c917c0c91b5e
[ "MIT" ]
168
2015-07-28T20:32:52.000Z
2022-03-31T10:45:06.000Z
"""Semantic Release """ __version__ = "7.23.0" from .errors import UnknownCommitMessageStyleError # noqa; noqa from .errors import ImproperConfigurationError, SemanticReleaseBaseError def setup_hook(argv: list): """ A hook to be used in setup.py to enable `python setup.py publish`. :param argv: sys.ar...
22.5
72
0.668889
08f51885f1d5299ca8ae85d211fc75ae5fea7b5b
19,354
py
Python
src/tests/api/test_permissions.py
gnomus/pretix
9a9ae3e7807c5fce12adeabf5e2bb81e6b32fb38
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/api/test_permissions.py
gnomus/pretix
9a9ae3e7807c5fce12adeabf5e2bb81e6b32fb38
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/tests/api/test_permissions.py
gnomus/pretix
9a9ae3e7807c5fce12adeabf5e2bb81e6b32fb38
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import time import pytest from django.test import override_settings from django.utils.timezone import now from pretix.base.models import Organizer event_urls = [ (None, ''), (None, 'categories/'), ('can_view_orders', 'invoices/'), (None, 'items/'), ('can_view_orders', 'orders/'), ('can_view_o...
41.532189
118
0.677844
8a07036df3dec476a30b3c2242d77bf2005b0dfc
451
py
Python
pr2_robot/scripts/mover.py
kitu2007/RoboND-Perception-Project
e12fcf5afb7a4ef0b7c4d09d1841d04557f59edc
[ "MIT" ]
null
null
null
pr2_robot/scripts/mover.py
kitu2007/RoboND-Perception-Project
e12fcf5afb7a4ef0b7c4d09d1841d04557f59edc
[ "MIT" ]
null
null
null
pr2_robot/scripts/mover.py
kitu2007/RoboND-Perception-Project
e12fcf5afb7a4ef0b7c4d09d1841d04557f59edc
[ "MIT" ]
null
null
null
import math import rospy from std_msgs.msg import Float64 def mover(topic, msg_type, value_fn): pub_j1 = rospy.Publisher(topic, msg_type, queue_size=10) rospy.init_node('robot_mover') rate = rospy.Rate(10) start_time = 0 while not start_time: start_time = rospy.Time.now().to_sec() ...
19.608696
60
0.660754
c1c21036eeb45850a0bdd7a8c79231c6d41477f9
4,452
py
Python
config/settings/base.py
devspoon/devspoon-django-default-structure
dd48fc0476dee2c89c68d29fca7d6084380de1c7
[ "MIT" ]
null
null
null
config/settings/base.py
devspoon/devspoon-django-default-structure
dd48fc0476dee2c89c68d29fca7d6084380de1c7
[ "MIT" ]
null
null
null
config/settings/base.py
devspoon/devspoon-django-default-structure
dd48fc0476dee2c89c68d29fca7d6084380de1c7
[ "MIT" ]
null
null
null
""" Django settings for config project. Generated by 'django-admin startproject' using Django 3.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os from ...
26.981818
100
0.721698
769ddcfaffaf2ea53de4ae6c673514c1939c837a
17,178
py
Python
env/lib/python3.8/site-packages/sympy/simplify/tests/test_radsimp.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
2
2019-05-18T22:36:49.000Z
2019-05-24T05:56:16.000Z
env/lib/python3.8/site-packages/sympy/simplify/tests/test_radsimp.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
null
null
null
env/lib/python3.8/site-packages/sympy/simplify/tests/test_radsimp.py
crimergio/linux_test
5e688a06884ab10b4eaaad10a5d0df417a1c9b31
[ "CC-BY-4.0" ]
3
2019-05-18T21:32:31.000Z
2019-07-26T11:05:46.000Z
from sympy import ( sqrt, Derivative, symbols, collect, Function, factor, Wild, S, collect_const, log, fraction, I, cos, Add, O,sin, rcollect, Mul, radsimp, diff, root, Symbol, Rational, exp, Abs) from sympy.core.expr import unchanged from sympy.core.mul import _unevaluated_Mul as umul from sympy.simplify....
37.92053
103
0.493946
7a5516fd96fc5cff46aadcb216523028d5d9b37f
5,041
py
Python
src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/commands.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/commands.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/commands.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
40.328
94
0.677048
eb1bb085bf9629b4e7e1aa8eec163a1199c1829f
1,583
py
Python
climetlab/utils/conventions.py
mikewcasale/climetlab
924aa602dcd638ff1a49a9d8b4b6f7bd29361d1e
[ "Apache-2.0" ]
3
2021-07-23T02:06:08.000Z
2022-02-15T01:17:15.000Z
climetlab/utils/conventions.py
mikewcasale/climetlab
924aa602dcd638ff1a49a9d8b4b6f7bd29361d1e
[ "Apache-2.0" ]
null
null
null
climetlab/utils/conventions.py
mikewcasale/climetlab
924aa602dcd638ff1a49a9d8b4b6f7bd29361d1e
[ "Apache-2.0" ]
2
2021-11-02T13:19:48.000Z
2021-12-29T08:38:45.000Z
# (C) Copyright 2021 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmenta...
27.293103
80
0.669615
245ff6078f22a05c134f71cf0d3438bc645d3d5b
537
py
Python
seend/manage.py
kelvinndmo/seend
5a6117cd65c2f20a99a02f0c3176e607cad56b5a
[ "MIT" ]
null
null
null
seend/manage.py
kelvinndmo/seend
5a6117cd65c2f20a99a02f0c3176e607cad56b5a
[ "MIT" ]
5
2019-02-18T15:44:37.000Z
2019-02-22T07:13:40.000Z
seend/manage.py
kelvinndmo/seend
5a6117cd65c2f20a99a02f0c3176e607cad56b5a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'seend.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are yo...
33.5625
73
0.685289
db97bbe413ba1220afc275d839b7037e93b8c10f
1,511
py
Python
#25 Reverse Nodes in k-Group.py
medisean/leetcode
f218fb738fb2b57f5eea3795a0a02cf495561465
[ "MIT" ]
null
null
null
#25 Reverse Nodes in k-Group.py
medisean/leetcode
f218fb738fb2b57f5eea3795a0a02cf495561465
[ "MIT" ]
null
null
null
#25 Reverse Nodes in k-Group.py
medisean/leetcode
f218fb738fb2b57f5eea3795a0a02cf495561465
[ "MIT" ]
null
null
null
''' Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to the length of the linked list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is. Example: Given this linked lis...
27.472727
184
0.566512
90b22aa706928b2a9d26a94f7438aa8d08c9bb29
5,952
py
Python
Bank.py
varundinesh/awesome-project-ideas
ed732f9a03b3ed58fbd13257b25ddf508fd6d3cb
[ "MIT" ]
null
null
null
Bank.py
varundinesh/awesome-project-ideas
ed732f9a03b3ed58fbd13257b25ddf508fd6d3cb
[ "MIT" ]
null
null
null
Bank.py
varundinesh/awesome-project-ideas
ed732f9a03b3ed58fbd13257b25ddf508fd6d3cb
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt data=pd.read_csv('F:\\bank-additional-full.csv',sep=';') # In[2]: data.shape # In[3]: tot=len(set(data.index)) last=data.shape[0]-tot last # In[4]: data.isnull().sum() # In[5]: print...
17.505882
189
0.650034
c5f650d5037432ec5ef77039c7d48e2ef47367d3
51,601
py
Python
django/db/backends/__init__.py
anoopksh/django
f00243f36df8dfe504491e03be5d5aea076340b3
[ "BSD-3-Clause" ]
1
2019-09-21T06:40:37.000Z
2019-09-21T06:40:37.000Z
django/db/backends/__init__.py
anoopksh/django
f00243f36df8dfe504491e03be5d5aea076340b3
[ "BSD-3-Clause" ]
null
null
null
django/db/backends/__init__.py
anoopksh/django
f00243f36df8dfe504491e03be5d5aea076340b3
[ "BSD-3-Clause" ]
null
null
null
import datetime import time try: from django.utils.six.moves import _thread as thread except ImportError: from django.utils.six.moves import _dummy_thread as thread from collections import namedtuple from contextlib import contextmanager from importlib import import_module from django.conf import settings fro...
36.779045
129
0.651383
8f108b56cdc4b1e2a6586461ef2e4f26ccacb6b7
627
py
Python
allauth/tests.py
k1000/django-allauth
e67b05fde5635f19850de73558987573c085826f
[ "MIT" ]
1
2015-11-05T15:17:10.000Z
2015-11-05T15:17:10.000Z
allauth/tests.py
k1000/django-allauth
e67b05fde5635f19850de73558987573c085826f
[ "MIT" ]
null
null
null
allauth/tests.py
k1000/django-allauth
e67b05fde5635f19850de73558987573c085826f
[ "MIT" ]
null
null
null
from django.test import TestCase from django.core.urlresolvers import reverse import utils class BasicTests(TestCase): def test_email_validation(self): s = 'unfortunately.django.user.email.max_length.is.set.to.75.which.is.too.short@bummer.com' self.assertEquals(None, utils.valid_email_or_none(s))...
36.882353
99
0.709729
c18ade9fa815f2e610855f467d72c76ccae53bfd
3,707
py
Python
scripts/archive_directory_monitor.py
steve-ord/psrchive-docker
4d7e1150f2f5af541242b7977ef4654b7623293e
[ "MIT" ]
null
null
null
scripts/archive_directory_monitor.py
steve-ord/psrchive-docker
4d7e1150f2f5af541242b7977ef4654b7623293e
[ "MIT" ]
null
null
null
scripts/archive_directory_monitor.py
steve-ord/psrchive-docker
4d7e1150f2f5af541242b7977ef4654b7623293e
[ "MIT" ]
null
null
null
import logging import signal import sys import shlex import shutil import os from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler from subprocess import Popen, PIPE log = logging.getLogger("archive_directory_monitor") class ArchiveAdder(FileSystemEventHandler): def __init__(s...
34.009174
83
0.650661
94ca0f21cfa0c822072a772ee71d7b4d43649124
445
py
Python
demo_path_routing_auth/urls.py
mccalluc/django_docker_engine
2f8241ef9b504e89de54bb5f18ef3c925adea116
[ "MIT" ]
7
2017-04-25T10:22:53.000Z
2021-09-11T10:18:04.000Z
demo_path_routing_auth/urls.py
django-africa/django_docker_engine
2f8241ef9b504e89de54bb5f18ef3c925adea116
[ "MIT" ]
117
2017-03-22T19:24:24.000Z
2021-03-25T21:57:53.000Z
demo_path_routing_auth/urls.py
mccalluc/django_docker_engine
2f8241ef9b504e89de54bb5f18ef3c925adea116
[ "MIT" ]
3
2018-05-23T10:00:06.000Z
2020-03-05T05:56:02.000Z
from django.conf.urls import include, url from . import views urlpatterns = [ url(r'^$', views.index), url(r'^login/$', views.login), url(r'^logout/$', views.logout), url(r'^launch/$', views.launch), url(r'^kill/(.*)$', views.kill), url(r'^logs/(.*)$', views.logs), url(r'^history/(.*)$', v...
27.8125
66
0.582022
194220590a21afb901acec0403ece7cae9bdce0c
738
py
Python
examples/introduction.to.programming.with.turtle/for_all/6-2-3.very.step.and.turn.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
5
2019-09-23T05:15:47.000Z
2021-01-17T08:06:47.000Z
examples/introduction.to.programming.with.turtle/for_all/6-2-3.very.step.and.turn.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
3
2019-05-03T05:25:17.000Z
2021-04-15T04:53:16.000Z
examples/introduction.to.programming.with.turtle/for_all/6-2-3.very.step.and.turn.py
strakam/PyEasyGraphics
57a586aa92385d26725d4ec3d61b2bbbe970195d
[ "BSD-3-Clause" ]
4
2019-05-04T13:42:40.000Z
2021-04-15T10:38:48.000Z
from easygraphics.turtle import * from easygraphics import * import math import sys def distance(x1, y1, x2, y2): dx = x2 - x1 dy = y2 - y1 return math.hypot(dx, dy) def factor(x, y): d = distance(get_x(), get_y(), x, y) if d < 1: return 1 return 1 / d def vary_step(x, y, side, ang...
17.162791
40
0.571816
2b86755125eb1c2790d65966028982cb59146379
1,973
py
Python
simple-webex-chatbot/weather.py
0x2142/example-scripts
1db386d0eb1af89d9b7da8fe667d9b5526b3001c
[ "Unlicense" ]
2
2020-11-09T20:04:08.000Z
2021-04-08T09:39:56.000Z
simple-webex-chatbot/weather.py
0x2142/example-scripts
1db386d0eb1af89d9b7da8fe667d9b5526b3001c
[ "Unlicense" ]
1
2022-02-06T02:53:42.000Z
2022-02-07T18:52:26.000Z
simple-webex-chatbot/weather.py
0x2142/example-scripts
1db386d0eb1af89d9b7da8fe667d9b5526b3001c
[ "Unlicense" ]
3
2021-02-25T08:31:08.000Z
2022-03-24T14:54:36.000Z
import json import logging import requests from webex_bot.models.command import Command log = logging.getLogger(__name__) # Get a free account at openweathermap.org & # insert API key here: OPENWEATHER_KEY = "" class WeatherByZIP(Command): def __init__(self): # Define custom command info here #...
35.872727
98
0.650786
4225a8def7e48178f959f1b2f13994c352736683
875
py
Python
backend/wallet/api/v1/serializers.py
crowdbotics-apps/test-30107
c9c9e1338ac2fd286bead4b401144755699217c5
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/wallet/api/v1/serializers.py
crowdbotics-apps/test-30107
c9c9e1338ac2fd286bead4b401144755699217c5
[ "FTL", "AML", "RSA-MD" ]
15
2021-08-30T03:24:39.000Z
2022-03-13T17:39:16.000Z
backend/wallet/api/v1/serializers.py
crowdbotics-apps/test-30107
c9c9e1338ac2fd286bead4b401144755699217c5
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from rest_framework import serializers from wallet.models import ( PaymentTransaction, TaskerPaymentAccount, TaskerWallet, PaymentMethod, CustomerWallet, ) class TaskerPaymentAccountSerializer(serializers.ModelSerializer): class Meta: model = TaskerPaymentAccount fields = "__al...
22.435897
66
0.717714
d181d018bf69ddc1d5572f803685a599400f01bf
29,861
py
Python
parsl/executors/high_throughput/interchange.py
jmoon1506/parsl
f4070799a07f314b09b255689972534059fc746e
[ "Apache-2.0" ]
null
null
null
parsl/executors/high_throughput/interchange.py
jmoon1506/parsl
f4070799a07f314b09b255689972534059fc746e
[ "Apache-2.0" ]
null
null
null
parsl/executors/high_throughput/interchange.py
jmoon1506/parsl
f4070799a07f314b09b255689972534059fc746e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import zmq import os import sys import platform import random import time import datetime import pickle import logging import queue import threading import json from parsl.version import VERSION as PARSL_VERSION from parsl.serialize import ParslSerializer serialize_object = ParslS...
45.659021
155
0.563176
5ea3437a2eb33d0a2e1796c20919e26b2a0222ca
1,741
py
Python
setup.py
AadamAbrahams/covid_traffic_controller_demonstrator
d782e5f8ba33259b06e24bfbc79c23a958065c0d
[ "MIT" ]
null
null
null
setup.py
AadamAbrahams/covid_traffic_controller_demonstrator
d782e5f8ba33259b06e24bfbc79c23a958065c0d
[ "MIT" ]
1
2020-10-30T12:25:58.000Z
2020-10-30T12:25:58.000Z
setup.py
AadamAbrahams/covid_traffic_controller_demonstrator
d782e5f8ba33259b06e24bfbc79c23a958065c0d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = ['Click>=7.0', ] setup_requirements = [ ] test_requirements ...
32.240741
121
0.682941
5a4e556665f9fd12d67fff6f74fb86c6d27c68b8
4,092
py
Python
core/settings/base.py
BuildForSDG/asylum-be
e44031ca97964425bfa11a1d9071e7584685c327
[ "MIT" ]
null
null
null
core/settings/base.py
BuildForSDG/asylum-be
e44031ca97964425bfa11a1d9071e7584685c327
[ "MIT" ]
23
2020-05-07T07:57:44.000Z
2022-03-12T00:36:41.000Z
core/settings/base.py
BuildForSDG/asylum-be
e44031ca97964425bfa11a1d9071e7584685c327
[ "MIT" ]
3
2020-05-02T07:56:55.000Z
2020-05-19T14:42:54.000Z
"""Django project core settings. Generated by 'django-admin startproject' using Django 2.2.10.""" import os from decouple import config # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # Quick-start devel...
25.259259
97
0.700391
3c787fc51233f70eb034eea4afa2e180748c9200
4,510
py
Python
ayed/printer.py
Bocanada/AyED-Tool
6bc359734fab3601dd668c361e67c4b14afcb2da
[ "MIT" ]
1
2021-08-01T16:40:11.000Z
2021-08-01T16:40:11.000Z
ayed/printer.py
Bocanada/AyED-Tool
6bc359734fab3601dd668c361e67c4b14afcb2da
[ "MIT" ]
5
2021-06-20T18:53:06.000Z
2021-06-26T23:44:05.000Z
ayed/printer.py
Bocanada/AyED-Tool
6bc359734fab3601dd668c361e67c4b14afcb2da
[ "MIT" ]
null
null
null
from __future__ import annotations from abc import ABC, abstractmethod from collections import defaultdict from pathlib import Path from typing import Iterable from attr import dataclass, field from ayed.classes import Struct from ayed.excel import Excel from ayed.types import File, Files, Structs from ayed.utils im...
30.472973
93
0.578936
6e93388cd754866c8ce07ad0a60f42ed69f8a528
32,779
py
Python
bar_chart_race/_bar_chart_race_plotly.py
fakegit/bar_chart_race
0d2d038c4dac382419a36e33d54a7cc843a84724
[ "MIT" ]
null
null
null
bar_chart_race/_bar_chart_race_plotly.py
fakegit/bar_chart_race
0d2d038c4dac382419a36e33d54a7cc843a84724
[ "MIT" ]
null
null
null
bar_chart_race/_bar_chart_race_plotly.py
fakegit/bar_chart_race
0d2d038c4dac382419a36e33d54a7cc843a84724
[ "MIT" ]
null
null
null
import warnings import numpy as np import pandas as pd import plotly.graph_objects as go import plotly from ._utils import prepare_wide_data class _BarChartRace: def __init__(self, df, filename, orientation, sort, n_bars, fixed_order, fixed_max, steps_per_period, period_length, end_period_...
42.90445
107
0.580494
5b5a19f112108097df97f1bf855457ee610e3f9a
51,036
py
Python
src/south/sonic/gssonic/main.py
palcnetworks/goldstone-mgmt
4008ff691f3c5e38b2d53c122bace483b0235e55
[ "Apache-2.0" ]
1
2021-03-29T14:20:14.000Z
2021-03-29T14:20:14.000Z
src/south/sonic/gssonic/main.py
palcnetworks/goldstone-mgmt
4008ff691f3c5e38b2d53c122bace483b0235e55
[ "Apache-2.0" ]
6
2020-07-17T16:00:45.000Z
2020-09-09T20:40:33.000Z
src/south/sonic/gssonic/main.py
palcnetworks/goldstone-mgmt
4008ff691f3c5e38b2d53c122bace483b0235e55
[ "Apache-2.0" ]
4
2020-07-12T14:48:08.000Z
2021-03-31T07:02:14.000Z
import sysrepo import libyang import logging import asyncio import argparse import json import signal import struct import base64 import swsssdk import re import redis import os from .k8s_api import incluster_apis logger = logging.getLogger(__name__) COUNTER_PORT_MAP = "COUNTERS_PORT_NAME_MAP" COUNTER_TABLE_PREFIX = ...
41.191283
114
0.492476
b648e09391a05b2c9e66d8b92aca8dc6fc2f228e
1,599
py
Python
PicoCTF 2019/Binary Exploitation/rop32/exploit.py
p-g-krish/CTF-Writeups
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
[ "MIT" ]
51
2018-06-26T09:49:42.000Z
2019-09-14T00:06:35.000Z
PicoCTF 2019/Binary Exploitation/rop32/exploit.py
p-g-krish/CTF-Writeups
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
[ "MIT" ]
1
2018-06-29T18:40:59.000Z
2018-07-09T20:29:41.000Z
PicoCTF 2019/Binary Exploitation/rop32/exploit.py
p-g-krish/CTF-Writeups
05ad6a9ecbc19ceb8890f4581dfee36f16d164aa
[ "MIT" ]
22
2019-10-03T14:52:43.000Z
2022-01-17T08:55:10.000Z
#!/usr/bin/env python2 from pwn import * from struct import pack BASE = 0x08048000 pop_esi = BASE+0x00001708 pop_edi = BASE+0x00001adb pop_ecx_ebx = BASE+0x00026e92 mov_ebx_eax_call_esi = BASE+0x0005b19c add_edi_ebx_jmp_edi = BASE+0x00045f38 pop_ebx = BASE+0x000001c9 pop_eax = BASE+0x00060e36 int_0x80 = BASE+0x000277a...
30.75
82
0.709193
60ca7b24fcd10f8ed896ba4dc12cdd0fc8db7848
1,841
py
Python
utils/BM-8-Model-Functions.py
anonymous-authorss/Fairify
f698ae0d283414fb2c08aa4ae237da4f47d01f77
[ "MIT" ]
null
null
null
utils/BM-8-Model-Functions.py
anonymous-authorss/Fairify
f698ae0d283414fb2c08aa4ae237da4f47d01f77
[ "MIT" ]
null
null
null
utils/BM-8-Model-Functions.py
anonymous-authorss/Fairify
f698ae0d283414fb2c08aa4ae237da4f47d01f77
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # reinterpret network symbolically using z3 variables. import sys from z3 import * import numpy as np import pandas as pd import collections import time import datetime from utils.verif_utils import * def ground_net(x): layer_outs = [] for i in range(len(w)): ...
18.979381
71
0.468224
022985b790c3b3b81f240adb89fd27d63072c635
1,687
py
Python
SubtitleTools.py
icyplayer/AnimeTools
9159e5899c5263876b652f0e3b83112a4e9b58ce
[ "MIT" ]
null
null
null
SubtitleTools.py
icyplayer/AnimeTools
9159e5899c5263876b652f0e3b83112a4e9b58ce
[ "MIT" ]
null
null
null
SubtitleTools.py
icyplayer/AnimeTools
9159e5899c5263876b652f0e3b83112a4e9b58ce
[ "MIT" ]
null
null
null
""" For subtitle zip file unzip and rename to fit video file name, so as to auto-adde by video player while video file opened. Works under Python 2.7.10 """ import os import sys import zipfile #unzip def unzip(fileName): zfile = zipfile.ZipFile(fileName,'r') for filename in zfile.namelist(): data ...
26.777778
64
0.615886
828c3b8b442160aab2ae07be4cd78118134350e5
7,976
py
Python
hdf5_test.py
Morrighan89/Python-In-The-Lab_Project
dadcb6618eb6fcc39bc4812918ca0c56c22b4bd3
[ "MIT" ]
1
2017-05-03T17:56:02.000Z
2017-05-03T17:56:02.000Z
hdf5_test.py
Morrighan89/Python-In-The-Lab_Project
dadcb6618eb6fcc39bc4812918ca0c56c22b4bd3
[ "MIT" ]
null
null
null
hdf5_test.py
Morrighan89/Python-In-The-Lab_Project
dadcb6618eb6fcc39bc4812918ca0c56c22b4bd3
[ "MIT" ]
null
null
null
import glob, os, sys import h5py import numpy as np import matplotlib.pyplot as plt """ Basic script Open a HDF5 file of my simulation and compute the Hysteresis loop, saves data in an opportune file with specific naming pattern at the end plots the calculated loop. """ def calcoloMagnMedia(time,file,Volumes): dat...
41.113402
140
0.624498
df8ed9fef65fcdc561976903b93466525ed08ade
8,667
py
Python
base/core/library/cache/__init__.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
2
2017-12-02T13:58:30.000Z
2018-08-02T17:07:59.000Z
base/core/library/cache/__init__.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
base/core/library/cache/__init__.py
B-ROY/TESTGIT
40221cf254c90d37d21afb981635740aebf11949
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'zen' import logging import time import functools import hashlib import inspect import pickle import pylibmc from django.conf import settings from base.core.util import dateutils # print settings.memcache_settings memcache_settings = settings.memcache_settings func_cache = pylib...
32.582707
120
0.527403
42af4742cc5e4bfe401ae862524e95f5d15be1d3
910
py
Python
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/4_features/numtrees_45/rule_38.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/4_features/numtrees_45/rule_38.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
duke-cs671-fall21-coupon-recommendation/outputs/rules/RF/4_features/numtrees_45/rule_38.py
apcarrik/kaggle
6e2d4db58017323e7ba5510bcc2598e01a4ee7bf
[ "MIT" ]
null
null
null
def findDecision(obj): #obj[0]: Coupon, obj[1]: Education, obj[2]: Occupation, obj[3]: Distance # {"feature": "Coupon", "instances": 23, "metric_value": 0.9877, "depth": 1} if obj[0]>0: # {"feature": "Occupation", "instances": 20, "metric_value": 0.9341, "depth": 2} if obj[2]<=12: # {"feature": "Distance", "in...
32.5
95
0.583516
6f16e1f596ec434153c8907b3eb7296db741a474
4,270
py
Python
modules/deckbuilder.py
Nynergy/escher
cae055c1a11402f47ee577747985cf85b041ee0d
[ "MIT" ]
1
2021-12-12T18:39:07.000Z
2021-12-12T18:39:07.000Z
modules/deckbuilder.py
Nynergy/escher
cae055c1a11402f47ee577747985cf85b041ee0d
[ "MIT" ]
null
null
null
modules/deckbuilder.py
Nynergy/escher
cae055c1a11402f47ee577747985cf85b041ee0d
[ "MIT" ]
null
null
null
import random from classes.Deck import RunnerDeck, CorpDeck def generate_deck(args, card_pool): if args['side'] == 'runner': return generate_runner_deck(args, card_pool) else: return generate_corp_deck(args, card_pool) def generate_runner_deck(args, card_pool): identity = random_identity(...
36.495726
97
0.622248
ef982fba932d8fdf8b504b5687b06ca4ee6eafb6
1,673
py
Python
cnn_wrapper/SCoordNet.py
somanyunknowns/KFNet
f0afda975211698f4689f295373df9a2d3660a47
[ "MIT" ]
202
2020-03-17T06:18:11.000Z
2022-03-08T06:13:21.000Z
cnn_wrapper/SCoordNet.py
somanyunknowns/KFNet
f0afda975211698f4689f295373df9a2d3660a47
[ "MIT" ]
7
2020-04-10T00:46:42.000Z
2021-06-30T00:07:06.000Z
cnn_wrapper/SCoordNet.py
somanyunknowns/KFNet
f0afda975211698f4689f295373df9a2d3660a47
[ "MIT" ]
27
2020-04-09T21:53:27.000Z
2022-03-16T08:26:41.000Z
from cnn_wrapper.network import Network, layer import tensorflow as tf class SCoordNet(Network): def __init__(self, inputs, is_training, focal_x, focal_y, u, v, dropout_rate=0.5, seed=None, reuse=False): Network.__init__(self, inputs, is_training, dropout_rate, seed, reuse) self.focal_x = focal_x ...
31.566038
110
0.572026
e931329cd90cbd5a7988895ca68721eb47f95034
1,087
py
Python
tests/features/hashid/test_hashid_middleware.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
1,816
2018-02-14T01:59:51.000Z
2022-03-31T17:09:20.000Z
tests/features/hashid/test_hashid_middleware.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
340
2018-02-11T00:27:26.000Z
2022-03-21T12:00:24.000Z
tests/features/hashid/test_hashid_middleware.py
cercos/masonite
f7f220efa7fae833683e9f07ce13c3795a87d3b8
[ "MIT" ]
144
2018-03-18T00:08:16.000Z
2022-02-26T01:51:58.000Z
from src.masonite.essentials.middleware import HashIDMiddleware from src.masonite.essentials.helpers.hashid import hashid from tests import TestCase class TestHashID(TestCase): def test_hashid_hashes_integer(self): assert hashid(10) == "l9avmeG" def test_hashid_hashes_several_integers(self): ...
31.057143
71
0.605336
ae3922f0b20af4af29ab6d392c89fc9d81e05871
1,185
py
Python
house/models.py
Redhead95/taskful_api
2b28a7f6ecaeb1c77d3fd3bea9ae5922667b1044
[ "MIT" ]
null
null
null
house/models.py
Redhead95/taskful_api
2b28a7f6ecaeb1c77d3fd3bea9ae5922667b1044
[ "MIT" ]
null
null
null
house/models.py
Redhead95/taskful_api
2b28a7f6ecaeb1c77d3fd3bea9ae5922667b1044
[ "MIT" ]
null
null
null
import os import uuid from django.db import models from django.utils.deconstruct import deconstructible @deconstructible class GenerateHouseImagePath(object): def __init__(self): pass def __call__(self, instance, filename): ext = filename.split('.')[-1] path = f'houses/{instance.id}/i...
32.916667
130
0.724895
648a84c66f7c657565d633d1eae7935b7bcec342
774
py
Python
samples/openapi3/client/petstore/python-experimental/test/test_foo.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
11,868
2018-05-12T02:58:07.000Z
2022-03-31T21:19:39.000Z
samples/openapi3/client/petstore/python-experimental/test/test_foo.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
9,672
2018-05-12T14:25:43.000Z
2022-03-31T23:59:30.000Z
samples/openapi3/client/petstore/python-experimental/test/test_foo.py
therockstorm/openapi-generator
01d0b5d4780ebe2d6025e2b443ec136c6ce16c45
[ "Apache-2.0" ]
4,776
2018-05-12T12:06:08.000Z
2022-03-31T19:52:51.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
20.368421
174
0.657623
862ce7e1b0fa5fa9f0ead5a6a6d0ff08fb9e8d8b
1,142
py
Python
configs/ocrnet/ocrnet_hr18_512x512_160k_ade20k.py
Xlinford/mmsegmentation
8b444de5e6db2af2538a73a93ac75204f5c3bb2f
[ "Apache-2.0" ]
null
null
null
configs/ocrnet/ocrnet_hr18_512x512_160k_ade20k.py
Xlinford/mmsegmentation
8b444de5e6db2af2538a73a93ac75204f5c3bb2f
[ "Apache-2.0" ]
null
null
null
configs/ocrnet/ocrnet_hr18_512x512_160k_ade20k.py
Xlinford/mmsegmentation
8b444de5e6db2af2538a73a93ac75204f5c3bb2f
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/ocrnet_hr18.py', '../_base_/datasets/ade20k.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py' ] norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict(decode_head=[ dict( type='FCNHead', in_channels=[18, 36, 72, 144], ...
31.722222
75
0.570928
3c236624b72e9e4a853097191fcd5d1fa0bea629
946
py
Python
pokebot/models/dqn.py
nacharya114/pokebot
b9028c86c5ee58178f348c75c39225f7b55507aa
[ "MIT" ]
1
2020-05-20T04:52:24.000Z
2020-05-20T04:52:24.000Z
pokebot/models/dqn.py
nacharya114/pokebot
b9028c86c5ee58178f348c75c39225f7b55507aa
[ "MIT" ]
null
null
null
pokebot/models/dqn.py
nacharya114/pokebot
b9028c86c5ee58178f348c75c39225f7b55507aa
[ "MIT" ]
null
null
null
######################### # Author: Neil Acharya # # Generic Model Definition ######################### from tensorflow.keras.layers import Dense, Flatten from tensorflow.keras.models import Sequential from ..bots.bot import BotPlayer class DQNModel: def __init__(self, player: BotPlayer): ...
29.5625
106
0.634249
0615cce7232f7de1e29926298041520146298486
9,290
py
Python
tests/suite/custom_assertions.py
Taymindis/kubernetes-ingress
28d02e476455b2fd9ac9446cdff06749642ddb0c
[ "Apache-2.0" ]
3,803
2016-03-10T14:33:39.000Z
2022-03-31T20:01:58.000Z
tests/suite/custom_assertions.py
Taymindis/kubernetes-ingress
28d02e476455b2fd9ac9446cdff06749642ddb0c
[ "Apache-2.0" ]
1,159
2016-03-10T15:22:26.000Z
2022-03-31T13:20:57.000Z
tests/suite/custom_assertions.py
Taymindis/kubernetes-ingress
28d02e476455b2fd9ac9446cdff06749642ddb0c
[ "Apache-2.0" ]
1,793
2016-03-12T15:17:09.000Z
2022-03-31T02:00:55.000Z
"""Describe the custom assertion methods""" import time import pytest import requests from suite.vs_vsr_resources_utils import get_vs_nginx_template_conf from suite.resources_utils import get_events def assert_no_new_events(old_list, new_list): assert len(old_list) == len(new_list), "Expected: lists are of the ...
35.458015
117
0.669107
be93e61f1a9573e5f997abeaf765390a53e1ff13
32,948
py
Python
python/pysvso/optimizers/bundle_adjust.py
mfkiwl/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
2249bf358f51b337eb52a347ea7d46bff0654576
[ "Apache-2.0" ]
191
2020-07-01T11:57:17.000Z
2022-03-23T12:40:43.000Z
python/pysvso/optimizers/bundle_adjust.py
mfkiwl/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
2249bf358f51b337eb52a347ea7d46bff0654576
[ "Apache-2.0" ]
10
2020-07-06T12:41:51.000Z
2022-02-09T23:43:11.000Z
python/pysvso/optimizers/bundle_adjust.py
mfkiwl/SEMANTIC_VISUAL_SUPPORTED_ODEMETRY
2249bf358f51b337eb52a347ea7d46bff0654576
[ "Apache-2.0" ]
45
2020-07-01T13:31:20.000Z
2022-02-03T07:21:42.000Z
import os import sys try: # PY.VERSION < 3.6 reduce except: # PY.VERSION >= 3.6 from functools import reduce import numpy as np import logging _logger = logging.getLogger("bundle_adjust") from pysvso.lib.sys import add_path from pysvso.lib.misc import AtomicCounter # pwd = os.path.dirname(os.path.realpath(...
31.926357
130
0.612298
a9d4d662dff18c26344425cc847a0cdca9ae154a
372
py
Python
app/tests/integration/test_orthanc_class.py
salimkanoun/Rest_Radiomics
eda8b2e7d0a95c0fe789bcf5758a4a1cef2c6996
[ "MIT" ]
null
null
null
app/tests/integration/test_orthanc_class.py
salimkanoun/Rest_Radiomics
eda8b2e7d0a95c0fe789bcf5758a4a1cef2c6996
[ "MIT" ]
1
2021-06-21T19:38:00.000Z
2021-06-21T19:38:00.000Z
app/tests/integration/test_orthanc_class.py
salimkanoun/Rest_Radiomics
eda8b2e7d0a95c0fe789bcf5758a4a1cef2c6996
[ "MIT" ]
2
2021-06-21T12:28:28.000Z
2021-06-21T12:30:37.000Z
from django.test import TestCase from ...gaelo_processing.models.Orthanc import Orthanc class test_orthanc_class(TestCase): def test_get_zip_from_orthanc(self): ortanc_instance = Orthanc() zip_path = ortanc_instance.get_zip_from_orthanc( "3a84b7f7-d0c66087-d70b292e-0c585356-56b6ccb3")...
33.818182
59
0.75
c44f3760ccf9dfdc8bbe6f4e5e235c264d30339d
7,446
py
Python
Project2/nnreg/dataloader.py
marianylund/fysstkprojects
7ef97cdf3356dad8ee931a19812d3b0f1625997b
[ "MIT" ]
null
null
null
Project2/nnreg/dataloader.py
marianylund/fysstkprojects
7ef97cdf3356dad8ee931a19812d3b0f1625997b
[ "MIT" ]
null
null
null
Project2/nnreg/dataloader.py
marianylund/fysstkprojects
7ef97cdf3356dad8ee931a19812d3b0f1625997b
[ "MIT" ]
null
null
null
import numpy as np import mnist from sklearn.model_selection import train_test_split from RegLib.HelperFunctions import create_frankie_data, create_X, plot_values_with_info,plot_values_with_two_y_axis from yacs.config import CfgNode as CN class DataLoader(): """ Contains X_train, X_test, y_train, y_test for...
40.912088
150
0.645044
6527548527556d6ab58f2e9bb1488746eda96e90
426
py
Python
isy_homie_start.py
jspeckman/ISY-Homie-Bridge
2bb952e5bfc07cb85e961654963c2f4e5e962aec
[ "MIT" ]
null
null
null
isy_homie_start.py
jspeckman/ISY-Homie-Bridge
2bb952e5bfc07cb85e961654963c2f4e5e962aec
[ "MIT" ]
null
null
null
isy_homie_start.py
jspeckman/ISY-Homie-Bridge
2bb952e5bfc07cb85e961654963c2f4e5e962aec
[ "MIT" ]
null
null
null
#!/usr/bin/env python import time import yaml from isy_homie.bridge import Bridge with open("isy_homie.yml", 'r') as ymlfile: cfg = yaml.full_load(ymlfile) try: bridge = Bridge (address=cfg['isy'] ['url'], username=cfg['isy'] ['username'],password=cfg['isy'] ['password'],mqtt_settings=cfg['mqtt']) ...
21.3
141
0.657277
c1bd69bd31fa9e5aadcd22b9bc5fe26e61350f4b
547
py
Python
Mundo 1/Ex36.py
legna7/Python
52e0b642d1b7acc592ec82dd360c5697fb0765db
[ "MIT" ]
2
2020-04-18T21:56:35.000Z
2020-04-23T00:00:08.000Z
Mundo-2/desafio-036.py
LeonardoARGR/Desafios-Python-Curso-em-Video
3fb1b0615fce88f968b5ba6e4bac43fcb0e72d98
[ "MIT" ]
null
null
null
Mundo-2/desafio-036.py
LeonardoARGR/Desafios-Python-Curso-em-Video
3fb1b0615fce88f968b5ba6e4bac43fcb0e72d98
[ "MIT" ]
null
null
null
valordacasa = float(input('Qual é o valor da casa?: R$')) salário = float(input('Qual o seu salário?: R$')) anos = int(input('Por quantos anos você vai pagar a casa?: ')) print(f'Para pagar uma casa de R${valordacasa :.2f} em {anos} anos, a prestação mensal será de R${valordacasa / anos / 12 :.2f}') if valordacasa / an...
60.777778
129
0.687386
7b1f90135966bdbc366edeb69de7371f27fe38e9
1,232
py
Python
Slides/Slide/Cell/Link.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
Slides/Slide/Cell/Link.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
Slides/Slide/Cell/Link.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
import re,glob class Slides_Slide_Cell_Link(): def Slide_Cell_Command_Detect_Args(self,command,content): regexp='@'+command+'{' args=[] if ( re.search(regexp,content, re.IGNORECASE) ): args=re.sub(regexp,"",content, flags=re.IGNORECASE) args=re.sub('}\s*$',"",args) ...
25.666667
64
0.428571
184aff4de4071ccc660cdc8749d701a4bfadfa4d
649
py
Python
tests/unit/cli/docker_client_test.py
paulczar/compose
02f119e4b728169a7c5ca1e5ee34a3e4adf4ca61
[ "Apache-2.0" ]
null
null
null
tests/unit/cli/docker_client_test.py
paulczar/compose
02f119e4b728169a7c5ca1e5ee34a3e4adf4ca61
[ "Apache-2.0" ]
1
2021-03-26T00:41:22.000Z
2021-03-26T00:41:22.000Z
tests/unit/cli/docker_client_test.py
paulczar/compose
02f119e4b728169a7c5ca1e5ee34a3e4adf4ca61
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from __future__ import absolute_import import os import mock from tests import unittest from compose.cli import docker_client class DockerClientTestCase(unittest.TestCase): def test_docker_client_no_home(self): with mock.patch.dict(os.environ): del o...
28.217391
65
0.721109
56193647aa18ab4d433ae74c653e44d937a49017
12,203
py
Python
cairis/mio/DiagramsNetContentHandler.py
anonymous-author21/cairis
feccb3ecc94ec864dbc87393e21de22bea704e19
[ "Apache-2.0" ]
62
2019-08-23T02:42:29.000Z
2022-03-29T10:52:19.000Z
cairis/mio/DiagramsNetContentHandler.py
anonymous-author21/cairis
feccb3ecc94ec864dbc87393e21de22bea704e19
[ "Apache-2.0" ]
223
2019-07-29T09:49:54.000Z
2022-03-29T09:48:21.000Z
cairis/mio/DiagramsNetContentHandler.py
anonymous-author21/cairis
feccb3ecc94ec864dbc87393e21de22bea704e19
[ "Apache-2.0" ]
32
2019-10-14T12:27:42.000Z
2022-03-19T08:08:23.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...
45.87594
264
0.616897
4289684cab73c355b80e91cd9e90905976279bc7
2,380
py
Python
venv/Scripts/pygal_gen.py
xiaoshir/EnergyStorageTechnologies
0298073d7bbd267919c6f08af4f24ca85168d629
[ "BSD-3-Clause" ]
null
null
null
venv/Scripts/pygal_gen.py
xiaoshir/EnergyStorageTechnologies
0298073d7bbd267919c6f08af4f24ca85168d629
[ "BSD-3-Clause" ]
null
null
null
venv/Scripts/pygal_gen.py
xiaoshir/EnergyStorageTechnologies
0298073d7bbd267919c6f08af4f24ca85168d629
[ "BSD-3-Clause" ]
null
null
null
#!C:\Users\Adrian Grylka\PycharmProjects\untitled\venv\Scripts\python.exe # -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Pub...
34.492754
79
0.657143
1d7e701ed14ec50ad6315a2af496f591f0a1d096
31,815
py
Python
openerp/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
3
2016-01-29T14:39:49.000Z
2018-12-29T22:42:00.000Z
openerp/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
2
2016-03-23T14:29:41.000Z
2017-02-20T17:11:30.000Z
openerp/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
50.580286
290
0.58595
5d7b30ee6755513b630ed79ce0ddd64d0708b094
1,125
py
Python
main.py
rajat004/py_watch
4b39d0d6d5084efb04492c38ada3063b837803c3
[ "MIT" ]
null
null
null
main.py
rajat004/py_watch
4b39d0d6d5084efb04492c38ada3063b837803c3
[ "MIT" ]
null
null
null
main.py
rajat004/py_watch
4b39d0d6d5084efb04492c38ada3063b837803c3
[ "MIT" ]
null
null
null
from activity_monitor.cpu import CpuMonitor from activity_monitor.memory import MemoryMonitor from config import CPUConstants, MemConstants, ActivityNames, REST_INTERVAL import time from datetime import datetime from core.notification import Notification import logging logger = logging.getLogger(__name__) def serv...
32.142857
109
0.728
1c1fff7fca4bd41bd722972474c9e2dc15665428
616
py
Python
algo-c-to-_/examples/horner_.py
nobi56/aRepo
4d444647ceedd239a1bc37bfa31ba8f204fca0ef
[ "CC0-1.0" ]
null
null
null
algo-c-to-_/examples/horner_.py
nobi56/aRepo
4d444647ceedd239a1bc37bfa31ba8f204fca0ef
[ "CC0-1.0" ]
null
null
null
algo-c-to-_/examples/horner_.py
nobi56/aRepo
4d444647ceedd239a1bc37bfa31ba8f204fca0ef
[ "CC0-1.0" ]
null
null
null
# # from src/horner.c # # double horner(int, double a[], double) to horner # from horner import horner def fmt(a): assert len(a) > 0, "ERROR: 'a' must be a list/tuple that contains at least one element." r = [] for i in range(len(a)-1, 1, -1): r.append("{0} * x^{1}".format(a[i], i)) if len(a...
23.692308
92
0.527597
20c1cfaa3bd5cc9e9c68592774b6e25f3c1ef0c9
450
py
Python
__pythonBuildSpecialString.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__pythonBuildSpecialString.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__pythonBuildSpecialString.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
''' Python program to get a new string from a given string where"Is" has been added to the front. If the given string already begins with"Is" then return the string unchanged ''' def checkString (inputString =''): if inputString[0:2] == "Is": return inputString else: return "Is " + inputString...
23.684211
94
0.633333
509da87fe0bab7f407ba2c2300c36c1399352288
3,233
py
Python
common/enumerable.py
GitKlip/python-common
b44d1aaba5db3e1aa571b189999a8edea54c96bb
[ "MIT" ]
null
null
null
common/enumerable.py
GitKlip/python-common
b44d1aaba5db3e1aa571b189999a8edea54c96bb
[ "MIT" ]
null
null
null
common/enumerable.py
GitKlip/python-common
b44d1aaba5db3e1aa571b189999a8edea54c96bb
[ "MIT" ]
null
null
null
from collections import defaultdict from itertools import chain from itertools import combinations from itertools import islice from itertools import tee def group_by(func, values): """ Groups values by func. Returns (dict): Keys produced by func pointing to lists of the values grouped. """ gro...
26.941667
101
0.628518
283fa3bacea06cb6cfdf18edb591b4b66af2ff8c
3,619
py
Python
2020/04.py
MastProTech/Advent-of-Code
3ffdb9b0cfcca72084cc8fd6e2e9a431443dd3dc
[ "MIT" ]
1
2020-12-05T12:55:10.000Z
2020-12-05T12:55:10.000Z
2020/04.py
MastProTech/Advent-of-Code
3ffdb9b0cfcca72084cc8fd6e2e9a431443dd3dc
[ "MIT" ]
null
null
null
2020/04.py
MastProTech/Advent-of-Code
3ffdb9b0cfcca72084cc8fd6e2e9a431443dd3dc
[ "MIT" ]
null
null
null
import re from runner import read_file def extract_keys_values(text:str)->list: # Seperates each passport, and then each passport's keys and values t_list=re.split('\n{2}', text) t_list=list(map(str.split, t_list)) output=list() for i in range(len(t_list)): output.append([]) for j in r...
41.125
237
0.539652
3bae9a7aa83d43f6d71f5b9fac9a97079f4b1c62
3,628
py
Python
test/scloud/test_appreg.py
harsimranmaan/splunk-cloud-sdk-go
24fbc60263a158ce57f7f467a95b725656950949
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/scloud/test_appreg.py
harsimranmaan/splunk-cloud-sdk-go
24fbc60263a158ce57f7f467a95b725656950949
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/scloud/test_appreg.py
harsimranmaan/splunk-cloud-sdk-go
24fbc60263a158ce57f7f467a95b725656950949
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import unittest import test def appreg(*args): return test.scloud("appreg", *args) class TestAppregistry(unittest.TestCase): def setUp(self): # retrieve the selected tenant name code, self.tname, _ = test.scloud("get", "tenant") self.assertEqual(0, code) self.assertIsNotNone(...
34.226415
134
0.599504
b39270499a1de4e402802dac367ca1d006653043
3,362
py
Python
examples/question_answering/generate_data.py
Tufeiming/simpletransformers
d61ee86836a6c91ccb5e2fa2cd2cdeb9b0af40db
[ "Apache-2.0" ]
null
null
null
examples/question_answering/generate_data.py
Tufeiming/simpletransformers
d61ee86836a6c91ccb5e2fa2cd2cdeb9b0af40db
[ "Apache-2.0" ]
null
null
null
examples/question_answering/generate_data.py
Tufeiming/simpletransformers
d61ee86836a6c91ccb5e2fa2cd2cdeb9b0af40db
[ "Apache-2.0" ]
null
null
null
import json def get_question(field, keyword_list, context): if field == "budget_amount": question = "预算金额" elif field == "bid_amount": question = "中标金额" elif field == "party_a_name": question = "采购人" elif field == "party_a_contact": question = "采购联系人" elif field == ...
32.960784
79
0.608269
e85162bc6f782a754ec6f1fc9fc5ab583c487a51
6,232
py
Python
flexget/components/imdb/db.py
signe/Flexget
dfe92d03415aab8254c5cf4827e06ad13da10504
[ "MIT" ]
null
null
null
flexget/components/imdb/db.py
signe/Flexget
dfe92d03415aab8254c5cf4827e06ad13da10504
[ "MIT" ]
null
null
null
flexget/components/imdb/db.py
signe/Flexget
dfe92d03415aab8254c5cf4827e06ad13da10504
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from loguru import logger from sqlalchemy import Boolean, Column, DateTime, Float, Integer, String, Table, Unicode from sqlalchemy.orm import relation from sqlalchemy.schema import ForeignKey, Index from flexget import db_schema from flexget.components.imdb.utils import extrac...
29.535545
99
0.681483
a8d626e3a3009f41687b24ed927d4cc699be7fc6
3,327
py
Python
scripts/plots/master/plot_nice_confusion_matrix.py
dslaborg/sleep-mice-tuebingen
95208c327b06284658afe17bb3f4e95778f3f943
[ "Apache-2.0" ]
null
null
null
scripts/plots/master/plot_nice_confusion_matrix.py
dslaborg/sleep-mice-tuebingen
95208c327b06284658afe17bb3f4e95778f3f943
[ "Apache-2.0" ]
null
null
null
scripts/plots/master/plot_nice_confusion_matrix.py
dslaborg/sleep-mice-tuebingen
95208c327b06284658afe17bb3f4e95778f3f943
[ "Apache-2.0" ]
null
null
null
from os.path import join, dirname import numpy as np import matplotlib.pyplot as plt # values in confusion matrices in percent cm_001 = np.array([[98.09, 0.32, 1.43, 0.02, 0.14, ], [0.78, 94.20, 1.04, 3.92, 0.05, ], [4.49, 0.52, 91.83, 2.91, 0.26, ], [1.16, 20....
41.5875
94
0.500751
5a0c1b45cde15999d4500fef4ce5b1b91c51b6ce
2,082
py
Python
modules/readers/metaImageRDR.py
chrisidefix/devide
99bfe156e710fa47ba7ae88b0ce1eef592a3a439
[ "BSD-3-Clause" ]
25
2015-08-24T16:05:14.000Z
2020-12-09T20:07:14.000Z
modules/readers/metaImageRDR.py
chrisidefix/devide
99bfe156e710fa47ba7ae88b0ce1eef592a3a439
[ "BSD-3-Clause" ]
1
2016-02-16T21:18:10.000Z
2016-02-16T21:18:10.000Z
modules/readers/metaImageRDR.py
chrisidefix/devide
99bfe156e710fa47ba7ae88b0ce1eef592a3a439
[ "BSD-3-Clause" ]
5
2016-02-16T20:05:37.000Z
2020-01-31T11:27:39.000Z
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class metaImageRDR(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._reader = vtk....
27.038961
78
0.605668
47e03dca5b82faa6612c31956bed14574a14c299
21,941
py
Python
scri/asymptotic_bondi_data/transformations.py
akhairna/scri
3b7f307d19ef303914cef2fa088ee750ef8533c2
[ "MIT" ]
null
null
null
scri/asymptotic_bondi_data/transformations.py
akhairna/scri
3b7f307d19ef303914cef2fa088ee750ef8533c2
[ "MIT" ]
null
null
null
scri/asymptotic_bondi_data/transformations.py
akhairna/scri
3b7f307d19ef303914cef2fa088ee750ef8533c2
[ "MIT" ]
null
null
null
import math import numpy as np import quaternion import spinsfast import spherical_functions as sf def _process_transformation_kwargs(input_ell_max, **kwargs): original_kwargs = kwargs.copy() # Build the supertranslation and spacetime_translation arrays supertranslation = np.zeros((4,), dtype=complex) #...
51.025581
120
0.675995
56aef9f2caa5da1995f4cc5db7b227a6ada7a1f1
1,426
py
Python
question3.py
LucasHaug/PCS3438
8e33d9480d0327e9ff3cac406fb1db373a20ca6e
[ "MIT" ]
null
null
null
question3.py
LucasHaug/PCS3438
8e33d9480d0327e9ff3cac406fb1db373a20ca6e
[ "MIT" ]
null
null
null
question3.py
LucasHaug/PCS3438
8e33d9480d0327e9ff3cac406fb1db373a20ca6e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Lasso Regression Train a Lasso regression, with alpha = 1 and using the leave one out method for cross validation. The data used to train and test the regression is the data from the reg01.csv file. File ------- question3.py Author ------- Lucas Haug <lucas.haug@usp.br> """ from data ...
25.017544
84
0.679523
d989ad5e6cb3ff4525ade53c3e072690dd4702f6
664
py
Python
youtubeauditframework/perform_audit_youtube_search.py
kinit-sk/pseudoscience-paper
93a50b623dcca82d9281fd472e1f0c13a5b9c7a8
[ "MIT" ]
1
2021-05-13T12:08:43.000Z
2021-05-13T12:08:43.000Z
youtubeauditframework/perform_audit_youtube_search.py
kinit-sk/pseudoscience-paper
93a50b623dcca82d9281fd472e1f0c13a5b9c7a8
[ "MIT" ]
null
null
null
youtubeauditframework/perform_audit_youtube_search.py
kinit-sk/pseudoscience-paper
93a50b623dcca82d9281fd472e1f0c13a5b9c7a8
[ "MIT" ]
1
2021-09-04T01:28:38.000Z
2021-09-04T01:28:38.000Z
#!/usr/bin/python import sys from modules.YouTubeSearch import YouTubeSearchAudit import os os.chdir('../') """ Initialize variables """ # Read User Profile USER_PROFILE = sys.argv[1] # Read Search Term # TODO: Make sure that you replace spaces ' ' with '_' when providing the search term to this script # E.g....
23.714286
100
0.75
eb28e4d341215039d8e158bdb8efe91a0d472303
4,988
py
Python
models/rced.py
wangkenpu/rsrgan
0efafbdb4008becd3a81650ca0237c660e976d4a
[ "MIT" ]
66
2018-07-06T07:07:56.000Z
2021-07-30T07:59:54.000Z
models/rced.py
wangkenpu/rsrgan
0efafbdb4008becd3a81650ca0237c660e976d4a
[ "MIT" ]
7
2018-09-01T03:03:14.000Z
2019-11-04T10:51:04.000Z
models/rced.py
wangkenpu/rsrgan
0efafbdb4008becd3a81650ca0237c660e976d4a
[ "MIT" ]
15
2018-07-03T13:47:26.000Z
2021-10-17T04:26:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2017 Ke Wang """Redundant Convolutional Encoder Decoder (R-CED) A fully convolutional neural network for speech enhancement(https://arxiv.org/pdf/1609.07132). """ from __future__ import absolute_import from __future__ import division from __future__ import...
37.787879
94
0.558941
0ab8213d0daa1a1d193806451a93bd00fd587fc8
192
py
Python
class-notes/renshu_mondai/ex2-r.py
rhoenkelevra/python_simple_applications
28ceb5f9fe7ecf11d606d49463385e92927e8f98
[ "MIT" ]
null
null
null
class-notes/renshu_mondai/ex2-r.py
rhoenkelevra/python_simple_applications
28ceb5f9fe7ecf11d606d49463385e92927e8f98
[ "MIT" ]
null
null
null
class-notes/renshu_mondai/ex2-r.py
rhoenkelevra/python_simple_applications
28ceb5f9fe7ecf11d606d49463385e92927e8f98
[ "MIT" ]
null
null
null
total = 0 count = 0 while True: num = input("入力してください。:") if num == "End": break total += int(num) count += 1 print(str(count)+"回入力しました。") print("合計は"+str(total)+"です。")
19.2
29
0.546875
deca6e26c03dd6334482e5251a0c4154237542ea
4,731
py
Python
src/utils/visualization/paper_plot.py
oval-group/pl-cnn
75f06630c755168771d049b7dbca300a21f27267
[ "MIT" ]
8
2017-02-19T20:19:18.000Z
2020-05-23T03:06:08.000Z
src/utils/visualization/paper_plot.py
oval-group/pl-cnn
75f06630c755168771d049b7dbca300a21f27267
[ "MIT" ]
null
null
null
src/utils/visualization/paper_plot.py
oval-group/pl-cnn
75f06630c755168771d049b7dbca300a21f27267
[ "MIT" ]
5
2017-04-07T14:35:11.000Z
2020-03-12T19:11:16.000Z
import numpy as np import os import cPickle as pickle import seaborn as sns import matplotlib import matplotlib.pyplot as plt color_set = "Set1" sns.set(style="white", palette=color_set) colors = sns.color_palette(color_set) def plot(xp_dir, export_pdf, show): if os.path.exists('{}/log_mnist.txt'.format(xp_dir...
34.786765
77
0.544917
8ebb59e3110d45ea7448ac2d1a9172aba8ee2908
8,393
py
Python
SqltDAO/SchemaDef/DataDetective.py
soft9000/PyDAO
1316bdf34b62187b7763c2c7dd0036837cdcc894
[ "MIT" ]
8
2018-03-10T05:33:58.000Z
2019-01-25T08:32:27.000Z
SqltDAO/SchemaDef/DataDetective.py
soft9000/PyDAO
1316bdf34b62187b7763c2c7dd0036837cdcc894
[ "MIT" ]
null
null
null
SqltDAO/SchemaDef/DataDetective.py
soft9000/PyDAO
1316bdf34b62187b7763c2c7dd0036837cdcc894
[ "MIT" ]
6
2018-10-15T17:07:28.000Z
2019-02-03T21:49:54.000Z
#!/usr/bin/env python3 # 2019/01/07: Class Created # Status: Work-In-Progress # - Refactored + minor updates. Code paths needs re-testing. import os.path import csv class Inspector: ''' Line oriented: A field-independant way to scan for the encoding + successfull reading of a partial ...
32.657588
97
0.454426
59a3797945b4c7727a66b8dee81fa15ee4101a62
3,939
py
Python
src/investmentstk/data_feeds/avanza_feed.py
fernandobrito/investments-toolkit
40663857d83ec99be7aecd78cf50d092c7144d8f
[ "Apache-2.0" ]
3
2021-08-23T16:47:22.000Z
2021-11-19T12:41:19.000Z
src/investmentstk/data_feeds/avanza_feed.py
fernandobrito/investments-toolkit
40663857d83ec99be7aecd78cf50d092c7144d8f
[ "Apache-2.0" ]
14
2021-08-28T14:17:50.000Z
2021-11-28T20:12:54.000Z
src/investmentstk/data_feeds/avanza_feed.py
fernandobrito/investments-toolkit
40663857d83ec99be7aecd78cf50d092c7144d8f
[ "Apache-2.0" ]
1
2021-11-04T06:51:32.000Z
2021-11-04T06:51:32.000Z
from zoneinfo import ZoneInfo import requests from datetime import datetime from typing import Optional, Mapping from investmentstk.data_feeds.data_feed import DataFeed, TimeResolution from investmentstk.models.bar import Bar from investmentstk.models.barset import BarSet from investmentstk.models.price import Price ...
33.666667
102
0.65575
276334bb3f657f94e88a758c2ddf634025db6af8
11,720
py
Python
i-data-structures/redundant_keywords.py
eda-ricercatore/python-sandbox
741d23e15f22239cb5df8af6e695cd8e3574be50
[ "MIT" ]
null
null
null
i-data-structures/redundant_keywords.py
eda-ricercatore/python-sandbox
741d23e15f22239cb5df8af6e695cd8e3574be50
[ "MIT" ]
null
null
null
i-data-structures/redundant_keywords.py
eda-ricercatore/python-sandbox
741d23e15f22239cb5df8af6e695cd8e3574be50
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import statistics from collections import Counter list_of_keywords = ["human-animal coexistence", "human-animal coexistence - recommendations", "transforming our mental & physical & spiritual lives", "antidote to the growing epidemic of human loneliness", "growing epidemic of human lonelin...
134.712644
7,229
0.750597
fc1c57a6b77db6539cbf64072aa8834ae0179a84
29,096
py
Python
trac/wiki/tests/macros.py
pkdevbox/trac
d044fc469e4dcbc5901c992b1b4160e9cbecee25
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/macros.py
pkdevbox/trac
d044fc469e4dcbc5901c992b1b4160e9cbecee25
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/macros.py
pkdevbox/trac
d044fc469e4dcbc5901c992b1b4160e9cbecee25
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2013 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consi...
48.013201
991
0.568429
7b7de9d07345e10819860d65a9073b57359f573c
102
py
Python
full_inventory/apps.py
eisnerh/DjangoInventory
8abf348a26984f5010feb080352cd05f5d3c04ff
[ "Apache-2.0" ]
null
null
null
full_inventory/apps.py
eisnerh/DjangoInventory
8abf348a26984f5010feb080352cd05f5d3c04ff
[ "Apache-2.0" ]
null
null
null
full_inventory/apps.py
eisnerh/DjangoInventory
8abf348a26984f5010feb080352cd05f5d3c04ff
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class FullInventoryConfig(AppConfig): name = 'full_inventory'
17
37
0.784314
5ec02121e571f64193ee14162fe28efbfbb43dbd
34,890
py
Python
cybox/bindings/user_session_object.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/bindings/user_session_object.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
null
null
null
cybox/bindings/user_session_object.py
siemens/python-cybox
b692a98c8a62bd696e2a0dda802ada7359853482
[ "BSD-3-Clause" ]
1
2019-04-16T18:37:32.000Z
2019-04-16T18:37:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. # # Generated Tue Apr 09 11:13:56 2013 by generateDS.py version 2.9a. # import sys import getopt import re as re_ import cybox_common import base64 from datetime impo...
42.239709
212
0.628919
bdbeae8c5e94063442dd245fc2d7640bd6810f7e
45
py
Python
sneakers/exceptions.py
rsolanoweb/sneakers-archive
a71e67511e501e21fbc0ec7ac1cd940740d4aa11
[ "MIT" ]
null
null
null
sneakers/exceptions.py
rsolanoweb/sneakers-archive
a71e67511e501e21fbc0ec7ac1cd940740d4aa11
[ "MIT" ]
null
null
null
sneakers/exceptions.py
rsolanoweb/sneakers-archive
a71e67511e501e21fbc0ec7ac1cd940740d4aa11
[ "MIT" ]
null
null
null
class BrandDoesNotExist(Exception): pass
15
35
0.777778
7e14ef905e9eeefb6a6c81832438f8081ae17dc0
4,912
py
Python
bftools/compiler.py
BobDotCom/bftools
6b3e0e55f2e5154f5d48d9606ac18833120c1420
[ "MIT" ]
1
2022-02-02T19:22:49.000Z
2022-02-02T19:22:49.000Z
bftools/compiler.py
BobDotCom/bftools
6b3e0e55f2e5154f5d48d9606ac18833120c1420
[ "MIT" ]
1
2021-11-21T05:03:59.000Z
2022-03-20T00:42:19.000Z
bftools/compiler.py
BobDotCom/bftools
6b3e0e55f2e5154f5d48d9606ac18833120c1420
[ "MIT" ]
null
null
null
import warnings from typing import List, Tuple, Optional from .enums import Symbol, Code class CompiledBrainfuck: def __init__(self) -> None: """An object to represent python compiled from Brainfuck. To recieve the decoded text, use :attr:`result` or str(:class:`DecodedBrainfuck`). .. wa...
37.212121
120
0.573901
526256609c1e54792efa138bca96da4d26d76bb9
1,305
py
Python
ex095.py
CarlosEduardoAS/Python-exercicios
c0063660191a86e83f25708239b62b6764a51670
[ "MIT" ]
null
null
null
ex095.py
CarlosEduardoAS/Python-exercicios
c0063660191a86e83f25708239b62b6764a51670
[ "MIT" ]
null
null
null
ex095.py
CarlosEduardoAS/Python-exercicios
c0063660191a86e83f25708239b62b6764a51670
[ "MIT" ]
null
null
null
jogador = {} lista = [] while True: jogador.clear() print('---'*11) jogador['nome'] = str(input('Nome do jogador: ')).strip().capitalize() np = int(input(f'Quantas partidas {jogador["nome"]} jogou? ')) gols = [] tot = 0 for c in range(0, np): g = (int(input(f'Quantos gols na {c+1}º p...
29
74
0.527203
d14470ab7dfa31c657a382a082295b76321b6649
21,699
py
Python
sdk/python/pulumi_azure_native/timeseriesinsights/gen1_environment.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/timeseriesinsights/gen1_environment.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/timeseriesinsights/gen1_environment.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
51.541568
982
0.679847
dabb5812a2d8bec18c2ad29749fe7e5856030bc9
391
py
Python
Scripts2/Script18.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
1
2020-09-05T22:25:36.000Z
2020-09-05T22:25:36.000Z
Scripts2/Script18.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
null
null
null
Scripts2/Script18.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
null
null
null
'''Faça um programa que faça um ângulo qualquer e calcule o seno, coseno e a tangente''' from math import sin from math import cos from math import tan from math import pi print('------'*5) grau = int(input(' Qual o valor do ângulo? ')) rad = (grau*pi) / 180 x = sin(rad) y = cos(rad) z = tan(rad) print(' seno - {:.2f}...
27.928571
88
0.636829
24a1aa75639d5c499ed169d6c258480a37185c96
3,639
py
Python
src/train_backup.py
Wastoon/CenterNet-Multi-Func-Det
3cc131d575a2d7bde5813786e048ac1008a5d711
[ "MIT" ]
1
2022-01-22T18:38:23.000Z
2022-01-22T18:38:23.000Z
src/train_backup.py
Wastoon/CenterNet-Multi-Func-Det
3cc131d575a2d7bde5813786e048ac1008a5d711
[ "MIT" ]
null
null
null
src/train_backup.py
Wastoon/CenterNet-Multi-Func-Det
3cc131d575a2d7bde5813786e048ac1008a5d711
[ "MIT" ]
1
2021-02-24T06:50:40.000Z
2021-02-24T06:50:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import torch import torch.utils.data from opts import opts from models.model import create_model, load_model, save_model from models.data_parallel import DataParallel from logger ...
35.330097
80
0.625447
3536e52560749ad5eb510dbcb5c69bff04580784
1,272
py
Python
airflow/contrib/sensors/gcs_sensor.py
kpathak13/airflow-1
02b478ef8a7e1c1f890e5eb89842333a53654a70
[ "Apache-2.0" ]
1
2019-10-02T13:33:48.000Z
2019-10-02T13:33:48.000Z
airflow/contrib/sensors/gcs_sensor.py
kpathak13/airflow-1
02b478ef8a7e1c1f890e5eb89842333a53654a70
[ "Apache-2.0" ]
null
null
null
airflow/contrib/sensors/gcs_sensor.py
kpathak13/airflow-1
02b478ef8a7e1c1f890e5eb89842333a53654a70
[ "Apache-2.0" ]
1
2019-11-26T21:53:20.000Z
2019-11-26T21:53:20.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
36.342857
71
0.766509
e62e7de25b2bea64cac69995599543ee5b3e1788
6,696
py
Python
exercises/house_price_prediction.py
assafine/IML.HUJI
b81b8beff05b5f120aa21a2f7fe90b4db95174f4
[ "MIT" ]
null
null
null
exercises/house_price_prediction.py
assafine/IML.HUJI
b81b8beff05b5f120aa21a2f7fe90b4db95174f4
[ "MIT" ]
null
null
null
exercises/house_price_prediction.py
assafine/IML.HUJI
b81b8beff05b5f120aa21a2f7fe90b4db95174f4
[ "MIT" ]
null
null
null
from IMLearn.utils import split_train_test from IMLearn.learners.regressors import LinearRegression from IMLearn.metrics import loss_functions as ls from typing import NoReturn import numpy as np import pandas as pd import plotly.graph_objects as go import plotly.express as px import plotly.io as pio pio.templates.def...
39.857143
108
0.613202
240bd4284947739df405aded1875eed14b946513
201
py
Python
gluu_ecommerce/views.py
coseasonruby/Gluu-Ecommerce-djagno-project
d196309bbd76571ee7793bd3de4342eb81f789e1
[ "MIT" ]
null
null
null
gluu_ecommerce/views.py
coseasonruby/Gluu-Ecommerce-djagno-project
d196309bbd76571ee7793bd3de4342eb81f789e1
[ "MIT" ]
null
null
null
gluu_ecommerce/views.py
coseasonruby/Gluu-Ecommerce-djagno-project
d196309bbd76571ee7793bd3de4342eb81f789e1
[ "MIT" ]
null
null
null
from django.shortcuts import render def handle_500(request): return render(request, '500.html', status=500) def handle_404(request): return render(request, '400.html', status=404)
20.1
51
0.701493
c8c9ef3088995290c8b1331788df4786e6875890
5,475
py
Python
doc/conf.py
seirl/matrix-nio
e3be482b0558da52c62c53e435afc832d22e208c
[ "Apache-2.0" ]
null
null
null
doc/conf.py
seirl/matrix-nio
e3be482b0558da52c62c53e435afc832d22e208c
[ "Apache-2.0" ]
null
null
null
doc/conf.py
seirl/matrix-nio
e3be482b0558da52c62c53e435afc832d22e208c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
28.968254
79
0.645662
6fbc4aa579252278e292531e3d23bbc6862d327c
5,591
py
Python
24-2.py
InCogNiTo124/AoC2018
846e625a2d51b7746fb636b0ad9ab5908ee6d056
[ "BSD-2-Clause" ]
null
null
null
24-2.py
InCogNiTo124/AoC2018
846e625a2d51b7746fb636b0ad9ab5908ee6d056
[ "BSD-2-Clause" ]
null
null
null
24-2.py
InCogNiTo124/AoC2018
846e625a2d51b7746fb636b0ad9ab5908ee6d056
[ "BSD-2-Clause" ]
null
null
null
import copy class Group: def __init__(self, name, count, hit_points, immune_set, weak_set, dmg, atk_type, initiative): self.name = name self.unit_count = count self.unit_hit_point = hit_points self.immune_to = immune_set self.weak_to = weak_set self.atk_dmg = dmg ...
44.373016
124
0.607584
e728c80be6df0f43af18a2197192f6b001f24c63
1,994
py
Python
tests/test_handler_rocauc_dist.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
1
2021-08-02T07:18:50.000Z
2021-08-02T07:18:50.000Z
tests/test_handler_rocauc_dist.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
tests/test_handler_rocauc_dist.py
albarqounilab/MONAI
bb0b307d68021a243011a58fd82a1d275f00a51a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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...
36.925926
118
0.661986
7f679aacf799bef75b10def7cd3858d1edcd83d2
39,584
py
Python
ibm_cloud_networking_services/user_agent_blocking_rules_v1.py
IBM/networking-services-python-sdk
a19e47db6a5971562a502982d69a5868997245f3
[ "Apache-2.0" ]
1
2020-12-22T03:51:33.000Z
2020-12-22T03:51:33.000Z
ibm_cloud_networking_services/user_agent_blocking_rules_v1.py
IBM/networking-services-python-sdk
a19e47db6a5971562a502982d69a5868997245f3
[ "Apache-2.0" ]
57
2020-06-24T06:58:01.000Z
2022-03-28T14:52:33.000Z
ibm_cloud_networking_services/user_agent_blocking_rules_v1.py
IBM/networking-services-python-sdk
a19e47db6a5971562a502982d69a5868997245f3
[ "Apache-2.0" ]
10
2020-06-23T04:09:28.000Z
2022-03-26T18:20:35.000Z
# coding: utf-8 # (C) Copyright IBM Corp. 2020. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
38.884086
118
0.609792
f9fe542a1d659f5f403bee23405a74ad24bd1e37
2,518
py
Python
ga-spy-games/code.py
manthangandhi/dsmp-pre-work
0cfc899dd27292bf11ad80b8df9de19a0c1723c2
[ "MIT" ]
null
null
null
ga-spy-games/code.py
manthangandhi/dsmp-pre-work
0cfc899dd27292bf11ad80b8df9de19a0c1723c2
[ "MIT" ]
null
null
null
ga-spy-games/code.py
manthangandhi/dsmp-pre-work
0cfc899dd27292bf11ad80b8df9de19a0c1723c2
[ "MIT" ]
null
null
null
# -------------- ##File path for the file file_path #Code starts here def read_file(path): file = open(file_path,"r") sentence = file.readline() file.close() return sentence sample_message = read_file(file_path) # -------------- #Code starts here #Function to fuse message ...
20.306452
71
0.664019