hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64806f65878c18d62b19689145b457942a25bb91 | 1,991 | py | Python | server/src/weaverbird/pipeline/steps/aggregate.py | JeremyJacquemont/weaverbird | e04ab6f9c8381986ab71078e5199ece7a875e743 | [
"BSD-3-Clause"
] | 54 | 2019-11-20T15:07:39.000Z | 2022-03-24T22:13:51.000Z | server/src/weaverbird/pipeline/steps/aggregate.py | JeremyJacquemont/weaverbird | e04ab6f9c8381986ab71078e5199ece7a875e743 | [
"BSD-3-Clause"
] | 786 | 2019-10-20T11:48:37.000Z | 2022-03-23T08:58:18.000Z | server/src/weaverbird/pipeline/steps/aggregate.py | JeremyJacquemont/weaverbird | e04ab6f9c8381986ab71078e5199ece7a875e743 | [
"BSD-3-Clause"
] | 10 | 2019-11-21T10:16:16.000Z | 2022-03-21T10:34:06.000Z | from typing import List, Literal, Optional, Sequence
from pydantic import Field, root_validator, validator
from pydantic.main import BaseModel
from weaverbird.pipeline.steps.utils.base import BaseStep
from weaverbird.pipeline.steps.utils.render_variables import StepWithVariablesMixin
from weaverbird.pipeline.steps.ut... | 29.279412 | 92 | 0.721748 | 193 | 1,991 | 7.352332 | 0.414508 | 0.039464 | 0.062016 | 0.057082 | 0.224101 | 0.067653 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176796 | 1,991 | 67 | 93 | 29.716418 | 0.865772 | 0 | 0 | 0.117647 | 0 | 0 | 0.09995 | 0.011552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.137255 | 0.019608 | 0.568627 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6485fec3abdcd71b449dc07dfd6e24085b4ec88d | 19,281 | py | Python | tlmshop/settings.py | LegionMarket/django-cms-base | 1b6fc3423e3d0b2165552cc980432befb496f3e0 | [
"BSD-3-Clause"
] | null | null | null | tlmshop/settings.py | LegionMarket/django-cms-base | 1b6fc3423e3d0b2165552cc980432befb496f3e0 | [
"BSD-3-Clause"
] | null | null | null | tlmshop/settings.py | LegionMarket/django-cms-base | 1b6fc3423e3d0b2165552cc980432befb496f3e0 | [
"BSD-3-Clause"
] | null | null | null | """
Django settings for this project.
Generated by 'django-admin startproject' using Django 1.10.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
f... | 29.213636 | 119 | 0.64478 | 1,931 | 19,281 | 6.239254 | 0.323666 | 0.024817 | 0.01079 | 0.0166 | 0.196298 | 0.16841 | 0.130312 | 0.112965 | 0.092131 | 0.071215 | 0 | 0.010386 | 0.181007 | 19,281 | 659 | 120 | 29.257967 | 0.752581 | 0.186246 | 0 | 0.155963 | 1 | 0 | 0.495657 | 0.299508 | 0 | 0 | 0 | 0.001517 | 0 | 1 | 0 | false | 0.016055 | 0.016055 | 0 | 0.016055 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64867655df53ae53f42648b7a2d27b6c674ce9c1 | 272 | py | Python | examples/02-hello_kml.py | JMSchietekat/polycircles | 26f46bb77c234ac0aec756131f599f1651a559da | [
"MIT"
] | 9 | 2016-07-04T08:57:57.000Z | 2021-04-30T16:02:12.000Z | examples/02-hello_kml.py | JMSchietekat/polycircles | 26f46bb77c234ac0aec756131f599f1651a559da | [
"MIT"
] | 11 | 2016-06-30T19:36:24.000Z | 2021-12-04T21:20:23.000Z | examples/02-hello_kml.py | JMSchietekat/polycircles | 26f46bb77c234ac0aec756131f599f1651a559da | [
"MIT"
] | 7 | 2015-11-15T02:38:38.000Z | 2021-12-04T09:16:49.000Z | import os
import simplekml
from polycircles.polycircles import Polycircle
polycircle = Polycircle(latitude=31.611878, longitude=34.505351, radius=100)
kml = simplekml.Kml()
pol = kml.newpolygon(name=f"Polycircle", outerboundaryis=polycircle.to_kml())
kml.save('02.kml') | 27.2 | 77 | 0.794118 | 36 | 272 | 5.972222 | 0.638889 | 0.186047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 0.084559 | 272 | 10 | 78 | 27.2 | 0.779116 | 0 | 0 | 0 | 0 | 0 | 0.058608 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6486e28543122cc731938867a4ab44ae1ac8a42a | 5,579 | py | Python | amazon_main_xgboost.py | twankim/ensemble_amazon | 9019d8dcdfa3651b374e0216cc310255c2d660aa | [
"Apache-2.0"
] | 236 | 2016-04-08T01:49:46.000Z | 2021-08-16T21:27:34.000Z | amazon_main_xgboost.py | twankim/ensemble_amazon | 9019d8dcdfa3651b374e0216cc310255c2d660aa | [
"Apache-2.0"
] | 1 | 2017-07-09T10:35:01.000Z | 2017-07-09T10:55:19.000Z | amazon_main_xgboost.py | kaz-Anova/ensemble_amazon | 9019d8dcdfa3651b374e0216cc310255c2d660aa | [
"Apache-2.0"
] | 87 | 2016-04-08T05:13:44.000Z | 2022-02-02T14:46:51.000Z | """ Amazon Access Challenge Code for ensemble
Marios Michaildis script for Amazon .
xgboost on input data
based on Paul Duan's Script.
"""
from __future_
_ import division
import numpy as np
from sklearn import preprocessing
from sklearn.metrics import roc_auc_score
import XGBoostClassifier as xg
from sklearn.cros... | 35.535032 | 133 | 0.639003 | 798 | 5,579 | 4.353383 | 0.343358 | 0.010363 | 0.011514 | 0.003454 | 0.035118 | 0.030512 | 0 | 0 | 0 | 0 | 0 | 0.018116 | 0.257932 | 5,579 | 156 | 134 | 35.762821 | 0.821014 | 0.297724 | 0 | 0 | 0 | 0 | 0.050428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.082192 | null | null | 0.09589 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
648c4346d07df4969891123c667fe653aca75a7c | 2,310 | py | Python | kmeans/dbscan.py | kravtsun/au-ml | a9e354c14d4df8d1e4569e7f6cfa2fdad060522f | [
"MIT"
] | null | null | null | kmeans/dbscan.py | kravtsun/au-ml | a9e354c14d4df8d1e4569e7f6cfa2fdad060522f | [
"MIT"
] | null | null | null | kmeans/dbscan.py | kravtsun/au-ml | a9e354c14d4df8d1e4569e7f6cfa2fdad060522f | [
"MIT"
] | null | null | null | #!/bin/python
import argparse
import numpy as np
from cluster import read_csv, plot_clusters, distance, print_cluster_distribution
def kmeans_chosen(data, centers):
def best_cluster(p):
distances = [distance(p, c) for c in centers]
return np.argmin(distances)
return np.apply_along_axis(best_clu... | 33.970588 | 103 | 0.619913 | 322 | 2,310 | 4.279503 | 0.313665 | 0.05225 | 0.013062 | 0.014514 | 0.100145 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014035 | 0.25974 | 2,310 | 67 | 104 | 34.477612 | 0.791813 | 0.022078 | 0 | 0.036364 | 0 | 0 | 0.032387 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0 | null | null | 0 | 0.072727 | null | null | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
649457b8032d8db424acfcf9fd15600116f0ed28 | 526 | py | Python | tests/data.py | biologic/stylus | ae642bbb7e2205bab1ab1b4703ea037e996e13db | [
"Apache-2.0"
] | null | null | null | tests/data.py | biologic/stylus | ae642bbb7e2205bab1ab1b4703ea037e996e13db | [
"Apache-2.0"
] | null | null | null | tests/data.py | biologic/stylus | ae642bbb7e2205bab1ab1b4703ea037e996e13db | [
"Apache-2.0"
] | null | null | null | # The following is a list of gene-plan combinations which should
# not be run
BLACKLIST = [
('8C58', 'performance'), # performance.xml make specific references to 52DC
('7DDA', 'performance') # performance.xml make specific references to 52DC
]
IGNORE = {
'history' : ['uuid', 'creationTool', 'creationD... | 35.066667 | 79 | 0.657795 | 55 | 526 | 6.290909 | 0.727273 | 0.069364 | 0.144509 | 0.16763 | 0.306358 | 0.306358 | 0.306358 | 0.306358 | 0 | 0 | 0 | 0.019139 | 0.205323 | 526 | 14 | 80 | 37.571429 | 0.808612 | 0.439164 | 0 | 0 | 0 | 0 | 0.470588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64949bbe3dc54542a6bf1cf20073d7801df0a497 | 295 | py | Python | prm/relations/migrations/0010_delete_mood.py | justaname94/innovathon2019 | d1a4e9b1b877ba12ab23384b9ee098fcdbf363af | [
"MIT"
] | null | null | null | prm/relations/migrations/0010_delete_mood.py | justaname94/innovathon2019 | d1a4e9b1b877ba12ab23384b9ee098fcdbf363af | [
"MIT"
] | 4 | 2021-06-08T20:20:05.000Z | 2022-03-11T23:58:37.000Z | prm/relations/migrations/0010_delete_mood.py | justaname94/personal_crm | d1a4e9b1b877ba12ab23384b9ee098fcdbf363af | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2019-10-03 23:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('relations', '0009_auto_20191003_2258'),
]
operations = [
migrations.DeleteModel(
name='Mood',
),
]
| 17.352941 | 49 | 0.60339 | 32 | 295 | 5.46875 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146919 | 0.284746 | 295 | 16 | 50 | 18.4375 | 0.682464 | 0.152542 | 0 | 0 | 1 | 0 | 0.145161 | 0.092742 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6499166ff9e4140b4e105ce3ebf038b47555e332 | 2,149 | py | Python | rdr_server/model/site.py | robabram/raw-data-repository-v2 | a8e1a387d9ea3e4be3ec44473d026e3218f23509 | [
"BSD-3-Clause"
] | null | null | null | rdr_server/model/site.py | robabram/raw-data-repository-v2 | a8e1a387d9ea3e4be3ec44473d026e3218f23509 | [
"BSD-3-Clause"
] | 2 | 2021-02-08T20:31:00.000Z | 2021-04-30T20:44:44.000Z | rdr_server/model/site.py | robabram/raw-data-repository-v2 | a8e1a387d9ea3e4be3ec44473d026e3218f23509 | [
"BSD-3-Clause"
] | null | null | null | from rdr_server.common.enums import SiteStatus, EnrollingStatus, DigitalSchedulingStatus, ObsoleteStatus
from sqlalchemy import Column, Integer, String, Date, Float, ForeignKey, UnicodeText
from rdr_server.model.base_model import BaseModel, ModelMixin, ModelEnum
class Site(ModelMixin, BaseModel):
__tablename__ =... | 51.166667 | 104 | 0.731038 | 230 | 2,149 | 6.669565 | 0.43913 | 0.023468 | 0.016949 | 0.028683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026879 | 0.151698 | 2,149 | 41 | 105 | 52.414634 | 0.814591 | 0.056771 | 0 | 0 | 0 | 0 | 0.182312 | 0.070158 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.970588 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
649a993277a42a61a1570384faaec1b7bdd02010 | 2,096 | py | Python | passwd_validate/utils.py | clamytoe/Password-Validate | 3ce14ce0e3fa325dc578aaaf5e051e71d195f271 | [
"MIT"
] | 2 | 2018-07-08T17:36:59.000Z | 2018-10-19T22:51:33.000Z | passwd_validate/utils.py | clamytoe/Password-Validate | 3ce14ce0e3fa325dc578aaaf5e051e71d195f271 | [
"MIT"
] | 1 | 2018-05-16T00:25:42.000Z | 2018-05-16T00:25:42.000Z | passwd_validate/utils.py | clamytoe/Password-Validate | 3ce14ce0e3fa325dc578aaaf5e051e71d195f271 | [
"MIT"
] | 4 | 2018-04-18T18:18:40.000Z | 2018-09-26T16:33:54.000Z | # _*_ coding: utf-8 _*_
"""
password-validate.utils
-----------------------
This module provides utility functions that are used within password_validate
that are also useful for external consumption.
"""
import hashlib
from os.path import abspath, dirname, join
DICTIONARY_LOC = "dictionary_files"
DICTIONARY = "dicti... | 29.942857 | 79 | 0.656966 | 274 | 2,096 | 4.923358 | 0.441606 | 0.038547 | 0.028169 | 0.031134 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007097 | 0.260496 | 2,096 | 69 | 80 | 30.376812 | 0.863226 | 0.463263 | 0 | 0.0625 | 0 | 0 | 0.073786 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.21875 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
649f90abe5a0e2278134d2c05c716ffaecd2b45f | 429 | py | Python | bookwyrm/migrations/0145_sitesettings_version.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 270 | 2020-01-27T06:06:07.000Z | 2020-06-21T00:28:18.000Z | bookwyrm/migrations/0145_sitesettings_version.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 158 | 2020-02-10T20:36:54.000Z | 2020-06-26T17:12:54.000Z | bookwyrm/migrations/0145_sitesettings_version.py | mouse-reeve/fedireads | e3471fcc3500747a1b1deaaca662021aae5b08d4 | [
"CC0-1.0"
] | 15 | 2020-02-13T21:53:33.000Z | 2020-06-17T16:52:46.000Z | # Generated by Django 3.2.12 on 2022-03-16 18:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0144_alter_announcement_display_type"),
]
operations = [
migrations.AddField(
model_name="sitesettings",
... | 22.578947 | 73 | 0.624709 | 47 | 429 | 5.574468 | 0.829787 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06962 | 0.263403 | 429 | 18 | 74 | 23.833333 | 0.759494 | 0.107226 | 0 | 0 | 1 | 0 | 0.165354 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64a6d9297b2d82f455c0e98224ae042ba6dbe984 | 1,939 | py | Python | scripts/sample_script.py | TheConfused/LinkedIn | 83e75ed18c54ebc1bed55ee55f69d580a2cb1b73 | [
"MIT"
] | null | null | null | scripts/sample_script.py | TheConfused/LinkedIn | 83e75ed18c54ebc1bed55ee55f69d580a2cb1b73 | [
"MIT"
] | null | null | null | scripts/sample_script.py | TheConfused/LinkedIn | 83e75ed18c54ebc1bed55ee55f69d580a2cb1b73 | [
"MIT"
] | null | null | null | from simplelinkedin import LinkedIn
def run_script(settings):
with LinkedIn(
username=settings.get("LINKEDIN_USER"),
password=settings.get("LINKEDIN_PASSWORD"),
browser=settings.get("LINKEDIN_BROWSER"),
driver_path=settings.get("LINKEDIN_BROWSER_DRIVER"),
headless=bool(sett... | 32.864407 | 111 | 0.647241 | 216 | 1,939 | 5.481481 | 0.388889 | 0.065034 | 0.112331 | 0.065878 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006863 | 0.248582 | 1,939 | 58 | 112 | 33.431034 | 0.805765 | 0.132543 | 0 | 0 | 0 | 0 | 0.293485 | 0.188882 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.051282 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
64aa2bc5220e8017e409c846fc02f3f094df8aea | 3,106 | py | Python | models/image/greenFluorescenceQuantifier.py | marinarobin/uwaterloo-igem-2018 | dd2d3227975c51c31e923c0e262b4fc07b44b73a | [
"MIT"
] | 3 | 2018-05-15T00:46:37.000Z | 2018-09-20T22:50:52.000Z | models/image/greenFluorescenceQuantifier.py | marinarobin/uwaterloo-igem-2018 | dd2d3227975c51c31e923c0e262b4fc07b44b73a | [
"MIT"
] | 1 | 2018-03-22T19:30:24.000Z | 2018-03-22T19:30:24.000Z | models/image/greenFluorescenceQuantifier.py | marinarobin/uwaterloo-igem-2018 | dd2d3227975c51c31e923c0e262b4fc07b44b73a | [
"MIT"
] | 3 | 2018-10-01T21:19:23.000Z | 2018-10-13T19:04:28.000Z | # Max Reed
# August 22, 2018
# A program designed for the UW iGEM Robots Subsubteam within the Math Subteam. It is meant to
# help quantify the amount of green fluorescence visible in an image. We have a very bright blue
# LED and a band pass filter that blocks blue light but lets through green light (and also red
# li... | 53.551724 | 118 | 0.68255 | 552 | 3,106 | 3.826087 | 0.42029 | 0.034091 | 0.038352 | 0.042614 | 0.102746 | 0.090436 | 0.060133 | 0.035985 | 0.035985 | 0 | 0 | 0.102208 | 0.212492 | 3,106 | 57 | 119 | 54.491228 | 0.761243 | 0.735673 | 0 | 0.117647 | 0 | 0 | 0.087675 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64b296594edc9672e5df42017e0febcf11f1fb78 | 243 | py | Python | renlabs/sudoku/cli.py | swork/sudoku | 7dcc33bf6572ada4d3d92f21278d19b5237c1d83 | [
"MIT"
] | null | null | null | renlabs/sudoku/cli.py | swork/sudoku | 7dcc33bf6572ada4d3d92f21278d19b5237c1d83 | [
"MIT"
] | null | null | null | renlabs/sudoku/cli.py | swork/sudoku | 7dcc33bf6572ada4d3d92f21278d19b5237c1d83 | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import logging, sys, os
from . import main
logger = logging.getLogger(__name__ if not __name__ == '__main__' else os.path.basename(__file__))
if __name__ == '__main__':
logging.basicConfig()
sys.exit(main())
| 22.090909 | 98 | 0.707819 | 32 | 243 | 4.625 | 0.65625 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004878 | 0.156379 | 243 | 10 | 99 | 24.3 | 0.717073 | 0.090535 | 0 | 0 | 0 | 0 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
64b5326f176464feb08959dbb46da61e35edf533 | 873 | py | Python | Python 基础教程/1.5.1 列表.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 95 | 2020-10-11T04:45:46.000Z | 2022-02-25T01:50:40.000Z | Python 基础教程/1.5.1 列表.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | null | null | null | Python 基础教程/1.5.1 列表.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 30 | 2020-11-05T09:01:00.000Z | 2022-03-08T05:58:55.000Z | # 插入
print('插入'*15)
x = [1,2,3]
print(x)
x = x+ [4]
x.append(5)
print(x)
x.insert(3,'w')
x.extend(['a','b'])
print(x*3)
# 删除
print("删除"*15)
y = ["a","b","c","d",'e','f']
del y[2]
print(y)
y.pop(0)
print(y)
y.remove('f')
print(y)
# 列表元素访问与计数
print("列表元素访问与计数"*5)
x =[1,2,3,3,4,5]
print(x.count(3),x.index(2))
# 列表排序
pr... | 12.125 | 39 | 0.578465 | 182 | 873 | 2.774725 | 0.351648 | 0.059406 | 0.017822 | 0.015842 | 0.023762 | 0.023762 | 0 | 0 | 0 | 0 | 0 | 0.076716 | 0.148912 | 873 | 71 | 40 | 12.295775 | 0.602961 | 0.084765 | 0 | 0.130435 | 0 | 0 | 0.082157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021739 | 0 | 0.021739 | 0.478261 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
64b82d4b5f5b18d5d4af06617964ece62fbc4a17 | 5,781 | py | Python | pulse_lib/segments/data_classes/data_HVI_variables.py | NicoHendrickx/pulse_lib | 94cd9cf7a8d4d422b86c0759dd2eb7c3466d6413 | [
"MIT"
] | null | null | null | pulse_lib/segments/data_classes/data_HVI_variables.py | NicoHendrickx/pulse_lib | 94cd9cf7a8d4d422b86c0759dd2eb7c3466d6413 | [
"MIT"
] | 26 | 2020-04-06T09:33:39.000Z | 2022-02-18T14:08:22.000Z | pulse_lib/segments/data_classes/data_HVI_variables.py | NicoHendrickx/pulse_lib | 94cd9cf7a8d4d422b86c0759dd2eb7c3466d6413 | [
"MIT"
] | 3 | 2020-03-31T11:56:23.000Z | 2021-12-06T13:42:50.000Z | """
data class for markers.
"""
from pulse_lib.segments.data_classes.data_generic import parent_data
import copy
class marker_HVI_variable(parent_data):
def __init__(self):
"""
init marker object
Args:
pulse_amplitude(double) : pulse amplitude in mV
"""
super()... | 30.426316 | 153 | 0.60474 | 785 | 5,781 | 4.220382 | 0.225478 | 0.032599 | 0.048295 | 0.042258 | 0.155146 | 0.083308 | 0.049502 | 0.019318 | 0.019318 | 0 | 0 | 0.003264 | 0.311019 | 5,781 | 189 | 154 | 30.587302 | 0.828521 | 0.269504 | 0 | 0.152941 | 0 | 0 | 0.106819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.211765 | false | 0.023529 | 0.023529 | 0.047059 | 0.376471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64b8c4d0cf9e1949005c5b1ea8a056e52ed57d58 | 2,504 | py | Python | AutoBonsai/AutoBonsai.py | WolfgangAxel/Random-Projects | 12764d96be3fa162abc5451fdd07db7481200a07 | [
"MIT"
] | 1 | 2017-08-17T19:50:11.000Z | 2017-08-17T19:50:11.000Z | AutoBonsai/AutoBonsai.py | WolfgangAxel/Random-Projects | 12764d96be3fa162abc5451fdd07db7481200a07 | [
"MIT"
] | null | null | null | AutoBonsai/AutoBonsai.py | WolfgangAxel/Random-Projects | 12764d96be3fa162abc5451fdd07db7481200a07 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# AutoBonsai.py
#
# Copyright 2016 keaton <keaton@MissionControl>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of t... | 28.454545 | 101 | 0.717652 | 366 | 2,504 | 4.877049 | 0.519126 | 0.018487 | 0.021849 | 0.031933 | 0.091877 | 0.077311 | 0 | 0 | 0 | 0 | 0 | 0.02137 | 0.177716 | 2,504 | 87 | 102 | 28.781609 | 0.845556 | 0.388578 | 0 | 0.142857 | 0 | 0 | 0.170906 | 0.034976 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64c3b70bd4a11694d8806b5762ea9c6780b09649 | 1,858 | py | Python | oauth2/serializers.py | tinyms/bopress | 6182c8940ebeb1f7a26c0e1aa62528b9f090b2d9 | [
"Apache-2.0"
] | null | null | null | oauth2/serializers.py | tinyms/bopress | 6182c8940ebeb1f7a26c0e1aa62528b9f090b2d9 | [
"Apache-2.0"
] | null | null | null | oauth2/serializers.py | tinyms/bopress | 6182c8940ebeb1f7a26c0e1aa62528b9f090b2d9 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from oauth2.models import UserInfo, CompanyInfo, CompanyEmployee, AppCommerceLicense, AppGrantAuthorization
class OAuth2VerifySerializer(serializers.Serializer):
def create(self, validated_data):
return None
def update(self, instance, validated_data):
r... | 33.781818 | 114 | 0.717976 | 167 | 1,858 | 7.874252 | 0.437126 | 0.140684 | 0.114068 | 0.041065 | 0.146008 | 0.146008 | 0.146008 | 0.146008 | 0.146008 | 0.146008 | 0 | 0.003232 | 0.167384 | 1,858 | 54 | 115 | 34.407407 | 0.8468 | 0 | 0 | 0.205882 | 0 | 0 | 0.174381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0.058824 | 0.676471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
64c9216d8fa2a1253a7570d4c6809f00d17bb600 | 4,665 | py | Python | src/pspnet/run.py | jefequien/PSPNet-Keras | bad76c4c397b127c1d82bff31cb8ada39d39a230 | [
"MIT"
] | 4 | 2019-09-29T06:13:17.000Z | 2020-06-06T10:21:49.000Z | src/pspnet/run.py | jefequien/PSPNet-Keras | bad76c4c397b127c1d82bff31cb8ada39d39a230 | [
"MIT"
] | null | null | null | src/pspnet/run.py | jefequien/PSPNet-Keras | bad76c4c397b127c1d82bff31cb8ada39d39a230 | [
"MIT"
] | 1 | 2020-12-22T08:30:25.000Z | 2020-12-22T08:30:25.000Z | import os
from os.path import join, isfile, isdir, dirname, basename
from os import environ, makedirs
import sys
import argparse
import numpy as np
import h5py
from scipy import misc
from keras import backend as K
import tensorflow as tf
from pspnet import PSPNet50
import utils
from utils import image_utils
from util... | 37.926829 | 109 | 0.591854 | 596 | 4,665 | 4.458054 | 0.253356 | 0.031615 | 0.030109 | 0.042153 | 0.243131 | 0.175386 | 0.161837 | 0.122695 | 0.082047 | 0.082047 | 0 | 0.013777 | 0.284244 | 4,665 | 122 | 110 | 38.237705 | 0.781971 | 0.018864 | 0 | 0.0625 | 0 | 0 | 0.085377 | 0.007224 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.145833 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
64dbc268e94b0e86f76dd10af1901fafdc87b38b | 2,000 | py | Python | gocardless_pro/services/billing_request_flows_service.py | gocardless/gocardless-pro-python | e6763fba5326ff56f4ba417ddd7828c03e059be5 | [
"MIT"
] | 30 | 2015-07-08T21:10:10.000Z | 2022-02-17T10:08:55.000Z | gocardless_pro/services/billing_request_flows_service.py | gocardless/gocardless-pro-python | e6763fba5326ff56f4ba417ddd7828c03e059be5 | [
"MIT"
] | 21 | 2015-12-14T02:24:52.000Z | 2022-02-05T15:56:00.000Z | gocardless_pro/services/billing_request_flows_service.py | gocardless/gocardless-pro-python | e6763fba5326ff56f4ba417ddd7828c03e059be5 | [
"MIT"
] | 19 | 2016-02-10T15:57:42.000Z | 2022-02-05T10:21:05.000Z | # WARNING: Do not edit by hand, this file was generated by Crank:
#
# https://github.com/gocardless/crank
#
from . import base_service
from .. import resources
from ..paginator import Paginator
from .. import errors
class BillingRequestFlowsService(base_service.BaseService):
"""Service class that provides acces... | 30.30303 | 92 | 0.618 | 208 | 2,000 | 5.8125 | 0.451923 | 0.081059 | 0.062862 | 0.034739 | 0.329198 | 0.281224 | 0.243176 | 0.243176 | 0.243176 | 0.243176 | 0 | 0 | 0.3055 | 2,000 | 65 | 93 | 30.769231 | 0.87041 | 0.3605 | 0 | 0.26087 | 1 | 0 | 0.100974 | 0.08326 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.173913 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b37c632709a6f52e9270bc4114337fa833a78ab7 | 232 | py | Python | Uche Clare/Phase 1/Python Basic 2/Day 17/Task 2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 6 | 2020-05-23T19:53:25.000Z | 2021-05-08T20:21:30.000Z | Uche Clare/Phase 1/Python Basic 2/Day 17/Task 2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 8 | 2020-05-14T18:53:12.000Z | 2020-07-03T00:06:20.000Z | Uche Clare/Phase 1/Python Basic 2/Day 17/Task 2.py | CodedLadiesInnovateTech/-python-challenge-solutions | 430cd3eb84a2905a286819eef384ee484d8eb9e7 | [
"MIT"
] | 39 | 2020-05-10T20:55:02.000Z | 2020-09-12T17:40:59.000Z | #Write a Python program to create all possible strings by using 'a', 'e', 'i', 'o', 'u'. Use the characters exactly once.
import random
vowels = ['a', 'e', 'i', 'o', 'u']
random.shuffle(vowels)
char = "".join(vowels)
print(char)
| 23.2 | 121 | 0.642241 | 37 | 232 | 4.027027 | 0.72973 | 0.026846 | 0.040268 | 0.053691 | 0.067114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163793 | 232 | 9 | 122 | 25.777778 | 0.768041 | 0.517241 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b383c1f2704d2ae2a9e5fdb01fe6f31ca5410042 | 374 | py | Python | app/services/mail/events.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/services/mail/events.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/services/mail/events.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | import logging
from fastapi import FastAPI
from fastapi_mail import ConnectionConfig as MailConnectionSettings
from .state import MailState
__all__ = ['init_mail']
logger = logging.getLogger(__name__)
def init_mail(app: FastAPI, settings: MailConnectionSettings) -> None:
app.state.mail = MailState(settings)... | 20.777778 | 70 | 0.772727 | 45 | 374 | 6.177778 | 0.533333 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144385 | 374 | 17 | 71 | 22 | 0.86875 | 0 | 0 | 0 | 0 | 0 | 0.112299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b388d8673e156c073bc0e747b23586e086fb3fd0 | 2,906 | py | Python | sorteio.py | laurocjs/criptomigo | 871bcd051376f5ffe7fe64cae80401da69ae171f | [
"MIT"
] | null | null | null | sorteio.py | laurocjs/criptomigo | 871bcd051376f5ffe7fe64cae80401da69ae171f | [
"MIT"
] | null | null | null | sorteio.py | laurocjs/criptomigo | 871bcd051376f5ffe7fe64cae80401da69ae171f | [
"MIT"
] | null | null | null | # coding= utf-8
import random
from Crypto.PublicKey import RSA
# Função para sortear os pares
def sorteiaPares(listaDeParticipantes): # Recebe lista com nome dos participantes
# e o valor é a chave pública dela
dictSorteado = {} # Dict a ser retornado
numeroDePar... | 44.030303 | 117 | 0.712319 | 330 | 2,906 | 6.266667 | 0.463636 | 0.061896 | 0.077369 | 0.039652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007083 | 0.222643 | 2,906 | 65 | 118 | 44.707692 | 0.908367 | 0.379904 | 0 | 0 | 0 | 0 | 0.038851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b38ea18fde8a979df788072d40b24291c6dbc34a | 1,632 | py | Python | src/ds_algs/list_binary_tree.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | src/ds_algs/list_binary_tree.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | src/ds_algs/list_binary_tree.py | E1mir/PySandbox | 44b39b98a41add433f0815cd3cde4d7554629eea | [
"MIT"
] | null | null | null | def binary_tree(r):
"""
:param r: This is root node
:return: returns tree
"""
return [r, [], []]
def insert_left(root, new_branch):
"""
:param root: current root of the tree
:param new_branch: new branch for a tree
:return: updated root of the tree
"""
t = root.pop(1)
i... | 19.2 | 51 | 0.583333 | 238 | 1,632 | 3.836134 | 0.205882 | 0.098576 | 0.105148 | 0.087623 | 0.569551 | 0.464403 | 0.311062 | 0.234392 | 0.234392 | 0.234392 | 0 | 0.014542 | 0.283701 | 1,632 | 84 | 52 | 19.428571 | 0.766467 | 0.35049 | 0 | 0.176471 | 0 | 0 | 0.008753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0 | 0 | 0 | 0.382353 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b390b46232762e8aa8342658d28e1d8f4b83336f | 446 | py | Python | tests/network_speedtest.py | cloud-mon/server-test | 1175ec5426eed6455600ef45a5217e5145e6d203 | [
"MIT"
] | null | null | null | tests/network_speedtest.py | cloud-mon/server-test | 1175ec5426eed6455600ef45a5217e5145e6d203 | [
"MIT"
] | 1 | 2020-07-02T06:42:26.000Z | 2020-07-02T06:42:26.000Z | tests/network_speedtest.py | cloud-mon/server-test | 1175ec5426eed6455600ef45a5217e5145e6d203 | [
"MIT"
] | null | null | null | import speedtest
def perform_test():
s = speedtest.Speedtest()
best_server = s.get_best_server()
print('Best server: ')
print(best_server['name'])
print('Perform upload app:')
result = s.upload()
print('Done:' + str(result / 1024 / 1024) + ' MBit/s')
print('Perform download app:')
... | 22.3 | 58 | 0.609865 | 57 | 446 | 4.684211 | 0.368421 | 0.149813 | 0.11236 | 0.142322 | 0.419476 | 0.269663 | 0.269663 | 0.269663 | 0.269663 | 0 | 0 | 0.046512 | 0.2287 | 446 | 19 | 59 | 23.473684 | 0.729651 | 0 | 0 | 0.142857 | 0 | 0 | 0.181614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
b39336da5d14f41b5e11922d81cebc45de1a648c | 588 | py | Python | data_scripts/weeds.py | bayerhealth/bayerhealth | c860dc105494bab3a00798322476c3ab034cceb9 | [
"MIT"
] | null | null | null | data_scripts/weeds.py | bayerhealth/bayerhealth | c860dc105494bab3a00798322476c3ab034cceb9 | [
"MIT"
] | null | null | null | data_scripts/weeds.py | bayerhealth/bayerhealth | c860dc105494bab3a00798322476c3ab034cceb9 | [
"MIT"
] | 1 | 2021-11-24T12:45:03.000Z | 2021-11-24T12:45:03.000Z |
import os
import pandas as pd
import shutil
os.chdir("../Downloads/DeepWeeds_Images_256")
try:
os.mkdir("train")
os.mkdir("val")
except:
pass
train = pd.read_csv("../train_set_labels.csv")
val = pd.read_csv("../test_set_labels.csv")
print(train)
for j,i in train.iterrows():
try:
os.mkdir("tr... | 21 | 60 | 0.622449 | 89 | 588 | 4.022472 | 0.359551 | 0.078212 | 0.083799 | 0.083799 | 0.22905 | 0.22905 | 0.22905 | 0.22905 | 0.22905 | 0 | 0 | 0.006316 | 0.192177 | 588 | 28 | 61 | 21 | 0.747368 | 0 | 0 | 0.375 | 0 | 0 | 0.183362 | 0.132428 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0.125 | 0 | 0.125 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b393bdceee5141732cb897079744e23870c97773 | 491 | py | Python | auctionbot/users/migrations/0006_auto_20180218_1311.py | netvigator/auctions | f88bcce800b60083a5d1a6f272c51bb540b8342a | [
"MIT"
] | null | null | null | auctionbot/users/migrations/0006_auto_20180218_1311.py | netvigator/auctions | f88bcce800b60083a5d1a6f272c51bb540b8342a | [
"MIT"
] | 13 | 2019-12-12T03:07:55.000Z | 2022-03-07T12:59:27.000Z | auctionbot/users/migrations/0006_auto_20180218_1311.py | netvigator/auctions | f88bcce800b60083a5d1a6f272c51bb540b8342a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-02-18 06:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_auto_20180107_2152'),
]
operations = [
migrations.AlterField(
... | 23.380952 | 95 | 0.631365 | 53 | 491 | 5.660377 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089674 | 0.250509 | 491 | 20 | 96 | 24.55 | 0.725543 | 0.13442 | 0 | 0 | 1 | 0 | 0.14218 | 0.054502 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b39ac8a96e45d8646cdf0980fdb5a20cae752964 | 434 | py | Python | test4.py | JarkJiao/Python_learning_TestCase | cc77a7a20b01e230e0edd818532570a7d8853b03 | [
"MIT"
] | null | null | null | test4.py | JarkJiao/Python_learning_TestCase | cc77a7a20b01e230e0edd818532570a7d8853b03 | [
"MIT"
] | null | null | null | test4.py | JarkJiao/Python_learning_TestCase | cc77a7a20b01e230e0edd818532570a7d8853b03 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
year = int(raw_input('years:\n'))
month = int(raw_input('month:\n'))
day = int(raw_input('day:\n'))
months = (0,31,59,90,120,151,181,212,243,273,304,334)
if 0< month <=12:
sum = months[month-1]
else:
print '日期错误'
sum+=day
leap = 0
if (year %400==0) or ((year % 4 ==... | 18.083333 | 60 | 0.569124 | 81 | 434 | 3.012346 | 0.555556 | 0.07377 | 0.135246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145714 | 0.193548 | 434 | 23 | 61 | 18.869565 | 0.551429 | 0.087558 | 0 | 0 | 0 | 0 | 0.111959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b39c9e2bf74b1b8f308baab389017a73fc014199 | 1,829 | py | Python | task3/test_openbrewerydb.py | rokimaru/rest_api_autotests | d4009b813b064681250671ec515646dc3554bc5d | [
"Apache-2.0"
] | null | null | null | task3/test_openbrewerydb.py | rokimaru/rest_api_autotests | d4009b813b064681250671ec515646dc3554bc5d | [
"Apache-2.0"
] | null | null | null | task3/test_openbrewerydb.py | rokimaru/rest_api_autotests | d4009b813b064681250671ec515646dc3554bc5d | [
"Apache-2.0"
] | null | null | null | """ Тесты api сайта https://www.openbrewerydb.org/ """
import pytest
import requests
from task3.methods import BrewerySiteMethods
class TestJsonPlaceholderSite:
""" Тесты api сайта https://www.openbrewerydb.org/ """
def test_openbrewerydb_1(self):
""" Проверка, что общее количество пивоварен на 1 ст... | 43.547619 | 98 | 0.686714 | 217 | 1,829 | 5.62212 | 0.317972 | 0.080328 | 0.081967 | 0.078689 | 0.468852 | 0.468852 | 0.441803 | 0.381148 | 0.259016 | 0.093443 | 0 | 0.017018 | 0.196829 | 1,829 | 41 | 99 | 44.609756 | 0.813479 | 0.217059 | 0 | 0.166667 | 0 | 0 | 0.14956 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.208333 | false | 0 | 0.125 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b39d2f478b8d05032480b473417744f719f3f2ee | 1,966 | py | Python | apps/finance_request/models.py | MegaSoftVision/finance_credit | a4350f525cd45b1e40d0a8be0ca1f3d77fdbe039 | [
"MIT"
] | null | null | null | apps/finance_request/models.py | MegaSoftVision/finance_credit | a4350f525cd45b1e40d0a8be0ca1f3d77fdbe039 | [
"MIT"
] | null | null | null | apps/finance_request/models.py | MegaSoftVision/finance_credit | a4350f525cd45b1e40d0a8be0ca1f3d77fdbe039 | [
"MIT"
] | null | null | null | from django.db import models
from apps.users.models import User
from django.core.validators import MaxValueValidator, MinValueValidator
class Client(models.Model):
GOOD = 'gd'
REGULAR = 'rg'
BAD = 'bd'
NULL = 'nl'
DEBT_SCORE_CHOICES = [
(GOOD, 'Bueno'),
(REGULAR, 'Regular'),
... | 29.343284 | 112 | 0.65412 | 215 | 1,966 | 5.75814 | 0.44186 | 0.035541 | 0.025848 | 0.038772 | 0.155089 | 0.155089 | 0.053312 | 0 | 0 | 0 | 0 | 0.011913 | 0.231434 | 1,966 | 66 | 113 | 29.787879 | 0.807412 | 0 | 0 | 0.145455 | 0 | 0.018182 | 0.164377 | 0.023919 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.054545 | 0.036364 | 0.527273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b39fb66c9264ab0daee2f5939dd75f3e42854c9f | 938 | py | Python | Code/mreset.py | andrewwhipple/MeowgicMatt | 189c2c90a75eeb9c53d3be03c40f6b5792ceb548 | [
"MIT"
] | null | null | null | Code/mreset.py | andrewwhipple/MeowgicMatt | 189c2c90a75eeb9c53d3be03c40f6b5792ceb548 | [
"MIT"
] | null | null | null | Code/mreset.py | andrewwhipple/MeowgicMatt | 189c2c90a75eeb9c53d3be03c40f6b5792ceb548 | [
"MIT"
] | null | null | null | #Meowgic Matt reset module
import os
import json
#Debug function to call out that the module successfully loaded.
def meow():
print("mreset loaded")
#Resets Meowgic Matt to factory conditions, DELETING EVERYTHING CURRENTLY IN SUBFOLDERS.
def reset():
os.system("rm -rf ../Edited/")
os.system("rm -rf ... | 33.5 | 91 | 0.621535 | 113 | 938 | 5.159292 | 0.504425 | 0.096055 | 0.120069 | 0.144082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223881 | 938 | 28 | 92 | 33.5 | 0.800824 | 0.186567 | 0 | 0 | 0 | 0 | 0.28628 | 0.040897 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3ae79059719c022e0deda9fca2855194972e39f | 70,728 | py | Python | DatabaseStocks.py | VaseSimion/Finance | 63d04a3bb03177e0f959c0c79fa922aecb50ae11 | [
"MIT"
] | 1 | 2021-01-26T11:59:59.000Z | 2021-01-26T11:59:59.000Z | DatabaseStocks.py | VaseSimion/Finance | 63d04a3bb03177e0f959c0c79fa922aecb50ae11 | [
"MIT"
] | null | null | null | DatabaseStocks.py | VaseSimion/Finance | 63d04a3bb03177e0f959c0c79fa922aecb50ae11 | [
"MIT"
] | 1 | 2021-01-26T15:53:58.000Z | 2021-01-26T15:53:58.000Z | import random
list_of_technology = ["AAPL", "ACIW", "ACN", "ADBE", "ADI", "ADP", "ADSK", "AKAM", "AMD", "AMAT",
"ANET", "ANSS", "ARW", "ATVI", "AVGO", "AVT", "AZPN", "BA", "BB", "BLL",
"BLKB", "BR", "CDK", "CDNS", "CERN", "CHKP", "CIEN", "COMM", "COUP",
... | 104.472674 | 120 | 0.364226 | 6,745 | 70,728 | 3.793921 | 0.838695 | 0.012192 | 0.012896 | 0.005276 | 0.032161 | 0.020399 | 0.018132 | 0.01524 | 0.01524 | 0.01524 | 0 | 0.000111 | 0.360465 | 70,728 | 676 | 121 | 104.627219 | 0.565627 | 0.000806 | 0 | 0 | 0 | 0 | 0.34263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.003106 | false | 0 | 0.001553 | 0 | 0.007764 | 0.003106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3b7971054166b3e113cd28da11c99033b9339be | 248 | py | Python | todolist/api/urls.py | yusukhobok/TodoAPI | 9f9d93b54cfe3c841dbe2de91798c5e6a28c7edf | [
"MIT"
] | null | null | null | todolist/api/urls.py | yusukhobok/TodoAPI | 9f9d93b54cfe3c841dbe2de91798c5e6a28c7edf | [
"MIT"
] | 6 | 2020-06-05T20:06:44.000Z | 2021-09-22T18:08:06.000Z | todolist/api/urls.py | Yus27/TodoAPI | 1308aeac356b2168cec02045aa6774b16443d17b | [
"MIT"
] | null | null | null | from django.urls import path
from .views import TodoViewSet
from rest_framework_bulk.routes import BulkRouter
from rest_framework import routers
router = BulkRouter()
router.register(r'', TodoViewSet, basename='todos')
urlpatterns = router.urls | 22.545455 | 51 | 0.814516 | 32 | 248 | 6.21875 | 0.59375 | 0.080402 | 0.170854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112903 | 248 | 11 | 52 | 22.545455 | 0.904545 | 0 | 0 | 0 | 0 | 0 | 0.02008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b3ba429b584473910459cd9abd6680855878d8b8 | 406 | py | Python | whileIF.py | JulianConneely/Python-Problem-Sets | 315a43b00c98bff0a9889c730ae13ca963d5fa6c | [
"Apache-2.0"
] | null | null | null | whileIF.py | JulianConneely/Python-Problem-Sets | 315a43b00c98bff0a9889c730ae13ca963d5fa6c | [
"Apache-2.0"
] | null | null | null | whileIF.py | JulianConneely/Python-Problem-Sets | 315a43b00c98bff0a9889c730ae13ca963d5fa6c | [
"Apache-2.0"
] | null | null | null | #Julian Conneely, 21/03/18
#WhileIF loop with increment
#first 5 is printed
#then it is decreased to 4
#as it is not satisfying i<=2
#it moves on
#then 4 is printed
#then it is decreased to 3
#as it is not satisfying i<=2,it moves on
#then 3 is printed
#then it is decreased to 2
#as now i<=2 has completely satisfied, ... | 19.333333 | 55 | 0.684729 | 82 | 406 | 3.390244 | 0.463415 | 0.071942 | 0.140288 | 0.161871 | 0.546763 | 0.546763 | 0.546763 | 0.244604 | 0.244604 | 0.244604 | 0 | 0.058065 | 0.236453 | 406 | 20 | 56 | 20.3 | 0.83871 | 0.76601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3c169da3d4b81dde59b6bb476806e478d3ea83d | 3,493 | py | Python | lib/python/batch_sim/gcloud_fakes.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | lib/python/batch_sim/gcloud_fakes.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | lib/python/batch_sim/gcloud_fakes.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | # Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 34.93 | 78 | 0.744918 | 462 | 3,493 | 5.482684 | 0.354978 | 0.081721 | 0.041058 | 0.035531 | 0.215555 | 0.189499 | 0.170944 | 0.130675 | 0.130675 | 0.089617 | 0 | 0.00278 | 0.176066 | 3,493 | 99 | 79 | 35.282828 | 0.877345 | 0.499857 | 0 | 0.102564 | 0 | 0 | 0.002983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.282051 | false | 0 | 0.025641 | 0.025641 | 0.487179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3d08a0120015a60c620ea1e806103c54c2cbf58 | 196 | py | Python | LeetCode/python3/136.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/python3/136.py | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/python3/136.py | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution:
def singleNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
k = 0
for n in nums:
k ^= n
return k | 19.6 | 33 | 0.408163 | 22 | 196 | 3.636364 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.484694 | 196 | 10 | 34 | 19.6 | 0.782178 | 0.168367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3d2818801e85a29eccfd608b62683f33282a6d9 | 2,071 | py | Python | src/genie/libs/parser/iosxr/tests/ShowVrrpSummary/cli/equal/golden_output_1_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxr/tests/ShowVrrpSummary/cli/equal/golden_output_1_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxr/tests/ShowVrrpSummary/cli/equal/golden_output_1_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | expected_output = {
"address_family":{
"ipv4":{
"bfd_sessions_down":0,
"bfd_sessions_inactive":1,
"bfd_sessions_up":0,
"intf_down":1,
"intf_up":1,
"num_bfd_sessions":1,
"num_intf":2,
"state":{
"all":{
"sessions":2,... | 24.081395 | 40 | 0.356832 | 166 | 2,071 | 4.198795 | 0.180723 | 0.10043 | 0.172166 | 0.114778 | 0.619799 | 0.619799 | 0.401722 | 0.157819 | 0.157819 | 0.157819 | 0 | 0.053295 | 0.50169 | 2,071 | 85 | 41 | 24.364706 | 0.622093 | 0 | 0 | 0.541176 | 0 | 0 | 0.32593 | 0.090777 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3df745ca42527733326bd472f3dcaf4891e8d24 | 2,789 | py | Python | ETLPipeline (1).py | mudigosa/Disaster-Pipeline | 3a4a8cb78202def522f131d15e5f3938c15f1be5 | [
"CC-BY-4.0"
] | null | null | null | ETLPipeline (1).py | mudigosa/Disaster-Pipeline | 3a4a8cb78202def522f131d15e5f3938c15f1be5 | [
"CC-BY-4.0"
] | null | null | null | ETLPipeline (1).py | mudigosa/Disaster-Pipeline | 3a4a8cb78202def522f131d15e5f3938c15f1be5 | [
"CC-BY-4.0"
] | null | null | null | import sys
import pandas as pd
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
'''
input:
messages_filepath: The path of messages dataset.
categories_filepath: The path of categories dataset.
output:
df: The merged dataset
'''
disa... | 35.303797 | 102 | 0.674435 | 347 | 2,789 | 5.322767 | 0.403458 | 0.016243 | 0.024364 | 0.018408 | 0.02274 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003251 | 0.228039 | 2,789 | 78 | 103 | 35.75641 | 0.854621 | 0 | 0 | 0.088889 | 0 | 0 | 0.252318 | 0.057101 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3e734c6ffea6e6eebb61e519518c93ae03d2616 | 1,504 | py | Python | fst_lookup/fallback_data.py | eddieantonio/fst-lookup | 383173e906c25070fb71044318a6fe9e62ca9c13 | [
"MIT"
] | 5 | 2019-07-17T16:28:52.000Z | 2020-03-31T08:36:26.000Z | fst_lookup/fallback_data.py | eddieantonio/fst-lookup | 383173e906c25070fb71044318a6fe9e62ca9c13 | [
"MIT"
] | 15 | 2019-01-31T18:31:35.000Z | 2021-03-01T16:24:20.000Z | fst_lookup/fallback_data.py | eddieantonio/fst-lookup | 383173e906c25070fb71044318a6fe9e62ca9c13 | [
"MIT"
] | 2 | 2019-07-15T20:10:55.000Z | 2019-08-17T18:02:08.000Z | """
Fallback data types, implemented in Python, for platforms that cannot build
the C extension.
"""
from .symbol import Symbol
from .typedefs import StateID
class Arc:
"""
An arc (transition) in the FST.
"""
__slots__ = ("_state", "_upper", "_lower", "_destination")
def __init__(
self,... | 24.655738 | 80 | 0.583112 | 167 | 1,504 | 4.952096 | 0.305389 | 0.076179 | 0.047158 | 0.061669 | 0.053204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299867 | 1,504 | 60 | 81 | 25.066667 | 0.785375 | 0.082447 | 0 | 0.1 | 0 | 0 | 0.035372 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.05 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b3e9fef97a59ba6d9d87e871a5f6cd1c0bbe6864 | 2,111 | py | Python | indicators.py | abulte/python-influxdb-alerts | 5955b99551094d24197705ec5d97373b64b338a1 | [
"MIT"
] | 2 | 2018-04-16T23:44:56.000Z | 2019-02-28T16:43:57.000Z | indicators.py | abulte/python-influxdb-alerts | 5955b99551094d24197705ec5d97373b64b338a1 | [
"MIT"
] | null | null | null | indicators.py | abulte/python-influxdb-alerts | 5955b99551094d24197705ec5d97373b64b338a1 | [
"MIT"
] | 1 | 2021-05-04T16:06:15.000Z | 2021-05-04T16:06:15.000Z | """Indicators to monitor"""
import click
from configparser import NoOptionError
from query import Query
from config import CONFIG
class BaseIndicator(object):
client = Query()
# name of the metric in influxdb
name = 'base_indicator'
# unit (displays in alerts)
unit = ''
# alert when value g... | 24.546512 | 94 | 0.606348 | 241 | 2,111 | 5.248963 | 0.39834 | 0.042688 | 0.045059 | 0.033202 | 0.162846 | 0.162846 | 0.113834 | 0.113834 | 0.113834 | 0.113834 | 0 | 0.016249 | 0.300332 | 2,111 | 85 | 95 | 24.835294 | 0.840217 | 0.183799 | 0 | 0.40678 | 0 | 0 | 0.09342 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0 | 0.067797 | 0 | 0.677966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b3ed72fa8fd255bd3466367b59b2f940a3c9c4e8 | 600 | py | Python | openbook_posts/migrations/0022_auto_20190311_1432.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_posts/migrations/0022_auto_20190311_1432.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_posts/migrations/0022_auto_20190311_1432.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | # Generated by Django 2.2b1 on 2019-03-11 13:32
from django.db import migrations
import imagekit.models.fields
import openbook_posts.helpers
class Migration(migrations.Migration):
dependencies = [
('openbook_posts', '0021_auto_20190309_1532'),
]
operations = [
migrations.AlterField(
... | 28.571429 | 203 | 0.698333 | 69 | 600 | 5.855072 | 0.652174 | 0.096535 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064315 | 0.196667 | 600 | 20 | 204 | 30 | 0.773859 | 0.075 | 0 | 0 | 1 | 0 | 0.121157 | 0.041591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3eeb3b273ced737afa9c583f2c895e42540c161 | 617 | py | Python | setup.py | AndersenLab/liftover-utils | 17041d8b84ba79e9b3105267040bec4ade437a5c | [
"MIT"
] | 7 | 2015-04-29T22:53:46.000Z | 2022-03-11T02:24:32.000Z | setup.py | AndersenLab/liftover-utils | 17041d8b84ba79e9b3105267040bec4ade437a5c | [
"MIT"
] | 2 | 2015-05-04T23:40:00.000Z | 2015-12-01T21:17:56.000Z | setup.py | AndersenLab/liftover-utils | 17041d8b84ba79e9b3105267040bec4ade437a5c | [
"MIT"
] | 1 | 2017-07-07T05:19:12.000Z | 2017-07-07T05:19:12.000Z | from setuptools import setup
import glob
setup(name='liftover.py',
version='0.1',
packages=['liftover'],
description='C. elegans liftover utility',
url='https://github.com/AndersenLab/liftover-utils',
author='Daniel Cook',
author_email='danielecook@gmail.com',
license='MIT',
... | 32.473684 | 97 | 0.65316 | 66 | 617 | 5.939394 | 0.772727 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004065 | 0.202593 | 617 | 19 | 98 | 32.473684 | 0.792683 | 0 | 0 | 0 | 0 | 0 | 0.475728 | 0.211974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3ef8ee3fd80d4e7439e46e105cfd252de319dd7 | 2,610 | py | Python | tests/test_atom.py | mkowiel/restraintlib | 32de01d67ae290a45f3199e90c729acc258a6249 | [
"BSD-3-Clause"
] | null | null | null | tests/test_atom.py | mkowiel/restraintlib | 32de01d67ae290a45f3199e90c729acc258a6249 | [
"BSD-3-Clause"
] | 1 | 2021-11-11T18:45:10.000Z | 2021-11-11T18:45:10.000Z | tests/test_atom.py | mkowiel/restraintlib | 32de01d67ae290a45f3199e90c729acc258a6249 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import math
from unittest import TestCase
from restraintlib.atom import Atom
class AtomTestCase(TestCase):
def setUp(self):
self.atom = Atom('A', '100', 'DT', 'C2', ' ', (1.0, 0.2, 0.3), 1)
self.atom2 = Atom('A', '100', 'DT', 'C3', ' ', (1.0, 1.0, 1.0), 2)
def test_st... | 34.8 | 90 | 0.544444 | 412 | 2,610 | 3.371359 | 0.160194 | 0.040317 | 0.036717 | 0.103672 | 0.393809 | 0.387329 | 0.231102 | 0.195824 | 0.179986 | 0.159827 | 0 | 0.089939 | 0.245977 | 2,610 | 74 | 91 | 35.27027 | 0.615854 | 0.008046 | 0 | 0 | 0 | 0.018519 | 0.036722 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3f2836bffc8bb0fbc4cbeb37e50f7145fc48bd5 | 1,099 | py | Python | tests/test_settings.py | wegostudio/wegq | 391cdf7e6a345079c20d9c517bff89cd440dd35c | [
"Apache-2.0"
] | null | null | null | tests/test_settings.py | wegostudio/wegq | 391cdf7e6a345079c20d9c517bff89cd440dd35c | [
"Apache-2.0"
] | null | null | null | tests/test_settings.py | wegostudio/wegq | 391cdf7e6a345079c20d9c517bff89cd440dd35c | [
"Apache-2.0"
] | null | null | null | import unittest
from wework import settings, wechat
class TestSettings(unittest.TestCase):
def test_init(self):
t = settings.init(
CROP_ID='a',
PROVIDER_SECRET='a',
REGISTER_URL='www.quseit.com/',
HELPER='wegq.DjangoHelper'
)
self.assertTrue(... | 29.702703 | 60 | 0.520473 | 101 | 1,099 | 5.534653 | 0.366337 | 0.085868 | 0.11449 | 0.128801 | 0.694097 | 0.694097 | 0.694097 | 0.694097 | 0.694097 | 0.694097 | 0 | 0 | 0.368517 | 1,099 | 37 | 61 | 29.702703 | 0.805476 | 0 | 0 | 0.59375 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3f538d52ae1e6ef588876efeb6394fbd75aad99 | 435 | py | Python | setup.py | mchalek/timetools | 347d71c5b1b61b2e7f51b55b78717d046df0eac9 | [
"MIT"
] | null | null | null | setup.py | mchalek/timetools | 347d71c5b1b61b2e7f51b55b78717d046df0eac9 | [
"MIT"
] | null | null | null | setup.py | mchalek/timetools | 347d71c5b1b61b2e7f51b55b78717d046df0eac9 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'timetools',
version = '1.0.0',
description = 'CL tools for timestamps',
author = 'Kevin McHale',
author_email = 'mchalek@gmail.com',
url = 'https://github.com/mchalek/timetools',
scripts = [
'bin/now',
... | 25.588235 | 53 | 0.482759 | 42 | 435 | 4.97619 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.37931 | 435 | 16 | 54 | 27.1875 | 0.762963 | 0 | 0 | 0 | 0 | 0 | 0.335632 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3f7e6c22b6c9794a41aee33552f02308c3e5c81 | 334 | py | Python | home/migrations/0020_remove_comment_content_type.py | yys534640040/blog | 5489506593a4c496856cb197c6eeee0b9d0c7422 | [
"MIT"
] | null | null | null | home/migrations/0020_remove_comment_content_type.py | yys534640040/blog | 5489506593a4c496856cb197c6eeee0b9d0c7422 | [
"MIT"
] | 1 | 2020-07-12T11:36:06.000Z | 2020-07-16T22:58:18.000Z | home/migrations/0020_remove_comment_content_type.py | yys534640040/blog | 5489506593a4c496856cb197c6eeee0b9d0c7422 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-07-03 20:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0019_comment_content_type'),
]
operations = [
migrations.RemoveField(
model_name='comment',
name='content_type',
... | 18.555556 | 47 | 0.598802 | 36 | 334 | 5.416667 | 0.777778 | 0.112821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080169 | 0.290419 | 334 | 17 | 48 | 19.647059 | 0.742616 | 0.134731 | 0 | 0 | 1 | 0 | 0.167247 | 0.087108 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b3f8cd4ae912dbdd73c9929061b57c0026f34e20 | 394 | py | Python | maldives/bot/models/price.py | filipecn/maldives | f20f17d817fc3dcad7f9674753744716d1d4c821 | [
"MIT"
] | 1 | 2021-09-17T18:04:33.000Z | 2021-09-17T18:04:33.000Z | maldives/bot/models/price.py | filipecn/maldives | f20f17d817fc3dcad7f9674753744716d1d4c821 | [
"MIT"
] | null | null | null | maldives/bot/models/price.py | filipecn/maldives | f20f17d817fc3dcad7f9674753744716d1d4c821 | [
"MIT"
] | 3 | 2021-09-17T18:04:43.000Z | 2022-03-18T20:04:07.000Z | from datetime import datetime
class Price:
date: datetime = datetime(1, 1, 1)
currency: str = 'BRL'
symbol: str = ''
current: float = 0
open: float = 0
close: float = 0
low: float = 0
high: float = 0
volume: float = 0
interval: str = ''
def __init__(self, **kwargs):
... | 20.736842 | 41 | 0.563452 | 51 | 394 | 4.27451 | 0.588235 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033582 | 0.319797 | 394 | 18 | 42 | 21.888889 | 0.779851 | 0 | 0 | 0 | 0 | 0 | 0.007614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b3fbdad4ed64cfcecd3fb0cb6ae4bd8c65572b8e | 348 | py | Python | filesystems/click.py | Julian/Filesystems | 8c758c8dbbe1263b2ad574ccb8e2c81c865c0a61 | [
"MIT"
] | 2 | 2017-04-17T18:30:15.000Z | 2018-05-05T23:11:06.000Z | filesystems/click.py | Julian/Filesystems | 8c758c8dbbe1263b2ad574ccb8e2c81c865c0a61 | [
"MIT"
] | 46 | 2016-09-11T19:40:49.000Z | 2020-02-05T01:49:34.000Z | filesystems/click.py | Julian/Filesystems | 8c758c8dbbe1263b2ad574ccb8e2c81c865c0a61 | [
"MIT"
] | 4 | 2017-01-13T14:47:00.000Z | 2020-01-17T00:45:49.000Z | """
Click support for `filesystems.Path`.
"""
from __future__ import absolute_import
import click
import filesystems
class Path(click.ParamType):
name = "path"
def convert(self, value, param, context):
if not isinstance(value, str):
return value
return filesystems.Path.from_st... | 15.130435 | 50 | 0.672414 | 41 | 348 | 5.560976 | 0.585366 | 0.131579 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229885 | 348 | 22 | 51 | 15.818182 | 0.850746 | 0.106322 | 0 | 0 | 0 | 0 | 0.013201 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b60351063710a533911517acf4f3365c7b83f4ec | 4,621 | py | Python | radiation/python/scripts/record_random_walk.py | dfridovi/exploration | 5e66115178988bd264a920041dfeab6d3539caec | [
"BSD-3-Clause"
] | 5 | 2018-07-08T08:32:49.000Z | 2022-03-13T10:17:09.000Z | radiation/python/scripts/record_random_walk.py | dfridovi/exploration | 5e66115178988bd264a920041dfeab6d3539caec | [
"BSD-3-Clause"
] | 5 | 2016-11-30T02:52:58.000Z | 2018-05-24T04:46:49.000Z | radiation/python/scripts/record_random_walk.py | dfridovi/exploration | 5e66115178988bd264a920041dfeab6d3539caec | [
"BSD-3-Clause"
] | 2 | 2016-12-01T04:06:40.000Z | 2019-06-19T16:32:28.000Z | """
Copyright (c) 2015, The Regents of the University of California (Regents).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
... | 39.161017 | 85 | 0.662194 | 587 | 4,621 | 5.151618 | 0.403748 | 0.021164 | 0.021825 | 0.015873 | 0.098214 | 0.07672 | 0.044974 | 0.044974 | 0.044974 | 0.044974 | 0 | 0.018545 | 0.22982 | 4,621 | 117 | 86 | 39.495727 | 0.831132 | 0.075958 | 0 | 0 | 0 | 0 | 0.033319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.105263 | null | null | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b605e2b8a8084f71c91e33d2351a943a53e715a5 | 1,447 | py | Python | Test/test.py | ed-chin-git/Utils_edchin | 44a6cd8ff9a3c3ffd9976eae53f3b3edd2cca18e | [
"MIT"
] | null | null | null | Test/test.py | ed-chin-git/Utils_edchin | 44a6cd8ff9a3c3ffd9976eae53f3b3edd2cca18e | [
"MIT"
] | null | null | null | Test/test.py | ed-chin-git/Utils_edchin | 44a6cd8ff9a3c3ffd9976eae53f3b3edd2cca18e | [
"MIT"
] | null | null | null | # ======================================================
# Packaging Python Projects Tutorial : https://packaging.python.org/tutorials/packaging-projects/
#
# Installation : # pip install -i https://test.pypi.org/simple/ utils-edchin
#
#
# ===================================================================
# Imp... | 38.078947 | 115 | 0.572218 | 179 | 1,447 | 4.441341 | 0.536313 | 0.061635 | 0.075472 | 0.090566 | 0.072956 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037639 | 0.192122 | 1,447 | 37 | 116 | 39.108108 | 0.642429 | 0.257084 | 0 | 0 | 0 | 0 | 0.177154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
b606c6f7d46c35659ab485c2ddd396a75dda115b | 831 | py | Python | reqlog/__main__.py | JFF-Bohdan/reqlog | a7ba7b6e12609d736b3cd8cd8bc2913d511848ee | [
"MIT"
] | null | null | null | reqlog/__main__.py | JFF-Bohdan/reqlog | a7ba7b6e12609d736b3cd8cd8bc2913d511848ee | [
"MIT"
] | null | null | null | reqlog/__main__.py | JFF-Bohdan/reqlog | a7ba7b6e12609d736b3cd8cd8bc2913d511848ee | [
"MIT"
] | null | null | null | import os
import sys
import bottle
base_module_dir = os.path.dirname(sys.modules[__name__].__file__)
try:
import reqlog # noqa: F401 # need to check import possibility
except ImportError:
path = base_module_dir
path = os.path.join(path, "..")
sys.path.insert(0, path)
import reqlog... | 25.96875 | 67 | 0.690734 | 108 | 831 | 5.12963 | 0.472222 | 0.036101 | 0.046931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.186522 | 831 | 31 | 68 | 26.806452 | 0.813609 | 0.113117 | 0 | 0.086957 | 0 | 0 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.304348 | 0 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
b6086a825ed85a12a4788f76ef961e39f102218a | 43,116 | py | Python | djangobbs/uploads/exif.py | JuanbingTeam/djangobbs | 2d52d83b80758e153b0604e71fb0cef4e6528275 | [
"Apache-2.0"
] | null | null | null | djangobbs/uploads/exif.py | JuanbingTeam/djangobbs | 2d52d83b80758e153b0604e71fb0cef4e6528275 | [
"Apache-2.0"
] | null | null | null | djangobbs/uploads/exif.py | JuanbingTeam/djangobbs | 2d52d83b80758e153b0604e71fb0cef4e6528275 | [
"Apache-2.0"
] | null | null | null | # Library to extract EXIF information in digital camera image files
#
# To use this library call with:
# f=open(path_name, 'rb')
# tags=EXIF.process_file(f)
# tags will now be a dictionary mapping names of EXIF tags to their
# values in the file named by path_name. You can process the tags
# as you wish. ... | 36.080335 | 86 | 0.505682 | 4,627 | 43,116 | 4.657445 | 0.259996 | 0.007935 | 0.003341 | 0.001949 | 0.120046 | 0.094524 | 0.05768 | 0.04 | 0.038701 | 0.025522 | 0 | 0.073047 | 0.371649 | 43,116 | 1,194 | 87 | 36.110553 | 0.72239 | 0.228685 | 0 | 0.165217 | 0 | 0 | 0.219499 | 0.021303 | 0 | 0 | 0.044742 | 0 | 0 | 0 | null | null | 0 | 0.001087 | null | null | 0.03587 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b6143b3550f49956ddea8c4bfd01709e885c15e6 | 703 | py | Python | CodesComplete/Alura/DesignPatterns/calculador_de_impostos.py | vinimmelo/python | ef1f4e0550773592d3b0a88a3213de2f522870a3 | [
"MIT"
] | null | null | null | CodesComplete/Alura/DesignPatterns/calculador_de_impostos.py | vinimmelo/python | ef1f4e0550773592d3b0a88a3213de2f522870a3 | [
"MIT"
] | null | null | null | CodesComplete/Alura/DesignPatterns/calculador_de_impostos.py | vinimmelo/python | ef1f4e0550773592d3b0a88a3213de2f522870a3 | [
"MIT"
] | 1 | 2020-03-03T22:34:13.000Z | 2020-03-03T22:34:13.000Z | class Calculador_de_impostos:
def realiza_calculo(self, orcamento, imposto):
imposto_calculado = imposto.calcula(orcamento)
print(imposto_calculado)
if __name__ == '__main__':
from orcamento import Orcamento, Item
from impostos import ISS, ICMS, ICPP, IKCV
orcamento = Orcamento()
... | 30.565217 | 67 | 0.721195 | 86 | 703 | 5.593023 | 0.360465 | 0.099792 | 0.2079 | 0.155925 | 0.359667 | 0.178794 | 0 | 0 | 0 | 0 | 0 | 0.0189 | 0.172119 | 703 | 22 | 68 | 31.954545 | 0.80756 | 0 | 0 | 0 | 0 | 0 | 0.066856 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 0.1875 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
373624a9b643c4143bff91e625ea72076589eebb | 3,580 | py | Python | populate/populate.py | vascoalramos/roomie | 031aef815af910b259da0fef7cca5bec02459006 | [
"MIT"
] | null | null | null | populate/populate.py | vascoalramos/roomie | 031aef815af910b259da0fef7cca5bec02459006 | [
"MIT"
] | null | null | null | populate/populate.py | vascoalramos/roomie | 031aef815af910b259da0fef7cca5bec02459006 | [
"MIT"
] | 2 | 2021-06-16T07:12:35.000Z | 2021-06-16T22:47:46.000Z | from faker import Faker
import os, random, requests, json
fake = Faker()
BASE_URL = "http://localhost:8083/api"
cities = [
"Braga",
"Viseu",
"Porto",
"Lisboa",
"Guimarães",
"Leiria",
"Coimbra",
"Santarém",
"Guarda",
"Aveiro",
"Faro",
"Portimão",
"Beja",
"Évora... | 25.755396 | 86 | 0.548603 | 378 | 3,580 | 5.103175 | 0.359788 | 0.018144 | 0.033696 | 0.036288 | 0.42198 | 0.358735 | 0.277864 | 0.277864 | 0.233281 | 0.233281 | 0 | 0.039418 | 0.270112 | 3,580 | 138 | 87 | 25.942029 | 0.698814 | 0 | 0 | 0.301724 | 0 | 0 | 0.218994 | 0.012291 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043103 | false | 0.051724 | 0.017241 | 0 | 0.094828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
373f83cec206a62336b452fd4c464d8bd69932f0 | 2,518 | py | Python | quex/engine/state_machine/algebra/TESTS/additional_laws/TEST/complement-relative.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | quex/engine/state_machine/algebra/TESTS/additional_laws/TEST/complement-relative.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | quex/engine/state_machine/algebra/TESTS/additional_laws/TEST/complement-relative.py | smmckay/quex-mirror | 7d75ed560e9f3a591935e59243188676eecb112a | [
"MIT"
] | null | null | null | import os
import sys
sys.path.insert(0, os.environ["QUEX_PATH"])
from quex.engine.state_machine.core import DFA
from quex.engine.state_machine.algebra.TESTS.helper import test2, test1, test3, union, \
intersection, \
... | 36.492754 | 96 | 0.554011 | 309 | 2,518 | 4.407767 | 0.200647 | 0.133627 | 0.15859 | 0.035242 | 0.340675 | 0.175477 | 0.076358 | 0.076358 | 0.076358 | 0.076358 | 0 | 0.011173 | 0.289118 | 2,518 | 68 | 97 | 37.029412 | 0.749721 | 0 | 0 | 0.109091 | 0 | 0 | 0.0469 | 0 | 0 | 0 | 0 | 0 | 0.236364 | 0 | null | null | 0 | 0.072727 | null | null | 0.072727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
374c7d9cbe16ddf4267d0363ddef0fd64684f962 | 5,451 | py | Python | Fund/main.py | livi2000/FundSpider | c79407241fe189b61afc54dd2e5b73c906aae0b5 | [
"MIT"
] | null | null | null | Fund/main.py | livi2000/FundSpider | c79407241fe189b61afc54dd2e5b73c906aae0b5 | [
"MIT"
] | null | null | null | Fund/main.py | livi2000/FundSpider | c79407241fe189b61afc54dd2e5b73c906aae0b5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from url_manager import *
from downloader import *
from parser import *
from collector import *
from url_manager import FundURLIndex
class FundMain(object):
def __init__(self):
self.url_manager = FundURLManager()
self.html_downloader = FundDownloader()
self.html_pas... | 42.255814 | 183 | 0.571455 | 580 | 5,451 | 5.237931 | 0.305172 | 0.052666 | 0.046083 | 0.05135 | 0.157999 | 0.115207 | 0.026991 | 0.026991 | 0.026991 | 0.026991 | 0 | 0.031098 | 0.321592 | 5,451 | 128 | 184 | 42.585938 | 0.790427 | 0.332233 | 0 | 0.098361 | 0 | 0 | 0.049414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081967 | null | null | 0.114754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37581aba7700b786b80fdf0d929cb3132078bc45 | 3,563 | py | Python | test/unit/report/test_table.py | colibri-coruscans/pyGSTi | da54f4abf668a28476030528f81afa46a1fbba33 | [
"Apache-2.0"
] | 73 | 2016-01-28T05:02:05.000Z | 2022-03-30T07:46:33.000Z | test/unit/report/test_table.py | colibri-coruscans/pyGSTi | da54f4abf668a28476030528f81afa46a1fbba33 | [
"Apache-2.0"
] | 113 | 2016-02-25T15:32:18.000Z | 2022-03-31T13:18:13.000Z | test/unit/report/test_table.py | colibri-coruscans/pyGSTi | da54f4abf668a28476030528f81afa46a1fbba33 | [
"Apache-2.0"
] | 41 | 2016-03-15T19:32:07.000Z | 2022-02-16T10:22:05.000Z | from pygsti.report.table import ReportTable
from ..util import BaseCase
class TableInstanceTester(BaseCase):
custom_headings = {
'html': 'test',
'python': 'test',
'latex': 'test'
}
def setUp(self):
self.table = ReportTable(self.custom_headings, ['Normal'] * 4) # Four form... | 35.989899 | 112 | 0.63963 | 446 | 3,563 | 4.991031 | 0.215247 | 0.165768 | 0.089847 | 0.04717 | 0.519766 | 0.504492 | 0.408805 | 0.369272 | 0.369272 | 0.289308 | 0 | 0.015734 | 0.23295 | 3,563 | 98 | 113 | 36.357143 | 0.798756 | 0.104687 | 0 | 0.291667 | 0 | 0 | 0.048189 | 0 | 0 | 0 | 0 | 0.010204 | 0.277778 | 1 | 0.152778 | false | 0 | 0.027778 | 0 | 0.236111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3758975e21f34ce7477e14ad7bcebc66b331327c | 364 | py | Python | pyFunc/pyFunc_12.py | pemtash/pyrevision2022 | c1a9510729b44f61575f406865eb823cb7cabd63 | [
"Apache-2.0"
] | null | null | null | pyFunc/pyFunc_12.py | pemtash/pyrevision2022 | c1a9510729b44f61575f406865eb823cb7cabd63 | [
"Apache-2.0"
] | null | null | null | pyFunc/pyFunc_12.py | pemtash/pyrevision2022 | c1a9510729b44f61575f406865eb823cb7cabd63 | [
"Apache-2.0"
] | null | null | null | def namedArgumentFunction(a, b, c):
print("the values are a: {}, b: {}, c: {}".format(a,b,c))
namedArgumentFunction(100, 200, 300) # positional arguments
namedArgumentFunction(c=3, a=1, b=2) # named arguments
#namedArgumentFunction(181, a=102, b=103) # mix of position + name error
namedArgumentFunction(101... | 45.5 | 73 | 0.692308 | 53 | 364 | 4.754717 | 0.54717 | 0.02381 | 0.035714 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09772 | 0.156593 | 364 | 8 | 74 | 45.5 | 0.723127 | 0.365385 | 0 | 0 | 0 | 0 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37598780f2fe29fd5a5224fb42181e382bdf6a7e | 1,435 | py | Python | views.py | ezl/hnofficehours | 3729eca064998bd2d0a9ba1b4fe7e56ccc57324b | [
"MIT"
] | 2 | 2015-11-05T13:47:44.000Z | 2020-07-20T19:57:45.000Z | views.py | ezl/hnofficehours | 3729eca064998bd2d0a9ba1b4fe7e56ccc57324b | [
"MIT"
] | null | null | null | views.py | ezl/hnofficehours | 3729eca064998bd2d0a9ba1b4fe7e56ccc57324b | [
"MIT"
] | null | null | null | from django.contrib.auth.models import User
from datetime import datetime, timedelta
from django.core.urlresolvers import reverse
from django.shortcuts import render_to_response, get_object_or_404
from django.http import HttpResponseRedirect
from django.template import RequestContext
from django.views.generic.simple im... | 44.84375 | 79 | 0.772822 | 192 | 1,435 | 5.53125 | 0.401042 | 0.09322 | 0.045198 | 0.037665 | 0.210923 | 0.107345 | 0.107345 | 0.107345 | 0.107345 | 0.107345 | 0 | 0.006541 | 0.147735 | 1,435 | 31 | 80 | 46.290323 | 0.861815 | 0.056446 | 0 | 0 | 0 | 0 | 0.014804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.346154 | 0.038462 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
3759a78356966487f78b8550100b9d77dd7fd966 | 712 | py | Python | declarative/properties/__init__.py | jrollins/python-declarative | ac3ba9bf56611adefb4b2673e50bd8067c024e6b | [
"Apache-2.0"
] | 6 | 2018-02-28T18:32:06.000Z | 2022-03-20T13:04:05.000Z | declarative/properties/__init__.py | jrollins/python-declarative | ac3ba9bf56611adefb4b2673e50bd8067c024e6b | [
"Apache-2.0"
] | 2 | 2021-02-22T17:18:59.000Z | 2021-03-03T16:39:22.000Z | declarative/properties/__init__.py | jrollins/python-declarative | ac3ba9bf56611adefb4b2673e50bd8067c024e6b | [
"Apache-2.0"
] | 1 | 2021-02-09T18:58:53.000Z | 2021-02-09T18:58:53.000Z | # -*- coding: utf-8 -*-
"""
"""
from __future__ import (
division,
print_function,
absolute_import,
)
from .bases import (
PropertyTransforming,
HasDeclaritiveAttributes,
InnerException,
PropertyAttributeError,
)
from .memoized import (
memoized_class_property,
mproperty,
dprop... | 16.181818 | 43 | 0.696629 | 70 | 712 | 6.757143 | 0.485714 | 0.07611 | 0.063425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001808 | 0.223315 | 712 | 43 | 44 | 16.55814 | 0.853526 | 0.088483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.205882 | 0 | 0.205882 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
375c83f1d331a617d630736291806350c6d98cad | 10,993 | py | Python | k8skiller.py | ech0png/k8skiller | 1f066a0c02acf2b71bb7805c18d08899ba7ac25f | [
"Apache-2.0"
] | null | null | null | k8skiller.py | ech0png/k8skiller | 1f066a0c02acf2b71bb7805c18d08899ba7ac25f | [
"Apache-2.0"
] | null | null | null | k8skiller.py | ech0png/k8skiller | 1f066a0c02acf2b71bb7805c18d08899ba7ac25f | [
"Apache-2.0"
] | null | null | null | import urllib3
from art import *
from terminaltables import AsciiTable
from vulnsVerify import *
from podTable import *
from listarPods import *
from menu import *
from shells import *
from podDeploy import *
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
tprint("K8SKILLER")
print("1 - Search ... | 38.844523 | 189 | 0.395888 | 916 | 10,993 | 4.68559 | 0.165939 | 0.058248 | 0.027959 | 0.037279 | 0.551491 | 0.523299 | 0.42987 | 0.360438 | 0.309646 | 0.243709 | 0 | 0.009028 | 0.405531 | 10,993 | 283 | 190 | 38.844523 | 0.647743 | 0.098699 | 0 | 0.661972 | 0 | 0 | 0.239348 | 0.126303 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.051643 | 0.042254 | 0 | 0.042254 | 0.29108 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
375d646ba6e1a05a1beb8bd9fc2faa1d4c02305c | 5,216 | py | Python | tests/archive/test_archive_value.py | heikomuller/histore | d600052514a1c5f672137f76a6e1388184b17cd4 | [
"BSD-3-Clause"
] | 2 | 2020-09-05T23:27:41.000Z | 2021-08-08T20:46:54.000Z | tests/archive/test_archive_value.py | heikomuller/histore | d600052514a1c5f672137f76a6e1388184b17cd4 | [
"BSD-3-Clause"
] | 22 | 2020-05-22T01:38:08.000Z | 2021-04-28T12:41:46.000Z | tests/archive/test_archive_value.py | heikomuller/histore | d600052514a1c5f672137f76a6e1388184b17cd4 | [
"BSD-3-Clause"
] | 1 | 2021-08-08T20:46:58.000Z | 2021-08-08T20:46:58.000Z | # This file is part of the History Store (histore).
#
# Copyright (C) 2018-2021 New York University.
#
# The History Store (histore) is released under the Revised BSD License. See
# file LICENSE for full license details.
"""Unit test for archived cell values."""
import pytest
from histore.archive.value import MultiV... | 35.243243 | 79 | 0.665836 | 680 | 5,216 | 5.026471 | 0.129412 | 0.067291 | 0.072264 | 0.088941 | 0.700995 | 0.587185 | 0.576653 | 0.545933 | 0.418666 | 0.407548 | 0 | 0.032329 | 0.211273 | 5,216 | 147 | 80 | 35.482993 | 0.798493 | 0.105828 | 0 | 0.520661 | 0 | 0 | 0.010158 | 0 | 0 | 0 | 0 | 0 | 0.429752 | 1 | 0.041322 | false | 0 | 0.024793 | 0 | 0.066116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
375e217f752444584219ab50db3fdf6f47a97b25 | 1,275 | py | Python | jts/backend/event/migrations/0002_auto_20191009_1119.py | goupaz/babylon | 4e638d02705469061e563fec349676d8faa9f648 | [
"MIT"
] | 1 | 2019-08-08T09:03:17.000Z | 2019-08-08T09:03:17.000Z | backend/event/migrations/0002_auto_20191009_1119.py | goupaz/website | ce1bc8b6c52ee0815a7b98842ec3bde0c20e0add | [
"Apache-2.0"
] | 2 | 2020-10-09T19:16:09.000Z | 2020-10-10T20:40:41.000Z | jts/backend/event/migrations/0002_auto_20191009_1119.py | goupaz/babylon-hackathon | 4e638d02705469061e563fec349676d8faa9f648 | [
"MIT"
] | 1 | 2019-07-21T01:42:21.000Z | 2019-07-21T01:42:21.000Z | # Generated by Django 2.2 on 2019-10-09 18:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('event', '0001_initial'),
migrations.swappable_dependency(settings... | 31.875 | 141 | 0.62902 | 140 | 1,275 | 5.564286 | 0.364286 | 0.051348 | 0.071887 | 0.112965 | 0.3543 | 0.3543 | 0.269576 | 0.269576 | 0.269576 | 0.269576 | 0 | 0.023085 | 0.252549 | 1,275 | 39 | 142 | 32.692308 | 0.794334 | 0.033725 | 0 | 0.34375 | 1 | 0 | 0.112195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
376519ec24ba2ad35ffc9686805878b26230c5a8 | 897 | py | Python | ansiblemetrics/playbook/num_included_vars.py | radon-h2020/AnsibleMetrics | 8a8e27d9b54fc1578d00526c8663184a2e686cb2 | [
"Apache-2.0"
] | 1 | 2020-04-24T16:09:14.000Z | 2020-04-24T16:09:14.000Z | ansiblemetrics/playbook/num_included_vars.py | radon-h2020/AnsibleMetrics | 8a8e27d9b54fc1578d00526c8663184a2e686cb2 | [
"Apache-2.0"
] | null | null | null | ansiblemetrics/playbook/num_included_vars.py | radon-h2020/AnsibleMetrics | 8a8e27d9b54fc1578d00526c8663184a2e686cb2 | [
"Apache-2.0"
] | null | null | null | import ansiblemetrics.utils as utils
from ansiblemetrics.ansible_metric import AnsibleMetric
class NumIncludedVars(AnsibleMetric):
""" This class measures the number of included variables in a playbook.
"""
def count(self):
"""Return the number of included variables.
Example
----... | 24.243243 | 80 | 0.57971 | 89 | 897 | 5.775281 | 0.550562 | 0.046693 | 0.093385 | 0.145914 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00335 | 0.334448 | 897 | 36 | 81 | 24.916667 | 0.857621 | 0.510591 | 0 | 0 | 0 | 0 | 0.040404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
376705b0b8ad10c2fc0878dcf3a019ac3ddc7559 | 1,721 | py | Python | predict.py | smacawi/tweet-classifier | 948f7c4123e37f07071482e528d411203166e5f7 | [
"MIT"
] | null | null | null | predict.py | smacawi/tweet-classifier | 948f7c4123e37f07071482e528d411203166e5f7 | [
"MIT"
] | 10 | 2020-01-24T23:03:28.000Z | 2021-04-26T12:01:09.000Z | predict.py | smacawi/tweet-classifier | 948f7c4123e37f07071482e528d411203166e5f7 | [
"MIT"
] | 1 | 2019-12-23T23:46:47.000Z | 2019-12-23T23:46:47.000Z | from allennlp.data.vocabulary import Vocabulary
from content_analyzer.models.rnn_classifier import RnnClassifier
from allennlp.data.tokenizers.word_tokenizer import WordTokenizer
from content_analyzer.data.dataset_readers.twitter import TwitterNLPDatasetReader
from allennlp.data.token_indexers import PretrainedBertInde... | 40.97619 | 127 | 0.818129 | 204 | 1,721 | 6.754902 | 0.480392 | 0.078374 | 0.034833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008317 | 0.091807 | 1,721 | 42 | 128 | 40.97619 | 0.873321 | 0 | 0 | 0 | 0 | 0 | 0.156794 | 0.028455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.342105 | 0 | 0.342105 | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
378539d2d8f38f193773d342677f939cb42a4203 | 746 | py | Python | mdn_ik/test.py | uenian33/Franka_Panda_IK_Sensor | c9956fb7a7f1d570104296af72aa2a600085ae6e | [
"MIT"
] | null | null | null | mdn_ik/test.py | uenian33/Franka_Panda_IK_Sensor | c9956fb7a7f1d570104296af72aa2a600085ae6e | [
"MIT"
] | null | null | null | mdn_ik/test.py | uenian33/Franka_Panda_IK_Sensor | c9956fb7a7f1d570104296af72aa2a600085ae6e | [
"MIT"
] | 1 | 2021-12-07T11:47:03.000Z | 2021-12-07T11:47:03.000Z | import torch
a = torch.rand(3, 4)
#a = a.unsqueeze(0)
#print(a.reshape(3,4,1))
b = torch.rand(3, 4)
#b = b.unsqueeze(0)
print(b)
c = torch.stack([a, b, b, b, b], dim=1)
c = torch.rand(3, 20)
print(c)
c = c.reshape(3, 5, 4)
print(c.shape)
d = torch.rand(3, 5)
d = d.reshape(3,5,1)
print(d)
e = c*d
print(c*d)
print(t... | 15.87234 | 48 | 0.601877 | 169 | 746 | 2.656805 | 0.153846 | 0.03118 | 0.111359 | 0.073497 | 0.394209 | 0.340757 | 0.2049 | 0.2049 | 0 | 0 | 0 | 0.065421 | 0.13941 | 746 | 47 | 49 | 15.87234 | 0.633956 | 0.140751 | 0 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.045455 | 0.454545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
378ca6c4004eb7f05493e60723c6ea0ea4a59fbb | 5,136 | py | Python | server/src/sdistance.py | bepnye/brat | 28acfb2d3cce20bd4d4ff1a67690e271675841f2 | [
"CC-BY-3.0"
] | 20 | 2015-01-26T01:39:44.000Z | 2020-05-30T19:04:14.000Z | server/src/sdistance.py | bepnye/brat | 28acfb2d3cce20bd4d4ff1a67690e271675841f2 | [
"CC-BY-3.0"
] | 7 | 2015-04-11T12:57:42.000Z | 2016-04-08T13:43:44.000Z | server/src/sdistance.py | bepnye/brat | 28acfb2d3cce20bd4d4ff1a67690e271675841f2 | [
"CC-BY-3.0"
] | 13 | 2015-01-26T01:39:45.000Z | 2022-03-09T16:45:09.000Z | #!/usr/bin/env python
'''
Various string distance measures.
Author: Pontus Stenetorp <pontus stenetorp se>
Version: 2011-08-09
'''
from string import digits, lowercase
from sys import maxint
DIGITS = set(digits)
LOWERCASE = set(lowercase)
TSURUOKA_2004_INS_CHEAP = set((' ', '-', ))
TSURUOKA_2004_DEL_CHEAP... | 34.013245 | 154 | 0.573988 | 784 | 5,136 | 3.457908 | 0.160714 | 0.115087 | 0.099594 | 0.036518 | 0.523792 | 0.46588 | 0.447436 | 0.447436 | 0.424567 | 0.395426 | 0 | 0.033127 | 0.306464 | 5,136 | 150 | 155 | 34.24 | 0.727962 | 0.141355 | 0 | 0.530612 | 0 | 0 | 0.030658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020408 | null | null | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
378cc1e59dd6dd0b75d637ce5507619c66eb1093 | 2,431 | py | Python | expressmanage/customers/views.py | abbas133/expressmanage-free | cd4b5a37fa012781c70ade933885b1c63bc7f2df | [
"MIT"
] | null | null | null | expressmanage/customers/views.py | abbas133/expressmanage-free | cd4b5a37fa012781c70ade933885b1c63bc7f2df | [
"MIT"
] | null | null | null | expressmanage/customers/views.py | abbas133/expressmanage-free | cd4b5a37fa012781c70ade933885b1c63bc7f2df | [
"MIT"
] | null | null | null | from django.views import generic
from django.urls import reverse_lazy
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from .forms import CustomerForm
from .models import Customer
from .helper import CustomerSummary
class Customer_IndexView(LoginRequiredMixin, generic.ListView):
... | 33.763889 | 91 | 0.739202 | 254 | 2,431 | 6.830709 | 0.279528 | 0.040346 | 0.060519 | 0.064553 | 0.34121 | 0.34121 | 0.189049 | 0.189049 | 0.189049 | 0.189049 | 0 | 0.000502 | 0.180584 | 2,431 | 72 | 92 | 33.763889 | 0.870482 | 0 | 0 | 0.307692 | 0 | 0 | 0.112253 | 0.08676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.115385 | 0.057692 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
378e8237793b5c3217bc562c15e5d1954a382294 | 835 | py | Python | tests/test_image_upload.py | ephes/django-cast | 34b6aab98f7e9a750116ec2949e9cda4f2dcb127 | [
"BSD-3-Clause"
] | 11 | 2018-12-23T15:58:35.000Z | 2021-10-04T12:14:46.000Z | tests/test_image_upload.py | ephes/django-cast | 34b6aab98f7e9a750116ec2949e9cda4f2dcb127 | [
"BSD-3-Clause"
] | 9 | 2018-11-18T12:12:29.000Z | 2022-02-27T09:51:36.000Z | tests/test_image_upload.py | ephes/django-cast | 34b6aab98f7e9a750116ec2949e9cda4f2dcb127 | [
"BSD-3-Clause"
] | 12 | 2018-11-17T15:13:09.000Z | 2020-05-02T00:10:07.000Z | import pytest
from django.urls import reverse
class TestImageUpload:
@pytest.mark.django_db
def test_upload_image_not_authenticated(self, client, small_jpeg_io):
upload_url = reverse("cast:api:upload_image")
small_jpeg_io.seek(0)
r = client.post(upload_url, {"original": small_jpeg_io... | 29.821429 | 75 | 0.670659 | 113 | 835 | 4.690265 | 0.39823 | 0.101887 | 0.124528 | 0.067925 | 0.471698 | 0.471698 | 0.471698 | 0.471698 | 0.335849 | 0.335849 | 0 | 0.015456 | 0.22515 | 835 | 27 | 76 | 30.925926 | 0.803709 | 0.035928 | 0 | 0.470588 | 0 | 0 | 0.078652 | 0.052434 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.117647 | false | 0.058824 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3792efaebf3dc5a8b5c922f66b2df8883d7ff1ec | 1,055 | py | Python | Sorting Algorithms/quick_sort.py | Divyamop/Python-DSA | 43cc8ffddd632ba07ef91ac4d4daeede949341c6 | [
"MIT"
] | 13 | 2021-10-02T09:25:07.000Z | 2022-01-30T17:49:52.000Z | Sorting Algorithms/quick_sort.py | Divyamop/Python-DSA | 43cc8ffddd632ba07ef91ac4d4daeede949341c6 | [
"MIT"
] | 14 | 2021-10-01T12:58:14.000Z | 2021-10-05T15:42:52.000Z | Sorting Algorithms/quick_sort.py | Divyamop/Python-DSA | 43cc8ffddd632ba07ef91ac4d4daeede949341c6 | [
"MIT"
] | 32 | 2021-10-01T12:40:00.000Z | 2021-10-14T05:09:14.000Z | """
Quick sort is a divide and conquer algorithm
Steps:
1. We first select an element randomly which we call pivot element. We can choose any element as pivot element.
But for consistency and performce purposes we select middle element of array as the pivot element.
2. Then we move all the elments lower than pivot t... | 25.119048 | 111 | 0.641706 | 179 | 1,055 | 3.782123 | 0.396648 | 0.053176 | 0.062038 | 0.041359 | 0.344165 | 0.317578 | 0.317578 | 0.317578 | 0.317578 | 0.317578 | 0 | 0.01761 | 0.246446 | 1,055 | 41 | 112 | 25.731707 | 0.833962 | 0 | 0 | 0.166667 | 0 | 0 | 0.015152 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37964fe5ef397296275522b31af654802f9c7a91 | 3,337 | py | Python | perfkitbenchmarker/providers/ibmcloud/flags.py | Nowasky/PerfKitBenchmarker | cfa88e269eb373780910896ed4bdc8db09469753 | [
"Apache-2.0"
] | 3 | 2018-04-28T13:06:14.000Z | 2020-06-09T02:39:44.000Z | perfkitbenchmarker/providers/ibmcloud/flags.py | Nowasky/PerfKitBenchmarker | cfa88e269eb373780910896ed4bdc8db09469753 | [
"Apache-2.0"
] | 1 | 2018-03-15T21:01:27.000Z | 2018-03-15T21:01:27.000Z | perfkitbenchmarker/providers/ibmcloud/flags.py | Nowasky/PerfKitBenchmarker | cfa88e269eb373780910896ed4bdc8db09469753 | [
"Apache-2.0"
] | 6 | 2019-06-11T18:59:57.000Z | 2021-03-02T19:14:42.000Z | # Copyright 2020 PerfKitBenchmarker 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... | 35.126316 | 75 | 0.661073 | 391 | 3,337 | 5.450128 | 0.414322 | 0.134209 | 0.09573 | 0.140779 | 0.179259 | 0.077898 | 0.044111 | 0.044111 | 0 | 0 | 0 | 0.011976 | 0.249326 | 3,337 | 94 | 76 | 35.5 | 0.838723 | 0.195984 | 0 | 0 | 0 | 0 | 0.444653 | 0.128705 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.018868 | 0 | 0.018868 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37a716de9ac1554b60a3ff8e3c6b5f25ee3aacd8 | 897 | py | Python | app.py | elben10/corona-dashboard | ce3be765ee560b9cfec364f3dca32cc804776b8a | [
"MIT"
] | null | null | null | app.py | elben10/corona-dashboard | ce3be765ee560b9cfec364f3dca32cc804776b8a | [
"MIT"
] | 1 | 2021-05-11T07:29:24.000Z | 2021-05-11T07:29:24.000Z | app.py | elben10/corona-dashboard | ce3be765ee560b9cfec364f3dca32cc804776b8a | [
"MIT"
] | null | null | null | import dash
from flask_caching import Cache
EXTERNAL_SCRIPTS = [
"https://code.jquery.com/jquery-3.4.1.slim.min.js",
"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js",
"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js",
]
EXTERNAL_STYLESHEETS = [
"https://font... | 29.9 | 116 | 0.721293 | 133 | 897 | 4.75188 | 0.556391 | 0.071203 | 0.031646 | 0.091772 | 0.129747 | 0.129747 | 0.129747 | 0.129747 | 0 | 0 | 0 | 0.0801 | 0.109253 | 897 | 29 | 117 | 30.931034 | 0.710889 | 0 | 0 | 0 | 0 | 0.25 | 0.541295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37aaacec4e931cb07cb16c1a2609ce1ddba1e5f7 | 1,158 | py | Python | tests/modules/idn/test_idn_update.py | bladeroot/heppy | b597916ff80890ca057b17cdd156e90bbbd9a87a | [
"BSD-3-Clause"
] | 20 | 2016-06-02T20:29:29.000Z | 2022-01-31T07:47:02.000Z | tests/modules/idn/test_idn_update.py | bladeroot/heppy | b597916ff80890ca057b17cdd156e90bbbd9a87a | [
"BSD-3-Clause"
] | 1 | 2018-10-09T16:09:24.000Z | 2018-10-10T08:17:42.000Z | tests/modules/idn/test_idn_update.py | bladeroot/heppy | b597916ff80890ca057b17cdd156e90bbbd9a87a | [
"BSD-3-Clause"
] | 7 | 2018-04-11T16:05:06.000Z | 2020-01-28T16:30:40.000Z | #!/usr/bin/env python
import unittest
from ..TestCase import TestCase
class TestIdnUpdate(TestCase):
def test_render_idn_update_request(self):
self.assertRequest('''<?xml version="1.0" ?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<domain:update xmlns:domain=... | 25.733333 | 76 | 0.474093 | 115 | 1,158 | 4.669565 | 0.4 | 0.067039 | 0.061453 | 0.05959 | 0.067039 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017663 | 0.364421 | 1,158 | 44 | 77 | 26.318182 | 0.711957 | 0.017271 | 0 | 0 | 0 | 0.054054 | 0.612137 | 0.19613 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.027027 | false | 0 | 0.054054 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
37b95409e84e525a09791b57d6c976475b723763 | 1,810 | py | Python | tests/test_player.py | ssichynskyi/lotti-karotti-calc | 44eb39ce4c4bc8ddf4049d72268597c6d7411f84 | [
"Apache-2.0"
] | null | null | null | tests/test_player.py | ssichynskyi/lotti-karotti-calc | 44eb39ce4c4bc8ddf4049d72268597c6d7411f84 | [
"Apache-2.0"
] | null | null | null | tests/test_player.py | ssichynskyi/lotti-karotti-calc | 44eb39ce4c4bc8ddf4049d72268597c6d7411f84 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from logic.player import Player
class TestPlayer(unittest.TestCase):
"""
Collection of unittests for Player class
"""
def setUp(self):
pass
def test_player_init(self):
player = Player(player_id=1, rabbits=2, active_rabbits=1, lost_rabbits=1)... | 42.093023 | 99 | 0.69337 | 244 | 1,810 | 4.959016 | 0.20082 | 0.161157 | 0.119008 | 0.158678 | 0.604132 | 0.573554 | 0.42562 | 0.301653 | 0.238843 | 0.238843 | 0 | 0.02454 | 0.189503 | 1,810 | 42 | 100 | 43.095238 | 0.800273 | 0.034807 | 0 | 0.15625 | 0 | 0 | 0.072213 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.15625 | false | 0.03125 | 0.0625 | 0 | 0.25 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8063dfe36de56cbc689a8b310df3ce5003370b6d | 432 | py | Python | str10.py | ABHISHEKSUBHASHSWAMI/String-Manipulation | e22efdbe76069e0280cc1acdeeabc4b663ac4f36 | [
"MIT"
] | null | null | null | str10.py | ABHISHEKSUBHASHSWAMI/String-Manipulation | e22efdbe76069e0280cc1acdeeabc4b663ac4f36 | [
"MIT"
] | null | null | null | str10.py | ABHISHEKSUBHASHSWAMI/String-Manipulation | e22efdbe76069e0280cc1acdeeabc4b663ac4f36 | [
"MIT"
] | null | null | null | #Program to change a given string to a new string where the first and last chars have been exchanged.
string=str(input("Enter a string :"))
first=string[0] #store first index element of string in variable
last=string[-1] #store last index element of string in var... | 43.2 | 101 | 0.641204 | 63 | 432 | 4.396825 | 0.492063 | 0.086643 | 0.101083 | 0.144404 | 0.216607 | 0.216607 | 0 | 0 | 0 | 0 | 0 | 0.013072 | 0.291667 | 432 | 9 | 102 | 48 | 0.892157 | 0.555556 | 0 | 0 | 0 | 0 | 0.085562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8063fd86f68ebf320baf9273c420614c93e98bab | 990 | py | Python | setup.py | MailboxValidator/mailboxvalidator-python | 740d64a4cd6a32bf7d65903c0d30164a8cfafcde | [
"MIT"
] | 9 | 2018-07-09T06:49:05.000Z | 2022-03-15T07:40:41.000Z | setup.py | MailboxValidator/mailboxvalidator-python | 740d64a4cd6a32bf7d65903c0d30164a8cfafcde | [
"MIT"
] | null | null | null | setup.py | MailboxValidator/mailboxvalidator-python | 740d64a4cd6a32bf7d65903c0d30164a8cfafcde | [
"MIT"
] | 1 | 2021-05-26T12:43:16.000Z | 2021-05-26T12:43:16.000Z | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="MailboxValidator",
version="1.2.0",
author="MailboxValidator.com",
author_email="support@mailboxvalidator.com",
description="Email verification module for Python using MailboxValidator API. It val... | 39.6 | 220 | 0.729293 | 119 | 990 | 5.991597 | 0.747899 | 0.084151 | 0.053296 | 0.084151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009423 | 0.142424 | 990 | 25 | 221 | 39.6 | 0.830389 | 0 | 0 | 0 | 0 | 0.043478 | 0.628749 | 0.028956 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
806fcfc95b660907356bd62342b9bc9e14255a07 | 237 | py | Python | pySpectralFPK/__init__.py | alanmatzumiya/Paper | d65ff68475eb72324594701d06754d0d005f6a86 | [
"MIT"
] | 2 | 2019-03-19T23:55:45.000Z | 2020-06-03T19:10:51.000Z | pySpectralFPK/__init__.py | alanmatzumiya/Paper | d65ff68475eb72324594701d06754d0d005f6a86 | [
"MIT"
] | null | null | null | pySpectralFPK/__init__.py | alanmatzumiya/Paper | d65ff68475eb72324594701d06754d0d005f6a86 | [
"MIT"
] | null | null | null | """
Solvers define how a pde is solved, i.e., advanced in time.
.. autosummary::
.. codeauthor:: Alan Matzumiya <alan.matzumiya@gmail.com>
"""
from typing import List
from .setup_solver import FPK_solver
__all__ = [
"FPK_solver"
] | 18.230769 | 59 | 0.708861 | 33 | 237 | 4.878788 | 0.787879 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164557 | 237 | 13 | 60 | 18.230769 | 0.813131 | 0.565401 | 0 | 0 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
80723d94b3de6b981e622070fc675bae6d441510 | 4,108 | py | Python | bot/Bot.py | Facco98/TwitchBotPy | 27b4fb0f76542db68621b52ada316bf00fbf68d2 | [
"MIT"
] | 1 | 2020-05-14T02:14:10.000Z | 2020-05-14T02:14:10.000Z | bot/Bot.py | Facco98/TwitchBotPy | 27b4fb0f76542db68621b52ada316bf00fbf68d2 | [
"MIT"
] | null | null | null | bot/Bot.py | Facco98/TwitchBotPy | 27b4fb0f76542db68621b52ada316bf00fbf68d2 | [
"MIT"
] | null | null | null | import websocket
from threading import Thread
from bot.Command import Command
import time
class Bot:
def __init__(self, username, password, host):
self.__commands = dict()
self._username = username
self._password = password
self.__host = host
self.__threadStarted = False
... | 29.342857 | 89 | 0.579357 | 432 | 4,108 | 5.219907 | 0.24537 | 0.043902 | 0.022616 | 0.029268 | 0.086918 | 0.061197 | 0.03459 | 0 | 0 | 0 | 0 | 0.002481 | 0.313291 | 4,108 | 139 | 90 | 29.553957 | 0.796881 | 0 | 0 | 0.2 | 0 | 0 | 0.03849 | 0.007065 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0.095238 | 0.038095 | 0.009524 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
807c60f448466d06587af2768eab735c6b00629e | 831 | py | Python | config.example.py | isaacnoboa/balaguer_bot | 1b7d61db7ebfc1b9067e6ac1762b077ed259ecb8 | [
"MIT"
] | null | null | null | config.example.py | isaacnoboa/balaguer_bot | 1b7d61db7ebfc1b9067e6ac1762b077ed259ecb8 | [
"MIT"
] | null | null | null | config.example.py | isaacnoboa/balaguer_bot | 1b7d61db7ebfc1b9067e6ac1762b077ed259ecb8 | [
"MIT"
] | null | null | null | # Make sure to rename this file as "config.py" before running the bot.
verbose=True
api_token='0000000000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
# Enter the user ID and a readable name for each user in your group.
# TODO make balaguer automatically collect user IDs.
# But that's only useful if the bot actuall... | 31.961538 | 108 | 0.701564 | 112 | 831 | 5.178571 | 0.607143 | 0.103448 | 0.144828 | 0.155172 | 0.144828 | 0.144828 | 0.144828 | 0.144828 | 0.144828 | 0 | 0 | 0.157233 | 0.234657 | 831 | 26 | 109 | 31.961538 | 0.754717 | 0.533093 | 0 | 0.428571 | 0 | 0 | 0.27451 | 0.128852 | 0 | 0 | 0 | 0.038462 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
807f9c9ab79882e8cda374e3c06329f34a95d56f | 1,299 | py | Python | src/favorites_crawler/itemloaders.py | RyouMon/FavoritesCrawler | c11750ea4094cd7e4d91a0dd79c9ee21a066c0ee | [
"MIT"
] | 2 | 2022-02-05T04:24:55.000Z | 2022-02-22T23:50:23.000Z | src/favorites_crawler/itemloaders.py | RyouMon/FavoritesCrawler | c11750ea4094cd7e4d91a0dd79c9ee21a066c0ee | [
"MIT"
] | 3 | 2022-02-22T13:35:29.000Z | 2022-02-28T13:29:56.000Z | src/favorites_crawler/itemloaders.py | RyouMon/FavoritesCrawler | c11750ea4094cd7e4d91a0dd79c9ee21a066c0ee | [
"MIT"
] | null | null | null | from itemloaders import ItemLoader
from itemloaders.processors import Join, Compose, MapCompose
from favorites_crawler import items
from favorites_crawler.processors import take_first, identity, get_nhentai_id, original_url_from_nhentai_thumb_url
from favorites_crawler.processors import replace_space_with_under_scope
... | 30.928571 | 114 | 0.810624 | 153 | 1,299 | 6.464052 | 0.320261 | 0.054601 | 0.064712 | 0.084934 | 0.562184 | 0.340748 | 0.24368 | 0.164813 | 0.164813 | 0.113246 | 0 | 0 | 0.138568 | 1,299 | 41 | 115 | 31.682927 | 0.883825 | 0.030023 | 0 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.192308 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
8094ccd0dc06024e1e4323bc6b4fa0cfcef4fd31 | 346 | py | Python | setup.py | smok-serwis/longshot-python | 9671d60d77e12d2cb6bc2530d05f55d4bafa8e66 | [
"MIT"
] | null | null | null | setup.py | smok-serwis/longshot-python | 9671d60d77e12d2cb6bc2530d05f55d4bafa8e66 | [
"MIT"
] | null | null | null | setup.py | smok-serwis/longshot-python | 9671d60d77e12d2cb6bc2530d05f55d4bafa8e66 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(name='longshot',
version='0.1alpha',
description='SMOK client connectivity library',
author='smok-serwis.pl',
author_email='admin@smok.co',
url='https://github.com/smok-serwis/longshot-python',
packages=['longshot', 'long... | 28.833333 | 59 | 0.66763 | 41 | 346 | 5.609756 | 0.756098 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.17341 | 346 | 12 | 60 | 28.833333 | 0.797203 | 0.057803 | 0 | 0 | 0 | 0 | 0.457055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80959fb4e1855167032241c2b29b45d563eacafd | 1,799 | py | Python | users/tests/test_delete_user.py | tgamauf/spritstat | 849526ec8dec46c57194d50ff3b32c16d0cb684a | [
"MIT"
] | 1 | 2022-01-30T10:50:14.000Z | 2022-01-30T10:50:14.000Z | users/tests/test_delete_user.py | tgamauf/spritstat | 849526ec8dec46c57194d50ff3b32c16d0cb684a | [
"MIT"
] | 47 | 2022-02-02T22:07:28.000Z | 2022-03-30T13:53:37.000Z | users/tests/test_delete_user.py | tgamauf/spritstat | 849526ec8dec46c57194d50ff3b32c16d0cb684a | [
"MIT"
] | null | null | null | from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from users.models import CustomUser
class TestDeleteUser(APITestCase):
fixtures = ["user.json"]
url: str
user: CustomUser
@classmethod
def setUpTestData(cls):
cls.url = reverse("... | 33.943396 | 82 | 0.696498 | 236 | 1,799 | 5.135593 | 0.330508 | 0.057756 | 0.079208 | 0.108911 | 0.438119 | 0.438119 | 0.438119 | 0.438119 | 0.438119 | 0.373762 | 0 | 0.012596 | 0.20567 | 1,799 | 52 | 83 | 34.596154 | 0.835549 | 0.04169 | 0 | 0.210526 | 0 | 0 | 0.054619 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 1 | 0.210526 | false | 0.026316 | 0.105263 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8095bb749718d47f183223964eb45c85dd3110bd | 1,323 | py | Python | sphinxcontrib/needs/builder.py | tlovett/sphinxcontrib-needs | 41794403266deb6a4f7ec07bb8297abb0ddc57b1 | [
"MIT"
] | null | null | null | sphinxcontrib/needs/builder.py | tlovett/sphinxcontrib-needs | 41794403266deb6a4f7ec07bb8297abb0ddc57b1 | [
"MIT"
] | null | null | null | sphinxcontrib/needs/builder.py | tlovett/sphinxcontrib-needs | 41794403266deb6a4f7ec07bb8297abb0ddc57b1 | [
"MIT"
] | null | null | null | from sphinx.builders import Builder
from sphinxcontrib.needs.utils import NeedsList
import sphinx
from pkg_resources import parse_version
sphinx_version = sphinx.__version__
if parse_version(sphinx_version) >= parse_version("1.6"):
from sphinx.util import logging
else:
import logging
class NeedsBuilder(Builde... | 24.962264 | 70 | 0.646259 | 162 | 1,323 | 5.074074 | 0.462963 | 0.034063 | 0.072993 | 0.060827 | 0.060827 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003086 | 0.265306 | 1,323 | 52 | 71 | 25.442308 | 0.842593 | 0 | 0 | 0.195122 | 0 | 0 | 0.058957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0.097561 | 0.146341 | 0.04878 | 0.487805 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
809ae1f39dc9d7fac5d194516d317497caa9edc2 | 1,881 | py | Python | tests/model_test.py | jicewarwick/AShareData | 13c78602fe00a5326f421c8a8003f3889492e6dd | [
"MIT"
] | 30 | 2019-09-18T07:26:05.000Z | 2022-03-17T11:15:47.000Z | tests/model_test.py | jicewarwick/Tushare2MySQL | 13c78602fe00a5326f421c8a8003f3889492e6dd | [
"MIT"
] | 2 | 2019-12-11T02:45:58.000Z | 2020-12-21T10:41:43.000Z | tests/model_test.py | jicewarwick/Tushare2MySQL | 13c78602fe00a5326f421c8a8003f3889492e6dd | [
"MIT"
] | 9 | 2019-10-22T09:00:14.000Z | 2022-02-02T02:21:31.000Z | import datetime as dt
import unittest
from AShareData import set_global_config
from AShareData.model import *
class MyTestCase(unittest.TestCase):
def setUp(self) -> None:
set_global_config('config.json')
def test_something(self):
self.assertEqual(True, False)
@staticmethod
def test... | 40.891304 | 98 | 0.641148 | 231 | 1,881 | 4.883117 | 0.233766 | 0.111702 | 0.117021 | 0.099291 | 0.647163 | 0.647163 | 0.647163 | 0.641844 | 0.641844 | 0.641844 | 0 | 0.030238 | 0.261563 | 1,881 | 45 | 99 | 41.8 | 0.781857 | 0 | 0 | 0.378378 | 0 | 0 | 0.016481 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.108108 | false | 0 | 0.108108 | 0 | 0.243243 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
809b18b1d50940a472d99838108c97ff7972ad17 | 1,079 | py | Python | HorribleConky.py | WolfgangAxel/ConkyConfigs | a437fd91761872202f90c0dab36e1c050a017054 | [
"MIT"
] | 1 | 2016-02-12T11:52:10.000Z | 2016-02-12T11:52:10.000Z | HorribleConky.py | WolfgangAxel/ConkyConfigs | a437fd91761872202f90c0dab36e1c050a017054 | [
"MIT"
] | null | null | null | HorribleConky.py | WolfgangAxel/ConkyConfigs | a437fd91761872202f90c0dab36e1c050a017054 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from lxml import html
import requests
"""
Enter HorribleSubs's title for the shows you
watch in quotes followed by a comma, then
hit enter to add another show. When
all of your watched shows are entered, put
the ending bracket.
EX:
MYSHOWS = ["Bananya",
"New Game",
"Kono Bijutsubu ni wa Mondai ga ... | 21.156863 | 72 | 0.658943 | 172 | 1,079 | 4.133721 | 0.55814 | 0.025316 | 0.016878 | 0.030942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021566 | 0.183503 | 1,079 | 50 | 73 | 21.58 | 0.785471 | 0.014829 | 0 | 0.066667 | 0 | 0 | 0.153743 | 0.046791 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80a43ce3d179c95872aebbda4deee5d9f217f5de | 8,035 | py | Python | CAAPR/CAAPR_AstroMagic/PTS/pts/evolve/FunctionSlot.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 7 | 2016-05-20T21:56:39.000Z | 2022-02-07T21:09:48.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/evolve/FunctionSlot.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2019-03-21T16:10:04.000Z | 2019-03-22T17:21:56.000Z | CAAPR/CAAPR_AstroMagic/PTS/pts/evolve/FunctionSlot.py | wdobbels/CAAPR | 50d0b32642a61af614c22f1c6dc3c4a00a1e71a3 | [
"MIT"
] | 1 | 2020-05-19T16:17:17.000Z | 2020-05-19T16:17:17.000Z | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | 30.903846 | 99 | 0.511886 | 863 | 8,035 | 4.692932 | 0.251448 | 0.054321 | 0.025926 | 0.019753 | 0.240988 | 0.201975 | 0.165432 | 0.135309 | 0.135309 | 0.135309 | 0 | 0.006651 | 0.251525 | 8,035 | 259 | 100 | 31.023166 | 0.666611 | 0.589421 | 0 | 0.138889 | 0 | 0 | 0.075949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.041667 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80abafe50ec268ef5c6ba2106a574b5b6aeb135a | 2,036 | py | Python | example.py | Tobi-De/qosic-sdk | a9c7a17c3a328883dfd033080175c64fb8c8fd32 | [
"MIT"
] | 1 | 2022-03-12T13:12:17.000Z | 2022-03-12T13:12:17.000Z | example.py | Tobi-De/qosic-sdk | a9c7a17c3a328883dfd033080175c64fb8c8fd32 | [
"MIT"
] | 247 | 2021-05-12T08:52:46.000Z | 2022-03-30T15:22:06.000Z | example.py | Tobi-De/qosic-sdk | a9c7a17c3a328883dfd033080175c64fb8c8fd32 | [
"MIT"
] | null | null | null | import phonenumbers
from dotenv import dotenv_values
from qosic import Client, MtnConfig, MTN, MOOV, OPERATION_CONFIRMED
from qosic.exceptions import (
InvalidCredentialsError,
InvalidClientIdError,
ServerError,
RequestError,
)
config = dotenv_values(".env")
moov_client_id = config.get("MOOV_CLIENT_I... | 29.085714 | 113 | 0.655697 | 241 | 2,036 | 5.323651 | 0.381743 | 0.074825 | 0.056118 | 0.039751 | 0.279813 | 0.279813 | 0.260327 | 0.260327 | 0.260327 | 0.260327 | 0 | 0.009168 | 0.25 | 2,036 | 69 | 114 | 29.507246 | 0.831041 | 0.121807 | 0 | 0.448276 | 0 | 0 | 0.138453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.051724 | 0.068966 | 0 | 0.086207 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
80abf7caa3074490050648cd507ce1a0805c6ca8 | 2,277 | py | Python | rlcard/games/karma/card.py | pettaa123/rlcard | f5b98eb3a836406ee51197728a258c834959ddb3 | [
"MIT"
] | null | null | null | rlcard/games/karma/card.py | pettaa123/rlcard | f5b98eb3a836406ee51197728a258c834959ddb3 | [
"MIT"
] | null | null | null | rlcard/games/karma/card.py | pettaa123/rlcard | f5b98eb3a836406ee51197728a258c834959ddb3 | [
"MIT"
] | null | null | null | class KarmaCard(object):
info = {'type': ['number', 'wild'],
'trait': ['4', '5', '6', '7', '8', '9', 'J', 'Q', 'K', 'A', '2', '3', '10', 'draw'],
'order': ['4:4', '4:3', '4:2', '4:1', '5:4', '5:3', '5:2', '5:1', '6:4', '6:3', '6:2', '6:1',
'7:4', '7:3', '7:2', '7:1', ... | 36.725806 | 111 | 0.368906 | 369 | 2,277 | 2.243902 | 0.162602 | 0.012077 | 0.007246 | 0.009662 | 0.236715 | 0.236715 | 0.236715 | 0.236715 | 0.236715 | 0.236715 | 0 | 0.135956 | 0.363636 | 2,277 | 61 | 112 | 37.327869 | 0.435473 | 0.16513 | 0 | 0.133333 | 0 | 0 | 0.221719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0 | 0 | 0.266667 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80ae30ede933b26169568f957d647578f83c393b | 4,131 | py | Python | datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/my_version_kevinml/Preprocessing_CategoricalData.py | kevinLCG/machinelearning-az | 54e3090275a3fc419aad17caadc6a47a71dcd3d4 | [
"MIT"
] | null | null | null | datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/my_version_kevinml/Preprocessing_CategoricalData.py | kevinLCG/machinelearning-az | 54e3090275a3fc419aad17caadc6a47a71dcd3d4 | [
"MIT"
] | null | null | null | datasets/Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/my_version_kevinml/Preprocessing_CategoricalData.py | kevinLCG/machinelearning-az | 54e3090275a3fc419aad17caadc6a47a71dcd3d4 | [
"MIT"
] | null | null | null | #!/home/kevinml/anaconda3/bin/python3.7
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 10 11:47:39 2019
@author: kevinml
Version Python: 3.7
"""
# Pre Procesado - Datos Categóricos
###########################################################
# Input Dataset #
##################... | 41.727273 | 150 | 0.639797 | 482 | 4,131 | 5.410788 | 0.43361 | 0.024923 | 0.042178 | 0.036426 | 0.155675 | 0.129601 | 0.129601 | 0.129601 | 0.111196 | 0.090491 | 0 | 0.01107 | 0.14718 | 4,131 | 99 | 151 | 41.727273 | 0.729208 | 0.595013 | 0 | 0 | 0 | 0 | 0.024225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
80ae4466a6cac93d4e909355cee631a4f38e2bce | 3,120 | py | Python | docker_registry_client_async/specs.py | GitHK/docker-registry-client-async | 384b1b7f7abcda55258028d930b45054ab03f6c4 | [
"Apache-2.0"
] | 2 | 2021-10-13T00:25:23.000Z | 2022-02-23T22:22:33.000Z | docker_registry_client_async/specs.py | GitHK/docker-registry-client-async | 384b1b7f7abcda55258028d930b45054ab03f6c4 | [
"Apache-2.0"
] | 17 | 2020-07-18T21:58:51.000Z | 2022-03-31T06:53:30.000Z | docker_registry_client_async/specs.py | GitHK/docker-registry-client-async | 384b1b7f7abcda55258028d930b45054ab03f6c4 | [
"Apache-2.0"
] | 4 | 2020-09-25T22:12:05.000Z | 2022-02-15T06:26:50.000Z | #!/usr/bin/env python
# pylint: disable=too-few-public-methods
"""Reusable string literals."""
class DockerAuthentication:
"""
https://github.com/docker/distribution/blob/master/docs/spec/auth/token.md
https://github.com/docker/distribution/blob/master/docs/spec/auth/scope.md
"""
DOCKERHUB_URL_... | 34.285714 | 101 | 0.721154 | 391 | 3,120 | 5.560102 | 0.230179 | 0.122355 | 0.103036 | 0.096136 | 0.409384 | 0.363385 | 0.25391 | 0.24655 | 0.199632 | 0.107636 | 0 | 0.017931 | 0.141987 | 3,120 | 90 | 102 | 34.666667 | 0.794173 | 0.150641 | 0 | 0.036364 | 0 | 0 | 0.478177 | 0.417922 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.709091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80b70820208ed5aa86523b3f57937420df90eabf | 1,777 | py | Python | integritybackend/geocoder.py | starlinglab/integrity-backend | 8d2a0640d7a9f66c97d180ad76aedf968dfa43e6 | [
"MIT"
] | 1 | 2022-03-18T16:11:31.000Z | 2022-03-18T16:11:31.000Z | integritybackend/geocoder.py | starlinglab/starling-integrity-api | c39161576e852afbffe3053af468acf58207b5ae | [
"MIT"
] | 37 | 2022-01-17T22:07:17.000Z | 2022-03-31T22:11:16.000Z | integritybackend/geocoder.py | starlinglab/starling-integrity-api | c39161576e852afbffe3053af468acf58207b5ae | [
"MIT"
] | null | null | null | import geocoder
from .log_helper import LogHelper
_logger = LogHelper.getLogger()
class Geocoder:
def reverse_geocode(self, lat, lon):
"""Retrieves reverse geocoding informatioon for the given latitude and longitude.
Args:
lat, long: latitude and longitude to reverse geocode, as floa... | 34.173077 | 106 | 0.593697 | 207 | 1,777 | 4.932367 | 0.449275 | 0.048972 | 0.044074 | 0.039177 | 0.056807 | 0.056807 | 0 | 0 | 0 | 0 | 0 | 0.003244 | 0.306134 | 1,777 | 51 | 107 | 34.843137 | 0.824818 | 0.192459 | 0 | 0.088235 | 0 | 0 | 0.159913 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.088235 | false | 0 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80b986d0b98e79475549e867f1ac605bda0845f7 | 917 | py | Python | foodapp/urls.py | gauravmahale47/Foodstore | 2e43cee54e8dc418e3aa1d572085d100727ff904 | [
"BSD-3-Clause"
] | null | null | null | foodapp/urls.py | gauravmahale47/Foodstore | 2e43cee54e8dc418e3aa1d572085d100727ff904 | [
"BSD-3-Clause"
] | null | null | null | foodapp/urls.py | gauravmahale47/Foodstore | 2e43cee54e8dc418e3aa1d572085d100727ff904 | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from foodapp.views import *
from django.views.generic.base import TemplateView
from .views import FoodCreateView,FoodListView
from django.conf import settings
from django.conf.urls.static import static
'''
TemplateView is built-in django Class Based view Class
which is used to ren... | 43.666667 | 82 | 0.735005 | 116 | 917 | 5.724138 | 0.422414 | 0.054217 | 0.075301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115594 | 917 | 21 | 83 | 43.666667 | 0.818742 | 0.115594 | 0 | 0 | 0 | 0 | 0.185131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
80be84948c857c226b842731966f51f313b423cf | 498 | py | Python | prog_python/strings/sustring_2.py | TCGamer123/python | 82ad1f84b52d6cc7253fb4c5522ae8389824930a | [
"MIT"
] | 1 | 2022-03-08T13:29:59.000Z | 2022-03-08T13:29:59.000Z | prog_python/strings/sustring_2.py | TCGamer123/python | 82ad1f84b52d6cc7253fb4c5522ae8389824930a | [
"MIT"
] | null | null | null | prog_python/strings/sustring_2.py | TCGamer123/python | 82ad1f84b52d6cc7253fb4c5522ae8389824930a | [
"MIT"
] | null | null | null | s = "Olá, mundo!";
print(s[::2]); # Imprime os caracteres nos índices pares.
print(s[1::2]) # Imprime os caracteres nos índices ímpares.
frase = "Mundo mundo vasto mundo"
print(frase[::-1]); #inverte a frase;
# Forma mais avançada de formatação de strings
frase_2 = "Um triângulo de base igual a {0} e altura igual a ... | 29.294118 | 104 | 0.702811 | 82 | 498 | 4.219512 | 0.52439 | 0.086705 | 0.057803 | 0.115607 | 0.17341 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0.035629 | 0.154618 | 498 | 16 | 105 | 31.125 | 0.786223 | 0.361446 | 0 | 0 | 0 | 0.1 | 0.451923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
80bf4db9002340c8afb22321e1adb5cd22a14a77 | 7,492 | py | Python | ryu/gui/models/topology.py | isams1/Thesis | dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3 | [
"Apache-2.0"
] | 3 | 2019-04-23T11:11:46.000Z | 2020-11-04T20:14:17.000Z | ryu/gui/models/topology.py | isams1/Thesis | dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3 | [
"Apache-2.0"
] | null | null | null | ryu/gui/models/topology.py | isams1/Thesis | dfe03ce60169bd4e5b2eb6f1068a1c89fc9d9fd3 | [
"Apache-2.0"
] | 3 | 2019-10-03T09:31:42.000Z | 2021-05-15T04:41:12.000Z | import logging
import json
from socket import error as SocketError
from httplib import HTTPException
import gevent
import gevent.monkey
gevent.monkey.patch_all()
from ryu.lib.dpid import str_to_dpid
from ryu.lib.port_no import str_to_port_no
from ryu.app.client import TopologyClient
LOG = logging.getLogger('ryu.gui'... | 28.378788 | 77 | 0.574212 | 924 | 7,492 | 4.378788 | 0.143939 | 0.022244 | 0.027682 | 0.019773 | 0.230351 | 0.134454 | 0.079338 | 0.079338 | 0.064014 | 0.045724 | 0 | 0.002525 | 0.312867 | 7,492 | 263 | 78 | 28.486692 | 0.783411 | 0.010411 | 0 | 0.152284 | 0 | 0 | 0.068817 | 0.005937 | 0 | 0 | 0 | 0 | 0.045685 | 0 | null | null | 0 | 0.045685 | null | null | 0.005076 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80bfef8f2adb756fa51ead93bbcc4295e352ae27 | 744 | py | Python | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/internet/test/process_gireactornocompat.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 4 | 2016-03-30T14:31:52.000Z | 2019-02-02T05:01:32.000Z | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/internet/test/process_gireactornocompat.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/internet/test/process_gireactornocompat.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 2 | 2019-08-30T23:36:13.000Z | 2019-11-08T16:52:01.000Z | import sys
# Override theSystemPath so it throws KeyError on gi.pygtkcompat:
from twisted.python import modules
modules.theSystemPath = modules.PythonPath([], moduleDict={})
# Now, when we import gireactor it shouldn't use pygtkcompat, and should
# instead prevent gobject from being importable:
from twisted.i... | 32.347826 | 77 | 0.686828 | 95 | 744 | 5.315789 | 0.589474 | 0.059406 | 0.083168 | 0.083168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001706 | 0.212366 | 744 | 22 | 78 | 33.818182 | 0.860068 | 0.24328 | 0 | 0 | 0 | 0 | 0.158582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
80bffaf5ce6de8b8154d194bc0ff65bdab497cc8 | 4,140 | py | Python | octostore/mongo_helper.py | luzhang06/octostore | c3a6ac42a86ab6943eaa7e11dfbcae50c0a68bfa | [
"MIT"
] | 1 | 2020-08-17T20:54:39.000Z | 2020-08-17T20:54:39.000Z | octostore/mongo_helper.py | luzhang06/octostore | c3a6ac42a86ab6943eaa7e11dfbcae50c0a68bfa | [
"MIT"
] | null | null | null | octostore/mongo_helper.py | luzhang06/octostore | c3a6ac42a86ab6943eaa7e11dfbcae50c0a68bfa | [
"MIT"
] | null | null | null | from pymongo import MongoClient
import os
import sys
from pathlib import Path
from environs import Env
sys.path.append("..")
sys.path.append(str(Path(__file__).parent.resolve()))
class MongoHelpers:
_client = None
_db = None
_collection = None
def __init__(self, connection_uri=None, db_name=None):
... | 36.315789 | 93 | 0.58285 | 443 | 4,140 | 5.1693 | 0.297968 | 0.057642 | 0.028384 | 0.036681 | 0.124891 | 0.079476 | 0.079476 | 0.079476 | 0.030568 | 0 | 0 | 0.00211 | 0.313043 | 4,140 | 113 | 94 | 36.637168 | 0.803094 | 0.662319 | 0 | 0 | 0 | 0 | 0.129573 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.074074 | 0.185185 | 0 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
80c5febb11f85056db71fbcf343fcfa6d57b6f52 | 4,716 | py | Python | pypower/runpf_fast.py | felixkoeth/PYPOWER | 51476da14dead2ca23417bfa1210748800212ffe | [
"BSD-3-Clause"
] | null | null | null | pypower/runpf_fast.py | felixkoeth/PYPOWER | 51476da14dead2ca23417bfa1210748800212ffe | [
"BSD-3-Clause"
] | null | null | null | pypower/runpf_fast.py | felixkoeth/PYPOWER | 51476da14dead2ca23417bfa1210748800212ffe | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 1996-2015 PSERC. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
"""Runs a power flow.
"""
from sys import stdout, stderr
from os.path import dirname, join
from time import time
from numpy import r_, c_, ix_, zeros, pi, ones... | 33.211268 | 87 | 0.683842 | 732 | 4,716 | 4.370219 | 0.371585 | 0.068771 | 0.008753 | 0.013129 | 0.030635 | 0.030635 | 0.017505 | 0.017505 | 0.017505 | 0.017505 | 0 | 0.017321 | 0.216497 | 4,716 | 141 | 88 | 33.446809 | 0.848444 | 0.645462 | 0 | 0 | 0 | 0 | 0.048096 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.30303 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
80c7f4d876bcca6792829d4bd5fbc77ce4c7d34b | 3,195 | py | Python | encryptor/encryptor.py | crafter-hub/Kreusada-Cogs | 9b7bf873484c7bfeb9707b50f386de82c355b571 | [
"MIT"
] | 21 | 2021-03-11T06:52:41.000Z | 2022-02-04T16:27:47.000Z | encryptor/encryptor.py | crafter-hub/Kreusada-Cogs | 9b7bf873484c7bfeb9707b50f386de82c355b571 | [
"MIT"
] | 77 | 2021-03-06T13:31:50.000Z | 2022-03-25T10:37:15.000Z | encryptor/encryptor.py | crafter-hub/Kreusada-Cogs | 9b7bf873484c7bfeb9707b50f386de82c355b571 | [
"MIT"
] | 33 | 2021-03-05T20:59:07.000Z | 2022-03-06T03:55:47.000Z | import contextlib
import random
import string
from password_strength import PasswordStats
from redbot.core import commands
from redbot.core.utils import chat_formatting as cf
from .word_list import *
GREEN_CIRCLE = "\N{LARGE GREEN CIRCLE}"
YELLOW_CIRCLE = "\N{LARGE YELLOW CIRCLE}"
ORANGE_CIRCLE = "\N{LARGE ORANGE CI... | 31.019417 | 95 | 0.607199 | 375 | 3,195 | 5.010667 | 0.365333 | 0.029803 | 0.042576 | 0.034061 | 0.119212 | 0.081958 | 0.041511 | 0 | 0 | 0 | 0 | 0.024148 | 0.274178 | 3,195 | 102 | 96 | 31.323529 | 0.786115 | 0.01471 | 0 | 0.086957 | 0 | 0.014493 | 0.149496 | 0.009006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.246377 | 0.101449 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
80cb754fd4097ddc5ceb99da12f2ad2947dbe655 | 345 | py | Python | project_3/code/characters.py | Psemp/oc_project_11 | 26ee2e607b2ccc768e19d264b5e1da010820fbc5 | [
"MIT"
] | null | null | null | project_3/code/characters.py | Psemp/oc_project_11 | 26ee2e607b2ccc768e19d264b5e1da010820fbc5 | [
"MIT"
] | null | null | null | project_3/code/characters.py | Psemp/oc_project_11 | 26ee2e607b2ccc768e19d264b5e1da010820fbc5 | [
"MIT"
] | null | null | null | from get_char_pos import get_char_position
class Character:
def __init__(self):
self.x = 0
self.y = 0
self.vel = 32
self.alive = True
self.tag = "str"
mac = Character()
mac.tag = "mac"
guard = Character()
guard.tag = "guard"
macpos = get_char_position(mac)
guardpos = ... | 15 | 42 | 0.626087 | 48 | 345 | 4.25 | 0.5 | 0.137255 | 0.220588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.269565 | 345 | 22 | 43 | 15.681818 | 0.793651 | 0 | 0 | 0 | 0 | 0 | 0.031884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80d9b6be298e2345e53f3894aadc55c0241856e5 | 667 | py | Python | 2019/try/simple.py | rishidevc/stkovrflw | c33dffbce887f32f609a10dd717d594390ceac8b | [
"MIT"
] | null | null | null | 2019/try/simple.py | rishidevc/stkovrflw | c33dffbce887f32f609a10dd717d594390ceac8b | [
"MIT"
] | 5 | 2020-05-04T03:11:14.000Z | 2021-06-10T20:20:38.000Z | 2019/try/simple.py | rishidevc/stkovrflw | c33dffbce887f32f609a10dd717d594390ceac8b | [
"MIT"
] | 1 | 2019-07-31T18:28:34.000Z | 2019-07-31T18:28:34.000Z | def get_assign(user_input):
key, value = user_input.split("gets")
key = key.strip()
value = int(value.strip())
my_dict[key] = value
print(my_dict)
def add_values(num1, num2):
return num1 + num2
print("Welcome to the Adder REPL.")
my_dict = dict()
while True:
user_input = input("???")
... | 17.552632 | 41 | 0.590705 | 94 | 667 | 4 | 0.382979 | 0.239362 | 0.146277 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.28036 | 667 | 38 | 42 | 17.552632 | 0.775 | 0 | 0 | 0 | 0 | 0 | 0.127246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0.041667 | 0.125 | 0.25 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
80e0fed34003c8412ae4f44e18a85afe86d3f7f7 | 375 | py | Python | example/011_matching_zero_or_more_repetitions.py | mafda/regex_101 | 085a9ee48829243d87e4bd74bb1baf07abc6481e | [
"MIT"
] | null | null | null | example/011_matching_zero_or_more_repetitions.py | mafda/regex_101 | 085a9ee48829243d87e4bd74bb1baf07abc6481e | [
"MIT"
] | null | null | null | example/011_matching_zero_or_more_repetitions.py | mafda/regex_101 | 085a9ee48829243d87e4bd74bb1baf07abc6481e | [
"MIT"
] | null | null | null | """
Task
You have a test string S.
Your task is to write a regex that will match S using the following conditions:
S should begin with 2 or more digits.
After that, S should have 0 or more lowercase letters.
S should end with 0 or more uppercase letters
"""
import re
Regex_Pattern = r'^[\d]{2,}[a-z]*[A-Z]*$'
print... | 22.058824 | 79 | 0.712 | 69 | 375 | 3.84058 | 0.637681 | 0.079245 | 0.05283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.168 | 375 | 16 | 80 | 23.4375 | 0.836538 | 0.669333 | 0 | 0 | 0 | 0 | 0.189655 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.