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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28ffb7f01a3f7a0563506893a093a926c0688af4 | 498 | py | Python | demo/demo_form.py | ideiaseo/django_ideia_summernote | bc137cac49f4066d5d24923b8e8f7e1ef44393fc | [
"MIT"
] | null | null | null | demo/demo_form.py | ideiaseo/django_ideia_summernote | bc137cac49f4066d5d24923b8e8f7e1ef44393fc | [
"MIT"
] | null | null | null | demo/demo_form.py | ideiaseo/django_ideia_summernote | bc137cac49f4066d5d24923b8e8f7e1ef44393fc | [
"MIT"
] | null | null | null | from django.forms import forms
from demo.models import Book
from ideia_summernote.fields import SummernoteFormField
class DemoForm(forms.Form):
text = SummernoteFormField(editor_conf='comment')
def submit(self):
if self.is_valid():
return self.__proccess__()
else:
... | 20.75 | 66 | 0.644578 | 57 | 498 | 5.421053 | 0.596491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267068 | 498 | 24 | 67 | 20.75 | 0.846575 | 0 | 0 | 0 | 0 | 0 | 0.032064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.066667 | 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 |
e90117b015646a4bb1c089d1b7324334cca2c1d9 | 707 | py | Python | src/aux_and_things/look_at_development_patterns.py | a0x8o/commai-env | e5d2f17f78c074e97d5654fd14e3fdb9dbbf44b1 | [
"BSD-3-Clause"
] | 6 | 2016-10-03T20:07:05.000Z | 2017-04-30T06:28:20.000Z | src/aux_and_things/look_at_development_patterns.py | axbaretto/commai-env | e5d2f17f78c074e97d5654fd14e3fdb9dbbf44b1 | [
"BSD-3-Clause"
] | null | null | null | src/aux_and_things/look_at_development_patterns.py | axbaretto/commai-env | e5d2f17f78c074e97d5654fd14e3fdb9dbbf44b1 | [
"BSD-3-Clause"
] | 1 | 2022-02-14T21:19:13.000Z | 2022-02-14T21:19:13.000Z | import json
import math
import sys
data=json.load(open(sys.argv[1]))
for task in data['S'].keys():
print("analyzing task " + str(task))
total_task_episodes = 0
last_is_nan = True
for task_number,success_count in enumerate(data['S'][task]):
if not (math.isnan(success_count)):
if (la... | 32.136364 | 83 | 0.60396 | 98 | 707 | 4.122449 | 0.367347 | 0.111386 | 0.210396 | 0.064356 | 0.207921 | 0.118812 | 0.118812 | 0 | 0 | 0 | 0 | 0.005929 | 0.2843 | 707 | 21 | 84 | 33.666667 | 0.79249 | 0 | 0 | 0.105263 | 0 | 0 | 0.113154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.157895 | 0.210526 | 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 |
e90633c7a26bb7c506336b39685160e103651cc1 | 461 | py | Python | packages/migrations/0004_package_color.py | vintkor/cryptotrade | cd27b5d58e4149cf9ad5e035983fcec566369833 | [
"MIT"
] | 1 | 2019-07-26T09:54:32.000Z | 2019-07-26T09:54:32.000Z | packages/migrations/0004_package_color.py | shamanu4/test_project | 8ec52b5ab88c7bae4e469dc04fe64630e2f081fa | [
"MIT"
] | 6 | 2020-06-05T19:00:20.000Z | 2022-03-11T23:29:35.000Z | packages/migrations/0004_package_color.py | vintkor/cryptotrade | cd27b5d58e4149cf9ad5e035983fcec566369833 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-01 16:17
import colorfield.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('packages', '0003_auto_20180712_1634'),
]
operations = [
migrations.AddField(
model_name='package',
... | 23.05 | 109 | 0.633406 | 51 | 461 | 5.607843 | 0.803922 | 0.111888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112717 | 0.249458 | 461 | 19 | 110 | 24.263158 | 0.713873 | 0.097614 | 0 | 0 | 1 | 0 | 0.147343 | 0.055556 | 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 |
e914c5e0520a597c1a59d7c4e875c8676fcf923a | 3,880 | py | Python | cart/models.py | a-samir97/E-commerce-django-API | bfefd47fea1f4709e02960c9cb5280830da1983f | [
"MIT"
] | null | null | null | cart/models.py | a-samir97/E-commerce-django-API | bfefd47fea1f4709e02960c9cb5280830da1983f | [
"MIT"
] | 6 | 2020-12-02T22:49:03.000Z | 2020-12-03T01:50:02.000Z | cart/models.py | a-samir97/E-commerce-django-API | bfefd47fea1f4709e02960c9cb5280830da1983f | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
from products.models import Product
class Cart(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name='carts')
is_ordered = models.BooleanField(default=False)
is_arrived = models.BooleanField(de... | 40.842105 | 102 | 0.585825 | 442 | 3,880 | 4.970588 | 0.176471 | 0.189349 | 0.138371 | 0.114702 | 0.662722 | 0.635412 | 0.606281 | 0.606281 | 0.566227 | 0.542558 | 0 | 0.078137 | 0.313918 | 3,880 | 95 | 103 | 40.842105 | 0.747183 | 0.023454 | 0 | 0.463415 | 0 | 0 | 0.008714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085366 | false | 0 | 0.036585 | 0.036585 | 0.512195 | 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 |
e916d06ea640d73528698a39f9f62e556c09f14b | 851 | py | Python | ElevatorGUI/PyQt GUI/RewardWellLevel3.py | kemerelab/elevator | ba0861ff509a817027f0c341e0f5c8c49ea6ee15 | [
"MIT"
] | null | null | null | ElevatorGUI/PyQt GUI/RewardWellLevel3.py | kemerelab/elevator | ba0861ff509a817027f0c341e0f5c8c49ea6ee15 | [
"MIT"
] | null | null | null | ElevatorGUI/PyQt GUI/RewardWellLevel3.py | kemerelab/elevator | ba0861ff509a817027f0c341e0f5c8c49ea6ee15 | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
import time;
HIGH = 0
LOW = 1
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
checker1 = 1
checker2 = 0
trigger5 = 25
pump5 = 13
trigger6 = 8
pump6 = 26
GPIO.setup(pump5, GPIO.OUT)
GPIO.setup(trigger5, GPIO.IN)
GPIO.setup(pump6, GPIO.OUT)
GPIO.setup(trigger6, GPIO.IN)
#for outputs, 0 enable... | 18.5 | 52 | 0.692127 | 135 | 851 | 4.362963 | 0.348148 | 0.135823 | 0.101868 | 0.091681 | 0.067912 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0701 | 0.178613 | 851 | 45 | 53 | 18.911111 | 0.772532 | 0.054054 | 0 | 0.378378 | 0 | 0 | 0.066002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.054054 | null | null | 0.054054 | 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 |
e919aeab86967733c4f35776c7fe810753db3cab | 562 | py | Python | hw_asr/augmentations/wave_augmentations/pitch_shift.py | ADrozdova/ASR | 9a3e2f045e0a86f560665e791301e961e3ef6cad | [
"MIT"
] | null | null | null | hw_asr/augmentations/wave_augmentations/pitch_shift.py | ADrozdova/ASR | 9a3e2f045e0a86f560665e791301e961e3ef6cad | [
"MIT"
] | null | null | null | hw_asr/augmentations/wave_augmentations/pitch_shift.py | ADrozdova/ASR | 9a3e2f045e0a86f560665e791301e961e3ef6cad | [
"MIT"
] | null | null | null | import random
import librosa as lr
import torch
from torch import Tensor
from hw_asr.augmentations.base import AugmentationBase
class PitchShift(AugmentationBase):
def __init__(self, **kwargs):
self.steps = kwargs.get("steps")
self.sampling_rate = kwargs.get("sampling_rate", 16000)
def __ca... | 29.578947 | 111 | 0.718861 | 76 | 562 | 5.092105 | 0.486842 | 0.069767 | 0.082687 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015021 | 0.170819 | 562 | 18 | 112 | 31.222222 | 0.815451 | 0 | 0 | 0 | 0 | 0 | 0.032028 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
e91c1eec768e2068ec012377af4b42e59a06b217 | 463 | py | Python | majora2/migrations/0090_auto_20200526_1307.py | CLIMB-COVID/majora2 | 46ea1809a61e4a768f8cbacaf54cba5c4d82e1f2 | [
"MIT"
] | 29 | 2019-04-04T18:03:43.000Z | 2022-02-09T12:47:30.000Z | majora2/migrations/0090_auto_20200526_1307.py | CLIMB-COVID/majora2 | 46ea1809a61e4a768f8cbacaf54cba5c4d82e1f2 | [
"MIT"
] | 66 | 2019-04-02T16:18:40.000Z | 2022-01-25T16:15:42.000Z | majora2/migrations/0090_auto_20200526_1307.py | CLIMB-COVID/majora2 | 46ea1809a61e4a768f8cbacaf54cba5c4d82e1f2 | [
"MIT"
] | 6 | 2020-04-10T14:15:32.000Z | 2022-01-18T13:08:35.000Z | # Generated by Django 2.2.10 on 2020-05-26 13:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('majora2', '0089_auto_20200521_1232'),
]
operations = [
migrations.AlterField(
model_name='coguk_biosourcesamplingprocesssupplem... | 24.368421 | 73 | 0.652268 | 50 | 463 | 5.86 | 0.82 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0.24406 | 463 | 18 | 74 | 25.722222 | 0.737143 | 0.099352 | 0 | 0 | 1 | 0 | 0.228916 | 0.212048 | 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 |
e91d8ce2da340fe8ca08da0b9f191d4264065614 | 438 | py | Python | mindset_app/urls.py | warrenatmindset/DjangoFlowApp | 50aa597ec1ac41500b9c5877d114ad1f6c9832ea | [
"MIT"
] | null | null | null | mindset_app/urls.py | warrenatmindset/DjangoFlowApp | 50aa597ec1ac41500b9c5877d114ad1f6c9832ea | [
"MIT"
] | null | null | null | mindset_app/urls.py | warrenatmindset/DjangoFlowApp | 50aa597ec1ac41500b9c5877d114ad1f6c9832ea | [
"MIT"
] | null | null | null | from django.conf.urls import include, url # noqa
from django.contrib import admin
from django.views.generic import TemplateView
import django_js_reverse.views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^jsreverse/$', django_js_reverse.views.urls_js, name='js_reverse'),
url(r'^', include('users.u... | 36.5 | 77 | 0.732877 | 60 | 438 | 5.25 | 0.4 | 0.063492 | 0.07619 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100457 | 438 | 12 | 78 | 36.5 | 0.799492 | 0.009132 | 0 | 0 | 0 | 0 | 0.235566 | 0 | 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 |
e91f79ef1643e5c623461948c2ffbb6a9824d708 | 545 | py | Python | python/isbn-verifier/isbn_verifier.py | gurupratap-matharu/Exercism | a083c8d4bbc10d777524d917329a34e560201c9c | [
"MIT"
] | null | null | null | python/isbn-verifier/isbn_verifier.py | gurupratap-matharu/Exercism | a083c8d4bbc10d777524d917329a34e560201c9c | [
"MIT"
] | null | null | null | python/isbn-verifier/isbn_verifier.py | gurupratap-matharu/Exercism | a083c8d4bbc10d777524d917329a34e560201c9c | [
"MIT"
] | null | null | null | def verify(isbn):
isbn = isbn.split('-')
total = 0
if isbn[:-1].isalpha() OR len(isbn) != 10 or (isbn[-1] != 'X' AND isbn[-1].isnumeric() == False):
return False
elif isbn[-1] == 'X':
total = 10
isbn.remove('X')
isbn.append('0')
isbn = ''.join(isbn)
if isbn.isnu... | 22.708333 | 101 | 0.504587 | 77 | 545 | 3.571429 | 0.467532 | 0.072727 | 0.043636 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093995 | 0.297248 | 545 | 23 | 102 | 23.695652 | 0.624021 | 0 | 0 | 0 | 0 | 0 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e9205c1030566e0402aa6e60136c20d17212c48e | 15,544 | py | Python | BertQA.py | zswvivi/icdm_pqa | cdcf4c5ef57e2107150a259873f0f067184515e6 | [
"Apache-2.0"
] | 4 | 2020-03-26T01:00:00.000Z | 2020-09-27T00:16:17.000Z | BertQA.py | zswvivi/icdm_pqa | cdcf4c5ef57e2107150a259873f0f067184515e6 | [
"Apache-2.0"
] | null | null | null | BertQA.py | zswvivi/icdm_pqa | cdcf4c5ef57e2107150a259873f0f067184515e6 | [
"Apache-2.0"
] | 2 | 2020-07-10T10:17:14.000Z | 2021-03-06T11:38:35.000Z | import pandas as pd
import tensorflow as tf
import tensorflow_hub as hub
from datetime import datetime
import numpy as np
from sklearn.utils import shuffle
from tensorflow import keras
import os
import re
#import bert
import run_classifier
import optimization
import tokenization
import modeling
import json
import ast... | 36.488263 | 178 | 0.637159 | 2,036 | 15,544 | 4.605599 | 0.195973 | 0.028794 | 0.013864 | 0.008532 | 0.192279 | 0.13981 | 0.110483 | 0.093527 | 0.081263 | 0.053322 | 0 | 0.012238 | 0.248263 | 15,544 | 425 | 179 | 36.574118 | 0.790244 | 0 | 0 | 0.120253 | 0 | 0 | 0.074749 | 0.007196 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.056962 | null | null | 0.025316 | 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 |
e921b0ee84f023cb03149cd7b11c979d599f5463 | 3,790 | py | Python | src/old-verbio/visualize.py | jasondraether/verbio | 0db543ebdee05e5cc24556d2239b7eaf215361a2 | [
"MIT"
] | null | null | null | src/old-verbio/visualize.py | jasondraether/verbio | 0db543ebdee05e5cc24556d2239b7eaf215361a2 | [
"MIT"
] | null | null | null | src/old-verbio/visualize.py | jasondraether/verbio | 0db543ebdee05e5cc24556d2239b7eaf215361a2 | [
"MIT"
] | null | null | null | from typing import List
from matplotlib import pyplot as plt
from matplotlib import animation
import numpy as np
from pydub import AudioSegment
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
# Input X is of shape (N, D) where N is the number of points and D is the dimension
# Input y is o... | 39.072165 | 196 | 0.747493 | 614 | 3,790 | 4.436482 | 0.324104 | 0.075991 | 0.030837 | 0.029369 | 0.126652 | 0.030837 | 0.030837 | 0 | 0 | 0 | 0 | 0.011772 | 0.148285 | 3,790 | 96 | 197 | 39.479167 | 0.832094 | 0.380739 | 0 | 0.122449 | 0 | 0 | 0.007769 | 0 | 0 | 0 | 0 | 0.020833 | 0 | 1 | 0.081633 | false | 0 | 0.163265 | 0.020408 | 0.285714 | 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 |
e92233944953de6ef42a06e41db5217e8f9e3ce5 | 1,894 | py | Python | app/src/main/python/MyMusic/private/kuwo.py | pk-love-tjy/PkMusic | d8f618514ab9d5f994ceecd73bbd35be7275f31e | [
"MIT"
] | 2 | 2020-11-12T03:10:18.000Z | 2020-11-12T03:10:24.000Z | app/src/main/python/MyMusic/private/kuwo.py | pk-love-tjy/PkMusic | d8f618514ab9d5f994ceecd73bbd35be7275f31e | [
"MIT"
] | null | null | null | app/src/main/python/MyMusic/private/kuwo.py | pk-love-tjy/PkMusic | d8f618514ab9d5f994ceecd73bbd35be7275f31e | [
"MIT"
] | null | null | null |
import copy
import json
import queue
import requests
from MyMusic import config
from MyMusic.api import MusicApi
from MyMusic.song import BasicSong
from urllib.parse import quote
class KuwoApi(MusicApi):
session = copy.deepcopy(MusicApi.session)
class KuwoSong(BasicSong):
def __init__(self):
super(... | 24.597403 | 136 | 0.60982 | 227 | 1,894 | 4.960352 | 0.436123 | 0.031083 | 0.019538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01669 | 0.24076 | 1,894 | 77 | 137 | 24.597403 | 0.766342 | 0.002112 | 0 | 0.051724 | 0 | 0 | 0.131243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.051724 | 0.155172 | 0 | 0.344828 | 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 |
e9271982e4b76ca69560dd913ad0208dd92055eb | 1,854 | py | Python | nginxPlusInfo.py | CheggEng/zabbix-nginxPlus | d0b7a53bfab7e1f8fb9768ac8677ac8a21d887f5 | [
"MIT"
] | 6 | 2016-09-27T11:14:59.000Z | 2019-12-25T21:54:01.000Z | nginxPlusInfo.py | CheggEng/zabbix-nginxPlus | d0b7a53bfab7e1f8fb9768ac8677ac8a21d887f5 | [
"MIT"
] | null | null | null | nginxPlusInfo.py | CheggEng/zabbix-nginxPlus | d0b7a53bfab7e1f8fb9768ac8677ac8a21d887f5 | [
"MIT"
] | 3 | 2017-08-23T11:46:01.000Z | 2019-12-25T21:55:13.000Z | #!/usr/bin/python
import requests
import json
from sys import argv
import collections
import argparse
parser = argparse.ArgumentParser(description='This is a simple Python tool that fetches data from nginx+ status api')
parser.add_argument('--url', help='Example: http://localhost:8080/status',default='http://localhos... | 30.393443 | 117 | 0.63808 | 266 | 1,854 | 4.323308 | 0.353383 | 0.03913 | 0.073913 | 0.04 | 0.18087 | 0.161739 | 0.106087 | 0.067826 | 0.067826 | 0 | 0 | 0.00813 | 0.203884 | 1,854 | 60 | 118 | 30.9 | 0.771003 | 0.00863 | 0 | 0.12766 | 0 | 0 | 0.255852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106383 | null | null | 0.085106 | 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 |
e92803e697f1780347a62d0ca8da4faef748ee00 | 1,925 | py | Python | lewfish/septaprediction/kml.py | lewfish/septa-bus-prediction | 94592b47443aaf2815219aa5fff59c8b1cd059ee | [
"MIT"
] | null | null | null | lewfish/septaprediction/kml.py | lewfish/septa-bus-prediction | 94592b47443aaf2815219aa5fff59c8b1cd059ee | [
"MIT"
] | null | null | null | lewfish/septaprediction/kml.py | lewfish/septa-bus-prediction | 94592b47443aaf2815219aa5fff59c8b1cd059ee | [
"MIT"
] | null | null | null | """Some code for dealing with SEPTA KML files. Not currently being used."""
import lxml.etree as etree
import matplotlib.pyplot as plt
import matplotlib.cm as cm
def parse_kml(fn):
"""Parses a SEPTA route KML file into a list of lat/lons."""
root = etree.parse(fn)
# print(etree.tostring(root, pretty_pr... | 26.736111 | 82 | 0.520519 | 273 | 1,925 | 3.549451 | 0.344322 | 0.06192 | 0.009288 | 0.04644 | 0.160991 | 0.160991 | 0.160991 | 0.111455 | 0.111455 | 0.111455 | 0 | 0.017121 | 0.332468 | 1,925 | 71 | 83 | 27.112676 | 0.736965 | 0.02961 | 0 | 0.192308 | 0 | 0 | 0.060191 | 0.02205 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.057692 | null | null | 0.038462 | 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 |
e9286fae90c514a9de2a05765b60d9d60dbc547f | 396 | py | Python | photos/urls.py | Haseb-ali/humanity-care-services-app | c3c5ad5bd23ab27243daaac412ebb843067b5d87 | [
"RSA-MD"
] | null | null | null | photos/urls.py | Haseb-ali/humanity-care-services-app | c3c5ad5bd23ab27243daaac412ebb843067b5d87 | [
"RSA-MD"
] | 3 | 2021-10-04T19:42:45.000Z | 2021-10-04T19:43:05.000Z | photos/urls.py | Haseb-ali/humanity-care-services-app | c3c5ad5bd23ab27243daaac412ebb843067b5d87 | [
"RSA-MD"
] | null | null | null | from django.urls import path
from .import views
urlpatterns = [
path('upload', views.upload_photos, name="upload_photos"),
path('gallary', views.gallery, name="gallary"),
path('delete/<int:id>', views.delete_photo, name="delete_photo"),
path('update/<int:id>', views.update_photo, name="update_photo"),
... | 39.6 | 74 | 0.70202 | 54 | 396 | 5 | 0.333333 | 0.055556 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116162 | 396 | 9 | 75 | 44 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 0.05303 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
e92b31953b7879fd1ce969b6b4917fdf43d6a85e | 1,310 | py | Python | lego/apps/ical/migrations/0001_initial.py | andrinelo/lego | 9b53c8fe538d9107b980a70e2a21fb487cc3b290 | [
"MIT"
] | null | null | null | lego/apps/ical/migrations/0001_initial.py | andrinelo/lego | 9b53c8fe538d9107b980a70e2a21fb487cc3b290 | [
"MIT"
] | null | null | null | lego/apps/ical/migrations/0001_initial.py | andrinelo/lego | 9b53c8fe538d9107b980a70e2a21fb487cc3b290 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-28 10:20
from __future__ import unicode_literals
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import lego.apps.ical.models
class Migration(migrations.Migration):
initial = True
dep... | 27.87234 | 96 | 0.492366 | 114 | 1,310 | 5.482456 | 0.605263 | 0.0384 | 0.0448 | 0.0704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025 | 0.419847 | 1,310 | 46 | 97 | 28.478261 | 0.797368 | 0.051908 | 0 | 0.108108 | 1 | 0 | 0.023406 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.135135 | 0 | 0.243243 | 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 |
e92dcc58e709f45ae72519d9175576ef8efeb534 | 7,509 | py | Python | src/AWS.py | riflab/autowa | ad596c451939e44f85b3749111ad93cab2c8843e | [
"Apache-2.0"
] | null | null | null | src/AWS.py | riflab/autowa | ad596c451939e44f85b3749111ad93cab2c8843e | [
"Apache-2.0"
] | null | null | null | src/AWS.py | riflab/autowa | ad596c451939e44f85b3749111ad93cab2c8843e | [
"Apache-2.0"
] | null | null | null | import schedule
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.chrome.opt... | 36.275362 | 179 | 0.620189 | 934 | 7,509 | 4.82334 | 0.229122 | 0.031964 | 0.018646 | 0.039956 | 0.322309 | 0.257048 | 0.236404 | 0.180688 | 0.178912 | 0.158935 | 0 | 0.012206 | 0.23625 | 7,509 | 206 | 180 | 36.451456 | 0.773322 | 0.032628 | 0 | 0.239264 | 0 | 0.04908 | 0.214448 | 0.108931 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006135 | 0.092025 | null | null | 0.134969 | 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 |
e934e9fe6ca7a70acbc5b24fa8a08f03df73678e | 421 | py | Python | py_learn/_sort/insert_sort.py | blackox626/python_learn | f4ca80305ef586691a284032b615bd68a57aadd5 | [
"MIT"
] | null | null | null | py_learn/_sort/insert_sort.py | blackox626/python_learn | f4ca80305ef586691a284032b615bd68a57aadd5 | [
"MIT"
] | null | null | null | py_learn/_sort/insert_sort.py | blackox626/python_learn | f4ca80305ef586691a284032b615bd68a57aadd5 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
"""
插入排序
insert + sort
"""
def insert_sort(ds):
for i in range(1, len(ds)):
key = ds[i]
j = i - 1
while j >= 0 and key < ds[j]:
ds[j + 1] = ds[j]
j -= 1
ds[j + 1] = key
random_wait_sort = [12, 34, 32, 24, 28, 39, 5,
2... | 17.541667 | 65 | 0.470309 | 73 | 421 | 2.60274 | 0.493151 | 0.063158 | 0.221053 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 0.36342 | 421 | 23 | 66 | 18.304348 | 0.559701 | 0.085511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.083333 | 0.083333 | 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 |
e937eda82e68a8731fb61886de0df5f94026f6cf | 877 | py | Python | test/test_context.py | anselmrothe/EIG | 2e5da26bb0552bcaf6f9656519c8167808f0f6cb | [
"MIT"
] | 3 | 2019-03-12T15:55:00.000Z | 2022-01-27T23:09:30.000Z | test/test_context.py | anselmrothe/EIG | 2e5da26bb0552bcaf6f9656519c8167808f0f6cb | [
"MIT"
] | 1 | 2019-03-24T16:55:26.000Z | 2019-03-24T16:55:26.000Z | test/test_context.py | anselmrothe/EIG | 2e5da26bb0552bcaf6f9656519c8167808f0f6cb | [
"MIT"
] | 2 | 2019-08-18T18:44:05.000Z | 2020-09-30T05:47:15.000Z | import unittest
import numpy as np
from eig import Context, Bayes
from eig.battleship import BattleshipHypothesisSpace
class TestContext(unittest.TestCase):
def test_observe(self):
hs = BattleshipHypothesisSpace(grid_size=3, ship_labels=[1, 2],
ship_sizes=[2, 3], orientations=['V', 'H'])... | 30.241379 | 72 | 0.624857 | 106 | 877 | 5.103774 | 0.367925 | 0.011091 | 0.138632 | 0.160813 | 0.321627 | 0.321627 | 0.321627 | 0.321627 | 0.321627 | 0 | 0 | 0.043143 | 0.259977 | 877 | 28 | 73 | 31.321429 | 0.790447 | 0 | 0 | 0.136364 | 0 | 0 | 0.002281 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.045455 | 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 |
e93db738b45b37d7f8c6da9d8e4915ce95298197 | 2,018 | py | Python | redisolar/api/meter_reading.py | 4heck/ru102py | 1961965f283b014b46e9618464ec1df6d9e6b03b | [
"MIT"
] | 43 | 2020-08-04T12:07:23.000Z | 2022-03-03T06:10:31.000Z | redisolar/api/meter_reading.py | 4heck/ru102py | 1961965f283b014b46e9618464ec1df6d9e6b03b | [
"MIT"
] | 15 | 2020-08-20T21:05:03.000Z | 2022-02-27T02:37:42.000Z | redisolar/api/meter_reading.py | 4heck/ru102py | 1961965f283b014b46e9618464ec1df6d9e6b03b | [
"MIT"
] | 94 | 2020-07-31T16:55:07.000Z | 2022-03-24T12:19:34.000Z | from typing import Any
from typing import Dict
from typing import List
from typing import Optional
from typing import Tuple
from flask_restful import Resource
from marshmallow import fields
from webargs.flaskparser import use_args
from redisolar.api.base import DaoResource
from redisolar.models import MeterReading
fr... | 35.403509 | 85 | 0.711596 | 263 | 2,018 | 5.285171 | 0.288973 | 0.056115 | 0.057554 | 0.036691 | 0.263309 | 0.263309 | 0.221583 | 0.158273 | 0.158273 | 0.069065 | 0 | 0.00672 | 0.188801 | 2,018 | 56 | 86 | 36.035714 | 0.842395 | 0.135778 | 0 | 0.153846 | 0 | 0 | 0.036194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.282051 | 0 | 0.615385 | 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 |
e9444acff1ae34bb8085b7e0299bbe00f9cb2650 | 1,383 | py | Python | super_state_machine/extras.py | beregond/super_state_machine | 31ad527f4e6b7a01e315ce865735ca18957c223e | [
"BSD-3-Clause"
] | 4 | 2015-06-02T13:24:17.000Z | 2020-05-05T11:28:36.000Z | super_state_machine/extras.py | beregond/super_state_machine | 31ad527f4e6b7a01e315ce865735ca18957c223e | [
"BSD-3-Clause"
] | 3 | 2015-07-06T09:02:40.000Z | 2017-03-19T14:35:36.000Z | super_state_machine/extras.py | beregond/super_state_machine | 31ad527f4e6b7a01e315ce865735ca18957c223e | [
"BSD-3-Clause"
] | 3 | 2015-06-02T22:21:25.000Z | 2017-03-14T10:34:45.000Z | """Extra utilities for state machines, to make them more usable."""
from weakref import WeakKeyDictionary
class ProxyString(str):
"""String that proxies every call to nested machine."""
def __new__(cls, value, machine):
"""Create new string instance with reference to given machine."""
strin... | 28.8125 | 73 | 0.642082 | 156 | 1,383 | 5.461538 | 0.378205 | 0.098592 | 0.084507 | 0.053991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253073 | 1,383 | 47 | 74 | 29.425532 | 0.824782 | 0.219089 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.038462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a5d2a4dbd55173ed13451a1ac318058d99d259d | 8,210 | py | Python | idc/bgpparser/main.py | avihad/BGP_research | 2c1b15c89ca5216d0d9b54af43ba78c6fb22e400 | [
"Apache-2.0"
] | 1 | 2016-04-17T12:20:51.000Z | 2016-04-17T12:20:51.000Z | idc/bgpparser/main.py | avihad/BGP_research | 2c1b15c89ca5216d0d9b54af43ba78c6fb22e400 | [
"Apache-2.0"
] | null | null | null | idc/bgpparser/main.py | avihad/BGP_research | 2c1b15c89ca5216d0d9b54af43ba78c6fb22e400 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from RibParser import RibDump
from optparse import OptionParser
from pybgpdump import BGPDump
from os import listdir
from os.path import isfile, join
import pygal
import tarfile
from operator import itemgetter
import math
resourcesPath="../../resources/"
bgpUpdatesPath = resourcesPath + "updat... | 37.149321 | 176 | 0.656638 | 865 | 8,210 | 6.160694 | 0.241619 | 0.146744 | 0.081441 | 0.02721 | 0.262338 | 0.194971 | 0.152374 | 0.152374 | 0.151248 | 0.095327 | 0 | 0.013581 | 0.219732 | 8,210 | 221 | 177 | 37.149321 | 0.818295 | 0.06553 | 0 | 0.226667 | 0 | 0 | 0.121066 | 0.00653 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.06 | null | null | 0.06 | 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 |
3a64ccbe85f53b84b2f1ac7af2ea2a25a5572bed | 1,277 | py | Python | flask/ajax-button-send-GET-receive-JSON/main.py | tarifa10/python-examples | 1699bf56f01c7bbb1aa66102a7d007b16498a675 | [
"MIT"
] | 1 | 2020-05-30T09:51:31.000Z | 2020-05-30T09:51:31.000Z | flask/ajax-button-send-GET-receive-JSON/main.py | tarifa10/python-examples | 1699bf56f01c7bbb1aa66102a7d007b16498a675 | [
"MIT"
] | null | null | null | flask/ajax-button-send-GET-receive-JSON/main.py | tarifa10/python-examples | 1699bf56f01c7bbb1aa66102a7d007b16498a675 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# date: 2020.05.15
# https://stackoverflow.com/questions/61818387/i-want-to-pass-data-from-javascript-code-to-flask-server/
from flask import Flask, request, jsonify, render_template_string
app = Flask(__name__)
@app.route('/')
def index():
return render_template_string('''
<script src=... | 25.039216 | 104 | 0.584965 | 175 | 1,277 | 4.171429 | 0.502857 | 0.021918 | 0.054795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.199687 | 1,277 | 50 | 105 | 25.54 | 0.686888 | 0.169146 | 0 | 0.088235 | 0 | 0.029412 | 0.627488 | 0.159242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0.029412 | 0.176471 | 0.088235 | 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 |
3a676a377845e4cc7cb4490f10b4fce148b7ba39 | 1,284 | py | Python | runner.py | ritikbhatia/Project-Celebi | e581c00b14c30bde8207a375fb6db73a37b2fda1 | [
"Apache-2.0"
] | null | null | null | runner.py | ritikbhatia/Project-Celebi | e581c00b14c30bde8207a375fb6db73a37b2fda1 | [
"Apache-2.0"
] | null | null | null | runner.py | ritikbhatia/Project-Celebi | e581c00b14c30bde8207a375fb6db73a37b2fda1 | [
"Apache-2.0"
] | null | null | null | from flask import Flask
# TODO: clean up unused imports
from pbu import Logger
from config import load_config, get_log_folder, get_mongodb_config
from storage.example_mongo_store import ExampleStore as ExampleMongoStore
import api.static_api as static_api
# import api.example_api as example_api
if __name__ == "__main_... | 34.702703 | 111 | 0.666667 | 160 | 1,284 | 5.0875 | 0.4125 | 0.036855 | 0.047912 | 0.036855 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007597 | 0.179907 | 1,284 | 36 | 112 | 35.666667 | 0.765432 | 0.30919 | 0 | 0.111111 | 0 | 0 | 0.186499 | 0.09611 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0 | false | 0 | 0.277778 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3a68b342aa6ccbf23907a2125c5d0f196e76675e | 429 | py | Python | src/model.py | ekalavyaa/ML-manul-datasetLoader-pytorch | 724d231944c428a5c03f9e477c2a275e09afa13f | [
"MIT"
] | null | null | null | src/model.py | ekalavyaa/ML-manul-datasetLoader-pytorch | 724d231944c428a5c03f9e477c2a275e09afa13f | [
"MIT"
] | null | null | null | src/model.py | ekalavyaa/ML-manul-datasetLoader-pytorch | 724d231944c428a5c03f9e477c2a275e09afa13f | [
"MIT"
] | null | null | null |
from torch import nn
class Model(nn.Module):
def __init__(self):
super(Model, self).__init__()
self.l1 = nn.Linear(8, 4)
self.l2 = nn.Linear(4, 2)
self.l3 = nn.Linear(2, 1)
self.sigmoid = nn.Sigmoid()
def forward(self, input):
out1 = self.sigmoid(self.l1(input)... | 23.833333 | 43 | 0.571096 | 61 | 429 | 3.885246 | 0.42623 | 0.185654 | 0.189873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.286713 | 429 | 17 | 44 | 25.235294 | 0.715686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 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 |
3a696bf0e88f0e22d1662c623af040903350a499 | 6,094 | py | Python | unmaintained/image_cenA.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | null | null | null | unmaintained/image_cenA.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | 21 | 2019-09-16T15:26:53.000Z | 2022-01-11T09:14:39.000Z | unmaintained/image_cenA.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | 1 | 2019-11-11T11:47:54.000Z | 2019-11-11T11:47:54.000Z | #!/usr/bin/python
# Track target(s) for a specified time.
# The *with* keyword is standard in Python 2.6, but has to be explicitly imported in Python 2.5
from __future__ import with_statement
import optparse
import sys
import uuid
import katuilib
import katpoint
import numpy as np
# Parse command-line options that ... | 51.210084 | 220 | 0.681654 | 875 | 6,094 | 4.674286 | 0.328 | 0.024205 | 0.040342 | 0.026895 | 0.179707 | 0.117115 | 0.08044 | 0.08044 | 0.058924 | 0.058924 | 0 | 0.010561 | 0.191992 | 6,094 | 118 | 221 | 51.644068 | 0.820065 | 0.162947 | 0 | 0.103448 | 0 | 0.034483 | 0.392049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08046 | null | null | 0.137931 | 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 |
3a72f73aa92b5af1c0beb5cf015a00017fffb215 | 2,170 | py | Python | utility/log.py | ghowland/deployman | ada4d94677919113f4ac23b337015ba02f2082ce | [
"MIT"
] | null | null | null | utility/log.py | ghowland/deployman | ada4d94677919113f4ac23b337015ba02f2082ce | [
"MIT"
] | null | null | null | utility/log.py | ghowland/deployman | ada4d94677919113f4ac23b337015ba02f2082ce | [
"MIT"
] | null | null | null | """
Utility: Log
Methods of logging actions
"""
import sys
import time
import logging
import traceback
import os
# Level strings
LEVEL_STRINGS = {
logging.INFO:'INFO',
logging.DEBUG:'DEBUG',
logging.WARN:'WARN',
logging.ERROR:'ERROR',
logging.CRITICAL:'CRITICAL',
}
# Default level string
DEFAULT_LEVEL =... | 24.659091 | 87 | 0.682488 | 318 | 2,170 | 4.531447 | 0.380503 | 0.048577 | 0.049965 | 0.016655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009815 | 0.201843 | 2,170 | 87 | 88 | 24.942529 | 0.822171 | 0.375576 | 0 | 0 | 0 | 0 | 0.09962 | 0.020532 | 0 | 0 | 0 | 0.011494 | 0 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.189189 | 0.081081 | 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 |
3a73855aeba27f1b96391a719ee1f242018167b4 | 812 | py | Python | enforce_typing/type_parser.py | mr-strawberry66/python-type-enforcement | afb4cf66f1e46104d5952fa08db8756d1a802a8f | [
"MIT"
] | 1 | 2022-03-16T14:28:27.000Z | 2022-03-16T14:28:27.000Z | enforce_typing/type_parser.py | mr-strawberry66/python-static-type-checking | afb4cf66f1e46104d5952fa08db8756d1a802a8f | [
"MIT"
] | 1 | 2022-03-16T14:27:00.000Z | 2022-03-16T14:43:46.000Z | enforce_typing/type_parser.py | mr-strawberry66/python-static-type-checking | afb4cf66f1e46104d5952fa08db8756d1a802a8f | [
"MIT"
] | null | null | null | """Convert class __qualname__ to class object."""
from __future__ import annotations
import importlib
import sys
def data_type_from_string(data_type: str, name_space: dict[str, any] = None) -> any:
"""
Convert string repr of datatype to class.
Args:
data_type: str
The string represen... | 21.945946 | 84 | 0.6367 | 97 | 812 | 4.917526 | 0.463918 | 0.1174 | 0.046122 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008606 | 0.284483 | 812 | 36 | 85 | 22.555556 | 0.812392 | 0.293103 | 0 | 0.111111 | 0 | 0 | 0.00189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.111111 | 0.222222 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3a798e8c4cb57e088989f97bb3fa8a39f8a263f3 | 537 | py | Python | testData/typecheckerinspection/parsableTypeCollection.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 238 | 2019-08-05T12:46:09.000Z | 2022-03-25T08:53:25.000Z | testData/typecheckerinspection/parsableTypeCollection.py | alek-sun/pydantic-pycharm-plugin | 6b07519aadf0ff8b8a644c1f9ede88e09c687c80 | [
"Apache-2.0",
"MIT"
] | 415 | 2019-07-15T17:39:35.000Z | 2022-03-31T01:18:38.000Z | testData/typecheckerinspection/parsableTypeCollection.py | collerek/pydantic-pycharm-plugin | 7068ece42334cc9fbe927d779d199c86d5139888 | [
"Apache-2.0",
"MIT"
] | 7 | 2019-08-09T01:03:16.000Z | 2022-02-08T03:28:19.000Z |
from typing import Union, List
from pydantic import BaseModel
class A(BaseModel):
a: List[str]
b: List[List[str]]
a_int: List[int] = [int('123')]
a_str: List[str] = [str('123')]
b_int: List[List[int]] = [[int('123')]]
b_str: List[List[str]] = [[str('123')]]
A(a=a_str, b=b_str)
A(<warning descr="Field is of... | 31.588235 | 245 | 0.646182 | 98 | 537 | 3.459184 | 0.244898 | 0.165192 | 0.129794 | 0.076696 | 0.342183 | 0.342183 | 0.342183 | 0.171091 | 0 | 0 | 0 | 0.025806 | 0.134078 | 537 | 16 | 246 | 33.5625 | 0.703226 | 0 | 0 | 0 | 0 | 0.181818 | 0.339552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.181818 | 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 |
3a7c031c2a75def95123911df741b9066b50d0db | 3,313 | py | Python | helios/nodes/full.py | hyperevo/py-helios-node | ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8 | [
"MIT"
] | null | null | null | helios/nodes/full.py | hyperevo/py-helios-node | ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8 | [
"MIT"
] | null | null | null | helios/nodes/full.py | hyperevo/py-helios-node | ff417fe3fe90f85c9f95b3d8a5f0dd4c80532ee8 | [
"MIT"
] | null | null | null | import json
from helios.chains.coro import (
AsyncChain
)
from hp2p.peer import BasePeerPool
from helios.config import ChainConfig
from helios.extensibility import PluginManager
from helios.server import FullServer
from .base import Node
from eth_keys.datatypes import PrivateKey
from eth_typing import Address
... | 38.08046 | 118 | 0.673106 | 409 | 3,313 | 5.127139 | 0.266504 | 0.068193 | 0.02289 | 0.020029 | 0.171674 | 0.126848 | 0.096328 | 0.064855 | 0 | 0 | 0 | 0.002864 | 0.2623 | 3,313 | 86 | 119 | 38.523256 | 0.855155 | 0.135527 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0.016667 | 0.383333 | 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 |
3a87bbf46008603946467814c3452e78904bd95f | 394 | py | Python | Server/tests/v2/views/admin/point/__init__.py | moreal/DMS-Backend | c0a3b28972739c58049a296570bb873f32c03eec | [
"MIT"
] | 27 | 2018-01-14T08:07:18.000Z | 2020-01-20T14:21:17.000Z | Server/tests/v2/views/admin/point/__init__.py | moreal/DMS-Backend | c0a3b28972739c58049a296570bb873f32c03eec | [
"MIT"
] | 50 | 2018-02-12T12:51:33.000Z | 2018-08-28T00:48:31.000Z | Server/tests/v2/views/admin/point/__init__.py | moreal/DMS-Backend | c0a3b28972739c58049a296570bb873f32c03eec | [
"MIT"
] | 10 | 2018-03-31T16:30:32.000Z | 2021-03-02T10:30:31.000Z | from app.models.point import PointRuleModel
def add_point_rules():
good_point_rule = PointRuleModel(
name='상점 규칙',
point_type=True,
min_point=1,
max_point=3
).save()
bad_point_rule = PointRuleModel(
name='벌점 규칙',
point_type=False,
min_point=-1,
... | 19.7 | 43 | 0.611675 | 51 | 394 | 4.411765 | 0.509804 | 0.16 | 0.115556 | 0.24 | 0.151111 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014337 | 0.291878 | 394 | 19 | 44 | 20.736842 | 0.792115 | 0 | 0 | 0.133333 | 0 | 0 | 0.025381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
3a8a1e741f06c6212a8d0d7ad22eab6f63e07904 | 699 | py | Python | tests/test_abc.py | H0R5E/polite | bbbbf4fffbade585cb8b7114c4a8821e822c42e0 | [
"MIT"
] | 1 | 2020-05-03T21:10:33.000Z | 2020-05-03T21:10:33.000Z | tests/test_abc.py | H0R5E/polite | bbbbf4fffbade585cb8b7114c4a8821e822c42e0 | [
"MIT"
] | 6 | 2017-06-12T13:50:09.000Z | 2019-07-02T10:24:45.000Z | tests/test_abc.py | H0R5E/polite | bbbbf4fffbade585cb8b7114c4a8821e822c42e0 | [
"MIT"
] | 2 | 2017-06-12T12:40:03.000Z | 2018-11-17T12:47:48.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 31 15:24:33 2016
@author: Mathew Topper
"""
#pylint: disable=C0103,C0111
import abc
import pytest
from polite.abc import abstractclassmethod
#pylint: disable=C0111,R0903
class ClassBase(object):
__metaclass__ = abc.ABCMeta
@abstractclassmethod
def te... | 16.642857 | 42 | 0.665236 | 76 | 699 | 6.013158 | 0.592105 | 0.061269 | 0.078775 | 0.100656 | 0.122538 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068901 | 0.23176 | 699 | 41 | 43 | 17.04878 | 0.782123 | 0.250358 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.235294 | false | 0 | 0.176471 | 0.058824 | 0.705882 | 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 |
3a8e365805fe9ad75742d9099abbd2f68d9b7097 | 3,722 | py | Python | chanjo/store/models.py | biocyberman/chanjo | 962eedf26dcfc0ad8ea66d4c56b455192934c68e | [
"MIT"
] | null | null | null | chanjo/store/models.py | biocyberman/chanjo | 962eedf26dcfc0ad8ea66d4c56b455192934c68e | [
"MIT"
] | null | null | null | chanjo/store/models.py | biocyberman/chanjo | 962eedf26dcfc0ad8ea66d4c56b455192934c68e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import namedtuple
from datetime import datetime
from alchy import ModelBase, make_declarative_base
from sqlalchemy import Column, types, ForeignKey, UniqueConstraint, orm
Exon = namedtuple('Exon', ['chrom', 'start', 'end', 'completeness'])
# base for declaring a mapping
BASE ... | 33.531532 | 75 | 0.657711 | 449 | 3,722 | 5.291759 | 0.309577 | 0.106481 | 0.071549 | 0.039983 | 0.089226 | 0.069024 | 0.029461 | 0.029461 | 0 | 0 | 0 | 0.01403 | 0.234014 | 3,722 | 110 | 76 | 33.836364 | 0.819362 | 0.276733 | 0 | 0.075472 | 0 | 0 | 0.070958 | 0.008143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.075472 | 0 | 0.698113 | 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 |
3a8f9477723dbea8f080510c73e0056d218220b8 | 3,163 | py | Python | wce_triage/config/config_db.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 3 | 2019-07-25T03:24:23.000Z | 2021-06-23T14:01:34.000Z | wce_triage/config/config_db.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 1 | 2019-12-20T16:04:19.000Z | 2019-12-20T16:04:19.000Z | wce_triage/config/config_db.py | pfrouleau/wce-triage-v2 | 25610cda55f5cb2170e13e121ae1cbaa92ef7626 | [
"MIT"
] | 2 | 2019-07-25T03:24:26.000Z | 2021-02-14T05:27:11.000Z | #!/usr/bin/env python3
#
import sqlite3
class sqlite3_db:
def __init__(self, db_file=None):
self.db_file = db_file
self._is_open = False
pass
def open(self):
if not self._is_open:
self.db = sqlite3.connect(self.db_file)
self._is_open = True
pass
return self
@property
... | 20.018987 | 151 | 0.644957 | 443 | 3,163 | 4.363431 | 0.223476 | 0.040352 | 0.051733 | 0.043973 | 0.244697 | 0.132437 | 0.109674 | 0.109674 | 0.109674 | 0.109674 | 0 | 0.004503 | 0.227632 | 3,163 | 157 | 152 | 20.146497 | 0.786738 | 0.019918 | 0 | 0.427273 | 0 | 0 | 0.121928 | 0.009379 | 0 | 0 | 0 | 0 | 0 | 1 | 0.163636 | false | 0.181818 | 0.009091 | 0.027273 | 0.3 | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
3a9cfeb3553fb8e13946ddc9698ed1382f432750 | 3,628 | py | Python | TootList/TwitterAccount/migrations/0001_initial.py | gkoehler/TootList | 5156355ac941231cb7ee60ed949cd296676d6b99 | [
"MIT"
] | 1 | 2016-04-13T14:47:40.000Z | 2016-04-13T14:47:40.000Z | TootList/TwitterAccount/migrations/0001_initial.py | gkoehler/TootList | 5156355ac941231cb7ee60ed949cd296676d6b99 | [
"MIT"
] | null | null | null | TootList/TwitterAccount/migrations/0001_initial.py | gkoehler/TootList | 5156355ac941231cb7ee60ed949cd296676d6b99 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'TwitterAccount'
db.create_table(u'TwitterAccount_twittera... | 51.828571 | 152 | 0.645535 | 405 | 3,628 | 5.580247 | 0.195062 | 0.070796 | 0.117699 | 0.168142 | 0.596018 | 0.480089 | 0.427876 | 0.427876 | 0.409735 | 0.308407 | 0 | 0.012581 | 0.189361 | 3,628 | 70 | 153 | 51.828571 | 0.755865 | 0.070838 | 0 | 0.137255 | 0 | 0 | 0.454518 | 0.319263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039216 | false | 0 | 0.078431 | 0 | 0.176471 | 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 |
3aa73cd78cd17353d74cac17a3a151036aa5f173 | 1,058 | py | Python | captcha/tujian.py | Xiao233-q/JDMemberCloseAccount | 2617ef1e9fc332a7bffceb02c8d11c8596d22b2b | [
"MIT"
] | 1 | 2021-06-21T03:30:24.000Z | 2021-06-21T03:30:24.000Z | captcha/tujian.py | Xiao233-q/JDMemberCloseAccount | 2617ef1e9fc332a7bffceb02c8d11c8596d22b2b | [
"MIT"
] | null | null | null | captcha/tujian.py | Xiao233-q/JDMemberCloseAccount | 2617ef1e9fc332a7bffceb02c8d11c8596d22b2b | [
"MIT"
] | 1 | 2021-07-05T10:13:35.000Z | 2021-07-05T10:13:35.000Z | import base64
import json
import requests
class TuJian(object):
"""
图鉴验证类
图鉴打码地址:https://www.ttshitu.com
"""
def __init__(self, username, password):
self.username = username
self.password = password
def post_pic(self, im, type_id):
"""
提交图片
:return:
... | 24.604651 | 102 | 0.544423 | 114 | 1,058 | 4.964912 | 0.429825 | 0.053004 | 0.070671 | 0.084806 | 0.250883 | 0.250883 | 0.250883 | 0.144876 | 0.144876 | 0 | 0 | 0.019337 | 0.31569 | 1,058 | 42 | 103 | 25.190476 | 0.762431 | 0.075614 | 0 | 0.25 | 0 | 0 | 0.150901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.125 | 0 | 0.458333 | 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 |
3aa8b425ff93df210a0fe26a9fd2f5aa3da5089e | 6,000 | py | Python | python/ttypager.py | 3mdeb/bits | 19da7046a7303f1de8b53165eea1a6f486757c03 | [
"BSD-3-Clause"
] | 215 | 2015-08-05T07:31:35.000Z | 2022-03-25T17:34:54.000Z | python/ttypager.py | marcol3786/bits | 19da7046a7303f1de8b53165eea1a6f486757c03 | [
"BSD-3-Clause"
] | 12 | 2015-09-07T14:09:53.000Z | 2021-04-07T05:03:26.000Z | python/ttypager.py | marcol3786/bits | 19da7046a7303f1de8b53165eea1a6f486757c03 | [
"BSD-3-Clause"
] | 71 | 2015-08-05T02:35:13.000Z | 2022-02-11T21:16:39.000Z | # Based on the ttypager and supporting functions from pydoc, under the Python
# license, with various improvements.
import bits
import bits.input
import contextlib
import itertools
import os
import os.path
import pager
import redirect
import string
import sys
import textwrap
from cStringIO import StringIO
def getpage... | 36.363636 | 98 | 0.492 | 661 | 6,000 | 4.376702 | 0.270802 | 0.034221 | 0.053232 | 0.03111 | 0.196336 | 0.157276 | 0.085379 | 0.081576 | 0.081576 | 0.081576 | 0 | 0.004357 | 0.388 | 6,000 | 164 | 99 | 36.585366 | 0.783497 | 0.037 | 0 | 0.206897 | 0 | 0 | 0.044385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117241 | null | null | 0.02069 | 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 |
3aab177bf4dd895b5a864c296567e764129403e4 | 5,524 | py | Python | tim-ai-executor.py | jclee81/sktacc | 6f601ce8f61b4e361b17773060ee2544bf35dbe4 | [
"Apache-2.0"
] | 2 | 2017-08-03T06:03:25.000Z | 2017-08-10T08:55:22.000Z | tim-ai-executor.py | jclee81/sktacc | 6f601ce8f61b4e361b17773060ee2544bf35dbe4 | [
"Apache-2.0"
] | 8 | 2020-01-28T21:45:44.000Z | 2022-02-09T23:27:06.000Z | tim-ai-executor.py | jclee81/sktacc | 6f601ce8f61b4e361b17773060ee2544bf35dbe4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from db_manager import DBManager
import json, os, sys
from optparse import OptionParser
HOST='localhost'
USER='tim_admin'
PW='niclab1234'
class TimAiExecutor:
def __init__(self, db_inst):
self._db_inst = db_inst
def runTest(self):
print "== Execute Query TEST =="
te... | 37.324324 | 123 | 0.537654 | 685 | 5,524 | 4.140146 | 0.258394 | 0.040197 | 0.056417 | 0.052891 | 0.232722 | 0.205219 | 0.17701 | 0.131876 | 0.101551 | 0.101551 | 0 | 0.011962 | 0.318972 | 5,524 | 147 | 124 | 37.578231 | 0.741893 | 0.035844 | 0 | 0.201681 | 0 | 0 | 0.226948 | 0.051938 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02521 | null | null | 0.109244 | 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 |
3ab49c73cd4c5a33a9533e22a78de410fa74db58 | 1,313 | py | Python | TestCNN.py | PranavJoshi1/Deep-Learning-CSC004P5E | e2de28cc9716be11ed2cc3953de7271a3d8d8991 | [
"MIT"
] | 1 | 2020-12-15T19:35:44.000Z | 2020-12-15T19:35:44.000Z | TestCNN.py | PranavJoshi1/Deep-Learning-CSC004P5E | e2de28cc9716be11ed2cc3953de7271a3d8d8991 | [
"MIT"
] | null | null | null | TestCNN.py | PranavJoshi1/Deep-Learning-CSC004P5E | e2de28cc9716be11ed2cc3953de7271a3d8d8991 | [
"MIT"
] | null | null | null | import numpy as np
from CNN.py import ConvolutionNN
def TestForwardPass():
np.random.seed(0)
data_size = np.random.randint(10, 50)
for i in range(2,6):
f_h, f_w = i, i # Filter height and width (m2, n2)
padding, stride = i, i
print('For filter with size : ({}, {})'.format(f_h... | 34.552632 | 131 | 0.565118 | 202 | 1,313 | 3.465347 | 0.376238 | 0.091429 | 0.085714 | 0.017143 | 0.085714 | 0.085714 | 0.062857 | 0.062857 | 0 | 0 | 0 | 0.036667 | 0.314547 | 1,313 | 38 | 132 | 34.552632 | 0.741111 | 0.097487 | 0 | 0 | 0 | 0 | 0.107718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.086957 | 0 | 0.130435 | 0.130435 | 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 |
3ab8e6a3ea3d2134235847f6edb560678589b2e8 | 454 | py | Python | dataspot-bokeh/dataspot/network/nodes/node_list_networker_old.py | patrickdehoon/dataspot-docker | 9c6dd10e2745af91aa72b4433bf74cca2d3b810f | [
"MIT"
] | null | null | null | dataspot-bokeh/dataspot/network/nodes/node_list_networker_old.py | patrickdehoon/dataspot-docker | 9c6dd10e2745af91aa72b4433bf74cca2d3b810f | [
"MIT"
] | null | null | null | dataspot-bokeh/dataspot/network/nodes/node_list_networker_old.py | patrickdehoon/dataspot-docker | 9c6dd10e2745af91aa72b4433bf74cca2d3b810f | [
"MIT"
] | null | null | null | from dataspot.network.node_networker import NodeNetworker
class NodeListNetworker(NodeNetworker):
def __init__(self):
self.__nodes = None
def set_node(self, graph):
nodes = list()
for i in graph.nodes:
nodes.append(i.strip())
nodes = list(set(nodes))
self... | 20.636364 | 57 | 0.623348 | 55 | 454 | 4.890909 | 0.454545 | 0.100372 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279736 | 454 | 21 | 58 | 21.619048 | 0.82263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.071429 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3abe12d1ec80e94acbae9d6be06b5c2726442386 | 1,257 | py | Python | clamm/poolnet.py | VChristlein/gmp | b04c0ec4289112f53903eb3429b0d8bc78231ceb | [
"MIT"
] | 13 | 2019-08-20T03:08:55.000Z | 2021-12-08T14:00:39.000Z | clamm/poolnet.py | VChristlein/gmp | b04c0ec4289112f53903eb3429b0d8bc78231ceb | [
"MIT"
] | 1 | 2021-02-23T02:40:45.000Z | 2021-03-05T02:21:47.000Z | clamm/poolnet.py | VChristlein/gmp | b04c0ec4289112f53903eb3429b0d8bc78231ceb | [
"MIT"
] | 1 | 2020-05-23T14:05:16.000Z | 2020-05-23T14:05:16.000Z | import torch.nn as nn
from torchvision import models
import pooling
from pooling import getPool
from resnet import resnet50
class PoolNet(nn.Module):
def __init__(self, n_classes=12, pool_type='avg', gmp_lambda=1e6,
lse_r=10, last_conv_stride=2,
pretrained=True, input_channels=3... | 33.972973 | 77 | 0.587908 | 154 | 1,257 | 4.61039 | 0.506494 | 0.033803 | 0.059155 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026036 | 0.327765 | 1,257 | 36 | 78 | 34.916667 | 0.814201 | 0.118536 | 0 | 0 | 0 | 0 | 0.006352 | 0 | 0 | 0 | 0 | 0.027778 | 0 | 1 | 0.074074 | false | 0 | 0.185185 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3ac3699e68b3ede8cd620b4fb5506f0d802e4fbc | 1,037 | py | Python | availability_app/migrations/0001_initial.py | Brown-University-Library/OLD-ARCHIVED_availability_api | 77ce8a557f46e195a55da93eb8985337ab0448ac | [
"MIT"
] | 1 | 2017-06-13T16:57:48.000Z | 2017-06-13T16:57:48.000Z | availability_app/migrations/0001_initial.py | Brown-University-Library/OLD-ARCHIVED_availability_api | 77ce8a557f46e195a55da93eb8985337ab0448ac | [
"MIT"
] | 9 | 2019-09-03T13:39:57.000Z | 2020-09-14T20:39:44.000Z | availability_app/migrations/0001_initial.py | Brown-University-Library/availability_api | 77ce8a557f46e195a55da93eb8985337ab0448ac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-05 13:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Track... | 34.566667 | 114 | 0.606557 | 112 | 1,037 | 5.419643 | 0.526786 | 0.074135 | 0.107084 | 0.140033 | 0.306425 | 0.273476 | 0.273476 | 0.14168 | 0 | 0 | 0 | 0.023468 | 0.260366 | 1,037 | 29 | 115 | 35.758621 | 0.767927 | 0.066538 | 0 | 0 | 1 | 0 | 0.109845 | 0.023834 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.285714 | 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 |
3aca4338ec4d6624ee3b1e3a7ff7a98d66377430 | 716 | py | Python | web/todos/migrations/0001_initial.py | Warmada/todo-app | 6bf2ef02282333cffdfd9d455e9118195d09cbb3 | [
"MIT"
] | null | null | null | web/todos/migrations/0001_initial.py | Warmada/todo-app | 6bf2ef02282333cffdfd9d455e9118195d09cbb3 | [
"MIT"
] | 7 | 2020-06-06T00:33:44.000Z | 2022-02-10T09:40:52.000Z | web/todos/migrations/0001_initial.py | Warmada/todo-app | 6bf2ef02282333cffdfd9d455e9118195d09cbb3 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-06 23:28
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | 28.64 | 114 | 0.583799 | 74 | 716 | 5.527027 | 0.702703 | 0.03912 | 0.102689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.28771 | 716 | 24 | 115 | 29.833333 | 0.766667 | 0.062849 | 0 | 0 | 1 | 0 | 0.09417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3aca6f654def04730e016ca5acc8caa99c47592b | 2,841 | py | Python | tests/compare_ebd_processed_to_queried.py | nmtarr/occurrence-record-wrangler | bfea6bf767b2d6e4135e67d39f5046b37152f5d0 | [
"CC0-1.0"
] | null | null | null | tests/compare_ebd_processed_to_queried.py | nmtarr/occurrence-record-wrangler | bfea6bf767b2d6e4135e67d39f5046b37152f5d0 | [
"CC0-1.0"
] | 9 | 2019-08-10T22:22:54.000Z | 2019-12-18T15:34:10.000Z | tests/compare_ebd_processed_to_queried.py | nmtarr/occurrence-record-wrangler | bfea6bf767b2d6e4135e67d39f5046b37152f5d0 | [
"CC0-1.0"
] | null | null | null | """
get_EBD_records() uses the auk R package to query the EBD with a few filters.
As auk runs its query, it stores temporary output in a text file that is then
read into R as a dataframe with read_ebd. The wrangler saves this data frame
as a csv file as well. This script allows comparison of the queried_ebd and
proce... | 41.173913 | 91 | 0.652587 | 394 | 2,841 | 4.639594 | 0.322335 | 0.013129 | 0.019694 | 0.052516 | 0.318381 | 0.258206 | 0.190372 | 0.190372 | 0.190372 | 0.190372 | 0 | 0.002386 | 0.114748 | 2,841 | 68 | 92 | 41.779412 | 0.724453 | 0.457585 | 0 | 0 | 0 | 0 | 0.263019 | 0.038233 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 0.464286 | 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 |
3ad044c90744297f5e9030bcefe222d46d4f4926 | 949 | py | Python | 17Fall/4211 Computer Networking/project4/topology.py | oway13/Schoolwork | 294f407c288ef532f8f187a6ee0bd9fd0e7559ab | [
"MIT"
] | null | null | null | 17Fall/4211 Computer Networking/project4/topology.py | oway13/Schoolwork | 294f407c288ef532f8f187a6ee0bd9fd0e7559ab | [
"MIT"
] | null | null | null | 17Fall/4211 Computer Networking/project4/topology.py | oway13/Schoolwork | 294f407c288ef532f8f187a6ee0bd9fd0e7559ab | [
"MIT"
] | null | null | null | from mininet.topo import Topo
class LeafSpine( Topo ):
def __init__( self ):
# Initialize topology
Topo.__init__( self )
# Add hosts
h1 = self.addHost( 'h1' )
h2 = self.addHost( 'h2' )
h3 = self.addHost( 'h3' )
h4 = self.addHost( 'h4' )
h5 = self.addHost( 'h5' )
h6 = self.addHost( 'h6' )
# ... | 19.367347 | 45 | 0.604847 | 134 | 949 | 4.223881 | 0.261194 | 0.233216 | 0.068905 | 0.04947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064336 | 0.246575 | 949 | 48 | 46 | 19.770833 | 0.727273 | 0.149631 | 0 | 0 | 0 | 0 | 0.035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.107143 | 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 |
3ad5e727ba8060586cc4e5d1f72f30ff4b1bca26 | 2,712 | py | Python | qpid/tests/saslmech/finder.py | martpat/qpid-python | 900baa9bfab0f9b348c517fe1dac3cc6e8f26b29 | [
"Apache-2.0"
] | 17 | 2016-09-04T03:34:10.000Z | 2021-11-09T22:29:30.000Z | qpid/tests/saslmech/finder.py | martpat/qpid-python | 900baa9bfab0f9b348c517fe1dac3cc6e8f26b29 | [
"Apache-2.0"
] | 1 | 2016-07-11T09:32:41.000Z | 2016-07-11T09:32:41.000Z | qpid/tests/saslmech/finder.py | martpat/qpid-python | 900baa9bfab0f9b348c517fe1dac3cc6e8f26b29 | [
"Apache-2.0"
] | 19 | 2016-07-11T09:23:50.000Z | 2021-11-09T22:29:20.000Z | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | 37.666667 | 125 | 0.751475 | 368 | 2,712 | 5.413043 | 0.342391 | 0.078313 | 0.048193 | 0.050201 | 0.366466 | 0.366466 | 0.366466 | 0.366466 | 0.366466 | 0.338353 | 0 | 0.00434 | 0.150442 | 2,712 | 71 | 126 | 38.197183 | 0.860243 | 0.327802 | 0 | 0.344828 | 0 | 0 | 0.212896 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 1 | 0.172414 | false | 0.137931 | 0.137931 | 0 | 0.344828 | 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 |
3adf1a1e1e3e48b4cb5ee2b446030fc7c0ecb8b9 | 476 | py | Python | strslice/compat.py | ojii/strslice | 3a1c91756f15753e5b1fed1b2e6fdb4c212d67fc | [
"MIT"
] | 3 | 2016-06-20T11:53:48.000Z | 2017-11-05T15:50:44.000Z | strslice/compat.py | ojii/strslice | 3a1c91756f15753e5b1fed1b2e6fdb4c212d67fc | [
"MIT"
] | null | null | null | strslice/compat.py | ojii/strslice | 3a1c91756f15753e5b1fed1b2e6fdb4c212d67fc | [
"MIT"
] | 1 | 2020-11-20T21:21:44.000Z | 2020-11-20T21:21:44.000Z | import re
import sys
if sys.maxunicode < 0x10000:
# narrow unicode build
rx_codepoints = re.compile(ur'[\ud800-\udbff][\udc00-\udfff]|.', re.DOTALL)
def code_point(s, index):
L = rx_codepoints.findall(s)
return L[index]
def code_points(s):
return rx_codepoints.findall(s)
els... | 19.833333 | 79 | 0.62395 | 68 | 476 | 4.264706 | 0.514706 | 0.096552 | 0.082759 | 0.089655 | 0.262069 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.260504 | 476 | 23 | 80 | 20.695652 | 0.789773 | 0.117647 | 0 | 0.285714 | 0 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0.016827 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
3ae8287a45775c5b5d8eb3fc8112653e0446ff11 | 509 | py | Python | pocs/tests/test_base.py | kmeagle1515/POCS | 26cfeca4364eb4d00d3417a00fe79032c7347174 | [
"MIT"
] | 1 | 2019-07-19T10:37:08.000Z | 2019-07-19T10:37:08.000Z | pocs/tests/test_base.py | kmeagle1515/POCS | 26cfeca4364eb4d00d3417a00fe79032c7347174 | [
"MIT"
] | null | null | null | pocs/tests/test_base.py | kmeagle1515/POCS | 26cfeca4364eb4d00d3417a00fe79032c7347174 | [
"MIT"
] | null | null | null | import pytest
from pocs.base import PanBase
def test_check_config1(config):
del config['mount']
base = PanBase()
with pytest.raises(SystemExit):
base._check_config(config)
def test_check_config2(config):
del config['directories']
base = PanBase()
with pytest.raises(SystemExit):
... | 20.36 | 35 | 0.695481 | 62 | 509 | 5.5 | 0.33871 | 0.061584 | 0.105572 | 0.184751 | 0.580645 | 0.580645 | 0.580645 | 0.580645 | 0.580645 | 0.580645 | 0 | 0.007389 | 0.202358 | 509 | 24 | 36 | 21.208333 | 0.832512 | 0 | 0 | 0.529412 | 0 | 0 | 0.056974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.294118 | 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 |
3ae9c61be5ba64c1b2c71109b64bac33ce9d38bd | 294 | py | Python | run.py | OSPgrp8/OSP | 78df772cb0f17eb047fdf5c4b957b8b1e85e84d1 | [
"MIT"
] | null | null | null | run.py | OSPgrp8/OSP | 78df772cb0f17eb047fdf5c4b957b8b1e85e84d1 | [
"MIT"
] | null | null | null | run.py | OSPgrp8/OSP | 78df772cb0f17eb047fdf5c4b957b8b1e85e84d1 | [
"MIT"
] | null | null | null | from app import app
import mongoengine as ming
from osp.classes.address import Address
if __name__ == "__main__":
obj = Address(residence_number="a@b", street="str", locality="loc",
state="state", city="city")
print(obj.pincode)
app.run(debug = True,port = 8000) | 26.727273 | 71 | 0.663265 | 40 | 294 | 4.65 | 0.75 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0.204082 | 294 | 11 | 72 | 26.727273 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.088136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
3af359af50d9f94df11b1c27b89bde1a70e9332b | 192 | py | Python | ex012.py | LeonardoMaragna11/cursoemvideo | 00beb9bf90b2c55459101722f63dff60d53e2769 | [
"MIT"
] | null | null | null | ex012.py | LeonardoMaragna11/cursoemvideo | 00beb9bf90b2c55459101722f63dff60d53e2769 | [
"MIT"
] | null | null | null | ex012.py | LeonardoMaragna11/cursoemvideo | 00beb9bf90b2c55459101722f63dff60d53e2769 | [
"MIT"
] | null | null | null | valor = float(input('Qual é o valor do produto? '))
desconto = (valor * 5)/100
valorD = valor - desconto
print('O produto que custava R${} com 5% de desconto ficará R${}'.format(valor,valorD)) | 48 | 87 | 0.692708 | 31 | 192 | 4.290323 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030675 | 0.151042 | 192 | 4 | 87 | 48 | 0.785276 | 0 | 0 | 0 | 0 | 0 | 0.435233 | 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 |
3af414d3bc629edd4f59b7bf51799239dd57cee4 | 7,293 | py | Python | scripts/02-train.py | ggodeau/special-pb | 236177a6cbf7dcc16b393a8317739392299db207 | [
"MIT"
] | null | null | null | scripts/02-train.py | ggodeau/special-pb | 236177a6cbf7dcc16b393a8317739392299db207 | [
"MIT"
] | null | null | null | scripts/02-train.py | ggodeau/special-pb | 236177a6cbf7dcc16b393a8317739392299db207 | [
"MIT"
] | null | null | null | # Two mode of training available:
# - BCE: CNN training, NOT Adversarial Training here. Only learns the generator network.
# - SALGAN: Adversarial Training. Updates weights for both Generator and Discriminator.
# The training used data previously processed using "01-data_preocessing.py"
import os
... | 39.63587 | 238 | 0.625943 | 925 | 7,293 | 4.702703 | 0.197838 | 0.038621 | 0.028966 | 0.028736 | 0.611724 | 0.569885 | 0.535402 | 0.516552 | 0.485747 | 0.430115 | 0 | 0.016877 | 0.260661 | 7,293 | 183 | 239 | 39.852459 | 0.789874 | 0.135198 | 0 | 0.416667 | 0 | 0 | 0.113821 | 0.043637 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.158333 | 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 |
aae707641fa0da41135b56c84780b2e480caed16 | 7,485 | py | Python | src/HCRProbeDesign/prob.py | gofflab/HCRProbeDesign | d131545907be99b05645940b6a065879d14ad149 | [
"MIT"
] | 2 | 2021-03-01T01:39:08.000Z | 2021-12-29T01:34:55.000Z | src/HCRProbeDesign/prob.py | gofflab/HCRProbeDesign | d131545907be99b05645940b6a065879d14ad149 | [
"MIT"
] | null | null | null | src/HCRProbeDesign/prob.py | gofflab/HCRProbeDesign | d131545907be99b05645940b6a065879d14ad149 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import math,operator,random,sys
import numpy as np
#######
#Probability Tools for DNA sequence analysis
#######
def snr(observed,expected):
return observed/expected
def zscore(observed,expected):
return (observed-expected)/math.sqrt(expected)
def which_bin(bins, x, safe=0):
"""
... | 26.92446 | 114 | 0.55992 | 1,222 | 7,485 | 3.382979 | 0.196399 | 0.012095 | 0.010885 | 0.007741 | 0.26657 | 0.223029 | 0.199806 | 0.199806 | 0.199806 | 0.199806 | 0 | 0.036201 | 0.254509 | 7,485 | 277 | 115 | 27.021661 | 0.70466 | 0.301536 | 0 | 0.175676 | 0 | 0.006757 | 0.030129 | 0.004509 | 0 | 0 | 0 | 0 | 0.02027 | 1 | 0.202703 | false | 0 | 0.013514 | 0.054054 | 0.432432 | 0.013514 | 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 |
aaead3f8891cc61e5aa6f6f0415a66f7fb54546b | 490 | py | Python | core/migrations/0004_auto_20200308_1441.py | unknown-guy-1610/WomenTechies-Attendance | 6d07650f570719513ea1b1d8220242d2b7115e00 | [
"MIT"
] | null | null | null | core/migrations/0004_auto_20200308_1441.py | unknown-guy-1610/WomenTechies-Attendance | 6d07650f570719513ea1b1d8220242d2b7115e00 | [
"MIT"
] | 9 | 2020-06-05T21:33:05.000Z | 2022-03-12T00:18:21.000Z | core/migrations/0004_auto_20200308_1441.py | unknown-guy-1610/WomenTechies-Attendance | 6d07650f570719513ea1b1d8220242d2b7115e00 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-08 14:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0003_auto_20200308_1437'),
]
operations = [
migrations.AlterField(
model_name='details',
name='agreement',
... | 25.789474 | 153 | 0.610204 | 58 | 490 | 5.051724 | 0.810345 | 0.061433 | 0.102389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090164 | 0.253061 | 490 | 18 | 154 | 27.222222 | 0.710383 | 0.091837 | 0 | 0 | 1 | 0 | 0.230248 | 0.051919 | 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 |
aaf3c004f5a1dfc115a21fbcd1f483bc57364ad5 | 9,537 | py | Python | r01_train_neural_net_and_prepare_initial_weights.py | sedoy-jango-2/MobileNet_FPGA_MNIST_letters | 085e1ce3b1469f3208f56e0c1c4b14151e9688bf | [
"Apache-2.0"
] | 1 | 2021-01-23T09:08:49.000Z | 2021-01-23T09:08:49.000Z | r01_train_neural_net_and_prepare_initial_weights.py | sedoy-jango-2/MobileNet_FPGA_MNIST_letters | 085e1ce3b1469f3208f56e0c1c4b14151e9688bf | [
"Apache-2.0"
] | null | null | null | r01_train_neural_net_and_prepare_initial_weights.py | sedoy-jango-2/MobileNet_FPGA_MNIST_letters | 085e1ce3b1469f3208f56e0c1c4b14151e9688bf | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
__author__ = 'Roman Solovyev (ZFTurbo), IPPM RAS'
from a00_common_functions import *
from a02_generate_random_non_number import generate_random_non_number
from a01_model_low_weights_digit_detector import keras_model_low_weights_digit_detector
import glob
import os
import random
gpu_use = 0
os.enviro... | 39.903766 | 119 | 0.606795 | 1,230 | 9,537 | 4.438211 | 0.209756 | 0.029676 | 0.017952 | 0.014288 | 0.263601 | 0.213043 | 0.139036 | 0.129145 | 0.105514 | 0.035538 | 0 | 0.036724 | 0.280487 | 9,537 | 239 | 120 | 39.903766 | 0.758817 | 0.042152 | 0 | 0.094972 | 1 | 0 | 0.065179 | 0.01231 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03352 | false | 0 | 0.044693 | 0 | 0.100559 | 0.067039 | 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 |
aaf5411c3fb048289b36d82c8fcb57e764ec2054 | 2,655 | py | Python | src/acctext/transforms.py | accelerated-text/accelerated-text-py | 34220845974c6133e0439c2b3f12fc67b1f9fb5e | [
"Apache-2.0"
] | 6 | 2022-01-26T09:59:52.000Z | 2022-02-18T13:59:03.000Z | src/acctext/transforms.py | accelerated-text/accelerated-text-py | 34220845974c6133e0439c2b3f12fc67b1f9fb5e | [
"Apache-2.0"
] | 1 | 2021-09-17T16:08:29.000Z | 2021-09-22T10:20:58.000Z | src/acctext/transforms.py | accelerated-text/accelerated-text-py | 34220845974c6133e0439c2b3f12fc67b1f9fb5e | [
"Apache-2.0"
] | null | null | null | import json
import edn_format
import io
import csv
from typing import Dict
def dictionary_item(x: Dict) -> Dict:
return {"id": x.get('id'),
"key": x.get('name'),
"forms": [phrase.get('text') for phrase in x.get('phrases', [])],
"category": x.get('partOfSpeech'),
"l... | 33.607595 | 110 | 0.558569 | 335 | 2,655 | 4.337313 | 0.238806 | 0.061941 | 0.099105 | 0.123882 | 0.333104 | 0.320716 | 0.308328 | 0.255334 | 0 | 0 | 0 | 0.001507 | 0.250094 | 2,655 | 78 | 111 | 34.038462 | 0.728277 | 0 | 0 | 0.033898 | 0 | 0 | 0.238795 | 0.096798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0.084746 | 0.101695 | 0.389831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
aaf5eb5ec361b7624d830a8288e61ce3c4217593 | 622 | py | Python | src/wagtail_rest_pack/custom_menu/migrations/0004_custommenu_content.py | domibydzovsky/wagtail-rest-pack | 821d5d4111a4a7665e50272035e90f836a2c60c2 | [
"MIT"
] | null | null | null | src/wagtail_rest_pack/custom_menu/migrations/0004_custommenu_content.py | domibydzovsky/wagtail-rest-pack | 821d5d4111a4a7665e50272035e90f836a2c60c2 | [
"MIT"
] | null | null | null | src/wagtail_rest_pack/custom_menu/migrations/0004_custommenu_content.py | domibydzovsky/wagtail-rest-pack | 821d5d4111a4a7665e50272035e90f836a2c60c2 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.3 on 2021-10-03 15:55
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('custom_menu', '0003_auto_20211003_1538'),
]
operations = [
migrations.AddField(
mo... | 29.619048 | 233 | 0.662379 | 73 | 622 | 5.534247 | 0.69863 | 0.136139 | 0.126238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066132 | 0.197749 | 622 | 20 | 234 | 31.1 | 0.743487 | 0.072347 | 0 | 0 | 1 | 0 | 0.13913 | 0.04 | 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 |
aafe12992da82eea1643f8cf18fe80f3f5a1dc98 | 16,606 | py | Python | alchemical_analysis/parser_gomc.py | msoroush/alchemical-analysis | ac9f948db03639a35a7155752b26e98ef7b88fa5 | [
"MIT"
] | 1 | 2019-10-27T14:47:27.000Z | 2019-10-27T14:47:27.000Z | alchemical_analysis/parser_gomc.py | msoroush/alchemical-analysis | ac9f948db03639a35a7155752b26e98ef7b88fa5 | [
"MIT"
] | null | null | null | alchemical_analysis/parser_gomc.py | msoroush/alchemical-analysis | ac9f948db03639a35a7155752b26e98ef7b88fa5 | [
"MIT"
] | 1 | 2019-10-27T14:47:46.000Z | 2019-10-27T14:47:46.000Z | ######################################################################
# Alchemical Analysis: An open tool implementing some recommended practices for analyzing alchemical free energy calculations
# Copyright 2011-2015 UC Irvine and the Authors
#
# Authors: Pavel Klimovich, Michael Shirts and David Mobley
#
#This libra... | 49.275964 | 448 | 0.551126 | 2,104 | 16,606 | 4.280894 | 0.237643 | 0.007217 | 0.018652 | 0.014433 | 0.134562 | 0.100366 | 0.066615 | 0.05307 | 0.030643 | 0.030643 | 0 | 0.009853 | 0.284897 | 16,606 | 336 | 449 | 49.422619 | 0.748632 | 0.234012 | 0 | 0.185022 | 0 | 0.035242 | 0.186378 | 0.00177 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030837 | null | null | 0.070485 | 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 |
c9031aeabff85439362b5173da8673889870539a | 3,710 | py | Python | homework_1/tests/test_5.py | mag-id/epam_python_autumn_2020 | 2488817ba039f5722030a23edc97abe9f70a9a30 | [
"MIT"
] | null | null | null | homework_1/tests/test_5.py | mag-id/epam_python_autumn_2020 | 2488817ba039f5722030a23edc97abe9f70a9a30 | [
"MIT"
] | null | null | null | homework_1/tests/test_5.py | mag-id/epam_python_autumn_2020 | 2488817ba039f5722030a23edc97abe9f70a9a30 | [
"MIT"
] | null | null | null | """
Unit tests for module `homework_1.tasks.task_5`.
"""
from typing import List
import pytest
from homework_1.tasks.task_5 import (
INDEX_ERROR_TEXT,
VALUE_ERROR_TEXT,
find_maximal_subarray_sum,
)
@pytest.mark.parametrize(
["array", "max_subarray_length", "expected_exception", "expected_message"],... | 27.279412 | 88 | 0.491105 | 449 | 3,710 | 3.839644 | 0.144766 | 0.029002 | 0.216937 | 0.083527 | 0.682715 | 0.655452 | 0.563225 | 0.549884 | 0.399652 | 0.364269 | 0 | 0.075745 | 0.366577 | 3,710 | 135 | 89 | 27.481481 | 0.657872 | 0.076011 | 0 | 0.564103 | 0 | 0.051282 | 0.260497 | 0.087226 | 0 | 0 | 0 | 0 | 0.017094 | 1 | 0.017094 | false | 0 | 0.025641 | 0 | 0.042735 | 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 |
c905a5977c092994fb250412063aa9716c7a4b57 | 2,134 | py | Python | posts/views.py | userbaruu/laughing-rotary-phone | 76d8d69768cb4c0e08e0cf278f9f7e057395919d | [
"MIT"
] | null | null | null | posts/views.py | userbaruu/laughing-rotary-phone | 76d8d69768cb4c0e08e0cf278f9f7e057395919d | [
"MIT"
] | null | null | null | posts/views.py | userbaruu/laughing-rotary-phone | 76d8d69768cb4c0e08e0cf278f9f7e057395919d | [
"MIT"
] | null | null | null | from rest_framework import generics, permissions, mixins, status
from rest_framework.exceptions import ValidationError
from rest_framework.response import Response
from posts.models import Post, Vote
from posts.serializers import PostSerializer, VoteSerializer
class PostList(generics.ListCreateAPIView):
queryset ... | 29.638889 | 86 | 0.660731 | 224 | 2,134 | 6.200893 | 0.321429 | 0.039597 | 0.043197 | 0.032397 | 0.393809 | 0.311015 | 0.311015 | 0.311015 | 0.311015 | 0.311015 | 0 | 0.003704 | 0.240862 | 2,134 | 71 | 87 | 30.056338 | 0.851852 | 0 | 0 | 0.411765 | 0 | 0 | 0.049672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.098039 | 0.019608 | 0.529412 | 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 |
c9083ba0d93bb54252328392b18e903d5e7225ae | 677 | py | Python | user_agent/cli.py | anhdhbn/user_agent | b5244d45ada60fd1efd31dc8442e994ab343ac04 | [
"MIT"
] | 282 | 2015-09-26T17:53:27.000Z | 2022-03-13T09:03:27.000Z | user_agent/cli.py | anhdhbn/user_agent | b5244d45ada60fd1efd31dc8442e994ab343ac04 | [
"MIT"
] | 18 | 2015-10-07T12:58:22.000Z | 2022-01-10T03:26:36.000Z | user_agent/cli.py | anhdhbn/user_agent | b5244d45ada60fd1efd31dc8442e994ab343ac04 | [
"MIT"
] | 62 | 2015-09-29T20:49:56.000Z | 2022-02-24T12:38:56.000Z | from argparse import ArgumentParser
import json
from user_agent import generate_navigator_js
def script_ua():
parser = ArgumentParser()
parser.add_argument('-e', '--extended', action='store_true',
default=False)
parser.add_argument('-o', '--os')
parser.add_argument('-n', '--na... | 30.772727 | 64 | 0.601182 | 76 | 677 | 5.171053 | 0.526316 | 0.091603 | 0.173028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00202 | 0.268833 | 677 | 21 | 65 | 32.238095 | 0.791919 | 0 | 0 | 0 | 1 | 0 | 0.096012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c90a291e075c94f8e7473e064d4726312140af96 | 398 | py | Python | log_management/migrations/0003_auto_20191220_0311.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 3 | 2019-10-22T00:16:49.000Z | 2021-07-15T07:44:43.000Z | log_management/migrations/0003_auto_20191220_0311.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 1,183 | 2018-04-19T18:40:30.000Z | 2022-03-31T21:05:05.000Z | log_management/migrations/0003_auto_20191220_0311.py | MelanieFJNR/Blitz-API | 9a6daecd158fe07a6aeb80cbf586781eb688f0f9 | [
"MIT"
] | 12 | 2018-04-17T19:16:42.000Z | 2022-01-27T00:19:59.000Z | # Generated by Django 2.2.7 on 2019-12-20 08:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('log_management', '0002_auto_20191210_0333'),
]
operations = [
migrations.AlterModelOptions(
name='emaillog',
options={'verbo... | 22.111111 | 87 | 0.623116 | 43 | 398 | 5.604651 | 0.767442 | 0.091286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10473 | 0.256281 | 398 | 17 | 88 | 23.411765 | 0.709459 | 0.113065 | 0 | 0 | 1 | 0 | 0.270655 | 0.065527 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c90c9f63564c03a1187f64eaaa2057aa7a29dcd4 | 6,981 | py | Python | submit/controllers/ui/tests/test_jref.py | cul-it/arxiv-submission-ui | 5cd67e15db72bb8aa4acf686fb3aa8b41727580a | [
"MIT"
] | 4 | 2019-05-26T22:51:12.000Z | 2021-11-05T12:27:41.000Z | submit/controllers/ui/tests/test_jref.py | arXiv/arxiv-submission-ui | 5cd67e15db72bb8aa4acf686fb3aa8b41727580a | [
"MIT"
] | 103 | 2018-12-18T20:35:47.000Z | 2021-01-22T16:40:55.000Z | submit/controllers/ui/tests/test_jref.py | cul-it/arxiv-submission-ui | 5cd67e15db72bb8aa4acf686fb3aa8b41727580a | [
"MIT"
] | 3 | 2019-05-26T22:51:01.000Z | 2021-11-05T12:27:30.000Z | """Tests for :mod:`submit.controllers.jref`."""
from unittest import TestCase, mock
from werkzeug.datastructures import MultiDict
from werkzeug.exceptions import InternalServerError, NotFound
from wtforms import Form
from http import HTTPStatus as status
import arxiv.submission as events
from submit.controllers.ui imp... | 47.168919 | 79 | 0.613236 | 797 | 6,981 | 5.169385 | 0.203262 | 0.072816 | 0.026699 | 0.037379 | 0.705097 | 0.675728 | 0.666748 | 0.666748 | 0.666748 | 0.666748 | 0 | 0.013998 | 0.273457 | 6,981 | 147 | 80 | 47.489796 | 0.798304 | 0.048417 | 0 | 0.551181 | 0 | 0 | 0.212231 | 0.077354 | 0 | 0 | 0 | 0 | 0.141732 | 1 | 0.047244 | false | 0 | 0.07874 | 0 | 0.141732 | 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 |
c9108aff52d3eed0d51f4924f8e545395865b6de | 5,892 | py | Python | python/packages/pybind_nisar/products/readers/Raw/Raw.py | piyushrpt/isce3 | 1741af321470cb5939693459765d11a19c5c6fc2 | [
"Apache-2.0"
] | null | null | null | python/packages/pybind_nisar/products/readers/Raw/Raw.py | piyushrpt/isce3 | 1741af321470cb5939693459765d11a19c5c6fc2 | [
"Apache-2.0"
] | null | null | null | python/packages/pybind_nisar/products/readers/Raw/Raw.py | piyushrpt/isce3 | 1741af321470cb5939693459765d11a19c5c6fc2 | [
"Apache-2.0"
] | null | null | null | from .DataDecoder import DataDecoder
import h5py
import logging
from pybind_nisar.products.readers import Base
import numpy as np
import pyre
import pybind_isce3 as isce
import re
# TODO some CSV logger
log = logging.getLogger("Raw")
PRODUCT = "RRSD"
def find_case_insensitive(group: h5py.Group, name: str) -> str:
... | 37.056604 | 83 | 0.598948 | 738 | 5,892 | 4.741192 | 0.296748 | 0.037153 | 0.027436 | 0.045727 | 0.258074 | 0.199486 | 0.180051 | 0.164904 | 0.164904 | 0.153187 | 0 | 0.009304 | 0.270367 | 5,892 | 158 | 84 | 37.291139 | 0.804606 | 0.1037 | 0 | 0.088496 | 0 | 0 | 0.141728 | 0.05727 | 0 | 0 | 0 | 0.012658 | 0.017699 | 1 | 0.141593 | false | 0 | 0.070796 | 0.026549 | 0.362832 | 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 |
c914361c6b99eff844f4a5ed5248dd5501f3b804 | 599 | py | Python | ryu/app/curly.py | doup123/diplomas | c66a2bdda77deeec795236d333fd473a6ea4e7ca | [
"Apache-2.0"
] | null | null | null | ryu/app/curly.py | doup123/diplomas | c66a2bdda77deeec795236d333fd473a6ea4e7ca | [
"Apache-2.0"
] | 1 | 2019-03-07T02:48:16.000Z | 2019-03-07T02:48:16.000Z | ryu/app/curly.py | doup123/diplomas | c66a2bdda77deeec795236d333fd473a6ea4e7ca | [
"Apache-2.0"
] | 1 | 2019-03-10T09:32:45.000Z | 2019-03-10T09:32:45.000Z | import pycurl
from StringIO import StringIO
class Curl:
def __init__(self,host):
self.url=str(host)
def get_page(self,file=None):
try:
buffer = StringIO()
c = pycurl.Curl()
c.setopt(c.URL, self.url)
c.setopt(c.WRITEDATA, buffer)
c.per... | 20.655172 | 42 | 0.472454 | 64 | 599 | 4.34375 | 0.515625 | 0.05036 | 0.057554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.42571 | 599 | 28 | 43 | 21.392857 | 0.80814 | 0.020033 | 0 | 0.095238 | 0 | 0 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.095238 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c919ff95d650a792a2463b6dcde69f9a734705d5 | 3,936 | py | Python | mechanize_scraper_threaded.py | themayursinha/Python-code | b6393d1596029b8dbe5b5afde986c202a3b61c06 | [
"MIT"
] | 57 | 2015-06-09T08:23:01.000Z | 2021-12-03T21:30:15.000Z | mechanize_scraper_threaded.py | themayursinha/Python-code | b6393d1596029b8dbe5b5afde986c202a3b61c06 | [
"MIT"
] | null | null | null | mechanize_scraper_threaded.py | themayursinha/Python-code | b6393d1596029b8dbe5b5afde986c202a3b61c06 | [
"MIT"
] | 27 | 2015-07-28T10:06:15.000Z | 2021-12-03T21:30:03.000Z | #/bin/python
# Program for getting stats out of the Alexa_10000_domains.txt (top alexa domains)
# Example: python mechanize_scraper.py -t Alexa_10000_domains.txt -s robots_directory -p robots.txt -n 10
import mechanize
import logging
import time
from optparse import OptionParser
from urllib2 import HTTPError
import Qu... | 30.75 | 105 | 0.630843 | 526 | 3,936 | 4.608365 | 0.338403 | 0.033416 | 0.037541 | 0.019802 | 0.089521 | 0.072195 | 0.033003 | 0 | 0 | 0 | 0 | 0.006775 | 0.25 | 3,936 | 127 | 106 | 30.992126 | 0.814363 | 0.167429 | 0 | 0.060241 | 0 | 0 | 0.170709 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096386 | null | null | 0.048193 | 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 |
c9214e363ea6c071eb3fc432cdda470e50ce6a89 | 584 | py | Python | spreedly/templatetags/spreedly_tags.py | guitarparty/django-spreedly | 532e594d5163bf177141ce1e6a4b349c714e4e6d | [
"MIT"
] | null | null | null | spreedly/templatetags/spreedly_tags.py | guitarparty/django-spreedly | 532e594d5163bf177141ce1e6a4b349c714e4e6d | [
"MIT"
] | null | null | null | spreedly/templatetags/spreedly_tags.py | guitarparty/django-spreedly | 532e594d5163bf177141ce1e6a4b349c714e4e6d | [
"MIT"
] | null | null | null | from django.conf import settings
from django import template
from spreedly.functions import subscription_url, return_url
register = template.Library()
@register.simple_tag
def existing_plan_url(user):
return 'https://subs.pinpayments.com/%(site_name)s/subscriber_accounts/%(user_token)s/?return_url=%(return_url)s... | 30.736842 | 121 | 0.751712 | 80 | 584 | 5.225 | 0.375 | 0.129187 | 0.086124 | 0.095694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135274 | 584 | 18 | 122 | 32.444444 | 0.827723 | 0 | 0 | 0.142857 | 0 | 0.071429 | 0.22774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.142857 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
c924921abc86ff7394948270eca2ce898d30204e | 665 | py | Python | privacy/schema/embeds.py | Justasic/Privacy.py | 471e6669a1e22e539459bbeb24de4efd3b7a11e0 | [
"BSD-3-Clause"
] | 3 | 2019-11-04T16:11:36.000Z | 2021-05-24T18:56:40.000Z | privacy/schema/embeds.py | Justasic/Privacy.py | 471e6669a1e22e539459bbeb24de4efd3b7a11e0 | [
"BSD-3-Clause"
] | 9 | 2019-11-09T01:47:58.000Z | 2022-03-30T00:19:20.000Z | privacy/schema/embeds.py | Justasic/Privacy.py | 471e6669a1e22e539459bbeb24de4efd3b7a11e0 | [
"BSD-3-Clause"
] | 2 | 2020-08-12T03:22:29.000Z | 2020-12-10T00:08:46.000Z | """The embed related model(s)."""
from datetime import datetime
import typing
from privacy.schema.base import CustomBase
class EmbedRequest(CustomBase):
"""
The EmbedRequest model.
Attributes:
token (str): The globally unique identifier for the card to be displayed.
css (str): A publicl... | 23.75 | 98 | 0.693233 | 80 | 665 | 5.6625 | 0.6125 | 0.06181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216541 | 665 | 27 | 99 | 24.62963 | 0.869482 | 0.491729 | 0 | 0 | 0 | 0 | 0.13289 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.1 | 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 |
c925796cd9f98bad3989fb5935c6eb4b0b2981dc | 904 | py | Python | openbook_posts/views/post_comments/serializer_fields.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_posts/views/post_comments/serializer_fields.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_posts/views/post_comments/serializer_fields.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | from rest_framework.fields import Field
class RepliesField(Field):
DEFAULT_REPLY_COUNT = 2
def __init__(self, post_comment_reply_serializer=None, **kwargs):
kwargs['source'] = '*'
kwargs['read_only'] = True
self.post_comment_reply_serializer = post_comment_reply_serializer
su... | 36.16 | 104 | 0.711283 | 112 | 904 | 5.303571 | 0.401786 | 0.148148 | 0.10101 | 0.175084 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001364 | 0.189159 | 904 | 24 | 105 | 37.666667 | 0.809004 | 0 | 0 | 0 | 0 | 0 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.352941 | 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 |
c9265efba7be8abf928c7169d1c7c58563b6dfc9 | 569 | py | Python | kaskade/widgets/header.py | sauljabin/kaskade | fe270821dd05459df11adaabbd5a0ea39809456e | [
"MIT"
] | 16 | 2021-10-02T02:58:17.000Z | 2022-02-13T13:09:27.000Z | kaskade/widgets/header.py | sauljabin/kaskade | fe270821dd05459df11adaabbd5a0ea39809456e | [
"MIT"
] | 3 | 2021-11-17T17:08:12.000Z | 2022-02-07T23:54:04.000Z | kaskade/widgets/header.py | sauljabin/kaskade | fe270821dd05459df11adaabbd5a0ea39809456e | [
"MIT"
] | 1 | 2021-12-22T17:15:54.000Z | 2021-12-22T17:15:54.000Z | from rich.columns import Columns
from textual.widget import Widget
from kaskade.renderables.cluster_info import ClusterInfo
from kaskade.renderables.kaskade_name import KaskadeName
from kaskade.renderables.shortcuts_header import ShortcutsHeader
class Header(Widget):
def on_mount(self) -> None:
self.layo... | 31.611111 | 74 | 0.752197 | 67 | 569 | 6.253731 | 0.447761 | 0.078759 | 0.157518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.173989 | 569 | 17 | 75 | 33.470588 | 0.887234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.384615 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
c927d4fe8de41062bf58ed51369dd5a15f38693b | 874 | py | Python | collector/lib/parsers/max_paragraphs.py | elliottmina/spartannews | f9932b7c188d4143eda0da225bf1eee5a9d341d3 | [
"MIT"
] | null | null | null | collector/lib/parsers/max_paragraphs.py | elliottmina/spartannews | f9932b7c188d4143eda0da225bf1eee5a9d341d3 | [
"MIT"
] | 1 | 2021-06-01T21:53:41.000Z | 2021-06-01T21:53:41.000Z | collector/lib/parsers/max_paragraphs.py | elliottmina/spartannews | f9932b7c188d4143eda0da225bf1eee5a9d341d3 | [
"MIT"
] | null | null | null | def mutate(soup):
paragraphs = get_max_paragraph_set(soup)
headline = soup.find('h1')
html = str(headline) + '\n'
for paragraph in paragraphs:
html += str(paragraph) + '\n'
return html
def get_max_paragraph_set(soup):
paragraph_map = build_paragraph_map(soup)
key = get_max_key(paragraph_map)
if key is None:... | 23.621622 | 46 | 0.740275 | 129 | 874 | 4.775194 | 0.294574 | 0.233766 | 0.073052 | 0.058442 | 0.13961 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002717 | 0.157895 | 874 | 36 | 47 | 24.277778 | 0.834239 | 0 | 0 | 0 | 0 | 0 | 0.008009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.032258 | 0 | 0 | 0.290323 | 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 |
c92c5091070f9da983e21618b15fc7f3bc6b76ac | 173 | py | Python | liczba_liter.py | jdscorpio/Python | 44d86a7af899473eb52cab2e704ba6ebdb1be9c1 | [
"MIT"
] | null | null | null | liczba_liter.py | jdscorpio/Python | 44d86a7af899473eb52cab2e704ba6ebdb1be9c1 | [
"MIT"
] | null | null | null | liczba_liter.py | jdscorpio/Python | 44d86a7af899473eb52cab2e704ba6ebdb1be9c1 | [
"MIT"
] | null | null | null | letters = 'aeiou'
txt = input("Podaj tekst: ")
txt = txt.casefold()
count = {}.fromkeys(letters,0)
for ch in txt:
if ch in count:
count[ch] +=1
print(count)
| 13.307692 | 30 | 0.601156 | 26 | 173 | 4 | 0.615385 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.236994 | 173 | 12 | 31 | 14.416667 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c92cb4297e771ab581039600db740727c1a3ea6b | 280 | py | Python | settings_files/create_jobs/gauss_tddft_opt.py | tommason14/monash2018 | 8fc2de97172130ed5d532deb6f5bcca39ef3a6e3 | [
"MIT"
] | 7 | 2020-06-05T01:55:09.000Z | 2021-12-20T19:32:36.000Z | settings_files/create_jobs/gauss_tddft_opt.py | tommason14/monash2018 | 8fc2de97172130ed5d532deb6f5bcca39ef3a6e3 | [
"MIT"
] | null | null | null | settings_files/create_jobs/gauss_tddft_opt.py | tommason14/monash2018 | 8fc2de97172130ed5d532deb6f5bcca39ef3a6e3 | [
"MIT"
] | 8 | 2020-06-06T10:03:17.000Z | 2022-03-18T14:47:33.000Z | from autochem import Settings, GaussJob
import glob
xyz=glob.glob('.xyz')[0]
sett=Settings()
sett.input.method='wB97XD'
sett.input.basis='aug-cc-pVDZ'
sett.input.opt=True
sett.input.td='NSTATES=10,root=5'
sett.input.scrf='smd,solvent=water'
GaussJob(using=xyz, settings=sett)
| 20 | 39 | 0.757143 | 46 | 280 | 4.608696 | 0.608696 | 0.212264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023077 | 0.071429 | 280 | 13 | 40 | 21.538462 | 0.792308 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 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 |
c934e422a4308b2e5d8f9fb0ef59a9d5965a8faf | 3,028 | py | Python | pytorch_lightning/overrides/distributed.py | KyleGoyette/pytorch-lightning | d6470bf1937e51e037a7f94a55ad76898e5ae103 | [
"Apache-2.0"
] | 3 | 2021-04-09T14:03:03.000Z | 2021-04-10T02:58:23.000Z | pytorch_lightning/overrides/distributed.py | KyleGoyette/pytorch-lightning | d6470bf1937e51e037a7f94a55ad76898e5ae103 | [
"Apache-2.0"
] | 1 | 2021-03-01T17:32:12.000Z | 2021-03-01T17:32:12.000Z | pytorch_lightning/overrides/distributed.py | KyleGoyette/pytorch-lightning | d6470bf1937e51e037a7f94a55ad76898e5ae103 | [
"Apache-2.0"
] | 1 | 2021-02-16T00:47:46.000Z | 2021-02-16T00:47:46.000Z | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 38.820513 | 101 | 0.7107 | 389 | 3,028 | 5.393316 | 0.473008 | 0.028599 | 0.028599 | 0.035748 | 0.090562 | 0.035272 | 0.035272 | 0 | 0 | 0 | 0 | 0.005451 | 0.212351 | 3,028 | 77 | 102 | 39.324675 | 0.874214 | 0.555152 | 0 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.518519 | 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 |
c93912332cebbfff95dde910c6a8829489f6babe | 143 | py | Python | UVA/vol-103/10303.py | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | 3 | 2017-05-12T14:45:37.000Z | 2020-01-18T16:51:25.000Z | UVA/vol-103/10303.py | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | null | null | null | UVA/vol-103/10303.py | arash16/prays | 0fe6bb2fa008b8fc46c80b01729f68308114020d | [
"MIT"
] | null | null | null | import sys;
dp = [1]
for i in range(1, 1003):
dp.append((4*i-2)*dp[i-1]//(i+1))
for line in sys.stdin:
print(dp[int(line.strip())])
| 14.3 | 37 | 0.566434 | 30 | 143 | 2.7 | 0.566667 | 0.098765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 0.188811 | 143 | 9 | 38 | 15.888889 | 0.612069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 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 |
c939842e92aa59f82fb38613ffbdb3620afbfbf4 | 7,481 | py | Python | employee_management_backend/users/migrations/0002_auto_20190322_0543.py | SamwelOpiyo/simple_company_employee_management_backend | 75723dd6aed002a1bc30f2d78d077e498eb25226 | [
"MIT"
] | null | null | null | employee_management_backend/users/migrations/0002_auto_20190322_0543.py | SamwelOpiyo/simple_company_employee_management_backend | 75723dd6aed002a1bc30f2d78d077e498eb25226 | [
"MIT"
] | null | null | null | employee_management_backend/users/migrations/0002_auto_20190322_0543.py | SamwelOpiyo/simple_company_employee_management_backend | 75723dd6aed002a1bc30f2d78d077e498eb25226 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.13 on 2019-03-22 05:43
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import employee_management_backend.users.utils
class Migration(migrations.Migration):
dependencies = [("users", "0001_initial"... | 33.547085 | 110 | 0.395803 | 571 | 7,481 | 5.043783 | 0.227671 | 0.076389 | 0.083333 | 0.1 | 0.588194 | 0.4625 | 0.358681 | 0.251042 | 0.178125 | 0.178125 | 0 | 0.036247 | 0.498463 | 7,481 | 222 | 111 | 33.698198 | 0.731343 | 0.006149 | 0 | 0.541667 | 1 | 0.013889 | 0.160635 | 0.018969 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023148 | 0 | 0.037037 | 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 |
c93bb77d77bad3583399caac9f7a9fff23525129 | 9,542 | py | Python | tasks/task_factory.py | xyla-io/almacen | 7b7f235dc7939777f971f1b5eadd5621e980c15e | [
"MIT"
] | 2 | 2020-10-15T22:12:17.000Z | 2020-10-26T07:17:17.000Z | tasks/task_factory.py | xyla-io/almacen | 7b7f235dc7939777f971f1b5eadd5621e980c15e | [
"MIT"
] | null | null | null | tasks/task_factory.py | xyla-io/almacen | 7b7f235dc7939777f971f1b5eadd5621e980c15e | [
"MIT"
] | null | null | null | import models
from . import base
from . import tasks_fetch_adjust
from . import tasks_fetch_apple
from . import tasks_fetch_google_ads
from . import tasks_fetch_appsflyer
from . import tasks_fetch_appsflyer_data_locker
from . import tasks_fetch_facebook
from . import tasks_fetch_snapchat
from . import tasks_fetch_tikt... | 67.197183 | 118 | 0.869524 | 1,148 | 9,542 | 6.748258 | 0.125436 | 0.076159 | 0.089841 | 0.113592 | 0.55273 | 0.476701 | 0.44301 | 0.44301 | 0.399768 | 0.384407 | 0 | 0 | 0.08363 | 9,542 | 142 | 119 | 67.197183 | 0.885979 | 0 | 0 | 0 | 0 | 0 | 0.006078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007246 | false | 0 | 0.123188 | 0 | 0.543478 | 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 |
c9410b508eaf2d8d30d342460948a8c3c78cfc2c | 2,296 | py | Python | tests/components/test_page_group.py | bstr9/amis-py | 3af6266e4d1d8574957662af92640a734603b198 | [
"Apache-2.0"
] | 1 | 2022-02-24T04:07:53.000Z | 2022-02-24T04:07:53.000Z | tests/components/test_page_group.py | bstr9/amis-py | 3af6266e4d1d8574957662af92640a734603b198 | [
"Apache-2.0"
] | null | null | null | tests/components/test_page_group.py | bstr9/amis-py | 3af6266e4d1d8574957662af92640a734603b198 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
class TestPageGroup(TestCase):
def test_page_group(self):
from amis_py.components import (
Page, PageGroup, PageProperties, PageGroupProperties)
from amis_py.components.form import InputNumber, InputNumberProperties
from amis_py.simple.form import ... | 33.764706 | 78 | 0.334059 | 139 | 2,296 | 5.431655 | 0.330935 | 0.059603 | 0.039735 | 0.05298 | 0.140397 | 0.140397 | 0.140397 | 0.140397 | 0.140397 | 0.140397 | 0 | 0.01472 | 0.556185 | 2,296 | 67 | 79 | 34.268657 | 0.726202 | 0 | 0 | 0.387097 | 0 | 0 | 0.093641 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 1 | 0.048387 | false | 0 | 0.064516 | 0.016129 | 0.16129 | 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 |
c94ef8f76648889f3cf38658de7deb2c685303e8 | 13,515 | py | Python | pychembldb/__init__.py | kzfm/pychembldb | 0dde6a05b2dc138e0be7f8f27f57b5c2a42e23c7 | [
"CC0-1.0"
] | 8 | 2020-01-16T00:43:46.000Z | 2021-11-27T18:26:12.000Z | pychembldb/__init__.py | iwatobipen/pychembldb | 0dde6a05b2dc138e0be7f8f27f57b5c2a42e23c7 | [
"CC0-1.0"
] | null | null | null | pychembldb/__init__.py | iwatobipen/pychembldb | 0dde6a05b2dc138e0be7f8f27f57b5c2a42e23c7 | [
"CC0-1.0"
] | 3 | 2020-05-31T05:54:33.000Z | 2021-11-15T04:31:07.000Z | import os
from sqlalchemy import *
from sqlalchemy.orm import create_session, relationship
from sqlalchemy.ext.declarative import declarative_base
uri = 'mysql://root@localhost/chembl_25'
if 'CHEMBL_URI' in os.environ:
uri = os.environ['CHEMBL_URI']
Base = declarative_base()
engine = create_engine(uri)
metadata =... | 36.825613 | 157 | 0.758639 | 1,291 | 13,515 | 7.651433 | 0.15182 | 0.13768 | 0.1721 | 0.053148 | 0.35412 | 0.257846 | 0.215833 | 0.151954 | 0.061956 | 0.019437 | 0 | 0.000168 | 0.118313 | 13,515 | 366 | 158 | 36.92623 | 0.828802 | 0.025231 | 0 | 0 | 0 | 0 | 0.22476 | 0.029846 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.922727 | 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 |
c9516c5d5337e86f6e9fdad5a94fd012970bdbd8 | 5,618 | py | Python | life.py | SnakeNuts/unicorn-hat-experiments | f891121d897e05bd1aabeb2c4c192cb2f3d14476 | [
"MIT"
] | 2 | 2015-02-25T23:39:54.000Z | 2017-10-07T00:46:09.000Z | life.py | SnakeNuts/unicorn-hat-experiments | f891121d897e05bd1aabeb2c4c192cb2f3d14476 | [
"MIT"
] | null | null | null | life.py | SnakeNuts/unicorn-hat-experiments | f891121d897e05bd1aabeb2c4c192cb2f3d14476 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
###
# Conway's game of life for Unicorn Hat
# (C) 2014 Alex Crouzen
# Shared under the MIT permissive license.
###
import random
import time
import unicornhat as unicorn
class LifeCell:
"""
Central class defining both the cells and the matrix of cells.
"""
matrix = {} # t... | 31.740113 | 111 | 0.559808 | 680 | 5,618 | 4.426471 | 0.198529 | 0.03887 | 0.0299 | 0.071761 | 0.430233 | 0.356811 | 0.313289 | 0.231229 | 0.215282 | 0.215282 | 0 | 0.016658 | 0.348167 | 5,618 | 176 | 112 | 31.920455 | 0.805298 | 0.056782 | 0 | 0.371429 | 0 | 0 | 0.026236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028571 | null | null | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c954b0083de71120f418ec1e20de152bedfe3de6 | 279 | py | Python | mysite/spa/urls.py | orlyohreally/spa | 7bf1a98c7bd98c6685d837fe8204ae9ad3f7fff7 | [
"MIT"
] | null | null | null | mysite/spa/urls.py | orlyohreally/spa | 7bf1a98c7bd98c6685d837fe8204ae9ad3f7fff7 | [
"MIT"
] | null | null | null | mysite/spa/urls.py | orlyohreally/spa | 7bf1a98c7bd98c6685d837fe8204ae9ad3f7fff7 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^newTask', views.newTask, name='newTask'),
url(r'^deleteTask', views.deleteTask, name='deleteTask'),
url(r'^updateTask', views.updateTask, name='updateTask'),
] | 31 | 58 | 0.702509 | 37 | 279 | 5.297297 | 0.378378 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100358 | 279 | 9 | 59 | 31 | 0.780876 | 0 | 0 | 0 | 0 | 0 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
c95bc862c77f8fafc7c14c350c5f2bcf1775b213 | 2,882 | py | Python | lib/etcd.py | HA247RethinkIT/haproxy-galera-etcd | 90f781aeaec5c652496f958775c9382481b942e1 | [
"MIT"
] | null | null | null | lib/etcd.py | HA247RethinkIT/haproxy-galera-etcd | 90f781aeaec5c652496f958775c9382481b942e1 | [
"MIT"
] | 1 | 2019-10-09T08:22:25.000Z | 2019-10-09T08:22:35.000Z | lib/etcd.py | HA247RethinkIT/haproxy-galera-etcd | 90f781aeaec5c652496f958775c9382481b942e1 | [
"MIT"
] | null | null | null | import sys
from apiclient import APIClient
class Etcd(APIClient):
"""
Get services from etcd
Expects them at /keys/pxc-cluster/, for each service, the value expected is (HOST|IP):PORT
e.g. for a galera cluster with the name cluster1:
$ curl http://{IP:PORT}/v2/keys/pxc-cluster/clus... | 33.511628 | 98 | 0.450729 | 267 | 2,882 | 4.794007 | 0.355805 | 0.054688 | 0.070313 | 0.065625 | 0.28125 | 0.225 | 0.1125 | 0.05 | 0 | 0 | 0 | 0.094262 | 0.407356 | 2,882 | 85 | 99 | 33.905882 | 0.655152 | 0 | 0 | 0.210526 | 0 | 0 | 0.148248 | 0.014151 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.052632 | 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 |
c9630302829ff33121ae94dfcb5c0c7785c4beac | 20,161 | py | Python | GermBot.py | Potatoconomy/GermBot | fb378122794e9a8b78f89963e4dffb5c29bca050 | [
"MIT"
] | null | null | null | GermBot.py | Potatoconomy/GermBot | fb378122794e9a8b78f89963e4dffb5c29bca050 | [
"MIT"
] | null | null | null | GermBot.py | Potatoconomy/GermBot | fb378122794e9a8b78f89963e4dffb5c29bca050 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 3 12:20:34 2020
@author: Patrick
"""
#Make sure current working directory is the folder before DiscordBot
import os
cwd = os.getcwd()
import numpy as np
import duden
import discord
from dotenv import load_dotenv
import nest_asyncio
import asyncio
nest_asyn... | 39.454012 | 220 | 0.496553 | 2,100 | 20,161 | 4.649048 | 0.222381 | 0.028168 | 0.024583 | 0.018642 | 0.311892 | 0.256581 | 0.237325 | 0.224624 | 0.213561 | 0.195124 | 0 | 0.008198 | 0.352611 | 20,161 | 510 | 221 | 39.531373 | 0.739427 | 0.374386 | 0 | 0.307229 | 0 | 0.024096 | 0.153358 | 0.02419 | 0 | 0 | 0 | 0.011765 | 0 | 1 | 0.024096 | false | 0.018072 | 0.066265 | 0 | 0.162651 | 0.036145 | 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 |
c96dcb1c65a522eb95a489cfc0e999d2eb46ecdd | 5,972 | py | Python | mathPages122-123.py | petrvanblokland/TYPETR-Upgrade-site | 25aa4025d9d4592b73c0265cf7b3b4f9556bc9a6 | [
"MIT"
] | null | null | null | mathPages122-123.py | petrvanblokland/TYPETR-Upgrade-site | 25aa4025d9d4592b73c0265cf7b3b4f9556bc9a6 | [
"MIT"
] | 1 | 2018-01-15T23:49:44.000Z | 2018-01-16T00:18:46.000Z | mathPages122-123.py | petrvanblokland/TYPETR-Upgrade-site | 25aa4025d9d4592b73c0265cf7b3b4f9556bc9a6 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens & Font Bureau
# www.pagebot.io
#
# P A G E B O T
#
# Free to use. Licensed under MIT conditions
#
# Supporting usa... | 51.930435 | 456 | 0.697086 | 890 | 5,972 | 4.680899 | 0.410112 | 0.017283 | 0.032405 | 0.025924 | 0.144023 | 0.117139 | 0.107537 | 0.100336 | 0.077292 | 0.077292 | 0 | 0.021963 | 0.168955 | 5,972 | 115 | 457 | 51.930435 | 0.815837 | 0.095278 | 0 | 0.133333 | 0 | 0.106667 | 0.487556 | 0.014673 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.04 | null | null | 0.013333 | 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 |
c97182a9fb18d01f8559259123b82b6cd688662d | 1,189 | py | Python | src/explainer/parse.py | saromanov/explainer | aaa5eeb0316802779891119ed80e946b1b1b39a6 | [
"MIT"
] | null | null | null | src/explainer/parse.py | saromanov/explainer | aaa5eeb0316802779891119ed80e946b1b1b39a6 | [
"MIT"
] | null | null | null | src/explainer/parse.py | saromanov/explainer | aaa5eeb0316802779891119ed80e946b1b1b39a6 | [
"MIT"
] | null | null | null | from typing import List, Dict
class Analyzer:
def __init__(self, title):
self.planning_time = ''
self.execution_time = ''
self._sort_names = []
self._tasks = []
self._title = title
def title_name(self) -> str:
return self._title
def report(self) -> ... | 31.289474 | 91 | 0.59714 | 153 | 1,189 | 4.431373 | 0.346405 | 0.088496 | 0.048673 | 0.070796 | 0.120944 | 0.091445 | 0.091445 | 0.091445 | 0 | 0 | 0 | 0.003488 | 0.276703 | 1,189 | 38 | 92 | 31.289474 | 0.784884 | 0.058032 | 0 | 0 | 0 | 0 | 0.075523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.034483 | 0.103448 | 0.37931 | 0.034483 | 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 |
c973f2cf89b527e46c306d0756d5d92ea2a94ea9 | 1,633 | py | Python | tests/test_models_scope.py | odsod/site-generator | 651c79f569e3d225c486088e6589cd70f977e1b2 | [
"Apache-2.0"
] | 13 | 2020-10-29T19:18:14.000Z | 2022-03-08T13:55:09.000Z | tests/test_models_scope.py | odsod/site-generator | 651c79f569e3d225c486088e6589cd70f977e1b2 | [
"Apache-2.0"
] | 10 | 2020-08-03T19:47:43.000Z | 2022-02-15T10:53:17.000Z | tests/test_models_scope.py | odsod/site-generator | 651c79f569e3d225c486088e6589cd70f977e1b2 | [
"Apache-2.0"
] | 7 | 2020-08-07T23:59:12.000Z | 2021-12-12T14:31:23.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 34.744681 | 74 | 0.710961 | 239 | 1,633 | 4.820084 | 0.401674 | 0.060764 | 0.044271 | 0.057292 | 0.203125 | 0.203125 | 0.130208 | 0.130208 | 0.097222 | 0.097222 | 0 | 0.017804 | 0.174525 | 1,633 | 46 | 75 | 35.5 | 0.836795 | 0.334966 | 0 | 0.166667 | 0 | 0 | 0.157649 | 0.046642 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.166667 | false | 0 | 0.041667 | 0 | 0.208333 | 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 |
c9747e415ff22810eabfd00a0f1239a9359f6da8 | 1,483 | py | Python | lc/0082_RemoveDuplicatesFromSortedListII.py | xiangshiyin/coding-challenge | a75a644b96dec1b6c7146b952ca4333263f0a461 | [
"Apache-2.0"
] | null | null | null | lc/0082_RemoveDuplicatesFromSortedListII.py | xiangshiyin/coding-challenge | a75a644b96dec1b6c7146b952ca4333263f0a461 | [
"Apache-2.0"
] | null | null | null | lc/0082_RemoveDuplicatesFromSortedListII.py | xiangshiyin/coding-challenge | a75a644b96dec1b6c7146b952ca4333263f0a461 | [
"Apache-2.0"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def deleteDuplicates(self, head: ListNode) -> ListNode:
# handle exceptions
if head==None or head.next==None:
re... | 23.919355 | 66 | 0.370196 | 117 | 1,483 | 4.65812 | 0.316239 | 0.073395 | 0.044037 | 0.102752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015773 | 0.572488 | 1,483 | 62 | 67 | 23.919355 | 0.843849 | 0.171274 | 0 | 0.419355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0 | 0 | 0.129032 | 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 |
c9778eb983be2e809c1e5b03dcb4d56bef91c9e0 | 3,103 | py | Python | db.py | dragondjf/cqssl | 86d4d69654c79650646d7672d580abf9dccf6c98 | [
"Apache-2.0"
] | null | null | null | db.py | dragondjf/cqssl | 86d4d69654c79650646d7672d580abf9dccf6c98 | [
"Apache-2.0"
] | null | null | null | db.py | dragondjf/cqssl | 86d4d69654c79650646d7672d580abf9dccf6c98 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from app.model import dbWorker, Lottery
def classfiyData(data):
i = 0
splitRet = []
oddRet = {}
evenRet = {}
while i < len(data):
j = i
odd = []
even = []
while True:
if j < len(data) - 1:
if ... | 27.219298 | 74 | 0.454077 | 362 | 3,103 | 3.881215 | 0.212707 | 0.042705 | 0.046975 | 0.042705 | 0.186477 | 0.102491 | 0.102491 | 0.102491 | 0.102491 | 0.102491 | 0 | 0.036833 | 0.413793 | 3,103 | 113 | 75 | 27.460177 | 0.735569 | 0.079923 | 0 | 0.255556 | 0 | 0 | 0.011252 | 0 | 0.011111 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.011111 | null | null | 0.066667 | 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 |
c97801444e034df8019dd598aacae802ce2a802b | 767 | py | Python | prototypes/run_tower.py | fkberthold/tweedle | 6c6d21ad72143c75df860202556e4dc553a8b315 | [
"MIT"
] | 1 | 2019-01-22T06:42:51.000Z | 2019-01-22T06:42:51.000Z | prototypes/run_tower.py | fkberthold/tweedle | 6c6d21ad72143c75df860202556e4dc553a8b315 | [
"MIT"
] | null | null | null | prototypes/run_tower.py | fkberthold/tweedle | 6c6d21ad72143c75df860202556e4dc553a8b315 | [
"MIT"
] | null | null | null | import time
import sys
from towers_of_hanoi import *
st = State()
sys.setrecursionlimit(3700)
first_state = list_to_links([[0,1,2], [], []])
first = Link(Link(), first_state);
second_state = list_to_links([[1,2], [0], []])
second = Link(Link(0, 1), second_state)
third_state = list_to_links([[2], [0], [1]... | 27.392857 | 82 | 0.603651 | 119 | 767 | 3.680672 | 0.352941 | 0.10274 | 0.125571 | 0.182648 | 0.173516 | 0.173516 | 0.173516 | 0 | 0 | 0 | 0 | 0.04918 | 0.204694 | 767 | 27 | 83 | 28.407407 | 0.668852 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.130435 | 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 |
c97a111764bfe25dc99354261947c6726038f1d9 | 3,525 | py | Python | cert.py | umn-microsoft-automation/UMN-ComodoRestApi | 32392f0a25311718ded76b8abdb2a3dd5f11708d | [
"MIT"
] | null | null | null | cert.py | umn-microsoft-automation/UMN-ComodoRestApi | 32392f0a25311718ded76b8abdb2a3dd5f11708d | [
"MIT"
] | 1 | 2019-05-03T16:36:51.000Z | 2019-05-03T16:36:51.000Z | Examples/cert.py | umn-microsoft-automation/UMN-ComodoRestApi | 32392f0a25311718ded76b8abdb2a3dd5f11708d | [
"MIT"
] | 1 | 2018-03-21T15:03:12.000Z | 2018-03-21T15:03:12.000Z | import requests, subprocess, argparse, make_openssl_config, comodo, sys, json, pprint, time
'''
https://enterprise.comodo.com/security-solutions/digital-certificates/certificate-manager/certificate-manager-support-docs/incommon-docs/rest-api-doc.html
'''
parser = argparse.ArgumentParser(description="Get InCommon Ce... | 37.105263 | 166 | 0.714043 | 489 | 3,525 | 5.09816 | 0.417178 | 0.028881 | 0.07501 | 0.041717 | 0.065784 | 0.065784 | 0.03931 | 0.03931 | 0 | 0 | 0 | 0.01335 | 0.107518 | 3,525 | 94 | 167 | 37.5 | 0.779085 | 0.153475 | 0 | 0.065574 | 0 | 0 | 0.292544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.065574 | 0.016393 | 0 | 0.016393 | 0.114754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a30cc87f470aff4cdf6c4406e1767f5efaee5bf1 | 392 | py | Python | src/dataproviders/filesystem/decoder/LeagueDtoDecoder.py | danielbrai/lol_stats_etl | 730930c8a0ae03c1d07b37cd5f3cc523d2be0646 | [
"MIT"
] | null | null | null | src/dataproviders/filesystem/decoder/LeagueDtoDecoder.py | danielbrai/lol_stats_etl | 730930c8a0ae03c1d07b37cd5f3cc523d2be0646 | [
"MIT"
] | null | null | null | src/dataproviders/filesystem/decoder/LeagueDtoDecoder.py | danielbrai/lol_stats_etl | 730930c8a0ae03c1d07b37cd5f3cc523d2be0646 | [
"MIT"
] | null | null | null | from src.core.usecase.TeamModel import TeamModel
from src.core.usecase.LeagueModel import LeagueModel
class LeagueDtoDecoder:
def parse_to_object(self, json):
team_dto = []
for team in json['teams']:
team_dto.append(TeamModel(name=team['team'], lineup=team['lineup']))
return ... | 30.153846 | 86 | 0.693878 | 50 | 392 | 5.34 | 0.52 | 0.078652 | 0.082397 | 0.134831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 392 | 12 | 87 | 32.666667 | 0.829193 | 0 | 0 | 0 | 0 | 0 | 0.066327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a30dcbcfca48b09298748567c012e7bfeda7c7e7 | 12,300 | py | Python | eventgan/utils/observables.py | ramonpeter/EventGAN | 6fd96c315d42a7efd820dc5dfada60487f42526a | [
"MIT"
] | 4 | 2021-05-03T13:52:21.000Z | 2021-12-08T17:19:39.000Z | eventgan/utils/observables.py | ramonpeter/EventGAN | 6fd96c315d42a7efd820dc5dfada60487f42526a | [
"MIT"
] | null | null | null | eventgan/utils/observables.py | ramonpeter/EventGAN | 6fd96c315d42a7efd820dc5dfada60487f42526a | [
"MIT"
] | null | null | null | """Observables for plotting."""
import numpy as np
# pylint: disable=C0103
class Observables:
"""
Contains different functions to calculate 1-dim observables.
"""
def __init__(
self,
):
self.epsilon = 1e-8
@staticmethod
def identity(x: np.array):
"""Simply gives ... | 32.625995 | 85 | 0.541626 | 1,602 | 12,300 | 4.031211 | 0.098627 | 0.133168 | 0.069681 | 0.067668 | 0.740167 | 0.711366 | 0.672035 | 0.648033 | 0.615206 | 0.558532 | 0 | 0.026336 | 0.357886 | 12,300 | 376 | 86 | 32.712766 | 0.79134 | 0.428374 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.143791 | false | 0 | 0.006536 | 0 | 0.294118 | 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 |
a31604029d6a492e9c50fbc877f25c1d450bbfff | 190 | py | Python | ansq/tcp/consts.py | atugushev/ansq | 33926c4ec862f068b70f7db3a57b11c49654d1ab | [
"MIT"
] | null | null | null | ansq/tcp/consts.py | atugushev/ansq | 33926c4ec862f068b70f7db3a57b11c49654d1ab | [
"MIT"
] | 3 | 2020-05-28T13:09:59.000Z | 2022-03-28T17:01:26.000Z | ansq/tcp/consts.py | atugushev/ansq | 33926c4ec862f068b70f7db3a57b11c49654d1ab | [
"MIT"
] | null | null | null | NL = b'\n'
DATA_SIZE = 4
FRAME_SIZE = 4
HEADER_SIZE = DATA_SIZE + FRAME_SIZE
TIMESTAMP_SIZE = 8
ATTEMPTS_SIZE = 2
MSG_ID_SIZE = 16
MSG_HEADER = TIMESTAMP_SIZE + ATTEMPTS_SIZE + MSG_ID_SIZE
| 19 | 57 | 0.763158 | 34 | 190 | 3.852941 | 0.441176 | 0.122137 | 0.137405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.163158 | 190 | 9 | 58 | 21.111111 | 0.786164 | 0 | 0 | 0 | 0 | 0 | 0.010526 | 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 | 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 |
a31afe900fbe8555c567585d8a17e1d1e9177215 | 365 | py | Python | appointment-checker/main.py | thaneshp/appointment-checker | 20592d202270acc69a20aa48588270052c54b88a | [
"MIT"
] | null | null | null | appointment-checker/main.py | thaneshp/appointment-checker | 20592d202270acc69a20aa48588270052c54b88a | [
"MIT"
] | null | null | null | appointment-checker/main.py | thaneshp/appointment-checker | 20592d202270acc69a20aa48588270052c54b88a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from functions import *
from helpers import *
def main():
web_driver = initialise_webdriver()
prefill_select_options(web_driver)
click_date_input(web_driver)
find_available_date(web_driver, list_of_months=get_all_months(web_driver))
display_completion_time()
web_driver.... | 22.8125 | 78 | 0.739726 | 48 | 365 | 5.0625 | 0.666667 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003279 | 0.164384 | 365 | 16 | 79 | 22.8125 | 0.793443 | 0.046575 | 0 | 0 | 0 | 0 | 0.022989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 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 |
a332bf77d5a68d5ebf7a94480fe5f92e2d705f6f | 1,181 | py | Python | examples/gloo-snippet.py | aforren1/glumpy | 5ca21505b9b65549b8f9fa8ddb3a700c75119d61 | [
"BSD-3-Clause"
] | 1,074 | 2015-01-02T07:52:35.000Z | 2022-03-28T08:58:55.000Z | examples/gloo-snippet.py | aforren1/glumpy | 5ca21505b9b65549b8f9fa8ddb3a700c75119d61 | [
"BSD-3-Clause"
] | 273 | 2015-01-02T19:49:30.000Z | 2021-12-15T11:02:53.000Z | examples/gloo-snippet.py | aforren1/glumpy | 5ca21505b9b65549b8f9fa8ddb3a700c75119d61 | [
"BSD-3-Clause"
] | 206 | 2015-01-01T10:51:53.000Z | 2022-03-07T13:52:13.000Z | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import numpy as np
from glumpy import gloo
A = gl... | 31.078947 | 87 | 0.567316 | 167 | 1,181 | 3.898204 | 0.269461 | 0.129032 | 0.119816 | 0.105991 | 0.078341 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007547 | 0.102456 | 1,181 | 37 | 88 | 31.918919 | 0.606604 | 0.283658 | 0 | 0.166667 | 0 | 0 | 0.4642 | 0.078759 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.75 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
a3364dd21eaee855c8eb59fdc691828f7527dbb3 | 5,858 | py | Python | warreport/queuing.py | daboross/screeps-warreport | 96b4c7c89277e1a39182e15cd6d0ef3eb67d0fba | [
"MIT"
] | 2 | 2016-11-25T21:30:23.000Z | 2021-12-08T04:07:52.000Z | warreport/queuing.py | daboross/screeps-warreport | 96b4c7c89277e1a39182e15cd6d0ef3eb67d0fba | [
"MIT"
] | null | null | null | warreport/queuing.py | daboross/screeps-warreport | 96b4c7c89277e1a39182e15cd6d0ef3eb67d0fba | [
"MIT"
] | null | null | null | import logging
from warreport.key_constants import PROCESSING_QUEUE_SET, PROCESSING_QUEUE, REPORTING_QUEUE, BATTLE_DATA_EXPIRE, \
BATTLE_DATA_KEY, KEEP_IN_QUEUE_FOR_MAX_TICKS, ROOM_LAST_BATTLE_END_TICK_KEY, ROOM_LAST_BATTLE_END_TICK_EXPIRE
try:
import rapidjson as json
except ImportError:
import json
imp... | 46.492063 | 119 | 0.738136 | 867 | 5,858 | 4.761246 | 0.280277 | 0.036337 | 0.030523 | 0.016473 | 0.263324 | 0.214147 | 0.140019 | 0.140019 | 0.140019 | 0.140019 | 0 | 0.002965 | 0.193923 | 5,858 | 125 | 120 | 46.864 | 0.871241 | 0.506487 | 0 | 0.072727 | 0 | 0.018182 | 0.138019 | 0.028041 | 0 | 0 | 0 | 0.024 | 0.018182 | 1 | 0.090909 | false | 0 | 0.127273 | 0 | 0.254545 | 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 |
a33e6b60326b231c288e6fa3f46d7097a853eea0 | 492 | py | Python | krvjezivot/users/signals.py | jkvakaric/krv-je-zivot | a875dcde468e1e5508713e592f974cb147223b52 | [
"MIT"
] | null | null | null | krvjezivot/users/signals.py | jkvakaric/krv-je-zivot | a875dcde468e1e5508713e592f974cb147223b52 | [
"MIT"
] | null | null | null | krvjezivot/users/signals.py | jkvakaric/krv-je-zivot | a875dcde468e1e5508713e592f974cb147223b52 | [
"MIT"
] | null | null | null | # from django.contrib.auth.models import User
# from django.db.models.signals import post_save
from django.dispatch import receiver
from allauth.account.signals import user_signed_up
from allauth.socialaccount.signals import social_account_added
@receiver(user_signed_up)
def add_full_name_for_new_user(sender, user, ... | 27.333333 | 66 | 0.810976 | 71 | 492 | 5.352113 | 0.450704 | 0.078947 | 0.063158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 492 | 17 | 67 | 28.941176 | 0.86758 | 0.182927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.3 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a34b017aedf5e5c4720a1ae6f15141e23645579d | 1,985 | py | Python | Python/min-heap-class.py | saqibns/standard-algorithms | aa0e87253dd2f78409b14f78a7eb7929697a3b31 | [
"MIT"
] | null | null | null | Python/min-heap-class.py | saqibns/standard-algorithms | aa0e87253dd2f78409b14f78a7eb7929697a3b31 | [
"MIT"
] | null | null | null | Python/min-heap-class.py | saqibns/standard-algorithms | aa0e87253dd2f78409b14f78a7eb7929697a3b31 | [
"MIT"
] | null | null | null | class MinHeap:
def __init__(self, a):
self.a = a
self.heap_size = len(a)
def __str__(self):
return str(self.a)
def size(self):
return self.heap_size
def parent(self, i):
return i / 2
def left(self, i):
return 2 * i + 1
def right(self, i):
... | 25.126582 | 65 | 0.535516 | 306 | 1,985 | 3.352941 | 0.186275 | 0.121832 | 0.140351 | 0.063353 | 0.243665 | 0.201754 | 0.133528 | 0.097466 | 0.040936 | 0.040936 | 0 | 0.021986 | 0.335516 | 1,985 | 79 | 66 | 25.126582 | 0.755876 | 0.002519 | 0 | 0.092308 | 0 | 0 | 0.023232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
a34de119ea97dc1d3758d75a13362543be7a5a9a | 389 | py | Python | pafd/migrations/0002_auto_20210124_1159.py | kavinzhao/fduhole | 508922cfa0558c58b95206dd8fbf51d10525fa1e | [
"Apache-2.0"
] | 9 | 2021-04-14T12:08:38.000Z | 2021-12-16T08:14:40.000Z | pafd/migrations/0002_auto_20210124_1159.py | kavinzhao/fduhole | 508922cfa0558c58b95206dd8fbf51d10525fa1e | [
"Apache-2.0"
] | 9 | 2021-04-18T09:48:25.000Z | 2021-11-26T07:43:22.000Z | pafd/migrations/0002_auto_20210124_1159.py | kavinzhao/fduhole | 508922cfa0558c58b95206dd8fbf51d10525fa1e | [
"Apache-2.0"
] | 4 | 2021-07-15T02:10:42.000Z | 2022-01-22T02:12:11.000Z | # Generated by Django 3.1.5 on 2021-01-24 03:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pafd', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='student',
name='school_id',
... | 20.473684 | 63 | 0.59383 | 43 | 389 | 5.27907 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075812 | 0.287918 | 389 | 18 | 64 | 21.611111 | 0.743682 | 0.115681 | 0 | 0 | 1 | 0 | 0.093567 | 0 | 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 |
a356dbc15f2c1c35be444b195726a055d971bb85 | 4,310 | py | Python | goldstone/drfes/serializers.py | Solinea/goldstone-server | 91b078ca9fed1b33f48dc79f4af5c9d1817a1bc5 | [
"Apache-2.0"
] | 14 | 2015-05-18T22:11:11.000Z | 2020-08-14T06:50:09.000Z | goldstone/drfes/serializers.py | lexjacobs/goldstone-server | 91b078ca9fed1b33f48dc79f4af5c9d1817a1bc5 | [
"Apache-2.0"
] | 568 | 2015-05-17T01:26:36.000Z | 2021-06-10T20:36:47.000Z | goldstone/drfes/serializers.py | lexjacobs/goldstone-server | 91b078ca9fed1b33f48dc79f4af5c9d1817a1bc5 | [
"Apache-2.0"
] | 22 | 2015-05-25T20:16:06.000Z | 2021-08-08T20:25:24.000Z | """DRFES serialiers."""
# Copyright 2015 Solinea, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | 29.724138 | 78 | 0.64826 | 526 | 4,310 | 5.178707 | 0.342205 | 0.030837 | 0.024229 | 0.033774 | 0.50257 | 0.463289 | 0.463289 | 0.463289 | 0.463289 | 0.463289 | 0 | 0.008912 | 0.270998 | 4,310 | 144 | 79 | 29.930556 | 0.858052 | 0.404176 | 0 | 0.428571 | 0 | 0 | 0.102249 | 0 | 0 | 0 | 0 | 0 | 0.089286 | 1 | 0.107143 | false | 0.053571 | 0.053571 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a35cc52821b8ac8eae97caf527a777299f8a1529 | 7,863 | py | Python | python/machinetalk/protobuf/firmware_pb2.py | luminize/machinetalk-protobuf | 6ca7c99806401179ece164b07dc87852bfa8df9c | [
"MIT"
] | null | null | null | python/machinetalk/protobuf/firmware_pb2.py | luminize/machinetalk-protobuf | 6ca7c99806401179ece164b07dc87852bfa8df9c | [
"MIT"
] | null | null | null | python/machinetalk/protobuf/firmware_pb2.py | luminize/machinetalk-protobuf | 6ca7c99806401179ece164b07dc87852bfa8df9c | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: machinetalk/protobuf/firmware.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf impor... | 46.252941 | 675 | 0.754038 | 1,031 | 7,863 | 5.42968 | 0.164888 | 0.037156 | 0.082887 | 0.111468 | 0.649518 | 0.594855 | 0.557163 | 0.502501 | 0.489103 | 0.489103 | 0 | 0.064333 | 0.102505 | 7,863 | 169 | 676 | 46.526627 | 0.728922 | 0.037136 | 0 | 0.493151 | 1 | 0.006849 | 0.210603 | 0.132734 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047945 | 0 | 0.047945 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.