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
0262ba7ff8c9abf9e9f60ce69eb51fdcf4382865
4,675
py
Python
tests/DidlLiteTest.py
bazwilliams/openhomedevice
8733a7ca016296c19416c4029937b46fd5067521
[ "MIT" ]
9
2017-04-22T03:28:58.000Z
2022-02-19T21:13:21.000Z
tests/DidlLiteTest.py
bazwilliams/openhomedevice
8733a7ca016296c19416c4029937b46fd5067521
[ "MIT" ]
13
2017-04-06T15:24:15.000Z
2021-04-22T23:41:30.000Z
tests/DidlLiteTest.py
bazwilliams/openhomedevice
8733a7ca016296c19416c4029937b46fd5067521
[ "MIT" ]
4
2017-04-25T12:53:02.000Z
2021-04-03T22:06:36.000Z
import unittest from openhomedevice.didl_lite import generate_string, parse, parse_duration, parse_int class DidlLiteTests(unittest.TestCase): def test_int_parsing(self): self.assertEqual(parse_duration("42"), 42) self.assertEqual(parse_duration("42.5"), 42) self.assertIsNone(parse_int("forty")) self.assertIsNone(parse_int(None)) def test_duration_parsing(self): self.assertEqual(parse_duration("0:07:40.000"), 460) self.assertEqual(parse_duration("1:00.000"), 60) self.assertEqual(parse_duration("42.000"), 42) self.assertEqual(parse_duration("2:0.5"), 120) self.assertIsNone(parse_duration("forty")) self.assertIsNone(parse_duration(None)) def test_parse_empty_didlite(self): result = parse(None) self.assertEqual(result, {}) def test_parse_corrupt_didlite(self): result = parse( '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="" parentID="" restricted="True"><dc:title></dc:title><res protocolInfo="*:*:*:*"></res><upnp:albumArtURI></upnp:albumArtURI><upnp:class>object.item.audioItem</upnp:class></itemX></DIDL-Lite>' ) self.assertEqual(result, {}) def test_parse_didlite_missing_item(self): result = parse( '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"></DIDL-Lite>' ) self.assertEqual(result, {}) def test_empty_track_details(self): track_details = {} result = generate_string(track_details) self.assertEqual( result, '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="" parentID="" restricted="True"><dc:title></dc:title><res protocolInfo="*:*:*:*"></res><upnp:albumArtURI></upnp:albumArtURI><upnp:class>object.item.audioItem</upnp:class></item></DIDL-Lite>', ) def test_track_details_title_is_none(self): track_details = {} track_details["title"] = None result = generate_string(track_details) self.assertEqual( result, '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="" parentID="" restricted="True"><dc:title></dc:title><res protocolInfo="*:*:*:*"></res><upnp:albumArtURI></upnp:albumArtURI><upnp:class>object.item.audioItem</upnp:class></item></DIDL-Lite>', ) def test_track_details_uri_is_none(self): track_details = {} track_details["uri"] = None result = generate_string(track_details) self.assertEqual( result, '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="" parentID="" restricted="True"><dc:title></dc:title><res protocolInfo="*:*:*:*"></res><upnp:albumArtURI></upnp:albumArtURI><upnp:class>object.item.audioItem</upnp:class></item></DIDL-Lite>', ) def test_track_details_albumArtwork_is_none(self): track_details = {} track_details["albumArtwork"] = None result = generate_string(track_details) self.assertEqual( result, '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="" parentID="" restricted="True"><dc:title></dc:title><res protocolInfo="*:*:*:*"></res><upnp:albumArtURI></upnp:albumArtURI><upnp:class>object.item.audioItem</upnp:class></item></DIDL-Lite>', ) def test_track_details(self): track_details = {} track_details["albumArtwork"] = "ALBUMARTWORK" track_details["title"] = "TITLE" track_details["uri"] = "URI" result = generate_string(track_details) self.assertEqual( result, '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="" parentID="" restricted="True"><dc:title>TITLE</dc:title><res protocolInfo="*:*:*:*">URI</res><upnp:albumArtURI>ALBUMARTWORK</upnp:albumArtURI><upnp:class>object.item.audioItem</upnp:class></item></DIDL-Lite>', )
57.012195
395
0.658182
615
4,675
4.891057
0.107317
0.058511
0.06516
0.079122
0.825133
0.775598
0.719747
0.661902
0.661902
0.661902
0
0.021023
0.155508
4,675
81
396
57.716049
0.740881
0
0
0.42029
1
0.101449
0.526203
0.394011
0
0
0
0
0.26087
1
0.144928
false
0
0.028986
0
0.188406
0
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
02864d335a61bb724fe6b324e38cac8d91952143
433
py
Python
tests/utils/test_sharedoc.py
Hertz-and-Alpha/zipline-reloaded
eea4a2ccfc03d7fa4946defcb3cdf23469e4ae39
[ "Apache-2.0" ]
254
2021-03-29T16:18:39.000Z
2022-03-31T22:06:01.000Z
tests/utils/test_sharedoc.py
Hertz-and-Alpha/zipline-reloaded
eea4a2ccfc03d7fa4946defcb3cdf23469e4ae39
[ "Apache-2.0" ]
52
2021-04-06T01:46:24.000Z
2022-03-29T20:54:19.000Z
tests/utils/test_sharedoc.py
Hertz-and-Alpha/zipline-reloaded
eea4a2ccfc03d7fa4946defcb3cdf23469e4ae39
[ "Apache-2.0" ]
53
2021-04-05T14:43:29.000Z
2022-03-31T22:06:04.000Z
from zipline.utils.sharedoc import copydoc class TestSharedoc: def test_copydoc(self): def original_docstring_function(): """ My docstring brings the boys to the yard. """ pass @copydoc(original_docstring_function) def copied_docstring_function(): pass assert original_docstring_function.__doc__ == copied_docstring_function.__doc__
25.470588
87
0.642032
43
433
6.023256
0.55814
0.328185
0.289575
0
0
0
0
0
0
0
0
0
0.297921
433
16
88
27.0625
0.851974
0.094688
0
0.222222
0
0
0
0
0
0
0
0
0.111111
1
0.333333
false
0.222222
0.111111
0
0.555556
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
65f3161675e4f554d5997767affea1e228bae7d9
1,748
py
Python
pytorch_lightning/accelerators/__init__.py
JonathanSum/pytorch-lightning
fa737a5eb9c0313c662149f11f8ae66000011e8e
[ "Apache-2.0" ]
1
2020-10-26T09:02:08.000Z
2020-10-26T09:02:08.000Z
pytorch_lightning/accelerators/__init__.py
JonathanSum/pytorch-lightning
fa737a5eb9c0313c662149f11f8ae66000011e8e
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/__init__.py
JonathanSum/pytorch-lightning
fa737a5eb9c0313c662149f11f8ae66000011e8e
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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. from pytorch_lightning.accelerators.cpu_accelerator import CPUAccelerator from pytorch_lightning.accelerators.ddp2_accelerator import DDP2Accelerator from pytorch_lightning.accelerators.ddp_accelerator import DDPAccelerator from pytorch_lightning.accelerators.ddp_spawn_accelerator import DDPSpawnAccelerator from pytorch_lightning.accelerators.ddp_cpu_spawn_accelerator import DDPCPUSpawnAccelerator from pytorch_lightning.accelerators.dp_accelerator import DataParallelAccelerator from pytorch_lightning.accelerators.gpu_accelerator import GPUAccelerator from pytorch_lightning.accelerators.tpu_accelerator import TPUAccelerator from pytorch_lightning.accelerators.horovod_accelerator import HorovodAccelerator from pytorch_lightning.accelerators.ddp_slurm_accelerator import DDPSLURMAccelerator from pytorch_lightning.accelerators.ddp_torchelastic_accelerator import DDPTorchElasticAccelerator from pytorch_lightning.accelerators.ddp_cpu_torchelastic_accelerator import DDPCPUTorchElasticAccelerator from pytorch_lightning.accelerators.ddp_cpu_slurm_accelerator import DDPCPUSLURMAccelerator from pytorch_lightning.accelerators.accelerator import Accelerator
62.428571
105
0.872998
211
1,748
7.061611
0.42654
0.161074
0.187919
0.300671
0.17047
0.07651
0
0
0
0
0
0.003769
0.089245
1,748
27
106
64.740741
0.932161
0.319794
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5a35fab5645ab143d3b54e1f8bc2d23d6af033c3
25
py
Python
pbs_deploy/src/task/system/pwd.py
matyro/pbs_deployment
50e81303e4ab83ecc667d18e2d1788184393cb31
[ "MIT" ]
null
null
null
pbs_deploy/src/task/system/pwd.py
matyro/pbs_deployment
50e81303e4ab83ecc667d18e2d1788184393cb31
[ "MIT" ]
null
null
null
pbs_deploy/src/task/system/pwd.py
matyro/pbs_deployment
50e81303e4ab83ecc667d18e2d1788184393cb31
[ "MIT" ]
null
null
null
import os #os.getcwd();
6.25
13
0.64
4
25
4
0.75
0
0
0
0
0
0
0
0
0
0
0
0.16
25
3
14
8.333333
0.761905
0.48
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
5a49102cd3b50e73974cbd7067b5f72d55661198
1,794
py
Python
websites/migrations/0069_auto_20210121_1412.py
tsukasa-renato/personal-project-django-system
e36c8218640175346f712beb5a1cba602d877fa9
[ "MIT" ]
null
null
null
websites/migrations/0069_auto_20210121_1412.py
tsukasa-renato/personal-project-django-system
e36c8218640175346f712beb5a1cba602d877fa9
[ "MIT" ]
5
2021-04-08T19:21:07.000Z
2021-09-22T19:14:37.000Z
websites/migrations/0069_auto_20210121_1412.py
tsukasarenato/simple-web-application
ae845973e2d74606777ef90353a2db7875e4e077
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-01-21 17:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('websites', '0068_auto_20201230_1538'), ] operations = [ migrations.AlterField( model_name='colors', name='active', field=models.CharField(blank=True, max_length=6, null=True, verbose_name='Active category color (hexadecimal): '), ), migrations.AlterField( model_name='colors', name='category', field=models.CharField(blank=True, max_length=6, null=True, verbose_name='Categories bar color (hexadecimal):'), ), migrations.AlterField( model_name='colors', name='footer', field=models.CharField(blank=True, max_length=6, null=True, verbose_name='Footer color (hexadecimal): '), ), migrations.AlterField( model_name='colors', name='navbar', field=models.CharField(blank=True, max_length=6, null=True, verbose_name='Navbar color (hexadecimal): '), ), migrations.AlterField( model_name='colors', name='text', field=models.CharField(blank=True, max_length=6, null=True, verbose_name='Text color (hexadecimal): '), ), migrations.AlterField( model_name='colors', name='title', field=models.CharField(blank=True, max_length=6, null=True, verbose_name='Title color (hexadecimal): '), ), migrations.AlterField( model_name='colors', name='title_hover', field=models.CharField(blank=True, max_length=6, null=True, verbose_name='Mouse hover color (hexadecimal): '), ), ]
36.612245
126
0.595875
186
1,794
5.612903
0.268817
0.1341
0.167625
0.194444
0.751916
0.751916
0.714559
0.714559
0.503831
0.388889
0
0.028527
0.277035
1,794
48
127
37.375
0.776407
0.023969
0
0.5
1
0
0.190395
0.01315
0
0
0
0
0
1
0
false
0
0.02381
0
0.095238
0
0
0
0
null
0
0
1
0
1
1
1
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
5
5a6b522e9683a232a547df07840cafb102d99f4c
120
py
Python
src/seminars/admin.py
DevHub-Azerbaycan/python_web_site
fd3b6f8d22998d47b0b1e2c74be742a5abd9f5bf
[ "MIT" ]
25
2020-04-06T13:34:21.000Z
2020-04-18T20:28:32.000Z
src/seminars/admin.py
devhub-az/python_web_site
fd3b6f8d22998d47b0b1e2c74be742a5abd9f5bf
[ "MIT" ]
35
2020-03-23T11:06:45.000Z
2020-12-16T06:18:57.000Z
src/seminars/admin.py
devhub-az/python_web_site
fd3b6f8d22998d47b0b1e2c74be742a5abd9f5bf
[ "MIT" ]
3
2020-04-08T11:44:07.000Z
2020-04-09T12:23:50.000Z
from django.contrib import admin # Register your models here. from .models import Seminar admin.site.register(Seminar)
20
32
0.808333
17
120
5.705882
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.125
120
6
33
20
0.92381
0.216667
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5a6dd3ffc0ab71710f4b8d46bce8fc44774e0eb3
57
py
Python
utils/__init__.py
dataspine/cli-client
bb0d34f6650e183a4c13a853096b15b81a0aa51a
[ "Apache-2.0" ]
null
null
null
utils/__init__.py
dataspine/cli-client
bb0d34f6650e183a4c13a853096b15b81a0aa51a
[ "Apache-2.0" ]
7
2020-12-17T22:46:14.000Z
2021-04-30T21:34:37.000Z
utils/__init__.py
dataspine/cli-client
bb0d34f6650e183a4c13a853096b15b81a0aa51a
[ "Apache-2.0" ]
null
null
null
from .authenticators import * from .constants import *
11.4
29
0.754386
6
57
7.166667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.175439
57
4
30
14.25
0.914894
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ce494ed9d26525257113fa3fafea3ad6332cfb2e
937
py
Python
openapi-client/python/openapi_client/__init__.py
michilu/kintone-api
efa6c53d68140c449f4689baac824e2471155798
[ "Apache-2.0" ]
null
null
null
openapi-client/python/openapi_client/__init__.py
michilu/kintone-api
efa6c53d68140c449f4689baac824e2471155798
[ "Apache-2.0" ]
null
null
null
openapi-client/python/openapi_client/__init__.py
michilu/kintone-api
efa6c53d68140c449f4689baac824e2471155798
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # flake8: noqa """ Kintone REST API Kintone REST API # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import __version__ = "1.0.0" # import apis into sdk package from openapi_client.api.default_api import DefaultApi # import ApiClient from openapi_client.api_client import ApiClient from openapi_client.configuration import Configuration from openapi_client.exceptions import OpenApiException from openapi_client.exceptions import ApiTypeError from openapi_client.exceptions import ApiValueError from openapi_client.exceptions import ApiKeyError from openapi_client.exceptions import ApiException # import models into sdk package from openapi_client.models.inline_response200 import InlineResponse200 from openapi_client.models.right import Right from openapi_client.models.right_entity import RightEntity
26.771429
70
0.823906
123
937
6.081301
0.382114
0.161765
0.25
0.180481
0.463904
0.082888
0
0
0
0
0
0.020808
0.128068
937
34
71
27.558824
0.894737
0.258271
0
0
1
0
0.007508
0
0
0
0
0
0
1
0
false
0
0.923077
0
0.923077
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
1
0
1
0
0
5
ce6ae96c144573a4c9b18ed629efdbb48479164c
555
py
Python
src/exif/ifd_tag/__init__.py
TNThieding/exif
2e59701aec7416fbb3b2db76e7d090f166f1f132
[ "MIT" ]
51
2018-12-28T19:48:40.000Z
2021-12-10T00:35:41.000Z
src/exif/ifd_tag/__init__.py
TNThieding/exif
2e59701aec7416fbb3b2db76e7d090f166f1f132
[ "MIT" ]
33
2019-02-08T10:15:25.000Z
2022-02-11T18:37:45.000Z
src/exif/ifd_tag/__init__.py
TNThieding/exif
2e59701aec7416fbb3b2db76e7d090f166f1f132
[ "MIT" ]
11
2019-10-24T14:03:02.000Z
2020-12-10T04:07:20.000Z
"""IFD tag structure parser classes.""" from exif.ifd_tag._ascii import Ascii from exif.ifd_tag._base import Base as BaseIfdTag from exif.ifd_tag._byte import Byte from exif.ifd_tag._exifversion import ExifVersion from exif.ifd_tag._long import Long from exif.ifd_tag._rational import Rational from exif.ifd_tag._short import Short from exif.ifd_tag._slong import Slong from exif.ifd_tag._sshort import Sshort from exif.ifd_tag._srational import Srational from exif.ifd_tag._user_comment import UserComment from exif.ifd_tag._windows_xp import WindowsXp
37
50
0.843243
93
555
4.752688
0.27957
0.176471
0.298643
0.380091
0
0
0
0
0
0
0
0
0.100901
555
14
51
39.642857
0.885772
0.059459
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ce7794d0bdfd23bd8121732981ce5bda8b2a0aa9
2,891
py
Python
python-local-projects/LeadsImporter_GUI/runsoftware_16x16.py
raychorn/svn_molten-magma
8aa2ff2340707eecae6514943e86f5afba9cd54a
[ "CC0-1.0" ]
null
null
null
python-local-projects/LeadsImporter_GUI/runsoftware_16x16.py
raychorn/svn_molten-magma
8aa2ff2340707eecae6514943e86f5afba9cd54a
[ "CC0-1.0" ]
null
null
null
python-local-projects/LeadsImporter_GUI/runsoftware_16x16.py
raychorn/svn_molten-magma
8aa2ff2340707eecae6514943e86f5afba9cd54a
[ "CC0-1.0" ]
null
null
null
#---------------------------------------------------------------------- # This file was generated by C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\tools\img2py.py # from wx.lib.embeddedimage import PyEmbeddedImage runsoftware_16x16 = PyEmbeddedImage( "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAABi9J" "REFUWIWll9uOJEcRhr+IyKyunundsXc5XHFpbJkH8LW5BCT8VBaPYF4A+12Ae0ACJBbJErDy" "7k4fqiozIriont7xCc/ilPqiurIyv4j845Aiajxk/PEPv8+fvvsuHoGKYGaoyIO+/V+jPHRi" "751lXujumCrDUEn7MrwAqnp5znvvMpOIYJ4mlmWhlEKp9Q0A2grQelutV+GrvlMR5PzLzC8B" "RAS9d/aHA4fbPeM4Ml5tHw7gEUTGunAm7g4iqChqerHSI5CvWH/3bgVJmjvWO9bawwEigzgv" "kpmEByKO2msdJJAR37HOCtnd6W8C8KVFzu5McnW3g4h86fy/aWSugO6O905X/f8AMpPWO5GJ" "miGqyAMjIjOJ3ukiqMjDAZor3QVJLpvd10I5P3+XJ1SFYoaqXb57GEA3uitFBeG1FtwdOIeg" "GfYdnjAzaq2r58weDvDiWPjPfsDEUAlUwRRqgVqVTSilCEVB1ddwvMTCXQQEEWt4phiq5eEA" "/95XNi9HyKQo1JIMNRhLMG7gKpRNCFWDYokpqCQQq/rOAO6OZyIIyBsAdBemZniACgyeDBF0" "D3omkUoP2BSoAaaCaqIIKnEGEJARrWB1g71JJiy2brwEdCBTSJQMISLxUJqDb5Sh3HmAszfO" "mkGgFio7alFKeYNa8JMfb7naObcnIRIGWy2MCJoL2dZ5pgLIBSBILEEkASFlQIuAQpLfDvDZ" "Z5/mkydPAHh88wOe/uht5nCe34I7XG1Wl786OHMT3KGp0vq6cRYwgXTB47VHznIgztL4VoAP" "PviAp0+fnievNeAwOwJEKOMQTEsyzU7rQqbiAa2DyDktG0iePWErUOS6uQgI35AHPv30d/nO" "O++w2+0u/2Uk4c4gwlvXigiYJqrJOCRzS4IkEpZ+rxAlcLYcVrd3h54rjCnIVxuSZ8/+kdfX" "1+v358rXmrMsDRXFaqHWQi3GaUn+9cJ5dYDZKy0KGWum3JQ1R4iusPUM3FzpseaLoveO4Lef" "fJLvvfcexYze++uYdec4NfaHBRFjMwzsdiM3uy3bwfjhDVwNye0E+yk4LsrSzw5IsLIeQw9H" "JWheaGGEgt8H+PmHH3J1dY2K0nunu6+lNZPeneNpBtbGxAyux8q4qVxvQIHFg9OyxvqqibPI" "ctWCyZqYmictIO7C9A6g1oqqEBn07rTeGOrAdtyQCNPxyNIa3jvLnJxOBmwQEVoTpjk5Tsa0" "CK3rKsLkIsxihonSU/BYtSD3AVSVJInIs+rXwjGOI+GN7QYkFyIWJDptKZgmokrvSrhAdkqc" "yIASiiKQSiBEKilr6HaHao5ZUH7z8cf5/s/eX8/93HKpGuMwMJSCiGCWbDfBoCeUl6huSQaW" "BRAhwrgeCjVPLO2fhL9EZAM60nNDZ0PmhoiBPgt9gce7I0+3R8qvP/oIVcHDiQxEhGKFYaiU" "C4AwDAKWFFnIMKZs9N7u/MdGk81wJOvnEJ8jtiV0ZI4NS4x4bmk50jv0Ba7ixGM9UW5ubliW" "mdYaxcqlXTYriN01FhVkRyfpsQUqqTtUK+mxxr8n4kbZPKGUAA0KHWsvGfu/SSqexqPqNBzj" "hsN8Q9kf9sg9HZgZVgw1Re9aLSmgW0KMHo8QUUwNIQlveATNHU3FhrdQUYQjGnsKeyRvzxk1" "yTITdG6zcJifvk5Ef/nzn9K0AMlmO3J1dUWtlWLGPM/s9wd6b+Rdx5PgvTNNJ3qPFcpgKJ2i" "DaEjuYCfwOe1kW2d4/HINJ1wewsvb99PxYK7sywzYspms8HUiLtLxrnfM7O1FeuOe2dZGuFB" "rQUwUra47FZCgRRIW7voxRdexC2vlj1DLQx6rx8Yx3HtWNNZ5oUv2heM48ju+hoPv0D03umt" "MU2rVbVWbDRUFdXzrYi1YnqsRxTeWJbOMk/s97fsX91yc/OY4erqngdkvVrVWjkeT0zTdBam" "rZac73buwbIsHI8HALbbq0sX7B7rnAhaT5Ye+DLR28SyNOZ54sWLL3j58hVDLTza7b5ejP7+" "t7+mirK0dgFqvXE6TYgIwzCQGczzzLNnz/jFL3/1va7IXyvHpsqjR48ulk7zxOk0sT8cGGpl" "GAZqHTArPH/+/PvsDcB/AcGJ5k3zdCVmAAAAAElFTkSuQmCC") getrunsoftware_16x16Data = runsoftware_16x16.GetData getrunsoftware_16x16Image = runsoftware_16x16.GetImage getrunsoftware_16x16Bitmap = runsoftware_16x16.GetBitmap
68.833333
97
0.84642
127
2,891
19.212598
0.905512
0.02623
0
0
0
0
0
0
0
0
0
0.124063
0.077136
2,891
41
98
70.512195
0.79048
0.057074
0
0
1
0
0.823573
0.823573
0
1
0
0
0
1
0
false
0
0.027778
0
0.027778
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
5
cea9204e0c51bf08daf7620ccdf1274dff81066b
126
py
Python
TP_ALGO_3/hanoi.py
PierreLeGuen/ALGO_S5
9067e887d14fe997c6944292a0cff23ceda47b6e
[ "MIT" ]
null
null
null
TP_ALGO_3/hanoi.py
PierreLeGuen/ALGO_S5
9067e887d14fe997c6944292a0cff23ceda47b6e
[ "MIT" ]
null
null
null
TP_ALGO_3/hanoi.py
PierreLeGuen/ALGO_S5
9067e887d14fe997c6944292a0cff23ceda47b6e
[ "MIT" ]
null
null
null
def hanoi_solver(liste): pass def liste(n): for i in range(n): liste_init.append(n) print hanoi_solver()
14
28
0.626984
20
126
3.8
0.65
0.289474
0
0
0
0
0
0
0
0
0
0
0.261905
126
9
29
14
0.817204
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.142857
0
0
0.285714
0.142857
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
1
0
0
0
0
0
5
ceb128010c4162a3473e61ec869e22da581840c8
189
py
Python
django-todo/collection/views.py
cathrin2005/web
e417efa4e828d14fc2846597b3d7c1bdac15cdd3
[ "MIT" ]
null
null
null
django-todo/collection/views.py
cathrin2005/web
e417efa4e828d14fc2846597b3d7c1bdac15cdd3
[ "MIT" ]
null
null
null
django-todo/collection/views.py
cathrin2005/web
e417efa4e828d14fc2846597b3d7c1bdac15cdd3
[ "MIT" ]
1
2020-07-14T04:51:57.000Z
2020-07-14T04:51:57.000Z
from django.shortcuts import render_to_response from models import todo def index(request): items = todo.objects.all() return render_to_response('index.html', {'items': items})
21
62
0.740741
26
189
5.230769
0.653846
0.117647
0.235294
0
0
0
0
0
0
0
0
0
0.153439
189
8
63
23.625
0.85
0
0
0
0
0
0.079365
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
ceb9bb39cf72bbbf7b1fd8c047336ee7ceb09e9e
309
py
Python
query/plans/tpch11cfg.py
cakebytheoceanLuo/dogqc
163618becdb57bd952a1ac5ba346d3c7ec163e04
[ "MIT" ]
12
2020-02-08T10:41:50.000Z
2022-02-25T13:21:52.000Z
query/plans/tpch11cfg.py
cakebytheoceanLuo/dogqc
163618becdb57bd952a1ac5ba346d3c7ec163e04
[ "MIT" ]
62
2021-12-02T03:08:20.000Z
2022-03-31T14:05:58.000Z
query/plans/tpch11cfg.py
cakebytheoceanLuo/dogqc
163618becdb57bd952a1ac5ba346d3c7ec163e04
[ "MIT" ]
4
2020-03-15T03:34:10.000Z
2022-03-18T07:51:37.000Z
{ 4 : { "operator" : "join", "multimatch" : False }, 6 : { "operator" : "join", "multimatch" : False }, 13 : { "operator" : "join", "multimatch" : False }, 15 : { "operator" : "join", "multimatch" : False } }
16.263158
29
0.368932
20
309
5.7
0.4
0.421053
0.77193
0.947368
0
0
0
0
0
0
0
0.035928
0.459547
309
18
30
17.166667
0.646707
0
0
0.444444
0
0
0.28479
0
0
0
0
0
0
1
0
true
0
0
0
0
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0c9043532eb706c0dceeca2fe3a8357befa0e6db
165
py
Python
repro_app/models.py
piotrb5e3/crdb-django-startswith-issue-repro
5ad80a0c9f1f52e15c044683536ba28893e2d61d
[ "MIT" ]
null
null
null
repro_app/models.py
piotrb5e3/crdb-django-startswith-issue-repro
5ad80a0c9f1f52e15c044683536ba28893e2d61d
[ "MIT" ]
null
null
null
repro_app/models.py
piotrb5e3/crdb-django-startswith-issue-repro
5ad80a0c9f1f52e15c044683536ba28893e2d61d
[ "MIT" ]
null
null
null
from django.db import models from django.db.models.constraints import UniqueConstraint class ReproExample(models.Model): value = models.TextField(unique=True)
23.571429
57
0.806061
21
165
6.333333
0.666667
0.150376
0.180451
0
0
0
0
0
0
0
0
0
0.115152
165
6
58
27.5
0.910959
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
1
0
1
0
0
null
0
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
1
0
0
5
0c97d2a0bbf9adee72bb80d8b5522a0404976fa2
14,780
py
Python
Lib/test/test_tools/test_c_analyzer/test_common/test_files.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
953
2021-10-08T17:12:34.000Z
2022-03-31T18:31:50.000Z
Lib/test/test_tools/test_c_analyzer/test_common/test_files.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
73
2021-06-19T11:08:53.000Z
2022-03-20T08:10:32.000Z
Lib/test/test_tools/test_c_analyzer/test_common/test_files.py
shawwn/cpython
0ff8a3b374286d2218fc18f47556a5ace202dad3
[ "0BSD" ]
42
2021-10-08T16:05:57.000Z
2022-03-18T13:06:12.000Z
import os.path import unittest from .. import tool_imports_for_tests with tool_imports_for_tests(): from c_analyzer.common.files import ( iter_files, _walk_tree, glob_tree, ) def fixpath(filename): return filename.replace('/', os.path.sep) class IterFilesTests(unittest.TestCase): maxDiff = None _return_walk = None @property def calls(self): try: return self._calls except AttributeError: self._calls = [] return self._calls def set_files(self, *filesperroot): roots = [] result = [] for root, files in filesperroot: root = fixpath(root) roots.append(root) result.append([os.path.join(root, fixpath(f)) for f in files]) self._return_walk = result return roots def _walk(self, root, *, suffix=None, walk=None): self.calls.append(('_walk', (root, suffix, walk))) return iter(self._return_walk.pop(0)) def _glob(self, root, *, suffix=None): self.calls.append(('_glob', (root, suffix))) return iter(self._return_walk.pop(0)) def test_typical(self): dirnames = self.set_files( ('spam', ['file1.c', 'file2.c']), ('eggs', ['ham/file3.h']), ) suffixes = ('.c', '.h') files = list(iter_files(dirnames, suffixes, _glob=self._glob, _walk=self._walk)) self.assertEqual(files, [ fixpath('spam/file1.c'), fixpath('spam/file2.c'), fixpath('eggs/ham/file3.h'), ]) self.assertEqual(self.calls, [ ('_walk', ('spam', None, _walk_tree)), ('_walk', ('eggs', None, _walk_tree)), ]) def test_single_root(self): self._return_walk = [ [fixpath('spam/file1.c'), fixpath('spam/file2.c')], ] files = list(iter_files('spam', '.c', _glob=self._glob, _walk=self._walk)) self.assertEqual(files, [ fixpath('spam/file1.c'), fixpath('spam/file2.c'), ]) self.assertEqual(self.calls, [ ('_walk', ('spam', '.c', _walk_tree)), ]) def test_one_root(self): self._return_walk = [ [fixpath('spam/file1.c'), fixpath('spam/file2.c')], ] files = list(iter_files(['spam'], '.c', _glob=self._glob, _walk=self._walk)) self.assertEqual(files, [ fixpath('spam/file1.c'), fixpath('spam/file2.c'), ]) self.assertEqual(self.calls, [ ('_walk', ('spam', '.c', _walk_tree)), ]) def test_multiple_roots(self): dirnames = self.set_files( ('spam', ['file1.c', 'file2.c']), ('eggs', ['ham/file3.c']), ) files = list(iter_files(dirnames, '.c', _glob=self._glob, _walk=self._walk)) self.assertEqual(files, [ fixpath('spam/file1.c'), fixpath('spam/file2.c'), fixpath('eggs/ham/file3.c'), ]) self.assertEqual(self.calls, [ ('_walk', ('spam', '.c', _walk_tree)), ('_walk', ('eggs', '.c', _walk_tree)), ]) def test_no_roots(self): files = list(iter_files([], '.c', _glob=self._glob, _walk=self._walk)) self.assertEqual(files, []) self.assertEqual(self.calls, []) def test_single_suffix(self): self._return_walk = [ [fixpath('spam/file1.c'), fixpath('spam/eggs/file3.c'), ], ] files = list(iter_files('spam', '.c', _glob=self._glob, _walk=self._walk)) self.assertEqual(files, [ fixpath('spam/file1.c'), fixpath('spam/eggs/file3.c'), ]) self.assertEqual(self.calls, [ ('_walk', ('spam', '.c', _walk_tree)), ]) def test_one_suffix(self): self._return_walk = [ [fixpath('spam/file1.c'), fixpath('spam/file1.h'), fixpath('spam/file1.o'), fixpath('spam/eggs/file3.c'), ], ] files = list(iter_files('spam', ['.c'], _glob=self._glob, _walk=self._walk)) self.assertEqual(files, [ fixpath('spam/file1.c'), fixpath('spam/eggs/file3.c'), ]) self.assertEqual(self.calls, [ ('_walk', ('spam', None, _walk_tree)), ]) def test_multiple_suffixes(self): self._return_walk = [ [fixpath('spam/file1.c'), fixpath('spam/file1.h'), fixpath('spam/file1.o'), fixpath('spam/eggs/file3.c'), ], ] files = list(iter_files('spam', ('.c', '.h'), _glob=self._glob, _walk=self._walk)) self.assertEqual(files, [ fixpath('spam/file1.c'), fixpath('spam/file1.h'), fixpath('spam/eggs/file3.c'), ]) self.assertEqual(self.calls, [ ('_walk', ('spam', None, _walk_tree)), ]) def test_no_suffix(self): expected = [fixpath('spam/file1.c'), fixpath('spam/file1.h'), fixpath('spam/file1.o'), fixpath('spam/eggs/file3.c'), ] for suffix in (None, '', ()): with self.subTest(suffix): self.calls.clear() self._return_walk = [list(expected)] files = list(iter_files('spam', suffix, _glob=self._glob, _walk=self._walk)) self.assertEqual(files, expected) self.assertEqual(self.calls, [ ('_walk', ('spam', suffix, _walk_tree)), ]) def test_relparent(self): dirnames = self.set_files( ('/x/y/z/spam', ['file1.c', 'file2.c']), ('/x/y/z/eggs', ['ham/file3.c']), ) files = list(iter_files(dirnames, '.c', fixpath('/x/y'), _glob=self._glob, _walk=self._walk)) self.assertEqual(files, [ fixpath('z/spam/file1.c'), fixpath('z/spam/file2.c'), fixpath('z/eggs/ham/file3.c'), ]) self.assertEqual(self.calls, [ ('_walk', (fixpath('/x/y/z/spam'), '.c', _walk_tree)), ('_walk', (fixpath('/x/y/z/eggs'), '.c', _walk_tree)), ]) def test_glob(self): dirnames = self.set_files( ('spam', ['file1.c', 'file2.c']), ('eggs', ['ham/file3.c']), ) files = list(iter_files(dirnames, '.c', get_files=glob_tree, _walk=self._walk, _glob=self._glob)) self.assertEqual(files, [ fixpath('spam/file1.c'), fixpath('spam/file2.c'), fixpath('eggs/ham/file3.c'), ]) self.assertEqual(self.calls, [ ('_glob', ('spam', '.c')), ('_glob', ('eggs', '.c')), ]) def test_alt_walk_func(self): dirnames = self.set_files( ('spam', ['file1.c', 'file2.c']), ('eggs', ['ham/file3.c']), ) def get_files(root): return None files = list(iter_files(dirnames, '.c', get_files=get_files, _walk=self._walk, _glob=self._glob)) self.assertEqual(files, [ fixpath('spam/file1.c'), fixpath('spam/file2.c'), fixpath('eggs/ham/file3.c'), ]) self.assertEqual(self.calls, [ ('_walk', ('spam', '.c', get_files)), ('_walk', ('eggs', '.c', get_files)), ]) # def test_no_dirnames(self): # dirnames = [] # filter_by_name = None # # files = list(iter_files(dirnames, filter_by_name, # _walk=self._walk)) # # self.assertEqual(files, []) # self.assertEqual(self.calls, []) # # def test_no_filter(self): # self._return_walk = [ # [('spam', (), ('file1', 'file2.c', 'file3.h', 'file4.o')), # ], # ] # dirnames = [ # 'spam', # ] # filter_by_name = None # # files = list(iter_files(dirnames, filter_by_name, # _walk=self._walk)) # # self.assertEqual(files, [ # fixpath('spam/file1'), # fixpath('spam/file2.c'), # fixpath('spam/file3.h'), # fixpath('spam/file4.o'), # ]) # self.assertEqual(self.calls, [ # ('_walk', ('spam',)), # ]) # # def test_no_files(self): # self._return_walk = [ # [('spam', (), ()), # ], # [(fixpath('eggs/ham'), (), ()), # ], # ] # dirnames = [ # 'spam', # fixpath('eggs/ham'), # ] # filter_by_name = None # # files = list(iter_files(dirnames, filter_by_name, # _walk=self._walk)) # # self.assertEqual(files, []) # self.assertEqual(self.calls, [ # ('_walk', ('spam',)), # ('_walk', (fixpath('eggs/ham'),)), # ]) # # def test_tree(self): # self._return_walk = [ # [('spam', ('sub1', 'sub2', 'sub3'), ('file1',)), # (fixpath('spam/sub1'), ('sub1sub1',), ('file2', 'file3')), # (fixpath('spam/sub1/sub1sub1'), (), ('file4',)), # (fixpath('spam/sub2'), (), ()), # (fixpath('spam/sub3'), (), ('file5',)), # ], # [(fixpath('eggs/ham'), (), ('file6',)), # ], # ] # dirnames = [ # 'spam', # fixpath('eggs/ham'), # ] # filter_by_name = None # # files = list(iter_files(dirnames, filter_by_name, # _walk=self._walk)) # # self.assertEqual(files, [ # fixpath('spam/file1'), # fixpath('spam/sub1/file2'), # fixpath('spam/sub1/file3'), # fixpath('spam/sub1/sub1sub1/file4'), # fixpath('spam/sub3/file5'), # fixpath('eggs/ham/file6'), # ]) # self.assertEqual(self.calls, [ # ('_walk', ('spam',)), # ('_walk', (fixpath('eggs/ham'),)), # ]) # # def test_filter_suffixes(self): # self._return_walk = [ # [('spam', (), ('file1', 'file2.c', 'file3.h', 'file4.o')), # ], # ] # dirnames = [ # 'spam', # ] # filter_by_name = ('.c', '.h') # # files = list(iter_files(dirnames, filter_by_name, # _walk=self._walk)) # # self.assertEqual(files, [ # fixpath('spam/file2.c'), # fixpath('spam/file3.h'), # ]) # self.assertEqual(self.calls, [ # ('_walk', ('spam',)), # ]) # # def test_some_filtered(self): # self._return_walk = [ # [('spam', (), ('file1', 'file2', 'file3', 'file4')), # ], # ] # dirnames = [ # 'spam', # ] # def filter_by_name(filename, results=[False, True, False, True]): # self.calls.append(('filter_by_name', (filename,))) # return results.pop(0) # # files = list(iter_files(dirnames, filter_by_name, # _walk=self._walk)) # # self.assertEqual(files, [ # fixpath('spam/file2'), # fixpath('spam/file4'), # ]) # self.assertEqual(self.calls, [ # ('_walk', ('spam',)), # ('filter_by_name', ('file1',)), # ('filter_by_name', ('file2',)), # ('filter_by_name', ('file3',)), # ('filter_by_name', ('file4',)), # ]) # # def test_none_filtered(self): # self._return_walk = [ # [('spam', (), ('file1', 'file2', 'file3', 'file4')), # ], # ] # dirnames = [ # 'spam', # ] # def filter_by_name(filename, results=[True, True, True, True]): # self.calls.append(('filter_by_name', (filename,))) # return results.pop(0) # # files = list(iter_files(dirnames, filter_by_name, # _walk=self._walk)) # # self.assertEqual(files, [ # fixpath('spam/file1'), # fixpath('spam/file2'), # fixpath('spam/file3'), # fixpath('spam/file4'), # ]) # self.assertEqual(self.calls, [ # ('_walk', ('spam',)), # ('filter_by_name', ('file1',)), # ('filter_by_name', ('file2',)), # ('filter_by_name', ('file3',)), # ('filter_by_name', ('file4',)), # ]) # # def test_all_filtered(self): # self._return_walk = [ # [('spam', (), ('file1', 'file2', 'file3', 'file4')), # ], # ] # dirnames = [ # 'spam', # ] # def filter_by_name(filename, results=[False, False, False, False]): # self.calls.append(('filter_by_name', (filename,))) # return results.pop(0) # # files = list(iter_files(dirnames, filter_by_name, # _walk=self._walk)) # # self.assertEqual(files, []) # self.assertEqual(self.calls, [ # ('_walk', ('spam',)), # ('filter_by_name', ('file1',)), # ('filter_by_name', ('file2',)), # ('filter_by_name', ('file3',)), # ('filter_by_name', ('file4',)), # ])
31.380042
76
0.42747
1,329
14,780
4.530474
0.068473
0.105962
0.061784
0.059791
0.802192
0.766484
0.753861
0.748879
0.686597
0.665172
0
0.015503
0.402097
14,780
470
77
31.446809
0.665837
0.392016
0
0.606987
0
0
0.115192
0
0
0
0
0
0.104803
1
0.078603
false
0
0.021834
0.008734
0.144105
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0b21b13adca9f5c916df3ccc5c2094f2250ebc07
182
py
Python
py_wake/turbulence_models/__init__.py
hmharley/PyWake
ab2979d353b9b9e7a0b2b0314e51ed568fcfee56
[ "MIT" ]
null
null
null
py_wake/turbulence_models/__init__.py
hmharley/PyWake
ab2979d353b9b9e7a0b2b0314e51ed568fcfee56
[ "MIT" ]
null
null
null
py_wake/turbulence_models/__init__.py
hmharley/PyWake
ab2979d353b9b9e7a0b2b0314e51ed568fcfee56
[ "MIT" ]
null
null
null
from .turbulence_model import TurbulenceModel from .stf import STF2005TurbulenceModel, STF2017TurbulenceModel from .gcl_turb import GCLTurbulence from .crespo import CrespoHernandez
36.4
63
0.879121
19
182
8.315789
0.684211
0
0
0
0
0
0
0
0
0
0
0.048485
0.093407
182
4
64
45.5
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
0b2d36038c2bb3bb120e3d4c7e544a910b43057d
3,666
py
Python
psa/tests/tests_corvet_views.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
psa/tests/tests_corvet_views.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
psa/tests/tests_corvet_views.py
Nels885/csd_dashboard
aa5a3b970c50a2a93af722f962bd87c3728f233c
[ "MIT" ]
null
null
null
from django.urls import reverse from django.utils.translation import ugettext as _ from dashboard.tests.base import UnitTest from psa.models import Corvet class CorvetTestCase(UnitTest): def setUp(self): super(CorvetTestCase, self).setUp() def test_corvet_insert_page(self): response = self.client.get(reverse('psa:corvet_insert')) self.assertEqual(response.status_code, 302) self.add_perms_user(Corvet, "add_corvet") self.login() response = self.client.get(reverse('psa:corvet_insert')) self.assertEqual(response.status_code, 200) def test_corvet_insert_page_is_valid(self): self.add_perms_user(Corvet, "add_corvet") self.login() old_corvets = Corvet.objects.count() response = self.client.post(reverse('psa:corvet_insert'), {'vin': self.vin, 'xml_data': self.xmlData}) new_corvets = Corvet.objects.count() self.assertEqual(new_corvets, old_corvets + 1) self.assertEqual(response.status_code, 200) def test_corvet_insert_page_is_not_valid(self): self.add_perms_user(Corvet, "add_corvet") self.login() old_corvets = Corvet.objects.count() vin = '' response = self.client.post(reverse('psa:corvet_insert'), {'vin': vin, 'xml_data': self.xmlData}) new_corvets = Corvet.objects.count() self.assertEqual(new_corvets, old_corvets) self.assertFormError(response, 'form', 'vin', _('This field is required.')) self.assertEqual(response.status_code, 200) def test_corvet_insert_page_with_vin_is_not_valid(self): self.add_perms_user(Corvet, "add_corvet") self.login() old_corvets = Corvet.objects.count() for vin in ['123456789', 'ABCDEFGH123456789']: response = self.client.post(reverse('psa:corvet_insert'), {'vin': vin, 'xml_data': self.xmlData}) new_corvets = Corvet.objects.count() self.assertEqual(new_corvets, old_corvets) self.assertFormError( response, 'form', 'vin', _('The V.I.N. is invalid, it should be 17 characters and be part of PSA vehicles') ) self.assertEqual(response.status_code, 200) def test_corvet_insert_page_with_xml_data_is_not_valid(self): self.add_perms_user(Corvet, "add_corvet") self.login() old_corvets = Corvet.objects.count() for xml_data in ['abcdefgh', '<?xml version="1.0" encoding="UTF-8"?>']: response = self.client.post(reverse('psa:corvet_insert'), {'vin': self.vin, 'xml_data': xml_data}) new_corvets = Corvet.objects.count() self.assertEqual(new_corvets, old_corvets) self.assertFormError( response, 'form', 'xml_data', _('Invalid XML data') ) self.assertEqual(response.status_code, 200) def test_corvet_detail_page(self): # Detail page is disconnected response = self.client.get(reverse('psa:corvet_detail', kwargs={'vin': self.vin})) self.assertEqual(response.status_code, 302) self.add_perms_user(Corvet, 'view_corvet', 'add_corvet') self.login() # Detail is not found response = self.client.get(reverse('psa:corvet_detail', kwargs={'vin': "123456789"})) self.assertEqual(response.status_code, 404) # Detail is valid self.client.post(reverse('psa:corvet_insert'), {'vin': self.vin, 'xml_data': self.xmlData}) response = self.client.get(reverse('psa:corvet_detail', kwargs={'vin': self.vin})) self.assertEqual(response.status_code, 200)
42.627907
110
0.651937
452
3,666
5.066372
0.192478
0.085153
0.069869
0.113974
0.79214
0.757205
0.755895
0.755895
0.755895
0.726638
0
0.021075
0.223404
3,666
85
111
43.129412
0.783281
0.017185
0
0.558824
0
0.014706
0.146707
0
0
0
0
0
0.235294
1
0.102941
false
0
0.058824
0
0.176471
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0b430e998acdcba627a4534b747e0b15ad68a733
219
py
Python
demo_extension/admin.py
open-formulieren/demo-extension
fb492361dad37c826d78437f6b73351f93da374b
[ "MIT" ]
null
null
null
demo_extension/admin.py
open-formulieren/demo-extension
fb492361dad37c826d78437f6b73351f93da374b
[ "MIT" ]
1
2022-03-01T08:59:46.000Z
2022-03-01T08:59:46.000Z
demo_extension/admin.py
open-formulieren/demo-extension
fb492361dad37c826d78437f6b73351f93da374b
[ "MIT" ]
1
2022-03-14T10:41:17.000Z
2022-03-14T10:41:17.000Z
from django.contrib import admin from solo.admin import SingletonModelAdmin from .models import DemoExtensionConfig @admin.register(DemoExtensionConfig) class DemoExtensionConfigAdmin(SingletonModelAdmin): pass
19.909091
52
0.844749
21
219
8.809524
0.619048
0
0
0
0
0
0
0
0
0
0
0
0.109589
219
10
53
21.9
0.948718
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.166667
0.5
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
5
0b4cafa75729f578abc0337830f8243e905a87a2
24
py
Python
utokenize/testdata/tabs.py
MaxTurchin/pycopy-lib
d7a69fc2a28031e2ca475c29239f715c1809d8cc
[ "PSF-2.0" ]
126
2019-07-19T14:42:41.000Z
2022-03-21T22:22:19.000Z
utokenize/testdata/tabs.py
MaxTurchin/pycopy-lib
d7a69fc2a28031e2ca475c29239f715c1809d8cc
[ "PSF-2.0" ]
38
2019-08-28T01:46:31.000Z
2022-03-17T05:46:51.000Z
utokenize/testdata/tabs.py
MaxTurchin/pycopy-lib
d7a69fc2a28031e2ca475c29239f715c1809d8cc
[ "PSF-2.0" ]
55
2019-08-02T09:32:33.000Z
2021-12-22T11:25:51.000Z
if 1: pass else: 2
4.8
5
0.5
5
24
2.4
1
0
0
0
0
0
0
0
0
0
0
0.142857
0.416667
24
4
6
6
0.714286
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.25
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
1
0
0
0
0
0
5
0b992f2cda6332bf815ecfe6c0c71172dcc19956
828
py
Python
migration/migrator/migrations/system/20190324065300_cgi_url.py
elihschiff/Submitty
8b980997b6f1dfcd73eb4cf4cca43398e67f96dc
[ "BSD-3-Clause" ]
411
2016-06-14T20:52:25.000Z
2022-03-31T21:20:25.000Z
migration/migrator/migrations/system/20190324065300_cgi_url.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
5,730
2016-05-23T21:04:32.000Z
2022-03-31T10:08:06.000Z
migration/migrator/migrations/system/20190324065300_cgi_url.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
423
2016-09-22T21:11:30.000Z
2022-03-29T18:55:28.000Z
from pathlib import Path from sqlalchemy import text import os import json def up(config): SUBMITTY_JSON_PATH = os.path.join(config.submitty['submitty_install_dir'],'config','submitty.json') with open(SUBMITTY_JSON_PATH,'r') as infile: data = json.load(infile) try: data.pop("cgi_url") except Exception as e: pass with open(SUBMITTY_JSON_PATH,'w') as outfile: json.dump(data, outfile, indent=4) config.submitty = data def down(config): SUBMITTY_JSON_PATH = os.path.join(config.submitty['submitty_install_dir'],'config','submitty.json') with open(SUBMITTY_JSON_PATH,'r') as infile: data = json.load(infile) data["cgi_url"] = '{0}/cgi-bin'.format(data['submission_url']) with open(SUBMITTY_JSON_PATH,'w') as outfile: json.dump(data, outfile, indent=4) config.submitty = data
25.090909
101
0.717391
124
828
4.637097
0.322581
0.194783
0.166957
0.13913
0.733913
0.733913
0.733913
0.733913
0.733913
0.733913
0
0.004243
0.146135
828
32
102
25.875
0.809052
0
0
0.521739
0
0
0.146312
0
0
0
0
0
0
1
0.086957
false
0.043478
0.173913
0
0.26087
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0bb002d3608cbafa0846b4e5eea61978c0ef00ce
120
py
Python
RLBotPack/Rocketnoodles/src/physics/math/__init__.py
L0laapk3/RLBotPack
f54038475d2a57428f3784560755f96bfcf8015f
[ "MIT" ]
13
2019-05-25T20:25:51.000Z
2022-03-19T13:36:23.000Z
RLBotPack/Rocketnoodles/src/physics/math/__init__.py
L0laapk3/RLBotPack
f54038475d2a57428f3784560755f96bfcf8015f
[ "MIT" ]
53
2019-06-07T13:31:59.000Z
2022-03-28T22:53:47.000Z
RLBotPack/Rocketnoodles/src/physics/math/__init__.py
L0laapk3/RLBotPack
f54038475d2a57428f3784560755f96bfcf8015f
[ "MIT" ]
78
2019-06-30T08:42:13.000Z
2022-03-23T20:11:42.000Z
from physics.math.matrix3 import Orientation3 from physics.math.vector3 import Vec3 __all__ = ["Orientation3", "Vec3"]
24
45
0.791667
15
120
6.066667
0.6
0.241758
0.32967
0
0
0
0
0
0
0
0
0.056075
0.108333
120
4
46
30
0.794393
0
0
0
0
0
0.133333
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
f01bc1000e3995f68c219f8526ecc01fe6fd659e
106
py
Python
theaterSim/theater.py
ameyand98/Py-Simulator
aa1327e4759abbef0d059ac276a648ed84a1bd79
[ "MIT" ]
null
null
null
theaterSim/theater.py
ameyand98/Py-Simulator
aa1327e4759abbef0d059ac276a648ed84a1bd79
[ "MIT" ]
null
null
null
theaterSim/theater.py
ameyand98/Py-Simulator
aa1327e4759abbef0d059ac276a648ed84a1bd79
[ "MIT" ]
null
null
null
class Theater(object): def __init__(self, env): super().__init__() self.env = env
11.777778
28
0.556604
12
106
4.25
0.666667
0.313725
0.431373
0
0
0
0
0
0
0
0
0
0.311321
106
8
29
13.25
0.69863
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
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
1
0
0
0
0
0
0
0
5
f03ef7320ae6916b02361ff9e86cbfe17e12940f
170
py
Python
src/expression.py
mayarafernandes/languages-manipulation
41ced5a3666741a3d9bcb9308480a9d4137510ef
[ "MIT" ]
null
null
null
src/expression.py
mayarafernandes/languages-manipulation
41ced5a3666741a3d9bcb9308480a9d4137510ef
[ "MIT" ]
null
null
null
src/expression.py
mayarafernandes/languages-manipulation
41ced5a3666741a3d9bcb9308480a9d4137510ef
[ "MIT" ]
null
null
null
class Expression: def __init__(self, id): self.id = id self.expression = '' def __str__(self): return f"ID: {self.id}\n{self.expression}"
24.285714
50
0.576471
22
170
4.090909
0.454545
0.2
0.177778
0
0
0
0
0
0
0
0
0
0.282353
170
7
50
24.285714
0.737705
0
0
0
0
0
0.187135
0.163743
0
0
0
0
0
1
0.333333
false
0
0
0.166667
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
1
1
0
0
5
f05995da299813decca432564174b47a21775169
138
py
Python
core/test_sample.py
rectory-school/rectory-apps-updated
a6d47f6d5928f0c816eb45fd229da2f9f2fa2ff1
[ "MIT" ]
null
null
null
core/test_sample.py
rectory-school/rectory-apps-updated
a6d47f6d5928f0c816eb45fd229da2f9f2fa2ff1
[ "MIT" ]
30
2021-07-16T12:54:14.000Z
2021-12-24T16:59:04.000Z
core/test_sample.py
rectory-school/rectory-apps-updated
a6d47f6d5928f0c816eb45fd229da2f9f2fa2ff1
[ "MIT" ]
null
null
null
"""This is a baseline test for pytest""" def add(a: int, b: int) -> int: return a + b def test_add(): assert add(7, 13) == 20
13.8
40
0.565217
25
138
3.08
0.64
0
0
0
0
0
0
0
0
0
0
0.049505
0.268116
138
9
41
15.333333
0.712871
0.246377
0
0
0
0
0
0
0
0
0
0
0.25
1
0.5
false
0
0
0.25
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
1
1
0
0
5
f079ad01cf7e100603a7abefa60f86fc95ebfbc5
1,631
py
Python
nimare/tests/test_cbma_mkda.py
Julio-Yanes/NiMARE
36bb05034041998519814b55fe402489147fdd63
[ "MIT" ]
null
null
null
nimare/tests/test_cbma_mkda.py
Julio-Yanes/NiMARE
36bb05034041998519814b55fe402489147fdd63
[ "MIT" ]
null
null
null
nimare/tests/test_cbma_mkda.py
Julio-Yanes/NiMARE
36bb05034041998519814b55fe402489147fdd63
[ "MIT" ]
null
null
null
""" Test nimare.meta.cbma.mkda (KDA-based meta-analytic algorithms). """ import pytest import nimare from nimare.meta.cbma import mkda from nimare.correct import FWECorrector, FDRCorrector def test_mkda_density(): """ Smoke test for MKDADensity """ meta = mkda.MKDADensity() res = meta.fit(pytest.cbma_testdata1) corr = FWECorrector(method='permutation', voxel_thresh=0.001, n_iters=5, n_cores=1) cres = corr.transform(res) assert isinstance(res, nimare.base.MetaResult) assert isinstance(cres, nimare.base.MetaResult) def test_mkda_chi2_fdr(): """ Smoke test for MKDAChi2 """ meta = mkda.MKDAChi2() res = meta.fit(pytest.cbma_testdata1, pytest.cbma_testdata1) corr = FDRCorrector(method='fdr_bh', alpha=0.001) cres = corr.transform(res) assert isinstance(res, nimare.base.MetaResult) assert isinstance(cres, nimare.base.MetaResult) def test_mkda_chi2_fwe(): """ Smoke test for MKDAChi2 """ meta = mkda.MKDAChi2() res = meta.fit(pytest.cbma_testdata1, pytest.cbma_testdata2) corr = FWECorrector(method='permutation', n_iters=5, n_cores=1) cres = corr.transform(res) assert isinstance(res, nimare.base.MetaResult) assert isinstance(cres, nimare.base.MetaResult) def test_kda_density(): """ Smoke test for KDA """ meta = mkda.KDA() res = meta.fit(pytest.cbma_testdata1) corr = FWECorrector(method='permutation', n_iters=5, n_cores=1) cres = corr.transform(res) assert isinstance(res, nimare.base.MetaResult) assert isinstance(cres, nimare.base.MetaResult)
28.12069
67
0.6916
208
1,631
5.307692
0.230769
0.115942
0.144928
0.057971
0.708333
0.708333
0.708333
0.708333
0.708333
0.708333
0
0.019697
0.190681
1,631
57
68
28.614035
0.816667
0.096873
0
0.545455
0
0
0.027758
0
0
0
0
0
0.242424
1
0.121212
false
0
0.121212
0
0.242424
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
f07c0d502bcc0a8ebeffb10bd974d36af9ff1b71
74
py
Python
t/data/foo/path/to/forward/test.py
tek/vim-pymport
ea918179d11a78a4e946afec1e8052e50ddd2ef7
[ "MIT" ]
null
null
null
t/data/foo/path/to/forward/test.py
tek/vim-pymport
ea918179d11a78a4e946afec1e8052e50ddd2ef7
[ "MIT" ]
null
null
null
t/data/foo/path/to/forward/test.py
tek/vim-pymport
ea918179d11a78a4e946afec1e8052e50ddd2ef7
[ "MIT" ]
null
null
null
class ForwardTest(object): pass class ForwardTest2(object): pass
12.333333
27
0.716216
8
74
6.625
0.625
0.377358
0
0
0
0
0
0
0
0
0
0.016949
0.202703
74
5
28
14.8
0.881356
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
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
0
1
1
0
0
0
0
0
5
f07d046e60ef31b9fc0cbe860f21c0bd7b58a006
91
py
Python
industrial_taxonomy/utils/metaflow/__init__.py
nestauk/industrial_taxonomy
eecfa393bc9c887d5cf9b752142cd18ed4ae4d01
[ "MIT" ]
4
2021-12-10T21:20:54.000Z
2022-01-25T09:50:36.000Z
industrial_taxonomy/utils/metaflow/__init__.py
nestauk/industrial_taxonomy
eecfa393bc9c887d5cf9b752142cd18ed4ae4d01
[ "MIT" ]
35
2021-11-15T15:55:04.000Z
2022-03-14T14:27:14.000Z
industrial_taxonomy/utils/metaflow/__init__.py
nestauk/industrial_taxonomy
eecfa393bc9c887d5cf9b752142cd18ed4ae4d01
[ "MIT" ]
null
null
null
from .client import get_run, namespace_context __all__ = ["get_run", "namespace_context"]
22.75
46
0.78022
12
91
5.25
0.666667
0.190476
0.47619
0.698413
0
0
0
0
0
0
0
0
0.10989
91
3
47
30.333333
0.777778
0
0
0
0
0
0.263736
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
1
0
0
0
0
5
b2cb7b15898a707444b41bbca50843f95720fc65
126
py
Python
jupyterlab_server/_version.py
ellisonbg/jupyterlab_server
07b67bde7381abe1711cd15a38c04f5f86815b90
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_server/_version.py
ellisonbg/jupyterlab_server
07b67bde7381abe1711cd15a38c04f5f86815b90
[ "BSD-3-Clause" ]
null
null
null
jupyterlab_server/_version.py
ellisonbg/jupyterlab_server
07b67bde7381abe1711cd15a38c04f5f86815b90
[ "BSD-3-Clause" ]
null
null
null
version_info = (2, 0, 0, 'alpha', 3) __version__ = '.'.join(map(str, version_info[:3])) + ''.join(map(str, version_info[3:]))
42
88
0.619048
20
126
3.55
0.45
0.464789
0.28169
0.478873
0.619718
0.619718
0
0
0
0
0
0.053571
0.111111
126
2
89
63
0.580357
0
0
0
0
0
0.047619
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
65038ca42d43d56f895ca885c73ab502241af335
20
py
Python
backend_addon/conftest.py
schreiber-lab/SciCat4daphne
28a0a6bac84f373028b97655373b4671f15c0297
[ "BSD-3-Clause" ]
null
null
null
backend_addon/conftest.py
schreiber-lab/SciCat4daphne
28a0a6bac84f373028b97655373b4671f15c0297
[ "BSD-3-Clause" ]
null
null
null
backend_addon/conftest.py
schreiber-lab/SciCat4daphne
28a0a6bac84f373028b97655373b4671f15c0297
[ "BSD-3-Clause" ]
null
null
null
# just a dummy file
10
19
0.7
4
20
3.5
1
0
0
0
0
0
0
0
0
0
0
0
0.25
20
1
20
20
0.933333
0.85
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
6506ccbcc659019dac7e562dd3cf5dbc83d2b027
12,941
py
Python
test/units/modules/network/netscaler/test_netscaler_nitro_request.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
test/units/modules/network/netscaler/test_netscaler_nitro_request.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
test/units/modules/network/netscaler/test_netscaler_nitro_request.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# Copyright (c) 2017 Citrix Systems # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Ansible. If not, see <http://www.gnu.org/licenses/>. # from ansible.compat.tests.mock import patch, Mock, call from .netscaler_module import TestModule import copy import tempfile import json import sys import codecs from ansible.modules.network.netscaler import netscaler_nitro_request module_arguments = dict( nsip=None, nitro_user=None, nitro_pass=None, nitro_protocol=None, validate_certs=None, nitro_auth_token=None, resource=None, name=None, attributes=None, args=None, filter=None, operation=None, expected_nitro_errorcode=None, action=None, instance_ip=None, instance_name=None, instance_id=None, ) class TestNetscalerNitroRequestModule(TestModule): @classmethod def setUpClass(cls): class MockException(Exception): pass cls.MockException = MockException @classmethod def tearDownClass(cls): pass def setUp(self): pass def tearDown(self): pass def test_fail_on_conflicting_authentication_methods(self): args = copy.deepcopy(module_arguments) args.update(dict( nitro_user='nsroot', nitro_pass='nsroot', nitro_auth_token='##DDASKLFDJ', )) mock_module_instance = Mock(params=args) expected_calls = [ call.fail_json( changed=False, failed=True, msg='Cannot define both authentication token and username/password' ) ] module_mock = Mock(return_value=mock_module_instance) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', module_mock): netscaler_nitro_request.NitroAPICaller() mock_module_instance.assert_has_calls(expected_calls) def test_nitro_user_pass_credentials(self): args = copy.deepcopy(module_arguments) args.update(dict( nitro_user='nsroot', nitro_pass='nsroot', )) mock_module_instance = Mock(params=args) expected_headers = { 'Content-Type': 'application/json', 'X-NITRO-USER': 'nsroot', 'X-NITRO-PASS': 'nsroot', } module_mock = Mock(return_value=mock_module_instance) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', module_mock): instance = netscaler_nitro_request.NitroAPICaller() self.assertDictEqual(instance._headers, expected_headers) def test_mas_login_headers(self): args = copy.deepcopy(module_arguments) args.update(dict( nitro_user='nsroot', nitro_pass='nsroot', operation='mas_login', )) mock_module_instance = Mock(params=args) expected_headers = { 'Content-Type': 'application/json', } module_mock = Mock(return_value=mock_module_instance) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', module_mock): instance = netscaler_nitro_request.NitroAPICaller() self.assertDictEqual(instance._headers, expected_headers) def test_mas_proxy_call_headers_instance_ip(self): args = copy.deepcopy(module_arguments) args.update(dict( nitro_auth_token='##ABDB', operation='add', instance_ip='192.168.1.1', )) mock_module_instance = Mock(params=args) expected_headers = { 'Content-Type': 'application/json', '_MPS_API_PROXY_MANAGED_INSTANCE_IP': args['instance_ip'], 'Cookie': 'NITRO_AUTH_TOKEN=%s' % args['nitro_auth_token'], } module_mock = Mock(return_value=mock_module_instance) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', module_mock): instance = netscaler_nitro_request.NitroAPICaller() self.assertDictEqual(instance._headers, expected_headers) def test_mas_proxy_call_headers_instance_id(self): args = copy.deepcopy(module_arguments) args.update(dict( nitro_auth_token='##ABDB', operation='add', instance_id='myid', )) mock_module_instance = Mock(params=args) expected_headers = { 'Content-Type': 'application/json', '_MPS_API_PROXY_MANAGED_INSTANCE_ID': args['instance_id'], 'Cookie': 'NITRO_AUTH_TOKEN=%s' % args['nitro_auth_token'], } module_mock = Mock(return_value=mock_module_instance) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', module_mock): instance = netscaler_nitro_request.NitroAPICaller() self.assertDictEqual(instance._headers, expected_headers) def test_mas_proxy_call_headers_instance_name(self): args = copy.deepcopy(module_arguments) args.update(dict( nitro_auth_token='##ABDB', operation='add', instance_name='myname', )) mock_module_instance = Mock(params=args) expected_headers = { 'Content-Type': 'application/json', '_MPS_API_PROXY_MANAGED_INSTANCE_NAME': args['instance_name'], 'Cookie': 'NITRO_AUTH_TOKEN=%s' % args['nitro_auth_token'], } module_mock = Mock(return_value=mock_module_instance) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', module_mock): instance = netscaler_nitro_request.NitroAPICaller() self.assertDictEqual(instance._headers, expected_headers) def test_edit_response_data_no_body_success_status(self): with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule'): instance = netscaler_nitro_request.NitroAPICaller() r = None info = { 'status': 200, } result = {} success_status = 200 expected_result = { 'nitro_errorcode': 0, 'nitro_message': 'Success', 'nitro_severity': 'NONE', 'http_response_body': '', 'http_response_data': info, } instance.edit_response_data(r, info, result, success_status) self.assertDictEqual(result, expected_result) def test_edit_response_data_no_body_fail_status(self): with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule'): instance = netscaler_nitro_request.NitroAPICaller() r = None info = { 'status': 201, } result = {} success_status = 200 expected_result = { 'nitro_errorcode': -1, 'nitro_message': 'HTTP status %s' % info['status'], 'nitro_severity': 'ERROR', 'http_response_body': '', 'http_response_data': info, } instance.edit_response_data(r, info, result, success_status) self.assertDictEqual(result, expected_result) def test_edit_response_data_actual_body_data(self): args = copy.deepcopy(module_arguments) args.update(dict( nitro_user='nsroot', nitro_pass='nsroot', nitro_auth_token='##DDASKLFDJ', )) module_mock = Mock(params=args, from_json=json.loads) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', Mock(return_value=module_mock)): with tempfile.TemporaryFile() as r: actual_body = { 'errorcode': 258, 'message': 'Some error', 'severity': 'ERROR', } r.write(codecs.encode(json.dumps(actual_body), 'utf-8')) r.seek(0) instance = netscaler_nitro_request.NitroAPICaller() info = { 'status': 200, } result = {} success_status = 200 expected_result = { 'http_response_body': json.dumps(actual_body), 'http_response_data': info, } nitro_data = {} for key, value in actual_body.items(): nitro_data['nitro_%s' % key] = value expected_result.update(nitro_data) instance.edit_response_data(r, info, result, success_status) self.assertDictEqual(result, expected_result) def test_edit_response_data_actual_body_data_irrelevant(self): args = copy.deepcopy(module_arguments) args.update(dict( nitro_user='nsroot', nitro_pass='nsroot', nitro_auth_token='##DDASKLFDJ', )) module_mock = Mock(params=args, from_json=json.loads) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', Mock(return_value=module_mock)): with tempfile.TemporaryFile() as r: actual_body = {} r.write(codecs.encode(json.dumps(actual_body), 'utf-8')) r.seek(0) instance = netscaler_nitro_request.NitroAPICaller() info = { 'status': 200, } result = {} success_status = 200 expected_result = { 'http_response_body': json.dumps(actual_body), 'http_response_data': info, 'nitro_errorcode': 0, 'nitro_message': 'Success', 'nitro_severity': 'NONE', } instance.edit_response_data(r, info, result, success_status) self.assertDictEqual(result, expected_result) def test_edit_response_data_body_in_info(self): args = copy.deepcopy(module_arguments) args.update(dict( nitro_user='nsroot', nitro_pass='nsroot', )) module_mock = Mock(params=args, from_json=json.loads) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', Mock(return_value=module_mock)): body = { 'errorcode': 258, 'message': 'Numerical error 258', 'severity': 'ERROR' } instance = netscaler_nitro_request.NitroAPICaller() r = None info = { 'status': 200, 'body': codecs.encode(json.dumps(body), 'utf-8'), } result = {} success_status = 200 expected_result = { 'http_response_body': json.dumps(body), 'http_response_data': info, } nitro_data = {} for key, value in body.items(): nitro_data['nitro_%s' % key] = value expected_result.update(nitro_data) instance.edit_response_data(r, info, result, success_status) self.assertDictEqual(result, expected_result) def test_handle_get_return_object(self): resource = 'lbvserver' args = copy.deepcopy(module_arguments) args.update(dict( nitro_user='nsroot', nitro_pass='nsroot', resource=resource, )) resource_data = { 'property1': 'value1', 'property2': 'value2', } module_mock = Mock(params=args, from_json=json.loads) with patch('ansible.modules.network.netscaler.netscaler_nitro_request.AnsibleModule', Mock(return_value=module_mock)): instance = netscaler_nitro_request.NitroAPICaller() data = {resource: resource_data} result = { 'nitro_errorcode': 0, 'http_response_body': json.dumps(data), } expected_result = { 'nitro_object': resource_data } expected_result.update(result) instance.handle_get_return_object(result) self.assertDictEqual(result, expected_result)
37.186782
126
0.602504
1,315
12,941
5.646388
0.162738
0.047138
0.070707
0.052525
0.738721
0.726599
0.717037
0.702088
0.695354
0.677441
0
0.007213
0.303609
12,941
347
127
37.293948
0.816689
0.050769
0
0.627119
0
0
0.172374
0.077952
0
0
0
0
0.040678
1
0.054237
false
0.050847
0.027119
0
0.088136
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
1
0
0
0
0
0
5
e8da49521a37c78083c609a37aeba447bea685a4
50
py
Python
pythoncalculator/__init__.py
AP-Graczyk/python-calculator
7e417d7851645a2602d34fb78b7d8ae36ea912db
[ "MIT" ]
null
null
null
pythoncalculator/__init__.py
AP-Graczyk/python-calculator
7e417d7851645a2602d34fb78b7d8ae36ea912db
[ "MIT" ]
2
2022-01-20T15:57:07.000Z
2022-01-20T16:45:58.000Z
pythoncalculator/__init__.py
AP-Graczyk/python-calculator
7e417d7851645a2602d34fb78b7d8ae36ea912db
[ "MIT" ]
null
null
null
from .add import add from .divide import divide
12.5
26
0.76
8
50
4.75
0.5
0
0
0
0
0
0
0
0
0
0
0
0.2
50
3
27
16.666667
0.95
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
3337ba834f8f9b332e21e74d63887b1a8ed7df1b
345
py
Python
niaaml/preprocessing/imputation/__init__.py
musicinmybrain/NiaAML
58d879cb1d5f8a458bb5cca115e68c125418fc6e
[ "MIT" ]
22
2020-09-01T06:54:40.000Z
2022-03-21T04:13:57.000Z
niaaml/preprocessing/imputation/__init__.py
musicinmybrain/NiaAML
58d879cb1d5f8a458bb5cca115e68c125418fc6e
[ "MIT" ]
26
2020-09-08T15:22:53.000Z
2022-03-04T01:48:45.000Z
niaaml/preprocessing/imputation/__init__.py
musicinmybrain/NiaAML
58d879cb1d5f8a458bb5cca115e68c125418fc6e
[ "MIT" ]
19
2020-10-14T11:50:40.000Z
2022-03-04T01:43:49.000Z
from niaaml.preprocessing.imputation.imputer import Imputer from niaaml.preprocessing.imputation.simple_imputer import SimpleImputer from niaaml.preprocessing.imputation.utility import ImputerFactory from niaaml.preprocessing.imputation.utility import impute_features __all__ = ["Imputer", "SimpleImputer", "ImputerFactory", "impute_features"]
49.285714
75
0.857971
36
345
8.027778
0.361111
0.138408
0.318339
0.456747
0.318339
0.318339
0
0
0
0
0
0
0.066667
345
6
76
57.5
0.897516
0
0
0
0
0
0.142029
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
336db0dc1ea81ed27b48803e5dec44773fa89c38
317
py
Python
double_check/request_token/tests/helpers/test_generate_token.py
erikopa/double-check
101e7577cc5b4a8798421010c7a3a3308d21db72
[ "MIT" ]
4
2022-01-24T12:04:46.000Z
2022-02-10T17:20:20.000Z
double_check/request_token/tests/helpers/test_generate_token.py
erikopa/double-check
101e7577cc5b4a8798421010c7a3a3308d21db72
[ "MIT" ]
2
2021-11-04T14:00:46.000Z
2022-01-21T15:04:22.000Z
double_check/request_token/tests/helpers/test_generate_token.py
erikopa/double-check
101e7577cc5b4a8798421010c7a3a3308d21db72
[ "MIT" ]
3
2021-11-04T13:08:12.000Z
2022-01-15T20:59:33.000Z
import re from double_check.request_token.helpers import generate_user_token def test_should_return_str(): token = generate_user_token() assert isinstance(token, str) def test_should_generate_user_token(): token = generate_user_token() assert len(token) == 6 assert re.match(r'\d+', token)
18.647059
66
0.741325
45
317
4.888889
0.488889
0.218182
0.309091
0.2
0.254545
0
0
0
0
0
0
0.003788
0.167192
317
16
67
19.8125
0.829545
0
0
0.222222
1
0
0.009464
0
0
0
0
0
0.333333
1
0.222222
false
0
0.222222
0
0.444444
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
1
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
6834f200078a9fa8b400eb77dfe5a7fe553eb60f
26,328
py
Python
dhedge/abi/pool.py
NikitaPirate/dhedge-python-sdk
3685c68968c24845dd8293101c8333122e46e51f
[ "MIT" ]
1
2021-01-01T17:28:06.000Z
2021-01-01T17:28:06.000Z
dhedge/abi/pool.py
NikitaPirate/dhedge-python-sdk
3685c68968c24845dd8293101c8333122e46e51f
[ "MIT" ]
null
null
null
dhedge/abi/pool.py
NikitaPirate/dhedge-python-sdk
3685c68968c24845dd8293101c8333122e46e51f
[ "MIT" ]
1
2021-06-14T13:58:59.000Z
2021-06-14T13:58:59.000Z
pool_abi = [ { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": True, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": False, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": False, "internalType": "address", "name": "fundAddress", "type": "address" }, { "indexed": False, "internalType": "address", "name": "manager", "type": "address" }, { "indexed": False, "internalType": "bytes32", "name": "assetKey", "type": "bytes32" } ], "name": "AssetAdded", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": False, "internalType": "address", "name": "fundAddress", "type": "address" }, { "indexed": False, "internalType": "address", "name": "manager", "type": "address" }, { "indexed": False, "internalType": "bytes32", "name": "assetKey", "type": "bytes32" } ], "name": "AssetRemoved", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": False, "internalType": "address", "name": "fundAddress", "type": "address" }, { "indexed": False, "internalType": "address", "name": "investor", "type": "address" }, { "indexed": False, "internalType": "uint256", "name": "valueDeposited", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "fundTokensReceived", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "totalInvestorFundTokens", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "fundValue", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "time", "type": "uint256" } ], "name": "Deposit", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": False, "internalType": "address", "name": "fundAddress", "type": "address" }, { "indexed": False, "internalType": "address", "name": "manager", "type": "address" }, { "indexed": False, "internalType": "bytes32", "name": "sourceKey", "type": "bytes32" }, { "indexed": False, "internalType": "uint256", "name": "sourceAmount", "type": "uint256" }, { "indexed": False, "internalType": "bytes32", "name": "destinationKey", "type": "bytes32" }, { "indexed": False, "internalType": "uint256", "name": "destinationAmount", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "time", "type": "uint256" } ], "name": "Exchange", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": False, "internalType": "address", "name": "pool", "type": "address" }, { "indexed": False, "internalType": "address", "name": "manager", "type": "address" }, { "indexed": False, "internalType": "uint256", "name": "available", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "daoFee", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "managerFee", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "tokenPriceAtLastFeeMint", "type": "uint256" } ], "name": "ManagerFeeMinted", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": False, "internalType": "address", "name": "fundAddress", "type": "address" }, { "indexed": False, "internalType": "address", "name": "manager", "type": "address" }, { "indexed": False, "internalType": "uint256", "name": "numerator", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "denominator", "type": "uint256" } ], "name": "ManagerFeeSet", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": False, "internalType": "address", "name": "newManager", "type": "address" }, { "indexed": False, "internalType": "string", "name": "newManagerName", "type": "string" } ], "name": "ManagerUpdated", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": False, "internalType": "bool", "name": "isPoolPrivate", "type": "bool" } ], "name": "PoolPrivacyUpdated", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": True, "internalType": "address", "name": "from", "type": "address" }, { "indexed": True, "internalType": "address", "name": "to", "type": "address" }, { "indexed": False, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "anonymous": False, "inputs": [ { "indexed": False, "internalType": "address", "name": "fundAddress", "type": "address" }, { "indexed": False, "internalType": "address", "name": "investor", "type": "address" }, { "indexed": False, "internalType": "uint256", "name": "valueWithdrawn", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "fundTokensWithdrawn", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "totalInvestorFundTokens", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "fundValue", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "totalSupply", "type": "uint256" }, { "indexed": False, "internalType": "uint256", "name": "time", "type": "uint256" } ], "name": "Withdrawal", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "member", "type": "address" } ], "name": "addMember", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "members", "type": "address[]" } ], "name": "addMembers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "addressResolver", "outputs": [ { "internalType": "contract IAddressResolver", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "assetPosition", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newManager", "type": "address" }, { "internalType": "string", "name": "newManagerName", "type": "string" } ], "name": "changeManager", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "creationTime", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "creator", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "subtractedValue", "type": "uint256" } ], "name": "decreaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "factory", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getMembers", "outputs": [ { "internalType": "address[]", "name": "", "type": "address[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "addedValue", "type": "uint256" } ], "name": "increaseAllowance", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "member", "type": "address" } ], "name": "isMemberAllowed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "lastDeposit", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "manager", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "managerName", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "numberOfMembers", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "persistentAsset", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "privatePool", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "member", "type": "address" } ], "name": "removeMember", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "members", "type": "address[]" } ], "name": "removeMembers", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "supportedAssets", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "tokenPriceAtLastFeeMint", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_factory", "type": "address" }, { "internalType": "bool", "name": "_privatePool", "type": "bool" }, { "internalType": "address", "name": "_manager", "type": "address" }, { "internalType": "string", "name": "_managerName", "type": "string" }, { "internalType": "string", "name": "_fundName", "type": "string" }, { "internalType": "contract IAddressResolver", "name": "_addressResolver", "type": "address" }, { "internalType": "bytes32[]", "name": "_supportedAssets", "type": "bytes32[]" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bool", "name": "_privatePool", "type": "bool" } ], "name": "setPoolPrivate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "key", "type": "bytes32" } ], "name": "getAssetProxy", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "key", "type": "bytes32" } ], "name": "isAssetSupported", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "key", "type": "bytes32" } ], "name": "validateAsset", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "key", "type": "bytes32" } ], "name": "addToSupportedAssets", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "key", "type": "bytes32" } ], "name": "removeFromSupportedAssets", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "numberOfSupportedAssets", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "sourceKey", "type": "bytes32" }, { "internalType": "uint256", "name": "sourceAmount", "type": "uint256" }, { "internalType": "bytes32", "name": "destinationKey", "type": "bytes32" } ], "name": "exchange", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "totalFundValue", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "key", "type": "bytes32" } ], "name": "assetValue", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_susdAmount", "type": "uint256" } ], "name": "deposit", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_fundTokenAmount", "type": "uint256" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_fundTokenAmount", "type": "uint256" } ], "name": "forfeitSuspendedSynthsAndWithdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getFundSummary", "outputs": [ { "internalType": "string", "name": "", "type": "string" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "string", "name": "", "type": "string" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bool", "name": "", "type": "bool" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getSupportedAssets", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getFundComposition", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" }, { "internalType": "uint256[]", "name": "", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getWaitingPeriods", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" }, { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getSuspendedAssets", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" }, { "internalType": "bool[]", "name": "", "type": "bool[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "tokenPrice", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "availableManagerFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "mintManagerFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getManagerFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "numerator", "type": "uint256" } ], "name": "setManagerFeeNumerator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "getExitFee", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getExitFeeCooldown", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "getExitFeeRemainingCooldown", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]
19.036876
52
0.410172
1,507
26,328
7.15793
0.084937
0.082599
0.136461
0.109206
0.856679
0.846853
0.805136
0.705015
0.685455
0.669139
0
0.02881
0.385635
26,328
1,383
53
19.036876
0.638083
0
0
0.607375
0
0
0.400699
0.008432
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
684dae97534501069aeb09954ee0237fb3f51dab
307
py
Python
src/Frequency Estimation/Ring.py
andy172008/LDP-toolset
663bfb7474a223c7f4bec93ae6fcae6444b8b24b
[ "Apache-2.0" ]
1
2022-02-13T02:07:59.000Z
2022-02-13T02:07:59.000Z
src/Frequency Estimation/Ring.py
andy172008/LDP-toolset
663bfb7474a223c7f4bec93ae6fcae6444b8b24b
[ "Apache-2.0" ]
null
null
null
src/Frequency Estimation/Ring.py
andy172008/LDP-toolset
663bfb7474a223c7f4bec93ae6fcae6444b8b24b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2022/2/28 3:15 PM # @Author : 贺星宇 # @File : Ring.py # @Software: PyCharm import numpy as np from random import choice from collections import Counter class HM_USER(object): def __init__(self): pass class HM_SERVER(object): def __init__(self): pass
19.1875
31
0.654723
45
307
4.244444
0.777778
0.073298
0.136126
0.17801
0.219895
0
0
0
0
0
0
0.046218
0.224756
307
16
32
19.1875
0.756303
0.312704
0
0.444444
0
0
0
0
0
0
0
0
0
1
0.222222
false
0.222222
0.333333
0
0.777778
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
1
0
1
0
0
5
6853d6fdfefca141e4664d1b8ba89c68a92d3ff6
21,362
py
Python
backend/testcases/recordtest.py
ShadowIterator/2018SE_THSSOJ
5bc9a1dc9d7d65c3159c8c4727db3b904e0efa6a
[ "MIT" ]
null
null
null
backend/testcases/recordtest.py
ShadowIterator/2018SE_THSSOJ
5bc9a1dc9d7d65c3159c8c4727db3b904e0efa6a
[ "MIT" ]
1
2019-01-17T08:59:56.000Z
2019-01-18T09:18:36.000Z
backend/testcases/recordtest.py
ShadowIterator/2018SE_THSSOJ
5bc9a1dc9d7d65c3159c8c4727db3b904e0efa6a
[ "MIT" ]
null
null
null
import unittest import tornado.testing import datetime import time import os import json import shutil from basetestcase.basetestcase import BaseTestCase, async_aquire_db from apis.base import print_test, print_debug from apis.base import Roles class RecordTestCase(BaseTestCase): async def prepare(self): self.url = '/api/record' self.student1 = await self.createUser('users', username='hfz', password='4321', email='hfz@hfz.com', role=Roles.STUDENT) self.student2 = await self.createUser('users', username='nx', password='myq', role=Roles.STUDENT) self.ta1 = await self.createUser('users', username='zjl', password='ibtfy', email='sh@sina.com', role=Roles.TA, ta_courses=[1]) self.ta2 = await self.createUser('users', username='wzy', password='9897', role=Roles.TA) self.admin = await self.createUser('users', username='admin', password='1234', role=Roles.ADMIN) # await self.db.createObject('users', username='admin', password='1234', email='hfz@hfz.com', role=Roles.ADMIN) await self.db.createObject('courses', name='泽学', tas=[self.ta1['id']], students=[self.student1['id'], self.student2['id']], status=1, homeworks=[1,2]) await self.db.createObject('courses', name='母猪的产后护理', tas=[self.ta2['id']], students=[self.student2['id']], status=1, homeworks=[3]) await self.db.createObject('problems', title='hfz111', openness=1, user_id=self.ta1['id'], ratio_one=20, ratio_two=30, ratio_three=50) await self.db.createObject('problems', title='hfzHTML', openness=0, user_id=self.ta1['id']) await self.db.createObject('problems', title='zsdjt', openness=1, user_id=self.ta2['id']) await self.db.createObject('problems', title='zsxjt', openness=0, user_id=self.ta2['id']) await self.db.createObject('homeworks', name='first', deadline=datetime.datetime.fromtimestamp(10000), problems=[1,2], course_id=1) await self.db.createObject('homeworks', name='second', deadline=datetime.datetime.fromtimestamp(10000), problems=[1, 2], course_id=1, score_openness=0 ) await self.db.createObject('homeworks', name='first', deadline=datetime.datetime.fromtimestamp(10000), problems=[1, 2], course_id=2, score_openness=0) @async_aquire_db async def test_create(self): uri = self.url+'/create' # admin = await self.db.getObjectOne('users', username='admin') # ta = await self.db.getObjectOne('users', username='zjl') admin = self.admin ta = self.ta1 # fail await self.login_object(ta) response = self.getbodyObject(await self.post_request(uri, user_id=admin['id'], problem_id=1)) self.assertEqual(1, response['code']) await self.logout_object(ta) # pass await self.login_object(admin) response = self.getbodyObject(await self.post_request(uri, user_id=admin['id'], problem_id=1, record_type=0)) records = await self.db.getObject('records', user_id=admin['id']) self.assertEqual(0, response['code']) self.assertEqual(1, len(records)) @async_aquire_db async def test_delete(self): uri = self.url + '/delete' # admin = await self.db.getObjectOne('users', username='admin') # ta = await self.db.getObjectOne('users', username='zjl') admin = self.admin ta = self.ta1 record = await self.db.createObject('records', record_type=0, user_id=ta['id']) # fail await self.login_object(ta) response = self.getbodyObject(await self.post_request(uri, id=record['id'])) left = await self.db.getObject('records', id=record['id']) self.assertEqual(1, len(left)) self.assertEqual(1, response['code']) await self.logout_object(ta) # pass await self.login_object(admin) response = self.getbodyObject(await self.post_request(uri, id=record['id'])) left = await self.db.getObject('records', id=record['id']) self.assertEqual(0, response['code']) self.assertEqual(0, len(left)) @async_aquire_db async def test_query(self): uri = self.url+'/query' # admin = await self.db.getObjectOne('users', username='admin') # ta = await self.db.getObjectOne('users', username='zjl') # ta2 = await self.db.getObjectOne('users', username='wzy') # student = await self.db.getObjectOne('users', username='hfz') # student2 = await self.db.getObjectOne('users', username='nx') admin = self.admin ta = self.ta1 ta2 = self.ta2 student = self.student1 student2 = self.student2 problem1 = await self.db.getObjectOne('problems', title='hfz111') problem2 = await self.db.getObjectOne('problems', title='zsxjt') record1 = await self.db.createObject('records', record_type=0, user_id=student['id']) record2 = await self.db.createObject('records', record_type=0, user_id=ta['id']) record3= await self.db.createObject('records', record_type=1, user_id=student['id'], homework_id=1, problem_id=1, test_ratio=2, result_type=0 ) record4 = await self.db.createObject('records', record_type=2, user_id=student['id'], problem_id=1, homework_id=1, score=100) record5 = await self.db.createObject('records', record_type=2, user_id=student['id'], problem_id=1, homework_id=2, time_consume=500, score=100, result=0) record6 = await self.db.createObject('records', record_type=3, user_id=ta['id'], problem_id=problem1['id']) record7 = await self.db.createObject('records', record_type=3, user_id=ta2['id'], problem_id=problem2['id']) record8 = await self.db.createObject('records', record_type=4, user_id=student2['id'], problem_id=2, homework_id=3, score=90) temp_config = {'NTESTS':10} target_path = os.getcwd()+'''/{root_dir}/problems/'''.format(root_dir = self.root_dir)+str(problem1['id'])+'/case' if not os.path.exists(target_path): os.makedirs(target_path) config_file = open(target_path+'/config.json', mode='w') json.dump(temp_config, config_file) config_file.close() # pass student check public records await self.login_object(student) response = self.getbodyObject(await self.post_request(uri, record_type=0)) user_id_list = [record['user_id'] for record in response] self.assertIsInstance(response, list) self.assertEqual(1, len(response)) self.assertIn(student['id'], user_id_list) # pass student check normal course test record response = self.getbodyObject(await self.post_request(uri, record_type=1)) self.assertIsInstance(response, list) self.assertEqual(1, len(response)) # self.assertEqual(3, response[0]['test_ratio']) # pass student check official open record response = self.getbodyObject(await self.post_request(uri, record_type=2, homework_id=1)) self.assertIsInstance(response, list) self.assertEqual(1, len(response)) self.assertIn('score', response[0]) # pass student check official concealed record response = self.getbodyObject(await self.post_request(uri, record_type=2, homework_id=2)) self.assertIsInstance(response, list) self.assertEqual(1, len(response)) self.assertNotIn('time_consume', response[0]) self.assertNotIn('result', response[0]) # pass student check standard record response = self.getbodyObject(await self.post_request(uri, record_type=3)) self.assertIsInstance(response, list) self.assertEqual(0, len(response)) await self.logout_object(student) # pass student check html record await self.login_object(student2) response = self.getbodyObject(await self.post_request(uri, record_type=4, homework_id=3)) self.assertIsInstance(response, list) self.assertEqual(1, len(response)) await self.logout_object(student2) # pass ta check public record await self.login_object(ta) response = self.getbodyObject(await self.post_request(uri, record_type=0)) user_id_list = [record['user_id'] for record in response] self.assertIsInstance(response, list) self.assertEqual(1, len(response)) self.assertIn(ta['id'], user_id_list) # pass ta check course records response = self.getbodyObject(await self.post_request(uri, homework_id=1)) self.assertIsInstance(response, list) self.assertEqual(2, len(response)) # pass ta check concealed course record response = self.getbodyObject(await self.post_request(uri, homework_id=2)) self.assertIsInstance(response, list) self.assertIn('result', response[0]) # pass ta check standard record response = self.getbodyObject(await self.post_request(uri, record_type=3)) self.assertIsInstance(response, list) self.assertEqual(1, len(response)) await self.logout_object(ta) # pass admin check record await self.login_object(admin) response = self.getbodyObject(await self.post_request(uri, user_id=student['id'])) self.assertIsInstance(response, list) self.assertEqual(4, len(response)) shutil.rmtree(target_path) @async_aquire_db async def test_srccode(self): uri=self.url+'/srcCode' srccode='include<stdio.h>' # admin = await self.db.getObjectOne('users', username='admin') # ta = await self.db.getObjectOne('users', username='zjl') # student = await self.db.getObjectOne('users', username='hfz') # student2 = await self.db.getObjectOne('users', username='nx') admin = self.admin ta = self.ta1 student = self.student1 student2 = self.student2 record1 = await self.db.createObject('records', record_type=1, user_id=student['id'], homework_id=1, problem_id=1, test_ratio=2, result_type=0 ) path = '{}/{root_dir}/records/{}'.format(os.getcwd(), record1['id'], root_dir = self.root_dir) code_path = '{}/{}.code'.format(path, record1['id']) if not os.path.exists(path): os.makedirs(path) code_file = open(code_path, 'w') code_file.write(srccode) code_file.close() # fail student check other srccode await self.login_object(student2) response = self.getbodyObject(await self.post_request(uri, id=record1['id'])) self.assertEqual(1, response['code']) # pass student check await self.login_object(student) response = self.getbodyObject(await self.post_request(uri, id=record1['id'])) self.assertEqual(srccode, response['src_code']) # pass ta check await self.login_object(ta) response = self.getbodyObject(await self.post_request(uri, id=record1['id'])) self.assertEqual(srccode, response['src_code']) # pass admin check await self.login_object(admin) response = self.getbodyObject(await self.post_request(uri, id=record1['id'])) self.assertEqual(srccode, response['src_code']) shutil.rmtree(path) record2 = await self.db.createObject('records', record_type=1, user_id=student2['id'], homework_id=3, problem_id=1, test_ratio=2, result_type=0 ) path = '{}/{root_dir}/records/{}'.format(os.getcwd(), record2['id'], root_dir = self.root_dir) code_path = '{}/{}.code'.format(path, record2['id']) if not os.path.exists(path): os.makedirs(path) code_file = open(code_path, 'w') code_file.write(srccode) code_file.close() # fail ta check srccode in other course await self.login_object(ta) response = self.getbodyObject(await self.post_request(uri, id=record1['id'])) self.assertEqual(1, response['code']) shutil.rmtree(path) @async_aquire_db async def test_judgerinfo(self): info = {'Info': 'you are good'} uri = self.url+'/judgerInfo' # admin = await self.db.getObjectOne('users', username='admin') # ta = await self.db.getObjectOne('users', username='zjl') # student = await self.db.getObjectOne('users', username='hfz') # student2 = await self.db.getObjectOne('users', username='nx') admin = self.admin ta = self.ta1 student = self.student1 student2 = self.student2 record1 = await self.db.createObject('records', record_type=2, user_id=student['id'], problem_id=1, homework_id=2, time_consume=500, score=100, result=0) path = '{}/{root_dir}/records/{}'.format(os.getcwd(), record1['id'], root_dir = self.root_dir) info_path = '{}/{}.json'.format(path, record1['id']) if not os.path.exists(path): os.makedirs(path) info_file = open(info_path, 'w') json.dump(info, info_file) info_file.close() # fail student check info of closed homework await self.login_object(student) response = self.getbodyObject(await self.post_request(uri, record_id=record1['id'])) self.assertEqual(1, response['code']) # pass ta check info of closed homework await self.login_object(ta) response = self.getbodyObject(await self.post_request(uri, record_id=record1['id'])) self.assertEqual('you are good', response['info']) # pass admin check await self.login_object(admin) response = self.getbodyObject(await self.post_request(uri, record_id=record1['id'])) self.assertEqual('you are good', response['info']) shutil.rmtree(path) record2 = await self.db.createObject('records', record_type=2, user_id=student['id'], problem_id=1, homework_id=1, score=100) path = '{}/{root_dir}/records/{}'.format(os.getcwd(), record2['id'], root_dir = self.root_dir) info_path = '{}/{}.json'.format(path, record2['id']) if not os.path.exists(path): os.makedirs(path) info_file = open(info_path, 'w') json.dump(info, info_file) info_file.close() # fail student check info not belonging to him await self.login_object(student2) response = self.getbodyObject(await self.post_request(uri, record_id=record2['id'])) self.assertEqual(1, response['code']) # pass student check his own open info await self.login_object(student) response = self.getbodyObject(await self.post_request(uri, record_id=record2['id'])) self.assertEqual('you are good', response['info']) shutil.rmtree(path) record3 = await self.db.createObject('records', record_type=1, user_id=student2['id'], homework_id=3, problem_id=1, test_ratio=2, result_type=0 ) path = '{}/{root_dir}/records/{}'.format(os.getcwd(), record3['id'], root_dir = self.root_dir) print_test('recordtest: ', path) info_path = '{}/{}.json'.format(path, record3['id']) if not os.path.exists(path): os.makedirs(path) info_file = open(info_path, 'w') json.dump(info, info_file) info_file.close() # fail ta check info not in his course await self.login_object(ta) response = self.getbodyObject(await self.post_request(uri, record_id=record3['id'])) self.assertEqual(1, response['code']) shutil.rmtree(path)
49.221198
158
0.474347
1,997
21,362
4.956435
0.092639
0.091837
0.051121
0.078804
0.826025
0.77743
0.719135
0.69701
0.684381
0.6569
0
0.020484
0.424118
21,362
434
159
49.221198
0.7841
0.089786
0
0.702857
0
0
0.047889
0.007268
0
0
0
0
0.128571
1
0
false
0.014286
0.028571
0
0.031429
0.005714
0
0
0
null
0
0
0
1
1
1
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
5
6888cbc4a117521714554226bdcb2b0b63f04f5c
183
py
Python
main.py
mhmddpkts/Get-Turkish-Words-with-Web-Scraping
6e344640f6dc512f03a9b59522876ce7b6339a86
[ "MIT" ]
null
null
null
main.py
mhmddpkts/Get-Turkish-Words-with-Web-Scraping
6e344640f6dc512f03a9b59522876ce7b6339a86
[ "MIT" ]
null
null
null
main.py
mhmddpkts/Get-Turkish-Words-with-Web-Scraping
6e344640f6dc512f03a9b59522876ce7b6339a86
[ "MIT" ]
null
null
null
from scraping import loadWordFromVikiToFile uploadedWordCount,totalTime = loadWordFromVikiToFile() print("Upladed {} turkish words in {} second.".format(uploadedWordCount,totalTime))
45.75
83
0.830601
16
183
9.5
0.8125
0.342105
0
0
0
0
0
0
0
0
0
0
0.076503
183
4
83
45.75
0.899408
0
0
0
0
0
0.206522
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
d79aabc6f660e416b6e9c994d4f95ecb4ce54c71
52
py
Python
util/__init__.py
DavidLegg/SmartGTD
fc11c02b409e67c0e0a1b40e23b2858ef0d413bc
[ "MIT" ]
null
null
null
util/__init__.py
DavidLegg/SmartGTD
fc11c02b409e67c0e0a1b40e23b2858ef0d413bc
[ "MIT" ]
null
null
null
util/__init__.py
DavidLegg/SmartGTD
fc11c02b409e67c0e0a1b40e23b2858ef0d413bc
[ "MIT" ]
null
null
null
from .error_handling import * from .string import *
17.333333
29
0.769231
7
52
5.571429
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.153846
52
2
30
26
0.886364
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d7bf2b2729d13417306556b29cfa076bea1ff875
104
py
Python
thenumbers/even.py
extsoft/numbers-api
3484509ae60c02c04cb03c4f42ac99a3c6ae4a3c
[ "MIT" ]
2
2019-12-17T11:34:43.000Z
2020-02-22T14:15:44.000Z
thenumbers/even.py
extsoft/numbers-api
3484509ae60c02c04cb03c4f42ac99a3c6ae4a3c
[ "MIT" ]
2
2020-03-18T16:46:40.000Z
2021-03-23T10:32:25.000Z
thenumbers/even.py
extsoft/numbers-api
3484509ae60c02c04cb03c4f42ac99a3c6ae4a3c
[ "MIT" ]
1
2022-01-02T12:51:49.000Z
2022-01-02T12:51:49.000Z
import sys _evens = iter(range(0, sys.maxsize, 2)) def number() -> str: return str(next(_evens))
13
39
0.644231
16
104
4.0625
0.8125
0
0
0
0
0
0
0
0
0
0
0.02381
0.192308
104
7
40
14.857143
0.75
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
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
1
1
0
0
5
d7c0aa6d84450cf8437894da611dea7dea9f9279
52
py
Python
viromatch/lib/washu/__init__.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
5
2021-02-13T09:02:21.000Z
2021-10-06T19:20:41.000Z
viromatch/lib/washu/__init__.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
4
2021-05-14T09:02:32.000Z
2022-03-25T05:06:40.000Z
viromatch/lib/washu/__init__.py
twylie/viromatch
44edca07c44308b17b9f19174c08175736fff53f
[ "MIT" ]
1
2021-04-05T22:30:44.000Z
2021-04-05T22:30:44.000Z
from .parallel_processing import ParallelProcessing
26
51
0.903846
5
52
9.2
1
0
0
0
0
0
0
0
0
0
0
0
0.076923
52
1
52
52
0.958333
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d7cb8f0f978dc43b136d6c6c5ddb25e94fd45bd4
248
py
Python
pylib/gna/graph/walk_functions.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
5
2019-10-14T01:06:57.000Z
2021-02-02T16:33:06.000Z
pylib/gna/graph/walk_functions.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
pylib/gna/graph/walk_functions.py
gnafit/gna
c1a58dac11783342c97a2da1b19c97b85bce0394
[ "MIT" ]
null
null
null
import ROOT as R def taint(entry): if bool(entry.tainted): return entry.tainted.taint() def taint_dummy(entry): if bool(entry.tainted): return bool(entry.tainted) def size(sink): return sink.data.type.size()
15.5
32
0.641129
35
248
4.514286
0.457143
0.303797
0.303797
0.202532
0.367089
0.367089
0
0
0
0
0
0
0.241935
248
15
33
16.533333
0.840426
0
0
0.363636
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.090909
0.636364
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
1
0
0
0
0
1
0
0
5
d7ce0ca60b57ec0d221b81f07d6f84a459817d9e
318
py
Python
operator_utils/exceptions.py
kneedeepio/python-kubernetes-operator
1ae91a3c15af6c2609f319639936109df6ac5310
[ "BSD-2-Clause" ]
null
null
null
operator_utils/exceptions.py
kneedeepio/python-kubernetes-operator
1ae91a3c15af6c2609f319639936109df6ac5310
[ "BSD-2-Clause" ]
null
null
null
operator_utils/exceptions.py
kneedeepio/python-kubernetes-operator
1ae91a3c15af6c2609f319639936109df6ac5310
[ "BSD-2-Clause" ]
1
2022-02-02T00:18:59.000Z
2022-02-02T00:18:59.000Z
#!/usr/bin/env python3 ### IMPORTS ### ### GLOBALS ### ### FUNCTIONS ### ### CLASSES ### class ManifestEmptyException(Exception): pass class ManifestMissingValueException(Exception): pass class ManifestSchemaInvalidTypeException(Exception): pass class ManifestWrongKindException(Exception): pass
15.9
52
0.720126
24
318
9.541667
0.625
0.227074
0.235808
0
0
0
0
0
0
0
0
0.003704
0.150943
318
20
53
15.9
0.844444
0.18239
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
d7d54eafb9f5d3ffdb157b4e080fc3a1af05666f
147
py
Python
serial/serialSetup.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
2
2015-04-02T06:06:29.000Z
2015-04-02T06:06:29.000Z
serial/serialSetup.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
serial/serialSetup.py
kohloderso/quickbot_bbb
430510b1b3bc54f72fd738b8235abecdfa186ff2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import Adafruit_BBIO.UART as UART import serial UART.setup("UART1") UART.setup("UART2") UART.setup("UART4") UART.setup("UART5")
16.333333
33
0.741497
23
147
4.695652
0.608696
0.333333
0
0
0
0
0
0
0
0
0
0.02963
0.081633
147
8
34
18.375
0.77037
0.108844
0
0
0
0
0.153846
0
0
0
0
0
0
1
0
true
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
1
0
1
0
0
0
0
5
d7d781208844fe49329b9ae42528efe97f30707c
148
py
Python
solutions/04_06_df_mean_std.py
caperutxa/PyConES2018_Introduccion_a_data_science_en_Python
450ed2d0588d4bed7293cd5fe3a7fde4625bf687
[ "MIT" ]
15
2018-09-03T16:45:42.000Z
2020-02-16T13:50:06.000Z
solutions/04_06_df_mean_std.py
NachoAG76/PyConES2018_Introduccion_a_data_science_en_Python
71d0c6f86afdc992e3b2ba1d6862eb34dead5698
[ "MIT" ]
null
null
null
solutions/04_06_df_mean_std.py
NachoAG76/PyConES2018_Introduccion_a_data_science_en_Python
71d0c6f86afdc992e3b2ba1d6862eb34dead5698
[ "MIT" ]
9
2018-09-08T10:06:00.000Z
2020-05-09T05:09:38.000Z
cond = df['species'] == 'virginica' df_virginica = df[cond] print(df_virginica['sepal width (cm)'].mean(), df_virginica['sepal width (cm)'].std())
29.6
86
0.675676
21
148
4.619048
0.47619
0.340206
0.329897
0.43299
0.474227
0
0
0
0
0
0
0
0.101351
148
5
86
29.6
0.729323
0
0
0
0
0
0.322148
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
d7eedd79aee9a3a312e06b71be1325f55ceaa7c4
104
py
Python
docs/source/tutorial/v4/using_liberty.py
mjhajharia/deprecated
9893b54d62ad0b164b9d99ee8382d21f32b5f96a
[ "MIT" ]
169
2017-12-05T15:22:20.000Z
2022-03-08T03:24:56.000Z
docs/source/tutorial/v4/using_liberty.py
mjhajharia/deprecated
9893b54d62ad0b164b9d99ee8382d21f32b5f96a
[ "MIT" ]
48
2018-06-21T22:39:37.000Z
2022-01-07T17:57:59.000Z
docs/source/tutorial/v4/using_liberty.py
mjhajharia/deprecated
9893b54d62ad0b164b9d99ee8382d21f32b5f96a
[ "MIT" ]
23
2018-06-21T22:36:48.000Z
2021-12-22T19:31:18.000Z
# coding: utf-8 import liberty obj = liberty.Liberty("Salutation") obj.print_value() obj.print_value()
14.857143
35
0.75
15
104
5.066667
0.6
0.210526
0.342105
0
0
0
0
0
0
0
0
0.010753
0.105769
104
6
36
17.333333
0.806452
0.125
0
0.5
0
0
0.11236
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
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
1
0
5
cc0c240ca579529136c6b8225dc859b2acbdf3ca
230
py
Python
examples/process_wiping_sections.py
J-T-de/sourcehold-maps
330ab1b3426dbd93b5de3b0c031419e54f6a1618
[ "MIT" ]
null
null
null
examples/process_wiping_sections.py
J-T-de/sourcehold-maps
330ab1b3426dbd93b5de3b0c031419e54f6a1618
[ "MIT" ]
null
null
null
examples/process_wiping_sections.py
J-T-de/sourcehold-maps
330ab1b3426dbd93b5de3b0c031419e54f6a1618
[ "MIT" ]
null
null
null
from sourcehold.debugtools.memory.common.access import AccessContext from sourcehold.debugtools.memory.common import memory_find, memory_findall process = AccessContext() process.write_section("section1001", 0, b'\x00' * 160800)
38.333333
75
0.826087
28
230
6.678571
0.642857
0.149733
0.256684
0.320856
0.385027
0
0
0
0
0
0
0.061321
0.078261
230
6
76
38.333333
0.820755
0
0
0
0
0
0.064935
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
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
1
0
0
0
0
5
cc145d6a4a6ab15c1d7e927863fcac918da21183
19,455
py
Python
database/old_qchem_irc_check.py
ms860309/AutomatedReactionMechanismDiscovery
7749afd60e828638bf0bf013bb04d33304735764
[ "MIT" ]
1
2022-02-09T20:08:17.000Z
2022-02-09T20:08:17.000Z
database/old_qchem_irc_check.py
ms860309/ARMD
7749afd60e828638bf0bf013bb04d33304735764
[ "MIT" ]
3
2021-04-28T15:03:45.000Z
2021-05-13T03:10:47.000Z
database/old_qchem_irc_check.py
ms860309/AutomatedReactionMechanismDiscovery
7749afd60e828638bf0bf013bb04d33304735764
[ "MIT" ]
null
null
null
""" IRC check. """ def select_irc_target(direction='forward'): """ This method is to inform job checker which targets to check, which need meet one requirement: 1. status is job_launched or job_running Returns a list of targe """ qm_collection = db['qm_calculate_center'] irc_status = 'irc_{}_status'.format(direction) query = {irc_status: {"$in": ["job_launched", "job_running", "job_queueing"] } } targets = list(qm_collection.find(query)) return targets def check_irc_status(job_id): """ This method checks pbs status of a job given job_id Returns off_queue or job_launched or job_running """ commands = ['qstat', '-f', job_id] process = subprocess.Popen(commands, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = process.communicate() if "Unknown Job Id" in stderr.decode(): return "off_queue" # in pbs stdout is byte, so we need to decode it at first. stdout = stdout.decode().strip().split() idx = stdout.index('job_state') if stdout[idx+2] == 'R': return "job_running" elif stdout[idx+2] == 'Q': return "job_queueing" else: return "job_launched" def check_irc_content(target_path, direction='forward'): reactant_path = path.join(target_path, 'reactant.xyz') irc_path = path.join(target_path, 'IRC/') base_dir_path = path.join(path.dirname(path.dirname( path.dirname(path.dirname(irc_path)))), 'config') opt_lot = path.join(base_dir_path, 'opt_freq.lot') opt_name = '{}_opt.in'.format(direction) opt_in = path.join(irc_path, opt_name) irc_output = path.join(irc_path, 'irc_{}.out'.format(direction)) with open(opt_lot) as f: config = [line.strip() for line in f] with open(reactant_path, 'r') as f1: lines = f1.readlines() atom_number = int(lines[0]) with open(irc_output, 'r') as f: f.seek(0, 2) fsize = f.tell() f.seek(max(fsize - 12280, 0), 0) # Read last 12 kB of file lines = f.readlines() if lines[-2] == ' IRC backup failure\n' or lines[-2] == ' IRC failed final bisector step\n': with open(irc_output, 'r') as f: full_lines = f.readlines() # Sometimes irc success in forward(reverse) but fail in reverse(forward). # We wan't to catch the final structure to optimize. # But if "convergence criterion reached" in first direction fail in second that will cause reactant equal to product. if ' IRC -- convergence criterion reached.\n' in full_lines: for idx, i in enumerate(full_lines): if i.startswith(' IRC -- convergence criterion reached.\n'): break full_lines = full_lines[:idx] for idx2, j in enumerate(reversed(full_lines)): if j.startswith(' Standard Nuclear Orientation (Angstroms)\n'): break geo = [] for i in full_lines[-idx2 + 2: -idx2 + 2 + atom_number]: atom = i.split()[1:] geo.append(' '.join(atom)) with open(opt_in, 'w') as f: f.write('$molecule\n{} {}\n'.format(0, 1)) f.write('\n'.join(geo)) f.write('\n$end\n\n') for line in config: f.write(line + '\n') else: for idx, i in enumerate(lines): if i.startswith(' Standard Nuclear Orientation (Angstroms)\n'): break geo = [] for i in lines[idx + 3: idx + 3 + atom_number]: atom = i.split()[1:] geo.append(' '.join(atom)) with open(opt_in, 'w') as f: f.write('$molecule\n{} {}\n'.format(0, 1)) f.write('\n'.join(geo)) f.write('\n$end\n\n') for line in config: f.write(line + '\n') return 'need opt' elif lines[-5] == ' * Thank you very much for using Q-Chem. Have a nice day. *\n': return 'job_success' elif lines[-2] == ' Bad initial gradient\n': return 'Bad initial gradient' elif lines[-2] == ' IRC --- Failed line search\n': return 'Failed line search' elif lines[-6] == ' Error in gen_scfman\n': return 'Error in gen_scfman' else: return 'unknown fail information' def generate_irc_product_xyz(target, direction='forward'): irc_path = path.join(target['path'], 'IRC') reactant_path = path.join(target['path'], 'reactant.xyz') output_name = 'irc_{}.out'.format(direction) output = path.join(irc_path, output_name) name = path.join(irc_path, '{}.xyz'.format(direction)) with open(reactant_path, 'r') as f1: lines = f1.readlines() atom_number = int(lines[0]) with open(output, 'r') as f: full_lines = f.readlines() count = 1 for idx, i in enumerate(full_lines): if i.startswith(' IRC -- convergence criterion reached.\n'): count += 1 if count == 2: break full_lines = full_lines[:idx] for idx2, j in enumerate(reversed(full_lines)): if j.startswith(' Standard Nuclear Orientation (Angstroms)\n'): break geo = [] for i in full_lines[-idx2 + 2: -idx2 + 2 + atom_number]: atom = i.split()[1:] geo.append(' '.join(atom)) with open(name, 'w') as f: f.write(str(atom_number)) f.write('\n\n') f.write('\n'.join(geo)) def check_irc_jobs(): """ This method checks job with following steps: 1. select jobs to check 2. check the job pbs-status, e.g., qstat -f "job_id" 3. check job content 4. update with new status """ # 1. select jobs to check targets = select_irc_target(direction='forward') qm_collection = db['qm_calculate_center'] # 2. check the job pbs status for target in targets: job_id = target['irc_forward_jobid'] # 2. check the job pbs status new_status = check_irc_status(job_id) if new_status == "off_queue": # 3. check job content new_status = check_irc_content(target['path'], direction='forward') # 4. check with original status which # should be job_launched or job_running # if any difference update status irc_status = 'irc_{}_status'.format('forward') orig_status = target[irc_status] if orig_status != new_status: if new_status == 'job_success': generate_irc_product_xyz(target, direction='forward') update_field = { irc_status: new_status, 'irc_equal': 'waiting for check' } qm_collection.update_one(target, {"$set": update_field}, True) elif new_status == 'need opt': opt_status = 'opt_{}_status'.format('forward') update_field = { irc_status: new_status, opt_status: 'job_unrun' } qm_collection.update_one(target, {"$set": update_field}, True) else: update_field = { irc_status: new_status } qm_collection.update_one(target, {"$set": update_field}, True) # 1. select jobs to check targets = select_irc_target(direction='reverse') qm_collection = db['qm_calculate_center'] # 2. check the job pbs status for target in targets: job_id = target['irc_reverse_jobid'] # 2. check the job pbs status new_status = check_irc_status(job_id) if new_status == "off_queue": # 3. check job content new_status = check_irc_content(target['path'], direction='reverse') # 4. check with original status which # should be job_launched or job_running # if any difference update status irc_status = 'irc_{}_status'.format('reverse') orig_status = target[irc_status] if orig_status != new_status: if new_status == 'job_success': generate_irc_product_xyz(target, direction='reverse') update_field = { irc_status: new_status, 'irc_equal': 'waiting for check' } qm_collection.update_one(target, {"$set": update_field}, True) elif new_status == 'need opt': opt_status = 'opt_{}_status'.format('reverse') update_field = { irc_status: new_status, opt_status: 'job_unrun' } qm_collection.update_one(target, {"$set": update_field}, True) else: update_field = { irc_status: new_status } qm_collection.update_one(target, {"$set": update_field}, True) """ IRC success check. This is to check whether irc forward and reverse direction equal to expectation. """ def select_irc_equal_target(): """ This method is to inform job checker which targets to check, which need meet one requirement: 1. status is job_launched or job_running Returns a list of targe """ qm_collection = db['qm_calculate_center'] query = {'$and': [ {"irc_forward_status": {"$in": ['job_success', 'opt_success']}}, {'irc_reverse_status': {'$in': ['job_success', 'opt_success']}}, {'irc_equal': {'$in': ['waiting for check']}} ] } targets = list(qm_collection.find(query)) return targets def check_irc_equal(): targets = select_irc_equal_target() qm_collection = db['qm_calculate_center'] for target in targets: if target['irc_forward_status'] in ['job_success', 'opt_success'] and target['irc_reverse_status'] in ['job_success', 'opt_success']: new_status = check_irc_equal_status(target) orig_status = target['irc_equal'] if orig_status != new_status: if new_status == 'forward equal to reactant and reverse equal to product' or new_status == 'reverse equal to reactant and forward equal to product' or new_status == 'reverse equal to reactant but forward does not equal to product' or new_status == 'forward equal to reactant but reverse does not equal to product': update_field = { 'irc_equal': new_status, 'energy_status': 'job_unrun' } qm_collection.update_one( target, {"$set": update_field}, True) else: update_field = { 'irc_equal': new_status } qm_collection.update_one( target, {"$set": update_field}, True) elif target['opt_reverse_status'] == 'job_fail' or target['opt_forward_status'] == 'job_fail': update_field = { 'irc_equal': 'opt fail' } qm_collection.update_one(target, {"$set": update_field}, True) def check_irc_equal_status(target): irc_path = path.join(target['path'], 'IRC/') reactant_path = path.join(target['path'], 'reactant.xyz') product_path = path.join(target['path'], 'ssm_product.xyz') forward_output = path.join(irc_path, 'forward.xyz') reverse_output = path.join(irc_path, 'reverse.xyz') pyMol_1 = xyz_to_pyMol(reactant_path) pyMol_2 = xyz_to_pyMol(product_path) pyMol_3 = xyz_to_pyMol(forward_output) pyMol_4 = xyz_to_pyMol(reverse_output) if pyMol_3.write('inchiKey').strip() == pyMol_4.write('inchiKey').strip(): return 'forward equal to reverse' elif (pyMol_1.write('inchiKey').strip() == pyMol_3.write('inchiKey').strip()) and (pyMol_1.write('inchiKey').strip() == pyMol_4.write('inchiKey').strip()): return 'forward and reverse equal to reactant' elif (pyMol_2.write('inchiKey').strip() == pyMol_3.write('inchiKey').strip()) and (pyMol_2.write('inchiKey').strip() == pyMol_4.write('inchiKey').strip()): return 'forward and reverse equal to product' elif pyMol_1.write('inchiKey').strip() == pyMol_3.write('inchiKey').strip() and pyMol_2.write('inchiKey').strip() == pyMol_4.write('inchiKey').strip(): return 'forward equal to reactant and reverse equal to product' elif pyMol_1.write('inchiKey').strip() == pyMol_4.write('inchiKey').strip() and pyMol_2.write('inchiKey').strip() == pyMol_3.write('inchiKey').strip(): return 'reverse equal to reactant and forward equal to product' elif pyMol_1.write('inchiKey').strip() == pyMol_4.write('inchiKey').strip() and pyMol_2.write('inchiKey').strip() != pyMol_3.write('inchiKey').strip(): return 'reverse equal to reactant but forward does not equal to product' elif pyMol_1.write('inchiKey').strip() != pyMol_4.write('inchiKey').strip() and pyMol_2.write('inchiKey').strip() == pyMol_3.write('inchiKey').strip(): return 'reverse does not equal to reactant but forward equal to product' elif pyMol_1.write('inchiKey').strip() == pyMol_3.write('inchiKey').strip() and pyMol_2.write('inchiKey').strip() != pyMol_4.write('inchiKey').strip(): return 'forward equal to reactant but reverse does not equal to product' elif pyMol_1.write('inchiKey').strip() != pyMol_3.write('inchiKey').strip() and pyMol_2.write('inchiKey').strip() == pyMol_4.write('inchiKey').strip(): return 'forward does not equal to reactant but reverse equal to product' else: return 'unknown (Maybe both of them are not equal to reactant&product)' """ IRC opt check. """ def select_irc_opt_target(direction='forward'): """ This method is to inform job checker which targets to check, which need meet one requirement: 1. status is job_launched or job_running Returns a list of targe """ qm_collection = db['qm_calculate_center'] irc_opt_status = 'opt_{}_status'.format(direction) reg_query = {irc_opt_status: {"$in": ["opt_job_launched", "opt_job_running", "opt_job_queueing"] } } targets = list(qm_collection.find(reg_query)) return targets def check_irc_opt_job_status(job_id): """ This method checks pbs status of a job given job_id Returns off_queue or job_launched or job_running """ commands = ['qstat', '-f', job_id] process = subprocess.Popen(commands, stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = process.communicate() if "Unknown Job Id" in stderr.decode(): return "off_queue" # in pbs stdout is byte, so we need to decode it at first. stdout = stdout.decode().strip().split() idx = stdout.index('job_state') if stdout[idx+2] == 'R': return "opt_job_running" elif stdout[idx+2] == 'Q': return 'opt_job_queueing' else: return "opt_job_launched" def check_irc_opt_content(dir_path, direction='forward'): reactant_path = os.path.join(dir_path, 'reactant.xyz') irc_path = path.join(dir_path, "IRC") xyzname = '{}.xyz'.format(direction) output = path.join(irc_path, xyzname) output_path = path.join(irc_path, '{}_opt.out'.format(direction)) try: q = QChem(outputfile=output_path) q.create_geo_file(output) return 'job_success' except: return 'job_fail' def check_irc_opt_jobs(): """ This method checks job with following steps: 1. select jobs to check 2. check the job pbs-status, e.g., qstat -f "job_id" 3. check job content 4. update with new status """ # 1. select jobs to check targets = select_irc_opt_target(direction='forward') irc_opt_jobid = 'irc_{}_opt_jobid'.format(str('forward')) qm_collection = db['qm_calculate_center'] # 2. check the job pbs_status for target in targets: job_id = target[irc_opt_jobid] new_status = check_irc_opt_job_status(job_id) if new_status == "off_queue": # 3. check job content new_status = check_irc_opt_content( target['path'], direction='forward') # 4. check with original status which # should be job_launched or job_running # if any difference update status irc_status = 'irc_{}_status'.format(str('forward')) irc_opt_status = 'opt_{}_status'.format(str('forward')) orig_status = target[irc_opt_status] if orig_status != new_status: if new_status == 'job_success': update_field = { irc_status: 'opt_success', irc_opt_status: new_status, 'irc_equal': 'waiting for check' } qm_collection.update_one( target, {"$set": update_field}, True) else: update_field = { irc_status: 'opt_fail', irc_opt_status: new_status } qm_collection.update_one( target, {"$set": update_field}, True) # 1. select jobs to check targets = select_irc_opt_target(direction='reverse') irc_opt_jobid = 'irc_{}_opt_jobid'.format(str('reverse')) # 2. check the job pbs_status for target in targets: job_id = target[irc_opt_jobid] new_status = check_irc_opt_job_status(job_id) if new_status == "off_queue": # 3. check job content new_status = check_irc_opt_content( target['path'], direction='reverse') # 4. check with original status which # should be job_launched or job_running # if any difference update status irc_status = 'irc_{}_status'.format(str('reverse')) irc_opt_status = 'opt_{}_status'.format(str('reverse')) orig_status = target[irc_opt_status] if orig_status != new_status: if new_status == 'job_success': update_field = { irc_status: 'opt_success', irc_opt_status: new_status, 'irc_equal': 'waiting for check' } qm_collection.update_one( target, {"$set": update_field}, True) else: update_field = { irc_status: 'opt_fail', irc_opt_status: new_status } qm_collection.update_one( target, {"$set": update_field}, True)
40.53125
331
0.569417
2,365
19,455
4.464693
0.093869
0.035799
0.05796
0.03703
0.817691
0.781419
0.759352
0.722227
0.683682
0.675159
0
0.008733
0.317245
19,455
479
332
40.615866
0.786193
0.112053
0
0.531343
0
0
0.200657
0
0
0
0
0
0
1
0.035821
false
0
0
0
0.122388
0
0
0
0
null
0
0
0
1
1
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
cc1c6bdd194e99d110eb4d83492d2b4bdd2bf448
587
py
Python
robolearn/models/policies/make_deterministic.py
domingoesteban/robolearn
0d20125425c352b80ef2eeed1c0b11ab6497b11a
[ "BSD-3-Clause" ]
1
2020-01-13T09:44:22.000Z
2020-01-13T09:44:22.000Z
robolearn/models/policies/make_deterministic.py
domingoesteban/robolearn
0d20125425c352b80ef2eeed1c0b11ab6497b11a
[ "BSD-3-Clause" ]
null
null
null
robolearn/models/policies/make_deterministic.py
domingoesteban/robolearn
0d20125425c352b80ef2eeed1c0b11ab6497b11a
[ "BSD-3-Clause" ]
1
2021-12-22T00:41:20.000Z
2021-12-22T00:41:20.000Z
from robolearn.models.policies.base import Policy class MakeDeterministic(Policy): def __init__(self, stochastic_policy): self.stochastic_policy = stochastic_policy Policy.__init__(self, stochastic_policy.action_dim) def get_action(self, observation): return self.stochastic_policy.get_action(observation, deterministic=True) def get_actions(self, observations): return self.stochastic_policy.get_actions(observations, deterministic=True)
34.529412
69
0.640545
55
587
6.490909
0.4
0.268908
0.280112
0.134454
0.162465
0
0
0
0
0
0
0
0.296422
587
16
70
36.6875
0.864407
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.090909
0.181818
0.636364
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
cc2469a403959edd4a3b6fe0c40058fcaadb2df2
232
py
Python
src/utils.py
jayantik/AiCorExample
5edbc7343b4f1bccd9ab8bddaa5ac785b2d27782
[ "MIT" ]
4
2021-02-12T16:30:53.000Z
2021-08-30T02:48:19.000Z
src/utils.py
jayantik/AiCorExample
5edbc7343b4f1bccd9ab8bddaa5ac785b2d27782
[ "MIT" ]
null
null
null
src/utils.py
jayantik/AiCorExample
5edbc7343b4f1bccd9ab8bddaa5ac785b2d27782
[ "MIT" ]
2
2021-01-17T16:13:03.000Z
2021-01-18T11:09:10.000Z
import torch def random_split(data, validation_percent): validation_points = int(validation_percent * len(data)) return torch.utils.data.random_split( data, [validation_points, len(data) - validation_points] )
25.777778
64
0.732759
28
232
5.821429
0.464286
0.257669
0.184049
0.306748
0
0
0
0
0
0
0
0
0.172414
232
8
65
29
0.848958
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0bcaee21175e94e2b7de8b27b15a8ecd7931fc0a
17
py
Python
directupload/models.py
cuker/django-directupload
5c10c32d12a50e0092c5e3adf23adf4519d6a96c
[ "BSD-3-Clause" ]
2
2015-10-26T23:11:50.000Z
2015-11-05T01:38:04.000Z
directupload/models.py
cuker/django-directupload
5c10c32d12a50e0092c5e3adf23adf4519d6a96c
[ "BSD-3-Clause" ]
null
null
null
directupload/models.py
cuker/django-directupload
5c10c32d12a50e0092c5e3adf23adf4519d6a96c
[ "BSD-3-Clause" ]
null
null
null
#models go here
5.666667
15
0.705882
3
17
4
1
0
0
0
0
0
0
0
0
0
0
0
0.235294
17
2
16
8.5
0.923077
0.823529
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
0405adbaf49fa6c90040488f6f0bc7c5fa583ee6
191
py
Python
hivemind/pipeline/__init__.py
enj/hivemind
55567496662449cea6a9610611d3dd4c9b40bb42
[ "Apache-2.0" ]
1
2021-03-21T06:50:59.000Z
2021-03-21T06:50:59.000Z
hivemind/pipeline/__init__.py
enj/hivemind
55567496662449cea6a9610611d3dd4c9b40bb42
[ "Apache-2.0" ]
null
null
null
hivemind/pipeline/__init__.py
enj/hivemind
55567496662449cea6a9610611d3dd4c9b40bb42
[ "Apache-2.0" ]
2
2016-05-12T20:47:18.000Z
2016-10-01T04:22:02.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from .pipeline import PipelineFramework, ConcretePipeline from .rank import rank_by_total_successors, rank_by_successors from .task import Task
27.285714
62
0.78534
26
191
5.576923
0.653846
0.082759
0
0
0
0
0
0
0
0
0
0.005917
0.115183
191
6
63
31.833333
0.852071
0.219895
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
04541ab3daf6501dd4576976efafaff06ab9cc3f
28
py
Python
textutils/textutils/textutils/views.py
raselrostock/LearningDjango
39187e6d2fa682e6bbe44a50b0c424f8e862378a
[ "Apache-2.0" ]
null
null
null
textutils/textutils/textutils/views.py
raselrostock/LearningDjango
39187e6d2fa682e6bbe44a50b0c424f8e862378a
[ "Apache-2.0" ]
null
null
null
textutils/textutils/textutils/views.py
raselrostock/LearningDjango
39187e6d2fa682e6bbe44a50b0c424f8e862378a
[ "Apache-2.0" ]
null
null
null
# I have created this file
14
27
0.714286
5
28
4
1
0
0
0
0
0
0
0
0
0
0
0
0.25
28
1
28
28
0.952381
0.857143
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
f09c3cb4d317c279810cf980e09f63e488c0cffc
129
py
Python
python-sdk/nuscenes/eval/detection/constants.py
tanjiangyuan/Classification_nuScence
b94c4b0b6257fc1c048a676e3fd9e71183108d53
[ "Apache-2.0" ]
null
null
null
python-sdk/nuscenes/eval/detection/constants.py
tanjiangyuan/Classification_nuScence
b94c4b0b6257fc1c048a676e3fd9e71183108d53
[ "Apache-2.0" ]
null
null
null
python-sdk/nuscenes/eval/detection/constants.py
tanjiangyuan/Classification_nuScence
b94c4b0b6257fc1c048a676e3fd9e71183108d53
[ "Apache-2.0" ]
null
null
null
version https://git-lfs.github.com/spec/v1 oid sha256:4173acc21519b22c31d197a003d82ba81181dc26ee924fe06ca6bff08d69e441 size 2289
32.25
75
0.883721
13
129
8.769231
1
0
0
0
0
0
0
0
0
0
0
0.398374
0.046512
129
3
76
43
0.528455
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
5
f0f3352913c8b0d6748953da41eb773b7fd9a40a
49
py
Python
Python2/hw.py
cyberpunk2350/HelloWorld
968a9a57b2d5ebebe3023dce55f610a31499ade6
[ "MIT" ]
null
null
null
Python2/hw.py
cyberpunk2350/HelloWorld
968a9a57b2d5ebebe3023dce55f610a31499ade6
[ "MIT" ]
null
null
null
Python2/hw.py
cyberpunk2350/HelloWorld
968a9a57b2d5ebebe3023dce55f610a31499ade6
[ "MIT" ]
null
null
null
import time print 'Hello, World!' time.sleep (5)
12.25
21
0.714286
8
49
4.375
0.875
0
0
0
0
0
0
0
0
0
0
0.02381
0.142857
49
3
22
16.333333
0.809524
0
0
0
0
0
0.265306
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.333333
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
5
9beab3191d6eac79400aa2e98358acc0ada4843a
5,695
py
Python
stubs.min/System/Security/AccessControl.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/Security/AccessControl.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Security/AccessControl.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
# encoding: utf-8 # module System.Security.AccessControl calls itself AccessControl # from mscorlib,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089 # by generator 1.145 # no doc # no imports # functions def AccessRule(*args,**kwargs): # real signature unknown """ Represents a combination of a user's identity,an access mask,and an access control type (allow or deny). An System.Security.AccessControl.AccessRule object also contains information about the how the rule is inherited by child objects and how that inheritance is propagated. """ pass def AuditRule(*args,**kwargs): # real signature unknown """ Represents a combination of a user's identity and an access mask. An System.Security.AccessControl.AuditRule object also contains information about how the rule is inherited by child objects,how that inheritance is propagated,and for what conditions it is audited. """ pass def ObjectSecurity(*args,**kwargs): # real signature unknown """ Provides the ability to control access to objects without direct manipulation of Access Control Lists (ACLs). This class is the abstract base class for the System.Security.AccessControl.CommonObjectSecurity and System.Security.AccessControl.DirectoryObjectSecurity classes. """ pass # classes from AccessControl_parts.AccessControlActions import AccessControlActions from AccessControl_parts.AccessControlModification import AccessControlModification from AccessControl_parts.AccessControlSections import AccessControlSections from AccessControl_parts.AccessControlType import AccessControlType from AccessControl_parts.AceEnumerator import AceEnumerator from AccessControl_parts.AceFlags import AceFlags from AccessControl_parts.AceQualifier import AceQualifier from AccessControl_parts.AceType import AceType from AccessControl_parts.AuditFlags import AuditFlags from AccessControl_parts.AuthorizationRule import AuthorizationRule from AccessControl_parts.AuthorizationRuleCollection import AuthorizationRuleCollection from AccessControl_parts.GenericAce import GenericAce from AccessControl_parts.KnownAce import KnownAce from AccessControl_parts.QualifiedAce import QualifiedAce from AccessControl_parts.CommonAce import CommonAce from AccessControl_parts.GenericAcl import GenericAcl from AccessControl_parts.CommonAcl import CommonAcl from AccessControl_parts.CommonObjectSecurity import CommonObjectSecurity from AccessControl_parts.GenericSecurityDescriptor import GenericSecurityDescriptor from AccessControl_parts.CommonSecurityDescriptor import CommonSecurityDescriptor from AccessControl_parts.CompoundAce import CompoundAce from AccessControl_parts.CompoundAceType import CompoundAceType from AccessControl_parts.ControlFlags import ControlFlags from AccessControl_parts.CryptoKeyAccessRule import CryptoKeyAccessRule from AccessControl_parts.CryptoKeyAuditRule import CryptoKeyAuditRule from AccessControl_parts.CryptoKeyRights import CryptoKeyRights from AccessControl_parts.NativeObjectSecurity import NativeObjectSecurity from AccessControl_parts.CryptoKeySecurity import CryptoKeySecurity from AccessControl_parts.CustomAce import CustomAce from AccessControl_parts.DirectoryObjectSecurity import DirectoryObjectSecurity from AccessControl_parts.FileSystemSecurity import FileSystemSecurity from AccessControl_parts.DirectorySecurity import DirectorySecurity from AccessControl_parts.DiscretionaryAcl import DiscretionaryAcl from AccessControl_parts.EventWaitHandleAccessRule import EventWaitHandleAccessRule from AccessControl_parts.EventWaitHandleAuditRule import EventWaitHandleAuditRule from AccessControl_parts.EventWaitHandleRights import EventWaitHandleRights from AccessControl_parts.EventWaitHandleSecurity import EventWaitHandleSecurity from AccessControl_parts.FileSecurity import FileSecurity from AccessControl_parts.FileSystemAccessRule import FileSystemAccessRule from AccessControl_parts.FileSystemAuditRule import FileSystemAuditRule from AccessControl_parts.FileSystemRights import FileSystemRights from AccessControl_parts.InheritanceFlags import InheritanceFlags from AccessControl_parts.MutexAccessRule import MutexAccessRule from AccessControl_parts.MutexAuditRule import MutexAuditRule from AccessControl_parts.MutexRights import MutexRights from AccessControl_parts.MutexSecurity import MutexSecurity from AccessControl_parts.ObjectAccessRule import ObjectAccessRule from AccessControl_parts.ObjectAce import ObjectAce from AccessControl_parts.ObjectAceFlags import ObjectAceFlags from AccessControl_parts.ObjectAuditRule import ObjectAuditRule from AccessControl_parts.PrivilegeNotHeldException import PrivilegeNotHeldException from AccessControl_parts.PropagationFlags import PropagationFlags from AccessControl_parts.RawAcl import RawAcl from AccessControl_parts.RawSecurityDescriptor import RawSecurityDescriptor from AccessControl_parts.RegistryAccessRule import RegistryAccessRule from AccessControl_parts.RegistryAuditRule import RegistryAuditRule from AccessControl_parts.RegistryRights import RegistryRights from AccessControl_parts.RegistrySecurity import RegistrySecurity from AccessControl_parts.ResourceType import ResourceType from AccessControl_parts.SecurityInfos import SecurityInfos from AccessControl_parts.SemaphoreAccessRule import SemaphoreAccessRule from AccessControl_parts.SemaphoreAuditRule import SemaphoreAuditRule from AccessControl_parts.SemaphoreRights import SemaphoreRights from AccessControl_parts.SemaphoreSecurity import SemaphoreSecurity from AccessControl_parts.SystemAcl import SystemAcl
67
284
0.881475
576
5,695
8.602431
0.263889
0.223007
0.288597
0.013925
0.095661
0.063774
0.063774
0.063774
0.049647
0.027447
0
0.007133
0.089201
5,695
84
285
67.797619
0.94814
0.205443
0
0.042254
0
0
0
0
0
0
0
0
0
1
0.042254
true
0.042254
0.915493
0
0.957746
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
500e51da9044c9b9823024904f4587f3cb5ed658
151
py
Python
modules/imports/base.py
iT-Boyer/my-beancount-scripts
23bb903fd1a5f89aecc8e4a4619618b643a88a56
[ "MIT" ]
273
2019-09-16T01:55:18.000Z
2022-03-25T04:33:45.000Z
modules/imports/base.py
cjh0613/my-beancount-scripts
b66653ea122cf5e6e6b9e86fd10755d7d61e6a91
[ "MIT" ]
19
2019-11-25T13:26:19.000Z
2022-03-15T08:22:14.000Z
modules/imports/base.py
cjh0613/my-beancount-scripts
b66653ea122cf5e6e6b9e86fd10755d7d61e6a91
[ "MIT" ]
74
2019-09-15T07:32:45.000Z
2022-03-20T15:51:36.000Z
class Base(): def __init__(self, filename, byte_content, entries, option_map): raise 'Not implemented!' def parse(self): pass
21.571429
68
0.635762
18
151
5
0.888889
0
0
0
0
0
0
0
0
0
0
0
0.258278
151
6
69
25.166667
0.803571
0
0
0
0
0
0.10596
0
0
0
0
0
0
1
0.4
false
0.2
0
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
5021e2c8793e873c983c18fe628f65d6c3b876a9
1,523
py
Python
modules/trainer/criterion/rawgan.py
nobodykid/sinkhorngan-positive
811f697da4fe02599fc7f0e1bdf77c89d183aba4
[ "MIT" ]
null
null
null
modules/trainer/criterion/rawgan.py
nobodykid/sinkhorngan-positive
811f697da4fe02599fc7f0e1bdf77c89d183aba4
[ "MIT" ]
null
null
null
modules/trainer/criterion/rawgan.py
nobodykid/sinkhorngan-positive
811f697da4fe02599fc7f0e1bdf77c89d183aba4
[ "MIT" ]
null
null
null
import torch from base import BaseGanCriterion class Critic(BaseGanCriterion): def calculate(self, z, x, y): # Check D with real data critic_real = self.model["critic"](x) # Check D with fake data generated by G gen_x = self.model["generator"](z) critic_fake = self.model["critic"](gen_x) real_loss = critic_real - critic_fake.mean(0, keepdim=True) fake_loss = critic_fake - critic_real.mean(0, keepdim=True) loss = torch.mean(fake_loss) - torch.mean(real_loss) # Return dict for regularization parameters reg_params = dict( network=self.model['critic'], real_data=x, fake_data=gen_x, critic_real=critic_real, critic_fake=critic_fake, ) return loss, reg_params class Generator(BaseGanCriterion): def calculate(self, z, x, y): # Check D with real data critic_real = self.model["critic"](x) # Check D with fake data generated by G gen_x = self.model["generator"](z) critic_fake = self.model["critic"](gen_x) fake_loss = -torch.mean(critic_fake - critic_real.mean(0, keepdim=True)) loss = fake_loss # Return dict for regularization parameters reg_params = dict( network=self.model['generator'], real_data=x, fake_data=gen_x, critic_real=critic_real, critic_fake=critic_fake, ) return loss, reg_params
28.735849
80
0.606697
194
1,523
4.56701
0.195876
0.112867
0.08465
0.06772
0.792325
0.792325
0.792325
0.792325
0.792325
0.702032
0
0.002809
0.298752
1,523
52
81
29.288462
0.826779
0.134603
0
0.606061
0
0
0.043478
0
0
0
0
0
0
1
0.060606
false
0
0.060606
0
0.242424
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5023abf355a938c339d2a96765f8f5f2aff6a767
197
py
Python
TgBot/handlers/users/__init__.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
null
null
null
TgBot/handlers/users/__init__.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
21
2019-10-23T21:16:18.000Z
2021-08-02T21:43:46.000Z
TgBot/handlers/users/__init__.py
Na3aga/gmbot
c6fa37d4d61a9b023dc36197961706dbcd371e72
[ "MIT" ]
1
2019-10-25T23:01:25.000Z
2019-10-25T23:01:25.000Z
from .help import dp from .start import dp from .add import dp from .remove import dp from .last import dp from .watch import dp from .stop_watch import dp # from .echo import dp __all__ = ["dp"]
17.909091
26
0.741117
35
197
4.028571
0.342857
0.453901
0.595745
0.241135
0
0
0
0
0
0
0
0
0.187817
197
10
27
19.7
0.88125
0.101523
0
0
0
0
0.011429
0
0
0
0
0
0
1
0
false
0
0.875
0
0.875
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
1
0
0
5
5032619563a572c2253bb23b3f8fa47197cb5f19
157
py
Python
utility/Observer.py
randyhook/knynet
efa1977ed410208bed8b0a3fd4606bbb4cabd891
[ "MIT" ]
null
null
null
utility/Observer.py
randyhook/knynet
efa1977ed410208bed8b0a3fd4606bbb4cabd891
[ "MIT" ]
null
null
null
utility/Observer.py
randyhook/knynet
efa1977ed410208bed8b0a3fd4606bbb4cabd891
[ "MIT" ]
null
null
null
class Observer: def __init__(self, notifyFunc): self.notifyFunc = notifyFunc def notify(self, msg): self.notifyFunc(msg)
15.7
36
0.605096
16
157
5.6875
0.5
0.461538
0
0
0
0
0
0
0
0
0
0
0.305732
157
9
37
17.444444
0.834862
0
0
0
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
50500ff1d3ee73ddff1d48995d3a391f9a023cd7
71
py
Python
social_media_analysis/__init__.py
fsteinbauer/nldb16-sentiment-analysis
1faf80511f9d612f5e01af4ed35c05f8b5b3f2a2
[ "MIT" ]
2
2017-05-15T09:23:47.000Z
2021-02-15T16:49:54.000Z
social_media_analysis/__init__.py
fsteinbauer/nldb16-sentiment-analysis
1faf80511f9d612f5e01af4ed35c05f8b5b3f2a2
[ "MIT" ]
null
null
null
social_media_analysis/__init__.py
fsteinbauer/nldb16-sentiment-analysis
1faf80511f9d612f5e01af4ed35c05f8b5b3f2a2
[ "MIT" ]
null
null
null
import post_import import sentiment_analysis import plot import filter
14.2
25
0.887324
10
71
6.1
0.6
0
0
0
0
0
0
0
0
0
0
0
0.112676
71
4
26
17.75
0.968254
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
5057891c501f6fa8db7ec8f27deb30c5d1e8f954
5,500
py
Python
freezer_api/tests/unit/test_service.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
null
null
null
freezer_api/tests/unit/test_service.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
freezer_api/tests/unit/test_service.py
ctpegasus/freezer-api
b784327252ac6132a4d3b87c50e9a99c70d6c938
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
""" Copyright 2016 Hewlett-Packard 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. """ import falcon from mock import patch from freezer_api import service from freezer_api.tests.unit import common class TestService(common.FreezerBaseTestCase): def setUp(self): self.falcon_versions_hooks = ['0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.1.10'] self.falcon_versions_middleware = ['0.2.0', '0.3.0', '1.0.0'] super(TestService, self).setUp() @patch('freezer_api.cmd.api.v1') @patch('freezer_api.cmd.api.manager') @patch('freezer_api.cmd.api.falcon') def test_on_old_falcon_builds_v0(self, mock_falcon, mock_driver, mock_v1): """Test that falcon versions that should use old middleware syntax do so :param mock_falcon: The falcon import freezer-api will try to start up :param mock_driver: Database driver :param mock_v1: List of endpoints for v1 for the freezer API. """ mock_driver.get_db.return_value = None mock_v1.endpoints = [] # Iterate through all of the versions of falcon that should be using # the old before=,after= invocation and ensure that freezer-api isn't # trying to invoke it in the old style. for version_string in self.falcon_versions_hooks: version_attribute = '__version__' if hasattr( falcon, '__version__') else 'version' with patch('falcon.' + version_attribute, version_string): # Attempt to invoke a mocked version of falcon to see what args # it was called with service.freezer_appv1_factory(None) # Check kwargs to see if the correct arguments are being passed _, named_args = mock_falcon.API.call_args self.assertIn('before', named_args) self.assertIn('after', named_args) self.assertNotIn('middleware', named_args) @patch('freezer_api.cmd.api.v1') @patch('freezer_api.cmd.api.manager') @patch('freezer_api.cmd.api.falcon') def test_on_new_falcon_builds_v1(self, mock_falcon, mock_driver, mock_v1): """Test that falcon versions that should use new middleware syntax do so :param mock_falcon: The falcon import freezer-api will try to start up :param mock_driver: Database driver :param mock_v1: List of endpoints for v1 for the freezer API. """ mock_driver.get_db.return_value = None mock_v1.endpoints = [] # Iterate through all of the versions of falcon that should be using # the old before=,after= invocation and ensure that freezer-api isn't # trying to invoke it in the old style. for version_string in self.falcon_versions_middleware: version_attribute = '__version__' if hasattr( falcon, '__version__') else 'version' with patch('falcon.' + version_attribute, version_string): # Attempt to invoke a mocked version of falcon to see what args # it was called with service.freezer_appv1_factory(None) # Check kwargs to see if the correct arguments are being passed _, kwargs = mock_falcon.API.call_args named_args = kwargs.keys() self.assertNotIn('before', named_args) self.assertNotIn('after', named_args) self.assertIn('middleware', named_args) @patch('freezer_api.cmd.api.v2') @patch('freezer_api.cmd.api.manager') @patch('freezer_api.cmd.api.falcon') def test_on_old_falcon_builds_v2(self, mock_falcon, mock_driver, mock_v2): """Test that falcon versions that should use old middleware syntax do so :param mock_falcon: The falcon import freezer-api will try to start up :param mock_driver: Database driver :param mock_v1: List of endpoints for v1 for the freezer API. """ mock_driver.get_db.return_value = None mock_v2.endpoints = [] # Iterate through all of the versions of falcon that should be using # the old before=,after= invocation and ensure that freezer-api isn't # trying to invoke it in the old style. for version_string in self.falcon_versions_hooks: version_attribute = '__version__' if hasattr( falcon, '__version__') else 'version' with patch('falcon.' + version_attribute, version_string): # Attempt to invoke a mocked version of falcon to see what args # it was called with service.freezer_appv2_factory(None) # Check kwargs to see if the correct arguments are being passed _, named_args = mock_falcon.API.call_args self.assertNotIn('before', named_args) self.assertNotIn('after', named_args) self.assertIn('middleware', named_args)
42.307692
80
0.650727
736
5,500
4.6875
0.217391
0.057971
0.03913
0.046957
0.761159
0.755072
0.746957
0.746957
0.735362
0.735362
0
0.013503
0.272909
5,500
129
81
42.635659
0.849212
0.404364
0
0.607143
0
0
0.140424
0.072301
0
0
0
0
0.160714
1
0.071429
false
0
0.071429
0
0.160714
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
ac9393fa63104a60c2df9fdb3d53de61d1767c89
99
py
Python
pushbullet/__init__.py
boralyl/pushbullet.py
6e2cd4bada120fdcc694f16be4a6074daf6e9310
[ "MIT" ]
null
null
null
pushbullet/__init__.py
boralyl/pushbullet.py
6e2cd4bada120fdcc694f16be4a6074daf6e9310
[ "MIT" ]
null
null
null
pushbullet/__init__.py
boralyl/pushbullet.py
6e2cd4bada120fdcc694f16be4a6074daf6e9310
[ "MIT" ]
null
null
null
from .__version__ import __version__ from .pushbullet import PushBullet from .device import Device
24.75
36
0.848485
12
99
6.333333
0.416667
0
0
0
0
0
0
0
0
0
0
0
0.121212
99
3
37
33
0.873563
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
acb757ad95b6947265793ead38fa1ddb186fa209
24
py
Python
Basic Question Bank/a799/a799.py
michael21910/zerojudge
6f4375413619ad2f5e2bb492d6d6f2024921e0d7
[ "MIT" ]
2
2021-09-20T05:59:18.000Z
2021-12-04T05:22:22.000Z
Basic Question Bank/a799/a799.py
michael21910/zerojudge
6f4375413619ad2f5e2bb492d6d6f2024921e0d7
[ "MIT" ]
null
null
null
Basic Question Bank/a799/a799.py
michael21910/zerojudge
6f4375413619ad2f5e2bb492d6d6f2024921e0d7
[ "MIT" ]
null
null
null
print(abs(int(input())))
24
24
0.666667
4
24
4
1
0
0
0
0
0
0
0
0
0
0
0
0
24
1
24
24
0.666667
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
ace8c7356129c72faa3276a50a9746a9bef0fcdc
41
py
Python
tests/mturk/__init__.py
ericotjo001/neuron-descriptions
744fbf65c6538edd2fa423108eca7e2cd72f8b59
[ "MIT" ]
5
2022-02-22T21:58:10.000Z
2022-03-22T16:19:14.000Z
tests/mturk/__init__.py
ericotjo001/neuron-descriptions
744fbf65c6538edd2fa423108eca7e2cd72f8b59
[ "MIT" ]
3
2022-02-27T06:43:34.000Z
2022-03-18T08:30:30.000Z
tests/mturk/__init__.py
ericotjo001/neuron-descriptions
744fbf65c6538edd2fa423108eca7e2cd72f8b59
[ "MIT" ]
1
2022-02-27T05:18:30.000Z
2022-02-27T05:18:30.000Z
"""Unit tests for `src.mturk` module."""
20.5
40
0.634146
6
41
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.121951
41
1
41
41
0.722222
0.829268
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
4a0bfe02857f52f59f1ccf9f05b504bec591991e
16,093
py
Python
functions/Python/DSGaussEns.py
arnesahlberg/Deterministic_Sampling
b17c7d908af84adc9e4ba557a7988cb28058980c
[ "CC0-1.0" ]
null
null
null
functions/Python/DSGaussEns.py
arnesahlberg/Deterministic_Sampling
b17c7d908af84adc9e4ba557a7988cb28058980c
[ "CC0-1.0" ]
null
null
null
functions/Python/DSGaussEns.py
arnesahlberg/Deterministic_Sampling
b17c7d908af84adc9e4ba557a7988cb28058980c
[ "CC0-1.0" ]
null
null
null
from __future__ import division from numpy import * from scipy.linalg import * import sys import os def hadamard(n): k=0 while (n > 1 and fix_(n / 2) == n / 2): k += 1 n /= 2 if (n != 1): k -= 2 if (k < 0): n=- 1 if 1 == (n): h=array([[1]]) else: if 3 == (n): h=h12_() else: if 5 == (n): h=h20_() else: if 7 == (n): h=h28_() else: raise Exception('hadamard: n must be 2^k*p, for p = 1, 12, 20 or 28') h2=array([[1,1],[1,- 1]]) while (True): if (fix_(k / 2) != k / 2): h=kron(h2,h) k=fix_(k / 2) if (k == 0): break h2=kron(h2,h2) return h def h12_(nargout=1): tu=array([- 1,+ 1,- 1,+ 1,+ 1,+ 1,- 1,- 1,- 1,+ 1,- 1]) tl=array([- 1,- 1,+ 1,- 1,- 1,- 1,+ 1,+ 1,+ 1,- 1,+ 1]) h=ones([12,12]) h[1:h.shape[0],1:h.shape[1]]=toeplitz(tu,tl) return h def h20_(nargout=1): tu=array([+ 1,- 1,- 1,+ 1,+ 1,+ 1,+ 1,- 1,+ 1,- 1,+ 1,- 1,- 1,- 1,- 1,+ 1,+ 1,- 1,- 1]) tl=array([+ 1,- 1,- 1,+ 1,+ 1,- 1,- 1,- 1,- 1,+ 1,- 1,+ 1,- 1,+ 1,+ 1,+ 1,+ 1,- 1,- 1]) h=ones([20,20]) h[1:h.shape[0],1:h.shape[1]]=fliplr(toeplitz(tu,tl)) return h def h28_(nargout=1): h=array([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,- 1,- 1,- 1,- 1,- 1,- 1,- 1,1,- 1,- 1,- 1,1,1,1,1,1,- 1,1,1,1,1,- 1,1,- 1,1,- 1,1,- 1,1,- 1,- 1,- 1,- 1,1,- 1,1,1,- 1,- 1,1,- 1,- 1,- 1,- 1,1,1,- 1,1,- 1,1,1,1,1,1,1,- 1,- 1,1,- 1,- 1,- 1,1,1,1,1,1,- 1,1,1,1,1,1,- 1,- 1,- 1,- 1,- 1,- 1,- 1,1,- 1,1,1,- 1,- 1,- 1,1,- 1,- 1,1,1,- 1,1,1,1,1,1,- 1,- 1,- 1,1,1,1,- 1,1,- 1,1,- 1,- 1,- 1,1,- 1,- 1,- 1,- 1,1,- 1,1,1,- 1,- 1,1,1,- 1,- 1,- 1,1,1,- 1,- 1,- 1,1,1,1,1,1,1,- 1,1,- 1,- 1,- 1,- 1,- 1,1,- 1,1,- 1,- 1,- 1,1,- 1,1,1,1,- 1,1,1,1,1,- 1,1,- 1,1,- 1,1,1,- 1,1,1,1,1,- 1,- 1,1,- 1,- 1,- 1,- 1,1,1,1,- 1,- 1,- 1,- 1,1,- 1,- 1,1,1,1,1,- 1,1,- 1,- 1,1,1,1,1,1,- 1,- 1,- 1,- 1,- 1,1,- 1,- 1,- 1,1,- 1,1,1,1,1,- 1,- 1,1,- 1,1,1,1,1,1,- 1,- 1,- 1,- 1,- 1,- 1,1,1,1,- 1,1,- 1,- 1,- 1,- 1,- 1,1,1,1,- 1,- 1,1,1,1,1,- 1,1,1,1,- 1,- 1,- 1,- 1,1,- 1,1,1,- 1,- 1,- 1,1,1,- 1,1,1,- 1,- 1,1,1,- 1,- 1,1,1,- 1,- 1,1,1,1,- 1,- 1,- 1,1,1,- 1,1,- 1,- 1,1,1,- 1,1,1,- 1,- 1,1,- 1,- 1,1,1,- 1,1,- 1,- 1,- 1,1,1,1,- 1,- 1,1,1,1,- 1,- 1,1,1,- 1,- 1,- 1,- 1,- 1,1,1,1,1,- 1,- 1,1,1,1,1,1,1,- 1,- 1,1,1,- 1,- 1,- 1,- 1,- 1,- 1,1,1,- 1,1,- 1,- 1,1,1,- 1,1,- 1,- 1,1,1,1,- 1,1,1,- 1,1,- 1,1,- 1,1,1,- 1,1,- 1,- 1,1,- 1,- 1,1,- 1,1,- 1,1,- 1,- 1,1,- 1,1,1,- 1,1,- 1,- 1,1,- 1,1,1,1,- 1,- 1,- 1,- 1,- 1,- 1,1,1,- 1,1,- 1,1,1,1,1,- 1,- 1,1,1,- 1,1,- 1,1,1,1,1,1,- 1,- 1,1,- 1,1,- 1,- 1,- 1,- 1,1,- 1,- 1,- 1,- 1,1,- 1,1,1,1,1,- 1,1,- 1,1,- 1,1,- 1,1,- 1,1,1,1,- 1,1,- 1,- 1,1,- 1,1,1,- 1,1,- 1,- 1,- 1,- 1,1,- 1,1,- 1,1,- 1,1,1,1,1,1,- 1,1,- 1,- 1,1,- 1,1,- 1,- 1,1,1,- 1,- 1,- 1,- 1,1,- 1,1,1,1,- 1,1,- 1,1,1,- 1,1,- 1,- 1,1,1,1,- 1,1,- 1,- 1,- 1,- 1,- 1,1,1,- 1,1,- 1,- 1,1,1,- 1,- 1,1,- 1,1,- 1,- 1,- 1,- 1,1,1,1,- 1,1,- 1,1,1,- 1,- 1,- 1,- 1,- 1,1,1,1,1,1,1,1,- 1,- 1,1,1,1,- 1,- 1,1,1,- 1,- 1,- 1,1,1,- 1,- 1,1,1,- 1,- 1,- 1,1,1,- 1,- 1,1,1,- 1,- 1,1,1,- 1,1,- 1,- 1,1,- 1,- 1,- 1,1,- 1,1,1,1,- 1,1,- 1,- 1,1,- 1,- 1,1,1,1,- 1,1,- 1,- 1,1,1,- 1,1,1,- 1,1,- 1,1,- 1,- 1,1,- 1,1,- 1,1,- 1,1,- 1,- 1,- 1,1,1,1,1,1,- 1,1,1,- 1,- 1,1,1,- 1,1,- 1,- 1,1,- 1,- 1,1,1,1,- 1,1,- 1,- 1,- 1,1,- 1,- 1,1,- 1,1,1,- 1,1,1,- 1,- 1,- 1,1,- 1,1,1,1,- 1,1,1,1,- 1,- 1,1,- 1,- 1,1,- 1,- 1,- 1,1,1,1,- 1,- 1,1,- 1,- 1,1,- 1,1,- 1,1,1,- 1,1,- 1,1,- 1,1,- 1,- 1,1,1,- 1,- 1,- 1,1,1,- 1,1,1,- 1,- 1,1,1,- 1,- 1,- 1,1,- 1,- 1,1,1,- 1,1,1,1,- 1,- 1,1,1,- 1,- 1,1,- 1]) return h.reshape([len(h)/28, 28]) def fix_(a): return float(int(a)) def goodHadamardMatrixNumber(n): ps = [1,12,20,28] for p in ps: x = log2(1.0*n/p) if (ceil(x) == x and x >= 0): return True return False return mod(n,4) == 0 or mod(n,12) == 0 or mod(n,20) == 0 or mod(n,28) == 0 def BinaryEnsMatrix(n, shuffle=True): n = int(n) if (n == 1): return array([[1],[-1]]) N = n+1 # need this many hadamard rows while not goodHadamardMatrixNumber(N): N = N+1 H = hadamard(N) M = H[:, 1:n+1] if shuffle and n > 2: for i in range(0,columns(M)): if (random.random()<0.5): M[:,i] = -M[:,i] return M def ExtendedBinaryEnsMatrix(n, shuffle=True): n = int(n) if (n==1): return array([[1],[-1]]) N = n while not goodHadamardMatrixNumber(N): N = N+1 H = hadamard(N)[:,0:n] M = zeros([2*rows(H), n]) flH = - flipud(H) M[0:rows(H),:] = H[0:rows(H),:] M[rows(H):,:] = flH[0:rows(H),:] return M def swapRows(M,r1,r2): temp = M[r1,:].copy() M[r1,:] = M[r2,:] M[r2,:] = temp return M def swapColumns(M, c1, c2): temp = M[:,c1].copy() M[:,c1] = M[:,c2] M[:,c2] = temp return M def BinaryEnsembleStandard(n, shuffle=True): q = BinaryEnsMatrix(n, shuffle) w = ones([rows(q), 1]) / rows(q) return q,w def Gauss4momentEnsembleStandard(n, shuffle=True): if n == 1: return sqrt(3) * matrix([[1],[-1],[0]]) , matrix([[1.0/6, 1.0/6, 2.0/3]]).T elif n == 2: return sqrt(3) * matrix([[1, 0],[-1, 0],[0, 1],[0, -1],[0, 0]]) , matrix([[1.0/6, 1.0/6, 1/6, 1/6, 1.0/3]]).T d = floor(n/3.0) r = remainder(n,3.0) a = d b = d c = d if (r>0): a = a+1 r = r-1 if (r > 0): b = b+1 Ca = BinaryEnsMatrix(a, shuffle) Cb = BinaryEnsMatrix(b, shuffle) Cc = BinaryEnsMatrix(c, shuffle) q = zeros([rows(Ca) + rows(Cb) + rows(Cc) , columns(Ca) + columns(Cb) + columns(Cc)]) q[0:rows(Ca), 0:columns(Ca)] = Ca * sqrt(3) q[rows(Ca):(rows(Ca)+rows(Cb)), columns(Ca):(columns(Ca) + columns(Cb))] = Cb * sqrt(3) q[(rows(Ca)+rows(Cb)):(rows(Ca)+rows(Cb)+rows(Cc)), (columns(Ca)+columns(Cb)):(columns(Ca)+columns(Cb)+columns(Cc))] = Cc * sqrt(3) w = zeros([rows(q), 1]) k = 0 n1 = rows(Ca) for i in range(0,n1): w[k] = 1.0 / (3*n1) k = k+1 n2 = rows(Cb) for i in range(0,n2): w[k] = 1.0 / (3*n2) k = k+1 n3 = rows(Cc) for i in range(0,n3): w[k] = 1.0/ (3*n3) k = k+1 if shuffle and n > 2: N = len(q[:,0]) for i in range(0,N): r1 = random.randint(N) r2 = random.randint(N) while (r1 == r2): r2 = random.randint(N) q = swapRows(q, r1, r2) w = swapRows(w, r1, r2) n = len(q[0,:]) for i in range(0,n): r1 = random.randint(n) r2 = random.randint(n) while (r1 == r2): r2 = random.randint(n) q = swapColumns(q, r1, r2) return q, w def BinaryEnsemble(mus, sigs, shuffle=True): n = len(mus) base, w = BinaryEnsembleStandard(n, shuffle) M = zeros_like(base) S = zeros([n,n]) for i in range(0,n): M[:,i] = mus[i] S[i,i] = sigs[i] q = array(matrix(base) * S + M ) return q , w def Gauss4momentEnsemble(mus, sigs,style='bdg', shuffle=False): n = len(mus) if (style=='hm'): base, w = Gauss4momentEnsembleHeavyMiddleStandard(n) elif (style=='bdg'): base, w = Gauss4momentEnsembleStandard(n, shuffle) else: print 'Bad style: ' + str(style) return M = zeros_like(base) S = zeros([n,n]) for i in range(0,n): M[:,i] = mus[i] S[i,i] = sigs[i] q = array(matrix(base) * S + M ) return q , w def Gauss4momentEnsembleFull(mus, sigs): n = len(mus) if (n==1): return Gauss4momentEnsemble(mus, sigs) q0,w0 = Gauss4momentEnsembleStandard(1) q0 = array(q0) q,w = combineEnsembles(q0,w0,q0,w0) for i in range(2,n): q,w = combineEnsembles(q,w,q0,w0) M = zeros_like(q) S = zeros([n,n]) for i in range(0,n): M[:,i] = mus[i] S[i,i] = sigs[i] q = array(matrix(q) * S + M ) return q , w def Gauss4momentSimple(mus, sigs): n = len(mus) q0,w0 = Gauss4momentEnsembleStandard(1) N = 2*n+1 q = zeros([N,n]) w = zeros([N,1]) for i in range(n): q[2*i,i] = -sqrt(3) q[2*i+1,i] = sqrt(3) w[2*i] = 1.0/6 w[2*i+1] = 1.0/6 w[-1] = 1.0 - sum(w) M = zeros_like(q) S = zeros([n,n]) for i in range(0,n): M[:,i] = mus[i] S[i,i] = sigs[i] q = array(matrix(q) * S + M ) return q , w def Gauss4momentEnsembleHeavyMiddleStandard(n): if n==1: return Gauss4momentEnsembleStandard(n) base = BinaryEnsMatrix(n) q = zeros([rows(base)+1, n]) N = rows(q) w = zeros([N,1]) q[0:N-1, 0:n] = base[0:N-1,0:n] * sqrt(3) w[0:N-1] = 2.0/6 / (N-1) w[-1] = 2.0/3 return q , w def combineEnsembles(q1, w1, q2, w2): q = zeros([rows(q1)*rows(q2) , columns(q1)+columns(q2)]) N = rows(q) ; n = columns(q) w = zeros([N,1]) k = 0 for i in range(rows(q1)): for j in range(rows(q2)): q[k,0:n] = append(q1[i,:],q2[j,:])[0:n] w[k] = w1[i]*w2[j] k = k+1 return q,w def Gauss6momentEnsemble(mus, sigs,shuffle=False, extended=False): n = len(mus) base, w = Gauss6momentEnsembleStandard(n, shuffle, extended) M = zeros_like(base) S = zeros([n,n]) for i in range(0,n): M[:,i] = mus[i] S[i,i] = sigs[i] q = array(matrix(base) * S + M ) return q , w def Gauss8momentEnsemble(mus, sigs, shuffle=True, extended=False): n = len(mus) base, w = Gauss8momentEnsembleStandard(n, shuffle, extended) M = zeros_like(base) S = zeros([n,n]) for i in range(0,n): M[:,i] = mus[i] S[i,i] = sigs[i] q = array(matrix(base) * S + M ) return q , w def Gauss6momentSimple(mus, sigs): n = len(mus) q0,w0 = Gauss6momentEnsembleStandard(1) qpm = q0[0:4] ; wpm = w0[0:4] N = n * 4 + 1 q = zeros([N,n]) ; w = zeros([N,1]) ; for i in range(0,n): i0 = i * 4 i1 = i * 4 + 4 k = 0; for j in range(i0, i1): q[j , i] = qpm[k] w[j , 0] = wpm[k] k = k+1; w[-1] = 1 - sum(w) M = zeros_like(q) S = zeros([n,n]) for i in range(0,n): M[:,i] = mus[i] S[i,i] = sigs[i] q = array(matrix(q) * S + M ) return q , w def Gauss8momentSimple(mus, sigs): n = len(mus) q0 = array(matrix(array([-3., -2., -sqrt(3./2), sqrt(3./2), 2., 3.,0])).T) w0 = array(matrix(array([1./150, 3./100., 16./75, 16./75, 3./100, 1./150,1./2])).T) qpm = q0[0:6] ; wpm = w0[0:6] N = n * 6 + 1 q = zeros([N,n]) ; w = zeros([N,1]) ; for i in range(0,n): i0 = i * 6 i1 = i * 6 + 6 k = 0; for j in range(i0, i1): q[j , i] = qpm[k] w[j , 0] = wpm[k] k = k+1; w[-1] = 1 - sum(w) M = zeros_like(q) S = zeros([n,n]) for i in range(0,n): M[:,i] = mus[i] S[i,i] = sigs[i] q = array(matrix(q) * S + M ) return q , w def Gauss6momentEnsembleStandard(n, shuffle=True, extended=False): if n == 1: q = array([[3],[sqrt(2)],[0],[-sqrt(2)],[-3]]) w = array([[1.0/126],[3.0/14],[5.0/9],[3.0/14],[1.0/126]]) return q,w part1 = ceil(n/2) part2 = floor(n/2) if extended: C1 = ExtendedBinaryEnsMatrix(part1) C2 = ExtendedBinaryEnsMatrix(part2) else : C1 = BinaryEnsMatrix(part1) C2 = BinaryEnsMatrix(part2) pad1c = len(C1[0,:]) pad2c = len(C2[0,:]) pad1r = len(C1[:,0]) pad2r = len(C2[:,0]) f2 = 3.0 f1 = sqrt(2) w2 = 1.0 / 126 w1 = 3.0/14 w0 = 2.0/9 q = zeros([2 * pad1r + 2 * pad2r + 1, pad1c + pad2c]) q[0:pad1r, 0:pad1c] = f2 * C1 q[pad1r:pad1r + pad2r, pad1c:pad1c + pad2c] = f2 * C2 q[pad1r + pad2r:pad1r + pad2r + pad1r, 0:pad1c] = f1 * C1 q[pad1r + pad2r + pad1r:pad1r + pad2r + pad1r + pad2r, pad1c:pad1c + pad2c] = f1 * C2 N = len(q[:,0]) w = zeros([N,1]) k = 0 for i in range(0,2*pad1r): w[k,0] = w2 / pad1r * 2 k = k+1 for i in range(0,2*pad2r): w[k,0] = w1 / pad2r * 2 k = k+1 w[-1,0] = w0/2 if shuffle and n > 2: N = len(q[:,0]) for i in range(0,N): r1 = random.randint(N) r2 = random.randint(N) while (r1 == r2): r2 = random.randint(N) q = swapRows(q, r1, r2) w = swapRows(w, r1, r2) n = len(q[0,:]) for i in range(0,n): r1 = random.randint(n) r2 = random.randint(n) while (r1 == r2): r2 = random.randint(n) q = swapColumns(q, r1, r2) return q,w def Gauss8momentEnsembleStandard(n, shuffle=True, extended=False): if n == 1: q = array(matrix(array([-3., -2., -sqrt(3./2), sqrt(3./2), 2., 3.,0])).T) w = array(matrix(array([1./150, 3./100., 16./75, 16./75, 3./100, 1./150,1./2])).T) return q,w part1 = ceil(n/2) part2 = floor(n/2) if extended: C1 = ExtendedBinaryEnsMatrix(part1) C2 = ExtendedBinaryEnsMatrix(part2) else : C1 = BinaryEnsMatrix(part1) C2 = BinaryEnsMatrix(part2) pad1c = len(C1[0,:]) pad2c = len(C2[0,:]) pad1r = len(C1[:,0]) pad2r = len(C2[:,0]) f3 = 3.0 f2 = 2.0 f1 = sqrt(3./2) w3 = 1./150 w2 = 3.0 / 100 w1 = 16.0/75 q = zeros([3 * pad1r + 3 * pad2r, pad1c + pad2c]) q[0:pad1r, 0:pad1c] = f3 * C1 q[pad1r:pad1r + pad1r, 0:pad1c] = f2 * C1 q[pad1r + pad1r:pad1r + pad1r + pad1r, 0:pad1c] = f1 * C1 sof = pad1r + pad1r + pad1r q[sof:sof+pad2r, pad1c:pad1c + pad2c] = f3 * C2 sof += pad2r q[sof:sof+pad2r, pad1c:pad1c + pad2c] = f2 * C2 sof += pad2r q[sof:sof+pad2r, pad1c:pad1c + pad2c] = f1 * C2 N = len(q[:,0]) w = zeros([N,1]) k = 0 for i in range(0,pad1r): w[k,0] = w3 / pad1r * 2 k = k+1 for i in range(0,pad1r): w[k,0] = w2 / pad1r * 2 k = k+1 for i in range(0,pad1r): w[k,0] = w1 / pad1r * 2 k = k+1 for i in range(0,pad2r): w[k,0] = w3 / pad2r * 2 k = k+1 for i in range(0,pad2r): w[k,0] = w2 / pad2r * 2 k = k+1 for i in range(0,pad2r): w[k,0] = w1 / pad2r * 2 k = k+1 if shuffle and n > 2: N = len(q[:,0]) for i in range(0,N): r1 = random.randint(N) r2 = random.randint(N) while (r1 == r2): r2 = random.randint(N) q = swapRows(q, r1, r2) w = swapRows(w, r1, r2) n = len(q[0,:]) for i in range(0,n): r1 = random.randint(n) r2 = random.randint(n) while (r1 == r2): r2 = random.randint(n) q = swapColumns(q, r1, r2) return q,w def rows(A): return len(A[:,0]) def columns(A): return len(A[0,:]) def weightedMean(q,w): return array(w.T * matrix(q)) def weightedMoment(q,w,n): if (n == 1): return weightedMean(q,w) else: return array(w.T * matrix((q - weightedMean(q,w))**n)) def weightedCovariance(q,w): N = rows(q) n = columns(q) dq = q - kron(ones([N,1]),weightedMean(q,w)) return matmul(dq.T , multiply(dq , kron(w,ones([1,n])))) def weightedMoments(q,w,num): moms = zeros([num, columns(array(q))]) for i in range(1,num+1): a = weightedMoment(q,w,i) moms[i-1, :] = a[0,:] return moms def print4momEns(n, shuffle=True): f = open("gaussenstemp", "w") fw = open("gaussenstempW", "w") q,w = Gauss4momentEnsembleStandard(n, shuffle) f.write(str(rows(q)) + "\n" + str(columns(q)) + "\n") fw.write(str(rows(w)) + "\n" + str(columns(w)) + "\n") for i in range(0,rows(q)): for j in range(0,columns(q)): f.write(str(q[i,j]) + " ") f.write("\n") fw.write(str(w[i,0]) + "\n") f.close() fw.close() if __name__ == "__main__": print 'DSGaussEns'
28.944245
2,338
0.460076
3,077
16,093
2.39649
0.060448
0.230269
0.340114
0.450231
0.599539
0.564687
0.528072
0.508001
0.497423
0.491728
0
0.144682
0.299509
16,093
555
2,339
28.996396
0.509447
0.00174
0
0.498925
0
0.002151
0.008093
0
0
0
0
0
0
0
null
null
0
0.010753
null
null
0.006452
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
c5a2cd7e2ca76d115cdbbdfb13062b2c69e4b44d
116
py
Python
TOPdeskPy/__init__.py
TwinkelToe/TOPdeskPy
a8952019711a79538199d1a4f88faa0952eabff0
[ "MIT" ]
2
2020-07-23T15:15:03.000Z
2022-02-16T20:06:20.000Z
TOPdeskPy/__init__.py
TwinkelToe/TOPdeskPy
a8952019711a79538199d1a4f88faa0952eabff0
[ "MIT" ]
null
null
null
TOPdeskPy/__init__.py
TwinkelToe/TOPdeskPy
a8952019711a79538199d1a4f88faa0952eabff0
[ "MIT" ]
null
null
null
# from .incident import incident # from .person import person # from .utils import utils from .base import connect
19.333333
32
0.767241
16
116
5.5625
0.4375
0
0
0
0
0
0
0
0
0
0
0
0.172414
116
5
33
23.2
0.927083
0.706897
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c5a5e1f276b592beb34393e8b336ad39dbcfd5a6
110
py
Python
rapid_ocr/ch_ppocr_v2_cls/__init__.py
SWHL/RapidVideoOCR
50c13981ac0d92657ea44cbfcd954ea36ba2cf24
[ "Apache-2.0" ]
null
null
null
rapid_ocr/ch_ppocr_v2_cls/__init__.py
SWHL/RapidVideoOCR
50c13981ac0d92657ea44cbfcd954ea36ba2cf24
[ "Apache-2.0" ]
null
null
null
rapid_ocr/ch_ppocr_v2_cls/__init__.py
SWHL/RapidVideoOCR
50c13981ac0d92657ea44cbfcd954ea36ba2cf24
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # @Author: SWHL # @Contact: liekkaskono@163.com from .text_cls import TextClassifier
27.5
36
0.709091
14
110
5.5
1
0
0
0
0
0
0
0
0
0
0
0.041667
0.127273
110
4
36
27.5
0.760417
0.609091
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c5b5f8eccf9e26fa7d259659b2c38d8bbc733de4
50
py
Python
src/confocal_microscopy/utils/__init__.py
yngvem/zebrafish-bloodflow
632186ed94c160795b3306d4d7360d88e369054a
[ "MIT" ]
1
2020-10-27T17:30:49.000Z
2020-10-27T17:30:49.000Z
src/confocal_microscopy/utils/__init__.py
yngvem/confocal-microscopy
632186ed94c160795b3306d4d7360d88e369054a
[ "MIT" ]
null
null
null
src/confocal_microscopy/utils/__init__.py
yngvem/confocal-microscopy
632186ed94c160795b3306d4d7360d88e369054a
[ "MIT" ]
1
2021-11-18T13:49:28.000Z
2021-11-18T13:49:28.000Z
from .pipeline import * from .slice_tools import *
25
26
0.78
7
50
5.428571
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.14
50
2
26
25
0.883721
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
c5d9032dd2bf9f725f32930b0b2efabcd602d05e
3,014
py
Python
setup.py
greenape/pandas_to_markdown
f05c84064195ffab86edfa6caeb34de0b19ce9fd
[ "MIT" ]
1
2021-05-10T12:08:04.000Z
2021-05-10T12:08:04.000Z
setup.py
greenape/pandas_to_markdown
f05c84064195ffab86edfa6caeb34de0b19ce9fd
[ "MIT" ]
19
2019-02-11T06:52:20.000Z
2021-07-14T05:20:57.000Z
setup.py
greenape/nbconvert_utils
f05c84064195ffab86edfa6caeb34de0b19ce9fd
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ """ import json from setuptools import setup, find_packages import versioneer from setuptools.command.install import install from setuptools.command.develop import develop import sys import nbconvert from pathlib import Path class CustomDevelopCommand(develop): """Customized setuptools install command - prints a friendly greeting.""" def run(self): develop.run(self) python_path = Path(sys.executable).absolute().parent / "../etc/jupyter" python_path.mkdir(parents=True, exist_ok=True) print(f"Writing nbconvert config to {python_path / 'jupyter_nbconvert_config.json'}") with open(python_path / "jupyter_nbconvert_config.json", "w+") as f: try: js = json.load(f) except json.decoder.JSONDecodeError: js = {} executor_config = js.get('Exporter', {}) existing = dict.fromkeys(executor_config.get('default_preprocessors', []), "") for prep in nbconvert.exporter.Exporter.default_preprocessors.default_args[0]: if prep == "nbconvert.preprocessors.ExecutePreprocessor": existing["nbconvert_utils.ExecuteWithPreamble"] = "" existing["nbconvert_utils.ExecuteWithIPythonArgs"] = "" existing[prep] = "" js['Exporter'] = executor_config js['Exporter']['default_preprocessors'] = list(existing.keys()) json.dump(js, f) class CustomInstallCommand(install): """Customized setuptools install command - prints a friendly greeting.""" def run(self): install.run(self) python_path = Path(sys.executable).absolute().parent / "../etc/jupyter" python_path.mkdir(parents=True, exist_ok=True) print(f"Writing nbconvert config to {python_path / 'jupyter_nbconvert_config.json'}") with open(python_path / "jupyter_nbconvert_config.json", "w+") as f: try: js = json.load(f) except json.decoder.JSONDecodeError: js = {} executor_config = js.get('Exporter', {}) existing = dict.fromkeys(executor_config.get('default_preprocessors', []), "") for prep in nbconvert.exporter.Exporter.default_preprocessors.default_args[0]: if prep == "nbconvert.preprocessors.ExecutePreprocessor": existing["nbconvert_utils.ExecuteWithPreamble"] = "" existing["nbconvert_utils.ExecuteWithIPythonArgs"] = "" existing[prep] = "" js['Exporter'] = executor_config js['Exporter']['default_preprocessors'] = list(existing.keys()) json.dump(js, f) def get_cmd(): d = versioneer.get_cmdclass() d['install'] = CustomInstallCommand d['develop'] = CustomDevelopCommand return d setup( version=versioneer.get_version(), cmdclass=get_cmd(), name="nbconvert_utils", packages=find_packages(exclude=["contrib", "docs", "tests"]), install_requires=["nbconvert"], setup_requires=["nbconvert"], python_requires=">3.6.0", )
36.313253
93
0.662906
322
3,014
6.062112
0.282609
0.040984
0.034836
0.053279
0.716189
0.716189
0.716189
0.716189
0.716189
0.716189
0
0.002507
0.206038
3,014
82
94
36.756098
0.813205
0.057731
0
0.59375
0
0
0.238652
0.155319
0
0
0
0
0
1
0.046875
false
0
0.125
0
0.21875
0.03125
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
a83dac6b7c28e6fc501ce054948eaf0a9d074070
58
py
Python
BiblioPixelAnimations/simple/Fill.py
jessicaengel451/BiblioPixelAnimations
37570003ff3460f23cd33bd30625611fdc6e9228
[ "MIT" ]
36
2015-01-19T00:20:49.000Z
2021-12-05T13:45:27.000Z
BiblioPixelAnimations/simple/Fill.py
jessicaengel451/BiblioPixelAnimations
37570003ff3460f23cd33bd30625611fdc6e9228
[ "MIT" ]
29
2015-04-28T21:14:08.000Z
2019-04-10T15:33:47.000Z
BiblioPixelAnimations/simple/Fill.py
jessicaengel451/BiblioPixelAnimations
37570003ff3460f23cd33bd30625611fdc6e9228
[ "MIT" ]
32
2015-01-02T13:20:33.000Z
2021-02-08T03:15:59.000Z
from bibliopixel.animation.fill import Fill # noqa: F401
29
57
0.793103
8
58
5.75
0.875
0
0
0
0
0
0
0
0
0
0
0.06
0.137931
58
1
58
58
0.86
0.172414
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
a844217bdd231365ad4ee906a21617537d431f75
60
py
Python
puft/tests/blog/src/app/chat/chat_sv.py
ryzhovalex/puft
a40fd5b08ce101153d3497bf396389a1bd124d83
[ "MIT" ]
null
null
null
puft/tests/blog/src/app/chat/chat_sv.py
ryzhovalex/puft
a40fd5b08ce101153d3497bf396389a1bd124d83
[ "MIT" ]
1
2022-03-21T13:34:39.000Z
2022-03-29T10:23:48.000Z
puft/tests/blog/src/app/chat/chat_sv.py
ryzhovalex/puft
a40fd5b08ce101153d3497bf396389a1bd124d83
[ "MIT" ]
null
null
null
from puft import Sv, log, Sock class ChatSv(Sv): pass
10
30
0.666667
10
60
4
0.9
0
0
0
0
0
0
0
0
0
0
0
0.25
60
5
31
12
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
0
0
0
5
a88c80d1b3b3e2e9f77c081f766744c5ca92dc76
239
py
Python
Python/Regex And Parsing/Validating_Postal_Codes.py
abivilion/Hackerank-Solutions-
e195fb1fce1588171cf12d99d38da32ca5c8276a
[ "MIT" ]
null
null
null
Python/Regex And Parsing/Validating_Postal_Codes.py
abivilion/Hackerank-Solutions-
e195fb1fce1588171cf12d99d38da32ca5c8276a
[ "MIT" ]
null
null
null
Python/Regex And Parsing/Validating_Postal_Codes.py
abivilion/Hackerank-Solutions-
e195fb1fce1588171cf12d99d38da32ca5c8276a
[ "MIT" ]
null
null
null
regex_integer_in_range = r"_________" # Do not delete 'r'. regex_alternating_repetitive_digit_pair = r"_________" # Do not delete 'r'. regex_integer_in_range = r"^[0-9]\d{5}$" regex_alternating_repetitive_digit_pair= r"(?=(\d)\d\1)"
39.833333
76
0.732218
37
239
3.864865
0.459459
0.167832
0.195804
0.265734
0.951049
0.713287
0
0
0
0
0
0.018868
0.112971
239
5
77
47.8
0.65566
0.154812
0
0
0
0
0.216495
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
a892b2d4f5b244d57110915954cf466d02a34618
2,534
py
Python
cogs/Errors.py
Connerwolf/Winter-Discord-V.2
7f11a3069bdfcd28152724a853833f35388316ad
[ "MIT" ]
2
2021-02-16T12:55:50.000Z
2022-01-12T06:32:35.000Z
cogs/Errors.py
Connerwolf/Winter-Discord-V.2
7f11a3069bdfcd28152724a853833f35388316ad
[ "MIT" ]
null
null
null
cogs/Errors.py
Connerwolf/Winter-Discord-V.2
7f11a3069bdfcd28152724a853833f35388316ad
[ "MIT" ]
null
null
null
import discord from discord.ext import commands class Error(commands.Cog): def __init__(self, client): self.client = client @commands.Cog.listener() async def on_command_error(self, ctx, error): if isinstance(error, commands.MissingRequiredArgument): embed = discord.Embed( title = ":closed_book: Syntax Error", color = discord.Color.red() ) embed.add_field(name=":pushpin: Issue", value="A required argument was missing", inline=False) embed.set_thumbnail(url="https://miro.medium.com/max/1600/1*e_Loq49BI4WmN7o9ItTADg.gif") embed.set_footer(icon_url=ctx.author.avatar_url, text=f"Requested by {ctx.author.name}") await ctx.send(embed=embed) if isinstance(error, commands.BadArgument): embed = discord.Embed( title = ":closed_book: Syntax Error", color = discord.Color.red() ) embed.add_field(name=":pushpin: Issue", value="A bad required argument was provided", inline=False) embed.set_thumbnail(url="https://miro.medium.com/max/1600/1*e_Loq49BI4WmN7o9ItTADg.gif") embed.set_footer(icon_url=ctx.author.avatar_url, text=f"Requested by {ctx.author.name}") await ctx.send(embed=embed) if isinstance(error, commands.NotOwner): embed = discord.Embed( title = ":closed_book: Permssion Error", color = discord.Color.red() ) embed.add_field(name=":pushpin: Issue", value="Sorry, you are not the bot owner", inline=False) embed.set_thumbnail(url="https://miro.medium.com/max/1600/1*e_Loq49BI4WmN7o9ItTADg.gif") embed.set_footer(icon_url=ctx.author.avatar_url, text=f"Requested by {ctx.author.name}") await ctx.send(embed=embed) if isinstance(error, commands.MissingPermissions): embed = discord.Embed( title = ":closed_book: Syntax Error", color = discord.Color.red() ) embed.add_field(name=":pushpin: Issue", value="You are missing required permissions for this command", inline=False) embed.set_thumbnail(url="https://miro.medium.com/max/1600/1*e_Loq49BI4WmN7o9ItTADg.gif") embed.set_footer(icon_url=ctx.author.avatar_url, text=f"Requested by {ctx.author.name}") await ctx.send(embed=embed) def setup(client): client.add_cog(Error(client))
49.686275
129
0.625099
307
2,534
5.045603
0.260586
0.041317
0.043899
0.064558
0.737895
0.737895
0.717237
0.717237
0.717237
0.717237
0
0.021209
0.255722
2,534
51
130
49.686275
0.800106
0
0
0.511111
0
0
0.274849
0
0
0
0
0
0
1
0.044444
false
0
0.044444
0
0.111111
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
7641c55eb81538eec2e4b3a1e1423e4e282dbd28
2,194
py
Python
tests/test_linter.py
jacksmith15/jsonschema-lint
40332b54490e8c3e35c4814337a98b924f9e5e4a
[ "MIT" ]
3
2021-11-16T11:28:17.000Z
2021-12-21T18:30:57.000Z
tests/test_linter.py
jacksmith15/jsonschema-lint
40332b54490e8c3e35c4814337a98b924f9e5e4a
[ "MIT" ]
null
null
null
tests/test_linter.py
jacksmith15/jsonschema-lint
40332b54490e8c3e35c4814337a98b924f9e5e4a
[ "MIT" ]
null
null
null
from typing import List from jsonschema_lint.json_ast.location import Location, Position from jsonschema_lint.linter import Error, lint def test_lint_simple(): schema = { "type": "array", "items": {"type": "number", "enum": [1, 2, 3]}, "minItems": 3, } document = '["spam", 2]' errors: List[Error] = lint(schema, document) assert errors == [ Error( location=Location(start=Position(line=1, column=2, index=1), end=Position(line=1, column=8, index=7)), message="'spam' is not of type 'number'", ), Error( location=Location(start=Position(line=1, column=2, index=1), end=Position(line=1, column=8, index=7)), message="'spam' is not one of [1, 2, 3]", ), Error( location=Location(start=Position(line=1, column=1, index=0), end=Position(line=1, column=12, index=11)), message="['spam', 2] is too short", ), ] def test_lint_ast_error(): schema = {} document = '{"foo": "bar"' errors: List[Error] = lint(schema, document) assert errors == [ Error( location=Location(start=Position(line=1, column=1, index=0), end=Position(line=1, column=14, index=13)), message="Unclosed object at line 1, column 1", ) ] def test_lint_yaml(): schema = { "type": "array", "items": {"type": "number", "enum": [1, 2, 3]}, "minItems": 3, } document = """--- - spam - 2 """ errors: List[Error] = lint(schema, document, mode="yaml") assert errors == [ Error( location=Location(start=Position(line=2, column=3, index=6), end=Position(line=2, column=7, index=10)), message="'spam' is not of type 'number'", ), Error( location=Location(start=Position(line=2, column=3, index=6), end=Position(line=2, column=7, index=10)), message="'spam' is not one of [1, 2, 3]", ), Error( location=Location(start=Position(line=2, column=1, index=4), end=Position(line=4, column=1, index=15)), message="['spam', 2] is too short", ), ]
30.472222
116
0.552871
278
2,194
4.327338
0.21223
0.139651
0.082294
0.126351
0.764755
0.764755
0.72818
0.72818
0.712386
0.712386
0
0.043506
0.277119
2,194
71
117
30.901408
0.715006
0
0
0.6
0
0
0.144941
0
0
0
0
0
0.05
1
0.05
false
0
0.05
0
0.1
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
7674a61dfb475aa573d3e0e3772936042e0633b7
203
py
Python
example/lib.py
jdn5126/CoverageChecker
66c5ab140b37e1d96708dc4727c774680e758f1f
[ "MIT" ]
null
null
null
example/lib.py
jdn5126/CoverageChecker
66c5ab140b37e1d96708dc4727c774680e758f1f
[ "MIT" ]
1
2020-04-24T22:39:47.000Z
2020-04-24T22:39:47.000Z
example/lib.py
jdn5126/CoverageChecker
66c5ab140b37e1d96708dc4727c774680e758f1f
[ "MIT" ]
2
2020-05-02T23:04:04.000Z
2020-12-01T14:16:06.000Z
'''Example class library.''' class Foo(object): def __init__(self, x, y): self.x = x self.y = y def getX(self): return self.x def getY(self): return self.y
15.615385
29
0.522167
29
203
3.517241
0.448276
0.147059
0.27451
0
0
0
0
0
0
0
0
0
0.344828
203
12
30
16.916667
0.766917
0.108374
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0
0.25
0.75
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
767e5e128a62f0f2890ee03d5237b043747b8947
3,487
py
Python
TestCases/test_TcpHandler.py
vinaysharmaaddy143/scimsframework
8f4cd1be6b95ee31cde84cfd773b80a48efad5f2
[ "MIT" ]
null
null
null
TestCases/test_TcpHandler.py
vinaysharmaaddy143/scimsframework
8f4cd1be6b95ee31cde84cfd773b80a48efad5f2
[ "MIT" ]
null
null
null
TestCases/test_TcpHandler.py
vinaysharmaaddy143/scimsframework
8f4cd1be6b95ee31cde84cfd773b80a48efad5f2
[ "MIT" ]
null
null
null
from typing import List from Framework.TcpHandler import TcpHandler import re from Framework.LogHandler import * tcp_handler = TcpHandler() def test_send_valid_number(): receive = tcp_handler.send_value_to_tcp(base_url="127.0.0.1", port=9000, value=b'8', timeout=5.0) receive = tcp_handler.split_receive_value(receive) assert receive[0] == "%" assert receive[-1] == "&" assert float("".join(receive[1:-1])) == 64.0 def test_send_valid_large_number(): receive = tcp_handler.send_value_to_tcp(base_url="127.0.0.1", port=9000, value=b'15542', timeout=5.0) receive = tcp_handler.split_receive_value(receive) assert receive[0] == "%", "% is not in Response" assert receive[-1] == "&", "& is not in Response" assert float("".join(receive[1:-1])) == pow(15542, 2), "Response not contain the power of 15542" print_info_log(f"Response: {float(''.join(receive[1:-1]))}") def test_send_double_number(): receive = tcp_handler.send_value_to_tcp(base_url="127.0.0.1", port=9000, value=b'2.2', timeout=5.0) receive = tcp_handler.split_receive_value(receive) assert receive[0] == "%", "% is not in Response" assert receive[-1] == "&", "& is not in Response" assert float("".join(receive[1:-1])) != pow(2.2, 2), "Invalid Response, Microservice only take number not double" print_info_log(f"Response: {float(''.join(receive[1:-1]))}") def test_send_string_value(): receive = tcp_handler.send_value_to_tcp(base_url="127.0.0.1", port=9000, value="10".encode(), timeout=5.0) receive = tcp_handler.split_receive_value(receive) assert receive[0] == "%", "% is not in Response" assert receive[-1] == "&", "& is not in Response" assert float(''.join(receive[1:-1])) != pow(10, 2), "Invalid Response," \ " Microservice only take number not string value" print_info_log(f"Response: {float(''.join(receive[1:-1]))}") def test_send_negative_value(): receive = tcp_handler.send_value_to_tcp(base_url="127.0.0.1", port=9000, value=b'-18', timeout=5.0) receive = tcp_handler.split_receive_value(receive) assert receive[0] == "%", "% is not in Response" assert receive[-1] == "&", "& is not in Response" assert float(''.join(receive[1:-1])) == pow(-18, 2), "Invalid Response, Microservice should send values as power of -18" print_info_log(f"Response: {float(''.join(receive[1:-1]))}") def test_send_zero_value(): receive = tcp_handler.send_value_to_tcp(base_url="127.0.0.1", port=9000, value=b'0', timeout=5.0) receive = tcp_handler.split_receive_value(receive) assert receive[0] == "%", "% is not in Response" assert receive[-1] == "&", "& is not in Response" assert float(''.join(receive[1:-1])) == pow(0, 2), "Invalid Response, Microservice should send values as power of 0" print_info_log(f"Response: {float(''.join(receive[1:-1]))}") def test_invalidate_response(): receive = tcp_handler.send_value_to_tcp(base_url="127.0.0.1", port=9000, value=b'', timeout=10.0) assert receive is None, "Invalid response, Microservice returning value for empty request" def performance_test(): status = tcp_handler.perform_load_on_tcp(base_url="127.0.0.1", port=9000, value=b'10', num_req=500000, timeout=10.0) assert status, "Some requests not respond properly" tcp_handler.close_socket_connection()
45.285714
120
0.657872
517
3,487
4.253385
0.16441
0.061846
0.1005
0.085039
0.7608
0.7608
0.749886
0.749886
0.708959
0.708959
0
0.063375
0.180958
3,487
76
121
45.881579
0.706583
0
0
0.375
0
0
0.256094
0.044451
0
0
0
0
0.357143
1
0.142857
false
0
0.071429
0
0.214286
0.089286
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
4f9fbde7fd8c0a784e56af6fcb183e23ac1e4fdb
5,102
py
Python
resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QDialogButtonBox.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
1
2020-04-20T02:27:20.000Z
2020-04-20T02:27:20.000Z
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QDialogButtonBox.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QDialogButtonBox.py
basepipe/developer_onboarding
05b6a776f8974c89517868131b201f11c6c2a5ad
[ "MIT" ]
null
null
null
# encoding: utf-8 # module PySide.QtGui # from C:\Python27\lib\site-packages\PySide\QtGui.pyd # by generator 1.147 # no doc # imports import PySide.QtCore as __PySide_QtCore import Shiboken as __Shiboken from QWidget import QWidget class QDialogButtonBox(QWidget): # no doc def accepted(self, *args, **kwargs): # real signature unknown """ Signal """ pass def addButton(self, *args, **kwargs): # real signature unknown pass def button(self, *args, **kwargs): # real signature unknown pass def buttonRole(self, *args, **kwargs): # real signature unknown pass def buttons(self, *args, **kwargs): # real signature unknown pass def centerButtons(self, *args, **kwargs): # real signature unknown pass def changeEvent(self, *args, **kwargs): # real signature unknown pass def clear(self, *args, **kwargs): # real signature unknown pass def clicked(self, *args, **kwargs): # real signature unknown """ Signal """ pass def event(self, *args, **kwargs): # real signature unknown pass def helpRequested(self, *args, **kwargs): # real signature unknown """ Signal """ pass def orientation(self, *args, **kwargs): # real signature unknown pass def rejected(self, *args, **kwargs): # real signature unknown """ Signal """ pass def removeButton(self, *args, **kwargs): # real signature unknown pass def setCenterButtons(self, *args, **kwargs): # real signature unknown pass def setOrientation(self, *args, **kwargs): # real signature unknown pass def setStandardButtons(self, *args, **kwargs): # real signature unknown pass def standardButton(self, *args, **kwargs): # real signature unknown pass def standardButtons(self, *args, **kwargs): # real signature unknown pass def __init__(self, *args, **kwargs): # real signature unknown pass @staticmethod # known case of __new__ def __new__(S, *more): # real signature unknown; restored from __doc__ """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ pass Abort = PySide.QtGui.QDialogButtonBox.StandardButton.Abort AcceptRole = PySide.QtGui.QDialogButtonBox.ButtonRole.AcceptRole ActionRole = PySide.QtGui.QDialogButtonBox.ButtonRole.ActionRole Apply = PySide.QtGui.QDialogButtonBox.StandardButton.Apply ApplyRole = PySide.QtGui.QDialogButtonBox.ButtonRole.ApplyRole ButtonLayout = None # (!) real value is "<type 'PySide.QtGui.QDialogButtonBox.ButtonLayout'>" ButtonRole = None # (!) real value is "<type 'PySide.QtGui.QDialogButtonBox.ButtonRole'>" Cancel = PySide.QtGui.QDialogButtonBox.StandardButton.Cancel Close = PySide.QtGui.QDialogButtonBox.StandardButton.Close DestructiveRole = PySide.QtGui.QDialogButtonBox.ButtonRole.DestructiveRole Discard = PySide.QtGui.QDialogButtonBox.StandardButton.Discard FirstButton = PySide.QtGui.QDialogButtonBox.StandardButton.FirstButton GnomeLayout = PySide.QtGui.QDialogButtonBox.ButtonLayout.GnomeLayout Help = PySide.QtGui.QDialogButtonBox.StandardButton.Help HelpRole = PySide.QtGui.QDialogButtonBox.ButtonRole.HelpRole Ignore = PySide.QtGui.QDialogButtonBox.StandardButton.Ignore InvalidRole = PySide.QtGui.QDialogButtonBox.ButtonRole.InvalidRole KdeLayout = PySide.QtGui.QDialogButtonBox.ButtonLayout.KdeLayout LastButton = PySide.QtGui.QDialogButtonBox.StandardButton.LastButton MacLayout = PySide.QtGui.QDialogButtonBox.ButtonLayout.MacLayout No = PySide.QtGui.QDialogButtonBox.StandardButton.No NoButton = PySide.QtGui.QDialogButtonBox.StandardButton.NoButton NoRole = PySide.QtGui.QDialogButtonBox.ButtonRole.NoRole NoToAll = PySide.QtGui.QDialogButtonBox.StandardButton.NoToAll NRoles = PySide.QtGui.QDialogButtonBox.ButtonRole.NRoles Ok = PySide.QtGui.QDialogButtonBox.StandardButton.Ok Open = PySide.QtGui.QDialogButtonBox.StandardButton.Open RejectRole = PySide.QtGui.QDialogButtonBox.ButtonRole.RejectRole Reset = PySide.QtGui.QDialogButtonBox.StandardButton.Reset ResetRole = PySide.QtGui.QDialogButtonBox.ButtonRole.ResetRole RestoreDefaults = PySide.QtGui.QDialogButtonBox.StandardButton.RestoreDefaults Retry = PySide.QtGui.QDialogButtonBox.StandardButton.Retry Save = PySide.QtGui.QDialogButtonBox.StandardButton.Save SaveAll = PySide.QtGui.QDialogButtonBox.StandardButton.SaveAll StandardButton = None # (!) real value is "<type 'PySide.QtGui.QDialogButtonBox.StandardButton'>" StandardButtons = None # (!) real value is "<type 'StandardButtons'>" staticMetaObject = None # (!) real value is '<PySide.QtCore.QMetaObject object at 0x0000000003FAC088>' WinLayout = PySide.QtGui.QDialogButtonBox.ButtonLayout.WinLayout Yes = PySide.QtGui.QDialogButtonBox.StandardButton.Yes YesRole = PySide.QtGui.QDialogButtonBox.ButtonRole.YesRole YesToAll = PySide.QtGui.QDialogButtonBox.StandardButton.YesToAll
39.859375
106
0.724422
518
5,102
7.086873
0.218147
0.122855
0.286843
0.24571
0.271861
0.266685
0.266685
0.256333
0.051212
0
0
0.00501
0.178361
5,102
127
107
40.173228
0.870706
0.213642
0
0.238636
0
0
0
0
0
0
0
0
0
1
0.238636
false
0.238636
0.034091
0
0.75
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
1
0
0
1
0
0
5
96df8c52e9b078e14929f2764cb8bb44dcd9fe34
141
py
Python
helper/__init__.py
LHGames-2018/DCI5espaces
8f71ca3b6cf2bae78822d8a4a8546b5482eaa627
[ "MIT" ]
null
null
null
helper/__init__.py
LHGames-2018/DCI5espaces
8f71ca3b6cf2bae78822d8a4a8546b5482eaa627
[ "MIT" ]
null
null
null
helper/__init__.py
LHGames-2018/DCI5espaces
8f71ca3b6cf2bae78822d8a4a8546b5482eaa627
[ "MIT" ]
5
2017-10-07T14:54:28.000Z
2018-09-27T20:16:59.000Z
from .aiHelper import * from .gamemap import * from .player import * from .structs import * from .tile import * from .storageHelper import *
20.142857
28
0.744681
18
141
5.833333
0.444444
0.47619
0
0
0
0
0
0
0
0
0
0
0.170213
141
6
29
23.5
0.897436
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
8c0f1964692bd96e4dcc801dacb2ce5a350e81d6
41
py
Python
sastool/classes2/scan/__init__.py
awacha/sastool
c77c100d5b6e69a6327ece3936116207f3cdf961
[ "BSD-3-Clause" ]
1
2017-02-06T13:15:41.000Z
2017-02-06T13:15:41.000Z
sastool/classes2/scan/__init__.py
awacha/sastool
c77c100d5b6e69a6327ece3936116207f3cdf961
[ "BSD-3-Clause" ]
1
2017-02-16T16:06:23.000Z
2017-02-16T16:06:23.000Z
sastool/classes2/scan/__init__.py
awacha/sastool
c77c100d5b6e69a6327ece3936116207f3cdf961
[ "BSD-3-Clause" ]
null
null
null
from .specfile import SpecFile, SpecScan
20.5
40
0.829268
5
41
6.8
0.8
0
0
0
0
0
0
0
0
0
0
0
0.121951
41
1
41
41
0.944444
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
8c11b494902670f9940fc83da548f29ee52a0024
187
py
Python
hstpl/__init__.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
2
2015-07-19T02:55:06.000Z
2021-07-07T02:38:26.000Z
hstpl/__init__.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
5
2017-03-11T16:30:26.000Z
2021-04-10T16:42:10.000Z
hstpl/__init__.py
Erotemic/hotspotter
3cfa4015798e21385455b937f9083405c4b3cf53
[ "Apache-2.0" ]
10
2015-07-19T03:05:42.000Z
2021-08-24T14:48:59.000Z
from __future__ import division, print_function # The python bindings should be a package in this directory # Any DLLs or platform specific libs or exes should go in # 'lib'+sys.platform
37.4
59
0.796791
30
187
4.8
0.866667
0
0
0
0
0
0
0
0
0
0
0
0.160428
187
4
60
46.75
0.917197
0.705882
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
1
0
5
8c16b8ff1416a492b8fcf9eb1cf6ec39d6812d93
79,653
py
Python
PROJECT/examples/ss.py
keddad/hseproject
6068e620e4c4ee8ea0859eb7f61e583eca19cbfb
[ "MIT" ]
2
2020-02-14T11:38:39.000Z
2020-02-14T11:44:14.000Z
PROJECT/examples/ss.py
keddad/hseproject
6068e620e4c4ee8ea0859eb7f61e583eca19cbfb
[ "MIT" ]
7
2019-12-13T05:46:54.000Z
2020-10-05T11:11:20.000Z
PROJECT/examples/ss.py
keddad/hseproject
6068e620e4c4ee8ea0859eb7f61e583eca19cbfb
[ "MIT" ]
null
null
null
ids = [6998,8236,8684,9804,20090,20304,25522,42727,56572,56613,64372,68046,94737,95276,99593,100290,108084,117711,118303,160629,170920,171320,176800,187048,206001,225701,254443,255987,287261,307144,335913,409912,419348,431520,433970,434715,439542,450614,493198,537320,546266,566638,568641,582435,586346,590840,591044,592285,597006,614005,628949,645181,645690,651325,667165,669255,686328,710018,714099,714650,715777,716033,723957,726270,729428,769599,773058,806777,861123,865469,874402,921614,922567,958732,958825,986568,1025900,1048403,1050987,1106439,1112563,1164920,1176330,1182238,1187109,1187981,1217205,1229675,1269712,1276225,1307546,1316522,1326735,1329444,1350287,1388990,1422756,1441323,1447493,1451579,1460926,1471684,1477754,1488418,1499094,1511957,1513912,1514871,1551708,1575904,1593478,1608101,1627305,1637896,1656948,1668186,1674035,1679370,1679574,1683977,1684966,1700506,1705153,1714382,1748609,1757555,1759153,1771274,1788289,1816474,1846760,1854122,1854367,1855529,1885237,1902438,1918327,1918830,1944256,1974612,1975043,2013067,2018674,2041075,2093521,2105742,2120657,2133268,2133330,2202725,2230325,2262233,2263598,2285076,2318296,2319022,2319608,2324368,2332491,2348415,2353103,2362970,2375503,2412612,2458563,2468889,2478374,2485857,2494742,2507457,2532735,2543380,2575855,2586314,2606721,2607348,2607692,2626101,2655953,2673509,2689076,2690191,2698547,2703448,2731347,2757856,2762597,2785553,2789352,2797615,2803776,2809017,2809153,2840669,2841963,2900408,2900540,2919247,2942867,2970991,2977163,2999291,3031403,3039249,3041592,3053879,3078214,3090467,3132148,3164733,3209518,3218491,3240767,3252611,3262968,3287645,3304649,3309641,3313539,3317786,3318783,3332780,3346066,3395237,3409303,3422065,3426800,3443207,3455834,3481200,3518382,3537444,3545056,3556070,3580162,3583245,3602493,3644374,3665294,3691622,3698085,3743062,3754814,3756482,3776406,3780519,3789518,3815047,3836091,3877089,3897561,3909983,3925573,3926991,3940932,3943795,3981808,3997527,4013484,4036565,4041557,4052883,4107907,4116331,4141371,4142473,4144242,4170632,4259150,4276489,4276727,4281133,4281847,4291399,4334482,4343811,4371303,4435502,4459032,4491361,4542154,4552252,4557012,4569298,4578460,4614366,4622360,4629692,4645351,4686833,4700714,4701291,4716879,4725929,4730857,4767325,4782485,4796360,4804389,4859628,4885557,5023750,5034481,5041913,5070577,5183671,5190410,5210957,5371786,5396637,5405103,5434464,5439620,5453773,5470214,5474057,5517638,5519117,5526238,5531155,5545989,5621703,5631716,5696969,5705770,5719680,5807331,5807440,5811955,5902642,5913796,5935461,5969194,6105568,6134336,6176426,6178406,6208489,6217488,6235083,6285322,6369309,6374979,6388013,6429732,6495568,6607551,6627973,6645062,6648424,6703414,6704370,6706731,6724262,6742462,6877714,6895654,6924067,6934546,6940287,6952748,7048896,7059786,7062853,7085540,7096187,7104129,7104133,7187486,7246072,7248476,7281125,7347150,7372058,7387210,7426902,7433853,7627848,7630223,7637329,7641513,7683812,7730191,7736523,7746661,7833016,7865923,8053523,8091218,8127629,8131467,8134406,8199546,8212877,8343991,8362657,8364321,8377233,8405773,8471523,8472866,8528002,8651174,8697008,8717873,8764418,8830379,8834490,8835928,8851413,8911699,8947776,8993966,9038425,9063178,9077455,9146498,9196613,9211246,9299408,9369555,9448597,9595363,9688668,9770182,9816131,9851877,9877998,9902975,9932338,9936244,10013379,10088177,10118985,10157022,10194799,10227182,10239760,10266837,10288605,10357323,10367703,10380463,10391558,10411871,10442897,10538795,10560888,10569950,10581795,10582728,10656881,10807548,10825328,10828919,10896172,10909584,10934421,10969919,11039350,11043759,11105825,11190617,11245828,11269503,11349246,11541081,11541325,11556854,11603853,11665690,11719164,11745195,11758244,11843625,11882422,12073653,12082706,12186088,12241247,12308009,12350534,12401660,12440459,12546826,12598826,12645849,12672569,12674608,12736124,12773583,12869843,12922795,12942318,13060185,13140143,13227033,13341589,13341804,13370824,13371343,13403923,13426570,13537471,13579993,13670916,13826150,13900074,13904663,13915947,13962432,13978683,14008830,14122085,14147433,14233916,14261092,14290977,14399806,14437609,14492722,14493748,14531710,14568562,14592645,14710908,14780738,14782488,14846551,14945930,14969443,15051344,15081011,15173617,15237395,15310954,15339063,15417389,15562886,15693589,15707191,15753805,15836104,15863282,15897701,16083408,16138379,16198206,16220941,16237255,16244128,16256115,16282328,16309925,16408741,16498444,16557272,16587650,16592106,16837746,16861764,16896614,16913593,16916401,16962411,17017039,17051409,17083535,17120516,17244131,17275467,17277868,17293138,17300694,17404712,17490584,17498057,17600847,17629324,17663316,17676077,17710843,17721479,17916023,17950127,18064094,18065298,18197939,18214668,18237849,18311614,18355065,18389686,18529648,18566730,18657466,18749491,18772600,18776214,18813340,18834597,18925788,19040661,19061218,19111581,19116722,19226951,19268094,19270525,19355325,19359753,19445054,19528233,19546848,19556809,19708332,20199309,20234857,20237272,20370614,20471895,20593711,20606961,20648639,20682928,20692482,20743047,20756088,20759076,20792101,20804425,20899175,20915885,20929129,21012203,21198998,21262669,21305645,21343935,21382358,21398214,21460603,21594425,21775677,21778568,21801556,21814795,21876252,21882605,21926065,22139105,22144643,22201205,22217521,22323912,22369996,22482659,22661761,22728187,22773324,22775446,22848419,23034322,23038159,23042900,23129924,23201627,23224308,23323274,23338582,23446161,23555478,23802393,24019761,24036762,24355456,24381542,24399442,24418437,24623564,24961894,25023005,25027450,25103382,25291331,25296424,25307326,25317321,25395357,25628758,25677001,25695157,25731505,25790626,25797815,25964961,26114677,26296796,26304181,26350863,26351826,26689030,26726240,26733440,26906315,26995919,27032871,27135307,27184641,27217517,27287432,27294831,27449465,27503625,27596055,27682313,27738104,27848278,28033257,28331766,28434729,28500884,28525682,28533093,28617757,28623692,28720942,28944105,29023805,29151429,29154556,29175705,29311041,29323304,29375427,29609856,29694678,29730836,29818911,29829437,29855088,29856221,30117723,30162627,30325307,30330929,30390195,30405487,30458177,30473022,30481134,30532039,30554478,30557458,30691242,30712794,30746692,30777172,30826432,30920530,31019611,31234993,31287080,31462615,31526131,31665605,31745978,31789348,31865702,31922714,32021571,32151440,32245890,32272838,32285276,32349466,32387702,32525177,32608208,32616219,32632093,32633382,32663984,32685245,32825868,32846570,32851415,32898491,32955366,33003664,33287468,33305377,33395755,33456456,33471582,33532302,33545700,33568155,33624064,33626110,33631281,33643086,33659031,33752200,33862433,33879258,33935193,34021053,34054174,34057283,34085889,34314600,34318017,34443284,34482883,34485499,34573895,34659273,34663026,34809343,34909033,34941074,34952618,34954160,35088357,35190394,35193372,35252819,35310071,35397747,35420746,35519486,35589558,35605500,35623914,35630895,35637175,35869241,35890781,36155554,36251393,36252092,36280193,36449324,36495913,36552558,36557115,36764803,36814864,36827405,36935790,37131842,37271978,37382494,37506571,37612831,37651506,37773079,37856215,37863941,37941088,38080115,38374033,38489256,38554068,38653121,38716046,38718612,38719541,38897524,38903243,38967421,39057801,39083265,39088023,39118243,39293444,39311087,39339103,39355102,39431592,39466979,39795645,39799624,39818114,39919458,39956355,40198843,40357643,40373782,40614160,40646744,40970073,40973955,41066047,41404977,41459311,41539031,41550299,41687191,41692105,41695379,41701002,41866848,41886763,41887395,41914899,42094148,42153201,42175034,42233328,42279200,42582677,42627205,42737572,42963689,43371200,43393664,43469969,43642185,43730418,43765095,43788179,43863240,44044409,44135826,44145578,44172053,44271075,44319122,44337630,44342238,44348688,44406916,44424318,44489481,44606958,44817219,44821413,44893320,44975110,45022804,45262270,45270054,45344104,45410259,45719881,45848086,46062022,46196899,46215116,46418208,46483968,46580639,46617220,47096138,47273258,47429575,47495715,47594283,47608368,47768732,47812502,48087220,48110403,48200523,48244617,48288425,48563940,48656048,48656409,48667355,48725896,48920357,49106757,49226421,49400007,49401907,49535524,49583227,49587864,49704840,49727458,49737165,49755028,50043758,50073102,50075116,50094284,50232973,50256597,50302822,50311486,50500563,50501097,50577197,50666907,50737073,50737522,50764182,50766862,50854267,50885667,50889502,50895129,50923941,51272568,51417551,51423750,51430462,51544605,51732781,51807495,51850854,51864613,51931590,51999483,52041535,52086688,52099128,52149336,52223215,52352853,52384318,52429713,52444604,52524300,52644341,52655756,52659435,52700408,52762451,52764312,52768706,52779834,52795311,52855417,53156116,53157656,53413560,53634089,53651623,53744619,53757196,53766244,53790898,53803643,53841524,53907068,54102176,54224450,54259851,54357789,54416137,54431655,54496838,54615080,54696352,54740258,55067021,55164889,55274111,55293408,55400350,55430047,55454571,55467291,55482255,55554535,55573040,55595333,55629365,55658938,55699584,55783291,55886316,56001584,56125506,56158251,56390429,56639481,56706556,56761536,56806418,57133153,57171954,57266670,57283519,57354583,57379745,57416572,57423251,57437016,57476460,57604742,57741689,57794246,58032887,58035702,58198417,58357889,58369533,58497241,58664118,58735829,58811097,58887916,58929912,58995324,59047896,59059991,59069174,59106657,59177975,59178127,59349976,59371328,59400041,59420246,59561662,59936129,60032589,60075000,60119246,60257113,60417704,60555220,60626073,60692782,60712657,60720387,60763420,60783439,60926110,60928198,60952620,60994487,61390176,61400931,61421762,61457651,61536444,61613720,61661920,61814964,61933378,62075308,62146870,62369427,62605625,62627187,62629429,62702072,62711826,62730759,62746831,62888422,63047017,63098902,63100808,63180316,63208051,63244599,63278018,63347801,63403683,63490529,63648944,63927427,63932842,63934753,63988638,64183335,64192123,64193724,64234789,64467419,64512752,64686906,64702004,64798829,64808763,64885095,65008693,65017459,65229441,65251801,65342292,65379988,65459931,65475785,65507880,65508095,65556932,65652337,65852061,65902338,65940361,66070290,66114388,66130976,66171062,66192009,66412403,66427304,66465520,66494519,66555094,66661448,66682285,66733563,66839379,66895582,67011448,67012684,67157633,67161148,67185770,67286945,67365875,67423737,67527399,67568055,67772149,67776309,67789689,67944877,68062629,68087851,68248786,68257112,68335039,68476655,68495664,68498231,68706116,68787482,68851756,69062029,69147915,69260183,69284843,69307634,69348796,69610761,69614360,69678263,69717677,69944112,69955305,70011503,70038773,70068676,70200837,70262747,70391694,70393943,70400207,70516352,70730959,70791097,70794589,70833406,71079139,71182575,71208522,71231355,71509194,71521744,71580199,71598001,71610713,71616819,71640479,71867489,71885958,71946273,72203807,72265929,72270376,72278515,72301148,72329082,72373919,72441836,72513595,72544798,72653227,72708435,72717646,72732771,72821523,72888901,72924071,72966768,72971902,72990796,73121794,73195407,73285849,73436006,73525925,73742633,73780775,73808579,73905642,74040519,74043428,74079303,74204024,74278191,74349588,74411930,74561280,75025621,75165066,75197098,75313798,75400957,75439987,75547653,75618148,75633757,75644239,75785823,75808306,75878720,75904691,76063521,76107685,76221108,76238693,76405472,76525385,76544812,76550580,76662183,76915734,77358687,77508609,77537551,77545398,77690615,77715494,77916530,77941757,78041991,78055051,78057575,78114784,78181786,78187374,78258451,78521691,78896734,78931639,78933307,79055242,79117938,79226554,79471950,79505814,79805141,80292399,80664226,80720300,80740017,80741918,80781300,80813866,80826396,80830107,80879905,80969459,81010110,81150248,81156437,81245666,81342956,81391173,81413147,81434352,81694800,81707536,81848211,82108539,82145978,82157355,82430895,82613972,82718306,82767527,82784770,82885452,82891265,83036976,83196061,83246367,83329288,83348484,83401019,83483184,83494122,83503281,83552646,83568283,83578039,83666679,83751643,83823803,84089318,84134708,84153068,84188623,84272703,84354312,84663423,84717907,84863120,85052371,85127448,85164808,85374010,85441592,85650922,85678225,85710004,86210723,86252251,86335923,86428469,86722690,86763560,86802650,86815318,86833691,86950697,86977914,87004166,87099855,87169108,87291612,87328533,87419874,87649712,87659298,87905815,88033791,88154273,88158261,88320942,88374477,88388155,88573314,89086707,89139693,89184358,89317399,89543032,89589375,89759770,89763310,89896836,89899786,89943888,90078779,90141630,90169129,90209399,90296241,90299529,90352824,90443989,90618364,90725536,90734840,90776051,91074894,91472012,91624296,91816939,91822880,92155235,92193275,92231667,92299288,92484838,92615906,92699575,92747964,92786247,92870224,92942619,93033337,93129981,93146300,93309958,93510826,93562552,93895426,94143443,94220970,94231841,94239620,94472416,94673535,95079969,95121591,95230526,95256553,95437665,95606371,95634689,95646975,95686521,95738127,95814789,95860869,95969790,96021010,96040439,96161891,96202349,96280779,96335912,96390653,96416131,96433065,96464546,96612983,96800851,96877121,96892911,96962450,96982033,97137721,97216122,97253336,97282679,97288693,97351649,97403087,97423791,97493908,97497355,97587820,97592192,97696307,97699100,97725437,97776606,97928806,98006161,98054442,98248623,98290178,98361648,98407109,98779958,98780514,98862190,98890083,99060914,99174264,99189099,99345353,99355905,99394299,99607211,100029193,100197786,100339402,100416107,100423389,100473258,100512222,100634291,100794148,100827809,100834902,100852750,100913347,101142093,101235632,101295826,101323914,101378742,101515427,101586918,101600581,101666981,101720653,101736431,102133220,102186661,102302227,102341620,102487878,102593326,102654539,102833223,102893830,102922720,102926334,102967233,103035781,103071382,103166273,103190352,103195356,103200617,103420951,103521477,103665637,103680867,103786963,103807576,103894757,103935061,104014676,104117510,104121172,104245068,104280405,104342811,104379039,104508007,104533991,104563864,104651628,104675568,104773697,104892877,105083563,105155311,105213461,105240659,105539752,105598155,105644271,105758592,105768668,105779451,105828685,105859466,106013482,106190000,106290840,106306749,106344800,106500568,106590392,106683246,106763801,106922995,107077387,107308385,107384748,107540790,107645182,107684464,107760399,107988956,108224319,108568383,108756868,109005695,109015952,109138074,109358447,109468704,109594408,109712173,109770750,109774858,109813524,110138908,110240603,110259320,110311351,110533549,110585060,110766906,110872407,110907065,111044157,111088741,111400892,111461446,111823941,111962128,112037616,112174564,112359417,112412876,112568470,112680861,112785278,112793838,112826132,112915293,112978465,113147253,113251687,113525847,113642499,113801380,114014765,114173428,114291987,114329286,114480087,114488136,114736756,114950086,115263197,115489832,115504032,115572936,115692740,115732359,115752800,115760506,116120043,116176896,116273262,116397071,116447702,116548758,116557598,116627190,116820389,117055587,117059700,117284455,117637091,117699531,117863071,117866496,118035066,118159754,118193078,118216098,118237850,118317238,118447725,118525650,118541820,118563490,118565745,118572183,118584226,118687405,118810880,118930203,118946687,119026240,119466423,119500936,119507953,119523865,119574684,119606602,119722607,119932947,120124992,120172477,120365274,120400500,120416112,120522154,120626433,120723181,120724262,120771008,120798962,121065637,121118029,121122866,121141148,121213467,121221412,121251705,121397178,121417442,121462046,121562037,121705405,122028167,122031165,122127830,122201822,122369685,122694222,122751315,122814468,122993297,123004736,123817454,124227136,124432916,124460130,124466671,124505898,124574473,124742089,124779955,124817991,124913744,124977535,125481051,125833857,125843197,125849134,126117656,126135549,126322766,126401580,126698248,126713390,126772062,126890047,126921721,127282634,127296624,127399223,127436247,127439089,127732914,127742097,127747398,127794142,127815731,127835975,127991288,128102387,128191770,128258037,128289684,128335124,128453176,128521126,128842860,128977519,129026291,129032989,129404503,129619116,130042920,130222832,130289229,130750678,131368086,131522012,131532535,131641878,131649407,131701875,131784024,131790936,131924580,131979271,131994236,132025396,132029958,132109846,132224191,132292971,132323471,132569150,132582214,132583685,132586436,132696163,132715348,132869761,132920753,132955705,133110128,133230488,133259305,133326209,133340361,133425868,133543707,133601914,133653598,133659689,133690649,133702490,133706153,133718756,133761143,133772900,133786055,133795001,133797576,133812200,133814987,133818026,133887602,134036607,134165687,134297520,134298801,134314733,134316166,134465623,134522796,134595669,134704389,134796221,134850442,134865299,134945633,134962651,134997845,135054759,135076502,135127450,135172531,135179665,135209644,135225158,135234680,135339053,135348979,135441101,135457488,135459096,135504851,135509452,135574744,135592513,135643944,135665282,135760151,135821394,135827853,135828500,135830647,135904931,135957696,136006759,136051549,136051682,136109610,136127628,136130339,136157074,136162020,136188193,136196239,136221815,136311277,136328478,136401426,136608307,136651132,136721270,136758793,136812462,136998882,137039757,137060548,137129500,137134688,137200299,137288033,137320622,137321257,137324418,137386961,137453187,137468815,137572897,137781192,137792951,137832906,137842895,137846135,137851971,137852401,137919517,137960657,137964145,137990323,137998155,138012947,138040793,138100722,138155926,138163001,138163055,138170706,138248593,138264309,138342241,138351182,138423814,138491851,138586957,138601323,138616653,138687064,138713366,138714521,138772978,138779243,138874871,138892792,138927024,138944132,138950699,139014491,139055288,139126626,139289412,139300019,139300022,139306222,139345943,139460477,139554381,139749235,139803950,139837461,139899343,139933231,140010320,140067364,140076395,140196526,140314816,140338212,140364623,140387414,140467702,140506797,140570613,140630755,140645785,140665716,140781986,140898581,140920043,140930545,140931180,140967734,140994824,141029473,141068081,141166488,141175187,141240489,141246125,141279629,141298473,141484038,141687082,141765678,141777989,141871918,141873266,142008468,142192781,142373830,142452983,142465902,142503453,142617134,142652381,142747442,142768869,142871895,142905456,142921595,142955888,143069047,143094614,143273288,143316128,143387295,143415677,143480891,143517196,143588273,143645886,143651525,143715908,143757309,143881927,143930770,143975301,144047440,144125105,144171268,144190444,144243357,144281762,144299382,144318132,144395237,144478481,144519998,144583957,144686361,144736390,144929303,144947208,144991482,145040484,145062223,145093979,145127569,145221048,145240830,145252603,145266149,145297865,145354098,145366447,145410919,145498888,145549362,145605995,145622031,145664127,145707046,145767769,145886792,145893679,145898066,145980472,145991102,145995510,146112162,146142481,146149379,146151792,146191279,146330482,146357483,146372001,146423921,146465594,146540239,146548082,146548925,146612572,146612626,146613252,146650373,146675301,146689738,146774983,146792013,146811872,146819763,146830233,146989118,147105408,147163018,147188329,147215158,147249363,147310395,147546202,147591520,147606745,147611696,147687752,147747977,147753566,147791673,147834072,147883246,148060808,148153345,148172352,148288601,148409486,148522192,148540044,148708695,148893683,148901915,149053353,149055197,149071782,149163514,149224852,149273584,149650838,150146676,150252142,150272076,150320964,150395311,150584478,150665514,150684495,150837245,150845623,150887533,150967066,150983911,151029429,151058854,151064205,151067353,151146202,151225500,151386428,151423090,151486889,151504087,151576557,151615008,151744854,151818408,151938221,152022768,152123865,152135947,152142068,152144833,152209720,152284679,152293115,152312500,152327215,152329666,152352437,152410467,152416605,152445637,152495236,152497705,152502264,152529288,152536079,152569410,152613365,152705124,152717776,152719211,152745577,152757354,152795439,152796303,152837903,152905532,152919886,152960858,153130225,153168794,153256561,153292789,153330436,153332143,153349638,153379245,153391154,153393169,153401330,153457510,153486399,153515319,153547146,153552608,153560315,153582097,153582885,153642333,153647656,153742091,153747329,153778650,153789154,153880207,153881777,153944023,153959223,153977200,154020764,154028425,154043414,154111825,154117576,154122439,154142281,154144876,154162657,154180239,154207075,154252789,154304273,154309197,154317091,154360071,154379038,154382345,154382442,154517811,154538607,154589174,154665237,154740600,154864078,154876970,155125553,155125581,155145064,155176931,155201970,155236918,155337002,155371687,155456439,155477475,155678390,155755035,155819291,155856243,155898270,155949976,155951061,155959506,156056633,156066840,156085098,156096724,156149753,156214908,156240392,156250271,156254305,156274776,156308645,156392991,156404588,156412292,156470242,156482499,156568924,156626925,156654107,156657060,156689025,156693748,156732059,156800636,156892381,156933253,156950274,157046410,157094899,157197779,157264827,157410259,157425482,157488387,157527727,157531339,157550303,157552615,157568608,157593253,157632253,157651207,157759589,157806746,157807152,157838987,157903179,157910897,157911061,157917537,157951047,158018539,158204533,158388069,158447635,158510886,158562349,158832165,158880281,158960667,159027692,159030085,159064590,159118207,159169474,159172090,159184022,159185490,159211007,159342517,159343627,159383217,159386871,159392864,159455249,159457639,159521878,159549554,159569836,159655176,159755393,159789901,159859127,159883178,159904625,159906948,159922486,160043442,160104637,160118639,160304950,160320442,160376048,160398227,160401681,160676360,160727540,160741023,160742451,160794635,160818148,160967982,161013198,161022418,161076016,161099401,161101454,161112520,161173070,161186051,161199590,161256112,161364818,161402824,161485333,161488244,161493498,161502429,161553190,161557352,161646699,161648755,161716913,161768211,161792288,161862443,161916591,161954346,161989948,161995528,162017851,162020953,162039006,162049608,162173480,162214008,162222566,162334011,162343625,162489274,162625552,162639835,162669755,162684835,162742724,162757565,162764823,162781015,162806815,162892218,162927878,162938202,163184319,163207588,163259645,163305468,163396285,163457740,163461704,163478483,163559515,163594357,163594653,163601239,163605178,163678139,163722876,163828743,163839661,163872611,163916903,163954453,163956727,163966840,163987378,164068827,164105930,164301545,164326990,164346321,164352589,164353338,164427291,164526288,164571068,164573385,164633625,164678000,164810021,164820471,164830862,164831749,164834329,164917869,164946777,165029602,165041656,165130787,165230027,165243133,165318038,165327050,165353971,165389329,165443706,165472297,165492464,165518493,165532759,165534587,165727653,165816015,165816971,165839553,165848679,165921913,165940327,166047644,166092336,166138550,166147985,166223520,166242335,166276332,166290988,166388144,166398647,166487711,166526106,166558914,166598436,166695237,166703682,166769524,166779217,166798405,166828272,166858185,166888708,166945005,166947134,167031968,167200900,167207713,167241019,167289201,167323456,167355856,167364386,167537451,167542425,167650158,167686639,167789622,167808641,167830891,167831997,167843270,167845072,167940082,167964337,168031704,168039539,168209377,168213568,168225909,168248224,168255182,168276401,168329553,168362399,168443416,168528489,168577714,168590396,168725167,168838327,168924083,168937665,168952305,168982090,169033674,169064613,169105638,169203400,169233388,169242927,169265730,169437432,169534119,169590375,169606649,169628074,169768076,169860612,169862707,169877532,169971894,169984482,169985797,169987102,170011316,170023968,170065177,170100287,170102438,170108638,170125768,170127979,170179794,170184470,170283242,170340470,170363035,170390111,170431992,170434846,170522669,170539277,170788632,170846984,170874058,170888427,170912897,170996198,171065139,171298025,171308717,171504432,171563762,171582347,171652778,171755580,171785683,171794206,171810133,171879409,171914157,172092020,172139434,172149513,172157559,172167153,172195779,172311258,172368230,172387781,172466974,172506559,172536190,172592279,172606680,172645455,172710901,172727233,172740275,172740742,172745639,172793301,173025882,173197943,173226731,173287066,173367230,173377628,173421939,173511787,173574937,173653733,173662149,173677741,173680707,173688145,173821663,173829891,173832099,173838307,173853740,173909548,173941996,173943345,173972738,173973630,173998364,174095886,174165691,174188224,174334290,174338690,174345597,174358326,174387293,174394512,174417347,174445342,174475382,174501648,174522612,174581920,174698105,174725273,174793395,174934697,174965846,174972377,175037022,175095761,175245414,175259455,175279709,175282176,175340649,175439150,175519209,175558073,175600364,175653637,175697122,175702647,175757802,175895548,175903379,175994743,176001885,176078920,176085153,176092252,176103498,176240910,176245850,176296571,176495127,176569461,176621947,176627654,176667543,176724774,176729002,176758651,176786299,176812875,176816041,176845338,176878941,176903422,176917781,176922650,176938190,177059375,177084236,177142715,177202297,177342043,177358538,177363737,177544491,177575035,177576348,177584507,177614490,177629723,177675559,177696950,177729911,177747325,177788762,177814291,177879104,177893779,177933217,177951627,177956924,177977318,177978367,178043951,178065007,178188137,178194663,178216519,178263352,178356485,178430977,178453439,178462406,178472167,178642411,178778656,178805934,178839622,178909839,178926562,179012689,179013890,179063506,179127651,179167390,179170862,179358912,179368921,179470832,179535723,179628834,179637617,179667746,179677298,179712130,179782770,179820204,179879996,179928074,179963534,179987249,180063617,180107036,180143899,180148596,180154623,180171257,180216279,180219719,180327117,180368766,180424326,180439886,180601830,180639133,180645708,180720351,180881164,180974583,181071017,181153673,181159461,181182898,181183947,181190302,181201262,181219723,181306225,181337644,181410465,181432806,181448874,181466629,181472021,181524860,181563871,181598470,181626680,181691886,181700999,181744555,181749957,181846167,182000833,182005355,182023947,182039716,182056375,182129118,182152789,182202188,182268502,182283761,182293612,182308879,182315249,182361759,182423618,182458372,182466892,182490715,182640230,182647475,182685915,182736175,182785945,182794807,182800429,182834198,182859018,182885890,182965323,182975130,183022021,183063676,183069547,183099857,183114572,183224210,183349363,183356194,183365918,183397695,183470453,183497504,183540514,183635215,183635800,183654518,183737898,183762225,183867260,183899164,183942253,183955082,183974829,183982029,183992276,184041510,184061696,184067711,184088633,184180491,184354526,184363324,184422236,184442404,184529147,184532587,184535053,184564730,184568310,184653891,184719647,184732355,184907138,184931808,184976948,185028161,185093639,185120042,185199470,185207604,185258695,185295912,185308847,185314910,185386067,185391893,185464015,185467852,185517473,185525007,185535942,185579926,185629488,185741136,185814093,185911199,185917029,185918672,185961098,186025205,186073676,186083459,186110378,186120263,186130636,186155652,186168341,186169029,186177202,186406468,186417353,186430683,186479773,186489967,186541142,186614428,186757833,186834839,186902765,186983965,186984665,186985501,187065861,187080714,187235894,187238332,187322609,187345176,187387072,187555063,187618092,187705746,187734556,187781383,187819825,187913772,187927204,187992861,188007116,188080556,188086690,188160494,188197630,188213533,188223916,188245236,188271592,188275700,188284361,188341133,188509400,188528033,188531110,188585063,188661828,188747687,188769045,188772992,188778831,188779329,188782379,188834333,188946423,189003330,189066029,189068359,189189463,189195265,189261224,189268848,189298861,189332430,189353958,189414470,189459234,189471241,189531774,189572693,189597720,189689228,189765444,189816151,189830955,189835822,189953776,190086544,190160268,190254599,190302206,190308617,190358117,190394730,190397546,190411949,190469730,190543550,190545792,190549376,190632267,190733228,190738407,190750807,190816897,190960262,191035557,191072307,191094735,191158286,191217425,191357628,191398172,191444800,191473435,191591920,191813322,191817138,191984638,192177344,192190308,192196170,192382916,192408863,192472935,192480652,192493335,192557670,192831218,192859579,192881165,192957511,193109518,193256986,193276318,193276987,193309749,193401596,193414102,193670494,193882623,193884085,193902189,193979414,194096685,194114665,194127431,194181647,194257272,194281307,194338319,194345490,194463341,194468415,194566107,194571355,194730701,194749205,194754075,194761981,194784545,194790072,194794145,194839944,194856886,194864453,194871006,194891455,194892479,194923882,195012061,195012405,195054080,195060310,195090464,195173664,195315441,195326458,195380649,195441710,195486930,195499453,195643384,195741839,195784981,195785647,195912040,195950930,196020498,196100619,196213544,196246835,196265386,196354379,196355317,196390576,196463302,196524518,196545956,196549200,196652825,196670892,196860635,196890455,196894488,196896879,196951333,196972375,196978542,197024856,197026370,197207182,197413743,197438247,197447629,197449092,197459956,197463719,197526756,197565605,197582663,197647615,197664571,197689046,197695342,197837152,197850513,197888676,197895677,197903499,197926552,198012418,198036480,198044352,198049789,198097059,198100531,198123714,198202691,198403401,198406377,198411515,198690305,198700541,198742499,198804508,198900476,198929314,198965575,199032490,199154256,199228759,199246770,199247765,199329762,199365840,199480249,199504440,199618271,199721405,199875768,199939954,200028676,200061443,200082210,200112255,200266605,200330046,200340484,200356759,200403514,200501198,200593619,200638428,200694103,200758076,201107510,201122827,201129236,201131209,201204917,201297331,201324972,201443754,201699085,201733937,201763837,201833232,201836030,201935536,201984781,202027349,202030177,202079429,202082440,202227570,202296311,202349273,202388781,202442042,202473843,202586198,202713727,202833377,202836003,202854366,202856415,202897675,202963261,203005130,203011983,203196790,203291413,203350398,203397580,203418330,203422436,203443162,203526486,203578749,203635714,203680940,203725292,203744151,203757695,203764198,203777963,203790060,203823401,203899105,203922850,204079467,204444447,204471535,204503152,204507046,204593500,204594012,204619889,204647394,204659810,204675584,204761546,204761580,204813430,204944707,204955004,205017053,205105634,205123309,205159436,205188722,205197848,205245347,205246445,205330518,205340604,205368363,205457276,205482639,205547372,205602454,205656357,205659424,205683173,205805470,205824967,205826658,205833559,205840103,205842005,205861504,205908798,205942733,206089471,206241922,206319659,206377632,206434920,206441240,206696405,206727014,206778149,206885384,206963071,206965650,206974343,206985965,207008814,207011466,207011569,207041576,207102475,207186990,207187851,207331617,207364711,207372510,207406886,207484423,207490661,207517835,207630761,207696620,207768405,207812494,207820682,207846512,207947287,208127546,208179140,208198410,208199873,208200203,208279620,208345895,208347992,208368840,208437613,208516286,208579935,208583044,208678462,208685251,208767124,208800026,208924670,208957729,208977019,208978694,209052426,209095330,209329293,209380379,209487063,209557687,209568224,209573989,209651444,209694476,209732821,209756112,209825166,209849324,209951377,209960884,209963591,210031118,210033854,210036851,210037360,210072731,210111466,210112899,210185428,210188953,210217065,210219972,210222102,210376548,210404997,210444047,210466365,210474520,210564227,210567547,210648305,210679219,210698816,210806169,210810589,210813866,210847659,210941448,210946505,210999265,211094242,211174037,211206419,211209048,211228422,211283730,211312894,211408883,211410733,211450210,211660350,211701291,211773357,211819472,211851750,211883853,211900917,211904154,211986314,212055409,212181530,212197275,212210604,212277905,212293358,212351005,212458137,212502671,212518319,212521628,212524570,212628146,212655673,212656790,212658115,212682428,212699073,212739219,212752069,212798602,212810318,212841699,212845119,212889260,212913464,212920499,212997926,213021674,213086704,213115134,213173785,213193408,213206890,213211874,213251078,213255585,213305947,213358599,213369341,213370194,213540296,213678050,213694621,213709514,213716281,213728994,213751686,213847512,213851671,213913209,214003170,214050240,214173816,214174904,214209811,214315778,214324468,214328887,214356636,214358331,214690015,214786541,214904876,214906723,214928372,214930171,214943396,214988351,215025432,215038234,215063170,215098017,215129883,215222897,215238815,215261624,215281498,215290812,215310543,215501610,215511059,215560255,215582342,215624619,215720548,215758341,215794193,215807217,215830078,215856634,215881396,215906412,215971049,215978282,216085426,216140761,216277472,216530220,216826800,216893693,216927166,216936604,216950867,216979810,216992855,217011371,217025802,217046205,217082660,217124957,217194261,217200284,217243296,217252872,217289098,217311590,217367376,217371726,217388187,217425066,217549540,217576691,217645226,217648009,217661600,217730355,217757194,217794858,217821273,217834545,217891993,217985007,218043086,218142822,218228537,218366079,218408715,218413981,218429361,218521160,218538061,218713825,218717783,218866763,218994771,219038007,219057303,219082878,219245412,219479524,219480939,219496946,219505882,219661260,219688764,219692974,219715949,219803547,219856762,219893011,220002204,220063655,220078843,220089052,220096939,220097363,220110030,220232036,220442105,220514987,220559549,220559989,220575313,220602492,220606013,220621310,220722851,220796490,220843343,220850743,221016717,221163231,221268418,221292022,221304070,221393819,221444038,221458882,221460869,221488990,221494949,221574421,221663600,221683531,221702002,221703416,221707956,221708700,221759093,221858733,221906300,221940980,221963531,222246749,222277898,222309996,222315570,222321549,222371966,222387907,222415555,222421398,222430637,222439838,222476803,222477252,222478162,222501270,222535487,222541651,222561197,222568380,222568906,222660949,222661551,222663196,222670866,222693973,222694282,222784871,222789269,222801076,222946685,222985043,222988016,223000985,223042863,223052549,223054961,223149966,223157089,223172237,223228093,223258649,223273626,223283515,223323941,223375650,223421088,223484789,223522050,223692626,223784733,223859454,223864481,223916244,223922700,223975731,223983692,224057485,224256409,224274621,224282477,224298742,224391906,224415402,224509481,224555017,224567603,224581296,224628969,224644451,224699608,224715814,224723235,224728785,224734309,224741365,224763960,224787746,224798349,224810236,224851780,224869142,224882195,224890288,224900139,224929736,225012479,225058839,225070180,225084442,225134694,225145935,225191054,225191761,225288643,225345376,225347837,225467038,225472999,225481364,225489022,225493544,225532326,225624398,225633300,225643984,225724462,225753451,225852496,225924043,225934138,225937105,225954694,226033349,226049250,226085022,226096431,226108390,226115132,226129178,226137458,226156428,226276103,226283253,226303265,226334398,226344020,226383980,226409646,226460579,226481942,226648107,226658474,226721330,226723690,226760255,226796566,226866216,227030648,227057041,227196672,227304510,227333374,227349418,227428214,227466771,227516768,227538934,227540882,227732870,227787093,227809468,227814300,227869759,227872833,227921522,227977610,228062806,228119917,228214153,228359526,228373762,228522207,228549400,228553803,228590759,228611523,228715038,228745101,228757062,228862246,228875710,228881188,228949721,228971548,228999342,229022996,229069839,229123580,229126546,229137220,229151804,229166132,229233275,229290696,229316964,229318114,229413837,229419223,229447773,229469798,229471919,229582450,229588139,229599966,229620097,229677619,229701074,229729669,229749617,229889237,229942586,229954523,229955706,229956544,230011366,230067864,230077082,230115839,230129927,230184907,230197177,230208497,230269436,230278652,230372811,230384273,230393334,230433037,230444214,230500816,230529877,230565665,230614353,230617774,230772818,230842368,230861322,230866065,230875563,231009318,231010115,231020330,231070732,231106037,231224289,231314781,231338194,231339043,231378745,231418238,231456914,231473765,231565713,231573904,231575634,231587675,231636428,231666933,231742582,231749239,231769493,231776146,231807942,231826592,231827463,231932101,231963762,231969116,232032455,232182293,232194126,232217980,232224134,232347719,232374228,232375018,232399821,232462091,232544323,232575211,232606507,232659918,232664086,232719463,232782484,232812519,232847108,232952966,232960561,233032032,233040460,233054697,233072334,233116797,233184514,233185391,233200938,233309325,233323483,233412354,233606321,233625762,233678391,233680096,233688763,233690515,233691820,233771309,233810325,233810462,233860015,233934210,233938909,234180012,234241350,234296022,234321853,234342337,234373219,234398333,234517282,234523182,234524193,234579057,234623028,234641648,234706612,234751184,234754944,234789486,234829220,234833639,234839353,234854090,234899087,234906479,234913458,234954556,235031522,235034541,235077872,235093512,235127068,235152466,235154978,235157283,235157643,235162147,235234654,235250069,235267821,235267834,235283354,235316228,235345861,235358201,235359113,235379275,235388948,235398648,235459955,235465392,235496539,235507027,235507288,235511230,235572415,235621841,235636420,235742231,235768146,235904048,235951988,236037869,236082248,236096067,236097500,236098854,236107310,236118868,236119524,236219222,236282570,236327800,236344852,236412935,236467782,236672479,236689755,236777595,236793438,236807582,236915695,236983293,237142847,237148159,237167281,237214652,237234101,237234880,237237688,237446497,237470916,237525376,237555188,237605487,237611919,237647525,237661339,237755605,237772215,237900209,237938944,237967806,238104625,238159451,238173250,238183547,238271638,238302785,238360386,238378308,238554049,238555046,238585049,238709450,238729895,238732595,238739930,238740274,238742025,238826709,238840178,238895651,238924033,239140710,239170158,239285685,239345726,239376714,239417259,239489047,239496319,239553996,239556321,239622964,239637340,239674520,239690863,239776417,239838768,239839462,239843691,239917353,239953570,239959081,239960855,240053000,240062627,240086902,240113820,240211381,240247504,240254601,240291242,240316600,240346343,240358826,240395364,240524388,240552725,240689292,240726355,240761317,240763178,240805285,240905601,240965254,241060726,241159399,241223581,241325847,241388067,241439941,241493229,241527663,241564878,241598531,241640562,241644348,241696657,241713027,241798539,241926695,241926909,241987612,242093137,242180530,242185121,242228755,242238440,242275494,242296023,242324625,242335943,242387239,242391181,242423693,242454944,242471111,242540427,242583289,242623264,242626236,242648794,242650008,242723137,242730510,242780193,242964778,242983384,243022104,243085458,243092474,243101031,243131164,243135350,243138105,243148981,243151383,243206295,243219289,243296110,243348159,243426133,243427356,243544763,243544891,243546670,243548531,243569964,243613353,243684323,243688346,243698030,243706517,243808707,244162770,244208579,244371143,244377607,244380620,244396262,244400111,244466231,244476703,244696780,244728879,244843665,244846919,244848493,244882875,244897341,244934087,245023108,245045466,245137993,245157729,245166978,245305730,245318178,245548862,245571067,245620400,245622330,245718165,245758906,245826464,245885884,245893675,245906102,246010192,246071175,246169967,246357650,246422438,246436899,246511495,246512055,246535200,246557946,246565450,246610013,246610880,246641956,246664621,246671241,246882782,246886273,246898396,246912142,246915472,246917240,246934094,247064882,247082977,247173136,247174245,247178624,247205956,247223826,247261699,247303813,247325797,247355730,247387838,247484190,247532307,247616227,247659258,247681402,247707018,247730494,247730498,247766628,247933938,247965823,248006768,248077868,248083585,248234499,248266486,248288779,248301376,248307397,248333285,248354380,248366926,248374074,248375812,248392372,248400124,248450099,248506721,248533136,248633778,248656280,248670386,248673511,248755848,248783569,248835413,248845323,248848427,248889297,248918323,248948085,248948702,249080335,249091842,249177563,249200856,249208890,249216170,249418452,249455088,249475730,249498825,249508473,249511187,249574143,249595060,249692430,249704542,249733776,249844816,249894513,249906388,249971226,250020720,250052901,250053025,250207882,250242639,250256936,250283312,250323732,250379274,250393471,250556730,250641635,250645721,250650440,250656751,250758866,250770118,250794729,250806503,250855278,250895551,250947613,251009010,251049452,251137159,251147310,251162434,251232728,251265942,251291789,251319259,251322328,251334489,251386749,251485068,251491540,251491858,251499314,251694223,251696625,251759712,251764815,251790080,251809896,251836488,251852766,252074626,252076928,252098535,252101281,252180218,252203334,252270813,252330248,252384988,252453957,252464798,252520552,252623325,252667457,252698723,252743412,252844460,252951764,253077548,253124662,253248015,253265647,253300723,253324785,253335562,253341624,253425708,253462810,253499356,253526757,253532081,253756559,253758243,253831062,253836082,253854417,254014433,254077337,254119874,254120598,254129570,254219440,254226386,254282334,254310032,254352732,254388458,254410592,254418735,254477284,254520818,254521323,254575182,254599621,254604948,254696577,254903541,254907983,254938028,255004099,255026998,255146365,255183231,255204967,255248283,255318672,255382938,255402001,255418930,255479499,255609827,255620412,255625429,255628003,255640701,255667710,255792634,255817415,255832014,255839493,255855686,255870040,255904076,255941279,256038634,256051561,256239875,256355785,256360966,256361653,256472385,256502245,256526076,256577233,256628706,256675452,256707142,256823388,256922544,256942697,256970281,257010391,257030715,257067803,257069830,257140145,257199671,257258631,257361357,257428205,257466903,257470140,257484621,257521623,257664640,257710876,257743297,257770356,257875986,258022717,258096997,258160033,258201483,258205665,258223116,258265863,258283911,258510721,258516379,258543439,258594809,258685406,258703708,258746003,258770711,258794460,258819892,258827625,258908085,258968499,258975767,259052530,259154356,259166767,259335247,259338358,259402874,259438455,259440222,259496351,259510790,259523714,259705060,259753303,259884919,259957985,260053916,260068634,260082230,260136723,260178627,260276399,260388303,260437273,260443182,260498156,260513503,260521968,260583666,260630839,260691133,260879938,260976922,261066642,261108181,261156566,261423482,261487813,261595811,261892587,261995697,262075858,262076411,262117644,262118104,262150728,262165101,262282329,262307403,262314461,262551697,262618548,262744698,262764633,262836425,262876316,262909186,262911710,262911972,262934880,262991897,262993432,263034929,263035206,263045211,263060264,263060898,263181096,263192912,263253854,263253931,263348111,263359276,263564009,263582170,263633990,263634029,263712831,263714004,263807965,263860818,263932807,263957566,264040922,264101153,264176805,264179068,264310013,264364522,264712129,264803550,264822297,264972080,265143563,265149207,265241170,265324448,265375474,265413964,265476189,265537954,265580959,265598295,265638441,265679618,265727074,265778441,265860277,265992913,266012327,266093000,266102266,266138631,266150858,266161055,266252505,266286416,266377539,266433159,266519838,266577218,266578955,266632024,266640672,266651051,266666423,266668425,266676386,266692290,266767530,266849161,266854102,266865282,266916419,267001807,267033659,267043596,267171979,267273018,267300202,267317081,267321976,267328717,267344079,267374654,267378491,267409171,267431578,267456798,267513619,267563060,267580952,267688293,267698719,267717434,267750606,267842173,267860529,268066299,268070787,268080344,268089087,268160915,268178086,268239776,268297913,268300175,268317819,268349642,268358205,268406885,268462561,268541382,268557630,268699347,268719348,268748625,268826374,268834676,268862374,268957659,269050612,269058342,269105451,269116061,269193456,269193775,269240391,269244791,269332489,269365562,269429101,269478853,269496097,269593993,269631202,269632233,269743502,269766155,269813444,269849455,270013814,270025866,270027019,270109984,270132716,270250149,270305369,270372611,270409436,270411111,270413406,270487947,270506248,270638958,270757370,270800594,270838835,270855764,270908392,270910070,271019813,271022490,271091847,271206846,271210167,271218023,271331273,271338965,271343132,271467841,271552501,271560471,271578750,271589643,271593797,271594754,271675915,271676344,271681964,271693972,271726571,271748636,271796215,271800497,271813801,271837795,271891309,271913833,271934172,271939590,271998889,272055598,272161647,272167190,272169692,272276449,272278862,272408944,272467032,272476082,272508655,272689865,272718251,272764402,272821794,272834693,272934690,272974693,272984044,273003261,273005975,273067079,273156423,273187992,273205995,273232339,273245511,273370188,273371606,273440050,273490078,273491814,273506514,273535513,273708235,273711561,273725985,273753925,273754427,273793781,273794065,273921334,274049168,274066679,274090305,274209293,274349558,274418866,274437510,274444645,274463227,274467233,274468505,274558932,274570241,274595593,274633288,274670402,274686010,274783307,274830070,274902295,274914240,275006003,275014631,275022727,275026397,275047025,275051343,275199860,275212831,275220376,275271955,275295341,275298307,275303470,275329703,275350935,275385053,275494252,275545626,275588961,275647015,275693896,275742081,275794829,275917888,275997664,276018331,276090052,276093824,276173455,276202518,276333286,276368227,276391363,276491628,276628125,276638884,276736608,276767754,276799844,276844969,276926512,276953327,276999167,277068074,277092326,277255623,277292286,277317108,277349510,277368180,277431968,277471093,277476763,277535264,277560795,277578160,277788663,277841367,277851803,277963033,277982349,278054955,278208744,278466212,278520084,278529143,278546100,278650878,278717565,278718035,278730080,278781271,278865659,278869465,278936894,279032797,279046395,279111038,279159560,279468156,279501933,279522427,279609004,279652405,279702154,279718862,279726033,279736108,279751639,279782513,279788297,279898601,279901415,279985578,280057095,280096947,280209218,280233964,280256437,280318149,280360920,280378156,280379808,280404510,280498732,280504708,280622220,280754187,280783252,280810152,280882924,280922406,280957210,281049293,281082127,281146667,281249673,281259210,281269552,281355251,281368738,281411560,281524030,281529957,281545865,281580075,281598994,281695467,281696001,281739533,281762032,281823324,281830212,282050152,282080211,282350149,282419871,282479073,282483413,282506845,282555173,282600183,282648238,282749045,282787250,282789215,282806695,282878064,282885562,282922255,282934828,282939305,283369370,283371822,283515758,283599853,283606312,283645908,283652483,283667220,283766468,283825376,283841683,283872594,283910873,283911669,283952001,284020681,284053104,284065077,284072731,284144478,284193868,284275965,284459958,284515468,284537056,284654648,284767037,284942529,285030162,285057414,285062705,285195663,285217445,285289439,285378356,285400048,285431718,285684451,285762004,285802499,285849640,285924308,285995057,286031891,286086352,286096360,286110869,286428735,286462956,286556223,286703916,286820666,286832915,286882299,286899834,286902570,286904589,286939459,287071163,287102739,287127980,287261505,287290372,287443463,287479713,287544939,287567365,287605393,287612585,287633245,287818063,287833209,287956817,287983978,287989940,288158366,288163106,288270110,288297623,288404771,288492091,288569987,288597584,288656092,288678953,288755236,288756221,288779120,288784522,288786022,288833499,288860863,288911200,288948966,288981561,288998956,289017349,289216104,289315071,289359481,289445676,289474786,289477044,289521604,289640780,289645341,289732826,289735585,289774268,289848031,289871050,289929530,289948662,290000475,290125221,290159608,290292573,290340432,290380877,290595739,290620897,290655967,290695668,290713442,290764292,290973636,291137870,291241421,291272847,291307239,291597148,291626656,291630889,291771962,292080228,292102726,292166516,292280281,292300940,292371346,292379808,292450575,292527197,292527476,292624133,292640432,292720723,292768837,292948084,293063086,293135870,293178289,293272386,293275515,293373542,293380719,293408497,293496158,293543018,293566100,293584884,293604888,293632952,293652383,293676505,293684357,293711372,293754153,293761693,293827334,293834423,293913034,293933285,293961687,293973375,294037760,294061250,294088966,294205509,294383335,294489378,294492515,294581389,294605052,294606116,294659629,294680938,294743794,294748971,294818574,294821664,294823330,294828329,294831078,294930184,294953811,294988801,295207154,295336784,295390188,295409936,295502539,295525604,295535348,295537319,295566541,295628148,295634888,295665603,295812044,295856717,295859751,295947733,295952120,296055812,296111679,296220732,296345313,296361856,296505371,296604006,296610466,296634504,296656447,296929725,297045737,297133254,297200290,297203379,297274696,297279957,297310431,297395316,297546527,297578759,297647067,297704208,297753852,297759599,297775539,297784909,297927617,297951541,298049594,298101629,298111610,298214525,298262059,298326885,298380789,298429991,298464856,298518406,298664336,298678348,298812757,298822216,298888601,298925984,298997312,299072432,299091006,299097040,299128640,299175505,299259941,299315910,299343011,299353924,299357296,299415103,299544327,299545087,299651103,299690134,300019862,300180476,300234152,300281030,300335534,300366906,300543904,300546821,300901959,300913448,301028602,301032216,301199486,301209974,301358025,301360632,301460913,301502962,301680664,301903390,301925212,301960759,302008703,302182749,302190009,302237003,302249873,302274035,302274769,302334527,302346127,302418051,302481798,302521273,302628649,302648758,302658736,302689588,302741916,302939365,302972399,302985793,303196015,303313809,303370550,303371974,303548007,303554376,303570128,303733205,303782927,303822369,303838679,303914640,303945153,304003139,304090901,304103952,304182775,304420988,304454106,304486373,304589269,304595612,304597670,304633587,304751612,305123094,305185902,305238555,305243298,305331085,305473207,305485070,305593432,305636406,305740885,305759564,305763879,305931733,305979328,305982086,306111081,306125496,306225175,306233631,306241149,306337028,306339025,306404176,306488180,306512501,306605685,306614143,306740031,306860693,306928796,306962146,307069470,307084302,307126658,307133716,307165347,307357788,307368536,307399128,307441880,307460818,307467168,307530016,307583289,307631012,307767424,307778931,307929825,307948909,307948928,307992246,308075986,308160031,308178557,308193554,308211771,308553929,308566490,308618670,308678089,308824628,308874889,308903303,308904854,308970335,309064831,309182239,309189894,309358483,309464372,309471541,309534656,309535809,309583945,309586664,309606900,309633638,309708662,309724450,309751333,309758397,309786464,309811881,309833845,309882430,309955988,309975942,309980176,310039981,310048863,310225317,310260921,310392271,310546596,310679444,310759317,310804450,310810039,310823503,310830386,310973170,311158035,311169111,311278721,311384808,311425589,311461992,311509800,311538513,311555167,311561415,311588961,311599071,311694642,311845082,311853096,311921414,311967281,311978187,311980454,311999943,312002770,312020114,312097100,312326748,312411365,312621461,312646424,312765973,312879609,313020792,313026002,313062203,313258327,313306753,313397572,313454415,313460669,313523283,313536052,313703855,313729702,313737412,313753722,313880390,313908369,313974402,314063098,314176452,314210260,314340772,314343166,314357003,314557795,314656154,314711562,314796730,314853916,315040070,315090059,315178737,315261427,315329525,315680796,315910242,316039293,316122079,316256901,316358814,316365263,316444140,316450522,316823332,317114673,317140651,317270249,317561926,317587480,317615590,317635905,317667776,317767002,317906236,317917231,317985928,318028434,318084087,318229296,318229597,318247517,318307813,318342006,318346099,318527931,318590962,318657284,318809371,318810635,318857728,318859476,318865928,318875676,318906802,318938297,319103940,319127099,319175840,319277938,319322291,319402142,319582208,319757917,319896855,319911833,319940176,319966682,319997766,320050931,320052196,320192710,320352577,320372302,320525116,320617221,320682631,320738639,320884052,320884806,320885909,320890245,320912519,320948139,320956318,321028597,321036547,321057013,321071668,321153939,321183026,321219014,321257793,321303159,321309935,321357772,321372059,321376807,321402493,321423461,321497757,321514866,321530779,321576477,321606204,321608797,321647672,321671261,321687556,321694908,321758690,321773769,321839555,321880131,321919170,321960655,321995536,322033982,322044717,322139538,322143924,322167379,322253264,322273494,322302692,322334311,322423251,322427261,322443999,322468274,322543056,322555702,322574740,322575018,322576461,322585767,322629851,322670160,322847078,322943049,323002905,323006226,323024123,323062593,323315186,323329599,323436810,323605837,323671611,323742300,323743427,323760845,323827669,323838512,323838640,323857192,323869032,323886903,323906331,323967711,323981677,323981766,324002924,324050915,324058178,324079105,324089805,324391762,324411645,324438208,324475019,324479094,324497169,324591239,324639375,324656755,324877264,324885455,325115938,325123744,325125396,325246567,325260207,325422861,325494223,325496196,325576417,325607667,325981390,326044989,326141775,326149682,326200161,326244485,326253500,326263784,326295024,326305995,326460348,326522894,326530078,326585473,326626468,326646648,326747622,326777428,326829710,326843508,326888741,326956562,326989947,327014515,327040159,327172634,327290655,327314663,327334186,327356374,327379515,327409323,327499673,327537322,327545956,327546789,327576947,327614761,327630970,327634455,327742501,327749856,327765106,327775608,327803830,327977054,328092731,328097740,328186241,328269866,328280569,328294632,328322715,328330991,328411482,328412828,328589633,328643355,328710252,328717880,328831203,328861914,328873162,328992036,329066001,329067051,329137413,329139217,329191850,329204597,329246927,329265039,329391159,329422945,329546545,329602527,329635763,329643089,329698619,329773508,329789266,329798087,329805700,329830744,329836023,329839158,329943154,329960729,329976083,329986672,330011791,330068016,330071958,330597558,330600495,330639044,330646751,330657688,330674393,330712691,330775830,330799311,330906789,330955749,331014055,331022534,331351704,331491122,331497800,331640532,331650337,331676634,331699852,331713050,331811869,331824861,331929601,331977568,332018190,332071124,332128879,332240437,332278534,332409196,332411662,332534406,332624532,332717460,332870407,332932673,332935399,332944641,333037468,333046147,333120816,333125806,333225245,333278806,333363441,333419948,333498196,333538282,333562271,333578111,333586286,333620830,333674652,333679884,333681267,333741942,333817564,333901380,333965270,333994959,334209131,334246863,334293935,334320430,334385579,334644724,334687463,334711429,334882882,334918699,334937264,335010569,335081325,335083258,335106852,335260624,335412322,335413940,335458023,335475534,335486660,335528039,335633538,335652488,335707984,335759439,335789962,335830800,335976728,336089391,336189993,336236801,336256536,336364424,336448175,336605863,336691269,336706280,336749980,336753061,336760777,336763973,336775394,336781049,336880062,336925552,336938384,337006776,337112251,337116542,337208192,337236002,337270319,337270933,337272897,337330102,337367642,337376184,337431185,337613916,337707130,337733212,337766672,337901463,338022489,338079622,338152180,338230843,338307041,338308552,338421989,338771256,338841697,338990290,338996456,339009285,339032172,339295744,339326335,339329647,339506747,339614163,339640894,339761740,339761827,339835044,339885657,340018760,340022469,340041211,340085315,340215446,340304773,340315453,340330294,340398445,340419519,340446448,340566738,340569153,340589584,340623323,340848952,340858349,340938222,340975429,340995696,341036828,341085185,341134658,341294649,341307567,341315749,341330295,341557137,341714769,341784974,341853590,341870597,341871317,341882050,342094495,342134575,342232852,342264120,342304415,342434826,342439323,342540990,342542779,342592688,342724458,342741947,342818362,342821320,342869345,343027913,343136927,343274605,343331307,343393968,343415509,343420184,343444159,343526353,343618427,343708657,343814517,343927790,343982891,344106849,344174984,344206211,344237021,344511449,344613351,344773928,344865869,344921683,344928065,344946156,345091139,345103213,345158167,345399497,345443415,345467733,345771092,345789017,345854011,345874277,345981101,346022314,346102307,346111574,346305964,346388921,346417375,346560026,346580885,346703659,347150146,347489241,347595720,347642397,347898982,347954533,347954782,347996739,348146802,348283206,348561079,348693620,348794798,348799814,348889082,348941392,349036884,349110275,349121826,349141859,349339339,349448176,349464806,349525761,349553467,349721288,349752321,349959650,349967635,349978766,350045226,350072616,350079415,350217931,350365875,350384636,350439921,350486160,350565757,350663147,350833156,350890222,350900630,351145674,351222197,351240701,351291180,351444103,351458055,351508662,351672703,351675419,351679928,351721520,351940359,351971123,352132922,352205265,352257375,352312692,352355390,352364658,352513054,352570299,352707952,352751895,352798118,352805995,352877910,352918575,353038763,353108036,353181325,353215090,353292831,353366892,353444554,353565839,353651367,353673364,353693806,353698193,353715828,353740890,353781075,353826598,353908403,353967799,354050724,354071912,354125619,354138231,354217194,354569852,354656942,354882910,354896651,354957558,354967442,354972638,354984008,355178987,355184701,355296783,355297918,355481994,355492832,355642559,355675728,355708252,355728649,355818677,355827646,355903303,355981693,355996722,356163672,356360511,356603674,356691738,356884150,356892332,356960166,356960953,357004322,357065636,357143871,357186676,357193406,357201380,357606634,357690893,357702458,357796720,358100341,358119022,358249912,358350970,358351423,358433282,358489771,358499843,358613049,358625349,358634858,358698487,358885188,358936041,358945007,359040467,359048717,359092938,359165047,359196126,359282665,359453079,359496269,359501206,359539024,359846654,360002049,360007589,360116878,360235670,360240689,360295898,360352103,360455444,360475858,360567961,360595693,360771941,360772963,360815855,360839932,360901615,361056571,361090529,361092222,361113202,361233934,361237611,361424979,361575300,361667974,361731663,361793061,361877863,361919923,362034239,362051723,362108256,362129119,362161234,362167164,362294911,362304192,362346922,362373055,362419708,362453265,362504898,362506702,362522750,362659842,362696838,362860466,362958422,362977134,363273380,363387264,363552167,363573632,363594463,363642605,363747695,363919530,364200937,364279425,364309821,364371464,364563716,364596349,364728189,364779745,364954143,365110386,365122562,365171893,365240969,365381883,365444611,365620499,365636285,365695074,365737755,365780169,365837130,365955139,366030049,366063684,366114185,366128437,366218918,366442691,366472296,366600186,366769609,366771772,366784413,366878740,366896283,366993566,367025761,367081104,367094463,367197657,367370386,367378410,367471544,367699106,367902465,368096481,368210053,368231906,368457554,368571740,368613982,368824454,368826606,368856499,368897348,368907044,368914089,369002734,369080922,369090251,369116588,369129610,369137106,369194399,369334403,369402135,369457514,369532940,369565140,369591247,369665810,369930338,370099084,370163542,370235362,370273341,370296100,370299354,370307176,370308394,370419118,370454034,370513335,370555479,370600442,370609251,370673303,370732586,370806124,370832936,370879221,370888431,370970657,371011412,371126083,371128472,371288089,371314379,371321948,371331391,371437988,371476526,371606528,371607911,371689332,371722502,371796586,371801256,371923541,372364533,372489252,372490006,372528458,372567371,372567407,372940377,372957973,372963459,372981393,373056021,373245728,373247580,373434292,373514094,373865283,373876513,373984368,374093931,374281363,374306976,374456163,374483279,374536835,374616160,374636756,374691027,374717868,374774398,374835885,374897537,375198915,375385424,375404316,375617213,375703365,375727892,375876260,375878917,376234182,376243428,376281369,376342186,376359874,376421869,376457289,376659197,376716378,376777723,376859984,376885407,376956223,377042163,377099988,377271715,377271847,377305248,377335560,377354598,377430674,377571995,377765303,377828172,377905361,378004639,378133845,378232230,378291704,378302548,378330975,378454767,378690822,378854316,378867093,378929211,378929333,378976274,379025445,379303997,379352504,379389296,379402766,379734305,379846935,379890401,380006643,380045267,380358421,380452149,380526438,380718940,380831698,380851891,380899739,381113706,381175589,381387793,381461702,381512900,381531941,381538950,381596430,381633075,381715178,381799600,381860804,381865708,381874381,382013748,382037660,382048209,382062190,382077966,382112655,382158090,382186536,382201010,382366750,382424320,382437655,382440772,382443718,382457410,382527886,382555093,382608846,382629321,382633942,382764860,382954362,382995426,383173014,383177115,383197430,383295219,383333830,383378831,383469643,383533247,383618309,383695094,383857127,383883722,383883921,383890891,383923371,383971383,384020101,384040770,384225237,384234317,384394808,384460119,384503829,384899796,384928390,385068179,385273183,385394521,385407304,385420420,385604838,385610736,385624386,385666861,385739965,385923897,386008707,386055210,386120777,386344888,386461151,386558318,386591845,386627047,386627474,386740379,386876422,386904925,386912441,387088873,387151025,387152474,387209049,387218178,387248647,387261607,387358680,387373153,387384232,387385021,387400274,387431427,387589944,387617479,387648687,387703221,387705236,387747164,387869177,387902480,388113110,388178417,388181762,388206183,388233094,388377985,388398888,388399502,388403306,388405753,388447575,388453504,388542495,388573988,388590606,388776200,388826142,389212142,389304890,389313335,389316107,389326741,389475220,389630539,389640393,389879048,389897638,389993618,390036930,390056798,390059627,390482385,390497164,390502137,390721867,390778437,390925945,390940096,390944158,390963350,390971489,391125258,391224783,391444561,391490661,391533197,391616903,391648995,391696525,391869549,391909929,391945422,392038158,392165718,392186236,392290846,392792896,392824851,393047475,393157729,393410999,393531564,393615736,393719302,393778830,393948238,394057584,394064586,394223003,394249852,394394689,394597193,394676210,394688408,394816221,394932216,395262006,395349835,395375458,395398408,395446858,395505174,395936318,396182579,396196807,396259907,396333395,396414000,396602686,396808589,396860533,396939353,396997369,397039773,397192465,397263484,397324912,397356345,397364306,397575255,397690832,397747539,397752695,397767994,397837012,397921743,397952140,398025534,398069752,398079736,398086067,398097975,398414624,398558062,398636151,398661621,398749525,398842694,398876358,398882645,398963236,399005216,399094815,399141883,399215093,399289595,399304409,399317464,399369006,399443600,399467631,399528987,399628095,399755833,399762205,399907357,400315204,400418901,400710953,400711728,400903077,401377689,401409301,401737640,402187525,402493552,402629189,402640855,402678421,402687343,402834801,402883148,402885769,402953310,402990019,403000047,403177307,403359193,403614670,403625832,403751126,403944652,404071464,404180569,404507955,404688355,404751254,404763312,404907027,405148197,405167166,405260278,405282867,405428984,405723995,405760079,405960264,406004222,406131632,406267720,406342915,406437166,406535375,406754150,406785805,406838678,406876815,407067774,407074565,407213775,407314733,407434353,407573079,407624603,407674407,407745583,407786300,407888895,407945451,407985869,408104594,408181599,408295258,408415011,408456675,408537488,408557697,408829424,409082136,409261020,409330853,409703055,409829830,409874880,409943719,410015481,410026271,410033722,410124902,410263729,410274935,410295079,410538359,410615648,410757591,410799030,410843463,410877602,410896935,411248374,411252484,411274546,411391630,411406980,411434632,411466607,411505940,411544893,411570369,411674532,411752507,411839108,411902273,411975776,412036130,412090710,412115702,412317535,412758849,412791256,412959055,413054883,413240167,413322885,413344546,413716546,413971207,414034368,414053328,414190805,414305741,414323420,414494618,414592910,414697207,414978245,415207142,415359178,415381262,415817123,415841491,415941939,416065038,416078179,416407146,416580329,416602256,416624711,416645603,416789322,417128538,417213026,417234113,417254660,417268497,417279283,417299752,417337039,417384121,417403512,417406024,417443231,417557224,417580411,417608530,417732329,417733609,417820515,417949690,417993539,418000678,418536050,418600822,418604005,418654050,418812376,418902937,418949626,418980185,418998514,419165899,419222888,419317251,419377600,419458785,419504253,419561172,419682707,419844485,420098499,420145132,420178865,420351524,420392872,420595335,420596062,420923218,421103283,421189005,421235190,421311807,421583456,421636482,421651624,421690236,421785185,421813717,421814096,422093984,422202517,422343084,422456797,422563842,422808676,422877963,423247047,423295812,423412933,423667851,424353286,424385714,424765422,424831112,424913127,425262544,425335592,425391855,425451752,425497024,425728078,425750480,425889647,426037367,426048888,426160874,426267899,426382180,426570244,427137504,427298618,427304717,427563210,427589966,427644921,427831207,427841132,428355608,428358250,428448062,428625250,428693052,428693581,428731286,428789821,428873193,428906402,428911017,428950182,429033084,429061540,429128275,429433302,429481516,429646668,429647475,429706913,429734423,429767260,429896991,429989357,430052928,430088994,430132732,430142653,430252474,430274536,430300429,430454220,430520450,430567688,430576447,430641600,430658677,430684142,430722844,430745664,430771397,430808000,430949870,430997663,431106214,431155588,431192253,431304188,431313542,431435612,431465411,431467797,431491727,431508611,431555919,431557019,431601473,431611094,431615397,431689929,431857763,431870839,431971373,432013900,432084341,432096947,432258377,432320485,432340713,432648774,432775340,432922074,432968759,432987680,433067660,433217913,433219687,433311368,433431740,433448114,433472327,433552883,433780419,434202610,434439412,434462314,434508826,434517851,434599010,434766177,434788147,434827794,434933204,434999740,435001996,435036351,435292691,435379166,435383474,435449358,435456887,435533302,435616158,435630542,435728076,435779219,435955064,436048530,436105391,436115970,436174615,436275549,436453022,436562647,436793378,436819174,437330970,437400247,437539744,437845779,437848244,437925762,438031792,438125167,438153288,438263647,438269140,438523328,438555676,438624647,438962600,439024224,439077306,439174024,439245730,439261905,439360835,439404780,439492250,439526246,439528972,439731111,439803768,439843788,440298521,440320717,440721767,440723187,440723204,441169027,441206456,441348875,441370707,441462296,441616382,441673942,441867467,442018282,442107284,442172618,442384218,442414219,442468613,442548497,442583964,442674155,442757009,442883607,442919986,443054530,443204964,443206375,443237399,443466474,443490190,443617644,443629299,443694373,443783214,443814498,444096871,444213683,444331563,444426932,444437434,444613624,444662931,444738467,444776370,444820646,444865358,444879987,444928626,444977899,445065438,445146567,445213712,445313659,445461403,445484558,445499919,445634148,445637009,445675961,445728718,445842612,446065163,446117824,446272858,446294110,446368841,446458474,446538596,446621602,446764219,446857486,446931313,446989489,447076644,447214146,447235522,447346982,447359098,447389329,447393334,447438107,447457182,447682007,447688119,447785477,447820103,447842367,448259959,448411289,448423515,448453468,448603781,448620036,448688545,448695357,448748685,448780952,448923360,448948650,449065579,449108225,449232497,449875874,449887023,450057976,450108764,450155175,450171408,450187086,450546638,450599401,450656499,450686334,450798613,450829612,450839822,450846921,450897748,450970571,450990846,451001952,451092030,451098901,451266924,451320757,451339504,451373890,451421301,451522765,451757614,451864833,452214542,452217368,452236093,452388617,452417156,452484048,452886109,453029039,453169137,453224899,453278457,453314957,453674738,453699588,453776362,453926043,453935754,454039320,454044010,454215621,454344087,454376820,454469300,454520912,454838252,454964543,454988040,455008401,455036344,455183680,455193899,455215202,455221395,455224334,455281248,455643433,455705822,455754061,455873121,456181490,456213951,456342484,456533804,456582520,456588792,456712057,456872855,457008799,457068140,457073131,457241788,457292382,457364777,457393023,457632657,457760280,457795768,457835162,457852837,457892339,457903340,457917008,457979685,458144170,458504210,458520364,458650551,458655183,458701062,458710430,459195779,459282811,459320377,459323501,459363005,459602809,459987434,460106946,460246328,460313627,460631067,460682148,460880330,461049657,461050699,461117114,461276741,461368465,461659129,461722073,461731362,461740880,461815685,461920778,462148924,462178106,462199289,462211277,462554484,462757064,462807437,462896582,463045870,463085592,463153029,463285852,463410192,463575679,463586455,463646244,463647912,463667565,463862429,463945252,463965881,464269673,464312409,464412836,464703705,464779872,464787461,464839269,464847112,464987902,465034549,465054914,465081059,465254729,465292901,465832469,465884705,465890395,465937533,466248365,466261879,466304142,466333692,466517325,466645077,466848834,466985356,467036347,467186305,467205789,467208325,467376662,467445722,467513375,467538909,467552186,467598192,467697106,467814564,467896273,467922781,467929995,468012735,468291699,468317457,468428002,468772229,468780627,468793459,468971811,468981987,469171525,469377684,469436841,469473905,469735626,469904558,470078821,470166231,470359099,470395382,470433766,470522351,470572803,470584570,470722579,470863545,471535402,471603823,471643410,471695862,471768232,472139009,472272928,472330692,472435335,472659249,472842296,473026677,473028106,473037233,473122731,473295687,473661198,473668919,473732129,473823057,474088025,474103548,474180290,474389919,474665897,474710020,474878601,474883639,474922769,474940602,475100862,475165892,475235961,475277368,475320800,475475069,475729354,475740323,475880330,476090308,476161610,476196527,476226311,476331308,476382377,476420483,476427407,476630746,476654554,477193185,477202680,477357170,477872685,478276862,478773382,478969485,479022874,479292924,479434982,479516838,479591673,479795454,480094426,480126052,480653281,480671015,480701990,480711459,480724444,481273844,481404361,481498033,481920613,481969261,482162623,482170006,482530779,483072677,483074339,483078757,483131303,483187357,483199348,483284644,483543813,483565558,483674618,483806467,483935610,484007026,484008632,484069772,484484075,484570392,484631946,484656784,484673856,484754156,484885631,485158067,485182724,485294206,485574047,485649227,485724979,485832875,485857653,486053760,486340963,486511561,486572047,486647963,486746193,486934814,487473014,487717643,487730097,487858272,487970016,487978138,488088189,488136598,488319117,488351558,488408401,488492783,488626045,488667393,488684077,488753419,488772408,488823322,488833307,488982084,489016324,489130028,489576753,489721388,489920777,489924653,489938123,489965563,489994187,490198677,490264302,490305436,490310722,490442201,490484720,490507431,490520584,490610875,490740944,490825967,490903128,491357764,491430756,491506955,491508121,491518657,491585115,491650512,491959955,492146760,492152001,492189203,492214227,492240329,492430069,492458573,492615738,493233060,493264348,493306879,493666305,493673379,493835549,493851872,494194203,494370189,494597821,494840919,495362056,495366839,495451880,495454741,495670926,495672504,495825082,495913407,496192730,496440045,496634936,496752581,496963289,497107627,497112836,497326933,497342992,497819685,497948716,497979977,498010425,498294612,498469344,498704546,498708795,498765863,499550351,499850344,499984753,500200733,500262006,500276973,500326419,500635895,500805978,500937442,500967013,501097547,501227197,501306186,501783532,501795768,501974390,502043470,502445566,502465115,502596323,502654360,502794845,502878786,502889701,502968999,502979668,503276342,503330853,503384934,503443410,503757382,503763161,503897993,503901821,503902163,503916776,504012107,504022759,504078261,504143673,504240279,504297649,504322722,504567917,504686422,504767245,504800781,504808405,504921577,505096256,505182386,505473880,505518621,505518906,505914052,506124689,506136930,506275686,506331966,506527630,506686352,507029606,507345103,507400284,507623027,507768835,507951973,507976974,508050224,508082642,508163161,508231315,508311949,508398625,508599587,508705684,508756947,508758566,508760862,508789642,508796362,508908278,508922234,509448624,509594667,509602144,509706998,509970289,510347096,510625541,510810758,510892226,510970360,511051592,511187929,511339802,511440545,511448402,511601311,512069212,512148289,512345638,513114048,513239673,513350199,514147522,514192111,514347665,514392107,514544324,514605213,514825183,514898216,515025980,515187476,515218819,515425773,515679220,515698091,515763209,515937110,516085545,516192347,516424961,516678231,516707583,517396350,517452066,517521528,517610594,517720074,518021748,518183021,518332345,518643854,518716099,518737968,519086985,519238631,519377245,519419852,519604552,519712234,519746928,519757546,519849628,519899110,519923714,520218754,520219858,520796444,520812860,520847380,520969393,520970389,521249435,521552650,521627657,521752078,521773520,522077725,522318204,522325625,522504066,522534600,522589755,522672852,522942851,522988765,523240503,523446383,523824220,523877103,523911012,523990396,524142186,524475427,524616813,524745797,525091001,525404305,525901782,526003606,526217917,526451574,526593742,526708983,526873031,527101631,527158940,527254336,527396749,527412344,527417453,527437832,527476803,527573338,528062033,528170259,528275234,528325534,528583188,528691811,528752915,528863673,529506550,530396712,530487011,530613958,530655488,530841519,530929448,531005340,531050902,531227787,531275012,531391028,531419795,531549352,531552306,531628608,532157067,532711462,532760535,532820869,533204548,533695461,533698475,533850201,533893339,534550230,534802427,534945241,535109916,535126831,535134123,535144261,535728555,535780378,535939165,536205973,536287444,536360390,536436625,536547289,536740835,536800904,536926851,536944719,537574560,537796534,537875759,538081402,538294952,538755563,539380202,539450574,539545566,539637963,539651797,539699576,539809637,539946008,539967014,540096878,540335885,540581353,540689369,540770632,540968678,541003008,541047227,541310385,541444122,541530799,541577884,541582346,541848556,541912714,542093230,542386911,542486376,542632536,542671538,542721267,542945152,543185447,543622426,543809505,543863221,543934162,544003443,544024063,544542891,544655524,544735048,544814070,544921812,545158994,545505341,545592994,545612371,545871995,546035582,546227909,546265864,546424544,546447386,546492910,546576451,546657521,546719950,546812303,546830851,547142271,547276490,547560887,547562077,547661489,547689364,547943502,547979540,548168567,548203999,548472455,548507775,548520368,548571109,548591287,548625965,548671968,548985952,549124691,549518701,549707678,550091828,550120208,550414585,550438051,550448709,550487683,550504958,550642404,551026685,551087610,551109481,552390762,552444012,552780498,553099953,553633700,553745916,553995312,554004810,554578166,554608589,554641310,555069081,555618381,556060038,556091347,556098027,556258176,556468348,556566390,556656598,556702227,556709496,556929012,557084002,557201285,557207839,557332224,557596399,557775486,557969688,558249374,558281649,558355764,558377054,558626005,558662660,558685715,558882445,559124420,559238369,559270083,559309569,559311742,559335567,559497062,559709940,559844391,559851130,560054790,560134794,560176709,560238201,560351428,560574156,560666211,560952509,561055232,561066545,561213843,561245217,561768980,561848115,561870821,561876859,561922491,563097165,563137310,563221992,563428358,563716343,563751267,563858542,564301789,564317362,564373769,564756534,564763528,565241595,565591513,565723718,565750373,565869429,566184170,566302764,566474759,566757446,566985732,567290011,567577480,567742475,568268967,568305578,568348759,568853961,569048914,569177305,569484918,569573112,570151820,570179006,570333557,570829980,571560416,572043964,572617067,572994689,573441371,573496189,574414768,574484066,574484095,574710514,576131262,576181583,576416516,577230751,577367873,577490342,577509220,577679079,577954876,578143405,578236311,578282453,579128019,579331872,579416943,579947096,580036135,580081986,580274409,580283674,580308916,580398444,580418620,581213347,581596951,581768752,581770246,582329089,582439998,582966174,583333167,583772962,584440371,584585415,584703122,585152077,585440170,585758044,586431630,586484881,587042910,587203309,587752654,587811839,588446992,588585359,588605494,588662426,588886986,589579852,590035565,590346340,590414104,590818352,590947065,591276730,591735363,591765366,591950971,592098600,592287664,592623385,592669720,592683198,593019298,593309147,593674426,594382201,596807076,597527719,597910119,597939287,598241771,598667500,598894602,598968391,599118271,599179950,599532580,599597502,599873458,599902040,600117362,600165615,600979154,601245346,601280151,601388878,601520601,601679201,602595411,602737670,602787188,602943820,603177870,603261283,603340019,603473655,603858819,604062733,604205408,604706355,604893453,605262282,605835589,606179791,607808663,608035438,608427981,608491246,608590094,608715657,608792974,609577665,610113016,610734753,611270285,612435697,612452821,612475246,612556019,612633854,612636937,612869548,612886757,612892774,612893160,612898039,613012732,613031778,613644933,613959819,614655691]
39,826.5
79,652
0.897317
8,175
79,653
8.742997
1
0
0
0
0
0
0
0
0
0
0
0.897313
0.000038
79,653
1
79,653
79,653
0.000038
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1
1
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
8c1e3e2a8559c674e7e1d9ee96f7271006c71610
62
py
Python
src/clusto/drivers/locations/datacenters/__init__.py
rongoro/clusto
d6425433e5132e8778feeb9db4b8dd80b933b030
[ "BSD-3-Clause" ]
5
2015-07-19T08:28:01.000Z
2021-07-08T14:49:27.000Z
src/clusto/drivers/locations/datacenters/__init__.py
wt/clusto
c114ce7c42dcfa33c1e79f4d3b49313115fea06b
[ "BSD-3-Clause" ]
null
null
null
src/clusto/drivers/locations/datacenters/__init__.py
wt/clusto
c114ce7c42dcfa33c1e79f4d3b49313115fea06b
[ "BSD-3-Clause" ]
5
2015-01-06T07:57:07.000Z
2021-11-10T18:01:33.000Z
from basicdatacenter import * from equinixdatacenter import *
20.666667
31
0.83871
6
62
8.666667
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.129032
62
2
32
31
0.962963
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
8c3cb889311e24cca877562ca5e1474b951e9e35
42
py
Python
app/recognition/core.py
piotrdubiel/scribeserver
81aa56d89bfc912a624952618bb7be400b0070e8
[ "MIT" ]
null
null
null
app/recognition/core.py
piotrdubiel/scribeserver
81aa56d89bfc912a624952618bb7be400b0070e8
[ "MIT" ]
null
null
null
app/recognition/core.py
piotrdubiel/scribeserver
81aa56d89bfc912a624952618bb7be400b0070e8
[ "MIT" ]
null
null
null
def recognize_and_save(gesure): pass
10.5
31
0.738095
6
42
4.833333
1
0
0
0
0
0
0
0
0
0
0
0
0.190476
42
3
32
14
0.852941
0
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
5
8c3cda3649ff70b1345cd2ad80674f7f53cc2318
4,897
py
Python
tests/test_linkedlist.py
stoyan3d/python-algorithms
1d18647c821d4dac04b7d7c98443a3218f6348a6
[ "MIT" ]
null
null
null
tests/test_linkedlist.py
stoyan3d/python-algorithms
1d18647c821d4dac04b7d7c98443a3218f6348a6
[ "MIT" ]
null
null
null
tests/test_linkedlist.py
stoyan3d/python-algorithms
1d18647c821d4dac04b7d7c98443a3218f6348a6
[ "MIT" ]
null
null
null
import unittest from datastructures.linkedlist import LinkedList, DoublyLinkedList class TestLinkedList(unittest.TestCase): def setUp(self) -> None: self.linked_list = LinkedList() def test_append(self): data = 'something' self.linked_list.append(data) self.assertEqual(data, self.linked_list.read(0)) data = 'else' self.linked_list.append(data) self.assertEqual(data, self.linked_list.read(1)) data = 'happened' self.linked_list.append(data) self.assertEqual(data, self.linked_list.read(2)) def test_read(self): self.linked_list.append(20) self.assertEqual(20, self.linked_list.read(0)) self.linked_list.append(10) self.assertEqual(10, self.linked_list.read(1)) def test_read_index_out_of_range(self): with self.assertRaises(IndexError) as c: self.linked_list.read(0) self.assertIn('Linked List index out of range', str(c.exception)) self.linked_list.append('hello') with self.assertRaises(IndexError) as c: self.linked_list.read(3) self.assertIn('Linked List index out of range', str(c.exception)) with self.assertRaises(IndexError) as c: self.linked_list.read(1) self.assertIn('Linked List index out of range', str(c.exception)) def test_insert(self): self.linked_list.append(3) self.linked_list.append(6) self.linked_list.append(8) self.linked_list.insert(1, 'bee') self.linked_list.insert(2, 120) self.assertEqual('bee', self.linked_list.read(1)) self.assertEqual(120, self.linked_list.read(2)) self.assertEqual(6, self.linked_list.read(3)) self.linked_list.insert(0, 'first') self.assertEqual('first', self.linked_list.read(0)) self.assertEqual(3, self.linked_list.read(1)) def test_insert_with_bigger_index(self): self.linked_list.append(3) self.linked_list.append(6) self.linked_list.append(8) self.linked_list.insert(6, 'test') self.assertEqual('test', self.linked_list.read(3)) def test_index_of(self): self.linked_list.append(3) self.linked_list.append(6) self.linked_list.append(8) self.assertEqual(0, self.linked_list.index_of(3)) self.assertEqual(1, self.linked_list.index_of(6)) self.assertEqual(2, self.linked_list.index_of(8)) self.assertIsNone(self.linked_list.index_of(10)) def test_delete(self): self.linked_list.append(3) self.linked_list.append(6) self.linked_list.append(8) self.linked_list.append(10) self.linked_list.delete(0) self.assertEqual(6, self.linked_list.read(0)) self.linked_list.delete(1) self.assertEqual(10, self.linked_list.read(1)) def test_delete_out_of_range(self): with self.assertRaises(IndexError) as c: self.linked_list.delete(0) self.assertIn('Linked List index out of range', str(c.exception)) self.linked_list.append(3) self.linked_list.append(6) self.linked_list.append(8) with self.assertRaises(IndexError) as c: self.linked_list.delete(3) self.assertIn('Linked List index out of range', str(c.exception)) with self.assertRaises(IndexError) as c: self.linked_list.delete(10) self.assertIn('Linked List index out of range', str(c.exception)) def test_print(self): self.linked_list.append('apple') self.linked_list.append('orange') self.linked_list.append('pear') self.linked_list.print() def test_read_last(self): self.linked_list.append(3) self.linked_list.append(6) self.linked_list.append(8) self.assertEqual(8, self.linked_list.read_last()) self.linked_list.delete(2) self.assertEqual(6, self.linked_list.read_last()) def test_reverse(self): self.linked_list.append('a') self.linked_list.append('b') self.linked_list.append('c') self.linked_list.reverse() self.assertEqual('c', self.linked_list.read(0)) self.assertEqual('b', self.linked_list.read(1)) self.assertEqual('a', self.linked_list.read(2)) class TestDoublyLinkedList(TestLinkedList): def setUp(self) -> None: self.linked_list = DoublyLinkedList() def test_print_reversed(self): self.linked_list.append('apple') self.linked_list.append('orange') self.linked_list.append('pear') self.linked_list.print_reversed() def test_read_last(self): self.linked_list.append('a') self.linked_list.append('b') self.linked_list.append('c') self.assertEqual('c', self.linked_list.last_node.data) def test_reverse(self): pass
32.646667
73
0.651623
665
4,897
4.627068
0.094737
0.272993
0.354891
0.240494
0.795905
0.733182
0.705882
0.628209
0.58401
0.574261
0
0.020839
0.225853
4,897
149
74
32.865772
0.79082
0
0
0.5
0
0
0.055136
0
0
0
0
0
0.307018
1
0.140351
false
0.008772
0.017544
0
0.175439
0.035088
0
0
0
null
1
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
5
8c3f45fc29a40c2be07dced35d25fd769861b976
82
py
Python
core/src/zeit/addcentral/interfaces.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/addcentral/interfaces.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/addcentral/interfaces.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
# BBB from zeit.cms.content.interfaces import IContentAdder, IAddLocation # noqa
27.333333
75
0.804878
10
82
6.6
1
0
0
0
0
0
0
0
0
0
0
0
0.121951
82
2
76
41
0.916667
0.097561
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
4ff0284e8b46be82c056e7f6d981978b4cce9c4e
37
py
Python
casbin/rbac/default_role_manager/__init__.py
goodrain/pycasbin
1a481ba1af7619e1cc7e83896581d14976927d80
[ "Apache-2.0" ]
1
2019-12-24T17:47:37.000Z
2019-12-24T17:47:37.000Z
casbin/rbac/default_role_manager/__init__.py
goodrain/pycasbin
1a481ba1af7619e1cc7e83896581d14976927d80
[ "Apache-2.0" ]
1
2020-10-26T17:02:45.000Z
2020-10-26T17:02:45.000Z
casbin/rbac/default_role_manager/__init__.py
goodrain/pycasbin
1a481ba1af7619e1cc7e83896581d14976927d80
[ "Apache-2.0" ]
2
2020-10-23T16:52:00.000Z
2021-01-26T00:22:25.000Z
from .role_manager import RoleManager
37
37
0.891892
5
37
6.4
1
0
0
0
0
0
0
0
0
0
0
0
0.081081
37
1
37
37
0.941176
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
8b03caa930bce55fc16505291c98f3a677d6c58f
161
py
Python
backend/course/filters.py
Floran-Github/CoderHifi-Code
6264edcea55fa5945d401d55d8cd7493bf4114eb
[ "Apache-2.0" ]
1
2021-02-24T13:43:42.000Z
2021-02-24T13:43:42.000Z
backend/course/filters.py
Floran-Github/CoderHifi-Code
6264edcea55fa5945d401d55d8cd7493bf4114eb
[ "Apache-2.0" ]
null
null
null
backend/course/filters.py
Floran-Github/CoderHifi-Code
6264edcea55fa5945d401d55d8cd7493bf4114eb
[ "Apache-2.0" ]
1
2021-10-05T19:17:51.000Z
2021-10-05T19:17:51.000Z
import django_filters from .models import * class quizFilter(django_filters.FilterSet): class Meta: model = course fields = ['course_name']
20.125
43
0.689441
18
161
6
0.722222
0.240741
0
0
0
0
0
0
0
0
0
0
0.229814
161
7
44
23
0.870968
0
0
0
0
0
0.068323
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
1
0
0
5
8b07df0a5d332d1c0da316e5dc1474a717d0dc80
180
py
Python
hzkerberos/__init__.py
yuce/hazelcast-python-client-kerberos
f00181b9264eec1887ad7ff7f860aadac91e8e6f
[ "Apache-2.0" ]
2
2021-09-02T15:07:48.000Z
2021-12-31T03:26:55.000Z
hzkerberos/__init__.py
yuce/hazelcast-python-client-kerberos
f00181b9264eec1887ad7ff7f860aadac91e8e6f
[ "Apache-2.0" ]
null
null
null
hzkerberos/__init__.py
yuce/hazelcast-python-client-kerberos
f00181b9264eec1887ad7ff7f860aadac91e8e6f
[ "Apache-2.0" ]
2
2021-08-30T08:22:43.000Z
2021-08-30T08:23:46.000Z
import logging from .errors import KerberosError, TokenRetrievalError from .token_provider import TokenProvider logging.getLogger("hzkerberos").addHandler(logging.NullHandler())
25.714286
65
0.844444
18
180
8.388889
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.077778
180
6
66
30
0.909639
0
0
0
0
0
0.055556
0
0
0
0
0
0
1
0
true
0
0.75
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
0
1
0
1
0
1
0
0
5
8b38f781e963831dbdce94a17ac19d159d142503
11,276
py
Python
maxwell/hw/channel_gpfifo.py
Pascalinette/random_scripts
25d58fbc2de8e5828193529bee966af1f5aefec3
[ "MIT" ]
1
2022-03-27T20:41:51.000Z
2022-03-27T20:41:51.000Z
maxwell/hw/channel_gpfifo.py
Pascalinette/random_scripts
25d58fbc2de8e5828193529bee966af1f5aefec3
[ "MIT" ]
null
null
null
maxwell/hw/channel_gpfifo.py
Pascalinette/random_scripts
25d58fbc2de8e5828193529bee966af1f5aefec3
[ "MIT" ]
null
null
null
# AUTOGENERATED: DO NOT EDIT # Last update date: 2022-02-05 01:36:27.062469 from ctypes import * from utils import * MAXWELL_CHANNEL_GPFIFO_A: int = 0xB06F NVB06F_NUMBER_OF_SUBCHANNELS: int = 0x8 NVB06F_SET_OBJECT: int = 0x0 NVB06F_SET_OBJECT_ENGINE_SW: int = 0x1F NVB06F_ILLEGAL: int = 0x4 NVB06F_NOP: int = 0x8 NVB06F_SEMAPHOREA: int = 0x10 NVB06F_SEMAPHOREB: int = 0x14 NVB06F_SEMAPHOREC: int = 0x18 NVB06F_SEMAPHORED: int = 0x1C NVB06F_SEMAPHORED_OPERATION_ACQUIRE: int = 0x1 NVB06F_SEMAPHORED_OPERATION_RELEASE: int = 0x2 NVB06F_SEMAPHORED_OPERATION_ACQ_GEQ: int = 0x4 NVB06F_SEMAPHORED_OPERATION_ACQ_AND: int = 0x8 NVB06F_SEMAPHORED_OPERATION_REDUCTION: int = 0x10 NVB06F_SEMAPHORED_ACQUIRE_SWITCH_DISABLED: int = 0x0 NVB06F_SEMAPHORED_ACQUIRE_SWITCH_ENABLED: int = 0x1 NVB06F_SEMAPHORED_RELEASE_WFI_EN: int = 0x0 NVB06F_SEMAPHORED_RELEASE_WFI_DIS: int = 0x1 NVB06F_SEMAPHORED_RELEASE_SIZE_16BYTE: int = 0x0 NVB06F_SEMAPHORED_RELEASE_SIZE_4BYTE: int = 0x1 NVB06F_SEMAPHORED_REDUCTION_MIN: int = 0x0 NVB06F_SEMAPHORED_REDUCTION_MAX: int = 0x1 NVB06F_SEMAPHORED_REDUCTION_XOR: int = 0x2 NVB06F_SEMAPHORED_REDUCTION_AND: int = 0x3 NVB06F_SEMAPHORED_REDUCTION_OR: int = 0x4 NVB06F_SEMAPHORED_REDUCTION_ADD: int = 0x5 NVB06F_SEMAPHORED_REDUCTION_INC: int = 0x6 NVB06F_SEMAPHORED_REDUCTION_DEC: int = 0x7 NVB06F_SEMAPHORED_FORMAT_SIGNED: int = 0x0 NVB06F_SEMAPHORED_FORMAT_UNSIGNED: int = 0x1 NVB06F_NON_STALL_INTERRUPT: int = 0x20 NVB06F_FB_FLUSH: int = 0x24 NVB06F_MEM_OP_C: int = 0x30 NVB06F_MEM_OP_C_TLB_INVALIDATE_PDB_ONE: int = 0x0 NVB06F_MEM_OP_C_TLB_INVALIDATE_PDB_ALL: int = 0x1 NVB06F_MEM_OP_C_TLB_INVALIDATE_GPC_ENABLE: int = 0x0 NVB06F_MEM_OP_C_TLB_INVALIDATE_GPC_DISABLE: int = 0x1 NVB06F_MEM_OP_C_TLB_INVALIDATE_TARGET_VID_MEM: int = 0x0 NVB06F_MEM_OP_C_TLB_INVALIDATE_TARGET_SYS_MEM_COHERENT: int = 0x2 NVB06F_MEM_OP_C_TLB_INVALIDATE_TARGET_SYS_MEM_NONCOHERENT: int = 0x3 NVB06F_MEM_OP_D: int = 0x34 NVB06F_MEM_OP_D_OPERATION_MEMBAR: int = 0x5 NVB06F_MEM_OP_D_OPERATION_MMU_TLB_INVALIDATE: int = 0x9 NVB06F_MEM_OP_D_OPERATION_L2_PEERMEM_INVALIDATE: int = 0xD NVB06F_MEM_OP_D_OPERATION_L2_SYSMEM_INVALIDATE: int = 0xE NVB06F_MEM_OP_D_OPERATION_L2_CLEAN_COMPTAGS: int = 0xF NVB06F_MEM_OP_D_OPERATION_L2_FLUSH_DIRTY: int = 0x10 NVB06F_SET_REFERENCE: int = 0x50 NVB06F_WFI: int = 0x78 NVB06F_WFI_SCOPE_CURRENT_SCG_TYPE: int = 0x0 NVB06F_WFI_SCOPE_ALL: int = 0x1 NVB06F_CRC_CHECK: int = 0x7C NVB06F_YIELD: int = 0x80 NVB06F_YIELD_OP_NOP: int = 0x0 NVB06F_YIELD_OP_PBDMA_TIMESLICE: int = 0x1 NVB06F_YIELD_OP_RUNLIST_TIMESLICE: int = 0x2 NVB06F_YIELD_OP_TSG: int = 0x3 NVB06F_GP_ENTRY__SIZE: int = 0x8 NVB06F_GP_ENTRY0_FETCH_UNCONDITIONAL: int = 0x0 NVB06F_GP_ENTRY0_FETCH_CONDITIONAL: int = 0x1 NVB06F_GP_ENTRY1_PRIV_USER: int = 0x0 NVB06F_GP_ENTRY1_PRIV_KERNEL: int = 0x1 NVB06F_GP_ENTRY1_LEVEL_MAIN: int = 0x0 NVB06F_GP_ENTRY1_LEVEL_SUBROUTINE: int = 0x1 NVB06F_GP_ENTRY1_SYNC_PROCEED: int = 0x0 NVB06F_GP_ENTRY1_SYNC_WAIT: int = 0x1 NVB06F_GP_ENTRY1_OPCODE_NOP: int = 0x0 NVB06F_GP_ENTRY1_OPCODE_ILLEGAL: int = 0x1 NVB06F_GP_ENTRY1_OPCODE_GP_CRC: int = 0x2 NVB06F_GP_ENTRY1_OPCODE_PB_CRC: int = 0x3 NVB06F_DMA_TERT_OP_GRP0_INC_METHOD: int = 0x0 NVB06F_DMA_TERT_OP_GRP0_SET_SUB_DEV_MASK: int = 0x1 NVB06F_DMA_TERT_OP_GRP0_STORE_SUB_DEV_MASK: int = 0x2 NVB06F_DMA_TERT_OP_GRP0_USE_SUB_DEV_MASK: int = 0x3 NVB06F_DMA_TERT_OP_GRP2_NON_INC_METHOD: int = 0x0 NVB06F_DMA_SEC_OP_GRP0_USE_TERT: int = 0x0 NVB06F_DMA_SEC_OP_INC_METHOD: int = 0x1 NVB06F_DMA_SEC_OP_GRP2_USE_TERT: int = 0x2 NVB06F_DMA_SEC_OP_NON_INC_METHOD: int = 0x3 NVB06F_DMA_SEC_OP_IMMD_DATA_METHOD: int = 0x4 NVB06F_DMA_SEC_OP_ONE_INC: int = 0x5 NVB06F_DMA_SEC_OP_RESERVED6: int = 0x6 NVB06F_DMA_SEC_OP_END_PB_SEGMENT: int = 0x7 NVB06F_DMA_INCR_OPCODE_VALUE: int = 0x1 NVB06F_DMA_NONINCR_OPCODE_VALUE: int = 0x3 NVB06F_DMA_ONEINCR_OPCODE_VALUE: int = 0x5 NVB06F_DMA_NOP: int = 0x0 NVB06F_DMA_IMMD_OPCODE_VALUE: int = 0x4 NVB06F_DMA_SET_SUBDEVICE_MASK_OPCODE_VALUE: int = 0x1 NVB06F_DMA_STORE_SUBDEVICE_MASK_OPCODE_VALUE: int = 0x2 NVB06F_DMA_USE_SUBDEVICE_MASK_OPCODE_VALUE: int = 0x3 NVB06F_DMA_ENDSEG_OPCODE_VALUE: int = 0x7 NVB06F_DMA_OPCODE3_NONE: int = 0x0 NVB06F_DMA_OPCODE_METHOD: int = 0x0 NVB06F_DMA_OPCODE_NONINC_METHOD: int = 0x2 def NVB06F_SET_OBJECT_NVCLASS(value: int) -> int: return set_bits(0, 15, value) def NVB06F_SET_OBJECT_ENGINE(value: int) -> int: return set_bits(16, 4, value) def NVB06F_ILLEGAL_HANDLE(value: int) -> int: return set_bits(0, 31, value) def NVB06F_NOP_HANDLE(value: int) -> int: return set_bits(0, 31, value) def NVB06F_SEMAPHOREA_OFFSET_UPPER(value: int) -> int: return set_bits(0, 7, value) def NVB06F_SEMAPHOREB_OFFSET_LOWER(value: int) -> int: return set_bits(2, 29, value) def NVB06F_SEMAPHOREC_PAYLOAD(value: int) -> int: return set_bits(0, 31, value) def NVB06F_SEMAPHORED_OPERATION(value: int) -> int: return set_bits(0, 4, value) def NVB06F_SEMAPHORED_ACQUIRE_SWITCH(value: int) -> int: return set_bits(12, 0, value) def NVB06F_SEMAPHORED_RELEASE_WFI(value: int) -> int: return set_bits(20, 0, value) def NVB06F_SEMAPHORED_RELEASE_SIZE(value: int) -> int: return set_bits(24, 0, value) def NVB06F_SEMAPHORED_REDUCTION(value: int) -> int: return set_bits(27, 3, value) def NVB06F_SEMAPHORED_FORMAT(value: int) -> int: return set_bits(31, 0, value) def NVB06F_NON_STALL_INTERRUPT_HANDLE(value: int) -> int: return set_bits(0, 31, value) def NVB06F_FB_FLUSH_HANDLE(value: int) -> int: return set_bits(0, 31, value) def NVB06F_MEM_OP_C_OPERAND_LOW(value: int) -> int: return set_bits(2, 29, value) def NVB06F_MEM_OP_C_TLB_INVALIDATE_PDB(value: int) -> int: return set_bits(0, 0, value) def NVB06F_MEM_OP_C_TLB_INVALIDATE_GPC(value: int) -> int: return set_bits(1, 0, value) def NVB06F_MEM_OP_C_TLB_INVALIDATE_TARGET(value: int) -> int: return set_bits(10, 1, value) def NVB06F_MEM_OP_C_TLB_INVALIDATE_ADDR_LO(value: int) -> int: return set_bits(12, 19, value) def NVB06F_MEM_OP_D_OPERAND_HIGH(value: int) -> int: return set_bits(0, 7, value) def NVB06F_MEM_OP_D_OPERATION(value: int) -> int: return set_bits(27, 4, value) def NVB06F_MEM_OP_D_TLB_INVALIDATE_ADDR_HI(value: int) -> int: return set_bits(0, 7, value) def NVB06F_SET_REFERENCE_COUNT(value: int) -> int: return set_bits(0, 31, value) def NVB06F_WFI_SCOPE(value: int) -> int: return set_bits(0, 0, value) def NVB06F_CRC_CHECK_VALUE(value: int) -> int: return set_bits(0, 31, value) def NVB06F_YIELD_OP(value: int) -> int: return set_bits(0, 1, value) def NVB06F_GP_ENTRY0_FETCH(value: int) -> int: return set_bits(0, 0, value) def NVB06F_GP_ENTRY0_GET(value: int) -> int: return set_bits(2, 29, value) def NVB06F_GP_ENTRY0_OPERAND(value: int) -> int: return set_bits(0, 31, value) def NVB06F_GP_ENTRY1_GET_HI(value: int) -> int: return set_bits(0, 7, value) def NVB06F_GP_ENTRY1_PRIV(value: int) -> int: return set_bits(8, 0, value) def NVB06F_GP_ENTRY1_LEVEL(value: int) -> int: return set_bits(9, 0, value) def NVB06F_GP_ENTRY1_LENGTH(value: int) -> int: return set_bits(10, 20, value) def NVB06F_GP_ENTRY1_SYNC(value: int) -> int: return set_bits(31, 0, value) def NVB06F_GP_ENTRY1_OPCODE(value: int) -> int: return set_bits(0, 7, value) def NVB06F_DMA_METHOD_ADDRESS_OLD(value: int) -> int: return set_bits(2, 10, value) def NVB06F_DMA_METHOD_ADDRESS(value: int) -> int: return set_bits(0, 11, value) def NVB06F_DMA_SUBDEVICE_MASK(value: int) -> int: return set_bits(4, 11, value) def NVB06F_DMA_METHOD_SUBCHANNEL(value: int) -> int: return set_bits(13, 2, value) def NVB06F_DMA_TERT_OP(value: int) -> int: return set_bits(16, 1, value) def NVB06F_DMA_METHOD_COUNT_OLD(value: int) -> int: return set_bits(18, 10, value) def NVB06F_DMA_METHOD_COUNT(value: int) -> int: return set_bits(16, 12, value) def NVB06F_DMA_IMMD_DATA(value: int) -> int: return set_bits(16, 12, value) def NVB06F_DMA_SEC_OP(value: int) -> int: return set_bits(29, 2, value) def NVB06F_DMA_INCR_ADDRESS(value: int) -> int: return set_bits(0, 11, value) def NVB06F_DMA_INCR_SUBCHANNEL(value: int) -> int: return set_bits(13, 2, value) def NVB06F_DMA_INCR_COUNT(value: int) -> int: return set_bits(16, 12, value) def NVB06F_DMA_INCR_OPCODE(value: int) -> int: return set_bits(29, 2, value) def NVB06F_DMA_INCR_DATA(value: int) -> int: return set_bits(0, 31, value) def NVB06F_DMA_NONINCR_ADDRESS(value: int) -> int: return set_bits(0, 11, value) def NVB06F_DMA_NONINCR_SUBCHANNEL(value: int) -> int: return set_bits(13, 2, value) def NVB06F_DMA_NONINCR_COUNT(value: int) -> int: return set_bits(16, 12, value) def NVB06F_DMA_NONINCR_OPCODE(value: int) -> int: return set_bits(29, 2, value) def NVB06F_DMA_NONINCR_DATA(value: int) -> int: return set_bits(0, 31, value) def NVB06F_DMA_ONEINCR_ADDRESS(value: int) -> int: return set_bits(0, 11, value) def NVB06F_DMA_ONEINCR_SUBCHANNEL(value: int) -> int: return set_bits(13, 2, value) def NVB06F_DMA_ONEINCR_COUNT(value: int) -> int: return set_bits(16, 12, value) def NVB06F_DMA_ONEINCR_OPCODE(value: int) -> int: return set_bits(29, 2, value) def NVB06F_DMA_ONEINCR_DATA(value: int) -> int: return set_bits(0, 31, value) def NVB06F_DMA_IMMD_ADDRESS(value: int) -> int: return set_bits(0, 11, value) def NVB06F_DMA_IMMD_SUBCHANNEL(value: int) -> int: return set_bits(13, 2, value) def NVB06F_DMA_IMMD_DATA(value: int) -> int: return set_bits(16, 12, value) def NVB06F_DMA_IMMD_OPCODE(value: int) -> int: return set_bits(29, 2, value) def NVB06F_DMA_SET_SUBDEVICE_MASK_VALUE(value: int) -> int: return set_bits(4, 11, value) def NVB06F_DMA_SET_SUBDEVICE_MASK_OPCODE(value: int) -> int: return set_bits(16, 15, value) def NVB06F_DMA_STORE_SUBDEVICE_MASK_VALUE(value: int) -> int: return set_bits(4, 11, value) def NVB06F_DMA_STORE_SUBDEVICE_MASK_OPCODE(value: int) -> int: return set_bits(16, 15, value) def NVB06F_DMA_USE_SUBDEVICE_MASK_OPCODE(value: int) -> int: return set_bits(16, 15, value) def NVB06F_DMA_ENDSEG_OPCODE(value: int) -> int: return set_bits(29, 2, value) def NVB06F_DMA_ADDRESS(value: int) -> int: return set_bits(2, 10, value) def NVB06F_DMA_SUBCH(value: int) -> int: return set_bits(13, 2, value) def NVB06F_DMA_OPCODE3(value: int) -> int: return set_bits(16, 1, value) def NVB06F_DMA_COUNT(value: int) -> int: return set_bits(18, 10, value) def NVB06F_DMA_OPCODE(value: int) -> int: return set_bits(29, 2, value) def NVB06F_DMA_DATA(value: int) -> int: return set_bits(0, 31, value) class _clb06f_tag0(Structure): _fields_ = [ ("Ignored00", c_int * 16), ("Put", c_int), ("Get", c_int), ("Reference", c_int), ("PutHi", c_int), ("Ignored01", c_int * 2), ("TopLevelGet", c_int), ("TopLevelGetHi", c_int), ("GetHi", c_int), ("Ignored02", c_int * 7), ("Ignored03", c_int), ("Ignored04", c_int * 1), ("GPGet", c_int), ("GPPut", c_int), ("Ignored05", c_int * 92), ]
25.862385
68
0.752217
1,855
11,276
4.167116
0.127224
0.086934
0.10815
0.167141
0.665071
0.586546
0.483182
0.434282
0.39392
0.37749
0
0.089252
0.153423
11,276
435
69
25.921839
0.720511
0.006297
0
0.235075
1
0
0.010091
0
0
0
0.027326
0
0
1
0.283582
false
0
0.007463
0.283582
0.58209
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
1
1
0
0
5
8c8a9ae11f4d292a87fbf1456a0ba7266008e1de
180
py
Python
rstviewer.py
albertvisser/rst2html
b72bbd43fd8ffd1edf88442b85a4e7db6ac80788
[ "MIT" ]
3
2019-11-03T09:45:20.000Z
2021-11-06T16:09:51.000Z
rstviewer.py
albertvisser/rst2html
b72bbd43fd8ffd1edf88442b85a4e7db6ac80788
[ "MIT" ]
null
null
null
rstviewer.py
albertvisser/rst2html
b72bbd43fd8ffd1edf88442b85a4e7db6ac80788
[ "MIT" ]
1
2020-10-20T21:19:22.000Z
2020-10-20T21:19:22.000Z
#! /usr/bin/env python3 """Startup script for previewing a ReStructured Text document """ import sys from tohtml.fromrst import main main(sys.argv[1] if len(sys.argv) > 1 else '')
25.714286
61
0.733333
29
180
4.551724
0.793103
0.106061
0.121212
0
0
0
0
0
0
0
0
0.019355
0.138889
180
6
62
30
0.832258
0.45
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
8cd87e3de7ee0c7ed73fb818f3d248eec8ca8458
151
py
Python
gmailfilter/messageutils.py
thomir/gmailfilter
159b3cf61941fbe019b2281e9cf705da8b1f7f6a
[ "MIT" ]
null
null
null
gmailfilter/messageutils.py
thomir/gmailfilter
159b3cf61941fbe019b2281e9cf705da8b1f7f6a
[ "MIT" ]
null
null
null
gmailfilter/messageutils.py
thomir/gmailfilter
159b3cf61941fbe019b2281e9cf705da8b1f7f6a
[ "MIT" ]
null
null
null
from email.utils import parseaddr def get_list_id(message): list_id = message.get_headers().get('List-Id', '') return parseaddr(list_id)[1]
18.875
54
0.708609
23
151
4.434783
0.565217
0.235294
0.176471
0
0
0
0
0
0
0
0
0.007813
0.152318
151
7
55
21.571429
0.789063
0
0
0
0
0
0.046667
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.75
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
8cdf18c9f671590fb6e7ba645c3e893be69c21bd
552
py
Python
units/length/inches.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
units/length/inches.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
units/length/inches.py
putridparrot/PyUnits
4f1095c6fc0bee6ba936921c391913dbefd9307c
[ "MIT" ]
null
null
null
# <auto-generated> # This code was generated by the UnitCodeGenerator tool # # Changes to this file will be lost if the code is regenerated # </auto-generated> def to_millimetres(value): return value * 25.4 def to_centimetres(value): return value * 2.54 def to_metres(value): return value / 39.37007874 def to_kilometres(value): return value / 39370.07874 def to_feet(value): return value / 12.0 def to_yards(value): return value / 36.0 def to_miles(value): return value / 63360.0 def to_nautical_miles(value): return value / 72913.4
23
62
0.737319
89
552
4.47191
0.47191
0.100503
0.321608
0.105528
0
0
0
0
0
0
0
0.095861
0.168478
552
23
63
24
0.771242
0.269928
0
0
1
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
1
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
50984c18807d088c0c0ebbad5e155865c9641bad
115
py
Python
pyrunner/__init__.py
Comcast/python-batch-runner
ec918f2cd62c1f4d26e52aa9bba5d08e15d107bd
[ "Apache-2.0" ]
21
2019-07-03T18:01:16.000Z
2022-02-23T04:02:03.000Z
pyrunner/__init__.py
Othello1111/python-batch-runner
0b3355c2f95161c267dd4d5faa37e1b418e4f266
[ "Apache-2.0" ]
11
2019-08-22T13:16:09.000Z
2022-02-22T21:48:49.000Z
pyrunner/__init__.py
Othello1111/python-batch-runner
0b3355c2f95161c267dd4d5faa37e1b418e4f266
[ "Apache-2.0" ]
6
2020-10-07T16:43:50.000Z
2022-02-09T17:25:51.000Z
from .core.pyrunner import PyRunner from .worker.abstract import Worker from .worker.shellworker import ShellWorker
38.333333
43
0.852174
15
115
6.533333
0.466667
0.204082
0
0
0
0
0
0
0
0
0
0
0.095652
115
3
43
38.333333
0.942308
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
50ce693b8053bb77ab2f1e6fee9fc64a903e5f05
110
py
Python
old-backend/major.py
aslupin/KUnit-1
8274e0535f63a21b3d3d6174658fd4174103d714
[ "MIT" ]
1
2021-08-16T19:59:10.000Z
2021-08-16T19:59:10.000Z
old-backend/major.py
aslupin/KUnit-1
8274e0535f63a21b3d3d6174658fd4174103d714
[ "MIT" ]
7
2020-01-07T05:52:18.000Z
2022-02-26T12:36:41.000Z
old-backend/major.py
aslupin/KUnit-1
8274e0535f63a21b3d3d6174658fd4174103d714
[ "MIT" ]
3
2019-09-09T17:19:57.000Z
2021-08-23T16:53:09.000Z
unitPM = eval(open("unitPM.json").read()) #print(unitPM) def unitOf(majorID): return unitPM[str(majorID)]
22
41
0.7
15
110
5.133333
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.109091
110
4
42
27.5
0.785714
0.118182
0
0
0
0
0.114583
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
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
1
1
0
0
5
0faa63285ec77a3a55d00d51fd2bce360b23d4af
96
py
Python
spiketag/core/__init__.py
chongxi/spiketag
d27bc9553936c5f9c8a5b71dedcf701987a5b77b
[ "BSD-3-Clause" ]
4
2018-04-23T18:08:39.000Z
2020-03-10T19:06:28.000Z
spiketag/core/__init__.py
chongxi/spiketag
d27bc9553936c5f9c8a5b71dedcf701987a5b77b
[ "BSD-3-Clause" ]
69
2017-02-17T19:27:52.000Z
2022-03-30T04:06:53.000Z
spiketag/core/__init__.py
chongxi/spiketag
d27bc9553936c5f9c8a5b71dedcf701987a5b77b
[ "BSD-3-Clause" ]
5
2017-02-01T16:11:32.000Z
2021-02-05T20:10:43.000Z
from .correlate import correlate, CCG from .convolve import convolve from .vq_knn import VQ_KNN
24
37
0.822917
15
96
5.133333
0.466667
0.12987
0
0
0
0
0
0
0
0
0
0
0.135417
96
3
38
32
0.927711
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ba23eb37fd5649a74fb2be84314abc24f9cf0842
377
py
Python
zentral/contrib/osquery/views/__init__.py
janheise/zentral
cd809483573301e7d1aa5d3fc2da2c74a62405ab
[ "Apache-2.0" ]
634
2015-10-30T00:55:40.000Z
2022-03-31T02:59:00.000Z
zentral/contrib/osquery/views/__init__.py
janheise/zentral
cd809483573301e7d1aa5d3fc2da2c74a62405ab
[ "Apache-2.0" ]
145
2015-11-06T00:17:33.000Z
2022-03-16T13:30:31.000Z
zentral/contrib/osquery/views/__init__.py
janheise/zentral
cd809483573301e7d1aa5d3fc2da2c74a62405ab
[ "Apache-2.0" ]
103
2015-11-07T07:08:49.000Z
2022-03-18T17:34:36.000Z
from .api import * # NOQA from .atcs import * # NOQA from .configurations import * # NOQA from .distributed_queries import * # NOQA from .enrollments import * # NOQA from .file_categories import * # NOQA from .file_carving_sessions import * # NOQA from .index import * # NOQA from .inventory import * # NOQA from .packs import * # NOQA from .queries import * # NOQA
31.416667
44
0.708223
48
377
5.479167
0.333333
0.418251
0.532319
0.136882
0
0
0
0
0
0
0
0
0.204244
377
11
45
34.272727
0.876667
0.143236
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ba2917c1fb025ec5d89374338d5dba7be84049f4
72
py
Python
bindings/python3/pyftvp/__init__.py
svaiter/ftvp
4b993fb9e61c6e33a6fb08afa3a8262d8add2bd3
[ "BSD-3-Clause" ]
2
2021-12-15T01:33:36.000Z
2021-12-31T00:40:31.000Z
bindings/python3/pyftvp/__init__.py
svaiter/ftvp
4b993fb9e61c6e33a6fb08afa3a8262d8add2bd3
[ "BSD-3-Clause" ]
null
null
null
bindings/python3/pyftvp/__init__.py
svaiter/ftvp
4b993fb9e61c6e33a6fb08afa3a8262d8add2bd3
[ "BSD-3-Clause" ]
1
2021-05-26T09:13:17.000Z
2021-05-26T09:13:17.000Z
from .base import OptMethod, UpdateStrategy from .pyftvp import prox_tv
24
43
0.833333
10
72
5.9
0.8
0
0
0
0
0
0
0
0
0
0
0
0.125
72
2
44
36
0.936508
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e8b451632c455a058d36db192146bce5ffa9c652
132
py
Python
TextBoxSeg/segmentron/models/__init__.py
weijiawu/Unconstrained-Text-Detection-with-Box-Supervisionand-Dynamic-Self-Training
b4954e20a3ce0c5b97e8d992c4282b97c7a8c1f0
[ "Apache-1.1" ]
31
2020-11-26T02:10:11.000Z
2022-03-14T06:21:46.000Z
TextBoxSeg/segmentron/models/__init__.py
weijiawu/Unconstrained-Text-Detection-with-Box-Supervisionand-Dynamic-Self-Training
b4954e20a3ce0c5b97e8d992c4282b97c7a8c1f0
[ "Apache-1.1" ]
4
2020-11-25T18:34:46.000Z
2021-04-29T03:10:38.000Z
TextBoxSeg/segmentron/models/__init__.py
weijiawu/Unconstrained-Text-Detection-with-Box-Supervisionand-Dynamic-Self-Training
b4954e20a3ce0c5b97e8d992c4282b97c7a8c1f0
[ "Apache-1.1" ]
3
2020-11-30T16:25:16.000Z
2022-01-14T12:39:37.000Z
"""Model Zoo""" from .model_zoo import MODEL_REGISTRY from .textseg import TextSeg from .textseg_attention import textseg_attention
26.4
48
0.825758
18
132
5.833333
0.388889
0.152381
0
0
0
0
0
0
0
0
0
0
0.106061
132
4
49
33
0.889831
0.068182
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e8c03cde80819e436439e3574585c9f9c7a1de69
191
py
Python
mysite/content/admin.py
tylercraig9332/learnitproject
5b8fa86f4067698590e1a0bf41a68122f7c7a354
[ "MIT" ]
1
2018-03-19T21:03:44.000Z
2018-03-19T21:03:44.000Z
mysite/content/admin.py
tylercraig9332/learnitproject
5b8fa86f4067698590e1a0bf41a68122f7c7a354
[ "MIT" ]
4
2018-02-08T21:51:55.000Z
2018-03-19T21:09:26.000Z
mysite/content/admin.py
tylercraig9332/learnitproject
5b8fa86f4067698590e1a0bf41a68122f7c7a354
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Lesson, Word, WordList # Register your models here. admin.site.register(Lesson) admin.site.register(Word) admin.site.register(WordList)
21.222222
42
0.801047
27
191
5.666667
0.481481
0.176471
0.333333
0
0
0
0
0
0
0
0
0
0.104712
191
8
43
23.875
0.894737
0.136126
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
2ce8839132a3284e37388a929dba56829de5aa7f
181
py
Python
events.py
MRtecno98/OperatingPyEnvironment
70c3c545107cf5567c74a6d29e3dd7965b1c309c
[ "MIT" ]
1
2019-09-14T16:17:04.000Z
2019-09-14T16:17:04.000Z
events.py
MRtecno98/OperatingPyEnvironment
70c3c545107cf5567c74a6d29e3dd7965b1c309c
[ "MIT" ]
null
null
null
events.py
MRtecno98/OperatingPyEnvironment
70c3c545107cf5567c74a6d29e3dd7965b1c309c
[ "MIT" ]
null
null
null
class EventController() : def __init__(self, console) : self.console = console self.handlers = [] def register_handler(self, func) : pass
18.1
38
0.569061
17
181
5.764706
0.647059
0.22449
0
0
0
0
0
0
0
0
0
0
0.337017
181
9
39
20.111111
0.816667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.166667
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
1
0
0
0
0
0
5