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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c237eab0c099d5c3321cd95e513399431effe30 | 668 | py | Python | TransitPass/urls.py | Savior-19/Savior19 | b80c05a19ebadf73c3d88656b7c34b761cb02f3c | [
"MIT"
] | null | null | null | TransitPass/urls.py | Savior-19/Savior19 | b80c05a19ebadf73c3d88656b7c34b761cb02f3c | [
"MIT"
] | null | null | null | TransitPass/urls.py | Savior-19/Savior19 | b80c05a19ebadf73c3d88656b7c34b761cb02f3c | [
"MIT"
] | 4 | 2020-05-27T10:02:31.000Z | 2021-07-11T08:14:20.000Z | from django.urls import path
from . import views
urlpatterns = [
path('apply/', views.FillPassApplication, name='transit-pass-application-form'),
path('application-details/<int:appln_id>', views.DisplayApplicationToken, name='application-details'),
path('view-application-list/', views.DisplayApplication... | 39.294118 | 117 | 0.754491 | 71 | 668 | 7.070423 | 0.408451 | 0.089641 | 0.039841 | 0.059761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08982 | 668 | 17 | 118 | 39.294118 | 0.825658 | 0 | 0 | 0 | 0 | 0 | 0.415546 | 0.31988 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4c2609dfb8072ffe05951ef05454ba700de01952 | 789 | py | Python | students/models/group.py | Stanislav-Rybonka/studentsdb | efb1440db4ec640868342a5f74cd48784268781f | [
"MIT"
] | 1 | 2020-03-02T20:55:04.000Z | 2020-03-02T20:55:04.000Z | students/models/group.py | Stanislav-Rybonka/studentsdb | efb1440db4ec640868342a5f74cd48784268781f | [
"MIT"
] | 6 | 2020-06-05T17:18:41.000Z | 2022-03-11T23:14:47.000Z | students/models/group.py | Stanislav-Rybonka/studentsdb | efb1440db4ec640868342a5f74cd48784268781f | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext as _
class Group(models.Model):
"""
Group model
"""
title = models.CharField(max_length=256, blank=False, verbose_name=_('Name'))
leader = models.OneToOneField(
'Student', v... | 29.222222 | 94 | 0.64512 | 91 | 789 | 5.307692 | 0.549451 | 0.113872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00491 | 0.225602 | 789 | 26 | 95 | 30.346154 | 0.785597 | 0.013942 | 0 | 0 | 0 | 0 | 0.076115 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.176471 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c263e5689af5df6e8fbc9a6cee80e41efe505e2 | 2,319 | py | Python | frontegg/baseConfig/identity_mixin.py | pinikeizman/python-sdk | f8b2188bdf160408adf0068f2e3bd3cd4b0b4655 | [
"MIT"
] | null | null | null | frontegg/baseConfig/identity_mixin.py | pinikeizman/python-sdk | f8b2188bdf160408adf0068f2e3bd3cd4b0b4655 | [
"MIT"
] | null | null | null | frontegg/baseConfig/identity_mixin.py | pinikeizman/python-sdk | f8b2188bdf160408adf0068f2e3bd3cd4b0b4655 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from frontegg.helpers.frontegg_urls import frontegg_urls
import typing
import jwt
import requests
from frontegg.helpers.logger import logger
from jwt import InvalidTokenError
class IdentityClientMixin(metaclass=ABCMeta):
__publicKey = None
@property
@abstractmethod... | 32.661972 | 108 | 0.639069 | 257 | 2,319 | 5.571984 | 0.354086 | 0.075419 | 0.050279 | 0.046089 | 0.103352 | 0.030726 | 0 | 0 | 0 | 0 | 0 | 0.005974 | 0.278137 | 2,319 | 70 | 109 | 33.128571 | 0.849462 | 0 | 0 | 0.175439 | 0 | 0 | 0.131522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0.052632 | 0.122807 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4c2897e16dece2ba4ecd2dbef042a4f90f011294 | 786 | py | Python | main.py | TheRavehorn/DownloadExecuteReport-Virus | 9df26706e504d1df33e07c09fa56baa28d89f435 | [
"MIT"
] | null | null | null | main.py | TheRavehorn/DownloadExecuteReport-Virus | 9df26706e504d1df33e07c09fa56baa28d89f435 | [
"MIT"
] | null | null | null | main.py | TheRavehorn/DownloadExecuteReport-Virus | 9df26706e504d1df33e07c09fa56baa28d89f435 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import requests
import subprocess
import smtplib
import re
import os
import tempfile
def download(url):
get_response = requests.get(url)
file_name = url.split("/")[-1]
with open(file_name, "wb") as f:
f.write(get_response.content)
def send_mail(email, password, message):
... | 24.5625 | 97 | 0.720102 | 110 | 786 | 5.054545 | 0.581818 | 0.053957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011782 | 0.136132 | 786 | 31 | 98 | 25.354839 | 0.807069 | 0.036896 | 0 | 0 | 0 | 0.043478 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.130435 | 0.26087 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c31c440814ac777bd4779fa4968cf1b1847bcac | 1,263 | py | Python | integration/v2/test_service_instances.py | subhash12/cf-python-client | c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0 | [
"Apache-2.0"
] | 47 | 2017-12-17T00:54:33.000Z | 2022-02-25T09:54:52.000Z | integration/v2/test_service_instances.py | subhash12/cf-python-client | c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0 | [
"Apache-2.0"
] | 125 | 2017-10-27T09:38:10.000Z | 2022-03-10T07:53:35.000Z | integration/v2/test_service_instances.py | subhash12/cf-python-client | c0ecbb8ec85040fc2f74b6c52e1f9a6c6c16c4b0 | [
"Apache-2.0"
] | 50 | 2018-01-19T07:57:21.000Z | 2022-02-14T14:47:31.000Z | import logging
import unittest
from config_test import build_client_from_configuration
_logger = logging.getLogger(__name__)
class TestServiceInstances(unittest.TestCase):
def test_create_update_delete(self):
client = build_client_from_configuration()
result = client.v2.service_instances.create(... | 43.551724 | 129 | 0.69517 | 145 | 1,263 | 5.786207 | 0.351724 | 0.066746 | 0.125149 | 0.200238 | 0.299166 | 0.261025 | 0.170441 | 0 | 0 | 0 | 0 | 0.010784 | 0.192399 | 1,263 | 28 | 130 | 45.107143 | 0.811765 | 0 | 0 | 0.086957 | 0 | 0 | 0.087886 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.086957 | false | 0 | 0.130435 | 0 | 0.26087 | 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 |
4c3723af9b53c7e19a14d4d5a300a57c775f6c8c | 553 | py | Python | setup.py | Lif3line/myo-helper | 7c71a3ee693661ddba0171545bf5798f46231b3c | [
"MIT"
] | null | null | null | setup.py | Lif3line/myo-helper | 7c71a3ee693661ddba0171545bf5798f46231b3c | [
"MIT"
] | null | null | null | setup.py | Lif3line/myo-helper | 7c71a3ee693661ddba0171545bf5798f46231b3c | [
"MIT"
] | null | null | null | """Utiltiy functions for working with Myo Armband data."""
from setuptools import setup, find_packages
setup(name='myo_helper',
version='0.1',
description='Utiltiy functions for working with Myo Armband data',
author='Lif3line',
author_email='adamhartwell2@gmail.com',
license='MIT',
... | 27.65 | 85 | 0.631103 | 64 | 553 | 5.359375 | 0.65625 | 0.093294 | 0.110787 | 0.151604 | 0.25656 | 0.25656 | 0.25656 | 0.25656 | 0 | 0 | 0 | 0.012019 | 0.24774 | 553 | 19 | 86 | 29.105263 | 0.8125 | 0.151899 | 0 | 0 | 0 | 0 | 0.345572 | 0.049676 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c43be0918680e081f3bcc9acc58506e39754d60 | 1,421 | py | Python | setup.py | jerzydziewierz/typobs | 15fa697386f5fb3a1df53b865557c338be235d91 | [
"Apache-2.0"
] | null | null | null | setup.py | jerzydziewierz/typobs | 15fa697386f5fb3a1df53b865557c338be235d91 | [
"Apache-2.0"
] | null | null | null | setup.py | jerzydziewierz/typobs | 15fa697386f5fb3a1df53b865557c338be235d91 | [
"Apache-2.0"
] | null | null | null | # setup.py as described in:
# https://stackoverflow.com/questions/27494758/how-do-i-make-a-python-script-executable
# to install on your system, run:
# > pip install -e .
from setuptools import setup, find_packages
setup(
name='typobs',
version='0.0.3',
entry_points={
'console_scripts': [
... | 36.435897 | 87 | 0.640394 | 152 | 1,421 | 5.914474 | 0.625 | 0.048943 | 0.062291 | 0.124583 | 0.151279 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010899 | 0.225194 | 1,421 | 39 | 88 | 36.435897 | 0.805631 | 0.152006 | 0 | 0 | 0 | 0 | 0.584654 | 0.060884 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c483ae5f1b2a18e4178f810a8a5efb2cf0ef940 | 776 | py | Python | tests/test_selection.py | qrebjock/fanok | 5c3b95ca5f2ec90af7060c21409a11130bd350bd | [
"MIT"
] | null | null | null | tests/test_selection.py | qrebjock/fanok | 5c3b95ca5f2ec90af7060c21409a11130bd350bd | [
"MIT"
] | null | null | null | tests/test_selection.py | qrebjock/fanok | 5c3b95ca5f2ec90af7060c21409a11130bd350bd | [
"MIT"
] | 1 | 2020-08-26T12:20:26.000Z | 2020-08-26T12:20:26.000Z | import pytest
import numpy as np
from fanok.selection import adaptive_significance_threshold
@pytest.mark.parametrize(
"w, q, offset, expected",
[
([1, 2, 3, 4, 5], 0.1, 0, 1),
([-1, 2, -3, 4, 5], 0.1, 0, 4),
([-3, -2, -1, 0, 1, 2, 3], 0.1, 0, np.inf),
([-3, -2, -1, 0, 1, 2, ... | 27.714286 | 79 | 0.474227 | 135 | 776 | 2.674074 | 0.325926 | 0.055402 | 0.041551 | 0.044321 | 0.368421 | 0.368421 | 0.163435 | 0.163435 | 0.127424 | 0.127424 | 0 | 0.192884 | 0.311856 | 776 | 27 | 80 | 28.740741 | 0.483146 | 0 | 0 | 0 | 0 | 0 | 0.028351 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 1 | 0.043478 | false | 0 | 0.130435 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c49699fa44232922a69a87e2fa00808e22b315a | 7,256 | py | Python | unitcap/unit_cap.py | fintelia/habitationi | 7dd15ecbab0ad63a70505920766de9c27294fb6e | [
"Apache-2.0"
] | 1 | 2021-10-03T14:44:38.000Z | 2021-10-03T14:44:38.000Z | unitcap/unit_cap.py | fintelia/habitationi | 7dd15ecbab0ad63a70505920766de9c27294fb6e | [
"Apache-2.0"
] | null | null | null | unitcap/unit_cap.py | fintelia/habitationi | 7dd15ecbab0ad63a70505920766de9c27294fb6e | [
"Apache-2.0"
] | 1 | 2021-02-20T23:22:10.000Z | 2021-02-20T23:22:10.000Z | #!/usr/bin/python
# Copyright 2019 Christopher Schmidt
#
# 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... | 32.106195 | 108 | 0.553335 | 1,106 | 7,256 | 3.545208 | 0.230561 | 0.016832 | 0.032135 | 0.017853 | 0.185157 | 0.093344 | 0.057128 | 0.011732 | 0 | 0 | 0 | 0.045787 | 0.283627 | 7,256 | 225 | 109 | 32.248889 | 0.708542 | 0.098953 | 0 | 0.077348 | 0 | 0.005525 | 0.194355 | 0.006443 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.027624 | null | null | 0.016575 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c4be3eb705a80e6147920908a86da5673e90f59 | 918 | py | Python | week4/string_format.py | MathAdventurer/Data_Mining | b0a06b5f7c13a3762a07eb84518aa4ee56896516 | [
"MIT"
] | 1 | 2021-02-27T18:35:39.000Z | 2021-02-27T18:35:39.000Z | week4/string_format.py | MathAdventurer/Data_Mining | b0a06b5f7c13a3762a07eb84518aa4ee56896516 | [
"MIT"
] | null | null | null | week4/string_format.py | MathAdventurer/Data_Mining | b0a06b5f7c13a3762a07eb84518aa4ee56896516 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 22:23:07 2020
@author: Neal LONG
Try to construct URL with string.format
"""
base_url = "http://quotes.money.163.com/service/gszl_{:>06}.html?type={}"
stock = "000002"
api_type = 'cp'
print("http://quotes.money.163.com/service/gszl_"+stock+".html?type="... | 27 | 80 | 0.623094 | 129 | 918 | 4.348837 | 0.457364 | 0.062389 | 0.085562 | 0.096257 | 0.606061 | 0.541889 | 0.392157 | 0.335116 | 0.335116 | 0.335116 | 0 | 0.070039 | 0.160131 | 918 | 34 | 81 | 27 | 0.657588 | 0.12963 | 0 | 0.529412 | 0 | 0 | 0.509881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.647059 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c545b9b4e257d67ea1869f9e75cf7e1b7bca4c8 | 613 | py | Python | backend/app/migrations/0021_auto_20201205_1846.py | mareknowak98/AuctionPortal | 0059fec07d51c6942b8af73cb8c4f9962c21fc97 | [
"MIT"
] | null | null | null | backend/app/migrations/0021_auto_20201205_1846.py | mareknowak98/AuctionPortal | 0059fec07d51c6942b8af73cb8c4f9962c21fc97 | [
"MIT"
] | null | null | null | backend/app/migrations/0021_auto_20201205_1846.py | mareknowak98/AuctionPortal | 0059fec07d51c6942b8af73cb8c4f9962c21fc97 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2020-12-05 18:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0020_auto_20201204_2324'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='profileBankAcc... | 25.541667 | 73 | 0.60522 | 63 | 613 | 5.777778 | 0.650794 | 0.10989 | 0.137363 | 0.159341 | 0.428571 | 0.428571 | 0.208791 | 0 | 0 | 0 | 0 | 0.079365 | 0.280587 | 613 | 23 | 74 | 26.652174 | 0.746032 | 0.073409 | 0 | 0.352941 | 1 | 0 | 0.144876 | 0.079505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c55251ed58f769e9fbe55114b14a016770952cb | 1,075 | py | Python | libcity/executor/map_matching_executor.py | nadiaaaaachen/Bigscity-LibCity | d8efd38fcc238e3ba518c559cc9f65b49efaaf71 | [
"Apache-2.0"
] | 1 | 2021-11-22T12:22:32.000Z | 2021-11-22T12:22:32.000Z | libcity/executor/map_matching_executor.py | yuanhaitao/Bigscity-LibCity | 9670c6a2f26043bb8d9cc1715780bb599cce2cd5 | [
"Apache-2.0"
] | null | null | null | libcity/executor/map_matching_executor.py | yuanhaitao/Bigscity-LibCity | 9670c6a2f26043bb8d9cc1715780bb599cce2cd5 | [
"Apache-2.0"
] | null | null | null | from logging import getLogger
from libcity.executor.abstract_tradition_executor import AbstractTraditionExecutor
from libcity.utils import get_evaluator
class MapMatchingExecutor(AbstractTraditionExecutor):
def __init__(self, config, model):
self.model = model
self.config = config
self.ev... | 29.861111 | 94 | 0.652093 | 115 | 1,075 | 5.869565 | 0.4 | 0.071111 | 0.044444 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254884 | 1,075 | 35 | 95 | 30.714286 | 0.842697 | 0.163721 | 0 | 0 | 0 | 0 | 0.071429 | 0.036946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.176471 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c55a30419a518ea1054e9871ae5c2c7cf5db9f5 | 307 | py | Python | project1/budget/migrations/0005_delete_hiddenstatus_budget.py | sujeethiremath/Project-1 | 7f0bff66287d479e231e123615f2df18f9107178 | [
"MIT"
] | null | null | null | project1/budget/migrations/0005_delete_hiddenstatus_budget.py | sujeethiremath/Project-1 | 7f0bff66287d479e231e123615f2df18f9107178 | [
"MIT"
] | null | null | null | project1/budget/migrations/0005_delete_hiddenstatus_budget.py | sujeethiremath/Project-1 | 7f0bff66287d479e231e123615f2df18f9107178 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2020-04-08 00:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('budget', '0004_auto_20200407_2356'),
]
operations = [
migrations.DeleteModel(
name='HiddenStatus_Budget',
),
]
| 18.058824 | 47 | 0.618893 | 33 | 307 | 5.636364 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139013 | 0.273616 | 307 | 16 | 48 | 19.1875 | 0.695067 | 0.14658 | 0 | 0 | 1 | 0 | 0.184615 | 0.088462 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 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 |
4c5b0cb42835f92d5cfa623b7b0648900462ba33 | 1,069 | py | Python | examples/simpleWiki.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | 1 | 2021-10-30T21:18:29.000Z | 2021-10-30T21:18:29.000Z | examples/simpleWiki.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | 22 | 2020-04-15T14:49:30.000Z | 2021-12-22T02:49:52.000Z | examples/simpleWiki.py | klahnakoski/mo-parsing | 885bf3fd61430d5fa15164168b975b18988fcf9e | [
"MIT"
] | null | null | null | from mo_parsing.helpers import QuotedString
wikiInput = """
Here is a simple Wiki input:
*This is in italics.*
**This is in bold!**
***This is in bold italics!***
Here's a URL to {{Pyparsing's Wiki Page->https://site-closed.wikispaces.com}}
"""
def convertToHTML(opening, closing):
def convers... | 28.131579 | 91 | 0.635173 | 128 | 1,069 | 5.203125 | 0.476563 | 0.048048 | 0.084084 | 0.162162 | 0.178679 | 0.12012 | 0 | 0 | 0 | 0 | 0 | 0.00346 | 0.188962 | 1,069 | 37 | 92 | 28.891892 | 0.764706 | 0 | 0 | 0 | 0 | 0.043478 | 0.269193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.043478 | 0.043478 | 0.304348 | 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 |
4c5e8dbae6d19592874e45bede3206b69cd9c042 | 594 | py | Python | genlicense.py | d53dave/python-crypto-licensecheck | d11612612ea54a5418fd8dbba9212a9c84c56f22 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | genlicense.py | d53dave/python-crypto-licensecheck | d11612612ea54a5418fd8dbba9212a9c84c56f22 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | genlicense.py | d53dave/python-crypto-licensecheck | d11612612ea54a5418fd8dbba9212a9c84c56f22 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | import sys
from Crypto.Signature import pkcs1_15
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
def sign_data(key, data, output_file):
with open(key, 'r', encoding='utf-8') as keyFile:
rsakey = RSA.importKey(keyFile.read())
signer = pkcs1_15.new(rsakey)
digest = SHA256.new... | 28.285714 | 53 | 0.66835 | 89 | 594 | 4.235955 | 0.494382 | 0.079576 | 0.058355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03617 | 0.208754 | 594 | 20 | 54 | 29.7 | 0.765957 | 0 | 0 | 0 | 0 | 0 | 0.035354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 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 |
4c61ecd42ed59f6a2c7fd49a38719e52edaf2a1f | 845 | py | Python | orion/modules/active/wolfram.py | isathish/ai_opesource | cdccd882306c45712fcdd40e15937b5a9571028a | [
"MIT"
] | null | null | null | orion/modules/active/wolfram.py | isathish/ai_opesource | cdccd882306c45712fcdd40e15937b5a9571028a | [
"MIT"
] | null | null | null | orion/modules/active/wolfram.py | isathish/ai_opesource | cdccd882306c45712fcdd40e15937b5a9571028a | [
"MIT"
] | null | null | null | """
Handles most general questions (including math!)
Requires:
- WolframAlpha API key
Usage Examples:
- "How tall is Mount Everest?"
- "What is the derivative of y = 2x?"
"""
import wolframalpha
from orion.classes.module import Module
from orion.classes.task import ActiveTask
from orion i... | 21.666667 | 68 | 0.639053 | 96 | 845 | 5.5 | 0.572917 | 0.051136 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003226 | 0.266272 | 845 | 38 | 69 | 22.236842 | 0.848387 | 0.213018 | 0 | 0 | 0 | 0 | 0.011309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.222222 | 0.055556 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4c66a4345821de6dcbba5bb0bbb633c3ee79daa3 | 2,219 | py | Python | tools/Bitcoin Parser/blockchain_parser/tests/test_block.py | simewu/bitcoin_researcher | b9fd2efdb8ae8467c5bd4b3320713a541635df16 | [
"MIT"
] | 1 | 2020-02-15T21:44:04.000Z | 2020-02-15T21:44:04.000Z | tools/Bitcoin Parser/blockchain_parser/tests/test_block.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | tools/Bitcoin Parser/blockchain_parser/tests/test_block.py | SimeoW/bitcoin | 3644405f06c8b16a437513e8c02f0f061b91be2e | [
"MIT"
] | null | null | null | # Copyright (C) 2015-2016 The bitcoin-blockchain-parser developers
#
# This file is part of bitcoin-blockchain-parser.
#
# It is subject to the license terms in the LICENSE file found in the top-level
# directory of this distribution.
#
# No part of bitcoin-blockchain-parser, including this file, may be copied,
# modif... | 43.509804 | 79 | 0.68995 | 250 | 2,219 | 6.028 | 0.388 | 0.179164 | 0.042468 | 0.041805 | 0.119443 | 0.045123 | 0 | 0 | 0 | 0 | 0 | 0.111175 | 0.221722 | 2,219 | 50 | 80 | 44.38 | 0.761436 | 0.177557 | 0 | 0.057143 | 0 | 0 | 0.120728 | 0.088203 | 0 | 0 | 0.011025 | 0 | 0.542857 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
4c6c5b767e3d2e7d380bed49701614a213de873b | 8,063 | py | Python | examples/plots/plot_pass_network.py | DymondFormation/mplsoccer | 544300857ec5936781e12fda203cf2df8a3d00b9 | [
"MIT"
] | null | null | null | examples/plots/plot_pass_network.py | DymondFormation/mplsoccer | 544300857ec5936781e12fda203cf2df8a3d00b9 | [
"MIT"
] | null | null | null | examples/plots/plot_pass_network.py | DymondFormation/mplsoccer | 544300857ec5936781e12fda203cf2df8a3d00b9 | [
"MIT"
] | null | null | null | """
============
Pass Network
============
This example shows how to plot passes between players in a set formation.
"""
import pandas as pd
from mplsoccer.pitch import Pitch
from matplotlib.colors import to_rgba
import numpy as np
from mplsoccer.statsbomb import read_event, EVENT_SLUG
##############################... | 55.226027 | 116 | 0.615032 | 976 | 8,063 | 4.862705 | 0.276639 | 0.052044 | 0.032448 | 0.044037 | 0.187948 | 0.147493 | 0.099452 | 0.073325 | 0.073325 | 0.053519 | 0 | 0.014395 | 0.155649 | 8,063 | 145 | 117 | 55.606897 | 0.682726 | 0.183306 | 0 | 0 | 0 | 0 | 0.23193 | 0.082807 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.309524 | 0.059524 | 0 | 0.059524 | 0.011905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c72f9ae2886173a745e73873beb49821cbc3a3f | 691 | py | Python | streetlite/common/constants.py | s0h3ck/streetlite | 21db388702f828417dd3dc0fbfa5af757216e1e0 | [
"MIT"
] | null | null | null | streetlite/common/constants.py | s0h3ck/streetlite | 21db388702f828417dd3dc0fbfa5af757216e1e0 | [
"MIT"
] | 1 | 2021-06-01T22:23:13.000Z | 2021-06-01T22:23:13.000Z | streetlite/common/constants.py | s0h3ck/streetlite | 21db388702f828417dd3dc0fbfa5af757216e1e0 | [
"MIT"
] | null | null | null | from enum import Enum
class CustomEnum(Enum):
@classmethod
def has_value(cls, value):
return any(value == item.value for item in cls)
@classmethod
def from_value(cls, value):
found_element = None
if cls.has_value(value):
found_element = cls(value)
retu... | 18.675676 | 55 | 0.622287 | 85 | 691 | 4.964706 | 0.6 | 0.056872 | 0.061611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070539 | 0.30246 | 691 | 37 | 56 | 18.675676 | 0.804979 | 0 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063584 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.034483 | 0.034483 | 0.827586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4c79ab828e049f734329ac9fd7817c526a06676d | 6,777 | py | Python | custom_components/tapo_control/utils.py | david-kalbermatten/HomeAssistant-Tapo-Control | 3f9f8316cf7e176bb6f8d798d709f3c6d346a527 | [
"Apache-2.0"
] | null | null | null | custom_components/tapo_control/utils.py | david-kalbermatten/HomeAssistant-Tapo-Control | 3f9f8316cf7e176bb6f8d798d709f3c6d346a527 | [
"Apache-2.0"
] | null | null | null | custom_components/tapo_control/utils.py | david-kalbermatten/HomeAssistant-Tapo-Control | 3f9f8316cf7e176bb6f8d798d709f3c6d346a527 | [
"Apache-2.0"
] | null | null | null | import onvif
import os
import asyncio
import urllib.parse
from onvif import ONVIFCamera
from pytapo import Tapo
from .const import ENABLE_MOTION_SENSOR, DOMAIN, LOGGER, CLOUD_PASSWORD
from homeassistant.const import CONF_IP_ADDRESS, CONF_USERNAME, CONF_PASSWORD
from homeassistant.components.onvif.event import EventMana... | 34.93299 | 86 | 0.665044 | 735 | 6,777 | 5.910204 | 0.22585 | 0.029466 | 0.044199 | 0.065608 | 0.293738 | 0.269337 | 0.234346 | 0.080571 | 0.049724 | 0 | 0 | 0.00271 | 0.237716 | 6,777 | 193 | 87 | 35.11399 | 0.838173 | 0 | 0 | 0.156627 | 0 | 0 | 0.110979 | 0.024596 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006024 | false | 0.114458 | 0.066265 | 0.006024 | 0.114458 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5b2ddd3598b303bcb8230980f8ef5b2b4388ef0 | 5,712 | py | Python | src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py | fslds/carbon-black-cloud-sdk-python | 248a3c63d6b36d6fcdbcb3f51fb7751f062ed372 | [
"MIT"
] | 24 | 2020-10-16T22:07:38.000Z | 2022-03-24T14:58:03.000Z | src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py | fslds/carbon-black-cloud-sdk-python | 248a3c63d6b36d6fcdbcb3f51fb7751f062ed372 | [
"MIT"
] | 63 | 2020-10-26T18:26:15.000Z | 2022-03-31T17:31:02.000Z | src/tests/unit/fixtures/endpoint_standard/mock_recommendation.py | fslds/carbon-black-cloud-sdk-python | 248a3c63d6b36d6fcdbcb3f51fb7751f062ed372 | [
"MIT"
] | 10 | 2020-11-09T11:54:23.000Z | 2022-03-24T20:44:00.000Z | """Mock responses for recommendations."""
SEARCH_REQ = {
"criteria": {
"policy_type": ['reputation_override'],
"status": ['NEW', 'REJECTED', 'ACCEPTED'],
"hashes": ['111', '222']
},
"rows": 50,
"sort": [
{
"field": "impact_score",
"order": "DESC"
... | 31.043478 | 98 | 0.500525 | 499 | 5,712 | 5.517034 | 0.266533 | 0.043589 | 0.036324 | 0.054486 | 0.671268 | 0.652016 | 0.641482 | 0.641482 | 0.641482 | 0.641482 | 0 | 0.179021 | 0.345763 | 5,712 | 183 | 99 | 31.213115 | 0.557667 | 0.006127 | 0 | 0.494253 | 0 | 0 | 0.495151 | 0.16505 | 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 | 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 |
d5b52472e7e5df33cf0c5865ffdc86c08a3ea627 | 1,881 | py | Python | dhf_wrapper/base_client.py | Enflow-io/dhf-pay-python | 7c32461d3b2a5018151b2a16a0cc0ad6850b88b1 | [
"Apache-2.0"
] | null | null | null | dhf_wrapper/base_client.py | Enflow-io/dhf-pay-python | 7c32461d3b2a5018151b2a16a0cc0ad6850b88b1 | [
"Apache-2.0"
] | null | null | null | dhf_wrapper/base_client.py | Enflow-io/dhf-pay-python | 7c32461d3b2a5018151b2a16a0cc0ad6850b88b1 | [
"Apache-2.0"
] | null | null | null | from typing import Optional, Callable
import requests
from requests.auth import AuthBase
from requests.exceptions import RequestException
class BearerAuth(AuthBase):
def __init__(self, token):
self.token = token
def __call__(self, r):
r.headers['Authorization'] = f'Bearer {self.token}'
... | 25.767123 | 94 | 0.576289 | 208 | 1,881 | 5.014423 | 0.322115 | 0.051774 | 0.06232 | 0.048897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.330144 | 1,881 | 72 | 95 | 26.125 | 0.823016 | 0.129718 | 0 | 0.04878 | 0 | 0 | 0.036266 | 0.014103 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0 | 0.097561 | 0 | 0.512195 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d5b58f8a34e9535374ceecc69e4b47358c97ddb9 | 1,395 | py | Python | flametree/utils.py | Edinburgh-Genome-Foundry/Flametree | a189de5d83ca1eb3526a439320e41df9e2a1162e | [
"MIT"
] | 165 | 2017-02-04T00:40:01.000Z | 2021-06-08T03:51:58.000Z | flametree/utils.py | Edinburgh-Genome-Foundry/Flametree | a189de5d83ca1eb3526a439320e41df9e2a1162e | [
"MIT"
] | 8 | 2017-02-10T00:47:09.000Z | 2021-05-30T04:38:41.000Z | flametree/utils.py | Edinburgh-Genome-Foundry/Flametree | a189de5d83ca1eb3526a439320e41df9e2a1162e | [
"MIT"
] | 19 | 2017-02-09T17:38:31.000Z | 2021-03-23T16:04:32.000Z | import os
import shutil
from .ZipFileManager import ZipFileManager
from .DiskFileManager import DiskFileManager
from .Directory import Directory
import string
printable = set(string.printable) - set("\x0b\x0c")
def is_hex(s):
return any(c not in printable for c in s)
def file_tree(target, replace=False):
... | 32.44186 | 86 | 0.703226 | 195 | 1,395 | 4.994872 | 0.384615 | 0.061602 | 0.077002 | 0.051335 | 0.065708 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001818 | 0.21147 | 1,395 | 42 | 87 | 33.214286 | 0.883636 | 0.373477 | 0 | 0 | 0 | 0 | 0.040097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0.05 | 0.7 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d5b74bc11e212074f29e2869fb5c41c2c3cd585b | 628 | py | Python | audio/audio_client.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_client.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | audio/audio_client.py | artigianitecnologici/marrtino_apps | b58bf4daa1d06db2f1c8a47be02b29948d41f48d | [
"BSD-4-Clause"
] | null | null | null | import sys
import socket
import time
ip = '127.0.0.1'
port = 9001
if (len(sys.argv)>1):
ip = sys.argv[1]
if (len(sys.argv)>2):
port = int(sys.argv[2])
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((ip,port))
sock.send('bip\n\r')
data = sock.recv(80)
print data
sock.send('TTS[it-IT... | 14.604651 | 56 | 0.66879 | 120 | 628 | 3.483333 | 0.383333 | 0.172249 | 0.07177 | 0.119617 | 0.397129 | 0.397129 | 0.397129 | 0.397129 | 0.337321 | 0.337321 | 0 | 0.046642 | 0.146497 | 628 | 42 | 57 | 14.952381 | 0.733209 | 0 | 0 | 0.357143 | 0 | 0 | 0.200957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d5b8242c634dcf60f9e745fdadd1c86fe716bf6e | 3,461 | py | Python | qmotor/message/matcher.py | yulinfeng000/qmotor | ad3e9eea291f5b87e09fcdd5e42f1eb13d752565 | [
"MIT"
] | null | null | null | qmotor/message/matcher.py | yulinfeng000/qmotor | ad3e9eea291f5b87e09fcdd5e42f1eb13d752565 | [
"MIT"
] | null | null | null | qmotor/message/matcher.py | yulinfeng000/qmotor | ad3e9eea291f5b87e09fcdd5e42f1eb13d752565 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
from typing import List
from .common import (
AtCell,
BasicMessage,
GroupMessage,
FriendMessage,
MsgCellType,
MessageType,
PlainCell,
)
from ..utils import is_str_blank, str_contains
class MsgMatcher(ABC):
def msg_chain_from_ctx(self, ctx):
r... | 25.637037 | 74 | 0.612251 | 422 | 3,461 | 4.760664 | 0.182464 | 0.047785 | 0.059731 | 0.074664 | 0.374813 | 0.339472 | 0.339472 | 0.31558 | 0.31558 | 0.31558 | 0 | 0.010125 | 0.258018 | 3,461 | 134 | 75 | 25.828358 | 0.772196 | 0 | 0 | 0.27551 | 0 | 0 | 0.033805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183673 | false | 0.010204 | 0.040816 | 0.05102 | 0.55102 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5b96915a161658ab58f977d3518461eda8624b2 | 1,407 | py | Python | main/admin.py | sinahmr/childf | 4e01f46867425b36b6431713b79debf585d69d37 | [
"MIT"
] | null | null | null | main/admin.py | sinahmr/childf | 4e01f46867425b36b6431713b79debf585d69d37 | [
"MIT"
] | null | null | null | main/admin.py | sinahmr/childf | 4e01f46867425b36b6431713b79debf585d69d37 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
from django.contrib.auth.models import Group
from django.utils.translation import ugettext_lazy as _
from main.models import UserInfo, User, Child, Volunteer, Donor, Letter, Need, PurchaseForInstitute, PurchaseForNeed, ... | 31.977273 | 119 | 0.687278 | 149 | 1,407 | 6.355705 | 0.442953 | 0.095037 | 0.161563 | 0.044351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003428 | 0.170576 | 1,407 | 43 | 120 | 32.72093 | 0.808055 | 0 | 0 | 0 | 0 | 0 | 0.154229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054054 | 0.162162 | 0 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5b9d02c239d39cdf1dcff5670b5cc5e359e73a5 | 2,515 | py | Python | hunting/display/render.py | MoyTW/RL_Arena_Experiment | fb79c67576cd4de3e4a58278b4515098f38fb584 | [
"MIT"
] | null | null | null | hunting/display/render.py | MoyTW/RL_Arena_Experiment | fb79c67576cd4de3e4a58278b4515098f38fb584 | [
"MIT"
] | null | null | null | hunting/display/render.py | MoyTW/RL_Arena_Experiment | fb79c67576cd4de3e4a58278b4515098f38fb584 | [
"MIT"
] | null | null | null | import tdl
import time
import hunting.constants as c
class Renderer:
def __init__(self, main_console=None, level_display_width=c.SCREEN_WIDTH, level_display_height=c.SCREEN_HEIGHT):
if main_console is None:
self.main_console = tdl.init(level_display_width, level_display_height, 'From Renderer ... | 36.985294 | 120 | 0.603579 | 350 | 2,515 | 4.08 | 0.234286 | 0.094538 | 0.112045 | 0.098039 | 0.392157 | 0.340336 | 0.261905 | 0.240896 | 0.240896 | 0.218487 | 0 | 0.02784 | 0.285885 | 2,515 | 68 | 121 | 36.985294 | 0.767261 | 0.063221 | 0 | 0.28 | 0 | 0 | 0.01617 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.12 | false | 0 | 0.06 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d5ba579f0453b95d1e8c11d5b88d94830943af72 | 1,732 | py | Python | ideas/models.py | neosergio/hackatrix-api | 27f0180415efa97bd7345d100b314d8807486b67 | [
"Apache-2.0"
] | 1 | 2021-02-12T10:25:28.000Z | 2021-02-12T10:25:28.000Z | ideas/models.py | neosergio/hackatrix-api | 27f0180415efa97bd7345d100b314d8807486b67 | [
"Apache-2.0"
] | 7 | 2020-02-21T00:53:38.000Z | 2022-02-10T12:22:53.000Z | ideas/models.py | neosergio/hackatrix-api | 27f0180415efa97bd7345d100b314d8807486b67 | [
"Apache-2.0"
] | null | null | null | from django.db import models
class Idea(models.Model):
title = models.CharField(max_length=255, unique=True)
description = models.TextField()
author = models.OneToOneField('events.Registrant',
related_name='author_idea',
on_delete=models.... | 39.363636 | 108 | 0.560624 | 165 | 1,732 | 5.660606 | 0.4 | 0.058887 | 0.074946 | 0.11242 | 0.320128 | 0.233405 | 0.134904 | 0.134904 | 0.134904 | 0 | 0 | 0.003527 | 0.345266 | 1,732 | 43 | 109 | 40.27907 | 0.820106 | 0 | 0 | 0.305556 | 0 | 0 | 0.092956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0.027778 | 0.527778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5bbaeac59cde7e794de669fe4ec0942d528fc8d | 699 | py | Python | Examples/PagesOperations/MovePage.py | groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples | af736c94240eeefef28bd81012c96ab2ea779088 | [
"MIT"
] | null | null | null | Examples/PagesOperations/MovePage.py | groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples | af736c94240eeefef28bd81012c96ab2ea779088 | [
"MIT"
] | null | null | null | Examples/PagesOperations/MovePage.py | groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples | af736c94240eeefef28bd81012c96ab2ea779088 | [
"MIT"
] | null | null | null | # Import modules
import groupdocs_merger_cloud
from Common import Common
# This example demonstrates how to move document page to a new position
class MovePage:
@classmethod
def Run(cls):
pagesApi = groupdocs_merger_cloud.PagesApi.from_config(Common.GetConfig())
options = groupdocs_merger_cl... | 36.789474 | 93 | 0.711016 | 83 | 699 | 5.795181 | 0.53012 | 0.155925 | 0.2079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00363 | 0.211731 | 699 | 19 | 94 | 36.789474 | 0.869328 | 0.120172 | 0 | 0 | 0 | 0 | 0.115824 | 0.084829 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0.076923 | 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 |
d5bbb325b8069e32756e2756a7150bcc81d9e24f | 221 | py | Python | src/models/predict_model.py | joseluistello/Regression-Analysis-Apple-Data | 85952edd22ba8c382f43357efc510763185fd6d1 | [
"MIT"
] | null | null | null | src/models/predict_model.py | joseluistello/Regression-Analysis-Apple-Data | 85952edd22ba8c382f43357efc510763185fd6d1 | [
"MIT"
] | null | null | null | src/models/predict_model.py | joseluistello/Regression-Analysis-Apple-Data | 85952edd22ba8c382f43357efc510763185fd6d1 | [
"MIT"
] | null | null | null | y_pred=ml.predict(x_test)
print(y_pred)
from sklearn.metrics import r2_score
r2_score(y_test,y_pred)
pred_y_df=pd.DataFrame({'Actual Value':y_test,'Predicted Value':y_pred, 'Difference': y_test-y_pred})
pred_y_df[0:20] | 24.555556 | 101 | 0.791855 | 44 | 221 | 3.636364 | 0.5 | 0.15625 | 0.075 | 0.125 | 0.2125 | 0.2125 | 0.2125 | 0 | 0 | 0 | 0 | 0.024272 | 0.067873 | 221 | 9 | 102 | 24.555556 | 0.752427 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5c05a70d2bfb21530d973639155b0914281d250 | 1,882 | py | Python | greenbounty/bounties/migrations/0001_initial.py | Carnales/green-bounty | beb765082b32c096139463bf75ccc1ec3d530692 | [
"MIT"
] | 1 | 2021-01-18T21:43:05.000Z | 2021-01-18T21:43:05.000Z | greenbounty/bounties/migrations/0001_initial.py | Thinkr3/green-bounty | c74fe79121d211728c9f70ffd87e239c8ba5d131 | [
"MIT"
] | 1 | 2021-01-18T06:35:07.000Z | 2021-01-18T06:35:07.000Z | greenbounty/bounties/migrations/0001_initial.py | Thinkr3/green-bounty | c74fe79121d211728c9f70ffd87e239c8ba5d131 | [
"MIT"
] | 2 | 2021-01-18T06:22:50.000Z | 2021-01-18T06:24:22.000Z | # Generated by Django 3.1.4 on 2021-01-17 19:12
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 40.042553 | 144 | 0.584485 | 196 | 1,882 | 5.494898 | 0.346939 | 0.059424 | 0.066852 | 0.089136 | 0.528319 | 0.528319 | 0.528319 | 0.49675 | 0.49675 | 0.49675 | 0 | 0.016801 | 0.272582 | 1,882 | 46 | 145 | 40.913043 | 0.769905 | 0.023911 | 0 | 0.487179 | 1 | 0 | 0.056676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.179487 | 0 | 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 |
d5c06f16c3fcc96993938e0c35fe7c62d8dfa422 | 8,621 | py | Python | nova/tests/virt/docker/test_driver.py | osrg/nova | 14b6bc655145c832bd9c822e48f877818e0e53ff | [
"Apache-2.0"
] | null | null | null | nova/tests/virt/docker/test_driver.py | osrg/nova | 14b6bc655145c832bd9c822e48f877818e0e53ff | [
"Apache-2.0"
] | null | null | null | nova/tests/virt/docker/test_driver.py | osrg/nova | 14b6bc655145c832bd9c822e48f877818e0e53ff | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (c) 2013 dotCloud, Inc.
# 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... | 40.85782 | 79 | 0.629741 | 984 | 8,621 | 5.243902 | 0.256098 | 0.04186 | 0.034884 | 0.034884 | 0.395543 | 0.320736 | 0.290891 | 0.277326 | 0.251744 | 0.230426 | 0 | 0.011036 | 0.274794 | 8,621 | 210 | 80 | 41.052381 | 0.814299 | 0.117968 | 0 | 0.234177 | 0 | 0 | 0.110319 | 0.00673 | 0 | 0 | 0 | 0 | 0.113924 | 0 | null | null | 0.012658 | 0.082278 | 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 |
d5c40e739be914cd8694a4a6735e497e975d7778 | 1,791 | py | Python | tests/test_webdriver_chrome.py | kidosoft/splinter | 6d5052fd73c0a626299574cea76924e367c67faa | [
"BSD-3-Clause"
] | 1 | 2016-09-21T19:32:47.000Z | 2016-09-21T19:32:47.000Z | tests/test_webdriver_chrome.py | kidosoft/splinter | 6d5052fd73c0a626299574cea76924e367c67faa | [
"BSD-3-Clause"
] | null | null | null | tests/test_webdriver_chrome.py | kidosoft/splinter | 6d5052fd73c0a626299574cea76924e367c67faa | [
"BSD-3-Clause"
] | 1 | 2019-12-02T15:19:07.000Z | 2019-12-02T15:19:07.000Z | # -*- coding: utf-8 -*-
# Copyright 2013 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import os
import unittest
from splinter import Browser
from .fake_webapp import EXAMPLE_APP
from .base import WebDriverTests
from selen... | 25.225352 | 69 | 0.672808 | 213 | 1,791 | 5.539906 | 0.455399 | 0.055085 | 0.044068 | 0.069492 | 0.372034 | 0.372034 | 0.372034 | 0.372034 | 0.372034 | 0.372034 | 0 | 0.004357 | 0.231156 | 1,791 | 70 | 70 | 25.585714 | 0.852578 | 0.123953 | 0 | 0.382979 | 0 | 0 | 0.070676 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 1 | 0.212766 | false | 0.042553 | 0.12766 | 0 | 0.425532 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5c61844c85a34a814f44efd7ddfec47f1e2a5e5 | 1,131 | py | Python | flaskbb/plugins/news/views.py | konstantin1985/forum | 7d4de24ccc932e9764699d89c8cc9d210b7fac7f | [
"BSD-3-Clause"
] | null | null | null | flaskbb/plugins/news/views.py | konstantin1985/forum | 7d4de24ccc932e9764699d89c8cc9d210b7fac7f | [
"BSD-3-Clause"
] | null | null | null | flaskbb/plugins/news/views.py | konstantin1985/forum | 7d4de24ccc932e9764699d89c8cc9d210b7fac7f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from flask import Blueprint, redirect
from flaskbb.utils.helpers import render_template
from .forms import AddForm, DeleteForm
from .models import MyPost
from flaskbb.extensions import db
news = Blueprint("news", __name__, template_folder="templates")
def inject_news_link():
return rende... | 26.928571 | 72 | 0.660477 | 143 | 1,131 | 5.104895 | 0.370629 | 0.09589 | 0.109589 | 0.046575 | 0.279452 | 0.227397 | 0.227397 | 0.147945 | 0.147945 | 0.147945 | 0 | 0.001091 | 0.189213 | 1,131 | 41 | 73 | 27.585366 | 0.794984 | 0.018568 | 0 | 0.206897 | 0 | 0 | 0.09132 | 0.020796 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.172414 | 0.068966 | 0.517241 | 0.068966 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d5d04044860f90c923e15fee006637515d70252d | 6,215 | py | Python | src/main.py | mafshar/sub-puppo | 20fe5bf3ca3d250d846c545085f748e706c4a33e | [
"MIT"
] | 1 | 2018-03-02T04:24:33.000Z | 2018-03-02T04:24:33.000Z | src/main.py | mafshar/sub-puppo | 20fe5bf3ca3d250d846c545085f748e706c4a33e | [
"MIT"
] | null | null | null | src/main.py | mafshar/sub-puppo | 20fe5bf3ca3d250d846c545085f748e706c4a33e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''
Notes:
- Weak implies weakly supervised learning (4 classes)
- Strong implies strongly (fully) superversied learning (10 classes)
- frame number is set to 22ms (default); that is the "sweet spot" based on dsp literature
- sampling rate is 16kHz (for the MFCC of each track)
... | 32.710526 | 187 | 0.665809 | 863 | 6,215 | 4.615295 | 0.261877 | 0.032137 | 0.027115 | 0.033141 | 0.380115 | 0.344715 | 0.32011 | 0.271906 | 0.248054 | 0.220939 | 0 | 0.019966 | 0.234433 | 6,215 | 189 | 188 | 32.883598 | 0.81715 | 0.020274 | 0 | 0.326087 | 0 | 0 | 0.090346 | 0.004007 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.130435 | 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 |
d5d313602da6567472c45152b7f1fb43db070947 | 901 | py | Python | datedfolder.py | IgorRidanovic/flapi | 7eb35cc670a5d1a06b01fb13982ffa63345369de | [
"MIT"
] | 3 | 2020-09-21T13:07:05.000Z | 2021-01-29T19:44:02.000Z | datedfolder.py | IgorRidanovic/flapi | 7eb35cc670a5d1a06b01fb13982ffa63345369de | [
"MIT"
] | null | null | null | datedfolder.py | IgorRidanovic/flapi | 7eb35cc670a5d1a06b01fb13982ffa63345369de | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
'''
Create a Baselight folder with current date and time stamp.
You must refresh the Job Manager after running the script.
Copyright (c) 2020 Igor Riđanović, Igor [at] hdhead.com, www.metafide.com
'''
import flapi
from getflapi import getflapi
from datetime import dateti... | 23.710526 | 73 | 0.662597 | 115 | 901 | 5.06087 | 0.669565 | 0.041237 | 0.051546 | 0.058419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.223085 | 901 | 37 | 74 | 24.351351 | 0.821429 | 0.056604 | 0 | 0.1 | 0 | 0 | 0.119011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5d9540eff941a339f643e59edbea5708ee6a194 | 2,354 | py | Python | scripts/generate_image_series.py | JIC-Image-Analysis/senescence-in-field | f310e34df377eb807423c38cf27d1ade0782f5a2 | [
"MIT"
] | null | null | null | scripts/generate_image_series.py | JIC-Image-Analysis/senescence-in-field | f310e34df377eb807423c38cf27d1ade0782f5a2 | [
"MIT"
] | null | null | null | scripts/generate_image_series.py | JIC-Image-Analysis/senescence-in-field | f310e34df377eb807423c38cf27d1ade0782f5a2 | [
"MIT"
] | null | null | null | # Draw image time series for one or more plots
from jicbioimage.core.image import Image
import dtoolcore
import click
from translate_labels import rack_plot_to_image_plot
from image_utils import join_horizontally, join_vertically
def identifiers_where_match_is_true(dataset, match_function):
return [i for i i... | 26.75 | 75 | 0.712404 | 307 | 2,354 | 5.074919 | 0.319218 | 0.03466 | 0.060976 | 0.070603 | 0.279204 | 0.185494 | 0.080873 | 0 | 0 | 0 | 0 | 0.007519 | 0.209006 | 2,354 | 87 | 76 | 27.057471 | 0.829216 | 0.095157 | 0 | 0.0625 | 0 | 0 | 0.053252 | 0.035344 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.104167 | null | null | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
d5da19776d7a24ff632b755eb644da772dbdd1cc | 6,063 | py | Python | saleor/order/migrations/0015_auto_20170206_0407.py | acabezasg/urpi-master | 7c9cd0fbe6d89dad70652482712ca38b21ba6f84 | [
"BSD-3-Clause"
] | 6 | 2019-01-06T08:39:20.000Z | 2022-03-04T18:07:47.000Z | saleor/order/migrations/0015_auto_20170206_0407.py | valentine217/saleor | 323963748e6a2702265ec6635b930a234abde4f5 | [
"BSD-3-Clause"
] | 5 | 2021-03-09T16:22:37.000Z | 2022-02-10T19:10:03.000Z | saleor/order/migrations/0015_auto_20170206_0407.py | valentine217/saleor | 323963748e6a2702265ec6635b930a234abde4f5 | [
"BSD-3-Clause"
] | 1 | 2020-12-26T10:25:37.000Z | 2020-12-26T10:25:37.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-06 10:07
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_prices.models
class Migration(migrations.Migration):
dependencies = [
... | 45.586466 | 181 | 0.626752 | 615 | 6,063 | 5.990244 | 0.193496 | 0.089577 | 0.12215 | 0.141694 | 0.561889 | 0.551846 | 0.371064 | 0.307003 | 0.294788 | 0.280402 | 0 | 0.012865 | 0.243609 | 6,063 | 132 | 182 | 45.931818 | 0.790449 | 0.011216 | 0 | 0.544 | 1 | 0 | 0.192256 | 0.003838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.064 | 0 | 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 |
d5dc93546bee372b907de208f03583a6f68c3b62 | 925 | py | Python | modules/WPSeku/modules/discovery/generic/wplisting.py | Farz7/Darkness | 4f3eb5fee3d8a476d001ad319ca22bca274eeac9 | [
"MIT"
] | 18 | 2020-04-24T06:50:23.000Z | 2022-03-14T08:00:38.000Z | modules/WPSeku/modules/discovery/generic/wplisting.py | Farz7/Darkness | 4f3eb5fee3d8a476d001ad319ca22bca274eeac9 | [
"MIT"
] | null | null | null | modules/WPSeku/modules/discovery/generic/wplisting.py | Farz7/Darkness | 4f3eb5fee3d8a476d001ad319ca22bca274eeac9 | [
"MIT"
] | 5 | 2020-06-28T16:21:22.000Z | 2022-01-30T14:17:32.000Z | #/usr/bin/env python
# -*- Coding: UTF-8 -*-
#
# WPSeku: Wordpress Security Scanner
#
# @url: https://github.com/m4ll0k/WPSeku
# @author: Momo Outaadi (M4ll0k)
import re
from lib import wphttp
from lib import wpprint
class wplisting:
chk = wphttp.UCheck()
out = wpprint.wpprint()
def __init__(self,agent,proxy... | 24.342105 | 82 | 0.656216 | 131 | 925 | 4.587786 | 0.541985 | 0.044925 | 0.043261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010652 | 0.188108 | 925 | 38 | 83 | 24.342105 | 0.789614 | 0.157838 | 0 | 0 | 0 | 0 | 0.141009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038462 | 0.115385 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5e19c75c00ba0d6d2f1c4a0eb15f229a98c4904 | 7,259 | py | Python | webapp/search.py | henchan/memfinity | 3860985e29b203f0569f60eea68ffb22aaf34b1f | [
"MIT"
] | null | null | null | webapp/search.py | henchan/memfinity | 3860985e29b203f0569f60eea68ffb22aaf34b1f | [
"MIT"
] | null | null | null | webapp/search.py | henchan/memfinity | 3860985e29b203f0569f60eea68ffb22aaf34b1f | [
"MIT"
] | null | null | null | """High-level search API.
This module implements application-specific search semantics on top of
App Engine's search API. There are two chief operations: querying for
entities, and managing entities in the search facility.
Add and remove Card entities in the search facility:
insert_cards([models.Card])
delete_ca... | 37.035714 | 81 | 0.667998 | 993 | 7,259 | 4.728097 | 0.277946 | 0.025346 | 0.024281 | 0.012141 | 0.083493 | 0.034292 | 0.021086 | 0 | 0 | 0 | 0 | 0.005597 | 0.236947 | 7,259 | 195 | 82 | 37.225641 | 0.842029 | 0.402673 | 0 | 0.05 | 0 | 0 | 0.045155 | 0 | 0 | 0 | 0 | 0.010256 | 0.01 | 1 | 0.1 | false | 0 | 0.03 | 0.01 | 0.21 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
d5e30ec5517ff0e5f54798d022557ddc8306de32 | 445 | py | Python | custom_components/vaddio_conferenceshot/const.py | rohankapoorcom/vaddio_conferenceshot | 71744710df10f77e21e9e7568e3f6c7175b0d11d | [
"Apache-2.0"
] | null | null | null | custom_components/vaddio_conferenceshot/const.py | rohankapoorcom/vaddio_conferenceshot | 71744710df10f77e21e9e7568e3f6c7175b0d11d | [
"Apache-2.0"
] | null | null | null | custom_components/vaddio_conferenceshot/const.py | rohankapoorcom/vaddio_conferenceshot | 71744710df10f77e21e9e7568e3f6c7175b0d11d | [
"Apache-2.0"
] | null | null | null | import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PATH, CONF_USERNAME
DOMAIN = "vaddio_conferenceshot"
DATA_SCHEMA = vol.Schema(
{
vol.Required(CONF_HOST): cv.string,
vol.Required(CONF_USERNAME): cv.string,... | 24.722222 | 82 | 0.750562 | 58 | 445 | 5.482759 | 0.517241 | 0.103774 | 0.141509 | 0.119497 | 0.144654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161798 | 445 | 17 | 83 | 26.176471 | 0.852547 | 0 | 0 | 0 | 0 | 0 | 0.092135 | 0.047191 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d5e4c8d6143747e9fa0113815e838834d857b208 | 1,022 | py | Python | example/shovel/bar.py | demiurgestudios/shovel | 3db497164907d3765fae182959147d19064671c7 | [
"MIT"
] | 202 | 2015-01-12T13:47:29.000Z | 2022-02-09T19:13:36.000Z | example/shovel/bar.py | demiurgestudios/shovel | 3db497164907d3765fae182959147d19064671c7 | [
"MIT"
] | 14 | 2017-04-09T17:04:53.000Z | 2021-05-16T11:08:34.000Z | example/shovel/bar.py | demiurgestudios/shovel | 3db497164907d3765fae182959147d19064671c7 | [
"MIT"
] | 22 | 2015-09-11T18:35:10.000Z | 2021-05-16T11:04:56.000Z | from shovel import task
@task
def hello(name='Foo'):
'''Prints "Hello, " followed by the provided name.
Examples:
shovel bar.hello
shovel bar.hello --name=Erin
http://localhost:3000/bar.hello?Erin'''
print('Hello, %s' % name)
@task
def args(*args):
'''Echos back all the ar... | 27.621622 | 65 | 0.614481 | 148 | 1,022 | 4.243243 | 0.385135 | 0.057325 | 0.08121 | 0.095541 | 0.417197 | 0.235669 | 0.200637 | 0.200637 | 0 | 0 | 0 | 0.031788 | 0.261252 | 1,022 | 37 | 66 | 27.621622 | 0.8 | 0.619374 | 0 | 0.25 | 0 | 0 | 0.154362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5eefeb4c414f13bc2793346ebb57b29f5de79db | 572 | py | Python | forum/migrations/0001_initial.py | Aerodlyn/mu | 2c3b95e5a83d0f651dd8ad287b471803e1fec3a1 | [
"MIT"
] | 1 | 2021-06-25T22:27:39.000Z | 2021-06-25T22:27:39.000Z | forum/migrations/0001_initial.py | Aerodlyn/mu | 2c3b95e5a83d0f651dd8ad287b471803e1fec3a1 | [
"MIT"
] | 1 | 2022-03-12T00:55:31.000Z | 2022-03-12T00:55:31.000Z | forum/migrations/0001_initial.py | Aerodlyn/mu | 2c3b95e5a83d0f651dd8ad287b471803e1fec3a1 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-26 01:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Community',
fields=[
('name', models.CharFi... | 23.833333 | 93 | 0.552448 | 53 | 572 | 5.924528 | 0.792453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043702 | 0.31993 | 572 | 23 | 94 | 24.869565 | 0.763496 | 0.078671 | 0 | 0 | 1 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.3125 | 0 | 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 |
d5eff585130a0defb51fd844556d3dea1143c55d | 18,862 | py | Python | src/ucar/unidata/idv/resources/python/griddiag.py | JessicaWiedemeier/IDV | e5f67c755cc95f8ad2123bdc45a91f0e5eca0d64 | [
"CNRI-Jython"
] | 1 | 2021-06-09T11:24:48.000Z | 2021-06-09T11:24:48.000Z | src/ucar/unidata/idv/resources/python/griddiag.py | JessicaWiedemeier/IDV | e5f67c755cc95f8ad2123bdc45a91f0e5eca0d64 | [
"CNRI-Jython"
] | null | null | null | src/ucar/unidata/idv/resources/python/griddiag.py | JessicaWiedemeier/IDV | e5f67c755cc95f8ad2123bdc45a91f0e5eca0d64 | [
"CNRI-Jython"
] | null | null | null | """
This is the doc for the Grid Diagnostics module. These functions
are based on the grid diagnostics from the GEneral Meteorological
PAcKage (GEMPAK). Note that the names are case sensitive and some
are named slightly different from GEMPAK functions to avoid conflicts
with Jython built-ins (e.g. st... | 26.75461 | 89 | 0.584721 | 2,684 | 18,862 | 4.100596 | 0.152385 | 0.044339 | 0.077594 | 0.018808 | 0.494821 | 0.429675 | 0.404052 | 0.350809 | 0.320462 | 0.276576 | 0 | 0.024786 | 0.264182 | 18,862 | 704 | 90 | 26.792614 | 0.768211 | 0.590658 | 0 | 0.078431 | 0 | 0 | 0.012306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.382353 | false | 0 | 0 | 0 | 0.77451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5effb4acc4b4904be8e5099e47cd060230843fe | 2,376 | py | Python | app.py | DevilBit/Twitter-Bot | 6f1b285aeb5faf37906d575775a927e69a5321d6 | [
"MIT"
] | null | null | null | app.py | DevilBit/Twitter-Bot | 6f1b285aeb5faf37906d575775a927e69a5321d6 | [
"MIT"
] | null | null | null | app.py | DevilBit/Twitter-Bot | 6f1b285aeb5faf37906d575775a927e69a5321d6 | [
"MIT"
] | 1 | 2021-03-08T20:05:23.000Z | 2021-03-08T20:05:23.000Z | from selenium import webdriver #to get the browser
from selenium.webdriver.common.keys import Keys #to send key to browser
import getpass #to get password safely
import time #to pause the program
#a calss to store all twetter related objects and functions
class twitter_bot:
def __init__(self, username, pas... | 34.941176 | 95 | 0.603114 | 295 | 2,376 | 4.718644 | 0.359322 | 0.051724 | 0.039511 | 0.045977 | 0.119971 | 0.074713 | 0.038793 | 0 | 0 | 0 | 0 | 0.010241 | 0.301347 | 2,376 | 67 | 96 | 35.462687 | 0.828313 | 0.170875 | 0 | 0.191489 | 0 | 0 | 0.140964 | 0.014308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.170213 | 0.085106 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d5f33371ef4b57ee6f5f8e58e37840bbabd0819e | 10,275 | py | Python | examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_terrain_randomizer.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 9,136 | 2015-01-02T00:41:45.000Z | 2022-03-31T15:30:02.000Z | examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_terrain_randomizer.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,424 | 2015-01-05T08:55:58.000Z | 2022-03-30T19:34:55.000Z | examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_terrain_randomizer.py | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,921 | 2015-01-02T10:19:30.000Z | 2022-03-31T02:48:42.000Z | """Generates a random terrain at Minitaur gym environment reset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path... | 35.309278 | 98 | 0.706667 | 1,519 | 10,275 | 4.553654 | 0.21264 | 0.021975 | 0.013156 | 0.007518 | 0.237675 | 0.183895 | 0.127078 | 0.061443 | 0.052479 | 0.040335 | 0 | 0.013917 | 0.21674 | 10,275 | 290 | 99 | 35.431034 | 0.845552 | 0.42219 | 0 | 0.034188 | 1 | 0 | 0.016667 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.076923 | 0 | 0.299145 | 0.008547 | 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 |
d5fb061a3a4378d9720ff3a451d5983678f6ed08 | 2,712 | py | Python | venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/ebu.py | yuta-komura/vishnu | 67173b674d5f4f3be189474103612447ef69ab44 | [
"MIT"
] | 1 | 2021-11-17T04:55:14.000Z | 2021-11-17T04:55:14.000Z | dateparser/data/date_translation_data/ebu.py | cool-RR/dateparser | c38336df521cc57d947dc2c9111539a72f801652 | [
"BSD-3-Clause"
] | null | null | null | dateparser/data/date_translation_data/ebu.py | cool-RR/dateparser | c38336df521cc57d947dc2c9111539a72f801652 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
info = {
"name": "ebu",
"date_order": "DMY",
"january": [
"mweri wa mbere",
"mbe"
],
"february": [
"mweri wa kaĩri",
"kai"
],
"march": [
"mweri wa kathatũ",
"kat"
],
"april": [
"mweri wa kana",
"k... | 15.859649 | 34 | 0.289823 | 188 | 2,712 | 4.170213 | 0.537234 | 0.107143 | 0.045918 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012559 | 0.530236 | 2,712 | 170 | 35 | 15.952941 | 0.602826 | 0.007743 | 0 | 0.248521 | 0 | 0 | 0.31759 | 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 | 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 |
d5fcff660972d9337742f70ae81e7f0f26eaadac | 310 | py | Python | setup.py | martinfarrow/awspk | c3b5f8ede44ca96473b95f52ddb2291a45828565 | [
"MIT"
] | null | null | null | setup.py | martinfarrow/awspk | c3b5f8ede44ca96473b95f52ddb2291a45828565 | [
"MIT"
] | null | null | null | setup.py | martinfarrow/awspk | c3b5f8ede44ca96473b95f52ddb2291a45828565 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(name='awspk',
version='0.1',
description='A aws cli pen knife with loads of interested stuff',
author='Martin Farrow',
author_email='awspk@dibley.net',
py_modules=['awspk'],
license='LICENSE',
)
| 23.846154 | 71 | 0.651613 | 40 | 310 | 4.975 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.216129 | 310 | 12 | 72 | 25.833333 | 0.806584 | 0.067742 | 0 | 0 | 0 | 0 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d5fe5092d56595790c2072c2485827d644f9fbac | 1,104 | py | Python | NetCatKS/DProtocol/api/interfaces/subscribers/__init__.py | dimddev/NetCatKS-CP | 2d9e72b2422e344569fd4eb154866b98e9707561 | [
"BSD-2-Clause"
] | null | null | null | NetCatKS/DProtocol/api/interfaces/subscribers/__init__.py | dimddev/NetCatKS-CP | 2d9e72b2422e344569fd4eb154866b98e9707561 | [
"BSD-2-Clause"
] | null | null | null | NetCatKS/DProtocol/api/interfaces/subscribers/__init__.py | dimddev/NetCatKS-CP | 2d9e72b2422e344569fd4eb154866b98e9707561 | [
"BSD-2-Clause"
] | null | null | null | __author__ = 'dimd'
from zope.interface import Interface, Attribute
class IBaseResourceSubscriber(Interface):
"""
IBaseResourceSubscriber provides functionality for comparison of the signature on
a incoming request against a candidate DProtocol implementation registered as
IJSONResource
The `a... | 26.285714 | 112 | 0.729167 | 120 | 1,104 | 6.675 | 0.583333 | 0.037453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216486 | 1,104 | 42 | 113 | 26.285714 | 0.926012 | 0.570652 | 0 | 0 | 0 | 0 | 0.221354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
9104fd2a412765ae4aa352d6517c087a930d10a7 | 2,304 | py | Python | Extras/benchmark/simple-benchmark.py | yunhaom94/redis-writeanywhere | 1fefed820811fb89585b2b153d916c3b0fa507a6 | [
"BSD-3-Clause"
] | null | null | null | Extras/benchmark/simple-benchmark.py | yunhaom94/redis-writeanywhere | 1fefed820811fb89585b2b153d916c3b0fa507a6 | [
"BSD-3-Clause"
] | null | null | null | Extras/benchmark/simple-benchmark.py | yunhaom94/redis-writeanywhere | 1fefed820811fb89585b2b153d916c3b0fa507a6 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
import random
import string
import time
import subprocess
import os
import redis
import threading
def generate_string(string_size, size, dict):
'''
https://stackoverflow.com/questions/16308989/fastest-method-to-generate-big-random-string-with-lower-latin-letters
'''
for i in ran... | 22.368932 | 118 | 0.598524 | 313 | 2,304 | 4.297125 | 0.399361 | 0.05948 | 0.062454 | 0.086245 | 0.220074 | 0.220074 | 0.20223 | 0.20223 | 0.172491 | 0 | 0 | 0.042062 | 0.267361 | 2,304 | 102 | 119 | 22.588235 | 0.754739 | 0.085503 | 0 | 0.112676 | 1 | 0 | 0.038314 | 0 | 0 | 0 | 0 | 0.009804 | 0 | 1 | 0.014085 | false | 0 | 0.098592 | 0 | 0.112676 | 0.084507 | 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 |
910584bb0f10ffc80b6bcbf199bcc87aa47ac74d | 1,302 | py | Python | challenges/015-setintersection.py | Widdershin/CodeEval | c1c769363763d6f7e1ac5bf3707de2731c3bd926 | [
"MIT"
] | null | null | null | challenges/015-setintersection.py | Widdershin/CodeEval | c1c769363763d6f7e1ac5bf3707de2731c3bd926 | [
"MIT"
] | null | null | null | challenges/015-setintersection.py | Widdershin/CodeEval | c1c769363763d6f7e1ac5bf3707de2731c3bd926 | [
"MIT"
] | null | null | null | """
https://www.codeeval.com/browse/30/
Set Intersection
Challenge Description:
You are given two sorted list of numbers (ascending order). The lists
themselves are comma delimited and the two lists are semicolon
delimited. Print out the intersection of these two sets.
Input Sample:
File containin... | 20.666667 | 93 | 0.654378 | 195 | 1,302 | 4.25641 | 0.487179 | 0.054217 | 0.046988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040554 | 0.223502 | 1,302 | 62 | 94 | 21 | 0.780415 | 0.02381 | 0 | 0 | 0 | 0 | 0.064171 | 0.044563 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
911891456d9e7cb41632224dd81128e9e0fa9e6b | 2,776 | py | Python | observations/r/bomsoi.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/bomsoi.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/bomsoi.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def bomsoi(path):
"""Southern Oscillation Index Data
The Southern Osci... | 22.942149 | 74 | 0.699207 | 390 | 2,776 | 4.905128 | 0.484615 | 0.06116 | 0.075274 | 0.100366 | 0.198641 | 0.023001 | 0 | 0 | 0 | 0 | 0 | 0.01013 | 0.253242 | 2,776 | 120 | 75 | 23.133333 | 0.912687 | 0.67255 | 0 | 0 | 0 | 0 | 0.09126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9118ae0e8ce4a6964c33407d1f9bb269a5f81229 | 948 | py | Python | openpype/hosts/houdini/plugins/publish/validate_bypass.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/hosts/houdini/plugins/publish/validate_bypass.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/hosts/houdini/plugins/publish/validate_bypass.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | import pyblish.api
import openpype.api
class ValidateBypassed(pyblish.api.InstancePlugin):
"""Validate all primitives build hierarchy from attribute when enabled.
The name of the attribute must exist on the prims and have the same name
as Build Hierarchy from Attribute's `Path Attribute` value on the Ale... | 27.085714 | 78 | 0.632911 | 111 | 948 | 5.387387 | 0.558559 | 0.070234 | 0.090301 | 0.135452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005926 | 0.287975 | 948 | 34 | 79 | 27.882353 | 0.88 | 0.292194 | 0 | 0 | 0 | 0 | 0.131376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.2 | 0.1 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
9119b7e105152a68ddb6c7704cd3d58179e633e6 | 4,687 | py | Python | gavPrj/dataset_core.py | GavinK-ai/cv | 6dd11b2100c40aca281508c3821c807ef0ee227d | [
"MIT"
] | 1 | 2021-11-15T06:16:44.000Z | 2021-11-15T06:16:44.000Z | gavPrj/dataset_core.py | JKai96/cv | 6dd11b2100c40aca281508c3821c807ef0ee227d | [
"MIT"
] | null | null | null | gavPrj/dataset_core.py | JKai96/cv | 6dd11b2100c40aca281508c3821c807ef0ee227d | [
"MIT"
] | null | null | null | import os
import cv2 as cv
import matplotlib.pyplot as plt
import numpy as np
#srcPaths = ('dataset/Screenshot1','dataset/Screenshot2','dataset/Screenshot3', 'dataset/Screenshot4')
#srcPaths = ('all_dataset/s1',
# 'all_dataset/s10',
# 'all_dataset/s11',
# 'all_dataset/s12',
... | 26.331461 | 128 | 0.528056 | 486 | 4,687 | 4.923868 | 0.343621 | 0.263268 | 0.016715 | 0.02173 | 0.165483 | 0.127037 | 0.083577 | 0.083577 | 0.083577 | 0.083577 | 0 | 0.047299 | 0.332409 | 4,687 | 177 | 129 | 26.480226 | 0.717482 | 0.427992 | 0 | 0.047619 | 0 | 0 | 0.058687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.02381 | 0.095238 | 0 | 0.166667 | 0.047619 | 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 |
9127b9612983c8643c1eb5911a7a12880ad76607 | 803 | py | Python | web13/jsonapi.py | gongjunhuang/web | 9412f6fd7c223174fdb30f4d7a8b61a8e130e329 | [
"Apache-2.0"
] | null | null | null | web13/jsonapi.py | gongjunhuang/web | 9412f6fd7c223174fdb30f4d7a8b61a8e130e329 | [
"Apache-2.0"
] | null | null | null | web13/jsonapi.py | gongjunhuang/web | 9412f6fd7c223174fdb30f4d7a8b61a8e130e329 | [
"Apache-2.0"
] | null | null | null | from flask import Flask, redirect, url_for, jsonify, request
app = Flask(__name__)
users = []
'''
Json api
请求form里面Json 返回Json
好处:
1.通信的格式统一,对语言的约束就小了
2.易于做成open api
3.客户端重度渲染
RESTful api
Dr. Fielding
url 用资源来组织的 名词
/GET /players 拿到所有玩家
/GET /player/id 访问id的玩家的数据
/PUT /players 全量更新
... | 16.387755 | 60 | 0.636364 | 107 | 803 | 4.719626 | 0.560748 | 0.047525 | 0.055446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004658 | 0.198007 | 803 | 49 | 61 | 16.387755 | 0.779503 | 0 | 0 | 0 | 0 | 0 | 0.268245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0.105263 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
912a168bff4536c4b4657348252f51f09a3dbc8c | 1,776 | py | Python | MoMMI/Modules/ss14_nudges.py | T6751/MoMMI | 4b9dd0d49c6e2bd82b82a4893fc35475d4e39e9a | [
"MIT"
] | 18 | 2016-08-06T17:31:59.000Z | 2021-12-24T13:08:02.000Z | MoMMI/Modules/ss14_nudges.py | T6751/MoMMI | 4b9dd0d49c6e2bd82b82a4893fc35475d4e39e9a | [
"MIT"
] | 29 | 2016-08-07T14:03:00.000Z | 2022-01-23T21:05:33.000Z | MoMMI/Modules/ss14_nudges.py | T6751/MoMMI | 4b9dd0d49c6e2bd82b82a4893fc35475d4e39e9a | [
"MIT"
] | 25 | 2016-08-08T12:56:02.000Z | 2022-02-09T07:17:51.000Z | import logging
from typing import Match, Any, Dict
import aiohttp
from discord import Message
from MoMMI import comm_event, command, MChannel, always_command
logger = logging.getLogger(__name__)
@comm_event("ss14")
async def ss14_nudge(channel: MChannel, message: Any, meta: str) -> None:
try:
config: Dict... | 27.75 | 126 | 0.649212 | 214 | 1,776 | 5.285047 | 0.35514 | 0.013263 | 0.02122 | 0.035367 | 0.054819 | 0.054819 | 0 | 0 | 0 | 0 | 0 | 0.015284 | 0.226351 | 1,776 | 63 | 127 | 28.190476 | 0.80786 | 0 | 0 | 0.148936 | 0 | 0 | 0.141329 | 0.037162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.085106 | 0.106383 | 0 | 0.255319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
912c1f2c9b394208b14b4781f1f67d739e19f340 | 539 | py | Python | spoon/models/groupmembership.py | mikeboers/Spoon | 9fe4a06be7c2c6c307b79e72893e32f2006de4ea | [
"BSD-3-Clause"
] | 4 | 2017-11-05T02:54:39.000Z | 2022-03-01T06:01:20.000Z | spoon/models/groupmembership.py | mikeboers/Spoon | 9fe4a06be7c2c6c307b79e72893e32f2006de4ea | [
"BSD-3-Clause"
] | null | null | null | spoon/models/groupmembership.py | mikeboers/Spoon | 9fe4a06be7c2c6c307b79e72893e32f2006de4ea | [
"BSD-3-Clause"
] | null | null | null | import sqlalchemy as sa
from ..core import db
class GroupMembership(db.Model):
__tablename__ = 'group_memberships'
__table_args__ = dict(
autoload=True,
extend_existing=True,
)
user = db.relationship('Account',
foreign_keys='GroupMembership.user_id',
backref=db.backr... | 22.458333 | 68 | 0.651206 | 57 | 539 | 5.894737 | 0.578947 | 0.083333 | 0.125 | 0.166667 | 0.279762 | 0.279762 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226345 | 539 | 23 | 69 | 23.434783 | 0.805755 | 0 | 0 | 0 | 0 | 0 | 0.236059 | 0.087361 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.4375 | 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 |
912dd1c1fee777c8a3a588b4ebb22c1cb4588df4 | 1,790 | py | Python | data/cache/test/test_cache.py | dongboyan77/quay | 8018e5bd80f17e6d855b58b7d5f2792d92675905 | [
"Apache-2.0"
] | 1 | 2020-10-16T19:30:41.000Z | 2020-10-16T19:30:41.000Z | data/cache/test/test_cache.py | dongboyan77/quay | 8018e5bd80f17e6d855b58b7d5f2792d92675905 | [
"Apache-2.0"
] | 15 | 2020-06-18T15:32:06.000Z | 2022-03-03T23:06:24.000Z | data/cache/test/test_cache.py | dongboyan77/quay | 8018e5bd80f17e6d855b58b7d5f2792d92675905 | [
"Apache-2.0"
] | null | null | null | import pytest
from mock import patch
from data.cache import InMemoryDataModelCache, NoopDataModelCache, MemcachedModelCache
from data.cache.cache_key import CacheKey
class MockClient(object):
def __init__(self, server, **kwargs):
self.data = {}
def get(self, key, default=None):
return self.... | 32.545455 | 89 | 0.634078 | 231 | 1,790 | 4.82684 | 0.272727 | 0.049327 | 0.119283 | 0.138117 | 0.463677 | 0.463677 | 0.463677 | 0.463677 | 0.408072 | 0.408072 | 0 | 0.057383 | 0.201676 | 1,790 | 54 | 90 | 33.148148 | 0.722883 | 0.058101 | 0 | 0.352941 | 0 | 0 | 0.06302 | 0.026159 | 0 | 0 | 0 | 0 | 0.264706 | 1 | 0.205882 | false | 0 | 0.117647 | 0.058824 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9134f2e89b9311a8b0265758c45e89d220be134a | 5,948 | py | Python | mtp_send_money/apps/send_money/utils.py | uk-gov-mirror/ministryofjustice.money-to-prisoners-send-money | 80db0cf5f384f93d35387a757605cfddbc98935f | [
"MIT"
] | null | null | null | mtp_send_money/apps/send_money/utils.py | uk-gov-mirror/ministryofjustice.money-to-prisoners-send-money | 80db0cf5f384f93d35387a757605cfddbc98935f | [
"MIT"
] | null | null | null | mtp_send_money/apps/send_money/utils.py | uk-gov-mirror/ministryofjustice.money-to-prisoners-send-money | 80db0cf5f384f93d35387a757605cfddbc98935f | [
"MIT"
] | null | null | null | import datetime
from decimal import Decimal, ROUND_DOWN, ROUND_UP
import logging
import re
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.validators import RegexValidator
from django.utils import formats
from django.utils.cache import patch_cache_control
from djang... | 30.659794 | 102 | 0.714526 | 791 | 5,948 | 5.166877 | 0.279393 | 0.024468 | 0.023978 | 0.020553 | 0.210179 | 0.158307 | 0.146562 | 0.146562 | 0.143871 | 0.143871 | 0 | 0.008482 | 0.18729 | 5,948 | 193 | 103 | 30.818653 | 0.836781 | 0.115669 | 0 | 0.130081 | 0 | 0.00813 | 0.07467 | 0.014352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0.00813 | 0.138211 | 0.056911 | 0.552846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9136160d5624a0c97151f5a92ef4449fe0be2b28 | 1,951 | py | Python | ArraysP2.py | EdgarVallejo96/pyEdureka | f103f67ed4f9eee6ab924237e9d94a489e602c7c | [
"MIT"
] | null | null | null | ArraysP2.py | EdgarVallejo96/pyEdureka | f103f67ed4f9eee6ab924237e9d94a489e602c7c | [
"MIT"
] | null | null | null | ArraysP2.py | EdgarVallejo96/pyEdureka | f103f67ed4f9eee6ab924237e9d94a489e602c7c | [
"MIT"
] | null | null | null | import array as arr
a = arr.array('i', [ 1,2,3,4,5,6])
print(a)
# Accessing elements
print(a[2])
print(a[-2])
# BASIC ARRAY OPERATIONS
# Find length of array
print()
print('Length of array')
print(len(a))
# Adding elments to an array
# append() to add a single element at the end of an array
# extend() to add more th... | 18.759615 | 95 | 0.664787 | 357 | 1,951 | 3.633053 | 0.282913 | 0.078643 | 0.046261 | 0.01542 | 0.123362 | 0.060139 | 0.060139 | 0.02313 | 0.02313 | 0 | 0 | 0.030492 | 0.17632 | 1,951 | 103 | 96 | 18.941748 | 0.776602 | 0.441312 | 0 | 0.402985 | 0 | 0 | 0.121583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014925 | 0 | 0.014925 | 0.746269 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
913cf201ceaa3cdf5791ad85165d65f001d7078a | 1,896 | py | Python | dash_carbon_components/Column.py | Matheus-Rangel/dash-carbon-components | e3f4aa4a8d649e2740db32677040f2548ef5da48 | [
"Apache-2.0"
] | 4 | 2021-04-25T22:55:25.000Z | 2021-12-10T04:52:30.000Z | dash_carbon_components/Column.py | Matheus-Rangel/dash-carbon-components | e3f4aa4a8d649e2740db32677040f2548ef5da48 | [
"Apache-2.0"
] | null | null | null | dash_carbon_components/Column.py | Matheus-Rangel/dash-carbon-components | e3f4aa4a8d649e2740db32677040f2548ef5da48 | [
"Apache-2.0"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Column(Component):
"""A Column component.
Row Column
Keyword arguments:
- children (list of a list of or a singular dash component, string or numbers | a list of or a singular dash component, strin... | 49.894737 | 196 | 0.681962 | 239 | 1,896 | 5.267782 | 0.39749 | 0.023828 | 0.01112 | 0.014297 | 0.193805 | 0.193805 | 0.193805 | 0.114376 | 0.061954 | 0.061954 | 0 | 0.002686 | 0.214662 | 1,896 | 37 | 197 | 51.243243 | 0.842848 | 0.396097 | 0 | 0 | 1 | 0 | 0.159051 | 0.019332 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 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 |
913e527c83f21ed4118adbad50f5935916d3a9fa | 2,221 | py | Python | src/backend/schemas/vps.py | ddddhm1/LuWu | f9feaf10a6aca0dd31f250741a1c542ee5256633 | [
"Apache-2.0"
] | 658 | 2019-04-29T02:46:02.000Z | 2022-03-30T03:58:42.000Z | src/backend/schemas/vps.py | ddddhm1/LuWu | f9feaf10a6aca0dd31f250741a1c542ee5256633 | [
"Apache-2.0"
] | 9 | 2020-06-04T13:38:58.000Z | 2022-02-27T21:23:29.000Z | src/backend/schemas/vps.py | ddddhm1/LuWu | f9feaf10a6aca0dd31f250741a1c542ee5256633 | [
"Apache-2.0"
] | 130 | 2019-05-02T23:42:58.000Z | 2022-03-24T04:35:37.000Z | from typing import List
from typing import Optional
from typing import Union
from models.vps import VpsStatus
from schemas.base import APIModel
from schemas.base import BasePagination
from schemas.base import BaseSchema
from schemas.base import BaseSuccessfulResponseModel
class VpsSshKeySchema(APIModel):
name: s... | 22.663265 | 59 | 0.714093 | 257 | 2,221 | 6.066148 | 0.2607 | 0.03592 | 0.042335 | 0.053881 | 0.127646 | 0.107761 | 0.07569 | 0 | 0 | 0 | 0 | 0 | 0.197659 | 2,221 | 97 | 60 | 22.896907 | 0.87486 | 0 | 0 | 0.152778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 1 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
913effe79b3a41e71c6774354a20673cc5bf2cf7 | 672 | py | Python | main.py | hari-sh/sigplot | cd2359d7c868e35ed1d976d7eb8ac35d2dcc7e81 | [
"MIT"
] | null | null | null | main.py | hari-sh/sigplot | cd2359d7c868e35ed1d976d7eb8ac35d2dcc7e81 | [
"MIT"
] | null | null | null | main.py | hari-sh/sigplot | cd2359d7c868e35ed1d976d7eb8ac35d2dcc7e81 | [
"MIT"
] | null | null | null | import sigplot as sp
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
matplotlib.rcParams['toolbar'] = 'None'
plt.style.use('dark_background')
fig = plt.figure()
# seed = np.linspace(3, 7, 1000)
# a = (np.sin(2 * np.pi * seed))
# b = (np.cos(2 * np.pi * seed))
# sp.correlate(fig, b... | 25.846154 | 118 | 0.623512 | 114 | 672 | 3.657895 | 0.45614 | 0.083933 | 0.119904 | 0.043165 | 0.220624 | 0.167866 | 0 | 0 | 0 | 0 | 0 | 0.09058 | 0.178571 | 672 | 25 | 119 | 26.88 | 0.664855 | 0.40625 | 0 | 0 | 0 | 0 | 0.070845 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9143774e616443b37cd584d3970647098c72f10f | 16,563 | py | Python | testGMDS.py | ctralie/SiRPyGL | e06c317ed60321d492725e39fd8fcc0ce56ff4c0 | [
"Apache-2.0"
] | 7 | 2017-10-06T05:33:28.000Z | 2021-04-20T20:06:53.000Z | testGMDS.py | ctralie/SiRPyGL | e06c317ed60321d492725e39fd8fcc0ce56ff4c0 | [
"Apache-2.0"
] | null | null | null | testGMDS.py | ctralie/SiRPyGL | e06c317ed60321d492725e39fd8fcc0ce56ff4c0 | [
"Apache-2.0"
] | 4 | 2015-03-20T13:14:36.000Z | 2019-04-19T10:34:51.000Z | #Based off of http://wiki.wxpython.org/GLCanvas
#Lots of help from http://wiki.wxpython.org/Getting%20Started
from OpenGL.GL import *
import wx
from wx import glcanvas
from Primitives3D import *
from PolyMesh import *
from LaplacianMesh import *
from Geodesics import *
from PointCloud import *
from Cameras3D import *
... | 34.010267 | 152 | 0.71871 | 2,321 | 16,563 | 5.065489 | 0.202068 | 0.044909 | 0.01548 | 0.014374 | 0.344646 | 0.303819 | 0.242409 | 0.216382 | 0.163562 | 0.143574 | 0 | 0.022834 | 0.153897 | 16,563 | 486 | 153 | 34.080247 | 0.816112 | 0.070036 | 0 | 0.24812 | 0 | 0 | 0.062004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002506 | 0.050125 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9143b8c633adb2c76477406a889fd2a426c5cda8 | 278 | py | Python | gigamonkeys/get.py | gigamonkey/sheets | a89e76360ad9a35e44e5e352346eeccbe6952b1f | [
"BSD-3-Clause"
] | null | null | null | gigamonkeys/get.py | gigamonkey/sheets | a89e76360ad9a35e44e5e352346eeccbe6952b1f | [
"BSD-3-Clause"
] | 1 | 2021-04-03T23:07:35.000Z | 2021-04-03T23:07:35.000Z | gigamonkeys/get.py | gigamonkey/sheets | a89e76360ad9a35e44e5e352346eeccbe6952b1f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import json
import sys
from gigamonkeys.spreadsheets import spreadsheets
spreadsheet_id = sys.argv[1]
ranges = sys.argv[2:]
data = spreadsheets().get(spreadsheet_id, include_grid_data=bool(ranges), ranges=ranges)
json.dump(data, sys.stdout, indent=2)
| 19.857143 | 88 | 0.773381 | 41 | 278 | 5.146341 | 0.585366 | 0.123223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012048 | 0.104317 | 278 | 13 | 89 | 21.384615 | 0.835341 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9146c7949d8b05d057e0f629fb324a047f0358c0 | 6,145 | py | Python | sources/wrappers.py | X-rayLaser/keras-auto-hwr | 67cfc0209045b1e211f0491b0199cb9d6811bfd0 | [
"MIT"
] | null | null | null | sources/wrappers.py | X-rayLaser/keras-auto-hwr | 67cfc0209045b1e211f0491b0199cb9d6811bfd0 | [
"MIT"
] | 2 | 2020-01-04T09:03:31.000Z | 2021-05-10T18:29:41.000Z | sources/wrappers.py | X-rayLaser/keras-auto-hwr | 67cfc0209045b1e211f0491b0199cb9d6811bfd0 | [
"MIT"
] | null | null | null | import numpy as np
from sources import BaseSource
from sources.base import BaseSourceWrapper
from sources.preloaded import PreLoadedSource
import json
class WordsSource(BaseSource):
def __init__(self, source):
self._source = source
def __len__(self):
return len(self._source)
def _remove_... | 26.038136 | 87 | 0.588771 | 757 | 6,145 | 4.498018 | 0.198151 | 0.085169 | 0.032305 | 0.0558 | 0.314244 | 0.247577 | 0.208517 | 0.200587 | 0.174449 | 0.174449 | 0 | 0.008201 | 0.305452 | 6,145 | 235 | 88 | 26.148936 | 0.789597 | 0.014646 | 0 | 0.284848 | 0 | 0 | 0.00694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.224242 | false | 0 | 0.030303 | 0.060606 | 0.406061 | 0.006061 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
91487dc34ce39dcba03a9475df5437871d95ebe4 | 2,546 | py | Python | sample_full_post_processor.py | huynguyen82/Modified-Kaldi-GStream-OnlineServer | e7429a5e44b9567b603523c0046fb42d8503a275 | [
"BSD-2-Clause"
] | null | null | null | sample_full_post_processor.py | huynguyen82/Modified-Kaldi-GStream-OnlineServer | e7429a5e44b9567b603523c0046fb42d8503a275 | [
"BSD-2-Clause"
] | 1 | 2021-03-25T23:17:23.000Z | 2021-03-25T23:17:23.000Z | sample_full_post_processor.py | huynguyen82/Modified-Kaldi-GStream-OnlineServer | e7429a5e44b9567b603523c0046fb42d8503a275 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import sys
import json
import logging
from math import exp
import requests as rq
import re
### For NLP post-processing
header={"Content-Type": "application/json"}
message='{"sample":"Hello bigdata"}'
api_url="http://192.168.1.197:11992/norm"
###
def NLP_process_output(pre_str):
try: ... | 34.405405 | 94 | 0.565593 | 297 | 2,546 | 4.693603 | 0.363636 | 0.055237 | 0.105452 | 0.043042 | 0.262554 | 0.262554 | 0.209469 | 0.176471 | 0.176471 | 0.176471 | 0 | 0.019016 | 0.297722 | 2,546 | 73 | 95 | 34.876712 | 0.760626 | 0.018853 | 0 | 0.265625 | 0 | 0 | 0.178313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015625 | 0.09375 | null | null | 0.046875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
914899652debcd6bf278b6bcd59488d3ca01a934 | 349 | py | Python | lang_detect_gears.py | AlexMikhalev/cord19redisknowledgegraph | a143415aca8d4a6db820dc7a25280045f421a665 | [
"Apache-2.0"
] | 7 | 2020-05-18T09:25:17.000Z | 2021-08-05T00:23:36.000Z | lang_detect_gears.py | maraqa1/CORD-19 | a473f7b60b8dfa476ea46505678481e4b361d04e | [
"Apache-2.0"
] | 10 | 2020-05-31T14:44:26.000Z | 2022-03-25T19:17:37.000Z | lang_detect_gears.py | maraqa1/CORD-19 | a473f7b60b8dfa476ea46505678481e4b361d04e | [
"Apache-2.0"
] | null | null | null | from langdetect import detect
def detect_language(x):
#detect language of the article
try:
lang=detect(x['value'])
except:
lang="empty"
execute('SET', 'lang_article:' + x['key'], lang)
if lang!='en':
execute('SADD','titles_to_delete', x['key'])
gb = GB()
gb.foreach(detec... | 23.266667 | 52 | 0.60745 | 47 | 349 | 4.404255 | 0.595745 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22063 | 349 | 15 | 53 | 23.266667 | 0.761029 | 0.08596 | 0 | 0 | 0 | 0 | 0.191223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.166667 | 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 |
914c1ed0296d91a573e8d232f2ea7fec8dafd2e3 | 46,013 | py | Python | editortools/player.py | bennettdc/MCEdit-Unified | 90abfb170c65b877ac67193e717fa3a3ded635dd | [
"0BSD"
] | 237 | 2018-02-04T19:13:31.000Z | 2022-03-26T03:06:07.000Z | editortools/player.py | bennettdc/MCEdit-Unified | 90abfb170c65b877ac67193e717fa3a3ded635dd | [
"0BSD"
] | 551 | 2015-01-01T02:36:53.000Z | 2018-02-01T00:03:12.000Z | editortools/player.py | bennettdc/MCEdit-Unified | 90abfb170c65b877ac67193e717fa3a3ded635dd | [
"0BSD"
] | 97 | 2015-01-02T01:31:12.000Z | 2018-01-22T05:37:47.000Z | """Copyright (c) 2010-2012 David Rio Vierra
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WA... | 39.632214 | 219 | 0.578836 | 5,187 | 46,013 | 5.07326 | 0.125506 | 0.033441 | 0.015314 | 0.009576 | 0.455748 | 0.364279 | 0.312673 | 0.257458 | 0.235265 | 0.188448 | 0 | 0.018998 | 0.309043 | 46,013 | 1,160 | 220 | 39.666379 | 0.8087 | 0.0469 | 0 | 0.413636 | 0 | 0.002273 | 0.068162 | 0.004797 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004545 | 0.023864 | null | null | 0.003409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
914cca42f7c78c12fb45153e185381ce97dc5240 | 5,200 | py | Python | seismic/checkpointing/checkpoint.py | slimgroup/Devito-Examples | 449e1286a18ebc4172069372ba2bf3cd2ec99a2f | [
"MIT"
] | 7 | 2020-08-19T18:23:08.000Z | 2022-02-18T19:19:24.000Z | seismic/checkpointing/checkpoint.py | slimgroup/Devito-Examples | 449e1286a18ebc4172069372ba2bf3cd2ec99a2f | [
"MIT"
] | null | null | null | seismic/checkpointing/checkpoint.py | slimgroup/Devito-Examples | 449e1286a18ebc4172069372ba2bf3cd2ec99a2f | [
"MIT"
] | 3 | 2020-12-01T22:17:09.000Z | 2021-05-21T11:29:07.000Z | # The MIT License (MIT)
#
# Copyright (c) 2016, Imperial College, London
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation the rights t... | 44.067797 | 129 | 0.68 | 722 | 5,200 | 4.804709 | 0.347645 | 0.025368 | 0.010378 | 0.011531 | 0.105794 | 0.081868 | 0.057077 | 0.043817 | 0.043817 | 0.043817 | 0 | 0.002288 | 0.243462 | 5,200 | 117 | 130 | 44.444444 | 0.879512 | 0.533269 | 0 | 0.117647 | 0 | 0 | 0.076023 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 1 | 0.215686 | false | 0 | 0.058824 | 0.039216 | 0.45098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
914dad243b4f6fd43e52b214d9db3b5771ad2444 | 623 | py | Python | Perforce/AppUtils.py | TomMinor/MayaPerforce | 52182c7e5c3e91e41973d0c2abbda8880e809e49 | [
"MIT"
] | 13 | 2017-03-31T21:52:19.000Z | 2021-09-06T23:15:30.000Z | Perforce/AppUtils.py | TomMinor/MayaPerforce | 52182c7e5c3e91e41973d0c2abbda8880e809e49 | [
"MIT"
] | 3 | 2017-05-08T02:27:43.000Z | 2017-05-10T03:20:11.000Z | Perforce/AppUtils.py | TomMinor/MayaPerforce | 52182c7e5c3e91e41973d0c2abbda8880e809e49 | [
"MIT"
] | 3 | 2017-05-05T14:03:03.000Z | 2020-05-25T10:25:04.000Z | import os
import sys
import re
import logging
p4_logger = logging.getLogger("Perforce")
# Import app specific utilities, maya opens scenes differently than nuke etc
# Are we in maya or nuke?
if re.match( "maya", os.path.basename( sys.executable ), re.I ):
p4_logger.info("Configuring for Maya")
from MayaU... | 32.789474 | 90 | 0.738363 | 91 | 623 | 5.010989 | 0.593407 | 0.070175 | 0.061404 | 0.074561 | 0.245614 | 0.245614 | 0.245614 | 0.245614 | 0.245614 | 0.245614 | 0 | 0.007678 | 0.163724 | 623 | 18 | 91 | 34.611111 | 0.867562 | 0.157303 | 0 | 0 | 0 | 0 | 0.305556 | 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 |
e66dd75ae0bf7e3d43a0a0b5833ef2c98e86a332 | 581 | py | Python | tests/conftest.py | artembashlak/share-youtube-to-mail | 347f72ed8846b85cae8e4f39896ab54e698a6de9 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | artembashlak/share-youtube-to-mail | 347f72ed8846b85cae8e4f39896ab54e698a6de9 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | artembashlak/share-youtube-to-mail | 347f72ed8846b85cae8e4f39896ab54e698a6de9 | [
"Apache-2.0"
] | null | null | null | import pytest
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
@pytest.fixture(scope="function")
def browser():
options = webdriver.ChromeOptions()
options.add_argument('ignore-certificate-errors')
options.add_argument("--headless")
options.add_argument('--no-san... | 30.578947 | 79 | 0.753873 | 62 | 581 | 6.951613 | 0.516129 | 0.139211 | 0.25058 | 0.116009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123924 | 581 | 18 | 80 | 32.277778 | 0.846758 | 0 | 0 | 0 | 0 | 0 | 0.182444 | 0.043029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.266667 | 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 |
e66e53547faa705c9a68f28dba07b4048f2f1b31 | 2,335 | py | Python | crusoe_observe/neo4j-client/neo4jclient/CMSClient.py | CSIRT-MU/CRUSOE | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | [
"MIT"
] | 3 | 2021-11-09T09:55:17.000Z | 2022-02-19T02:58:27.000Z | crusoe_observe/neo4j-client/neo4jclient/CMSClient.py | CSIRT-MU/CRUSOE | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | [
"MIT"
] | null | null | null | crusoe_observe/neo4j-client/neo4jclient/CMSClient.py | CSIRT-MU/CRUSOE | 73e4ac0ced6c3ac46d24ac5c3feb01a1e88bd36b | [
"MIT"
] | null | null | null | from neo4jclient.AbsClient import AbstractClient
class CMSClient(AbstractClient):
def __init__(self, password, **kwargs):
super().__init__(password=password, **kwargs)
def get_domain_names(self):
"""
Gets all domain names from database.
:return: domain names in JSON-like form... | 39.576271 | 117 | 0.576017 | 282 | 2,335 | 4.652482 | 0.393617 | 0.027439 | 0.027439 | 0.036585 | 0.108232 | 0.108232 | 0.108232 | 0.057927 | 0.057927 | 0.057927 | 0 | 0.003672 | 0.300214 | 2,335 | 58 | 118 | 40.258621 | 0.799266 | 0.321627 | 0 | 0 | 0 | 0 | 0.455571 | 0.141749 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0.08 | 0.04 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e66ec2107d63dfd849c5ad20ff3a6280caaa39d1 | 604 | py | Python | location.py | jonasjucker/wildlife-telegram | 5fb548d3779782467247cf5d1e165d1c2349de30 | [
"MIT"
] | null | null | null | location.py | jonasjucker/wildlife-telegram | 5fb548d3779782467247cf5d1e165d1c2349de30 | [
"MIT"
] | null | null | null | location.py | jonasjucker/wildlife-telegram | 5fb548d3779782467247cf5d1e165d1c2349de30 | [
"MIT"
] | null | null | null | import time
from datetime import date,datetime
from astral import LocationInfo
from astral.sun import sun
class CamLocation:
def __init__(self,lat,lon,info,country,timezone):
self.info = LocationInfo(info, country, timezone, lat, lon)
def is_night(self):
s = sun(self.info.observer, date=date.t... | 27.454545 | 80 | 0.652318 | 76 | 604 | 5.078947 | 0.447368 | 0.062176 | 0.098446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243377 | 604 | 21 | 81 | 28.761905 | 0.844639 | 0 | 0 | 0 | 0 | 0 | 0.021523 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 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 |
e671c98e986dfbf41b15884e3c4cc078b893ecb2 | 1,040 | py | Python | Python/problem1150.py | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | Python/problem1150.py | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | Python/problem1150.py | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | from typing import List
from collections import Counter
# class Solution:
# def isMajorityElement(self, nums: List[int], target: int) -> bool:
# d = Counter(nums)
# return d[target] > len(nums)//2
# class Solution:
# def isMajorityElement(self, nums: List[int], target: int) -> bool:
# ... | 25.365854 | 72 | 0.476923 | 125 | 1,040 | 3.968 | 0.256 | 0.056452 | 0.096774 | 0.199597 | 0.47379 | 0.372984 | 0.372984 | 0.372984 | 0.372984 | 0.372984 | 0 | 0.019386 | 0.404808 | 1,040 | 40 | 73 | 26 | 0.781906 | 0.356731 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.45 | 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 |
e675854ddbd73f687dc3955ba80c468d17bec3c4 | 801 | py | Python | todo/models.py | zyayoung/share-todo | 84813545f9aa3e89441c560e64e85bc799835d30 | [
"MIT"
] | null | null | null | todo/models.py | zyayoung/share-todo | 84813545f9aa3e89441c560e64e85bc799835d30 | [
"MIT"
] | null | null | null | todo/models.py | zyayoung/share-todo | 84813545f9aa3e89441c560e64e85bc799835d30 | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
class Todo(models.Model):
time_add = models.DateTimeField(auto_now_add=True)
title = models.CharField(max_length=64)
detail = models.TextField(blank=True)
deadline = models.DateTimeField(blank=Tr... | 26.7 | 63 | 0.657928 | 97 | 801 | 5.309278 | 0.525773 | 0.058252 | 0.054369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004934 | 0.240949 | 801 | 29 | 64 | 27.62069 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0.029963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0.086957 | 0.826087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6774fb2431795bf70a9da58c9b195ced57c3c9e | 839 | py | Python | dev-template/src/mysql_connect_sample.py | arrowkato/pytest-CircleiCI | 2f6a1460a48bf88547538cfc72880a9c86f9ec23 | [
"MIT"
] | null | null | null | dev-template/src/mysql_connect_sample.py | arrowkato/pytest-CircleiCI | 2f6a1460a48bf88547538cfc72880a9c86f9ec23 | [
"MIT"
] | 10 | 2020-08-24T00:25:06.000Z | 2020-11-08T03:58:48.000Z | dev-template/src/mysql_connect_sample.py | arrowkato/pytest-CircleiCI | 2f6a1460a48bf88547538cfc72880a9c86f9ec23 | [
"MIT"
] | null | null | null | import mysql.connector
from mysql.connector import errorcode
config = {
'user': 'user',
'password': 'password',
'host': 'mysql_container',
'database': 'sample_db',
'port': '3306',
}
if __name__ == "__main__":
try:
conn = mysql.connector.connect(**config)
cursor = conn.cursor()
... | 28.931034 | 76 | 0.587604 | 99 | 839 | 4.79798 | 0.575758 | 0.117895 | 0.071579 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009885 | 0.27652 | 839 | 28 | 77 | 29.964286 | 0.772652 | 0 | 0 | 0.153846 | 0 | 0 | 0.220501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.076923 | 0 | 0.076923 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e677b427e6603c8fe21acf94f00727cd3ed74b7a | 920 | py | Python | Mundo 1/ex011.py | viniciusbonito/CeV-Python-Exercicios | 6182421332f6f0c0a567c3e125fdc05736fa6281 | [
"MIT"
] | null | null | null | Mundo 1/ex011.py | viniciusbonito/CeV-Python-Exercicios | 6182421332f6f0c0a567c3e125fdc05736fa6281 | [
"MIT"
] | null | null | null | Mundo 1/ex011.py | viniciusbonito/CeV-Python-Exercicios | 6182421332f6f0c0a567c3e125fdc05736fa6281 | [
"MIT"
] | null | null | null | # criar um programa que pergunte as dimensões de uma parede, calcule sua área e informe quantos litros de tinta
# seriam necessários para a pintura, após perguntar o rendimento da tinta informado na lata
print('=' * 40)
print('{:^40}'.format('Assistente de pintura'))
print('=' * 40)
altura = float(input('Informe a al... | 46 | 111 | 0.723913 | 142 | 920 | 4.690141 | 0.443662 | 0.06006 | 0.045045 | 0.054054 | 0.039039 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017834 | 0.146739 | 920 | 20 | 112 | 46 | 0.830573 | 0.216304 | 0 | 0.153846 | 0 | 0 | 0.527121 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e677b75c2a6dcc29dc727e2cdc804229c99df35d | 591 | py | Python | Python/Mundo 3/ex088.py | henrique-tavares/Coisas | f740518b1bedec5b0ea8c12ae07a2cac21eb51ae | [
"MIT"
] | 1 | 2020-02-07T20:39:26.000Z | 2020-02-07T20:39:26.000Z | Python/Mundo 3/ex088.py | neptune076/Coisas | 85c064cc0e134465aaf6ef41acf747d47f108fc9 | [
"MIT"
] | null | null | null | Python/Mundo 3/ex088.py | neptune076/Coisas | 85c064cc0e134465aaf6ef41acf747d47f108fc9 | [
"MIT"
] | null | null | null | from random import sample
from time import sleep
jogos = list()
print('-' * 20)
print(f'{"MEGA SENA":^20}')
print('-' * 20)
while True:
n = int(input("\nQuatos jogos você quer que eu sorteie? "))
if (n > 0):
break
print('\n[ERRO] Valor fora do intervalo')
print()
print('-=' * 3, e... | 17.909091 | 63 | 0.527919 | 88 | 591 | 3.545455 | 0.534091 | 0.102564 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040089 | 0.240271 | 591 | 33 | 64 | 17.909091 | 0.654788 | 0 | 0 | 0.090909 | 0 | 0 | 0.273649 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.545455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e678937ffa958feedad60c6818f9966146fc7fd7 | 229 | py | Python | tests/list/list03.py | ktok07b6/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 83 | 2015-11-30T09:59:13.000Z | 2021-08-03T09:12:28.000Z | tests/list/list03.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 4 | 2017-02-10T01:43:11.000Z | 2020-07-14T03:52:25.000Z | tests/list/list03.py | jesseclin/polyphony | 657c5c7440520db6b4985970bd50547407693ac4 | [
"MIT"
] | 11 | 2016-11-18T14:39:15.000Z | 2021-02-23T10:05:20.000Z | from polyphony import testbench
def list03(x, y, z):
a = [1, 2, 3]
r0 = x
r1 = y
a[r0] = a[r1] + z
return a[r0]
@testbench
def test():
assert 4 == list03(0, 1 ,2)
assert 5 == list03(2, 1 ,3)
test()
| 14.3125 | 31 | 0.515284 | 41 | 229 | 2.878049 | 0.512195 | 0.20339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141026 | 0.318777 | 229 | 15 | 32 | 15.266667 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.333333 | 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 |
e67abeee75de516885fc3f200a8feafafe7fd320 | 2,313 | py | Python | manimlib/mobject/functions.py | parmentelat/manim | f05f94fbf51c70591bed3092587a5db0de439738 | [
"MIT"
] | 1 | 2021-02-04T12:54:36.000Z | 2021-02-04T12:54:36.000Z | manimlib/mobject/functions.py | parmentelat/manim | f05f94fbf51c70591bed3092587a5db0de439738 | [
"MIT"
] | null | null | null | manimlib/mobject/functions.py | parmentelat/manim | f05f94fbf51c70591bed3092587a5db0de439738 | [
"MIT"
] | null | null | null | from manimlib.constants import *
from manimlib.mobject.types.vectorized_mobject import VMobject
from manimlib.utils.config_ops import digest_config
from manimlib.utils.space_ops import get_norm
class ParametricCurve(VMobject):
CONFIG = {
"t_range": [0, 1, 0.1],
"min_samples": 10,
"epsilon"... | 31.684932 | 90 | 0.609166 | 313 | 2,313 | 4.239617 | 0.28115 | 0.058779 | 0.045215 | 0.030143 | 0.165787 | 0.096458 | 0.055765 | 0 | 0 | 0 | 0 | 0.016598 | 0.270644 | 2,313 | 72 | 91 | 32.125 | 0.770006 | 0.054907 | 0 | 0.071429 | 0 | 0 | 0.036647 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.125 | false | 0 | 0.071429 | 0.071429 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e67af792ae036b2a2bc22a1b166e10db5dcc3d7e | 9,704 | py | Python | lib/ecsmate/ecs.py | doudoudzj/ecsmate | dda508a64ef9d6979dcc83377bb007d2a0acec30 | [
"Apache-2.0"
] | null | null | null | lib/ecsmate/ecs.py | doudoudzj/ecsmate | dda508a64ef9d6979dcc83377bb007d2a0acec30 | [
"Apache-2.0"
] | null | null | null | lib/ecsmate/ecs.py | doudoudzj/ecsmate | dda508a64ef9d6979dcc83377bb007d2a0acec30 | [
"Apache-2.0"
] | null | null | null | #-*- coding: utf-8 -*-
#
# Copyright (c) 2012, ECSMate development team
# All rights reserved.
#
# ECSMate is distributed under the terms of the (new) BSD License.
# The full license can be found in 'LICENSE.txt'.
"""ECS SDK
"""
import time
import hmac
import base64
import hashlib
import urllib
import... | 36.344569 | 102 | 0.622424 | 941 | 9,704 | 6.27949 | 0.227418 | 0.057539 | 0.078186 | 0.111694 | 0.393975 | 0.393975 | 0.393975 | 0.393975 | 0.393975 | 0.393975 | 0 | 0.023729 | 0.266076 | 9,704 | 266 | 103 | 36.481203 | 0.805953 | 0.077597 | 0 | 0.375 | 0 | 0 | 0.041941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.010417 | 0.046875 | null | null | 0.067708 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e68358c694510e180fb49e743ec559c977aea7b6 | 1,467 | py | Python | src/HandNetwork.py | xausky/hand-network | e885003c5bb9157cd06dc3ea3aabddbb7162a0ab | [
"MIT"
] | 2 | 2017-04-18T03:31:06.000Z | 2017-06-08T10:27:59.000Z | src/HandNetwork.py | xausky/hand-network | e885003c5bb9157cd06dc3ea3aabddbb7162a0ab | [
"MIT"
] | null | null | null | src/HandNetwork.py | xausky/hand-network | e885003c5bb9157cd06dc3ea3aabddbb7162a0ab | [
"MIT"
] | null | null | null | #!/usr/bin/python3
#-*- coding: utf-8 -*-
import urllib.parse
import json
import base64
import requests
import logging
class Network():
LOGIN_URL = 'http://192.168.211.101/portal/pws?t=li'
BEAT_URL = 'http://192.168.211.101/portal/page/doHeartBeat.jsp'
COMMON_HERADERS = {
'Accept-Language': 'en-US',
... | 36.675 | 84 | 0.657805 | 166 | 1,467 | 5.740964 | 0.46988 | 0.044071 | 0.03148 | 0.027282 | 0.128017 | 0.128017 | 0.052466 | 0 | 0 | 0 | 0 | 0.03856 | 0.204499 | 1,467 | 39 | 85 | 37.615385 | 0.778063 | 0.025903 | 0 | 0.058824 | 0 | 0 | 0.149965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0.088235 | 0.147059 | 0 | 0.382353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6848af64f5fa82bd5d7d5132ff08186219ab513 | 15,634 | py | Python | bert_multitask_learning/model_fn.py | akashnd/bert-multitask-learning | aee5be006ef6a3feadf0c751a6f9b42c24c3fd21 | [
"Apache-2.0"
] | null | null | null | bert_multitask_learning/model_fn.py | akashnd/bert-multitask-learning | aee5be006ef6a3feadf0c751a6f9b42c24c3fd21 | [
"Apache-2.0"
] | null | null | null | bert_multitask_learning/model_fn.py | akashnd/bert-multitask-learning | aee5be006ef6a3feadf0c751a6f9b42c24c3fd21 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: source_nbs/13_model_fn.ipynb (unless otherwise specified).
__all__ = ['variable_summaries', 'filter_loss', 'BertMultiTaskBody', 'BertMultiTaskTop', 'BertMultiTask']
# Cell
from typing import Dict, Tuple
from inspect import signature
import tensorflow as tf
import transform... | 42.368564 | 114 | 0.623321 | 1,840 | 15,634 | 5.036957 | 0.176087 | 0.064523 | 0.03798 | 0.028485 | 0.445619 | 0.34959 | 0.289167 | 0.233492 | 0.181916 | 0.171019 | 0 | 0.005824 | 0.286107 | 15,634 | 368 | 115 | 42.483696 | 0.824568 | 0.216579 | 0 | 0.162162 | 1 | 0 | 0.051026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058559 | false | 0 | 0.036036 | 0.004505 | 0.148649 | 0 | 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 |
e6885b17b97915311f8a8bd86b9f72a31641ef6d | 7,392 | py | Python | plugins/modules/oci_database_management_object_privilege_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_database_management_object_privilege_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | plugins/modules/oci_database_management_object_privilege_facts.py | LaudateCorpus1/oci-ansible-collection | 2b1cd87b4d652a97c1ca752cfc4fdc4bdb37a7e7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Copyright (c) 2020, 2022 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 30.92887 | 133 | 0.626759 | 822 | 7,392 | 5.453771 | 0.284672 | 0.029668 | 0.037921 | 0.046844 | 0.274593 | 0.228418 | 0.154584 | 0.147223 | 0.116663 | 0.073388 | 0 | 0.004805 | 0.296131 | 7,392 | 238 | 134 | 31.058824 | 0.856813 | 0.05533 | 0 | 0.265 | 0 | 0.015 | 0.648114 | 0.03242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015 | false | 0.005 | 0.03 | 0.005 | 0.065 | 0.005 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e68c436db086a9f75f4ec9a1c59f8bdd8afa7f45 | 1,028 | py | Python | src/simple_report/xls/document.py | glibin/simple-report | 1e68b2fe568d6f7a7d9332d0e83b9a21661419e0 | [
"Apache-2.0"
] | null | null | null | src/simple_report/xls/document.py | glibin/simple-report | 1e68b2fe568d6f7a7d9332d0e83b9a21661419e0 | [
"Apache-2.0"
] | null | null | null | src/simple_report/xls/document.py | glibin/simple-report | 1e68b2fe568d6f7a7d9332d0e83b9a21661419e0 | [
"Apache-2.0"
] | null | null | null | #coding: utf-8
import xlrd
from simple_report.core.document_wrap import BaseDocument, SpreadsheetDocument
from simple_report.xls.workbook import Workbook
from simple_report.xls.output_options import XSL_OUTPUT_SETTINGS
class DocumentXLS(BaseDocument, SpreadsheetDocument):
"""
Обертка для отчетов в ... | 25.7 | 79 | 0.614786 | 109 | 1,028 | 5.568807 | 0.53211 | 0.079077 | 0.079077 | 0.062603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001389 | 0.299611 | 1,028 | 39 | 80 | 26.358974 | 0.841667 | 0.150778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e68c634de73f166e370b403383fc377943dc8b21 | 4,796 | py | Python | pipeline_sdk/api/build/cancel_build_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | 5 | 2019-07-31T04:11:05.000Z | 2021-01-07T03:23:20.000Z | pipeline_sdk/api/build/cancel_build_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | pipeline_sdk/api/build/cancel_build_pb2.py | easyopsapis/easyops-api-python | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cancel_build.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobu... | 35.791045 | 399 | 0.755004 | 591 | 4,796 | 5.832487 | 0.240271 | 0.039455 | 0.048738 | 0.034813 | 0.466783 | 0.441833 | 0.43371 | 0.411662 | 0.389614 | 0.389614 | 0 | 0.035342 | 0.120934 | 4,796 | 133 | 400 | 36.06015 | 0.782258 | 0.062969 | 0 | 0.559633 | 1 | 0.009174 | 0.191485 | 0.139545 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055046 | 0 | 0.055046 | 0 | 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 |
e692cff5589dc59f4785c76fbfa11c53ff5a1d4e | 305 | py | Python | setup.py | arokem/afq-deep-learning | 61d7746f03914d63c56253d10d0f6a21e6c78e90 | [
"BSD-3-Clause"
] | null | null | null | setup.py | arokem/afq-deep-learning | 61d7746f03914d63c56253d10d0f6a21e6c78e90 | [
"BSD-3-Clause"
] | null | null | null | setup.py | arokem/afq-deep-learning | 61d7746f03914d63c56253d10d0f6a21e6c78e90 | [
"BSD-3-Clause"
] | 2 | 2021-12-01T17:04:39.000Z | 2022-01-20T22:53:40.000Z | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='This repository hosts some work-in-progress experiments applying deep learning to predict age using tractometry data.',
author='Joanna Qiao',
license='BSD-3',
)
| 27.727273 | 136 | 0.718033 | 40 | 305 | 5.425 | 0.875 | 0.110599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.17377 | 305 | 10 | 137 | 30.5 | 0.845238 | 0 | 0 | 0 | 0 | 0 | 0.462295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6957e411e3b025a67a76d0f0a74f5d86329bb6f | 2,683 | py | Python | analytical/conditionnumber.py | gyyang/olfaction_evolution | 434baa85b91f450e1ab63c6b9eafb8d370f1df96 | [
"MIT"
] | 9 | 2021-10-11T01:16:23.000Z | 2022-01-13T14:07:08.000Z | analytical/conditionnumber.py | gyyang/olfaction_evolution | 434baa85b91f450e1ab63c6b9eafb8d370f1df96 | [
"MIT"
] | 1 | 2021-10-30T09:49:08.000Z | 2021-10-30T09:49:08.000Z | analytical/conditionnumber.py | gyyang/olfaction_evolution | 434baa85b91f450e1ab63c6b9eafb8d370f1df96 | [
"MIT"
] | null | null | null | """Analyze condition number of the network."""
import numpy as np
import matplotlib.pyplot as plt
# import model
def _get_sparse_mask(nx, ny, non, complex=False, nOR=50):
"""Generate a binary mask.
The mask will be of size (nx, ny)
For all the nx connections to each 1 of the ny units, only non connectio... | 27.10101 | 85 | 0.621319 | 502 | 2,683 | 3.10757 | 0.23506 | 0.069231 | 0.023077 | 0.030769 | 0.335256 | 0.326923 | 0.314103 | 0.305769 | 0.291026 | 0.260256 | 0 | 0.029808 | 0.224748 | 2,683 | 98 | 86 | 27.377551 | 0.720192 | 0.200149 | 0 | 0.240741 | 1 | 0 | 0.050645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.037037 | 0 | 0.185185 | 0 | 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 |
e6960adb05d4b964e50fe6cceef1e01091d1811d | 2,327 | py | Python | FusionIIIT/applications/placement_cell/api/serializers.py | 29rj/Fusion | bc2941a67532e183adeb0bc4042df0b182b9e3aa | [
"bzip2-1.0.6"
] | 29 | 2019-02-20T15:35:33.000Z | 2022-03-22T11:10:57.000Z | FusionIIIT/applications/placement_cell/api/serializers.py | 29rj/Fusion | bc2941a67532e183adeb0bc4042df0b182b9e3aa | [
"bzip2-1.0.6"
] | 409 | 2019-01-17T19:30:51.000Z | 2022-03-31T16:28:45.000Z | FusionIIIT/applications/placement_cell/api/serializers.py | 29rj/Fusion | bc2941a67532e183adeb0bc4042df0b182b9e3aa | [
"bzip2-1.0.6"
] | 456 | 2019-01-12T11:01:13.000Z | 2022-03-30T17:06:52.000Z | from rest_framework.authtoken.models import Token
from rest_framework import serializers
from applications.placement_cell.models import (Achievement, Course, Education,
Experience, Has, Patent,
Project, Publication, Skill,
... | 27.376471 | 89 | 0.644607 | 200 | 2,327 | 7.215 | 0.34 | 0.198198 | 0.106722 | 0.218295 | 0.24948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270735 | 2,327 | 84 | 90 | 27.702381 | 0.850324 | 0 | 0 | 0.333333 | 0 | 0 | 0.072626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0 | 0.05 | 0 | 0.483333 | 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 |
e69960fc13118fa865fc6b90dfac61ac3e974383 | 1,290 | py | Python | model-optimizer/extensions/front/mxnet/arange_ext.py | calvinfeng/openvino | 11f591c16852637506b1b40d083b450e56d0c8ac | [
"Apache-2.0"
] | null | null | null | model-optimizer/extensions/front/mxnet/arange_ext.py | calvinfeng/openvino | 11f591c16852637506b1b40d083b450e56d0c8ac | [
"Apache-2.0"
] | 19 | 2021-03-26T08:11:00.000Z | 2022-02-21T13:06:26.000Z | model-optimizer/extensions/front/mxnet/arange_ext.py | calvinfeng/openvino | 11f591c16852637506b1b40d083b450e56d0c8ac | [
"Apache-2.0"
] | 1 | 2021-07-28T17:30:46.000Z | 2021-07-28T17:30:46.000Z | """
Copyright (C) 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | 32.25 | 73 | 0.694574 | 181 | 1,290 | 4.895028 | 0.60221 | 0.06772 | 0.029345 | 0.036117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017699 | 0.211628 | 1,290 | 39 | 74 | 33.076923 | 0.853491 | 0.439535 | 0 | 0 | 0 | 0 | 0.089362 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6a0c4454894632f570e8f7308cb8d060eed1f45 | 767 | py | Python | modtox/Helpers/helpers.py | danielSoler93/modtox | 757234140cc780f57d031b46d9293fc2bf95d18d | [
"Apache-2.0"
] | 4 | 2019-09-22T22:57:30.000Z | 2020-03-18T13:20:50.000Z | modtox/Helpers/helpers.py | danielSoler93/ModTox | 757234140cc780f57d031b46d9293fc2bf95d18d | [
"Apache-2.0"
] | 21 | 2019-09-16T11:07:13.000Z | 2019-11-20T15:06:06.000Z | modtox/Helpers/helpers.py | danielSoler93/ModTox | 757234140cc780f57d031b46d9293fc2bf95d18d | [
"Apache-2.0"
] | 2 | 2019-09-07T17:07:55.000Z | 2020-03-18T13:20:52.000Z | import os
def retrieve_molecule_number(pdb, resname):
"""
IDENTIFICATION OF MOLECULE NUMBER BASED
ON THE TER'S
"""
count = 0
with open(pdb, 'r') as x:
lines = x.readlines()
for i in lines:
if i.split()[0] == 'TER': count += 1
if i.split()[3] == resname: ... | 23.96875 | 68 | 0.573664 | 93 | 767 | 4.55914 | 0.580645 | 0.132075 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009542 | 0.316819 | 767 | 31 | 69 | 24.741935 | 0.799618 | 0.148631 | 0 | 0 | 0 | 0 | 0.006319 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.052632 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6a5916da8516ca978c7505bb56075d47bacaa77 | 826 | py | Python | tools/webcam/webcam_apis/nodes/__init__.py | ivmtorres/mmpose | 662cb50c639653ae2fc19d3421ce10bd02246b85 | [
"Apache-2.0"
] | 1 | 2022-02-13T12:27:40.000Z | 2022-02-13T12:27:40.000Z | tools/webcam/webcam_apis/nodes/__init__.py | ivmtorres/mmpose | 662cb50c639653ae2fc19d3421ce10bd02246b85 | [
"Apache-2.0"
] | null | null | null | tools/webcam/webcam_apis/nodes/__init__.py | ivmtorres/mmpose | 662cb50c639653ae2fc19d3421ce10bd02246b85 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
from .builder import NODES
from .faceswap_nodes import FaceSwapNode
from .frame_effect_nodes import (BackgroundNode, BugEyeNode, MoustacheNode,
NoticeBoardNode, PoseVisualizerNode,
SaiyanNode, SunglassesNod... | 45.888889 | 78 | 0.74092 | 65 | 826 | 9.246154 | 0.476923 | 0.109817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175545 | 826 | 17 | 79 | 48.588235 | 0.882526 | 0.054479 | 0 | 0 | 0 | 0 | 0.263158 | 0.05905 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.466667 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e6aa6635d278553660a8a5b50b4098367fae31a5 | 2,446 | py | Python | composer/profiler/__init__.py | stanford-crfm/composer | 4996fbd818971afd6439961df58b531d9b47a37b | [
"Apache-2.0"
] | null | null | null | composer/profiler/__init__.py | stanford-crfm/composer | 4996fbd818971afd6439961df58b531d9b47a37b | [
"Apache-2.0"
] | null | null | null | composer/profiler/__init__.py | stanford-crfm/composer | 4996fbd818971afd6439961df58b531d9b47a37b | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 MosaicML. All Rights Reserved.
"""Performance profiling tools.
The profiler gathers performance metrics during a training run that can be used to diagnose bottlenecks and
facilitate model development.
The metrics gathered include:
* Duration of each :class:`.Event` during training
* Time taken by t... | 44.472727 | 146 | 0.780867 | 326 | 2,446 | 5.665644 | 0.48773 | 0.070384 | 0.055225 | 0.043313 | 0.069302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004265 | 0.137367 | 2,446 | 54 | 147 | 45.296296 | 0.87109 | 0.822976 | 0 | 0 | 0 | 0 | 0.112941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6c80a99d05f2b6649c49c64c56164c81a82517f | 29,212 | py | Python | wizbin/build.py | RogueScholar/debreate | 0abc168c51336b31ff87c61f84bc7bb6000e88f4 | [
"MIT"
] | 97 | 2016-09-16T08:44:04.000Z | 2022-01-29T22:30:18.000Z | wizbin/build.py | RogueScholar/debreate | 0abc168c51336b31ff87c61f84bc7bb6000e88f4 | [
"MIT"
] | 34 | 2016-09-20T00:42:45.000Z | 2021-04-16T07:21:44.000Z | wizbin/build.py | RogueScholar/debreate | 0abc168c51336b31ff87c61f84bc7bb6000e88f4 | [
"MIT"
] | 24 | 2016-09-16T08:44:56.000Z | 2021-07-29T11:32:47.000Z | # -*- coding: utf-8 -*-
## \package wizbin.build
# MIT licensing
# See: docs/LICENSE.txt
import commands, os, shutil, subprocess, traceback, wx
from dbr.functions import FileUnstripped
from dbr.language import GT
from dbr.log import DebugEnabled
from dbr.log import Logger
from dbr.md5 import WriteMD5
from ... | 28.251451 | 151 | 0.691736 | 3,995 | 29,212 | 4.900626 | 0.161202 | 0.00996 | 0.00899 | 0.022219 | 0.236541 | 0.17489 | 0.12749 | 0.103637 | 0.088467 | 0.073858 | 0.000068 | 0.006506 | 0.189682 | 29,212 | 1,033 | 152 | 28.2788 | 0.820244 | 0.162844 | 0 | 0.239482 | 0 | 0 | 0.11004 | 0.003253 | 0 | 0 | 0 | 0.000968 | 0 | 0 | null | null | 0.004854 | 0.071197 | null | null | 0.004854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e6c8ce8afe1fef7a0e2e19b44facdada82817d59 | 311 | py | Python | __main__.py | maelstromdat/YOSHI | 67e5176f24ff12e598025d4250b408da564f53d1 | [
"Apache-2.0"
] | 6 | 2017-05-07T09:39:18.000Z | 2021-10-07T01:46:08.000Z | __main__.py | maelstromdat/YOSHI | 67e5176f24ff12e598025d4250b408da564f53d1 | [
"Apache-2.0"
] | 1 | 2018-01-15T15:31:03.000Z | 2018-01-15T15:31:03.000Z | __main__.py | maelstromdat/YOSHI | 67e5176f24ff12e598025d4250b408da564f53d1 | [
"Apache-2.0"
] | 5 | 2020-02-28T04:16:16.000Z | 2021-04-30T09:35:19.000Z | from YoshiViz import Gui
if __name__ == '__main__':
#file director
gui = Gui.Gui()
"""
report_generator.\
generate_pdf_report(fileDirectory, repositoryName, tempCommunityType)
"""
print('the type of', repositoryName, 'is', tempCommunityType, '\n"check .\YoshiViz\output"')
| 25.916667 | 96 | 0.662379 | 31 | 311 | 6.290323 | 0.774194 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209003 | 311 | 11 | 97 | 28.272727 | 0.792683 | 0.041801 | 0 | 0 | 1 | 0 | 0.265193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e6cd191f4e7eeaa1d075d528c9e2ada0827d674f | 4,618 | py | Python | HW2/dbsys-hw2/Database.py | yliu120/dbsystem | d1b008f411929058a34a1dd2c44c9ee2cf899865 | [
"Apache-2.0"
] | null | null | null | HW2/dbsys-hw2/Database.py | yliu120/dbsystem | d1b008f411929058a34a1dd2c44c9ee2cf899865 | [
"Apache-2.0"
] | null | null | null | HW2/dbsys-hw2/Database.py | yliu120/dbsystem | d1b008f411929058a34a1dd2c44c9ee2cf899865 | [
"Apache-2.0"
] | null | null | null | import json, io, os, os.path
from Catalog.Schema import DBSchema, DBSchemaEncoder, DBSchemaDecoder
from Query.Plan import PlanBuilder
from Storage.StorageEngine import StorageEngine
class Database:
"""
A top-level database engine class.
For now, this primarily maintains a simple catalog,
... | 31.848276 | 107 | 0.707016 | 524 | 4,618 | 6.204198 | 0.311069 | 0.067671 | 0.019994 | 0.035681 | 0.177176 | 0.121193 | 0.121193 | 0.076592 | 0.076592 | 0.059059 | 0 | 0.000271 | 0.19987 | 4,618 | 144 | 108 | 32.069444 | 0.879567 | 0.145518 | 0 | 0.177778 | 0 | 0 | 0.049578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.055556 | 0.077778 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6ce056f0a84e4b655921e3c42a24774c81e07e4 | 619 | py | Python | moderngl_window/resources/data.py | DavideRuzza/moderngl-window | e9debc6ed4a1899aa83c0da2320e03b0c2922b80 | [
"MIT"
] | 142 | 2019-11-11T23:14:28.000Z | 2022-03-29T08:37:03.000Z | moderngl_window/resources/data.py | DavideRuzza/moderngl-window | e9debc6ed4a1899aa83c0da2320e03b0c2922b80 | [
"MIT"
] | 107 | 2019-10-31T20:31:45.000Z | 2022-03-23T15:01:41.000Z | moderngl_window/resources/data.py | DavideRuzza/moderngl-window | e9debc6ed4a1899aa83c0da2320e03b0c2922b80 | [
"MIT"
] | 36 | 2019-12-12T16:14:10.000Z | 2022-01-18T22:58:21.000Z | """
Registry general data files
"""
from typing import Any
from moderngl_window.resources.base import BaseRegistry
from moderngl_window.meta import DataDescription
class DataFiles(BaseRegistry):
"""Registry for requested data files"""
settings_attr = "DATA_LOADERS"
def load(self, meta: DataDescription) ... | 23.807692 | 99 | 0.678514 | 69 | 619 | 6.014493 | 0.536232 | 0.101205 | 0.086747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227787 | 619 | 25 | 100 | 24.76 | 0.868201 | 0.390953 | 0 | 0 | 0 | 0 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e6cebeadc3ade385a017e0f9c9ce037d2f450345 | 2,106 | py | Python | quarkchain/tools/config_slave.py | HAOYUatHZ/pyquarkchain | b2c7c02e4415aa26917c2cbb5e7571c9fef16c5b | [
"MIT"
] | 1 | 2018-10-23T05:48:42.000Z | 2018-10-23T05:48:42.000Z | quarkchain/tools/config_slave.py | skji/pyquarkchain | 090f9981b89b8873daaed36171a9bc9f27b10473 | [
"MIT"
] | 3 | 2020-03-12T18:09:40.000Z | 2021-02-26T02:33:09.000Z | quarkchain/tools/config_slave.py | skji/pyquarkchain | 090f9981b89b8873daaed36171a9bc9f27b10473 | [
"MIT"
] | null | null | null | """
python config_slave.py 127.0.0.1 38000 38006 127.0.0.2 18999 18002
will generate 4 slave server configs accordingly. will be used in deployment automation to configure a cluster.
usage: python config_slave.py <host1> <port1> <port2> <host2> <port3> ...
"""
import argparse
import collections
import json
import ... | 28.459459 | 111 | 0.597816 | 279 | 2,106 | 4.301075 | 0.419355 | 0.046667 | 0.0625 | 0.0425 | 0.041667 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0.030579 | 0.27018 | 2,106 | 73 | 112 | 28.849315 | 0.750163 | 0.197531 | 0 | 0 | 1 | 0 | 0.100434 | 0.027278 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.020833 | false | 0 | 0.083333 | 0 | 0.104167 | 0 | 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 |
e6d6837b46baf712793275d6754e0dab0bf209be | 602 | py | Python | baseline/ns-vqa/reason/options/test_options.py | robinzixuan/Video-Question-Answering-HRI | ae68ffee1e6fc1eb13229e457e3b8e3bc3a11579 | [
"MIT"
] | 52 | 2019-12-04T22:26:56.000Z | 2022-03-31T17:04:15.000Z | reason/options/test_options.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 6 | 2020-08-25T07:35:14.000Z | 2021-09-09T04:57:09.000Z | reason/options/test_options.py | guxiwuruo/VCML | 5a0f01a0baba238cef2f63131fccd412e3d7822b | [
"MIT"
] | 5 | 2020-02-10T07:39:24.000Z | 2021-06-23T02:53:42.000Z | from .base_options import BaseOptions
class TestOptions(BaseOptions):
"""Test Option Class"""
def __init__(self):
super(TestOptions, self).__init__()
self.parser.add_argument('--load_checkpoint_path', required=True, type=str, help='checkpoint path')
self.parser.add_argument('--save_re... | 43 | 107 | 0.699336 | 79 | 602 | 5.050633 | 0.493671 | 0.100251 | 0.130326 | 0.210526 | 0.260652 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0.005929 | 0.159468 | 602 | 14 | 108 | 43 | 0.782609 | 0.028239 | 0 | 0 | 0 | 0 | 0.210345 | 0.037931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.