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
8c15657e3eea07d889af635dbfcc5cda23bb4187
694
py
Python
models/heuristics/heuristic_test.py
frila/agente-minimax
63affaaca2b070cb6eabc5f4290cb4ae6302e50d
[ "Apache-2.0" ]
null
null
null
models/heuristics/heuristic_test.py
frila/agente-minimax
63affaaca2b070cb6eabc5f4290cb4ae6302e50d
[ "Apache-2.0" ]
null
null
null
models/heuristics/heuristic_test.py
frila/agente-minimax
63affaaca2b070cb6eabc5f4290cb4ae6302e50d
[ "Apache-2.0" ]
null
null
null
__author__ = 'fausto' from models.algorithm.minimax import Heuristic import random class HeuristicTestMe(Heuristic): def heuristic(self, board): return random.randrange(-20, 20) def eval(self, old_value, new_value): #Lembre-se, uma heuristica tem que ser min, e o outro deve ser max return old_value > new_value # isso representa o max class HeuristicTestChallenger(Heuristic): def __init__(self, color): Heuristic.__init__(color) def heuristic(self, board): return random.randrange(-20, 20) def eval(self, old_value, new_value): #Lembre-se, uma heuristica tem que ser min, e o outro deve ser max return old_value < new_value # isso representa o min
28.916667
70
0.736311
101
694
4.861386
0.386139
0.065173
0.089613
0.130346
0.651731
0.651731
0.651731
0.651731
0.651731
0.651731
0
0.01406
0.180115
694
24
71
28.916667
0.848858
0.25072
0
0.4
0
0
0.011605
0
0
0
0
0
0
1
0.333333
false
0
0.133333
0.266667
0.866667
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
8c409f49f14ffaacd417577f81545d7de41f4f2b
89
py
Python
xtok/python-package/ut/__main__.py
alesapin/xtok
bc5c875228d3265a4b796d21c2815a9ee345fae4
[ "MIT" ]
null
null
null
xtok/python-package/ut/__main__.py
alesapin/xtok
bc5c875228d3265a4b796d21c2815a9ee345fae4
[ "MIT" ]
null
null
null
xtok/python-package/ut/__main__.py
alesapin/xtok
bc5c875228d3265a4b796d21c2815a9ee345fae4
[ "MIT" ]
1
2020-05-21T18:03:08.000Z
2020-05-21T18:03:08.000Z
from xtok import tokenize if __name__ == "__main__": print tokenize("HELLO WORLD")
14.833333
33
0.707865
11
89
5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.191011
89
5
34
17.8
0.763889
0
0
0
0
0
0.215909
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.333333
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
0
0
4
8c56cb1048ac8f786670fe3e3925648d4060a2eb
109
py
Python
tests/potentials/__init__.py
oarodriguez/gspits
47cc868d3a1780bc681e4f0f36be75d1cf0608f4
[ "Apache-2.0" ]
null
null
null
tests/potentials/__init__.py
oarodriguez/gspits
47cc868d3a1780bc681e4f0f36be75d1cf0608f4
[ "Apache-2.0" ]
null
null
null
tests/potentials/__init__.py
oarodriguez/gspits
47cc868d3a1780bc681e4f0f36be75d1cf0608f4
[ "Apache-2.0" ]
null
null
null
"""Mark this test directory as a package. See https://github.com/python/mypy/issues/4008 for more info. """
21.8
61
0.724771
18
109
4.388889
1
0
0
0
0
0
0
0
0
0
0
0.042105
0.12844
109
4
62
27.25
0.789474
0.926606
0
null
0
null
0
0
null
0
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
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
4
8c594066ff6f37958015255ca14cfd03b36cae51
138
py
Python
ROOT/zums/signals.py
amitu/zums
4774db59b38970057a1618ac73c01e1377dd0db4
[ "BSD-3-Clause" ]
1
2022-02-22T16:23:26.000Z
2022-02-22T16:23:26.000Z
ROOT/zums/signals.py
amitu/zums
4774db59b38970057a1618ac73c01e1377dd0db4
[ "BSD-3-Clause" ]
null
null
null
ROOT/zums/signals.py
amitu/zums
4774db59b38970057a1618ac73c01e1377dd0db4
[ "BSD-3-Clause" ]
null
null
null
import django UserSignedIn = django.dispatch.Signal() UserSignedOut = django.dispatch.Signal() UserRegistered = django.dispatch.Signal()
23
41
0.804348
14
138
7.928571
0.5
0.378378
0.540541
0
0
0
0
0
0
0
0
0
0.086957
138
5
42
27.6
0.880952
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
0
0
0
0
0
4
8c5ddebda5afdd465c976982af90fdc327a6d0ef
97
py
Python
{{package}}/__init__.py
sihrc/python-project-starter
6d5b2795ad6fc3720cc45204dd0026bdc6237b76
[ "MIT" ]
6
2018-08-05T11:36:55.000Z
2021-12-19T20:38:08.000Z
{{package}}/__init__.py
sihrc/python-project-starter
6d5b2795ad6fc3720cc45204dd0026bdc6237b76
[ "MIT" ]
null
null
null
{{package}}/__init__.py
sihrc/python-project-starter
6d5b2795ad6fc3720cc45204dd0026bdc6237b76
[ "MIT" ]
3
2019-02-13T04:42:44.000Z
2021-02-15T22:48:00.000Z
""" {{package}} module. --------------- {{description}} Author: {{author}} Email: {{email}} """
10.777778
19
0.474227
7
97
6.571429
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.113402
97
8
20
12.125
0.534884
0.907216
0
null
0
null
0
0
null
0
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
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
4
4fcebb7bd37c5046c1d09649e202d3c54c73b2cb
621
py
Python
examples/hica/injectors/dri_passthrough.py
connectthefuture/docker-hacks
d7ea13522188233d5e8a97179d2b0a872239f58d
[ "MIT" ]
null
null
null
examples/hica/injectors/dri_passthrough.py
connectthefuture/docker-hacks
d7ea13522188233d5e8a97179d2b0a872239f58d
[ "MIT" ]
1
2021-03-20T04:49:20.000Z
2021-03-20T04:49:20.000Z
examples/hica/injectors/dri_passthrough.py
connectthefuture/docker-hacks
d7ea13522188233d5e8a97179d2b0a872239f58d
[ "MIT" ]
null
null
null
# vim: set fileencoding=utf-8 # Pavel Odvody <podvody@redhat.com> # # HICA - Host integrated container applications # # MIT License (C) 2015 from base.hica_base import * class DriPassthroughInjector(HicaInjector): def get_description(self): return "Bind mounts direct rendering interface devices (DRI) into the container" def get_config_key(self): return "io.hica.dri_passthrough" def get_injected_args(self): return (("--dri-passthrough-path", HicaValueType.DEVICE | HicaValueType.GLOB, "/dev/dri/*"),) def register(context): obj = DriPassthroughInjector() context[obj.get_config_key()] = obj
27
97
0.742351
78
621
5.794872
0.679487
0.039823
0.053097
0
0
0
0
0
0
0
0
0.009381
0.141707
621
22
98
28.227273
0.838649
0.206119
0
0
0
0
0.259259
0.092593
0
0
0
0
0
1
0.363636
false
0.363636
0.090909
0.272727
0.818182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
4fdc72bda29ad7086624ea12e4354522d1718895
13,761
py
Python
RamachandranPlot/calculate_density_exp.py
kumar-physics/RamachandranPlot
ddadf233d03ae3f997ff1bdf7ae4c544dc43d34e
[ "MIT" ]
null
null
null
RamachandranPlot/calculate_density_exp.py
kumar-physics/RamachandranPlot
ddadf233d03ae3f997ff1bdf7ae4c544dc43d34e
[ "MIT" ]
null
null
null
RamachandranPlot/calculate_density_exp.py
kumar-physics/RamachandranPlot
ddadf233d03ae3f997ff1bdf7ae4c544dc43d34e
[ "MIT" ]
null
null
null
import numpy import plotly.express as px import csv from scipy import stats import sys import os import logging logging.getLogger().setLevel(logging.INFO) aa = ['SER', 'HIS', 'GLU', 'GLY', 'LYS', 'ALA', 'LEU', 'GLN', 'PRO', 'MET', 'ASP', 'PHE', 'VAL', 'THR', 'ILE', 'ASN', 'ARG', 'TYR', 'CYS', 'TRP'] amino_acid_dict = {_: True for _ in aa} def read_csv(fname): # Filters can be introduced later here. csv_data = {} with open(fname) as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: if row[4] not in csv_data: csv_data[row[4]]={} if row[1] in amino_acid_dict: if row[1] not in csv_data[row[4]]: csv_data[row[4]][row[1]] = {'phi': [], 'psi': []} csv_data[row[4]][row[1]]['phi'].append(float(row[2])) csv_data[row[4]][row[1]]['psi'].append(float(row[3])) for exp in csv_data: for amino_acid in csv_data[exp]: csv_data[exp][amino_acid]['phi'] = numpy.array(csv_data[exp][amino_acid]['phi']) csv_data[exp][amino_acid]['psi'] = numpy.array(csv_data[exp][amino_acid]['psi']) return csv_data def cal_hist(phi,psi,s,ds): n=len(s) hist = numpy.array([[0]*n]*n) for i in range(len(phi)): xid=get_index(phi[i],s,ds) yid=get_index(psi[i],s,ds) hist[xid][yid]+=1 hist = hist/sum(sum(hist)) return hist def get_index(angle,glist,ds): for i in glist: if i-ds<angle<=i+ds: c = glist.index(i) break return c def calculate_density2(pdb_file, out_dir): logging.info("Reading pdb data..") pdb_data = read_csv(pdb_file) logging.info('Done Reading') grid_size = 1 s = list(numpy.arange(-180.0, 181.0, grid_size)) ds = grid_size / 2.0 lab_x = s lab_y = s for exp in pdb_data: if exp not in ['X-RAY DIFFRACTION','SOLUTION NMR','ELECTRON CRYSTALLOGRAPHY','NEUTRON DIFFRACTION','SOLID-STATE NMR']: out_dir = '{}/{}'.format(out_dir,exp) for res in aa: out_path = '{}/{}'.format(out_dir, res) if not os.path.exists(out_path): os.makedirs(out_path) out_base_file_name = '{}/{}_{}'.format(out_path, exp,res) try: pdb_density = cal_hist(pdb_data[exp][res]['phi'], pdb_data[exp][res]['psi'], s, ds).T plot_density(pdb_density, lab_x, lab_y, '{}_pdb'.format(out_base_file_name)) write_density(pdb_density, lab_x, lab_y, '{}_pdb.csv'.format(out_base_file_name)) log_pdb_density = numpy.log(pdb_density) plot_density(log_pdb_density, lab_x, lab_y, '{}_log_pdb'.format(out_base_file_name)) write_density(log_pdb_density, lab_x, lab_y, '{}_log_pdb.csv'.format(out_base_file_name)) pdb_data_points = len(pdb_data[exp][res]['psi']) fo = open('{}_info.txt'.format(out_base_file_name), 'w') fo.write('Number pdb data points : {}\n'.format(pdb_data_points)) fo.close() except KeyError: pass # density comparison for all the residues except GLY. pdb_all = {'phi': numpy.array([]), 'psi': numpy.array([]), 'q': numpy.array([])} for res in aa: if res != 'GLY': # Its better to exclude glycine try: pdb_all['phi'] = numpy.append(pdb_all['phi'], pdb_data[exp][res]['phi']) pdb_all['psi'] = numpy.append(pdb_all['psi'], pdb_data[exp][res]['psi']) except KeyError: pass out_path = '{}/ALL'.format(out_dir) if not os.path.exists(out_path): os.makedirs(out_path) out_base_file_name = '{}/ALL'.format(out_path) pdb_density=cal_hist(pdb_all['phi'], pdb_all['psi'], s, ds).T plot_density(pdb_density, lab_x, lab_y, '{}_pdb'.format(out_base_file_name)) write_density(pdb_density, lab_x, lab_y, '{}_pdb.csv'.format(out_base_file_name)) log_pdb_density = numpy.log(pdb_density) plot_density(log_pdb_density, lab_x, lab_y, '{}_log_pdb'.format(out_base_file_name)) write_density(log_pdb_density, lab_x, lab_y, '{}_log_pdb.csv'.format(out_base_file_name)) pdb_data_points = len(pdb_all['psi']) fo = open('{}_info.txt'.format(out_base_file_name), 'w') fo.write('Number pdb data points : {}\n'.format(pdb_data_points)) fo.close() def calculate_density(af_file, pdb_file, out_dir): logging.info("Reading af data..") af_data = read_csv(af_file) logging.info("Reading pdb data..") pdb_data = read_csv(pdb_file) logging.info('Done Reading') xx, yy = numpy.mgrid[-180:180:361j, 180:-180:361j] # grid size positions = numpy.vstack([xx.ravel(), yy.ravel()]) lab_x = [] lab_y = [] for i in range(len(xx)): lab_x.append(xx[i][i]) lab_y.append(xx[len(xx) - i - 1][len(xx) - i - 1]) # density comparison for each residue for res in aa: out_path = '{}/{}'.format(out_dir, res) if not os.path.exists(out_path): os.makedirs(out_path) out_base_file_name = '{}/{}'.format(out_path, res) values = numpy.vstack([af_data[res]['phi'], af_data[res]['psi']]) logging.info('Calculating KDE for {}'.format(res)) kernel = stats.gaussian_kde(values) logging.info('Done Calculating KDE for {}'.format(res)) af_density = numpy.reshape(kernel(positions).T, xx.shape).T logging.info('Plotting {}'.format(res)) plot_density(af_density, lab_x, lab_y, '{}_af'.format(out_base_file_name)) write_density(af_density, lab_x, lab_y, '{}_af.csv'.format(out_base_file_name)) log_af_density = numpy.log(af_density) plot_density(log_af_density, lab_x, lab_y, '{}_log_af'.format(out_base_file_name)) write_density(log_af_density, lab_x, lab_y, '{}_log_af.csv'.format(out_base_file_name)) values = numpy.vstack([pdb_data[res]['phi'], pdb_data[res]['psi']]) kernel = stats.gaussian_kde(values) pdb_density = numpy.reshape(kernel(positions).T, xx.shape).T plot_density(pdb_density, lab_x, lab_y, '{}_pdb'.format(out_base_file_name)) write_density(pdb_density, lab_x, lab_y, '{}_pdb.csv'.format(out_base_file_name)) log_pdb_density = numpy.log(pdb_density) plot_density(log_pdb_density, lab_x, lab_y, '{}_log_pdb'.format(out_base_file_name)) write_density(log_pdb_density, lab_x, lab_y, '{}_log_pdb.csv'.format(out_base_file_name)) af_pdb = af_density - pdb_density plot_density(af_pdb, lab_x, lab_y, '{}_af_pdb'.format(out_base_file_name)) write_density(af_pdb, lab_x, lab_y, '{}_af_pdb.csv'.format(out_base_file_name)) log_af_pdb = numpy.log(af_pdb) plot_density(log_af_pdb, lab_x, lab_y, '{}_log_af_pdb'.format(out_base_file_name)) write_density(log_af_pdb, lab_x, lab_y, '{}_log_af_pdb.csv'.format(out_base_file_name)) log_af_log_pdb = log_af_density - log_pdb_density plot_density(log_af_log_pdb, lab_x, lab_y, '{}_log_af_log_pdb'.format(out_base_file_name)) write_density(log_af_log_pdb, lab_x, lab_y, '{}_log_af_log_pdb.csv'.format(out_base_file_name)) pdb_af = pdb_density - af_density plot_density(pdb_af, lab_x, lab_y, '{}_pdb_af'.format(out_base_file_name)) write_density(pdb_af, lab_x, lab_y, '{}_pdb_af.csv'.format(out_base_file_name)) log_pdb_af = numpy.log(pdb_af) plot_density(log_pdb_af, lab_x, lab_y, '{}_log_pdb_af'.format(out_base_file_name)) write_density(log_pdb_af, lab_x, lab_y, '{}_log_pdb_af.csv'.format(out_base_file_name)) log_pdb_log_af = log_pdb_density - log_af_density plot_density(log_pdb_log_af, lab_x, lab_y, '{}_log_pdb_log_af'.format(out_base_file_name)) write_density(log_pdb_log_af, lab_x, lab_y, '{}_log_pdb_log_af.csv'.format(out_base_file_name)) af_data_points = len(af_data[res]['psi']) pdb_data_points = len(pdb_data[res]['psi']) fo = open('{}_info.txt'.format(out_base_file_name), 'w') fo.write('Number alpha fold data points : {}\n'.format(af_data_points)) fo.write('Number pdb data points : {}\n'.format(pdb_data_points)) fo.close() # density comparison for all the residues except GLY. af_all = {'phi': numpy.array([]), 'psi': numpy.array([]), 'q': numpy.array([])} pdb_all = {'phi': numpy.array([]), 'psi': numpy.array([]), 'q': numpy.array([])} for res in aa: if res != 'GLY': # Its better to exclude glycine af_all['phi'] = numpy.append(af_all['phi'], af_data[res]['phi']) af_all['psi'] = numpy.append(af_all['psi'], af_data[res]['psi']) pdb_all['phi'] = numpy.append(pdb_all['phi'], pdb_data[res]['phi']) pdb_all['psi'] = numpy.append(pdb_all['psi'], pdb_data[res]['psi']) out_path = '{}/ALL'.format(out_dir) if not os.path.exists(out_path): os.makedirs(out_path) out_base_file_name = '{}/ALL'.format(out_path) values = numpy.vstack([af_all['phi'], af_all['psi']]) kernel = stats.gaussian_kde(values) af_density = numpy.reshape(kernel(positions).T, xx.shape).T plot_density(af_density, lab_x, lab_y, '{}_af'.format(out_base_file_name)) write_density(af_density, lab_x, lab_y, '{}_af.csv'.format(out_base_file_name)) log_af_density = numpy.log(af_density) plot_density(log_af_density, lab_x, lab_y, '{}_log_af'.format(out_base_file_name)) write_density(log_af_density, lab_x, lab_y, '{}_log_af.csv'.format(out_base_file_name)) values = numpy.vstack([pdb_all['phi'], pdb_all['psi']]) kernel = stats.gaussian_kde(values) pdb_density = numpy.reshape(kernel(positions).T, xx.shape).T plot_density(pdb_density, lab_x, lab_y, '{}_pdb'.format(out_base_file_name)) write_density(pdb_density, lab_x, lab_y, '{}_pdb.csv'.format(out_base_file_name)) log_pdb_density = numpy.log(pdb_density) plot_density(log_pdb_density, lab_x, lab_y, '{}_log_pdb'.format(out_base_file_name)) write_density(log_pdb_density, lab_x, lab_y, '{}_log_pdb.csv'.format(out_base_file_name)) af_pdb = af_density - pdb_density plot_density(af_pdb, lab_x, lab_y, '{}_af_pdb'.format(out_base_file_name)) write_density(af_pdb, lab_x, lab_y, '{}_af_pdb.csv'.format(out_base_file_name)) log_af_pdb = numpy.log(af_pdb) plot_density(log_af_pdb, lab_x, lab_y, '{}_log_af_pdb'.format(out_base_file_name)) write_density(log_af_pdb, lab_x, lab_y, '{}_log_af_pdb.csv'.format(out_base_file_name)) log_af_log_pdb = log_af_density - log_pdb_density plot_density(log_af_log_pdb, lab_x, lab_y, '{}_log_af_log_pdb'.format(out_base_file_name)) write_density(log_af_log_pdb, lab_x, lab_y, '{}_log_af_log_pdb.csv'.format(out_base_file_name)) pdb_af = pdb_density - af_density plot_density(pdb_af, lab_x, lab_y, '{}_pdb_af'.format(out_base_file_name)) write_density(pdb_af, lab_x, lab_y, '{}_pdb_af.csv'.format(out_base_file_name)) log_pdb_af = numpy.log(pdb_af) plot_density(log_pdb_af, lab_x, lab_y, '{}_log_pdb_af'.format(out_base_file_name)) write_density(log_pdb_af, lab_x, lab_y, '{}_log_pdb_af.csv'.format(out_base_file_name)) log_pdb_log_af = log_pdb_density - log_af_density plot_density(log_pdb_log_af, lab_x, lab_y, '{}_log_pdb_log_af'.format(out_base_file_name)) write_density(log_pdb_log_af, lab_x, lab_y, '{}_log_pdb_log_af.csv'.format(out_base_file_name)) af_data_points = len(af_all['psi']) pdb_data_points = len(pdb_all['psi']) fo = open('{}_info.txt'.format(out_base_file_name), 'w') fo.write('Number alpha fold data points : {}\n'.format(af_data_points)) fo.write('Number pdb data points : {}\n'.format(pdb_data_points)) fo.close() def plot_density(df, lab_x, lab_y, out_file): fig = px.imshow(df, x=lab_x, y=lab_y, labels={'x': u"\u03D5", 'y': u"\u03A8"}) fig.update_yaxes(autorange=True) fig.write_html('{}.html'.format(out_file)) fig.write_image('{}.jpeg'.format(out_file), width=800, height=800) fig.write_image('{}.pdf'.format(out_file), width=800, height=800) def write_density(df, lab_x, lab_y, out_file): fo = open(out_file, 'w') for i in range(len(lab_x)): for j in range(len(lab_y)): fo.write('{},{},{}\n'.format(round(lab_x[i], 2), round(lab_y[j], 2), format(df[i][j], ".4E"))) fo.close() # # def read_csv(fname): # # Filters can be introduced later here. # csv_data = {} # with open(fname, newline='') as csvfile: # spamreader = csv.reader(csvfile, delimiter=',') # for row in spamreader: # if row[1] in aa: # if row[1] not in csv_data.keys(): # csv_data[row[1]] = {'phi': numpy.array([]), # 'psi': numpy.array([])} # csv_data[row[1]]['phi'] = numpy.append(csv_data[row[1]]['phi'], float(row[2])) # csv_data[row[1]]['psi'] = numpy.append(csv_data[row[1]]['psi'], float(row[3])) # return csv_data if __name__ == "__main__": pdb_file = sys.argv[1] out_dir = sys.argv[2] calculate_density2(pdb_file, out_dir) # calculate_density2( '/Users/kumaran/af_dihearal/pdb/pdb_test.csv', # '/Users/kumaran/af_dihearal/output4')
46.489865
126
0.625245
2,138
13,761
3.659495
0.09261
0.07362
0.078732
0.107362
0.801892
0.770194
0.730061
0.695424
0.678298
0.678298
0
0.007642
0.22026
13,761
295
127
46.647458
0.721528
0.072742
0
0.553097
0
0
0.108363
0.006596
0
0
0
0
0
1
0.030973
false
0.00885
0.030973
0
0.075221
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4fe14faa76d6d396bcda240a618564b7c627b660
27
py
Python
import_export/__init__.py
u8621011/django-import-export
601aa041727f4d0b2eb124d54f067ddad2b7717d
[ "BSD-2-Clause" ]
null
null
null
import_export/__init__.py
u8621011/django-import-export
601aa041727f4d0b2eb124d54f067ddad2b7717d
[ "BSD-2-Clause" ]
null
null
null
import_export/__init__.py
u8621011/django-import-export
601aa041727f4d0b2eb124d54f067ddad2b7717d
[ "BSD-2-Clause" ]
null
null
null
__version__ = '0.2.7.dev0'
13.5
26
0.666667
5
27
2.8
1
0
0
0
0
0
0
0
0
0
0
0.166667
0.111111
27
1
27
27
0.416667
0
0
0
0
0
0.37037
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
0
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
4
8b019b9caeb6ba493905ad5d629867211cd6d9fc
391
py
Python
setup.py
stur86/py-schroedinger
11ff863723dd0c7392ad5d6575fc669a9cfb690d
[ "MIT" ]
1
2019-12-06T17:57:12.000Z
2019-12-06T17:57:12.000Z
setup.py
stur86/py-schroedinger
11ff863723dd0c7392ad5d6575fc669a9cfb690d
[ "MIT" ]
null
null
null
setup.py
stur86/py-schroedinger
11ff863723dd0c7392ad5d6575fc669a9cfb690d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Py-Schroedinger - Schroedinger Equation numerical solution library """ # Python 2-to-3 compatibility code from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from setuptools import setup setup(name='PySchroedinger', version='0.9', packages=['pyschro'])
23
66
0.780051
48
391
5.958333
0.6875
0.13986
0.223776
0
0
0
0
0
0
0
0
0.011869
0.138107
391
17
67
23
0.836795
0.306905
0
0
0
0
0.091603
0
0
0
0
0
0
1
0
true
0
0.625
0
0.625
0.125
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
8b0661a890e5e6a02feb1569c71a569b6639ff7d
132
py
Python
OOP/Exercises/Inheritance_Exercise/3_players_and_monsters/project/soul_master.py
tankishev/Python
60e511fc901f136b88c681f77f209fe2f8c46447
[ "MIT" ]
2
2022-03-04T11:39:03.000Z
2022-03-13T07:13:23.000Z
OOP/Exercises/Inheritance_Exercise/3_players_and_monsters/project/soul_master.py
tankishev/Python
60e511fc901f136b88c681f77f209fe2f8c46447
[ "MIT" ]
null
null
null
OOP/Exercises/Inheritance_Exercise/3_players_and_monsters/project/soul_master.py
tankishev/Python
60e511fc901f136b88c681f77f209fe2f8c46447
[ "MIT" ]
null
null
null
from .dark_wizard import DarkWizard class SoulMaster(DarkWizard): def __init__(self, *args): super().__init__(*args)
16.5
35
0.69697
15
132
5.533333
0.8
0
0
0
0
0
0
0
0
0
0
0
0.189394
132
7
36
18.857143
0.775701
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
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
0
0
0
1
0
0
4
8c65acb16f3bc2ed76cb2297c727d0a8dd742a39
63
py
Python
src/ralph/data_center/__init__.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/data_center/__init__.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/data_center/__init__.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
default_app_config = 'ralph.data_center.apps.DataCenterConfig'
31.5
62
0.857143
8
63
6.375
1
0
0
0
0
0
0
0
0
0
0
0
0.047619
63
1
63
63
0.85
0
0
0
0
0
0.619048
0.619048
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
0
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
4
8c6cfb115bed94ccc147d442dd609de2490efa04
86
py
Python
ChessDRF/server/logic/__init__.py
Pythongor/Chess-DRF
d8dedd9fa6db85c00e6e3ee4c63729448a9bfba5
[ "MIT" ]
null
null
null
ChessDRF/server/logic/__init__.py
Pythongor/Chess-DRF
d8dedd9fa6db85c00e6e3ee4c63729448a9bfba5
[ "MIT" ]
3
2021-09-08T03:38:52.000Z
2022-01-13T03:57:08.000Z
ChessDRF/server/logic/__init__.py
Pythongor/Chess-DRF
d8dedd9fa6db85c00e6e3ee4c63729448a9bfba5
[ "MIT" ]
null
null
null
from .checker import Checker from .board import Board __all__ = ('Checker', 'Board')
17.2
30
0.732558
11
86
5.363636
0.454545
0
0
0
0
0
0
0
0
0
0
0
0.151163
86
4
31
21.5
0.808219
0
0
0
0
0
0.139535
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
4
8c741ed3eaf439cc3ccfd4c8a47eb08f82bc61b0
191
py
Python
src/user/repository.py
andresposada/mongoconnections-dependency-injections
77b19229e6a867584051592632b7624d1dd3c7ad
[ "Apache-2.0" ]
null
null
null
src/user/repository.py
andresposada/mongoconnections-dependency-injections
77b19229e6a867584051592632b7624d1dd3c7ad
[ "Apache-2.0" ]
null
null
null
src/user/repository.py
andresposada/mongoconnections-dependency-injections
77b19229e6a867584051592632b7624d1dd3c7ad
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from src.user.domain import UserEntity class UserRepository(ABC): @abstractmethod def save(self, user: UserEntity) -> UserEntity: pass
17.363636
51
0.722513
22
191
6.272727
0.636364
0.246377
0
0
0
0
0
0
0
0
0
0
0.204188
191
10
52
19.1
0.907895
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0.166667
0.333333
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
4
8c81157a2d1952140af90a1bf102bb0e01ae765b
47
py
Python
lang/Python/loops-while.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/loops-while.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/loops-while.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
n = 1024 while n > 0: print(n) n //= 2
9.4
12
0.425532
9
47
2.222222
0.666667
0
0
0
0
0
0
0
0
0
0
0.214286
0.404255
47
4
13
11.75
0.5
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
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
4
8c83e77abf934dc12f2753546d572b47d84546b7
1,161
py
Python
string_format.py
dfds/python-for-absolute-beginners
68b1506f308ed556ce0916163af2ff2df328169b
[ "MIT" ]
1
2021-05-26T11:28:15.000Z
2021-05-26T11:28:15.000Z
string_format.py
dfds/python-for-absolute-beginners
68b1506f308ed556ce0916163af2ff2df328169b
[ "MIT" ]
null
null
null
string_format.py
dfds/python-for-absolute-beginners
68b1506f308ed556ce0916163af2ff2df328169b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 title: str = 'Lady' name: str = 'Gaga' # Lady Gaga is an American actress, singer and songwriter. # String concatination at its worst print(title + ' ' + name + ' is an American actress, singer and songwriter.') # Legacy example print('%s %s is an American actress, singer and songwriter.' % (title, name)) # Python 3 (and 2.7) encourages str.format() function. print('{} {} is an American actress, singer and songwriter.'.format(title, name)) # noqa E501 print('{0} {1} is an American actress, singer and songwriter.'.format(title, name)) # noqa E501 print('{title} {name} is an American actress, singer and songwriter.'.format(title=title, name=name)) # noqa E501 print('{title} {name} is an American actress, singer and songwriter.'.format(name=name, title=title)) # noqa E501 # From Python 3.6 onwards you can use String interpolation aka f-strings. # So now, this is the recommended way to format strings. print(f'{title} {name} is an American actress, singer and songwriter.') # f-string also works with inline code six: int = 6 seven: int = 7 print(f'What do you get if you multiply {six} by {seven}?: {six * seven}')
38.7
114
0.708872
180
1,161
4.572222
0.372222
0.038882
0.116646
0.18469
0.528554
0.528554
0.528554
0.436209
0.436209
0.373026
0
0.022634
0.162791
1,161
29
115
40.034483
0.824074
0.330749
0
0
0
0
0.602614
0
0
0
0
0
0
1
0
true
0
0
0
0
0.666667
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
8caa8375f1e9be9474eefda387b4bb6bb756a5b9
70
py
Python
QASMToQuEST.py
oerc0122/QASMParser
701b6f25f498ea67670f2d85ae0f2e6920aea267
[ "MIT" ]
5
2019-05-10T08:17:57.000Z
2021-12-19T05:06:18.000Z
QASMToQuEST.py
oerc0122/QASMParser
701b6f25f498ea67670f2d85ae0f2e6920aea267
[ "MIT" ]
14
2019-04-11T11:28:08.000Z
2020-02-13T15:18:56.000Z
QASMToQuEST.py
oerc0122/QASMParser
701b6f25f498ea67670f2d85ae0f2e6920aea267
[ "MIT" ]
2
2019-05-10T08:17:23.000Z
2021-12-18T16:37:02.000Z
#!/usr/bin/env python3 from QASMToQuEST.__main__ import main main()
11.666667
37
0.757143
10
70
4.9
0.8
0
0
0
0
0
0
0
0
0
0
0.016393
0.128571
70
5
38
14
0.786885
0.3
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
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
4
8cb2622edf9f133ff3850514fc5394e40b874b51
53
py
Python
nlp_datasets/seq_classify/__init__.py
luozhouyang/nlp-datasets
471e2e3ad2a4b8c363c5a4080683bac5618c8c6a
[ "Apache-2.0" ]
6
2019-09-24T11:45:47.000Z
2021-09-06T06:08:30.000Z
nlp_datasets/seq_classify/__init__.py
luozhouyang/nlp-datasets
471e2e3ad2a4b8c363c5a4080683bac5618c8c6a
[ "Apache-2.0" ]
5
2019-10-15T02:28:11.000Z
2022-02-10T01:26:15.000Z
nlp_datasets/seq_classify/__init__.py
luozhouyang/nlp-datasets
471e2e3ad2a4b8c363c5a4080683bac5618c8c6a
[ "Apache-2.0" ]
null
null
null
from .seq_classify_dataset import SeqClassifyDataset
26.5
52
0.90566
6
53
7.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.075472
53
1
53
53
0.938776
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
0
0
0
4
8cd5c346a26c96067d6b0a4e207ea068278c143d
2,075
py
Python
ckan/tests/legacy/functional/test_tag.py
okfde/ckankrzn
df4c1ed624f6751ac2a8f03527ff19e448d27dfb
[ "Apache-2.0" ]
4
2017-06-12T15:18:30.000Z
2019-10-11T15:12:43.000Z
ckan/tests/legacy/functional/test_tag.py
okfde/ckankrzn
df4c1ed624f6751ac2a8f03527ff19e448d27dfb
[ "Apache-2.0" ]
135
2019-07-03T19:58:12.000Z
2020-02-14T19:57:33.000Z
ckan/tests/legacy/functional/test_tag.py
okfde/ckankrzn
df4c1ed624f6751ac2a8f03527ff19e448d27dfb
[ "Apache-2.0" ]
5
2017-04-06T21:18:38.000Z
2020-03-30T17:05:23.000Z
# encoding: utf-8 import json from ckan.tests.legacy import * import ckan.model as model HTTP_MOVED_PERMANENTLY = 301 class TestTagController(TestController): @classmethod def setup_class(self): model.Session.remove() CreateTestData.create() @classmethod def teardown_class(self): model.repo.rebuild_db() def test_autocomplete(self): controller = 'api' action = 'tag_autocomplete' offset = url_for(controller=controller, action=action, ver=2) res = self.app.get(offset) assert '[]' in res offset = url_for(controller=controller, action=action, incomplete='russian', ver=2) res = self.app.get(offset) assert 'russian' in res assert 'tolstoy' not in res offset = url_for(controller=controller, action=action, incomplete='tolstoy', ver=2) res = self.app.get(offset) assert 'russian' not in res assert 'tolstoy' in res def test_autocomplete_with_capital_letter_in_search_term(self): controller = 'api' action = 'tag_autocomplete' offset = url_for(controller=controller, action=action, incomplete='Flex', ver=2) res = self.app.get(offset) data = json.loads(res.body) assert u'Flexible \u30a1' in data['ResultSet']['Result'][0].values() def test_autocomplete_with_space_in_search_term(self): controller = 'api' action = 'tag_autocomplete' offset = url_for(controller=controller, action=action, incomplete='Flexible ', ver=2) res = self.app.get(offset) data = json.loads(res.body) assert u'Flexible \u30a1' in data['ResultSet']['Result'][0].values() def test_autocomplete_with_unicode_in_search_term(self): controller = 'api' action = 'tag_autocomplete' offset = url_for(controller=controller, action=action, incomplete=u'ible \u30a1', ver=2) res = self.app.get(offset) data = json.loads(res.body) assert u'Flexible \u30a1' in data['ResultSet']['Result'][0].values()
34.583333
96
0.655422
255
2,075
5.196078
0.270588
0.040755
0.05434
0.099623
0.703396
0.703396
0.703396
0.703396
0.681509
0.62717
0
0.015625
0.228916
2,075
59
97
35.169492
0.8125
0.007229
0
0.468085
0
0
0.113758
0
0
0
0
0
0.170213
1
0.12766
false
0
0.06383
0
0.212766
0
0
0
0
null
0
0
0
0
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
4
8ce04fa11a96b76989154842fcf0d1613cbe170f
464
py
Python
python/snewpy/from_snowglobes.py
soso128/snewpy
532d065437cff99f8a200c08fb53acbe101eac9b
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/from_snowglobes.py
soso128/snewpy
532d065437cff99f8a200c08fb53acbe101eac9b
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/from_snowglobes.py
soso128/snewpy
532d065437cff99f8a200c08fb53acbe101eac9b
[ "BSD-3-Clause" ]
null
null
null
import os from snewpy.snowglobes import collate as NEW_collate def collate(Branch, Model_Path, Tarball, detector_input="all", skip_plots=False, return_tables=False, verbose=False, remove_generated_files=True): print("[INFO] The `collate` function has been moved to the `snewpy.snowglobes` module.") tarball_path = os.path.join(Model_Path, Tarball) return NEW_collate(Branch, tarball_path, detector_input, skip_plots, verbose, remove_generated_files)
51.555556
146
0.793103
66
464
5.348485
0.545455
0.090652
0.090652
0
0
0
0
0
0
0
0
0
0.114224
464
8
147
58
0.858881
0
0
0
1
0
0.176724
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.666667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
8ceb258a96ea1fc6f8bf437067a39083b2bb5c85
71
py
Python
lectures/code/control_pass.py
naskoch/python_course
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
[ "MIT" ]
4
2015-08-10T17:46:55.000Z
2020-04-18T21:09:03.000Z
lectures/code/control_pass.py
naskoch/python_course
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
[ "MIT" ]
null
null
null
lectures/code/control_pass.py
naskoch/python_course
84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3
[ "MIT" ]
2
2019-04-24T03:31:02.000Z
2019-05-13T07:36:06.000Z
if traffic_light == 'green': pass # to implement else: stop()
14.2
28
0.605634
9
71
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.267606
71
4
29
17.75
0.807692
0.169014
0
0
0
0
0.087719
0
0
0
0
0
0
1
0
true
0.25
0
0
0
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
0
0
0
0
0
4
8cf1b13400d5260ac5df458c7ef91b5f88c762e0
95
py
Python
webnmb.py
LanceLiang2018/WebNmb
64c4cb9199a7dc957edf31f12c06b94411c4ee03
[ "MIT" ]
null
null
null
webnmb.py
LanceLiang2018/WebNmb
64c4cb9199a7dc957edf31f12c06b94411c4ee03
[ "MIT" ]
null
null
null
webnmb.py
LanceLiang2018/WebNmb
64c4cb9199a7dc957edf31f12c06b94411c4ee03
[ "MIT" ]
null
null
null
from flask import * app = Flask('webnmb') @app.route('/') def index(): return 'webnmb'
9.5
21
0.6
12
95
4.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.210526
95
9
22
10.555556
0.76
0
0
0
0
0
0.136842
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
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
0
0
0
1
1
0
0
4
8cfafa705f305f453566a65a3beaa11291548340
240
py
Python
core/models/layers/__init__.py
JeremieMelo/L2ight
67f93b66ddf8bb5a365834b84ed6acdbc4f48eaf
[ "MIT" ]
7
2021-11-02T16:21:47.000Z
2022-03-09T06:01:25.000Z
core/models/layers/__init__.py
JeremieMelo/L2ight
67f93b66ddf8bb5a365834b84ed6acdbc4f48eaf
[ "MIT" ]
null
null
null
core/models/layers/__init__.py
JeremieMelo/L2ight
67f93b66ddf8bb5a365834b84ed6acdbc4f48eaf
[ "MIT" ]
null
null
null
''' Description: Author: Jiaqi Gu (jqgu@utexas.edu) Date: 2021-10-24 16:29:05 LastEditors: Jiaqi Gu (jqgu@utexas.edu) LastEditTime: 2021-10-24 16:29:05 ''' from .custom_linear import * from .custom_conv2d import * from .activation import *
21.818182
39
0.741667
38
240
4.631579
0.578947
0.079545
0.125
0.193182
0.386364
0.159091
0
0
0
0
0
0.137441
0.120833
240
10
40
24
0.696682
0.6125
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
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
4
508fec216d39ee29e9203c0b180fad70ef77289c
214
py
Python
setup.py
nicolas-van/test-pygame
7417c2112c32714449259180ca67163d944f0874
[ "MIT" ]
null
null
null
setup.py
nicolas-van/test-pygame
7417c2112c32714449259180ca67163d944f0874
[ "MIT" ]
null
null
null
setup.py
nicolas-van/test-pygame
7417c2112c32714449259180ca67163d944f0874
[ "MIT" ]
null
null
null
from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext setup( cmdclass = {'build_ext': build_ext}, ext_modules = [Extension("tmp", ["tmp.py"])] )
23.777778
48
0.738318
28
214
5.5
0.464286
0.155844
0
0
0
0
0
0
0
0
0
0
0.14486
214
8
49
26.75
0.84153
0
0
0
0
0
0.084112
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.428571
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
0
0
0
4
50a2a200aaa9d0080151719e2b4c96d0754496be
361
py
Python
cfgov/v1/management/commands/sync_document_storage.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
156
2015-01-16T15:16:46.000Z
2020-08-04T04:48:01.000Z
cfgov/v1/management/commands/sync_document_storage.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
3,604
2015-01-05T22:09:12.000Z
2020-08-14T17:09:19.000Z
cfgov/v1/management/commands/sync_document_storage.py
Colin-Seifer/consumerfinance.gov
a1a943f7170b498707d642d6be97b9a97a2b52e3
[ "CC0-1.0" ]
102
2015-01-28T14:51:18.000Z
2020-08-10T00:00:39.000Z
from django.core.management.base import BaseCommand from wagtail.documents import get_document_model from ._sync_storage_base import SyncStorageCommandMixin class Command(SyncStorageCommandMixin, BaseCommand): def get_storage_directories(self): return ["documents"] def get_queryset(self): return get_document_model().objects.all()
25.785714
55
0.786704
41
361
6.682927
0.585366
0.072993
0.116788
0
0
0
0
0
0
0
0
0
0.144044
361
13
56
27.769231
0.886731
0
0
0
0
0
0.024931
0
0
0
0
0
0
1
0.25
false
0
0.375
0.25
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
50bae8f10ae5bc85bda85326d02a4c7af8aca332
286
py
Python
disciplines/method/hypothesis.py
aidiss/disciplines
999844a6305ae1584429d75e0d5260e6f1dcbf4a
[ "MIT" ]
1
2018-02-11T02:09:05.000Z
2018-02-11T02:09:05.000Z
disciplines/method/hypothesis.py
aidiss/disciplines
999844a6305ae1584429d75e0d5260e6f1dcbf4a
[ "MIT" ]
null
null
null
disciplines/method/hypothesis.py
aidiss/disciplines
999844a6305ae1584429d75e0d5260e6f1dcbf4a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Hypotheses""" hypotheses """Often conferences are important for survival of disciplines often defining and redefining concept definitions is essential boundaries of discipline joining learned society umbrella organization encourages growth of discipline"""
35.75
87
0.797203
33
286
6.909091
0.848485
0.105263
0
0
0
0
0
0
0
0
0
0.004016
0.129371
286
7
88
40.857143
0.911647
0.073427
0
0
0
0
0.914634
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
50e24b9d3ba6921cd2edaf09c4f43f7c45ab14ba
9,532
py
Python
tests/test_block.py
balabit-deps/balabit-os-7-python-lz4
fab61fdaef68eabee9426c0dd0af41cd59fd9314
[ "BSD-3-Clause" ]
null
null
null
tests/test_block.py
balabit-deps/balabit-os-7-python-lz4
fab61fdaef68eabee9426c0dd0af41cd59fd9314
[ "BSD-3-Clause" ]
null
null
null
tests/test_block.py
balabit-deps/balabit-os-7-python-lz4
fab61fdaef68eabee9426c0dd0af41cd59fd9314
[ "BSD-3-Clause" ]
null
null
null
import lz4.block import sys from multiprocessing.pool import ThreadPool import unittest import os class TestLZ4Block(unittest.TestCase): def test_empty_string(self): DATA = b'' self.assertEqual(DATA, lz4.block.decompress(lz4.block.compress(DATA))) def test_random(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual(DATA, lz4.block.decompress(lz4.block.compress(DATA))) def test_random_hc1(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual(DATA, lz4.block.decompress( lz4.block.compress(DATA, mode='high_compression'))) def test_random_hc2(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual(DATA, lz4.block.decompress( lz4.block.compress(DATA, mode='high_compression', compression=7))) def test_random_hc3(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual(DATA, lz4.block.decompress( lz4.block.compress(DATA, mode='high_compression', compression=16))) def test_random_fast1(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual(DATA, lz4.block.decompress( lz4.block.compress(DATA, mode='fast'))) def test_random_fast2(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual(DATA, lz4.block.decompress( lz4.block.compress(DATA, mode='fast', acceleration=5))) def test_random_fast3(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual(DATA, lz4.block.decompress( lz4.block.compress(DATA, mode='fast', acceleration=9))) def test_random_no_store_size(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual( DATA, lz4.block.decompress( lz4.block.compress(DATA, store_size=False), uncompressed_size=128 * 1024 ) ) def test_random_hc_no_store_size(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual( DATA, lz4.block.decompress( lz4.block.compress(DATA, mode='high_compression', compression=9, store_size=False), uncompressed_size=128 * 1024 ) ) def test_random_fast_no_store_size(self): DATA = os.urandom(128 * 1024) # Read 128kb self.assertEqual( DATA, lz4.block.decompress( lz4.block.compress(DATA, mode='fast', acceleration=9, store_size=False), uncompressed_size=128 * 1024 ) ) def test_threads(self): data = [os.urandom(128 * 1024) for i in range(100)] def roundtrip(x): return lz4.block.decompress(lz4.block.compress(x)) pool = ThreadPool(8) out = pool.map(roundtrip, data) assert data == out pool.close() def test_threads_hc1(self): data = [os.urandom(128 * 1024) for i in range(100)] def roundtriphc(x): return lz4.block.decompress(lz4.block.compress(x, mode='high_compression')) pool = ThreadPool(8) out = pool.map(roundtriphc, data) assert data == out pool.close() def test_threads_hc2(self): data = [os.urandom(128 * 1024) for i in range(100)] def roundtriphc(x): return lz4.block.decompress( lz4.block.compress(x, mode='high_compression', compression=4)) pool = ThreadPool(8) out = pool.map(roundtriphc, data) assert data == out pool.close() def test_threads_hc3(self): data = [os.urandom(128 * 1024) for i in range(100)] def roundtriphc(x): return lz4.block.decompress( lz4.block.compress(x, mode='high_compression', compression=9)) pool = ThreadPool(8) out = pool.map(roundtriphc, data) assert data == out pool.close() def test_threads_fast1(self): data = [os.urandom(128 * 1024) for i in range(100)] def roundtripfast(x): return lz4.block.decompress(lz4.block.compress(x, mode='fast', acceleration=1)) pool = ThreadPool(8) out = pool.map(roundtripfast, data) assert data == out pool.close() def test_threads_fast2(self): data = [os.urandom(128 * 1024) for i in range(100)] def roundtripfast(x): return lz4.block.decompress(lz4.block.compress(x, mode='fast', acceleration=4)) pool = ThreadPool(8) out = pool.map(roundtripfast, data) assert data == out pool.close() def test_threads_fast3(self): data = [os.urandom(128 * 1024) for i in range(100)] def roundtripfast(x): return lz4.block.decompress(lz4.block.compress(x, mode='fast', acceleration=8)) pool = ThreadPool(8) out = pool.map(roundtripfast, data) assert data == out pool.close() def test_threads_fast_no_store_size(self): data = [os.urandom(128 * 1024) for i in range(100)] def roundtripfast(x): return lz4.block.decompress( lz4.block.compress(x, mode='fast', acceleration=8, store_size=False), uncompressed_size=128 * 1024 ) pool = ThreadPool(8) out = pool.map(roundtripfast, data) assert data == out pool.close() def test_threads_hc_no_store_size(self): data = [os.urandom(128 * 1024) for i in range(100)] def roundtriphc(x): return lz4.block.decompress( lz4.block.compress(x, mode='high_compression', store_size=False, compression=4), uncompressed_size=128 * 1024 ) pool = ThreadPool(8) out = pool.map(roundtriphc, data) assert data == out pool.close() def test_block_format(self): data = lz4.block.compress(b'A' * 64) self.assertEqual(data[:4], b'\x40\0\0\0') self.assertEqual(lz4.block.decompress(data[4:], uncompressed_size=64), b'A' * 64) class TestLZ4BlockModern(unittest.TestCase): def test_decompress_ui32_overflow(self): data = lz4.block.compress(b'A' * 64) with self.assertRaises(OverflowError): lz4.block.decompress(data[4:], uncompressed_size=((1<<32) + 64)) def test_decompress_without_leak(self): # Verify that hand-crafted packet does not leak uninitialized(?) memory. data = lz4.block.compress(b'A' * 64) with self.assertRaisesRegexp(ValueError, r'^Decompressor wrote 64 bytes, but 79 bytes expected from header$'): lz4.block.decompress(b'\x4f' + data[1:]) with self.assertRaisesRegexp(ValueError, r'^Decompressor wrote 64 bytes, but 79 bytes expected from header$'): lz4.block.decompress(data[4:], uncompressed_size=79) def test_decompress_truncated(self): input_data = b"2099023098234882923049823094823094898239230982349081231290381209380981203981209381238901283098908123109238098123" * 24 compressed = lz4.block.compress(input_data) for i in range(len(compressed)): with self.assertRaisesRegexp(ValueError, '^(Input source data size too small|Corrupt input at byte \d+|Decompressor wrote \d+ bytes, but \d+ bytes expected from header)'): lz4.block.decompress(compressed[:i]) def test_decompress_with_trailer(self): data = b'A' * 64 comp = lz4.block.compress(data) with self.assertRaisesRegexp(ValueError, r'^Corrupt input at byte'): self.assertEqual(data, lz4.block.decompress(comp + b'A')) with self.assertRaisesRegexp(ValueError, r'^Corrupt input at byte'): self.assertEqual(data, lz4.block.decompress(comp + comp)) with self.assertRaisesRegexp(ValueError, r'^Corrupt input at byte'): self.assertEqual(data, lz4.block.decompress(comp + comp[4:])) if sys.version_info < (2, 7): # Poor-man unittest.TestCase.skip for Python 2.6 del TestLZ4BlockModern class TestLZ4BlockBufferObjects(unittest.TestCase): def test_bytearray(self): DATA = os.urandom(128 * 1024) # Read 128kb compressed = lz4.block.compress(DATA) self.assertEqual(lz4.block.compress(bytearray(DATA)), compressed) self.assertEqual(lz4.block.decompress(bytearray(compressed)), DATA) def test_return_bytearray(self): if sys.version_info < (3,): return # skip DATA = os.urandom(128 * 1024) # Read 128kb compressed = lz4.block.compress(DATA) b = lz4.block.compress(DATA, return_bytearray=True) self.assertEqual(type(b), bytearray) self.assertEqual(bytes(b), compressed) b = lz4.block.decompress(compressed, return_bytearray=True) self.assertEqual(type(b), bytearray) self.assertEqual(bytes(b), DATA) def test_memoryview(self): if sys.version_info < (2, 7): return # skip DATA = os.urandom(128 * 1024) # Read 128kb compressed = lz4.block.compress(DATA) self.assertEqual(lz4.block.compress(memoryview(DATA)), compressed) self.assertEqual(lz4.block.decompress(memoryview(compressed)), DATA) def test_unicode(self): if sys.version_info < (3,): return # skip DATA = b'x' self.assertRaises(TypeError, lz4.block.compress, DATA.decode('latin1')) self.assertRaises(TypeError, lz4.block.decompress, lz4.block.compress(DATA).decode('latin1')) if __name__ == '__main__': unittest.main()
37.089494
183
0.630822
1,165
9,532
5.069528
0.119313
0.089401
0.089401
0.0596
0.788689
0.776837
0.759059
0.702167
0.696072
0.663224
0
0.073664
0.252308
9,532
256
184
37.234375
0.755016
0.02885
0
0.526829
0
0.004878
0.068521
0.012124
0
0
0
0
0.204878
1
0.185366
false
0
0.02439
0.043902
0.282927
0
0
0
0
null
0
0
0
0
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
4
0f9a81a30117072bf3933d8d3f2a3f4ceffd025e
254
py
Python
Mundo 2/042.py
eliascastrosousa/exerciciospythonmundo2
339100bb32df8fc0ad2b75db41fc89beba64f728
[ "MIT" ]
null
null
null
Mundo 2/042.py
eliascastrosousa/exerciciospythonmundo2
339100bb32df8fc0ad2b75db41fc89beba64f728
[ "MIT" ]
null
null
null
Mundo 2/042.py
eliascastrosousa/exerciciospythonmundo2
339100bb32df8fc0ad2b75db41fc89beba64f728
[ "MIT" ]
null
null
null
#Exercício Python 042: Refaça o DESAFIO 035 dos triângulos, acrescentando o recurso de mostrar que # tipo de triângulo será formado: #- EQUILÁTERO: todos os lados iguais #- ISÓSCELES: dois lados iguais, um diferente #- ESCALENO: todos os lados diferentes
50.8
98
0.787402
36
254
5.555556
0.805556
0.07
0.12
0
0
0
0
0
0
0
0
0.027907
0.153543
254
5
99
50.8
0.902326
0.964567
0
null
0
null
0
0
null
0
0
0.2
null
1
null
true
0
0
null
null
null
0
0
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
1
0
0
0
1
0
0
0
0
0
0
4
0fbb9e3e5d990f2154deca0519337c64e77f66ef
161
py
Python
Pattern/Small_Alphabetical/Printing_Small_u.py
reddyprasade/PYTHON-BASIC-FOR-ALL
4fa4bf850f065e9ac1cea0365b93257e1f04e2cb
[ "MIT" ]
21
2019-06-28T05:11:17.000Z
2022-03-16T02:02:28.000Z
Pattern/Small_Alphabetical/Printing_Small_u.py
reddyprasade/PYTHON-BASIC-FOR-ALL
4fa4bf850f065e9ac1cea0365b93257e1f04e2cb
[ "MIT" ]
2
2021-12-28T14:15:58.000Z
2021-12-28T14:16:02.000Z
Pattern/Small_Alphabetical/Printing_Small_u.py
reddyprasade/PYTHON-BASIC-FOR-ALL
4fa4bf850f065e9ac1cea0365b93257e1f04e2cb
[ "MIT" ]
18
2019-07-07T03:20:33.000Z
2021-05-08T10:44:18.000Z
for row in range(4): for col in range(4): if col%3==0 and row<3 or row==3 and col>0: print('*', end = ' ') else: print(' ', end = ' ') print()
20.125
45
0.496894
29
161
2.758621
0.482759
0.175
0.2
0
0
0
0
0
0
0
0
0.061404
0.291925
161
7
46
23
0.640351
0
0
0
0
0
0.024845
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
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
0
0
0
0
0
1
0
4
0fcbf6bd8681d37c84581fbd836194a9bdc87ebf
78
py
Python
rmon/loaders/__init__.py
gnkr8/rmon
7a2438a90baf3ed28faceacd8806d7ca1b32ec90
[ "MIT" ]
1
2015-09-08T06:52:44.000Z
2015-09-08T06:52:44.000Z
rmon/loaders/__init__.py
gnkr8/rmon
7a2438a90baf3ed28faceacd8806d7ca1b32ec90
[ "MIT" ]
null
null
null
rmon/loaders/__init__.py
gnkr8/rmon
7a2438a90baf3ed28faceacd8806d7ca1b32ec90
[ "MIT" ]
null
null
null
from .base import Loader from .dummy import DummyLoader dummy = DummyLoader()
19.5
30
0.794872
10
78
6.2
0.6
0
0
0
0
0
0
0
0
0
0
0
0.141026
78
4
31
19.5
0.925373
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
4
0fe34301fc28554146123d1a14346b558bb24733
95
py
Python
threepress/search/forms.py
srilatha44/threepress
263b8aee8353806bd860bc22daf019e2155b8d0f
[ "BSD-3-Clause" ]
2
2020-05-03T16:54:33.000Z
2021-11-24T21:05:05.000Z
threepress/search/forms.py
srilatha44/threepress
263b8aee8353806bd860bc22daf019e2155b8d0f
[ "BSD-3-Clause" ]
1
2022-02-12T09:20:29.000Z
2022-02-12T09:20:29.000Z
threepress/search/forms.py
srilatha44/threepress
263b8aee8353806bd860bc22daf019e2155b8d0f
[ "BSD-3-Clause" ]
1
2022-02-12T09:02:02.000Z
2022-02-12T09:02:02.000Z
from django import forms class EpubValidateForm(forms.Form): epub = forms.FileField()
13.571429
35
0.726316
11
95
6.272727
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.189474
95
6
36
15.833333
0.896104
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
0fecaf20e1d921578c1992a8c6224377d69b7a02
177
py
Python
jaraco/fabric/__main__.py
jaraco/jaraco.fabric
67c9fabc9fa8d73494f047f8d0ff9d0a95fe8189
[ "MIT" ]
1
2016-08-01T08:26:22.000Z
2016-08-01T08:26:22.000Z
jaraco/fabric/__main__.py
jaraco/jaraco.fabric
67c9fabc9fa8d73494f047f8d0ff9d0a95fe8189
[ "MIT" ]
3
2016-08-01T08:27:35.000Z
2016-11-12T17:45:50.000Z
jaraco/fabric/__main__.py
jaraco/jaraco.fabric
67c9fabc9fa8d73494f047f8d0ff9d0a95fe8189
[ "MIT" ]
1
2016-03-04T09:55:23.000Z
2016-03-04T09:55:23.000Z
import pkg_resources from . import wrapper if __name__ == '__main__': filename = pkg_resources.resource_filename(__name__, 'fabfile.py') wrapper.run_fabric(filename)
19.666667
70
0.757062
21
177
5.619048
0.666667
0.20339
0
0
0
0
0
0
0
0
0
0
0.146893
177
8
71
22.125
0.781457
0
0
0
0
0
0.101695
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
0
1
0
0
0
0
4
ba1ee3a4e5c4e42fc0a15ea3d68cf13e38cf6799
38
py
Python
PythonApplication1/PythonApplication1/PythonApplication1.py
BrandyLover/Vs2017OldProjects
b734aee22a2d521ec532c8bac5c31a6cb4bcb666
[ "MIT" ]
null
null
null
PythonApplication1/PythonApplication1/PythonApplication1.py
BrandyLover/Vs2017OldProjects
b734aee22a2d521ec532c8bac5c31a6cb4bcb666
[ "MIT" ]
null
null
null
PythonApplication1/PythonApplication1/PythonApplication1.py
BrandyLover/Vs2017OldProjects
b734aee22a2d521ec532c8bac5c31a6cb4bcb666
[ "MIT" ]
null
null
null
input if input==1: print("teste")
9.5
18
0.605263
6
38
3.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0.033333
0.210526
38
3
19
12.666667
0.733333
0
0
0
0
0
0.131579
0
0
0
0
0
0
1
0
true
0
0
0
0
0.333333
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
0
0
4
e84d1a199edc6cfb27957962a9f905df0736ea3a
191
py
Python
week2/module3/module2_32_test.py
ivaninkv/python_basics
84bbdf4d0667ca2416e3594538e7ec48f0b88f47
[ "MIT" ]
null
null
null
week2/module3/module2_32_test.py
ivaninkv/python_basics
84bbdf4d0667ca2416e3594538e7ec48f0b88f47
[ "MIT" ]
1
2021-12-13T20:46:59.000Z
2021-12-13T20:46:59.000Z
week2/module3/module2_32_test.py
ivaninkv/python_basics
84bbdf4d0667ca2416e3594538e7ec48f0b88f47
[ "MIT" ]
1
2020-08-06T21:17:34.000Z
2020-08-06T21:17:34.000Z
import module2_32 as tm import itertools def test_primes(): assert list(itertools.takewhile(lambda x: x <= 31, tm.primes())) == [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31]
23.875
73
0.591623
31
191
3.580645
0.806452
0
0
0
0
0
0
0
0
0
0
0.161972
0.256545
191
7
74
27.285714
0.619718
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0.2
true
0
0.4
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
e84e20e9a005fd2b49bdda7567a7e34251155dc5
139
py
Python
Courses/HSEPython/3 week/1.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
Courses/HSEPython/3 week/1.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
Courses/HSEPython/3 week/1.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
import math a, b, c = float(input()), float(input()), float(input()) p = (a + b + c) / 2 print(math.sqrt(p * (p - a) * (p - b) * (p - c)))
27.8
56
0.489209
26
139
2.615385
0.423077
0.441176
0.088235
0.588235
0
0
0
0
0
0
0
0.009259
0.223022
139
4
57
34.75
0.62037
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
1
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
0
0
0
0
0
0
0
4
e865556ea2f9aeca78412d8717e1ef165f82c0b5
270
py
Python
grappa/empty.py
sgissinger/grappa
51157a828d5cfdc731cada9b16255eaaf1cabbe6
[ "MIT" ]
137
2017-03-28T10:19:07.000Z
2022-01-30T19:21:32.000Z
grappa/empty.py
sgissinger/grappa
51157a828d5cfdc731cada9b16255eaaf1cabbe6
[ "MIT" ]
47
2017-03-19T23:08:48.000Z
2021-01-25T15:18:10.000Z
grappa/empty.py
grappa-project/grappa
f1861e1572e68f031977e86a5d9eba1957bd164e
[ "MIT" ]
17
2017-03-28T10:39:13.000Z
2021-07-23T20:50:15.000Z
# -*- coding: utf-8 -*- class Empty(object): """ Empty object represents emptyness state in `grappa`. """ def __repr__(self): return 'Empty' def __len__(self): return 0 # Object reference representing emptpyness empty = Empty()
15
56
0.603704
29
270
5.344828
0.689655
0.141935
0
0
0
0
0
0
0
0
0
0.010204
0.274074
270
17
57
15.882353
0.780612
0.42963
0
0
0
0
0.036496
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
e87a90a8defd3880bf8188edffbf9ee26a344fce
181
py
Python
examples/PickleGraph.py
vishalbelsare/watset-java
8928357428765369645ca0a15cf11318388924a5
[ "Apache-2.0" ]
28
2018-01-21T15:17:58.000Z
2022-03-26T16:40:19.000Z
examples/PickleGraph.py
dustalov/maxmax
e8ca4b055bf3e1a6556e8e83f65ea99f8033c311
[ "Apache-2.0" ]
10
2018-02-21T08:28:46.000Z
2020-08-08T17:51:16.000Z
examples/PickleGraph.py
dustalov/maxmax
e8ca4b055bf3e1a6556e8e83f65ea99f8033c311
[ "Apache-2.0" ]
7
2018-01-21T15:18:02.000Z
2021-06-05T02:50:19.000Z
#!/usr/bin/env python3 import networkx as nx import pickle if __name__ == '__main__': G = nx.karate_club_graph() nx.write_gpickle(G, 'karate_club_graph.pkl', protocol=3)
18.1
60
0.712707
28
181
4.142857
0.75
0.172414
0.258621
0
0
0
0
0
0
0
0
0.013158
0.160221
181
9
61
20.111111
0.75
0.116022
0
0
0
0
0.18239
0.132075
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
0
0
1
0
0
0
0
4
e88ae726919f74ebd686b7bdbb4a4fd30c67df83
102
py
Python
bytecode_tracer/__init__.py
hung135/pythoscope
b4b89b77b5184b25992893e320d58de32ed987f1
[ "MIT" ]
78
2015-01-03T22:35:30.000Z
2022-01-09T15:32:57.000Z
bytecode_tracer/__init__.py
hung135/pythoscope
b4b89b77b5184b25992893e320d58de32ed987f1
[ "MIT" ]
15
2015-05-26T14:29:20.000Z
2020-12-08T11:26:44.000Z
bytecode_tracer/__init__.py
hung135/pythoscope
b4b89b77b5184b25992893e320d58de32ed987f1
[ "MIT" ]
30
2015-06-05T13:02:11.000Z
2021-05-31T08:03:28.000Z
from bytecode_tracer import BytecodeTracer, rewrite_function,\ has_been_rewritten, rewrite_lnotab
34
62
0.852941
12
102
6.833333
0.916667
0
0
0
0
0
0
0
0
0
0
0
0.107843
102
2
63
51
0.901099
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
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
4
e8c5676aee8b6cac938ac84c6edc213d977ade76
85
py
Python
Scripts/FtpFetcher.py
Frackalyzer/PyFtpFetcher
068d8eb060352d1af096845e99e0a1a1ffce6d27
[ "Apache-2.0" ]
1
2018-06-29T08:36:13.000Z
2018-06-29T08:36:13.000Z
Scripts/FtpFetcher.py
Frackalyzer/PyFtpFetcher
068d8eb060352d1af096845e99e0a1a1ffce6d27
[ "Apache-2.0" ]
null
null
null
Scripts/FtpFetcher.py
Frackalyzer/PyFtpFetcher
068d8eb060352d1af096845e99e0a1a1ffce6d27
[ "Apache-2.0" ]
null
null
null
''' Created on May 13, 2016 @author: david ''' if __name__ == '__main__': pass
9.444444
26
0.6
11
85
3.909091
1
0
0
0
0
0
0
0
0
0
0
0.092308
0.235294
85
8
27
10.625
0.569231
0.458824
0
0
0
0
0.210526
0
0
0
0
0
0
1
0
true
0.5
0
0
0
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
0
0
0
0
0
4
2cf01402458deabf770cd256d5e423a486f950fb
167
py
Python
help/apps.py
pincoin/withthai-old
10e6248f14faba4c4ce3e387e93e28dabb76a2f7
[ "MIT" ]
null
null
null
help/apps.py
pincoin/withthai-old
10e6248f14faba4c4ce3e387e93e28dabb76a2f7
[ "MIT" ]
3
2021-03-30T12:56:11.000Z
2021-09-22T18:47:42.000Z
help/apps.py
pincoin/withthai-old
10e6248f14faba4c4ce3e387e93e28dabb76a2f7
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class HelpConfig(AppConfig): name = 'help' verbose_name = _('Help')
20.875
54
0.748503
21
167
5.761905
0.714286
0.165289
0
0
0
0
0
0
0
0
0
0
0.167665
167
7
55
23.857143
0.870504
0
0
0
0
0
0.047904
0
0
0
0
0
0
1
0
false
0
0.4
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
0
0
1
0
1
0
0
4
fa043aba178ad3a6fdfbd451b654453be8b0fc24
137
py
Python
tests/testapp/urls.py
matthiask/django-canonical-domain
31f9d0ba181d69694ad9114347240037a58d4251
[ "BSD-3-Clause" ]
2
2021-07-14T18:04:27.000Z
2021-10-03T12:06:37.000Z
tests/testapp/urls.py
matthiask/django-canonical-domain
31f9d0ba181d69694ad9114347240037a58d4251
[ "BSD-3-Clause" ]
2
2018-12-23T19:42:39.000Z
2019-12-07T11:58:47.000Z
tests/testapp/urls.py
matthiask/django-canonical-domain
31f9d0ba181d69694ad9114347240037a58d4251
[ "BSD-3-Clause" ]
2
2018-12-24T15:15:15.000Z
2019-10-23T18:31:12.000Z
from django.http import HttpResponse from django.urls import path urlpatterns = [path("", lambda request: HttpResponse("Hello world"))]
27.4
69
0.773723
17
137
6.235294
0.705882
0.188679
0
0
0
0
0
0
0
0
0
0
0.116788
137
4
70
34.25
0.876033
0
0
0
0
0
0.080292
0
0
0
0
0
0
1
0
false
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
0
0
1
0
1
0
0
4
fa636f7b3def82a02bb9a2156cb5cd6d770ac6d7
79
py
Python
locale/pot/api/plotting/_autosummary/pyvista-themes-_SliderStyleConfig-slider_color-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/plotting/_autosummary/pyvista-themes-_SliderStyleConfig-slider_color-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/plotting/_autosummary/pyvista-themes-_SliderStyleConfig-slider_color-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
import pyvista pyvista.global_theme.slider_styles.modern.slider_color = 'grey'
26.333333
63
0.848101
11
79
5.818182
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.063291
79
2
64
39.5
0.864865
0
0
0
0
0
0.050633
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
0
0
0
4
d7111c27bde34277d0f399662e76e26de7fa7e36
198
py
Python
tests/context.py
kisom/pylinea
72ec6764bb07893518b7689ddd25524c33def2ee
[ "MIT" ]
null
null
null
tests/context.py
kisom/pylinea
72ec6764bb07893518b7689ddd25524c33def2ee
[ "MIT" ]
null
null
null
tests/context.py
kisom/pylinea
72ec6764bb07893518b7689ddd25524c33def2ee
[ "MIT" ]
null
null
null
import sys import os sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) # the below are used for imports by other modules. import linea import linea.vector as vec
19.8
82
0.742424
34
198
4.205882
0.676471
0.125874
0
0
0
0
0
0
0
0
0
0.005814
0.131313
198
9
83
22
0.825581
0.242424
0
0
0
0
0.013514
0
0
0
0
0
0
1
0
true
0
0.8
0
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
d7208789aa2ba824ceeadb8439bfc36c961daa20
916
py
Python
training_api/domain/exceptions/dataset_exceptions.py
BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI
902f35a7e367e635898f687b16a830db892fbaa5
[ "Apache-2.0" ]
20
2021-07-13T13:08:57.000Z
2022-03-29T09:38:00.000Z
training_api/domain/exceptions/dataset_exceptions.py
BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI
902f35a7e367e635898f687b16a830db892fbaa5
[ "Apache-2.0" ]
null
null
null
training_api/domain/exceptions/dataset_exceptions.py
BMW-InnovationLab/BMW-Semantic-Segmentation-Training-GUI
902f35a7e367e635898f687b16a830db892fbaa5
[ "Apache-2.0" ]
2
2021-07-12T08:42:53.000Z
2022-03-04T18:41:25.000Z
from domain.exceptions.application_error import ApplicationError class TrainingTestingPathNotFound(ApplicationError): def __init__(self, folder_path: str, additional_message: str = ''): super().__init__('Could not create Folder for training/testing data: ', additional_message + ' {}'.format(folder_path)) class PathNotFound(ApplicationError): def __init__(self, folder_path: str, additional_message: str = ''): super().__init__('Path Not Found: ', additional_message + ' {}'.format(folder_path)) class DatasetAugmentingError(ApplicationError): def __init__(self, additional_message: str = ''): super().__init__('Error While Augmenting Dataset: ', additional_message) class InvalidJobName(ApplicationError): def __init__(self, additional_message: str = ''): super().__init__('Invalid Job Name for Gluon Dataloader No Dataset Where Found ', additional_message)
41.636364
127
0.742358
96
916
6.614583
0.416667
0.214173
0.144882
0.170079
0.513386
0.513386
0.393701
0.393701
0.393701
0.217323
0
0
0.146288
916
21
128
43.619048
0.81202
0
0
0.307692
0
0
0.181223
0
0
0
0
0
0
1
0.307692
false
0
0.076923
0
0.692308
0
0
0
0
null
1
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
0
0
0
1
0
0
4
d76784b07e99bc424294f23e2bde6f1fd4e1d3d0
257
py
Python
docker/tests/test_zap_common.py
a6k8s4/zaproxy
eb5fff6a34a5a0b1c46287810aded6c0701f61e9
[ "Apache-2.0" ]
4
2016-08-11T05:35:26.000Z
2021-11-15T11:27:28.000Z
docker/tests/test_zap_common.py
a6k8s4/zaproxy
eb5fff6a34a5a0b1c46287810aded6c0701f61e9
[ "Apache-2.0" ]
149
2020-07-29T11:29:51.000Z
2022-03-29T18:17:54.000Z
docker/tests/test_zap_common.py
a6k8s4/zaproxy
eb5fff6a34a5a0b1c46287810aded6c0701f61e9
[ "Apache-2.0" ]
1
2019-02-10T20:28:43.000Z
2019-02-10T20:28:43.000Z
import unittest from datetime import datetime import zap_common import zapv2 class TestZapCommon(unittest.TestCase): def test_load_config(self): pass def test_is_in_scope(self): pass def zap_get_alerts(self): pass
13.526316
39
0.700389
34
257
5.058824
0.617647
0.139535
0.127907
0
0
0
0
0
0
0
0
0.005181
0.249027
257
18
40
14.277778
0.88601
0
0
0.272727
0
0
0
0
0
0
0
0
0
1
0.272727
false
0.272727
0.363636
0
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
1
0
1
0
0
4
d780852adb74b461fe1608366300d6f0263ea727
285
py
Python
soundtest/soundtest.py
knzet/text-to-speech
c89245265d45748edb98a1d109724f8f7efd4ddd
[ "Apache-2.0" ]
null
null
null
soundtest/soundtest.py
knzet/text-to-speech
c89245265d45748edb98a1d109724f8f7efd4ddd
[ "Apache-2.0" ]
null
null
null
soundtest/soundtest.py
knzet/text-to-speech
c89245265d45748edb98a1d109724f8f7efd4ddd
[ "Apache-2.0" ]
null
null
null
from pydub import AudioSegment from pydub.playback import play clip = AudioSegment.empty() clip.append(AudioSegment.from_mp3('../assets/CH.mp3')) clip.append(AudioSegment.from_mp3('../assets/IY1.mp3')) clip.append(AudioSegment.from_mp3('../assets/Z.mp3')) for cl in clip: play(cl)
31.666667
55
0.754386
42
285
5.047619
0.404762
0.301887
0.311321
0.367925
0.523585
0.523585
0.358491
0
0
0
0
0.026718
0.080702
285
9
56
31.666667
0.782443
0
0
0
0
0
0.167832
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
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
4
ad0fa45ddab9bcf02440e9937183c0562e6414c4
139
py
Python
mud5games/admin.py
MUD-GAMES/MUD.5
01367195bad25eaf017c2051a4b8b2d739f37076
[ "MIT" ]
2
2019-09-21T23:17:06.000Z
2019-09-27T03:09:09.000Z
mud5games/admin.py
MUD-GAMES/MUD.5
01367195bad25eaf017c2051a4b8b2d739f37076
[ "MIT" ]
16
2019-09-30T01:33:25.000Z
2022-02-10T10:16:28.000Z
mud5games/admin.py
MUD-GAMES/MUD.5
01367195bad25eaf017c2051a4b8b2d739f37076
[ "MIT" ]
1
2019-09-19T01:47:10.000Z
2019-09-19T01:47:10.000Z
from django.contrib import admin class UserAdmin(admin.ModelAdmin): list_display = ['User_Name', 'Email', 'First_Name', 'Last_Name',]
27.8
69
0.733813
18
139
5.444444
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.122302
139
4
70
34.75
0.803279
0
0
0
0
0
0.23741
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
ad0faab6a4cd087bca5fe9c98946a7bf265fa441
46
py
Python
chibi/madness/__init__.py
dem4ply/chibi
1f13db8200e8e60bbb839436d4c995d6b6220957
[ "WTFPL" ]
null
null
null
chibi/madness/__init__.py
dem4ply/chibi
1f13db8200e8e60bbb839436d4c995d6b6220957
[ "WTFPL" ]
null
null
null
chibi/madness/__init__.py
dem4ply/chibi
1f13db8200e8e60bbb839436d4c995d6b6220957
[ "WTFPL" ]
null
null
null
from . import string __all__ = [ 'string' ]
9.2
22
0.630435
5
46
5
0.8
0
0
0
0
0
0
0
0
0
0
0
0.23913
46
4
23
11.5
0.714286
0
0
0
0
0
0.130435
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
ad17781bebea923d52e9af30d2d3fce05f1da7cc
89
py
Python
src/firebot/apps.py
chazeah/fire
a6839a9cc5da922b63da8582d0d64b5ba659081f
[ "Apache-2.0" ]
52
2017-03-15T16:25:14.000Z
2022-03-01T16:50:14.000Z
src/firebot/apps.py
chazeah/fire
a6839a9cc5da922b63da8582d0d64b5ba659081f
[ "Apache-2.0" ]
239
2017-03-16T17:10:22.000Z
2022-03-06T07:24:24.000Z
src/firebot/apps.py
chazeah/fire
a6839a9cc5da922b63da8582d0d64b5ba659081f
[ "Apache-2.0" ]
8
2017-03-15T17:45:18.000Z
2022-01-26T14:51:03.000Z
from django.apps import AppConfig class FireBotConfig(AppConfig): name = 'firebot'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
ad1b20ed21f0d569925b2596c193fc4b6af0061d
760
py
Python
test/integration_tests/tests/test_assertions_dsl.py
natp13/Appdaemon-Test-Framework
a2bd584e91994764f901474ccbc5e5b5f7c51bcc
[ "MIT" ]
37
2018-08-08T10:48:13.000Z
2022-03-09T22:31:11.000Z
test/integration_tests/tests/test_assertions_dsl.py
natp13/Appdaemon-Test-Framework
a2bd584e91994764f901474ccbc5e5b5f7c51bcc
[ "MIT" ]
58
2018-10-05T13:36:57.000Z
2022-02-06T11:37:20.000Z
test/integration_tests/tests/test_assertions_dsl.py
natp13/Appdaemon-Test-Framework
a2bd584e91994764f901474ccbc5e5b5f7c51bcc
[ "MIT" ]
13
2018-12-04T19:22:23.000Z
2022-02-06T10:32:04.000Z
from functools import partial from types import SimpleNamespace ## Custom Assertions DSL ################# def assert_that(expected): class Wrapper: def equals(self, actual): assert expected == actual return Wrapper() def assert_that_partial(expected): def equals(expected, actual): assert expected == actual return partial(equals, expected) def assert_that_sn(expected): assert_that = SimpleNamespace() def equals(actual): assert expected == actual assert_that.equals = equals return assert_that ########################################## def test_assertions_dsl(): assert_that(44).equals(44) assert_that_partial(44)(44) assert_that_sn(44).equals(44) # the_function
22.352941
42
0.643421
85
760
5.564706
0.282353
0.190275
0.082452
0.164905
0.135307
0
0
0
0
0
0
0.019835
0.203947
760
33
43
23.030303
0.761983
0.046053
0
0.142857
0
0
0
0
0
0
0
0
0.619048
1
0.333333
false
0
0.095238
0
0.619048
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
1
0
1
0
0
0
0
1
0
0
4
ad6e2513aacc5036197164646213c4bd81f35efc
155
py
Python
tests/functions/__init__.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
1
2015-07-06T11:19:11.000Z
2015-07-06T11:19:11.000Z
tests/functions/__init__.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
tests/functions/__init__.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
import sqlalchemy as sa from tests import TestCase from sqlalchemy_utils.functions import ( render_statement, render_expression, mock_engine )
19.375
40
0.787097
19
155
6.210526
0.736842
0
0
0
0
0
0
0
0
0
0
0
0.180645
155
7
41
22.142857
0.929134
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.428571
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
0
0
0
4
ad6ecf051b0e646c62ee4c8b5a6dc46246579e02
995
py
Python
agrirouter/__init__.py
DKE-Data/agrirouter-sdk-python
6d6b26606f7d424c62289af56da55acf412772fc
[ "Apache-2.0" ]
null
null
null
agrirouter/__init__.py
DKE-Data/agrirouter-sdk-python
6d6b26606f7d424c62289af56da55acf412772fc
[ "Apache-2.0" ]
null
null
null
agrirouter/__init__.py
DKE-Data/agrirouter-sdk-python
6d6b26606f7d424c62289af56da55acf412772fc
[ "Apache-2.0" ]
null
null
null
from agrirouter.auth.auth import Authorization from agrirouter.auth.parameters import AuthUrlParameter from agrirouter.onboarding.onboarding import SoftwareOnboarding from agrirouter.onboarding.parameters import SoftwareOnboardingParameter from agrirouter.revoking.revoking import Revoking from agrirouter.revoking.parameters import RevokingParameter from agrirouter.messaging.parameters.service import MessageHeaderParameters, MessagePayloadParameters, \ QueryMessageParameters, QueryHeaderParameters, CloudOffboardParameters, CloudOnboardParameters, \ CapabilityParameters, FeedConfirmParameters, FeedDeleteParameters, ListEndpointsParameters, MessageParameters, \ SubscriptionParameters from agrirouter.messaging.services.cloud import CloudOnboardService, CloudOffboardService from agrirouter.messaging.services.messaging import SubscriptionService, CapabilityService, FeedConfirmService,\ FeedDeleteService, QueryHeaderService, QueryMessagesService, ListEndpointsService
55.277778
116
0.879397
75
995
11.666667
0.493333
0.144
0.078857
0.070857
0
0
0
0
0
0
0
0
0.077387
995
17
117
58.529412
0.953159
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.692308
0
0.692308
0
0
0
1
null
0
0
0
0
0
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
4
a8e86e8f0ad5f7e46bcb79fc380cfc509774d4e4
188
py
Python
batch.py
bc1109/ubuntu
71b3a1bd0b5d027016b5868da9ab442c8e4f49d2
[ "Apache-2.0" ]
null
null
null
batch.py
bc1109/ubuntu
71b3a1bd0b5d027016b5868da9ab442c8e4f49d2
[ "Apache-2.0" ]
null
null
null
batch.py
bc1109/ubuntu
71b3a1bd0b5d027016b5868da9ab442c8e4f49d2
[ "Apache-2.0" ]
null
null
null
#video 22 - could get this to work. Need to research the proper command strucutre for unbuntu. #@py \home\brandon\Desktop\Python_Google\google-python-exercises\run_program.py %* @pause
31.333333
95
0.776596
29
188
4.965517
0.862069
0
0
0
0
0
0
0
0
0
0
0.012195
0.12766
188
6
96
31.333333
0.865854
0.930851
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
0
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
1
0
0
0
0
0
0
0
0
4
d13cad209df095d3af213d2ac531b3e4ce8e54cd
155
py
Python
.idea/VirtualEnvironment/Lib/site-packages/hstest/test_case/attach/flask_settings.py
Vladpetr/NewsPortal
cd4127fbc09d9c8f5e65c8ae699856c6d380a320
[ "Apache-2.0" ]
null
null
null
.idea/VirtualEnvironment/Lib/site-packages/hstest/test_case/attach/flask_settings.py
Vladpetr/NewsPortal
cd4127fbc09d9c8f5e65c8ae699856c6d380a320
[ "Apache-2.0" ]
5
2021-04-08T22:02:15.000Z
2022-02-10T14:53:45.000Z
.idea/VirtualEnvironment/Lib/site-packages/hstest/test_case/attach/flask_settings.py
Vladpetr/NewsPortal
cd4127fbc09d9c8f5e65c8ae699856c6d380a320
[ "Apache-2.0" ]
null
null
null
from typing import List, Tuple class FlaskSettings: sources: List[Tuple[str, int]] = [] tryout_ports: List[int] = [i for i in range(8000, 8101)]
22.142857
60
0.670968
23
155
4.478261
0.782609
0.174757
0
0
0
0
0
0
0
0
0
0.064516
0.2
155
6
61
25.833333
0.766129
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.25
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
0
0
1
0
0
4
d162a184c12e2c7d5e3b8f75705d439c01785807
121
py
Python
data/combineData.py
elenberg-io/dota-app
d66da5780bc5319ede75bb1ae7b038eae427f173
[ "MIT" ]
null
null
null
data/combineData.py
elenberg-io/dota-app
d66da5780bc5319ede75bb1ae7b038eae427f173
[ "MIT" ]
null
null
null
data/combineData.py
elenberg-io/dota-app
d66da5780bc5319ede75bb1ae7b038eae427f173
[ "MIT" ]
null
null
null
import pandas as pd matchID_df = pd.read_csv('output/promatchID.csv') matchData_df = pd.read_csv('output/matchData.csv')
30.25
50
0.785124
20
121
4.55
0.55
0.087912
0.175824
0.241758
0.373626
0
0
0
0
0
0
0
0.082645
121
4
50
30.25
0.81982
0
0
0
0
0
0.336066
0.172131
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
1
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
0
0
1
0
0
0
0
4
d16ecf8f60c8630f598ae4eb1230dd926aab3d5d
113
py
Python
regular_expression.py
ifreire/JornadaByLearn
9200ebff9c6267a2c4ad06025636dae9df94c5d0
[ "BSD-3-Clause" ]
null
null
null
regular_expression.py
ifreire/JornadaByLearn
9200ebff9c6267a2c4ad06025636dae9df94c5d0
[ "BSD-3-Clause" ]
null
null
null
regular_expression.py
ifreire/JornadaByLearn
9200ebff9c6267a2c4ad06025636dae9df94c5d0
[ "BSD-3-Clause" ]
null
null
null
''' author: Iuri Freire e-mail: iuricostafreire at gmail dot com local date : 2021-01-07 local time : 20:47 '''
14.125
40
0.699115
19
113
4.157895
0.947368
0
0
0
0
0
0
0
0
0
0
0.129032
0.176991
113
7
41
16.142857
0.72043
0.911504
0
null
0
null
0
0
null
0
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
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
4
0f7010061db4c6048a8ff837b66cf46956c48264
139
py
Python
payment/models.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
payment/models.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
payment/models.py
KimSoungRyoul/drf_unitteset_study_project
9a0d824bdc6343eeba6209299c077a6e9d280516
[ "MIT" ]
null
null
null
# Create your models here. from django.db import models class asdf(models.Model): asdf = models.CharField(null=True, max_length=50)
17.375
53
0.741007
21
139
4.857143
0.809524
0.196078
0
0
0
0
0
0
0
0
0
0.017094
0.158273
139
7
54
19.857143
0.854701
0.172662
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
0f801f7890559a71403776c9b2eb09fd6fc96b19
703
py
Python
payroll_cus/controllers/controllers.py
chris237/payroll
fb164744f625e119f89a86dac500d7f8fea50ca7
[ "Apache-2.0" ]
null
null
null
payroll_cus/controllers/controllers.py
chris237/payroll
fb164744f625e119f89a86dac500d7f8fea50ca7
[ "Apache-2.0" ]
null
null
null
payroll_cus/controllers/controllers.py
chris237/payroll
fb164744f625e119f89a86dac500d7f8fea50ca7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # from odoo import http # class Payroll(http.Controller): # @http.route('/payroll/payroll/', auth='public') # def index(self, **kw): # return "Hello, world" # @http.route('/payroll/payroll/objects/', auth='public') # def list(self, **kw): # return http.request.render('payroll.listing', { # 'root': '/payroll/payroll', # 'objects': http.request.env['payroll.payroll'].search([]), # }) # @http.route('/payroll/payroll/objects/<model("payroll.payroll"):obj>/', auth='public') # def object(self, obj, **kw): # return http.request.render('payroll.object', { # 'object': obj # })
31.954545
92
0.556188
75
703
5.213333
0.413333
0.214834
0.122762
0.176471
0.317136
0.163683
0
0
0
0
0
0.001855
0.233286
703
21
93
33.47619
0.723562
0.944523
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
7e60bb188fe75a40f79d1918fe16504dd3ffb1f1
86
py
Python
analysis/__init__.py
m2lines/subgrid
3de5d14c5525a62529d43cbafccda716c74e32df
[ "MIT" ]
1
2021-11-03T01:27:16.000Z
2021-11-03T01:27:16.000Z
analysis/__init__.py
m2lines/subgrid
3de5d14c5525a62529d43cbafccda716c74e32df
[ "MIT" ]
null
null
null
analysis/__init__.py
m2lines/subgrid
3de5d14c5525a62529d43cbafccda716c74e32df
[ "MIT" ]
1
2021-06-24T15:58:32.000Z
2021-06-24T15:58:32.000Z
# -*- coding: utf-8 -*- """ Created on Wed Feb 5 11:02:42 2020 @author: Arthur """
10.75
35
0.55814
14
86
3.428571
1
0
0
0
0
0
0
0
0
0
0
0.179104
0.22093
86
7
36
12.285714
0.537313
0.872093
0
null
0
null
0
0
null
0
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
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
4
7e6a21d110141e96b534d1cebf5f076b0f8201f5
1,258
py
Python
SourceCode/Python/General/GenTree.py
ChalmersGU-data-structure-courses/OpenDSA
abfc48391336cb6d118a065550816c0bb8665767
[ "MIT" ]
null
null
null
SourceCode/Python/General/GenTree.py
ChalmersGU-data-structure-courses/OpenDSA
abfc48391336cb6d118a065550816c0bb8665767
[ "MIT" ]
1
2021-11-09T10:15:47.000Z
2021-11-10T12:21:45.000Z
SourceCode/Python/General/GenTree.py
ChalmersGU-data-structure-courses/OpenDSA
abfc48391336cb6d118a065550816c0bb8665767
[ "MIT" ]
null
null
null
#/* *** ODSATag: GenTreeADT *** */ # General tree node ADT class GTNode: def value(self): raise NotImplementedError def isLeaf(self): raise NotImplementedError def parent(self): raise NotImplementedError def leftmostChild(self): raise NotImplementedError def rightSibling(self): raise NotImplementedError def setValue(self, value): raise NotImplementedError def setParent(self, par): raise NotImplementedError def insertFirst(self, n): raise NotImplementedError def insertNext(self, n): raise NotImplementedError def removeFirst(self): raise NotImplementedError def removeNext(self): raise NotImplementedError # General tree ADT class GenTree: def clear(self): raise NotImplementedError def root(self): raise NotImplementedError def newRoot(self, value, first, sib): raise NotImplementedError def newLeftChild(self, value): raise NotImplementedError #/* *** ODSAendTag: GenTreeADT *** */ #/* *** ODSATag: GenTreePrint *** */ # Preorder traversal for general trees def preorder(rt): PrintNode(rt) if not rt.isLeaf(): temp = rt.leftmostChild() while temp is not None preorder(temp) temp = temp.rightSibling() #/* *** ODSAendTag: GenTreePrint *** */
35.942857
67
0.709857
129
1,258
6.922481
0.356589
0.403136
0.393057
0.277716
0.071669
0
0
0
0
0
0
0
0.190779
1,258
34
68
37
0.87721
0.173291
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
0
1
0
0
0
0
0
0
0
0
4
7e84db4595243865bcf654f088e0a9215e9276a7
1,458
py
Python
setup.py
zsimic/pickley
ca040339aac007e14b4fbc0bf9b2ffebcd65dff1
[ "MIT" ]
25
2018-08-30T08:15:17.000Z
2020-11-07T04:13:48.000Z
setup.py
zsimic/pickley
ca040339aac007e14b4fbc0bf9b2ffebcd65dff1
[ "MIT" ]
5
2019-02-25T04:29:55.000Z
2020-11-06T04:18:16.000Z
setup.py
zsimic/pickley
ca040339aac007e14b4fbc0bf9b2ffebcd65dff1
[ "MIT" ]
4
2019-04-10T09:53:52.000Z
2020-06-04T19:38:57.000Z
from setuptools import setup setup( name="pickley", setup_requires="setupmeta", versioning="dev", author="Zoran Simic zoran@simicweb.com", url="https://github.com/codrsquad/pickley", python_requires='>=3.6', entry_points={ "console_scripts": [ "pickley = pickley.__main__:main", ], }, classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Build Tools", "Topic :: System :: Installation/Setup", "Topic :: System :: Software Distribution", "Topic :: Utilities", ], project_urls={ "Documentation": "https://github.com/codrsquad/pickley/wiki", "Release notes": "https://github.com/codrsquad/pickley/wiki/Release-notes", "Source": "https://github.com/codrsquad/pickley", }, )
34.714286
83
0.589163
135
1,458
6.296296
0.481481
0.178824
0.235294
0.183529
0.178824
0.108235
0.108235
0.108235
0
0
0
0.013863
0.257888
1,458
41
84
35.560976
0.771719
0
0
0.051282
0
0
0.63786
0.014403
0
0
0
0
0
1
0
true
0
0.025641
0
0.025641
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
1
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
7e87c3ddc0161c3c50a3e557539cad5ad988ea90
117
py
Python
ex022.py
raphael-abrantes/exercises-python
71f1e7cba2f56173c256d43e4fe33a43722b4484
[ "MIT" ]
null
null
null
ex022.py
raphael-abrantes/exercises-python
71f1e7cba2f56173c256d43e4fe33a43722b4484
[ "MIT" ]
null
null
null
ex022.py
raphael-abrantes/exercises-python
71f1e7cba2f56173c256d43e4fe33a43722b4484
[ "MIT" ]
null
null
null
nome = str(input('Digite seu nome completo: ')).strip() print(nome.upper()) print(nome.lower()) print(len(nome))
23.4
56
0.666667
17
117
4.588235
0.647059
0.230769
0
0
0
0
0
0
0
0
0
0
0.119658
117
4
57
29.25
0.757282
0
0
0
0
0
0.230089
0
0
0
0
0
0
1
0
false
0
0
0
0
0.75
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
0
0
0
1
0
4
0e6d8004660a37dbbda3d200c7e27f804df48e77
19
py
Python
notebooks/_solutions/pandas_03a_selecting_data2.py
jonasvdd/DS-python-data-analysis
835226f562ee0b0631d70e48a17c4526ff58a538
[ "BSD-3-Clause" ]
65
2017-03-21T09:15:40.000Z
2022-02-01T23:43:08.000Z
notebooks/_solutions/pandas_03a_selecting_data2.py
jonasvdd/DS-python-data-analysis
835226f562ee0b0631d70e48a17c4526ff58a538
[ "BSD-3-Clause" ]
100
2016-12-15T03:44:06.000Z
2022-03-07T08:14:07.000Z
notebooks/_solutions/pandas_03a_selecting_data2.py
jorisvandenbossche/ICES-python-data
63864947657f37cb26cb4e2dcd67ff106dffe9cd
[ "BSD-3-Clause" ]
52
2016-12-19T07:48:52.000Z
2022-02-19T17:53:48.000Z
males['Age'].mean()
19
19
0.631579
3
19
4
1
0
0
0
0
0
0
0
0
0
0
0
0
19
1
19
19
0.631579
0
0
0
0
0
0.15
0
0
0
0
0
0
1
0
true
0
0
0
0
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
0
0
0
0
0
4
0e71ad70368b462801fe44ca77131c7506a9cb16
140
py
Python
closuredag/exceptions.py
farmlab/django-closuredag
19bacabea5e922613a18d21048866dceb44d0afe
[ "MIT" ]
null
null
null
closuredag/exceptions.py
farmlab/django-closuredag
19bacabea5e922613a18d21048866dceb44d0afe
[ "MIT" ]
93
2017-11-16T13:58:45.000Z
2022-03-27T22:01:19.000Z
closuredag/exceptions.py
farmlab/django-closuredag
19bacabea5e922613a18d21048866dceb44d0afe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class VertexNotReachableException(Exception): """ Exception for vertex distance and path """ pass
15.555556
45
0.628571
13
140
6.769231
0.923077
0
0
0
0
0
0
0
0
0
0
0.009434
0.242857
140
8
46
17.5
0.820755
0.435714
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
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
0
0
0
0
0
4
0eaaefff7b5c724c2f0a08545436a8b3ffc8bad6
501
py
Python
pages/views.py
Suyash8/template-python-django
727aceb1d5a7951fbddbb35b0c123d78a449f70d
[ "MIT" ]
null
null
null
pages/views.py
Suyash8/template-python-django
727aceb1d5a7951fbddbb35b0c123d78a449f70d
[ "MIT" ]
null
null
null
pages/views.py
Suyash8/template-python-django
727aceb1d5a7951fbddbb35b0c123d78a449f70d
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render # Create your views here. def home_view(request, *args, **kwargs): # return HttpResponse("<h1>Home Page</h1>") render(request, 'home.html', {}) def contact_view(request, *args, **kwargs): return HttpResponse("<h1>Contact Page</h1>") def about_view(request, *args, **kwargs): return HttpResponse("<h1>About Page</h1>") def social_view(request, *args, **kwargs): return HttpResponse("<h1>Social Page</h1>")
31.3125
48
0.700599
66
501
5.257576
0.363636
0.126801
0.172911
0.242075
0.472622
0.472622
0.472622
0
0
0
0
0.018476
0.135729
501
16
49
31.3125
0.78291
0.129741
0
0
0
0
0.158986
0
0
0
0
0
0
1
0.4
false
0
0.2
0.3
0.9
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
0
0
1
1
0
0
4
7ece1a781b102ae09ea939f647600135d49adbc0
1,127
py
Python
care/facility/models/mixins/permissions/facility.py
SivakumarSkr/care
c928f0e5e20efb167f4f2d8be54ce64214c1f192
[ "MIT" ]
null
null
null
care/facility/models/mixins/permissions/facility.py
SivakumarSkr/care
c928f0e5e20efb167f4f2d8be54ce64214c1f192
[ "MIT" ]
null
null
null
care/facility/models/mixins/permissions/facility.py
SivakumarSkr/care
c928f0e5e20efb167f4f2d8be54ce64214c1f192
[ "MIT" ]
null
null
null
from care.facility.models.mixins.permissions.base import BasePermissionMixin class FacilityPermissionMixin(BasePermissionMixin): @staticmethod def has_bulk_upsert_permission(request): return request.user.is_superuser def has_object_read_permission(self, request): return ( super().has_object_read_permission(request) or request.user.is_superuser or request.user in self.users.all() ) def has_object_write_permission(self, request): return super().has_write_permission(request) or request.user.is_superuser or request.user in self.users.all() class FacilityRelatedPermissionMixin(BasePermissionMixin): def has_object_read_permission(self, request): return ( super().has_object_read_permission(request) or request.user.is_superuser or request.user in self.facility.users.all() ) def has_object_write_permission(self, request): return ( super().has_write_permission(request) or request.user.is_superuser or request.user in self.facility.users.all() )
35.21875
120
0.7063
131
1,127
5.847328
0.244275
0.129243
0.13577
0.143603
0.684073
0.684073
0.684073
0.684073
0.684073
0.684073
0
0
0.214729
1,127
31
121
36.354839
0.865537
0
0
0.458333
0
0
0
0
0
0
0
0
0
1
0.208333
false
0
0.041667
0.208333
0.541667
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
7ed05aaf6f9e78b2370066c2c540a219824eb696
10,947
bzl
Python
deps/core/ubuntu_bionic_amd64.bzl
y0psolo/YAD
0f1f9c5140687345dee591667793d6f8ed6e29e5
[ "Apache-2.0" ]
1
2021-11-05T09:13:57.000Z
2021-11-05T09:13:57.000Z
deps/core/ubuntu_bionic_amd64.bzl
y0psolo/YAD
0f1f9c5140687345dee591667793d6f8ed6e29e5
[ "Apache-2.0" ]
9
2021-12-02T13:25:52.000Z
2022-01-26T14:24:05.000Z
deps/core/ubuntu_bionic_amd64.bzl
y0psolo/YAD
0f1f9c5140687345dee591667793d6f8ed6e29e5
[ "Apache-2.0" ]
null
null
null
"""This module defines Ubuntu Bionic dependencies.""" load("@rules_deb_packages//:deb_packages.bzl", "deb_packages") def ubuntu_bionic_amd64(): deb_packages( name = "ubuntu_bionic_amd64", arch = "amd64", packages = { "base-files": "pool/main/b/base-files/base-files_10.1ubuntu2.11_amd64.deb", "bash": "pool/main/b/bash/bash_4.4.18-2ubuntu1.2_amd64.deb", "ca-certificates": "pool/main/c/ca-certificates/ca-certificates_20210119~18.04.2_all.deb", "coreutils": "pool/main/c/coreutils/coreutils_8.28-1ubuntu1_amd64.deb", "dash": "pool/main/d/dash/dash_0.5.8-2.10_amd64.deb", "fontconfig-config": "pool/main/f/fontconfig/fontconfig-config_2.12.6-0ubuntu2_all.deb", "fonts-dejavu-core": "pool/main/f/fonts-dejavu/fonts-dejavu-core_2.37-1_all.deb", "gzip": "pool/main/g/gzip/gzip_1.6-5ubuntu1.1_amd64.deb", "less": "pool/main/l/less/less_487-0.1_amd64.deb", "libacl1": "pool/main/a/acl/libacl1_2.2.52-3build1_amd64.deb", "libaio1": "pool/main/liba/libaio/libaio1_0.3.110-5ubuntu0.1_amd64.deb", "libattr1": "pool/main/a/attr/libattr1_2.4.47-2build1_amd64.deb", "libbz2-1.0": "pool/main/b/bzip2/libbz2-1.0_1.0.6-8.1ubuntu0.2_amd64.deb", "libc-bin": "pool/main/g/glibc/libc-bin_2.27-3ubuntu1.4_amd64.deb", "libc6": "pool/main/g/glibc/libc6_2.27-3ubuntu1.4_amd64.deb", "libdb5.3": "pool/main/d/db5.3/libdb5.3_5.3.28-13.1ubuntu1.1_amd64.deb", "libexpat1": "pool/main/e/expat/libexpat1_2.2.5-3ubuntu0.2_amd64.deb", "libffi6": "pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb", "libfontconfig1": "pool/main/f/fontconfig/libfontconfig1_2.12.6-0ubuntu2_amd64.deb", "libfreetype6": "pool/main/f/freetype/libfreetype6_2.8.1-2ubuntu2.1_amd64.deb", "libgcc1": "pool/main/g/gcc-8/libgcc1_8.4.0-1ubuntu1~18.04_amd64.deb", "libgcrypt20": "pool/main/libg/libgcrypt20/libgcrypt20_1.8.1-4ubuntu1.3_amd64.deb", "libgomp1": "pool/main/g/gcc-8/libgomp1_8.4.0-1ubuntu1~18.04_amd64.deb", "libgpg-error0": "pool/main/libg/libgpg-error/libgpg-error0_1.27-6_amd64.deb", "libjpeg-turbo8": "pool/main/libj/libjpeg-turbo/libjpeg-turbo8_1.5.2-0ubuntu5.18.04.4_amd64.deb", "liblcms2-2": "pool/main/l/lcms2/liblcms2-2_2.9-1ubuntu0.1_amd64.deb", "liblz4-1": "pool/main/l/lz4/liblz4-1_0.0~r131-2ubuntu3.1_amd64.deb", "liblzma5": "pool/main/x/xz-utils/liblzma5_5.2.2-1.3_amd64.deb", "libmpdec2": "pool/main/m/mpdecimal/libmpdec2_2.4.2-1ubuntu1_amd64.deb", "libncurses5": "pool/main/n/ncurses/libncurses5_6.1-1ubuntu1.18.04_amd64.deb", "libncursesw5": "pool/main/n/ncurses/libncursesw5_6.1-1ubuntu1.18.04_amd64.deb", "libpcre2-8-0": "pool/universe/p/pcre2/libpcre2-8-0_10.31-2_amd64.deb", "libpmem1": "pool/universe/p/pmdk/libpmem1_1.4.1-0ubuntu1~18.04.1_amd64.deb", "libpng16-16": "pool/main/libp/libpng1.6/libpng16-16_1.6.34-1ubuntu0.18.04.2_amd64.deb", "libpython3.6-minimal": "pool/main/p/python3.6/libpython3.6-minimal_3.6.9-1~18.04ubuntu1.6_amd64.deb", "libpython3.6-stdlib": "pool/main/p/python3.6/libpython3.6-stdlib_3.6.9-1~18.04ubuntu1.6_amd64.deb", "libreadline5": "pool/main/r/readline5/libreadline5_5.2+dfsg-3build1_amd64.deb", "libreadline7": "pool/main/r/readline/libreadline7_7.0-3_amd64.deb", "libselinux1": "pool/main/libs/libselinux/libselinux1_2.7-2build2_amd64.deb", "libsqlite3-0": "pool/main/s/sqlite3/libsqlite3-0_3.22.0-1ubuntu0.4_amd64.deb", "libssl1.1": "pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.14_amd64.deb", "libstdc++6": "pool/main/g/gcc-8/libstdc++6_8.4.0-1ubuntu1~18.04_amd64.deb", "libsystemd0": "pool/main/s/systemd/libsystemd0_237-3ubuntu10.53_amd64.deb", "libtinfo5": "pool/main/n/ncurses/libtinfo5_6.1-1ubuntu1.18.04_amd64.deb", "libuuid1": "pool/main/u/util-linux/libuuid1_2.31.1-0.4ubuntu3.7_amd64.deb", "mime-support": "pool/main/m/mime-support/mime-support_3.60ubuntu1_all.deb", "ncurses-bin": "pool/main/n/ncurses/ncurses-bin_6.1-1ubuntu1.18.04_amd64.deb", "netbase": "pool/main/n/netbase/netbase_5.4_all.deb", "openssl": "pool/main/o/openssl/openssl_1.1.1-1ubuntu2.1~18.04.14_amd64.deb", "python3-distutils": "pool/main/p/python3-stdlib-extensions/python3-distutils_3.6.9-1~18.04_all.deb", "python3.6-minimal": "pool/main/p/python3.6/python3.6-minimal_3.6.9-1~18.04ubuntu1.6_amd64.deb", "readline-common": "pool/main/r/readline/readline-common_7.0-3_all.deb", "tar": "pool/main/t/tar/tar_1.29b-2ubuntu0.2_amd64.deb", "tzdata": "pool/main/t/tzdata/tzdata_2021e-0ubuntu0.18.04_all.deb", "zlib1g": "pool/main/z/zlib/zlib1g_1.2.11.dfsg-0ubuntu2_amd64.deb", }, packages_sha256 = { "base-files": "b103b55f80cc703af636cb111d80b733c71ba4c39a138ebe8926356d88173142", "bash": "4f95ed6e11435fccaa9731eaeb7688fed8cc1fd8a25d44640e2f7a25f871ae08", "ca-certificates": "911c7e57ad1ef49958f28dcc27bb19e0103465486cc7766023a68e78344b8c10", "coreutils": "24541a48e25dfb17c98ce77dda61800e6cd68d74c25725753613fbcc00f2418f", "dash": "51fe28b98b8e023325ae8868f29807cdb53f6f2eac943723b5e6bd47cde0cb2c", "fontconfig-config": "ba4dbb3b4c173c1d97b6112d736da25d2dc7fab0c7408eb3cb49207f43dd5630", "fonts-dejavu-core": "f2b3f7f51e23e0493e8e642c82003fe75cf42bc95fda545cc96b725a69adb515", "gzip": "46286e914cad985cfe8cb3f196b7fce48146d3b329d45673b6ad62e8ced034cb", "less": "00d9c5e56b81c95a14e3fd148ff464acaf3fe757d3e4b4d1e54990b28c54eb57", "libacl1": "adbe1a5b37daf02f7bbd645c3a0baf63f6607e207567574c609493c32d5d57a5", "libaio1": "01d780036ab15752b939637daa200517bafbd62ff73f91be5f94e77f42f7a7b0", "libattr1": "91ef5319ee1f0173a6c5d16ba364e79c90f74b94b5d7daed1a2674a92f4f9c78", "libbz2-1.0": "897850ec11aab3280ce2755eb552995a5aa9b16a70453934828c6418591ea87b", "libc-bin": "438aa7dc40dfa7c5ab51c1e726d63414bd5dad44954c8cbb75d6c3d73bbc0efe", "libc6": "46d39b8965f35457ce5db62662832c095fd7e01e72093da99ae025eb8e12bbe5", "libdb5.3": "abb7f569252604af9b123cd6c73195cbd54d7b7664479a85fd5fd12fe8ba3b5d", "libexpat1": "d700a358e8139b5f31c96a3caef452d62388c05f7cf4d6e4f448a06c2c2da122", "libffi6": "fa26945b0aadfc72ec623c68be9cc59235a7fe42e2388f7015fd131f4fb06dc9", "libfontconfig1": "647bb8f09e751a39d488b0260db6015ce1118c56114cc771dd5bf907180f0c80", "libfreetype6": "7f4afc6a8e7023ed51f15caf4d082e44e0f3926161afaeb7c4bb6326955255bd", "libgcc1": "116dadf4ceaba7150eb46a6598dd3defa62b1b2a6578fb494f4c932878634994", "libgcrypt20": "079025d334873844bba2aae474fe78f3eff3e04673302c91e4167916fd03efd2", "libgomp1": "2fb511a931d0510d22313fad065c951e04431d75d4e6160e1d80d29e88748c8a", "libgpg-error0": "afcf8629c4de6946d73661126ae4e0a28f9718c8720900201d46fd963e0b5ccf", "libjpeg-turbo8": "57f9879f3a23128ba3e9c348eb250b83996fa9ef16de947ab8eff74100f898da", "liblcms2-2": "a08e5e734bcb5a827772e326dad7c0411bbac9399f0f635edfa6b1f09ad80bdb", "liblz4-1": "deed1dc6d2c5b492b136fe23b0c6563f9fe9a9a016bd0c93abdb253cc97cfe67", "liblzma5": "92704fce1ad9af92d59052705d2e0e258789a1718afeca9c0fb0a0d37112b27a", "libmpdec2": "2962dbb81413ad47fee589bb6663589e38b84d80b4d55d8019f0b305025c5eb6", "libncurses5": "928109886a9c8a1a1504e5460632ba49cc0854176a90c16dcd95eb7ebd8d240d", "libncursesw5": "d1a7a32fe88181d6f5adf7c52cb981359aa35b01bdbbf7218ddc240a4fdabd87", "libpcre2-8-0": "37898dba2cc2cf5b87b47b1efb6cb2fda65f3a556f237bd3c30d5c2a8aa48fdd", "libpmem1": "25d3bf2e7c76d8588967e411667f3c2a6d442f6bb4c0bcdb8fa018891e782e06", "libpng16-16": "4d484ba67be62e7bb450ff41c88d06e65d564f9180daccc4a2640760493804bc", "libpython3.6-minimal": "ba0ae4d8a896e433124f462ceffc41009cfddae1e7006f49200d9776f7f21495", "libpython3.6-stdlib": "6b8b2dbb1e838808ae362de266b79ade1d7a78bdfd5be91031583df211f53bf2", "libreadline5": "dd851f543f3061d07c31fd44917865c3173ae9018ae331716787fbfcf1988bec", "libreadline7": "8706403267e95615f1b70db31ff16709361982728b308466346e01c20a743dd5", "libselinux1": "6b6c70f809e8b13f0b1f27006e125abb3a8c3195f5c888dce0df1a5d3f211c0d", "libsqlite3-0": "cde7a26502ecfeede865ce054763f4b6d3aa151bd8dcc5696e2725cfda5ceb07", "libssl1.1": "edeeb202b67936376e8fe483d7bc8d769a456eba2d100b272bb195b6e6d38cb3", "libstdc++6": "4dbd1ffa20011329608f584ff329a10507cfa78c3f76fa34e6f479f9680b64f4", "libsystemd0": "12ba25ece07fed5dae27e33daf701786d0b2589df141d751a25a99f136d8c9e2", "libtinfo5": "bb4d4d80720149692ea0d5bca1a5dac57737afe447810ce69dd4a95107121da5", "libuuid1": "c04350aa8dc1bd73712716f9826b0f02fa10b77058c990a406445020970c2eaa", "mime-support": "98e05aa03538c5f182ed14cbb59cfe64b30592d77e602abd2442a9f1c72532b3", "ncurses-bin": "336af3c372b6a7d083e6c6053670781369d8ae713fd098c9dab8fc5432458015", "netbase": "cbda1c8035cd1fe0b1fb09b456892c0bb868657bfe02da82f0b16207d391145e", "openssl": "c938fa9fb3a00e89a868e95c0faa76adafa0a53f1de122f22ccdfb4e4a074986", "python3-distutils": "f836b1e22923fa175c1968b9dbd916ae5639c9250e21bcfb88f9df2dc289f65c", "python3.6-minimal": "e30011c605816ab1d371c9f096caabaff8dabf87850207fd146aa05845b912c9", "readline-common": "84cb3642c82114496d2fc17011db13655bd661cf4641098c03c168ddde367908", "tar": "6bdbb90c9c073f8e8f92da231a2e553410ce397489f2f1f77d1ae8ddbd0c7bc4", "tzdata": "8ff68141a56b3fe97588a4e8ee02de7dfdacf2abbd4c23ed9ea793ba181ee479", "zlib1g": "2e6dafb986ee8ebbc4e1c344fab090a41710cab878fc9cd89336cdd1740518c5", }, sources = [ "http://us.archive.ubuntu.com/ubuntu bionic main universe", "http://us.archive.ubuntu.com/ubuntu bionic-updates main universe", "http://us.archive.ubuntu.com/ubuntu bionic-backports main universe", "http://security.ubuntu.com/ubuntu bionic-security main universe", ], urls = [ "http://us.archive.ubuntu.com/ubuntu/$(package_path)", "http://security.ubuntu.com/ubuntu/$(package_path)", "https://launchpad.net/ubuntu/+archive/primary/+files/$(package_file)", # Needed in case of superseded archive no more available on the mirrors ], )
81.088889
156
0.710971
1,021
10,947
7.502449
0.272282
0.055352
0.009399
0.015535
0.091384
0.075587
0.06671
0.039295
0.030287
0.015144
0
0.310714
0.162693
10,947
134
157
81.69403
0.524984
0.010779
0
0.015267
0
0.160305
0.764483
0.620068
0
0
0
0
0
1
0.007634
true
0
0
0
0.007634
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
7ee0bea9ee9c4b39315ea961b22ff8e48d004b61
91
py
Python
xtelescope/__init__.py
xtelescope/xtelescope
3876f01ce7c48d4db031ae2468ffaac79a12bbf0
[ "Apache-2.0" ]
1
2020-02-17T03:48:34.000Z
2020-02-17T03:48:34.000Z
xtelescope/__init__.py
xtelescope/xtelescope
3876f01ce7c48d4db031ae2468ffaac79a12bbf0
[ "Apache-2.0" ]
null
null
null
xtelescope/__init__.py
xtelescope/xtelescope
3876f01ce7c48d4db031ae2468ffaac79a12bbf0
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import json with open("config.json", "r") as f: config = json.load(f)
15.166667
35
0.626374
16
91
3.5625
0.75
0.350877
0
0
0
0
0
0
0
0
0
0.013699
0.197802
91
5
36
18.2
0.767123
0.142857
0
0
0
0
0.157895
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
1
0
0
0
0
4
7ef340152edbf836f74c92eeb57648a7975aebf0
502
py
Python
sarna/core/auth_engine/exceptions.py
rsrdesarrollo/sarna
0c1f44e06a932520b70e505585a5469b77f6302e
[ "MIT" ]
25
2019-03-11T22:42:52.000Z
2022-03-15T09:49:15.000Z
sarna/core/auth_engine/exceptions.py
hackingmess/sarna
0c1f44e06a932520b70e505585a5469b77f6302e
[ "MIT" ]
14
2019-01-08T08:35:51.000Z
2022-03-11T23:30:28.000Z
sarna/core/auth_engine/exceptions.py
hackingmess/sarna
0c1f44e06a932520b70e505585a5469b77f6302e
[ "MIT" ]
12
2019-07-26T05:38:32.000Z
2022-03-29T09:54:49.000Z
class ConfigException(Exception): pass class AuthException(Exception): pass class AuthEngineFailedException(AuthException): pass class UnauthorizedAccountException(AuthException): pass class LockedUserException(UnauthorizedAccountException): pass class InvalidAuthEngineException(AuthException): pass class UserNotFoundException(AuthException): pass class NeedsOTPException(AuthException): pass class InvalidCredentialsException(AuthException): pass
14.342857
56
0.788845
36
502
11
0.333333
0.181818
0.277778
0
0
0
0
0
0
0
0
0
0.157371
502
34
57
14.764706
0.93617
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
0
0
1
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
7d02559a8ce31451aaf735fa29c6f7c91fd2b806
19
py
Python
myapp1/prod_settings.py
shon/converge-test-settings
56494989a0f9d2cbc8d236d2445f5565add93038
[ "MIT" ]
null
null
null
myapp1/prod_settings.py
shon/converge-test-settings
56494989a0f9d2cbc8d236d2445f5565add93038
[ "MIT" ]
null
null
null
myapp1/prod_settings.py
shon/converge-test-settings
56494989a0f9d2cbc8d236d2445f5565add93038
[ "MIT" ]
null
null
null
SERVER_PORT = 8001
9.5
18
0.789474
3
19
4.666667
1
0
0
0
0
0
0
0
0
0
0
0.25
0.157895
19
1
19
19
0.625
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
7d24b5944328cfb301cf3c8b6b788ad8c258b571
221
py
Python
src/classsAndObject/creatingAclass.py
inpritamkundu/python
27e404493cd436106cdf493a81e4f074f5d5ab96
[ "MIT" ]
null
null
null
src/classsAndObject/creatingAclass.py
inpritamkundu/python
27e404493cd436106cdf493a81e4f074f5d5ab96
[ "MIT" ]
null
null
null
src/classsAndObject/creatingAclass.py
inpritamkundu/python
27e404493cd436106cdf493a81e4f074f5d5ab96
[ "MIT" ]
null
null
null
# Creating a class # Method 1 # class teddy: # quantity = 200 # print(teddy.quantity) # Method 2 class teddy: quantity = 200 quality = 90 obteddy = teddy() print(obteddy.quality) print(obteddy.quantity)
11.631579
23
0.669683
28
221
5.285714
0.464286
0.263514
0.243243
0.283784
0
0
0
0
0
0
0
0.05848
0.226244
221
18
24
12.277778
0.807018
0.39819
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0.5
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
0
0
0
0
0
0
0
0
4
adbd2b7b0563aa95a1e9983bf28a1f7e6574b32c
151
py
Python
autoclockify/__main__.py
adamjakab/AutoClockify
8d623e5ea65a6bf13ff0c6c1f4e88e3f9c27b5bc
[ "MIT" ]
null
null
null
autoclockify/__main__.py
adamjakab/AutoClockify
8d623e5ea65a6bf13ff0c6c1f4e88e3f9c27b5bc
[ "MIT" ]
null
null
null
autoclockify/__main__.py
adamjakab/AutoClockify
8d623e5ea65a6bf13ff0c6c1f4e88e3f9c27b5bc
[ "MIT" ]
null
null
null
"""The __main__ module lets you run the CLI interface by typing `python autoclockify`. """ from ac import main if __name__ == "__main__": main()
18.875
86
0.701987
21
151
4.47619
0.809524
0
0
0
0
0
0
0
0
0
0
0
0.192053
151
7
87
21.571429
0.770492
0.549669
0
0
0
0
0.131148
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
0
0
0
4
adf0282a5170a3c5435472a47c388ccde5cb0916
37
py
Python
test/test_str.py
notfresh/shortulr_service
064281de22fa125e51c7df7b3b7ac197df460a28
[ "MIT" ]
4
2020-05-12T01:07:19.000Z
2022-01-17T08:12:51.000Z
test/test_str.py
notfresh/shortulr_service
064281de22fa125e51c7df7b3b7ac197df460a28
[ "MIT" ]
null
null
null
test/test_str.py
notfresh/shortulr_service
064281de22fa125e51c7df7b3b7ac197df460a28
[ "MIT" ]
2
2020-04-12T00:59:05.000Z
2020-05-08T02:37:05.000Z
a = '124{}' a= a.format(123) print(a)
12.333333
16
0.567568
8
37
2.625
0.625
0
0
0
0
0
0
0
0
0
0
0.1875
0.135135
37
3
17
12.333333
0.46875
0
0
0
0
0
0.131579
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
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
4
bc0fef9046b1f0dfac5dc8464052a1eae3717e48
91
py
Python
Consumer/apps.py
SynchroTeam/synchro-socket-server
fd4d493bbe9e0ff82f46bd64a376d7441473a1e7
[ "MIT" ]
null
null
null
Consumer/apps.py
SynchroTeam/synchro-socket-server
fd4d493bbe9e0ff82f46bd64a376d7441473a1e7
[ "MIT" ]
1
2021-03-02T21:59:35.000Z
2021-03-02T21:59:35.000Z
Consumer/apps.py
SynchroTeam/synchro-socket-server
fd4d493bbe9e0ff82f46bd64a376d7441473a1e7
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ConsumerConfig(AppConfig): name = 'Consumer'
15.166667
33
0.758242
10
91
6.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
5
34
18.2
0.907895
0
0
0
0
0
0.087912
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
bc1bd22240f8ed83833ea928375b9bb6b30dedf9
214
py
Python
bot/bot.py
ForgeAhead/BeltBot
1de817477c5aecace85171d0c409ce3dfb457ca4
[ "MIT" ]
1
2021-07-09T13:45:17.000Z
2021-07-09T13:45:17.000Z
bot/bot.py
ForgeAhead/BeltBot
1de817477c5aecace85171d0c409ce3dfb457ca4
[ "MIT" ]
null
null
null
bot/bot.py
ForgeAhead/BeltBot
1de817477c5aecace85171d0c409ce3dfb457ca4
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from bot.utils import when_mentioned INTENTS = discord.Intents.default() INTENTS.members = True BOT = commands.Bot(command_prefix=when_mentioned, intents=INTENTS)
21.4
66
0.817757
29
214
5.931034
0.517241
0.151163
0.232558
0
0
0
0
0
0
0
0
0
0.107477
214
9
67
23.777778
0.900524
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
bc1c68a7b88889e260cbf481afe6013d604c51e8
130
py
Python
make_negative_label.py
hdh7485/OpenLabeling
738264bc44be63b9784ef63d220e47368b3a5fea
[ "Apache-2.0" ]
null
null
null
make_negative_label.py
hdh7485/OpenLabeling
738264bc44be63b9784ef63d220e47368b3a5fea
[ "Apache-2.0" ]
null
null
null
make_negative_label.py
hdh7485/OpenLabeling
738264bc44be63b9784ef63d220e47368b3a5fea
[ "Apache-2.0" ]
null
null
null
import glob files = glob.glob('images/*.jpg') for file_name in files: with open(file_name[:-3]+'txt', 'w') as f: pass
21.666667
46
0.615385
22
130
3.545455
0.772727
0.205128
0
0
0
0
0
0
0
0
0
0.009709
0.207692
130
5
47
26
0.747573
0
0
0
0
0
0.123077
0
0
0
0
0
0
1
0
false
0.2
0.2
0
0.2
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
0
0
0
4
bc32a60a2e07b73de1c6f72642c32c98e7577fb7
252
py
Python
srcs/sg/nodes/matrix_node.py
pomponchik/computor_v2
742b3f3b47c8d46806b2f733b4ec07ae63a23f00
[ "MIT" ]
null
null
null
srcs/sg/nodes/matrix_node.py
pomponchik/computor_v2
742b3f3b47c8d46806b2f733b4ec07ae63a23f00
[ "MIT" ]
null
null
null
srcs/sg/nodes/matrix_node.py
pomponchik/computor_v2
742b3f3b47c8d46806b2f733b4ec07ae63a23f00
[ "MIT" ]
null
null
null
from srcs.sg.nodes.abstract_node import AbstractGraphNode from srcs.sg.objects.matrix_object import MatrixObject class MatrixGraphNode(AbstractGraphNode): def calculate(self, context): return MatrixObject.create_from_node(self, context)
28
59
0.809524
30
252
6.666667
0.666667
0.08
0.1
0
0
0
0
0
0
0
0
0
0.123016
252
8
60
31.5
0.904977
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
4
bc3de21721a466d6d36dbc8d953647849fe30c77
182
py
Python
home/views.py
iorobertob/techmology
8e8d854b21a65bb4ca725288aeb48f28dc87a262
[ "MIT" ]
null
null
null
home/views.py
iorobertob/techmology
8e8d854b21a65bb4ca725288aeb48f28dc87a262
[ "MIT" ]
null
null
null
home/views.py
iorobertob/techmology
8e8d854b21a65bb4ca725288aeb48f28dc87a262
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. def index(request): context = {'techmology': "techmology"} return render(request, 'home/index.html', context)
22.75
54
0.71978
22
182
5.954545
0.772727
0
0
0
0
0
0
0
0
0
0
0
0.159341
182
8
54
22.75
0.856209
0.126374
0
0
0
0
0.221519
0
0
0
0
0
0
1
0.25
false
0
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
0
0
0
1
0
0
4
70cf1f20dd63a14fe89e50a5042d800a8f5ff397
103
py
Python
snakeAI/__main__.py
sgalella/SnakeAI
29bb6d68f49da995bb81caf52f224df7acd47ca9
[ "MIT" ]
null
null
null
snakeAI/__main__.py
sgalella/SnakeAI
29bb6d68f49da995bb81caf52f224df7acd47ca9
[ "MIT" ]
null
null
null
snakeAI/__main__.py
sgalella/SnakeAI
29bb6d68f49da995bb81caf52f224df7acd47ca9
[ "MIT" ]
null
null
null
import tkinter as tk from .menu import MainMenu root = tk.Tk() menu = MainMenu(root) root.mainloop()
12.875
26
0.728155
16
103
4.6875
0.5625
0.32
0
0
0
0
0
0
0
0
0
0
0.165049
103
7
27
14.714286
0.872093
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
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
0
1
0
0
0
0
4
70ddc71b751591ded02df352de0688025b50138f
611
py
Python
opyoid/providers/providers_factories/from_cache_provider_factory.py
illuin-tech/opyoid
a2ca485e1820ba0d12a86ba91100aa097a1e5736
[ "MIT" ]
37
2020-08-25T07:22:41.000Z
2022-03-18T03:05:53.000Z
opyoid/providers/providers_factories/from_cache_provider_factory.py
illuin-tech/opyoid
a2ca485e1820ba0d12a86ba91100aa097a1e5736
[ "MIT" ]
18
2020-10-04T17:33:24.000Z
2021-12-16T16:28:35.000Z
opyoid/providers/providers_factories/from_cache_provider_factory.py
illuin-tech/opyoid
a2ca485e1820ba0d12a86ba91100aa097a1e5736
[ "MIT" ]
2
2021-01-26T19:58:15.000Z
2021-11-30T01:10:25.000Z
from opyoid.injection_context import InjectionContext from opyoid.provider import Provider from opyoid.utils import InjectedT from .provider_factory import ProviderFactory class FromCacheProviderFactory(ProviderFactory): """Returns Providers for targets that are already in the registry.""" def accept(self, context: InjectionContext[InjectedT]) -> bool: return context.target in context.injection_state.provider_registry def create(self, context: InjectionContext[InjectedT]) -> Provider[InjectedT]: return context.injection_state.provider_registry.get_provider(context.target)
40.733333
85
0.801964
68
611
7.102941
0.470588
0.062112
0.111801
0.149068
0.153209
0
0
0
0
0
0
0
0.12766
611
14
86
43.642857
0.906191
0.10311
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.444444
0.222222
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
1
1
0
0
4
cb10d72d493d46ebcaa369a372c4c837267cf316
134
py
Python
app/db.py
vidyasagar1432/fastapi-url-shortener
9f21a6ba7d4e7141ce821f05522fa345a3584d67
[ "MIT" ]
null
null
null
app/db.py
vidyasagar1432/fastapi-url-shortener
9f21a6ba7d4e7141ce821f05522fa345a3584d67
[ "MIT" ]
null
null
null
app/db.py
vidyasagar1432/fastapi-url-shortener
9f21a6ba7d4e7141ce821f05522fa345a3584d67
[ "MIT" ]
null
null
null
from deta import Deta from app.settings import setting deta = Deta(setting.DETA_PROJECT_KEY) db = deta.Base(setting.DETA_BASE_NAME)
19.142857
38
0.80597
22
134
4.727273
0.5
0.317308
0
0
0
0
0
0
0
0
0
0
0.119403
134
6
39
22.333333
0.881356
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
cb27eb5cf5027dd4244f2827907ae720f7596386
152
py
Python
shortener/__main__.py
divadsn/url-shortener
4173515133a1da22d5d0be83094eeef2dbdd8bb8
[ "Apache-2.0" ]
1
2017-12-19T11:28:41.000Z
2017-12-19T11:28:41.000Z
shortener/__main__.py
divadsn/url-shortener
4173515133a1da22d5d0be83094eeef2dbdd8bb8
[ "Apache-2.0" ]
null
null
null
shortener/__main__.py
divadsn/url-shortener
4173515133a1da22d5d0be83094eeef2dbdd8bb8
[ "Apache-2.0" ]
null
null
null
from waitress import serve from shortener import app if __name__ == '__main__': serve(app, host=app.config['LISTEN_ADDR'], port=app.config['PORT'])
30.4
71
0.736842
22
152
4.681818
0.636364
0.174757
0
0
0
0
0
0
0
0
0
0
0.125
152
5
71
30.4
0.774436
0
0
0
0
0
0.150327
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
0
0
0
4
cb589ade26851268c2d35560a0d15f761063db4b
42
py
Python
BOJ/06000~06999/6700~6799/6749.py
shinkeonkim/today-ps
f3e5e38c5215f19579bb0422f303a9c18c626afa
[ "Apache-2.0" ]
2
2020-01-29T06:54:41.000Z
2021-11-07T13:23:27.000Z
BOJ/06000~06999/6700~6799/6749.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
BOJ/06000~06999/6700~6799/6749.py
shinkeonkim/Today_PS
bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44
[ "Apache-2.0" ]
null
null
null
a=int(input()) b=int(input()) print(2*b-a)
14
14
0.619048
10
42
2.6
0.6
0.615385
0
0
0
0
0
0
0
0
0
0.025
0.047619
42
3
15
14
0.625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
1
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
0
0
0
0
0
4
cb5f4787e88737ac7b3a9aba00619f2f1e95a886
172
py
Python
python/generateSettings.py
Maplenormandy/list-62x
c1731d0610fdf9e58cb2792d706e8904c549fbd6
[ "MIT" ]
1
2020-11-07T12:40:59.000Z
2020-11-07T12:40:59.000Z
python/generateSettings.py
Maplenormandy/list-62x
c1731d0610fdf9e58cb2792d706e8904c549fbd6
[ "MIT" ]
null
null
null
python/generateSettings.py
Maplenormandy/list-62x
c1731d0610fdf9e58cb2792d706e8904c549fbd6
[ "MIT" ]
null
null
null
import cv2 import pandas as pd import numpy as np cap0 = cv2.VideoCapture(0) cap1 = cv2.VideoCapture(1) cv2.namedWindow('frame') if cap0.isOpened() and cap1.isOpened():
15.636364
39
0.744186
27
172
4.740741
0.62963
0.234375
0
0
0
0
0
0
0
0
0
0.067568
0.139535
172
10
40
17.2
0.797297
0
0
0
0
0
0.02924
0
0
0
0
0
0
0
null
null
0
0.428571
null
null
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
4
cb8879925ae563416cba0496c0e6b594379b5bfe
255
py
Python
tests/testapp/views.py
cpmbailey/drf-flex-fields
10881f3beb198d12e00fdf61ea63153141e4ff90
[ "MIT" ]
1
2018-10-31T13:54:24.000Z
2018-10-31T13:54:24.000Z
tests/testapp/views.py
cpmbailey/drf-flex-fields
10881f3beb198d12e00fdf61ea63153141e4ff90
[ "MIT" ]
null
null
null
tests/testapp/views.py
cpmbailey/drf-flex-fields
10881f3beb198d12e00fdf61ea63153141e4ff90
[ "MIT" ]
null
null
null
from rest_flex_fields import FlexFieldsModelViewSet from tests.testapp.serializers import PetSerializer from tests.testapp.models import Pet class PetViewSet(FlexFieldsModelViewSet): serializer_class = PetSerializer queryset = Pet.objects.all()
28.333333
51
0.831373
28
255
7.464286
0.642857
0.086124
0.15311
0
0
0
0
0
0
0
0
0
0.117647
255
8
52
31.875
0.928889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
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
0
0
1
0
1
0
0
4
cb98f04fa720c56e89eb13268c6d848c71b9f92b
30
py
Python
arms/misc/__init__.py
EricssonResearch/arms
495862035914ac632a72797f9005fe8f33f9d23d
[ "Apache-2.0" ]
4
2019-06-07T17:03:47.000Z
2021-08-10T13:36:40.000Z
arms/misc/__init__.py
EricssonResearch/arms
495862035914ac632a72797f9005fe8f33f9d23d
[ "Apache-2.0" ]
48
2018-09-21T10:33:08.000Z
2018-12-05T07:10:03.000Z
arms/misc/__init__.py
EricssonResearch/arms
495862035914ac632a72797f9005fe8f33f9d23d
[ "Apache-2.0" ]
2
2018-10-04T03:45:58.000Z
2018-10-29T12:29:22.000Z
"""Modules related to misc"""
15
29
0.666667
4
30
5
1
0
0
0
0
0
0
0
0
0
0
0
0.133333
30
1
30
30
0.769231
0.766667
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
cbdeda37b005dbe4583a99f7f02a02cd2babddd9
9,278
py
Python
libswervedrive/tests/test_icrestimator.py
auscompgeek/swervetest
f75a2429c681cc7c06eefd6d70aeccfa381bc4b2
[ "MIT" ]
null
null
null
libswervedrive/tests/test_icrestimator.py
auscompgeek/swervetest
f75a2429c681cc7c06eefd6d70aeccfa381bc4b2
[ "MIT" ]
null
null
null
libswervedrive/tests/test_icrestimator.py
auscompgeek/swervetest
f75a2429c681cc7c06eefd6d70aeccfa381bc4b2
[ "MIT" ]
1
2018-12-07T12:08:53.000Z
2018-12-07T12:08:53.000Z
import numpy as np import math from icrestimator import ICREstimator global tolerance tolerance = 0.05 def init_icre(alphas, ls, bs): alphas = np.array(alphas) ls = np.array(ls) bs = np.array(bs) epsilon = np.zeros(shape=(3, 1)) icre = ICREstimator(epsilon, alphas, ls, bs) return icre def test_estimate_lambda(): icre = init_icre([0, math.pi / 2, math.pi], [1, 1, 1], [0, 0, 0]) q = np.zeros(shape=(3,)) # ICR on the robot's origin desired_lmda = np.array([0, 0, 1]) lmda_e = icre.estimate_lmda(q) assert np.allclose(desired_lmda, lmda_e.T) q = np.array([math.pi / 4, 0, -math.pi / 4]) icr = np.array([0, -1, 1]) desired_lmda = icr * 1/np.linalg.norm(icr) lmda_e = icre.estimate_lmda(q) assert np.allclose(desired_lmda, lmda_e.T, atol=tolerance) # driving along the y axis q = np.array([0, math.pi/2, 0]) # so the ICR should be on the U axis desired_lmda = np.array([1, 0, 0]) lmda_e = icre.estimate_lmda(q) assert np.allclose(desired_lmda, lmda_e.T, atol=tolerance) # A square robot with 4 wheels, one at each corner, the difference between each # alpha value is pi/4 and the distance from the centre of the robot to each module # is the same alpha = math.pi / 4 alphas = [alpha, math.pi - alpha, -math.pi + alpha, -alpha] icre = init_icre(alphas, [1] * 4, [0, 0, 0, 0]) # test case from the simulator q = np.array([6.429e-04, -6.429e-04, 3.1422, 3.1409]) desired_lmda = np.array([0, 0, 1]) lmda_e = icre.estimate_lmda(q) assert np.allclose(desired_lmda, lmda_e.T, atol=tolerance) # ICR on a wheel, should be a singularity q = np.array([-math.pi / 4, 0, math.pi / 4, 0]) desired_lmda = np.array([-0.5, 0.5, 1 / math.sqrt(2)]) lmda_e = icre.estimate_lmda(q) assert np.allclose(desired_lmda, lmda_e.T, atol=tolerance) assert icre.handle_singularities(lmda_e) # Another square robot with side length of 2 to make calculations simpler alpha = math.pi / 4 alphas = [alpha, math.pi - alpha, -math.pi + alpha, -alpha] icre = init_icre(alphas, [math.sqrt(2)] * 4, [0] * 4) # ICR on one side of the robot frame q = np.array( [ math.acos(6 / (2 * math.sqrt(10))), math.pi / 4, -math.pi / 4, -math.acos(6 / (2 * math.sqrt(10))), ] ) icr = np.array([0, -1, 1]) desired_lmda = icr * 1 / np.linalg.norm(icr) lmda_e = icre.estimate_lmda(q) print(f"estimated ICR = {lmda_e.T}") assert np.allclose(desired_lmda, lmda_e.T, atol=tolerance) # # afaik this is the worst case scenario, 2 wheel singularities and a co-linear singularity # q = np.array([-math.pi/4, math.pi/4, math.pi/4, -math.pi/4]) # icr = np.array([0.5, 0.5, 1/math.sqrt(2)]) # desired_lmda = icr * 1 / np.linalg.norm(icr) # lmda_e = icre.estimate_lmda(q) # # print(f"norm of estimate - {np.linalg.norm(lmda_e)}") # assert np.allclose(desired_lmda, lmda_e.T, atol=tolerance) def test_joint_space_conversion(): icre = init_icre([math.pi/4], [1], [0]) lmda = np.array([0, 0, -1]).reshape(-1, 1) beta_target = np.array([0]) assert np.allclose(beta_target, icre.S(lmda)) lmda = np.array([0, -1, 0]).reshape(-1, 1) beta_target = np.array([math.pi/4]) assert np.allclose(beta_target, icre.S(lmda)) # square robot with side length of 2 to make calculations simpler alpha = math.pi / 4 alphas = [alpha, math.pi - alpha, -math.pi + alpha, -alpha] icre = init_icre(alphas, [math.sqrt(2)] * 4, [0] * 4) icr = np.array([-1, 0, 1]) lmda = icr * 1 / np.linalg.norm(icr) beta_target = np.array( [ -math.acos(6 / (2 * math.sqrt(10))), -math.pi / 4, math.pi / 4, math.acos(6 / (2 * math.sqrt(10))), ] ) assert np.allclose(beta_target, icre.S(lmda), atol=tolerance) def test_solve(): # for now, check only for runtime errors until compute_derivatives works icre = init_icre([math.pi/4, -math.pi/4, math.pi], [1, 1, 1], [0, 0, 0]) lmda = np.array([0, -1, 0]).reshape(-1, 1) S_u = np.array([1/math.sqrt(2), 1/math.sqrt(2), 0]) S_v = np.array([0, 0, 1]) q = np.array([0, 0, 0]) icre.solve(S_u, S_v, q, lmda) def test_compute_derivatives(): # for now, check only for runtime errors icre = init_icre([math.pi/4, -math.pi/4, math.pi], [1, 1, 1], [0, 0, 0]) lmda = np.array([0, 0, -1]).reshape(-1, 1) S_u, S_v = icre.compute_derivatives(lmda) def test_handle_singularities(): icre = init_icre([0, math.pi/2, math.pi], [1, 1, 1], [0, 0, 0]) # icr on wheel 0 on the R^2 plane icr = np.array([1, 0, 1]).reshape(-1, 1) lmda = icr * 1/np.linalg.norm(icr) singularity, wheel_number = icre.handle_singularities(lmda) assert singularity assert wheel_number is 0 icr = np.array([100, 0, 1]).reshape(-1, 1) lmda = icr * 1/np.linalg.norm(icr) singularity, wheel_number = icre.handle_singularities(lmda) assert not singularity assert wheel_number is None def test_update_parameters(): icre = init_icre([0, math.pi/2, math.pi], [1, 1, 1], [0, 0, 0]) q = np.zeros(shape=(3,)) # ICR on the robot's origin desired_lmda = np.array([0, 0, 1]) u, v = -0.1, -0.1 # ICR estimate too negative lmda_estimate = np.array([u, v, math.sqrt(1-np.linalg.norm([u, v]))]).reshape(-1, 1) delta_u, delta_v = 0.1, 0.1 lmda_t, worse = icre.update_parameters(lmda_estimate, delta_u, delta_v, q) assert np.allclose(lmda_t.T, desired_lmda) assert not worse delta_u, delta_v = -0.1, -0.1 lmda_t, worse = icre.update_parameters(lmda_estimate, delta_u, delta_v, q) assert worse def test_select_starting_points(): icre = init_icre([0, math.pi/2, math.pi], [1, 1, 1], [0, 0, 0]) q = np.zeros(shape=(3,)) # ICR on the robot's origin desired_lmda = np.array([0, 0, -1]) starting_points = icre.select_starting_points(q) for sp in starting_points: assert np.allclose(desired_lmda[:2], sp[:2]) q = np.array([math.pi / 4, 0, -math.pi / 4]) icr = np.array([0, -1, 1]).reshape(-1, 1) desired_lmda = icr * 1/np.linalg.norm(icr) starting_points = icre.select_starting_points(q) assert np.allclose(desired_lmda[:2], starting_points[0][:2]) # should have unit norm for sp in starting_points: assert np.isclose(np.linalg.norm(sp), 1) # driving along the y axis q = np.array([0, math.pi/2, 0]) # so the ICR should be on the U axis desired_lmda = np.array([1, 0, 0]).reshape(-1, 1) starting_points = icre.select_starting_points(q) assert np.allclose(desired_lmda[:2], (starting_points[0][:2])) for sp in starting_points: assert np.isclose(np.linalg.norm(sp), 1) # A square robot with 4 wheels, one at each corner, the difference between each # alpha value is pi/4 and the distance from the centre of the robot to each module # is the same # test case from the simulator alpha = math.pi / 4 alphas = [alpha, math.pi - alpha, -math.pi + alpha, -alpha] icre = init_icre(alphas, [1] * 4, [0] * 4) q = np.array([6.429e-04, -6.429e-04, 3.1422, 3.1409]) desired_lmda = np.array([0, 0, 1]) sp = icre.select_starting_points(q) close=[] for p in sp: close.append(np.allclose(desired_lmda, p.T, atol=tolerance)) assert any(close) print(f"Close {close}") # Another square robot with side length of 2 to make calculations simpler alpha = math.pi / 4 alphas = [alpha, math.pi - alpha, -math.pi + alpha, -alpha] icre = init_icre(alphas, [math.sqrt(2)] * 4, [0] * 4) # Two wheels are pointing in the same direction (the lines between them are co-linear), the other # two perpendiculars meet at a point halfway between the first two wheel. - currently failing q = np.array( [ -math.acos(6 / (2 * math.sqrt(10))), -math.pi / 4, math.pi / 4, math.acos(6 / (2 * math.sqrt(10))), ] ) icr = np.array([-1, 0, 1]) desired_lmda = icr * 1 / np.linalg.norm(icr) print(f"desired lmda = {desired_lmda}") sp = icre.select_starting_points(q) close = [] for p in sp: close.append(np.allclose(desired_lmda, p.T, atol=tolerance)) assert any(close) print(f"Close {close}") def test_flip_wheel(): # S_lmda on robot origin alpha = math.pi / 4 # 45 degrees alphas = [alpha, math.pi - alpha, -math.pi + alpha, -alpha] q = np.array([2 * math.pi, 7 * math.pi, math.pi / 2, math.pi]) icre = init_icre(alphas, [1] * 4, q) S_lmda = np.array([0] * 4) assert ( np.linalg.norm(icre.flip_wheel(q, S_lmda) - np.array([0, 0, math.pi / 2, 0])) < tolerance ) assert all(icre.flipped == [False, True, False, True]) q = np.array([-2 * math.pi, -7 * math.pi, -math.pi / 2, -math.pi]) S_lmda = np.array([0] * 4) assert ( np.linalg.norm(icre.flip_wheel(q, S_lmda) - np.array([0, 0, -math.pi / 2, 0])) < tolerance ) assert all(icre.flipped == [False, True, False, True])
37.562753
101
0.601531
1,530
9,278
3.553595
0.110458
0.06842
0.036049
0.030899
0.791613
0.763105
0.748023
0.718963
0.687879
0.663785
0
0.049045
0.244018
9,278
246
102
37.715447
0.726119
0.180642
0
0.594595
0
0
0.01071
0
0
0
0
0
0.151351
1
0.048649
false
0
0.016216
0
0.07027
0.021622
0
0
0
null
0
0
0
0
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
4
1de964ad6548634d10936968b6d3d95f0d42114c
3,355
py
Python
scripts/NN.py
platycristate/ptah
15369382fc48860cc5bcd6a201a8b250ae8cb516
[ "MIT" ]
null
null
null
scripts/NN.py
platycristate/ptah
15369382fc48860cc5bcd6a201a8b250ae8cb516
[ "MIT" ]
1
2021-06-11T12:01:33.000Z
2021-06-11T12:01:33.000Z
scripts/NN.py
platycristate/ptah
15369382fc48860cc5bcd6a201a8b250ae8cb516
[ "MIT" ]
1
2021-06-11T11:57:06.000Z
2021-06-11T11:57:06.000Z
import torch import numpy as np import pandas as pd class net(torch.nn.Module): def __init__(self, n_hidden_neurons, in_features, out_features, lr): super(net, self).__init__() self.layer1 = torch.nn.Linear(in_features, n_hidden_neurons) self.act1 = torch.nn.ReLU() self.layer2 = torch.nn.Linear(n_hidden_neurons, int(n_hidden_neurons/3)) self.act2 = torch.nn.ReLU() self.layer3 = torch.nn.Linear(int(n_hidden_neurons/3), out_features) self.act_out = torch.nn.Sigmoid() self.lr = lr self.optimizer = torch.optim.Adam(net.parameters(self), lr=self.lr) def forward(self, x): x = self.layer1(x) #x = self.dropout(x) x = self.act1(x) x = self.layer2(x) x = self.act2(x) x = self.layer3(x) x = self.act_out(x) return x class net2(torch.nn.Module): def __init__(self, n_hidden_neurons, in_features, out_features, lr): super(net2, self).__init__() self.layer1 = torch.nn.Linear(in_features, n_hidden_neurons) self.act1 = torch.nn.ReLU() self.layer2 = torch.nn.Linear(n_hidden_neurons, out_features) self.lr = lr self.optimizer = torch.optim.Adam(net2.parameters(self), lr=self.lr) def forward(self, x): x = self.layer1(x) x = self.act1(x) x = self.layer2(x) return x def train(dili_net, X, Y, X_test, Y_test, loss, batch_size=13, epochs=87): for epoch in range(epochs): order = np.random.permutation(len(X)) for start_index in range(0, len(X), batch_size): dili_net.optimizer.zero_grad() batch_indices = order[start_index:start_index+batch_size] x_batch = X[batch_indices] #y_batch = torch.LongTensor( Y[batch_indices] ).to(device) y_batch = Y[batch_indices] preds = dili_net.forward(x_batch) loss_value = loss(preds.float(), y_batch.float()) loss_value.backward() dili_net.optimizer.step() if epoch % 10 == 0: test_preds = dili_net.forward(X_test) test_preds = torch.where(test_preds > 0.5, 1, 0) print("epoch", epoch) accuracy = (test_preds == Y_test).cpu().float().mean().numpy() print("Accuracy:", accuracy) if accuracy >= 0.95: print("Accuracy:", accuracy) a = input() if a == 's': break def train2(dili_net, X, Y, X_test, Y_test, loss, batch_size=13, epochs=87): for epoch in range(epochs): order = np.random.permutation(len(X)) for start_index in range(0, len(X), batch_size): dili_net.optimizer.zero_grad() batch_indices = order[start_index:start_index+batch_size] x_batch = X[batch_indices] y_batch = Y[batch_indices] preds = dili_net.forward(x_batch) loss_value = loss(preds.float(), y_batch.float()) loss_value.backward() dili_net.optimizer.step() if epoch % 2 == 0: test_preds = dili_net.forward(X_test) print("epoch", epoch) loss_test = loss(test_preds, Y_test) print("Loss:", loss_test) a = input() if a == "s": break
37.696629
80
0.580328
460
3,355
4.01087
0.193478
0.041734
0.03252
0.041192
0.744715
0.725203
0.708943
0.708943
0.639566
0.617886
0
0.01866
0.297168
3,355
88
81
38.125
0.763783
0.022653
0
0.641026
0
0
0.010684
0
0
0
0
0
0
1
0.076923
false
0
0.038462
0
0.166667
0.064103
0
0
0
null
0
0
0
0
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
4
1df402a28c34c762e669cdd61c8503fb5c3cc297
264
py
Python
utils.py
sbuberl/reader
ad8e12fdd6ebfa03b1668e63faa69737081791ea
[ "MIT" ]
1
2020-03-19T19:00:48.000Z
2020-03-19T19:00:48.000Z
utils.py
sbuberl/reader
ad8e12fdd6ebfa03b1668e63faa69737081791ea
[ "MIT" ]
9
2016-09-30T19:18:23.000Z
2017-01-10T21:54:12.000Z
utils.py
sbuberl/reader
ad8e12fdd6ebfa03b1668e63faa69737081791ea
[ "MIT" ]
null
null
null
from models import db import os def add_and_refresh(model_object): db.session.add(model_object) db.session.flush() db.session.refresh(model_object) def path_leaf(path): head, tail = os.path.split(path) return tail or os.path.basename(head)
18.857143
41
0.723485
42
264
4.404762
0.5
0.178378
0.194595
0.216216
0
0
0
0
0
0
0
0
0.170455
264
13
42
20.307692
0.844749
0
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0
0.555556
0
0
0
0
null
0
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
1
0
0
4
1df6f9bde3b158aab8b1efa92455cbb8cf85b92b
91
py
Python
ourGames/apps.py
Shamaun-Nabi/Online-Gaming-Shop
817f43e8a7db0805fedc47089894b531251b1131
[ "MIT" ]
3
2021-03-30T17:56:43.000Z
2021-04-10T08:55:07.000Z
ourGames/apps.py
Shamaun-Nabi/Online-Gaming-Shop-with-Team
817f43e8a7db0805fedc47089894b531251b1131
[ "MIT" ]
2
2021-03-19T16:18:46.000Z
2021-03-20T13:23:13.000Z
ourGames/apps.py
Shamaun-Nabi/Online-Gaming-Shop
817f43e8a7db0805fedc47089894b531251b1131
[ "MIT" ]
3
2021-03-08T15:57:11.000Z
2021-07-07T17:00:43.000Z
from django.apps import AppConfig class OurgamesConfig(AppConfig): name = 'ourGames'
15.166667
33
0.758242
10
91
6.9
0.9
0
0
0
0
0
0
0
0
0
0
0
0.164835
91
5
34
18.2
0.907895
0
0
0
0
0
0.087912
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
38257fea1195c4ba02f0192b13a57fa882f4a707
6,195
py
Python
oc_config_validate/oc_config_validate/models/isis.py
JoseIgnacioTamayo/gnxi
1ebe7b7e58d33844e5bcbca0710153760c03e9f7
[ "Apache-2.0" ]
1
2019-08-06T09:25:43.000Z
2019-08-06T09:25:43.000Z
oc_config_validate/oc_config_validate/models/isis.py
JoseIgnacioTamayo/gnxi
1ebe7b7e58d33844e5bcbca0710153760c03e9f7
[ "Apache-2.0" ]
null
null
null
oc_config_validate/oc_config_validate/models/isis.py
JoseIgnacioTamayo/gnxi
1ebe7b7e58d33844e5bcbca0710153760c03e9f7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.yangtypes import YANGDynClass from pyangbind.lib.yangtypes import ReferenceType from pyangbind.lib.base import PybindBase from collections import OrderedDict from decimal import Decimal from bitarray import bitarray import six # PY3 support of some PY2 keywords (needs improved) if six.PY3: import builtins as __builtin__ long = int elif six.PY2: import __builtin__ class openconfig_isis_lsdb_types(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-isis-lsdb-types - based on the path /openconfig-isis-lsdb-types. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This module contains general LSDB type definitions for use in ISIS YANG model. """ _pyangbind_elements = {} class openconfig_isis_lsp(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-isis-lsp - based on the path /openconfig-isis-lsp. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This sub-module describes a YANG model for the IS-IS Link State Database (LSDB). Portions of this code were derived from IETF RFCs relating to the IS-IS protocol. Please reproduce this note if possible. IETF code is subject to the following copyright and license: Copyright (c) IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info). """ _pyangbind_elements = {} class openconfig_isis(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-isis - based on the path /openconfig-isis. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This module describes a YANG model for ISIS protocol configuration. It is a limited subset of all of the configuration parameters available in the variety of vendor implementations, hence it is expected that it would be augmented with vendor - specific configuration data as needed. Additional modules or submodules to handle other aspects of ISIS configuration, including policy, routing, types, LSDB and additional address families are also expected. This model supports the following ISIS configuration level hierarchy: ISIS +-> { global ISIS configuration} +-> levels +-> { level config} +-> { system-level-counters } +-> { level link-state-database} +-> interface +-> { interface config } +-> { circuit-counters } +-> { levels config } +-> { level adjacencies } """ _pyangbind_elements = {} class openconfig_isis_lsp(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-isis-lsp - based on the path /openconfig-isis-lsp. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This sub-module describes a YANG model for the IS-IS Link State Database (LSDB). Portions of this code were derived from IETF RFCs relating to the IS-IS protocol. Please reproduce this note if possible. IETF code is subject to the following copyright and license: Copyright (c) IETF Trust and the persons identified as authors of the code. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the Simplified BSD License set forth in Section 4.c of the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info). """ _pyangbind_elements = {} class openconfig_isis_routing(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-isis-routing - based on the path /openconfig-isis-routing. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This module describes YANG model for ISIS Routing """ _pyangbind_elements = {} class openconfig_isis_policy(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-isis-policy - based on the path /openconfig-isis-policy. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This module contains data definitions for ISIS routing policy. It augments the base routing-policy module with BGP-specific options for conditions and actions. """ _pyangbind_elements = {} class openconfig_isis_types(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-isis-types - based on the path /openconfig-isis-types. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This module contains general data definitions for use in ISIS YANG model. """ _pyangbind_elements = {} class openconfig_isis_routing(PybindBase): """ This class was auto-generated by the PythonClass plugin for PYANG from YANG module openconfig-isis-routing - based on the path /openconfig-isis-routing. Each member element of the container is represented as a class variable - with a specific YANG type. YANG Description: This module describes YANG model for ISIS Routing """ _pyangbind_elements = {}
35.198864
117
0.772236
881
6,195
5.38479
0.205448
0.070826
0.026981
0.037099
0.766863
0.709528
0.694983
0.681071
0.681071
0.681071
0
0.001366
0.172559
6,195
175
118
35.4
0.924112
0.785634
0
0.352941
0
0
0
0
0
0
0
0
0
1
0
false
0
0.441176
0
0.911765
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
6976690b4fca901fb57a5709df740bc5108d28a6
210
py
Python
web/api/serializers/test_history.py
Comp-490-SeniorProject/site
031a1c25a3cc901fa764d408d795ed12dfebdb00
[ "MIT" ]
null
null
null
web/api/serializers/test_history.py
Comp-490-SeniorProject/site
031a1c25a3cc901fa764d408d795ed12dfebdb00
[ "MIT" ]
38
2021-10-12T21:49:57.000Z
2022-03-29T22:53:26.000Z
web/api/serializers/test_history.py
Comp-490-SeniorProject/site
031a1c25a3cc901fa764d408d795ed12dfebdb00
[ "MIT" ]
1
2021-12-07T03:49:49.000Z
2021-12-07T03:49:49.000Z
from rest_framework import serializers from web.api.models import TestHistory class TestHistorySerializer(serializers.ModelSerializer): class Meta: model = TestHistory fields = "__all__"
21
57
0.752381
21
210
7.285714
0.761905
0
0
0
0
0
0
0
0
0
0
0
0.195238
210
9
58
23.333333
0.905325
0
0
0
0
0
0.033333
0
0
0
0
0
0
1
0
false
0
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
0
0
1
0
1
0
0
4
698b90ea989496d9c60ce4de03828a680d94574c
201,742
py
Python
gui_tcc.py
diegoscastanho/LiconIA
d6d8c4f250c5ade3010bd72d6e662e3393d3226e
[ "MIT" ]
4
2021-06-19T17:21:13.000Z
2021-06-20T19:50:29.000Z
gui_tcc.py
Donanfer1/LiconIA
d6d8c4f250c5ade3010bd72d6e662e3393d3226e
[ "MIT" ]
null
null
null
gui_tcc.py
Donanfer1/LiconIA
d6d8c4f250c5ade3010bd72d6e662e3393d3226e
[ "MIT" ]
1
2021-06-19T19:24:47.000Z
2021-06-19T19:24:47.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'gui_tcc.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(1000, 700) MainWindow.setMinimumSize(QtCore.QSize(1000, 700)) MainWindow.setAutoFillBackground(False) MainWindow.setStyleSheet("background-color: rgb(0, 0, 0);") self.central_widget = QtWidgets.QWidget(MainWindow) self.central_widget.setObjectName("central_widget") self.gridLayout_27 = QtWidgets.QGridLayout(self.central_widget) self.gridLayout_27.setContentsMargins(9, 9, 9, 9) self.gridLayout_27.setObjectName("gridLayout_27") self.tabWidget = QtWidgets.QTabWidget(self.central_widget) self.tabWidget.setStyleSheet("background-color: rgb(0, 0, 0);\n" "color: rgb(238, 238, 236);") self.tabWidget.setObjectName("tabWidget") self.globalsettings_tab = QtWidgets.QWidget() self.globalsettings_tab.setObjectName("globalsettings_tab") self.verticalLayout = QtWidgets.QVBoxLayout(self.globalsettings_tab) self.verticalLayout.setObjectName("verticalLayout") self.open_file_frame = QtWidgets.QFrame(self.globalsettings_tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.open_file_frame.sizePolicy().hasHeightForWidth()) self.open_file_frame.setSizePolicy(sizePolicy) self.open_file_frame.setMaximumSize(QtCore.QSize(16777215, 200)) self.open_file_frame.setStyleSheet("background-color: rgb(0, 0, 0);") self.open_file_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.open_file_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.open_file_frame.setObjectName("open_file_frame") self.gridLayout = QtWidgets.QGridLayout(self.open_file_frame) self.gridLayout.setObjectName("gridLayout") self.open_file_label = QtWidgets.QLabel(self.open_file_frame) self.open_file_label.setMaximumSize(QtCore.QSize(16777215, 25)) self.open_file_label.setStyleSheet("color: rgb(238, 238, 236);") self.open_file_label.setObjectName("open_file_label") self.gridLayout.addWidget(self.open_file_label, 0, 0, 1, 1) self.open_button = QtWidgets.QPushButton(self.open_file_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.open_button.sizePolicy().hasHeightForWidth()) self.open_button.setSizePolicy(sizePolicy) self.open_button.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.open_button.setObjectName("open_button") self.gridLayout.addWidget(self.open_button, 1, 1, 1, 1) self.open_file_field = QtWidgets.QLineEdit(self.open_file_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.open_file_field.sizePolicy().hasHeightForWidth()) self.open_file_field.setSizePolicy(sizePolicy) self.open_file_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 2px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.open_file_field.setText("") self.open_file_field.setObjectName("open_file_field") self.gridLayout.addWidget(self.open_file_field, 1, 0, 1, 1) self.global_settings_frame = QtWidgets.QFrame(self.open_file_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.global_settings_frame.sizePolicy().hasHeightForWidth()) self.global_settings_frame.setSizePolicy(sizePolicy) self.global_settings_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.global_settings_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.global_settings_frame.setObjectName("global_settings_frame") self.gridLayout_29 = QtWidgets.QGridLayout(self.global_settings_frame) self.gridLayout_29.setContentsMargins(0, 0, 0, 0) self.gridLayout_29.setSpacing(2) self.gridLayout_29.setObjectName("gridLayout_29") self.dayindex_field = QtWidgets.QLineEdit(self.global_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dayindex_field.sizePolicy().hasHeightForWidth()) self.dayindex_field.setSizePolicy(sizePolicy) self.dayindex_field.setMinimumSize(QtCore.QSize(70, 0)) self.dayindex_field.setMaximumSize(QtCore.QSize(100, 16777215)) self.dayindex_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.dayindex_field.setObjectName("dayindex_field") self.gridLayout_29.addWidget(self.dayindex_field, 0, 1, 1, 1) self.prediction_field = QtWidgets.QLineEdit(self.global_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.prediction_field.sizePolicy().hasHeightForWidth()) self.prediction_field.setSizePolicy(sizePolicy) self.prediction_field.setMinimumSize(QtCore.QSize(70, 0)) self.prediction_field.setMaximumSize(QtCore.QSize(100, 16777215)) self.prediction_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.prediction_field.setObjectName("prediction_field") self.gridLayout_29.addWidget(self.prediction_field, 1, 1, 1, 1) self.number_test_samples_field = QtWidgets.QLineEdit(self.global_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.number_test_samples_field.sizePolicy().hasHeightForWidth()) self.number_test_samples_field.setSizePolicy(sizePolicy) self.number_test_samples_field.setMinimumSize(QtCore.QSize(70, 0)) self.number_test_samples_field.setMaximumSize(QtCore.QSize(100, 16777215)) self.number_test_samples_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.number_test_samples_field.setObjectName("number_test_samples_field") self.gridLayout_29.addWidget(self.number_test_samples_field, 3, 1, 1, 1) self.number_test_samples_label = QtWidgets.QLabel(self.global_settings_frame) self.number_test_samples_label.setMaximumSize(QtCore.QSize(200, 16777215)) self.number_test_samples_label.setObjectName("number_test_samples_label") self.gridLayout_29.addWidget(self.number_test_samples_label, 3, 0, 1, 1) self.prediction_label = QtWidgets.QLabel(self.global_settings_frame) self.prediction_label.setMaximumSize(QtCore.QSize(200, 16777215)) self.prediction_label.setObjectName("prediction_label") self.gridLayout_29.addWidget(self.prediction_label, 1, 0, 1, 1) self.dayindex_label = QtWidgets.QLabel(self.global_settings_frame) self.dayindex_label.setMaximumSize(QtCore.QSize(200, 16777215)) self.dayindex_label.setObjectName("dayindex_label") self.gridLayout_29.addWidget(self.dayindex_label, 0, 0, 1, 1) self.dayoftheweek_field = QtWidgets.QLineEdit(self.global_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dayoftheweek_field.sizePolicy().hasHeightForWidth()) self.dayoftheweek_field.setSizePolicy(sizePolicy) self.dayoftheweek_field.setMinimumSize(QtCore.QSize(70, 0)) self.dayoftheweek_field.setMaximumSize(QtCore.QSize(100, 16777215)) self.dayoftheweek_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.dayoftheweek_field.setObjectName("dayoftheweek_field") self.gridLayout_29.addWidget(self.dayoftheweek_field, 2, 1, 1, 1) self.dayoftheweek_label = QtWidgets.QLabel(self.global_settings_frame) self.dayoftheweek_label.setObjectName("dayoftheweek_label") self.gridLayout_29.addWidget(self.dayoftheweek_label, 2, 0, 1, 1) self.gridLayout.addWidget(self.global_settings_frame, 2, 0, 1, 2) self.verticalLayout.addWidget(self.open_file_frame) self.exec_method_groupbox = QtWidgets.QGroupBox(self.globalsettings_tab) self.exec_method_groupbox.setObjectName("exec_method_groupbox") self.verticalLayout_18 = QtWidgets.QVBoxLayout(self.exec_method_groupbox) self.verticalLayout_18.setObjectName("verticalLayout_18") self.exec_method_radiobutton = QtWidgets.QRadioButton(self.exec_method_groupbox) self.exec_method_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.exec_method_radiobutton.setChecked(True) self.exec_method_radiobutton.setObjectName("exec_method_radiobutton") self.verticalLayout_18.addWidget(self.exec_method_radiobutton) self.debug_method_radiobutton = QtWidgets.QRadioButton(self.exec_method_groupbox) self.debug_method_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.debug_method_radiobutton.setObjectName("debug_method_radiobutton") self.verticalLayout_18.addWidget(self.debug_method_radiobutton) self.verticalLayout.addWidget(self.exec_method_groupbox) self.label = QtWidgets.QLabel(self.globalsettings_tab) self.label.setMaximumSize(QtCore.QSize(950, 350)) self.label.setText("") self.label.setPixmap(QtGui.QPixmap("./images/LICON.png")) self.label.setScaledContents(True) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.tabWidget.addTab(self.globalsettings_tab, "") self.ga_tab = QtWidgets.QWidget() self.ga_tab.setObjectName("ga_tab") self.verticalLayout_19 = QtWidgets.QVBoxLayout(self.ga_tab) self.verticalLayout_19.setObjectName("verticalLayout_19") self.ga_settings_frame = QtWidgets.QFrame(self.ga_tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ga_settings_frame.sizePolicy().hasHeightForWidth()) self.ga_settings_frame.setSizePolicy(sizePolicy) self.ga_settings_frame.setMinimumSize(QtCore.QSize(0, 200)) self.ga_settings_frame.setMaximumSize(QtCore.QSize(16777215, 1677215)) self.ga_settings_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.ga_settings_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_settings_frame.setObjectName("ga_settings_frame") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.ga_settings_frame) self.horizontalLayout_2.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.ga_settings = QtWidgets.QGroupBox(self.ga_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ga_settings.sizePolicy().hasHeightForWidth()) self.ga_settings.setSizePolicy(sizePolicy) self.ga_settings.setMinimumSize(QtCore.QSize(0, 0)) self.ga_settings.setMaximumSize(QtCore.QSize(600, 16777215)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.ga_settings.setPalette(palette) self.ga_settings.setStyleSheet("") self.ga_settings.setObjectName("ga_settings") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.ga_settings) self.verticalLayout_6.setContentsMargins(0, 0, 0, 0) self.verticalLayout_6.setSpacing(0) self.verticalLayout_6.setObjectName("verticalLayout_6") self.ga_settings_1 = QtWidgets.QFrame(self.ga_settings) self.ga_settings_1.setFrameShape(QtWidgets.QFrame.NoFrame) self.ga_settings_1.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_settings_1.setObjectName("ga_settings_1") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.ga_settings_1) self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_3.setSpacing(0) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.ga_settings_labels_frame = QtWidgets.QFrame(self.ga_settings_1) self.ga_settings_labels_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.ga_settings_labels_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_settings_labels_frame.setObjectName("ga_settings_labels_frame") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.ga_settings_labels_frame) self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) self.verticalLayout_3.setSpacing(0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.ga_population_label = QtWidgets.QLabel(self.ga_settings_labels_frame) self.ga_population_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.ga_population_label.setStyleSheet("color: rgb(238, 238, 236);") self.ga_population_label.setObjectName("ga_population_label") self.verticalLayout_3.addWidget(self.ga_population_label) self.ga_generations_label = QtWidgets.QLabel(self.ga_settings_labels_frame) self.ga_generations_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.ga_generations_label.setStyleSheet("color: rgb(238, 238, 236);") self.ga_generations_label.setObjectName("ga_generations_label") self.verticalLayout_3.addWidget(self.ga_generations_label) self.ga_executions_label = QtWidgets.QLabel(self.ga_settings_labels_frame) self.ga_executions_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.ga_executions_label.setStyleSheet("color: rgb(238, 238, 236);") self.ga_executions_label.setObjectName("ga_executions_label") self.verticalLayout_3.addWidget(self.ga_executions_label) self.horizontalLayout_3.addWidget(self.ga_settings_labels_frame) self.ga_settings_fields_frame = QtWidgets.QFrame(self.ga_settings_1) self.ga_settings_fields_frame.setMinimumSize(QtCore.QSize(70, 0)) self.ga_settings_fields_frame.setMaximumSize(QtCore.QSize(100, 16777215)) self.ga_settings_fields_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.ga_settings_fields_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_settings_fields_frame.setObjectName("ga_settings_fields_frame") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.ga_settings_fields_frame) self.verticalLayout_4.setContentsMargins(0, 0, 0, 0) self.verticalLayout_4.setSpacing(0) self.verticalLayout_4.setObjectName("verticalLayout_4") self.ga_population_field = QtWidgets.QLineEdit(self.ga_settings_fields_frame) self.ga_population_field.setMinimumSize(QtCore.QSize(0, 0)) self.ga_population_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.ga_population_field.setObjectName("ga_population_field") self.verticalLayout_4.addWidget(self.ga_population_field) self.ga_gerations_field = QtWidgets.QLineEdit(self.ga_settings_fields_frame) self.ga_gerations_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.ga_gerations_field.setObjectName("ga_gerations_field") self.verticalLayout_4.addWidget(self.ga_gerations_field) self.ga_executions_field = QtWidgets.QLineEdit(self.ga_settings_fields_frame) self.ga_executions_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.ga_executions_field.setObjectName("ga_executions_field") self.verticalLayout_4.addWidget(self.ga_executions_field) self.horizontalLayout_3.addWidget(self.ga_settings_fields_frame) self.verticalLayout_6.addWidget(self.ga_settings_1) self.horizontalLayout_2.addWidget(self.ga_settings) self.ga_selection = QtWidgets.QGroupBox(self.ga_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ga_selection.sizePolicy().hasHeightForWidth()) self.ga_selection.setSizePolicy(sizePolicy) self.ga_selection.setMinimumSize(QtCore.QSize(200, 0)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.ga_selection.setPalette(palette) self.ga_selection.setObjectName("ga_selection") self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.ga_selection) self.verticalLayout_7.setObjectName("verticalLayout_7") self.roulette_radiobutton = QtWidgets.QRadioButton(self.ga_selection) self.roulette_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.roulette_radiobutton.setChecked(True) self.roulette_radiobutton.setObjectName("roulette_radiobutton") self.verticalLayout_7.addWidget(self.roulette_radiobutton) self.roulette_sus_radiobutton = QtWidgets.QRadioButton(self.ga_selection) self.roulette_sus_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.roulette_sus_radiobutton.setObjectName("roulette_sus_radiobutton") self.verticalLayout_7.addWidget(self.roulette_sus_radiobutton) self.single_tournament_radiobutton = QtWidgets.QRadioButton(self.ga_selection) self.single_tournament_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.single_tournament_radiobutton.setObjectName("single_tournament_radiobutton") self.verticalLayout_7.addWidget(self.single_tournament_radiobutton) self.death_tournament_radiobutton = QtWidgets.QRadioButton(self.ga_selection) self.death_tournament_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.death_tournament_radiobutton.setObjectName("death_tournament_radiobutton") self.verticalLayout_7.addWidget(self.death_tournament_radiobutton) self.local_search_label = QtWidgets.QLabel(self.ga_selection) self.local_search_label.setStyleSheet("color: rgb(238, 238, 236);") self.local_search_label.setObjectName("local_search_label") self.verticalLayout_7.addWidget(self.local_search_label) self.local_search_frame = QtWidgets.QFrame(self.ga_selection) self.local_search_frame.setMaximumSize(QtCore.QSize(16777215, 40)) self.local_search_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.local_search_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.local_search_frame.setObjectName("local_search_frame") self.horizontalLayout_16 = QtWidgets.QHBoxLayout(self.local_search_frame) self.horizontalLayout_16.setContentsMargins(1, 1, 1, 1) self.horizontalLayout_16.setSpacing(5) self.horizontalLayout_16.setObjectName("horizontalLayout_16") self.local_search_scrollbar = QtWidgets.QScrollBar(self.local_search_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.local_search_scrollbar.sizePolicy().hasHeightForWidth()) self.local_search_scrollbar.setSizePolicy(sizePolicy) self.local_search_scrollbar.setMinimumSize(QtCore.QSize(0, 0)) self.local_search_scrollbar.setMaximum(100) self.local_search_scrollbar.setSingleStep(1) self.local_search_scrollbar.setPageStep(10) self.local_search_scrollbar.setProperty("value", 10) self.local_search_scrollbar.setOrientation(QtCore.Qt.Horizontal) self.local_search_scrollbar.setObjectName("local_search_scrollbar") self.horizontalLayout_16.addWidget(self.local_search_scrollbar) self.local_search_spinbox = QtWidgets.QSpinBox(self.local_search_frame) self.local_search_spinbox.setMaximumSize(QtCore.QSize(50, 16777215)) self.local_search_spinbox.setAlignment(QtCore.Qt.AlignCenter) self.local_search_spinbox.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) self.local_search_spinbox.setMaximum(100) self.local_search_spinbox.setProperty("value", 10) self.local_search_spinbox.setObjectName("local_search_spinbox") self.horizontalLayout_16.addWidget(self.local_search_spinbox) self.verticalLayout_7.addWidget(self.local_search_frame) self.horizontalLayout_2.addWidget(self.ga_selection) self.ga_cost = QtWidgets.QGroupBox(self.ga_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ga_cost.sizePolicy().hasHeightForWidth()) self.ga_cost.setSizePolicy(sizePolicy) self.ga_cost.setObjectName("ga_cost") self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.ga_cost) self.verticalLayout_5.setObjectName("verticalLayout_5") self.ga_mse_radiobutton = QtWidgets.QRadioButton(self.ga_cost) self.ga_mse_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.ga_mse_radiobutton.setChecked(True) self.ga_mse_radiobutton.setObjectName("ga_mse_radiobutton") self.verticalLayout_5.addWidget(self.ga_mse_radiobutton) self.ga_ae_radiobutton = QtWidgets.QRadioButton(self.ga_cost) self.ga_ae_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.ga_ae_radiobutton.setObjectName("ga_ae_radiobutton") self.verticalLayout_5.addWidget(self.ga_ae_radiobutton) self.horizontalLayout_2.addWidget(self.ga_cost) self.ga_crossover = QtWidgets.QGroupBox(self.ga_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ga_crossover.sizePolicy().hasHeightForWidth()) self.ga_crossover.setSizePolicy(sizePolicy) self.ga_crossover.setMinimumSize(QtCore.QSize(210, 0)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.ga_crossover.setPalette(palette) self.ga_crossover.setObjectName("ga_crossover") self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.ga_crossover) self.verticalLayout_8.setObjectName("verticalLayout_8") self.point_radiobutton = QtWidgets.QRadioButton(self.ga_crossover) self.point_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.point_radiobutton.setChecked(True) self.point_radiobutton.setObjectName("point_radiobutton") self.verticalLayout_8.addWidget(self.point_radiobutton) self.arithmetic_radiobutton = QtWidgets.QRadioButton(self.ga_crossover) self.arithmetic_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.arithmetic_radiobutton.setObjectName("arithmetic_radiobutton") self.verticalLayout_8.addWidget(self.arithmetic_radiobutton) self.sbx_radiobutton = QtWidgets.QRadioButton(self.ga_crossover) self.sbx_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.sbx_radiobutton.setObjectName("sbx_radiobutton") self.verticalLayout_8.addWidget(self.sbx_radiobutton) self.sbx_frame = QtWidgets.QFrame(self.ga_crossover) self.sbx_frame.setMaximumSize(QtCore.QSize(16777215, 40)) self.sbx_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.sbx_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.sbx_frame.setObjectName("sbx_frame") self.horizontalLayout_17 = QtWidgets.QHBoxLayout(self.sbx_frame) self.horizontalLayout_17.setContentsMargins(1, 1, 1, 1) self.horizontalLayout_17.setSpacing(5) self.horizontalLayout_17.setObjectName("horizontalLayout_17") self.sbx_ScrollBar = QtWidgets.QScrollBar(self.sbx_frame) self.sbx_ScrollBar.setMinimum(5) self.sbx_ScrollBar.setMaximum(200) self.sbx_ScrollBar.setSingleStep(1) self.sbx_ScrollBar.setPageStep(10) self.sbx_ScrollBar.setOrientation(QtCore.Qt.Horizontal) self.sbx_ScrollBar.setObjectName("sbx_ScrollBar") self.horizontalLayout_17.addWidget(self.sbx_ScrollBar) self.sbx_spinBox = QtWidgets.QSpinBox(self.sbx_frame) self.sbx_spinBox.setMaximumSize(QtCore.QSize(50, 16777215)) self.sbx_spinBox.setAlignment(QtCore.Qt.AlignCenter) self.sbx_spinBox.setButtonSymbols(QtWidgets.QAbstractSpinBox.NoButtons) self.sbx_spinBox.setMinimum(5) self.sbx_spinBox.setMaximum(200) self.sbx_spinBox.setObjectName("sbx_spinBox") self.horizontalLayout_17.addWidget(self.sbx_spinBox) self.verticalLayout_8.addWidget(self.sbx_frame) self.crossover_rate_frame = QtWidgets.QFrame(self.ga_crossover) self.crossover_rate_frame.setMaximumSize(QtCore.QSize(16777215, 40)) self.crossover_rate_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.crossover_rate_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.crossover_rate_frame.setObjectName("crossover_rate_frame") self.horizontalLayout_18 = QtWidgets.QHBoxLayout(self.crossover_rate_frame) self.horizontalLayout_18.setContentsMargins(1, 1, -1, 1) self.horizontalLayout_18.setSpacing(5) self.horizontalLayout_18.setObjectName("horizontalLayout_18") self.crossover_rate_label = QtWidgets.QLabel(self.crossover_rate_frame) self.crossover_rate_label.setMaximumSize(QtCore.QSize(16777215, 25)) self.crossover_rate_label.setStyleSheet("color: rgb(238, 238, 236);") self.crossover_rate_label.setObjectName("crossover_rate_label") self.horizontalLayout_18.addWidget(self.crossover_rate_label) self.crossover_rate_spinbox = QtWidgets.QDoubleSpinBox(self.crossover_rate_frame) self.crossover_rate_spinbox.setMinimumSize(QtCore.QSize(60, 0)) self.crossover_rate_spinbox.setMaximumSize(QtCore.QSize(60, 100)) self.crossover_rate_spinbox.setAlignment(QtCore.Qt.AlignCenter) self.crossover_rate_spinbox.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus) self.crossover_rate_spinbox.setMaximum(1.0) self.crossover_rate_spinbox.setSingleStep(0.05) self.crossover_rate_spinbox.setProperty("value", 0.7) self.crossover_rate_spinbox.setObjectName("crossover_rate_spinbox") self.horizontalLayout_18.addWidget(self.crossover_rate_spinbox) self.verticalLayout_8.addWidget(self.crossover_rate_frame) self.horizontalLayout_2.addWidget(self.ga_crossover) self.ga_mutation = QtWidgets.QGroupBox(self.ga_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.ga_mutation.sizePolicy().hasHeightForWidth()) self.ga_mutation.setSizePolicy(sizePolicy) self.ga_mutation.setMinimumSize(QtCore.QSize(200, 0)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.ga_mutation.setPalette(palette) self.ga_mutation.setObjectName("ga_mutation") self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.ga_mutation) self.verticalLayout_9.setObjectName("verticalLayout_9") self.fixed_mutation_radiobutton = QtWidgets.QRadioButton(self.ga_mutation) self.fixed_mutation_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.fixed_mutation_radiobutton.setChecked(True) self.fixed_mutation_radiobutton.setObjectName("fixed_mutation_radiobutton") self.verticalLayout_9.addWidget(self.fixed_mutation_radiobutton) self.dyn_mutation_radiobutton = QtWidgets.QRadioButton(self.ga_mutation) self.dyn_mutation_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.dyn_mutation_radiobutton.setObjectName("dyn_mutation_radiobutton") self.verticalLayout_9.addWidget(self.dyn_mutation_radiobutton) self.mutation_rate_frame = QtWidgets.QFrame(self.ga_mutation) self.mutation_rate_frame.setMaximumSize(QtCore.QSize(16777215, 40)) self.mutation_rate_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.mutation_rate_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.mutation_rate_frame.setObjectName("mutation_rate_frame") self.horizontalLayout_19 = QtWidgets.QHBoxLayout(self.mutation_rate_frame) self.horizontalLayout_19.setContentsMargins(1, 1, -1, 1) self.horizontalLayout_19.setSpacing(5) self.horizontalLayout_19.setObjectName("horizontalLayout_19") self.mutation_rate_label = QtWidgets.QLabel(self.mutation_rate_frame) self.mutation_rate_label.setMaximumSize(QtCore.QSize(16777215, 25)) self.mutation_rate_label.setStyleSheet("color: rgb(238, 238, 236);") self.mutation_rate_label.setObjectName("mutation_rate_label") self.horizontalLayout_19.addWidget(self.mutation_rate_label) self.mutation_rate_SpinBox = QtWidgets.QDoubleSpinBox(self.mutation_rate_frame) self.mutation_rate_SpinBox.setMinimumSize(QtCore.QSize(60, 0)) self.mutation_rate_SpinBox.setMaximumSize(QtCore.QSize(60, 100)) self.mutation_rate_SpinBox.setAlignment(QtCore.Qt.AlignCenter) self.mutation_rate_SpinBox.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus) self.mutation_rate_SpinBox.setMaximum(1.0) self.mutation_rate_SpinBox.setSingleStep(0.05) self.mutation_rate_SpinBox.setProperty("value", 0.1) self.mutation_rate_SpinBox.setObjectName("mutation_rate_SpinBox") self.horizontalLayout_19.addWidget(self.mutation_rate_SpinBox) self.verticalLayout_9.addWidget(self.mutation_rate_frame) self.horizontalLayout_2.addWidget(self.ga_mutation) self.verticalLayout_19.addWidget(self.ga_settings_frame) self.ga_upper_frame = QtWidgets.QFrame(self.ga_tab) self.ga_upper_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.ga_upper_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_upper_frame.setObjectName("ga_upper_frame") self.horizontalLayout = QtWidgets.QHBoxLayout(self.ga_upper_frame) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.ga_frame_lag_0 = QtWidgets.QFrame(self.ga_upper_frame) self.ga_frame_lag_0.setStyleSheet("color: rgb(238, 238, 236);") self.ga_frame_lag_0.setFrameShape(QtWidgets.QFrame.Box) self.ga_frame_lag_0.setFrameShadow(QtWidgets.QFrame.Plain) self.ga_frame_lag_0.setLineWidth(0) self.ga_frame_lag_0.setObjectName("ga_frame_lag_0") self.gridLayout_2 = QtWidgets.QGridLayout(self.ga_frame_lag_0) self.gridLayout_2.setContentsMargins(2, 2, 2, 2) self.gridLayout_2.setSpacing(5) self.gridLayout_2.setObjectName("gridLayout_2") self.label_lag_ga_0 = QtWidgets.QLabel(self.ga_frame_lag_0) self.label_lag_ga_0.setObjectName("label_lag_ga_0") self.gridLayout_2.addWidget(self.label_lag_ga_0, 0, 0, 1, 1) self.start_ga_0 = QtWidgets.QPushButton(self.ga_frame_lag_0) self.start_ga_0.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_ga_0.setObjectName("start_ga_0") self.gridLayout_2.addWidget(self.start_ga_0, 0, 1, 1, 1) self.stop_ga_0 = QtWidgets.QPushButton(self.ga_frame_lag_0) self.stop_ga_0.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_ga_0.setObjectName("stop_ga_0") self.gridLayout_2.addWidget(self.stop_ga_0, 0, 2, 1, 1) self.label_ga_0 = QtWidgets.QLabel(self.ga_frame_lag_0) self.label_ga_0.setStyleSheet("color: rgb(238, 238, 236);") self.label_ga_0.setFrameShape(QtWidgets.QFrame.Box) self.label_ga_0.setFrameShadow(QtWidgets.QFrame.Plain) self.label_ga_0.setLineWidth(1) self.label_ga_0.setAlignment(QtCore.Qt.AlignCenter) self.label_ga_0.setObjectName("label_ga_0") self.gridLayout_2.addWidget(self.label_ga_0, 1, 0, 1, 3) self.horizontalLayout.addWidget(self.ga_frame_lag_0) self.ga_frame_lag_1 = QtWidgets.QFrame(self.ga_upper_frame) self.ga_frame_lag_1.setFrameShape(QtWidgets.QFrame.StyledPanel) self.ga_frame_lag_1.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_frame_lag_1.setObjectName("ga_frame_lag_1") self.gridLayout_5 = QtWidgets.QGridLayout(self.ga_frame_lag_1) self.gridLayout_5.setContentsMargins(2, 2, 2, 2) self.gridLayout_5.setSpacing(5) self.gridLayout_5.setObjectName("gridLayout_5") self.label_lag_ga_1 = QtWidgets.QLabel(self.ga_frame_lag_1) self.label_lag_ga_1.setObjectName("label_lag_ga_1") self.gridLayout_5.addWidget(self.label_lag_ga_1, 0, 0, 1, 1) self.start_ga_1 = QtWidgets.QPushButton(self.ga_frame_lag_1) self.start_ga_1.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_ga_1.setObjectName("start_ga_1") self.gridLayout_5.addWidget(self.start_ga_1, 0, 1, 1, 1) self.stop_ga_1 = QtWidgets.QPushButton(self.ga_frame_lag_1) self.stop_ga_1.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_ga_1.setObjectName("stop_ga_1") self.gridLayout_5.addWidget(self.stop_ga_1, 0, 2, 1, 1) self.label_ga_1 = QtWidgets.QLabel(self.ga_frame_lag_1) self.label_ga_1.setStyleSheet("color: rgb(238, 238, 236);") self.label_ga_1.setFrameShape(QtWidgets.QFrame.Box) self.label_ga_1.setAlignment(QtCore.Qt.AlignCenter) self.label_ga_1.setObjectName("label_ga_1") self.gridLayout_5.addWidget(self.label_ga_1, 1, 0, 1, 3) self.horizontalLayout.addWidget(self.ga_frame_lag_1) self.ga_frame_lag_2 = QtWidgets.QFrame(self.ga_upper_frame) self.ga_frame_lag_2.setFrameShape(QtWidgets.QFrame.StyledPanel) self.ga_frame_lag_2.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_frame_lag_2.setObjectName("ga_frame_lag_2") self.gridLayout_4 = QtWidgets.QGridLayout(self.ga_frame_lag_2) self.gridLayout_4.setContentsMargins(2, 2, 2, 2) self.gridLayout_4.setSpacing(5) self.gridLayout_4.setObjectName("gridLayout_4") self.label_lag_ga_2 = QtWidgets.QLabel(self.ga_frame_lag_2) self.label_lag_ga_2.setObjectName("label_lag_ga_2") self.gridLayout_4.addWidget(self.label_lag_ga_2, 0, 0, 1, 1) self.start_ga_2 = QtWidgets.QPushButton(self.ga_frame_lag_2) self.start_ga_2.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_ga_2.setObjectName("start_ga_2") self.gridLayout_4.addWidget(self.start_ga_2, 0, 1, 1, 1) self.stop_ga_2 = QtWidgets.QPushButton(self.ga_frame_lag_2) self.stop_ga_2.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_ga_2.setObjectName("stop_ga_2") self.gridLayout_4.addWidget(self.stop_ga_2, 0, 2, 1, 1) self.label_ga_2 = QtWidgets.QLabel(self.ga_frame_lag_2) self.label_ga_2.setStyleSheet("color: rgb(238, 238, 236);") self.label_ga_2.setFrameShape(QtWidgets.QFrame.Box) self.label_ga_2.setAlignment(QtCore.Qt.AlignCenter) self.label_ga_2.setObjectName("label_ga_2") self.gridLayout_4.addWidget(self.label_ga_2, 1, 0, 1, 3) self.horizontalLayout.addWidget(self.ga_frame_lag_2) self.ga_frame_lag_3 = QtWidgets.QFrame(self.ga_upper_frame) self.ga_frame_lag_3.setFrameShape(QtWidgets.QFrame.StyledPanel) self.ga_frame_lag_3.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_frame_lag_3.setObjectName("ga_frame_lag_3") self.gridLayout_3 = QtWidgets.QGridLayout(self.ga_frame_lag_3) self.gridLayout_3.setContentsMargins(2, 2, 2, 2) self.gridLayout_3.setSpacing(5) self.gridLayout_3.setObjectName("gridLayout_3") self.label_lag_ga_3 = QtWidgets.QLabel(self.ga_frame_lag_3) self.label_lag_ga_3.setObjectName("label_lag_ga_3") self.gridLayout_3.addWidget(self.label_lag_ga_3, 0, 1, 1, 1) self.start_ga_3 = QtWidgets.QPushButton(self.ga_frame_lag_3) self.start_ga_3.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_ga_3.setObjectName("start_ga_3") self.gridLayout_3.addWidget(self.start_ga_3, 0, 2, 1, 1) self.stop_ga_3 = QtWidgets.QPushButton(self.ga_frame_lag_3) self.stop_ga_3.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_ga_3.setObjectName("stop_ga_3") self.gridLayout_3.addWidget(self.stop_ga_3, 0, 3, 1, 1) self.label_ga_3 = QtWidgets.QLabel(self.ga_frame_lag_3) self.label_ga_3.setStyleSheet("color: rgb(238, 238, 236);") self.label_ga_3.setFrameShape(QtWidgets.QFrame.Box) self.label_ga_3.setAlignment(QtCore.Qt.AlignCenter) self.label_ga_3.setObjectName("label_ga_3") self.gridLayout_3.addWidget(self.label_ga_3, 1, 1, 1, 3) self.horizontalLayout.addWidget(self.ga_frame_lag_3) self.verticalLayout_19.addWidget(self.ga_upper_frame) self.ga_bottom_frame = QtWidgets.QFrame(self.ga_tab) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.ga_bottom_frame.setPalette(palette) self.ga_bottom_frame.setStyleSheet("") self.ga_bottom_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.ga_bottom_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_bottom_frame.setObjectName("ga_bottom_frame") self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.ga_bottom_frame) self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_4.setSpacing(0) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.ga_frame_lag_4 = QtWidgets.QFrame(self.ga_bottom_frame) self.ga_frame_lag_4.setFrameShape(QtWidgets.QFrame.StyledPanel) self.ga_frame_lag_4.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_frame_lag_4.setObjectName("ga_frame_lag_4") self.gridLayout_6 = QtWidgets.QGridLayout(self.ga_frame_lag_4) self.gridLayout_6.setContentsMargins(2, 2, 2, 2) self.gridLayout_6.setSpacing(5) self.gridLayout_6.setObjectName("gridLayout_6") self.label_lag_ga_4 = QtWidgets.QLabel(self.ga_frame_lag_4) self.label_lag_ga_4.setObjectName("label_lag_ga_4") self.gridLayout_6.addWidget(self.label_lag_ga_4, 0, 0, 1, 1) self.start_ga_4 = QtWidgets.QPushButton(self.ga_frame_lag_4) self.start_ga_4.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_ga_4.setObjectName("start_ga_4") self.gridLayout_6.addWidget(self.start_ga_4, 0, 1, 1, 1) self.stop_ga_4 = QtWidgets.QPushButton(self.ga_frame_lag_4) self.stop_ga_4.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_ga_4.setObjectName("stop_ga_4") self.gridLayout_6.addWidget(self.stop_ga_4, 0, 2, 1, 1) self.label_ga_4 = QtWidgets.QLabel(self.ga_frame_lag_4) self.label_ga_4.setStyleSheet("color: rgb(238, 238, 236);") self.label_ga_4.setFrameShape(QtWidgets.QFrame.Box) self.label_ga_4.setAlignment(QtCore.Qt.AlignCenter) self.label_ga_4.setObjectName("label_ga_4") self.gridLayout_6.addWidget(self.label_ga_4, 1, 0, 1, 3) self.horizontalLayout_4.addWidget(self.ga_frame_lag_4) self.ga_frame_lag_5 = QtWidgets.QFrame(self.ga_bottom_frame) self.ga_frame_lag_5.setFrameShape(QtWidgets.QFrame.StyledPanel) self.ga_frame_lag_5.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_frame_lag_5.setObjectName("ga_frame_lag_5") self.gridLayout_7 = QtWidgets.QGridLayout(self.ga_frame_lag_5) self.gridLayout_7.setContentsMargins(2, 2, 2, 2) self.gridLayout_7.setSpacing(5) self.gridLayout_7.setObjectName("gridLayout_7") self.label_lag_ga_5 = QtWidgets.QLabel(self.ga_frame_lag_5) self.label_lag_ga_5.setObjectName("label_lag_ga_5") self.gridLayout_7.addWidget(self.label_lag_ga_5, 0, 0, 1, 1) self.start_ga_5 = QtWidgets.QPushButton(self.ga_frame_lag_5) self.start_ga_5.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_ga_5.setObjectName("start_ga_5") self.gridLayout_7.addWidget(self.start_ga_5, 0, 1, 1, 1) self.stop_ga_5 = QtWidgets.QPushButton(self.ga_frame_lag_5) self.stop_ga_5.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_ga_5.setObjectName("stop_ga_5") self.gridLayout_7.addWidget(self.stop_ga_5, 0, 2, 1, 1) self.label_ga_5 = QtWidgets.QLabel(self.ga_frame_lag_5) self.label_ga_5.setStyleSheet("color: rgb(238, 238, 236);") self.label_ga_5.setFrameShape(QtWidgets.QFrame.Box) self.label_ga_5.setAlignment(QtCore.Qt.AlignCenter) self.label_ga_5.setObjectName("label_ga_5") self.gridLayout_7.addWidget(self.label_ga_5, 1, 0, 1, 3) self.horizontalLayout_4.addWidget(self.ga_frame_lag_5) self.ga_frame_lag_6 = QtWidgets.QFrame(self.ga_bottom_frame) self.ga_frame_lag_6.setFrameShape(QtWidgets.QFrame.StyledPanel) self.ga_frame_lag_6.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_frame_lag_6.setObjectName("ga_frame_lag_6") self.gridLayout_8 = QtWidgets.QGridLayout(self.ga_frame_lag_6) self.gridLayout_8.setContentsMargins(2, 2, 2, 2) self.gridLayout_8.setSpacing(5) self.gridLayout_8.setObjectName("gridLayout_8") self.label_lag_ga_6 = QtWidgets.QLabel(self.ga_frame_lag_6) self.label_lag_ga_6.setObjectName("label_lag_ga_6") self.gridLayout_8.addWidget(self.label_lag_ga_6, 0, 0, 1, 1) self.start_ga_6 = QtWidgets.QPushButton(self.ga_frame_lag_6) self.start_ga_6.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_ga_6.setObjectName("start_ga_6") self.gridLayout_8.addWidget(self.start_ga_6, 0, 1, 1, 1) self.stop_ga_6 = QtWidgets.QPushButton(self.ga_frame_lag_6) self.stop_ga_6.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_ga_6.setObjectName("stop_ga_6") self.gridLayout_8.addWidget(self.stop_ga_6, 0, 2, 1, 1) self.label_ga_6 = QtWidgets.QLabel(self.ga_frame_lag_6) self.label_ga_6.setStyleSheet("color: rgb(238, 238, 236);") self.label_ga_6.setFrameShape(QtWidgets.QFrame.Box) self.label_ga_6.setAlignment(QtCore.Qt.AlignCenter) self.label_ga_6.setObjectName("label_ga_6") self.gridLayout_8.addWidget(self.label_ga_6, 1, 0, 1, 3) self.horizontalLayout_4.addWidget(self.ga_frame_lag_6) self.ga_frame_lag_7 = QtWidgets.QFrame(self.ga_bottom_frame) self.ga_frame_lag_7.setFrameShape(QtWidgets.QFrame.StyledPanel) self.ga_frame_lag_7.setFrameShadow(QtWidgets.QFrame.Raised) self.ga_frame_lag_7.setObjectName("ga_frame_lag_7") self.gridLayout_9 = QtWidgets.QGridLayout(self.ga_frame_lag_7) self.gridLayout_9.setContentsMargins(2, 2, 2, 2) self.gridLayout_9.setSpacing(5) self.gridLayout_9.setObjectName("gridLayout_9") self.label_lag_ga_7 = QtWidgets.QLabel(self.ga_frame_lag_7) self.label_lag_ga_7.setObjectName("label_lag_ga_7") self.gridLayout_9.addWidget(self.label_lag_ga_7, 0, 0, 1, 1) self.start_ga_7 = QtWidgets.QPushButton(self.ga_frame_lag_7) self.start_ga_7.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_ga_7.setObjectName("start_ga_7") self.gridLayout_9.addWidget(self.start_ga_7, 0, 1, 1, 1) self.stop_ga_7 = QtWidgets.QPushButton(self.ga_frame_lag_7) self.stop_ga_7.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_ga_7.setObjectName("stop_ga_7") self.gridLayout_9.addWidget(self.stop_ga_7, 0, 2, 1, 1) self.label_ga_7 = QtWidgets.QLabel(self.ga_frame_lag_7) self.label_ga_7.setStyleSheet("color: rgb(238, 238, 236);") self.label_ga_7.setFrameShape(QtWidgets.QFrame.Box) self.label_ga_7.setAlignment(QtCore.Qt.AlignCenter) self.label_ga_7.setObjectName("label_ga_7") self.gridLayout_9.addWidget(self.label_ga_7, 1, 0, 1, 3) self.horizontalLayout_4.addWidget(self.ga_frame_lag_7) self.verticalLayout_19.addWidget(self.ga_bottom_frame) self.tabWidget.addTab(self.ga_tab, "") self.de_tab = QtWidgets.QWidget() self.de_tab.setObjectName("de_tab") self.verticalLayout_20 = QtWidgets.QVBoxLayout(self.de_tab) self.verticalLayout_20.setObjectName("verticalLayout_20") self.de_settings_frame = QtWidgets.QFrame(self.de_tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.de_settings_frame.sizePolicy().hasHeightForWidth()) self.de_settings_frame.setSizePolicy(sizePolicy) self.de_settings_frame.setMaximumSize(QtCore.QSize(16777215, 230)) self.de_settings_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.de_settings_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.de_settings_frame.setObjectName("de_settings_frame") self.horizontalLayout_13 = QtWidgets.QHBoxLayout(self.de_settings_frame) self.horizontalLayout_13.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.horizontalLayout_13.setContentsMargins(9, 9, 9, 9) self.horizontalLayout_13.setSpacing(9) self.horizontalLayout_13.setObjectName("horizontalLayout_13") self.de_settings = QtWidgets.QGroupBox(self.de_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.de_settings.sizePolicy().hasHeightForWidth()) self.de_settings.setSizePolicy(sizePolicy) self.de_settings.setMinimumSize(QtCore.QSize(200, 0)) self.de_settings.setMaximumSize(QtCore.QSize(600, 16777215)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.de_settings.setPalette(palette) self.de_settings.setObjectName("de_settings") self.verticalLayout_42 = QtWidgets.QVBoxLayout(self.de_settings) self.verticalLayout_42.setContentsMargins(0, 0, 0, 0) self.verticalLayout_42.setSpacing(0) self.verticalLayout_42.setObjectName("verticalLayout_42") self.de_settings_1 = QtWidgets.QFrame(self.de_settings) self.de_settings_1.setMinimumSize(QtCore.QSize(200, 0)) self.de_settings_1.setFrameShape(QtWidgets.QFrame.NoFrame) self.de_settings_1.setFrameShadow(QtWidgets.QFrame.Raised) self.de_settings_1.setObjectName("de_settings_1") self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.de_settings_1) self.horizontalLayout_14.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_14.setSpacing(0) self.horizontalLayout_14.setObjectName("horizontalLayout_14") self.de_settings_labels_frame = QtWidgets.QFrame(self.de_settings_1) self.de_settings_labels_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.de_settings_labels_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.de_settings_labels_frame.setObjectName("de_settings_labels_frame") self.verticalLayout_43 = QtWidgets.QVBoxLayout(self.de_settings_labels_frame) self.verticalLayout_43.setContentsMargins(0, 0, 0, 0) self.verticalLayout_43.setSpacing(0) self.verticalLayout_43.setObjectName("verticalLayout_43") self.de_population_label = QtWidgets.QLabel(self.de_settings_labels_frame) self.de_population_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.de_population_label.setStyleSheet("color: rgb(238, 238, 236);") self.de_population_label.setObjectName("de_population_label") self.verticalLayout_43.addWidget(self.de_population_label) self.de_generations_label = QtWidgets.QLabel(self.de_settings_labels_frame) self.de_generations_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.de_generations_label.setStyleSheet("color: rgb(238, 238, 236);") self.de_generations_label.setObjectName("de_generations_label") self.verticalLayout_43.addWidget(self.de_generations_label) self.de_executions_label = QtWidgets.QLabel(self.de_settings_labels_frame) self.de_executions_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.de_executions_label.setStyleSheet("color: rgb(238, 238, 236);") self.de_executions_label.setObjectName("de_executions_label") self.verticalLayout_43.addWidget(self.de_executions_label) self.horizontalLayout_14.addWidget(self.de_settings_labels_frame) self.de_settings_fields_frame = QtWidgets.QFrame(self.de_settings_1) self.de_settings_fields_frame.setMinimumSize(QtCore.QSize(70, 0)) self.de_settings_fields_frame.setMaximumSize(QtCore.QSize(100, 16777215)) self.de_settings_fields_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.de_settings_fields_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.de_settings_fields_frame.setObjectName("de_settings_fields_frame") self.verticalLayout_44 = QtWidgets.QVBoxLayout(self.de_settings_fields_frame) self.verticalLayout_44.setContentsMargins(0, 0, 0, 0) self.verticalLayout_44.setSpacing(0) self.verticalLayout_44.setObjectName("verticalLayout_44") self.de_population_field = QtWidgets.QLineEdit(self.de_settings_fields_frame) self.de_population_field.setMinimumSize(QtCore.QSize(0, 0)) self.de_population_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.de_population_field.setObjectName("de_population_field") self.verticalLayout_44.addWidget(self.de_population_field) self.de_gerations_field = QtWidgets.QLineEdit(self.de_settings_fields_frame) self.de_gerations_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.de_gerations_field.setObjectName("de_gerations_field") self.verticalLayout_44.addWidget(self.de_gerations_field) self.de_executions_field = QtWidgets.QLineEdit(self.de_settings_fields_frame) self.de_executions_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.de_executions_field.setObjectName("de_executions_field") self.verticalLayout_44.addWidget(self.de_executions_field) self.horizontalLayout_14.addWidget(self.de_settings_fields_frame) self.verticalLayout_42.addWidget(self.de_settings_1) self.horizontalLayout_13.addWidget(self.de_settings) self.de_selection = QtWidgets.QGroupBox(self.de_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.de_selection.sizePolicy().hasHeightForWidth()) self.de_selection.setSizePolicy(sizePolicy) self.de_selection.setMinimumSize(QtCore.QSize(200, 0)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.de_selection.setPalette(palette) self.de_selection.setObjectName("de_selection") self.verticalLayout_46 = QtWidgets.QVBoxLayout(self.de_selection) self.verticalLayout_46.setObjectName("verticalLayout_46") self.greedy_radiobutton = QtWidgets.QRadioButton(self.de_selection) self.greedy_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.greedy_radiobutton.setChecked(True) self.greedy_radiobutton.setObjectName("greedy_radiobutton") self.verticalLayout_46.addWidget(self.greedy_radiobutton) self.number_f_frame = QtWidgets.QFrame(self.de_selection) self.number_f_frame.setMaximumSize(QtCore.QSize(16777215, 40)) self.number_f_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.number_f_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.number_f_frame.setObjectName("number_f_frame") self.horizontalLayout_42 = QtWidgets.QHBoxLayout(self.number_f_frame) self.horizontalLayout_42.setContentsMargins(-1, 1, 1, 1) self.horizontalLayout_42.setSpacing(5) self.horizontalLayout_42.setObjectName("horizontalLayout_42") self.number_f_label = QtWidgets.QLabel(self.number_f_frame) self.number_f_label.setMaximumSize(QtCore.QSize(16777215, 25)) self.number_f_label.setStyleSheet("color: rgb(238, 238, 236);") self.number_f_label.setObjectName("number_f_label") self.horizontalLayout_42.addWidget(self.number_f_label) self.number_f_spinbox = QtWidgets.QDoubleSpinBox(self.number_f_frame) self.number_f_spinbox.setMinimumSize(QtCore.QSize(60, 0)) self.number_f_spinbox.setMaximumSize(QtCore.QSize(60, 100)) self.number_f_spinbox.setAlignment(QtCore.Qt.AlignCenter) self.number_f_spinbox.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus) self.number_f_spinbox.setDecimals(1) self.number_f_spinbox.setMaximum(2.0) self.number_f_spinbox.setSingleStep(0.1) self.number_f_spinbox.setProperty("value", 0.2) self.number_f_spinbox.setObjectName("number_f_spinbox") self.horizontalLayout_42.addWidget(self.number_f_spinbox) self.verticalLayout_46.addWidget(self.number_f_frame) self.horizontalLayout_13.addWidget(self.de_selection) self.de_cost = QtWidgets.QGroupBox(self.de_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.de_cost.sizePolicy().hasHeightForWidth()) self.de_cost.setSizePolicy(sizePolicy) self.de_cost.setObjectName("de_cost") self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.de_cost) self.verticalLayout_14.setObjectName("verticalLayout_14") self.de_mse_radiobutton = QtWidgets.QRadioButton(self.de_cost) self.de_mse_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.de_mse_radiobutton.setChecked(True) self.de_mse_radiobutton.setObjectName("de_mse_radiobutton") self.verticalLayout_14.addWidget(self.de_mse_radiobutton) self.de_ae_radiobutton = QtWidgets.QRadioButton(self.de_cost) self.de_ae_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.de_ae_radiobutton.setObjectName("de_ae_radiobutton") self.verticalLayout_14.addWidget(self.de_ae_radiobutton) self.horizontalLayout_13.addWidget(self.de_cost) self.de_crossover = QtWidgets.QGroupBox(self.de_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.de_crossover.sizePolicy().hasHeightForWidth()) self.de_crossover.setSizePolicy(sizePolicy) self.de_crossover.setMinimumSize(QtCore.QSize(210, 0)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.de_crossover.setPalette(palette) self.de_crossover.setObjectName("de_crossover") self.verticalLayout_47 = QtWidgets.QVBoxLayout(self.de_crossover) self.verticalLayout_47.setObjectName("verticalLayout_47") self.exponential_radiobutton = QtWidgets.QRadioButton(self.de_crossover) self.exponential_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.exponential_radiobutton.setChecked(True) self.exponential_radiobutton.setObjectName("exponential_radiobutton") self.verticalLayout_47.addWidget(self.exponential_radiobutton) self.binary_radiobutton = QtWidgets.QRadioButton(self.de_crossover) self.binary_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.binary_radiobutton.setObjectName("binary_radiobutton") self.verticalLayout_47.addWidget(self.binary_radiobutton) self.crossover_rate_frame_2 = QtWidgets.QFrame(self.de_crossover) self.crossover_rate_frame_2.setMaximumSize(QtCore.QSize(16777215, 40)) self.crossover_rate_frame_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.crossover_rate_frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.crossover_rate_frame_2.setObjectName("crossover_rate_frame_2") self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.crossover_rate_frame_2) self.horizontalLayout_12.setContentsMargins(1, 1, 1, 1) self.horizontalLayout_12.setSpacing(5) self.horizontalLayout_12.setObjectName("horizontalLayout_12") self.crossover_rate_label_2 = QtWidgets.QLabel(self.crossover_rate_frame_2) self.crossover_rate_label_2.setMaximumSize(QtCore.QSize(16777215, 25)) self.crossover_rate_label_2.setStyleSheet("color: rgb(238, 238, 236);") self.crossover_rate_label_2.setObjectName("crossover_rate_label_2") self.horizontalLayout_12.addWidget(self.crossover_rate_label_2) self.crossover_rate_spinbox_2 = QtWidgets.QDoubleSpinBox(self.crossover_rate_frame_2) self.crossover_rate_spinbox_2.setMinimumSize(QtCore.QSize(60, 0)) self.crossover_rate_spinbox_2.setMaximumSize(QtCore.QSize(60, 100)) self.crossover_rate_spinbox_2.setAlignment(QtCore.Qt.AlignCenter) self.crossover_rate_spinbox_2.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus) self.crossover_rate_spinbox_2.setMaximum(1.0) self.crossover_rate_spinbox_2.setSingleStep(0.05) self.crossover_rate_spinbox_2.setProperty("value", 0.2) self.crossover_rate_spinbox_2.setObjectName("crossover_rate_spinbox_2") self.horizontalLayout_12.addWidget(self.crossover_rate_spinbox_2) self.verticalLayout_47.addWidget(self.crossover_rate_frame_2) self.horizontalLayout_13.addWidget(self.de_crossover) self.de_mutation = QtWidgets.QGroupBox(self.de_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.de_mutation.sizePolicy().hasHeightForWidth()) self.de_mutation.setSizePolicy(sizePolicy) self.de_mutation.setMinimumSize(QtCore.QSize(200, 0)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.de_mutation.setPalette(palette) self.de_mutation.setObjectName("de_mutation") self.verticalLayout_48 = QtWidgets.QVBoxLayout(self.de_mutation) self.verticalLayout_48.setObjectName("verticalLayout_48") self.rand_radiobutton = QtWidgets.QRadioButton(self.de_mutation) self.rand_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.rand_radiobutton.setChecked(True) self.rand_radiobutton.setObjectName("rand_radiobutton") self.verticalLayout_48.addWidget(self.rand_radiobutton) self.rand2dp_radiobutton = QtWidgets.QRadioButton(self.de_mutation) self.rand2dp_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.rand2dp_radiobutton.setObjectName("rand2dp_radiobutton") self.verticalLayout_48.addWidget(self.rand2dp_radiobutton) self.best_radiobutton = QtWidgets.QRadioButton(self.de_mutation) self.best_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.best_radiobutton.setObjectName("best_radiobutton") self.verticalLayout_48.addWidget(self.best_radiobutton) self.best2dp_radiobutton = QtWidgets.QRadioButton(self.de_mutation) self.best2dp_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.best2dp_radiobutton.setObjectName("best2dp_radiobutton") self.verticalLayout_48.addWidget(self.best2dp_radiobutton) self.target_to_best_radiobutton = QtWidgets.QRadioButton(self.de_mutation) self.target_to_best_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.target_to_best_radiobutton.setObjectName("target_to_best_radiobutton") self.verticalLayout_48.addWidget(self.target_to_best_radiobutton) self.mutation_rate_frame_2 = QtWidgets.QFrame(self.de_mutation) self.mutation_rate_frame_2.setMaximumSize(QtCore.QSize(16777215, 40)) self.mutation_rate_frame_2.setFrameShape(QtWidgets.QFrame.NoFrame) self.mutation_rate_frame_2.setFrameShadow(QtWidgets.QFrame.Raised) self.mutation_rate_frame_2.setObjectName("mutation_rate_frame_2") self.horizontalLayout_15 = QtWidgets.QHBoxLayout(self.mutation_rate_frame_2) self.horizontalLayout_15.setContentsMargins(1, 1, 1, 1) self.horizontalLayout_15.setSpacing(5) self.horizontalLayout_15.setObjectName("horizontalLayout_15") self.mutation_rate_label_2 = QtWidgets.QLabel(self.mutation_rate_frame_2) self.mutation_rate_label_2.setMaximumSize(QtCore.QSize(16777215, 25)) self.mutation_rate_label_2.setStyleSheet("color: rgb(238, 238, 236);") self.mutation_rate_label_2.setObjectName("mutation_rate_label_2") self.horizontalLayout_15.addWidget(self.mutation_rate_label_2) self.mutation_rate_spinbox = QtWidgets.QDoubleSpinBox(self.mutation_rate_frame_2) self.mutation_rate_spinbox.setMinimumSize(QtCore.QSize(60, 0)) self.mutation_rate_spinbox.setMaximumSize(QtCore.QSize(60, 100)) self.mutation_rate_spinbox.setAlignment(QtCore.Qt.AlignCenter) self.mutation_rate_spinbox.setButtonSymbols(QtWidgets.QAbstractSpinBox.PlusMinus) self.mutation_rate_spinbox.setMaximum(1.0) self.mutation_rate_spinbox.setSingleStep(0.05) self.mutation_rate_spinbox.setProperty("value", 0.2) self.mutation_rate_spinbox.setObjectName("mutation_rate_spinbox") self.horizontalLayout_15.addWidget(self.mutation_rate_spinbox) self.verticalLayout_48.addWidget(self.mutation_rate_frame_2) self.horizontalLayout_13.addWidget(self.de_mutation) self.verticalLayout_20.addWidget(self.de_settings_frame) self.de_upper_frame = QtWidgets.QFrame(self.de_tab) self.de_upper_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_upper_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.de_upper_frame.setObjectName("de_upper_frame") self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.de_upper_frame) self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_5.setSpacing(0) self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.de_frame_lag_0 = QtWidgets.QFrame(self.de_upper_frame) self.de_frame_lag_0.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_frame_lag_0.setFrameShadow(QtWidgets.QFrame.Raised) self.de_frame_lag_0.setObjectName("de_frame_lag_0") self.gridLayout_10 = QtWidgets.QGridLayout(self.de_frame_lag_0) self.gridLayout_10.setContentsMargins(2, 2, 2, 2) self.gridLayout_10.setSpacing(5) self.gridLayout_10.setObjectName("gridLayout_10") self.label_lag_de_0 = QtWidgets.QLabel(self.de_frame_lag_0) self.label_lag_de_0.setObjectName("label_lag_de_0") self.gridLayout_10.addWidget(self.label_lag_de_0, 0, 0, 1, 1) self.start_de_0 = QtWidgets.QPushButton(self.de_frame_lag_0) self.start_de_0.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_de_0.setObjectName("start_de_0") self.gridLayout_10.addWidget(self.start_de_0, 0, 1, 1, 1) self.stop_de_0 = QtWidgets.QPushButton(self.de_frame_lag_0) self.stop_de_0.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_de_0.setObjectName("stop_de_0") self.gridLayout_10.addWidget(self.stop_de_0, 0, 2, 1, 1) self.label_de_0 = QtWidgets.QLabel(self.de_frame_lag_0) self.label_de_0.setStyleSheet("color: rgb(238, 238, 236);") self.label_de_0.setFrameShape(QtWidgets.QFrame.Box) self.label_de_0.setAlignment(QtCore.Qt.AlignCenter) self.label_de_0.setObjectName("label_de_0") self.gridLayout_10.addWidget(self.label_de_0, 1, 0, 1, 3) self.horizontalLayout_5.addWidget(self.de_frame_lag_0) self.de_frame_lag_1 = QtWidgets.QFrame(self.de_upper_frame) self.de_frame_lag_1.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_frame_lag_1.setFrameShadow(QtWidgets.QFrame.Raised) self.de_frame_lag_1.setObjectName("de_frame_lag_1") self.gridLayout_11 = QtWidgets.QGridLayout(self.de_frame_lag_1) self.gridLayout_11.setContentsMargins(2, 2, 2, 2) self.gridLayout_11.setSpacing(5) self.gridLayout_11.setObjectName("gridLayout_11") self.label_lag_de_1 = QtWidgets.QLabel(self.de_frame_lag_1) self.label_lag_de_1.setObjectName("label_lag_de_1") self.gridLayout_11.addWidget(self.label_lag_de_1, 0, 0, 1, 1) self.start_de_1 = QtWidgets.QPushButton(self.de_frame_lag_1) self.start_de_1.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_de_1.setObjectName("start_de_1") self.gridLayout_11.addWidget(self.start_de_1, 0, 1, 1, 1) self.stop_de_1 = QtWidgets.QPushButton(self.de_frame_lag_1) self.stop_de_1.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_de_1.setObjectName("stop_de_1") self.gridLayout_11.addWidget(self.stop_de_1, 0, 2, 1, 1) self.label_de_1 = QtWidgets.QLabel(self.de_frame_lag_1) self.label_de_1.setStyleSheet("color: rgb(238, 238, 236);") self.label_de_1.setFrameShape(QtWidgets.QFrame.Box) self.label_de_1.setAlignment(QtCore.Qt.AlignCenter) self.label_de_1.setObjectName("label_de_1") self.gridLayout_11.addWidget(self.label_de_1, 1, 0, 1, 3) self.horizontalLayout_5.addWidget(self.de_frame_lag_1) self.de_frame_lag_2 = QtWidgets.QFrame(self.de_upper_frame) self.de_frame_lag_2.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_frame_lag_2.setFrameShadow(QtWidgets.QFrame.Raised) self.de_frame_lag_2.setObjectName("de_frame_lag_2") self.gridLayout_12 = QtWidgets.QGridLayout(self.de_frame_lag_2) self.gridLayout_12.setContentsMargins(2, 2, 2, 2) self.gridLayout_12.setSpacing(5) self.gridLayout_12.setObjectName("gridLayout_12") self.label_lag_de_2 = QtWidgets.QLabel(self.de_frame_lag_2) self.label_lag_de_2.setObjectName("label_lag_de_2") self.gridLayout_12.addWidget(self.label_lag_de_2, 0, 0, 1, 1) self.start_de_2 = QtWidgets.QPushButton(self.de_frame_lag_2) self.start_de_2.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_de_2.setObjectName("start_de_2") self.gridLayout_12.addWidget(self.start_de_2, 0, 1, 1, 1) self.stop_de_2 = QtWidgets.QPushButton(self.de_frame_lag_2) self.stop_de_2.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_de_2.setObjectName("stop_de_2") self.gridLayout_12.addWidget(self.stop_de_2, 0, 2, 1, 1) self.label_de_2 = QtWidgets.QLabel(self.de_frame_lag_2) self.label_de_2.setStyleSheet("color: rgb(238, 238, 236);") self.label_de_2.setFrameShape(QtWidgets.QFrame.Box) self.label_de_2.setAlignment(QtCore.Qt.AlignCenter) self.label_de_2.setObjectName("label_de_2") self.gridLayout_12.addWidget(self.label_de_2, 1, 0, 1, 3) self.horizontalLayout_5.addWidget(self.de_frame_lag_2) self.de_frame_lag_3 = QtWidgets.QFrame(self.de_upper_frame) self.de_frame_lag_3.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_frame_lag_3.setFrameShadow(QtWidgets.QFrame.Raised) self.de_frame_lag_3.setObjectName("de_frame_lag_3") self.gridLayout_13 = QtWidgets.QGridLayout(self.de_frame_lag_3) self.gridLayout_13.setContentsMargins(2, 2, 2, 2) self.gridLayout_13.setSpacing(5) self.gridLayout_13.setObjectName("gridLayout_13") self.label_lag_de_3 = QtWidgets.QLabel(self.de_frame_lag_3) self.label_lag_de_3.setObjectName("label_lag_de_3") self.gridLayout_13.addWidget(self.label_lag_de_3, 0, 0, 1, 1) self.start_de_3 = QtWidgets.QPushButton(self.de_frame_lag_3) self.start_de_3.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_de_3.setObjectName("start_de_3") self.gridLayout_13.addWidget(self.start_de_3, 0, 1, 1, 1) self.stop_de_3 = QtWidgets.QPushButton(self.de_frame_lag_3) self.stop_de_3.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_de_3.setObjectName("stop_de_3") self.gridLayout_13.addWidget(self.stop_de_3, 0, 2, 1, 1) self.label_de_3 = QtWidgets.QLabel(self.de_frame_lag_3) self.label_de_3.setStyleSheet("color: rgb(238, 238, 236);") self.label_de_3.setFrameShape(QtWidgets.QFrame.Box) self.label_de_3.setAlignment(QtCore.Qt.AlignCenter) self.label_de_3.setObjectName("label_de_3") self.gridLayout_13.addWidget(self.label_de_3, 1, 0, 1, 3) self.horizontalLayout_5.addWidget(self.de_frame_lag_3) self.verticalLayout_20.addWidget(self.de_upper_frame) self.de_bottom_frame = QtWidgets.QFrame(self.de_tab) self.de_bottom_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_bottom_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.de_bottom_frame.setObjectName("de_bottom_frame") self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.de_bottom_frame) self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_6.setSpacing(0) self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.de_frame_lag_4 = QtWidgets.QFrame(self.de_bottom_frame) self.de_frame_lag_4.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_frame_lag_4.setFrameShadow(QtWidgets.QFrame.Raised) self.de_frame_lag_4.setObjectName("de_frame_lag_4") self.gridLayout_14 = QtWidgets.QGridLayout(self.de_frame_lag_4) self.gridLayout_14.setContentsMargins(2, 2, 2, 2) self.gridLayout_14.setSpacing(5) self.gridLayout_14.setObjectName("gridLayout_14") self.label_lag_de_4 = QtWidgets.QLabel(self.de_frame_lag_4) self.label_lag_de_4.setObjectName("label_lag_de_4") self.gridLayout_14.addWidget(self.label_lag_de_4, 0, 0, 1, 1) self.start_de_4 = QtWidgets.QPushButton(self.de_frame_lag_4) self.start_de_4.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_de_4.setObjectName("start_de_4") self.gridLayout_14.addWidget(self.start_de_4, 0, 1, 1, 1) self.stop_de_4 = QtWidgets.QPushButton(self.de_frame_lag_4) self.stop_de_4.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_de_4.setObjectName("stop_de_4") self.gridLayout_14.addWidget(self.stop_de_4, 0, 2, 1, 1) self.label_de_4 = QtWidgets.QLabel(self.de_frame_lag_4) self.label_de_4.setStyleSheet("color: rgb(238, 238, 236);") self.label_de_4.setFrameShape(QtWidgets.QFrame.Box) self.label_de_4.setAlignment(QtCore.Qt.AlignCenter) self.label_de_4.setObjectName("label_de_4") self.gridLayout_14.addWidget(self.label_de_4, 1, 0, 1, 3) self.horizontalLayout_6.addWidget(self.de_frame_lag_4) self.de_frame_lag_5 = QtWidgets.QFrame(self.de_bottom_frame) self.de_frame_lag_5.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_frame_lag_5.setFrameShadow(QtWidgets.QFrame.Raised) self.de_frame_lag_5.setObjectName("de_frame_lag_5") self.gridLayout_15 = QtWidgets.QGridLayout(self.de_frame_lag_5) self.gridLayout_15.setContentsMargins(2, 2, 2, 2) self.gridLayout_15.setSpacing(5) self.gridLayout_15.setObjectName("gridLayout_15") self.label_lag_de_5 = QtWidgets.QLabel(self.de_frame_lag_5) self.label_lag_de_5.setObjectName("label_lag_de_5") self.gridLayout_15.addWidget(self.label_lag_de_5, 0, 0, 1, 1) self.start_de_5 = QtWidgets.QPushButton(self.de_frame_lag_5) self.start_de_5.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_de_5.setObjectName("start_de_5") self.gridLayout_15.addWidget(self.start_de_5, 0, 1, 1, 1) self.stop_de_5 = QtWidgets.QPushButton(self.de_frame_lag_5) self.stop_de_5.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_de_5.setObjectName("stop_de_5") self.gridLayout_15.addWidget(self.stop_de_5, 0, 2, 1, 1) self.label_de_5 = QtWidgets.QLabel(self.de_frame_lag_5) self.label_de_5.setStyleSheet("color: rgb(238, 238, 236);") self.label_de_5.setFrameShape(QtWidgets.QFrame.Box) self.label_de_5.setAlignment(QtCore.Qt.AlignCenter) self.label_de_5.setObjectName("label_de_5") self.gridLayout_15.addWidget(self.label_de_5, 1, 0, 1, 3) self.horizontalLayout_6.addWidget(self.de_frame_lag_5) self.de_frame_lag_6 = QtWidgets.QFrame(self.de_bottom_frame) self.de_frame_lag_6.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_frame_lag_6.setFrameShadow(QtWidgets.QFrame.Raised) self.de_frame_lag_6.setObjectName("de_frame_lag_6") self.gridLayout_16 = QtWidgets.QGridLayout(self.de_frame_lag_6) self.gridLayout_16.setContentsMargins(2, 2, 2, 2) self.gridLayout_16.setSpacing(5) self.gridLayout_16.setObjectName("gridLayout_16") self.label_lag_de_6 = QtWidgets.QLabel(self.de_frame_lag_6) self.label_lag_de_6.setObjectName("label_lag_de_6") self.gridLayout_16.addWidget(self.label_lag_de_6, 0, 0, 1, 1) self.start_de_6 = QtWidgets.QPushButton(self.de_frame_lag_6) self.start_de_6.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_de_6.setObjectName("start_de_6") self.gridLayout_16.addWidget(self.start_de_6, 0, 1, 1, 1) self.stop_de_6 = QtWidgets.QPushButton(self.de_frame_lag_6) self.stop_de_6.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_de_6.setObjectName("stop_de_6") self.gridLayout_16.addWidget(self.stop_de_6, 0, 2, 1, 1) self.label_de_6 = QtWidgets.QLabel(self.de_frame_lag_6) self.label_de_6.setStyleSheet("color: rgb(238, 238, 236);") self.label_de_6.setFrameShape(QtWidgets.QFrame.Box) self.label_de_6.setAlignment(QtCore.Qt.AlignCenter) self.label_de_6.setObjectName("label_de_6") self.gridLayout_16.addWidget(self.label_de_6, 1, 0, 1, 3) self.horizontalLayout_6.addWidget(self.de_frame_lag_6) self.de_frame_lag_7 = QtWidgets.QFrame(self.de_bottom_frame) self.de_frame_lag_7.setFrameShape(QtWidgets.QFrame.StyledPanel) self.de_frame_lag_7.setFrameShadow(QtWidgets.QFrame.Raised) self.de_frame_lag_7.setObjectName("de_frame_lag_7") self.gridLayout_17 = QtWidgets.QGridLayout(self.de_frame_lag_7) self.gridLayout_17.setContentsMargins(2, 2, 2, 2) self.gridLayout_17.setSpacing(5) self.gridLayout_17.setObjectName("gridLayout_17") self.label_lag_de_7 = QtWidgets.QLabel(self.de_frame_lag_7) self.label_lag_de_7.setObjectName("label_lag_de_7") self.gridLayout_17.addWidget(self.label_lag_de_7, 0, 0, 1, 1) self.start_de_7 = QtWidgets.QPushButton(self.de_frame_lag_7) self.start_de_7.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_de_7.setObjectName("start_de_7") self.gridLayout_17.addWidget(self.start_de_7, 0, 1, 1, 1) self.stop_de_7 = QtWidgets.QPushButton(self.de_frame_lag_7) self.stop_de_7.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_de_7.setObjectName("stop_de_7") self.gridLayout_17.addWidget(self.stop_de_7, 0, 2, 1, 1) self.label_de_7 = QtWidgets.QLabel(self.de_frame_lag_7) self.label_de_7.setStyleSheet("color: rgb(238, 238, 236);") self.label_de_7.setFrameShape(QtWidgets.QFrame.Box) self.label_de_7.setAlignment(QtCore.Qt.AlignCenter) self.label_de_7.setObjectName("label_de_7") self.gridLayout_17.addWidget(self.label_de_7, 1, 0, 1, 3) self.horizontalLayout_6.addWidget(self.de_frame_lag_7) self.verticalLayout_20.addWidget(self.de_bottom_frame) self.tabWidget.addTab(self.de_tab, "") self.pso_tab = QtWidgets.QWidget() self.pso_tab.setObjectName("pso_tab") self.verticalLayout_21 = QtWidgets.QVBoxLayout(self.pso_tab) self.verticalLayout_21.setObjectName("verticalLayout_21") self.pso_settings_frame = QtWidgets.QFrame(self.pso_tab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pso_settings_frame.sizePolicy().hasHeightForWidth()) self.pso_settings_frame.setSizePolicy(sizePolicy) self.pso_settings_frame.setMaximumSize(QtCore.QSize(16777215, 230)) self.pso_settings_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.pso_settings_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_settings_frame.setObjectName("pso_settings_frame") self.horizontalLayout_20 = QtWidgets.QHBoxLayout(self.pso_settings_frame) self.horizontalLayout_20.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint) self.horizontalLayout_20.setContentsMargins(9, 9, 9, 9) self.horizontalLayout_20.setSpacing(9) self.horizontalLayout_20.setObjectName("horizontalLayout_20") self.pso_settings = QtWidgets.QGroupBox(self.pso_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pso_settings.sizePolicy().hasHeightForWidth()) self.pso_settings.setSizePolicy(sizePolicy) self.pso_settings.setMinimumSize(QtCore.QSize(200, 0)) self.pso_settings.setMaximumSize(QtCore.QSize(600, 16777215)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.pso_settings.setPalette(palette) self.pso_settings.setObjectName("pso_settings") self.verticalLayout_66 = QtWidgets.QVBoxLayout(self.pso_settings) self.verticalLayout_66.setContentsMargins(0, 0, 0, -1) self.verticalLayout_66.setSpacing(0) self.verticalLayout_66.setObjectName("verticalLayout_66") self.pso_settings_1 = QtWidgets.QFrame(self.pso_settings) self.pso_settings_1.setFrameShape(QtWidgets.QFrame.NoFrame) self.pso_settings_1.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_settings_1.setObjectName("pso_settings_1") self.horizontalLayout_21 = QtWidgets.QHBoxLayout(self.pso_settings_1) self.horizontalLayout_21.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_21.setSpacing(0) self.horizontalLayout_21.setObjectName("horizontalLayout_21") self.pso_settings_labels_frame = QtWidgets.QFrame(self.pso_settings_1) self.pso_settings_labels_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.pso_settings_labels_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_settings_labels_frame.setObjectName("pso_settings_labels_frame") self.verticalLayout_67 = QtWidgets.QVBoxLayout(self.pso_settings_labels_frame) self.verticalLayout_67.setContentsMargins(0, 0, 0, 0) self.verticalLayout_67.setSpacing(0) self.verticalLayout_67.setObjectName("verticalLayout_67") self.pso_particle_label = QtWidgets.QLabel(self.pso_settings_labels_frame) self.pso_particle_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.pso_particle_label.setStyleSheet("color: rgb(238, 238, 236);") self.pso_particle_label.setObjectName("pso_particle_label") self.verticalLayout_67.addWidget(self.pso_particle_label) self.pso_iterations_label = QtWidgets.QLabel(self.pso_settings_labels_frame) self.pso_iterations_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.pso_iterations_label.setStyleSheet("color: rgb(238, 238, 236);") self.pso_iterations_label.setObjectName("pso_iterations_label") self.verticalLayout_67.addWidget(self.pso_iterations_label) self.pso_executions_label = QtWidgets.QLabel(self.pso_settings_labels_frame) self.pso_executions_label.setLayoutDirection(QtCore.Qt.LeftToRight) self.pso_executions_label.setStyleSheet("color: rgb(238, 238, 236);") self.pso_executions_label.setObjectName("pso_executions_label") self.verticalLayout_67.addWidget(self.pso_executions_label) self.horizontalLayout_21.addWidget(self.pso_settings_labels_frame) self.pso_settings_fields_frame = QtWidgets.QFrame(self.pso_settings_1) self.pso_settings_fields_frame.setMinimumSize(QtCore.QSize(70, 0)) self.pso_settings_fields_frame.setMaximumSize(QtCore.QSize(100, 16777215)) self.pso_settings_fields_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.pso_settings_fields_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_settings_fields_frame.setObjectName("pso_settings_fields_frame") self.verticalLayout_68 = QtWidgets.QVBoxLayout(self.pso_settings_fields_frame) self.verticalLayout_68.setContentsMargins(0, 0, 0, 0) self.verticalLayout_68.setSpacing(0) self.verticalLayout_68.setObjectName("verticalLayout_68") self.pso_particle_field = QtWidgets.QLineEdit(self.pso_settings_fields_frame) self.pso_particle_field.setMinimumSize(QtCore.QSize(0, 0)) self.pso_particle_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.pso_particle_field.setObjectName("pso_particle_field") self.verticalLayout_68.addWidget(self.pso_particle_field) self.pso_iteration_field = QtWidgets.QLineEdit(self.pso_settings_fields_frame) self.pso_iteration_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.pso_iteration_field.setObjectName("pso_iteration_field") self.verticalLayout_68.addWidget(self.pso_iteration_field) self.pso_executions_field = QtWidgets.QLineEdit(self.pso_settings_fields_frame) self.pso_executions_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.pso_executions_field.setObjectName("pso_executions_field") self.verticalLayout_68.addWidget(self.pso_executions_field) self.horizontalLayout_21.addWidget(self.pso_settings_fields_frame) self.verticalLayout_66.addWidget(self.pso_settings_1) self.horizontalLayout_20.addWidget(self.pso_settings) self.pso_velocity = QtWidgets.QGroupBox(self.pso_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pso_velocity.sizePolicy().hasHeightForWidth()) self.pso_velocity.setSizePolicy(sizePolicy) self.pso_velocity.setMinimumSize(QtCore.QSize(100, 0)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.pso_velocity.setPalette(palette) self.pso_velocity.setObjectName("pso_velocity") self.verticalLayout_70 = QtWidgets.QVBoxLayout(self.pso_velocity) self.verticalLayout_70.setObjectName("verticalLayout_70") self.pso_classic_radiobutton = QtWidgets.QRadioButton(self.pso_velocity) self.pso_classic_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.pso_classic_radiobutton.setChecked(True) self.pso_classic_radiobutton.setObjectName("pso_classic_radiobutton") self.verticalLayout_70.addWidget(self.pso_classic_radiobutton) self.pso_canonica_radiobutton = QtWidgets.QRadioButton(self.pso_velocity) self.pso_canonica_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.pso_canonica_radiobutton.setObjectName("pso_canonica_radiobutton") self.verticalLayout_70.addWidget(self.pso_canonica_radiobutton) self.horizontalLayout_20.addWidget(self.pso_velocity) self.pso_cost = QtWidgets.QGroupBox(self.pso_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pso_cost.sizePolicy().hasHeightForWidth()) self.pso_cost.setSizePolicy(sizePolicy) self.pso_cost.setObjectName("pso_cost") self.verticalLayout_15 = QtWidgets.QVBoxLayout(self.pso_cost) self.verticalLayout_15.setObjectName("verticalLayout_15") self.pso_mse_radiobutton = QtWidgets.QRadioButton(self.pso_cost) self.pso_mse_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.pso_mse_radiobutton.setChecked(True) self.pso_mse_radiobutton.setObjectName("pso_mse_radiobutton") self.verticalLayout_15.addWidget(self.pso_mse_radiobutton) self.pso_ae_radiobutton = QtWidgets.QRadioButton(self.pso_cost) self.pso_ae_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.pso_ae_radiobutton.setObjectName("pso_ae_radiobutton") self.verticalLayout_15.addWidget(self.pso_ae_radiobutton) self.horizontalLayout_20.addWidget(self.pso_cost) self.pso_inertial = QtWidgets.QGroupBox(self.pso_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pso_inertial.sizePolicy().hasHeightForWidth()) self.pso_inertial.setSizePolicy(sizePolicy) self.pso_inertial.setMinimumSize(QtCore.QSize(210, 0)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.pso_inertial.setPalette(palette) self.pso_inertial.setObjectName("pso_inertial") self.verticalLayout_71 = QtWidgets.QVBoxLayout(self.pso_inertial) self.verticalLayout_71.setObjectName("verticalLayout_71") self.constant_radiobutton = QtWidgets.QRadioButton(self.pso_inertial) self.constant_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.constant_radiobutton.setChecked(True) self.constant_radiobutton.setObjectName("constant_radiobutton") self.verticalLayout_71.addWidget(self.constant_radiobutton) self.linear_fall_radiobutton = QtWidgets.QRadioButton(self.pso_inertial) self.linear_fall_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.linear_fall_radiobutton.setObjectName("linear_fall_radiobutton") self.verticalLayout_71.addWidget(self.linear_fall_radiobutton) self.linear_rise_radiobutton = QtWidgets.QRadioButton(self.pso_inertial) self.linear_rise_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.linear_rise_radiobutton.setObjectName("linear_rise_radiobutton") self.verticalLayout_71.addWidget(self.linear_rise_radiobutton) self.w_frame = QtWidgets.QFrame(self.pso_inertial) self.w_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.w_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.w_frame.setObjectName("w_frame") self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.w_frame) self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_7.setSpacing(0) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.w_label_frame = QtWidgets.QFrame(self.w_frame) self.w_label_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.w_label_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.w_label_frame.setObjectName("w_label_frame") self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.w_label_frame) self.verticalLayout_13.setContentsMargins(9, 9, 9, 9) self.verticalLayout_13.setSpacing(0) self.verticalLayout_13.setObjectName("verticalLayout_13") self.w_label = QtWidgets.QLabel(self.w_label_frame) self.w_label.setMaximumSize(QtCore.QSize(16777215, 25)) self.w_label.setStyleSheet("color: rgb(238, 238, 236);") self.w_label.setObjectName("w_label") self.verticalLayout_13.addWidget(self.w_label) self.horizontalLayout_7.addWidget(self.w_label_frame) self.w_field_frame = QtWidgets.QFrame(self.w_frame) self.w_field_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.w_field_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.w_field_frame.setObjectName("w_field_frame") self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.w_field_frame) self.verticalLayout_12.setContentsMargins(9, 9, 9, 9) self.verticalLayout_12.setSpacing(0) self.verticalLayout_12.setObjectName("verticalLayout_12") self.w_field = QtWidgets.QLineEdit(self.w_field_frame) self.w_field.setMaximumSize(QtCore.QSize(100, 16777215)) self.w_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.w_field.setObjectName("w_field") self.verticalLayout_12.addWidget(self.w_field) self.horizontalLayout_7.addWidget(self.w_field_frame) self.verticalLayout_71.addWidget(self.w_frame) self.horizontalLayout_20.addWidget(self.pso_inertial) self.pso_constants = QtWidgets.QGroupBox(self.pso_settings_frame) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.pso_constants.sizePolicy().hasHeightForWidth()) self.pso_constants.setSizePolicy(sizePolicy) self.pso_constants.setMinimumSize(QtCore.QSize(200, 0)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) brush = QtGui.QBrush(QtGui.QColor(238, 238, 236)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) self.pso_constants.setPalette(palette) self.pso_constants.setObjectName("pso_constants") self.verticalLayout_72 = QtWidgets.QVBoxLayout(self.pso_constants) self.verticalLayout_72.setObjectName("verticalLayout_72") self.normal_radiobutton = QtWidgets.QRadioButton(self.pso_constants) self.normal_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.normal_radiobutton.setChecked(True) self.normal_radiobutton.setObjectName("normal_radiobutton") self.verticalLayout_72.addWidget(self.normal_radiobutton) self.pso_constants_frame = QtWidgets.QFrame(self.pso_constants) self.pso_constants_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.pso_constants_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_constants_frame.setObjectName("pso_constants_frame") self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.pso_constants_frame) self.horizontalLayout_10.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_10.setSpacing(0) self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.constants_label_frame = QtWidgets.QFrame(self.pso_constants_frame) self.constants_label_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.constants_label_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.constants_label_frame.setObjectName("constants_label_frame") self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.constants_label_frame) self.verticalLayout_11.setObjectName("verticalLayout_11") self.c1_label = QtWidgets.QLabel(self.constants_label_frame) self.c1_label.setMaximumSize(QtCore.QSize(16777215, 25)) self.c1_label.setStyleSheet("color: rgb(238, 238, 236);") self.c1_label.setObjectName("c1_label") self.verticalLayout_11.addWidget(self.c1_label) self.c2_label = QtWidgets.QLabel(self.constants_label_frame) self.c2_label.setMaximumSize(QtCore.QSize(16777215, 25)) self.c2_label.setStyleSheet("color: rgb(238, 238, 236);") self.c2_label.setObjectName("c2_label") self.verticalLayout_11.addWidget(self.c2_label) self.horizontalLayout_10.addWidget(self.constants_label_frame) self.constants_field_frame = QtWidgets.QFrame(self.pso_constants_frame) self.constants_field_frame.setFrameShape(QtWidgets.QFrame.NoFrame) self.constants_field_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.constants_field_frame.setObjectName("constants_field_frame") self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.constants_field_frame) self.verticalLayout_10.setObjectName("verticalLayout_10") self.c1_field = QtWidgets.QLineEdit(self.constants_field_frame) self.c1_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.c1_field.setObjectName("c1_field") self.verticalLayout_10.addWidget(self.c1_field) self.c2_field = QtWidgets.QLineEdit(self.constants_field_frame) self.c2_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 1px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.c2_field.setObjectName("c2_field") self.verticalLayout_10.addWidget(self.c2_field) self.horizontalLayout_10.addWidget(self.constants_field_frame) self.verticalLayout_72.addWidget(self.pso_constants_frame) self.dynamic_mutation_radiobutton = QtWidgets.QRadioButton(self.pso_constants) self.dynamic_mutation_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.dynamic_mutation_radiobutton.setObjectName("dynamic_mutation_radiobutton") self.verticalLayout_72.addWidget(self.dynamic_mutation_radiobutton) self.horizontalLayout_20.addWidget(self.pso_constants) self.verticalLayout_21.addWidget(self.pso_settings_frame) self.pso_upper_frame = QtWidgets.QFrame(self.pso_tab) self.pso_upper_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_upper_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_upper_frame.setObjectName("pso_upper_frame") self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.pso_upper_frame) self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_8.setSpacing(0) self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.pso_frame_lag_0 = QtWidgets.QFrame(self.pso_upper_frame) self.pso_frame_lag_0.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_frame_lag_0.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_frame_lag_0.setObjectName("pso_frame_lag_0") self.gridLayout_18 = QtWidgets.QGridLayout(self.pso_frame_lag_0) self.gridLayout_18.setContentsMargins(2, 2, 2, 2) self.gridLayout_18.setSpacing(5) self.gridLayout_18.setObjectName("gridLayout_18") self.label_lag_pso_0 = QtWidgets.QLabel(self.pso_frame_lag_0) self.label_lag_pso_0.setObjectName("label_lag_pso_0") self.gridLayout_18.addWidget(self.label_lag_pso_0, 0, 0, 1, 1) self.start_pso_0 = QtWidgets.QPushButton(self.pso_frame_lag_0) self.start_pso_0.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_pso_0.setObjectName("start_pso_0") self.gridLayout_18.addWidget(self.start_pso_0, 0, 1, 1, 1) self.stop_pso_0 = QtWidgets.QPushButton(self.pso_frame_lag_0) self.stop_pso_0.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_pso_0.setObjectName("stop_pso_0") self.gridLayout_18.addWidget(self.stop_pso_0, 0, 2, 1, 1) self.label_pso_0 = QtWidgets.QLabel(self.pso_frame_lag_0) self.label_pso_0.setStyleSheet("color: rgb(238, 238, 236);") self.label_pso_0.setFrameShape(QtWidgets.QFrame.Box) self.label_pso_0.setAlignment(QtCore.Qt.AlignCenter) self.label_pso_0.setObjectName("label_pso_0") self.gridLayout_18.addWidget(self.label_pso_0, 1, 0, 1, 3) self.horizontalLayout_8.addWidget(self.pso_frame_lag_0) self.pso_frame_lag_1 = QtWidgets.QFrame(self.pso_upper_frame) self.pso_frame_lag_1.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_frame_lag_1.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_frame_lag_1.setObjectName("pso_frame_lag_1") self.gridLayout_19 = QtWidgets.QGridLayout(self.pso_frame_lag_1) self.gridLayout_19.setContentsMargins(2, 2, 2, 2) self.gridLayout_19.setSpacing(5) self.gridLayout_19.setObjectName("gridLayout_19") self.label_lag_pso_1 = QtWidgets.QLabel(self.pso_frame_lag_1) self.label_lag_pso_1.setObjectName("label_lag_pso_1") self.gridLayout_19.addWidget(self.label_lag_pso_1, 0, 0, 1, 1) self.start_pso_1 = QtWidgets.QPushButton(self.pso_frame_lag_1) self.start_pso_1.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_pso_1.setObjectName("start_pso_1") self.gridLayout_19.addWidget(self.start_pso_1, 0, 1, 1, 1) self.stop_pso_1 = QtWidgets.QPushButton(self.pso_frame_lag_1) self.stop_pso_1.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_pso_1.setObjectName("stop_pso_1") self.gridLayout_19.addWidget(self.stop_pso_1, 0, 2, 1, 1) self.label_pso_1 = QtWidgets.QLabel(self.pso_frame_lag_1) self.label_pso_1.setStyleSheet("color: rgb(238, 238, 236);") self.label_pso_1.setFrameShape(QtWidgets.QFrame.Box) self.label_pso_1.setAlignment(QtCore.Qt.AlignCenter) self.label_pso_1.setObjectName("label_pso_1") self.gridLayout_19.addWidget(self.label_pso_1, 1, 0, 1, 3) self.horizontalLayout_8.addWidget(self.pso_frame_lag_1) self.pso_frame_lag_2 = QtWidgets.QFrame(self.pso_upper_frame) self.pso_frame_lag_2.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_frame_lag_2.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_frame_lag_2.setObjectName("pso_frame_lag_2") self.gridLayout_20 = QtWidgets.QGridLayout(self.pso_frame_lag_2) self.gridLayout_20.setContentsMargins(2, 2, 2, 2) self.gridLayout_20.setSpacing(5) self.gridLayout_20.setObjectName("gridLayout_20") self.label_lag_pso_2 = QtWidgets.QLabel(self.pso_frame_lag_2) self.label_lag_pso_2.setObjectName("label_lag_pso_2") self.gridLayout_20.addWidget(self.label_lag_pso_2, 0, 0, 1, 1) self.start_pso_2 = QtWidgets.QPushButton(self.pso_frame_lag_2) self.start_pso_2.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_pso_2.setObjectName("start_pso_2") self.gridLayout_20.addWidget(self.start_pso_2, 0, 1, 1, 1) self.stop_pso_2 = QtWidgets.QPushButton(self.pso_frame_lag_2) self.stop_pso_2.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_pso_2.setObjectName("stop_pso_2") self.gridLayout_20.addWidget(self.stop_pso_2, 0, 2, 1, 1) self.label_pso_2 = QtWidgets.QLabel(self.pso_frame_lag_2) self.label_pso_2.setStyleSheet("color: rgb(238, 238, 236);") self.label_pso_2.setFrameShape(QtWidgets.QFrame.Box) self.label_pso_2.setAlignment(QtCore.Qt.AlignCenter) self.label_pso_2.setObjectName("label_pso_2") self.gridLayout_20.addWidget(self.label_pso_2, 1, 0, 1, 3) self.horizontalLayout_8.addWidget(self.pso_frame_lag_2) self.pso_frame_lag_3 = QtWidgets.QFrame(self.pso_upper_frame) self.pso_frame_lag_3.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_frame_lag_3.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_frame_lag_3.setObjectName("pso_frame_lag_3") self.gridLayout_21 = QtWidgets.QGridLayout(self.pso_frame_lag_3) self.gridLayout_21.setContentsMargins(2, 2, 2, 2) self.gridLayout_21.setSpacing(5) self.gridLayout_21.setObjectName("gridLayout_21") self.label_lag_pso_3 = QtWidgets.QLabel(self.pso_frame_lag_3) self.label_lag_pso_3.setObjectName("label_lag_pso_3") self.gridLayout_21.addWidget(self.label_lag_pso_3, 0, 0, 1, 1) self.start_pso_3 = QtWidgets.QPushButton(self.pso_frame_lag_3) self.start_pso_3.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_pso_3.setObjectName("start_pso_3") self.gridLayout_21.addWidget(self.start_pso_3, 0, 1, 1, 1) self.stop_pso_3 = QtWidgets.QPushButton(self.pso_frame_lag_3) self.stop_pso_3.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_pso_3.setObjectName("stop_pso_3") self.gridLayout_21.addWidget(self.stop_pso_3, 0, 2, 1, 1) self.label_pso_3 = QtWidgets.QLabel(self.pso_frame_lag_3) self.label_pso_3.setStyleSheet("color: rgb(238, 238, 236);") self.label_pso_3.setFrameShape(QtWidgets.QFrame.Box) self.label_pso_3.setAlignment(QtCore.Qt.AlignCenter) self.label_pso_3.setObjectName("label_pso_3") self.gridLayout_21.addWidget(self.label_pso_3, 1, 0, 1, 3) self.horizontalLayout_8.addWidget(self.pso_frame_lag_3) self.verticalLayout_21.addWidget(self.pso_upper_frame) self.pso_bottom_frame = QtWidgets.QFrame(self.pso_tab) self.pso_bottom_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_bottom_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_bottom_frame.setObjectName("pso_bottom_frame") self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.pso_bottom_frame) self.horizontalLayout_9.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_9.setSpacing(0) self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.pso_frame_lag_4 = QtWidgets.QFrame(self.pso_bottom_frame) self.pso_frame_lag_4.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_frame_lag_4.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_frame_lag_4.setObjectName("pso_frame_lag_4") self.gridLayout_22 = QtWidgets.QGridLayout(self.pso_frame_lag_4) self.gridLayout_22.setContentsMargins(2, 2, 2, 2) self.gridLayout_22.setSpacing(5) self.gridLayout_22.setObjectName("gridLayout_22") self.label_lag_pso_4 = QtWidgets.QLabel(self.pso_frame_lag_4) self.label_lag_pso_4.setObjectName("label_lag_pso_4") self.gridLayout_22.addWidget(self.label_lag_pso_4, 0, 0, 1, 1) self.start_pso_4 = QtWidgets.QPushButton(self.pso_frame_lag_4) self.start_pso_4.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_pso_4.setObjectName("start_pso_4") self.gridLayout_22.addWidget(self.start_pso_4, 0, 1, 1, 1) self.stop_pso_4 = QtWidgets.QPushButton(self.pso_frame_lag_4) self.stop_pso_4.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_pso_4.setObjectName("stop_pso_4") self.gridLayout_22.addWidget(self.stop_pso_4, 0, 2, 1, 1) self.label_pso_4 = QtWidgets.QLabel(self.pso_frame_lag_4) self.label_pso_4.setStyleSheet("color: rgb(238, 238, 236);") self.label_pso_4.setFrameShape(QtWidgets.QFrame.Box) self.label_pso_4.setAlignment(QtCore.Qt.AlignCenter) self.label_pso_4.setObjectName("label_pso_4") self.gridLayout_22.addWidget(self.label_pso_4, 1, 0, 1, 3) self.horizontalLayout_9.addWidget(self.pso_frame_lag_4) self.pso_frame_lag_5 = QtWidgets.QFrame(self.pso_bottom_frame) self.pso_frame_lag_5.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_frame_lag_5.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_frame_lag_5.setObjectName("pso_frame_lag_5") self.gridLayout_23 = QtWidgets.QGridLayout(self.pso_frame_lag_5) self.gridLayout_23.setContentsMargins(2, 2, 2, 2) self.gridLayout_23.setSpacing(5) self.gridLayout_23.setObjectName("gridLayout_23") self.label_lag_pso_5 = QtWidgets.QLabel(self.pso_frame_lag_5) self.label_lag_pso_5.setObjectName("label_lag_pso_5") self.gridLayout_23.addWidget(self.label_lag_pso_5, 0, 0, 1, 1) self.start_pso_5 = QtWidgets.QPushButton(self.pso_frame_lag_5) self.start_pso_5.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_pso_5.setObjectName("start_pso_5") self.gridLayout_23.addWidget(self.start_pso_5, 0, 1, 1, 1) self.stop_pso_5 = QtWidgets.QPushButton(self.pso_frame_lag_5) self.stop_pso_5.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_pso_5.setObjectName("stop_pso_5") self.gridLayout_23.addWidget(self.stop_pso_5, 0, 2, 1, 1) self.label_pso_5 = QtWidgets.QLabel(self.pso_frame_lag_5) self.label_pso_5.setStyleSheet("color: rgb(238, 238, 236);") self.label_pso_5.setFrameShape(QtWidgets.QFrame.Box) self.label_pso_5.setAlignment(QtCore.Qt.AlignCenter) self.label_pso_5.setObjectName("label_pso_5") self.gridLayout_23.addWidget(self.label_pso_5, 1, 0, 1, 3) self.horizontalLayout_9.addWidget(self.pso_frame_lag_5) self.pso_frame_lag_6 = QtWidgets.QFrame(self.pso_bottom_frame) self.pso_frame_lag_6.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_frame_lag_6.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_frame_lag_6.setObjectName("pso_frame_lag_6") self.gridLayout_24 = QtWidgets.QGridLayout(self.pso_frame_lag_6) self.gridLayout_24.setContentsMargins(2, 2, 2, 2) self.gridLayout_24.setSpacing(5) self.gridLayout_24.setObjectName("gridLayout_24") self.label_lag_pso_6 = QtWidgets.QLabel(self.pso_frame_lag_6) self.label_lag_pso_6.setObjectName("label_lag_pso_6") self.gridLayout_24.addWidget(self.label_lag_pso_6, 0, 0, 1, 1) self.start_pso_6 = QtWidgets.QPushButton(self.pso_frame_lag_6) self.start_pso_6.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_pso_6.setObjectName("start_pso_6") self.gridLayout_24.addWidget(self.start_pso_6, 0, 1, 1, 1) self.stop_pso_6 = QtWidgets.QPushButton(self.pso_frame_lag_6) self.stop_pso_6.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_pso_6.setObjectName("stop_pso_6") self.gridLayout_24.addWidget(self.stop_pso_6, 0, 2, 1, 1) self.label_pso_6 = QtWidgets.QLabel(self.pso_frame_lag_6) self.label_pso_6.setStyleSheet("color: rgb(238, 238, 236);") self.label_pso_6.setFrameShape(QtWidgets.QFrame.Box) self.label_pso_6.setAlignment(QtCore.Qt.AlignCenter) self.label_pso_6.setObjectName("label_pso_6") self.gridLayout_24.addWidget(self.label_pso_6, 1, 0, 1, 3) self.horizontalLayout_9.addWidget(self.pso_frame_lag_6) self.pso_frame_lag_7 = QtWidgets.QFrame(self.pso_bottom_frame) self.pso_frame_lag_7.setFrameShape(QtWidgets.QFrame.StyledPanel) self.pso_frame_lag_7.setFrameShadow(QtWidgets.QFrame.Raised) self.pso_frame_lag_7.setObjectName("pso_frame_lag_7") self.gridLayout_25 = QtWidgets.QGridLayout(self.pso_frame_lag_7) self.gridLayout_25.setContentsMargins(2, 2, 2, 2) self.gridLayout_25.setSpacing(5) self.gridLayout_25.setObjectName("gridLayout_25") self.label_lag_pso_7 = QtWidgets.QLabel(self.pso_frame_lag_7) self.label_lag_pso_7.setObjectName("label_lag_pso_7") self.gridLayout_25.addWidget(self.label_lag_pso_7, 0, 0, 1, 1) self.start_pso_7 = QtWidgets.QPushButton(self.pso_frame_lag_7) self.start_pso_7.setStyleSheet("background-color: rgb(138, 226, 52);\n" "color: rgb(0, 0, 0);") self.start_pso_7.setObjectName("start_pso_7") self.gridLayout_25.addWidget(self.start_pso_7, 0, 1, 1, 1) self.stop_pso_7 = QtWidgets.QPushButton(self.pso_frame_lag_7) self.stop_pso_7.setStyleSheet("background-color: rgb(239, 41, 41);\n" "color: rgb(0, 0, 0);") self.stop_pso_7.setObjectName("stop_pso_7") self.gridLayout_25.addWidget(self.stop_pso_7, 0, 2, 1, 1) self.label_pso_7 = QtWidgets.QLabel(self.pso_frame_lag_7) self.label_pso_7.setStyleSheet("color: rgb(238, 238, 236);") self.label_pso_7.setFrameShape(QtWidgets.QFrame.Box) self.label_pso_7.setAlignment(QtCore.Qt.AlignCenter) self.label_pso_7.setObjectName("label_pso_7") self.gridLayout_25.addWidget(self.label_pso_7, 1, 0, 1, 3) self.horizontalLayout_9.addWidget(self.pso_frame_lag_7) self.verticalLayout_21.addWidget(self.pso_bottom_frame) self.tabWidget.addTab(self.pso_tab, "") self.results_tab = QtWidgets.QWidget() self.results_tab.setObjectName("results_tab") self.gridLayout_26 = QtWidgets.QGridLayout(self.results_tab) self.gridLayout_26.setContentsMargins(0, 0, 0, 0) self.gridLayout_26.setSpacing(5) self.gridLayout_26.setObjectName("gridLayout_26") self.graph_file_field = QtWidgets.QLineEdit(self.results_tab) self.graph_file_field.setStyleSheet("QLineEdit {\n" " border: 2px solid rgb(45, 45, 45);\n" " border-radius: 5px;\n" " padding: 2px;\n" " background-color: rgb(255, 255, 255);\n" " color: rgb(0, 0, 0);\n" "}") self.graph_file_field.setObjectName("graph_file_field") self.gridLayout_26.addWidget(self.graph_file_field, 1, 0, 1, 1) self.process_open_button = QtWidgets.QPushButton(self.results_tab) self.process_open_button.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.process_open_button.setObjectName("process_open_button") self.gridLayout_26.addWidget(self.process_open_button, 1, 1, 1, 1) self.graph_frame = QtWidgets.QFrame(self.results_tab) self.graph_frame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.graph_frame.setFrameShadow(QtWidgets.QFrame.Raised) self.graph_frame.setObjectName("graph_frame") self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.graph_frame) self.horizontalLayout_11.setObjectName("horizontalLayout_11") self.graph_groupbox = QtWidgets.QGroupBox(self.graph_frame) self.graph_groupbox.setObjectName("graph_groupbox") self.verticalLayout_17 = QtWidgets.QVBoxLayout(self.graph_groupbox) self.verticalLayout_17.setObjectName("verticalLayout_17") self.database_radiobutton = QtWidgets.QRadioButton(self.graph_groupbox) self.database_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.database_radiobutton.setChecked(True) self.database_radiobutton.setObjectName("database_radiobutton") self.verticalLayout_17.addWidget(self.database_radiobutton) self.rxp_test_radiobutton = QtWidgets.QRadioButton(self.graph_groupbox) self.rxp_test_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.rxp_test_radiobutton.setChecked(False) self.rxp_test_radiobutton.setObjectName("rxp_test_radiobutton") self.verticalLayout_17.addWidget(self.rxp_test_radiobutton) self.rxp_training_radiobutton = QtWidgets.QRadioButton(self.graph_groupbox) self.rxp_training_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.rxp_training_radiobutton.setObjectName("rxp_training_radiobutton") self.verticalLayout_17.addWidget(self.rxp_training_radiobutton) self.gb_fitness_radiobutton = QtWidgets.QRadioButton(self.graph_groupbox) self.gb_fitness_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.gb_fitness_radiobutton.setObjectName("gb_fitness_radiobutton") self.verticalLayout_17.addWidget(self.gb_fitness_radiobutton) self.gb_cost_radiobutton = QtWidgets.QRadioButton(self.graph_groupbox) self.gb_cost_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.gb_cost_radiobutton.setObjectName("gb_cost_radiobutton") self.verticalLayout_17.addWidget(self.gb_cost_radiobutton) self.boxplot_fitness_radiobutton = QtWidgets.QRadioButton(self.graph_groupbox) self.boxplot_fitness_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.boxplot_fitness_radiobutton.setObjectName("boxplot_fitness_radiobutton") self.verticalLayout_17.addWidget(self.boxplot_fitness_radiobutton) self.boxplot_cost_radiobutton = QtWidgets.QRadioButton(self.graph_groupbox) self.boxplot_cost_radiobutton.setStyleSheet("QRadioButton::indicator {\n" " width: 10px;\n" " height: 10px;\n" " border-radius: 7px;\n" "}\n" "\n" "QRadioButton::indicator:checked {\n" " background-color: black;\n" " border: 2px solid white;\n" "}\n" "\n" "QRadioButton::indicator:unchecked {\n" " background-color: white;\n" " border: 2px solid white;\n" "}") self.boxplot_cost_radiobutton.setObjectName("boxplot_cost_radiobutton") self.verticalLayout_17.addWidget(self.boxplot_cost_radiobutton) self.plot_graph_button = QtWidgets.QPushButton(self.graph_groupbox) self.plot_graph_button.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.plot_graph_button.setObjectName("plot_graph_button") self.verticalLayout_17.addWidget(self.plot_graph_button) self.horizontalLayout_11.addWidget(self.graph_groupbox) self.tableresults_groupbox = QtWidgets.QGroupBox(self.graph_frame) self.tableresults_groupbox.setObjectName("tableresults_groupbox") self.gridLayout_28 = QtWidgets.QGridLayout(self.tableresults_groupbox) self.gridLayout_28.setObjectName("gridLayout_28") self.lag2_label = QtWidgets.QLabel(self.tableresults_groupbox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lag2_label.sizePolicy().hasHeightForWidth()) self.lag2_label.setSizePolicy(sizePolicy) self.lag2_label.setObjectName("lag2_label") self.gridLayout_28.addWidget(self.lag2_label, 4, 0, 1, 1) self.copy_lag1_pushbutton = QtWidgets.QPushButton(self.tableresults_groupbox) self.copy_lag1_pushbutton.setMaximumSize(QtCore.QSize(100, 16777215)) self.copy_lag1_pushbutton.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.copy_lag1_pushbutton.setObjectName("copy_lag1_pushbutton") self.gridLayout_28.addWidget(self.copy_lag1_pushbutton, 3, 0, 1, 1) self.lag1_label = QtWidgets.QLabel(self.tableresults_groupbox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lag1_label.sizePolicy().hasHeightForWidth()) self.lag1_label.setSizePolicy(sizePolicy) self.lag1_label.setObjectName("lag1_label") self.gridLayout_28.addWidget(self.lag1_label, 2, 0, 1, 1) self.copy_lag7_pushbutton = QtWidgets.QPushButton(self.tableresults_groupbox) self.copy_lag7_pushbutton.setMaximumSize(QtCore.QSize(100, 16777215)) self.copy_lag7_pushbutton.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.copy_lag7_pushbutton.setObjectName("copy_lag7_pushbutton") self.gridLayout_28.addWidget(self.copy_lag7_pushbutton, 18, 0, 1, 1) self.lag0_label = QtWidgets.QLabel(self.tableresults_groupbox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lag0_label.sizePolicy().hasHeightForWidth()) self.lag0_label.setSizePolicy(sizePolicy) self.lag0_label.setObjectName("lag0_label") self.gridLayout_28.addWidget(self.lag0_label, 0, 0, 1, 1) self.lag4_label = QtWidgets.QLabel(self.tableresults_groupbox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lag4_label.sizePolicy().hasHeightForWidth()) self.lag4_label.setSizePolicy(sizePolicy) self.lag4_label.setObjectName("lag4_label") self.gridLayout_28.addWidget(self.lag4_label, 8, 0, 1, 1) self.copy_lag0_pushbutton = QtWidgets.QPushButton(self.tableresults_groupbox) self.copy_lag0_pushbutton.setMaximumSize(QtCore.QSize(100, 16777215)) self.copy_lag0_pushbutton.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.copy_lag0_pushbutton.setObjectName("copy_lag0_pushbutton") self.gridLayout_28.addWidget(self.copy_lag0_pushbutton, 1, 0, 1, 1) self.lag6_label = QtWidgets.QLabel(self.tableresults_groupbox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lag6_label.sizePolicy().hasHeightForWidth()) self.lag6_label.setSizePolicy(sizePolicy) self.lag6_label.setObjectName("lag6_label") self.gridLayout_28.addWidget(self.lag6_label, 15, 0, 1, 1) self.copy_lag5_pushbutton = QtWidgets.QPushButton(self.tableresults_groupbox) self.copy_lag5_pushbutton.setMaximumSize(QtCore.QSize(100, 16777215)) self.copy_lag5_pushbutton.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.copy_lag5_pushbutton.setObjectName("copy_lag5_pushbutton") self.gridLayout_28.addWidget(self.copy_lag5_pushbutton, 14, 0, 1, 1) self.copy_lag2_pushbutton = QtWidgets.QPushButton(self.tableresults_groupbox) self.copy_lag2_pushbutton.setMaximumSize(QtCore.QSize(100, 16777215)) self.copy_lag2_pushbutton.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.copy_lag2_pushbutton.setObjectName("copy_lag2_pushbutton") self.gridLayout_28.addWidget(self.copy_lag2_pushbutton, 5, 0, 1, 1) self.copy_lag6_pushbutton = QtWidgets.QPushButton(self.tableresults_groupbox) self.copy_lag6_pushbutton.setMaximumSize(QtCore.QSize(100, 16777215)) self.copy_lag6_pushbutton.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.copy_lag6_pushbutton.setObjectName("copy_lag6_pushbutton") self.gridLayout_28.addWidget(self.copy_lag6_pushbutton, 16, 0, 1, 1) self.copy_lag3_pushbutton = QtWidgets.QPushButton(self.tableresults_groupbox) self.copy_lag3_pushbutton.setMaximumSize(QtCore.QSize(100, 16777215)) self.copy_lag3_pushbutton.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.copy_lag3_pushbutton.setObjectName("copy_lag3_pushbutton") self.gridLayout_28.addWidget(self.copy_lag3_pushbutton, 7, 0, 1, 1) self.copy_lag4_pushbutton = QtWidgets.QPushButton(self.tableresults_groupbox) self.copy_lag4_pushbutton.setMaximumSize(QtCore.QSize(100, 16777215)) self.copy_lag4_pushbutton.setStyleSheet("background-color: rgb(238, 238, 236);\n" "color: rgb(0, 0, 0);") self.copy_lag4_pushbutton.setObjectName("copy_lag4_pushbutton") self.gridLayout_28.addWidget(self.copy_lag4_pushbutton, 9, 0, 1, 1) self.lag3_label = QtWidgets.QLabel(self.tableresults_groupbox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lag3_label.sizePolicy().hasHeightForWidth()) self.lag3_label.setSizePolicy(sizePolicy) self.lag3_label.setObjectName("lag3_label") self.gridLayout_28.addWidget(self.lag3_label, 6, 0, 1, 1) self.lag5_label = QtWidgets.QLabel(self.tableresults_groupbox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lag5_label.sizePolicy().hasHeightForWidth()) self.lag5_label.setSizePolicy(sizePolicy) self.lag5_label.setObjectName("lag5_label") self.gridLayout_28.addWidget(self.lag5_label, 10, 0, 1, 1) self.lag7_label = QtWidgets.QLabel(self.tableresults_groupbox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.lag7_label.sizePolicy().hasHeightForWidth()) self.lag7_label.setSizePolicy(sizePolicy) self.lag7_label.setObjectName("lag7_label") self.gridLayout_28.addWidget(self.lag7_label, 17, 0, 1, 1) self.horizontalLayout_11.addWidget(self.tableresults_groupbox) self.gridLayout_26.addWidget(self.graph_frame, 2, 0, 1, 3) self.tabWidget.addTab(self.results_tab, "") self.gridLayout_27.addWidget(self.tabWidget, 0, 0, 1, 1) MainWindow.setCentralWidget(self.central_widget) self.retranslateUi(MainWindow) self.tabWidget.setCurrentIndex(1) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) self.open_file_label.setText(_translate("MainWindow", "File with excel:")) self.open_button.setText(_translate("MainWindow", "Open")) self.dayindex_field.setText(_translate("MainWindow", "0")) self.prediction_field.setText(_translate("MainWindow", "1")) self.number_test_samples_field.setText(_translate("MainWindow", "156")) self.number_test_samples_label.setText(_translate("MainWindow", "Number of test samples:")) self.prediction_label.setText(_translate("MainWindow", "Observed Value Index:")) self.dayindex_label.setText(_translate("MainWindow", "Day Index:")) self.dayoftheweek_field.setText(_translate("MainWindow", "5")) self.dayoftheweek_label.setText(_translate("MainWindow", "Day of the week index:")) self.exec_method_groupbox.setTitle(_translate("MainWindow", "Execution Method Type")) self.exec_method_radiobutton.setText(_translate("MainWindow", "Execution Method")) self.debug_method_radiobutton.setText(_translate("MainWindow", "Debug Method")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.globalsettings_tab), _translate("MainWindow", "Global Settings")) self.ga_settings.setTitle(_translate("MainWindow", "Settings")) self.ga_population_label.setText(_translate("MainWindow", "Population size:")) self.ga_generations_label.setText(_translate("MainWindow", "Number of generations:")) self.ga_executions_label.setText(_translate("MainWindow", "Number of executions:")) self.ga_population_field.setText(_translate("MainWindow", "100")) self.ga_gerations_field.setText(_translate("MainWindow", "2000")) self.ga_executions_field.setText(_translate("MainWindow", "30")) self.ga_selection.setTitle(_translate("MainWindow", "Type of Selection")) self.roulette_radiobutton.setText(_translate("MainWindow", "Roulette")) self.roulette_sus_radiobutton.setText(_translate("MainWindow", "Roulette S.U.S.")) self.single_tournament_radiobutton.setText(_translate("MainWindow", "Single Tournament")) self.death_tournament_radiobutton.setText(_translate("MainWindow", "Death Tournament")) self.local_search_label.setText(_translate("MainWindow", "Local search every:")) self.ga_cost.setTitle(_translate("MainWindow", "Type of Cost")) self.ga_mse_radiobutton.setText(_translate("MainWindow", "MSE")) self.ga_ae_radiobutton.setText(_translate("MainWindow", "AE")) self.ga_crossover.setTitle(_translate("MainWindow", "Type of Crossover")) self.point_radiobutton.setText(_translate("MainWindow", "Point")) self.arithmetic_radiobutton.setText(_translate("MainWindow", "Arithmetic")) self.sbx_radiobutton.setText(_translate("MainWindow", "SBX")) self.crossover_rate_label.setText(_translate("MainWindow", "Crossover rate:")) self.ga_mutation.setTitle(_translate("MainWindow", "Type of Mutation")) self.fixed_mutation_radiobutton.setText(_translate("MainWindow", "Fixed Mutation")) self.dyn_mutation_radiobutton.setText(_translate("MainWindow", "Dynamic Mutation")) self.mutation_rate_label.setText(_translate("MainWindow", "Mutation Rate:")) self.label_lag_ga_0.setText(_translate("MainWindow", "Lag 0")) self.start_ga_0.setText(_translate("MainWindow", "Start")) self.stop_ga_0.setText(_translate("MainWindow", "Stop")) self.label_ga_0.setText(_translate("MainWindow", "available")) self.label_lag_ga_1.setText(_translate("MainWindow", "Lag 1")) self.start_ga_1.setText(_translate("MainWindow", "Start")) self.stop_ga_1.setText(_translate("MainWindow", "Stop")) self.label_ga_1.setText(_translate("MainWindow", "available")) self.label_lag_ga_2.setText(_translate("MainWindow", "Lag 2")) self.start_ga_2.setText(_translate("MainWindow", "Start")) self.stop_ga_2.setText(_translate("MainWindow", "Stop")) self.label_ga_2.setText(_translate("MainWindow", "available")) self.label_lag_ga_3.setText(_translate("MainWindow", "Lag 3")) self.start_ga_3.setText(_translate("MainWindow", "Start")) self.stop_ga_3.setText(_translate("MainWindow", "Stop")) self.label_ga_3.setText(_translate("MainWindow", "available")) self.label_lag_ga_4.setText(_translate("MainWindow", "Lag 4")) self.start_ga_4.setText(_translate("MainWindow", "Start")) self.stop_ga_4.setText(_translate("MainWindow", "Stop")) self.label_ga_4.setText(_translate("MainWindow", "available")) self.label_lag_ga_5.setText(_translate("MainWindow", "Lag 5")) self.start_ga_5.setText(_translate("MainWindow", "Start")) self.stop_ga_5.setText(_translate("MainWindow", "Stop")) self.label_ga_5.setText(_translate("MainWindow", "available")) self.label_lag_ga_6.setText(_translate("MainWindow", "Lag 6")) self.start_ga_6.setText(_translate("MainWindow", "Start")) self.stop_ga_6.setText(_translate("MainWindow", "Stop")) self.label_ga_6.setText(_translate("MainWindow", "available")) self.label_lag_ga_7.setText(_translate("MainWindow", "Lag 7")) self.start_ga_7.setText(_translate("MainWindow", "Start")) self.stop_ga_7.setText(_translate("MainWindow", "Stop")) self.label_ga_7.setText(_translate("MainWindow", "available")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.ga_tab), _translate("MainWindow", "GA")) self.de_settings.setTitle(_translate("MainWindow", "Settings")) self.de_population_label.setText(_translate("MainWindow", "Population size:")) self.de_generations_label.setText(_translate("MainWindow", "Number of generations:")) self.de_executions_label.setText(_translate("MainWindow", "Number of executions:")) self.de_population_field.setText(_translate("MainWindow", "100")) self.de_gerations_field.setText(_translate("MainWindow", "1000")) self.de_executions_field.setText(_translate("MainWindow", "30")) self.de_selection.setTitle(_translate("MainWindow", "Type of Selection")) self.greedy_radiobutton.setText(_translate("MainWindow", "Greedy")) self.number_f_label.setText(_translate("MainWindow", "Number of \"F\":")) self.de_cost.setTitle(_translate("MainWindow", "Type of Cost")) self.de_mse_radiobutton.setText(_translate("MainWindow", "MSE")) self.de_ae_radiobutton.setText(_translate("MainWindow", "AE")) self.de_crossover.setTitle(_translate("MainWindow", "Type of Crossover")) self.exponential_radiobutton.setText(_translate("MainWindow", "Exponential")) self.binary_radiobutton.setText(_translate("MainWindow", "Binary")) self.crossover_rate_label_2.setText(_translate("MainWindow", "Crossover rate:")) self.de_mutation.setTitle(_translate("MainWindow", "Type of Mutation")) self.rand_radiobutton.setText(_translate("MainWindow", "Rand")) self.rand2dp_radiobutton.setText(_translate("MainWindow", "Rand2DP")) self.best_radiobutton.setText(_translate("MainWindow", "Best")) self.best2dp_radiobutton.setText(_translate("MainWindow", "Best2DP")) self.target_to_best_radiobutton.setText(_translate("MainWindow", "Target to best")) self.mutation_rate_label_2.setText(_translate("MainWindow", "Mutation Rate:")) self.label_lag_de_0.setText(_translate("MainWindow", "Lag 0")) self.start_de_0.setText(_translate("MainWindow", "Start")) self.stop_de_0.setText(_translate("MainWindow", "Stop")) self.label_de_0.setText(_translate("MainWindow", "available")) self.label_lag_de_1.setText(_translate("MainWindow", "Lag 1")) self.start_de_1.setText(_translate("MainWindow", "Start")) self.stop_de_1.setText(_translate("MainWindow", "Stop")) self.label_de_1.setText(_translate("MainWindow", "available")) self.label_lag_de_2.setText(_translate("MainWindow", "Lag 2")) self.start_de_2.setText(_translate("MainWindow", "Start")) self.stop_de_2.setText(_translate("MainWindow", "Stop")) self.label_de_2.setText(_translate("MainWindow", "available")) self.label_lag_de_3.setText(_translate("MainWindow", "Lag 3")) self.start_de_3.setText(_translate("MainWindow", "Start")) self.stop_de_3.setText(_translate("MainWindow", "Stop")) self.label_de_3.setText(_translate("MainWindow", "available")) self.label_lag_de_4.setText(_translate("MainWindow", "Lag 4")) self.start_de_4.setText(_translate("MainWindow", "Start")) self.stop_de_4.setText(_translate("MainWindow", "Stop")) self.label_de_4.setText(_translate("MainWindow", "available")) self.label_lag_de_5.setText(_translate("MainWindow", "Lag 5")) self.start_de_5.setText(_translate("MainWindow", "Start")) self.stop_de_5.setText(_translate("MainWindow", "Stop")) self.label_de_5.setText(_translate("MainWindow", "available")) self.label_lag_de_6.setText(_translate("MainWindow", "Lag 6")) self.start_de_6.setText(_translate("MainWindow", "Start")) self.stop_de_6.setText(_translate("MainWindow", "Stop")) self.label_de_6.setText(_translate("MainWindow", "available")) self.label_lag_de_7.setText(_translate("MainWindow", "Lag 7")) self.start_de_7.setText(_translate("MainWindow", "Start")) self.stop_de_7.setText(_translate("MainWindow", "Stop")) self.label_de_7.setText(_translate("MainWindow", "available")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.de_tab), _translate("MainWindow", "DE")) self.pso_settings.setTitle(_translate("MainWindow", "Settings")) self.pso_particle_label.setText(_translate("MainWindow", "Particle number:")) self.pso_iterations_label.setText(_translate("MainWindow", "Number of iterations:")) self.pso_executions_label.setText(_translate("MainWindow", "Number of executions:")) self.pso_particle_field.setText(_translate("MainWindow", "50")) self.pso_iteration_field.setText(_translate("MainWindow", "2000")) self.pso_executions_field.setText(_translate("MainWindow", "30")) self.pso_velocity.setTitle(_translate("MainWindow", "Type of Velocity")) self.pso_classic_radiobutton.setText(_translate("MainWindow", "Classic")) self.pso_canonica_radiobutton.setText(_translate("MainWindow", "Canonica")) self.pso_cost.setTitle(_translate("MainWindow", "Type of Cost")) self.pso_mse_radiobutton.setText(_translate("MainWindow", "MSE")) self.pso_ae_radiobutton.setText(_translate("MainWindow", "AE")) self.pso_inertial.setTitle(_translate("MainWindow", "Type of Inertial")) self.constant_radiobutton.setText(_translate("MainWindow", "Constant")) self.linear_fall_radiobutton.setText(_translate("MainWindow", "Linear Fall")) self.linear_rise_radiobutton.setText(_translate("MainWindow", "Linear Rise")) self.w_label.setText(_translate("MainWindow", "W:")) self.w_field.setText(_translate("MainWindow", "0.8")) self.pso_constants.setTitle(_translate("MainWindow", "Type of Constants")) self.normal_radiobutton.setText(_translate("MainWindow", "Normal")) self.c1_label.setText(_translate("MainWindow", "C1:")) self.c2_label.setText(_translate("MainWindow", "C2:")) self.c1_field.setText(_translate("MainWindow", "2")) self.c2_field.setText(_translate("MainWindow", "2")) self.dynamic_mutation_radiobutton.setText(_translate("MainWindow", "Dynamic")) self.label_lag_pso_0.setText(_translate("MainWindow", "Lag 0")) self.start_pso_0.setText(_translate("MainWindow", "Start")) self.stop_pso_0.setText(_translate("MainWindow", "Stop")) self.label_pso_0.setText(_translate("MainWindow", "available")) self.label_lag_pso_1.setText(_translate("MainWindow", "Lag 1")) self.start_pso_1.setText(_translate("MainWindow", "Start")) self.stop_pso_1.setText(_translate("MainWindow", "Stop")) self.label_pso_1.setText(_translate("MainWindow", "available")) self.label_lag_pso_2.setText(_translate("MainWindow", "Lag 2")) self.start_pso_2.setText(_translate("MainWindow", "Start")) self.stop_pso_2.setText(_translate("MainWindow", "Stop")) self.label_pso_2.setText(_translate("MainWindow", "available")) self.label_lag_pso_3.setText(_translate("MainWindow", "Lag 3")) self.start_pso_3.setText(_translate("MainWindow", "Start")) self.stop_pso_3.setText(_translate("MainWindow", "Stop")) self.label_pso_3.setText(_translate("MainWindow", "available")) self.label_lag_pso_4.setText(_translate("MainWindow", "Lag 4")) self.start_pso_4.setText(_translate("MainWindow", "Start")) self.stop_pso_4.setText(_translate("MainWindow", "Stop")) self.label_pso_4.setText(_translate("MainWindow", "available")) self.label_lag_pso_5.setText(_translate("MainWindow", "Lag 5")) self.start_pso_5.setText(_translate("MainWindow", "Start")) self.stop_pso_5.setText(_translate("MainWindow", "Stop")) self.label_pso_5.setText(_translate("MainWindow", "available")) self.label_lag_pso_6.setText(_translate("MainWindow", "Lag 6")) self.start_pso_6.setText(_translate("MainWindow", "Start")) self.stop_pso_6.setText(_translate("MainWindow", "Stop")) self.label_pso_6.setText(_translate("MainWindow", "available")) self.label_lag_pso_7.setText(_translate("MainWindow", "Lag 7")) self.start_pso_7.setText(_translate("MainWindow", "Start")) self.stop_pso_7.setText(_translate("MainWindow", "Stop")) self.label_pso_7.setText(_translate("MainWindow", "available")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.pso_tab), _translate("MainWindow", "PSO")) self.process_open_button.setText(_translate("MainWindow", "Open")) self.graph_groupbox.setTitle(_translate("MainWindow", "Graph ")) self.database_radiobutton.setText(_translate("MainWindow", "Database")) self.rxp_test_radiobutton.setText(_translate("MainWindow", "Real X Prediction (Test)")) self.rxp_training_radiobutton.setText(_translate("MainWindow", "Real X Prediction (Training)")) self.gb_fitness_radiobutton.setText(_translate("MainWindow", "Global Best Fitness Evolution")) self.gb_cost_radiobutton.setText(_translate("MainWindow", "Global Best Cost Evolution")) self.boxplot_fitness_radiobutton.setText(_translate("MainWindow", "Boxplot Fitness")) self.boxplot_cost_radiobutton.setText(_translate("MainWindow", "Boxplot Cost")) self.plot_graph_button.setText(_translate("MainWindow", "Plot Graph")) self.tableresults_groupbox.setTitle(_translate("MainWindow", "Table Results")) self.lag2_label.setText(_translate("MainWindow", "available")) self.copy_lag1_pushbutton.setText(_translate("MainWindow", "Copy Lag 1")) self.lag1_label.setText(_translate("MainWindow", "available")) self.copy_lag7_pushbutton.setText(_translate("MainWindow", "Copy Lag 7")) self.lag0_label.setText(_translate("MainWindow", "available")) self.lag4_label.setText(_translate("MainWindow", "available")) self.copy_lag0_pushbutton.setText(_translate("MainWindow", "Copy Lag 0")) self.lag6_label.setText(_translate("MainWindow", "available")) self.copy_lag5_pushbutton.setText(_translate("MainWindow", "Copy Lag 5")) self.copy_lag2_pushbutton.setText(_translate("MainWindow", "Copy Lag 2")) self.copy_lag6_pushbutton.setText(_translate("MainWindow", "Copy Lag 6")) self.copy_lag3_pushbutton.setText(_translate("MainWindow", "Copy Lag 3")) self.copy_lag4_pushbutton.setText(_translate("MainWindow", "Copy Lag 4")) self.lag3_label.setText(_translate("MainWindow", "available")) self.lag5_label.setText(_translate("MainWindow", "available")) self.lag7_label.setText(_translate("MainWindow", "available")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.results_tab), _translate("MainWindow", "Results"))
57.772623
127
0.706933
24,693
201,742
5.558255
0.014417
0.00733
0.005355
0.035803
0.829217
0.777873
0.713188
0.568284
0.476517
0.452029
0
0.041368
0.174183
201,742
3,491
128
57.789172
0.782452
0.000897
0
0.439494
1
0
0.158951
0.021513
0
0
0
0
0
1
0.000575
false
0
0.000287
0
0.00115
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
699a7857f2d55228bca2446e892277a4f3efdb97
403
py
Python
src/01wstep/09porownania.py
tborzyszkowski/PSPI_Wstep_do_programowania
4aca4dfe5a8daed19d7852dd29b6cfa57df8f51c
[ "MIT" ]
null
null
null
src/01wstep/09porownania.py
tborzyszkowski/PSPI_Wstep_do_programowania
4aca4dfe5a8daed19d7852dd29b6cfa57df8f51c
[ "MIT" ]
null
null
null
src/01wstep/09porownania.py
tborzyszkowski/PSPI_Wstep_do_programowania
4aca4dfe5a8daed19d7852dd29b6cfa57df8f51c
[ "MIT" ]
null
null
null
# porownania print('----------') print((1, 2, 3) < (1, 2, 4)) print([1, 2, 3] < [1, 2, 4]) print('ABC' < 'C' < 'Pascal' < 'Python') print((1, 2, 3, 4) < (1, 2, 4)) print((1, 2) < (1, 2, -1)) print((1, 2, 3) == (1.0, 2.0, 3.0)) print((1, 2, ('aa', 'ab')) < (1, 2, ('abc', 'a'), 4)) print('--- inne ---') print(list((1, 2, 3)) < [1, 2, 3]) print((1, 2, 3) > tuple([1, 2, 3])) print(0 == 0 == 0.0 == 0j)
25.1875
53
0.404467
79
403
2.063291
0.227848
0.184049
0.147239
0.245399
0.312883
0.226994
0.165644
0.165644
0
0
0
0.170807
0.200993
403
15
54
26.866667
0.335404
0.024814
0
0
0
0
0.117647
0
0
0
0
0
0
1
0
true
0
0
0
0
1
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
4
69b020d5e9b006584e74966f44ee09ea9c22fbbd
264
py
Python
jsonargon/fields/dict.py
andreamigotto/jsonargon
625a12964e77e44f6d4afdab222be4e2080ee142
[ "Apache-2.0" ]
null
null
null
jsonargon/fields/dict.py
andreamigotto/jsonargon
625a12964e77e44f6d4afdab222be4e2080ee142
[ "Apache-2.0" ]
null
null
null
jsonargon/fields/dict.py
andreamigotto/jsonargon
625a12964e77e44f6d4afdab222be4e2080ee142
[ "Apache-2.0" ]
1
2021-12-21T17:02:55.000Z
2021-12-21T17:02:55.000Z
from jsonargon.fields.simple import Nullable, Required, _JsonField # INTERNAL class _StringDictField(_JsonField): pass # PUBLIC class RequiredStringDict(Required, _StringDictField): pass class NullableStringDict(Nullable, _StringDictField): pass
16.5
66
0.787879
24
264
8.458333
0.625
0.187192
0
0
0
0
0
0
0
0
0
0
0.147727
264
15
67
17.6
0.902222
0.056818
0
0.428571
0
0
0
0
0
0
0
0
0
1
0
true
0.428571
0.142857
0
0.571429
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
4
69c2c3d2f3579bfff167de2f2978a774c0bbc14c
131
py
Python
models/BERT/utils/__init__.py
hansheng0512/LateTemporalModeling3DCNN
71c1d3fae9781c55059f0518e0b39781a535e153
[ "MIT" ]
144
2020-08-06T02:18:49.000Z
2022-03-16T23:03:56.000Z
models/BERT/utils/__init__.py
hansheng0512/LateTemporalModeling3DCNN
71c1d3fae9781c55059f0518e0b39781a535e153
[ "MIT" ]
26
2020-08-12T01:07:48.000Z
2022-01-11T16:28:08.000Z
models/BERT/utils/__init__.py
hansheng0512/LateTemporalModeling3DCNN
71c1d3fae9781c55059f0518e0b39781a535e153
[ "MIT" ]
55
2020-08-13T03:00:17.000Z
2022-03-28T06:38:08.000Z
from .feed_forward import PositionwiseFeedForward from .layer_norm import LayerNorm from .sublayer import * from .gelu import GELU
26.2
49
0.839695
17
131
6.352941
0.588235
0
0
0
0
0
0
0
0
0
0
0
0.122137
131
4
50
32.75
0.93913
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
0
0
0
4
69cfd2b38cca352f3323732d2b17dd7c8817ff2b
212
py
Python
backend/database/__main__.py
E-catalog/backend
197c1ff44eec9cdbae34fc7494ffa179e5412b5d
[ "MIT" ]
null
null
null
backend/database/__main__.py
E-catalog/backend
197c1ff44eec9cdbae34fc7494ffa179e5412b5d
[ "MIT" ]
null
null
null
backend/database/__main__.py
E-catalog/backend
197c1ff44eec9cdbae34fc7494ffa179e5412b5d
[ "MIT" ]
null
null
null
from backend.database.models import * # noqa: F401, WPS347, F403 from backend.database.session import Base, engine def main(): Base.metadata.create_all(bind=engine) if __name__ == '__main__': main()
19.272727
65
0.716981
28
212
5.107143
0.714286
0.153846
0.265734
0
0
0
0
0
0
0
0
0.050847
0.165094
212
10
66
21.2
0.757062
0.113208
0
0
0
0
0.043011
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0
0.5
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
0
1
0
1
0
0
0
0
4
69dcfafa79f9c9ecc59fdd19f2e3e9cbe0d9e2b6
1,252
py
Python
setup.py
rdegges/python-basicauth
586149d3a9495b43132e4b6242ac6af95e8c0c1f
[ "Unlicense" ]
25
2015-01-20T03:03:28.000Z
2021-02-25T18:21:38.000Z
setup.py
rdegges/python-basicauth
586149d3a9495b43132e4b6242ac6af95e8c0c1f
[ "Unlicense" ]
6
2015-06-30T09:10:55.000Z
2021-02-26T19:41:46.000Z
setup.py
rdegges/python-basicauth
586149d3a9495b43132e4b6242ac6af95e8c0c1f
[ "Unlicense" ]
16
2015-01-20T03:03:28.000Z
2022-02-25T17:52:28.000Z
from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name='basicauth', version='0.4.1', py_modules=('basicauth',), # Packaging options: zip_safe=False, include_package_data=True, classifiers=[ 'License :: Public Domain', 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', ], # Package dependencies: install_requires=['six'], # Metadata for PyPI: author='Randall Degges', author_email='rdegges@gmail.com', license='UNLICENSE', url='https://github.com/rdegges/python-basicauth', keywords='python security basicauth http', description='An incredibly simple HTTP basic auth implementation.', long_description=open(normpath(join(dirname(abspath(__file__)), 'README.md'))).read() )
29.116279
71
0.615016
128
1,252
5.929688
0.578125
0.225296
0.296443
0.171278
0.071146
0
0
0
0
0
0
0.018104
0.25
1,252
42
72
29.809524
0.790202
0.06869
0
0
0
0
0.470284
0
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
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
0
0
0
1
0
0
0
0
0
0
4
69eb3969c0e49ea3f77f03a2de3d743c4913bc7d
164
py
Python
module_3/tests/Elements.py
szikszail/py-webinar
fafc0a5d06e459c8654de89ff5fedab0732d8744
[ "MIT" ]
1
2020-04-13T19:59:27.000Z
2020-04-13T19:59:27.000Z
module_3/tests/Elements.py
szikszail/py-webinar
fafc0a5d06e459c8654de89ff5fedab0732d8744
[ "MIT" ]
null
null
null
module_3/tests/Elements.py
szikszail/py-webinar
fafc0a5d06e459c8654de89ff5fedab0732d8744
[ "MIT" ]
null
null
null
import unittest from module_3.Elements import Elements class ElementsTest(unittest.TestCase): def test_exist(self): self.assertNotEqual(Elements, None)
27.333333
43
0.780488
20
164
6.3
0.75
0
0
0
0
0
0
0
0
0
0
0.007143
0.146341
164
6
43
27.333333
0.892857
0
0
0
0
0
0
0
0
0
0
0
0.2
1
0.2
false
0
0.4
0
0.8
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
0
1
0
0
4
69f0714b6d91a64cde27b878e22709ea5e5d6c77
10,694
py
Python
src/waldur_mastermind/invoices/tests/test_profiles.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
26
2017-10-18T13:49:58.000Z
2021-09-19T04:44:09.000Z
src/waldur_mastermind/invoices/tests/test_profiles.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
14
2018-12-10T14:14:51.000Z
2021-06-07T10:33:39.000Z
src/waldur_mastermind/invoices/tests/test_profiles.py
geant-multicloud/MCMS-mastermind
81333180f5e56a0bc88d7dad448505448e01f24e
[ "MIT" ]
32
2017-09-24T03:10:45.000Z
2021-10-16T16:41:09.000Z
import mock from ddt import data, ddt from freezegun import freeze_time from rest_framework import status, test from waldur_core.structure.tests import factories as structure_factories from waldur_core.structure.tests import fixtures as structure_fixtures from waldur_mastermind.invoices import models, tasks, utils from waldur_mastermind.invoices.tests import factories @ddt class ProfileRetrieveTest(test.APITransactionTestCase): def setUp(self): self.fixture = structure_fixtures.ProjectFixture() self.profile = factories.PaymentProfileFactory( organization=self.fixture.customer ) self.url = factories.PaymentProfileFactory.get_url(profile=self.profile) self.customer_url = structure_factories.CustomerFactory.get_url( customer=self.fixture.customer ) @data('owner', 'staff', 'global_support') def test_user_with_access_can_retrieve_customer_profile(self, user): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.get(self.url) self.assertEqual(response.status_code, status.HTTP_200_OK) @data('manager', 'admin', 'user') def test_user_cannot_retrieve_customer_profile(self, user): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.get(self.url) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) @data('staff', 'global_support') def test_user_with_access_can_retrieve_unactive_customer_profile(self, user): self.profile.is_active = False self.profile.save() self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.get(self.url) self.assertEqual(response.status_code, status.HTTP_200_OK) @data('owner', 'manager', 'admin', 'user') def test_user_cannot_retrieve_unactive_customer_profile(self, user): self.profile.is_active = False self.profile.save() self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.get(self.url) self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) @data('owner', 'staff', 'global_support') def test_user_with_access_can_retrieve_customer_profile_in_organization_endpoint( self, user ): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.get(self.customer_url) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response.data['payment_profiles']), 1) @data('manager', 'admin') def test_user_cannot_retrieve_customer_profile_in_organization_endpoint(self, user): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.get(self.customer_url) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data['payment_profiles'], None) @data('staff', 'global_support') def test_user_with_access_can_retrieve_unactive_customer_profile_in_organization_endpoint( self, user ): self.profile.is_active = False self.profile.save() self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.get(self.customer_url) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(len(response.data['payment_profiles']), 1) @data('owner',) def test_user_cannot_retrieve_unactive_customer_profile_in_organization_endpoint( self, user ): self.profile.is_active = False self.profile.save() self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.get(self.customer_url) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertEqual(response.data['payment_profiles'], []) @ddt class ProfileCreateTest(test.APITransactionTestCase): def setUp(self): self.fixture = structure_fixtures.ProjectFixture() self.url = factories.PaymentProfileFactory.get_list_url() def get_data(self): return { 'organization': structure_factories.CustomerFactory.get_url( customer=self.fixture.customer ), 'payment_type': models.PaymentType.MONTHLY_INVOICES, 'name': 'default', } @data('staff',) def test_user_with_access_can_create_customer_profiles(self, user): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.post(self.url, self.get_data()) self.assertEqual(response.status_code, status.HTTP_201_CREATED) @data('owner', 'manager', 'admin', 'user', 'global_support') def test_user_cannot_create_customer_profiles(self, user): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.post(self.url, self.get_data()) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) @ddt class ProfileUpdateTest(test.APITransactionTestCase): def setUp(self): self.fixture = structure_fixtures.ProjectFixture() self.profile = factories.PaymentProfileFactory( organization=self.fixture.customer ) self.url = factories.PaymentProfileFactory.get_url(profile=self.profile) @data('staff',) def test_user_with_access_can_update_customer_profiles(self, user): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.patch(self.url) self.assertEqual(response.status_code, status.HTTP_200_OK) @data('owner', 'manager', 'admin', 'user', 'global_support') def test_user_cannot_create_customer_profiles(self, user): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.patch(self.url) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_enable_action(self): self.client.force_authenticate(self.fixture.staff) new_profile = factories.PaymentProfileFactory( organization=self.fixture.customer, is_active=False, ) url = factories.PaymentProfileFactory.get_url( profile=new_profile, action='enable' ) response = self.client.post(url) self.assertEqual(response.status_code, status.HTTP_200_OK) new_profile.refresh_from_db() self.profile.refresh_from_db() self.assertIsNone(self.profile.is_active) self.assertTrue(new_profile.is_active) @ddt class ProfileDeleteTest(test.APITransactionTestCase): def setUp(self): self.fixture = structure_fixtures.ProjectFixture() self.profile = factories.PaymentProfileFactory( organization=self.fixture.customer ) self.url = factories.PaymentProfileFactory.get_url(profile=self.profile) @data('staff',) def test_user_with_access_can_delete_customer_profiles(self, user): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.delete(self.url) self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT) @data('owner', 'manager', 'admin', 'user', 'global_support') def test_user_cannot_delete_customer_profiles(self, user): self.client.force_authenticate(getattr(self.fixture, user)) response = self.client.delete(self.url) self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) class ProfileModelTest(test.APITransactionTestCase): def setUp(self): self.customer = structure_factories.CustomerFactory() self.profile = factories.PaymentProfileFactory( organization=self.customer, is_active=True ) def test_if_enabling_payment_profile_disables_other_existing_profiles(self): # creation new_profile = factories.PaymentProfileFactory( organization=self.customer, is_active=True ) self.profile.refresh_from_db() self.assertIsNone(self.profile.is_active) # update self.profile.is_active = True self.profile.save() new_profile.refresh_from_db() self.assertIsNone(new_profile.is_active) self.assertTrue(self.profile.is_active) class ProfileProcessingTest(test.APITransactionTestCase): def setUp(self): self.profile = factories.PaymentProfileFactory( payment_type=models.PaymentType.FIXED_PRICE ) def create_invoice(self): tasks.create_monthly_invoices() invoice = models.Invoice.objects.get( year='2020', month='01', customer=self.profile.organization ) self.assertEqual(invoice.state, models.Invoice.States.PENDING) return invoice def test_if_customer_has_a_fixed_price_payment_profile_then_invoice_are_created_as_paid( self, ): with freeze_time('2020-01-01'): invoice = self.create_invoice() with freeze_time('2020-02-01'): tasks.create_monthly_invoices() invoice.refresh_from_db() self.assertEqual(invoice.state, models.Invoice.States.PAID) @mock.patch('waldur_mastermind.invoices.tasks.send_invoice_notification') def test_that_invoice_notifications_are_not_sent_if_customer_has_a_fixed_price_payment_profile( self, mock_send_invoice_notification ): with freeze_time('2020-01-01'): self.create_invoice() # if fixed-price payment profile exists, so invoice notifications are not sent tasks.send_new_invoices_notification() mock_send_invoice_notification.delay.assert_not_called() # if fixed-price payment profile does not exists, so invoice notifications are sent self.profile.delete() tasks.send_new_invoices_notification() mock_send_invoice_notification.delay.assert_called_once() class ProfileNotificationTest(test.APITransactionTestCase): def setUp(self): self.profile = factories.PaymentProfileFactory( payment_type=models.PaymentType.FIXED_PRICE, attributes={'end_date': '2020-01-31'}, ) factories.PaymentProfileFactory( payment_type=models.PaymentType.FIXED_PRICE, attributes={'end_date': '2020-02-15'}, ) factories.PaymentProfileFactory(payment_type=models.PaymentType.FIXED_PRICE,) def test_notification_only_if_end_exists_and_contact_will_end_in_30_days(self): with freeze_time('2020-01-01'): result = utils.get_upcoming_ends_of_fixed_payment_profiles() self.assertEqual(len(result), 1)
40.97318
99
0.710398
1,229
10,694
5.908055
0.129373
0.041317
0.053849
0.055777
0.809393
0.765459
0.731029
0.69949
0.675251
0.625121
0
0.012051
0.193005
10,694
260
100
41.130769
0.829316
0.016271
0
0.560748
0
0
0.048027
0.005516
0
0
0
0
0.135514
1
0.130841
false
0
0.037383
0.004673
0.21028
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
0e1196329cb27e934c33d152d40610eb06fc44f7
90
py
Python
applications/demos/vct/file_utilities/__init__.py
WNProject/WNFramework
293d2b550ed8745654cc0a1da391588ed6abb96b
[ "BSD-2-Clause" ]
6
2015-05-04T17:39:37.000Z
2022-03-04T02:30:28.000Z
applications/demos/vct/file_utilities/__init__.py
WNProject/WNFramework
293d2b550ed8745654cc0a1da391588ed6abb96b
[ "BSD-2-Clause" ]
276
2015-05-27T21:30:31.000Z
2022-03-24T01:52:36.000Z
applications/demos/vct/file_utilities/__init__.py
WNProject/WNFramework
293d2b550ed8745654cc0a1da391588ed6abb96b
[ "BSD-2-Clause" ]
2
2017-11-30T19:06:08.000Z
2020-09-30T23:56:48.000Z
# Empty, just here so that this can be a python module import sys sys.dont_write_bytecode
22.5
54
0.8
17
90
4.117647
0.941176
0
0
0
0
0
0
0
0
0
0
0
0.166667
90
3
55
30
0.933333
0.577778
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
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
4