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_paste
environ_getter
public
0
0
__repr__
def __repr__(self):"""Show important attributes of the WSGIRequest"""pf = pformatmsg = '<%s.%s object at 0x%x method=%s,' % \(self.__class__.__module__, self.__class__.__name__, id(self), pf(self.method))msg += '\nscheme=%s, host=%s, script_name=%s, path_info=%s,' % \(pf(self.scheme), pf(self.host), pf(self.script_name), pf(self.path_info))msg += '\nlanguages=%s,' % pf(self.languages)if self.charset:msg += ' charset=%s, errors=%s,' % (pf(self.charset),pf(self.errors))msg += '\nGET=%s,' % pf(self.GET)msg += '\nPOST=%s,' % pf(self.POST)msg += '\ncookies=%s>' % pf(self.cookies)return msg
2
16
1
139
0
272
288
272
self
[]
Returns
{"Return": 1}
0
2
0
[]
29
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"]
The function (__repr__) defined within the public class called environ_getter.The function start at line 272 and ends at 288. It contains 16 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 has 29.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"].
pasteorg_paste
environ_getter
public
0
0
__init__
def __init__(self, content=b'', mimetype=None, code=200):self._iter = Noneself._is_str_iter = Trueself.content = contentself.headers = HeaderDict()self.cookies = SimpleCookie()self.status_code = codedefaults = self.defaults._current_obj()if not mimetype:mimetype = defaults.get('content_type', 'text/html')charset = defaults.get('charset')if charset:mimetype = '%s; charset=%s' % (mimetype, charset)self.headers.update(defaults.get('headers', {}))self.headers['Content-Type'] = mimetypeself.errors = defaults.get('errors', 'strict')
3
16
4
131
0
302
319
302
self,key,default,default_factory
[]
None
{"Assign": 3}
0
4
0
[]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called environ_getter.The function start at line 302 and ends at 319. It contains 16 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [302.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
WSGIResponse
public
0
0
__str__
def __str__(self):"""Returns a rendition of the full HTTP message, including headers.When the content is an iterator, the actual content is replaced with theoutput of str(iterator) (to avoid exhausting the iterator)."""if self._is_str_iter:content = ''.join(self.get_content())else:content = str(self.content)return '\n'.join(['%s: %s' % (key, value)for key, value in self.headers.headeritems()]) \+ '\n\n' + content
3
8
1
65
0
321
333
321
self
[]
Returns
{"Assign": 2, "Expr": 1, "If": 1, "Return": 1}
5
13
5
["join", "self.get_content", "str", "join", "self.headers.headeritems"]
64
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.models.ipam_py.Vlans.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.session_py.DynectSession.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698222_fgnt_pb_bss.pb_bss.evaluation.wrapper_py.VerboseKeyError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.ir_py.Heat.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitChemicalType", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitLiteral", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitTemperatureIdentifier", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitTimeIdentifier", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitVariable", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitFormalParameter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitFunctionDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitManifestDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitModuleDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitStationaryDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitDetect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitDispense", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitFunctionDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitManifestDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitMethodCall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitMix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitModuleDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitSplit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitStationaryDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.method_visitor_py.MethodVisitor.visitFormalParameter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.method_visitor_py.MethodVisitor.visitFunctionDeclaration"]
The function (__str__) defined within the public class called WSGIResponse.The function start at line 321 and ends at 333. It contains 8 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 5.0 functions, It has 5.0 functions called inside which are ["join", "self.get_content", "str", "join", "self.headers.headeritems"], It has 64.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.models.ipam_py.Vlans.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.session_py.DynectSession.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698222_fgnt_pb_bss.pb_bss.evaluation.wrapper_py.VerboseKeyError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.ir_py.Heat.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitChemicalType", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitLiteral", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitTemperatureIdentifier", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitTimeIdentifier", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitVariable", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitFormalParameter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitFunctionDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitManifestDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitModuleDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitStationaryDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitDetect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitDispense", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitFunctionDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitManifestDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitMethodCall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitMix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitModuleDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitSplit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitStationaryDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.method_visitor_py.MethodVisitor.visitFormalParameter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.method_visitor_py.MethodVisitor.visitFunctionDeclaration"].
pasteorg_paste
WSGIResponse
public
0
0
__call__
def __call__(self, environ, start_response):"""Convenience call to return output and set status informationConforms to the WSGI interface for calling purposes only.Example usage:.. code-block:: pythondef wsgi_app(environ, start_response):response = WSGIResponse()response.write("Hello world")response.headers['Content-Type'] = 'latin1'return response(environ, start_response)"""status_text = STATUS_CODE_TEXT[self.status_code]status = '%s %s' % (self.status_code, status_text)response_headers = self.headers.headeritems()for c in self.cookies.values():response_headers.append(('Set-Cookie', c.output(header='')))start_response(status, response_headers)is_file = hasattr(self.content, 'read')if 'wsgi.file_wrapper' in environ and is_file:return environ['wsgi.file_wrapper'](self.content)elif is_file:return iter(lambda: self.content.read(), b'')return self.get_content()
5
13
3
124
0
335
362
335
self,environ,start_response
[]
Returns
{"Assign": 4, "Expr": 3, "For": 1, "If": 2, "Return": 3}
9
28
9
["self.headers.headeritems", "self.cookies.values", "response_headers.append", "c.output", "start_response", "hasattr", "iter", "self.content.read", "self.get_content"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called WSGIResponse.The function start at line 335 and ends at 362. It contains 13 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [335.0], and this function return a value. It declares 9.0 functions, It has 9.0 functions called inside which are ["self.headers.headeritems", "self.cookies.values", "response_headers.append", "c.output", "start_response", "hasattr", "iter", "self.content.read", "self.get_content"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
WSGIResponse
public
0
0
determine_charset
def determine_charset(self):"""Determine the encoding as specified by the Content-Type's charsetparameter, if one is set"""charset_match = _CHARSET_RE.search(self.headers.get('Content-Type', ''))if charset_match:return charset_match.group(1)
2
4
1
33
0
364
371
364
self
[]
Returns
{"Assign": 1, "Expr": 1, "If": 1, "Return": 1}
3
8
3
["_CHARSET_RE.search", "self.headers.get", "charset_match.group"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.txclib.utils_py.parse_tx_response"]
The function (determine_charset) defined within the public class called WSGIResponse.The function start at line 364 and ends at 371. 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 3.0 functions, It has 3.0 functions called inside which are ["_CHARSET_RE.search", "self.headers.get", "charset_match.group"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.txclib.utils_py.parse_tx_response"].
pasteorg_paste
WSGIResponse
public
0
0
has_header
def has_header(self, header):"""Case-insensitive check for a header"""warnings.warn('WSGIResponse.has_header is deprecated, use ''WSGIResponse.headers.has_key instead', DeprecationWarning,2)return self.headers.has_key(header)
1
5
2
28
0
373
380
373
self,header
[]
Returns
{"Expr": 2, "Return": 1}
2
8
2
["warnings.warn", "self.headers.has_key"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94636089_recurve_methods_flexvalue.flexvalue.db_py.DBManager._csv_file_to_dicts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94636089_recurve_methods_flexvalue.flexvalue.db_py.DBManager._csv_file_to_rows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94636089_recurve_methods_flexvalue.flexvalue.db_py.DBManager._load_csv_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.httpexceptions_py.HTTPException.__init__"]
The function (has_header) defined within the public class called WSGIResponse.The function start at line 373 and ends at 380. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [373.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["warnings.warn", "self.headers.has_key"], It has 4.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94636089_recurve_methods_flexvalue.flexvalue.db_py.DBManager._csv_file_to_dicts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94636089_recurve_methods_flexvalue.flexvalue.db_py.DBManager._csv_file_to_rows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94636089_recurve_methods_flexvalue.flexvalue.db_py.DBManager._load_csv_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.httpexceptions_py.HTTPException.__init__"].
pasteorg_paste
WSGIResponse
public
0
0
set_cookie
def set_cookie(self, key, value='', max_age=None, expires=None, path='/', domain=None, secure=None, httponly=None):"""Define a cookie to be sent via the outgoing HTTP headers"""self.cookies[key] = valuefor var_name, var_value in [('max_age', max_age), ('path', path), ('domain', domain),('secure', secure), ('expires', expires), ('httponly', httponly)]:if var_value is not None and var_value is not False:self.cookies[key][var_name.replace('_', '-')] = var_value
4
8
9
116
0
382
392
382
self,key,value,max_age,expires,path,domain,secure,httponly
[]
None
{"Assign": 2, "Expr": 1, "For": 1, "If": 1}
1
11
1
["var_name.replace"]
0
[]
The function (set_cookie) defined within the public class called WSGIResponse.The function start at line 382 and ends at 392. It contains 8 lines of code and it has a cyclomatic complexity of 4. It takes 9 parameters, represented as [382.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["var_name.replace"].
pasteorg_paste
WSGIResponse
public
0
0
delete_cookie
def delete_cookie(self, key, path='/', domain=None):"""Notify the browser the specified cookie has expired and should bedeleted (via the outgoing HTTP headers)"""self.cookies[key] = ''if path is not None:self.cookies[key]['path'] = pathif domain is not None:self.cookies[key]['domain'] = domainself.cookies[key]['expires'] = 0self.cookies[key]['max-age'] = 0
3
8
4
80
0
394
405
394
self,key,path,domain
[]
None
{"Assign": 5, "Expr": 1, "If": 2}
0
12
0
[]
0
[]
The function (delete_cookie) defined within the public class called WSGIResponse.The function start at line 394 and ends at 405. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [394.0] and does not return any value..
pasteorg_paste
WSGIResponse
public
0
0
_set_content
def _set_content(self, content):if not isinstance(content, (bytes, str)):self._iter = contentif isinstance(content, list):self._is_str_iter = Trueelse:self._is_str_iter = Falseelse:self._iter = [content]self._is_str_iter = True
3
10
2
59
0
407
416
407
self,content
[]
None
{"Assign": 5, "If": 2}
2
10
2
["isinstance", "isinstance"]
0
[]
The function (_set_content) defined within the public class called WSGIResponse.The function start at line 407 and ends at 416. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [407.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["isinstance", "isinstance"].
pasteorg_paste
WSGIResponse
public
0
0
get_content
def get_content(self):"""Returns the content as an iterable of strings, encoding each element ofthe iterator from a Unicode object if necessary."""charset = self.determine_charset()if charset:return encode_unicode_app_iter(self.content, charset, self.errors)else:return self.content
2
6
1
35
0
423
432
423
self
[]
Returns
{"Assign": 1, "Expr": 1, "If": 1, "Return": 2}
2
10
2
["self.determine_charset", "encode_unicode_app_iter"]
103
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.docker_registry.drivers.s3_py.Storage.get_content", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.bookmark", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.boost", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.fav", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.favthread", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.note", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.printToot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.rep", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unbookmark", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unboost", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unfav", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.cli.experiment_py.follow_logs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.cli.experiment_py.logs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.storage._files_py.FileScheme.get_content", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.topology.partition_py.AllenStructure._dl_structure_ontology", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_import_merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_import_overwrite", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_indoc_import", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_indoc_import_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_indoc_import_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_outdoc_import_merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileRef.test_double_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileRef.test_indoc_reference", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileRef.test_ref_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestParsersBasics.test_parse_basics"]
The function (get_content) defined within the public class called WSGIResponse.The function start at line 423 and ends at 432. It contains 6 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, It has 2.0 functions called inside which are ["self.determine_charset", "encode_unicode_app_iter"], It has 103.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.docker_registry.drivers.s3_py.Storage.get_content", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.bookmark", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.boost", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.fav", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.favthread", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.note", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.printToot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.rep", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unbookmark", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unboost", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unfav", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.cli.experiment_py.follow_logs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.cli.experiment_py.logs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.storage._files_py.FileScheme.get_content", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.topology.partition_py.AllenStructure._dl_structure_ontology", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_import_merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_import_overwrite", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_indoc_import", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_indoc_import_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_indoc_import_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileImport.test_outdoc_import_merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileRef.test_double_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileRef.test_indoc_reference", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestFileRef.test_ref_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_parsers_py.TestParsersBasics.test_parse_basics"].
pasteorg_paste
WSGIResponse
public
0
0
wsgi_response
def wsgi_response(self):"""Return this WSGIResponse as a tuple of WSGI formatted data, including:(status, headers, iterable)"""status_text = STATUS_CODE_TEXT[self.status_code]status = '%s %s' % (self.status_code, status_text)response_headers = self.headers.headeritems()for c in self.cookies.values():response_headers.append(('Set-Cookie', c.output(header='')))return status, response_headers, self.get_content()
2
7
1
72
0
434
444
434
self
[]
Returns
{"Assign": 3, "Expr": 2, "For": 1, "Return": 1}
5
11
5
["self.headers.headeritems", "self.cookies.values", "response_headers.append", "c.output", "self.get_content"]
0
[]
The function (wsgi_response) defined within the public class called WSGIResponse.The function start at line 434 and ends at 444. It contains 7 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 5.0 functions, and It has 5.0 functions called inside which are ["self.headers.headeritems", "self.cookies.values", "response_headers.append", "c.output", "self.get_content"].
pasteorg_paste
WSGIResponse
public
0
0
write
def write(self, content):if not self._is_str_iter:raise IOError("This %s instance's content is not writable: (content "'is an iterator)' % self.__class__.__name__)self.content.append(content)
2
5
2
33
0
448
452
448
self,content
[]
None
{"Expr": 1, "If": 1}
2
5
2
["IOError", "self.content.append"]
501
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.gen_pickles_py.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.examples.crawler_py.write_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsCommand.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsReparse.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsWrapLines.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.log_py.logger", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.spec.config_py.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.unit.config_py.DescribeFromApp.it_merges_parent_Configs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.test_override_requirements_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.test_timestamps_multiple", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.__init___py.requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.io_py.Request._prepare_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670790_opencivicdata_pupa.pupa.tests.importers.test_base_importer_py.test_import_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.integrated_panel_py.ManagesIntegratedToolPanelMixin._write_integrated_tool_panel_config_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682952_cisagov_trustymail.src.trustymail.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.tests.test_commands_py.TestConfigCommand.test_auto_remote_is_backwards_compatible", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.tests.test_commands_py.TestConfigCommand.test_auto_remote_project", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717445_kiminewt_pyshark.src.pyshark.ek_field_mapping_py._EkFieldMapping.load_mapping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914659_opengisch_qfieldsync.qfieldsync.gui.synchronize_dialog_py.SynchronizeDialog.start_synchronization", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.pngsuite_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.test_png_py.Test.test_from_array_L2", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.test_png_py.Test.test_from_array_LA", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923090_astropy_sphinx_automodapi.sphinx_automodapi.tests.__init___py.cython_testpackage", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923947_luispedro_jug.jug.backends.encode_py.encode_to", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952372_thebjorn_pydeps.tests.filemaker_py.Filemaker.make_file"]
The function (write) defined within the public class called WSGIResponse.The function start at line 448 and ends at 452. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [448.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["IOError", "self.content.append"], It has 501.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.gen_pickles_py.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.examples.crawler_py.write_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsCommand.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsReparse.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsWrapLines.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.log_py.logger", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.spec.config_py.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.unit.config_py.DescribeFromApp.it_merges_parent_Configs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.test_override_requirements_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.test_timestamps_multiple", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.__init___py.requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.io_py.Request._prepare_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670790_opencivicdata_pupa.pupa.tests.importers.test_base_importer_py.test_import_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.integrated_panel_py.ManagesIntegratedToolPanelMixin._write_integrated_tool_panel_config_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682952_cisagov_trustymail.src.trustymail.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.tests.test_commands_py.TestConfigCommand.test_auto_remote_is_backwards_compatible", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.tests.test_commands_py.TestConfigCommand.test_auto_remote_project", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717445_kiminewt_pyshark.src.pyshark.ek_field_mapping_py._EkFieldMapping.load_mapping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914659_opengisch_qfieldsync.qfieldsync.gui.synchronize_dialog_py.SynchronizeDialog.start_synchronization", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.pngsuite_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.test_png_py.Test.test_from_array_L2", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.test_png_py.Test.test_from_array_LA", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923090_astropy_sphinx_automodapi.sphinx_automodapi.tests.__init___py.cython_testpackage", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923947_luispedro_jug.jug.backends.encode_py.encode_to", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952372_thebjorn_pydeps.tests.filemaker_py.Filemaker.make_file"].
pasteorg_paste
WSGIResponse
public
0
0
flush
def flush(self):pass
1
2
1
6
0
454
455
454
self
[]
None
{}
0
2
0
[]
9
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625987_abdur_rahmaanj_honeybot.honeybot.plugins.poker_assets.best5_py.hand_rank", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675065_rouxrc_gazouilleur.gazouilleur.lib.filelogger_py.FileLogger.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.objectstore.__init___py._create_object_in_session", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.odm.property_py.FieldProperty._get_id", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.pyquery.text_py._merge_original_parts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964649_karlicoss_hpi.src.my.emfit.__init___py.pre_dataframe", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.connectivity.import__py.CsvImportConnectivity.parse_source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._runtime.output._output_py.remove", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.extractors.le_py.Letv.prepare"]
The function (flush) defined within the public class called WSGIResponse.The function start at line 454 and ends at 455. 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. It has 9.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625987_abdur_rahmaanj_honeybot.honeybot.plugins.poker_assets.best5_py.hand_rank", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675065_rouxrc_gazouilleur.gazouilleur.lib.filelogger_py.FileLogger.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.objectstore.__init___py._create_object_in_session", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.odm.property_py.FieldProperty._get_id", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.pyquery.text_py._merge_original_parts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964649_karlicoss_hpi.src.my.emfit.__init___py.pre_dataframe", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.connectivity.import__py.CsvImportConnectivity.parse_source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._runtime.output._output_py.remove", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.extractors.le_py.Letv.prepare"].
pasteorg_paste
WSGIResponse
public
0
0
tell
def tell(self):if not self._is_str_iter:raise IOError('This %s instance cannot tell its position: (content ''is an iterator)' % self.__class__.__name__)return sum([len(chunk) for chunk in self._iter])
3
5
1
39
0
457
461
457
self
[]
Returns
{"If": 1, "Return": 1}
3
5
3
["IOError", "sum", "len"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client._producers_py.FileBodyProducer._determineLength", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87138903_intel_bmap_tools.bmaptools.TransRead_py.TransRead.tell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.requests_ext_py.MultiPartIO.tell"]
The function (tell) defined within the public class called WSGIResponse.The function start at line 457 and ends at 461. It contains 5 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 3.0 functions, It has 3.0 functions called inside which are ["IOError", "sum", "len"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client._producers_py.FileBodyProducer._determineLength", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87138903_intel_bmap_tools.bmaptools.TransRead_py.TransRead.tell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.requests_ext_py.MultiPartIO.tell"].
pasteorg_paste
WSGIResponse
public
0
0
charset__get
def charset__get(self):"""Get/set the charset (in the Content-Type)"""header = self.headers.get('content-type')if not header:return Nonematch = _CHARSET_RE.search(header)if match:return match.group(1)return None
3
8
1
42
0
466
476
466
self
[]
Returns
{"Assign": 2, "Expr": 1, "If": 2, "Return": 3}
3
11
3
["self.headers.get", "_CHARSET_RE.search", "match.group"]
0
[]
The function (charset__get) defined within the public class called WSGIResponse.The function start at line 466 and ends at 476. It contains 8 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 3.0 functions, and It has 3.0 functions called inside which are ["self.headers.get", "_CHARSET_RE.search", "match.group"].
pasteorg_paste
WSGIResponse
public
0
0
charset__set
def charset__set(self, charset):if charset is None:del self.charsetreturntry:header = self.headers.pop('content-type')except KeyError:raise AttributeError("You cannot set the charset when no content-type is defined")match = _CHARSET_RE.search(header)if match:header = header[:match.start()] + header[match.end():]header += '; charset=%s' % charsetself.headers['content-type'] = header
4
14
2
82
0
478
491
478
self,charset
[]
None
{"Assign": 4, "AugAssign": 1, "If": 2, "Return": 1, "Try": 1}
5
14
5
["self.headers.pop", "AttributeError", "_CHARSET_RE.search", "match.start", "match.end"]
0
[]
The function (charset__set) defined within the public class called WSGIResponse.The function start at line 478 and ends at 491. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [478.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["self.headers.pop", "AttributeError", "_CHARSET_RE.search", "match.start", "match.end"].
pasteorg_paste
WSGIResponse
public
0
0
charset__del
def charset__del(self):try:header = self.headers.pop('content-type')except KeyError:# Don't need to remove anythingreturnmatch = _CHARSET_RE.search(header)if match:header = header[:match.start()] + header[match.end():]self.headers['content-type'] = header
3
9
1
61
0
493
502
493
self
[]
None
{"Assign": 4, "If": 1, "Return": 1, "Try": 1}
4
10
4
["self.headers.pop", "_CHARSET_RE.search", "match.start", "match.end"]
0
[]
The function (charset__del) defined within the public class called WSGIResponse.The function start at line 493 and ends at 502. It contains 9 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.headers.pop", "_CHARSET_RE.search", "match.start", "match.end"].
pasteorg_paste
WSGIResponse
public
0
0
content_type__get
def content_type__get(self):"""Get/set the Content-Type header (or None), *without* thecharset or any parameters.If you include parameters (or ``;`` at all) when setting thecontent_type, any existing parameters will be deleted;otherwise they will be preserved."""header = self.headers.get('content-type')if not header:return Nonereturn header.split(';', 1)[0]
2
5
1
34
0
506
518
506
self
[]
Returns
{"Assign": 1, "Expr": 1, "If": 1, "Return": 2}
2
13
2
["self.headers.get", "header.split"]
0
[]
The function (content_type__get) defined within the public class called WSGIResponse.The function start at line 506 and ends at 518. 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 2.0 functions, and It has 2.0 functions called inside which are ["self.headers.get", "header.split"].
pasteorg_paste
WSGIResponse
public
0
0
content_type__set
def content_type__set(self, value):if ';' not in value:header = self.headers.get('content-type', '')if ';' in header:params = header.split(';', 1)[1]value += ';' + paramsself.headers['content-type'] = value
3
7
2
56
0
520
526
520
self,value
[]
None
{"Assign": 3, "AugAssign": 1, "If": 2}
2
7
2
["self.headers.get", "header.split"]
0
[]
The function (content_type__set) defined within the public class called WSGIResponse.The function start at line 520 and ends at 526. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [520.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.headers.get", "header.split"].
pasteorg_paste
WSGIResponse
public
0
0
content_type__del
def content_type__del(self):try:del self.headers['content-type']except KeyError:pass
2
5
1
18
0
528
532
528
self
[]
None
{"Try": 1}
0
5
0
[]
0
[]
The function (content_type__del) defined within the public class called WSGIResponse.The function start at line 528 and ends at 532. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
pasteorg_paste
AuthTicket
public
0
0
__init__
def __init__(self, secret, userid, ip, tokens=(), user_data='', time=None, cookie_name='auth_tkt', secure=False, digest_algo=DEFAULT_DIGEST):
1
3
5
36
0
92
94
92
self,secret,userid,ip,tokens,user_data,time,cookie_name,secure,digest_algo
[]
None
{"Assign": 12, "If": 3}
5
21
5
["isinstance", "join", "time_mod.time", "isinstance", "getattr"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called AuthTicket.The function start at line 92 and ends at 94. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [92.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["isinstance", "join", "time_mod.time", "isinstance", "getattr"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
AuthTicket
public
0
0
digest
def digest(self):return calculate_digest(self.ip, self.time, self.secret, self.userid, self.tokens,self.user_data, self.digest_algo)
1
4
1
36
0
114
117
114
self
[]
Returns
{"Return": 1}
1
4
1
["calculate_digest"]
63
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.kex_gex_py.KexGex._parse_kexdh_gex_init", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.kex_gex_py.KexGex._parse_kexdh_gex_reply", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.rsakey_py.RSAKey.sign_ssh_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.rsakey_py.RSAKey.verify_ssh_sig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tokens_py.HKDF_expand", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tokens_py.HKDF_extract", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.diesel.protocols.websockets_py.WebSocketServer.do_upgrade", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.diesel.protocols.websockets_py.WebSocketServer.websocket_protocol", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws._auth_v4_py.sign", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.PBKDF2_py.PBKDF2._pseudorandom", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.extra_py.concat_sha256", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwe_py.RSAEncrypter.decrypt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwk_py.RSAKey.deserialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwk_py.sha256_digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwk_py.sha384_digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwk_py.sha512_digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jws_py.DSASigner.sign", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jws_py.DSASigner.verify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.tests.test_4_jwe_py.sha256_digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.eso.priv.aesbase_py.AbstractAesBlumenthal.localizeKey", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.auth.hmacmd5_py.HmacMd5.authenticateIncomingMsg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.auth.hmacmd5_py.HmacMd5.authenticateOutgoingMsg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.auth.hmacsha_py.HmacSha.authenticateIncomingMsg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.auth.hmacsha_py.HmacSha.authenticateOutgoingMsg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.localkey_py.localizeKey"]
The function (digest) defined within the public class called AuthTicket.The function start at line 114 and ends at 117. It contains 4 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, It has 1.0 function called inside which is ["calculate_digest"], It has 63.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.kex_gex_py.KexGex._parse_kexdh_gex_init", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.kex_gex_py.KexGex._parse_kexdh_gex_reply", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.rsakey_py.RSAKey.sign_ssh_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.rsakey_py.RSAKey.verify_ssh_sig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tokens_py.HKDF_expand", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tokens_py.HKDF_extract", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.diesel.protocols.websockets_py.WebSocketServer.do_upgrade", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.diesel.protocols.websockets_py.WebSocketServer.websocket_protocol", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws._auth_v4_py.sign", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.PBKDF2_py.PBKDF2._pseudorandom", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.extra_py.concat_sha256", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwe_py.RSAEncrypter.decrypt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwk_py.RSAKey.deserialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwk_py.sha256_digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwk_py.sha384_digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jwk_py.sha512_digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jws_py.DSASigner.sign", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.src.jwkest.jws_py.DSASigner.verify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664206_identitypython_pyjwkest.tests.test_4_jwe_py.sha256_digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.eso.priv.aesbase_py.AbstractAesBlumenthal.localizeKey", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.auth.hmacmd5_py.HmacMd5.authenticateIncomingMsg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.auth.hmacmd5_py.HmacMd5.authenticateOutgoingMsg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.auth.hmacsha_py.HmacSha.authenticateIncomingMsg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.auth.hmacsha_py.HmacSha.authenticateOutgoingMsg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.pysnmp.proto.secmod.rfc3414.localkey_py.localizeKey"].
pasteorg_paste
AuthTicket
public
0
0
cookie_value
def cookie_value(self):v = b'%s%08x%s!' % (self.digest(), int(self.time), maybe_encode(url_quote(self.userid)))if self.tokens:v += maybe_encode(self.tokens) + b'!'v += maybe_encode(self.user_data)return v
2
6
1
60
0
119
124
119
self
[]
Returns
{"Assign": 1, "AugAssign": 2, "If": 1, "Return": 1}
6
6
6
["self.digest", "int", "maybe_encode", "url_quote", "maybe_encode", "maybe_encode"]
0
[]
The function (cookie_value) defined within the public class called AuthTicket.The function start at line 119 and ends at 124. It contains 6 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 6.0 functions, and It has 6.0 functions called inside which are ["self.digest", "int", "maybe_encode", "url_quote", "maybe_encode", "maybe_encode"].
pasteorg_paste
AuthTicket
public
0
0
cookie
def cookie(self):c = SimpleCookie()import base64cookie_value = base64.b64encode(self.cookie_value())c[self.cookie_name] = cookie_valuec[self.cookie_name]['path'] = '/'if self.secure:c[self.cookie_name]['secure'] = 'true'return c
2
9
1
61
0
126
134
126
self
[]
Returns
{"Assign": 5, "If": 1, "Return": 1}
3
9
3
["SimpleCookie", "base64.b64encode", "self.cookie_value"]
0
[]
The function (cookie) defined within the public class called AuthTicket.The function start at line 126 and ends at 134. It contains 9 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 ["SimpleCookie", "base64.b64encode", "self.cookie_value"].
pasteorg_paste
AuthTicket
public
0
0
__init__
def __init__(self, msg, expected=None):self.expected = expectedException.__init__(self, msg)
1
3
3
24
0
144
146
144
self,secret,userid,ip,tokens,user_data,time,cookie_name,secure,digest_algo
[]
None
{"Assign": 12, "If": 3}
5
21
5
["isinstance", "join", "time_mod.time", "isinstance", "getattr"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called AuthTicket.The function start at line 144 and ends at 146. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [144.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["isinstance", "join", "time_mod.time", "isinstance", "getattr"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
public
public
0
0
parse_ticket
def parse_ticket(secret, ticket, ip, digest_algo=DEFAULT_DIGEST):"""Parse the ticket, returning (timestamp, userid, tokens, user_data).If the ticket cannot be parsed, ``BadTicket`` will be raised withan explanation."""if isinstance(digest_algo, bytes):# correct specification of digest from hashlib or faildigest_algo = getattr(hashlib, digest_algo)digest_hexa_size = digest_algo().digest_size * 2ticket = ticket.strip(b'"')digest = ticket[:digest_hexa_size]try:timestamp = int(ticket[digest_hexa_size:digest_hexa_size + 8], 16)except ValueError as e:raise BadTicket('Timestamp is not a hex integer: %s' % e)try:userid, data = ticket[digest_hexa_size + 8:].split(b'!', 1)except ValueError:raise BadTicket('userid is not followed by !')userid = url_unquote(userid.decode())if b'!' in data:tokens, user_data = data.split(b'!', 1)else:# @@: Is this the right order?tokens = b''user_data = dataexpected = calculate_digest(ip, timestamp, secret,userid, tokens, user_data,digest_algo)if expected != digest:raise BadTicket('Digest signature is not correct',expected=(expected, digest))tokens = tokens.split(b',')return (timestamp, userid, tokens, user_data)
6
28
4
206
9
149
188
149
secret,ticket,ip,digest_algo
['timestamp', 'digest', 'digest_algo', 'tokens', 'userid', 'expected', 'user_data', 'ticket', 'digest_hexa_size']
Returns
{"Assign": 12, "Expr": 1, "If": 3, "Return": 1, "Try": 2}
14
40
14
["isinstance", "getattr", "digest_algo", "ticket.strip", "int", "BadTicket", "split", "BadTicket", "url_unquote", "userid.decode", "data.split", "calculate_digest", "BadTicket", "tokens.split"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.AuthTKTMiddleware.__call__"]
The function (parse_ticket) defined within the public class called public.The function start at line 149 and ends at 188. It contains 28 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [149.0], and this function return a value. It declares 14.0 functions, It has 14.0 functions called inside which are ["isinstance", "getattr", "digest_algo", "ticket.strip", "int", "BadTicket", "split", "BadTicket", "url_unquote", "userid.decode", "data.split", "calculate_digest", "BadTicket", "tokens.split"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.AuthTKTMiddleware.__call__"].
pasteorg_paste
public
public
0
0
calculate_digest
def calculate_digest(ip, timestamp, secret, userid, tokens, user_data, digest_algo):secret = maybe_encode(secret)userid = maybe_encode(userid)tokens = maybe_encode(tokens)user_data = maybe_encode(user_data)digest0 = maybe_encode(digest_algo(encode_ip_timestamp(ip, timestamp) + secret + userid + b'\0'+ tokens + b'\0' + user_data).hexdigest())digest = digest_algo(digest0 + secret).hexdigest()return maybe_encode(digest)
1
11
7
90
6
192
202
192
ip,timestamp,secret,userid,tokens,user_data,digest_algo
['digest', 'secret', 'tokens', 'userid', 'user_data', 'digest0']
Returns
{"Assign": 6, "Return": 1}
11
11
11
["maybe_encode", "maybe_encode", "maybe_encode", "maybe_encode", "maybe_encode", "hexdigest", "digest_algo", "encode_ip_timestamp", "hexdigest", "digest_algo", "maybe_encode"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.AuthTicket.digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.parse_ticket"]
The function (calculate_digest) defined within the public class called public.The function start at line 192 and ends at 202. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [192.0], and this function return a value. It declares 11.0 functions, It has 11.0 functions called inside which are ["maybe_encode", "maybe_encode", "maybe_encode", "maybe_encode", "maybe_encode", "hexdigest", "digest_algo", "encode_ip_timestamp", "hexdigest", "digest_algo", "maybe_encode"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.AuthTicket.digest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.parse_ticket"].
pasteorg_paste
public
public
0
0
int2byte
def int2byte(i):return bytes((i,))
1
2
1
13
0
204
205
204
i
[]
Returns
{"Return": 1}
1
2
1
["bytes"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3591075_smarkets_smk_python_sdk.smarkets.streaming_api.framing_py.uleb128_encode"]
The function (int2byte) defined within the public class called public.The function start at line 204 and ends at 205. 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, It has 1.0 function called inside which is ["bytes"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3591075_smarkets_smk_python_sdk.smarkets.streaming_api.framing_py.uleb128_encode"].
pasteorg_paste
public
public
0
0
encode_ip_timestamp
def encode_ip_timestamp(ip, timestamp):ip_chars = b''.join(map(int2byte, map(int, ip.split('.'))))t = int(timestamp)ts = ((t & 0xff000000) >> 24,(t & 0xff0000) >> 16,(t & 0xff00) >> 8,t & 0xff)ts_chars = b''.join(map(int2byte, ts))return (ip_chars + ts_chars)
1
9
2
91
4
207
215
207
ip,timestamp
['t', 'ip_chars', 'ts_chars', 'ts']
Returns
{"Assign": 4, "Return": 1}
7
9
7
["join", "map", "map", "ip.split", "int", "join", "map"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.calculate_digest"]
The function (encode_ip_timestamp) defined within the public class called public.The function start at line 207 and ends at 215. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [207.0], and this function return a value. It declares 7.0 functions, It has 7.0 functions called inside which are ["join", "map", "map", "ip.split", "int", "join", "map"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.calculate_digest"].
pasteorg_paste
public
public
0
0
maybe_encode
def maybe_encode(s, encoding='utf8'):if isinstance(s, str):s = s.encode(encoding)return s
2
4
2
27
1
218
221
218
s,encoding
['s']
Returns
{"Assign": 1, "If": 1, "Return": 1}
2
4
2
["isinstance", "s.encode"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.AuthTicket.cookie_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.calculate_digest"]
The function (maybe_encode) defined within the public class called public.The function start at line 218 and ends at 221. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [218.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["isinstance", "s.encode"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.AuthTicket.cookie_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.auth_tkt_py.calculate_digest"].
pasteorg_paste
AuthTicket
public
0
0
__init__
def __init__(self, app, secret, cookie_name='auth_tkt', secure=False, include_ip=True, logout_path=None, httponly=False, no_domain_cookie=True, current_domain_cookie=True, wildcard_cookie=True, digest_algo=DEFAULT_DIGEST):self.app = appself.secret = secretself.cookie_name = cookie_nameself.secure = secureself.httponly = httponlyself.include_ip = include_ipself.logout_path = logout_pathself.no_domain_cookie = no_domain_cookieself.current_domain_cookie = current_domain_cookieself.wildcard_cookie = wildcard_cookieif isinstance(digest_algo, str):# correct specification of digest from hashlib or failself.digest_algo = getattr(hashlib, digest_algo)else:self.digest_algo = digest_algo
2
18
12
120
0
282
300
282
self,secret,userid,ip,tokens,user_data,time,cookie_name,secure,digest_algo
[]
None
{"Assign": 12, "If": 3}
5
21
5
["isinstance", "join", "time_mod.time", "isinstance", "getattr"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called AuthTicket.The function start at line 282 and ends at 300. It contains 18 lines of code and it has a cyclomatic complexity of 2. It takes 12 parameters, represented as [282.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["isinstance", "join", "time_mod.time", "isinstance", "getattr"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
public
public
0
0
__call__.set_user
def set_user(userid, tokens='', user_data=''):set_cookies.extend(self.set_user_cookie(environ, userid, tokens, user_data))
1
3
3
30
0
334
336
334
null
[]
None
null
0
0
0
null
0
null
The function (__call__.set_user) defined within the public class called public.The function start at line 334 and ends at 336. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [334.0] and does not return any value..
pasteorg_paste
public
public
0
0
__call__.logout_user
def logout_user():set_cookies.extend(self.logout_user_cookie(environ))
1
2
0
15
0
338
339
338
null
[]
None
null
0
0
0
null
0
null
The function (__call__.logout_user) defined within the public class called public.The function start at line 338 and ends at 339. 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_paste
public
public
0
0
__call__.cookie_setting_start_response
def cookie_setting_start_response(status, headers, exc_info=None):headers.extend(set_cookies)return start_response(status, headers, exc_info)
1
3
3
26
0
346
348
346
null
[]
None
null
0
0
0
null
0
null
The function (__call__.cookie_setting_start_response) defined within the public class called public.The function start at line 346 and ends at 348. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [346.0] and does not return any value..
pasteorg_paste
AuthTKTMiddleware
public
0
0
__call__
def __call__(self, environ, start_response):cookies = request.get_cookies(environ)if self.cookie_name in cookies:cookie_value = cookies[self.cookie_name].valueelse:cookie_value = ''if cookie_value:if self.include_ip:remote_addr = environ['REMOTE_ADDR']else:# mod_auth_tkt uses this dummy value when IP is not# checked:remote_addr = '0.0.0.0'# @@: This should handle bad signatures better:# Also, timeouts should cause cookie refreshtry:timestamp, userid, tokens, user_data = parse_ticket(self.secret, cookie_value, remote_addr, self.digest_algo)tokens = ','.join(tokens)environ['REMOTE_USER'] = useridif environ.get('REMOTE_USER_TOKENS'):# We want to add tokens/roles to what's there:tokens = environ['REMOTE_USER_TOKENS'] + ',' + tokensenviron['REMOTE_USER_TOKENS'] = tokensenviron['REMOTE_USER_DATA'] = user_dataenviron['AUTH_TYPE'] = 'cookie'except BadTicket:# bad credentials, just ignore without logging the user# in or anythingpassset_cookies = []def set_user(userid, tokens='', user_data=''):set_cookies.extend(self.set_user_cookie(environ, userid, tokens, user_data))def logout_user():set_cookies.extend(self.logout_user_cookie(environ))environ['paste.auth_tkt.set_user'] = set_userenviron['paste.auth_tkt.logout_user'] = logout_userif self.logout_path and environ.get('PATH_INFO') == self.logout_path:logout_user()def cookie_setting_start_response(status, headers, exc_info=None):headers.extend(set_cookies)return start_response(status, headers, exc_info)return self.app(environ, cookie_setting_start_response)
8
32
3
186
0
302
350
302
self,environ,start_response
[]
Returns
{"Assign": 15, "Expr": 4, "If": 5, "Return": 2, "Try": 1}
13
49
13
["request.get_cookies", "parse_ticket", "join", "environ.get", "set_cookies.extend", "self.set_user_cookie", "set_cookies.extend", "self.logout_user_cookie", "environ.get", "logout_user", "headers.extend", "start_response", "self.app"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called AuthTKTMiddleware.The function start at line 302 and ends at 350. It contains 32 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [302.0], and this function return a value. It declares 13.0 functions, It has 13.0 functions called inside which are ["request.get_cookies", "parse_ticket", "join", "environ.get", "set_cookies.extend", "self.set_user_cookie", "set_cookies.extend", "self.logout_user_cookie", "environ.get", "logout_user", "headers.extend", "start_response", "self.app"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
AuthTKTMiddleware
public
0
0
set_user_cookie
def set_user_cookie(self, environ, userid, tokens, user_data):if not isinstance(tokens, str):tokens = ','.join(tokens)if self.include_ip:remote_addr = environ['REMOTE_ADDR']else:remote_addr = '0.0.0.0'ticket = AuthTicket(self.secret,userid,remote_addr,tokens=tokens,user_data=user_data,cookie_name=self.cookie_name,secure=self.secure)# @@: Should we set REMOTE_USER etc in the current# environment right now as well?cur_domain = environ.get('HTTP_HOST', environ.get('SERVER_NAME'))wild_domain = '.' + cur_domaincookie_options = ""if self.secure:cookie_options += "; secure"if self.httponly:cookie_options += "; HttpOnly"cookies = []if self.no_domain_cookie:cookies.append(('Set-Cookie', '%s=%s; Path=/%s' % (self.cookie_name, ticket.cookie_value(), cookie_options)))if self.current_domain_cookie:cookies.append(('Set-Cookie', '%s=%s; Path=/; Domain=%s%s' % (self.cookie_name, ticket.cookie_value(), cur_domain,cookie_options)))if self.wildcard_cookie:cookies.append(('Set-Cookie', '%s=%s; Path=/; Domain=%s%s' % (self.cookie_name, ticket.cookie_value(), wild_domain,cookie_options)))return cookies
8
35
5
214
0
352
391
352
self,environ,userid,tokens,user_data
[]
Returns
{"Assign": 8, "AugAssign": 2, "Expr": 3, "If": 7, "Return": 1}
11
40
11
["isinstance", "join", "AuthTicket", "environ.get", "environ.get", "cookies.append", "ticket.cookie_value", "cookies.append", "ticket.cookie_value", "cookies.append", "ticket.cookie_value"]
0
[]
The function (set_user_cookie) defined within the public class called AuthTKTMiddleware.The function start at line 352 and ends at 391. It contains 35 lines of code and it has a cyclomatic complexity of 8. It takes 5 parameters, represented as [352.0], and this function return a value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["isinstance", "join", "AuthTicket", "environ.get", "environ.get", "cookies.append", "ticket.cookie_value", "cookies.append", "ticket.cookie_value", "cookies.append", "ticket.cookie_value"].
pasteorg_paste
AuthTKTMiddleware
public
0
0
logout_user_cookie
def logout_user_cookie(self, environ):cur_domain = environ.get('HTTP_HOST', environ.get('SERVER_NAME'))wild_domain = '.' + cur_domainexpires = 'Sat, 01-Jan-2000 12:00:00 GMT'cookies = [('Set-Cookie', '%s=""; Expires="%s"; Path=/' % (self.cookie_name, expires)),('Set-Cookie', '%s=""; Expires="%s"; Path=/; Domain=%s' % (self.cookie_name, expires, cur_domain)),('Set-Cookie', '%s=""; Expires="%s"; Path=/; Domain=%s' % (self.cookie_name, expires, wild_domain)),]return cookies
1
12
2
82
0
393
404
393
self,environ
[]
Returns
{"Assign": 4, "Return": 1}
2
12
2
["environ.get", "environ.get"]
0
[]
The function (logout_user_cookie) defined within the public class called AuthTKTMiddleware.The function start at line 393 and ends at 404. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [393.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["environ.get", "environ.get"].
pasteorg_paste
public
public
0
0
make_auth_tkt_middleware
def make_auth_tkt_middleware(app,global_conf,secret=None,cookie_name='auth_tkt',secure=False,include_ip=True,logout_path=None):"""Creates the `AuthTKTMiddleware<class-paste.auth.auth_tkt.AuthTKTMiddleware.html>`_.``secret`` is required, but can be set globally or locally."""from paste.deploy.converters import asboolsecure = asbool(secure)include_ip = asbool(include_ip)if secret is None:secret = global_conf.get('secret')if not secret:raise ValueError("You must provide a 'secret' (in global or local configuration)")return AuthTKTMiddleware(app, secret, cookie_name, secure, include_ip, logout_path or None)
4
18
7
87
3
407
430
407
app,global_conf,secret,cookie_name,secure,include_ip,logout_path
['include_ip', 'secret', 'secure']
Returns
{"Assign": 3, "Expr": 1, "If": 2, "Return": 1}
5
24
5
["asbool", "asbool", "global_conf.get", "ValueError", "AuthTKTMiddleware"]
0
[]
The function (make_auth_tkt_middleware) defined within the public class called public.The function start at line 407 and ends at 430. It contains 18 lines of code and it has a cyclomatic complexity of 4. It takes 7 parameters, represented as [407.0], and this function return a value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["asbool", "asbool", "global_conf.get", "ValueError", "AuthTKTMiddleware"].
pasteorg_paste
AuthBasicAuthenticator
public
0
0
__init__
def __init__(self, realm, authfunc):self.realm = realmself.authfunc = authfunc
1
3
3
19
0
39
41
39
self,realm,authfunc
[]
None
{"Assign": 2}
0
3
0
[]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called AuthBasicAuthenticator.The function start at line 39 and ends at 41. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [39.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
AuthBasicAuthenticator
public
0
0
build_authentication
def build_authentication(self):head = WWW_AUTHENTICATE.tuples('Basic realm="%s"' % self.realm)return HTTPUnauthorized(headers=head)
1
3
1
24
0
43
45
43
self
[]
Returns
{"Assign": 1, "Return": 1}
2
3
2
["WWW_AUTHENTICATE.tuples", "HTTPUnauthorized"]
0
[]
The function (build_authentication) defined within the public class called AuthBasicAuthenticator.The function start at line 43 and ends at 45. 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 declares 2.0 functions, and It has 2.0 functions called inside which are ["WWW_AUTHENTICATE.tuples", "HTTPUnauthorized"].
pasteorg_paste
AuthBasicAuthenticator
public
0
0
authenticate
def authenticate(self, environ):authorization = AUTHORIZATION(environ)if not authorization:return self.build_authentication()(authmeth, auth) = authorization.split(' ', 1)if 'basic' != authmeth.lower():return self.build_authentication()auth = b64decode(auth.strip().encode('ascii')).decode('ascii')username, password = auth.split(':', 1)if self.authfunc(environ, username, password):return usernamereturn self.build_authentication()
4
12
2
104
0
47
58
47
self,environ
[]
Returns
{"Assign": 4, "If": 3, "Return": 4}
12
12
12
["AUTHORIZATION", "self.build_authentication", "authorization.split", "authmeth.lower", "self.build_authentication", "decode", "b64decode", "encode", "auth.strip", "auth.split", "self.authfunc", "self.build_authentication"]
88
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.session_py.DynectMultiSession.authenticate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_agent_py.test_psk_host", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_default_py.test_hosts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_default_py.test_hosts_status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926390_ubernostrum_django_registration.src.django_registration.backends.one_step.views_py.RegistrationView.register", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_missing_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_successful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_successful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_unsuccessful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_unsuccessful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_missing_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_successful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_successful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_unsuccessful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_unsuccessful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.forms_py.LoginForm.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.api.domains.cho_py.handle_osu_login_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.decorators_py.inject_authentication", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.utils_py.has_valid_oauth_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.personal_tab.register_py.CardRegistrationIndex.post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.89349796_digitalcriminals_ultimascraper.tests.test_signed_headers_py.example", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.login_py.try_replace_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_invalid_api_key", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_invalid_header", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_missing_api_key"]
The function (authenticate) defined within the public class called AuthBasicAuthenticator.The function start at line 47 and ends at 58. It contains 12 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [47.0], and this function return a value. It declares 12.0 functions, It has 12.0 functions called inside which are ["AUTHORIZATION", "self.build_authentication", "authorization.split", "authmeth.lower", "self.build_authentication", "decode", "b64decode", "encode", "auth.strip", "auth.split", "self.authfunc", "self.build_authentication"], It has 88.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.session_py.DynectMultiSession.authenticate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_agent_py.test_psk_host", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_default_py.test_hosts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_default_py.test_hosts_status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926390_ubernostrum_django_registration.src.django_registration.backends.one_step.views_py.RegistrationView.register", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_missing_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_successful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_successful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_unsuccessful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_unsuccessful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_missing_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_successful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_successful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_unsuccessful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_unsuccessful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.forms_py.LoginForm.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.api.domains.cho_py.handle_osu_login_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.decorators_py.inject_authentication", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.utils_py.has_valid_oauth_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.personal_tab.register_py.CardRegistrationIndex.post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.89349796_digitalcriminals_ultimascraper.tests.test_signed_headers_py.example", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.login_py.try_replace_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_invalid_api_key", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_invalid_header", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_missing_api_key"].
pasteorg_paste
AuthBasicAuthenticator
public
0
0
__init__
def __init__(self, application, realm, authfunc):self.application = applicationself.authenticate = AuthBasicAuthenticator(realm, authfunc)
1
3
4
26
0
89
91
89
self,realm,authfunc
[]
None
{"Assign": 2}
0
3
0
[]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called AuthBasicAuthenticator.The function start at line 89 and ends at 91. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [89.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
AuthBasicHandler
public
0
0
__call__
def __call__(self, environ, start_response):username = REMOTE_USER(environ)if not username:result = self.authenticate(environ)if isinstance(result, str):AUTH_TYPE.update(environ, 'basic')REMOTE_USER.update(environ, result)else:return result.wsgi_application(environ, start_response)return self.application(environ, start_response)
3
10
3
71
0
93
102
93
self,environ,start_response
[]
Returns
{"Assign": 2, "Expr": 2, "If": 2, "Return": 2}
7
10
7
["REMOTE_USER", "self.authenticate", "isinstance", "AUTH_TYPE.update", "REMOTE_USER.update", "result.wsgi_application", "self.application"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called AuthBasicHandler.The function start at line 93 and ends at 102. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [93.0], and this function return a value. It declares 7.0 functions, It has 7.0 functions called inside which are ["REMOTE_USER", "self.authenticate", "isinstance", "AUTH_TYPE.update", "REMOTE_USER.update", "result.wsgi_application", "self.application"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
public
public
0
0
make_basic
def make_basic(app, global_conf, realm, authfunc, **kw):"""Grant access via basic authenticationConfig looks like this::[filter:grant]use = egg:Paste#auth_basicrealm=myrealmauthfunc=somepackage.somemodule:somefunction"""from paste.util.import_string import eval_importimport typesauthfunc = eval_import(authfunc)assert isinstance(authfunc, types.FunctionType), "authfunc must resolve to a function"return AuthBasicHandler(app, realm, authfunc)
1
6
5
51
1
108
124
108
app,global_conf,realm,authfunc,**kw
['authfunc']
Returns
{"Assign": 1, "Expr": 1, "Return": 1}
3
17
3
["eval_import", "isinstance", "AuthBasicHandler"]
0
[]
The function (make_basic) defined within the public class called public.The function start at line 108 and ends at 124. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [108.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["eval_import", "isinstance", "AuthBasicHandler"].
pasteorg_paste
public
public
0
0
AuthCASHandler.cas_application
def cas_application(environ, start_response):username = environ.get('REMOTE_USER','')if username:return application(environ, start_response)qs = environ.get('QUERY_STRING','').split("&")if qs and qs[-1].startswith("ticket="):# assume a response from the authorityticket = qs.pop().split("=", 1)[1]environ['QUERY_STRING'] = "&".join(qs)service = construct_url(environ)args = urlencode({'service': service,'ticket': ticket})requrl = authority + "validate?" + argsresult = urlopen(requrl).read().split("\n")if 'yes' == result[0]:environ['REMOTE_USER'] = result[1]environ['AUTH_TYPE'] = 'cas'return application(environ, start_response)exce = CASLoginFailure()else:service = construct_url(environ)args = urlencode({'service': service})location = authority + "login?" + argsexce = CASAuthenticate(location)return exce.wsgi_application(environ, start_response)
5
24
2
201
0
63
87
63
null
[]
None
null
0
0
0
null
0
null
The function (AuthCASHandler.cas_application) defined within the public class called public.The function start at line 63 and ends at 87. It contains 24 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [63.0] and does not return any value..
pasteorg_paste
public
public
0
0
AuthCASHandler
def AuthCASHandler(application, authority):"""middleware to implement CAS 1.0 authenticationThere are several possible outcomes:0. If the REMOTE_USER environment variable is already populated; then this middleware is a no-op, and the request is passed along to the application.1. If a query argument 'ticket' is found, then an attempt to validate said ticket /w the authentication service done.If the ticket is not validated; an 403 'Forbidden' exception is raised. Otherwise, the REMOTE_USER variable is set with the NetID that was validated and AUTH_TYPE is set to "cas".2. Otherwise, a 303 'See Other' is returned to the client directing them to login using the CAS service.After logon, the service will send them back to this same URL, only with a 'ticket' query argument.Parameters:``authority``This is a fully-qualified URL to a CAS 1.0 service. The URLshould end with a '/' and have the 'login' and 'validate'sub-paths as described in the CAS 1.0 documentation."""assert authority.endswith("/") and authority.startswith("http")def cas_application(environ, start_response):username = environ.get('REMOTE_USER','')if username:return application(environ, start_response)qs = environ.get('QUERY_STRING','').split("&")if qs and qs[-1].startswith("ticket="):# assume a response from the authorityticket = qs.pop().split("=", 1)[1]environ['QUERY_STRING'] = "&".join(qs)service = construct_url(environ)args = urlencode({'service': service,'ticket': ticket})requrl = authority + "validate?" + argsresult = urlopen(requrl).read().split("\n")if 'yes' == result[0]:environ['REMOTE_USER'] = result[1]environ['AUTH_TYPE'] = 'cas'return application(environ, start_response)exce = CASLoginFailure()else:service = construct_url(environ)args = urlencode({'service': service})location = authority + "login?" + argsexce = CASAuthenticate(location)return exce.wsgi_application(environ, start_response)return cas_application
2
4
2
26
9
32
88
32
application,authority
['args', 'qs', 'exce', 'username', 'service', 'requrl', 'ticket', 'location', 'result']
Returns
{"Assign": 15, "Expr": 1, "If": 3, "Return": 4}
21
57
21
["authority.endswith", "authority.startswith", "environ.get", "application", "split", "environ.get", "startswith", "split", "qs.pop", "join", "construct_url", "urlencode", "split", "read", "urlopen", "application", "CASLoginFailure", "construct_url", "urlencode", "CASAuthenticate", "exce.wsgi_application"]
0
[]
The function (AuthCASHandler) defined within the public class called public.The function start at line 32 and ends at 88. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [32.0], and this function return a value. It declares 21.0 functions, and It has 21.0 functions called inside which are ["authority.endswith", "authority.startswith", "environ.get", "application", "split", "environ.get", "startswith", "split", "qs.pop", "join", "construct_url", "urlencode", "split", "read", "urlopen", "application", "CASLoginFailure", "construct_url", "urlencode", "CASAuthenticate", "exce.wsgi_application"].
pasteorg_paste
public
public
0
0
make_time
def make_time(value):return time.strftime("%Y%m%d%H%M", time.gmtime(value))
1
2
1
19
0
54
55
54
value
[]
Returns
{"Return": 1}
2
2
2
["time.strftime", "time.gmtime"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cookie_py.AuthCookieSigner.auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cookie_py.AuthCookieSigner.sign"]
The function (make_time) defined within the public class called public.The function start at line 54 and ends at 55. 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 declares 2.0 functions, It has 2.0 functions called inside which are ["time.strftime", "time.gmtime"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cookie_py.AuthCookieSigner.auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cookie_py.AuthCookieSigner.sign"].
pasteorg_paste
public
public
0
0
encode
def encode(s, sublist = _encode):return reduce((lambda a, b: a.replace(b[0], b[1])), sublist, str(s))
1
2
2
41
0
65
66
65
s,sublist
[]
Returns
{"Return": 1}
3
2
3
["reduce", "a.replace", "str"]
942
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.feeds_py.feeds_timer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.tweets_py.get_access_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.verify_py.verify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.support_py.BaseWebTest.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_functional_py.FunctionalTest.test_data_search_without_filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_indexer_py.SpatialSearchTest.spatialSearch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.BasicAuthRegistrationTest.test_unauthorized_on_invalid_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.CreateTokenViewTest.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.TokenViewTest.test_unauthorized_if_invalid_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tokens_py.HKDF_expand", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_empty_after_remove_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_empty_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_list_directory_with_subdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_remove_existent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_remove_folder", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_stream", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_write_read_3", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_write_read_5", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_write_read_6", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.tests.test_lru_py.TestLru.testSetUnicode3", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.management.commands.exportcalaccesscampaignbrowser_py.Command.encoded", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.utils.serializer_py.CIRCustomSerializer.to_csv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.comparators.cbfs_py.CbfsListing.filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.comparators.elf_py.Readelf.filter"]
The function (encode) defined within the public class called public.The function start at line 65 and ends at 66. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [65.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["reduce", "a.replace", "str"], It has 942.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.feeds_py.feeds_timer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.tweets_py.get_access_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.verify_py.verify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.support_py.BaseWebTest.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_functional_py.FunctionalTest.test_data_search_without_filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_indexer_py.SpatialSearchTest.spatialSearch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.BasicAuthRegistrationTest.test_unauthorized_on_invalid_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.CreateTokenViewTest.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.TokenViewTest.test_unauthorized_if_invalid_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tokens_py.HKDF_expand", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_empty_after_remove_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_empty_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_list_directory_with_subdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_remove_existent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_remove_folder", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_stream", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_write_read_3", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_write_read_5", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_write_read_6", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.tests.test_lru_py.TestLru.testSetUnicode3", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.management.commands.exportcalaccesscampaignbrowser_py.Command.encoded", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.utils.serializer_py.CIRCustomSerializer.to_csv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.comparators.cbfs_py.CbfsListing.filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.comparators.elf_py.Readelf.filter"].
pasteorg_paste
CookieTooLarge
public
0
1
__init__
def __init__(self, content, cookie):RuntimeError.__init__("Signed cookie exceeds maximum size of 4096")self.content = contentself.cookie = cookie
1
4
3
25
0
70
73
70
self,content,cookie
[]
None
{"Assign": 2, "Expr": 1}
1
4
1
["RuntimeError.__init__"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called CookieTooLarge, that inherit another class.The function start at line 70 and ends at 73. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [70.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["RuntimeError.__init__"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
public
public
0
0
new_secret
def new_secret():""" returns a 64 byte secret """secret = ''.join(random.sample(_all_chars, 64))secret = secret.encode('utf8')return secret
1
4
0
30
1
76
80
76
['secret']
Returns
{"Assign": 2, "Expr": 1, "Return": 1}
3
5
3
["join", "random.sample", "secret.encode"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cookie_py.AuthCookieSigner.__init__"]
The function (new_secret) defined within the public class called public.The function start at line 76 and ends at 80. It contains 4 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 declares 3.0 functions, It has 3.0 functions called inside which are ["join", "random.sample", "secret.encode"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cookie_py.AuthCookieSigner.__init__"].
pasteorg_paste
CookieTooLarge
public
0
1
__init__
def __init__(self, secret = None, timeout = None, maxlen = None):self.timeout = timeout or 30if isinstance(timeout, str):raise ValueError("Timeout must be a number (minutes), not a string (%r)"% timeout)self.maxlen= maxlen or 4096self.secret = secret or new_secret()
5
8
4
55
0
128
135
128
self,content,cookie
[]
None
{"Assign": 2, "Expr": 1}
1
4
1
["RuntimeError.__init__"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called CookieTooLarge, that inherit another class.The function start at line 128 and ends at 135. It contains 8 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [128.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["RuntimeError.__init__"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
AuthCookieSigner
public
0
0
sign
def sign(self, content):"""Sign the content returning a valid cookie (that does notneed to be escaped and quoted).The expiration of thiscookie is handled server-side in the auth() function."""timestamp = make_time(time.time() + 60*self.timeout)content = content.encode('utf8')timestamp = timestamp.encode('utf8')cookie = base64.encodebytes(hmac.new(self.secret, content, sha1).digest() +timestamp +content)cookie = cookie.replace(b"/", b"_").replace(b"=", b"~")cookie = cookie.replace(b'\n', b'').replace(b'\r', b'')if len(cookie) > self.maxlen:raise CookieTooLarge(content, cookie)return cookie
2
13
2
128
0
137
155
137
self,content
[]
Returns
{"Assign": 6, "Expr": 1, "If": 1, "Return": 1}
13
19
13
["make_time", "time.time", "content.encode", "timestamp.encode", "base64.encodebytes", "digest", "hmac.new", "replace", "cookie.replace", "replace", "cookie.replace", "len", "CookieTooLarge"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws._auth_v4_py.getSignatureKey", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918097_mherrmann_fbs.fbs.builtin_commands.__init___py.release", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.workup.models_py.Workup.sign", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.ansible_base.lib.testing.fixtures_py.rsa_keypair_with_cert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.ansible_base.lib.testing.fixtures_py.rsa_keypair_with_signed_cert"]
The function (sign) defined within the public class called AuthCookieSigner.The function start at line 137 and ends at 155. It contains 13 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [137.0], and this function return a value. It declares 13.0 functions, It has 13.0 functions called inside which are ["make_time", "time.time", "content.encode", "timestamp.encode", "base64.encodebytes", "digest", "hmac.new", "replace", "cookie.replace", "replace", "cookie.replace", "len", "CookieTooLarge"], It has 5.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws._auth_v4_py.getSignatureKey", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918097_mherrmann_fbs.fbs.builtin_commands.__init___py.release", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.workup.models_py.Workup.sign", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.ansible_base.lib.testing.fixtures_py.rsa_keypair_with_cert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.ansible_base.lib.testing.fixtures_py.rsa_keypair_with_signed_cert"].
pasteorg_paste
AuthCookieSigner
public
0
0
auth
def auth(self, cookie):"""Authenticate the cooke using the signature, verify that ithas not expired; and return the cookie's content"""decode = base64.decodestring(cookie.replace("_", "/").replace("~", "="))signature = decode[:_signature_size]expires = decode[_signature_size:_header_size]content = decode[_header_size:]if signature == hmac.new(self.secret, content, sha1).digest():if int(expires) > int(make_time(time.time())):return contentelse:# This is the normal case of an expired cookie; just# don't bother doing anything here.passelse:# This case can happen if the server is restarted with a# different secret; or if the user's IP address changed# due to a proxy.However, it could also be a break-in# attempt -- so should it be reported?pass
3
13
2
98
0
157
179
157
self,cookie
[]
Returns
{"Assign": 4, "Expr": 1, "If": 2, "Return": 1}
9
23
9
["base64.decodestring", "replace", "cookie.replace", "digest", "hmac.new", "int", "int", "make_time", "time.time"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.ansible_base.lib.channels.middleware_py._get_authenticated_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.test_app.tests.lib.channels.test_middleware_py.test_middleware_auth_denied", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.test_app.tests.lib.channels.test_middleware_py.test_middleware_auth_pass"]
The function (auth) defined within the public class called AuthCookieSigner.The function start at line 157 and ends at 179. It contains 13 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [157.0], and this function return a value. It declares 9.0 functions, It has 9.0 functions called inside which are ["base64.decodestring", "replace", "cookie.replace", "digest", "hmac.new", "int", "int", "make_time", "time.time"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.ansible_base.lib.channels.middleware_py._get_authenticated_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.test_app.tests.lib.channels.test_middleware_py.test_middleware_auth_denied", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.test_app.tests.lib.channels.test_middleware_py.test_middleware_auth_pass"].
pasteorg_paste
CookieTooLarge
public
0
1
__init__
def __init__(self, handler, scanlist):list.__init__(self, scanlist)self.handler = handler
1
3
3
22
0
190
192
190
self,content,cookie
[]
None
{"Assign": 2, "Expr": 1}
1
4
1
["RuntimeError.__init__"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called CookieTooLarge, that inherit another class.The function start at line 190 and ends at 192. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [190.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["RuntimeError.__init__"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
AuthCookieEnviron
public
0
1
append
def append(self, value):if value in self:returnlist.append(self, str(value))
2
4
2
24
0
193
196
193
self,value
[]
None
{"Expr": 1, "If": 1, "Return": 1}
2
4
2
["list.append", "str"]
1,513
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.bot_py.Bobbit.update_user_channel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.history_py.History.insert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.feeds_py.feeds_timer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.grab_py.grab", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.tell_py.tell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.tweets_py.tweets_timer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.utils.conv_py.Conversation.__aenter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.primes_py.ModulusPack._parse_modulus", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.permissions_py.default_model_permissions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_indexer_py.RecordsIndicesTest.test_existing_records_unindexed_on_model_put", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_indexer_py.RecordsIndicesTest.test_record_indexed_on_model_post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_indexer_py.RecordsIndicesTest.test_record_indexed_on_model_put", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_base_py.GroupFieldTests.test_a_group_must_have_valid_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_list_py.ObjectListTest.test_validation_sets_default_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_validators_py.PermissionsSchemaTest.test_permissions_can_be_specified_with_minus", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_validators_py.PermissionsSchemaTest.test_unknown_permissions_are_given_in_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.DefinitionViewsTest.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.views.fields_py.list_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3514474_ntfreedom_neverendshadowsocks.shadowsocks.lru_cache_py.LRUCache.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3514474_ntfreedom_neverendshadowsocks.shadowsocks.lru_cache_py.LRUCache.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.management.commands.scrapecalaccesscampaignpropositions_py.Command.scrape_prop_page", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.stats.views_py.overview", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.api.test_views_py.ReportBuildAPITests.test_report_pending", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3531556_cloudnull_turbolift.turbolift.methods.download_py.DownloadRunMethod._index_objects"]
The function (append) defined within the public class called AuthCookieEnviron, that inherit another class.The function start at line 193 and ends at 196. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [193.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["list.append", "str"], It has 1513.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.bot_py.Bobbit.update_user_channel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.history_py.History.insert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.feeds_py.feeds_timer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.grab_py.grab", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.tell_py.tell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.tweets_py.tweets_timer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.utils.conv_py.Conversation.__aenter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.ssh.primes_py.ModulusPack._parse_modulus", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.permissions_py.default_model_permissions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_indexer_py.RecordsIndicesTest.test_existing_records_unindexed_on_model_put", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_indexer_py.RecordsIndicesTest.test_record_indexed_on_model_post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_indexer_py.RecordsIndicesTest.test_record_indexed_on_model_put", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_base_py.GroupFieldTests.test_a_group_must_have_valid_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_list_py.ObjectListTest.test_validation_sets_default_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_validators_py.PermissionsSchemaTest.test_permissions_can_be_specified_with_minus", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_validators_py.PermissionsSchemaTest.test_unknown_permissions_are_given_in_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.DefinitionViewsTest.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.views.fields_py.list_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3514474_ntfreedom_neverendshadowsocks.shadowsocks.lru_cache_py.LRUCache.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3514474_ntfreedom_neverendshadowsocks.shadowsocks.lru_cache_py.LRUCache.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.management.commands.scrapecalaccesscampaignpropositions_py.Command.scrape_prop_page", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.stats.views_py.overview", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.api.test_views_py.ReportBuildAPITests.test_report_pending", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3531556_cloudnull_turbolift.turbolift.methods.download_py.DownloadRunMethod._index_objects"].
pasteorg_paste
CookieTooLarge
public
0
1
__init__
def __init__(self, application, cookie_name=None, scanlist=None, signer=None, secret=None, timeout=None, maxlen=None):if not signer:signer = self.signer_class(secret, timeout, maxlen)self.signer = signerself.scanlist = scanlist or ('REMOTE_USER','REMOTE_SESSION')self.application = applicationself.cookie_name = cookie_name or self.cookie_name
4
8
8
77
0
254
261
254
self,content,cookie
[]
None
{"Assign": 2, "Expr": 1}
1
4
1
["RuntimeError.__init__"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called CookieTooLarge, that inherit another class.The function start at line 254 and ends at 261. It contains 8 lines of code and it has a cyclomatic complexity of 4. It takes 8 parameters, represented as [254.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["RuntimeError.__init__"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
public
public
0
0
__call__.response_hook
def response_hook(status, response_headers, exc_info=None):"""Scan the environment for keys specified in the scanlist,pack up their values, signs the content and issues a cookie."""scanlist = environ.get(self.environ_name)assert scanlist and isinstance(scanlist, self.environ_class)content = []for k in scanlist:v = environ.get(k)if v is not None:if type(v) is not str:raise ValueError("The value of the environmental variable %r ""is not a str (only str is allowed; got %r)"% (k, v))content.append("%s=%s" % (encode(k), encode(v)))if content:content = ";".join(content)content = self.signer.sign(content)content = content.decode('utf8')cookie = '%s=%s; Path=/;' % (self.cookie_name, content)if 'https' == environ['wsgi.url_scheme']:cookie += ' secure;'response_headers.append(('Set-Cookie', cookie))return start_response(status, response_headers, exc_info)
7
22
3
165
0
288
313
288
null
[]
None
null
0
0
0
null
0
null
The function (__call__.response_hook) defined within the public class called public.The function start at line 288 and ends at 313. It contains 22 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [288.0] and does not return any value..
pasteorg_paste
AuthCookieHandler
public
0
0
__call__
def __call__(self, environ, start_response):if self.environ_name in environ:raise AssertionError("AuthCookie already installed!")scanlist = self.environ_class(self, self.scanlist)jar = get_cookies(environ)if self.cookie_name in jar:content = self.signer.auth(jar[self.cookie_name].value)if content:for pair in content.split(";"):(k, v) = pair.split("=")k = decode(k)if k not in scanlist:scanlist.append(k)if k in environ:continueenviron[k] = decode(v)if 'REMOTE_USER' == k:environ['AUTH_TYPE'] = 'cookie'environ[self.environ_name] = scanlistif "paste.httpexceptions" in environ:warnings.warn("Since paste.httpexceptions is hooked in your ""processing chain before paste.auth.cookie, if an ""HTTPRedirection is raised, the cookies this module sets ""will not be included in your response.\n")def response_hook(status, response_headers, exc_info=None):"""Scan the environment for keys specified in the scanlist,pack up their values, signs the content and issues a cookie."""scanlist = environ.get(self.environ_name)assert scanlist and isinstance(scanlist, self.environ_class)content = []for k in scanlist:v = environ.get(k)if v is not None:if type(v) is not str:raise ValueError("The value of the environmental variable %r ""is not a str (only str is allowed; got %r)"% (k, v))content.append("%s=%s" % (encode(k), encode(v)))if content:content = ";".join(content)content = self.signer.sign(content)content = content.decode('utf8')cookie = '%s=%s; Path=/;' % (self.cookie_name, content)if 'https' == environ['wsgi.url_scheme']:cookie += ' secure;'response_headers.append(('Set-Cookie', cookie))return start_response(status, response_headers, exc_info)return self.application(environ, response_hook)
9
26
3
165
0
263
314
263
self,environ,start_response
[]
Returns
{"Assign": 15, "AugAssign": 1, "Expr": 5, "For": 2, "If": 11, "Return": 2}
24
52
24
["AssertionError", "self.environ_class", "get_cookies", "self.signer.auth", "content.split", "pair.split", "decode", "scanlist.append", "decode", "warnings.warn", "environ.get", "isinstance", "environ.get", "type", "ValueError", "content.append", "encode", "encode", "join", "self.signer.sign", "content.decode", "response_headers.append", "start_response", "self.application"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called AuthCookieHandler.The function start at line 263 and ends at 314. It contains 26 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [263.0], and this function return a value. It declares 24.0 functions, It has 24.0 functions called inside which are ["AssertionError", "self.environ_class", "get_cookies", "self.signer.auth", "content.split", "pair.split", "decode", "scanlist.append", "decode", "warnings.warn", "environ.get", "isinstance", "environ.get", "type", "ValueError", "content.append", "encode", "encode", "join", "self.signer.sign", "content.decode", "response_headers.append", "start_response", "self.application"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
public
public
0
0
make_auth_cookie
def make_auth_cookie(app, global_conf,# Should this get picked up from global_conf somehow?:cookie_name='PASTE_AUTH_COOKIE',scanlist=('REMOTE_USER', 'REMOTE_SESSION'),# signer cannot be setsecret=None,timeout=30,maxlen=4096):"""This middleware uses cookies to stash-away a previouslyauthenticated user (and perhaps other variables) so thatre-authentication is not needed.This does not implementsessions; and therefore N servers can be syncronized to accept thesame saved authentication if they all use the same cookie_name andsecret.By default, this handler scans the `environ` for the REMOTE_USERand REMOTE_SESSION key; if found, it is stored. It can beconfigured to scan other `environ` keys as well -- but be carefulnot to exceed 2-3k (so that the encoded and signed cookie does notexceed 4k). You can ask it to handle other environment variablesby doing: ``environ['paste.auth.cookie'].append('your.environ.variable')``Configuration:``cookie_name``The name of the cookie used to store this content, bydefault it is ``PASTE_AUTH_COOKIE``.``scanlist``This is the initial set of ``environ`` keys tosave/restore to the signed cookie.By default is consistsonly of ``REMOTE_USER`` and ``REMOTE_SESSION``; anyspace-separated list of environment keys will work.However, be careful, as the total saved size is limited toaround 3k.``secret``The secret that will be used to sign the cookies.If youdon't provide one (and none is set globally) then a randomsecret will be created.Each time the server is restarteda new secret will then be created and all cookies willbecome invalid!This can be any string value.``timeout``The time to keep the cookie, expressed in minutes.Thisis handled server-side, so a new cookie with a new timeoutis added to every response.``maxlen``The maximum length of the cookie that is sent (default 4k,which is a typical browser maximum)"""if isinstance(scanlist, str):scanlist = scanlist.split()if secret is None and global_conf.get('secret'):secret = global_conf['secret']try:timeout = int(timeout)except ValueError:raise ValueError('Bad value for timeout (must be int): %r' % timeout)try:maxlen = int(maxlen)except ValueError:raise ValueError('Bad value for maxlen (must be int): %r' % maxlen)return AuthCookieHandler(app, cookie_name=cookie_name, scanlist=scanlist,secret=secret, timeout=timeout, maxlen=maxlen)
6
24
4
126
4
319
397
319
app,global_conf,cookie_name,scanlist,secret,timeout,maxlen
['timeout', 'maxlen', 'secret', 'scanlist']
Returns
{"Assign": 4, "Expr": 1, "If": 2, "Return": 1, "Try": 2}
8
79
8
["isinstance", "scanlist.split", "global_conf.get", "int", "ValueError", "int", "ValueError", "AuthCookieHandler"]
0
[]
The function (make_auth_cookie) defined within the public class called public.The function start at line 319 and ends at 397. It contains 24 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [319.0], and this function return a value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["isinstance", "scanlist.split", "global_conf.get", "int", "ValueError", "int", "ValueError", "AuthCookieHandler"].
pasteorg_paste
public
public
0
0
_split_auth_string
def _split_auth_string(auth_string):""" split a digest auth string into individual key=value strings """prev = Nonefor item in auth_string.split(","):try:if prev.count('"') == 1:prev = "%s,%s" % (prev, item)continueexcept AttributeError:if prev is None:prev = itemcontinueelse:returnyield prev.strip()prev = itemyield prev.strip()
5
16
1
71
1
48
65
48
auth_string
['prev']
None
{"Assign": 4, "Expr": 3, "For": 1, "If": 2, "Return": 1, "Try": 1}
4
18
4
["auth_string.split", "prev.count", "prev.strip", "prev.strip"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.digest_py._auth_to_kv_pairs"]
The function (_split_auth_string) defined within the public class called public.The function start at line 48 and ends at 65. 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 4.0 functions, It has 4.0 functions called inside which are ["auth_string.split", "prev.count", "prev.strip", "prev.strip"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.digest_py._auth_to_kv_pairs"].
pasteorg_paste
public
public
0
0
_auth_to_kv_pairs
def _auth_to_kv_pairs(auth_string):""" split a digest auth string into key, value pairs """for item in _split_auth_string(auth_string):(k, v) = item.split("=", 1)if v.startswith('"') and len(v) > 1 and v.endswith('"'):v = v[1:-1]yield (k, v)
5
6
1
65
1
67
73
67
auth_string
['v']
None
{"Assign": 2, "Expr": 2, "For": 1, "If": 1}
5
7
5
["_split_auth_string", "item.split", "v.startswith", "len", "v.endswith"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.digest_py.AuthDigestAuthenticator.authenticate"]
The function (_auth_to_kv_pairs) defined within the public class called public.The function start at line 67 and ends at 73. It contains 6 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 5.0 functions, It has 5.0 functions called inside which are ["_split_auth_string", "item.split", "v.startswith", "len", "v.endswith"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.digest_py.AuthDigestAuthenticator.authenticate"].
pasteorg_paste
public
public
0
0
digest_password
def digest_password(realm, username, password):""" construct the appropriate hashcode needed for HTTP digest """content = "%s:%s:%s" % (username, realm, password)content = content.encode('utf8')return md5(content).hexdigest()
1
4
3
38
1
75
79
75
realm,username,password
['content']
Returns
{"Assign": 2, "Expr": 1, "Return": 1}
3
5
3
["content.encode", "hexdigest", "md5"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_digest_py.backwords"]
The function (digest_password) defined within the public class called public.The function start at line 75 and ends at 79. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [75.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["content.encode", "hexdigest", "md5"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_digest_py.backwords"].
pasteorg_paste
AuthDigestAuthenticator
public
0
0
__init__
def __init__(self, realm, authfunc):self.nonce= {} # list to prevent replay attacksself.authfunc = authfuncself.realm= realm
1
4
3
25
0
83
86
83
self,realm,authfunc
[]
None
{"Assign": 3}
0
4
0
[]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called AuthDigestAuthenticator.The function start at line 83 and ends at 86. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [83.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
AuthDigestAuthenticator
public
0
0
build_authentication
def build_authentication(self, stale = ''):""" builds the authentication error """content = "%s:%s" % (time.time(), random.random())content = content.encode('utf-8')nonce= md5(content).hexdigest()content = "%s:%s" % (time.time(), random.random())content = content.encode('utf-8')opaque = md5(content).hexdigest()self.nonce[nonce] = Noneparts = {'realm': self.realm, 'qop': 'auth', 'nonce': nonce, 'opaque': opaque }if stale:parts['stale'] = 'true'head = ", ".join(['%s="%s"' % (k, v) for (k, v) in parts.items()])head = [("WWW-Authenticate", 'Digest %s' % head)]return HTTPUnauthorized(headers=head)
3
15
2
164
0
88
105
88
self,stale
[]
Returns
{"Assign": 11, "Expr": 1, "If": 1, "Return": 1}
13
18
13
["time.time", "random.random", "content.encode", "hexdigest", "md5", "time.time", "random.random", "content.encode", "hexdigest", "md5", "join", "parts.items", "HTTPUnauthorized"]
0
[]
The function (build_authentication) defined within the public class called AuthDigestAuthenticator.The function start at line 88 and ends at 105. It contains 15 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [88.0], and this function return a value. It declares 13.0 functions, and It has 13.0 functions called inside which are ["time.time", "random.random", "content.encode", "hexdigest", "md5", "time.time", "random.random", "content.encode", "hexdigest", "md5", "join", "parts.items", "HTTPUnauthorized"].
pasteorg_paste
AuthDigestAuthenticator
public
0
0
compute
def compute(self, ha1, username, response, method,path, nonce, nc, cnonce, qop):""" computes the authentication, raises error if unsuccessful """if not ha1:return self.build_authentication()content = '%s:%s' % (method, path)content = content.encode('utf8')ha2 = md5(content).hexdigest()if qop:chk = "%s:%s:%s:%s:%s:%s" % (ha1, nonce, nc, cnonce, qop, ha2)else:chk = "%s:%s:%s" % (ha1, nonce, ha2)chk = chk.encode('utf8')if response != md5(chk).hexdigest():if nonce in self.nonce:del self.nonce[nonce]return self.build_authentication()pnc = self.nonce.get(nonce,'00000000')if pnc is not None and nc <= pnc:if nonce in self.nonce:del self.nonce[nonce]return self.build_authentication(stale = True)self.nonce[nonce] = ncreturn username
8
23
10
189
0
107
130
107
self,ha1,username,response,method,path,nonce,nc,cnonce,qop
[]
Returns
{"Assign": 8, "Expr": 1, "If": 6, "Return": 4}
10
24
10
["self.build_authentication", "content.encode", "hexdigest", "md5", "chk.encode", "hexdigest", "md5", "self.build_authentication", "self.nonce.get", "self.build_authentication"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567810_openfisca_openfisca_web_api.openfisca_web_api.controllers.formula_py.api1_formula", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567810_openfisca_openfisca_web_api.openfisca_web_api.controllers.formula_py.api2_formula", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69724044_opendatacube_odc_geo.tests.test_cog_py.test_stats_from_layer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70408386_unionai_oss_pandera.tests.dask.test_dask_py.test_decorator", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.test.unit.test_splines_py.cbs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95331495_iNeil77_vllm_code_harness.eval_harness.tasks.gsm_py.Gsm8k.process_results"]
The function (compute) defined within the public class called AuthDigestAuthenticator.The function start at line 107 and ends at 130. It contains 23 lines of code and it has a cyclomatic complexity of 8. It takes 10 parameters, represented as [107.0], and this function return a value. It declares 10.0 functions, It has 10.0 functions called inside which are ["self.build_authentication", "content.encode", "hexdigest", "md5", "chk.encode", "hexdigest", "md5", "self.build_authentication", "self.nonce.get", "self.build_authentication"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567810_openfisca_openfisca_web_api.openfisca_web_api.controllers.formula_py.api1_formula", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567810_openfisca_openfisca_web_api.openfisca_web_api.controllers.formula_py.api2_formula", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69724044_opendatacube_odc_geo.tests.test_cog_py.test_stats_from_layer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70408386_unionai_oss_pandera.tests.dask.test_dask_py.test_decorator", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.test.unit.test_splines_py.cbs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95331495_iNeil77_vllm_code_harness.eval_harness.tasks.gsm_py.Gsm8k.process_results"].
pasteorg_paste
AuthDigestAuthenticator
public
0
0
authenticate
def authenticate(self, environ):""" This function takes a WSGI environment and authenticatesthe request returning authenticated user or error."""method = REQUEST_METHOD(environ)fullpath = url_quote(SCRIPT_NAME(environ)) + url_quote(PATH_INFO(environ))authorization = AUTHORIZATION(environ)if not authorization:return self.build_authentication()(authmeth, auth) = authorization.split(" ", 1)if 'digest' != authmeth.lower():return self.build_authentication()amap = dict(_auth_to_kv_pairs(auth))try:username = amap['username']authpath = amap['uri']nonce= amap['nonce']realm= amap['realm']response = amap['response']assert authpath.split("?", 1)[0] in fullpathassert realm == self.realmqop= amap.get('qop', '')cnonce = amap.get('cnonce', '')nc = amap.get('nc', '00000000')if qop:assert 'auth' == qopassert nonce and ncexcept Exception:return self.build_authentication()ha1 = self.authfunc(environ, realm, username)return self.compute(ha1, username, response, method, authpath,nonce, nc, cnonce, qop)
6
29
2
222
0
132
163
132
self,environ
[]
Returns
{"Assign": 14, "Expr": 1, "If": 3, "Return": 4, "Try": 1}
19
32
19
["REQUEST_METHOD", "url_quote", "SCRIPT_NAME", "url_quote", "PATH_INFO", "AUTHORIZATION", "self.build_authentication", "authorization.split", "authmeth.lower", "self.build_authentication", "dict", "_auth_to_kv_pairs", "authpath.split", "amap.get", "amap.get", "amap.get", "self.build_authentication", "self.authfunc", "self.compute"]
88
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.session_py.DynectMultiSession.authenticate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_agent_py.test_psk_host", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_default_py.test_hosts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_default_py.test_hosts_status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926390_ubernostrum_django_registration.src.django_registration.backends.one_step.views_py.RegistrationView.register", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_missing_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_successful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_successful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_unsuccessful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_unsuccessful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_missing_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_successful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_successful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_unsuccessful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_unsuccessful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.forms_py.LoginForm.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.api.domains.cho_py.handle_osu_login_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.decorators_py.inject_authentication", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.utils_py.has_valid_oauth_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.personal_tab.register_py.CardRegistrationIndex.post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.89349796_digitalcriminals_ultimascraper.tests.test_signed_headers_py.example", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.login_py.try_replace_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_invalid_api_key", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_invalid_header", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_missing_api_key"]
The function (authenticate) defined within the public class called AuthDigestAuthenticator.The function start at line 132 and ends at 163. It contains 29 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [132.0], and this function return a value. It declares 19.0 functions, It has 19.0 functions called inside which are ["REQUEST_METHOD", "url_quote", "SCRIPT_NAME", "url_quote", "PATH_INFO", "AUTHORIZATION", "self.build_authentication", "authorization.split", "authmeth.lower", "self.build_authentication", "dict", "_auth_to_kv_pairs", "authpath.split", "amap.get", "amap.get", "amap.get", "self.build_authentication", "self.authfunc", "self.compute"], It has 88.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.session_py.DynectMultiSession.authenticate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_agent_py.test_psk_host", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_default_py.test_hosts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676779_dj_wasabi_ansible_zabbix_agent.molecule.with_server.tests.test_default_py.test_hosts_status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3926390_ubernostrum_django_registration.src.django_registration.backends.one_step.views_py.RegistrationView.register", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_missing_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_successful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_successful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_unsuccessful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.EmailAuthenticationBackendTestCase.test_unsuccessful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_missing_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_successful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_successful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_unsuccessful_auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928968_pinax_django_user_accounts.account.tests.test_auth_py.UsernameAuthenticationBackendTestCase.test_unsuccessful_auth_django_2_1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.forms_py.LoginForm.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.api.domains.cho_py.handle_osu_login_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.decorators_py.inject_authentication", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.utils_py.has_valid_oauth_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.personal_tab.register_py.CardRegistrationIndex.post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.89349796_digitalcriminals_ultimascraper.tests.test_signed_headers_py.example", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.login_py.try_replace_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_invalid_api_key", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_invalid_header", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95137750_numerique_gouv_people.src.backend.core.tests.authentication.test_backends_py.test_account_service_authenticate_missing_api_key"].
pasteorg_paste
AuthDigestAuthenticator
public
0
0
__init__
def __init__(self, application, realm, authfunc):self.authenticate = AuthDigestAuthenticator(realm, authfunc)self.application = application
1
3
4
26
0
215
217
215
self,realm,authfunc
[]
None
{"Assign": 3}
0
4
0
[]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called AuthDigestAuthenticator.The function start at line 215 and ends at 217. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [215.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
AuthDigestHandler
public
0
0
__call__
def __call__(self, environ, start_response):username = REMOTE_USER(environ)if not username:result = self.authenticate(environ)if isinstance(result, str):AUTH_TYPE.update(environ,'digest')REMOTE_USER.update(environ, result)else:return result.wsgi_application(environ, start_response)return self.application(environ, start_response)
3
10
3
71
0
219
228
219
self,environ,start_response
[]
Returns
{"Assign": 2, "Expr": 2, "If": 2, "Return": 2}
7
10
7
["REMOTE_USER", "self.authenticate", "isinstance", "AUTH_TYPE.update", "REMOTE_USER.update", "result.wsgi_application", "self.application"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called AuthDigestHandler.The function start at line 219 and ends at 228. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [219.0], and this function return a value. It declares 7.0 functions, It has 7.0 functions called inside which are ["REMOTE_USER", "self.authenticate", "isinstance", "AUTH_TYPE.update", "REMOTE_USER.update", "result.wsgi_application", "self.application"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
public
public
0
0
make_digest
def make_digest(app, global_conf, realm, authfunc, **kw):"""Grant access via digest authenticationConfig looks like this::[filter:grant]use = egg:Paste#auth_digestrealm=myrealmauthfunc=somepackage.somemodule:somefunction"""from paste.util.import_string import eval_importimport typesauthfunc = eval_import(authfunc)assert isinstance(authfunc, types.FunctionType), "authfunc must resolve to a function"return AuthDigestHandler(app, realm, authfunc)
1
6
5
51
1
234
250
234
app,global_conf,realm,authfunc,**kw
['authfunc']
Returns
{"Assign": 1, "Expr": 1, "Return": 1}
3
17
3
["eval_import", "isinstance", "AuthDigestHandler"]
0
[]
The function (make_digest) defined within the public class called public.The function start at line 234 and ends at 250. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [234.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["eval_import", "isinstance", "AuthDigestHandler"].
pasteorg_paste
AuthFormHandler
public
0
0
__init__
def __init__(self, application, authfunc, template=None):self.application = applicationself.authfunc = authfuncself.template = template or TEMPLATE
2
4
4
30
0
91
94
91
self,application,authfunc,template
[]
None
{"Assign": 3}
0
4
0
[]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called AuthFormHandler.The function start at line 91 and ends at 94. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [91.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
AuthFormHandler
public
0
0
__call__
def __call__(self, environ, start_response):username = environ.get('REMOTE_USER','')if username:return self.application(environ, start_response)if 'POST' == environ['REQUEST_METHOD']:formvars = parse_formvars(environ, include_get_vars=False)username = formvars.get('username')password = formvars.get('password')if username and password:if self.authfunc(environ, username, password):environ['AUTH_TYPE'] = 'form'environ['REMOTE_USER'] = usernameenviron['REQUEST_METHOD'] = 'GET'environ['CONTENT_LENGTH'] = ''environ['CONTENT_TYPE'] = ''del environ['paste.parsed_formvars']return self.application(environ, start_response)content = self.template % construct_url(environ)start_response("200 OK", [('Content-Type', 'text/html'),('Content-Length', str(len(content)))])return [content]
6
21
3
164
0
96
118
96
self,environ,start_response
[]
Returns
{"Assign": 10, "Expr": 1, "If": 4, "Return": 3}
11
23
11
["environ.get", "self.application", "parse_formvars", "formvars.get", "formvars.get", "self.authfunc", "self.application", "construct_url", "start_response", "str", "len"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called AuthFormHandler.The function start at line 96 and ends at 118. It contains 21 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [96.0], and this function return a value. It declares 11.0 functions, It has 11.0 functions called inside which are ["environ.get", "self.application", "parse_formvars", "formvars.get", "formvars.get", "self.authfunc", "self.application", "construct_url", "start_response", "str", "len"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
public
public
0
0
make_form
def make_form(app, global_conf, realm, authfunc, **kw):"""Grant access via form authenticationConfig looks like this::[filter:grant]use = egg:Paste#auth_formrealm=myrealmauthfunc=somepackage.somemodule:somefunction"""from paste.util.import_string import eval_importimport typesauthfunc = eval_import(authfunc)assert isinstance(authfunc, types.FunctionType), "authfunc must resolve to a function"template = kw.get('template')if template is not None:template = eval_import(template)assert isinstance(template, str), "template must resolve to a string"return AuthFormHandler(app, authfunc, template)
2
10
5
80
2
124
145
124
app,global_conf,realm,authfunc,**kw
['authfunc', 'template']
Returns
{"Assign": 3, "Expr": 1, "If": 1, "Return": 1}
6
22
6
["eval_import", "isinstance", "kw.get", "eval_import", "isinstance", "AuthFormHandler"]
0
[]
The function (make_form) defined within the public class called public.The function start at line 124 and ends at 145. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [124.0], and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["eval_import", "isinstance", "kw.get", "eval_import", "isinstance", "AuthFormHandler"].
pasteorg_paste
GrantIPMiddleware
public
0
0
__init__
def __init__(self, app, ip_map, clobber_username=True):self.app = appself.ip_map = []for key, value in ip_map.items():self.ip_map.append((ip4.IP4Range(key),self._convert_user_role(value[0], value[1])))self.clobber_username = clobber_username
2
7
4
70
0
28
34
28
self,app,ip_map,clobber_username
[]
None
{"Assign": 3, "Expr": 1, "For": 1}
4
7
4
["ip_map.items", "self.ip_map.append", "ip4.IP4Range", "self._convert_user_role"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called GrantIPMiddleware.The function start at line 28 and ends at 34. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [28.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["ip_map.items", "self.ip_map.append", "ip4.IP4Range", "self._convert_user_role"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
GrantIPMiddleware
public
0
0
_convert_user_role
def _convert_user_role(self, username, roles):if roles and isinstance(roles, str):roles = roles.split(',')return (username, roles)
3
4
3
33
0
36
39
36
self,username,roles
[]
Returns
{"Assign": 1, "If": 1, "Return": 1}
2
4
2
["isinstance", "roles.split"]
0
[]
The function (_convert_user_role) defined within the public class called GrantIPMiddleware.The function start at line 36 and ends at 39. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [36.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["isinstance", "roles.split"].
pasteorg_paste
GrantIPMiddleware
public
0
0
__call__
def __call__(self, environ, start_response):addr = ip4.ip2int(environ['REMOTE_ADDR'], False)remove_user = Falseadd_roles = []for range, (username, roles) in self.ip_map:if addr in range:if roles:add_roles.extend(roles)if username == '__remove__':remove_user = Trueelif username:if (not environ.get('REMOTE_USER')or self.clobber_username):environ['REMOTE_USER'] = usernameif (remove_user and 'REMOTE_USER' in environ):del environ['REMOTE_USER']if roles:self._set_roles(environ, add_roles)return self.app(environ, start_response)
11
19
3
122
0
41
59
41
self,environ,start_response
[]
Returns
{"Assign": 5, "Expr": 2, "For": 1, "If": 7, "Return": 1}
5
19
5
["ip4.ip2int", "add_roles.extend", "environ.get", "self._set_roles", "self.app"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called GrantIPMiddleware.The function start at line 41 and ends at 59. It contains 19 lines of code and it has a cyclomatic complexity of 11. It takes 3 parameters, represented as [41.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["ip4.ip2int", "add_roles.extend", "environ.get", "self._set_roles", "self.app"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
GrantIPMiddleware
public
0
0
_set_roles
def _set_roles(self, environ, roles):cur_roles = environ.get('REMOTE_USER_TOKENS', '').split(',')# Get rid of empty roles:cur_roles = list(filter(None, cur_roles))remove_roles = []for role in roles:if role.startswith('-'):remove_roles.append(role[1:])else:if role not in cur_roles:cur_roles.append(role)for role in remove_roles:if role in cur_roles:cur_roles.remove(role)environ['REMOTE_USER_TOKENS'] = ','.join(cur_roles)
6
14
3
103
0
61
75
61
self,environ,roles
[]
None
{"Assign": 4, "Expr": 3, "For": 2, "If": 3}
9
15
9
["split", "environ.get", "list", "filter", "role.startswith", "remove_roles.append", "cur_roles.append", "cur_roles.remove", "join"]
0
[]
The function (_set_roles) defined within the public class called GrantIPMiddleware.The function start at line 61 and ends at 75. It contains 14 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [61.0] and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["split", "environ.get", "list", "filter", "role.startswith", "remove_roles.append", "cur_roles.append", "cur_roles.remove", "join"].
pasteorg_paste
public
public
0
0
make_grantip
def make_grantip(app, global_conf, clobber_username=False, **kw):"""Grant roles or usernames based on IP addresses.Config looks like this::[filter:grant]use = egg:Paste#grantipclobber_username = true# Give localhost system role (no username):127.0.0.1 = -:system# Give everyone in 192.168.0.* editor role:192.168.0.0/24 = -:editor# Give one IP the username joe:192.168.0.7 = joe# And one IP is should not be logged in:192.168.0.10 = __remove__:-editor"""from paste.deploy.converters import asboolclobber_username = asbool(clobber_username)ip_map = {}for key, value in kw.items():if ':' in value:username, role = value.split(':', 1)else:username = valuerole = ''if username == '-':username = ''if role == '-':role = ''ip_map[key] = valuereturn GrantIPMiddleware(app, ip_map, clobber_username)
5
16
4
100
4
78
111
78
app,global_conf,clobber_username,**kw
['clobber_username', 'role', 'ip_map', 'username']
Returns
{"Assign": 8, "Expr": 1, "For": 1, "If": 3, "Return": 1}
4
34
4
["asbool", "kw.items", "value.split", "GrantIPMiddleware"]
0
[]
The function (make_grantip) defined within the public class called public.The function start at line 78 and ends at 111. It contains 16 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [78.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["asbool", "kw.items", "value.split", "GrantIPMiddleware"].
pasteorg_paste
MultiHandler
public
0
0
__init__
def __init__(self, application):self.application = applicationself.default = applicationself.binding = {}self.predicate = []
1
5
2
29
0
49
53
49
self,application
[]
None
{"Assign": 4}
0
5
0
[]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called MultiHandler.The function start at line 49 and ends at 53. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [49.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
MultiHandler
public
0
0
add_method
def add_method(self, name, factory, *args, **kwargs):self.binding[name] = factory(self.application, *args, **kwargs)
1
2
5
34
0
54
55
54
self,name,factory,*args,**kwargs
[]
None
{"Assign": 1}
1
2
1
["factory"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.up_test_cases.builtin.hierarchical.__init___py.get_test_cases", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69376580_substra_substra_tests.tests.test_network_py.test_update_name", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69376580_substra_substra_tests.tests.test_network_py.test_update_name_unauthorized", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70411340_rhos_infra_cibyl.cibyl.models.ci.base.job_py.Job.merge"]
The function (add_method) defined within the public class called MultiHandler.The function start at line 54 and ends at 55. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [54.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["factory"], It has 4.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.up_test_cases.builtin.hierarchical.__init___py.get_test_cases", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69376580_substra_substra_tests.tests.test_network_py.test_update_name", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69376580_substra_substra_tests.tests.test_network_py.test_update_name_unauthorized", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70411340_rhos_infra_cibyl.cibyl.models.ci.base.job_py.Job.merge"].
pasteorg_paste
MultiHandler
public
0
0
add_predicate
def add_predicate(self, name, checker):self.predicate.append((checker, self.binding[name]))
1
2
3
26
0
56
57
56
self,name,checker
[]
None
{"Expr": 1}
1
2
1
["self.predicate.append"]
0
[]
The function (add_predicate) defined within the public class called MultiHandler.The function start at line 56 and ends at 57. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [56.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.predicate.append"].
pasteorg_paste
MultiHandler
public
0
0
set_default
def set_default(self, name):""" set default authentication method """self.default = self.binding[name]
1
2
2
18
0
58
60
58
self,name
[]
None
{"Assign": 1, "Expr": 1}
0
3
0
[]
0
[]
The function (set_default) defined within the public class called MultiHandler.The function start at line 58 and ends at 60. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [58.0] and does not return any value..
pasteorg_paste
MultiHandler
public
0
0
set_query_argument
def set_query_argument(self, name, key = '*authmeth', value = None):""" choose authentication method based on a query argument """lookfor = "%s=%s" % (key, value or name)self.add_predicate(name,lambda environ: lookfor in environ.get('QUERY_STRING',''))
2
4
4
47
0
61
65
61
self,name,key,value
[]
None
{"Assign": 1, "Expr": 2}
2
5
2
["self.add_predicate", "environ.get"]
0
[]
The function (set_query_argument) defined within the public class called MultiHandler.The function start at line 61 and ends at 65. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [61.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.add_predicate", "environ.get"].
pasteorg_paste
MultiHandler
public
0
0
__call__
def __call__(self, environ, start_response):for (checker, binding) in self.predicate:if checker(environ):return binding(environ, start_response)return self.default(environ, start_response)
3
5
3
42
0
66
70
66
self,environ,start_response
[]
Returns
{"For": 1, "If": 1, "Return": 2}
3
5
3
["checker", "binding", "self.default"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called MultiHandler.The function start at line 66 and ends at 70. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [66.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["checker", "binding", "self.default"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
public
public
0
0
quoteattr
def quoteattr(s):qs = html.escape(s)return '"%s"' % (qs,)
1
3
1
20
1
65
67
65
s
['qs']
Returns
{"Assign": 1, "Return": 1}
1
3
1
["html.escape"]
8
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.xpath_py.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.adt.marshalling_py.Marshal._element_to_xml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.atc_py.print_worklists_as_checkstyle_xml_to_stream", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.aunit_py.XMLWriter.element", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.aunit_py.print_acoverage_jacoco", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.aunit_py.print_aunit_sonar", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.aunit_py.print_sonar_alert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.open_id_py.AuthOpenIDHandler.page_footer"]
The function (quoteattr) defined within the public class called public.The function start at line 65 and ends at 67. 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, It has 1.0 function called inside which is ["html.escape"], It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.xpath_py.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.adt.marshalling_py.Marshal._element_to_xml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.atc_py.print_worklists_as_checkstyle_xml_to_stream", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.aunit_py.XMLWriter.element", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.aunit_py.print_acoverage_jacoco", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.aunit_py.print_aunit_sonar", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966383_jfilak_sapcli.sap.cli.aunit_py.print_sonar_alert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.open_id_py.AuthOpenIDHandler.page_footer"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
__init__
def __init__(self, app, data_store_path, auth_prefix='/oid', login_redirect=None, catch_401=False, url_to_username=None):"""Initialize the OpenID middleware``app``Your WSGI app to call``data_store_path``Directory to store crypto data in for use with OpenID servers.``auth_prefix``Location for authentication process/verification``login_redirect``Location to load after successful process of login``catch_401``If true, then any 401 responses will turn into open ID loginrequirements.``url_to_username``A function called like ``url_to_username(environ, url)``, which shouldreturn a string username.If not given, the URL will be the username."""store = filestore.FileOpenIDStore(data_store_path)self.oidconsumer = consumer.OpenIDConsumer(store)self.app = appself.auth_prefix = auth_prefixself.data_store_path = data_store_pathself.login_redirect = login_redirectself.catch_401 = catch_401self.url_to_username = url_to_username
1
11
7
74
0
85
119
85
self,app,data_store_path,auth_prefix,login_redirect,catch_401,url_to_username
[]
None
{"Assign": 8, "Expr": 1}
2
35
2
["filestore.FileOpenIDStore", "consumer.OpenIDConsumer"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called AuthOpenIDHandler.The function start at line 85 and ends at 119. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [85.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["filestore.FileOpenIDStore", "consumer.OpenIDConsumer"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
__call__
def __call__(self, environ, start_response):if environ['PATH_INFO'].startswith(self.auth_prefix):# Let's load everything into a request dict to pass around easierrequest = dict(environ=environ, start=start_response, body=[])request['base_url'] = paste.request.construct_url(environ, with_path_info=False,with_query_string=False)path = re.sub(self.auth_prefix, '', environ['PATH_INFO'])request['parsed_uri'] = urlparse.urlparse(path)request['query'] = dict(paste.request.parse_querystring(environ))path = request['parsed_uri'][2]if path == '/' or not path:return self.render(request)elif path == '/verify':return self.do_verify(request)elif path == '/process':return self.do_process(request)else:return self.not_found(request)else:if self.catch_401:return self.catch_401_app_call(environ, start_response)return self.app(environ, start_response)
7
21
3
186
0
121
144
121
self,environ,start_response
[]
Returns
{"Assign": 6, "If": 5, "Return": 6}
13
24
13
["startswith", "dict", "paste.request.construct_url", "re.sub", "urlparse.urlparse", "dict", "paste.request.parse_querystring", "self.render", "self.do_verify", "self.do_process", "self.not_found", "self.catch_401_app_call", "self.app"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called AuthOpenIDHandler.The function start at line 121 and ends at 144. It contains 21 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [121.0], and this function return a value. It declares 13.0 functions, It has 13.0 functions called inside which are ["startswith", "dict", "paste.request.construct_url", "re.sub", "urlparse.urlparse", "dict", "paste.request.parse_querystring", "self.render", "self.do_verify", "self.do_process", "self.not_found", "self.catch_401_app_call", "self.app"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
public
public
0
0
catch_401_app_call.catch_401_app_call.replacement_start_response.dummy_writer
def dummy_writer(v):pass
1
2
1
6
0
156
157
156
null
[]
None
null
0
0
0
null
0
null
The function (catch_401_app_call.catch_401_app_call.replacement_start_response.dummy_writer) defined within the public class called public.The function start at line 156 and ends at 157. 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_paste
public
public
0
0
catch_401_app_call.replacement_start_response
def replacement_start_response(status, headers, exc_info=None):if int(status.split(None, 1)) == 401:# @@: Do I need to append something to go back to where we# came from?was_401.append(1)def dummy_writer(v):passreturn dummy_writerelse:return start_response(status, headers, exc_info)
2
7
3
47
0
151
160
151
null
[]
None
null
0
0
0
null
0
null
The function (catch_401_app_call.replacement_start_response) defined within the public class called public.The function start at line 151 and ends at 160. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [151.0] and does not return any value..
pasteorg_paste
AuthOpenIDHandler
public
0
0
catch_401_app_call
def catch_401_app_call(self, environ, start_response):"""Call the application, and redirect if the app returns a 401 response"""was_401 = []def replacement_start_response(status, headers, exc_info=None):if int(status.split(None, 1)) == 401:# @@: Do I need to append something to go back to where we# came from?was_401.append(1)def dummy_writer(v):passreturn dummy_writerelse:return start_response(status, headers, exc_info)app_iter = self.app(environ, replacement_start_response)if was_401:try:list(app_iter)finally:if hasattr(app_iter, 'close'):app_iter.close()redir_url = paste.request.construct_url(environ, with_path_info=False,with_query_string=False)exc = httpexceptions.HTTPTemporaryRedirect(redir_url)return exc.wsgi_application(environ, start_response)else:return app_iter
4
16
3
89
0
146
173
146
self,environ,start_response
[]
Returns
{"Assign": 4, "Expr": 4, "If": 3, "Return": 4, "Try": 1}
11
28
11
["int", "status.split", "was_401.append", "start_response", "self.app", "list", "hasattr", "app_iter.close", "paste.request.construct_url", "httpexceptions.HTTPTemporaryRedirect", "exc.wsgi_application"]
0
[]
The function (catch_401_app_call) defined within the public class called AuthOpenIDHandler.The function start at line 146 and ends at 173. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [146.0], and this function return a value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["int", "status.split", "was_401.append", "start_response", "self.app", "list", "hasattr", "app_iter.close", "paste.request.construct_url", "httpexceptions.HTTPTemporaryRedirect", "exc.wsgi_application"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
do_verify
def do_verify(self, request):"""Process the form submission, initating OpenID verification."""# First, make sure that the user entered somethingopenid_url = request['query'].get('openid_url')if not openid_url:return self.render(request, 'Enter an identity URL to verify.',css_class='error', form_contents=openid_url)oidconsumer = self.oidconsumer# Then, ask the library to begin the authorization.# Here we find out the identity server that will verify the# user's identity, and get a token that allows us to# communicate securely with the identity server.status, info = oidconsumer.beginAuth(openid_url)# If the URL was unusable (either because of network# conditions, a server error, or that the response returned# was not an OpenID identity page), the library will return# an error code. Let the user know that that URL is unusable.if status in [consumer.HTTP_FAILURE, consumer.PARSE_ERROR]:if status == consumer.HTTP_FAILURE:fmt = 'Failed to retrieve <q>%s</q>'else:fmt = 'Could not find OpenID information in <q>%s</q>'message = fmt % (html.escape(openid_url),)return self.render(request, message, css_class='error', form_contents=openid_url)elif status == consumer.SUCCESS:# The URL was a valid identity URL. Now we construct a URL# that will get us to process the server response. We will# need the token from the beginAuth call when processing# the response. A cookie or a session object could be used# to accomplish this, but for simplicity here we just add# it as a query parameter of the return-to URL.return_to = self.build_url(request, 'process', token=info.token)# Now ask the library for the URL to redirect the user to# his OpenID server. It is required for security that the# return_to URL must be under the specified trust_root. We# just use the base_url for this server as a trust root.redirect_url = oidconsumer.constructRedirect(info, return_to, trust_root=request['base_url'])# Send the redirect responsereturn self.redirect(request, redirect_url)else:assert False, 'Not reached'
5
21
2
168
0
175
224
175
self,request
[]
Returns
{"Assign": 8, "Expr": 1, "If": 4, "Return": 3}
8
50
8
["get", "self.render", "oidconsumer.beginAuth", "html.escape", "self.render", "self.build_url", "oidconsumer.constructRedirect", "self.redirect"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.claudia.tasks_py.verify_instance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.claudia.tasks_py.verify_mapping"]
The function (do_verify) defined within the public class called AuthOpenIDHandler.The function start at line 175 and ends at 224. It contains 21 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [175.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["get", "self.render", "oidconsumer.beginAuth", "html.escape", "self.render", "self.build_url", "oidconsumer.constructRedirect", "self.redirect"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.claudia.tasks_py.verify_instance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.claudia.tasks_py.verify_mapping"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
do_process
def do_process(self, request):"""Handle the redirect from the OpenID server."""oidconsumer = self.oidconsumer# retrieve the token from the environment (in this case, the URL)token = request['query'].get('token', '')# Ask the library to check the response that the server sent# us.Status is a code indicating the response type. info is# either None or a string containing more information about# the return type.status, info = oidconsumer.completeAuth(token, request['query'])css_class = 'error'openid_url = Noneif status == consumer.FAILURE and info:# In the case of failure, if info is non-None, it is the# URL that we were verifying. We include it in the error# message to help the user figure out what happened.openid_url = infofmt = "Verification of %s failed."message = fmt % (html.escape(openid_url),)elif status == consumer.SUCCESS:# Success means that the transaction completed without# error. If info is None, it means that the user cancelled# the verification.css_class = 'alert'if info:# This is a successful verification attempt. If this# was a real application, we would do our login,# comment posting, etc. here.openid_url = infoif self.url_to_username:username = self.url_to_username(request['environ'], openid_url)else:username = openid_urlif 'paste.auth_tkt.set_user' in request['environ']:request['environ']['paste.auth_tkt.set_user'](username)if not self.login_redirect:fmt = ("If you had supplied a login redirect path, you would have " "been redirected there." "You have successfully verified %s as your identity.")message = fmt % (html.escape(openid_url),)else:# @@: This stuff doesn't make sense to me; why not a remote redirect?request['environ']['paste.auth.open_id'] = openid_urlrequest['environ']['PATH_INFO'] = self.login_redirectreturn self.app(request['environ'], request['start'])#exc = httpexceptions.HTTPTemporaryRedirect(self.login_redirect)#return exc.wsgi_application(request['environ'], request['start'])else:# cancelledmessage = 'Verification cancelled'else:# Either we don't understand the code or there is no# openid_url included with the error. Give a generic# failure message. The library should supply debug# information in a log.message = 'Verification failed.'return self.render(request, message, css_class, openid_url)
8
34
2
218
0
226
287
226
self,request
[]
Returns
{"Assign": 18, "Expr": 2, "If": 6, "Return": 2}
7
62
7
["get", "oidconsumer.completeAuth", "html.escape", "self.url_to_username", "html.escape", "self.app", "self.render"]
0
[]
The function (do_process) defined within the public class called AuthOpenIDHandler.The function start at line 226 and ends at 287. It contains 34 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [226.0], and this function return a value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["get", "oidconsumer.completeAuth", "html.escape", "self.url_to_username", "html.escape", "self.app", "self.render"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
build_url
def build_url(self, request, action, **query):"""Build a URL relative to the server base_url, with the givenquery parameters added."""base = urlparse.urljoin(request['base_url'], self.auth_prefix + '/' + action)return appendArgs(base, query)
1
3
4
39
0
289
293
289
self,request,action,**query
[]
Returns
{"Assign": 1, "Expr": 1, "Return": 1}
2
5
2
["urlparse.urljoin", "appendArgs"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.tests.test_views_py.SamlValidationViewTests.test_saml_validation_view_http_service", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.tests.test_views_py.SamlValidationViewTests.test_saml_validation_view_invalid_service", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.tests.test_views_py.SamlValidationViewTests.test_saml_validation_view_invalid_ticket", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.tests.test_views_py.SamlValidationViewTests.test_saml_validation_view_success"]
The function (build_url) defined within the public class called AuthOpenIDHandler.The function start at line 289 and ends at 293. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [289.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["urlparse.urljoin", "appendArgs"], It has 4.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.tests.test_views_py.SamlValidationViewTests.test_saml_validation_view_http_service", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.tests.test_views_py.SamlValidationViewTests.test_saml_validation_view_invalid_service", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.tests.test_views_py.SamlValidationViewTests.test_saml_validation_view_invalid_ticket", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952404_jbittel_django_mama_cas.mama_cas.tests.test_views_py.SamlValidationViewTests.test_saml_validation_view_success"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
redirect
def redirect(self, request, redirect_url):"""Send a redirect response to the given URL to the browser."""response_headers = [('Content-type', 'text/plain'),('Location', redirect_url)]request['start']('302 REDIRECT', response_headers)return ["Redirecting to %s" % redirect_url]
1
5
3
40
0
295
300
295
self,request,redirect_url
[]
Returns
{"Assign": 1, "Expr": 2, "Return": 1}
0
6
0
[]
231
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470350_lincolnloop_django_debug_logging.debug_logging.views_py.delete_runs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.views.filings_py.FilerDetailView.render_to_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.builds.views_py.last_build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.projects.views_py.approve_projects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3534703_python_social_auth_social_app_flask.social_flask.strategy_py.FlaskStrategy.redirect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.io.server.__init___py.get_blueprint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.io.server.__init___py.get_tarball", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3652343_zsiciarz_django_envelope.envelope.views_py.ContactView.form_valid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660028_openprocurement_openprocurement_auction.openprocurement.auction.auctions_server_py.auctions_proxy", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.core_py.RootFlaskApp.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.organisations.views_py.OrganisationCreate.dispatch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.organisations.views_py.OrganisationList.dispatch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.organisations.views_py.activate_view", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.profiles.views_py.account_redirect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.workshops.views_py.workshop_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.__init___py.login", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.__init___py.logout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.views.u.submit_py.SubmitUI.post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.views.u.tokens_py.TokensUI.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.views.u.tokens_py.TokensUI.post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.views.u.tokens_py.TokensUI.put", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3702931_graphenex_graphenex.graphenex.core.web.views_py.auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3702931_graphenex_graphenex.graphenex.core.web.views_py.login_required", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3705583_glotzerlab_signac_dashboard.signac_dashboard.dashboard_py.Dashboard._register_routes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3705583_glotzerlab_signac_dashboard.signac_dashboard.views_py.change_modules"]
The function (redirect) defined within the public class called AuthOpenIDHandler.The function start at line 295 and ends at 300. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [295.0], and this function return a value. It has 231.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470350_lincolnloop_django_debug_logging.debug_logging.views_py.delete_runs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.views.filings_py.FilerDetailView.render_to_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.builds.views_py.last_build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.projects.views_py.approve_projects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3534703_python_social_auth_social_app_flask.social_flask.strategy_py.FlaskStrategy.redirect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.io.server.__init___py.get_blueprint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.io.server.__init___py.get_tarball", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3652343_zsiciarz_django_envelope.envelope.views_py.ContactView.form_valid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660028_openprocurement_openprocurement_auction.openprocurement.auction.auctions_server_py.auctions_proxy", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.core_py.RootFlaskApp.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.organisations.views_py.OrganisationCreate.dispatch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.organisations.views_py.OrganisationList.dispatch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.organisations.views_py.activate_view", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.profiles.views_py.account_redirect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.workshops.views_py.workshop_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.__init___py.login", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.__init___py.logout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.views.u.submit_py.SubmitUI.post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.views.u.tokens_py.TokensUI.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.views.u.tokens_py.TokensUI.post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698202_csirtgadgets_bearded_avenger.cif.httpd.views.u.tokens_py.TokensUI.put", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3702931_graphenex_graphenex.graphenex.core.web.views_py.auth", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3702931_graphenex_graphenex.graphenex.core.web.views_py.login_required", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3705583_glotzerlab_signac_dashboard.signac_dashboard.dashboard_py.Dashboard._register_routes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3705583_glotzerlab_signac_dashboard.signac_dashboard.views_py.change_modules"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
not_found
def not_found(self, request):"""Render a page with a 404 return code and a message."""fmt = 'The path <q>%s</q> was not understood by this server.'msg = fmt % (request['parsed_uri'],)openid_url = request['query'].get('openid_url')return self.render(request, msg, 'error', openid_url, status='404 Not Found')
1
5
2
50
0
302
307
302
self,request
[]
Returns
{"Assign": 3, "Expr": 1, "Return": 1}
2
6
2
["get", "self.render"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.debug.fsdiff_py.Snapshot.compare_expected"]
The function (not_found) defined within the public class called AuthOpenIDHandler.The function start at line 302 and ends at 307. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [302.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["get", "self.render"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.debug.fsdiff_py.Snapshot.compare_expected"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
render
def render(self, request, message=None, css_class='alert', form_contents=None, status='200 OK', title="Python OpenID Consumer"):"""Render a page."""response_headers = [('Content-type', 'text/html')]request['start'](str(status), response_headers)self.page_header(request, title)if message:request['body'].append("<div class='%s'>" % (css_class,))request['body'].append(message)request['body'].append("</div>")self.page_footer(request, form_contents)return request['body']
2
11
7
105
0
309
321
309
self,request,message,css_class,form_contents,status,title
[]
Returns
{"Assign": 1, "Expr": 7, "If": 1, "Return": 1}
6
13
6
["str", "self.page_header", "append", "append", "append", "self.page_footer"]
323
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.views.search_py.search_contribs_by_name", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.api.views_py.partial_build_page", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.projects.views_py.approve_projects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.stats.views_py.overview", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.views_py.react_view", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell._genshi_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.notifications.ses_mail_notifier_py._render_complete_dump_email", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.notifications.ses_mail_notifier_py._render_failed_job_email", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.notifications.ses_mail_notifier_py._render_start_dump_email", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3627162_cinpla_exdir.exdir._version_py.get_versions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3627162_cinpla_exdir.versioneer_py.get_versions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3632343_ionelmc_python_manhole.ci.bootstrap_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.examples.view_py.ExampleView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.backtrace_py.BacktraceView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.breakpoints_py.BreakpointsView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.command_py.CommandView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.disasm_py.DisasmView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.memory_py.MemoryView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.memory_py.StackView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.register_py.RegisterView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675065_rouxrc_gazouilleur.gazouilleur.lib.templater_py.Templater.render_template", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683012_springload_draftjs_exporter.tests.test_output_py.TestOutput.test_render_with_big_content", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683012_springload_draftjs_exporter.tests.test_output_py.TestOutput.test_render_with_boolean_attribute_false", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683012_springload_draftjs_exporter.tests.test_output_py.TestOutput.test_render_with_boolean_attribute_true", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683012_springload_draftjs_exporter.tests.test_output_py.TestOutput.test_render_with_default_block_map"]
The function (render) defined within the public class called AuthOpenIDHandler.The function start at line 309 and ends at 321. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 7 parameters, represented as [309.0], and this function return a value. It declares 6.0 functions, It has 6.0 functions called inside which are ["str", "self.page_header", "append", "append", "append", "self.page_footer"], It has 323.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.views.search_py.search_contribs_by_name", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.api.views_py.partial_build_page", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.projects.views_py.approve_projects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.stats.views_py.overview", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.views_py.react_view", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell._genshi_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.notifications.ses_mail_notifier_py._render_complete_dump_email", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.notifications.ses_mail_notifier_py._render_failed_job_email", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.notifications.ses_mail_notifier_py._render_start_dump_email", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3627162_cinpla_exdir.exdir._version_py.get_versions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3627162_cinpla_exdir.versioneer_py.get_versions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3632343_ionelmc_python_manhole.ci.bootstrap_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.examples.view_py.ExampleView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.backtrace_py.BacktraceView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.breakpoints_py.BreakpointsView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.command_py.CommandView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.disasm_py.DisasmView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.memory_py.MemoryView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.memory_py.StackView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.voltron.plugins.view.register_py.RegisterView.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675065_rouxrc_gazouilleur.gazouilleur.lib.templater_py.Templater.render_template", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683012_springload_draftjs_exporter.tests.test_output_py.TestOutput.test_render_with_big_content", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683012_springload_draftjs_exporter.tests.test_output_py.TestOutput.test_render_with_boolean_attribute_false", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683012_springload_draftjs_exporter.tests.test_output_py.TestOutput.test_render_with_boolean_attribute_true", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683012_springload_draftjs_exporter.tests.test_output_py.TestOutput.test_render_with_default_block_map"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
page_header
def page_header(self, request, title):"""Render the page header"""request['body'].append('''\<html><head><title>%s</title></head><style type="text/css">* {font-family: verdana,sans-serif;}body {width: 50em;margin: 1em;}div {padding: .5em;}table {margin: none;padding: none;}.alert {border: 1px solid #e7dc2b;background: #fff888;}.error {border: 1px solid #ff0000;background: #ffaaaa;}#verify-form {border: 1px solid #777777;background: #dddddd;margin-top: 1em;padding-bottom: 0em;}</style><body><h1>%s</h1><p>This example consumer uses the <ahref="http://openid.schtuff.com/">Python OpenID</a> library. Itjust verifies that the URL that you enter is your identity URL.</p>''' % (title, title))
1
42
3
25
0
323
365
323
self,request,title
[]
None
{"Expr": 2}
1
43
1
["append"]
0
[]
The function (page_header) defined within the public class called AuthOpenIDHandler.The function start at line 323 and ends at 365. It contains 42 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [323.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["append"].
pasteorg_paste
AuthOpenIDHandler
public
0
0
page_footer
def page_footer(self, request, form_contents):"""Render the page footer"""if not form_contents:form_contents = ''request['body'].append('''\<div id="verify-form"><form method="get" action=%s>Identity&nbsp;URL:<input type="text" name="openid_url" value=%s /><input type="submit" value="Verify" /></form></div></body></html>''' % (quoteattr(self.build_url(request, 'verify')), quoteattr(form_contents)))
2
14
3
45
0
367
382
367
self,request,form_contents
[]
None
{"Assign": 1, "Expr": 2, "If": 1}
4
16
4
["append", "quoteattr", "self.build_url", "quoteattr"]
0
[]
The function (page_footer) defined within the public class called AuthOpenIDHandler.The function start at line 367 and ends at 382. It contains 14 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [367.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["append", "quoteattr", "self.build_url", "quoteattr"].
pasteorg_paste
public
public
0
0
make_open_id_middleware
def make_open_id_middleware(app,global_conf,# Should this default to something, or inherit something from global_conf?:data_store_path,auth_prefix='/oid',login_redirect=None,catch_401=False,url_to_username=None,apply_auth_tkt=False,auth_tkt_logout_path=None):from paste.deploy.converters import asboolfrom paste.util import import_stringcatch_401 = asbool(catch_401)if url_to_username and isinstance(url_to_username, str):url_to_username = import_string.eval_import(url_to_username)apply_auth_tkt = asbool(apply_auth_tkt)new_app = AuthOpenIDHandler(app, data_store_path=data_store_path, auth_prefix=auth_prefix,login_redirect=login_redirect, catch_401=catch_401,url_to_username=url_to_username or None)if apply_auth_tkt:from paste.auth import auth_tktnew_app = auth_tkt.make_auth_tkt_middleware(new_app, global_conf, logout_path=auth_tkt_logout_path)return new_app
5
25
9
130
4
387
412
387
app,global_conf,data_store_path,auth_prefix,login_redirect,catch_401,url_to_username,apply_auth_tkt,auth_tkt_logout_path
['url_to_username', 'catch_401', 'new_app', 'apply_auth_tkt']
Returns
{"Assign": 5, "If": 2, "Return": 1}
6
26
6
["asbool", "isinstance", "import_string.eval_import", "asbool", "AuthOpenIDHandler", "auth_tkt.make_auth_tkt_middleware"]
0
[]
The function (make_open_id_middleware) defined within the public class called public.The function start at line 387 and ends at 412. It contains 25 lines of code and it has a cyclomatic complexity of 5. It takes 9 parameters, represented as [387.0], and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["asbool", "isinstance", "import_string.eval_import", "asbool", "AuthOpenIDHandler", "auth_tkt.make_auth_tkt_middleware"].
pasteorg_paste
MoreCowbell
public
0
0
__init__
def __init__(self, app):self.app = app
1
2
2
12
0
10
11
10
self,app
[]
None
{"Assign": 1}
0
2
0
[]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called MoreCowbell.The function start at line 10 and ends at 11. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [10.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
public
public
0
0
__call__.repl_start_response
def repl_start_response(status, headers, exc_info=None):ct = header_value(headers, 'content-type')if ct and ct.startswith('text/html'):type.append(ct)remove_header(headers, 'content-length')start_response(status, headers, exc_info)return body.appendreturn start_response(status, headers, exc_info)
3
8
3
62
0
21
28
21
null
[]
None
null
0
0
0
null
0
null
The function (__call__.repl_start_response) defined within the public class called public.The function start at line 21 and ends at 28. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [21.0] and does not return any value..