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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28a19fef7972c8bee43de53a146d83a177775a9b | 4,937 | py | Python | tests/test_draft.py | edsn60/tensorbay-python-sdk | abc428549490023dfe6ae06eab818a3e5bb97c18 | [
"MIT"
] | null | null | null | tests/test_draft.py | edsn60/tensorbay-python-sdk | abc428549490023dfe6ae06eab818a3e5bb97c18 | [
"MIT"
] | null | null | null | tests/test_draft.py | edsn60/tensorbay-python-sdk | abc428549490023dfe6ae06eab818a3e5bb97c18 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2021 Graviti. Licensed under MIT License.
#
import pytest
from tensorbay.client import GAS
from tensorbay.client.gas import DEFAULT_BRANCH
from tensorbay.client.struct import Draft
from tensorbay.exception import ResourceNotExistError, ResponseError, StatusError
from .utility imp... | 39.814516 | 90 | 0.696779 | 620 | 4,937 | 5.25 | 0.129032 | 0.191705 | 0.087558 | 0.095853 | 0.746851 | 0.718894 | 0.647926 | 0.6 | 0.499539 | 0.499539 | 0 | 0.019113 | 0.205185 | 4,937 | 123 | 91 | 40.138211 | 0.810398 | 0.032611 | 0 | 0.478261 | 0 | 0 | 0.082809 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 1 | 0.054348 | false | 0 | 0.065217 | 0 | 0.130435 | 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 |
95375e341b0bb02b3045bc905ae17e25b9e515da | 256 | py | Python | drf_file_management/urls.py | FJLendinez/drf-file-management | 9c8da90e85a37157a9195a0a96d0e140342f59fc | [
"MIT"
] | null | null | null | drf_file_management/urls.py | FJLendinez/drf-file-management | 9c8da90e85a37157a9195a0a96d0e140342f59fc | [
"MIT"
] | null | null | null | drf_file_management/urls.py | FJLendinez/drf-file-management | 9c8da90e85a37157a9195a0a96d0e140342f59fc | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework import routers
from drf_file_management.views import FileAPIView
router = routers.SimpleRouter()
router.register(r'file', FileAPIView)
app_name = 'drf_file_management'
urlpatterns = router.urls
| 21.333333 | 49 | 0.820313 | 34 | 256 | 6 | 0.617647 | 0.068627 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109375 | 256 | 11 | 50 | 23.272727 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0.089844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9556379e884bb34d26bd8efea1a883771a3e0c62 | 3,598 | py | Python | trello/space_works/migrations/0001_initial.py | copydataai/clon-trello | f088a6da770d9cc32decad6ae45637207d91a80b | [
"MIT"
] | null | null | null | trello/space_works/migrations/0001_initial.py | copydataai/clon-trello | f088a6da770d9cc32decad6ae45637207d91a80b | [
"MIT"
] | null | null | null | trello/space_works/migrations/0001_initial.py | copydataai/clon-trello | f088a6da770d9cc32decad6ae45637207d91a80b | [
"MIT"
] | null | null | null | # Generated by Django 3.2.13 on 2022-05-22 00:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0001_initial'),
migrations.swappable_depe... | 47.342105 | 186 | 0.605058 | 371 | 3,598 | 5.71159 | 0.293801 | 0.041529 | 0.039641 | 0.062294 | 0.560642 | 0.529023 | 0.476168 | 0.476168 | 0.476168 | 0.476168 | 0 | 0.013973 | 0.264036 | 3,598 | 75 | 187 | 47.973333 | 0.786254 | 0.012785 | 0 | 0.544118 | 1 | 0 | 0.165352 | 0.018028 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
955b786b777219f772f3a33736e1e4022abfcdfa | 567 | py | Python | blog/migrations/0002_summary.py | maweefeng/Blog-Powed-by-Django | 50c9a7af3a8bc3f0ede12f4deb6bb5552b82d9e0 | [
"MIT"
] | 1 | 2019-05-29T09:59:53.000Z | 2019-05-29T09:59:53.000Z | blog/migrations/0002_summary.py | maweefeng/Blog-Powed-by-Django | 50c9a7af3a8bc3f0ede12f4deb6bb5552b82d9e0 | [
"MIT"
] | null | null | null | blog/migrations/0002_summary.py | maweefeng/Blog-Powed-by-Django | 50c9a7af3a8bc3f0ede12f4deb6bb5552b82d9e0 | [
"MIT"
] | null | null | null | # Generated by Django 2.0 on 2019-05-21 06:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Summary',
fields=[
('summary_id', models.AutoField(prima... | 24.652174 | 84 | 0.555556 | 52 | 567 | 5.942308 | 0.75 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036458 | 0.322751 | 567 | 22 | 85 | 25.772727 | 0.768229 | 0.075838 | 0 | 0 | 1 | 0 | 0.109195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
955c498b0efb1fd4a24370863369a6378fea83e9 | 714 | py | Python | data/backup/remove_punc_from_squad.py | ghundal93/QA-Experiments-with-DMN | 45eadefd8b819ebf5a23a9c138988ee888eb3e16 | [
"MIT"
] | null | null | null | data/backup/remove_punc_from_squad.py | ghundal93/QA-Experiments-with-DMN | 45eadefd8b819ebf5a23a9c138988ee888eb3e16 | [
"MIT"
] | null | null | null | data/backup/remove_punc_from_squad.py | ghundal93/QA-Experiments-with-DMN | 45eadefd8b819ebf5a23a9c138988ee888eb3e16 | [
"MIT"
] | null | null | null | import os
import string
import sys
mode = sys.argv[1]
output = open("punc_removed_"+str(mode)+".txt","w")
for i,line in enumerate(open("cleaned_squad_"+str(mode)+".txt")):
if "?" in line:
idx = line.find('?')
tmp = line[idx+1:].split('\t')
q = line[:idx+1]
a = tmp[1].strip()
... | 27.461538 | 65 | 0.543417 | 99 | 714 | 3.848485 | 0.414141 | 0.055118 | 0.149606 | 0.23622 | 0.167979 | 0.167979 | 0 | 0 | 0 | 0 | 0 | 0.009634 | 0.273109 | 714 | 25 | 66 | 28.56 | 0.72447 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0.043478 | 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 |
95628d044ff09326590c9bae57208113da3a1829 | 651 | py | Python | solutions/python3/433.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/433.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/433.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def minMutation(self, start: str, end: str, bank: List[str]) -> int:
bfs = [start]
genes = set(bank)
cnt = 0
while bfs:
arr = []
for g in bfs:
if g == end:
return cnt
for i, c in enumerate(g):... | 32.55 | 72 | 0.325653 | 68 | 651 | 3.117647 | 0.470588 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014706 | 0.582181 | 651 | 20 | 73 | 32.55 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95642897fd70439361b9549b51fea6242ba8e35c | 837 | py | Python | {{cookiecutter.project_slug}}/apps/cms/presets.py | ukwahlula/django-server-boilerplate | 6bd4b83511ea7e3370349957cf0b6dbff4003ab1 | [
"BSD-3-Clause"
] | 2 | 2020-10-30T09:47:07.000Z | 2020-10-30T09:48:11.000Z | {{cookiecutter.project_slug}}/apps/cms/presets.py | ukwahlula/django-server-boilerplate | 6bd4b83511ea7e3370349957cf0b6dbff4003ab1 | [
"BSD-3-Clause"
] | null | null | null | {{cookiecutter.project_slug}}/apps/cms/presets.py | ukwahlula/django-server-boilerplate | 6bd4b83511ea7e3370349957cf0b6dbff4003ab1 | [
"BSD-3-Clause"
] | null | null | null | # flake8: noqa
# fmt: off
from .choices import ContentType
CONTENT_PRESETS= {
# Emails
ContentType.EMAIL_VERIFICATION_SUBJECT: {
"content": "Verify your email.",
},
ContentType.EMAIL_VERIFICATION_BODY: {
"content": "Your verification code is {email_verification_code}.",
},
Conte... | 29.892857 | 112 | 0.667861 | 86 | 837 | 6.232558 | 0.372093 | 0.179104 | 0.128731 | 0.151119 | 0.240672 | 0.186567 | 0.186567 | 0.186567 | 0 | 0 | 0 | 0.004552 | 0.212664 | 837 | 27 | 113 | 31 | 0.808801 | 0.04779 | 0 | 0 | 0 | 0 | 0.369153 | 0.101138 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.190476 | 0.047619 | 0 | 0.047619 | 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 |
9564e608f85c5429869b1da9b8bcb0c38d458eb5 | 319 | py | Python | esim/modules/exceptions.py | PunchyArchy/esim | 8285ec22aeb11e318a0b1f5457cc697dec6792d5 | [
"MIT"
] | null | null | null | esim/modules/exceptions.py | PunchyArchy/esim | 8285ec22aeb11e318a0b1f5457cc697dec6792d5 | [
"MIT"
] | null | null | null | esim/modules/exceptions.py | PunchyArchy/esim | 8285ec22aeb11e318a0b1f5457cc697dec6792d5 | [
"MIT"
] | null | null | null | """ Исключения """
class NoAsuPolygon(Exception):
# Исключение, возникающее при указании полигона, которого нет в АСУ.
def __init__(self):
text = 'Не найдена запись в таблице asu_poligons, соответствующая ' \
'этому полигону. Зарегестрируйте ее сначала.'
super().__init__(text)
| 31.9 | 77 | 0.670846 | 33 | 319 | 6.212121 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23511 | 319 | 9 | 78 | 35.444444 | 0.840164 | 0.247649 | 0 | 0 | 0 | 0 | 0.433476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 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 |
956ce4dfd8bcfb80ffb16d0ebd4d57ec4b0baee0 | 627 | py | Python | src/cryptoadvance/specter/services/swan/config.py | Lobbelt/specter-desktop | 98c7ec5f36ddfec2488e766af666ab5a73acd4a1 | [
"MIT"
] | null | null | null | src/cryptoadvance/specter/services/swan/config.py | Lobbelt/specter-desktop | 98c7ec5f36ddfec2488e766af666ab5a73acd4a1 | [
"MIT"
] | null | null | null | src/cryptoadvance/specter/services/swan/config.py | Lobbelt/specter-desktop | 98c7ec5f36ddfec2488e766af666ab5a73acd4a1 | [
"MIT"
] | null | null | null | """
Swan API uses PKCE OAuth2. Per Swan's API team: The client secret here is not considered
to be a real secret. There is no reasonable attack vector for this secret being public.
"""
class BaseConfig:
SWAN_CLIENT_ID = "specter-dev"
SWAN_CLIENT_SECRET = (
"BcetcVcmueWf5P3UPJnHhCBMQ49p38fhzYwM7t3DJGzs... | 29.857143 | 88 | 0.728868 | 78 | 627 | 5.705128 | 0.615385 | 0.089888 | 0.089888 | 0.098876 | 0.130337 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054369 | 0.178628 | 627 | 20 | 89 | 31.35 | 0.809709 | 0.280702 | 0 | 0.166667 | 0 | 0 | 0.460497 | 0.288939 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
956cea9183a1c1ccf976b2b93b9613f00dba4213 | 3,754 | py | Python | tests_ui/helpers/db_actions.py | LoshmanovNA/pet-project | 127e8efc11738ef681220dc7dece18dd3f14ec08 | [
"MIT"
] | 1 | 2020-01-18T18:18:33.000Z | 2020-01-18T18:18:33.000Z | tests_ui/helpers/db_actions.py | LoshmanovNA/moesk | 127e8efc11738ef681220dc7dece18dd3f14ec08 | [
"MIT"
] | 3 | 2021-03-31T19:32:57.000Z | 2021-12-13T20:33:50.000Z | tests_ui/helpers/db_actions.py | LoshmanovNA/moesk | 127e8efc11738ef681220dc7dece18dd3f14ec08 | [
"MIT"
] | null | null | null | from datetime import datetime
import time
class DBManager:
"""Установка соединения с БД и методы для выполнения запросов"""
def __init__(self, DBModel):
"""
Gets database information from mysql_conf.py and creates a connection.
"""
import pymysql
retry_count = 3
... | 37.919192 | 106 | 0.571923 | 445 | 3,754 | 4.635955 | 0.359551 | 0.033931 | 0.021813 | 0.033446 | 0.223461 | 0.164809 | 0.127 | 0.097916 | 0.063984 | 0.063984 | 0 | 0.005114 | 0.322856 | 3,754 | 98 | 107 | 38.306122 | 0.806452 | 0.32179 | 0 | 0.098039 | 0 | 0 | 0.133858 | 0.047244 | 0 | 0 | 0 | 0 | 0.039216 | 1 | 0.156863 | false | 0.078431 | 0.058824 | 0 | 0.313725 | 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 |
957142992a268be3204896fbcc978cb62fcef432 | 1,361 | py | Python | src/models/event_model.py | RoaringForkTech/rfv-events | 8d3c48c9f125197d5879317f5b3bc911ae9b774b | [
"MIT"
] | null | null | null | src/models/event_model.py | RoaringForkTech/rfv-events | 8d3c48c9f125197d5879317f5b3bc911ae9b774b | [
"MIT"
] | 37 | 2019-07-07T15:18:41.000Z | 2020-01-03T03:00:34.000Z | src/models/event_model.py | COWestSlopeTech/project-kronos | 8d3c48c9f125197d5879317f5b3bc911ae9b774b | [
"MIT"
] | 1 | 2019-10-09T00:23:45.000Z | 2019-10-09T00:23:45.000Z | import json
from dataclasses import dataclass
from typing import Optional
@dataclass()
class Event:
source: str # One of constants.EVENT_SOURCE
source_id: str # Unique ID from the source
name: str
_start_time: str = None
_end_time = None
_description = None
# {'timezone': 'America/Denv... | 26.173077 | 99 | 0.613519 | 170 | 1,361 | 4.735294 | 0.258824 | 0.089441 | 0.048447 | 0.078261 | 0.329193 | 0.248447 | 0.176398 | 0.176398 | 0.176398 | 0.176398 | 0 | 0.055944 | 0.264511 | 1,361 | 51 | 100 | 26.686275 | 0.748252 | 0.178545 | 0 | 0.076923 | 0 | 0 | 0.043127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179487 | false | 0 | 0.076923 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9574ec23bf0ce7f9ea39d17e6a5fb3f10bef18f7 | 1,914 | py | Python | least_squares/warm_up/qudratic_regression.py | yimuw/yimu-blog | 280ab2eca1fa48602d1695d69366842ea40debda | [
"BSD-3-Clause"
] | 8 | 2021-06-11T05:50:40.000Z | 2022-03-29T02:41:05.000Z | least_squares/warm_up/qudratic_regression.py | yimuw/yimu-blog | 280ab2eca1fa48602d1695d69366842ea40debda | [
"BSD-3-Clause"
] | 7 | 2020-06-28T13:58:26.000Z | 2021-12-09T22:30:54.000Z | least_squares/warm_up/qudratic_regression.py | yimuw/yimu-blog | 280ab2eca1fa48602d1695d69366842ea40debda | [
"BSD-3-Clause"
] | 5 | 2021-07-07T04:00:14.000Z | 2022-03-30T03:42:54.000Z | import numpy as np
import matplotlib.pyplot as plt
def generate_quadratic_data():
quadratic_a = 2.4
quadratic_b = -2.
quadratic_c = 1.
num_data = 30
noise = 2 * np.random.randn(num_data)
sampled_x = np.linspace(-10, 10., num_data)
sampled_y = quadratic_a * sampled_x * sampled_x + quadra... | 23.62963 | 99 | 0.558516 | 273 | 1,914 | 3.725275 | 0.307692 | 0.029499 | 0.032448 | 0.029499 | 0.055064 | 0.055064 | 0 | 0 | 0 | 0 | 0 | 0.023326 | 0.305643 | 1,914 | 80 | 100 | 23.925 | 0.741911 | 0 | 0 | 0.036364 | 1 | 0 | 0.07628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0.036364 | 0.018182 | 0.272727 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
957d843c1a8da0fdb4f3e8fd157fb4df48e32a95 | 4,846 | py | Python | heritago/heritages/views.py | SWE574-Groupago/heritago | ec7d279df667a4f2c3560dfac4b5b17046163a95 | [
"MIT"
] | 6 | 2017-02-13T10:22:18.000Z | 2017-03-11T20:38:30.000Z | heritago/heritages/views.py | SWE574-Groupago/heritago | ec7d279df667a4f2c3560dfac4b5b17046163a95 | [
"MIT"
] | 172 | 2017-02-12T21:07:27.000Z | 2017-06-08T10:46:58.000Z | heritago/heritages/views.py | SWE574-RenameMe/heritago | ec7d279df667a4f2c3560dfac4b5b17046163a95 | [
"MIT"
] | 17 | 2017-02-13T08:29:37.000Z | 2017-06-29T14:43:53.000Z | from django.core.exceptions import ObjectDoesNotExist
from django.core.files.uploadedfile import UploadedFile
from django.conf import settings
from django.http import HttpResponse
from rest_framework import generics
from rest_framework.exceptions import NotFound
from rest_framework.response import Response
from rest_fr... | 34.126761 | 115 | 0.717912 | 495 | 4,846 | 6.89697 | 0.228283 | 0.04833 | 0.034856 | 0.05126 | 0.444933 | 0.414177 | 0.369654 | 0.304042 | 0.257762 | 0.214997 | 0 | 0 | 0.196244 | 4,846 | 141 | 116 | 34.368794 | 0.876508 | 0 | 0 | 0.471154 | 0 | 0 | 0.030541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105769 | false | 0 | 0.153846 | 0.038462 | 0.682692 | 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 |
95887daa5c2dc00f5b94a116033b5d1a87ac79a0 | 2,068 | py | Python | tests/rate_limit_test.py | maruthiprithivi/tweetf0rm | f59e57495afda05032d41b161b5aed74f2bc4dfe | [
"MIT"
] | 1 | 2015-02-16T11:08:35.000Z | 2015-02-16T11:08:35.000Z | tests/rate_limit_test.py | maruthiprithivi/tweetf0rm | f59e57495afda05032d41b161b5aed74f2bc4dfe | [
"MIT"
] | null | null | null | tests/rate_limit_test.py | maruthiprithivi/tweetf0rm | f59e57495afda05032d41b161b5aed74f2bc4dfe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s: %(message)s')
requests_log = logging.getLogger("requests")
requests_log.setLevel(logging.DEBUG)
from nose.tools import nottest
import sys, os, json, exce... | 21.768421 | 125 | 0.71325 | 291 | 2,068 | 4.876289 | 0.371134 | 0.056378 | 0.047921 | 0.021142 | 0.186047 | 0.186047 | 0.093023 | 0.093023 | 0.093023 | 0.093023 | 0 | 0.031038 | 0.143133 | 2,068 | 95 | 126 | 21.768421 | 0.769752 | 0.061896 | 0 | 0.262295 | 0 | 0 | 0.099742 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131148 | false | 0.065574 | 0.163934 | 0 | 0.327869 | 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 |
9590a6ed2dea9fc4118ea39fa64ce4c61f628b88 | 219 | py | Python | assignment8/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-KhairulAlam-IITDU | fd8f89800459bbe76f04c006afc3fa9bd6a06faf | [
"MIT"
] | null | null | null | assignment8/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-KhairulAlam-IITDU | fd8f89800459bbe76f04c006afc3fa9bd6a06faf | [
"MIT"
] | null | null | null | assignment8/mapper.py | IITDU-BSSE06/ads-demystifying-the-logs-KhairulAlam-IITDU | fd8f89800459bbe76f04c006afc3fa9bd6a06faf | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
for line in sys.stdin:
row = line.strip().split(" ")
if len(row) == 10
File = str(row[6])
t1 = File.strip().split(".")
ind = len(t1)-1
t2 = str(t1[ind])
print t2
| 15.642857 | 31 | 0.538813 | 36 | 219 | 3.277778 | 0.638889 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0.260274 | 219 | 13 | 32 | 16.846154 | 0.67284 | 0.073059 | 0 | 0 | 0 | 0 | 0.010582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9593745aa3723b33263554b957f298da105171e8 | 2,583 | py | Python | tests/test_datamodel.py | qinfeng2011/wltp | 317ad38fb96599a29d22e40f69b6aeb4d205611d | [
"Apache-2.0"
] | null | null | null | tests/test_datamodel.py | qinfeng2011/wltp | 317ad38fb96599a29d22e40f69b6aeb4d205611d | [
"Apache-2.0"
] | null | null | null | tests/test_datamodel.py | qinfeng2011/wltp | 317ad38fb96599a29d22e40f69b6aeb4d205611d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2013-2019 European Commission (JRC);
# Licensed under the EUPL (the 'Licence');
# You may not use this work except in compliance with the Licence.
# You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl
import sys
import unittest
from unitte... | 32.696203 | 88 | 0.626016 | 335 | 2,583 | 4.638806 | 0.370149 | 0.041184 | 0.02574 | 0.03861 | 0.321107 | 0.278636 | 0.214286 | 0.214286 | 0.214286 | 0.214286 | 0 | 0.013903 | 0.248161 | 2,583 | 78 | 89 | 33.115385 | 0.786303 | 0.133566 | 0 | 0.267857 | 0 | 0 | 0.100987 | 0 | 0 | 0 | 0 | 0.012821 | 0.142857 | 1 | 0.107143 | false | 0 | 0.142857 | 0 | 0.267857 | 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 |
95a266a39cf79f1ab5234bb6539413b2db296389 | 1,317 | py | Python | cracking-the-coding-interview/ch9-recursion-and-dynamic-programming/9.5-permutations.py | joeghodsi/interview-questions | 3e4eb76891245ce978cb9171e87d60e3b292b0a8 | [
"Unlicense"
] | 1 | 2018-06-11T18:18:39.000Z | 2018-06-11T18:18:39.000Z | cracking-the-coding-interview/ch9-recursion-and-dynamic-programming/9.5-permutations.py | joeghodsi/interview-questions | 3e4eb76891245ce978cb9171e87d60e3b292b0a8 | [
"Unlicense"
] | null | null | null | cracking-the-coding-interview/ch9-recursion-and-dynamic-programming/9.5-permutations.py | joeghodsi/interview-questions | 3e4eb76891245ce978cb9171e87d60e3b292b0a8 | [
"Unlicense"
] | null | null | null | '''
Problem: Return all permutations of a given string
Solution: Iterate over the elements and lock the current elem in as the ith elem in a partial
permutation then recurse with the remaining values sans the ith element. Eventually there will
be no more remaining values and you will have a single complete perm... | 36.583333 | 98 | 0.740319 | 171 | 1,317 | 5.54386 | 0.508772 | 0.113924 | 0.044304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003817 | 0.204252 | 1,317 | 35 | 99 | 37.628571 | 0.900763 | 0 | 0 | 0 | 0 | 0 | 0.004219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95aa432f29a2d59f99a91551640e4d723e1e39f8 | 17,644 | py | Python | ProtonBeamTherapy/macrotools.py | dmitryhits/ProtonBeamTherapy | 1ae7a40229631b3f25c0f9cefcfc3b2c2aa5111d | [
"Apache-2.0"
] | null | null | null | ProtonBeamTherapy/macrotools.py | dmitryhits/ProtonBeamTherapy | 1ae7a40229631b3f25c0f9cefcfc3b2c2aa5111d | [
"Apache-2.0"
] | null | null | null | ProtonBeamTherapy/macrotools.py | dmitryhits/ProtonBeamTherapy | 1ae7a40229631b3f25c0f9cefcfc3b2c2aa5111d | [
"Apache-2.0"
] | 1 | 2021-07-13T09:12:33.000Z | 2021-07-13T09:12:33.000Z | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00_macrotools.ipynb (unless otherwise specified).
__all__ = ['MacroWriter', 'create_all', 'run_macro', 'Ek']
# Cell
import subprocess
from os import path
from time import strftime
class MacroWriter:
"""Main class for creating a macro file to be run by `gate`
"... | 43.245098 | 118 | 0.579007 | 2,003 | 17,644 | 4.944583 | 0.169246 | 0.025444 | 0.018376 | 0.012722 | 0.27918 | 0.213651 | 0.162662 | 0.090065 | 0.072698 | 0.063005 | 0 | 0.011892 | 0.251757 | 17,644 | 408 | 119 | 43.245098 | 0.738297 | 0.097257 | 0 | 0.176656 | 1 | 0.003155 | 0.57794 | 0.334073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050473 | false | 0 | 0.012618 | 0 | 0.082019 | 0.015773 | 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 |
95aa489214a742c6a3fb086a7bde16ec621ff495 | 2,859 | py | Python | tests/test_read_requirements.py | benbenbang/Req2Toml | 8a5c6b70493754236c69081ab32c6cdff370bb2b | [
"Apache-2.0"
] | 10 | 2021-06-07T08:31:46.000Z | 2021-12-28T00:29:36.000Z | tests/test_read_requirements.py | benbenbang/Req2Toml | 8a5c6b70493754236c69081ab32c6cdff370bb2b | [
"Apache-2.0"
] | null | null | null | tests/test_read_requirements.py | benbenbang/Req2Toml | 8a5c6b70493754236c69081ab32c6cdff370bb2b | [
"Apache-2.0"
] | 1 | 2022-02-24T19:56:27.000Z | 2022-02-24T19:56:27.000Z | # standard library
from unittest import TestCase, expectedFailure
# req2toml plugin
from req2toml.utils import read_requirments
from tests.mixin import CaseMixin, TempfileMixin
class TestReadRequirmentsFormattedContent(CaseMixin, TempfileMixin, TestCase):
def test_read_req1_from_right_path_with_txt(self):
... | 33.635294 | 85 | 0.705142 | 337 | 2,859 | 5.676558 | 0.183976 | 0.063251 | 0.078411 | 0.103502 | 0.742812 | 0.717721 | 0.615264 | 0.615264 | 0.590173 | 0.590173 | 0 | 0.004004 | 0.213711 | 2,859 | 84 | 86 | 34.035714 | 0.846975 | 0.011193 | 0 | 0.508475 | 0 | 0 | 0.001416 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 1 | 0.101695 | false | 0 | 0.050847 | 0 | 0.254237 | 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 |
95ab54ff8d03371e3f5a4d85315441ef2a1ca107 | 1,466 | py | Python | grep/file_helper.py | florianbegusch/simple_grep | 62fd0f76383e2332c5308e7961ce6f585c2a8208 | [
"BSD-2-Clause"
] | null | null | null | grep/file_helper.py | florianbegusch/simple_grep | 62fd0f76383e2332c5308e7961ce6f585c2a8208 | [
"BSD-2-Clause"
] | 2 | 2020-06-19T20:18:12.000Z | 2020-06-19T20:18:50.000Z | grep/file_helper.py | florianbegusch/simple_grep | 62fd0f76383e2332c5308e7961ce6f585c2a8208 | [
"BSD-2-Clause"
] | null | null | null | """Supplies relevant files for grep.py."""
import os
import sys
def get_next_file(caller_dir, is_recursive):
"""Generates next file to be searched."""
assert type(caller_dir) is str
assert type(is_recursive) is bool
for root, dirs, files in os.walk(caller_dir):
for f in files:
... | 24.032787 | 80 | 0.570259 | 197 | 1,466 | 4.13198 | 0.461929 | 0.078624 | 0.027027 | 0.039312 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.34925 | 1,466 | 60 | 81 | 24.433333 | 0.843816 | 0.218281 | 0 | 0.212121 | 1 | 0 | 0.017367 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.121212 | false | 0 | 0.060606 | 0 | 0.393939 | 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 |
95b5713d05df26db33cee071f53cd9375822d0f7 | 1,161 | py | Python | packages/testcases/input/nameprep/extract-tests.py | taarushv/ethers.js | c5e0477c1e18a8d8205feea62b8a673c016e005e | [
"MIT"
] | 4,494 | 2017-02-14T09:19:46.000Z | 2022-03-31T21:49:59.000Z | packages/testcases/input/nameprep/extract-tests.py | taarushv/ethers.js | c5e0477c1e18a8d8205feea62b8a673c016e005e | [
"MIT"
] | 1,950 | 2017-04-05T21:37:39.000Z | 2022-03-31T14:03:16.000Z | packages/testcases/input/nameprep/extract-tests.py | taarushv/ethers.js | c5e0477c1e18a8d8205feea62b8a673c016e005e | [
"MIT"
] | 1,041 | 2017-02-15T14:35:37.000Z | 2022-03-31T13:21:03.000Z | import json
import re
output = ""
for line in file("test-vectors-00.txt"):
line = line.strip()
if line == "" or line[0:1] == "#":
continue
if line.startswith("Josefsson") or line.startswith("Internet-Draft"):
continue
output += line.replace("\n", "")
Tests = [ ]
def get_byte(v):
i... | 24.702128 | 99 | 0.533161 | 161 | 1,161 | 3.807453 | 0.416149 | 0.032626 | 0.068516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033257 | 0.248923 | 1,161 | 46 | 100 | 25.23913 | 0.669725 | 0 | 0 | 0.102564 | 0 | 0 | 0.098191 | 0.019811 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051282 | null | null | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
95b7b7cfea41d574f8f0fbb777706412fa0ec855 | 4,292 | py | Python | log_analyzer.py | timvoet/log_parser | 8c2e10a0876429bd2519a89ef133d521af9acf9d | [
"Apache-2.0"
] | 1 | 2020-06-21T17:27:30.000Z | 2020-06-21T17:27:30.000Z | log_analyzer.py | timvoet/log_parser | 8c2e10a0876429bd2519a89ef133d521af9acf9d | [
"Apache-2.0"
] | null | null | null | log_analyzer.py | timvoet/log_parser | 8c2e10a0876429bd2519a89ef133d521af9acf9d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from orm.model import LogEvent
import optparse
import time
import re
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
supported_DBS = ['sqlite3']
date_pattern = re.compile(r'(\d\d\d\d\-\d\d\-\d\d.*)(INFO|WARN|DEB... | 30.657143 | 172 | 0.625815 | 542 | 4,292 | 4.817343 | 0.287823 | 0.016086 | 0.020682 | 0.02298 | 0.036002 | 0.018384 | 0.018384 | 0.018384 | 0.01532 | 0.01532 | 0 | 0.0064 | 0.235555 | 4,292 | 139 | 173 | 30.877698 | 0.789393 | 0.00466 | 0 | 0.127451 | 0 | 0.009804 | 0.171471 | 0.044732 | 0.009804 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009804 | 0.068627 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
95be93e1fba61c13987b182210ce40f8408840e5 | 11,877 | py | Python | api/models.py | dschien/greendoors-web | 26a10e909e6447f1709d27e58340f08372ce8f26 | [
"MIT"
] | null | null | null | api/models.py | dschien/greendoors-web | 26a10e909e6447f1709d27e58340f08372ce8f26 | [
"MIT"
] | 2 | 2020-06-05T17:29:54.000Z | 2021-06-10T18:58:13.000Z | api/models.py | dschien/greendoors-web | 26a10e909e6447f1709d27e58340f08372ce8f26 | [
"MIT"
] | null | null | null | import random
import string
import datetime
from django.contrib.contenttypes.generic import GenericRelation
from django.core.urlresolvers import reverse
from tinymce.models import HTMLField
__author__ = 'schien'
import re
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes i... | 30.929688 | 117 | 0.677528 | 1,422 | 11,877 | 5.477496 | 0.196203 | 0.036975 | 0.03338 | 0.043651 | 0.386571 | 0.347028 | 0.280781 | 0.242265 | 0.212479 | 0.115162 | 0 | 0.015752 | 0.203587 | 11,877 | 383 | 118 | 31.010444 | 0.807696 | 0.029132 | 0 | 0.165992 | 0 | 0.008097 | 0.085895 | 0.005884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08502 | false | 0.004049 | 0.060729 | 0.072874 | 0.793522 | 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 |
95beb954cf5381bb7b57e60cedebf22d3535524e | 3,268 | py | Python | src/api.py | kolbl/HAR_master_thesis | f62b61afa8c7f26a57bbbca8bf0bfa2ef392f62a | [
"MIT"
] | 1 | 2021-02-14T15:37:00.000Z | 2021-02-14T15:37:00.000Z | src/api.py | kolbl/HAR_master_thesis | f62b61afa8c7f26a57bbbca8bf0bfa2ef392f62a | [
"MIT"
] | null | null | null | src/api.py | kolbl/HAR_master_thesis | f62b61afa8c7f26a57bbbca8bf0bfa2ef392f62a | [
"MIT"
] | null | null | null | import flask
from tensorflow import keras
import pandas as pd
from flask import request, jsonify
from pandas.io.json import json_normalize
app = flask.Flask(__name__)
app.config["DEBUG"] = True
@app.route('/api/prediction', methods=['POST'])
def precict():
# Validate the request body contains JSON
if reque... | 43 | 200 | 0.599143 | 456 | 3,268 | 4.149123 | 0.47807 | 0.021142 | 0.014799 | 0.016913 | 0.098309 | 0.040169 | 0 | 0 | 0 | 0 | 0 | 0.072697 | 0.25918 | 3,268 | 75 | 201 | 43.573333 | 0.708798 | 0.197674 | 0 | 0.045455 | 0 | 0 | 0.233244 | 0.009192 | 0 | 0 | 0 | 0.013333 | 0 | 1 | 0.022727 | false | 0 | 0.113636 | 0 | 0.181818 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
95c10b750cb7da449eb8015a42c63d5b16040337 | 901 | py | Python | problems/find-all-anagrams-in-a-string/solution.py | tonymontaro/leetcode-hints | 678df921f9a1322454c1e52d3723a448b4bbb135 | [
"MIT"
] | 1 | 2020-09-09T08:22:40.000Z | 2020-09-09T08:22:40.000Z | problems/find-all-anagrams-in-a-string/solution.py | tonymontaro/leetcode-hints | 678df921f9a1322454c1e52d3723a448b4bbb135 | [
"MIT"
] | null | null | null | problems/find-all-anagrams-in-a-string/solution.py | tonymontaro/leetcode-hints | 678df921f9a1322454c1e52d3723a448b4bbb135 | [
"MIT"
] | null | null | null | from collections import Counter
class Solution:
def findAnagrams(self, word: str, substr: str):
"""O(n) time | O(1) space"""
if not word or not substr: return []
l = 0
r = -1
seen = 0
ln = len(substr)
counts = Counter(substr)
counts = {char: -counts[c... | 27.30303 | 57 | 0.396226 | 101 | 901 | 3.534653 | 0.336634 | 0.168067 | 0.044818 | 0.078431 | 0.240896 | 0.240896 | 0.240896 | 0.240896 | 0.240896 | 0.240896 | 0 | 0.03125 | 0.502775 | 901 | 32 | 58 | 28.15625 | 0.765625 | 0.024417 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.142857 | 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 |
95cae00e5c1fa186d9038497d0e1f6299b27e690 | 1,921 | py | Python | notification/admin.py | anyidea/django-user-notification | 704c79e4e588ec6b2780687c9a6e8b6da14cec27 | [
"Apache-2.0"
] | 2 | 2021-12-29T06:55:25.000Z | 2022-02-22T02:53:53.000Z | notification/admin.py | aiden520/django-user-notification | 704c79e4e588ec6b2780687c9a6e8b6da14cec27 | [
"Apache-2.0"
] | null | null | null | notification/admin.py | aiden520/django-user-notification | 704c79e4e588ec6b2780687c9a6e8b6da14cec27 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from . import models
from .models import Notification
from django.contrib.contenttypes.admin import GenericTabularInline
# Register your models here.
class NotificationAdmin(GenericTabularInline):
model = models.Notification
extra = 0
def get_queryset(self, request):
... | 25.959459 | 77 | 0.649662 | 192 | 1,921 | 6.348958 | 0.328125 | 0.07219 | 0.045939 | 0.059065 | 0.453651 | 0.453651 | 0.391304 | 0.391304 | 0.391304 | 0.391304 | 0 | 0.000664 | 0.216033 | 1,921 | 73 | 78 | 26.315068 | 0.808765 | 0.013535 | 0 | 0.410714 | 0 | 0 | 0.13682 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.589286 | 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 |
95cf3bc4a92460439d582dacd61271eefa263ebc | 801 | py | Python | bvc/management/commands/test_mail.py | Vayel/GUCEM-BVC | e5645dec332756d3c9db083abf2c8f3625a10d4d | [
"WTFPL"
] | 2 | 2016-09-23T18:02:40.000Z | 2017-04-28T18:35:59.000Z | bvc/management/commands/test_mail.py | Vayel/GUCEM-BVC | e5645dec332756d3c9db083abf2c8f3625a10d4d | [
"WTFPL"
] | 82 | 2016-09-26T14:38:31.000Z | 2018-02-12T18:47:12.000Z | bvc/management/commands/test_mail.py | Vayel/GUCEM-BVC | e5645dec332756d3c9db083abf2c8f3625a10d4d | [
"WTFPL"
] | null | null | null | import io
import csv
from smtplib import SMTPException
from django.core.management.base import BaseCommand
from django.core.mail import EmailMessage
from django.conf import settings
from bvc import utils
class Command(BaseCommand):
def handle(self, *args, **options):
csvfile = io.StringIO()
writ... | 28.607143 | 80 | 0.640449 | 95 | 801 | 5.336842 | 0.547368 | 0.059172 | 0.055227 | 0.08284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257179 | 801 | 27 | 81 | 29.666667 | 0.852101 | 0 | 0 | 0 | 0 | 0 | 0.143571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.409091 | 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 |
95da2f0135bdae23e271eb8ffea6d64571d666d8 | 422 | py | Python | balsa/formatter.py | jamesabel/balsa | 504fe200530da7bf466f0101deafa3b7c93560b6 | [
"MIT"
] | 4 | 2018-10-27T20:03:11.000Z | 2019-09-30T03:30:32.000Z | balsa/formatter.py | jamesabel/balsa | 504fe200530da7bf466f0101deafa3b7c93560b6 | [
"MIT"
] | 8 | 2018-06-08T17:03:51.000Z | 2019-11-19T01:38:25.000Z | balsa/formatter.py | jamesabel/balsa | 504fe200530da7bf466f0101deafa3b7c93560b6 | [
"MIT"
] | 4 | 2018-06-08T17:13:05.000Z | 2019-11-19T01:39:00.000Z | from typing import Union
from datetime import datetime
from logging import Formatter, LogRecord
class BalsaFormatter(Formatter):
"""
Format time in ISO 8601
"""
def formatTime(self, record: LogRecord, datefmt: Union[str, None] = None) -> str:
assert datefmt is None # static format
t... | 26.375 | 85 | 0.703791 | 49 | 422 | 6.020408 | 0.632653 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.21327 | 422 | 15 | 86 | 28.133333 | 0.876506 | 0.090047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
95de499b64450a349b97a27e45c661c3b7c42c13 | 1,538 | py | Python | renthouse/apps/users/basic_tools.py | huifeng-kooboo/RentHouseSite | 46480bb9df88fc9b981f7e19ce149d92e5a36abb | [
"Apache-2.0"
] | 2 | 2022-01-21T12:51:19.000Z | 2022-01-21T12:51:30.000Z | renthouse/apps/users/basic_tools.py | huifeng-kooboo/RentHouseSite | 46480bb9df88fc9b981f7e19ce149d92e5a36abb | [
"Apache-2.0"
] | 3 | 2021-03-10T03:52:20.000Z | 2021-10-06T09:50:47.000Z | renthouse/apps/users/basic_tools.py | huifeng-kooboo/RentHouseSite | 46480bb9df88fc9b981f7e19ce149d92e5a36abb | [
"Apache-2.0"
] | 1 | 2019-12-30T08:22:13.000Z | 2019-12-30T08:22:13.000Z | '''
@description: basic function for common
@return : return value is all by jsondata
'''
#-*- coding:utf-8 -*-
import json
from django.contrib.auth.hashers import make_password,check_password
from django.contrib.auth import authenticate
def checkUserLoginInfo(username,password):
'''
@brief: basic function to... | 30.156863 | 73 | 0.696359 | 190 | 1,538 | 5.473684 | 0.389474 | 0.076923 | 0.046154 | 0.054808 | 0.1875 | 0.163462 | 0.163462 | 0.163462 | 0.163462 | 0.163462 | 0 | 0.00491 | 0.205462 | 1,538 | 51 | 74 | 30.156863 | 0.846154 | 0.319246 | 0 | 0.090909 | 0 | 0 | 0.042162 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.363636 | 0.136364 | 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 |
95e6fec642d242889b0c69e4849f4e0e9c09f613 | 422 | py | Python | lab2.5/individual.py | etozhekimm/lab2 | 6c1ac46cfa01b63821edfce9615c239a6424938c | [
"MIT"
] | null | null | null | lab2.5/individual.py | etozhekimm/lab2 | 6c1ac46cfa01b63821edfce9615c239a6424938c | [
"MIT"
] | null | null | null | lab2.5/individual.py | etozhekimm/lab2 | 6c1ac46cfa01b63821edfce9615c239a6424938c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
if __name__ == '__main__':
tpl = tuple(map(float, input().split()))
if not tpl:
print("Заданный кортеж пуст", file=sys.stderr)
exit(1)
if tuple(sorted(tpl, reverse=True)) == tpl:
print("Команды перечислены в соответствии с ... | 28.133333 | 73 | 0.635071 | 55 | 422 | 4.727273 | 0.709091 | 0.061538 | 0.176923 | 0.169231 | 0.223077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009202 | 0.227488 | 422 | 15 | 73 | 28.133333 | 0.788344 | 0.101896 | 0 | 0 | 0 | 0 | 0.362434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.3 | 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 |
95e971eacf852f8d27323fa5cc4dd961d9bb81cf | 1,531 | py | Python | getchapp/migrations/0003_post_tag.py | gem763/getch | 809304ae2d5c04df0221d00183e07078ff1a8490 | [
"MIT"
] | null | null | null | getchapp/migrations/0003_post_tag.py | gem763/getch | 809304ae2d5c04df0221d00183e07078ff1a8490 | [
"MIT"
] | 16 | 2020-02-12T02:55:18.000Z | 2022-03-12T00:06:26.000Z | getchapp/migrations/0003_post_tag.py | gem763/getch | 809304ae2d5c04df0221d00183e07078ff1a8490 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2020-01-08 09:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('getchapp', '0002_brand_item'),
]
operations = [
migrations.CreateModel(
name='Post',
... | 38.275 | 194 | 0.582626 | 156 | 1,531 | 5.608974 | 0.365385 | 0.064 | 0.096 | 0.150857 | 0.641143 | 0.641143 | 0.549714 | 0.549714 | 0.549714 | 0.549714 | 0 | 0.018953 | 0.27629 | 1,531 | 39 | 195 | 39.25641 | 0.770758 | 0.029393 | 0 | 0.484848 | 1 | 0 | 0.133423 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.151515 | 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 |
95eaf8bff3830f3eb0b8cdb65538aabb0c09e36c | 2,042 | py | Python | advanced_databases/lab2/populate.py | piotrgiedziun/university | 93097f071d592ad3d70b4c8cf1311498b5e1df3c | [
"MIT"
] | null | null | null | advanced_databases/lab2/populate.py | piotrgiedziun/university | 93097f071d592ad3d70b4c8cf1311498b5e1df3c | [
"MIT"
] | null | null | null | advanced_databases/lab2/populate.py | piotrgiedziun/university | 93097f071d592ad3d70b4c8cf1311498b5e1df3c | [
"MIT"
] | null | null | null | #!/usr/bin/python
import MySQLdb
import random
from datetime import datetime as dt, timedelta
# MySQL format
DATE_FORMAT = '%Y-%m-%d %H:%M:%S'
db = MySQLdb.connect(host="localhost", user="root", passwd="", db="sakila")
cur = db.cursor()
print "connected"
# truncate old data
cur.execute("SET FOREIGN_KEY_CHECKS = 0... | 30.939394 | 178 | 0.675808 | 321 | 2,042 | 4.121495 | 0.258567 | 0.090703 | 0.068027 | 0.060469 | 0.285714 | 0.24263 | 0.151172 | 0.151172 | 0.093726 | 0.093726 | 0 | 0.027778 | 0.153771 | 2,042 | 66 | 179 | 30.939394 | 0.737847 | 0.10333 | 0 | 0.243902 | 0 | 0.097561 | 0.35514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02439 | 0.073171 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
95eb0245b7f5e9cf7816d62055b810a4f30f0604 | 6,510 | py | Python | Classes/Magnet.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | 2 | 2020-06-29T13:48:37.000Z | 2021-06-15T07:34:05.000Z | Classes/Magnet.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | Classes/Magnet.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Warning : this file has been generated, you shouldn't edit it"""
from os import linesep
from pyleecan.Classes.check import check_init_dict, check_var
from pyleecan.Functions.save import save
from pyleecan.Classes.frozen import FrozenClass
from pyleecan.Methods.Machine.Magnet.comp_angle_open... | 37.2 | 104 | 0.660061 | 857 | 6,510 | 4.773629 | 0.187865 | 0.059888 | 0.07822 | 0.070398 | 0.282572 | 0.167685 | 0.069421 | 0.048399 | 0.048399 | 0.048399 | 0 | 0.004926 | 0.251613 | 6,510 | 174 | 105 | 37.413793 | 0.83477 | 0.259754 | 0 | 0.066667 | 1 | 0 | 0.081041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104762 | false | 0 | 0.133333 | 0 | 0.466667 | 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 |
95edf844b9bb4d7583bdc9c3c5bfe94621bba188 | 305 | py | Python | Samples/Simple_Demo/Python_Export/Export_forms_separately/child_window.py | Embarcadero/Delphi4PythonExporter | 0137a298552e5356fa2cadb4fc288adeed0f03f4 | [
"MIT"
] | 18 | 2022-02-02T20:23:03.000Z | 2022-03-29T11:26:41.000Z | Samples/Simple_Demo/Python_Export/Export_forms_separately/child_window.py | Embarcadero/Delphi4PythonExporter | 0137a298552e5356fa2cadb4fc288adeed0f03f4 | [
"MIT"
] | 3 | 2022-02-14T13:19:29.000Z | 2022-03-28T20:07:33.000Z | Samples/Simple_Demo/Python_Export/Export_forms_separately/child_window.py | Embarcadero/Delphi4PythonExporter | 0137a298552e5356fa2cadb4fc288adeed0f03f4 | [
"MIT"
] | 6 | 2022-02-10T03:12:04.000Z | 2022-03-27T17:41:30.000Z | import os
from delphifmx import *
class Child_Form(Form):
def __init__(self, owner):
self.child_heading = None
self.result_text_heading = None
self.result_text_label = None
self.LoadProps(os.path.join(os.path.dirname(os.path.abspath(__file__)), "child_window.pyfmx")) | 30.5 | 102 | 0.698361 | 42 | 305 | 4.714286 | 0.571429 | 0.121212 | 0.151515 | 0.212121 | 0.252525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193443 | 305 | 10 | 102 | 30.5 | 0.804878 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 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 |
95f929ff549525657ea721a4efcd5591721f1ca5 | 738 | py | Python | custom/commands/osb_fix.py | M-Spencer-94/configNOW | 56828587253202089e77cfdfcf5329f2a7f09b3f | [
"PSF-2.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-07-09T20:02:48.000Z | 2021-11-21T20:00:37.000Z | custom/commands/osb_fix.py | M-Spencer-94/configNOW | 56828587253202089e77cfdfcf5329f2a7f09b3f | [
"PSF-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | custom/commands/osb_fix.py | M-Spencer-94/configNOW | 56828587253202089e77cfdfcf5329f2a7f09b3f | [
"PSF-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | def run(cfg):
"""OSB Fix to deal with 11.1.1.5+ requirements"""
username=cfg.getProperty('wls.admin.username')
password=cfg.getProperty('wls.admin.password')
admin=cfg.getProperty('osb.as.host')
port=cfg.getProperty('wls.admin.listener.port')
urladmin=admin + ":" + port
c... | 33.545455 | 98 | 0.682927 | 88 | 738 | 5.704545 | 0.488636 | 0.111554 | 0.101594 | 0.131474 | 0.286853 | 0.286853 | 0.286853 | 0.286853 | 0.286853 | 0.286853 | 0 | 0.008091 | 0.162602 | 738 | 21 | 99 | 35.142857 | 0.804207 | 0.058266 | 0 | 0.142857 | 0 | 0 | 0.394775 | 0.140784 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.142857 | 0 | 0 | 0.071429 | 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 |
95fdfe1466620630dc5a1cf91b60ec751da4ff45 | 6,339 | py | Python | autobump.py | rfrandse/mytools | 0aeb1edd7e06c6348675a00c140a674f3f77693e | [
"Apache-2.0"
] | null | null | null | autobump.py | rfrandse/mytools | 0aeb1edd7e06c6348675a00c140a674f3f77693e | [
"Apache-2.0"
] | null | null | null | autobump.py | rfrandse/mytools | 0aeb1edd7e06c6348675a00c140a674f3f77693e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
import argparse
import os
#import sh
import sys
import math
import subprocess
PIPE = subprocess.PIPE
try:
import git
from git import GitCommandError
HAVE_GIT = True
except ImportError:
# _log.debug('Failed to import git module')
HAVE_GIT = False
def log(msg, args):
if a... | 29.760563 | 106 | 0.593785 | 793 | 6,339 | 4.569987 | 0.252207 | 0.013797 | 0.016556 | 0.029801 | 0.240618 | 0.218543 | 0.174945 | 0.174945 | 0.174945 | 0.174945 | 0 | 0.004912 | 0.293422 | 6,339 | 212 | 107 | 29.900943 | 0.804197 | 0.074617 | 0 | 0.264901 | 0 | 0 | 0.142125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05298 | null | null | 0.086093 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
95fe9241a401d1c8a1328a699263a3d2698b9aa2 | 395 | py | Python | wapps/migrations/0005_drop_identity_logo.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 7 | 2018-01-17T20:26:59.000Z | 2022-03-23T08:12:00.000Z | wapps/migrations/0005_drop_identity_logo.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 511 | 2017-10-21T17:59:50.000Z | 2022-03-28T18:49:21.000Z | wapps/migrations/0005_drop_identity_logo.py | apihackers/wapps | e8158747aa3d77246d41142580faf9a5f2b0d968 | [
"MIT"
] | 2 | 2018-05-02T08:27:42.000Z | 2020-08-17T18:42:49.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-08 14:52
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wapps', '0004_add_wapps_image'),
]
operations = [
migrations.RemoveField(
... | 19.75 | 47 | 0.61519 | 43 | 395 | 5.44186 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069204 | 0.268354 | 395 | 19 | 48 | 20.789474 | 0.740484 | 0.16962 | 0 | 0 | 1 | 0 | 0.138462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2509bba336b476f54f6a4866003ff7b8a75c65ae | 276 | py | Python | nicos_demo/vrefsans/setups/nok/sc2.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 12 | 2019-11-06T15:40:36.000Z | 2022-01-01T16:23:00.000Z | nicos_demo/vrefsans/setups/nok/sc2.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 91 | 2020-08-18T09:20:26.000Z | 2022-02-01T11:07:14.000Z | nicos_demo/vrefsans/setups/nok/sc2.py | jkrueger1/nicos | 5f4ce66c312dedd78995f9d91e8a6e3c891b262b | [
"CC-BY-3.0",
"Apache-2.0",
"CC-BY-4.0"
] | 6 | 2020-01-11T10:52:30.000Z | 2022-02-25T12:35:23.000Z | description = "sc2 height after nok9"
group = 'lowlevel'
devices = dict(
sc2 = device('nicos.devices.generic.VirtualMotor',
description = 'sc2 Motor',
abslimits = (-150, 150),
speed = 1.,
unit = 'mm',
# refpos = -7.2946,
),
)
| 19.714286 | 54 | 0.543478 | 28 | 276 | 5.357143 | 0.821429 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08377 | 0.307971 | 276 | 13 | 55 | 21.230769 | 0.701571 | 0.061594 | 0 | 0 | 0 | 0 | 0.287938 | 0.132296 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2516697ed058fb105e8faeaea90451b93225cd85 | 1,058 | py | Python | lwip_py/stack/exceptions.py | vvish/py-lwip | c3ee5d3ac069a00f99d20b7d5e44e953cc2cc357 | [
"MIT"
] | 2 | 2020-12-18T09:32:04.000Z | 2021-04-21T12:16:41.000Z | lwip_py/stack/exceptions.py | vvish/py-lwip | c3ee5d3ac069a00f99d20b7d5e44e953cc2cc357 | [
"MIT"
] | 2 | 2020-12-17T13:26:53.000Z | 2021-04-15T12:23:04.000Z | lwip_py/stack/exceptions.py | vvish/py-lwip | c3ee5d3ac069a00f99d20b7d5e44e953cc2cc357 | [
"MIT"
] | null | null | null | class StackException(Exception):
"""Base class for stack-related exceptions."""
class LwipError(StackException):
"""Class representing lwip error codes."""
_mapping = {
-1: 'Out of memory',
-2: 'Buffer error',
-3: 'Timeout',
-4: 'Routing problem',
-5: 'Operation in... | 25.190476 | 62 | 0.583176 | 110 | 1,058 | 5.445455 | 0.627273 | 0.053422 | 0.103506 | 0.053422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030544 | 0.28828 | 1,058 | 41 | 63 | 25.804878 | 0.76494 | 0.122873 | 0 | 0.068966 | 0 | 0 | 0.313596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0 | 0.103448 | 0.37931 | 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 |
253428588746cff5abb8bfff019d32a33a729a6b | 656 | py | Python | books/urls.py | simonv3/django-reading-list | 5d7788ef028f1b7892c436794888bace585e1fa8 | [
"MIT"
] | 1 | 2015-02-09T06:53:04.000Z | 2015-02-09T06:53:04.000Z | books/urls.py | simonv3/django-reading-list | 5d7788ef028f1b7892c436794888bace585e1fa8 | [
"MIT"
] | 1 | 2015-02-05T05:57:51.000Z | 2015-02-05T05:57:51.000Z | books/urls.py | simonv3/django-reading-list | 5d7788ef028f1b7892c436794888bace585e1fa8 | [
"MIT"
] | null | null | null | from django.conf.urls import patterns, include, url
from rest_framework import routers
from books.api import views as api_views
from books import views
router = routers.DefaultRouter()
# TODO: Nest API endpoints
# # from rest_framework_extensions.routers import ExtendedSimpleRouter
router.register(r'books', api_vie... | 29.818182 | 76 | 0.771341 | 87 | 656 | 5.701149 | 0.425287 | 0.096774 | 0.120968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105183 | 656 | 21 | 77 | 31.238095 | 0.844974 | 0.140244 | 0 | 0 | 0 | 0 | 0.126786 | 0.053571 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0 | false | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2544a0a34f8a284e3ecc0165ca586d9aa146c952 | 1,235 | py | Python | rock/text.py | rockstack/rock | 1d010d942c5b1c8fd198223ac1f4a3dd5d690edb | [
"MIT"
] | 1 | 2015-03-13T06:01:06.000Z | 2015-03-13T06:01:06.000Z | rock/text.py | rockstack/rock | 1d010d942c5b1c8fd198223ac1f4a3dd5d690edb | [
"MIT"
] | null | null | null | rock/text.py | rockstack/rock | 1d010d942c5b1c8fd198223ac1f4a3dd5d690edb | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
def _(text):
return text.strip('\n')
USAGE = _("""
Usage: rock [--help] [--env=ENV] [--path=PATH] [--runtime=RUNTIME] command
""")
HELP = _("""
--help show help message
--verbose show script while running
--dry-run show script without r... | 20.932203 | 74 | 0.561943 | 129 | 1,235 | 5.224806 | 0.395349 | 0.059347 | 0.083086 | 0.094955 | 0.136499 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.323887 | 1,235 | 58 | 75 | 21.293103 | 0.807186 | 0 | 0 | 0.266667 | 0 | 0.022222 | 0.783806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.022222 | 0.022222 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2545f751363408f9b1ed98f01c4018f8950921ac | 633 | py | Python | gui/status_bar.py | myrmarachne/minesweeper | 777170b7a31f1feed0bdf7aca31aaa9916c9b915 | [
"AFL-1.1"
] | null | null | null | gui/status_bar.py | myrmarachne/minesweeper | 777170b7a31f1feed0bdf7aca31aaa9916c9b915 | [
"AFL-1.1"
] | null | null | null | gui/status_bar.py | myrmarachne/minesweeper | 777170b7a31f1feed0bdf7aca31aaa9916c9b915 | [
"AFL-1.1"
] | null | null | null | import Tkinter as tk
class StatusBar:
def __init__(self, root, label):
self.label = tk.StringVar()
self.label.set(label)
self.root = root
self.initialize()
def initialize(self):
frame = tk.Frame(self.root, relief=tk.SUNKEN)
label = tk.Label(frame, font=('arial'... | 27.521739 | 104 | 0.595577 | 83 | 633 | 4.493976 | 0.481928 | 0.144772 | 0.096515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019068 | 0.254344 | 633 | 22 | 105 | 28.772727 | 0.771186 | 0 | 0 | 0 | 0 | 0 | 0.052133 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.235294 | false | 0 | 0.058824 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
254919f254109912a7f86343ef0bdf3b35dd4222 | 1,912 | py | Python | packages/functional/extract_vol.py | justi/m2g | 09e8b889889ee8d8fb08b9b6fcd726fb3d901644 | [
"Apache-2.0"
] | 12 | 2015-03-11T22:07:17.000Z | 2016-01-29T21:24:29.000Z | packages/functional/extract_vol.py | youngmook/m2g | 09e8b889889ee8d8fb08b9b6fcd726fb3d901644 | [
"Apache-2.0"
] | 213 | 2015-01-30T16:02:57.000Z | 2016-01-29T21:45:02.000Z | packages/functional/extract_vol.py | youngmook/m2g | 09e8b889889ee8d8fb08b9b6fcd726fb3d901644 | [
"Apache-2.0"
] | 5 | 2015-02-04T13:58:12.000Z | 2016-01-29T21:24:46.000Z | #!/usr/bin/env python
# Copyright 2015 Open Connectome Project (http://openconnecto.me)
#
# 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
#
#... | 31.344262 | 109 | 0.716004 | 295 | 1,912 | 4.511864 | 0.488136 | 0.045079 | 0.015778 | 0.040571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026168 | 0.160565 | 1,912 | 60 | 110 | 31.866667 | 0.803115 | 0.375523 | 0 | 0 | 0 | 0 | 0.25617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
254a2e2b24a620e50d79b1c8ca6625a75d1dbb8c | 2,440 | py | Python | galileo/WildSnakePy/WildSnake.py | garoa/dojo-shield | b92139f3fb8baae1b0af183b8733e047501a1570 | [
"Unlicense"
] | 8 | 2015-03-12T00:27:40.000Z | 2021-04-02T05:49:01.000Z | galileo/WildSnakePy/WildSnake.py | garoa/dojo-shield | b92139f3fb8baae1b0af183b8733e047501a1570 | [
"Unlicense"
] | 2 | 2015-01-24T17:28:08.000Z | 2015-03-29T15:16:59.000Z | galileo/WildSnakePy/WildSnake.py | garoa/dojo-shield | b92139f3fb8baae1b0af183b8733e047501a1570 | [
"Unlicense"
] | 6 | 2015-01-24T13:17:21.000Z | 2015-08-19T09:26:26.000Z | """
WildSnakePy - WildSnakeUNO ported to Galileo (mraa native API)
A two-segment snake slithers aimlessly over the display. On intersections,
the next step is chosen at random.
Most of the logic is encoded in the `moves` array which lists possible next
steps for each current position and direction. Snake head po... | 19.52 | 75 | 0.533197 | 393 | 2,440 | 3.300254 | 0.330789 | 0.024672 | 0.03084 | 0.006168 | 0.010794 | 0.010794 | 0.010794 | 0 | 0 | 0 | 0 | 0.078745 | 0.307787 | 2,440 | 124 | 76 | 19.677419 | 0.689165 | 0.164344 | 0 | 0 | 0 | 0 | 0.05286 | 0 | 0 | 0 | 0 | 0.008065 | 0 | 0 | null | null | 0 | 0.033898 | null | null | 0.186441 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
254b0f29f114df7f8d811f0f80dd4cd9e802d710 | 2,491 | py | Python | test/testGraphGrid.py | KodeWorker/CircuitRouter | 7428f2fa0631bfaa541ec8df61c8a0e14b2a2963 | [
"Apache-2.0"
] | null | null | null | test/testGraphGrid.py | KodeWorker/CircuitRouter | 7428f2fa0631bfaa541ec8df61c8a0e14b2a2963 | [
"Apache-2.0"
] | null | null | null | test/testGraphGrid.py | KodeWorker/CircuitRouter | 7428f2fa0631bfaa541ec8df61c8a0e14b2a2963 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
""" Unit Test On Grid
description:
This is the unit test for basic grid.
content:
- TestGrid
- TestGrid8D
author: Shin-Fu (Kelvin) Wu
latest update:
- 2019/05/10
- 2019/05/14 add TestGridDB
- 2019/05/15 add test_case for DynamicBoundGridWithShortcuts
"""
imp... | 36.101449 | 129 | 0.610197 | 329 | 2,491 | 4.455927 | 0.237082 | 0.016371 | 0.100273 | 0.119372 | 0.478172 | 0.39427 | 0.370396 | 0.345839 | 0.212142 | 0.212142 | 0 | 0.067936 | 0.219992 | 2,491 | 69 | 130 | 36.101449 | 0.686567 | 0.118025 | 0 | 0.232558 | 0 | 0 | 0.017908 | 0 | 0 | 0 | 0 | 0 | 0.162791 | 1 | 0.209302 | false | 0 | 0.162791 | 0 | 0.465116 | 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 |
255212a4ef380a9fe687933ff5228c51a974390a | 2,906 | py | Python | api/listings.py | derKiez/kiezBackend | c154ce9963b5721948cf7def0c1b2c7c012b4143 | [
"MIT"
] | null | null | null | api/listings.py | derKiez/kiezBackend | c154ce9963b5721948cf7def0c1b2c7c012b4143 | [
"MIT"
] | null | null | null | api/listings.py | derKiez/kiezBackend | c154ce9963b5721948cf7def0c1b2c7c012b4143 | [
"MIT"
] | null | null | null | import datetime
from bson import ObjectId
from flask import Response, request
from utils import json_encode
from flask.views import MethodView
from models.listings import Listing, ListingComment
from auth import authorize
class ListingsView(MethodView):
@authorize
def get(self):
zipcode = request.us... | 30.914894 | 71 | 0.561941 | 307 | 2,906 | 5.221498 | 0.228013 | 0.061135 | 0.062383 | 0.035558 | 0.438553 | 0.351216 | 0.351216 | 0.273238 | 0.273238 | 0.273238 | 0 | 0.014366 | 0.329319 | 2,906 | 94 | 72 | 30.914894 | 0.808107 | 0 | 0 | 0.43038 | 0 | 0 | 0.050224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088608 | 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 |
2553db15a6b7459ddb392d307c4f2d09b900e817 | 499 | py | Python | leetcode/e_374.py | mmore21/competitive | 668f70e1b6f232ee079d407d30964399bf5141be | [
"MIT"
] | null | null | null | leetcode/e_374.py | mmore21/competitive | 668f70e1b6f232ee079d407d30964399bf5141be | [
"MIT"
] | null | null | null | leetcode/e_374.py | mmore21/competitive | 668f70e1b6f232ee079d407d30964399bf5141be | [
"MIT"
] | null | null | null | """
Problem: 374 - Guess Number Higher or Lower
Difficulty: Easy
URL: https://leetcode.com/problems/guess-number-higher-or-lower/
"""
class Solution:
def guessNumber(self, n: int) -> int:
lo = 0
hi = n
while lo <= hi:
mid = (hi + lo) // 2
res = guess(mid)... | 24.95 | 65 | 0.43487 | 58 | 499 | 3.741379 | 0.568966 | 0.101382 | 0.156682 | 0.175115 | 0.221198 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0369 | 0.456914 | 499 | 20 | 66 | 24.95 | 0.763838 | 0.250501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.285714 | 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 |
255c64c7fa6a1a3257927b43f6c7c33fcb4ce156 | 3,138 | py | Python | lexer.py | billyeatcookies/Avocado | 72a9a245d6f37532e31a441337b317f924b2ab15 | [
"MIT"
] | 1 | 2021-07-16T13:13:42.000Z | 2021-07-16T13:13:42.000Z | lexer.py | billyeatcookies/Avocado | 72a9a245d6f37532e31a441337b317f924b2ab15 | [
"MIT"
] | null | null | null | lexer.py | billyeatcookies/Avocado | 72a9a245d6f37532e31a441337b317f924b2ab15 | [
"MIT"
] | null | null | null | from tokens import Token, TokenType
whitespace = " \n\t"
digits = "0123456789"
class Lexer:
def __init__(self, code):
self.source = code + '\n'
self.cur_char = None
self.cur_pos = -1
self.advance()
def advance(self, pos=1):
self.cur_pos += pos
try:
... | 28.27027 | 94 | 0.485978 | 328 | 3,138 | 4.454268 | 0.213415 | 0.134155 | 0.180698 | 0.092402 | 0.537988 | 0.485969 | 0.485969 | 0.355921 | 0.313484 | 0.282683 | 0 | 0.013919 | 0.404716 | 3,138 | 110 | 95 | 28.527273 | 0.768201 | 0.068834 | 0 | 0.355263 | 0 | 0 | 0.023777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065789 | false | 0 | 0.013158 | 0 | 0.131579 | 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 |
255e4057ebb6916ea7b77e8deea8273edf6a4aad | 3,126 | py | Python | modules/SIGA/formats/compressed/fm_gzip.py | naaya17/carpe | fa2e3cfebe20f8839c985e5b9b78b538800172a1 | [
"Apache-2.0"
] | 56 | 2019-02-07T06:21:45.000Z | 2022-03-21T08:19:24.000Z | modules/SIGA/formats/compressed/fm_gzip.py | naaya17/carpe | fa2e3cfebe20f8839c985e5b9b78b538800172a1 | [
"Apache-2.0"
] | 5 | 2020-05-25T17:29:00.000Z | 2021-12-13T20:49:08.000Z | modules/SIGA/formats/compressed/fm_gzip.py | naaya17/carpe | fa2e3cfebe20f8839c985e5b9b78b538800172a1 | [
"Apache-2.0"
] | 31 | 2019-03-13T10:23:49.000Z | 2021-11-04T12:14:58.000Z | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
from pkg_resources import parse_version
from modules.SIGA.kaitaistruct import __version__ as ks_version, KaitaiStruct, KaitaiStream, BytesIO
from enum import Enum
if parse_version(ks_version) < parse_version('0.7'):
... | 34.351648 | 118 | 0.602047 | 419 | 3,126 | 4.157518 | 0.338902 | 0.096441 | 0.114811 | 0.056257 | 0.328932 | 0.258324 | 0.258324 | 0.258324 | 0.245121 | 0.167623 | 0 | 0.031536 | 0.300064 | 3,126 | 90 | 119 | 34.733333 | 0.764625 | 0.03071 | 0 | 0.194444 | 1 | 0 | 0.029431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.041667 | 0 | 0.152778 | 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 |
25639be86ae9da7c801b91bfb8c02b68495b9be4 | 3,438 | py | Python | src/CIL.py | Tigre-Buti/cool-compiler-2020 | e6f3da75b9a48b44f679b4d7608fd1b96655a929 | [
"MIT"
] | null | null | null | src/CIL.py | Tigre-Buti/cool-compiler-2020 | e6f3da75b9a48b44f679b4d7608fd1b96655a929 | [
"MIT"
] | null | null | null | src/CIL.py | Tigre-Buti/cool-compiler-2020 | e6f3da75b9a48b44f679b4d7608fd1b96655a929 | [
"MIT"
] | null | null | null | class CILObject:
pass
class CILInstructionNode:
def __init__(self,destination=None, params=[]):
self.destination=destination
self.params=params
def instructionPrint(self):
print(str(type(self))+" "+str(self.destination)+"<-"+str(self.params))
class CILTypeCheck(CILInstruct... | 23.875 | 128 | 0.740547 | 323 | 3,438 | 7.795666 | 0.287926 | 0.150119 | 0.117951 | 0.011914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177429 | 3,438 | 144 | 129 | 23.875 | 0.890382 | 0.025305 | 0 | 0.396694 | 0 | 0 | 0.00567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066116 | false | 0.347107 | 0 | 0 | 0.471074 | 0.008264 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2564421a3ac67ae3cef2d44b580526c5418b606c | 1,880 | py | Python | input.py | aidan-clyens/Simple_Digit_Recognition | b37a5c216a106d884aed37f55329945f4236825b | [
"Apache-2.0"
] | null | null | null | input.py | aidan-clyens/Simple_Digit_Recognition | b37a5c216a106d884aed37f55329945f4236825b | [
"Apache-2.0"
] | null | null | null | input.py | aidan-clyens/Simple_Digit_Recognition | b37a5c216a106d884aed37f55329945f4236825b | [
"Apache-2.0"
] | null | null | null | from trainer import Trainer
import os
import sys
if __name__ == '__main__':
# Create a Trainer object
contour_area_threshhold = 60
crop_width = 50
crop_height = 50
crop_margin = 5
trainer = Trainer(contour_area_threshhold, crop_width, crop_height, crop_margin)
# User must enter at least on... | 36.153846 | 100 | 0.682979 | 271 | 1,880 | 4.579336 | 0.354244 | 0.087027 | 0.068493 | 0.048348 | 0.181305 | 0.136986 | 0.093473 | 0.093473 | 0.093473 | 0.093473 | 0 | 0.008386 | 0.23883 | 1,880 | 51 | 101 | 36.862745 | 0.85884 | 0.264362 | 0 | 0.242424 | 0 | 0 | 0.215015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.242424 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
25685601521db5f7e5770405f57d6584f1c9e611 | 10,963 | py | Python | helpers/alphanumeric.py | danielhenrymantilla/shellcode-factory | 07ae8570c617b4e6c9a45dc5f9ebc59584b30f5a | [
"MIT"
] | 34 | 2017-05-13T09:48:10.000Z | 2022-02-01T04:43:39.000Z | helpers/alphanumeric.py | danielhenrymantilla/shellcode-factory | 07ae8570c617b4e6c9a45dc5f9ebc59584b30f5a | [
"MIT"
] | null | null | null | helpers/alphanumeric.py | danielhenrymantilla/shellcode-factory | 07ae8570c617b4e6c9a45dc5f9ebc59584b30f5a | [
"MIT"
] | 9 | 2017-05-13T02:03:25.000Z | 2021-07-27T17:54:43.000Z | from assembly import Assembly
# String of forbidden chars
forbidden_chars = ""
class Utils:
verbose = False # Is debug printing activated?
@staticmethod
def none(*args): return None
@staticmethod
def debug(*ss):
if Utils.verbose:
for s ... | 36.912458 | 81 | 0.443036 | 1,280 | 10,963 | 3.708594 | 0.175781 | 0.031599 | 0.01264 | 0.016221 | 0.164314 | 0.095007 | 0.058563 | 0.050137 | 0.040868 | 0.040868 | 0 | 0.020604 | 0.420049 | 10,963 | 296 | 82 | 37.037162 | 0.726014 | 0.045334 | 0 | 0.186992 | 0 | 0 | 0.060606 | 0.002283 | 0 | 0 | 0.006434 | 0 | 0.01626 | 0 | null | null | 0 | 0.012195 | null | null | 0.036585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
256a7e2a9e00bddd03c2372f036755aacc6f7b15 | 592 | py | Python | home/migrations/0012_auto_20220329_0825.py | SeanCodeMedia/codeMedia-django | 734284859e35f24bc4a0131154f175614804d4fa | [
"MIT"
] | null | null | null | home/migrations/0012_auto_20220329_0825.py | SeanCodeMedia/codeMedia-django | 734284859e35f24bc4a0131154f175614804d4fa | [
"MIT"
] | null | null | null | home/migrations/0012_auto_20220329_0825.py | SeanCodeMedia/codeMedia-django | 734284859e35f24bc4a0131154f175614804d4fa | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2022-03-29 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0011_home_degree_3_description'),
]
operations = [
migrations.AddField(
model_name='home',
name='role1',
... | 24.666667 | 83 | 0.591216 | 62 | 592 | 5.516129 | 0.645161 | 0.105263 | 0.134503 | 0.157895 | 0.204678 | 0.204678 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.290541 | 592 | 23 | 84 | 25.73913 | 0.747619 | 0.076014 | 0 | 0.352941 | 1 | 0 | 0.155963 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 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 |
256b0c2ad3024af241e91902c091ff2ffcf4ce8b | 530 | py | Python | catstuff/core_plugins/tasks/filelist/main.py | modora/catstuff | 7a4ea67e26774e42e90d0c71a4b2c299fe506d73 | [
"MIT"
] | null | null | null | catstuff/core_plugins/tasks/filelist/main.py | modora/catstuff | 7a4ea67e26774e42e90d0c71a4b2c299fe506d73 | [
"MIT"
] | 7 | 2017-12-16T06:16:56.000Z | 2017-12-26T06:21:18.000Z | catstuff/core_plugins/tasks/filelist/main.py | modora/catstuff | 7a4ea67e26774e42e90d0c71a4b2c299fe506d73 | [
"MIT"
] | null | null | null | from catstuff import core, tools
from .config import mod_name, build
class Filelist(core.plugins.CSTask):
def __init__(self):
super().__init__(mod_name, build)
def main(self, path, max_depth=0, followlinks=False,
include=None, exclude=None, mode='whitelist',
safe_walk=True,... | 31.176471 | 63 | 0.662264 | 66 | 530 | 5.045455 | 0.545455 | 0.072072 | 0.072072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002469 | 0.235849 | 530 | 16 | 64 | 33.125 | 0.819753 | 0 | 0 | 0 | 0 | 0 | 0.016981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0.083333 | 0.583333 | 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 |
c251d5fb78378b479c7e12360e0fd5775a577715 | 4,627 | py | Python | asgard/users/test/userstest.py | nicolas-van/asgard | fd9a4aa291364703cc164b9cac1711273473ea89 | [
"MIT"
] | null | null | null | asgard/users/test/userstest.py | nicolas-van/asgard | fd9a4aa291364703cc164b9cac1711273473ea89 | [
"MIT"
] | null | null | null | asgard/users/test/userstest.py | nicolas-van/asgard | fd9a4aa291364703cc164b9cac1711273473ea89 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2014, Nicolas Vanhoren
#
# Released under the MIT license
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without l... | 45.362745 | 91 | 0.709747 | 630 | 4,627 | 5.034921 | 0.290476 | 0.07314 | 0.151324 | 0.15889 | 0.465952 | 0.458071 | 0.45681 | 0.38367 | 0.38367 | 0.38367 | 0 | 0.001564 | 0.170737 | 4,627 | 101 | 92 | 45.811881 | 0.825124 | 0.25308 | 0 | 0.388889 | 0 | 0 | 0.165375 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 1 | 0.12963 | false | 0.092593 | 0.092593 | 0 | 0.259259 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c25d4331ee1d157f84a1608ba0d7b0a2a930f447 | 458 | py | Python | main/migrations/0004_auto_20200614_1547.py | pcp11/link-lizard | 67afb44b062d6fe102f121d8a6c648607a09cc54 | [
"MIT"
] | null | null | null | main/migrations/0004_auto_20200614_1547.py | pcp11/link-lizard | 67afb44b062d6fe102f121d8a6c648607a09cc54 | [
"MIT"
] | 4 | 2021-03-30T13:47:24.000Z | 2021-09-22T19:18:16.000Z | main/migrations/0004_auto_20200614_1547.py | pcp11/link_lizard | 67afb44b062d6fe102f121d8a6c648607a09cc54 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2020-06-14 15:47
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0003_auto_20200614_1506'),
]
operations = [
migrations.AlterField(
model_name='urlmapping'... | 22.9 | 85 | 0.641921 | 49 | 458 | 5.897959 | 0.755102 | 0.069204 | 0.138408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089855 | 0.246725 | 458 | 19 | 86 | 24.105263 | 0.747826 | 0.098253 | 0 | 0 | 1 | 0 | 0.119221 | 0.055961 | 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 |
c25d9433143ad5000d4b013ae07a89bb4157ee35 | 1,721 | py | Python | dqn/environment.py | Alexanderli0816/DQN | a743827411323784d8871680e4804c4464d4f43d | [
"MIT"
] | 1 | 2020-07-18T14:08:20.000Z | 2020-07-18T14:08:20.000Z | dqn/environment.py | Alexanderli0816/DQN | a743827411323784d8871680e4804c4464d4f43d | [
"MIT"
] | null | null | null | dqn/environment.py | Alexanderli0816/DQN | a743827411323784d8871680e4804c4464d4f43d | [
"MIT"
] | null | null | null | import gym
from .utils import rgb2gray, imresize
class Environment(object):
def __init__(self, config):
self.env = gym.make(config.env_name)
screen_width, screen_height = config.screen_width, config.screen_height
self.display = config.display
self.dims = (screen_width, screen_hei... | 26.075758 | 100 | 0.632772 | 212 | 1,721 | 4.962264 | 0.268868 | 0.053232 | 0.053232 | 0.032319 | 0.110266 | 0.110266 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.259152 | 1,721 | 65 | 101 | 26.476923 | 0.811765 | 0.052295 | 0 | 0.255319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234043 | false | 0 | 0.042553 | 0.085106 | 0.446809 | 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 |
c263a6d834ec3e948085d2b137345fc0213cd348 | 1,553 | py | Python | dj_prosftpd/views.py | devopsmakers/dj-prosftpd | fcef6b4a5b8b872c9830eaf0315f0467dd1944ff | [
"MIT"
] | null | null | null | dj_prosftpd/views.py | devopsmakers/dj-prosftpd | fcef6b4a5b8b872c9830eaf0315f0467dd1944ff | [
"MIT"
] | null | null | null | dj_prosftpd/views.py | devopsmakers/dj-prosftpd | fcef6b4a5b8b872c9830eaf0315f0467dd1944ff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.views.generic import (
CreateView,
DeleteView,
DetailView,
UpdateView,
ListView
)
from .models import (
SFTPUser,
SFTPUserKey,
FileHistory,
FileValidator,
)
class SFTPUserCreateView(CreateView):
model = SFTPUser
class SFTPUserDeleteView(DeleteView):
... | 13.273504 | 42 | 0.746297 | 120 | 1,553 | 9.658333 | 0.333333 | 0.077653 | 0.077653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000792 | 0.186735 | 1,553 | 116 | 43 | 13.387931 | 0.916865 | 0.013522 | 0 | 0.377358 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037736 | 0 | 0.792453 | 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 |
c264a0559a489e0ca2515fe5e776e0a480c3f78b | 15,182 | py | Python | sympycore/heads/term_coeff_dict.py | radovankavicky/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 96 | 2015-01-25T05:59:56.000Z | 2021-12-29T14:05:22.000Z | sympycore/heads/term_coeff_dict.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 3 | 2015-12-17T19:25:46.000Z | 2018-06-19T07:05:20.000Z | sympycore/heads/term_coeff_dict.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 36 | 2016-01-31T15:22:01.000Z | 2021-03-29T07:03:07.000Z |
__all__ = ['TERM_COEFF_DICT']
from .base import heads, heads_precedence, ArithmeticHead, Pair
from ..core import init_module, Expr
init_module.import_heads()
init_module.import_numbers()
init_module.import_lowlevel_operations()
@init_module
def _init(module):
from ..arithmetic.number_theory import multinomial_c... | 36.061758 | 105 | 0.545975 | 2,043 | 15,182 | 3.891336 | 0.076848 | 0.088302 | 0.07522 | 0.040629 | 0.552956 | 0.491447 | 0.419245 | 0.367925 | 0.309182 | 0.252327 | 0 | 0.010086 | 0.353445 | 15,182 | 420 | 106 | 36.147619 | 0.799817 | 0.006323 | 0 | 0.391304 | 0 | 0 | 0.01041 | 0 | 0 | 0 | 0 | 0 | 0.002717 | 0 | null | null | 0 | 0.016304 | 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 |
c2652e3332a50136cfe6dc3e0424d1a81c2b3a65 | 439 | py | Python | API/utils/more_utils/fortnite_utils.py | OreoDivision/Stat-Tracker | 69112bb94f16d70fbcaa7da1bfc86c512be1280d | [
"MIT"
] | 1 | 2021-06-04T16:55:12.000Z | 2021-06-04T16:55:12.000Z | API/utils/more_utils/fortnite_utils.py | OreoDivision/Stat-Tracker | 69112bb94f16d70fbcaa7da1bfc86c512be1280d | [
"MIT"
] | 2 | 2021-06-01T18:34:25.000Z | 2021-06-03T00:15:07.000Z | API/utils/more_utils/fortnite_utils.py | OreoDivision/Stat-Tracker | 69112bb94f16d70fbcaa7da1bfc86c512be1280d | [
"MIT"
] | null | null | null | import requests
from cache import AsyncTTL
'''
----- Get fortnite players stats -----
name: the name of the user
platform: the platform they are on (epic / psn / xbl)
'''
@AsyncTTL(time_to_live=120, maxsize=1024)
async def get_player_stats(name, platform):
# Sends a request for the data
data = requests.get(f"ht... | 24.388889 | 116 | 0.715262 | 68 | 439 | 4.558824 | 0.705882 | 0.058065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023936 | 0.143508 | 439 | 17 | 117 | 25.823529 | 0.800532 | 0.08656 | 0 | 0 | 0 | 0.166667 | 0.314607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c266a78660dc18ed546854acbe4d047dc28fd3a0 | 2,330 | py | Python | sgh_PiGlow.py | davidramirezm30/scratch-orangepi | b4aa70f1cdcc030186532ad61cebf786be415b4b | [
"MIT"
] | null | null | null | sgh_PiGlow.py | davidramirezm30/scratch-orangepi | b4aa70f1cdcc030186532ad61cebf786be415b4b | [
"MIT"
] | null | null | null | sgh_PiGlow.py | davidramirezm30/scratch-orangepi | b4aa70f1cdcc030186532ad61cebf786be415b4b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# sgh_PiGlow - control PiGlow LEDS via ScratchGPIO.
#Copyright (C) 2013 by Simon Walters based on code from Pimoroni
#This program is free software; you can redistribute it and/or
#modify it under the terms of the GNU General Public License
#as published by the Free Software Foundation; either ve... | 31.486486 | 80 | 0.666953 | 338 | 2,330 | 4.449704 | 0.446746 | 0.037234 | 0.031915 | 0.039894 | 0.18484 | 0.167553 | 0.097074 | 0.097074 | 0.0625 | 0.0625 | 0 | 0.039867 | 0.224893 | 2,330 | 73 | 81 | 31.917808 | 0.792913 | 0.414163 | 0 | 0.102564 | 0 | 0 | 0.061961 | 0 | 0 | 0 | 0.031373 | 0 | 0 | 0 | null | null | 0.025641 | 0.051282 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c271e8a16a03cc4f624bc0f15c21ab8f82cd6061 | 360 | py | Python | ContractorApp/migrations/0011_remove_profile_is_a_company.py | Paul-W-0/FindContractors | d4986a15073856b9cf236f9dac0fdc60bfe96aba | [
"BSD-2-Clause"
] | null | null | null | ContractorApp/migrations/0011_remove_profile_is_a_company.py | Paul-W-0/FindContractors | d4986a15073856b9cf236f9dac0fdc60bfe96aba | [
"BSD-2-Clause"
] | null | null | null | ContractorApp/migrations/0011_remove_profile_is_a_company.py | Paul-W-0/FindContractors | d4986a15073856b9cf236f9dac0fdc60bfe96aba | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 3.2.9 on 2021-12-01 22:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ContractorApp', '0010_rename_user_type_profile_is_a_company'),
]
operations = [
migrations.RemoveField(
model_name='profile',
... | 20 | 72 | 0.627778 | 41 | 360 | 5.268293 | 0.780488 | 0.027778 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072243 | 0.269444 | 360 | 17 | 73 | 21.176471 | 0.749049 | 0.125 | 0 | 0 | 1 | 0 | 0.236422 | 0.134185 | 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 |
c27c848babbab309ffdce9f70af1926849e060e9 | 3,843 | py | Python | tests/test_show.py | SickChill/libtvdb | 87ad06fd031ce06f48b2cdbd728eb0a5fc312dcc | [
"MIT"
] | 1 | 2020-01-23T16:59:35.000Z | 2020-01-23T16:59:35.000Z | tests/test_show.py | SickChill/libtvdb | 87ad06fd031ce06f48b2cdbd728eb0a5fc312dcc | [
"MIT"
] | null | null | null | tests/test_show.py | SickChill/libtvdb | 87ad06fd031ce06f48b2cdbd728eb0a5fc312dcc | [
"MIT"
] | null | null | null | """Test searching for shows."""
import datetime
from tests.context import BaseTVDBTest
from libtvdb.model.enums import AirDay, ShowStatus
class ShowTestSuite(BaseTVDBTest):
"""Show test cases."""
def test_show_parse(self):
"""Test that a show is parsed as we'd expect."""
show = self.clien... | 78.428571 | 499 | 0.697372 | 554 | 3,843 | 4.770758 | 0.250903 | 0.043511 | 0.130533 | 0.10821 | 0.471056 | 0.350738 | 0.204313 | 0.15891 | 0.15891 | 0.15891 | 0 | 0.042513 | 0.167577 | 3,843 | 48 | 500 | 80.0625 | 0.783682 | 0.037211 | 0 | 0 | 0 | 0.151515 | 0.572903 | 0.05186 | 0 | 0 | 0 | 0 | 0.69697 | 1 | 0.030303 | false | 0 | 0.090909 | 0 | 0.151515 | 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 |
c27db4431c9735088df2b17aa56b86923aecfe8b | 1,813 | py | Python | gp_dev/core.py | matjesg/gp_dev | c9136ab200df4b7151d1652a98b2c61e5f5a45a0 | [
"Apache-2.0"
] | null | null | null | gp_dev/core.py | matjesg/gp_dev | c9136ab200df4b7151d1652a98b2c61e5f5a45a0 | [
"Apache-2.0"
] | null | null | null | gp_dev/core.py | matjesg/gp_dev | c9136ab200df4b7151d1652a98b2c61e5f5a45a0 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00_core.ipynb (unless otherwise specified).
__all__ = ['ExactGPModel', 'MultitaskGPModel', 'nv_cost', 'week_of_month']
# Cell
import gpytorch
from math import ceil
import datetime
# Cell
class ExactGPModel(gpytorch.models.ExactGP):
def __init__(self, train_x, train... | 31.258621 | 91 | 0.685052 | 240 | 1,813 | 4.916667 | 0.341667 | 0.033898 | 0.037288 | 0.040678 | 0.40678 | 0.330508 | 0.330508 | 0.330508 | 0.330508 | 0.330508 | 0 | 0.004152 | 0.202978 | 1,813 | 58 | 92 | 31.258621 | 0.812457 | 0.095974 | 0 | 0.157895 | 1 | 0 | 0.034398 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.078947 | 0 | 0.394737 | 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 |
c28765962c215de01d169825e841ce7cf5de05c5 | 175 | py | Python | web_scanner/whois.py | ntnshrm87/4hathacker | 80bfd8b1f2dea49cd16f60619610bc16a6331201 | [
"MIT"
] | null | null | null | web_scanner/whois.py | ntnshrm87/4hathacker | 80bfd8b1f2dea49cd16f60619610bc16a6331201 | [
"MIT"
] | null | null | null | web_scanner/whois.py | ntnshrm87/4hathacker | 80bfd8b1f2dea49cd16f60619610bc16a6331201 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os
def get_whois(url):
command = "whois" + " " + url
process = os.popen(command)
results = str(process.read())
#print results
return results
| 14.583333 | 30 | 0.668571 | 24 | 175 | 4.833333 | 0.708333 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182857 | 175 | 11 | 31 | 15.909091 | 0.811189 | 0.165714 | 0 | 0 | 0 | 0 | 0.042254 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c28ca8535ee8ac25fe13f114ddd2a2c67f11df0c | 4,337 | py | Python | geodex/utils.py | developmentseed/geodex | b7a31099625171995082f5045b6426582341f629 | [
"MIT"
] | 37 | 2018-03-07T15:14:19.000Z | 2022-01-14T21:24:02.000Z | geodex/utils.py | developmentseed/geodex | b7a31099625171995082f5045b6426582341f629 | [
"MIT"
] | 1 | 2018-04-25T16:42:11.000Z | 2018-06-06T16:05:28.000Z | geodex/utils.py | developmentseed/geodex | b7a31099625171995082f5045b6426582341f629 | [
"MIT"
] | 3 | 2018-04-30T15:19:24.000Z | 2020-01-02T21:30:21.000Z | """
utils.py
@author: developmentseed
Functions used to generate a list of tiles via recursion
"""
from os import path as op
import json
from shapely.geometry import Polygon
from pygeotile.tile import Tile
def _get_quadrant_tiles(tile):
"""Return indicies of tiles at one higher zoom (in google tiling scheme)""... | 31.656934 | 87 | 0.621858 | 592 | 4,337 | 4.440878 | 0.280405 | 0.03043 | 0.021301 | 0.024344 | 0.148726 | 0.124762 | 0.090529 | 0.075314 | 0.059338 | 0.059338 | 0 | 0.012108 | 0.257321 | 4,337 | 136 | 88 | 31.889706 | 0.804098 | 0.387134 | 0 | 0.075472 | 1 | 0 | 0.073595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.075472 | 0 | 0.320755 | 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 |
c290fa6bf32077a065c94ede6afff015b330d398 | 433 | py | Python | accounts/migrations/0002_auto_20200724_0209.py | LuizFelipeGondim/AUline | 04e59770b7c835962e8c6f1ea49f853cac716efb | [
"MIT"
] | null | null | null | accounts/migrations/0002_auto_20200724_0209.py | LuizFelipeGondim/AUline | 04e59770b7c835962e8c6f1ea49f853cac716efb | [
"MIT"
] | 5 | 2021-04-08T21:32:17.000Z | 2021-09-22T19:29:23.000Z | accounts/migrations/0002_auto_20200724_0209.py | LuizFelipeGondim/AUline | 04e59770b7c835962e8c6f1ea49f853cac716efb | [
"MIT"
] | 1 | 2021-07-25T22:40:18.000Z | 2021-07-25T22:40:18.000Z | # Generated by Django 3.0.8 on 2020-07-24 02:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='perfil',
name='biografia',
... | 22.789474 | 104 | 0.614319 | 49 | 433 | 5.346939 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06962 | 0.270208 | 433 | 18 | 105 | 24.055556 | 0.759494 | 0.103926 | 0 | 0 | 1 | 0 | 0.15285 | 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 |
c2a53ee539e3c4daa73c91dd249c979d24f45ecd | 24,513 | py | Python | app/main/forms.py | martamatos/kinetics_db | 2fd152a46be0b28d56d504a528b8a8b4f543dedd | [
"MIT"
] | null | null | null | app/main/forms.py | martamatos/kinetics_db | 2fd152a46be0b28d56d504a528b8a8b4f543dedd | [
"MIT"
] | 5 | 2019-02-26T15:02:27.000Z | 2020-04-02T22:00:47.000Z | app/main/forms.py | martamatos/kinetics_db | 2fd152a46be0b28d56d504a528b8a8b4f543dedd | [
"MIT"
] | null | null | null | import re
from flask_wtf import FlaskForm
from wtforms import FloatField, IntegerField, SelectField, StringField, SubmitField, TextAreaField
from wtforms.ext.sqlalchemy.fields import QuerySelectField, QuerySelectMultipleField
from wtforms.validators import ValidationError, DataRequired, Length, Optional
from flask_wtf... | 48.928144 | 182 | 0.693183 | 2,829 | 24,513 | 5.822906 | 0.123012 | 0.030596 | 0.038244 | 0.010199 | 0.520002 | 0.46816 | 0.457962 | 0.399866 | 0.369635 | 0.338433 | 0 | 0.011347 | 0.205442 | 24,513 | 500 | 183 | 49.026 | 0.83442 | 0.013258 | 0 | 0.311978 | 0 | 0.038997 | 0.249793 | 0.004922 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119777 | false | 0 | 0.022284 | 0.036212 | 0.5961 | 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 |
c2abc629c7c376ee676a3d23fd9ee74595996d17 | 9,709 | py | Python | src/a_tuin/metadata/field_group.py | gordon-elliott/glod | a381e21455d05d9c005942a3dee4ac67e10f366a | [
"MIT"
] | null | null | null | src/a_tuin/metadata/field_group.py | gordon-elliott/glod | a381e21455d05d9c005942a3dee4ac67e10f366a | [
"MIT"
] | 1 | 2021-03-10T16:48:34.000Z | 2021-03-10T16:48:34.000Z | src/a_tuin/metadata/field_group.py | gordon-elliott/glod | a381e21455d05d9c005942a3dee4ac67e10f366a | [
"MIT"
] | null | null | null | __copyright__ = 'Copyright(c) Gordon Elliott 2017'
"""
"""
import logging
from collections import OrderedDict
from operator import getitem, setitem
from a_tuin.metadata.exceptions import FieldAssignmentError, field_errors_check, DATA_LOAD_ERRORS
from a_tuin.metadata.field_transformations import copy_field
LOG = l... | 31.832787 | 97 | 0.620867 | 1,065 | 9,709 | 5.370892 | 0.123944 | 0.054545 | 0.02972 | 0.034615 | 0.568007 | 0.510315 | 0.448077 | 0.384091 | 0.311538 | 0.295455 | 0 | 0.000886 | 0.3024 | 9,709 | 304 | 98 | 31.9375 | 0.843644 | 0.003193 | 0 | 0.495496 | 0 | 0 | 0.010347 | 0 | 0 | 0 | 0 | 0 | 0.004505 | 1 | 0.202703 | false | 0.004505 | 0.022523 | 0.076577 | 0.405405 | 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 |
c2b1823896f54ea47bbe0f865a18ec1b2786711d | 637 | py | Python | test/add_test_contact_new.py | Yevhen-Code/Python_Sample | 81e39fcad127ea7d5b784f2ae89e3359f888575b | [
"Apache-2.0"
] | null | null | null | test/add_test_contact_new.py | Yevhen-Code/Python_Sample | 81e39fcad127ea7d5b784f2ae89e3359f888575b | [
"Apache-2.0"
] | null | null | null | test/add_test_contact_new.py | Yevhen-Code/Python_Sample | 81e39fcad127ea7d5b784f2ae89e3359f888575b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from model.contact import Contact
def test_add_contact(app):
app.session.login(username="admin", password="secret")
app.contact.create_contact(
Contact(name="Yevhen", lastname="Hurtovyi", company="Sidley", address="Chicago", mobile="7733311608",
email="y... | 35.388889 | 113 | 0.631083 | 76 | 637 | 5.197368 | 0.526316 | 0.101266 | 0.050633 | 0.101266 | 0.435443 | 0.435443 | 0.435443 | 0.435443 | 0.435443 | 0.435443 | 0 | 0.033399 | 0.200942 | 637 | 17 | 114 | 37.470588 | 0.742633 | 0.032967 | 0 | 0.333333 | 0 | 0 | 0.138436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c2b69bbd3edf67b4da3a8637393000f935cb7d60 | 1,612 | py | Python | infinisdk/infinibox/tenant.py | Infinidat/infinisdk | a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4 | [
"BSD-3-Clause"
] | 5 | 2019-02-26T20:11:43.000Z | 2021-03-10T08:45:38.000Z | infinisdk/infinibox/tenant.py | Infinidat/infinisdk | a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4 | [
"BSD-3-Clause"
] | 11 | 2017-11-15T19:20:23.000Z | 2021-09-14T18:17:47.000Z | infinisdk/infinibox/tenant.py | Infinidat/infinisdk | a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4 | [
"BSD-3-Clause"
] | 2 | 2017-11-16T11:59:05.000Z | 2019-02-25T20:44:23.000Z | from ..core import Field, SystemObject, MillisecondsDatetimeType
from ..core.api.special_values import Autogenerate
from ..core.translators_and_types import MunchType
class Tenant(SystemObject):
FIELDS = [
Field("id", type=int, is_identity=True, is_filterable=True, is_sortable=True),
Field("short_... | 53.733333 | 115 | 0.710918 | 193 | 1,612 | 5.720207 | 0.331606 | 0.065217 | 0.115942 | 0.126812 | 0.48913 | 0.48913 | 0.455616 | 0.455616 | 0.42029 | 0.42029 | 0 | 0 | 0.173077 | 1,612 | 29 | 116 | 55.586207 | 0.828207 | 0 | 0 | 0.076923 | 1 | 0 | 0.099876 | 0.014888 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0.038462 | 0.269231 | 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 |
c2cfc2e1697d213b97e95a9e5eb1e8e12e2f16c6 | 5,507 | py | Python | Competitive Programming/Heap/Building Heap from Array.py | shreejitverma/GeeksforGeeks | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-18T05:14:28.000Z | 2022-03-08T07:00:08.000Z | Competitive Programming/Heap/Building Heap from Array.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 6 | 2022-01-13T04:31:04.000Z | 2022-03-12T01:06:16.000Z | Competitive Programming/Heap/Building Heap from Array.py | shivaniverma1/Competitive-Programming-1 | d7bcb166369fffa9a031a258e925b6aff8d44e6c | [
"MIT"
] | 2 | 2022-02-14T19:53:53.000Z | 2022-02-18T05:14:30.000Z | '''https://www.geeksforgeeks.org/building-heap-from-array/
Given an array of N elements. The task is to build a Binary Heap from the given array.
The heap can be either Max Heap or Min Heap.
Example:
Input: arr[] = {4, 10, 3, 5, 1}
Output: Corresponding Max-Heap:
10
/ \
5 3
/ \
4 1
Inp... | 25.733645 | 119 | 0.52061 | 831 | 5,507 | 3.440433 | 0.203369 | 0.008395 | 0.034627 | 0.041973 | 0.190626 | 0.136411 | 0.079748 | 0.064358 | 0.064358 | 0.050367 | 0 | 0.082983 | 0.396041 | 5,507 | 213 | 120 | 25.85446 | 0.776609 | 0.826584 | 0 | 0 | 0 | 0 | 0.047399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0 | 0 | 0.115385 | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c2d5818bb16ff2de7dbeee784cd0a57e6e4d62fc | 1,027 | py | Python | visualize_classifer/visualize_model.py | a-n-rose/language-classifier | 21f98f09425c60967e57316931d1998183e22861 | [
"MIT"
] | 3 | 2018-09-10T08:19:43.000Z | 2020-02-11T19:58:10.000Z | visualize_classifer/visualize_model.py | a-n-rose/language-classifier | 21f98f09425c60967e57316931d1998183e22861 | [
"MIT"
] | null | null | null | visualize_classifer/visualize_model.py | a-n-rose/language-classifier | 21f98f09425c60967e57316931d1998183e22861 | [
"MIT"
] | null | null | null | import keras
from keras.models import model_from_json
from keras.utils import plot_model
import pandas as pd
import numpy as np
from ann_visualizer.visualize import ann_viz
import glob
import os
#batch visualize:
for model in glob.glob('./models/*.json'):
#load json model:
classifier_name = os.path.split... | 30.205882 | 118 | 0.749757 | 141 | 1,027 | 5.262411 | 0.453901 | 0.09434 | 0.03504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002307 | 0.155794 | 1,027 | 33 | 119 | 31.121212 | 0.853518 | 0.113924 | 0 | 0 | 0 | 0 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.380952 | 0 | 0.380952 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c2d86211f635e7d0c6ca33c4d33e1b77f3c3f167 | 998 | py | Python | apps/users/adminx.py | Airren/mxonline-python | f16c7039b5a8ac7d2d743c83c9f44f77f02e1432 | [
"MIT"
] | 6 | 2021-09-18T07:19:54.000Z | 2021-09-18T07:20:07.000Z | apps/users/adminx.py | Airren/mxonline-python | f16c7039b5a8ac7d2d743c83c9f44f77f02e1432 | [
"MIT"
] | null | null | null | apps/users/adminx.py | Airren/mxonline-python | f16c7039b5a8ac7d2d743c83c9f44f77f02e1432 | [
"MIT"
] | null | null | null | # _*_ encoding:utf-8 _*_
__author__ = 'wuqy'
__date__ = '2021/7/7 11:09'
import xadmin
from xadmin import views
from .models import EmailVerifyRecord,Banner
class BaseSetting(object):
enable_themes = True
use_bootswatch = True
class GlobalSetting(object):
site_title = 'wuqy的管理系统'
site_footer = 'wuq... | 27.722222 | 64 | 0.718437 | 115 | 998 | 5.973913 | 0.46087 | 0.058224 | 0.104803 | 0.074236 | 0.14556 | 0.14556 | 0 | 0 | 0 | 0 | 0 | 0.012717 | 0.133267 | 998 | 36 | 65 | 27.722222 | 0.781503 | 0.022044 | 0 | 0 | 0 | 0 | 0.192821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c2dd96aa8ee9875088ac30d11edb413af113ebfd | 995 | py | Python | utils/cache/meeting.py | ttppren-github/MeetingSample-Backend | 7ed01498d1c825333c496b41450140e2438cd630 | [
"MIT"
] | 7 | 2021-11-11T09:29:20.000Z | 2021-11-15T03:45:22.000Z | utils/cache/meeting.py | ttppren-github/MeetingSample-Backend | 7ed01498d1c825333c496b41450140e2438cd630 | [
"MIT"
] | null | null | null | utils/cache/meeting.py | ttppren-github/MeetingSample-Backend | 7ed01498d1c825333c496b41450140e2438cd630 | [
"MIT"
] | 4 | 2021-11-12T03:32:02.000Z | 2021-11-15T03:45:24.000Z | from meeting_sample.settings import REDIS_PREFIX
from utils.cache.connection import client
MEETING_KEY = f'{REDIS_PREFIX}:meeting:'
def open_meeting(meeting_id: int, ex: int):
key = MEETING_KEY + str(meeting_id)
value = {
'sharing_user': 0,
}
client.hset(key, mapping=value)
client.expire... | 23.139535 | 48 | 0.687437 | 149 | 995 | 4.348993 | 0.275168 | 0.166667 | 0.111111 | 0.148148 | 0.368827 | 0.368827 | 0.330247 | 0.243827 | 0.243827 | 0.243827 | 0 | 0.003755 | 0.196985 | 995 | 42 | 49 | 23.690476 | 0.807259 | 0 | 0 | 0.214286 | 0 | 0 | 0.071357 | 0.023116 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.392857 | 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 |
c2e35da37c33c62a0ac45cb6fe57e75b44b333a3 | 2,910 | py | Python | evaluation/iccv19/transfer.py | kumasento/gconv-prune | f81c417d3754102c902bd153809130e12607bd7d | [
"MIT"
] | 8 | 2019-08-29T07:43:03.000Z | 2021-03-03T14:25:09.000Z | evaluation/iccv19/transfer.py | kumasento/gconv-prune | f81c417d3754102c902bd153809130e12607bd7d | [
"MIT"
] | null | null | null | evaluation/iccv19/transfer.py | kumasento/gconv-prune | f81c417d3754102c902bd153809130e12607bd7d | [
"MIT"
] | 2 | 2019-09-15T03:39:30.000Z | 2020-04-30T07:06:46.000Z | """ Training from scratch with different conditions. """
import os
import sys
import argparse
import copy
import time
import shutil
import json
import logging
logging.getLogger().setLevel(logging.DEBUG)
import numpy as np
import torch
import torch.nn as nn
import torch.nn.parallel
import torch.backe... | 25.086207 | 85 | 0.64811 | 361 | 2,910 | 5.033241 | 0.385042 | 0.064392 | 0.041277 | 0.03137 | 0.091359 | 0.066043 | 0.044029 | 0.044029 | 0 | 0 | 0 | 0.002301 | 0.253265 | 2,910 | 115 | 86 | 25.304348 | 0.83387 | 0.108247 | 0 | 0.106667 | 0 | 0 | 0.150803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053333 | false | 0.013333 | 0.306667 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c2e678d729cebee120df3bf691a8f010fb4f0963 | 449 | py | Python | datam/__init__.py | bengranett/datam | 8ebb1eea97606e33c96623ab73a679eb805c30a3 | [
"Unlicense"
] | null | null | null | datam/__init__.py | bengranett/datam | 8ebb1eea97606e33c96623ab73a679eb805c30a3 | [
"Unlicense"
] | null | null | null | datam/__init__.py | bengranett/datam | 8ebb1eea97606e33c96623ab73a679eb805c30a3 | [
"Unlicense"
] | null | null | null | import subprocess, os
__version__ = ''
try:
# if we are running in a git repo, look up the hash
__version__ = subprocess.Popen(
('git','--git-dir',os.path.dirname(__file__),'describe','--always'),
stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0]
assert __version__
except:... | 24.944444 | 77 | 0.652561 | 55 | 449 | 4.963636 | 0.672727 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002915 | 0.23608 | 449 | 17 | 78 | 26.411765 | 0.793003 | 0.187082 | 0 | 0.333333 | 0 | 0 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0 | false | 0.083333 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
c2ebedce5eabde202d9f1c764caae754874320bb | 3,686 | py | Python | core/views.py | HortenciaArliane/speakerfight | c9350d84664ac3bad83dd661a2c5d55d1b8cbf5b | [
"MIT"
] | 369 | 2015-02-20T18:02:10.000Z | 2022-03-29T02:56:40.000Z | core/views.py | HortenciaArliane/speakerfight | c9350d84664ac3bad83dd661a2c5d55d1b8cbf5b | [
"MIT"
] | 396 | 2015-01-30T22:54:09.000Z | 2022-03-11T23:17:40.000Z | core/views.py | HortenciaArliane/speakerfight | c9350d84664ac3bad83dd661a2c5d55d1b8cbf5b | [
"MIT"
] | 220 | 2015-01-30T21:12:26.000Z | 2022-03-09T20:41:01.000Z |
from django.contrib.auth.models import User
from django.utils.translation import ugettext as _
from django.http import Http404, HttpResponseRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404
from django.utils import translation
from vanilla import TemplateView, DetailView, Upd... | 31.775862 | 81 | 0.682311 | 399 | 3,686 | 6.130326 | 0.255639 | 0.04906 | 0.036795 | 0.017171 | 0.367948 | 0.340147 | 0.316435 | 0.282093 | 0.250204 | 0.195421 | 0 | 0.005624 | 0.228161 | 3,686 | 115 | 82 | 32.052174 | 0.85413 | 0 | 0 | 0.390805 | 0 | 0 | 0.044233 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.126437 | 0 | 0.551724 | 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 |
c2f51be8558e044b9d8400f93d99e072b9422f34 | 719 | py | Python | sktime/transformations/panel/tests/test_PCATransformer.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T02:45:39.000Z | 2021-12-22T02:45:39.000Z | sktime/transformations/panel/tests/test_PCATransformer.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | sktime/transformations/panel/tests/test_PCATransformer.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Tests for PCATransformer."""
import numpy as np
import pytest
from sktime.transformations.panel.pca import PCATransformer
from sktime.utils._testing.panel import _make_nested_from_array
@pytest.mark.parametrize("bad_components", ["str", 1.2, -1.2, -1, 11])
def test_bad_input_args(bad_compo... | 34.238095 | 73 | 0.720445 | 99 | 719 | 5.020202 | 0.525253 | 0.130785 | 0.056338 | 0.076459 | 0.169014 | 0.169014 | 0.169014 | 0 | 0 | 0 | 0 | 0.021488 | 0.158554 | 719 | 20 | 74 | 35.95 | 0.8 | 0.137691 | 0 | 0.153846 | 0 | 0 | 0.027915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
c2fef064b6116e5cd0ecb003e1f90659351dad8d | 402 | py | Python | timberr/core/migrations/0006_auto_20200116_1824.py | luckyadogun/timberinvoice | 07dd3435eed7e1985307b2c6dcdf81536189a014 | [
"MIT"
] | 1 | 2021-01-01T01:09:39.000Z | 2021-01-01T01:09:39.000Z | timberr/core/migrations/0006_auto_20200116_1824.py | luckyadogun/timberinvoice | 07dd3435eed7e1985307b2c6dcdf81536189a014 | [
"MIT"
] | null | null | null | timberr/core/migrations/0006_auto_20200116_1824.py | luckyadogun/timberinvoice | 07dd3435eed7e1985307b2c6dcdf81536189a014 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.15 on 2020-01-16 17:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_auto_20200116_1747'),
]
operations = [
migrations.AlterField(
model_name='invoice',
name='invoice_id',... | 21.157895 | 63 | 0.606965 | 45 | 402 | 5.288889 | 0.844444 | 0.092437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117241 | 0.278607 | 402 | 18 | 64 | 22.333333 | 0.703448 | 0.114428 | 0 | 0 | 1 | 0 | 0.124294 | 0.064972 | 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 |
6c026fe64a815241392f600398eeaa0a287f1bce | 1,354 | py | Python | docs/examples/save_geotiff.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | 167 | 2017-03-23T22:16:58.000Z | 2022-03-08T09:19:30.000Z | docs/examples/save_geotiff.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | 93 | 2017-03-23T22:11:40.000Z | 2021-12-13T18:38:53.000Z | docs/examples/save_geotiff.py | carderne/descarteslabs-python | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | [
"Apache-2.0"
] | 46 | 2017-03-25T19:12:14.000Z | 2021-08-15T18:04:29.000Z | """
==================================================
Save image to GeoTIFF
==================================================
This example demonstrates how to save an image
to your local machine in GeoTiff format.
"""
import descarteslabs as dl
# Create an aoi feature to clip imagery to
box = {
"type": "Polygo... | 29.434783 | 113 | 0.627031 | 163 | 1,354 | 5.079755 | 0.582822 | 0.019324 | 0.068841 | 0.07971 | 0.289855 | 0.074879 | 0.074879 | 0.074879 | 0 | 0 | 0 | 0.226103 | 0.196455 | 1,354 | 45 | 114 | 30.088889 | 0.534926 | 0.373708 | 0 | 0.071429 | 0 | 0 | 0.235364 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c06938650842d9dde82f2717c787e648042f312 | 37,288 | py | Python | bitmex_swagger/models/execution.py | silencewwt/bitmex-swagger-client | 01403685eeb12eb27d53a0310d3bc7541793aa0f | [
"MIT"
] | 1 | 2018-08-04T15:05:43.000Z | 2018-08-04T15:05:43.000Z | bitmex_swagger/models/execution.py | silencewwt/bitmex-swagger | 01403685eeb12eb27d53a0310d3bc7541793aa0f | [
"MIT"
] | null | null | null | bitmex_swagger/models/execution.py | silencewwt/bitmex-swagger | 01403685eeb12eb27d53a0310d3bc7541793aa0f | [
"MIT"
] | null | null | null | # coding: utf-8
"""
BitMEX API
## REST API for the BitMEX Trading Platform [View Changelog](/app/apiChangelog) ---- #### Getting Started Base URI: [https://www.bitmex.com/api/v1](/api/v1) ##### Fetching Data All REST endpoints are documented below. You can try out any query right from this interface. M... | 28.464122 | 1,509 | 0.608373 | 4,715 | 37,288 | 4.553765 | 0.06596 | 0.052536 | 0.13134 | 0.124773 | 0.595035 | 0.453682 | 0.406409 | 0.319547 | 0.229239 | 0.108518 | 0 | 0.017228 | 0.302617 | 37,288 | 1,309 | 1,510 | 28.485867 | 0.808414 | 0.371567 | 0 | 0.087814 | 0 | 0 | 0.088447 | 0.006709 | 0 | 0 | 0 | 0 | 0 | 1 | 0.179211 | false | 0 | 0.005376 | 0 | 0.284946 | 0.003584 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c155b275360c78c3a06df8e760b62b636005bda | 5,385 | py | Python | web/kwmo/kwmo/controllers/file_download.py | tmbx/kas | 0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc | [
"BSD-3-Clause"
] | null | null | null | web/kwmo/kwmo/controllers/file_download.py | tmbx/kas | 0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc | [
"BSD-3-Clause"
] | null | null | null | web/kwmo/kwmo/controllers/file_download.py | tmbx/kas | 0d4e74d0a8ec0e0f85ba574eb01d389530bdeecc | [
"BSD-3-Clause"
] | null | null | null | import logging
import simplejson
import time
from pylons import request, response, session,config, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
from kwmo.lib.base import BaseController, render
from kfs_lib import *
from kwmo.lib.file_download import kfs_download_generator
from kwmo.model.k... | 43.780488 | 119 | 0.638069 | 678 | 5,385 | 4.830383 | 0.281711 | 0.036336 | 0.027481 | 0.044275 | 0.212824 | 0.187176 | 0.151145 | 0.151145 | 0.043969 | 0.043969 | 0 | 0.00459 | 0.271681 | 5,385 | 122 | 120 | 44.139344 | 0.830444 | 0.139276 | 0 | 0 | 0 | 0 | 0.181266 | 0.015178 | 0 | 0 | 0 | 0.008197 | 0.025 | 0 | null | null | 0 | 0.15 | 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 |
6c16a4bf4da80c5724cbcc2dd9c473d878e0d212 | 623 | py | Python | tests/test_collection.py | benthomasson/ansible-events | bd90edb68778f9f5ad82591f46993335fada8ed4 | [
"Apache-2.0"
] | null | null | null | tests/test_collection.py | benthomasson/ansible-events | bd90edb68778f9f5ad82591f46993335fada8ed4 | [
"Apache-2.0"
] | 17 | 2022-03-07T17:57:07.000Z | 2022-03-23T18:58:48.000Z | tests/test_collection.py | benthomasson/ansible-events | bd90edb68778f9f5ad82591f46993335fada8ed4 | [
"Apache-2.0"
] | null | null | null | from ansible_events.collection import (
find_collection,
split_collection_name,
find_source,
load_rules,
)
def test_find_collection():
location = find_collection("community.general")
assert location is not None
def test_find_collection_eda():
location = find_collection("benthomasson.eda"... | 23.074074 | 79 | 0.749599 | 80 | 623 | 5.5375 | 0.3 | 0.158014 | 0.081264 | 0.128668 | 0.374718 | 0.221219 | 0.221219 | 0.153499 | 0 | 0 | 0 | 0 | 0.168539 | 623 | 26 | 80 | 23.961538 | 0.855212 | 0 | 0 | 0.166667 | 0 | 0 | 0.134831 | 0.081862 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.222222 | false | 0 | 0.055556 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c19de5309fec868152e31727912bd60b5fa2802 | 611 | py | Python | core/migrations/remove_provider_dns_server_ip_model.py | simpsonw/atmosphere | 3a5203ef0b563de3a0e8c8c8715df88186532d7a | [
"BSD-3-Clause"
] | 197 | 2016-12-08T02:33:32.000Z | 2022-03-23T14:27:47.000Z | core/migrations/remove_provider_dns_server_ip_model.py | simpsonw/atmosphere | 3a5203ef0b563de3a0e8c8c8715df88186532d7a | [
"BSD-3-Clause"
] | 385 | 2017-01-03T22:51:46.000Z | 2020-12-16T16:20:42.000Z | core/migrations/remove_provider_dns_server_ip_model.py | benlazarine/atmosphere | 38fad8e4002e510e8b4294f2bb5bc75e8e1817fa | [
"BSD-3-Clause"
] | 50 | 2016-12-08T08:32:25.000Z | 2021-12-10T00:21:39.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-09-07 21:53
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', 'remove_atmosphereuser_selected_identity'),
]
operations = [
migrations.Alte... | 24.44 | 61 | 0.626841 | 54 | 611 | 6.907407 | 0.759259 | 0.184987 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037694 | 0.261866 | 611 | 24 | 62 | 25.458333 | 0.789357 | 0.111293 | 0 | 0.117647 | 1 | 0 | 0.2 | 0.072222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6c1da18e78b3b366dd36afe6feaf70cb203e663f | 3,155 | py | Python | flyer/decoder.py | FIXFlyer/pyflyer | e40fdedff4db642a804ed6c29de742444ab0ffe5 | [
"MIT"
] | 2 | 2019-06-07T16:03:26.000Z | 2020-12-20T22:12:19.000Z | flyer/decoder.py | mdvx/pyflyer | e40fdedff4db642a804ed6c29de742444ab0ffe5 | [
"MIT"
] | null | null | null | flyer/decoder.py | mdvx/pyflyer | e40fdedff4db642a804ed6c29de742444ab0ffe5 | [
"MIT"
] | 4 | 2017-07-18T15:06:33.000Z | 2022-03-30T05:26:46.000Z | #! /usr/bin/env python
#-----------------------------------------------------------------------
# COPYRIGHT_BEGIN
# Copyright (C) 2017, FixFlyer, LLC.
# All rights reserved.
# COPYRIGHT_END
#-----------------------------------------------------------------------
"""Protocol decoder."""
import flyer
MARKER = "50015=... | 24.269231 | 72 | 0.572425 | 344 | 3,155 | 4.97093 | 0.218023 | 0.057895 | 0.089474 | 0.070175 | 0.384211 | 0.296491 | 0.152047 | 0.050292 | 0 | 0 | 0 | 0.017969 | 0.294453 | 3,155 | 129 | 73 | 24.457364 | 0.750225 | 0.103011 | 0 | 0.25 | 0 | 0 | 0.021004 | 0 | 0 | 0 | 0 | 0.007752 | 0 | 1 | 0.180556 | false | 0 | 0.013889 | 0.083333 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6c312758958bf478f39cd837aefbef13926d18af | 394 | py | Python | config.py | jonas-scholz123/polarisation | dc5a337e4f88d52260956709fcca60a47a9f8a15 | [
"MIT"
] | null | null | null | config.py | jonas-scholz123/polarisation | dc5a337e4f88d52260956709fcca60a47a9f8a15 | [
"MIT"
] | null | null | null | config.py | jonas-scholz123/polarisation | dc5a337e4f88d52260956709fcca60a47a9f8a15 | [
"MIT"
] | null | null | null | DATA_PATH = "/media/jonas/Extreme SSD/research/polarisation/data/2019_12/"
ADJACENCY_MATRIX_PATH = "./intermediate_data/network_matrices/"
ID_DICT_PATH = "./intermediate_data/id_to_sub_dicts/"
EDGE_LIST_PATH = "./intermediate_data/edge_lists/"
COUNT_COL_NAME = "f0_"
MIN_COUNT_BOT_EXCLUSION = 500
SUBREDDIT_COMMENT_THRES... | 35.818182 | 74 | 0.807107 | 57 | 394 | 5.122807 | 0.719298 | 0.164384 | 0.205479 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.083756 | 394 | 11 | 75 | 35.818182 | 0.756233 | 0 | 0 | 0 | 0 | 0 | 0.440506 | 0.362025 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
6c37fa00f8142773dd943eb9c53ab0cede802fe1 | 1,621 | py | Python | devices/server.py | marcelo-h-h/acoes_broker | d4a1af1b2ccf3d928f4784218f54c43a075f539a | [
"MIT"
] | 1 | 2019-07-03T18:35:28.000Z | 2019-07-03T18:35:28.000Z | devices/server.py | marcelo-h-h/acoes_broker | d4a1af1b2ccf3d928f4784218f54c43a075f539a | [
"MIT"
] | null | null | null | devices/server.py | marcelo-h-h/acoes_broker | d4a1af1b2ccf3d928f4784218f54c43a075f539a | [
"MIT"
] | 1 | 2019-10-05T02:41:36.000Z | 2019-10-05T02:41:36.000Z | import zmq
import random
import time
class Server():
"""
The server is the publisher, it has a stock associated with him and constantly generates a new
variation of the stock price and publishes it to the forwarder, and consequently,to the subs
"""
def __init__(self, front_port: int, stock: str, st... | 42.657895 | 160 | 0.62739 | 214 | 1,621 | 4.607477 | 0.415888 | 0.05071 | 0.024341 | 0.034483 | 0.070994 | 0.070994 | 0.070994 | 0.070994 | 0 | 0 | 0 | 0.00937 | 0.275756 | 1,621 | 37 | 161 | 43.810811 | 0.830494 | 0.287477 | 0 | 0 | 1 | 0 | 0.065603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.107143 | 0 | 0.25 | 0.035714 | 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 |
6c3a3d3603f8e5557fbfe191ad93afa6703e876f | 21,304 | py | Python | custom/inddex/food.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | custom/inddex/food.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | custom/inddex/food.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | """
This file contains the logic to generate the master dataset for the INDDEX reports
Overview
--------
Beneficiaries are asked about their diet in a "recall" session. This results in
a "foodrecall" case. Every food they mention results in the creation of a "food"
case that's a child of this foodrecall.
This dataset... | 41.36699 | 112 | 0.672033 | 2,915 | 21,304 | 4.558834 | 0.129331 | 0.026714 | 0.0149 | 0.019565 | 0.374069 | 0.275115 | 0.169012 | 0.111972 | 0.03311 | 0.019415 | 0 | 0.002412 | 0.241128 | 21,304 | 514 | 113 | 41.447471 | 0.819571 | 0.118288 | 0 | 0.116625 | 1 | 0 | 0.131854 | 0.054779 | 0 | 0 | 0 | 0 | 0.002481 | 1 | 0.057072 | false | 0 | 0.027295 | 0.007444 | 0.16129 | 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 |
6c48aa92714beb30bba60f8cfa1f45d0bd5e0baf | 257 | py | Python | ValidacionEmail/validacionemail.py | BrianMarquez3/Python-Course | 2622b4ddfd687505becfd246e82a2ed0cb9b76f3 | [
"MIT"
] | 20 | 2020-08-19T23:27:01.000Z | 2022-02-03T12:02:17.000Z | ValidacionEmail/validacionemail.py | BrianMarquez3/Python-Course | 2622b4ddfd687505becfd246e82a2ed0cb9b76f3 | [
"MIT"
] | 1 | 2021-04-10T18:06:05.000Z | 2021-04-10T18:06:05.000Z | ValidacionEmail/validacionemail.py | BrianMarquez3/Python-Course | 2622b4ddfd687505becfd246e82a2ed0cb9b76f3 | [
"MIT"
] | 2 | 2020-12-03T19:35:36.000Z | 2021-11-10T14:58:39.000Z | # Validacion de Correo Electronico en Python
contador = 0
email = input("Ingrese su correo electronico: ")
for i in email:
if ("@" or "."):
contador = contador+1
if contador == 2:
print("Correo Valido")
else:
print("Correo Invalido")
| 18.357143 | 48 | 0.642023 | 33 | 257 | 5 | 0.69697 | 0.206061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015228 | 0.233463 | 257 | 13 | 49 | 19.769231 | 0.822335 | 0.163424 | 0 | 0 | 0 | 0 | 0.286385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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 |
6c52a808243a0c92d6cbf9d81f034c561fd743d8 | 1,637 | py | Python | authors/apps/articles/migrations/0002_auto_20190515_1247.py | andela/ah-backend-dojo | f2b14f15c4af906da846cafe722f13868d58371f | [
"BSD-3-Clause"
] | 3 | 2019-05-01T10:41:09.000Z | 2021-04-25T22:17:20.000Z | authors/apps/articles/migrations/0002_auto_20190515_1247.py | andela/ah-backend-dojo | f2b14f15c4af906da846cafe722f13868d58371f | [
"BSD-3-Clause"
] | 24 | 2019-04-23T14:56:21.000Z | 2021-12-13T19:58:37.000Z | authors/apps/articles/migrations/0002_auto_20190515_1247.py | andela/ah-backend-dojo | f2b14f15c4af906da846cafe722f13868d58371f | [
"BSD-3-Clause"
] | 4 | 2019-06-29T10:40:32.000Z | 2022-01-04T11:44:53.000Z | # Generated by Django 2.1 on 2019-05-15 12:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('articl... | 33.408163 | 131 | 0.623702 | 164 | 1,637 | 6.067073 | 0.323171 | 0.048241 | 0.070352 | 0.110553 | 0.473367 | 0.473367 | 0.358794 | 0.358794 | 0.358794 | 0.358794 | 0 | 0.018122 | 0.2584 | 1,637 | 48 | 132 | 34.104167 | 0.801483 | 0.026268 | 0 | 0.414634 | 1 | 0 | 0.133166 | 0.013819 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.170732 | 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 |
6c5a6a453e63ffd51e72d6b86eb582f875a95902 | 1,646 | py | Python | scripts/validate_graph.py | dongguosheng/deepwalk | 47b6e4d6334f683d4c2df187f0b97a23867a172a | [
"MIT"
] | 22 | 2016-07-05T06:51:08.000Z | 2021-04-28T14:04:16.000Z | scripts/validate_graph.py | dongguosheng/deepwalk | 47b6e4d6334f683d4c2df187f0b97a23867a172a | [
"MIT"
] | 5 | 2016-09-04T12:45:26.000Z | 2021-01-11T13:54:06.000Z | scripts/validate_graph.py | dongguosheng/deepwalk | 47b6e4d6334f683d4c2df187f0b97a23867a172a | [
"MIT"
] | 8 | 2016-07-05T07:12:56.000Z | 2021-03-08T08:27:25.000Z | # -*- coding: gbk -*-
import sys
def validate(filename):
n_max = -1
v_set = set()
with open(filename) as fin:
n_line = 0
for line in fin:
n_line += 1
v_list = line.rstrip().split()
if 'adj' in filename:
if len(v_list) < 2:
... | 34.291667 | 127 | 0.469623 | 236 | 1,646 | 3.084746 | 0.245763 | 0.065934 | 0.067308 | 0.054945 | 0.497253 | 0.436813 | 0.436813 | 0.335165 | 0.293956 | 0.206044 | 0 | 0.01971 | 0.414338 | 1,646 | 47 | 128 | 35.021277 | 0.735477 | 0.011543 | 0 | 0.243902 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.02439 | null | null | 0.195122 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
6c6123ca50ad8de5e9364147732f6ad31277a283 | 589 | py | Python | src/plugins/basic/__init__.py | inuEbisu/inuBot | 70bc139100a49983418a9fd7709f2f4899f0c6ea | [
"MIT"
] | null | null | null | src/plugins/basic/__init__.py | inuEbisu/inuBot | 70bc139100a49983418a9fd7709f2f4899f0c6ea | [
"MIT"
] | null | null | null | src/plugins/basic/__init__.py | inuEbisu/inuBot | 70bc139100a49983418a9fd7709f2f4899f0c6ea | [
"MIT"
] | null | null | null | from nonebot import on_command
from nonebot.rule import to_me
from nonebot.typing import T_State
from nonebot.adapters import Bot, Event
from . import req, lang
matcher_plugins = on_command('plugins', aliases={'help', '插件', '帮助'}, priority=1)
@matcher_plugins.handle()
async def main_plugins(bot: Bot, event: Event, sta... | 36.8125 | 81 | 0.758913 | 89 | 589 | 4.831461 | 0.382022 | 0.102326 | 0.065116 | 0.083721 | 0.125581 | 0.125581 | 0.125581 | 0 | 0 | 0 | 0 | 0.003891 | 0.127334 | 589 | 16 | 82 | 36.8125 | 0.832685 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6c6610869e23168056278e2ae0b53512c2b9d73b | 492 | py | Python | interview/migrations/0004_auto_20200829_1018.py | Jacklovely/django | 4c4d0d37868d774311fbb25cfab13fa9de38720e | [
"Apache-2.0"
] | 63 | 2020-10-14T13:13:58.000Z | 2022-03-22T15:55:16.000Z | interview/migrations/0004_auto_20200829_1018.py | Jacklovely/django | 4c4d0d37868d774311fbb25cfab13fa9de38720e | [
"Apache-2.0"
] | 5 | 2021-04-08T20:24:53.000Z | 2021-09-22T19:38:40.000Z | interview/migrations/0004_auto_20200829_1018.py | pywjh/-recruitment-django | 5ad7a0b725f0a1557b5b220d3197b1d9dbda5de4 | [
"Apache-2.0"
] | 28 | 2020-10-14T13:23:45.000Z | 2022-02-15T09:21:17.000Z | # Generated by Django 3.1 on 2020-08-29 02:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('interview', '0003_auto_20200828_2215'),
]
operations = [
migrations.AlterModelOptions(
name='candidate',
options={'permissions... | 27.333333 | 187 | 0.634146 | 51 | 492 | 6 | 0.764706 | 0.071895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.227642 | 492 | 17 | 188 | 28.941176 | 0.726316 | 0.087398 | 0 | 0 | 1 | 0 | 0.369128 | 0.051454 | 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 |
6c6a9ec0ff57bda6a30d834b31db4633c21d695d | 538 | py | Python | pymortar/setup.py | gtfierro/mortar-frontend | 3acda7e0bcb9876783553bb46221dbdd751c036b | [
"BSD-3-Clause"
] | null | null | null | pymortar/setup.py | gtfierro/mortar-frontend | 3acda7e0bcb9876783553bb46221dbdd751c036b | [
"BSD-3-Clause"
] | null | null | null | pymortar/setup.py | gtfierro/mortar-frontend | 3acda7e0bcb9876783553bb46221dbdd751c036b | [
"BSD-3-Clause"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
print(setuptools.find_packages())
setuptools.setup(
name="pymortar",
version="0.1.4",
author="Gabe Fierro",
author_email="gtfierro@cs.berkeley.edu",
description="Python3 Mortar",
long_description=long_descrip... | 25.619048 | 50 | 0.685874 | 62 | 538 | 5.806452 | 0.741935 | 0.166667 | 0.122222 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011161 | 0.167286 | 538 | 20 | 51 | 26.9 | 0.792411 | 0 | 0 | 0 | 0 | 0 | 0.286245 | 0.04461 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.055556 | 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 |
6c6ec3b55f58e8363130c52704ed217e6c10b043 | 2,129 | py | Python | examples/Imagine/dynamical_test.py | smbct/LOLH | a9b608b500c83731db2c7dcb70e08cf9a2a94fe0 | [
"MIT"
] | 2 | 2022-01-13T18:53:03.000Z | 2022-01-13T18:53:42.000Z | examples/Imagine/dynamical_test.py | smbct/LOLH | a9b608b500c83731db2c7dcb70e08cf9a2a94fe0 | [
"MIT"
] | null | null | null | examples/Imagine/dynamical_test.py | smbct/LOLH | a9b608b500c83731db2c7dcb70e08cf9a2a94fe0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import math
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
import sys
sys.path.append('../../python')
from instance import Instance
import visualizer
import histogram
from network import GData
from network import Graph
# # read the atoms from the file
# filen... | 24.755814 | 93 | 0.717708 | 292 | 2,129 | 5.071918 | 0.34589 | 0.068872 | 0.070223 | 0.102633 | 0.253207 | 0.19919 | 0.158001 | 0.158001 | 0.158001 | 0.072924 | 0 | 0.007718 | 0.147957 | 2,129 | 85 | 94 | 25.047059 | 0.80871 | 0.552842 | 0 | 0 | 0 | 0 | 0.196035 | 0.084802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.366667 | 0 | 0.366667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
6c6ef01a96e06ba2ac916bb39ccc7706d5fb9c67 | 369 | py | Python | back-end/erasmail/emails/migrations/0043_auto_20210425_0635.py | SamirM-BE/ErasMail | 88602a039ae731ca8566c96c7c4d2635f82a07a5 | [
"Apache-2.0"
] | 7 | 2021-02-06T21:06:23.000Z | 2022-01-31T09:33:26.000Z | back-end/erasmail/emails/migrations/0043_auto_20210425_0635.py | SamirM-BE/ErasMail | 88602a039ae731ca8566c96c7c4d2635f82a07a5 | [
"Apache-2.0"
] | null | null | null | back-end/erasmail/emails/migrations/0043_auto_20210425_0635.py | SamirM-BE/ErasMail | 88602a039ae731ca8566c96c7c4d2635f82a07a5 | [
"Apache-2.0"
] | 5 | 2021-05-07T15:35:25.000Z | 2022-03-21T09:11:24.000Z | # Generated by Django 3.1.6 on 2021-04-25 06:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('emails', '0042_auto_20210423_0844'),
]
operations = [
migrations.RenameField(
model_name='emailheaders',
old_name='receiver'... | 19.421053 | 47 | 0.590786 | 39 | 369 | 5.435897 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119691 | 0.298103 | 369 | 18 | 48 | 20.5 | 0.698842 | 0.121951 | 0 | 0 | 1 | 0 | 0.167702 | 0.071429 | 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 |
6c762c914bca300332a0611f8f803ccb6bfc63eb | 344 | py | Python | compphys/__init__.py | JWKennington/CompPhys | f53ad33609738eeed81aa4b3390599668bf54017 | [
"MIT"
] | null | null | null | compphys/__init__.py | JWKennington/CompPhys | f53ad33609738eeed81aa4b3390599668bf54017 | [
"MIT"
] | null | null | null | compphys/__init__.py | JWKennington/CompPhys | f53ad33609738eeed81aa4b3390599668bf54017 | [
"MIT"
] | null | null | null | """Package-level information"""
__MAJOR__ = 0
__MINOR__ = 0
__MICRO__ = 1
__VERSION__ = (__MAJOR__, __MINOR__, __MICRO__)
__version__ = '.'.join(str(n) for n in __VERSION__)
__github_url__ = 'https://github.com/JWKennington/CompPhys'
from compphys.tests import run_tests # top level function for running test suite, an... | 34.4 | 108 | 0.761628 | 45 | 344 | 4.888889 | 0.711111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009967 | 0.125 | 344 | 9 | 109 | 38.222222 | 0.72093 | 0.276163 | 0 | 0 | 0 | 0 | 0.168724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6c7688afe80d6d50250d70eea907f63dc4193718 | 256 | py | Python | redlight/err.py | sburns/red-light | f095db0e297e932b75f2202b2e7ed622ccafbb02 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-01-16T15:57:50.000Z | 2019-01-16T15:57:50.000Z | redlight/err.py | sburns/red-light | f095db0e297e932b75f2202b2e7ed622ccafbb02 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | redlight/err.py | sburns/red-light | f095db0e297e932b75f2202b2e7ed622ccafbb02 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" err.py
Redlight errors
"""
__author__ = 'Scott Burns <scott.s.burns@vanderbilt.edu>'
__copyright__ = 'Copyright 2012 Vanderbilt University. All Rights Reserved'
class RedlightError(Exception):
pass
| 18.285714 | 75 | 0.710938 | 31 | 256 | 5.612903 | 0.870968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022831 | 0.144531 | 256 | 13 | 76 | 19.692308 | 0.77169 | 0.257813 | 0 | 0 | 0 | 0 | 0.546961 | 0.165746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6c8575693a6a23f7f57938676d0a86bc5be12318 | 1,345 | py | Python | tests/test_neo4j.py | NCATS-Gamma/robokop-messenger | 04cd6c614f0503ce7969eedab994abe6d548dde2 | [
"MIT"
] | null | null | null | tests/test_neo4j.py | NCATS-Gamma/robokop-messenger | 04cd6c614f0503ce7969eedab994abe6d548dde2 | [
"MIT"
] | 4 | 2020-03-26T12:05:56.000Z | 2020-08-04T15:38:59.000Z | tests/test_neo4j.py | NCATS-Gamma/robokop-messenger | 04cd6c614f0503ce7969eedab994abe6d548dde2 | [
"MIT"
] | null | null | null | """Test Neo4j."""
# pylint: disable=redefined-outer-name,no-name-in-module,unused-import
# ^^^ this stuff happens because of the incredible way we do pytest fixtures
import json
import os
import pytest
from .setup.neo4j_ import get_edge_properties, get_node_properties
NEO4J_URL = os.environ.get('NEO4J_URL', 'http://lo... | 26.372549 | 76 | 0.6171 | 159 | 1,345 | 5.006289 | 0.396226 | 0.040201 | 0.06407 | 0.06407 | 0.301508 | 0.301508 | 0.213568 | 0.213568 | 0.213568 | 0.213568 | 0 | 0.043478 | 0.247584 | 1,345 | 50 | 77 | 26.9 | 0.743083 | 0.16803 | 0 | 0.358974 | 0 | 0 | 0.147913 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 1 | 0.051282 | false | 0.076923 | 0.102564 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.