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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6658ac09f883e2294252fa23ecf1924cbc5a7c22 | 994 | py | Python | registrations/migrations/0015_auto_20181015_1002.py | praekeltfoundation/ndoh-hub | 91d834ff8fe43b930a73d8debdaa0e6af78c5efc | [
"BSD-3-Clause"
] | null | null | null | registrations/migrations/0015_auto_20181015_1002.py | praekeltfoundation/ndoh-hub | 91d834ff8fe43b930a73d8debdaa0e6af78c5efc | [
"BSD-3-Clause"
] | 126 | 2016-07-12T19:39:44.000Z | 2022-03-24T13:39:38.000Z | registrations/migrations/0015_auto_20181015_1002.py | praekeltfoundation/ndoh-hub | 91d834ff8fe43b930a73d8debdaa0e6af78c5efc | [
"BSD-3-Clause"
] | 3 | 2016-09-28T13:16:11.000Z | 2020-11-07T15:32:37.000Z | # Generated by Django 2.1.2 on 2018-10-15 10:02
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("registrations", "0014_auto_20180503_1418")]
operations = [
migrations.AlterField(
... | 29.235294 | 65 | 0.582495 | 99 | 994 | 5.656566 | 0.434343 | 0.057143 | 0.075 | 0.117857 | 0.571429 | 0.489286 | 0.328571 | 0.328571 | 0.328571 | 0.328571 | 0 | 0.046131 | 0.323944 | 994 | 33 | 66 | 30.121212 | 0.787202 | 0.045272 | 0 | 0.592593 | 1 | 0 | 0.128828 | 0.068638 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.222222 | 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 |
6658dad7a9c1704ec23c78449baf2927614ddaf4 | 1,701 | py | Python | app/routes.py | BrevinS/brebapp | 6051a81bfc1eeff62fab089b24e578610d999c7a | [
"MIT"
] | null | null | null | app/routes.py | BrevinS/brebapp | 6051a81bfc1eeff62fab089b24e578610d999c7a | [
"MIT"
] | null | null | null | app/routes.py | BrevinS/brebapp | 6051a81bfc1eeff62fab089b24e578610d999c7a | [
"MIT"
] | null | null | null | from flask import render_template, flash, redirect, url_for, request
from app import app, db
from flask_sqlalchemy import sqlalchemy
from app.forms import RegisterForm, LoginForm
from app.models import User
from flask_login import current_user, login_user, logout_user, login_required
@app.before_first_request
def init... | 35.4375 | 101 | 0.697825 | 224 | 1,701 | 5.15625 | 0.321429 | 0.057143 | 0.072727 | 0.08658 | 0.159307 | 0.077922 | 0.077922 | 0.077922 | 0 | 0 | 0 | 0.000705 | 0.166373 | 1,701 | 47 | 102 | 36.191489 | 0.813822 | 0 | 0 | 0.142857 | 0 | 0 | 0.095238 | 0.012934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119048 | false | 0.071429 | 0.142857 | 0.02381 | 0.452381 | 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 |
66604f29cc76cb51597282227f2f702616063177 | 3,283 | py | Python | openstack_registration/views.py | AMfalme/Horizon_Openstack | a1857fcada9d9fe25fcda5a791847695170b184e | [
"Apache-2.0"
] | null | null | null | openstack_registration/views.py | AMfalme/Horizon_Openstack | a1857fcada9d9fe25fcda5a791847695170b184e | [
"Apache-2.0"
] | null | null | null | openstack_registration/views.py | AMfalme/Horizon_Openstack | a1857fcada9d9fe25fcda5a791847695170b184e | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.conf.urls import url
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_protect
from django.views.decorators.debug import sensitive_post_parameters
from django.views.decorators.cache import never_cache
from django import shortcuts
from djan... | 38.174419 | 167 | 0.698142 | 389 | 3,283 | 5.791774 | 0.272494 | 0.048824 | 0.051043 | 0.068797 | 0.411008 | 0.411008 | 0.400355 | 0.400355 | 0.358633 | 0.268087 | 0 | 0.005725 | 0.201949 | 3,283 | 86 | 168 | 38.174419 | 0.854198 | 0 | 0 | 0.428571 | 0 | 0.014286 | 0.179963 | 0.027101 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6661bf880b6939b19aa9bc6ee7e86c108142f3ad | 1,574 | py | Python | 231-power-of-two.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | 231-power-of-two.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | 231-power-of-two.py | mvj3/leetcode | 3111199beeaefbb3a74173e783ed21c9e53ab203 | [
"MIT"
] | null | null | null | """
Question:
Power of Two
Given an integer, write a function to determine if it is a power of two.
Credits:
Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.
Performance:
1. Total Accepted: 31274 Total Submissions: 99121 Difficulty: Easy
2. Your runt... | 24.215385 | 95 | 0.570521 | 199 | 1,574 | 4.417085 | 0.437186 | 0.054608 | 0.236633 | 0.095563 | 0.261661 | 0.079636 | 0.079636 | 0 | 0 | 0 | 0 | 0.080111 | 0.310038 | 1,574 | 64 | 96 | 24.59375 | 0.729282 | 0.271919 | 0 | 0 | 0 | 0 | 0.004896 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.1 | false | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66626a29f9249685650bd0842e2cb610b642b481 | 480 | py | Python | module_question/api/routers.py | NicolasMuras/Lookdaluv | 0c46d8871aa8e65139620b4afba82ca11d57ce63 | [
"MIT"
] | 1 | 2021-12-16T16:48:45.000Z | 2021-12-16T16:48:45.000Z | module_question/api/routers.py | NicolasMuras/Lookdaluv | 0c46d8871aa8e65139620b4afba82ca11d57ce63 | [
"MIT"
] | null | null | null | module_question/api/routers.py | NicolasMuras/Lookdaluv | 0c46d8871aa8e65139620b4afba82ca11d57ce63 | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from module_question.api.views.module_question_viewsets import QuestionModuleViewSet
from module_question.api.views.general_views import QuestionModuleStatisticsViewSet
router = DefaultRouter()
router.register(r'question_modules', QuestionModuleViewSet, basename='quest... | 48 | 119 | 0.872917 | 50 | 480 | 8.2 | 0.46 | 0.146341 | 0.087805 | 0.102439 | 0.273171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054167 | 480 | 10 | 120 | 48 | 0.903084 | 0 | 0 | 0 | 0 | 0 | 0.176715 | 0.110187 | 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 |
6665a36f70f8df00886e6b80c46c7779b1fbbd14 | 1,536 | py | Python | tests/CarController.py | sleeyax/PyCmdRouter | 05864abbc80a3081e2b918bce2f5ff2ebafffdcf | [
"MIT"
] | null | null | null | tests/CarController.py | sleeyax/PyCmdRouter | 05864abbc80a3081e2b918bce2f5ff2ebafffdcf | [
"MIT"
] | null | null | null | tests/CarController.py | sleeyax/PyCmdRouter | 05864abbc80a3081e2b918bce2f5ff2ebafffdcf | [
"MIT"
] | null | null | null | from core.Navigator import Navigator
from tests.car import Car
class CarController:
"""
Example class
"""
def __init__(self):
self.car = Car()
self.logged_in = False
self.nav = Navigator()
self.nav.set_end('>: ')
def show_motd(self):
print("""
+------------... | 25.180328 | 59 | 0.516927 | 166 | 1,536 | 4.656627 | 0.349398 | 0.063389 | 0.07762 | 0.087969 | 0.142303 | 0.062096 | 0 | 0 | 0 | 0 | 0 | 0.003813 | 0.317057 | 1,536 | 60 | 60 | 25.6 | 0.733079 | 0.008464 | 0 | 0.222222 | 0 | 0 | 0.240876 | 0.053086 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0.066667 | 0.044444 | 0.066667 | 0.355556 | 0.177778 | 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 |
666f5afd075434ae1a1a9e4a3a4b62bce28d1971 | 2,120 | py | Python | freefolks/migrations/0006_auto_20180602_2354.py | sivaprakashniet/blogger | e02bb99f9f86fddfa5892a7cf387ff73584b00d9 | [
"BSD-3-Clause"
] | null | null | null | freefolks/migrations/0006_auto_20180602_2354.py | sivaprakashniet/blogger | e02bb99f9f86fddfa5892a7cf387ff73584b00d9 | [
"BSD-3-Clause"
] | 2 | 2018-07-22T16:50:42.000Z | 2019-02-20T05:10:06.000Z | freefolks/migrations/0006_auto_20180602_2354.py | sivaprakashniet/blogger | e02bb99f9f86fddfa5892a7cf387ff73584b00d9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-03 06:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('freefolks', '0005_auto_20180602_2334'),
]
operations = [... | 35.932203 | 164 | 0.603302 | 216 | 2,120 | 5.740741 | 0.365741 | 0.058065 | 0.092742 | 0.108871 | 0.512903 | 0.512903 | 0.306452 | 0.306452 | 0.306452 | 0.306452 | 0 | 0.026589 | 0.272642 | 2,120 | 58 | 165 | 36.551724 | 0.777562 | 0.031132 | 0 | 0.666667 | 1 | 0 | 0.172111 | 0.011214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.117647 | 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 |
667e878ac89813e225d314fe6daf558d8183c050 | 2,650 | py | Python | cloudinitd/exceptions.py | buzztroll/cloudinit.d | 9fcc7c489b646e76f2b7360c0d807dae88d9cc0f | [
"Apache-2.0"
] | null | null | null | cloudinitd/exceptions.py | buzztroll/cloudinit.d | 9fcc7c489b646e76f2b7360c0d807dae88d9cc0f | [
"Apache-2.0"
] | null | null | null | cloudinitd/exceptions.py | buzztroll/cloudinit.d | 9fcc7c489b646e76f2b7360c0d807dae88d9cc0f | [
"Apache-2.0"
] | null | null | null | import traceback
import sys
import os
class CloudInitDException(Exception):
def __init__(self, ex):
self._base_ex = ex
exc_type, exc_value, exc_traceback = sys.exc_info()
self._base_stack = traceback.format_tb(exc_traceback)
def __str__(self):
return str(self._base_ex)
d... | 27.040816 | 71 | 0.609057 | 307 | 2,650 | 4.859935 | 0.198697 | 0.091153 | 0.066354 | 0.053619 | 0.193029 | 0.160858 | 0.112601 | 0.064343 | 0.064343 | 0.064343 | 0 | 0.00105 | 0.281132 | 2,650 | 97 | 72 | 27.319588 | 0.782152 | 0 | 0 | 0.263158 | 0 | 0 | 0.024169 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039474 | 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 |
6682823476a9a3f684acf518349ee6fb6a0df926 | 2,720 | py | Python | polls/views.py | camnpr/django-polls | 0d48469f02979a871640fd37f9f6c6d35123ff9f | [
"MIT"
] | null | null | null | polls/views.py | camnpr/django-polls | 0d48469f02979a871640fd37f9f6c6d35123ff9f | [
"MIT"
] | null | null | null | polls/views.py | camnpr/django-polls | 0d48469f02979a871640fd37f9f6c6d35123ff9f | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse, HttpResponseRedirect, Http404
# from django.template import loader
from django.shortcuts import render #, get_object_or_404
from django.urls import reverse
from django.utils import timezone
from django.views import gen... | 29.565217 | 151 | 0.74375 | 356 | 2,720 | 5.570225 | 0.308989 | 0.040343 | 0.045386 | 0.048412 | 0.442763 | 0.396369 | 0.396369 | 0.348966 | 0.31064 | 0.286435 | 0 | 0.00792 | 0.118015 | 2,720 | 92 | 152 | 29.565217 | 0.814923 | 0.136397 | 0 | 0.268293 | 0 | 0 | 0.107962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0 | 0.195122 | 0.04878 | 0.634146 | 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 |
668826e508bff30f401974beb97afc452d2384a9 | 987 | py | Python | tools/prepare_rawdata.py | Vanova/cakechat | c684bb72f119b7d6f57ab01cbabed049d5759ad3 | [
"Apache-2.0"
] | null | null | null | tools/prepare_rawdata.py | Vanova/cakechat | c684bb72f119b7d6f57ab01cbabed049d5759ad3 | [
"Apache-2.0"
] | null | null | null | tools/prepare_rawdata.py | Vanova/cakechat | c684bb72f119b7d6f57ab01cbabed049d5759ad3 | [
"Apache-2.0"
] | null | null | null | import json
def check_json(line):
try:
json.loads(line.strip()[:-1])
except ValueError:
print('Skipped invalid json object: %s' % line.strip())
in_file = '../data/raw_data/TrainingFinal.txt'
dialogs = []
cnt = 0
with open(in_file) as f:
buf = []
for line in f:
line = line.st... | 22.431818 | 66 | 0.553191 | 136 | 987 | 3.904412 | 0.375 | 0.052731 | 0.048964 | 0.067797 | 0.346516 | 0.244821 | 0.244821 | 0.244821 | 0.244821 | 0.244821 | 0 | 0.007205 | 0.296859 | 987 | 43 | 67 | 22.953488 | 0.757925 | 0.01925 | 0 | 0.25 | 0 | 0 | 0.206004 | 0.142857 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.0625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66893939f5f85fb9dfed9664ad9a582aa1327485 | 477 | py | Python | resources/migrations/0028_purpose_public.py | suutari-ai/respa | a944b1c13f855eaf5f883687b5fd025ece7c8176 | [
"MIT"
] | 1 | 2018-11-13T06:03:27.000Z | 2018-11-13T06:03:27.000Z | resources/migrations/0028_purpose_public.py | suutari-ai/respa | a944b1c13f855eaf5f883687b5fd025ece7c8176 | [
"MIT"
] | 10 | 2018-11-21T14:37:17.000Z | 2021-02-02T09:19:59.000Z | resources/migrations/0028_purpose_public.py | suutari-ai/respa | a944b1c13f855eaf5f883687b5fd025ece7c8176 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-07 12:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resources', '0027_comments_verbose_name'),
]
operations = [
migrations.AddFiel... | 22.714286 | 75 | 0.628931 | 51 | 477 | 5.686275 | 0.764706 | 0.075862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053371 | 0.253669 | 477 | 20 | 76 | 23.85 | 0.761236 | 0.136268 | 0 | 0 | 1 | 0 | 0.132029 | 0.06357 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
668aa3ea80f2f3ba4234aeaf88b68f8c1bd67453 | 379 | py | Python | python-structures-presentation/code/for_else.py | iz4vve-talks/misc-training | 4f676080e54539cbaf283e611278fdd5d7ef93c4 | [
"Apache-2.0"
] | null | null | null | python-structures-presentation/code/for_else.py | iz4vve-talks/misc-training | 4f676080e54539cbaf283e611278fdd5d7ef93c4 | [
"Apache-2.0"
] | null | null | null | python-structures-presentation/code/for_else.py | iz4vve-talks/misc-training | 4f676080e54539cbaf283e611278fdd5d7ef93c4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# START OMIT
for i in range(4):
if i == 2:
print("Skipping: %d" % i)
# the continue keyword lets you skip an iteration
continue
print(i)
else:
print("Done...")
print("\nBreak loop")
for i in range(4):
if i == 2:
print("break")
# the break b... | 19.947368 | 57 | 0.546174 | 57 | 379 | 3.631579 | 0.578947 | 0.038647 | 0.057971 | 0.10628 | 0.202899 | 0.202899 | 0.202899 | 0.202899 | 0.202899 | 0 | 0 | 0.015625 | 0.324538 | 379 | 19 | 58 | 19.947368 | 0.792969 | 0.319261 | 0 | 0.461538 | 0 | 0 | 0.141732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.461538 | 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 |
668b080d40e6304cf87d7c9c216182985aee7f83 | 722 | py | Python | open/core/betterself/views/activity_log_views.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 105 | 2019-06-01T08:34:47.000Z | 2022-03-15T11:48:36.000Z | open/core/betterself/views/activity_log_views.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 111 | 2019-06-04T15:34:14.000Z | 2022-03-12T21:03:20.000Z | open/core/betterself/views/activity_log_views.py | lawrendran/open | d136f694bafab647722c78be6f39ec79d589f774 | [
"MIT"
] | 26 | 2019-09-04T06:06:12.000Z | 2022-01-03T03:40:11.000Z | from open.core.betterself.models.activity_log import ActivityLog
from open.core.betterself.serializers.activity_log_serializers import (
ActivityLogReadSerializer,
ActivityLogCreateUpdateSerializer,
)
from open.core.betterself.views.mixins import (
BaseGetUpdateDeleteView,
BaseCreateListView,
)
class ... | 32.818182 | 71 | 0.839335 | 57 | 722 | 10.403509 | 0.421053 | 0.10118 | 0.060708 | 0.111298 | 0.219224 | 0.219224 | 0.219224 | 0 | 0 | 0 | 0 | 0 | 0.116343 | 722 | 21 | 72 | 34.380952 | 0.929467 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.647059 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
669810a94a4e97483b8d7e5fbaf42b74fcc2fbb2 | 760 | py | Python | display-youtube-subscriber-count.py | akadir/my-bitbar-plugins | c4173c4cd51bbcaed84344799f1505b484e46de4 | [
"MIT"
] | 2 | 2020-07-19T16:36:02.000Z | 2022-02-08T20:52:29.000Z | display-youtube-subscriber-count.py | akadir/my-bitbar-plugins | c4173c4cd51bbcaed84344799f1505b484e46de4 | [
"MIT"
] | null | null | null | display-youtube-subscriber-count.py | akadir/my-bitbar-plugins | c4173c4cd51bbcaed84344799f1505b484e46de4 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib2
from bs4 import BeautifulSoup
account_name = "besiktas"
url = "https://www.youtube.com/" + account_name
req = urllib2.Request(url)
req.add_header('User-agent', 'Mozilla/5.0\
(Windows NT 6.2; WOW64) AppleWebKit/537.11 (KHTML, like Gecko)\
... | 26.206897 | 149 | 0.688158 | 105 | 760 | 4.895238 | 0.704762 | 0.064202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051242 | 0.152632 | 760 | 28 | 150 | 27.142857 | 0.746894 | 0.063158 | 0 | 0 | 0 | 0 | 0.240113 | 0.081921 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.235294 | 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 |
669a2d205c17534f2add47f16d2982305bf71e76 | 2,232 | py | Python | Day-09_Smoke-Basin/tests/test_day_09.py | richardangell/advent-of-code-2021 | 48397e980fd6d4d43234df89e47bf22581c0611e | [
"BSD-3-Clause"
] | null | null | null | Day-09_Smoke-Basin/tests/test_day_09.py | richardangell/advent-of-code-2021 | 48397e980fd6d4d43234df89e47bf22581c0611e | [
"BSD-3-Clause"
] | null | null | null | Day-09_Smoke-Basin/tests/test_day_09.py | richardangell/advent-of-code-2021 | 48397e980fd6d4d43234df89e47bf22581c0611e | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
import pytest
import puzzle_1
import puzzle_2
class TestPuzzle1:
"""Tests for puzzle 1."""
def test_low_point_heights(self, input_1):
"""Test that the heights of low points are correct."""
assert puzzle_1.find_low_point_heights(input_1) == [1, 0, 5, 5]
def test_find_... | 24.8 | 76 | 0.340054 | 223 | 2,232 | 3.210762 | 0.255605 | 0.067039 | 0.055866 | 0.058659 | 0.198324 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 0.102021 | 0.534498 | 2,232 | 89 | 77 | 25.078652 | 0.587103 | 0.086022 | 0 | 0.188406 | 0 | 0 | 0.007448 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 1 | 0.057971 | false | 0 | 0.057971 | 0 | 0.144928 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
669eed2fff7dcb5ca0ea59e46fa09e406029071c | 346 | py | Python | Assignment1/plot.py | 3lLobo/ReinforcementLearningAndPlanning | 1468b389cdd1785d69cd70f7d2dd11b8c4e7f55f | [
"MIT"
] | null | null | null | Assignment1/plot.py | 3lLobo/ReinforcementLearningAndPlanning | 1468b389cdd1785d69cd70f7d2dd11b8c4e7f55f | [
"MIT"
] | null | null | null | Assignment1/plot.py | 3lLobo/ReinforcementLearningAndPlanning | 1468b389cdd1785d69cd70f7d2dd11b8c4e7f55f | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
labels = [0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000]
runs = 10
for n in range(runs):
data = pd.read_csv('./data/Vgrid_%d.csv' % n)
ax = sns.heatmap(data, robust=True)
plt.savefig('./plots/Valueheatmap%d... | 26.615385 | 63 | 0.66474 | 60 | 346 | 3.8 | 0.716667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121429 | 0.190751 | 346 | 13 | 64 | 26.615385 | 0.692857 | 0 | 0 | 0 | 0 | 0 | 0.129683 | 0.074928 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
669f3d8caa6d3cc60c08d07a80e341801fab153c | 364 | py | Python | apps/demo/migrations/0003_auto_20190810_1148.py | kagxin/toplist | eaee141e13989dd05752514c72ee41d1028ee116 | [
"MIT"
] | null | null | null | apps/demo/migrations/0003_auto_20190810_1148.py | kagxin/toplist | eaee141e13989dd05752514c72ee41d1028ee116 | [
"MIT"
] | null | null | null | apps/demo/migrations/0003_auto_20190810_1148.py | kagxin/toplist | eaee141e13989dd05752514c72ee41d1028ee116 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-08-10 03:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('demo', '0002_auto_20190718_0937'),
]
operations = [
migrations.RenameField(
model_name='article',
old_name='content',
... | 19.157895 | 47 | 0.585165 | 39 | 364 | 5.307692 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122047 | 0.302198 | 364 | 18 | 48 | 20.222222 | 0.692913 | 0.123626 | 0 | 0 | 1 | 0 | 0.154574 | 0.072555 | 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 |
66a11375e7883b3f70b78ea041028d0e99188c92 | 4,480 | py | Python | tests/brainview/test_util.py | dfsp-spirit/brainview | fdb45fdb694b098c99e7d4db4aaeb56bb5902144 | [
"MIT"
] | 3 | 2019-01-20T05:58:04.000Z | 2020-09-02T12:37:14.000Z | tests/brainview/test_util.py | dfsp-spirit/brainview | fdb45fdb694b098c99e7d4db4aaeb56bb5902144 | [
"MIT"
] | null | null | null | tests/brainview/test_util.py | dfsp-spirit/brainview | fdb45fdb694b098c99e7d4db4aaeb56bb5902144 | [
"MIT"
] | null | null | null | import os
import pytest
import numpy as np
import mayavi.mlab as mlab
import brainload as bl
import brainview as bv
import brainview.util as ut
import mayavi
try:
import configparser # Python 3
except:
import ConfigParser as configparser # Python 2
mlab.options.offscreen = True
THIS_DIR = os.path.dirname... | 40.727273 | 147 | 0.720536 | 694 | 4,480 | 4.373199 | 0.224784 | 0.03229 | 0.043493 | 0.050082 | 0.411203 | 0.378583 | 0.345964 | 0.294563 | 0.269522 | 0.256672 | 0 | 0.021254 | 0.159821 | 4,480 | 109 | 148 | 41.100917 | 0.785069 | 0.129241 | 0 | 0.1625 | 0 | 0 | 0.170606 | 0.011305 | 0 | 0 | 0 | 0 | 0.4125 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66a6e634b5ad4dafb16361b8d7853265a88a342d | 1,003 | py | Python | flaskr/__init__.py | tlplayer/Asymptomatix | 867e16e1d1a89eb5a4738008d2765bd2dd8c0732 | [
"MIT"
] | 2 | 2021-04-13T13:38:05.000Z | 2021-04-30T14:12:19.000Z | flaskr/__init__.py | tlplayer/Asymptomatix | 867e16e1d1a89eb5a4738008d2765bd2dd8c0732 | [
"MIT"
] | 6 | 2021-04-10T18:13:41.000Z | 2021-04-24T16:28:01.000Z | flaskr/__init__.py | tlplayer/Asymptomatix | 867e16e1d1a89eb5a4738008d2765bd2dd8c0732 | [
"MIT"
] | null | null | null | # This is where our imports go.
from alembic.config import Config
from flask import Flask
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import create_engine
from flask_googlemaps import GoogleMaps
from os import environ
# make key.py with API_KEY='your_api_string'
from flask... | 26.394737 | 122 | 0.782652 | 149 | 1,003 | 5.120805 | 0.469799 | 0.047182 | 0.04194 | 0.070773 | 0.078637 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005721 | 0.128614 | 1,003 | 37 | 123 | 27.108108 | 0.867277 | 0.201396 | 0 | 0 | 0 | 0 | 0.227673 | 0.153459 | 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 |
66b96ad79f20f84020a77abccab53874903d602a | 548 | py | Python | philo/forms/fields.py | melinath/philo | 61b73fe068172f02d6c47e2b5387161919ec9618 | [
"0BSD"
] | 2 | 2019-07-08T02:31:06.000Z | 2019-07-08T02:31:57.000Z | philo/forms/fields.py | kgodey/philo | c19bf577d44606d2b284e6058d633f4a174b61cc | [
"0BSD"
] | null | null | null | philo/forms/fields.py | kgodey/philo | c19bf577d44606d2b284e6058d633f4a174b61cc | [
"0BSD"
] | null | null | null | from django import forms
from django.core.exceptions import ValidationError
from django.utils import simplejson as json
from philo.validators import json_validator
__all__ = ('JSONFormField',)
class JSONFormField(forms.Field):
"""A form field which is validated by :func:`philo.validators.json_validator`."""
defa... | 26.095238 | 82 | 0.751825 | 73 | 548 | 5.534247 | 0.630137 | 0.074257 | 0.113861 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15146 | 548 | 21 | 83 | 26.095238 | 0.868817 | 0 | 0 | 0 | 0 | 0 | 0.07265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | 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 |
66caf9eccb21c2300d913af8b1520068f807c2fd | 1,233 | py | Python | nopwned/app/addon_pwned.py | freman/hass-nopwned | 1906bc7848e828d521be65b071659ae7f80bbe4d | [
"MIT"
] | 7 | 2021-03-08T12:16:43.000Z | 2021-05-27T12:27:45.000Z | nopwned/app/addon_pwned.py | freman/hass-nopwned | 1906bc7848e828d521be65b071659ae7f80bbe4d | [
"MIT"
] | 2 | 2021-03-10T08:14:14.000Z | 2021-03-18T14:04:25.000Z | nopwned/app/addon_pwned.py | freman/hass-nopwned | 1906bc7848e828d521be65b071659ae7f80bbe4d | [
"MIT"
] | null | null | null | """Helpers to check core security."""
from datetime import timedelta
from typing import List, Optional
from ...const import CoreState
from ...jobs.const import JobCondition, JobExecutionLimit
from ...jobs.decorator import Job
from ..const import ContextType, IssueType
from .base import CheckBase
class CheckAddonPwne... | 29.357143 | 75 | 0.673155 | 140 | 1,233 | 5.892857 | 0.464286 | 0.04 | 0.036364 | 0.08 | 0.094545 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002079 | 0.219789 | 1,233 | 41 | 76 | 30.073171 | 0.855509 | 0.138686 | 0 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.269231 | 0 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
66cc1543340fe6ba3323a76865129895a28ddb12 | 844 | py | Python | setup.py | andrey-git/waqi-async | 4f3c5098fbba9fbad857958185886c1bd04d2373 | [
"MIT"
] | 3 | 2018-01-25T13:37:48.000Z | 2021-11-15T10:34:01.000Z | setup.py | andrey-git/waqi-async | 4f3c5098fbba9fbad857958185886c1bd04d2373 | [
"MIT"
] | 1 | 2021-06-30T06:46:58.000Z | 2021-06-30T21:42:23.000Z | setup.py | andrey-git/waqi-async | 4f3c5098fbba9fbad857958185886c1bd04d2373 | [
"MIT"
] | 2 | 2018-10-31T14:55:34.000Z | 2020-10-19T15:32:19.000Z | """A setuptools based setup module."""
from setuptools import setup, find_packages
setup(
name='waqiasync',
version='1.0.0',
description='asyncio-friendly python API for aqicn.org',
long_description='asyncio-friendly python API for World Air Quality Index (http://aqicn.org). Requires Python 3.4+',
... | 33.76 | 120 | 0.643365 | 101 | 844 | 5.306931 | 0.594059 | 0.052239 | 0.139925 | 0.145522 | 0.141791 | 0.141791 | 0 | 0 | 0 | 0 | 0 | 0.01791 | 0.206161 | 844 | 25 | 121 | 33.76 | 0.78209 | 0.037915 | 0 | 0 | 0 | 0.045455 | 0.530359 | 0.026022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 |
66cc5d191da5cce97ce82ca51ce1fe10832442f5 | 1,228 | py | Python | app/recipe/views.py | bdlb77/recipe-app-api | 17cbb7e541612a4fa38d726c710c98ea761d9752 | [
"MIT"
] | null | null | null | app/recipe/views.py | bdlb77/recipe-app-api | 17cbb7e541612a4fa38d726c710c98ea761d9752 | [
"MIT"
] | null | null | null | app/recipe/views.py | bdlb77/recipe-app-api | 17cbb7e541612a4fa38d726c710c98ea761d9752 | [
"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 Tag, Ingredient
from recipe import serializers
# tag and ingredients are attributes of a recipe
class BaseRecipeAttrViewSet(viewsets... | 32.315789 | 77 | 0.729642 | 124 | 1,228 | 7.145161 | 0.5 | 0.027088 | 0.057562 | 0.042889 | 0.081264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189739 | 1,228 | 37 | 78 | 33.189189 | 0.890452 | 0.163681 | 0 | 0 | 0 | 0 | 0.004995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.25 | 0 | 0.9 | 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 |
66ec2e62736c07d6428ce5a1232d650c5ec8a698 | 258 | py | Python | quad9_plot.py | lindsayad/python | 4b63a8b02de6a7c0caa7bb770f3f22366e066a7f | [
"MIT"
] | null | null | null | quad9_plot.py | lindsayad/python | 4b63a8b02de6a7c0caa7bb770f3f22366e066a7f | [
"MIT"
] | null | null | null | quad9_plot.py | lindsayad/python | 4b63a8b02de6a7c0caa7bb770f3f22366e066a7f | [
"MIT"
] | null | null | null | import yt
ds = yt.load("/home/lindsayad/projects/moose/modules/navier_stokes/tests/ins/lid_driven/gold/lid_driven_out.e", step=-1)
slc = yt.SlicePlot(ds, 'z', ('connect1', 'vel_y'))
slc.set_log(('connect1','vel_y'), False)
slc.set_width((1, 1))
slc.save()
| 28.666667 | 120 | 0.709302 | 45 | 258 | 3.888889 | 0.688889 | 0.102857 | 0.137143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020921 | 0.073643 | 258 | 8 | 121 | 32.25 | 0.711297 | 0 | 0 | 0 | 0 | 0.166667 | 0.472868 | 0.368217 | 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 |
66f1381e3fd020e4ab198b6b004b7b35ce1e1c23 | 811 | py | Python | bonus2/collateral/PYLINT_EX/ncclient2.py | ksannedhi/pyplus_course | fc3499f2dfef472dc49fe6caddf2e6e2be160f4b | [
"Apache-2.0"
] | 39 | 2019-03-03T18:16:55.000Z | 2022-02-17T17:05:18.000Z | bonus2/collateral/PYLINT_EX/ncclient2.py | ksannedhi/pyplus_course | fc3499f2dfef472dc49fe6caddf2e6e2be160f4b | [
"Apache-2.0"
] | 1 | 2020-06-17T22:39:28.000Z | 2020-06-17T22:39:28.000Z | bonus2/collateral/PYLINT_EX/ncclient2.py | ksannedhi/pyplus_course | fc3499f2dfef472dc49fe6caddf2e6e2be160f4b | [
"Apache-2.0"
] | 77 | 2019-01-25T10:41:23.000Z | 2022-03-14T21:35:59.000Z | import ipdb
from ncclient import manager
from getpass import getpass
from ncclient.xml_ import new_ele
conn = manager.connect(
host="srx2.lasthop.io",
username="pyclass",
password=getpass(),
device_params={"name": "junos"},
hostkey_verify=False,
allow_agent=False,
look_for_keys=False,
p... | 20.794872 | 43 | 0.699137 | 110 | 811 | 5 | 0.572727 | 0.045455 | 0.072727 | 0.076364 | 0.129091 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0.008633 | 0.143033 | 811 | 38 | 44 | 21.342105 | 0.782734 | 0.02836 | 0 | 0 | 0 | 0 | 0.273537 | 0.030534 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
dd04754152e89051f6b7d151e1fcf397f26faac7 | 1,892 | py | Python | registrations/migrations/0001_initial.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | registrations/migrations/0001_initial.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | registrations/migrations/0001_initial.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-02-07 21:09
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth',... | 41.130435 | 172 | 0.61945 | 204 | 1,892 | 5.534314 | 0.401961 | 0.04783 | 0.037201 | 0.058459 | 0.435784 | 0.345438 | 0.345438 | 0.279894 | 0.240921 | 0.240921 | 0 | 0.02477 | 0.253171 | 1,892 | 45 | 173 | 42.044444 | 0.774239 | 0.035941 | 0 | 0.324324 | 1 | 0 | 0.113674 | 0.01922 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.108108 | 0 | 0.216216 | 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 |
dd128b9fb8f5f08b16357f638727d10881409e18 | 518 | py | Python | listeler.py | bekirglr/Python_Temelleri | 47354caf7bc598e92e7ff6bf0cd97d5ddc298139 | [
"MIT"
] | null | null | null | listeler.py | bekirglr/Python_Temelleri | 47354caf7bc598e92e7ff6bf0cd97d5ddc298139 | [
"MIT"
] | null | null | null | listeler.py | bekirglr/Python_Temelleri | 47354caf7bc598e92e7ff6bf0cd97d5ddc298139 | [
"MIT"
] | null | null | null | meyveler = ["Alma","Armut","Üzüm","Çilek","Karpuz","Muz"]
print(meyveler) #bunu listeye dökmek için;
print(meyveler[0])
print(meyveler[1])
print(meyveler[2])
print(meyveler[3]) #python da dizileri saymak sıfırdan başlanır.
#dizide kaç tane eleman bulunduğunu öğrenmek içinde "len" komutunu kullanırız.
print(len(meyv... | 24.666667 | 140 | 0.764479 | 66 | 518 | 6 | 0.742424 | 0.19697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01087 | 0.111969 | 518 | 20 | 141 | 25.9 | 0.85 | 0.561776 | 0 | 0.222222 | 0 | 0 | 0.140909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.777778 | 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 |
dd14594159474c30d9b0a92fe2ae4241c433f07a | 5,557 | py | Python | lldb/test/API/symbol_ondemand/shared_library/TestSharedLibOnDemand.py | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | lldb/test/API/symbol_ondemand/shared_library/TestSharedLibOnDemand.py | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | lldb/test/API/symbol_ondemand/shared_library/TestSharedLibOnDemand.py | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | """Test that types defined in shared libraries work correctly."""
import lldb
import unittest2
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
class SharedLibTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
def setUp(self... | 34.515528 | 88 | 0.636315 | 636 | 5,557 | 5.377358 | 0.251572 | 0.032164 | 0.022222 | 0.045614 | 0.64386 | 0.615497 | 0.615497 | 0.615497 | 0.615497 | 0.615497 | 0 | 0.007637 | 0.26957 | 5,557 | 160 | 89 | 34.73125 | 0.834935 | 0.130826 | 0 | 0.517857 | 0 | 0 | 0.11289 | 0.004574 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.044643 | false | 0 | 0.044643 | 0 | 0.107143 | 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 |
dd18a634df9a2ce91221fc6dd0f915b3b2cf32de | 724 | py | Python | backend/SIFUser/migrations/0006_auto_20200229_1420.py | henrikhorluck/tdt4140-washlists | a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa | [
"MIT"
] | null | null | null | backend/SIFUser/migrations/0006_auto_20200229_1420.py | henrikhorluck/tdt4140-washlists | a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa | [
"MIT"
] | 2 | 2020-05-02T18:17:44.000Z | 2020-05-02T18:18:02.000Z | backend/SIFUser/migrations/0006_auto_20200229_1420.py | henrikhorluck/tdt4140-washlists | a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-02-29 14:20
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("Dormroom", "0004_auto_20200229_1420"),
("SIFUser", "0005_merge_20200228_1005"),
]
operations = [
mi... | 25.857143 | 61 | 0.562155 | 73 | 724 | 5.424658 | 0.69863 | 0.060606 | 0.070707 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097308 | 0.332873 | 724 | 27 | 62 | 26.814815 | 0.722567 | 0.062155 | 0 | 0 | 1 | 0 | 0.186115 | 0.069424 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.238095 | 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 |
dd193e1bcd6c00ed146680a6f00109bc4032ee50 | 1,631 | py | Python | services/showcase/api/db/models/sandbox.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | null | null | null | services/showcase/api/db/models/sandbox.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | null | null | null | services/showcase/api/db/models/sandbox.py | Open-Earth-Foundation/traction | 908b555a7f408a88541b7692d3730e37a297c919 | [
"Apache-2.0"
] | null | null | null | import uuid
from datetime import datetime
from typing import Optional, List
import pydantic
from sqlalchemy import Column, JSON
from sqlmodel import Field, Relationship
from api.db.models.base import BaseModel, BaseTable
class SchemaDef(pydantic.BaseModel):
id: Optional[str] = None
name: Optional[str] = Non... | 28.614035 | 88 | 0.724709 | 191 | 1,631 | 6.104712 | 0.303665 | 0.084906 | 0.102916 | 0.06175 | 0.388508 | 0.388508 | 0.285592 | 0.227273 | 0.227273 | 0.227273 | 0 | 0.006632 | 0.167995 | 1,631 | 56 | 89 | 29.125 | 0.852616 | 0.01962 | 0 | 0.275 | 0 | 0 | 0.025078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.175 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd220f7802a7a1bb9983eed67099d77e8c951e9b | 373 | py | Python | points/migrations/0007_alter_spend_receipt.py | JXIong15/fetch-points | da3c2e295c9487a48fe911ea2cdc2c05df40602e | [
"MIT"
] | null | null | null | points/migrations/0007_alter_spend_receipt.py | JXIong15/fetch-points | da3c2e295c9487a48fe911ea2cdc2c05df40602e | [
"MIT"
] | 1 | 2022-01-15T16:22:30.000Z | 2022-01-15T16:22:30.000Z | points/migrations/0007_alter_spend_receipt.py | JXIong15/fetch-points | da3c2e295c9487a48fe911ea2cdc2c05df40602e | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-13 17:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('points', '0006_alter_spend_receipt'),
]
operations = [
migrations.AlterField(
model_name='spend',
name='receipt',
... | 19.631579 | 47 | 0.587131 | 39 | 373 | 5.512821 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072519 | 0.297587 | 373 | 18 | 48 | 20.722222 | 0.748092 | 0.120643 | 0 | 0 | 1 | 0 | 0.128834 | 0.07362 | 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 |
dd23e915478867c81bfe924c46b02215a3c2c743 | 2,431 | py | Python | src/cogs/owner/owner.py | m1ten/sentry-py | d89121ad910215ad15c430da6ba456967fbb4287 | [
"Apache-2.0"
] | null | null | null | src/cogs/owner/owner.py | m1ten/sentry-py | d89121ad910215ad15c430da6ba456967fbb4287 | [
"Apache-2.0"
] | null | null | null | src/cogs/owner/owner.py | m1ten/sentry-py | d89121ad910215ad15c430da6ba456967fbb4287 | [
"Apache-2.0"
] | null | null | null | import discord
from discord import app_commands
from discord.ext import commands
class owner(commands.Cog):
def __init__(self, bot: commands.Bot) -> None:
self.bot = bot
@app_commands.command(name='eval', description='evaluate')
async def eval(self, interaction: discord.Interaction, code: str) ->... | 46.75 | 112 | 0.63513 | 286 | 2,431 | 5.300699 | 0.230769 | 0.137203 | 0.14248 | 0.166227 | 0.567282 | 0.567282 | 0.506596 | 0.480211 | 0.480211 | 0.343668 | 0 | 0 | 0.260387 | 2,431 | 51 | 113 | 47.666667 | 0.843159 | 0.020568 | 0 | 0.375 | 0 | 0 | 0.114009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.1 | 0 | 0.15 | 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 |
dd41639dd327f98c0dec6112a93f44f0363b59f0 | 4,664 | py | Python | tests/run_test_Recommenders.py | damicoedoardo/NNMF | 69fff4848b3243a2d3347bec3e1c9a01ae40e51a | [
"MIT"
] | 2 | 2020-12-11T12:46:00.000Z | 2021-08-17T13:29:41.000Z | tests/run_test_Recommenders.py | damicoedoardo/NNMF | 69fff4848b3243a2d3347bec3e1c9a01ae40e51a | [
"MIT"
] | null | null | null | tests/run_test_Recommenders.py | damicoedoardo/NNMF | 69fff4848b3243a2d3347bec3e1c9a01ae40e51a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 22/11/2018
@author: XXX
"""
import unittest
import os, shutil
from RecSysFramework.Recommender.NonPersonalized import TopPop, Random, GlobalEffects
from RecSysFramework.Recommender.KNN import UserKNNCF
from RecSysFramework.Recommender.KNN import ItemKNNC... | 33.797101 | 94 | 0.785163 | 484 | 4,664 | 7.311983 | 0.247934 | 0.135632 | 0.094942 | 0.156824 | 0.476406 | 0.392201 | 0.369031 | 0.369031 | 0.369031 | 0.103984 | 0 | 0.007496 | 0.141938 | 4,664 | 137 | 95 | 34.043796 | 0.876812 | 0.016938 | 0 | 0.235955 | 0 | 0 | 0.009178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.191011 | false | 0 | 0.191011 | 0 | 0.573034 | 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 |
dd4f0cde7e8f86d6468e247cfa5426cb4374118b | 1,845 | py | Python | tests/test_populate.py | bio2bel/drugbank | 18c7ffd47e7016fdbc2d18ac23eb8a1893900caa | [
"MIT"
] | 6 | 2019-02-08T04:11:30.000Z | 2022-01-02T22:32:15.000Z | tests/test_populate.py | bio2bel/drugbank | 18c7ffd47e7016fdbc2d18ac23eb8a1893900caa | [
"MIT"
] | 5 | 2018-04-25T17:32:46.000Z | 2019-08-10T11:43:56.000Z | tests/test_populate.py | bio2bel/drugbank | 18c7ffd47e7016fdbc2d18ac23eb8a1893900caa | [
"MIT"
] | 6 | 2018-11-22T11:38:55.000Z | 2021-12-17T04:43:27.000Z | # -*- coding: utf-8 -*-
"""Suites for testing the populated database."""
from pybel import BELGraph
from pybel.constants import CITATION, CITATION_REFERENCE, CITATION_TYPE, CITATION_TYPE_PUBMED
from tests.constants import PopulatedTemporaryCacheClassMixin
class TestPopulation(PopulatedTemporaryCacheClassMixin):
... | 35.480769 | 93 | 0.700813 | 211 | 1,845 | 5.924171 | 0.364929 | 0.096 | 0.0704 | 0.0336 | 0.0672 | 0.0672 | 0.0672 | 0.0672 | 0 | 0 | 0 | 0.028782 | 0.190244 | 1,845 | 51 | 94 | 36.176471 | 0.807898 | 0.108401 | 0 | 0.066667 | 0 | 0 | 0.028413 | 0 | 0 | 0 | 0 | 0 | 0.466667 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.233333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd5c63465472d64eb1fadd5822e4b7279402b8a5 | 4,115 | py | Python | allauth/socialaccount/providers/noa/views.py | Supratix/django-allauth | 1f41094386b619f3e904787e3a64fa4f89899121 | [
"MIT"
] | null | null | null | allauth/socialaccount/providers/noa/views.py | Supratix/django-allauth | 1f41094386b619f3e904787e3a64fa4f89899121 | [
"MIT"
] | null | null | null | allauth/socialaccount/providers/noa/views.py | Supratix/django-allauth | 1f41094386b619f3e904787e3a64fa4f89899121 | [
"MIT"
] | null | null | null | import requests
import jwt
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
from .provider import NoaProvider
# {"issuer":"https://noaidentitydev.azurewebsites.net/authorization",
# "jwks_uri":"https://noaidentitydev.azurewebsites.net/autho... | 52.088608 | 219 | 0.738761 | 387 | 4,115 | 7.609819 | 0.379845 | 0.083871 | 0.141256 | 0.154499 | 0.283871 | 0.251273 | 0.232598 | 0.051613 | 0 | 0 | 0 | 0.024093 | 0.122479 | 4,115 | 78 | 220 | 52.75641 | 0.791471 | 0.711543 | 0 | 0 | 0 | 0 | 0.184926 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.227273 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
dd5dc05e9b061243d5208fdd28f6adb178dd0449 | 515 | py | Python | lesson01/monkey/t1.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson01/monkey/t1.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson01/monkey/t1.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null |
x1 = 1.5
x2 = 3
x3 = "123"
x4 = True
x5 = False
##################################################
xx1 = int(x1)
xx3 = int(x3)
xx4 = int(x4)
xx5 = int(x5)
print(type(xx1))
print(type(xx3))
print(type(xx4), xx4)
print(type(xx5), xx5)
xx2 = float(x2)
print(type(xx2), xx2)
# x3 = "123"
xxx3 = float(x3)
print(ty... | 10.957447 | 50 | 0.541748 | 82 | 515 | 3.402439 | 0.329268 | 0.290323 | 0.078853 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150588 | 0.174757 | 515 | 46 | 51 | 11.195652 | 0.505882 | 0.03301 | 0 | 0 | 0 | 0 | 0.027149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 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 |
dd6db358b0dc8ed5095a8512d11117d9d518dbe9 | 1,305 | py | Python | web/ctf_gameserver/web/scoring/decorators.py | exokortex/kaindorfctf-2018-ctf-gameserver | b53df85a90a00d107ddf0f54dcb3f6c9f816e7d5 | [
"0BSD"
] | null | null | null | web/ctf_gameserver/web/scoring/decorators.py | exokortex/kaindorfctf-2018-ctf-gameserver | b53df85a90a00d107ddf0f54dcb3f6c9f816e7d5 | [
"0BSD"
] | null | null | null | web/ctf_gameserver/web/scoring/decorators.py | exokortex/kaindorfctf-2018-ctf-gameserver | b53df85a90a00d107ddf0f54dcb3f6c9f816e7d5 | [
"0BSD"
] | null | null | null | from functools import wraps
from django.shortcuts import redirect
from django.conf import settings
from django.utils.translation import ugettext as _
from django.contrib import messages
from .models import GameControl
def registration_open_required(view):
"""
View decorator which prohibts access to the deco... | 29 | 109 | 0.698851 | 161 | 1,305 | 5.571429 | 0.391304 | 0.044593 | 0.075808 | 0.055741 | 0.363434 | 0.363434 | 0.363434 | 0.289855 | 0.289855 | 0.289855 | 0 | 0 | 0.216858 | 1,305 | 44 | 110 | 29.659091 | 0.877691 | 0.188506 | 0 | 0.434783 | 0 | 0 | 0.081373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.26087 | 0 | 0.695652 | 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 |
dd6f5ceb03badef6709c124c5cc741c55cc75590 | 1,536 | py | Python | python/code_troopers/Runner.py | tigeral/polygon | bd87c0533b82980ab44f17d2f62b9b1ab55f5eb3 | [
"Unlicense"
] | null | null | null | python/code_troopers/Runner.py | tigeral/polygon | bd87c0533b82980ab44f17d2f62b9b1ab55f5eb3 | [
"Unlicense"
] | null | null | null | python/code_troopers/Runner.py | tigeral/polygon | bd87c0533b82980ab44f17d2f62b9b1ab55f5eb3 | [
"Unlicense"
] | null | null | null | import sys
from MyStrategy import MyStrategy
from RemoteProcessClient import RemoteProcessClient
from model.Move import Move
from time import sleep
class Runner:
def __init__(self):
sleep(4)
if sys.argv.__len__() == 4:
self.remote_process_client = RemoteProcessClient(sys.argv[1], int(s... | 32.680851 | 112 | 0.634766 | 167 | 1,536 | 5.556886 | 0.39521 | 0.096983 | 0.164871 | 0.22306 | 0.28556 | 0.06681 | 0 | 0 | 0 | 0 | 0 | 0.023831 | 0.289714 | 1,536 | 46 | 113 | 33.391304 | 0.826764 | 0.027995 | 0 | 0 | 0 | 0 | 0.016756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 0 | 0.228571 | 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 |
dd73b21e33ec3b3804c9addce5268149fcb500fb | 1,289 | py | Python | tweets/migrations/0004_auto_20201201_2002.py | bubaic/twitt | 4c4d92e80f4707b5e5f181ef5f02493476610d27 | [
"MIT"
] | null | null | null | tweets/migrations/0004_auto_20201201_2002.py | bubaic/twitt | 4c4d92e80f4707b5e5f181ef5f02493476610d27 | [
"MIT"
] | null | null | null | tweets/migrations/0004_auto_20201201_2002.py | bubaic/twitt | 4c4d92e80f4707b5e5f181ef5f02493476610d27 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2020-12-01 14:32
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),
('tweets', '0003_auto_2020... | 35.805556 | 138 | 0.628394 | 138 | 1,289 | 5.702899 | 0.456522 | 0.040661 | 0.053367 | 0.083863 | 0.279543 | 0.223634 | 0.139771 | 0.139771 | 0.139771 | 0.139771 | 0 | 0.031992 | 0.248254 | 1,289 | 35 | 139 | 36.828571 | 0.780186 | 0.034911 | 0 | 0.172414 | 1 | 0 | 0.098229 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 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 |
dd7a20ec04d15636af88d596c42227092b507f2f | 450 | py | Python | 1701-1800/1712-Binary Subarrays With Sum/1712-Binary Subarrays With Sum.py | jiadaizhao/LintCode | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 1701-1800/1712-Binary Subarrays With Sum/1712-Binary Subarrays With Sum.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 1701-1800/1712-Binary Subarrays With Sum/1712-Binary Subarrays With Sum.py | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution:
"""
@param A: an array
@param S: the sum
@return: the number of non-empty subarrays
"""
def numSubarraysWithSum(self, A, S):
# Write your code here.
table = [0] * (len(A) + 1)
table[0] = 1
curr = count = 0
for a in A:
curr += a
... | 23.684211 | 46 | 0.444444 | 55 | 450 | 3.636364 | 0.563636 | 0.06 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.444444 | 450 | 18 | 47 | 25 | 0.776 | 0.226667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 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 |
dd88204b9d1721d6664aa47e14680dd86f9525dc | 1,389 | py | Python | 1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/02_Conditional-Statements/00.Book-Exercise-3.1-08-Metric-Converter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/02_Conditional-Statements/00.Book-Exercise-3.1-08-Metric-Converter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/02_Conditional-Statements/00.Book-Exercise-3.1-08-Metric-Converter.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | # конвертор за мерни единици
# Да се напише програма, която преобразува разстояние между следните 8 мерни единици: m, mm, cm, mi, in, km, ft, yd. Използвайте съответствията от таблицата по-долу:
amount = float(input())
unit_input = input().lower()
unit_output = input().lower()
if unit_input == 'mm':
amount = amo... | 26.207547 | 165 | 0.647948 | 196 | 1,389 | 4.489796 | 0.260204 | 0.204545 | 0.088636 | 0.045455 | 0.568182 | 0.518182 | 0.402273 | 0.125 | 0.125 | 0.125 | 0 | 0.133274 | 0.195104 | 1,389 | 52 | 166 | 26.711538 | 0.653846 | 0.341253 | 0 | 0 | 0 | 0 | 0.031111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.03125 | 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 |
dd8e8288b6e4dc414ec827c745d3e9ebcfdf6102 | 1,031 | py | Python | autobuyfast/cars/migrations/0045_auto_20210908_0458.py | dark-codr/autouyfast | d0fa2dd6fc10a4a5497da71466916302ea8655f9 | [
"MIT"
] | null | null | null | autobuyfast/cars/migrations/0045_auto_20210908_0458.py | dark-codr/autouyfast | d0fa2dd6fc10a4a5497da71466916302ea8655f9 | [
"MIT"
] | 1 | 2022-03-02T14:56:29.000Z | 2022-03-02T14:56:29.000Z | autobuyfast/cars/migrations/0045_auto_20210908_0458.py | dark-codr/autouyfast | d0fa2dd6fc10a4a5497da71466916302ea8655f9 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-09-08 03:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cars', '0044_carcompare'),
]
operations = [
migrations.AlterField(
model_name='carcompare',
... | 34.366667 | 151 | 0.638215 | 119 | 1,031 | 5.394958 | 0.394958 | 0.062305 | 0.087227 | 0.137072 | 0.52648 | 0.52648 | 0.52648 | 0.454829 | 0.454829 | 0.454829 | 0 | 0.02904 | 0.231814 | 1,031 | 29 | 152 | 35.551724 | 0.781566 | 0.044617 | 0 | 0.391304 | 1 | 0 | 0.139369 | 0 | 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 |
dd9309b709a6b09f34b5cba4052f71e67e6fc1f8 | 1,984 | py | Python | mbq/client/tests/test_storage.py | managedbyq/mbq.client | 9009a691bf84e63d466cbd44353863716c15f48d | [
"Apache-2.0"
] | 1 | 2017-08-30T19:40:38.000Z | 2017-08-30T19:40:38.000Z | mbq/client/tests/test_storage.py | managedbyq/mbq.client | 9009a691bf84e63d466cbd44353863716c15f48d | [
"Apache-2.0"
] | 14 | 2017-08-07T22:21:41.000Z | 2019-07-19T16:09:13.000Z | mbq/client/tests/test_storage.py | managedbyq/mbq.client | 9009a691bf84e63d466cbd44353863716c15f48d | [
"Apache-2.0"
] | null | null | null | import os
from tempfile import NamedTemporaryFile
from unittest import TestCase
from mbq.client.storage import FileStorage
class FileStorageTestCase(TestCase):
def setUp(self):
self.test_filename = NamedTemporaryFile(delete=False).name
self.storage = FileStorage(self.test_filename)
def tear... | 38.153846 | 69 | 0.655746 | 254 | 1,984 | 5.102362 | 0.311024 | 0.14429 | 0.12963 | 0.140432 | 0.569444 | 0.501543 | 0.41358 | 0.311728 | 0.279321 | 0.209877 | 0 | 0.015052 | 0.229839 | 1,984 | 51 | 70 | 38.901961 | 0.833115 | 0.274698 | 0 | 0.407407 | 0 | 0 | 0.101124 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 1 | 0.111111 | false | 0 | 0.148148 | 0 | 0.296296 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dd9668acdac65aa0a3adbd3d4e6c2ec0a55b8772 | 664 | py | Python | core/serializers/address.py | decosterkevin/foodtrack-back | c459b7f30854e6d114ffb0ff04b1ae7f36b73cd8 | [
"MIT"
] | null | null | null | core/serializers/address.py | decosterkevin/foodtrack-back | c459b7f30854e6d114ffb0ff04b1ae7f36b73cd8 | [
"MIT"
] | 4 | 2021-04-08T21:59:06.000Z | 2021-06-10T20:42:55.000Z | core/serializers/address.py | decosterkevin/foodtrack-back | c459b7f30854e6d114ffb0ff04b1ae7f36b73cd8 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from core.models import Exploitation, Address
from drf_extra_fields.geo_fields import PointField
class AddressSerializer(serializers.ModelSerializer):
# lat = PointSerializer(source='point.y', read_only=True)
lat = PointField(source='point.y', read_only=True)
lng = P... | 33.2 | 100 | 0.710843 | 74 | 664 | 6.256757 | 0.527027 | 0.071274 | 0.077754 | 0.069114 | 0.103672 | 0.103672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168675 | 664 | 19 | 101 | 34.947368 | 0.838768 | 0.082831 | 0 | 0.153846 | 0 | 0 | 0.143564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.692308 | 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 |
dd9d46d47e4254d726bfbb521a4f94826b275c11 | 850 | py | Python | py/scrap_heroes/test/test_utils.py | BenjaminCbr/cinoisp-storm | 94151e8f741fba8a24bd3e5fdea41d79b39bc47d | [
"Apache-2.0"
] | null | null | null | py/scrap_heroes/test/test_utils.py | BenjaminCbr/cinoisp-storm | 94151e8f741fba8a24bd3e5fdea41d79b39bc47d | [
"Apache-2.0"
] | null | null | null | py/scrap_heroes/test/test_utils.py | BenjaminCbr/cinoisp-storm | 94151e8f741fba8a24bd3e5fdea41d79b39bc47d | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.test import TestCase
from ..utils import partial_dict_equals
class DictUtilsTest(TestCase):
def test_partial_dict_equals__regular_case(self):
small_dict = {
"a": 1,
"b": [2, 3, 6],
"d": False
}
big_d... | 22.972973 | 67 | 0.482353 | 96 | 850 | 3.947917 | 0.354167 | 0.145119 | 0.224274 | 0.042216 | 0.591029 | 0.46438 | 0.46438 | 0.290237 | 0.17942 | 0.17942 | 0 | 0.04466 | 0.394118 | 850 | 36 | 68 | 23.611111 | 0.691262 | 0 | 0 | 0.533333 | 0 | 0 | 0.025882 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.2 | 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 |
dda2015229877992a8b7f90a43cf2fb79dc9edc5 | 2,096 | py | Python | chat_app/management/commands/load_dummy_data.py | PS-Division-BITS/Chat | 20ebe6fe6c80b25992ef5f592104e40b571d7d34 | [
"MIT"
] | 1 | 2021-07-01T17:09:26.000Z | 2021-07-01T17:09:26.000Z | chat_app/management/commands/load_dummy_data.py | PS-Division-BITS/Chat | 20ebe6fe6c80b25992ef5f592104e40b571d7d34 | [
"MIT"
] | 24 | 2020-04-17T13:07:11.000Z | 2022-01-22T11:32:52.000Z | chat_app/management/commands/load_dummy_data.py | PS-Division-BITS/Chat | 20ebe6fe6c80b25992ef5f592104e40b571d7d34 | [
"MIT"
] | 1 | 2020-04-12T20:05:26.000Z | 2020-04-12T20:05:26.000Z | from django.core.management.base import BaseCommand
from django.contrib.auth.models import User
from django.utils.crypto import get_random_string
from chat_app.models import *
class Command(BaseCommand):
def _create(self):
# creating user and super-user
User.objects.all().delete()
print('... | 37.428571 | 87 | 0.628817 | 263 | 2,096 | 4.942966 | 0.319392 | 0.11 | 0.057692 | 0.064615 | 0.386923 | 0.193846 | 0.050769 | 0 | 0 | 0 | 0 | 0.022222 | 0.227099 | 2,096 | 55 | 88 | 38.109091 | 0.780247 | 0.042939 | 0 | 0.121951 | 0 | 0 | 0.151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0.146341 | 0.097561 | 0 | 0.170732 | 0.317073 | 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 |
06b5d3c0d4efeb906f0ecb8daadb541f135cdf91 | 12,155 | py | Python | server/contests/auth/test_core.py | jauhararifin/ugrade | c5bc0ce3920534cf289c739ffe8b83ceed9f52e8 | [
"MIT"
] | 15 | 2019-02-27T19:28:23.000Z | 2019-07-20T17:54:46.000Z | server/contests/auth/test_core.py | jauhararifin/ugrade | c5bc0ce3920534cf289c739ffe8b83ceed9f52e8 | [
"MIT"
] | 9 | 2020-09-04T18:30:56.000Z | 2022-03-25T18:41:11.000Z | server/contests/auth/test_core.py | jauhararifin/ugrade | c5bc0ce3920534cf289c739ffe8b83ceed9f52e8 | [
"MIT"
] | 2 | 2019-03-29T14:15:47.000Z | 2019-04-12T06:08:11.000Z | import pytest
import jwt
import bcrypt
from mixer.backend.django import mixer
from django.test import TestCase
from django.core.exceptions import ValidationError
from ugrade import settings
from contests.models import User
from contests.exceptions import NoSuchUserError, \
NoSuchContestError, \
Authentication... | 34.62963 | 111 | 0.604689 | 1,342 | 12,155 | 5.30924 | 0.117735 | 0.054737 | 0.065123 | 0.043228 | 0.692491 | 0.624561 | 0.561404 | 0.491228 | 0.448421 | 0.37193 | 0 | 0.038795 | 0.27898 | 12,155 | 350 | 112 | 34.728571 | 0.77419 | 0.005594 | 0 | 0.524476 | 0 | 0 | 0.144678 | 0.018292 | 0 | 0 | 0 | 0 | 0.087413 | 1 | 0.111888 | false | 0.153846 | 0.034965 | 0 | 0.164336 | 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 |
06b75cbc0e63eee40e33f2aaaa6317f3e33a262e | 460 | py | Python | RecoHI/HiEgammaAlgos/python/HiIsolationCommonParameters_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoHI/HiEgammaAlgos/python/HiIsolationCommonParameters_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoHI/HiEgammaAlgos/python/HiIsolationCommonParameters_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
isolationInputParameters = cms.PSet(
barrelBasicCluster = cms.InputTag("islandBasicClusters","islandBarrelBasicClusters"),
endcapBasicCluster = cms.InputTag("islandBasicClusters","islandEndcapBasicClusters"),
horeco = cms.InputTag("horeco"),
hfreco = cms.InputTag("h... | 38.333333 | 88 | 0.752174 | 39 | 460 | 8.871795 | 0.538462 | 0.222543 | 0.17341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117391 | 460 | 11 | 89 | 41.818182 | 0.852217 | 0 | 0 | 0 | 0 | 0 | 0.293478 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
06cb0d10b9c82c443e55ada7bc9a0727b56e9744 | 5,172 | py | Python | test/routes/test_collections.py | tiredpixel/pikka-bird-server-py | b204761acbc9d20b909f6504b64e6eee4af0e5bc | [
"MIT"
] | 1 | 2016-02-23T21:44:43.000Z | 2016-02-23T21:44:43.000Z | test/routes/test_collections.py | tiredpixel/pikka-bird-server-py | b204761acbc9d20b909f6504b64e6eee4af0e5bc | [
"MIT"
] | 4 | 2015-05-28T19:17:35.000Z | 2020-01-29T14:42:45.000Z | test/routes/test_collections.py | tiredpixel/pikka-bird-server-py | b204761acbc9d20b909f6504b64e6eee4af0e5bc | [
"MIT"
] | null | null | null | import datetime
from flask import json
import msgpack
import pikka_bird_server
from pikka_bird_server.models.collection import Collection
from pikka_bird_server.models.machine import Machine
from pikka_bird_server.models.report import Report
from pikka_bird_server.models.service import Service
class TestCollections:... | 37.208633 | 91 | 0.595128 | 564 | 5,172 | 5.319149 | 0.18617 | 0.066667 | 0.051333 | 0.056667 | 0.596667 | 0.524333 | 0.501 | 0.458667 | 0.443 | 0.412333 | 0 | 0.037309 | 0.290023 | 5,172 | 138 | 92 | 37.478261 | 0.779684 | 0 | 0 | 0.522124 | 0 | 0 | 0.104795 | 0.013148 | 0 | 0 | 0 | 0 | 0.442478 | 1 | 0.061947 | false | 0 | 0.070796 | 0 | 0.141593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06d4b9e9fa3bb9985baac1fb9a86ba7d9b26dc48 | 4,440 | py | Python | biosys/apps/main/tests/api/test_auth.py | florianm/biosys | 934d06ed805b0734f3cb9a00feec6cd81a94e512 | [
"Apache-2.0"
] | 1 | 2020-08-24T02:44:36.000Z | 2020-08-24T02:44:36.000Z | biosys/apps/main/tests/api/test_auth.py | florianm/biosys | 934d06ed805b0734f3cb9a00feec6cd81a94e512 | [
"Apache-2.0"
] | 19 | 2016-09-29T01:03:18.000Z | 2021-07-02T06:54:05.000Z | biosys/apps/main/tests/api/test_auth.py | florianm/biosys | 934d06ed805b0734f3cb9a00feec6cd81a94e512 | [
"Apache-2.0"
] | 5 | 2018-12-20T05:36:28.000Z | 2021-09-29T00:44:31.000Z | from django.conf import settings
from django.urls import reverse
from django.test import override_settings
from rest_framework import status
from rest_framework.test import APIClient
from freezegun import freeze_time
from main.tests.api import helpers
class TestAuth(helpers.BaseUserTestCase):
@override_settings... | 41.111111 | 111 | 0.635586 | 528 | 4,440 | 5.170455 | 0.268939 | 0.038095 | 0.035897 | 0.051282 | 0.555678 | 0.486081 | 0.478022 | 0.46044 | 0.431136 | 0.413187 | 0 | 0.025966 | 0.271396 | 4,440 | 107 | 112 | 41.495327 | 0.817929 | 0.175676 | 0 | 0.577465 | 0 | 0 | 0.11177 | 0.031612 | 0 | 0 | 0 | 0 | 0.183099 | 1 | 0.042254 | false | 0.112676 | 0.098592 | 0 | 0.169014 | 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 |
06d4c93ef27878ef921ea16909624be13882c4df | 3,320 | py | Python | cride/registros/migrations/0001_initial.py | albertoaldanar/serecsinAPI | ca0f72d42b2e23d4a28cafccef9892055f922bfc | [
"MIT"
] | null | null | null | cride/registros/migrations/0001_initial.py | albertoaldanar/serecsinAPI | ca0f72d42b2e23d4a28cafccef9892055f922bfc | [
"MIT"
] | 8 | 2020-06-05T21:51:05.000Z | 2022-01-13T01:25:00.000Z | cride/registros/migrations/0001_initial.py | albertoaldanar/serecsinAPI | ca0f72d42b2e23d4a28cafccef9892055f922bfc | [
"MIT"
] | null | null | null | # Generated by Django 2.0.9 on 2019-07-28 03:39
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Egreso',
fields=[
('id', mo... | 51.875 | 139 | 0.585542 | 339 | 3,320 | 5.60177 | 0.259587 | 0.058978 | 0.126382 | 0.151659 | 0.716166 | 0.672986 | 0.672986 | 0.672986 | 0.672986 | 0.537125 | 0 | 0.021408 | 0.268373 | 3,320 | 63 | 140 | 52.698413 | 0.760395 | 0.013554 | 0 | 0.535714 | 1 | 0 | 0.145738 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.089286 | 0 | 0.160714 | 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 |
06d7955f0c03bd7eb5c6aea361b6fd438f0c891a | 745 | py | Python | app/core/migrations/0003_auto_20210420_0656.py | sawamotokai/Project-Backend-Energy | 9d2f80cb31e500d7a59714e06bbb4f4d3d8628d7 | [
"MIT"
] | null | null | null | app/core/migrations/0003_auto_20210420_0656.py | sawamotokai/Project-Backend-Energy | 9d2f80cb31e500d7a59714e06bbb4f4d3d8628d7 | [
"MIT"
] | null | null | null | app/core/migrations/0003_auto_20210420_0656.py | sawamotokai/Project-Backend-Energy | 9d2f80cb31e500d7a59714e06bbb4f4d3d8628d7 | [
"MIT"
] | 1 | 2021-05-05T17:59:20.000Z | 2021-05-05T17:59:20.000Z | # Generated by Django 2.1.15 on 2021-04-20 06:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20210420_0653'),
]
operations = [
migrations.RemoveField(
model_name='device',
name='state',
... | 26.607143 | 102 | 0.546309 | 76 | 745 | 5.25 | 0.565789 | 0.067669 | 0.112782 | 0.142857 | 0.471178 | 0.471178 | 0.285714 | 0.285714 | 0.285714 | 0.285714 | 0 | 0.072658 | 0.297987 | 745 | 27 | 103 | 27.592593 | 0.690249 | 0.061745 | 0 | 0.47619 | 1 | 0 | 0.126255 | 0.032999 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 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 |
06dbcf32fe1af46712aa3ea2e16d9e703d42bc07 | 3,420 | py | Python | grammar_induction/earley_parser/earley_parser.py | tdonca/OpenBottle | f03d80e7b3645232fb97f91cf7fc2dc02f101ac2 | [
"MIT"
] | null | null | null | grammar_induction/earley_parser/earley_parser.py | tdonca/OpenBottle | f03d80e7b3645232fb97f91cf7fc2dc02f101ac2 | [
"MIT"
] | null | null | null | grammar_induction/earley_parser/earley_parser.py | tdonca/OpenBottle | f03d80e7b3645232fb97f91cf7fc2dc02f101ac2 | [
"MIT"
] | null | null | null | import nltk
def read_induced_grammar(path):
with open(path) as f:
rules = [rule.strip() for rule in f.readlines()]
grammar = nltk.PCFG.fromstring(rules)
return grammar
def predict_next_symbols(grammar, tokens):
def get_production_prob(selected_edge):
# Find the corresponding ... | 31.666667 | 97 | 0.661404 | 413 | 3,420 | 5.246973 | 0.227603 | 0.066451 | 0.066451 | 0.092293 | 0.425473 | 0.341947 | 0.341947 | 0.341947 | 0.341947 | 0.341947 | 0 | 0.001176 | 0.253801 | 3,420 | 107 | 98 | 31.962617 | 0.847962 | 0.080117 | 0 | 0.269231 | 0 | 0 | 0.074888 | 0.008923 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.012821 | null | null | 0.089744 | 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 |
06e06647834c7b2a166ce61844df9d1454ba0c4a | 255 | py | Python | Program's_Contributed_By_Contributors/Python_Programs/regex_date_validator.py | a-ayush19/Hacktoberfest2k21 | 2c542b90bf6916e9ee225d8cf34c4790e8c720fb | [
"MIT"
] | null | null | null | Program's_Contributed_By_Contributors/Python_Programs/regex_date_validator.py | a-ayush19/Hacktoberfest2k21 | 2c542b90bf6916e9ee225d8cf34c4790e8c720fb | [
"MIT"
] | null | null | null | Program's_Contributed_By_Contributors/Python_Programs/regex_date_validator.py | a-ayush19/Hacktoberfest2k21 | 2c542b90bf6916e9ee225d8cf34c4790e8c720fb | [
"MIT"
] | null | null | null | import re # import regex module
# check if date is valid (yyyy-mm-dd)
def date_validation(self, date):
if re.fullmatch(r"/^\d{4}-\d{2}-\d{2}$/", date):
return True
else:
return False
date_validation("2022-02-29") # False/True
| 21.25 | 52 | 0.619608 | 41 | 255 | 3.804878 | 0.658537 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055276 | 0.219608 | 255 | 11 | 53 | 23.181818 | 0.728643 | 0.258824 | 0 | 0 | 0 | 0 | 0.167568 | 0.113514 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
06e2744319b13e375a6aacd8b4954731b1609952 | 951 | py | Python | examples/quicksort.py | RaphaelArkadyMeyer/LiveCoding | e8fb357d68e7118bf03ef950b66108febb4c07ad | [
"MIT"
] | null | null | null | examples/quicksort.py | RaphaelArkadyMeyer/LiveCoding | e8fb357d68e7118bf03ef950b66108febb4c07ad | [
"MIT"
] | null | null | null | examples/quicksort.py | RaphaelArkadyMeyer/LiveCoding | e8fb357d68e7118bf03ef950b66108febb4c07ad | [
"MIT"
] | null | null | null | from sys import stdin
@@ begin hide
def main():
print("start qs", stdin.readline()) # Ignore first line with number of inputs on it
array_in = stdin.readline()
print(array_in)
presort = list(map(int, array_in.split(' ')))
sort = quickSort(presort)
print(sort)
@@ end hide
def quickSort(arr):
... | 22.116279 | 88 | 0.559411 | 117 | 951 | 4.452991 | 0.487179 | 0.040307 | 0.065259 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.324921 | 951 | 42 | 89 | 22.642857 | 0.799065 | 0.047319 | 0 | 0.205128 | 0 | 0 | 0.018805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025641 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06e8d255d3835b70c8d841ae4ea5b9ffb5b55d88 | 7,031 | py | Python | python_pb2/go/chromium/org/luci/buildbucket/proto/token_pb2.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | python_pb2/go/chromium/org/luci/buildbucket/proto/token_pb2.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | 4 | 2022-03-17T18:58:21.000Z | 2022-03-17T18:58:22.000Z | python_pb2/go/chromium/org/luci/buildbucket/proto/token_pb2.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: go.chromium.org/luci/buildbucket/proto/token.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflecti... | 37.201058 | 684 | 0.766321 | 855 | 7,031 | 5.981287 | 0.180117 | 0.049277 | 0.070591 | 0.073915 | 0.620063 | 0.546539 | 0.539499 | 0.531482 | 0.477122 | 0.477122 | 0 | 0.034949 | 0.116911 | 7,031 | 188 | 685 | 37.398936 | 0.788694 | 0.053051 | 0 | 0.611111 | 1 | 0.006173 | 0.213662 | 0.176347 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012346 | 0.024691 | 0 | 0.024691 | 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 |
06edbab44b813861a203b968e1496d8129301eae | 875 | py | Python | settings.py | Asadbek07/aiogram-django-template | cd78e98b8667c1df35a552d2a5fccc869753afac | [
"MIT",
"Unlicense"
] | null | null | null | settings.py | Asadbek07/aiogram-django-template | cd78e98b8667c1df35a552d2a5fccc869753afac | [
"MIT",
"Unlicense"
] | null | null | null | settings.py | Asadbek07/aiogram-django-template | cd78e98b8667c1df35a552d2a5fccc869753afac | [
"MIT",
"Unlicense"
] | null | null | null | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# SECURITY WARNING: Modify this secret key if using in production!
SECRET_KEY = ""
DEFAULT_AUTO_FIELD='django.db.models.AutoField'
DATABASES = {
"default": {
"ENGINE": ... | 21.341463 | 71 | 0.595429 | 94 | 875 | 5.414894 | 0.648936 | 0.035363 | 0.086444 | 0.11002 | 0.235756 | 0.235756 | 0.235756 | 0.235756 | 0.235756 | 0 | 0 | 0.01059 | 0.244571 | 875 | 40 | 72 | 21.875 | 0.759455 | 0.153143 | 0 | 0 | 0 | 0 | 0.302872 | 0.167102 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.066667 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
06f1a10010e2935f03dde8ea5a122327571efcbd | 294 | py | Python | stochpy/pscmodels/GeneDuplication.py | bgoli/stochpy | ba06e5eaf1204dbc8ea39996ff8a08e9b0b5997d | [
"BSD-3-Clause"
] | 35 | 2016-02-29T22:56:07.000Z | 2022-03-06T17:21:29.000Z | stochpy/pscmodels/GeneDuplication.py | bgoli/stochpy | ba06e5eaf1204dbc8ea39996ff8a08e9b0b5997d | [
"BSD-3-Clause"
] | 6 | 2016-10-13T12:43:54.000Z | 2021-04-30T09:06:59.000Z | stochpy/pscmodels/GeneDuplication.py | bgoli/stochpy | ba06e5eaf1204dbc8ea39996ff8a08e9b0b5997d | [
"BSD-3-Clause"
] | 13 | 2016-07-07T19:49:25.000Z | 2021-05-14T20:24:17.000Z | model = """
# Reactions
R1:
G1 > G1 + mRNA1
Ksyn*G1
R2:
mRNA1 > $pool
Kdeg*mRNA1
R3:
G2 > G2 + mRNA2
Ksyn*G2
R4:
mRNA2 > $pool
Kdeg*mRNA2
# Fixed species
# Variable species
mRNA1 = 50.0
G1 = 1
mRNA2 = 50.0
G2 = 1
# Parameters
Ksyn = 10
Kdeg = 0.2
"""
| 9.8 | 20 | 0.540816 | 44 | 294 | 3.613636 | 0.5 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164103 | 0.336735 | 294 | 29 | 21 | 10.137931 | 0.651282 | 0 | 0 | 0 | 0 | 0 | 0.94898 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
06f9bcdd04ecdb3618bd6ea053fa561535c3f388 | 396 | py | Python | plugins/newbie.py | PalashTanejaPro/cvbot | 429514bf235e410f6cea436a1846ab9880e0615c | [
"MIT"
] | null | null | null | plugins/newbie.py | PalashTanejaPro/cvbot | 429514bf235e410f6cea436a1846ab9880e0615c | [
"MIT"
] | null | null | null | plugins/newbie.py | PalashTanejaPro/cvbot | 429514bf235e410f6cea436a1846ab9880e0615c | [
"MIT"
] | null | null | null | import re
from errbot import BotPlugin, re_botcmd
class Newbie(BotPlugin):
"""
List the bot rules
"""
@re_botcmd(pattern=r'newbie',
re_cmd_name_help='newbiw',
flags=re.IGNORECASE,
template='newbie.jinja2')
def newbie(self, msg, args):
... | 18.857143 | 41 | 0.527778 | 43 | 396 | 4.744186 | 0.674419 | 0.078431 | 0.107843 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.358586 | 396 | 20 | 42 | 19.8 | 0.799213 | 0.09596 | 0 | 0 | 0 | 0 | 0.094044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
06fa04d1992889d2228fafb2c5960834656ee056 | 467 | py | Python | wowspy/extras.py | MaT1g3R/Warships.py | d4d335c14e56ff110b525ae7ff2ec76c028aef57 | [
"MIT"
] | 4 | 2017-04-11T06:56:28.000Z | 2019-02-08T18:45:48.000Z | wowspy/extras.py | MaT1g3R/Warships.py | d4d335c14e56ff110b525ae7ff2ec76c028aef57 | [
"MIT"
] | null | null | null | wowspy/extras.py | MaT1g3R/Warships.py | d4d335c14e56ff110b525ae7ff2ec76c028aef57 | [
"MIT"
] | null | null | null | from enum import Enum
from typing import List, Union
class Region(Enum):
NA = 'com'
EU = 'eu'
RU = 'ru'
AS = 'asia'
def lst_of_int(id_, name):
if id_ is None:
return None
if not isinstance(id_, int) and any(not isinstance(x, int) for x in id_):
raise ValueError('{} must be an... | 22.238095 | 77 | 0.618844 | 80 | 467 | 3.4875 | 0.5625 | 0.09319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256959 | 467 | 20 | 78 | 23.35 | 0.804035 | 0 | 0 | 0 | 0 | 0 | 0.100642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
06fe4a450067e4917bf7364fb3b2f2b1b8cabfe5 | 4,794 | py | Python | acq4/util/prioritylock.py | campagnola/acq4 | 09699c07d8949950f6df149cf17892aaa3a37402 | [
"MIT"
] | 47 | 2015-01-05T16:18:10.000Z | 2022-03-16T13:09:30.000Z | acq4/util/prioritylock.py | acq4/acq4 | c77636a76d68ffa1bc7dbd41edc522e523b909b8 | [
"MIT"
] | 48 | 2015-04-19T16:51:41.000Z | 2022-03-31T14:48:16.000Z | acq4/util/prioritylock.py | acq4/acq4 | c77636a76d68ffa1bc7dbd41edc522e523b909b8 | [
"MIT"
] | 32 | 2015-01-15T14:11:49.000Z | 2021-07-15T13:44:52.000Z | from __future__ import print_function, division
import weakref
from threading import Lock, Thread, Event
from six.moves import queue
from .future import Future
class PriorityLock(object):
"""Mutex with asynchronous locking and priority queueing.
The purpose of this class is to provide a mutex that:
... | 28.706587 | 106 | 0.571548 | 561 | 4,794 | 4.682709 | 0.265597 | 0.027408 | 0.02855 | 0.009897 | 0.079939 | 0.079939 | 0.041112 | 0.041112 | 0.041112 | 0.041112 | 0 | 0.003801 | 0.341469 | 4,794 | 166 | 107 | 28.879518 | 0.828318 | 0.306842 | 0 | 0.204545 | 0 | 0 | 0.007715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215909 | false | 0 | 0.056818 | 0.068182 | 0.443182 | 0.011364 | 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 |
6606c8162dbf69a53fb6d46d56c8370fe7cfab47 | 6,652 | py | Python | trackeddy/utils/field_generator.py | navidcy/trackeddy | 43e884d42c3fcf3eccb17bcd2d1e00ee0d478242 | [
"MIT"
] | 36 | 2019-01-30T23:47:55.000Z | 2022-03-08T06:08:41.000Z | trackeddy/utils/field_generator.py | powerwordlearner/trackeddy | afe85694fcff62df75f8f598f8decf2ec3f28f8d | [
"MIT"
] | 14 | 2019-02-25T21:46:11.000Z | 2022-03-08T08:58:36.000Z | trackeddy/utils/field_generator.py | powerwordlearner/trackeddy | afe85694fcff62df75f8f598f8decf2ec3f28f8d | [
"MIT"
] | 14 | 2019-03-04T03:19:13.000Z | 2022-03-08T06:08:42.000Z | import numpy as np
import random as rnd
import pdb
def dist(loc1,loc2):
return np.sqrt((loc1[0]-loc2[0])**2 + (loc2[1]-loc1[1])**2)
#### BUG WHEN LEN(x) != LEN(y)
class Generate_field():
def __init__(self,a,b,n,x,y,opt=''):
self.xlen=len(x)
self.ylen=len(y)
self.a = a*rnd.uniform(... | 39.360947 | 152 | 0.518942 | 954 | 6,652 | 3.540881 | 0.181342 | 0.041445 | 0.026051 | 0.035524 | 0.402309 | 0.380403 | 0.329485 | 0.300178 | 0.227353 | 0.227353 | 0 | 0.03185 | 0.310884 | 6,652 | 169 | 153 | 39.360947 | 0.705061 | 0.088996 | 0 | 0.142857 | 1 | 0 | 0.023146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126984 | false | 0.031746 | 0.02381 | 0.071429 | 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 |
66140a38769c2c3dcc79bbfada85c9b6a191bf34 | 7,596 | py | Python | auth.py | Emberwalker/Arke | dab282000a64fdc4d0ba3854553e487d077a5705 | [
"MIT"
] | 2 | 2015-02-09T16:07:53.000Z | 2018-01-23T05:49:20.000Z | auth.py | Emberwalker/Arke | dab282000a64fdc4d0ba3854553e487d077a5705 | [
"MIT"
] | null | null | null | auth.py | Emberwalker/Arke | dab282000a64fdc4d0ba3854553e487d077a5705 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template, abort, request, redirect, url_for
from flask.ext.login import LoginManager, UserMixin, login_required, current_user, login_user, logout_user
from werkzeug.security import generate_password_hash, check_password_hash
from db import User, get_user, has_superuser, write_to_db, ... | 30.384 | 158 | 0.644286 | 934 | 7,596 | 5.084582 | 0.170236 | 0.056012 | 0.02948 | 0.050537 | 0.409139 | 0.376079 | 0.309749 | 0.271004 | 0.238577 | 0.233523 | 0 | 0.001546 | 0.233807 | 7,596 | 249 | 159 | 30.506024 | 0.814433 | 0.029358 | 0 | 0.4375 | 0 | 0 | 0.148113 | 0.01249 | 0 | 0 | 0 | 0 | 0.026042 | 1 | 0.088542 | false | 0.125 | 0.026042 | 0.020833 | 0.307292 | 0.015625 | 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 |
6614af6f3fdacbe0c1aca6a676aff2f4c6e3ee4d | 625 | py | Python | examples/steps/custom_extract_local.py | hillsdale18/ProjectX | 4518d724eeb8ac73a6eae1d076d4846244e0944a | [
"Apache-2.0"
] | 3 | 2017-12-29T11:26:15.000Z | 2022-02-11T16:44:28.000Z | examples/steps/custom_extract_local.py | hillsdale18/ProjectX | 4518d724eeb8ac73a6eae1d076d4846244e0944a | [
"Apache-2.0"
] | 7 | 2017-09-21T23:25:24.000Z | 2021-03-29T21:46:45.000Z | examples/steps/custom_extract_local.py | recurly/dataduct | 29aec3526e170e5ad3b59a135780e72b69209f0b | [
"Apache-2.0"
] | 1 | 2020-05-12T08:54:38.000Z | 2020-05-12T08:54:38.000Z | """
ETL step wrapper for creating an S3 node for input from local files
"""
from dataduct.steps import ExtractLocalStep
import logging
logger = logging.getLogger(__name__)
class CustomExtractLocalStep(ExtractLocalStep):
"""CustomExtractLocal Step class that helps get data from a local file
"""
def __init... | 29.761905 | 79 | 0.7072 | 70 | 625 | 6.142857 | 0.685714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002028 | 0.2112 | 625 | 20 | 80 | 31.25 | 0.870183 | 0.4224 | 0 | 0 | 0 | 0 | 0.110063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6616948d6bf0006347b76618425cbff58a94afef | 2,562 | py | Python | qodex/ui/new_shelf.py | grapesmoker/qodex | aad8cd47f2efea53492a51ca4c50804862d63a2c | [
"MIT"
] | null | null | null | qodex/ui/new_shelf.py | grapesmoker/qodex | aad8cd47f2efea53492a51ca4c50804862d63a2c | [
"MIT"
] | null | null | null | qodex/ui/new_shelf.py | grapesmoker/qodex | aad8cd47f2efea53492a51ca4c50804862d63a2c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'new_shelf.ui'
##
## Created by: Qt User Interface Compiler version 6.1.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#################... | 38.818182 | 103 | 0.660422 | 271 | 2,562 | 6.188192 | 0.346863 | 0.066786 | 0.041741 | 0.064401 | 0.176506 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027423 | 0.174473 | 2,562 | 65 | 104 | 39.415385 | 0.765485 | 0.087822 | 0 | 0 | 1 | 0 | 0.066605 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.076923 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
66191de9f1cc510296cf817ae6f3a0711e594a01 | 314 | py | Python | update-attempt-ids.py | inducer/courseflow | 0f9786e3616dbedf08365d81a731f672b97ba9f5 | [
"Unlicense"
] | 284 | 2015-01-09T12:02:28.000Z | 2022-03-27T14:30:46.000Z | update-attempt-ids.py | inducer/courseflow | 0f9786e3616dbedf08365d81a731f672b97ba9f5 | [
"Unlicense"
] | 799 | 2015-02-26T08:49:46.000Z | 2022-03-31T16:09:26.000Z | update-attempt-ids.py | davis68/relate | eb40c8c17d4a724a60de3caa3334521a833bad5c | [
"Unlicense"
] | 120 | 2015-01-30T18:00:56.000Z | 2022-03-28T06:24:43.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import django
django.setup()
from course.models import GradeChange
for gchange in GradeChange.objects.all():
if gchange.flow_session is not None:
gchange.attempt_id = "flow-session-%d" % gchange.flow_session.id
gchange.save()
| 22.428571 | 72 | 0.719745 | 42 | 314 | 5.190476 | 0.666667 | 0.151376 | 0.165138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003861 | 0.175159 | 314 | 13 | 73 | 24.153846 | 0.837838 | 0.066879 | 0 | 0 | 0 | 0 | 0.051546 | 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 |
662151a94164143ed775823d9e8bf3ea7314b37a | 1,646 | py | Python | PythonExample/tmp/12_spider.py | RobinTang/machine-learning | b17f1bfe2b90bf5de914310c86a9f4e7d2695932 | [
"Apache-2.0"
] | 1 | 2017-05-09T03:27:30.000Z | 2017-05-09T03:27:30.000Z | PythonExample/tmp/12_spider.py | RobinTang/machine-learning | b17f1bfe2b90bf5de914310c86a9f4e7d2695932 | [
"Apache-2.0"
] | null | null | null | PythonExample/tmp/12_spider.py | RobinTang/machine-learning | b17f1bfe2b90bf5de914310c86a9f4e7d2695932 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Filename: my_crawl.py
# Function: 租房小爬虫
# Author:hustos@qq.com
# 微博:OceanBase晓楚
# 微信:hustos
from bs4 import BeautifulSoup
import re
import sys
import urllib
import time
import random
import time
reload(sys)
sys.setdefaultencoding("GBK")
# 支持爬不同版面,取消下面的注释即可
# 二手房
# board = 'OurHouse'
# 二手市... | 23.183099 | 148 | 0.629405 | 234 | 1,646 | 4.410256 | 0.482906 | 0.01938 | 0.034884 | 0.043605 | 0.062985 | 0.040698 | 0 | 0 | 0 | 0 | 0 | 0.011773 | 0.174362 | 1,646 | 71 | 149 | 23.183099 | 0.747609 | 0.321385 | 0 | 0.064516 | 0 | 0.064516 | 0.26691 | 0.021938 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.225806 | null | null | 0.032258 | 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 |
66309fdb7184ef1ca3c4b55dca903dcf75cb2c85 | 1,890 | py | Python | pysirix/__init__.py | sirixdb/sirix-python-client | 1e57aa7961ec7916e2e6fe227f8f9111b4d0633b | [
"Apache-2.0"
] | 7 | 2019-12-11T19:16:17.000Z | 2021-04-09T14:39:05.000Z | pysirix/__init__.py | sirixdb/sirix-python-client | 1e57aa7961ec7916e2e6fe227f8f9111b4d0633b | [
"Apache-2.0"
] | 1 | 2021-03-25T15:11:05.000Z | 2021-03-25T15:11:05.000Z | pysirix/__init__.py | sirixdb/sirix-python-client | 1e57aa7961ec7916e2e6fe227f8f9111b4d0633b | [
"Apache-2.0"
] | null | null | null | import httpx
from pysirix.sirix import Sirix
from pysirix.database import Database
from pysirix.resource import Resource
from pysirix.json_store import JsonStoreSync, JsonStoreAsync
from pysirix.constants import Insert, DBType, TimeAxisShift
from pysirix.errors import SirixServerError
from pysirix.types import (
Q... | 27 | 94 | 0.688889 | 206 | 1,890 | 6.26699 | 0.271845 | 0.059644 | 0.068164 | 0.077459 | 0.621224 | 0.621224 | 0.570101 | 0.570101 | 0.570101 | 0.443067 | 0 | 0 | 0.214815 | 1,890 | 69 | 95 | 27.391304 | 0.869946 | 0.161376 | 0 | 0.08 | 0 | 0 | 0.157506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.08 | 0.16 | 0 | 0.22 | 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 |
66334ec0a722aa7b3f0b18f2bc8ed0d31711978a | 2,507 | py | Python | NewGame/room.py | LivOriona/EscapeBoat-le-secret-du-Python-perdu | 52791f738de89ee28cc41bb30cb710af0557ed6c | [
"MIT"
] | null | null | null | NewGame/room.py | LivOriona/EscapeBoat-le-secret-du-Python-perdu | 52791f738de89ee28cc41bb30cb710af0557ed6c | [
"MIT"
] | null | null | null | NewGame/room.py | LivOriona/EscapeBoat-le-secret-du-Python-perdu | 52791f738de89ee28cc41bb30cb710af0557ed6c | [
"MIT"
] | null | null | null | from exit import Exit
class Room: #objet room
def __init__(self, id, name, description): #rappel : self est mon objet qui suit le plan Room
self.id = id
self.name = name
self.description = description
self.pickables = {} #les objets ramassables (pickables) sont actuellement un dicti... | 48.211538 | 201 | 0.701635 | 322 | 2,507 | 5.437888 | 0.42236 | 0.05711 | 0.049686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007179 | 0.222178 | 2,507 | 51 | 202 | 49.156863 | 0.890769 | 0.439569 | 0 | 0 | 0 | 0 | 0.004335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0 | 0.032258 | 0.032258 | 0.419355 | 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 |
6636b16f02358105ee1ff5f8c99002a8c078f41c | 470 | py | Python | UsefulTools/Classify/scripts/vis.py | CharlesPikachu/CharlesFace | 90bfe38c58068228d0069dce43b55b2570acaa16 | [
"MIT"
] | 13 | 2018-05-23T07:07:28.000Z | 2021-05-28T07:37:30.000Z | UsefulTools/Classify/scripts/vis.py | CharlesPikachu/CharlesFace | 90bfe38c58068228d0069dce43b55b2570acaa16 | [
"MIT"
] | null | null | null | UsefulTools/Classify/scripts/vis.py | CharlesPikachu/CharlesFace | 90bfe38c58068228d0069dce43b55b2570acaa16 | [
"MIT"
] | null | null | null | # Draw network structure
from graphviz import Digraph
import torch
from torch.autograd import Variable
from torchviz import make_dot
from nets.ResNets import ResNet
model = ResNet(resnet='resnet18', num_classes=10575, embeddings_num=128, img_size=224, is_fc=True, is_AvgPool=False)
x = Variable(torch.randn(1, 3, 224, ... | 29.375 | 116 | 0.776596 | 76 | 470 | 4.644737 | 0.578947 | 0.084986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05036 | 0.112766 | 470 | 15 | 117 | 31.333333 | 0.796163 | 0.046809 | 0 | 0 | 0 | 0 | 0.020179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 0 | 0.416667 | 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 |
663ed72de87d21eaa6c670503acbb758ec388066 | 661 | py | Python | exopy/measurement/monitors/api.py | jerjohste/exopy | 0fe3eb94f440ead88c396a1abccf7c22dd633a61 | [
"BSD-3-Clause"
] | 16 | 2018-03-20T09:06:23.000Z | 2021-09-08T18:46:15.000Z | exopy/measurement/monitors/api.py | jerjohste/exopy | 0fe3eb94f440ead88c396a1abccf7c22dd633a61 | [
"BSD-3-Clause"
] | 118 | 2015-05-13T07:50:04.000Z | 2018-02-14T17:37:20.000Z | exopy/measurement/monitors/api.py | jerjohste/exopy | 0fe3eb94f440ead88c396a1abccf7c22dd633a61 | [
"BSD-3-Clause"
] | 11 | 2018-03-02T11:17:26.000Z | 2021-06-23T22:25:40.000Z | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015-2018 by Exopy Authors, see AUTHORS for more details.
#
# Distributed under the terms of the BSD license.
#
# The full license is in the file LICENCE, distributed with this software.
# ---------------... | 36.722222 | 79 | 0.574887 | 69 | 661 | 5.434783 | 0.753623 | 0.138667 | 0.176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015571 | 0.125567 | 661 | 17 | 80 | 38.882353 | 0.633218 | 0.780635 | 0 | 0 | 0 | 0 | 0.253846 | 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 |
6644363e2a8ed145169908ab52a7dbbf40ce32ad | 5,820 | py | Python | textrank4zh/TextRank4Sentence.py | Mumuerr/textrank_test | 92d217bd94767a5384d4843d476199f37edce27d | [
"MIT"
] | 2 | 2015-08-07T18:01:01.000Z | 2015-08-14T03:29:10.000Z | textrank4zh/TextRank4Sentence.py | Mumuerr/textrank_test | 92d217bd94767a5384d4843d476199f37edce27d | [
"MIT"
] | 2 | 2015-03-30T05:28:35.000Z | 2015-06-28T01:08:50.000Z | textrank4zh/TextRank4Sentence.py | Mumuerr/textrank_test | 92d217bd94767a5384d4843d476199f37edce27d | [
"MIT"
] | 2 | 2015-03-04T05:06:55.000Z | 2015-03-29T22:46:19.000Z | #-*- encoding:utf-8 -*-
'''
Created on Dec 1, 2014
@author: letian
'''
import networkx as nx
from Segmentation import Segmentation
import numpy as np
import math
class TextRank4Sentence(object):
def __init__(self, stop_words_file = None, delimiters='?!;?!。;…\n'):
'''
`stop_words_file`:默认值为None... | 36.375 | 153 | 0.54811 | 624 | 5,820 | 4.855769 | 0.258013 | 0.038614 | 0.029043 | 0.031683 | 0.144224 | 0.082508 | 0.021122 | 0.021122 | 0.021122 | 0 | 0 | 0.016882 | 0.348625 | 5,820 | 160 | 154 | 36.375 | 0.780797 | 0.072337 | 0 | 0.088608 | 0 | 0 | 0.041301 | 0.009257 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063291 | null | null | 0.088608 | 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 |
6649f7baa6138a2ad362948ee8f375c31e59a615 | 766 | py | Python | test/legacy/test_responses.py | mitsuhiko/nameko | 6dccde0aec58a1c85efffcb1bdd38aca488c8874 | [
"Apache-2.0"
] | 3 | 2015-06-15T15:19:00.000Z | 2017-09-04T07:43:40.000Z | test/legacy/test_responses.py | mitsuhiko/nameko | 6dccde0aec58a1c85efffcb1bdd38aca488c8874 | [
"Apache-2.0"
] | null | null | null | test/legacy/test_responses.py | mitsuhiko/nameko | 6dccde0aec58a1c85efffcb1bdd38aca488c8874 | [
"Apache-2.0"
] | null | null | null | from mock import Mock
from nameko.legacy import responses
def test_iter_rpcresponses():
response_list = [
Mock(payload={'id': 1, 'failure': False, 'ending': False}),
Mock(payload={'id': 2, 'failure': False, 'ending': False}),
Mock(payload={'id': 3, 'failure': False, 'ending': True}),
... | 26.413793 | 67 | 0.646214 | 92 | 766 | 5.206522 | 0.347826 | 0.093946 | 0.10856 | 0.175365 | 0.521921 | 0.444676 | 0.444676 | 0.321503 | 0.321503 | 0.321503 | 0 | 0.008264 | 0.210183 | 766 | 28 | 68 | 27.357143 | 0.783471 | 0.108355 | 0 | 0.352941 | 0 | 0 | 0.091176 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.235294 | 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 |
664aa26a6ed418dbb14b0f100b97a369a3ac12ed | 212 | py | Python | functions/load_nag.py | daviddoret/pyxag | 6884c7e100d28c3ce6273248caa40eaeab920bc5 | [
"MIT"
] | 1 | 2019-10-27T15:56:27.000Z | 2019-10-27T15:56:27.000Z | functions/load_nag.py | daviddoret/pynag | 6884c7e100d28c3ce6273248caa40eaeab920bc5 | [
"MIT"
] | 11 | 2019-11-04T18:21:16.000Z | 2019-11-07T03:22:41.000Z | functions/load_nag.py | daviddoret/pynag | 6884c7e100d28c3ce6273248caa40eaeab920bc5 | [
"MIT"
] | null | null | null | from . import *
def load_nag(nag, path):
"""Load a NAG from a file"""
with open(path, 'r') as nag_file:
nag_json = nag_file.read()
nag = convert_json_to_nag(nag_json)
return nag
| 21.2 | 43 | 0.599057 | 34 | 212 | 3.5 | 0.5 | 0.10084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283019 | 212 | 9 | 44 | 23.555556 | 0.782895 | 0.103774 | 0 | 0 | 0 | 0 | 0.005435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
664e46635cd94a8be67d361c3e332d735506c54f | 1,385 | py | Python | cogv3/moderation/Kick.py | XFazze/discordbot | 6b4201a6d6ff1bed5f65de4b4d30738b4d51e223 | [
"MIT"
] | 2 | 2021-07-29T02:39:36.000Z | 2021-07-29T02:39:38.000Z | cogv3/moderation/Kick.py | XFazze/discordbot | 6b4201a6d6ff1bed5f65de4b4d30738b4d51e223 | [
"MIT"
] | 2 | 2021-08-16T08:31:24.000Z | 2021-09-20T16:34:58.000Z | cogv3/moderation/Kick.py | XFazze/discordbot | 6b4201a6d6ff1bed5f65de4b4d30738b4d51e223 | [
"MIT"
] | null | null | null | import discord
from ..admin.managecommands import perms
import json
from discord.utils import get
from pymongo import MongoClient, collation
from discord.ext import commands, tasks
import time
import os
import pymongo as pm
import asyncio
import random
import datetime
import copy
class Kick(commands.Cog):
def __i... | 26.634615 | 94 | 0.636823 | 178 | 1,385 | 4.882022 | 0.460674 | 0.055236 | 0.044879 | 0.057537 | 0.085155 | 0.085155 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285921 | 1,385 | 52 | 95 | 26.634615 | 0.878665 | 0.074368 | 0 | 0.058824 | 0 | 0 | 0.12197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.029412 | 0.382353 | 0 | 0.470588 | 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 |
6650513cace6c6ea5c31d19e9f45a58804584460 | 1,409 | py | Python | src/adobe/pdfservices/operation/internal/api/dto/request/platform/cpf_content_analyzer_req.py | hvntravel/pdfservices-python-sdk | af2511604dc2558e43c6be44692fb9faa0e3e8d8 | [
"Apache-2.0"
] | 2 | 2021-11-19T10:00:53.000Z | 2022-01-30T21:19:50.000Z | src/adobe/pdfservices/operation/internal/api/dto/request/platform/cpf_content_analyzer_req.py | hvntravel/pdfservices-python-sdk | af2511604dc2558e43c6be44692fb9faa0e3e8d8 | [
"Apache-2.0"
] | 1 | 2021-06-26T15:17:21.000Z | 2021-06-26T15:17:21.000Z | src/adobe/pdfservices/operation/internal/api/dto/request/platform/cpf_content_analyzer_req.py | hvntravel/pdfservices-python-sdk | af2511604dc2558e43c6be44692fb9faa0e3e8d8 | [
"Apache-2.0"
] | 2 | 2022-01-02T16:01:02.000Z | 2022-03-24T01:23:14.000Z | # Copyright 2021 Adobe. All rights reserved.
# This file is licensed to you 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 la... | 42.69697 | 89 | 0.751597 | 194 | 1,409 | 5.402062 | 0.505155 | 0.057252 | 0.076336 | 0.110687 | 0.201336 | 0.166031 | 0.166031 | 0.166031 | 0.166031 | 0 | 0 | 0.00766 | 0.166075 | 1,409 | 33 | 90 | 42.69697 | 0.884255 | 0.415898 | 0 | 0 | 0 | 0 | 0.061425 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.294118 | 0.058824 | 0.588235 | 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 |
b078c192b2790cd63b18b7c43693baf0c29cb939 | 5,069 | py | Python | pysnmp/CISCO-VOICE-CARD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/CISCO-VOICE-CARD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/CISCO-VOICE-CARD-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-VOICE-CARD-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-VOICE-CARD-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:02:54 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | 115.204545 | 713 | 0.771947 | 544 | 5,069 | 7.189338 | 0.25 | 0.007671 | 0.010739 | 0.014319 | 0.309384 | 0.204551 | 0.190233 | 0.190233 | 0.190233 | 0.186653 | 0 | 0.07732 | 0.081476 | 5,069 | 43 | 714 | 117.883721 | 0.762672 | 0.065891 | 0 | 0.057143 | 0 | 0 | 0.178163 | 0.019044 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b07b0d9f3c1eb32d4328948aa24e1bf1f662843a | 1,187 | py | Python | test/test_multi_args.py | Planet-AI-GmbH/paiargparse | 143c7d3f0b2ac8033d874cef6c8365596e5e0c87 | [
"MIT"
] | 3 | 2021-02-08T10:27:44.000Z | 2021-04-07T12:04:00.000Z | test/test_multi_args.py | Planet-AI-GmbH/paiargparse | 143c7d3f0b2ac8033d874cef6c8365596e5e0c87 | [
"MIT"
] | null | null | null | test/test_multi_args.py | Planet-AI-GmbH/paiargparse | 143c7d3f0b2ac8033d874cef6c8365596e5e0c87 | [
"MIT"
] | null | null | null | import unittest
from paiargparse import PAIArgumentParser, RequiredArgumentError
from test.dataclasse_setup import Level1b, Level2, Level1, Level2a
class TestPAIParser(unittest.TestCase):
def test_three_dc(self):
parser = PAIArgumentParser()
parser.add_root_argument("arg0", Level1b)
parse... | 35.969697 | 78 | 0.683235 | 135 | 1,187 | 5.77037 | 0.303704 | 0.092426 | 0.133504 | 0.215661 | 0.42362 | 0.42362 | 0.392811 | 0.392811 | 0.392811 | 0.392811 | 0 | 0.043704 | 0.190396 | 1,187 | 32 | 79 | 37.09375 | 0.766909 | 0 | 0 | 0.4 | 0 | 0 | 0.072452 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.24 | 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 |
b07cacc468166bef0c4ab97fc3c6c50747956b43 | 14,019 | py | Python | fdm-devito-notebooks/C_softeng2/src-softeng2/wave1D_oo.py | devitocodes/devito_book | 30405c3d440a1f89df69594fd0704f69650c1ded | [
"CC-BY-4.0"
] | 7 | 2020-07-17T13:19:15.000Z | 2021-03-27T05:21:09.000Z | fdm-devito-notebooks/C_softeng2/src-softeng2/wave1D_oo.py | devitocodes/devito_book | 30405c3d440a1f89df69594fd0704f69650c1ded | [
"CC-BY-4.0"
] | 73 | 2020-07-14T15:38:52.000Z | 2020-09-25T11:54:59.000Z | fdm-devito-notebooks/C_softeng2/src-softeng2/wave1D_oo.py | devitocodes/devito_book | 30405c3d440a1f89df69594fd0704f69650c1ded | [
"CC-BY-4.0"
] | 1 | 2021-03-27T05:21:14.000Z | 2021-03-27T05:21:14.000Z | # -*- coding: utf-8 -*-
"""
Class implementation for solving of the wave equation
u_tt = (c**2*u_x)_x + f(x,t) with t in [0,T] and x in (0,L).
We have u=U_0 or du/dn=0 on x=0, and u=u_L or du/dn=0 on x = L.
For simplicity, we use a constant c here and compare with a
known exact solution.
"""
import time, gl... | 37.384 | 78 | 0.468507 | 2,040 | 14,019 | 3.115196 | 0.147059 | 0.013218 | 0.010858 | 0.007553 | 0.342565 | 0.274115 | 0.24406 | 0.232258 | 0.230685 | 0.213375 | 0 | 0.038353 | 0.395535 | 14,019 | 374 | 79 | 37.483957 | 0.711588 | 0.086668 | 0 | 0.27668 | 0 | 0 | 0.046581 | 0.007269 | 0 | 0 | 0 | 0 | 0.011858 | 0 | null | null | 0.003953 | 0.023715 | null | null | 0.011858 | 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 |
b07efb2c81ba6b4a220b8640d2991970ca4a593a | 759 | py | Python | dickserv/modules/weather.py | acidvegas/dickserv | 11ceb7fba6a96a8e6e308107858fd82eac0941d3 | [
"ISC"
] | 14 | 2016-06-10T15:12:23.000Z | 2020-04-03T23:10:57.000Z | dickserv/modules/weather.py | acidvegas/dickserv | 11ceb7fba6a96a8e6e308107858fd82eac0941d3 | [
"ISC"
] | null | null | null | dickserv/modules/weather.py | acidvegas/dickserv | 11ceb7fba6a96a8e6e308107858fd82eac0941d3 | [
"ISC"
] | 6 | 2016-11-28T22:17:53.000Z | 2020-04-05T21:34:15.000Z | #!/usr/bin/env python
# DickServ IRC Bot - Developed by acidvegas in Python (https://acid.vegas/dickserv)
# weather.py
import httplib
import config
def lookup(zip_code):
api = httplib.get_json('http://api.wunderground.com/api/{0}/conditions/q/{1}.json'.format(config.api.wunderground_api_key, zip_code))
if 'error' ... | 37.95 | 134 | 0.710145 | 106 | 759 | 4.95283 | 0.537736 | 0.095238 | 0.2 | 0.16 | 0.205714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010495 | 0.121212 | 759 | 19 | 135 | 39.947368 | 0.776612 | 0.14888 | 0 | 0 | 0 | 0.076923 | 0.433904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 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 |
b08accee6e0c552566339c90402d7fa6eee0caf1 | 3,392 | py | Python | IBMi-lib-repo.py | barrettotte/IBMi-Lib-Repo | 8696b46d6ca26d22d2957699ef84bf3588eb66b7 | [
"MIT"
] | 4 | 2020-01-06T16:43:44.000Z | 2020-10-22T16:51:48.000Z | IBMi-lib-repo.py | barrettotte/IBMi-Lib-Repo | 8696b46d6ca26d22d2957699ef84bf3588eb66b7 | [
"MIT"
] | 1 | 2019-07-29T14:22:50.000Z | 2019-12-20T01:32:16.000Z | IBMi-lib-repo.py | barrettotte/IBMi-Lib-Repo | 8696b46d6ca26d22d2957699ef84bf3588eb66b7 | [
"MIT"
] | null | null | null | import sys, os, traceback
from os import path
import utils as utils
from IBMi import IBMi
CONFIG_PATH="./config.json"
def get_configuration(name):
for cfg in utils.read_file_json(CONFIG_PATH):
if cfg["name"] == name: return cfg
return None
def append_configuration(new_data):
if not path.exists(CO... | 38.11236 | 137 | 0.627358 | 432 | 3,392 | 4.761574 | 0.273148 | 0.03403 | 0.043753 | 0.055907 | 0.053476 | 0.053476 | 0 | 0 | 0 | 0 | 0 | 0.00607 | 0.222877 | 3,392 | 89 | 138 | 38.11236 | 0.774279 | 0 | 0 | 0.051948 | 0 | 0.012987 | 0.308282 | 0.006189 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12987 | false | 0.077922 | 0.051948 | 0.012987 | 0.285714 | 0.103896 | 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 |
b090b8cf6c32d43310cfce92a69b271dffa254b0 | 1,074 | py | Python | xpath_utils/models/xpath_condition_contains.py | kkristof200/py_xpath_utils | a2994027d099883df0efa82d3c8e106027736744 | [
"MIT"
] | null | null | null | xpath_utils/models/xpath_condition_contains.py | kkristof200/py_xpath_utils | a2994027d099883df0efa82d3c8e106027736744 | [
"MIT"
] | 1 | 2021-08-05T07:05:40.000Z | 2021-08-05T07:05:40.000Z | xpath_utils/models/xpath_condition_contains.py | kkristof200/py_xpath_utils | a2994027d099883df0efa82d3c8e106027736744 | [
"MIT"
] | null | null | null | # ------------------------------------------------------ Imports ----------------------------------------------------- #
# System
from typing import Optional
# Local
from .xpath_condition import XPathCondition
from .enums import XPathConditionType
# -------------------------------------------------------------------... | 31.588235 | 120 | 0.300745 | 45 | 1,074 | 6.955556 | 0.577778 | 0.172524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164804 | 1,074 | 34 | 121 | 31.588235 | 0.348941 | 0.552142 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.3125 | 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 |
b091381fc9f1038d97d2f6a3e3ff75daa1234b71 | 1,924 | py | Python | backend/tradingbot/migrations/0003_auto_20220108_1759.py | webclinic017/WallStreetBots | f4f73539b080ce7667b52ee8195919ec4e7b79b8 | [
"MIT"
] | 4 | 2021-11-12T02:04:30.000Z | 2022-01-03T22:56:41.000Z | backend/tradingbot/migrations/0003_auto_20220108_1759.py | webclinic017/WallStreetBots | f4f73539b080ce7667b52ee8195919ec4e7b79b8 | [
"MIT"
] | 5 | 2021-11-11T20:48:34.000Z | 2022-03-12T18:08:40.000Z | backend/tradingbot/migrations/0003_auto_20220108_1759.py | webclinic017/WallStreetBots | f4f73539b080ce7667b52ee8195919ec4e7b79b8 | [
"MIT"
] | 2 | 2021-11-15T14:23:36.000Z | 2021-11-27T19:44:38.000Z | # Generated by Django 3.2.8 on 2022-01-08 22:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tradingbot', '0002_alter_stockinstance_user'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='pr... | 35.62963 | 134 | 0.591996 | 202 | 1,924 | 5.460396 | 0.336634 | 0.065277 | 0.101541 | 0.130553 | 0.451496 | 0.451496 | 0.418858 | 0.307344 | 0.267452 | 0.267452 | 0 | 0.021014 | 0.282744 | 1,924 | 53 | 135 | 36.301887 | 0.778261 | 0.023389 | 0 | 0.468085 | 1 | 0 | 0.15983 | 0.01545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.021277 | 0 | 0.085106 | 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 |
b097f37d269473dce86b8587c826102b28b3c1c3 | 533 | py | Python | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/compute/aml_compute_node_info.py | dubiety/azure-sdk-for-python | 62ffa839f5d753594cf0fe63668f454a9d87a346 | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/compute/aml_compute_node_info.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/compute/aml_compute_node_info.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from marshmallow import fields
from azure.ai.ml._schema.core.schema_meta import PatchedSchemaMeta
class AmlComputeNodeInfoSchema(metaclass... | 35.533333 | 66 | 0.587242 | 51 | 533 | 5.941176 | 0.647059 | 0.178218 | 0.09901 | 0.118812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123827 | 533 | 14 | 67 | 38.071429 | 0.648822 | 0.324578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b098b6243b26d8fe63ceabbbadaa007489a8846c | 392 | py | Python | bank/src/base_app/serializers.py | yuramorozov01/bank_system | 8d0cad692a89b913adb2df9a2a03d1793938a911 | [
"Apache-2.0"
] | null | null | null | bank/src/base_app/serializers.py | yuramorozov01/bank_system | 8d0cad692a89b913adb2df9a2a03d1793938a911 | [
"Apache-2.0"
] | null | null | null | bank/src/base_app/serializers.py | yuramorozov01/bank_system | 8d0cad692a89b913adb2df9a2a03d1793938a911 | [
"Apache-2.0"
] | null | null | null | from base_app.models import BankSettings
from rest_framework import serializers
class BankSettingsDetailsSerializer(serializers.ModelSerializer):
'''Serializer for a bank settings.
This serializer provides detailed information about bank settings.
'''
class Meta:
model = BankSettings
... | 28 | 70 | 0.737245 | 42 | 392 | 6.690476 | 0.690476 | 0.085409 | 0.099644 | 0.120996 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19898 | 392 | 13 | 71 | 30.153846 | 0.894904 | 0.25 | 0 | 0 | 0 | 0 | 0.09319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b09a06d99c347d7fd41bae45cf5ace08203dba53 | 6,788 | py | Python | tests/test_setups/test_setups_functions.py | openml/openml-python-contrib | a3480b05483bd66e0fe42347b1f93261d7373ec9 | [
"Apache-2.0"
] | 1 | 2018-09-19T09:45:25.000Z | 2018-09-19T09:45:25.000Z | tests/test_setups/test_setups_functions.py | openml/openml-python-contrib | a3480b05483bd66e0fe42347b1f93261d7373ec9 | [
"Apache-2.0"
] | 2 | 2018-10-09T23:14:32.000Z | 2019-07-12T14:57:54.000Z | tests/test_setups/test_setups_functions.py | openml/openml-python-contrib | a3480b05483bd66e0fe42347b1f93261d7373ec9 | [
"Apache-2.0"
] | null | null | null | import ConfigSpace
import openml
import openmlcontrib
import os
import pickle
from openmlcontrib.testing import TestBase
class TestSetupFunctions(TestBase):
def setUp(self):
self.live_server = "https://www.openml.org/api/v1/xml/"
self.test_server = "https://test.openml.org/api/v1/xml/"
o... | 45.253333 | 114 | 0.664408 | 880 | 6,788 | 4.877273 | 0.146591 | 0.066403 | 0.041938 | 0.055918 | 0.745573 | 0.71109 | 0.673579 | 0.632572 | 0.589236 | 0.577353 | 0 | 0.010317 | 0.214643 | 6,788 | 149 | 115 | 45.557047 | 0.794785 | 0.019299 | 0 | 0.535088 | 0 | 0 | 0.071106 | 0 | 0 | 0 | 0 | 0 | 0.149123 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 |
b09e31a314c5450874d36c96fa8a699f387e788a | 508 | py | Python | test_data1E.py | jfs60/Group-147-PartIA-Flood-Warning-System | 3fb52e3e028ec8e0b70ccb1cfc61bcf76b42f2c1 | [
"MIT"
] | null | null | null | test_data1E.py | jfs60/Group-147-PartIA-Flood-Warning-System | 3fb52e3e028ec8e0b70ccb1cfc61bcf76b42f2c1 | [
"MIT"
] | null | null | null | test_data1E.py | jfs60/Group-147-PartIA-Flood-Warning-System | 3fb52e3e028ec8e0b70ccb1cfc61bcf76b42f2c1 | [
"MIT"
] | 1 | 2022-02-06T06:45:15.000Z | 2022-02-06T06:45:15.000Z | from floodsystem.geo import build_station_list
from floodsystem.geo import rivers_by_station_number
def test_rivers_by_station_number():
"""Tests to check that the outputs from funtion rivers_by_station_number are as expected"""
stations = build_station_list()
test = rivers_by_station_number(stations, 9)
... | 33.866667 | 95 | 0.714567 | 80 | 508 | 4.325 | 0.45 | 0.092486 | 0.17341 | 0.242775 | 0.144509 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019656 | 0.198819 | 508 | 14 | 96 | 36.285714 | 0.830467 | 0.167323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 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 |
b09eb76e470d4dd81d206409d814a0f3c8888d25 | 595 | py | Python | src/Deque/palindrome_deque.py | shapovalovdev/AlgorythmsAndDataStructures | 34d5f38c089e0ba902813607f08847fbdc7361ab | [
"Apache-2.0"
] | null | null | null | src/Deque/palindrome_deque.py | shapovalovdev/AlgorythmsAndDataStructures | 34d5f38c089e0ba902813607f08847fbdc7361ab | [
"Apache-2.0"
] | null | null | null | src/Deque/palindrome_deque.py | shapovalovdev/AlgorythmsAndDataStructures | 34d5f38c089e0ba902813607f08847fbdc7361ab | [
"Apache-2.0"
] | null | null | null | from src.Deque.deque_scratch import Deque
def is_palindrome(string_to_check):
string_to_check=string_to_check.strip()
if not string_to_check:
raise Exception("The string is empty")
deq=Deque()
for el in string_to_check:
deq.addTail(el)
front=deq.removeFront()
end=deq.remove... | 24.791667 | 65 | 0.611765 | 82 | 595 | 4.292683 | 0.45122 | 0.113636 | 0.184659 | 0.107955 | 0.309659 | 0.309659 | 0 | 0 | 0 | 0 | 0 | 0.004796 | 0.29916 | 595 | 23 | 66 | 25.869565 | 0.839329 | 0 | 0 | 0.315789 | 0 | 0 | 0.031933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.263158 | 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 |
b0a251f29d4bcbe3742045c839cc46728ccfbc07 | 6,116 | py | Python | python/pyfgag/simu_compiler.py | FAIG2014/fpga-projects | a5b5e3a1f91bd108b77867e7e941b70e46e12b92 | [
"Apache-2.0"
] | null | null | null | python/pyfgag/simu_compiler.py | FAIG2014/fpga-projects | a5b5e3a1f91bd108b77867e7e941b70e46e12b92 | [
"Apache-2.0"
] | 1 | 2019-08-14T02:25:22.000Z | 2019-08-14T02:25:22.000Z | python/pyfgag/simu_compiler.py | FAIG2014/fpga-projects | a5b5e3a1f91bd108b77867e7e941b70e46e12b92 | [
"Apache-2.0"
] | null | null | null |
import os
import sys
import pyfgag.dependency_builder as deps
import subprocess
import pathlib
class SimuCompiler(object):
def __init__(self, build_dir=os.getcwd()):
self.current_folder = os.getcwd()
self.build_dir = build_dir
pathlib.Path(self.build_dir).mkdir(parents=True, exist_ok=True... | 29.980392 | 139 | 0.625245 | 803 | 6,116 | 4.41345 | 0.183064 | 0.06772 | 0.094808 | 0.126411 | 0.705135 | 0.68623 | 0.679458 | 0.654628 | 0.652652 | 0.602991 | 0 | 0.004286 | 0.27518 | 6,116 | 204 | 140 | 29.980392 | 0.795173 | 0.046763 | 0 | 0.572581 | 0 | 0 | 0.098056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153226 | false | 0 | 0.040323 | 0 | 0.314516 | 0.032258 | 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 |
b0a36d580b37b1aa65b0deea5fe5d604d7191926 | 456 | py | Python | 7.36.0.dev0/ietf/__init__.py | kesara/ietf-datatracker | dca3ee2ee98bcb75a10687587cf631750be34c79 | [
"Unlicense"
] | null | null | null | 7.36.0.dev0/ietf/__init__.py | kesara/ietf-datatracker | dca3ee2ee98bcb75a10687587cf631750be34c79 | [
"Unlicense"
] | null | null | null | 7.36.0.dev0/ietf/__init__.py | kesara/ietf-datatracker | dca3ee2ee98bcb75a10687587cf631750be34c79 | [
"Unlicense"
] | null | null | null | # Copyright The IETF Trust 2007-2020, All Rights Reserved
# -*- coding: utf-8 -*-
from . import checks # pyflakes:ignore
# Don't add patch number here:
__version__ = "7.36.0"
# set this to ".p1", ".p2", etc. after patching
__patch__ = ""
__date__ = "$Date: 2021-08-07 03:05:11 +1200 (... | 25.333333 | 82 | 0.600877 | 66 | 456 | 3.787879 | 0.848485 | 0.048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 0.247807 | 456 | 17 | 83 | 26.823529 | 0.54519 | 0.368421 | 0 | 0 | 0 | 0.333333 | 0.489362 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b0a8efb7e0b3d51dc675bf59b77975003dd3a793 | 239 | py | Python | hangover/python/main.py | jimjh/challenges | 75cac97ac8da5c545694633b921068cc9b15cbef | [
"MIT"
] | null | null | null | hangover/python/main.py | jimjh/challenges | 75cac97ac8da5c545694633b921068cc9b15cbef | [
"MIT"
] | null | null | null | hangover/python/main.py | jimjh/challenges | 75cac97ac8da5c545694633b921068cc9b15cbef | [
"MIT"
] | null | null | null | import sys
for line in sys.stdin:
if line == "0.00\n": break;
c = float(line.strip())
(curr_n, curr_len) = (0, 0.0)
while c > curr_len:
curr_n += 1
curr_len += 1.0/(1 + curr_n)
print curr_n, "card(s)"
| 19.916667 | 36 | 0.531381 | 43 | 239 | 2.790698 | 0.488372 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05988 | 0.301255 | 239 | 11 | 37 | 21.727273 | 0.658683 | 0 | 0 | 0 | 0 | 0 | 0.054622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b0b164ba100d3f0c0149f10d85535859b2b5f9aa | 847 | py | Python | backend/youngun/youngun/apps/usermanager/migrations/0008_auto_20200710_1945.py | aakashbajaj/Youngun-Campaign-Tracking | a3b4f283b22cefb92c72f7638ee2a9da72622de0 | [
"Apache-2.0"
] | null | null | null | backend/youngun/youngun/apps/usermanager/migrations/0008_auto_20200710_1945.py | aakashbajaj/Youngun-Campaign-Tracking | a3b4f283b22cefb92c72f7638ee2a9da72622de0 | [
"Apache-2.0"
] | 1 | 2021-09-22T19:27:06.000Z | 2021-09-22T19:27:06.000Z | backend/youngun/youngun/apps/usermanager/migrations/0008_auto_20200710_1945.py | aakashbajaj/Youngun-Campaign-Tracking | a3b4f283b22cefb92c72f7638ee2a9da72622de0 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0.7 on 2020-07-10 19:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('usermanager', '0007_staffprofile_added_by'),
]
operations = [
migrations.AddField(
model_name='... | 33.88 | 181 | 0.661157 | 96 | 847 | 5.697917 | 0.458333 | 0.058501 | 0.076782 | 0.120658 | 0.497258 | 0.497258 | 0.497258 | 0.347349 | 0.347349 | 0.347349 | 0 | 0.028486 | 0.212515 | 847 | 24 | 182 | 35.291667 | 0.791604 | 0.053129 | 0 | 0.333333 | 1 | 0 | 0.17875 | 0.0325 | 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 |
b0b699db5f12c2da9d94aef96fdd6e509b14bc91 | 3,233 | py | Python | statssite/home/www-data/stats/frontpage/__init__.py | tigran-a/ACDCStats | 45daaba3149535face316e6c6e117409ae2f9cbf | [
"Apache-2.0"
] | null | null | null | statssite/home/www-data/stats/frontpage/__init__.py | tigran-a/ACDCStats | 45daaba3149535face316e6c6e117409ae2f9cbf | [
"Apache-2.0"
] | null | null | null | statssite/home/www-data/stats/frontpage/__init__.py | tigran-a/ACDCStats | 45daaba3149535face316e6c6e117409ae2f9cbf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
(c) Copyright 2015 Tigran Avanesov, SnT, University of Luxembourg
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/LICEN... | 30.790476 | 88 | 0.706155 | 472 | 3,233 | 4.690678 | 0.252119 | 0.146341 | 0.064589 | 0.146793 | 0.547425 | 0.547425 | 0.315718 | 0.284101 | 0.171635 | 0.033424 | 0 | 0.005269 | 0.119394 | 3,233 | 104 | 89 | 31.086538 | 0.772392 | 0.189298 | 0 | 0 | 0 | 0 | 0.222308 | 0.008133 | 0 | 0 | 0 | 0 | 0 | 1 | 0.194444 | false | 0 | 0.041667 | 0.180556 | 0.444444 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b0b7a1ee44871691230e53e5e869d3ae860a828e | 556 | py | Python | silk/migrations/0008_fix_request_prof_file_null.py | pikhovkin/django-silk | 669dcda2420802468596c16cd5e2a7068a03a96f | [
"MIT"
] | 2 | 2018-11-20T13:06:51.000Z | 2019-08-09T08:50:52.000Z | silk/migrations/0008_fix_request_prof_file_null.py | pikhovkin/django-silk | 669dcda2420802468596c16cd5e2a7068a03a96f | [
"MIT"
] | null | null | null | silk/migrations/0008_fix_request_prof_file_null.py | pikhovkin/django-silk | 669dcda2420802468596c16cd5e2a7068a03a96f | [
"MIT"
] | 1 | 2019-06-10T17:48:38.000Z | 2019-06-10T17:48:38.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2018-01-11 09:51
from __future__ import unicode_literals
from django.db import migrations, models
import silk.storage
class Migration(migrations.Migration):
dependencies = [
('silk', '0007_add_support_oracle'),
]
operations = [
migr... | 25.272727 | 135 | 0.647482 | 64 | 556 | 5.4375 | 0.796875 | 0.063218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053488 | 0.226619 | 556 | 21 | 136 | 26.47619 | 0.755814 | 0.120504 | 0 | 0 | 1 | 0 | 0.088477 | 0.047325 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b0d13dd47e24fbf4938a48da87fda17b6b420eea | 9,522 | py | Python | tests/cli/check_mode_test.py | twanh/note-system | 7134d0dcf591a5792825c811493ee827739a6150 | [
"MIT"
] | 1 | 2021-02-25T12:14:14.000Z | 2021-02-25T12:14:14.000Z | tests/cli/check_mode_test.py | twanh/note-system | 7134d0dcf591a5792825c811493ee827739a6150 | [
"MIT"
] | 34 | 2021-02-23T17:31:21.000Z | 2022-01-10T20:30:42.000Z | tests/cli/check_mode_test.py | twanh/note-system | 7134d0dcf591a5792825c811493ee827739a6150 | [
"MIT"
] | null | null | null | import os
from typing import List
from unittest.mock import Mock
from unittest.mock import patch
import pytest
from py.path import local as Path
from notesystem.modes.base_mode import ModeOptions
from notesystem.modes.check_mode.check_mode import CheckMode
from notesystem.modes.check_mode.check_mode import CheckModeA... | 30.228571 | 78 | 0.677904 | 1,236 | 9,522 | 4.917476 | 0.147249 | 0.100691 | 0.048371 | 0.055281 | 0.589503 | 0.534386 | 0.488812 | 0.436821 | 0.352583 | 0.309148 | 0 | 0.001465 | 0.21172 | 9,522 | 314 | 79 | 30.324841 | 0.808287 | 0.15648 | 0 | 0.431373 | 0 | 0 | 0.237079 | 0.13438 | 0 | 0 | 0 | 0.025478 | 0.093137 | 1 | 0.078431 | false | 0.019608 | 0.058824 | 0 | 0.137255 | 0.014706 | 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 |
b0dbaa3a2c23cf728dc378a52ef7bb6f4895f1a2 | 6,019 | py | Python | meggie/actions/raw_resample/dialogs/resamplingDialogUi.py | Teekuningas/meggie | 0790559febb990a5487d4f0c92987066632e1d99 | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2020-04-29T08:57:11.000Z | 2021-01-15T21:21:51.000Z | meggie/actions/raw_resample/dialogs/resamplingDialogUi.py | Teekuningas/meggie | 0790559febb990a5487d4f0c92987066632e1d99 | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2019-05-03T10:31:16.000Z | 2021-05-06T14:59:55.000Z | meggie/actions/raw_resample/dialogs/resamplingDialogUi.py | cibr-jyu/meggie | 0790559febb990a5487d4f0c92987066632e1d99 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2020-12-12T09:57:00.000Z | 2020-12-20T17:12:05.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'resamplingDialogUi.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_resamplingDialog(object):
def setupUi(self, resamplingDia... | 63.357895 | 115 | 0.761754 | 504 | 6,019 | 9.065476 | 0.253968 | 0.027577 | 0.00394 | 0.00766 | 0.13329 | 0.05209 | 0 | 0 | 0 | 0 | 0 | 0.016295 | 0.143545 | 6,019 | 94 | 116 | 64.031915 | 0.870029 | 0.031733 | 0 | 0 | 1 | 0 | 0.089691 | 0.015979 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.012195 | 0 | 0.04878 | 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 |
b0e6305a2cf64b871bf9225ff10d9fe9bc150783 | 235 | py | Python | Curso_Guanabara/aula57.py | lucianojunnior17/Python | b216c8f567fcf9ff80aeae7441eadc99c2aad83f | [
"MIT"
] | 1 | 2020-05-21T10:54:49.000Z | 2020-05-21T10:54:49.000Z | Curso_Guanabara/aula57.py | lucianojunnior17/Python | b216c8f567fcf9ff80aeae7441eadc99c2aad83f | [
"MIT"
] | null | null | null | Curso_Guanabara/aula57.py | lucianojunnior17/Python | b216c8f567fcf9ff80aeae7441eadc99c2aad83f | [
"MIT"
] | null | null | null | sexo = str(input('Informe seu sexo : ')).strip().upper()[0]
while sexo not in 'MmFf':
sexo = str(input('Dados invalidos Por favor digite novamente : ')).strip().upper()[0]
print('Sexo {} registrado com sucesso'.format(sexo))
| 39.166667 | 90 | 0.655319 | 33 | 235 | 4.666667 | 0.69697 | 0.090909 | 0.155844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.157447 | 235 | 5 | 91 | 47 | 0.767677 | 0 | 0 | 0 | 0 | 0 | 0.427948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
7c01c5eb2605fd57d6f3650794a739c7851654a0 | 2,059 | py | Python | APITest/TestSourceAPI.py | josephramsay/LDSAPI | 899213bfee78bfef372be45cba03515d66f0fb68 | [
"BSD-3-Clause-Clear"
] | null | null | null | APITest/TestSourceAPI.py | josephramsay/LDSAPI | 899213bfee78bfef372be45cba03515d66f0fb68 | [
"BSD-3-Clause-Clear"
] | 3 | 2017-10-05T19:47:26.000Z | 2021-12-13T19:42:37.000Z | APITest/TestSourceAPI.py | josephramsay/LDSAPI | 899213bfee78bfef372be45cba03515d66f0fb68 | [
"BSD-3-Clause-Clear"
] | 1 | 2017-10-23T22:26:02.000Z | 2017-10-23T22:26:02.000Z | '''
Created on 17/12/2013
@author: jramsay
'''
#https://koordinates.com/services/api/v1/sources/1/
import unittest
import json
import os
from APIInterface.LDSAPI import SourceAPI
from .TestFileReader import FileReader
from .TestSuper import APITestCase
sources = (
("Alices' Mapinfo Server", "mapinfo", "No Pro... | 38.12963 | 179 | 0.630889 | 256 | 2,059 | 5.023438 | 0.417969 | 0.048989 | 0.024883 | 0.034215 | 0.090202 | 0.031104 | 0 | 0 | 0 | 0 | 0 | 0.017119 | 0.177271 | 2,059 | 54 | 180 | 38.12963 | 0.742031 | 0.043711 | 0 | 0.0625 | 0 | 0 | 0.449032 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.21875 | 0.1875 | 0 | 0.34375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
7c02da1ccd75b83a15f5cab637ddc77dcd83b163 | 599 | py | Python | 02_oop/01_classes_and_objects/03_initializing_with_optional_params.py | doanthanhnhan/learningPY | 93c10c5225a306c791402095e1cf0b454f31d0c2 | [
"MIT"
] | 1 | 2021-04-04T02:39:05.000Z | 2021-04-04T02:39:05.000Z | 02_oop/01_classes_and_objects/03_initializing_with_optional_params.py | doanthanhnhan/learningPY | 93c10c5225a306c791402095e1cf0b454f31d0c2 | [
"MIT"
] | null | null | null | 02_oop/01_classes_and_objects/03_initializing_with_optional_params.py | doanthanhnhan/learningPY | 93c10c5225a306c791402095e1cf0b454f31d0c2 | [
"MIT"
] | null | null | null | class Employee:
# defining the properties and assigning None to them
def __init__(self, ID=None, salary=0, department=None):
self.ID = ID
self.salary = salary
self.department = department
# creating an object of the Employee class with default parameters
Steve = Employee()
Mark = Employee("3789", 2500... | 28.52381 | 66 | 0.714524 | 80 | 599 | 5.3 | 0.4 | 0.028302 | 0.061321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017682 | 0.15025 | 599 | 21 | 67 | 28.52381 | 0.815324 | 0.255426 | 0 | 0 | 0 | 0 | 0.171558 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0.533333 | 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 |
7c045e929297fbddbc9f36fc00389c76fd45bd35 | 7,244 | py | Python | config/custom_components/motioneye/camera.py | azogue/hassio_config | 591f158794c173d6391179ab2f52348d58c49aad | [
"MIT"
] | 18 | 2018-07-22T15:19:20.000Z | 2022-01-09T20:57:43.000Z | config/custom_components/motioneye/camera.py | azogue/hassio_config | 591f158794c173d6391179ab2f52348d58c49aad | [
"MIT"
] | 1 | 2020-04-30T08:33:36.000Z | 2020-05-03T08:25:00.000Z | config/custom_components/motioneye/camera.py | azogue/hassio_config | 591f158794c173d6391179ab2f52348d58c49aad | [
"MIT"
] | 8 | 2018-07-21T09:29:53.000Z | 2021-11-10T19:06:32.000Z | """
Support for MotionEye Cameras.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/camera.motioneye/
"""
import asyncio
import logging
from urllib.parse import urlparse
import re
import aiohttp
import async_timeout
import voluptuous as vol
from homeassi... | 37.340206 | 114 | 0.651298 | 884 | 7,244 | 5.06448 | 0.24095 | 0.060308 | 0.029707 | 0.039089 | 0.239446 | 0.193433 | 0.134465 | 0.10096 | 0.082198 | 0.048693 | 0 | 0.008181 | 0.257592 | 7,244 | 193 | 115 | 37.533679 | 0.824284 | 0.118995 | 0 | 0.261194 | 0 | 0 | 0.092985 | 0.013236 | 0 | 0 | 0 | 0.010363 | 0 | 1 | 0.052239 | false | 0 | 0.089552 | 0 | 0.216418 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.