@staticmethod
    def get_mode(environ):
        if "HTTP_G_M_P_MODE" in environ:
            mode = environ["HTTP_G_M_P_MODE"]
        else:
            mode = cookies.get_cookie_value("g-m-p-mode")

        if (mode not in [
                Mode.SIMPLE,
                Mode.CPU_INSTRUMENTED,
                Mode.CPU_SAMPLING,
                Mode.CPU_MEMORY_SAMPLING,
                Mode.CPU_LINEBYLINE,
                Mode.RPC_ONLY,
                Mode.RPC_AND_CPU_INSTRUMENTED,
                Mode.RPC_AND_CPU_SAMPLING,
                Mode.RPC_AND_CPU_MEMORY_SAMPLING,
                Mode.RPC_AND_CPU_LINEBYLINE]):
            mode = Mode.RPC_ONLY

        return mode
Simply appends one analysis to the analysis queue (the analysis we want to do).
dataset/ETHPy150Open gae-init/gae-init-debug/main/libx/gae_mini_profiler/profiler.py/Mode.get_mode--crossover with--dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/pyproct/clustering/evaluation/analysis/analysisRunner.py/AnalysisRunner.add_analysis