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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22b5b481c676cec074e5d32bb11946c197ff9e9a | 520 | py | Python | bch/gateway.py | commodo/bch-control-tool | 81abb3ee1b658b3433e85b59425dcd96d963ec84 | [
"MIT"
] | 3 | 2018-08-13T11:52:05.000Z | 2019-10-14T23:22:06.000Z | bch/gateway.py | commodo/bch-control-tool | 81abb3ee1b658b3433e85b59425dcd96d963ec84 | [
"MIT"
] | 4 | 2021-05-04T07:37:46.000Z | 2022-03-28T06:50:53.000Z | bch/gateway.py | commodo/bch-control-tool | 81abb3ee1b658b3433e85b59425dcd96d963ec84 | [
"MIT"
] | 2 | 2018-09-27T17:50:36.000Z | 2019-11-13T08:27:04.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import click
import time
@click.group(help="Gateway")
@click.pass_context
def gw(ctx):
pass
@gw.command("list")
@click.pass_context
def gw_list(ctx):
def on_message(client, topic, payload):
print(topic.split('/')[1], payload)
mqttc = ctx.obj['mqt... | 19.259259 | 72 | 0.663462 | 75 | 520 | 4.466667 | 0.506667 | 0.080597 | 0.095522 | 0.113433 | 0.292537 | 0.167164 | 0 | 0 | 0 | 0 | 0 | 0.009153 | 0.159615 | 520 | 26 | 73 | 20 | 0.757437 | 0.082692 | 0 | 0.125 | 0 | 0 | 0.178947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0.1875 | 0.125 | 0 | 0.3125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
22b74d40f5b919b067216125d80802e31f806323 | 1,735 | py | Python | nbvscodeproxy/handlers.py | bejobioinformatics/nbvscodeproxy | fbbf5fdf0c43bda43715a51cbd68791a0539c1fd | [
"BSD-3-Clause"
] | null | null | null | nbvscodeproxy/handlers.py | bejobioinformatics/nbvscodeproxy | fbbf5fdf0c43bda43715a51cbd68791a0539c1fd | [
"BSD-3-Clause"
] | null | null | null | nbvscodeproxy/handlers.py | bejobioinformatics/nbvscodeproxy | fbbf5fdf0c43bda43715a51cbd68791a0539c1fd | [
"BSD-3-Clause"
] | null | null | null | # vim: set et sw=4 ts=4:
import os
import getpass
import pwd
import tempfile
from urllib.parse import urlunparse, urlparse
from tornado import web
from notebook.utils import url_path_join as ujoin
from notebook.base.handlers import IPythonHandler
from nbserverproxy.handlers import SuperviseAndProxyHandler
class A... | 28.442623 | 97 | 0.626513 | 205 | 1,735 | 5.229268 | 0.517073 | 0.029851 | 0.027985 | 0.024254 | 0.100746 | 0.059701 | 0.059701 | 0 | 0 | 0 | 0 | 0.004556 | 0.240922 | 1,735 | 60 | 98 | 28.916667 | 0.809415 | 0.157925 | 0 | 0 | 0 | 0 | 0.120332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.051282 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22b76435ba1ef7698a53c20a249a89f31a7d67a1 | 1,560 | py | Python | article/migrations/0002_auto_20170725_0936.py | glon/django_test | 4f9d9b93886ca5f861edfcd29b06df1bcedce1ad | [
"Apache-2.0"
] | null | null | null | article/migrations/0002_auto_20170725_0936.py | glon/django_test | 4f9d9b93886ca5f861edfcd29b06df1bcedce1ad | [
"Apache-2.0"
] | null | null | null | article/migrations/0002_auto_20170725_0936.py | glon/django_test | 4f9d9b93886ca5f861edfcd29b06df1bcedce1ad | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-07-25 09:36
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
... | 38.04878 | 150 | 0.614103 | 162 | 1,560 | 5.771605 | 0.54321 | 0.034225 | 0.04492 | 0.070588 | 0.151872 | 0.151872 | 0.151872 | 0.151872 | 0.151872 | 0.151872 | 0 | 0.038396 | 0.248718 | 1,560 | 40 | 151 | 39 | 0.759386 | 0.04359 | 0 | 0.060606 | 1 | 0 | 0.097381 | 0.014103 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22b8b014fe2bb3d752be27800fa26b8d7084e8f5 | 1,080 | py | Python | examples/test_circles.py | pauleveritt/arcade | a3f31bd74c17e18cdc95ed5f0b350459f31af29e | [
"MIT"
] | 1 | 2021-03-11T09:08:56.000Z | 2021-03-11T09:08:56.000Z | examples/test_circles.py | pauleveritt/arcade | a3f31bd74c17e18cdc95ed5f0b350459f31af29e | [
"MIT"
] | null | null | null | examples/test_circles.py | pauleveritt/arcade | a3f31bd74c17e18cdc95ed5f0b350459f31af29e | [
"MIT"
] | null | null | null | import arcade
def on_draw(delta_time):
arcade.start_render()
# Appear in first column
arcade.draw_circle_filled(100, 100, 50, arcade.color.YELLOW)
# Appear in second column
arcade.draw_small_filled_circle(300, 100, arcade.color.YELLOW)
arcade.draw_medium_filled_circle(300, 300, arcade.color.... | 30 | 71 | 0.675926 | 143 | 1,080 | 4.909091 | 0.314685 | 0.156695 | 0.217949 | 0.131054 | 0.368946 | 0.094017 | 0 | 0 | 0 | 0 | 0 | 0.081464 | 0.215741 | 1,080 | 35 | 72 | 30.857143 | 0.747344 | 0.086111 | 0 | 0 | 0 | 0 | 0.041752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.1 | 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 |
22b9b5dc0fbee3e2bd85d52cf57705e76397ec94 | 1,319 | py | Python | tests/external/test_external.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 206 | 2018-06-28T00:28:47.000Z | 2022-03-29T05:17:03.000Z | tests/external/test_external.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 670 | 2018-07-23T11:02:24.000Z | 2022-03-30T07:28:05.000Z | tests/external/test_external.py | dina-fouad/pyccel | f4d919e673b400442b9c7b81212b6fbef749c7b7 | [
"MIT"
] | 19 | 2019-09-19T06:01:00.000Z | 2022-03-29T05:17:06.000Z | # pylint: disable=missing-function-docstring, missing-module-docstring/
# coding: utf-8
# TODO test if compiler exists before running mpi, openacc
# execute the binary file
import pytest
from pyccel.codegen.pipeline import execute_pyccel
import os
def get_files_from_folder(foldername):
base_dir = os.path.d... | 28.673913 | 76 | 0.605762 | 164 | 1,319 | 4.658537 | 0.432927 | 0.04712 | 0.062827 | 0.094241 | 0.143979 | 0.104712 | 0.104712 | 0.104712 | 0 | 0 | 0 | 0.012082 | 0.18423 | 1,319 | 45 | 77 | 29.311111 | 0.697955 | 0.128127 | 0 | 0.222222 | 0 | 0 | 0.234194 | 0.058771 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.259259 | 0.296296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
22bc18bb02fee54f65a30514a84699036516e588 | 7,279 | py | Python | modules/s3db/dvr.py | samsruti/eden | 8f6bdd070fa8435dafea6e8fb65db246280bb3ea | [
"MIT"
] | null | null | null | modules/s3db/dvr.py | samsruti/eden | 8f6bdd070fa8435dafea6e8fb65db246280bb3ea | [
"MIT"
] | null | null | null | modules/s3db/dvr.py | samsruti/eden | 8f6bdd070fa8435dafea6e8fb65db246280bb3ea | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""" Sahana Eden Disaster Victim Registration Model
@copyright: 2012-15 (c) Sahana Software Foundation
@license: MIT
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... | 41.124294 | 120 | 0.47218 | 700 | 7,279 | 4.737143 | 0.351429 | 0.04222 | 0.016888 | 0.019904 | 0.141134 | 0.103739 | 0.060917 | 0.045235 | 0.028951 | 0.028951 | 0 | 0.008253 | 0.400742 | 7,279 | 176 | 121 | 41.357955 | 0.751949 | 0.279571 | 0 | 0.110092 | 0 | 0 | 0.084352 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.018349 | false | 0 | 0.036697 | 0 | 0.091743 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
22bdd7a6e32fd5b70a4c6f8f717555de16a190c3 | 827 | py | Python | craid/bgsBuddy/test/test_DailyPlan.py | HausReport/ClubRaiders | 88bd64d2512302ca2b391b48979b6e88b092eb92 | [
"BSD-3-Clause"
] | null | null | null | craid/bgsBuddy/test/test_DailyPlan.py | HausReport/ClubRaiders | 88bd64d2512302ca2b391b48979b6e88b092eb92 | [
"BSD-3-Clause"
] | 2 | 2020-05-28T13:30:08.000Z | 2020-06-02T14:12:04.000Z | craid/bgsBuddy/test/test_DailyPlan.py | HausReport/ClubRaiders | 88bd64d2512302ca2b391b48979b6e88b092eb92 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2020 Club Raiders Project
# https://github.com/HausReport/ClubRaiders
#
# SPDX-License-Identifier: BSD-3-Clause
from pprint import pprint
from unittest import TestCase
from craid.bgsBuddy import GlobalDictionaries
from craid.bgsBuddy.helpers.DailyPlan import DailyPlan
class TestDailyPlan(TestCa... | 29.535714 | 108 | 0.726723 | 90 | 827 | 6.633333 | 0.622222 | 0.140704 | 0.056951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05052 | 0.186215 | 827 | 27 | 109 | 30.62963 | 0.836553 | 0.14873 | 0 | 0 | 0 | 0 | 0.071736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.235294 | 0 | 0.470588 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22be28b7db073e46223a1a0366c930e7a0008fcc | 1,539 | py | Python | tefrontend/blog/migrations/0001_initial.py | TElphee01/TannerElphee.com1 | e286be807b2d2169f0bd411d1c5a2fb112b01bdd | [
"BSD-3-Clause"
] | null | null | null | tefrontend/blog/migrations/0001_initial.py | TElphee01/TannerElphee.com1 | e286be807b2d2169f0bd411d1c5a2fb112b01bdd | [
"BSD-3-Clause"
] | 4 | 2022-02-11T13:34:44.000Z | 2022-03-01T12:26:19.000Z | tefrontend/blog/migrations/0001_initial.py | TElphee01/TannerElphee.com1 | e286be807b2d2169f0bd411d1c5a2fb112b01bdd | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.2.9 on 2021-11-27 17:57
import autoslug.fields
import ckeditor.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BlogPost',
fi... | 41.594595 | 129 | 0.603639 | 156 | 1,539 | 5.807692 | 0.474359 | 0.145695 | 0.082781 | 0.056291 | 0.06181 | 0.06181 | 0 | 0 | 0 | 0 | 0 | 0.015707 | 0.255361 | 1,539 | 36 | 130 | 42.75 | 0.774869 | 0.02924 | 0 | 0 | 1 | 0 | 0.142761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.241379 | 0 | 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 |
22c140a3189ea4af7dda7305281c1635bcf0956f | 257 | py | Python | Dataset/Leetcode/train/102/31.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/102/31.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/102/31.py | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution:
def XXX(self, root: TreeNode) -> List[List[int]]:
ans, d = [], [root] if root else []
while d:
ans.append([t.val for t in d])
d = [r for t in d for r in (t.left, t.right) if r]
return ans
| 28.555556 | 62 | 0.498054 | 43 | 257 | 2.976744 | 0.534884 | 0.0625 | 0.09375 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.361868 | 257 | 8 | 63 | 32.125 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 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 |
22c9acd8ab81fc0006e494b6959e16871fa25192 | 337 | py | Python | 13.Learning Python Libraries/01.Learning Python Standard Library - KH/01.Python Built In/01_04_Range_List.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 3 | 2020-06-01T04:17:18.000Z | 2020-12-18T03:05:55.000Z | 13.Learning Python Libraries/01.Learning Python Standard Library - KH/01.Python Built In/01_04_Range_List.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 1 | 2020-04-25T08:01:59.000Z | 2020-04-25T08:01:59.000Z | 13.Learning Python Libraries/01.Learning Python Standard Library - KH/01.Python Built In/01_04_Range_List.py | ptyadana/python-dojo | 98c7234b84f0afea99a091c7198342d66bbdff5b | [
"MIT"
] | 7 | 2020-04-26T10:02:36.000Z | 2021-06-08T05:12:46.000Z | # Range -> range instance that holds all nums counting by one between 0 and first input
# List -> lists numbers from the inputted tuple
numberedContestants = range(30)
print(list(numberedContestants))
for c in list(numberedContestants):
print(f"Contestant {c} is here.")
lucky_winners = range(7, 30, 5)
print(lis... | 28.083333 | 87 | 0.753709 | 49 | 337 | 5.142857 | 0.714286 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024476 | 0.151335 | 337 | 12 | 88 | 28.083333 | 0.856643 | 0.388724 | 0 | 0 | 0 | 0 | 0.112745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
22ccd65a0b17bebd6d4fcf811e954c342cd4231f | 646 | py | Python | biosample_print.py | ENCODE-DCC/encodeOntologies | b4ba765cb175161be3380fe1b737f950a6e1be0b | [
"MIT"
] | 1 | 2018-01-08T09:05:11.000Z | 2018-01-08T09:05:11.000Z | biosample_print.py | ENCODE-DCC/encodeOntologies | b4ba765cb175161be3380fe1b737f950a6e1be0b | [
"MIT"
] | null | null | null | biosample_print.py | ENCODE-DCC/encodeOntologies | b4ba765cb175161be3380fe1b737f950a6e1be0b | [
"MIT"
] | null | null | null | from pyelasticsearch import ElasticSearch
#make connection to elastic search
connection = ElasticSearch('http://demo-n.encodedcc.org:9200')
query = {'query': {'match_all': {}}, 'fields': ['accession', 'biosample_term_name', 'biosample_term_id', 'organ_slims', 'system_slims']}
# index with no develops from at all 'on... | 43.066667 | 185 | 0.682663 | 83 | 646 | 5.156627 | 0.53012 | 0.121495 | 0.079439 | 0.088785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014109 | 0.122291 | 646 | 14 | 186 | 46.142857 | 0.740741 | 0.122291 | 0 | 0 | 0 | 0 | 0.39469 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
22cedc31029f46fe5852234974f022286755b916 | 415 | py | Python | cas_provider/__init__.py | fnp/django-cas-provider | 122f2f5678cfe723a44c140206da2cb9117b46ee | [
"BSD-3-Clause"
] | null | null | null | cas_provider/__init__.py | fnp/django-cas-provider | 122f2f5678cfe723a44c140206da2cb9117b46ee | [
"BSD-3-Clause"
] | null | null | null | cas_provider/__init__.py | fnp/django-cas-provider | 122f2f5678cfe723a44c140206da2cb9117b46ee | [
"BSD-3-Clause"
] | 1 | 2015-10-06T14:29:07.000Z | 2015-10-06T14:29:07.000Z | from django.conf import settings
__all__ = []
_DEFAULTS = {
'CAS_TICKET_EXPIRATION': 5, # In minutes
'CAS_CUSTOM_ATTRIBUTES_FORMATER': 'cas_provider.attribute_formatters.jasig',
'CAS_AUTO_REDIRECT_AFTER_LOGOUT': False,
}
for key, value in _DEFAULTS.items():
try:
getattr(settings, key)
exc... | 23.055556 | 80 | 0.696386 | 47 | 415 | 5.787234 | 0.765957 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003049 | 0.209639 | 415 | 17 | 81 | 24.411765 | 0.82622 | 0.024096 | 0 | 0 | 0 | 0 | 0.297767 | 0.297767 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
22d27a0cb3430735ad40a284a9c467df246e3d2b | 542 | py | Python | stac_pydantic/utils.py | colecloudtostreet/stac-pydantic | c36633f877fc23780371dad7acbb3ae9d5516918 | [
"MIT"
] | null | null | null | stac_pydantic/utils.py | colecloudtostreet/stac-pydantic | c36633f877fc23780371dad7acbb3ae9d5516918 | [
"MIT"
] | null | null | null | stac_pydantic/utils.py | colecloudtostreet/stac-pydantic | c36633f877fc23780371dad7acbb3ae9d5516918 | [
"MIT"
] | null | null | null | from enum import Enum
from typing import Dict, Optional, Type
from pydantic import BaseModel
class AutoValueEnum(Enum):
def _generate_next_value_(name, start, count, last_values):
return name
def decompose_model(model: Type[BaseModel]) -> Dict:
"""Decompose a pydantic model into a dictionary of mod... | 25.809524 | 70 | 0.667897 | 72 | 542 | 4.847222 | 0.541667 | 0.068768 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239852 | 542 | 20 | 71 | 27.1 | 0.847087 | 0.110701 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.214286 | 0.071429 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22d68a9345c3419b6a8adf7c3024d207d621ed7e | 28,021 | py | Python | HighLevelApi/Ngpf/Python/Link Aggregation/LACP_sample_hlpy_script.py | NickKeating/IxNetwork | 0a54c0b8d1a1664d2826ad20a826ef384c48432f | [
"MIT"
] | 46 | 2018-01-24T06:43:45.000Z | 2022-03-17T07:27:08.000Z | HighLevelApi/Ngpf/Python/Link Aggregation/LACP_sample_hlpy_script.py | NickKeating/IxNetwork | 0a54c0b8d1a1664d2826ad20a826ef384c48432f | [
"MIT"
] | 104 | 2018-03-16T18:16:29.000Z | 2022-03-17T07:16:43.000Z | HighLevelApi/Ngpf/Python/Link Aggregation/LACP_sample_hlpy_script.py | NickKeating/IxNetwork | 0a54c0b8d1a1664d2826ad20a826ef384c48432f | [
"MIT"
] | 58 | 2018-01-23T05:54:20.000Z | 2022-03-30T22:55:20.000Z |
################################################################################
# Version 1.0 $Revision: 1 $ #
# #
# Copyright 1997 - 2015 by IXIA ... | 45.636808 | 92 | 0.476857 | 2,619 | 28,021 | 4.88278 | 0.147385 | 0.021896 | 0.021583 | 0.016265 | 0.708242 | 0.694792 | 0.67188 | 0.642947 | 0.633485 | 0.592118 | 0 | 0.031744 | 0.301845 | 28,021 | 613 | 93 | 45.711256 | 0.621939 | 0.282645 | 0 | 0.617414 | 0 | 0.010554 | 0.27118 | 0.026581 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.01847 | null | null | 0.174142 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22dd78aa094571cf1aa256e88145b96820aaab42 | 2,764 | py | Python | Scripts/FistBump/bt_controls.py | eliddell1/Project-Blue-Fist | 82ec5c2ac58b5c7169efac36db32572f8b8cee70 | [
"MIT"
] | 29 | 2018-11-24T02:57:49.000Z | 2022-01-21T12:06:50.000Z | Scripts/FistBump/bt_controls.py | eliddell1/Project-Blue-Fist | 82ec5c2ac58b5c7169efac36db32572f8b8cee70 | [
"MIT"
] | null | null | null | Scripts/FistBump/bt_controls.py | eliddell1/Project-Blue-Fist | 82ec5c2ac58b5c7169efac36db32572f8b8cee70 | [
"MIT"
] | 2 | 2020-01-10T08:04:01.000Z | 2022-03-08T13:30:09.000Z | # author Eliddell1
# script for ble communication between fistbump device and android app
# Nov-2018 copywrite
from bluetooth import *
import os
import fnmatch
bashStartBTCommand = "echo 'power on\ndiscoverable on\npairable on\nagent NoInputNoOutput\ndefault-agent\nquit' | bluetoothctl"
os.system(bashStartBTCommand)... | 30.373626 | 127 | 0.667149 | 323 | 2,764 | 5.622291 | 0.436533 | 0.039648 | 0.017621 | 0.039648 | 0.226872 | 0.226872 | 0.180617 | 0.180617 | 0.050661 | 0.050661 | 0 | 0.027416 | 0.195007 | 2,764 | 90 | 128 | 30.711111 | 0.788764 | 0.055355 | 0 | 0.15942 | 0 | 0.014493 | 0.27025 | 0.096353 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014493 | 0.043478 | null | null | 0.144928 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22e1f1eab538dde9285423a367de5a52805e120b | 8,691 | py | Python | msl/equipment/resources/picotech/picoscope/ps4000.py | MSLNZ/msl-equipment | ce87e1e5ad302729dcbdab6cdecb346845066577 | [
"MIT"
] | 9 | 2019-07-26T05:07:58.000Z | 2022-03-09T08:45:23.000Z | msl/equipment/resources/picotech/picoscope/ps4000.py | MSLNZ/msl-equipment | ce87e1e5ad302729dcbdab6cdecb346845066577 | [
"MIT"
] | 7 | 2018-06-24T09:14:51.000Z | 2022-01-16T20:16:33.000Z | msl/equipment/resources/picotech/picoscope/ps4000.py | MSLNZ/msl-equipment | ce87e1e5ad302729dcbdab6cdecb346845066577 | [
"MIT"
] | 7 | 2019-02-07T22:08:37.000Z | 2022-03-09T08:54:04.000Z | """
A wrapper around the PicoScope ps4000 SDK.
"""
from ctypes import c_int8, c_int16, c_uint32, c_int64, byref, string_at, addressof
from msl.equipment.resources import register
from .picoscope_api import PicoScopeApi
from .functions import ps4000Api_funcptrs
from .. import c_enum
@register(manufacturer=r'Pico\s*Te... | 45.265625 | 117 | 0.662179 | 1,099 | 8,691 | 5.008189 | 0.258417 | 0.032703 | 0.027616 | 0.010901 | 0.478924 | 0.430959 | 0.42242 | 0.394622 | 0.356468 | 0.329578 | 0 | 0.040352 | 0.267173 | 8,691 | 191 | 118 | 45.502618 | 0.823834 | 0.334829 | 0 | 0.061856 | 0 | 0 | 0.006494 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14433 | false | 0 | 0.051546 | 0 | 0.56701 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22e7c292edef25d59afa8877e2df7a5cf9c32b86 | 2,345 | py | Python | migrations/versions/db2b53362b1c_.py | msusicky/ockovani-covid | 2835943b5796b04a3542782ecda125b6766cd317 | [
"Apache-2.0"
] | 62 | 2021-01-16T18:02:57.000Z | 2022-01-12T21:10:34.000Z | migrations/versions/db2b53362b1c_.py | msusicky/ockovani-covid | 2835943b5796b04a3542782ecda125b6766cd317 | [
"Apache-2.0"
] | 224 | 2021-01-16T19:11:01.000Z | 2022-03-15T19:42:37.000Z | migrations/versions/db2b53362b1c_.py | msusicky/ockovani-covid | 2835943b5796b04a3542782ecda125b6766cd317 | [
"Apache-2.0"
] | 13 | 2021-01-16T18:38:11.000Z | 2021-07-02T20:09:47.000Z | """empty message
Revision ID: db2b53362b1c
Revises: d99e9c5e147a
Create Date: 2021-03-15 21:32:27.792471
"""
from alembic import op
import sqlalchemy as sa
import csv
from app.models import ZdravotnickeStredisko
# revision identifiers, used by Alembic.
revision = 'db2b53362b1c'
down_revision = 'd99e9c5e147a'
branch_... | 40.431034 | 400 | 0.6742 | 311 | 2,345 | 4.945338 | 0.340836 | 0.083225 | 0.136541 | 0.182055 | 0.371261 | 0.371261 | 0.187906 | 0.057217 | 0 | 0 | 0 | 0.039 | 0.147122 | 2,345 | 57 | 401 | 41.140351 | 0.73 | 0.395736 | 0 | 0 | 0 | 0 | 0.178312 | 0.085153 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
22e94c7e923258cb28fbd64e1b0317a70f990d9a | 702 | py | Python | metadata-ingestion/tests/unit/test_oracle_source.py | bi-hanbin/datahub | a6dc9e0dc0946bcc8f6bdcb6878520581fe05616 | [
"Apache-2.0"
] | 1 | 2021-07-18T08:22:00.000Z | 2021-07-18T08:22:00.000Z | metadata-ingestion/tests/unit/test_oracle_source.py | RocMarshal/datahub | 973c08dee8ccf1661b7dff406b4e558747e4801e | [
"Apache-2.0"
] | 1 | 2021-07-14T17:04:42.000Z | 2021-07-14T17:04:42.000Z | metadata-ingestion/tests/unit/test_oracle_source.py | wan54/datahub | 02deab04be7181d02fd7add52f186c3ec4424dbd | [
"Apache-2.0"
] | 1 | 2021-07-09T14:30:49.000Z | 2021-07-09T14:30:49.000Z | import pytest
from datahub.ingestion.source.oracle import OracleConfig
def test_oracle_config():
base_config = {
"username": "user",
"password": "password",
"host_port": "host:1521",
}
config = OracleConfig.parse_obj(
{
**base_config,
"service_name... | 21.9375 | 75 | 0.524217 | 63 | 702 | 5.603175 | 0.539683 | 0.084986 | 0.135977 | 0.147309 | 0.203966 | 0.203966 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.351852 | 702 | 31 | 76 | 22.645161 | 0.745055 | 0 | 0 | 0.230769 | 0 | 0 | 0.216524 | 0.088319 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.038462 | false | 0.076923 | 0.076923 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22e962e0b92df9331fbf44810e917ba242975062 | 7,518 | py | Python | sdk/python/pulumi_gcp/bigtable/table.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/bigtable/table.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/bigtable/table.py | dimpu47/pulumi-gcp | 38355de300a5768e11c49d344a8165ba0735deed | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 47.283019 | 246 | 0.651104 | 911 | 7,518 | 5.170143 | 0.186608 | 0.070064 | 0.053503 | 0.035669 | 0.625265 | 0.561783 | 0.549045 | 0.53121 | 0.516773 | 0.501911 | 0 | 0.000179 | 0.255653 | 7,518 | 158 | 247 | 47.582278 | 0.841494 | 0.385076 | 0 | 0.213483 | 1 | 0 | 0.136021 | 0.021452 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101124 | false | 0.011236 | 0.078652 | 0.022472 | 0.280899 | 0 | 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 |
22e9a388a7f51e2398862cd01b6003cacd94a8a9 | 4,198 | py | Python | flow/scenarios/merge/gen.py | pcmoritz/flow | bc97132e9e2d05262bb6bbad5bda173fd9f4ae92 | [
"MIT"
] | null | null | null | flow/scenarios/merge/gen.py | pcmoritz/flow | bc97132e9e2d05262bb6bbad5bda173fd9f4ae92 | [
"MIT"
] | null | null | null | flow/scenarios/merge/gen.py | pcmoritz/flow | bc97132e9e2d05262bb6bbad5bda173fd9f4ae92 | [
"MIT"
] | null | null | null | """Contains the merge generator class."""
from flow.core.generator import Generator
from numpy import pi, sin, cos
INFLOW_EDGE_LEN = 100 # length of the inflow edges (needed for resets)
VEHICLE_LENGTH = 5
class MergeGenerator(Generator):
"""Generator for merge networks."""
def __init__(self, net_params, ... | 31.096296 | 77 | 0.491901 | 401 | 4,198 | 4.902743 | 0.187032 | 0.091556 | 0.1353 | 0.178026 | 0.418108 | 0.394201 | 0.294507 | 0.294507 | 0.294507 | 0.294507 | 0 | 0.004869 | 0.363983 | 4,198 | 134 | 78 | 31.328358 | 0.731461 | 0.044069 | 0 | 0.396396 | 0 | 0 | 0.175289 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045045 | false | 0 | 0.018018 | 0 | 0.108108 | 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 |
22eadbf5710d4bd4a5c052482d2fa37c2d563e34 | 4,148 | py | Python | jadoc/word/cform.py | poyo46/jadoc | 06645db474d2ad264f7a63cfa2f39584869ccf39 | [
"Apache-2.0"
] | null | null | null | jadoc/word/cform.py | poyo46/jadoc | 06645db474d2ad264f7a63cfa2f39584869ccf39 | [
"Apache-2.0"
] | null | null | null | jadoc/word/cform.py | poyo46/jadoc | 06645db474d2ad264f7a63cfa2f39584869ccf39 | [
"Apache-2.0"
] | null | null | null | from abc import ABCMeta, abstractmethod
from typing import List, Type
from .pos import Adjective, Auxiliary
class ConjugationForm(metaclass=ABCMeta):
"""
See Also
--------
``https://www.sketchengine.eu/tagset-jp-mecab/``
"""
def __init__(self, value: str) -> None:
self.value = value
... | 22.791209 | 85 | 0.630665 | 543 | 4,148 | 4.546961 | 0.189687 | 0.076954 | 0.138518 | 0.096395 | 0.54678 | 0.476306 | 0.462535 | 0.462535 | 0.44917 | 0.434589 | 0 | 0 | 0.254098 | 4,148 | 181 | 86 | 22.917127 | 0.797996 | 0.049662 | 0 | 0.27957 | 0 | 0 | 0.01714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172043 | false | 0.010753 | 0.032258 | 0.096774 | 0.505376 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
22ee343fc5684437cf00776836c0e2b6e788c9e9 | 2,228 | py | Python | scripts/wdparser.py | adriankumpf/Amatyr | 442f8ddb166790a9b7c189250ac17e657fef56e6 | [
"BSD-3-Clause"
] | 88 | 2015-01-01T11:27:31.000Z | 2021-11-17T09:31:59.000Z | scripts/wdparser.py | adriankumpf/Amatyr | 442f8ddb166790a9b7c189250ac17e657fef56e6 | [
"BSD-3-Clause"
] | 3 | 2016-02-26T09:46:43.000Z | 2017-05-26T14:34:07.000Z | scripts/wdparser.py | adriankumpf/Amatyr | 442f8ddb166790a9b7c189250ac17e657fef56e6 | [
"BSD-3-Clause"
] | 33 | 2015-01-07T02:43:29.000Z | 2020-06-27T23:28:01.000Z | #!/usr/bin/python
# -*- coding: UTF-8
# Author Tor Hveem <thveem>
#
# Simple Python script for polling weather data from a Weather Display web page and inserto into postgresqldb
#
import urllib2
import datetime
import psycopg2
import time
import sys
'''12345 8.7 10.4 226 4.7 63 979.1 0.0 68.6 68.6 0.000 0.000 22.0... | 41.259259 | 778 | 0.641831 | 524 | 2,228 | 2.683206 | 0.301527 | 0.065434 | 0.068279 | 0.076814 | 0.1266 | 0.120199 | 0.038407 | 0.019915 | 0.014225 | 0.014225 | 0 | 0.25594 | 0.168761 | 2,228 | 53 | 779 | 42.037736 | 0.50324 | 0.129713 | 0 | 0 | 0 | 0.033333 | 0.260453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.033333 | 0.166667 | 0 | 0.166667 | 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 |
22fe1a77ceb1fb9bb18a89fb29b1dddaa0fe6e92 | 3,578 | py | Python | flaskapp/app/views/auth.py | agusmag/wallet-centinel | 6eaa520194652bb06e855d835c3adc45d8132e47 | [
"MIT"
] | null | null | null | flaskapp/app/views/auth.py | agusmag/wallet-centinel | 6eaa520194652bb06e855d835c3adc45d8132e47 | [
"MIT"
] | null | null | null | flaskapp/app/views/auth.py | agusmag/wallet-centinel | 6eaa520194652bb06e855d835c3adc45d8132e47 | [
"MIT"
] | null | null | null | from flask import Blueprint, render_template, redirect, url_for, request, flash
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import login_user, logout_user, login_required
from sqlalchemy import or_
# Forms
from app.forms import LoginForm, SignupForm
# Models
from app.mo... | 33.754717 | 184 | 0.69033 | 463 | 3,578 | 5.205184 | 0.315335 | 0.023237 | 0.040664 | 0.049793 | 0.307054 | 0.255602 | 0.151867 | 0.13029 | 0.13029 | 0.043983 | 0 | 0.005285 | 0.206819 | 3,578 | 105 | 185 | 34.07619 | 0.843904 | 0.148127 | 0 | 0.301587 | 1 | 0 | 0.127596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0.047619 | 0.111111 | 0 | 0.349206 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe01b68f8b3fa12d285fe3929c8dcf5a71388602 | 7,566 | py | Python | src/test_codebook.py | massich/oct_image_classif | e5d992fef8db33f6aeda0a29dc7b4075d9e94a56 | [
"MIT"
] | null | null | null | src/test_codebook.py | massich/oct_image_classif | e5d992fef8db33f6aeda0a29dc7b4075d9e94a56 | [
"MIT"
] | null | null | null | src/test_codebook.py | massich/oct_image_classif | e5d992fef8db33f6aeda0a29dc7b4075d9e94a56 | [
"MIT"
] | null | null | null | """Testing for Code Book"""
# Get the correct unittest library
try:
import unittest2 as unittest
except ImportError:
import unittest
from codebook import *
## -----
import sys
import numpy as np
from sklearn.datasets.samples_generator import make_blobs
from sklearn.utils.testing import assert_equal
# from... | 38.020101 | 92 | 0.627676 | 1,055 | 7,566 | 4.263507 | 0.227488 | 0.070031 | 0.046243 | 0.061361 | 0.386616 | 0.373499 | 0.290796 | 0.22699 | 0.176745 | 0.155847 | 0 | 0.028366 | 0.263812 | 7,566 | 198 | 93 | 38.212121 | 0.779174 | 0.686889 | 0 | 0 | 0 | 0 | 0.003579 | 0 | 0 | 0 | 0 | 0.005051 | 0.238095 | 1 | 0.047619 | false | 0 | 0.333333 | 0 | 0.404762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
fe06e7bc8297c583ab3d041aa69ae5d02ad050c0 | 1,099 | py | Python | partially_correlated_channels/re-mimo/NumTransmitterEncoding.py | dannis999/RE-MIMO | 199ddec7f142ba5bd87e76e0b5f7790c64e69b0c | [
"MIT"
] | 10 | 2020-08-15T02:46:44.000Z | 2021-12-12T10:56:03.000Z | partially_correlated_channels/re-mimo/NumTransmitterEncoding.py | dannis999/RE-MIMO | 199ddec7f142ba5bd87e76e0b5f7790c64e69b0c | [
"MIT"
] | null | null | null | partially_correlated_channels/re-mimo/NumTransmitterEncoding.py | dannis999/RE-MIMO | 199ddec7f142ba5bd87e76e0b5f7790c64e69b0c | [
"MIT"
] | 4 | 2020-10-07T02:27:48.000Z | 2022-02-03T15:28:34.000Z | import torch
import numpy as np
import torch.nn as nn
import math
class NumTransmitterEncoding(nn.Module):
def __init__(self, d_model, d_transmitter_encoding, max_transmitter, dropout=0.0):
super(NumTransmitterEncoding, self).__init__()
self.dropout = nn.Dropout(p=dropout)
self.d_transmitter_encoding = d_trans... | 42.269231 | 144 | 0.758872 | 168 | 1,099 | 4.702381 | 0.303571 | 0.216456 | 0.177215 | 0.060759 | 0.146835 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019368 | 0.10737 | 1,099 | 26 | 145 | 42.269231 | 0.785933 | 0 | 0 | 0 | 0 | 0 | 0.001818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe0b043ade5fd8a41608f3b248efd8070d784055 | 1,287 | py | Python | var/spack/repos/builtin/packages/r-exactextractr/package.py | renjithravindrankannath/spack | 043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-exactextractr/package.py | renjithravindrankannath/spack | 043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/r-exactextractr/package.py | renjithravindrankannath/spack | 043b2cbb7c99d69a373f3ecbf35bc3b4638bcf85 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 2 | 2019-02-08T20:37:20.000Z | 2019-03-31T15:19:26.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class RExactextractr(RPackage):
"""Fast Extraction from Raster Datasets using Polygons.
... | 44.37931 | 95 | 0.733489 | 149 | 1,287 | 6.295302 | 0.516779 | 0.057569 | 0.053305 | 0.081023 | 0.098081 | 0.098081 | 0.051173 | 0 | 0 | 0 | 0 | 0.213463 | 0.122766 | 1,287 | 28 | 96 | 45.964286 | 0.617361 | 0.299922 | 0 | 0 | 0 | 0 | 0.522624 | 0.361991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
fe10d370d6018fa9a487a2c31c58c8f175e02674 | 1,455 | py | Python | __init__.py | oditorium/mdown | 8ee629d647fec770d3a59bf02093f89dc4779f55 | [
"MIT"
] | null | null | null | __init__.py | oditorium/mdown | 8ee629d647fec770d3a59bf02093f89dc4779f55 | [
"MIT"
] | null | null | null | __init__.py | oditorium/mdown | 8ee629d647fec770d3a59bf02093f89dc4779f55 | [
"MIT"
] | null | null | null | """a Django app defining markdown processing filters and tags for templates
USAGE
------------
Include this app into your installed apps. Then you can use
code like the one below in your templates
{% load markdown_tags %}
AN EXAMPLE FOR THE USE OF THE MARKDOWNF FILTER<br/>
{{ a_safe_variable_containi... | 25.086207 | 83 | 0.735395 | 212 | 1,455 | 4.910377 | 0.561321 | 0.034582 | 0.034582 | 0.028818 | 0.044188 | 0.044188 | 0.044188 | 0 | 0 | 0 | 0 | 0.011925 | 0.193127 | 1,455 | 58 | 84 | 25.086207 | 0.874787 | 0.887285 | 0 | 0 | 0 | 0 | 0.471338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe125c75ebbb4d9305be4b5f384dde332c965b7f | 3,105 | py | Python | tests/diffex/diffexSrc/src/DiffEx_tests.py | genepattern/docker-aws-python36 | 445fca376b87f7ca9dd8954027bd1a39508c1af1 | [
"BSD-4-Clause-UC"
] | null | null | null | tests/diffex/diffexSrc/src/DiffEx_tests.py | genepattern/docker-aws-python36 | 445fca376b87f7ca9dd8954027bd1a39508c1af1 | [
"BSD-4-Clause-UC"
] | 6 | 2021-03-25T21:44:45.000Z | 2021-10-08T13:47:58.000Z | tests/diffex/diffexSrc/src/DiffEx_tests.py | genepattern/docker-aws-python36 | 445fca376b87f7ca9dd8954027bd1a39508c1af1 | [
"BSD-4-Clause-UC"
] | null | null | null | import os
import sys
from subprocess import call
from subprocess import PIPE
import pandas as pd
from os.path import isfile
WORKING_DIR = os.path.dirname(os.path.realpath(sys.argv[0]))
ROOT = os.path.join(WORKING_DIR, '..')
TASKLIB = os.path.join(ROOT, 'src/')
INPUT_FILE_DIRECTORIES = os.path.join(ROOT, 'data/')
# WO... | 44.357143 | 114 | 0.721095 | 465 | 3,105 | 4.67957 | 0.255914 | 0.051471 | 0.051471 | 0.038603 | 0.642004 | 0.550551 | 0.46875 | 0.438419 | 0.403952 | 0.403952 | 0 | 0.00562 | 0.140419 | 3,105 | 69 | 115 | 45 | 0.809667 | 0.134622 | 0 | 0.160714 | 0 | 0 | 0.36785 | 0 | 0 | 0 | 0 | 0.014493 | 0 | 1 | 0 | false | 0 | 0.107143 | 0 | 0.107143 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
fe143f3c908adae208b073ca3923e2e6170cde22 | 596 | py | Python | konfera/migrations/0002_schedule_event.py | pyconsk/django-konfera | 1072778e109d67bbc49fe3b06fa8ab29d6131eea | [
"MIT"
] | 69 | 2016-09-11T08:49:06.000Z | 2022-02-04T12:38:57.000Z | konfera/migrations/0002_schedule_event.py | pyconsk/django-konfera | 1072778e109d67bbc49fe3b06fa8ab29d6131eea | [
"MIT"
] | 300 | 2016-09-09T14:53:49.000Z | 2018-01-22T15:10:28.000Z | konfera/migrations/0002_schedule_event.py | pyconsk/django-konfera | 1072778e109d67bbc49fe3b06fa8ab29d6131eea | [
"MIT"
] | 72 | 2016-09-13T13:28:59.000Z | 2022-01-20T20:01:33.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-05 15:11
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('konfera', '0001_initial'),
]
operations = [
... | 25.913043 | 138 | 0.645973 | 68 | 596 | 5.514706 | 0.647059 | 0.064 | 0.074667 | 0.117333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048035 | 0.231544 | 596 | 22 | 139 | 27.090909 | 0.770742 | 0.114094 | 0 | 0 | 1 | 0 | 0.102857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
fe1459513c9ed5087b556de99a7cfb7e30a70b3e | 1,572 | py | Python | pi.py | azyxb/info | d34555abe55895751272e0ad129c7fb79f9613b0 | [
"MIT"
] | 2 | 2019-12-14T10:54:38.000Z | 2020-03-30T22:57:11.000Z | pi.py | azyxb/info | d34555abe55895751272e0ad129c7fb79f9613b0 | [
"MIT"
] | null | null | null | pi.py | azyxb/info | d34555abe55895751272e0ad129c7fb79f9613b0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
def calcPi(limit): # Generator function
"""
Prints out the digits of PI
until it reaches the given limit
"""
q, r, t, k, n, l = 1, 0, 1, 1, 3, 3
decimal = limit
counter = 0
while counter != decimal + 1:
if 4 * q + r - t < n * t:
... | 25.770492 | 63 | 0.352417 | 172 | 1,572 | 3.162791 | 0.412791 | 0.014706 | 0.016544 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045134 | 0.548982 | 1,572 | 60 | 64 | 26.2 | 0.722144 | 0.183206 | 0 | 0.105263 | 0 | 0 | 0.043825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0 | 0 | 0.052632 | 0.078947 | 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 |
fe1d636ad0348b39e03e877605f588818b8e548f | 444 | py | Python | ch7/while.py | montalvas/Python-Crash-Course | fd657f979017985230748674c9048287f7609145 | [
"MIT"
] | null | null | null | ch7/while.py | montalvas/Python-Crash-Course | fd657f979017985230748674c9048287f7609145 | [
"MIT"
] | null | null | null | ch7/while.py | montalvas/Python-Crash-Course | fd657f979017985230748674c9048287f7609145 | [
"MIT"
] | null | null | null | '''
prompt = "\nTell me something, and i will repeat it back to you."
prompt += "\n'quit' to end the program."
prompt += "\n"
message = ""
active = True
while active:
message = input(prompt)
if message == 'quit':
active = false
else:
print(message)
'''
current_number = 0
while current_n... | 17.76 | 65 | 0.599099 | 57 | 444 | 4.578947 | 0.578947 | 0.249042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.279279 | 444 | 25 | 66 | 17.76 | 0.796875 | 0.612613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
a3a616a75c3be07c0cae3df16aeee1d9f1c75e5b | 2,710 | py | Python | addons/management/commands/recover_volumes.py | kilinger/marathon-rocketchat-hubot | 682454b90265eb2c66ea222cf0c970370816a9e1 | [
"BSD-3-Clause"
] | 1 | 2018-07-10T07:03:12.000Z | 2018-07-10T07:03:12.000Z | addons/management/commands/recover_volumes.py | kilinger/marathon-rocketchat-hubot | 682454b90265eb2c66ea222cf0c970370816a9e1 | [
"BSD-3-Clause"
] | null | null | null | addons/management/commands/recover_volumes.py | kilinger/marathon-rocketchat-hubot | 682454b90265eb2c66ea222cf0c970370816a9e1 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding:utf-8 -*-
import json
import re
import sys
from django.conf import settings
from django.core.management import BaseCommand
from sseclient import SSEClient
from addons.models import Addon
from addons.tasks import recover_volumes
class Command(BaseCommand):
help = (
"Can be run as a cronjob o... | 38.169014 | 108 | 0.49631 | 272 | 2,710 | 4.863971 | 0.441176 | 0.05291 | 0.022676 | 0.028723 | 0.145125 | 0.10582 | 0.049887 | 0 | 0 | 0 | 0 | 0.005112 | 0.422509 | 2,710 | 70 | 109 | 38.714286 | 0.840256 | 0.080812 | 0 | 0.283019 | 0 | 0 | 0.123591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.037736 | 0.150943 | null | null | 0.169811 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3aa53dc16d35cf03189c8bd5431945368d35925 | 1,161 | py | Python | apps/agentcontroller/jumpscripts/core/monitoring_infogathering/info_gather_healthcheck_results.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | 1 | 2015-10-26T10:38:13.000Z | 2015-10-26T10:38:13.000Z | apps/agentcontroller/jumpscripts/core/monitoring_infogathering/info_gather_healthcheck_results.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | apps/agentcontroller/jumpscripts/core/monitoring_infogathering/info_gather_healthcheck_results.py | Jumpscale/jumpscale6_core | 0502ddc1abab3c37ed982c142d21ea3955d471d3 | [
"BSD-2-Clause"
] | null | null | null | from JumpScale import j
import time
import JumpScale.baselib.redis
descr = """
Gather node's healthchecks (used in macro in portal)
"""
organization = "jumpscale"
name = 'info_gather_healthcheck_results'
author = "khamisr@codescalers.com"
license = "bsd"
version = "1.0"
category = "gather.healthchecker"
period = 0 #... | 27 | 126 | 0.669251 | 142 | 1,161 | 5.394366 | 0.5 | 0.031332 | 0.057441 | 0.049608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022826 | 0.20758 | 1,161 | 42 | 127 | 27.642857 | 0.809783 | 0.049957 | 0 | 0.060606 | 0 | 0 | 0.271818 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | 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 |
a3ab0dd4bcc1f6136aced80cf9548c7862af1d60 | 290 | py | Python | bdc_stac/zappa_init.py | fabianazioti/bdc-stac | b56c18bf7c394dd8b7d7910778940720907415bf | [
"MIT"
] | null | null | null | bdc_stac/zappa_init.py | fabianazioti/bdc-stac | b56c18bf7c394dd8b7d7910778940720907415bf | [
"MIT"
] | null | null | null | bdc_stac/zappa_init.py | fabianazioti/bdc-stac | b56c18bf7c394dd8b7d7910778940720907415bf | [
"MIT"
] | null | null | null | #
# This file is part of bdc-stac.
# Copyright (C) 2019 INPE.
#
# bdc-stac is a free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
"""File used for zappa deploy."""
from . import create_app
app = create_app()
| 24.166667 | 72 | 0.713793 | 50 | 290 | 4.1 | 0.74 | 0.068293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017021 | 0.189655 | 290 | 11 | 73 | 26.363636 | 0.855319 | 0.775862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a3ac652117c8220c0f6c5dc26131498a3a3be82d | 328 | py | Python | Curso Python/Mundo 1/Modulo4/Desafios/des032 - Cor.py | catabimbas/Curso-Python | 72549952db77fa9b0ea3746b83f94592e3fdeb30 | [
"MIT"
] | null | null | null | Curso Python/Mundo 1/Modulo4/Desafios/des032 - Cor.py | catabimbas/Curso-Python | 72549952db77fa9b0ea3746b83f94592e3fdeb30 | [
"MIT"
] | null | null | null | Curso Python/Mundo 1/Modulo4/Desafios/des032 - Cor.py | catabimbas/Curso-Python | 72549952db77fa9b0ea3746b83f94592e3fdeb30 | [
"MIT"
] | null | null | null | # Variável int
ano = int(input('Digite o ano: '))
# Variável
anonovo = ano % 4
# Cores
cor = {'fim': '\033[m',
'roxo': '\033[35m',
'branco': '\033[30m'}
# IFS Print
if anonovo == 0:
print(f'{cor["branco"]}Este ano é bissexto {cor["fim"]}')
else:
print(f'{cor["roxo"]}Este ano não é bissexto {cor["f... | 23.428571 | 63 | 0.564024 | 50 | 328 | 3.7 | 0.54 | 0.097297 | 0.097297 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057471 | 0.204268 | 328 | 13 | 64 | 25.230769 | 0.651341 | 0.112805 | 0 | 0 | 0 | 0 | 0.506993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.222222 | 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 |
a3ad12105bf2255c5bccc6ec0a205e30b70717f2 | 426 | py | Python | RecoBTag/PerformanceDB/test/process/templates/BTag_template_Online.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoBTag/PerformanceDB/test/process/templates/BTag_template_Online.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoBTag/PerformanceDB/test/process/templates/BTag_template_Online.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
BtagPerformanceESProducer_TEMPLATE = cms.ESProducer("BtagPerformanceESProducer",
# this is what it makes available
ComponentName = cms.string('TEMPLATE'),
# this is where it gets the payload from
PayloadName = cms.string('B... | 47.333333 | 88 | 0.70892 | 41 | 426 | 7.243902 | 0.682927 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.21831 | 426 | 8 | 89 | 53.25 | 0.891892 | 0.164319 | 0 | 0 | 0 | 0 | 0.314754 | 0.288525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3aefb8c83ec2eb0e7eabdc7167bd51347b3fb55 | 368 | py | Python | API/make_DB.py | yupyub/CaloriCapture5 | 42c2b60068090fc9ece422239e51f1abeb92a638 | [
"MIT"
] | null | null | null | API/make_DB.py | yupyub/CaloriCapture5 | 42c2b60068090fc9ece422239e51f1abeb92a638 | [
"MIT"
] | null | null | null | API/make_DB.py | yupyub/CaloriCapture5 | 42c2b60068090fc9ece422239e51f1abeb92a638 | [
"MIT"
] | 3 | 2021-10-10T03:15:06.000Z | 2021-10-10T03:15:25.000Z | import aws_interface
import pandas as pd
db = pd.read_excel('./FOOD_DB_20211010.xlsx')
print(db.head())
# def create_item():
# client = aws_interface.Client()
# response = client.call_api("cloud.database.create_items", {
# "items": "[dict]",
# "max_workers": "int?",
# "partition": "str",
# "se... | 24.533333 | 65 | 0.616848 | 45 | 368 | 4.822222 | 0.711111 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 0.195652 | 368 | 15 | 66 | 24.533333 | 0.706081 | 0.660326 | 0 | 0 | 0 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3b698e602d363c840bb20733aaa301b6370441b | 1,145 | py | Python | Leetcode/0201-0250/0237-delete-node-in-linked-list.py | MiKueen/Data-Structures-and-Algorithms | 8788bde5349f326aac0267531f39ac7a2a708ee6 | [
"MIT"
] | null | null | null | Leetcode/0201-0250/0237-delete-node-in-linked-list.py | MiKueen/Data-Structures-and-Algorithms | 8788bde5349f326aac0267531f39ac7a2a708ee6 | [
"MIT"
] | null | null | null | Leetcode/0201-0250/0237-delete-node-in-linked-list.py | MiKueen/Data-Structures-and-Algorithms | 8788bde5349f326aac0267531f39ac7a2a708ee6 | [
"MIT"
] | 1 | 2019-10-06T15:46:14.000Z | 2019-10-06T15:46:14.000Z | '''
Author : MiKueen
Level : Easy
Problem Statement : Delete Node in a Linked List
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.
Given linked list -- head = [4,5,1,9], which looks like following:
Example 1:
Input: head = [4,5,1,9], node = 5
Output: [4,1,9... | 30.131579 | 127 | 0.629694 | 175 | 1,145 | 4.08 | 0.428571 | 0.084034 | 0.02521 | 0.029412 | 0.27451 | 0.193277 | 0.047619 | 0 | 0 | 0 | 0 | 0.0358 | 0.268122 | 1,145 | 38 | 128 | 30.131579 | 0.816229 | 0.746725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 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 |
a3b9723e6181e9373ba102b016a3d34a2946ebd5 | 2,199 | py | Python | Python/github_bot/github.py | w1sd0m-404/Python | 4723e15f663b177b58357a558c8c84d78c418e12 | [
"MIT"
] | null | null | null | Python/github_bot/github.py | w1sd0m-404/Python | 4723e15f663b177b58357a558c8c84d78c418e12 | [
"MIT"
] | null | null | null | Python/github_bot/github.py | w1sd0m-404/Python | 4723e15f663b177b58357a558c8c84d78c418e12 | [
"MIT"
] | null | null | null | import time
from selenium import webdriver
from github_userinfo import username, password
class Github:
def __init__(self,username,password):
self.browser = webdriver.Firefox()
self.username = username
self.password = password
self.follower = []
def signIn(self... | 35.467742 | 105 | 0.555252 | 258 | 2,199 | 4.542636 | 0.294574 | 0.093857 | 0.08959 | 0.075085 | 0.447952 | 0.427474 | 0.40273 | 0.349829 | 0.349829 | 0.349829 | 0 | 0.010101 | 0.324693 | 2,199 | 62 | 106 | 35.467742 | 0.779125 | 0 | 0 | 0.361702 | 0 | 0.021277 | 0.132305 | 0.032726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.106383 | 0.06383 | 0 | 0.148936 | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3bc9c1bd8fa1cebae79237c348aad87cdb1494a | 514 | py | Python | src/recommendation/aws_lambda/lambda_function.py | odobenuskr/2019_capstone_FlexAds | e37708484d983326806c0d6a0c5ae7157ea57e59 | [
"MIT"
] | 12 | 2019-03-08T15:49:24.000Z | 2020-08-03T05:01:44.000Z | src/recommendation/aws_lambda/lambda_function.py | kookmin-sw/2019-cap1-2019_4 | e64aa4590ac58dca535024118ed4d4bd0b3eb699 | [
"MIT"
] | 63 | 2019-03-08T15:23:19.000Z | 2019-06-01T07:10:23.000Z | src/recommendation/aws_lambda/lambda_function.py | odobenuskr/2019_capstone_FlexAds | e37708484d983326806c0d6a0c5ae7157ea57e59 | [
"MIT"
] | 11 | 2019-03-10T02:12:24.000Z | 2021-04-02T07:16:01.000Z | import json
import boto3
def lambda_handler(event, context):
# TODO implement
dynamodb = boto3.resource('dynamodb', region_name='us-west-2')
table = dynamodb.Table('Recommendation')
user = event['user_id']
print("User is comming, user_id is "),
print(user)
response = table.get_item(
... | 23.363636 | 66 | 0.595331 | 59 | 514 | 5.067797 | 0.644068 | 0.060201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010782 | 0.27821 | 514 | 21 | 67 | 24.47619 | 0.795148 | 0.079767 | 0 | 0 | 0 | 0 | 0.238298 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.25 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a3bffb13568df04eb14e1f284b408777819fc4f0 | 840 | py | Python | medium/interval list intersections/solution.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | 4 | 2021-06-03T22:19:13.000Z | 2021-10-05T18:14:12.000Z | medium/interval list intersections/solution.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | null | null | null | medium/interval list intersections/solution.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def intervalIntersection(self, firstList: List[List[int]], secondList: List[List[int]]) -> List[List[int]]:
result = []
while firstList and secondList:
i = firstList[0]
j = secondList[0]
if i[1] >= j[0] and i[0] <= j[1]:
... | 33.6 | 111 | 0.519048 | 112 | 840 | 3.892857 | 0.383929 | 0.068807 | 0.298165 | 0.022936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089141 | 0.265476 | 840 | 24 | 112 | 35 | 0.617504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.2 | 0.25 | 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 |
a3c045f31afcc7179b4d3e2df195bfca7b13004f | 614 | py | Python | caiman/models.py | Rockstreet/newsusman | 923a00beafb8a9f82a3acc0f3b2b183bf5bb3d52 | [
"MIT"
] | null | null | null | caiman/models.py | Rockstreet/newsusman | 923a00beafb8a9f82a3acc0f3b2b183bf5bb3d52 | [
"MIT"
] | null | null | null | caiman/models.py | Rockstreet/newsusman | 923a00beafb8a9f82a3acc0f3b2b183bf5bb3d52 | [
"MIT"
] | null | null | null | from django.db import models
from django.utils.translation import ugettext_lazy as _, ugettext
class Setting(models.Model):
phone1=models.CharField(_("Телефонный номер 1"), max_length=200, default='', blank=True)
phone2=models.CharField(_("Телефонный номер 2"), max_length=200, default='', blank=True)
ema... | 29.238095 | 92 | 0.705212 | 77 | 614 | 5.428571 | 0.506494 | 0.107656 | 0.086124 | 0.136364 | 0.200957 | 0.200957 | 0 | 0 | 0 | 0 | 0 | 0.032567 | 0.149837 | 614 | 20 | 93 | 30.7 | 0.768199 | 0 | 0 | 0 | 0 | 0 | 0.122951 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3c2cd0d453e0d9a83a2b45abcf893aafc594569 | 2,147 | py | Python | pypowervm/tests/wrappers/test_shared_proc_pool.py | stephenfin/pypowervm | 68f2b586b4f17489f379534ab52fc56a524b6da5 | [
"Apache-2.0"
] | 24 | 2015-12-02T19:49:45.000Z | 2021-11-17T11:43:51.000Z | pypowervm/tests/wrappers/test_shared_proc_pool.py | stephenfin/pypowervm | 68f2b586b4f17489f379534ab52fc56a524b6da5 | [
"Apache-2.0"
] | 18 | 2017-03-01T05:54:25.000Z | 2022-03-14T17:32:47.000Z | pypowervm/tests/wrappers/test_shared_proc_pool.py | stephenfin/pypowervm | 68f2b586b4f17489f379534ab52fc56a524b6da5 | [
"Apache-2.0"
] | 17 | 2016-02-10T22:53:04.000Z | 2021-11-10T09:47:10.000Z | # Copyright 2014, 2015 IBM Corp.
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 37.666667 | 78 | 0.711691 | 311 | 2,147 | 4.742765 | 0.40836 | 0.152542 | 0.061695 | 0.067797 | 0.23661 | 0.130847 | 0.046102 | 0 | 0 | 0 | 0 | 0.024404 | 0.198416 | 2,147 | 56 | 79 | 38.339286 | 0.832655 | 0.317187 | 0 | 0 | 0 | 0 | 0.040746 | 0 | 0 | 0 | 0 | 0 | 0.586207 | 1 | 0.068966 | false | 0 | 0.068966 | 0 | 0.241379 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
a3c9138ed903367343fe4259820a5621dcec4a60 | 4,759 | py | Python | reagent/gym/tests/preprocessors/test_default_preprocessors.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | reagent/gym/tests/preprocessors/test_default_preprocessors.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | reagent/gym/tests/preprocessors/test_default_preprocessors.py | alexnikulkov/ReAgent | e404c5772ea4118105c2eb136ca96ad5ca8e01db | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import unittest
import gym
import numpy.testing as npt
import torch
import torch.nn.functional as F
from reagent.gym.envs.gym import Gym
try:
from reagent.gym.envs.recsim import RecSim
HAS_RECSIM = True
except Mo... | 41.745614 | 85 | 0.665686 | 586 | 4,759 | 5.174061 | 0.220137 | 0.145778 | 0.094987 | 0.098945 | 0.737137 | 0.697889 | 0.673153 | 0.655343 | 0.655343 | 0.601913 | 0 | 0.012218 | 0.226098 | 4,759 | 113 | 86 | 42.115044 | 0.811024 | 0.037823 | 0 | 0.494845 | 0 | 0 | 0.03541 | 0 | 0 | 0 | 0 | 0 | 0.309278 | 1 | 0.041237 | false | 0 | 0.072165 | 0 | 0.123711 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3d539f195abb9e6b574734000be32049831a8b0 | 255 | py | Python | examples/ext_authz/upstream/service/server.py | lopter-dbx/envoy | d342e96e7ba2319329838e799021838354e88118 | [
"Apache-2.0"
] | 218 | 2019-05-10T01:11:27.000Z | 2022-01-12T07:12:59.000Z | examples/ext_authz/upstream/service/server.py | lopter-dbx/envoy | d342e96e7ba2319329838e799021838354e88118 | [
"Apache-2.0"
] | 624 | 2020-10-19T12:21:29.000Z | 2021-05-09T22:47:00.000Z | examples/ext_authz/upstream/service/server.py | lopter-dbx/envoy | d342e96e7ba2319329838e799021838354e88118 | [
"Apache-2.0"
] | 93 | 2019-05-10T00:15:21.000Z | 2021-10-14T09:32:30.000Z | from flask import Flask, request
app = Flask(__name__)
@app.route('/service')
def hello():
return 'Hello ' + request.headers.get('x-current-user') + ' from behind Envoy!'
if __name__ == "__main__":
app.run(host='0.0.0.0', port=8080, debug=False)
| 19.615385 | 81 | 0.670588 | 38 | 255 | 4.184211 | 0.710526 | 0.037736 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.145098 | 255 | 12 | 82 | 21.25 | 0.692661 | 0 | 0 | 0 | 0 | 0 | 0.243137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 0 | 1 |
a3dbd03307358a1c9833a40a4e1c56247933f3a1 | 8,926 | bzl | Python | internal/linker/link_node_modules.bzl | Kolpa/rules_nodejs | e21b8b2a24a8dcc56e14bb90f55838f9dbbc92e6 | [
"Apache-2.0"
] | null | null | null | internal/linker/link_node_modules.bzl | Kolpa/rules_nodejs | e21b8b2a24a8dcc56e14bb90f55838f9dbbc92e6 | [
"Apache-2.0"
] | null | null | null | internal/linker/link_node_modules.bzl | Kolpa/rules_nodejs | e21b8b2a24a8dcc56e14bb90f55838f9dbbc92e6 | [
"Apache-2.0"
] | null | null | null | """Helper function and aspect to collect first-party packages.
These are used in node rules to link the node_modules before launching a program.
This supports path re-mapping, to support short module names.
See pathMapping doc: https://github.com/Microsoft/TypeScript/issues/5039
This reads the module_root and module_... | 44.854271 | 140 | 0.646986 | 1,228 | 8,926 | 4.576547 | 0.285016 | 0.035231 | 0.016014 | 0.012278 | 0.095552 | 0.065658 | 0.065658 | 0.046975 | 0.046975 | 0.046975 | 0 | 0.001071 | 0.267757 | 8,926 | 198 | 141 | 45.080808 | 0.858782 | 0.445104 | 0 | 0.164948 | 0 | 0 | 0.16494 | 0.031496 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.041237 | false | 0 | 0 | 0 | 0.072165 | 0.010309 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a3e2cb65312d80700d34c0a9b1138586c9fc2a97 | 9,660 | py | Python | wealthbot/user/models/profile.py | jliev/wealthbot_chatterbot | f6681da8e5f833990ccd321e166994f31253353f | [
"MIT"
] | 1 | 2019-04-22T07:20:31.000Z | 2019-04-22T07:20:31.000Z | wealthbot/user/models/profile.py | jliev/wealthbot_chatterbot | f6681da8e5f833990ccd321e166994f31253353f | [
"MIT"
] | null | null | null | wealthbot/user/models/profile.py | jliev/wealthbot_chatterbot | f6681da8e5f833990ccd321e166994f31253353f | [
"MIT"
] | null | null | null | from django.db import models
from django.core.exceptions import PermissionDenied
from django.http import Http404
from client.models import ClientAdditionalContact
class Profile(models.Model):
class Meta:
db_table = 'user_profiles'
user = models.OneToOneField('user.User', on_delete=models.CASCADE)
ria_... | 42.555066 | 158 | 0.711491 | 1,181 | 9,660 | 5.512278 | 0.165114 | 0.034409 | 0.05192 | 0.067896 | 0.492473 | 0.471736 | 0.459293 | 0.456221 | 0.434562 | 0.414132 | 0 | 0.04841 | 0.189545 | 9,660 | 226 | 159 | 42.743363 | 0.783114 | 0.044306 | 0 | 0.07027 | 0 | 0 | 0.102127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097297 | false | 0 | 0.021622 | 0.064865 | 0.637838 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3e622837d38f485c3e4bbeb8638cb6620639384 | 1,177 | py | Python | poetry/core/packages/url_dependency.py | bneijt/poetry-core | b82168cb71aae2f1e3ea61fd4864322b9162a8e3 | [
"MIT"
] | null | null | null | poetry/core/packages/url_dependency.py | bneijt/poetry-core | b82168cb71aae2f1e3ea61fd4864322b9162a8e3 | [
"MIT"
] | null | null | null | poetry/core/packages/url_dependency.py | bneijt/poetry-core | b82168cb71aae2f1e3ea61fd4864322b9162a8e3 | [
"MIT"
] | 1 | 2021-04-08T03:26:23.000Z | 2021-04-08T03:26:23.000Z | from poetry.core.utils._compat import urlparse
from .dependency import Dependency
class URLDependency(Dependency):
def __init__(
self,
name,
url, # type: str
category="main", # type: str
optional=False, # type: bool
):
self._url = url
parsed = urlpa... | 25.042553 | 84 | 0.590484 | 130 | 1,177 | 5.1 | 0.4 | 0.042232 | 0.042232 | 0.081448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00358 | 0.28802 | 1,177 | 46 | 85 | 25.586957 | 0.78759 | 0.053526 | 0 | 0.060606 | 0 | 0 | 0.053249 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.060606 | 0.121212 | 0.424242 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3e64d077f1fc106e4a63168c1ed3ad7fb337315 | 973 | py | Python | settings_default.py | StephenCoady/fas2ipa | 16919a843ba4a5b9b28b39f05b0ba7c66b6d3720 | [
"MIT"
] | null | null | null | settings_default.py | StephenCoady/fas2ipa | 16919a843ba4a5b9b28b39f05b0ba7c66b6d3720 | [
"MIT"
] | 1 | 2019-11-28T15:36:23.000Z | 2019-11-30T09:55:35.000Z | settings_default.py | StephenCoady/fas2ipa | 16919a843ba4a5b9b28b39f05b0ba7c66b6d3720 | [
"MIT"
] | null | null | null | from getpass import getpass
fas_user = input('FAS username: ')
fas_pw = getpass('FAS password (will not echo): ')
ipa_instances = ['ipatest01.fedora.idm.elrod.me', 'ipatest02.fedora.idm.elrod.me']
ipa_ssl = input('IPA certificate path: ')
ipa_user = input('IPA username: ')
ipa_pw = getpass('IPA password (will not ech... | 29.484848 | 82 | 0.743063 | 149 | 973 | 4.724832 | 0.610738 | 0.034091 | 0.042614 | 0.053977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010962 | 0.156218 | 973 | 32 | 83 | 30.40625 | 0.846529 | 0.43371 | 0 | 0 | 0 | 0 | 0.393715 | 0.107209 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.214286 | 0.071429 | 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 |
a3ecde0bade3117ee5fd7b915c1452e9d618bb49 | 2,906 | py | Python | python/GafferTools/NodeColors.py | kubo-von/GafferTools | 5673e6181b019d25783698583e5855d3e1280dcc | [
"MIT"
] | 5 | 2021-03-30T21:14:32.000Z | 2021-09-16T06:08:01.000Z | python/GafferTools/NodeColors.py | sschwungsau/GafferTools | 5673e6181b019d25783698583e5855d3e1280dcc | [
"MIT"
] | null | null | null | python/GafferTools/NodeColors.py | sschwungsau/GafferTools | 5673e6181b019d25783698583e5855d3e1280dcc | [
"MIT"
] | 2 | 2021-03-18T22:12:21.000Z | 2021-07-17T16:19:34.000Z | import Gaffer
import GafferUI
import GafferScene
import imath
def ShowNodeColorsWindow(menu):
scriptWindow = menu.ancestor( GafferUI.ScriptWindow )
root = scriptWindow.scriptNode()
window = NodeColorsWindow(scriptWindow, scriptWindow)
scriptWindow.addChildWindow( window )
window.setVisible( True )... | 50.982456 | 138 | 0.628699 | 309 | 2,906 | 5.886731 | 0.495146 | 0.046179 | 0.02309 | 0.026388 | 0.194612 | 0.194612 | 0.131941 | 0.131941 | 0.131941 | 0.131941 | 0 | 0.120366 | 0.248107 | 2,906 | 57 | 139 | 50.982456 | 0.712128 | 0.172402 | 0 | 0 | 0 | 0 | 0.091781 | 0 | 0 | 0 | 0 | 0.017544 | 0 | 1 | 0.095238 | false | 0 | 0.095238 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3f21cf74d8aa8362658cc353a6986ae5e06bc7c | 635 | py | Python | mooringlicensing/migrations/0069_applicationfee_fee_constructor.py | GraemeMuller/mooringlicensing | 2b2594189fb88f4add3fbc979a60a05397aaa491 | [
"Apache-2.0"
] | null | null | null | mooringlicensing/migrations/0069_applicationfee_fee_constructor.py | GraemeMuller/mooringlicensing | 2b2594189fb88f4add3fbc979a60a05397aaa491 | [
"Apache-2.0"
] | 2 | 2021-03-05T06:48:11.000Z | 2021-03-26T08:14:17.000Z | mooringlicensing/migrations/0069_applicationfee_fee_constructor.py | GraemeMuller/mooringlicensing | 2b2594189fb88f4add3fbc979a60a05397aaa491 | [
"Apache-2.0"
] | 15 | 2021-03-02T01:40:12.000Z | 2022-02-15T08:26:09.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-04-09 01:23
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('mooringlicensing', '0068_merge_20210409_0850'),
]
... | 28.863636 | 175 | 0.686614 | 71 | 635 | 5.957746 | 0.71831 | 0.056738 | 0.066194 | 0.104019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066798 | 0.198425 | 635 | 21 | 176 | 30.238095 | 0.764244 | 0.108661 | 0 | 0 | 1 | 0 | 0.206039 | 0.097691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a3f51ead298f6d8a09e3faa4db3f60e8ff39a45a | 398 | py | Python | onlinecourse/migrations/0003_auto_20210521_1344.py | pickaboo/final_template | 8293b7f070f49bcdedacbf0c57448bc9ee1b572b | [
"Apache-2.0"
] | null | null | null | onlinecourse/migrations/0003_auto_20210521_1344.py | pickaboo/final_template | 8293b7f070f49bcdedacbf0c57448bc9ee1b572b | [
"Apache-2.0"
] | null | null | null | onlinecourse/migrations/0003_auto_20210521_1344.py | pickaboo/final_template | 8293b7f070f49bcdedacbf0c57448bc9ee1b572b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.3 on 2021-05-21 13:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('onlinecourse', '0002_auto_20210521_1342'),
]
operations = [
migrations.AlterField(
model_name='choice',
name='is_cor... | 20.947368 | 53 | 0.610553 | 42 | 398 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108014 | 0.278894 | 398 | 18 | 54 | 22.111111 | 0.721254 | 0.113065 | 0 | 0 | 1 | 0 | 0.145299 | 0.065527 | 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 |
a3fd34a6bc54a6bfd76d0e48460242a083aaf6a0 | 944 | py | Python | splitiorequests/schemas/splits/split_definitions_schema.py | mikoblog/splitio-requests | c09b069e49f5224cbe3f892a5731c62885fd6151 | [
"MIT"
] | null | null | null | splitiorequests/schemas/splits/split_definitions_schema.py | mikoblog/splitio-requests | c09b069e49f5224cbe3f892a5731c62885fd6151 | [
"MIT"
] | 4 | 2020-11-22T12:07:45.000Z | 2021-03-26T23:44:12.000Z | splitiorequests/schemas/splits/split_definitions_schema.py | mikoblog/splitio-requests | c09b069e49f5224cbe3f892a5731c62885fd6151 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Split Definitions Schema"""
from marshmallow import Schema, fields, post_load, post_dump
from .split_definition_schema import SplitDefinitionSchema
from splitiorequests.models.splits.split_definitions import SplitDefinitions
class SplitDefinitionsSchema(Schema):
"""Split Definitions s... | 29.5 | 78 | 0.71822 | 104 | 944 | 6.413462 | 0.519231 | 0.095952 | 0.076462 | 0.094453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0013 | 0.185381 | 944 | 31 | 79 | 30.451613 | 0.86606 | 0.224576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a3fe97a04625202c5df8de3d0d49f82c89d55e81 | 247 | py | Python | src/main/kotlin/course/mit/asset-v1_MITx+6.00.1x+2T2017+type@asset+block@Lecture5/universities.py | grigorykulik/kotlin_start | d8dfa8ac67f27843eaad01ad7ce1d4eee5a989b1 | [
"MIT"
] | 1 | 2019-12-05T19:06:04.000Z | 2019-12-05T19:06:04.000Z | src/main/kotlin/course/mit/asset-v1_MITx+6.00.1x+2T2017+type@asset+block@Lecture5/universities.py | grigorykulik/kotlin_start | d8dfa8ac67f27843eaad01ad7ce1d4eee5a989b1 | [
"MIT"
] | 2 | 2019-12-07T19:40:49.000Z | 2021-07-12T13:05:20.000Z | src/main/kotlin/course/mit/asset-v1_MITx+6.00.1x+2T2017+type@asset+block@Lecture5/universities.py | grigorykulik/kotlin_start | d8dfa8ac67f27843eaad01ad7ce1d4eee5a989b1 | [
"MIT"
] | 2 | 2021-07-11T15:16:48.000Z | 2021-09-21T12:21:15.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 8 19:15:34 2016
@author: ericgrimson
"""
US = ['MIT', 'Harvard', 'Yale']
UK = ['Cambridge', 'Oxford']
Unis = [US, UK]
Unisnew = [['MIT', 'Harvard', 'Yale'], ['US', 'UK']]
# US.append('Princeton') | 17.642857 | 52 | 0.550607 | 33 | 247 | 4.121212 | 0.727273 | 0.147059 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058537 | 0.17004 | 247 | 14 | 53 | 17.642857 | 0.604878 | 0.417004 | 0 | 0 | 0 | 0 | 0.345588 | 0 | 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 |
43054bc35841015351cd8d44d6af18a353bdd9e3 | 486 | py | Python | app/schemas.py | psyphore/flask-phone-book | cceec3caabdeb03f260d37f3b55d5aa7a52c30c2 | [
"MIT"
] | null | null | null | app/schemas.py | psyphore/flask-phone-book | cceec3caabdeb03f260d37f3b55d5aa7a52c30c2 | [
"MIT"
] | 2 | 2021-03-19T03:39:56.000Z | 2021-06-08T20:28:03.000Z | app/schemas.py | psyphore/flask-phone-book | cceec3caabdeb03f260d37f3b55d5aa7a52c30c2 | [
"MIT"
] | null | null | null | import graphene
import app.People.schema
import app.Search.schema
import app.Building.schema
class SuperQuery(app.People.schema.PeopleQuery,
app.Search.schema.SearchQuery,
app.Building.schema.BuildingQuery,
graphene.ObjectType):
pass
class SuperMutant(app.People... | 25.578947 | 64 | 0.695473 | 50 | 486 | 6.74 | 0.42 | 0.080119 | 0.133531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22428 | 486 | 18 | 65 | 27 | 0.893899 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4305f40c7745ffb7fcdeb858e02622f9abde4dee | 4,136 | py | Python | lecture20/asyncleaderelection.py | vaibhavminde/Deep-Learning-MITOCW | c91711d80088804b4bea784ea21da48eada00935 | [
"MIT"
] | 12 | 2019-02-28T09:34:21.000Z | 2022-01-13T13:29:58.000Z | lecture20/asyncleaderelection.py | iamlxb3/mit6.046 | b54ac4d3dcc6ad5eeac25f25e62b3a226f6cdfda | [
"MIT"
] | null | null | null | lecture20/asyncleaderelection.py | iamlxb3/mit6.046 | b54ac4d3dcc6ad5eeac25f25e62b3a226f6cdfda | [
"MIT"
] | 7 | 2019-03-20T03:06:39.000Z | 2022-02-17T01:48:18.000Z | """
Lecture 20: Asynchronous Distributed Networks
Asynchronous Maximum UID Algorithm
----------------------------------
This algorithm is the first example of a asynchronous
distributed algorithm. In the synchronous model, we
assumed each node in the network would emit messages
across each of its channels in synchroniz... | 23.770115 | 63 | 0.683269 | 611 | 4,136 | 4.566285 | 0.279869 | 0.012545 | 0.021505 | 0.011828 | 0.077419 | 0.050179 | 0.032975 | 0.032975 | 0.032975 | 0.032975 | 0 | 0.00063 | 0.232108 | 4,136 | 173 | 64 | 23.907514 | 0.877834 | 0 | 0 | 0.178571 | 0 | 0 | 0.042683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.017857 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
430ff1a3905db25edbaf22d16c3979371600fde3 | 2,429 | py | Python | handler.py | L71/slacker | f877e4e790dae5e457f6b887167dd3bcb5b604e1 | [
"MIT"
] | null | null | null | handler.py | L71/slacker | f877e4e790dae5e457f6b887167dd3bcb5b604e1 | [
"MIT"
] | null | null | null | handler.py | L71/slacker | f877e4e790dae5e457f6b887167dd3bcb5b604e1 | [
"MIT"
] | null | null | null | import os
import re
import yaml
import slack
import slack.chat
from aiosmtpd.handlers import Message
class MessageHandler(Message):
def __init__(self, *args, **kargs):
Message.__init__(self, *args, **kargs)
config = os.getenv('CONFIG', '/etc/slacker/config.yml')
print(config)
if n... | 29.621951 | 76 | 0.562783 | 272 | 2,429 | 4.922794 | 0.375 | 0.037341 | 0.024645 | 0.04705 | 0.100075 | 0.100075 | 0.058252 | 0.058252 | 0 | 0 | 0 | 0.0012 | 0.314121 | 2,429 | 81 | 77 | 29.987654 | 0.802521 | 0.083573 | 0 | 0.067797 | 0 | 0 | 0.098996 | 0.020985 | 0 | 0 | 0 | 0.012346 | 0 | 1 | 0.084746 | false | 0 | 0.101695 | 0 | 0.254237 | 0.084746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
431185529522737cefe5219d04375482d086aea1 | 2,066 | py | Python | ci/tests/sqltest.py | falcon78921/Cardinal | b0aeff38364202b6695ad04d7252f28b186f4a94 | [
"MIT"
] | 3 | 2018-01-06T19:39:45.000Z | 2018-12-25T20:08:04.000Z | ci/tests/sqltest.py | falcon78921/Cardinal | b0aeff38364202b6695ad04d7252f28b186f4a94 | [
"MIT"
] | 7 | 2017-11-05T06:36:34.000Z | 2018-12-29T03:41:59.000Z | ci/tests/sqltest.py | falcon78921/Cardinal | b0aeff38364202b6695ad04d7252f28b186f4a94 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
''' Cardinal - An Open Source Cisco Wireless Access Point Controller
MIT License
Copyright © 2019 Cardinal Contributors
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 wi... | 35.62069 | 96 | 0.75847 | 282 | 2,066 | 5.560284 | 0.549645 | 0.056122 | 0.056122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003466 | 0.162149 | 2,066 | 57 | 97 | 36.245614 | 0.901791 | 0.585189 | 0 | 0 | 0 | 0 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0.136364 | 0.090909 | 0 | 0.181818 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4318ff00ac4e9ccbfd447e8a69ea71c8e3ace451 | 976 | py | Python | sa/profiles/Eltex/MA4000/profile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/Eltex/MA4000/profile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/Eltex/MA4000/profile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# Vendor: Eltex
# OS: MA4000
# ---------------------------------------------------------------------
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# ... | 30.5 | 81 | 0.477459 | 107 | 976 | 4.261682 | 0.626168 | 0.008772 | 0.048246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028465 | 0.172131 | 976 | 31 | 82 | 31.483871 | 0.535891 | 0.33709 | 0 | 0 | 0 | 0 | 0.251177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0.058824 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4319a341ebdcf3a70806733a47d35e4a17ae6bfc | 1,697 | py | Python | web/settings.py | mkj/wort-templog | ae5e11549275c259a8e0ba39c1f9c95cfda4b8c4 | [
"MIT"
] | 9 | 2015-01-12T04:55:53.000Z | 2021-02-05T16:04:14.000Z | web/settings.py | mkj/wort-templog | ae5e11549275c259a8e0ba39c1f9c95cfda4b8c4 | [
"MIT"
] | 1 | 2021-02-27T12:36:02.000Z | 2021-02-27T12:36:04.000Z | web/settings.py | mkj/wort-templog | ae5e11549275c259a8e0ba39c1f9c95cfda4b8c4 | [
"MIT"
] | 2 | 2017-01-05T07:28:14.000Z | 2020-05-22T15:54:27.000Z | import gevent.event
import fcntl
import binascii
import os
class Settings(object):
RAND_SIZE = 15 # 120 bits
""" Handles state updates from both the web UI and from the fridge client.
The fridge client is canonical. It provides the epoch (apart from 'startepoch'), that
is changed any time the fridge ... | 26.515625 | 93 | 0.615793 | 224 | 1,697 | 4.616071 | 0.415179 | 0.060928 | 0.034816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004198 | 0.298173 | 1,697 | 63 | 94 | 26.936508 | 0.86398 | 0.091927 | 0 | 0 | 0 | 0 | 0.014881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
432321b8df38e9e662fa5a4f51730077089e616e | 1,954 | py | Python | tests/test_flow/test_persistence_compatibility.py | IDl0T/bionic | 8eaa868a2e7af81bb561492c045feb414f7c6326 | [
"Apache-2.0"
] | 98 | 2019-08-29T21:38:44.000Z | 2022-01-26T04:59:57.000Z | tests/test_flow/test_persistence_compatibility.py | IDl0T/bionic | 8eaa868a2e7af81bb561492c045feb414f7c6326 | [
"Apache-2.0"
] | 143 | 2019-09-11T15:32:17.000Z | 2021-06-08T21:48:30.000Z | tests/test_flow/test_persistence_compatibility.py | IDl0T/bionic | 8eaa868a2e7af81bb561492c045feb414f7c6326 | [
"Apache-2.0"
] | 20 | 2019-09-13T18:13:03.000Z | 2021-12-03T19:51:01.000Z | import pytest
import shutil
import sys
from .generate_test_compatibility_cache import Harness, CACHE_TEST_DIR
@pytest.fixture
def older_serialized_cache_harness(make_counter, tmp_path):
# shutil.copytree dest should not exist
tmp_cache_path = tmp_path.joinpath("test_cache")
shutil.copytree(CACHE_TEST_DIR... | 40.708333 | 87 | 0.760491 | 283 | 1,954 | 5.021201 | 0.416961 | 0.084448 | 0.112597 | 0.152006 | 0.161154 | 0.07741 | 0.07741 | 0.07741 | 0.07741 | 0.07741 | 0 | 0.010605 | 0.179632 | 1,954 | 47 | 88 | 41.574468 | 0.875858 | 0.459058 | 0 | 0 | 1 | 0 | 0.018304 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.318182 | 0 | 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 |
4329da031fe168d720c9996ab901d15046ea2f73 | 3,273 | py | Python | classifiers/baselearner.py | mottenhoff/continuous-grasp-decoding | 55d4eda76c9b02f064d95ff92d137e348f358d2a | [
"MIT"
] | null | null | null | classifiers/baselearner.py | mottenhoff/continuous-grasp-decoding | 55d4eda76c9b02f064d95ff92d137e348f358d2a | [
"MIT"
] | null | null | null | classifiers/baselearner.py | mottenhoff/continuous-grasp-decoding | 55d4eda76c9b02f064d95ff92d137e348f358d2a | [
"MIT"
] | null | null | null | from itertools import combinations
import numpy as np
from sklearn.metrics import roc_auc_score
class BaseLearner:
def __init__(self):
self.model_args = {}
self.grid = {}
self.score_args = {}
self.eval_args = {}
self.classifiers = []
def multiclass_auc... | 37.62069 | 106 | 0.487015 | 369 | 3,273 | 4.184282 | 0.300813 | 0.036269 | 0.028497 | 0.021373 | 0.237694 | 0.195596 | 0.076425 | 0.047927 | 0.047927 | 0.047927 | 0 | 0.022657 | 0.406661 | 3,273 | 86 | 107 | 38.05814 | 0.7724 | 0.15582 | 0 | 0.115385 | 0 | 0 | 0.086873 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.057692 | false | 0 | 0.057692 | 0 | 0.153846 | 0.057692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
433a0d4a0c07ed2354c20ae967c7ea9abc8d7284 | 734 | py | Python | ShapeGen.py | CovingtonResearchGroup/CaveXC | 5d6c2f7cfee269941219cd1aa19f4d2255cfa5e1 | [
"MIT"
] | null | null | null | ShapeGen.py | CovingtonResearchGroup/CaveXC | 5d6c2f7cfee269941219cd1aa19f4d2255cfa5e1 | [
"MIT"
] | null | null | null | ShapeGen.py | CovingtonResearchGroup/CaveXC | 5d6c2f7cfee269941219cd1aa19f4d2255cfa5e1 | [
"MIT"
] | null | null | null | from numpy import sin, cos, pi, sqrt, fabs, arctan2, linspace
import numpy as np
# Number of points that define a cross-section
d = 1000
# Generate x, y points for an ellipse. Can set rotation angle with theta
def genEll(r1,r2,theta=0):
t=linspace(0, 2*pi-2*pi/d, d-1)
x=r1*cos(t)
y=r2*sin(t)
if(theta!=0):
t... | 16.681818 | 72 | 0.673025 | 149 | 734 | 3.315436 | 0.362416 | 0.024292 | 0.080972 | 0.129555 | 0.275304 | 0.198381 | 0.198381 | 0.198381 | 0.1417 | 0.1417 | 0 | 0.035473 | 0.19346 | 734 | 43 | 73 | 17.069767 | 0.798986 | 0.347411 | 0 | 0.272727 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.090909 | 0.454545 | 0 | 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 |
433da9ba6e71735dd99960e45f0f53e0360f8fe9 | 1,090 | py | Python | bookorbooks/country/api/serializers/country_serializers.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | 1 | 2021-08-10T22:24:17.000Z | 2021-08-10T22:24:17.000Z | bookorbooks/country/api/serializers/country_serializers.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | bookorbooks/country/api/serializers/country_serializers.py | talhakoylu/SummerInternshipBackend | 4ecedf5c97f73e3d32d5a534769e86aac3e4b6d3 | [
"MIT"
] | null | null | null | from country.models.district_model import District
from rest_framework.fields import SerializerMethodField
from country.models import Country, City
from rest_framework import serializers
class CountrySerializer(serializers.ModelSerializer):
class Meta:
model = Country
fields = "__all__"
class City... | 35.16129 | 75 | 0.718349 | 103 | 1,090 | 7.466019 | 0.38835 | 0.135241 | 0.072822 | 0.091027 | 0.195059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190826 | 1,090 | 31 | 75 | 35.16129 | 0.871882 | 0.163303 | 0 | 0.272727 | 0 | 0 | 0.069383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
43409c6965b3cee7c53c68d4b5f54ac91e052d7e | 1,052 | py | Python | projects/migrations/0035_auto_20180402_1507.py | joatuapp/joatu-django | 5626d03ba89c55650ff5bff2e706ca0883ae3b9c | [
"MIT"
] | 10 | 2018-05-13T18:01:57.000Z | 2018-12-23T17:11:14.000Z | projects/migrations/0035_auto_20180402_1507.py | moileretour/joatu | 9d18cb58b4280235688e269be6fd2d34b77ccead | [
"MIT"
] | 88 | 2018-05-04T15:33:46.000Z | 2022-03-08T21:09:21.000Z | projects/migrations/0035_auto_20180402_1507.py | joatuapp/joatu-django | 5626d03ba89c55650ff5bff2e706ca0883ae3b9c | [
"MIT"
] | 7 | 2018-05-08T16:05:06.000Z | 2018-09-13T05:49:05.000Z | # Generated by Django 2.0.3 on 2018-04-02 19:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0034_auto_20180330_1706'),
]
operations = [
migrations.RenameField(
model_name='project_attendees_registration',
... | 29.222222 | 57 | 0.614068 | 95 | 1,052 | 6.515789 | 0.452632 | 0.177706 | 0.103393 | 0.096931 | 0.659128 | 0.329564 | 0.329564 | 0.200323 | 0.200323 | 0 | 0 | 0.044355 | 0.292776 | 1,052 | 35 | 58 | 30.057143 | 0.787634 | 0.042776 | 0 | 0.62069 | 1 | 0 | 0.243781 | 0.187065 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
434351807aaedb1e092d3aa643473700e7c91062 | 1,181 | py | Python | Python/telephone_strings.py | agodi/Algorithms | da709a074e3a5179d453dc8362cba9f177fe7700 | [
"MIT"
] | null | null | null | Python/telephone_strings.py | agodi/Algorithms | da709a074e3a5179d453dc8362cba9f177fe7700 | [
"MIT"
] | null | null | null | Python/telephone_strings.py | agodi/Algorithms | da709a074e3a5179d453dc8362cba9f177fe7700 | [
"MIT"
] | null | null | null | class Numbers:
TWO = ("A", "B", "C")
THREE = ("D", "E", "F")
FOUR = ("G", "H", "I")
FIVE = ("J", "K", "L")
SIX = ("M", "N", "O")
SEVEN = ("P", "Q", "R", "S")
EIGHT = ("T", "U", "V")
NINE = ("W", "X", "Y", "Z")
@staticmethod
def get_letters(digit):
if digit == "2":
... | 26.244444 | 65 | 0.479255 | 142 | 1,181 | 3.950704 | 0.471831 | 0.185383 | 0.101604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.346317 | 1,181 | 44 | 66 | 26.840909 | 0.705959 | 0 | 0 | 0 | 0 | 0 | 0.033023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a336cf06c291e2b8544fa6e69be17407b3bb228 | 433 | py | Python | recipes/urls.py | Parametricall/Cookbook | bc512919cbbb96a1e9c58d4a8796aef842b9baec | [
"MIT"
] | null | null | null | recipes/urls.py | Parametricall/Cookbook | bc512919cbbb96a1e9c58d4a8796aef842b9baec | [
"MIT"
] | 7 | 2020-04-15T10:21:35.000Z | 2022-02-19T01:09:13.000Z | recipes/urls.py | Parametricall/Cookbook | bc512919cbbb96a1e9c58d4a8796aef842b9baec | [
"MIT"
] | null | null | null | from django.urls import path
from .views.landing_page import LandingPage
from .views.create_recipe import CreateRecipe
from .views.recipe_details import RecipeDetails
app_name = "recipes"
urlpatterns = [
path('', LandingPage.as_view(), name="Landing Page"),
path("create_recipe/", CreateRecipe.as_view(), name=... | 33.307692 | 92 | 0.752887 | 55 | 433 | 5.745455 | 0.4 | 0.085443 | 0.094937 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113164 | 433 | 12 | 93 | 36.083333 | 0.822917 | 0 | 0 | 0 | 0 | 0 | 0.210162 | 0.071594 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a3726cf4bebc263370e7370a7de997c7055b30c | 637 | py | Python | openslides_csv_export/apps.py | normanjaeckel/openslides-csv-export | fe81507466d898cd1dbde66999989c1172b4dd83 | [
"MIT"
] | null | null | null | openslides_csv_export/apps.py | normanjaeckel/openslides-csv-export | fe81507466d898cd1dbde66999989c1172b4dd83 | [
"MIT"
] | null | null | null | openslides_csv_export/apps.py | normanjaeckel/openslides-csv-export | fe81507466d898cd1dbde66999989c1172b4dd83 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from . import __description__, __verbose_name__, __version__
class CSVExportAppConfig(AppConfig):
name = 'openslides_csv_export'
verbose_name = __verbose_name__
description = __description__
version = __version__
angular_site_module = True
angular_projector_m... | 27.695652 | 74 | 0.717425 | 69 | 637 | 6.072464 | 0.550725 | 0.078759 | 0.136038 | 0.100239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22292 | 637 | 22 | 75 | 28.954545 | 0.846465 | 0.120879 | 0 | 0 | 0 | 0 | 0.152603 | 0.152603 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a39c6ea3de2662fe111d80b4087927f070111e2 | 1,177 | py | Python | var/spack/repos/builtin/packages/py-cookiecutter/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 9 | 2018-04-18T07:51:40.000Z | 2021-09-10T03:56:57.000Z | var/spack/repos/builtin/packages/py-cookiecutter/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 907 | 2018-04-18T11:17:57.000Z | 2022-03-31T13:20:25.000Z | var/spack/repos/builtin/packages/py-cookiecutter/package.py | xiki-tempula/spack | 9d66c05e93ab8a933fc59915040c0e0c86a4aac4 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 29 | 2018-11-05T16:14:23.000Z | 2022-02-03T16:07:09.000Z | # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyCookiecutter(PythonPackage):
"""A command-line utility that creates projects from cookie... | 42.035714 | 95 | 0.678845 | 164 | 1,177 | 4.817073 | 0.530488 | 0.102532 | 0.125316 | 0.168354 | 0.23038 | 0.23038 | 0.172152 | 0.111392 | 0.065823 | 0 | 0 | 0.083252 | 0.13254 | 1,177 | 27 | 96 | 43.592593 | 0.6905 | 0.279524 | 0 | 0 | 0 | 0.071429 | 0.476534 | 0.127557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 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 |
4a3d81bb07f503b051d2380e8f1dd066ccea93d3 | 2,902 | py | Python | server.py | Iuty/py.stock.whistler | 82f085288217df0476b76e2de5643fce39b719a2 | [
"Apache-2.0"
] | null | null | null | server.py | Iuty/py.stock.whistler | 82f085288217df0476b76e2de5643fce39b719a2 | [
"Apache-2.0"
] | null | null | null | server.py | Iuty/py.stock.whistler | 82f085288217df0476b76e2de5643fce39b719a2 | [
"Apache-2.0"
] | null | null | null | # coding: utf8
import os,datetime,time
os.environ['STOCKSERVICEPATH']=os.path.abspath(".")
from IutyLib.stock.files import DailyFile
from IutyLib.notice.notice import WeChat_SMS
from prx.HqProxy import HqProxy
def getEMa(s,mv,index,p=4):
v = 0.0
for i in range(index-mv+2,index+1):
v += s[i][p]
v +... | 22.496124 | 128 | 0.528256 | 346 | 2,902 | 4.398844 | 0.355491 | 0.055191 | 0.015769 | 0.013798 | 0.069645 | 0.069645 | 0 | 0 | 0 | 0 | 0 | 0.036392 | 0.327705 | 2,902 | 129 | 129 | 22.496124 | 0.743721 | 0.019642 | 0 | 0.217391 | 0 | 0 | 0.063006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0.065217 | 0.043478 | 0.01087 | 0.195652 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a3f575ade43b03380bfae07925b0f7f6b5b53ee | 253 | py | Python | src/plugins/search/commands.py | tulustul/MusicPlayer | e44ea89a00c3cf46936544e579191fbbf64b0417 | [
"MIT"
] | 3 | 2019-05-04T01:08:44.000Z | 2021-07-29T22:35:35.000Z | src/plugins/search/commands.py | tulustul/MusicPlayer | e44ea89a00c3cf46936544e579191fbbf64b0417 | [
"MIT"
] | null | null | null | src/plugins/search/commands.py | tulustul/MusicPlayer | e44ea89a00c3cf46936544e579191fbbf64b0417 | [
"MIT"
] | null | null | null | import logging
from commands.decorator import command
from ui.window import Window
logger = logging.getLogger('search')
@command()
async def search(window: Window):
query = await window.input('Search:')
window.active_component.filter(query)
| 19.461538 | 41 | 0.758893 | 32 | 253 | 5.96875 | 0.59375 | 0.125654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.13834 | 253 | 12 | 42 | 21.083333 | 0.876147 | 0 | 0 | 0 | 0 | 0 | 0.051383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a3f596f8694e1a7f4a4547b7519feac858dc82d | 526 | py | Python | backend/officehoursqueue/settings/development.py | pennlabs/Office-Hours-Queue | f73ec90223c43595c9a167162d9d74abfb11ca42 | [
"MIT"
] | 8 | 2020-09-05T21:12:25.000Z | 2022-01-30T18:25:12.000Z | backend/officehoursqueue/settings/development.py | pennlabs/Office-Hours-Queue | f73ec90223c43595c9a167162d9d74abfb11ca42 | [
"MIT"
] | 161 | 2020-08-05T17:05:56.000Z | 2022-03-27T17:44:51.000Z | backend/officehoursqueue/settings/development.py | pennlabs/office-hours-queue | fce98d3a1b83d1459f61e6d9c3347ef619ee384e | [
"MIT"
] | null | null | null | import os
from officehoursqueue.settings.base import * # noqa: F401, F403
from officehoursqueue.settings.base import INSTALLED_APPS, MIDDLEWARE
# Development extensions
INSTALLED_APPS += ["django_extensions", "debug_toolbar"]
MIDDLEWARE = ["debug_toolbar.middleware.DebugToolbarMiddleware"] + MIDDLEWARE
INTERNAL_IP... | 29.222222 | 77 | 0.790875 | 64 | 526 | 6.359375 | 0.65625 | 0.09828 | 0.137592 | 0.157248 | 0.186732 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027719 | 0.108365 | 526 | 17 | 78 | 30.941176 | 0.840085 | 0.205323 | 0 | 0 | 0 | 0 | 0.387409 | 0.290557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a409d95c656d48a4b910a9c2f33378a3610b4fb | 12,650 | py | Python | intern/cycles/blender/addon/engine.py | juangea/boneMaster | 04a93067b25aa4f2206ea7b6f159e887dc0b64ec | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 33 | 2019-06-10T22:59:54.000Z | 2022-03-24T09:16:01.000Z | intern/cycles/blender/addon/engine.py | juangea/boneMaster | 04a93067b25aa4f2206ea7b6f159e887dc0b64ec | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 5 | 2019-06-21T21:06:34.000Z | 2021-06-26T21:58:45.000Z | intern/cycles/blender/addon/engine.py | juangea/boneMaster | 04a93067b25aa4f2206ea7b6f159e887dc0b64ec | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 14 | 2019-06-21T12:14:23.000Z | 2021-08-25T14:57:06.000Z | #
# Copyright 2011-2013 Blender Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.285714 | 117 | 0.617312 | 1,512 | 12,650 | 4.968254 | 0.257937 | 0.023296 | 0.024494 | 0.036741 | 0.241613 | 0.172125 | 0.108227 | 0.065495 | 0.045793 | 0.025293 | 0 | 0.006037 | 0.279842 | 12,650 | 321 | 118 | 39.4081 | 0.818551 | 0.129091 | 0 | 0.206422 | 0 | 0 | 0.158768 | 0.02716 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087156 | false | 0.183486 | 0.119266 | 0 | 0.252294 | 0.018349 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a41ba7d274c5f3fd722c3b4282b65f68ce73b3c | 1,203 | py | Python | src/main/python/programa.py | cassianomaia/compilador-wallpaper | e4aa4cb969b0e49148c3177af60851310519f55e | [
"MIT"
] | null | null | null | src/main/python/programa.py | cassianomaia/compilador-wallpaper | e4aa4cb969b0e49148c3177af60851310519f55e | [
"MIT"
] | null | null | null | src/main/python/programa.py | cassianomaia/compilador-wallpaper | e4aa4cb969b0e49148c3177af60851310519f55e | [
"MIT"
] | null | null | null | #!/usr/bin/python3.7
#-*- coding utf8 -*-
import PIL
from .utils import Tamanho, Posicao
class Elemento():
"""
Classe abstrata de elementos do programa
"""
pass
class Imagem(Elemento):
"""
Classe de imagens
"""
pass
class Cor(Elemento):
"""
Classe de cores
"... | 20.05 | 54 | 0.525353 | 141 | 1,203 | 4.163121 | 0.35461 | 0.083475 | 0.081772 | 0.109029 | 0.402044 | 0.402044 | 0.402044 | 0.402044 | 0.29983 | 0.29983 | 0 | 0.014286 | 0.359934 | 1,203 | 59 | 55 | 20.389831 | 0.748052 | 0.128013 | 0 | 0.606061 | 0 | 0 | 0.012358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0.121212 | 0.060606 | 0.030303 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a422dbf4a1ac731ef28676c2b9adec0e7694683 | 19,859 | py | Python | smartcab/environment.py | Boykai/Train-A-Smartcab-to-Drive | f2f0fc199f6ce081642c56966b30e07624589a90 | [
"MIT"
] | null | null | null | smartcab/environment.py | Boykai/Train-A-Smartcab-to-Drive | f2f0fc199f6ce081642c56966b30e07624589a90 | [
"MIT"
] | null | null | null | smartcab/environment.py | Boykai/Train-A-Smartcab-to-Drive | f2f0fc199f6ce081642c56966b30e07624589a90 | [
"MIT"
] | null | null | null | import time
import random
import math
from collections import OrderedDict
from simulator import Simulator
class TrafficLight(object):
"""A traffic light that switches periodically."""
valid_states = [True, False] # True = NS open; False = EW open
def __init__(self, state=None, period=None):
sel... | 42.61588 | 164 | 0.572637 | 2,357 | 19,859 | 4.742894 | 0.144675 | 0.028983 | 0.021469 | 0.010734 | 0.29457 | 0.220682 | 0.184274 | 0.149656 | 0.124519 | 0.115216 | 0 | 0.016154 | 0.317337 | 19,859 | 466 | 165 | 42.61588 | 0.808438 | 0.171106 | 0 | 0.271566 | 0 | 0 | 0.089062 | 0 | 0 | 0 | 0 | 0 | 0.009585 | 0 | null | null | 0.00639 | 0.015974 | null | null | 0.038339 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a49dfc58d9c1643c0bc1605514f772bfba4d57f | 41,427 | py | Python | test/high_availability/test_ha.py | ljlok/mongo-python-driver | 52c33fe9271acd35a8b938d6ce2bb48e779386d3 | [
"Apache-2.0"
] | 1 | 2017-05-25T04:23:58.000Z | 2017-05-25T04:23:58.000Z | test/high_availability/test_ha.py | ljlok/mongo-python-driver | 52c33fe9271acd35a8b938d6ce2bb48e779386d3 | [
"Apache-2.0"
] | null | null | null | test/high_availability/test_ha.py | ljlok/mongo-python-driver | 52c33fe9271acd35a8b938d6ce2bb48e779386d3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2009-2014 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 35.167233 | 81 | 0.611727 | 4,576 | 41,427 | 5.370411 | 0.116477 | 0.024212 | 0.013835 | 0.023438 | 0.514629 | 0.432798 | 0.360895 | 0.31235 | 0.270031 | 0.235524 | 0 | 0.007856 | 0.290221 | 41,427 | 1,177 | 82 | 35.197111 | 0.827915 | 0.15333 | 0 | 0.462567 | 0 | 0 | 0.043188 | 0.000893 | 0 | 0 | 0 | 0 | 0.205882 | 0 | null | null | 0.024064 | 0.020053 | null | null | 0.004011 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a4a703952b3aad6a4399df7a7c584a1d9267c3e | 6,753 | py | Python | examples/gpr_autoreg_example.py | MattAshman/geepee | ae71998579cb80e160f7ea5eb5adfa1c937fb90a | [
"MIT"
] | 24 | 2017-08-16T18:45:22.000Z | 2021-04-28T08:21:36.000Z | examples/gpr_autoreg_example.py | yohanJung/geepee | 4809c4f78efb9134677af57187957d8ba479ddea | [
"MIT"
] | 7 | 2017-05-31T17:09:58.000Z | 2018-05-21T02:26:25.000Z | examples/gpr_autoreg_example.py | yohanJung/geepee | 4809c4f78efb9134677af57187957d8ba479ddea | [
"MIT"
] | 10 | 2017-06-02T08:13:54.000Z | 2021-12-07T13:48:22.000Z | print "importing stuff..."
import matplotlib
matplotlib.use('Agg')
import numpy as np
import pdb
import matplotlib.pylab as plt
from scipy import special
from .context import vfe, compute_kernel, compute_psi_weave
jitter = 1e-5
class AutoSGPR(object):
def __init__(self, X_train, Y_train, M):
self.N_trai... | 36.502703 | 80 | 0.527914 | 999 | 6,753 | 3.405405 | 0.199199 | 0.026455 | 0.014403 | 0.017637 | 0.616696 | 0.559083 | 0.494709 | 0.480012 | 0.471487 | 0.467078 | 0 | 0.023841 | 0.322968 | 6,753 | 184 | 81 | 36.701087 | 0.720254 | 0.037317 | 0 | 0.483871 | 0 | 0 | 0.045588 | 0.009549 | 0 | 0 | 0 | 0.005435 | 0 | 0 | null | null | 0 | 0.045161 | null | null | 0.03871 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a4d02cc86757d64e4ff1718f7e29b50a8828573 | 1,957 | py | Python | WeatherStationSensorsReader/tests/controllers/test_wind_measurement_controller.py | weather-station-project/weather-station-sensors-reader | cda7902ee382248b41d14b9a2c0543817decbb4a | [
"MIT"
] | null | null | null | WeatherStationSensorsReader/tests/controllers/test_wind_measurement_controller.py | weather-station-project/weather-station-sensors-reader | cda7902ee382248b41d14b9a2c0543817decbb4a | [
"MIT"
] | null | null | null | WeatherStationSensorsReader/tests/controllers/test_wind_measurement_controller.py | weather-station-project/weather-station-sensors-reader | cda7902ee382248b41d14b9a2c0543817decbb4a | [
"MIT"
] | null | null | null | import sys
import unittest
from unittest import mock
from unittest.mock import MagicMock
sys.modules['MCP342X'] = MagicMock()
from controllers.wind_measurement_controller import WindMeasurementController
from dao.wind_measurement_dao import WindMeasurementDao
from sensors.wind_measurement_sensor import WindMeasurement... | 44.477273 | 139 | 0.650485 | 172 | 1,957 | 7.011628 | 0.302326 | 0.11194 | 0.063018 | 0.089552 | 0.233831 | 0.187396 | 0.112769 | 0.112769 | 0.112769 | 0.112769 | 0 | 0.003628 | 0.295861 | 1,957 | 43 | 140 | 45.511628 | 0.871553 | 0.009198 | 0 | 0.1875 | 0 | 0 | 0.093023 | 0.061499 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.03125 | false | 0.09375 | 0.21875 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a4df7e518ed6cc40d81645b6472a59606920ca4 | 2,354 | py | Python | communication_channels/smtp.py | DeKubus/SimpleServerMon | 74bd00f8613c1573abd241a4e1bfa2525162707b | [
"MIT"
] | null | null | null | communication_channels/smtp.py | DeKubus/SimpleServerMon | 74bd00f8613c1573abd241a4e1bfa2525162707b | [
"MIT"
] | null | null | null | communication_channels/smtp.py | DeKubus/SimpleServerMon | 74bd00f8613c1573abd241a4e1bfa2525162707b | [
"MIT"
] | null | null | null | from .base_channel import CommunicationChannel
import logging
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
class SmtpChannel(CommunicationChannel):
def __init__(self, config) -> None:
if "server" in config and config["server"]:
self.server ... | 39.233333 | 83 | 0.599405 | 257 | 2,354 | 5.350195 | 0.268482 | 0.040727 | 0.056 | 0.086545 | 0.104727 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001813 | 0.296941 | 2,354 | 59 | 84 | 39.898305 | 0.829003 | 0 | 0 | 0.125 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.071429 | 0.089286 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a4f1f51edc71ecf76f7f226002bb80f436e7442 | 2,014 | py | Python | fun/bst.py | iganichev/scratch | e570f77abb855a21ec4ef893b5cfc97d331d0ce5 | [
"MIT"
] | null | null | null | fun/bst.py | iganichev/scratch | e570f77abb855a21ec4ef893b5cfc97d331d0ce5 | [
"MIT"
] | null | null | null | fun/bst.py | iganichev/scratch | e570f77abb855a21ec4ef893b5cfc97d331d0ce5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
class Stack(object):
def __init__(self):
self.stack = []
def push(self, val):
self.stack.append(val)
return self
def pop(self):
return self.stack.pop()
@property
def top(self):
return self.stack[-1]
def __str__(self):
ret... | 22.629213 | 62 | 0.506455 | 247 | 2,014 | 4 | 0.222672 | 0.054656 | 0.039474 | 0.051619 | 0.082996 | 0.046559 | 0 | 0 | 0 | 0 | 0 | 0.0128 | 0.379345 | 2,014 | 88 | 63 | 22.886364 | 0.7776 | 0.02433 | 0 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a58324af8c969234478d33957fc6586f1d1039d | 1,931 | py | Python | api/standup/goals/migrations/0001_initial.py | adoval4/standup | 307200b46952c8129a36931103920d3200640b83 | [
"BSD-2-Clause"
] | null | null | null | api/standup/goals/migrations/0001_initial.py | adoval4/standup | 307200b46952c8129a36931103920d3200640b83 | [
"BSD-2-Clause"
] | 11 | 2020-02-12T02:27:29.000Z | 2022-03-12T00:08:22.000Z | api/standup/goals/migrations/0001_initial.py | adoval4/standup | 307200b46952c8129a36931103920d3200640b83 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.1.11 on 2019-11-25 10:56
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 = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | 47.097561 | 174 | 0.622993 | 217 | 1,931 | 5.387097 | 0.428571 | 0.081266 | 0.051326 | 0.065013 | 0.232678 | 0.232678 | 0.181352 | 0.181352 | 0.066724 | 0.066724 | 0 | 0.018318 | 0.236665 | 1,931 | 40 | 175 | 48.275 | 0.774763 | 0.023822 | 0 | 0 | 1 | 0 | 0.18906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121212 | 0 | 0.242424 | 0 | 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 |
4a58722874cf5348c15d91d6c63a14ba15d89735 | 1,950 | py | Python | script.module.nanscrapers/lib/nanscrapers/scraperplugins/imdark.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2019-03-05T09:37:15.000Z | 2019-03-05T09:37:15.000Z | script.module.nanscrapers/lib/nanscrapers/scraperplugins/imdark.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | null | null | null | script.module.nanscrapers/lib/nanscrapers/scraperplugins/imdark.py | TheWardoctor/wardoctors-repo | 893f646d9e27251ffc00ca5f918e4eb859a5c8f0 | [
"Apache-2.0"
] | 1 | 2021-11-05T20:48:09.000Z | 2021-11-05T20:48:09.000Z | import re
import requests
import xbmc
import urllib
from ..scraper import Scraper
from ..common import clean_title,clean_search
session = requests.Session()
User_Agent = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36'
class imdark(Scraper):
domains ... | 39 | 163 | 0.578974 | 245 | 1,950 | 4.514286 | 0.404082 | 0.048825 | 0.028933 | 0.030741 | 0.265823 | 0.220615 | 0.162749 | 0.162749 | 0.162749 | 0.162749 | 0 | 0.037736 | 0.266154 | 1,950 | 49 | 164 | 39.795918 | 0.73515 | 0 | 0 | 0.146341 | 0 | 0.04878 | 0.224218 | 0.060544 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.02439 | 0.146341 | 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 |
4a5b3d73f7379412b5b080905815ba0ce7ceecf2 | 4,726 | py | Python | src/rlmamr/MA_hddrqn/utils/memory.py | yuchen-x/CoRL2019 | d482a90441bc8eb0461f1f22fbd65d96584f6914 | [
"MIT"
] | 2 | 2020-02-05T04:17:03.000Z | 2021-05-24T04:07:36.000Z | src/rlmamr/MA_hddrqn/utils/memory.py | yuchen-x/CoRL2019 | d482a90441bc8eb0461f1f22fbd65d96584f6914 | [
"MIT"
] | null | null | null | src/rlmamr/MA_hddrqn/utils/memory.py | yuchen-x/CoRL2019 | d482a90441bc8eb0461f1f22fbd65d96584f6914 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import IPython
from IPython.core.debugger import set_trace
from collections import deque
class ReplayMemory:
"""Base class of a replay buffer"""
def __init__(self, n_agent, obs_size, batch_size, size):
"""
Parameters
----------
n_agent : int
... | 33.51773 | 89 | 0.589505 | 585 | 4,726 | 4.536752 | 0.174359 | 0.057272 | 0.068576 | 0.03165 | 0.560286 | 0.495855 | 0.455162 | 0.430294 | 0.430294 | 0.410701 | 0 | 0.009254 | 0.314008 | 4,726 | 140 | 90 | 33.757143 | 0.809377 | 0.234871 | 0 | 0.447761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 1 | 0.208955 | false | 0 | 0.074627 | 0 | 0.373134 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a5ceaf446f8942564316aa78c27824dbac20624 | 534 | py | Python | ScienceCruiseDataManagement/metadata/migrations/0019_datasetcitation_dataset_creator.py | Swiss-Polar-Institute/science-cruise-data-management | 67721a0f4a1255b8ac43e530ed95a8c324239c7c | [
"MIT"
] | 6 | 2017-10-06T09:18:04.000Z | 2022-02-10T08:54:56.000Z | ScienceCruiseDataManagement/metadata/migrations/0019_datasetcitation_dataset_creator.py | Swiss-Polar-Institute/science-cruise-data-management | 67721a0f4a1255b8ac43e530ed95a8c324239c7c | [
"MIT"
] | 12 | 2020-02-27T09:24:50.000Z | 2021-09-22T17:39:55.000Z | ScienceCruiseDataManagement/metadata/migrations/0019_datasetcitation_dataset_creator.py | Swiss-Polar-Institute/science-cruise-data-management | 67721a0f4a1255b8ac43e530ed95a8c324239c7c | [
"MIT"
] | 1 | 2017-10-16T13:49:33.000Z | 2017-10-16T13:49:33.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-02-19 14:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0054_auto_20170219_1419'),
('metadata', '0018_auto_20170219_1501'),
]
... | 24.272727 | 71 | 0.631086 | 58 | 534 | 5.586207 | 0.810345 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121588 | 0.245318 | 534 | 21 | 72 | 25.428571 | 0.682382 | 0.127341 | 0 | 0 | 1 | 0 | 0.213823 | 0.099352 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a61041fcfda85d6ddb9208921dbb22079fdd901 | 478 | py | Python | minOfThree/minOfThree.py | RushankShetty/code-abbey | d4b96ce7ebe6f403d2c9c1d095ac28b92e09a6cc | [
"MIT"
] | null | null | null | minOfThree/minOfThree.py | RushankShetty/code-abbey | d4b96ce7ebe6f403d2c9c1d095ac28b92e09a6cc | [
"MIT"
] | null | null | null | minOfThree/minOfThree.py | RushankShetty/code-abbey | d4b96ce7ebe6f403d2c9c1d095ac28b92e09a6cc | [
"MIT"
] | null | null | null | # create an empty list
inputList = []
# open the file containing the input
with open('input.txt') as f:
for line in f:
for word in line.split():
# add elements to the empty list
inputList.append(word)
# remove the first or 0th element of the list
# and store it in a variable
n = inputList.pop(0)
# start fi... | 23.9 | 50 | 0.692469 | 86 | 478 | 3.848837 | 0.581395 | 0.145015 | 0.1571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013123 | 0.202929 | 478 | 20 | 51 | 23.9 | 0.855643 | 0.433054 | 0 | 0 | 0 | 0 | 0.033962 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a625d0e09801593b379e4189dc7e0be59b90c94 | 1,337 | py | Python | virl/cli/views/console/console_views.py | tombry/virlutils | e98136b4e88c456828f2d0496c14f851f2627a46 | [
"MIT"
] | 133 | 2018-07-01T06:08:49.000Z | 2022-03-26T15:22:21.000Z | virl/cli/views/console/console_views.py | tombry/virlutils | e98136b4e88c456828f2d0496c14f851f2627a46 | [
"MIT"
] | 76 | 2018-06-28T16:41:57.000Z | 2022-03-26T17:23:06.000Z | virl/cli/views/console/console_views.py | tombry/virlutils | e98136b4e88c456828f2d0496c14f851f2627a46 | [
"MIT"
] | 43 | 2018-06-27T20:40:52.000Z | 2022-02-22T06:16:11.000Z | import tabulate
import click
def console_table(consoles):
click.secho("Here is a list of all the running consoles")
headers = ["Node", "Console Path"]
table = list()
for console in consoles:
tr = list()
tr.append(console["node"])
tr.append(console["console"])
table.appe... | 31.093023 | 76 | 0.631264 | 171 | 1,337 | 4.865497 | 0.292398 | 0.048077 | 0.081731 | 0.120192 | 0.709135 | 0.663462 | 0.663462 | 0.663462 | 0.663462 | 0.663462 | 0 | 0.002985 | 0.248317 | 1,337 | 42 | 77 | 31.833333 | 0.824876 | 0.145849 | 0 | 0.451613 | 0 | 0 | 0.101019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a64e5fd0c718f6294f8ea09f5abd31e87ba6c83 | 3,421 | py | Python | pyxnat/core/errors.py | onealbao/pyxnat | bd7e09a9751d9035b1f86fb9a9c5387c466fba84 | [
"BSD-3-Clause"
] | null | null | null | pyxnat/core/errors.py | onealbao/pyxnat | bd7e09a9751d9035b1f86fb9a9c5387c466fba84 | [
"BSD-3-Clause"
] | null | null | null | pyxnat/core/errors.py | onealbao/pyxnat | bd7e09a9751d9035b1f86fb9a9c5387c466fba84 | [
"BSD-3-Clause"
] | null | null | null | import re
from lxml import etree
import six
if six.PY3:
unicode = str
# parsing functions
def is_xnat_error(message):
a = ['<!DOCTYPE', '<html>']
try:
return message.startswith(a[0]) or message.startswith(a[1])
except TypeError:
if isinstance(message, bytes):
a = [bytes(e... | 24.091549 | 77 | 0.608009 | 373 | 3,421 | 5.439678 | 0.327078 | 0.039428 | 0.0483 | 0.037457 | 0.182356 | 0.147856 | 0.147856 | 0.127156 | 0.093642 | 0.093642 | 0 | 0.006612 | 0.292605 | 3,421 | 141 | 78 | 24.262411 | 0.831818 | 0.102894 | 0 | 0.351648 | 0 | 0 | 0.065708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043956 | false | 0.131868 | 0.032967 | 0 | 0.252747 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a66da863aa284b67cb4e54cc6cedd91cef4b8a1 | 2,024 | py | Python | tests/nws/test_vtec.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 29 | 2015-09-02T15:53:48.000Z | 2022-02-04T19:47:49.000Z | tests/nws/test_vtec.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 531 | 2015-01-13T20:58:33.000Z | 2022-03-30T13:59:14.000Z | tests/nws/test_vtec.py | akrherz/pyIEM | ec0acdc4c6b507b0d558ce216d4bbdbcb9b2f364 | [
"MIT"
] | 7 | 2015-02-28T22:34:32.000Z | 2020-12-06T05:16:13.000Z | """Unit tests for pyiem.nws.vtec"""
from pyiem.util import utc
from pyiem.nws import vtec
EX1 = "/O.NEW.KJAN.TO.W.0130.050829T1651Z-050829T1815Z/"
def test_beginstring_combos():
"""Test our begin string logic."""
vc = vtec.parse("/O.NEW.KJAN.TO.W.0130.000000T0000Z-000000T0000Z/")
assert vc[0].get_begin_... | 26.285714 | 71 | 0.643775 | 310 | 2,024 | 4.106452 | 0.309677 | 0.060487 | 0.077769 | 0.051846 | 0.452474 | 0.424195 | 0.392773 | 0.342498 | 0.271013 | 0.199529 | 0 | 0.10847 | 0.189229 | 2,024 | 76 | 72 | 26.631579 | 0.667276 | 0.206522 | 0 | 0.125 | 0 | 0 | 0.236246 | 0.15534 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.275 | false | 0 | 0.05 | 0 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a67d79ac35ec6f2d781fd163fc11076ed6dd7cd | 572 | py | Python | main.py | CoolCoder1337/python-hwid-auth | 1e29db11bc6afaeb7633df7d0383f34f0ae3d521 | [
"CC0-1.0"
] | null | null | null | main.py | CoolCoder1337/python-hwid-auth | 1e29db11bc6afaeb7633df7d0383f34f0ae3d521 | [
"CC0-1.0"
] | null | null | null | main.py | CoolCoder1337/python-hwid-auth | 1e29db11bc6afaeb7633df7d0383f34f0ae3d521 | [
"CC0-1.0"
] | null | null | null | import subprocess, requests, time, os
hwid = subprocess.check_output('wmic csproduct get uuid').decode().split('\n')[1].strip()
r = requests.get('url here') # replace 'url here' with your pastebin with the hwids of the authorized users
try:
if hwid in r.text:
pass
else:
print('[ERROR] HWID Not... | 24.869565 | 107 | 0.634615 | 80 | 572 | 4.5 | 0.65 | 0.038889 | 0.055556 | 0.066667 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006787 | 0.227273 | 572 | 22 | 108 | 26 | 0.807692 | 0.132867 | 0 | 0.222222 | 0 | 0 | 0.287449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.055556 | 0 | 0.055556 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4a6833597113fdb2a595cf290a890c39f5e389c3 | 1,985 | py | Python | application/src/database_manager/get_message_by_id.py | eyardley/CSC648-SoftwareEngineering-Snapster | 6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a | [
"MIT"
] | null | null | null | application/src/database_manager/get_message_by_id.py | eyardley/CSC648-SoftwareEngineering-Snapster | 6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a | [
"MIT"
] | 3 | 2021-06-08T21:39:12.000Z | 2022-01-13T02:46:20.000Z | application/src/database_manager/get_message_by_id.py | eyardley/CSC648-SoftwareEngineering-Snapster | 6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a | [
"MIT"
] | 1 | 2021-05-09T21:01:28.000Z | 2021-05-09T21:01:28.000Z | import mysql.connector
def get_message_by_id(message_id, requester_id, db):
try:
# get the specific message
get_message_by_id_query = (
"SELECT m.subject, m.time_stamp, m.message_body, m.recipient, m.media_id,"
" u.username AS sender"
" FROM messages m"
... | 33.644068 | 92 | 0.551637 | 229 | 1,985 | 4.567686 | 0.375546 | 0.060229 | 0.034417 | 0.040153 | 0.068834 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001571 | 0.35869 | 1,985 | 59 | 93 | 33.644068 | 0.82011 | 0.156171 | 0 | 0.142857 | 0 | 0.02381 | 0.23741 | 0 | 0 | 0 | 0 | 0.016949 | 0 | 1 | 0.02381 | false | 0 | 0.02381 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4a6c4d1a46902ef5ca438af96f1aa0abfdc59102 | 2,229 | py | Python | api/tests/test_create.py | Ecmek/kiss_me | fbe01b19e09bcc1af2824c9d1a97189d588df12d | [
"MIT"
] | 2 | 2021-10-19T08:38:39.000Z | 2021-10-20T08:10:47.000Z | api/tests/test_create.py | Ecmek/kiss_me | fbe01b19e09bcc1af2824c9d1a97189d588df12d | [
"MIT"
] | null | null | null | api/tests/test_create.py | Ecmek/kiss_me | fbe01b19e09bcc1af2824c9d1a97189d588df12d | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from faker import Faker
from rest_framework import status
from rest_framework.test import APIClient, APITestCase
from rest_framework_simplejwt.tokens import RefreshToken
User = get_user_model()
faker = Faker()
def auth_client(user):
refresh = RefreshToken.for_user(u... | 34.828125 | 75 | 0.631673 | 252 | 2,229 | 5.420635 | 0.27381 | 0.064422 | 0.070278 | 0.061493 | 0.641288 | 0.622255 | 0.622255 | 0.597365 | 0.538799 | 0.538799 | 0 | 0.006536 | 0.244953 | 2,229 | 63 | 76 | 35.380952 | 0.80511 | 0.010767 | 0 | 0.574074 | 0 | 0 | 0.089131 | 0.010005 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.074074 | false | 0.092593 | 0.092593 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a6eafba9aaf997b2f26575a0884198c6471e12a | 1,273 | py | Python | head_first_learn_to_code/chapter_2.py | jrj92280/python-kata | 6207af1d7898df21dc9d35dde906fb3486375a2e | [
"MIT"
] | 3 | 2018-07-19T21:37:33.000Z | 2019-05-04T00:40:23.000Z | head_first_learn_to_code/chapter_2.py | jrj92280/python-kata | 6207af1d7898df21dc9d35dde906fb3486375a2e | [
"MIT"
] | null | null | null | head_first_learn_to_code/chapter_2.py | jrj92280/python-kata | 6207af1d7898df21dc9d35dde906fb3486375a2e | [
"MIT"
] | null | null | null | # cup1 = 0
# cup2 = 1
# cup3 = 0
# cup1 = cup1 + 1
# cup2 = cup1 - 1
# cup3 =cup1
# cup1= cup1 * 0
# cup2 = cup3
# cup3 = cup1
# cup1 = cup2 % 1
# cup3 = cup2
# cup2 = cup3 - cup3
#
# word1 = 'ox'
# word2 = 'owl'
# word3 = 'cow'
# word4 = 'sheep'
# word5 = 'files'
# word6 = 'trots'
# word7 = 'runs'
# word8 = 'blue'
# ... | 19.287879 | 110 | 0.606441 | 159 | 1,273 | 4.855346 | 0.421384 | 0.103627 | 0.023316 | 0.03886 | 0.07772 | 0.07772 | 0 | 0 | 0 | 0 | 0 | 0.060878 | 0.212883 | 1,273 | 65 | 111 | 19.584615 | 0.709581 | 0.823252 | 0 | 0 | 0 | 0 | 0.10119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 |
4a70e3ea88f9a4f641c382f94d0c89cce09b9339 | 872 | py | Python | third_party/blink/tools/blinkpy/formatter/fix_single_quote_strings.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/tools/blinkpy/formatter/fix_single_quote_strings.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/tools/blinkpy/formatter/fix_single_quote_strings.py | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A 2to3 fixer that converts all string literals to use single quotes.
Strings that contain single quotes will not be modified. Prefixed string
literals wil... | 31.142857 | 78 | 0.702982 | 122 | 872 | 5 | 0.606557 | 0.07377 | 0.042623 | 0.072131 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018759 | 0.205275 | 872 | 27 | 79 | 32.296296 | 0.861472 | 0.465596 | 0 | 0 | 0 | 0 | 0.015317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 |
4a7e30922671a886e857dc69d3f8db858ce21236 | 475 | py | Python | zipline/pipeline/factors/latest.py | colin1alexander/zipline | ba42e6d8b972dcce9271526562ceff0cddd3fa30 | [
"Apache-2.0"
] | null | null | null | zipline/pipeline/factors/latest.py | colin1alexander/zipline | ba42e6d8b972dcce9271526562ceff0cddd3fa30 | [
"Apache-2.0"
] | null | null | null | zipline/pipeline/factors/latest.py | colin1alexander/zipline | ba42e6d8b972dcce9271526562ceff0cddd3fa30 | [
"Apache-2.0"
] | null | null | null | """
Factor that produces the most most recently-known value of Column.
"""
from .factor import CustomFactor
from ..mixins import SingleInputMixin
class Latest(SingleInputMixin, CustomFactor):
"""
Factor producing the most recently-known value of `inputs[0]` on each day.
The `.latest` attribute of DataSet... | 25 | 78 | 0.692632 | 61 | 475 | 5.377049 | 0.655738 | 0.042683 | 0.103659 | 0.134146 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008 | 0.210526 | 475 | 18 | 79 | 26.388889 | 0.866667 | 0.465263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a7f362c1d7bdd9751e5c84b676ee88213da2608 | 2,984 | py | Python | aea/protocols/signing/custom_types.py | ejfitzgerald/agents-aea | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | [
"Apache-2.0"
] | 13 | 2020-11-13T11:29:46.000Z | 2021-11-29T18:29:41.000Z | aea/protocols/signing/custom_types.py | ejfitzgerald/agents-aea | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | [
"Apache-2.0"
] | 7 | 2020-11-13T10:37:16.000Z | 2020-12-21T08:08:12.000Z | aea/protocols/signing/custom_types.py | ejfitzgerald/agents-aea | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | [
"Apache-2.0"
] | 4 | 2020-11-27T20:50:09.000Z | 2021-11-30T16:36:29.000Z | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2020 fetchai
#
# 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
#
#... | 43.246377 | 157 | 0.72118 | 372 | 2,984 | 5.658602 | 0.33871 | 0.064133 | 0.072684 | 0.098337 | 0.364371 | 0.331591 | 0.180998 | 0.180998 | 0.180998 | 0.180998 | 0 | 0.005287 | 0.175938 | 2,984 | 68 | 158 | 43.882353 | 0.850752 | 0.597855 | 0 | 0 | 0 | 0 | 0.016822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4a83a5159de957547428a47b66bbc9560bc4edf3 | 1,240 | py | Python | challenges/PseudoQueue/queue_with_stacks.py | glasscharlie/data-structures-and-algorithms | 4546a0606334c6e3156b567d8cc82d39fb183c58 | [
"MIT"
] | null | null | null | challenges/PseudoQueue/queue_with_stacks.py | glasscharlie/data-structures-and-algorithms | 4546a0606334c6e3156b567d8cc82d39fb183c58 | [
"MIT"
] | 4 | 2019-12-02T22:28:03.000Z | 2019-12-09T04:17:53.000Z | challenges/PseudoQueue/queue_with_stacks.py | glasscharlie/data-structures-and-algorithms | 4546a0606334c6e3156b567d8cc82d39fb183c58 | [
"MIT"
] | null | null | null | class Node:
def __init__(self, value=None):
self.value = value
self.next = None
class Stack():
def __init__(self):
self.top = None
def push(self, item):
new_node = Node(item)
new_node.next = self.top
self.top = new_node
def pop(self):
current = sel... | 20.666667 | 43 | 0.544355 | 151 | 1,240 | 4.370861 | 0.264901 | 0.084848 | 0.05 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01218 | 0.337903 | 1,240 | 59 | 44 | 21.016949 | 0.791717 | 0.062903 | 0 | 0.133333 | 0 | 0 | 0.012976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0.022222 | 0.4 | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4a8480eab6956d8de799cdabe84fb3d921b3a4f4 | 317 | py | Python | rllib/agents/a3c/__init__.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 4 | 2019-10-18T17:44:58.000Z | 2021-04-14T14:37:21.000Z | rllib/agents/a3c/__init__.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 4 | 2019-03-04T13:03:24.000Z | 2019-06-06T11:25:07.000Z | rllib/agents/a3c/__init__.py | hershg/ray | a1744f67fe954d8408c5b84e28ecccc130157f8e | [
"Apache-2.0"
] | 2 | 2017-10-31T23:20:07.000Z | 2019-11-13T20:16:03.000Z | from ray.rllib.agents.a3c.a3c import A3CTrainer, DEFAULT_CONFIG
from ray.rllib.agents.a3c.a2c import A2CTrainer
from ray.rllib.utils import renamed_agent
A2CAgent = renamed_agent(A2CTrainer)
A3CAgent = renamed_agent(A3CTrainer)
__all__ = [
"A2CAgent", "A3CAgent", "A2CTrainer", "A3CTrainer", "DEFAULT_CONFIG"
]
| 28.818182 | 72 | 0.785489 | 40 | 317 | 6 | 0.425 | 0.0875 | 0.15 | 0.15 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04947 | 0.107256 | 317 | 10 | 73 | 31.7 | 0.798587 | 0 | 0 | 0 | 0 | 0 | 0.157729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4a86e637f7cb81e311ec4f3005ea25b042d3fbb1 | 3,774 | py | Python | blog/settings.py | xXcoronaXx/Dblog | 56ee1b8f6f74fabbe0e081921e6cff092661e8df | [
"MIT"
] | null | null | null | blog/settings.py | xXcoronaXx/Dblog | 56ee1b8f6f74fabbe0e081921e6cff092661e8df | [
"MIT"
] | null | null | null | blog/settings.py | xXcoronaXx/Dblog | 56ee1b8f6f74fabbe0e081921e6cff092661e8df | [
"MIT"
] | null | null | null | """
Django settings for blog project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | 24.828947 | 77 | 0.690779 | 435 | 3,774 | 5.85977 | 0.434483 | 0.071401 | 0.051785 | 0.058847 | 0.158886 | 0.089055 | 0.089055 | 0.089055 | 0.031385 | 0 | 0 | 0.013782 | 0.173291 | 3,774 | 151 | 78 | 24.993377 | 0.803205 | 0.279279 | 0 | 0 | 1 | 0 | 0.475465 | 0.369145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034884 | 0 | 0.034884 | 0 | 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 |
4a8b02df4186b0552e0fcd1041dd06fa85f40f2b | 8,038 | py | Python | MLCC/Feature Crosses/feature_crosses.py | kaka-lin/ML-Courses | d7111fe64db3efae9acafa4532824c9554dbcaf1 | [
"MIT"
] | null | null | null | MLCC/Feature Crosses/feature_crosses.py | kaka-lin/ML-Courses | d7111fe64db3efae9acafa4532824c9554dbcaf1 | [
"MIT"
] | null | null | null | MLCC/Feature Crosses/feature_crosses.py | kaka-lin/ML-Courses | d7111fe64db3efae9acafa4532824c9554dbcaf1 | [
"MIT"
] | null | null | null | # Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import math
from IPython import display
from matplotlib import cm
from matplotlib import gridspec
from matplotlib import pyplot as plt
import numpy as np
import pandas as p... | 34.796537 | 94 | 0.725554 | 921 | 8,038 | 6.002172 | 0.214984 | 0.061143 | 0.067836 | 0.061143 | 0.660275 | 0.639291 | 0.607453 | 0.607453 | 0.607453 | 0.607453 | 0 | 0.014163 | 0.200672 | 8,038 | 230 | 95 | 34.947826 | 0.846226 | 0.106494 | 0 | 0.552239 | 0 | 0 | 0.062831 | 0.006146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022388 | false | 0 | 0.089552 | 0 | 0.134328 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4a9474e26a3a81de3015bf60c38a7bbb51623a3d | 1,562 | py | Python | bucketlist/models/bucketlist_items.py | e-liyai/cp2-bucketlist | 0e816146f70967df018dfb10ef2d69a57ff333f0 | [
"MIT"
] | 3 | 2018-12-14T10:50:58.000Z | 2019-07-13T18:27:35.000Z | bucketlist/models/bucketlist_items.py | e-liyai/cp2-bucketlist | 0e816146f70967df018dfb10ef2d69a57ff333f0 | [
"MIT"
] | null | null | null | bucketlist/models/bucketlist_items.py | e-liyai/cp2-bucketlist | 0e816146f70967df018dfb10ef2d69a57ff333f0 | [
"MIT"
] | null | null | null | """
File : bucketlist_items.py
Date : April, 2017
Author : eugene liyai
Desc : Model class that creates bucketlists items and connects to database
"""
# ============================================================================
# necessary imports
# =================================================... | 38.097561 | 93 | 0.610115 | 160 | 1,562 | 5.81875 | 0.45 | 0.047261 | 0.03652 | 0.040816 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008071 | 0.206786 | 1,562 | 41 | 94 | 38.097561 | 0.743341 | 0.272087 | 0 | 0 | 0 | 0 | 0.096627 | 0.021878 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.173913 | 0 | 0.608696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.