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
c665107e5b410702ea99899013d166aa1f651b35
225
py
Python
amino/anon/prod/__init__.py
tek/amino
51b314933e047a45587a24ecff02c836706d27ff
[ "MIT" ]
33
2016-12-21T07:05:46.000Z
2020-04-29T04:26:46.000Z
amino/anon/prod/__init__.py
tek/amino
51b314933e047a45587a24ecff02c836706d27ff
[ "MIT" ]
1
2019-04-19T17:15:52.000Z
2019-04-20T18:28:23.000Z
amino/anon/prod/__init__.py
tek/amino
51b314933e047a45587a24ecff02c836706d27ff
[ "MIT" ]
4
2017-09-04T18:46:23.000Z
2021-11-02T04:18:13.000Z
from amino.anon.prod.method import MethodLambdaInst from amino.anon.prod.attr import AttrLambdaInst from amino.anon.prod.complex import ComplexLambdaInst __all__ = ('MethodLambdaInst', 'AttrLambdaInst', 'ComplexLambdaInst')
37.5
69
0.831111
25
225
7.32
0.48
0.147541
0.213115
0.278689
0
0
0
0
0
0
0
0
0.08
225
5
70
45
0.884058
0
0
0
0
0
0.208889
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
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
c6bcb0c19372e040906904ed5962258fa4222afd
666
py
Python
setup.py
xtaraim/open-any-file-on-notepad
dea31adfcfc889b36c325319f5f4ec0961888502
[ "BSD-2-Clause" ]
null
null
null
setup.py
xtaraim/open-any-file-on-notepad
dea31adfcfc889b36c325319f5f4ec0961888502
[ "BSD-2-Clause" ]
null
null
null
setup.py
xtaraim/open-any-file-on-notepad
dea31adfcfc889b36c325319f5f4ec0961888502
[ "BSD-2-Clause" ]
null
null
null
>>> helloFile = open('c:\\users\\kiit1\\hello.txt') >>> helloFile.read() 'Hello world!\nHow are you?' >>> helloFile.close() >>> helloFile = open('c:\\users\\kiit1\\hello.txt') >>> content = helloFile.read() >>> print(content) Hello world! How are you >>> helloFile.close() >>> helloFile = open('c:\\users\\kiit1\\hello.txt') >>> helloFile.readlines() ['Hello world!\n', 'How are you?'] >>> helloFile.close() >>> helloFile = open('c:\\users\\kiit1\\hello2.txt', 'w') >>> helloFile.write('Hello!!!!!!!') 12 >>> helloFile.write('Hello!!!!!!!') 12 >>> helloFile.write('Hello!!!!!!!') 12 >>> helloFile.close() >>> helloFile.write('Hello!!!!!!!!')
27.75
58
0.585586
77
666
5.064935
0.285714
0.133333
0.14359
0.194872
0.707692
0.707692
0.707692
0.707692
0.579487
0.394872
0
0.0189
0.126126
666
23
59
28.956522
0.651203
0
0
0.565217
0
0
0.328149
0.169518
0
0
0
0
0
0
null
null
0
0
null
null
0.043478
0
0
0
null
0
0
1
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
c6de130e632b6d6c60ee6f773968248e87ca2d21
40
py
Python
2020_04_06/zzz.py
94JuHo/Algorithm_study
e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15
[ "MIT" ]
null
null
null
2020_04_06/zzz.py
94JuHo/Algorithm_study
e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15
[ "MIT" ]
null
null
null
2020_04_06/zzz.py
94JuHo/Algorithm_study
e2c10ec680d966e5bcc4e7cb88d9514f9ccbbf15
[ "MIT" ]
null
null
null
a = [1, 2, 3, 3, 3] a.remove(3) print(a)
13.333333
19
0.5
11
40
1.818182
0.545455
0.2
0
0
0
0
0
0
0
0
0
0.1875
0.2
40
3
20
13.333333
0.4375
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
c6f4b00fa357d4f8695284233de50ef5577746a5
120
py
Python
pyprojroot/__init__.py
chendaniely/herepy
4f8578e2f29b80ea0148ced534087e79141180fe
[ "MIT" ]
93
2019-07-11T16:20:50.000Z
2022-03-07T23:48:48.000Z
pyprojroot/__init__.py
chendaniely/herepy
4f8578e2f29b80ea0148ced534087e79141180fe
[ "MIT" ]
23
2019-07-22T11:06:53.000Z
2022-03-10T16:46:25.000Z
pyprojroot/__init__.py
chendaniely/herepy
4f8578e2f29b80ea0148ced534087e79141180fe
[ "MIT" ]
15
2019-07-30T10:31:07.000Z
2022-03-17T07:47:16.000Z
from .pyprojroot import here, py_project_root # noqa:F401 __all__ = ["here", "py_project_root"] __version__ = "0.2.0"
24
58
0.725
18
120
4.166667
0.722222
0.16
0.346667
0.453333
0
0
0
0
0
0
0
0.057692
0.133333
120
4
59
30
0.663462
0.075
0
0
0
0
0.220183
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
c6f77883b267812d579d8cb4bbdec1aa5d107b62
142
py
Python
Chapter 07/Chap07_Example7.77.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 07/Chap07_Example7.77.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
Chapter 07/Chap07_Example7.77.py
bpbpublications/Programming-Techniques-using-Python
49b785f37e95a3aad1d36cef51e219ac56e5e9f0
[ "MIT" ]
null
null
null
myt1 = (12,10,38,22) myt2 = sorted(myt1, reverse = True) print(myt2) myt3 = sorted(myt1, reverse = False) print(myt3) print(type(myt3))
20.285714
37
0.661972
22
142
4.272727
0.590909
0.212766
0.361702
0
0
0
0
0
0
0
0
0.135593
0.169014
142
6
38
23.666667
0.661017
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
05a130050f46b28745c219382c8acd8cf9a49863
120
py
Python
attacut/__init__.py
huak95/attacut
100333931023cd009daeddec0cba4cdfce3d0b68
[ "MIT" ]
54
2019-08-28T20:44:02.000Z
2022-03-10T08:58:35.000Z
attacut/__init__.py
huak95/attacut
100333931023cd009daeddec0cba4cdfce3d0b68
[ "MIT" ]
23
2019-08-29T06:08:48.000Z
2021-08-08T18:30:01.000Z
attacut/__init__.py
huak95/attacut
100333931023cd009daeddec0cba4cdfce3d0b68
[ "MIT" ]
15
2019-08-30T02:59:56.000Z
2022-03-06T04:27:36.000Z
# -*- coding: utf-8 -*- from .version import __version__ from .tokenizer import Tokenizer, SingletonTokenizer, tokenize
30
62
0.766667
13
120
6.769231
0.692308
0
0
0
0
0
0
0
0
0
0
0.009524
0.125
120
3
63
40
0.828571
0.175
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
af1d18d06c5cdf27e4a527e2e6edaf1fbbf1bf25
103
py
Python
tests/conftest.py
Um9i/wwu
dadfb24f6abb0c0ad9dc96e9146ade83975457cd
[ "MIT" ]
null
null
null
tests/conftest.py
Um9i/wwu
dadfb24f6abb0c0ad9dc96e9146ade83975457cd
[ "MIT" ]
1
2019-08-31T15:43:43.000Z
2019-08-31T15:43:43.000Z
tests/conftest.py
Um9i/wwu
dadfb24f6abb0c0ad9dc96e9146ade83975457cd
[ "MIT" ]
null
null
null
import pytest from wwu import Box @pytest.fixture def box(scope="class"): return Box(10, 10, 20)
12.875
26
0.699029
17
103
4.235294
0.705882
0
0
0
0
0
0
0
0
0
0
0.071429
0.184466
103
7
27
14.714286
0.785714
0
0
0
0
0
0.048544
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
af2e990e471de92e4c892850736d45084d16c912
387
py
Python
docs.py
tapegun/messenger
02e96e82c90931c951822a32bc6f6bfb8387b1aa
[ "MIT" ]
null
null
null
docs.py
tapegun/messenger
02e96e82c90931c951822a32bc6f6bfb8387b1aa
[ "MIT" ]
null
null
null
docs.py
tapegun/messenger
02e96e82c90931c951822a32bc6f6bfb8387b1aa
[ "MIT" ]
null
null
null
#def getCommands(): def getOverView(): return ("Hello this is a messaging interface on which one can communicate with another entity\n The goal of this program is to make an easy to use application ALL THROUGH THIS TEXT FILE!\n There are five main commands available for use\n - text *name*\n - reset\n - docs\n - add\n") #def getContacts(): #def getMenu(): #def
35.181818
302
0.697674
62
387
4.354839
0.741935
0
0
0
0
0
0
0
0
0
0
0
0.21447
387
11
303
35.181818
0.888158
0.136951
0
0
0
0.5
0.867069
0
0
0
0
0
0
1
0.5
true
0
0
0.5
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
1
1
0
0
1
0
0
0
5
af61bb99ee1e5b7ebb860cde7eb9c22491354dea
56,255
py
Python
sdk/python/pulumi_aws_native/acmpca/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/acmpca/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/acmpca/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs __all__ = [ 'CertificateApiPassthrough', 'CertificateAuthorityAccessDescription', 'CertificateAuthorityAccessMethod', 'CertificateAuthorityCrlConfiguration', 'CertificateAuthorityCsrExtensions', 'CertificateAuthorityEdiPartyName', 'CertificateAuthorityGeneralName', 'CertificateAuthorityKeyUsage', 'CertificateAuthorityOcspConfiguration', 'CertificateAuthorityOtherName', 'CertificateAuthorityRevocationConfiguration', 'CertificateAuthoritySubject', 'CertificateAuthorityTag', 'CertificateEdiPartyName', 'CertificateExtendedKeyUsage', 'CertificateExtensions', 'CertificateGeneralName', 'CertificateKeyUsage', 'CertificateOtherName', 'CertificatePolicyInformation', 'CertificatePolicyQualifierInfo', 'CertificateQualifier', 'CertificateSubject', 'CertificateValidity', ] @pulumi.output_type class CertificateApiPassthrough(dict): """ Structure that specifies fields to be overridden in a certificate at the time of issuance. These requires an API Passthrough template be used or they will be ignored. """ def __init__(__self__, *, extensions: Optional['outputs.CertificateExtensions'] = None, subject: Optional['outputs.CertificateSubject'] = None): """ Structure that specifies fields to be overridden in a certificate at the time of issuance. These requires an API Passthrough template be used or they will be ignored. """ if extensions is not None: pulumi.set(__self__, "extensions", extensions) if subject is not None: pulumi.set(__self__, "subject", subject) @property @pulumi.getter def extensions(self) -> Optional['outputs.CertificateExtensions']: return pulumi.get(self, "extensions") @property @pulumi.getter def subject(self) -> Optional['outputs.CertificateSubject']: return pulumi.get(self, "subject") @pulumi.output_type class CertificateAuthorityAccessDescription(dict): """ Structure that contains X.509 AccessDescription information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "accessLocation": suggest = "access_location" elif key == "accessMethod": suggest = "access_method" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityAccessDescription. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityAccessDescription.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityAccessDescription.__key_warning(key) return super().get(key, default) def __init__(__self__, *, access_location: 'outputs.CertificateAuthorityGeneralName', access_method: 'outputs.CertificateAuthorityAccessMethod'): """ Structure that contains X.509 AccessDescription information. """ pulumi.set(__self__, "access_location", access_location) pulumi.set(__self__, "access_method", access_method) @property @pulumi.getter(name="accessLocation") def access_location(self) -> 'outputs.CertificateAuthorityGeneralName': return pulumi.get(self, "access_location") @property @pulumi.getter(name="accessMethod") def access_method(self) -> 'outputs.CertificateAuthorityAccessMethod': return pulumi.get(self, "access_method") @pulumi.output_type class CertificateAuthorityAccessMethod(dict): """ Structure that contains X.509 AccessMethod information. Assign one and ONLY one field. """ @staticmethod def __key_warning(key: str): suggest = None if key == "accessMethodType": suggest = "access_method_type" elif key == "customObjectIdentifier": suggest = "custom_object_identifier" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityAccessMethod. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityAccessMethod.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityAccessMethod.__key_warning(key) return super().get(key, default) def __init__(__self__, *, access_method_type: Optional[str] = None, custom_object_identifier: Optional[str] = None): """ Structure that contains X.509 AccessMethod information. Assign one and ONLY one field. """ if access_method_type is not None: pulumi.set(__self__, "access_method_type", access_method_type) if custom_object_identifier is not None: pulumi.set(__self__, "custom_object_identifier", custom_object_identifier) @property @pulumi.getter(name="accessMethodType") def access_method_type(self) -> Optional[str]: return pulumi.get(self, "access_method_type") @property @pulumi.getter(name="customObjectIdentifier") def custom_object_identifier(self) -> Optional[str]: return pulumi.get(self, "custom_object_identifier") @pulumi.output_type class CertificateAuthorityCrlConfiguration(dict): """ Your certificate authority can create and maintain a certificate revocation list (CRL). A CRL contains information about certificates that have been revoked. """ @staticmethod def __key_warning(key: str): suggest = None if key == "customCname": suggest = "custom_cname" elif key == "expirationInDays": suggest = "expiration_in_days" elif key == "s3BucketName": suggest = "s3_bucket_name" elif key == "s3ObjectAcl": suggest = "s3_object_acl" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityCrlConfiguration. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityCrlConfiguration.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityCrlConfiguration.__key_warning(key) return super().get(key, default) def __init__(__self__, *, custom_cname: Optional[str] = None, enabled: Optional[bool] = None, expiration_in_days: Optional[int] = None, s3_bucket_name: Optional[str] = None, s3_object_acl: Optional[str] = None): """ Your certificate authority can create and maintain a certificate revocation list (CRL). A CRL contains information about certificates that have been revoked. """ if custom_cname is not None: pulumi.set(__self__, "custom_cname", custom_cname) if enabled is not None: pulumi.set(__self__, "enabled", enabled) if expiration_in_days is not None: pulumi.set(__self__, "expiration_in_days", expiration_in_days) if s3_bucket_name is not None: pulumi.set(__self__, "s3_bucket_name", s3_bucket_name) if s3_object_acl is not None: pulumi.set(__self__, "s3_object_acl", s3_object_acl) @property @pulumi.getter(name="customCname") def custom_cname(self) -> Optional[str]: return pulumi.get(self, "custom_cname") @property @pulumi.getter def enabled(self) -> Optional[bool]: return pulumi.get(self, "enabled") @property @pulumi.getter(name="expirationInDays") def expiration_in_days(self) -> Optional[int]: return pulumi.get(self, "expiration_in_days") @property @pulumi.getter(name="s3BucketName") def s3_bucket_name(self) -> Optional[str]: return pulumi.get(self, "s3_bucket_name") @property @pulumi.getter(name="s3ObjectAcl") def s3_object_acl(self) -> Optional[str]: return pulumi.get(self, "s3_object_acl") @pulumi.output_type class CertificateAuthorityCsrExtensions(dict): """ Structure that contains CSR pass though extensions information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "keyUsage": suggest = "key_usage" elif key == "subjectInformationAccess": suggest = "subject_information_access" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityCsrExtensions. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityCsrExtensions.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityCsrExtensions.__key_warning(key) return super().get(key, default) def __init__(__self__, *, key_usage: Optional['outputs.CertificateAuthorityKeyUsage'] = None, subject_information_access: Optional[Sequence['outputs.CertificateAuthorityAccessDescription']] = None): """ Structure that contains CSR pass though extensions information. """ if key_usage is not None: pulumi.set(__self__, "key_usage", key_usage) if subject_information_access is not None: pulumi.set(__self__, "subject_information_access", subject_information_access) @property @pulumi.getter(name="keyUsage") def key_usage(self) -> Optional['outputs.CertificateAuthorityKeyUsage']: return pulumi.get(self, "key_usage") @property @pulumi.getter(name="subjectInformationAccess") def subject_information_access(self) -> Optional[Sequence['outputs.CertificateAuthorityAccessDescription']]: return pulumi.get(self, "subject_information_access") @pulumi.output_type class CertificateAuthorityEdiPartyName(dict): """ Structure that contains X.509 EdiPartyName information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "nameAssigner": suggest = "name_assigner" elif key == "partyName": suggest = "party_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityEdiPartyName. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityEdiPartyName.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityEdiPartyName.__key_warning(key) return super().get(key, default) def __init__(__self__, *, name_assigner: str, party_name: str): """ Structure that contains X.509 EdiPartyName information. """ pulumi.set(__self__, "name_assigner", name_assigner) pulumi.set(__self__, "party_name", party_name) @property @pulumi.getter(name="nameAssigner") def name_assigner(self) -> str: return pulumi.get(self, "name_assigner") @property @pulumi.getter(name="partyName") def party_name(self) -> str: return pulumi.get(self, "party_name") @pulumi.output_type class CertificateAuthorityGeneralName(dict): """ Structure that contains X.509 GeneralName information. Assign one and ONLY one field. """ @staticmethod def __key_warning(key: str): suggest = None if key == "directoryName": suggest = "directory_name" elif key == "dnsName": suggest = "dns_name" elif key == "ediPartyName": suggest = "edi_party_name" elif key == "ipAddress": suggest = "ip_address" elif key == "otherName": suggest = "other_name" elif key == "registeredId": suggest = "registered_id" elif key == "rfc822Name": suggest = "rfc822_name" elif key == "uniformResourceIdentifier": suggest = "uniform_resource_identifier" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityGeneralName. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityGeneralName.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityGeneralName.__key_warning(key) return super().get(key, default) def __init__(__self__, *, directory_name: Optional['outputs.CertificateAuthoritySubject'] = None, dns_name: Optional[str] = None, edi_party_name: Optional['outputs.CertificateAuthorityEdiPartyName'] = None, ip_address: Optional[str] = None, other_name: Optional['outputs.CertificateAuthorityOtherName'] = None, registered_id: Optional[str] = None, rfc822_name: Optional[str] = None, uniform_resource_identifier: Optional[str] = None): """ Structure that contains X.509 GeneralName information. Assign one and ONLY one field. """ if directory_name is not None: pulumi.set(__self__, "directory_name", directory_name) if dns_name is not None: pulumi.set(__self__, "dns_name", dns_name) if edi_party_name is not None: pulumi.set(__self__, "edi_party_name", edi_party_name) if ip_address is not None: pulumi.set(__self__, "ip_address", ip_address) if other_name is not None: pulumi.set(__self__, "other_name", other_name) if registered_id is not None: pulumi.set(__self__, "registered_id", registered_id) if rfc822_name is not None: pulumi.set(__self__, "rfc822_name", rfc822_name) if uniform_resource_identifier is not None: pulumi.set(__self__, "uniform_resource_identifier", uniform_resource_identifier) @property @pulumi.getter(name="directoryName") def directory_name(self) -> Optional['outputs.CertificateAuthoritySubject']: return pulumi.get(self, "directory_name") @property @pulumi.getter(name="dnsName") def dns_name(self) -> Optional[str]: return pulumi.get(self, "dns_name") @property @pulumi.getter(name="ediPartyName") def edi_party_name(self) -> Optional['outputs.CertificateAuthorityEdiPartyName']: return pulumi.get(self, "edi_party_name") @property @pulumi.getter(name="ipAddress") def ip_address(self) -> Optional[str]: return pulumi.get(self, "ip_address") @property @pulumi.getter(name="otherName") def other_name(self) -> Optional['outputs.CertificateAuthorityOtherName']: return pulumi.get(self, "other_name") @property @pulumi.getter(name="registeredId") def registered_id(self) -> Optional[str]: return pulumi.get(self, "registered_id") @property @pulumi.getter(name="rfc822Name") def rfc822_name(self) -> Optional[str]: return pulumi.get(self, "rfc822_name") @property @pulumi.getter(name="uniformResourceIdentifier") def uniform_resource_identifier(self) -> Optional[str]: return pulumi.get(self, "uniform_resource_identifier") @pulumi.output_type class CertificateAuthorityKeyUsage(dict): """ Structure that contains X.509 KeyUsage information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "cRLSign": suggest = "c_rl_sign" elif key == "dataEncipherment": suggest = "data_encipherment" elif key == "decipherOnly": suggest = "decipher_only" elif key == "digitalSignature": suggest = "digital_signature" elif key == "encipherOnly": suggest = "encipher_only" elif key == "keyAgreement": suggest = "key_agreement" elif key == "keyCertSign": suggest = "key_cert_sign" elif key == "keyEncipherment": suggest = "key_encipherment" elif key == "nonRepudiation": suggest = "non_repudiation" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityKeyUsage. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityKeyUsage.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityKeyUsage.__key_warning(key) return super().get(key, default) def __init__(__self__, *, c_rl_sign: Optional[bool] = None, data_encipherment: Optional[bool] = None, decipher_only: Optional[bool] = None, digital_signature: Optional[bool] = None, encipher_only: Optional[bool] = None, key_agreement: Optional[bool] = None, key_cert_sign: Optional[bool] = None, key_encipherment: Optional[bool] = None, non_repudiation: Optional[bool] = None): """ Structure that contains X.509 KeyUsage information. """ if c_rl_sign is not None: pulumi.set(__self__, "c_rl_sign", c_rl_sign) if data_encipherment is not None: pulumi.set(__self__, "data_encipherment", data_encipherment) if decipher_only is not None: pulumi.set(__self__, "decipher_only", decipher_only) if digital_signature is not None: pulumi.set(__self__, "digital_signature", digital_signature) if encipher_only is not None: pulumi.set(__self__, "encipher_only", encipher_only) if key_agreement is not None: pulumi.set(__self__, "key_agreement", key_agreement) if key_cert_sign is not None: pulumi.set(__self__, "key_cert_sign", key_cert_sign) if key_encipherment is not None: pulumi.set(__self__, "key_encipherment", key_encipherment) if non_repudiation is not None: pulumi.set(__self__, "non_repudiation", non_repudiation) @property @pulumi.getter(name="cRLSign") def c_rl_sign(self) -> Optional[bool]: return pulumi.get(self, "c_rl_sign") @property @pulumi.getter(name="dataEncipherment") def data_encipherment(self) -> Optional[bool]: return pulumi.get(self, "data_encipherment") @property @pulumi.getter(name="decipherOnly") def decipher_only(self) -> Optional[bool]: return pulumi.get(self, "decipher_only") @property @pulumi.getter(name="digitalSignature") def digital_signature(self) -> Optional[bool]: return pulumi.get(self, "digital_signature") @property @pulumi.getter(name="encipherOnly") def encipher_only(self) -> Optional[bool]: return pulumi.get(self, "encipher_only") @property @pulumi.getter(name="keyAgreement") def key_agreement(self) -> Optional[bool]: return pulumi.get(self, "key_agreement") @property @pulumi.getter(name="keyCertSign") def key_cert_sign(self) -> Optional[bool]: return pulumi.get(self, "key_cert_sign") @property @pulumi.getter(name="keyEncipherment") def key_encipherment(self) -> Optional[bool]: return pulumi.get(self, "key_encipherment") @property @pulumi.getter(name="nonRepudiation") def non_repudiation(self) -> Optional[bool]: return pulumi.get(self, "non_repudiation") @pulumi.output_type class CertificateAuthorityOcspConfiguration(dict): """ Helps to configure online certificate status protocol (OCSP) responder for your certificate authority """ @staticmethod def __key_warning(key: str): suggest = None if key == "ocspCustomCname": suggest = "ocsp_custom_cname" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityOcspConfiguration. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityOcspConfiguration.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityOcspConfiguration.__key_warning(key) return super().get(key, default) def __init__(__self__, *, enabled: Optional[bool] = None, ocsp_custom_cname: Optional[str] = None): """ Helps to configure online certificate status protocol (OCSP) responder for your certificate authority """ if enabled is not None: pulumi.set(__self__, "enabled", enabled) if ocsp_custom_cname is not None: pulumi.set(__self__, "ocsp_custom_cname", ocsp_custom_cname) @property @pulumi.getter def enabled(self) -> Optional[bool]: return pulumi.get(self, "enabled") @property @pulumi.getter(name="ocspCustomCname") def ocsp_custom_cname(self) -> Optional[str]: return pulumi.get(self, "ocsp_custom_cname") @pulumi.output_type class CertificateAuthorityOtherName(dict): """ Structure that contains X.509 OtherName information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "typeId": suggest = "type_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityOtherName. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityOtherName.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityOtherName.__key_warning(key) return super().get(key, default) def __init__(__self__, *, type_id: str, value: str): """ Structure that contains X.509 OtherName information. """ pulumi.set(__self__, "type_id", type_id) pulumi.set(__self__, "value", value) @property @pulumi.getter(name="typeId") def type_id(self) -> str: return pulumi.get(self, "type_id") @property @pulumi.getter def value(self) -> str: return pulumi.get(self, "value") @pulumi.output_type class CertificateAuthorityRevocationConfiguration(dict): """ Certificate Authority revocation information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "crlConfiguration": suggest = "crl_configuration" elif key == "ocspConfiguration": suggest = "ocsp_configuration" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthorityRevocationConfiguration. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthorityRevocationConfiguration.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthorityRevocationConfiguration.__key_warning(key) return super().get(key, default) def __init__(__self__, *, crl_configuration: Optional['outputs.CertificateAuthorityCrlConfiguration'] = None, ocsp_configuration: Optional['outputs.CertificateAuthorityOcspConfiguration'] = None): """ Certificate Authority revocation information. """ if crl_configuration is not None: pulumi.set(__self__, "crl_configuration", crl_configuration) if ocsp_configuration is not None: pulumi.set(__self__, "ocsp_configuration", ocsp_configuration) @property @pulumi.getter(name="crlConfiguration") def crl_configuration(self) -> Optional['outputs.CertificateAuthorityCrlConfiguration']: return pulumi.get(self, "crl_configuration") @property @pulumi.getter(name="ocspConfiguration") def ocsp_configuration(self) -> Optional['outputs.CertificateAuthorityOcspConfiguration']: return pulumi.get(self, "ocsp_configuration") @pulumi.output_type class CertificateAuthoritySubject(dict): """ Structure that contains X.500 distinguished name information for your CA. """ @staticmethod def __key_warning(key: str): suggest = None if key == "commonName": suggest = "common_name" elif key == "distinguishedNameQualifier": suggest = "distinguished_name_qualifier" elif key == "generationQualifier": suggest = "generation_qualifier" elif key == "givenName": suggest = "given_name" elif key == "organizationalUnit": suggest = "organizational_unit" elif key == "serialNumber": suggest = "serial_number" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateAuthoritySubject. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateAuthoritySubject.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateAuthoritySubject.__key_warning(key) return super().get(key, default) def __init__(__self__, *, common_name: Optional[str] = None, country: Optional[str] = None, distinguished_name_qualifier: Optional[str] = None, generation_qualifier: Optional[str] = None, given_name: Optional[str] = None, initials: Optional[str] = None, locality: Optional[str] = None, organization: Optional[str] = None, organizational_unit: Optional[str] = None, pseudonym: Optional[str] = None, serial_number: Optional[str] = None, state: Optional[str] = None, surname: Optional[str] = None, title: Optional[str] = None): """ Structure that contains X.500 distinguished name information for your CA. """ if common_name is not None: pulumi.set(__self__, "common_name", common_name) if country is not None: pulumi.set(__self__, "country", country) if distinguished_name_qualifier is not None: pulumi.set(__self__, "distinguished_name_qualifier", distinguished_name_qualifier) if generation_qualifier is not None: pulumi.set(__self__, "generation_qualifier", generation_qualifier) if given_name is not None: pulumi.set(__self__, "given_name", given_name) if initials is not None: pulumi.set(__self__, "initials", initials) if locality is not None: pulumi.set(__self__, "locality", locality) if organization is not None: pulumi.set(__self__, "organization", organization) if organizational_unit is not None: pulumi.set(__self__, "organizational_unit", organizational_unit) if pseudonym is not None: pulumi.set(__self__, "pseudonym", pseudonym) if serial_number is not None: pulumi.set(__self__, "serial_number", serial_number) if state is not None: pulumi.set(__self__, "state", state) if surname is not None: pulumi.set(__self__, "surname", surname) if title is not None: pulumi.set(__self__, "title", title) @property @pulumi.getter(name="commonName") def common_name(self) -> Optional[str]: return pulumi.get(self, "common_name") @property @pulumi.getter def country(self) -> Optional[str]: return pulumi.get(self, "country") @property @pulumi.getter(name="distinguishedNameQualifier") def distinguished_name_qualifier(self) -> Optional[str]: return pulumi.get(self, "distinguished_name_qualifier") @property @pulumi.getter(name="generationQualifier") def generation_qualifier(self) -> Optional[str]: return pulumi.get(self, "generation_qualifier") @property @pulumi.getter(name="givenName") def given_name(self) -> Optional[str]: return pulumi.get(self, "given_name") @property @pulumi.getter def initials(self) -> Optional[str]: return pulumi.get(self, "initials") @property @pulumi.getter def locality(self) -> Optional[str]: return pulumi.get(self, "locality") @property @pulumi.getter def organization(self) -> Optional[str]: return pulumi.get(self, "organization") @property @pulumi.getter(name="organizationalUnit") def organizational_unit(self) -> Optional[str]: return pulumi.get(self, "organizational_unit") @property @pulumi.getter def pseudonym(self) -> Optional[str]: return pulumi.get(self, "pseudonym") @property @pulumi.getter(name="serialNumber") def serial_number(self) -> Optional[str]: return pulumi.get(self, "serial_number") @property @pulumi.getter def state(self) -> Optional[str]: return pulumi.get(self, "state") @property @pulumi.getter def surname(self) -> Optional[str]: return pulumi.get(self, "surname") @property @pulumi.getter def title(self) -> Optional[str]: return pulumi.get(self, "title") @pulumi.output_type class CertificateAuthorityTag(dict): def __init__(__self__, *, key: Optional[str] = None, value: Optional[str] = None): if key is not None: pulumi.set(__self__, "key", key) if value is not None: pulumi.set(__self__, "value", value) @property @pulumi.getter def key(self) -> Optional[str]: return pulumi.get(self, "key") @property @pulumi.getter def value(self) -> Optional[str]: return pulumi.get(self, "value") @pulumi.output_type class CertificateEdiPartyName(dict): """ Structure that contains X.509 EdiPartyName information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "nameAssigner": suggest = "name_assigner" elif key == "partyName": suggest = "party_name" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateEdiPartyName. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateEdiPartyName.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateEdiPartyName.__key_warning(key) return super().get(key, default) def __init__(__self__, *, name_assigner: str, party_name: str): """ Structure that contains X.509 EdiPartyName information. """ pulumi.set(__self__, "name_assigner", name_assigner) pulumi.set(__self__, "party_name", party_name) @property @pulumi.getter(name="nameAssigner") def name_assigner(self) -> str: return pulumi.get(self, "name_assigner") @property @pulumi.getter(name="partyName") def party_name(self) -> str: return pulumi.get(self, "party_name") @pulumi.output_type class CertificateExtendedKeyUsage(dict): """ Structure that contains X.509 ExtendedKeyUsage information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "extendedKeyUsageObjectIdentifier": suggest = "extended_key_usage_object_identifier" elif key == "extendedKeyUsageType": suggest = "extended_key_usage_type" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateExtendedKeyUsage. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateExtendedKeyUsage.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateExtendedKeyUsage.__key_warning(key) return super().get(key, default) def __init__(__self__, *, extended_key_usage_object_identifier: Optional[str] = None, extended_key_usage_type: Optional[str] = None): """ Structure that contains X.509 ExtendedKeyUsage information. """ if extended_key_usage_object_identifier is not None: pulumi.set(__self__, "extended_key_usage_object_identifier", extended_key_usage_object_identifier) if extended_key_usage_type is not None: pulumi.set(__self__, "extended_key_usage_type", extended_key_usage_type) @property @pulumi.getter(name="extendedKeyUsageObjectIdentifier") def extended_key_usage_object_identifier(self) -> Optional[str]: return pulumi.get(self, "extended_key_usage_object_identifier") @property @pulumi.getter(name="extendedKeyUsageType") def extended_key_usage_type(self) -> Optional[str]: return pulumi.get(self, "extended_key_usage_type") @pulumi.output_type class CertificateExtensions(dict): """ Structure that contains X.500 extensions for a Certificate. """ @staticmethod def __key_warning(key: str): suggest = None if key == "certificatePolicies": suggest = "certificate_policies" elif key == "extendedKeyUsage": suggest = "extended_key_usage" elif key == "keyUsage": suggest = "key_usage" elif key == "subjectAlternativeNames": suggest = "subject_alternative_names" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateExtensions. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateExtensions.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateExtensions.__key_warning(key) return super().get(key, default) def __init__(__self__, *, certificate_policies: Optional[Sequence['outputs.CertificatePolicyInformation']] = None, extended_key_usage: Optional[Sequence['outputs.CertificateExtendedKeyUsage']] = None, key_usage: Optional['outputs.CertificateKeyUsage'] = None, subject_alternative_names: Optional[Sequence['outputs.CertificateGeneralName']] = None): """ Structure that contains X.500 extensions for a Certificate. """ if certificate_policies is not None: pulumi.set(__self__, "certificate_policies", certificate_policies) if extended_key_usage is not None: pulumi.set(__self__, "extended_key_usage", extended_key_usage) if key_usage is not None: pulumi.set(__self__, "key_usage", key_usage) if subject_alternative_names is not None: pulumi.set(__self__, "subject_alternative_names", subject_alternative_names) @property @pulumi.getter(name="certificatePolicies") def certificate_policies(self) -> Optional[Sequence['outputs.CertificatePolicyInformation']]: return pulumi.get(self, "certificate_policies") @property @pulumi.getter(name="extendedKeyUsage") def extended_key_usage(self) -> Optional[Sequence['outputs.CertificateExtendedKeyUsage']]: return pulumi.get(self, "extended_key_usage") @property @pulumi.getter(name="keyUsage") def key_usage(self) -> Optional['outputs.CertificateKeyUsage']: return pulumi.get(self, "key_usage") @property @pulumi.getter(name="subjectAlternativeNames") def subject_alternative_names(self) -> Optional[Sequence['outputs.CertificateGeneralName']]: return pulumi.get(self, "subject_alternative_names") @pulumi.output_type class CertificateGeneralName(dict): """ Structure that contains X.509 GeneralName information. Assign one and ONLY one field. """ @staticmethod def __key_warning(key: str): suggest = None if key == "directoryName": suggest = "directory_name" elif key == "dnsName": suggest = "dns_name" elif key == "ediPartyName": suggest = "edi_party_name" elif key == "ipAddress": suggest = "ip_address" elif key == "otherName": suggest = "other_name" elif key == "registeredId": suggest = "registered_id" elif key == "rfc822Name": suggest = "rfc822_name" elif key == "uniformResourceIdentifier": suggest = "uniform_resource_identifier" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateGeneralName. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateGeneralName.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateGeneralName.__key_warning(key) return super().get(key, default) def __init__(__self__, *, directory_name: Optional['outputs.CertificateSubject'] = None, dns_name: Optional[str] = None, edi_party_name: Optional['outputs.CertificateEdiPartyName'] = None, ip_address: Optional[str] = None, other_name: Optional['outputs.CertificateOtherName'] = None, registered_id: Optional[str] = None, rfc822_name: Optional[str] = None, uniform_resource_identifier: Optional[str] = None): """ Structure that contains X.509 GeneralName information. Assign one and ONLY one field. """ if directory_name is not None: pulumi.set(__self__, "directory_name", directory_name) if dns_name is not None: pulumi.set(__self__, "dns_name", dns_name) if edi_party_name is not None: pulumi.set(__self__, "edi_party_name", edi_party_name) if ip_address is not None: pulumi.set(__self__, "ip_address", ip_address) if other_name is not None: pulumi.set(__self__, "other_name", other_name) if registered_id is not None: pulumi.set(__self__, "registered_id", registered_id) if rfc822_name is not None: pulumi.set(__self__, "rfc822_name", rfc822_name) if uniform_resource_identifier is not None: pulumi.set(__self__, "uniform_resource_identifier", uniform_resource_identifier) @property @pulumi.getter(name="directoryName") def directory_name(self) -> Optional['outputs.CertificateSubject']: return pulumi.get(self, "directory_name") @property @pulumi.getter(name="dnsName") def dns_name(self) -> Optional[str]: return pulumi.get(self, "dns_name") @property @pulumi.getter(name="ediPartyName") def edi_party_name(self) -> Optional['outputs.CertificateEdiPartyName']: return pulumi.get(self, "edi_party_name") @property @pulumi.getter(name="ipAddress") def ip_address(self) -> Optional[str]: return pulumi.get(self, "ip_address") @property @pulumi.getter(name="otherName") def other_name(self) -> Optional['outputs.CertificateOtherName']: return pulumi.get(self, "other_name") @property @pulumi.getter(name="registeredId") def registered_id(self) -> Optional[str]: return pulumi.get(self, "registered_id") @property @pulumi.getter(name="rfc822Name") def rfc822_name(self) -> Optional[str]: return pulumi.get(self, "rfc822_name") @property @pulumi.getter(name="uniformResourceIdentifier") def uniform_resource_identifier(self) -> Optional[str]: return pulumi.get(self, "uniform_resource_identifier") @pulumi.output_type class CertificateKeyUsage(dict): """ Structure that contains X.509 KeyUsage information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "cRLSign": suggest = "c_rl_sign" elif key == "dataEncipherment": suggest = "data_encipherment" elif key == "decipherOnly": suggest = "decipher_only" elif key == "digitalSignature": suggest = "digital_signature" elif key == "encipherOnly": suggest = "encipher_only" elif key == "keyAgreement": suggest = "key_agreement" elif key == "keyCertSign": suggest = "key_cert_sign" elif key == "keyEncipherment": suggest = "key_encipherment" elif key == "nonRepudiation": suggest = "non_repudiation" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateKeyUsage. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateKeyUsage.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateKeyUsage.__key_warning(key) return super().get(key, default) def __init__(__self__, *, c_rl_sign: Optional[bool] = None, data_encipherment: Optional[bool] = None, decipher_only: Optional[bool] = None, digital_signature: Optional[bool] = None, encipher_only: Optional[bool] = None, key_agreement: Optional[bool] = None, key_cert_sign: Optional[bool] = None, key_encipherment: Optional[bool] = None, non_repudiation: Optional[bool] = None): """ Structure that contains X.509 KeyUsage information. """ if c_rl_sign is not None: pulumi.set(__self__, "c_rl_sign", c_rl_sign) if data_encipherment is not None: pulumi.set(__self__, "data_encipherment", data_encipherment) if decipher_only is not None: pulumi.set(__self__, "decipher_only", decipher_only) if digital_signature is not None: pulumi.set(__self__, "digital_signature", digital_signature) if encipher_only is not None: pulumi.set(__self__, "encipher_only", encipher_only) if key_agreement is not None: pulumi.set(__self__, "key_agreement", key_agreement) if key_cert_sign is not None: pulumi.set(__self__, "key_cert_sign", key_cert_sign) if key_encipherment is not None: pulumi.set(__self__, "key_encipherment", key_encipherment) if non_repudiation is not None: pulumi.set(__self__, "non_repudiation", non_repudiation) @property @pulumi.getter(name="cRLSign") def c_rl_sign(self) -> Optional[bool]: return pulumi.get(self, "c_rl_sign") @property @pulumi.getter(name="dataEncipherment") def data_encipherment(self) -> Optional[bool]: return pulumi.get(self, "data_encipherment") @property @pulumi.getter(name="decipherOnly") def decipher_only(self) -> Optional[bool]: return pulumi.get(self, "decipher_only") @property @pulumi.getter(name="digitalSignature") def digital_signature(self) -> Optional[bool]: return pulumi.get(self, "digital_signature") @property @pulumi.getter(name="encipherOnly") def encipher_only(self) -> Optional[bool]: return pulumi.get(self, "encipher_only") @property @pulumi.getter(name="keyAgreement") def key_agreement(self) -> Optional[bool]: return pulumi.get(self, "key_agreement") @property @pulumi.getter(name="keyCertSign") def key_cert_sign(self) -> Optional[bool]: return pulumi.get(self, "key_cert_sign") @property @pulumi.getter(name="keyEncipherment") def key_encipherment(self) -> Optional[bool]: return pulumi.get(self, "key_encipherment") @property @pulumi.getter(name="nonRepudiation") def non_repudiation(self) -> Optional[bool]: return pulumi.get(self, "non_repudiation") @pulumi.output_type class CertificateOtherName(dict): """ Structure that contains X.509 OtherName information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "typeId": suggest = "type_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateOtherName. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateOtherName.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateOtherName.__key_warning(key) return super().get(key, default) def __init__(__self__, *, type_id: str, value: str): """ Structure that contains X.509 OtherName information. """ pulumi.set(__self__, "type_id", type_id) pulumi.set(__self__, "value", value) @property @pulumi.getter(name="typeId") def type_id(self) -> str: return pulumi.get(self, "type_id") @property @pulumi.getter def value(self) -> str: return pulumi.get(self, "value") @pulumi.output_type class CertificatePolicyInformation(dict): """ Structure that contains X.509 Policy information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "certPolicyId": suggest = "cert_policy_id" elif key == "policyQualifiers": suggest = "policy_qualifiers" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificatePolicyInformation. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificatePolicyInformation.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificatePolicyInformation.__key_warning(key) return super().get(key, default) def __init__(__self__, *, cert_policy_id: str, policy_qualifiers: Optional[Sequence['outputs.CertificatePolicyQualifierInfo']] = None): """ Structure that contains X.509 Policy information. """ pulumi.set(__self__, "cert_policy_id", cert_policy_id) if policy_qualifiers is not None: pulumi.set(__self__, "policy_qualifiers", policy_qualifiers) @property @pulumi.getter(name="certPolicyId") def cert_policy_id(self) -> str: return pulumi.get(self, "cert_policy_id") @property @pulumi.getter(name="policyQualifiers") def policy_qualifiers(self) -> Optional[Sequence['outputs.CertificatePolicyQualifierInfo']]: return pulumi.get(self, "policy_qualifiers") @pulumi.output_type class CertificatePolicyQualifierInfo(dict): """ Structure that contains X.509 Policy qualifier information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "policyQualifierId": suggest = "policy_qualifier_id" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificatePolicyQualifierInfo. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificatePolicyQualifierInfo.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificatePolicyQualifierInfo.__key_warning(key) return super().get(key, default) def __init__(__self__, *, policy_qualifier_id: str, qualifier: 'outputs.CertificateQualifier'): """ Structure that contains X.509 Policy qualifier information. """ pulumi.set(__self__, "policy_qualifier_id", policy_qualifier_id) pulumi.set(__self__, "qualifier", qualifier) @property @pulumi.getter(name="policyQualifierId") def policy_qualifier_id(self) -> str: return pulumi.get(self, "policy_qualifier_id") @property @pulumi.getter def qualifier(self) -> 'outputs.CertificateQualifier': return pulumi.get(self, "qualifier") @pulumi.output_type class CertificateQualifier(dict): """ Structure that contains a X.509 policy qualifier. """ @staticmethod def __key_warning(key: str): suggest = None if key == "cpsUri": suggest = "cps_uri" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateQualifier. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateQualifier.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateQualifier.__key_warning(key) return super().get(key, default) def __init__(__self__, *, cps_uri: str): """ Structure that contains a X.509 policy qualifier. """ pulumi.set(__self__, "cps_uri", cps_uri) @property @pulumi.getter(name="cpsUri") def cps_uri(self) -> str: return pulumi.get(self, "cps_uri") @pulumi.output_type class CertificateSubject(dict): """ Structure that contains X.500 distinguished name information. """ @staticmethod def __key_warning(key: str): suggest = None if key == "commonName": suggest = "common_name" elif key == "distinguishedNameQualifier": suggest = "distinguished_name_qualifier" elif key == "generationQualifier": suggest = "generation_qualifier" elif key == "givenName": suggest = "given_name" elif key == "organizationalUnit": suggest = "organizational_unit" elif key == "serialNumber": suggest = "serial_number" if suggest: pulumi.log.warn(f"Key '{key}' not found in CertificateSubject. Access the value via the '{suggest}' property getter instead.") def __getitem__(self, key: str) -> Any: CertificateSubject.__key_warning(key) return super().__getitem__(key) def get(self, key: str, default = None) -> Any: CertificateSubject.__key_warning(key) return super().get(key, default) def __init__(__self__, *, common_name: Optional[str] = None, country: Optional[str] = None, distinguished_name_qualifier: Optional[str] = None, generation_qualifier: Optional[str] = None, given_name: Optional[str] = None, initials: Optional[str] = None, locality: Optional[str] = None, organization: Optional[str] = None, organizational_unit: Optional[str] = None, pseudonym: Optional[str] = None, serial_number: Optional[str] = None, state: Optional[str] = None, surname: Optional[str] = None, title: Optional[str] = None): """ Structure that contains X.500 distinguished name information. """ if common_name is not None: pulumi.set(__self__, "common_name", common_name) if country is not None: pulumi.set(__self__, "country", country) if distinguished_name_qualifier is not None: pulumi.set(__self__, "distinguished_name_qualifier", distinguished_name_qualifier) if generation_qualifier is not None: pulumi.set(__self__, "generation_qualifier", generation_qualifier) if given_name is not None: pulumi.set(__self__, "given_name", given_name) if initials is not None: pulumi.set(__self__, "initials", initials) if locality is not None: pulumi.set(__self__, "locality", locality) if organization is not None: pulumi.set(__self__, "organization", organization) if organizational_unit is not None: pulumi.set(__self__, "organizational_unit", organizational_unit) if pseudonym is not None: pulumi.set(__self__, "pseudonym", pseudonym) if serial_number is not None: pulumi.set(__self__, "serial_number", serial_number) if state is not None: pulumi.set(__self__, "state", state) if surname is not None: pulumi.set(__self__, "surname", surname) if title is not None: pulumi.set(__self__, "title", title) @property @pulumi.getter(name="commonName") def common_name(self) -> Optional[str]: return pulumi.get(self, "common_name") @property @pulumi.getter def country(self) -> Optional[str]: return pulumi.get(self, "country") @property @pulumi.getter(name="distinguishedNameQualifier") def distinguished_name_qualifier(self) -> Optional[str]: return pulumi.get(self, "distinguished_name_qualifier") @property @pulumi.getter(name="generationQualifier") def generation_qualifier(self) -> Optional[str]: return pulumi.get(self, "generation_qualifier") @property @pulumi.getter(name="givenName") def given_name(self) -> Optional[str]: return pulumi.get(self, "given_name") @property @pulumi.getter def initials(self) -> Optional[str]: return pulumi.get(self, "initials") @property @pulumi.getter def locality(self) -> Optional[str]: return pulumi.get(self, "locality") @property @pulumi.getter def organization(self) -> Optional[str]: return pulumi.get(self, "organization") @property @pulumi.getter(name="organizationalUnit") def organizational_unit(self) -> Optional[str]: return pulumi.get(self, "organizational_unit") @property @pulumi.getter def pseudonym(self) -> Optional[str]: return pulumi.get(self, "pseudonym") @property @pulumi.getter(name="serialNumber") def serial_number(self) -> Optional[str]: return pulumi.get(self, "serial_number") @property @pulumi.getter def state(self) -> Optional[str]: return pulumi.get(self, "state") @property @pulumi.getter def surname(self) -> Optional[str]: return pulumi.get(self, "surname") @property @pulumi.getter def title(self) -> Optional[str]: return pulumi.get(self, "title") @pulumi.output_type class CertificateValidity(dict): """ Validity for a certificate. """ def __init__(__self__, *, type: str, value: float): """ Validity for a certificate. """ pulumi.set(__self__, "type", type) pulumi.set(__self__, "value", value) @property @pulumi.getter def type(self) -> str: return pulumi.get(self, "type") @property @pulumi.getter def value(self) -> float: return pulumi.get(self, "value")
36.014725
174
0.642681
5,896
56,255
5.847015
0.046811
0.024975
0.038464
0.056216
0.781807
0.762778
0.751813
0.695423
0.676858
0.661281
0
0.004164
0.252973
56,255
1,561
175
36.037796
0.816176
0.060581
0
0.758242
1
0.017751
0.198526
0.070563
0
0
0
0
0
1
0.159763
false
0.001691
0.005072
0.086221
0.306847
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
af6379bc16f375e57165cb7e2798e6303cc1bf09
248
py
Python
gradient/api_sdk/serializers/log.py
Exitussru/GradientCI
014d4e36d8456e805b78e75562b8235221b62b9e
[ "0BSD" ]
null
null
null
gradient/api_sdk/serializers/log.py
Exitussru/GradientCI
014d4e36d8456e805b78e75562b8235221b62b9e
[ "0BSD" ]
null
null
null
gradient/api_sdk/serializers/log.py
Exitussru/GradientCI
014d4e36d8456e805b78e75562b8235221b62b9e
[ "0BSD" ]
null
null
null
import marshmallow from .base import BaseSchema from .. import models class LogRowSchema(BaseSchema): MODEL = models.LogRow line = marshmallow.fields.Int() message = marshmallow.fields.Str() timestamp = marshmallow.fields.Str()
19.076923
40
0.729839
27
248
6.703704
0.592593
0.281768
0.220994
0
0
0
0
0
0
0
0
0
0.177419
248
12
41
20.666667
0.887255
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.375
0
1
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
0
0
1
0
1
0
0
5
afbfd1edcf76102e995223961af9cd1f9df5d771
174
py
Python
setup.py
HDembinski/jacobi
ba698082ea6bfa28a8c20d8f5f87814abadc1d67
[ "MIT" ]
12
2020-06-08T17:47:14.000Z
2022-03-09T15:31:05.000Z
setup.py
HDembinski/autobib
f4fa004a4496f912acbf251d3092271c45b2fcb3
[ "MIT" ]
2
2021-05-13T11:34:25.000Z
2021-05-13T11:35:45.000Z
setup.py
HDembinski/autobib
f4fa004a4496f912acbf251d3092271c45b2fcb3
[ "MIT" ]
1
2022-03-09T15:31:18.000Z
2022-03-09T15:31:18.000Z
import site import sys import setuptools # type: ignore # workaround to allow editable install as user site.ENABLE_USER_SITE = "--user" in sys.argv[1:] setuptools.setup()
19.333333
48
0.758621
26
174
5
0.692308
0.123077
0
0
0
0
0
0
0
0
0
0.006757
0.149425
174
8
49
21.75
0.871622
0.327586
0
0
0
0
0.052632
0
0
0
0
0
0
1
0
true
0
0.6
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
afcaea0893c7e1b08e5b7de187e6e67299dc0144
51
py
Python
examples/_tests_scripts/dl_runner.py
rhololkeolke/catalyst-rl
ec18ff4a58b6d00652f772231db8de86debb4b3d
[ "Apache-2.0" ]
46
2020-03-27T20:12:32.000Z
2021-11-21T19:08:51.000Z
examples/_tests_scripts/dl_runner.py
rhololkeolke/catalyst-rl
ec18ff4a58b6d00652f772231db8de86debb4b3d
[ "Apache-2.0" ]
2
2020-04-06T10:43:04.000Z
2020-07-01T18:26:10.000Z
examples/_tests_scripts/dl_runner.py
rhololkeolke/catalyst-rl
ec18ff4a58b6d00652f772231db8de86debb4b3d
[ "Apache-2.0" ]
5
2020-04-17T14:09:53.000Z
2021-05-10T08:58:29.000Z
# flake8: noqa from catalyst_rl.dl.runner import *
17
35
0.764706
8
51
4.75
1
0
0
0
0
0
0
0
0
0
0
0.022727
0.137255
51
2
36
25.5
0.840909
0.235294
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
bb631dc4ba7aca28852da8863f28e9b9c6b46ee2
137
py
Python
fdm/utils/client.py
banksempire/FDM
f443a73056490cff937fd547d776f01117771b41
[ "MIT" ]
null
null
null
fdm/utils/client.py
banksempire/FDM
f443a73056490cff937fd547d776f01117771b41
[ "MIT" ]
null
null
null
fdm/utils/client.py
banksempire/FDM
f443a73056490cff937fd547d776f01117771b41
[ "MIT" ]
null
null
null
from pymongo import MongoClient from .config import config client = MongoClient(config["mongodb"]['address'], config["mongodb"]['port'])
34.25
77
0.759124
16
137
6.5
0.5625
0.25
0
0
0
0
0
0
0
0
0
0
0.087591
137
3
78
45.666667
0.832
0
0
0
0
0
0.182482
0
0
0
0
0
0
1
0
false
0
0.666667
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
bb75c36acd17e1f2173b984601f0a47489d560db
172
py
Python
python/testData/completion/superInitKwParamsNotOnlySelfAndKwArgs.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/completion/superInitKwParamsNotOnlySelfAndKwArgs.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/completion/superInitKwParamsNotOnlySelfAndKwArgs.after.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class A: def __init__(self, first=True): pass class B(A): def __init__(self, *args, **kwargs): super(B, self).__init__(*args, **kwargs) b = B(first=)
19.111111
48
0.587209
25
172
3.56
0.48
0.089888
0.179775
0.269663
0
0
0
0
0
0
0
0
0.232558
172
9
49
19.111111
0.674242
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0.142857
0
null
null
0
1
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
5
bb9ae0e0a4e45cf7b745c2bfaed161d9525d8758
2,847
py
Python
test.py
jtomasevic/graphs_in_python
7e771e98e71bb553b51b2d2f4215384d08e99cae
[ "Unlicense" ]
null
null
null
test.py
jtomasevic/graphs_in_python
7e771e98e71bb553b51b2d2f4215384d08e99cae
[ "Unlicense" ]
null
null
null
test.py
jtomasevic/graphs_in_python
7e771e98e71bb553b51b2d2f4215384d08e99cae
[ "Unlicense" ]
null
null
null
""" demo examples """ from graphs.adjacency_matrix_graph import AdjacenecyMatrixGraph from graphs.adjacency_set_graph import AdjacenecySetGraph from graphs.traversals import * from graphs.topological_sort import topological_sort from graphs.shortest_paths import shortest_path, shortest_path_dijkstra graph = AdjacenecyMatrixGraph(4, directed=True) graph.add_edge(0,1) graph.add_edge(0,2) graph.add_edge(2,3) print "AdjacenecyMatrixGraph representation:" graph.display() graph = AdjacenecySetGraph(4, directed=False) graph.add_edge(0,1) graph.add_edge(0,2) graph.add_edge(2,3) print "AdjacenecySetGraph representation:" graph.display() graph = AdjacenecyMatrixGraph(9) graph.add_edge(0,1) graph.add_edge(1,2) graph.add_edge(2,7) graph.add_edge(2,4) graph.add_edge(2,3) graph.add_edge(1,5) graph.add_edge(5,6) graph.add_edge(6,3) graph.add_edge(3,4) graph.add_edge(6,8) print "breath_first representation:" breath_first(graph) print "depth_first representation:" depth_first(graph, np.zeros(graph.num_vertices)) graph = AdjacenecySetGraph(9, directed=True) graph.add_edge(0,1) graph.add_edge(1,2) graph.add_edge(2,7) graph.add_edge(2,4) graph.add_edge(2,3) graph.add_edge(1,5) graph.add_edge(5,6) graph.add_edge(6,3) graph.add_edge(3,4) graph.add_edge(6,8) print "breath_first representation, directed graph:" breath_first(graph) print "depth_first representation, direceted graph:" depth_first(graph, np.zeros(graph.num_vertices)) graph = AdjacenecySetGraph(9, directed=True) graph.add_edge(0,1) graph.add_edge(1,2) graph.add_edge(2,7) graph.add_edge(2,4) graph.add_edge(2,3) graph.add_edge(1,5) graph.add_edge(5,6) graph.add_edge(3,6) graph.add_edge(3,4) graph.add_edge(6,8) print "topological sort example:" topological_sort(graph) graph = AdjacenecySetGraph(9, directed=True) graph.add_edge(0,1) graph.add_edge(1,2) graph.add_edge(1,3) graph.add_edge(2,3) graph.add_edge(1,4) graph.add_edge(3,5) graph.add_edge(5,4) graph.add_edge(3,6) graph.add_edge(6,7) graph.add_edge(0,7) shortest_path(graph, 0, 5) shortest_path(graph, 0, 6) shortest_path(graph, 7, 4) graph = AdjacenecyMatrixGraph(8, directed=False) graph.add_edge(0,1, 1) graph.add_edge(1,2, 2) graph.add_edge(1,3, 6) graph.add_edge(2,3, 2) graph.add_edge(1,4, 3) graph.add_edge(3,5, 1) graph.add_edge(5,4, 5) graph.add_edge(3,6, 1) graph.add_edge(6,7, 1) graph.add_edge(0,7, 8) shortest_path_dijkstra(graph, 0, 6) shortest_path_dijkstra(graph, 4, 7) shortest_path_dijkstra(graph, 7, 0) graph = AdjacenecyMatrixGraph(8, directed=True) graph.add_edge(0,1, 1) graph.add_edge(1,2, 2) graph.add_edge(1,3, 6) graph.add_edge(2,3, 2) graph.add_edge(1,4, 3) graph.add_edge(3,5, 1) graph.add_edge(5,4, 5) graph.add_edge(3,6, 1) graph.add_edge(6,7, 1) graph.add_edge(0,7, 8) shortest_path_dijkstra(graph, 0, 6) shortest_path_dijkstra(graph, 4, 7) shortest_path_dijkstra(graph, 7, 0)
24.127119
71
0.775904
535
2,847
3.938318
0.084112
0.250593
0.37589
0.092549
0.723303
0.692928
0.691979
0.631229
0.61794
0.605126
0
0.067706
0.076572
2,847
118
72
24.127119
0.733739
0
0
0.735294
0
0
0.084542
0.007428
0
0
0
0
0
0
null
null
0
0.04902
null
null
0.068627
0
0
0
null
1
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
bb9f1662f1f9627dc0906ab451ae6ce478e8bc22
3,288
py
Python
hydropy/ipython.py
stijnvanhoey/hydropy
af5f6354c2d7cb3ae2f78f8ca70c7e4570e41999
[ "BSD-2-Clause" ]
51
2015-04-09T12:51:49.000Z
2022-01-24T14:07:37.000Z
hydropy/ipython.py
stijnvanhoey/hydropy
af5f6354c2d7cb3ae2f78f8ca70c7e4570e41999
[ "BSD-2-Clause" ]
16
2016-09-26T07:40:16.000Z
2017-04-05T19:51:46.000Z
hydropy/ipython.py
stijnvanhoey/hydropy
af5f6354c2d7cb3ae2f78f8ca70c7e4570e41999
[ "BSD-2-Clause" ]
27
2015-04-11T01:10:46.000Z
2022-01-24T14:07:35.000Z
# -*- coding: utf-8 -*- """ Created on Sun Oct 16 11:44:13 2016 @author: Marty ipython.py This module is for holding convenience functions for working with IPython. """ import pandas as pd from IPython.display import HTML # import hydropy as hp def startsession(): """This doesn't work. The hope was to create a function that a user could call that would take care of all of the imports and whatnot. Not a big convenience, but that was the idea. You can't import inside of a function and have it affect the main namespace. Instead, try the following: - create a ipython_config.py file. http://ipython.org/ipython-doc/stable/config/intro.html#setting-configurable-options take care of all of the imports and other things that need to be done at the start of a session. TODO: wrap the imports in a try clause, and create a special import Error if the import fails. This Error will include a message about how to use pip or conda to install pandas and numpy. # Import the libraries that we'll be using print('import numpy as np') import numpy as np print('import pandas as pd') import pandas as pd print('hydropy as hp') # Note to self: hey dummy! How can you use startsession() if you haven't # already imported hydropy? import hydropy as hp # Set the notebook to plot graphs in the output cells. print('%matplotlib inline') # %matplotlib inline """ pass def draw_map(width=700, height=400): """Draw an interactive map from hydrocloud.org. Places a map of USGS stream gauges from hydrocloud.org into an IFrame and displays it in an IPython interactive session. To use the map, click on the red dots to display information about each USGS stream gauge. Args: ----- width (int): The width of the map iframe. height (int): The height of the map iframe. Returns: -------- HTML display object. Example: -------- >>> import hydropy as hp >>> hp.draw_map() A map is drawn. >>> hp.draw_map(width=900, height=600) A big map is drawn! TODO: ----- - use ipywidgets to allow users to click on the map, and this will return a value that can be used in another IPython cell. This feature would allow the map to act as an interactive site selection tool. """ output = HTML('<p>Use <a href="http://hydrocloud.org" target="_blank">' 'HydroCloud.org</a> to find a stream gauge. ' 'Click on the red dots to learn more about a site.</p>' '<iframe src=http://hydrocloud.org/ width={} height={}>' '</iframe>'.format(width, height)) return output # inject this function into HydroPy classes that would benefit from Pandas' # excellent __str__() functions. Inject like this:: # self.__str__ = hydro_df_to_str def hydro_df_to_str(self): return str(self.data) def hydro_df_to_repr(self): return repr(self.data) def hydro_df_to_repr_html(self): """return the data formatted as html in an IPython notebook. """ if self.data is None: return str(self.data) return pd.DataFrame._repr_html_(self.data)
30.728972
127
0.654501
495
3,288
4.288889
0.39798
0.030617
0.020725
0.02261
0.066886
0.066886
0.048987
0.026378
0
0
0
0.010305
0.262165
3,288
106
128
31.018868
0.864798
0.70073
0
0.105263
0
0
0.277562
0
0
0
0
0.018868
0
1
0.263158
false
0.052632
0.105263
0.105263
0.631579
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
1
0
1
1
0
0
5
bbf52275a5120149b41a8de45d0924eaac4e20df
307
py
Python
janis/tools/squeakr/versions.py
beccyl/classi
e409c7ede6f4ac2e66d509120b06d14a909455fe
[ "MIT" ]
null
null
null
janis/tools/squeakr/versions.py
beccyl/classi
e409c7ede6f4ac2e66d509120b06d14a909455fe
[ "MIT" ]
null
null
null
janis/tools/squeakr/versions.py
beccyl/classi
e409c7ede6f4ac2e66d509120b06d14a909455fe
[ "MIT" ]
null
null
null
from abc import ABC class Squeakr_0_7(ABC): def container(self): return "beccyl/squeakr:0.7" def version(self): return "0.7" class Squeakr_master(ABC): def container(self): return "beccyl/squeakr:master_0d58134" def version(self): return "master_0d58134"
19.1875
46
0.648208
41
307
4.731707
0.365854
0.206186
0.092784
0.195876
0.391753
0.391753
0.391753
0
0
0
0
0.077922
0.247557
307
15
47
20.466667
0.761905
0
0
0.363636
0
0
0.208469
0.094463
0
0
0
0
0
1
0.363636
false
0
0.090909
0.363636
1
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
a56f630ad799de9f63e51b3de3fefce8b6762f73
214
py
Python
hellohook/__init__.py
R3XET/coffee-cogs
e7658213449ec140edaaf322514eaafb575f99bd
[ "MIT" ]
null
null
null
hellohook/__init__.py
R3XET/coffee-cogs
e7658213449ec140edaaf322514eaafb575f99bd
[ "MIT" ]
null
null
null
hellohook/__init__.py
R3XET/coffee-cogs
e7658213449ec140edaaf322514eaafb575f99bd
[ "MIT" ]
null
null
null
from .hellohook import Hellohook from redbot.core.utils import get_end_user_data_statement __red_end_user_data_statement__ = get_end_user_data_statement(__file__) def setup(bot): bot.add_cog(Hellohook(bot))
26.75
72
0.836449
33
214
4.787879
0.545455
0.132911
0.208861
0.379747
0.291139
0
0
0
0
0
0
0
0.098131
214
7
73
30.571429
0.818653
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.6
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
a5799c05904469daa6e9a3c1a7af9adbbaaf6cc9
105
py
Python
enthought/chaco/tools/toolbars/toolbar_buttons.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/chaco/tools/toolbars/toolbar_buttons.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/chaco/tools/toolbars/toolbar_buttons.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from chaco.tools.toolbars.toolbar_buttons import *
26.25
50
0.847619
14
105
5.928571
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.104762
105
3
51
35
0.882979
0.114286
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
a58c70b03ab7c28437d3d6e4a670d20466a0c59d
126
py
Python
library/test/test_compiler/testcorpus/54_list_comp_recur_func.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
278
2021-08-31T00:46:51.000Z
2022-02-13T19:43:28.000Z
library/test/test_compiler/testcorpus/54_list_comp_recur_func.py
creativemindplus/skybison
d1740e08d8de85a0a56b650675717da67de171a0
[ "CNRI-Python-GPL-Compatible" ]
9
2021-11-05T22:28:43.000Z
2021-11-23T08:39:04.000Z
library/test/test_compiler/testcorpus/54_list_comp_recur_func.py
tekknolagi/skybison
bea8fc2af0a70e7203b4c19f36c14a745512a335
[ "CNRI-Python-GPL-Compatible" ]
12
2021-08-31T07:49:54.000Z
2021-10-08T01:09:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) def recur1(a): return [recur1(b) for b in a]
31.5
76
0.674603
21
126
4.047619
0.809524
0
0
0
0
0
0
0
0
0
0
0.019048
0.166667
126
3
77
42
0.790476
0.587302
0
0
0
0
0
0
0
0
0
0
0
1
0.5
false
0
0
0.5
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
1
0
0
0
1
1
0
0
5
a5ac8968aafc86da51a25c170aa08f29ae9c3bfd
6,384
py
Python
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/pyephem/pyephem-3.7.6.0/ephem/stars.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
1
2019-01-26T17:19:47.000Z
2019-01-26T17:19:47.000Z
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/pyephem/pyephem-3.7.6.0/ephem/stars.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
null
null
null
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/pyephem/pyephem-3.7.6.0/ephem/stars.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
null
null
null
"""A Catalog of 94 Bright Stars The function star() will create and return a PyEphem Body representing the star whose name you provide. >>> star('Aldebaran') Data is adapted from the version of the Hipparcos star catalog at: ftp://adc.gsfc.nasa.gov/pub/adc/archives/catalogs/1/1239/hip_main.dat.gz Of the thousand brighest Hipparcos stars, those with proper names registered at http://simbad.u-strasbg.fr/simbad/ were chosen. """ db = """\ Sirrah,f|S|B9,0:08:23.2|135.68,29:05:27|-162.95,2.07,2000,0 Caph,f|S|F2,0:09:10.1|523.39,59:09:01|-180.42,2.28,2000,0 Algenib,f|S|B2,0:13:14.2|4.7,15:11:01|-8.24,2.83,2000,0 Schedar,f|S|K0,0:40:30.4|50.36,56:32:15|-32.17,2.24,2000,0 Mirach,f|S|M0,1:09:43.8|175.59,35:37:15|-112.23,2.07,2000,0 Achernar,f|S|B3,1:37:42.8|88.02,-57:14:12|-40.08,0.45,2000,0 Almach,f|S|B8,2:03:53.9|43.08,42:19:48|-50.85,2.10,2000,0 Hamal,f|S|K2,2:07:10.3|190.73,23:27:46|-145.77,2.01,2000,0 Polaris,f|S|F7,2:31:47.1|44.22,89:15:51|-11.74,1.97,2000,0 Menkar,f|S|M2,3:02:16.8|-11.81,4:05:24|-78.76,2.54,2000,0 Algol,f|S|B8,3:08:10.1|2.39,40:57:20|-1.44,2.09,2000,0 Electra,f|S|B6,3:44:52.5|21.55,24:06:48|-44.92,3.72,2000,0 Taygeta,f|S|B6,3:45:12.5|19.35,24:28:03|-41.63,4.30,2000,0 Maia,f|S|B8,3:45:49.6|21.09,24:22:04|-45.03,3.87,2000,0 Merope,f|S|B6,3:46:19.6|21.17,23:56:54|-42.67,4.14,2000,0 Alcyone,f|S|B7,3:47:29.1|19.35,24:06:19|-43.11,2.85,2000,0 Atlas,f|S|B8,3:49:09.7|17.77,24:03:13|-44.7,3.62,2000,0 Zaurak,f|S|M1,3:58:01.7|60.51,-13:30:30|-111.34,2.97,2000,0 Aldebaran,f|S|K5,4:35:55.2|62.78,16:30:35|-189.36,0.87,2000,0 Rigel,f|S|B8,5:14:32.3|1.87,-8:12:06|-0.56,0.18,2000,0 Capella,f|S|M1,5:16:41.3|75.52,45:59:57|-427.13,0.08,2000,0 Bellatrix,f|S|B2,5:25:07.9|-8.75,6:20:59|-13.28,1.64,2000,0 Elnath,f|S|B7,5:26:17.5|23.28,28:36:28|-174.22,1.65,2000,0 Nihal,f|S|G5,5:28:14.7|-5.03,-20:45:33|-85.92,2.81,2000,0 Mintaka,f|S|O9,5:32:00.4|1.67,-0:17:57|0.56,2.25,2000,0 Arneb,f|S|F0,5:32:43.8|3.27,-17:49:20|1.54,2.58,2000,0 Alnilam,f|S|B0,5:36:12.8|1.49,-1:12:07|-1.06,1.69,2000,0 Alnitak,f|S|O9,5:40:45.5|3.99,-1:56:33|2.54,1.74,2000,0 Saiph,f|S|B0,5:47:45.4|1.55,-9:40:11|-1.2,2.07,2000,0 Betelgeuse,f|S|M2,5:55:10.3|27.33,7:24:25|10.86,0.45,2000,0 Menkalinan,f|S|A2,5:59:31.8|-56.41,44:56:51|-0.88,1.90,2000,0 Mirzam,f|S|B1,6:22:42.0|-3.45,-17:57:21|-0.47,1.98,2000,0 Canopus,f|S|F0,6:23:57.1|19.99,-52:41:45|23.67,-0.62,2000,0 Alhena,f|S|A0,6:37:42.7|-2.04,16:23:58|-66.92,1.93,2000,0 Sirius,f|S|A0,6:45:09.3|-546.01,-16:42:47|-1223.08,-1.44,2000,0 Adara,f|S|B2,6:58:37.6|2.63,-28:58:20|2.29,1.50,2000,0 Wezen,f|S|F8,7:08:23.5|-2.75,-26:23:36|3.33,1.83,2000,0 Castor,f|S|A2,7:34:36.0|-206.33,31:53:19|-148.18,1.58,2000,0 Procyon,f|S|F5,7:39:18.5|-716.57,5:13:39|-1034.58,0.40,2000,0 Pollux,f|S|K0,7:45:19.4|-625.69,28:01:35|-45.95,1.16,2000,0 Naos,f|S|O5,8:03:35.1|-30.82,-40:00:12|16.77,2.21,2000,0 Alphard,f|S|K3,9:27:35.3|-14.49,-8:39:31|33.25,1.99,2000,0 Regulus,f|S|B7,10:08:22.5|-249.4,11:58:02|4.91,1.36,2000,0 Algieba,f|S|K0,10:19:58.2|310.77,19:50:31|-152.88,2.01,2000,0 Merak,f|S|A1,11:01:50.4|81.66,56:22:56|33.74,2.34,2000,0 Dubhe,f|S|F7,11:03:43.8|-136.46,61:45:04|-35.25,1.81,2000,0 Denebola,f|S|A3,11:49:03.9|-499.02,14:34:20|-113.78,2.14,2000,0 Phecda,f|S|A0,11:53:49.7|107.76,53:41:41|11.16,2.41,2000,0 Minkar,f|S|K2,12:10:07.5|-71.52,-22:37:11|10.55,3.02,2000,0 Megrez,f|S|A3,12:15:25.5|103.56,57:01:57|7.81,3.32,2000,0 Gienah Corvi,f|S|B8,12:15:48.5|-159.58,-17:32:31|22.31,2.58,2000,0 Mimosa,f|S|B0,12:47:43.3|-48.24,-59:41:19|-12.82,1.25,2000,0 Alioth,f|S|A0,12:54:01.6|111.74,55:57:35|-8.99,1.76,2000,0 Vindemiatrix,f|S|G8,13:02:10.8|-275.05,10:57:33|19.96,2.85,2000,0 Mizar,f|S|A2,13:23:55.4|121.23,54:55:32|-22.01,2.23,2000,0 Spica,f|S|B1,13:25:11.6|-42.5,-11:09:40|-31.73,0.98,2000,0 Alcor,f|S|A5,13:25:13.4|120.35,54:59:17|-16.94,3.99,2000,0 Alcaid,f|S|B3,13:47:32.5|-121.23,49:18:48|-15.56,1.85,2000,0 Agena,f|S|B1,14:03:49.4|-33.96,-60:22:23|-25.06,0.61,2000,0 Thuban,f|S|A0,14:04:23.4|-56.52,64:22:33|17.19,3.67,2000,0 Arcturus,f|S|K2,14:15:40.3|-1093.45,19:11:14|-1999.4,-0.05,2000,0 Izar,f|S|A0,14:44:59.3|-50.65,27:04:27|20,2.35,2000,0 Kochab,f|S|K4,14:50:42.4|-32.29,74:09:20|11.91,2.07,2000,0 Alphecca,f|S|A0,15:34:41.2|120.38,26:42:54|-89.44,2.22,2000,0 Unukalhai,f|S|K2,15:44:16.0|134.66,6:25:32|44.14,2.63,2000,0 Antares,f|S|M1,16:29:24.5|-10.16,-26:25:55|-23.21,1.06,2000,0 Rasalgethi,f|S|M5,17:14:38.9|-6.71,14:23:25|32.78,2.78,2000,0 Shaula,f|S|B1,17:33:36.5|-8.9,-37:06:13|-29.95,1.62,2000,0 Rasalhague,f|S|A5,17:34:56.0|110.08,12:33:38|-222.61,2.08,2000,0 Cebalrai,f|S|K2,17:43:28.4|-40.67,4:34:01|158.8,2.76,2000,0 Etamin,f|S|K5,17:56:36.4|-8.52,51:29:20|-23.05,2.24,2000,0 Kaus Australis,f|S|B9,18:24:10.4|-39.61,-34:23:04|-124.05,1.79,2000,0 Vega,f|S|A0,18:36:56.2|201.02,38:46:59|287.46,0.03,2000,0 Sheliak,f|S|A8,18:50:04.8|1.1,33:21:46|-4.46,3.52,2000,0 Nunki,f|S|B2,18:55:15.9|13.87,-26:17:48|-52.65,2.05,2000,0 Sulafat,f|S|B9,18:58:56.6|-2.76,32:41:22|1.77,3.25,2000,0 Arkab Prior,f|S|B9,19:22:38.3|7.31,-44:27:32|-22.43,3.96,2000,0 Arkab Posterior,f|S|F2,19:23:13.1|92.78,-44:47:59|-53.73,4.27,2000,0 Rukbat,f|S|B8,19:23:53.2|32.67,-40:36:56|-120.81,3.96,2000,0 Albereo,f|S|K3,19:30:43.3|-7.09,27:57:35|-5.63,3.05,2000,0 Tarazed,f|S|K3,19:46:15.6|15.72,10:36:48|-3.08,2.72,2000,0 Altair,f|S|A7,19:50:46.7|536.82,8:52:03|385.54,0.76,2000,0 Alshain,f|S|G8,19:55:18.8|46.35,6:24:29|-481.32,3.71,2000,0 Sadr,f|S|F8,20:22:13.7|2.43,40:15:24|-0.93,2.23,2000,0 Peacock,f|S|B2,20:25:38.9|7.71,-56:44:06|-86.15,1.94,2000,0 Deneb,f|S|A2,20:41:25.9|1.56,45:16:49|1.55,1.25,2000,0 Alderamin,f|S|A7,21:18:34.6|149.91,62:35:08|48.27,2.45,2000,0 Alfirk,f|S|B2,21:28:39.6|12.6,70:33:39|8.73,3.23,2000,0 Enif,f|S|K2,21:44:11.1|30.02,9:52:30|1.38,2.38,2000,0 Sadalmelik,f|S|G2,22:05:47.0|17.9,-0:19:11|-9.93,2.95,2000,0 Alnair,f|S|B7,22:08:13.9|127.6,-46:57:38|-147.91,1.73,2000,0 Fomalhaut,f|S|A3,22:57:38.8|329.22,-29:37:19|-164.22,1.17,2000,0 Scheat,f|S|M2,23:03:46.3|187.76,28:04:57|137.61,2.44,2000,0 Markab,f|S|B9,23:04:45.6|61.1,15:12:19|-42.56,2.49,2000,0 """ stars = {} def build_stars(): global stars import ephem for line in db.strip().split('\n'): star = ephem.readdb(line) stars[star.name] = star build_stars() del build_stars def star(name, *args, **kwargs): star = stars[name].copy() if args or kwargs: star.compute(*args, **kwargs) return star
49.875
72
0.659774
1,909
6,384
2.204295
0.1912
0.044677
0.007605
0.007605
0
0
0
0
0
0
0
0.45053
0.039004
6,384
127
73
50.267717
0.235371
0.066573
0
0
0
0.854545
0.940188
0.919691
0
0
0
0
0
1
0.018182
false
0
0.009091
0
0.036364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
a5ae42e3140265d9d7a4eb8fd777f90ed31ce91b
19
py
Python
src/simple_sagemaker/__init__.py
mhtrinhLIC/simple_sagemaker
d3f9dc5bf93ea3d4cd0ae093e48230a297c0ca84
[ "Apache-2.0" ]
16
2020-09-18T14:59:38.000Z
2022-01-14T13:18:08.000Z
src/simple_sagemaker/__init__.py
mhtrinhLIC/simple_sagemaker
d3f9dc5bf93ea3d4cd0ae093e48230a297c0ca84
[ "Apache-2.0" ]
3
2020-10-16T19:43:23.000Z
2021-10-01T13:54:14.000Z
src/simple_sagemaker/__init__.py
mhtrinhLIC/simple_sagemaker
d3f9dc5bf93ea3d4cd0ae093e48230a297c0ca84
[ "Apache-2.0" ]
3
2020-10-17T06:58:00.000Z
2021-05-19T07:44:07.000Z
VERSION = "0.9.24"
9.5
18
0.578947
4
19
2.75
1
0
0
0
0
0
0
0
0
0
0
0.25
0.157895
19
1
19
19
0.4375
0
0
0
0
0
0.315789
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
3c291ca8b07b6aed80f276da33e9802b8f6f7c45
219
py
Python
backend/server_alpha/server_alpha_app/admin.py
dalmarcogd/challenge_ms
761f0a588b4c309cf6e226d306df3609c1179b4c
[ "MIT" ]
null
null
null
backend/server_alpha/server_alpha_app/admin.py
dalmarcogd/challenge_ms
761f0a588b4c309cf6e226d306df3609c1179b4c
[ "MIT" ]
13
2020-06-05T18:26:43.000Z
2021-06-10T20:36:13.000Z
backend/server_alpha/server_alpha_app/admin.py
dalmarcogd/challenge_ms
761f0a588b4c309cf6e226d306df3609c1179b4c
[ "MIT" ]
null
null
null
from django.contrib import admin from server_alpha_app import models # Register your models here. admin.site.register(models.UserModel) admin.site.register(models.CustomerModel) admin.site.register(models.DebtModel)
24.333333
41
0.83105
30
219
6
0.533333
0.15
0.283333
0.383333
0
0
0
0
0
0
0
0
0.086758
219
9
42
24.333333
0.9
0.118721
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
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
1
0
1
0
0
0
0
5
3c3c79d659cf0000267f202df8345bdaa5bd6875
41
py
Python
nets/__init__.py
DavidS3141/tf-toolbox
6d1fd38b425be769cde3db5ca715d143ba01240e
[ "MIT" ]
null
null
null
nets/__init__.py
DavidS3141/tf-toolbox
6d1fd38b425be769cde3db5ca715d143ba01240e
[ "MIT" ]
null
null
null
nets/__init__.py
DavidS3141/tf-toolbox
6d1fd38b425be769cde3db5ca715d143ba01240e
[ "MIT" ]
null
null
null
from .fc import fc_network # noqa: F401
20.5
40
0.731707
7
41
4.142857
0.857143
0
0
0
0
0
0
0
0
0
0
0.090909
0.195122
41
1
41
41
0.787879
0.243902
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
3c7e6a5e420cf9744de52fcb077ab15fa18ab7e0
207
py
Python
subwork/version.py
vd2org/subwork
0bef438aaf7222684659c16a4683a5d3ee6e3aaa
[ "MIT" ]
null
null
null
subwork/version.py
vd2org/subwork
0bef438aaf7222684659c16a4683a5d3ee6e3aaa
[ "MIT" ]
null
null
null
subwork/version.py
vd2org/subwork
0bef438aaf7222684659c16a4683a5d3ee6e3aaa
[ "MIT" ]
null
null
null
# Copyright (C) 2020-2021 by Vd. # This file is part of subwork, the simple way to work with with subprocesses. # subwork is released under the MIT License (see LICENSE). def version(): return "0.0.1"
25.875
78
0.710145
35
207
4.2
0.828571
0
0
0
0
0
0
0
0
0
0
0.066265
0.198068
207
7
79
29.571429
0.819277
0.792271
0
0
0
0
0.128205
0
0
0
0
0
0
1
0.5
true
0
0
0.5
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
1
1
0
0
5
b1cac45cd4cb9bac22f673f2ec2e9fdcc7cdd198
212
py
Python
animethemes_dl/models/__init__.py
przemub/animethemes-dl
27347d711e3a9e4e51db78aacd1f63460afbc861
[ "MIT" ]
null
null
null
animethemes_dl/models/__init__.py
przemub/animethemes-dl
27347d711e3a9e4e51db78aacd1f63460afbc861
[ "MIT" ]
null
null
null
animethemes_dl/models/__init__.py
przemub/animethemes-dl
27347d711e3a9e4e51db78aacd1f63460afbc861
[ "MIT" ]
null
null
null
""" Models for animethemes-dl. Uses TypedDict to add hinting while still using builtin data types. """ from .animethemes import * from .dldata import * from .literals import * from .options import Options,DEFAULT
26.5
67
0.773585
29
212
5.655172
0.724138
0.182927
0
0
0
0
0
0
0
0
0
0
0.146226
212
8
68
26.5
0.906077
0.443396
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
593f25fadcb371ee80e26b9ee26b886938376093
6,152
py
Python
tests/test_order_group_scope.py
mrbean-bremen/pytest-order
50cb2f3735b6e6a02046f44eefc928e6a9da5268
[ "MIT" ]
12
2020-11-17T16:58:05.000Z
2021-06-08T06:26:37.000Z
tests/test_order_group_scope.py
mrbean-bremen/pytest-order
50cb2f3735b6e6a02046f44eefc928e6a9da5268
[ "MIT" ]
8
2020-10-24T18:34:43.000Z
2021-03-04T08:08:19.000Z
tests/test_order_group_scope.py
mrbean-bremen/pytest-order
50cb2f3735b6e6a02046f44eefc928e6a9da5268
[ "MIT" ]
1
2020-12-07T12:29:47.000Z
2020-12-07T12:29:47.000Z
# -*- coding: utf-8 -*- import os import shutil import pytest import pytest_order from tests.utils import write_test, assert_test_order @pytest.fixture(scope="module") def fixture_path(tmpdir_factory): fixture_path = str(tmpdir_factory.mktemp("group_scope")) testname = os.path.join(fixture_path, "test_clss.py") test_class_contents = """ import pytest class Test1: @pytest.mark.order(2) def test_two(self): assert True def test_one(self): assert True class Test2: def test_two(self): assert True @pytest.mark.order(1) def test_one(self): assert True @pytest.mark.order(-1) def test_two(): assert True def test_one(): assert True """ write_test(testname, test_class_contents) test_function_contents = """ import pytest @pytest.mark.order(5) def test1_two(): assert True def test1_one(): assert True """ testname = os.path.join(fixture_path, "test_fcts1.py") write_test(testname, test_function_contents) test_function_contents = """ import pytest @pytest.mark.order(0) def test2_two(): assert True def test2_one(): assert True """ testname = os.path.join(fixture_path, "test_fcts2.py") write_test(testname, test_function_contents) test_function_contents = """ import pytest @pytest.mark.order(-2) def test3_two(): assert True def test3_one(): assert True """ testname = os.path.join(fixture_path, "test_fcts3.py") write_test(testname, test_function_contents) test_function_contents = """ import pytest def test4_one(): assert True def test4_two(): assert True """ testname = os.path.join(fixture_path, "test_fcts4.py") write_test(testname, test_function_contents) yield fixture_path shutil.rmtree(fixture_path, ignore_errors=True) @pytest.fixture(scope="module") def fixture_file_paths(fixture_path): yield [ os.path.join(fixture_path, "test_clss.py"), os.path.join(fixture_path, "test_fcts1.py"), os.path.join(fixture_path, "test_fcts2.py"), os.path.join(fixture_path, "test_fcts3.py"), os.path.join(fixture_path, "test_fcts4.py") ] def test_session_scope(fixture_path, capsys): args = ["-v", fixture_path] pytest.main(args, [pytest_order]) out, err = capsys.readouterr() expected = ( "test_fcts2.py::test2_two", "test_clss.py::Test2::test_one", "test_clss.py::Test1::test_two", "test_fcts1.py::test1_two", "test_clss.py::Test1::test_one", "test_clss.py::Test2::test_two", "test_clss.py::test_one", "test_fcts1.py::test1_one", "test_fcts2.py::test2_one", "test_fcts3.py::test3_one", "test_fcts4.py::test4_one", "test_fcts4.py::test4_two", "test_fcts3.py::test3_two", "test_clss.py::test_two" ) assert_test_order(expected, out) def test_module_group_scope(fixture_path, capsys): args = ["-v", "--order-group-scope=module", fixture_path] pytest.main(args, [pytest_order]) out, err = capsys.readouterr() expected = ( "test_fcts2.py::test2_two", "test_fcts2.py::test2_one", "test_clss.py::Test2::test_one", "test_clss.py::Test1::test_two", "test_clss.py::Test1::test_one", "test_clss.py::Test2::test_two", "test_clss.py::test_one", "test_clss.py::test_two", "test_fcts1.py::test1_two", "test_fcts1.py::test1_one", "test_fcts4.py::test4_one", "test_fcts4.py::test4_two", "test_fcts3.py::test3_one", "test_fcts3.py::test3_two", ) assert_test_order(expected, out) def test_class_group_scope(fixture_path, capsys): args = ["-v", "--order-group-scope=class", fixture_path] pytest.main(args, [pytest_order]) out, err = capsys.readouterr() expected = ( "test_fcts2.py::test2_two", "test_fcts2.py::test2_one", "test_clss.py::Test2::test_one", "test_clss.py::Test2::test_two", "test_clss.py::Test1::test_two", "test_clss.py::Test1::test_one", "test_clss.py::test_one", "test_clss.py::test_two", "test_fcts1.py::test1_two", "test_fcts1.py::test1_one", "test_fcts4.py::test4_one", "test_fcts4.py::test4_two", "test_fcts3.py::test3_one", "test_fcts3.py::test3_two", ) assert_test_order(expected, out) def test_class_group_scope_module_scope(fixture_path, capsys): args = ["-v", "--order-group-scope=class", "--order-scope=module", fixture_path] pytest.main(args, [pytest_order]) out, err = capsys.readouterr() expected = ( "test_clss.py::Test2::test_one", "test_clss.py::Test2::test_two", "test_clss.py::Test1::test_two", "test_clss.py::Test1::test_one", "test_clss.py::test_one", "test_clss.py::test_two", "test_fcts1.py::test1_two", "test_fcts1.py::test1_one", "test_fcts2.py::test2_two", "test_fcts2.py::test2_one", "test_fcts3.py::test3_one", "test_fcts3.py::test3_two", "test_fcts4.py::test4_one", "test_fcts4.py::test4_two", ) assert_test_order(expected, out) @pytest.mark.skipif(pytest.__version__.startswith("3.7."), reason="Warning does not appear in output in pytest < 3.8") def test_invalid_scope(fixture_path, capsys): args = ["-v", "--order-group-scope=function", fixture_path] pytest.main(args, [pytest_order]) out, err = capsys.readouterr() assert ("UserWarning: Unknown order group scope 'function', " "ignoring it." in out) @pytest.mark.skipif(pytest.__version__.startswith("3.7."), reason="Warning does not appear in output in pytest < 3.8") def test_ignored_scope(fixture_path, capsys): args = ["-v", "--order-group-scope=session", "--order-scope=module", fixture_path] pytest.main(args, [pytest_order]) out, err = capsys.readouterr() assert ("UserWarning: Group scope is larger than order scope, ignoring it." in out)
28.220183
79
0.641417
834
6,152
4.447242
0.100719
0.052844
0.0701
0.045565
0.840119
0.826638
0.77649
0.764357
0.694257
0.621192
0
0.023347
0.213264
6,152
217
80
28.35023
0.742975
0.003414
0
0.659341
0
0
0.449176
0.271986
0
0
0
0
0.115385
1
0.043956
false
0
0.054945
0
0.098901
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
3cc3ad2b2438212f6ce590220de4975a8bf02611
286
py
Python
bin/Python27/Lib/site-packages/omniORBpy-4.2.0/lib/python/omniORB/COS/CosNotifyChannelAdmin__POA/__init__.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/omniORBpy-4.2.0/lib/python/omniORB/COS/CosNotifyChannelAdmin__POA/__init__.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/Python27/Lib/site-packages/omniORBpy-4.2.0/lib/python/omniORB/COS/CosNotifyChannelAdmin__POA/__init__.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
# DO NOT EDIT THIS FILE! # # Python module CosNotifyChannelAdmin__POA generated by omniidl import omniORB omniORB.updateModule("CosNotifyChannelAdmin__POA") # ** 1. Stub files contributing to this module import CosNotifyChannelAdmin_idl # ** 2. Sub-modules # ** 3. End
20.428571
64
0.737762
33
286
6.242424
0.787879
0.23301
0
0
0
0
0
0
0
0
0
0.012876
0.185315
286
13
65
22
0.871245
0.548951
0
0
1
0
0.238532
0.238532
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
3cd26bacbaa5bf7302e79c143ece2f2f911697b6
120
py
Python
idleutils/__init__.py
idleuncle/idleutils
f7457c187bcbe27e249f775e68d268458ca42454
[ "MIT" ]
null
null
null
idleutils/__init__.py
idleuncle/idleutils
f7457c187bcbe27e249f775e68d268458ca42454
[ "MIT" ]
null
null
null
idleutils/__init__.py
idleuncle/idleutils
f7457c187bcbe27e249f775e68d268458ca42454
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .urlfetcher import URLFetcher def get_html(URL): return URLFetcher().fetch_url(URL)
15
38
0.683333
16
120
5
0.75
0
0
0
0
0
0
0
0
0
0
0.01
0.166667
120
7
39
17.142857
0.79
0.175
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0.333333
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
1
0
0
1
1
0
0
0
5
3cdea33ca5001539449dca1754ec5fc692f2f635
1,151
py
Python
main.py
celikmustafa89/sololearn-python-notes
8ff5b0a46a5c5b393e208074d15d24166ff87995
[ "Apache-2.0" ]
18
2017-05-07T11:19:18.000Z
2021-11-03T19:22:33.000Z
main.py
celikmustafa89/python-api
8ff5b0a46a5c5b393e208074d15d24166ff87995
[ "Apache-2.0" ]
1
2016-08-27T23:40:15.000Z
2016-08-27T23:40:15.000Z
main.py
celikmustafa89/python-api
8ff5b0a46a5c5b393e208074d15d24166ff87995
[ "Apache-2.0" ]
11
2017-05-07T11:19:33.000Z
2022-01-20T22:43:25.000Z
#!/usr/bin/python from assistant.python_list import create_square_list_1 from assistant.python_list import create_square_list_2 from assistant.python_list import list_comprehensions from assistant.python_list import nested_list_comprehensions from assistant.python_list import list_delete from assistant.python_iterators_and_generators import iteration_over_list from assistant.python_iterators_and_generators import iteration_over_string from assistant.python_iterators_and_generators import iteration_over_dictionary from assistant.python_iterators_and_generators import iteration_over_file_line from assistant.python_iterators_and_generators import iteration_practical_usage def main(): """ :rtype: object """ # assistant > python_list.py outputs create_square_list_1() create_square_list_2() list_comprehensions() nested_list_comprehensions() list_delete() # assistant > python_iterators_and_generators outputs iteration_over_list() iteration_over_string() iteration_over_dictionary() iteration_over_file_line() iteration_practical_usage() if __name__ == '__main__': main()
29.512821
79
0.823632
144
1,151
6.069444
0.229167
0.20595
0.217391
0.185355
0.629291
0.586957
0.549199
0.441648
0.2746
0
0
0.003976
0.125977
1,151
38
80
30.289474
0.864811
0.10252
0
0
0
0
0.00789
0
0
0
0
0
0
1
0.043478
true
0
0.434783
0
0.478261
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
a70b2d01a011c559891eea8ec1f3fc35388d063d
1,622
py
Python
src/IceRayPy/core/material/pigment.py
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
2
2020-09-04T12:27:15.000Z
2022-01-17T14:49:40.000Z
src/IceRayPy/core/material/pigment.py
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
null
null
null
src/IceRayPy/core/material/pigment.py
dmilos/IceRay
4e01f141363c0d126d3c700c1f5f892967e3d520
[ "MIT-0" ]
1
2020-09-04T12:27:52.000Z
2020-09-04T12:27:52.000Z
from ctypes import * import IceRayPy class Constant: def __init__(self, P_dll ): self.m_cargo = {} self.m_cargo['dll'] = P_dll self.m_cargo['this'] = self.m_cargo['dll'].IceRayC_Material_Pigment_Constant0() def __del__(self): self.m_cargo['dll'].IceRayC_Material_Pigment_Release( self.m_cargo['this'] ) class Surface: def __init__(self, P_dll ): self.m_cargo = {} self.m_cargo['dll'] = P_dll self.m_cargo['this'] = self.m_cargo['dll'].IceRayC_Material_Pigment_Surface0() self.m_cargo['list'] = [] self.m_cargo['dll'].IceRayC_Material_Pigment_Surface_Result( self.m_cargo['this'], IceRayPy.core.material.instruction.label.color.dynamic.RESULT ) self.m_cargo['dll'].IceRayC_Material_Pigment_Surface_Lambda( self.m_cargo['this'], IceRayPy.core.material.instruction.label.scalar.dynamic.LAMBDA ) self.m_cargo['dll'].IceRayC_Material_Pigment_Surface_Point( self.m_cargo['this'], IceRayPy.core.material.instruction.label.coord3d.dynamic.POINT ) self.m_cargo['dll'].IceRayC_Material_Pigment_Surface_Normal( self.m_cargo['this'], IceRayPy.core.material.instruction.label.coord3d.dynamic.NORMAL ) def __del__(self): self.m_cargo['dll'].IceRayC_Material_Pigment_Release( self.m_cargo['this'] ) def append(self, P_instruction ): # P_instruction : IceRayPy.core.material.pigment.instruction self.m_cargo['dll'].IceRayC_Material_Pigment_Surface_Append( self.m_cargo['this'], P_instruction.m_cargo['this'] ) self.m_cargo['list'].append( P_instruction )
52.322581
157
0.702219
216
1,622
4.898148
0.162037
0.141777
0.226843
0.135161
0.729679
0.729679
0.710775
0.710775
0.512287
0.417769
0
0.002943
0.162146
1,622
30
158
54.066667
0.77557
0.035758
0
0.416667
0
0
0.052907
0
0
0
0
0
0
1
0.208333
false
0
0.083333
0
0.375
0
0
0
0
null
0
1
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
a7177286e990aa9b6296792f79b6e2179b40ead0
96
py
Python
venv/lib/python3.8/site-packages/backports/entry_points_selectable.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/backports/entry_points_selectable.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/backports/entry_points_selectable.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/a7/a5/91/2a16053687265ad4dab2cc645c06d2c32a8ed3584932aeb4cb8acfcb11
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.395833
0
96
1
96
96
0.5
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
5961280bbda81d39a53c78d1686ec283d15c6311
2,754
py
Python
web/face/models.py
rizwansoaib/face
59300441b52d32f3ecb5095085ef9d448aef63af
[ "MIT" ]
42
2019-03-01T09:51:13.000Z
2021-07-22T12:22:49.000Z
web/face/models.py
rizwansoaib/FACE-ATTENDENCE
59300441b52d32f3ecb5095085ef9d448aef63af
[ "MIT" ]
3
2020-06-06T01:17:20.000Z
2021-06-10T22:33:34.000Z
web/face/models.py
rizwansoaib/FACE-ATTENDENCE
59300441b52d32f3ecb5095085ef9d448aef63af
[ "MIT" ]
9
2019-03-13T16:53:10.000Z
2022-03-24T12:27:31.000Z
from django.db import models class stauth(models.Model): roll= models.CharField(max_length=100) email = models.CharField(max_length=100) password = models.CharField(max_length=100) mobile = models.CharField(max_length=100) class Meta: db_table="stauth" def __str__(self): return (self.email) class tauth(models.Model): username= models.CharField(max_length=100) email = models.CharField(max_length=100) mobile = models.CharField(max_length=100) password = models.CharField(max_length=100) class Meta: db_table="tauth" def __str__(self): return (self.email) class csp(models.Model): roll= models.CharField(max_length=100) name = models.CharField(max_length=100) kcs601 = models.CharField(max_length=100) kcs602 = models.CharField(max_length=100) kcs603 = models.CharField(max_length=100) kcs604 = models.CharField(max_length=100) kcs605 = models.CharField(max_length=100) class Meta: db_table="csp" def __str__(self): return (self.roll) class student(models.Model): sid= models.CharField(max_length=100,primary_key=True) name = models.CharField(max_length=100) email = models.CharField(max_length=100) sem = models.CharField(max_length=100) status = models.CharField(max_length=100) branch_id = models.CharField(max_length=100) class Meta: db_table="student" def __str__(self): return (self.sid) class teacher(models.Model): tid= models.CharField(max_length=100,primary_key=True) name = models.CharField(max_length=100) email = models.CharField(max_length=100) department = models.CharField(max_length=100) class Meta: db_table="teacher" class subject(models.Model): subject_id= models.CharField(max_length=100,primary_key=True) subject_name = models.CharField(max_length=100) class Meta: db_table="subject" def __str__(self): return (self.subject_name) class branch(models.Model): branch_id = models.CharField(max_length=100,primary_key=True) branch_name = models.CharField(max_length=100) class Meta: db_table = "branch" def __str__(self): return (self.branch_name) class attendance(models.Model): branch_id = models.CharField(max_length=100) student_id = models.CharField(max_length=100) sem = models.CharField(max_length=100) teacher_id = models.CharField(max_length=100) subject_id = models.CharField(max_length=100) date = models.CharField(max_length=100) present = models.CharField(max_length=100) class Meta: db_table = "attendance" def __str__(self): return (self.date)
21.515625
65
0.691721
358
2,754
5.078212
0.131285
0.29703
0.356436
0.475248
0.818482
0.674367
0.640264
0.579208
0.547855
0.353685
0
0.055909
0.201162
2,754
127
66
21.685039
0.770455
0
0
0.453333
0
0
0.018525
0
0
0
0
0
0
1
0.093333
false
0.026667
0.013333
0.093333
0.893333
0
0
0
0
null
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
5
59660f56bd6a34cb5f219f2bdc2dbd81be001204
217
py
Python
v2_plugin/runner/app/predictor.py
cap-ntu/Video-to-Online-Platform
757c68d9de0778e3da8bbfa678d89251a6955573
[ "Apache-2.0" ]
82
2019-10-04T05:40:45.000Z
2020-03-14T06:40:02.000Z
v2_plugin/runner/app/predictor.py
datanadi/Video-to-Retail-Platform
757c68d9de0778e3da8bbfa678d89251a6955573
[ "Apache-2.0" ]
9
2020-06-04T19:31:59.000Z
2021-01-10T02:32:02.000Z
v2_plugin/runner/app/predictor.py
datanadi/Video-to-Retail-Platform
757c68d9de0778e3da8bbfa678d89251a6955573
[ "Apache-2.0" ]
24
2019-10-04T05:46:46.000Z
2020-05-30T05:22:32.000Z
from abc import ABC from common.endpoints import BaseEndPoints from common.servicer import BaseServicer class PredictorServicer(BaseServicer, ABC): pass class PredictorEndPoints(BaseEndPoints, ABC): pass
16.692308
45
0.801843
24
217
7.25
0.5
0.114943
0
0
0
0
0
0
0
0
0
0
0.152074
217
12
46
18.083333
0.945652
0
0
0.285714
0
0
0
0
0
0
0
0
0
1
0
true
0.285714
0.428571
0
0.714286
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
5981005b85b8568bb250c341626524c047732861
1,625
py
Python
fields.py
Pioank/slackbot-sql-query
3f6229f34ba5e7871c741aade8e0f860ad7e01e4
[ "MIT" ]
1
2020-07-28T22:01:52.000Z
2020-07-28T22:01:52.000Z
fields.py
Pioank/slackbot-sql-query
3f6229f34ba5e7871c741aade8e0f860ad7e01e4
[ "MIT" ]
null
null
null
fields.py
Pioank/slackbot-sql-query
3f6229f34ba5e7871c741aade8e0f860ad7e01e4
[ "MIT" ]
null
null
null
def input_field(block_id, label, action_id): return { "type": "input", "block_id": block_id, "label": { "type": "plain_text", "text": label, }, "element": { "action_id": action_id, "type": "plain_text_input", } } def datepicker_field(block_id, label, action_id): return { "type": "input", "block_id": block_id, "label": { "type": "plain_text", "text": label, }, "element": { "action_id": action_id, "type": "datepicker", } } def options_field(block_id, label, action_id, options): return { "type": "input", "block_id": block_id, "label": { "text": label, "type": "plain_text" }, "element": { "action_id": action_id, "type": "static_select", "placeholder": { "text": "Select the country", "type": "plain_text" }, "options": options } } def checkboxes_field(block_id, label, action_id, options): return { "type": "input", "block_id": block_id, "label": { "text": label, "type": "plain_text" }, "element": { "action_id": action_id, "type": "checkboxes", "options": options } }
26.209677
58
0.396308
129
1,625
4.713178
0.155039
0.138158
0.157895
0.111842
0.733553
0.733553
0.733553
0.733553
0.733553
0.733553
0
0
0.471385
1,625
61
59
26.639344
0.7078
0
0
0.603448
0
0
0.215385
0
0
0
0
0
0
1
0.068966
false
0
0
0.068966
0.137931
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
598a616c8f03c09847e25d48ad3e643968c1c2db
8,102
py
Python
daproli/processing.py
ermshaua/daproli
c1f7aeec431d9c60ae06eeac23455c1a03bc82cf
[ "BSD-3-Clause" ]
null
null
null
daproli/processing.py
ermshaua/daproli
c1f7aeec431d9c60ae06eeac23455c1a03bc82cf
[ "BSD-3-Clause" ]
null
null
null
daproli/processing.py
ermshaua/daproli
c1f7aeec431d9c60ae06eeac23455c1a03bc82cf
[ "BSD-3-Clause" ]
null
null
null
from itertools import product from joblib import Parallel, delayed from tqdm import tqdm from .utils import _get_return_type, _apply_func def map(func, data, ret_type=None, expand_args=True, n_jobs=1, verbose=0, **kwargs): ''' dp.map applies a transformation function to a collection of data items. Parameters ----------- :param func: the mapping function :param data: an iterable collection of data :param ret_type: if provided the used return type, otherwise ret_type(data) :param expand_args: true if args should be expanded, false otherwise :param n_jobs: amount of used threads/processes :param verbose: verbosity level for tqdm / joblib :param kwargs: additional arguments for joblib.Parallel, e.g. backend='loky' :return: the transformed data list Examples ----------- >>> import daproli as dp >>> names = ['John', 'Susan', 'Mike'] >>> dp.map(lambda n : n.lower(), names) ['john', 'susan', 'mike'] ''' if ret_type is None: ret_type = _get_return_type(data) func_ = lambda args : _apply_func(func, args, expand_args) if n_jobs == 1: return ret_type([func_(item) for item in tqdm(data, disable=verbose < 1)]) return ret_type(Parallel(n_jobs=n_jobs, verbose=verbose, **kwargs)(delayed(func_)(item) for item in data)) def filter(pred, data, ret_type=None, expand_args=True, n_jobs=1, verbose=0, **kwargs): ''' dp.filter applies a filter predicate to a collection of data items. Parameters ----------- :param pred: the filter predicate :param data: an iterable collection of data :param ret_type: if provided the used return type, otherwise ret_type(data) :param expand_args: true if args should be expanded, false otherwise :param n_jobs: amount of used threads/processes :param verbose: verbosity level for tqdm / joblib :param kwargs: additional arguments for joblib.Parallel, e.g. backend='loky' :return: the filtered data list Examples ----------- >>> import daproli as dp >>> names = ['John', 'Susan', 'Mike'] >>> dp.filter(lambda n : len(n) % 2 == 0, names) ['John', 'Mike'] ''' if ret_type is None: ret_type = _get_return_type(data) pred_ = lambda args: _apply_func(pred, args, expand_args) if n_jobs == 1: return ret_type([item for item in tqdm(data, disable=verbose < 1) if pred_(item)]) labels = Parallel(n_jobs=n_jobs, verbose=verbose, **kwargs)(delayed(pred_)(item) for item in data) return ret_type([item for item, label in zip(data, labels) if label]) def split(func, data, ret_type=None, return_labels=False, expand_args=True, n_jobs=1, verbose=0, **kwargs): ''' dp.split applies a discriminator function to a collection of data items. Parameters ----------- :param func: the discriminator function :param data: an iterable collection of data :param ret_type: if provided the used return type, otherwise ret_type(data) :param return_labels: true if the associated labels should be returned, false otherwise :param expand_args: true if args should be expanded, false otherwise :param n_jobs: amount of used threads/processes :param verbose: verbosity level for tqdm / joblib :param kwargs: additional arguments for joblib.Parallel, e.g. backend='loky' :return: the transformed data lists Examples ----------- >>> import daproli as dp >>> numbers = range(10) >>> dp.split(lambda x : x % 2 == 0, numbers) [[1, 3, 5, 7, 9], [0, 2, 4, 6, 8]] ''' if ret_type is None: ret_type = _get_return_type(data) func_ = lambda args: _apply_func(func, args, expand_args) if n_jobs == 1: labels = [func_(item) for item in tqdm(data, disable=verbose < 1)] else: labels = Parallel(n_jobs=n_jobs, verbose=verbose, **kwargs)(delayed(func_)(item) for item in data) container = {label : list() for label in set(labels)} for item, label in zip(data, labels): container[label].append(item) if return_labels: return [(label, ret_type(container[label])) for label in sorted(container)] return [ret_type(container[label]) for label in sorted(container)] def expand(func, data, ret_type=None, expand_args=True, n_jobs=1, verbose=0, **kwargs): ''' dp.expand applies an expansion function to a collection of data items. Parameters ----------- :param func: the expansion function :param data: an iterable collection of data :param ret_type: if provided the used return type, otherwise ret_type(data) :param expand_args: true if args should be expanded, false otherwise :param n_jobs: amount of used threads/processes :param verbose: verbosity level for tqdm / joblib :param kwargs: additional arguments for joblib.Parallel, e.g. backend='loky' :return: the transformed data lists Examples ----------- >>> import daproli as dp >>> numbers = range(10) >>> dp.expand(lambda x : (x, x**2), numbers) [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]] ''' if ret_type is None: ret_type = _get_return_type(data) func_ = lambda args: _apply_func(func, args, expand_args) if n_jobs == 1: expanded = [func_(item) for item in tqdm(data, disable=verbose < 1)] else: expanded = Parallel(n_jobs=n_jobs, verbose=verbose, **kwargs)(delayed(func_)(item) for item in data) if len(expanded) == 0: return ret_type(expanded) assert all([len(expanded[idx]) == len(expanded[idx+1]) for idx in range(len(expanded)-1)]) container = [list() for _ in range(len(expanded[0]))] for items in expanded: for idx, item in enumerate(items): container[idx].append(item) return [ret_type(items) for items in container] def combine(func, *data, expand_args=True, n_jobs=1, verbose=0, **kwargs): ''' dp.combine applies a combination function to multiple collections of data items. Parameters ----------- :param func: the combination function :param data: iterable collections of data :param expand_args: true if args should be expanded, false otherwise :param n_jobs: amount of used threads/processes :param verbose: verbosity level for tqdm / joblib :param kwargs: additional arguments for joblib.Parallel, e.g. backend='loky' :return: the combined data list Examples ----------- >>> import daproli as dp >>> even_numbers = range(0, 10, 2) >>> odd_numbers = range(1, 10, 2) >>> dp.combine(lambda x, y : (x,y), even_numbers, odd_numbers) [(0, 1), (2, 3), (4, 5), (6, 7), (8, 9)] ''' func_ = lambda args: _apply_func(func, args, expand_args) if n_jobs == 1: return [func_(items) for items in tqdm(zip(*data), disable=verbose < 1)] return Parallel(n_jobs=n_jobs, verbose=verbose, **kwargs)(delayed(func_)(items) for items in zip(*data)) def join(pred, *data, expand_args=True, n_jobs=1, verbose=0, **kwargs): ''' dp.join applies a join predicate to multiple collections of data items. Parameters ----------- :param pred: the join predicate :param data: iterable collections of data :param expand_args: true if args should be expanded, false otherwise :param n_jobs: amount of used threads/processes :param verbose: verbosity level for tqdm / joblib :param kwargs: additional arguments for joblib.Parallel, e.g. backend='loky' :return: the joined data list Examples ----------- >>> import daproli as dp >>> even_numbers = range(0, 10, 2) >>> odd_numbers = range(1, 10, 2) >>> dp.join(lambda x, y : y-x == 3, even_numbers, odd_numbers) [(0, 3), (2, 5), (4, 7), (6, 9)] ''' pred_ = lambda args: _apply_func(pred, args, expand_args) if n_jobs == 1: return [items for items in tqdm(product(*data), disable=verbose < 1) if pred_(items)] labels = Parallel(n_jobs=n_jobs, verbose=verbose, **kwargs)(delayed(pred_)(items) for items in product(*data)) return [items for items, label in zip(product(*data), labels) if label]
38.037559
114
0.660701
1,177
8,102
4.433305
0.109601
0.028747
0.032196
0.019931
0.779992
0.749329
0.74013
0.725757
0.700268
0.675738
0
0.016893
0.210936
8,102
212
115
38.216981
0.799312
0.516292
0
0.333333
0
0
0
0
0
0
0
0
0.018519
1
0.111111
false
0
0.074074
0
0.407407
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
ab9bc6ac90ca8ab3902d49cc37daf7fdbb1cc740
157
py
Python
digits/inference/__init__.py
InnovArul/DIGITS
c69d709e2eba01f2cf1a9556d7838933103a3b31
[ "BSD-3-Clause" ]
4
2016-09-12T08:29:05.000Z
2017-07-10T18:29:26.000Z
digits/inference/__init__.py
Itsuro/DIGITS
7754c7de7085ebbae16875b3d5a16c42b6e24a7b
[ "BSD-3-Clause" ]
1
2017-07-09T13:48:39.000Z
2017-07-09T13:48:39.000Z
digits/inference/__init__.py
Itsuro/DIGITS
7754c7de7085ebbae16875b3d5a16c42b6e24a7b
[ "BSD-3-Clause" ]
4
2016-12-07T01:59:19.000Z
2019-03-07T21:45:05.000Z
# Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. from __future__ import absolute_import from .images import * from .job import InferenceJob
22.428571
63
0.789809
20
157
5.95
0.75
0.168067
0
0
0
0
0
0
0
0
0
0.030075
0.152866
157
6
64
26.166667
0.864662
0.388535
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
abb76ec31aabf9a5a9ac52cbd1e3c8068d4a6dea
75
py
Python
at2019dsg/__init__.py
robertdstein/at2019dsg
d35c1ee607a1523962f1378d98f20502aec59361
[ "BSD-2-Clause" ]
null
null
null
at2019dsg/__init__.py
robertdstein/at2019dsg
d35c1ee607a1523962f1378d98f20502aec59361
[ "BSD-2-Clause" ]
null
null
null
at2019dsg/__init__.py
robertdstein/at2019dsg
d35c1ee607a1523962f1378d98f20502aec59361
[ "BSD-2-Clause" ]
null
null
null
from at2019dsg.data import data_dir from at2019dsg.plotting import plot_dir
37.5
39
0.88
12
75
5.333333
0.583333
0.40625
0
0
0
0
0
0
0
0
0
0.117647
0.093333
75
2
39
37.5
0.823529
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
abbf46cf0040cb9399f99f3c67a56f4e33979c45
3,892
py
Python
code/discordVc/unit/test_DiscordVc.py
Azuki-bar/discord-vc-notify
904a41a7b8628a77e6e8d35dfe92cf58fdf5d188
[ "MIT" ]
2
2021-04-27T07:02:37.000Z
2021-04-27T07:10:39.000Z
code/discordVc/unit/test_DiscordVc.py
Azuki-bar/discord-vc-notify
904a41a7b8628a77e6e8d35dfe92cf58fdf5d188
[ "MIT" ]
8
2021-03-26T03:06:24.000Z
2021-09-02T12:06:33.000Z
code/discordVc/unit/test_DiscordVc.py
Azuki-bar/discord-vc-notify
904a41a7b8628a77e6e8d35dfe92cf58fdf5d188
[ "MIT" ]
null
null
null
import unittest from unittest.mock import MagicMock, AsyncMock from ..DiscordVc import DiscordVc import pytest import discord class TestDiscordVc(unittest.TestCase): def setUp(self) -> None: # self.channel_mock = MagicMock(discord.ChannelType) self.member_mock = MagicMock(discord.Member) self.client_mock = MagicMock(discord.Client) channel_id = 0 self.discord_vc = DiscordVc(self.client_mock, channel_id) def test_set_member(self): with pytest.raises(TypeError) as e: self.discord_vc.member = "MEMBER" self.discord_vc.member = None assert self.discord_vc._member is None self.discord_vc.member = self.member_mock assert self.discord_vc._member == self.member_mock def test_get_member(self): self.discord_vc._member = self.member_mock assert self.discord_vc.member == self.member_mock def test_retrieve_message(self): user_name = "USERNAME" before_channel = "BEFORE_CHANNEL" after_channel = "AFTER_CHANNEL" self.discord_vc._member = MagicMock(discord.Member) self.discord_vc._member.display_name = user_name self.discord_vc._before = MagicMock(discord.VoiceState) self.discord_vc._after = MagicMock(discord.VoiceState) self.discord_vc._before.channel = None self.discord_vc._after.channel = after_channel retrieve_message = self.discord_vc._retrieve_message retrieve_message() assert self.discord_vc._message == \ f'{user_name}さんが{after_channel}に入室しました' self.discord_vc._before.channel = before_channel self.discord_vc._after.channel = None retrieve_message() assert self.discord_vc._message == \ f'{user_name}さんが{before_channel}から退室しました' self.discord_vc._before.channel = before_channel self.discord_vc._after.channel = after_channel retrieve_message() assert self.discord_vc._message == \ f'{user_name}さんが{before_channel}から{after_channel}へ移動しました' self.discord_vc._before.channel = before_channel self.discord_vc._after.channel = self.discord_vc._before.channel retrieve_message() assert self.discord_vc._message is None class TestSendMessage(unittest.IsolatedAsyncioTestCase): def setUp(self) -> None: self.client_mock = MagicMock(discord.Client) channel_id = 0 self.discord_vc = DiscordVc(self.client_mock, channel_id) self.discord_vc._channel = MagicMock(name='discord.TextChannel') self.discord_vc._channel.send = AsyncMock( name='discord.TextChannel.send') async def test_send_message(self): self.discord_vc._member = MagicMock(discord.Member) self.discord_vc._before = MagicMock(discord.VoiceState) self.discord_vc._after = MagicMock(discord.VoiceState) before_channel = "BEFORE_CHANNEL" after_channel = "AFTER_CHANNEL" self.discord_vc._before.channel = None self.discord_vc._after.channel = after_channel await self.discord_vc.send_message() assert self.discord_vc._channel.send.call_count == 1 self.discord_vc._before.channel = before_channel self.discord_vc._after.channel = None await self.discord_vc.send_message() assert self.discord_vc._channel.send.call_count == 2 self.discord_vc._before.channel = before_channel self.discord_vc._after.channel = after_channel await self.discord_vc.send_message() assert self.discord_vc._channel.send.call_count == 3 self.discord_vc._before.channel = None self.discord_vc._after.channel = None await self.discord_vc.send_message() assert self.discord_vc._channel.send.call_count == 3 if __name__ == '__main__': unittest.main()
37.066667
72
0.693988
476
3,892
5.344538
0.128151
0.207547
0.245283
0.082154
0.755896
0.707154
0.707154
0.699686
0.680818
0.674921
0
0.001974
0.218911
3,892
104
73
37.423077
0.834868
0.012847
0
0.567901
0
0
0.064323
0.039583
0
0
0
0
0.135802
1
0.061728
false
0
0.061728
0
0.148148
0
0
0
0
null
1
1
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
abc090fd3bc0426f345c1ccf6c1fac6c55c87760
282
py
Python
products/admin.py
Hernandes-Silva/virtual_store
08d764063c6bac9b6f67f445236a6ad59b547f26
[ "MIT" ]
1
2021-06-17T05:15:42.000Z
2021-06-17T05:15:42.000Z
products/admin.py
Hernandes-Silva/virtual_store
08d764063c6bac9b6f67f445236a6ad59b547f26
[ "MIT" ]
null
null
null
products/admin.py
Hernandes-Silva/virtual_store
08d764063c6bac9b6f67f445236a6ad59b547f26
[ "MIT" ]
null
null
null
from products.models import Category, Department, Product from django.contrib import admin from products.models import * # Register your models here. admin.site.register(Product) admin.site.register(TechnicalInformation) admin.site.register(Department) admin.site.register(Category)
35.25
57
0.836879
36
282
6.555556
0.416667
0.152542
0.288136
0.20339
0
0
0
0
0
0
0
0
0.078014
282
8
58
35.25
0.907692
0.092199
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.428571
0
0.428571
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
1
0
1
0
0
0
0
5
abc6b968f49355ae2784ee2794ab50a757aaaeae
96
py
Python
venv/lib/python3.8/site-packages/pip/_vendor/colorama/winterm.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/pip/_vendor/colorama/winterm.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/pip/_vendor/colorama/winterm.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/db/2f/f6/6fb66cbf7e1f780b0febb98b39573e060ab9d667581a8e7bd55a6b96b3
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.375
0
96
1
96
96
0.520833
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
abd4dc9a345959d054be5717244d4f2f24cf6af2
262
py
Python
__getOSPlatformRelease.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__getOSPlatformRelease.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
__getOSPlatformRelease.py
simdevex/01.Basics
cf4f372384e66f4b26e4887d2f5d815a1f8e929c
[ "MIT" ]
null
null
null
''' A Python program to get OS name, platform and releaseinformation. ''' import platform import os print("Name of the operating system:",os.name) print("\nName of the OS system:",platform.system()) print("\nVersion of the operating system:",platform.release())
29.111111
65
0.748092
38
262
5.157895
0.5
0.076531
0.142857
0.204082
0
0
0
0
0
0
0
0
0.118321
262
9
66
29.111111
0.848485
0.248092
0
0
0
0
0.457895
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
0.6
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
abf6ded88cf027e87eb20caa46f7f13fe5f04d5e
20
py
Python
ag_main.py
Spade-man/branches_lesson5_2604
25aac713f9738788d6d0d3bff523eab5bbfe46c3
[ "MIT" ]
null
null
null
ag_main.py
Spade-man/branches_lesson5_2604
25aac713f9738788d6d0d3bff523eab5bbfe46c3
[ "MIT" ]
1
2020-04-26T14:27:26.000Z
2020-04-26T14:27:26.000Z
ag_main.py
Spade-man/branches_lesson5_2604
25aac713f9738788d6d0d3bff523eab5bbfe46c3
[ "MIT" ]
null
null
null
print('branch main')
20
20
0.75
3
20
5
1
0
0
0
0
0
0
0
0
0
0
0
0.05
20
1
20
20
0.789474
0
0
0
0
0
0.52381
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
e660cc8affc539b1335833171d793f3055219041
15,925
py
Python
okra/proto/okra_api_pb2.py
okrahealth/okra
e19c9ef7bea37e6cdc1023eb69c3ca0ae559d9c1
[ "MIT" ]
7
2019-05-08T01:25:42.000Z
2022-02-11T13:32:53.000Z
okra/proto/okra_api_pb2.py
okrahealth/okra
e19c9ef7bea37e6cdc1023eb69c3ca0ae559d9c1
[ "MIT" ]
18
2019-05-06T18:27:45.000Z
2022-02-11T13:28:04.000Z
okra/proto/okra_api_pb2.py
okrahealth/okra
e19c9ef7bea37e6cdc1023eb69c3ca0ae559d9c1
[ "MIT" ]
2
2019-05-07T17:31:02.000Z
2019-05-07T21:10:26.000Z
# -*- coding: utf-8 -*- # pytype: skip-file # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/okra_api.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() DESCRIPTOR = _descriptor.FileDescriptor( name='proto/okra_api.proto', package='okra.v1', syntax='proto3', serialized_options=None, serialized_pb=_b('\n\x14proto/okra_api.proto\x12\x07okra.v1\"m\n\x12IsoDateAggregation\x12\x0e\n\x06yearmo\x18\x01 \x01(\t\x12\x13\n\x0b\x63ommit_hash\x18\x02 \x01(\t\x12\x10\n\x08iso_week\x18\x03 \x01(\x05\x12\x10\n\x08iso_year\x18\x04 \x01(\x05\x12\x0e\n\x06status\x18\x05 \x01(\t\"\xa8\x02\n\x17RepositoryHistoryMetric\x12\x0f\n\x07repo_id\x18\x01 \x01(\t\x12\x14\n\x0cstart_yearmo\x18\x02 \x01(\t\x12\x16\n\x0e\x63urrent_yearmo\x18\x03 \x01(\t\x12-\n\x08isodates\x18\x04 \x03(\x0b\x32\x1b.okra.v1.IsoDateAggregation\x12\x1a\n\x12last_commit_yearmo\x18\x05 \x01(\t\x12\x18\n\x10last_commit_hash\x18\x06 \x01(\t\x12\x19\n\x11total_lines_added\x18\x07 \x01(\x05\x12\x1e\n\x16total_lines_subtracted\x18\x08 \x01(\x05\x12\x1a\n\x12total_truck_factor\x18\t \x01(\x05\x12\x12\n\ntotal_days\x18\n \x01(\x02\"\xe8\x01\n\x10RepositoryMetric\x12\x0f\n\x07repo_id\x18\x01 \x01(\t\x12\x0e\n\x06yearmo\x18\x02 \x01(\t\x12-\n\x08isodates\x18\x03 \x03(\x0b\x32\x1b.okra.v1.IsoDateAggregation\x12\x14\n\x0c\x61uthor_count\x18\x04 \x01(\x05\x12\x15\n\rcontrib_count\x18\x05 \x01(\x05\x12\x12\n\nfile_count\x18\x06 \x01(\x05\x12\x13\n\x0blines_added\x18\x07 \x01(\x05\x12\x18\n\x10lines_subtracted\x18\x08 \x01(\x05\x12\x14\n\x0ctruck_factor\x18\t \x01(\x05\"`\n\x0eRepositoryInfo\x12\x0f\n\x07repo_id\x18\x01 \x01(\t\x12\x0e\n\x06yearmo\x18\x02 \x01(\t\x12-\n\x08isodates\x18\x03 \x03(\x0b\x32\x1b.okra.v1.IsoDateAggregationb\x06proto3') ) _ISODATEAGGREGATION = _descriptor.Descriptor( name='IsoDateAggregation', full_name='okra.v1.IsoDateAggregation', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='yearmo', full_name='okra.v1.IsoDateAggregation.yearmo', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='commit_hash', full_name='okra.v1.IsoDateAggregation.commit_hash', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='iso_week', full_name='okra.v1.IsoDateAggregation.iso_week', index=2, number=3, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='iso_year', full_name='okra.v1.IsoDateAggregation.iso_year', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='status', full_name='okra.v1.IsoDateAggregation.status', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=33, serialized_end=142, ) _REPOSITORYHISTORYMETRIC = _descriptor.Descriptor( name='RepositoryHistoryMetric', full_name='okra.v1.RepositoryHistoryMetric', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='repo_id', full_name='okra.v1.RepositoryHistoryMetric.repo_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='start_yearmo', full_name='okra.v1.RepositoryHistoryMetric.start_yearmo', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='current_yearmo', full_name='okra.v1.RepositoryHistoryMetric.current_yearmo', index=2, number=3, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='isodates', full_name='okra.v1.RepositoryHistoryMetric.isodates', index=3, number=4, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='last_commit_yearmo', full_name='okra.v1.RepositoryHistoryMetric.last_commit_yearmo', index=4, number=5, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='last_commit_hash', full_name='okra.v1.RepositoryHistoryMetric.last_commit_hash', index=5, number=6, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='total_lines_added', full_name='okra.v1.RepositoryHistoryMetric.total_lines_added', index=6, number=7, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='total_lines_subtracted', full_name='okra.v1.RepositoryHistoryMetric.total_lines_subtracted', index=7, number=8, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='total_truck_factor', full_name='okra.v1.RepositoryHistoryMetric.total_truck_factor', index=8, number=9, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='total_days', full_name='okra.v1.RepositoryHistoryMetric.total_days', index=9, number=10, type=2, cpp_type=6, label=1, has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=145, serialized_end=441, ) _REPOSITORYMETRIC = _descriptor.Descriptor( name='RepositoryMetric', full_name='okra.v1.RepositoryMetric', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='repo_id', full_name='okra.v1.RepositoryMetric.repo_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='yearmo', full_name='okra.v1.RepositoryMetric.yearmo', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='isodates', full_name='okra.v1.RepositoryMetric.isodates', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='author_count', full_name='okra.v1.RepositoryMetric.author_count', index=3, number=4, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='contrib_count', full_name='okra.v1.RepositoryMetric.contrib_count', index=4, number=5, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='file_count', full_name='okra.v1.RepositoryMetric.file_count', index=5, number=6, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='lines_added', full_name='okra.v1.RepositoryMetric.lines_added', index=6, number=7, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='lines_subtracted', full_name='okra.v1.RepositoryMetric.lines_subtracted', index=7, number=8, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='truck_factor', full_name='okra.v1.RepositoryMetric.truck_factor', index=8, number=9, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=444, serialized_end=676, ) _REPOSITORYINFO = _descriptor.Descriptor( name='RepositoryInfo', full_name='okra.v1.RepositoryInfo', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name='repo_id', full_name='okra.v1.RepositoryInfo.repo_id', index=0, number=1, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='yearmo', full_name='okra.v1.RepositoryInfo.yearmo', index=1, number=2, type=9, cpp_type=9, label=1, has_default_value=False, default_value=_b("").decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='isodates', full_name='okra.v1.RepositoryInfo.isodates', index=2, number=3, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], nested_types=[], enum_types=[ ], serialized_options=None, is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], serialized_start=678, serialized_end=774, ) _REPOSITORYHISTORYMETRIC.fields_by_name['isodates'].message_type = _ISODATEAGGREGATION _REPOSITORYMETRIC.fields_by_name['isodates'].message_type = _ISODATEAGGREGATION _REPOSITORYINFO.fields_by_name['isodates'].message_type = _ISODATEAGGREGATION DESCRIPTOR.message_types_by_name['IsoDateAggregation'] = _ISODATEAGGREGATION DESCRIPTOR.message_types_by_name['RepositoryHistoryMetric'] = _REPOSITORYHISTORYMETRIC DESCRIPTOR.message_types_by_name['RepositoryMetric'] = _REPOSITORYMETRIC DESCRIPTOR.message_types_by_name['RepositoryInfo'] = _REPOSITORYINFO _sym_db.RegisterFileDescriptor(DESCRIPTOR) IsoDateAggregation = _reflection.GeneratedProtocolMessageType('IsoDateAggregation', (_message.Message,), dict( DESCRIPTOR = _ISODATEAGGREGATION, __module__ = 'proto.okra_api_pb2' # @@protoc_insertion_point(class_scope:okra.v1.IsoDateAggregation) )) _sym_db.RegisterMessage(IsoDateAggregation) RepositoryHistoryMetric = _reflection.GeneratedProtocolMessageType('RepositoryHistoryMetric', (_message.Message,), dict( DESCRIPTOR = _REPOSITORYHISTORYMETRIC, __module__ = 'proto.okra_api_pb2' # @@protoc_insertion_point(class_scope:okra.v1.RepositoryHistoryMetric) )) _sym_db.RegisterMessage(RepositoryHistoryMetric) RepositoryMetric = _reflection.GeneratedProtocolMessageType('RepositoryMetric', (_message.Message,), dict( DESCRIPTOR = _REPOSITORYMETRIC, __module__ = 'proto.okra_api_pb2' # @@protoc_insertion_point(class_scope:okra.v1.RepositoryMetric) )) _sym_db.RegisterMessage(RepositoryMetric) RepositoryInfo = _reflection.GeneratedProtocolMessageType('RepositoryInfo', (_message.Message,), dict( DESCRIPTOR = _REPOSITORYINFO, __module__ = 'proto.okra_api_pb2' # @@protoc_insertion_point(class_scope:okra.v1.RepositoryInfo) )) _sym_db.RegisterMessage(RepositoryInfo) # @@protoc_insertion_point(module_scope)
45.113314
1,425
0.744615
2,079
15,925
5.430495
0.092352
0.06023
0.059522
0.038441
0.780159
0.725421
0.664216
0.63543
0.624978
0.624978
0
0.042924
0.1281
15,925
352
1,426
45.241477
0.770184
0.028697
0
0.714734
1
0.003135
0.212266
0.169244
0
0
0
0
0
1
0
false
0
0.015674
0
0.015674
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
1
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
0516aad22faad715bb4ad7b463b03c8cb455b6f4
64
py
Python
experiments/cnn_comp/pt_models/__init__.py
carol-hsu/relay-bench
0facffedb3cbb0d5f110769a84bba68718cff72b
[ "Apache-2.0" ]
7
2019-10-03T22:41:18.000Z
2020-05-31T18:52:15.000Z
experiments/cnn_comp/pt_models/__init__.py
carol-hsu/relay-bench
0facffedb3cbb0d5f110769a84bba68718cff72b
[ "Apache-2.0" ]
14
2019-10-18T19:13:53.000Z
2021-09-08T01:36:37.000Z
experiments/cnn_comp/pt_models/__init__.py
carol-hsu/relay-bench
0facffedb3cbb0d5f110769a84bba68718cff72b
[ "Apache-2.0" ]
4
2019-10-03T21:34:03.000Z
2022-02-23T10:29:49.000Z
from . import dcgan from . import dqn from . import mobilenetv2
16
25
0.765625
9
64
5.444444
0.555556
0.612245
0
0
0
0
0
0
0
0
0
0.019231
0.1875
64
3
26
21.333333
0.923077
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
0534ae14109bc50d4b4782076e8f179053426864
527
py
Python
com_blacktensor/cop/cov/status/model/status_df.py
Jelly6489/Stock-Proj
3e7b1ad5cddc5b142f0069e024199fe969c7c7e8
[ "MIT" ]
null
null
null
com_blacktensor/cop/cov/status/model/status_df.py
Jelly6489/Stock-Proj
3e7b1ad5cddc5b142f0069e024199fe969c7c7e8
[ "MIT" ]
null
null
null
com_blacktensor/cop/cov/status/model/status_df.py
Jelly6489/Stock-Proj
3e7b1ad5cddc5b142f0069e024199fe969c7c7e8
[ "MIT" ]
2
2020-11-13T08:11:04.000Z
2020-11-14T05:32:09.000Z
import pandas as pd # ============================================================ # ================== ===================== # ================== Preprocessing ===================== # ================== ===================== # ============================================================ class CovidStatusDf(object): def __init__(self, colums): self.colums = colums def get_dataframe(self, base_data): return pd.DataFrame(base_data, columns=self.colums)
37.642857
62
0.3074
29
527
5.344828
0.62069
0.193548
0
0
0
0
0
0
0
0
0
0
0.197343
527
14
63
37.642857
0.36643
0.57685
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
0590a76cd7e41c6ac2cba62a7bc48ce73c718097
65
py
Python
client/crypto-sdk-python/orbs_client/__init__.py
orbs-network/orbs-network-typescript
a878afb5e6f8de3a2042764f0cecd6f27d113c18
[ "MIT" ]
21
2018-06-27T13:48:43.000Z
2019-09-10T10:55:03.000Z
client/crypto-sdk-python/orbs_client/__init__.py
orbs-network/orbs-network-typescript
a878afb5e6f8de3a2042764f0cecd6f27d113c18
[ "MIT" ]
1
2018-08-01T08:55:28.000Z
2018-08-01T18:09:22.000Z
client/crypto-sdk-python/orbs_client/__init__.py
orbs-network/orbs-network-typescript
a878afb5e6f8de3a2042764f0cecd6f27d113c18
[ "MIT" ]
null
null
null
from http_client import HttpClient from contract import Contract
21.666667
34
0.876923
9
65
6.222222
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.123077
65
2
35
32.5
0.982456
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
55353f62a91c8744061297d088de666b1344f024
215
py
Python
evalml/automl/automl_algorithm/__init__.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
454
2020-09-25T15:36:06.000Z
2022-03-30T04:48:49.000Z
evalml/automl/automl_algorithm/__init__.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
2,175
2020-09-25T17:05:45.000Z
2022-03-31T19:54:54.000Z
evalml/automl/automl_algorithm/__init__.py
Mahesh1822/evalml
aa0ec2379aeba12bbd0dcaaa000f9a2a62064169
[ "BSD-3-Clause" ]
66
2020-09-25T18:46:27.000Z
2022-03-02T18:33:30.000Z
"""AutoML algorithms that power EvalML.""" from .automl_algorithm import AutoMLAlgorithm, AutoMLAlgorithmException from .iterative_algorithm import IterativeAlgorithm from .default_algorithm import DefaultAlgorithm
43
71
0.865116
21
215
8.714286
0.666667
0.245902
0
0
0
0
0
0
0
0
0
0
0.083721
215
4
72
53.75
0.928934
0.167442
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
556112b5250dea5da899a2eee4bcf25cf19da605
71
py
Python
pororo/models/brainsbert/__init__.py
jayten42/pororo
0b02e6a633b9a32ec4241b8ed96745e6592db317
[ "Apache-2.0" ]
1,137
2021-02-02T02:09:06.000Z
2022-03-29T03:10:40.000Z
pororo/models/brainsbert/__init__.py
jayten42/pororo
0b02e6a633b9a32ec4241b8ed96745e6592db317
[ "Apache-2.0" ]
57
2021-02-02T03:29:54.000Z
2022-03-31T16:20:00.000Z
pororo/models/brainsbert/__init__.py
jayten42/pororo
0b02e6a633b9a32ec4241b8ed96745e6592db317
[ "Apache-2.0" ]
216
2021-02-02T02:49:02.000Z
2022-03-28T01:19:58.000Z
from pororo.models.brainsbert.BrainRoBERTa import BrainRoBERTa # noqa
35.5
70
0.84507
8
71
7.5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.098592
71
1
71
71
0.9375
0.056338
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
e98c27cd08d98a18238b9599178f8360ad758a53
78
py
Python
anyway/widgets/all_locations_widgets/__init__.py
ephraimberkovitch/anyway
8ef86fc48cbab96cd584857e46ed7bfe54d0f21d
[ "MIT" ]
null
null
null
anyway/widgets/all_locations_widgets/__init__.py
ephraimberkovitch/anyway
8ef86fc48cbab96cd584857e46ed7bfe54d0f21d
[ "MIT" ]
2
2021-11-02T13:37:23.000Z
2021-11-23T15:51:06.000Z
anyway/widgets/all_locations_widgets/__init__.py
ephraimberkovitch/anyway
8ef86fc48cbab96cd584857e46ed7bfe54d0f21d
[ "MIT" ]
null
null
null
from . import accident_count_by_severity_widget, most_severe_accidents_widget
39
77
0.910256
11
78
5.818182
0.909091
0
0
0
0
0
0
0
0
0
0
0
0.064103
78
1
78
78
0.876712
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
e9a8290834bc8347ac7c9b61e85d4168917e9f4f
93
py
Python
exec_tensorboard.py
lulindev/UNet-pytorch
cf91e251891a2926f46b628985ebdda66bc637a2
[ "MIT" ]
3
2021-04-07T08:05:44.000Z
2021-06-25T16:55:56.000Z
exec_tensorboard.py
lulindev/UNet-pytorch
cf91e251891a2926f46b628985ebdda66bc637a2
[ "MIT" ]
null
null
null
exec_tensorboard.py
lulindev/UNet-pytorch
cf91e251891a2926f46b628985ebdda66bc637a2
[ "MIT" ]
2
2021-08-19T10:23:32.000Z
2021-12-15T03:26:11.000Z
import os os.system('clear') os.system('tensorboard --logdir=runs --bind_all --port=10000')
18.6
62
0.72043
14
93
4.714286
0.785714
0.242424
0
0
0
0
0
0
0
0
0
0.058824
0.086022
93
4
63
23.25
0.717647
0
0
0
0
0
0.580645
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
e9c3afbfcb78c4e5c383775089ba25e93c9f9357
146
py
Python
remi/core/exceptions.py
Qu4n7r01d/remi
6ba6c9cbc5121e00d849ff385966ac7e72e1409f
[ "MIT" ]
1
2021-12-31T08:35:59.000Z
2021-12-31T08:35:59.000Z
remi/core/exceptions.py
Qu4n7r01d/remi
6ba6c9cbc5121e00d849ff385966ac7e72e1409f
[ "MIT" ]
7
2021-12-19T17:49:58.000Z
2022-02-17T06:52:30.000Z
remi/core/exceptions.py
Qu4n7r01d/remi
6ba6c9cbc5121e00d849ff385966ac7e72e1409f
[ "MIT" ]
null
null
null
from lightbulb import LightbulbError class ProtectedPlugin(LightbulbError): """Raise when user try to unload operation-critical plugins."""
24.333333
67
0.787671
16
146
7.1875
0.9375
0
0
0
0
0
0
0
0
0
0
0
0.136986
146
5
68
29.2
0.912698
0.390411
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
e9dda70f498056df10e9b03ea36d645f8910bc27
43
py
Python
hello-world.py
TheHumanGoogle/Hackerrank-python-solution
ab2fa515444d7493340d7c7fbb88c3a090a3a8f5
[ "MIT" ]
1
2022-01-12T16:05:01.000Z
2022-01-12T16:05:01.000Z
hello-world.py
TheHumanGoogle/Hackerrank-python-solution
ab2fa515444d7493340d7c7fbb88c3a090a3a8f5
[ "MIT" ]
null
null
null
hello-world.py
TheHumanGoogle/Hackerrank-python-solution
ab2fa515444d7493340d7c7fbb88c3a090a3a8f5
[ "MIT" ]
null
null
null
ur_string="Hello, World!" print(ur_string)
14.333333
25
0.767442
7
43
4.428571
0.714286
0.516129
0
0
0
0
0
0
0
0
0
0
0.069767
43
2
26
21.5
0.775
0
0
0
0
0
0.302326
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
1
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
757d08b9ad73718980b448bba4150b3356e4226c
1,669
py
Python
my_test.py
chao-lv/ok-mail-helper
379907d6ba64a82e3dece2f8422130616e616922
[ "MIT" ]
9
2020-10-23T14:10:40.000Z
2021-09-26T12:48:31.000Z
my_test.py
chao-lv/ok-mail-helper
379907d6ba64a82e3dece2f8422130616e616922
[ "MIT" ]
null
null
null
my_test.py
chao-lv/ok-mail-helper
379907d6ba64a82e3dece2f8422130616e616922
[ "MIT" ]
null
null
null
import mail_helper # 列出当前邮箱账户下有哪些邮箱目录 boxes = mail_helper.list_boxes() print(boxes) # 获取收件箱中所有邮件 messages = mail_helper.get_messages('inbox') print(messages) # 分页获取收件箱中的邮件 messages = mail_helper.get_messages('inbox', current_page=1, page_size=5) print(messages) # 设置为已读,返回布尔值 result = mail_helper.mark_seen_by_uids('inbox', '1564,1565') print(result) # 设置为未读,返回布尔值 result = mail_helper.mark_unseen_by_uids('inbox', '1564,1565') print(result) # 邮件存草稿 receivers='xxx1@qq.com,xxx2@qq.com' cc='cc1@qq.com,cc2@qq.com' # 抄送 bcc='bb1@qq.com,bb2@qq.com' # 密送 mail_subject='我是标题' mail_content='我是内容<p><img src="cid:12.jpg"></p>' # 注意插图的引用方式!且插图名称不能是中文! attachment_names='itinerary.pdf' illustrate_names='12.jpg' result = mail_helper.draft(receivers, mail_subject, mail_content, cc, bcc, attachment_names, illustrate_names) print(result) # 发送一封普通邮件 receivers='xxx1@qq.com,xxx2@qq.com' mail_subject='我是标题' mail_content='我是内容' result = mail_helper.send_mail(receivers, mail_subject, mail_content) print(result) # 发送一封普通邮件,同时抄送、密送 receivers='xxx1@qq.com,xxx2@qq.com' cc='cc1@qq.com,cc2@qq.com' # 抄送 bcc='bb1@qq.com,bb2@qq.com' # 密送 mail_subject='我是标题' mail_content='我是内容' result = mail_helper.send_mail(receivers, mail_subject, mail_content, cc, bcc) print(result) # 发送一封普通邮件,同时抄送、密送,并有附件和插图 receivers='xxx1@qq.com,xxx2@qq.com' cc='cc1@qq.com,cc2@qq.com' # 抄送 bcc='bb1@qq.com,bb2@qq.com' # 密送 mail_subject='我是标题' mail_content='我是内容<p><img src="cid:12.jpg"></p>' # 注意插图的引用方式!且插图名称不能是中文! attachment_names='itinerary.pdf' illustrate_names='12.jpg' result = mail_helper.send_mail(receivers, mail_subject, mail_content, cc, bcc, attachment_names, illustrate_names) print(result)
28.288136
114
0.766327
267
1,669
4.610487
0.2397
0.081235
0.077985
0.058489
0.85459
0.773355
0.718115
0.647441
0.647441
0.647441
0
0.029812
0.075494
1,669
59
115
28.288136
0.767984
0.109047
0
0.731707
0
0
0.261224
0.176871
0
0
0
0
0
1
0
false
0
0.02439
0
0.02439
0.219512
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
758d50b68782a103339f2bd43bea9c8e89a01fc5
1,290
py
Python
telestream_cloud_notifications_sdk/telestream_cloud_notifications/__init__.py
pandastream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
null
null
null
telestream_cloud_notifications_sdk/telestream_cloud_notifications/__init__.py
pandastream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
2
2016-07-06T14:13:31.000Z
2018-03-07T12:54:58.000Z
telestream_cloud_notifications_sdk/telestream_cloud_notifications/__init__.py
Telestream/telestream-cloud-python-sdk
ce0ad503299661a0f622661359367173c06889fc
[ "MIT" ]
null
null
null
# coding: utf-8 # flake8: noqa """ Notifications API Notifications # noqa: E501 The version of the OpenAPI document: 2.1.0 Contact: cloudsupport@telestream.net Generated by: https://openapi-generator.tech """ from __future__ import absolute_import __version__ = "2.1.0" # import apis into sdk package from telestream_cloud_notifications.api.notifications_api import NotificationsApi # import ApiClient from telestream_cloud_notifications.api_client import ApiClient from telestream_cloud_notifications.configuration import Configuration from telestream_cloud_notifications.exceptions import OpenApiException from telestream_cloud_notifications.exceptions import ApiTypeError from telestream_cloud_notifications.exceptions import ApiValueError from telestream_cloud_notifications.exceptions import ApiKeyError from telestream_cloud_notifications.exceptions import ApiException # import models into sdk package from telestream_cloud_notifications.models.params import Params from telestream_cloud_notifications.models.subscription import Subscription from telestream_cloud_notifications.models.topic import Topic from telestream_cloud_notifications.models.update_data import UpdateData from telestream_cloud_notifications.models.update_topic import UpdateTopic
33.947368
81
0.85814
151
1,290
7.072848
0.344371
0.170412
0.231273
0.389513
0.56367
0.481273
0.086142
0
0
0
0
0.009491
0.10155
1,290
37
82
34.864865
0.911993
0.214729
0
0
1
0
0.005102
0
0
0
0
0
0
1
0
false
0
0.933333
0
0.933333
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
75d4847495723d5e1c4dbd05826ba523fae7d886
120
py
Python
pycaption/dfxp/__init__.py
vpaul-dev/pycaption-github-release-notes
d265389807f76330196093e5231d2bf5c699619d
[ "Apache-2.0" ]
183
2015-01-26T00:28:48.000Z
2022-03-29T19:51:55.000Z
pycaption/dfxp/__init__.py
rlaphoenix/pycaption
9824701ed74dfd3b0c39d0dc1fb2f00f4619c4a6
[ "Apache-2.0" ]
132
2015-01-06T08:11:11.000Z
2022-03-31T19:30:57.000Z
pycaption/dfxp/__init__.py
rlaphoenix/pycaption
9824701ed74dfd3b0c39d0dc1fb2f00f4619c4a6
[ "Apache-2.0" ]
150
2015-01-16T18:03:59.000Z
2022-03-16T01:11:10.000Z
from .base import * # noqa: F401, F403 from .extras import SinglePositioningDFXPWriter, LegacyDFXPWriter # noqa: F401
40
79
0.775
13
120
7.153846
0.692308
0.172043
0
0
0
0
0
0
0
0
0
0.088235
0.15
120
2
80
60
0.823529
0.225
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
f94584ae183280d95caeb090d18a18d6b80a8369
406
py
Python
chapter-5/classes.py
fourofour-org/pystory
9a6cca0c6fa53a69cc8b7c384fa745e696a204d8
[ "MIT" ]
null
null
null
chapter-5/classes.py
fourofour-org/pystory
9a6cca0c6fa53a69cc8b7c384fa745e696a204d8
[ "MIT" ]
null
null
null
chapter-5/classes.py
fourofour-org/pystory
9a6cca0c6fa53a69cc8b7c384fa745e696a204d8
[ "MIT" ]
null
null
null
# basic class syntax in Pyhton class Human: def __init__(self): pass def speak(self): pass def walk(self): pass def eat(self): pass def sleep(self): pass class Man(Human): def __init__(self): pass def speak(self): print("Hey there! I'm a human") if __name__=='__main__': man = Man() man.speak()
12.6875
39
0.519704
51
406
3.823529
0.470588
0.246154
0.282051
0.164103
0.328205
0.328205
0.328205
0.328205
0
0
0
0
0.374384
406
32
40
12.6875
0.767717
0.068966
0
0.526316
0
0
0.079787
0
0
0
0
0
0
1
0.368421
false
0.315789
0
0
0.473684
0.052632
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
5
f96c14f49e6c87034b1e9d68a0544112c2b6089d
183
py
Python
notes/views.py
mbassale/noteprg
31042224c396441ba6954de4ed5d0b4f3e1efa71
[ "MIT" ]
null
null
null
notes/views.py
mbassale/noteprg
31042224c396441ba6954de4ed5d0b4f3e1efa71
[ "MIT" ]
4
2021-03-30T12:57:11.000Z
2021-06-10T18:45:28.000Z
notes/views.py
mbassale/noteprg
31042224c396441ba6954de4ed5d0b4f3e1efa71
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.decorators import login_required @login_required def index(request): return render(request, 'notes/index.html', {})
22.875
57
0.786885
24
183
5.916667
0.666667
0.140845
0
0
0
0
0
0
0
0
0
0
0.114754
183
7
58
26.142857
0.876543
0
0
0
0
0
0.087432
0
0
0
0
0
0
1
0.2
false
0
0.4
0.2
0.8
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
f99308c2b08a2dbb5f82e9b6a5eb950bfc44d770
172
py
Python
luna/__init__.py
S0nic014/luna
faf5e65185cfb1df5fdca85b81e2d2f25cc7a5da
[ "MIT" ]
4
2021-04-28T05:58:10.000Z
2022-03-23T02:16:04.000Z
luna/__init__.py
S0nic014/Luna
faf5e65185cfb1df5fdca85b81e2d2f25cc7a5da
[ "MIT" ]
1
2021-04-19T15:42:09.000Z
2021-08-09T14:33:42.000Z
luna/__init__.py
S0nic014/luna
faf5e65185cfb1df5fdca85b81e2d2f25cc7a5da
[ "MIT" ]
1
2020-12-14T08:50:32.000Z
2020-12-14T08:50:32.000Z
import pymel.core as pm from luna.static.vars import * from luna.core.logger import Logger from luna.core.config import Config import luna.workspace __version__ = "0.2.3"
21.5
35
0.790698
29
172
4.551724
0.551724
0.181818
0.181818
0
0
0
0
0
0
0
0
0.02
0.127907
172
7
36
24.571429
0.86
0
0
0
0
0
0.02907
0
0
0
0
0
0
1
0
false
0
0.833333
0
0.833333
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
f9992f04e61ce90c63ac0d906b92691c0c0591c0
1,829
py
Python
demosys/geometry/bbox.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
70
2017-03-31T12:01:41.000Z
2022-01-05T06:30:57.000Z
demosys/geometry/bbox.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
69
2017-06-18T22:37:46.000Z
2020-01-23T04:02:22.000Z
demosys/geometry/bbox.py
Contraz/demosys-py
0479e0f3b0a3901f601bffd2d11e155f97b47555
[ "0BSD" ]
9
2017-05-13T21:13:02.000Z
2020-10-01T18:09:49.000Z
import numpy import moderngl from demosys.opengl.vao import VAO def bbox(width=1.0, height=1.0, depth=1.0): """ Generates a bounding box with (0.0, 0.0, 0.0) as the center. This is simply a box with ``LINE_STRIP`` as draw mode. Keyword Args: width (float): Width of the box height (float): Height of the box depth (float): Depth of the box Returns: A :py:class:`demosys.opengl.vao.VAO` instance """ width, height, depth = width / 2.0, height / 2.0, depth / 2.0 pos = numpy.array([ width, -height, depth, width, height, depth, -width, -height, depth, width, height, depth, -width, height, depth, -width, -height, depth, width, -height, -depth, width, height, -depth, width, -height, depth, width, height, -depth, width, height, depth, width, -height, depth, width, -height, -depth, width, -height, depth, -width, -height, depth, width, -height, -depth, -width, -height, depth, -width, -height, -depth, -width, -height, depth, -width, height, depth, -width, height, -depth, -width, -height, depth, -width, height, -depth, -width, -height, -depth, width, height, -depth, width, -height, -depth, -width, -height, -depth, width, height, -depth, -width, -height, -depth, -width, height, -depth, width, height, -depth, -width, height, -depth, width, height, depth, -width, height, -depth, -width, height, depth, width, height, depth, ], dtype=numpy.float32) vao = VAO("geometry:cube", mode=moderngl.LINE_STRIP) vao.buffer(pos, '3f', ["in_position"]) return vao
28.578125
65
0.550574
217
1,829
4.626728
0.225806
0.405378
0.589641
0.752988
0.579681
0.573705
0.573705
0.573705
0.573705
0.573705
0
0.016667
0.311099
1,829
63
66
29.031746
0.780159
0.164024
0
0.782609
1
0
0.017508
0
0
0
0
0
0
1
0.021739
false
0
0.065217
0
0.108696
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
f99cff2528fcd29d4faade3e74b55417fc3c35f5
167
py
Python
Backend/Invento_Manage/items/admin.py
coffeebeanspoem/HACKTOBERFEST21-GTBIT-WEBDEV
9c91f90ad9c1078c7dad58d8b0a5796aa8f35837
[ "MIT" ]
null
null
null
Backend/Invento_Manage/items/admin.py
coffeebeanspoem/HACKTOBERFEST21-GTBIT-WEBDEV
9c91f90ad9c1078c7dad58d8b0a5796aa8f35837
[ "MIT" ]
null
null
null
Backend/Invento_Manage/items/admin.py
coffeebeanspoem/HACKTOBERFEST21-GTBIT-WEBDEV
9c91f90ad9c1078c7dad58d8b0a5796aa8f35837
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Item , Inventory_User # Register your models here. admin.site.register(Item) admin.site.register(Inventory_User)
23.857143
41
0.814371
24
167
5.583333
0.541667
0.19403
0.253731
0
0
0
0
0
0
0
0
0
0.107784
167
6
42
27.833333
0.899329
0.155689
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
f9b077bb2f7ddca04b79074db16dde80032bd983
259
py
Python
ilf/symbolic/exceptions.py
ConstantinHvber/ilf
b706f81191508998d443c1c89e8d10028ce4e5d8
[ "Apache-2.0" ]
84
2019-11-29T08:32:41.000Z
2022-03-30T01:43:23.000Z
ilf/symbolic/exceptions.py
edolele/ilf
ddd15f201d451d62b94fb45fee7266fb579ab787
[ "Apache-2.0" ]
14
2019-12-30T15:54:00.000Z
2022-03-14T09:37:15.000Z
ilf/symbolic/exceptions.py
edolele/ilf
ddd15f201d451d62b94fb45fee7266fb579ab787
[ "Apache-2.0" ]
20
2020-01-04T05:54:33.000Z
2022-03-29T14:11:43.000Z
class CompilerError(Exception): pass class LTLParseError(Exception): pass class DeploymentError(Exception): pass class UnsatError(Exception): pass class SVMRuntimeError(Exception): pass class NoContractFoundError(Exception): pass
14.388889
38
0.749035
24
259
8.083333
0.375
0.402062
0.463918
0
0
0
0
0
0
0
0
0
0.181467
259
17
39
15.235294
0.915094
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
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
f9b7643d9dc6ec001ea0882eacb46b1da0f38a95
201
py
Python
src/test_generator/ast_expression.py
AAU-PSix/canary
93b07d23cd9380adc03a6aa1291a13eaa3b3008c
[ "MIT" ]
null
null
null
src/test_generator/ast_expression.py
AAU-PSix/canary
93b07d23cd9380adc03a6aa1291a13eaa3b3008c
[ "MIT" ]
null
null
null
src/test_generator/ast_expression.py
AAU-PSix/canary
93b07d23cd9380adc03a6aa1291a13eaa3b3008c
[ "MIT" ]
null
null
null
from typing import Any from .ast_node import ASTNode class Expression(ASTNode): def __init__(self) -> None: pass def accept(self, visitor: Any): visitor.visit_expression(self)
22.333333
38
0.691542
26
201
5.115385
0.653846
0
0
0
0
0
0
0
0
0
0
0
0.223881
201
9
38
22.333333
0.852564
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.142857
0.285714
0
0.714286
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
f9bb56f215e61d226a3553045b6c02bbd76ec768
95
py
Python
main.py
KuangenZhang/HMM_decision_fusion
35834beeec5908a5f85d727bc0dde26ecb169f1c
[ "MIT" ]
4
2019-08-07T20:53:24.000Z
2020-08-01T02:18:19.000Z
main.py
KuangenZhang/HMM_decision_fusion
35834beeec5908a5f85d727bc0dde26ecb169f1c
[ "MIT" ]
null
null
null
main.py
KuangenZhang/HMM_decision_fusion
35834beeec5908a5f85d727bc0dde26ecb169f1c
[ "MIT" ]
2
2020-01-12T15:09:59.000Z
2020-04-06T14:22:49.000Z
import algos acc_mean = {} _, acc_mean['hmm'] = algos.test_hmm() print('Acc mean: ', acc_mean)
19
37
0.673684
15
95
3.933333
0.466667
0.474576
0.338983
0.474576
0
0
0
0
0
0
0
0
0.136842
95
5
38
19
0.719512
0
0
0
0
0
0.135417
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
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
f9cf769b6a70be61ef1a1bcb3301145ebebcade0
146
py
Python
assertpy/__init__.py
amitwer/assertpy
d8f222ed8ccbf2c64475111134db555245831e48
[ "BSD-3-Clause" ]
null
null
null
assertpy/__init__.py
amitwer/assertpy
d8f222ed8ccbf2c64475111134db555245831e48
[ "BSD-3-Clause" ]
null
null
null
assertpy/__init__.py
amitwer/assertpy
d8f222ed8ccbf2c64475111134db555245831e48
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from .assertpy import assert_that, assert_warn, soft_assertions, contents_of, fail, soft_fail, __version__
48.666667
106
0.856164
20
146
5.55
0.7
0
0
0
0
0
0
0
0
0
0
0
0.09589
146
2
107
73
0.840909
0
0
0
0
0
0
0
0
0
0
0
0.5
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
1
0
0
1
0
1
0
0
0
0
5
ddeba38033a7db6094215d0f48bdeb201ce95da6
7,087
py
Python
joy/migrations/0022_auto_20200403_0931.py
IreneMercy/Joy-Village-Backup
f038e33aa5c28337bc20c6fcd3273ef37d283564
[ "MIT" ]
null
null
null
joy/migrations/0022_auto_20200403_0931.py
IreneMercy/Joy-Village-Backup
f038e33aa5c28337bc20c6fcd3273ef37d283564
[ "MIT" ]
9
2021-03-19T09:58:55.000Z
2022-03-12T00:22:50.000Z
joy/migrations/0022_auto_20200403_0931.py
IreneMercy/Joy-Foundation
f038e33aa5c28337bc20c6fcd3273ef37d283564
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2020-04-03 09:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('joy', '0021_auto_20200403_0907'), ] operations = [ migrations.RemoveField( model_name='kiambu', name='datestarted', ), migrations.RemoveField( model_name='kiambu', name='description', ), migrations.RemoveField( model_name='kiambu', name='image', ), migrations.RemoveField( model_name='kiambu', name='location', ), migrations.RemoveField( model_name='kiambu', name='title', ), migrations.RemoveField( model_name='muranga', name='datestarted', ), migrations.RemoveField( model_name='muranga', name='description', ), migrations.RemoveField( model_name='muranga', name='image', ), migrations.RemoveField( model_name='muranga', name='location', ), migrations.RemoveField( model_name='muranga', name='title', ), migrations.RemoveField( model_name='nairobi', name='datestarted', ), migrations.RemoveField( model_name='nairobi', name='description', ), migrations.RemoveField( model_name='nairobi', name='location', ), migrations.RemoveField( model_name='nairobi', name='title', ), migrations.RemoveField( model_name='nakuru', name='datestarted', ), migrations.RemoveField( model_name='nakuru', name='description', ), migrations.RemoveField( model_name='nakuru', name='image', ), migrations.RemoveField( model_name='nakuru', name='location', ), migrations.RemoveField( model_name='nakuru', name='title', ), migrations.RemoveField( model_name='nyeri', name='datestarted', ), migrations.RemoveField( model_name='nyeri', name='description', ), migrations.RemoveField( model_name='nyeri', name='image', ), migrations.RemoveField( model_name='nyeri', name='location', ), migrations.RemoveField( model_name='nyeri', name='title', ), migrations.AddField( model_name='kiambu', name='ProgramDescription', field=models.TextField(default=True, max_length=500), ), migrations.AddField( model_name='kiambu', name='ProgramImage', field=models.ImageField(default=True, upload_to=''), ), migrations.AddField( model_name='kiambu', name='ProgramLocation', field=models.CharField(default=True, max_length=100), ), migrations.AddField( model_name='kiambu', name='ProgramOnset', field=models.CharField(default=True, max_length=10), ), migrations.AddField( model_name='kiambu', name='ProgramTitle', field=models.CharField(default=True, max_length=30), ), migrations.AddField( model_name='muranga', name='ProgramDescription', field=models.TextField(default=True, max_length=500), ), migrations.AddField( model_name='muranga', name='ProgramImage', field=models.ImageField(default=True, upload_to=''), ), migrations.AddField( model_name='muranga', name='ProgramLocation', field=models.CharField(default=True, max_length=100), ), migrations.AddField( model_name='muranga', name='ProgramOnset', field=models.CharField(default=True, max_length=10), ), migrations.AddField( model_name='muranga', name='ProgramTitle', field=models.CharField(default=True, max_length=30), ), migrations.AddField( model_name='nairobi', name='ProgramDescription', field=models.TextField(default=True, max_length=500), ), migrations.AddField( model_name='nairobi', name='ProgramLocation', field=models.CharField(default=True, max_length=100), ), migrations.AddField( model_name='nairobi', name='ProgramOnset', field=models.CharField(default=True, max_length=10), ), migrations.AddField( model_name='nairobi', name='ProgramTitle', field=models.CharField(default=True, max_length=30), ), migrations.AddField( model_name='nakuru', name='ProgramDescription', field=models.TextField(default=True, max_length=500), ), migrations.AddField( model_name='nakuru', name='ProgramImage', field=models.ImageField(default=True, upload_to=''), ), migrations.AddField( model_name='nakuru', name='ProgramLocation', field=models.CharField(default=True, max_length=100), ), migrations.AddField( model_name='nakuru', name='ProgramOnset', field=models.CharField(default=True, max_length=10), ), migrations.AddField( model_name='nakuru', name='ProgramTitle', field=models.CharField(default=True, max_length=30), ), migrations.AddField( model_name='nyeri', name='ProgramDescription', field=models.TextField(default=True, max_length=500), ), migrations.AddField( model_name='nyeri', name='ProgramImage', field=models.ImageField(default=True, upload_to=''), ), migrations.AddField( model_name='nyeri', name='ProgramLocation', field=models.CharField(default=True, max_length=100), ), migrations.AddField( model_name='nyeri', name='ProgramOnset', field=models.CharField(default=True, max_length=10), ), migrations.AddField( model_name='nyeri', name='ProgramTitle', field=models.CharField(default=True, max_length=30), ), migrations.AlterField( model_name='nairobi', name='image', field=models.ImageField(default=True, upload_to=''), ), ]
30.157447
65
0.522506
567
7,087
6.395062
0.102293
0.121622
0.17209
0.198566
0.948428
0.948428
0.581908
0.570877
0.570877
0.570877
0
0.018114
0.361225
7,087
234
66
30.286325
0.782858
0.006491
0
0.964912
1
0
0.122461
0.003268
0
0
0
0
0
1
0
false
0
0.004386
0
0.017544
0
0
0
0
null
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
ddedde9a624698a83e7354d9dfa69046fdc19dba
56
py
Python
app/routes/teacher/__init__.py
himanshuvarandani/Electron-Server
48bcd965816f026518aa56d254fdc7057ae61cd8
[ "MIT" ]
null
null
null
app/routes/teacher/__init__.py
himanshuvarandani/Electron-Server
48bcd965816f026518aa56d254fdc7057ae61cd8
[ "MIT" ]
5
2021-10-30T06:04:47.000Z
2021-11-14T21:09:00.000Z
app/routes/teacher/__init__.py
himanshuvarandani/Electron-Server
48bcd965816f026518aa56d254fdc7057ae61cd8
[ "MIT" ]
1
2022-02-28T15:24:58.000Z
2022-02-28T15:24:58.000Z
from app.routes.teacher import login, classes, subjects
28
55
0.821429
8
56
5.75
1
0
0
0
0
0
0
0
0
0
0
0
0.107143
56
1
56
56
0.92
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
ddf217d635a76ce0a3b7bd5fbcea9ce82d255242
875
py
Python
python/test-day01.py
kiriappeee/advent-of-code-2019
f5ca73e0853e17b570819ab27dbb42938a1db328
[ "Unlicense" ]
null
null
null
python/test-day01.py
kiriappeee/advent-of-code-2019
f5ca73e0853e17b570819ab27dbb42938a1db328
[ "Unlicense" ]
null
null
null
python/test-day01.py
kiriappeee/advent-of-code-2019
f5ca73e0853e17b570819ab27dbb42938a1db328
[ "Unlicense" ]
null
null
null
import unittest from . import day01 class TestDay1(unittest.TestCase): def test_basic(self): self.assertEqual('hello', 'hello') def test_fuel_is_calculated_correctly_for_given_examples(self): self.assertEqual(day01.get_fuel_required(module_mass=12), 2) self.assertEqual(day01.get_fuel_required(module_mass=14), 2) self.assertEqual(day01.get_fuel_required(module_mass=1969), 654) self.assertEqual(day01.get_fuel_required(module_mass=100756), 33583) def test_fuel_for_fuel_is_calculated_correctly_for_given_examples(self): self.assertEqual(day01.get_fuel_required_for_fuel(fuel_volume=2), 0) self.assertEqual(day01.get_fuel_required_for_fuel(fuel_volume=654), 966-654) self.assertEqual(day01.get_fuel_required_for_fuel(fuel_volume=33583), 50346-33583) if __name__ == "__main__": unittest.main()
46.052632
90
0.765714
122
875
5.065574
0.311475
0.194175
0.226537
0.260518
0.702265
0.702265
0.702265
0.692557
0.60356
0.454693
0
0.088391
0.133714
875
19
91
46.052632
0.726913
0
0
0
0
0
0.020548
0
0
0
0
0
0.5
1
0.1875
false
0
0.125
0
0.375
0
0
0
0
null
0
1
1
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
5
fb0951128ff96c32c44780a709f55744492ff18b
138
py
Python
main.py
zARODz11z/AlgorithmVisualizer
984d68b94f54d6ed69401608b01e1c1013d20cb7
[ "Apache-2.0" ]
null
null
null
main.py
zARODz11z/AlgorithmVisualizer
984d68b94f54d6ed69401608b01e1c1013d20cb7
[ "Apache-2.0" ]
null
null
null
main.py
zARODz11z/AlgorithmVisualizer
984d68b94f54d6ed69401608b01e1c1013d20cb7
[ "Apache-2.0" ]
null
null
null
import BubbleSort import BinarySearch print(BubbleSort.bubble_sort_swaps([7,5,3])) print(BinarySearch.binarySearch([2,3,4,5,6,7,8,9],-2))
27.6
54
0.775362
24
138
4.375
0.625
0
0
0
0
0
0
0
0
0
0
0.090909
0.043478
138
5
54
27.6
0.704545
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
5
fb0bc477eb4160a188f8940a513001a8d56d0a28
114
py
Python
tests/test_compare.py
OfirMos/redisbench-admin
eaa6368c9073e092e10b4cc57c9395d17854e04a
[ "Apache-2.0" ]
5
2021-08-03T12:38:30.000Z
2022-03-23T07:35:38.000Z
tests/test_compare.py
OfirMos/redisbench-admin
eaa6368c9073e092e10b4cc57c9395d17854e04a
[ "Apache-2.0" ]
91
2021-03-17T12:05:35.000Z
2022-03-29T22:20:00.000Z
tests/test_compare.py
OfirMos/redisbench-admin
eaa6368c9073e092e10b4cc57c9395d17854e04a
[ "Apache-2.0" ]
2
2021-06-07T14:06:58.000Z
2021-07-27T10:37:15.000Z
from unittest import TestCase class Test(TestCase): def test_get_key_results_and_values(self): pass
16.285714
46
0.745614
16
114
5
0.875
0
0
0
0
0
0
0
0
0
0
0
0.201754
114
6
47
19
0.879121
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0.25
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
fb3abee67ea32d7302884391d7cb7775287c5bfc
151
py
Python
diary/admin.py
tbrlpld/CAEJobDiary
16676b3eaa56aafdf54579d19baa6540375d91e4
[ "MIT" ]
null
null
null
diary/admin.py
tbrlpld/CAEJobDiary
16676b3eaa56aafdf54579d19baa6540375d91e4
[ "MIT" ]
2
2020-06-06T01:37:33.000Z
2020-06-06T04:16:18.000Z
diary/admin.py
tbrlpld/CAEJobDiary
16676b3eaa56aafdf54579d19baa6540375d91e4
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Job, Keyword # Register your models here. admin.site.register(Job) admin.site.register(Keyword)
18.875
32
0.794702
22
151
5.454545
0.545455
0.15
0.283333
0
0
0
0
0
0
0
0
0
0.119205
151
7
33
21.571429
0.902256
0.172185
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
348897044f89148f128e3c473ffcca47956cd180
13
py
Python
demo/phpython/import/module2/__main__.py
phpython/phpython
1dd7a4f36461eca1fbe04364fd05f2e08209a499
[ "MIT" ]
13
2017-09-03T17:33:14.000Z
2022-03-16T00:38:32.000Z
demo/phpython/exec/script2/__main__.py
phpython/phpython
1dd7a4f36461eca1fbe04364fd05f2e08209a499
[ "MIT" ]
2
2017-10-09T11:33:11.000Z
2019-01-08T17:45:28.000Z
demo/phpython/import/module2/__main__.py
phpython/phpython
1dd7a4f36461eca1fbe04364fd05f2e08209a499
[ "MIT" ]
4
2019-01-08T15:33:33.000Z
2020-09-28T15:17:08.000Z
print "ciao"
6.5
12
0.692308
2
13
4.5
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
13
2
12
6.5
0.818182
0
0
0
0
0
0.307692
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
1
0
5
34908d8ad7e0a00c01db2a4c9ca01bc7060db4f4
86
py
Python
handlers/handler_utils.py
m-j/ziprepo-server
35c1f40c3ba5489fb8731e8d66b301333dc9f8b0
[ "MIT" ]
1
2020-08-08T01:52:57.000Z
2020-08-08T01:52:57.000Z
handlers/handler_utils.py
m-j/ziprepo-server
35c1f40c3ba5489fb8731e8d66b301333dc9f8b0
[ "MIT" ]
null
null
null
handlers/handler_utils.py
m-j/ziprepo-server
35c1f40c3ba5489fb8731e8d66b301333dc9f8b0
[ "MIT" ]
2
2021-09-06T09:41:41.000Z
2022-03-27T19:51:32.000Z
def wrap_in_envelope(response_dict): return { 'data': response_dict }
17.2
36
0.639535
10
86
5.1
0.8
0.470588
0
0
0
0
0
0
0
0
0
0
0.267442
86
4
37
21.5
0.809524
0
0
0
0
0
0.046512
0
0
0
0
0
0
1
0.25
false
0
0
0.25
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
34a2ebbb151e33de935251317ceedeb709d7ce2f
124
py
Python
__init__.py
yulun-rayn/sGAT
0e27edf6cf6a6da67909765b0536cff2625b9dcc
[ "MIT" ]
2
2021-06-09T06:46:49.000Z
2021-06-17T16:37:01.000Z
__init__.py
yulun-rayn/sGAT
0e27edf6cf6a6da67909765b0536cff2625b9dcc
[ "MIT" ]
null
null
null
__init__.py
yulun-rayn/sGAT
0e27edf6cf6a6da67909765b0536cff2625b9dcc
[ "MIT" ]
null
null
null
from .src.sgat.sGAT import sGAT, init_sGAT, save_sGAT, load_sGAT __all__ = ['sGAT', 'init_sGAT', 'save_sGAT', 'load_sGAT']
31
64
0.725806
20
124
4
0.4
0.2
0.3
0.4
0.7
0.7
0.7
0
0
0
0
0
0.112903
124
3
65
41.333333
0.727273
0
0
0
0
0
0.25
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
34e0e9a8f4bc20ebc05d1a06fe58b1a4449f6b73
294
py
Python
lib/cassowary/error.py
Shurikan-Corp/Splash-D
a6afc5806f7273a23257b8758b97777ef21146c8
[ "MIT" ]
93
2015-01-09T22:22:35.000Z
2020-01-31T18:00:09.000Z
lib/cassowary/error.py
JDsnyke/UP-Flow
d84cbedc7ae288b3d7672994439728d4085144f1
[ "MIT" ]
9
2015-08-19T02:58:56.000Z
2016-07-17T13:21:18.000Z
lib/cassowary/error.py
JDsnyke/UP-Flow
d84cbedc7ae288b3d7672994439728d4085144f1
[ "MIT" ]
29
2015-07-07T13:47:22.000Z
2019-10-16T08:44:35.000Z
from __future__ import print_function, unicode_literals, absolute_import, division class CassowaryException(Exception): pass class InternalError(CassowaryException): pass class ConstraintNotFound(CassowaryException): pass class RequiredFailure(CassowaryException): pass
16.333333
82
0.802721
26
294
8.807692
0.615385
0.117904
0.235808
0
0
0
0
0
0
0
0
0
0.146259
294
17
83
17.294118
0.912351
0
0
0.444444
0
0
0
0
0
0
0
0
0
1
0
true
0.444444
0.111111
0
0.555556
0.111111
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
1
0
0
5
9b338351628a5e2f5f8b8bf8ea5ea3d5937c8008
191
py
Python
ex012.py
RenatoCortez/ExerciciosPython
5a1a3a621dfb516f4e3b1be4b8764201092a7d7a
[ "MIT" ]
null
null
null
ex012.py
RenatoCortez/ExerciciosPython
5a1a3a621dfb516f4e3b1be4b8764201092a7d7a
[ "MIT" ]
null
null
null
ex012.py
RenatoCortez/ExerciciosPython
5a1a3a621dfb516f4e3b1be4b8764201092a7d7a
[ "MIT" ]
null
null
null
print('$$$$$$ PREÇO COM DESCONTO DE 5% $$$$$$') n = float(input('Digite o valor do produto:R$ ')) d = n - (n * 5 / 100) print('O valor do produto com desconto de 5% é de R${:.2f}'.format(d))
38.2
70
0.581152
35
191
3.171429
0.571429
0.198198
0.234234
0.252252
0
0
0
0
0
0
0
0.044872
0.183246
191
4
71
47.75
0.666667
0
0
0
0
0
0.617801
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
9b3b641a859771dbc34db795b010723879b9ac2a
19,576
py
Python
rfcat/vstruct/defs/macho/loader.py
n644dc/spacewaveTx
7c4df00366c8dc4b05976e4dc09df14b135f27bf
[ "Unlicense" ]
null
null
null
rfcat/vstruct/defs/macho/loader.py
n644dc/spacewaveTx
7c4df00366c8dc4b05976e4dc09df14b135f27bf
[ "Unlicense" ]
null
null
null
rfcat/vstruct/defs/macho/loader.py
n644dc/spacewaveTx
7c4df00366c8dc4b05976e4dc09df14b135f27bf
[ "Unlicense" ]
null
null
null
import vstruct import vstruct.primitives as vs_prim vm_prot_t = vs_prim.v_uint32 cpu_type_t = vs_prim.v_uint32 cpu_subtype_t = vs_prim.v_uint32 lc_str = vs_prim.v_uint32 class mach_header(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.magic = vs_prim.v_uint32() # mach magic number identifier self.cputype = cpu_type_t() # cpu specifier self.cpusubtype = cpu_subtype_t() # machine specifier self.filetype = vs_prim.v_uint32() # type of file self.ncmds = vs_prim.v_uint32() # number of load commands self.sizeofcmds = vs_prim.v_uint32() # the size of all the load commands self.flags = vs_prim.v_uint32() # flags class mach_header_64(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.magic = vs_prim.v_uint32() # mach magic number identifier self.cputype = cpu_type_t() # cpu specifier self.cpusubtype = cpu_subtype_t() # machine specifier self.filetype = vs_prim.v_uint32() # type of file self.ncmds = vs_prim.v_uint32() # number of load commands self.sizeofcmds = vs_prim.v_uint32() # the size of all the load commands self.flags = vs_prim.v_uint32() # flags self.reserved = vs_prim.v_uint32() # reserved class load_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # type of load command self.cmdsize = vs_prim.v_uint32() # total size of command in bytes class segment_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_SEGMENT self.cmdsize = vs_prim.v_uint32() # includes sizeof section structs self.segname[16] = vs_prim.v_uint8() # segment name self.vmaddr = vs_prim.v_uint32() # memory address of this segment self.vmsize = vs_prim.v_uint32() # memory size of this segment self.fileoff = vs_prim.v_uint32() # file offset of this segment self.filesize = vs_prim.v_uint32() # amount to map from the file self.maxprot = vm_prot_t() # maximum VM protection self.initprot = vm_prot_t() # initial VM protection self.nsects = vs_prim.v_uint32() # number of sections in segment self.flags = vs_prim.v_uint32() # flags class segment_command_64(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_SEGMENT_64 self.cmdsize = vs_prim.v_uint32() # includes sizeof section_64 structs self.segname[16] = vs_prim.v_uint8() # segment name self.vmaddr = vs_prim.v_uint64() # memory address of this segment self.vmsize = vs_prim.v_uint64() # memory size of this segment self.fileoff = vs_prim.v_uint64() # file offset of this segment self.filesize = vs_prim.v_uint64() # amount to map from the file self.maxprot = vm_prot_t() # maximum VM protection self.initprot = vm_prot_t() # initial VM protection self.nsects = vs_prim.v_uint32() # number of sections in segment self.flags = vs_prim.v_uint32() # flags class section(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.sectname[16] = vs_prim.v_uint8() # name of this section self.segname[16] = vs_prim.v_uint8() # segment this section goes in self.addr = vs_prim.v_uint32() # memory address of this section self.size = vs_prim.v_uint32() # size in bytes of this section self.offset = vs_prim.v_uint32() # file offset of this section self.align = vs_prim.v_uint32() # section alignment (power of 2) self.reloff = vs_prim.v_uint32() # file offset of relocation entries self.nreloc = vs_prim.v_uint32() # number of relocation entries self.flags = vs_prim.v_uint32() # flags (section type and attributes) self.reserved1 = vs_prim.v_uint32() # reserved (for offset or index) self.reserved2 = vs_prim.v_uint32() # reserved (for count or sizeof) class section_64(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.sectname[16] = vs_prim.v_uint8() # name of this section self.segname[16] = vs_prim.v_uint8() # segment this section goes in self.addr = vs_prim.v_uint64() # memory address of this section self.size = vs_prim.v_uint64() # size in bytes of this section self.offset = vs_prim.v_uint32() # file offset of this section self.align = vs_prim.v_uint32() # section alignment (power of 2) self.reloff = vs_prim.v_uint32() # file offset of relocation entries self.nreloc = vs_prim.v_uint32() # number of relocation entries self.flags = vs_prim.v_uint32() # flags (section type and attributes) self.reserved1 = vs_prim.v_uint32() # reserved (for offset or index) self.reserved2 = vs_prim.v_uint32() # reserved (for count or sizeof) self.reserved3 = vs_prim.v_uint32() # reserved class fvmlib(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.name = lc_str() # library's target pathname self.minor_version = vs_prim.v_uint32() # library's minor version number self.header_addr = vs_prim.v_uint32() # library's header address class fvmlib_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_IDFVMLIB or LC_LOADFVMLIB self.cmdsize = vs_prim.v_uint32() # includes pathname string self.fvmlib = fvmlib() # the library identification class dylib(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.name = lc_str() # library's path name self.timestamp = vs_prim.v_uint32() # library's build time stamp self.current_version = vs_prim.v_uint32() # library's current version number self.compatibility_version = vs_prim.v_uint32() # library's compatibility vers number class dylib_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_ID_DYLIB, LC_LOAD_{,WEAK_}DYLIB, LC_REEXPORT_DYLIB self.cmdsize = vs_prim.v_uint32() # includes pathname string self.dylib = dylib() # the library identification class sub_framework_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_SUB_FRAMEWORK self.cmdsize = vs_prim.v_uint32() # includes umbrella string self.umbrella = lc_str() # the umbrella framework name class sub_client_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_SUB_CLIENT self.cmdsize = vs_prim.v_uint32() # includes client string self.client = lc_str() # the client name class sub_umbrella_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_SUB_UMBRELLA self.cmdsize = vs_prim.v_uint32() # includes sub_umbrella string self.sub_umbrella = lc_str() # the sub_umbrella framework name class sub_library_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_SUB_LIBRARY self.cmdsize = vs_prim.v_uint32() # includes sub_library string self.sub_library = lc_str() # the sub_library name class prebound_dylib_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_PREBOUND_DYLIB self.cmdsize = vs_prim.v_uint32() # includes strings self.name = lc_str() # library's path name self.nmodules = vs_prim.v_uint32() # number of modules in library self.linked_modules = lc_str() # bit vector of linked modules class dylinker_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_ID_DYLINKER or LC_LOAD_DYLINKER self.cmdsize = vs_prim.v_uint32() # includes pathname string self.name = lc_str() # dynamic linker's path name class thread_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_THREAD or LC_UNIXTHREAD self.cmdsize = vs_prim.v_uint32() # total size of this command class routines_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_ROUTINES self.cmdsize = vs_prim.v_uint32() # total size of this command self.init_address = vs_prim.v_uint32() # address of initialization routine self.init_module = vs_prim.v_uint32() # index into the module table that self.reserved1 = vs_prim.vs_prim.v_uint32() self.reserved2 = vs_prim.vs_prim.v_uint32() self.reserved3 = vs_prim.vs_prim.v_uint32() self.reserved4 = vs_prim.vs_prim.v_uint32() self.reserved5 = vs_prim.vs_prim.v_uint32() self.reserved6 = vs_prim.vs_prim.v_uint32() class routines_command_64(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_ROUTINES_64 self.cmdsize = vs_prim.v_uint32() # total size of this command self.init_address = vs_prim.v_uint64() # address of initialization routine self.init_module = vs_prim.v_uint64() # index into the module table that self.reserved1 = vs_prim.vs_prim.v_uint64() self.reserved2 = vs_prim.vs_prim.v_uint64() self.reserved3 = vs_prim.vs_prim.v_uint64() self.reserved4 = vs_prim.vs_prim.v_uint64() self.reserved5 = vs_prim.vs_prim.v_uint64() self.reserved6 = vs_prim.vs_prim.v_uint64() class symtab_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_SYMTAB self.cmdsize = vs_prim.v_uint32() # sizeof(struct symtab_command) self.symoff = vs_prim.v_uint32() # symbol table offset self.nsyms = vs_prim.v_uint32() # number of symbol table entries self.stroff = vs_prim.v_uint32() # string table offset self.strsize = vs_prim.v_uint32() # string table size in bytes class dysymtab_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_DYSYMTAB self.cmdsize = vs_prim.v_uint32() # sizeof(struct dysymtab_command) self.ilocalsym = vs_prim.v_uint32() # index to local symbols self.nlocalsym = vs_prim.v_uint32() # number of local symbols self.iextdefsym = vs_prim.v_uint32() # index to externally defined symbols self.nextdefsym = vs_prim.v_uint32() # number of externally defined symbols self.iundefsym = vs_prim.v_uint32() # index to undefined symbols self.nundefsym = vs_prim.v_uint32() # number of undefined symbols self.tocoff = vs_prim.v_uint32() # file offset to table of contents self.ntoc = vs_prim.v_uint32() # number of entries in table of contents self.modtaboff = vs_prim.v_uint32() # file offset to module table self.nmodtab = vs_prim.v_uint32() # number of module table entries self.extrefsymoff = vs_prim.v_uint32() # offset to referenced symbol table self.nextrefsyms = vs_prim.v_uint32() # number of referenced symbol table entries self.indirectsymoff = vs_prim.v_uint32() # file offset to the indirect symbol table self.nindirectsyms = vs_prim.v_uint32() # number of indirect symbol table entries self.extreloff = vs_prim.v_uint32() # offset to external relocation entries self.nextrel = vs_prim.v_uint32() # number of external relocation entries self.locreloff = vs_prim.v_uint32() # offset to local relocation entries self.nlocrel = vs_prim.v_uint32() # number of local relocation entries class dylib_table_of_contents(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.symbol_index = vs_prim.v_uint32() # the defined external symbol (index into the symbol table) self.module_index = vs_prim.v_uint32() # index into the module table this symbol is defined in class dylib_module(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.module_name = vs_prim.v_uint32() # the module name (index into string table) self.iextdefsym = vs_prim.v_uint32() # index into externally defined symbols self.nextdefsym = vs_prim.v_uint32() # number of externally defined symbols self.irefsym = vs_prim.v_uint32() # index into reference symbol table self.nrefsym = vs_prim.v_uint32() # number of reference symbol table entries self.ilocalsym = vs_prim.v_uint32() # index into symbols for local symbols self.nlocalsym = vs_prim.v_uint32() # number of local symbols self.iextrel = vs_prim.v_uint32() # index into external relocation entries self.nextrel = vs_prim.v_uint32() # number of external relocation entries self.iinit_iterm = vs_prim.v_uint32() # low 16 bits are the index into the init section, high 16 bits are the index into the term section self.ninit_nterm = vs_prim.v_uint32() # low 16 bits are the number of init section entries, high 16 bits are the number of term section entries self.objc_module_info_addr = vs_prim.v_uint32() # the (__OBJC,__module_info) section self.objc_module_info_size = vs_prim.v_uint32() # the (__OBJC,__module_info) section class dylib_module_64(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.module_name = vs_prim.v_uint32() # the module name (index into string table) self.iextdefsym = vs_prim.v_uint32() # index into externally defined symbols self.nextdefsym = vs_prim.v_uint32() # number of externally defined symbols self.irefsym = vs_prim.v_uint32() # index into reference symbol table self.nrefsym = vs_prim.v_uint32() # number of reference symbol table entries self.ilocalsym = vs_prim.v_uint32() # index into symbols for local symbols self.nlocalsym = vs_prim.v_uint32() # number of local symbols self.iextrel = vs_prim.v_uint32() # index into external relocation entries self.nextrel = vs_prim.v_uint32() # number of external relocation entries self.iinit_iterm = vs_prim.v_uint32() # low 16 bits are the index into the init section, high 16 bits are the index into the term section self.ninit_nterm = vs_prim.v_uint32() # low 16 bits are the number of init section entries, high 16 bits are the number of term section entries self.objc_module_info_size = vs_prim.v_uint32() # the (__OBJC,__module_info) section self.objc_module_info_addr = vs_prim.v_uint64() # the (__OBJC,__module_info) section class dylib_reference(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.flags = vs_prim.v_uint32() # flags to indicate the type of reference class twolevel_hints_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_TWOLEVEL_HINTS self.cmdsize = vs_prim.v_uint32() # sizeof(struct twolevel_hints_command) self.offset = vs_prim.v_uint32() # offset to the hint table self.nhints = vs_prim.v_uint32() # number of hints in the hint table class twolevel_hint(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.itoc = vs_prim.v_uint32() # index into the table of contents class prebind_cksum_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_PREBIND_CKSUM self.cmdsize = vs_prim.v_uint32() # sizeof(struct prebind_cksum_command) self.cksum = vs_prim.v_uint32() # the check sum or zero class uuid_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_UUID self.cmdsize = vs_prim.v_uint32() # sizeof(struct uuid_command) self.uuid[16] = vs_prim.v_uint8() # the 128-bit uuid class rpath_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_RPATH self.cmdsize = vs_prim.v_uint32() # includes string self.path = lc_str() # path to add to run path class linkedit_data_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_CODE_SIGNATURE or LC_SEGMENT_SPLIT_INFO self.cmdsize = vs_prim.v_uint32() # sizeof(struct linkedit_data_command) self.dataoff = vs_prim.v_uint32() # file offset of data in __LINKEDIT segment self.datasize = vs_prim.v_uint32() # file size of data in __LINKEDIT segment class encryption_info_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_ENCRYPTION_INFO self.cmdsize = vs_prim.v_uint32() # sizeof(struct encryption_info_command) self.cryptoff = vs_prim.v_uint32() # file offset of encrypted range self.cryptsize = vs_prim.v_uint32() # file size of encrypted range self.cryptid = vs_prim.v_uint32() # which enryption system, 0 means not-encrypted yet class symseg_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_SYMSEG self.cmdsize = vs_prim.v_uint32() # sizeof(struct symseg_command) self.offset = vs_prim.v_uint32() # symbol segment offset self.size = vs_prim.v_uint32() # symbol segment size in bytes class ident_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_IDENT self.cmdsize = vs_prim.v_uint32() # strings that follow this command class fvmfile_command(vstruct.VStruct): def __init__(self): vstruct.VStruct.__init__(self) self.cmd = vs_prim.v_uint32() # LC_FVMFILE self.cmdsize = vs_prim.v_uint32() # includes pathname string self.name = lc_str() # files pathname self.header_addr = vs_prim.v_uint32() # files virtual address
45.953052
161
0.662035
2,652
19,576
4.554676
0.090121
0.099843
0.108949
0.178657
0.804206
0.784999
0.741866
0.661893
0.630599
0.606424
0
0.029879
0.251175
19,576
425
162
46.061176
0.79412
0.28821
0
0.642633
0
0
0
0
0
0
0
0
0
1
0.112853
false
0
0.00627
0
0.231975
0
0
0
0
null
0
0
1
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
9b7c552e50e55886fb5c56404337203f4c7c8dfb
230
py
Python
public/neumeeditor/serializers/authentication.py
jacobsanz97/cantus
37d139ae20972c36d4abb96a2a5ac5106b0c1b47
[ "MIT" ]
null
null
null
public/neumeeditor/serializers/authentication.py
jacobsanz97/cantus
37d139ae20972c36d4abb96a2a5ac5106b0c1b47
[ "MIT" ]
null
null
null
public/neumeeditor/serializers/authentication.py
jacobsanz97/cantus
37d139ae20972c36d4abb96a2a5ac5106b0c1b47
[ "MIT" ]
null
null
null
from rest_framework import serializers from rest_framework.authtoken.models import Token class ExpiringAuthTokenSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Token fields = ('key',)
25.555556
74
0.765217
22
230
7.909091
0.681818
0.091954
0.195402
0
0
0
0
0
0
0
0
0
0.173913
230
8
75
28.75
0.915789
0
0
0
0
0
0.013043
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.666667
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
9b7f2ff43eadaa853a717e8df904e5db85bd06db
18
py
Python
virtbs/__init__.py
afazekas/speedling
bd9d93ef16f3d702f146812fb6e8fef51426a378
[ "Apache-2.0" ]
1
2019-04-10T18:20:09.000Z
2019-04-10T18:20:09.000Z
virtbs/__init__.py
afazekas/speedling
bd9d93ef16f3d702f146812fb6e8fef51426a378
[ "Apache-2.0" ]
1
2019-07-12T12:08:19.000Z
2019-07-12T12:08:19.000Z
virtbs/__init__.py
afazekas/speedling
bd9d93ef16f3d702f146812fb6e8fef51426a378
[ "Apache-2.0" ]
1
2019-02-26T16:37:10.000Z
2019-02-26T16:37:10.000Z
# Not package yet
9
17
0.722222
3
18
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.222222
18
1
18
18
0.928571
0.833333
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
9b9f01e4bc17ee64fc603c137293b49d548d62f1
70
py
Python
docs/tutorial_data-9.py
ankitshah009/dcase_util
738571ce78faf60b0fdfa1d59fd42f42c8944f3d
[ "MIT" ]
122
2017-11-10T16:51:04.000Z
2022-03-28T07:04:34.000Z
docs/tutorial_data-9.py
gpinyero/dcase_util
298b2db13a2ffce7791f4de9d374616793564816
[ "MIT" ]
18
2018-03-29T01:14:35.000Z
2022-03-30T11:21:17.000Z
docs/tutorial_data-9.py
gpinyero/dcase_util
298b2db13a2ffce7791f4de9d374616793564816
[ "MIT" ]
39
2017-11-16T14:34:26.000Z
2022-03-27T06:27:52.000Z
import dcase_util dcase_util.utils.Example.feature_repository().plot()
35
52
0.857143
10
70
5.7
0.8
0.315789
0
0
0
0
0
0
0
0
0
0
0.028571
70
2
52
35
0.838235
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
9ba40ec49ebd06c3fdb30d28a4c01b388feaa24a
1,973
py
Python
lessons/CRISP_DM/RemovingValues.py
aauss/DSND_Term2
ff1ff8edc208652c29bfc25f18c610a02dc9d299
[ "MIT" ]
null
null
null
lessons/CRISP_DM/RemovingValues.py
aauss/DSND_Term2
ff1ff8edc208652c29bfc25f18c610a02dc9d299
[ "MIT" ]
null
null
null
lessons/CRISP_DM/RemovingValues.py
aauss/DSND_Term2
ff1ff8edc208652c29bfc25f18c610a02dc9d299
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from collections import defaultdict import RemovingValuesSolns as s ## Removing Values # Question 1 def all_drop_test(all_drop): ''' INPUT all_drop - a pandas dataframe with all rows with missing values dropped. Prints statement related to the correctness of the solution of the dataframe ''' if all_drop.equals(s.all_drop): print("Nice job! That looks right!") else: print("That wasn't quite as expected. Try again, or take a look at the solution notebook if you get stuck.") # Question 2 def all_row_test(all_row): ''' INPUT all_row - a pandas dataframe with all rows that have every value as a missing value dropped. Prints statement related to the correctness of the solution of the dataframe ''' if all_row.equals(s.all_row): print("Nice job! That looks right!") else: print("That wasn't quite as expected. Try again, or take a look at the solution notebook if you get stuck.") # Question 3 def only3_drop_test(only3_drop): ''' INPUT all_row - a pandas dataframe with all rows that are missing a value in col3 Prints statement related to the correctness of the solution of the dataframe ''' if only3_drop.equals(s.only3_drop): print("Nice job! That looks right!") else: print("That wasn't quite as expected. Try again, or take a look at the solution notebook if you get stuck.") # Question 4 def only3or1_drop_test(only3or1_drop): ''' INPUT all_row - a pandas dataframe with all rows that are missing a value in col1 or col3 Prints statement related to the correctness of the solution of the dataframe ''' if only3or1_drop.equals(s.only3or1_drop): print("Nice job! That looks right!") else: print("That wasn't quite as expected. Try again, or take a look at the solution notebook if you get stuck.")
35.232143
118
0.683224
303
1,973
4.369637
0.231023
0.030211
0.048338
0.060423
0.737915
0.737915
0.717523
0.717523
0.717523
0.717523
0
0.012873
0.251901
1,973
55
119
35.872727
0.884146
0.36594
0
0.5
0
0.166667
0.456424
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0.333333
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
32db3a370fd1a9dce1b48cd9bd6688e06d26037f
109
py
Python
examples/webcam_mirror.py
VoIlAlex/cv2studio
26ea110c141813b05fe1269a3e26493febe63e4d
[ "MIT" ]
2
2019-10-31T06:17:48.000Z
2020-12-13T20:24:44.000Z
examples/webcam_mirror.py
VoIlAlex/cv2studio
26ea110c141813b05fe1269a3e26493febe63e4d
[ "MIT" ]
null
null
null
examples/webcam_mirror.py
VoIlAlex/cv2studio
26ea110c141813b05fe1269a3e26493febe63e4d
[ "MIT" ]
null
null
null
import cv2studio import cv2studio.components as components import cv2 app = cv2studio.App() app.main_loop()
15.571429
41
0.807339
15
109
5.8
0.533333
0.344828
0
0
0
0
0
0
0
0
0
0.041667
0.119266
109
6
42
18.166667
0.864583
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
5
32f073b1d33e361ef1b21031e24ddd18cf2537f0
35
py
Python
textgrocery/learner/__init__.py
wecoders/CloudNews
5536e1315a3152bc8a3f3bc5fdcde728fdfff342
[ "Apache-1.1" ]
1
2015-02-20T09:40:31.000Z
2015-02-20T09:40:31.000Z
textgrocery/learner/__init__.py
wecoders/CloudNews
5536e1315a3152bc8a3f3bc5fdcde728fdfff342
[ "Apache-1.1" ]
null
null
null
textgrocery/learner/__init__.py
wecoders/CloudNews
5536e1315a3152bc8a3f3bc5fdcde728fdfff342
[ "Apache-1.1" ]
null
null
null
from .learner import * del learner
11.666667
22
0.771429
5
35
5.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.171429
35
2
23
17.5
0.931034
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
1fe8c0a47a169bc6b1b4d3f8229770f1dd7e7777
127
py
Python
03_introduicing_lists/your_own_list.py
simonhoch/python_basics
4ecf12c074e641e3cdeb0a6690846eb9133f96af
[ "MIT" ]
null
null
null
03_introduicing_lists/your_own_list.py
simonhoch/python_basics
4ecf12c074e641e3cdeb0a6690846eb9133f96af
[ "MIT" ]
null
null
null
03_introduicing_lists/your_own_list.py
simonhoch/python_basics
4ecf12c074e641e3cdeb0a6690846eb9133f96af
[ "MIT" ]
null
null
null
mode_of_transportation = ['car', 'bicycle'] print (mode_of_transportation[1] + ' is better than ' + mode_of_transportation[0])
42.333333
82
0.748031
17
127
5.235294
0.647059
0.202247
0.674157
0
0
0
0
0
0
0
0
0.017699
0.110236
127
2
83
63.5
0.769912
0
0
0
0
0
0.204724
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1fed51d732445807f2be8468c588efbe22eaafc8
191
py
Python
services-pkg/src/hackaton/src/hackaton/nodes.py
Vourhey/hackaton
ac0d9a491b41d8fa73c1408f2047493c1c582925
[ "BSD-3-Clause" ]
null
null
null
services-pkg/src/hackaton/src/hackaton/nodes.py
Vourhey/hackaton
ac0d9a491b41d8fa73c1408f2047493c1c582925
[ "BSD-3-Clause" ]
null
null
null
services-pkg/src/hackaton/src/hackaton/nodes.py
Vourhey/hackaton
ac0d9a491b41d8fa73c1408f2047493c1c582925
[ "BSD-3-Clause" ]
null
null
null
from . import makeaskbid from . import publishtoblockchain def makeask_node(): makeaskbid.MakeAskBid().spin() def publish_node(): publishtoblockchain.PublishToBlockchain().spin()
17.363636
52
0.759162
18
191
7.944444
0.5
0.13986
0
0
0
0
0
0
0
0
0
0
0.136126
191
10
53
19.1
0.866667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
true
0
0.333333
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
1
1
0
1
0
1
0
0
5
1feec86b5afe4c994df1ed5a06663ccf277202c3
122
py
Python
src/daipecore/function/input_decorator_function_import_test/input_decorator_function_import_test.py
daipe-ai/daipe-core
aa205495fa6b464fa6078d17e439c60345ac99ea
[ "MIT" ]
1
2021-09-17T09:07:09.000Z
2021-09-17T09:07:09.000Z
src/daipecore/function/input_decorator_function_import_test/input_decorator_function_import_test.py
daipe-ai/daipe-core
aa205495fa6b464fa6078d17e439c60345ac99ea
[ "MIT" ]
2
2021-12-20T07:46:33.000Z
2022-02-24T07:02:05.000Z
src/daipecore/function/input_decorator_function_import_test/input_decorator_function_import_test.py
daipe-ai/daipe-core
aa205495fa6b464fa6078d17e439c60345ac99ea
[ "MIT" ]
null
null
null
from daipecore.function.input_decorator_function_import_test.test_notebook import load_data assert 165 == load_data(155)
30.5
91
0.868852
18
122
5.5
0.722222
0.161616
0
0
0
0
0
0
0
0
0
0.053097
0.07377
122
3
92
40.666667
0.823009
0
0
0
0
0
0
0
0
0
0
0
0.5
1
0
true
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
1
0
1
0
0
0
0
5
1ff0ce2b1d9578ee07c50596187da6016629fcc2
201
py
Python
selectel_dns_api/apis/__init__.py
nwton/fork_mdsina_selectel-dns-api
30b02260a3bf86e0fbbafad372292aafb13206ee
[ "Apache-2.0" ]
4
2017-04-29T18:08:07.000Z
2022-03-24T07:21:33.000Z
selectel_dns_api/apis/__init__.py
nwton/fork_mdsina_selectel-dns-api
30b02260a3bf86e0fbbafad372292aafb13206ee
[ "Apache-2.0" ]
2
2018-04-22T10:06:09.000Z
2019-10-28T08:28:14.000Z
selectel_dns_api/apis/__init__.py
nwton/fork_mdsina_selectel-dns-api
30b02260a3bf86e0fbbafad372292aafb13206ee
[ "Apache-2.0" ]
5
2017-12-05T20:37:58.000Z
2022-03-22T21:39:06.000Z
from __future__ import absolute_import # import apis into api package from .domains_api import DomainsApi from .ptr_api import PtrApi from .records_api import RecordsApi from .tags_api import TagsApi
25.125
38
0.840796
30
201
5.333333
0.533333
0.225
0
0
0
0
0
0
0
0
0
0
0.134328
201
7
39
28.714286
0.91954
0.139303
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
951aa28e360bc1e4dc75d3b7ba5b74f4ff182355
15,211
py
Python
ana/bnd.py
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
11
2020-07-05T02:39:32.000Z
2022-03-20T18:52:44.000Z
ana/bnd.py
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
null
null
null
ana/bnd.py
hanswenzel/opticks
b75b5929b6cf36a5eedeffb3031af2920f75f9f0
[ "Apache-2.0" ]
4
2020-09-03T20:36:32.000Z
2022-01-19T07:42:21.000Z
#!/usr/bin/env python # # Copyright (c) 2019 Opticks Team. All Rights Reserved. # # This file is part of Opticks # (see https://bitbucket.org/simoncblyth/opticks). # # 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. # """ :: In [13]: m0.data.shape Out[13]: (38, 2, 39, 4) # 38 materials, 2 groups, 39 wavelengths, 4 qwns in each group : 38 mats include 2 added ones: GlassSchottF2, MainH2OHale -> 36 standard ones ## huh m0.names shows that GlassSchottF2 appears in the middle, not at the tail ??? MainH2OHale is last In [14]: b0.data.shape Out[14]: (123, 4, 2, 39, 4) # 123 bnds, 4 matsur, 2 groups, 39 wavelengths, 4 qwns in each group In [15]: s0.data.shape # 49 surs include 4 added "perfect" ones that dont appear in bnds, so 49-4 = 44 standard ones Out[15]: (48, 2, 39, 4) In [17]: len(b0.bnd.surs) # includes 1 blank, so 44 surs occuring in bnd Out[17]: 45 In [18]: len(b0.bnd.mats) Out[18]: 36 In [55]: np.where( np.logical_or( rel < -0.02, rel > 0.02 )) ## 221/219168 off by more than 2% Out[55]: (array([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 13, 13, 13, 13, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27]), array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), ## all group zero, ie not GROUPVEL array([141, 142, 143, 144, 145, 145, 146, 146, 147, 147, 148, 148, 149, 149, 150, 150, 151, 152, 153, 154, 155, 288, 323, 324, 325, 326, 327, 328, 329, 330, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 653, 654, 655, 658, 659, 141, 142, 143, 144, 145, 145, 146, 146, 147, 147, 148, 148, 149, 149, 150, 150, 151, 152, 153, 154, 155, 288, 323, 324, 325, 326, 327, 328, 329, 330, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 653, 654, 655, 658, 659, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 141, 142, 143, 144, 145, 145, 146, 146, 147, 147, 148, 148, 149, 149, 150, 150, 151, 152, 153, 154, 155, 145, 146, 147, 148, 149, 150, 224, 225, 226, 228, 229, 263, 264, 265, 268, 269, 308, 733, 734, 738, 739, 124, 125, 126, 127, 128, 129, 130, 131, 124, 125, 126, 127, 128, 129, 130, 131, 124, 125, 126, 127, 128, 129, 130, 131, 124, 125, 126, 127, 128, 129, 130, 131, 733, 734, 738, 739, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 141, 142, 143, 144, 145, 145, 146, 146, 147, 147, 148, 148, 149, 149, 150, 150, 151, 152, 153, 154, 155]), array([1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1])) ## never 0, refractive index, mostly absorption and scattering lengths Material property min/max relative interpolation differences with 20nm domain step:: RINDEX ABSLEN RAYLEIGH REEMPROB GROUPVEL 0 GdDopedLS -0.0048 0.0053 -0.0096 0.0821 0.0000 0.0237 -0.0423 0.0032 -0.0125 0.0065 1 LiquidScintillator -0.0048 0.0053 -0.0100 0.0821 0.0000 0.0237 -0.0423 0.0032 -0.0125 0.0065 2 Acrylic -0.0046 0.0053 0.0000 0.0968 0.0000 0.0237 0.0000 0.0000 -0.0123 0.0064 3 MineralOil -0.0046 0.0053 -0.0083 0.0232 0.0000 0.0237 0.0000 0.0000 -0.0123 0.0063 4 Bialkali 0.0000 0.0000 -0.0396 0.0017 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 5 IwsWater -0.0001 0.0000 -0.0084 0.0254 0.0000 0.0000 0.0000 0.0000 -0.0006 0.0005 6 Water -0.0001 0.0000 -0.0084 0.0254 0.0000 0.0000 0.0000 0.0000 -0.0006 0.0005 7 DeadWater -0.0001 0.0000 -0.0084 0.0254 0.0000 0.0000 0.0000 0.0000 -0.0006 0.0005 8 OwsWater -0.0001 0.0000 -0.0084 0.0254 0.0000 0.0000 0.0000 0.0000 -0.0006 0.0005 9 ESR 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 10 OpaqueVacuum 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 11 Rock 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 12 Vacuum 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 13 Pyrex 0.0000 0.0000 -0.0396 0.0017 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 14 Air 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 15 GlassSchottF2 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 16 PPE 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 17 Aluminium 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 18 ADTableStainlessSteel 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 19 Foam 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 20 Nitrogen -0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 -0.0000 0.0000 21 NitrogenGas 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 22 Nylon 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 23 PVC 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 24 Tyvek 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 25 Bakelite 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 26 MixGas 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 27 Iron -0.0046 0.0053 0.0000 0.0968 0.0000 0.0237 0.0000 0.0000 -0.0123 0.0064 28 Teflon 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 29 UnstStainlessSteel 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 30 BPE 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 31 Ge_68 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 32 Co_60 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 33 C_13 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 34 Silver 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 35 RadRock 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 :: In [21]: dict(filter(lambda kv:kv[1]<299,zip(i1m.names,i1m.data[:,1,430-60,0]))) Out[21]: {'Acrylic': 192.77956, 'Bialkali': 205.61897, 'DeadWater': 217.83527, 'GdDopedLS': 194.5192, 'IwsWater': 217.83527, 'LiquidScintillator': 194.5192, 'MineralOil': 197.13411, 'OwsWater': 217.83527, 'Pyrex': 205.61897, 'Teflon': 192.77956, 'Water': 217.83527} """ import os, logging, numpy as np from collections import OrderedDict as odict log = logging.getLogger(__name__) from opticks.ana.base import opticks_main from opticks.ana.proplib import PropLib, Bnd idp_ = lambda _:os.path.expandvars("$IDPATH/%s" % _ ) if __name__ == '__main__': ok = opticks_main() # from old geocache without groupvel setup m0 = PropLib("GMaterialLib") s0 = PropLib("GSurfaceLib") b0 = PropLib("GBndLib") # persisted postcache modified bnd buffer including groupvel calc, identity wavelengths 20nm steps b1 = PropLib("GBndLib", data="$TMP/InterpolationTest/CInterpolationTest_identity.npy" ) b2 = PropLib("GBndLib", data="$TMP/InterpolationTest/OInterpolationTest_identity.npy" ) assert np.allclose( b1.data, b2.data ) # after unset alignment # persisted postcache groupvel calc, interpol wavelengths 1nm steps i1 = PropLib("GBndLib", data="$TMP/InterpolationTest/CInterpolationTest_interpol.npy" ) i2 = PropLib("GBndLib", data="$TMP/InterpolationTest/OInterpolationTest_interpol.npy" ) assert np.allclose( i1.data[:,:,:,::20,:], i2.data[:,:,:,::20,:] ) == True # plucking identity wavelengths from the interpol ones assert np.allclose( i1.data[:,:,:,::20,:], b1.data ) assert np.allclose( i2.data[:,:,:,::20,:], b2.data ) # collapse material duplication for simpler comparisons order = m0.names b0m = b0.as_mlib(order=order) b1m = b1.as_mlib(order=order) b2m = b2.as_mlib(order=order) i1m = i1.as_mlib(order=order) i2m = i2.as_mlib(order=order) assert np.all( i1m.names == i2m.names ) matnames = i1m.names assert np.all( b0m.data == m0.data[~np.logical_or(m0.names == 'GlassSchottF2', m0.names == 'MainH2OHale')] ) assert np.all( b1m.data == b2m.data ) ## identity match assert np.all( i1m.data[:,:,::20,:] == i2m.data[:,:,::20,:] ) ## on the raster, where there is no interpolation to do, get perfect match avg = (i1m.data + i2m.data)/2.0 dif = i1m.data - i2m.data # absolute difference # signed relative difference of 36*2*761*4 = 219168 property values rel = np.where( np.logical_or(avg < 1e-6, dif == 0), 0, dif/avg ) rd = np.zeros( (len(rel), 2, 4, 2), dtype=np.float32 ) rd[:,:,:,0] = np.amin(rel, axis=2) rd[:,:,:,1] = np.amax(rel, axis=2) print "".join(["%2s %30s " % ("","")] + map(lambda plab:" %21s " % plab, PropLib.M_LABELS )) for i in range(len(rd)): labl = ["%2d %30s " % ( i, matnames[i] )] rnge = map(lambda mimx:" %10.4f %10.4f " % ( float(mimx[0]), float(mimx[1])) , rd[i].reshape(-1,2)[:5] ) print "".join(labl + rnge) Gd,LS,Ac,MO = 0,1,2,3 gvel = i1m.data[(Gd,Ac,LS,Ac,MO),1,430-60,0] gvel2 = i1m.data[(Gd,LS,Ac,MO,Ac),1,430-60,0] gvel3 = i1m.data[(Gd,LS,Ac,LS,Ac),1,430-60,0] dist = np.array([0,3000-5,3000+5,4000-5,4000+5,5000-5], dtype=np.float32) # tconcentric radii ddif = np.diff(dist) tdif = ddif/gvel tabs = np.cumsum(tdif) + 0.1 tdif2 = ddif/gvel2 tabs2 = np.cumsum(tdif2) + 0.1 tdif3 = ddif/gvel3 tabs3 = np.cumsum(tdif3) + 0.1 print "gvel: %r " % gvel print "dist: %r " % dist print "ddif: %r " % ddif print "tdif: %r " % tdif print "tabs: %r " % tabs print "gvel2: %r " % gvel2 print "tdif2: %r " % tdif2 print "tabs2: %r " % tabs2 print "gvel3: %r " % gvel3 print "tdif3: %r " % tdif3 print "tabs3: %r " % tabs3
66.134783
203
0.471041
2,533
15,211
2.815634
0.184366
0.209619
0.228828
0.146383
0.489624
0.47378
0.435642
0.431155
0.431155
0.42106
0
0.390605
0.387023
15,211
229
204
66.423581
0.374303
0.079219
0
0
0
0
0.154409
0.07188
0
0
0
0
0.125
0
null
null
0
0.0625
null
null
0.203125
0
0
0
null
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
20f7af9d9d8757c10e92d17ad1c3a2c7a3ce666c
35
py
Python
Calendario.py
pdamill/python
f5518860f2072bda36bab56ecfbbe3c3c31a0579
[ "MIT" ]
null
null
null
Calendario.py
pdamill/python
f5518860f2072bda36bab56ecfbbe3c3c31a0579
[ "MIT" ]
null
null
null
Calendario.py
pdamill/python
f5518860f2072bda36bab56ecfbbe3c3c31a0579
[ "MIT" ]
null
null
null
print(calendar.month(year, month))
17.5
34
0.771429
5
35
5.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.057143
35
1
35
35
0.818182
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
20f834ae14968a88c57061754aa124e9ff3f103b
17
py
Python
props/__init__.py
camsdu59/Zelda_BlenderGame
0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21
[ "FSFAP" ]
27
2016-01-13T14:16:13.000Z
2022-01-03T05:38:44.000Z
props/__init__.py
camsdu59/Zelda_BlenderGame
0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21
[ "FSFAP" ]
1
2017-04-29T00:51:26.000Z
2017-04-29T00:54:43.000Z
props/__init__.py
camsdu59/Zelda_BlenderGame
0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21
[ "FSFAP" ]
14
2016-01-20T21:02:37.000Z
2020-07-19T05:47:20.000Z
from . import box
17
17
0.764706
3
17
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.176471
17
1
17
17
0.928571
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
1f26faedcf9c0d984fdcb8318fdb76dd1ad798c8
346
py
Python
python/anyascii/_data/_308.py
casept/anyascii
d4f426b91751254b68eaa84c6cd23099edd668e6
[ "ISC" ]
null
null
null
python/anyascii/_data/_308.py
casept/anyascii
d4f426b91751254b68eaa84c6cd23099edd668e6
[ "ISC" ]
null
null
null
python/anyascii/_data/_308.py
casept/anyascii
d4f426b91751254b68eaa84c6cd23099edd668e6
[ "ISC" ]
null
null
null
b=' Jian Gang Keng Yao Pai Lu Xiao Hui Lai Wo Chan Ben Ying Qi Che Lu Nao Shu Su Wu Ying Lou Wei Ning Ji Xian Tui Ji Luan'
346
346
0.260116
30
346
3
0.9
0
0
0
0
0
0
0
0
0
0
0
0.731214
346
1
346
346
0.967742
0
0
0
0
1
0.985591
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
1f2d515ddc0e6b4dbfb818cad540afe26af8de6f
155
py
Python
game_objects/player.py
magikitty/survival
4e8624b8e9672779587fe5a6e83fbc920a91acf0
[ "MIT" ]
null
null
null
game_objects/player.py
magikitty/survival
4e8624b8e9672779587fe5a6e83fbc920a91acf0
[ "MIT" ]
null
null
null
game_objects/player.py
magikitty/survival
4e8624b8e9672779587fe5a6e83fbc920a91acf0
[ "MIT" ]
null
null
null
import utilities.constants as constants import utilities.lists as lists class Player(object): name = "" actions = lists.pc_actions points = 0
19.375
39
0.722581
20
155
5.55
0.65
0.27027
0
0
0
0
0
0
0
0
0
0.00813
0.206452
155
7
40
22.142857
0.894309
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
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
1f66b04b6b3ba847b3c163b5de5d425dfd563374
88
py
Python
jaxmapp/env/__init__.py
omron-sinicx/jaxmapp
3c11c5b0865bdc29a89186a79b55649a483da68f
[ "MIT" ]
15
2022-02-08T02:18:02.000Z
2022-03-10T00:54:11.000Z
jaxmapp/env/__init__.py
omron-sinicx/jaxmapp
3c11c5b0865bdc29a89186a79b55649a483da68f
[ "MIT" ]
1
2022-02-22T11:53:20.000Z
2022-02-22T11:53:20.000Z
jaxmapp/env/__init__.py
omron-sinicx/jaxmapp
3c11c5b0865bdc29a89186a79b55649a483da68f
[ "MIT" ]
1
2022-03-11T11:40:54.000Z
2022-03-11T11:40:54.000Z
from .instance import Instance, InstanceGeneratorCircleObs, InstanceGeneratorImageInput
44
87
0.897727
6
88
13.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.068182
88
1
88
88
0.963415
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
1f75dacda7e5a360d7f739c34b81ed87cf3f3258
137
py
Python
ctypesgencore/printer_python/test.py
luzfcb/ctypesgen
80dae4adcbec8ad5c67908767558d7f39b070903
[ "BSD-3-Clause" ]
3
2015-01-04T08:31:45.000Z
2015-02-09T21:18:49.000Z
ctypesgencore/printer_python/test.py
luzfcb/ctypesgen
80dae4adcbec8ad5c67908767558d7f39b070903
[ "BSD-3-Clause" ]
1
2016-06-03T11:38:54.000Z
2016-10-14T15:28:52.000Z
ctypesgencore/printer_python/test.py
luzfcb/ctypesgen
80dae4adcbec8ad5c67908767558d7f39b070903
[ "BSD-3-Clause" ]
3
2015-04-11T18:25:35.000Z
2018-10-19T21:46:10.000Z
""" ctypesgencore.printer.printer imports this module so that it can find the path to defaulttemplate.py and defaultloader.py. """ pass
19.571429
78
0.781022
20
137
5.35
0.9
0
0
0
0
0
0
0
0
0
0
0
0.138686
137
6
79
22.833333
0.90678
0.890511
0
0
0
0
0
0
0
0
0
0
0
1
0
true
1
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
2f062f06ed863943e32b4911b5de47dd58ce35d3
39
py
Python
tests/graph/__init__.py
gustavgransbo/networkg
b4bccdbec10308f91bd40a2ec3859a84be206ba8
[ "MIT" ]
null
null
null
tests/graph/__init__.py
gustavgransbo/networkg
b4bccdbec10308f91bd40a2ec3859a84be206ba8
[ "MIT" ]
null
null
null
tests/graph/__init__.py
gustavgransbo/networkg
b4bccdbec10308f91bd40a2ec3859a84be206ba8
[ "MIT" ]
null
null
null
"""Test cases for the graph module."""
19.5
38
0.666667
6
39
4.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.153846
39
1
39
39
0.787879
0.820513
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
2f67e39e3fc8d4dc6d06463277bb50a46221deea
27
py
Python
tag_parser/models.py
ephes/django-tag-parser
96f965b472af80c5bd7976ca0a9a46fba4bb8a90
[ "Apache-2.0" ]
18
2015-06-22T03:01:13.000Z
2021-04-29T14:21:39.000Z
tag_parser/models.py
ephes/django-tag-parser
96f965b472af80c5bd7976ca0a9a46fba4bb8a90
[ "Apache-2.0" ]
4
2017-08-16T03:50:16.000Z
2017-08-22T05:41:04.000Z
venv/lib/python2.7/site-packages/tag_parser/models.py
steventimberman/masterDebater
32b17552894b2c54a5f57c36257f4b6bc8846711
[ "MIT" ]
6
2015-04-10T12:02:16.000Z
2020-01-22T08:19:57.000Z
# For Django 1.4/1.5 tests
13.5
26
0.666667
7
27
2.571429
0.857143
0
0
0
0
0
0
0
0
0
0
0.181818
0.185185
27
1
27
27
0.636364
0.888889
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
85d3c3ba8eddc0831fe3a9a1ca5a6c3189f4a0d6
9,553
py
Python
messenger/migrations/0005_auto_20190829_1530.py
pythonbrad/social_network
80a2633765c677bf150bd4a9c3fd2929610e7803
[ "MIT" ]
2
2020-05-04T13:25:52.000Z
2022-02-05T14:40:22.000Z
messenger/migrations/0005_auto_20190829_1530.py
pythonbrad/social_network
80a2633765c677bf150bd4a9c3fd2929610e7803
[ "MIT" ]
2
2019-09-02T00:35:47.000Z
2019-09-03T11:18:17.000Z
messenger/migrations/0005_auto_20190829_1530.py
pythonbrad/social_network
80a2633765c677bf150bd4a9c3fd2929610e7803
[ "MIT" ]
1
2019-09-02T10:45:18.000Z
2019-09-02T10:45:18.000Z
# Generated by Django 2.0.13 on 2019-08-29 14:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import messenger.models.utils class Migration(migrations.Migration): dependencies = [ ('messenger', '0004_auto_20190829_1214'), ] operations = [ migrations.AlterField( model_name='article', name='author', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='article_authors', to=settings.AUTH_USER_MODEL, verbose_name='authors'), ), migrations.AlterField( model_name='article', name='comments', field=models.ManyToManyField(related_name='article_comments', to='messenger.Comment', verbose_name='comments'), ), migrations.AlterField( model_name='article', name='contains', field=models.TextField(max_length=5000, verbose_name='contains'), ), migrations.AlterField( model_name='article', name='date_created', field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date of creation'), ), migrations.AlterField( model_name='article', name='likers', field=models.ManyToManyField(related_name='article_likers', to=settings.AUTH_USER_MODEL, verbose_name='likers'), ), migrations.AlterField( model_name='article', name='photo', field=models.ImageField(blank=True, upload_to=messenger.models.utils.user_directory_path, verbose_name='photo'), ), migrations.AlterField( model_name='comment', name='article', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='commented_article', to='messenger.Article', verbose_name='article'), ), migrations.AlterField( model_name='comment', name='author', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comment_authors', to=settings.AUTH_USER_MODEL, verbose_name='authors'), ), migrations.AlterField( model_name='comment', name='contains', field=models.TextField(max_length=5000, verbose_name='contains'), ), migrations.AlterField( model_name='comment', name='date_created', field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date of creation'), ), migrations.AlterField( model_name='comment', name='likers', field=models.ManyToManyField(related_name='comment_likers', to=settings.AUTH_USER_MODEL, verbose_name='likers'), ), migrations.AlterField( model_name='comment', name='photo', field=models.ImageField(blank=True, upload_to=messenger.models.utils.user_directory_path, verbose_name='photo'), ), migrations.AlterField( model_name='contact', name='date_last_message', field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date of last message'), ), migrations.AlterField( model_name='contact', name='own', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contact_owns', to=settings.AUTH_USER_MODEL, verbose_name='owns'), ), migrations.AlterField( model_name='contact', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contact_users', to=settings.AUTH_USER_MODEL, verbose_name='users'), ), migrations.AlterField( model_name='friendship', name='date_created', field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date of creation'), ), migrations.AlterField( model_name='friendship', name='is_valided', field=models.BooleanField(default=False, verbose_name='is valided?'), ), migrations.AlterField( model_name='friendship', name='message', field=models.CharField(default='Hello, I would be your friend', max_length=100, verbose_name='message'), ), migrations.AlterField( model_name='friendship', name='receiver', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='friendship_receivers', to=settings.AUTH_USER_MODEL, verbose_name='receivers'), ), migrations.AlterField( model_name='friendship', name='sender', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='friendship_senders', to=settings.AUTH_USER_MODEL, verbose_name='senders'), ), migrations.AlterField( model_name='message', name='contains', field=models.TextField(max_length=5000, verbose_name='contains'), ), migrations.AlterField( model_name='message', name='date_created', field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date of creation'), ), migrations.AlterField( model_name='message', name='date_received', field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date of reception'), ), migrations.AlterField( model_name='message', name='photo', field=models.ImageField(blank=True, upload_to=messenger.models.utils.user_directory_path, verbose_name='photo'), ), migrations.AlterField( model_name='message', name='received', field=models.BooleanField(default=False, verbose_name='is received?'), ), migrations.AlterField( model_name='message', name='receiver', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='message_receivers', to=settings.AUTH_USER_MODEL, verbose_name='receivers'), ), migrations.AlterField( model_name='message', name='sender', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='message_senders', to=settings.AUTH_USER_MODEL, verbose_name='senders'), ), migrations.AlterField( model_name='notification', name='date_created', field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date of creation'), ), migrations.AlterField( model_name='notification', name='message', field=models.CharField(max_length=100, verbose_name='message'), ), migrations.AlterField( model_name='notification', name='received', field=models.BooleanField(default=False, verbose_name='received?'), ), migrations.AlterField( model_name='notification', name='receiver', field=models.ForeignKey(db_constraint=False, on_delete=django.db.models.deletion.CASCADE, related_name='notification_receivers', to=settings.AUTH_USER_MODEL, verbose_name='receivers'), ), migrations.AlterField( model_name='user', name='contacts', field=models.ManyToManyField(related_name='user_contacts', to='messenger.Contact', verbose_name='contacts'), ), migrations.AlterField( model_name='user', name='date_created', field=models.DateField(default=django.utils.timezone.now, verbose_name='date of creation'), ), migrations.AlterField( model_name='user', name='date_of_birth', field=models.DateField(verbose_name='date of birth'), ), migrations.AlterField( model_name='user', name='date_updated', field=models.DateField(default=django.utils.timezone.now, verbose_name='date of update'), ), migrations.AlterField( model_name='user', name='email', field=models.EmailField(max_length=254, verbose_name='email'), ), migrations.AlterField( model_name='user', name='first_name', field=models.CharField(blank=True, max_length=50, verbose_name='first name'), ), migrations.AlterField( model_name='user', name='last_name', field=models.CharField(blank=True, max_length=50, verbose_name='last name'), ), migrations.AlterField( model_name='user', name='no_media', field=models.BooleanField(default=False, verbose_name='no media'), ), migrations.AlterField( model_name='user', name='photo', field=models.ImageField(blank=True, default='no_image.png', upload_to=messenger.models.utils.user_directory_path, verbose_name='photo'), ), migrations.AlterField( model_name='user', name='username', field=models.CharField(max_length=50, primary_key=True, serialize=False, verbose_name='username'), ), ]
42.838565
196
0.618235
955
9,553
5.990576
0.120419
0.143332
0.179164
0.207831
0.858766
0.827478
0.698479
0.620696
0.611956
0.58329
0
0.008374
0.262431
9,553
222
197
43.031532
0.803577
0.004815
0
0.740741
1
0
0.143819
0.004734
0
0
0
0
0
1
0
false
0
0.023148
0
0.037037
0
0
0
0
null
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
85fa62e5b974d9730deb1119f0de67eb2ddb2dc1
75
py
Python
mogwai/metrics/__init__.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
24
2020-11-20T19:10:23.000Z
2022-03-13T13:26:56.000Z
mogwai/metrics/__init__.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
10
2020-10-21T21:42:14.000Z
2020-11-18T07:57:30.000Z
mogwai/metrics/__init__.py
joshim5/mogwai
917fe5b2dea9c3adc3a3d1dfe41ae33c3ae86f55
[ "BSD-3-Clause" ]
7
2020-12-27T00:44:18.000Z
2021-11-07T05:16:49.000Z
from .metrics import contact_auc, precision_at_cutoff, precisions_in_range
37.5
74
0.88
11
75
5.545455
1
0
0
0
0
0
0
0
0
0
0
0
0.08
75
1
75
75
0.884058
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
c80545e8ea2de23c1c5f1ca7a948c59ab1b375d6
19
py
Python
thirdFile.py
Eliza1107/cs3240-labdemo
a5ea31aedd43376eb89bc8ac0034b047cf8f9cf9
[ "MIT" ]
null
null
null
thirdFile.py
Eliza1107/cs3240-labdemo
a5ea31aedd43376eb89bc8ac0034b047cf8f9cf9
[ "MIT" ]
null
null
null
thirdFile.py
Eliza1107/cs3240-labdemo
a5ea31aedd43376eb89bc8ac0034b047cf8f9cf9
[ "MIT" ]
null
null
null
print("third file")
19
19
0.736842
3
19
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.052632
19
1
19
19
0.777778
0
0
0
0
0
0.5
0
0
0
0
0
0
1
0
true
0
0
0
0
1
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
c808f2b2c8f83ae25cd05b785593db4c5f1405db
263
py
Python
logdispatchr/formatters.py
paulollivier/logdispatchr
0f50477a0cd47e9d54cacd13b11810b796bffe72
[ "MIT" ]
null
null
null
logdispatchr/formatters.py
paulollivier/logdispatchr
0f50477a0cd47e9d54cacd13b11810b796bffe72
[ "MIT" ]
2
2016-08-31T14:21:51.000Z
2021-03-25T21:47:05.000Z
logdispatchr/formatters.py
paulollivier/logdispatchr
0f50477a0cd47e9d54cacd13b11810b796bffe72
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- def get_formatter(formater): return None class BasicFormater(object): def __init__(self, format_string): self.format_string = format_string def format(self, **data): return self.format_string.format(**data)
18.785714
48
0.669202
32
263
5.21875
0.53125
0.287425
0.287425
0.263473
0
0
0
0
0
0
0
0.004785
0.205323
263
13
49
20.230769
0.794258
0.076046
0
0
0
0
0
0
0
0
0
0
0
1
0.428571
false
0
0
0.285714
0.857143
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
1
0
0
0
5