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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e268f670899c7a0577a47e0547ad2270f1a22f73 | 928 | py | Python | utils.py | ndukh/liver-segmentation | f46697719b78d11f8871048c7c3aaaf8d8f3777f | [
"MIT"
] | 2 | 2019-12-06T13:36:47.000Z | 2020-10-08T13:57:02.000Z | utils.py | ndukh/liver-segmentation | f46697719b78d11f8871048c7c3aaaf8d8f3777f | [
"MIT"
] | null | null | null | utils.py | ndukh/liver-segmentation | f46697719b78d11f8871048c7c3aaaf8d8f3777f | [
"MIT"
] | null | null | null | from keras import backend as K
def dice_coef(y_true, y_pred):
"""
A simple dice metric over true and predicted tensors.
We do not calculate dice axis-based, instead of this we calculate total dice
for the whole batch. It is simpler, when the result is the same as after
'fair' calculation of dice f... | 40.347826 | 82 | 0.669181 | 157 | 928 | 3.872611 | 0.464968 | 0.041118 | 0.039474 | 0.065789 | 0.121711 | 0.121711 | 0 | 0 | 0 | 0 | 0 | 0.016901 | 0.234914 | 928 | 23 | 83 | 40.347826 | 0.838028 | 0.617457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e26c2b378eb036143edf512f53458c5a06faa35c | 20,793 | py | Python | django_evolution/tests/test_rename_field.py | beanbaginc/django-evolution | fb76e44a2361a69a440dca086c0cc67ac6a4300d | [
"BSD-3-Clause"
] | 18 | 2015-02-08T14:48:02.000Z | 2021-08-03T21:07:37.000Z | django_evolution/tests/test_rename_field.py | beanbaginc/django-evolution | fb76e44a2361a69a440dca086c0cc67ac6a4300d | [
"BSD-3-Clause"
] | 4 | 2015-01-07T01:15:08.000Z | 2020-08-06T06:52:13.000Z | django_evolution/tests/test_rename_field.py | beanbaginc/django-evolution | fb76e44a2361a69a440dca086c0cc67ac6a4300d | [
"BSD-3-Clause"
] | 13 | 2015-01-07T01:06:21.000Z | 2022-02-20T16:27:41.000Z | from __future__ import unicode_literals
from django.db import models
from django_evolution.errors import SimulationFailure
from django_evolution.mutations import RenameField
from django_evolution.signature import (AppSignature,
ModelSignature,
... | 41.337972 | 77 | 0.588179 | 1,930 | 20,793 | 6.03886 | 0.080311 | 0.055684 | 0.033462 | 0.051308 | 0.77263 | 0.73831 | 0.695581 | 0.685285 | 0.667181 | 0.635006 | 0 | 0.009946 | 0.323041 | 20,793 | 502 | 78 | 41.420319 | 0.818059 | 0.04439 | 0 | 0.636139 | 0 | 0 | 0.250928 | 0.086472 | 0 | 0 | 0 | 0 | 0.007426 | 1 | 0.039604 | false | 0 | 0.017327 | 0 | 0.143564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
e26edc3409fc91665e4e9e8bdb02caccd0068010 | 57,494 | py | Python | gail/gail.py | VisExcell/riskmodels | 012bbfd563482ba09585cd042b1f9465253ab1f4 | [
"MIT"
] | 2 | 2019-11-04T20:57:11.000Z | 2021-04-08T08:05:45.000Z | gail/gail.py | VisExcell/riskmodels | 012bbfd563482ba09585cd042b1f9465253ab1f4 | [
"MIT"
] | null | null | null | gail/gail.py | VisExcell/riskmodels | 012bbfd563482ba09585cd042b1f9465253ab1f4 | [
"MIT"
] | 2 | 2020-09-22T17:05:04.000Z | 2021-02-05T17:12:28.000Z | import numpy as np
class GailRiskCalculator:
NumCovPattInGailModel = 216
def __init__(self):
self.bet2 = np.zeros((8,12),dtype=np.float64)
self.bet = np.zeros(8,dtype=np.float64)
self.rf = np.zeros(2,dtype=np.float64)
self.abs = np.zeros(self.NumCovPattInGailModel,dtype=np.flo... | 47.28125 | 121 | 0.486364 | 7,335 | 57,494 | 3.804499 | 0.111656 | 0.048735 | 0.029098 | 0.044507 | 0.560919 | 0.527879 | 0.499534 | 0.464775 | 0.424604 | 0.383968 | 0 | 0.230065 | 0.375083 | 57,494 | 1,215 | 122 | 47.320165 | 0.546634 | 0.219223 | 0 | 0.176387 | 0 | 0 | 0.000233 | 0 | 0 | 0 | 0 | 0.004115 | 0 | 0 | null | null | 0 | 0.001422 | null | null | 0.001422 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
e2a1b463decdcf98f6fdf0ad03f13fe51a68b8aa | 1,316 | py | Python | tbx/people/migrations/0029_auto_20210728_1109.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 103 | 2015-02-24T17:58:21.000Z | 2022-03-23T08:08:58.000Z | tbx/people/migrations/0029_auto_20210728_1109.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 145 | 2015-01-13T17:13:43.000Z | 2022-03-29T12:56:20.000Z | tbx/people/migrations/0029_auto_20210728_1109.py | elviva404/wagtail-torchbox | 718d9e2c4337073f010296932d369c726a01dbd3 | [
"MIT"
] | 57 | 2015-01-03T12:00:37.000Z | 2022-02-09T13:11:30.000Z | # Generated by Django 2.2.17 on 2021-07-28 10:09
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
("people", "0028_auto_20210604_1234"),
]
operations = [
migrations... | 31.333333 | 153 | 0.403495 | 95 | 1,316 | 5.526316 | 0.652632 | 0.104762 | 0.097143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050235 | 0.515957 | 1,316 | 41 | 154 | 32.097561 | 0.77394 | 0.034954 | 0 | 0.142857 | 1 | 0.028571 | 0.132492 | 0.018139 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.114286 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2b3842f07dbcbc4ffcb207564d327421078951a | 13,816 | py | Python | google/ads/google_ads/v3/proto/resources/ad_group_simulation_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | 1 | 2019-11-30T23:42:39.000Z | 2019-11-30T23:42:39.000Z | google/ads/google_ads/v3/proto/resources/ad_group_simulation_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v3/proto/resources/ad_group_simulation_pb2.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | 1 | 2020-09-30T17:04:06.000Z | 2020-09-30T17:04:06.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v3/proto/resources/ad_group_simulation.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf... | 65.478673 | 2,070 | 0.799797 | 1,888 | 13,816 | 5.476165 | 0.143538 | 0.050005 | 0.048747 | 0.058033 | 0.669601 | 0.629461 | 0.536706 | 0.500725 | 0.433601 | 0.38379 | 0 | 0.041847 | 0.095397 | 13,816 | 210 | 2,071 | 65.790476 | 0.785406 | 0.0228 | 0 | 0.294118 | 1 | 0.016043 | 0.421076 | 0.267008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064171 | 0 | 0.064171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c414ad869d7c8870326e68eef3da496a4777bf5 | 663 | py | Python | reports/views.py | erinspace/rivannastreamwatch | 23bfcee247d539449fca2ab9357bd450aa0a431d | [
"MIT"
] | null | null | null | reports/views.py | erinspace/rivannastreamwatch | 23bfcee247d539449fca2ab9357bd450aa0a431d | [
"MIT"
] | null | null | null | reports/views.py | erinspace/rivannastreamwatch | 23bfcee247d539449fca2ab9357bd450aa0a431d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User
from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView, RetrieveAPIView
from reports.models import Report
from reports.serializers import ReportSerializer, UserSerializer
class R... | 26.52 | 100 | 0.803922 | 64 | 663 | 8.1875 | 0.5 | 0.057252 | 0.114504 | 0.14313 | 0.229008 | 0.229008 | 0.229008 | 0.229008 | 0 | 0 | 0 | 0.00173 | 0.128205 | 663 | 24 | 101 | 27.625 | 0.904844 | 0.031674 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
2c415bbaa990e45ba44ba5f6b832f5d35a83609a | 67,578 | py | Python | qt4a/androiddriver/webdriver.py | qtateam/QT4A | 3852e1a7740229e9930c610072bbbc700fb13f81 | [
"BSD-3-Clause"
] | 1 | 2018-11-27T03:32:38.000Z | 2018-11-27T03:32:38.000Z | qt4a/androiddriver/webdriver.py | qtateam/QT4A | 3852e1a7740229e9930c610072bbbc700fb13f81 | [
"BSD-3-Clause"
] | null | null | null | qt4a/androiddriver/webdriver.py | qtateam/QT4A | 3852e1a7740229e9930c610072bbbc700fb13f81 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making QTA available.
# Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the BSD 3-Clause License (the "License"); you may not use this
# file except in compliance with the License. You may... | 32.287625 | 160 | 0.40892 | 6,625 | 67,578 | 4.157887 | 0.100226 | 0.018878 | 0.01699 | 0.005518 | 0.246061 | 0.179554 | 0.156611 | 0.120562 | 0.098526 | 0.069193 | 0 | 0.01207 | 0.443399 | 67,578 | 2,092 | 161 | 32.303059 | 0.720264 | 0.014798 | 0 | 0.27669 | 0 | 0.014202 | 0.978167 | 0.084178 | 0 | 0 | 0.000106 | 0 | 0 | 0 | null | null | 0.000979 | 0.002449 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c4678c8414aab0401b6d84d47eed85060f96ad3 | 1,844 | py | Python | btorch/device.py | vladstreltsin/blox | 2822b84220e512c8012b1b4ec51d6e534bd4d652 | [
"MIT"
] | null | null | null | btorch/device.py | vladstreltsin/blox | 2822b84220e512c8012b1b4ec51d6e534bd4d652 | [
"MIT"
] | null | null | null | btorch/device.py | vladstreltsin/blox | 2822b84220e512c8012b1b4ec51d6e534bd4d652 | [
"MIT"
] | null | null | null | from __future__ import annotations
from blox_old.core.engine.device import BlockDevice
from blox_old.btorch.module import TorchModule, TorchModuleError
import torch
from blox_old.utils import raise_if
from blox_old.core.block.base import Block
import typing as T
class TorchCudaError(TorchModuleError):
pass
def ... | 32.350877 | 118 | 0.66974 | 248 | 1,844 | 4.762097 | 0.318548 | 0.042337 | 0.055038 | 0.025402 | 0.206605 | 0.206605 | 0.206605 | 0.206605 | 0.206605 | 0.206605 | 0 | 0.001402 | 0.226139 | 1,844 | 56 | 119 | 32.928571 | 0.826209 | 0.074295 | 0 | 0 | 0 | 0 | 0.065179 | 0.017029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0.028571 | 0.2 | 0.114286 | 0.657143 | 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 | 1 | 0 | 0 | 0 | 2 |
2c46f1ebeef6b35cb302f6dc0cc36da77f79c3c9 | 2,943 | py | Python | python/mxnet/gluon/data/dataset.py | Adesun/incubator-mxnet | 2586c6691ca74d2df455a49cad964bcac8e34f25 | [
"Apache-2.0"
] | 116 | 2018-01-01T03:53:49.000Z | 2021-09-06T07:09:09.000Z | python/mxnet/gluon/data/dataset.py | wkcn/incubator-mxnet | 2586c6691ca74d2df455a49cad964bcac8e34f25 | [
"Apache-2.0"
] | null | null | null | python/mxnet/gluon/data/dataset.py | wkcn/incubator-mxnet | 2586c6691ca74d2df455a49cad964bcac8e34f25 | [
"Apache-2.0"
] | 40 | 2018-01-16T04:12:39.000Z | 2022-02-25T11:53:17.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 31.645161 | 81 | 0.652396 | 390 | 2,943 | 4.769231 | 0.423077 | 0.032258 | 0.022581 | 0.027419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007178 | 0.24261 | 2,943 | 92 | 82 | 31.98913 | 0.827277 | 0.472307 | 0 | 0.228571 | 0 | 0 | 0.10221 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 1 | 0.228571 | false | 0 | 0.057143 | 0.085714 | 0.514286 | 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 | 1 | 0 | 0 | 2 |
2c5dd0656347646332272640e2221b08b0557874 | 179 | py | Python | src/codebots/utilities/message.py | franaudo/codebots | f45ee9f665cadc4627d397ae74eefca226269656 | [
"MIT"
] | 5 | 2021-05-06T21:51:30.000Z | 2022-01-10T17:53:00.000Z | src/codebots/utilities/message.py | franaudo/codebots | f45ee9f665cadc4627d397ae74eefca226269656 | [
"MIT"
] | 10 | 2021-04-03T12:00:27.000Z | 2021-11-04T16:27:48.000Z | src/codebots/utilities/message.py | franaudo/codebots | f45ee9f665cadc4627d397ae74eefca226269656 | [
"MIT"
] | null | null | null |
def format_message(message, to_replace=["_", "*", "[", "`"]):
for symbol in to_replace:
message.replace(symbol, '\\' + symbol)
message.rp
return message
| 22.375 | 61 | 0.581006 | 19 | 179 | 5.263158 | 0.526316 | 0.18 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240223 | 179 | 7 | 62 | 25.571429 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 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 | 2 |
2c61fe287fc769d5cf8304f253d442e59d2612c9 | 1,043 | py | Python | lib/augment/random_intensity_shift.py | Healingl/3DAPRNet | 7c5e0028ae844df4e1f26327e8b438532ca0745f | [
"BSD-2-Clause"
] | null | null | null | lib/augment/random_intensity_shift.py | Healingl/3DAPRNet | 7c5e0028ae844df4e1f26327e8b438532ca0745f | [
"BSD-2-Clause"
] | null | null | null | lib/augment/random_intensity_shift.py | Healingl/3DAPRNet | 7c5e0028ae844df4e1f26327e8b438532ca0745f | [
"BSD-2-Clause"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# @Author: ZhuangYuZhou
# @E-mail: 605540375@qq.com
# @Desc:
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
import numpy as np
def random_intensity_shift(img_numpy, limit=0.1):
shift... | 26.74359 | 79 | 0.541707 | 119 | 1,043 | 4.546218 | 0.436975 | 0.147874 | 0.073937 | 0.085028 | 0.195933 | 0.195933 | 0 | 0 | 0 | 0 | 0 | 0.046259 | 0.295302 | 1,043 | 38 | 80 | 27.447368 | 0.689796 | 0.347076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 2 |
2c695519ed44dfa893d318d7ce5d6dc9b04a5db7 | 223 | py | Python | method_photo2paint/loader.py | Qwinpin/NeuroDemo | 52220dd2904e96485ce92adb171e68522915a1fb | [
"MIT"
] | 1 | 2021-03-09T22:59:55.000Z | 2021-03-09T22:59:55.000Z | method_photo2paint/loader.py | Qwinpin/NeuroDemo | 52220dd2904e96485ce92adb171e68522915a1fb | [
"MIT"
] | null | null | null | method_photo2paint/loader.py | Qwinpin/NeuroDemo | 52220dd2904e96485ce92adb171e68522915a1fb | [
"MIT"
] | null | null | null | import json
import io
from PIL import Image
import cv2
import numpy as np
def load(data):
image = Image.open(io.BytesIO(data))
opencvImage = cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
return opencvImage
| 18.583333 | 66 | 0.73991 | 34 | 223 | 4.823529 | 0.617647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.174888 | 223 | 11 | 67 | 20.272727 | 0.869565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.555556 | 0 | 0.777778 | 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 | 1 | 0 | 0 | 2 |
2c6cb0e6002ce145b860df144f89f8a9ed73d281 | 5,629 | py | Python | unpythonic/syntax/test/test_conts_topo.py | aisha-w/unpythonic | 0f63abf6ac7efb7304b676d0e1ebce0ef4040438 | [
"BSD-2-Clause"
] | null | null | null | unpythonic/syntax/test/test_conts_topo.py | aisha-w/unpythonic | 0f63abf6ac7efb7304b676d0e1ebce0ef4040438 | [
"BSD-2-Clause"
] | null | null | null | unpythonic/syntax/test/test_conts_topo.py | aisha-w/unpythonic | 0f63abf6ac7efb7304b676d0e1ebce0ef4040438 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test exotic program topologies.
For pictures, see ``macro_extras/callcc_topology.pdf`` in the source distribution.
"""
from inspect import stack
from ...syntax import macros, continuations, call_cc
def me():
"""Return the caller's function name."""
callstack = stack()
framerec... | 25.703196 | 83 | 0.445905 | 667 | 5,629 | 3.674663 | 0.187406 | 0.190942 | 0.233374 | 0.095471 | 0.532844 | 0.473276 | 0.425949 | 0.374541 | 0.335373 | 0.322317 | 0 | 0.021015 | 0.408243 | 5,629 | 218 | 84 | 25.821101 | 0.7148 | 0.171789 | 0 | 0.681564 | 0 | 0 | 0.041739 | 0 | 0 | 0 | 0 | 0 | 0.050279 | 1 | 0.206704 | false | 0.005587 | 0.011173 | 0 | 0.256983 | 0.005587 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c71d0c31bdecb9c1cda6baa928bcf39966a850b | 1,455 | py | Python | account/migrations/0003_passwordexpiry_passwordhistory.py | ProgrammingLanguageLeader/django-user-accounts | ad301bd57ae65c456ed6e45ae3b5cb06d4e2378b | [
"MIT"
] | 841 | 2015-01-03T13:15:52.000Z | 2022-03-31T14:08:23.000Z | account/migrations/0003_passwordexpiry_passwordhistory.py | ProgrammingLanguageLeader/django-user-accounts | ad301bd57ae65c456ed6e45ae3b5cb06d4e2378b | [
"MIT"
] | 187 | 2015-01-05T17:03:47.000Z | 2022-01-26T06:56:09.000Z | account/migrations/0003_passwordexpiry_passwordhistory.py | massware/django-user-accounts | 8fe4633cbbed89eb7ced8b0b4b0337c3bded4247 | [
"MIT"
] | 317 | 2015-01-11T04:24:22.000Z | 2022-03-26T16:28:56.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-13 08:55
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
... | 39.324324 | 174 | 0.645361 | 155 | 1,455 | 5.877419 | 0.477419 | 0.035126 | 0.046103 | 0.072448 | 0.346872 | 0.296378 | 0.296378 | 0.296378 | 0.296378 | 0.296378 | 0 | 0.022242 | 0.227491 | 1,455 | 36 | 175 | 40.416667 | 0.788256 | 0.046735 | 0 | 0.344828 | 1 | 0 | 0.08815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.172414 | 0.172414 | 0 | 0.275862 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2c71f92a4a5781b16a490c2760b6a652cc5afb93 | 780 | py | Python | microsentry/models.py | feliperuhland/microsentry | 8fc640b22f69c3759d87c2358cad025ec45c8cc7 | [
"MIT"
] | null | null | null | microsentry/models.py | feliperuhland/microsentry | 8fc640b22f69c3759d87c2358cad025ec45c8cc7 | [
"MIT"
] | null | null | null | microsentry/models.py | feliperuhland/microsentry | 8fc640b22f69c3759d87c2358cad025ec45c8cc7 | [
"MIT"
] | null | null | null | import dataclasses
import datetime
import typing
@dataclasses.dataclass
class Context:
build: str
name: str
version: str
@dataclasses.dataclass
class Frame:
abs_path: str
context_line: str
filename: str
function: str
lineno: int
module: str
pre_context: typing.List[str]
p... | 17.333333 | 48 | 0.697436 | 96 | 780 | 5.572917 | 0.40625 | 0.149533 | 0.186916 | 0.157009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.228205 | 780 | 44 | 49 | 17.727273 | 0.888704 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.888889 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2c7b635f7078761a4178b130bfb1d6906ad54eea | 405 | py | Python | grid.py | Hec98/tkinterIntro | 03d33b97aa4fc2d9d12c4590cf17dccdb343980a | [
"MIT"
] | 2 | 2022-01-12T04:25:55.000Z | 2022-01-12T04:31:18.000Z | grid.py | Hec98/tkinterIntro | 03d33b97aa4fc2d9d12c4590cf17dccdb343980a | [
"MIT"
] | null | null | null | grid.py | Hec98/tkinterIntro | 03d33b97aa4fc2d9d12c4590cf17dccdb343980a | [
"MIT"
] | null | null | null | from tkinter import Tk, Label
root = Tk()
root.title('Hello World')
root.geometry('500x300')
lb1 = Label(root, text = 'Hello, this is a tag -> 1')
lb2 = Label(root, text = 'Hello, this is a tag -> 2')
lb3 = Label(root, text = 'Hello, this is a tag -> 3')
# Label(root, text = 'Hello, this is a tag').pack()
lb1.grid(r... | 23.823529 | 53 | 0.646914 | 73 | 405 | 3.589041 | 0.383562 | 0.171756 | 0.198473 | 0.274809 | 0.427481 | 0.427481 | 0.427481 | 0.427481 | 0 | 0 | 0 | 0.06213 | 0.165432 | 405 | 16 | 54 | 25.3125 | 0.713018 | 0.120988 | 0 | 0 | 0 | 0 | 0.262712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
2c7c784cba091d8ae89f7a03a13304373982e2b3 | 2,125 | py | Python | powmap.py | jossef/power-scanner | 729a4de35a5de11284aa6c14b2871536cc321d0a | [
"MIT"
] | 3 | 2017-01-04T18:27:28.000Z | 2018-05-19T14:08:14.000Z | powmap.py | Jossef/power-scanner | 729a4de35a5de11284aa6c14b2871536cc321d0a | [
"MIT"
] | 3 | 2016-10-21T05:53:33.000Z | 2016-10-21T05:53:47.000Z | powmap.py | Jossef/power-scanner | 729a4de35a5de11284aa6c14b2871536cc321d0a | [
"MIT"
] | null | null | null | import argparse
import logging
import re
import struct
import uuid
import sys
from struct import *
import sys
import os
import array
import fcntl
import socket
import fcntl
import struct
import array
from multiprocessing.pool import ThreadPool
from powscan_common.banner_grabber import *
from powscan_common.network_ma... | 26.234568 | 145 | 0.704 | 295 | 2,125 | 4.877966 | 0.386441 | 0.075052 | 0.125087 | 0.063933 | 0.063933 | 0.026407 | 0.026407 | 0.026407 | 0.026407 | 0.026407 | 0 | 0.027058 | 0.182588 | 2,125 | 80 | 146 | 26.5625 | 0.801382 | 0.043294 | 0 | 0.188679 | 0 | 0.018868 | 0.218056 | 0.051801 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.415094 | null | null | 0.132075 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
2c8319da00390bc626331c0ea2a57c8feafdc2f3 | 208 | py | Python | read_data.py | AnirudhSridhar/heimdall | 8c677e6b346a964a149ea06806b12d8d947a1a1d | [
"Apache-2.0"
] | 1 | 2018-04-03T19:26:10.000Z | 2018-04-03T19:26:10.000Z | read_data.py | AnirudhSridhar/heimdall | 8c677e6b346a964a149ea06806b12d8d947a1a1d | [
"Apache-2.0"
] | null | null | null | read_data.py | AnirudhSridhar/heimdall | 8c677e6b346a964a149ea06806b12d8d947a1a1d | [
"Apache-2.0"
] | null | null | null | import pandas as pd
from glob import glob
import os
path = 'data/'
all_files = glob(os.path.join(path, '*.json'))
dfs = (pd.read_json(f) for f in all_files)
df = pd.concat(dfs, ignore_index=True)
print (df)
| 20.8 | 46 | 0.706731 | 39 | 208 | 3.666667 | 0.615385 | 0.13986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149038 | 208 | 9 | 47 | 23.111111 | 0.80791 | 0 | 0 | 0 | 0 | 0 | 0.052885 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
2c90b5d9ca4e30a7536eb52aa5d3f546ab0a79d4 | 1,709 | py | Python | app.py | jainanchit51/quora-questions | bb43416a08d03fd92be4da68a125efcff6b84bb7 | [
"Apache-2.0"
] | null | null | null | app.py | jainanchit51/quora-questions | bb43416a08d03fd92be4da68a125efcff6b84bb7 | [
"Apache-2.0"
] | null | null | null | app.py | jainanchit51/quora-questions | bb43416a08d03fd92be4da68a125efcff6b84bb7 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import logging
from flask import Flask, request, jsonify, send_file
from flask_cors import CORS
import pandas as pd
import numpy as np
import tensorflow as tf
import tensorflow_hub as hub
import numpy as np
import os
import pandas as pd
import re
import keras.layers as layers
from keras.models impo... | 20.590361 | 73 | 0.710942 | 255 | 1,709 | 4.643137 | 0.45098 | 0.054054 | 0.023649 | 0.027027 | 0.136824 | 0.074324 | 0.074324 | 0.074324 | 0.074324 | 0 | 0 | 0.019986 | 0.180222 | 1,709 | 82 | 74 | 20.841463 | 0.825125 | 0.16969 | 0 | 0.235294 | 0 | 0 | 0.120603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.372549 | 0.058824 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
2c9c0d396117796db353f3a441a592194e83f2a4 | 291 | py | Python | apps/registro_hora_extra/models.py | MatheusMullerGit/app_empresas | 67e7a38bff51b24aa65bdedd421459f37e27a2b2 | [
"MIT"
] | 1 | 2020-11-08T16:44:20.000Z | 2020-11-08T16:44:20.000Z | apps/registro_hora_extra/models.py | MatheusMullerGit/app_empresas | 67e7a38bff51b24aa65bdedd421459f37e27a2b2 | [
"MIT"
] | null | null | null | apps/registro_hora_extra/models.py | MatheusMullerGit/app_empresas | 67e7a38bff51b24aa65bdedd421459f37e27a2b2 | [
"MIT"
] | null | null | null | from django.db import models
from apps.funcionarios.models import Funcionario
class RegistroHoraExtra(models.Model):
motivo = models.CharField(max_length=100)
funcionario = models.ForeignKey(Funcionario, on_delete=models.PROTECT)
def __str__(self):
return self.motivo
| 26.454545 | 74 | 0.769759 | 35 | 291 | 6.228571 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012146 | 0.151203 | 291 | 10 | 75 | 29.1 | 0.870445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 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 | 1 | 1 | 0 | 0 | 2 |
2cab9074e65111400851764c05e26e3e8f87a58f | 1,332 | py | Python | archive/scripts/make_movie_tfgfx.py | bionicles/neuromax | a53a17a1c033c11ac607a9e28f43b1f906e58aad | [
"MIT"
] | null | null | null | archive/scripts/make_movie_tfgfx.py | bionicles/neuromax | a53a17a1c033c11ac607a9e28f43b1f906e58aad | [
"MIT"
] | null | null | null | archive/scripts/make_movie_tfgfx.py | bionicles/neuromax | a53a17a1c033c11ac607a9e28f43b1f906e58aad | [
"MIT"
] | null | null | null | import tensorflow_graphics as gfx
import tensorflow as tf
lambertian = gfx.rendering.reflectance.lambertian
phong = gfx.rendering.reflectance.phong
def make_movie(keyframes, length, save_path):
frames_per_keyframe = length / tf.shape(keyframes)[0]
frames = interpolate(keyframes, frames_per_keyframe)
movi... | 29.6 | 70 | 0.725976 | 195 | 1,332 | 4.723077 | 0.317949 | 0.068404 | 0.129207 | 0.068404 | 0.191097 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00816 | 0.171922 | 1,332 | 44 | 71 | 30.272727 | 0.826836 | 0.06006 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.068966 | 0.103448 | 0.448276 | 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 | 1 | 0 | 0 | 0 | 2 |
2cb2e46e1c301bd4740db07e928c276400566195 | 813 | py | Python | update_tools.py | gflaherty/rules_pyz | 900546b12e880f272c82534cdd2423dcb109e795 | [
"Apache-2.0"
] | 26 | 2018-01-29T23:28:45.000Z | 2020-12-01T21:30:32.000Z | update_tools.py | gflaherty/rules_pyz | 900546b12e880f272c82534cdd2423dcb109e795 | [
"Apache-2.0"
] | 28 | 2018-03-31T19:41:12.000Z | 2019-01-30T21:57:43.000Z | update_tools.py | gflaherty/rules_pyz | 900546b12e880f272c82534cdd2423dcb109e795 | [
"Apache-2.0"
] | 17 | 2018-03-08T21:30:22.000Z | 2019-11-22T17:16:00.000Z | #!/usr/bin/env python
import os
import subprocess
GOOS_TO_BAZEL = {
'darwin': 'osx',
'linux': 'linux',
}
GO_TOOL_SRC = ('pypi/pip_generate.go',)
# TODO: Build 32-bit versions?
GOARCH = 'amd64'
def main():
script_dir = os.path.dirname(__file__)
for src in GO_TOOL_SRC:
for goos, bazel_os in... | 23.228571 | 70 | 0.554736 | 104 | 813 | 4.067308 | 0.509615 | 0.056738 | 0.052009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012238 | 0.296433 | 813 | 34 | 71 | 23.911765 | 0.727273 | 0.060271 | 0 | 0 | 1 | 0 | 0.111549 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.130435 | 0.043478 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2cb48221d02e0baf45affa673f10aefd1a5bbb90 | 301 | py | Python | Python/libraries/recognizers-number/recognizers_number/number/utilities.py | XiaoxiaoMa0815/Recognizers-Text | d9a4bc939348bd79b5982345255961dff5f356c6 | [
"MIT"
] | 1 | 2019-01-03T16:41:29.000Z | 2019-01-03T16:41:29.000Z | Python/libraries/recognizers-number/recognizers_number/number/utilities.py | XiaoxiaoMa0815/Recognizers-Text | d9a4bc939348bd79b5982345255961dff5f356c6 | [
"MIT"
] | 76 | 2018-11-09T18:19:44.000Z | 2019-08-20T20:29:53.000Z | Python/libraries/recognizers-number/recognizers_number/number/utilities.py | XiaoxiaoMa0815/Recognizers-Text | d9a4bc939348bd79b5982345255961dff5f356c6 | [
"MIT"
] | 6 | 2017-05-04T17:24:59.000Z | 2019-07-23T15:48:44.000Z | from decimal import localcontext
def precision(*args, **kwargs):
def decorator(f):
def inner_decorator(*a, **kwa):
with localcontext() as ctx:
ctx.prec = kwargs['prec']
return f(*a, **kwa)
return inner_decorator
return decorator
| 21.5 | 41 | 0.568106 | 33 | 301 | 5.121212 | 0.545455 | 0.16568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.325581 | 301 | 13 | 42 | 23.153846 | 0.832512 | 0 | 0 | 0 | 0 | 0 | 0.013289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0 | 0.777778 | 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 | 1 | 0 | 0 | 2 |
2cb613c315cc43ee19bfbe4b247bf4ef3c518953 | 321 | py | Python | flask_exp/hello.py | fly2rain/try_git_pycharm | 0bb6b6b05c9d5942c46fa572a5f4dbaa90309b8a | [
"Unlicense"
] | null | null | null | flask_exp/hello.py | fly2rain/try_git_pycharm | 0bb6b6b05c9d5942c46fa572a5f4dbaa90309b8a | [
"Unlicense"
] | null | null | null | flask_exp/hello.py | fly2rain/try_git_pycharm | 0bb6b6b05c9d5942c46fa572a5f4dbaa90309b8a | [
"Unlicense"
] | null | null | null | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
# app.run()
x = "Hello world"
y = "hello"
z = "1 2 3"
print(x.lower().strip().split())
print(y.lower().strip().split())
print(z.lower().strip().split())... | 17.833333 | 36 | 0.566978 | 44 | 321 | 3.840909 | 0.522727 | 0.177515 | 0.266272 | 0.236686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.224299 | 321 | 17 | 37 | 18.882353 | 0.666667 | 0.028037 | 0 | 0 | 0 | 0 | 0.141935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.083333 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
2cbac9b4a32de65eb7ed3eda5e7c0c677bf993fd | 2,508 | py | Python | tambola_game_engine/player_input_handler.py | nitinnain/tambola-game | abf04eb9fbf529b10fbb95072e6a8b43564a85ff | [
"MIT"
] | 1 | 2020-08-13T10:26:40.000Z | 2020-08-13T10:26:40.000Z | tambola_game_engine/player_input_handler.py | nitinnain/tambola-game | abf04eb9fbf529b10fbb95072e6a8b43564a85ff | [
"MIT"
] | null | null | null | tambola_game_engine/player_input_handler.py | nitinnain/tambola-game | abf04eb9fbf529b10fbb95072e6a8b43564a85ff | [
"MIT"
] | 3 | 2019-07-21T16:57:20.000Z | 2021-06-20T09:35:06.000Z | #
# Tambola / Housie Mobile Game
#
__author__ = 'nitin'
#import time
from player_ticket import PlayerTicket
class PlayerInputHandler:
def __init__(self, game_instance):
self._game_instance = game_instance
#Player Id will be sent by Client
# TODO Need to create player Ids in DB
... | 30.585366 | 86 | 0.573365 | 320 | 2,508 | 4.359375 | 0.325 | 0.060215 | 0.068817 | 0.0681 | 0.443728 | 0.443728 | 0.389964 | 0.389964 | 0.389964 | 0.389964 | 0 | 0.017293 | 0.33134 | 2,508 | 81 | 87 | 30.962963 | 0.81455 | 0.127193 | 0 | 0.34 | 0 | 0 | 0.125977 | 0 | 0 | 0 | 0 | 0.012346 | 0 | 0 | null | null | 0.02 | 0.02 | null | null | 0.22 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2cbcd4b9ca17022184bd917e756928bc5a757104 | 77 | py | Python | hello repeter.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | hello repeter.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | hello repeter.py | Jayapraveen34/crazy-lover | be5bd897c40c31b3e5e6eafe3b6436cb3d888efe | [
"BSD-2-Clause"
] | null | null | null | a="hello \n"
b=int(input(" Enter the number of times:"))
h=a*b
print (h)
| 15.4 | 44 | 0.597403 | 16 | 77 | 2.875 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 77 | 4 | 45 | 19.25 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0.479452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 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 | 2 |
2cc23585208ade836fd3bc7a82d50a60c3e5f9ae | 4,282 | py | Python | pyaz/network/routeserver/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/network/routeserver/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | null | null | null | pyaz/network/routeserver/__init__.py | py-az-cli/py-az-cli | 9a7dc44e360c096a5a2f15595353e9dad88a9792 | [
"MIT"
] | 1 | 2022-02-03T09:12:01.000Z | 2022-02-03T09:12:01.000Z | '''
Manage the route server.
'''
from ... pyaz_utils import _call_az
from . import peering
def create(hosted_subnet, name, resource_group, location=None, public_ip_address=None, tags=None):
'''
Create a route server.
Required Parameters:
- hosted_subnet -- The ID of a subnet where Route Server would ... | 43.252525 | 164 | 0.704577 | 577 | 4,282 | 5.157712 | 0.244367 | 0.087366 | 0.03293 | 0.042339 | 0.416667 | 0.398185 | 0.37668 | 0.37668 | 0.37668 | 0.37668 | 0 | 0.001165 | 0.198038 | 4,282 | 98 | 165 | 43.693878 | 0.865463 | 0.71929 | 0 | 0 | 0 | 0 | 0.178155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2cc36408fd4a9ecb70290277aa45a301b255ed9b | 1,683 | py | Python | project/asks/migrations/0002_auto_20211002_1924.py | fael07/Live-Questions-Backend | 40813ba8a34edc5219c5648a3b0b35c55139db55 | [
"MIT"
] | null | null | null | project/asks/migrations/0002_auto_20211002_1924.py | fael07/Live-Questions-Backend | 40813ba8a34edc5219c5648a3b0b35c55139db55 | [
"MIT"
] | null | null | null | project/asks/migrations/0002_auto_20211002_1924.py | fael07/Live-Questions-Backend | 40813ba8a34edc5219c5648a3b0b35c55139db55 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.7 on 2021-10-02 22:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('asks', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Option',
fields=[
('id', mode... | 29.017241 | 117 | 0.526441 | 146 | 1,683 | 5.917808 | 0.452055 | 0.083333 | 0.138889 | 0.175926 | 0.398148 | 0.398148 | 0.266204 | 0 | 0 | 0 | 0 | 0.027298 | 0.346999 | 1,683 | 57 | 118 | 29.526316 | 0.758872 | 0.026738 | 0 | 0.490196 | 1 | 0 | 0.109413 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019608 | 0 | 0.078431 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2ccd10be9cf005daa54af29a59abb7193ea30f61 | 987 | py | Python | Python_OO/Encapsulamento.py | Madara701/Python_OO | 8d67569a8c4771dd82f5259c2ed5e782cd4e4036 | [
"Apache-2.0"
] | null | null | null | Python_OO/Encapsulamento.py | Madara701/Python_OO | 8d67569a8c4771dd82f5259c2ed5e782cd4e4036 | [
"Apache-2.0"
] | null | null | null | Python_OO/Encapsulamento.py | Madara701/Python_OO | 8d67569a8c4771dd82f5259c2ed5e782cd4e4036 | [
"Apache-2.0"
] | null | null | null | '''
# Exemplo de encapsulamento da forma que é feita em Java
class P:
def __init__(self,x):
self.__x = x #<- tornando ele um atributo privado
def getX(self):
return self.__x
def setX(self, x):
if x > 0:
self.__x = x
p = P(10) #<- passei o primeiro valor que deve chamar... | 23.5 | 93 | 0.619048 | 163 | 987 | 3.650307 | 0.404908 | 0.084034 | 0.040336 | 0.043697 | 0.319328 | 0.238655 | 0.238655 | 0.238655 | 0.238655 | 0.238655 | 0 | 0.011284 | 0.281662 | 987 | 41 | 94 | 24.073171 | 0.827927 | 0.611955 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 1 | 0.214286 | false | 0 | 0 | 0.071429 | 0.357143 | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2d5ccd08fb025be9e587c89b99c79c78aebefef | 503 | py | Python | comments/migrations/0003_auto_20190126_0840.py | lesspointless/Shakal-NG | eee491af94527228735c2bca7644605effd74b37 | [
"MIT"
] | 10 | 2016-02-06T15:40:30.000Z | 2018-09-27T15:15:13.000Z | comments/migrations/0003_auto_20190126_0840.py | lesspointless/Shakal-NG | eee491af94527228735c2bca7644605effd74b37 | [
"MIT"
] | 94 | 2016-02-04T18:39:36.000Z | 2022-01-20T05:25:00.000Z | comments/migrations/0003_auto_20190126_0840.py | lesspointless/Shakal-NG | eee491af94527228735c2bca7644605effd74b37 | [
"MIT"
] | 8 | 2016-05-10T20:29:53.000Z | 2021-02-07T00:50:31.000Z | # Generated by Django 2.1 on 2019-01-26 07:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('comments', '0002_auto_20170603_1644'),
]
operations = [
migrations.AlterUniqueTogether(
name='commentflag',
unique_together=set(),
),
migrations.RemoveField(
... | 17.344828 | 45 | 0.691849 | 52 | 503 | 6.576923 | 0.673077 | 0.175439 | 0.152047 | 0.175439 | 0.263158 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0.072115 | 0.172962 | 503 | 28 | 46 | 17.964286 | 0.75 | 0.085487 | 0 | 0.363636 | 1 | 0 | 0.187773 | 0.050218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
e2d660e0b5ccf4c5de10c851eccbbeca7e9ba7b7 | 387 | py | Python | src/sendmeanemail.py | CoolTechOrganisation/raspberry-api | 704d4c5ccef21cf0ea7667b98d07547578e17f51 | [
"MIT"
] | null | null | null | src/sendmeanemail.py | CoolTechOrganisation/raspberry-api | 704d4c5ccef21cf0ea7667b98d07547578e17f51 | [
"MIT"
] | null | null | null | src/sendmeanemail.py | CoolTechOrganisation/raspberry-api | 704d4c5ccef21cf0ea7667b98d07547578e17f51 | [
"MIT"
] | null | null | null | import smtplib
smtpUser = ''
smtpPass = ''
toAdd = ''
fromAdd = smtpUser
subject = ''
header = 'To: ' + '\n' + 'From: ' + fromAdd + '\n' + 'Subject :' + subject
body = ''
print header + '\n' + body
smtp = smtplib.SMTP('smtp.gmail.com', 587)
smtp.ehlo()
smtp.starttls()
smtp.ehlo()
smtp.login(smtpUser, smtpPass)... | 16.125 | 75 | 0.614987 | 48 | 387 | 4.958333 | 0.458333 | 0.134454 | 0.07563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009464 | 0.180879 | 387 | 24 | 76 | 16.125 | 0.741325 | 0 | 0 | 0.125 | 0 | 0 | 0.110825 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | null | null | 0.125 | 0.0625 | null | null | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
e2df7962b641dd4664ecec2ae0a2c8f36b185a2b | 738 | py | Python | smallactsmanifesto/signatures/forms.py | luzfcb/smallactsmanifesto | b1fc3ca6de413b8c03a01122014c5c599cb3da40 | [
"MIT"
] | 11 | 2015-10-17T02:44:58.000Z | 2021-03-05T15:18:59.000Z | smallactsmanifesto/signatures/forms.py | luzfcb/smallactsmanifesto | b1fc3ca6de413b8c03a01122014c5c599cb3da40 | [
"MIT"
] | 2 | 2016-01-17T12:06:58.000Z | 2018-05-05T19:48:48.000Z | smallactsmanifesto/signatures/forms.py | luzfcb/smallactsmanifesto | b1fc3ca6de413b8c03a01122014c5c599cb3da40 | [
"MIT"
] | 5 | 2016-01-16T11:19:31.000Z | 2019-06-07T20:13:32.000Z | # coding: utf-8
from django import forms
from django.utils.translation import ugettext_lazy as _
from captcha.fields import ReCaptchaField
from .models import Signatory
from .utils import mark_safe_lazy as safe
HELP_CAPTCHA = safe(_('Just a small act to prevent spam. <em>Sorry about this!</em>'))
class SignupForm(f... | 28.384615 | 86 | 0.689702 | 93 | 738 | 5.387097 | 0.623656 | 0.03992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001709 | 0.207317 | 738 | 25 | 87 | 29.52 | 0.854701 | 0.017615 | 0 | 0 | 0 | 0 | 0.124481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.294118 | 0 | 0.647059 | 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 | 1 | 0 | 0 | 2 |
e2dfe764fe9ea5057fc7e5b4b8e6089f8b160246 | 768 | py | Python | packages/ekstep_data_pipelines/audio_analysis/speaker_analysis/file_cluster_mapping.py | jeevan-revaneppa-hirethanad/audio-to-speech-pipeline | a5bd7f0321834507e4157eb1aea8659cd205bf1c | [
"MIT"
] | 23 | 2021-03-20T13:24:37.000Z | 2022-03-26T19:02:33.000Z | packages/ekstep_data_pipelines/audio_analysis/speaker_analysis/file_cluster_mapping.py | jeevan-revaneppa-hirethanad/audio-to-speech-pipeline | a5bd7f0321834507e4157eb1aea8659cd205bf1c | [
"MIT"
] | 10 | 2021-04-06T14:00:35.000Z | 2022-03-16T12:27:13.000Z | packages/ekstep_data_pipelines/audio_analysis/speaker_analysis/file_cluster_mapping.py | jeevan-revaneppa-hirethanad/audio-to-speech-pipeline | a5bd7f0321834507e4157eb1aea8659cd205bf1c | [
"MIT"
] | 16 | 2021-03-30T10:57:34.000Z | 2022-03-23T01:07:19.000Z | import json
def save_json(file_path, mappings):
with open(file_path, "w+") as file:
json.dump(mappings, file)
def file_to_speaker_map(speaker_to_file_map):
file_to_speaker = {}
for speaker in speaker_to_file_map:
files = speaker_to_file_map.get(speaker)
for file in files:
... | 28.444444 | 88 | 0.670573 | 110 | 768 | 4.3 | 0.254545 | 0.190275 | 0.192389 | 0.20296 | 0.308668 | 0.22833 | 0.118393 | 0 | 0 | 0 | 0 | 0.006768 | 0.230469 | 768 | 26 | 89 | 29.538462 | 0.79357 | 0 | 0 | 0.1 | 0 | 0 | 0.005208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
e2f30d3a34d3afe633e7babc6d3703910a51d3d8 | 173 | py | Python | ProgettiHWSW/const.py | ArdaSeremet/progettihwsw | 565d1fb35d88d3e7c272c03b8a190231179cce74 | [
"MIT"
] | 1 | 2020-08-28T21:46:12.000Z | 2020-08-28T21:46:12.000Z | ProgettiHWSW/const.py | ArdaSeremet/progettihwsw | 565d1fb35d88d3e7c272c03b8a190231179cce74 | [
"MIT"
] | null | null | null | ProgettiHWSW/const.py | ArdaSeremet/progettihwsw | 565d1fb35d88d3e7c272c03b8a190231179cce74 | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Arda Seremet <ardaseremet@outlook.com>
TURN_ON_BASE = 16
TURN_OFF_BASE = 116
TOGGLE_BASE = 0
TEMP_MONOSTABLE_BASE = 200
STATUS_XML_PATH = "status.xml"
| 21.625 | 59 | 0.780347 | 28 | 173 | 4.5 | 0.785714 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086667 | 0.132948 | 173 | 7 | 60 | 24.714286 | 0.753333 | 0.32948 | 0 | 0 | 0 | 0 | 0.087719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
e2fa0aa5791ecb78f7681d90c87d0dd344dafd21 | 990 | py | Python | easy/108-convert-sorted-array-to-binary-search-tree.py | wanglongjiang/leetcode | c61d2e719e81575cfb5bde9d64e15cee7cf01ef3 | [
"MIT"
] | 2 | 2021-03-14T11:38:26.000Z | 2021-03-14T11:38:30.000Z | easy/108-convert-sorted-array-to-binary-search-tree.py | wanglongjiang/leetcode | c61d2e719e81575cfb5bde9d64e15cee7cf01ef3 | [
"MIT"
] | null | null | null | easy/108-convert-sorted-array-to-binary-search-tree.py | wanglongjiang/leetcode | c61d2e719e81575cfb5bde9d64e15cee7cf01ef3 | [
"MIT"
] | 1 | 2022-01-17T19:33:23.000Z | 2022-01-17T19:33:23.000Z | '''
将有序数组转换为二叉搜索树
给你一个整数数组 nums ,其中元素已经按 升序 排列,请你将其转换为一棵 高度平衡 二叉搜索树。
高度平衡 二叉树是一棵满足「每个节点的左右两个子树的高度差的绝对值不超过 1 」的二叉树。
'''
from typing import List
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
'''
思路:递归创建树。
时间复杂度:O(n)
空间... | 25.384615 | 98 | 0.570707 | 121 | 990 | 4.636364 | 0.38843 | 0.149733 | 0.181818 | 0.122995 | 0.212121 | 0.212121 | 0.146168 | 0.146168 | 0 | 0 | 0 | 0.015919 | 0.30202 | 990 | 38 | 99 | 26.052632 | 0.795948 | 0.112121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0 | 0.6 | 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 | 1 | 0 | 0 | 2 |
e2fcbd9acf6f2cb524344b5614e1587fae9a574d | 1,734 | py | Python | scripts/test.py | xinchaosong/rdda_ur5_control | 309f381b9a3fc975b9d6c70de35fc778d3a1064f | [
"BSD-3-Clause"
] | 6 | 2020-10-05T03:11:49.000Z | 2021-08-23T19:04:47.000Z | scripts/test.py | xinchaosong/rdda_ur5_control | 309f381b9a3fc975b9d6c70de35fc778d3a1064f | [
"BSD-3-Clause"
] | null | null | null | scripts/test.py | xinchaosong/rdda_ur5_control | 309f381b9a3fc975b9d6c70de35fc778d3a1064f | [
"BSD-3-Clause"
] | 1 | 2020-10-05T03:11:54.000Z | 2020-10-05T03:11:54.000Z | #!/usr/bin/env python
from time import sleep
import rospy
from rdda_ur5_control.srv import SetRddaParam, RddaData, Move, MoveTraj, NoParam
if __name__ == "__main__":
rospy.wait_for_service('rdda_ur5_control/home_rdda')
rospy.wait_for_service('rdda_ur5_control/set_rdda_stiffness')
rospy.wait_for_service('r... | 41.285714 | 100 | 0.707036 | 242 | 1,734 | 4.644628 | 0.223141 | 0.093416 | 0.186833 | 0.118327 | 0.588078 | 0.535587 | 0.336299 | 0.13968 | 0.071174 | 0 | 0 | 0.047619 | 0.188581 | 1,734 | 41 | 101 | 42.292683 | 0.751244 | 0.151096 | 0 | 0.076923 | 0 | 0 | 0.305746 | 0.284542 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
390da76a8bf622886139deafd78e028a0a5a866c | 884 | py | Python | display_sars_cov2_infection_study_results.py | vporubsky/COMBINE_2020_reproducibility | 43ae5cda128845fbb1d63bc22dc97c0afff04c0c | [
"Apache-2.0"
] | null | null | null | display_sars_cov2_infection_study_results.py | vporubsky/COMBINE_2020_reproducibility | 43ae5cda128845fbb1d63bc22dc97c0afff04c0c | [
"Apache-2.0"
] | null | null | null | display_sars_cov2_infection_study_results.py | vporubsky/COMBINE_2020_reproducibility | 43ae5cda128845fbb1d63bc22dc97c0afff04c0c | [
"Apache-2.0"
] | null | null | null | '''display_sars_cov2_infection_study_results.py
This script is executed using the CMD tag in the Dockerfile
in order to display modeling study results to the console and
to an html site allocated on the host machine.
'''
from flask import Flask, render_template
from shutil import move
from os import getcwd
app = Flas... | 36.833333 | 98 | 0.757919 | 121 | 884 | 5.198347 | 0.504132 | 0.063593 | 0.081081 | 0.066773 | 0.235294 | 0.235294 | 0.133545 | 0 | 0 | 0 | 0 | 0.010554 | 0.142534 | 884 | 24 | 99 | 36.833333 | 0.819261 | 0.242081 | 0 | 0 | 0 | 0 | 0.317771 | 0.262048 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.4375 | 0.0625 | 0.5625 | 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 | 1 | 0 | 0 | 2 |
391c64ffe43e8158ce594a3b15df0fa54c77d26e | 8,326 | py | Python | data/external/repositories/208513/kaggle-liberty-hazard-prediction-master/tuning/mutual_info.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/208513/kaggle-liberty-hazard-prediction-master/tuning/mutual_info.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories/208513/kaggle-liberty-hazard-prediction-master/tuning/mutual_info.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | # Note: Kaggle only runs Python 3, not Python 2
# We'll use the pandas library to read CSV files into dataframes
import pandas as pd
import numpy as np
from sklearn import preprocessing
from sklearn.linear_model import SGDRegressor
from sklearn import decomposition, pipeline, metrics, grid_search
from sklearn.metrics ... | 33.171315 | 103 | 0.675354 | 1,121 | 8,326 | 4.837645 | 0.246209 | 0.014383 | 0.011064 | 0.020284 | 0.128711 | 0.117463 | 0.11064 | 0.05827 | 0.028398 | 0.010695 | 0 | 0.40975 | 0.130315 | 8,326 | 251 | 104 | 33.171315 | 0.33918 | 0.641485 | 0 | 0.101449 | 0 | 0 | 0.013065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028986 | false | 0 | 0.086957 | 0 | 0.144928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
3924f850ecca94736efdcc056138a74edf483435 | 279 | py | Python | main.py | Shivams9/pythoncodecamp | e6cd27f4704a407ee360414a8c9236b254117a59 | [
"MIT"
] | 6 | 2021-08-04T08:15:22.000Z | 2022-02-02T11:15:56.000Z | main.py | Maurya232Abhishek/pythoncodecamp | 729d2a6167da35f1d6d4786ea43a74fa0c1e4a89 | [
"MIT"
] | 14 | 2021-08-02T06:28:00.000Z | 2022-03-25T10:44:15.000Z | main.py | Maurya232Abhishek/pythoncodecamp | 729d2a6167da35f1d6d4786ea43a74fa0c1e4a89 | [
"MIT"
] | 6 | 2021-07-16T04:56:41.000Z | 2022-02-16T04:40:06.000Z | # A compilation of Python programs for learning purposes.
def print_hi(name):
print(f'Hi, {name}')
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
print_hi('Python')
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
| 19.928571 | 61 | 0.706093 | 43 | 279 | 4.348837 | 0.744186 | 0.074866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179211 | 279 | 13 | 62 | 21.461538 | 0.816594 | 0.612903 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0.75 | 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 | 1 | 0 | 2 |
3929bec32ef1c5ce780461ed9cf4da4c8626eee2 | 894 | py | Python | reddit_dashboard/migrations/0002_auto_20201017_1650.py | tarikyayla/reddit_dashboard | e5ecf3349a5c9333793c3ae5375bc4a0e501a16c | [
"MIT"
] | null | null | null | reddit_dashboard/migrations/0002_auto_20201017_1650.py | tarikyayla/reddit_dashboard | e5ecf3349a5c9333793c3ae5375bc4a0e501a16c | [
"MIT"
] | null | null | null | reddit_dashboard/migrations/0002_auto_20201017_1650.py | tarikyayla/reddit_dashboard | e5ecf3349a5c9333793c3ae5375bc4a0e501a16c | [
"MIT"
] | 1 | 2020-11-27T23:24:09.000Z | 2020-11-27T23:24:09.000Z | # Generated by Django 3.1.2 on 2020-10-17 13:50
import django.contrib.auth.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reddit_dashboard', '0001_initial'),
]
operations = [
migrations.AlterModelManagers(
name='dashboarduse... | 24.833333 | 70 | 0.551454 | 79 | 894 | 6.063291 | 0.531646 | 0.141962 | 0.162839 | 0.187891 | 0.313152 | 0.313152 | 0.313152 | 0 | 0 | 0 | 0 | 0.03204 | 0.336689 | 894 | 35 | 71 | 25.542857 | 0.775717 | 0.050336 | 0 | 0.344828 | 1 | 0 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068966 | 0 | 0.172414 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
39340c106072ca98c8d5dadf76bb06e25cb34669 | 4,409 | py | Python | api/generated/python/azure-iiot-opc-registry/models/__init__.py | benjguin/Industrial-IoT | 1bc68a62383f0849bbb18f373c9566d8d30c1d68 | [
"MIT"
] | 2 | 2021-08-06T19:40:53.000Z | 2021-08-07T05:21:24.000Z | api/generated/python/azure-iiot-opc-registry/models/__init__.py | benjguin/Industrial-IoT | 1bc68a62383f0849bbb18f373c9566d8d30c1d68 | [
"MIT"
] | null | null | null | api/generated/python/azure-iiot-opc-registry/models/__init__.py | benjguin/Industrial-IoT | 1bc68a62383f0849bbb18f373c9566d8d30c1d68 | [
"MIT"
] | null | null | null | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 2.3.33.0
# ... | 44.535354 | 96 | 0.821048 | 343 | 4,409 | 10.221574 | 0.341108 | 0.073018 | 0.127781 | 0.02567 | 0.156303 | 0.08899 | 0.08899 | 0.08899 | 0.08899 | 0 | 0 | 0.001514 | 0.101157 | 4,409 | 98 | 97 | 44.989796 | 0.883169 | 0.104332 | 0 | 0 | 0 | 0 | 0.258253 | 0.208481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.383721 | 0 | 0.383721 | 0 | 0 | 0 | 1 | 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 | 2 |
39393fd1663cd51cc893648130264d6a536c39eb | 374 | py | Python | ProjectEuler.Problem.024.py | jihunroh/ProjectEuler-Python | 2fceaf5c3dd61038004b6128c5d9ee7a76142bca | [
"MIT"
] | null | null | null | ProjectEuler.Problem.024.py | jihunroh/ProjectEuler-Python | 2fceaf5c3dd61038004b6128c5d9ee7a76142bca | [
"MIT"
] | null | null | null | ProjectEuler.Problem.024.py | jihunroh/ProjectEuler-Python | 2fceaf5c3dd61038004b6128c5d9ee7a76142bca | [
"MIT"
] | null | null | null | from ProjectEulerCommons.Base import *
Answer(
int(''.join(map(str, first_true_value(permutations(list(range(10))), pred = lambda enum: enum[0] == 1000000 - 1))))
)
"""
------------------------------------------------
ProjectEuler.Problem.024.py
The Answer is: 2783915460
Time Elasped: 1.132969617843628sec... | 28.769231 | 119 | 0.516043 | 35 | 374 | 5.457143 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120846 | 0.114973 | 374 | 12 | 120 | 31.166667 | 0.456193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
394ab9998819718496fb6f7b44cc4fce8aaac5ee | 2,869 | py | Python | pysnmp-with-texts/TOS-SMI.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/TOS-SMI.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/TOS-SMI.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TOS-SMI (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TOS-SMI
# Produced by pysmi-0.3.4 at Wed May 1 15:24:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)... | 102.464286 | 505 | 0.758801 | 350 | 2,869 | 6.214286 | 0.411429 | 0.01931 | 0.025747 | 0.032184 | 0.346207 | 0.255172 | 0.255172 | 0.250115 | 0.250115 | 0.227126 | 0 | 0.087375 | 0.094458 | 2,869 | 27 | 506 | 106.259259 | 0.749808 | 0.107354 | 0 | 0 | 0 | 0.052632 | 0.369514 | 0.02547 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.315789 | 0 | 0.315789 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
394b500f95084d103ffa03aaf2953feafa9712f2 | 2,354 | py | Python | translation.py | drmhdh/dtpdftools | a45876cc95dff4f0742ea47a4a940ac770955139 | [
"Apache-2.0"
] | null | null | null | translation.py | drmhdh/dtpdftools | a45876cc95dff4f0742ea47a4a940ac770955139 | [
"Apache-2.0"
] | null | null | null | translation.py | drmhdh/dtpdftools | a45876cc95dff4f0742ea47a4a940ac770955139 | [
"Apache-2.0"
] | null | null | null | class Translation(object):
START_TEXT = """Hello <i><b>{}</b></i>,
I Can rename ✍ with custom thumbnail and upload as video/file
Type /help for more details."""
DOWNLOAD_START_VIDEO = "Downloading Video to my server.....📥"
DOWNLOAD_START = "Downloading File to my server.....📥"
UPLOAD_START_VIDEO = "Up... | 69.235294 | 200 | 0.723025 | 370 | 2,354 | 4.497297 | 0.372973 | 0.063101 | 0.057091 | 0.0625 | 0.294471 | 0.231971 | 0.199519 | 0.126202 | 0.126202 | 0.069712 | 0 | 0.005035 | 0.15633 | 2,354 | 33 | 201 | 71.333333 | 0.818731 | 0 | 0 | 0 | 0 | 0.151515 | 0.70051 | 0.043331 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 2 |
1a33590146501a5c20b0ff147ebe8e77a6b706a7 | 26,634 | py | Python | editor/widgets/toolbox_EPICS.py | despiegk/remi | cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4 | [
"Apache-2.0"
] | null | null | null | editor/widgets/toolbox_EPICS.py | despiegk/remi | cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4 | [
"Apache-2.0"
] | 6 | 2020-04-05T04:58:15.000Z | 2020-04-05T05:39:37.000Z | editor/widgets/toolbox_EPICS.py | despiegk/remi | cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import remi
import remi.gui as gui
from remi.gui import *
from threading import Timer
import traceback
import time
import math
import epics
#from epics import caget, caput, cainfo
style_inheritance_dict = {'opacity':'inherit', 'overflow':'inherit', 'background-color':'inherit', 'background-ima... | 69.722513 | 3,039 | 0.756176 | 2,524 | 26,634 | 7.802694 | 0.217116 | 0.015538 | 0.012288 | 0.009901 | 0.277242 | 0.222301 | 0.19082 | 0.178379 | 0.155987 | 0.148929 | 0 | 0.076584 | 0.140572 | 26,634 | 382 | 3,040 | 69.722513 | 0.783792 | 0.058346 | 0 | 0.285714 | 0 | 0.013605 | 0.470955 | 0.3842 | 0 | 1 | 0 | 0 | 0 | 1 | 0.122449 | false | 0 | 0.030612 | 0.027211 | 0.265306 | 0.006803 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a4e44fa1437f33e3868edd4c85aa17b157bd285 | 311 | py | Python | Scraping/DarkWebScraper/main.py | Shokr/Python_Playbook | e29ba874890349742f198982cc40763b30a58842 | [
"MIT"
] | 12 | 2020-04-05T10:01:11.000Z | 2022-02-05T08:11:54.000Z | Scraping/DarkWebScraper/main.py | Shokr/Python_Playbook | e29ba874890349742f198982cc40763b30a58842 | [
"MIT"
] | null | null | null | Scraping/DarkWebScraper/main.py | Shokr/Python_Playbook | e29ba874890349742f198982cc40763b30a58842 | [
"MIT"
] | 6 | 2020-04-03T22:24:34.000Z | 2022-01-28T12:22:34.000Z | # https://justhackerthings.com/post/building-a-dark-web-scraper/
import sys
def main():
# Disable SSL warnings
try:
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings()
except:
pass
START = sys.argv[1]
if __name__ == "__main__":
main()
| 16.368421 | 64 | 0.646302 | 36 | 311 | 5.333333 | 0.75 | 0.166667 | 0.239583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.237942 | 311 | 18 | 65 | 17.277778 | 0.797468 | 0.266881 | 0 | 0 | 0 | 0 | 0.035556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1a55793e5089f89d8e094d3d19b917c7ca92caad | 1,728 | py | Python | app/nanoleaf/layout.py | kyleposluns/nanoleaf | b83fcf6d92a54b7ce2d92b04355cedf63f09e13b | [
"MIT"
] | null | null | null | app/nanoleaf/layout.py | kyleposluns/nanoleaf | b83fcf6d92a54b7ce2d92b04355cedf63f09e13b | [
"MIT"
] | null | null | null | app/nanoleaf/layout.py | kyleposluns/nanoleaf | b83fcf6d92a54b7ce2d92b04355cedf63f09e13b | [
"MIT"
] | null | null | null | from app.nanoleaf.model import AuroraObject
class PanelLayout(AuroraObject):
def __init__(self, requester, rhythm):
super().__init__(requester)
self.rhythm = rhythm
@property
def orientation(self):
"""Returns the orientation of the device (0-360)"""
return self._requester.... | 37.565217 | 100 | 0.678241 | 193 | 1,728 | 5.968912 | 0.367876 | 0.078993 | 0.104167 | 0.135417 | 0.403646 | 0.341146 | 0.341146 | 0.341146 | 0.294271 | 0.128472 | 0 | 0.008863 | 0.216435 | 1,728 | 46 | 101 | 37.565217 | 0.84195 | 0.274884 | 0 | 0.230769 | 0 | 0 | 0.175127 | 0.159898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0.038462 | 0 | 0.576923 | 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 | 1 | 0 | 0 | 2 |
1a617a21f77fb7f52b6d11e5c92d2818e85cb8ab | 326 | py | Python | powerwiki/markup/md.py | radiac/django-powerwiki | 3df80384261bdef8d25b1df9459073f0ae928a86 | [
"BSD-3-Clause"
] | 4 | 2020-09-10T20:36:02.000Z | 2021-11-03T17:09:11.000Z | powerwiki/markup/md.py | radiac/django-powerwiki | 3df80384261bdef8d25b1df9459073f0ae928a86 | [
"BSD-3-Clause"
] | null | null | null | powerwiki/markup/md.py | radiac/django-powerwiki | 3df80384261bdef8d25b1df9459073f0ae928a86 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.auth.models import AbstractUser
import markdown
from .base import MarkupEngine
class Markdown(MarkupEngine):
label = "Markdown"
extensions = ["extra"]
def to_html(self, raw: str, user: AbstractUser) -> str:
md = markdown.markdown(raw, extensions=self.extensions)
retu... | 21.733333 | 63 | 0.705521 | 38 | 326 | 6.026316 | 0.605263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199387 | 326 | 14 | 64 | 23.285714 | 0.877395 | 0 | 0 | 0 | 0 | 0 | 0.039877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.888889 | 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 | 1 | 0 | 0 | 2 |
1a6ed059d7b1feb8a9fc1f37a0a29d603590be28 | 447 | py | Python | aiautomation/testcase/scenarios_recovery.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | aiautomation/testcase/scenarios_recovery.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | aiautomation/testcase/scenarios_recovery.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# coding=utf-8
import abc
from aiautomation.testcase.browser import Browser
class ScenariosRecovery:
"""
场景恢复的基类
"""
__metaclass__ = abc.ABCMeta
def __init__(self, logger, config):
self._browser = None
self._logger = logger
self._config = config
@ab... | 17.88 | 49 | 0.60179 | 43 | 447 | 6 | 0.674419 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.302013 | 447 | 24 | 50 | 18.625 | 0.820513 | 0.158837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.090909 | 0.181818 | 0 | 0.545455 | 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 | 1 | 0 | 0 | 2 |
1a712905e9ec638daa721b6a4b9b79d609dea3fe | 686 | py | Python | tests/nevermind_test.py | Arna-Maity/corobo | 856989ada0eb56edd8a2232a4ada12d90fc33c85 | [
"MIT"
] | 81 | 2017-05-09T13:20:10.000Z | 2021-04-11T14:56:24.000Z | tests/nevermind_test.py | Arna-Maity/corobo | 856989ada0eb56edd8a2232a4ada12d90fc33c85 | [
"MIT"
] | 648 | 2017-05-09T13:57:07.000Z | 2021-04-27T12:44:26.000Z | tests/nevermind_test.py | Arna-Maity/corobo | 856989ada0eb56edd8a2232a4ada12d90fc33c85 | [
"MIT"
] | 137 | 2017-05-28T04:11:00.000Z | 2021-09-04T17:46:38.000Z | from tests.isolated_testcase import IsolatedTestCase
class NevermindTest(IsolatedTestCase):
def test_nevermind(self):
self.assertCommand('!nevermind', 'I\'m sorry :(')
self.assertCommand('!nm', 'I\'m sorry :(')
self.assertCommand('!nEverMINd', 'I\'m sorry :(')
self.assertCommand('... | 42.875 | 80 | 0.616618 | 71 | 686 | 5.929577 | 0.323944 | 0.32304 | 0.066508 | 0.104513 | 0.453682 | 0.320665 | 0.320665 | 0.320665 | 0.320665 | 0.320665 | 0 | 0 | 0.218659 | 686 | 15 | 81 | 45.733333 | 0.785448 | 0 | 0 | 0 | 0 | 0 | 0.306122 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a72bf1b8ebe20d868f1d3cc9bd23715f706abbd | 13,401 | py | Python | kikimr/public/api/protos/ydb_discovery_pb2.py | MihanixA/ydb-python-sdk | d1b93c6d2409a87c350acd604915576891d1e4f3 | [
"Apache-2.0"
] | null | null | null | kikimr/public/api/protos/ydb_discovery_pb2.py | MihanixA/ydb-python-sdk | d1b93c6d2409a87c350acd604915576891d1e4f3 | [
"Apache-2.0"
] | null | null | null | kikimr/public/api/protos/ydb_discovery_pb2.py | MihanixA/ydb-python-sdk | d1b93c6d2409a87c350acd604915576891d1e4f3 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: kikimr/public/api/protos/ydb_discovery.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... | 36.514986 | 1,078 | 0.753526 | 1,617 | 13,401 | 5.952381 | 0.125541 | 0.043221 | 0.025143 | 0.045714 | 0.638442 | 0.522597 | 0.522597 | 0.510753 | 0.502857 | 0.502857 | 0 | 0.033101 | 0.120812 | 13,401 | 366 | 1,079 | 36.614754 | 0.783823 | 0.049549 | 0 | 0.640867 | 1 | 0.006192 | 0.201257 | 0.159686 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021672 | 0 | 0.021672 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1a8287bb24f4652787ef08c0f07c41db1efb2cd8 | 1,529 | py | Python | src/sql_injection/bad_authentication.py | Enprogames/SQL-Injection-Example | 6c89fd388373c58c7bfcfd3db431d33df28df30a | [
"Apache-2.0"
] | null | null | null | src/sql_injection/bad_authentication.py | Enprogames/SQL-Injection-Example | 6c89fd388373c58c7bfcfd3db431d33df28df30a | [
"Apache-2.0"
] | null | null | null | src/sql_injection/bad_authentication.py | Enprogames/SQL-Injection-Example | 6c89fd388373c58c7bfcfd3db431d33df28df30a | [
"Apache-2.0"
] | null | null | null | # sql_injection/bad_authentication.py
from django.conf import settings
from django.contrib.auth.backends import BaseBackend
from django.contrib.auth.hashers import check_password
from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User
class SettingsBackend(BaseBackend):
"... | 39.205128 | 140 | 0.683453 | 191 | 1,529 | 5.324607 | 0.434555 | 0.049164 | 0.066863 | 0.082596 | 0.166175 | 0.129794 | 0.06293 | 0 | 0 | 0 | 0 | 0.016625 | 0.213211 | 1,529 | 38 | 141 | 40.236842 | 0.828761 | 0.30085 | 0 | 0.090909 | 0 | 0 | 0.105518 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.227273 | 0.227273 | 0 | 0.545455 | 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 | 1 | 0 | 0 | 2 |
1a89418df5aafa2cea0e5892d56ee2b5f2a950c1 | 9,495 | py | Python | custom/aaa/tests/test_eligible_couple_query_helper.py | dannyroberts/commcare-hq | 4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598 | [
"BSD-3-Clause"
] | null | null | null | custom/aaa/tests/test_eligible_couple_query_helper.py | dannyroberts/commcare-hq | 4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598 | [
"BSD-3-Clause"
] | null | null | null | custom/aaa/tests/test_eligible_couple_query_helper.py | dannyroberts/commcare-hq | 4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from __future__ import unicode_literals
from datetime import date
from django.test.testcases import TestCase
from custom.aaa.dbaccessors import EligibleCoupleQueryHelper
from custom.aaa.models import Child, Woman, WomanHistory
from six.moves import range
class TestEligibleCou... | 37.98 | 108 | 0.562717 | 877 | 9,495 | 5.873432 | 0.148233 | 0.044263 | 0.051252 | 0.038827 | 0.73112 | 0.702 | 0.682586 | 0.676762 | 0.676762 | 0.664725 | 0 | 0.039778 | 0.316904 | 9,495 | 249 | 109 | 38.13253 | 0.754394 | 0 | 0 | 0.625 | 0 | 0 | 0.208741 | 0.067404 | 0 | 0 | 0 | 0 | 0.066964 | 1 | 0.071429 | false | 0 | 0.03125 | 0.004464 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
1a989a264435ff4aa2d09487fe41bd4339c5d13b | 4,145 | pyp | Python | bootstrapper.pyp | NiklasRosenstein/c4ddocs | 9be4efba47d0dbd5787622933b21fdcf8fb5272e | [
"MIT"
] | 29 | 2017-03-10T18:00:11.000Z | 2021-02-22T22:56:36.000Z | bootstrapper.pyp | NiklasRosenstein/c4ddev | 9be4efba47d0dbd5787622933b21fdcf8fb5272e | [
"MIT"
] | 17 | 2017-04-26T14:13:49.000Z | 2018-07-07T21:37:35.000Z | bootstrapper.pyp | NiklasRosenstein/c4ddocs | 9be4efba47d0dbd5787622933b21fdcf8fb5272e | [
"MIT"
] | 5 | 2017-07-21T22:24:15.000Z | 2020-08-17T05:51:19.000Z | # localimport-v1.7.3-blob-mcw99
import base64 as b, types as t, zlib as z; m=t.ModuleType('localimport');
m.__file__ = __file__; blob=b'\
eJydWUuP20YSvutXEMiBpIfmeOLDAkJo7GaRAMEGORiLPUQrEBTVkumhSKK75Uhj5L+nHv2iSNpyfBiTXY+uqq76qpoqy+qsP\
/SyLIv4t+a5rVT0vleiU1o0XfSDdM8dEf95PFVNm9f96V28KstPQqqm71D4Kf9H/jZeNaehlzqq++Fqn49t... | 61.865672 | 99 | 0.895537 | 268 | 4,145 | 13.716418 | 0.723881 | 0.014146 | 0.009793 | 0.01197 | 0.021219 | 0.021219 | 0.021219 | 0.021219 | 0 | 0 | 0 | 0.12317 | 0.04415 | 4,145 | 66 | 100 | 62.80303 | 0.804644 | 0.039566 | 0 | 0.035714 | 0 | 0 | 0.016348 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.160714 | 0 | 0.214286 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1aa1c12c8ef5bbdcb0a900983b817113c8754fc5 | 1,080 | py | Python | metrics.py | mrhhodd/capsnet-keras | 3e4f9024552072f27d124dda3ff346855c1ca5ca | [
"MIT"
] | null | null | null | metrics.py | mrhhodd/capsnet-keras | 3e4f9024552072f27d124dda3ff346855c1ca5ca | [
"MIT"
] | null | null | null | metrics.py | mrhhodd/capsnet-keras | 3e4f9024552072f27d124dda3ff346855c1ca5ca | [
"MIT"
] | null | null | null | from tensorflow.keras import backend as K
EPSILON = K.epsilon()
def accuracy(y_true, y_pred):
[tp, tn, fp, fn] = _analyse_data(y_true, y_pred)
return K.mean((tp + tn) / (tp + tn + fp + fn + EPSILON))
def specificity(y_true, y_pred):
[_, tn, fp, _] = _analyse_data(y_true, y_pred)
return K.mean(tn / ... | 30.857143 | 76 | 0.641667 | 181 | 1,080 | 3.546961 | 0.198895 | 0.116822 | 0.102804 | 0.17134 | 0.426791 | 0.376947 | 0.297508 | 0.247664 | 0.247664 | 0.197819 | 0 | 0.012896 | 0.210185 | 1,080 | 34 | 77 | 31.764706 | 0.739742 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0 | 0.478261 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1aa1ca7c87724c54b585e2a6a3bad71ad929799e | 2,598 | py | Python | tests/test_envfile.py | jaysonsantos/prettyconf | 3c6a17340d040b6b39b7185b888f0a2bdc04fb0c | [
"MIT"
] | null | null | null | tests/test_envfile.py | jaysonsantos/prettyconf | 3c6a17340d040b6b39b7185b888f0a2bdc04fb0c | [
"MIT"
] | null | null | null | tests/test_envfile.py | jaysonsantos/prettyconf | 3c6a17340d040b6b39b7185b888f0a2bdc04fb0c | [
"MIT"
] | null | null | null | import os
from prettyconf.loaders import EnvFile
from .base import BaseTestCase
class EnvFileTestCase(BaseTestCase):
def setUp(self):
super(EnvFileTestCase, self).setUp()
self.envfile = os.path.join(self.test_files_path, "envfile")
def test_basic_config_object(self):
config = EnvFile... | 38.776119 | 108 | 0.667821 | 308 | 2,598 | 5.438312 | 0.292208 | 0.170149 | 0.200597 | 0.071642 | 0.435224 | 0.316418 | 0.255522 | 0.185075 | 0.185075 | 0.071642 | 0 | 0.007576 | 0.187067 | 2,598 | 66 | 109 | 39.363636 | 0.785511 | 0 | 0 | 0.12 | 0 | 0.04 | 0.224018 | 0.068129 | 0 | 0 | 0 | 0 | 0.52 | 1 | 0.18 | false | 0 | 0.06 | 0.02 | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1aa3b2b635b5e0fe136530f149a2852716edea06 | 163 | py | Python | ExamPrep/Shit Comp/Python Code/RootsOriginal/BisectionMethod.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | ExamPrep/Shit Comp/Python Code/RootsOriginal/BisectionMethod.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | ExamPrep/Shit Comp/Python Code/RootsOriginal/BisectionMethod.py | FHomewood/ScientificComputing | bc3477b4607b25a700f2d89ca4f01cb3ea0998c4 | [
"IJG"
] | null | null | null | #Imports
from bisection import *
#Constants
LowerLimit = 0.0
UpperLimit = 10.0
def f(x):
return (x)**2
Root = bisection(f,LowerLimit,UpperLimit)
print Root
| 12.538462 | 41 | 0.711656 | 24 | 163 | 4.833333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.171779 | 163 | 12 | 42 | 13.583333 | 0.814815 | 0.09816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.142857 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1ab14723dda2ad5abaa75d0e99e89f0f9a425b1d | 3,480 | py | Python | selenium/test_login_unfollow_follow_message_check.py | civicboom/civicboom | 239cb9c2f1e8afa42ea2736c171e6043b04a7ff0 | [
"MIT"
] | null | null | null | selenium/test_login_unfollow_follow_message_check.py | civicboom/civicboom | 239cb9c2f1e8afa42ea2736c171e6043b04a7ff0 | [
"MIT"
] | null | null | null | selenium/test_login_unfollow_follow_message_check.py | civicboom/civicboom | 239cb9c2f1e8afa42ea2736c171e6043b04a7ff0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from selenium import selenium
import unittest, time, re
class Login_Unfollow_Follow_SendMessage_ReceiveMessage(unittest.TestCase):
def setUp(self):
self.verificationErrors = []
self.selenium = selenium("test-browser-linux-master", 4444, "IE on Windows", "http://test.civicboom... | 40.465116 | 114 | 0.609483 | 439 | 3,480 | 4.671982 | 0.252847 | 0.046806 | 0.040956 | 0.040956 | 0.666504 | 0.590444 | 0.590444 | 0.56704 | 0.56704 | 0.56704 | 0 | 0.024428 | 0.258908 | 3,480 | 85 | 115 | 40.941176 | 0.770841 | 0.005747 | 0 | 0.582278 | 0 | 0 | 0.218849 | 0.049147 | 0 | 0 | 0 | 0 | 0.126582 | 0 | null | null | 0.088608 | 0.025316 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
1abdc7d1f6e3c3d399749e13a801f518de7ed6a4 | 147 | py | Python | 6kyu/(6 kyu) Square Digits Sequence/(6 kyu) Square Digits Sequence.py | e1r0nd/codewars | 9b05e32a26ee5f36a4b3f1e76a71e0c79b3c865b | [
"MIT"
] | 49 | 2018-04-30T06:42:45.000Z | 2021-07-22T16:39:02.000Z | (6 kyu) Square Digits Sequence/(6 kyu) Square Digits Sequence.py | novsunheng/codewars | c54b1d822356889b91587b088d02ca0bd3d8dc9e | [
"MIT"
] | 1 | 2020-08-31T02:36:53.000Z | 2020-08-31T10:14:00.000Z | (6 kyu) Square Digits Sequence/(6 kyu) Square Digits Sequence.py | novsunheng/codewars | c54b1d822356889b91587b088d02ca0bd3d8dc9e | [
"MIT"
] | 25 | 2018-04-02T20:57:58.000Z | 2021-05-28T15:24:51.000Z | def square_digits_sequence(n):
s = set()
while n not in s:
s.add(n)
n = sum(int(d)**2 for d in str(n))
return len(s)+1
| 21 | 42 | 0.52381 | 29 | 147 | 2.586207 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020202 | 0.326531 | 147 | 6 | 43 | 24.5 | 0.737374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 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 | 2 |
1ac490b577ea5dda5544e1fbb2ce5bee62233294 | 1,955 | py | Python | algorithms/iterative_tree_traversals.py | avg-2049-joe/py-algo-ds | 4f9c3c086e134ee23fcc0ee3b981e81f40e860cd | [
"MIT"
] | null | null | null | algorithms/iterative_tree_traversals.py | avg-2049-joe/py-algo-ds | 4f9c3c086e134ee23fcc0ee3b981e81f40e860cd | [
"MIT"
] | null | null | null | algorithms/iterative_tree_traversals.py | avg-2049-joe/py-algo-ds | 4f9c3c086e134ee23fcc0ee3b981e81f40e860cd | [
"MIT"
] | null | null | null | """
Iterative versions of the tree traversals
TODO: Using a set defeats the purpose of iteration (reducing the space usage)
"""
class BinaryTree(object):
"""Object represents a binary tree"""
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def in_orde... | 22.732558 | 77 | 0.570844 | 256 | 1,955 | 4.253906 | 0.277344 | 0.102847 | 0.071625 | 0.093664 | 0.449036 | 0.404959 | 0.359045 | 0.312213 | 0.251607 | 0.113866 | 0 | 0.00155 | 0.340153 | 1,955 | 85 | 78 | 23 | 0.842636 | 0.267519 | 0 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 1 | 0.088889 | false | 0 | 0 | 0 | 0.177778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1acaa8c1153a3b9bb299ba78526d2d3b51be4f66 | 593 | py | Python | topo/optimized/__init__.py | ceball/topographica | ec0eea614409ceb7473e04bc2f6b6c888099160f | [
"BSD-3-Clause"
] | null | null | null | topo/optimized/__init__.py | ceball/topographica | ec0eea614409ceb7473e04bc2f6b6c888099160f | [
"BSD-3-Clause"
] | null | null | null | topo/optimized/__init__.py | ceball/topographica | ec0eea614409ceb7473e04bc2f6b6c888099160f | [
"BSD-3-Clause"
] | null | null | null | import os
(basepath, _) = os.path.split(os.path.abspath(__file__))
warn_for_each_unoptimized_component = False
try:
from distutils.core import run_setup
# Run the setup script in the sandbox, so that it doesn't complain about unknown args when launched through nose
run_setup(basepath + "/compile.py")
... | 34.882353 | 116 | 0.740304 | 79 | 593 | 5.417722 | 0.683544 | 0.028037 | 0.093458 | 0.107477 | 0.135514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185497 | 593 | 17 | 117 | 34.882353 | 0.886128 | 0.283305 | 0 | 0 | 0 | 0 | 0.279621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.454545 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
1acca912a31ec6a2ebcc918e528a3318f2a3f937 | 1,874 | py | Python | client_code/landing/settings/ColorChanger.py | Alcampopiano/OpenQuestion | 8576ec3372eca3b3b51661ad7f5c615fe8193946 | [
"BSD-3-Clause"
] | 4 | 2021-01-27T15:36:21.000Z | 2021-06-04T17:43:27.000Z | client_code/landing/settings/ColorChanger.py | Alcampopiano/OpenQuestion | 8576ec3372eca3b3b51661ad7f5c615fe8193946 | [
"BSD-3-Clause"
] | 1 | 2021-02-04T20:24:38.000Z | 2021-02-05T13:47:41.000Z | client_code/landing/settings/ColorChanger.py | Alcampopiano/OpenQuestion | 8576ec3372eca3b3b51661ad7f5c615fe8193946 | [
"BSD-3-Clause"
] | 2 | 2021-01-27T15:36:30.000Z | 2021-02-02T06:11:35.000Z | import anvil.facebook.auth
import anvil.google.auth, anvil.google.drive
from anvil.google.drive import app_files
import anvil.js
def set_theme(theme_map):
css = themed_css
for name, value in theme_map.items():
css = css.replace(f"%color:{name}%", value)
anvil.js.call_js("setThemeCss", css)
# This is t... | 21.54023 | 120 | 0.699039 | 265 | 1,874 | 4.916981 | 0.279245 | 0.147352 | 0.182655 | 0.138143 | 0.349194 | 0.067536 | 0.067536 | 0.067536 | 0.067536 | 0 | 0 | 0.031037 | 0.140342 | 1,874 | 87 | 121 | 21.54023 | 0.777778 | 0.067769 | 0 | 0.229508 | 0 | 0.065574 | 0.822821 | 0.129014 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.065574 | 0 | 0.081967 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46c47142371b3e46378834e1371af47748000547 | 36,685 | py | Python | source/pysnmp_mibs/TOKEN-RING-RMON-MIB.py | vkushnir/docker_syslog-ng | 7f5632231c1884a90a272a4c002448ca9133aa02 | [
"MIT"
] | null | null | null | source/pysnmp_mibs/TOKEN-RING-RMON-MIB.py | vkushnir/docker_syslog-ng | 7f5632231c1884a90a272a4c002448ca9133aa02 | [
"MIT"
] | null | null | null | source/pysnmp_mibs/TOKEN-RING-RMON-MIB.py | vkushnir/docker_syslog-ng | 7f5632231c1884a90a272a4c002448ca9133aa02 | [
"MIT"
] | null | null | null | #
# PySNMP MIB module TOKEN-RING-RMON-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/TOKEN-RING-RMON-MIB
# Produced by pysmi-0.0.7 at Fri Feb 17 12:48:35 2017
# On host 5641388e757d platform Linux version 4.4.0-62-generic by user root
# Using Python version 2.7.13 (default, Dec 22 2016, 09:2... | 172.230047 | 11,057 | 0.778929 | 3,627 | 36,685 | 7.878412 | 0.090709 | 0.016308 | 0.022047 | 0.032021 | 0.36336 | 0.275346 | 0.211759 | 0.208609 | 0.200875 | 0.186877 | 0 | 0.094891 | 0.081314 | 36,685 | 212 | 11,058 | 173.042453 | 0.752982 | 0.008532 | 0 | 0 | 0 | 0 | 0.075434 | 0.013805 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.004975 | 0.034826 | 0 | 0.084577 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46c56182630c419e1daaa07b3dec063b0e47636b | 517 | py | Python | src/driver/slack_driver.py | tubone24/tech_blog_spider | f91feea445d87d31e81bd920c7d386e42c495aee | [
"MIT"
] | null | null | null | src/driver/slack_driver.py | tubone24/tech_blog_spider | f91feea445d87d31e81bd920c7d386e42c495aee | [
"MIT"
] | 7 | 2021-06-25T07:50:21.000Z | 2021-11-06T04:44:55.000Z | src/driver/slack_driver.py | rcy1314/spider-feed | fbab76c8e221053f611cadd4d27642ef8725e76d | [
"MIT"
] | 1 | 2022-02-10T21:05:13.000Z | 2022-02-10T21:05:13.000Z | import json
from output.slack_output_data import SlackOutputData
from interface.driver.slack_driver import SlackDriver
from dataclasses import asdict
import requests
from util.logger import AppLog
_logger = AppLog(__name__)
class SlackDriverImpl(SlackDriver):
def __init__(self, url: str):
self.url = url
... | 27.210526 | 57 | 0.748549 | 65 | 517 | 5.723077 | 0.446154 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170213 | 517 | 18 | 58 | 28.722222 | 0.867133 | 0 | 0 | 0 | 0 | 0 | 0.040619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.642857 | 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 | 1 | 0 | 0 | 2 |
46f1a9721dee5956e739c11d736c03c0e3499e4a | 848 | py | Python | generate_booth.py | kodomomo/dsm-payments-util | 592fda1f2578573a8b158403cd30067c0987ce16 | [
"MIT"
] | null | null | null | generate_booth.py | kodomomo/dsm-payments-util | 592fda1f2578573a8b158403cd30067c0987ce16 | [
"MIT"
] | null | null | null | generate_booth.py | kodomomo/dsm-payments-util | 592fda1f2578573a8b158403cd30067c0987ce16 | [
"MIT"
] | null | null | null | import pymysql
from booth_info import booths
from generate_random_id import generate_random_id, generate_easy_password
from generate_random_password import generate_random_password
from sqls import *
pay_database = {
'port': 3306,
}
pay_connection = pymysql.connect(**pay_database)
pay_cursor = pay_co... | 29.241379 | 89 | 0.731132 | 111 | 848 | 5.153153 | 0.324324 | 0.097902 | 0.083916 | 0.083916 | 0.283217 | 0.283217 | 0.204545 | 0.204545 | 0.13986 | 0 | 0 | 0.008696 | 0.186321 | 848 | 28 | 90 | 30.285714 | 0.82029 | 0 | 0 | 0 | 1 | 0 | 0.036585 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.333333 | 0.238095 | 0 | 0.285714 | 0.047619 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
46f6b7548af61ad27d9501b669160abd5dd775c5 | 704 | py | Python | hypernets/tabular/__init__.py | Enpen/Hypernets | 5fbf01412ffaef310855d98f52f8cc169e96246b | [
"Apache-2.0"
] | 3 | 2022-03-25T23:27:44.000Z | 2022-03-27T01:32:28.000Z | hypernets/tabular/__init__.py | Enpen/Hypernets | 5fbf01412ffaef310855d98f52f8cc169e96246b | [
"Apache-2.0"
] | null | null | null | hypernets/tabular/__init__.py | Enpen/Hypernets | 5fbf01412ffaef310855d98f52f8cc169e96246b | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
"""
"""
from ._base import get_tool_box, register_toolbox, register_transformer, tb_transformer
from .toolbox import ToolBox
register_toolbox(ToolBox)
try:
import dask.dataframe as dd
import dask_ml
from .dask_ex import DaskToolBox
register_toolbox(DaskToolBox, 0)
is_dask... | 19.555556 | 87 | 0.715909 | 86 | 704 | 5.604651 | 0.406977 | 0.124481 | 0.062241 | 0.124481 | 0.26556 | 0.26556 | 0.26556 | 0.26556 | 0.26556 | 0.26556 | 0 | 0.005415 | 0.213068 | 704 | 35 | 88 | 20.114286 | 0.864621 | 0.139205 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.55 | 0 | 0.55 | 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 | 1 | 0 | 0 | 2 |
46fe9f836dbdd86b3fbfa9bbee4ce5237f317f4d | 171 | py | Python | tsqr/user2.py | hanwoody/docs-1 | 55aec2f77f345c2f219ea69f61b919f61e8700f2 | [
"Apache-2.0"
] | null | null | null | tsqr/user2.py | hanwoody/docs-1 | 55aec2f77f345c2f219ea69f61b919f61e8700f2 | [
"Apache-2.0"
] | null | null | null | tsqr/user2.py | hanwoody/docs-1 | 55aec2f77f345c2f219ea69f61b919f61e8700f2 | [
"Apache-2.0"
] | null | null | null | import sys
import mrutil
# NxN matrix
def serialLine(matrix):
for line in matrix:
list_new = [str(x) for x in line]
kvstr = ",".join(list_new)
mrutil.emit([kvstr]) | 19 | 35 | 0.690058 | 28 | 171 | 4.142857 | 0.607143 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181287 | 171 | 9 | 36 | 19 | 0.828571 | 0.05848 | 0 | 0 | 0 | 0 | 0.00625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 1 | 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 | 2 |
2000f6bca79b14f3980ef41fb7acabbb4ceb4180 | 334 | py | Python | photographer/views.py | shiv-source/online-photographer-finder | d72089fef03a6ebc30c96a29820a0751f70d5b9a | [
"MIT"
] | 1 | 2020-06-19T22:41:59.000Z | 2020-06-19T22:41:59.000Z | photographer/views.py | shiv-source/online-photographer-finder | d72089fef03a6ebc30c96a29820a0751f70d5b9a | [
"MIT"
] | null | null | null | photographer/views.py | shiv-source/online-photographer-finder | d72089fef03a6ebc30c96a29820a0751f70d5b9a | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Photorecorder
from django.contrib.auth.decorators import login_required
# Create your views here.
@login_required(login_url='/account/login/')
def user(request):
Photorec = Photorecorder.objects.all()
return render(request, 'photographer.html',{'Photorec... | 33.4 | 71 | 0.781437 | 41 | 334 | 6.292683 | 0.658537 | 0.077519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110778 | 334 | 10 | 71 | 33.4 | 0.868687 | 0.068862 | 0 | 0 | 0 | 0 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
200d4644111b8e6220fee55b1430740b1b5fa0ab | 84 | py | Python | pws_br/source/user_defined_functions/udf_types.py | stop-it-h2020-project/PublicWarningNotificationSystem | b2d5e80a10dcb40e7638e36613fa0c1a6cb95939 | [
"CC-BY-4.0"
] | null | null | null | pws_br/source/user_defined_functions/udf_types.py | stop-it-h2020-project/PublicWarningNotificationSystem | b2d5e80a10dcb40e7638e36613fa0c1a6cb95939 | [
"CC-BY-4.0"
] | null | null | null | pws_br/source/user_defined_functions/udf_types.py | stop-it-h2020-project/PublicWarningNotificationSystem | b2d5e80a10dcb40e7638e36613fa0c1a6cb95939 | [
"CC-BY-4.0"
] | null | null | null | BOOL = "BOOL"
INT = "INT"
DOUBLE = "DOUBLE"
STRING = "STRING"
DURATION = "DURATION"
| 14 | 21 | 0.642857 | 10 | 84 | 5.4 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 84 | 5 | 22 | 16.8 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
200d540302c3b1b222fe7b8506d0b431a429e984 | 69 | py | Python | serverless/tests/CreateEndpoint_event.py | shobhitsundriyal/space_bandits_deployment | c0f87fb4dfda7b35225cdf3f228920eb64f168ed | [
"MIT"
] | null | null | null | serverless/tests/CreateEndpoint_event.py | shobhitsundriyal/space_bandits_deployment | c0f87fb4dfda7b35225cdf3f228920eb64f168ed | [
"MIT"
] | 1 | 2022-03-26T08:42:55.000Z | 2022-03-26T08:42:55.000Z | serverless/tests/CreateEndpoint_event.py | shobhitsundriyal/space_bandits_deployment | c0f87fb4dfda7b35225cdf3f228920eb64f168ed | [
"MIT"
] | 1 | 2020-03-27T19:47:56.000Z | 2020-03-27T19:47:56.000Z |
# coding: utf-8
# In[ ]:
{
"MLModelId": "ml-ModelExampleId"
}
| 6.272727 | 34 | 0.536232 | 7 | 69 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.246377 | 69 | 10 | 35 | 6.9 | 0.692308 | 0.289855 | 0 | 0 | 0 | 0 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
203cba017e9464fdeee0e4647c552ae7f9d28d68 | 1,477 | py | Python | redisext/queue.py | mylokin/redisext | b49c2699183d795ec462f0288bb3fb7110936a89 | [
"MIT"
] | null | null | null | redisext/queue.py | mylokin/redisext | b49c2699183d795ec462f0288bb3fb7110936a89 | [
"MIT"
] | 5 | 2015-02-15T11:03:29.000Z | 2018-03-05T19:11:20.000Z | redisext/queue.py | mylokin/redisext | b49c2699183d795ec462f0288bb3fb7110936a89 | [
"MIT"
] | 2 | 2018-03-05T19:06:34.000Z | 2020-07-01T09:18:40.000Z | from __future__ import absolute_import
import redisext.models.abc
class Queue(redisext.models.abc.Model):
def pop(self):
'''
Pop item from queue.
:returns: item from queue
'''
item = self.connect_to_master().rpop(self.key)
return self.decode(item)
def push(se... | 24.213115 | 67 | 0.570752 | 186 | 1,477 | 4.44086 | 0.311828 | 0.059322 | 0.094431 | 0.115012 | 0.337772 | 0.246973 | 0.246973 | 0.169492 | 0 | 0 | 0 | 0.003929 | 0.310765 | 1,477 | 60 | 68 | 24.616667 | 0.807466 | 0.185511 | 0 | 0.24 | 0 | 0 | 0.007707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0 | 0.64 | 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 | 1 | 0 | 0 | 2 |
203e08b8b5ab33b02e1ca4e3dd9d441003adb9b3 | 857 | py | Python | mayan/apps/tags/api_views.py | Dave360-crypto/mayan-edms | 9cd37537461347f79ff0429e4b8b16fd2446798d | [
"Apache-2.0"
] | 3 | 2020-02-03T11:58:51.000Z | 2020-10-20T03:52:21.000Z | mayan/apps/tags/api_views.py | Dave360-crypto/mayan-edms | 9cd37537461347f79ff0429e4b8b16fd2446798d | [
"Apache-2.0"
] | null | null | null | mayan/apps/tags/api_views.py | Dave360-crypto/mayan-edms | 9cd37537461347f79ff0429e4b8b16fd2446798d | [
"Apache-2.0"
] | 2 | 2020-10-24T11:10:06.000Z | 2021-03-03T20:05:38.000Z | from __future__ import absolute_import
from rest_framework import generics
from taggit.models import Tag
from rest_api.filters import MayanObjectPermissionsFilter
from rest_api.permissions import MayanPermission
from .permissions import PERMISSION_TAG_VIEW
from .serializers import TagSerializer
class APITagView(ge... | 25.205882 | 61 | 0.763127 | 91 | 857 | 6.945055 | 0.461538 | 0.037975 | 0.080696 | 0.113924 | 0.287975 | 0.287975 | 0.287975 | 0 | 0 | 0 | 0 | 0 | 0.163361 | 857 | 33 | 62 | 25.969697 | 0.88145 | 0.070012 | 0 | 0.352941 | 0 | 0 | 0.007833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 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 | 1 | 0 | 1 | 0 | 0 | 2 |
204957f54dcadffc5466310b4e613d1c9d0522f8 | 141 | py | Python | db/mongodb/next.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 13 | 2018-12-17T23:30:54.000Z | 2021-12-29T14:31:43.000Z | db/mongodb/next.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 36 | 2018-06-07T21:34:13.000Z | 2022-03-13T21:01:43.000Z | db/mongodb/next.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 2 | 2021-01-03T11:47:20.000Z | 2021-12-29T14:31:49.000Z | from func.db_mongo import *
# Индекс следующего элемента
try:
id = db['test'].find().sort('id', -1)[0]['id'] + 1
except:
id = 1
print(id) | 15.666667 | 51 | 0.624113 | 24 | 141 | 3.625 | 0.708333 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.163121 | 141 | 9 | 52 | 15.666667 | 0.70339 | 0.184397 | 0 | 0 | 0 | 0 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 1 | 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 | 2 |
2049fcc66cf6a0685dbf23f42665dec25297f7e3 | 3,213 | py | Python | dojos/design/5_naming.py | aurzenligl/tdd_training | 7a83ed77181297fcb45712c7998af972032794c5 | [
"MIT"
] | null | null | null | dojos/design/5_naming.py | aurzenligl/tdd_training | 7a83ed77181297fcb45712c7998af972032794c5 | [
"MIT"
] | 12 | 2017-11-27T21:57:25.000Z | 2017-11-27T22:01:58.000Z | dojos/design/5_naming.py | aurzenligl/tdd_training | 7a83ed77181297fcb45712c7998af972032794c5 | [
"MIT"
] | null | null | null | urlString = 'https://google.com'
pathUsedWhenPathStringAndDefaultPathStringAndDefault2PathStringIsNotFound = 'nevermind'
logPathString = "/tmp/log.txt";
logsPathString = "logs/subdir/output";
b_fileRead = True
class IBaseArray(object): pass
work = 0
jump = 2
parse = 42
flower = True
termination = False
findPath... | 25.101563 | 98 | 0.71024 | 440 | 3,213 | 5.145455 | 0.425 | 0.04417 | 0.022968 | 0.030035 | 0.335689 | 0.335689 | 0.335689 | 0.281802 | 0.210247 | 0.210247 | 0 | 0.004945 | 0.181762 | 3,213 | 127 | 99 | 25.299213 | 0.856219 | 0 | 0 | 0.96875 | 0 | 0 | 0.077701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0.15625 | 0 | 0.09375 | 0.46875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
644c508da3f4fdfb9ed54fd1fe16c13cf801464e | 4,122 | py | Python | Ashcraft-rsa-algorithm.py | Chillica/Algorithms | ece45ec5b05640f795de56b7e2b8bf6836659a9e | [
"MIT"
] | null | null | null | Ashcraft-rsa-algorithm.py | Chillica/Algorithms | ece45ec5b05640f795de56b7e2b8bf6836659a9e | [
"MIT"
] | null | null | null | Ashcraft-rsa-algorithm.py | Chillica/Algorithms | ece45ec5b05640f795de56b7e2b8bf6836659a9e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Jacob Ashcraft
RSA Algorithm 2
Advanced Algorithms
Professor Teichert
"""
import math
###################### Constants ######################
primes = [110487089277121433970806926710031676468486143869889341376537597422615205558243704080712263653321436167325483283204907700784269778678235765... | 38.886792 | 320 | 0.737506 | 336 | 4,122 | 9.029762 | 0.294643 | 0.004614 | 0.00824 | 0.003955 | 0.052406 | 0.042848 | 0.033619 | 0.019776 | 0.019776 | 0 | 0 | 0.570362 | 0.155264 | 4,122 | 106 | 321 | 38.886792 | 0.300976 | 0.114265 | 0 | 0 | 0 | 0 | 0.006026 | 0 | 0 | 0 | 0 | 0 | 0.193548 | 1 | 0.193548 | false | 0 | 0.016129 | 0.016129 | 0.322581 | 0.016129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 2 |
644fa421d3fdee3839ddd205617f6c42dc3bfce9 | 704 | py | Python | machine/qemu/sources/u-boot/tools/binman/etype/intel_cmc.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | 1 | 2021-11-21T19:56:29.000Z | 2021-11-21T19:56:29.000Z | machine/qemu/sources/u-boot/tools/binman/etype/intel_cmc.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | machine/qemu/sources/u-boot/tools/binman/etype/intel_cmc.py | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | # SPDX-License-Identifier: GPL-2.0+
# Copyright (c) 2016 Google, Inc
# Written by Simon Glass <sjg@chromium.org>
#
# Entry-type module for Intel Chip Microcode binary blob
#
from binman.etype.blob_ext import Entry_blob_ext
class Entry_intel_cmc(Entry_blob_ext):
"""Entry containing an Intel Chipset Micro Code (CMC... | 30.608696 | 73 | 0.724432 | 102 | 704 | 4.843137 | 0.705882 | 0.04251 | 0.048583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.193182 | 704 | 22 | 74 | 32 | 0.841549 | 0.673295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 2 |
645b06e11f7e29a48f1983c1170a67c3611f1666 | 404 | py | Python | epicteller/core/model/campaign.py | KawashiroNitori/epicteller | 264b11e7e6eb58beb0f67ecbbb811d268a533f7a | [
"MIT"
] | null | null | null | epicteller/core/model/campaign.py | KawashiroNitori/epicteller | 264b11e7e6eb58beb0f67ecbbb811d268a533f7a | [
"MIT"
] | null | null | null | epicteller/core/model/campaign.py | KawashiroNitori/epicteller | 264b11e7e6eb58beb0f67ecbbb811d268a533f7a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from typing import Optional
from pydantic import BaseModel
from epicteller.core.util.enum import CampaignState
class Campaign(BaseModel):
id: int
url_token: str
room_id: int
name: str
description: str
owner_id: int
state: CampaignState
is... | 18.363636 | 51 | 0.693069 | 54 | 404 | 5.074074 | 0.685185 | 0.054745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003195 | 0.225248 | 404 | 21 | 52 | 19.238095 | 0.872204 | 0.10396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
64619e0950043d9a2114890655d9f9071818e09f | 1,301 | py | Python | tests/view/glprograms/test_shaderprogram.py | gsanhueza/BlastSight | 4b5c48e7ea5f67b737429f05d5213e9ff1fd399d | [
"MIT"
] | null | null | null | tests/view/glprograms/test_shaderprogram.py | gsanhueza/BlastSight | 4b5c48e7ea5f67b737429f05d5213e9ff1fd399d | [
"MIT"
] | 1 | 2022-03-13T17:35:35.000Z | 2022-03-13T17:35:35.000Z | tests/view/glprograms/test_shaderprogram.py | gsanhueza/BlastSight | 4b5c48e7ea5f67b737429f05d5213e9ff1fd399d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pytest
from blastsight.model.elements.nullelement import NullElement
from blastsight.view.glprograms.shaderprogram import ShaderProgram
from blastsight.view.drawables import GLDrawable
class TestShaderProgram:
@property
def base_program(self):
return ShaderProgram()
... | 22.824561 | 66 | 0.685626 | 143 | 1,301 | 6.062937 | 0.314685 | 0.05075 | 0.087659 | 0.119954 | 0.201845 | 0.201845 | 0.201845 | 0.119954 | 0.119954 | 0 | 0 | 0.00202 | 0.239047 | 1,301 | 56 | 67 | 23.232143 | 0.873737 | 0.015373 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 1 | 0.216216 | false | 0 | 0.108108 | 0.108108 | 0.513514 | 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 | 1 | 0 | 0 | 0 | 2 |
64674b3e9d685bb7486a3ad36e0717025f9ccb1e | 7,156 | py | Python | Mydesktop/TriptoGif/test.py | gzyszuuow/BusBunching | e9b01a62e422ae6525d9287bdf46c25aacdf9c6c | [
"Apache-2.0"
] | null | null | null | Mydesktop/TriptoGif/test.py | gzyszuuow/BusBunching | e9b01a62e422ae6525d9287bdf46c25aacdf9c6c | [
"Apache-2.0"
] | null | null | null | Mydesktop/TriptoGif/test.py | gzyszuuow/BusBunching | e9b01a62e422ae6525d9287bdf46c25aacdf9c6c | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
from pandas import DataFrame, Series
import random
import time
import math
import datetime as dt
import random
import copy
from datetime import datetime
from time import mktime
import os
import json
from functools import cmp_to_key
import numpy as np
import matp... | 30.194093 | 256 | 0.675238 | 952 | 7,156 | 4.919118 | 0.259454 | 0.021354 | 0.019218 | 0.019218 | 0.273756 | 0.186633 | 0.137305 | 0.12855 | 0.088405 | 0.072176 | 0 | 0.0349 | 0.17915 | 7,156 | 236 | 257 | 30.322034 | 0.762343 | 0.03242 | 0 | 0.125 | 0 | 0 | 0.252004 | 0.085485 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5625 | 0 | 0.5625 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
647f55fab23ad506dc4f355454eebadf13262216 | 26,314 | py | Python | pgoapi/protos/POGOProtos/Data/Battle_pb2.py | neoz/pgoapi | fd462be412ac347ab517b68f269e2342a7226909 | [
"MIT"
] | 1,457 | 2016-07-19T00:35:05.000Z | 2022-02-05T15:19:44.000Z | pgoapi/protos/POGOProtos/Data/Battle_pb2.py | neoz/pgoapi | fd462be412ac347ab517b68f269e2342a7226909 | [
"MIT"
] | 196 | 2016-07-19T00:23:53.000Z | 2018-06-07T16:12:27.000Z | pgoapi/protos/POGOProtos/Data/Battle_pb2.py | neoz/pgoapi | fd462be412ac347ab517b68f269e2342a7226909 | [
"MIT"
] | 501 | 2016-07-19T00:31:16.000Z | 2022-03-25T06:31:59.000Z | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: POGOProtos.Data.Battle.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf impor... | 44.751701 | 3,275 | 0.764802 | 3,482 | 26,314 | 5.454624 | 0.082998 | 0.050545 | 0.06634 | 0.050545 | 0.691255 | 0.642974 | 0.586742 | 0.539199 | 0.486442 | 0.470752 | 0 | 0.048763 | 0.120126 | 26,314 | 587 | 3,276 | 44.827939 | 0.771563 | 0.020673 | 0 | 0.622951 | 1 | 0.001821 | 0.254464 | 0.213859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023679 | 0 | 0.023679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
64866e488fcf4d0cd9c082174609e3027b9764d4 | 686 | py | Python | pyaviso/custom_exceptions.py | mpejcoch/aviso | 250b5646220fae85725278b3ca80fed4e15a103a | [
"Apache-2.0"
] | 6 | 2021-02-03T17:55:05.000Z | 2022-02-20T08:05:42.000Z | pyaviso/custom_exceptions.py | mpejcoch/aviso | 250b5646220fae85725278b3ca80fed4e15a103a | [
"Apache-2.0"
] | 1 | 2021-04-26T14:42:39.000Z | 2021-04-26T14:42:39.000Z | pyaviso/custom_exceptions.py | mpejcoch/aviso | 250b5646220fae85725278b3ca80fed4e15a103a | [
"Apache-2.0"
] | 2 | 2021-02-09T15:07:41.000Z | 2021-08-13T09:55:30.000Z | # (C) Copyright 1996- ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernment... | 21.4375 | 78 | 0.771137 | 86 | 686 | 6.151163 | 0.686047 | 0.122873 | 0.136106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014011 | 0.167638 | 686 | 31 | 79 | 22.129032 | 0.912434 | 0.529155 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
649d8bfa1c8ee1ea90e6d40d1fff1eb930a5b1f6 | 767 | py | Python | trainstalker/sncfdata_rt/views.py | miludmann/trainstalker | 7ecb6f052f459b66d42d727c9b162f47b908b98f | [
"BSD-3-Clause"
] | null | null | null | trainstalker/sncfdata_rt/views.py | miludmann/trainstalker | 7ecb6f052f459b66d42d727c9b162f47b908b98f | [
"BSD-3-Clause"
] | null | null | null | trainstalker/sncfdata_rt/views.py | miludmann/trainstalker | 7ecb6f052f459b66d42d727c9b162f47b908b98f | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from sncfdata_rt.models import Station
# Create your views here.
def index(request):
stations_list = Station.objects.order_by('station_name')[:5]
context = {'stations_list': stations_list}
return render(request, 'sncfdata_rt/index.ht... | 30.68 | 67 | 0.749674 | 100 | 767 | 5.64 | 0.39 | 0.06383 | 0.074468 | 0.111702 | 0.335106 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0.001555 | 0.161669 | 767 | 24 | 68 | 31.958333 | 0.875583 | 0.029987 | 0 | 0 | 0 | 0 | 0.234501 | 0.02965 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0 | 0.6875 | 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 | 1 | 0 | 0 | 2 |
64ac038d0826dd17f9a516ada94d2873b01d30ab | 511 | py | Python | examples/ex1.py | nathanfdunn/ipymd | cca5f98e34a024396e21ab7a3f322bbe2e3f37d1 | [
"BSD-3-Clause"
] | 521 | 2015-01-01T09:22:05.000Z | 2022-02-06T23:54:10.000Z | examples/ex1.py | nathanfdunn/ipymd | cca5f98e34a024396e21ab7a3f322bbe2e3f37d1 | [
"BSD-3-Clause"
] | 79 | 2015-01-04T21:17:29.000Z | 2018-08-28T16:39:21.000Z | examples/ex1.py | nathanfdunn/ipymd | cca5f98e34a024396e21ab7a3f322bbe2e3f37d1 | [
"BSD-3-Clause"
] | 56 | 2015-03-01T08:48:26.000Z | 2022-01-29T03:11:13.000Z | # List of ipymd cells expected for this example.
output = [
{'cell_type': 'markdown',
'source': '# Header'},
{'cell_type': 'markdown',
'source': 'A paragraph.'},
{'cell_type': 'markdown',
'source': 'Python code:'},
{'cell_type': 'code',
'input': 'print("Hello world!")',
'out... | 21.291667 | 66 | 0.547945 | 52 | 511 | 5.269231 | 0.5 | 0.175182 | 0.291971 | 0.40146 | 0.233577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219178 | 511 | 23 | 67 | 22.217391 | 0.686717 | 0.09002 | 0 | 0.333333 | 0 | 0 | 0.578834 | 0.071274 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | null | 0 | 1 | 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 | 2 |
64b89274265285939232ef95666539dcfdd02614 | 319 | py | Python | client.py | cms42/i-display | fc1737ec522c7e1088d8891dd0838f11454e8f38 | [
"MIT"
] | null | null | null | client.py | cms42/i-display | fc1737ec522c7e1088d8891dd0838f11454e8f38 | [
"MIT"
] | null | null | null | client.py | cms42/i-display | fc1737ec522c7e1088d8891dd0838f11454e8f38 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import configparser
import cv2
import sys
if (len(sys.argv)<2) :
print("usage: ",sys.argv[0]," [config]")
exit()
if (sys.argv[1] == '--help')|(sys.argv[1] == '-h') :
print("usage: ",sys.argv[0]," [config]")
exit()
config = configparser.ConfigParser()
config.read(sys.argv[1])
| 19.9375 | 52 | 0.583072 | 45 | 319 | 4.133333 | 0.444444 | 0.225806 | 0.129032 | 0.182796 | 0.301075 | 0.301075 | 0.301075 | 0 | 0 | 0 | 0 | 0.029963 | 0.163009 | 319 | 15 | 53 | 21.266667 | 0.666667 | 0.065831 | 0 | 0.363636 | 0 | 0 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.181818 | 0 | 0 | 0 | null | 1 | 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 | 2 |
64bd2dcfa1b16991bf3ec6fda735704c506a25ed | 358 | py | Python | mq/rabbitmq/py/helloworld/producer.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | mq/rabbitmq/py/helloworld/producer.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | 1 | 2016-09-15T07:06:15.000Z | 2016-09-15T07:06:15.000Z | mq/rabbitmq/py/helloworld/producer.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (C) 2019 jayson
#
from utils.connection import get_connection
from config import RABBITMQ_MASTER
if __name__ == '__main__':
with get_connection(RABBITMQ_MASTER, 'hello') as channel:
while True:
channel.basic_publish(exchange='', routing_key='hell... | 27.538462 | 101 | 0.695531 | 45 | 358 | 5.222222 | 0.755556 | 0.110638 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017483 | 0.201117 | 358 | 12 | 102 | 29.833333 | 0.804196 | 0.131285 | 0 | 0 | 0 | 0 | 0.138983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
64c23f62d2310087d63f2f3ff158df2b5e9d0168 | 1,265 | py | Python | eoana/readers/xlsx.py | JohannesSMHI/eoana | 7950a3567cdd9726296021f3de031493c8dfeba6 | [
"MIT"
] | null | null | null | eoana/readers/xlsx.py | JohannesSMHI/eoana | 7950a3567cdd9726296021f3de031493c8dfeba6 | [
"MIT"
] | null | null | null | eoana/readers/xlsx.py | JohannesSMHI/eoana | 7950a3567cdd9726296021f3de031493c8dfeba6 | [
"MIT"
] | null | null | null | # Copyright (c) 2020 SMHI, Swedish Meteorological and Hydrological Institute
# License: MIT License (see LICENSE.txt or http://opensource.org/licenses/mit).
"""
Created on 2020-12-11 16:04
@author: johannes
"""
import pandas as pd
class PandasReaderBase:
"""
"""
def __init__(self, *args, **kwargs):
... | 23.425926 | 79 | 0.544664 | 129 | 1,265 | 5.131783 | 0.620155 | 0.060423 | 0.033233 | 0.045317 | 0.07855 | 0.07855 | 0 | 0 | 0 | 0 | 0 | 0.019208 | 0.341502 | 1,265 | 53 | 80 | 23.867925 | 0.77431 | 0.325692 | 0 | 0.111111 | 0 | 0 | 0.053546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0 | 0.555556 | 0.055556 | 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 | 1 | 0 | 0 | 2 |
64c3d1fff1672856579374529a10c8f0ae92b828 | 1,089 | py | Python | media_nommer/utils/logger.py | duointeractive/media-nommer | ba8095748582934ab44f6972210381b074bd9d14 | [
"BSD-3-Clause"
] | 2 | 2015-11-05T18:52:05.000Z | 2021-02-16T20:26:23.000Z | media_nommer/utils/logger.py | duointeractive/media-nommer | ba8095748582934ab44f6972210381b074bd9d14 | [
"BSD-3-Clause"
] | null | null | null | media_nommer/utils/logger.py | duointeractive/media-nommer | ba8095748582934ab44f6972210381b074bd9d14 | [
"BSD-3-Clause"
] | 3 | 2015-06-04T11:27:39.000Z | 2017-12-06T22:10:07.000Z | """
Some logging configuration and shortcut methods.
"""
from twisted.python import log
def debug(message):
"""
Shortcut to logging a debug message through Twisted's logging module.
:param str message: The message to log.
"""
log.msg(message)
def info(message):
"""
Shortcut to logging... | 26.560976 | 76 | 0.672176 | 155 | 1,089 | 4.683871 | 0.43871 | 0.049587 | 0.070248 | 0.099174 | 0.403581 | 0.334711 | 0.334711 | 0.334711 | 0.334711 | 0.334711 | 0 | 0 | 0.245179 | 1,089 | 40 | 77 | 27.225 | 0.883212 | 0.673095 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.444444 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
64c42589b65636e8d944299c620d7537a9631738 | 1,084 | py | Python | RecoTracker/TkNavigation/python/CosmicsNavigationSchoolESProducer_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoTracker/TkNavigation/python/CosmicsNavigationSchoolESProducer_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoTracker/TkNavigation/python/CosmicsNavigationSchoolESProducer_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #do not comment that line
import FWCore.ParameterSet.Config as cms
#cosmicsNavigationSchoolESProducer = cms.ESProducer("NavigationSchoolESProducer",
# ComponentName = cms.string('CosmicNavigationSchool')
#)
cosmicsNavigationSchoolESProducer = cms.ESProducer("SkippingLayerCosmicNavigationSchoolESProducer",
... | 51.619048 | 104 | 0.412362 | 59 | 1,084 | 7.576271 | 0.491525 | 0.12528 | 0.161074 | 0.196868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.521218 | 1,084 | 20 | 105 | 54.2 | 0.861272 | 0.148524 | 0 | 0 | 0 | 0 | 0.073064 | 0.073064 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 2 |
64c4bf7462033e3ab3a3144b3d87044b6d19e736 | 1,568 | py | Python | script/model/sklearn_like_model/SessionManager.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/model/sklearn_like_model/SessionManager.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/model/sklearn_like_model/SessionManager.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | import tensorflow as tf
from script.util.MixIn import LoggerMixIn
from script.util.misc_util import error_trace
class SessionManager(LoggerMixIn):
def __init__(self, sess=None, config=None, verbose=0):
super().__init__(verbose)
self.sess = sess
self.config = config
if... | 26.576271 | 85 | 0.589286 | 197 | 1,568 | 4.431472 | 0.314721 | 0.091638 | 0.04811 | 0.041237 | 0.26575 | 0.242841 | 0.199313 | 0.199313 | 0.199313 | 0.199313 | 0 | 0.000943 | 0.32398 | 1,568 | 58 | 86 | 27.034483 | 0.822642 | 0.014668 | 0 | 0.190476 | 0 | 0 | 0.104377 | 0.03367 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0.071429 | 0.404762 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
64cab6ea6f760144dc93cfc4e17978d33d93817a | 778 | py | Python | djangoenv/lib/python3.8/site-packages/pypl/scale.py | zawad2221/courier_delivery | f96c41a60943946f9f7e0837d017215aa8cd02dd | [
"MIT"
] | 6 | 2020-02-21T15:50:34.000Z | 2021-11-09T19:45:50.000Z | djangoenv/lib/python3.8/site-packages/pypl/scale.py | zawad2221/courier_delivery | f96c41a60943946f9f7e0837d017215aa8cd02dd | [
"MIT"
] | null | null | null | djangoenv/lib/python3.8/site-packages/pypl/scale.py | zawad2221/courier_delivery | f96c41a60943946f9f7e0837d017215aa8cd02dd | [
"MIT"
] | null | null | null | from . import utils
class ContinuousScale(object):
def __init__(self, data_lim, svg_lim):
self.data_0 = data_lim[0]
self.data_len = utils.lims2len(data_lim)
self.svg_0 = svg_lim[0]
self.svg_len = utils.lims2len(svg_lim)
def __call__(self, value):
return self.svg_0 + s... | 27.785714 | 76 | 0.637532 | 118 | 778 | 3.872881 | 0.237288 | 0.157549 | 0.078775 | 0.105033 | 0.463895 | 0.306346 | 0.19256 | 0.19256 | 0.19256 | 0.19256 | 0 | 0.025424 | 0.241645 | 778 | 27 | 77 | 28.814815 | 0.749153 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0.105263 | 0.473684 | 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 | 1 | 0 | 0 | 0 | 2 |
64d38dd03c462339859dc58f5f3a4b1ad11731fd | 3,272 | py | Python | bombolone/core/utils/utils.py | LaudateCorpus1/bombolone | 2658bfe2ea3e659fe98e86c548e49ff0aa08f0c2 | [
"BSD-3-Clause"
] | 31 | 2015-01-04T08:38:55.000Z | 2021-09-05T08:53:03.000Z | bombolone/core/utils/utils.py | LaudateCorpus1/bombolone | 2658bfe2ea3e659fe98e86c548e49ff0aa08f0c2 | [
"BSD-3-Clause"
] | 6 | 2015-02-26T12:57:05.000Z | 2015-06-24T06:11:43.000Z | bombolone/core/utils/utils.py | LaudateCorpus1/bombolone | 2658bfe2ea3e659fe98e86c548e49ff0aa08f0c2 | [
"BSD-3-Clause"
] | 11 | 2015-01-09T21:54:05.000Z | 2021-11-30T04:54:19.000Z | # -*- coding: utf-8 -*-
"""
utils.py
~~~~~~~~~~~
Generic helper functions
:copyright: (c) 2014 by @zizzamia
:license: BSD (See LICENSE for details)
"""
import datetime
import json
import string
import re
import unicodedata
from collections import Iterable
from flask import request, render_template
from hashlib import... | 29.477477 | 105 | 0.67665 | 418 | 3,272 | 5.212919 | 0.406699 | 0.0257 | 0.015145 | 0.014686 | 0.086278 | 0.086278 | 0.086278 | 0.047728 | 0.047728 | 0 | 0 | 0.005749 | 0.202628 | 3,272 | 110 | 106 | 29.745455 | 0.829437 | 0.006418 | 0 | 0 | 0 | 0 | 0.049286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.134615 | 0.211538 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
64d7181aa28285f0d3f1964a7724ac9342f291a9 | 306 | py | Python | home/views.py | morion4000/ophion | 016310ec0f702cb7f5d6b4e72e11817ef8bcdfae | [
"MIT"
] | null | null | null | home/views.py | morion4000/ophion | 016310ec0f702cb7f5d6b4e72e11817ef8bcdfae | [
"MIT"
] | 3 | 2020-02-12T03:26:52.000Z | 2021-06-10T22:29:27.000Z | home/views.py | morion4000/ophion | 016310ec0f702cb7f5d6b4e72e11817ef8bcdfae | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic.base import TemplateView
from lists.models import List
def index(request):
my_lists = List.objects.filter(user=request.user) if request.user.username else []
return render(request, 'home.html', {
'my_lists': my_lists
})
| 23.538462 | 86 | 0.728758 | 42 | 306 | 5.238095 | 0.595238 | 0.095455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169935 | 306 | 12 | 87 | 25.5 | 0.866142 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 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 | 1 | 0 | 0 | 2 |
b39aad18ae85ad0e752493635f0bdf886c49c270 | 855 | py | Python | test/integration/base/test_update_title.py | waralex/Dash.jl | f0606e07d2479fd8b5be1da4a6a59656e24acfa3 | [
"MIT"
] | 409 | 2020-04-02T18:56:47.000Z | 2022-03-31T20:28:51.000Z | test/integration/base/test_update_title.py | waralex/Dash.jl | f0606e07d2479fd8b5be1da4a6a59656e24acfa3 | [
"MIT"
] | 117 | 2020-04-03T16:19:28.000Z | 2022-02-25T15:06:27.000Z | test/integration/base/test_update_title.py | waralex/Dash.jl | f0606e07d2479fd8b5be1da4a6a59656e24acfa3 | [
"MIT"
] | 35 | 2020-04-07T01:12:57.000Z | 2022-02-16T16:28:22.000Z | import os
import pathlib
curr_path = pathlib.Path(__file__).parent.absolute()
def boot(dashjl, filename):
fp = os.path.join(curr_path, "jl_update_title", filename)
dashjl.start_server(fp)
dashjl.wait_for_text_to_equal(
"#hello-div",
"Hello world!"
)
def get_update_title_state(dashjl... | 24.428571 | 62 | 0.721637 | 112 | 855 | 5.133929 | 0.383929 | 0.229565 | 0.097391 | 0.132174 | 0.413913 | 0.229565 | 0.229565 | 0.229565 | 0.229565 | 0 | 0 | 0.02507 | 0.160234 | 855 | 34 | 63 | 25.147059 | 0.775766 | 0 | 0 | 0 | 0 | 0 | 0.208187 | 0.126316 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.217391 | false | 0 | 0.086957 | 0.043478 | 0.347826 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3aeb76ca7e4fa402a4ed55c1ccea1b2e20bd4c2 | 240 | py | Python | v1/tests/test_endpoints/test_results/__init__.py | erayerdin/debisapi | eb8084b7c27236c86c620dde414037463996a91e | [
"Apache-2.0"
] | 2 | 2019-06-18T18:17:04.000Z | 2019-06-18T18:57:27.000Z | v1/tests/test_endpoints/test_results/__init__.py | erayerdin/debisapi | eb8084b7c27236c86c620dde414037463996a91e | [
"Apache-2.0"
] | 6 | 2019-12-04T23:21:04.000Z | 2021-04-08T19:18:34.000Z | v1/tests/test_endpoints/test_results/__init__.py | erayerdin/debisapi | eb8084b7c27236c86c620dde414037463996a91e | [
"Apache-2.0"
] | null | null | null | import pytest
from v1.views.results import RESULTS_URL
@pytest.fixture
def results_requests_mock(requests_mock, resource_factory):
resource = resource_factory("results.html")
requests_mock.post(RESULTS_URL, text=resource.read())
| 24 | 59 | 0.8 | 32 | 240 | 5.75 | 0.53125 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.108333 | 240 | 9 | 60 | 26.666667 | 0.85514 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
b3b3f504984baa95645af342529d6cb5c9aa7144 | 204 | py | Python | docs/examples/tutorial/external/keyword_args_call.py | johannes-mueller/cython | b75af38ce5c309cd84c1835220932e53e9a9adb6 | [
"Apache-2.0"
] | 6,663 | 2015-01-02T06:06:43.000Z | 2022-03-31T10:35:02.000Z | docs/examples/tutorial/external/keyword_args_call.py | johannes-mueller/cython | b75af38ce5c309cd84c1835220932e53e9a9adb6 | [
"Apache-2.0"
] | 3,094 | 2015-01-01T15:44:13.000Z | 2022-03-31T19:49:57.000Z | docs/examples/tutorial/external/keyword_args_call.py | scoder/cython | ddaaa7b8bfe9885b7bed432cd0a5ab8191d112cd | [
"Apache-2.0"
] | 1,425 | 2015-01-12T07:21:27.000Z | 2022-03-30T14:10:40.000Z | from cython.cimports.strstr import strstr
def main():
data: cython.p_char = "hfvcakdfagbcffvschvxcdfgccbcfhvgcsnfxjh"
pos = strstr(needle='akd', haystack=data)
print(pos is not cython.NULL)
| 25.5 | 67 | 0.740196 | 25 | 204 | 6 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 204 | 7 | 68 | 29.142857 | 0.872093 | 0 | 0 | 0 | 0 | 0 | 0.205882 | 0.191176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.4 | 0.2 | 1 | 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 | 2 |
b3c645123a5d5abdbdd3c977c0733bf2d861e91a | 1,677 | py | Python | backend/rpc/handler/system/backup.py | R-N/sistem_gaji_vue_thrift | 9ba800b4d8e7849e2c6c4016cb32633caab087be | [
"MIT"
] | null | null | null | backend/rpc/handler/system/backup.py | R-N/sistem_gaji_vue_thrift | 9ba800b4d8e7849e2c6c4016cb32633caab087be | [
"MIT"
] | null | null | null | backend/rpc/handler/system/backup.py | R-N/sistem_gaji_vue_thrift | 9ba800b4d8e7849e2c6c4016cb32633caab087be | [
"MIT"
] | null | null | null | from flask import request
from rpc.gen.system.backup.services import TSystemBackupService
from rpc.gen.user.user.types.ttypes import TUserRole
from rpc.gen.system.backup.structs.ttypes import TBackupFile
import db
from models import models
class TSystemBackupServiceHandler(TSystemBackupService.Iface):
def __init... | 41.925 | 92 | 0.754323 | 228 | 1,677 | 5.232456 | 0.232456 | 0.080469 | 0.088013 | 0.063705 | 0.501257 | 0.4342 | 0.372171 | 0.372171 | 0.372171 | 0.372171 | 0 | 0 | 0.165176 | 1,677 | 40 | 93 | 41.925 | 0.852143 | 0 | 0 | 0.16129 | 0 | 0 | 0.005959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0 | 0.193548 | 0 | 0.612903 | 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 | 1 | 0 | 0 | 2 |
b3caa8de1b91faff3c68b14312d7d5c67b64d7d3 | 241 | py | Python | homelabmanager/urls.py | vdloo/homelabmanager | 052909d832f46ee2974b247d2e08a571cdc3af32 | [
"MIT"
] | null | null | null | homelabmanager/urls.py | vdloo/homelabmanager | 052909d832f46ee2974b247d2e08a571cdc3af32 | [
"MIT"
] | null | null | null | homelabmanager/urls.py | vdloo/homelabmanager | 052909d832f46ee2974b247d2e08a571cdc3af32 | [
"MIT"
] | null | null | null | """homelabmgr URL Configuration
"""
from django.contrib import admin
from django.urls import path
from resources import views
urlpatterns = [
path('admin/', admin.site.urls),
path('terraform/', views.terraform, name='terraform'),
]
| 21.909091 | 58 | 0.726141 | 29 | 241 | 6.034483 | 0.551724 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141079 | 241 | 10 | 59 | 24.1 | 0.845411 | 0.116183 | 0 | 0 | 0 | 0 | 0.121359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
b3d2235419fc31d01fc30b97c05efd22cbff2fce | 1,186 | py | Python | fun/fun.py | bpuderer/python-snippets27 | 8d51ff34c48bee1247575536d8ed506eafde8631 | [
"MIT"
] | 3 | 2015-11-20T14:30:53.000Z | 2015-12-19T05:55:19.000Z | fun/fun.py | bpuderer/python-snippets27 | 8d51ff34c48bee1247575536d8ed506eafde8631 | [
"MIT"
] | null | null | null | fun/fun.py | bpuderer/python-snippets27 | 8d51ff34c48bee1247575536d8ed506eafde8631 | [
"MIT"
] | 1 | 2016-01-05T20:54:49.000Z | 2016-01-05T20:54:49.000Z | import re
from collections import Counter
def pair_sum_to_value(seq, value):
""""test if any pair in sequence sum to value"""
for i in xrange(len(seq)):
for j in xrange(i+1, len(seq)):
if seq[i]+seq[j] == value:
return True
return False
def is_mirror_number(i):
tm... | 23.254902 | 90 | 0.573356 | 185 | 1,186 | 3.443243 | 0.308108 | 0.078493 | 0.156986 | 0.197802 | 0.348509 | 0.213501 | 0.213501 | 0.081633 | 0.081633 | 0.081633 | 0 | 0.052083 | 0.271501 | 1,186 | 50 | 91 | 23.72 | 0.685185 | 0.005902 | 0 | 0.171429 | 0 | 0 | 0.087688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.057143 | null | null | 0.371429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3d6f611cefdd5cca14738de72d37008403c9a63 | 970 | py | Python | fancy/config/option_preprocessing.py | susautw/fancy-config | 25a3bd51a40df071d00327640caa05b6288bd970 | [
"MIT"
] | 1 | 2022-03-17T04:47:52.000Z | 2022-03-17T04:47:52.000Z | fancy/config/option_preprocessing.py | susautw/fancy-config | 25a3bd51a40df071d00327640caa05b6288bd970 | [
"MIT"
] | 9 | 2021-12-01T08:01:52.000Z | 2022-03-16T13:05:07.000Z | fancy/config/option_preprocessing.py | susautw/fancy-config | 25a3bd51a40df071d00327640caa05b6288bd970 | [
"MIT"
] | 1 | 2022-03-07T09:29:06.000Z | 2022-03-07T09:29:06.000Z | import warnings
from pathlib import Path
from typing import Any, List
def identical(val: Any) -> Any:
return val
def to_string(val: Any) -> str:
warnings.warn("to_string has deprecated.use str to instead.", DeprecationWarning)
return str(val)
def to_integer(val: Any) -> int:
warnings.warn("to_inte... | 25.526316 | 92 | 0.719588 | 139 | 970 | 4.935252 | 0.179856 | 0.061224 | 0.069971 | 0.28863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173196 | 970 | 37 | 93 | 26.216216 | 0.855362 | 0 | 0 | 0 | 0 | 0 | 0.279381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.130435 | 0.043478 | 0.73913 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
b3e19b135f9937b8127b504d9686651695c64d32 | 439 | py | Python | Misc/Become_a_Python_Developer/1_Up and Running with Python/Ex_Files_UaR_Python/Exercise Files/Ch5/jsondata_start.py | specter01wj/LAB-Lynda | 1915ada66f4498cdf15a0e2a068c938e325e9ba3 | [
"MIT"
] | null | null | null | Misc/Become_a_Python_Developer/1_Up and Running with Python/Ex_Files_UaR_Python/Exercise Files/Ch5/jsondata_start.py | specter01wj/LAB-Lynda | 1915ada66f4498cdf15a0e2a068c938e325e9ba3 | [
"MIT"
] | 8 | 2020-07-08T06:20:03.000Z | 2022-03-02T10:05:06.000Z | Misc/Become_a_Python_Developer/1_Up and Running with Python/Ex_Files_UaR_Python/Exercise Files/Ch5/jsondata_start.py | specter01wj/LAB-Lynda | 1915ada66f4498cdf15a0e2a068c938e325e9ba3 | [
"MIT"
] | null | null | null | #
# Example file for parsing and processing JSON
# (For Python 3.x, be sure to use the ExampleSnippets3.txt file)
def main():
# define a variable to hold the source URL
# In this case we'll use the free data feed from the USGS
# This feed lists all earthquakes for the last day larger than Mag 2.5
urlDat... | 27.4375 | 86 | 0.710706 | 74 | 439 | 4.094595 | 0.743243 | 0.039604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022792 | 0.200456 | 439 | 15 | 87 | 29.266667 | 0.840456 | 0.621868 | 0 | 0 | 0 | 0.25 | 0.506329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.