Skip to content
Snippets Groups Projects
Select Git revision
  • 9f20eed69c0ab6bf73baa66cb987221ffa37d2b7
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Issue/2355-topLevelOrg
  • Issue/2328-noFailOnLog
  • Hotfix/2371-fixGitLabinRCV
  • Issue/2287-guestRole
  • Fix/xxxx-activateGitlab
  • Test/xxxx-enablingGitLab
  • Issue/2349-gitlabHttps
  • Issue/2259-updatePids
  • Issue/2101-gitLabResTypeUi
  • Hotfix/2202-fixNaNQuota
  • Issue/2246-quotaResoval
  • Issue/2221-projectDateCreated
  • Hotfix/2224-quotaSizeAnalytics
  • Fix/xxxx-resourceVisibility
  • Issue/2000-gitlabResourcesAPI
  • v4.4.3
  • v4.4.2
  • v4.4.1
  • v4.4.0
  • v4.3.4
  • v4.3.3
  • v4.3.2
  • v4.3.1
  • v4.3.0
  • v4.2.8
  • v4.2.7
  • v4.2.6
  • v4.2.5
  • v4.2.4
  • v4.2.3
  • v4.2.2
  • v4.2.1
  • v4.2.0
  • v4.1.1
  • v4.1.0
41 results

ProjectController.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    __init__.py 1.24 KiB
    # coding: utf-8
    
    # comment out the following line when: https://github.com/riga/law/pull/112 and https://github.com/riga/law/pull/113 are merged
    # and rich logging should be used in favor of standard law logging
    # import law
    
    # law.contrib.load("rich")
    # law.rich.replace_console_handlers(show_time=False)
    
    import atexit
    import warnings
    
    import line_profiler
    
    tprofile = line_profiler.LineProfiler()
    
    import memory_profiler
    
    mprofile = memory_profiler.LineProfiler()
    
    # use MALLOC_MMAP_THRESHOLD_=16384 do get proper memory readings
    
    
    def dump_stats():
        if line_profiler and tprofile.get_stats().timings:
            tprofile.print_stats(output_unit=1e-3, stripzeros=True)
        if memory_profiler and mprofile.code_map:
            memory_profiler.show_results(mprofile)
    
    
    atexit.register(dump_stats)
    
    __builtins__["tprofile"] = tprofile
    __builtins__["mprofile"] = mprofile
    
    
    import order as od
    
    od.Dataset._instances.soft_checking = True
    od.Variable._instances.soft_checking = True
    od.Category._instances.soft_checking = True
    od.Config._instances.soft_checking = True
    od.Channel._instances.soft_checking = True
    
    warnings.filterwarnings("ignore", message=r".*already exists in the uniqueness context.*")
    
    
    import matplotlib.pyplot as plt
    
    plt.rcParams.update({"font.size": 12})