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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f5d0de8071a138c495b23fdf7a3274acc749987d | 748 | py | Python | boost/libs/iterator/doc/generate.py | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 1,155 | 2015-01-10T19:04:33.000Z | 2022-03-30T12:30:30.000Z | boost/libs/iterator/doc/generate.py | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 618 | 2015-01-02T01:39:26.000Z | 2022-03-28T15:18:40.000Z | boost/libs/iterator/doc/generate.py | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 228 | 2015-01-13T12:55:42.000Z | 2022-03-30T11:11:05.000Z | #!/usr/bin/python
# Copyright David Abrahams 2004. Use, modification and distribution is
# subject to the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# Generate html, TeX, and PDF versions of all the source files
#
import os
import sy... | 22.666667 | 71 | 0.624332 | 112 | 748 | 4.133929 | 0.544643 | 0.012959 | 0.038877 | 0.051836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.251337 | 748 | 32 | 72 | 23.375 | 0.801786 | 0.382353 | 0 | 0 | 0 | 0 | 0.0883 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.235294 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5d7a1f244a0101dde545f091d534c4a7d04758f | 22,374 | py | Python | rayonix_detector.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | rayonix_detector.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | rayonix_detector.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | from __future__ import with_statement
"""
Remote control of the MAR CCD detector, using Michael Blum's sample remote
control server program "marccd_server_socket" with TCP port number 2222.
Usage example: ccd = rayonix_detector("marccd043.cars.aps.anl.gov:2222")
The server is started from the MarCCD software from the... | 40.532609 | 94 | 0.687271 | 3,264 | 22,374 | 4.629902 | 0.198529 | 0.012705 | 0.005823 | 0.005956 | 0.229156 | 0.196731 | 0.170593 | 0.150344 | 0.120699 | 0.107266 | 0 | 0.035457 | 0.205864 | 22,374 | 551 | 95 | 40.606171 | 0.815061 | 0.159337 | 0 | 0.178218 | 0 | 0 | 0.110717 | 0.024192 | 0 | 0 | 0.021772 | 0 | 0 | 0 | null | null | 0.006601 | 0.092409 | null | null | 0.013201 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5d8490e1e2147ffe2f3b5c55d849477feed17f5 | 987 | py | Python | apps/poll/admin.py | CasualGaming/studlan | 63daed67c1d309e4d5bd755eb68163e2174d0e00 | [
"MIT"
] | 9 | 2016-03-15T21:03:49.000Z | 2020-12-02T19:45:44.000Z | apps/poll/admin.py | piyushd26/studlan | 6eb96ebda182f44759b430cd497a727e0ee5bb63 | [
"MIT"
] | 161 | 2016-02-05T14:11:50.000Z | 2020-10-14T10:13:21.000Z | apps/poll/admin.py | piyushd26/studlan | 6eb96ebda182f44759b430cd497a727e0ee5bb63 | [
"MIT"
] | 11 | 2016-07-27T12:20:05.000Z | 2021-04-18T05:49:17.000Z | # -*- coding: utf-8 -*-
from django.conf import settings
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from .models import Poll, PollOption, PollParticipant, PollTranslation
class PollTranslationInlineAdmin(admin.StackedInline):
verbose_name = _(u'poll translation')
... | 26.675676 | 70 | 0.752786 | 103 | 987 | 7.029126 | 0.495146 | 0.060773 | 0.069061 | 0.080111 | 0.154696 | 0.093923 | 0 | 0 | 0 | 0 | 0 | 0.00358 | 0.150963 | 987 | 36 | 71 | 27.416667 | 0.860382 | 0.021277 | 0 | 0.086957 | 0 | 0 | 0.087137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173913 | 0 | 0.913043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f5d9120721ce5649069ed84a452b5b8dfe2a784d | 1,080 | py | Python | log/migrations/0001_initial.py | zyayoung/lab-item-tracking | 6d0ee000114300d6693ec078f974b9a6ef4dfe40 | [
"MIT"
] | 4 | 2019-01-14T15:44:22.000Z | 2019-01-16T16:07:19.000Z | log/migrations/0001_initial.py | zyayoung/lab-item-tracking | 6d0ee000114300d6693ec078f974b9a6ef4dfe40 | [
"MIT"
] | 2 | 2019-02-01T00:50:20.000Z | 2019-02-22T15:15:54.000Z | log/migrations/0001_initial.py | zyayoung/lab-item-tracking | 6d0ee000114300d6693ec078f974b9a6ef4dfe40 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2019-02-09 01:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('login', '0004_user_settings'),
]
operations = [
migrations.CreateModel(
nam... | 33.75 | 154 | 0.573148 | 115 | 1,080 | 5.243478 | 0.53913 | 0.127695 | 0.074627 | 0.084577 | 0.14262 | 0.14262 | 0.14262 | 0.14262 | 0 | 0 | 0 | 0.024453 | 0.280556 | 1,080 | 31 | 155 | 34.83871 | 0.751609 | 0.041667 | 0 | 0 | 1 | 0 | 0.123911 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5e16df72ca83999ae4c1469c35450c8374ca769 | 5,487 | py | Python | trim.py | watsoncm/PruneSeg | 07c0a209495f88ce596aabf4b5273260aae08c6f | [
"MIT-0",
"MIT"
] | null | null | null | trim.py | watsoncm/PruneSeg | 07c0a209495f88ce596aabf4b5273260aae08c6f | [
"MIT-0",
"MIT"
] | null | null | null | trim.py | watsoncm/PruneSeg | 07c0a209495f88ce596aabf4b5273260aae08c6f | [
"MIT-0",
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Trims weights on a pruned model."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import logging
import os
import shutil
import sys
import collections
# https://github.com/tensorflow/tensorflo... | 31 | 86 | 0.670676 | 763 | 5,487 | 4.619921 | 0.309305 | 0.015887 | 0.017021 | 0.017021 | 0.279716 | 0.230922 | 0.187801 | 0.174752 | 0.157163 | 0.157163 | 0 | 0.008329 | 0.21232 | 5,487 | 176 | 87 | 31.176136 | 0.807265 | 0.053399 | 0 | 0.198413 | 0 | 0 | 0.199145 | 0.016709 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.007937 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5ecb8a2ffa1d176a7212265a10a668ea8c41e13 | 2,186 | py | Python | earsie_eats_blog/users/views.py | genomics-geek/earsie-eats.com | b2d1e6626daa44b5e03198bdc9362758803fd3ee | [
"MIT"
] | null | null | null | earsie_eats_blog/users/views.py | genomics-geek/earsie-eats.com | b2d1e6626daa44b5e03198bdc9362758803fd3ee | [
"MIT"
] | 2 | 2018-10-15T20:37:03.000Z | 2018-10-15T20:37:21.000Z | earsie_eats_blog/users/views.py | genomics-geek/earsie-eats.com | b2d1e6626daa44b5e03198bdc9362758803fd3ee | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse
from django.views.generic import DetailView, ListView, RedirectView, UpdateView
from allauth.socialaccount.providers.facebook.views import FacebookOAuth2Adapter
from allauth.socialac... | 26.02381 | 87 | 0.799177 | 229 | 2,186 | 7.471616 | 0.323144 | 0.038574 | 0.070134 | 0.096435 | 0.160725 | 0.160725 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0.004197 | 0.128088 | 2,186 | 83 | 88 | 26.337349 | 0.893494 | 0.005032 | 0 | 0.195652 | 0 | 0 | 0.034975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.23913 | 0.065217 | 0.891304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f5f332ae8a0a9138f1bf1f9cb9461e54f15d1e4a | 3,172 | py | Python | FlaskApp/utils.py | robertavram/project5 | 12a2816b84be994b561f2f693cf34c0fa4f0ca19 | [
"Apache-2.0"
] | 7 | 2015-09-20T22:11:01.000Z | 2021-11-09T18:04:47.000Z | FlaskApp/utils.py | robertavram/project5 | 12a2816b84be994b561f2f693cf34c0fa4f0ca19 | [
"Apache-2.0"
] | 9 | 2020-03-24T15:24:59.000Z | 2022-03-11T23:13:00.000Z | FlaskApp/utils.py | robertavram/project5 | 12a2816b84be994b561f2f693cf34c0fa4f0ca19 | [
"Apache-2.0"
] | 2 | 2016-03-06T00:30:54.000Z | 2017-04-06T10:15:06.000Z | import random
import string
import other_info
import re
from dicttoxml import dicttoxml
def make_csrf_state(size):
''' Makes a CSRF state by randomly choosing uppercase letters and digits '''
return ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in xrange(size))
def valid_item_name(item_... | 36.883721 | 95 | 0.655738 | 451 | 3,172 | 4.474501 | 0.2949 | 0.051536 | 0.021804 | 0.032706 | 0.273538 | 0.174926 | 0.133796 | 0.107037 | 0.063429 | 0.063429 | 0 | 0.004085 | 0.228247 | 3,172 | 86 | 96 | 36.883721 | 0.820261 | 0.202081 | 0 | 0.169492 | 0 | 0 | 0.148013 | 0.020681 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169492 | false | 0 | 0.084746 | 0.050847 | 0.627119 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
f5f9825d02f03902cb1bb9ded49a61a7434a47a1 | 4,451 | py | Python | scripts/typing-summary.py | AlexWaygood/typing | 4bdf0db49dda83a00dfb5f7e45c96e89bc0e0c8a | [
"PSF-2.0"
] | 1,145 | 2016-01-23T00:30:39.000Z | 2022-03-31T23:56:30.000Z | scripts/typing-summary.py | ConnectionMaster/typing | eeb29ad833f992ea9f2f29b32723c05586cd0aec | [
"PSF-2.0"
] | 753 | 2016-01-23T05:04:33.000Z | 2022-03-26T16:12:23.000Z | scripts/typing-summary.py | ConnectionMaster/typing | eeb29ad833f992ea9f2f29b32723c05586cd0aec | [
"PSF-2.0"
] | 212 | 2016-01-23T00:22:21.000Z | 2022-03-28T07:28:56.000Z | #!/usr/bin/env python3
"""
Generate a summary of last week's issues tagged with "topic: feature".
The summary will include a list of new and changed issues and is sent each
Monday at 0200 CE(S)T to the typing-sig mailing list. Due to limitation
with GitHub Actions, the mail is sent from a private server, currently
ma... | 30.696552 | 87 | 0.609077 | 603 | 4,451 | 4.402985 | 0.283582 | 0.008286 | 0.025612 | 0.031638 | 0.164218 | 0.144633 | 0.091902 | 0.064783 | 0.064783 | 0.035405 | 0 | 0.008194 | 0.232307 | 4,451 | 144 | 88 | 30.909722 | 0.768803 | 0.082004 | 0 | 0.073395 | 1 | 0.009174 | 0.310582 | 0.060398 | 0 | 0 | 0 | 0 | 0.045872 | 1 | 0.073395 | false | 0 | 0.045872 | 0 | 0.238532 | 0.06422 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5f9b2024d88de3280e080a7a672f1847a682a03 | 2,231 | py | Python | pi/ch08_rfid_read/SimpleMFRC522.py | simonmonk/hacking2 | f632db6734f078453a2463f58c62cf6bbea2bfdd | [
"MIT"
] | 10 | 2016-12-14T21:01:07.000Z | 2022-03-20T08:33:44.000Z | pi/ch08_rfid_read/SimpleMFRC522.py | simonmonk/hacking2 | f632db6734f078453a2463f58c62cf6bbea2bfdd | [
"MIT"
] | 1 | 2022-01-29T05:39:05.000Z | 2022-01-29T05:39:05.000Z | pi/ch08_rfid_read/SimpleMFRC522.py | simonmonk/hacking2 | f632db6734f078453a2463f58c62cf6bbea2bfdd | [
"MIT"
] | 9 | 2017-01-24T13:39:58.000Z | 2021-11-17T13:25:35.000Z | import MFRC522
import RPi.GPIO as GPIO
class SimpleMFRC522:
READER = None;
TAG = { 'id' : None, 'text' : ''};
KEY = [0xFF,0xFF,0xFF,0xFF,0xFF,0xFF]
def __init__(self):
self.READER = MFRC522.MFRC522()
def read(self):
tag = self.read_no_block()
while not tag:
... | 31.422535 | 86 | 0.584043 | 300 | 2,231 | 4.19 | 0.19 | 0.198886 | 0.202864 | 0.085919 | 0.750994 | 0.68576 | 0.633254 | 0.595068 | 0.595068 | 0.595068 | 0 | 0.051086 | 0.298073 | 2,231 | 71 | 87 | 31.422535 | 0.751596 | 0 | 0 | 0.644068 | 0 | 0 | 0.008326 | 0 | 0 | 0 | 0.011101 | 0 | 0 | 1 | 0.101695 | false | 0 | 0.033898 | 0 | 0.355932 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f5fd5b963ae6b9ba854ba38bd56ac340275fd09e | 12,221 | py | Python | src/congram.py | marvintau/congram | c2f18f149d2bb88ca85de913c785d7393f94d70c | [
"Unlicense"
] | null | null | null | src/congram.py | marvintau/congram | c2f18f149d2bb88ca85de913c785d7393f94d70c | [
"Unlicense"
] | null | null | null | src/congram.py | marvintau/congram | c2f18f149d2bb88ca85de913c785d7393f94d70c | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import itertools
import numpy as np
from color_schemes import color_func
def get_term_size():
rows, columns = os.popen('stty size', 'r').read().split()
return int(rows), int(columns)
class Pos:
def __init__(self, row, col):
self.row = row
se... | 34.817664 | 92 | 0.546682 | 1,746 | 12,221 | 3.674112 | 0.139175 | 0.019641 | 0.030398 | 0.038504 | 0.320187 | 0.267186 | 0.213874 | 0.187685 | 0.162744 | 0.148246 | 0 | 0.019491 | 0.328287 | 12,221 | 350 | 93 | 34.917143 | 0.76075 | 0.073316 | 0 | 0.145833 | 0 | 0 | 0.041622 | 0.002793 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.020833 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb01e02f280ad832c00ecbbd2c8eb165d5eeacb0 | 360 | py | Python | luizalabs/core/migrations/0011_auto_20190911_0550.py | LucasSRocha/django_rest_llabs | ab5136f845a5b12b7febfb332e3f80c51a5baef4 | [
"MIT"
] | null | null | null | luizalabs/core/migrations/0011_auto_20190911_0550.py | LucasSRocha/django_rest_llabs | ab5136f845a5b12b7febfb332e3f80c51a5baef4 | [
"MIT"
] | 45 | 2020-04-06T09:52:01.000Z | 2021-07-14T08:34:46.000Z | luizalabs/core/migrations/0011_auto_20190911_0550.py | LucasSRocha/django_rest_llabs | ab5136f845a5b12b7febfb332e3f80c51a5baef4 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.12 on 2019-09-11 05:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0010_auto_20190910_1022'),
]
operations = [
migrations.AlterUniqueTogether(
name='product',
unique_together={('wish... | 20 | 57 | 0.605556 | 37 | 360 | 5.756757 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122137 | 0.272222 | 360 | 17 | 58 | 21.176471 | 0.69084 | 0.127778 | 0 | 0 | 1 | 0 | 0.166667 | 0.073718 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb0c14cae9cc8836e61e6209c8f8e14a3d05fbbb | 3,655 | py | Python | accounts/migrations/0001_initial.py | UniversitaDellaCalabria/IdM | 0c80bc1a192e8f3075c941ca2d89773bca25e892 | [
"Apache-2.0"
] | 2 | 2020-03-02T23:03:16.000Z | 2020-07-13T06:04:04.000Z | accounts/migrations/0001_initial.py | UniversitaDellaCalabria/IdM | 0c80bc1a192e8f3075c941ca2d89773bca25e892 | [
"Apache-2.0"
] | 7 | 2020-01-28T15:57:35.000Z | 2020-07-01T15:16:46.000Z | accounts/migrations/0001_initial.py | UniversitaDellaCalabria/IdM | 0c80bc1a192e8f3075c941ca2d89773bca25e892 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.1.4 on 2019-02-18 14:37
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_ma... | 71.666667 | 329 | 0.659097 | 423 | 3,655 | 5.539007 | 0.380615 | 0.093897 | 0.06402 | 0.072983 | 0.235595 | 0.235595 | 0.151088 | 0.110115 | 0.110115 | 0.110115 | 0 | 0.015369 | 0.198906 | 3,655 | 50 | 330 | 73.1 | 0.784836 | 0.012312 | 0 | 0.046512 | 1 | 0 | 0.277993 | 0.009978 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.023256 | 0.093023 | 0 | 0.186047 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb0f0387bd1400e534fc825cb5ca5b8f82983495 | 3,553 | py | Python | src/user_lib/connection_manager.py | crehmann/CO2Logger | e4d8d62af5fdc9419c1be356642268d6f4e6ce6e | [
"MIT"
] | null | null | null | src/user_lib/connection_manager.py | crehmann/CO2Logger | e4d8d62af5fdc9419c1be356642268d6f4e6ce6e | [
"MIT"
] | null | null | null | src/user_lib/connection_manager.py | crehmann/CO2Logger | e4d8d62af5fdc9419c1be356642268d6f4e6ce6e | [
"MIT"
] | null | null | null | from utime import ticks_ms
import network
import time
from umqtt.simple import MQTTClient
STATE_DISCONNECTED = 0
STATE_WLAN_CONNECTING = 1
STATE_WLAN_CONNECTED = 2
STATE_MQTT_CONNECTING = 3
STATE_MQTT_CONNECTED = 4
WLAN_CONNECTION_TIMEOUT_MS = 30 * 1000
MQTT_CONNECTION_TIMEOUT_MS ... | 31.442478 | 84 | 0.683929 | 400 | 3,553 | 5.7275 | 0.2525 | 0.058926 | 0.091663 | 0.054998 | 0.275426 | 0.136185 | 0.054998 | 0.054998 | 0 | 0 | 0 | 0.009131 | 0.229384 | 3,553 | 112 | 85 | 31.723214 | 0.827611 | 0.008162 | 0 | 0.210526 | 0 | 0 | 0.063334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126316 | false | 0.063158 | 0.042105 | 0 | 0.178947 | 0.126316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
eb0f478eb9ad3f737759dbdf459daad0e6c0cb46 | 378 | py | Python | setup.py | karlcow/ymir | 17480db4a6b782130c3c68f5fa255999d2aec8e6 | [
"MIT"
] | 1 | 2021-07-08T08:41:25.000Z | 2021-07-08T08:41:25.000Z | setup.py | karlcow/ymir | 17480db4a6b782130c3c68f5fa255999d2aec8e6 | [
"MIT"
] | 16 | 2015-10-29T00:24:03.000Z | 2021-05-16T23:28:55.000Z | setup.py | karlcow/ymir | 17480db4a6b782130c3c68f5fa255999d2aec8e6 | [
"MIT"
] | 1 | 2020-12-06T22:05:12.000Z | 2020-12-06T22:05:12.000Z | import distutils.core
distutils.core.setup(
name='Ymir',
author='Karl Dubost',
author_email='karl+ymir@la-grange.net',
version='0.1dev',
packages=['ymir', ],
license='LICENSE.txt',
url='http://pypi.python.org/pypi/Ymir/',
description='script to manage La Grange blog http://www.la-grange... | 27 | 76 | 0.65873 | 51 | 378 | 4.843137 | 0.666667 | 0.097166 | 0.089069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.153439 | 378 | 13 | 77 | 29.076923 | 0.765625 | 0 | 0 | 0 | 0 | 0 | 0.420635 | 0.060847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb213d9c20ba82489f616e66add019f802b83f38 | 442 | py | Python | questionbank/comments/filters.py | SyafiqTermizi/questionbank | 33e58db1a1610a85bd30a85d2f52e819bc27058b | [
"MIT"
] | 1 | 2018-04-17T23:58:46.000Z | 2018-04-17T23:58:46.000Z | questionbank/comments/filters.py | SyafiqTermizi/questionbank | 33e58db1a1610a85bd30a85d2f52e819bc27058b | [
"MIT"
] | 8 | 2019-12-04T23:08:00.000Z | 2022-02-13T22:48:26.000Z | questionbank/comments/filters.py | SyafiqTermizi/questionbank | 33e58db1a1610a85bd30a85d2f52e819bc27058b | [
"MIT"
] | null | null | null | import django_filters
from .models import QuestionComment, ExamComment
class QuestionCommentFilter(django_filters.FilterSet):
is_resolved = django_filters.BooleanFilter()
class Meta:
model = QuestionComment
fields = ('is_resolved',)
class ExamCommentFilter(django_filters.FilterSet):
is... | 22.1 | 54 | 0.723982 | 42 | 442 | 7.404762 | 0.404762 | 0.209003 | 0.141479 | 0.154341 | 0.463023 | 0.463023 | 0.463023 | 0.463023 | 0.463023 | 0.463023 | 0 | 0 | 0.199095 | 442 | 19 | 55 | 23.263158 | 0.878531 | 0 | 0 | 0.5 | 0 | 0 | 0.049774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.666667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb236932bbc3967b19fc9c6cdaf355300c97ddf5 | 412 | py | Python | botorch/test_functions/__init__.py | cnheider/botorch | 1d90aaff64b2f1e1f49bcac233b45ba18427f6fd | [
"MIT"
] | null | null | null | botorch/test_functions/__init__.py | cnheider/botorch | 1d90aaff64b2f1e1f49bcac233b45ba18427f6fd | [
"MIT"
] | null | null | null | botorch/test_functions/__init__.py | cnheider/botorch | 1d90aaff64b2f1e1f49bcac233b45ba18427f6fd | [
"MIT"
] | 1 | 2020-04-24T14:32:14.000Z | 2020-04-24T14:32:14.000Z | #!/usr/bin/env python3
from .branin import neg_branin
from .eggholder import neg_eggholder
from .hartmann6 import neg_hartmann6
from .holder_table import neg_holder_table
from .michalewicz import neg_michalewicz
from .styblinski_tang import neg_styblinski_tang
__all__ = [
"neg_branin",
"neg_eggholder",
"... | 21.684211 | 48 | 0.769417 | 53 | 412 | 5.566038 | 0.301887 | 0.183051 | 0.094915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011461 | 0.152913 | 412 | 18 | 49 | 22.888889 | 0.833811 | 0.050971 | 0 | 0 | 0 | 0 | 0.220513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
eb301c60e7031b3ca023e52faf009eb9c165bba4 | 14,895 | py | Python | kernal/FileSystem.py | FAWC-bupt/OS-Course-Design | f8901c747004f49c859a215663149181625f2d5d | [
"MIT"
] | 1 | 2022-01-07T09:31:39.000Z | 2022-01-07T09:31:39.000Z | kernal/FileSystem.py | FAWC-bupt/Operating-System-Simulator | f8901c747004f49c859a215663149181625f2d5d | [
"MIT"
] | null | null | null | kernal/FileSystem.py | FAWC-bupt/Operating-System-Simulator | f8901c747004f49c859a215663149181625f2d5d | [
"MIT"
] | null | null | null | """
目录逻辑结构:树形
目录物理结构:连续形
TODO:磁盘外部碎片如何处理?
TODO:磁盘IO添加中断
"""
import math
from enum import Enum
from kernal import Tool
class FileOperation(Enum):
Read = 0
Write = 1
Create = 2
Rename = 3
Delete = 4
Redirect = 5
class FileAuthority(Enum):
Default = 0
ReadOnly = 1
WriteOnly = 2
c... | 29.909639 | 110 | 0.603155 | 1,738 | 14,895 | 4.947066 | 0.161105 | 0.048849 | 0.026053 | 0.034892 | 0.404629 | 0.336125 | 0.270877 | 0.24308 | 0.207839 | 0.185508 | 0 | 0.010841 | 0.306412 | 14,895 | 497 | 111 | 29.969819 | 0.821411 | 0.154884 | 0 | 0.375 | 0 | 0 | 0.031644 | 0 | 0 | 0 | 0 | 0.020121 | 0.018382 | 1 | 0.073529 | false | 0.003676 | 0.011029 | 0.007353 | 0.327206 | 0.051471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
eb32805bce22208f8924afc48ef2999eeed4dff9 | 206 | py | Python | setup.py | Johannes-Larsson/codeswapbot | 35b97bf9e762514dca299c97deb150f6af884ccc | [
"MIT"
] | null | null | null | setup.py | Johannes-Larsson/codeswapbot | 35b97bf9e762514dca299c97deb150f6af884ccc | [
"MIT"
] | null | null | null | setup.py | Johannes-Larsson/codeswapbot | 35b97bf9e762514dca299c97deb150f6af884ccc | [
"MIT"
] | null | null | null | import sqlite3
db = sqlite3.connect('data.db')
c=db.cursor()
c.execute('create table users (id integer primary key, name text, partner text, recieve_date date, partnered_date date)')
db.commit()
db.close()
| 29.428571 | 121 | 0.752427 | 33 | 206 | 4.636364 | 0.69697 | 0.104575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.11165 | 206 | 6 | 122 | 34.333333 | 0.825137 | 0 | 0 | 0 | 0 | 0.166667 | 0.558252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 1 |
eb420202d02f0a89c4a500231a6aa7447b12a1c2 | 2,322 | py | Python | thing/models/skillplan.py | Gillingham/evething | e00b722cf00a6a3a25e1fff3014ed3365c7ef3e4 | [
"BSD-2-Clause"
] | 33 | 2015-02-18T00:07:57.000Z | 2020-06-09T15:19:05.000Z | thing/models/skillplan.py | Gillingham/evething | e00b722cf00a6a3a25e1fff3014ed3365c7ef3e4 | [
"BSD-2-Clause"
] | 19 | 2015-03-09T19:51:43.000Z | 2019-10-19T12:04:23.000Z | thing/models/skillplan.py | Gillingham/evething | e00b722cf00a6a3a25e1fff3014ed3365c7ef3e4 | [
"BSD-2-Clause"
] | 20 | 2015-02-20T17:53:17.000Z | 2022-02-11T06:29:11.000Z | # ------------------------------------------------------------------------------
# Copyright (c) 2010-2013, EVEthing team
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# Redistributions of... | 42.218182 | 88 | 0.675711 | 282 | 2,322 | 5.510638 | 0.542553 | 0.023166 | 0.021879 | 0.029601 | 0.118404 | 0.087516 | 0.087516 | 0.087516 | 0.087516 | 0.087516 | 0 | 0.008515 | 0.190784 | 2,322 | 54 | 89 | 43 | 0.81852 | 0.633075 | 0 | 0 | 0 | 0 | 0.054414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de198117961041ac382c6ada2468793219833665 | 838 | py | Python | code/haitiwater/apps/consumers/views.py | exavince/HaitiWater | 8c870401b50609c19e23c8be082cbfb17d8e9f5f | [
"MIT"
] | 4 | 2018-10-28T17:31:19.000Z | 2020-04-08T12:31:32.000Z | code/haitiwater/apps/consumers/views.py | exavince/HaitiWater | 8c870401b50609c19e23c8be082cbfb17d8e9f5f | [
"MIT"
] | 9 | 2018-11-05T18:51:57.000Z | 2021-03-19T22:14:26.000Z | code/haitiwater/apps/consumers/views.py | AdrienHalletUCL/HaitiWater | 6bf893bf778c9438eb8a6a329cfa4bb4acdd3c45 | [
"MIT"
] | 2 | 2018-10-28T17:38:21.000Z | 2019-09-01T15:12:50.000Z | from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.template import loader
from haitiwater.settings import PROJECT_VERSION, PROJECT_NAME
from ..utils.get_data import *
@login_required(login_url='/login/')
def index(request):
template = loader.get_template('c... | 36.434783 | 81 | 0.72673 | 103 | 838 | 5.660194 | 0.553398 | 0.051458 | 0.108062 | 0.085763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00289 | 0.174224 | 838 | 22 | 82 | 38.090909 | 0.839595 | 0.059666 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0.045455 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de233d7549394b840269161a7e1ea6b6fb2848f3 | 259 | py | Python | app/schemas/email_sub.py | javi-cortes/linkedon | 3021e2d737ac1c71b2bda3a74a0d8a8b0db37158 | [
"MIT"
] | null | null | null | app/schemas/email_sub.py | javi-cortes/linkedon | 3021e2d737ac1c71b2bda3a74a0d8a8b0db37158 | [
"MIT"
] | null | null | null | app/schemas/email_sub.py | javi-cortes/linkedon | 3021e2d737ac1c71b2bda3a74a0d8a8b0db37158 | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic import BaseModel, EmailStr
class EmailSub(BaseModel):
email: EmailStr = None
# search patterns
salary_max: Optional[int] = 0
salary_min: Optional[int] = 0
class Config:
orm_mode = True
| 18.5 | 40 | 0.69112 | 32 | 259 | 5.5 | 0.6875 | 0.125 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010204 | 0.243243 | 259 | 13 | 41 | 19.923077 | 0.887755 | 0.057915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de292956b3a1055ad6afdd13db1e61f041104fcf | 541 | py | Python | venv/Lib/site-packages/timingsutil/unittests/test_stopwatch.py | avim2809/CameraSiteBlocker | bfc0434e75e8f3f95c459a4adc86b7673200816e | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/timingsutil/unittests/test_stopwatch.py | avim2809/CameraSiteBlocker | bfc0434e75e8f3f95c459a4adc86b7673200816e | [
"Apache-2.0"
] | null | null | null | venv/Lib/site-packages/timingsutil/unittests/test_stopwatch.py | avim2809/CameraSiteBlocker | bfc0434e75e8f3f95c459a4adc86b7673200816e | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
import time
import unittest
from timingsutil import Stopwatch
import logging_helper
logging = logging_helper.setup_logging()
class TestConfiguration(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_stopwatch(self):
stopwatch = Stopw... | 17.451613 | 55 | 0.650647 | 62 | 541 | 5.467742 | 0.548387 | 0.076696 | 0.064897 | 0.123894 | 0.176991 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012285 | 0.247689 | 541 | 30 | 56 | 18.033333 | 0.820639 | 0.027726 | 0 | 0.111111 | 0 | 0 | 0.015267 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.166667 | false | 0.111111 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
de2e30fe0ddd21bc7756f284b4d357774136bdd0 | 709 | py | Python | prodigy_backend/classes/migrations/0004_auto_20210118_0351.py | Savimaster/Prodigy | d4dcf516639348247ebdba2ba80a20dc3ff09a84 | [
"MIT"
] | 4 | 2021-01-19T03:10:51.000Z | 2021-01-19T06:05:11.000Z | prodigy_backend/classes/migrations/0004_auto_20210118_0351.py | Savimaster/Prodigy | d4dcf516639348247ebdba2ba80a20dc3ff09a84 | [
"MIT"
] | null | null | null | prodigy_backend/classes/migrations/0004_auto_20210118_0351.py | Savimaster/Prodigy | d4dcf516639348247ebdba2ba80a20dc3ff09a84 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.5 on 2021-01-18 03:51
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('classes', '0003_auto_20210117_2058'),
]
operations = [
migrations.AlterField(
model_name='class',
... | 28.36 | 173 | 0.637518 | 76 | 709 | 5.828947 | 0.592105 | 0.06772 | 0.13544 | 0.130926 | 0.162528 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069159 | 0.245416 | 709 | 24 | 174 | 29.541667 | 0.758879 | 0.06347 | 0 | 0.222222 | 1 | 0 | 0.077039 | 0.034743 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de2feb2129bfb0fd15e82c522715d7e195e96e5b | 5,382 | py | Python | object_classification/batchbald_redux/batchbald.py | YilunZhou/optimal-active-learning | 9ddd822377c42acb345681fcd638f912e8123c53 | [
"MIT"
] | 10 | 2021-01-30T21:48:34.000Z | 2022-03-18T10:39:47.000Z | object_classification/batchbald_redux/batchbald.py | YilunZhou/optimal-active-learning | 9ddd822377c42acb345681fcd638f912e8123c53 | [
"MIT"
] | null | null | null | object_classification/batchbald_redux/batchbald.py | YilunZhou/optimal-active-learning | 9ddd822377c42acb345681fcd638f912e8123c53 | [
"MIT"
] | 1 | 2022-02-12T11:48:00.000Z | 2022-02-12T11:48:00.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_batchbald.ipynb (unless otherwise specified).
__all__ = ['compute_conditional_entropy', 'compute_entropy', 'CandidateBatch', 'get_batchbald_batch', 'get_bald_batch']
# Cell
from dataclasses import dataclass
from typing import List
import torch
import math
from tqdm.auto ... | 30.067039 | 119 | 0.638982 | 748 | 5,382 | 4.252674 | 0.160428 | 0.027664 | 0.040553 | 0.052814 | 0.577177 | 0.555486 | 0.516504 | 0.48884 | 0.458032 | 0.458032 | 0 | 0.009089 | 0.264028 | 5,382 | 179 | 120 | 30.067039 | 0.793991 | 0.03586 | 0 | 0.462963 | 1 | 0 | 0.029531 | 0.005211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.064815 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de3510dc5d15a488232fdce0eea89ed7b1dc763e | 12,810 | py | Python | main.py | aishmittal/Real-time-Face-Recognition-based-Surveillance-System | d6c06bc41994307da64ebbcb1ac77f41814d6ba1 | [
"MIT"
] | 10 | 2019-05-12T17:51:14.000Z | 2022-01-25T15:12:20.000Z | main.py | aishmittal/Real-time-Face-Recognition-based-Surveillance-System | d6c06bc41994307da64ebbcb1ac77f41814d6ba1 | [
"MIT"
] | 2 | 2022-01-24T15:40:38.000Z | 2022-01-26T10:55:18.000Z | main.py | aishmittal/Real-time-Face-Recognition-based-Surveillance-System | d6c06bc41994307da64ebbcb1ac77f41814d6ba1 | [
"MIT"
] | 1 | 2019-04-15T17:20:21.000Z | 2019-04-15T17:20:21.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import os
import cv2
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
import datetime
import string
import random
import shutil
from time import gmtime, strftime, sleep
import sqlite3
# import imageUpload.py for uploading captured... | 36.495726 | 145 | 0.559875 | 1,424 | 12,810 | 4.88132 | 0.233146 | 0.014674 | 0.020573 | 0.037549 | 0.23047 | 0.19062 | 0.095957 | 0.086462 | 0.086462 | 0.066609 | 0 | 0.030481 | 0.33669 | 12,810 | 351 | 146 | 36.495727 | 0.787572 | 0.038407 | 0 | 0.125 | 0 | 0 | 0.072566 | 0.004713 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05303 | null | null | 0.049242 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de44a3757472b890b6c78abff1b4f1d7adc856f3 | 1,123 | py | Python | script.py | Lets7512/Saved_WiFi_Passwords_Scraper_On_Windows | 71fbc315c04f7725cfb48700d1eee9b096b804c1 | [
"MIT"
] | null | null | null | script.py | Lets7512/Saved_WiFi_Passwords_Scraper_On_Windows | 71fbc315c04f7725cfb48700d1eee9b096b804c1 | [
"MIT"
] | null | null | null | script.py | Lets7512/Saved_WiFi_Passwords_Scraper_On_Windows | 71fbc315c04f7725cfb48700d1eee9b096b804c1 | [
"MIT"
] | null | null | null | import os,platform,subprocess
from sys import exit
def main():
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
txt=subprocess.check_output('netsh wlan show profiles', shell=False, startupinfo=startupinfo).decode()
txt=txt.splitlines()
users=[]
... | 35.09375 | 151 | 0.496883 | 119 | 1,123 | 4.579832 | 0.487395 | 0.121101 | 0.077064 | 0.095413 | 0.26422 | 0.124771 | 0 | 0 | 0 | 0 | 0 | 0.012397 | 0.353517 | 1,123 | 32 | 152 | 35.09375 | 0.738292 | 0 | 0 | 0 | 0 | 0 | 0.141812 | 0.024703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0.15625 | 0.0625 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
de451c10061336a065fc4ec124f7a51f7daf134b | 325 | py | Python | setup.py | zain/pyr | 706ebcc4674194d6f2a418ff5fc6152b821431fd | [
"MIT"
] | 1 | 2020-07-11T22:36:40.000Z | 2020-07-11T22:36:40.000Z | setup.py | zain/pyr | 706ebcc4674194d6f2a418ff5fc6152b821431fd | [
"MIT"
] | null | null | null | setup.py | zain/pyr | 706ebcc4674194d6f2a418ff5fc6152b821431fd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='pyr',
version='0.4.1',
description='A nicer REPL for Python.',
author='Zain Memon',
author_email='zain@inzain.net',
url='https://github.com/zain/pyr',
packages=['pyr'],
install_requires=['pygments'],
scripts=['bin/pyr'... | 20.3125 | 43 | 0.627692 | 43 | 325 | 4.697674 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011321 | 0.184615 | 325 | 15 | 44 | 21.666667 | 0.750943 | 0.061538 | 0 | 0 | 0 | 0 | 0.335526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de49f41956ebfed0941a9036aab4ac016234c4f1 | 2,846 | py | Python | tests/test_ndvisummarytimeseries.py | tmilliman/python-vegindex | 5cf6e42b35d91d8a1451863c19022a39f3c76f0d | [
"MIT"
] | 11 | 2018-11-22T02:48:35.000Z | 2021-10-03T13:58:14.000Z | tests/test_ndvisummarytimeseries.py | tmilliman/python-vegindex | 5cf6e42b35d91d8a1451863c19022a39f3c76f0d | [
"MIT"
] | 1 | 2017-11-27T14:37:32.000Z | 2017-11-27T19:25:09.000Z | tests/test_ndvisummarytimeseries.py | tmilliman/python-vegindex | 5cf6e42b35d91d8a1451863c19022a39f3c76f0d | [
"MIT"
] | 9 | 2017-11-24T15:51:34.000Z | 2021-11-08T08:43:53.000Z | # -*- coding: utf-8 -*-
"""
test_ndvisummarytimeseries
--------------------------
Tests for `vegindex.ndvi_summary_timeseries` module.
"""
import os
import numpy as np
from PIL import Image
from pkg_resources import Requirement
from pkg_resources import resource_filename
from vegindex import config
from vegindex im... | 30.276596 | 73 | 0.716444 | 401 | 2,846 | 4.80798 | 0.264339 | 0.093361 | 0.155602 | 0.207469 | 0.65249 | 0.624481 | 0.624481 | 0.624481 | 0.624481 | 0.567427 | 0 | 0.051746 | 0.164793 | 2,846 | 93 | 74 | 30.602151 | 0.759361 | 0.156008 | 0 | 0.581818 | 0 | 0 | 0.1431 | 0.050106 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.036364 | false | 0 | 0.145455 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de4ccb9c46824e6135e0cc76b9b1624baed3292b | 712 | py | Python | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/scripts/__init__.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 4 | 2019-05-30T01:52:12.000Z | 2021-09-29T21:12:13.000Z | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/scripts/__init__.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | IMU/VTK-6.2.0/ThirdParty/Twisted/twisted/scripts/__init__.py | timkrentz/SunTracker | 9a189cc38f45e5fbc4e4c700d7295a871d022795 | [
"MIT"
] | 2 | 2019-08-30T23:36:13.000Z | 2019-11-08T16:52:01.000Z | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Subpackage containing the modules that implement the command line tools.
Note that these are imported by top-level scripts which are intended to be
invoked directly from a shell.
"""
from twisted.python.versions import Version
fro... | 25.428571 | 75 | 0.724719 | 79 | 712 | 6.43038 | 0.721519 | 0.043307 | 0.066929 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014035 | 0.199438 | 712 | 27 | 76 | 26.37037 | 0.877193 | 0.348315 | 0 | 0.307692 | 0 | 0 | 0.245327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de4cec8afe0200f2424e6d821a3c17010e91104e | 292 | py | Python | backend/chat/routing.py | CSCI34284/group4_project | ee87cb5fd0b194fea4f7e2baed2a790c0bc1950f | [
"MIT"
] | 1 | 2019-10-25T14:56:50.000Z | 2019-10-25T14:56:50.000Z | backend/chat/routing.py | CSCI34284/group4_project | ee87cb5fd0b194fea4f7e2baed2a790c0bc1950f | [
"MIT"
] | 8 | 2020-02-12T03:09:18.000Z | 2021-06-10T19:31:18.000Z | backend/chat/routing.py | CSCI34284/group4_project | ee87cb5fd0b194fea4f7e2baed2a790c0bc1950f | [
"MIT"
] | 2 | 2019-10-18T18:20:28.000Z | 2019-12-05T19:38:57.000Z | """
Prepared by Backend/Server Team - Sheldon, Martin, Brian, Sarah, Veronica.
"""
from django.urls import re_path
from .consumers import ChatConsumer
# Assign pattern to activate selected websocket
websocket_urlpatterns = [
re_path(r'^ws/chat/(?P<room_name>[^/]+)/$', ChatConsumer),
]
| 24.333333 | 74 | 0.729452 | 37 | 292 | 5.648649 | 0.837838 | 0.057416 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133562 | 292 | 11 | 75 | 26.545455 | 0.826087 | 0.414384 | 0 | 0 | 0 | 0 | 0.190184 | 0.190184 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
de4ed558cdcb498726b4bd97f8fb2f2f03e957a2 | 2,147 | py | Python | UD/test.py | Anon-LeoH/UncleDaLearn | 8721658ecc15860a8a77af4ef2738edc049f4811 | [
"MIT"
] | 1 | 2017-06-14T08:43:37.000Z | 2017-06-14T08:43:37.000Z | UD/test.py | Anon-LeoH/UncleDaLearn | 8721658ecc15860a8a77af4ef2738edc049f4811 | [
"MIT"
] | null | null | null | UD/test.py | Anon-LeoH/UncleDaLearn | 8721658ecc15860a8a77af4ef2738edc049f4811 | [
"MIT"
] | null | null | null | from LinearRegression.HugeScaleLR import hugeScaleLR as hlr
from LinearRegression.GradientDescent import gradientDescent as glr
from LinearRegression.regularization import regularization as rg
import numpy as np
from copy import deepcopy as dp
import random
import math
from Function import *
from Distribution import No... | 22.6 | 86 | 0.581276 | 363 | 2,147 | 3.424242 | 0.327824 | 0.006436 | 0.019308 | 0.038616 | 0.152856 | 0.141593 | 0.037007 | 0 | 0 | 0 | 0 | 0.098231 | 0.236609 | 2,147 | 94 | 87 | 22.840426 | 0.660159 | 0.251514 | 0 | 0.086207 | 0 | 0 | 0.029578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017241 | 0.189655 | null | null | 0.017241 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de511348ffa45c7de88241b55b0201259aca6ab2 | 1,782 | py | Python | diventi/landing/migrations/0009_auto_20180220_0745.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 2 | 2019-06-27T16:00:17.000Z | 2020-08-14T07:46:05.000Z | diventi/landing/migrations/0009_auto_20180220_0745.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 26 | 2020-02-15T22:39:35.000Z | 2022-02-19T21:09:01.000Z | diventi/landing/migrations/0009_auto_20180220_0745.py | flavoi/diven | 3173ca3ca3fbedc191b8eab3639a6bceb3c442c4 | [
"Apache-2.0"
] | 1 | 2021-11-12T22:30:15.000Z | 2021-11-12T22:30:15.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-02-20 06:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('landing', '0008_remove_featurescover_active'),
]
o... | 39.6 | 171 | 0.60101 | 175 | 1,782 | 5.948571 | 0.462857 | 0.084534 | 0.057637 | 0.069164 | 0.146974 | 0.146974 | 0.146974 | 0.113353 | 0.113353 | 0.113353 | 0 | 0.02126 | 0.260943 | 1,782 | 44 | 172 | 40.5 | 0.769172 | 0.038159 | 0 | 0.162162 | 1 | 0 | 0.192285 | 0.033314 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de5bc069e30e0a7a6c0b88cdce700c58bd3ecbd7 | 1,577 | py | Python | apps/operations/urls.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 3 | 2020-03-16T02:49:59.000Z | 2022-03-21T15:04:44.000Z | apps/operations/urls.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 1 | 2020-12-10T08:04:25.000Z | 2020-12-10T08:04:25.000Z | apps/operations/urls.py | bopopescu/diandian_online | 05eba122762c087623d42fad5352f6b67c73bcc5 | [
"BSD-3-Clause"
] | 2 | 2020-05-01T08:16:25.000Z | 2020-07-21T00:12:06.000Z | # _*_ coding: utf-8 _*_
__author__ = 'nick'
__date__ = '2019/2/25 18:14'
from django.urls import path
from . import views
app_name = 'operations'
urlpatterns = [
# 用户个人中心
path('user_center_information/', views.UserCenterInformation.as_view(), name='user_center_information'),
# 用户学习的课程
path('user_cen... | 37.547619 | 124 | 0.742549 | 187 | 1,577 | 5.828877 | 0.342246 | 0.110092 | 0.110092 | 0.077064 | 0.236697 | 0.063303 | 0 | 0 | 0 | 0 | 0 | 0.008664 | 0.12175 | 1,577 | 42 | 125 | 37.547619 | 0.778339 | 0.069753 | 0 | 0 | 0 | 0 | 0.376204 | 0.248968 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.105263 | 0 | 0.105263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
de5dee05fb839225f8ad8293b773480370be9415 | 296 | py | Python | Maths/7. Reverse Integer.py | thewires2/Leetcode | a37ff81d60dd9195ba637b970b40aabbea5f4680 | [
"Unlicense"
] | 1 | 2021-06-30T17:51:56.000Z | 2021-06-30T17:51:56.000Z | Maths/7. Reverse Integer.py | thewires2/Leetcode | a37ff81d60dd9195ba637b970b40aabbea5f4680 | [
"Unlicense"
] | null | null | null | Maths/7. Reverse Integer.py | thewires2/Leetcode | a37ff81d60dd9195ba637b970b40aabbea5f4680 | [
"Unlicense"
] | null | null | null | class Solution:
def reverse(self, x: int) -> int:
f=False
if x<0:
f=True
y=str(abs(x))
y=y[::-1]
x=int(y)
if -2147483648<=x and x<=2147483647:
if f==False:
return x
return -x
return 0
| 21.142857 | 44 | 0.408784 | 40 | 296 | 3.025 | 0.5 | 0.066116 | 0.214876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146497 | 0.469595 | 296 | 13 | 45 | 22.769231 | 0.624204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de5e977348031cf6a600f35535a4d3c931ffbd46 | 1,365 | py | Python | src/control_node/control_node/errors.py | tessia-project/tessia-mesh | 571b9702247eb237258e9b03ad7440a29a6473b0 | [
"Apache-2.0"
] | 5 | 2020-06-04T10:20:33.000Z | 2020-10-26T15:09:19.000Z | mesh_components/control_node/control_node/errors.py | tessia-project/tessia | b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540 | [
"Apache-2.0"
] | null | null | null | mesh_components/control_node/control_node/errors.py | tessia-project/tessia | b9ded8dc7f0b9a7a0ea00d95b5ccc4af4d2e7540 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | 24.818182 | 74 | 0.717949 | 165 | 1,365 | 5.854545 | 0.672727 | 0.062112 | 0.026915 | 0.033126 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007149 | 0.18022 | 1,365 | 54 | 75 | 25.277778 | 0.856122 | 0.627839 | 0 | 0 | 0 | 0 | 0.198238 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
de62f01cf5b5950864dbd4c157b8e483e80bdd62 | 1,591 | py | Python | runtests.py | tushargoel97/WebAdmin | a23bd60c5942e8cb42038b7a93ad6f44de5c43b8 | [
"MIT"
] | null | null | null | runtests.py | tushargoel97/WebAdmin | a23bd60c5942e8cb42038b7a93ad6f44de5c43b8 | [
"MIT"
] | null | null | null | runtests.py | tushargoel97/WebAdmin | a23bd60c5942e8cb42038b7a93ad6f44de5c43b8 | [
"MIT"
] | null | null | null | from fabric import Connection
class OperationsUtil():
def __init__(self):
self.rootUser="ubuntu20"
self.rootPass="VMware123!"
self.conn=Connection(host='ubuntu20@10.109.34.222',connect_kwargs={"password": self.rootPass})
def createUser(self, username, password, dirname):
if not ... | 37.880952 | 102 | 0.613451 | 191 | 1,591 | 5.08377 | 0.403141 | 0.061792 | 0.082389 | 0.055613 | 0.335736 | 0.335736 | 0.335736 | 0.303811 | 0.223481 | 0.223481 | 0 | 0.023256 | 0.243243 | 1,591 | 42 | 103 | 37.880952 | 0.783223 | 0.057825 | 0 | 0.235294 | 0 | 0 | 0.184492 | 0.014706 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0.235294 | 0.029412 | 0 | 0.411765 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
de76d43590ceec515890f420ab53619f89db6b3b | 1,165 | py | Python | COE/contents/building/building.py | Python-Project-Cheap-Empire/cheap-of-empire | 44aaae29e4fadc9df46734f529031ce8c4bb3475 | [
"MIT"
] | null | null | null | COE/contents/building/building.py | Python-Project-Cheap-Empire/cheap-of-empire | 44aaae29e4fadc9df46734f529031ce8c4bb3475 | [
"MIT"
] | 2 | 2022-01-31T21:05:15.000Z | 2022-01-31T21:08:11.000Z | COE/contents/building/building.py | Python-Project-Cheap-Empire/cheap-of-empire | 44aaae29e4fadc9df46734f529031ce8c4bb3475 | [
"MIT"
] | 1 | 2022-02-04T12:05:14.000Z | 2022-02-04T12:05:14.000Z | from COE.contents.entity import Entity
"""
Entity
|
v
Building
/ | \
Military Technology Economy (#pragma: no cover)
"""
# TODO : Add researches to require_researches and researches
class Building(Entity):
... | 25.888889 | 60 | 0.590558 | 113 | 1,165 | 5.761062 | 0.389381 | 0.0553 | 0.049155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001312 | 0.345923 | 1,165 | 44 | 61 | 26.477273 | 0.853018 | 0.049785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0.068966 | false | 0.034483 | 0.034483 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de813180aa36d939e2dc4aaf9dc4d14c73478919 | 1,550 | py | Python | run.py | MarkusFischer/sll-recommender | 3ea35ba972946172a5614bdf6277bcc64cd496a8 | [
"MIT"
] | null | null | null | run.py | MarkusFischer/sll-recommender | 3ea35ba972946172a5614bdf6277bcc64cd496a8 | [
"MIT"
] | null | null | null | run.py | MarkusFischer/sll-recommender | 3ea35ba972946172a5614bdf6277bcc64cd496a8 | [
"MIT"
] | null | null | null | import os
import pickle
import numpy as np
from sklearn import model_selection as ms
#todo Konstanten auslagern
import metrices.accuracy as accuracy
from models.matrix_factorization import UMF
X_raw = np.genfromtxt(os.path.join("data", "train.csv"), delimiter=",", dtype=np.int)
X_train_raw, X_test_raw = ms.train_tes... | 29.807692 | 108 | 0.65871 | 245 | 1,550 | 3.967347 | 0.391837 | 0.072016 | 0.041152 | 0.037037 | 0.139918 | 0.053498 | 0 | 0 | 0 | 0 | 0 | 0.029111 | 0.18 | 1,550 | 51 | 109 | 30.392157 | 0.735641 | 0.190968 | 0 | 0 | 0 | 0.034483 | 0.189059 | 0.060338 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0 | false | 0 | 0.206897 | 0 | 0.206897 | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de891b43016c1c80fa93892544993a884397520e | 1,182 | py | Python | mdx_gendatefooter.py | anuprao/docnyte | 3c039348c60a164205e588fd32357eea381b8c80 | [
"Apache-2.0"
] | null | null | null | mdx_gendatefooter.py | anuprao/docnyte | 3c039348c60a164205e588fd32357eea381b8c80 | [
"Apache-2.0"
] | null | null | null | mdx_gendatefooter.py | anuprao/docnyte | 3c039348c60a164205e588fd32357eea381b8c80 | [
"Apache-2.0"
] | null | null | null | import re
import datetime
import markdown
from markdown.preprocessors import Preprocessor
pattern = None
class MyPreprocessor(Preprocessor):
def run(self,lines):
global pattern
print "running through gendates"
new_lines = []
#print len(lines), lines
today = datetime.date.today()
for li... | 23.176471 | 113 | 0.664129 | 143 | 1,182 | 5.377622 | 0.440559 | 0.083225 | 0.109233 | 0.036411 | 0.124837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001056 | 0.198816 | 1,182 | 50 | 114 | 23.64 | 0.810982 | 0.060068 | 0 | 0.066667 | 0 | 0.033333 | 0.206865 | 0.038844 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de8a549cbeae30ca429f41c123498eb230cd1281 | 3,796 | py | Python | tibanna_ffcommon/exceptions.py | 4dn-dcic/tibanna_ff | 6fcfc056b832c14500e525207afeb5722f366a26 | [
"MIT"
] | 2 | 2019-10-08T17:36:02.000Z | 2019-10-08T18:42:05.000Z | tibanna_ffcommon/exceptions.py | 4dn-dcic/tibanna_ff | 6fcfc056b832c14500e525207afeb5722f366a26 | [
"MIT"
] | null | null | null | tibanna_ffcommon/exceptions.py | 4dn-dcic/tibanna_ff | 6fcfc056b832c14500e525207afeb5722f366a26 | [
"MIT"
] | null | null | null | from tibanna import create_logger
from tibanna.exceptions import *
import traceback
logger = create_logger(__name__)
class TibannaStartException(Exception):
"""Error connecting to get the access key from s3"""
pass
class FdnConnectionException(Exception):
"""There is an error connecting to the 4DN por... | 42.177778 | 111 | 0.579294 | 408 | 3,796 | 5.22549 | 0.313725 | 0.051595 | 0.02439 | 0.022514 | 0.184803 | 0.151501 | 0.138368 | 0.085835 | 0.052064 | 0.052064 | 0 | 0.004806 | 0.342202 | 3,796 | 89 | 112 | 42.651685 | 0.849019 | 0.173604 | 0 | 0.183333 | 0 | 0 | 0.150422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.066667 | 0.05 | 0 | 0.283333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
de96520d7984d737926eaae2eb69ebf04c739fc6 | 3,935 | py | Python | mobike.py | yrjyrj123/MobikeAgent | c026975cf801c27f533955c14e2c302ef7c2871c | [
"MIT"
] | 62 | 2016-11-10T09:32:03.000Z | 2019-06-30T08:11:01.000Z | mobike.py | yoshikic/MobikeAgent | c026975cf801c27f533955c14e2c302ef7c2871c | [
"MIT"
] | 5 | 2016-09-28T06:04:17.000Z | 2018-03-28T11:03:07.000Z | mobike.py | yoshikic/MobikeAgent | c026975cf801c27f533955c14e2c302ef7c2871c | [
"MIT"
] | 18 | 2017-03-22T06:12:30.000Z | 2021-02-24T08:47:40.000Z | #!coding=utf-8
from gevent import monkey
monkey.patch_all()
from gevent.pool import Pool
import random
import sys
from tqdm import tqdm
import time
import lib.api_request
from lib.tile import Tile
from lib.kml import KML
from lib.coordTransform import gcj02_to_wgs84
t = None
MAX_SEARCH_DISTANCE = 2000
MAX_RESULT_C... | 28.309353 | 119 | 0.617789 | 600 | 3,935 | 3.795 | 0.236667 | 0.030742 | 0.023715 | 0.031621 | 0.238472 | 0.155468 | 0.155468 | 0.155468 | 0.144928 | 0.144928 | 0 | 0.03001 | 0.237865 | 3,935 | 138 | 120 | 28.514493 | 0.729243 | 0.077255 | 0 | 0.104762 | 0 | 0 | 0.069832 | 0.012697 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de97a6e88c2fc364d32a661c6c5a6500e451c8e8 | 1,192 | py | Python | django_playlist/songs/views.py | kburts/django-playlist | d9b2fdc144fb1c227b683ae253bdcabd8a7e40c2 | [
"MIT"
] | null | null | null | django_playlist/songs/views.py | kburts/django-playlist | d9b2fdc144fb1c227b683ae253bdcabd8a7e40c2 | [
"MIT"
] | null | null | null | django_playlist/songs/views.py | kburts/django-playlist | d9b2fdc144fb1c227b683ae253bdcabd8a7e40c2 | [
"MIT"
] | null | null | null | from rest_framework import generics, permissions
from .models import Playlist, Song
from .serializers import PlaylistSerializer, SongSerializer
from django.shortcuts import render
class PlaylistList(generics.ListCreateAPIView):
model = Playlist
serializer_class = PlaylistSerializer
permission_classes = [
... | 22.490566 | 65 | 0.779362 | 103 | 1,192 | 8.873786 | 0.359223 | 0.09628 | 0.122538 | 0.157549 | 0.367615 | 0.094092 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158557 | 1,192 | 52 | 66 | 22.923077 | 0.911266 | 0 | 0 | 0.533333 | 0 | 0 | 0.020431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
de9830a158f052df927fd890c1a86df962e6ae4e | 5,295 | py | Python | images/pannotator/p_procariota/createdb.py | ezequieljsosa/sndg-bio | 5f709b5b572564ec1dfa40d090eca9a34295743e | [
"MIT"
] | null | null | null | images/pannotator/p_procariota/createdb.py | ezequieljsosa/sndg-bio | 5f709b5b572564ec1dfa40d090eca9a34295743e | [
"MIT"
] | null | null | null | images/pannotator/p_procariota/createdb.py | ezequieljsosa/sndg-bio | 5f709b5b572564ec1dfa40d090eca9a34295743e | [
"MIT"
] | 1 | 2020-09-01T15:57:54.000Z | 2020-09-01T15:57:54.000Z | #!/usr/bin/env python
import os
import time
import shutil
from SNDG import mkdir, execute, execute_from, init_log
from SNDG.WebServices import download_file
init_log("/tmp/createdb.log")
def old_or_inexistent(filepath, period=30):
return not os.path.exists(filepath) or (((time.time() - os.path.getatime(filepat... | 47.702703 | 121 | 0.698017 | 756 | 5,295 | 4.756614 | 0.175926 | 0.076474 | 0.050612 | 0.050056 | 0.692158 | 0.57703 | 0.476085 | 0.37069 | 0.312848 | 0.213014 | 0 | 0.024601 | 0.124835 | 5,295 | 110 | 122 | 48.136364 | 0.751403 | 0.003777 | 0 | 0.095238 | 0 | 0.083333 | 0.588358 | 0.449185 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011905 | false | 0 | 0.059524 | 0.011905 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
de984caf263f4354760099a57140becd504c6e40 | 11,954 | py | Python | LMS_Admin/views.py | Noisyfox/LMS | 8acb5f4e8b98a6dfbe5f6692d00dd34812fd5101 | [
"MIT"
] | null | null | null | LMS_Admin/views.py | Noisyfox/LMS | 8acb5f4e8b98a6dfbe5f6692d00dd34812fd5101 | [
"MIT"
] | null | null | null | LMS_Admin/views.py | Noisyfox/LMS | 8acb5f4e8b98a6dfbe5f6692d00dd34812fd5101 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.core.exceptions import PermissionDenied
from django.http import Http404
from django.shortcuts import get_object_or_404
from django.urls import reverse_lazy
from django.utils.datetime_safe import date
from django.views.generic import CreateView
from django.views... | 29.085158 | 102 | 0.659026 | 1,435 | 11,954 | 5.258537 | 0.109408 | 0.033925 | 0.06361 | 0.045057 | 0.733104 | 0.672409 | 0.602571 | 0.569573 | 0.519613 | 0.513517 | 0 | 0.003697 | 0.230634 | 11,954 | 410 | 103 | 29.156098 | 0.816788 | 0 | 0 | 0.636986 | 0 | 0 | 0.121633 | 0.048687 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126712 | false | 0.027397 | 0.054795 | 0.047945 | 0.541096 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dea09a8a5f5e3726e7b50f5bafd1c45dad93f6f8 | 988 | py | Python | tatl/migrations/0009_auto_20200807_1339.py | CLIMB-COVID/majora2 | 46ea1809a61e4a768f8cbacaf54cba5c4d82e1f2 | [
"MIT"
] | 29 | 2019-04-04T18:03:43.000Z | 2022-02-09T12:47:30.000Z | tatl/migrations/0009_auto_20200807_1339.py | CLIMB-COVID/majora2 | 46ea1809a61e4a768f8cbacaf54cba5c4d82e1f2 | [
"MIT"
] | 66 | 2019-04-02T16:18:40.000Z | 2022-01-25T16:15:42.000Z | tatl/migrations/0009_auto_20200807_1339.py | CLIMB-COVID/majora2 | 46ea1809a61e4a768f8cbacaf54cba5c4d82e1f2 | [
"MIT"
] | 6 | 2020-04-10T14:15:32.000Z | 2022-01-18T13:08:35.000Z | # Generated by Django 2.2.13 on 2020-08-07 13:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('tatl', '0008_tatltask')... | 29.939394 | 158 | 0.62247 | 106 | 988 | 5.660377 | 0.509434 | 0.04 | 0.115 | 0.135 | 0.195 | 0.195 | 0 | 0 | 0 | 0 | 0 | 0.030178 | 0.262146 | 988 | 32 | 159 | 30.875 | 0.792867 | 0.046559 | 0 | 0.346154 | 1 | 0 | 0.082979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.115385 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
deb07134a9f9bfa66f07a6bcc70fe44fb47f20ea | 451 | py | Python | hhrequest/forms.py | andreylrr/HHAnalyticsDjango | b792f06fe5c272a8965119cdfc318a539543d4f9 | [
"MIT"
] | null | null | null | hhrequest/forms.py | andreylrr/HHAnalyticsDjango | b792f06fe5c272a8965119cdfc318a539543d4f9 | [
"MIT"
] | null | null | null | hhrequest/forms.py | andreylrr/HHAnalyticsDjango | b792f06fe5c272a8965119cdfc318a539543d4f9 | [
"MIT"
] | null | null | null | from django import forms
from .models import Requests
class RequestsForm(forms.ModelForm):
class Meta:
model = Requests
fields =('region', 'text_request',)
widgets = {
'region': forms.TextInput(attrs={'class': "form-control form-control-user", 'placeholder': "Регион"}),
... | 34.692308 | 127 | 0.636364 | 47 | 451 | 6.06383 | 0.531915 | 0.154386 | 0.133333 | 0.168421 | 0.42807 | 0.42807 | 0.42807 | 0.42807 | 0.42807 | 0.42807 | 0 | 0 | 0.215078 | 451 | 12 | 128 | 37.583333 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0.326667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
deb1ae3bd8fe7b7cbc566d5ded083c9f4d27bd24 | 5,366 | py | Python | django_conference/admin_tasks.py | MasonM/django-conference | 974779e29def6596e06e1d24cfa4ec17fcb98a9e | [
"BSD-3-Clause"
] | 3 | 2017-05-30T14:40:44.000Z | 2021-11-04T01:06:54.000Z | django_conference/admin_tasks.py | MasonM/django-conference | 974779e29def6596e06e1d24cfa4ec17fcb98a9e | [
"BSD-3-Clause"
] | null | null | null | django_conference/admin_tasks.py | MasonM/django-conference | 974779e29def6596e06e1d24cfa4ec17fcb98a9e | [
"BSD-3-Clause"
] | 4 | 2018-09-28T09:32:29.000Z | 2022-02-06T20:10:52.000Z | from django import forms
from django.core.urlresolvers import reverse
from django.shortcuts import render_to_response
from django.template.loader import render_to_string
from django.template import RequestContext
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib.admin.views.decorators impor... | 37.006897 | 79 | 0.657846 | 626 | 5,366 | 5.450479 | 0.316294 | 0.026377 | 0.02286 | 0.02286 | 0.167057 | 0.126026 | 0.111372 | 0.111372 | 0.080305 | 0.080305 | 0 | 0.002205 | 0.239471 | 5,366 | 144 | 80 | 37.263889 | 0.833864 | 0.011554 | 0 | 0.166667 | 0 | 0 | 0.128105 | 0.061352 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
deb1d531191aa70892a5193061cd6705817bfb41 | 511 | py | Python | src/courses/migrations/0020_course_banner.py | GiomarOsorio/another-e-learning-platform | 5cfc76420eb3466691f5187c915c179afb13199a | [
"MIT"
] | null | null | null | src/courses/migrations/0020_course_banner.py | GiomarOsorio/another-e-learning-platform | 5cfc76420eb3466691f5187c915c179afb13199a | [
"MIT"
] | 8 | 2020-06-25T22:16:20.000Z | 2022-03-12T00:39:27.000Z | src/courses/migrations/0020_course_banner.py | GiomarOsorio/another-e-learning-platform | 5cfc76420eb3466691f5187c915c179afb13199a | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-10 14:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0019_remove_courseuserrelations_registered'),
]
operations = [
migrations.AddField(
model_name='course',
... | 26.894737 | 158 | 0.641879 | 59 | 511 | 5.423729 | 0.813559 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.236791 | 511 | 18 | 159 | 28.388889 | 0.769231 | 0.088063 | 0 | 0 | 1 | 0 | 0.271552 | 0.090517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
deb727018c2ae2b9f4ef9534b8cccc115135ac1a | 545 | py | Python | python/binarysearch/leetcode/first_last_sort_array.py | googege/algo-learn | 054d05e8037005c5810906d837de889108dad107 | [
"MIT"
] | 153 | 2020-09-24T12:46:51.000Z | 2022-03-31T21:30:44.000Z | python/binarysearch/leetcode/first_last_sort_array.py | googege/algo-learn | 054d05e8037005c5810906d837de889108dad107 | [
"MIT"
] | null | null | null | python/binarysearch/leetcode/first_last_sort_array.py | googege/algo-learn | 054d05e8037005c5810906d837de889108dad107 | [
"MIT"
] | 35 | 2020-12-22T11:07:06.000Z | 2022-03-09T03:25:08.000Z | from typing import List
# 在排序数组中查找元素的第一个和最后一个位置
class Solution:
# 遍历的方式
def searchRange_1(self, nums: List[int], target: int) -> List[int]:
res = [-1, -1]
for i in range(len(nums)):
if nums[i] == target:
if i == 0 or nums[i - 1] != nums[i]:
res... | 23.695652 | 71 | 0.47156 | 73 | 545 | 3.493151 | 0.383562 | 0.098039 | 0.094118 | 0.117647 | 0.243137 | 0.243137 | 0.243137 | 0.243137 | 0 | 0 | 0 | 0.03012 | 0.390826 | 545 | 23 | 72 | 23.695652 | 0.737952 | 0.058716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.076923 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
deb7d98b07c50f378db24c00059b5e9d0cad4368 | 824 | py | Python | Bio-StrongHold/src/Counting_Rooted_Binary_Trees.py | crf1111/Bio-Informatics-Learning | 2ccc02d7a23584c12aee44c5620160cdcaf70bd4 | [
"MIT"
] | 1 | 2018-10-10T19:03:52.000Z | 2018-10-10T19:03:52.000Z | Bio-StrongHold/src/Counting_Rooted_Binary_Trees.py | crf1111/Bio-Informatics-Learning | 2ccc02d7a23584c12aee44c5620160cdcaf70bd4 | [
"MIT"
] | null | null | null | Bio-StrongHold/src/Counting_Rooted_Binary_Trees.py | crf1111/Bio-Informatics-Learning | 2ccc02d7a23584c12aee44c5620160cdcaf70bd4 | [
"MIT"
] | null | null | null |
def count_unrooted_binary_trees(n):
'''Returns the number of unrooted binary trees with n leaves.'''
# The total number is just the double factorial (2n -5)!!
return reduce(lambda a, b: a*b % 10**6, xrange(2*n-5, 1, -2))
def count_rooted_binary_trees(n):
'''Returns the number of unrooted binary trees ... | 29.428571 | 82 | 0.667476 | 132 | 824 | 4.015152 | 0.454545 | 0.145283 | 0.179245 | 0.107547 | 0.418868 | 0.283019 | 0.226415 | 0.226415 | 0.226415 | 0.226415 | 0 | 0.029827 | 0.226942 | 824 | 28 | 83 | 29.428571 | 0.802198 | 0.31432 | 0 | 0 | 0 | 0 | 0.021739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
deba6cd008c3da7f5578b91f96461985c22f67ea | 4,346 | py | Python | cleaner.py | yokoyama-flogics/ibp_monitor_2 | 1a7df55a524ff3a7908df330e7e02c9f27e24ae0 | [
"BSD-2-Clause"
] | 3 | 2017-11-23T13:29:47.000Z | 2021-01-08T09:28:35.000Z | cleaner.py | yokoyama-flogics/ibp_monitor_2 | 1a7df55a524ff3a7908df330e7e02c9f27e24ae0 | [
"BSD-2-Clause"
] | null | null | null | cleaner.py | yokoyama-flogics/ibp_monitor_2 | 1a7df55a524ff3a7908df330e7e02c9f27e24ae0 | [
"BSD-2-Clause"
] | 2 | 2018-02-15T08:11:24.000Z | 2021-01-08T09:28:43.000Z | """
Signal Files Cleaner
BSD 2-Clause License
Copyright (c) 2017, Atsushi Yokoyama, Firmlogics (yokoyama@flogics.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code m... | 31.266187 | 79 | 0.646111 | 565 | 4,346 | 4.865487 | 0.414159 | 0.02801 | 0.020007 | 0.016733 | 0.134594 | 0.068389 | 0.068389 | 0.049473 | 0.049473 | 0.049473 | 0 | 0.005381 | 0.273125 | 4,346 | 138 | 80 | 31.492754 | 0.864831 | 0.079383 | 0 | 0.176471 | 0 | 0 | 0.117553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dec465523da55a4c92475122fa5503e135bd4a33 | 7,410 | py | Python | xhmm.py | sensecollective/bioinformatics_scripts | 3a23611f382b7f3dd60e5e2abe841b84408c0d44 | [
"BSD-3-Clause"
] | 7 | 2016-03-23T11:31:06.000Z | 2021-05-20T19:07:38.000Z | xhmm.py | raonyguimaraes/bioinformatics_scripts | 3a23611f382b7f3dd60e5e2abe841b84408c0d44 | [
"BSD-3-Clause"
] | null | null | null | xhmm.py | raonyguimaraes/bioinformatics_scripts | 3a23611f382b7f3dd60e5e2abe841b84408c0d44 | [
"BSD-3-Clause"
] | 8 | 2016-06-01T19:28:46.000Z | 2022-01-09T01:26:10.000Z | #python script to run xhmm
#sudo apt-get install liblapack-dev liblapack3
import os, subprocess
gatk_dir = '/home/raony/bin/gatk'
xhmm_dir = '/home/raony/bin/xhmm/statgen-xhmm-7ce9df09e19d'
plinkseq_dir = '/home/raony/bin/plinkseq'
# plinkseq_dir = '/projects/xhmm_analysis/bin/plinkseq-0.10'
group1 = 'ampliseq.group... | 36.865672 | 157 | 0.738462 | 1,057 | 7,410 | 5.050142 | 0.251656 | 0.029974 | 0.053391 | 0.030348 | 0.464968 | 0.387973 | 0.326152 | 0.318284 | 0.235294 | 0.215062 | 0 | 0.02077 | 0.116329 | 7,410 | 200 | 158 | 37.05 | 0.794441 | 0.210391 | 0 | 0.354545 | 0 | 0.109091 | 0.202172 | 0.083592 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018182 | null | null | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
deccdc219100bd4ef06e64bd04807b4d72bc9e14 | 948 | py | Python | src/wai/common/file/report/_ReportFileWriter.py | waikato-datamining/wai-common | bf3d7ae6e01bcb7ffe9f5c2b5d10a05908a68c34 | [
"MIT"
] | null | null | null | src/wai/common/file/report/_ReportFileWriter.py | waikato-datamining/wai-common | bf3d7ae6e01bcb7ffe9f5c2b5d10a05908a68c34 | [
"MIT"
] | 8 | 2020-07-01T02:11:31.000Z | 2020-12-17T01:57:17.000Z | src/wai/common/file/report/_ReportFileWriter.py | waikato-datamining/wai-common | bf3d7ae6e01bcb7ffe9f5c2b5d10a05908a68c34 | [
"MIT"
] | null | null | null | from typing import IO
import javaproperties
from .._FileWriter import FileWriter
from ._Report import Report
from . import constants
class ReportFileWriter(FileWriter[str, Report, "ReportFileWriter"]):
"""
Writer for report files.
"""
def _dump(self, obj: Report, file: IO[str]):
# Create a J... | 35.111111 | 107 | 0.697257 | 110 | 948 | 5.9 | 0.481818 | 0.043143 | 0.058552 | 0.086287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207806 | 948 | 26 | 108 | 36.461538 | 0.864181 | 0.111814 | 0 | 0 | 0 | 0 | 0.082424 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.466667 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
decdd34d8362282fbb9df605f8c8efd4d30edc86 | 846 | py | Python | SOLVED/palindrome-number.py | Roxxum/Coding-Challenges | 4212653e9687d002586249df8bb42d17b398f667 | [
"MIT"
] | null | null | null | SOLVED/palindrome-number.py | Roxxum/Coding-Challenges | 4212653e9687d002586249df8bb42d17b398f667 | [
"MIT"
] | null | null | null | SOLVED/palindrome-number.py | Roxxum/Coding-Challenges | 4212653e9687d002586249df8bb42d17b398f667 | [
"MIT"
] | null | null | null | """
Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward.
Example 1:
Input: x = 121
Output: true
Example 2:
Input: x = -121
Output: false
Explanation: From left to right, it reads -121. From right to left, it becomes 121-. Therefore it is not a palindro... | 19.227273 | 118 | 0.718676 | 133 | 846 | 4.571429 | 0.488722 | 0.072368 | 0.036184 | 0.039474 | 0.184211 | 0.111842 | 0.111842 | 0 | 0 | 0 | 0 | 0.061224 | 0.189125 | 846 | 43 | 119 | 19.674419 | 0.825073 | 0.807329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
decf72b5c2e56a699a128496c5253b3be6c1a212 | 3,881 | py | Python | code/python/rooms_no_view.py | Baavgai/ColossalCodingAdventure | ddeca56e28df2389d5a27c8f2d02759b4f0d634c | [
"MIT"
] | 1 | 2020-07-28T23:05:18.000Z | 2020-07-28T23:05:18.000Z | code/python/rooms_no_view.py | Baavgai/ColossalCodingAdventure | ddeca56e28df2389d5a27c8f2d02759b4f0d634c | [
"MIT"
] | null | null | null | code/python/rooms_no_view.py | Baavgai/ColossalCodingAdventure | ddeca56e28df2389d5a27c8f2d02759b4f0d634c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import cca
class Location:
VOID, PLAYER, R1, R2, R3, R4, R5 = range(7)
def rules():
def rules_r1(rb):
rb.default_check = {'player': Location.R1}
r = rb.add
r(("look",""),"You are in a small room with a bed, a creepy portrait, and an open door.", {'r1_door_open':... | 44.102273 | 137 | 0.599588 | 568 | 3,881 | 4.007042 | 0.364437 | 0.031634 | 0.035149 | 0.036907 | 0.24297 | 0.179262 | 0.085237 | 0.054482 | 0.054482 | 0.043058 | 0 | 0.010631 | 0.248647 | 3,881 | 87 | 138 | 44.609195 | 0.76989 | 0.008503 | 0 | 0.028169 | 0 | 0.042254 | 0.606864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112676 | false | 0 | 0.014085 | 0 | 0.15493 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ded4315905b25c1c31de3d63a07dc5b4fcd0796f | 808 | py | Python | local_postprocessing/show_thickness.py | Enucatl/machine-learning-healthy-brains | bfedc36c1e5657d97e838d9d58ba26af14f703c7 | [
"MIT"
] | null | null | null | local_postprocessing/show_thickness.py | Enucatl/machine-learning-healthy-brains | bfedc36c1e5657d97e838d9d58ba26af14f703c7 | [
"MIT"
] | null | null | null | local_postprocessing/show_thickness.py | Enucatl/machine-learning-healthy-brains | bfedc36c1e5657d97e838d9d58ba26af14f703c7 | [
"MIT"
] | null | null | null | import numpy as np
import click
import glob
import os
import matplotlib.pyplot as plt
import pandas as pd
from tqdm import tqdm
from glob import glob
@click.command()
@click.argument("health", nargs=1)
@click.argument("thickness_folder", nargs=1)
def main(health, thickness_folder):
dfs = []
health_id = np.gen... | 26.933333 | 87 | 0.634901 | 110 | 808 | 4.490909 | 0.472727 | 0.091093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009449 | 0.214109 | 808 | 29 | 88 | 27.862069 | 0.768504 | 0 | 0 | 0 | 0 | 0 | 0.106436 | 0.040842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.32 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ded6b40f6250bad8724fe3fa8a8aade507c6eced | 2,164 | py | Python | blog/migrations/0001_initial.py | netocraft/web-netocraft | 87e35ea1ea23b8a75eeabb33fc10aac57cccb2ac | [
"Unlicense"
] | null | null | null | blog/migrations/0001_initial.py | netocraft/web-netocraft | 87e35ea1ea23b8a75eeabb33fc10aac57cccb2ac | [
"Unlicense"
] | null | null | null | blog/migrations/0001_initial.py | netocraft/web-netocraft | 87e35ea1ea23b8a75eeabb33fc10aac57cccb2ac | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.2 on 2021-03-26 15:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | 43.28 | 150 | 0.624769 | 233 | 2,164 | 5.622318 | 0.343348 | 0.036641 | 0.053435 | 0.083969 | 0.477863 | 0.460305 | 0.435115 | 0.40687 | 0.333588 | 0.333588 | 0 | 0.010956 | 0.240758 | 2,164 | 49 | 151 | 44.163265 | 0.786366 | 0.020795 | 0 | 0.380952 | 1 | 0 | 0.096363 | 0.014171 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dedd637081ef7d33a574be123c0f9746817a0fa9 | 1,205 | py | Python | weight/manage.py | mfa/weight-app | f0df8eb5475f0e5afbd2a1cfc1a333641344f821 | [
"BSD-3-Clause"
] | null | null | null | weight/manage.py | mfa/weight-app | f0df8eb5475f0e5afbd2a1cfc1a333641344f821 | [
"BSD-3-Clause"
] | null | null | null | weight/manage.py | mfa/weight-app | f0df8eb5475f0e5afbd2a1cfc1a333641344f821 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
""" Part of weight_app
:copyright: (c) 2012 by Andreas Madsack.
:license: BSD, see LICENSE for more details.
"""
from flask.ext.script import Manager
from main import create_app, db
from utils import new_pw, get_emailaddress
# flask-Script
manager = Manager(create_app)
@manager.command... | 24.1 | 69 | 0.673859 | 166 | 1,205 | 4.728916 | 0.445783 | 0.053503 | 0.064968 | 0.058599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.216598 | 1,205 | 49 | 70 | 24.591837 | 0.827331 | 0.218257 | 0 | 0.103448 | 0 | 0 | 0.068889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.068966 | 0.275862 | 0 | 0.413793 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dede91f7e3687550449dd986aa6b9a8e6e14fbef | 487 | py | Python | python-code/transformer-sample/token-classification/xlm-roberta.py | 87-midnight/NewbieInJava | ba84153c6b3a382e620c4df7892d653be2e1a607 | [
"MIT"
] | null | null | null | python-code/transformer-sample/token-classification/xlm-roberta.py | 87-midnight/NewbieInJava | ba84153c6b3a382e620c4df7892d653be2e1a607 | [
"MIT"
] | 2 | 2019-10-22T08:21:09.000Z | 2019-10-22T08:21:09.000Z | python-code/transformer-sample/token-classification/xlm-roberta.py | 87-midnight/NewbieInJava | ba84153c6b3a382e620c4df7892d653be2e1a607 | [
"MIT"
] | null | null | null | from transformers import AutoTokenizer, AutoModelForTokenClassification
import torch
from transformers import pipeline
## 提取PER、LOC,姓名和位置
tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large-finetuned-conll03-english")
model = AutoModelForTokenClassification.from_pretrained("xlm-roberta-large-finetuned-conll03... | 37.461538 | 102 | 0.825462 | 58 | 487 | 6.862069 | 0.568966 | 0.080402 | 0.110553 | 0.120603 | 0.261307 | 0.261307 | 0.261307 | 0.261307 | 0 | 0 | 0 | 0.008969 | 0.084189 | 487 | 13 | 103 | 37.461538 | 0.883408 | 0.030801 | 0 | 0 | 0 | 0 | 0.274468 | 0.182979 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
dee01afd22bd1d8038caec2b3a87414b22ef3086 | 4,462 | py | Python | dictionaries.py | vkoldaev/IBAN-checker | efd3b3d78e52750545454a41dbd7abc49966cef2 | [
"MIT"
] | 1 | 2020-07-28T10:50:11.000Z | 2020-07-28T10:50:11.000Z | dictionaries.py | vkoldaev/IBAN-checker | efd3b3d78e52750545454a41dbd7abc49966cef2 | [
"MIT"
] | null | null | null | dictionaries.py | vkoldaev/IBAN-checker | efd3b3d78e52750545454a41dbd7abc49966cef2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
# All data has been taken from Wiki: https://en.wikipedia.org/wiki/International_Bank_Account_Number
# Actual date: 2019.07.15
COUNTRIES_ALPHA2 = {
"AL": "Albania",
"AD": "Andorra",
"AT": "Austria",
"AZ": "Azerbaijan",
"BH": "Bahrain",
"BY": "Be... | 17.566929 | 100 | 0.364186 | 612 | 4,462 | 2.640523 | 0.352941 | 0.038366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121051 | 0.326087 | 4,462 | 253 | 101 | 17.636364 | 0.416362 | 0.036755 | 0 | 0 | 0 | 0 | 0.254893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dee7d0f78542d4eca0dbd9f425d791ecf38a6fe5 | 515 | py | Python | pyionic/helpers.py | mblayman/pyionic | 4e51dc0c3005b618cb2a3c4146cf85d9a32d8b38 | [
"BSD-2-Clause"
] | null | null | null | pyionic/helpers.py | mblayman/pyionic | 4e51dc0c3005b618cb2a3c4146cf85d9a32d8b38 | [
"BSD-2-Clause"
] | null | null | null | pyionic/helpers.py | mblayman/pyionic | 4e51dc0c3005b618cb2a3c4146cf85d9a32d8b38 | [
"BSD-2-Clause"
] | null | null | null | import os
import sys
def get_envvars():
"""Get Ion Channel token from envvars."""
if os.environ.get('IONCHANNEL_SECRET_KEY') is not None:
return os.environ['IONCHANNEL_SECRET_KEY']
else:
print('Ion Channel Token not set')
sys.exit(1)
def get_api_endpoint():
"""Get Ion Channel... | 25.75 | 61 | 0.666019 | 71 | 515 | 4.676056 | 0.408451 | 0.108434 | 0.078313 | 0.090361 | 0.415663 | 0.415663 | 0.415663 | 0 | 0 | 0 | 0 | 0.002481 | 0.217476 | 515 | 19 | 62 | 27.105263 | 0.82134 | 0.143689 | 0 | 0.153846 | 0 | 0 | 0.32093 | 0.204651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | true | 0 | 0.153846 | 0 | 0.538462 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
def0909ea6ea16913af2b105c83419ec71f46246 | 1,059 | py | Python | project/apps/bhs/migrations/0007_auto_20190910_1139.py | dbinetti/barberscore | 13c3d8193834bd2bb79922e28d3f5ab1675bdffd | [
"BSD-2-Clause"
] | 13 | 2017-08-07T15:45:49.000Z | 2019-07-03T13:58:50.000Z | project/apps/bhs/migrations/0007_auto_20190910_1139.py | barberscore/barberscore-api | 2aa9f8598c18c28ba1d4a294f76fd055619f803e | [
"BSD-2-Clause"
] | 309 | 2017-07-14T02:34:12.000Z | 2022-01-14T21:37:02.000Z | project/apps/bhs/migrations/0007_auto_20190910_1139.py | dbinetti/barberscore-django | 16fbd9945becda0a765bbdf52ad459a63655128f | [
"BSD-2-Clause"
] | 5 | 2017-08-07T14:01:07.000Z | 2019-06-24T19:44:55.000Z | # Generated by Django 2.2.5 on 2019-09-10 18:39
import apps.bhs.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bhs', '0006_auto_20190910_0522'),
]
operations = [
migrations.AlterField(
model_name='person',
... | 35.3 | 164 | 0.617564 | 119 | 1,059 | 5.352941 | 0.386555 | 0.043956 | 0.10675 | 0.136578 | 0.697017 | 0.697017 | 0.635793 | 0.635793 | 0.466248 | 0.466248 | 0 | 0.051613 | 0.268178 | 1,059 | 29 | 165 | 36.517241 | 0.770323 | 0.042493 | 0 | 0.391304 | 1 | 0 | 0.193676 | 0.022727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
def4e3cd84bb4f34ae8e023fefc37dfc8b80d25d | 332 | py | Python | spotify/migrations/0002_auto_20200606_2210.py | bilal-yousuf/django_local_library | 18dbf298253a097412a2bf365dc6b3a557a634a2 | [
"MIT"
] | null | null | null | spotify/migrations/0002_auto_20200606_2210.py | bilal-yousuf/django_local_library | 18dbf298253a097412a2bf365dc6b3a557a634a2 | [
"MIT"
] | 7 | 2020-02-12T00:31:18.000Z | 2022-03-12T00:34:07.000Z | spotify/migrations/0002_auto_20200606_2210.py | bilal-yousuf/django_local_library | 18dbf298253a097412a2bf365dc6b3a557a634a2 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.2 on 2020-06-07 02:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('spotify', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Current_Album',
new_name='CurrentAlbum',
... | 18.444444 | 47 | 0.596386 | 35 | 332 | 5.542857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080851 | 0.292169 | 332 | 17 | 48 | 19.529412 | 0.744681 | 0.135542 | 0 | 0 | 1 | 0 | 0.154386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
72012954f0fff54f53ad4e92137678a1824a7d9b | 4,230 | py | Python | metageneMethods.py | HollickLab/metagene_analysis | a8b0df296dd1d76ba258fe92550a36bc5242db31 | [
"MIT"
] | 1 | 2022-01-22T22:48:38.000Z | 2022-01-22T22:48:38.000Z | metageneMethods.py | HollickLab/metagene_analysis | a8b0df296dd1d76ba258fe92550a36bc5242db31 | [
"MIT"
] | null | null | null | metageneMethods.py | HollickLab/metagene_analysis | a8b0df296dd1d76ba258fe92550a36bc5242db31 | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""metageneMethods represent commonly called functions in metagene analysis
Requires:
python 2 (https://www.python.org/downloads/)
Joy-El R.B. Talbot Copyright (c) 2014
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and assoc... | 37.767857 | 115 | 0.680378 | 562 | 4,230 | 5.074733 | 0.409253 | 0.030856 | 0.035063 | 0.016129 | 0.096073 | 0.084151 | 0.065217 | 0.065217 | 0 | 0 | 0 | 0.006492 | 0.235225 | 4,230 | 112 | 116 | 37.767857 | 0.875116 | 0.055556 | 0 | 0.18 | 0 | 0 | 0.082564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
720842291c666d4468fe95ea5415611226d01e80 | 600 | py | Python | course_registration/urls.py | Cent-Luc/University_Portal | 82bf40a1c0d98111ffe8a184d16b543a3feec072 | [
"MIT"
] | null | null | null | course_registration/urls.py | Cent-Luc/University_Portal | 82bf40a1c0d98111ffe8a184d16b543a3feec072 | [
"MIT"
] | 1 | 2021-03-18T22:00:32.000Z | 2021-03-18T22:00:32.000Z | course_registration/urls.py | c3n7/university-portal | 82bf40a1c0d98111ffe8a184d16b543a3feec072 | [
"MIT"
] | 3 | 2019-11-14T08:50:15.000Z | 2019-11-15T15:36:45.000Z | from django.urls import path
from .views import (
CourseRegistrationView,
CourseRegistrationUpdateView,
CourseRegistrationDetailView,
CourseRegistrationListView,
)
urlpatterns = [
path("<int:pk>/edit/",
CourseRegistrationUpdateView.as_view(),
name="coursereg_edit"),
path("<in... | 25 | 48 | 0.653333 | 47 | 600 | 8.170213 | 0.446809 | 0.0625 | 0.104167 | 0.197917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225 | 600 | 23 | 49 | 26.086957 | 0.825806 | 0 | 0 | 0 | 0 | 0 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
720905bd9a3085b856b92ff4a4ffb7dbf35ad9a9 | 1,410 | py | Python | src/datastructure/memory2.py | Valeeswaran/tutorials | 71b43cad46f4d7d2d67d3ff4be61bdaaade2a36a | [
"MIT"
] | null | null | null | src/datastructure/memory2.py | Valeeswaran/tutorials | 71b43cad46f4d7d2d67d3ff4be61bdaaade2a36a | [
"MIT"
] | null | null | null | src/datastructure/memory2.py | Valeeswaran/tutorials | 71b43cad46f4d7d2d67d3ff4be61bdaaade2a36a | [
"MIT"
] | null | null | null | # Compare size for 1M int elements stored in list, tuple, set, dict
# Tuple requires less space compare to list. Set and dictionary requires more space compare to list and tuple.
# Tuple requires average 8 bytes per element, list requires average 9 bytes per element, set requires average
# 33 bytes per element, diction... | 35.25 | 110 | 0.683688 | 239 | 1,410 | 4.012552 | 0.334728 | 0.100104 | 0.033368 | 0.037539 | 0.129301 | 0.091762 | 0 | 0 | 0 | 0 | 0 | 0.056131 | 0.178723 | 1,410 | 39 | 111 | 36.153846 | 0.772021 | 0.396454 | 0 | 0 | 0 | 0 | 0.16726 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.173913 | 0.521739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
7209e17d8d279694286e5ee2302ed21ce790b098 | 4,055 | py | Python | tests/test_move.py | y-tetsu/othello | 73eabfe22d6b44bbfa0b436e6287e3e7356620f4 | [
"MIT"
] | null | null | null | tests/test_move.py | y-tetsu/othello | 73eabfe22d6b44bbfa0b436e6287e3e7356620f4 | [
"MIT"
] | null | null | null | tests/test_move.py | y-tetsu/othello | 73eabfe22d6b44bbfa0b436e6287e3e7356620f4 | [
"MIT"
] | null | null | null | """Tests of move.py
"""
import unittest
from reversi import Move as m
from reversi.move import M, LOWER
from reversi.board import Board
class TestMove(unittest.TestCase):
"""move
"""
def test_new(self):
# objects are work as tuple
self.assertEqual(m(0, 0), (0, 0))
self.assertEqua... | 31.192308 | 82 | 0.480148 | 518 | 4,055 | 3.638996 | 0.158301 | 0.262599 | 0.084881 | 0.068966 | 0.525199 | 0.376658 | 0.338462 | 0.289655 | 0.259947 | 0.259947 | 0 | 0.100368 | 0.329223 | 4,055 | 129 | 83 | 31.434109 | 0.592647 | 0.028853 | 0 | 0.147059 | 0 | 0 | 0.062261 | 0 | 0 | 0 | 0 | 0 | 0.343137 | 1 | 0.078431 | false | 0 | 0.039216 | 0 | 0.127451 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
720cae5a642caec577cdc2d09990e42e84e23c5c | 1,259 | py | Python | code/2-3.py | mingkzhou/eat_tensorflow2_in_30_days | 3d7101a76597c99e92cbd64807f95c97d1d53bb7 | [
"Apache-2.0"
] | null | null | null | code/2-3.py | mingkzhou/eat_tensorflow2_in_30_days | 3d7101a76597c99e92cbd64807f95c97d1d53bb7 | [
"Apache-2.0"
] | null | null | null | code/2-3.py | mingkzhou/eat_tensorflow2_in_30_days | 3d7101a76597c99e92cbd64807f95c97d1d53bb7 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author by mkzhou
@time 2021/5/23 下午2:43
"""
import tensorflow as tf
import numpy as np
def func1():
x = tf.Variable(0.0, name='x', dtype=tf.float32)
a = tf.constant(1.0)
b = tf.constant(-2.0)
c = tf.constant(1.0)
with tf.GradientTape() as tape:
y = a*tf.pow(x,... | 24.211538 | 62 | 0.54726 | 213 | 1,259 | 3.14554 | 0.305164 | 0.134328 | 0.098507 | 0.107463 | 0.670149 | 0.670149 | 0.670149 | 0.670149 | 0.670149 | 0.652239 | 0 | 0.066882 | 0.263701 | 1,259 | 52 | 63 | 24.211538 | 0.655879 | 0.05004 | 0 | 0.621622 | 0 | 0 | 0.027754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.054054 | 0 | 0.189189 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7212fc092998b302c4d64495fa219a02862b7ddd | 2,578 | py | Python | tester/src/e203_defines.py | giraffe50/RISCV-M4F | 1b1ed756a8ea02c2d2a11d8472f8603847170ad8 | [
"Apache-2.0"
] | 3 | 2021-01-13T03:41:14.000Z | 2021-03-23T11:31:48.000Z | tester/src/e203_defines.py | scutdig/LG-32HP | 1b1ed756a8ea02c2d2a11d8472f8603847170ad8 | [
"Apache-2.0"
] | 1 | 2021-03-01T09:32:59.000Z | 2021-03-01T09:32:59.000Z | tester/src/e203_defines.py | scutdig/LG-32HP | 1b1ed756a8ea02c2d2a11d8472f8603847170ad8 | [
"Apache-2.0"
] | 4 | 2021-01-07T03:01:26.000Z | 2021-02-28T02:20:10.000Z | from pyhcl import *
# ///////////////////////////////////////////////////
# # E203Biu module parameters
# basic parameters
E203_ADDR_SIZE = 32
E203_XLEN = 32
# WMASK_SIZE = E203_XLEN/8
WMASK_SIZE = 4
# localparam
BIU_ARBT_I_NUM = 2
BIU_ARBT_I_PTR_W = 1
# BIU_SPLT_I_NUM_0 = 4
# BIU_SPLT_I_NUM_1 = 5
... | 19.238806 | 56 | 0.447634 | 313 | 2,578 | 3.329073 | 0.172524 | 0.092131 | 0.069098 | 0.034549 | 0.509597 | 0.504798 | 0.504798 | 0.28119 | 0.256238 | 0.211132 | 0 | 0.057673 | 0.226532 | 2,578 | 133 | 57 | 19.383459 | 0.464895 | 0.791699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
72177456e0ba76df55e57d44ea0dccba5f002094 | 5,852 | py | Python | continuous-piecewise/absolute.py | barrysir/cool-math-stuff | 763471e6772d19134b725b1ded88b9d20c297a2e | [
"MIT"
] | null | null | null | continuous-piecewise/absolute.py | barrysir/cool-math-stuff | 763471e6772d19134b725b1ded88b9d20c297a2e | [
"MIT"
] | null | null | null | continuous-piecewise/absolute.py | barrysir/cool-math-stuff | 763471e6772d19134b725b1ded88b9d20c297a2e | [
"MIT"
] | null | null | null | from sympy import symbols, oo, sympify, Rational, sqrt, acos, cos, pi
x = symbols('x')
def Ramp(pt, slope, side):
'''Generates the "ramp" function (left-sided or right-sided).
Example of the right-sided ramp function:
f(x) = { y1 if x <= x1
{ line starting at (pt) with given s... | 34.833333 | 91 | 0.564935 | 913 | 5,852 | 3.579409 | 0.212486 | 0.019584 | 0.014688 | 0.015912 | 0.26377 | 0.188494 | 0.149939 | 0.140759 | 0.112607 | 0.112607 | 0 | 0.045691 | 0.278195 | 5,852 | 168 | 92 | 34.833333 | 0.727983 | 0.4689 | 0 | 0.168831 | 1 | 0 | 0.047819 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 1 | 0.116883 | false | 0.012987 | 0.012987 | 0 | 0.246753 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
721ab2c5aae2b2396a62fce7614097d7b1c37254 | 446 | py | Python | Jimmy66/0003/0003-2-unfinished.py | hooting/show-me-the-code-python | 0026ee495eade7c28aa5a1249716b1fdc20a141c | [
"MIT"
] | null | null | null | Jimmy66/0003/0003-2-unfinished.py | hooting/show-me-the-code-python | 0026ee495eade7c28aa5a1249716b1fdc20a141c | [
"MIT"
] | null | null | null | Jimmy66/0003/0003-2-unfinished.py | hooting/show-me-the-code-python | 0026ee495eade7c28aa5a1249716b1fdc20a141c | [
"MIT"
] | 1 | 2021-08-29T10:10:30.000Z | 2021-08-29T10:10:30.000Z | #!bin/env python
# -*- coding: utf-8 -*-
#这是另一种方案
#未完成,想法是直接将返回的字典存入redis数据库,感觉这样都是键值对,看上去舒服点,性能上会怎么样,不清楚
#还需要补习面向对象方面的python知识,文档还不能完全看懂
from redisco import models
def file_read(filename):
with open(filename,'r') as f:
lines = f.readlines()
for n in range(0,200):
lines[n] = lines[n].strip()
num = range(1... | 17.153846 | 55 | 0.697309 | 65 | 446 | 4.615385 | 0.8 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023684 | 0.147982 | 446 | 26 | 56 | 17.153846 | 0.765789 | 0.289238 | 0 | 0 | 0 | 0 | 0.060703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
721d68a92a4ec87c0f3de48c5bf7a1c4d3f9edf4 | 2,056 | py | Python | app/__init__.py | cbaron3/reddit-slang-bot | 348e6cd521c81b3e61c7205228efc98a2ed9774e | [
"MIT"
] | null | null | null | app/__init__.py | cbaron3/reddit-slang-bot | 348e6cd521c81b3e61c7205228efc98a2ed9774e | [
"MIT"
] | 3 | 2021-03-09T14:24:57.000Z | 2022-02-18T07:21:57.000Z | app/__init__.py | cbaron3/slang-bot | 348e6cd521c81b3e61c7205228efc98a2ed9774e | [
"MIT"
] | null | null | null | import os
# Load in environment settings
from dotenv import load_dotenv
from pathlib import Path
env_path = Path('..') / '.env'
load_dotenv(dotenv_path=env_path)
# Creating the application
from flask import Flask
app = Flask(__name__, static_folder='../dist/static')
# Application API access configuration... | 33.16129 | 107 | 0.698444 | 261 | 2,056 | 5.310345 | 0.417625 | 0.064935 | 0.054113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001819 | 0.197957 | 2,056 | 61 | 108 | 33.704918 | 0.83869 | 0.15321 | 0 | 0 | 0 | 0 | 0.183722 | 0.050269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0.025 | 0.325 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
721dd72a4c1a8cbd61423db59cecd10cff51c4ea | 1,048 | py | Python | wave/synth/wave/wave/freq/angular.py | jedhsu/wave | a05d8f4b0a96722bdc2f5a514646c7a44681982b | [
"Apache-2.0"
] | null | null | null | wave/synth/wave/wave/freq/angular.py | jedhsu/wave | a05d8f4b0a96722bdc2f5a514646c7a44681982b | [
"Apache-2.0"
] | null | null | null | wave/synth/wave/wave/freq/angular.py | jedhsu/wave | a05d8f4b0a96722bdc2f5a514646c7a44681982b | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from dataclasses import dataclass
from ..time import Duration
from .base import Frequency
__all__ = ["AngularFrequency"]
class _Set_:
def _set(self, val: float):
self._value = val
@dataclass
class _AngularFrequency(_Set_):
_value: float
class _Mutate_(_AngularF... | 18.068966 | 66 | 0.678435 | 106 | 1,048 | 6.169811 | 0.339623 | 0.041284 | 0.036697 | 0.04893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218511 | 1,048 | 57 | 67 | 18.385965 | 0.798535 | 0 | 0 | 0.162162 | 0 | 0 | 0.055344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.108108 | 0.027027 | 0.594595 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
722136aa29041621e3ca3ef7bd00cd474cc1ed67 | 8,866 | py | Python | tenant_intake/views/entrepreneur_view.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 1 | 2020-07-16T10:58:23.000Z | 2020-07-16T10:58:23.000Z | tenant_intake/views/entrepreneur_view.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 13 | 2018-11-30T02:29:39.000Z | 2022-03-11T23:35:49.000Z | tenant_intake/views/entrepreneur_view.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | null | null | null | from datetime import datetime
from django.shortcuts import render, get_object_or_404
from django.contrib.auth.models import User, Group
from django.contrib.auth.decorators import login_required
from django.views.decorators.http import condition
from django.db.models import Q
from django.db import connection # Used for ... | 39.057269 | 97 | 0.768441 | 1,148 | 8,866 | 5.626307 | 0.108014 | 0.054343 | 0.039635 | 0.050317 | 0.768076 | 0.693915 | 0.6549 | 0.6549 | 0.639882 | 0.636167 | 0 | 0.003369 | 0.129483 | 8,866 | 226 | 98 | 39.230089 | 0.833506 | 0.103316 | 0 | 0.556213 | 0 | 0 | 0.117588 | 0.070679 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.130178 | 0 | 0.289941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7226d65c92860bd0f8ba55e33d38608f5dc1ea83 | 9,766 | py | Python | checker/checker.py | Florensvb/derailed | 4f69df0d4f0a78085c72e6fac2b40838e68ef9d4 | [
"MIT"
] | null | null | null | checker/checker.py | Florensvb/derailed | 4f69df0d4f0a78085c72e6fac2b40838e68ef9d4 | [
"MIT"
] | 4 | 2021-03-09T12:45:51.000Z | 2022-02-18T06:02:39.000Z | checker/checker.py | Florensvb/derailed | 4f69df0d4f0a78085c72e6fac2b40838e68ef9d4 | [
"MIT"
] | null | null | null | import random
import string
import requests
import piexif
import json
import io
from PIL import Image
from enochecker import *
def random_username():
return ''.join(random.choice(string.ascii_letters) for _ in range(0, 15))
def random_password():
rand_symbols = string.ascii_letters + string.digits
retur... | 36.714286 | 104 | 0.586729 | 1,052 | 9,766 | 5.328897 | 0.177757 | 0.07706 | 0.019622 | 0.023725 | 0.42401 | 0.345701 | 0.28523 | 0.243668 | 0.18944 | 0.18944 | 0 | 0.005959 | 0.295515 | 9,766 | 265 | 105 | 36.85283 | 0.808866 | 0.065431 | 0 | 0.338095 | 0 | 0 | 0.129472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.038095 | 0.014286 | 0.219048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
722a298d79591a6fa3ea9738d1b4135cc2e1a684 | 817 | py | Python | products/migrations/0003_auto_20210826_2309.py | NewtonHead/e-commerce_project | 5ed448b033cd3771fc63f62022fe84ac8e17442d | [
"MIT"
] | null | null | null | products/migrations/0003_auto_20210826_2309.py | NewtonHead/e-commerce_project | 5ed448b033cd3771fc63f62022fe84ac8e17442d | [
"MIT"
] | null | null | null | products/migrations/0003_auto_20210826_2309.py | NewtonHead/e-commerce_project | 5ed448b033cd3771fc63f62022fe84ac8e17442d | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-27 02:09
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0002_alter_product_price'),
]
operations = [
migrations.AddField(
model_name='product'... | 32.68 | 186 | 0.615667 | 89 | 817 | 5.550562 | 0.640449 | 0.040486 | 0.080972 | 0.080972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041139 | 0.226438 | 817 | 24 | 187 | 34.041667 | 0.740506 | 0.05508 | 0 | 0.222222 | 1 | 0 | 0.166234 | 0.031169 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
722c5b37f6351b83a437fed2876a7193dbe34e93 | 609 | py | Python | django_mri/models/outputs/nifti_output_definition.py | GalBenZvi/django_mri | 558e9187a6ba18b7ba69aced919a6f94d066a2fc | [
"Apache-2.0"
] | 4 | 2020-07-27T20:33:54.000Z | 2022-01-11T20:24:03.000Z | django_mri/models/outputs/nifti_output_definition.py | GalBenZvi/django_mri | 558e9187a6ba18b7ba69aced919a6f94d066a2fc | [
"Apache-2.0"
] | 107 | 2019-09-04T11:38:46.000Z | 2022-03-04T13:59:51.000Z | django_mri/models/outputs/nifti_output_definition.py | GalBenZvi/django_mri | 558e9187a6ba18b7ba69aced919a6f94d066a2fc | [
"Apache-2.0"
] | 2 | 2020-05-24T06:35:33.000Z | 2020-06-14T13:15:32.000Z | from pathlib import Path
from django_analyses.models.output.definitions.output_definition import \
OutputDefinition
from django_mri.models.nifti import NIfTI
from django_mri.models.outputs.nifti_output import NiftiOutput
class NiftiOutputDefinition(OutputDefinition):
output_class = NiftiOutput
def pre_o... | 33.833333 | 81 | 0.7422 | 75 | 609 | 5.826667 | 0.466667 | 0.06865 | 0.059497 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16913 | 609 | 17 | 82 | 35.823529 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0.01642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
7234fd4c8ac1570013f5d1ce6ee2a2ab9e268127 | 452 | py | Python | doggomenus/__init__.py | Taromaruu/DoggoMenus | ac8af862452a430be59e3ab44524e97d61d44fc7 | [
"MIT"
] | 2 | 2021-04-09T18:04:33.000Z | 2021-04-13T14:51:14.000Z | doggomenus/__init__.py | Taromaruu/DoggoMenus | ac8af862452a430be59e3ab44524e97d61d44fc7 | [
"MIT"
] | null | null | null | doggomenus/__init__.py | Taromaruu/DoggoMenus | ac8af862452a430be59e3ab44524e97d61d44fc7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
DoggoMenus
===============
A basic console menu system for Python!
If you have any bugs, feature requests, or just wanna check out the source code, you can go to the GitHub!
"""
__title__ = 'doggomenus'
__author__ = 'Doggo'
__license__ = 'MIT'
__copyright__ = 'Copyright 2021 Doggo'
__ver... | 20.545455 | 106 | 0.696903 | 59 | 452 | 4.711864 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.159292 | 452 | 21 | 107 | 21.52381 | 0.710526 | 0.438053 | 0 | 0 | 0 | 0 | 0.203252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
72372117f107c9265f713ee954537c8d8ec2c782 | 4,045 | py | Python | odin/codecs/msgpack_codec.py | thedrow/odin | 2d360057eefd66cdb6b4d4612c8c5344d924f9ff | [
"BSD-3-Clause"
] | null | null | null | odin/codecs/msgpack_codec.py | thedrow/odin | 2d360057eefd66cdb6b4d4612c8c5344d924f9ff | [
"BSD-3-Clause"
] | null | null | null | odin/codecs/msgpack_codec.py | thedrow/odin | 2d360057eefd66cdb6b4d4612c8c5344d924f9ff | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from odin.utils import getmeta
try:
import msgpack
except ImportError:
raise ImportError("odin.codecs.msgpack_codec requires the 'msgpack-python' package.") # noqa
import datetime
from odin import bases
from odin import serializers, resources, ResourceAdapter
TYPE_SERIALIZERS = {
... | 40.858586 | 120 | 0.709023 | 555 | 4,045 | 5.045045 | 0.268468 | 0.032143 | 0.057143 | 0.028571 | 0.448571 | 0.408571 | 0.381429 | 0.350714 | 0.323214 | 0.290357 | 0 | 0.00094 | 0.211125 | 4,045 | 98 | 121 | 41.27551 | 0.876528 | 0.456366 | 0 | 0.051282 | 0 | 0 | 0.049068 | 0.022571 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.179487 | 0 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7238ce621acf60b84a584d71d312358e97512257 | 485 | py | Python | formsa/migrations/0001_initial.py | Charudatta999/miniproject | f1a72eb5a3dafe55669489f185e4010ac824262b | [
"MIT"
] | 1 | 2020-07-30T17:11:18.000Z | 2020-07-30T17:11:18.000Z | formsa/migrations/0001_initial.py | vidyakore/miniproject | f1a72eb5a3dafe55669489f185e4010ac824262b | [
"MIT"
] | null | null | null | formsa/migrations/0001_initial.py | vidyakore/miniproject | f1a72eb5a3dafe55669489f185e4010ac824262b | [
"MIT"
] | 1 | 2020-09-09T05:23:35.000Z | 2020-09-09T05:23:35.000Z | # Generated by Django 3.0.5 on 2020-05-23 10:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='regi',
fields=[
('name', mo... | 22.045455 | 96 | 0.540206 | 48 | 485 | 5.395833 | 0.770833 | 0.069498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059937 | 0.346392 | 485 | 21 | 97 | 23.095238 | 0.757098 | 0.092784 | 0 | 0 | 1 | 0 | 0.026379 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
723e04831ee1ab04eada5199a239e4ca2f8ea9af | 340 | py | Python | bin/wsgi.py | wsaxun/DemoLib | 2f3368b86c6067f66f9fcb3dcb9f37bf13740d2a | [
"BSD-2-Clause"
] | null | null | null | bin/wsgi.py | wsaxun/DemoLib | 2f3368b86c6067f66f9fcb3dcb9f37bf13740d2a | [
"BSD-2-Clause"
] | null | null | null | bin/wsgi.py | wsaxun/DemoLib | 2f3368b86c6067f66f9fcb3dcb9f37bf13740d2a | [
"BSD-2-Clause"
] | null | null | null | import os
import sys
from collections import OrderedDict
from werkzeug.wsgi import DispatcherMiddleware
sys.path.append(os.environ.get('DEMOLIB_HOME', None))
from flaskdemo.webapi import create_app
application = create_app()
application.wsgi_app = DispatcherMiddleware(application.wsgi_app, OrderedDict((
('/api'... | 22.666667 | 79 | 0.797059 | 41 | 340 | 6.487805 | 0.536585 | 0.067669 | 0.150376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105882 | 340 | 14 | 80 | 24.285714 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
724993484bf0b10a8f31484fe0af155808a6792c | 1,584 | py | Python | Extra/inormalize.py | niefermar/APPIAN-PET-APPIAN | 895fa3aaad7f444d6f4e6f7c698ddace9415664c | [
"MIT"
] | 1 | 2021-04-15T01:46:36.000Z | 2021-04-15T01:46:36.000Z | Extra/inormalize.py | niefermar/APPIAN-PET-APPIAN | 895fa3aaad7f444d6f4e6f7c698ddace9415664c | [
"MIT"
] | null | null | null | Extra/inormalize.py | niefermar/APPIAN-PET-APPIAN | 895fa3aaad7f444d6f4e6f7c698ddace9415664c | [
"MIT"
] | null | null | null | import os
import numpy as np
from nipype.interfaces.base import CommandLine, CommandLineInputSpec
from nipype.interfaces.base import (TraitedSpec, File, traits, InputMultiPath,isdefined)
class InormalizeOutput(TraitedSpec):
out_file = File(exists=True, desc="Normalized image")
class InormalizeInput(CommandL... | 32.326531 | 124 | 0.700758 | 192 | 1,584 | 5.614583 | 0.380208 | 0.051948 | 0.044527 | 0.050093 | 0.220779 | 0.107607 | 0 | 0 | 0 | 0 | 0 | 0.002327 | 0.186237 | 1,584 | 48 | 125 | 33 | 0.83398 | 0 | 0 | 0 | 0 | 0 | 0.116941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0.129032 | 0 | 0.774194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
724b0f430a99c5cfe07fd9149bdc4882f22333a1 | 480 | py | Python | svr.py | partnernetsoftware/mypy | 3a5afc7361a2fd4a803aa4ffd6d55958e0e3a635 | [
"Unlicense"
] | null | null | null | svr.py | partnernetsoftware/mypy | 3a5afc7361a2fd4a803aa4ffd6d55958e0e3a635 | [
"Unlicense"
] | null | null | null | svr.py | partnernetsoftware/mypy | 3a5afc7361a2fd4a803aa4ffd6d55958e0e3a635 | [
"Unlicense"
] | null | null | null | from flask import *
import importlib,json
app=Flask(__name__)
@app.route('/<c>.<m>')
def main(c,m):
try:
cc = importlib.import_module(c)(request=request)
mm = getattr(cc,m)
return (json.dumps(mm()))
except Exception as ex:
return ({'errmsg':str(ex)})
@app.route('/')
def defau... | 20.869565 | 74 | 0.629167 | 74 | 480 | 3.986486 | 0.608108 | 0.020339 | 0.020339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020672 | 0.19375 | 480 | 22 | 75 | 21.818182 | 0.741602 | 0.275 | 0 | 0 | 0 | 0 | 0.055233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
724cc7669551436a017b3e08881c0f930825c245 | 2,734 | py | Python | pyworks_medialibrary/interfaces.py | pyworksasia/pyworks-medialibrary | 04f11afb957757500b7e947ff31560fea30b9379 | [
"MIT"
] | null | null | null | pyworks_medialibrary/interfaces.py | pyworksasia/pyworks-medialibrary | 04f11afb957757500b7e947ff31560fea30b9379 | [
"MIT"
] | null | null | null | pyworks_medialibrary/interfaces.py | pyworksasia/pyworks-medialibrary | 04f11afb957757500b7e947ff31560fea30b9379 | [
"MIT"
] | null | null | null | import abc
class StorageInterface(metaclass=abc.ABCMeta):
@classmethod
def __subclasshook_(cls, subclass):
return (
hasattr(subclass, 'disk') and
callable(subclass.disk) and
hasattr(subclass, 'put') and
callable(subclass.put) and
hasattr(subcl... | 27.34 | 53 | 0.592538 | 265 | 2,734 | 6.045283 | 0.166038 | 0.121723 | 0.154182 | 0.307116 | 0.472534 | 0.282772 | 0.126092 | 0 | 0 | 0 | 0 | 0.004258 | 0.312729 | 2,734 | 99 | 54 | 27.616162 | 0.848324 | 0.078274 | 0 | 0.366197 | 0 | 0 | 0.034637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.197183 | false | 0 | 0.014085 | 0.014085 | 0.239437 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0c6a8233e8c7501a17660d4edd580049cc5fe4b | 384 | py | Python | call_tracking/migrations/0005_auto_20201014_1629.py | kevingrahamtech/reicall | ad32b92ba7f2f0c893398f9d6ff8819a635d4c5f | [
"MIT"
] | null | null | null | call_tracking/migrations/0005_auto_20201014_1629.py | kevingrahamtech/reicall | ad32b92ba7f2f0c893398f9d6ff8819a635d4c5f | [
"MIT"
] | 5 | 2021-03-19T12:44:52.000Z | 2021-06-10T20:36:29.000Z | call_tracking/migrations/0005_auto_20201014_1629.py | kevingrahamtech/reicall | ad32b92ba7f2f0c893398f9d6ff8819a635d4c5f | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2020-10-14 16:29
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('call_tracking', '0004_auto_20201014_1617'),
]
operations = [
migrations.RenameField(
model_name='call',
old_name='proxy_numb... | 20.210526 | 53 | 0.606771 | 42 | 384 | 5.333333 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113139 | 0.286458 | 384 | 18 | 54 | 21.333333 | 0.70438 | 0.117188 | 0 | 0 | 1 | 0 | 0.204748 | 0.068249 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0ceb391455129fcfbfd1bb432d2d2750fc72640 | 956 | py | Python | src/lstm.py | JohndeVostok/KDD-CUP | f1057078ca35ee0c05158e9c23aac1ec5f90ac38 | [
"MIT"
] | null | null | null | src/lstm.py | JohndeVostok/KDD-CUP | f1057078ca35ee0c05158e9c23aac1ec5f90ac38 | [
"MIT"
] | null | null | null | src/lstm.py | JohndeVostok/KDD-CUP | f1057078ca35ee0c05158e9c23aac1ec5f90ac38 | [
"MIT"
] | null | null | null | import numpy
import pickle
from keras.models import Sequential, Model
from keras.layers.core import Dense, Activation
from keras.layers import LSTM, Input, Flatten, Merge,Bidirectional
from keras.layers.wrappers import TimeDistributed
from keras.optimizers import SGD, Adam, RMSprop
from keras.layers.normalization impo... | 27.314286 | 90 | 0.756276 | 137 | 956 | 5.240876 | 0.525547 | 0.075209 | 0.083565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021127 | 0.108787 | 956 | 34 | 91 | 28.117647 | 0.821596 | 0.033473 | 0 | 0 | 0 | 0 | 0.066089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.36 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a0d0bc0682f913c55225e18a73cfd62e640c1ecb | 155 | py | Python | code/abc128_b_03.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | 3 | 2019-08-16T16:55:48.000Z | 2021-04-11T10:21:40.000Z | code/abc128_b_03.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | code/abc128_b_03.py | KoyanagiHitoshi/AtCoder | 731892543769b5df15254e1f32b756190378d292 | [
"MIT"
] | null | null | null | n=int(input())
sp=[]
for i in range(n):
s,p=input().split()
sp.append([s,int(p),i+1])
sp.sort(key=lambda sp:(sp[0],-sp[1]))
for i in sp:print(i[2]) | 22.142857 | 37 | 0.567742 | 36 | 155 | 2.444444 | 0.527778 | 0.090909 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.135484 | 155 | 7 | 38 | 22.142857 | 0.626866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0d2b8c5a16bec34a41e0d327507ab5bf6f8201f | 457 | py | Python | 187. Repeated DNA Sequences/187.py | xyzrlee/LeetCode | 1d5635f1fac200d4d289c5c7960b4e10d6fe7705 | [
"MIT"
] | null | null | null | 187. Repeated DNA Sequences/187.py | xyzrlee/LeetCode | 1d5635f1fac200d4d289c5c7960b4e10d6fe7705 | [
"MIT"
] | null | null | null | 187. Repeated DNA Sequences/187.py | xyzrlee/LeetCode | 1d5635f1fac200d4d289c5c7960b4e10d6fe7705 | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def findRepeatedDnaSequences(self, s: str) -> List[str]:
x = set()
y = []
for i in range(len(s) - 9):
z = s[i:i + 10]
y.append(z) if z in x else x.add(z)
return list(set(y))
if __name__ == '__main__':
sol = Solut... | 25.388889 | 75 | 0.601751 | 56 | 457 | 4.767857 | 0.589286 | 0.029963 | 0.2397 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008982 | 0.269147 | 457 | 17 | 76 | 26.882353 | 0.790419 | 0 | 0 | 0 | 0 | 0 | 0.111597 | 0.070022 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.307692 | 0.153846 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0da9545c403f29a79e8deea1454949d19819e2f | 2,100 | py | Python | photos/models.py | iankabugi/gallery | 4ce2bd8046849195a7009e02b94e2dcba6a66d2f | [
"MIT"
] | 1 | 2019-03-08T12:59:19.000Z | 2019-03-08T12:59:19.000Z | photos/models.py | iankabugi/gallery | 4ce2bd8046849195a7009e02b94e2dcba6a66d2f | [
"MIT"
] | null | null | null | photos/models.py | iankabugi/gallery | 4ce2bd8046849195a7009e02b94e2dcba6a66d2f | [
"MIT"
] | null | null | null | from django.db import models
import datetime as dt
import pyperclip
# Create your models here.
class Category(models.Model):
category = models.CharField(max_length=30)
def __str__(self):
return self.category
def save_category(self):
self.save()
def delete_category(self):
se... | 25 | 74 | 0.651429 | 250 | 2,100 | 5.296 | 0.212 | 0.074018 | 0.040786 | 0.054381 | 0.229607 | 0.154079 | 0.069486 | 0.069486 | 0.069486 | 0.069486 | 0 | 0.004444 | 0.25 | 2,100 | 83 | 75 | 25.301205 | 0.83619 | 0.011429 | 0 | 0.322581 | 0 | 0 | 0.003375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.048387 | 0.048387 | 0.596774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0de42b60deea5de792f10e665c5dbede10f4daa | 1,919 | py | Python | store/stores/views.py | kushalbhalla/store-api | 3f42cdad09456f038e5c0b4393e5253e8d0e695d | [
"MIT"
] | null | null | null | store/stores/views.py | kushalbhalla/store-api | 3f42cdad09456f038e5c0b4393e5253e8d0e695d | [
"MIT"
] | null | null | null | store/stores/views.py | kushalbhalla/store-api | 3f42cdad09456f038e5c0b4393e5253e8d0e695d | [
"MIT"
] | null | null | null | from rest_framework import viewsets, mixins
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import Stores, ProductContainer, Products
from stores import serializers
class BasicViewSet(viewsets.GenericViewSet,
m... | 33.086207 | 68 | 0.720167 | 197 | 1,919 | 6.903553 | 0.309645 | 0.029412 | 0.0375 | 0.055147 | 0.561029 | 0.497794 | 0.497794 | 0.497794 | 0.497794 | 0.497794 | 0 | 0 | 0.187077 | 1,919 | 57 | 69 | 33.666667 | 0.871795 | 0.180823 | 0 | 0.258065 | 0 | 0 | 0.023011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.193548 | false | 0 | 0.16129 | 0 | 0.83871 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a0e326aa147dbd52e2952a8e6eea2d05cc3d35f3 | 459 | py | Python | yanghui/189rotate.py | technologyMz/ALL_IN_ML | bb63fdd9b98adead316c7f6d8e57742bd0a469df | [
"Apache-2.0"
] | 3 | 2021-01-04T13:08:13.000Z | 2021-08-12T13:08:23.000Z | yanghui/189rotate.py | technologyMz/ALL_IN_ML | bb63fdd9b98adead316c7f6d8e57742bd0a469df | [
"Apache-2.0"
] | null | null | null | yanghui/189rotate.py | technologyMz/ALL_IN_ML | bb63fdd9b98adead316c7f6d8e57742bd0a469df | [
"Apache-2.0"
] | 1 | 2021-01-04T13:13:14.000Z | 2021-01-04T13:13:14.000Z |
nums = [1,2,3,4,5,6,7]
k = 3
k %= len(nums)
for i in range(k):
nums.insert(0,nums[-1])
nums = nums[:-1]
print(nums)
nums = [1,2,3,4,5,6,7]
K=k%len(nums)
a = nums[k*-1:]
b = nums[:len(nums)-k]
nums = a + b
print(nums)
nums = [1,2,3,4,5,6,7]
k %= len(nums)
nums = list(reversed(nums))
nums[0:k] = list(reversed... | 15.827586 | 37 | 0.56427 | 104 | 459 | 2.490385 | 0.201923 | 0.247104 | 0.092664 | 0.108108 | 0.351351 | 0.351351 | 0.351351 | 0.351351 | 0.351351 | 0.305019 | 0 | 0.089744 | 0.150327 | 459 | 28 | 38 | 16.392857 | 0.574359 | 0 | 0 | 0.521739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0ed2e2170dd27ea8e102555bd61fb26f82efc7a | 1,633 | py | Python | mrc/tests/conftest.py | cjopengler/easytext | 5561b9a51e7b0aa5d10b7af451374359b559e9b6 | [
"MIT"
] | 17 | 2020-06-19T12:12:13.000Z | 2022-01-28T02:07:01.000Z | mrc/tests/conftest.py | cjopengler/easytext | 5561b9a51e7b0aa5d10b7af451374359b559e9b6 | [
"MIT"
] | 24 | 2020-06-08T08:51:36.000Z | 2022-02-08T03:30:19.000Z | mrc/tests/conftest.py | cjopengler/easytext | 5561b9a51e7b0aa5d10b7af451374359b559e9b6 | [
"MIT"
] | 7 | 2020-07-20T06:40:00.000Z | 2022-01-28T03:52:49.000Z | #!/usr/bin/env python 3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2020 PanXu, Inc. All Rights Reserved
#
"""
brief
Authors: PanXu
Date: 2020/06/27 00:12:00
"""
import os
import pytest
from transformers import BertTokenizer
from tokenizers import BertWordPieceTokenizer
from mrc import ROOT_PATH
from mrc.data im... | 24.373134 | 99 | 0.724434 | 211 | 1,633 | 5.345972 | 0.322275 | 0.087766 | 0.119681 | 0.049645 | 0.416667 | 0.342199 | 0.338652 | 0.338652 | 0.338652 | 0.338652 | 0 | 0.014859 | 0.17575 | 1,633 | 66 | 100 | 24.742424 | 0.82318 | 0.158604 | 0 | 0.28 | 0 | 0 | 0.169609 | 0.153492 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.28 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a0ef25c412f293def024d7a66f34067a852273b8 | 2,627 | py | Python | robloxapi/Asset.py | TheFutureKnight/robloxapi | b3486207654b0a81ff512d2cdb14b58d6054bb06 | [
"MIT"
] | null | null | null | robloxapi/Asset.py | TheFutureKnight/robloxapi | b3486207654b0a81ff512d2cdb14b58d6054bb06 | [
"MIT"
] | null | null | null | robloxapi/Asset.py | TheFutureKnight/robloxapi | b3486207654b0a81ff512d2cdb14b58d6054bb06 | [
"MIT"
] | null | null | null | import json
from bs4 import BeautifulSoup
class Asset:
def __init__(self, request):
self._request = request.request
self.rawRequest = request
def getUserLimiteds(self, id, cursor=''):
url = f'https://inventory.roblox.com/v1/users/{id}/assets/collectibles?cursor={cursor}&sortOrder=Desc&... | 40.415385 | 180 | 0.60906 | 319 | 2,627 | 4.965517 | 0.335423 | 0.069444 | 0.070707 | 0.085859 | 0.215909 | 0.204545 | 0.14899 | 0.05303 | 0.05303 | 0 | 0 | 0.009896 | 0.230681 | 2,627 | 65 | 181 | 40.415385 | 0.773874 | 0.001903 | 0 | 0.072727 | 0 | 0.090909 | 0.317055 | 0.008775 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.145455 | false | 0 | 0.036364 | 0 | 0.309091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a0f05bb82745cb6f13cabb77a2ede1531899d683 | 1,247 | py | Python | app/__init__.py | JoyWambui/write-a-way | 2b535406f5c62722d478db8c186562009cf50e65 | [
"MIT"
] | null | null | null | app/__init__.py | JoyWambui/write-a-way | 2b535406f5c62722d478db8c186562009cf50e65 | [
"MIT"
] | null | null | null | app/__init__.py | JoyWambui/write-a-way | 2b535406f5c62722d478db8c186562009cf50e65 | [
"MIT"
] | null | null | null | from flask import Flask
from config import config_options
from flask_sqlalchemy import SQLAlchemy
from flask_bootstrap import Bootstrap
from flask_login import LoginManager
from flask_uploads import UploadSet,configure_uploads,IMAGES
from flask_simplemde import SimpleMDE
from flask_mail import Mail
#Creating extension... | 29 | 74 | 0.776263 | 156 | 1,247 | 5.974359 | 0.320513 | 0.067597 | 0.053648 | 0.062232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154771 | 1,247 | 43 | 75 | 29 | 0.88425 | 0.137931 | 0 | 0 | 0 | 0 | 0.034677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.333333 | 0 | 0.4 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a0f83e91094fbdc77f39f61ba22582bb279f363e | 4,642 | py | Python | preprocessing/feature_extraction.py | jonnybluesman/emomucs | 656b271b476b21990629477759f98fbdd09ac4c9 | [
"Unlicense"
] | 5 | 2020-10-10T17:39:24.000Z | 2021-09-30T02:48:36.000Z | preprocessing/feature_extraction.py | jonnybluesman/emomucs | 656b271b476b21990629477759f98fbdd09ac4c9 | [
"Unlicense"
] | null | null | null | preprocessing/feature_extraction.py | jonnybluesman/emomucs | 656b271b476b21990629477759f98fbdd09ac4c9 | [
"Unlicense"
] | 1 | 2021-03-30T14:37:27.000Z | 2021-03-30T14:37:27.000Z |
import os
import glob
import joblib
import pandas as pd
import numpy as np
import librosa
from joblib import Parallel, delayed
from tqdm import tqdm
def post_process_separated_track(stereo_track, target_sr=22050, target_duration=30, padding=True):
"""
Post-processing audio sequences obtained from the sep... | 35.435115 | 131 | 0.680095 | 684 | 4,642 | 4.346491 | 0.274854 | 0.056509 | 0.015136 | 0.018836 | 0.227043 | 0.182307 | 0.103599 | 0.08409 | 0.08409 | 0.08409 | 0 | 0.024329 | 0.229642 | 4,642 | 131 | 132 | 35.435115 | 0.807047 | 0.21047 | 0 | 0.064516 | 0 | 0 | 0.009135 | 0 | 0 | 0 | 0 | 0.030534 | 0 | 1 | 0.096774 | false | 0 | 0.129032 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d09f818cc3b4f1b2e4efef2328777875a542465 | 4,337 | py | Python | 432.All-O-one-Data-Structure.py | mickey0524/leetcode | 6bedeb6ff29b02a97178cca464c5fd639951801f | [
"MIT"
] | 18 | 2018-07-14T12:45:37.000Z | 2022-03-26T14:51:04.000Z | 432.All-O-one-Data-Structure.py | mickey0524/leetcode | 6bedeb6ff29b02a97178cca464c5fd639951801f | [
"MIT"
] | null | null | null | 432.All-O-one-Data-Structure.py | mickey0524/leetcode | 6bedeb6ff29b02a97178cca464c5fd639951801f | [
"MIT"
] | 3 | 2019-05-29T04:09:22.000Z | 2021-06-07T23:37:46.000Z | # https://leetcode.com/problems/all-oone-data-structure/
#
# algorithms
# Hard (29.33%)
# Total Accepted: 17,753
# Total Submissions: 60,523
class ListNode(object):
def __init__(self, k):
self.k = k
self.pre = None
self.next = None
class AllOne(object):
def __init__(self):
... | 30.758865 | 96 | 0.458843 | 564 | 4,337 | 3.400709 | 0.173759 | 0.116788 | 0.160584 | 0.087591 | 0.639208 | 0.56048 | 0.485923 | 0.428571 | 0.372263 | 0.332117 | 0 | 0.020383 | 0.434402 | 4,337 | 140 | 97 | 30.978571 | 0.761517 | 0.077703 | 0 | 0.450549 | 0 | 0 | 0.005792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.043956 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d0ac89e2d2cd3923ec875598f67869dd1066a9b | 761 | py | Python | backend/wallet/services/risk.py | tanshuai/reference-wallet | e8efec4acc6af6e319cf075c10693ddf7754cc83 | [
"Apache-2.0"
] | 14 | 2020-12-17T08:03:51.000Z | 2022-03-26T04:21:18.000Z | backend/wallet/services/risk.py | tanshuai/reference-wallet | e8efec4acc6af6e319cf075c10693ddf7754cc83 | [
"Apache-2.0"
] | 20 | 2020-12-15T12:02:56.000Z | 2021-05-19T23:37:34.000Z | backend/wallet/services/risk.py | tanshuai/reference-wallet | e8efec4acc6af6e319cf075c10693ddf7754cc83 | [
"Apache-2.0"
] | 12 | 2020-12-10T16:35:27.000Z | 2022-02-01T04:06:10.000Z | # Copyright (c) The Diem Core Contributors
# SPDX-License-Identifier: Apache-2.0
""" Risk module determines if a transaction by a user can be executed. Risk check is stubbed out for LRW
with a simple amount threshold check. """
from wallet.logging import log_execution
from wallet.types import UserNotFoundError
TX_AM... | 31.708333 | 104 | 0.727989 | 114 | 761 | 4.72807 | 0.517544 | 0.083488 | 0.06679 | 0.06308 | 0.174397 | 0.092764 | 0 | 0 | 0 | 0 | 0 | 0.021452 | 0.203679 | 761 | 23 | 105 | 33.086957 | 0.867987 | 0.285151 | 0 | 0 | 0 | 0 | 0.304104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9d137f2cdc73454a7bf9642b1b0742436048d903 | 478 | py | Python | examples/binsearch/interactor.py | sslotin/jay | 4088351b29215959377eb7a592f39a7587955295 | [
"MIT"
] | 5 | 2020-12-04T14:17:33.000Z | 2022-03-26T02:51:23.000Z | examples/binsearch/interactor.py | sslotin/jay | 4088351b29215959377eb7a592f39a7587955295 | [
"MIT"
] | null | null | null | examples/binsearch/interactor.py | sslotin/jay | 4088351b29215959377eb7a592f39a7587955295 | [
"MIT"
] | 1 | 2021-08-04T01:19:54.000Z | 2021-08-04T01:19:54.000Z | import os
import sys
import random
random.seed(os.environ['SEED'])
x = random.randint(1, 1000)
print(x, flush=True)
request_count = 0
while True:
c, y = input().split()
y = int(y)
if c == '!':
assert x == y, 'Wrong answer'
break
elif x > y:
print('>', flush=True)
elif x ... | 17.071429 | 56 | 0.554393 | 67 | 478 | 3.910448 | 0.507463 | 0.137405 | 0.160305 | 0.160305 | 0.152672 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0.026627 | 0.292887 | 478 | 27 | 57 | 17.703704 | 0.748521 | 0 | 0 | 0 | 0 | 0 | 0.087866 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d1ff26cd252489f9679096ce845f0118064a8ca | 1,279 | py | Python | authors/apps/articles/migrations/0001_initial.py | andela/ah-backend-sparta | fcc394e486a736993702bfa1e6fd9e9b189b93ae | [
"BSD-3-Clause"
] | null | null | null | authors/apps/articles/migrations/0001_initial.py | andela/ah-backend-sparta | fcc394e486a736993702bfa1e6fd9e9b189b93ae | [
"BSD-3-Clause"
] | 11 | 2019-03-25T14:38:23.000Z | 2019-04-18T08:02:10.000Z | authors/apps/articles/migrations/0001_initial.py | andela/ah-backend-sparta | fcc394e486a736993702bfa1e6fd9e9b189b93ae | [
"BSD-3-Clause"
] | 5 | 2019-06-12T08:22:58.000Z | 2020-02-07T08:26:37.000Z | # Generated by Django 2.2 on 2019-04-11 05:41
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('profiles', '0001_initial'),
]
operations = [
migrat... | 36.542857 | 150 | 0.593432 | 131 | 1,279 | 5.671756 | 0.572519 | 0.048452 | 0.072678 | 0.096904 | 0.072678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031983 | 0.266615 | 1,279 | 35 | 151 | 36.542857 | 0.760128 | 0.03362 | 0 | 0 | 1 | 0 | 0.097166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9d2997a6074b7d7804beeebc9cc57f2ecd0fe53f | 9,783 | py | Python | stars/FileIO.py | lhcramer-GISforks/stars | 3c7532a6ea9cd0af7c21f009d603d80cbd69278a | [
"BSD-2-Clause"
] | 9 | 2015-06-15T14:25:08.000Z | 2021-04-01T22:57:48.000Z | stars/FileIO.py | lhcramer-GISforks/stars | 3c7532a6ea9cd0af7c21f009d603d80cbd69278a | [
"BSD-2-Clause"
] | 8 | 2015-08-12T23:59:53.000Z | 2021-06-13T00:33:37.000Z | stars/FileIO.py | lhcramer-GISforks/stars | 3c7532a6ea9cd0af7c21f009d603d80cbd69278a | [
"BSD-2-Clause"
] | 15 | 2016-02-08T05:03:44.000Z | 2021-05-17T21:07:00.000Z | """
File IO module for Space-Time Analysis of Regional Systems
----------------------------------------------------------------------
AUTHOR(S): Sergio J. Rey sjrey@users.sourceforge.net
Mark V. Janikas mjanikas@users.sourceforge.net
----------------------------------------------------------------------
... | 31.762987 | 119 | 0.552796 | 1,125 | 9,783 | 4.759111 | 0.233778 | 0.024654 | 0.018491 | 0.024841 | 0.377848 | 0.3291 | 0.304072 | 0.292118 | 0.255883 | 0.241688 | 0 | 0.008269 | 0.320147 | 9,783 | 307 | 120 | 31.86645 | 0.796722 | 0.019626 | 0 | 0.338983 | 0 | 0 | 0.046343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022599 | 0.039548 | null | null | 0.00565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.