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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c82438eed3c642f946ceb3c98d1b42bba1aefdc1
| 120
|
py
|
Python
|
rpiRobot/src/application/domain/iCerebrum.py
|
olgam4/design3
|
6e05d123a24deae7dda646df535844a158ef5cc0
|
[
"WTFPL"
] | null | null | null |
rpiRobot/src/application/domain/iCerebrum.py
|
olgam4/design3
|
6e05d123a24deae7dda646df535844a158ef5cc0
|
[
"WTFPL"
] | null | null | null |
rpiRobot/src/application/domain/iCerebrum.py
|
olgam4/design3
|
6e05d123a24deae7dda646df535844a158ef5cc0
|
[
"WTFPL"
] | null | null | null |
from abc import ABC, abstractmethod
class ICerebrum(ABC):
@abstractmethod
def run(self) -> None:
pass
| 15
| 35
| 0.658333
| 14
| 120
| 5.642857
| 0.785714
| 0.43038
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.258333
| 120
| 7
| 36
| 17.142857
| 0.88764
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.2
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
c835ac429c379f8bd2464dea93191138f51a6988
| 5,725
|
py
|
Python
|
eland/tests/field_mappings/test_metric_source_fields_pytest.py
|
mesejo/eland
|
d1444f8e094ef11ce4fa6713a521245b68a842d7
|
[
"Apache-2.0"
] | null | null | null |
eland/tests/field_mappings/test_metric_source_fields_pytest.py
|
mesejo/eland
|
d1444f8e094ef11ce4fa6713a521245b68a842d7
|
[
"Apache-2.0"
] | 1
|
2020-05-06T01:34:25.000Z
|
2020-05-06T01:34:25.000Z
|
eland/tests/field_mappings/test_metric_source_fields_pytest.py
|
mesejo/eland
|
d1444f8e094ef11ce4fa6713a521245b68a842d7
|
[
"Apache-2.0"
] | 1
|
2020-05-06T01:31:18.000Z
|
2020-05-06T01:31:18.000Z
|
# Licensed to Elasticsearch B.V under one or more agreements.
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information
# File called _pytest for PyCharm compatability
import numpy as np
from eland.field_mappings import FieldMappings
from eland.tests import ES_TEST_CLIENT, ECOMMERCE_INDEX_NAME, FLIGHTS_INDEX_NAME
from eland.tests.common import TestData
class TestMetricSourceFields(TestData):
def test_flights_all_metric_source_fields(self):
ed_field_mappings = FieldMappings(
client=ES_TEST_CLIENT, index_pattern=FLIGHTS_INDEX_NAME
)
pd_flights = self.pd_flights()
ed_dtypes, ed_fields, es_date_formats = ed_field_mappings.metric_source_fields()
pd_metric = pd_flights.select_dtypes(include=np.number)
assert pd_metric.dtypes.to_list() == ed_dtypes
assert pd_metric.columns.to_list() == ed_fields
assert len(es_date_formats) == len(ed_dtypes)
assert set(es_date_formats) == {None}
def test_flights_all_metric_source_fields_and_bool(self):
ed_field_mappings = FieldMappings(
client=ES_TEST_CLIENT, index_pattern=FLIGHTS_INDEX_NAME
)
pd_flights = self.pd_flights()
ed_dtypes, ed_fields, es_date_formats = ed_field_mappings.metric_source_fields(
include_bool=True
)
pd_metric = pd_flights.select_dtypes(include=[np.number, "bool"])
assert pd_metric.dtypes.to_list() == ed_dtypes
assert pd_metric.columns.to_list() == ed_fields
assert len(es_date_formats) == len(ed_dtypes)
assert set(es_date_formats) == {None}
def test_flights_all_metric_source_fields_bool_and_timestamp(self):
ed_field_mappings = FieldMappings(
client=ES_TEST_CLIENT, index_pattern=FLIGHTS_INDEX_NAME
)
pd_flights = self.pd_flights()
ed_dtypes, ed_fields, es_date_formats = ed_field_mappings.metric_source_fields(
include_bool=True, include_timestamp=True
)
pd_metric = pd_flights.select_dtypes(include=[np.number, "bool", "datetime"])
assert pd_metric.dtypes.to_list() == ed_dtypes
assert pd_metric.columns.to_list() == ed_fields
assert len(es_date_formats) == len(ed_dtypes)
assert set(es_date_formats) == set(
{"strict_date_hour_minute_second", None}
) # TODO - test position of date_format
def test_ecommerce_selected_non_metric_source_fields(self):
field_names = [
"category",
"currency",
"customer_birth_date",
"customer_first_name",
"user",
]
"""
Note: non of there are metric
category object
currency object
customer_birth_date datetime64[ns]
customer_first_name object
user object
"""
ed_field_mappings = FieldMappings(
client=ES_TEST_CLIENT,
index_pattern=ECOMMERCE_INDEX_NAME,
display_names=field_names,
)
pd_ecommerce = self.pd_ecommerce()[field_names]
ed_dtypes, ed_fields, es_date_formats = ed_field_mappings.metric_source_fields()
pd_metric = pd_ecommerce.select_dtypes(include=np.number)
assert pd_metric.dtypes.to_list() == ed_dtypes
assert pd_metric.columns.to_list() == ed_fields
assert len(es_date_formats) == len(ed_dtypes)
assert set(es_date_formats) == set()
def test_ecommerce_selected_mixed_metric_source_fields(self):
field_names = [
"category",
"currency",
"customer_birth_date",
"customer_first_name",
"total_quantity",
"user",
]
"""
Note: one is metric
category object
currency object
customer_birth_date datetime64[ns]
customer_first_name object
total_quantity int64
user object
"""
ed_field_mappings = FieldMappings(
client=ES_TEST_CLIENT,
index_pattern=ECOMMERCE_INDEX_NAME,
display_names=field_names,
)
pd_ecommerce = self.pd_ecommerce()[field_names]
ed_dtypes, ed_fields, es_date_formats = ed_field_mappings.metric_source_fields()
pd_metric = pd_ecommerce.select_dtypes(include=np.number)
assert len(es_date_formats) == len(ed_dtypes)
assert set(es_date_formats) == {None}
assert pd_metric.dtypes.to_list() == ed_dtypes
assert pd_metric.columns.to_list() == ed_fields
def test_ecommerce_selected_all_metric_source_fields(self):
field_names = ["total_quantity", "taxful_total_price", "taxless_total_price"]
"""
Note: all are metric
total_quantity int64
taxful_total_price float64
taxless_total_price float64
"""
ed_field_mappings = FieldMappings(
client=ES_TEST_CLIENT,
index_pattern=ECOMMERCE_INDEX_NAME,
display_names=field_names,
)
pd_ecommerce = self.pd_ecommerce()[field_names]
ed_dtypes, ed_fields, es_date_formats = ed_field_mappings.metric_source_fields()
pd_metric = pd_ecommerce.select_dtypes(include=np.number)
assert pd_metric.dtypes.to_list() == ed_dtypes
assert pd_metric.columns.to_list() == ed_fields
assert len(es_date_formats) == len(ed_dtypes)
assert set(es_date_formats) == {None}
| 38.422819
| 88
| 0.64524
| 683
| 5,725
| 4.998536
| 0.15959
| 0.042179
| 0.068541
| 0.049209
| 0.77563
| 0.774751
| 0.765378
| 0.755126
| 0.755126
| 0.753076
| 0
| 0.003398
| 0.280349
| 5,725
| 148
| 89
| 38.682432
| 0.825243
| 0.048384
| 0
| 0.676768
| 0
| 0
| 0.048504
| 0.00641
| 0
| 0
| 0
| 0.006757
| 0.242424
| 1
| 0.060606
| false
| 0
| 0.040404
| 0
| 0.111111
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
c070c8e59a87926316058bb0f90ac062b071f16f
| 37
|
py
|
Python
|
timeedit_cli/modules/parseSchedule.py
|
kjutbring/timeedit-cli
|
0c4539eafc2b241e4ad162a425d4093429d11f1e
|
[
"MIT"
] | null | null | null |
timeedit_cli/modules/parseSchedule.py
|
kjutbring/timeedit-cli
|
0c4539eafc2b241e4ad162a425d4093429d11f1e
|
[
"MIT"
] | null | null | null |
timeedit_cli/modules/parseSchedule.py
|
kjutbring/timeedit-cli
|
0c4539eafc2b241e4ad162a425d4093429d11f1e
|
[
"MIT"
] | null | null | null |
from . import getDataId
import json
| 9.25
| 23
| 0.783784
| 5
| 37
| 5.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.189189
| 37
| 3
| 24
| 12.333333
| 0.966667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
c0bc9e639c02f3567114e6d20d179793ffba0787
| 80
|
py
|
Python
|
upoutdf/occurences/__init__.py
|
UpOut/UpOutDF
|
5d2f87884565d98b77e25c6a26af7dbea266be76
|
[
"MIT"
] | null | null | null |
upoutdf/occurences/__init__.py
|
UpOut/UpOutDF
|
5d2f87884565d98b77e25c6a26af7dbea266be76
|
[
"MIT"
] | null | null | null |
upoutdf/occurences/__init__.py
|
UpOut/UpOutDF
|
5d2f87884565d98b77e25c6a26af7dbea266be76
|
[
"MIT"
] | null | null | null |
# coding: utf-8
from .block import *
from .group import *
from .single import *
| 16
| 21
| 0.7
| 12
| 80
| 4.666667
| 0.666667
| 0.357143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015385
| 0.1875
| 80
| 5
| 21
| 16
| 0.846154
| 0.1625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
238a099a4668686b40693282710452f2ba307d63
| 5,062
|
py
|
Python
|
gets.py
|
otronomo/netmiko_based
|
cef803a83de475bcc95403f5caaa73937095a92f
|
[
"Apache-2.0"
] | null | null | null |
gets.py
|
otronomo/netmiko_based
|
cef803a83de475bcc95403f5caaa73937095a92f
|
[
"Apache-2.0"
] | null | null | null |
gets.py
|
otronomo/netmiko_based
|
cef803a83de475bcc95403f5caaa73937095a92f
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python3
# By NOMO
from netmiko import Netmiko
from getpass import getpass
from pprint import pprint
import re
import sys
'''
All of this functions take at least the host_dict parameter.
This is expected to be a dict just like this:
host1 = {
'host': '10.20.20.100',
'username': 'cisco',
'password': 'cisco',
'device_type': 'cisco_ios',
}
'''
# Retruns formatted ARP table. Takes VRF="" as arg:
# LIST of DICTS
def get_arp_ios(host_dict, vrf=""):
hostname = host_dict['host']
#print("Trying connection to " + hostname)
try:
# Establish connection
connection = Netmiko(**host_dict)
except:
print("get_arp_ios - Could not establish ssh connection to host" + hostname)
return -1
# Run command with textfsm - this should return structured data
#print("Running command")
if vrf == "":
output = connection.send_command("sh ip arp", use_textfsm = True)
else:
output = connection.send_command("sh ip arp vrf " + vrf, use_textfsm = True)
# Return structured data
#print("Returning output")
return output
# Retruns formatted sh ip int brie table:
# LIST of DICTS
def get_ip_int_bri_ios(host_dict):
hostname = host_dict['host']
#print("Trying connection to " + hostname)
try:
# Establish connection
connection = Netmiko(**host_dict)
except:
print("get_ip_int_bri_ios - Could not establish ssh connection to host" + hostname)
return -1
# Run command with textfsm - this should return structured data
#print("Running command")
output = connection.send_command("sh ip int brie", use_textfsm = True)
# Return structured data
#print("Returning output")
return output
# Returns formatted sh int description
# LIST of DICTS
# !ATENTION! - Uses TEXTFSM template not builtin. To use this you must download the template to
# your template repo and add it to the ntc-templates index file.
def get_int_desc_ios(host_dict):
hostname = host_dict['host']
#print("Trying connection to " + hostname)
try:
# Establish connection
connection = Netmiko(**host_dict)
except:
print("get_int_desc_ios - Could not establish ssh connection to host" + hostname)
return -1
# Run command with textfsm - this should return structured data
print("Running command")
output = connection.send_command("sh int desc", use_textfsm = True)
# Return structured data
#print("Returning output")
return output
# Returns formatted sh cdp neig description
# LIST of DICTS
def get_cdp_neig_ios(host_dict):
hostname = host_dict['host']
#print("Trying connection to " + hostname)
try:
# Establish connection
connection = Netmiko(**host_dict)
except:
print("get_cdp_neig_ios - Could not establish ssh connection to host" + hostname)
return -1
# Run command with textfsm - this should return structured data
#print("Running command")
output = connection.send_command("sh cdp neig", use_textfsm = True)
# Return structured data
#print("Returning output")
return output
# Returns formatted sh ver
# LIST of 1 DICT element
def get_ver_ios(host_dict):
hostname = host_dict['host']
#print("Trying connection to " + hostname)
try:
# Establish connection
connection = Netmiko(**host_dict)
except:
print("get_sh_ver_ios - Could not establish ssh connection to host" + hostname)
return -1
# Run command with textfsm - this should return structured data
#print("Running command")
output = connection.send_command("sh ver", use_textfsm = True)
# Return structured data
#print("Returning output")
return output
# Returns formatted sh ver
# LIST of DICTs
def get_mac_address_table(host_dict):
hostname = host_dict['host']
#print("Trying connection to " + hostname)
try:
# Establish connection
connection = Netmiko(**host_dict)
except:
print("get_mac_address_table - Could not establish ssh connection to host" + hostname)
return -1
# Run command with textfsm - this should return structured data
#print("Running command")
output = connection.send_command("sh mac addr", use_textfsm = True)
# Return structured data
#print("Returning output")
return output
# Takes host and MAC as arguments
# Returns formated list of single Dict for the CAM entry for the MAC
def get_one_mac_address(host_dict, mac_addr):
hostname = host_dict['host']
#print("Trying connection to " + hostname)
try:
# Establish connection
connection = Netmiko(**host_dict)
except:
print("get_one_mac_address - Could not establish ssh connection to host" + hostname)
return -1
# Run command with textfsm - this should return structured data
#print("Running command")
output = connection.send_command("sh mac addr add %s" %(mac_addr), use_textfsm = True)
# Return structured data
#print("Returning output")
return output
| 31.836478
| 95
| 0.683129
| 660
| 5,062
| 5.113636
| 0.178788
| 0.052148
| 0.082963
| 0.103704
| 0.768296
| 0.745185
| 0.744593
| 0.724444
| 0.724444
| 0.724444
| 0
| 0.004868
| 0.228961
| 5,062
| 158
| 96
| 32.037975
| 0.859851
| 0.384828
| 0
| 0.583333
| 0
| 0
| 0.201278
| 0.007455
| 0
| 0
| 0
| 0
| 0
| 1
| 0.097222
| false
| 0.013889
| 0.069444
| 0
| 0.361111
| 0.125
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
23f0e5467d801a3b747b3613a26ab0bc759937c9
| 22
|
py
|
Python
|
oo/pessoa.py
|
jonathan-costa-ferreira/pythonbirds
|
30be29d39521c29c528b4d86f4ee8d90233cfa2e
|
[
"MIT"
] | null | null | null |
oo/pessoa.py
|
jonathan-costa-ferreira/pythonbirds
|
30be29d39521c29c528b4d86f4ee8d90233cfa2e
|
[
"MIT"
] | null | null | null |
oo/pessoa.py
|
jonathan-costa-ferreira/pythonbirds
|
30be29d39521c29c528b4d86f4ee8d90233cfa2e
|
[
"MIT"
] | null | null | null |
class PESSOA:
pass
| 11
| 13
| 0.681818
| 3
| 22
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.272727
| 22
| 2
| 14
| 11
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.5
| 0
| 0
| 0.5
| 0
| 1
| 1
| 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
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
f1eee28b1ad8207c77233b58aa7911841bff4a82
| 397
|
py
|
Python
|
manage.py
|
cangir/theme-catalog
|
57551fe5fcdfcdc6d482a02d673e5f95d5fa4932
|
[
"MIT"
] | 2
|
2019-07-10T19:43:56.000Z
|
2019-07-17T18:33:07.000Z
|
manage.py
|
msleibi/theme-catalog
|
833263b8ae825b5fa89f82c8a5e7eac2ac6631e8
|
[
"MIT"
] | null | null | null |
manage.py
|
msleibi/theme-catalog
|
833263b8ae825b5fa89f82c8a5e7eac2ac6631e8
|
[
"MIT"
] | 1
|
2019-07-17T17:51:34.000Z
|
2019-07-17T17:51:34.000Z
|
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Theme Catalog
#
# author: Ahmet Cangir
# github: https://github.com/cangir
# license: https://github.com/cangir/theme-catalog/blob/master/LICENSE
from app import manager
# Import Controllers
from app.controllers import auth
from app.controllers import main
from app.controllers import api
# Run manager
if __name__ == "__main__":
manager.run()
| 19.85
| 70
| 0.735516
| 54
| 397
| 5.259259
| 0.518519
| 0.098592
| 0.190141
| 0.253521
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005848
| 0.138539
| 397
| 19
| 71
| 20.894737
| 0.824561
| 0.523929
| 0
| 0
| 0
| 0
| 0.044444
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f1f4ab5827824f7cd9774a080f043f28182a59b0
| 7,149
|
py
|
Python
|
tests/main/test_routes.py
|
KevinDryfuse/christmas-tree-stand-monitor-service
|
241846587f7e2b35548e2876221ccbec2b41c9dc
|
[
"MIT"
] | null | null | null |
tests/main/test_routes.py
|
KevinDryfuse/christmas-tree-stand-monitor-service
|
241846587f7e2b35548e2876221ccbec2b41c9dc
|
[
"MIT"
] | null | null | null |
tests/main/test_routes.py
|
KevinDryfuse/christmas-tree-stand-monitor-service
|
241846587f7e2b35548e2876221ccbec2b41c9dc
|
[
"MIT"
] | null | null | null |
import json
from datetime import datetime, timedelta
from flask_web import db
from flask_web.enums.Status import Status
from flask_web.models import Stand, StatusHistory
def test_home_page(test_client, init_database):
"""
GIVEN a user visits the home page
WHEN the '/' page is requested (GET)
THEN check that the response is valid and contains an expected stand record
"""
# Insert stand information
current_date = datetime.now()
stand = Stand(name="This is my stand name!", current_date=current_date)
db.session.add(stand)
db.session.commit()
# validate stand information is in the response
response = test_client.get('/')
assert response.status_code == 200
assert str.encode("This is my stand name! - low - {}".format(current_date)) in response.data
def test_post_status_using_valid_status_type_status_is_changed(test_client, init_database):
"""
GIVEN a user attempts to update a stand's status
WHEN a POST is made with a valid status code to the status endpoint '/stand/<string:external_id>/status'
THEN check that the response is valid and the database has been updated correctly
"""
# Insert stand information
current_date = datetime.now()
stand = Stand(name="This is the stand we are changing!", current_date=current_date)
db.session.add(stand)
stand2 = Stand(name="This is the stand we are NOT changing!", current_date=current_date)
db.session.add(stand2)
db.session.commit()
url = "/stand/{}/status".format(stand.external_id)
# validate stand information is in the response
response = test_client.post(url, data=json.dumps({'status': 'acceptable'}), headers={'Content-Type': 'application/json'})
assert response.status_code == 200
stand_after_changes = db.session.query(Stand).filter(Stand.external_id == stand.external_id).one()
stand2_after_changes = db.session.query(Stand).filter(Stand.external_id == stand2.external_id).one()
assert stand_after_changes.status == Status.acceptable.value
assert stand_after_changes.status_date != current_date
assert len(stand_after_changes.history) == 1
assert stand_after_changes.history[0].status == Status.acceptable.value
assert stand2_after_changes.status == Status.low.value
assert stand2_after_changes.status_date == current_date
assert len(stand2_after_changes.history) == 0
def test_post_status_using_invalid_status_type_status_is_not_changed(test_client, init_database):
"""
GIVEN a user attempts to update a stand's status
WHEN a POST is made with an invalid valid status code to the status enpoint '/stand/<string:external_id>/status'
THEN check that the response is 422 and the database has not been updated
"""
# Insert stand information
current_date = datetime.now()
stand = Stand(name="This is the stand we are changing!", current_date=current_date)
db.session.add(stand)
stand2 = Stand(name="This is the stand we are NOT changing!", current_date=current_date)
db.session.add(stand2)
db.session.commit()
url = "/stand/{}/status".format(stand.external_id)
# validate stand information is in the response
response = test_client.post(url, data=json.dumps({'status': 'SOMETHING STRANGE'}), headers={'Content-Type': 'application/json'})
assert response.status_code == 422
stand_after_changes = db.session.query(Stand).filter(Stand.external_id == stand.external_id).one()
assert stand_after_changes.status == Status.low.value
assert stand_after_changes.status_date == current_date
assert len(stand_after_changes.history) == 0
def test_get_status_using_valid_id_status_is_returned(test_client, init_database):
"""
GIVEN a user visits the status endpoint
WHEN the '/stand/<string:external_id>/status' endpoint is requested (GET) with an valid external id
THEN check that the response is valid and contains the expected status
"""
# Insert stand information
current_date = datetime.now()
stand = Stand(name="This is the stand we are viewing!", current_date=current_date)
stand.status = Status.full.value
db.session.add(stand)
db.session.commit()
url = "/stand/{}/status".format(stand.external_id)
# validate stand information is in the response
response = test_client.get(url, headers={'Content-Type': 'application/json'})
assert response.status_code == 200
assert json.loads(response.data) == stand.status
def test_get_status_using_invalid_id_404_is_returned(test_client, init_database):
"""
GIVEN a user visits the status endpoint
WHEN the '/stand/<string:external_id>/status' endpoint is requested (GET) with an invalid external id
THEN check that the response is 404
"""
url = "/stand/{}/status".format("somerandominvalidvalue")
# validate a 404 is returned
response = test_client.get(url, headers={'Content-Type': 'application/json'})
assert response.status_code == 404
def test_get_stand_using_valid_id_stand_is_returned(test_client, init_database):
"""
GIVEN a user visits the stand endpoint
WHEN the '/stand/<string:external_id>' endpoint is requested (GET) with an valid external id
THEN check that the response is valid and contains the expected stand information
"""
# Insert stand information
current_date = datetime.now()
stand = Stand(name="This is the stand we are viewing!", current_date=current_date)
stand.status = Status.full.value
stand.add_history(status=Status.low.value, status_date=current_date - timedelta(days=1))
stand.add_history(status=Status.acceptable.value, status_date=current_date - timedelta(days=2))
db.session.add(stand)
db.session.commit()
url = "/stand/{}".format(stand.external_id)
# validate stand information is in the response
response = test_client.get(url, headers={'Content-Type': 'application/json'})
assert response.status_code == 200
response_dict = json.loads(response.data)
assert len(response_dict['history']) == 2
assert response_dict['status'] == Status.full.value
assert response_dict['name'] == "This is the stand we are viewing!"
assert response_dict['status_date'] == current_date.strftime("%Y-%m-%d %H:%M:%S")
assert response_dict['history'][0]['status'] == Status.low.value
assert response_dict['history'][0]['status_date'] == (current_date - timedelta(days=1)).strftime("%Y-%m-%d %H:%M:%S")
assert response_dict['history'][1]['status'] == Status.acceptable.value
assert response_dict['history'][1]['status_date'] == (current_date - timedelta(days=2)).strftime("%Y-%m-%d %H:%M:%S")
def test_get_stand_using_invalid_id_404_is_returned(test_client, init_database):
"""
GIVEN a user visits the stand endpoint
WHEN the '/stand/<string:external_id>' endpoint is requested (GET) with an invalid external id
THEN check that the response is 404
"""
url = "/stand/{}".format("somerandominvalidvalue")
# validate a 404 is returned
response = test_client.get(url, headers={'Content-Type': 'application/json'})
assert response.status_code == 404
| 45.246835
| 132
| 0.727934
| 1,014
| 7,149
| 4.961538
| 0.116371
| 0.06122
| 0.044723
| 0.033393
| 0.859273
| 0.804413
| 0.761678
| 0.717949
| 0.694295
| 0.63864
| 0
| 0.01069
| 0.16254
| 7,149
| 157
| 133
| 45.535032
| 0.829631
| 0.251923
| 0
| 0.47619
| 0
| 0
| 0.149372
| 0.008502
| 0
| 0
| 0
| 0
| 0.321429
| 1
| 0.083333
| false
| 0
| 0.059524
| 0
| 0.142857
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
7b184bcc4753d7cb9b55e6247753d1091e67963f
| 98
|
py
|
Python
|
Algoprog/Level_1/Strings/D.py
|
Xrenya/algorithms
|
aded82cacde2f4f2114241907861251e0e2e5638
|
[
"MIT"
] | 1
|
2021-11-28T15:03:32.000Z
|
2021-11-28T15:03:32.000Z
|
Algoprog/Level_1/Strings/D.py
|
Xrenya/algorithms
|
aded82cacde2f4f2114241907861251e0e2e5638
|
[
"MIT"
] | null | null | null |
Algoprog/Level_1/Strings/D.py
|
Xrenya/algorithms
|
aded82cacde2f4f2114241907861251e0e2e5638
|
[
"MIT"
] | null | null | null |
string = input()
def lenght(string):
return len([x for x in string.split()])
lenght(string)
| 14
| 43
| 0.663265
| 15
| 98
| 4.333333
| 0.666667
| 0.369231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.183673
| 98
| 6
| 44
| 16.333333
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
7b210466ced07f4be24684e2580d1e38857605ab
| 54
|
py
|
Python
|
automatminer/preprocessing/__init__.py
|
sgbaird/automatminer
|
9a3996e37672b547f10645b53b816ee670940d56
|
[
"BSD-3-Clause-LBNL"
] | 92
|
2018-11-28T17:36:42.000Z
|
2022-03-26T07:45:22.000Z
|
automatminer/preprocessing/__init__.py
|
sgbaird/automatminer
|
9a3996e37672b547f10645b53b816ee670940d56
|
[
"BSD-3-Clause-LBNL"
] | 249
|
2018-11-30T22:09:15.000Z
|
2022-01-06T22:25:12.000Z
|
automatminer/preprocessing/__init__.py
|
sgbaird/automatminer
|
9a3996e37672b547f10645b53b816ee670940d56
|
[
"BSD-3-Clause-LBNL"
] | 41
|
2018-11-21T22:33:52.000Z
|
2022-03-03T02:24:32.000Z
|
from .core import DataCleaner, FeatureReducer # noqa
| 27
| 53
| 0.796296
| 6
| 54
| 7.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.148148
| 54
| 1
| 54
| 54
| 0.934783
| 0.074074
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7b28543d44ea35e52fa2044e024a7bc4982f343b
| 83
|
py
|
Python
|
settings.py
|
minhht-0134/redmine_sample
|
187364109ba245e035b304356e156a1b82ec43ad
|
[
"MIT"
] | null | null | null |
settings.py
|
minhht-0134/redmine_sample
|
187364109ba245e035b304356e156a1b82ec43ad
|
[
"MIT"
] | null | null | null |
settings.py
|
minhht-0134/redmine_sample
|
187364109ba245e035b304356e156a1b82ec43ad
|
[
"MIT"
] | null | null | null |
connection = 'mysql+mysqlconnector://root:12345678@127.0.0.1:3306/redmine_sample'
| 27.666667
| 81
| 0.783133
| 12
| 83
| 5.333333
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.227848
| 0.048193
| 83
| 2
| 82
| 41.5
| 0.582278
| 0
| 0
| 0
| 0
| 0
| 0.804878
| 0.804878
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
9e464054ea9bb89cddc490502adc2d307563a7bf
| 819
|
py
|
Python
|
test/test_entity_tag.py
|
graphsense/graphsense-python
|
c0dafc97a04bc3dbf0caf08a981bb591bd1e430a
|
[
"MIT"
] | 9
|
2020-11-26T12:26:36.000Z
|
2022-02-07T22:08:16.000Z
|
test/test_entity_tag.py
|
graphsense/graphsense-python
|
c0dafc97a04bc3dbf0caf08a981bb591bd1e430a
|
[
"MIT"
] | 14
|
2020-11-17T13:28:08.000Z
|
2022-01-24T09:21:43.000Z
|
test/test_entity_tag.py
|
graphsense/graphsense-python
|
c0dafc97a04bc3dbf0caf08a981bb591bd1e430a
|
[
"MIT"
] | 3
|
2022-02-03T09:24:27.000Z
|
2022-02-16T10:13:55.000Z
|
"""
GraphSense API
GraphSense API # noqa: E501
The version of the OpenAPI document: 0.4.5
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import graphsense
from graphsense.model.entity_tag_all_of import EntityTagAllOf
from graphsense.model.tag import Tag
globals()['EntityTagAllOf'] = EntityTagAllOf
globals()['Tag'] = Tag
from graphsense.model.entity_tag import EntityTag
class TestEntityTag(unittest.TestCase):
"""EntityTag unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testEntityTag(self):
"""Test EntityTag"""
# FIXME: construct object with mandatory attributes with example values
# model = EntityTag() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| 20.475
| 79
| 0.684982
| 95
| 819
| 5.778947
| 0.526316
| 0.076503
| 0.103825
| 0.091075
| 0.102004
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014085
| 0.21978
| 819
| 39
| 80
| 21
| 0.84507
| 0.339438
| 0
| 0.176471
| 1
| 0
| 0.049505
| 0
| 0
| 0
| 0
| 0.025641
| 0
| 1
| 0.176471
| false
| 0.176471
| 0.352941
| 0
| 0.588235
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
9ebfa7405763db3db8df5d6fa7cd1cb315d7f9d5
| 50
|
py
|
Python
|
skanalytics/engineering/preprocessing/__init__.py
|
jimmyskull/skanalytics
|
1027bf3648b65b96a69bbf2d42e591cc9f76fe76
|
[
"MIT"
] | null | null | null |
skanalytics/engineering/preprocessing/__init__.py
|
jimmyskull/skanalytics
|
1027bf3648b65b96a69bbf2d42e591cc9f76fe76
|
[
"MIT"
] | null | null | null |
skanalytics/engineering/preprocessing/__init__.py
|
jimmyskull/skanalytics
|
1027bf3648b65b96a69bbf2d42e591cc9f76fe76
|
[
"MIT"
] | null | null | null |
from .nanscale import nanscale, StandardNANScaler
| 25
| 49
| 0.86
| 5
| 50
| 8.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 50
| 1
| 50
| 50
| 0.955556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7b3787ea37fa61bb8e0a9bac70dbe49c765a7082
| 169
|
py
|
Python
|
practice/booktest/admin.py
|
jietui/django_project
|
94a3a506abdfb6e5d1ccc41347914fc2ba147da2
|
[
"MIT"
] | null | null | null |
practice/booktest/admin.py
|
jietui/django_project
|
94a3a506abdfb6e5d1ccc41347914fc2ba147da2
|
[
"MIT"
] | null | null | null |
practice/booktest/admin.py
|
jietui/django_project
|
94a3a506abdfb6e5d1ccc41347914fc2ba147da2
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from booktest.models import BookInfo, HeroInfo
# Register your models here.
admin.site.register(BookInfo)
admin.site.register(HeroInfo)
| 28.166667
| 46
| 0.828402
| 23
| 169
| 6.086957
| 0.565217
| 0.128571
| 0.242857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.094675
| 169
| 6
| 47
| 28.166667
| 0.915033
| 0.153846
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
7b3b74ed259b28ca661817d1677fdae7a550fcd8
| 235
|
py
|
Python
|
baikal/__init__.py
|
ragrawal/baikal
|
a342e148a17460ed6694fb2cf7b3e2a446f609e6
|
[
"BSD-3-Clause"
] | 622
|
2019-11-17T02:58:25.000Z
|
2022-01-23T11:14:31.000Z
|
baikal/__init__.py
|
ragrawal/baikal
|
a342e148a17460ed6694fb2cf7b3e2a446f609e6
|
[
"BSD-3-Clause"
] | 41
|
2019-10-30T14:08:53.000Z
|
2021-10-21T18:41:15.000Z
|
baikal/__init__.py
|
ragrawal/baikal
|
a342e148a17460ed6694fb2cf7b3e2a446f609e6
|
[
"BSD-3-Clause"
] | 31
|
2019-11-18T00:25:03.000Z
|
2021-07-28T04:05:26.000Z
|
from baikal._version import __version__
# Make the most relevant classes importable from root
from baikal._core.model import Model
from baikal.steps import Step, Input, make_step
from baikal._core.config import get_config, set_config
| 33.571429
| 54
| 0.834043
| 36
| 235
| 5.166667
| 0.527778
| 0.215054
| 0.150538
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123404
| 235
| 6
| 55
| 39.166667
| 0.902913
| 0.217021
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7b3bc8ecec6fa97c1d253c625118f17d7b961069
| 428
|
py
|
Python
|
tests/notifiers/growl_test.py
|
expobrain/python-unotifier
|
7e95885c376e0ca570c36bf432ebcb6be0226d9c
|
[
"MIT"
] | null | null | null |
tests/notifiers/growl_test.py
|
expobrain/python-unotifier
|
7e95885c376e0ca570c36bf432ebcb6be0226d9c
|
[
"MIT"
] | null | null | null |
tests/notifiers/growl_test.py
|
expobrain/python-unotifier
|
7e95885c376e0ca570c36bf432ebcb6be0226d9c
|
[
"MIT"
] | null | null | null |
from __future__ import unicode_literals
import unittest
from unotifier.notifiers import GrowlNotifier
from . import NotifierTestsMixin
class GrowlNotifierTests(NotifierTestsMixin, unittest.TestCase):
notifier_klass = GrowlNotifier
def setUp(self):
super(GrowlNotifierTests, self).setUp()
def tearDown(self):
super(GrowlNotifierTests, self).tearDown()
def test_notify(self):
pass
| 19.454545
| 64
| 0.745327
| 42
| 428
| 7.428571
| 0.547619
| 0.057692
| 0.173077
| 0.198718
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186916
| 428
| 21
| 65
| 20.380952
| 0.896552
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.083333
| 0.333333
| 0
| 0.75
| 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
| 1
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 5
|
7b6b47fef5d815c20332a36f7451ca77f1783a89
| 43
|
py
|
Python
|
sockpuppet/test_utils/__init__.py
|
DamnedScholar/django-sockpuppet
|
52d96ce491f2c4fb3914cdf30a1b3108f8457941
|
[
"MIT"
] | null | null | null |
sockpuppet/test_utils/__init__.py
|
DamnedScholar/django-sockpuppet
|
52d96ce491f2c4fb3914cdf30a1b3108f8457941
|
[
"MIT"
] | null | null | null |
sockpuppet/test_utils/__init__.py
|
DamnedScholar/django-sockpuppet
|
52d96ce491f2c4fb3914cdf30a1b3108f8457941
|
[
"MIT"
] | null | null | null |
from .factory import reflex_factory # noqa
| 21.5
| 42
| 0.813953
| 6
| 43
| 5.666667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.139535
| 43
| 1
| 43
| 43
| 0.918919
| 0.093023
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
7b990b96e4a766f1f2237203227a8857487b74f1
| 141
|
py
|
Python
|
leaf/weixin/apis/__init__.py
|
guiqiqi/leaf
|
79e34f4b8fba8c6fd208b5a3049103dca2064ab5
|
[
"Apache-2.0"
] | 119
|
2020-01-30T04:25:03.000Z
|
2022-03-27T07:15:45.000Z
|
leaf/weixin/apis/__init__.py
|
guiqiqi/leaf
|
79e34f4b8fba8c6fd208b5a3049103dca2064ab5
|
[
"Apache-2.0"
] | 8
|
2020-02-02T05:49:47.000Z
|
2021-01-25T03:31:09.000Z
|
leaf/weixin/apis/__init__.py
|
guiqiqi/leaf
|
79e34f4b8fba8c6fd208b5a3049103dca2064ab5
|
[
"Apache-2.0"
] | 11
|
2020-01-31T15:07:11.000Z
|
2021-03-24T03:47:48.000Z
|
"""
微信公众平台API接口实现:
template - 模板消息
user - 用户相关
"""
from .user import User as user
from .template import TemplateMessage as template
| 15.666667
| 49
| 0.70922
| 17
| 141
| 5.882353
| 0.529412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.212766
| 141
| 8
| 50
| 17.625
| 0.900901
| 0.35461
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
7bc20045f01bc0ef169ad25c0186bfa3a9afc244
| 34
|
py
|
Python
|
modbus/__init__.py
|
nbyoung/nuPy
|
2bbd08955f829e4e002a40b7fd768fa61246c996
|
[
"MIT"
] | null | null | null |
modbus/__init__.py
|
nbyoung/nuPy
|
2bbd08955f829e4e002a40b7fd768fa61246c996
|
[
"MIT"
] | null | null | null |
modbus/__init__.py
|
nbyoung/nuPy
|
2bbd08955f829e4e002a40b7fd768fa61246c996
|
[
"MIT"
] | null | null | null |
class CRCError(ValueError): pass
| 11.333333
| 32
| 0.794118
| 4
| 34
| 6.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 34
| 2
| 33
| 17
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 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
| 1
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
c87be9b392750291ec7286750e1d9433852be452
| 268
|
py
|
Python
|
amurucore/query.py
|
skullalive/amuru
|
313aadfbb0dac8c44801ec4d9a72979be49c0d3b
|
[
"MIT"
] | null | null | null |
amurucore/query.py
|
skullalive/amuru
|
313aadfbb0dac8c44801ec4d9a72979be49c0d3b
|
[
"MIT"
] | null | null | null |
amurucore/query.py
|
skullalive/amuru
|
313aadfbb0dac8c44801ec4d9a72979be49c0d3b
|
[
"MIT"
] | null | null | null |
from amurucore.request import Request
class Query(Request):
def __init__(self) -> None:
super().__init__()
@staticmethod
def is_aQuery() -> bool:
return True
@staticmethod
def is_aCommand() -> bool:
return False
| 17.866667
| 37
| 0.600746
| 28
| 268
| 5.392857
| 0.678571
| 0.198676
| 0.225166
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.302239
| 268
| 15
| 38
| 17.866667
| 0.807487
| 0
| 0
| 0.2
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.3
| false
| 0
| 0.1
| 0.2
| 0.7
| 0
| 1
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
c89d893a30087f7cdc61c6727a9495e7241b5f02
| 1,699
|
py
|
Python
|
maschine_control/maschine_extensions.py
|
Emerah/Maschine-Control
|
973520a84585e654b3c4597c0eb7640d9a2fefe0
|
[
"Apache-2.0"
] | 11
|
2020-04-05T22:34:58.000Z
|
2021-04-14T19:15:42.000Z
|
maschine_control/maschine_extensions.py
|
Emerah/Maschine-Control
|
973520a84585e654b3c4597c0eb7640d9a2fefe0
|
[
"Apache-2.0"
] | null | null | null |
maschine_control/maschine_extensions.py
|
Emerah/Maschine-Control
|
973520a84585e654b3c4597c0eb7640d9a2fefe0
|
[
"Apache-2.0"
] | 4
|
2020-06-30T20:52:35.000Z
|
2021-01-09T14:53:20.000Z
|
#
# maschine / ableton
# maschine_extensions.py
#
# created by Ahmed Emerah - (MaXaR)
#
# NI user name: Emerah
# NI: Machine MK3, KK S49 MK2, Komplete 12.
# email: ahmed.emerah@icloud.com
#
# developed using python 2.7.17 on macOS Catalina
# tools: VS Code (Free)
#
from __future__ import absolute_import, print_function, unicode_literals
class MaschineComponentMixin(object):
"""
this is a mixin object to facilitate access to Live properties that are frequently used
inside components. also by making these properties listenable, components can define
observers, to act upon a property value change.
an object that inherits from this class, must also be a subclass of the EventObject class.
"""
# todo: turn these properties to listenable properties.
@property
def current_view(self):
return None
@property
def borwser_is_open(self):
return None
@property
def selected_track(self):
return None
@property
def selected_device(self):
return None
@property
def appointed_device(self):
return None
@property
def detail_clip(self):
return None
@property
def selected_parameter(self):
return None
@property
def highlighted_clip_slot(self):
return None
@property
def selected_scene(self):
return None
@property
def selected_chain(self):
return None
@property
def selected_drum_pad(self):
return None
@property
def visible_drum_pads(self):
return None
@property
def is_playing(self):
return None
@property
def tempo(self):
return None
| 20.22619
| 94
| 0.667451
| 210
| 1,699
| 5.280952
| 0.514286
| 0.138864
| 0.176736
| 0.25789
| 0.34716
| 0.234445
| 0
| 0
| 0
| 0
| 0
| 0.008052
| 0.268982
| 1,699
| 83
| 95
| 20.46988
| 0.884863
| 0.357269
| 0
| 0.636364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012048
| 0
| 1
| 0.318182
| false
| 0
| 0.022727
| 0.318182
| 0.681818
| 0.022727
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
cde9f78ef4327fa4bd70d07ad2058912d6df3054
| 168
|
py
|
Python
|
quadpy/e1r/__init__.py
|
gdmcbain/quadpy
|
c083d500027d7c1b2187ae06ff2b7fbdd360ccc7
|
[
"MIT"
] | 1
|
2019-01-02T19:04:42.000Z
|
2019-01-02T19:04:42.000Z
|
quadpy/e1r/__init__.py
|
gdmcbain/quadpy
|
c083d500027d7c1b2187ae06ff2b7fbdd360ccc7
|
[
"MIT"
] | null | null | null |
quadpy/e1r/__init__.py
|
gdmcbain/quadpy
|
c083d500027d7c1b2187ae06ff2b7fbdd360ccc7
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
#
from .gauss_laguerre import GaussLaguerre
from .tools import integrate, show, plot
__all__ = ["GaussLaguerre", "integrate", "show", "plot"]
| 21
| 56
| 0.690476
| 19
| 168
| 5.842105
| 0.684211
| 0.234234
| 0.306306
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006944
| 0.142857
| 168
| 7
| 57
| 24
| 0.763889
| 0.125
| 0
| 0
| 0
| 0
| 0.208333
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
cdefb4cd9804dda07bbe28db3cff2b17468cec8d
| 3,696
|
py
|
Python
|
meier/views/blog/post_detail_view.py
|
AhnSeongHyun/Meier
|
0ef687238c5c8c5aa6fadb7e39317e034bb6f3e7
|
[
"MIT"
] | 3
|
2022-02-18T03:46:54.000Z
|
2022-02-18T04:39:04.000Z
|
meier/views/blog/post_detail_view.py
|
AhnSeongHyun/Meier
|
0ef687238c5c8c5aa6fadb7e39317e034bb6f3e7
|
[
"MIT"
] | 167
|
2018-05-02T20:42:13.000Z
|
2021-03-26T07:09:52.000Z
|
meier/views/blog/post_detail_view.py
|
AhnSeongHyun/meier
|
0ef687238c5c8c5aa6fadb7e39317e034bb6f3e7
|
[
"MIT"
] | 1
|
2019-10-03T17:20:42.000Z
|
2019-10-03T17:20:42.000Z
|
from flask import Blueprint, abort, render_template
from meier.models.post import Post, PostStatus, PostVisibility
from meier.models.post_tag import PostTag
from meier.models.settings import Settings
from meier.models.tag import Tag
from meier.models.user import User
from meier.views.blog.meta_tag.og_meta_tag import OpenGraphMetaTagGenerator
post_detail_view = Blueprint("post_detail_view", __name__, url_prefix="")
def get_page_view(page_name):
settings = Settings.query.first()
author = User.query.first()
post = (
Post.query.filter(Post.post_name == page_name)
.filter(Post.is_page.is_(True))
.filter(Post.visibility == int(PostVisibility.PUBLIC.value))
.filter(Post.status == int(PostStatus.PUBLISH.value))
.scalar()
)
tag_id_list = [
post_tag.tag_id
for post_tag in PostTag.query.filter(PostTag.post_id == post.id).all()
]
tag_list = [
tag.tag for tag in Tag.query.filter(Tag.id.in_(tag_id_list)).all()
]
ogp_meta_tag = OpenGraphMetaTagGenerator(
site_name=settings.blog_title,
title=post.for_detail.get("title", None),
description=post.for_detail.get("content", None)[:300],
url=post.for_detail.get("link", None),
image=post.for_detail.get("featured_image", None),
)
return render_template(
f"themes/{settings.theme}/post_detail.html",
author=author,
ogp_meta_tag=ogp_meta_tag(),
settings=settings,
prev_post=None,
next_post=None,
post=post.for_detail,
tag_list=tag_list,
)
@post_detail_view.route(
"/<int:yyyy>/<string:mm>/<string:dd>/<string:post_name>/", methods=["GET"]
)
def get_post_detail_view(yyyy: int, mm: str, dd: str, post_name: str):
settings = Settings.query.first()
author = User.query.first()
post = (
Post.query.filter(Post.post_name == post_name)
.filter(Post.visibility == int(PostVisibility.PUBLIC.value))
.filter(Post.status == int(PostStatus.PUBLISH.value))
.scalar()
)
if post:
prev_post = (
Post.query.filter(Post.id < post.id)
.filter(Post.visibility == int(PostVisibility.PUBLIC.value))
.filter(Post.status == int(PostStatus.PUBLISH.value))
.order_by(Post.id.desc())
.first()
)
next_post = (
Post.query.filter(Post.id > post.id)
.filter(Post.visibility == int(PostVisibility.PUBLIC.value))
.filter(Post.status == int(PostStatus.PUBLISH.value))
.order_by(Post.id)
.first()
)
tag_id_list = [
post_tag.tag_id
for post_tag in PostTag.query.filter(
PostTag.post_id == post.id
).all()
]
tag_list = [
tag.tag for tag in Tag.query.filter(Tag.id.in_(tag_id_list)).all()
]
ogp_meta_tag = OpenGraphMetaTagGenerator(
site_name=settings.blog_title,
title=post.for_detail.get("title", None),
description=post.for_detail.get("content", None)[:300],
url=post.for_detail.get("link", None),
image=post.for_detail.get("featured_image", None),
)
return render_template(
f"themes/{settings.theme}/post_detail.html",
author=author,
ogp_meta_tag=ogp_meta_tag(),
settings=settings,
prev_post=prev_post.for_detail if prev_post else None,
next_post=next_post.for_detail if next_post else None,
post=post.for_detail,
tag_list=tag_list,
)
else:
abort(404)
| 33
| 78
| 0.618236
| 464
| 3,696
| 4.709052
| 0.165948
| 0.059497
| 0.071396
| 0.058581
| 0.707551
| 0.707551
| 0.707551
| 0.707551
| 0.707551
| 0.675515
| 0
| 0.003288
| 0.25947
| 3,696
| 111
| 79
| 33.297297
| 0.795031
| 0
| 0
| 0.536082
| 0
| 0
| 0.0579
| 0.036526
| 0
| 0
| 0
| 0
| 0
| 1
| 0.020619
| false
| 0
| 0.072165
| 0
| 0.113402
| 0.020619
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
a81c6c9d6b5a92ed0a6ee111a7c4f9b7ba6d3ace
| 172
|
py
|
Python
|
src/mouffet/__init__.py
|
Vin985/mouffet
|
95f8f2c2fdce14b01d7bd49c8a101a56f3952e11
|
[
"MIT"
] | null | null | null |
src/mouffet/__init__.py
|
Vin985/mouffet
|
95f8f2c2fdce14b01d7bd49c8a101a56f3952e11
|
[
"MIT"
] | 1
|
2021-01-06T20:46:11.000Z
|
2021-01-06T20:46:11.000Z
|
src/mouffet/__init__.py
|
Vin985/mouffet
|
95f8f2c2fdce14b01d7bd49c8a101a56f3952e11
|
[
"MIT"
] | null | null | null |
"""
Mouffet test
===============
Audio loading
-------------
.. autosummary::
:toctree: generated/
"""
from .utils import file_utils
from .utils import common_utils
| 12.285714
| 31
| 0.593023
| 17
| 172
| 5.882353
| 0.705882
| 0.18
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156977
| 172
| 13
| 32
| 13.230769
| 0.689655
| 0.575581
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
b521f51d5f48e131aac5bfdad6ea29a4494038b2
| 20
|
py
|
Python
|
trello_reporter/static_data/__init__.py
|
TomasTomecek/trello-reporter
|
dc5ec1ba2e41b38b814ab0031207c832f179cf1e
|
[
"MIT"
] | 4
|
2017-10-23T18:42:12.000Z
|
2022-03-15T07:31:07.000Z
|
trello_reporter/static_data/__init__.py
|
TomasTomecek/trello-reporter
|
dc5ec1ba2e41b38b814ab0031207c832f179cf1e
|
[
"MIT"
] | 4
|
2016-08-09T13:35:05.000Z
|
2017-05-25T07:48:38.000Z
|
trello_reporter/static_data/__init__.py
|
TomasTomecek/trello-reporter
|
dc5ec1ba2e41b38b814ab0031207c832f179cf1e
|
[
"MIT"
] | 3
|
2016-10-11T15:17:32.000Z
|
2020-03-18T13:42:43.000Z
|
# django needs this
| 10
| 19
| 0.75
| 3
| 20
| 5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 20
| 1
| 20
| 20
| 0.9375
| 0.85
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
b5549806a24ec3fc5e25f9f1f38f673e9a25ac15
| 51
|
py
|
Python
|
docs/examples/arguments_example/arguments_example.py
|
thewizardplusplus/wizard-basic-3
|
c9f2c69ee0238e26c847878ff8f882def21bbe73
|
[
"MIT"
] | null | null | null |
docs/examples/arguments_example/arguments_example.py
|
thewizardplusplus/wizard-basic-3
|
c9f2c69ee0238e26c847878ff8f882def21bbe73
|
[
"MIT"
] | 71
|
2015-02-13T17:22:14.000Z
|
2017-05-22T12:13:09.000Z
|
docs/examples/arguments_example/arguments_example.py
|
thewizardplusplus/wizard-basic-3
|
c9f2c69ee0238e26c847878ff8f882def21bbe73
|
[
"MIT"
] | null | null | null |
import sys
print '["%s"]' % '", "'.join(sys.argv)
| 12.75
| 38
| 0.509804
| 7
| 51
| 3.714286
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.156863
| 51
| 3
| 39
| 17
| 0.604651
| 0
| 0
| 0
| 0
| 0
| 0.196078
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.5
| null | null | 0.5
| 1
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
b58a5c0b4200a079559d1bb39b4e61ba00948196
| 72
|
py
|
Python
|
lang/python/issue/2to3/dict.py
|
liuyang1/test
|
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
|
[
"MIT"
] | 8
|
2015-06-07T13:25:48.000Z
|
2022-03-22T23:14:50.000Z
|
lang/python/issue/2to3/dict.py
|
liuyang1/test
|
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
|
[
"MIT"
] | 30
|
2016-01-29T01:36:41.000Z
|
2018-09-19T07:01:22.000Z
|
lang/python/issue/2to3/dict.py
|
liuyang1/test
|
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
|
[
"MIT"
] | null | null | null |
a = {}
a["A"] = 'a'
a["B"] = 'b'
for i in a.iteritems():
print(i)
| 9
| 23
| 0.402778
| 14
| 72
| 2.071429
| 0.5
| 0.275862
| 0.310345
| 0.275862
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.277778
| 72
| 7
| 24
| 10.285714
| 0.557692
| 0
| 0
| 0
| 0
| 0
| 0.056338
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.2
| 1
| 0
| 0
| null | 1
| 1
| 1
| 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
| 5
|
b5940e4c149b3a4c6d907097f19c21c86061914a
| 101
|
py
|
Python
|
access-denied/home_page/admin.py
|
ParvathyReghunath/CodeInnovationSeriesModelEngineeringCollege
|
32a40bc5dd22e0b1b416b094ca9122994f8b87db
|
[
"MIT"
] | null | null | null |
access-denied/home_page/admin.py
|
ParvathyReghunath/CodeInnovationSeriesModelEngineeringCollege
|
32a40bc5dd22e0b1b416b094ca9122994f8b87db
|
[
"MIT"
] | null | null | null |
access-denied/home_page/admin.py
|
ParvathyReghunath/CodeInnovationSeriesModelEngineeringCollege
|
32a40bc5dd22e0b1b416b094ca9122994f8b87db
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import DonorDetails
admin.site.register(DonorDetails)
| 20.2
| 33
| 0.841584
| 13
| 101
| 6.538462
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09901
| 101
| 4
| 34
| 25.25
| 0.934066
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
a91c4a0ac1d475e948c24c018bc4862220af6a86
| 639
|
py
|
Python
|
multi_bracket_validation/test_stack.py
|
steveflys/data-structures-and-algorithms
|
9c89cb24449ca7bc09578408cba3c877fe74e000
|
[
"MIT"
] | null | null | null |
multi_bracket_validation/test_stack.py
|
steveflys/data-structures-and-algorithms
|
9c89cb24449ca7bc09578408cba3c877fe74e000
|
[
"MIT"
] | 3
|
2018-05-01T18:07:50.000Z
|
2018-05-11T16:52:16.000Z
|
multi_bracket_validation/test_stack.py
|
steveflys/data-structures-and-algorithms
|
9c89cb24449ca7bc09578408cba3c877fe74e000
|
[
"MIT"
] | null | null | null |
from .multi_bracket_validation import multi_bracket_validation
from .multi_bracket_validation import switch
import pytest
def test_switch():
"""test the switch will reverse the bracket characters"""
assert switch('(') == ')'
assert switch('[') == ']'
assert switch('{') == '}'
def test_multi_bracket_validation():
"""test that we can push validate different string situations"""
# assert multi_bracket_validation('help([me])') is True
assert multi_bracket_validation('{}[()]') is True
assert multi_bracket_validation('[n*&](\})') is False
assert multi_bracket_validation('what is(2+2)[()') is False
| 33.631579
| 68
| 0.699531
| 78
| 639
| 5.5
| 0.384615
| 0.223776
| 0.410256
| 0.261072
| 0.307692
| 0.158508
| 0
| 0
| 0
| 0
| 0
| 0.003717
| 0.158059
| 639
| 18
| 69
| 35.5
| 0.79368
| 0.258216
| 0
| 0
| 0
| 0
| 0.077754
| 0
| 0
| 0
| 0
| 0
| 0.545455
| 1
| 0.181818
| true
| 0
| 0.272727
| 0
| 0.454545
| 0
| 0
| 0
| 0
| null | 1
| 1
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
a9489275108fb7815261fb9212e6cd7a520bea95
| 262
|
py
|
Python
|
Configuration/Eras/python/Era_Run2_50ns_HIPM_cff.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 852
|
2015-01-11T21:03:51.000Z
|
2022-03-25T21:14:00.000Z
|
Configuration/Eras/python/Era_Run2_50ns_HIPM_cff.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 30,371
|
2015-01-02T00:14:40.000Z
|
2022-03-31T23:26:05.000Z
|
Configuration/Eras/python/Era_Run2_50ns_HIPM_cff.py
|
ckamtsikis/cmssw
|
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
|
[
"Apache-2.0"
] | 3,240
|
2015-01-02T05:53:18.000Z
|
2022-03-31T17:24:21.000Z
|
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Run2_50ns_cff import Run2_50ns
from Configuration.Eras.Modifier_tracker_apv_vfp30_2016_cff import tracker_apv_vfp30_2016
Run2_50ns_HIPM = cms.ModifierChain(Run2_50ns, tracker_apv_vfp30_2016)
| 37.428571
| 89
| 0.889313
| 41
| 262
| 5.243902
| 0.487805
| 0.148837
| 0.209302
| 0.265116
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122951
| 0.068702
| 262
| 6
| 90
| 43.666667
| 0.758197
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 1
| 0
|
0
| 5
|
a98cfd317a62e95d5040497e2f0e675957d89120
| 220
|
py
|
Python
|
src/ProblemSolver/__init__.py
|
Vaibhavi1707/Project-Euler
|
3f625c69e4289fb9f09a4d4ef3b2618ebf4c2777
|
[
"MIT"
] | 2
|
2021-05-29T16:59:30.000Z
|
2021-11-26T17:30:33.000Z
|
src/ProblemSolver/__init__.py
|
shubhii0206/Project-Euler
|
4e1efb7bb784a6267e723d2a9056836d9a0610c7
|
[
"MIT"
] | null | null | null |
src/ProblemSolver/__init__.py
|
shubhii0206/Project-Euler
|
4e1efb7bb784a6267e723d2a9056836d9a0610c7
|
[
"MIT"
] | 5
|
2021-05-19T13:16:21.000Z
|
2021-05-21T11:48:20.000Z
|
class ProblemSolver:
def __init__(self):
pass
from ._problems import solve_problem1, solve_problem2, solve_problem3, solve_problem4, solve_problem11, solve_problem12, solve_problem13, solve_problem14
| 44
| 157
| 0.781818
| 25
| 220
| 6.36
| 0.72
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.065217
| 0.163636
| 220
| 5
| 157
| 44
| 0.798913
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.25
| 0
| 0.75
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
8d18afd25069b54266f72a0f61fe821e7156d4e4
| 234
|
py
|
Python
|
core/app/house/admin.py
|
EmixMaxime/mx-home-security
|
ec6d329a09bb2e0afbbd7e481937893311f02634
|
[
"MIT"
] | 2
|
2021-04-29T19:28:59.000Z
|
2021-04-29T21:20:32.000Z
|
core/app/house/admin.py
|
EmixMaxime/mx-home-security
|
ec6d329a09bb2e0afbbd7e481937893311f02634
|
[
"MIT"
] | 101
|
2020-06-26T19:51:24.000Z
|
2021-03-28T09:35:55.000Z
|
core/app/house/admin.py
|
mxmaxime/mx-tech-house
|
f6b66b8390b348e48d4c6ea0da51e409f3845fd6
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from house.models import House, Location, TelegramBot, TelegramBotStart
admin.site.register(House)
admin.site.register(Location)
admin.site.register(TelegramBot)
admin.site.register(TelegramBotStart)
| 29.25
| 71
| 0.84188
| 29
| 234
| 6.793103
| 0.413793
| 0.182741
| 0.345178
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068376
| 234
| 7
| 72
| 33.428571
| 0.90367
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
8d1afd7fa2c70297e4094a94c753ca11d0e0cd39
| 349
|
py
|
Python
|
python/set01_challenge01.py
|
joebarbere/cryptopals
|
26aa583d891a3b56b49562e540ebf72ded73c048
|
[
"MIT"
] | null | null | null |
python/set01_challenge01.py
|
joebarbere/cryptopals
|
26aa583d891a3b56b49562e540ebf72ded73c048
|
[
"MIT"
] | null | null | null |
python/set01_challenge01.py
|
joebarbere/cryptopals
|
26aa583d891a3b56b49562e540ebf72ded73c048
|
[
"MIT"
] | null | null | null |
import base64
hex_string = "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"
b64_correct_value = "SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t"
decoded = bytearray.fromhex(hex_string)
b64_encoded_string = base64.b64encode(decoded)
assert(b64_encoded_string == b64_correct_value)
| 43.625
| 111
| 0.896848
| 27
| 349
| 11.222222
| 0.555556
| 0.059406
| 0.09901
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.314199
| 0.051576
| 349
| 8
| 112
| 43.625
| 0.601208
| 0
| 0
| 0
| 0
| 0
| 0.457143
| 0.457143
| 0
| 0
| 0
| 0
| 0.166667
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8d1d24e98275a7acdfbafe62b7cd6a5d5a2b6dac
| 22,372
|
py
|
Python
|
zstackwoodpecker/zstackwoodpecker/zstack_test/vcenter_checker/vcenter_checker_factory.py
|
sherry546/zstack-woodpecker
|
54a37459f2d72ce6820974feaa6eb55772c3d2ce
|
[
"Apache-2.0"
] | 1
|
2021-03-21T12:41:11.000Z
|
2021-03-21T12:41:11.000Z
|
zstackwoodpecker/zstackwoodpecker/zstack_test/vcenter_checker/vcenter_checker_factory.py
|
sherry546/zstack-woodpecker
|
54a37459f2d72ce6820974feaa6eb55772c3d2ce
|
[
"Apache-2.0"
] | null | null | null |
zstackwoodpecker/zstackwoodpecker/zstack_test/vcenter_checker/vcenter_checker_factory.py
|
sherry546/zstack-woodpecker
|
54a37459f2d72ce6820974feaa6eb55772c3d2ce
|
[
"Apache-2.0"
] | 1
|
2017-05-19T06:40:40.000Z
|
2017-05-19T06:40:40.000Z
|
'''
Zstack VCenter Checker Factory.
@author: SyZhao
'''
import zstackwoodpecker.test_lib as test_lib
import zstackwoodpecker.header.vm as vm_header
import zstackwoodpecker.header.volume as volume_header
import zstackwoodpecker.header.image as image_header
import zstackwoodpecker.header.security_group as sg_header
import zstackwoodpecker.header.port_forwarding as pf_header
import zstackwoodpecker.header.vip as vip_header
import zstackwoodpecker.header.load_balancer as lb_header
import zstackwoodpecker.header.checker as checker_header
import zstackwoodpecker.zstack_test.zstack_checker.zstack_db_checker as db_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_vm_checker as vm_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_volume_checker as volume_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_image_checker as image_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_security_group_checker as sg_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_port_forwarding_checker as pf_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_host_checker as host_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_eip_checker as eip_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_vip_checker as vip_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_snapshot_checker as sp_checker
import zstackwoodpecker.zstack_test.vcenter_checker.zstack_vcenter_load_balancer_checker as lb_checker
import zstackwoodpecker.test_util as test_util
import apibinding.inventory as inventory
class VCenterVmCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
vcenter_vm_checker_chain = checker_header.CheckerChain()
checker_dict = {}
if test_obj.state == vm_header.RUNNING:
##checker_dict[vm_checker.zstack_vcenter_vm_set_host_vlan_ip] = True
checker_dict[db_checker.zstack_vm_db_checker] = True
checker_dict[vm_checker.zstack_vcenter_vm_running_checker] = True
##TODO:
##if behind of VR
##vrs = test_lib.lib_find_vr_by_vm(test_obj.vm)
##if vrs:
## svr_types = test_lib.lib_get_l3s_service_type(test_obj.vm)
## #The first DHCP checker will wait for VM start up.
## if 'DHCP' in svr_types:
## checker_dict[vm_checker.zstack_vcenter_vm_dhcp_checker] = True
## checker_dict[vm_checker.zstack_vcenter_vm_network_checker] = True
## #if guest can't get IP address from DHCP, auto case can
## # not test DNS feature.
## if 'DNS' in svr_types:
## checker_dict[vm_checker.zstack_vcenter_vm_dns_checker] \
## = True
## else:
## checker_dict[vm_checker.zstack_vcenter_vm_dns_checker] \
## = False
## else:
## checker_dict[vm_checker.zstack_vcenter_vm_dhcp_checker] = False
## checker_dict[vm_checker.zstack_vcenter_vm_network_checker] \
## = False
## if 'SNAT' in svr_types:
## checker_dict[vm_checker.zstack_vcenter_vm_snat_checker] = True
## else:
## checker_dict[vm_checker.zstack_vcenter_vm_snat_checker] = False
## #if 'PortForwarding' in svr_types:
## # checker_dict[vm_checker.zstack_vcenter_vm_dnat_checker] = True
## #else:
## # checker_dict[vm_checker.zstack_vcenter_vm_dnat_checker] = False
##else:
## sp_types = test_lib.lib_get_vm_l3_service_provider_types(test_obj.vm)
## if 'Flat' in sp_types:
## checker_dict[vm_checker.zstack_vcenter_vm_ssh_no_vr_checker] = True
##if test_obj.get_creation_option().get_default_l3_uuid():
## checker_dict[vm_checker.zstack_vcenter_vm_default_l3_checker] = True
elif test_obj.state == vm_header.STOPPED:
checker_dict[db_checker.zstack_vm_db_checker] = True
#stopped_checker is deprecated, since the stopped vm will be removed
#from host.
#checker_dict[vm_checker.zstack_vcenter_vm_stopped_checker] = True
elif test_obj.state == vm_header.PAUSED:
checker_dict[db_checker.zstack_vm_db_checker] = True
checker_dict[vm_checker.zstack_vcenter_vm_suspended_checker] = True
elif test_obj.state == vm_header.DESTROYED:
#VM destroy will cause vm structure be removed from DB, when VmExpungeInterval is set to 1, so doesn't need to check destroyed state sync in db in most case.
checker_dict[db_checker.zstack_vm_db_checker] = True
checker_dict[vm_checker.zstack_vcenter_vm_destroyed_checker] = True
elif test_obj.state == vm_header.EXPUNGED:
checker_dict[db_checker.zstack_vm_db_checker] = True
vcenter_vm_checker_chain.add_checker_dict(checker_dict, test_obj)
return vcenter_vm_checker_chain
class VCenterVolumeCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
vcenter_volume_checker_chain = checker_header.CheckerChain()
checker_dict = {}
if test_obj.state == volume_header.CREATED:
checker_dict[db_checker.zstack_volume_db_checker] = True
checker_dict[volume_checker.zstack_vcenter_volume_file_checker] = False
elif test_obj.state == volume_header.ATTACHED:
checker_dict[db_checker.zstack_volume_db_checker] = True
checker_dict[volume_checker.zstack_vcenter_volume_file_checker] = True
if not test_obj.target_vm.state == vm_header.DESTROYED:
checker_dict[db_checker.zstack_volume_attach_db_checker] = True
if test_obj.target_vm.state == vm_header.RUNNING:
checker_dict[volume_checker.zstack_vcenter_volume_attach_checker] = True
else:
checker_dict[db_checker.zstack_volume_attach_db_checker] = False
elif test_obj.state == volume_header.DETACHED:
checker_dict[db_checker.zstack_volume_db_checker] = True
checker_dict[db_checker.zstack_volume_attach_db_checker] = False
checker_dict[volume_checker.zstack_vcenter_volume_attach_checker] = False
checker_dict[volume_checker.zstack_vcenter_volume_file_checker] = True
elif test_obj.state == volume_header.DELETED:
checker_dict[db_checker.zstack_volume_db_checker] = True
checker_dict[volume_checker.zstack_vcenter_volume_file_checker] = True
elif test_obj.state == volume_header.EXPUNGED:
checker_dict[db_checker.zstack_volume_db_checker] = False
checker_dict[volume_checker.zstack_vcenter_volume_file_checker] = False
vcenter_volume_checker_chain.add_checker_dict(checker_dict, test_obj)
return vcenter_volume_checker_chain
class VCenterImageCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
vcenter_image_checker_chain = checker_header.CheckerChain()
checker_dict = {}
if test_obj.state == image_header.CREATED:
checker_dict[db_checker.zstack_image_db_checker] = True
checker_dict[image_checker.zstack_vcenter_image_file_checker] = True
if test_obj.state == image_header.DELETED:
checker_dict[db_checker.zstack_image_db_checker] = True
checker_dict[image_checker.zstack_vcenter_image_file_checker] = True
if test_obj.state == image_header.EXPUNGED:
checker_dict[db_checker.zstack_image_db_checker] = False
checker_dict[image_checker.zstack_vcenter_image_file_checker] = False
vcenter_image_checker_chain.add_checker_dict(checker_dict, test_obj)
return vcenter_image_checker_chain
class VCenterSecurityGroupCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
vcenter_sg_checker_chain = checker_header.CheckerChain()
checker_dict = {}
for nic_uuid in test_obj.get_all_nics():
target_vm = test_obj.get_vm_by_nic(nic_uuid)
if target_vm.state == vm_header.RUNNING:
if test_lib.lib_is_vm_sim(target_vm.vm):
vcenter_sg_checker_chain.add_checker(db_checker.zstack_sg_db_checker(True), test_obj)
continue
if not test_lib.lib_is_vm_vcenter(target_vm.vm):
continue
if test_obj.get_nic_tcp_ingress_rules(nic_uuid):
checker = sg_checker.zstack_vcenter_sg_tcp_ingress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
checker = sg_checker.zstack_vcenter_sg_tcp_ingress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
checker = sg_checker.zstack_vcenter_sg_tcp_internal_vms_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
else:
checker = sg_checker.zstack_vcenter_sg_tcp_ingress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
if test_obj.get_nic_tcp_egress_rules(nic_uuid):
checker = sg_checker.zstack_vcenter_sg_tcp_egress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
checker = sg_checker.zstack_vcenter_sg_tcp_egress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
if not test_obj.get_nic_tcp_ingress_rules(nic_uuid):
checker = sg_checker.zstack_vcenter_sg_tcp_internal_vms_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
else:
checker = sg_checker.zstack_vcenter_sg_tcp_egress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
if test_obj.get_nic_udp_ingress_rules(nic_uuid):
checker = sg_checker.zstack_vcenter_sg_udp_ingress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
else:
checker = sg_checker.zstack_vcenter_sg_udp_ingress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
if test_obj.get_nic_udp_egress_rules(nic_uuid):
checker = sg_checker.zstack_vcenter_sg_udp_egress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
else:
checker = sg_checker.zstack_vcenter_sg_udp_egress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
if test_obj.get_nic_icmp_ingress_rules(nic_uuid):
checker = sg_checker.zstack_vcenter_sg_icmp_ingress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
checker = sg_checker.zstack_vcenter_sg_icmp_ingress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
checker = sg_checker.zstack_vcenter_sg_icmp_internal_vms_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
else:
checker = sg_checker.zstack_vcenter_sg_icmp_ingress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
if test_obj.get_nic_icmp_egress_rules(nic_uuid):
checker = sg_checker.zstack_vcenter_sg_icmp_egress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
checker = sg_checker.zstack_vcenter_sg_icmp_egress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
#if not test_obj.get_nic_icmp_ingress_rules(nic_uuid):
# checker = sg_checker.zstack_vcenter_sg_icmp_internal_vms_checker()
# checker.set_nic_uuid(nic_uuid)
# vcenter_sg_checker_chain.add_checker(checker, True, test_obj)
else:
checker = sg_checker.zstack_vcenter_sg_icmp_egress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
else:
#TODO: only do iptables rules check
checker = sg_checker.zstack_vcenter_sg_tcp_ingress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_tcp_egress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_icmp_egress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_icmp_ingress_exist_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_udp_ingress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_udp_egress_checker()
checker.set_nic_uuid(nic_uuid)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
for test_vm in test_obj.get_detached_vm():
vm = test_vm.vm
if not test_lib.lib_is_vm_vcenter(vm):
continue
checker = sg_checker.zstack_vcenter_sg_tcp_ingress_exist_checker()
checker.set_vm(vm)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_tcp_egress_exist_checker()
checker.set_vm(vm)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_icmp_egress_exist_checker()
checker.set_vm(vm)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_icmp_ingress_exist_checker()
checker.set_vm(vm)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_udp_ingress_checker()
checker.set_vm(vm)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
checker = sg_checker.zstack_vcenter_sg_udp_egress_checker()
checker.set_vm(vm)
vcenter_sg_checker_chain.add_checker(checker, False, test_obj)
return vcenter_sg_checker_chain
class VCenterPortForwardingCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
vcenter_pf_checker_chain = checker_header.CheckerChain()
checker_dict = {}
pf_rule = test_obj.get_port_forwarding()
if test_obj.get_state() == pf_header.ATTACHED and \
test_obj.get_target_vm().get_state() == vm_header.RUNNING:
if pf_rule.protocolType == inventory.TCP:
checker_dict[pf_checker.zstack_vcenter_pf_tcp_checker] = True
if pf_rule.protocolType == inventory.UDP:
checker_dict[pf_checker.zstack_vcenter_pf_rule_exist_checker] = True
elif test_obj.get_state() == pf_header.ATTACHED and test_obj.get_target_vm().get_state() == vm_header.STOPPED:
checker_dict[pf_checker.zstack_vcenter_pf_vip_icmp_checker] = False
if pf_rule.protocolType == inventory.TCP:
checker_dict[pf_checker.zstack_vcenter_pf_tcp_checker] = False
elif test_obj.get_state() == pf_header.DETACHED:
checker_dict[pf_checker.zstack_vcenter_pf_vip_icmp_checker] = False
vcenter_pf_checker_chain.add_checker_dict(checker_dict, test_obj)
return vcenter_pf_checker_chain
class HostCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
host_checker_chain = checker_header.CheckerChain()
checker = host_checker.zstack_vcenter_host_checker()
host_checker_chain.add_checker(checker, True, test_obj)
return host_checker_chain
class EipCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
eip_checker_chain = checker_header.CheckerChain()
checker = eip_checker.eip_checker()
eip_checker_chain.add_checker(checker, True, test_obj)
return eip_checker_chain
class VipCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
vip_checker_chain = checker_header.CheckerChain()
if test_obj.get_state() == vip_header.ATTACHED:
if test_obj.get_use_for() == vip_header.PortForwarding:
checker = vip_checker.vip_used_for_checker()
checker.set_target_use_for(vip_header.PortForwarding)
vip_checker_chain.add_checker(checker, True, test_obj)
vip_checker_chain.add_checker(vip_checker.pf_checker(), True, test_obj)
for pf in test_obj.get_pf_list_for_running_vm():
vip_checker_chain.add_checker(pf_checker.zstack_vcenter_pf_rule_exist_checker(), True, pf)
for pf in test_obj.get_pf_list_for_stopped_vm():
#vip_checker_chain.add_checker(pf_checker.zstack_vcenter_pf_rule_exist_checker(), True, pf)
pass
elif test_obj.get_use_for() == vip_header.Eip:
checker = vip_checker.vip_used_for_checker()
checker.set_target_use_for(vip_header.Eip)
vip_checker_chain.add_checker(checker, True, test_obj)
vip_checker_chain.add_checker(vip_checker.eip_checker(), True, test_obj)
elif test_obj.get_state() == vip_header.DETACHED:
vip_checker_chain.add_checker(vip_checker.vip_icmp_checker(), False, test_obj)
elif test_obj.get_state() == vip_header.CREATED:
vip_checker_chain.add_checker(vip_checker.vip_icmp_checker(), False, test_obj)
elif test_obj.get_state() == vip_header.DELETED:
vip_checker_chain.add_checker(vip_checker.vip_icmp_checker(), False, test_obj)
return vip_checker_chain
class SnapshotCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
sp_checker_chain = checker_header.CheckerChain()
if test_obj.get_target_volume().get_volume():
#target volume is not deleted.
sp_checker_chain.add_checker(\
sp_checker.zstack_vcenter_snapshot_checker(), True, test_obj)
ps_uuid = test_obj.get_target_volume().get_volume().primaryStorageUuid
if test_lib.lib_is_ps_iscsi_backend(ps_uuid):
sp_checker_chain.add_checker(\
sp_checker.zstack_vcenter_snapshot_tree_checker(), True, \
test_obj)
if test_obj.get_backuped_snapshots():
sp_checker_chain.add_checker(\
sp_checker.zstack_vcenter_backuped_snapshot_checker(), \
True, test_obj)
return sp_checker_chain
class LoadBalancerCheckerFactory(checker_header.CheckerFactory):
def create_checker(self, test_obj):
lb_checker_chain = checker_header.CheckerChain()
if test_obj.get_state() != lb_header.DELETED:
lb_checker_chain.add_checker(db_checker.zstack_lb_db_checker(), \
True, test_obj)
for lbl in test_obj.get_load_balancer_listeners().values():
if lbl.get_state() != lb_header.DELETED:
checker = lb_checker.zstack_vcenter_lbl_checker()
checker.set_lbl(lbl)
lb_checker_chain.add_checker(checker, True, test_obj)
if test_obj.get_load_balancer_listeners():
if test_obj.is_separated_vr():
lb_checker_chain.add_checker(\
db_checker.zstack_alone_lb_vr_db_checker(),\
True, test_obj)
else:
lb_checker_chain.add_checker(\
db_checker.zstack_alone_lb_vr_db_checker(),\
False, test_obj)
else:
lb_checker_chain.add_checker(db_checker.zstack_lb_db_checker(), \
False, test_obj)
return lb_checker_chain
| 53.393795
| 169
| 0.674817
| 2,750
| 22,372
| 4.998545
| 0.063636
| 0.058562
| 0.117852
| 0.089626
| 0.824313
| 0.791139
| 0.774625
| 0.739706
| 0.70777
| 0.581551
| 0
| 0.000302
| 0.260996
| 22,372
| 418
| 170
| 53.521531
| 0.831126
| 0.10455
| 0
| 0.527869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.002392
| 0
| 1
| 0.032787
| false
| 0.003279
| 0.072131
| 0
| 0.170492
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 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
| 5
|
8d1df10464de6a2f8677845d0ed38d1d441d134c
| 256
|
py
|
Python
|
bark_ml/library_wrappers/lib_tf_agents/agents/__init__.py
|
SebastianGra/bark-ml_MCTS_RL
|
8334f141d02bdc012a0bc6ac00d679018e0f46f3
|
[
"MIT"
] | 1
|
2020-04-23T20:19:55.000Z
|
2020-04-23T20:19:55.000Z
|
bark_ml/library_wrappers/lib_tf_agents/agents/__init__.py
|
SebastianGra/bark-ml_MCTS_RL
|
8334f141d02bdc012a0bc6ac00d679018e0f46f3
|
[
"MIT"
] | null | null | null |
bark_ml/library_wrappers/lib_tf_agents/agents/__init__.py
|
SebastianGra/bark-ml_MCTS_RL
|
8334f141d02bdc012a0bc6ac00d679018e0f46f3
|
[
"MIT"
] | null | null | null |
from bark_ml.library_wrappers.lib_tf_agents.agents.sac_agent import BehaviorSACAgent
from bark_ml.library_wrappers.lib_tf_agents.agents.ppo_agent import BehaviorPPOAgent
from bark_ml.library_wrappers.lib_tf_agents.agents.cdqn_agent import BehaviorCDQNAgent
| 85.333333
| 86
| 0.910156
| 39
| 256
| 5.589744
| 0.410256
| 0.110092
| 0.137615
| 0.233945
| 0.577982
| 0.577982
| 0.577982
| 0.577982
| 0.577982
| 0
| 0
| 0
| 0.042969
| 256
| 3
| 86
| 85.333333
| 0.889796
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
8d433f03167ba92ca98fab60ce60868979b5ed59
| 8,994
|
py
|
Python
|
analysis/analisaRedes2.py
|
ttm/gmaneScripts
|
5fcb4263cf2c37d117b07ce2e1b23ea6d004c041
|
[
"Unlicense"
] | null | null | null |
analysis/analisaRedes2.py
|
ttm/gmaneScripts
|
5fcb4263cf2c37d117b07ce2e1b23ea6d004c041
|
[
"Unlicense"
] | null | null | null |
analysis/analisaRedes2.py
|
ttm/gmaneScripts
|
5fcb4263cf2c37d117b07ce2e1b23ea6d004c041
|
[
"Unlicense"
] | null | null | null |
#-*- coding: utf8 -*-
from __future__ import division
import time, sys, __builtin__
import utilsRedes
reload(utilsRedes)
from utilsRedes import *
t=time.time()
de=0
ate=20001
#caminho="./cpp/"
#caminho="./lau/"
caminho="./lad/"
#caminho="./metarec/"
if sum([i in dir(__builtin__) for i in ("m","de","ate")])==3:
print(__builtin__.m)
if __builtin__.m and __builtin__.de==de and __builtin__.ate==ate:
print("reutilizando mensagens")
mensagens=m=__builtin__.m
else:
print("lendo mensagens")
mensagens=m=Mensagens(caminho,de,ate)
__builtin__.m=m
__builtin__.de=de
__builtin__.ate=ate
else:
print("lendo mensagens")
mensagens=m=Mensagens(caminho,de,ate)
__builtin__.m=m
__builtin__.de=de
__builtin__.ate=ate
print("lidas as mensagens", time.time()-t); t=time.time()
janelas=(10000,5000,1000,500,250,100,50)
#janelas=(100,50)
for j in janelas:
if j < 500:
passo = int(j/2)
else:
passo = int(j/10)
e=EvoluiRede(0,20001,j,passo,m, caminho)
e.drawSections()
sys.exit()
#medidas_mensagens=mm=MedidasMensagens( mensagens, 0,200 )
#rede=Rede( mensagens, 0, 501 )
#mr=MedidasRede( rede )
#pr=ParticionaRede( mr )
#
D=5000 # tamanho da janela em mensagens (D=0 => g crescente; D<0 movimento começa do final da rede)
passo=500 # mensagens adiantadas em cada passo
# iniciando loop de observacao:
class L:
N=[]
dist=[]
dist_f=[]
dist_i=[]
dist_o=[]
dist_fi=[]
dist_fo=[]
dist_exc=[]
dist_inc=[]
dist_cas_exc=[]
dist_cas_inc=[]
dist_ext_exc=[]
dist_ext_inc=[]
quebras=[]
de=0
ate_=ate-D
contador=0
for pos in xrange(de,ate_,passo):
print("criando rede"); t=time.time()
rede=Rede(mensagens, pos, pos+D)
print("rede criada: ", t-time.time()); t= time.time()
#mr=MedidasRede( rede )
#print("medidas obtidas da rede: ", t-time.time()); t= time.time()
pr=ParticionaRede( rede )
print("rede particionada: ", t-time.time()); t= time.time()
L.dist.append(pr.dist)
L.dist_f.append(pr.dist_f)
L.dist_i.append(pr.dist_i)
L.dist_o.append(pr.dist_o)
L.dist_fi.append(pr.dist_fi)
L.dist_fo.append(pr.dist_fo)
L.dist_exc.append(pr.C.dist_exc)
L.dist_inc.append(pr.C.dist_inc)
L.dist_cas_exc.append(pr.C.dist_cas_exc)
L.dist_cas_inc.append(pr.C.dist_cas_inc)
L.dist_ext_exc.append(pr.C.dist_ext_exc)
L.dist_ext_inc.append(pr.C.dist_ext_inc)
L.quebras.append(pr.quebras)
L.N.append(pr.g.number_of_nodes())
print(u"registradas as distribuições: ", t-time.time()); t= time.time()
contador+=1
print(contador)
L.s_exc=[]
L.s_inc=[]
for i in xrange(contador):
L.s_exc.append(sum(L.dist_exc[i]))
L.s_inc.append(sum(L.dist_inc[i]))
arq="%i.txt"%(D,)
f=open(arq,"wb")
#f.write)
f.close()
p.clf()
p.subplot(211)
perifericos=[d[0]/sum(d) for d in L.dist]
intermediarios=[d[1]/sum(d) for d in L.dist]
hubs=[d[2]/sum(d) for d in L.dist]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification considering degree")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.subplot(212)
perifericos=[d[0]/sum(d) for d in L.dist_f]
intermediarios=[d[1]/sum(d) for d in L.dist_f]
hubs=[d[2]/sum(d) for d in L.dist_f]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification considering strength")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.savefig("partes.png")
p.clf()
p.subplot(211)
perifericos=[d[0]/sum(d) for d in L.dist_i]
intermediarios=[d[1]/sum(d) for d in L.dist_i]
hubs=[d[2]/sum(d) for d in L.dist_i]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification considering in-degree")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.subplot(212)
perifericos=[d[0]/sum(d) for d in L.dist_o]
intermediarios=[d[1]/sum(d) for d in L.dist_o]
hubs=[d[2]/sum(d) for d in L.dist_o]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification considering out-degree")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.savefig("partes_io.png")
p.clf()
p.subplot(211)
perifericos=[d[0]/sum(d) for d in L.dist_fi]
intermediarios=[d[1]/sum(d) for d in L.dist_fi]
hubs=[d[2]/sum(d) for d in L.dist_fi]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification considering in-strengh")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.subplot(212)
perifericos=[d[0]/sum(d) for d in L.dist_fo]
intermediarios=[d[1]/sum(d) for d in L.dist_fo]
hubs=[d[2]/sum(d) for d in L.dist_fo]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification considering out-strengh")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.savefig("partes_fio.png")
p.clf()
p.subplot(211)
perifericos=[d[0]/sum(d) for d in L.dist_exc]
intermediarios=[d[1]/sum(d) for d in L.dist_exc]
hubs=[d[2]/sum(d) for d in L.dist_exc]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification unanimous in all measures")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.subplot(212)
perifericos=[d[0]/sum(d) for d in L.dist_inc]
intermediarios=[d[1]/sum(d) for d in L.dist_inc]
hubs=[d[2]/sum(d) for d in L.dist_inc]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification considering incidences in any measure")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.savefig("partes_C_incexc.png")
p.clf()
p.subplot(211)
perifericos=[d[0]/sum(d) for d in L.dist_cas_exc]
intermediarios=[d[1]/sum(d) for d in L.dist_cas_exc]
hubs=[d[2]/sum(d) for d in L.dist_cas_exc]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification unanimous cascade frm hub to brder")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.subplot(212)
perifericos=[d[0]/sum(d) for d in L.dist_cas_inc]
intermediarios=[d[1]/sum(d) for d in L.dist_cas_inc]
hubs=[d[2]/sum(d) for d in L.dist_cas_inc]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification inclusive frm hub to brder")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.savefig("partes_C_cas_incexc.png")
p.clf()
p.subplot(211)
perifericos=[d[0]/sum(d) for d in L.dist_ext_exc]
intermediarios=[d[1]/sum(d) for d in L.dist_ext_exc]
hubs=[d[2]/sum(d) for d in L.dist_ext_exc]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification unanimous cascade frm hub to brder")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.subplot(212)
perifericos=[d[0]/sum(d) for d in L.dist_ext_inc]
intermediarios=[d[1]/sum(d) for d in L.dist_ext_inc]
hubs=[d[2]/sum(d) for d in L.dist_ext_inc]
p.plot(perifericos, "b"); p.plot(perifericos, "b")
p.plot(intermediarios, "g"); p.plot(intermediarios, "g")
p.plot(hubs, "r"); p.plot(hubs, "r")
p.title("Classification inclusive frm hub to brder")
p.xlabel(r"messages $\rightarrow$")
p.ylabel(r"fraction of each network section $\rightarrow$")
p.xlim(-5,len(perifericos)+5)
p.ylim(0,1)
p.savefig("partes_C_ext_incexc.png")
| 30.181208
| 99
| 0.671225
| 1,590
| 8,994
| 3.691824
| 0.103145
| 0.061329
| 0.04293
| 0.049063
| 0.752129
| 0.733731
| 0.721465
| 0.721465
| 0.717888
| 0.717888
| 0
| 0.024302
| 0.135312
| 8,994
| 297
| 100
| 30.282828
| 0.730487
| 0.052368
| 0
| 0.493776
| 0
| 0
| 0.185068
| 0.005409
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.020747
| 0.016598
| 0
| 0.078838
| 0.041494
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
a5c0974ceccc44caec49049bc8e624c1b367b431
| 152
|
py
|
Python
|
tasks/admin.py
|
algor1/myp2
|
b10ad7efdca11c88b4ae21520244024560f2c3be
|
[
"MIT"
] | null | null | null |
tasks/admin.py
|
algor1/myp2
|
b10ad7efdca11c88b4ae21520244024560f2c3be
|
[
"MIT"
] | null | null | null |
tasks/admin.py
|
algor1/myp2
|
b10ad7efdca11c88b4ae21520244024560f2c3be
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from .models import Images, Task
admin.site.register(Images)
admin.site.register(Task)
| 16.888889
| 32
| 0.789474
| 22
| 152
| 5.454545
| 0.545455
| 0.15
| 0.283333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.125
| 152
| 8
| 33
| 19
| 0.902256
| 0.171053
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
a5cc6b4b67b586c2e8d65e8efe36b457701c35dd
| 2,414
|
py
|
Python
|
tests/test_commands.py
|
OhBonsai/RedisTree
|
404e858af816f22d6f6f022d902d858f8e41cbcd
|
[
"MIT"
] | 53
|
2021-02-04T01:55:47.000Z
|
2022-03-17T08:15:20.000Z
|
tests/test_commands.py
|
OhBonsai/RedisTree
|
404e858af816f22d6f6f022d902d858f8e41cbcd
|
[
"MIT"
] | null | null | null |
tests/test_commands.py
|
OhBonsai/RedisTree
|
404e858af816f22d6f6f022d902d858f8e41cbcd
|
[
"MIT"
] | 3
|
2021-02-25T02:02:19.000Z
|
2022-03-17T08:15:23.000Z
|
import pytest
from redis.exceptions import ResponseError
def test_init(redis_client):
# wrong format tree string will raise ResponseError
with pytest.raises(ResponseError, match="() is not closed"):
redis_client.execute_command("tree.init", "hello", "0 (1(2")
with pytest.raises(ResponseError, match="no root in tree string"):
redis_client.execute_command("tree.init", "hello", "(2)")
assert redis_client.execute_command("tree.get", "hello") is None
redis_client.execute_command("tree.init", "hello", "0 (1 2)")
def test_get(redis_client):
redis_client.execute_command("tree.init", "hello", "0 (1 2 (a b (d)) e f (g h))")
assert redis_client.execute_command("tree.get", "hello") == "0( 1 2( a b( d ) ) e f( g h ) )"
def test_del(redis_client):
redis_client.execute_command("tree.init", "hello", "0 (1 2 (a b (d)) e f (g h))")
redis_client.execute_command("tree.del", "hello")
assert redis_client.execute_command("tree.get", "hello") is None
def test_get_subtree(redis_client):
redis_client.execute_command("tree.init", "hello", "0 (1 2 (a b (d)) e f (g h))")
assert redis_client.execute_command("tree.get_subtree", "hello", "f") == "f( g h )"
def test_set_subtree(redis_client):
redis_client.execute_command("tree.init", "hello", "0 (1 2)")
redis_client.execute_command("tree.set_subtree", "hello", "2", "3 ( 4 5)")
assert redis_client.execute_command("tree.get", "hello") == "0( 1 2( 3( 4 5 ) ) )"
def test_get_ancestors(redis_client):
redis_client.execute_command("tree.init", "hello", "0 (1 2 (a b (d)) e f (g h))")
assert redis_client.execute_command("tree.get_ancestors", "hello", "d") == ["b", "2", "0"]
def test_get_descendants(redis_client):
redis_client.execute_command("tree.init", "hello", "0 (1 2 (a (k (j) bb) b (d)) e f (g h))")
assert redis_client.execute_command("tree.get_descendants", "hello", "2") == ["2", "a", "b", "k", "bb", "d", "j"]
def test_get_father(redis_client):
redis_client.execute_command("tree.init", "hello", "0 (1 2 (a (k (j) bb) b (d)) e f (g h))")
assert redis_client.execute_command("tree.get_father", "hello", "j") == "k"
def test_get_children(redis_client):
redis_client.execute_command("tree.init", "hello", "0 (1 2 (a (k (j) bb) b (d)) e f (g h))")
assert redis_client.execute_command("tree.get_children", "hello", "0") == ["1", "2", "e", "f"]
| 42.350877
| 117
| 0.653273
| 388
| 2,414
| 3.873711
| 0.139175
| 0.22688
| 0.263473
| 0.365935
| 0.759148
| 0.664005
| 0.664005
| 0.638723
| 0.638723
| 0.638723
| 0
| 0.025037
| 0.156172
| 2,414
| 56
| 118
| 43.107143
| 0.712813
| 0.020298
| 0
| 0.314286
| 0
| 0.085714
| 0.305967
| 0
| 0
| 0
| 0
| 0
| 0.257143
| 1
| 0.257143
| false
| 0
| 0.057143
| 0
| 0.314286
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
570104fcb9b9210fb83c1a7949c66a955c65292d
| 1,893
|
py
|
Python
|
19/messageparser.py
|
bjrnwnklr/AoC2020
|
d3a9b03a439c8cf3f21f9a4f8e14794777df524f
|
[
"MIT"
] | null | null | null |
19/messageparser.py
|
bjrnwnklr/AoC2020
|
d3a9b03a439c8cf3f21f9a4f8e14794777df524f
|
[
"MIT"
] | null | null | null |
19/messageparser.py
|
bjrnwnklr/AoC2020
|
d3a9b03a439c8cf3f21f9a4f8e14794777df524f
|
[
"MIT"
] | null | null | null |
from ply import lex, yacc
import messagelex
tokens = messagelex.tokens
def p_r0(p):
"""0 : 8 11"""
pass
def p_r8(p):
"""8 : 42"""
pass
def p_r11(p):
"""11 : 42 31"""
pass
def p_r42(p):
"""42 : 9 14
| 10 1"""
pass
def p_r31(p):
"""31 : 14 17
| 1 13"""
pass
def p_r9(p):
"""9 : 14 27
| 1 26"""
pass
def p_r10(p):
"""10 : 23 14
| 28 1"""
pass
def p_r17(p):
"""17 : 14 2
| 1 7"""
pass
def p_r13(p):
"""13 : 14 3
| 1 12"""
pass
def p_r27(p):
"""27 : 1 6
| 14 18"""
pass
def p_r26(p):
"""26 : 14 22
| 1 20"""
pass
def p_r23(p):
"""23 : 25 1
| 22 14"""
pass
def p_r28(p):
"""28 : 16 1"""
pass
def p_r2(p):
"""2 : 1 24
| 14 4"""
pass
def p_r7(p):
"""7 : 14 5
| 1 21"""
pass
def p_r3(p):
"""3 : 5 14
| 16 1"""
pass
def p_r12(p):
"""12 : 24 14
| 19 1"""
pass
def p_r1(p):
"""1 : A"""
pass
def p_r6(p):
"""6 : 14 14
| 1 14"""
pass
def p_r18(p):
"""18 : 15 15"""
pass
def p_r22(p):
"""22 : 14 14"""
pass
def p_r20(p):
"""20 : 14 14
| 1 15"""
pass
def p_r25(p):
"""25 : 1 1
| 1 14"""
pass
def p_r16(p):
"""16 : 15 1
| 14 14"""
pass
def p_r24(p):
"""24 : 14 1"""
pass
def p_r4(p):
"""4 : 1 1"""
pass
def p_r5(p):
"""5 : 1 14
| 15 1"""
pass
def p_r21(p):
"""21 : 14 1
| 1 14"""
pass
def p_r19(p):
"""19 : 14 1
| 14 14"""
pass
def p_r14(p):
"""14 : B"""
pass
def p_r15(p):
"""15 : 1
| 14"""
pass
def p_error(p):
if p:
raise ValueError("Syntax error at '%s'" % p.value)
else:
print("Syntax error at EOF")
| 10.069149
| 58
| 0.388273
| 315
| 1,893
| 2.231746
| 0.269841
| 0.182077
| 0.352774
| 0.102418
| 0.150782
| 0.071124
| 0
| 0
| 0
| 0
| 0
| 0.23919
| 0.425779
| 1,893
| 187
| 59
| 10.122995
| 0.407544
| 0.23402
| 0
| 0.442857
| 0
| 0
| 0.034636
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.457143
| false
| 0.442857
| 0.028571
| 0
| 0.485714
| 0.014286
| 0
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
57182d59deea2e0b9ebe19c9c614e772f3eb2f95
| 88
|
py
|
Python
|
glove/metrics/__init__.py
|
hejazizo/glove-python
|
815b76a815ab4ef8470dc049d78e208c7bab85bd
|
[
"Apache-2.0"
] | 2
|
2020-10-08T08:58:49.000Z
|
2021-12-28T06:34:42.000Z
|
glove/metrics/__init__.py
|
hejazizo/glove-python
|
815b76a815ab4ef8470dc049d78e208c7bab85bd
|
[
"Apache-2.0"
] | null | null | null |
glove/metrics/__init__.py
|
hejazizo/glove-python
|
815b76a815ab4ef8470dc049d78e208c7bab85bd
|
[
"Apache-2.0"
] | null | null | null |
from .accuracy import read_analogy_file, construct_analogy_test_set, analogy_rank_score
| 44
| 87
| 0.897727
| 13
| 88
| 5.538462
| 0.846154
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068182
| 88
| 1
| 88
| 88
| 0.878049
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
571b9f9157e9007dd3ae351318bd8ee897ec4041
| 24
|
py
|
Python
|
temp/_version.py
|
vtpl1/temp
|
9250fdeb4f73a4557c83acaaa2c9910f61ef0bc1
|
[
"MIT"
] | null | null | null |
temp/_version.py
|
vtpl1/temp
|
9250fdeb4f73a4557c83acaaa2c9910f61ef0bc1
|
[
"MIT"
] | null | null | null |
temp/_version.py
|
vtpl1/temp
|
9250fdeb4f73a4557c83acaaa2c9910f61ef0bc1
|
[
"MIT"
] | null | null | null |
__version__ = "0.0.105"
| 12
| 23
| 0.666667
| 4
| 24
| 3
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.238095
| 0.125
| 24
| 1
| 24
| 24
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
572d6f030040befc05090528ac0a278dc330218c
| 84
|
py
|
Python
|
v2/backend/blog/views/blueprint.py
|
jonfairbanks/rtsp-nvr
|
c770c77e74a062c63fb5e2419bc00a17543da332
|
[
"MIT"
] | 558
|
2017-10-04T14:33:18.000Z
|
2022-03-24T21:25:08.000Z
|
v2/backend/blog/views/blueprint.py
|
jonfairbanks/rtsp-nvr
|
c770c77e74a062c63fb5e2419bc00a17543da332
|
[
"MIT"
] | 22
|
2018-04-29T04:25:49.000Z
|
2021-08-02T17:26:02.000Z
|
v2/backend/blog/views/blueprint.py
|
jonfairbanks/rtsp-nvr
|
c770c77e74a062c63fb5e2419bc00a17543da332
|
[
"MIT"
] | 127
|
2017-11-14T19:47:27.000Z
|
2022-03-24T21:25:12.000Z
|
from flask import Blueprint
blog = Blueprint('blog', __name__, url_prefix='/blog')
| 21
| 54
| 0.75
| 11
| 84
| 5.272727
| 0.727273
| 0.448276
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 84
| 3
| 55
| 28
| 0.783784
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 1
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 1
|
0
| 5
|
938d4aa5f5e98bcde098f0a22a0d3714507c3abf
| 678
|
py
|
Python
|
sickbeard/lib/hachoir_parser/misc/__init__.py
|
Branlala/docker-sickbeardfr
|
3ac85092dc4cc8a4171fb3c83e9682162245e13e
|
[
"MIT"
] | null | null | null |
sickbeard/lib/hachoir_parser/misc/__init__.py
|
Branlala/docker-sickbeardfr
|
3ac85092dc4cc8a4171fb3c83e9682162245e13e
|
[
"MIT"
] | null | null | null |
sickbeard/lib/hachoir_parser/misc/__init__.py
|
Branlala/docker-sickbeardfr
|
3ac85092dc4cc8a4171fb3c83e9682162245e13e
|
[
"MIT"
] | null | null | null |
from lib.hachoir_parser.misc.file_3do import File3do
from lib.hachoir_parser.misc.file_3ds import File3ds
from lib.hachoir_parser.misc.torrent import TorrentFile
from lib.hachoir_parser.misc.ttf import TrueTypeFontFile
from lib.hachoir_parser.misc.chm import ChmFile
from lib.hachoir_parser.misc.lnk import LnkFile
from lib.hachoir_parser.misc.pcf import PcfFile
from lib.hachoir_parser.misc.ole2 import OLE2_File
from lib.hachoir_parser.misc.pdf import PDFDocument
from lib.hachoir_parser.misc.pifv import PIFVFile
from lib.hachoir_parser.misc.hlp import HlpFile
from lib.hachoir_parser.misc.gnome_keyring import GnomeKeyring
from lib.hachoir_parser.misc.bplist import BPList
| 45.2
| 62
| 0.864307
| 108
| 678
| 5.268519
| 0.296296
| 0.15993
| 0.319859
| 0.456942
| 0.56239
| 0.098418
| 0
| 0
| 0
| 0
| 0
| 0.0096
| 0.078171
| 678
| 14
| 63
| 48.428571
| 0.9008
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
939f20a8a3a9ef2ecac6a8c64d092efb6addf7df
| 94
|
py
|
Python
|
dec/make_reuters_data.py
|
samin91/dec
|
4c001e3343e726d59936529c701b73f1bcb5994c
|
[
"MIT"
] | 408
|
2015-11-19T21:50:16.000Z
|
2022-03-22T08:17:26.000Z
|
dec/make_reuters_data.py
|
XuJiaMing1997/dec
|
e551e01f90a3d67d2ef9c90e968c8faf5d8f857d
|
[
"MIT"
] | 29
|
2016-05-18T10:24:00.000Z
|
2021-09-26T21:43:46.000Z
|
dec/make_reuters_data.py
|
XuJiaMing1997/dec
|
e551e01f90a3d67d2ef9c90e968c8faf5d8f857d
|
[
"MIT"
] | 152
|
2015-11-24T17:30:36.000Z
|
2021-11-11T07:17:03.000Z
|
import dec
print 'Preparing reuters data. This could take a while...'
dec.make_reuters_data()
| 23.5
| 58
| 0.776596
| 15
| 94
| 4.733333
| 0.8
| 0.309859
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12766
| 94
| 3
| 59
| 31.333333
| 0.865854
| 0
| 0
| 0
| 0
| 0
| 0.531915
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.333333
| null | null | 0.333333
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
93af4cfb55df23e45a71c690677d13735bdedb3d
| 126
|
py
|
Python
|
poc/range_slider/admin.py
|
OmkarPathak/poc
|
84ecffd9ddb9c04860b4bc4bdcb5727ea8afa6de
|
[
"MIT"
] | 3
|
2019-04-25T01:54:55.000Z
|
2021-02-14T13:01:59.000Z
|
poc/range_slider/admin.py
|
OmkarPathak/poc
|
84ecffd9ddb9c04860b4bc4bdcb5727ea8afa6de
|
[
"MIT"
] | null | null | null |
poc/range_slider/admin.py
|
OmkarPathak/poc
|
84ecffd9ddb9c04860b4bc4bdcb5727ea8afa6de
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
# Register your models here.
from .models import TrendTable
admin.site.register(TrendTable)
| 21
| 32
| 0.81746
| 17
| 126
| 6.058824
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 126
| 6
| 33
| 21
| 0.927928
| 0.206349
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
93c33b1c9a79044474d3ef7121909f74b3a1f295
| 120
|
py
|
Python
|
tests/batching_test.py
|
thundergolfer/reasoning-about-entailment-tensorflow
|
9ae07d54fb833b6fbf40c7937f5f039207840a34
|
[
"MIT"
] | 10
|
2018-03-01T23:41:03.000Z
|
2022-03-02T09:59:59.000Z
|
tests/batching_test.py
|
thundergolfer/reasoning-about-entailment-tensorflow
|
9ae07d54fb833b6fbf40c7937f5f039207840a34
|
[
"MIT"
] | 2
|
2020-11-13T17:26:54.000Z
|
2021-05-21T14:32:55.000Z
|
tests/batching_test.py
|
thundergolfer/reasoning-about-entailment-tensorflow
|
9ae07d54fb833b6fbf40c7937f5f039207840a34
|
[
"MIT"
] | 6
|
2018-02-28T05:46:13.000Z
|
2019-04-12T22:40:32.000Z
|
from implementation.batching import DataBatcher
class TestDataBatcher():
def test_preprocess(self):
pass
| 15
| 47
| 0.741667
| 12
| 120
| 7.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 120
| 7
| 48
| 17.142857
| 0.916667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0.25
| 0.25
| 0
| 0.75
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
93ca99a8dcfe0a198c8a90981571818074017db2
| 141
|
py
|
Python
|
src/keyKeeper.py
|
qqpayne/keymuch
|
f802a8a7ea8cadc30d9cd4a883917c715b547557
|
[
"Apache-2.0"
] | 1
|
2021-02-13T17:59:33.000Z
|
2021-02-13T17:59:33.000Z
|
src/keyKeeper.py
|
qqpayne/keymuch
|
f802a8a7ea8cadc30d9cd4a883917c715b547557
|
[
"Apache-2.0"
] | null | null | null |
src/keyKeeper.py
|
qqpayne/keymuch
|
f802a8a7ea8cadc30d9cd4a883917c715b547557
|
[
"Apache-2.0"
] | null | null | null |
class Keeper:
def __init__(self, startValue):
self.counter = startValue
def register(self, none):
self.counter += 1
| 20.142857
| 35
| 0.624113
| 16
| 141
| 5.25
| 0.625
| 0.261905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009804
| 0.276596
| 141
| 7
| 36
| 20.142857
| 0.813725
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0
| 0
| 0
| 0.6
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
93d027e05253458214b34c5266bf62b5bdae2c38
| 297
|
py
|
Python
|
framework/cei_python3/exception/ceilog.py
|
macomfan/cei
|
49efb1baf39e0bb3e390791fafa3508226644975
|
[
"MIT"
] | 2
|
2020-05-09T01:54:04.000Z
|
2020-12-31T02:36:45.000Z
|
framework/cei_python3/exception/ceilog.py
|
macomfan/cei
|
49efb1baf39e0bb3e390791fafa3508226644975
|
[
"MIT"
] | 27
|
2020-04-18T11:21:07.000Z
|
2022-02-26T22:22:33.000Z
|
framework/cei_python3/exception/ceilog.py
|
macomfan/cei
|
49efb1baf39e0bb3e390791fafa3508226644975
|
[
"MIT"
] | 1
|
2020-04-26T10:58:02.000Z
|
2020-04-26T10:58:02.000Z
|
class CEILog:
@staticmethod
def set_log_level():
pass
@staticmethod
def show_failure(message):
print(message)
@staticmethod
def show_warning(message):
pass
@staticmethod
def show_info():
pass
def __init__(self):
pass
| 14.85
| 30
| 0.585859
| 30
| 297
| 5.5
| 0.533333
| 0.363636
| 0.345455
| 0.278788
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.340067
| 297
| 19
| 31
| 15.631579
| 0.841837
| 0
| 0
| 0.533333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0.266667
| 0
| 0
| 0.4
| 0.066667
| 0
| 0
| 0
| null | 1
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
93e2872a4d79caddd71ae9ada15f0e6fc6c3daf9
| 26
|
py
|
Python
|
sdk/lusid/__version__.py
|
finbourne/lusid-sdk-python
|
d238c5c661908639dab57d026966630448bfb0d6
|
[
"MIT"
] | 6
|
2018-06-19T15:50:17.000Z
|
2022-03-26T22:53:16.000Z
|
sdk/lusid/__version__.py
|
finbourne/lusid-sdk-python-preview
|
6b1ae2c634f4b9a816e070470e9c8e6e06eae0ee
|
[
"MIT"
] | 98
|
2020-04-15T06:05:43.000Z
|
2022-03-01T10:25:25.000Z
|
sdk/lusid/__version__.py
|
finbourne/lusid-sdk-python-preview
|
6b1ae2c634f4b9a816e070470e9c8e6e06eae0ee
|
[
"MIT"
] | 9
|
2019-09-30T11:19:25.000Z
|
2021-11-17T19:49:59.000Z
|
__version__ = "0.11.3648"
| 13
| 25
| 0.692308
| 4
| 26
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.304348
| 0.115385
| 26
| 1
| 26
| 26
| 0.304348
| 0
| 0
| 0
| 0
| 0
| 0.346154
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
93e98b1d01baab639513cd49821a7496061cf8cc
| 99
|
py
|
Python
|
tests/data/raise_inside_def.py
|
jdufresne/flake8-raise
|
22415a4ae85a9dbb859cc92252ad5f7252b8fc98
|
[
"MIT"
] | 21
|
2020-01-19T17:33:07.000Z
|
2021-10-02T16:53:40.000Z
|
tests/data/raise_inside_def.py
|
jdufresne/flake8-raise
|
22415a4ae85a9dbb859cc92252ad5f7252b8fc98
|
[
"MIT"
] | 3
|
2020-01-20T08:47:49.000Z
|
2020-01-30T16:39:50.000Z
|
tests/data/raise_inside_def.py
|
jdufresne/flake8-raise
|
22415a4ae85a9dbb859cc92252ad5f7252b8fc98
|
[
"MIT"
] | null | null | null |
try:
from foo import bar
except ImportError:
def bar():
raise NotImplementedError
| 14.142857
| 33
| 0.666667
| 11
| 99
| 6
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.282828
| 99
| 6
| 34
| 16.5
| 0.929577
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| true
| 0
| 0.4
| 0
| 0.6
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f51eff3e50f888c3b4f6611e57d0a72f7d5f23a1
| 73
|
py
|
Python
|
scood/utils/__init__.py
|
Jingkang50/ICCV21_SCOOD
|
51204e3788a9e81aa334611072bef106fd9d13ad
|
[
"MIT"
] | 34
|
2021-08-28T03:40:56.000Z
|
2022-03-27T15:05:21.000Z
|
scood/utils/__init__.py
|
xiu10086/ICCV21_SCOOD
|
51204e3788a9e81aa334611072bef106fd9d13ad
|
[
"MIT"
] | 5
|
2021-09-02T09:33:22.000Z
|
2022-03-23T03:15:56.000Z
|
scood/utils/__init__.py
|
xiu10086/ICCV21_SCOOD
|
51204e3788a9e81aa334611072bef106fd9d13ad
|
[
"MIT"
] | 5
|
2021-08-29T04:44:22.000Z
|
2022-03-30T08:13:07.000Z
|
from .logger import setup_logger
from .base import load_yaml, sort_array
| 24.333333
| 39
| 0.835616
| 12
| 73
| 4.833333
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.123288
| 73
| 2
| 40
| 36.5
| 0.90625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
f558145eef84823bc47b5b80d9165c41d498be37
| 2,437
|
py
|
Python
|
prueba.py
|
donaldosebas/lab1-cifrado
|
c1f2ae0d7877703350568bde1764be4ed7874978
|
[
"MIT"
] | null | null | null |
prueba.py
|
donaldosebas/lab1-cifrado
|
c1f2ae0d7877703350568bde1764be4ed7874978
|
[
"MIT"
] | null | null | null |
prueba.py
|
donaldosebas/lab1-cifrado
|
c1f2ae0d7877703350568bde1764be4ed7874978
|
[
"MIT"
] | null | null | null |
import numpy as np
import nltk
import re
from Cipher import Cipher
# from Cipher import FuerzaBruta, EfuerzaBruta, DfuerzaBruta
alphabetS = 'ABCDEFGHIJKLMNÑOPQRSTUVWXYZ'
mensajeCesar = 'Esto es apenas un texto de prueba.'
mensajeAfin = 'Hola Mundo Soy un Hacker!'
mensajeVigenere = 'Esta es La Prueba del Cifrado Vige!'
probabilidad_teorica = {'A': 0.1253, 'B': 0.0142, 'C': 0.0468, 'D': 0.0586, 'E': 0.1368, 'F': 0.0069, 'G': 0.0101, 'H': 0.007, 'I': 0.0625, 'J': 0.0044, 'K': 0.0002, 'L': 0.0497, 'M': 0.0315, 'N': 0.0671, 'Ñ': 0.0031, 'O': 0.0868, 'P': 0.0251, 'Q': 0.0088, 'R':0.0687, 'S':0.0798, 'T':0.0463, 'U': 0.0393, 'V': 0.009, 'W': 0.0001, 'X': 0.0022, 'Y': 0.009, 'Z': 0.0052}
cipher = Cipher(alphabetS, probabilidad_teorica)
llave_cesar = 10
llave_afin = [5, 12]
llave_vig = 'palabra'
d3 = cipher.Dvigenere('bees', 'DYEFESJKBCFSSXSDPPISSVERPOELFWMFUMSIFVHAESEUFTXHRYIQBQEVBTSVSMELBOZSSOSDBWIDWETHEIVHTEHWHYEMFPEDBOSZBFMSBTVWTEHHJPTDBGETMICVFJMFJXMÑBEQMFWYAHQSKBQGABXSIPKVSGMGSTIWWÑXSUPQXKBQUNJOMVBHEWTTIKBVOSNYIKUIUNJWSEPVMKBOOATMQFJQKNÑEILQIVSÑDESJWOSESGHÑIOIFQWSNMIFUSJAKSIFMEILQERSEMWMBQXWQEVMJGYDBVPWÑXIWÑIOUPQZWÑXSVFOSLBFVHKSWVPQHWDEVDPWUNJQXHDSQVFWGWÑHMWSEYFBZIRBFEBBVHWTYIEJQIFDMEIBVEVFGMKMIUNFGSFGMETBIQWMGIDPVIDJKMHTSHWTYOSCSVKFHIFUSVSBOHWTTIKUEVLFIQUPQXKPVSVFEHHQSVNÑKVNQSHWJQHAHIQSTHIKPWXKPMPIBWMTMIUNFWIVJWTHÑMEFBWEUSMJADEVDPEQMFYQSMXEKVQEDUEVJVIETBVXHMSPWMITSSIGAPGSEPIODFGLHFQUNFHILDEQLBVMSBOJAÑHILVWXWNSVWTHILVHILUMQHEIWANMWEPXVWTERHTIQWMTEATOIZBFMSÑGSFGIVAESYFNIHABQSVPPMFJSHWMEWDFQKNBWQSUMZSTMQMFQXHBOKHEMNHBOKNÑEWIBOETSEWJVIJNFVSFDSPISIQVJHELFQXHÑGILGOSKFGMHFQIDVQEAEIEJVIXNWSTHSHMYÑEHWTYXSMIQMPCHWTYGNMXYKBYQAWIVLBOCVFWYSSHYHDSQHDMPAFQXHEIEKJWXHUIOWTVIUPVHHRYIIBVEWTIHABWIWTTIKBFENÑIGDJTWWUSXSMHILPOCVJWTNTSIFMSPSTMQMJPSÑBOIKTIHWBUYWMGSFPGMEJIQMPTEKBIQYBREKBWYLPTVWTSVWTCWSMZEKMEZAEEWANIPSUEMLMIWVJNSIVIHHIEGWSUYWFOWHMWIHTGYKFDGSFQWNBOXNSEOHTMQVJKIFBWOHNMVSSSQXJNEEFQXWZFEKUSOHNIWHSTVWÑHMHMEMFDVIVVOMVBHIFTYWHKSWÑJSUNFWIISSHNKSYFQIUNFRSUPQWWKSCWTTIKPGSFGMEVPQSLJQGAFVXHEIWVFQHHTLSKBWHWTTYWTIOUPVERPQHWGVEQCEVMPOSEFEVKBDSDBGLHSVISCEWNTEQYSIZWIIPWÑXILPFVWMETAFHVSEIOHTWEUSMJADMSLCVMDMEQMFFEBPOEHQEGSMYDVFYQLPOIUMMTLBHSEJIQMSEWNÑSHWMSWAÑHMYFQELSIGAUEFSTMQFJQKNÑEMFGOIPJSQVFZSRTMQISMWSVQEIPVYFBOELJQJAÑMXSTJIUIEWWÑUYWTITKPHYUJVMSÑIGDJTWWTWSDBVILZOYFBVILRYIDPWELUVSFPPSLEIOSDSPNÑMHSEPEQBLETJEQISIZATXSQBQSMBHSWÑWYLDSHADIWLJQOSWEOAPWESZYHSEIEKJWXHUIOWT')
print('Desencriptacion cifrado vigenere: \n',d3,'\n')
| 135.388889
| 1,582
| 0.872384
| 152
| 2,437
| 13.953947
| 0.677632
| 0.00943
| 0.015087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.060095
| 0.050882
| 2,437
| 18
| 1,583
| 135.388889
| 0.856896
| 0.0238
| 0
| 0
| 0
| 0
| 0.73423
| 0.662742
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.266667
| 0
| 0.266667
| 0.066667
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
f57758ccb73fd1b65b8fadeed9827814f96d9a96
| 43
|
py
|
Python
|
MTLib/plots/__init__.py
|
skrrrlev/Masters_Thesis
|
5b096b01ffdcb8d723723769058d43951c9db515
|
[
"MIT"
] | null | null | null |
MTLib/plots/__init__.py
|
skrrrlev/Masters_Thesis
|
5b096b01ffdcb8d723723769058d43951c9db515
|
[
"MIT"
] | null | null | null |
MTLib/plots/__init__.py
|
skrrrlev/Masters_Thesis
|
5b096b01ffdcb8d723723769058d43951c9db515
|
[
"MIT"
] | null | null | null |
from .annotate import annotate_scatter_plot
| 43
| 43
| 0.906977
| 6
| 43
| 6.166667
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.069767
| 43
| 1
| 43
| 43
| 0.925
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
1979dc15556f611c51ffa72df7ea3aa432516d7b
| 212
|
py
|
Python
|
structureSearch/templatetags/structureSearch_filters.py
|
xingyifei2016/clusterCAD
|
fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6
|
[
"BSD-3-Clause-LBNL"
] | 7
|
2018-11-06T00:04:47.000Z
|
2021-08-05T04:37:12.000Z
|
structureSearch/templatetags/structureSearch_filters.py
|
xingyifei2016/clusterCAD
|
fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6
|
[
"BSD-3-Clause-LBNL"
] | 26
|
2017-08-11T21:51:46.000Z
|
2022-03-11T23:18:25.000Z
|
structureSearch/templatetags/structureSearch_filters.py
|
xingyifei2016/clusterCAD
|
fb139edc90e3b963ac6bfc9f6890f0a4e4f356d6
|
[
"BSD-3-Clause-LBNL"
] | 7
|
2017-08-16T17:28:40.000Z
|
2022-03-02T00:07:00.000Z
|
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.http import urlquote
register = template.Library()
@register.filter
def urlq(str):
return urlquote(str)
| 21.2
| 55
| 0.806604
| 27
| 212
| 6.333333
| 0.592593
| 0.175439
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122642
| 212
| 9
| 56
| 23.555556
| 0.919355
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0.428571
| 0.142857
| 0.714286
| 0
| 1
| 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
| 1
| 1
| 1
| 0
|
0
| 5
|
19ae2b8725c19cacc3c52442e00a482ec78ff84f
| 53
|
py
|
Python
|
gala/integrate/__init__.py
|
akeemlh/gala
|
0fdaf9159bccc59af2a3525f2926e04501754f48
|
[
"MIT"
] | 86
|
2016-05-19T21:58:43.000Z
|
2022-03-22T14:56:37.000Z
|
gala/integrate/__init__.py
|
akeemlh/gala
|
0fdaf9159bccc59af2a3525f2926e04501754f48
|
[
"MIT"
] | 170
|
2016-06-27T14:10:26.000Z
|
2022-03-10T22:52:39.000Z
|
gala/integrate/__init__.py
|
akeemlh/gala
|
0fdaf9159bccc59af2a3525f2926e04501754f48
|
[
"MIT"
] | 66
|
2016-09-13T07:31:29.000Z
|
2022-03-08T15:08:45.000Z
|
from .pyintegrators import *
from .timespec import *
| 17.666667
| 28
| 0.773585
| 6
| 53
| 6.833333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.150943
| 53
| 2
| 29
| 26.5
| 0.911111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
2758ae17c67f63a93bbaa0e94bdb16fb928a2573
| 1,410
|
py
|
Python
|
python/anyascii/_data/_0d6.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_0d6.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
python/anyascii/_data/_0d6.py
|
casept/anyascii
|
d4f426b91751254b68eaa84c6cd23099edd668e6
|
[
"ISC"
] | null | null | null |
b='Hyeo Hyeog Hyeokk Hyeogs Hyeon Hyeonj Hyeonh Hyeod Hyeol Hyeolg Hyeolm Hyeolb Hyeols Hyeolt Hyeolp Hyeolh Hyeom Hyeob Hyeobs Hyeos Hyeoss Hyeong Hyeoj Hyeoch Hyeok Hyeot Hyeop Hyeoh Hye Hyeg Hyekk Hyegs Hyen Hyenj Hyenh Hyed Hyel Hyelg Hyelm Hyelb Hyels Hyelt Hyelp Hyelh Hyem Hyeb Hyebs Hyes Hyess Hyeng Hyej Hyech Hyek Hyet Hyep Hyeh Ho Hog Hokk Hogs Hon Honj Honh Hod Hol Holg Holm Holb Hols Holt Holp Holh Hom Hob Hobs Hos Hoss Hong Hoj Hoch Hok Hot Hop Hoh Hwa Hwag Hwakk Hwags Hwan Hwanj Hwanh Hwad Hwal Hwalg Hwalm Hwalb Hwals Hwalt Hwalp Hwalh Hwam Hwab Hwabs Hwas Hwass Hwang Hwaj Hwach Hwak Hwat Hwap Hwah Hwae Hwaeg Hwaekk Hwaegs Hwaen Hwaenj Hwaenh Hwaed Hwael Hwaelg Hwaelm Hwaelb Hwaels Hwaelt Hwaelp Hwaelh Hwaem Hwaeb Hwaebs Hwaes Hwaess Hwaeng Hwaej Hwaech Hwaek Hwaet Hwaep Hwaeh Hoe Hoeg Hoekk Hoegs Hoen Hoenj Hoenh Hoed Hoel Hoelg Hoelm Hoelb Hoels Hoelt Hoelp Hoelh Hoem Hoeb Hoebs Hoes Hoess Hoeng Hoej Hoech Hoek Hoet Hoep Hoeh Hyo Hyog Hyokk Hyogs Hyon Hyonj Hyonh Hyod Hyol Hyolg Hyolm Hyolb Hyols Hyolt Hyolp Hyolh Hyom Hyob Hyobs Hyos Hyoss Hyong Hyoj Hyoch Hyok Hyot Hyop Hyoh Hu Hug Hukk Hugs Hun Hunj Hunh Hud Hul Hulg Hulm Hulb Huls Hult Hulp Hulh Hum Hub Hubs Hus Huss Hung Huj Huch Huk Hut Hup Huh Hwo Hwog Hwokk Hwogs Hwon Hwonj Hwonh Hwod Hwol Hwolg Hwolm Hwolb Hwols Hwolt Hwolp Hwolh Hwom Hwob Hwobs Hwos Hwoss Hwong Hwoj Hwoch Hwok Hwot Hwop Hwoh Hwe Hweg Hwekk Hwegs'
| 1,410
| 1,410
| 0.817021
| 257
| 1,410
| 4.48249
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.180851
| 1,410
| 1
| 1,410
| 1,410
| 0.997403
| 0
| 0
| 0
| 0
| 1
| 0.996456
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
279e6056707ea5cbb4acd8ad557d1012bc82e649
| 2,566
|
py
|
Python
|
models.py
|
HashirZahir/Flask-Messenger
|
3860a5e9e40824971b0de869b5448cf438d2bc65
|
[
"MIT"
] | null | null | null |
models.py
|
HashirZahir/Flask-Messenger
|
3860a5e9e40824971b0de869b5448cf438d2bc65
|
[
"MIT"
] | null | null | null |
models.py
|
HashirZahir/Flask-Messenger
|
3860a5e9e40824971b0de869b5448cf438d2bc65
|
[
"MIT"
] | null | null | null |
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import LoginManager, UserMixin
# create an instance of SQLAlchemy and LoginManager to pass on to run.py
db = SQLAlchemy()
# TODO: shift login manager to run.py
login_manager = LoginManager()
login_manager.login_view = 'login'
@login_manager.user_loader
def load_user(id):
return User.query.get(int(id))
users = db.Table('users',
db.Column('thread_id', db.Integer, db.ForeignKey('thread.id'), primary_key=True),
db.Column('user_id', db.Integer, db.ForeignKey('user.id'), primary_key=True)
)
# database schema for users
class User(UserMixin, db.Model):
__tablename__ = "user"
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(64), index=True, unique=True, nullable=False)
email = db.Column(db.String(120), index=True, unique=True, nullable=False)
password_hash = db.Column(db.String(128), nullable=False)
# threads = db.relationship('Thread', secondary=threads, lazy='subquery',
# backref=db.backref('users', lazy=True))
def set_password(self, password):
self.password_hash = generate_password_hash(password)
def check_password(self, password):
return check_password_hash(self.password_hash, password)
# function thats called when object is prointed
# useful for debugging
def __repr__(self):
return '<User: {}>'.format(self.username)
# user sends message to thread
class Thread(db.Model):
__tablename__ = "thread"
id = db.Column(db.Integer, primary_key=True)
# name: thread name for groups. TODO: default value for one to one chats
name = db.Column(db.String(50), nullable=False)
messages = db.relationship('Message', backref='thread', lazy=True)
users = db.relationship('User', secondary=users, lazy='subquery',
backref=db.backref('threads', lazy=True))
def __repr__(self):
return '<Thread: {}>'.format(self.id)
# messages in each thread
class Message(db.Model):
__tablename__ = "message"
id = db.Column(db.Integer, primary_key=True)
thread_id = db.Column(db.Integer, db.ForeignKey('thread.id'))
author_id = db.Column(db.Integer)
message_text = db.Column(db.String(1000))
time_stamp = db.Column(db.DateTime, index=True, default=datetime.utcnow)
def __repr__(self):
return '<Message: {}>'.format(self.message_text)
| 34.675676
| 86
| 0.690179
| 339
| 2,566
| 5.056047
| 0.294985
| 0.060677
| 0.064177
| 0.035006
| 0.200117
| 0.141774
| 0.05776
| 0.05776
| 0
| 0
| 0
| 0.006718
| 0.187841
| 2,566
| 74
| 87
| 34.675676
| 0.815739
| 0.171083
| 0
| 0.136364
| 1
| 0
| 0.066047
| 0
| 0
| 0
| 0
| 0.013514
| 0
| 1
| 0.136364
| false
| 0.136364
| 0.090909
| 0.113636
| 0.772727
| 0
| 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
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
27e40be0215eee34dff2ae6c6b1c0d6d2b0afd38
| 62
|
py
|
Python
|
pycomlink/io/__init__.py
|
cchwala/pycomlink
|
979d5595243a06278052023cc5f9aec09fbd8e12
|
[
"BSD-3-Clause"
] | 12
|
2017-04-26T07:27:39.000Z
|
2021-08-31T13:23:59.000Z
|
pycomlink/io/__init__.py
|
cchwala/pycomlink
|
979d5595243a06278052023cc5f9aec09fbd8e12
|
[
"BSD-3-Clause"
] | 72
|
2017-08-24T20:15:24.000Z
|
2022-03-09T08:55:03.000Z
|
pycomlink/io/__init__.py
|
cchwala/pycomlink
|
979d5595243a06278052023cc5f9aec09fbd8e12
|
[
"BSD-3-Clause"
] | 18
|
2016-11-08T15:33:12.000Z
|
2021-07-13T11:55:19.000Z
|
from __future__ import absolute_import
from . import examples
| 20.666667
| 38
| 0.854839
| 8
| 62
| 6
| 0.625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 62
| 2
| 39
| 31
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
27f8aa08445a9a14b9a3dd94bb3b1a791f5a93a4
| 28
|
py
|
Python
|
openalpr_x86/python/openalpr/__init__.py
|
grzes5003/LicensePlateRec
|
c051db15000e8165aeaf75bed8bc1bdb32914576
|
[
"MIT"
] | null | null | null |
openalpr_x86/python/openalpr/__init__.py
|
grzes5003/LicensePlateRec
|
c051db15000e8165aeaf75bed8bc1bdb32914576
|
[
"MIT"
] | 1
|
2021-01-03T15:50:56.000Z
|
2021-01-09T18:28:46.000Z
|
openalpr_x86/python/build/lib/openalpr/__init__.py
|
grzes5003/LicensePlateRec
|
c051db15000e8165aeaf75bed8bc1bdb32914576
|
[
"MIT"
] | null | null | null |
# from openalpr import Alpr
| 14
| 27
| 0.785714
| 4
| 28
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178571
| 28
| 1
| 28
| 28
| 0.956522
| 0.892857
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
27fff374e0639b879393c02b13fd971ca99bd7a7
| 278
|
py
|
Python
|
esrally/mechanic/__init__.py
|
akhil-rane/rally
|
bc5513ca3a5a9faaebabf952af196335467a289a
|
[
"Apache-2.0"
] | null | null | null |
esrally/mechanic/__init__.py
|
akhil-rane/rally
|
bc5513ca3a5a9faaebabf952af196335467a289a
|
[
"Apache-2.0"
] | null | null | null |
esrally/mechanic/__init__.py
|
akhil-rane/rally
|
bc5513ca3a5a9faaebabf952af196335467a289a
|
[
"Apache-2.0"
] | null | null | null |
# expose only the minimum API
from .mechanic import ClusterMetaInfo, NodeMetaInfo, StartEngine, EngineStarted, StopEngine, EngineStopped, OnBenchmarkStart, \
BenchmarkStarted, OnBenchmarkStop, BenchmarkStopped, ResetRelativeTime, MechanicActor, cluster_distribution_version
| 69.5
| 127
| 0.848921
| 23
| 278
| 10.173913
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097122
| 278
| 3
| 128
| 92.666667
| 0.932271
| 0.097122
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
fda6cbf27814e41db8d96903eb2e52ae9daaadad
| 173
|
py
|
Python
|
configfactory/views.py
|
antonrh/configfactory
|
6ea89fba5fdb575e8278ffa4b20b5a74def4a9d4
|
[
"MIT"
] | 2
|
2017-09-27T17:30:21.000Z
|
2017-09-30T06:15:15.000Z
|
configfactory/views.py
|
antonrh/configfactory
|
6ea89fba5fdb575e8278ffa4b20b5a74def4a9d4
|
[
"MIT"
] | null | null | null |
configfactory/views.py
|
antonrh/configfactory
|
6ea89fba5fdb575e8278ffa4b20b5a74def4a9d4
|
[
"MIT"
] | 3
|
2017-08-15T07:18:57.000Z
|
2020-05-04T05:55:27.000Z
|
from django.http import HttpResponse
from django.views import View
class IndexView(View):
def get(self, request):
return HttpResponse("Hello, ConfigFactory!")
| 21.625
| 52
| 0.739884
| 21
| 173
| 6.095238
| 0.761905
| 0.15625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.17341
| 173
| 7
| 53
| 24.714286
| 0.895105
| 0
| 0
| 0
| 0
| 0
| 0.121387
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.4
| 0.2
| 1
| 0
| 1
| 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
| 1
| 1
| 1
| 0
|
0
| 5
|
fdb50790ac71a56cef2cf80f6880afd6cec34092
| 161
|
py
|
Python
|
zfit/binned.py
|
nsahoo/zfit
|
fcad2578f31138f5383f7fa5de6c0f8c6b1dbaa4
|
[
"BSD-3-Clause"
] | 129
|
2018-03-24T22:27:55.000Z
|
2022-03-19T21:04:07.000Z
|
zfit/binned.py
|
nsahoo/zfit
|
fcad2578f31138f5383f7fa5de6c0f8c6b1dbaa4
|
[
"BSD-3-Clause"
] | 195
|
2018-03-22T11:31:47.000Z
|
2022-03-29T17:01:45.000Z
|
zfit/binned.py
|
nsahoo/zfit
|
fcad2578f31138f5383f7fa5de6c0f8c6b1dbaa4
|
[
"BSD-3-Clause"
] | 45
|
2018-03-22T10:12:31.000Z
|
2022-02-01T10:45:27.000Z
|
# Copyright (c) 2020 zfit
from ._variables.axis import RegularBinning, VariableBinning, Binnings
__all__ = ['RegularBinning', 'VariableBinning', 'Binnings']
| 23
| 70
| 0.763975
| 15
| 161
| 7.866667
| 0.8
| 0.491525
| 0.627119
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028369
| 0.124224
| 161
| 6
| 71
| 26.833333
| 0.808511
| 0.142857
| 0
| 0
| 0
| 0
| 0.274074
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
fdee64077de73e71e86ae34e0fef2cbd5b603ece
| 165
|
py
|
Python
|
aulas/09-api-padroes-de-codigo/porco.py
|
vitoriahmc/dev-aberto
|
da371352238c290aed918dd049e63e10e444f853
|
[
"MIT"
] | 2
|
2018-08-06T20:06:26.000Z
|
2019-05-14T15:21:09.000Z
|
aulas/09-api-padroes-de-codigo/porco.py
|
vitoriahmc/dev-aberto
|
da371352238c290aed918dd049e63e10e444f853
|
[
"MIT"
] | 49
|
2018-07-12T13:21:53.000Z
|
2018-12-13T11:42:25.000Z
|
aulas/09-api-padroes-de-codigo/porco.py
|
vitoriahmc/dev-aberto
|
da371352238c290aed918dd049e63e10e444f853
|
[
"MIT"
] | 11
|
2018-08-06T18:58:07.000Z
|
2019-08-06T11:54:22.000Z
|
def funcaoQueFazAlgo(a, b):
print('Algo!!')
def outra_funcao(arg1, arg2):
print("Outra funcao!", arg1+arg2)
funcaoQueFazAlgo(1, 2)
outra_funcao(3, 4)
| 12.692308
| 40
| 0.660606
| 23
| 165
| 4.652174
| 0.608696
| 0.308411
| 0.280374
| 0.35514
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058824
| 0.175758
| 165
| 12
| 41
| 13.75
| 0.727941
| 0
| 0
| 0
| 0
| 0
| 0.116564
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8bf8b171c5930c731fceb995c7d70d64a1f367c4
| 2,227
|
py
|
Python
|
pyfsdb/tests/test_coluniq.py
|
gawseed/pyfsdb
|
40cd3125827189ced722ad5773765077adea595f
|
[
"MIT"
] | 1
|
2022-02-09T03:17:49.000Z
|
2022-02-09T03:17:49.000Z
|
pyfsdb/tests/test_coluniq.py
|
gawseed/pyfsdb
|
40cd3125827189ced722ad5773765077adea595f
|
[
"MIT"
] | 1
|
2021-02-24T22:15:45.000Z
|
2021-02-25T00:58:17.000Z
|
pyfsdb/tests/test_coluniq.py
|
gawseed/pyfsdb
|
40cd3125827189ced722ad5773765077adea595f
|
[
"MIT"
] | 1
|
2020-09-28T13:04:08.000Z
|
2020-09-28T13:04:08.000Z
|
import unittest
import re
def noop():
pass
def truncate_comments(value):
value = re.sub("\n# +\\|.*", "", value)
return value
class TestColUniq(unittest.TestCase):
def test_single_uniques(self):
from io import StringIO
data = "#fsdb -F t a b c\na\tb\tc\nb\tc\td\na\tb\td\n"
from pyfsdb.tools.pdbcoluniq import filter_unique_columns
outh = StringIO()
outh.close = noop
datah = StringIO(data)
filter_unique_columns(datah, outh, ['a'])
# check the the result
self.assertEqual(truncate_comments(outh.getvalue()),
"#fsdb -F t a\na\nb\n",
"resulting values are right from uniq")
outh = StringIO()
outh.close = noop
datah = StringIO(data)
filter_unique_columns(datah, outh, ['a'], count=True)
# check the the result
self.assertEqual(truncate_comments(outh.getvalue()),
"#fsdb -F t a count\na\t2\nb\t1\n",
"resulting values are right from uniq")
def test_multi_keys(self):
from io import StringIO
data = "#fsdb -F t a b c\na\tb\tc\nb\tc\td\na\tb\td\n"
from pyfsdb.tools.pdbcoluniq import filter_unique_columns
outh = StringIO()
outh.close = noop
datah = StringIO(data)
filter_unique_columns(datah, outh, ['a', 'b'])
# check the the result
self.assertEqual(truncate_comments(outh.getvalue()),
"#fsdb -F t a b\na\tb\nb\tc\n",
"resulting values are right from uniq")
#
# three columns with counting
#
data = "#fsdb -F t x y z\na\tb\tc\nb\tc\td\na\tb\td\na\tb\tc\n"
from pyfsdb.tools.pdbcoluniq import filter_unique_columns
outh = StringIO()
outh.close = noop
datah = StringIO(data)
filter_unique_columns(datah, outh, ['x', 'y', 'z'], count=True)
# check the the result
self.assertEqual(truncate_comments(outh.getvalue()),
"#fsdb -F t x y z count\na\tb\tc\t2\na\tb\td\t1\nb\tc\td\t1\n",
"resulting values are right from uniq")
| 30.094595
| 87
| 0.564436
| 296
| 2,227
| 4.168919
| 0.219595
| 0.032415
| 0.034036
| 0.028363
| 0.805511
| 0.8047
| 0.794976
| 0.743112
| 0.688006
| 0.67342
| 0
| 0.003292
| 0.317916
| 2,227
| 73
| 88
| 30.506849
| 0.809085
| 0.049843
| 0
| 0.586957
| 0
| 0.086957
| 0.211301
| 0.067426
| 0
| 0
| 0
| 0
| 0.086957
| 1
| 0.086957
| false
| 0.021739
| 0.152174
| 0
| 0.282609
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
8bfbb1157022b28acf98a8a9b75fdfcf5b49bef6
| 165
|
py
|
Python
|
website/sample.py
|
GokulramGHV/Quick-Note
|
bc71a36e8ca566d58bd5dae32a4afcadcea82a29
|
[
"MIT"
] | 4
|
2021-11-12T21:25:10.000Z
|
2021-12-16T07:18:38.000Z
|
website/sample.py
|
GokulramGHV/Quick-Note
|
bc71a36e8ca566d58bd5dae32a4afcadcea82a29
|
[
"MIT"
] | null | null | null |
website/sample.py
|
GokulramGHV/Quick-Note
|
bc71a36e8ca566d58bd5dae32a4afcadcea82a29
|
[
"MIT"
] | null | null | null |
from datetime import datetime, timedelta
nine_hours_from_now = datetime.utcnow() + timedelta(hours=5, minutes=30)
print('{:%H:%M:%S}'.format(nine_hours_from_now))
| 27.5
| 72
| 0.757576
| 25
| 165
| 4.76
| 0.64
| 0.151261
| 0.218487
| 0.268908
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019868
| 0.084848
| 165
| 5
| 73
| 33
| 0.768212
| 0
| 0
| 0
| 0
| 0
| 0.067073
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 0
| 1
| 1
| 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
| 1
| 0
| 0
| 0
|
0
| 5
|
e323f5aa9f63a4a0cb1909f39479796dcc2b6f2a
| 8,211
|
py
|
Python
|
SSM/models/vae.py
|
taufikxu/FD-ScoreMatching
|
9df0789bb98bb798b3de57072f63ee4b2f19947f
|
[
"MIT"
] | 12
|
2020-05-23T10:02:12.000Z
|
2021-03-25T19:54:00.000Z
|
SSM/models/vae.py
|
taufikxu/FD-ScoreMatching
|
9df0789bb98bb798b3de57072f63ee4b2f19947f
|
[
"MIT"
] | 6
|
2021-03-19T15:30:28.000Z
|
2022-03-12T00:51:16.000Z
|
SSM/models/vae.py
|
taufikxu/FD-ScoreMatching
|
9df0789bb98bb798b3de57072f63ee4b2f19947f
|
[
"MIT"
] | 4
|
2020-11-04T03:52:45.000Z
|
2021-12-28T16:07:08.000Z
|
import torch
import torch.nn as nn
import torch.nn.functional as F
class MLPEncoder(nn.Module):
def __init__(self, config):
super().__init__()
self.z_dim = config.model.z_dim
self.channels = config.data.channels
self.image_size = config.data.image_size
self.dataset = config.data.dataset
self.main = nn.Sequential(
nn.Linear(784, 256),
nn.Tanh(),
nn.Linear(256, 256),
nn.Tanh()
)
self.mean = nn.Linear(256, self.z_dim)
self.log_std = nn.Linear(256, self.z_dim)
def forward(self, inputs):
h = self.main(inputs.view(inputs.shape[0], -1))
mean = self.mean(h)
log_std = self.log_std(h)
return mean, log_std
class MLPDecoder(nn.Module):
def __init__(self, config):
super().__init__()
self.z_dim = config.model.z_dim
self.channels = config.data.channels
self.image_size = config.data.image_size
self.dataset = config.data.dataset
self.main = nn.Sequential(
nn.Linear(self.z_dim, 256),
nn.Tanh(),
nn.Linear(256, 256),
nn.Tanh(),
nn.Linear(256, 784)
)
def forward(self, inputs):
return self.main(inputs.view(inputs.shape[0], -1)).view(inputs.shape[0],
self.channels,
self.image_size,
self.image_size)
class MLPScore(nn.Module):
def __init__(self, config):
super().__init__()
self.z_dim = config.model.z_dim
self.main = nn.Sequential(
nn.Linear(784 + self.z_dim, 256),
nn.Tanh(),
nn.Linear(256, 256),
nn.Tanh(),
nn.Linear(256, self.z_dim)
)
def forward(self, X, z):
X = X.view(X.shape[0], -1)
Xz = torch.cat([X, z], dim=-1)
h = self.main(Xz)
return h
class MLPImplicitEncoder(nn.Module):
def __init__(self, config):
super().__init__()
self.eps_dim = config.model.eps_dim
self.z_dim = config.model.z_dim
self.main = nn.Sequential(
nn.Linear(784 + self.eps_dim, 256),
nn.Tanh(),
nn.Linear(256, 256),
nn.Tanh(),
nn.Linear(256, self.z_dim)
)
def forward(self, X):
eps = torch.randn(X.shape[0], self.eps_dim, device=X.device)
flattened_X = X.view(X.shape[0], -1)
X_eps = torch.cat([flattened_X, eps], dim=-1)
z = self.main(X_eps)
return z
class Encoder(nn.Module):
def __init__(self, config):
super().__init__()
self.nef = config.model.nef
self.z_dim = config.model.z_dim
self.channels = config.data.channels
self.image_size = config.data.image_size
self.dataset = config.data.dataset
self.main = nn.Sequential(
nn.Conv2d(self.channels, self.nef * 1, 5, stride=2, padding=2),
nn.ReLU(inplace=True),
nn.Conv2d(self.nef * 1, self.nef * 2, 5, stride=2, padding=2),
nn.ReLU(inplace=True),
nn.Conv2d(self.nef * 2, self.nef * 4, 5, stride=2, padding=2),
nn.ReLU(inplace=True),
nn.Conv2d(self.nef * 4, self.nef * 8, 5, stride=2, padding=2),
nn.ReLU(inplace=True)
)
self.flatten = nn.Sequential(
nn.Linear((self.image_size // 2 ** 4) ** 2 * self.nef * 8, 512),
nn.ReLU(inplace=True)
)
self.mean = nn.Linear(512, self.z_dim)
self.log_std = nn.Linear(512, self.z_dim)
def forward(self, inputs):
h = self.main(inputs)
h = h.view(h.shape[0], -1)
h = self.flatten(h)
mean = self.mean(h)
log_std = self.log_std(h)
return mean, log_std
class Decoder(nn.Module):
def __init__(self, config):
super().__init__()
self.ndf = config.model.ndf
self.z_dim = config.model.z_dim
self.channels = config.data.channels
self.image_size = config.data.image_size
self.dataset = config.data.dataset
self.fc = nn.Linear(self.z_dim, self.ndf * 8 * 4 * 4)
self.main = nn.Sequential(
nn.ConvTranspose2d(self.ndf * 8, self.ndf * 4, 5, stride=2, padding=2, output_padding=1),
nn.ReLU(inplace=True),
nn.ConvTranspose2d(self.ndf * 4, self.ndf * 2, 5, stride=2, padding=2, output_padding=1),
nn.ReLU(inplace=True),
nn.ConvTranspose2d(self.ndf * 2, self.ndf, 5, stride=2, padding=2, output_padding=1),
nn.ReLU(inplace=True),
nn.ConvTranspose2d(self.ndf, self.channels, 5, stride=2, padding=2, output_padding=1),
nn.Tanh()
)
self.log_std = nn.Parameter(torch.ones(1, self.channels, self.image_size, self.image_size) * -0.602,
requires_grad=False)
def forward(self, inputs):
h = self.fc(inputs)
h = h.view(-1, self.ndf * 8, 4, 4)
h = self.main(h)
mean = h.view(-1, self.channels, self.image_size, self.image_size)
return mean, self.log_std
class Score(nn.Module):
def __init__(self, config):
super().__init__()
self.nef = config.model.nef
self.z_dim = config.model.z_dim
self.channels = config.data.channels
self.image_size = config.data.image_size
self.dataset = config.data.dataset
self.zfc = nn.Sequential(
nn.Linear(self.z_dim, self.image_size ** 2),
nn.Softplus()
)
self.main = nn.Sequential(
nn.Conv2d(self.channels + 1, self.nef * 1, 5, stride=2, padding=2),
nn.Softplus(),
nn.Conv2d(self.nef * 1, self.nef * 2, 5, stride=2, padding=2),
nn.Softplus(),
nn.Conv2d(self.nef * 2, self.nef * 4, 5, stride=2, padding=2),
nn.Softplus(),
nn.Conv2d(self.nef * 4, self.nef * 8, 5, stride=2, padding=2),
nn.Softplus()
)
self.flatten = nn.Sequential(
nn.Linear((self.image_size // 2 ** 4) ** 2 * self.nef * 8, 512),
nn.Softplus()
)
self.score = nn.Linear(512, self.z_dim)
def forward(self, X, z):
z = self.zfc(z).view(X.shape[0], 1, X.shape[2], X.shape[3])
Xz = torch.cat([X, z], dim=1)
h = self.main(Xz)
h = h.view(h.shape[0], -1)
h = self.flatten(h)
score = self.score(h)
return score
class ImplicitEncoder(nn.Module):
def __init__(self, config):
super().__init__()
self.nef = config.model.nef
self.z_dim = config.model.z_dim
self.eps_dim = config.model.eps_dim
self.image_size = config.data.image_size
self.channels = config.data.channels
self.dataset = config.data.dataset
self.noise_fc = nn.Sequential(
nn.Linear(self.eps_dim, self.image_size ** 2),
nn.ReLU(inplace=True)
)
self.main = nn.Sequential(
nn.Conv2d(self.channels + 1, self.nef * 1, 5, stride=2, padding=2),
nn.ReLU(inplace=True),
nn.Conv2d(self.nef * 1, self.nef * 2, 5, stride=2, padding=2),
nn.ReLU(inplace=True),
nn.Conv2d(self.nef * 2, self.nef * 4, 5, stride=2, padding=2),
nn.ReLU(inplace=True),
nn.Conv2d(self.nef * 4, self.nef * 8, 5, stride=2, padding=2)
)
self.flatten = nn.Sequential(
nn.Linear((self.image_size // 2 ** 4) ** 2 * self.nef * 8, 512),
nn.ReLU(inplace=True)
)
self.fc = nn.Linear(512, self.z_dim)
def forward(self, inputs):
noise = torch.randn(inputs.shape[0], self.eps_dim, device=inputs.device)
noise = self.noise_fc(noise).view(inputs.shape[0], 1, inputs.shape[2], inputs.shape[3])
noisy_inputs = torch.cat([inputs, noise], dim=1)
h = self.main(noisy_inputs)
h = h.view(h.shape[0], -1)
h = self.flatten(h)
h = self.fc(h)
return h
| 35.545455
| 108
| 0.542199
| 1,127
| 8,211
| 3.820763
| 0.071872
| 0.027868
| 0.037157
| 0.055736
| 0.835578
| 0.813516
| 0.758941
| 0.743381
| 0.691129
| 0.627497
| 0
| 0.042158
| 0.318232
| 8,211
| 230
| 109
| 35.7
| 0.727045
| 0
| 0
| 0.62439
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.078049
| false
| 0
| 0.014634
| 0.004878
| 0.170732
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
e352ac3ce2f3075181af4905f2019925f3dd985e
| 3,083
|
py
|
Python
|
results/icse22/raw_csv/table3.py
|
vlab-cs-ucsb/quacky
|
c031577883550820e2586ce530e59eb30aeccc37
|
[
"BSD-2-Clause"
] | 1
|
2022-02-28T18:10:29.000Z
|
2022-02-28T18:10:29.000Z
|
results/icse22/raw_csv/table3.py
|
vlab-cs-ucsb/quacky
|
c031577883550820e2586ce530e59eb30aeccc37
|
[
"BSD-2-Clause"
] | null | null | null |
results/icse22/raw_csv/table3.py
|
vlab-cs-ucsb/quacky
|
c031577883550820e2586ce530e59eb30aeccc37
|
[
"BSD-2-Clause"
] | null | null | null |
# Generates table 3 in the ICSE 2022 technical paper.
import csv
import math
datasets = ['ec2', 'iam', 's3'] # change me!
for dataset in datasets:
reader = csv.reader(open('{}.csv'.format(dataset), 'r'))
data = list(reader)[1:]
for i in range(len(data)):
for j in [4, 6, 7, 8, 11, 13, 14, 15]:
if data[i][j] == '':
data[i][j] == 0
else:
data[i][j] = int(data[i][j])
policies = set([line[0] for line in data])
for policy in policies:
if policy == 'Policy 1':
continue
out = ''
out += policy + ','
total = sum([float(line[3]) + float(line[10]) for line in data if line[0] == policy])
total += sum([float(line[5]) for line in data if line[0] == policy and line[2] == 'SAT'])
total += sum([float(line[12]) for line in data if line[0] == policy and line[9] == 'SAT'])
out += str(total / (len([line for line in data if line[0] == policy]) * 1000)) + ','
total = len([line for line in data if line[0] == policy and line[2] == 'SAT' and line[9] == 'UNSAT'])
out += str(total) + ','
total = len([line for line in data if line[0] == policy and line[2] == 'UNSAT' and line[9] == 'SAT'])
out += str(total) + ','
total = len([line for line in data if line[0] == policy and line[2] == 'UNSAT' and line[9] == 'UNSAT'])
out += str(total) + ','
total = len([line for line in data if line[0] == policy and line[2] == 'SAT' and line[9] == 'SAT'])
out += str(total) + ','
for i in [4]:
try:
total = sum([int(line[i]) for line in data if line[0] == policy and line[2] == 'SAT' and line[9] == 'UNSAT'])
out += str(math.log2(total // len([line for line in data if line[0] == policy and line[2] == 'SAT' and line[9] == 'UNSAT']))) + ','
except:
out += ','
for i in [4]:
try:
total2 = sum([math.log2(int(line[i])) for line in data if line[0] == policy and line[2] == 'SAT' and line[9] == 'UNSAT'])
out += str((total2 / len([line for line in data if line[0] == policy and line[2] == 'SAT' and line[9] == 'UNSAT']))) + ','
except:
out += ','
for i in [11]:
try:
total = sum([int(line[i]) for line in data if line[0] == policy and line[2] == 'UNSAT' and line[9] == 'SAT'])
out += str(math.log2(total // len([line for line in data if line[0] == policy and line[2] == 'UNSAT' and line[9] == 'SAT']))) + ','
except:
out += ','
for i in [11]:
try:
total2 = sum([math.log2(int(line[i])) for line in data if line[0] == policy and line[2] == 'UNSAT' and line[9] == 'SAT'])
out += str((total2 / len([line for line in data if line[0] == policy and line[2] == 'UNSAT' and line[9] == 'SAT']))) + ','
except:
out += ','
out = out[:-1]
print(out)
| 41.106667
| 147
| 0.480052
| 449
| 3,083
| 3.296214
| 0.14922
| 0.122973
| 0.103378
| 0.149324
| 0.760811
| 0.728378
| 0.728378
| 0.705405
| 0.687838
| 0.687838
| 0
| 0.043732
| 0.332468
| 3,083
| 74
| 148
| 41.662162
| 0.675413
| 0.02011
| 0
| 0.357143
| 1
| 0
| 0.046057
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.035714
| 0
| 0.035714
| 0.017857
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 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
| 5
|
8b6739e7170338c9452b178603b6457512813975
| 173
|
py
|
Python
|
problemsets/Codeforces/Python/A770.py
|
juarezpaulino/coderemite
|
a4649d3f3a89d234457032d14a6646b3af339ac1
|
[
"Apache-2.0"
] | null | null | null |
problemsets/Codeforces/Python/A770.py
|
juarezpaulino/coderemite
|
a4649d3f3a89d234457032d14a6646b3af339ac1
|
[
"Apache-2.0"
] | null | null | null |
problemsets/Codeforces/Python/A770.py
|
juarezpaulino/coderemite
|
a4649d3f3a89d234457032d14a6646b3af339ac1
|
[
"Apache-2.0"
] | null | null | null |
"""
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
"""
import string
n,k=map(int,input().split())
print((n*string.ascii_lowercase[:k])[:n])
| 19.222222
| 41
| 0.65896
| 24
| 173
| 4.708333
| 0.75
| 0.230089
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115607
| 173
| 9
| 41
| 19.222222
| 0.738562
| 0.433526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.333333
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
8b8275b0f136fcf848c021a69c14a1c202b4ee8c
| 5,419
|
py
|
Python
|
myslice/tests/activity/rest_activity_user.py
|
loicbaron/myslice2
|
32af9462cc9e5654a6e3036978ae74b0a03a2698
|
[
"MIT"
] | null | null | null |
myslice/tests/activity/rest_activity_user.py
|
loicbaron/myslice2
|
32af9462cc9e5654a6e3036978ae74b0a03a2698
|
[
"MIT"
] | 1
|
2020-06-02T12:30:07.000Z
|
2020-06-02T12:30:07.000Z
|
myslice/tests/activity/rest_activity_user.py
|
loicbaron/myslice2
|
32af9462cc9e5654a6e3036978ae74b0a03a2698
|
[
"MIT"
] | 1
|
2018-10-29T16:11:26.000Z
|
2018-10-29T16:11:26.000Z
|
#!/usr/bin/env python3.5
import json
import requests
import sys
import unittest
from pprint import pprint
from tests import s
class TestUser(unittest.TestCase):
def setUp(self):
self.timeout = 10
def test_0_invalidRequest(self):
payload = {'key1': 'value1', 'key2': 'value2'}
r = requests.post("http://"+server+":8111/api/v1/activity", data=payload, timeout=self.timeout)
self.assertEqual(r.status_code, 400)
def test_1_create_user_fail(self):
payload = {
"event": {
"action":"CREATE",
"user":"urn:publicid:IDN+onelab:upmc+user+",
"object":{
"type": "USER",
"id": "urn:publicid:IDN+onelab:upmc+user+test_auto"
},
"data":{
"email": "test_auto_onelab@yopmail.com",
"first_name": "test auto",
"last_name": "OneLab",
"bio": "...",
"url": "http://onelab.eu",
"password": "...",
"generate_keys": True,
"keys": []
}
}
}
r = requests.post("http://"+server+":8111/api/v1/activity", headers={str('Content-Type'):'application/json'}, data=json.dumps(payload), timeout=self.timeout)
self.assertEqual(r.status_code, 500)
def test_2_create_user(self):
payload = {
"event": {
"action":"CREATE",
"user":"urn:publicid:IDN+onelab:upmc+user+loic_baron",
"object":{
"type": "USER",
"id": "urn:publicid:IDN+onelab:upmc+user+test_auto"
},
"data":{
"email": "test_auto_onelab@yopmail.com",
"first_name": "test auto",
"last_name": "OneLab",
"bio": "...",
"url": "http://onelab.eu",
"password": "...",
"generate_keys": True,
#"keys": []
}
}
}
r = requests.post("http://"+server+":8111/api/v1/activity", headers={str('Content-Type'):'application/json'}, data=json.dumps(payload), timeout=self.timeout)
pprint(r.text)
self.assertEqual(r.status_code, 200)
result = json.loads(r.text)
self.assertEqual(result['return']['messages']['object'], payload['event']['object'])
# Check each value sent, can't check result==payload because the API is adding hrn, id and authority to the data
for k,v in payload['event']['data'].items():
self.assertEqual(result['return']['messages']['data'][k], v)
def test_3_update_user(self):
payload = {
"event": {
"action":"UPDATE",
"user":"urn:publicid:IDN+onelab:upmc+user+loic_baron",
"object":{
"type": "USER",
"id": "urn:publicid:IDN+onelab:upmc+user+test_auto"
},
"data":{
"email": "test_auto_onelab@yopmail.com",
"first_name": "test auto",
"last_name": "updated",
"bio": "...",
"url": "http://onelab.eu",
"password": "...",
#"keys": ['ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCXE8DJbz/WZxDG1w3McxipIBSdL8FHNmCFFlWPB3mWzujK1LPR0fzLpf+jD30aXmppB4O3WUr7qtuhPWsj2DQGvH5PxtX70hf0ehJeqHFCEn9n0+dt0+LLanuQHsPZQujp7tDkPTc5nz2b4xKn4MbZfpGQ8bwTPWfJ130felrFMsYOWlT2y/0u2pkvmUO9wxwSZxe/giqe9XlJ38rwy+V/Jt7iCR+VSHB5vqv/Hi8FBFKhqydtTSlEeY9X9f90GXKPCHEqmH0g37Vdy2V9LC4CQVECSrqQjBo31BAfdwsmKKsXzaK5sBOva3Y9rFHPlfDaf2beiMibjU5pjNDGVOLJ root@theseus']
}
}
}
r = requests.post("http://"+server+"/api/v1/activity", headers={str('Content-Type'):'application/json'}, data=json.dumps(payload))
self.assertEqual(r.status_code, 200)
result = json.loads(r.text)
self.assertEqual(result['return']['messages']['object'], payload['event']['object'])
# Check each value sent, can't check result==payload because the API is adding hrn, id and authority to the data
for k,v in payload['event']['data'].items():
self.assertEqual(result['return']['messages']['data'][k], v)
def test_4_delete_user(self):
payload = {
"event": {
"action":"DELETE",
"user":"urn:publicid:IDN+onelab:upmc+user+loic_baron",
"object":{
"type": "USER",
"id": "urn:publicid:IDN+onelab:upmc+user+test_auto"
}
}
}
r = requests.post("http://"+server+"/api/v1/activity", headers={str('Content-Type'):'application/json'}, data=json.dumps(payload))
self.assertEqual(r.status_code, 200)
result = json.loads(r.text)
self.assertEqual(result['return']['messages']['object'], payload['event']['object'])
if __name__ == '__main__':
unittest.main()
| 44.056911
| 430
| 0.500277
| 496
| 5,419
| 5.366935
| 0.254032
| 0.056349
| 0.042074
| 0.060105
| 0.735537
| 0.7145
| 0.704733
| 0.704733
| 0.704733
| 0.660781
| 0
| 0.029621
| 0.352094
| 5,419
| 122
| 431
| 44.418033
| 0.728567
| 0.121794
| 0
| 0.609524
| 0
| 0
| 0.263988
| 0.102019
| 0
| 0
| 0
| 0
| 0.095238
| 1
| 0.057143
| false
| 0.028571
| 0.057143
| 0
| 0.12381
| 0.019048
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
8b92c14733ef29a064337972c64a936e4cfd0a28
| 69,781
|
bzl
|
Python
|
build/source_list.bzl
|
ktprime/quiche-1
|
abf85ce22e1409a870b1bf470cb5a68cbdb28e50
|
[
"BSD-3-Clause"
] | null | null | null |
build/source_list.bzl
|
ktprime/quiche-1
|
abf85ce22e1409a870b1bf470cb5a68cbdb28e50
|
[
"BSD-3-Clause"
] | null | null | null |
build/source_list.bzl
|
ktprime/quiche-1
|
abf85ce22e1409a870b1bf470cb5a68cbdb28e50
|
[
"BSD-3-Clause"
] | null | null | null |
"""Autogenerated source file list for QUICHE Bazel build."""
protobuf = [
"quic/core/proto/cached_network_parameters.proto",
"quic/core/proto/crypto_server_config.proto",
"quic/core/proto/source_address_token.proto",
]
protobuf_test_support = [
"quic/test_tools/send_algorithm_test_result.proto",
]
quiche_core_hdrs = [
"balsa/balsa_enums.h",
"balsa/balsa_frame.h",
"balsa/balsa_headers.h",
"balsa/balsa_visitor_interface.h",
"balsa/framer_interface.h",
"balsa/header_api.h",
"balsa/header_properties.h",
"balsa/http_validation_policy.h",
"balsa/noop_balsa_visitor.h",
"balsa/simple_buffer.h",
"balsa/standard_header_map.h",
"common/platform/api/quiche_bug_tracker.h",
"common/platform/api/quiche_client_stats.h",
"common/platform/api/quiche_containers.h",
"common/platform/api/quiche_export.h",
"common/platform/api/quiche_flag_utils.h",
"common/platform/api/quiche_flags.h",
"common/platform/api/quiche_header_policy.h",
"common/platform/api/quiche_hostname_utils.h",
"common/platform/api/quiche_iovec.h",
"common/platform/api/quiche_logging.h",
"common/platform/api/quiche_lower_case_string.h",
"common/platform/api/quiche_mem_slice.h",
"common/platform/api/quiche_mutex.h",
"common/platform/api/quiche_prefetch.h",
"common/platform/api/quiche_reference_counted.h",
"common/platform/api/quiche_server_stats.h",
"common/platform/api/quiche_stack_trace.h",
"common/platform/api/quiche_testvalue.h",
"common/platform/api/quiche_thread.h",
"common/platform/api/quiche_thread_local.h",
"common/platform/api/quiche_time_utils.h",
"common/platform/api/quiche_url_utils.h",
"common/print_elements.h",
"common/quiche_buffer_allocator.h",
"common/quiche_circular_deque.h",
"common/quiche_data_reader.h",
"common/quiche_data_writer.h",
"common/quiche_endian.h",
"common/quiche_linked_hash_map.h",
"common/quiche_mem_slice_storage.h",
"common/quiche_text_utils.h",
"common/simple_buffer_allocator.h",
"common/structured_headers.h",
"http2/adapter/data_source.h",
"http2/adapter/event_forwarder.h",
"http2/adapter/header_validator.h",
"http2/adapter/header_validator_base.h",
"http2/adapter/http2_adapter.h",
"http2/adapter/http2_protocol.h",
"http2/adapter/http2_session.h",
"http2/adapter/http2_util.h",
"http2/adapter/http2_visitor_interface.h",
"http2/adapter/noop_header_validator.h",
"http2/adapter/oghttp2_adapter.h",
"http2/adapter/oghttp2_session.h",
"http2/adapter/oghttp2_util.h",
"http2/adapter/window_manager.h",
"http2/core/http2_trace_logging.h",
"http2/core/priority_write_scheduler.h",
"http2/core/write_scheduler.h",
"http2/decoder/decode_buffer.h",
"http2/decoder/decode_http2_structures.h",
"http2/decoder/decode_status.h",
"http2/decoder/frame_decoder_state.h",
"http2/decoder/http2_frame_decoder.h",
"http2/decoder/http2_frame_decoder_listener.h",
"http2/decoder/http2_structure_decoder.h",
"http2/decoder/payload_decoders/altsvc_payload_decoder.h",
"http2/decoder/payload_decoders/continuation_payload_decoder.h",
"http2/decoder/payload_decoders/data_payload_decoder.h",
"http2/decoder/payload_decoders/goaway_payload_decoder.h",
"http2/decoder/payload_decoders/headers_payload_decoder.h",
"http2/decoder/payload_decoders/ping_payload_decoder.h",
"http2/decoder/payload_decoders/priority_payload_decoder.h",
"http2/decoder/payload_decoders/priority_update_payload_decoder.h",
"http2/decoder/payload_decoders/push_promise_payload_decoder.h",
"http2/decoder/payload_decoders/rst_stream_payload_decoder.h",
"http2/decoder/payload_decoders/settings_payload_decoder.h",
"http2/decoder/payload_decoders/unknown_payload_decoder.h",
"http2/decoder/payload_decoders/window_update_payload_decoder.h",
"http2/hpack/decoder/hpack_block_decoder.h",
"http2/hpack/decoder/hpack_decoder.h",
"http2/hpack/decoder/hpack_decoder_listener.h",
"http2/hpack/decoder/hpack_decoder_state.h",
"http2/hpack/decoder/hpack_decoder_string_buffer.h",
"http2/hpack/decoder/hpack_decoder_tables.h",
"http2/hpack/decoder/hpack_decoding_error.h",
"http2/hpack/decoder/hpack_entry_decoder.h",
"http2/hpack/decoder/hpack_entry_decoder_listener.h",
"http2/hpack/decoder/hpack_entry_type_decoder.h",
"http2/hpack/decoder/hpack_string_decoder.h",
"http2/hpack/decoder/hpack_string_decoder_listener.h",
"http2/hpack/decoder/hpack_whole_entry_buffer.h",
"http2/hpack/decoder/hpack_whole_entry_listener.h",
"http2/hpack/http2_hpack_constants.h",
"http2/hpack/huffman/hpack_huffman_decoder.h",
"http2/hpack/huffman/hpack_huffman_encoder.h",
"http2/hpack/huffman/huffman_spec_tables.h",
"http2/hpack/varint/hpack_varint_decoder.h",
"http2/hpack/varint/hpack_varint_encoder.h",
"http2/http2_constants.h",
"http2/http2_structures.h",
"quic/core/chlo_extractor.h",
"quic/core/congestion_control/bandwidth_sampler.h",
"quic/core/congestion_control/bbr2_drain.h",
"quic/core/congestion_control/bbr2_misc.h",
"quic/core/congestion_control/bbr2_probe_bw.h",
"quic/core/congestion_control/bbr2_probe_rtt.h",
"quic/core/congestion_control/bbr2_sender.h",
"quic/core/congestion_control/bbr2_startup.h",
"quic/core/congestion_control/bbr_sender.h",
"quic/core/congestion_control/cubic_bytes.h",
"quic/core/congestion_control/general_loss_algorithm.h",
"quic/core/congestion_control/hybrid_slow_start.h",
"quic/core/congestion_control/loss_detection_interface.h",
"quic/core/congestion_control/pacing_sender.h",
"quic/core/congestion_control/prr_sender.h",
"quic/core/congestion_control/rtt_stats.h",
"quic/core/congestion_control/send_algorithm_interface.h",
"quic/core/congestion_control/tcp_cubic_sender_bytes.h",
"quic/core/congestion_control/uber_loss_algorithm.h",
"quic/core/congestion_control/windowed_filter.h",
"quic/core/crypto/aead_base_decrypter.h",
"quic/core/crypto/aead_base_encrypter.h",
"quic/core/crypto/aes_128_gcm_12_decrypter.h",
"quic/core/crypto/aes_128_gcm_12_encrypter.h",
"quic/core/crypto/aes_128_gcm_decrypter.h",
"quic/core/crypto/aes_128_gcm_encrypter.h",
"quic/core/crypto/aes_256_gcm_decrypter.h",
"quic/core/crypto/aes_256_gcm_encrypter.h",
"quic/core/crypto/aes_base_decrypter.h",
"quic/core/crypto/aes_base_encrypter.h",
"quic/core/crypto/boring_utils.h",
"quic/core/crypto/cert_compressor.h",
"quic/core/crypto/certificate_util.h",
"quic/core/crypto/certificate_view.h",
"quic/core/crypto/chacha20_poly1305_decrypter.h",
"quic/core/crypto/chacha20_poly1305_encrypter.h",
"quic/core/crypto/chacha20_poly1305_tls_decrypter.h",
"quic/core/crypto/chacha20_poly1305_tls_encrypter.h",
"quic/core/crypto/chacha_base_decrypter.h",
"quic/core/crypto/chacha_base_encrypter.h",
"quic/core/crypto/channel_id.h",
"quic/core/crypto/client_proof_source.h",
"quic/core/crypto/crypto_framer.h",
"quic/core/crypto/crypto_handshake.h",
"quic/core/crypto/crypto_handshake_message.h",
"quic/core/crypto/crypto_message_parser.h",
"quic/core/crypto/crypto_protocol.h",
"quic/core/crypto/crypto_secret_boxer.h",
"quic/core/crypto/crypto_utils.h",
"quic/core/crypto/curve25519_key_exchange.h",
"quic/core/crypto/key_exchange.h",
"quic/core/crypto/null_decrypter.h",
"quic/core/crypto/null_encrypter.h",
"quic/core/crypto/p256_key_exchange.h",
"quic/core/crypto/proof_source.h",
"quic/core/crypto/proof_source_x509.h",
"quic/core/crypto/proof_verifier.h",
"quic/core/crypto/quic_client_session_cache.h",
"quic/core/crypto/quic_compressed_certs_cache.h",
"quic/core/crypto/quic_crypter.h",
"quic/core/crypto/quic_crypto_client_config.h",
"quic/core/crypto/quic_crypto_proof.h",
"quic/core/crypto/quic_crypto_server_config.h",
"quic/core/crypto/quic_decrypter.h",
"quic/core/crypto/quic_encrypter.h",
"quic/core/crypto/quic_hkdf.h",
"quic/core/crypto/quic_random.h",
"quic/core/crypto/tls_client_connection.h",
"quic/core/crypto/tls_connection.h",
"quic/core/crypto/tls_server_connection.h",
"quic/core/crypto/transport_parameters.h",
"quic/core/crypto/web_transport_fingerprint_proof_verifier.h",
"quic/core/frames/quic_ack_frame.h",
"quic/core/frames/quic_ack_frequency_frame.h",
"quic/core/frames/quic_blocked_frame.h",
"quic/core/frames/quic_connection_close_frame.h",
"quic/core/frames/quic_crypto_frame.h",
"quic/core/frames/quic_frame.h",
"quic/core/frames/quic_goaway_frame.h",
"quic/core/frames/quic_handshake_done_frame.h",
"quic/core/frames/quic_inlined_frame.h",
"quic/core/frames/quic_max_streams_frame.h",
"quic/core/frames/quic_message_frame.h",
"quic/core/frames/quic_mtu_discovery_frame.h",
"quic/core/frames/quic_new_connection_id_frame.h",
"quic/core/frames/quic_new_token_frame.h",
"quic/core/frames/quic_padding_frame.h",
"quic/core/frames/quic_path_challenge_frame.h",
"quic/core/frames/quic_path_response_frame.h",
"quic/core/frames/quic_ping_frame.h",
"quic/core/frames/quic_retire_connection_id_frame.h",
"quic/core/frames/quic_rst_stream_frame.h",
"quic/core/frames/quic_stop_sending_frame.h",
"quic/core/frames/quic_stop_waiting_frame.h",
"quic/core/frames/quic_stream_frame.h",
"quic/core/frames/quic_streams_blocked_frame.h",
"quic/core/frames/quic_window_update_frame.h",
"quic/core/handshaker_delegate_interface.h",
"quic/core/http/capsule.h",
"quic/core/http/http_constants.h",
"quic/core/http/http_decoder.h",
"quic/core/http/http_encoder.h",
"quic/core/http/http_frames.h",
"quic/core/http/quic_client_promised_info.h",
"quic/core/http/quic_client_push_promise_index.h",
"quic/core/http/quic_header_list.h",
"quic/core/http/quic_headers_stream.h",
"quic/core/http/quic_receive_control_stream.h",
"quic/core/http/quic_send_control_stream.h",
"quic/core/http/quic_server_initiated_spdy_stream.h",
"quic/core/http/quic_server_session_base.h",
"quic/core/http/quic_spdy_client_session.h",
"quic/core/http/quic_spdy_client_session_base.h",
"quic/core/http/quic_spdy_client_stream.h",
"quic/core/http/quic_spdy_server_stream_base.h",
"quic/core/http/quic_spdy_session.h",
"quic/core/http/quic_spdy_stream.h",
"quic/core/http/quic_spdy_stream_body_manager.h",
"quic/core/http/spdy_server_push_utils.h",
"quic/core/http/spdy_utils.h",
"quic/core/http/web_transport_http3.h",
"quic/core/http/web_transport_stream_adapter.h",
"quic/core/legacy_quic_stream_id_manager.h",
"quic/core/packet_number_indexed_queue.h",
"quic/core/proto/cached_network_parameters_proto.h",
"quic/core/proto/crypto_server_config_proto.h",
"quic/core/proto/source_address_token_proto.h",
"quic/core/qpack/qpack_blocking_manager.h",
"quic/core/qpack/qpack_decoded_headers_accumulator.h",
"quic/core/qpack/qpack_decoder.h",
"quic/core/qpack/qpack_decoder_stream_receiver.h",
"quic/core/qpack/qpack_decoder_stream_sender.h",
"quic/core/qpack/qpack_encoder.h",
"quic/core/qpack/qpack_encoder_stream_receiver.h",
"quic/core/qpack/qpack_encoder_stream_sender.h",
"quic/core/qpack/qpack_header_table.h",
"quic/core/qpack/qpack_index_conversions.h",
"quic/core/qpack/qpack_instruction_decoder.h",
"quic/core/qpack/qpack_instruction_encoder.h",
"quic/core/qpack/qpack_instructions.h",
"quic/core/qpack/qpack_progressive_decoder.h",
"quic/core/qpack/qpack_receive_stream.h",
"quic/core/qpack/qpack_required_insert_count.h",
"quic/core/qpack/qpack_send_stream.h",
"quic/core/qpack/qpack_static_table.h",
"quic/core/qpack/qpack_stream_receiver.h",
"quic/core/qpack/qpack_stream_sender_delegate.h",
"quic/core/qpack/value_splitting_header_list.h",
"quic/core/quic_ack_listener_interface.h",
"quic/core/quic_alarm.h",
"quic/core/quic_alarm_factory.h",
"quic/core/quic_arena_scoped_ptr.h",
"quic/core/quic_bandwidth.h",
"quic/core/quic_blocked_writer_interface.h",
"quic/core/quic_buffered_packet_store.h",
"quic/core/quic_chaos_protector.h",
"quic/core/quic_clock.h",
"quic/core/quic_coalesced_packet.h",
"quic/core/quic_config.h",
"quic/core/quic_connection.h",
"quic/core/quic_connection_context.h",
"quic/core/quic_connection_id.h",
"quic/core/quic_connection_id_manager.h",
"quic/core/quic_connection_stats.h",
"quic/core/quic_constants.h",
"quic/core/quic_control_frame_manager.h",
"quic/core/quic_crypto_client_handshaker.h",
"quic/core/quic_crypto_client_stream.h",
"quic/core/quic_crypto_handshaker.h",
"quic/core/quic_crypto_server_stream.h",
"quic/core/quic_crypto_server_stream_base.h",
"quic/core/quic_crypto_stream.h",
"quic/core/quic_data_reader.h",
"quic/core/quic_data_writer.h",
"quic/core/quic_datagram_queue.h",
"quic/core/quic_dispatcher.h",
"quic/core/quic_error_codes.h",
"quic/core/quic_flags_list.h",
"quic/core/quic_flow_controller.h",
"quic/core/quic_framer.h",
"quic/core/quic_idle_network_detector.h",
"quic/core/quic_interval.h",
"quic/core/quic_interval_deque.h",
"quic/core/quic_interval_set.h",
"quic/core/quic_legacy_version_encapsulator.h",
"quic/core/quic_lru_cache.h",
"quic/core/quic_mtu_discovery.h",
"quic/core/quic_network_blackhole_detector.h",
"quic/core/quic_one_block_arena.h",
"quic/core/quic_packet_creator.h",
"quic/core/quic_packet_number.h",
"quic/core/quic_packet_writer.h",
"quic/core/quic_packet_writer_wrapper.h",
"quic/core/quic_packets.h",
"quic/core/quic_path_validator.h",
"quic/core/quic_ping_manager.h",
"quic/core/quic_process_packet_interface.h",
"quic/core/quic_protocol_flags_list.h",
"quic/core/quic_received_packet_manager.h",
"quic/core/quic_sent_packet_manager.h",
"quic/core/quic_server_id.h",
"quic/core/quic_session.h",
"quic/core/quic_socket_address_coder.h",
"quic/core/quic_stream.h",
"quic/core/quic_stream_frame_data_producer.h",
"quic/core/quic_stream_id_manager.h",
"quic/core/quic_stream_send_buffer.h",
"quic/core/quic_stream_sequencer.h",
"quic/core/quic_stream_sequencer_buffer.h",
"quic/core/quic_sustained_bandwidth_recorder.h",
"quic/core/quic_tag.h",
"quic/core/quic_time.h",
"quic/core/quic_time_accumulator.h",
"quic/core/quic_time_wait_list_manager.h",
"quic/core/quic_trace_visitor.h",
"quic/core/quic_transmission_info.h",
"quic/core/quic_types.h",
"quic/core/quic_unacked_packet_map.h",
"quic/core/quic_utils.h",
"quic/core/quic_version_manager.h",
"quic/core/quic_versions.h",
"quic/core/quic_write_blocked_list.h",
"quic/core/session_notifier_interface.h",
"quic/core/stream_delegate_interface.h",
"quic/core/tls_chlo_extractor.h",
"quic/core/tls_client_handshaker.h",
"quic/core/tls_handshaker.h",
"quic/core/tls_server_handshaker.h",
"quic/core/uber_quic_stream_id_manager.h",
"quic/core/uber_received_packet_manager.h",
"quic/core/web_transport_interface.h",
"quic/platform/api/quic_bug_tracker.h",
"quic/platform/api/quic_client_stats.h",
"quic/platform/api/quic_export.h",
"quic/platform/api/quic_exported_stats.h",
"quic/platform/api/quic_flag_utils.h",
"quic/platform/api/quic_flags.h",
"quic/platform/api/quic_hostname_utils.h",
"quic/platform/api/quic_ip_address.h",
"quic/platform/api/quic_ip_address_family.h",
"quic/platform/api/quic_logging.h",
"quic/platform/api/quic_mutex.h",
"quic/platform/api/quic_server_stats.h",
"quic/platform/api/quic_socket_address.h",
"quic/platform/api/quic_stack_trace.h",
"quic/platform/api/quic_testvalue.h",
"quic/platform/api/quic_thread.h",
"spdy/core/array_output_buffer.h",
"spdy/core/header_byte_listener_interface.h",
"spdy/core/hpack/hpack_constants.h",
"spdy/core/hpack/hpack_decoder_adapter.h",
"spdy/core/hpack/hpack_encoder.h",
"spdy/core/hpack/hpack_entry.h",
"spdy/core/hpack/hpack_header_table.h",
"spdy/core/hpack/hpack_output_stream.h",
"spdy/core/hpack/hpack_static_table.h",
"spdy/core/http2_frame_decoder_adapter.h",
"spdy/core/http2_header_block_hpack_listener.h",
"spdy/core/metadata_extension.h",
"spdy/core/no_op_headers_handler.h",
"spdy/core/recording_headers_handler.h",
"spdy/core/spdy_alt_svc_wire_format.h",
"spdy/core/spdy_bitmasks.h",
"spdy/core/spdy_frame_builder.h",
"spdy/core/spdy_framer.h",
"spdy/core/spdy_header_block.h",
"spdy/core/spdy_header_storage.h",
"spdy/core/spdy_headers_handler_interface.h",
"spdy/core/spdy_intrusive_list.h",
"spdy/core/spdy_no_op_visitor.h",
"spdy/core/spdy_pinnable_buffer_piece.h",
"spdy/core/spdy_prefixed_buffer_reader.h",
"spdy/core/spdy_protocol.h",
"spdy/core/spdy_simple_arena.h",
"spdy/core/zero_copy_output_buffer.h",
]
quiche_core_srcs = [
"balsa/balsa_enums.cc",
"balsa/balsa_frame.cc",
"balsa/balsa_headers.cc",
"balsa/header_properties.cc",
"balsa/http_validation_policy.cc",
"balsa/simple_buffer.cc",
"balsa/standard_header_map.cc",
"common/platform/api/quiche_hostname_utils.cc",
"common/platform/api/quiche_mutex.cc",
"common/quiche_buffer_allocator.cc",
"common/quiche_data_reader.cc",
"common/quiche_data_writer.cc",
"common/quiche_mem_slice_storage.cc",
"common/quiche_text_utils.cc",
"common/simple_buffer_allocator.cc",
"common/structured_headers.cc",
"http2/adapter/event_forwarder.cc",
"http2/adapter/header_validator.cc",
"http2/adapter/http2_protocol.cc",
"http2/adapter/http2_util.cc",
"http2/adapter/noop_header_validator.cc",
"http2/adapter/oghttp2_adapter.cc",
"http2/adapter/oghttp2_session.cc",
"http2/adapter/oghttp2_util.cc",
"http2/adapter/window_manager.cc",
"http2/core/http2_trace_logging.cc",
"http2/decoder/decode_buffer.cc",
"http2/decoder/decode_http2_structures.cc",
"http2/decoder/decode_status.cc",
"http2/decoder/frame_decoder_state.cc",
"http2/decoder/http2_frame_decoder.cc",
"http2/decoder/http2_frame_decoder_listener.cc",
"http2/decoder/http2_structure_decoder.cc",
"http2/decoder/payload_decoders/altsvc_payload_decoder.cc",
"http2/decoder/payload_decoders/continuation_payload_decoder.cc",
"http2/decoder/payload_decoders/data_payload_decoder.cc",
"http2/decoder/payload_decoders/goaway_payload_decoder.cc",
"http2/decoder/payload_decoders/headers_payload_decoder.cc",
"http2/decoder/payload_decoders/ping_payload_decoder.cc",
"http2/decoder/payload_decoders/priority_payload_decoder.cc",
"http2/decoder/payload_decoders/priority_update_payload_decoder.cc",
"http2/decoder/payload_decoders/push_promise_payload_decoder.cc",
"http2/decoder/payload_decoders/rst_stream_payload_decoder.cc",
"http2/decoder/payload_decoders/settings_payload_decoder.cc",
"http2/decoder/payload_decoders/unknown_payload_decoder.cc",
"http2/decoder/payload_decoders/window_update_payload_decoder.cc",
"http2/hpack/decoder/hpack_block_decoder.cc",
"http2/hpack/decoder/hpack_decoder.cc",
"http2/hpack/decoder/hpack_decoder_listener.cc",
"http2/hpack/decoder/hpack_decoder_state.cc",
"http2/hpack/decoder/hpack_decoder_string_buffer.cc",
"http2/hpack/decoder/hpack_decoder_tables.cc",
"http2/hpack/decoder/hpack_decoding_error.cc",
"http2/hpack/decoder/hpack_entry_decoder.cc",
"http2/hpack/decoder/hpack_entry_decoder_listener.cc",
"http2/hpack/decoder/hpack_entry_type_decoder.cc",
"http2/hpack/decoder/hpack_string_decoder.cc",
"http2/hpack/decoder/hpack_string_decoder_listener.cc",
"http2/hpack/decoder/hpack_whole_entry_buffer.cc",
"http2/hpack/decoder/hpack_whole_entry_listener.cc",
"http2/hpack/http2_hpack_constants.cc",
"http2/hpack/huffman/hpack_huffman_decoder.cc",
"http2/hpack/huffman/hpack_huffman_encoder.cc",
"http2/hpack/huffman/huffman_spec_tables.cc",
"http2/hpack/varint/hpack_varint_decoder.cc",
"http2/hpack/varint/hpack_varint_encoder.cc",
"http2/http2_constants.cc",
"http2/http2_structures.cc",
"quic/core/chlo_extractor.cc",
"quic/core/congestion_control/bandwidth_sampler.cc",
"quic/core/congestion_control/bbr2_drain.cc",
"quic/core/congestion_control/bbr2_misc.cc",
"quic/core/congestion_control/bbr2_probe_bw.cc",
"quic/core/congestion_control/bbr2_probe_rtt.cc",
"quic/core/congestion_control/bbr2_sender.cc",
"quic/core/congestion_control/bbr2_startup.cc",
"quic/core/congestion_control/bbr_sender.cc",
"quic/core/congestion_control/cubic_bytes.cc",
"quic/core/congestion_control/general_loss_algorithm.cc",
"quic/core/congestion_control/hybrid_slow_start.cc",
"quic/core/congestion_control/pacing_sender.cc",
"quic/core/congestion_control/prr_sender.cc",
"quic/core/congestion_control/rtt_stats.cc",
"quic/core/congestion_control/send_algorithm_interface.cc",
"quic/core/congestion_control/tcp_cubic_sender_bytes.cc",
"quic/core/congestion_control/uber_loss_algorithm.cc",
"quic/core/crypto/aead_base_decrypter.cc",
"quic/core/crypto/aead_base_encrypter.cc",
"quic/core/crypto/aes_128_gcm_12_decrypter.cc",
"quic/core/crypto/aes_128_gcm_12_encrypter.cc",
"quic/core/crypto/aes_128_gcm_decrypter.cc",
"quic/core/crypto/aes_128_gcm_encrypter.cc",
"quic/core/crypto/aes_256_gcm_decrypter.cc",
"quic/core/crypto/aes_256_gcm_encrypter.cc",
"quic/core/crypto/aes_base_decrypter.cc",
"quic/core/crypto/aes_base_encrypter.cc",
"quic/core/crypto/cert_compressor.cc",
"quic/core/crypto/certificate_util.cc",
"quic/core/crypto/certificate_view.cc",
"quic/core/crypto/chacha20_poly1305_decrypter.cc",
"quic/core/crypto/chacha20_poly1305_encrypter.cc",
"quic/core/crypto/chacha20_poly1305_tls_decrypter.cc",
"quic/core/crypto/chacha20_poly1305_tls_encrypter.cc",
"quic/core/crypto/chacha_base_decrypter.cc",
"quic/core/crypto/chacha_base_encrypter.cc",
"quic/core/crypto/channel_id.cc",
"quic/core/crypto/client_proof_source.cc",
"quic/core/crypto/crypto_framer.cc",
"quic/core/crypto/crypto_handshake.cc",
"quic/core/crypto/crypto_handshake_message.cc",
"quic/core/crypto/crypto_secret_boxer.cc",
"quic/core/crypto/crypto_utils.cc",
"quic/core/crypto/curve25519_key_exchange.cc",
"quic/core/crypto/key_exchange.cc",
"quic/core/crypto/null_decrypter.cc",
"quic/core/crypto/null_encrypter.cc",
"quic/core/crypto/p256_key_exchange.cc",
"quic/core/crypto/proof_source.cc",
"quic/core/crypto/proof_source_x509.cc",
"quic/core/crypto/quic_client_session_cache.cc",
"quic/core/crypto/quic_compressed_certs_cache.cc",
"quic/core/crypto/quic_crypter.cc",
"quic/core/crypto/quic_crypto_client_config.cc",
"quic/core/crypto/quic_crypto_proof.cc",
"quic/core/crypto/quic_crypto_server_config.cc",
"quic/core/crypto/quic_decrypter.cc",
"quic/core/crypto/quic_encrypter.cc",
"quic/core/crypto/quic_hkdf.cc",
"quic/core/crypto/quic_random.cc",
"quic/core/crypto/tls_client_connection.cc",
"quic/core/crypto/tls_connection.cc",
"quic/core/crypto/tls_server_connection.cc",
"quic/core/crypto/transport_parameters.cc",
"quic/core/crypto/web_transport_fingerprint_proof_verifier.cc",
"quic/core/frames/quic_ack_frame.cc",
"quic/core/frames/quic_ack_frequency_frame.cc",
"quic/core/frames/quic_blocked_frame.cc",
"quic/core/frames/quic_connection_close_frame.cc",
"quic/core/frames/quic_crypto_frame.cc",
"quic/core/frames/quic_frame.cc",
"quic/core/frames/quic_goaway_frame.cc",
"quic/core/frames/quic_handshake_done_frame.cc",
"quic/core/frames/quic_max_streams_frame.cc",
"quic/core/frames/quic_message_frame.cc",
"quic/core/frames/quic_new_connection_id_frame.cc",
"quic/core/frames/quic_new_token_frame.cc",
"quic/core/frames/quic_padding_frame.cc",
"quic/core/frames/quic_path_challenge_frame.cc",
"quic/core/frames/quic_path_response_frame.cc",
"quic/core/frames/quic_ping_frame.cc",
"quic/core/frames/quic_retire_connection_id_frame.cc",
"quic/core/frames/quic_rst_stream_frame.cc",
"quic/core/frames/quic_stop_sending_frame.cc",
"quic/core/frames/quic_stop_waiting_frame.cc",
"quic/core/frames/quic_stream_frame.cc",
"quic/core/frames/quic_streams_blocked_frame.cc",
"quic/core/frames/quic_window_update_frame.cc",
"quic/core/http/capsule.cc",
"quic/core/http/http_constants.cc",
"quic/core/http/http_decoder.cc",
"quic/core/http/http_encoder.cc",
"quic/core/http/quic_client_promised_info.cc",
"quic/core/http/quic_client_push_promise_index.cc",
"quic/core/http/quic_header_list.cc",
"quic/core/http/quic_headers_stream.cc",
"quic/core/http/quic_receive_control_stream.cc",
"quic/core/http/quic_send_control_stream.cc",
"quic/core/http/quic_server_initiated_spdy_stream.cc",
"quic/core/http/quic_server_session_base.cc",
"quic/core/http/quic_spdy_client_session.cc",
"quic/core/http/quic_spdy_client_session_base.cc",
"quic/core/http/quic_spdy_client_stream.cc",
"quic/core/http/quic_spdy_server_stream_base.cc",
"quic/core/http/quic_spdy_session.cc",
"quic/core/http/quic_spdy_stream.cc",
"quic/core/http/quic_spdy_stream_body_manager.cc",
"quic/core/http/spdy_server_push_utils.cc",
"quic/core/http/spdy_utils.cc",
"quic/core/http/web_transport_http3.cc",
"quic/core/http/web_transport_stream_adapter.cc",
"quic/core/legacy_quic_stream_id_manager.cc",
"quic/core/qpack/qpack_blocking_manager.cc",
"quic/core/qpack/qpack_decoded_headers_accumulator.cc",
"quic/core/qpack/qpack_decoder.cc",
"quic/core/qpack/qpack_decoder_stream_receiver.cc",
"quic/core/qpack/qpack_decoder_stream_sender.cc",
"quic/core/qpack/qpack_encoder.cc",
"quic/core/qpack/qpack_encoder_stream_receiver.cc",
"quic/core/qpack/qpack_encoder_stream_sender.cc",
"quic/core/qpack/qpack_header_table.cc",
"quic/core/qpack/qpack_index_conversions.cc",
"quic/core/qpack/qpack_instruction_decoder.cc",
"quic/core/qpack/qpack_instruction_encoder.cc",
"quic/core/qpack/qpack_instructions.cc",
"quic/core/qpack/qpack_progressive_decoder.cc",
"quic/core/qpack/qpack_receive_stream.cc",
"quic/core/qpack/qpack_required_insert_count.cc",
"quic/core/qpack/qpack_send_stream.cc",
"quic/core/qpack/qpack_static_table.cc",
"quic/core/qpack/value_splitting_header_list.cc",
"quic/core/quic_ack_listener_interface.cc",
"quic/core/quic_alarm.cc",
"quic/core/quic_bandwidth.cc",
"quic/core/quic_buffered_packet_store.cc",
"quic/core/quic_chaos_protector.cc",
"quic/core/quic_clock.cc",
"quic/core/quic_coalesced_packet.cc",
"quic/core/quic_config.cc",
"quic/core/quic_connection.cc",
"quic/core/quic_connection_context.cc",
"quic/core/quic_connection_id.cc",
"quic/core/quic_connection_id_manager.cc",
"quic/core/quic_connection_stats.cc",
"quic/core/quic_constants.cc",
"quic/core/quic_control_frame_manager.cc",
"quic/core/quic_crypto_client_handshaker.cc",
"quic/core/quic_crypto_client_stream.cc",
"quic/core/quic_crypto_handshaker.cc",
"quic/core/quic_crypto_server_stream.cc",
"quic/core/quic_crypto_server_stream_base.cc",
"quic/core/quic_crypto_stream.cc",
"quic/core/quic_data_reader.cc",
"quic/core/quic_data_writer.cc",
"quic/core/quic_datagram_queue.cc",
"quic/core/quic_dispatcher.cc",
"quic/core/quic_error_codes.cc",
"quic/core/quic_flow_controller.cc",
"quic/core/quic_framer.cc",
"quic/core/quic_idle_network_detector.cc",
"quic/core/quic_legacy_version_encapsulator.cc",
"quic/core/quic_mtu_discovery.cc",
"quic/core/quic_network_blackhole_detector.cc",
"quic/core/quic_packet_creator.cc",
"quic/core/quic_packet_number.cc",
"quic/core/quic_packet_writer_wrapper.cc",
"quic/core/quic_packets.cc",
"quic/core/quic_path_validator.cc",
"quic/core/quic_ping_manager.cc",
"quic/core/quic_received_packet_manager.cc",
"quic/core/quic_sent_packet_manager.cc",
"quic/core/quic_server_id.cc",
"quic/core/quic_session.cc",
"quic/core/quic_socket_address_coder.cc",
"quic/core/quic_stream.cc",
"quic/core/quic_stream_id_manager.cc",
"quic/core/quic_stream_send_buffer.cc",
"quic/core/quic_stream_sequencer.cc",
"quic/core/quic_stream_sequencer_buffer.cc",
"quic/core/quic_sustained_bandwidth_recorder.cc",
"quic/core/quic_tag.cc",
"quic/core/quic_time.cc",
"quic/core/quic_time_wait_list_manager.cc",
"quic/core/quic_trace_visitor.cc",
"quic/core/quic_transmission_info.cc",
"quic/core/quic_types.cc",
"quic/core/quic_unacked_packet_map.cc",
"quic/core/quic_utils.cc",
"quic/core/quic_version_manager.cc",
"quic/core/quic_versions.cc",
"quic/core/quic_write_blocked_list.cc",
"quic/core/tls_chlo_extractor.cc",
"quic/core/tls_client_handshaker.cc",
"quic/core/tls_handshaker.cc",
"quic/core/tls_server_handshaker.cc",
"quic/core/uber_quic_stream_id_manager.cc",
"quic/core/uber_received_packet_manager.cc",
"quic/platform/api/quic_ip_address.cc",
"quic/platform/api/quic_socket_address.cc",
"spdy/core/array_output_buffer.cc",
"spdy/core/hpack/hpack_constants.cc",
"spdy/core/hpack/hpack_decoder_adapter.cc",
"spdy/core/hpack/hpack_encoder.cc",
"spdy/core/hpack/hpack_entry.cc",
"spdy/core/hpack/hpack_header_table.cc",
"spdy/core/hpack/hpack_output_stream.cc",
"spdy/core/hpack/hpack_static_table.cc",
"spdy/core/http2_frame_decoder_adapter.cc",
"spdy/core/metadata_extension.cc",
"spdy/core/recording_headers_handler.cc",
"spdy/core/spdy_alt_svc_wire_format.cc",
"spdy/core/spdy_frame_builder.cc",
"spdy/core/spdy_framer.cc",
"spdy/core/spdy_header_block.cc",
"spdy/core/spdy_header_storage.cc",
"spdy/core/spdy_no_op_visitor.cc",
"spdy/core/spdy_pinnable_buffer_piece.cc",
"spdy/core/spdy_prefixed_buffer_reader.cc",
"spdy/core/spdy_protocol.cc",
"spdy/core/spdy_simple_arena.cc",
]
quiche_tool_support_hdrs = [
"common/platform/api/quiche_command_line_flags.h",
"common/platform/api/quiche_default_proof_providers.h",
"common/platform/api/quiche_file_utils.h",
"common/platform/api/quiche_system_event_loop.h",
"quic/platform/api/quic_default_proof_providers.h",
"quic/tools/fake_proof_verifier.h",
"quic/tools/quic_backend_response.h",
"quic/tools/quic_client_base.h",
"quic/tools/quic_memory_cache_backend.h",
"quic/tools/quic_simple_client_session.h",
"quic/tools/quic_simple_client_stream.h",
"quic/tools/quic_simple_crypto_server_stream_helper.h",
"quic/tools/quic_simple_dispatcher.h",
"quic/tools/quic_simple_server_backend.h",
"quic/tools/quic_simple_server_session.h",
"quic/tools/quic_simple_server_stream.h",
"quic/tools/quic_spdy_client_base.h",
"quic/tools/quic_spdy_server_base.h",
"quic/tools/quic_tcp_like_trace_converter.h",
"quic/tools/quic_url.h",
"quic/tools/simple_ticket_crypter.h",
"quic/tools/web_transport_test_visitors.h",
]
quiche_tool_support_srcs = [
"common/platform/api/quiche_file_utils.cc",
"quic/tools/quic_backend_response.cc",
"quic/tools/quic_client_base.cc",
"quic/tools/quic_memory_cache_backend.cc",
"quic/tools/quic_simple_client_session.cc",
"quic/tools/quic_simple_client_stream.cc",
"quic/tools/quic_simple_crypto_server_stream_helper.cc",
"quic/tools/quic_simple_dispatcher.cc",
"quic/tools/quic_simple_server_session.cc",
"quic/tools/quic_simple_server_stream.cc",
"quic/tools/quic_spdy_client_base.cc",
"quic/tools/quic_tcp_like_trace_converter.cc",
"quic/tools/quic_url.cc",
"quic/tools/simple_ticket_crypter.cc",
]
quiche_test_support_hdrs = [
"common/platform/api/quiche_expect_bug.h",
"common/platform/api/quiche_test.h",
"common/platform/api/quiche_test_loopback.h",
"common/platform/api/quiche_test_output.h",
"common/test_tools/quiche_test_utils.h",
"http2/adapter/mock_http2_visitor.h",
"http2/adapter/recording_http2_visitor.h",
"http2/adapter/test_frame_sequence.h",
"http2/adapter/test_utils.h",
"http2/test_tools/frame_decoder_state_test_util.h",
"http2/test_tools/frame_parts.h",
"http2/test_tools/frame_parts_collector.h",
"http2/test_tools/frame_parts_collector_listener.h",
"http2/test_tools/hpack_block_builder.h",
"http2/test_tools/hpack_block_collector.h",
"http2/test_tools/hpack_entry_collector.h",
"http2/test_tools/hpack_example.h",
"http2/test_tools/hpack_string_collector.h",
"http2/test_tools/http2_constants_test_util.h",
"http2/test_tools/http2_frame_builder.h",
"http2/test_tools/http2_frame_decoder_listener_test_util.h",
"http2/test_tools/http2_random.h",
"http2/test_tools/http2_structure_decoder_test_util.h",
"http2/test_tools/http2_structures_test_util.h",
"http2/test_tools/payload_decoder_base_test_util.h",
"http2/test_tools/random_decoder_test_base.h",
"http2/test_tools/random_util.h",
"http2/test_tools/verify_macros.h",
"quic/platform/api/quic_expect_bug.h",
"quic/platform/api/quic_test.h",
"quic/platform/api/quic_test_loopback.h",
"quic/platform/api/quic_test_output.h",
"quic/test_tools/bad_packet_writer.h",
"quic/test_tools/crypto_test_utils.h",
"quic/test_tools/failing_proof_source.h",
"quic/test_tools/fake_proof_source.h",
"quic/test_tools/fake_proof_source_handle.h",
"quic/test_tools/first_flight.h",
"quic/test_tools/limited_mtu_test_writer.h",
"quic/test_tools/mock_clock.h",
"quic/test_tools/mock_quic_client_promised_info.h",
"quic/test_tools/mock_quic_dispatcher.h",
"quic/test_tools/mock_quic_session_visitor.h",
"quic/test_tools/mock_quic_spdy_client_stream.h",
"quic/test_tools/mock_quic_time_wait_list_manager.h",
"quic/test_tools/mock_random.h",
"quic/test_tools/packet_dropping_test_writer.h",
"quic/test_tools/packet_reordering_writer.h",
"quic/test_tools/qpack/qpack_decoder_test_utils.h",
"quic/test_tools/qpack/qpack_encoder_peer.h",
"quic/test_tools/qpack/qpack_encoder_test_utils.h",
"quic/test_tools/qpack/qpack_offline_decoder.h",
"quic/test_tools/qpack/qpack_test_utils.h",
"quic/test_tools/quic_buffered_packet_store_peer.h",
"quic/test_tools/quic_client_promised_info_peer.h",
"quic/test_tools/quic_client_session_cache_peer.h",
"quic/test_tools/quic_coalesced_packet_peer.h",
"quic/test_tools/quic_config_peer.h",
"quic/test_tools/quic_connection_id_manager_peer.h",
"quic/test_tools/quic_connection_peer.h",
"quic/test_tools/quic_crypto_server_config_peer.h",
"quic/test_tools/quic_dispatcher_peer.h",
"quic/test_tools/quic_flow_controller_peer.h",
"quic/test_tools/quic_framer_peer.h",
"quic/test_tools/quic_interval_deque_peer.h",
"quic/test_tools/quic_packet_creator_peer.h",
"quic/test_tools/quic_path_validator_peer.h",
"quic/test_tools/quic_sent_packet_manager_peer.h",
"quic/test_tools/quic_server_session_base_peer.h",
"quic/test_tools/quic_session_peer.h",
"quic/test_tools/quic_spdy_session_peer.h",
"quic/test_tools/quic_spdy_stream_peer.h",
"quic/test_tools/quic_stream_id_manager_peer.h",
"quic/test_tools/quic_stream_peer.h",
"quic/test_tools/quic_stream_send_buffer_peer.h",
"quic/test_tools/quic_stream_sequencer_buffer_peer.h",
"quic/test_tools/quic_stream_sequencer_peer.h",
"quic/test_tools/quic_sustained_bandwidth_recorder_peer.h",
"quic/test_tools/quic_test_backend.h",
"quic/test_tools/quic_test_utils.h",
"quic/test_tools/quic_time_wait_list_manager_peer.h",
"quic/test_tools/quic_unacked_packet_map_peer.h",
"quic/test_tools/rtt_stats_peer.h",
"quic/test_tools/send_algorithm_test_utils.h",
"quic/test_tools/simple_data_producer.h",
"quic/test_tools/simple_quic_framer.h",
"quic/test_tools/simple_session_cache.h",
"quic/test_tools/simple_session_notifier.h",
"quic/test_tools/simulator/actor.h",
"quic/test_tools/simulator/alarm_factory.h",
"quic/test_tools/simulator/link.h",
"quic/test_tools/simulator/packet_filter.h",
"quic/test_tools/simulator/port.h",
"quic/test_tools/simulator/queue.h",
"quic/test_tools/simulator/quic_endpoint.h",
"quic/test_tools/simulator/quic_endpoint_base.h",
"quic/test_tools/simulator/simulator.h",
"quic/test_tools/simulator/switch.h",
"quic/test_tools/simulator/traffic_policer.h",
"quic/test_tools/test_certificates.h",
"quic/test_tools/test_ticket_crypter.h",
"quic/test_tools/web_transport_resets_backend.h",
"quic/test_tools/web_transport_test_tools.h",
"spdy/test_tools/mock_spdy_framer_visitor.h",
"spdy/test_tools/spdy_test_utils.h",
]
quiche_test_support_srcs = [
"common/platform/api/quiche_test_loopback.cc",
"common/test_tools/quiche_test_utils.cc",
"http2/adapter/recording_http2_visitor.cc",
"http2/adapter/test_frame_sequence.cc",
"http2/adapter/test_utils.cc",
"http2/test_tools/frame_decoder_state_test_util.cc",
"http2/test_tools/frame_parts.cc",
"http2/test_tools/frame_parts_collector.cc",
"http2/test_tools/frame_parts_collector_listener.cc",
"http2/test_tools/hpack_block_builder.cc",
"http2/test_tools/hpack_block_collector.cc",
"http2/test_tools/hpack_entry_collector.cc",
"http2/test_tools/hpack_example.cc",
"http2/test_tools/hpack_string_collector.cc",
"http2/test_tools/http2_constants_test_util.cc",
"http2/test_tools/http2_frame_builder.cc",
"http2/test_tools/http2_frame_decoder_listener_test_util.cc",
"http2/test_tools/http2_random.cc",
"http2/test_tools/http2_structure_decoder_test_util.cc",
"http2/test_tools/http2_structures_test_util.cc",
"http2/test_tools/payload_decoder_base_test_util.cc",
"http2/test_tools/random_decoder_test_base.cc",
"http2/test_tools/random_util.cc",
"quic/test_tools/bad_packet_writer.cc",
"quic/test_tools/crypto_test_utils.cc",
"quic/test_tools/failing_proof_source.cc",
"quic/test_tools/fake_proof_source.cc",
"quic/test_tools/fake_proof_source_handle.cc",
"quic/test_tools/first_flight.cc",
"quic/test_tools/limited_mtu_test_writer.cc",
"quic/test_tools/mock_clock.cc",
"quic/test_tools/mock_quic_client_promised_info.cc",
"quic/test_tools/mock_quic_dispatcher.cc",
"quic/test_tools/mock_quic_session_visitor.cc",
"quic/test_tools/mock_quic_spdy_client_stream.cc",
"quic/test_tools/mock_quic_time_wait_list_manager.cc",
"quic/test_tools/mock_random.cc",
"quic/test_tools/packet_dropping_test_writer.cc",
"quic/test_tools/packet_reordering_writer.cc",
"quic/test_tools/qpack/qpack_decoder_test_utils.cc",
"quic/test_tools/qpack/qpack_encoder_peer.cc",
"quic/test_tools/qpack/qpack_encoder_test_utils.cc",
"quic/test_tools/qpack/qpack_offline_decoder.cc",
"quic/test_tools/qpack/qpack_test_utils.cc",
"quic/test_tools/quic_buffered_packet_store_peer.cc",
"quic/test_tools/quic_client_promised_info_peer.cc",
"quic/test_tools/quic_coalesced_packet_peer.cc",
"quic/test_tools/quic_config_peer.cc",
"quic/test_tools/quic_connection_peer.cc",
"quic/test_tools/quic_crypto_server_config_peer.cc",
"quic/test_tools/quic_dispatcher_peer.cc",
"quic/test_tools/quic_flow_controller_peer.cc",
"quic/test_tools/quic_framer_peer.cc",
"quic/test_tools/quic_packet_creator_peer.cc",
"quic/test_tools/quic_path_validator_peer.cc",
"quic/test_tools/quic_sent_packet_manager_peer.cc",
"quic/test_tools/quic_session_peer.cc",
"quic/test_tools/quic_spdy_session_peer.cc",
"quic/test_tools/quic_spdy_stream_peer.cc",
"quic/test_tools/quic_stream_id_manager_peer.cc",
"quic/test_tools/quic_stream_peer.cc",
"quic/test_tools/quic_stream_send_buffer_peer.cc",
"quic/test_tools/quic_stream_sequencer_buffer_peer.cc",
"quic/test_tools/quic_stream_sequencer_peer.cc",
"quic/test_tools/quic_sustained_bandwidth_recorder_peer.cc",
"quic/test_tools/quic_test_backend.cc",
"quic/test_tools/quic_test_utils.cc",
"quic/test_tools/quic_time_wait_list_manager_peer.cc",
"quic/test_tools/quic_unacked_packet_map_peer.cc",
"quic/test_tools/rtt_stats_peer.cc",
"quic/test_tools/send_algorithm_test_utils.cc",
"quic/test_tools/simple_data_producer.cc",
"quic/test_tools/simple_quic_framer.cc",
"quic/test_tools/simple_session_cache.cc",
"quic/test_tools/simple_session_notifier.cc",
"quic/test_tools/simulator/actor.cc",
"quic/test_tools/simulator/alarm_factory.cc",
"quic/test_tools/simulator/link.cc",
"quic/test_tools/simulator/packet_filter.cc",
"quic/test_tools/simulator/port.cc",
"quic/test_tools/simulator/queue.cc",
"quic/test_tools/simulator/quic_endpoint.cc",
"quic/test_tools/simulator/quic_endpoint_base.cc",
"quic/test_tools/simulator/simulator.cc",
"quic/test_tools/simulator/switch.cc",
"quic/test_tools/simulator/traffic_policer.cc",
"quic/test_tools/test_certificates.cc",
"quic/test_tools/test_ticket_crypter.cc",
"quic/test_tools/web_transport_resets_backend.cc",
"spdy/test_tools/mock_spdy_framer_visitor.cc",
"spdy/test_tools/spdy_test_utils.cc",
]
epoll_tool_support_hdrs = [
"common/platform/api/quiche_epoll.h",
"common/platform/api/quiche_stream_buffer_allocator.h",
"common/platform/api/quiche_udp_socket_platform_api.h",
"epoll_server/platform/api/epoll_bug.h",
"epoll_server/platform/api/epoll_logging.h",
"epoll_server/platform/api/epoll_thread.h",
"epoll_server/simple_epoll_server.h",
"quic/core/batch_writer/quic_batch_writer_base.h",
"quic/core/batch_writer/quic_batch_writer_buffer.h",
"quic/core/batch_writer/quic_batch_writer_test.h",
"quic/core/batch_writer/quic_gso_batch_writer.h",
"quic/core/batch_writer/quic_sendmmsg_batch_writer.h",
"quic/core/quic_default_packet_writer.h",
"quic/core/quic_epoll_alarm_factory.h",
"quic/core/quic_epoll_clock.h",
"quic/core/quic_epoll_connection_helper.h",
"quic/core/quic_linux_socket_utils.h",
"quic/core/quic_packet_reader.h",
"quic/core/quic_syscall_wrapper.h",
"quic/core/quic_udp_socket.h",
"quic/masque/masque_client_session.h",
"quic/masque/masque_client_tools.h",
"quic/masque/masque_dispatcher.h",
"quic/masque/masque_encapsulated_client_session.h",
"quic/masque/masque_encapsulated_epoll_client.h",
"quic/masque/masque_epoll_client.h",
"quic/masque/masque_epoll_server.h",
"quic/masque/masque_server_backend.h",
"quic/masque/masque_server_session.h",
"quic/masque/masque_utils.h",
"quic/platform/api/quic_epoll.h",
"quic/platform/api/quic_udp_socket_platform_api.h",
"quic/tools/quic_client.h",
"quic/tools/quic_client_epoll_network_helper.h",
"quic/tools/quic_server.h",
]
epoll_tool_support_srcs = [
"epoll_server/simple_epoll_server.cc",
"quic/core/batch_writer/quic_batch_writer_base.cc",
"quic/core/batch_writer/quic_batch_writer_buffer.cc",
"quic/core/batch_writer/quic_gso_batch_writer.cc",
"quic/core/batch_writer/quic_sendmmsg_batch_writer.cc",
"quic/core/quic_default_packet_writer.cc",
"quic/core/quic_epoll_alarm_factory.cc",
"quic/core/quic_epoll_clock.cc",
"quic/core/quic_epoll_connection_helper.cc",
"quic/core/quic_linux_socket_utils.cc",
"quic/core/quic_packet_reader.cc",
"quic/core/quic_syscall_wrapper.cc",
"quic/core/quic_udp_socket_posix.cc",
"quic/masque/masque_client_session.cc",
"quic/masque/masque_client_tools.cc",
"quic/masque/masque_dispatcher.cc",
"quic/masque/masque_encapsulated_client_session.cc",
"quic/masque/masque_encapsulated_epoll_client.cc",
"quic/masque/masque_epoll_client.cc",
"quic/masque/masque_epoll_server.cc",
"quic/masque/masque_server_backend.cc",
"quic/masque/masque_server_session.cc",
"quic/masque/masque_utils.cc",
"quic/tools/quic_client.cc",
"quic/tools/quic_client_epoll_network_helper.cc",
"quic/tools/quic_server.cc",
]
epoll_test_support_hdrs = [
"common/platform/api/quiche_epoll_test_tools.h",
"epoll_server/fake_simple_epoll_server.h",
"epoll_server/platform/api/epoll_address_test_utils.h",
"epoll_server/platform/api/epoll_expect_bug.h",
"epoll_server/platform/api/epoll_test.h",
"quic/test_tools/quic_client_peer.h",
"quic/test_tools/quic_mock_syscall_wrapper.h",
"quic/test_tools/quic_server_peer.h",
"quic/test_tools/quic_test_client.h",
"quic/test_tools/quic_test_server.h",
"quic/test_tools/server_thread.h",
]
epoll_test_support_srcs = [
"epoll_server/fake_simple_epoll_server.cc",
"quic/test_tools/quic_client_peer.cc",
"quic/test_tools/quic_mock_syscall_wrapper.cc",
"quic/test_tools/quic_server_peer.cc",
"quic/test_tools/quic_test_client.cc",
"quic/test_tools/quic_test_server.cc",
"quic/test_tools/server_thread.cc",
]
quiche_tests_hdrs = [
]
quiche_tests_srcs = [
"balsa/balsa_frame_test.cc",
"balsa/balsa_headers_test.cc",
"balsa/header_properties_test.cc",
"balsa/simple_buffer_test.cc",
"common/platform/api/quiche_file_utils_test.cc",
"common/platform/api/quiche_hostname_utils_test.cc",
"common/platform/api/quiche_lower_case_string_test.cc",
"common/platform/api/quiche_mem_slice_test.cc",
"common/platform/api/quiche_reference_counted_test.cc",
"common/platform/api/quiche_stack_trace_test.cc",
"common/platform/api/quiche_time_utils_test.cc",
"common/platform/api/quiche_url_utils_test.cc",
"common/print_elements_test.cc",
"common/quiche_buffer_allocator_test.cc",
"common/quiche_circular_deque_test.cc",
"common/quiche_data_reader_test.cc",
"common/quiche_data_writer_test.cc",
"common/quiche_endian_test.cc",
"common/quiche_linked_hash_map_test.cc",
"common/quiche_mem_slice_storage_test.cc",
"common/quiche_text_utils_test.cc",
"common/simple_buffer_allocator_test.cc",
"common/structured_headers_generated_test.cc",
"common/structured_headers_test.cc",
"http2/adapter/event_forwarder_test.cc",
"http2/adapter/header_validator_test.cc",
"http2/adapter/noop_header_validator_test.cc",
"http2/adapter/oghttp2_adapter_test.cc",
"http2/adapter/oghttp2_session_test.cc",
"http2/adapter/oghttp2_util_test.cc",
"http2/adapter/recording_http2_visitor_test.cc",
"http2/adapter/test_utils_test.cc",
"http2/adapter/window_manager_test.cc",
"http2/core/priority_write_scheduler_test.cc",
"http2/decoder/decode_buffer_test.cc",
"http2/decoder/decode_http2_structures_test.cc",
"http2/decoder/http2_frame_decoder_test.cc",
"http2/decoder/http2_structure_decoder_test.cc",
"http2/decoder/payload_decoders/altsvc_payload_decoder_test.cc",
"http2/decoder/payload_decoders/continuation_payload_decoder_test.cc",
"http2/decoder/payload_decoders/data_payload_decoder_test.cc",
"http2/decoder/payload_decoders/goaway_payload_decoder_test.cc",
"http2/decoder/payload_decoders/headers_payload_decoder_test.cc",
"http2/decoder/payload_decoders/ping_payload_decoder_test.cc",
"http2/decoder/payload_decoders/priority_payload_decoder_test.cc",
"http2/decoder/payload_decoders/priority_update_payload_decoder_test.cc",
"http2/decoder/payload_decoders/push_promise_payload_decoder_test.cc",
"http2/decoder/payload_decoders/rst_stream_payload_decoder_test.cc",
"http2/decoder/payload_decoders/settings_payload_decoder_test.cc",
"http2/decoder/payload_decoders/unknown_payload_decoder_test.cc",
"http2/decoder/payload_decoders/window_update_payload_decoder_test.cc",
"http2/hpack/decoder/hpack_block_collector_test.cc",
"http2/hpack/decoder/hpack_block_decoder_test.cc",
"http2/hpack/decoder/hpack_decoder_state_test.cc",
"http2/hpack/decoder/hpack_decoder_string_buffer_test.cc",
"http2/hpack/decoder/hpack_decoder_tables_test.cc",
"http2/hpack/decoder/hpack_decoder_test.cc",
"http2/hpack/decoder/hpack_entry_collector_test.cc",
"http2/hpack/decoder/hpack_entry_decoder_test.cc",
"http2/hpack/decoder/hpack_entry_type_decoder_test.cc",
"http2/hpack/decoder/hpack_string_decoder_test.cc",
"http2/hpack/decoder/hpack_whole_entry_buffer_test.cc",
"http2/hpack/http2_hpack_constants_test.cc",
"http2/hpack/huffman/hpack_huffman_decoder_test.cc",
"http2/hpack/huffman/hpack_huffman_encoder_test.cc",
"http2/hpack/huffman/hpack_huffman_transcoder_test.cc",
"http2/hpack/varint/hpack_varint_decoder_test.cc",
"http2/hpack/varint/hpack_varint_encoder_test.cc",
"http2/hpack/varint/hpack_varint_round_trip_test.cc",
"http2/http2_constants_test.cc",
"http2/http2_structures_test.cc",
"http2/test_tools/hpack_block_builder_test.cc",
"http2/test_tools/hpack_example_test.cc",
"http2/test_tools/http2_frame_builder_test.cc",
"http2/test_tools/http2_random_test.cc",
"http2/test_tools/random_decoder_test_base_test.cc",
"quic/core/congestion_control/bandwidth_sampler_test.cc",
"quic/core/congestion_control/bbr2_simulator_test.cc",
"quic/core/congestion_control/bbr_sender_test.cc",
"quic/core/congestion_control/cubic_bytes_test.cc",
"quic/core/congestion_control/general_loss_algorithm_test.cc",
"quic/core/congestion_control/hybrid_slow_start_test.cc",
"quic/core/congestion_control/pacing_sender_test.cc",
"quic/core/congestion_control/prr_sender_test.cc",
"quic/core/congestion_control/rtt_stats_test.cc",
"quic/core/congestion_control/send_algorithm_test.cc",
"quic/core/congestion_control/tcp_cubic_sender_bytes_test.cc",
"quic/core/congestion_control/uber_loss_algorithm_test.cc",
"quic/core/congestion_control/windowed_filter_test.cc",
"quic/core/crypto/aes_128_gcm_12_decrypter_test.cc",
"quic/core/crypto/aes_128_gcm_12_encrypter_test.cc",
"quic/core/crypto/aes_128_gcm_decrypter_test.cc",
"quic/core/crypto/aes_128_gcm_encrypter_test.cc",
"quic/core/crypto/aes_256_gcm_decrypter_test.cc",
"quic/core/crypto/aes_256_gcm_encrypter_test.cc",
"quic/core/crypto/cert_compressor_test.cc",
"quic/core/crypto/certificate_util_test.cc",
"quic/core/crypto/certificate_view_test.cc",
"quic/core/crypto/chacha20_poly1305_decrypter_test.cc",
"quic/core/crypto/chacha20_poly1305_encrypter_test.cc",
"quic/core/crypto/chacha20_poly1305_tls_decrypter_test.cc",
"quic/core/crypto/chacha20_poly1305_tls_encrypter_test.cc",
"quic/core/crypto/channel_id_test.cc",
"quic/core/crypto/client_proof_source_test.cc",
"quic/core/crypto/crypto_framer_test.cc",
"quic/core/crypto/crypto_handshake_message_test.cc",
"quic/core/crypto/crypto_secret_boxer_test.cc",
"quic/core/crypto/crypto_server_test.cc",
"quic/core/crypto/crypto_utils_test.cc",
"quic/core/crypto/curve25519_key_exchange_test.cc",
"quic/core/crypto/null_decrypter_test.cc",
"quic/core/crypto/null_encrypter_test.cc",
"quic/core/crypto/p256_key_exchange_test.cc",
"quic/core/crypto/proof_source_x509_test.cc",
"quic/core/crypto/quic_client_session_cache_test.cc",
"quic/core/crypto/quic_compressed_certs_cache_test.cc",
"quic/core/crypto/quic_crypto_client_config_test.cc",
"quic/core/crypto/quic_crypto_server_config_test.cc",
"quic/core/crypto/quic_hkdf_test.cc",
"quic/core/crypto/quic_random_test.cc",
"quic/core/crypto/transport_parameters_test.cc",
"quic/core/crypto/web_transport_fingerprint_proof_verifier_test.cc",
"quic/core/frames/quic_frames_test.cc",
"quic/core/http/capsule_test.cc",
"quic/core/http/http_decoder_test.cc",
"quic/core/http/http_encoder_test.cc",
"quic/core/http/http_frames_test.cc",
"quic/core/http/quic_client_promised_info_test.cc",
"quic/core/http/quic_client_push_promise_index_test.cc",
"quic/core/http/quic_header_list_test.cc",
"quic/core/http/quic_headers_stream_test.cc",
"quic/core/http/quic_receive_control_stream_test.cc",
"quic/core/http/quic_send_control_stream_test.cc",
"quic/core/http/quic_server_session_base_test.cc",
"quic/core/http/quic_spdy_session_test.cc",
"quic/core/http/quic_spdy_stream_body_manager_test.cc",
"quic/core/http/quic_spdy_stream_test.cc",
"quic/core/http/spdy_server_push_utils_test.cc",
"quic/core/http/spdy_utils_test.cc",
"quic/core/http/web_transport_http3_test.cc",
"quic/core/legacy_quic_stream_id_manager_test.cc",
"quic/core/packet_number_indexed_queue_test.cc",
"quic/core/qpack/qpack_blocking_manager_test.cc",
"quic/core/qpack/qpack_decoded_headers_accumulator_test.cc",
"quic/core/qpack/qpack_decoder_stream_receiver_test.cc",
"quic/core/qpack/qpack_decoder_stream_sender_test.cc",
"quic/core/qpack/qpack_decoder_test.cc",
"quic/core/qpack/qpack_encoder_stream_receiver_test.cc",
"quic/core/qpack/qpack_encoder_stream_sender_test.cc",
"quic/core/qpack/qpack_encoder_test.cc",
"quic/core/qpack/qpack_header_table_test.cc",
"quic/core/qpack/qpack_index_conversions_test.cc",
"quic/core/qpack/qpack_instruction_decoder_test.cc",
"quic/core/qpack/qpack_instruction_encoder_test.cc",
"quic/core/qpack/qpack_receive_stream_test.cc",
"quic/core/qpack/qpack_required_insert_count_test.cc",
"quic/core/qpack/qpack_round_trip_test.cc",
"quic/core/qpack/qpack_send_stream_test.cc",
"quic/core/qpack/qpack_static_table_test.cc",
"quic/core/qpack/value_splitting_header_list_test.cc",
"quic/core/quic_alarm_test.cc",
"quic/core/quic_arena_scoped_ptr_test.cc",
"quic/core/quic_bandwidth_test.cc",
"quic/core/quic_buffered_packet_store_test.cc",
"quic/core/quic_chaos_protector_test.cc",
"quic/core/quic_coalesced_packet_test.cc",
"quic/core/quic_config_test.cc",
"quic/core/quic_connection_context_test.cc",
"quic/core/quic_connection_id_manager_test.cc",
"quic/core/quic_connection_id_test.cc",
"quic/core/quic_connection_test.cc",
"quic/core/quic_control_frame_manager_test.cc",
"quic/core/quic_crypto_client_handshaker_test.cc",
"quic/core/quic_crypto_client_stream_test.cc",
"quic/core/quic_crypto_server_stream_test.cc",
"quic/core/quic_crypto_stream_test.cc",
"quic/core/quic_data_writer_test.cc",
"quic/core/quic_datagram_queue_test.cc",
"quic/core/quic_dispatcher_test.cc",
"quic/core/quic_error_codes_test.cc",
"quic/core/quic_flow_controller_test.cc",
"quic/core/quic_framer_test.cc",
"quic/core/quic_idle_network_detector_test.cc",
"quic/core/quic_interval_deque_test.cc",
"quic/core/quic_interval_set_test.cc",
"quic/core/quic_interval_test.cc",
"quic/core/quic_legacy_version_encapsulator_test.cc",
"quic/core/quic_lru_cache_test.cc",
"quic/core/quic_network_blackhole_detector_test.cc",
"quic/core/quic_one_block_arena_test.cc",
"quic/core/quic_packet_creator_test.cc",
"quic/core/quic_packet_number_test.cc",
"quic/core/quic_packets_test.cc",
"quic/core/quic_path_validator_test.cc",
"quic/core/quic_ping_manager_test.cc",
"quic/core/quic_received_packet_manager_test.cc",
"quic/core/quic_sent_packet_manager_test.cc",
"quic/core/quic_server_id_test.cc",
"quic/core/quic_session_test.cc",
"quic/core/quic_socket_address_coder_test.cc",
"quic/core/quic_stream_id_manager_test.cc",
"quic/core/quic_stream_send_buffer_test.cc",
"quic/core/quic_stream_sequencer_buffer_test.cc",
"quic/core/quic_stream_sequencer_test.cc",
"quic/core/quic_stream_test.cc",
"quic/core/quic_sustained_bandwidth_recorder_test.cc",
"quic/core/quic_tag_test.cc",
"quic/core/quic_time_accumulator_test.cc",
"quic/core/quic_time_test.cc",
"quic/core/quic_time_wait_list_manager_test.cc",
"quic/core/quic_trace_visitor_test.cc",
"quic/core/quic_unacked_packet_map_test.cc",
"quic/core/quic_utils_test.cc",
"quic/core/quic_version_manager_test.cc",
"quic/core/quic_versions_test.cc",
"quic/core/quic_write_blocked_list_test.cc",
"quic/core/tls_chlo_extractor_test.cc",
"quic/core/tls_client_handshaker_test.cc",
"quic/core/tls_server_handshaker_test.cc",
"quic/core/uber_quic_stream_id_manager_test.cc",
"quic/core/uber_received_packet_manager_test.cc",
"quic/platform/api/quic_ip_address_test.cc",
"quic/platform/api/quic_socket_address_test.cc",
"quic/test_tools/crypto_test_utils_test.cc",
"quic/test_tools/quic_test_utils_test.cc",
"quic/test_tools/simple_session_notifier_test.cc",
"quic/test_tools/simulator/quic_endpoint_test.cc",
"quic/test_tools/simulator/simulator_test.cc",
"quic/tools/quic_memory_cache_backend_test.cc",
"quic/tools/quic_tcp_like_trace_converter_test.cc",
"quic/tools/simple_ticket_crypter_test.cc",
"spdy/core/array_output_buffer_test.cc",
"spdy/core/hpack/hpack_decoder_adapter_test.cc",
"spdy/core/hpack/hpack_encoder_test.cc",
"spdy/core/hpack/hpack_entry_test.cc",
"spdy/core/hpack/hpack_header_table_test.cc",
"spdy/core/hpack/hpack_output_stream_test.cc",
"spdy/core/hpack/hpack_round_trip_test.cc",
"spdy/core/hpack/hpack_static_table_test.cc",
"spdy/core/metadata_extension_test.cc",
"spdy/core/spdy_alt_svc_wire_format_test.cc",
"spdy/core/spdy_frame_builder_test.cc",
"spdy/core/spdy_framer_test.cc",
"spdy/core/spdy_header_block_test.cc",
"spdy/core/spdy_header_storage_test.cc",
"spdy/core/spdy_intrusive_list_test.cc",
"spdy/core/spdy_pinnable_buffer_piece_test.cc",
"spdy/core/spdy_prefixed_buffer_reader_test.cc",
"spdy/core/spdy_protocol_test.cc",
"spdy/core/spdy_simple_arena_test.cc",
]
epoll_tests_hdrs = [
]
epoll_tests_srcs = [
"epoll_server/simple_epoll_server_test.cc",
"quic/core/batch_writer/quic_batch_writer_buffer_test.cc",
"quic/core/batch_writer/quic_batch_writer_test.cc",
"quic/core/batch_writer/quic_gso_batch_writer_test.cc",
"quic/core/batch_writer/quic_sendmmsg_batch_writer_test.cc",
"quic/core/chlo_extractor_test.cc",
"quic/core/http/end_to_end_test.cc",
"quic/core/http/quic_spdy_client_session_test.cc",
"quic/core/http/quic_spdy_client_stream_test.cc",
"quic/core/http/quic_spdy_server_stream_base_test.cc",
"quic/core/quic_epoll_alarm_factory_test.cc",
"quic/core/quic_epoll_clock_test.cc",
"quic/core/quic_epoll_connection_helper_test.cc",
"quic/core/quic_linux_socket_utils_test.cc",
"quic/tools/quic_client_test.cc",
"quic/tools/quic_server_test.cc",
"quic/tools/quic_simple_server_session_test.cc",
"quic/tools/quic_simple_server_stream_test.cc",
"quic/tools/quic_url_test.cc",
]
fuzzers_hdrs = [
]
fuzzers_srcs = [
"common/structured_headers_fuzzer.cc",
"quic/core/crypto/certificate_view_der_fuzzer.cc",
"quic/core/crypto/certificate_view_pem_fuzzer.cc",
"quic/core/qpack/fuzzer/qpack_decoder_fuzzer.cc",
"quic/core/qpack/fuzzer/qpack_decoder_stream_receiver_fuzzer.cc",
"quic/core/qpack/fuzzer/qpack_decoder_stream_sender_fuzzer.cc",
"quic/core/qpack/fuzzer/qpack_encoder_stream_receiver_fuzzer.cc",
"quic/core/qpack/fuzzer/qpack_encoder_stream_sender_fuzzer.cc",
"quic/core/qpack/fuzzer/qpack_round_trip_fuzzer.cc",
"quic/test_tools/fuzzing/quic_framer_fuzzer.cc",
"quic/test_tools/fuzzing/quic_framer_process_data_packet_fuzzer.cc",
]
cli_tools_hdrs = [
"quic/tools/quic_epoll_client_factory.h",
"quic/tools/quic_epoll_server_factory.h",
"quic/tools/quic_toy_client.h",
"quic/tools/quic_toy_server.h",
]
cli_tools_srcs = [
"quic/masque/masque_client_bin.cc",
"quic/masque/masque_server_bin.cc",
"quic/tools/crypto_message_printer_bin.cc",
"quic/tools/qpack_offline_decoder_bin.cc",
"quic/tools/quic_client_bin.cc",
"quic/tools/quic_client_interop_test_bin.cc",
"quic/tools/quic_epoll_client_factory.cc",
"quic/tools/quic_epoll_server_factory.cc",
"quic/tools/quic_packet_printer_bin.cc",
"quic/tools/quic_reject_reason_decoder_bin.cc",
"quic/tools/quic_server_bin.cc",
"quic/tools/quic_toy_client.cc",
"quic/tools/quic_toy_server.cc",
]
nghttp2_hdrs = [
"http2/adapter/callback_visitor.h",
"http2/adapter/nghttp2.h",
"http2/adapter/nghttp2_adapter.h",
"http2/adapter/nghttp2_callbacks.h",
"http2/adapter/nghttp2_data_provider.h",
"http2/adapter/nghttp2_session.h",
"http2/adapter/nghttp2_util.h",
]
nghttp2_srcs = [
"http2/adapter/callback_visitor.cc",
"http2/adapter/nghttp2_adapter.cc",
"http2/adapter/nghttp2_callbacks.cc",
"http2/adapter/nghttp2_data_provider.cc",
"http2/adapter/nghttp2_session.cc",
"http2/adapter/nghttp2_test.cc",
"http2/adapter/nghttp2_util.cc",
]
nghttp2_test_support_hdrs = [
"http2/adapter/mock_nghttp2_callbacks.h",
"http2/adapter/nghttp2_test_utils.h",
]
nghttp2_test_support_srcs = [
"http2/adapter/mock_nghttp2_callbacks.cc",
"http2/adapter/nghttp2_test_utils.cc",
]
nghttp2_tests_hdrs = [
]
nghttp2_tests_srcs = [
"http2/adapter/adapter_impl_comparison_test.cc",
"http2/adapter/callback_visitor_test.cc",
"http2/adapter/nghttp2_adapter_test.cc",
"http2/adapter/nghttp2_data_provider_test.cc",
"http2/adapter/nghttp2_session_test.cc",
"http2/adapter/nghttp2_util_test.cc",
]
default_platform_impl_hdrs = [
"common/platform/default/quiche_platform_impl/quic_flags_impl.h",
"common/platform/default/quiche_platform_impl/quiche_bug_tracker_impl.h",
"common/platform/default/quiche_platform_impl/quiche_client_stats_impl.h",
"common/platform/default/quiche_platform_impl/quiche_containers_impl.h",
"common/platform/default/quiche_platform_impl/quiche_export_impl.h",
"common/platform/default/quiche_platform_impl/quiche_flag_utils_impl.h",
"common/platform/default/quiche_platform_impl/quiche_flags_impl.h",
"common/platform/default/quiche_platform_impl/quiche_header_policy_impl.h",
"common/platform/default/quiche_platform_impl/quiche_iovec_impl.h",
"common/platform/default/quiche_platform_impl/quiche_logging_impl.h",
"common/platform/default/quiche_platform_impl/quiche_lower_case_string_impl.h",
"common/platform/default/quiche_platform_impl/quiche_mem_slice_impl.h",
"common/platform/default/quiche_platform_impl/quiche_mutex_impl.h",
"common/platform/default/quiche_platform_impl/quiche_prefetch_impl.h",
"common/platform/default/quiche_platform_impl/quiche_reference_counted_impl.h",
"common/platform/default/quiche_platform_impl/quiche_server_stats_impl.h",
"common/platform/default/quiche_platform_impl/quiche_stack_trace_impl.h",
"common/platform/default/quiche_platform_impl/quiche_testvalue_impl.h",
"common/platform/default/quiche_platform_impl/quiche_thread_local_impl.h",
"common/platform/default/quiche_platform_impl/quiche_time_utils_impl.h",
"common/platform/default/quiche_platform_impl/quiche_url_utils_impl.h",
]
default_platform_impl_srcs = [
"common/platform/default/quiche_platform_impl/quic_flags_impl.cc",
"common/platform/default/quiche_platform_impl/quiche_flags_impl.cc",
"common/platform/default/quiche_platform_impl/quiche_mutex_impl.cc",
"common/platform/default/quiche_platform_impl/quiche_stack_trace_impl.cc",
"common/platform/default/quiche_platform_impl/quiche_time_utils_impl.cc",
"common/platform/default/quiche_platform_impl/quiche_url_utils_impl.cc",
]
default_platform_impl_tool_support_hdrs = [
"common/platform/default/quiche_platform_impl/quiche_command_line_flags_impl.h",
"common/platform/default/quiche_platform_impl/quiche_file_utils_impl.h",
"common/platform/default/quiche_platform_impl/quiche_stream_buffer_allocator_impl.h",
"common/platform/default/quiche_platform_impl/quiche_system_event_loop_impl.h",
]
default_platform_impl_tool_support_srcs = [
"common/platform/default/quiche_platform_impl/quiche_command_line_flags_impl.cc",
"common/platform/default/quiche_platform_impl/quiche_file_utils_impl.cc",
]
default_platform_impl_test_support_hdrs = [
"common/platform/default/quiche_platform_impl/quiche_expect_bug_impl.h",
"common/platform/default/quiche_platform_impl/quiche_test_impl.h",
"common/platform/default/quiche_platform_impl/quiche_test_loopback_impl.h",
"common/platform/default/quiche_platform_impl/quiche_test_output_impl.h",
"common/platform/default/quiche_platform_impl/quiche_thread_impl.h",
]
default_platform_impl_test_support_srcs = [
"common/platform/default/quiche_platform_impl/quiche_test_impl.cc",
"common/platform/default/quiche_platform_impl/quiche_test_loopback_impl.cc",
]
load_balancer_hdrs = [
"quic/load_balancer/load_balancer_config.h",
"quic/load_balancer/load_balancer_decoder.h",
"quic/load_balancer/load_balancer_encoder.h",
"quic/load_balancer/load_balancer_server_id.h",
"quic/load_balancer/load_balancer_server_id_map.h",
]
load_balancer_srcs = [
"quic/load_balancer/load_balancer_config.cc",
"quic/load_balancer/load_balancer_config_test.cc",
"quic/load_balancer/load_balancer_decoder.cc",
"quic/load_balancer/load_balancer_decoder_test.cc",
"quic/load_balancer/load_balancer_encoder.cc",
"quic/load_balancer/load_balancer_encoder_test.cc",
"quic/load_balancer/load_balancer_server_id.cc",
"quic/load_balancer/load_balancer_server_id_map_test.cc",
"quic/load_balancer/load_balancer_server_id_test.cc",
]
qbone_hdrs = [
"quic/qbone/bonnet/icmp_reachable.h",
"quic/qbone/bonnet/icmp_reachable_interface.h",
"quic/qbone/bonnet/mock_icmp_reachable.h",
"quic/qbone/bonnet/mock_packet_exchanger_stats_interface.h",
"quic/qbone/bonnet/mock_qbone_tunnel.h",
"quic/qbone/bonnet/mock_tun_device.h",
"quic/qbone/bonnet/mock_tun_device_controller.h",
"quic/qbone/bonnet/qbone_tunnel_info.h",
"quic/qbone/bonnet/qbone_tunnel_interface.h",
"quic/qbone/bonnet/qbone_tunnel_silo.h",
"quic/qbone/bonnet/tun_device.h",
"quic/qbone/bonnet/tun_device_controller.h",
"quic/qbone/bonnet/tun_device_interface.h",
"quic/qbone/bonnet/tun_device_packet_exchanger.h",
"quic/qbone/mock_qbone_client.h",
"quic/qbone/mock_qbone_server_session.h",
"quic/qbone/platform/icmp_packet.h",
"quic/qbone/platform/internet_checksum.h",
"quic/qbone/platform/ip_range.h",
"quic/qbone/platform/kernel_interface.h",
"quic/qbone/platform/mock_kernel.h",
"quic/qbone/platform/mock_netlink.h",
"quic/qbone/platform/netlink.h",
"quic/qbone/platform/netlink_interface.h",
"quic/qbone/platform/rtnetlink_message.h",
"quic/qbone/platform/tcp_packet.h",
"quic/qbone/qbone_client.h",
"quic/qbone/qbone_client_interface.h",
"quic/qbone/qbone_client_session.h",
"quic/qbone/qbone_constants.h",
"quic/qbone/qbone_control_stream.h",
"quic/qbone/qbone_packet_exchanger.h",
"quic/qbone/qbone_packet_processor.h",
"quic/qbone/qbone_packet_processor_test_tools.h",
"quic/qbone/qbone_packet_writer.h",
"quic/qbone/qbone_server_session.h",
"quic/qbone/qbone_session_base.h",
"quic/qbone/qbone_stream.h",
]
qbone_srcs = [
"quic/qbone/bonnet/icmp_reachable.cc",
"quic/qbone/bonnet/icmp_reachable_test.cc",
"quic/qbone/bonnet/qbone_tunnel_info.cc",
"quic/qbone/bonnet/qbone_tunnel_silo.cc",
"quic/qbone/bonnet/qbone_tunnel_silo_test.cc",
"quic/qbone/bonnet/tun_device.cc",
"quic/qbone/bonnet/tun_device_controller.cc",
"quic/qbone/bonnet/tun_device_controller_test.cc",
"quic/qbone/bonnet/tun_device_packet_exchanger.cc",
"quic/qbone/bonnet/tun_device_packet_exchanger_test.cc",
"quic/qbone/bonnet/tun_device_test.cc",
"quic/qbone/platform/icmp_packet.cc",
"quic/qbone/platform/icmp_packet_test.cc",
"quic/qbone/platform/internet_checksum.cc",
"quic/qbone/platform/internet_checksum_test.cc",
"quic/qbone/platform/ip_range.cc",
"quic/qbone/platform/ip_range_test.cc",
"quic/qbone/platform/netlink.cc",
"quic/qbone/platform/netlink_test.cc",
"quic/qbone/platform/rtnetlink_message.cc",
"quic/qbone/platform/rtnetlink_message_test.cc",
"quic/qbone/platform/tcp_packet.cc",
"quic/qbone/platform/tcp_packet_test.cc",
"quic/qbone/qbone_client.cc",
"quic/qbone/qbone_client_session.cc",
"quic/qbone/qbone_client_test.cc",
"quic/qbone/qbone_constants.cc",
"quic/qbone/qbone_control_stream.cc",
"quic/qbone/qbone_packet_exchanger.cc",
"quic/qbone/qbone_packet_exchanger_test.cc",
"quic/qbone/qbone_packet_processor.cc",
"quic/qbone/qbone_packet_processor_test.cc",
"quic/qbone/qbone_packet_processor_test_tools.cc",
"quic/qbone/qbone_server_session.cc",
"quic/qbone/qbone_session_base.cc",
"quic/qbone/qbone_session_test.cc",
"quic/qbone/qbone_stream.cc",
"quic/qbone/qbone_stream_test.cc",
]
| 46.151455
| 89
| 0.760422
| 10,309
| 69,781
| 4.77379
| 0.041614
| 0.101274
| 0.076403
| 0.044947
| 0.918091
| 0.762319
| 0.491862
| 0.241969
| 0.095645
| 0.027005
| 0
| 0.008053
| 0.104928
| 69,781
| 1,511
| 90
| 46.181999
| 0.779872
| 0.000774
| 0
| 0
| 1
| 0
| 0.821245
| 0.819581
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.004651
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8b9459f161fc1b98513310477704c0c30d30c8c4
| 104
|
py
|
Python
|
pyqt_font_dialog/__init__.py
|
yjg30737/pyqt-font-dialog
|
f6d6b49262366d6fd104767f377d8c7fdec27bd9
|
[
"MIT"
] | null | null | null |
pyqt_font_dialog/__init__.py
|
yjg30737/pyqt-font-dialog
|
f6d6b49262366d6fd104767f377d8c7fdec27bd9
|
[
"MIT"
] | null | null | null |
pyqt_font_dialog/__init__.py
|
yjg30737/pyqt-font-dialog
|
f6d6b49262366d6fd104767f377d8c7fdec27bd9
|
[
"MIT"
] | null | null | null |
from .fontDialog import *
from .fontWidget import *
from .sizeWidget import *
from .styleWidget import *
| 26
| 26
| 0.778846
| 12
| 104
| 6.75
| 0.5
| 0.37037
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144231
| 104
| 4
| 26
| 26
| 0.910112
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
8bad712ce042972087a13901a2c4f188a07abc2b
| 55
|
py
|
Python
|
devilry/devilry_authenticate/views/__init__.py
|
aless80/devilry-django
|
416c262e75170d5662542f15e2d7fecf5ab84730
|
[
"BSD-3-Clause"
] | 29
|
2015-01-18T22:56:23.000Z
|
2020-11-10T21:28:27.000Z
|
devilry/devilry_authenticate/views/__init__.py
|
aless80/devilry-django
|
416c262e75170d5662542f15e2d7fecf5ab84730
|
[
"BSD-3-Clause"
] | 786
|
2015-01-06T16:10:18.000Z
|
2022-03-16T11:10:50.000Z
|
devilry/devilry_authenticate/views/__init__.py
|
aless80/devilry-django
|
416c262e75170d5662542f15e2d7fecf5ab84730
|
[
"BSD-3-Clause"
] | 15
|
2015-04-06T06:18:43.000Z
|
2021-02-24T12:28:30.000Z
|
from .custom_login_view import CustomLoginView # noqa
| 27.5
| 54
| 0.836364
| 7
| 55
| 6.285714
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.127273
| 55
| 1
| 55
| 55
| 0.916667
| 0.072727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
8bb2afe8e12a780c24685cdd96533f0d2a2dd73c
| 153
|
py
|
Python
|
dbaas/physical/forms/__init__.py
|
didindinn/database-as-a-service
|
747de31ff8546f7874ddd654af860e130afd17a0
|
[
"BSD-3-Clause"
] | 303
|
2015-01-08T10:35:54.000Z
|
2022-02-28T08:54:06.000Z
|
dbaas/physical/forms/__init__.py
|
nouraellm/database-as-a-service
|
5e655c9347bea991b7218a01549f5e44f161d7be
|
[
"BSD-3-Clause"
] | 124
|
2015-01-14T12:56:15.000Z
|
2022-03-22T20:45:11.000Z
|
dbaas/physical/forms/__init__.py
|
nouraellm/database-as-a-service
|
5e655c9347bea991b7218a01549f5e44f161d7be
|
[
"BSD-3-Clause"
] | 110
|
2015-01-02T11:59:48.000Z
|
2022-02-28T08:54:06.000Z
|
from .plan_admin import PlanForm, PlanAttrInlineFormset
from .database_infra import DatabaseInfraForm
from .instance_formset import InstanceModelFormSet
| 38.25
| 55
| 0.888889
| 16
| 153
| 8.3125
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.084967
| 153
| 3
| 56
| 51
| 0.95
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
8bcff6c627fbaf273c8678b94997aad683dd6fe8
| 40
|
py
|
Python
|
keras_tuner/distribute/__init__.py
|
kayzhu/keras-tuner
|
32240940cd5814a905aadf8e646497649cbbb046
|
[
"Apache-2.0"
] | 2,676
|
2019-06-06T23:02:21.000Z
|
2022-03-29T08:04:52.000Z
|
keras_tuner/distribute/__init__.py
|
kayzhu/keras-tuner
|
32240940cd5814a905aadf8e646497649cbbb046
|
[
"Apache-2.0"
] | 546
|
2019-06-07T11:31:31.000Z
|
2022-03-28T12:16:33.000Z
|
keras_tuner/distribute/__init__.py
|
kayzhu/keras-tuner
|
32240940cd5814a905aadf8e646497649cbbb046
|
[
"Apache-2.0"
] | 354
|
2019-06-11T05:59:16.000Z
|
2022-03-30T14:53:12.000Z
|
"""KerasTuner distributed utilities."""
| 20
| 39
| 0.75
| 3
| 40
| 10
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075
| 40
| 1
| 40
| 40
| 0.810811
| 0.825
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8be4e6d9a80a885a103d816085caedbd21146048
| 60
|
py
|
Python
|
regexorder/__init__.py
|
chuanconggao/RegexOrder
|
c16d2bfe1df3bf0d13ea488e12ae935b7da7bc2b
|
[
"MIT"
] | 2
|
2019-02-08T16:29:17.000Z
|
2021-04-21T18:32:53.000Z
|
regexorder/__init__.py
|
chuanconggao/RegexOrder
|
c16d2bfe1df3bf0d13ea488e12ae935b7da7bc2b
|
[
"MIT"
] | 2
|
2018-07-02T03:53:27.000Z
|
2018-09-12T07:02:47.000Z
|
regexorder/__init__.py
|
chuanconggao/RegexOrder
|
c16d2bfe1df3bf0d13ea488e12ae935b7da7bc2b
|
[
"MIT"
] | 2
|
2018-07-02T03:08:42.000Z
|
2019-02-08T16:29:18.000Z
|
#! /usr/bin/env python3
from .regexorder import RegexOrder
| 15
| 34
| 0.766667
| 8
| 60
| 5.75
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.019231
| 0.133333
| 60
| 3
| 35
| 20
| 0.865385
| 0.366667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
473b3c8a79b03bab6272ec408c29f34dcdc7ee55
| 56
|
py
|
Python
|
scripts/import_package.py
|
crunchingthedata/case-study-one
|
0a98c2d55fb3cfdbbf1570c6ac22a9f56a7e795a
|
[
"MIT"
] | null | null | null |
scripts/import_package.py
|
crunchingthedata/case-study-one
|
0a98c2d55fb3cfdbbf1570c6ac22a9f56a7e795a
|
[
"MIT"
] | null | null | null |
scripts/import_package.py
|
crunchingthedata/case-study-one
|
0a98c2d55fb3cfdbbf1570c6ac22a9f56a7e795a
|
[
"MIT"
] | 1
|
2021-12-12T13:42:19.000Z
|
2021-12-12T13:42:19.000Z
|
import bank_deposit_classifier.sample as s
s.print_hi()
| 18.666667
| 42
| 0.839286
| 10
| 56
| 4.4
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089286
| 56
| 2
| 43
| 28
| 0.862745
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 5
|
4756e63ec7a2d59aee63bb192dee9617088f8097
| 423
|
py
|
Python
|
sleekxmpp/plugins/xep_0319/__init__.py
|
E-Tahta/sleekxmpp
|
ed067c9412835c5fe44bf203936262bcec09ced4
|
[
"BSD-3-Clause"
] | 499
|
2015-01-04T21:45:16.000Z
|
2022-02-14T13:04:08.000Z
|
sleekxmpp/plugins/xep_0319/__init__.py
|
E-Tahta/sleekxmpp
|
ed067c9412835c5fe44bf203936262bcec09ced4
|
[
"BSD-3-Clause"
] | 159
|
2015-01-02T19:09:47.000Z
|
2020-02-12T08:29:54.000Z
|
sleekxmpp/plugins/xep_0319/__init__.py
|
E-Tahta/sleekxmpp
|
ed067c9412835c5fe44bf203936262bcec09ced4
|
[
"BSD-3-Clause"
] | 209
|
2015-01-07T16:23:16.000Z
|
2022-01-26T13:02:20.000Z
|
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2013 Nathanael C. Fritz, Lance J.T. Stout
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from sleekxmpp.plugins.base import register_plugin
from sleekxmpp.plugins.xep_0319 import stanza
from sleekxmpp.plugins.xep_0319.stanza import Idle
from sleekxmpp.plugins.xep_0319.idle import XEP_0319
register_plugin(XEP_0319)
| 24.882353
| 59
| 0.777778
| 63
| 423
| 5.111111
| 0.539683
| 0.108696
| 0.248447
| 0.214286
| 0.251553
| 0
| 0
| 0
| 0
| 0
| 0
| 0.067416
| 0.158392
| 423
| 16
| 60
| 26.4375
| 0.837079
| 0.394799
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.8
| 0
| 0.8
| 0
| 0
| 0
| 0
| null | 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4788907629ff4e89febbf43c8a316ee620a98fbd
| 19
|
py
|
Python
|
NewFileTwo.py
|
roy-keyin/ExampleProjectBootcampTutorial
|
108ada76f7e16dca3c8d6eb59ce1c2ca9a208ee3
|
[
"MIT"
] | null | null | null |
NewFileTwo.py
|
roy-keyin/ExampleProjectBootcampTutorial
|
108ada76f7e16dca3c8d6eb59ce1c2ca9a208ee3
|
[
"MIT"
] | null | null | null |
NewFileTwo.py
|
roy-keyin/ExampleProjectBootcampTutorial
|
108ada76f7e16dca3c8d6eb59ce1c2ca9a208ee3
|
[
"MIT"
] | null | null | null |
print("Hello Two!")
| 19
| 19
| 0.684211
| 3
| 19
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.052632
| 19
| 1
| 19
| 19
| 0.722222
| 0
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 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
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
47940ebf3c84dc16806106bbebf11bb1c6532e5a
| 85
|
py
|
Python
|
server/bracketshare/bandbrackets/models/__init__.py
|
nkrim/bandbrackets
|
48f16aa4d822831c4e6ae430c4557751dba6de8b
|
[
"Apache-2.0"
] | null | null | null |
server/bracketshare/bandbrackets/models/__init__.py
|
nkrim/bandbrackets
|
48f16aa4d822831c4e6ae430c4557751dba6de8b
|
[
"Apache-2.0"
] | 2
|
2020-06-05T18:22:52.000Z
|
2021-06-10T20:28:46.000Z
|
server/bracketshare/bandbrackets/models/__init__.py
|
nkrim/bandbrackets
|
48f16aa4d822831c4e6ae430c4557751dba6de8b
|
[
"Apache-2.0"
] | null | null | null |
from .template_models import TemplateQuad, TemplateEntry, TemplateBracket, AlbumGroup
| 85
| 85
| 0.882353
| 8
| 85
| 9.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.070588
| 85
| 1
| 85
| 85
| 0.936709
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
47d69e8d35fd489e711ae4c7e3c757828d5356f2
| 214
|
py
|
Python
|
Mundo 1_Fundamentos/Desafio_11.py
|
VictorOliveira02/Desafios-Python3-Curso-em-Video
|
53ee8bd814b816f3a21936677ef3f155b582843f
|
[
"MIT"
] | null | null | null |
Mundo 1_Fundamentos/Desafio_11.py
|
VictorOliveira02/Desafios-Python3-Curso-em-Video
|
53ee8bd814b816f3a21936677ef3f155b582843f
|
[
"MIT"
] | null | null | null |
Mundo 1_Fundamentos/Desafio_11.py
|
VictorOliveira02/Desafios-Python3-Curso-em-Video
|
53ee8bd814b816f3a21936677ef3f155b582843f
|
[
"MIT"
] | null | null | null |
l = float(input('Digite a largura da parede: '))
a = float(input('Digite a altura da parede: '))
ar = l*a
print(f'A parede tem uma área de {ar} metros quadrados e será necessário {ar/2} Litros para sua pintura')
| 30.571429
| 105
| 0.696262
| 39
| 214
| 3.820513
| 0.666667
| 0.134228
| 0.214765
| 0.228188
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005682
| 0.17757
| 214
| 6
| 106
| 35.666667
| 0.840909
| 0
| 0
| 0
| 0
| 0.25
| 0.700935
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.25
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
47e052b61a5aae46a0513c07ba64fef9ad2b99ca
| 96
|
py
|
Python
|
mjc-hello.py
|
wellyfox/github-playground
|
f656d0e1b65c7b9cc68ed9607e525f33e4139a7e
|
[
"MIT"
] | null | null | null |
mjc-hello.py
|
wellyfox/github-playground
|
f656d0e1b65c7b9cc68ed9607e525f33e4139a7e
|
[
"MIT"
] | null | null | null |
mjc-hello.py
|
wellyfox/github-playground
|
f656d0e1b65c7b9cc68ed9607e525f33e4139a7e
|
[
"MIT"
] | null | null | null |
# First commit to D4D by mjc
print("Hello from Michael Crawford!")
print("cherry in mjc-hello")
| 24
| 37
| 0.739583
| 16
| 96
| 4.4375
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012195
| 0.145833
| 96
| 3
| 38
| 32
| 0.853659
| 0.270833
| 0
| 0
| 0
| 0
| 0.691176
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 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
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
9a2034210f45073cc87be53bee3e899724a289ae
| 1,745
|
py
|
Python
|
bless_this_chess/Utils.py
|
jgross11/generic-group-project
|
01a2a4aafcb104a7cc71913a0b313fd62a7bace8
|
[
"MIT"
] | null | null | null |
bless_this_chess/Utils.py
|
jgross11/generic-group-project
|
01a2a4aafcb104a7cc71913a0b313fd62a7bace8
|
[
"MIT"
] | 22
|
2021-11-14T03:53:41.000Z
|
2021-11-29T04:00:37.000Z
|
bless_this_chess/Utils.py
|
jgross11/bless-this-chess
|
01a2a4aafcb104a7cc71913a0b313fd62a7bace8
|
[
"MIT"
] | 1
|
2021-11-21T17:57:54.000Z
|
2021-11-21T17:57:54.000Z
|
from flask.blueprints import Blueprint
import re
class Map:
def __init__(self):
self.internalMap = {}
def put(self, key, value):
self.internalMap[key] = value
def get(self, key):
return self.internalMap[key]
def containsKey(self, key):
return key in self.internalMap
class InformationValidator:
USERNAME_ERROR_KEY = "usernameError"
INVALID_USERNAME_VALUE = "Please provide a valid username."
USERNAME_TAKEN_VALUE = "An account with this username already exists."
PASSWORD_ERROR_KEY = "passwordError"
INVALID_PASSWORD_VALUE = "Please provide a valid password. Valid passwords are [criteria]."
EMAIL_ERROR_KEY = "emailError"
INVALID_EMAIL_VALUE = "Please provide a valid email."
EMAIL_TAKEN_VALUE = "An account with this email already exists."
def __init__(self):
pass
def usernameIsValid(self, username : str):
return username and username.strip() and len(username) > 0 and len(username) < 65
def passwordIsValid(self, pwd : str):
# TODO password should be encrypted to standard format
return pwd and pwd.strip()
def emailIsValid(self, email : str):
# (.+) -> at least one character
# regex 'reads': at least one character, an @, at least one character, a ., at least one character
# not perfect, but good enough for our purposes
return email and email.strip() and len(email) > 5 and len(email) < 65 and re.match("(.+)@(.+)[.](.+)", email)
def create_blueprint(blueprintName : str, relativeRoot : str):
blueprint = Blueprint(
blueprintName, relativeRoot,
template_folder='templates',
static_folder='static'
)
return blueprint
| 36.354167
| 117
| 0.668768
| 211
| 1,745
| 5.402844
| 0.393365
| 0.052632
| 0.035088
| 0.066667
| 0.110526
| 0.047368
| 0
| 0
| 0
| 0
| 0
| 0.004515
| 0.238395
| 1,745
| 48
| 118
| 36.354167
| 0.853273
| 0.129513
| 0
| 0.057143
| 0
| 0
| 0.184158
| 0
| 0
| 0
| 0
| 0.020833
| 0
| 1
| 0.257143
| false
| 0.114286
| 0.057143
| 0.142857
| 0.771429
| 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
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 5
|
9a6abf202bb93aba09fe3d61e5d028251f1b1ca7
| 101
|
py
|
Python
|
librarian/admin.py
|
HemanthJella/ewallet
|
cc7f9b5abb7aa552b8769b9324c3d79630e5ea6a
|
[
"Apache-2.0"
] | null | null | null |
librarian/admin.py
|
HemanthJella/ewallet
|
cc7f9b5abb7aa552b8769b9324c3d79630e5ea6a
|
[
"Apache-2.0"
] | null | null | null |
librarian/admin.py
|
HemanthJella/ewallet
|
cc7f9b5abb7aa552b8769b9324c3d79630e5ea6a
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from .models import librarian
admin.site.register(librarian)
| 16.833333
| 33
| 0.782178
| 13
| 101
| 6.076923
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.158416
| 101
| 5
| 34
| 20.2
| 0.929412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d00bf0612db2f9ac65f0257999ea84dd2f6a9bbf
| 20
|
py
|
Python
|
tests/syntax/def_string_as_arg.py
|
matan-h/friendly
|
3ab0fc6541c837271e8865e247750007acdd18fb
|
[
"MIT"
] | 287
|
2019-04-08T13:18:29.000Z
|
2021-03-14T19:10:21.000Z
|
tests/syntax/def_string_as_arg.py
|
matan-h/friendly
|
3ab0fc6541c837271e8865e247750007acdd18fb
|
[
"MIT"
] | 191
|
2019-04-08T14:39:18.000Z
|
2021-03-14T22:14:56.000Z
|
tests/syntax/def_string_as_arg.py
|
matan-h/friendly
|
3ab0fc6541c837271e8865e247750007acdd18fb
|
[
"MIT"
] | 9
|
2019-04-08T12:54:08.000Z
|
2020-11-20T02:26:27.000Z
|
def f("1"):
pass
| 10
| 11
| 0.45
| 4
| 20
| 2.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 0.3
| 20
| 2
| 12
| 10
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0.047619
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.5
| 0
| null | null | 0
| 1
| 1
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
d01ec2edaa0f263873804181386964260354afcd
| 68
|
py
|
Python
|
py_rofi_bus/__init__.py
|
thecjharries/py-rofi-bus
|
52deb387f24639773b6a390360e857df2d82fe37
|
[
"0BSD"
] | null | null | null |
py_rofi_bus/__init__.py
|
thecjharries/py-rofi-bus
|
52deb387f24639773b6a390360e857df2d82fe37
|
[
"0BSD"
] | null | null | null |
py_rofi_bus/__init__.py
|
thecjharries/py-rofi-bus
|
52deb387f24639773b6a390360e857df2d82fe37
|
[
"0BSD"
] | null | null | null |
# pylint:disable=W,C,R
from .main_dbus_daemon import MainDbusDaemon
| 22.666667
| 44
| 0.823529
| 11
| 68
| 4.909091
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.088235
| 68
| 2
| 45
| 34
| 0.870968
| 0.294118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d022aa6f8cdf13d0dbb1ab3f2f53802f4e8ee371
| 104
|
py
|
Python
|
datacatalog/linkedstores/fixity/__init__.py
|
SD2E/python-datacatalog
|
51ab366639505fb6e8a14cd6b446de37080cd20d
|
[
"CNRI-Python"
] | null | null | null |
datacatalog/linkedstores/fixity/__init__.py
|
SD2E/python-datacatalog
|
51ab366639505fb6e8a14cd6b446de37080cd20d
|
[
"CNRI-Python"
] | 2
|
2019-07-25T15:39:04.000Z
|
2019-10-21T15:31:46.000Z
|
datacatalog/linkedstores/fixity/__init__.py
|
SD2E/python-datacatalog
|
51ab366639505fb6e8a14cd6b446de37080cd20d
|
[
"CNRI-Python"
] | 1
|
2019-10-15T14:33:44.000Z
|
2019-10-15T14:33:44.000Z
|
from .store import FixityDocument, FixityStore, StoreInterface, RateLimitExceeded
from . import indexer
| 34.666667
| 81
| 0.846154
| 10
| 104
| 8.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.105769
| 104
| 2
| 82
| 52
| 0.946237
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d02c403b0752c28d871a486511dd987e0c372fd0
| 3,199
|
py
|
Python
|
src/main.py
|
milesimarco/bvh-parser
|
6b7e2f6c4400f3696070d93e21297d775a7c35fa
|
[
"MIT"
] | 2
|
2019-07-31T10:39:27.000Z
|
2021-04-27T09:22:43.000Z
|
src/main.py
|
milesimarco/bvh-parser
|
6b7e2f6c4400f3696070d93e21297d775a7c35fa
|
[
"MIT"
] | null | null | null |
src/main.py
|
milesimarco/bvh-parser
|
6b7e2f6c4400f3696070d93e21297d775a7c35fa
|
[
"MIT"
] | null | null | null |
from bvh import *
from bvh_extend import *
import datetime
import os.path
#apertura del file con path relativo
f=open(os.path.relpath('tests/test_mocapbank.bvh', start=os.curdir))
data = BvhCalculator(f.read()) #lettura del file e salvataggio in data
print( "Frame: " + str(data.nframes) + " - Joints: " + str( len(data.get_joints_names() )) )
start = datetime.datetime.now()
data.calculate_tpos() # Calcola tutte le rototraslazioni
end = datetime.datetime.now()
time_print(start, end, "Tpos, tutti frame")
if 0 == 1: # Test
print( data.get_joint("Hip").get_tpos_vector() )
print( data.get_joint("LowerSpine").get_tpos_vector() )
print( data.get_joint("MiddleSpine").get_tpos_vector() )
print( data.get_joint("LClavicle").get_tpos_vector() )
print( data.get_joint("Chest").get_tpos_vector() )
print( data.get_joint("LToe").get_tpos_vector() )
start = datetime.datetime.now()
data.calculate_rototranslations() # Calcola tutte le rototraslazioni
end = datetime.datetime.now()
time_print(start, end, "Rototraslazioni, tutti frame")
if 0 == 1: # Test
print( data.get_joint("Hip").get_rototranslation_matrix(1) )
print( data.get_joint("Hip").get_position_vector(1) )
print( data.get_joint("Hip").get_position_vector(2) )
print( data.get_joint("Hip").get_position_vector(3) )
print( data.get_joint("LowerSpine").get_position_vector(3) )
print( data.get_joint("MiddleSpine").get_position_vector(4) )
print( "last frame tests")
print( data.get_joint("Hip").get_position_vector( data.nframes -1 ) )
print( data.get_joint("LowerSpine").get_position_vector( data.nframes -1) )
print( data.get_joint("MiddleSpine").get_position_vector( data.nframes -1) )
print( data.get_joint("Chest").get_position_vector( data.nframes -1) )
print( data.get_joint("LToe").get_position_vector( data.nframes -1) )
start = datetime.datetime.now()
data.calculate_rototranslations_relative() # Calcola tutte le rototraslazioni
end = datetime.datetime.now()
time_print(start, end, "Rototraslazioni Relative, tutte")
if 0 == 1: # Test
print( data.get_joint("Hip").get_rototranslation_relative_matrix(1) )
print( data.get_joint("Hip").get_position_relative_vector(1) )
print( data.get_joint("Hip").get_position_relative_vector(2) )
print( data.get_joint("Hip").get_position_relative_vector(3) )
print( data.get_joint("LowerSpine").get_position_relative_vector(3) )
print( data.get_joint("MiddleSpine").get_position_relative_vector(4) )
print( "last frame tests")
print( data.get_joint("Hip").get_position_relative_vector( data.nframes -1 ) )
print( data.get_joint("LowerSpine").get_position_relative_vector( data.nframes -1) )
print( data.get_joint("MiddleSpine").get_position_relative_vector( data.nframes -1) )
print( data.get_joint("Chest").get_position_relative_vector( data.nframes -1) )
print( data.get_joint("LToe").get_position_relative_vector( data.nframes -1) )
print( "valori cercati nel main:")
print( data.get_joint( "RHand").rototranslation[0] )
print( data.get_joint( "RHand").get_euler_vector_all_frames_xyz()[2] )
print( "OK" )
raise SystemError
| 45.056338
| 92
| 0.725227
| 445
| 3,199
| 4.959551
| 0.173034
| 0.098324
| 0.163117
| 0.231083
| 0.82329
| 0.803353
| 0.76348
| 0.648845
| 0.634798
| 0.472587
| 0
| 0.010787
| 0.130666
| 3,199
| 71
| 93
| 45.056338
| 0.782812
| 0.058456
| 0
| 0.192982
| 0
| 0
| 0.1198
| 0.007987
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.070175
| 0
| 0.070175
| 0.666667
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
d0319879a84d1b33544452a20dbfcf1554d8e516
| 49
|
py
|
Python
|
server/app/models/__init__.py
|
Azimcan/binance-counter
|
8cc0e222802e4d65ca2071b393e5f6dd2344f005
|
[
"MIT"
] | null | null | null |
server/app/models/__init__.py
|
Azimcan/binance-counter
|
8cc0e222802e4d65ca2071b393e5f6dd2344f005
|
[
"MIT"
] | 2
|
2022-02-15T01:49:22.000Z
|
2022-02-27T23:48:44.000Z
|
server/app/models/__init__.py
|
azimcan/binance-counter
|
8cc0e222802e4d65ca2071b393e5f6dd2344f005
|
[
"MIT"
] | null | null | null |
from .symbol import Symbol
from .user import User
| 24.5
| 26
| 0.816327
| 8
| 49
| 5
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 49
| 2
| 27
| 24.5
| 0.952381
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
d03ee3adc6a8843d54da200cbb5a0ef765488873
| 29
|
py
|
Python
|
dpm/__main__.py
|
const-z/dpm
|
db690198b2564cb4ea0ddeb8d80a5978bab59de8
|
[
"MIT"
] | null | null | null |
dpm/__main__.py
|
const-z/dpm
|
db690198b2564cb4ea0ddeb8d80a5978bab59de8
|
[
"MIT"
] | 2
|
2017-10-19T11:00:56.000Z
|
2020-02-04T11:07:24.000Z
|
dpm/__main__.py
|
const-z/dpm
|
db690198b2564cb4ea0ddeb8d80a5978bab59de8
|
[
"MIT"
] | 1
|
2019-03-28T14:03:48.000Z
|
2019-03-28T14:03:48.000Z
|
from .dpm import main
main()
| 9.666667
| 21
| 0.724138
| 5
| 29
| 4.2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.172414
| 29
| 3
| 22
| 9.666667
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
d0531a0d91f9a15beda85e749dacb31b3db36209
| 50
|
py
|
Python
|
pycordia/interactions/client.py
|
classPythonAddike/pycordia
|
517854bf338b708795e8c9fcabe551c7ca4c48dd
|
[
"MIT"
] | 23
|
2021-09-02T02:08:27.000Z
|
2022-02-13T10:52:14.000Z
|
pycordia/interactions/client.py
|
classPythonAddike/pycordia
|
517854bf338b708795e8c9fcabe551c7ca4c48dd
|
[
"MIT"
] | 1
|
2021-11-13T17:36:58.000Z
|
2021-11-13T19:45:44.000Z
|
pycordia/interactions/client.py
|
classPythonAddike/pycordia
|
517854bf338b708795e8c9fcabe551c7ca4c48dd
|
[
"MIT"
] | 12
|
2021-09-02T02:41:06.000Z
|
2022-02-24T14:00:57.000Z
|
import pycordia
class InteractionClient:
pass
| 12.5
| 24
| 0.8
| 5
| 50
| 8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.18
| 50
| 4
| 25
| 12.5
| 0.97561
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.333333
| 0
| 0.666667
| 0
| 1
| 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
| 1
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
d073253d43023c54c522eb25b175c25836441598
| 99
|
py
|
Python
|
colour/characterisation/datasets/displays/crt/__init__.py
|
aurelienpierre/colour
|
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
|
[
"BSD-3-Clause"
] | 1
|
2022-02-12T06:28:15.000Z
|
2022-02-12T06:28:15.000Z
|
colour/characterisation/datasets/displays/crt/__init__.py
|
aurelienpierre/colour
|
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
|
[
"BSD-3-Clause"
] | null | null | null |
colour/characterisation/datasets/displays/crt/__init__.py
|
aurelienpierre/colour
|
3ac45c12fbc0493e49ba4d4b2cb253df9fe14c47
|
[
"BSD-3-Clause"
] | null | null | null |
from .primaries import MSDS_DISPLAY_PRIMARIES_CRT
__all__ = [
"MSDS_DISPLAY_PRIMARIES_CRT",
]
| 16.5
| 49
| 0.787879
| 12
| 99
| 5.666667
| 0.583333
| 0.323529
| 0.588235
| 0.676471
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.141414
| 99
| 5
| 50
| 19.8
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0.262626
| 0.262626
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 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
| 5
|
d0ca90ab693e38b7a794b363e65e7560215b632e
| 89
|
py
|
Python
|
main.py
|
Adwaith-Rajesh/Task-Me-Up
|
ece9033c58e6e5dbd7dc641d872e8d71b1972a17
|
[
"MIT"
] | 5
|
2021-03-25T13:50:52.000Z
|
2021-07-10T00:57:12.000Z
|
main.py
|
Adwaith-Rajesh/Task-Me-Up
|
ece9033c58e6e5dbd7dc641d872e8d71b1972a17
|
[
"MIT"
] | null | null | null |
main.py
|
Adwaith-Rajesh/Task-Me-Up
|
ece9033c58e6e5dbd7dc641d872e8d71b1972a17
|
[
"MIT"
] | null | null | null |
from rich.traceback import install
from bot.bot import start_bot
install()
start_bot()
| 12.714286
| 34
| 0.797753
| 14
| 89
| 4.928571
| 0.5
| 0.231884
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.134831
| 89
| 7
| 35
| 12.714286
| 0.896104
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 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
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
d0d22e0f1fa395bef796dc6fd5cf24c50f324288
| 422
|
py
|
Python
|
src/utils.py
|
tyburam/neural-cryptography-pytorch
|
0e102e7199e196010ef6d9391b15d71b07897ad9
|
[
"MIT"
] | 7
|
2019-01-30T09:57:50.000Z
|
2021-04-06T22:13:40.000Z
|
src/utils.py
|
tyburam/neural-cryptography-pytorch
|
0e102e7199e196010ef6d9391b15d71b07897ad9
|
[
"MIT"
] | null | null | null |
src/utils.py
|
tyburam/neural-cryptography-pytorch
|
0e102e7199e196010ef6d9391b15d71b07897ad9
|
[
"MIT"
] | null | null | null |
import numpy as np
import torch.nn as nn
from src.config import *
# Function to generate n random messages and keys
def gen_data(n=BATCH_SIZE, msg_len=MSG_LEN, key_len=KEY_LEN):
return (np.random.randint(0, 2, size=(n, msg_len)) * 2 - 1), \
(np.random.randint(0, 2, size=(n, key_len)) * 2 - 1)
def init_xavier(m):
if type(m) in [nn.Linear, nn.Conv1d]:
nn.init.xavier_normal_(m.weight.data)
| 26.375
| 66
| 0.663507
| 77
| 422
| 3.493506
| 0.519481
| 0.066915
| 0.066915
| 0.118959
| 0.163569
| 0.163569
| 0.163569
| 0
| 0
| 0
| 0
| 0.026549
| 0.196682
| 422
| 15
| 67
| 28.133333
| 0.766962
| 0.111374
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.333333
| 0.111111
| 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
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 5
|
d0eaac55679061ab609ec0a572eb2148872bac66
| 729
|
py
|
Python
|
test/fixtures/d.py
|
kabirnayeem99/code-stats
|
56832ed545515cbec8feaa7854d6a2fbbecc219e
|
[
"MIT"
] | 8
|
2015-09-01T01:16:13.000Z
|
2021-03-21T10:10:13.000Z
|
test/fixtures/d.py
|
kabirnayeem99/code-stats
|
56832ed545515cbec8feaa7854d6a2fbbecc219e
|
[
"MIT"
] | 8
|
2017-04-14T17:55:42.000Z
|
2021-03-21T09:52:15.000Z
|
test/fixtures/d.py
|
kabirnayeem99/code-stats
|
56832ed545515cbec8feaa7854d6a2fbbecc219e
|
[
"MIT"
] | 7
|
2017-04-13T21:54:11.000Z
|
2021-08-11T08:53:01.000Z
|
# Just a dummy .py fixture...
| 1.039943
| 29
| 0.026063
| 5
| 729
| 3.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.967078
| 729
| 700
| 30
| 1.041429
| 0.791667
| 0.037037
| 0
| null | 0
| null | 0
| 0
| null | 1
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
efa45853f0dfc3846c99eda8aacc91062f756a80
| 195
|
py
|
Python
|
deepspeed/utils/__init__.py
|
ganik/DeepSpeed
|
788e1c40e83beacfc4901e7daa1e097d2efb82bb
|
[
"MIT"
] | 1
|
2022-02-12T06:27:26.000Z
|
2022-02-12T06:27:26.000Z
|
deepspeed/utils/__init__.py
|
ganik/DeepSpeed
|
788e1c40e83beacfc4901e7daa1e097d2efb82bb
|
[
"MIT"
] | null | null | null |
deepspeed/utils/__init__.py
|
ganik/DeepSpeed
|
788e1c40e83beacfc4901e7daa1e097d2efb82bb
|
[
"MIT"
] | null | null | null |
from .logging import logger, log_dist
from .distributed import init_distributed
from .groups import *
from .nvtx import instrument_w_nvtx
from deepspeed.runtime.dataloader import RepeatingLoader
| 32.5
| 56
| 0.851282
| 26
| 195
| 6.230769
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107692
| 195
| 5
| 57
| 39
| 0.931034
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
efb09042a88d971932ea9685520ab49c9b9146fb
| 80
|
py
|
Python
|
tests/conftest.py
|
rayepps/swaggerf
|
c83ee18be2d0024091a1f4ea461b81dc5d934aca
|
[
"BSD-3-Clause"
] | 2
|
2020-02-06T05:46:18.000Z
|
2021-05-19T19:19:45.000Z
|
tests/conftest.py
|
rayepps/swaggerf
|
c83ee18be2d0024091a1f4ea461b81dc5d934aca
|
[
"BSD-3-Clause"
] | 13
|
2020-01-23T07:31:46.000Z
|
2021-05-25T05:39:49.000Z
|
tests/conftest.py
|
rayepps/swaggerf
|
c83ee18be2d0024091a1f4ea461b81dc5d934aca
|
[
"BSD-3-Clause"
] | 1
|
2021-05-18T05:46:05.000Z
|
2021-05-18T05:46:05.000Z
|
import json
from http import HTTPStatus
import pytest
import oapispec as oapi
| 11.428571
| 27
| 0.825
| 12
| 80
| 5.5
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.175
| 80
| 6
| 28
| 13.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
efc42a0dd6d7b324e43890e014ef5df25dc8bfdc
| 1,957
|
py
|
Python
|
vis_cornell_performance.py
|
RealMarco/GRConvNetCode
|
6a2f4115c53e5c794d5a7ae23f1ec24cc58870af
|
[
"BSD-3-Clause"
] | null | null | null |
vis_cornell_performance.py
|
RealMarco/GRConvNetCode
|
6a2f4115c53e5c794d5a7ae23f1ec24cc58870af
|
[
"BSD-3-Clause"
] | null | null | null |
vis_cornell_performance.py
|
RealMarco/GRConvNetCode
|
6a2f4115c53e5c794d5a7ae23f1ec24cc58870af
|
[
"BSD-3-Clause"
] | null | null | null |
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
from io import StringIO
plt.figure(1)
plt.xscale('log')
net0 = pd.read_csv("F:\OD and GD Based on DL\Results Samples\OW_performance_on_cornell_dataset.csv", usecols=['Algorithms','Accuracy','Speed'])
for i in range(len(net0.Accuracy)):
if net0.Algorithms[i] =='GR-ConvNet':
plt.text(net0.Speed[i],net0.Accuracy[i]+2, s='(%.1f,%.1f)'%(net0.Speed[i],net0.Accuracy[i]),ha='center',va='top',fontdict=dict(color='k'))
plt.scatter(net0.Speed[i],net0.Accuracy[i], label = net0.Algorithms[i], lw=5, marker='^',color='k')
else:
plt.scatter(net0.Speed[i],net0.Accuracy[i], label = net0.Algorithms[i], lw=3, marker='o')
title1= 'Performance on Cornell Dataset - OW'
plt.title(title1)
plt.ylabel('Test Accuracy for Object-wise (%)')
plt.xlabel('Prediction Speed(ms/image)')
plt.legend(loc=0)
ax=plt.gca()
ax.invert_xaxis()
plt.savefig(r'F:\OD and GD Based on DL\Results Samples\%s.svg' % (title1))
plt.show()
#------------
plt.figure(2)
plt.xscale('log')
net1 = pd.read_csv("F:\OD and GD Based on DL\Results Samples\IW_performance_on_cornell_dataset.csv", usecols=['Algorithms','Accuracy','Speed'])
for i in range(len(net1.Accuracy)):
if net1.Algorithms[i] =='GR-ConvNet':
plt.text(net1.Speed[i],net1.Accuracy[i]+2, s='(%.1f,%.1f)'%(net1.Speed[i],net1.Accuracy[i]),ha='center',va='top',fontdict=dict(color='k'))
plt.scatter(net1.Speed[i],net1.Accuracy[i], label = net1.Algorithms[i], lw=5, marker='^',color='k')
else:
plt.scatter(net1.Speed[i],net1.Accuracy[i], label = net1.Algorithms[i], lw=3, marker='o')
title1= 'Performance on Cornell Dataset - IW'
plt.title(title1)
plt.ylabel('Test Accuracy for Image-wise (%)')
plt.xlabel('Prediction Speed(ms/image)')
plt.legend(loc=0)
ax=plt.gca()
ax.invert_xaxis()
plt.savefig(r'F:\OD and GD Based on DL\Results Samples\%s.svg' % (title1))
plt.show()
| 39.938776
| 146
| 0.686765
| 321
| 1,957
| 4.146417
| 0.274143
| 0.036063
| 0.018032
| 0.024042
| 0.838467
| 0.838467
| 0.733283
| 0.733283
| 0.676183
| 0.676183
| 0
| 0.026361
| 0.108329
| 1,957
| 48
| 147
| 40.770833
| 0.73639
| 0.006132
| 0
| 0.45
| 0
| 0
| 0.286523
| 0.046296
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.1
| 0
| 0.1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
efc6a40292bf045884fe6a757badc79adb310aeb
| 28
|
py
|
Python
|
project/tests/__init__.py
|
tecyit/buyGari-API
|
348ea84661f74cd33020917ba7eb11bb2b1f27f5
|
[
"MIT"
] | 267
|
2017-01-10T09:01:55.000Z
|
2022-03-23T02:59:31.000Z
|
project/tests/__init__.py
|
tecyit/buyGari-API
|
348ea84661f74cd33020917ba7eb11bb2b1f27f5
|
[
"MIT"
] | 39
|
2019-03-13T05:40:40.000Z
|
2021-06-25T15:17:43.000Z
|
project/tests/__init__.py
|
tecyit/buyGari-API
|
348ea84661f74cd33020917ba7eb11bb2b1f27f5
|
[
"MIT"
] | 199
|
2016-12-13T20:44:01.000Z
|
2022-03-30T08:57:15.000Z
|
# project/tests/__init__.py
| 14
| 27
| 0.785714
| 4
| 28
| 4.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.071429
| 28
| 1
| 28
| 28
| 0.692308
| 0.892857
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
efcecd22b4aa2b01304cc68cdc4892390ec5a885
| 50
|
py
|
Python
|
tests/serialization/mock/__init__.py
|
OrrBin/json_serialization
|
97063fb29a8e8827dca74aa1e57ea71ace241dd5
|
[
"MIT"
] | 7
|
2020-10-07T21:05:25.000Z
|
2021-08-17T21:51:11.000Z
|
tests/serialization/mock/__init__.py
|
OrrBin/Jsonic
|
cbf435736906f137e8110b85892fc9528a0ae5aa
|
[
"MIT"
] | null | null | null |
tests/serialization/mock/__init__.py
|
OrrBin/Jsonic
|
cbf435736906f137e8110b85892fc9528a0ae5aa
|
[
"MIT"
] | null | null | null |
from .mock_data import users, products, donations
| 25
| 49
| 0.82
| 7
| 50
| 5.714286
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 50
| 1
| 50
| 50
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 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
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
4bd79ad551994b2d8f0336e77b796733eaadbda1
| 12,567
|
py
|
Python
|
tests/test_file_present.py
|
KTH-dESA/GEOSeMOSYS
|
206f2efc5667b18443bfc11385819220739cd3d3
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_file_present.py
|
KTH-dESA/GEOSeMOSYS
|
206f2efc5667b18443bfc11385819220739cd3d3
|
[
"BSD-3-Clause"
] | 2
|
2020-10-20T11:02:40.000Z
|
2020-10-21T11:17:32.000Z
|
tests/test_file_present.py
|
KTH-dESA/GEOSeMOSYS
|
206f2efc5667b18443bfc11385819220739cd3d3
|
[
"BSD-3-Clause"
] | 1
|
2020-10-23T06:56:18.000Z
|
2020-10-23T06:56:18.000Z
|
import unittest
import os
import io
import sys
#sys.path.insert(1, '../')
from build_data_file import *
class ImportTestCase(unittest.TestCase):
def test_files_load_csvs_count_nr_loaded_csv_should_be_2(self):
paths = os.path.join(os.getcwd(), 'tests','data')
files = load_csvs(paths)
assert len(files) == 19
def test_noncsv_files_gives_error_message_and_exit(self):
inv_paths = os.path.join(os.getcwd(), 'tests', 'invalid_test_data')
capturedOutput = io.StringIO()
sys.stdout = capturedOutput
load_csvs(inv_paths)
sys.stdout = sys.__stdout__
print(capturedOutput.getvalue())
def test_import_OSeMOSYS_param_files_to_outPutFile_hej_hej(self):
path = os.path.join(os.getcwd(),'tests', 'hej_hej.txt')
text = make_outputfile(path)
assert text == "hej\nhej"
def test_TRLV_3_operational_life_should_be_60(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = operational_life(outPutFile, dict_df['GIS_data'], dict_df['input_data'], dict_df['operational_life'])
test = "region\tTRLV_3\t60\n"
assert test in outPutFile
def test_MG_5_fixed_cost_should_be_1_in_2027(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = fixedcost(dict_df['GIS_data'], outPutFile, dict_df['input_data'], dict_df['fixed_cost'])
test = "region\tMG_5\t2027\t1.000000\n"
assert test in outPutFile
def test_SO_3_emissions_should_be_5_CO2_modeoperation_2_in_2027(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = emissionactivity(dict_df['GIS_data'], outPutFile, dict_df['input_data'], dict_df['emissions'])
test = "region\tSO_3\tCO2\t2\t2027\t5.000000\n"
assert test in outPutFile
def test_total_annual_limit_SO_5_should_be_3000(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = totaltechnologyannualactivityupperlimit(dict_df['GIS_data'], outPutFile, dict_df['input_data'], dict_df['total_annual_technology_limit'])
test = "region\tSO_5\t2027\t3000.000000\n"
assert test in outPutFile
def test_specifiedannualdemand_EL3_3_7_2025(self):
paths = os.path.join(os.getcwd(),'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = specifiedannualdemand(outPutFile, dict_df['demand'], dict_df['input_data'])
test = "region\tEL3_3\t2025\t7.000000\n"
assert test in outPutFile
def test_capital_cost_dynamic_WI_5_Capital_cost_should_be_1824_748531_2025(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capitalcost_dynamic(dict_df['GIS_data'], outPutFile, dict_df['capitalcost_RET'],
dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'], dict_df['input_data'])
test = "region\tWI_5\t2025\t1824.748531\n"
assert test in outPutFile
def test_capital_cost_dynamic_SOMG_3_Captial_cost_should_be_1390(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capitalcost_dynamic(dict_df['GIS_data'], outPutFile, dict_df['capitalcost_RET'],
dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'], dict_df['input_data'])
test = "region\tSOMG_3\t2025\t1390.723390\n"
assert test in outPutFile
def test_capital_cost_dynamic_SOPV_1_Captial_cost_should_be_(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capitalcost_dynamic(dict_df['GIS_data'], outPutFile, dict_df['capitalcost_RET'],
dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'],dict_df['input_data'])
test = "region\tSOPV_1\t2035\t1366.680000\n"
assert test in outPutFile
def test_capital_cost_dynamic_SOPV8h_3_Captial_cost_should_be_3338(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capitalcost_dynamic(dict_df['GIS_data'], outPutFile, dict_df['capitalcost_RET'],
dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'],dict_df['input_data'])
test = "region\tSOPV_8h_3\t2035\t3338.426341\n"
assert test in outPutFile
def test_capital_cost_dynamic_SOMG13h_2_Captial_cost_should_be_3062_2040(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capitalcost_dynamic(dict_df['GIS_data'], outPutFile, dict_df['capitalcost_RET'],
dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'], dict_df['input_data'])
test = "region\tSOMG_13h_3\t2040\t3843.294254\n"
assert test in outPutFile
def test_capital_cost_TRHV_5_should_be_(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capitalcost(outPutFile, dict_df['capitalcost'], dict_df['input_data'])
test = "region\tTRLV_5\t2025\t5109.867698\n"
assert test in outPutFile
def test_capacitytoactivity_WI_5_is_31_536(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capacitytoactivity(dict_df['capacitytoactivity'], outPutFile, dict_df['input_data'])
test = "region\tWI_5\t31.536000\n"
assert test in outPutFile
def test_inputact_TRLV_3_EL2_3_should_be_1_2025(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = inputact(outPutFile, dict_df['inputactivity'], dict_df['input_data'])
test = "region\tTRLV_3\tEL2_3\t1\t2025\t1.000000\n"
assert test in outPutFile
def test_outputact_SOMG_5_EL2_5_should_be_1_modeop_1_2025(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = outputactivity(outPutFile, dict_df['outputactivity'], dict_df['input_data'])
test = "region\tSOMG_3\tEL2_3\t1\t2025\t0.867500\n"
assert test in outPutFile
def test_specifiedannualdemand_EL3_4_is_2_41(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = specifiedannualdemand(outPutFile, dict_df['demand'], dict_df['input_data'])
test = "region\tEL3_4\t2025\t2.410610\n"
assert test in outPutFile
def test_variable_cost_WI_5_scould_be_5(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = variblecost(dict_df['GIS_data'], outPutFile, dict_df['input_data'], dict_df['variable_cost'])
test = "region\tWI_5\t1\t2025\t5.000000\n"
assert test in outPutFile
def test_specifieddemandprofile_EL3_10E_is_0_01756(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = SpecifiedDemandProfile(outPutFile, dict_df['demandprofile'], dict_df['input_data'])
test = "region\tEL3\t10E\t2025\t0.017560\n"
assert test in outPutFile
def test_capacityfactor_solar_battery_SOPV_8h_3_1E_should_be_0_721543(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capacityfactor(outPutFile, dict_df['GIS_data'],
dict_df['battery'], dict_df['input_data'], dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'])
test = "region\tSOPV_8h_3\t1E\t2025\t0.721543\n"
assert test in outPutFile
def test_capacityfactor_solar_SOPV_5_should_be_0(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capacityfactor(outPutFile, dict_df['GIS_data'],
dict_df['battery'], dict_df['input_data'], dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'])
test = "region\tSOPV_5\t1N\t2030\t0.000000\n"
assert test in outPutFile
def test_capacityfactor_solar_SOPV_2_should_be_0_402357(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capacityfactor(outPutFile, dict_df['GIS_data'],
dict_df['battery'], dict_df['input_data'], dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'])
test = "region\tSOPV_2\t1D\t2030\t0.402357\n"
assert test in outPutFile
def test_capacityfactor_solar_WI_5_should_be_0_0471504(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capacityfactor(outPutFile, dict_df['GIS_data'],
dict_df['battery'], dict_df['input_data'], dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'])
test = "region\tWI_5\t1N\t2030\t0.045699\n"
assert test in outPutFile
def test_capacityfactor_solar_WI_13h_5_should_be_0_0471504(self):
paths = os.path.join(os.getcwd(), 'tests','data')
dict_df = load_csvs(paths)
path = os.path.join(os.getcwd(), 'tests','osemosys_shell_param.txt')
outPutFile = make_outputfile(path)
outPutFile = capacityfactor(outPutFile, dict_df['GIS_data'],
dict_df['battery'], dict_df['input_data'], dict_df['capacityfactor_wind'], dict_df['capacityfactor_solar'])
test = "region\tWI_13h_5\t1N\t2020\t0.061989\n"
assert test in outPutFile
if __name__ == '__main__':
unittest.main()
| 52.802521
| 158
| 0.663961
| 1,646
| 12,567
| 4.750304
| 0.113609
| 0.077504
| 0.06011
| 0.072132
| 0.790127
| 0.776826
| 0.774907
| 0.737434
| 0.726819
| 0.677452
| 0
| 0.045098
| 0.209517
| 12,567
| 237
| 159
| 53.025316
| 0.741997
| 0.001989
| 0
| 0.636364
| 0
| 0
| 0.211626
| 0.103182
| 0
| 0
| 0
| 0
| 0.114833
| 1
| 0.119617
| false
| 0
| 0.033493
| 0
| 0.157895
| 0.004785
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 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
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.