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
fe1dd55af5cfb0d56d82d5b39b541add8efe58fc
3,049
py
Python
tests/test_subset_csv.py
ucsd-ccbb/covid_sequencing_analysis_pipeline
91d2c4368cdb68f462bcb6e1c6a869e88e38fad0
[ "MIT" ]
4
2021-03-24T23:07:55.000Z
2021-04-16T20:59:01.000Z
tests/test_subset_csv.py
ucsd-ccbb/covid_sequencing_analysis_pipeline
91d2c4368cdb68f462bcb6e1c6a869e88e38fad0
[ "MIT" ]
87
2021-03-18T16:57:16.000Z
2021-09-09T18:23:59.000Z
tests/test_subset_csv.py
ucsd-ccbb/covid_sequencing_analysis_pipeline
91d2c4368cdb68f462bcb6e1c6a869e88e38fad0
[ "MIT" ]
3
2021-03-20T22:14:04.000Z
2021-04-13T15:26:28.000Z
import os import filecmp from tests.test_sarscov2_consensus_acceptance import FileTestCase from qc.subset_csv import filter_csv class SubsetCsvTest(FileTestCase): def test_filter_csv_filter_lines(self): output_fp = f"{self.test_temp_dir}/temp_test_filter_lines.csv" expected_fp = f"{self.dummy_dir}/dummy_filtered_lines.csv" args = ["subset_csv.py", f"{self.dummy_dir}/dummy_table.csv", "filtered_lines", "seq_run", "210109_A00953_0209_BHYHCVDRXX,PDH_79-233476243", output_fp] try: real_str, real_code = filter_csv(args) self.assertEqual("", real_str) self.assertEqual(0, real_code) self.assertTrue(os.path.isfile(output_fp)) self.assertTrue(filecmp.cmp(output_fp, expected_fp)) finally: try: os.remove(output_fp) except OSError: pass def test_filter_csv_not_na_cons_fnames(self): expected_str = "040idSEARCH-5367-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa 041idSEARCH-5368-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa 042idSEARCH-5369-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa 043idSEARCH-5370-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa 044idSEARCH-5371-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa 045idSEARCH-5371-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa" # noqa 501 args = ["subset_csv.py", f"{self.dummy_dir}/dummy_table.csv", "not_na_cons_fnames"] real_str, real_code = filter_csv(args) self.assertEqual(expected_str, real_str) self.assertEqual(0, real_code) def test_filter_csv_not_na_cons_fnames_w_dir(self): expected_str = "dummy_dir/040idSEARCH-5367-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa dummy_dir/041idSEARCH-5368-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa dummy_dir/042idSEARCH-5369-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa dummy_dir/043idSEARCH-5370-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa dummy_dir/044idSEARCH-5371-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa dummy_dir/045idSEARCH-5371-SAN_L001_L002_L003_L004.trimmed.sorted.pileup.consensus.fa" # noqa 501 args = ["subset_csv.py", f"{self.dummy_dir}/dummy_table.csv", "not_na_cons_fnames", "dummy_dir"] real_str, real_code = filter_csv(args) self.assertEqual(expected_str, real_str) self.assertEqual(0, real_code) def test_filter_csv_error(self): expected_str = "Unrecognized filter type 'flagged_cons_fnames'" args = ["subset_csv.py", f"{self.dummy_dir}/dummy_table.csv", "flagged_cons_fnames"] real_str, real_code = filter_csv(args) self.assertEqual(expected_str, real_str) self.assertEqual(1, real_code)
53.491228
552
0.704493
414
3,049
4.826087
0.207729
0.048048
0.066066
0.09009
0.721722
0.712713
0.712713
0.697197
0.674174
0.652653
0
0.10883
0.201378
3,049
56
553
54.446429
0.711704
0.005576
0
0.4
0
0.04
0.467151
0.410366
0
0
0
0
0.2
1
0.08
false
0.02
0.08
0
0.18
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a3b91d53bc9dcdf0dd0984b87457aa082529d4e2
2,287
py
Python
analyse/migrations/0005_auto_20181112_1450.py
cuizhenduo/watermelon
98933979ba40fdc0f0257598c28191f209a822d2
[ "Apache-2.0" ]
null
null
null
analyse/migrations/0005_auto_20181112_1450.py
cuizhenduo/watermelon
98933979ba40fdc0f0257598c28191f209a822d2
[ "Apache-2.0" ]
null
null
null
analyse/migrations/0005_auto_20181112_1450.py
cuizhenduo/watermelon
98933979ba40fdc0f0257598c28191f209a822d2
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.4 on 2018-11-12 14:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('analyse', '0004_plantrange'), ] operations = [ migrations.AlterField( model_name='plantrange', name='ChengshuTimeH', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='ζˆη†ŸζœŸι«˜'), ), migrations.AlterField( model_name='plantrange', name='ChengshuTimeL', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='ζˆη†ŸζœŸδ½Ž'), ), migrations.AlterField( model_name='plantrange', name='HuanmiaoTimeH', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='ηΌ“θ‹—ζœŸι«˜'), ), migrations.AlterField( model_name='plantrange', name='HuanmiaoTimeL', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='ηΌ“θ‹—ζœŸδ½Ž'), ), migrations.AlterField( model_name='plantrange', name='PengguaTimeH', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='ζΎŽη“œζœŸι«˜'), ), migrations.AlterField( model_name='plantrange', name='PengguaTimeL', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='ζΎŽη“œζœŸδ½Ž'), ), migrations.AlterField( model_name='plantrange', name='ShenmanTimeH', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='δΌΈθ”“ζœŸι«˜'), ), migrations.AlterField( model_name='plantrange', name='ShenmanTimeL', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='δΌΈθ”“ζœŸδ½Ž'), ), migrations.AlterField( model_name='plantrange', name='ZuoguoTimeH', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='坐果期高'), ), migrations.AlterField( model_name='plantrange', name='ZuoguoTimeL', field=models.DecimalField(decimal_places=13, max_digits=18, verbose_name='坐果期低'), ), ]
35.734375
93
0.602099
217
2,287
6.156682
0.258065
0.149701
0.187126
0.217066
0.770958
0.770958
0.449102
0.449102
0.449102
0.449102
0
0.03591
0.281592
2,287
63
94
36.301587
0.777237
0.019676
0
0.526316
1
0
0.126786
0
0
0
0
0
0
1
0
false
0
0.017544
0
0.070175
0
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a3e53d1d9df89d20e055a0c339cee82abae39bac
2,877
py
Python
keras/layers/rnn/__init__.py
futtetennista/keras
e7b4343f127784a84ef344ecb728b4de123155ad
[ "Apache-2.0" ]
null
null
null
keras/layers/rnn/__init__.py
futtetennista/keras
e7b4343f127784a84ef344ecb728b4de123155ad
[ "Apache-2.0" ]
null
null
null
keras/layers/rnn/__init__.py
futtetennista/keras
e7b4343f127784a84ef344ecb728b4de123155ad
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== """Keras recurrent layers.""" # pylint: disable=g-bad-import-order,g-direct-tensorflow-import,disable=g-import-not-at-top import tensorflow.compat.v2 as tf # Recurrent layers. from keras.layers.rnn.base_rnn import RNN from keras.layers.rnn.abstract_rnn_cell import AbstractRNNCell from keras.layers.rnn.stacked_rnn_cells import StackedRNNCells from keras.layers.rnn.simple_rnn import SimpleRNNCell from keras.layers.rnn.lstm_v1 import PeepholeLSTMCell from keras.layers.rnn.simple_rnn import SimpleRNN if tf.__internal__.tf2.enabled(): from keras.layers.rnn.gru import GRU from keras.layers.rnn.gru import GRUCell from keras.layers.rnn.lstm import LSTM from keras.layers.rnn.lstm import LSTMCell from keras.layers.rnn.gru_v1 import GRU as GRUV1 from keras.layers.rnn.gru_v1 import GRUCell as GRUCellV1 from keras.layers.rnn.lstm_v1 import LSTM as LSTMV1 from keras.layers.rnn.lstm_v1 import LSTMCell as LSTMCellV1 GRUV2 = GRU GRUCellV2 = GRUCell LSTMV2 = LSTM LSTMCellV2 = LSTMCell else: from keras.layers.rnn.gru_v1 import GRU from keras.layers.rnn.gru_v1 import GRUCell from keras.layers.rnn.lstm_v1 import LSTM from keras.layers.rnn.lstm_v1 import LSTMCell from keras.layers.rnn.gru import GRU as GRUV2 from keras.layers.rnn.gru import GRUCell as GRUCellV2 from keras.layers.rnn.lstm import LSTM as LSTMV2 from keras.layers.rnn.lstm import LSTMCell as LSTMCellV2 GRUV1 = GRU GRUCellV1 = GRUCell LSTMV1 = LSTM LSTMCellV1 = LSTMCell # Convolutional-recurrent layers. from keras.layers.rnn.conv_lstm1d import ConvLSTM1D from keras.layers.rnn.conv_lstm2d import ConvLSTM2D from keras.layers.rnn.conv_lstm3d import ConvLSTM3D # cuDNN recurrent layers. from keras.layers.rnn.cudnn_lstm import CuDNNLSTM from keras.layers.rnn.cudnn_gru import CuDNNGRU # Wrapper functions. from keras.layers.rnn.base_wrapper import Wrapper from keras.layers.rnn.bidirectional import Bidirectional from keras.layers.rnn.time_distributed import TimeDistributed # RNN Cell wrappers. from keras.layers.rnn.cell_wrappers import DeviceWrapper from keras.layers.rnn.cell_wrappers import DropoutWrapper from keras.layers.rnn.cell_wrappers import ResidualWrapper
39.410959
91
0.781022
427
2,877
5.192037
0.306792
0.133965
0.223275
0.26793
0.428056
0.382048
0.337393
0.126297
0
0
0
0.016302
0.125826
2,877
72
92
39.958333
0.865209
0.308307
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.772727
0
0.772727
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
a3f4f668debdb5f4da3d5eff20fd8da5d70a5de1
88
py
Python
pandagg/node/query/shape.py
leonardbinet/pandagg
5a5619e2190503da841e32782a4e55b35727d656
[ "MIT" ]
13
2020-03-03T20:59:08.000Z
2022-02-16T09:51:40.000Z
pandagg/node/query/shape.py
leonardbinet/pandagg
5a5619e2190503da841e32782a4e55b35727d656
[ "MIT" ]
57
2020-06-21T18:48:20.000Z
2022-03-16T09:52:39.000Z
pandagg/node/query/shape.py
leonardbinet/pandagg
5a5619e2190503da841e32782a4e55b35727d656
[ "MIT" ]
2
2020-03-03T20:59:20.000Z
2020-05-10T20:31:53.000Z
from .abstract import LeafQueryClause class Shape(LeafQueryClause): KEY = "shape"
14.666667
37
0.75
9
88
7.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.170455
88
5
38
17.6
0.90411
0
0
0
0
0
0.056818
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
430a2cb7cbe155905b6760a51c9455edb794f7ef
693
py
Python
lib/cicdctl/commands/types/group.py
cicdenv/cicdenv
5b72fd9ef000bf07c2052471b59edaa91af18778
[ "MIT" ]
8
2020-08-10T20:57:24.000Z
2021-08-08T10:46:20.000Z
lib/cicdctl/commands/types/group.py
cicdenv/cicdenv
5b72fd9ef000bf07c2052471b59edaa91af18778
[ "MIT" ]
null
null
null
lib/cicdctl/commands/types/group.py
cicdenv/cicdenv
5b72fd9ef000bf07c2052471b59edaa91af18778
[ "MIT" ]
1
2020-08-10T20:42:09.000Z
2020-08-10T20:42:09.000Z
import click from collections import namedtuple class Group(namedtuple('Group', ['name', 'workspace'])): def __str__(self): return f'{self.name}:{self.workspace}' def parse_group(value): """Parses a command line "group" value into its name, workspace parts. Keyword arguments: value -- <group-name>:<workspace>, cluster-name is limited to 15 chars max, [-a-z] chars """ parts = value.split(':') # TODO validate - must have 2 parts name = parts[0] workspace = parts[1] return Group(name, workspace) class GroupParamType(click.ParamType): name = 'group' def convert(self, value, param, context): return parse_group(value)
23.896552
92
0.659452
88
693
5.125
0.522727
0.115299
0.119734
0
0
0
0
0
0
0
0
0.009158
0.212121
693
28
93
24.75
0.81685
0.304473
0
0
0
0
0.112311
0.060475
0
0
0
0.035714
0
1
0.214286
false
0
0.142857
0.142857
0.785714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
1
0
0
4
430d02659060b48698ae09e1dbfe8671e70ffa8c
157
py
Python
utils/create_models.py
bolilyivs/MirrorIS_Server
06a53f893881adbe53778463b11639a0c85eb566
[ "MIT" ]
1
2019-12-23T08:36:30.000Z
2019-12-23T08:36:30.000Z
utils/create_models.py
bolilyivs/MirrorIS_Server
06a53f893881adbe53778463b11639a0c85eb566
[ "MIT" ]
null
null
null
utils/create_models.py
bolilyivs/MirrorIS_Server
06a53f893881adbe53778463b11639a0c85eb566
[ "MIT" ]
null
null
null
from models.models import * def create_tables(): User.create_table() Repository.create_table() Task.create_table() QueueTask.create_table()
19.625
29
0.719745
19
157
5.684211
0.578947
0.407407
0
0
0
0
0
0
0
0
0
0
0.171975
157
7
30
22.428571
0.830769
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
true
0
0.166667
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
1
0
0
0
0
0
0
4
4316c09cbdc728b8a19299d5e0e5dce33a3bdc9c
402
py
Python
goodcalc/strmanip.py
NoSocksForYou/kaaponparempimatikka
19829c51e24012673fffde3c4bef3b5984f77105
[ "MIT" ]
null
null
null
goodcalc/strmanip.py
NoSocksForYou/kaaponparempimatikka
19829c51e24012673fffde3c4bef3b5984f77105
[ "MIT" ]
null
null
null
goodcalc/strmanip.py
NoSocksForYou/kaaponparempimatikka
19829c51e24012673fffde3c4bef3b5984f77105
[ "MIT" ]
null
null
null
def replaceSlice(string, l_index, r_index, replaceable): string = string[0:l_index] + string[r_index - 1:] string = string[0:l_index] + replaceable + string[r_index:] return string def correctSpaces(expression): return expression.replace(" ", "") def replaceAlternateOperationSigns(expression): return expression.replace("**", "^") def correctUnaryBraces(expression): pass
25.125
63
0.711443
44
402
6.363636
0.363636
0.064286
0.157143
0.1
0.392857
0
0
0
0
0
0
0.008876
0.159204
402
16
64
25.125
0.819527
0
0
0
0
0
0.009926
0
0
0
0
0
0
1
0.4
false
0.1
0
0.2
0.7
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
4320cbd200a170eb8dcde78ba843d36353b7b542
253
py
Python
imbalanced_ensemble/sampler/under_sampling/_prototype_generation/__init__.py
ZhiningLiu1998/imbalanced-ensemble
26670c8a6b7bab26ae1e18cba3174a9d9038a680
[ "MIT" ]
87
2021-05-19T08:29:26.000Z
2022-03-30T23:59:05.000Z
imbalanced_ensemble/sampler/under_sampling/_prototype_generation/__init__.py
breakend2010/imbalanced-ensemble
d6ed07689ad8c9cd27ecd589849f7122b98ab1a4
[ "MIT" ]
8
2021-05-28T10:27:28.000Z
2022-01-11T11:21:03.000Z
imbalanced_ensemble/sampler/under_sampling/_prototype_generation/__init__.py
breakend2010/imbalanced-ensemble
d6ed07689ad8c9cd27ecd589849f7122b98ab1a4
[ "MIT" ]
18
2021-05-19T08:30:29.000Z
2022-03-28T08:30:10.000Z
""" The :mod:`imbalanced_ensemble.sampler.under_sampling.prototype_generation` submodule contains methods that generate new samples in order to balance the dataset. """ from ._cluster_centroids import ClusterCentroids __all__ = ["ClusterCentroids"]
25.3
75
0.810277
29
253
6.758621
0.931034
0
0
0
0
0
0
0
0
0
0
0
0.110672
253
9
76
28.111111
0.871111
0.640316
0
0
1
0
0.192771
0
0
0
0
0
0
1
0
false
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
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
4a536c57d425522b2ce8ad7d79ec94a787c170a7
304
py
Python
Desafios/Ex-003.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
1
2021-04-06T16:14:43.000Z
2021-04-06T16:14:43.000Z
Desafios/Ex-003.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
null
null
null
Desafios/Ex-003.py
LuckyCards/Curso-Python3
b39c7b2645220c71c35012f16c102428053fee25
[ "MIT" ]
null
null
null
print(f'\033[33m{"β€”"*30:^30}\033[m') print(f'\033[36m{"EXERCÍCIO NΒΊ 3":^30}\033[m') print(f'\033[33m{"β€”"*30:^30}\033[m') print("Soma de dois nΓΊmeros") n1 = int(input("Digite o primeiro nΓΊmero: ")) n2 = int(input("Digite o segundo nΓΊmero: ")) s = n1 + n2 print(f"A soma entre {n1} e {n2} equivale a {s}.")
38
50
0.621711
61
304
3.131148
0.47541
0.125654
0.141361
0.172775
0.324607
0.324607
0.272251
0.272251
0.272251
0.272251
0
0.152985
0.118421
304
8
50
38
0.552239
0
0
0.25
0
0
0.652459
0.170492
0
0
0
0
0
1
0
false
0
0
0
0
0.625
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
4
4a7bcb9bc81391ffc6d9f20ed7b411a6d38564a4
352
py
Python
bicycleparking/migrations/0003_merge_20171208_0613.py
bikespace/bikespace
abd05b0232b5ef14bcc5abf64cfd2ef6141938c8
[ "MIT" ]
3
2019-01-25T23:04:12.000Z
2019-05-28T18:46:30.000Z
bicycleparking/migrations/0003_merge_20171208_0613.py
bikespace/bikespace
abd05b0232b5ef14bcc5abf64cfd2ef6141938c8
[ "MIT" ]
12
2020-02-11T23:24:06.000Z
2022-02-10T08:04:25.000Z
bicycleparking/migrations/0003_merge_20171208_0613.py
bikespace/bikespace
abd05b0232b5ef14bcc5abf64cfd2ef6141938c8
[ "MIT" ]
1
2019-01-25T23:08:34.000Z
2019-01-25T23:08:34.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-12-08 06:13 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('bicycleparking', '0002_auto_20171129_0126'), ('bicycleparking', '0002_auto_20171129_0128'), ] operations = [ ]
20.705882
54
0.676136
41
352
5.536585
0.756098
0.15859
0.193833
0.264317
0
0
0
0
0
0
0
0.175
0.204545
352
16
55
22
0.635714
0.193182
0
0
1
0
0.263345
0.163701
0
0
0
0
0
1
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
4a8cda5b95504dbf640cf3cfd44412f10b548a0f
298
py
Python
pysls/utils/rmdir.py
LucasFDutra/pysls
8a31788d23a6b785def02187d43d2510f808da7f
[ "MIT" ]
1
2021-09-06T08:00:38.000Z
2021-09-06T08:00:38.000Z
pysls/utils/rmdir.py
LucasFDutra/pysls
8a31788d23a6b785def02187d43d2510f808da7f
[ "MIT" ]
6
2020-10-11T13:39:37.000Z
2020-10-24T18:13:55.000Z
pysls/utils/rmdir.py
LucasFDutra/pysls
8a31788d23a6b785def02187d43d2510f808da7f
[ "MIT" ]
null
null
null
import os def rmdir(root_directory_name): for root, dirs, files in os.walk(root_directory_name, topdown=False): for name in files: os.remove(os.path.join(root, name)) for name in dirs: os.rmdir(os.path.join(root, name)) os.rmdir(root_directory_name)
33.111111
73
0.651007
46
298
4.086957
0.369565
0.207447
0.271277
0.234043
0.191489
0
0
0
0
0
0
0
0.241611
298
9
74
33.111111
0.831858
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
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
4a9e4695aba016e4122cfe78c24846f2ed3848de
123
py
Python
Codewars/7kyu/find-the-next-perfect-square/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/7kyu/find-the-next-perfect-square/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/7kyu/find-the-next-perfect-square/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 2.7.6 def find_next_square(sq): num = int(sq ** 0.5) return (num + 1) ** 2 if (num ** 2) == sq else -1
20.5
53
0.520325
24
123
2.583333
0.708333
0
0
0
0
0
0
0
0
0
0
0.101124
0.276423
123
5
54
24.6
0.595506
0.113821
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
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
1
0
0
0
0
1
0
0
4
4aabae3d79ce0bd8cb7f57a49b341407b4482f32
94
py
Python
HotelManagement/hotel_home/apps.py
michaelnutt2/DjangoHotelManagementApp
b868dc08cce9c9f669a00b2aabc8d7378a6763a3
[ "MIT" ]
null
null
null
HotelManagement/hotel_home/apps.py
michaelnutt2/DjangoHotelManagementApp
b868dc08cce9c9f669a00b2aabc8d7378a6763a3
[ "MIT" ]
null
null
null
HotelManagement/hotel_home/apps.py
michaelnutt2/DjangoHotelManagementApp
b868dc08cce9c9f669a00b2aabc8d7378a6763a3
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HotelHomeConfig(AppConfig): name = 'hotel_home'
15.666667
33
0.765957
11
94
6.454545
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.159574
94
5
34
18.8
0.898734
0
0
0
0
0
0.106383
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
4ac75126c71893b61c07505f3f0d34ab35b5baff
25
py
Python
bak/__init__.py
mike-k0/bak
29fedad033f5b3f57d86246efb5647dca0363fec
[ "MIT" ]
25
2020-10-29T00:02:30.000Z
2021-10-09T15:18:43.000Z
bak/__init__.py
mike-k0/bak
29fedad033f5b3f57d86246efb5647dca0363fec
[ "MIT" ]
53
2020-10-28T23:32:26.000Z
2021-11-11T01:19:16.000Z
bak/__init__.py
mike-k0/bak
29fedad033f5b3f57d86246efb5647dca0363fec
[ "MIT" ]
3
2020-10-28T23:33:45.000Z
2021-10-15T18:17:02.000Z
BAK_VERSION = "0.2.2a10"
12.5
24
0.68
5
25
3.2
1
0
0
0
0
0
0
0
0
0
0
0.227273
0.12
25
1
25
25
0.5
0
0
0
0
0
0.32
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
434eb7803d7607d0c0dd65a52a48dd4773fa1b67
1,319
py
Python
tests/conftest.py
sixty-north/intentionally-blank
ef00c91003811b05170f417a3acbcf4bf92bd643
[ "MIT" ]
null
null
null
tests/conftest.py
sixty-north/intentionally-blank
ef00c91003811b05170f417a3acbcf4bf92bd643
[ "MIT" ]
null
null
null
tests/conftest.py
sixty-north/intentionally-blank
ef00c91003811b05170f417a3acbcf4bf92bd643
[ "MIT" ]
null
null
null
from pathlib import Path import pytest DATA_DIRPATH = Path(__file__).parent / "data" @pytest.fixture() def airtravel_empty_file(): airtravel_filepath = DATA_DIRPATH / "airtravel_empty.py.txt" with open(airtravel_filepath, "rt", encoding="utf8") as f: yield f @pytest.fixture() def airtravel_ragged_file(): airtravel_filepath = DATA_DIRPATH / "airtravel_ragged.py.txt" with open(airtravel_filepath, "rt", encoding="utf8") as f: yield f @pytest.fixture() def airtravel_without_eof_newline_file(): airtravel_filepath = DATA_DIRPATH / "airtravel_without_eof_newline.py.txt" with open(airtravel_filepath, "rt", encoding="utf8") as f: yield f @pytest.fixture() def airtravel_leading_file(): airtravel_filepath = DATA_DIRPATH / "airtravel_leading.py.txt" with open(airtravel_filepath, "rt", encoding="utf8") as f: yield f @pytest.fixture() def airtravel_trailing_file(): airtravel_filepath = DATA_DIRPATH / "airtravel_trailing.py.txt" with open(airtravel_filepath, "rt", encoding="utf8") as f: yield f @pytest.fixture() def airtravel_with_trailing_empty_lines_file(): airtravel_filepath = DATA_DIRPATH / "airtravel_with_trailing_empty_lines.py.txt" with open(airtravel_filepath, "rt", encoding="utf8") as f: yield f
27.479167
84
0.72555
172
1,319
5.267442
0.180233
0.225166
0.10596
0.165563
0.809051
0.760486
0.488962
0.488962
0.488962
0.488962
0
0.005445
0.164519
1,319
47
85
28.06383
0.816697
0
0
0.545455
0
0
0.160728
0.130402
0
0
0
0
0
1
0.181818
false
0
0.060606
0
0.242424
0
0
0
0
null
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
437155b4e9c7965a47a8e3c7e50d9eaa4363e8bb
266
py
Python
src/gedml/launcher/creators/factories/managers_creator.py
zbr17/GeDML
83f6f835e7c3319e32432b3013820f98476cc96c
[ "MIT" ]
25
2021-09-06T13:26:02.000Z
2022-01-06T13:25:24.000Z
src/gedml/launcher/creators/factories/managers_creator.py
zbr17/GeDML
83f6f835e7c3319e32432b3013820f98476cc96c
[ "MIT" ]
1
2021-09-09T08:29:29.000Z
2021-09-13T15:05:59.000Z
src/gedml/launcher/creators/factories/managers_creator.py
zbr17/GeDML
83f6f835e7c3319e32432b3013820f98476cc96c
[ "MIT" ]
2
2021-09-07T08:44:41.000Z
2021-09-09T08:31:55.000Z
from .base_creator import BaseCreator from ... import managers from ...misc import utils class managersCreator(BaseCreator): def __init__(self, **kwargs): super().__init__(**kwargs) def prepare_packages(self): self.package = [managers]
24.181818
37
0.68797
29
266
5.965517
0.62069
0
0
0
0
0
0
0
0
0
0
0
0.199248
266
10
38
26.6
0.812207
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.375
0
0.75
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
1
0
1
0
0
4
43948e30c4b791f958aa10a53dac345e9d1d16cb
128
py
Python
BigBuyPy/_tracking_api_methods.py
devandrepascoa/BigBuyPy
d69277cdf4cadc9922205600c63a2de0700c221d
[ "MIT" ]
null
null
null
BigBuyPy/_tracking_api_methods.py
devandrepascoa/BigBuyPy
d69277cdf4cadc9922205600c63a2de0700c221d
[ "MIT" ]
null
null
null
BigBuyPy/_tracking_api_methods.py
devandrepascoa/BigBuyPy
d69277cdf4cadc9922205600c63a2de0700c221d
[ "MIT" ]
null
null
null
class TrackingMixin: def __init__(self): raise NotImplementedError("This Class is not supposed to be instantiated")
32
82
0.742188
15
128
6.066667
0.933333
0
0
0
0
0
0
0
0
0
0
0
0.195313
128
3
83
42.666667
0.883495
0
0
0
0
0
0.351563
0
0
0
0
0
0
1
0.333333
false
0
0
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
1
0
0
0
0
1
0
0
4
4397b98a5f24e45d58ed06f169adab7183f9c275
386
py
Python
eltyer/models/__init__.py
ELTYER/eltyer-python-client
b60585161dbbb23632e2a9c987f300f493b07939
[ "Apache-2.0" ]
1
2022-01-06T10:32:32.000Z
2022-01-06T10:32:32.000Z
eltyer/models/__init__.py
ELTYER/eltyer-python-client
b60585161dbbb23632e2a9c987f300f493b07939
[ "Apache-2.0" ]
10
2022-01-06T11:15:32.000Z
2022-03-12T09:56:15.000Z
eltyer/models/__init__.py
ELTYER/eltyer-python-client
b60585161dbbb23632e2a9c987f300f493b07939
[ "Apache-2.0" ]
null
null
null
from eltyer.models.order_type import OrderType from eltyer.models.order_side import OrderSide from eltyer.models.order_status import OrderStatus from eltyer.models.order import Order from eltyer.models.position import Position from eltyer.models.portfolio import Portfolio __all__ = [ "OrderType", "OrderSide", "OrderStatus", "Order", "Position", "Portfolio" ]
24.125
50
0.764249
46
386
6.26087
0.304348
0.208333
0.333333
0.291667
0
0
0
0
0
0
0
0
0.15285
386
15
51
25.733333
0.880734
0
0
0
0
0
0.132124
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
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
0
0
1
0
0
0
0
4
43ae2c60e12cfb1b5c700196725b5b79a73bf2e5
204
py
Python
heroku-code/backend/services.py
nd-0r/Musiquity
768e37201a793501c9e2f7972266d24d49fc3cf1
[ "MIT" ]
null
null
null
heroku-code/backend/services.py
nd-0r/Musiquity
768e37201a793501c9e2f7972266d24d49fc3cf1
[ "MIT" ]
null
null
null
heroku-code/backend/services.py
nd-0r/Musiquity
768e37201a793501c9e2f7972266d24d49fc3cf1
[ "MIT" ]
1
2021-10-02T04:03:55.000Z
2021-10-02T04:03:55.000Z
from backend.service_components.spotify import Spotify from backend.service_components.youtube import YouTube services = { 'spotify': Spotify(), 'youtube_music': YouTube(), 'youtube': YouTube(), }
22.666667
54
0.754902
22
204
6.863636
0.409091
0.145695
0.238411
0.370861
0
0
0
0
0
0
0
0
0.122549
204
8
55
25.5
0.843575
0
0
0
0
0
0.132353
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
43c828c6ae59f409ab08587481038cd2762c4fbc
256
py
Python
spookyaction/ui.py
adam-short/spookyaction
a999050e877750715f43f28a8c5923258267eb63
[ "MIT" ]
2
2017-10-03T13:38:16.000Z
2018-07-24T18:46:00.000Z
spookyaction/ui.py
adam-short/spookyaction
a999050e877750715f43f28a8c5923258267eb63
[ "MIT" ]
null
null
null
spookyaction/ui.py
adam-short/spookyaction
a999050e877750715f43f28a8c5923258267eb63
[ "MIT" ]
null
null
null
import pyautogui class GUI_INTERFACE(): def __init__(self): pass def keywrite(self, *args, **kwargs): pyautogui.typewrite(list(args), interval=kwargs.get("delay", 0.1)) def write(self, msg): pyautogui.typewrite(msg)
19.692308
74
0.636719
31
256
5.096774
0.677419
0.227848
0
0
0
0
0
0
0
0
0
0.010101
0.226563
256
12
75
21.333333
0.787879
0
0
0
0
0
0.019531
0
0
0
0
0
0
1
0.375
false
0.125
0.125
0
0.625
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
78d8f9830ab4b08602501e59b745ee90dfad2d9a
66
py
Python
py_advanced_search_list_prod/__init__.py
saurabhranem/python_library
04ba056468d96e978a64427179444de058e95d77
[ "MIT" ]
null
null
null
py_advanced_search_list_prod/__init__.py
saurabhranem/python_library
04ba056468d96e978a64427179444de058e95d77
[ "MIT" ]
null
null
null
py_advanced_search_list_prod/__init__.py
saurabhranem/python_library
04ba056468d96e978a64427179444de058e95d77
[ "MIT" ]
null
null
null
name = "py_advanced_search_list_prod" from .function import search
33
37
0.848485
10
66
5.2
0.9
0
0
0
0
0
0
0
0
0
0
0
0.090909
66
2
38
33
0.866667
0
0
0
0
0
0.41791
0.41791
0
0
0
0
0
1
0
false
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
1
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
78ee17ad6c215c2f1d45d303f2c91aed43c0207b
138
py
Python
switchboard/apps.py
Duke-GCB/D4S2
47bef4b632967440608f2cc7a3fc31c32b2060fa
[ "MIT" ]
null
null
null
switchboard/apps.py
Duke-GCB/D4S2
47bef4b632967440608f2cc7a3fc31c32b2060fa
[ "MIT" ]
138
2016-09-23T18:09:18.000Z
2022-03-03T15:50:19.000Z
switchboard/apps.py
Duke-GCB/D4S2
47bef4b632967440608f2cc7a3fc31c32b2060fa
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class SwitchboardConfig(AppConfig): name = 'switchboard'
17.25
39
0.804348
15
138
7.066667
0.8
0
0
0
0
0
0
0
0
0
0
0
0.144928
138
7
40
19.714286
0.898305
0
0
0
0
0
0.07971
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
60081fe1c608f9c0fe15ca534abcf7914d11ffb0
101
bzl
Python
third_party/bazel_skylib/lib/shell.bzl
jblebrun/arcs
11e69d95d7e0972198fb40847b392284a0590c11
[ "BSD-Source-Code" ]
57
2017-05-17T02:27:13.000Z
2022-03-24T07:45:39.000Z
third_party/bazel_skylib/lib/shell.bzl
jblebrun/arcs
11e69d95d7e0972198fb40847b392284a0590c11
[ "BSD-Source-Code" ]
2,687
2017-04-28T01:25:03.000Z
2022-01-07T13:51:39.000Z
third_party/bazel_skylib/lib/shell.bzl
jblebrun/arcs
11e69d95d7e0972198fb40847b392284a0590c11
[ "BSD-Source-Code" ]
52
2017-04-28T00:06:50.000Z
2021-08-29T05:36:06.000Z
"""Re-exports shell rule.""" load("@bazel_skylib//lib:shell.bzl", _shell = "shell") shell = _shell
16.833333
54
0.663366
14
101
4.571429
0.642857
0.46875
0.46875
0
0
0
0
0
0
0
0
0
0.118812
101
5
55
20.2
0.719101
0.217822
0
0
0
0
0.452055
0.383562
0
0
0
0
0
1
0
false
0
0
0
0
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
602ce4f2a5545176f7cf35e472a5dc5e881b1331
864
py
Python
fgivenx/__init__.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
11
2017-10-13T11:04:53.000Z
2021-03-26T15:54:12.000Z
fgivenx/__init__.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
16
2018-08-01T09:25:08.000Z
2022-03-04T12:29:52.000Z
fgivenx/__init__.py
Stefan-Heimersheim/fgivenx
ef8b02f47eea24af4de1a17088c092ef9d523fec
[ "MIT" ]
12
2018-02-04T20:34:01.000Z
2021-12-10T10:58:20.000Z
""" The main driving routines for this package are: * :func:`plot_contours <fgivenx.drivers.plot_contours>` * :func:`plot_lines <fgivenx.drivers.plot_lines>` * :func:`plot_dkl <fgivenx.drivers.plot_dkl>` * :func:`samples_from_getdist_chains <fgivenx.samples.samples_from_getdist_chains>` Example import and usage: >>> import numpy >>> from fgivenx import plot_contours, plot_lines, \ ... plot_dkl, samples_from_getdist_chains >>> >>> file_root = '/my/getdist/file/root' >>> params = ['m', 'c'] >>> samples = samples_from_getdist_chains(params, file_root) >>> x = numpy.linspace(-1, 1, 100) >>> >>> def f(x, theta): >>> m, c = params >>> y = m * x + c >>> return y >>> >>> plot_contours(f, x, samples) """ from fgivenx.drivers import plot_contours, plot_lines, plot_dkl from fgivenx.samples import samples_from_getdist_chains
27
63
0.686343
118
864
4.771186
0.330508
0.117229
0.159858
0.213144
0.230906
0.120782
0.120782
0
0
0
0
0.006859
0.15625
864
31
64
27.870968
0.765432
0.846065
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
602f51358f9816de2df6a22cb5b180fb8a4cfd8a
106
py
Python
setup.py
kajusz/ufscreenadsclient
0151edec0117161c522a87643eef2f7be214210c
[ "MIT" ]
null
null
null
setup.py
kajusz/ufscreenadsclient
0151edec0117161c522a87643eef2f7be214210c
[ "MIT" ]
null
null
null
setup.py
kajusz/ufscreenadsclient
0151edec0117161c522a87643eef2f7be214210c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from distutils.core import setup import py2exe setup(console=['ufads.py'])
15.142857
33
0.707547
15
106
5
0.866667
0
0
0
0
0
0
0
0
0
0
0.022472
0.160377
106
6
34
17.666667
0.820225
0.198113
0
0
0
0
0.102564
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
60310ecf6894b6df26c4eba52269c65aa4c79279
498
py
Python
lzhw/pq.py
MNoorFawi/lzhw
97beb8ad13e3fdf09358ce3d28084fa03389283a
[ "MIT" ]
4
2020-05-29T02:40:04.000Z
2021-04-08T17:35:58.000Z
lzhw/pq.py
MNoorFawi/lzhw
97beb8ad13e3fdf09358ce3d28084fa03389283a
[ "MIT" ]
1
2020-05-29T02:34:51.000Z
2020-05-29T06:24:11.000Z
lzhw/pq.py
MNoorFawi/lzhw
97beb8ad13e3fdf09358ce3d28084fa03389283a
[ "MIT" ]
4
2020-05-29T02:32:14.000Z
2022-01-14T15:55:02.000Z
from heapq import heappop, heappush ## to store codes for huffman coding class CodeHeap(): def __init__(self): self._container = [] def push(self, item): heappush(self._container, item) # in by sort def pop(self): return heappop(self._container)#.popleft() # FIFO def __getitem__(self, item): return self._container[item] def __len__(self): return len(self._container) def __repr__(self): return repr(self._container)
22.636364
58
0.640562
60
498
4.95
0.483333
0.262626
0.107744
0
0
0
0
0
0
0
0
0
0.25502
498
21
59
23.714286
0.800539
0.12249
0
0
0
0
0
0
0
0
0
0
0
1
0.428571
false
0
0.071429
0.285714
0.857143
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
6064386fa8709857e003fa79000944ec475f5ea5
8,244
py
Python
onnxruntime/core/flatbuffers/ort_flatbuffers_py/experimental/fbs/Graph.py
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
6,036
2019-05-07T06:03:57.000Z
2022-03-31T17:59:54.000Z
onnxruntime/core/flatbuffers/ort_flatbuffers_py/experimental/fbs/Graph.py
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
5,730
2019-05-06T23:04:55.000Z
2022-03-31T23:55:56.000Z
onnxruntime/core/flatbuffers/ort_flatbuffers_py/experimental/fbs/Graph.py
dennyac/onnxruntime
d5175795d2b7f2db18b0390f394a49238f814668
[ "MIT" ]
1,566
2019-05-07T01:30:07.000Z
2022-03-31T17:06:50.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: fbs import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class Graph(object): __slots__ = ['_tab'] @classmethod def GetRootAsGraph(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Graph() x.Init(buf, n + offset) return x @classmethod def GraphBufferHasIdentifier(cls, buf, offset, size_prefixed=False): return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4F\x52\x54\x4D", size_prefixed=size_prefixed) # Graph def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) # Graph def Initializers(self, j): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) if o != 0: x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) from ort_flatbuffers_py.experimental.fbs.Tensor import Tensor obj = Tensor() obj.Init(self._tab.Bytes, x) return obj return None # Graph def InitializersLength(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) if o != 0: return self._tab.VectorLen(o) return 0 # Graph def InitializersIsNone(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) return o == 0 # Graph def NodeArgs(self, j): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) if o != 0: x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) from ort_flatbuffers_py.experimental.fbs.ValueInfo import ValueInfo obj = ValueInfo() obj.Init(self._tab.Bytes, x) return obj return None # Graph def NodeArgsLength(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) if o != 0: return self._tab.VectorLen(o) return 0 # Graph def NodeArgsIsNone(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) return o == 0 # Graph def Nodes(self, j): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) if o != 0: x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) from ort_flatbuffers_py.experimental.fbs.Node import Node obj = Node() obj.Init(self._tab.Bytes, x) return obj return None # Graph def NodesLength(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) if o != 0: return self._tab.VectorLen(o) return 0 # Graph def NodesIsNone(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) return o == 0 # Graph def MaxNodeIndex(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) if o != 0: return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos) return 0 # Graph def NodeEdges(self, j): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) if o != 0: x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) from ort_flatbuffers_py.experimental.fbs.NodeEdge import NodeEdge obj = NodeEdge() obj.Init(self._tab.Bytes, x) return obj return None # Graph def NodeEdgesLength(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) if o != 0: return self._tab.VectorLen(o) return 0 # Graph def NodeEdgesIsNone(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) return o == 0 # Graph def Inputs(self, j): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) if o != 0: a = self._tab.Vector(o) return self._tab.String(a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) return "" # Graph def InputsLength(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) if o != 0: return self._tab.VectorLen(o) return 0 # Graph def InputsIsNone(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) return o == 0 # Graph def Outputs(self, j): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16)) if o != 0: a = self._tab.Vector(o) return self._tab.String(a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) return "" # Graph def OutputsLength(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16)) if o != 0: return self._tab.VectorLen(o) return 0 # Graph def OutputsIsNone(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16)) return o == 0 # Graph def SparseInitializers(self, j): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18)) if o != 0: x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) from ort_flatbuffers_py.experimental.fbs.SparseTensor import SparseTensor obj = SparseTensor() obj.Init(self._tab.Bytes, x) return obj return None # Graph def SparseInitializersLength(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18)) if o != 0: return self._tab.VectorLen(o) return 0 # Graph def SparseInitializersIsNone(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18)) return o == 0 def GraphStart(builder): builder.StartObject(8) def GraphAddInitializers(builder, initializers): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(initializers), 0) def GraphStartInitializersVector(builder, numElems): return builder.StartVector(4, numElems, 4) def GraphAddNodeArgs(builder, nodeArgs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(nodeArgs), 0) def GraphStartNodeArgsVector(builder, numElems): return builder.StartVector(4, numElems, 4) def GraphAddNodes(builder, nodes): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(nodes), 0) def GraphStartNodesVector(builder, numElems): return builder.StartVector(4, numElems, 4) def GraphAddMaxNodeIndex(builder, maxNodeIndex): builder.PrependUint32Slot(3, maxNodeIndex, 0) def GraphAddNodeEdges(builder, nodeEdges): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(nodeEdges), 0) def GraphStartNodeEdgesVector(builder, numElems): return builder.StartVector(4, numElems, 4) def GraphAddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0) def GraphStartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) def GraphAddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0) def GraphStartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) def GraphAddSparseInitializers(builder, sparseInitializers): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(sparseInitializers), 0) def GraphStartSparseInitializersVector(builder, numElems): return builder.StartVector(4, numElems, 4) def GraphEnd(builder): return builder.EndObject()
38.166667
170
0.664241
988
8,244
5.396761
0.134615
0.066954
0.152663
0.236309
0.637284
0.61928
0.562266
0.562266
0.562266
0.493999
0
0.017852
0.232169
8,244
215
171
38.344186
0.824487
0.026565
0
0.596273
1
0
0.0025
0
0
0
0
0
0
1
0.26087
false
0
0.049689
0.055901
0.565217
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
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
607b67df1f5280639cef98fb0dbbe62e79b0bcaa
727
py
Python
webStorm-APICloud/python_tools/Lib/new.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
81
2017-03-13T08:24:01.000Z
2021-04-02T09:48:38.000Z
Macros/Python/new.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
6
2017-04-30T08:36:55.000Z
2017-09-22T01:37:28.000Z
Macros/Python/new.py
rec/DMXIS
540baa59df6f4ae39990e5888f90b95caa362279
[ "Artistic-2.0" ]
41
2017-03-18T14:11:58.000Z
2021-04-14T05:06:09.000Z
"""Create new objects of various types. Deprecated. This module is no longer required except for backward compatibility. Objects of most types can now be created by calling the type object. """ from warnings import warnpy3k warnpy3k("The 'new' module has been removed in Python 3.0; use the 'types' " "module instead.", stacklevel=2) del warnpy3k from types import ClassType as classobj from types import FunctionType as function from types import InstanceType as instance from types import MethodType as instancemethod from types import ModuleType as module # CodeType is not accessible in restricted execution mode try: from types import CodeType as code except ImportError: pass
33.045455
77
0.759285
102
727
5.411765
0.617647
0.097826
0.163043
0
0
0
0
0
0
0
0
0.010345
0.202201
727
21
78
34.619048
0.941379
0.337001
0
0
0
0
0.176211
0
0
0
0
0
0
1
0
true
0.076923
0.615385
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
4
60a0fb90ee1b1dcb5ab8eba52f1d5fd5a3c0e7b6
111
py
Python
tools/slim/slim.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
32
2016-04-18T15:29:59.000Z
2022-03-27T08:35:29.000Z
tools/slim/slim.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
116
2015-10-27T04:33:09.000Z
2022-02-22T02:02:47.000Z
tools/slim/slim.py
dcortie/refnx
037434fa0a64755f72c540d75063986bd517ab10
[ "BSD-3-Clause" ]
22
2015-09-29T23:21:15.000Z
2022-02-27T18:12:18.000Z
import pandas import h5py import xlrd if __name__ == "__main__": from refnx.reduce import main main()
13.875
33
0.711712
15
111
4.733333
0.666667
0
0
0
0
0
0
0
0
0
0
0.011494
0.216216
111
7
34
15.857143
0.804598
0
0
0
0
0
0.072072
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4
60be088dcf8790e0441c0ffad2121cd826ee1297
22
py
Python
djangocms_text_ckeditor/__init__.py
webu/djangocms-text-ckeditor
03e3139d6264d2ec5e7a61ad37c231fbdd502e0b
[ "BSD-3-Clause" ]
255
2018-12-01T21:41:40.000Z
2022-03-29T02:53:08.000Z
djangocms_text_ckeditor/__init__.py
webu/djangocms-text-ckeditor
03e3139d6264d2ec5e7a61ad37c231fbdd502e0b
[ "BSD-3-Clause" ]
32
2018-12-19T16:08:13.000Z
2021-08-16T04:26:46.000Z
djangocms_text_ckeditor/__init__.py
webu/djangocms-text-ckeditor
03e3139d6264d2ec5e7a61ad37c231fbdd502e0b
[ "BSD-3-Clause" ]
34
2018-12-01T22:00:34.000Z
2021-10-02T15:17:14.000Z
__version__ = "2.4.2"
11
21
0.636364
4
22
2.5
0.75
0
0
0
0
0
0
0
0
0
0
0.157895
0.136364
22
1
22
22
0.368421
0
0
0
0
0
0.227273
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
60db9cbd03b0b5d96cb440442f036d7ed1650ff5
446
py
Python
config.py
daleal/queue
71bcfbf492026ef1125fcecddbdc12a81f007dc1
[ "MIT" ]
null
null
null
config.py
daleal/queue
71bcfbf492026ef1125fcecddbdc12a81f007dc1
[ "MIT" ]
null
null
null
config.py
daleal/queue
71bcfbf492026ef1125fcecddbdc12a81f007dc1
[ "MIT" ]
null
null
null
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): DEBUG = False TESTING = False CSRF_ENABLED = True SECRET_KEY = os.environ.get('SQLALCHEMY_SECRET_KEY') SQLALCHEMY_DATABASE_URI = ( os.environ.get('DATABASE_URL') or f'postgresql://' f'{os.environ.get("DB_USERNAME")}:{os.environ.get("DB_PASSWORD")}@' f'{os.environ.get("DB_HOST")}/{os.environ.get("DB_NAME")}' )
29.733333
75
0.656951
61
446
4.557377
0.52459
0.194245
0.258993
0.201439
0.107914
0
0
0
0
0
0
0
0.174888
446
14
76
31.857143
0.755435
0
0
0
0
0
0.369955
0.313901
0
0
0
0
0
1
0
false
0.083333
0.083333
0
0.583333
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
4
71483b2d7d5ebe814ed37fe59c4794761ba83070
264
py
Python
boto3_type_annotations/boto3_type_annotations/eks/waiter.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
119
2018-12-01T18:20:57.000Z
2022-02-02T10:31:29.000Z
boto3_type_annotations/boto3_type_annotations/eks/waiter.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
15
2018-11-16T00:16:44.000Z
2021-11-13T03:44:18.000Z
boto3_type_annotations/boto3_type_annotations/eks/waiter.py
cowboygneox/boto3_type_annotations
450dce1de4e066b939de7eac2ec560ed1a7ddaa2
[ "MIT" ]
11
2019-05-06T05:26:51.000Z
2021-09-28T15:27:59.000Z
from typing import Dict from botocore.waiter import Waiter class ClusterActive(Waiter): def wait(self, name: str, WaiterConfig: Dict = None): pass class ClusterDeleted(Waiter): def wait(self, name: str, WaiterConfig: Dict = None): pass
20.307692
57
0.693182
33
264
5.545455
0.515152
0.098361
0.142077
0.185792
0.52459
0.52459
0.52459
0.52459
0.52459
0.52459
0
0
0.219697
264
12
58
22
0.88835
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.75
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
715b2e51a508239a13d49233f2d0e39f4862ab77
21
py
Python
api/core/constants.py
tropicoo/yt-dlp-bot
d9d9b42ced8ef2eede453c659c9272078f8ab2eb
[ "BSD-3-Clause" ]
2
2022-03-10T03:07:23.000Z
2022-03-22T07:36:16.000Z
api/core/constants.py
tropicoo/yt-dlp-bot
d9d9b42ced8ef2eede453c659c9272078f8ab2eb
[ "BSD-3-Clause" ]
1
2022-03-18T08:03:26.000Z
2022-03-18T08:03:26.000Z
api/core/constants.py
tropicoo/yt-dlp-bot
d9d9b42ced8ef2eede453c659c9272078f8ab2eb
[ "BSD-3-Clause" ]
null
null
null
GZIP_MIN_SIZE = 1000
10.5
20
0.809524
4
21
3.75
1
0
0
0
0
0
0
0
0
0
0
0.222222
0.142857
21
1
21
21
0.611111
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
719d185a5ee65e8001cf3e4f71a6961fe138a88a
6,462
py
Python
tests/responses/test_static_response.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
4
2020-09-08T08:14:21.000Z
2022-01-27T19:22:53.000Z
tests/responses/test_static_response.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
19
2018-02-13T05:51:25.000Z
2022-03-27T22:48:11.000Z
tests/responses/test_static_response.py
TeoDV/jj
a58d91ad7b37ba3115daea4890190abede8f3353
[ "Apache-2.0" ]
3
2017-11-17T13:25:23.000Z
2022-02-03T12:57:00.000Z
import os import sys if sys.version_info >= (3, 8): from unittest import IsolatedAsyncioTestCase as TestCase else: from unittest import TestCase import pytest import jj from jj import server_version from jj.apps import create_app from jj.handlers import default_handler from jj.matchers import MethodMatcher from jj.resolvers import Registry, ReversedResolver from jj.responses import StaticResponse from .._test_utils import run class TestStaticResponse(TestCase): def make_app_with_response(self, *args, **kwargs): class App(jj.App): resolver = self.resolver @MethodMatcher("*", resolver=resolver) async def handler(request): return StaticResponse(*args, **kwargs) return App() def make_path(self, path): return os.path.join(os.path.dirname(__file__), path) def setUp(self): self.default_app = create_app() self.resolver = ReversedResolver(Registry(), self.default_app, default_handler) # MimeType @pytest.mark.asyncio async def test_response_without_mimetype(self): path = self.make_path("fixtures/unknown_mime_type") with open(path, "rb") as f: body = f.read() app = self.make_app_with_response(path) async with run(app) as client: response = await client.get("/") # status self.assertEqual(response.status, 200) self.assertEqual(response.reason, "OK") # headers self.assertEqual(response.headers.get("Server"), server_version) self.assertEqual(response.headers.get("Content-Length"), str(len(body))) self.assertEqual(response.headers.get("Content-Type"), "application/octet-stream") self.assertEqual(response.headers.get("Accept-Ranges"), "bytes") self.assertIsNotNone(response.headers.get("Last-Modified")) self.assertIsNotNone(response.headers.get("Date")) # body raw = await response.read() self.assertEqual(raw, body) @pytest.mark.asyncio async def test_response_with_mimetype(self): path = self.make_path("fixtures/users.json") with open(path, "rb") as f: body = f.read() app = self.make_app_with_response(path) async with run(app) as client: response = await client.get("/") # status self.assertEqual(response.status, 200) self.assertEqual(response.reason, "OK") # headers self.assertEqual(response.headers.get("Server"), server_version) self.assertEqual(response.headers.get("Content-Length"), str(len(body))) self.assertEqual(response.headers.get("Content-Type"), "application/json") self.assertEqual(response.headers.get("Accept-Ranges"), "bytes") self.assertIsNotNone(response.headers.get("Last-Modified")) self.assertIsNotNone(response.headers.get("Date")) # body raw = await response.read() self.assertEqual(raw, body) # Attachment @pytest.mark.asyncio async def test_response_with_attachment(self): path = self.make_path("fixtures/users.json") app = self.make_app_with_response(path, attachment=True) async with run(app) as client: response = await client.get("/") self.assertEqual(response.headers.get("Content-Type"), "application/json") self.assertEqual(response.headers.get("Content-Disposition"), "attachment") @pytest.mark.asyncio async def test_response_with_attachment_and_custom_header(self): path = self.make_path("fixtures/users.json") custom_header_key, custom_header_val = "Cutom-Header", "Value" app = self.make_app_with_response(path, attachment=True, headers={ custom_header_key: custom_header_val }) async with run(app) as client: response = await client.get("/") self.assertEqual(response.headers.get("Content-Type"), "application/json") self.assertEqual(response.headers.get("Content-Disposition"), "attachment") self.assertEqual(response.headers.get(custom_header_key), custom_header_val) @pytest.mark.asyncio async def test_response_with_attachment_and_filename(self): path = self.make_path("fixtures/users.json") app = self.make_app_with_response(path, attachment="users.json") async with run(app) as client: response = await client.get("/") self.assertEqual(response.headers.get("Content-Type"), "application/json") self.assertEqual(response.headers.get("Content-Disposition"), 'attachment; filename="users.json"') # Headers @pytest.mark.asyncio async def test_response_headers(self): path = self.make_path("fixtures/users.json") custom_header_key, custom_header_val = "Cutom-Header", "Value" app = self.make_app_with_response(path, headers={custom_header_key: custom_header_val}) async with run(app) as client: response = await client.get("/") self.assertEqual(response.headers.get(custom_header_key), custom_header_val) self.assertEqual(response.headers.get("Server"), server_version) @pytest.mark.asyncio async def test_response_with_custom_server_header(self): path = self.make_path("fixtures/users.json") server_header = "server version x" app = self.make_app_with_response(path, headers={"Server": server_header}) async with run(app) as client: response = await client.get("/") self.assertEqual(response.headers.get("Server"), server_header) @pytest.mark.asyncio async def test_response_with_expect_header(self): app = self.make_app_with_response(self.make_path("fixtures/users.json")) async with run(app) as client: response = await client.post("/", json={}, expect100=True) self.assertEqual(response.status, 200) @pytest.mark.asyncio async def test_response_with_incorrect_expect_header(self): app = self.make_app_with_response(self.make_path("fixtures/users.json")) async with run(app) as client: response = await client.post("/", json={}, headers={"Expect": "banana"}) self.assertEqual(response.status, 417)
39.888889
95
0.655525
754
6,462
5.456233
0.143236
0.094798
0.134176
0.131259
0.781721
0.768352
0.768352
0.736753
0.666262
0.649976
0
0.003418
0.230269
6,462
161
96
40.136646
0.823683
0.010368
0
0.565574
0
0
0.102428
0.01112
0
0
0
0
0.245902
1
0.02459
false
0
0.106557
0.008197
0.172131
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
71a22cab3a5f46c536fa8e2e24f0611fcff253c2
1,091
py
Python
PyOpenGL-3.0.2/OpenGL/raw/GL/ARB/base_instance.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/ARB/base_instance.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
PyOpenGL-3.0.2/OpenGL/raw/GL/ARB/base_instance.py
frederica07/Dragon_Programming_Process
c0dff2e20c1be6db5adc6f9977efae8f7f888ef5
[ "BSD-2-Clause" ]
null
null
null
'''Autogenerated by get_gl_extensions script, do not edit!''' from OpenGL import platform as _p, constants as _cs, arrays from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_ARB_base_instance' def _f( function ): return _p.createFunction( function,_p.GL,'GL_ARB_base_instance',False) @_f @_p.types(None,_cs.GLenum,_cs.GLint,_cs.GLsizei,_cs.GLsizei,_cs.GLuint) def glDrawArraysInstancedBaseInstance( mode,first,count,instancecount,baseinstance ):pass @_f @_p.types(None,_cs.GLenum,_cs.GLsizei,_cs.GLenum,ctypes.POINTER(_cs.void),_cs.GLsizei,_cs.GLuint) def glDrawElementsInstancedBaseInstance( mode,count,type,indices,instancecount,baseinstance ):pass @_f @_p.types(None,_cs.GLenum,_cs.GLsizei,_cs.GLenum,ctypes.POINTER(_cs.void),_cs.GLsizei,_cs.GLint,_cs.GLuint) def glDrawElementsInstancedBaseVertexBaseInstance( mode,count,type,indices,instancecount,basevertex,baseinstance ):pass def glInitBaseInstanceARB(): '''Return boolean indicating whether this extension is available''' from OpenGL import extensions return extensions.hasGLExtension( EXTENSION_NAME )
45.458333
119
0.810266
144
1,091
5.868056
0.409722
0.063905
0.078107
0.039053
0.346746
0.249704
0.249704
0.224852
0.224852
0.224852
0
0
0.08066
1,091
23
120
47.434783
0.842473
0.107241
0
0.166667
1
0
0.041537
0
0
0
0
0
0
1
0.277778
false
0.166667
0.222222
0.055556
0.611111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
71b222c5c9c70a70a2997d836484238a8b1ba5b4
118
py
Python
packages/jet_bridge_base/jet_bridge_base/models/table.py
bokal2/jet-bridge
dddc4f55c2d5a28c02ce9515dffc750e3887450f
[ "MIT" ]
1,247
2019-01-10T22:22:08.000Z
2022-03-29T20:54:32.000Z
packages/jet_bridge_base/jet_bridge_base/models/table.py
bokal2/jet-bridge
dddc4f55c2d5a28c02ce9515dffc750e3887450f
[ "MIT" ]
12
2019-03-15T20:06:14.000Z
2022-01-07T10:28:20.000Z
packages/jet_bridge_base/jet_bridge_base/models/table.py
bokal2/jet-bridge
dddc4f55c2d5a28c02ce9515dffc750e3887450f
[ "MIT" ]
130
2019-02-26T17:36:53.000Z
2022-03-17T22:46:27.000Z
class Table(object): def __init__(self, name, columns): self.name = name self.columns = columns
16.857143
38
0.610169
14
118
4.857143
0.571429
0.235294
0
0
0
0
0
0
0
0
0
0
0.288136
118
6
39
19.666667
0.809524
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
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
1
0
0
0
0
0
0
0
4
71be47594919ee6ab8b06b58bf9977e0ebc86ecd
137
py
Python
get_drives.py
Digitwidgit/Code-Snippets-for-Socket-Programming
7e0a0744d3f16dcbe3e12b5ac5af2f9a01c655c3
[ "Unlicense" ]
null
null
null
get_drives.py
Digitwidgit/Code-Snippets-for-Socket-Programming
7e0a0744d3f16dcbe3e12b5ac5af2f9a01c655c3
[ "Unlicense" ]
null
null
null
get_drives.py
Digitwidgit/Code-Snippets-for-Socket-Programming
7e0a0744d3f16dcbe3e12b5ac5af2f9a01c655c3
[ "Unlicense" ]
null
null
null
import os, string available_drives = ['%s:' % d for d in string.ascii_uppercase if os.path.exists('%s:' % d)] print(available_drives)
34.25
92
0.70073
22
137
4.227273
0.681818
0.322581
0
0
0
0
0
0
0
0
0
0
0.145985
137
3
93
45.666667
0.794872
0
0
0
0
0
0.044776
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
71c5e1cecfeaf0d1d874eef2a5522176f948df01
45
py
Python
Chapter03/distribution/__init__.py
jvstinian/Python-Reinforcement-Learning-Projects
6c97c68351fc4af426cb5c3583d75aebfabac8aa
[ "MIT" ]
114
2018-10-20T15:32:59.000Z
2022-03-21T14:16:25.000Z
Chapter03/distribution/__init__.py
jvstinian/Python-Reinforcement-Learning-Projects
6c97c68351fc4af426cb5c3583d75aebfabac8aa
[ "MIT" ]
11
2018-10-18T12:39:42.000Z
2022-02-10T03:28:19.000Z
Chapter03/distribution/__init__.py
jvstinian/Python-Reinforcement-Learning-Projects
6c97c68351fc4af426cb5c3583d75aebfabac8aa
[ "MIT" ]
72
2018-10-12T13:02:32.000Z
2022-03-11T13:03:26.000Z
''' Created on 18 Sep 2017 @author: ywz '''
7.5
22
0.6
7
45
3.857143
1
0
0
0
0
0
0
0
0
0
0
0.171429
0.222222
45
5
23
9
0.6
0.8
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
71e567494ed9c2f265dc3d95f587cae686dc6803
70
py
Python
docs/labs/lab01/solutions/exercise1.py
lingcog/2019-CS109A
f1eaa62976fe989c3ad3f3ab4b8dd5d71574a2c3
[ "MIT" ]
442
2019-06-11T06:47:00.000Z
2022-03-12T11:19:31.000Z
docs/labs/lab01/solutions/exercise1.py
lelandroberts97/2019-CS109A
976da6b65c26fd3c5db285cbf9ec9cde92751a70
[ "MIT" ]
3
2019-09-23T17:32:51.000Z
2022-02-09T06:06:00.000Z
docs/labs/lab01/solutions/exercise1.py
lelandroberts97/2019-CS109A
976da6b65c26fd3c5db285cbf9ec9cde92751a70
[ "MIT" ]
486
2019-06-17T05:01:07.000Z
2022-03-13T20:30:44.000Z
a = 3 b = 4.0 c = a + b d = a - b e = a / b tup = (a, b, c, d, e) tup
8.75
21
0.357143
21
70
1.190476
0.428571
0.32
0
0
0
0
0
0
0
0
0
0.073171
0.414286
70
7
22
10
0.536585
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
1
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
71e7f2ebde65af1d41f2296cd17e025fd3f47b3a
1,056
py
Python
snek_case/sneks/cool_snek.py
ARMcK-hub/template-python
c5e8c48fc92dde522f91227189a3d4822c86d170
[ "MIT" ]
null
null
null
snek_case/sneks/cool_snek.py
ARMcK-hub/template-python
c5e8c48fc92dde522f91227189a3d4822c86d170
[ "MIT" ]
2
2022-02-24T02:58:57.000Z
2022-02-24T02:59:15.000Z
snek_case/sneks/cool_snek.py
ARMcK-hub/template-pyspark
d5ba2e0175cab449b2a3b345b2be8978a7d238a3
[ "MIT" ]
null
null
null
from .snek import Snek class CoolSnek(Snek): """ A really cool type of Snek. """ snek_type = "cool" snek = r""" /^\/^\ _|__| O| \/ /~ \_/ \ \____|__________/ \ \_______ \ `\ \ \ | | \ / / \ / / \ / / \ \ / / \ \ / / _----_ \ \ / / _-~ ~-_ | | ( ( _-~ _--_ ~-_ _/ | \ ~-____-~ _-~ ~-_ ~-_-~ / ~-_ _-~ ~-_ _-~ ~--______-~ ~-___-~ """
36.413793
64
0.122159
19
1,056
3.894737
0.631579
0
0
0
0
0
0
0
0
0
0
0
0.763258
1,056
28
65
37.714286
0.296
0.025568
0
0.181818
0
0
0.907614
0
0
0
0
0
0
1
0
false
0
0.045455
0
0.181818
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e0a0847fd4c84f2041ae5e1ad17b4fb88bfcd686
201
py
Python
udemy/python-video-workbook/my_progress/066.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/066.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
null
null
null
udemy/python-video-workbook/my_progress/066.py
djrgit/coursework
2a91da9b76cb1acbd12f3d8049f15d2e71f475a1
[ "MIT" ]
3
2018-08-13T23:14:22.000Z
2019-01-11T22:50:07.000Z
# Exercise 66 - Translator d = dict(weather = "clima", earth = "terra", rain = "chuva") def vocabulary(word): return d[word] if word in d else '' word = input('Enter word: ') print(vocabulary(word))
25.125
60
0.666667
29
201
4.62069
0.724138
0.208955
0
0
0
0
0
0
0
0
0
0.011976
0.169154
201
8
61
25.125
0.790419
0.119403
0
0
0
0
0.153409
0
0
0
0
0
0
1
0.2
false
0
0
0.2
0.4
0.2
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
1
0
0
0
4
e0a0f349a1b9e3e5c7644266d5db480a690643a4
62
py
Python
djsw_wrapper/models.py
ErintLabs/django-openapi-gen
0f39f0cc4ca98c34b989426851827e7764497156
[ "MIT" ]
4
2017-03-25T20:31:38.000Z
2017-04-02T08:55:51.000Z
djsw_wrapper/models.py
Ecognize/django-openapi-gen
0f39f0cc4ca98c34b989426851827e7764497156
[ "MIT" ]
18
2016-10-13T01:18:42.000Z
2017-05-11T12:41:43.000Z
djsw_wrapper/models.py
ErintLabs/django-openapi-gen
0f39f0cc4ca98c34b989426851827e7764497156
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # just to make ./manage.py check happy
31
38
0.612903
10
62
3.8
1
0
0
0
0
0
0
0
0
0
0
0.019608
0.177419
62
2
38
31
0.72549
0.935484
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
e0aad674bce7e7c5ed21ff556d65abba93132a21
113
py
Python
lib/spack/spack/test/util/unparse/__init__.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
348
2015-12-30T04:05:54.000Z
2022-02-21T10:57:53.000Z
lib/spack/spack/test/util/unparse/__init__.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3,994
2015-12-09T09:43:00.000Z
2017-11-04T02:46:39.000Z
lib/spack/spack/test/util/unparse/__init__.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
359
2015-12-16T18:25:55.000Z
2017-11-02T14:51:13.000Z
# Copyright (c) 2014-2021, Simon Percivall and Spack Project Developers. # # SPDX-License-Identifier: Python-2.0
28.25
72
0.761062
16
113
5.375
1
0
0
0
0
0
0
0
0
0
0
0.10101
0.123894
113
3
73
37.666667
0.767677
0.938053
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
e0addeb3795b577a2acff9075c83d401e135e2f3
10,526
py
Python
sdl2/sdl2_ttf.py
vaiorabbit/python-sdl2
77b4ce73d83d19dedc943ae7f56ee6f73f62ecad
[ "Zlib" ]
1
2018-03-12T01:54:40.000Z
2018-03-12T01:54:40.000Z
sdl2/sdl2_ttf.py
vaiorabbit/python-sdl2
77b4ce73d83d19dedc943ae7f56ee6f73f62ecad
[ "Zlib" ]
null
null
null
sdl2/sdl2_ttf.py
vaiorabbit/python-sdl2
77b4ce73d83d19dedc943ae7f56ee6f73f62ecad
[ "Zlib" ]
null
null
null
# Python-SDL2 : Yet another SDL2 wrapper for Python # # * https://github.com/vaiorabbit/python-sdl2 # # [NOTICE] This is an automatically generated file. import ctypes from .api import SDL2_API_NAMES, SDL2_API_ARGS_MAP, SDL2_API_RETVAL_MAP from .api import SDL2_TTF_API_NAMES, SDL2_TTF_API_ARGS_MAP, SDL2_TTF_API_RETVAL_MAP from .sdl2_pixels import SDL_Color # Define/Macro SDL_TTF_MAJOR_VERSION = 2 SDL_TTF_MINOR_VERSION = 0 SDL_TTF_PATCHLEVEL = 15 # Enum # Typedef # Struct # Function def setup_symbols(): SDL2_TTF_API_NAMES.append('TTF_Linked_Version') SDL2_TTF_API_ARGS_MAP['TTF_Linked_Version'] = None SDL2_TTF_API_RETVAL_MAP['TTF_Linked_Version'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_ByteSwappedUNICODE') SDL2_TTF_API_ARGS_MAP['TTF_ByteSwappedUNICODE'] = [ctypes.c_int] SDL2_TTF_API_RETVAL_MAP['TTF_ByteSwappedUNICODE'] = None SDL2_TTF_API_NAMES.append('TTF_Init') SDL2_TTF_API_ARGS_MAP['TTF_Init'] = None SDL2_TTF_API_RETVAL_MAP['TTF_Init'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_OpenFont') SDL2_TTF_API_ARGS_MAP['TTF_OpenFont'] = [ctypes.c_char_p, ctypes.c_int] SDL2_TTF_API_RETVAL_MAP['TTF_OpenFont'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_OpenFontIndex') SDL2_TTF_API_ARGS_MAP['TTF_OpenFontIndex'] = [ctypes.c_char_p, ctypes.c_int, ctypes.c_long] SDL2_TTF_API_RETVAL_MAP['TTF_OpenFontIndex'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_OpenFontRW') SDL2_TTF_API_ARGS_MAP['TTF_OpenFontRW'] = [ctypes.c_void_p, ctypes.c_int, ctypes.c_int] SDL2_TTF_API_RETVAL_MAP['TTF_OpenFontRW'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_OpenFontIndexRW') SDL2_TTF_API_ARGS_MAP['TTF_OpenFontIndexRW'] = [ctypes.c_void_p, ctypes.c_int, ctypes.c_int, ctypes.c_long] SDL2_TTF_API_RETVAL_MAP['TTF_OpenFontIndexRW'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_GetFontStyle') SDL2_TTF_API_ARGS_MAP['TTF_GetFontStyle'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_GetFontStyle'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_SetFontStyle') SDL2_TTF_API_ARGS_MAP['TTF_SetFontStyle'] = [ctypes.c_void_p, ctypes.c_int] SDL2_TTF_API_RETVAL_MAP['TTF_SetFontStyle'] = None SDL2_TTF_API_NAMES.append('TTF_GetFontOutline') SDL2_TTF_API_ARGS_MAP['TTF_GetFontOutline'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_GetFontOutline'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_SetFontOutline') SDL2_TTF_API_ARGS_MAP['TTF_SetFontOutline'] = [ctypes.c_void_p, ctypes.c_int] SDL2_TTF_API_RETVAL_MAP['TTF_SetFontOutline'] = None SDL2_TTF_API_NAMES.append('TTF_GetFontHinting') SDL2_TTF_API_ARGS_MAP['TTF_GetFontHinting'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_GetFontHinting'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_SetFontHinting') SDL2_TTF_API_ARGS_MAP['TTF_SetFontHinting'] = [ctypes.c_void_p, ctypes.c_int] SDL2_TTF_API_RETVAL_MAP['TTF_SetFontHinting'] = None SDL2_TTF_API_NAMES.append('TTF_FontHeight') SDL2_TTF_API_ARGS_MAP['TTF_FontHeight'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_FontHeight'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_FontAscent') SDL2_TTF_API_ARGS_MAP['TTF_FontAscent'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_FontAscent'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_FontDescent') SDL2_TTF_API_ARGS_MAP['TTF_FontDescent'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_FontDescent'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_FontLineSkip') SDL2_TTF_API_ARGS_MAP['TTF_FontLineSkip'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_FontLineSkip'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_GetFontKerning') SDL2_TTF_API_ARGS_MAP['TTF_GetFontKerning'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_GetFontKerning'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_SetFontKerning') SDL2_TTF_API_ARGS_MAP['TTF_SetFontKerning'] = [ctypes.c_void_p, ctypes.c_int] SDL2_TTF_API_RETVAL_MAP['TTF_SetFontKerning'] = None SDL2_TTF_API_NAMES.append('TTF_FontFaces') SDL2_TTF_API_ARGS_MAP['TTF_FontFaces'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_FontFaces'] = ctypes.c_long SDL2_TTF_API_NAMES.append('TTF_FontFaceIsFixedWidth') SDL2_TTF_API_ARGS_MAP['TTF_FontFaceIsFixedWidth'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_FontFaceIsFixedWidth'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_FontFaceFamilyName') SDL2_TTF_API_ARGS_MAP['TTF_FontFaceFamilyName'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_FontFaceFamilyName'] = ctypes.c_char_p SDL2_TTF_API_NAMES.append('TTF_FontFaceStyleName') SDL2_TTF_API_ARGS_MAP['TTF_FontFaceStyleName'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_FontFaceStyleName'] = ctypes.c_char_p SDL2_TTF_API_NAMES.append('TTF_GlyphIsProvided') SDL2_TTF_API_ARGS_MAP['TTF_GlyphIsProvided'] = [ctypes.c_void_p, ctypes.c_ushort] SDL2_TTF_API_RETVAL_MAP['TTF_GlyphIsProvided'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_GlyphMetrics') SDL2_TTF_API_ARGS_MAP['TTF_GlyphMetrics'] = [ctypes.c_void_p, ctypes.c_ushort, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_GlyphMetrics'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_SizeText') SDL2_TTF_API_ARGS_MAP['TTF_SizeText'] = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_void_p, ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_SizeText'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_SizeUTF8') SDL2_TTF_API_ARGS_MAP['TTF_SizeUTF8'] = [ctypes.c_void_p, ctypes.c_char_p, ctypes.c_void_p, ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_SizeUTF8'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_SizeUNICODE') SDL2_TTF_API_ARGS_MAP['TTF_SizeUNICODE'] = [ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_SizeUNICODE'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_RenderText_Solid') SDL2_TTF_API_ARGS_MAP['TTF_RenderText_Solid'] = [ctypes.c_void_p, ctypes.c_char_p, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderText_Solid'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderUTF8_Solid') SDL2_TTF_API_ARGS_MAP['TTF_RenderUTF8_Solid'] = [ctypes.c_void_p, ctypes.c_char_p, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderUTF8_Solid'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderUNICODE_Solid') SDL2_TTF_API_ARGS_MAP['TTF_RenderUNICODE_Solid'] = [ctypes.c_void_p, ctypes.c_void_p, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderUNICODE_Solid'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderGlyph_Solid') SDL2_TTF_API_ARGS_MAP['TTF_RenderGlyph_Solid'] = [ctypes.c_void_p, ctypes.c_ushort, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderGlyph_Solid'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderText_Shaded') SDL2_TTF_API_ARGS_MAP['TTF_RenderText_Shaded'] = [ctypes.c_void_p, ctypes.c_char_p, SDL_Color, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderText_Shaded'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderUTF8_Shaded') SDL2_TTF_API_ARGS_MAP['TTF_RenderUTF8_Shaded'] = [ctypes.c_void_p, ctypes.c_char_p, SDL_Color, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderUTF8_Shaded'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderUNICODE_Shaded') SDL2_TTF_API_ARGS_MAP['TTF_RenderUNICODE_Shaded'] = [ctypes.c_void_p, ctypes.c_void_p, SDL_Color, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderUNICODE_Shaded'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderGlyph_Shaded') SDL2_TTF_API_ARGS_MAP['TTF_RenderGlyph_Shaded'] = [ctypes.c_void_p, ctypes.c_ushort, SDL_Color, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderGlyph_Shaded'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderText_Blended') SDL2_TTF_API_ARGS_MAP['TTF_RenderText_Blended'] = [ctypes.c_void_p, ctypes.c_char_p, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderText_Blended'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderUTF8_Blended') SDL2_TTF_API_ARGS_MAP['TTF_RenderUTF8_Blended'] = [ctypes.c_void_p, ctypes.c_char_p, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderUTF8_Blended'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderUNICODE_Blended') SDL2_TTF_API_ARGS_MAP['TTF_RenderUNICODE_Blended'] = [ctypes.c_void_p, ctypes.c_void_p, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderUNICODE_Blended'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderText_Blended_Wrapped') SDL2_TTF_API_ARGS_MAP['TTF_RenderText_Blended_Wrapped'] = [ctypes.c_void_p, ctypes.c_char_p, SDL_Color, ctypes.c_uint] SDL2_TTF_API_RETVAL_MAP['TTF_RenderText_Blended_Wrapped'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderUTF8_Blended_Wrapped') SDL2_TTF_API_ARGS_MAP['TTF_RenderUTF8_Blended_Wrapped'] = [ctypes.c_void_p, ctypes.c_char_p, SDL_Color, ctypes.c_uint] SDL2_TTF_API_RETVAL_MAP['TTF_RenderUTF8_Blended_Wrapped'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderUNICODE_Blended_Wrapped') SDL2_TTF_API_ARGS_MAP['TTF_RenderUNICODE_Blended_Wrapped'] = [ctypes.c_void_p, ctypes.c_void_p, SDL_Color, ctypes.c_uint] SDL2_TTF_API_RETVAL_MAP['TTF_RenderUNICODE_Blended_Wrapped'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_RenderGlyph_Blended') SDL2_TTF_API_ARGS_MAP['TTF_RenderGlyph_Blended'] = [ctypes.c_void_p, ctypes.c_ushort, SDL_Color] SDL2_TTF_API_RETVAL_MAP['TTF_RenderGlyph_Blended'] = ctypes.c_void_p SDL2_TTF_API_NAMES.append('TTF_CloseFont') SDL2_TTF_API_ARGS_MAP['TTF_CloseFont'] = [ctypes.c_void_p] SDL2_TTF_API_RETVAL_MAP['TTF_CloseFont'] = None SDL2_TTF_API_NAMES.append('TTF_Quit') SDL2_TTF_API_ARGS_MAP['TTF_Quit'] = None SDL2_TTF_API_RETVAL_MAP['TTF_Quit'] = None SDL2_TTF_API_NAMES.append('TTF_WasInit') SDL2_TTF_API_ARGS_MAP['TTF_WasInit'] = None SDL2_TTF_API_RETVAL_MAP['TTF_WasInit'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_GetFontKerningSize') SDL2_TTF_API_ARGS_MAP['TTF_GetFontKerningSize'] = [ctypes.c_void_p, ctypes.c_int, ctypes.c_int] SDL2_TTF_API_RETVAL_MAP['TTF_GetFontKerningSize'] = ctypes.c_int SDL2_TTF_API_NAMES.append('TTF_GetFontKerningSizeGlyphs') SDL2_TTF_API_ARGS_MAP['TTF_GetFontKerningSizeGlyphs'] = [ctypes.c_void_p, ctypes.c_ushort, ctypes.c_ushort] SDL2_TTF_API_RETVAL_MAP['TTF_GetFontKerningSizeGlyphs'] = ctypes.c_int
48.284404
167
0.796124
1,693
10,526
4.356763
0.056704
0.139507
0.199295
0.125271
0.868628
0.787419
0.692381
0.611307
0.564534
0.442923
0
0.018348
0.104218
10,526
217
168
48.506912
0.76392
0.017576
0
0
1
0
0.262006
0.132455
0
0
0
0
0
1
0.006579
false
0
0.026316
0
0.032895
0
0
0
0
null
0
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e0b12af93dc04f25bb6d7fc1b3cffeb88ad47ed1
2,422
py
Python
python/rename.py
usnationalarchives/nara-scripts
d86f94f64acadc83188628f6968920b9c3921d19
[ "CC0-1.0" ]
14
2018-02-15T16:12:20.000Z
2021-03-16T19:48:32.000Z
python/rename.py
usnationalarchives/nara-scripts
d86f94f64acadc83188628f6968920b9c3921d19
[ "CC0-1.0" ]
7
2017-05-03T14:42:43.000Z
2018-03-29T11:37:54.000Z
python/rename.py
usnationalarchives/nara-scripts
d86f94f64acadc83188628f6968920b9c3921d19
[ "CC0-1.0" ]
4
2018-03-06T19:59:14.000Z
2019-12-20T04:56:11.000Z
# -*- coding: utf-8 -*- import os def renameFiles(folder='specialCharFix'): print 'Renaming files of ' + folder + ' and its subfolders...' for dirpath, _, filenames in os.walk(folder, topdown=True): print '\nRenaming files from', dirpath, '\n' if filenames: for filename in filenames: replaced_name = filename.replace(",", "-") replaced_name = replaced_name.replace("~", "-") replaced_name = replaced_name.replace(";", "-") replaced_name = replaced_name.replace("#", "-") replaced_name = replaced_name.replace("*", "-") replaced_name = replaced_name.replace("–", "-") #this is the long dash replaced_name = replaced_name.replace("ca.", "ca-") replaced_name = replaced_name.replace("[", "-") replaced_name = replaced_name.replace("]", "-") replaced_name = replaced_name.replace("(", "-") replaced_name = replaced_name.replace(")", "-") print filename, "->", replaced_name os.rename( dirpath + '/' + filename, dirpath + '/' + replaced_name) print '\nAll files renamed!' if __name__ == "__main__": renameFiles() def rename(folder='specialCharFix'): print 'Renaming folders' for root, dirs, files in os.walk(folder): for directory in dirs: replaced_name = directory.replace("β€šÄiΜ€", "-") replaced_name = replaced_name.replace("–","-") replaced_name = replaced_name.replace(",", "-") replaced_name = replaced_name.replace("~", "-") replaced_name = replaced_name.replace(";", "-") replaced_name = replaced_name.replace("#", "-") replaced_name = replaced_name.replace("*", "-") replaced_name = replaced_name.replace("ca.", "ca-") replaced_name = replaced_name.replace("[", "-") replaced_name = replaced_name.replace("]", "-") replaced_name = replaced_name.replace("(", "-") replaced_name = replaced_name.replace(")", "-") print(directory, "->"), replaced_name os.rename( root + '/' + directory, root + '/' + replaced_name) print 'All folders renamed!' if __name__ == "__main__": rename()
45.698113
87
0.539637
221
2,422
5.633484
0.221719
0.462651
0.337349
0.404819
0.544578
0.544578
0.518072
0.518072
0.518072
0.518072
0
0.000594
0.30512
2,422
52
88
46.576923
0.737374
0.017341
0
0.521739
0
0
0.098495
0
0
0
0
0
0
0
null
null
0
0.021739
null
null
0.152174
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
e0cb3ddbb37299f42283bdf154a037945999b384
58
py
Python
i3-tab-small.py
11philip22/scripts
28503b13a4cf6bef917404eca00d54e25733dfd4
[ "MIT" ]
null
null
null
i3-tab-small.py
11philip22/scripts
28503b13a4cf6bef917404eca00d54e25733dfd4
[ "MIT" ]
null
null
null
i3-tab-small.py
11philip22/scripts
28503b13a4cf6bef917404eca00d54e25733dfd4
[ "MIT" ]
null
null
null
import i3ipc i3ipc.Connection().command('workspace next')
19.333333
44
0.793103
7
58
6.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0.037037
0.068966
58
3
44
19.333333
0.814815
0
0
0
0
0
0.237288
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
e0cb93b0c0c5686c7cae6be4411ead6572b889a9
88
py
Python
fastapi/middleware/httpsredirect.py
ivangsm/fastapi
a0a08f608b1397b0e8a33d139b733a39061e65b0
[ "MIT" ]
1
2021-07-06T14:01:52.000Z
2021-07-06T14:01:52.000Z
fastapi/middleware/httpsredirect.py
ivangsm/fastapi
a0a08f608b1397b0e8a33d139b733a39061e65b0
[ "MIT" ]
null
null
null
fastapi/middleware/httpsredirect.py
ivangsm/fastapi
a0a08f608b1397b0e8a33d139b733a39061e65b0
[ "MIT" ]
1
2021-07-06T14:35:31.000Z
2021-07-06T14:35:31.000Z
from starlette.middleware.httpsredirect import ( # noqa HTTPSRedirectMiddleware, )
22
56
0.784091
7
88
9.857143
1
0
0
0
0
0
0
0
0
0
0
0
0.147727
88
3
57
29.333333
0.92
0.045455
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0
1
0
0
null
0
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
e0d402297a3372ddcba6f9de4a32481010fe915b
21,294
py
Python
tests/hwsim/test_ap_params.py
doumadou/hostap
ad02e79d12fd70ed6bd5fbaf64001a2851e5bb7b
[ "Unlicense" ]
null
null
null
tests/hwsim/test_ap_params.py
doumadou/hostap
ad02e79d12fd70ed6bd5fbaf64001a2851e5bb7b
[ "Unlicense" ]
null
null
null
tests/hwsim/test_ap_params.py
doumadou/hostap
ad02e79d12fd70ed6bd5fbaf64001a2851e5bb7b
[ "Unlicense" ]
null
null
null
# Test various AP mode parameters # Copyright (c) 2014, Qualcomm Atheros, Inc. # # This software may be distributed under the terms of the BSD license. # See README for more details. from remotehost import remote_compatible import logging logger = logging.getLogger() import os import subprocess import hwsim_utils import hostapd from tshark import run_tshark from utils import alloc_fail, HwsimSkip @remote_compatible def test_ap_fragmentation_rts_set_high(dev, apdev): """WPA2-PSK AP with fragmentation and RTS thresholds larger than frame length""" ssid = "test-wpa2-psk" passphrase = 'qwertyuiop' params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase) params['rts_threshold'] = "1000" params['fragm_threshold'] = "2000" hapd = hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, psk=passphrase, scan_freq="2412") hwsim_utils.test_connectivity(dev[0], hapd) @remote_compatible def test_ap_fragmentation_open(dev, apdev): """Open AP with fragmentation threshold""" ssid = "fragmentation" params = {} params['ssid'] = ssid params['fragm_threshold'] = "1000" hapd = hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412") hwsim_utils.test_connectivity(dev[0], hapd) @remote_compatible def test_ap_fragmentation_wpa2(dev, apdev): """WPA2-PSK AP with fragmentation threshold""" ssid = "test-wpa2-psk" passphrase = 'qwertyuiop' params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase) params['fragm_threshold'] = "1000" hapd = hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, psk=passphrase, scan_freq="2412") hwsim_utils.test_connectivity(dev[0], hapd) def test_ap_vendor_elements(dev, apdev): """WPA2-PSK AP with vendor elements added""" bssid = apdev[0]['bssid'] ssid = "test-wpa2-psk" passphrase = 'qwertyuiop' params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase) params['vendor_elements'] = "dd0411223301" params['assocresp_elements'] = "dd0411223302" hapd = hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, psk=passphrase, scan_freq="2412") bss = dev[0].get_bss(bssid) if "dd0411223301" not in bss['ie']: raise Exception("Vendor element not shown in scan results") hapd.set('vendor_elements', 'dd051122330203dd0400137400dd04001374ff') if "OK" not in hapd.request("UPDATE_BEACON"): raise Exception("UPDATE_BEACON failed") dev[1].scan_for_bss(apdev[0]['bssid'], freq="2412") bss = dev[1].get_bss(bssid) if "dd0411223301" in bss['ie']: raise Exception("Old vendor element still in scan results") if "dd051122330203" not in bss['ie']: raise Exception("New vendor element not shown in scan results") def test_ap_element_parse(dev, apdev): """Information element parsing - extra coverage""" bssid = apdev[0]['bssid'] ssid = "test-wpa2-psk" params = { 'ssid': ssid, 'vendor_elements': "380501020304059e009e009e009e009e009e00" } hapd = hostapd.add_ap(apdev[0], params) dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412") bss = dev[0].get_bss(bssid) if "38050102030405" not in bss['ie']: raise Exception("Timeout element not shown in scan results") @remote_compatible def test_ap_element_parse_oom(dev, apdev): """Information element parsing OOM""" bssid = apdev[0]['bssid'] ssid = "test-wpa2-psk" params = { 'ssid': ssid, 'vendor_elements': "dd0d506f9a0a00000600411c440028" } hapd = hostapd.add_ap(apdev[0], params) dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412") with alloc_fail(dev[0], 1, "wpabuf_alloc;ieee802_11_vendor_ie_concat"): bss = dev[0].get_bss(bssid) logger.info(str(bss)) def test_ap_country(dev, apdev): """WPA2-PSK AP setting country code and using 5 GHz band""" try: hapd = None bssid = apdev[0]['bssid'] ssid = "test-wpa2-psk" passphrase = 'qwertyuiop' params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase) params['country_code'] = 'FI' params['ieee80211d'] = '1' params['hw_mode'] = 'a' params['channel'] = '36' hapd = hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, psk=passphrase, scan_freq="5180") hwsim_utils.test_connectivity(dev[0], hapd) finally: dev[0].request("DISCONNECT") if hapd: hapd.request("DISABLE") hostapd.cmd_execute(apdev[0], ['iw', 'reg', 'set', '00']) dev[0].flush_scan_cache() def test_ap_acl_accept(dev, apdev): """MAC ACL accept list""" ssid = "acl" params = {} params['ssid'] = ssid params['accept_mac_file'] = "hostapd.macaddr" hapd = hostapd.add_ap(apdev[0], params) dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412") dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412") dev[1].scan_for_bss(apdev[0]['bssid'], freq="2412") dev[1].connect(ssid, key_mgmt="NONE", scan_freq="2412") dev[0].request("REMOVE_NETWORK all") dev[1].request("REMOVE_NETWORK all") hapd.request("SET macaddr_acl 1") dev[1].dump_monitor() dev[1].connect(ssid, key_mgmt="NONE", scan_freq="2412", wait_connect=False) dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412") ev = dev[1].wait_event(["CTRL-EVENT-CONNECTED"], timeout=1) if ev is not None: raise Exception("Unexpected association") def test_ap_acl_deny(dev, apdev): """MAC ACL deny list""" ssid = "acl" params = {} params['ssid'] = ssid params['deny_mac_file'] = "hostapd.macaddr" hapd = hostapd.add_ap(apdev[0], params) dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412") dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412", wait_connect=False) dev[1].scan_for_bss(apdev[0]['bssid'], freq="2412") dev[1].connect(ssid, key_mgmt="NONE", scan_freq="2412") ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=1) if ev is not None: raise Exception("Unexpected association") @remote_compatible def test_ap_wds_sta(dev, apdev): """WPA2-PSK AP with STA using 4addr mode""" ssid = "test-wpa2-psk" passphrase = 'qwertyuiop' params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase) params['wds_sta'] = "1" params['wds_bridge'] = "wds-br0" hapd = hostapd.add_ap(apdev[0], params) try: dev[0].cmd_execute(['brctl', 'addbr', 'wds-br0']) dev[0].cmd_execute(['brctl', 'setfd', 'wds-br0', '0']) dev[0].cmd_execute(['ip', 'link', 'set', 'dev', 'wds-br0', 'up']) dev[0].cmd_execute(['iw', dev[0].ifname, 'set', '4addr', 'on']) dev[0].connect(ssid, psk=passphrase, scan_freq="2412") hwsim_utils.test_connectivity_iface(dev[0], hapd, "wds-br0", max_tries=15) dev[0].request("REATTACH") dev[0].wait_connected() hwsim_utils.test_connectivity_iface(dev[0], hapd, "wds-br0", max_tries=15) dev[0].request("SET reassoc_same_bss_optim 1") dev[0].request("REATTACH") dev[0].wait_connected() hwsim_utils.test_connectivity_iface(dev[0], hapd, "wds-br0", max_tries=5, timeout=1) finally: dev[0].request("SET reassoc_same_bss_optim 0") dev[0].cmd_execute(['iw', dev[0].ifname, 'set', '4addr', 'off']) dev[0].cmd_execute(['ip', 'link', 'set', 'dev', 'wds-br0', 'down']) dev[0].cmd_execute(['brctl', 'delbr', 'wds-br0']) def test_ap_wds_sta_open(dev, apdev): """Open AP with STA using 4addr mode""" ssid = "test-wds-open" params = {} params['ssid'] = ssid params['wds_sta'] = "1" params['wds_bridge'] = "wds-br0" hapd = hostapd.add_ap(apdev[0], params) try: dev[0].cmd_execute(['brctl', 'addbr', 'wds-br0']) dev[0].cmd_execute(['brctl', 'setfd', 'wds-br0', '0']) dev[0].cmd_execute(['ip', 'link', 'set', 'dev', 'wds-br0', 'up']) dev[0].cmd_execute(['iw', dev[0].ifname, 'set', '4addr', 'on']) dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412") hwsim_utils.test_connectivity_iface(dev[0], hapd, "wds-br0", max_tries=15) dev[0].request("REATTACH") dev[0].wait_connected() hwsim_utils.test_connectivity_iface(dev[0], hapd, "wds-br0", max_tries=15) dev[0].request("SET reassoc_same_bss_optim 1") dev[0].request("REATTACH") dev[0].wait_connected() hwsim_utils.test_connectivity_iface(dev[0], hapd, "wds-br0", max_tries=5, timeout=1) finally: dev[0].request("SET reassoc_same_bss_optim 0") dev[0].cmd_execute(['iw', dev[0].ifname, 'set', '4addr', 'off']) dev[0].cmd_execute(['ip', 'link', 'set', 'dev', 'wds-br0', 'down']) dev[0].cmd_execute(['brctl', 'delbr', 'wds-br0']) def test_ap_wds_sta_wep(dev, apdev): """WEP AP with STA using 4addr mode""" ssid = "test-wds-wep" params = {} params['ssid'] = ssid params["ieee80211n"] = "0" params['wep_key0'] = '"hello"' params['wds_sta'] = "1" params['wds_bridge'] = "wds-br0" hapd = hostapd.add_ap(apdev[0], params) try: dev[0].cmd_execute(['brctl', 'addbr', 'wds-br0']) dev[0].cmd_execute(['brctl', 'setfd', 'wds-br0', '0']) dev[0].cmd_execute(['ip', 'link', 'set', 'dev', 'wds-br0', 'up']) dev[0].cmd_execute(['iw', dev[0].ifname, 'set', '4addr', 'on']) dev[0].connect(ssid, key_mgmt="NONE", wep_key0='"hello"', scan_freq="2412") hwsim_utils.test_connectivity_iface(dev[0], hapd, "wds-br0", max_tries=15) dev[0].request("REATTACH") dev[0].wait_connected() hwsim_utils.test_connectivity_iface(dev[0], hapd, "wds-br0", max_tries=15) dev[0].request("SET reassoc_same_bss_optim 1") dev[0].request("REATTACH") dev[0].wait_connected() hwsim_utils.test_connectivity_iface(dev[0], hapd, "wds-br0", max_tries=5, timeout=1) finally: dev[0].request("SET reassoc_same_bss_optim 0") dev[0].cmd_execute(['iw', dev[0].ifname, 'set', '4addr', 'off']) dev[0].cmd_execute(['ip', 'link', 'set', 'dev', 'wds-br0', 'down']) dev[0].cmd_execute(['brctl', 'delbr', 'wds-br0']) @remote_compatible def test_ap_inactivity_poll(dev, apdev): """AP using inactivity poll""" ssid = "test-wpa2-psk" passphrase = 'qwertyuiop' params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase) params['ap_max_inactivity'] = "1" hapd = hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, psk=passphrase, scan_freq="2412") hapd.set("ext_mgmt_frame_handling", "1") dev[0].request("DISCONNECT") ev = hapd.wait_event(["MGMT-RX"], timeout=5) if ev is None: raise Exception("MGMT RX wait timed out for Deauth") hapd.set("ext_mgmt_frame_handling", "0") ev = hapd.wait_event(["AP-STA-DISCONNECTED"], timeout=30) if ev is None: raise Exception("STA disconnection on inactivity was not reported") @remote_compatible def test_ap_inactivity_disconnect(dev, apdev): """AP using inactivity disconnect""" ssid = "test-wpa2-psk" passphrase = 'qwertyuiop' params = hostapd.wpa2_params(ssid=ssid, passphrase=passphrase) params['ap_max_inactivity'] = "1" params['skip_inactivity_poll'] = "1" hapd = hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, psk=passphrase, scan_freq="2412") hapd.set("ext_mgmt_frame_handling", "1") dev[0].request("DISCONNECT") ev = hapd.wait_event(["MGMT-RX"], timeout=5) if ev is None: raise Exception("MGMT RX wait timed out for Deauth") hapd.set("ext_mgmt_frame_handling", "0") ev = hapd.wait_event(["AP-STA-DISCONNECTED"], timeout=30) if ev is None: raise Exception("STA disconnection on inactivity was not reported") @remote_compatible def test_ap_basic_rates(dev, apdev): """Open AP with lots of basic rates""" ssid = "basic rates" params = {} params['ssid'] = ssid params['basic_rates'] = "10 20 55 110 60 90 120 180 240 360 480 540" hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412") @remote_compatible def test_ap_short_preamble(dev, apdev): """Open AP with short preamble""" ssid = "short preamble" params = {} params['ssid'] = ssid params['preamble'] = "1" hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412") def test_ap_spectrum_management_required(dev, apdev): """Open AP with spectrum management required""" ssid = "spectrum mgmt" params = {} params['ssid'] = ssid params["country_code"] = "JP" params["hw_mode"] = "a" params["channel"] = "36" params["ieee80211d"] = "1" params["local_pwr_constraint"] = "3" params['spectrum_mgmt_required'] = "1" try: hapd = None hapd = hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, key_mgmt="NONE", scan_freq="5180") finally: dev[0].request("DISCONNECT") if hapd: hapd.request("DISABLE") hostapd.cmd_execute(apdev[0], ['iw', 'reg', 'set', '00']) dev[0].flush_scan_cache() @remote_compatible def test_ap_max_listen_interval(dev, apdev): """Open AP with maximum listen interval limit""" ssid = "listen" params = {} params['ssid'] = ssid params['max_listen_interval'] = "1" hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412", wait_connect=False) ev = dev[0].wait_event(["CTRL-EVENT-ASSOC-REJECT"]) if ev is None: raise Exception("Association rejection not reported") if "status_code=51" not in ev: raise Exception("Unexpected ASSOC-REJECT reason") @remote_compatible def test_ap_max_num_sta(dev, apdev): """Open AP with maximum STA count""" ssid = "max" params = {} params['ssid'] = ssid params['max_num_sta'] = "1" hostapd.add_ap(apdev[0], params) dev[1].connect(ssid, key_mgmt="NONE", scan_freq="2412") dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412", wait_connect=False) ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=1) if ev is not None: raise Exception("Unexpected association") def test_ap_max_num_sta_no_probe_resp(dev, apdev, params): """Maximum STA count and limit on Probe Response frames""" logdir = params['logdir'] dev[0].flush_scan_cache() ssid = "max" params = {} params['ssid'] = ssid params['beacon_int'] = "2000" params['max_num_sta'] = "1" params['no_probe_resp_if_max_sta'] = "1" hostapd.add_ap(apdev[0], params) dev[1].connect(ssid, key_mgmt="NONE", scan_freq="2412") dev[0].scan(freq=2412, type="ONLY") dev[0].scan(freq=2412, type="ONLY") seen = dev[0].get_bss(apdev[0]['bssid']) != None dev[1].scan(freq=2412, type="ONLY") if seen: out = run_tshark(os.path.join(logdir, "hwsim0.pcapng"), "wlan.fc.type_subtype == 5", ["wlan.da" ]) if out: if dev[0].own_addr() not in out: # Discovery happened through Beacon frame reception. That's not # an error case. seen = False if dev[1].own_addr() not in out: raise Exception("No Probe Response frames to dev[1] seen") if seen: raise Exception("AP found unexpectedly") @remote_compatible def test_ap_tx_queue_params(dev, apdev): """Open AP with TX queue params set""" ssid = "tx" params = {} params['ssid'] = ssid params['tx_queue_data2_aifs'] = "4" params['tx_queue_data2_cwmin'] = "7" params['tx_queue_data2_cwmax'] = "1023" params['tx_queue_data2_burst'] = "4.2" params['tx_queue_data1_aifs'] = "4" params['tx_queue_data1_cwmin'] = "7" params['tx_queue_data1_cwmax'] = "1023" params['tx_queue_data1_burst'] = "2" hapd = hostapd.add_ap(apdev[0], params) dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412") hwsim_utils.test_connectivity(dev[0], hapd) def test_ap_beacon_rate_legacy(dev, apdev): """Open AP with Beacon frame TX rate 5.5 Mbps""" hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' }) res = hapd.get_driver_status_field('capa.flags') if (int(res, 0) & 0x0000080000000000) == 0: raise HwsimSkip("Setting Beacon frame TX rate not supported") hapd.disable() hapd.set('beacon_rate', '55') hapd.enable() dev[0].connect('beacon-rate', key_mgmt="NONE", scan_freq="2412") def test_ap_beacon_rate_legacy2(dev, apdev): """Open AP with Beacon frame TX rate 12 Mbps in VHT BSS""" hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' }) res = hapd.get_driver_status_field('capa.flags') if (int(res, 0) & 0x0000080000000000) == 0: raise HwsimSkip("Setting Beacon frame TX rate not supported") hapd.disable() hapd.set('beacon_rate', '120') hapd.set("country_code", "DE") hapd.set("hw_mode", "a") hapd.set("channel", "36") hapd.set("ieee80211n", "1") hapd.set("ieee80211ac", "1") hapd.set("ht_capab", "[HT40+]") hapd.set("vht_capab", "") hapd.set("vht_oper_chwidth", "0") hapd.set("vht_oper_centr_freq_seg0_idx", "0") try: hapd.enable() dev[0].scan_for_bss(hapd.own_addr(), freq="5180") dev[0].connect('beacon-rate', key_mgmt="NONE", scan_freq="5180") finally: dev[0].request("DISCONNECT") hapd.request("DISABLE") subprocess.call(['iw', 'reg', 'set', '00']) dev[0].flush_scan_cache() def test_ap_beacon_rate_ht(dev, apdev): """Open AP with Beacon frame TX rate HT-MCS 0""" hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' }) res = hapd.get_driver_status_field('capa.flags') if (int(res, 0) & 0x0000100000000000) == 0: raise HwsimSkip("Setting Beacon frame TX rate not supported") hapd.disable() hapd.set('beacon_rate', 'ht:0') hapd.enable() dev[0].connect('beacon-rate', key_mgmt="NONE", scan_freq="2412") def test_ap_beacon_rate_ht2(dev, apdev): """Open AP with Beacon frame TX rate HT-MCS 1 in VHT BSS""" hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' }) res = hapd.get_driver_status_field('capa.flags') if (int(res, 0) & 0x0000100000000000) == 0: raise HwsimSkip("Setting Beacon frame TX rate not supported") hapd.disable() hapd.set('beacon_rate', 'ht:1') hapd.set("country_code", "DE") hapd.set("hw_mode", "a") hapd.set("channel", "36") hapd.set("ieee80211n", "1") hapd.set("ieee80211ac", "1") hapd.set("ht_capab", "[HT40+]") hapd.set("vht_capab", "") hapd.set("vht_oper_chwidth", "0") hapd.set("vht_oper_centr_freq_seg0_idx", "0") try: hapd.enable() dev[0].scan_for_bss(hapd.own_addr(), freq="5180") dev[0].connect('beacon-rate', key_mgmt="NONE", scan_freq="5180") finally: dev[0].request("DISCONNECT") hapd.request("DISABLE") subprocess.call(['iw', 'reg', 'set', '00']) dev[0].flush_scan_cache() def test_ap_beacon_rate_vht(dev, apdev): """Open AP with Beacon frame TX rate VHT-MCS 0""" hapd = hostapd.add_ap(apdev[0], { 'ssid': 'beacon-rate' }) res = hapd.get_driver_status_field('capa.flags') if (int(res, 0) & 0x0000200000000000) == 0: raise HwsimSkip("Setting Beacon frame TX rate not supported") hapd.disable() hapd.set('beacon_rate', 'vht:0') hapd.set("country_code", "DE") hapd.set("hw_mode", "a") hapd.set("channel", "36") hapd.set("ieee80211n", "1") hapd.set("ieee80211ac", "1") hapd.set("ht_capab", "[HT40+]") hapd.set("vht_capab", "") hapd.set("vht_oper_chwidth", "0") hapd.set("vht_oper_centr_freq_seg0_idx", "0") try: hapd.enable() dev[0].scan_for_bss(hapd.own_addr(), freq="5180") dev[0].connect('beacon-rate', key_mgmt="NONE", scan_freq="5180") finally: dev[0].request("DISCONNECT") hapd.request("DISABLE") subprocess.call(['iw', 'reg', 'set', '00']) dev[0].flush_scan_cache() def test_ap_wep_to_wpa(dev, apdev): """WEP to WPA2-PSK configuration change in hostapd""" hapd = hostapd.add_ap(apdev[0], { "ssid": "wep-to-wpa", "wep_key0": '"hello"' }) dev[0].flush_scan_cache() dev[0].connect("wep-to-wpa", key_mgmt="NONE", wep_key0='"hello"', scan_freq="2412") hwsim_utils.test_connectivity(dev[0], hapd) dev[0].request("DISCONNECT") dev[0].wait_disconnected() hapd.disable() hapd.set("wep_key0", "") hapd.set("wpa_passphrase", "12345678") hapd.set("wpa", "2") hapd.set("wpa_key_mgmt", "WPA-PSK") hapd.set("rsn_pairwise", "CCMP") hapd.enable() dev[0].connect("wep-to-wpa", psk="12345678", scan_freq="2412") hwsim_utils.test_connectivity(dev[0], hapd)
39.360444
84
0.621114
2,948
21,294
4.311398
0.11228
0.038395
0.02738
0.036113
0.803777
0.7369
0.698348
0.669866
0.662234
0.64524
0
0.055489
0.212924
21,294
540
85
39.433333
0.702864
0.061989
0
0.717622
0
0
0.221612
0.026372
0
0
0.004538
0
0
1
0.057325
false
0.046709
0.016985
0
0.07431
0
0
0
0
null
0
0
0
1
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
e0dbeb7f22a08452ffc61297d75744423f6259bc
247
py
Python
ecommerce/apps/shipments/constants.py
crstnrm/ecommerce
72e757b1ecc7b2dfeecabe0ff06ee9797815dc8e
[ "MIT" ]
null
null
null
ecommerce/apps/shipments/constants.py
crstnrm/ecommerce
72e757b1ecc7b2dfeecabe0ff06ee9797815dc8e
[ "MIT" ]
null
null
null
ecommerce/apps/shipments/constants.py
crstnrm/ecommerce
72e757b1ecc7b2dfeecabe0ff06ee9797815dc8e
[ "MIT" ]
null
null
null
from enum import IntEnum class ShipmentStatus(IntEnum): CREATED = 1 SENT = 2 COMPLETED = 3 NOT_COMPLETED = 4 class ShipmentProductStatus(IntEnum): CREATED = 1 SENT = 2 RECEIVED = 3 RETURNED = 4 CANCELED = 5
14.529412
37
0.635628
29
247
5.37931
0.655172
0.179487
0.192308
0.24359
0.25641
0
0
0
0
0
0
0.052326
0.303644
247
16
38
15.4375
0.854651
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0
false
0
0.083333
0
1
0
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
1cc8a760a5136cbf5e5e503caca051d433ba9215
519
py
Python
tests/user_test.py
IanMK-1/1-minute-app
f44dd652ab8107f27c81cb2f1c0eceb8cfd7ecfd
[ "MIT" ]
null
null
null
tests/user_test.py
IanMK-1/1-minute-app
f44dd652ab8107f27c81cb2f1c0eceb8cfd7ecfd
[ "MIT" ]
null
null
null
tests/user_test.py
IanMK-1/1-minute-app
f44dd652ab8107f27c81cb2f1c0eceb8cfd7ecfd
[ "MIT" ]
null
null
null
import unittest from app.models import User class UserTest(unittest.TestCase): def setUp(self): self.new_pitch_user = User(password='password') def test_user_password_not_empty(self): self.assertTrue(self.new_pitch_user.user_password is not None) def test_block_access_to_password(self): with self.assertRaises(AttributeError): self.new_pitch_user.password def test_verify_password(self): self.assertTrue(self.new_pitch_user.verify_password('password'))
28.833333
72
0.737958
69
519
5.26087
0.405797
0.077135
0.132231
0.176309
0.297521
0.297521
0.187328
0
0
0
0
0
0.177264
519
17
73
30.529412
0.850117
0
0
0
0
0
0.030829
0
0
0
0
0
0.25
1
0.333333
false
0.583333
0.166667
0
0.583333
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
1cd4e87d9c3d065ef54e13c364cf1e57f2c6d29f
545
py
Python
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EARLIER/01_rearrange_the_number.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
null
null
null
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EARLIER/01_rearrange_the_number.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
null
null
null
Data Science and Machine Learning/Machine-Learning-In-Python-THOROUGH/EXAMPLES/EDABIT/EARLIER/01_rearrange_the_number.py
okara83/Becoming-a-Data-Scientist
f09a15f7f239b96b77a2f080c403b2f3e95c9650
[ "MIT" ]
2
2022-02-09T15:41:33.000Z
2022-02-11T07:47:40.000Z
""" Rearrange the Number Given a number, return the difference between the maximum and minimum numbers that can be formed when the digits are rearranged. Examples rearranged_difference(972882) ➞ 760833 # 988722 - 227889 = 760833 rearranged_difference(3320707) ➞ 7709823 # 7733200 - 23377 = 7709823 rearranged_difference(90010) ➞ 90981 # 91000 - 19 = 90981 Notes N/A """ def rearranged_difference(num): return (int("".join(sorted(list(str(num)),reverse = True)))) - int("".join(sorted(list(str(num))))) rearranged_difference(3320707)
25.952381
128
0.743119
74
545
5.445946
0.608108
0.248139
0.133995
0.084367
0.114144
0.114144
0
0
0
0
0
0.196581
0.141284
545
21
129
25.952381
0.65812
0.66789
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
1cd580623759b3e93c437a02519caf717e2fa051
184
py
Python
models/Form.py
PaulinaKomorek/StockMarketTwitterInfluence
0f635431a553919cb79e92f82bb868b1902ef3f4
[ "MIT" ]
1
2021-02-19T04:55:08.000Z
2021-02-19T04:55:08.000Z
models/Form.py
PaulinaKomorek/StockMarketTwitterInfluence
0f635431a553919cb79e92f82bb868b1902ef3f4
[ "MIT" ]
null
null
null
models/Form.py
PaulinaKomorek/StockMarketTwitterInfluence
0f635431a553919cb79e92f82bb868b1902ef3f4
[ "MIT" ]
null
null
null
class Form: company: str user: str days: int def __init__(self, company, user, days): self.company = company self.user = user self.days = days
18.4
44
0.570652
23
184
4.391304
0.434783
0.217822
0
0
0
0
0
0
0
0
0
0
0.342391
184
9
45
20.444444
0.834711
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.625
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
0
0
1
0
0
4
1cef1236123a7817df429cdd4ea7d381f5416741
123
py
Python
env/lib/python2.7/site-packages/annoying/exceptions.py
jlwysf/onduty
20d90583a6996d037912af08eb29a6d6fa06bf66
[ "MIT" ]
null
null
null
env/lib/python2.7/site-packages/annoying/exceptions.py
jlwysf/onduty
20d90583a6996d037912af08eb29a6d6fa06bf66
[ "MIT" ]
null
null
null
env/lib/python2.7/site-packages/annoying/exceptions.py
jlwysf/onduty
20d90583a6996d037912af08eb29a6d6fa06bf66
[ "MIT" ]
1
2019-03-20T21:05:00.000Z
2019-03-20T21:05:00.000Z
class Redirect(Exception): def __init__(self, *args, **kwargs): self.args = args self.kwargs = kwargs
20.5
40
0.609756
14
123
5.071429
0.571429
0.225352
0
0
0
0
0
0
0
0
0
0
0.268293
123
5
41
24.6
0.788889
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
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
1
0
0
0
0
0
0
0
4
e80e62db2d12af7a8107365900d1f6cdacf8b460
206
py
Python
exe_from_python.py
tonypithony/mijn-subprogram
ee7e0eed72fce31a84566e0c35c6952eeac794f4
[ "MIT" ]
null
null
null
exe_from_python.py
tonypithony/mijn-subprogram
ee7e0eed72fce31a84566e0c35c6952eeac794f4
[ "MIT" ]
null
null
null
exe_from_python.py
tonypithony/mijn-subprogram
ee7e0eed72fce31a84566e0c35c6952eeac794f4
[ "MIT" ]
null
null
null
# Π­Ρ‚ΠΎΡ‚ ΠΌΠ΅Ρ‚ΠΎΠ΄ Ρ€Π°Π±ΠΎΡ‚Π°Π΅Ρ‚ Ρ‚Π°ΠΊ, ΠΊΠ°ΠΊ Π±ΡƒΠ΄Ρ‚ΠΎ Ρ„Π°ΠΉΠ» запустили Π΄Π²ΠΎΠΉΠ½Ρ‹ΠΌ ΠΊΠ»ΠΈΠΊΠΎΠΌ -- # ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ Π±ΡƒΠ΄ΡƒΡ‚ Π·Π°ΠΏΡƒΡ‰Π΅Π½Ρ‹, для Ρ„Π°ΠΉΠ»ΠΎΠ² Π±ΡƒΠ΄Π΅Ρ‚ Π²Ρ‹Π·Π²Π°Π½Π° ассоциированная # с Π½ΠΈΠΌΠΈ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ°. import os os.startfile('app4Stoma.exe')
34.333333
71
0.762136
27
206
5.814815
0.962963
0
0
0
0
0
0
0
0
0
0
0.005848
0.169903
206
6
72
34.333333
0.912281
0.747573
0
0
0
0
0.295455
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
e8211c066a53ebcffc57ede2bfb3df074bb69c29
310
py
Python
fileshare/models.py
sgilabert/active-vaulting
7f48ad44978e6514a1f729f865319058829b3237
[ "CC0-1.0" ]
null
null
null
fileshare/models.py
sgilabert/active-vaulting
7f48ad44978e6514a1f729f865319058829b3237
[ "CC0-1.0" ]
3
2020-06-05T17:18:26.000Z
2021-06-10T18:27:10.000Z
fileshare/models.py
sgilabert/active-vaulting
7f48ad44978e6514a1f729f865319058829b3237
[ "CC0-1.0" ]
null
null
null
from django.db import models # Create your models here. class TmpDropboxAccessTokenRetrieval(models.Model): session_key = models.CharField(max_length=64, unique=True) status = models.CharField(max_length=256, blank=True, null=True) access_token = models.CharField(max_length=256, blank=True, null=True)
38.75
72
0.793548
43
310
5.604651
0.581395
0.186722
0.224066
0.298755
0.365145
0.365145
0.365145
0.365145
0.365145
0
0
0.028777
0.103226
310
8
72
38.75
0.83813
0.077419
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
e821c8a8524351cd9dd154c434ef5e4d598e25df
1,020
py
Python
onlinepayments/sdk/domain/mandate_contact_details.py
wl-online-payments-direct/sdk-python3
99fca127334520cde4ffa3a34cbea3b3a0d3fbff
[ "Apache-2.0" ]
null
null
null
onlinepayments/sdk/domain/mandate_contact_details.py
wl-online-payments-direct/sdk-python3
99fca127334520cde4ffa3a34cbea3b3a0d3fbff
[ "Apache-2.0" ]
null
null
null
onlinepayments/sdk/domain/mandate_contact_details.py
wl-online-payments-direct/sdk-python3
99fca127334520cde4ffa3a34cbea3b3a0d3fbff
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # This class was auto-generated. # from onlinepayments.sdk.data_object import DataObject class MandateContactDetails(DataObject): """ | Object containing contact details like email address and phone number """ __email_address = None @property def email_address(self) -> str: """ | Email address of the customer Type: str """ return self.__email_address @email_address.setter def email_address(self, value: str): self.__email_address = value def to_dictionary(self): dictionary = super(MandateContactDetails, self).to_dictionary() if self.email_address is not None: dictionary['emailAddress'] = self.email_address return dictionary def from_dictionary(self, dictionary): super(MandateContactDetails, self).from_dictionary(dictionary) if 'emailAddress' in dictionary: self.email_address = dictionary['emailAddress'] return self
26.153846
75
0.661765
107
1,020
6.121495
0.420561
0.201527
0.122137
0.058015
0.164886
0.164886
0
0
0
0
0
0.001311
0.251961
1,020
38
76
26.842105
0.857143
0.164706
0
0
1
0
0.044888
0
0
0
0
0
0
1
0.210526
false
0
0.052632
0
0.526316
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
e8369f270bd7519a39671ed69639f84fa36731c6
207
py
Python
async_tools/current_task.py
HeavenVolkoff/async_tools
c2fb373f4de11542f61fdbf596955f118a2ba467
[ "BSD-3-Clause" ]
4
2019-10-30T20:03:31.000Z
2021-03-05T18:29:42.000Z
async_tools/current_task.py
HeavenVolkoff/async_tools
c2fb373f4de11542f61fdbf596955f118a2ba467
[ "BSD-3-Clause" ]
2
2019-06-11T18:26:10.000Z
2021-05-25T20:43:50.000Z
async_tools/current_task.py
HeavenVolkoff/async_tools
c2fb373f4de11542f61fdbf596955f118a2ba467
[ "BSD-3-Clause" ]
1
2021-05-24T13:31:13.000Z
2021-05-24T13:31:13.000Z
# Internal from asyncio import current_task from warnings import warn warn( "async_tools.current_task is deprecated, use asyncio.current_task instead", DeprecationWarning ) __all__ = ("current_task",)
20.7
98
0.792271
26
207
5.961538
0.615385
0.283871
0
0
0
0
0
0
0
0
0
0
0.135266
207
9
99
23
0.865922
0.038647
0
0
0
0
0.426396
0.121827
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
e8386b010efca4885e6993c8b74180472c6ce6e9
1,697
py
Python
pycommon/text.py
chbrown/python-common
78880fb903a1f237388e3a124b969c185279a3d4
[ "MIT" ]
null
null
null
pycommon/text.py
chbrown/python-common
78880fb903a1f237388e3a124b969c185279a3d4
[ "MIT" ]
null
null
null
pycommon/text.py
chbrown/python-common
78880fb903a1f237388e3a124b969c185279a3d4
[ "MIT" ]
null
null
null
import re import codecs import os.path from .memo import memoized_property class TextFile(object): ''' TextFile is a representation of a text file on disk that memoizes (caches) most of its functionality. TODO: abstract the tokenizer somehow ''' def __init__(self, filepath, encoding='utf-8'): self.filepath = filepath self.encoding = encoding @memoized_property def filename(self): return os.path.basename(self.filepath) @memoized_property def exists(self): return os.path.exists(self.filepath) @memoized_property def string(self): return codecs.open(self.filepath, encoding=self.encoding).read() @memoized_property def tokens(self): return re.findall(r'[-0-9A-Za-z_]+', self.string) @memoized_property def token_set(self): return set(self.tokens) def __repr__(self): return '<TextFile({filepath})>'.format(filepath=self.filepath) _whitespace_chars = ['\t', '\n', '\x0b', '\x0c', '\r'] # ordinals: [9, 10, 11, 12, 13] _whitespace_mapping = str.maketrans({ord(char): ' ' for char in _whitespace_chars}) def normalize_whitespace(dirty_string): ''' Replace all unusual whitespace in dirty_string with ''' return dirty_string.translate(_whitespace_mapping) default_stopwords = frozenset({'and', 'of', 'in', 'the', 'for', 'a', 'on', 'to', 'with', 'an'}) def tokenize(string, stopwords=default_stopwords): ''' Lowercase string, then find all word fragments in it, where a word fragment is designated by r'\\b\\w+\\b'. ''' return [token for token in re.findall(r'\b\w+\b', string.lower()) if token not in stopwords]
26.936508
96
0.662935
221
1,697
4.954751
0.470588
0.087671
0.086758
0.029224
0.056621
0
0
0
0
0
0
0.010363
0.203889
1,697
62
97
27.370968
0.800148
0.192693
0
0.15625
0
0
0.066463
0.016807
0
0
0
0.016129
0
1
0.28125
false
0
0.125
0.1875
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
1
0
0
4
1c01bf910f3190ec59e838e26b5e09da623500c1
198
py
Python
dist/brukva/tests/__init__.py
procool/mygw
f35b72b5915d314e883dcde45c3c33ff26f173df
[ "BSD-2-Clause" ]
83
2015-01-05T08:16:02.000Z
2021-11-12T11:42:46.000Z
dist/brukva/tests/__init__.py
procool/mygw
f35b72b5915d314e883dcde45c3c33ff26f173df
[ "BSD-2-Clause" ]
4
2015-02-22T06:17:08.000Z
2018-03-13T09:06:11.000Z
dist/brukva/tests/__init__.py
procool/mygw
f35b72b5915d314e883dcde45c3c33ff26f173df
[ "BSD-2-Clause" ]
12
2015-01-22T06:03:42.000Z
2019-02-09T08:52:21.000Z
import unittest from server_commands import ServerCommandsTestCase def all_tests(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(ServerCommandsTestCase)) return suite
22
61
0.792929
20
198
7.75
0.7
0
0
0
0
0
0
0
0
0
0
0
0.141414
198
8
62
24.75
0.911765
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
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
1c02da2dcd10437ae24e2e153c7b92dab585848a
25
py
Python
pyhomeseer/devices/__init__.py
lenaxia/PyHomeSeer-old
25554836c6fcbc14425cd524656f14f258668eee
[ "MIT" ]
9
2017-11-05T15:30:06.000Z
2020-11-03T15:22:57.000Z
pyhomeseer/devices/__init__.py
lenaxia/PyHomeSeer-old
25554836c6fcbc14425cd524656f14f258668eee
[ "MIT" ]
2
2017-09-11T23:30:23.000Z
2017-09-12T14:07:02.000Z
pyhomeseer/devices/__init__.py
lenaxia/PyHomeSeer-old
25554836c6fcbc14425cd524656f14f258668eee
[ "MIT" ]
3
2020-08-01T14:21:52.000Z
2021-11-05T00:22:15.000Z
""" HomeSeer Devices """
12.5
24
0.6
2
25
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.16
25
1
25
25
0.714286
0.64
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
1c09858d8b282ee4c353f999753fa51a0996ee9b
3,190
py
Python
tests/integration/states/test_folder.py
dmurphy18/salt-ext-modules-vmware
93342bfed2261c2f41232ff14d6cc0fb731b4d49
[ "Apache-2.0" ]
null
null
null
tests/integration/states/test_folder.py
dmurphy18/salt-ext-modules-vmware
93342bfed2261c2f41232ff14d6cc0fb731b4d49
[ "Apache-2.0" ]
null
null
null
tests/integration/states/test_folder.py
dmurphy18/salt-ext-modules-vmware
93342bfed2261c2f41232ff14d6cc0fb731b4d49
[ "Apache-2.0" ]
1
2021-12-15T02:46:59.000Z
2021-12-15T02:46:59.000Z
# Copyright 2021 VMware, Inc. # SPDX-License-Identifier: Apache-2.0 import pytest import saltext.vmware.states.folder as folder def test_create_folder_test(patch_salt_globals_folder_state_test): """ test create folder in test mode """ ret = folder.manage("test_folder_state", "create", "Datacenter", "vm") assert ret["result"] == True assert ret["comment"] == "These options are set to change." assert ret["changes"]["new"] == "folder test_folder_state will be created" def test_create_folder(patch_salt_globals_folder_state): """ test create folder """ ret = folder.manage("test_folder_state", "create", "Datacenter", "vm") assert ret["result"] == True assert ret["comment"] == "created" assert ret["changes"]["new"] == "folder test_folder_state created" def test_destroy_folder_test(patch_salt_globals_folder_state_test): """ test destroy folder in test mode """ ret = folder.manage("test_folder_state", "destroy", "Datacenter", "vm") assert ret["result"] == True assert ret["comment"] == "These options are set to change." assert ret["changes"]["new"] == "folder test_folder_state will be destroyed" def test_destroy_folder(patch_salt_globals_folder_state): """ test destroy folder """ ret = folder.manage("test_folder_state", "destroy", "Datacenter", "vm") assert ret["result"] == True assert ret["comment"] == "destroyed" assert ret["changes"]["new"] == "folder test_folder_state destroyed" def test_rename_folder_test(patch_salt_globals_folder_state_test): """ test rename folder in test mode """ ret = folder.rename("test_folder_state_rename", "test_folder_state_new", "Datacenter", "vm") assert ret["result"] == True assert ret["comment"] == "These options are set to change." assert ( ret["changes"]["new"] == "folder test_folder_state_rename will be renamed test_folder_state_new" ) def test_rename_folder(patch_salt_globals_folder_state): """ test rename folder """ folder.manage("test_folder_state_rename", "create", "Datacenter", "vm") ret = folder.rename("test_folder_state_rename", "test_folder_state_new", "Datacenter", "vm") assert ret["result"] == True assert ret["comment"] == "renamed" assert ret["changes"]["new"] == "folder test_folder_state_rename renamed test_folder_state_new" def test_move_folder_test(patch_salt_globals_folder_state_test): """ test move folder in test mode """ ret = folder.move("test_folder_state_new", "top_folder", "Datacenter", "vm") assert ret["result"] == True assert ret["comment"] == "These options are set to change." assert ret["changes"]["new"] == "folder test_folder_state_new will be moved to top_folder" def test_move_folder(patch_salt_globals_folder_state): """ test move folder """ folder.manage("top_folder", "create", "Datacenter", "vm") ret = folder.move("test_folder_state_new", "top_folder", "Datacenter", "vm") assert ret["result"] == True assert ret["comment"] == "moved" assert ret["changes"]["new"] == "folder test_folder_state_new moved to top_folder"
35.444444
99
0.68652
417
3,190
4.973621
0.122302
0.153809
0.15188
0.08486
0.817261
0.786885
0.771456
0.663452
0.624879
0.490839
0
0.002276
0.173668
3,190
89
100
35.842697
0.784522
0.083386
0
0.425532
0
0
0.404711
0.102784
0
0
0
0
0.510638
1
0.170213
false
0
0.042553
0
0.212766
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
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
1c25993c0c3cfefa42e58028c11afe254f13513b
874
py
Python
src/estimators.py
mkashifn/celosia
2caa776620b9e7c3f63c41329f10c8c91fb4857f
[ "MIT" ]
null
null
null
src/estimators.py
mkashifn/celosia
2caa776620b9e7c3f63c41329f10c8c91fb4857f
[ "MIT" ]
null
null
null
src/estimators.py
mkashifn/celosia
2caa776620b9e7c3f63c41329f10c8c91fb4857f
[ "MIT" ]
null
null
null
#!/bin/python import numpy as np from functions import softmax class Estimator: def __init__(self): pass def __call__(self, A, B): return self.fx(A, B) def fx(self, A, B): return 0 def dfx(self, A, B): return 0 class MSE(Estimator): def __init__(self): pass def fx(self, A, B): return np.square(np.subtract(A, B)).mean() def dfx(self, A, B): n = A.shape[1] #number of columns return (2*np.subtract(A, B))/n class CrossEntropy(Estimator): def fx(self, A, B): '''A = predicted output, B is target output.''' B = B.argmax(axis=1) m = B.shape[0] p = softmax(A) log_likelihood = -np.log(p[range(m),B]) return np.sum(log_likelihood) / m def dfx(self, A, B): B = B.argmax(axis=1) m = B.shape[0] p = softmax(A) p[range(m),B] -= 1 return p/m mse = MSE() cross_entropy = CrossEntropy()
21.317073
51
0.599542
150
874
3.393333
0.32
0.039293
0.082515
0.094303
0.392927
0.284872
0.117878
0.117878
0.117878
0.117878
0
0.013554
0.240275
874
41
52
21.317073
0.753012
0.081236
0
0.529412
0
0
0
0
0
0
0
0
0
1
0.264706
false
0.058824
0.058824
0.117647
0.617647
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
1c2d762e5e744e5c8b75430425321b19fcc833b9
247
py
Python
python/testData/inspections/PyUnboundLocalVariableInspection/OrPatternAlternativesDefineDifferentNames.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/PyUnboundLocalVariableInspection/OrPatternAlternativesDefineDifferentNames.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/PyUnboundLocalVariableInspection/OrPatternAlternativesDefineDifferentNames.py
06needhamt/intellij-community
63d7b8030e4fdefeb4760e511e289f7e6b3a5c5b
[ "Apache-2.0" ]
null
null
null
def func(x): match x: case [1, y] | [2, z]: print(<warning descr="Local variable 'y' might be referenced before assignment">y</warning>, <warning descr="Local variable 'z' might be referenced before assignment">z</warning>)
61.75
191
0.651822
35
247
4.6
0.542857
0.149068
0.21118
0.310559
0.409938
0
0
0
0
0
0
0.010204
0.206478
247
4
191
61.75
0.811224
0
0
0
0
0
0.451613
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
1c4f763e26ec6dbdbac76c7bc9b7877d48c06dc1
86
py
Python
bokego/__init__.py
CGLemon/bokego
351eac74e095ddae2cd98c50c91c599331a04c3a
[ "MIT" ]
null
null
null
bokego/__init__.py
CGLemon/bokego
351eac74e095ddae2cd98c50c91c599331a04c3a
[ "MIT" ]
null
null
null
bokego/__init__.py
CGLemon/bokego
351eac74e095ddae2cd98c50c91c599331a04c3a
[ "MIT" ]
null
null
null
import os PKG_PATH = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..'))
28.666667
75
0.697674
14
86
3.928571
0.571429
0.327273
0
0
0
0
0
0
0
0
0
0
0.093023
86
2
76
43
0.705128
0
0
0
0
0
0.023256
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
1c616575964d574be022798c8014065bce4706da
969
py
Python
generated-libraries/python/netapp/vserver_peer/vserver_peer_state.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/vserver_peer/vserver_peer_state.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/vserver_peer/vserver_peer_state.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
class VserverPeerState(basestring): """ peered|pending|initializing|initiated|rejected|suspended|deleted Possible values: <ul> <li> "peered" - Vserver peer relationship is established and the respective applications can use peer relationship, <li> "pending" - Vserver peer relationship is initiated in the peer Cluster and local cluster needs to accept the request, <li> "initializing" - Communicating to the peer cluster for initializing the peering relationship, <li> "initiated" - Relationship initiated in local Cluster, <li> "rejected" - Relationship initiated and peer Cluster rejected the same, <li> "suspended" - Relationship got suspended, should not initiate any data transfers , <li> "deleted" - Relationship got deleted on peer Cluster </ul> """ @staticmethod def get_api_name(): return "vserver-peer-state"
33.413793
68
0.665635
105
969
6.12381
0.485714
0.068429
0.07154
0.077761
0
0
0
0
0
0
0
0
0.261094
969
28
69
34.607143
0.898045
0.769866
0
0
0
0
0.137405
0
0
0
0
0
0
1
0.25
true
0
0
0.25
0.75
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
1
0
0
1
1
0
0
4
1c82a8e86ef24fff6e2b490df771ffb80bdd9a8e
88
py
Python
dataset/__init__.py
InchSoup/HWCC2020_RS_segmentation
ed21435e61c19a700e870acaaa1dfc27e0d5683c
[ "MIT" ]
16
2020-12-25T12:46:20.000Z
2021-11-28T10:22:42.000Z
dataset/__init__.py
InchSoup/HWCC2020_RS_segmentation
ed21435e61c19a700e870acaaa1dfc27e0d5683c
[ "MIT" ]
1
2020-12-25T13:15:39.000Z
2020-12-25T15:24:10.000Z
dataset/__init__.py
InchSoup/HWCC2020_RS_segmentation
ed21435e61c19a700e870acaaa1dfc27e0d5683c
[ "MIT" ]
4
2020-12-25T13:15:33.000Z
2021-02-05T08:54:41.000Z
from .RSCDataset import RSCDataset from .transform import train_transform, val_transform
44
53
0.875
11
88
6.818182
0.545455
0
0
0
0
0
0
0
0
0
0
0
0.090909
88
2
53
44
0.9375
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
1c92da2bb9d37ad32c4a1839b80a12d59a1e9b47
120
py
Python
URI2766.py
rashidulhasanhridoy/URI-Online-Judge-Problem-Solve-with-Python-3
c7db434e2e6e40c2ca3bd56db0d04cf79f69de12
[ "Apache-2.0" ]
2
2020-07-21T18:01:37.000Z
2021-11-29T01:08:14.000Z
URI2766.py
rashidulhasanhridoy/URI-Online-Judge-Problem-Solve-with-Python-3
c7db434e2e6e40c2ca3bd56db0d04cf79f69de12
[ "Apache-2.0" ]
null
null
null
URI2766.py
rashidulhasanhridoy/URI-Online-Judge-Problem-Solve-with-Python-3
c7db434e2e6e40c2ca3bd56db0d04cf79f69de12
[ "Apache-2.0" ]
null
null
null
names = [] for i in range(10): X =str(input('')) names.append(X) print(names[2]) print(names[6]) print(names[8])
17.142857
21
0.6
21
120
3.428571
0.666667
0.416667
0
0
0
0
0
0
0
0
0
0.05
0.166667
120
7
22
17.142857
0.67
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.428571
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
98c2589144df2943d52c9cd4e6fbc72dd4e65a15
125
py
Python
jaysblog/blueprints/oauth/__init__.py
cRiii/jaysblog
f96ecd82f17750a47147ae3c5e72cf1320be21e5
[ "MIT" ]
5
2019-10-14T01:51:02.000Z
2019-11-07T15:01:14.000Z
jaysblog/blueprints/oauth/__init__.py
cRiii/jaysblog
f96ecd82f17750a47147ae3c5e72cf1320be21e5
[ "MIT" ]
1
2019-11-07T06:58:26.000Z
2019-11-07T06:58:26.000Z
jaysblog/blueprints/oauth/__init__.py
cRiii/jaysblog
f96ecd82f17750a47147ae3c5e72cf1320be21e5
[ "MIT" ]
null
null
null
""" # @TimeΒ  Β  Β : 2019/10/30 14:16 # @AuthorΒ  Β : jay # @FileΒ  Β  Β : __init__.py.py # @GitHub Β  : https://github.com/Locusc """
20.833333
39
0.536
17
125
3.705882
0.882353
0
0
0
0
0
0
0
0
0
0
0.126316
0.24
125
6
40
20.833333
0.536842
0.936
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
98cb5ecfede7a2199b0f9573692806c65d09d315
10,124
py
Python
eggs/BTrees-4.1.1-py2.7-linux-x86_64.egg/BTrees/tests/test_LOBTree.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
2
2020-05-16T08:38:34.000Z
2020-10-01T01:32:57.000Z
eggs/BTrees-4.1.1-py2.7-linux-x86_64.egg/BTrees/tests/test_LOBTree.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
1
2021-03-25T21:51:01.000Z
2021-03-25T21:51:01.000Z
eggs/BTrees-4.1.1-py2.7-linux-x86_64.egg/BTrees/tests/test_LOBTree.py
salayhin/talkofacta
8b5a14245dd467bb1fda75423074c4840bd69fb7
[ "MIT" ]
null
null
null
############################################################################## # # Copyright (c) 2001-2012 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # FOR A PARTICULAR PURPOSE # ############################################################################## import unittest from .common import BTreeTests from .common import ExtendedSetTests from .common import I_SetsBase from .common import InternalKeysMappingTest from .common import InternalKeysSetTest from .common import MappingBase from .common import MappingConflictTestBase from .common import ModuleTest from .common import MultiUnion from .common import NormalSetTests from .common import SetConflictTestBase from .common import SetResult from .common import TestLongIntKeys from .common import makeBuilder class LOBTreeInternalKeyTest(InternalKeysMappingTest, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOBTree return LOBTree class LOBTreePyInternalKeyTest(InternalKeysMappingTest, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOBTreePy return LOBTreePy class LOTreeSetInternalKeyTest(InternalKeysSetTest, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOTreeSet return LOTreeSet class LOTreeSetPyInternalKeyTest(InternalKeysSetTest, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOTreeSetPy return LOTreeSetPy class LOBucketTest(MappingBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOBucket return LOBucket class LOBucketPyTest(MappingBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOBucketPy return LOBucketPy class LOTreeSetTest(NormalSetTests, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOTreeSet return LOTreeSet class LOTreeSetPyTest(NormalSetTests, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOTreeSetPy return LOTreeSetPy class LOSetTest(ExtendedSetTests, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOSet return LOSet class LOSetPyTest(ExtendedSetTests, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOSetPy return LOSetPy class LOBTreeTest(BTreeTests, TestLongIntKeys, unittest.TestCase): def _makeOne(self): from BTrees.LOBTree import LOBTree return LOBTree() class LOBTreePyTest(BTreeTests, TestLongIntKeys, unittest.TestCase): def _makeOne(self): from BTrees.LOBTree import LOBTreePy return LOBTreePy() class TestLOSets(I_SetsBase, unittest.TestCase): def _makeOne(self): from BTrees.LOBTree import LOSet return LOSet() class TestLOSetsPy(I_SetsBase, unittest.TestCase): def _makeOne(self): from BTrees.LOBTree import LOSetPy return LOSetPy() class TestLOTreeSets(I_SetsBase, unittest.TestCase): def _makeOne(self): from BTrees.LOBTree import LOTreeSet return LOTreeSet() class TestLOTreeSetsPy(I_SetsBase, unittest.TestCase): def _makeOne(self): from BTrees.LOBTree import LOTreeSetPy return LOTreeSetPy() class TestLOMultiUnion(MultiUnion, unittest.TestCase): def multiunion(self, *args): from BTrees.LOBTree import multiunion return multiunion(*args) def union(self, *args): from BTrees.LOBTree import union return union(*args) def mkset(self, *args): from BTrees.LOBTree import LOSet as mkset return mkset(*args) def mktreeset(self, *args): from BTrees.LOBTree import LOTreeSet as mktreeset return mktreeset(*args) def mkbucket(self, *args): from BTrees.LOBTree import LOBucket as mkbucket return mkbucket(*args) def mkbtree(self, *args): from BTrees.LOBTree import LOBTree as mkbtree return mkbtree(*args) class TestLOMultiUnionPy(MultiUnion, unittest.TestCase): def multiunion(self, *args): from BTrees.LOBTree import multiunionPy return multiunionPy(*args) def union(self, *args): from BTrees.LOBTree import unionPy return unionPy(*args) def mkset(self, *args): from BTrees.LOBTree import LOSetPy as mkset return mkset(*args) def mktreeset(self, *args): from BTrees.LOBTree import LOTreeSetPy as mktreeset return mktreeset(*args) def mkbucket(self, *args): from BTrees.LOBTree import LOBucketPy as mkbucket return mkbucket(*args) def mkbtree(self, *args): from BTrees.LOBTree import LOBTreePy as mkbtree return mkbtree(*args) class PureLO(SetResult, unittest.TestCase): def union(self, *args): from BTrees.LOBTree import union return union(*args) def intersection(self, *args): from BTrees.LOBTree import intersection return intersection(*args) def difference(self, *args): from BTrees.LOBTree import difference return difference(*args) def builders(self): from BTrees.LOBTree import LOBTree from BTrees.LOBTree import LOBucket from BTrees.LOBTree import LOTreeSet from BTrees.LOBTree import LOSet return LOSet, LOTreeSet, makeBuilder(LOBTree), makeBuilder(LOBucket) class PureLOPy(SetResult, unittest.TestCase): def union(self, *args): from BTrees.LOBTree import unionPy return unionPy(*args) def intersection(self, *args): from BTrees.LOBTree import intersectionPy return intersectionPy(*args) def difference(self, *args): from BTrees.LOBTree import differencePy return differencePy(*args) def builders(self): from BTrees.LOBTree import LOBTreePy from BTrees.LOBTree import LOBucketPy from BTrees.LOBTree import LOTreeSetPy from BTrees.LOBTree import LOSetPy return (LOSetPy, LOTreeSetPy, makeBuilder(LOBTreePy), makeBuilder(LOBucketPy)) class LOBTreeConflictTests(MappingConflictTestBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOBTree return LOBTree class LOBTreeConflictTestsPy(MappingConflictTestBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOBTreePy return LOBTreePy class LOBucketConflictTests(MappingConflictTestBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOBucket return LOBucket class LOBucketConflictTestsPy(MappingConflictTestBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOBucketPy return LOBucketPy class LOTreeSetConflictTests(SetConflictTestBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOTreeSet return LOTreeSet class LOTreeSetConflictTestsPy(SetConflictTestBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOTreeSetPy return LOTreeSetPy class LOSetConflictTests(SetConflictTestBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOSet return LOSet class LOSetConflictTestsPy(SetConflictTestBase, unittest.TestCase): def _getTargetClass(self): from BTrees.LOBTree import LOSetPy return LOSetPy class LOModuleTest(ModuleTest, unittest.TestCase): prefix = 'LO' def _getModule(self): import BTrees return BTrees.LOBTree def _getInterface(self): import BTrees.Interfaces return BTrees.Interfaces.IIntegerObjectBTreeModule def test_weightedUnion_not_present(self): try: from BTrees.LOBTree import weightedUnion except ImportError: pass else: self.fail("LOBTree shouldn't have weightedUnion") def test_weightedIntersection_not_present(self): try: from BTrees.LOBTree import weightedIntersection except ImportError: pass else: self.fail("LOBTree shouldn't have weightedIntersection") def test_suite(): return unittest.TestSuite(( unittest.makeSuite(LOBTreeInternalKeyTest), unittest.makeSuite(LOBTreePyInternalKeyTest), unittest.makeSuite(LOTreeSetInternalKeyTest), unittest.makeSuite(LOTreeSetPyInternalKeyTest), unittest.makeSuite(LOBucketTest), unittest.makeSuite(LOBucketPyTest), unittest.makeSuite(LOTreeSetTest), unittest.makeSuite(LOTreeSetPyTest), unittest.makeSuite(LOSetTest), unittest.makeSuite(LOSetPyTest), unittest.makeSuite(LOBTreeTest), unittest.makeSuite(LOBTreePyTest), unittest.makeSuite(TestLOSets), unittest.makeSuite(TestLOSetsPy), unittest.makeSuite(TestLOTreeSets), unittest.makeSuite(TestLOTreeSetsPy), unittest.makeSuite(TestLOMultiUnion), unittest.makeSuite(TestLOMultiUnionPy), unittest.makeSuite(PureLO), unittest.makeSuite(PureLOPy), unittest.makeSuite(LOBTreeConflictTests), unittest.makeSuite(LOBTreeConflictTestsPy), unittest.makeSuite(LOBucketConflictTests), unittest.makeSuite(LOBucketConflictTestsPy), unittest.makeSuite(LOTreeSetConflictTests), unittest.makeSuite(LOTreeSetConflictTestsPy), unittest.makeSuite(LOSetConflictTests), unittest.makeSuite(LOSetConflictTestsPy), unittest.makeSuite(LOModuleTest), ))
28.122222
78
0.703576
972
10,124
7.289095
0.154321
0.097248
0.124771
0.168807
0.596471
0.568807
0.557798
0.546224
0.523077
0.463232
0
0.001261
0.216416
10,124
359
79
28.200557
0.891844
0.045338
0
0.5
0
0
0.008529
0
0
0
0
0
0
1
0.207627
false
0.008475
0.300847
0.004237
0.834746
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
1
0
1
0
0
4
98cfa1ec051ac7027b878465c2f4de8c96383ab8
97
py
Python
restapi/papertrader/apps.py
Varun487/CapstoneProject_TradingSystem
b21e3f2c6c5e75596927666bf65294a2014babcf
[ "MIT" ]
3
2022-01-10T01:39:00.000Z
2022-01-11T13:17:36.000Z
restapi/papertrader/apps.py
Varun487/CapstoneProject_TradingSystem
b21e3f2c6c5e75596927666bf65294a2014babcf
[ "MIT" ]
null
null
null
restapi/papertrader/apps.py
Varun487/CapstoneProject_TradingSystem
b21e3f2c6c5e75596927666bf65294a2014babcf
[ "MIT" ]
1
2022-01-09T07:30:36.000Z
2022-01-09T07:30:36.000Z
from django.apps import AppConfig class PapertraderConfig(AppConfig): name = 'papertrader'
16.166667
35
0.773196
10
97
7.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.154639
97
5
36
19.4
0.914634
0
0
0
0
0
0.113402
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
98ddf7c5a62bbf69ee216c4f28e1dd1f6a83d4ee
399
py
Python
test/utils.py
pei223/deepext_with_lightning
e40ac19844a05864f803431d8ef4a534286a0950
[ "MIT" ]
1
2021-02-25T14:30:08.000Z
2021-02-25T14:30:08.000Z
test/utils.py
pei223/deepext_with_lightning
e40ac19844a05864f803431d8ef4a534286a0950
[ "MIT" ]
null
null
null
test/utils.py
pei223/deepext_with_lightning
e40ac19844a05864f803431d8ef4a534286a0950
[ "MIT" ]
null
null
null
import warnings from typing import Tuple warnings.simplefilter('ignore') import torch def gen_random_tensor(batch_size: int, img_size: Tuple[int, int], channels: int = 3): return torch.randn([batch_size, channels, img_size[0], img_size[1]]) def assert_tensor_shape(result_tensor: torch.Tensor, expected_shape: Tuple, message: str): assert result_tensor.shape == expected_shape, message
28.5
90
0.77193
58
399
5.086207
0.482759
0.071186
0
0
0
0
0
0
0
0
0
0.008571
0.122807
399
13
91
30.692308
0.834286
0
0
0
0
0
0.015038
0
0
0
0
0
0.25
1
0.25
false
0
0.375
0.125
0.75
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
98e165155a2afc3a740b85ed73d58558d256c0c8
1,729
py
Python
tethysext/atcore/tests/unit_tests/__init__.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
3
2020-11-05T23:50:47.000Z
2021-02-26T21:43:29.000Z
tethysext/atcore/tests/unit_tests/__init__.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
7
2020-10-29T16:53:49.000Z
2021-05-07T19:46:47.000Z
tethysext/atcore/tests/unit_tests/__init__.py
Aquaveo/tethysext-atcore
7a83ccea24fdbbe806f12154f938554dd6c8015f
[ "BSD-3-Clause" ]
null
null
null
from .mixins.status_mixin import StatusMixinTests # noqa: F401 from .mixins.options_mixin import OptionsMixinTests # noqa: F401 from .mixins.results_mixin import ResultMixinTests # noqa: F401 from .model_types.guid_tests import GuidTests # noqa: F401 from .services.app_users.licenses import LicensesTests # noqa: F401 from .services.app_users.user_roles_tests import AppUserRoleTests # noqa: F401 from .services.paginate import PaginateTests # noqa: F401 from .services.spatial_reference import SpatialReferenceServiceTests # noqa: F401 from .services.model_database_connection_base import ModelDatabaseConnectionBaseTests # noqa: F401, E501 from .services.model_database_connection import ModelDatabaseConnectionTests # noqa: F401, E501 from .services.model_file_database_connection import ModelFileDatabaseConnectionTests # noqa: F401, E501 from .services.model_database_base import ModelDatabaseBaseTests # noqa: F401 from .services.model_database import ModelDatabaseTests # noqa: F401 from .services.model_file_database import ModelFileDatabaseTests # noqa: F401 from .services.resource_spatial_manager import ResourceSpatialManagerTests # noqa: F401 from .services.geoserver_api import GeoServerAPITests # noqa: F401 from .services.base_spatial_manager import BaseSpatialManagerTests # noqa: F401 from .services.model_db_spatial_manager import ModelDBSpatialManagerTests # noqa: F401 from .services.model_file_db_spatial_manager import ModelFileDBSpatialManagerTests # noqa: F401, E501 from .services.map_manager import MapManagerBaseTests # noqa: F401 from .gizmos.spatial_reference_select import SpatialReferenceSelectTests # noqa: F401 from .gizmos.slide_sheet import SlideSheetTests # noqa: F401
75.173913
105
0.841527
199
1,729
7.115578
0.296482
0.124294
0.144068
0.169492
0.262712
0.199859
0.05226
0
0
0
0
0.050355
0.104106
1,729
22
106
78.590909
0.863783
0.153268
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
98e3351490e83d67a6a26d618dce33c66ce1c49a
1,517
py
Python
setup.py
narpfel/yay-ast
2c090f9bce3f6846ef2eeb5dc157f95a0853fc7a
[ "PSF-2.0" ]
null
null
null
setup.py
narpfel/yay-ast
2c090f9bce3f6846ef2eeb5dc157f95a0853fc7a
[ "PSF-2.0" ]
null
null
null
setup.py
narpfel/yay-ast
2c090f9bce3f6846ef2eeb5dc157f95a0853fc7a
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, Extension _yay_ast = Extension( "_yay_ast", include_dirs=["_yay_ast/Include"], sources=[ "_yay_ast/Custom/yay_ast.c", "_yay_ast/Parser/acceler.c", "_yay_ast/Parser/bitset.c", "_yay_ast/Parser/grammar.c", "_yay_ast/Parser/grammar1.c", "_yay_ast/Parser/node.c", "_yay_ast/Parser/parser.c", "_yay_ast/Parser/parsetok.c", "_yay_ast/Parser/tokenizer.c", "_yay_ast/Python/asdl.c", "_yay_ast/Python/ast.c", "_yay_ast/Python/graminit.c", "_yay_ast/Python/Python-ast.c", ], depends=[ "_yay_ast/Include/asdl.h", "_yay_ast/Include/ast.h", "_yay_ast/Include/bitset.h", "_yay_ast/Include/compile.h", "_yay_ast/Include/errcode.h", "_yay_ast/Include/graminit.h", "_yay_ast/Include/grammar.h", "_yay_ast/Include/node.h", "_yay_ast/Include/parsetok.h", "_yay_ast/Include/Python-ast.h", "_yay_ast/Include/token.h", "_yay_ast/Parser/parser.h", "_yay_ast/Parser/tokenizer.h", ], extra_compile_args=[ "-std=c99", ], ) setup( name="yay_ast", version="3.6.1", py_modules=["yay_ast"], ext_modules=[_yay_ast], license="PSFL", keywords="yay", classifiers=[ "Development Status :: 2 - Pre-Alpha", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", ], )
26.155172
48
0.582729
194
1,517
4.206186
0.283505
0.242647
0.207108
0.171569
0.041667
0
0
0
0
0
0
0.0097
0.252472
1,517
57
49
26.614035
0.709877
0.013843
0
0.078431
0
0
0.545151
0.434783
0
0
0
0
0
1
0
false
0
0.019608
0
0.019608
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
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
98f089dac7423c361a0c3bbf00a169da3b0e11b5
215
py
Python
checkarg/exceptions/__init__.py
tiagogandarezff/checkarg
99f2f18bebf99f47acb4f53925f7a0696de04bba
[ "MIT" ]
17
2020-11-06T14:56:50.000Z
2022-02-03T10:46:20.000Z
checkarg/exceptions/__init__.py
tiagogandarezff/checkarg
99f2f18bebf99f47acb4f53925f7a0696de04bba
[ "MIT" ]
12
2020-11-20T15:35:27.000Z
2021-04-21T17:01:32.000Z
checkarg/exceptions/__init__.py
tiagogandarezff/checkarg
99f2f18bebf99f47acb4f53925f7a0696de04bba
[ "MIT" ]
4
2020-11-20T20:35:04.000Z
2022-01-04T14:43:08.000Z
from .error_messages import ( DefaultErrorMessages, NoneTypeErrorMessages, NumberErrorMessages, TextErrorMessages, ) from .exceptions import ArgumentError, ArgumentNoneError, ArgumentOutOfRangeError
26.875
81
0.809302
14
215
12.357143
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.144186
215
7
82
30.714286
0.940217
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.285714
0
0.285714
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
98feacbd49d2c3d57a74d54cd3601c278dd8e5b2
252
py
Python
unittest_reinvent/running_modes/inception_tests/test_add_jaccard_distance.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
183
2020-04-04T02:01:15.000Z
2022-03-30T21:56:56.000Z
unittest_reinvent/running_modes/inception_tests/test_add_jaccard_distance.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
39
2020-04-05T15:19:56.000Z
2022-03-09T12:58:21.000Z
unittest_reinvent/running_modes/inception_tests/test_add_jaccard_distance.py
lilleswing/Reinvent-1
ac4e3e6fa6379c6f4af883478dfd1b3407933ada
[ "Apache-2.0" ]
70
2020-04-05T19:25:43.000Z
2022-02-22T12:04:39.000Z
from unittest_reinvent.running_modes.inception_tests.test_add_base import TestInceptionAddBase class TestInceptionAddJaccardDistance(TestInceptionAddBase): def test_eval_add_1(self): self.assertEqual(len(self.inception_model.memory), 3)
31.5
94
0.833333
29
252
6.931034
0.793103
0
0
0
0
0
0
0
0
0
0
0.008811
0.099206
252
7
95
36
0.876652
0
0
0
0
0
0
0
0
0
0
0
0.25
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
c7047270ee829cd3fd3852057f291212955d6e0a
2,582
py
Python
ant/fs/beacon.py
CS6/openant
590eea3a6ff78c35f1783c646bbbeba086dbe45e
[ "MIT" ]
1
2020-10-05T16:50:23.000Z
2020-10-05T16:50:23.000Z
openANT/ant/fs/beacon.py
RonanLeGuillou/ANT4ROTOR
cc188a8232c264098c34b99f665db82457891585
[ "MIT" ]
null
null
null
openANT/ant/fs/beacon.py
RonanLeGuillou/ANT4ROTOR
cc188a8232c264098c34b99f665db82457891585
[ "MIT" ]
1
2020-10-05T17:02:28.000Z
2020-10-05T17:02:28.000Z
# Ant # # Copyright (c) 2012, Gustav Tiger <gustav@tiger.name> # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. from __future__ import absolute_import, print_function import struct class Beacon: class ClientDeviceState: LINK = 0x00 # 0b0000 AUTHENTICATION = 0x01 # 0b0001 TRANSPORT = 0x02 # 0b0010 BUSY = 0x03 # 0b0011 BEACON_ID = 0x43 def __init__(self, status_byte_1, status_byte_2, authentication_type, descriptor): self._status_byte_1 = status_byte_1 self._status_byte_2 = status_byte_2 self._authentication_type = authentication_type self._descriptor = descriptor def is_data_available(self): return bool(self._status_byte_1 & 0x20) # 0b00100000 def is_upload_enabled(self): return bool(self._status_byte_1 & 0x10) # 0b00010000 def is_pairing_enabled(self): return bool(self._status_byte_1 & 0x08) # 0b00001000 def get_channel_period(self): return self._status_byte_1 & 0x07 # 0b00000111, TODO def get_client_device_state(self): return self._status_byte_2 & 0x0f # 0b00001111, TODO def get_serial(self): return struct.unpack("<I", self._descriptor)[0] def get_descriptor(self): return struct.unpack("<HH", self._descriptor) @staticmethod def parse(data): mark, status_byte_1, status_byte_2, authentication_type = struct.unpack("<BBBB4x", data) assert mark == Beacon.BEACON_ID return Beacon(status_byte_1, status_byte_2, authentication_type, data[4:])
35.861111
96
0.726181
355
2,582
5.08169
0.461972
0.083149
0.054878
0.049889
0.165188
0.138581
0.122506
0.10643
0
0
0
0.056558
0.205655
2,582
71
97
36.366197
0.823013
0.453912
0
0
0
0
0.008708
0
0
0
0.029028
0.014085
0.030303
1
0.272727
false
0
0.060606
0.212121
0.666667
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
0
1
1
0
0
4
c704f6cee2654be986d694cd7d40afcf97a30bf5
278
py
Python
pycred/credentials.py
devconsoft/pycred
d72bdae2e703a87a7424f08af326834281b83fee
[ "MIT" ]
null
null
null
pycred/credentials.py
devconsoft/pycred
d72bdae2e703a87a7424f08af326834281b83fee
[ "MIT" ]
5
2018-07-01T22:53:24.000Z
2018-07-17T21:54:10.000Z
pycred/credentials.py
devconsoft/pycred
d72bdae2e703a87a7424f08af326834281b83fee
[ "MIT" ]
null
null
null
class Credentials(object): def __init__(self, username, password): """ Credentials. :param username: Username :param password: Password """ self.username = username #: Username self.password = password #: Password
23.166667
45
0.582734
23
278
6.869565
0.391304
0.303797
0
0
0
0
0
0
0
0
0
0
0.320144
278
11
46
25.272727
0.835979
0.309353
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.5
0
0
0.5
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
1
0
1
0
0
0
0
0
4
c72b99fcd6137a1b1aa9286914c8af8ae7a0f3bf
2,780
gyp
Python
gyp/svg.gyp
chromium-googlesource-mirror/skia
983d158373c3ac8c18514481e80ce939e1e01199
[ "BSD-3-Clause" ]
null
null
null
gyp/svg.gyp
chromium-googlesource-mirror/skia
983d158373c3ac8c18514481e80ce939e1e01199
[ "BSD-3-Clause" ]
null
null
null
gyp/svg.gyp
chromium-googlesource-mirror/skia
983d158373c3ac8c18514481e80ce939e1e01199
[ "BSD-3-Clause" ]
1
2020-11-12T05:40:43.000Z
2020-11-12T05:40:43.000Z
{ 'includes': [ 'common.gypi', ], 'targets': [ { 'target_name': 'svg', 'type': 'static_library', 'include_dirs': [ '../include/config', '../include/core', '../include/xml', '../include/utils', '../include/svg', ], 'sources': [ '../include/svg/SkSVGAttribute.h', '../include/svg/SkSVGBase.h', '../include/svg/SkSVGPaintState.h', '../include/svg/SkSVGParser.h', '../include/svg/SkSVGTypes.h', '../src/svg/SkSVGCircle.cpp', '../src/svg/SkSVGCircle.h', '../src/svg/SkSVGClipPath.cpp', '../src/svg/SkSVGClipPath.h', '../src/svg/SkSVGDefs.cpp', '../src/svg/SkSVGDefs.h', '../src/svg/SkSVGElements.cpp', '../src/svg/SkSVGElements.h', '../src/svg/SkSVGEllipse.cpp', '../src/svg/SkSVGEllipse.h', '../src/svg/SkSVGFeColorMatrix.cpp', '../src/svg/SkSVGFeColorMatrix.h', '../src/svg/SkSVGFilter.cpp', '../src/svg/SkSVGFilter.h', '../src/svg/SkSVGG.cpp', '../src/svg/SkSVGG.h', '../src/svg/SkSVGGradient.cpp', '../src/svg/SkSVGGradient.h', '../src/svg/SkSVGGroup.cpp', '../src/svg/SkSVGGroup.h', '../src/svg/SkSVGImage.cpp', '../src/svg/SkSVGImage.h', '../src/svg/SkSVGLine.cpp', '../src/svg/SkSVGLine.h', '../src/svg/SkSVGLinearGradient.cpp', '../src/svg/SkSVGLinearGradient.h', '../src/svg/SkSVGMask.cpp', '../src/svg/SkSVGMask.h', '../src/svg/SkSVGMetadata.cpp', '../src/svg/SkSVGMetadata.h', '../src/svg/SkSVGPaintState.cpp', '../src/svg/SkSVGParser.cpp', '../src/svg/SkSVGPath.cpp', '../src/svg/SkSVGPath.h', '../src/svg/SkSVGPolygon.cpp', '../src/svg/SkSVGPolygon.h', '../src/svg/SkSVGPolyline.cpp', '../src/svg/SkSVGPolyline.h', '../src/svg/SkSVGRadialGradient.cpp', '../src/svg/SkSVGRadialGradient.h', '../src/svg/SkSVGRect.cpp', '../src/svg/SkSVGRect.h', '../src/svg/SkSVGStop.cpp', '../src/svg/SkSVGStop.h', '../src/svg/SkSVGSVG.cpp', '../src/svg/SkSVGSVG.h', '../src/svg/SkSVGSymbol.cpp', '../src/svg/SkSVGSymbol.h', '../src/svg/SkSVGText.cpp', '../src/svg/SkSVGText.h', '../src/svg/SkSVGUse.cpp', ], 'sources!' : [ '../src/svg/SkSVG.cpp', # doesn't compile, maybe this is test code? ], 'direct_dependent_settings': { 'include_dirs': [ '../include/svg', ], }, }, ], } # Local Variables: # tab-width:2 # indent-tabs-mode:nil # End: # vim: set expandtab tabstop=2 shiftwidth=2:
30.217391
77
0.510072
284
2,780
4.971831
0.271127
0.220963
0.165722
0.025496
0
0
0
0
0
0
0
0.001458
0.260072
2,780
91
78
30.549451
0.684978
0.05
0
0.119048
0
0
0.636674
0.550873
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
c7334de5d77696378cbb7819b270d30b54c64245
319
py
Python
accounts/urls.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
69
2015-02-03T12:02:56.000Z
2022-02-16T13:08:01.000Z
accounts/urls.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
446
2015-01-01T11:10:33.000Z
2021-11-01T08:15:39.000Z
accounts/urls.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
67
2015-01-01T09:13:58.000Z
2021-11-01T07:51:08.000Z
#encoding: UTF-8 from django.conf.urls import url, patterns from views import send_validation_email, validate_email urlpatterns = patterns('', url(r'^send-validation-email/$', send_validation_email, name='send-validation-email'), url(r'^validate-email/(?P<key>.*)/$', validate_email, name='validate-email'), )
35.444444
90
0.736677
43
319
5.325581
0.465116
0.244541
0.331878
0
0
0
0
0
0
0
0
0.003472
0.097179
319
8
91
39.875
0.791667
0.047022
0
0
0
0
0.290429
0.244224
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
c74a9f8635ff8449c49977b61727f5af9943ae4c
523
py
Python
chapter_4/character_picture_grid.py
ebogucka/automate-the-boring-stuff
9cfade4f66ba8b704a28bffabc52b2b07ce78c08
[ "MIT" ]
1
2020-05-31T14:21:05.000Z
2020-05-31T14:21:05.000Z
chapter_4/character_picture_grid.py
ebogucka/automate-the-boring-stuff
9cfade4f66ba8b704a28bffabc52b2b07ce78c08
[ "MIT" ]
null
null
null
chapter_4/character_picture_grid.py
ebogucka/automate-the-boring-stuff
9cfade4f66ba8b704a28bffabc52b2b07ce78c08
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Character Picture Grid grid = [ [".", ".", ".", ".", ".", "."], [".", "O", "O", ".", ".", "."], ["O", "O", "O", "O", ".", "."], ["O", "O", "O", "O", "O", "."], [".", "O", "O", "O", "O", "O"], ["O", "O", "O", "O", "O", "."], ["O", "O", "O", "O", ".", "."], [".", "O", "O", ".", ".", "."], [".", ".", ".", ".", ".", "."], ] rows = len(grid) columns = len(grid[0]) for x in range(columns): for y in range(rows): print(grid[y][x], end="") print()
22.73913
35
0.277247
58
523
2.5
0.327586
0.358621
0.517241
0.662069
0.186207
0.186207
0.186207
0.186207
0.186207
0.186207
0
0.005168
0.260038
523
22
36
23.772727
0.369509
0.08413
0
0.470588
0
0
0.113208
0
0
0
0
0
0
1
0
false
0
0
0
0
0.117647
0
0
0
null
1
1
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
0
0
0
0
0
0
0
4
c79ae40f96b6381db0e65c3f4c73b5e9bebeafc4
849
py
Python
core/crawlers/basecrawler.py
cmu-db/cmdbac
1f981e6f110728e51ba4ffdb90ff2d4ce091057a
[ "Apache-2.0" ]
31
2016-04-07T04:54:29.000Z
2021-11-30T02:30:57.000Z
core/crawlers/basecrawler.py
cmu-db/db-webcrawler
1f981e6f110728e51ba4ffdb90ff2d4ce091057a
[ "Apache-2.0" ]
22
2015-12-19T14:49:18.000Z
2021-09-07T23:48:24.000Z
core/crawlers/basecrawler.py
cmu-db/dbac
1f981e6f110728e51ba4ffdb90ff2d4ce091057a
[ "Apache-2.0" ]
7
2016-05-13T01:02:01.000Z
2019-10-06T16:52:54.000Z
import os, sys sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, "core")) import utils from library.models import * class BaseCrawler(object): def __init__(self, crawlerStatus, auth = None): self.crawlerStatus = crawlerStatus self.auth = auth # DEF def search(self): raise NotImplementedError("Unimplemented %s" % self.__init__.im_class) # DEF def crawl(self): nextResults = self.search() ## DEF def add_repository(self, name, setup_scripts = None): raise NotImplementedError("Unimplemented %s" % self.__init__.im_class) # DEF def download_repository(self, repo_name, sha, zip_name): raise NotImplementedError("Unimplemented %s" % self.__init__.im_class) # DEF ## CLASS
28.3
78
0.684335
105
849
5.228571
0.380952
0.043716
0.202186
0.20765
0.491803
0.491803
0.491803
0.491803
0.491803
0.3898
0
0
0.196702
849
30
79
28.3
0.804985
0.029446
0
0.176471
0
0
0.063725
0
0
0
0
0
0
1
0.294118
false
0
0.176471
0
0.529412
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
c7a59495f5de7d8c8e0ca543ada9b10b699710c3
1,356
py
Python
chef_admin/models.py
pradeepdhankhar/chef24x7
4b8a36c07b78b7f985227874d169171ff7b0dd5f
[ "MIT" ]
null
null
null
chef_admin/models.py
pradeepdhankhar/chef24x7
4b8a36c07b78b7f985227874d169171ff7b0dd5f
[ "MIT" ]
null
null
null
chef_admin/models.py
pradeepdhankhar/chef24x7
4b8a36c07b78b7f985227874d169171ff7b0dd5f
[ "MIT" ]
1
2019-12-13T10:21:30.000Z
2019-12-13T10:21:30.000Z
from django.db import models # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharField(max_length=200) votes = models.IntegerField(default=0) class Chef(models.Model): user_id = models.IntegerField() name = models.CharField(max_length=200) returant_name = models.CharField(max_length=200) place = models.CharField(max_length=200) city = models.CharField(max_length=200) state = models.CharField(max_length=200) open_days = models.CharField(max_length=200) open_hours = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Category(models.Model): cat_id = models.IntegerField() name = models.CharField(max_length=200) img = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Items(models.Model): name = models.CharField(max_length=200) img = models.CharField(max_length=200) cat = models.IntegerField() price = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Restcat(models.Model): rest_id = models.CharField(max_length=200) cat_id = models.IntegerField()
30.818182
68
0.764749
181
1,356
5.569061
0.259669
0.223214
0.267857
0.357143
0.659722
0.606151
0.446429
0.446429
0.446429
0.375992
0
0.038623
0.121681
1,356
44
69
30.818182
0.807725
0.017699
0
0.34375
0
0
0.042074
0
0
0
0
0
0
1
0
false
0
0.03125
0
1
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
0
0
0
0
1
0
0
4
c7af904944607c128d9c37b4f38025f9e50d4249
173
py
Python
test.py
HansomeBo/SgsDaily
d79bf7e847d00af2f632f5ba269c4d8d89904952
[ "MIT" ]
null
null
null
test.py
HansomeBo/SgsDaily
d79bf7e847d00af2f632f5ba269c4d8d89904952
[ "MIT" ]
null
null
null
test.py
HansomeBo/SgsDaily
d79bf7e847d00af2f632f5ba269c4d8d89904952
[ "MIT" ]
null
null
null
import time import win32api if __name__ == '__main__': win32api.SetCursor(1028, 240) # while True: # time.sleep(2) # print(win32api.GetCursorPos())
19.222222
40
0.635838
19
173
5.368421
0.789474
0
0
0
0
0
0
0
0
0
0
0.10687
0.242775
173
9
40
19.222222
0.671756
0.369942
0
0
0
0
0.075472
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
c7b45a0d7846b5219ddebfce2e629c0c83cac707
157
py
Python
Validation/CaloTowers/python/CaloTowersPostProcessor_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Validation/CaloTowers/python/CaloTowersPostProcessor_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Validation/CaloTowers/python/CaloTowersPostProcessor_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from Validation.CaloTowers.CaloTowersClient_cfi import * calotowersPostProcessor = cms.Sequence(calotowersClient)
26.166667
56
0.859873
16
157
8.375
0.8125
0
0
0
0
0
0
0
0
0
0
0
0.082803
157
5
57
31.4
0.930556
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
c7c0d29b441ca2bd7dfd35a8d49f31113c886d97
238
py
Python
corehq/apps/builds/tests.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/builds/tests.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/builds/tests.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals from corehq.apps.builds.utils import extract_build_info_from_filename __test__ = { 'extract_build_info_from_filename': extract_build_info_from_filename }
29.75
72
0.865546
32
238
5.625
0.46875
0.2
0.266667
0.333333
0.466667
0
0
0
0
0
0
0
0.096639
238
7
73
34
0.837209
0
0
0
0
0
0.134454
0.134454
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
1bf287864b5a67fa9485cad8ede8c5c0ecee288b
95
py
Python
test/UT/CA/mfgCAs/certgen/__init__.py
lubical/libest
43116f6e373d030c088c20b1351f7436e070c898
[ "curl" ]
61
2015-01-20T22:33:51.000Z
2022-03-17T22:10:06.000Z
test/UT/CA/mfgCAs/certgen/__init__.py
lubical/libest
43116f6e373d030c088c20b1351f7436e070c898
[ "curl" ]
67
2015-04-14T13:06:10.000Z
2022-03-15T22:26:18.000Z
test/UT/CA/mfgCAs/certgen/__init__.py
lubical/libest
43116f6e373d030c088c20b1351f7436e070c898
[ "curl" ]
79
2015-01-07T15:36:23.000Z
2022-03-01T08:50:06.000Z
print('Invoking __init__.py for %s' % __name__) from ESTCommon import * from MfgCommon import *
31.666667
47
0.768421
13
95
5
0.846154
0
0
0
0
0
0
0
0
0
0
0
0.136842
95
3
48
31.666667
0.792683
0
0
0
0
0
0.28125
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
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
0
0
1
0
1
0
0
0
0
4
1bfae2debf6df8caa57b88a2df54a6238654b77e
17,326
py
Python
authorizenet/migrations/0005_auto__add_customerpaymentprofile__add_customerprofile__chg_field_cimre.py
ajmirsky/django-authorizenet
0342e79eabffc49a85a40b0937b5e89663c334ca
[ "MIT" ]
18
2015-01-03T22:54:21.000Z
2021-11-15T11:54:32.000Z
authorizenet/migrations/0005_auto__add_customerpaymentprofile__add_customerprofile__chg_field_cimre.py
ajmirsky/django-authorizenet
0342e79eabffc49a85a40b0937b5e89663c334ca
[ "MIT" ]
1
2016-08-31T21:00:40.000Z
2016-08-31T21:00:40.000Z
authorizenet/migrations/0005_auto__add_customerpaymentprofile__add_customerprofile__chg_field_cimre.py
ajmirsky/django-authorizenet
0342e79eabffc49a85a40b0937b5e89663c334ca
[ "MIT" ]
19
2015-01-02T07:34:26.000Z
2021-09-09T03:24:37.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'CustomerPaymentProfile' db.create_table(u'authorizenet_customerpaymentprofile', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('customer', self.gf('django.db.models.fields.related.ForeignKey')(related_name='payment_profiles', to=orm['doctors.Practice'])), ('customer_profile', self.gf('django.db.models.fields.related.ForeignKey')(related_name='payment_profiles', to=orm['authorizenet.CustomerProfile'])), ('payment_profile_id', self.gf('django.db.models.fields.CharField')(max_length=50)), ('first_name', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)), ('last_name', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)), ('company', self.gf('django.db.models.fields.CharField')(max_length=60, blank=True)), ('phone_number', self.gf('django.db.models.fields.CharField')(max_length=25, blank=True)), ('fax_number', self.gf('django.db.models.fields.CharField')(max_length=25, blank=True)), ('address', self.gf('django.db.models.fields.CharField')(max_length=60, blank=True)), ('city', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('state', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)), ('zip', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)), ('country', self.gf('django.db.models.fields.CharField')(max_length=60, blank=True)), ('card_number', self.gf('django.db.models.fields.CharField')(max_length=16, blank=True)), ('expiration_date', self.gf('django.db.models.fields.DateField')(null=True, blank=True)), )) db.send_create_signal(u'authorizenet', ['CustomerPaymentProfile']) # Adding model 'CustomerProfile' db.create_table(u'authorizenet_customerprofile', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('customer', self.gf('django.db.models.fields.related.OneToOneField')(related_name='customer_profile', unique=True, to=orm['doctors.Practice'])), ('profile_id', self.gf('django.db.models.fields.CharField')(max_length=50)), )) db.send_create_signal(u'authorizenet', ['CustomerProfile']) # Changing field 'CIMResponse.result_text' db.alter_column(u'authorizenet_cimresponse', 'result_text', self.gf('django.db.models.fields.TextField')()) def backwards(self, orm): # Deleting model 'CustomerPaymentProfile' db.delete_table(u'authorizenet_customerpaymentprofile') # Deleting model 'CustomerProfile' db.delete_table(u'authorizenet_customerprofile') # Changing field 'CIMResponse.result_text' db.alter_column(u'authorizenet_cimresponse', 'result_text', self.gf('django.db.models.fields.TextField')(max_length=1023)) models = { u'authorizenet.cimresponse': { 'Meta': {'object_name': 'CIMResponse'}, 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'result': ('django.db.models.fields.CharField', [], {'max_length': '8'}), 'result_code': ('django.db.models.fields.CharField', [], {'max_length': '8'}), 'result_text': ('django.db.models.fields.TextField', [], {}), 'transaction_response': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['authorizenet.Response']", 'null': 'True', 'blank': 'True'}) }, u'authorizenet.customerpaymentprofile': { 'Meta': {'object_name': 'CustomerPaymentProfile'}, 'address': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}), 'card_number': ('django.db.models.fields.CharField', [], {'max_length': '16', 'blank': 'True'}), 'city': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}), 'company': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}), 'country': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}), 'customer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'payment_profiles'", 'to': u"orm['doctors.Practice']"}), 'customer_profile': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'payment_profiles'", 'to': u"orm['authorizenet.CustomerProfile']"}), 'expiration_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), 'fax_number': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}), 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), 'payment_profile_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 'phone_number': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}), 'state': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}), 'zip': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}) }, u'authorizenet.customerprofile': { 'Meta': {'object_name': 'CustomerProfile'}, 'customer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'customer_profile'", 'unique': 'True', 'to': u"orm['doctors.Practice']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'profile_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}) }, u'authorizenet.response': { 'MD5_Hash': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'Meta': {'object_name': 'Response'}, 'account_number': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), 'address': ('django.db.models.fields.CharField', [], {'max_length': '60'}), 'amount': ('django.db.models.fields.CharField', [], {'max_length': '16'}), 'auth_code': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'avs_code': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'card_type': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '10', 'blank': 'True'}), 'cavv_response': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}), 'city': ('django.db.models.fields.CharField', [], {'max_length': '40'}), 'company': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 'country': ('django.db.models.fields.CharField', [], {'max_length': '60'}), 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}), 'cust_id': ('django.db.models.fields.CharField', [], {'max_length': '20'}), 'cvv2_resp_code': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}), 'description': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'duty': ('django.db.models.fields.CharField', [], {'max_length': '16', 'blank': 'True'}), 'email': ('django.db.models.fields.CharField', [], {'max_length': '255'}), 'fax': ('django.db.models.fields.CharField', [], {'max_length': '25'}), 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 'freight': ('django.db.models.fields.CharField', [], {'max_length': '16', 'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'invoice_num': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 'method': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'phone': ('django.db.models.fields.CharField', [], {'max_length': '25'}), 'po_num': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}), 'response_code': ('django.db.models.fields.CharField', [], {'max_length': '2'}), 'response_reason_code': ('django.db.models.fields.CharField', [], {'max_length': '15'}), 'response_reason_text': ('django.db.models.fields.TextField', [], {}), 'response_subcode': ('django.db.models.fields.CharField', [], {'max_length': '10'}), 'ship_to_address': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}), 'ship_to_city': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}), 'ship_to_company': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), 'ship_to_country': ('django.db.models.fields.CharField', [], {'max_length': '60', 'blank': 'True'}), 'ship_to_first_name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), 'ship_to_last_name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), 'ship_to_state': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}), 'ship_to_zip': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}), 'state': ('django.db.models.fields.CharField', [], {'max_length': '40'}), 'tax': ('django.db.models.fields.CharField', [], {'max_length': '16', 'blank': 'True'}), 'tax_exempt': ('django.db.models.fields.CharField', [], {'max_length': '16', 'blank': 'True'}), 'test_request': ('django.db.models.fields.CharField', [], {'default': "'FALSE'", 'max_length': '10', 'blank': 'True'}), 'trans_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}), 'type': ('django.db.models.fields.CharField', [], {'max_length': '20', 'db_index': 'True'}), 'zip': ('django.db.models.fields.CharField', [], {'max_length': '20'}) }, u'base.address': { 'Meta': {'object_name': 'Address'}, 'address1': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), 'address2': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), 'city': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'state': ('django_localflavor_us.models.USStateField', [], {'max_length': '2', 'blank': 'True'}), 'zip': ('django.db.models.fields.CharField', [], {'max_length': '10', 'blank': 'True'}) }, u'doctors.employeetype': { 'Meta': {'object_name': 'EmployeeType'}, 'has_profile': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'is_doctor': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'is_schedulable': ('django.db.models.fields.BooleanField', [], {'default': 'False'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '30'}) }, u'doctors.practice': { 'Meta': {'object_name': 'Practice'}, 'accepted_insurance': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['medical.InsurancePlan']", 'symmetrical': 'False', 'blank': 'True'}), 'addresses': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['base.Address']", 'through': u"orm['doctors.PracticeAddress']", 'symmetrical': 'False'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 'phone': ('base.fields.PhoneNumberField', [], {'max_length': '20'}), 'practice_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['doctors.PracticeType']"}), 'statement': ('django.db.models.fields.TextField', [], {'max_length': '5000', 'blank': 'True'}), 'timezone': ('timezone_field.fields.TimeZoneField', [], {}) }, u'doctors.practiceaddress': { 'Meta': {'object_name': 'PracticeAddress'}, 'address': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['base.Address']", 'unique': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'practice': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['doctors.Practice']"}) }, u'doctors.practiceemployeetype': { 'Meta': {'ordering': "['order']", 'object_name': 'PracticeEmployeeType', 'db_table': "'doctors_practicetype_employee_types'"}, 'employeetype': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['doctors.EmployeeType']"}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'order': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'db_index': 'True'}), 'practicetype': ('adminsortable.fields.SortableForeignKey', [], {'to': u"orm['doctors.PracticeType']"}) }, u'doctors.practicetype': { 'Meta': {'ordering': "['order']", 'object_name': 'PracticeType'}, 'employee_types': ('sortedm2m.fields.SortedManyToManyField', [], {'to': u"orm['doctors.EmployeeType']", 'through': u"orm['doctors.PracticeEmployeeType']", 'symmetrical': 'False'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 'order': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'db_index': 'True'}), 'specialties': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['medical.DoctorSpecialty']", 'symmetrical': 'False'}) }, u'medical.appointmenttype': { 'Meta': {'ordering': "['order']", 'object_name': 'AppointmentType'}, 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['medical.BillingCategory']", 'null': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'order': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'db_index': 'True'}), 'specialty': ('adminsortable.fields.SortableForeignKey', [], {'related_name': "'appointment_types'", 'to': u"orm['medical.DoctorSpecialty']"}) }, u'medical.billingcategory': { 'Meta': {'object_name': 'BillingCategory'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) }, u'medical.doctorspecialty': { 'Meta': {'ordering': "['order']", 'object_name': 'DoctorSpecialty'}, 'default_appointment_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['medical.AppointmentType']", 'null': 'True'}), u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'order': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'db_index': 'True'}) }, u'medical.insuranceplan': { 'Meta': {'ordering': "['provider__name', 'name']", 'object_name': 'InsurancePlan'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}), 'provider': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'plans'", 'to': u"orm['medical.InsuranceProvider']"}) }, u'medical.insuranceprovider': { 'Meta': {'ordering': "['name']", 'object_name': 'InsuranceProvider'}, u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) } } complete_apps = ['authorizenet']
78.754545
192
0.58317
1,825
17,326
5.40274
0.099178
0.107911
0.187424
0.267748
0.773529
0.724341
0.702536
0.684888
0.624138
0.561765
0
0.013416
0.182616
17,326
220
193
78.754545
0.682813
0.014141
0
0.154229
0
0
0.571512
0.344208
0
0
0
0
0
1
0.00995
false
0
0.019901
0
0.044776
0
0
0
0
null
0
1
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
4015e2c8700effdc4066ceb387572ea5732e058b
88
py
Python
models/__init__.py
iSarmad/MeanTeacher-SNTG-HybridNet
7ca9f8fc89a7be0524b2a0fb648678b9556f8843
[ "MIT" ]
24
2019-01-22T06:20:41.000Z
2022-03-26T07:51:40.000Z
models/__init__.py
iSarmad/MeanTeacher-SNTG-HybridNet
7ca9f8fc89a7be0524b2a0fb648678b9556f8843
[ "MIT" ]
1
2021-04-12T06:27:43.000Z
2021-04-12T06:27:43.000Z
models/__init__.py
iSarmad/MeanTeacher-SNTG-HybridNet
7ca9f8fc89a7be0524b2a0fb648678b9556f8843
[ "MIT" ]
12
2019-01-03T07:18:06.000Z
2021-12-09T18:24:27.000Z
from .ConvLarge import * from .HybridNet import * __all__ = ('ConvLarge','HybridNet')
14.666667
35
0.715909
9
88
6.555556
0.555556
0
0
0
0
0
0
0
0
0
0
0
0.147727
88
5
36
17.6
0.786667
0
0
0
0
0
0.206897
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
4037c2ff0a2686aaf3e5d296e1b546fade439ce3
1,043
py
Python
tests/conftest.py
Shanmugapriya03/mimesis
649253fef05c6b5c362805000c1d7a99898aa0fe
[ "MIT" ]
3
2020-08-20T10:27:13.000Z
2021-11-02T20:28:16.000Z
tests/conftest.py
Shanmugapriya03/mimesis
649253fef05c6b5c362805000c1d7a99898aa0fe
[ "MIT" ]
1
2020-06-05T10:34:20.000Z
2020-08-08T08:45:18.000Z
tests/conftest.py
Shanmugapriya03/mimesis
649253fef05c6b5c362805000c1d7a99898aa0fe
[ "MIT" ]
null
null
null
import pytest import mimesis from mimesis.locales import LIST_OF_LOCALES locales = LIST_OF_LOCALES platform = ['win32', 'linux'] @pytest.fixture def seed(): return 'mimesis' @pytest.fixture(params=locales) def generic(request): return mimesis.Generic(request.param) @pytest.fixture(params=locales) def address(request): return mimesis.Address(request.param) @pytest.fixture(params=locales) def business(request): return mimesis.Business(request.param) @pytest.fixture(params=locales) def dt(request): return mimesis.Datetime(request.param) @pytest.fixture(params=locales) def food(request): return mimesis.Food(request.param) @pytest.fixture(params=locales) def person(request): return mimesis.Person(request.param) @pytest.fixture(params=locales) def science(request): return mimesis.Science(request.param) @pytest.fixture(params=locales) def text(request): return mimesis.Text(request.param) @pytest.fixture(params=platform) def path(request): return mimesis.Path(request.param)
17.982759
43
0.758389
132
1,043
5.962121
0.204545
0.165184
0.217281
0.264295
0.440915
0.364676
0.364676
0
0
0
0
0.002183
0.121764
1,043
57
44
18.298246
0.856987
0
0
0.228571
0
0
0.016299
0
0
0
0
0
0
1
0.285714
false
0
0.085714
0.285714
0.657143
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
1
0
0
0
4
4038c4cdbd24bbb88d494a349aef79543ba54974
77
py
Python
launch.py
Damugeisme/JDSpider
ab77c045561f854929ba0f95a5e4335fdbec0118
[ "MIT" ]
null
null
null
launch.py
Damugeisme/JDSpider
ab77c045561f854929ba0f95a5e4335fdbec0118
[ "MIT" ]
null
null
null
launch.py
Damugeisme/JDSpider
ab77c045561f854929ba0f95a5e4335fdbec0118
[ "MIT" ]
1
2019-08-24T10:17:53.000Z
2019-08-24T10:17:53.000Z
from scrapy import cmdline cmdline.execute("scrapy crawl JDSpider".split())
19.25
48
0.792208
10
77
6.1
0.8
0
0
0
0
0
0
0
0
0
0
0
0.103896
77
3
49
25.666667
0.884058
0
0
0
0
0
0.272727
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
404f14e6e9604483ebfb89e02b38d641858df27b
27
py
Python
semantic-python/test/fixtures/1-03-empty-tuple.py
Temurson/semantic
2e9cd2c006cec9a0328791e47d8c6d60af6d5a1b
[ "MIT" ]
8,844
2019-05-31T15:47:12.000Z
2022-03-31T18:33:51.000Z
semantic-python/test/fixtures/1-03-empty-tuple.py
Qanora/semantic
b0eda9a61bbc690a342fb177cfc12eec8c1c001c
[ "MIT" ]
401
2019-05-31T18:30:26.000Z
2022-03-31T16:32:29.000Z
semantic-python/test/fixtures/1-03-empty-tuple.py
Qanora/semantic
b0eda9a61bbc690a342fb177cfc12eec8c1c001c
[ "MIT" ]
504
2019-05-31T17:55:03.000Z
2022-03-30T04:15:04.000Z
# CHECK-TREE: #record{} ()
9
23
0.555556
3
27
5
1
0
0
0
0
0
0
0
0
0
0
0
0.148148
27
2
24
13.5
0.652174
0.740741
0
0
0
0
0
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
405c0f82c63761a28fb20d6c304346eb0a15f4ab
319
py
Python
macro/autoping.py
muhiqsimui/PyTraining
41c99adf0d5bd330b3c35242c9f447e8992d9074
[ "MIT" ]
6
2021-07-15T01:33:31.000Z
2021-11-17T11:05:50.000Z
macro/autoping.py
cxml2/PyTraining
41c99adf0d5bd330b3c35242c9f447e8992d9074
[ "MIT" ]
null
null
null
macro/autoping.py
cxml2/PyTraining
41c99adf0d5bd330b3c35242c9f447e8992d9074
[ "MIT" ]
1
2021-08-23T11:22:53.000Z
2021-08-23T11:22:53.000Z
import pyautogui as piu import time print("ready") piu.alert('Mulai program') time.sleep(3) piu.hotkey('win','r') time.sleep(0.5) piu.typewrite("cmd") time.sleep(0.5) piu.hotkey('enter') time.sleep(0.5) piu.typewrite("ping 8.8.8.8 -t") time.sleep(0.5) piu.hotkey('enter') time.sleep(0.5) piu.alert('berhasil ping')
15.190476
32
0.695925
60
319
3.7
0.4
0.243243
0.225225
0.247748
0.495496
0.495496
0.351351
0.351351
0.351351
0.351351
0
0.051546
0.087774
319
20
33
15.95
0.71134
0
0
0.4375
0
0
0.197492
0
0
0
0
0
0
1
0
true
0
0.125
0
0.125
0.0625
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
406b6e69ceb902539aeea1ad0852b58654eed3c3
225
py
Python
presentation/formatter/ip_formatter.py
xaman/ScrollZ
1377dc268748bedd4bdb0c93d9e2d9e72e08dc65
[ "Apache-2.0" ]
1
2017-12-29T21:05:16.000Z
2017-12-29T21:05:16.000Z
presentation/formatter/ip_formatter.py
xaman/ScrollZ
1377dc268748bedd4bdb0c93d9e2d9e72e08dc65
[ "Apache-2.0" ]
null
null
null
presentation/formatter/ip_formatter.py
xaman/ScrollZ
1377dc268748bedd4bdb0c93d9e2d9e72e08dc65
[ "Apache-2.0" ]
null
null
null
from presentation.formatter.formatter import Formatter class IpFormatter(Formatter): _FORMAT = "{interface} addr {ip}" def format(self, value): return self._FORMAT.format(interface=value.name, ip=value.ip)
25
69
0.728889
27
225
6
0.555556
0.185185
0
0
0
0
0
0
0
0
0
0
0.16
225
8
70
28.125
0.857143
0
0
0
0
0
0.093333
0
0
0
0
0
0
1
0.2
false
0
0.2
0.2
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
4
409fbac9cf13b960bfb331d24bc96315d208fb94
67
py
Python
wsgi.py
DerwenAI/RCServer
4e6aae31ac7356d0a70a15bca1453de6cf603724
[ "CC0-1.0" ]
3
2020-02-16T22:55:33.000Z
2021-07-29T00:20:34.000Z
wsgi.py
DerwenAI/RCServer
4e6aae31ac7356d0a70a15bca1453de6cf603724
[ "CC0-1.0" ]
6
2020-02-10T19:40:19.000Z
2020-08-05T16:07:50.000Z
wsgi.py
Coleridge-Initiative/RCServer
4e6aae31ac7356d0a70a15bca1453de6cf603724
[ "CC0-1.0" ]
null
null
null
from app import APP if __name__ == "__main__": APP.run()
11.166667
26
0.597015
9
67
3.555556
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.283582
67
5
27
13.4
0.666667
0
0
0
0
0
0.119403
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
40a6139e9d982a05b71a7bc151ba548551f84ed9
180
py
Python
utils/DEMO/DEMO/__init__.py
slyslyme/CTF_AWD_Platform
6e9eec0a23a316aaf1927d4ec5be923ac26ff21e
[ "MIT" ]
85
2019-04-21T01:38:18.000Z
2022-03-22T08:06:21.000Z
utils/DEMO/__init__.py
xuchaoa/CTF_AWD_Platform
b2201f18677939442002e16e64280acd44f72bfe
[ "MIT" ]
12
2019-05-10T14:09:12.000Z
2022-03-11T23:45:35.000Z
utils/DEMO/__init__.py
slyslyme/CTF_AWD_Platform
6e9eec0a23a316aaf1927d4ec5be923ac26ff21e
[ "MIT" ]
21
2019-04-14T16:12:15.000Z
2022-03-22T08:06:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 19-5-18 δΈ‹εˆ8:58 # @Author : Archerx # @Site : https://blog.ixuchao.cn # @File : __init__.py.py # @Software: PyCharm
25.714286
36
0.583333
26
180
3.884615
0.961538
0
0
0
0
0
0
0
0
0
0
0.0625
0.2
180
7
37
25.714286
0.638889
0.927778
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
40ba92567c2091b16067fefbfb5dc84529cf3cf0
52
py
Python
packages/vaex-contrib/vaex/contrib/_version.py
And0k/vaex
298d0d5c6ace0ea4c335339fef10ba7ee54cc077
[ "MIT" ]
337
2016-02-11T07:36:35.000Z
2018-12-10T07:17:35.000Z
packages/vaex-contrib/vaex/contrib/_version.py
And0k/vaex
298d0d5c6ace0ea4c335339fef10ba7ee54cc077
[ "MIT" ]
127
2016-07-06T15:43:14.000Z
2018-12-11T18:46:27.000Z
packages/vaex-contrib/vaex/contrib/_version.py
And0k/vaex
298d0d5c6ace0ea4c335339fef10ba7ee54cc077
[ "MIT" ]
29
2016-10-05T14:15:28.000Z
2018-11-29T10:17:00.000Z
__version__ = '0.1.2' __version_tuple__ = (0, 1, 2)
17.333333
29
0.653846
9
52
2.777778
0.555556
0.16
0.24
0
0
0
0
0
0
0
0
0.136364
0.153846
52
2
30
26
0.431818
0
0
0
0
0
0.096154
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
1
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
40cf623c7d7341454847bedd60f075a26af53171
26
py
Python
my_classes/.history/ModulesPackages_PackageNamespaces/ImportingModules_20210725180701.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/ModulesPackages_PackageNamespaces/ImportingModules_20210725180701.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
my_classes/.history/ModulesPackages_PackageNamespaces/ImportingModules_20210725180701.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
"""Importing modules """
6.5
20
0.615385
2
26
8
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
26
4
21
6.5
0.727273
0.653846
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
40d3d8db11e11b83931a399661c8e87bc9d13827
50
py
Python
westjr/__init__.py
unyacat/westjr
a5e89fa6d8fed567233fbd87a1fd106418cbd760
[ "Unlicense" ]
2
2021-04-01T13:42:48.000Z
2021-12-16T02:18:22.000Z
westjr/__init__.py
unyacat/westjr
a5e89fa6d8fed567233fbd87a1fd106418cbd760
[ "Unlicense" ]
1
2021-04-07T06:19:23.000Z
2021-04-07T06:19:23.000Z
westjr/__init__.py
unyacat/westjr
a5e89fa6d8fed567233fbd87a1fd106418cbd760
[ "Unlicense" ]
1
2021-12-16T01:50:35.000Z
2021-12-16T01:50:35.000Z
# -*- coding: utf-8 -*- from .api import WestJR
10
23
0.58
7
50
4.142857
1
0
0
0
0
0
0
0
0
0
0
0.025641
0.22
50
4
24
12.5
0.717949
0.42
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
40d78561ec0de1ee5f4a651045fc1a5b1ad51c78
161
py
Python
Pipelines/GenomeAssembly/ContigAssembly.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
10
2015-04-28T14:15:04.000Z
2021-03-15T00:07:38.000Z
Pipelines/GenomeAssembly/ContigAssembly.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
null
null
null
Pipelines/GenomeAssembly/ContigAssembly.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
6
2017-03-16T22:38:41.000Z
2021-08-11T00:22:52.000Z
#!/usr/bin/env python from Pipelines.Abstract import Pipeline class ContigAssemblyPipeline(Pipeline): def __init__(self): Pipeline.__init__(self)
17.888889
39
0.745342
18
161
6.222222
0.777778
0.142857
0
0
0
0
0
0
0
0
0
0
0.161491
161
8
40
20.125
0.82963
0.124224
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
40dd45d8910883175bf61961401ccd958a71e761
1,017
py
Python
qmeq/approach/__init__.py
gedaskir/test-deploy-qmeq
47f1176df5341a0f251657c299a4a98aaac40833
[ "BSD-2-Clause" ]
16
2016-12-14T09:21:16.000Z
2022-02-23T08:01:45.000Z
qmeq/approach/__init__.py
gedaskir/test-deploy-qmeq
47f1176df5341a0f251657c299a4a98aaac40833
[ "BSD-2-Clause" ]
3
2018-02-03T19:13:01.000Z
2021-06-09T14:10:28.000Z
qmeq/approach/__init__.py
gedaskir/test-deploy-qmeq
47f1176df5341a0f251657c299a4a98aaac40833
[ "BSD-2-Clause" ]
7
2017-07-09T04:46:42.000Z
2021-04-26T16:27:55.000Z
""" This QmeQ package contains modules, where different approximate master equations are implemented. Modules starting with `c_` are implemented using Cython. """ # For backwards compatibility with 1.0 import sys from .base import pauli from .base import lindblad from .base import neumann1 from .base import neumann2 from .base import RTD sys.modules['qmeq.approach.pauli'] = pauli sys.modules['qmeq.approach.lindblad'] = lindblad sys.modules['qmeq.approach.neumann1'] = neumann1 sys.modules['qmeq.approach.neumann2'] = neumann2 sys.modules['qmeq.approach.RTD'] = RTD try: from .base import c_pauli from .base import c_lindblad from .base import c_neumann1 from .base import c_neumann2 from .base import RTD sys.modules['qmeq.approach.c_pauli'] = pauli sys.modules['qmeq.approach.c_lindblad'] = lindblad sys.modules['qmeq.approach.c_neumann1'] = neumann1 sys.modules['qmeq.approach.c_neumann2'] = neumann2 sys.modules['qmeq.approach.RTD'] = RTD except ImportError: pass
31.78125
80
0.749263
140
1,017
5.378571
0.257143
0.106242
0.185923
0.292165
0.533865
0.528552
0.2417
0.2417
0.124834
0
0
0.016148
0.147493
1,017
31
81
32.806452
0.852364
0.188791
0
0.166667
0
0
0.259486
0.194614
0
0
0
0
0
1
0
true
0.041667
0.5
0
0.5
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
4