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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19061f4878081d445a95ad71c36706faead6869e | 7,566 | py | Python | med_base/main.py | TVect/ui-basenlp | 2610f120aca7f3dbe441e1a3606680a4968c3767 | [
"Apache-2.0"
] | null | null | null | med_base/main.py | TVect/ui-basenlp | 2610f120aca7f3dbe441e1a3606680a4968c3767 | [
"Apache-2.0"
] | null | null | null | med_base/main.py | TVect/ui-basenlp | 2610f120aca7f3dbe441e1a3606680a4968c3767 | [
"Apache-2.0"
] | null | null | null | import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../")
from med_base.storage.neo4j.models import Disease, Department
from med_base.storage.es.models import EntityDisease, EntityBodypart, EntityDepartment, \
EntityDrug, EntityExam, EntityOperation, EntitySymptom
from elastics... | 46.703704 | 105 | 0.612213 | 988 | 7,566 | 4.481781 | 0.092105 | 0.090334 | 0.108401 | 0.171635 | 0.526197 | 0.434734 | 0.334463 | 0.306911 | 0.235772 | 0.235772 | 0 | 0.003525 | 0.21253 | 7,566 | 161 | 106 | 46.993789 | 0.739678 | 0.074412 | 0 | 0.04386 | 0 | 0 | 0.273441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.070175 | 0 | 0.140351 | 0.166667 | 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 |
19088df1812f8461cf6f37865284f7a0d7cd1f14 | 701 | py | Python | saleor/order/migrations/0043_auto_20180322_0655.py | elwoodxblues/saleor | 5e4e4a4259a011d24b04ebd24c77c689de843fa1 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/order/migrations/0043_auto_20180322_0655.py | elwoodxblues/saleor | 5e4e4a4259a011d24b04ebd24c77c689de843fa1 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/order/migrations/0043_auto_20180322_0655.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | # Generated by Django 2.0.3 on 2018-03-22 11:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("order", "0042_auto_20180227_0436")]
operations = [
migrations.AlterModelOptions(
name="order",
options={
"orderin... | 25.962963 | 64 | 0.504993 | 63 | 701 | 5.492063 | 0.746032 | 0.052023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074157 | 0.365193 | 701 | 26 | 65 | 26.961538 | 0.703371 | 0.064194 | 0 | 0.15 | 1 | 0 | 0.191132 | 0.035168 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 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 |
ef6bd7e0ea9b3398bf600e6c8f992ccc59efdce2 | 729 | gyp | Python | binding.gyp | hideo55/node-murmurhash3 | ec79ef48ce87f8bb775775e8ffbb3ef1bd643309 | [
"Unlicense",
"MIT"
] | 33 | 2015-06-08T08:24:01.000Z | 2021-12-26T10:28:16.000Z | binding.gyp | hideo55/node-murmurhash3 | ec79ef48ce87f8bb775775e8ffbb3ef1bd643309 | [
"Unlicense",
"MIT"
] | 3 | 2015-04-30T11:58:20.000Z | 2019-07-17T14:06:36.000Z | binding.gyp | hideo55/node-murmurhash3 | ec79ef48ce87f8bb775775e8ffbb3ef1bd643309 | [
"Unlicense",
"MIT"
] | 16 | 2015-07-15T06:34:46.000Z | 2020-10-29T13:36:47.000Z | {
'targets': [
{
'target_name': 'murmurhash3',
'sources': ['src/MurmurHash3.cpp', 'src/node_murmurhash3.cc'],
'cflags': ['-fexceptions'],
'cflags_cc': ['-fexceptions'],
'cflags!': ['-fno-exceptions'],
'cflags_cc!': ['-fno-exception'],
"include_dirs" : [
"<!(node... | 23.516129 | 68 | 0.397805 | 47 | 729 | 5.957447 | 0.680851 | 0.121429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006865 | 0.400549 | 729 | 31 | 69 | 23.516129 | 0.633867 | 0 | 0 | 0.064516 | 0 | 0 | 0.427397 | 0.065753 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef7474c5c1ad8451f7c9404b8588c5133aca5da3 | 2,032 | py | Python | src/views/send/send_amount_form_view.py | Kevingislason/bitcoin_hardware_wallet_ui | 226983546c7c8838ca8bc72accdd6adbd8013446 | [
"MIT"
] | null | null | null | src/views/send/send_amount_form_view.py | Kevingislason/bitcoin_hardware_wallet_ui | 226983546c7c8838ca8bc72accdd6adbd8013446 | [
"MIT"
] | 5 | 2021-06-02T03:21:46.000Z | 2022-03-12T00:55:35.000Z | src/views/send/send_amount_form_view.py | Kevingislason/abacus_wallet_bridge | 226983546c7c8838ca8bc72accdd6adbd8013446 | [
"MIT"
] | null | null | null |
from PyQt6.QtCore import *
from PyQt6.QtGui import *
from PyQt6.QtWidgets import *
from constants.money_constants import BTC_POINTS_PRECISION, MAX_BTC
class SendAmountForm(QWidget):
def __init__(self):
super().__init__()
self.layout = QHBoxLayout()
self.setLayout(self.layout)
s... | 47.255814 | 117 | 0.769685 | 249 | 2,032 | 5.923695 | 0.188755 | 0.151864 | 0.208814 | 0.128814 | 0.623729 | 0.512542 | 0.275932 | 0.221017 | 0.221017 | 0.221017 | 0 | 0.004606 | 0.145177 | 2,032 | 42 | 118 | 48.380952 | 0.84456 | 0 | 0 | 0 | 0 | 0 | 0.006401 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.1875 | 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 |
ef758799dc852e331f3aec9eb0092c9e60b4563d | 2,606 | py | Python | store/models.py | x24870/django_ecommerce_demo | 01c0442f2dfee67c6d95e9324d604759d92a6a84 | [
"MIT"
] | null | null | null | store/models.py | x24870/django_ecommerce_demo | 01c0442f2dfee67c6d95e9324d604759d92a6a84 | [
"MIT"
] | null | null | null | store/models.py | x24870/django_ecommerce_demo | 01c0442f2dfee67c6d95e9324d604759d92a6a84 | [
"MIT"
] | null | null | null | from django.db import models
from django.conf import settings
class Customer(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True)
name = models.CharField(max_length=200, null=False, blank=False)
email = models.EmailField(null=False, blank=False)
def... | 31.39759 | 94 | 0.683039 | 323 | 2,606 | 5.337461 | 0.260062 | 0.060905 | 0.073086 | 0.097448 | 0.49942 | 0.392691 | 0.337587 | 0.295244 | 0.198956 | 0.146752 | 0 | 0.011817 | 0.220645 | 2,606 | 83 | 95 | 31.39759 | 0.837026 | 0 | 0 | 0.313433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134328 | false | 0 | 0.029851 | 0.059701 | 0.701493 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef78b180443645fcc3666b457886441edeb56dbf | 2,000 | py | Python | old/src/baseline_agents/L2RPN_NIPS_2020_a_PPO_Solution/Teacher/Generate_action_space.py | horacioMartinez/L2RPN | 11e13a60a568b8ad7f9c6de060ac8c41784ced96 | [
"MIT"
] | 2 | 2021-10-17T08:41:42.000Z | 2021-12-22T18:39:39.000Z | old/src/baseline_agents/L2RPN_NIPS_2020_a_PPO_Solution/Teacher/Generate_action_space.py | horacioMartinez/L2RPN | 11e13a60a568b8ad7f9c6de060ac8c41784ced96 | [
"MIT"
] | null | null | null | old/src/baseline_agents/L2RPN_NIPS_2020_a_PPO_Solution/Teacher/Generate_action_space.py | horacioMartinez/L2RPN | 11e13a60a568b8ad7f9c6de060ac8c41784ced96 | [
"MIT"
] | null | null | null | """
In this file, we analyse the action library generated by Teacher1 and Teacher2.
Through
1. filtering out actions that decrease rho less effectively
2. filtering out actions that occur less frequently
3. filtering out "do nothing" action
4. add your filtering rules...,
we obtain an action space in th... | 32.786885 | 90 | 0.6545 | 300 | 2,000 | 4.266667 | 0.413333 | 0.06875 | 0.042969 | 0.028125 | 0.173438 | 0.148438 | 0.096875 | 0 | 0 | 0 | 0 | 0.023453 | 0.2325 | 2,000 | 60 | 91 | 33.333333 | 0.810423 | 0.3025 | 0 | 0.117647 | 1 | 0 | 0.104197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.088235 | 0 | 0.235294 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef7d75defcd6f42f11a01bbd871e6abfaa392d80 | 1,080 | py | Python | samples/health/tests.py | simonsdave/tor-async-couchdb | 286b0acaca636f5e937b159d56db573973cd17a1 | [
"MIT"
] | 1 | 2019-01-27T21:07:14.000Z | 2019-01-27T21:07:14.000Z | samples/health/tests.py | simonsdave/tor-async-couchdb | 286b0acaca636f5e937b159d56db573973cd17a1 | [
"MIT"
] | 5 | 2015-04-22T17:52:07.000Z | 2017-05-16T01:56:45.000Z | samples/health/tests.py | simonsdave/tor-async-couchdb | 286b0acaca636f5e937b159d56db573973cd17a1 | [
"MIT"
] | 2 | 2015-05-04T20:19:46.000Z | 2016-05-30T09:59:59.000Z | """This file contains a series of integration tests that sanity check
a sample health service running on http://127.0.0.1:8445
"""
import httplib
import unittest
import requests
_base_url = 'http://service:8445/v1.0/_health'
class TheTestCase(unittest.TestCase):
def _test_health_check_happy_path(self, quick):... | 28.421053 | 69 | 0.666667 | 138 | 1,080 | 4.876812 | 0.434783 | 0.114413 | 0.166419 | 0.208024 | 0.288262 | 0.246657 | 0.246657 | 0.246657 | 0.246657 | 0.246657 | 0 | 0.019347 | 0.234259 | 1,080 | 37 | 70 | 29.189189 | 0.794438 | 0.113889 | 0 | 0 | 0 | 0 | 0.072632 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.16 | false | 0 | 0.12 | 0 | 0.32 | 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 |
ef85376cc46477636258c23c1754fbd3225ae0e5 | 2,112 | py | Python | myproject/app/__init__.py | dengliangshi/myproject | c57182c5c440150f33501b0cf9cdf7dd8554f61c | [
"MIT"
] | 7 | 2017-04-07T05:59:29.000Z | 2019-03-09T01:10:34.000Z | myproject/app/__init__.py | dengliangshi/myproject | c57182c5c440150f33501b0cf9cdf7dd8554f61c | [
"MIT"
] | null | null | null | myproject/app/__init__.py | dengliangshi/myproject | c57182c5c440150f33501b0cf9cdf7dd8554f61c | [
"MIT"
] | 1 | 2019-04-02T06:38:32.000Z | 2019-04-02T06:38:32.000Z | #encoding=utf-8
# -------------------------------------------------------libraries----------------------------------------------------------
# Standard library
from flask import Flask
# Third-party libraries
from flask_mail import Mail
from flask_bootstrap import Bootstrap
from flask_moment import Moment
fr... | 39.849057 | 125 | 0.523201 | 202 | 2,112 | 5.267327 | 0.336634 | 0.050752 | 0.056391 | 0.06203 | 0.070489 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000648 | 0.269413 | 2,112 | 53 | 126 | 39.849057 | 0.688918 | 0.339015 | 0 | 0 | 0 | 0 | 0.01506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.333333 | 0 | 0.393939 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ef8599fc8b51264c99e6b36be40e417fb9c58982 | 12,927 | py | Python | munkistaging/config.py | ox-it/munki-staging | d88dddd35ae55a4db00b517d39378494caa0380d | [
"Apache-2.0"
] | 24 | 2015-09-30T13:55:13.000Z | 2021-02-23T14:51:18.000Z | munkistaging/config.py | ox-it/munki-staging | d88dddd35ae55a4db00b517d39378494caa0380d | [
"Apache-2.0"
] | 12 | 2015-09-29T09:08:50.000Z | 2018-01-24T14:51:01.000Z | munkistaging/config.py | ox-it/munki-trello | d88dddd35ae55a4db00b517d39378494caa0380d | [
"Apache-2.0"
] | 4 | 2015-10-01T09:21:44.000Z | 2016-08-11T12:27:16.000Z | #
# This software is Copyright (c) 2015 University of Oxford
#
# This work is made avaiable to you under the terms of the Apache
# License, Version 2.0; you may not use this source code except in
# compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#... | 34.564171 | 175 | 0.609886 | 1,625 | 12,927 | 4.630769 | 0.203692 | 0.022326 | 0.035083 | 0.022591 | 0.2699 | 0.220465 | 0.171429 | 0.137143 | 0.094751 | 0.08412 | 0 | 0.007185 | 0.300147 | 12,927 | 373 | 176 | 34.656836 | 0.824583 | 0.143653 | 0 | 0.134454 | 0 | 0.004202 | 0.113923 | 0.004082 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.004202 | 0.029412 | null | null | 0.05042 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ef89013af1bf42075dd08f268b738d2b70eb279f | 1,062 | py | Python | py/check_modules.py | Apop85/Lernkarten | ff092f4f856d50b56802333ad599789bbc0fb387 | [
"MIT"
] | null | null | null | py/check_modules.py | Apop85/Lernkarten | ff092f4f856d50b56802333ad599789bbc0fb387 | [
"MIT"
] | null | null | null | py/check_modules.py | Apop85/Lernkarten | ff092f4f856d50b56802333ad599789bbc0fb387 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
####
# File: check_modules.py
# Project: py
#-----
# Created Date: Sunday 25.08.2019, 19:07
# Author: rbald
#-----
# Last Modified: Sunday 25.08.2019, 19:17
#-----
# Copyright (c) 2019 rbald
# This software is published under the MIT license.
# Check http://www.opensource.... | 16.857143 | 83 | 0.63371 | 146 | 1,062 | 4.520548 | 0.472603 | 0.15 | 0.1 | 0.106061 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 0.20904 | 1,062 | 62 | 84 | 17.129032 | 0.735714 | 0.37194 | 0 | 0.514286 | 0 | 0 | 0.082298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.171429 | 0.171429 | 0 | 0.171429 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef8a140d4e36a0df3471e7b1728d295b753507a3 | 626 | py | Python | _tests/test_load_xls.py | calypso-science/Toto | 85e90421343bf3dcf6d730767287647b5bc189bb | [
"MIT"
] | 1 | 2022-03-24T23:41:16.000Z | 2022-03-24T23:41:16.000Z | _tests/test_load_xls.py | calypso-science/Toto | 85e90421343bf3dcf6d730767287647b5bc189bb | [
"MIT"
] | 12 | 2021-02-24T22:30:52.000Z | 2021-11-16T01:51:38.000Z | _tests/test_load_xls.py | calypso-science/Toto | 85e90421343bf3dcf6d730767287647b5bc189bb | [
"MIT"
] | 1 | 2021-09-21T11:37:09.000Z | 2021-09-21T11:37:09.000Z | import os,sys
import numpy as np
import pandas as pd
from toto.inputs.xls import XLSfile
filename=r'/home/remy/Calypso/Software/TOTO/Toto/_tests/xls_file/data.xlsx'
#tx=XLSfile([filename],sheetnames='test1',skiprows=0,time_col_name={'Year':'year','Month':'month','Day':'day','Hour [UTC]':'hour','Minute':'minute'})
tx=... | 34.777778 | 149 | 0.710863 | 97 | 626 | 4.484536 | 0.649485 | 0.103448 | 0.078161 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012132 | 0.078275 | 626 | 17 | 150 | 36.823529 | 0.741768 | 0.236422 | 0 | 0 | 0 | 0 | 0.186975 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ef8ac9bf9c6a975a0b8714e93a02ae96a88d997f | 2,471 | py | Python | python/sharding_number_key.py | oracle-samples/oracle-db-examples | 4a677b8cf012263c050868049b5c9603787aa1b9 | [
"Apache-2.0"
] | 1 | 2022-03-31T11:26:48.000Z | 2022-03-31T11:26:48.000Z | python/sharding_number_key.py | oracle-samples/oracle-db-examples | 4a677b8cf012263c050868049b5c9603787aa1b9 | [
"Apache-2.0"
] | null | null | null | python/sharding_number_key.py | oracle-samples/oracle-db-examples | 4a677b8cf012263c050868049b5c9603787aa1b9 | [
"Apache-2.0"
] | 3 | 2022-03-29T07:50:59.000Z | 2022-03-31T12:29:02.000Z | #------------------------------------------------------------------------------
# Copyright (c) 2020, 2022, Oracle and/or its affiliates.
#
# This software is dual-licensed to you under the Universal Permissive License
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
# 2.0 as shown at http... | 44.125 | 79 | 0.637798 | 320 | 2,471 | 4.83125 | 0.5 | 0.03881 | 0.031048 | 0.012937 | 0.080207 | 0.080207 | 0.080207 | 0.042691 | 0 | 0 | 0 | 0.013969 | 0.159854 | 2,471 | 55 | 80 | 44.927273 | 0.730732 | 0.668151 | 0 | 0 | 0 | 0 | 0.132147 | 0.027954 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.125 | 0 | 0.1875 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
efa084339c5658ed629b70a5c2f77c0d1aff67b2 | 1,067 | py | Python | C4_Factory_Pattern/Ex1_PizzaStore/Pizza/Pizzeria.py | sarada92/Design_Pattern | f817206a6f995bc6f534d7cabb3a290955f37d33 | [
"MIT"
] | 1 | 2022-02-06T15:42:09.000Z | 2022-02-06T15:42:09.000Z | C4_Factory_Pattern/Ex4_PizzaStore_Franchise/Pizza/Pizzeria.py | sarada92/Design_Pattern | f817206a6f995bc6f534d7cabb3a290955f37d33 | [
"MIT"
] | null | null | null | C4_Factory_Pattern/Ex4_PizzaStore_Franchise/Pizza/Pizzeria.py | sarada92/Design_Pattern | f817206a6f995bc6f534d7cabb3a290955f37d33 | [
"MIT"
] | null | null | null | from abc import ABC, ABCMeta, abstractmethod
class Pizzeria(metaclass=ABCMeta):
# Extended class will set these variables
def __init__(self):
self.name = None
self.dough = None
self.sauce = None
self.toppings = []
@abstractmethod
def description(self):
pass
... | 24.813953 | 73 | 0.564199 | 128 | 1,067 | 4.625 | 0.5 | 0.054054 | 0.047297 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002653 | 0.293346 | 1,067 | 42 | 74 | 25.404762 | 0.782493 | 0.128397 | 0 | 0 | 0 | 0 | 0.160907 | 0.049676 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0.034483 | 0.034483 | 0 | 0.37931 | 0.310345 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
efa590371bb632cbc9776078ea6b5c64f626d46a | 1,730 | py | Python | loopy/library/function.py | xywei/loopy | f176bc70ef52862ee0dfcc661fbe4b86b1726f55 | [
"MIT"
] | null | null | null | loopy/library/function.py | xywei/loopy | f176bc70ef52862ee0dfcc661fbe4b86b1726f55 | [
"MIT"
] | null | null | null | loopy/library/function.py | xywei/loopy | f176bc70ef52862ee0dfcc661fbe4b86b1726f55 | [
"MIT"
] | 1 | 2021-03-09T15:55:33.000Z | 2021-03-09T15:55:33.000Z | from __future__ import division
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner"
__license__ = """
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without lim... | 35.306122 | 77 | 0.763584 | 246 | 1,730 | 5.264228 | 0.504065 | 0.067954 | 0.039382 | 0.046332 | 0.075676 | 0.075676 | 0 | 0 | 0 | 0 | 0 | 0.003546 | 0.184971 | 1,730 | 48 | 78 | 36.041667 | 0.914894 | 0.012717 | 0 | 0.060606 | 0 | 0 | 0.621336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
efae5eac9ac021f28e8f6be344440ea9894c4b49 | 1,895 | py | Python | project-euler/p004_largest_palindrome_product_test.py | kemmot/code-katas | 090887d9e0bd0eee9fbc32ddd879afadaca42588 | [
"MIT"
] | null | null | null | project-euler/p004_largest_palindrome_product_test.py | kemmot/code-katas | 090887d9e0bd0eee9fbc32ddd879afadaca42588 | [
"MIT"
] | null | null | null | project-euler/p004_largest_palindrome_product_test.py | kemmot/code-katas | 090887d9e0bd0eee9fbc32ddd879afadaca42588 | [
"MIT"
] | null | null | null | import unittest
import p004_largest_palindrome_product as implementation
class LargestPalindromeProductTests(unittest.TestCase):
def test_find_max_input_value(self):
target = implementation.LargestPalindromeProduct()
self.assertEqual(9, target.find_max_input_value(1))
self.assertEqual(99,... | 33.245614 | 72 | 0.701319 | 244 | 1,895 | 5.159836 | 0.29918 | 0.096108 | 0.107228 | 0.075457 | 0.472597 | 0.345512 | 0.202542 | 0.124702 | 0.06672 | 0 | 0 | 0.068091 | 0.209499 | 1,895 | 56 | 73 | 33.839286 | 0.772363 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.307692 | false | 0 | 0.051282 | 0 | 0.410256 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
efb8f1285683a10bfe457262e488844c759c1ef6 | 3,187 | py | Python | scripts/run_parallel_movie_paraview.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | scripts/run_parallel_movie_paraview.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | scripts/run_parallel_movie_paraview.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null |
import os, sys, subprocess, time
def run_command_parallel(call_str_base, n_procs):
processes = []
for i in range(n_procs):
call_str = call_str_base + ' ' + str(n_procs) + ' ' + str(i)
print "call str with n_procs = ", n_procs, " proc_num = ", i, "call_str = ", call_str
p = subproc... | 27.239316 | 93 | 0.578914 | 425 | 3,187 | 4.143529 | 0.355294 | 0.043725 | 0.037479 | 0.043157 | 0.354344 | 0.272572 | 0.272572 | 0.272572 | 0.232822 | 0.232822 | 0 | 0.027089 | 0.316599 | 3,187 | 116 | 94 | 27.474138 | 0.781451 | 0.089112 | 0 | 0.220588 | 0 | 0.029412 | 0.253463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.014706 | null | null | 0.191176 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efc5844a89c70b8ea3d32d87c0c68b1cd88d407b | 344 | py | Python | misc/oo.py | diegopacheco/python-playground | 8e6ba427df6922fb578c2328babbf3466687ccbf | [
"Unlicense"
] | null | null | null | misc/oo.py | diegopacheco/python-playground | 8e6ba427df6922fb578c2328babbf3466687ccbf | [
"Unlicense"
] | null | null | null | misc/oo.py | diegopacheco/python-playground | 8e6ba427df6922fb578c2328babbf3466687ccbf | [
"Unlicense"
] | null | null | null | import sys
class Pai():
def ola(self): print "Ola do Pai!"
class Mae():
def ola(self): print "Ola da Mae!"
class OlaMundo(Pai,Mae):
def __init__(self):
Pai.ola(self)
Mae.ola(self)
print "Criei o objeto OlaMundo"
imprime = OlaMundo()
nome = raw_input('Qual teu nome ? ')
print "Ola mund... | 17.2 | 37 | 0.619186 | 52 | 344 | 4 | 0.480769 | 0.134615 | 0.173077 | 0.144231 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247093 | 344 | 19 | 38 | 18.105263 | 0.803089 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
efcdbd98f4fd2a205630521cd399d4142f8b065c | 287 | py | Python | pypro/aperitivos/admin.py | ravellys/curso-django | 98c0fad20d7c9e5dcd3482eb37c43f9d65695184 | [
"MIT"
] | null | null | null | pypro/aperitivos/admin.py | ravellys/curso-django | 98c0fad20d7c9e5dcd3482eb37c43f9d65695184 | [
"MIT"
] | 789 | 2020-09-02T01:46:12.000Z | 2022-03-31T23:55:42.000Z | pypro/aperitivos/admin.py | ravellys/curso-django | 98c0fad20d7c9e5dcd3482eb37c43f9d65695184 | [
"MIT"
] | null | null | null | from django.contrib.admin import ModelAdmin, register
from pypro.aperitivos.models import Video
@register(Video)
class VideoAdmin(ModelAdmin):
list_display = ('title', 'slug', 'creation', 'v_id')
ordering = ('creation', 'title')
prepopulated_fields = {'slug': ('title',)}
| 26.090909 | 56 | 0.703833 | 32 | 287 | 6.21875 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 287 | 10 | 57 | 28.7 | 0.808943 | 0 | 0 | 0 | 0 | 0 | 0.149826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
efd8c91fe770f1a5c74eceae18db99d951a8dcd5 | 1,673 | py | Python | setup.py | znqi/sidle | ec808aa3e5d28d47fbfbfde78ac816f22a0b4fc2 | [
"MIT"
] | null | null | null | setup.py | znqi/sidle | ec808aa3e5d28d47fbfbfde78ac816f22a0b4fc2 | [
"MIT"
] | null | null | null | setup.py | znqi/sidle | ec808aa3e5d28d47fbfbfde78ac816f22a0b4fc2 | [
"MIT"
] | null | null | null | # Copyright (c) 2021, Zenqi
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute,... | 34.854167 | 79 | 0.735804 | 241 | 1,673 | 5.029046 | 0.564315 | 0.072607 | 0.021452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007375 | 0.18948 | 1,673 | 47 | 80 | 35.595745 | 0.886431 | 0.625224 | 0 | 0 | 0 | 0 | 0.200658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.052632 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
efdcc0d2b4e72d0010b8bcb4af42670d121f63b1 | 342 | py | Python | shopyo/shopyoapi/assets.py | Bnseamster/shopyo | 945b4cf1ac9b4a4c33f6616c252a9ad22a197246 | [
"MIT"
] | 235 | 2019-06-30T22:21:29.000Z | 2022-03-31T06:12:12.000Z | shopyo/shopyoapi/assets.py | Bnseamster/shopyo | 945b4cf1ac9b4a4c33f6616c252a9ad22a197246 | [
"MIT"
] | 441 | 2019-06-26T20:07:58.000Z | 2021-05-05T17:44:23.000Z | shopyo/shopyoapi/assets.py | Bnseamster/shopyo | 945b4cf1ac9b4a4c33f6616c252a9ad22a197246 | [
"MIT"
] | 157 | 2019-06-26T22:30:39.000Z | 2022-03-22T09:06:24.000Z | from flask import url_for
from flask import current_app
def get_static(boxormodule, filename):
if current_app.config["DEBUG"] == True:
return url_for("devstatic", boxormodule=boxormodule, filename=filename)
else:
return url_for(
"static", filename="modules/{}/{}".format(boxormodule... | 28.5 | 79 | 0.675439 | 39 | 342 | 5.769231 | 0.538462 | 0.08 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 342 | 11 | 80 | 31.090909 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0.096491 | 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 |
efdd705dab4d66e1f12a178430c21dde1286d9ea | 2,321 | py | Python | python_Projects/name_searching_system/milestone1.py | Albert840529/SC-Projects | 55314d0cc82c77c3a4e08ed6e084ae54cc920550 | [
"MIT"
] | null | null | null | python_Projects/name_searching_system/milestone1.py | Albert840529/SC-Projects | 55314d0cc82c77c3a4e08ed6e084ae54cc920550 | [
"MIT"
] | null | null | null | python_Projects/name_searching_system/milestone1.py | Albert840529/SC-Projects | 55314d0cc82c77c3a4e08ed6e084ae54cc920550 | [
"MIT"
] | null | null | null | """
File: Milestone1.py
Name:
-----------------------
This file tests the milestone 1 for
our babyname.py project
"""
import sys
def add_data_for_name(name_data, year, rank, name):
d = {}
if name in name_data:
value = name_data[name]
for yr in value:
rk = value[yr]
if... | 28.304878 | 79 | 0.445928 | 268 | 2,321 | 3.652985 | 0.235075 | 0.171604 | 0.091931 | 0.128703 | 0.628192 | 0.608784 | 0.47191 | 0.303371 | 0.303371 | 0.235955 | 0 | 0.075482 | 0.218009 | 2,321 | 81 | 80 | 28.654321 | 0.463912 | 0.077122 | 0 | 0.375 | 0 | 0 | 0.275797 | 0.17636 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.017857 | 0 | 0.125 | 0.214286 | 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 |
efedd824da55f17c4ddebef7a7ded884aa34eaf0 | 542 | py | Python | icekit/plugins/instagram_embed/content_plugins.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 52 | 2016-09-13T03:50:58.000Z | 2022-02-23T16:25:08.000Z | icekit/plugins/instagram_embed/content_plugins.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 304 | 2016-08-11T14:17:30.000Z | 2020-07-22T13:35:18.000Z | icekit/plugins/instagram_embed/content_plugins.py | ic-labs/django-icekit | c507ea5b1864303732c53ad7c5800571fca5fa94 | [
"MIT"
] | 12 | 2016-09-21T18:46:35.000Z | 2021-02-15T19:37:50.000Z | """
Definition of the plugin.
"""
from django.utils.translation import ugettext_lazy as _
from fluent_contents.extensions import ContentPlugin, plugin_pool
from . import forms, models
@plugin_pool.register
class InstagramEmbedPlugin(ContentPlugin):
model = models.InstagramEmbedItem
category = _('Assets')
... | 22.583333 | 67 | 0.660517 | 50 | 542 | 7 | 0.8 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245387 | 542 | 23 | 68 | 23.565217 | 0.855746 | 0.046125 | 0 | 0 | 0 | 0 | 0.113949 | 0.084479 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
eff9fd32cbdb018cc13c6623e917801181c44124 | 587 | py | Python | apps/breakfast/bacon/testToast/synch.py | tp-freeforall/breakfast | 0399619cdb7a81b3c3cc4c5a1b7d69f5c32b8c65 | [
"BSD-3-Clause"
] | 1 | 2020-05-15T18:08:48.000Z | 2020-05-15T18:08:48.000Z | apps/breakfast/bacon/testToast/synch.py | tp-freeforall/breakfast | 0399619cdb7a81b3c3cc4c5a1b7d69f5c32b8c65 | [
"BSD-3-Clause"
] | null | null | null | apps/breakfast/bacon/testToast/synch.py | tp-freeforall/breakfast | 0399619cdb7a81b3c3cc4c5a1b7d69f5c32b8c65 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
def checkSkew(tuples):
startLocal = min([local for (local, remote) in tuples])
startRemote = min([remote for (local, remote) in tuples])
zb = [ (local - startLocal, remote - startRemote)
for (local, remote) in tuples]
print "before sort:", zb
zb = sorted(zb)
print "... | 34.529412 | 61 | 0.613288 | 77 | 587 | 4.675325 | 0.454545 | 0.066667 | 0.116667 | 0.133333 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002227 | 0.235094 | 587 | 16 | 62 | 36.6875 | 0.799555 | 0.034072 | 0 | 0 | 0 | 0 | 0.040636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
effd946da96379ee45ad353e1992d987fadcf645 | 2,797 | py | Python | Object Oriented Programming/3 - Class Methods And Static Methods/index.py | Sudani-Coder/python | 9c35f04a0521789ba91b7058695139ed074f7796 | [
"MIT"
] | null | null | null | Object Oriented Programming/3 - Class Methods And Static Methods/index.py | Sudani-Coder/python | 9c35f04a0521789ba91b7058695139ed074f7796 | [
"MIT"
] | null | null | null | Object Oriented Programming/3 - Class Methods And Static Methods/index.py | Sudani-Coder/python | 9c35f04a0521789ba91b7058695139ed074f7796 | [
"MIT"
] | null | null | null | # Python Object Oriented Programming
import datetime
class Employee:
num_of_emps = 0 # Class Variable
raise_amount = 1.02 # Class Variable
def __init__(self, FirstName, LastName, salary):
self.FirstName = FirstName
self.LastName = LastName
self.salary = int(salary)
self.em... | 25.898148 | 70 | 0.66035 | 404 | 2,797 | 4.321782 | 0.210396 | 0.106529 | 0.178694 | 0.137457 | 0.471363 | 0.336197 | 0.235395 | 0.165521 | 0.165521 | 0.165521 | 0 | 0.026039 | 0.148731 | 2,797 | 107 | 71 | 26.140187 | 0.707266 | 0.028245 | 0 | 0.225352 | 0 | 0 | 0.122005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.014085 | 0.014085 | 0.197183 | 0.43662 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5604ca4c993c88da8adb555bc6b6cd74770a4992 | 415 | py | Python | mail/formspree-master/migrations/versions/ee9b6bc06d8a_sitewide_forms.py | OVERLOADROBOTICA/OVERLOADROBOTICA.github.io | 298cfe1283ca0686eb78a2e14a6275759f03c171 | [
"MIT"
] | null | null | null | mail/formspree-master/migrations/versions/ee9b6bc06d8a_sitewide_forms.py | OVERLOADROBOTICA/OVERLOADROBOTICA.github.io | 298cfe1283ca0686eb78a2e14a6275759f03c171 | [
"MIT"
] | null | null | null | mail/formspree-master/migrations/versions/ee9b6bc06d8a_sitewide_forms.py | OVERLOADROBOTICA/OVERLOADROBOTICA.github.io | 298cfe1283ca0686eb78a2e14a6275759f03c171 | [
"MIT"
] | null | null | null | """sitewide forms.
Revision ID: ee9b6bc06d8a
Revises: 2580663da150
Create Date: 2016-03-07 19:59:20.392152
"""
# revision identifiers, used by Alembic.
revision = 'ee9b6bc06d8a'
down_revision = '2580663da150'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('forms', sa.Column('sitew... | 18.043478 | 78 | 0.727711 | 54 | 415 | 5.537037 | 0.666667 | 0.073579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140056 | 0.139759 | 415 | 22 | 79 | 18.863636 | 0.697479 | 0.346988 | 0 | 0 | 0 | 0 | 0.190114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bc8e02b006a93eae1c901b5dfeaf8cc2e1096cf | 2,208 | py | Python | src/pybathy_maps/examples/view_gsf_mesh.py | luxiya01/auvlib | 26b7b04277cf320084ed25df735886844ca6a629 | [
"BSD-3-Clause"
] | 46 | 2019-01-11T16:17:18.000Z | 2022-03-30T11:25:08.000Z | src/pybathy_maps/examples/view_gsf_mesh.py | luxiya01/auvlib | 26b7b04277cf320084ed25df735886844ca6a629 | [
"BSD-3-Clause"
] | 41 | 2019-01-11T16:17:01.000Z | 2022-03-29T07:41:48.000Z | src/pybathy_maps/examples/view_gsf_mesh.py | luxiya01/auvlib | 26b7b04277cf320084ed25df735886844ca6a629 | [
"BSD-3-Clause"
] | 29 | 2019-01-11T16:00:21.000Z | 2022-03-30T08:18:58.000Z | #!/usr/bin/python
from auvlib.data_tools import std_data, gsf_data, xtf_data, csv_data, utils
from auvlib.bathy_maps import mesh_map, patch_draper, data_vis
import sys
import os
import numpy as np
import math
def create_mesh(path):
gsf_pings = utils.parse_or_load_gsf(path)
mbes_pings = gsf_data.convert_pings... | 32.955224 | 115 | 0.759964 | 354 | 2,208 | 4.375706 | 0.282486 | 0.06714 | 0.025823 | 0.030988 | 0.171724 | 0.127824 | 0.08909 | 0.08909 | 0.046482 | 0 | 0 | 0.007307 | 0.132246 | 2,208 | 66 | 116 | 33.454545 | 0.801148 | 0.136322 | 0 | 0 | 0 | 0 | 0.063617 | 0.012618 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.136364 | null | null | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bc99d41379c3d10cad80ed8f7af7758f5b11bf9 | 341 | py | Python | Code/KafkaProducer.py | dong-yf/100-Days-Of-ML-Code | dc0c53aa28d551cff6cc8051131a88dfc455511b | [
"MIT"
] | 17,496 | 2018-09-04T02:43:39.000Z | 2022-03-31T23:45:30.000Z | Code/KafkaProducer.py | wzhaojin/100-Days-Of-ML-Code | 240cd2191c1c1b2db24662ee55ba2acd26c818cc | [
"MIT"
] | 29 | 2018-09-04T02:51:21.000Z | 2021-12-21T06:57:02.000Z | Code/KafkaProducer.py | wzhaojin/100-Days-Of-ML-Code | 240cd2191c1c1b2db24662ee55ba2acd26c818cc | [
"MIT"
] | 5,027 | 2018-09-04T02:43:16.000Z | 2022-03-31T16:31:48.000Z | #!/usr/bin/python
from kafka import KafkaProducer
kafkaHosts=["kafka01.paas.longfor.sit:9092"
,"kafka02.paas.longfor.sit:9092"
,"kafka03.paas.longfor.sit:9092"]
producer = KafkaProducer(bootstrap_servers=kafkaHosts);
for _ in range(20):
producer.send("testapplog_plm-prototype",b"Hello...... | 26.230769 | 58 | 0.703812 | 41 | 341 | 5.780488 | 0.707317 | 0.139241 | 0.177215 | 0.227848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068259 | 0.140762 | 341 | 13 | 59 | 26.230769 | 0.740614 | 0.046921 | 0 | 0 | 0 | 0 | 0.369231 | 0.341538 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 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 |
4bcb61fa0627d5621441b07b4a73f0047861c3d2 | 561 | py | Python | setup.py | virtalabs/django-jsx | ba8f77ca9b96c96328b44886b3c7389231570210 | [
"BSD-2-Clause"
] | 63 | 2016-10-14T13:41:12.000Z | 2022-03-11T22:13:10.000Z | setup.py | virtalabs/django-jsx | ba8f77ca9b96c96328b44886b3c7389231570210 | [
"BSD-2-Clause"
] | 5 | 2017-01-27T16:39:16.000Z | 2019-01-16T19:22:13.000Z | setup.py | virtalabs/django-jsx | ba8f77ca9b96c96328b44886b3c7389231570210 | [
"BSD-2-Clause"
] | 6 | 2016-10-29T11:25:13.000Z | 2019-01-07T02:14:29.000Z | from setuptools import setup, find_packages
setup(
name='django-jsx',
version='0.4.0',
author='Calvin Spealman',
author_email='calvin@caktusgroup.com',
packages=find_packages(exclude=['sample_project']),
include_package_data=True,
license='BSD',
description='Integration library for Reac... | 29.526316 | 63 | 0.654189 | 60 | 561 | 6.016667 | 0.8 | 0.066482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006787 | 0.212121 | 561 | 18 | 64 | 31.166667 | 0.809955 | 0 | 0 | 0 | 0 | 0 | 0.463458 | 0.039216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bce89abdbba934186dbfe3928385d69c37a4515 | 36,515 | py | Python | image_utils2.py | fronzag/Image_Utils_Python | de835216f5671a2f3d713ba831033449a24bbe36 | [
"MIT"
] | null | null | null | image_utils2.py | fronzag/Image_Utils_Python | de835216f5671a2f3d713ba831033449a24bbe36 | [
"MIT"
] | null | null | null | image_utils2.py | fronzag/Image_Utils_Python | de835216f5671a2f3d713ba831033449a24bbe36 | [
"MIT"
] | null | null | null |
def list_bands(image_path, bands):
band_list = list()
listdir = os.listdir(image_path)
for filename in listdir:
if bands in filename:
band_list.append(str(image_path) + '/' + str(filename))
band_list.sort()
return band_list
def arosics_local(project_dir, reference_list, target... | 36.661647 | 231 | 0.635383 | 5,142 | 36,515 | 4.350642 | 0.149553 | 0.011265 | 0.008136 | 0.006437 | 0.526619 | 0.482053 | 0.442984 | 0.414555 | 0.403513 | 0.380359 | 0 | 0.029105 | 0.237847 | 36,515 | 995 | 232 | 36.698492 | 0.774739 | 0.175188 | 0 | 0.467213 | 0 | 0.014754 | 0.090925 | 0.013116 | 0 | 0 | 0 | 0.001005 | 0.001639 | 0 | null | null | 0.011475 | 0.001639 | null | null | 0.060656 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4bd35a2706bba85548a6455584840d67b212c6e7 | 424 | py | Python | test.py | Programmer-RD-AI/Chat-App | b9ff5f2d5f59cc37d4ef7040b9d59ae7c1ace9e2 | [
"Apache-2.0"
] | null | null | null | test.py | Programmer-RD-AI/Chat-App | b9ff5f2d5f59cc37d4ef7040b9d59ae7c1ace9e2 | [
"Apache-2.0"
] | 5 | 2021-09-16T17:42:31.000Z | 2021-10-30T13:57:12.000Z | test.py | Programmer-RD-AI/Chat-App | b9ff5f2d5f59cc37d4ef7040b9d59ae7c1ace9e2 | [
"Apache-2.0"
] | null | null | null | from flask import *
app = Flask(__name__)
app.secret_key = 'YERYRE'
@app.route('/',methods=['POST','GET'])
def index():
if request.method == 'POST':
name = request.form['NAME']
password = request.form['PASSWORD']
session['Password'] = password
session['Name'] = name
print(nam... | 28.266667 | 43 | 0.620283 | 50 | 424 | 4.98 | 0.58 | 0.088353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209906 | 424 | 14 | 44 | 30.285714 | 0.743284 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0.214286 | 0.071429 | 0 | 0.214286 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bda1afea1a15d563f86c597abcb6d6e04a7293c | 1,318 | py | Python | densefly.py | thuum666/fly-hash-preprocess | ce3a00fe3b015c774de6b7792447fee99505dccf | [
"MIT"
] | null | null | null | densefly.py | thuum666/fly-hash-preprocess | ce3a00fe3b015c774de6b7792447fee99505dccf | [
"MIT"
] | null | null | null | densefly.py | thuum666/fly-hash-preprocess | ce3a00fe3b015c774de6b7792447fee99505dccf | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import pickle, time
import os
from collections import OrderedDict as odict
from functools import reduce
from sklearn import preprocessing
from sklearn.metrics import confusion_matrix,cohen_kappa_score
from bokeh.plotting import figure,output_file,output_notebook,show
impo... | 30.651163 | 125 | 0.784522 | 197 | 1,318 | 5.076142 | 0.477157 | 0.07 | 0.022 | 0.03 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02862 | 0.098634 | 1,318 | 42 | 126 | 31.380952 | 0.813131 | 0.182094 | 0 | 0 | 0 | 0 | 0.116959 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.366667 | 0 | 0.366667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bde17b3921ee9473265879fcd31f1a2c390eb58 | 4,960 | py | Python | examples/quick_tutorial.py | meghanrjones/agu2021 | 1940cf2fa84c5d7caa2be7d881c31f7dc7925a56 | [
"CC-BY-4.0"
] | 12 | 2021-12-02T21:30:20.000Z | 2022-03-02T04:29:42.000Z | examples/quick_tutorial.py | meghanrjones/agu2021 | 1940cf2fa84c5d7caa2be7d881c31f7dc7925a56 | [
"CC-BY-4.0"
] | null | null | null | examples/quick_tutorial.py | meghanrjones/agu2021 | 1940cf2fa84c5d7caa2be7d881c31f7dc7925a56 | [
"CC-BY-4.0"
] | 1 | 2022-03-01T22:29:20.000Z | 2022-03-01T22:29:20.000Z | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:percent
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.13.3
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
# name: python3
# ---
# %% [ma... | 44.684685 | 426 | 0.713911 | 714 | 4,960 | 4.948179 | 0.336134 | 0.068497 | 0.051514 | 0.063402 | 0.254458 | 0.204642 | 0.186527 | 0.171526 | 0.162751 | 0.103595 | 0 | 0.013955 | 0.147581 | 4,960 | 110 | 427 | 45.090909 | 0.821665 | 0.841734 | 0 | 0.625 | 0 | 0 | 0.096463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4be16f194e9514a6b28132f4130db791f08f7767 | 4,910 | py | Python | yauber_algo/_algo/tests/test_tstoolbox_twma.py | alexveden/yauber-algo | 667dfec9ae185af58cc9140961f14d244bb47f0b | [
"MIT"
] | 1 | 2019-02-09T15:34:34.000Z | 2019-02-09T15:34:34.000Z | yauber_algo/_algo/tests/test_tstoolbox_twma.py | alexveden/yauber-algo | 667dfec9ae185af58cc9140961f14d244bb47f0b | [
"MIT"
] | null | null | null | yauber_algo/_algo/tests/test_tstoolbox_twma.py | alexveden/yauber-algo | 667dfec9ae185af58cc9140961f14d244bb47f0b | [
"MIT"
] | 2 | 2018-10-10T16:01:59.000Z | 2018-11-27T16:50:56.000Z | import unittest
from yauber_algo.errors import *
class TWMATestCase(unittest.TestCase):
def test_twma(self):
import yauber_algo.sanitychecks as sc
from numpy import array, nan, inf
import os
import sys
import pandas as pd
import numpy as np
from yauber_algo... | 29.578313 | 84 | 0.311813 | 457 | 4,910 | 3.262582 | 0.157549 | 0.032193 | 0.088531 | 0.081154 | 0.548625 | 0.506372 | 0.487592 | 0.452046 | 0.431254 | 0.362173 | 0 | 0.086708 | 0.572505 | 4,910 | 166 | 85 | 29.578313 | 0.62363 | 0.018941 | 0 | 0.461538 | 0 | 0 | 0.025161 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006993 | false | 0 | 0.062937 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4bedeb5bf37dae2b5b6409c460a949c90d99d74f | 562 | py | Python | backend/apps/marquees/admin.py | FroggyTaipei/froggy-service | 6f17b38ba1ada9bb93f85923f1e55a2f480008f6 | [
"MIT"
] | 174 | 2019-02-19T11:35:45.000Z | 2021-12-20T03:20:28.000Z | backend/apps/marquees/admin.py | FroggyTaipei/froggy-service | 6f17b38ba1ada9bb93f85923f1e55a2f480008f6 | [
"MIT"
] | 56 | 2019-01-02T06:49:13.000Z | 2021-03-23T09:31:18.000Z | backend/apps/marquees/admin.py | FroggyTaipei/froggy-service | 6f17b38ba1ada9bb93f85923f1e55a2f480008f6 | [
"MIT"
] | 36 | 2018-12-28T02:10:06.000Z | 2021-09-02T03:06:35.000Z | from django.contrib import admin
from django.forms import TextInput, ModelForm
from suit.admin import SortableModelAdmin
from .models import MarqueeMessage
class MarqueeMessageForm(ModelForm):
class Meta:
widgets = {
'message': TextInput(attrs={'class': 'input-xxlarge'}),
}
class Mar... | 25.545455 | 67 | 0.717082 | 53 | 562 | 7.566038 | 0.54717 | 0.049875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179715 | 562 | 21 | 68 | 26.761905 | 0.869848 | 0 | 0 | 0 | 0 | 0 | 0.108541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.266667 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4bf363dd0bce35eb5364dd536e0b387466cf2782 | 255 | py | Python | day1/score_cal.py | dikshaa1702/ml | c35f279b8fa7544517ca713c2c1e55f08270d4c3 | [
"Apache-2.0"
] | 1 | 2019-06-13T13:52:09.000Z | 2019-06-13T13:52:09.000Z | day1/score_cal.py | dikshaa1702/ml | c35f279b8fa7544517ca713c2c1e55f08270d4c3 | [
"Apache-2.0"
] | null | null | null | day1/score_cal.py | dikshaa1702/ml | c35f279b8fa7544517ca713c2c1e55f08270d4c3 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue May 7 12:11:09 2019
@author: DiPu
"""
A1=int(input())
A2=int(input())
A3=int(input())
E1=int(input())
E2=int(input())
weighted_score=((A1+A2+A3)*0.1)+((E1+E2)*0.35 )
print("weightrd score is",weighted_score)
| 17 | 47 | 0.623529 | 46 | 255 | 3.413043 | 0.630435 | 0.254777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0.117647 | 255 | 14 | 48 | 18.214286 | 0.577778 | 0.286275 | 0 | 0 | 0 | 0 | 0.097701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef041133f4a313d0fa8874e105378db51af6fe9d | 632 | py | Python | log.py | 0xmanjoos/fastpwn | 81096880aac114b08e54f45eb7511e8b4892d757 | [
"MIT"
] | 1 | 2021-04-14T20:51:41.000Z | 2021-04-14T20:51:41.000Z | log.py | 0xmanjoos/fastpwn | 81096880aac114b08e54f45eb7511e8b4892d757 | [
"MIT"
] | null | null | null | log.py | 0xmanjoos/fastpwn | 81096880aac114b08e54f45eb7511e8b4892d757 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from sys import stdout
# style ; 0-8
# range ; 30-38
# bg ; 40-48
write=stdout.write
class c:
h = '\033[95m'
b = '\033[94m'
cy = '\033[96m'
gre = '\033[92m'
warn = '\033[93m'
fail = '\033[91m'
reset = '\033[0m'
bold = '\033[1m'
und = '\033[4m'
def demo():
... | 23.407407 | 86 | 0.503165 | 108 | 632 | 2.944444 | 0.509259 | 0.037736 | 0.04717 | 0.050314 | 0.022013 | 0.022013 | 0 | 0 | 0 | 0 | 0 | 0.131749 | 0.267405 | 632 | 26 | 87 | 24.307692 | 0.555076 | 0.096519 | 0 | 0 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.045455 | 0.045455 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ef233b16bb83eb1079f8de4f72050d3dbccb4269 | 5,822 | py | Python | django_twined/consumers/service.py | octue/django-twined-reel | 88053875dd3a7ede883edfa7d1dc383c594368b9 | [
"MIT"
] | null | null | null | django_twined/consumers/service.py | octue/django-twined-reel | 88053875dd3a7ede883edfa7d1dc383c594368b9 | [
"MIT"
] | null | null | null | django_twined/consumers/service.py | octue/django-twined-reel | 88053875dd3a7ede883edfa7d1dc383c594368b9 | [
"MIT"
] | null | null | null | import logging
import os
from asgiref.sync import async_to_sync
from channels.generic.websocket import WebsocketConsumer
from django.conf import settings
from django_twined.messages import ReelMessage
from django_twined.tasks import ask
logger = logging.getLogger(__name__)
class ServiceConsumer(WebsocketConsumer):
... | 40.713287 | 120 | 0.65201 | 741 | 5,822 | 5.005398 | 0.298246 | 0.035589 | 0.030197 | 0.016177 | 0.353465 | 0.345915 | 0.291453 | 0.291453 | 0.270423 | 0.243462 | 0 | 0 | 0.276022 | 5,822 | 142 | 121 | 41 | 0.879953 | 0.459292 | 0 | 0.152542 | 0 | 0 | 0.090819 | 0 | 0 | 0 | 0 | 0.021127 | 0 | 1 | 0.118644 | false | 0 | 0.118644 | 0 | 0.322034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ef26628d0cea3d40ebd1a1809761d88ed8433655 | 568 | py | Python | StudyPlans/Algorithms/Algorithms2/find_min_in_rotated_sorted_array.py | Sinha-Ujjawal/LeetCode-Solutions | 7889a1fa77fbd0798350d320a228dd1c883394df | [
"MIT"
] | null | null | null | StudyPlans/Algorithms/Algorithms2/find_min_in_rotated_sorted_array.py | Sinha-Ujjawal/LeetCode-Solutions | 7889a1fa77fbd0798350d320a228dd1c883394df | [
"MIT"
] | null | null | null | StudyPlans/Algorithms/Algorithms2/find_min_in_rotated_sorted_array.py | Sinha-Ujjawal/LeetCode-Solutions | 7889a1fa77fbd0798350d320a228dd1c883394df | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def findMin(self, nums: List[int]) -> int:
lb, ub = 0, len(nums) - 1
while lb <= ub:
m = (lb + ub) >> 1
if nums[0] <= nums[m]:
lb = m + 1
else:
ub = m - 1
return nums[lb] if 0 <= lb ... | 25.818182 | 59 | 0.478873 | 84 | 568 | 3.142857 | 0.416667 | 0.166667 | 0.272727 | 0.098485 | 0.151515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081522 | 0.352113 | 568 | 21 | 60 | 27.047619 | 0.63587 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.235294 | 0.235294 | 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 |
ef2b1c87c0594fb455e6afb2983d2f1642f0a58c | 759 | py | Python | run.py | leechunhoe/-Tailo-TPS-Converter | ba0aa8da9e9736b00db37cec7a564e50a85bad41 | [
"MIT",
"Unlicense"
] | 2 | 2018-01-27T09:42:13.000Z | 2018-06-16T03:27:30.000Z | run.py | leechunhoe/Tailo-TPS-Converter | ba0aa8da9e9736b00db37cec7a564e50a85bad41 | [
"MIT",
"Unlicense"
] | null | null | null | run.py | leechunhoe/Tailo-TPS-Converter | ba0aa8da9e9736b00db37cec7a564e50a85bad41 | [
"MIT",
"Unlicense"
] | null | null | null | import argparse
import os.path
from stailo_hongim_converter import StailoHongimConverter
parser = argparse.ArgumentParser(description='Convert between Tailo and TPS.')
parser.add_argument('-i', help='Input file')
parser.add_argument('-o', help='Output file, output.txt by default', default='output.txt')
parser.add_ar... | 34.5 | 101 | 0.744401 | 114 | 759 | 4.877193 | 0.535088 | 0.048561 | 0.091727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118577 | 759 | 21 | 102 | 36.142857 | 0.831091 | 0 | 0 | 0 | 0 | 0.066667 | 0.339921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef2fb66e1ca6b63943e9d40754b252b0f4c7267f | 5,146 | py | Python | tests/database/providers/testdatabaseserviceprovider.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 4 | 2017-09-07T13:39:50.000Z | 2018-05-31T16:14:50.000Z | tests/database/providers/testdatabaseserviceprovider.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 103 | 2017-03-19T15:58:21.000Z | 2018-07-11T20:36:17.000Z | tests/database/providers/testdatabaseserviceprovider.py | LowieHuyghe/edmunds-python | 236d087746cb8802a8854b2706b8d3ff009e9209 | [
"Apache-2.0"
] | 2 | 2017-10-14T15:20:11.000Z | 2018-04-20T09:55:44.000Z |
from tests.testcase import TestCase
from edmunds.database.databasemanager import DatabaseManager
from sqlalchemy.engine.base import Engine
from edmunds.globals import g
class TestDatabaseServiceProvider(TestCase):
"""
Test the Database Service Provider
"""
def test_not_enabled(self):
"""
... | 32.987179 | 107 | 0.47124 | 464 | 5,146 | 5.092672 | 0.196121 | 0.08887 | 0.011426 | 0.082945 | 0.735083 | 0.709691 | 0.599661 | 0.575963 | 0.521794 | 0.458739 | 0 | 0.004759 | 0.387485 | 5,146 | 155 | 108 | 33.2 | 0.744924 | 0.072095 | 0 | 0.670103 | 0 | 0 | 0.311465 | 0.040869 | 0 | 0 | 0 | 0 | 0.216495 | 1 | 0.041237 | false | 0.041237 | 0.072165 | 0 | 0.134021 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef302ebd5e4e63267fe050519d22d08af221a81b | 4,865 | py | Python | fewshot/configs/cnn_config_pb2.py | renmengye/inc-few-shot-attractor-public | c560d5a81480cb22d903fa746ab0cfc2eb964e4c | [
"MIT"
] | 122 | 2019-09-20T05:35:29.000Z | 2022-03-22T06:30:33.000Z | fewshot/configs/cnn_config_pb2.py | renmengye/inc-few-shot-attractor-public | c560d5a81480cb22d903fa746ab0cfc2eb964e4c | [
"MIT"
] | 10 | 2019-11-10T10:24:06.000Z | 2021-10-06T13:13:26.000Z | fewshot/configs/cnn_config_pb2.py | renmengye/inc-few-shot-attractor-public | c560d5a81480cb22d903fa746ab0cfc2eb964e4c | [
"MIT"
] | 28 | 2019-10-21T11:38:06.000Z | 2022-01-26T16:55:28.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: fewshot/configs/cnn_config.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from ... | 40.541667 | 432 | 0.741624 | 655 | 4,865 | 5.250382 | 0.210687 | 0.058156 | 0.052341 | 0.057575 | 0.581274 | 0.522245 | 0.447805 | 0.447805 | 0.447805 | 0.447805 | 0 | 0.039364 | 0.133196 | 4,865 | 119 | 433 | 40.882353 | 0.776144 | 0.052621 | 0 | 0.484848 | 1 | 0.010101 | 0.196654 | 0.164494 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.050505 | 0 | 0.050505 | 0 | 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 |
ef31ac7916be43863eb9ae97deee840cb404e9d1 | 796 | py | Python | bbp/utils/batch/reset_scenario.py | kevinmilner/bbp | d9ba291b123be4e85f76317ef23600a339b2354d | [
"Apache-2.0"
] | null | null | null | bbp/utils/batch/reset_scenario.py | kevinmilner/bbp | d9ba291b123be4e85f76317ef23600a339b2354d | [
"Apache-2.0"
] | null | null | null | bbp/utils/batch/reset_scenario.py | kevinmilner/bbp | d9ba291b123be4e85f76317ef23600a339b2354d | [
"Apache-2.0"
] | 1 | 2018-11-12T23:10:02.000Z | 2018-11-12T23:10:02.000Z | #!/usr/bin/env python
import sys
import os
ScenarioID = "Scenario106"
print "WARNING! This program will delete sim data from previous runs!"
print "Data in "../%s/Logs1,../%s/RunDesc1,../%s/Sims,../%s/Xml1"%(ScenarioID,ScenarioID,ScenarioID,ScenarioID)
proceed = raw_input("Do you want to proceed? (yes/no)")
if str... | 27.448276 | 111 | 0.697236 | 110 | 796 | 5.027273 | 0.518182 | 0.086799 | 0.101266 | 0.108499 | 0.233273 | 0.233273 | 0.233273 | 0.233273 | 0 | 0 | 0 | 0.015896 | 0.130653 | 796 | 28 | 112 | 28.428571 | 0.783237 | 0.025126 | 0 | 0.3 | 0 | 0 | 0.376774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef3acdcd2cd1374c951d49ba73635dfb778a3f69 | 2,010 | py | Python | mir3/modules/symbolic/intervals.py | pymir3/pymir3 | c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70 | [
"MIT"
] | 12 | 2015-08-03T12:41:11.000Z | 2020-08-18T07:55:23.000Z | mir3/modules/symbolic/intervals.py | pymir3/pymir3 | c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70 | [
"MIT"
] | 1 | 2015-05-27T18:47:20.000Z | 2015-05-27T18:47:20.000Z | mir3/modules/symbolic/intervals.py | pymir3/pymir3 | c1bcca66a5ef1ff0ebd6373e3820e72dee6b0b70 | [
"MIT"
] | 3 | 2016-03-18T03:30:02.000Z | 2018-07-05T02:29:16.000Z | import argparse
import numpy
import mir3.data.score as score
import mir3.lib.mir.midifeatures as feats
import mir3.module
class Intervals(mir3.module.Module):
"""Calculates the interval histogram from a score"""
def get_help(self):
return """Pitch class histogram from a score. Prints the values on
... | 34.655172 | 80 | 0.560697 | 237 | 2,010 | 4.700422 | 0.459916 | 0.040395 | 0.076302 | 0.032316 | 0.055655 | 0.055655 | 0 | 0 | 0 | 0 | 0 | 0.010901 | 0.315423 | 2,010 | 57 | 81 | 35.263158 | 0.798692 | 0 | 0 | 0.045455 | 0 | 0 | 0.236196 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.113636 | null | null | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef3cc886880106b4c91211acf04a3199794f53ac | 1,070 | py | Python | days/day063/exercises/029/wrong_char.py | alex-vegan/100daysofcode-with-python-course | b6c12316abe18274b7963371b8f0ed2fd549ef07 | [
"MIT"
] | 2 | 2018-10-28T17:12:37.000Z | 2018-10-28T17:12:39.000Z | days/day063/exercises/029/wrong_char.py | alex-vegan/100daysofcode-with-python-course | b6c12316abe18274b7963371b8f0ed2fd549ef07 | [
"MIT"
] | 3 | 2018-10-28T17:11:04.000Z | 2018-10-29T22:36:36.000Z | days/day063/exercises/029/wrong_char.py | alex-vegan/100daysofcode-with-python-course | b6c12316abe18274b7963371b8f0ed2fd549ef07 | [
"MIT"
] | null | null | null | def get_index_different_char(chars):
alphanumeric_count, not_alphanumeric_count = 0, 0
last_alphanumeric_idx, last_not_alphanumeric_idx = 0, 0
alphanumeric = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
for idx, char in enumerate(chars):
if str(char) in alphanumeric:
... | 42.8 | 84 | 0.626168 | 123 | 1,070 | 5.04878 | 0.349594 | 0.077295 | 0.164251 | 0.202899 | 0.331723 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0.028369 | 0.209346 | 1,070 | 24 | 85 | 44.583333 | 0.704492 | 0.039252 | 0 | 0 | 0 | 0 | 0.097371 | 0.06037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.15 | 0.25 | 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 |
ef434d5cd0e92afec9cd93b7d902ab2cab8bdaab | 752 | py | Python | tracker/migrations/0010_erc20token.py | shapeshift-legacy/watchtower | c9cd5150f8549145f7de9b1ea820d548959350fe | [
"MIT"
] | null | null | null | tracker/migrations/0010_erc20token.py | shapeshift-legacy/watchtower | c9cd5150f8549145f7de9b1ea820d548959350fe | [
"MIT"
] | null | null | null | tracker/migrations/0010_erc20token.py | shapeshift-legacy/watchtower | c9cd5150f8549145f7de9b1ea820d548959350fe | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-09-27 06:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tracker', '0009_auto_20180907_0156'),
]
operations = [
migrations.CreateModel(
name='ERC20Token',
fields=[
... | 31.333333 | 114 | 0.586436 | 78 | 752 | 5.525641 | 0.653846 | 0.104408 | 0.092807 | 0.111369 | 0.204176 | 0.204176 | 0.204176 | 0.204176 | 0.204176 | 0 | 0 | 0.077206 | 0.276596 | 752 | 23 | 115 | 32.695652 | 0.715074 | 0.05984 | 0 | 0 | 1 | 0 | 0.112057 | 0.032624 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ef45b98db96b1c128c5275a48279df60da298c8f | 2,567 | py | Python | accounts/forms.py | UserCommon/ShattredMine | 1a110ea885d7c598f465567d9ed45fc2fe7804fc | [
"MIT"
] | 3 | 2021-11-07T23:30:46.000Z | 2021-11-07T23:39:29.000Z | accounts/forms.py | UserCommon/ShattredMine | 1a110ea885d7c598f465567d9ed45fc2fe7804fc | [
"MIT"
] | null | null | null | accounts/forms.py | UserCommon/ShattredMine | 1a110ea885d7c598f465567d9ed45fc2fe7804fc | [
"MIT"
] | null | null | null | from django import forms
from django.core.exceptions import ValidationError
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from .models import Profile
from django.contrib.auth.models import User
class RegisterForm(UserCreationForm):
password1 = forms.CharField(
label="Пароль"... | 27.308511 | 91 | 0.576938 | 251 | 2,567 | 5.828685 | 0.298805 | 0.054682 | 0.076555 | 0.114833 | 0.375256 | 0.346548 | 0.23445 | 0.137389 | 0.137389 | 0.095694 | 0 | 0.003275 | 0.286326 | 2,567 | 93 | 92 | 27.602151 | 0.795306 | 0 | 0 | 0.196721 | 0 | 0 | 0.207263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0.163934 | 0.081967 | 0 | 0.262295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ef4ec732cfc974ed11b626370184f22e954e6600 | 401 | py | Python | xknx/telegram/__init__.py | iligiddi/xknx | c450d5934c8ddc608741229a7d14168013c3684c | [
"MIT"
] | 179 | 2016-12-29T00:24:47.000Z | 2022-03-11T23:46:06.000Z | xknx/telegram/__init__.py | iligiddi/xknx | c450d5934c8ddc608741229a7d14168013c3684c | [
"MIT"
] | 820 | 2016-12-25T22:45:12.000Z | 2022-03-31T10:18:25.000Z | xknx/telegram/__init__.py | magenbrot/xknx | dc012c8b53606b591d4ba3c006700576149c268e | [
"MIT"
] | 111 | 2016-12-30T00:02:13.000Z | 2022-03-20T15:18:33.000Z | """
Module for handling KNX primitves.
* KNX Addresses
* KNX Telegrams
"""
# flake8: noqa
from .address import GroupAddress, GroupAddressType, IndividualAddress
from .address_filter import AddressFilter
from .telegram import Telegram, TelegramDirection
__all__ = [
"AddressFilter",
"GroupAddress",
"GroupA... | 19.095238 | 70 | 0.735661 | 34 | 401 | 8.529412 | 0.588235 | 0.075862 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003003 | 0.169576 | 401 | 20 | 71 | 20.05 | 0.867868 | 0.201995 | 0 | 0 | 0 | 0 | 0.266881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
ef66f4ecf00d573fd5abe527927717201f6f695d | 3,197 | py | Python | conary/pysqlite3/test/concurrency_tests.py | sassoftware/conary | d418968acd5e11ee17ed6d91ca395ea10a040222 | [
"Apache-2.0"
] | 43 | 2015-03-31T01:37:10.000Z | 2021-11-14T16:26:48.000Z | conary/pysqlite3/test/concurrency_tests.py | sassoftware/conary | d418968acd5e11ee17ed6d91ca395ea10a040222 | [
"Apache-2.0"
] | 9 | 2015-06-10T16:39:41.000Z | 2020-01-27T16:35:01.000Z | conary/pysqlite3/test/concurrency_tests.py | sassoftware/conary | d418968acd5e11ee17ed6d91ca395ea10a040222 | [
"Apache-2.0"
] | 9 | 2015-04-07T08:12:37.000Z | 2020-01-26T09:54:18.000Z | #!/usr/bin/env python
#
# Copyright (c) 2004-2005 rPath, Inc.
#
import testsupport
import os, sys, tempfile, time, unittest
import sqlite3 as sqlite
class Waiter:
def wait(self, data, count):
self.count = count
if count > 5:
return 0
return 1
def __init__(self):
se... | 27.324786 | 78 | 0.568971 | 372 | 3,197 | 4.841398 | 0.298387 | 0.049972 | 0.063298 | 0.04442 | 0.580788 | 0.580788 | 0.580788 | 0.565242 | 0.545253 | 0.545253 | 0 | 0.042495 | 0.308101 | 3,197 | 116 | 79 | 27.560345 | 0.7717 | 0.065374 | 0 | 0.623529 | 0 | 0 | 0.111223 | 0 | 0 | 0 | 0 | 0 | 0.094118 | 0 | null | null | 0 | 0.035294 | 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 |
ef67bd067fa08d812575d73fc1ff56cb298e8773 | 708 | py | Python | vmlib/seis/__init__.py | valentinmetraux/vmlib | 0a04aeb486b1b6ed4973041807e49ca5a59600e9 | [
"MIT"
] | null | null | null | vmlib/seis/__init__.py | valentinmetraux/vmlib | 0a04aeb486b1b6ed4973041807e49ca5a59600e9 | [
"MIT"
] | null | null | null | vmlib/seis/__init__.py | valentinmetraux/vmlib | 0a04aeb486b1b6ed4973041807e49ca5a59600e9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
=========================
rx_sect_plot (mod: 'vmlib.seis')
=========================
basemap
cdp_spacing
distance
"""
__all__ = ['cdp', 'navmerge', 'rcv', 'src', 'traces',
'rx_sect_plot', 'rx_sect_qc', 'segy']
from .cdp import CDP_line
from .navmerge import basemap, elevatio... | 22.125 | 75 | 0.690678 | 99 | 708 | 4.616162 | 0.40404 | 0.065646 | 0.065646 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001645 | 0.141243 | 708 | 31 | 76 | 22.83871 | 0.75 | 0.19209 | 0 | 0 | 0 | 0 | 0.087344 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.846154 | 0 | 0.846154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
322982d3ef62fc532ddf6fb3335bc9228607487b | 1,766 | py | Python | src/dataloader.py | Benjamin-Etheredge/mlp-mixer-exploration | 3cf96a0dbfff94b9f14c5bd15c62556f3520a761 | [
"MIT"
] | null | null | null | src/dataloader.py | Benjamin-Etheredge/mlp-mixer-exploration | 3cf96a0dbfff94b9f14c5bd15c62556f3520a761 | [
"MIT"
] | null | null | null | src/dataloader.py | Benjamin-Etheredge/mlp-mixer-exploration | 3cf96a0dbfff94b9f14c5bd15c62556f3520a761 | [
"MIT"
] | 1 | 2021-10-04T19:14:43.000Z | 2021-10-04T19:14:43.000Z | import pandas as pd
import tensorflow as tf
import os
from tensorflow._api.v2 import data
# TODO is jpeg and write log of how many and what is filtered
def load_meta(path):
meta = pd.read_csv(path)
ids = [id-1 for id in meta.id.values]
wnid_to_id = tf.lookup.StaticHashTable(
initializer=tf.looku... | 31.535714 | 104 | 0.690827 | 295 | 1,766 | 3.972881 | 0.383051 | 0.030717 | 0.027304 | 0.030717 | 0.133106 | 0.105802 | 0.083618 | 0.083618 | 0.083618 | 0.083618 | 0 | 0.011173 | 0.189128 | 1,766 | 55 | 105 | 32.109091 | 0.807263 | 0.207814 | 0 | 0 | 0 | 0 | 0.006479 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.117647 | false | 0 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32299d5b4a4d2ba3127d9948b29afec1b7d9a4fa | 1,620 | py | Python | graphony/edge.py | vishalbelsare/Graphony | d03c789ffa5b82017567f66e8547dd1b850dd63b | [
"Apache-2.0"
] | 3 | 2021-09-15T19:24:53.000Z | 2021-12-15T21:32:15.000Z | graphony/edge.py | vishalbelsare/Graphony | d03c789ffa5b82017567f66e8547dd1b850dd63b | [
"Apache-2.0"
] | null | null | null | graphony/edge.py | vishalbelsare/Graphony | d03c789ffa5b82017567f66e8547dd1b850dd63b | [
"Apache-2.0"
] | 1 | 2021-09-15T19:25:26.000Z | 2021-09-15T19:25:26.000Z | """ Edge and Hedge objects. """
from typing import NamedTuple, List
from .node import Node
class Edge(NamedTuple):
"""A simple Edge between one source and one destination node."""
property: object
sid: int
did: int
weight: object = True
eid: int = None
def __repr__(self):
if sel... | 25.714286 | 82 | 0.6 | 192 | 1,620 | 5.020833 | 0.28125 | 0.074689 | 0.058091 | 0.043568 | 0.215768 | 0.16805 | 0.060166 | 0 | 0 | 0 | 0 | 0 | 0.264815 | 1,620 | 62 | 83 | 26.129032 | 0.809404 | 0.159259 | 0 | 0.307692 | 0 | 0 | 0.112633 | 0.072298 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.051282 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
323181efa49808ca55b5e7c2687de2d57e392c03 | 3,662 | py | Python | test.py | real-xikram/Traffic-Sign-Detector | 75563741e0543323754cb335652288f21aae15e8 | [
"MIT"
] | null | null | null | test.py | real-xikram/Traffic-Sign-Detector | 75563741e0543323754cb335652288f21aae15e8 | [
"MIT"
] | null | null | null | test.py | real-xikram/Traffic-Sign-Detector | 75563741e0543323754cb335652288f21aae15e8 | [
"MIT"
] | null | null | null | import tkinter as tk
from tkinter import filedialog
from tkinter import *
from PIL import ImageTk ,Image
import numpy as np
from keras.models import load_model
#load the model
model = load_model('traffic_classifier.h5')
#defince the class labels in the dictionary
classes = { 1:'Speed limit (20km/h)',
2:'S... | 35.211538 | 114 | 0.574823 | 454 | 3,662 | 4.57489 | 0.440529 | 0.043332 | 0.008666 | 0.014444 | 0.101107 | 0.052961 | 0.052961 | 0.052961 | 0.052961 | 0 | 0 | 0.063413 | 0.289459 | 3,662 | 104 | 115 | 35.211538 | 0.734819 | 0.019115 | 0 | 0 | 0 | 0 | 0.261281 | 0.00585 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032967 | false | 0.065934 | 0.065934 | 0 | 0.098901 | 0.010989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
32345b937a1931866b747e0eab07853f53f90c2f | 9,584 | py | Python | autograde/test_result.py | wanLo/autograde | 165160a040868a1d3319066520f8a5623b623506 | [
"MIT"
] | 8 | 2020-02-28T14:28:02.000Z | 2022-01-17T14:05:14.000Z | autograde/test_result.py | wanLo/autograde | 165160a040868a1d3319066520f8a5623b623506 | [
"MIT"
] | 24 | 2020-03-02T15:57:41.000Z | 2022-03-12T01:05:47.000Z | autograde/test_result.py | wanLo/autograde | 165160a040868a1d3319066520f8a5623b623506 | [
"MIT"
] | 4 | 2020-04-30T07:56:34.000Z | 2021-07-19T12:04:04.000Z | import math
import re
from copy import deepcopy
from dataclasses import dataclass, field
from functools import lru_cache
from typing import List, Optional, Tuple, Union
from zipfile import ZipFile
from dataclasses_json import config, dataclass_json
from marshmallow import fields
import autograde
from autograde.util i... | 33.277778 | 120 | 0.642634 | 1,217 | 9,584 | 4.861956 | 0.198028 | 0.018929 | 0.030421 | 0.022985 | 0.21734 | 0.185736 | 0.122359 | 0.070306 | 0.021633 | 0 | 0 | 0.003335 | 0.249165 | 9,584 | 287 | 121 | 33.393728 | 0.818927 | 0.041736 | 0 | 0.179245 | 0 | 0.004717 | 0.13413 | 0.042444 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146226 | false | 0.04717 | 0.051887 | 0.084906 | 0.509434 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
324368c36f19aef28e576f7d249a5d1c5e9cfd4a | 2,281 | py | Python | ingestion/models.py | apoclyps/ingestion | 8905c41838601b5c54be94347993bda017f61f86 | [
"Unlicense"
] | 1 | 2019-01-19T13:51:15.000Z | 2019-01-19T13:51:15.000Z | ingestion/models.py | apoclyps/ingestion | 8905c41838601b5c54be94347993bda017f61f86 | [
"Unlicense"
] | 8 | 2018-07-16T05:39:55.000Z | 2019-10-01T06:06:37.000Z | ingestion/models.py | apoclyps/ingestion | 8905c41838601b5c54be94347993bda017f61f86 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
models
----------------------------------
Models store record state during parsing and serialisation to other formats.
"""
class InventoryItem(object):
""" Inventory Item Model """
def __init__(self, id=None, price=None, description=None, cost=None, price_t... | 24.526882 | 89 | 0.596668 | 252 | 2,281 | 5.150794 | 0.166667 | 0.083205 | 0.12943 | 0.05547 | 0.157165 | 0.07396 | 0.07396 | 0 | 0 | 0 | 0 | 0.001225 | 0.284086 | 2,281 | 92 | 90 | 24.793478 | 0.793631 | 0.222709 | 0 | 0.365385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.288462 | false | 0 | 0 | 0 | 0.442308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
32438498512a48c320effc2a4832b947e41d57f3 | 4,995 | py | Python | cloudrunner/core/platform/nix.py | CloudRunnerIO/cloudrunner | dc4712a6ccbe95fa552b5699d301de75928bcf08 | [
"Apache-2.0"
] | 5 | 2015-05-14T01:35:48.000Z | 2021-12-21T14:46:28.000Z | cloudrunner/core/platform/nix.py | CloudRunnerIO/cloudrunner | dc4712a6ccbe95fa552b5699d301de75928bcf08 | [
"Apache-2.0"
] | 1 | 2015-02-12T12:39:53.000Z | 2015-02-12T12:40:06.000Z | cloudrunner/core/platform/nix.py | CloudRunnerIO/cloudrunner | dc4712a6ccbe95fa552b5699d301de75928bcf08 | [
"Apache-2.0"
] | 1 | 2021-12-21T14:57:24.000Z | 2021-12-21T14:57:24.000Z | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 CloudRunner.IO
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | 26.015625 | 78 | 0.565566 | 621 | 4,995 | 4.415459 | 0.331723 | 0.016411 | 0.030635 | 0.021882 | 0.119985 | 0.098104 | 0.098104 | 0.072939 | 0.072939 | 0.045222 | 0 | 0.010622 | 0.34034 | 4,995 | 191 | 79 | 26.151832 | 0.821548 | 0.141542 | 0 | 0.17037 | 0 | 0 | 0.013127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007407 | 0.059259 | 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 |
3250549a405738077a4be22006e4ba0bde6487c4 | 193 | py | Python | gehomesdk/erd/values/fridge/erd_hot_water_status.py | willhayslett/gehome | 7e407a1d31cede1453656eaef948332e808484ea | [
"MIT"
] | 17 | 2021-05-18T01:58:06.000Z | 2022-03-22T20:49:32.000Z | gehomesdk/erd/values/fridge/erd_hot_water_status.py | willhayslett/gehome | 7e407a1d31cede1453656eaef948332e808484ea | [
"MIT"
] | 29 | 2021-05-17T21:43:16.000Z | 2022-02-28T22:50:48.000Z | gehomesdk/erd/values/fridge/erd_hot_water_status.py | willhayslett/gehome | 7e407a1d31cede1453656eaef948332e808484ea | [
"MIT"
] | 9 | 2021-05-17T04:40:58.000Z | 2022-02-02T17:26:13.000Z | import enum
@enum.unique
class ErdHotWaterStatus(enum.Enum):
NOT_HEATING = "00"
HEATING = "01"
READY = "02"
FAULT_NEED_CLEARED = "FD"
FAULT_LOCKED_OUT = "FE"
NA = "NA"
| 17.545455 | 35 | 0.626943 | 25 | 193 | 4.64 | 0.76 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041379 | 0.248705 | 193 | 10 | 36 | 19.3 | 0.758621 | 0 | 0 | 0 | 0 | 0 | 0.062176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.888889 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32520845a86ed4716bdd622804d25fae4f19bc56 | 3,155 | py | Python | ufdl-core-app/src/ufdl/core_app/views/mixins/_ImportTemplateViewSet.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | null | null | null | ufdl-core-app/src/ufdl/core_app/views/mixins/_ImportTemplateViewSet.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | 85 | 2020-07-24T00:04:28.000Z | 2022-02-10T10:35:15.000Z | ufdl-core-app/src/ufdl/core_app/views/mixins/_ImportTemplateViewSet.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | null | null | null | from typing import List
from rest_framework import routers
from rest_framework.request import Request
from rest_framework.response import Response
from ufdl.json.core.jobs import JobTemplateSpec
from wai.json.object import Absent
from ...exceptions import JSONParseFailure, BadJobTemplate
from ...migrations.job_temp... | 34.67033 | 96 | 0.612678 | 327 | 3,155 | 5.801223 | 0.373089 | 0.081181 | 0.051661 | 0.037955 | 0.175013 | 0.107538 | 0.107538 | 0.064312 | 0 | 0 | 0 | 0 | 0.306498 | 3,155 | 90 | 97 | 35.055556 | 0.867002 | 0.222821 | 0 | 0.072727 | 0 | 0 | 0.07643 | 0.054227 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.327273 | 0.018182 | 0.472727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
32618f0ef349cd7dce7bdd7a7902bee60b3d1aae | 240 | py | Python | tests/test_cli.py | dcwangmit01/statement-downloader | 7b288ee5d5bb7a2f16db8e5a9476db930950ffb2 | [
"MIT"
] | 6 | 2017-01-30T16:37:37.000Z | 2021-02-21T06:55:35.000Z | tests/test_cli.py | dcwangmit01/statement-downloader | 7b288ee5d5bb7a2f16db8e5a9476db930950ffb2 | [
"MIT"
] | 5 | 2021-03-31T19:03:37.000Z | 2021-12-13T19:53:13.000Z | tests/test_cli.py | dcwangmit01/options-screener | bee7d0ac86b540e8151a68033c1fdde9d8e37bff | [
"MIT"
] | 4 | 2017-06-26T22:27:50.000Z | 2021-04-28T05:02:20.000Z | import re
def test_app_help(cli):
r = cli('-h')
regex = (r'Usage: app \[OPTIONS\] COMMAND \[ARGS\]...' '.*Options:' '.*Commands:')
assert re.search(regex, r.output, re.DOTALL) is not None, r.output
assert r.exit_code == 0
| 26.666667 | 86 | 0.608333 | 37 | 240 | 3.864865 | 0.675676 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0.191667 | 240 | 8 | 87 | 30 | 0.731959 | 0 | 0 | 0 | 0 | 0 | 0.270833 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3263e96406f3c9a8d3f58be530e1a06f12979b4d | 3,427 | py | Python | task_lesson/models.py | LifeLaboratory/Task_platform_backend | 5b2464c181f85db9a77da42c73634507f930c1d7 | [
"MIT"
] | null | null | null | task_lesson/models.py | LifeLaboratory/Task_platform_backend | 5b2464c181f85db9a77da42c73634507f930c1d7 | [
"MIT"
] | null | null | null | task_lesson/models.py | LifeLaboratory/Task_platform_backend | 5b2464c181f85db9a77da42c73634507f930c1d7 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class User(models.Model):
user = models.AutoField(primary_key=True)
name = models.TextField(max_length=128, default='', null=False)
login = models.TextField(max_length=128, default='', null=False)
password = models.TextField(max_length=128, defa... | 38.505618 | 76 | 0.741757 | 436 | 3,427 | 5.729358 | 0.130734 | 0.072058 | 0.122498 | 0.163331 | 0.708967 | 0.611289 | 0.603283 | 0.603283 | 0.419135 | 0.397918 | 0 | 0.020525 | 0.132769 | 3,427 | 88 | 77 | 38.943182 | 0.819987 | 0.011088 | 0 | 0.344262 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.016393 | 0.016393 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3268bc2bf1175bf5e5fa79c889ae457e0158454a | 4,124 | py | Python | worker.py | alpeware/gcms | ac3848ca82789911165617e790c170f4fd02254b | [
"MIT"
] | null | null | null | worker.py | alpeware/gcms | ac3848ca82789911165617e790c170f4fd02254b | [
"MIT"
] | null | null | null | worker.py | alpeware/gcms | ac3848ca82789911165617e790c170f4fd02254b | [
"MIT"
] | null | null | null | """
GCMS
(c) 2017 Alpeware LLC
"""
import logging
import webapp2
from datetime import datetime
from common import fix_page, enqueue_post, start_caching, parse_landing_page
from models import Page
from apiclient import discovery
from google.appengine.api import memcache
from google.appengine.api import taskqueue
from... | 32.472441 | 107 | 0.663191 | 535 | 4,124 | 4.949533 | 0.276636 | 0.058912 | 0.022659 | 0.022659 | 0.230363 | 0.148792 | 0.148792 | 0.148792 | 0.148792 | 0.123112 | 0 | 0.005538 | 0.21193 | 4,124 | 126 | 108 | 32.730159 | 0.809231 | 0.023278 | 0 | 0.148936 | 0 | 0 | 0.078736 | 0.014794 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.106383 | null | null | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
326b113815248c24ddb8c175a0357abe0891631d | 5,835 | py | Python | bandc/apps/agenda/utils.py | crccheck/atx-bandc | 54d0eceb2992a70bfd97e24353cc9f550c1815f7 | [
"BSD-3-Clause"
] | null | null | null | bandc/apps/agenda/utils.py | crccheck/atx-bandc | 54d0eceb2992a70bfd97e24353cc9f550c1815f7 | [
"BSD-3-Clause"
] | 26 | 2015-01-22T22:27:08.000Z | 2022-02-26T06:03:44.000Z | bandc/apps/agenda/utils.py | crccheck/atx-bandc | 54d0eceb2992a70bfd97e24353cc9f550c1815f7 | [
"BSD-3-Clause"
] | null | null | null | import logging
from typing import List, Tuple
import requests
from dateutil.parser import parse
from django.utils.timezone import now
from lxml.html import document_fromstring
from obj_update import obj_update_or_create
from .models import BandC, Meeting, Document
from . import scrape_logger
# CONSTANTS
MEETING_DA... | 29.770408 | 86 | 0.616281 | 725 | 5,835 | 4.8 | 0.289655 | 0.028448 | 0.020115 | 0.025862 | 0.031609 | 0.02069 | 0.02069 | 0.02069 | 0 | 0 | 0 | 0.003255 | 0.262896 | 5,835 | 195 | 87 | 29.923077 | 0.805859 | 0.130591 | 0 | 0.109375 | 0 | 0 | 0.118169 | 0.022585 | 0 | 0 | 0 | 0.010256 | 0.007813 | 1 | 0.054688 | false | 0.015625 | 0.070313 | 0.007813 | 0.1875 | 0.007813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
3272780ab22e69ba9c50b1432232f9f6cbe7452d | 13,326 | py | Python | resources/lib/mysql-connector-python/mysql/connector/conversion.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | null | null | null | resources/lib/mysql-connector-python/mysql/connector/conversion.py | bopopescu/ServerStatus | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 1 | 2015-04-21T22:05:02.000Z | 2015-04-22T22:27:15.000Z | resources/lib/mysql-connector-python/mysql/connector/conversion.py | GetSomeBlocks/Score_Soccer | a883598248ad6f5273eb3be498e3b04a1fab6510 | [
"MIT"
] | 2 | 2015-09-29T16:31:43.000Z | 2020-07-26T03:41:10.000Z | # MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2009,2010, Oracle and/or its affiliates. All rights reserved.
# Use is subject to license terms. (See COPYING)
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publ... | 31.956835 | 85 | 0.565586 | 1,675 | 13,326 | 4.39403 | 0.198806 | 0.027174 | 0.019429 | 0.026087 | 0.262364 | 0.209375 | 0.174864 | 0.092391 | 0.070924 | 0.060598 | 0 | 0.011481 | 0.346391 | 13,326 | 416 | 86 | 32.033654 | 0.833525 | 0.096428 | 0 | 0.30622 | 0 | 0 | 0.038149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.028708 | 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 |
3273dfc330e659528c57da7544c7d5e582523230 | 2,722 | py | Python | lib/pysnmp/entity/rfc3413/oneliner/target.py | lowitty/sendtrap | 63c194cecd9f4355f4a9edc244d80e54aa9ff0be | [
"MIT"
] | null | null | null | lib/pysnmp/entity/rfc3413/oneliner/target.py | lowitty/sendtrap | 63c194cecd9f4355f4a9edc244d80e54aa9ff0be | [
"MIT"
] | null | null | null | lib/pysnmp/entity/rfc3413/oneliner/target.py | lowitty/sendtrap | 63c194cecd9f4355f4a9edc244d80e54aa9ff0be | [
"MIT"
] | null | null | null | import socket, sys
from pysnmp.carrier.asynsock.dgram import udp, udp6, unix
from pysnmp import error
from pyasn1.compat.octets import null
class _AbstractTransportTarget:
transportDomain = None
protoTransport = NotImplementedError
def __init__(self, transportAddr, timeout=1, retries=5, tagList=null):
... | 43.206349 | 144 | 0.636297 | 249 | 2,722 | 6.827309 | 0.329317 | 0.07 | 0.037059 | 0.054706 | 0.276471 | 0.276471 | 0.276471 | 0.276471 | 0.276471 | 0.276471 | 0 | 0.011646 | 0.274431 | 2,722 | 62 | 145 | 43.903226 | 0.849114 | 0 | 0 | 0.264151 | 0 | 0 | 0.061352 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0 | 0.075472 | 0.037736 | 0.54717 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
327ff1cd707103478dd0d2fb8b26afccd8c32758 | 659 | py | Python | 445_cosine-similarity/cosine-similarity.py | litaotju/lintcode | d614bfd33d5a772325f62f83edbc56e07bbdab6c | [
"MIT"
] | 2 | 2016-07-30T01:25:06.000Z | 2017-10-07T12:30:24.000Z | 445_cosine-similarity/cosine-similarity.py | litaotju/lintcode | d614bfd33d5a772325f62f83edbc56e07bbdab6c | [
"MIT"
] | null | null | null | 445_cosine-similarity/cosine-similarity.py | litaotju/lintcode | d614bfd33d5a772325f62f83edbc56e07bbdab6c | [
"MIT"
] | null | null | null | # coding:utf-8
'''
@Copyright:LintCode
@Author: taoleetju
@Problem: http://www.lintcode.com/problem/cosine-similarity
@Language: Python
@Datetime: 15-10-05 15:16
'''
class Solution:
"""
@param A: An integer array.
@param B: An integer array.
@return: Cosine similarity.
"""
def cosineSimilari... | 23.535714 | 60 | 0.518968 | 95 | 659 | 3.568421 | 0.547368 | 0.023599 | 0.082596 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0.338392 | 659 | 28 | 61 | 23.535714 | 0.722477 | 0.400607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
328435d3dadc100be00dac47baa2904ec51d1fae | 523 | py | Python | ticketing/migrations/0004_auto_20180515_0313.py | autlamps/tessera-backend | 1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2 | [
"MIT"
] | null | null | null | ticketing/migrations/0004_auto_20180515_0313.py | autlamps/tessera-backend | 1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2 | [
"MIT"
] | 1 | 2018-08-14T03:15:00.000Z | 2018-08-21T00:33:34.000Z | ticketing/migrations/0004_auto_20180515_0313.py | autlamps/tessera-backend | 1d02e8e3651c1ad75bdf4e5d0e61765a2a6de0c2 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.4 on 2018-05-15 03:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ticketing', '0003_auto_20180515_0148'),
]
operations = [
migrations.AlterField(
model_name='pus... | 26.15 | 141 | 0.665392 | 58 | 523 | 5.87931 | 0.689655 | 0.070381 | 0.082111 | 0.129032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07598 | 0.219885 | 523 | 19 | 142 | 27.526316 | 0.759804 | 0.086042 | 0 | 0 | 1 | 0 | 0.191176 | 0.048319 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
32a36133d3d3a5bd94bea613b4ad737560769096 | 2,344 | py | Python | automation/devops_proxy_pod/__init__.py | AnyVisionltd/devops-automation-infra | 7d6e75dc96ffa53d07e1dbd2c4ddb0fcdcf92cd1 | [
"MIT"
] | 2 | 2021-03-10T14:52:24.000Z | 2021-03-10T18:50:20.000Z | automation/devops_proxy_pod/__init__.py | solganik/devops-automation-infra | 2ef2ac80a52d2f2abd037ad24cbf7f98b0c50bc6 | [
"MIT"
] | 4 | 2021-03-14T11:30:11.000Z | 2022-01-30T16:01:41.000Z | automation/devops_proxy_pod/__init__.py | solganik/devops-automation-infra | 2ef2ac80a52d2f2abd037ad24cbf7f98b0c50bc6 | [
"MIT"
] | 5 | 2021-03-10T14:52:14.000Z | 2021-11-17T16:00:18.000Z | import logging
import os
import re
import pytest
from automation_infra.utils import waiter
from devops_automation_infra.k8s_plugins.proxy_daemonset import ProxyDaemonSet
from devops_automation_infra.plugins.ssh import SSH
from devops_automation_infra.plugins.tunnel_manager import TunnelManager
from automation_infra.u... | 39.728814 | 113 | 0.763225 | 312 | 2,344 | 5.528846 | 0.352564 | 0.063768 | 0.034783 | 0.043478 | 0.373913 | 0.222029 | 0.163478 | 0.054493 | 0.054493 | 0.054493 | 0 | 0.003477 | 0.141212 | 2,344 | 58 | 114 | 40.413793 | 0.853453 | 0.054181 | 0 | 0.119048 | 0 | 0 | 0.174424 | 0.046091 | 0 | 0 | 0 | 0.017241 | 0 | 1 | 0.142857 | false | 0 | 0.238095 | 0 | 0.380952 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
32b15af30ba3d48c4c312ca6f72284b28927e894 | 1,382 | py | Python | Authentication/models/customeUser.py | farazjalili/AuthenticationDjango | ffd43166fd31a4010dc044f8f2fa9b6000a1a8b3 | [
"Apache-2.0"
] | null | null | null | Authentication/models/customeUser.py | farazjalili/AuthenticationDjango | ffd43166fd31a4010dc044f8f2fa9b6000a1a8b3 | [
"Apache-2.0"
] | 13 | 2020-02-12T03:00:54.000Z | 2022-03-02T06:31:24.000Z | Authentication/models/customeUser.py | farazjalili/AuthenticationDjango | ffd43166fd31a4010dc044f8f2fa9b6000a1a8b3 | [
"Apache-2.0"
] | null | null | null | from django.contrib.auth.models import AbstractUser
'''
AbstractBaseUser provides the core implementation of a user model, including hashed passwords and tokenized password resets
'''
class CustomeUser(AbstractUser):
username = models.CharField(max_length=40, unique=True)
email = models.EmailField(max_leng... | 44.580645 | 166 | 0.722865 | 202 | 1,382 | 4.891089 | 0.504951 | 0.020243 | 0.054656 | 0.072874 | 0.149798 | 0.058704 | 0.058704 | 0 | 0 | 0 | 0 | 0.008372 | 0.222142 | 1,382 | 30 | 167 | 46.066667 | 0.910698 | 0 | 0 | 0 | 0 | 0 | 0.046036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
32b7ee4a28ba42de4385256e71c0ff55e8699a61 | 3,184 | py | Python | src/test/java/weka/experiment/stats.py | xuefengwork/weka | d58d8f814e756acd7748caa668c1daf012267340 | [
"PostgreSQL",
"DOC"
] | 1 | 2019-09-26T15:29:51.000Z | 2019-09-26T15:29:51.000Z | jstarcraft-ai-weka/src/test/java/weka/experiment/stats.py | kingrom/jstarcraft-ai | 5029228e27efa3dd934d431cd8dd90e786b760a7 | [
"Apache-2.0"
] | null | null | null | jstarcraft-ai-weka/src/test/java/weka/experiment/stats.py | kingrom/jstarcraft-ai | 5029228e27efa3dd934d431cd8dd90e786b760a7 | [
"Apache-2.0"
] | null | null | null | ###############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your optio... | 27.448276 | 80 | 0.548367 | 392 | 3,184 | 4.410714 | 0.352041 | 0.050896 | 0.048583 | 0.032967 | 0.345865 | 0.220937 | 0.152689 | 0.152689 | 0.041643 | 0.041643 | 0 | 0.013699 | 0.220477 | 3,184 | 115 | 81 | 27.686957 | 0.682917 | 0.307161 | 0 | 0.352941 | 0 | 0 | 0.012748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.019608 | 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 |
32b9d59d75f5d2297a874a5dd28e65af05262c0e | 5,728 | py | Python | libpython/python/healpix.py | cds-astro/cds-healpix-rust | 6ed567139e907db3aa9632fc86ac5a247cd9aa80 | [
"Apache-2.0",
"MIT"
] | 18 | 2019-01-17T14:33:31.000Z | 2022-03-22T15:30:27.000Z | libpython/python/healpix.py | gmantele/cds-healpix-rust | 03173fcd9e943a69405047875a9e89f992152730 | [
"Apache-2.0",
"MIT"
] | 2 | 2019-05-16T17:27:59.000Z | 2021-11-09T08:05:52.000Z | libpython/python/healpix.py | gmantele/cds-healpix-rust | 03173fcd9e943a69405047875a9e89f992152730 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-02-06T16:43:39.000Z | 2020-02-06T16:43:39.000Z | import math
import numpy as np
import datetime
import time
from pprint import pprint
from cffi import FFI
def _as_u64_array(array):
""" Cast np.long64 array to a pointer to long 64s."""
return ffi.cast("unsigned long int*", array.ctypes.data)
ffi = FFI()
ffi.cdef("""
// Returns the cell number (hash val... | 30.468085 | 124 | 0.676327 | 924 | 5,728 | 4.119048 | 0.219697 | 0.067262 | 0.079874 | 0.042039 | 0.462165 | 0.39753 | 0.352076 | 0.312139 | 0.281135 | 0.281135 | 0 | 0.058639 | 0.166376 | 5,728 | 187 | 125 | 30.631016 | 0.738429 | 0.063024 | 0 | 0.296875 | 0 | 0.0625 | 0.518498 | 0.052095 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.046875 | null | null | 0.304688 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
32bbe6eada05274622eda36909eeb974847f97ff | 1,078 | py | Python | Ninja/Leetcode/112_Path_Sum.py | cyandterry/Python-Study | b40e6c4db10da417e72247f61146f7570621106a | [
"MIT"
] | 61 | 2015-02-03T20:25:55.000Z | 2021-05-17T19:33:40.000Z | Ninja/Leetcode/112_Path_Sum.py | cyandterry/Python-Study | b40e6c4db10da417e72247f61146f7570621106a | [
"MIT"
] | null | null | null | Ninja/Leetcode/112_Path_Sum.py | cyandterry/Python-Study | b40e6c4db10da417e72247f61146f7570621106a | [
"MIT"
] | 37 | 2015-02-04T07:12:52.000Z | 2020-05-16T18:47:16.000Z | """
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ \
4 8
/ / \
11 13 4
/ \ \
... | 29.944444 | 148 | 0.56679 | 165 | 1,078 | 3.678788 | 0.406061 | 0.049423 | 0.049423 | 0.036244 | 0.049423 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028653 | 0.352505 | 1,078 | 35 | 149 | 30.8 | 0.840974 | 0.654917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
32c0a7fc34cd5d59eea286db0325843e0d330243 | 542 | py | Python | example/flask_ci_test_users/views.py | vicenteneto/flask-jenkins | 3f99e4473f3e64f898f5ad2d6119284386e1647e | [
"MIT"
] | 5 | 2016-11-24T09:04:02.000Z | 2022-03-06T15:48:04.000Z | example/flask_ci_test_users/views.py | vicenteneto/flask-jenkins | 3f99e4473f3e64f898f5ad2d6119284386e1647e | [
"MIT"
] | 1 | 2018-11-15T02:38:31.000Z | 2018-11-15T02:41:27.000Z | example/flask_ci_test_users/views.py | vicenteneto/flask-jenkins | 3f99e4473f3e64f898f5ad2d6119284386e1647e | [
"MIT"
] | 4 | 2016-12-15T06:06:46.000Z | 2022-02-14T15:06:14.000Z | from flask import Blueprint, request
blueprint = Blueprint('users', __name__, url_prefix='/users')
@blueprint.route('', methods=['POST', 'GET'])
def create_list():
if request.method == 'POST':
return 'Create user'
return 'List users'
@blueprint.route('/<user_id>', methods=['GET', 'DELETE', 'PUT'])
... | 27.1 | 64 | 0.642066 | 70 | 542 | 4.785714 | 0.385714 | 0.089552 | 0.080597 | 0.098507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195572 | 542 | 19 | 65 | 28.526316 | 0.768349 | 0 | 0 | 0 | 0 | 0 | 0.210332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.571429 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
32c74946b83337ae6230f83376974d9e72de865a | 483 | py | Python | oom/enumUsage.py | chainren/python-learn | 5e48e96c4bb212806b9ae0954fdb368abdcf9ba3 | [
"Apache-2.0"
] | null | null | null | oom/enumUsage.py | chainren/python-learn | 5e48e96c4bb212806b9ae0954fdb368abdcf9ba3 | [
"Apache-2.0"
] | 16 | 2020-02-12T03:09:30.000Z | 2022-03-12T00:08:59.000Z | oom/enumUsage.py | chainren/python-learn | 5e48e96c4bb212806b9ae0954fdb368abdcf9ba3 | [
"Apache-2.0"
] | null | null | null | #定义枚举类
from enum import Enum
Month = Enum('Month',('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'))
#使用枚举
for name, member in Month.__members__.items():
print(name, '=>', member, ',', member.value)
from enum import Enum, unique
@unique #@unique装饰器可以帮助我们检查保证没有重复值。
class Weekday(Enum)... | 14.636364 | 95 | 0.604555 | 67 | 483 | 4.298507 | 0.701493 | 0.055556 | 0.097222 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028796 | 0.20911 | 483 | 32 | 96 | 15.09375 | 0.725131 | 0.111801 | 0 | 0 | 0 | 0 | 0.104265 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.588235 | 0.176471 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
32c9310f758a95edc8d06a707d60bd693b9e652d | 1,430 | py | Python | FTG4.50/trainer/rolebaseAgent.py | ruritoBlogger/FightingICE_RL | 5c345c38343272369af493a5bf0099a06b9750de | [
"MIT"
] | null | null | null | FTG4.50/trainer/rolebaseAgent.py | ruritoBlogger/FightingICE_RL | 5c345c38343272369af493a5bf0099a06b9750de | [
"MIT"
] | null | null | null | FTG4.50/trainer/rolebaseAgent.py | ruritoBlogger/FightingICE_RL | 5c345c38343272369af493a5bf0099a06b9750de | [
"MIT"
] | null | null | null | from action import Action
from state import State
from typing import Dict
from gym import spaces
class RoleBaseAgent(object):
"""
ルールベースで行動選択を行うエージェント
"""
def __init__(self):
pass
def get_action(self, data: Dict, observation_space: spaces) -> Action:
"""
現在の状態から最適な行動を求める
... | 28.039216 | 113 | 0.530769 | 165 | 1,430 | 4.478788 | 0.351515 | 0.086604 | 0.11502 | 0.081191 | 0.257104 | 0.135318 | 0.083897 | 0 | 0 | 0 | 0 | 0.024468 | 0.342657 | 1,430 | 50 | 114 | 28.6 | 0.761702 | 0.077622 | 0 | 0.230769 | 0 | 0 | 0.068368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.038462 | 0.153846 | 0 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
085e205906c79d7e7641c8dad1029b066d2dc859 | 414 | py | Python | setup.py | jonjau/cifero | c8855a0d1288410ab619690cdf2455a8acb7dd2f | [
"MIT"
] | 1 | 2020-05-15T18:42:09.000Z | 2020-05-15T18:42:09.000Z | setup.py | jonjau/cifero | c8855a0d1288410ab619690cdf2455a8acb7dd2f | [
"MIT"
] | null | null | null | setup.py | jonjau/cifero | c8855a0d1288410ab619690cdf2455a8acb7dd2f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
setup(
name = 'cifero',
version = '1.0',
url = 'https://github.com/jonjau/cifero',
author = 'Jonathan J',
author_email = 'jonjau3Q@gmail.com',
description = 'A personal Python GUI program for phonetic transliteration.',
li... | 25.875 | 80 | 0.644928 | 47 | 414 | 5.595745 | 0.851064 | 0.091255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.202899 | 414 | 15 | 81 | 27.6 | 0.781818 | 0.050725 | 0 | 0 | 0 | 0 | 0.370844 | 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 |
0868db2cbfb2209a8d47e955491ff9a916f33e8d | 1,309 | py | Python | usafe.py | bobuk/usafe | b78d01814d8ad0d9c0423ce3d9097239cdf24117 | [
"Unlicense"
] | 6 | 2018-07-21T19:04:50.000Z | 2021-06-14T13:20:14.000Z | usafe.py | bobuk/usafe | b78d01814d8ad0d9c0423ce3d9097239cdf24117 | [
"Unlicense"
] | null | null | null | usafe.py | bobuk/usafe | b78d01814d8ad0d9c0423ce3d9097239cdf24117 | [
"Unlicense"
] | 3 | 2019-06-10T10:01:06.000Z | 2020-09-22T21:23:07.000Z | import getpass
import privy
import tarfile
import io, os
class uSafe:
def __init__(self, path='secret', passwd=None):
if not passwd: passwd = getpass.getpass()
self.content = self.reader(path, passwd)
del passwd
def reader(self, path, passwd):
res = {}
tar = tarfile.op... | 27.851064 | 76 | 0.596639 | 169 | 1,309 | 4.491124 | 0.402367 | 0.043478 | 0.023715 | 0.039526 | 0.171278 | 0.171278 | 0.171278 | 0 | 0 | 0 | 0 | 0.001029 | 0.257448 | 1,309 | 47 | 77 | 27.851064 | 0.779835 | 0.026738 | 0 | 0.108108 | 0 | 0 | 0.062844 | 0.03535 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0.27027 | 0.108108 | 0.054054 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
08738909dbec2748a1e36a52de40701630b7114e | 602 | py | Python | analy1.py | geekplux/youtube_analytics | 3e4fb7f7be814333108d0ad54e2f2672f7892850 | [
"MIT"
] | null | null | null | analy1.py | geekplux/youtube_analytics | 3e4fb7f7be814333108d0ad54e2f2672f7892850 | [
"MIT"
] | null | null | null | analy1.py | geekplux/youtube_analytics | 3e4fb7f7be814333108d0ad54e2f2672f7892850 | [
"MIT"
] | null | null | null | import sqlite3
sqlite_file = './youtube.db'
conn = sqlite3.connect(sqlite_file)
c = conn.cursor()
c.execute("""
SELECT "|" || ROW_NUMBER() OVER (ORDER BY c DESC) || "|" || "[" || name || "](https://www.youtube.com/channel/" || channel_id || ")|" || c || "|"
FROM (
SELECT
channel.name,
channel.channel_id,
... | 19.419355 | 145 | 0.634551 | 88 | 602 | 4.238636 | 0.488636 | 0.096515 | 0.128686 | 0.064343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012474 | 0.200997 | 602 | 31 | 146 | 19.419355 | 0.762994 | 0 | 0 | 0 | 0 | 0.04 | 0.689884 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0.04 | 0 | 0 | 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 |
0873d665df645a76263edc38724c80dd1b648eba | 3,041 | py | Python | q.py | JokerQyou/PyAACGUI2 | b191a72ec873e6491c7e7d7d876bde5503fc68cf | [
"BSD-2-Clause"
] | 1 | 2018-05-11T06:35:27.000Z | 2018-05-11T06:35:27.000Z | q.py | JokerQyou/PyAACGUI2 | b191a72ec873e6491c7e7d7d876bde5503fc68cf | [
"BSD-2-Clause"
] | null | null | null | q.py | JokerQyou/PyAACGUI2 | b191a72ec873e6491c7e7d7d876bde5503fc68cf | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''
Shortcut functions
'''
import os
import random
import wx
import wx.xrc as xrc
__author__ = 'Joker Qyou'
def extof(fpath):
'''
Return the extension (with dot) of given file name / file path.
'''
return os.path.splitext(fpath)[-1].... | 25.341667 | 75 | 0.49293 | 350 | 3,041 | 4.271429 | 0.417143 | 0.032107 | 0.032107 | 0.040134 | 0.212709 | 0.151171 | 0.151171 | 0.151171 | 0.151171 | 0.151171 | 0 | 0.007433 | 0.336403 | 3,041 | 119 | 76 | 25.554622 | 0.733399 | 0.01414 | 0 | 0.225806 | 0 | 0 | 0.044592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | 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 |
08760b0b9199bb8065793eeeaf6c46de6559fdb8 | 395 | py | Python | ukko/utils.py | Artimi/ukko | 2349f5cb52a4203be77e6a02083321509f35fafa | [
"MIT"
] | 1 | 2018-05-29T10:30:12.000Z | 2018-05-29T10:30:12.000Z | ukko/utils.py | Artimi/ukko | 2349f5cb52a4203be77e6a02083321509f35fafa | [
"MIT"
] | 1 | 2016-05-30T15:21:05.000Z | 2016-05-30T15:21:05.000Z | ukko/utils.py | Artimi/ukko | 2349f5cb52a4203be77e6a02083321509f35fafa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from functools import wraps
class ConstraintException(Exception):
pass
class PrecedenceException(Exception):
pass
def memoized(func):
memo = {}
@wraps(func)
def wrapper(*args):
if args in memo:
return memo[args]
else:
rv = func(*... | 15.8 | 37 | 0.559494 | 42 | 395 | 5.261905 | 0.547619 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003846 | 0.341772 | 395 | 24 | 38 | 16.458333 | 0.846154 | 0.053165 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.125 | 0.0625 | 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 |
0884fa601f9b54da98c490a9a87e4b13d8c591df | 5,944 | py | Python | pysnmp-with-texts/TRAPEZE-NETWORKS-REGISTRATION-DEVICES-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/TRAPEZE-NETWORKS-REGISTRATION-DEVICES-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/TRAPEZE-NETWORKS-REGISTRATION-DEVICES-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TRAPEZE-NETWORKS-REGISTRATION-DEVICES-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRAPEZE-NETWORKS-REGISTRATION-DEVICES-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:27:22 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user da... | 132.088889 | 993 | 0.776918 | 709 | 5,944 | 6.510578 | 0.314528 | 0.009532 | 0.013648 | 0.018198 | 0.264515 | 0.197574 | 0.188042 | 0.188042 | 0.185442 | 0.185442 | 0 | 0.121806 | 0.098082 | 5,944 | 44 | 994 | 135.090909 | 0.739228 | 0.063257 | 0 | 0 | 0 | 0.166667 | 0.321281 | 0.028782 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.194444 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
088aa39ec69c423bbf7e2ce68484990bea6a6e63 | 4,118 | py | Python | production/pygsl-0.9.5/tests/gsl_test.py | juhnowski/FishingRod | 457e7afb5cab424296dff95e1acf10ebf70d32a9 | [
"MIT"
] | null | null | null | production/pygsl-0.9.5/tests/gsl_test.py | juhnowski/FishingRod | 457e7afb5cab424296dff95e1acf10ebf70d32a9 | [
"MIT"
] | null | null | null | production/pygsl-0.9.5/tests/gsl_test.py | juhnowski/FishingRod | 457e7afb5cab424296dff95e1acf10ebf70d32a9 | [
"MIT"
] | 1 | 2018-10-02T06:18:07.000Z | 2018-10-02T06:18:07.000Z | # Author : Fabian Jakobs
import types
import unittest
import pygsl.math
from pygsl._numobj import *
import pygsl._mlab as mlab
from pygsl import Float, Complex, ArrayType
fcmp = pygsl.math.fcmp
def iscomplex_default(a):
return type(a) is types.ComplexType
def iscomplex_numpy(a):
if type(a) == ArrayType:
... | 32.425197 | 79 | 0.439777 | 568 | 4,118 | 3.15669 | 0.221831 | 0.01227 | 0.008366 | 0.013943 | 0.377022 | 0.334077 | 0.239264 | 0.148355 | 0.08589 | 0.08589 | 0 | 0.134201 | 0.402865 | 4,118 | 126 | 80 | 32.68254 | 0.594957 | 0.006557 | 0 | 0.214286 | 0 | 0 | 0.021771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.053571 | null | null | 0.026786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
088f226a5f3a0af76d0461fe01f3aac1e6b84b56 | 680 | py | Python | var/spack/repos/builtin/packages/py-gcovr/package.py | lguyot/spack | e910c227a7bac3adf2c18fc86cf994811b7d14f7 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 2 | 2020-10-15T01:08:42.000Z | 2021-10-18T01:28:18.000Z | var/spack/repos/builtin/packages/py-gcovr/package.py | lguyot/spack | e910c227a7bac3adf2c18fc86cf994811b7d14f7 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | var/spack/repos/builtin/packages/py-gcovr/package.py | lguyot/spack | e910c227a7bac3adf2c18fc86cf994811b7d14f7 | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | null | null | null | ##############################################################################
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyGcovr(PythonPa... | 35.789474 | 93 | 0.638235 | 75 | 680 | 5.76 | 0.826667 | 0.009259 | 0.050926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091062 | 0.127941 | 680 | 18 | 94 | 37.777778 | 0.637437 | 0.344118 | 0 | 0 | 0 | 0 | 0.470752 | 0.178273 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 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 |
08912b6bd1085a975ce5ec9ba66f7886c2446835 | 479 | py | Python | python/function_args.py | sweetporkbones/scratchpad | e5865c5cdec78f7a66d032c77919848773c991fb | [
"BSD-2-Clause"
] | 9 | 2016-03-26T13:00:34.000Z | 2021-12-09T05:29:06.000Z | python/function_args.py | sweetporkbones/scratchpad | e5865c5cdec78f7a66d032c77919848773c991fb | [
"BSD-2-Clause"
] | null | null | null | python/function_args.py | sweetporkbones/scratchpad | e5865c5cdec78f7a66d032c77919848773c991fb | [
"BSD-2-Clause"
] | 4 | 2017-04-06T22:03:42.000Z | 2020-07-06T20:44:10.000Z | #!/usr/bin/python
predefined_var = 'bar'
# amazingly, this works!
# NOTE: with the important limitation that predefined_var can't be changed
def w_var(a='foo', b=predefined_var):
print "a = {} and b = {}".format(a, b)
def spit_val():
return 'barcamp'
# and even this!
# NOTE: b= is defined on parsing time, ... | 21.772727 | 79 | 0.659708 | 82 | 479 | 3.731707 | 0.560976 | 0.127451 | 0.03268 | 0.065359 | 0.117647 | 0.117647 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0.185804 | 479 | 21 | 80 | 22.809524 | 0.784615 | 0.469729 | 0 | 0.222222 | 0 | 0 | 0.201613 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0895afe2d4fae7ed9289cbac6bef23237ca83df0 | 404 | py | Python | plotting.py | basiralab/ReMI-Net | 15402fee3afb572480971b11dac23c6da4f30e0c | [
"MIT"
] | 1 | 2021-12-13T11:16:50.000Z | 2021-12-13T11:16:50.000Z | plotting.py | basiralab/ReMI-Net | 15402fee3afb572480971b11dac23c6da4f30e0c | [
"MIT"
] | null | null | null | plotting.py | basiralab/ReMI-Net | 15402fee3afb572480971b11dac23c6da4f30e0c | [
"MIT"
] | 1 | 2021-06-23T22:58:06.000Z | 2021-06-23T22:58:06.000Z | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from matplotlib._color_data import BASE_COLORS
from sklearn.manifold import TSNE
def plot_cbt(img, fold_num=1, timepoint=0):
img = np.repeat(np.repeat(img, 10, axis=1), 10, axis=0)
plt.imshow(img)
plt.title(f"CBT at Fold {fol... | 28.857143 | 60 | 0.685644 | 66 | 404 | 4.106061 | 0.560606 | 0.051661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024691 | 0.19802 | 404 | 14 | 61 | 28.857143 | 0.811728 | 0 | 0 | 0 | 0 | 0 | 0.112245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.416667 | 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 |
08ae170a5815483a9708ef7d433d0e537aeaa54e | 1,198 | py | Python | scaffolding_tool_bin/com1_2.py | jlevy44/JoshuaTree2 | c643deabe687e4a5901579a6182a88ec1cc73ba2 | [
"MIT"
] | 2 | 2019-09-08T22:32:21.000Z | 2019-12-18T08:04:13.000Z | scaffolding_tool_bin/com1_2.py | jlevy44/JoshuaTree2 | c643deabe687e4a5901579a6182a88ec1cc73ba2 | [
"MIT"
] | null | null | null | scaffolding_tool_bin/com1_2.py | jlevy44/JoshuaTree2 | c643deabe687e4a5901579a6182a88ec1cc73ba2 | [
"MIT"
] | null | null | null | import os, subprocess, sys
"""python com1_2 sample refText CDS version"""
sample = sys.argv[1]
refText = sys.argv[2] # ['','','','']
CDS = sys.argv[3]
version = sys.argv[4]
reference_dir = sys.argv[5]
references = refText.strip(']').strip('[').replace("'",'').split(',')
from pipelineFunctions import *
os.chdir(version+... | 36.30303 | 154 | 0.664441 | 164 | 1,198 | 4.804878 | 0.384146 | 0.044416 | 0.064721 | 0.072335 | 0.209391 | 0.129442 | 0.068528 | 0 | 0 | 0 | 0 | 0.023 | 0.165275 | 1,198 | 32 | 155 | 37.4375 | 0.765 | 0.010851 | 0 | 0.258065 | 0 | 0 | 0.198769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | null | null | 0.129032 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
08bf07e8ecc799c7856e8a46f10eb8f1e9d8141d | 1,291 | py | Python | pypy/module/_cffi_backend/test/test_handle.py | Qointum/pypy | c0ed88efbc135a75a535f4534ca1f3baf0bf39d8 | [
"Apache-2.0",
"OpenSSL"
] | 34 | 2015-07-09T04:53:27.000Z | 2021-07-19T05:22:27.000Z | pypy/module/_cffi_backend/test/test_handle.py | Qointum/pypy | c0ed88efbc135a75a535f4534ca1f3baf0bf39d8 | [
"Apache-2.0",
"OpenSSL"
] | 6 | 2015-05-30T17:20:45.000Z | 2017-06-12T14:29:23.000Z | pypy/module/_cffi_backend/test/test_handle.py | Qointum/pypy | c0ed88efbc135a75a535f4534ca1f3baf0bf39d8 | [
"Apache-2.0",
"OpenSSL"
] | 11 | 2015-09-07T14:26:08.000Z | 2020-04-10T07:20:41.000Z | import random
from pypy.module._cffi_backend.handle import CffiHandles
class PseudoWeakRef(object):
_content = 42
def __call__(self):
return self._content
def test_cffi_handles_1():
ch = CffiHandles(None)
expected_content = {}
for i in range(10000):
index = ch.reserve_next_handl... | 28.688889 | 56 | 0.623548 | 162 | 1,291 | 4.783951 | 0.290123 | 0.116129 | 0.108387 | 0.103226 | 0.621935 | 0.621935 | 0.621935 | 0.621935 | 0.621935 | 0.621935 | 0 | 0.027867 | 0.277304 | 1,291 | 44 | 57 | 29.340909 | 0.802787 | 0 | 0 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.083333 | false | 0 | 0.055556 | 0.027778 | 0.222222 | 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 |
08c04975f8d43d60f40fcf4c38b0cbf9b82807a0 | 294 | py | Python | to_do_list/task/urls.py | sanjaykrishnan/to-do-list-backend | fbc322aac526afc69ba2385a4d503b2e9fd096c0 | [
"MIT"
] | null | null | null | to_do_list/task/urls.py | sanjaykrishnan/to-do-list-backend | fbc322aac526afc69ba2385a4d503b2e9fd096c0 | [
"MIT"
] | null | null | null | to_do_list/task/urls.py | sanjaykrishnan/to-do-list-backend | fbc322aac526afc69ba2385a4d503b2e9fd096c0 | [
"MIT"
] | null | null | null | from django.urls import include, path
from rest_framework import routers
from task import views
router = routers.DefaultRouter()
router.register(r'tasks', views.TaskViewSet)
urlpatterns = [
path('hello/', views.HelloView.as_view(), name='hello'),
path('', include(router.urls)),
]
| 19.6 | 60 | 0.727891 | 37 | 294 | 5.72973 | 0.621622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136054 | 294 | 14 | 61 | 21 | 0.834646 | 0 | 0 | 0 | 0 | 0 | 0.054422 | 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 |
08c0e1e9fb61d5cdd7ff08e28b66e09fe80f1696 | 47,135 | py | Python | firepy/calculation/energy.py | KBeno/firefly-lca | a081b05f5d66951792bd00d2bb6ae1f8e43235e0 | [
"MIT"
] | 3 | 2020-06-16T13:39:31.000Z | 2022-01-10T09:34:52.000Z | firepy/calculation/energy.py | KBeno/boblica | a081b05f5d66951792bd00d2bb6ae1f8e43235e0 | [
"MIT"
] | null | null | null | firepy/calculation/energy.py | KBeno/boblica | a081b05f5d66951792bd00d2bb6ae1f8e43235e0 | [
"MIT"
] | null | null | null | import shutil
import subprocess
import uuid
from json import JSONDecodeError
from typing import List, Union, Tuple
import requests
import json
import logging
import math
from pathlib import Path
from eppy.modeleditor import IDF
import esoreader
import pandas as pd
import numpy as np
from pandas import Series
from fir... | 39.311927 | 120 | 0.584364 | 5,669 | 47,135 | 4.725878 | 0.107779 | 0.008772 | 0.007615 | 0.008212 | 0.451607 | 0.378112 | 0.329738 | 0.284797 | 0.238438 | 0.219253 | 0 | 0.010637 | 0.319847 | 47,135 | 1,199 | 121 | 39.311927 | 0.825041 | 0.188077 | 0 | 0.287088 | 0 | 0 | 0.121347 | 0.00394 | 0 | 0 | 0 | 0.01251 | 0 | 1 | 0.076923 | false | 0 | 0.023352 | 0.002747 | 0.18544 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
08c0e5ab2277014434e3d58b13da14e8ff99ed65 | 6,975 | py | Python | Gathered CTF writeups/bctf_2015/zhongguancun/zhongguancun_exploit.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:00:41.000Z | 2022-03-27T06:00:41.000Z | Gathered CTF writeups/bctf_2015/zhongguancun/zhongguancun_exploit.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | null | null | null | Gathered CTF writeups/bctf_2015/zhongguancun/zhongguancun_exploit.py | mihaid-b/CyberSakura | f60e6b6bfd6898c69b84424b080090ae98f8076c | [
"MIT"
] | 1 | 2022-03-27T06:01:42.000Z | 2022-03-27T06:01:42.000Z | #!/usr/bin/env python2
# --------------------------------------------------------------------------------------------------
# BCTF 2015 - Zhongguancun (Pwn 450)
# --------------------------------------------------------------------------------------------------
import socket
import struct
import telnetlib
# ----------... | 44.426752 | 100 | 0.513835 | 783 | 6,975 | 4.528736 | 0.404853 | 0.031585 | 0.023971 | 0.007896 | 0.143542 | 0.100677 | 0.067682 | 0.046813 | 0.029329 | 0.029329 | 0 | 0.08113 | 0.284301 | 6,975 | 156 | 101 | 44.711538 | 0.629207 | 0.342939 | 0 | 0.206897 | 0 | 0 | 0.222754 | 0 | 0 | 0 | 0.032335 | 0 | 0 | 0 | null | null | 0 | 0.051724 | null | null | 0.155172 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
08d5df265eafba9133afced420cbf2b00e8a15fd | 619 | py | Python | osmtm/git_cache_buster.py | pyrog/osm-tasking-manager2 | 981fc48233b64cb1ef48421f6424e800804e5be0 | [
"BSD-2-Clause"
] | 1 | 2022-03-19T06:09:01.000Z | 2022-03-19T06:09:01.000Z | osmtm/git_cache_buster.py | pyrog/osm-tasking-manager2 | 981fc48233b64cb1ef48421f6424e800804e5be0 | [
"BSD-2-Clause"
] | null | null | null | osmtm/git_cache_buster.py | pyrog/osm-tasking-manager2 | 981fc48233b64cb1ef48421f6424e800804e5be0 | [
"BSD-2-Clause"
] | null | null | null | import os
import subprocess
from pyramid.static import PathSegmentMd5CacheBuster
class GitCacheBuster(PathSegmentMd5CacheBuster):
"""
Assuming your code is installed as a Git checkout, as opposed to as an
egg from an egg repository like PYPI, you can use this cachebuster to
get the current commit's SH... | 30.95 | 74 | 0.678514 | 82 | 619 | 5.012195 | 0.682927 | 0.024331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010593 | 0.23748 | 619 | 19 | 75 | 32.578947 | 0.860169 | 0.326333 | 0 | 0 | 0 | 0 | 0.040712 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.272727 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
08db855cd79e6db48ebe1bdf449198eef242df38 | 1,467 | py | Python | cgi/openwrt_tools.py | mirko/yaps | 22d6db372a4ff999b12ecb549557ac2e1fcb2c91 | [
"MIT"
] | 1 | 2019-04-25T08:57:27.000Z | 2019-04-25T08:57:27.000Z | cgi/openwrt_tools.py | mirko/yaps | 22d6db372a4ff999b12ecb549557ac2e1fcb2c91 | [
"MIT"
] | null | null | null | cgi/openwrt_tools.py | mirko/yaps | 22d6db372a4ff999b12ecb549557ac2e1fcb2c91 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import subprocess
from re import search as re_compile
from sys import stderr
class DHCP():
def __init__(self):
self.leases = []
def fetch(self):
#TODO: This relies on dnsmasq, while there are multiple DHCP server implementation within OpenWrt (mainly odhcpd)
self.le... | 34.928571 | 121 | 0.586912 | 186 | 1,467 | 4.55914 | 0.467742 | 0.070755 | 0.056604 | 0.066038 | 0.29717 | 0.132075 | 0.132075 | 0 | 0 | 0 | 0 | 0.005535 | 0.261077 | 1,467 | 41 | 122 | 35.780488 | 0.776753 | 0.140423 | 0 | 0.206897 | 0 | 0 | 0.122417 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.172414 | false | 0 | 0.103448 | 0 | 0.448276 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
08de3dba7ee9657b423a06c0fea72544bf6b285b | 295 | py | Python | 009 - Incomplete - Tests timing out/euler009.py | MayankAgarwal/euler_py | 4cf32879f8f7746af6ba31b87b7d4f20a0c91f3f | [
"MIT"
] | null | null | null | 009 - Incomplete - Tests timing out/euler009.py | MayankAgarwal/euler_py | 4cf32879f8f7746af6ba31b87b7d4f20a0c91f3f | [
"MIT"
] | null | null | null | 009 - Incomplete - Tests timing out/euler009.py | MayankAgarwal/euler_py | 4cf32879f8f7746af6ba31b87b7d4f20a0c91f3f | [
"MIT"
] | null | null | null | def get_py_triplets(N):
result = -1
for c in xrange(int(N/3), int(N/2)):
abc = (c*N*N - 2*c*c*N)/2
print c, abc
if abc == int(abc) and abc>result:
result = abc
return result
tests = int(raw_input())
for test in xrange(tests):
N = int(raw_input())
print get_py_triplets(N) | 13.409091 | 37 | 0.620339 | 58 | 295 | 3.051724 | 0.396552 | 0.033898 | 0.146893 | 0.158192 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021645 | 0.216949 | 295 | 22 | 38 | 13.409091 | 0.744589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08e2a6a4deee2fe43c06e42d7b5d69b749d7dfa8 | 1,085 | py | Python | app/books/migrations/0001_initial.py | kaantecik/yazlab2_p_1 | 5ff94b08bf3148de63697fec3565f9f557ff2f0f | [
"MIT"
] | null | null | null | app/books/migrations/0001_initial.py | kaantecik/yazlab2_p_1 | 5ff94b08bf3148de63697fec3565f9f557ff2f0f | [
"MIT"
] | null | null | null | app/books/migrations/0001_initial.py | kaantecik/yazlab2_p_1 | 5ff94b08bf3148de63697fec3565f9f557ff2f0f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-03-11 19:35
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 36.166667 | 120 | 0.630415 | 123 | 1,085 | 5.406504 | 0.544715 | 0.03609 | 0.042105 | 0.066165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024242 | 0.239631 | 1,085 | 29 | 121 | 37.413793 | 0.781818 | 0.041475 | 0 | 0 | 1 | 0 | 0.061657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08ea5718050228ce652a36b3daa81371c3c5308a | 546 | py | Python | buying/migrations/0005_auto_20201123_1650.py | samuel-iseli/depot-commun | e2fc8ae828fddf90779109c0882cd7f63535ac11 | [
"MIT"
] | null | null | null | buying/migrations/0005_auto_20201123_1650.py | samuel-iseli/depot-commun | e2fc8ae828fddf90779109c0882cd7f63535ac11 | [
"MIT"
] | 5 | 2021-02-12T19:59:46.000Z | 2021-02-21T23:38:26.000Z | buying/migrations/0005_auto_20201123_1650.py | samuel-iseli/depot-commun | e2fc8ae828fddf90779109c0882cd7f63535ac11 | [
"MIT"
] | 1 | 2021-02-21T16:15:34.000Z | 2021-02-21T16:15:34.000Z | # Generated by Django 3.1.3 on 2020-11-23 16:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('buying', '0004_auto_20201123_1556'),
]
operations = [
migrations.RemoveField(
model_name='item',
name='uuid',
... | 22.75 | 76 | 0.580586 | 54 | 546 | 5.740741 | 0.740741 | 0.058065 | 0.083871 | 0.109677 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087533 | 0.309524 | 546 | 23 | 77 | 23.73913 | 0.734748 | 0.082418 | 0 | 0.235294 | 1 | 0 | 0.102204 | 0.046092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08eb734cba5e3e1a713cf8876ea4db60c0506c02 | 387 | py | Python | login/login/middleware/padding.py | maosplx/L2py | 5d81b2ea150c0096cfce184706fa226950f7f583 | [
"MIT"
] | 7 | 2020-09-01T21:52:37.000Z | 2022-02-25T16:00:08.000Z | login/login/middleware/padding.py | maosplx/L2py | 5d81b2ea150c0096cfce184706fa226950f7f583 | [
"MIT"
] | 4 | 2021-09-10T22:15:09.000Z | 2022-03-25T22:17:43.000Z | login/login/middleware/padding.py | maosplx/L2py | 5d81b2ea150c0096cfce184706fa226950f7f583 | [
"MIT"
] | 9 | 2020-09-01T21:53:39.000Z | 2022-03-30T12:03:04.000Z | from common.middleware.middleware import Middleware
class PaddingMiddleware(Middleware):
@classmethod
def after(cls, session, response):
pad_length = 4
if not session.xor_key.initiated:
pad_length += 4
session.xor_key.initiated = True
pad_length += 8 - (len(resp... | 29.769231 | 63 | 0.656331 | 46 | 387 | 5.369565 | 0.521739 | 0.182186 | 0.080972 | 0.178138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0.255814 | 387 | 12 | 64 | 32.25 | 0.84375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 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 |
08f39ae5561ad23dc2755c9c4a091fc9e4273f64 | 409 | py | Python | variants/migrations/0002_variant_snpeff_func_class.py | fossabot/mendelmd | 5cafebf5336b8854fe71414b3559428e3e401617 | [
"BSD-3-Clause"
] | 33 | 2016-07-22T21:39:09.000Z | 2021-06-24T02:57:02.000Z | variants/migrations/0002_variant_snpeff_func_class.py | fossabot/mendelmd | 5cafebf5336b8854fe71414b3559428e3e401617 | [
"BSD-3-Clause"
] | 41 | 2017-06-20T03:10:33.000Z | 2021-12-24T23:54:41.000Z | variants/migrations/0002_variant_snpeff_func_class.py | fossabot/mendelmd | 5cafebf5336b8854fe71414b3559428e3e401617 | [
"BSD-3-Clause"
] | 8 | 2017-06-14T21:07:47.000Z | 2021-01-12T17:59:49.000Z | # Generated by Django 2.1.1 on 2019-03-28 18:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('variants', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='variant',
name='snpeff_func_class',
... | 21.526316 | 73 | 0.606357 | 46 | 409 | 5.282609 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064189 | 0.276284 | 409 | 18 | 74 | 22.722222 | 0.756757 | 0.110024 | 0 | 0 | 1 | 0 | 0.121547 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
08f6263c615d18e3c89492f77d94a13c452539b8 | 16,873 | py | Python | models/encoders.py | oguzserbetci/EffiCare | 4a81b6ddcff6b3b7d37dd8a6a8cd0419d742709e | [
"MIT"
] | 1 | 2020-12-27T23:01:37.000Z | 2020-12-27T23:01:37.000Z | models/encoders.py | oguzserbetci/EffiCare | 4a81b6ddcff6b3b7d37dd8a6a8cd0419d742709e | [
"MIT"
] | null | null | null | models/encoders.py | oguzserbetci/EffiCare | 4a81b6ddcff6b3b7d37dd8a6a8cd0419d742709e | [
"MIT"
] | null | null | null | import torch
import torch.nn
from models.modules import *
from utils import load_class
class EventEncoder(nn.Module):
def __init__(self, vocab, freeze_emb, emb_dim, include_time, n_bins):
super().__init__()
input_size = emb_dim
input_size += n_bins
if include_time:
inp... | 37.495556 | 230 | 0.54602 | 2,100 | 16,873 | 4.181905 | 0.080952 | 0.010704 | 0.014348 | 0.035869 | 0.716693 | 0.688909 | 0.668868 | 0.656115 | 0.653268 | 0.633569 | 0 | 0.02227 | 0.342678 | 16,873 | 449 | 231 | 37.579065 | 0.769543 | 0.131571 | 0 | 0.575342 | 0 | 0 | 0.008785 | 0.005693 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054795 | false | 0.003425 | 0.013699 | 0 | 0.123288 | 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 |
08f7f27630a67c569736950862026fe9304f729e | 2,074 | py | Python | src/racecar-controllers/deep_learning/scripts/pLidar.py | burakekincioglu/Autonomous-Car-with-ROS | 83d8d497819ffe30851ffc4d453e01c28783d7c7 | [
"Unlicense"
] | 1 | 2021-08-09T09:30:09.000Z | 2021-08-09T09:30:09.000Z | src/racecar-controllers/deep_learning/scripts/pLidar.py | burakekincioglu/Autonomous-Car-with-ROS | 83d8d497819ffe30851ffc4d453e01c28783d7c7 | [
"Unlicense"
] | null | null | null | src/racecar-controllers/deep_learning/scripts/pLidar.py | burakekincioglu/Autonomous-Car-with-ROS | 83d8d497819ffe30851ffc4d453e01c28783d7c7 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import std_msgs.msg
import time
import rospy
import message_types as mt
from message_types import message_types
from message_types import active_behavior
from sensor_msgs.msg import LaserScan
from deep_learning.msg import Burak
from ackermann_msgs.msg import ... | 22.543478 | 97 | 0.693346 | 310 | 2,074 | 4.512903 | 0.325806 | 0.06862 | 0.028592 | 0.047177 | 0.081487 | 0.081487 | 0.052895 | 0.052895 | 0.052895 | 0.052895 | 0 | 0.019655 | 0.190453 | 2,074 | 91 | 98 | 22.791209 | 0.81358 | 0.027965 | 0 | 0.084507 | 0 | 0 | 0.041335 | 0.01743 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.014085 | 0.15493 | null | null | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
3e93fb2502d5a13d3b56bfd83950354923770601 | 445 | py | Python | client/setup.py | peterk/kblab | 425d8f58dc0081aec2583ed8e8b746fd3e9b32e8 | [
"MIT"
] | 4 | 2020-09-12T21:15:16.000Z | 2021-01-28T12:25:25.000Z | client/setup.py | peterk/kblab | 425d8f58dc0081aec2583ed8e8b746fd3e9b32e8 | [
"MIT"
] | 1 | 2022-01-12T16:18:53.000Z | 2022-01-12T16:18:53.000Z | client/setup.py | peterk/kblab | 425d8f58dc0081aec2583ed8e8b746fd3e9b32e8 | [
"MIT"
] | 2 | 2020-09-12T14:10:47.000Z | 2020-09-21T11:03:11.000Z | #!/usr/bin/env python3
from distutils.core import setup
import setuptools
setup(
name='kblab-client',
version='0.0.16a0',
description='KB lab client',
author='Martin Malmsten',
author_email='martin.malmsten@kb.se',
url="https://github.com/kungbib/kblab",
install_requires = [
'reque... | 19.347826 | 43 | 0.608989 | 50 | 445 | 5.34 | 0.8 | 0.104869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017804 | 0.242697 | 445 | 22 | 44 | 20.227273 | 0.774481 | 0.047191 | 0 | 0 | 0 | 0 | 0.308057 | 0.049763 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3e96c384889bf9193c47962163c98372fe9e7728 | 401 | py | Python | DataStructure/QuickSort6.py | nmsohn/daily_algorithms | f320200fc865fb80c852b9359c3142de8b5a95c6 | [
"MIT"
] | null | null | null | DataStructure/QuickSort6.py | nmsohn/daily_algorithms | f320200fc865fb80c852b9359c3142de8b5a95c6 | [
"MIT"
] | null | null | null | DataStructure/QuickSort6.py | nmsohn/daily_algorithms | f320200fc865fb80c852b9359c3142de8b5a95c6 | [
"MIT"
] | null | null | null | def quick_sort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr)//2]
left_arr, equal_arr, right_arr = [], [], []
for num in arr:
if num < pivot:
left_arr.append(num)
else num > pivot:
right_arr.append(num)
else:
equal_arr.append(... | 26.733333 | 67 | 0.541147 | 55 | 401 | 3.727273 | 0.327273 | 0.131707 | 0.17561 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007576 | 0.341646 | 401 | 15 | 67 | 26.733333 | 0.768939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | 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 |
3ea29b69dc27d7f663c086064106b64f835c3aa3 | 419 | py | Python | backend/api/migrations/0077_salessubmission_filename.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 3 | 2020-03-25T03:06:20.000Z | 2021-01-20T23:36:03.000Z | backend/api/migrations/0077_salessubmission_filename.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 740 | 2019-12-16T15:53:39.000Z | 2022-03-26T08:25:10.000Z | backend/api/migrations/0077_salessubmission_filename.py | kuanfan99/zeva | 57b506a108fe57438506569d5503c90c52216b2f | [
"Apache-2.0"
] | 11 | 2019-11-28T20:39:15.000Z | 2022-01-31T17:53:31.000Z | # Generated by Django 3.0.3 on 2020-10-08 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0076_salessubmissionhistory'),
]
operations = [
migrations.AddField(
model_name='salessubmission',
name='file... | 22.052632 | 74 | 0.615752 | 44 | 419 | 5.795455 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071895 | 0.26969 | 419 | 18 | 75 | 23.277778 | 0.761438 | 0.107399 | 0 | 0 | 1 | 0 | 0.142473 | 0.072581 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.