project_name
string
class_name
string
class_modifiers
string
class_implements
int64
class_extends
int64
function_name
string
function_body
string
cyclomatic_complexity
int64
NLOC
int64
num_parameter
int64
num_token
int64
num_variable
int64
start_line
int64
end_line
int64
function_index
int64
function_params
string
function_variable
string
function_return_type
string
function_body_line_type
string
function_num_functions
int64
function_num_lines
int64
outgoing_function_count
int64
outgoing_function_names
string
incoming_function_count
int64
incoming_function_names
string
lexical_representation
string
pasteorg_pastescript
PermissionSpec
public
0
1
__init__
def __init__(self, path):self.path = path
1
2
2
12
0
420
421
345
self
[]
None
{"Assign": 1}
0
2
0
[]
8,182
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"]
The function (__init__) defined within the public class called PermissionSpec, that inherit another class.The function start at line 420 and ends at 421. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [345.0] and does not return any value. It has 8182.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"].
pasteorg_pastescript
_Rule
protected
0
1
noexists
def noexists(self, path, checker):checker.noexists(path)
1
2
3
15
0
425
426
425
self
[]
Returns
{"Return": 1}
0
2
0
[]
0
[]
The function (noexists) defined within the protected class called _Rule, that inherit another class.The function start at line 425 and ends at 426. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [425.0], and this function return a value..
pasteorg_pastescript
PermissionSpec
public
0
1
check
def check(self, path, checker):checker.check(path)
1
2
3
15
0
428
429
428
self
[]
None
{"Assign": 1, "Expr": 1}
2
3
2
["_Check", "self.traverse"]
158
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.test.test_functional_py.test_calc_cutoff_from_reverse_sorted_readlength_counts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.test.test_functional_py.test_calc_cutoff_from_reverse_sorted_readlength_counts_raises", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3628120_git_multimail_git_multimail.git_multimail.git_multimail_py.StaticRecipientsEnvironmentMixin.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.messaging.endpoints_py.AddressErrorTests.receiverErrorTest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.messaging.endpoints_py.AddressErrorTests.senderErrorTest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.models_py.TranslatableModel.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664985_striglia_pyramid_swagger.pyramid_swagger.load_schema_py.SchemaValidator.from_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675335_tweecode_twine.passagewidget_py.PassageWidget.verifyPassage", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677991_obriencj_python_javatools.javatools.classdiff_py.JavaClassReport.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677991_obriencj_python_javatools.javatools.distdiff_py.DistTextChange.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689623_pycqa_pydocstyle.src.pydocstyle.cli_py.run_pydocstyle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689623_pycqa_pydocstyle.src.tests.test_definitions_py.test_complex_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3705207_zopefoundation_persistent.src.persistent.tests.test_timestamp_py.TimeStampTestsMixin.test_comparisons_to_non_timestamps", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712295_dalibo_temboard_agent.temboardagent.plugins.monitoring.probes_py.probe_sessions.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_f_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_format_string_not_using_locals", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_incorrect_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string_access", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string_numbers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_old_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_ignore_py.check_ignore", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_attribute_access", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_definitions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_double_import"]
The function (check) defined within the public class called PermissionSpec, that inherit another class.The function start at line 428 and ends at 429. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [428.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["_Check", "self.traverse"], It has 158.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.test.test_functional_py.test_calc_cutoff_from_reverse_sorted_readlength_counts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.test.test_functional_py.test_calc_cutoff_from_reverse_sorted_readlength_counts_raises", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3628120_git_multimail_git_multimail.git_multimail.git_multimail_py.StaticRecipientsEnvironmentMixin.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.messaging.endpoints_py.AddressErrorTests.receiverErrorTest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.messaging.endpoints_py.AddressErrorTests.senderErrorTest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.models_py.TranslatableModel.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664985_striglia_pyramid_swagger.pyramid_swagger.load_schema_py.SchemaValidator.from_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675335_tweecode_twine.passagewidget_py.PassageWidget.verifyPassage", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677991_obriencj_python_javatools.javatools.classdiff_py.JavaClassReport.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677991_obriencj_python_javatools.javatools.distdiff_py.DistTextChange.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689623_pycqa_pydocstyle.src.pydocstyle.cli_py.run_pydocstyle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689623_pycqa_pydocstyle.src.tests.test_definitions_py.test_complex_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3705207_zopefoundation_persistent.src.persistent.tests.test_timestamp_py.TimeStampTestsMixin.test_comparisons_to_non_timestamps", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712295_dalibo_temboard_agent.temboardagent.plugins.monitoring.probes_py.probe_sessions.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_f_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_format_string_not_using_locals", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_incorrect_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string_access", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string_numbers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_old_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_ignore_py.check_ignore", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_attribute_access", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_definitions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_double_import"].
pasteorg_pastescript
_Rule
protected
0
1
noexists
def noexists(self, path, checker):pass
1
2
3
10
0
433
434
433
self
[]
Returns
{"Return": 1}
0
2
0
[]
0
[]
The function (noexists) defined within the protected class called _Rule, that inherit another class.The function start at line 433 and ends at 434. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [433.0], and this function return a value..
pasteorg_pastescript
PermissionSpec
public
0
1
check
def check(self, path, checker):checker.check(path)
1
2
3
15
0
436
437
428
self
[]
None
{"Assign": 1, "Expr": 1}
2
3
2
["_Check", "self.traverse"]
158
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.test.test_functional_py.test_calc_cutoff_from_reverse_sorted_readlength_counts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.test.test_functional_py.test_calc_cutoff_from_reverse_sorted_readlength_counts_raises", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3628120_git_multimail_git_multimail.git_multimail.git_multimail_py.StaticRecipientsEnvironmentMixin.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.messaging.endpoints_py.AddressErrorTests.receiverErrorTest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.messaging.endpoints_py.AddressErrorTests.senderErrorTest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.models_py.TranslatableModel.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664985_striglia_pyramid_swagger.pyramid_swagger.load_schema_py.SchemaValidator.from_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675335_tweecode_twine.passagewidget_py.PassageWidget.verifyPassage", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677991_obriencj_python_javatools.javatools.classdiff_py.JavaClassReport.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677991_obriencj_python_javatools.javatools.distdiff_py.DistTextChange.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689623_pycqa_pydocstyle.src.pydocstyle.cli_py.run_pydocstyle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689623_pycqa_pydocstyle.src.tests.test_definitions_py.test_complex_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3705207_zopefoundation_persistent.src.persistent.tests.test_timestamp_py.TimeStampTestsMixin.test_comparisons_to_non_timestamps", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712295_dalibo_temboard_agent.temboardagent.plugins.monitoring.probes_py.probe_sessions.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_f_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_format_string_not_using_locals", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_incorrect_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string_access", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string_numbers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_old_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_ignore_py.check_ignore", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_attribute_access", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_definitions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_double_import"]
The function (check) defined within the public class called PermissionSpec, that inherit another class.The function start at line 436 and ends at 437. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [428.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["_Check", "self.traverse"], It has 158.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.test.test_functional_py.test_calc_cutoff_from_reverse_sorted_readlength_counts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.test.test_functional_py.test_calc_cutoff_from_reverse_sorted_readlength_counts_raises", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3628120_git_multimail_git_multimail.git_multimail.git_multimail_py.StaticRecipientsEnvironmentMixin.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.messaging.endpoints_py.AddressErrorTests.receiverErrorTest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.messaging.endpoints_py.AddressErrorTests.senderErrorTest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.models_py.TranslatableModel.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664985_striglia_pyramid_swagger.pyramid_swagger.load_schema_py.SchemaValidator.from_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675335_tweecode_twine.passagewidget_py.PassageWidget.verifyPassage", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677991_obriencj_python_javatools.javatools.classdiff_py.JavaClassReport.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677991_obriencj_python_javatools.javatools.distdiff_py.DistTextChange.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689623_pycqa_pydocstyle.src.pydocstyle.cli_py.run_pydocstyle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689623_pycqa_pydocstyle.src.tests.test_definitions_py.test_complex_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3705207_zopefoundation_persistent.src.persistent.tests.test_timestamp_py.TimeStampTestsMixin.test_comparisons_to_non_timestamps", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712295_dalibo_temboard_agent.temboardagent.plugins.monitoring.probes_py.probe_sessions.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_f_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_format_string_not_using_locals", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_incorrect_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string_access", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_new_format_string_numbers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_format_strings_py.test_old_format_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_ignore_py.check_ignore", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_attribute_access", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_definitions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717448_jendrikseipp_vulture.tests.test_imports_py.test_double_import"].
pasteorg_pastescript
public
public
0
0
cpwsgi_server
def cpwsgi_server(app, global_conf=None, host='127.0.0.1', port=None,ssl_pem=None, protocol_version=None, numthreads=None,server_name=None, max=None, request_queue_size=None,timeout=None):"""Serves the specified WSGI app via CherryPyWSGIServer.``app``The WSGI 'application callable'; multiple WSGI applicationsmay be passed as (script_name, callable) pairs.``host``This is the ipaddress to bind to (or a hostname if yournameserver is properly configured).This defaults to127.0.0.1, which is not a public interface.``port``The port to run on, defaults to 8080 for HTTP, or 4443 forHTTPS. This can be a string or an integer value.``ssl_pem``This an optional SSL certificate file (via OpenSSL) You cangenerate a self-signed test PEM certificate file as follows:$ openssl genrsa 1024 > host.key$ chmod 400 host.key$ openssl req -new -x509 -nodes -sha1 -days 365\\-key host.key > host.cert$ cat host.cert host.key > host.pem$ chmod 400 host.pem``protocol_version``The protocol used by the server, by default ``HTTP/1.1``.``numthreads``The number of worker threads to create.``server_name``The string to set for WSGI's SERVER_NAME environ entry.``max``The maximum number of queued requests. (defaults to -1 = nolimit).``request_queue_size``The 'backlog' argument to socket.listen(); specifies themaximum number of queued connections.``timeout``The timeout in seconds for accepted connections."""is_ssl = Falseif ssl_pem:port = port or 4443is_ssl = Trueif not port:if ':' in host:host, port = host.split(':', 1)else:port = 8080bind_addr = (host, int(port))kwargs = {}for var_name in ('numthreads', 'max', 'request_queue_size', 'timeout'):var = locals()[var_name]if var is not None:kwargs[var_name] = int(var)server = wsgiserver.CherryPyWSGIServer(bind_addr, app, server_name=server_name, **kwargs)if is_ssl:if builtin:server.ssl_module = 'builtin'server.ssl_adapter = BuiltinSSLAdapter(ssl_pem, ssl_pem)else:server.ssl_certificate = server.ssl_private_key = ssl_pemif protocol_version:server.protocol = protocol_versiontry:protocol = is_ssl and 'https' or 'http'if host == '0.0.0.0':print('serving on 0.0.0.0:%s view at %s://127.0.0.1:%s' % \(port, protocol, port))else:print("serving on %s://%s:%s" % (protocol, host, port))server.start()except (KeyboardInterrupt, SystemExit):server.stop()return server
14
40
11
253
7
20
121
20
app,global_conf,host,port,ssl_pem,protocol_version,numthreads,server_name,max,request_queue_size,timeout
['protocol', 'is_ssl', 'kwargs', 'port', 'server', 'var', 'bind_addr']
Returns
{"Assign": 15, "Expr": 5, "For": 1, "If": 8, "Return": 1, "Try": 1}
10
102
10
["host.split", "int", "locals", "int", "wsgiserver.CherryPyWSGIServer", "BuiltinSSLAdapter", "print", "print", "server.start", "server.stop"]
0
[]
The function (cpwsgi_server) defined within the public class called public.The function start at line 20 and ends at 121. It contains 40 lines of code and it has a cyclomatic complexity of 14. It takes 11 parameters, represented as [20.0], and this function return a value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["host.split", "int", "locals", "int", "wsgiserver.CherryPyWSGIServer", "BuiltinSSLAdapter", "print", "print", "server.start", "server.stop"].
pasteorg_pastescript
BadCommand
public
0
1
__init__
def __init__(self, message, exit_code=2):self.message = messageself.exit_code = exit_codeException.__init__(self, message)
1
4
3
29
0
24
27
24
self,message,exit_code
[]
None
{"Assign": 2, "Expr": 1}
1
4
1
["Exception.__init__"]
8,182
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"]
The function (__init__) defined within the public class called BadCommand, that inherit another class.The function start at line 24 and ends at 27. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [24.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["Exception.__init__"], It has 8182.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"].
pasteorg_pastescript
BadCommand
public
0
1
_get_message
def _get_message(self):"""Getter for 'message'; needed only to override deprecationin BaseException."""return self.__message
1
2
1
10
0
29
32
29
self
[]
Returns
{"Expr": 1, "Return": 1}
0
4
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3695170_m_o_a_t_distmqtt.moat.mqtt._main_py.do_pub"]
The function (_get_message) defined within the public class called BadCommand, that inherit another class.The function start at line 29 and ends at 32. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3695170_m_o_a_t_distmqtt.moat.mqtt._main_py.do_pub"].
pasteorg_pastescript
BadCommand
public
0
1
_set_message
def _set_message(self, value):"""Setter for 'message'; needed only to override deprecationin BaseException."""self.__message = value
1
2
2
13
0
34
37
34
self,value
[]
None
{"Assign": 1, "Expr": 1}
0
4
0
[]
0
[]
The function (_set_message) defined within the public class called BadCommand, that inherit another class.The function start at line 34 and ends at 37. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [34.0] and does not return any value..
pasteorg_pastescript
public
public
0
0
run
def run(args=None):if (not args andlen(sys.argv) >= 2and os.environ.get('_') and sys.argv[0] != os.environ['_']and os.environ['_'] == sys.argv[1]):# probably it's an exe executionargs = ['exe', os.environ['_']] + sys.argv[2:]if args is None:args = sys.argv[1:]options, args = parser.parse_args(args)options.base_parser = parsersystem_plugins.extend(options.plugins or [])commands = get_commands()if options.do_help:args = ['help'] + argsif not args:print('Usage: %s COMMAND' % sys.argv[0])args = ['help']command_name = args[0]if command_name not in commands:command = NotFoundCommandelse:command = commands[command_name].load()invoke(command, command_name, options, args[1:])
11
23
1
197
4
73
96
73
args
['commands', 'args', 'command', 'command_name']
None
{"Assign": 10, "Expr": 3, "If": 5}
8
24
8
["len", "os.environ.get", "parser.parse_args", "system_plugins.extend", "get_commands", "print", "load", "invoke"]
668
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_directories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_project_to_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.checkout_latest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.dump_db", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.files_are_different", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.install_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.run_migrations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.v1_static", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.landscape_py.LandscapeInstall._do_install_existing_maas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.multi_py.MultiInstall.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController._save_maas_creds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.docs.conf_py.ReleasesTree.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runOneBasic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runSome"]
The function (run) defined within the public class called public.The function start at line 73 and ends at 96. It contains 23 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value. It declares 8.0 functions, It has 8.0 functions called inside which are ["len", "os.environ.get", "parser.parse_args", "system_plugins.extend", "get_commands", "print", "load", "invoke"], It has 668.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_directories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_project_to_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.checkout_latest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.dump_db", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.files_are_different", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.install_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.run_migrations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.v1_static", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.landscape_py.LandscapeInstall._do_install_existing_maas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.multi_py.MultiInstall.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController._save_maas_creds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.docs.conf_py.ReleasesTree.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runOneBasic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runSome"].
pasteorg_pastescript
public
public
0
0
parse_exe_file
def parse_exe_file(config):import shlexp = configparser.RawConfigParser()p.read([config])command_name = 'exe'options = []if p.has_option('exe', 'command'):command_name = p.get('exe', 'command')if p.has_option('exe', 'options'):options = shlex.split(p.get('exe', 'options'))if p.has_option('exe', 'sys.path'):paths = shlex.split(p.get('exe', 'sys.path'))paths = [os.path.abspath(os.path.join(os.path.dirname(config), p)) for p in paths]for path in paths:pkg_resources.working_set.add_entry(path)sys.path.insert(0, path)args = [command_name, config] + optionsreturn args
6
19
1
165
5
98
116
98
config
['args', 'command_name', 'paths', 'options', 'p']
Returns
{"Assign": 8, "Expr": 3, "For": 1, "If": 3, "Return": 1}
15
19
15
["configparser.RawConfigParser", "p.read", "p.has_option", "p.get", "p.has_option", "shlex.split", "p.get", "p.has_option", "shlex.split", "p.get", "os.path.abspath", "os.path.join", "os.path.dirname", "pkg_resources.working_set.add_entry", "sys.path.insert"]
0
[]
The function (parse_exe_file) defined within the public class called public.The function start at line 98 and ends at 116. It contains 19 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters, and this function return a value. It declares 15.0 functions, and It has 15.0 functions called inside which are ["configparser.RawConfigParser", "p.read", "p.has_option", "p.get", "p.has_option", "shlex.split", "p.get", "p.has_option", "shlex.split", "p.get", "os.path.abspath", "os.path.join", "os.path.dirname", "pkg_resources.working_set.add_entry", "sys.path.insert"].
pasteorg_pastescript
public
public
0
0
get_commands
def get_commands():plugins = system_plugins[:]egg_info_dir = pluginlib.find_egg_info_dir(os.getcwd())if egg_info_dir:plugins.append(os.path.splitext(os.path.basename(egg_info_dir))[0])base_dir = os.path.dirname(egg_info_dir)if base_dir not in sys.path:sys.path.insert(0, base_dir)pkg_resources.working_set.add_entry(base_dir)plugins = pluginlib.resolve_plugins(plugins)commands = pluginlib.load_commands_from_plugins(plugins)commands.update(pluginlib.load_global_commands())return commands
3
13
0
112
4
118
130
118
['commands', 'base_dir', 'plugins', 'egg_info_dir']
Returns
{"Assign": 5, "Expr": 4, "If": 2, "Return": 1}
12
13
12
["pluginlib.find_egg_info_dir", "os.getcwd", "plugins.append", "os.path.splitext", "os.path.basename", "os.path.dirname", "sys.path.insert", "pkg_resources.working_set.add_entry", "pluginlib.resolve_plugins", "pluginlib.load_commands_from_plugins", "commands.update", "pluginlib.load_global_commands"]
8
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.develop_py.Develop.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.tests.test_common_py.test_find_internal_commands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914700_ckan_ckanext_xloader.ckanext.xloader.plugin_py.xloaderPlugin.get_commands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981991_life4_deal.deal._cli._main_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.NotFoundCommand.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.help_py.HelpCommand.command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.help_py.HelpCommand.generic_help"]
The function (get_commands) defined within the public class called public.The function start at line 118 and ends at 130. It contains 13 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 12.0 functions, It has 12.0 functions called inside which are ["pluginlib.find_egg_info_dir", "os.getcwd", "plugins.append", "os.path.splitext", "os.path.basename", "os.path.dirname", "sys.path.insert", "pkg_resources.working_set.add_entry", "pluginlib.resolve_plugins", "pluginlib.load_commands_from_plugins", "commands.update", "pluginlib.load_global_commands"], It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.develop_py.Develop.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.tests.test_common_py.test_find_internal_commands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914700_ckan_ckanext_xloader.ckanext.xloader.plugin_py.xloaderPlugin.get_commands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981991_life4_deal.deal._cli._main_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.NotFoundCommand.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.help_py.HelpCommand.command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.help_py.HelpCommand.generic_help"].
pasteorg_pastescript
public
public
0
0
invoke
def invoke(command, command_name, options, args):try:runner = command(command_name)exit_code = runner.run(args)except BadCommand as e:print(e.message)exit_code = e.exit_codesys.exit(exit_code)
2
8
4
49
2
132
139
132
command,command_name,options,args
['runner', 'exit_code']
None
{"Assign": 3, "Expr": 2, "Try": 1}
4
8
4
["command", "runner.run", "print", "sys.exit"]
18
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_checksum_py.test_checksum_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_cli_py.test_cli_dry_run_display_options_passed_together", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_membership_py.test_membership_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_money_py.test_balance_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_tx_py.test_tx_passed_all_sources_empty", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_tx_py.test_tx_passed_amount_cli", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_unit_tx_py.test_send_transaction", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_verify_blocks_py.test_verify_blocks_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953383_auhau_toggl_cli.tests.helpers_py.inner_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.component.test_component_py.test_lambda", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677857_enokiun_voltage.voltage.ext.commands.client_py.CommandsClient.handle_commands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94656748_elastic_connectors.tests.test_service_cli_py.test_main_exits_on_sigterm", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.google_ai.tests.generators.chat.test_chat_gemini_py.TestGoogleAIGeminiChatGenerator.test_run_with_streaming_callback_and_tools", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.google_ai.tests.generators.chat.test_chat_gemini_py.TestGoogleAIGeminiChatGenerator.test_run_with_streaming_callback_and_tools_async", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.google_ai.tests.generators.chat.test_chat_gemini_py.TestGoogleAIGeminiChatGenerator.test_run_with_tools", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.google_ai.tests.generators.chat.test_chat_gemini_py.TestGoogleAIGeminiChatGenerator.test_run_with_tools_async", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.mcp.src.haystack_integrations.tools.mcp.mcp_tool_py.MCPTool._invoke_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.run"]
The function (invoke) defined within the public class called public.The function start at line 132 and ends at 139. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [132.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["command", "runner.run", "print", "sys.exit"], It has 18.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_checksum_py.test_checksum_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_cli_py.test_cli_dry_run_display_options_passed_together", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_membership_py.test_membership_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_money_py.test_balance_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_tx_py.test_tx_passed_all_sources_empty", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_tx_py.test_tx_passed_amount_cli", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_unit_tx_py.test_send_transaction", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.tests.test_verify_blocks_py.test_verify_blocks_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953383_auhau_toggl_cli.tests.helpers_py.inner_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.component.test_component_py.test_lambda", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677857_enokiun_voltage.voltage.ext.commands.client_py.CommandsClient.handle_commands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94656748_elastic_connectors.tests.test_service_cli_py.test_main_exits_on_sigterm", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.google_ai.tests.generators.chat.test_chat_gemini_py.TestGoogleAIGeminiChatGenerator.test_run_with_streaming_callback_and_tools", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.google_ai.tests.generators.chat.test_chat_gemini_py.TestGoogleAIGeminiChatGenerator.test_run_with_streaming_callback_and_tools_async", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.google_ai.tests.generators.chat.test_chat_gemini_py.TestGoogleAIGeminiChatGenerator.test_run_with_tools", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.google_ai.tests.generators.chat.test_chat_gemini_py.TestGoogleAIGeminiChatGenerator.test_run_with_tools_async", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.mcp.src.haystack_integrations.tools.mcp.mcp_tool_py.MCPTool._invoke_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.run"].
pasteorg_pastescript
BadCommand
public
0
1
__init__
def __init__(self, name):self.command_name = name
1
2
2
12
0
144
145
144
self,message,exit_code
[]
None
{"Assign": 2, "Expr": 1}
1
4
1
["Exception.__init__"]
8,182
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"]
The function (__init__) defined within the public class called BadCommand, that inherit another class.The function start at line 144 and ends at 145. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [144.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["Exception.__init__"], It has 8182.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"].
pasteorg_pastescript
public
public
0
0
run
def run(self, args):self.parse_args(args)# Setup defaults:for name, default in [('verbose', 0),('quiet', 0),('interactive', False),('overwrite', False)]:if not hasattr(self.options, name):setattr(self.options, name, default)if getattr(self.options, 'simulate', False):self.options.verbose = max(self.options.verbose, 1)self.interactive = self.default_interactiveif getattr(self.options, 'interactive', False):self.interactive += self.options.interactiveif getattr(self.options, 'no_interactive', False):self.interactive = Falseself.verbose = self.default_verbosityself.verbose += self.options.verboseself.verbose -= self.options.quietself.simulate = getattr(self.options, 'simulate', False)# For #! situations:if (os.environ.get('PASTE_CONFIG_FILE')and self.takes_config_file is not None):take = self.takes_config_filefilename = os.environ.get('PASTE_CONFIG_FILE')if take == 1:self.args.insert(0, filename)elif take == -1:self.args.append(filename)else:assert 0, ("Value takes_config_file must be None, 1, or -1 (not %r)"% take)if (os.environ.get('PASTE_DEFAULT_QUIET')):self.verbose = 0# Validate:if self.min_args is not None and len(self.args) < self.min_args:raise BadCommand(self.min_args_error % {'min_args': self.min_args, 'actual_args': len(self.args)})if self.max_args is not None and len(self.args) > self.max_args:raise BadCommand(self.max_args_error % {'max_args': self.max_args, 'actual_args': len(self.args)})for var_name, option_name in self.required_args:if not getattr(self.options, var_name, None):raise BadCommand('You must provide the option %s' % option_name)result = self.command()if result is None:return self.return_codeelse:return result
18
50
2
402
0
178
234
178
args
[]
None
{"Assign": 10, "Expr": 3, "If": 5}
8
24
8
["len", "os.environ.get", "parser.parse_args", "system_plugins.extend", "get_commands", "print", "load", "invoke"]
668
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_directories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_project_to_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.checkout_latest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.dump_db", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.files_are_different", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.install_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.run_migrations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.v1_static", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.landscape_py.LandscapeInstall._do_install_existing_maas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.multi_py.MultiInstall.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController._save_maas_creds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.docs.conf_py.ReleasesTree.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runOneBasic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runSome"]
The function (run) defined within the public class called public.The function start at line 178 and ends at 234. It contains 50 lines of code and it has a cyclomatic complexity of 18. It takes 2 parameters, represented as [178.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions called inside which are ["len", "os.environ.get", "parser.parse_args", "system_plugins.extend", "get_commands", "print", "load", "invoke"], It has 668.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_directories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_project_to_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.checkout_latest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.dump_db", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.files_are_different", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.install_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.run_migrations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.v1_static", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.landscape_py.LandscapeInstall._do_install_existing_maas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.multi_py.MultiInstall.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController._save_maas_creds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.docs.conf_py.ReleasesTree.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runOneBasic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runSome"].
pasteorg_pastescript
Command
public
0
1
parse_args
def parse_args(self, args):if self.usage:usage = ' '+self.usageelse:usage = ''self.parser.usage = "%%prog [options]%s\n%s" % (usage, self.summary)self.parser.prog = self._prog_name()if self.description:desc = self.descriptiondesc = textwrap.dedent(desc)self.parser.description = descself.options, self.args = self.parser.parse_args(args)
3
13
2
91
0
236
248
236
self,args
[]
None
{"Assign": 8, "If": 2}
3
13
3
["self._prog_name", "textwrap.dedent", "self.parser.parse_args"]
297
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.main_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.build_pdb_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.build_rdb_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.collect_contig_gfa_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.collect_pread_gfa_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_gather_fasta_fofn_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_scatter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_split_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_task_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.copy_fofn_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.copy_mapped_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.daligner_gather_las_list_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.daligner_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.daligner_scatter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.daligner_split_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.dazzler_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.dedup_a_tigs_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.fetch_reads_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.gen_gfa_v1_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.gen_gfa_v2_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.generate_read_to_ctg_map_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.generic_gather_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.generic_run_units_of_work_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.generic_scatter_one_uow_py.main"]
The function (parse_args) defined within the public class called Command, that inherit another class.The function start at line 236 and ends at 248. It contains 13 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [236.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["self._prog_name", "textwrap.dedent", "self.parser.parse_args"], It has 297.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.main_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.build_pdb_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.build_rdb_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.collect_contig_gfa_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.collect_pread_gfa_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_gather_fasta_fofn_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_scatter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_split_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.consensus_task_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.copy_fofn_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.copy_mapped_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.daligner_gather_las_list_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.daligner_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.daligner_scatter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.daligner_split_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.dazzler_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.dedup_a_tigs_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.fetch_reads_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.gen_gfa_v1_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.gen_gfa_v2_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.generate_read_to_ctg_map_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.generic_gather_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.generic_run_units_of_work_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.mains.generic_scatter_one_uow_py.main"].
pasteorg_pastescript
Command
public
0
1
_prog_name
def _prog_name(self):return '%s %s' % (os.path.basename(sys.argv[0]), self.command_name)
1
2
1
27
0
250
251
250
self
[]
Returns
{"Return": 1}
1
2
1
["os.path.basename"]
0
[]
The function (_prog_name) defined within the public class called Command, that inherit another class.The function start at line 250 and ends at 251. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["os.path.basename"].
pasteorg_pastescript
Command
public
0
1
here
def here(cls):mod = sys.modules[cls.__module__]return os.path.dirname(mod.__file__)
1
3
1
26
0
257
259
257
cls
[]
Returns
{"Assign": 1, "Return": 1}
1
3
1
["os.path.dirname"]
0
[]
The function (here) defined within the public class called Command, that inherit another class.The function start at line 257 and ends at 259. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["os.path.dirname"].
pasteorg_pastescript
Command
public
0
1
ask
def ask(self, prompt, safe=False, default=True):"""Prompt the user.Default can be true, false, ``'careful'`` or``'none'``.If ``'none'`` then the user must enter y/n.If``'careful'`` then the user must enter yes/no (long form).If the interactive option is over two (``-ii``) then ``safe``will be used as a default.This option should be thedo-nothing option."""# @@: Should careful be a separate argument?if self.options.interactive >= 2:default = safeif default == 'careful':prompt += ' [yes/no]?'elif default == 'none':prompt += ' [y/n]?'elif default:prompt += ' [Y/n]? 'else:prompt += ' [y/N]? 'while 1:response = input(prompt).strip().lower()if not response:if default in ('careful', 'none'):print('Please enter yes or no')continuereturn defaultif default == 'careful':if response in ('yes', 'no'):return response == 'yes'print('Please enter "yes" or "no"')continueif response[0].lower() in ('y', 'n'):return response[0].lower() == 'y'print('Y or N please')
11
26
4
146
0
263
299
263
self,prompt,safe,default
[]
Returns
{"Assign": 2, "AugAssign": 4, "Expr": 4, "If": 9, "Return": 3, "While": 1}
8
37
8
["lower", "strip", "input", "print", "print", "lower", "lower", "print"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3691476_jasongross_coq_tools.coq_tools.find_bug_py.get_error_reg_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3691476_jasongross_coq_tools.coq_tools.find_bug_py.get_error_reg_string_of_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718407_jupyter_jupyter_core.jupyter_core.application_py.JupyterApp.write_default_config"]
The function (ask) defined within the public class called Command, that inherit another class.The function start at line 263 and ends at 299. It contains 26 lines of code and it has a cyclomatic complexity of 11. It takes 4 parameters, represented as [263.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["lower", "strip", "input", "print", "print", "lower", "lower", "print"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3691476_jasongross_coq_tools.coq_tools.find_bug_py.get_error_reg_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3691476_jasongross_coq_tools.coq_tools.find_bug_py.get_error_reg_string_of_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718407_jupyter_jupyter_core.jupyter_core.application_py.JupyterApp.write_default_config"].
pasteorg_pastescript
Command
public
0
1
challenge
def challenge(self, prompt, default=NoDefault, should_echo=True):"""Prompt the user for a variable."""if default is not NoDefault:prompt += ' [%r]' % defaultprompt += ': 'while 1:if should_echo:prompt_method = inputelse:prompt_method = getpass.getpassresponse = prompt_method(prompt).strip()if not response:if default is not NoDefault:return defaultelse:continueelse:return response
6
17
4
75
0
301
320
301
self,prompt,default,should_echo
[]
Returns
{"Assign": 3, "AugAssign": 2, "Expr": 1, "If": 4, "Return": 2, "While": 1}
2
20
2
["strip", "prompt_method"]
0
[]
The function (challenge) defined within the public class called Command, that inherit another class.The function start at line 301 and ends at 320. It contains 17 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [301.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["strip", "prompt_method"].
pasteorg_pastescript
Command
public
0
1
pad
def pad(self, s, length, dir='left'):if len(s) >= length:return sif dir == 'left':return s + ' '*(length-len(s))else:return ' '*(length-len(s)) + s
3
7
4
56
0
322
328
322
self,s,length,dir
[]
Returns
{"If": 2, "Return": 3}
3
7
3
["len", "len", "len"]
9
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.utils_tests.test_sparse_utils_py.naive_convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69485146_mgaido91_fbk_fairseq_st.fairseq.modules.character_token_embedder_py.CharacterTokenEmbedder.padding_idx", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69485146_mgaido91_fbk_fairseq_st.fairseq.tasks.multilingual_translation_py.MultilingualTranslationTask.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.coding.guruswami_sudan.interpolation_py.lee_osullivan_module", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.roborock.protocol_py.Utils.encrypt_cbc", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.roborock.protocol_py.Utils.encrypt_ecb", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.roborock.protocols.a01_protocol_py.encode_mqtt_payload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.roborock.protocols.b01_protocol_py.encode_mqtt_payload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.tests.test_a01_api_py.build_rpc_response"]
The function (pad) defined within the public class called Command, that inherit another class.The function start at line 322 and ends at 328. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [322.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["len", "len", "len"], It has 9.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.utils_tests.test_sparse_utils_py.naive_convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69485146_mgaido91_fbk_fairseq_st.fairseq.modules.character_token_embedder_py.CharacterTokenEmbedder.padding_idx", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69485146_mgaido91_fbk_fairseq_st.fairseq.tasks.multilingual_translation_py.MultilingualTranslationTask.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.coding.guruswami_sudan.interpolation_py.lee_osullivan_module", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.roborock.protocol_py.Utils.encrypt_cbc", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.roborock.protocol_py.Utils.encrypt_ecb", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.roborock.protocols.a01_protocol_py.encode_mqtt_payload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.roborock.protocols.b01_protocol_py.encode_mqtt_payload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95273511_Python_roborock_python_roborock.tests.test_a01_api_py.build_rpc_response"].
pasteorg_pastescript
Command
public
0
1
standard_parser
def standard_parser(cls, verbose=True,interactive=False,no_interactive=False,simulate=False,quiet=False,overwrite=False):"""Create a standard ``OptionParser`` instance.Typically used like::class MyCommand(Command):parser = Command.standard_parser()Subclasses may redefine ``standard_parser``, so use thenearest superclass's class method."""parser = bool_optparse.BoolOptionParser()if verbose:parser.add_option('-v', '--verbose',action='count',dest='verbose',default=0)if quiet:parser.add_option('-q', '--quiet',action='count',dest='quiet',default=0)if no_interactive:parser.add_option('--no-interactive',action="count",dest="no_interactive",default=0)if interactive:parser.add_option('-i', '--interactive',action='count',dest='interactive',default=0)if simulate:parser.add_option('-n', '--simulate',action='store_true',dest='simulate',default=False)if overwrite:parser.add_option('-f', '--overwrite',dest="overwrite",action="store_true",help="Overwrite files (warnings will be emitted for non-matching files otherwise)")return parser
7
38
7
175
0
330
378
330
cls,verbose,interactive,no_interactive,simulate,quiet,overwrite
[]
Returns
{"Assign": 1, "Expr": 7, "If": 6, "Return": 1}
7
49
7
["bool_optparse.BoolOptionParser", "parser.add_option", "parser.add_option", "parser.add_option", "parser.add_option", "parser.add_option", "parser.add_option"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.appinstall_py.AbstractInstallCommand.standard_parser"]
The function (standard_parser) defined within the public class called Command, that inherit another class.The function start at line 330 and ends at 378. It contains 38 lines of code and it has a cyclomatic complexity of 7. It takes 7 parameters, represented as [330.0], and this function return a value. It declares 7.0 functions, It has 7.0 functions called inside which are ["bool_optparse.BoolOptionParser", "parser.add_option", "parser.add_option", "parser.add_option", "parser.add_option", "parser.add_option", "parser.add_option"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.appinstall_py.AbstractInstallCommand.standard_parser"].
pasteorg_pastescript
Command
public
0
1
shorten
def shorten(self, fn, *paths):"""Return a shorted form of the filename (relative to the currentdirectory), typically for displaying in messages.If``*paths`` are present, then use os.path.join to create thefull filename before shortening."""if paths:fn = os.path.join(fn, *paths)if fn.startswith(os.getcwd()):return fn[len(os.getcwd()):].lstrip(os.path.sep)else:return fn
3
7
3
65
0
382
394
382
self,fn,*paths
[]
Returns
{"Assign": 1, "Expr": 1, "If": 2, "Return": 2}
6
13
6
["os.path.join", "fn.startswith", "os.getcwd", "lstrip", "len", "os.getcwd"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.anilist_py.anilist"]
The function (shorten) defined within the public class called Command, that inherit another class.The function start at line 382 and ends at 394. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [382.0], and this function return a value. It declares 6.0 functions, It has 6.0 functions called inside which are ["os.path.join", "fn.startswith", "os.getcwd", "lstrip", "len", "os.getcwd"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.anilist_py.anilist"].
pasteorg_pastescript
Command
public
0
1
ensure_dir
def ensure_dir(self, dir, svn_add=True):"""Ensure that the directory exists, creating it if necessary.Respects verbosity and simulation.Adds directory to subversion if ``.svn/`` directory exists inparent, and directory was created."""dir = dir.rstrip(os.sep)if not dir:# we either reached the parent-most directory, or we got# a relative directory# @@: Should we make sure we resolve relative directories# first?Though presumably the current directory always# exists.returnif not os.path.exists(dir):self.ensure_dir(os.path.dirname(dir))if self.verbose:print('Creating %s' % self.shorten(dir))if not self.simulate:os.mkdir(dir)if (svn_add andos.path.exists(os.path.join(os.path.dirname(dir), '.svn'))):self.svn_command('add', dir)else:if self.verbose > 1:print("Directory already exists: %s" % self.shorten(dir))
8
16
3
137
0
396
423
396
self,dir,svn_add
[]
None
{"Assign": 1, "Expr": 6, "If": 6, "Return": 1}
13
28
13
["dir.rstrip", "os.path.exists", "self.ensure_dir", "os.path.dirname", "print", "self.shorten", "os.mkdir", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "print", "self.shorten"]
0
[]
The function (ensure_dir) defined within the public class called Command, that inherit another class.The function start at line 396 and ends at 423. It contains 16 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [396.0] and does not return any value. It declares 13.0 functions, and It has 13.0 functions called inside which are ["dir.rstrip", "os.path.exists", "self.ensure_dir", "os.path.dirname", "print", "self.shorten", "os.mkdir", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "print", "self.shorten"].
pasteorg_pastescript
Command
public
0
1
ensure_file
def ensure_file(self, filename, content, svn_add=True):"""Ensure a file named ``filename`` exists with the givencontent.If ``--interactive`` has been enabled, this will askthe user what to do if a file exists with different content."""global difflibassert content is not None, ("You cannot pass a content of None")self.ensure_dir(os.path.dirname(filename), svn_add=svn_add)if not os.path.exists(filename):if self.verbose:print('Creating %s' % filename)if not self.simulate:f = open(filename, 'wb')f.write(content)f.close()if svn_add and os.path.exists(os.path.join(os.path.dirname(filename), '.svn')):self.svn_command('add', filename, warn_returncode=True)returnf = open(filename, 'rb')old_content = f.read()f.close()if content == old_content:if self.verbose > 1:print('File %s matches expected content' % filename)returnif not self.options.overwrite:print('Warning: file %s does not match expected content' % filename)if difflib is None:import difflibdiff = difflib.context_diff(content.splitlines(),old_content.splitlines(),'expected ' + filename,filename)print('\n'.join(diff))if self.interactive:while 1:s = input('Overwrite file with new content? [y/N] ').strip().lower()if not s:s = 'n'if s.startswith('y'):breakif s.startswith('n'):returnprint('Unknown response; Y or N please')else:returnif self.verbose:print('Overwriting %s with new content' % filename)if not self.simulate:f = open(filename, 'wb')f.write(content)f.close()
17
52
4
313
0
425
482
425
self,filename,content,svn_add
[]
None
{"Assign": 7, "Expr": 14, "If": 14, "Return": 4, "While": 1}
31
58
31
["self.ensure_dir", "os.path.dirname", "os.path.exists", "print", "open", "f.write", "f.close", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "open", "f.read", "f.close", "print", "print", "difflib.context_diff", "content.splitlines", "old_content.splitlines", "print", "join", "lower", "strip", "input", "s.startswith", "s.startswith", "print", "print", "open", "f.write", "f.close"]
0
[]
The function (ensure_file) defined within the public class called Command, that inherit another class.The function start at line 425 and ends at 482. It contains 52 lines of code and it has a cyclomatic complexity of 17. It takes 4 parameters, represented as [425.0] and does not return any value. It declares 31.0 functions, and It has 31.0 functions called inside which are ["self.ensure_dir", "os.path.dirname", "os.path.exists", "print", "open", "f.write", "f.close", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "open", "f.read", "f.close", "print", "print", "difflib.context_diff", "content.splitlines", "old_content.splitlines", "print", "join", "lower", "strip", "input", "s.startswith", "s.startswith", "print", "print", "open", "f.write", "f.close"].
pasteorg_pastescript
Command
public
0
1
insert_into_file
def insert_into_file(self, filename, marker_name, text, indent=False):"""Inserts ``text`` into the file, right after the given marker.Markers look like: ``-*- <marker_name>[:]? -*-``, and the textwill go on the immediately following line.Raises ``ValueError`` if the marker is not found.If ``indent`` is true, then the text will be indented at thesame level as the marker."""if not text.endswith('\n'):raise ValueError("The text must end with a newline: %r" % text)if not os.path.exists(filename) and self.simulate:# If we are doing a simulation, it's expected that some# files won't exist...if self.verbose:print('Would (if not simulating) insert text into %s' % (self.shorten(filename)))returnf = open(filename)lines = f.readlines()f.close()regex = re.compile(r'-\*-\s+%s:?\s+-\*-' % re.escape(marker_name), re.I)for i in range(len(lines)):if regex.search(lines[i]):# Found it!if (lines[i:] and len(lines[i:]) > 1 and''.join(lines[i+1:]).strip().startswith(text.strip())):# Already have it!print('Warning: line already found in %s (not inserting' % filename)print('%s' % lines[i])returnif indent:text = text.lstrip()match = re.search(r'^[ \t]*', lines[i])text = match.group(0) + textlines[i+1:i+1] = [text]breakelse:errstr = ("Marker '-*- %s -*-' not found in %s"% (marker_name, filename))if 1 or self.simulate: # @@: being permissive right nowprint('Warning: %s' % errstr)else:raise ValueError(errstr)if self.verbose:print('Updating %s' % self.shorten(filename))if not self.simulate:f = open(filename, 'w')f.write(''.join(lines))f.close()
15
42
5
316
0
484
541
484
self,filename,marker_name,text,indent
[]
None
{"Assign": 9, "Expr": 9, "For": 1, "If": 9, "Return": 2}
31
58
31
["text.endswith", "ValueError", "os.path.exists", "print", "self.shorten", "open", "f.readlines", "f.close", "re.compile", "re.escape", "range", "len", "regex.search", "len", "startswith", "strip", "join", "text.strip", "print", "print", "text.lstrip", "re.search", "match.group", "print", "ValueError", "print", "self.shorten", "open", "f.write", "join", "f.close"]
0
[]
The function (insert_into_file) defined within the public class called Command, that inherit another class.The function start at line 484 and ends at 541. It contains 42 lines of code and it has a cyclomatic complexity of 15. It takes 5 parameters, represented as [484.0] and does not return any value. It declares 31.0 functions, and It has 31.0 functions called inside which are ["text.endswith", "ValueError", "os.path.exists", "print", "self.shorten", "open", "f.readlines", "f.close", "re.compile", "re.escape", "range", "len", "regex.search", "len", "startswith", "strip", "join", "text.strip", "print", "print", "text.lstrip", "re.search", "match.group", "print", "ValueError", "print", "self.shorten", "open", "f.write", "join", "f.close"].
pasteorg_pastescript
Command
public
0
1
run_command
def run_command(self, cmd, *args, **kw):"""Runs the command, respecting verbosity and simulation.Returns stdout, or None if simulating.Keyword arguments:cwd:the current working directory to run the command incapture_stderr:if true, then both stdout and stderr will be returnedexpect_returncode:if true, then don't fail if the return code is not 0force_no_simulate:if true, run the command even if --simulate"""if subprocess is None:raise RuntimeError('Environment does not support subprocess ' 'module, cannot run command.')cmd = self.quote_first_command_arg(cmd)cwd = popdefault(kw, 'cwd', os.getcwd())capture_stderr = popdefault(kw, 'capture_stderr', False)expect_returncode = popdefault(kw, 'expect_returncode', False)force = popdefault(kw, 'force_no_simulate', False)warn_returncode = popdefault(kw, 'warn_returncode', False)if warn_returncode:expect_returncode = Truesimulate = self.simulateif force:simulate = Falseassert not kw, ("Arguments not expected: %s" % kw)if capture_stderr:stderr_pipe = subprocess.STDOUTelse:stderr_pipe = subprocess.PIPEtry:proc = subprocess.Popen([cmd] + list(args),cwd=cwd,stderr=stderr_pipe,stdout=subprocess.PIPE)except OSError as e:if e.errno != 2:# File not foundraiseraise OSError("The expected executable %s was not found (%s)"% (cmd, e))if self.verbose:print('Running %s %s' % (cmd, ' '.join(args)))if simulate:return Nonestdout, stderr = proc.communicate()if proc.returncode and not expect_returncode:if not self.verbose:print('Running %s %s' % (cmd, ' '.join(args)))print('Error (exit code: %s)' % proc.returncode)if stderr:print(stderr)raise OSError("Error executing command %s" % cmd)if self.verbose > 2:if stderr:print('Command error output:')print(stderr)if stdout:print('Command output:')print(stdout)elif proc.returncode and warn_returncode:print('Warning: command failed (%s %s)' % (cmd, ' '.join(args)))print('Exited with code %s' % proc.returncode)return stdout
18
54
4
329
0
543
612
543
self,cmd,*args,**kw
[]
Returns
{"Assign": 13, "Expr": 11, "If": 14, "Return": 2, "Try": 1}
26
70
26
["RuntimeError", "self.quote_first_command_arg", "popdefault", "os.getcwd", "popdefault", "popdefault", "popdefault", "popdefault", "subprocess.Popen", "list", "OSError", "print", "join", "proc.communicate", "print", "join", "print", "print", "OSError", "print", "print", "print", "print", "print", "join", "print"]
34
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.influxgraph._version_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.versioneer_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape._version_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.versioneer_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.tests._Async.tests.test_py.TestAsync.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.tests.test_3141596_py.with_package", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.scheduler_py.Unit.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_basic_configuration_produces_expected_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_logging_can_be_configured_from_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_shell_log_is_created_at_absolute_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_shell_log_is_created_in_workdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_ovs_bonding_py.get_bond_information", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_ovs_bonding_py.get_bonds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_repmgr_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925255_tlsfuzzer_python_ecdsa.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3950162_vpelletier_python_libusb1.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.cli", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.docs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.pylint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.pytest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.yamllint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.ci.set_lance_version_py.get_latest_preview_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.ci.set_lance_version_py.get_latest_stable_version"]
The function (run_command) defined within the public class called Command, that inherit another class.The function start at line 543 and ends at 612. It contains 54 lines of code and it has a cyclomatic complexity of 18. It takes 4 parameters, represented as [543.0], and this function return a value. It declares 26.0 functions, It has 26.0 functions called inside which are ["RuntimeError", "self.quote_first_command_arg", "popdefault", "os.getcwd", "popdefault", "popdefault", "popdefault", "popdefault", "subprocess.Popen", "list", "OSError", "print", "join", "proc.communicate", "print", "join", "print", "print", "OSError", "print", "print", "print", "print", "print", "join", "print"], It has 34.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.influxgraph._version_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.versioneer_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape._version_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.versioneer_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.tests._Async.tests.test_py.TestAsync.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.tests.test_3141596_py.with_package", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.scheduler_py.Unit.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_basic_configuration_produces_expected_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_logging_can_be_configured_from_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_shell_log_is_created_at_absolute_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_shell_log_is_created_in_workdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_ovs_bonding_py.get_bond_information", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_ovs_bonding_py.get_bonds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_repmgr_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925255_tlsfuzzer_python_ecdsa.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3950162_vpelletier_python_libusb1.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.cli", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.docs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.pylint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.pytest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.yamllint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.ci.set_lance_version_py.get_latest_preview_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.ci.set_lance_version_py.get_latest_stable_version"].
pasteorg_pastescript
Command
public
0
1
quote_first_command_arg
def quote_first_command_arg(self, arg):"""There's a bug in Windows when running an executable that'slocated inside a path with a space in it.This method handlesthat case, or on non-Windows systems or an executable with nospaces, it just leaves well enough alone."""if (sys.platform != 'win32'or ' ' not in arg):# Problem does not apply:return argtry:import win32apiexcept ImportError:raise ValueError("The executable %r contains a space, and in order to ""handle this issue you must have the win32api module ""installed" % arg)arg = win32api.GetShortPathName(arg)return arg
4
13
2
50
0
614
633
614
self,arg
[]
Returns
{"Assign": 1, "Expr": 1, "If": 1, "Return": 2, "Try": 1}
2
20
2
["ValueError", "win32api.GetShortPathName"]
0
[]
The function (quote_first_command_arg) defined within the public class called Command, that inherit another class.The function start at line 614 and ends at 633. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [614.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["ValueError", "win32api.GetShortPathName"].
pasteorg_pastescript
Command
public
0
1
svn_command
def svn_command(self, *args, **kw):"""Run an svn command, but don't raise an exception if it fails."""try:return self.run_command('svn', *args, **kw)except OSError as e:if not self._svn_failed:print('Unable to run svn command (%s); proceeding anyway' % e)self._svn_failed = True
3
7
3
49
0
637
646
637
self,*args,**kw
[]
Returns
{"Assign": 1, "Expr": 2, "If": 1, "Return": 1, "Try": 1}
2
10
2
["self.run_command", "print"]
0
[]
The function (svn_command) defined within the public class called Command, that inherit another class.The function start at line 637 and ends at 646. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [637.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.run_command", "print"].
pasteorg_pastescript
Command
public
0
1
write_file
def write_file(self, filename, content, source=None, binary=True, svn_add=True):"""Like ``ensure_file``, but without the interactivity.Mostlydeprecated.(I think I forgot it existed)"""import warningswarnings.warn("command.write_file has been replaced with ""command.ensure_file",DeprecationWarning, 2)if os.path.exists(filename):if binary:f = open(filename, 'rb')else:f = open(filename, 'r')old_content = f.read()f.close()if content == old_content:if self.verbose:print('File %s exists with same content' % (self.shorten(filename)))returnif (not self.simulate and self.options.interactive):if not self.ask('Overwrite file %s?' % filename):returnif self.verbose > 1 and source:print('Writing %s from %s' % (self.shorten(filename),self.shorten(source)))elif self.verbose:print('Writing %s' % self.shorten(filename))if not self.simulate:already_existed = os.path.exists(filename)if binary:f = open(filename, 'wb')else:f = open(filename, 'w')f.write(content)f.close()if (not already_existedand svn_addand os.path.exists(os.path.join(os.path.dirname(filename), '.svn'))):self.svn_command('add', filename)
16
39
6
262
0
648
690
648
self,filename,content,source,binary,svn_add
[]
None
{"Assign": 6, "Expr": 9, "If": 11, "Return": 2}
23
43
23
["warnings.warn", "os.path.exists", "open", "open", "f.read", "f.close", "print", "self.shorten", "self.ask", "print", "self.shorten", "self.shorten", "print", "self.shorten", "os.path.exists", "open", "open", "f.write", "f.close", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95131422_fosslight_fosslight_util.src.fosslight_util.write_spdx_py.write_spdx"]
The function (write_file) defined within the public class called Command, that inherit another class.The function start at line 648 and ends at 690. It contains 39 lines of code and it has a cyclomatic complexity of 16. It takes 6 parameters, represented as [648.0] and does not return any value. It declares 23.0 functions, It has 23.0 functions called inside which are ["warnings.warn", "os.path.exists", "open", "open", "f.read", "f.close", "print", "self.shorten", "self.ask", "print", "self.shorten", "self.shorten", "print", "self.shorten", "os.path.exists", "open", "open", "f.write", "f.close", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95131422_fosslight_fosslight_util.src.fosslight_util.write_spdx_py.write_spdx"].
pasteorg_pastescript
Command
public
0
1
parse_vars
def parse_vars(self, args):"""Given variables like ``['a=b', 'c=d']`` turns it into ``{'a':'b', 'c': 'd'}``"""result = {}for arg in args:if '=' not in arg:raise BadCommand('Variable assignment %r invalid (no "=")'% arg)name, value = arg.split('=', 1)result[name] = valuereturn result
3
10
2
50
0
692
705
692
self,args
[]
Returns
{"Assign": 3, "Expr": 1, "For": 1, "If": 1, "Return": 1}
2
14
2
["BadCommand", "arg.split"]
0
[]
The function (parse_vars) defined within the public class called Command, that inherit another class.The function start at line 692 and ends at 705. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [692.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["BadCommand", "arg.split"].
pasteorg_pastescript
Command
public
0
1
read_vars
def read_vars(self, config, section='pastescript'):"""Given a configuration filename, this will return a map of values."""result = {}p = configparser.RawConfigParser()p.read([config])if p.has_section(section):for key, value in p.items(section):if key.endswith('__eval__'):result[key[:-len('__eval__')]] = eval(value)else:result[key] = valuereturn result
4
11
3
86
0
707
720
707
self,config,section
[]
Returns
{"Assign": 4, "Expr": 2, "For": 1, "If": 2, "Return": 1}
7
14
7
["configparser.RawConfigParser", "p.read", "p.has_section", "p.items", "key.endswith", "len", "eval"]
0
[]
The function (read_vars) defined within the public class called Command, that inherit another class.The function start at line 707 and ends at 720. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [707.0], and this function return a value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["configparser.RawConfigParser", "p.read", "p.has_section", "p.items", "key.endswith", "len", "eval"].
pasteorg_pastescript
Command
public
0
1
write_vars
def write_vars(self, config, vars, section='pastescript'):"""Given a configuration filename, this will add items in thevars mapping to the configuration file.Will create theconfiguration file if it doesn't exist."""modified = Falsep = configparser.RawConfigParser()if not os.path.exists(config):f = open(config, 'w')f.write('')f.close()modified = Truep.read([config])if not p.has_section(section):p.add_section(section)modified = Trueexisting_options = p.options(section)for key, value in vars.items():if (key not in existing_options and'%s__eval__' % key not in existing_options):if not isinstance(value, str):p.set(section, '%s__eval__' % key, repr(value))else:p.set(section, key, value)modified = Trueif modified:p.write(open(config, 'w'))
8
23
4
170
0
722
752
722
self,config,vars,section
[]
None
{"Assign": 7, "Expr": 8, "For": 1, "If": 5}
16
31
16
["configparser.RawConfigParser", "os.path.exists", "open", "f.write", "f.close", "p.read", "p.has_section", "p.add_section", "p.options", "vars.items", "isinstance", "p.set", "repr", "p.set", "p.write", "open"]
0
[]
The function (write_vars) defined within the public class called Command, that inherit another class.The function start at line 722 and ends at 752. It contains 23 lines of code and it has a cyclomatic complexity of 8. It takes 4 parameters, represented as [722.0] and does not return any value. It declares 16.0 functions, and It has 16.0 functions called inside which are ["configparser.RawConfigParser", "os.path.exists", "open", "f.write", "f.close", "p.read", "p.has_section", "p.add_section", "p.options", "vars.items", "isinstance", "p.set", "repr", "p.set", "p.write", "open"].
pasteorg_pastescript
Command
public
0
1
indent_block
def indent_block(self, text, indent=2, initial=None):"""Indent the block of text (each line is indented).If you give``initial``, then that is used in lieue of ``indent`` for thefirst line."""if initial is None:initial = indentlines = text.splitlines()first = (' '*initial) + lines[0]rest = [(' '*indent)+l for l in lines[1:]]return '\n'.join([first]+rest)
3
7
4
73
0
754
765
754
self,text,indent,initial
[]
Returns
{"Assign": 4, "Expr": 1, "If": 1, "Return": 1}
2
12
2
["text.splitlines", "join"]
0
[]
The function (indent_block) defined within the public class called Command, that inherit another class.The function start at line 754 and ends at 765. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [754.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["text.splitlines", "join"].
pasteorg_pastescript
Command
public
0
1
logging_file_config
def logging_file_config(self, config_file):"""Setup logging via the logging module's fileConfig function with thespecified ``config_file``, if applicable.ConfigParser defaults are specified for the special ``__file__``and ``here`` variables, similar to PasteDeploy config loading."""parser = configparser.ConfigParser()parser.read([config_file])if parser.has_section('loggers'):config_file = os.path.abspath(config_file)fileConfig(config_file, dict(__file__=config_file, here=os.path.dirname(config_file)))
2
7
2
63
0
767
780
767
self,config_file
[]
None
{"Assign": 2, "Expr": 3, "If": 1}
7
14
7
["configparser.ConfigParser", "parser.read", "parser.has_section", "os.path.abspath", "fileConfig", "dict", "os.path.dirname"]
0
[]
The function (logging_file_config) defined within the public class called Command, that inherit another class.The function start at line 767 and ends at 780. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [767.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["configparser.ConfigParser", "parser.read", "parser.has_section", "os.path.abspath", "fileConfig", "dict", "os.path.dirname"].
pasteorg_pastescript
public
public
0
0
run
def run(self, args):#for name, value in os.environ.items():#print '%s: %s' % (name, value)#print sys.argvprint(('Command %r not known (you may need to run setup.py egg_info)' % self.command_name))commands = sorted(get_commands().items())if not commands:print('No commands registered.')print('Have you installed Paste Script?')print('(try running python setup.py develop)')return 2print('Known commands:')longest = max([len(n) for n, c in commands])for name, command in commands:print('%s%s' % (self.pad(name, length=longest),command.load().summary))return 2
4
15
2
102
0
784
801
784
args
[]
None
{"Assign": 10, "Expr": 3, "If": 5}
8
24
8
["len", "os.environ.get", "parser.parse_args", "system_plugins.extend", "get_commands", "print", "load", "invoke"]
668
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_directories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_project_to_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.checkout_latest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.dump_db", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.files_are_different", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.install_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.run_migrations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.v1_static", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.landscape_py.LandscapeInstall._do_install_existing_maas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.multi_py.MultiInstall.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController._save_maas_creds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.docs.conf_py.ReleasesTree.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runOneBasic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runSome"]
The function (run) defined within the public class called public.The function start at line 784 and ends at 801. It contains 15 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [784.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions called inside which are ["len", "os.environ.get", "parser.parse_args", "system_plugins.extend", "get_commands", "print", "load", "invoke"], It has 668.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_directories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_project_to_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.checkout_latest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.dump_db", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.files_are_different", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.install_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.run_migrations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.v1_static", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.landscape_py.LandscapeInstall._do_install_existing_maas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.multi_py.MultiInstall.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController._save_maas_creds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.docs.conf_py.ReleasesTree.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runOneBasic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runSome"].
pasteorg_pastescript
public
public
0
0
popdefault
def popdefault(dict, name, default=None):if name not in dict:return defaultelse:v = dict[name]del dict[name]return v
2
7
3
34
1
803
809
803
dict,name,default
['v']
Returns
{"Assign": 1, "If": 1, "Return": 2}
0
7
0
[]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.Command.run_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.filemaker_py.FileOp.run_command"]
The function (popdefault) defined within the public class called public.The function start at line 803 and ends at 809. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [803.0], and this function return a value. It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.Command.run_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.filemaker_py.FileOp.run_command"].
pasteorg_pastescript
public
public
0
0
copy_dir
def copy_dir(source, dest, vars, verbosity, simulate, indent=0, use_cheetah=False, sub_vars=True, interactive=False, svn_add=True, overwrite=True, template_renderer=None):"""Copies the ``source`` directory to the ``dest`` directory.``vars``: A dictionary of variables to use in any substitutions.``verbosity``: Higher numbers will show more about what is happening.``simulate``: If true, then don't actually *do* anything.``indent``: Indent any messages by this amount.``sub_vars``: If true, variables in ``_tmpl`` files and ``+var+``in filenames will be substituted.``use_cheetah``: If true, then any templates encountered will besubstituted with Cheetah.Otherwise ``template_renderer`` or``string.Template`` will be used for templates.``svn_add``: If true, any files written out in directories that are part ofa svn working copy will be added (via ``svn add``).``overwrite``: If false, then don't every overwrite anything.``interactive``: If you are overwriting a file and interactive istrue, then ask before overwriting.``template_renderer``: This is a function for rendering templates(if you don't want to use Cheetah or string.Template).It shouldhave the signature ``template_renderer(content_as_string,vars_as_dict, filename=filename)``."""# This allows you to use a leading +dot+ in filenames which would# otherwise be skipped because leading dots make the file hidden:vars.setdefault('dot', '.')vars.setdefault('plus', '+')use_pkg_resources = isinstance(source, tuple)if use_pkg_resources:names = pkg_resources.resource_listdir(source[0], source[1])else:names = os.listdir(source)names.sort()pad = ' '*(indent*2)if not os.path.exists(dest):if verbosity >= 1:print('%sCreating %s/' % (pad, dest))if not simulate:svn_makedirs(dest, svn_add=svn_add, verbosity=verbosity, pad=pad)elif verbosity >= 2:print('%sDirectory %s exists' % (pad, dest))for name in names:if use_pkg_resources:full = '/'.join([source[1], name])else:full = os.path.join(source, name)reason = should_skip_file(name)if reason:if verbosity >= 2:reason = pad + reason % {'filename': full}print(reason)continueif sub_vars:dest_full = os.path.join(dest, substitute_filename(name, vars))sub_file = Falseif dest_full.endswith('_tmpl'):dest_full = dest_full[:-5]sub_file = sub_varsif use_pkg_resources and pkg_resources.resource_isdir(source[0], full):if verbosity:print('%sRecursing into %s' % (pad, os.path.basename(full)))copy_dir((source[0], full), dest_full, vars, verbosity, simulate, indent=indent+1, use_cheetah=use_cheetah, sub_vars=sub_vars, interactive=interactive, svn_add=svn_add, template_renderer=template_renderer)continueelif not use_pkg_resources and os.path.isdir(full):if verbosity:print('%sRecursing into %s' % (pad, os.path.basename(full)))copy_dir(full, dest_full, vars, verbosity, simulate, indent=indent+1, use_cheetah=use_cheetah, sub_vars=sub_vars, interactive=interactive, svn_add=svn_add, template_renderer=template_renderer)continueelif use_pkg_resources:content = pkg_resources.resource_string(source[0], full)content = content.encode()else:with open(full, 'rb') as f:content = f.read()if sub_file:try:content = content.decode()content = substitute_content(content, vars, filename=full, use_cheetah=use_cheetah, template_renderer=template_renderer)content = content.encode()except SkipTemplate:continueif content is None:continuealready_exists = os.path.exists(dest_full)if already_exists:with open(dest_full, 'rb') as f:old_content = f.read()if old_content == content:if verbosity:print('%s%s already exists (same content)' % (pad, dest_full))continueif interactive:if not query_interactive(full, dest_full, content.decode(), old_content.decode(),simulate=simulate):continueelif not overwrite:continueif verbosity and use_pkg_resources:print('%sCopying %s to %s' % (pad, full, dest_full))elif verbosity:print('%sCopying %s to %s' % (pad, os.path.basename(full), dest_full))if not simulate:with open(dest_full, 'wb') as f:f.write(content)if svn_add and not already_exists:if os.system('svn info %r >/dev/null 2>&1' % os.path.dirname(os.path.abspath(dest_full))) > 0:if verbosity > 1:print('%sNot part of a svn working copy; cannot add file' % pad)else:cmd = ['svn', 'add', dest_full]if verbosity > 1:print('%sRunning: %s' % (pad, ' '.join(cmd)))if not simulate:# @@: Shouldif subprocess is None:raise RuntimeError('copydir failed, environment ' 'does not support subprocess ' 'module')proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)stdout, stderr = proc.communicate()if verbosity > 1 and stdout:print('Script output:')print(stdout)elif svn_add and already_exists and verbosity > 1:print('%sFile already exists (not doing svn add)' % pad)
44
112
12
808
12
25
170
25
source,dest,vars,verbosity,simulate,indent,use_cheetah,sub_vars,interactive,svn_add,overwrite,template_renderer
['proc', 'content', 'already_exists', 'cmd', 'names', 'sub_file', 'old_content', 'use_pkg_resources', 'pad', 'full', 'dest_full', 'reason']
None
{"Assign": 23, "Expr": 21, "For": 1, "If": 34, "Try": 1, "With": 3}
56
146
56
["vars.setdefault", "vars.setdefault", "isinstance", "pkg_resources.resource_listdir", "os.listdir", "names.sort", "os.path.exists", "print", "svn_makedirs", "print", "join", "os.path.join", "should_skip_file", "print", "os.path.join", "substitute_filename", "dest_full.endswith", "pkg_resources.resource_isdir", "print", "os.path.basename", "copy_dir", "os.path.isdir", "print", "os.path.basename", "copy_dir", "pkg_resources.resource_string", "content.encode", "open", "f.read", "content.decode", "substitute_content", "content.encode", "os.path.exists", "open", "f.read", "print", "query_interactive", "content.decode", "old_content.decode", "print", "print", "os.path.basename", "open", "f.write", "os.system", "os.path.dirname", "os.path.abspath", "print", "print", "join", "RuntimeError", "subprocess.Popen", "proc.communicate", "print", "print", "print"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"]
The function (copy_dir) defined within the public class called public.The function start at line 25 and ends at 170. It contains 112 lines of code and it has a cyclomatic complexity of 44. It takes 12 parameters, represented as [25.0] and does not return any value. It declares 56.0 functions, It has 56.0 functions called inside which are ["vars.setdefault", "vars.setdefault", "isinstance", "pkg_resources.resource_listdir", "os.listdir", "names.sort", "os.path.exists", "print", "svn_makedirs", "print", "join", "os.path.join", "should_skip_file", "print", "os.path.join", "substitute_filename", "dest_full.endswith", "pkg_resources.resource_isdir", "print", "os.path.basename", "copy_dir", "os.path.isdir", "print", "os.path.basename", "copy_dir", "pkg_resources.resource_string", "content.encode", "open", "f.read", "content.decode", "substitute_content", "content.encode", "os.path.exists", "open", "f.read", "print", "query_interactive", "content.decode", "old_content.decode", "print", "print", "os.path.basename", "open", "f.write", "os.system", "os.path.dirname", "os.path.abspath", "print", "print", "join", "RuntimeError", "subprocess.Popen", "proc.communicate", "print", "print", "print"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"].
pasteorg_pastescript
public
public
0
0
should_skip_file
def should_skip_file(name):"""Checks if a file should be skipped based on its name.If it should be skipped, returns the reason, otherwise returnsNone."""if name.startswith('.'):return 'Skipping hidden file %(filename)s'if name.endswith('~') or name.endswith('.bak'):return 'Skipping backup file %(filename)s'if name.endswith('.pyc') or name.endswith('.pyo'):return 'Skipping %s file %%(filename)s' % os.path.splitext(name)[1]if name.endswith('$py.class'):return 'Skipping $py.class file %(filename)s'if name in ('CVS', '_darcs'):return 'Skipping version control directory %(filename)s'return None
8
12
1
85
0
172
189
172
name
[]
Returns
{"Expr": 1, "If": 5, "Return": 6}
7
18
7
["name.startswith", "name.endswith", "name.endswith", "name.endswith", "name.endswith", "os.path.splitext", "name.endswith"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"]
The function (should_skip_file) defined within the public class called public.The function start at line 172 and ends at 189. It contains 12 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters, and this function return a value. It declares 7.0 functions, It has 7.0 functions called inside which are ["name.startswith", "name.endswith", "name.endswith", "name.endswith", "name.endswith", "os.path.splitext", "name.endswith"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"].
pasteorg_pastescript
public
public
0
0
query_interactive
def query_interactive(src_fn, dest_fn, src_content, dest_content,simulate):global all_answerfrom difflib import unified_diff, context_diffu_diff = list(unified_diff(dest_content.splitlines(),src_content.splitlines(),dest_fn, src_fn))c_diff = list(context_diff(dest_content.splitlines(),src_content.splitlines(),dest_fn, src_fn))added = len([l for l in u_diff if l.startswith('+') and not l.startswith('+++')])removed = len([l for l in u_diff if l.startswith('-') and not l.startswith('---')])if added > removed:msg = '; %i lines added' % (added-removed)elif removed > added:msg = '; %i lines removed' % (removed-added)else:msg = ''print('Replace %i bytes with %i bytes (%i/%i lines changed%s)' % (len(dest_content), len(src_content),removed, len(dest_content.splitlines()), msg))prompt = 'Overwrite %s [y/n/d/B/?] ' % dest_fnwhile 1:if all_answer is None:response = input(prompt).strip().lower()else:response = all_answerif not response or response[0] == 'b':import shutilnew_dest_fn = dest_fn + '.bak'n = 0while os.path.exists(new_dest_fn):n += 1new_dest_fn = dest_fn + '.bak' + str(n)print('Backing up %s to %s' % (dest_fn, new_dest_fn))if not simulate:shutil.copyfile(dest_fn, new_dest_fn)return Trueelif response.startswith('all '):rest = response[4:].strip()if not rest or rest[0] not in ('y', 'n', 'b'):print(query_usage)continueresponse = all_answer = rest[0]if response[0] == 'y':return Trueelif response[0] == 'n':return Falseelif response == 'dc':print('\n'.join(c_diff))elif response[0] == 'd':print('\n'.join(u_diff))else:print(query_usage)
22
58
5
390
11
194
251
194
src_fn,dest_fn,src_content,dest_content,simulate
['all_answer', 'n', 'rest', 'u_diff', 'c_diff', 'prompt', 'response', 'added', 'new_dest_fn', 'msg', 'removed']
Returns
{"Assign": 15, "AugAssign": 1, "Expr": 7, "If": 11, "Return": 3, "While": 2}
34
58
34
["list", "unified_diff", "dest_content.splitlines", "src_content.splitlines", "list", "context_diff", "dest_content.splitlines", "src_content.splitlines", "len", "l.startswith", "l.startswith", "len", "l.startswith", "l.startswith", "print", "len", "len", "len", "dest_content.splitlines", "lower", "strip", "input", "os.path.exists", "str", "print", "shutil.copyfile", "response.startswith", "strip", "print", "print", "join", "print", "join", "print"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"]
The function (query_interactive) defined within the public class called public.The function start at line 194 and ends at 251. It contains 58 lines of code and it has a cyclomatic complexity of 22. It takes 5 parameters, represented as [194.0], and this function return a value. It declares 34.0 functions, It has 34.0 functions called inside which are ["list", "unified_diff", "dest_content.splitlines", "src_content.splitlines", "list", "context_diff", "dest_content.splitlines", "src_content.splitlines", "len", "l.startswith", "l.startswith", "len", "l.startswith", "l.startswith", "print", "len", "len", "len", "dest_content.splitlines", "lower", "strip", "input", "os.path.exists", "str", "print", "shutil.copyfile", "response.startswith", "strip", "print", "print", "join", "print", "join", "print"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"].
pasteorg_pastescript
public
public
0
0
svn_makedirs
def svn_makedirs(dir, svn_add, verbosity, pad):parent = os.path.dirname(os.path.abspath(dir))if not os.path.exists(parent):svn_makedirs(parent, svn_add, verbosity, pad)os.mkdir(dir)if not svn_add:returnif os.system('svn info %r >/dev/null 2>&1' % parent) > 0:if verbosity > 1:print('%sNot part of a svn working copy; cannot add directory' % pad)returncmd = ['svn', 'add', dir]if verbosity > 1:print('%sRunning: %s' % (pad, ' '.join(cmd)))proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)stdout, stderr = proc.communicate()if verbosity > 1 and stdout:print('Script output:')print(stdout)
8
19
4
151
3
263
281
263
dir,svn_add,verbosity,pad
['proc', 'parent', 'cmd']
None
{"Assign": 4, "Expr": 6, "If": 6, "Return": 2}
13
19
13
["os.path.dirname", "os.path.abspath", "os.path.exists", "svn_makedirs", "os.mkdir", "os.system", "print", "print", "join", "subprocess.Popen", "proc.communicate", "print", "print"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.svn_makedirs"]
The function (svn_makedirs) defined within the public class called public.The function start at line 263 and ends at 281. It contains 19 lines of code and it has a cyclomatic complexity of 8. It takes 4 parameters, represented as [263.0] and does not return any value. It declares 13.0 functions, It has 13.0 functions called inside which are ["os.path.dirname", "os.path.abspath", "os.path.exists", "svn_makedirs", "os.mkdir", "os.system", "print", "print", "join", "subprocess.Popen", "proc.communicate", "print", "print"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.svn_makedirs"].
pasteorg_pastescript
public
public
0
0
substitute_filename
def substitute_filename(fn, vars):for var, value in vars.items():fn = fn.replace('+%s+' % var, str(value))return fn
2
4
2
35
1
283
286
283
fn,vars
['fn']
Returns
{"Assign": 1, "For": 1, "Return": 1}
3
4
3
["vars.items", "fn.replace", "str"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"]
The function (substitute_filename) defined within the public class called public.The function start at line 283 and ends at 286. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [283.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["vars.items", "fn.replace", "str"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"].
pasteorg_pastescript
public
public
0
0
substitute_content
def substitute_content(content, vars, filename='<string>', use_cheetah=False, template_renderer=None):global Cheetahv = standard_vars.copy()v.update(vars)vars = vif template_renderer is not None:return template_renderer(content, vars, filename=filename)if not use_cheetah:tmpl = LaxTemplate(content)try:return tmpl.substitute(TypeMapper(v))except Exception as e:_add_except(e, ' in file %s' % filename)raiseif Cheetah is None:import Cheetah.Templatetmpl = Cheetah.Template.Template(source=content, searchList=[vars])return careful_sub(tmpl, vars, filename)
5
20
5
126
3
288
307
288
content,vars,filename,use_cheetah,template_renderer
['tmpl', 'v', 'vars']
Returns
{"Assign": 4, "Expr": 2, "If": 3, "Return": 3, "Try": 1}
9
20
9
["standard_vars.copy", "v.update", "template_renderer", "LaxTemplate", "tmpl.substitute", "TypeMapper", "_add_except", "Cheetah.Template.Template", "careful_sub"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"]
The function (substitute_content) defined within the public class called public.The function start at line 288 and ends at 307. It contains 20 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [288.0], and this function return a value. It declares 9.0 functions, It has 9.0 functions called inside which are ["standard_vars.copy", "v.update", "template_renderer", "LaxTemplate", "tmpl.substitute", "TypeMapper", "_add_except", "Cheetah.Template.Template", "careful_sub"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"].
pasteorg_pastescript
public
public
0
0
careful_sub
def careful_sub(cheetah_template, vars, filename):"""Substitutes the template with the variables, using the.body() method if it exists.It assumes that the variableswere also passed in via the searchList."""if not hasattr(cheetah_template, 'body'):return sub_catcher(filename, vars, str, cheetah_template)body = cheetah_template.bodyargs, varargs, varkw, defaults = inspect.getargspec(body)call_vars = {}for arg in args:if arg in vars:call_vars[arg] = vars[arg]return sub_catcher(filename, vars, body, **call_vars)
4
10
3
84
2
309
323
309
cheetah_template,vars,filename
['body', 'call_vars']
Returns
{"Assign": 4, "Expr": 1, "For": 1, "If": 2, "Return": 2}
4
15
4
["hasattr", "sub_catcher", "inspect.getargspec", "sub_catcher"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.substitute_content"]
The function (careful_sub) defined within the public class called public.The function start at line 309 and ends at 323. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [309.0], and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["hasattr", "sub_catcher", "inspect.getargspec", "sub_catcher"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.substitute_content"].
pasteorg_pastescript
public
public
0
0
sub_catcher
def sub_catcher(filename, vars, func, *args, **kw):"""Run a substitution, returning the value.If an error occurs, showthe filename.If the error is a NameError, show the variables."""try:return func(*args, **kw)except SkipTemplate as e:print('Skipping file %s' % filename)if str(e):print(str(e))raiseexcept Exception as e:print('Error in file %s:' % filename)if isinstance(e, NameError):for name, value in sorted(vars.items()):print('%s = %r' % (name, value))raise
6
14
5
96
0
325
342
325
filename,vars,func,*args,**kw
[]
Returns
{"Expr": 5, "For": 1, "If": 2, "Return": 1, "Try": 1}
10
18
10
["func", "print", "str", "print", "str", "print", "isinstance", "sorted", "vars.items", "print"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.careful_sub"]
The function (sub_catcher) defined within the public class called public.The function start at line 325 and ends at 342. It contains 14 lines of code and it has a cyclomatic complexity of 6. It takes 5 parameters, represented as [325.0], and this function return a value. It declares 10.0 functions, It has 10.0 functions called inside which are ["func", "print", "str", "print", "str", "print", "isinstance", "sorted", "vars.items", "print"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.careful_sub"].
pasteorg_pastescript
public
public
0
0
html_quote
def html_quote(s):if s is None:return ''return html.escape(str(s), 1)
2
4
1
24
0
344
347
344
s
[]
Returns
{"If": 1, "Return": 2}
2
4
2
["html.escape", "str"]
0
[]
The function (html_quote) defined within the public class called public.The function start at line 344 and ends at 347. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["html.escape", "str"].
pasteorg_pastescript
public
public
0
0
url_quote
def url_quote(s):if s is None:return ''return quote(str(s))
2
4
1
20
0
349
352
349
s
[]
Returns
{"If": 1, "Return": 2}
2
4
2
["quote", "str"]
0
[]
The function (url_quote) defined within the public class called public.The function start at line 349 and ends at 352. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["quote", "str"].
pasteorg_pastescript
public
public
0
0
test
def test(conf, true_cond, false_cond=None):if conf:return true_condelse:return false_cond
2
5
3
20
0
354
358
354
conf,true_cond,false_cond
[]
Returns
{"If": 1, "Return": 2}
0
5
0
[]
54
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517602_chromaway_ngcccbase.coloredcoinlib.tests.test_colordef_py.TestEPOBC.test_run_kernel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517602_chromaway_ngcccbase.coloredcoinlib.tests.test_colordef_py.TestOBC.test_run_kernel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3575929_ministryofjustice_bootstrap_cfn.bootstrap_cfn.utils_py.delete_stale_types", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.codec_py.dotest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637518_suse_enceladus.mockboto3.mockboto3.iam.endpoints_py.mock_iam", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.tests.basic_py.DefinitionTests.test_custom_base_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.main_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestAttributesNoAutoEncoding.test_pygetattr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestAttributesNoAutoEncoding.test_pysetattr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestLuaRuntime.test_call_str_class", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestLuaRuntime.test_pygetattr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestLuaRuntime.test_pysetattr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestStrNoAutoEncoding.test_call_str_class", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682905_psy0rz_zfs_autobackup.tests.test_executenode_py.TestExecuteNode.test_script_handlers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.core.py33.runner_py.DeferringTextTestRunner.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.core.py33.suite_py.DeferrableTestSuite.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.core.py38.runner_py.DeferringTextTestRunner.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.core.py38.suite_py.DeferrableTestSuite.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707142_anaconda_platform_anaconda_client.tests.runner_py.ColorTextTestRunner.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.tests.test_unit_py.TestField.test_auto_db_column", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720175_gabrielfalcao_httpretty.httpretty.core_py.httprettified", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.helpers_py.expected_failure", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917199_bugsnag_bugsnag_python.tests.test_breadcrumbs_py.test_the_breadcrumb_list_is_separate_on_different_async_contexts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917199_bugsnag_bugsnag_python.tests.test_context_py.test_state_is_stored_separately_per_async_context", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925410_remyroy_cdda_game_launcher.cddagl.ui.views.mods_py.ModsTab.download_http_finished"]
The function (test) defined within the public class called public.The function start at line 354 and ends at 358. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [354.0], and this function return a value. It has 54.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517602_chromaway_ngcccbase.coloredcoinlib.tests.test_colordef_py.TestEPOBC.test_run_kernel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517602_chromaway_ngcccbase.coloredcoinlib.tests.test_colordef_py.TestOBC.test_run_kernel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3575929_ministryofjustice_bootstrap_cfn.bootstrap_cfn.utils_py.delete_stale_types", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637460_apache_qpid_python.qpid.tests.codec_py.dotest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637518_suse_enceladus.mockboto3.mockboto3.iam.endpoints_py.mock_iam", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.tests.basic_py.DefinitionTests.test_custom_base_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.main_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestAttributesNoAutoEncoding.test_pygetattr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestAttributesNoAutoEncoding.test_pysetattr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestLuaRuntime.test_call_str_class", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestLuaRuntime.test_pygetattr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestLuaRuntime.test_pysetattr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681444_scoder_lupa.lupa.tests.test_py.TestStrNoAutoEncoding.test_call_str_class", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682905_psy0rz_zfs_autobackup.tests.test_executenode_py.TestExecuteNode.test_script_handlers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.core.py33.runner_py.DeferringTextTestRunner.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.core.py33.suite_py.DeferrableTestSuite.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.core.py38.runner_py.DeferringTextTestRunner.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.core.py38.suite_py.DeferrableTestSuite.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707142_anaconda_platform_anaconda_client.tests.runner_py.ColorTextTestRunner.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.tests.test_unit_py.TestField.test_auto_db_column", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720175_gabrielfalcao_httpretty.httpretty.core_py.httprettified", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.helpers_py.expected_failure", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917199_bugsnag_bugsnag_python.tests.test_breadcrumbs_py.test_the_breadcrumb_list_is_separate_on_different_async_contexts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917199_bugsnag_bugsnag_python.tests.test_context_py.test_state_is_stored_separately_per_async_context", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925410_remyroy_cdda_game_launcher.cddagl.ui.views.mods_py.ModsTab.download_http_finished"].
pasteorg_pastescript
public
public
0
0
skip_template
def skip_template(condition=True, *args):"""Raise SkipTemplate, which causes copydir to skip the templatebeing processed.If you pass in a condition, only raise if thatcondition is true (allows you to use this with string.Template)If you pass any additional arguments, they will be used toinstantiate SkipTemplate (generally use like``skip_template(license=='GPL', 'Skipping file; not using GPL')``)"""if condition:raise SkipTemplate(*args)
2
3
2
20
0
360
371
360
condition,*args
[]
None
{"Expr": 1, "If": 1}
1
12
1
["SkipTemplate"]
0
[]
The function (skip_template) defined within the public class called public.The function start at line 360 and ends at 371. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [360.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["SkipTemplate"].
pasteorg_pastescript
public
public
0
0
_add_except
def _add_except(exc, info):if not hasattr(exc, 'args') or exc.args is None:returnargs = list(exc.args)if args:args[0] += ' ' + infoelse:args = [info]exc.args = tuple(args)return
4
10
2
58
1
373
382
373
exc,info
['args']
None
{"Assign": 3, "AugAssign": 1, "If": 2, "Return": 2}
3
10
3
["hasattr", "list", "tuple"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.eval_with_catch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.substitute_content"]
The function (_add_except) defined within the public class called public.The function start at line 373 and ends at 382. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [373.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["hasattr", "list", "tuple"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.eval_with_catch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.substitute_content"].
pasteorg_pastescript
TypeMapper
public
0
1
__getitem__
def __getitem__(self, item):options = item.split('|')for op in options[:-1]:try:value = eval_with_catch(op, dict(self.items()))breakexcept (NameError, KeyError):passelse:value = eval(options[-1], dict(self.items()))if value is None:return ''else:return str(value)
4
14
2
86
0
400
413
400
self,item
[]
Returns
{"Assign": 3, "For": 1, "If": 1, "Return": 2, "Try": 1}
8
14
8
["item.split", "eval_with_catch", "dict", "self.items", "eval", "dict", "self.items", "str"]
30
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.structure.buffer_views_py.BufferView.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.feed_py.Lists.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.store_py.AbstractStore.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.functional_py.LowerDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3649567_noirello_bonsai.src.bonsai.ldapvaluelist_py.LDAPValueList.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.data.imagenet_py._TinyImagenet200Val.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3666831_ethereum_py_ssz.ssz.hashable_container_py.HashableContainer.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3666831_ethereum_py_ssz.ssz.hashable_container_py.HashableContainerEvolver.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696065_m_labs_nmigen.nmigen.hdl.rec_py.Record.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707142_anaconda_platform_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_execution_cleanup_py.MockParams.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717389_googlechromelabs_pywebsocket3.test.mock_py.MockTable.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3920629_tehkillerbee_mopidy_tidal.mopidy_tidal.lru_cache_py.LruCache.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3920629_tehkillerbee_mopidy_tidal.mopidy_tidal.playlists_py.PlaylistCache.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928894_linbit_linstor_api_py.linstor.kv_py.KV.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928985_sumerc_yappi.yappi.yappi_py.YStatsIndexable.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69650689_citrineinformatics_gemd_python.gemd.entity.case_insensitive_dict_py.CaseInsensitiveDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69650689_citrineinformatics_gemd_python.gemd.enumeration.base_enumeration_py.migrated_enum", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70112360_jaraco_jaraco_text.jaraco.text.__init___py.WordSet.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.lrudict_py.lrudict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.algebras.hecke_algebras.cubic_hecke_matrix_rep_py.CubicHeckeMatrixRep.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.algebras.lie_algebras.lie_algebra_py.LieAlgebra.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.algebras.lie_algebras.subalgebra_py.LieSubalgebra_finite_dimensional_with_basis.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.combinat.root_system.non_symmetric_macdonald_polynomials_py.NonSymmetricMacdonaldPolynomials.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.combinat.words.word_infinite_datatypes_py.WordDatatype_callable_with_caching.__getitem__"]
The function (__getitem__) defined within the public class called TypeMapper, that inherit another class.The function start at line 400 and ends at 413. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [400.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["item.split", "eval_with_catch", "dict", "self.items", "eval", "dict", "self.items", "str"], It has 30.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.structure.buffer_views_py.BufferView.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.feed_py.Lists.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.store_py.AbstractStore.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.functional_py.LowerDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3649567_noirello_bonsai.src.bonsai.ldapvaluelist_py.LDAPValueList.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.data.imagenet_py._TinyImagenet200Val.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3666831_ethereum_py_ssz.ssz.hashable_container_py.HashableContainer.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3666831_ethereum_py_ssz.ssz.hashable_container_py.HashableContainerEvolver.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696065_m_labs_nmigen.nmigen.hdl.rec_py.Record.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707142_anaconda_platform_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_execution_cleanup_py.MockParams.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717389_googlechromelabs_pywebsocket3.test.mock_py.MockTable.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3920629_tehkillerbee_mopidy_tidal.mopidy_tidal.lru_cache_py.LruCache.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3920629_tehkillerbee_mopidy_tidal.mopidy_tidal.playlists_py.PlaylistCache.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928894_linbit_linstor_api_py.linstor.kv_py.KV.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928985_sumerc_yappi.yappi.yappi_py.YStatsIndexable.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69650689_citrineinformatics_gemd_python.gemd.entity.case_insensitive_dict_py.CaseInsensitiveDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69650689_citrineinformatics_gemd_python.gemd.enumeration.base_enumeration_py.migrated_enum", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70112360_jaraco_jaraco_text.jaraco.text.__init___py.WordSet.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.lrudict_py.lrudict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.algebras.hecke_algebras.cubic_hecke_matrix_rep_py.CubicHeckeMatrixRep.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.algebras.lie_algebras.lie_algebra_py.LieAlgebra.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.algebras.lie_algebras.subalgebra_py.LieSubalgebra_finite_dimensional_with_basis.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.combinat.root_system.non_symmetric_macdonald_polynomials_py.NonSymmetricMacdonaldPolynomials.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.combinat.words.word_infinite_datatypes_py.WordDatatype_callable_with_caching.__getitem__"].
pasteorg_pastescript
public
public
0
0
eval_with_catch
def eval_with_catch(expr, vars):try:return eval(expr, vars)except Exception as e:_add_except(e, 'in expression %r' % expr)raise
2
6
2
30
0
415
420
415
expr,vars
[]
Returns
{"Expr": 1, "Return": 1, "Try": 1}
2
6
2
["eval", "_add_except"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.TypeMapper.__getitem__"]
The function (eval_with_catch) defined within the public class called public.The function start at line 415 and ends at 420. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [415.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["eval", "_add_except"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.TypeMapper.__getitem__"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
command
def command(self):if self.options.list_templates:return self.list_templates()asked_tmpls = self.options.templates or ['basic_package']templates = []for tmpl_name in asked_tmpls:self.extend_templates(templates, tmpl_name)if self.options.list_variables:return self.list_variables(templates)if self.verbose:print('Selected and implied templates:')max_tmpl_name = max([len(tmpl_name) for tmpl_name, tmpl in templates])for tmpl_name, tmpl in templates:print('%s%s%s' % (tmpl_name, ' '*(max_tmpl_name-len(tmpl_name)),tmpl.summary))print()if not self.args:if self.interactive:dist_name = self.challenge('Enter project name')else:raise BadCommand('You must provide a PACKAGE_NAME')else:dist_name = self.args[0].lstrip(os.path.sep)templates = [tmpl for name, tmpl in templates]output_dir = os.path.join(self.options.output_dir, dist_name)pkg_name = self._bad_chars_re.sub('', dist_name.lower())vars = {'project': dist_name,'package': pkg_name,'egg': pluginlib.egg_name(dist_name),}vars.update(self.parse_vars(self.args[1:]))if self.options.config and os.path.exists(self.options.config):for key, value in self.read_vars(self.options.config).items():vars.setdefault(key, value)if self.verbose: # @@: > 1?self.display_vars(vars)if self.options.inspect_files:self.inspect_files(output_dir, templates, vars)returnif not os.path.exists(output_dir):# We want to avoid asking questions in copydir if the path# doesn't exist yetcopydir.all_answer = 'y'if self.options.svn_repository:self.setup_svn_repository(output_dir, dist_name)# First we want to make sure all the templates get a chance to# set their variables, all at once, with the most specialized# template going first (the last template is the most# specialized)...for template in templates[::-1]:vars = template.check_vars(vars, self)# Gather all the templates egg_plugins into one varegg_plugins = set()for template in templates:egg_plugins.update(template.egg_plugins)egg_plugins = sorted(egg_plugins)vars['egg_plugins'] = egg_pluginsfor template in templates:self.create_template(template, output_dir, vars)found_setup_py = Falsepaster_plugins_mtime = Noneif os.path.exists(os.path.join(output_dir, 'setup.py')):# Grab paster_plugins.txt's mtime; used to determine if the# egg_info command wrote to ittry:egg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name)except IOError:egg_info_dir = Noneif egg_info_dir is not None:plugins_path = os.path.join(egg_info_dir, 'paster_plugins.txt')if os.path.exists(plugins_path):paster_plugins_mtime = os.path.getmtime(plugins_path)self.run_command(sys.executable, 'setup.py', 'egg_info', cwd=output_dir, # This shouldn't be necessary, but a bug in setuptools 0.6c3 is causing a (not entirely fatal) problem that I don't want to fix right now: expect_returncode=True)found_setup_py = Trueelif self.verbose > 1:print('No setup.py (cannot run egg_info)')package_dir = vars.get('package_dir', None)if package_dir:output_dir = os.path.join(output_dir, package_dir)# With no setup.py this doesn't make sense:if found_setup_py:# Only write paster_plugins.txt if it wasn't written by# egg_info (the correct way). leaving us to do it is# deprecated and you'll get warnedegg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name)plugins_path = os.path.join(egg_info_dir, 'paster_plugins.txt')if len(egg_plugins) and (not os.path.exists(plugins_path) or \os.path.getmtime(plugins_path) == paster_plugins_mtime):if self.verbose:print(('Manually creating paster_plugins.txt (deprecated! ' 'pass a paster_plugins keyword to setup() instead)'), file=sys.stderr)for plugin in egg_plugins:if self.verbose:print('Adding %s to paster_plugins.txt' % plugin)if not self.simulate:pluginlib.add_plugin(egg_info_dir, plugin)if self.options.svn_repository:self.add_svn_repository(vars, output_dir)if self.options.config:write_vars = vars.copy()del write_vars['project']del write_vars['package']self.write_vars(self.options.config, write_vars)
37
95
1
712
0
65
187
65
self
[]
Returns
{"Assign": 26, "Expr": 18, "For": 7, "If": 22, "Return": 3, "Try": 1}
52
123
52
["self.list_templates", "self.extend_templates", "self.list_variables", "print", "max", "len", "print", "len", "print", "self.challenge", "BadCommand", "lstrip", "os.path.join", "self._bad_chars_re.sub", "dist_name.lower", "pluginlib.egg_name", "vars.update", "self.parse_vars", "os.path.exists", "items", "self.read_vars", "vars.setdefault", "self.display_vars", "self.inspect_files", "os.path.exists", "self.setup_svn_repository", "template.check_vars", "set", "egg_plugins.update", "sorted", "self.create_template", "os.path.exists", "os.path.join", "pluginlib.egg_info_dir", "os.path.join", "os.path.exists", "os.path.getmtime", "self.run_command", "print", "vars.get", "os.path.join", "pluginlib.egg_info_dir", "os.path.join", "len", "os.path.exists", "os.path.getmtime", "print", "print", "pluginlib.add_plugin", "self.add_svn_repository", "vars.copy", "self.write_vars"]
59
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569468_lun_4_jose.ext.exec_py.Exec._eval", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569468_lun_4_jose.ext.exec_py.Exec.retry", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.develop_py.Develop.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestMongoAuth.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestMongoAuth.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestX509.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.txmongo.collection_py.Collection.rename", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.collectors.available.software.long_lived.mongo3_py.runDbStats", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914039_jaraco_wolframalpha.wolframalpha.pmxbot_py.wa", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_cisco_health_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925757_notenoughmods_notenoughmodpolling.NotEnoughMods_Tools_py.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.auth_py.generate_auth_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.blocks_py.verify_blocks_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.argos_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.currency_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.difficulties", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.list_blocks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.license_py.license_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.money_py.cmd_amount", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.tx_history_py.transaction_history", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._help", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._map", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._with", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py.addnote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py.addpriv"]
The function (command) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 65 and ends at 187. It contains 95 lines of code and it has a cyclomatic complexity of 37. The function does not take any parameters, and this function return a value. It declares 52.0 functions, It has 52.0 functions called inside which are ["self.list_templates", "self.extend_templates", "self.list_variables", "print", "max", "len", "print", "len", "print", "self.challenge", "BadCommand", "lstrip", "os.path.join", "self._bad_chars_re.sub", "dist_name.lower", "pluginlib.egg_name", "vars.update", "self.parse_vars", "os.path.exists", "items", "self.read_vars", "vars.setdefault", "self.display_vars", "self.inspect_files", "os.path.exists", "self.setup_svn_repository", "template.check_vars", "set", "egg_plugins.update", "sorted", "self.create_template", "os.path.exists", "os.path.join", "pluginlib.egg_info_dir", "os.path.join", "os.path.exists", "os.path.getmtime", "self.run_command", "print", "vars.get", "os.path.join", "pluginlib.egg_info_dir", "os.path.join", "len", "os.path.exists", "os.path.getmtime", "print", "print", "pluginlib.add_plugin", "self.add_svn_repository", "vars.copy", "self.write_vars"], It has 59.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569468_lun_4_jose.ext.exec_py.Exec._eval", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569468_lun_4_jose.ext.exec_py.Exec.retry", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.develop_py.Develop.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestMongoAuth.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestMongoAuth.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestX509.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.txmongo.collection_py.Collection.rename", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.collectors.available.software.long_lived.mongo3_py.runDbStats", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914039_jaraco_wolframalpha.wolframalpha.pmxbot_py.wa", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_cisco_health_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925757_notenoughmods_notenoughmodpolling.NotEnoughMods_Tools_py.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.auth_py.generate_auth_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.blocks_py.verify_blocks_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.argos_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.currency_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.difficulties", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.list_blocks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.license_py.license_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.money_py.cmd_amount", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.tx_history_py.transaction_history", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._help", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._map", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._with", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py.addnote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py.addpriv"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
create_template
def create_template(self, template, output_dir, vars):if self.verbose:print('Creating template %s' % template.name)template.run(self, output_dir, vars)
2
4
4
34
0
189
192
189
self,template,output_dir,vars
[]
None
{"Expr": 2, "If": 1}
2
4
2
["print", "template.run"]
0
[]
The function (create_template) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 189 and ends at 192. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [189.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["print", "template.run"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
setup_svn_repository
def setup_svn_repository(self, output_dir, dist_name):# @@: Use subprocesssvn_repos = self.options.svn_repositorysvn_repos_path = os.path.join(svn_repos, dist_name).replace('\\','/')svn_command = 'svn'if sys.platform == 'win32':svn_command += '.exe'# @@: The previous method of formatting this string using \ doesn't work on Windowscmd = '%(svn_command)s mkdir %(svn_repos_path)s' + \' %(svn_repos_path)s/trunk %(svn_repos_path)s/tags' + \' %(svn_repos_path)s/branches -m "New project %(dist_name)s"'cmd = cmd % {'svn_repos_path': svn_repos_path,'dist_name': dist_name,'svn_command':svn_command,}if self.verbose:print("Running:")print(cmd)if not self.simulate:os.system(cmd)svn_repos_path_trunk = os.path.join(svn_repos_path,'trunk').replace('\\','/')cmd = svn_command+' co "%s" "%s"' % (svn_repos_path_trunk, output_dir)if self.verbose:print("Running %s" % cmd)if not self.simulate:os.system(cmd)
6
25
3
153
0
194
220
194
self,output_dir,dist_name
[]
None
{"Assign": 7, "AugAssign": 1, "Expr": 5, "If": 5}
9
27
9
["replace", "os.path.join", "print", "print", "os.system", "replace", "os.path.join", "print", "os.system"]
0
[]
The function (setup_svn_repository) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 194 and ends at 220. It contains 25 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [194.0] and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["replace", "os.path.join", "print", "print", "os.system", "replace", "os.path.join", "print", "os.system"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
add_svn_repository
def add_svn_repository(self, vars, output_dir):svn_repos = self.options.svn_repositoryegg_info_dir = pluginlib.egg_info_dir(output_dir, vars['project'])svn_command = 'svn'if sys.platform == 'win32':svn_command += '.exe'self.run_command(svn_command, 'add', '-N', egg_info_dir)paster_plugins_file = os.path.join(egg_info_dir, 'paster_plugins.txt')if os.path.exists(paster_plugins_file):self.run_command(svn_command, 'add', paster_plugins_file)self.run_command(svn_command, 'ps', 'svn:ignore', '\n'.join(self.ignore_egg_info_files), egg_info_dir)if self.verbose:print ("You must next run 'svn commit' to commit the " "files to repository")
4
17
3
117
0
232
248
232
self,vars,output_dir
[]
None
{"Assign": 4, "AugAssign": 1, "Expr": 4, "If": 3}
8
17
8
["pluginlib.egg_info_dir", "self.run_command", "os.path.join", "os.path.exists", "self.run_command", "self.run_command", "join", "print"]
0
[]
The function (add_svn_repository) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 232 and ends at 248. It contains 17 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [232.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["pluginlib.egg_info_dir", "self.run_command", "os.path.join", "os.path.exists", "self.run_command", "self.run_command", "join", "print"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
extend_templates
def extend_templates(self, templates, tmpl_name):if '#' in tmpl_name:dist_name, tmpl_name = tmpl_name.split('#', 1)else:dist_name, tmpl_name = None, tmpl_nameif dist_name is None:for entry in self.all_entry_points():if entry.name == tmpl_name:tmpl = entry.load()(entry.name)dist_name = entry.dist.project_namebreakelse:raise LookupError('Template by name %r not found' % tmpl_name)else:dist = pkg_resources.get_distribution(dist_name)entry = dist.get_entry_info('paste.paster_create_template', tmpl_name)tmpl = entry.load()(entry.name)full_name = '%s#%s' % (dist_name, tmpl_name)for item_full_name, item_tmpl in templates:if item_full_name == full_name:# Already loadedreturnfor req_name in tmpl.required_templates:self.extend_templates(templates, req_name)templates.append((full_name, tmpl))
8
26
3
164
0
250
276
250
self,templates,tmpl_name
[]
None
{"Assign": 8, "Expr": 2, "For": 3, "If": 4, "Return": 1}
9
27
9
["tmpl_name.split", "self.all_entry_points", "entry.load", "LookupError", "pkg_resources.get_distribution", "dist.get_entry_info", "entry.load", "self.extend_templates", "templates.append"]
0
[]
The function (extend_templates) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 250 and ends at 276. It contains 26 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [250.0] and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["tmpl_name.split", "self.all_entry_points", "entry.load", "LookupError", "pkg_resources.get_distribution", "dist.get_entry_info", "entry.load", "self.extend_templates", "templates.append"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
all_entry_points
def all_entry_points(self):if not hasattr(self, '_entry_points'):self._entry_points = list(pkg_resources.iter_entry_points('paste.paster_create_template'))return self._entry_points
2
5
1
31
0
278
282
278
self
[]
Returns
{"Assign": 1, "If": 1, "Return": 1}
3
5
3
["hasattr", "list", "pkg_resources.iter_entry_points"]
0
[]
The function (all_entry_points) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 278 and ends at 282. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["hasattr", "list", "pkg_resources.iter_entry_points"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
display_vars
def display_vars(self, vars):vars = sorted(vars.items())print('Variables:')max_var = max([len(n) for n, v in vars])for name, value in vars:print('%s:%s%s' % (name, ' '*(max_var-len(name)), value))
3
7
2
66
0
284
290
284
self,vars
[]
None
{"Assign": 2, "Expr": 2, "For": 1}
7
7
7
["sorted", "vars.items", "print", "max", "len", "print", "len"]
0
[]
The function (display_vars) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 284 and ends at 290. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [284.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["sorted", "vars.items", "print", "max", "len", "print", "len"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
list_templates
def list_templates(self):templates = []for entry in self.all_entry_points():try:templates.append(entry.load()(entry.name))except Exception as e:# We will not be stopped!print('Warning: could not load entry point %s (%s: %s)' % (entry.name, e.__class__.__name__, e))max_name = max([len(t.name) for t in templates])templates = sorted(templates, key=lambda a: a.name)print('Available templates:')for template in templates:# @@: Wrap descriptionprint('%s:%s%s' % (template.name,' '*(max_name-len(template.name)),template.summary))
5
16
1
126
0
292
309
292
self
[]
None
{"Assign": 3, "Expr": 4, "For": 2, "Try": 1}
10
18
10
["self.all_entry_points", "templates.append", "entry.load", "print", "max", "len", "sorted", "print", "print", "len"]
0
[]
The function (list_templates) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 292 and ends at 309. It contains 16 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["self.all_entry_points", "templates.append", "entry.load", "print", "max", "len", "sorted", "print", "print", "len"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
inspect_files
def inspect_files(self, output_dir, templates, vars):file_sources = {}for template in templates:self._find_files(template, vars, file_sources)self._show_files(output_dir, file_sources)self._show_leftovers(output_dir, file_sources)
2
6
4
46
0
311
316
311
self,output_dir,templates,vars
[]
None
{"Assign": 1, "Expr": 3, "For": 1}
3
6
3
["self._find_files", "self._show_files", "self._show_leftovers"]
0
[]
The function (inspect_files) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 311 and ends at 316. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [311.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self._find_files", "self._show_files", "self._show_leftovers"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
_find_files
def _find_files(self, template, vars, file_sources):tmpl_dir = template.template_dir()self._find_template_files(template, tmpl_dir, vars, file_sources)
1
4
4
30
0
318
321
318
self,template,vars,file_sources
[]
None
{"Assign": 1, "Expr": 1}
2
4
2
["template.template_dir", "self._find_template_files"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3666831_ethereum_py_ssz._project_template.fill_template_vars_py._replace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719451_ethereum_pyrlp._project_template.fill_template_vars_py._replace"]
The function (_find_files) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 318 and ends at 321. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [318.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["template.template_dir", "self._find_template_files"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3666831_ethereum_py_ssz._project_template.fill_template_vars_py._replace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719451_ethereum_pyrlp._project_template.fill_template_vars_py._replace"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
_find_template_files
def _find_template_files(self, template, tmpl_dir, vars, file_sources, join=''):full_dir = os.path.join(tmpl_dir, join)for name in os.listdir(full_dir):if name.startswith('.'):continueif os.path.isdir(os.path.join(full_dir, name)):self._find_template_files(template, tmpl_dir, vars, file_sources,join=os.path.join(join, name))continuepartial = os.path.join(join, name)for name, value in vars.items():partial = partial.replace('+%s+' % name, value)if partial.endswith('_tmpl'):partial = partial[:-5]file_sources.setdefault(partial, []).append(template)
6
17
6
158
0
323
339
323
self,template,tmpl_dir,vars,file_sources,join
[]
None
{"Assign": 4, "Expr": 2, "For": 2, "If": 3}
13
17
13
["os.path.join", "os.listdir", "name.startswith", "os.path.isdir", "os.path.join", "self._find_template_files", "os.path.join", "os.path.join", "vars.items", "partial.replace", "partial.endswith", "append", "file_sources.setdefault"]
0
[]
The function (_find_template_files) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 323 and ends at 339. It contains 17 lines of code and it has a cyclomatic complexity of 6. It takes 6 parameters, represented as [323.0] and does not return any value. It declares 13.0 functions, and It has 13.0 functions called inside which are ["os.path.join", "os.listdir", "name.startswith", "os.path.isdir", "os.path.join", "self._find_template_files", "os.path.join", "os.path.join", "vars.items", "partial.replace", "partial.endswith", "append", "file_sources.setdefault"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
_show_files
def _show_files(self, output_dir, file_sources, join='', indent=0):pad = ' '*(2*indent)full_dir = os.path.join(output_dir, join)names = os.listdir(full_dir)dirs = [n for n in namesif os.path.isdir(os.path.join(full_dir, n))]fns = [n for n in names if not os.path.isdir(os.path.join(full_dir, n))]dirs.sort()names.sort()for name in names:skip_this = Falsefor ext in self._ignore_filenames:if fnmatch.fnmatch(name, ext):if self.verbose > 1:print('%sIgnoring %s' % (pad, name))skip_this = Truebreakif skip_this:continuepartial = os.path.join(join, name)if partial not in file_sources:if self.verbose > 1:print('%s%s (not from template)' % (pad, name))continuetemplates = file_sources.pop(partial)print('%s%s from:' % (pad, name))for template in templates:print('%s%s' % (pad, template.name))for dir in dirs:if dir in self._ignore_dirs:continueprint('%sRecursing into %s/' % (pad, dir))self._show_files(output_dir, file_sources,join=os.path.join(join, dir),indent=indent+1)
15
37
5
282
0
344
380
344
self,output_dir,file_sources,join,indent
[]
None
{"Assign": 9, "Expr": 8, "For": 4, "If": 6}
18
37
18
["os.path.join", "os.listdir", "os.path.isdir", "os.path.join", "os.path.isdir", "os.path.join", "dirs.sort", "names.sort", "fnmatch.fnmatch", "print", "os.path.join", "print", "file_sources.pop", "print", "print", "print", "self._show_files", "os.path.join"]
0
[]
The function (_show_files) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 344 and ends at 380. It contains 37 lines of code and it has a cyclomatic complexity of 15. It takes 5 parameters, represented as [344.0] and does not return any value. It declares 18.0 functions, and It has 18.0 functions called inside which are ["os.path.join", "os.listdir", "os.path.isdir", "os.path.join", "os.path.isdir", "os.path.join", "dirs.sort", "names.sort", "fnmatch.fnmatch", "print", "os.path.join", "print", "file_sources.pop", "print", "print", "print", "self._show_files", "os.path.join"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
_show_leftovers
def _show_leftovers(self, output_dir, file_sources):if not file_sources:returnprint()print('These files were supposed to be generated by templates')print('but were not found:')file_sources = sorted(file_sources.items())for partial, templates in file_sources:print('%s from:' % partial)for template in templates:print('%s' % template.name)
4
11
3
61
0
382
392
382
self,output_dir,file_sources
[]
None
{"Assign": 1, "Expr": 5, "For": 2, "If": 1, "Return": 1}
7
11
7
["print", "print", "print", "sorted", "file_sources.items", "print", "print"]
0
[]
The function (_show_leftovers) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 382 and ends at 392. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [382.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["print", "print", "print", "sorted", "file_sources.items", "print", "print"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
list_variables
def list_variables(self, templates):for tmpl_name, tmpl in templates:if not tmpl.read_vars():if self.verbose > 1:self._show_template_vars(tmpl_name, tmpl, 'No variables found')continueself._show_template_vars(tmpl_name, tmpl)
4
8
2
48
0
394
401
394
self,templates
[]
None
{"Expr": 2, "For": 1, "If": 2}
3
8
3
["tmpl.read_vars", "self._show_template_vars", "self._show_template_vars"]
0
[]
The function (list_variables) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 394 and ends at 401. It contains 8 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [394.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["tmpl.read_vars", "self._show_template_vars", "self._show_template_vars"].
pasteorg_pastescript
CreateDistroCommand
public
0
1
_show_template_vars
def _show_template_vars(self, tmpl_name, tmpl, message=None):title = '%s (from %s)' % (tmpl.name, tmpl_name)print(title)print('-'*len(title))if message is not None:print('%s' % message)print()returntmpl.print_vars(indent=2)
2
9
4
61
0
403
411
403
self,tmpl_name,tmpl,message
[]
None
{"Assign": 1, "Expr": 5, "If": 1, "Return": 1}
6
9
6
["print", "print", "len", "print", "print", "tmpl.print_vars"]
0
[]
The function (_show_template_vars) defined within the public class called CreateDistroCommand, that inherit another class.The function start at line 403 and ends at 411. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [403.0] and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["print", "print", "len", "print", "print", "tmpl.print_vars"].
pasteorg_pastescript
public
public
0
0
add_custom_options
def add_custom_options(parser):"""This method can modify the ``parser`` object (which is an``optparse.OptionParser`` instance).This can be used to add newoptions to the command."""pass
1
2
1
7
0
10
16
10
parser
[]
None
{"Expr": 1}
0
7
0
[]
0
[]
The function (add_custom_options) defined within the public class called public.The function start at line 10 and ends at 16. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
pasteorg_pastescript
public
public
0
0
default_config_filename
def default_config_filename(installer):"""This function can return a default filename or directory for theconfiguration file, if none was explicitly given.Return None to mean no preference.The first non-None returningvalue will be used.Pay attention to ``installer.expect_config_directory`` here,and to ``installer.default_config_filename``."""return installer.default_config_filename
1
2
1
10
0
18
29
18
installer
[]
Returns
{"Expr": 1, "Return": 1}
0
12
0
[]
0
[]
The function (default_config_filename) defined within the public class called public.The function start at line 18 and ends at 29. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value..
pasteorg_pastescript
public
public
0
0
install_variables
def install_variables(installer):"""Returns a dictionary of variables for use later in the process(e.g., filling a configuration file).These are combined from allsysconfig files."""return {}
1
2
1
9
0
31
37
31
installer
[]
Returns
{"Expr": 1, "Return": 1}
0
7
0
[]
0
[]
The function (install_variables) defined within the public class called public.The function start at line 31 and ends at 37. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value..
pasteorg_pastescript
public
public
0
0
post_setup_hook
def post_setup_hook(installer, config_file):"""This is called at the very end of ``paster setup-app``.Youmight use it to register an application globally."""pass
1
2
2
9
0
39
44
39
installer,config_file
[]
None
{"Expr": 1}
0
6
0
[]
0
[]
The function (post_setup_hook) defined within the public class called public.The function start at line 39 and ends at 44. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [39.0] and does not return any value..
pasteorg_pastescript
EntryPointCommand
public
0
1
command
def command(self):if self.options.list_entry_points:return self.list_entry_points()if self.options.show_egg:return self.show_egg(self.options.show_egg)if not self.args:raise BadCommand("You must give an entry point (or --list)")pattern = self.get_pattern(self.args[0])groups = self.get_groups_by_pattern(pattern)if not groups:raise BadCommand('No group matched %s' % self.args[0])ep_pat = Noneif len(self.args) > 1:ep_pat = self.get_pattern(self.args[1])for group in groups:desc = self.get_group_description(group)print('[%s]' % group)if desc:print(self.wrap(desc))print()self.print_entry_points_by_group(group, ep_pat)
8
21
1
152
0
43
63
43
self
[]
Returns
{"Assign": 5, "Expr": 4, "For": 1, "If": 6, "Return": 2}
14
21
14
["self.list_entry_points", "self.show_egg", "BadCommand", "self.get_pattern", "self.get_groups_by_pattern", "BadCommand", "len", "self.get_pattern", "self.get_group_description", "print", "print", "self.wrap", "print", "self.print_entry_points_by_group"]
59
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569468_lun_4_jose.ext.exec_py.Exec._eval", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569468_lun_4_jose.ext.exec_py.Exec.retry", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.develop_py.Develop.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestMongoAuth.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestMongoAuth.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestX509.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.txmongo.collection_py.Collection.rename", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.collectors.available.software.long_lived.mongo3_py.runDbStats", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914039_jaraco_wolframalpha.wolframalpha.pmxbot_py.wa", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_cisco_health_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925757_notenoughmods_notenoughmodpolling.NotEnoughMods_Tools_py.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.auth_py.generate_auth_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.blocks_py.verify_blocks_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.argos_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.currency_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.difficulties", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.list_blocks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.license_py.license_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.money_py.cmd_amount", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.tx_history_py.transaction_history", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._help", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._map", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._with", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py.addnote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py.addpriv"]
The function (command) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 43 and ends at 63. It contains 21 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters, and this function return a value. It declares 14.0 functions, It has 14.0 functions called inside which are ["self.list_entry_points", "self.show_egg", "BadCommand", "self.get_pattern", "self.get_groups_by_pattern", "BadCommand", "len", "self.get_pattern", "self.get_group_description", "print", "print", "self.wrap", "print", "self.print_entry_points_by_group"], It has 59.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569468_lun_4_jose.ext.exec_py.Exec._eval", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569468_lun_4_jose.ext.exec_py.Exec.retry", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.develop_py.Develop.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestMongoAuth.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestMongoAuth.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.tests.advanced.test_auth_py.TestX509.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682841_twisted_txmongo.txmongo.collection_py.Collection.rename", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.collectors.available.software.long_lived.mongo3_py.runDbStats", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914039_jaraco_wolframalpha.wolframalpha.pmxbot_py.wa", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_cisco_health_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925757_notenoughmods_notenoughmodpolling.NotEnoughMods_Tools_py.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.auth_py.generate_auth_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.blocks_py.verify_blocks_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.argos_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.currency_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.difficulties", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.commands_py.list_blocks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.license_py.license_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.money_py.cmd_amount", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926013_duniter_silkaj.silkaj.tx_history_py.transaction_history", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._help", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._map", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py._with", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py.addnote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69560656_osuakatsuki_bancho_py.app.commands_py.addpriv"].
pasteorg_pastescript
EntryPointCommand
public
0
1
print_entry_points_by_group
def print_entry_points_by_group(self, group, ep_pat):env = pkg_resources.Environment()project_names = sorted(env)for project_name in project_names:dists = list(env[project_name])assert distsdist = dists[0]entries = list(dist.get_entry_map(group).values())if ep_pat:entries = [e for e in entries if ep_pat.search(e.name)]if not entries:continueif len(dists) > 1:print('%s (+ %i older versions)' % (dist, len(dists)-1))else:print('%s' % dist)entries.sort(key=lambda entry: entry.name)for entry in entries:print(self._ep_description(entry))desc = self.get_entry_point_description(entry, group)if desc and desc.description:print(self.wrap(desc.description, indent=4))
10
24
3
175
0
65
88
65
self,group,ep_pat
[]
None
{"Assign": 7, "Expr": 5, "For": 2, "If": 4}
17
24
17
["pkg_resources.Environment", "sorted", "list", "list", "values", "dist.get_entry_map", "ep_pat.search", "len", "print", "len", "print", "entries.sort", "print", "self._ep_description", "self.get_entry_point_description", "print", "self.wrap"]
0
[]
The function (print_entry_points_by_group) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 65 and ends at 88. It contains 24 lines of code and it has a cyclomatic complexity of 10. It takes 3 parameters, represented as [65.0] and does not return any value. It declares 17.0 functions, and It has 17.0 functions called inside which are ["pkg_resources.Environment", "sorted", "list", "list", "values", "dist.get_entry_map", "ep_pat.search", "len", "print", "len", "print", "entries.sort", "print", "self._ep_description", "self.get_entry_point_description", "print", "self.wrap"].
pasteorg_pastescript
EntryPointCommand
public
0
1
show_egg
def show_egg(self, egg_name):group_pat = Noneif self.args:group_pat = self.get_pattern(self.args[0])ep_pat = Noneif len(self.args) > 1:ep_pat = self.get_pattern(self.args[1])if egg_name.startswith('egg:'):egg_name = egg_name[4:]dist = pkg_resources.get_distribution(egg_name)entry_map = dist.get_entry_map()entry_groups = sorted(entry_map.items())for group, points in entry_groups:if group_pat and not group_pat.search(group):continueprint('[%s]' % group)points = sorted(points.items())for name, entry in points:if ep_pat:if not ep_pat.search(name):continueprint(self._ep_description(entry))desc = self.get_entry_point_description(entry, group)if desc and desc.description:print(self.wrap(desc.description, indent=2))print()
12
26
2
193
0
90
115
90
self,egg_name
[]
None
{"Assign": 10, "Expr": 4, "For": 2, "If": 7}
19
26
19
["self.get_pattern", "len", "self.get_pattern", "egg_name.startswith", "pkg_resources.get_distribution", "dist.get_entry_map", "sorted", "entry_map.items", "group_pat.search", "print", "sorted", "points.items", "ep_pat.search", "print", "self._ep_description", "self.get_entry_point_description", "print", "self.wrap", "print"]
0
[]
The function (show_egg) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 90 and ends at 115. It contains 26 lines of code and it has a cyclomatic complexity of 12. It takes 2 parameters, represented as [90.0] and does not return any value. It declares 19.0 functions, and It has 19.0 functions called inside which are ["self.get_pattern", "len", "self.get_pattern", "egg_name.startswith", "pkg_resources.get_distribution", "dist.get_entry_map", "sorted", "entry_map.items", "group_pat.search", "print", "sorted", "points.items", "ep_pat.search", "print", "self._ep_description", "self.get_entry_point_description", "print", "self.wrap", "print"].
pasteorg_pastescript
EntryPointCommand
public
0
1
wrap
def wrap(self, text, indent=0):text = dedent(text)width = int(os.environ.get('COLUMNS', 70)) - indenttext = '\n'.join([line.rstrip() for line in text.splitlines()])paras = text.split('\n\n')new_paras = []for para in paras:if para.lstrip() == para:# leading whitespace means don't rewrappara = '\n'.join(textwrap.wrap(para, width))new_paras.append(para)text = '\n\n'.join(new_paras)lines = [' '*indent + line for line in text.splitlines()]return '\n'.join(lines)
5
14
3
135
0
117
131
117
self,text,indent
[]
Returns
{"Assign": 8, "Expr": 1, "For": 1, "If": 1, "Return": 1}
14
15
14
["dedent", "int", "os.environ.get", "join", "line.rstrip", "text.splitlines", "text.split", "para.lstrip", "join", "textwrap.wrap", "new_paras.append", "join", "text.splitlines", "join"]
12
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.FastaReader_py.FastaRecord.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3611215_ask_python_github2.github2.bin.search_repos_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677837_xyz2tex_svg2tikz.svg2tikz.tikz_export_py.TikZPathExporter._output_group", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3686660_hangoutsbot_hangoutsbot.hangupsbot.hangups_shim_py.namedtuple_wrapper", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696065_m_labs_nmigen.nmigen.compat.sim.__init___py.run_simulation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.conftest_py.wrap_everything", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.imp_py.f_load", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.core.forms_py.PatientForm.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.core.forms_py.UserInitForm.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.demographics.forms_py.DemographicsForm.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.91176666_google_maxtext.src.MaxText.layers.nnx_wrappers_py._fix_for_qwix_quantization", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.subprojects.robotpy_wpiutil.wpiutil.wpistruct.dataclass_py.make_wpistruct"]
The function (wrap) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 117 and ends at 131. It contains 14 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [117.0], and this function return a value. It declares 14.0 functions, It has 14.0 functions called inside which are ["dedent", "int", "os.environ.get", "join", "line.rstrip", "text.splitlines", "text.split", "para.lstrip", "join", "textwrap.wrap", "new_paras.append", "join", "text.splitlines", "join"], It has 12.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3580082_pacificbiosciences_falcon.falcon_kit.FastaReader_py.FastaRecord.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3611215_ask_python_github2.github2.bin.search_repos_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677837_xyz2tex_svg2tikz.svg2tikz.tikz_export_py.TikZPathExporter._output_group", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3686660_hangoutsbot_hangoutsbot.hangupsbot.hangups_shim_py.namedtuple_wrapper", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696065_m_labs_nmigen.nmigen.compat.sim.__init___py.run_simulation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.conftest_py.wrap_everything", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.imp_py.f_load", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.core.forms_py.PatientForm.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.core.forms_py.UserInitForm.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.demographics.forms_py.DemographicsForm.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.91176666_google_maxtext.src.MaxText.layers.nnx_wrappers_py._fix_for_qwix_quantization", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.subprojects.robotpy_wpiutil.wpiutil.wpistruct.dataclass_py.make_wpistruct"].
pasteorg_pastescript
EntryPointCommand
public
0
1
_ep_description
def _ep_description(self, ep, pad_name=None):name = ep.nameif pad_name is not None:name = name + ' '*(pad_name-len(name))dest = ep.module_nameif ep.attrs:dest = dest + ':' + '.'.join(ep.attrs)return '%s = %s' % (name, dest)
3
8
3
68
0
133
140
133
self,ep,pad_name
[]
Returns
{"Assign": 4, "If": 2, "Return": 1}
2
8
2
["len", "join"]
0
[]
The function (_ep_description) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 133 and ends at 140. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [133.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["len", "join"].
pasteorg_pastescript
EntryPointCommand
public
0
1
get_pattern
def get_pattern(self, s):if not s:return Noneif self.options.use_regex:return re.compile(s)else:return re.compile(fnmatch.translate(s), re.I)
3
7
2
45
0
142
148
142
self,s
[]
Returns
{"If": 2, "Return": 3}
3
7
3
["re.compile", "re.compile", "fnmatch.translate"]
0
[]
The function (get_pattern) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 142 and ends at 148. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [142.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["re.compile", "re.compile", "fnmatch.translate"].
pasteorg_pastescript
EntryPointCommand
public
0
1
list_entry_points
def list_entry_points(self):pattern = self.get_pattern(self.args and self.args[0])groups = self.get_groups_by_pattern(pattern)print('%i entry point groups found:' % len(groups))for group in groups:desc = self.get_group_description(group)print('[%s]' % group)if desc:if hasattr(desc, 'description'):desc = desc.descriptionprint(self.wrap(desc, indent=2))
5
11
1
87
0
150
160
150
self
[]
None
{"Assign": 4, "Expr": 3, "For": 1, "If": 2}
9
11
9
["self.get_pattern", "self.get_groups_by_pattern", "print", "len", "self.get_group_description", "print", "hasattr", "print", "self.wrap"]
0
[]
The function (list_entry_points) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 150 and ends at 160. It contains 11 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["self.get_pattern", "self.get_groups_by_pattern", "print", "len", "self.get_group_description", "print", "hasattr", "print", "self.wrap"].
pasteorg_pastescript
EntryPointCommand
public
0
1
get_groups_by_pattern
def get_groups_by_pattern(self, pattern):env = pkg_resources.Environment()eps = {}for project_name in env:for dist in env[project_name]:for name in pkg_resources.get_entry_map(dist):if pattern and not pattern.search(name):continueif (not patternand name.startswith('paste.description.')):continueeps[name] = Nonereturn sorted(eps.keys())
8
13
2
82
0
162
174
162
self,pattern
[]
Returns
{"Assign": 3, "For": 3, "If": 2, "Return": 1}
6
13
6
["pkg_resources.Environment", "pkg_resources.get_entry_map", "pattern.search", "name.startswith", "sorted", "eps.keys"]
0
[]
The function (get_groups_by_pattern) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 162 and ends at 174. It contains 13 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [162.0], and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["pkg_resources.Environment", "pkg_resources.get_entry_map", "pattern.search", "name.startswith", "sorted", "eps.keys"].
pasteorg_pastescript
EntryPointCommand
public
0
1
get_group_description
def get_group_description(self, group):for entry in pkg_resources.iter_entry_points('paste.entry_point_description'):if entry.name == group:ep = entry.load()if hasattr(ep, 'description'):return ep.descriptionelse:return epreturn None
4
9
2
49
0
176
184
176
self,group
[]
Returns
{"Assign": 1, "For": 1, "If": 2, "Return": 3}
3
9
3
["pkg_resources.iter_entry_points", "entry.load", "hasattr"]
0
[]
The function (get_group_description) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 176 and ends at 184. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [176.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["pkg_resources.iter_entry_points", "entry.load", "hasattr"].
pasteorg_pastescript
EntryPointCommand
public
0
1
get_entry_point_description
def get_entry_point_description(self, ep, group):try:return self._safe_get_entry_point_description(ep, group)except Exception as e:out = StringIO()traceback.print_exc(file=out)return ErrorDescription(e, out.getvalue())
2
7
3
49
0
186
192
186
self,ep,group
[]
Returns
{"Assign": 1, "Expr": 1, "Return": 2, "Try": 1}
5
7
5
["self._safe_get_entry_point_description", "StringIO", "traceback.print_exc", "ErrorDescription", "out.getvalue"]
0
[]
The function (get_entry_point_description) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 186 and ends at 192. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [186.0], and this function return a value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["self._safe_get_entry_point_description", "StringIO", "traceback.print_exc", "ErrorDescription", "out.getvalue"].
pasteorg_pastescript
EntryPointCommand
public
0
1
_safe_get_entry_point_description
def _safe_get_entry_point_description(self, ep, group):ep.dist.activate()meta_group = 'paste.description.'+groupmeta = ep.dist.get_entry_info(meta_group, ep.name)if not meta:generic = list(pkg_resources.iter_entry_points(meta_group, 'generic'))if not generic:return super_generic(ep.load())# @@: Error if len(generic) > 1?obj = generic[0].load()desc = obj(ep, group)else:desc = meta.load()return desc
3
14
3
94
0
194
208
194
self,ep,group
[]
Returns
{"Assign": 6, "Expr": 1, "If": 2, "Return": 2}
9
15
9
["ep.dist.activate", "ep.dist.get_entry_info", "list", "pkg_resources.iter_entry_points", "super_generic", "ep.load", "load", "obj", "meta.load"]
0
[]
The function (_safe_get_entry_point_description) defined within the public class called EntryPointCommand, that inherit another class.The function start at line 194 and ends at 208. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [194.0], and this function return a value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["ep.dist.activate", "ep.dist.get_entry_info", "list", "pkg_resources.iter_entry_points", "super_generic", "ep.load", "load", "obj", "meta.load"].
pasteorg_pastescript
EntryPointDescription
public
0
1
__init__
def __init__(self, group):self.group = group
1
2
2
12
0
212
213
212
self,group
[]
None
{"Assign": 1}
0
2
0
[]
8,182
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"]
The function (__init__) defined within the public class called EntryPointDescription, that inherit another class.The function start at line 212 and ends at 213. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [212.0] and does not return any value. It has 8182.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"].
pasteorg_pastescript
EntryPointDescription
public
0
1
__init__
def __init__(self, doc_object):self.doc_object = doc_objectself.description = dedent(self.doc_object.__doc__)try:if isinstance(self.doc_object, type):func = self.doc_object.__init__elif (hasattr(self.doc_object, '__call__')and not isinstance(self.doc_object, types.FunctionType)):func = self.doc_object.__call__else:func = self.doc_objectif hasattr(func, '__paste_sig__'):sig = func.__paste_sig__else:sig = str(inspect.signature(func))except TypeError:sig = Noneif sig:if self.description:self.description = '%s\n\n%s' % (sig, self.description)else:self.description = sig
8
23
2
141
0
220
242
220
self,group
[]
None
{"Assign": 1}
0
2
0
[]
8,182
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"]
The function (__init__) defined within the public class called EntryPointDescription, that inherit another class.The function start at line 220 and ends at 242. It contains 23 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [220.0] and does not return any value. It has 8182.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"].
pasteorg_pastescript
public
public
0
0
dedent
def dedent(s):if s is None:return ss = s.strip('\n').strip('\r')return textwrap.dedent(s)
2
5
1
32
1
244
248
244
s
['s']
Returns
{"Assign": 1, "If": 1, "Return": 2}
3
5
3
["strip", "s.strip", "textwrap.dedent"]
216
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.hdf5_py._autofill_laser_rep_rates", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.hdf5_py._check_photon_data_tables", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.hdf5_py._convert_scalar_item", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.hdf5_py._populate_provenance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.v04.hdf5_py._convert_scalar_item", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.v04.hdf5_py._populate_provenance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3622462_enthought_sat_solver.simplesat.tests.test_transaction_py.TestTransaction.test_cycle_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3622462_enthought_sat_solver.simplesat.utils.tests.test_graph_py.TestDependencyGraph.test_package_lit_dependency_graph", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3622462_enthought_sat_solver.simplesat.utils.tests.test_graph_py.TestGraph.test_toposort_cycle_with_pretty_print", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.util_py.get_thrift_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_extra_field_kwargs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_field_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_id_field", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_meta_exclude", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_meta_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_method_field", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_pk_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_regular_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_compound_py.TestCompundFieldMappings.test_basic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_compound_py.TestCompundFieldMappings.test_nested", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_compound_py.TestCompundFieldMappings.test_suboptions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_dumb_py.TestMapping.test_mapping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_dynamic_py.TestDocumentEmbeddingDynamicMapping.test_repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_dynamic_py.TestDynamicMapping.test_declared", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_dynamic_py.TestDynamicMapping.test_extended"]
The function (dedent) defined within the public class called public.The function start at line 244 and ends at 248. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["strip", "s.strip", "textwrap.dedent"], It has 216.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.hdf5_py._autofill_laser_rep_rates", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.hdf5_py._check_photon_data_tables", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.hdf5_py._convert_scalar_item", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.hdf5_py._populate_provenance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.v04.hdf5_py._convert_scalar_item", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3608748_photon_hdf5_phconvert.phconvert.v04.hdf5_py._populate_provenance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3622462_enthought_sat_solver.simplesat.tests.test_transaction_py.TestTransaction.test_cycle_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3622462_enthought_sat_solver.simplesat.utils.tests.test_graph_py.TestDependencyGraph.test_package_lit_dependency_graph", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3622462_enthought_sat_solver.simplesat.utils.tests.test_graph_py.TestGraph.test_toposort_cycle_with_pretty_print", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.util_py.get_thrift_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_extra_field_kwargs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_field_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_id_field", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_meta_exclude", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_meta_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_method_field", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_pk_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_basic_py.TestRegularFieldMappings.test_regular_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_compound_py.TestCompundFieldMappings.test_basic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_compound_py.TestCompundFieldMappings.test_nested", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_compound_py.TestCompundFieldMappings.test_suboptions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_dumb_py.TestMapping.test_mapping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_dynamic_py.TestDocumentEmbeddingDynamicMapping.test_repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_dynamic_py.TestDynamicMapping.test_declared", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635000_umutbozkurt_django_rest_framework_mongoengine.tests.test_dynamic_py.TestDynamicMapping.test_extended"].
pasteorg_pastescript
public
public
0
0
super_generic
def super_generic(obj):desc = SuperGeneric(obj)if not desc.description:return Nonereturn desc
2
5
1
21
1
250
254
250
obj
['desc']
Returns
{"Assign": 1, "If": 1, "Return": 2}
1
5
1
["SuperGeneric"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.entrypoints_py.EntryPointCommand._safe_get_entry_point_description"]
The function (super_generic) defined within the public class called public.The function start at line 250 and ends at 254. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["SuperGeneric"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.entrypoints_py.EntryPointCommand._safe_get_entry_point_description"].
pasteorg_pastescript
EntryPointDescription
public
0
1
__init__
def __init__(self, exc, tb):self.exc = excself.tb = '\n'.join(tb)self.description = 'Error loading: %s' % exc
1
4
3
31
0
258
261
258
self,group
[]
None
{"Assign": 1}
0
2
0
[]
8,182
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"]
The function (__init__) defined within the public class called EntryPointDescription, that inherit another class.The function start at line 258 and ends at 261. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [258.0] and does not return any value. It has 8182.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"].
pasteorg_pastescript
ExeCommand
public
0
1
run
def run(self, argv):if argv and argv[0] in ('-h', '--help'):print(self.description)returnif os.environ.get('REQUEST_METHOD'):# We're probably in a CGI environmentsys.stdout = sys.stderros.environ['PASTE_DEFAULT_QUIET'] = 'true'# Maybe import cgitb or something?if '_' not in os.environ:print("Warning: this command is intended to be run with a #! like:")print("#!/usr/bin/env paster exe")print("It only works with /usr/bin/env, and only as a #! line.")# Should I actually shlex.split the args?filename = argv[-1]args = argv[:-1]extra_args = []else:filename = os.environ['_']extra_args = argv[:]args = []while extra_args:if extra_args[0] == filename:extra_args.pop(0)breakargs.append(extra_args.pop(0))vars = {'here': os.path.dirname(filename),'__file__': filename}f = open(filename)lines = f.readlines()f.close()options = {}lineno = 1while lines:if self._exe_section_re.search(lines[0]):lines.pop(0)breaklines.pop(0)lineno += 1options = argsfor line in lines:lineno += 1line = line.strip()if not line or line.startswith('#'):continueif self._section_re.search(line):breakif '=' not in line:raise command.BadCommand('Missing = in %s at %s: %r' % (filename, lineno, line))name, value = line.split('=', 1)name = name.strip()value = value.strip()if name == 'require':pkg_resources.require(value)elif name == 'command' or name == 'add':options.extend(shlex.split(value))elif name == 'plugin':options[:0] = ['--plugin', value]else:value = value % varsoptions.append('--%s=%s' % (name.replace('_', '-'), value))os.environ['PASTE_CONFIG_FILE'] = filenameoptions.extend(extra_args)command.run(options)
18
62
2
397
0
40
106
40
self,argv
[]
None
{"Assign": 21, "AugAssign": 2, "Expr": 14, "For": 1, "If": 11, "Return": 1, "While": 2}
29
67
29
["print", "os.environ.get", "print", "print", "print", "extra_args.pop", "args.append", "extra_args.pop", "os.path.dirname", "open", "f.readlines", "f.close", "self._exe_section_re.search", "lines.pop", "lines.pop", "line.strip", "line.startswith", "self._section_re.search", "command.BadCommand", "line.split", "name.strip", "value.strip", "pkg_resources.require", "options.extend", "shlex.split", "options.append", "name.replace", "options.extend", "command.run"]
668
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_directories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_project_to_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.checkout_latest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.dump_db", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.files_are_different", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.install_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.run_migrations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.v1_static", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.landscape_py.LandscapeInstall._do_install_existing_maas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.multi_py.MultiInstall.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController._save_maas_creds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.docs.conf_py.ReleasesTree.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runOneBasic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runSome"]
The function (run) defined within the public class called ExeCommand, that inherit another class.The function start at line 40 and ends at 106. It contains 62 lines of code and it has a cyclomatic complexity of 18. It takes 2 parameters, represented as [40.0] and does not return any value. It declares 29.0 functions, It has 29.0 functions called inside which are ["print", "os.environ.get", "print", "print", "print", "extra_args.pop", "args.append", "extra_args.pop", "os.path.dirname", "open", "f.readlines", "f.close", "self._exe_section_re.search", "lines.pop", "lines.pop", "line.strip", "line.startswith", "self._section_re.search", "command.BadCommand", "line.split", "name.strip", "value.strip", "pkg_resources.require", "options.extend", "shlex.split", "options.append", "name.replace", "options.extend", "command.run"], It has 668.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_directories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.add_project_to_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.checkout_latest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.dump_db", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.files_are_different", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.install_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.run_migrations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508273_sc3_cookcountyjail.fabfile_py.v1_static", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.landscape_py.LandscapeInstall._do_install_existing_maas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.install.multi_py.MultiInstall.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController._save_maas_creds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3536852_ubuntu_solutions_engineering_openstack_installer.cloudinstall.controllers.installbase_py.InstallController.do_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.docs.conf_py.ReleasesTree.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.flo.test.test_behaving_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_paging_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runOne", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.lane.test.test_stacking_py.runSome", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runAll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runOneBasic", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544482_saltstack_raet.raet.road.test.test_estating_py.runSome"].
pasteorg_pastescript
FileOp
public
0
1
__init__
def __init__(self, simulate=False, verbose=True, interactive=True, source_dir=None, template_vars=None):"""Initialize our File operation helper objectsource_dirShould refer to the directory within the packagethat contains the templates to be used for the other copyoperations. It is assumed that packages will keep all theirtemplates under a hierarchy starting here.This should be an absolute path passed in, for example::FileOp(source_dir=os.path.dirname(__file__) + '/templates')"""self.simulate = simulateself.verbose = verboseself.interactive = interactiveif template_vars is None:template_vars = {}self.template_vars = template_varsself.source_dir = source_dirself.use_pkg_resources = isinstance(source_dir, tuple)
2
13
6
70
0
16
41
16
self,simulate,verbose,interactive,source_dir,template_vars
[]
None
{"Assign": 7, "Expr": 1, "If": 1}
1
26
1
["isinstance"]
8,182
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"]
The function (__init__) defined within the public class called FileOp, that inherit another class.The function start at line 16 and ends at 41. It contains 13 lines of code and it has a cyclomatic complexity of 2. It takes 6 parameters, represented as [16.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["isinstance"], It has 8182.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15197461_googleapis_python_cloud_core.google.cloud._helpers.__init___py._LocalStack.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.fileupload_py.QuickUploadView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.__init___py.TypeFieldNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.LinearRingNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.geom_py.PointNode.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.json_py.JSONType.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.JSONRecordSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.DefinitionSchema.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.ModelSchema.__init__"].
pasteorg_pastescript
FileOp
public
0
1
copy_file
def copy_file(self, template, dest, filename=None, add_py=True, package=True,template_renderer=None):"""Copy a file from the source location to somewhere in thedestination.templateThe filename underneath self.source_dir to copy/processdestThe destination directory in the project relative to wherethis command is being runfilenameWhat to name the file in the target project, use the same nameas the template if not providedadd_pyAdd a .py extension to all files copiedpackageWhether or not this file is part of a Python package, and anydirectories created should contain a __init__.py file as well.template_rendererAn optional template renderer"""if not filename:filename = template.split('/')[0]if filename.endswith('_tmpl'):filename = filename[:-5]base_package, cdir = self.find_dir(dest, package)self.template_vars['base_package'] = base_packagecontent = self.load_content(base_package, cdir, filename, template,template_renderer=template_renderer)if add_py:# @@: Why is it a default to add a .py extension?filename = '%s.py' % filenamedest = os.path.join(cdir, filename)self.ensure_file(dest, content, package)
4
14
7
125
0
43
78
43
self,template,dest,filename,add_py,package,template_renderer
[]
None
{"Assign": 7, "Expr": 2, "If": 3}
6
36
6
["template.split", "filename.endswith", "self.find_dir", "self.load_content", "os.path.join", "self.ensure_file"]
15
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508237_rcbops_ansible_lxc_rpc.scripts.rpc_wheel_builder_py._make_wheels", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tvnamer.files_py.Renamer.new_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3956532_scikit_build_scikit_build.skbuild.command.build_ext_py.build_ext.copy_extensions_to_source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960647_colcon_colcon_core.colcon_core.distutils.commands.symlink_data_py.symlink_data.copy_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.apply_ppf_fixes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.apply_romhacks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_manual", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_ps3", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_psio", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_psp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_retroarch_bin", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_retroarch_cue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.install_psp_mc", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.patch_libcrypt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94953499_langflow_ai_langflow.src.backend.base.langflow.initial_setup.setup_py.copy_profile_pictures"]
The function (copy_file) defined within the public class called FileOp, that inherit another class.The function start at line 43 and ends at 78. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 7 parameters, represented as [43.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside which are ["template.split", "filename.endswith", "self.find_dir", "self.load_content", "os.path.join", "self.ensure_file"], It has 15.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508237_rcbops_ansible_lxc_rpc.scripts.rpc_wheel_builder_py._make_wheels", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tvnamer.files_py.Renamer.new_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3956532_scikit_build_scikit_build.skbuild.command.build_ext_py.build_ext.copy_extensions_to_source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960647_colcon_colcon_core.colcon_core.distutils.commands.symlink_data_py.symlink_data.copy_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.apply_ppf_fixes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.apply_romhacks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_manual", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_ps3", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_psio", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_psp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_retroarch_bin", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.create_retroarch_cue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.install_psp_mc", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69834343_sahlberg_pop_fe.pop_fe_py.patch_libcrypt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94953499_langflow_ai_langflow.src.backend.base.langflow.initial_setup.setup_py.copy_profile_pictures"].
pasteorg_pastescript
FileOp
public
0
1
copy_dir
def copy_dir(self, template_dir, dest, destname=None, package=True):"""Copy a directory recursively, processing any files within itthat need to be processed (end in _tmpl).template_dirDirectory under self.source_dir to copy/processdestDestination directory into which this directory will be copiedto.destnameUse this name instead of the original template_dir name forcreating the directorypackageThis directory will be a Python package and needs to have a__init__.py file."""# @@: This should actually be implementedraise NotImplementedError
1
2
5
20
0
80
98
80
self,template_dir,dest,destname,package
[]
None
{"Expr": 1}
0
19
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"]
The function (copy_dir) defined within the public class called FileOp, that inherit another class.The function start at line 80 and ends at 98. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [80.0] and does not return any value. It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.copydir_py.copy_dir"].
pasteorg_pastescript
FileOp
public
0
1
load_content
def load_content(self, base_package, base, name, template, template_renderer=None):blank = os.path.join(base, name + '.py')read_content = Trueif not os.path.exists(blank):if self.use_pkg_resources:fullpath = '/'.join([self.source_dir[1], template])content = pkg_resources.resource_string(self.source_dir[0], fullpath)read_content = Falseblank = fullpathelse:blank = os.path.join(self.source_dir, template)if read_content:f = open(blank, 'r')content = f.read()f.close()if blank.endswith('_tmpl'):content = copydir.substitute_content(content, self.template_vars, filename=blank,template_renderer=template_renderer)return content
5
23
6
157
0
100
122
100
self,base_package,base,name,template,template_renderer
[]
Returns
{"Assign": 10, "Expr": 1, "If": 4, "Return": 1}
10
23
10
["os.path.join", "os.path.exists", "join", "pkg_resources.resource_string", "os.path.join", "open", "f.read", "f.close", "blank.endswith", "copydir.substitute_content"]
0
[]
The function (load_content) defined within the public class called FileOp, that inherit another class.The function start at line 100 and ends at 122. It contains 23 lines of code and it has a cyclomatic complexity of 5. It takes 6 parameters, represented as [100.0], and this function return a value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["os.path.join", "os.path.exists", "join", "pkg_resources.resource_string", "os.path.join", "open", "f.read", "f.close", "blank.endswith", "copydir.substitute_content"].
pasteorg_pastescript
FileOp
public
0
1
find_dir
def find_dir(self, dirname, package=False):egg_info = pluginlib.find_egg_info_dir(os.getcwd())# @@: Should give error about egg_info when top_level.txt missingf = open(os.path.join(egg_info, 'top_level.txt'))packages = [l.strip() for l in f.readlines()if l.strip() and not l.strip().startswith('#')]f.close()if not len(packages):raise BadCommand("No top level dir found for %s" % dirname)# @@: This doesn't support deeper servlet directories,# or packages not kept at the top level.base = os.path.dirname(egg_info)possible = []for pkg in packages:d = os.path.join(base, pkg, dirname)if os.path.exists(d):possible.append((pkg, d))if not possible:self.ensure_dir(os.path.join(base, packages[0], dirname),package=package)return self.find_dir(dirname)if len(possible) > 1:raise BadCommand("Multiple %s dirs found (%s)" % (dirname, possible))return possible[0]
9
22
3
204
0
124
148
124
self,dirname,package
[]
Returns
{"Assign": 6, "Expr": 3, "For": 1, "If": 4, "Return": 2}
21
25
21
["pluginlib.find_egg_info_dir", "os.getcwd", "open", "os.path.join", "l.strip", "f.readlines", "l.strip", "startswith", "l.strip", "f.close", "len", "BadCommand", "os.path.dirname", "os.path.join", "os.path.exists", "possible.append", "self.ensure_dir", "os.path.join", "self.find_dir", "len", "BadCommand"]
0
[]
The function (find_dir) defined within the public class called FileOp, that inherit another class.The function start at line 124 and ends at 148. It contains 22 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [124.0], and this function return a value. It declares 21.0 functions, and It has 21.0 functions called inside which are ["pluginlib.find_egg_info_dir", "os.getcwd", "open", "os.path.join", "l.strip", "f.readlines", "l.strip", "startswith", "l.strip", "f.close", "len", "BadCommand", "os.path.dirname", "os.path.join", "os.path.exists", "possible.append", "self.ensure_dir", "os.path.join", "self.find_dir", "len", "BadCommand"].
pasteorg_pastescript
FileOp
public
0
1
parse_path_name_args
def parse_path_name_args(self, name):"""Given the name, assume that the first argument is a path/filenamecombination. Return the name and dir of this. If the name ends with'.py' that will be erased.Examples:comments ->comments, ''admin/comments ->comments, 'admin'h/ab/fred->fred, 'h/ab'"""if name.endswith('.py'):# Erase extensionsname = name[:-3]if '.' in name:# Turn into directory name:name = name.replace('.', os.path.sep)if '/' != os.path.sep:name = name.replace('/', os.path.sep)parts = name.split(os.path.sep)name = parts[-1]if not parts[:-1]:dir = ''elif len(parts[:-1]) == 1:dir = parts[0]else:dir = os.path.join(*parts[:-1])return name, dir
6
16
2
138
0
150
177
150
self,name
[]
Returns
{"Assign": 8, "Expr": 1, "If": 5, "Return": 1}
6
28
6
["name.endswith", "name.replace", "name.replace", "name.split", "len", "os.path.join"]
0
[]
The function (parse_path_name_args) defined within the public class called FileOp, that inherit another class.The function start at line 150 and ends at 177. It contains 16 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [150.0], and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["name.endswith", "name.replace", "name.replace", "name.split", "len", "os.path.join"].
pasteorg_pastescript
FileOp
public
0
1
ensure_dir
def ensure_dir(self, dir, svn_add=True, package=False):"""Ensure that the directory exists, creating it if necessary.Respects verbosity and simulation.Adds directory to subversion if ``.svn/`` directory exists inparent, and directory was created.packageIf package is True, any directories created will contain a__init__.py file."""dir = dir.rstrip(os.sep)if not dir:# we either reached the parent-most directory, or we got# a relative directory# @@: Should we make sure we resolve relative directories# first?Though presumably the current directory always# exists.returnif not os.path.exists(dir):self.ensure_dir(os.path.dirname(dir), svn_add=svn_add, package=package)if self.verbose:print('Creating %s' % self.shorten(dir))if not self.simulate:os.mkdir(dir)if (svn_add andos.path.exists(os.path.join(os.path.dirname(dir), '.svn'))):self.svn_command('add', dir)if package:initfile = os.path.join(dir, '__init__.py')f = open(initfile, 'wb')f.write("#\n")f.close()print('Creating %s' % self.shorten(initfile))if (svn_add andos.path.exists(os.path.join(os.path.dirname(dir), '.svn'))):self.svn_command('add', initfile)else:if self.verbose > 1:print("Directory already exists: %s" % self.shorten(dir))
11
25
4
232
0
179
220
179
self,dir,svn_add,package
[]
None
{"Assign": 3, "Expr": 10, "If": 8, "Return": 1}
23
42
23
["dir.rstrip", "os.path.exists", "self.ensure_dir", "os.path.dirname", "print", "self.shorten", "os.mkdir", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "os.path.join", "open", "f.write", "f.close", "print", "self.shorten", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "print", "self.shorten"]
0
[]
The function (ensure_dir) defined within the public class called FileOp, that inherit another class.The function start at line 179 and ends at 220. It contains 25 lines of code and it has a cyclomatic complexity of 11. It takes 4 parameters, represented as [179.0] and does not return any value. It declares 23.0 functions, and It has 23.0 functions called inside which are ["dir.rstrip", "os.path.exists", "self.ensure_dir", "os.path.dirname", "print", "self.shorten", "os.mkdir", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "os.path.join", "open", "f.write", "f.close", "print", "self.shorten", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "print", "self.shorten"].
pasteorg_pastescript
FileOp
public
0
1
ensure_file
def ensure_file(self, filename, content, svn_add=True, package=False):"""Ensure a file named ``filename`` exists with the givencontent.If ``--interactive`` has been enabled, this will askthe user what to do if a file exists with different content."""global difflibself.ensure_dir(os.path.dirname(filename), svn_add=svn_add, package=package)if not os.path.exists(filename):if self.verbose:print('Creating %s' % filename)if not self.simulate:f = open(filename, 'wb')f.write(content)f.close()if svn_add and os.path.exists(os.path.join(os.path.dirname(filename), '.svn')):self.svn_command('add', filename)returnf = open(filename, 'rb')old_content = f.read()f.close()if content == old_content:if self.verbose > 1:print('File %s matches expected content' % filename)returnif self.interactive:print('Warning: file %s does not match expected content' % filename)if difflib is None:import difflibdiff = difflib.context_diff(content.splitlines(),old_content.splitlines(),'expected ' + filename,filename)print('\n'.join(diff))if self.interactive:while 1:s = input('Overwrite file with new content? [y/N] ').strip().lower()if not s:s = 'n'if s.startswith('y'):breakif s.startswith('n'):returnprint('Unknown response; Y or N please')else:returnif self.verbose:print('Overwriting %s with new content' % filename)if not self.simulate:f = open(filename, 'wb')f.write(content)f.close()
17
49
5
305
0
222
276
222
self,filename,content,svn_add,package
[]
None
{"Assign": 7, "Expr": 14, "If": 14, "Return": 4, "While": 1}
31
55
31
["self.ensure_dir", "os.path.dirname", "os.path.exists", "print", "open", "f.write", "f.close", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "open", "f.read", "f.close", "print", "print", "difflib.context_diff", "content.splitlines", "old_content.splitlines", "print", "join", "lower", "strip", "input", "s.startswith", "s.startswith", "print", "print", "open", "f.write", "f.close"]
0
[]
The function (ensure_file) defined within the public class called FileOp, that inherit another class.The function start at line 222 and ends at 276. It contains 49 lines of code and it has a cyclomatic complexity of 17. It takes 5 parameters, represented as [222.0] and does not return any value. It declares 31.0 functions, and It has 31.0 functions called inside which are ["self.ensure_dir", "os.path.dirname", "os.path.exists", "print", "open", "f.write", "f.close", "os.path.exists", "os.path.join", "os.path.dirname", "self.svn_command", "open", "f.read", "f.close", "print", "print", "difflib.context_diff", "content.splitlines", "old_content.splitlines", "print", "join", "lower", "strip", "input", "s.startswith", "s.startswith", "print", "print", "open", "f.write", "f.close"].
pasteorg_pastescript
FileOp
public
0
1
shorten
def shorten(self, fn, *paths):"""Return a shorted form of the filename (relative to the currentdirectory), typically for displaying in messages.If``*paths`` are present, then use os.path.join to create thefull filename before shortening."""if paths:fn = os.path.join(fn, *paths)if fn.startswith(os.getcwd()):return fn[len(os.getcwd()):].lstrip(os.path.sep)else:return fn
3
7
3
65
0
278
290
278
self,fn,*paths
[]
Returns
{"Assign": 1, "Expr": 1, "If": 2, "Return": 2}
6
13
6
["os.path.join", "fn.startswith", "os.getcwd", "lstrip", "len", "os.getcwd"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.anilist_py.anilist"]
The function (shorten) defined within the public class called FileOp, that inherit another class.The function start at line 278 and ends at 290. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [278.0], and this function return a value. It declares 6.0 functions, It has 6.0 functions called inside which are ["os.path.join", "fn.startswith", "os.getcwd", "lstrip", "len", "os.getcwd"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.anilist_py.anilist"].
pasteorg_pastescript
FileOp
public
0
1
svn_command
def svn_command(self, *args, **kw):"""Run an svn command, but don't raise an exception if it fails."""try:return self.run_command('svn', *args, **kw)except OSError as e:if not self._svn_failed:print('Unable to run svn command (%s); proceeding anyway' % e)self._svn_failed = True
3
7
3
49
0
294
303
294
self,*args,**kw
[]
Returns
{"Assign": 1, "Expr": 2, "If": 1, "Return": 1, "Try": 1}
2
10
2
["self.run_command", "print"]
0
[]
The function (svn_command) defined within the public class called FileOp, that inherit another class.The function start at line 294 and ends at 303. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [294.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.run_command", "print"].
pasteorg_pastescript
FileOp
public
0
1
run_command
def run_command(self, cmd, *args, **kw):"""Runs the command, respecting verbosity and simulation.Returns stdout, or None if simulating."""cwd = popdefault(kw, 'cwd', os.getcwd())capture_stderr = popdefault(kw, 'capture_stderr', False)expect_returncode = popdefault(kw, 'expect_returncode', False)assert not kw, ("Arguments not expected: %s" % kw)if capture_stderr:stderr_pipe = subprocess.STDOUTelse:stderr_pipe = subprocess.PIPEtry:proc = subprocess.Popen([cmd] + list(args),cwd=cwd,stderr=stderr_pipe,stdout=subprocess.PIPE)except OSError as e:if e.errno != 2:# File not foundraiseraise OSError("The expected executable %s was not found (%s)"% (cmd, e))if self.verbose:print('Running %s %s' % (cmd, ' '.join(args)))if self.simulate:return Nonestdout, stderr = proc.communicate()if proc.returncode and not expect_returncode:if not self.verbose:print('Running %s %s' % (cmd, ' '.join(args)))print('Error (exit code: %s)' % proc.returncode)if stderr:print(stderr)raise OSError("Error executing command %s" % cmd)if self.verbose > 2:if stderr:print('Command error output:')print(stderr)if stdout:print('Command output:')print(stdout)return stdout
13
40
4
245
0
305
349
305
self,cmd,*args,**kw
[]
Returns
{"Assign": 7, "Expr": 9, "If": 10, "Return": 2, "Try": 1}
19
45
19
["popdefault", "os.getcwd", "popdefault", "popdefault", "subprocess.Popen", "list", "OSError", "print", "join", "proc.communicate", "print", "join", "print", "print", "OSError", "print", "print", "print", "print"]
34
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.influxgraph._version_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.versioneer_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape._version_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.versioneer_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.tests._Async.tests.test_py.TestAsync.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.tests.test_3141596_py.with_package", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.scheduler_py.Unit.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_basic_configuration_produces_expected_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_logging_can_be_configured_from_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_shell_log_is_created_at_absolute_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_shell_log_is_created_in_workdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_ovs_bonding_py.get_bond_information", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_ovs_bonding_py.get_bonds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_repmgr_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925255_tlsfuzzer_python_ecdsa.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3950162_vpelletier_python_libusb1.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.cli", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.docs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.pylint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.pytest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.yamllint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.ci.set_lance_version_py.get_latest_preview_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.ci.set_lance_version_py.get_latest_stable_version"]
The function (run_command) defined within the public class called FileOp, that inherit another class.The function start at line 305 and ends at 349. It contains 40 lines of code and it has a cyclomatic complexity of 13. It takes 4 parameters, represented as [305.0], and this function return a value. It declares 19.0 functions, It has 19.0 functions called inside which are ["popdefault", "os.getcwd", "popdefault", "popdefault", "subprocess.Popen", "list", "OSError", "print", "join", "proc.communicate", "print", "join", "print", "print", "OSError", "print", "print", "print", "print"], It has 34.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.influxgraph._version_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3584344_influxgraph_influxgraph.versioneer_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape._version_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.versioneer_py.git_pieces_from_vcs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.tests._Async.tests.test_py.TestAsync.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.tests.test_3141596_py.with_package", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707137_sublimetext_unittesting.unittesting.scheduler_py.Unit.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_basic_configuration_produces_expected_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_logging_can_be_configured_from_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_shell_log_is_created_at_absolute_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709684_cgat_developers_cgat_core.tests.test_pipeline_control_py.test_shell_log_is_created_in_workdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_ovs_bonding_py.get_bond_information", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_ovs_bonding_py.get_bonds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918795_innogames_igmonplugins.src.check_repmgr_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925255_tlsfuzzer_python_ecdsa.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3950162_vpelletier_python_libusb1.versioneer_py.do_vcs_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.cli", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.docs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.pylint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.pytest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69723499_nautobot_pynautobot.tasks_py.yamllint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.ci.set_lance_version_py.get_latest_preview_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.ci.set_lance_version_py.get_latest_stable_version"].
pasteorg_pastescript
public
public
0
0
popdefault
def popdefault(dict, name, default=None):if name not in dict:return defaultelse:v = dict[name]del dict[name]return v
2
7
3
34
1
351
357
351
dict,name,default
['v']
Returns
{"Assign": 1, "If": 1, "Return": 2}
0
7
0
[]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.Command.run_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.filemaker_py.FileOp.run_command"]
The function (popdefault) defined within the public class called public.The function start at line 351 and ends at 357. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [351.0], and this function return a value. It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.command_py.Command.run_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051046_pasteorg_pastescript.paste.script.filemaker_py.FileOp.run_command"].