id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20,700 | waf_unit_test.py | projecthamster_hamster/waflib/Tools/waf_unit_test.py | #!/usr/bin/env python
# encoding: utf-8
# Carlos Rafael Giani, 2006
# Thomas Nagy, 2010-2018 (ita)
"""
Unit testing system for C/C++/D and interpreted languages providing test execution:
* in parallel, by using ``waf -j``
* partial (only the tests that have changed) or full (by using ``waf --alltests``)
The tests ar... | 9,827 | Python | .py | 255 | 35.701961 | 128 | 0.702257 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,701 | compiler_c.py | projecthamster_hamster/waflib/Tools/compiler_c.py | #!/usr/bin/env python
# encoding: utf-8
# Matthias Jahn jahn dôt matthias ât freenet dôt de, 2007 (pmarat)
"""
Try to detect a C compiler from the list of supported compilers (gcc, msvc, etc)::
def options(opt):
opt.load('compiler_c')
def configure(cnf):
cnf.load('compiler_c')
def build(bld):
bld.program(sou... | 3,251 | Python | .py | 93 | 32.623656 | 126 | 0.683774 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,702 | gas.py | projecthamster_hamster/waflib/Tools/gas.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2008-2018 (ita)
"Detect as/gas/gcc for compiling assembly files"
import waflib.Tools.asm # - leave this
from waflib.Tools import ar
def configure(conf):
"""
Find the programs gas/as/gcc and set the variable *AS*
"""
conf.find_program(['gas', 'gcc'], var='AS'... | 448 | Python | .py | 16 | 26.25 | 55 | 0.682984 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,703 | ruby.py | projecthamster_hamster/waflib/Tools/ruby.py | #!/usr/bin/env python
# encoding: utf-8
# daniel.svensson at purplescout.se 2008
# Thomas Nagy 2016-2018 (ita)
"""
Support for Ruby extensions. A C/C++ compiler is required::
def options(opt):
opt.load('compiler_c ruby')
def configure(conf):
conf.load('compiler_c ruby')
conf.check_ruby_version((1,8,0))
conf... | 5,579 | Python | .py | 151 | 34.509934 | 136 | 0.711849 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,704 | errcheck.py | projecthamster_hamster/waflib/Tools/errcheck.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2011 (ita)
"""
Common mistakes highlighting.
There is a performance impact, so this tool is only loaded when running ``waf -v``
"""
typos = {
'feature':'features',
'sources':'source',
'targets':'target',
'include':'includes',
'export_include':'export_includes',... | 7,826 | Python | .py | 210 | 34.057143 | 162 | 0.677164 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,705 | d.py | projecthamster_hamster/waflib/Tools/d.py | #!/usr/bin/env python
# encoding: utf-8
# Carlos Rafael Giani, 2007 (dv)
# Thomas Nagy, 2007-2018 (ita)
from waflib import Utils, Task, Errors
from waflib.TaskGen import taskgen_method, feature, extension
from waflib.Tools import d_scan, d_config
from waflib.Tools.ccroot import link_task, stlink_task
class d(Task.Tas... | 3,014 | Python | .py | 80 | 35.3 | 213 | 0.693521 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,706 | icc.py | projecthamster_hamster/waflib/Tools/icc.py | #!/usr/bin/env python
# encoding: utf-8
# Stian Selnes 2008
# Thomas Nagy 2009-2018 (ita)
"""
Detects the Intel C compiler
"""
import sys
from waflib.Tools import ccroot, ar, gcc
from waflib.Configure import conf
@conf
def find_icc(conf):
"""
Finds the program icc and execute it to ensure it really is icc
"""
cc... | 604 | Python | .py | 26 | 21.576923 | 64 | 0.728223 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,707 | bison.py | projecthamster_hamster/waflib/Tools/bison.py | #!/usr/bin/env python
# encoding: utf-8
# John O'Meara, 2006
# Thomas Nagy 2009-2018 (ita)
"""
The **bison** program is a code generator which creates C or C++ files.
The generated files are compiled into object files.
"""
from waflib import Task
from waflib.TaskGen import extension
class bison(Task.Task):
"""Compi... | 1,187 | Python | .py | 40 | 27.6 | 84 | 0.683656 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,708 | c_aliases.py | projecthamster_hamster/waflib/Tools/c_aliases.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005-2015 (ita)
"base for all c/c++ programs and libraries"
from waflib import Utils, Errors
from waflib.Configure import conf
def get_extensions(lst):
"""
Returns the file extensions for the list of files given as input
:param lst: files to process
:list l... | 3,580 | Python | .py | 118 | 27.720339 | 104 | 0.675306 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,709 | dbus.py | projecthamster_hamster/waflib/Tools/dbus.py | #!/usr/bin/env python
# encoding: utf-8
# Ali Sabil, 2007
"""
Compiles dbus files with **dbus-binding-tool**
Typical usage::
def options(opt):
opt.load('compiler_c dbus')
def configure(conf):
conf.load('compiler_c dbus')
def build(bld):
tg = bld.program(
includes = '.',
source = bld.path.ant_glob('*.c... | 2,062 | Python | .py | 60 | 32.133333 | 129 | 0.712851 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,710 | javaw.py | projecthamster_hamster/waflib/Tools/javaw.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
"""
Java support
Javac is one of the few compilers that behaves very badly:
#. it outputs files where it wants to (-d is only for the package root)
#. it recompiles files silently behind your back
#. it outputs an undefined amount of files (inn... | 16,882 | Python | .py | 483 | 32.231884 | 118 | 0.705752 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,711 | clangxx.py | projecthamster_hamster/waflib/Tools/clangxx.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy 2009-2018 (ita)
"""
Detect the Clang++ C++ compiler
"""
from waflib.Tools import ccroot, ar, gxx
from waflib.Configure import conf
@conf
def find_clangxx(conf):
"""
Finds the program clang++, and executes it to ensure it really is clang++
"""
cxx = conf.find_... | 648 | Python | .py | 25 | 24.16 | 74 | 0.716828 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,712 | gnu_dirs.py | projecthamster_hamster/waflib/Tools/gnu_dirs.py | #!/usr/bin/env python
# encoding: utf-8
# Ali Sabil, 2007
"""
Sets various standard variables such as INCLUDEDIR. SBINDIR and others. To use this module just call::
opt.load('gnu_dirs')
and::
conf.load('gnu_dirs')
Add options for the standard GNU directories, this tool will add the options
found in autotools, an... | 5,182 | Python | .py | 111 | 44.720721 | 102 | 0.646209 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,713 | compiler_d.py | projecthamster_hamster/waflib/Tools/compiler_d.py | #!/usr/bin/env python
# encoding: utf-8
# Carlos Rafael Giani, 2007 (dv)
# Thomas Nagy, 2016-2018 (ita)
"""
Try to detect a D compiler from the list of supported compilers::
def options(opt):
opt.load('compiler_d')
def configure(cnf):
cnf.load('compiler_d')
def build(bld):
bld.program(source='main.d', target... | 2,265 | Python | .py | 70 | 29.885714 | 97 | 0.72156 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,714 | fc_config.py | projecthamster_hamster/waflib/Tools/fc_config.py | #! /usr/bin/env python
# encoding: utf-8
# DC 2008
# Thomas Nagy 2016-2018 (ita)
"""
Fortran configuration helpers
"""
import re, os, sys, shlex
from waflib.Configure import conf
from waflib.TaskGen import feature, before_method
FC_FRAGMENT = ' program main\n end program main\n'
FC_FRAGMENT2 = ' ... | 13,986 | Python | .py | 430 | 29.965116 | 135 | 0.659283 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,715 | gfortran.py | projecthamster_hamster/waflib/Tools/gfortran.py | #! /usr/bin/env python
# encoding: utf-8
# DC 2008
# Thomas Nagy 2016-2018 (ita)
import re
from waflib import Utils
from waflib.Tools import fc, fc_config, fc_scan, ar
from waflib.Configure import conf
@conf
def find_gfortran(conf):
"""Find the gfortran program (will look in the environment variable 'FC')"""
fc = c... | 2,322 | Python | .py | 76 | 28.434211 | 85 | 0.713324 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,716 | suncxx.py | projecthamster_hamster/waflib/Tools/suncxx.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
# Ralf Habacker, 2006 (rh)
from waflib import Errors
from waflib.Tools import ccroot, ar
from waflib.Configure import conf
@conf
def find_sxx(conf):
"""
Detects the sun C++ compiler
"""
v = conf.env
cc = conf.find_program(['CC', 'c++'], var='... | 1,511 | Python | .py | 54 | 25.907407 | 62 | 0.601108 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,717 | suncc.py | projecthamster_hamster/waflib/Tools/suncc.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
# Ralf Habacker, 2006 (rh)
from waflib import Errors
from waflib.Tools import ccroot, ar
from waflib.Configure import conf
@conf
def find_scc(conf):
"""
Detects the Sun C compiler
"""
v = conf.env
cc = conf.find_program('cc', var='CC')
try:
... | 1,491 | Python | .py | 54 | 25.537037 | 62 | 0.591292 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,718 | md5_tstamp.py | projecthamster_hamster/waflib/Tools/md5_tstamp.py | #! /usr/bin/env python
# encoding: utf-8
"""
Re-calculate md5 hashes of files only when the file time have changed::
def options(opt):
opt.load('md5_tstamp')
The hashes can also reflect either the file contents (STRONGEST=True) or the
file time and file size.
The performance benefits of this module are usually i... | 963 | Python | .py | 30 | 30 | 76 | 0.735358 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,719 | asm.py | projecthamster_hamster/waflib/Tools/asm.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2008-2018 (ita)
"""
Assembly support, used by tools such as gas and nasm
To declare targets using assembly::
def configure(conf):
conf.load('gcc gas')
def build(bld):
bld(
features='c cstlib asm',
source = 'test.S',
target = 'asmtest')
bld(
... | 2,693 | Python | .py | 85 | 29.105882 | 113 | 0.693735 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,720 | ar.py | projecthamster_hamster/waflib/Tools/ar.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
# Ralf Habacker, 2006 (rh)
"""
The **ar** program creates static libraries. This tool is almost always loaded
from others (C, C++, D, etc) for static library support.
"""
from waflib.Configure import conf
@conf
def find_ar(conf):
"""Configuratio... | 634 | Python | .py | 19 | 31.684211 | 90 | 0.722951 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,721 | c_config.py | projecthamster_hamster/waflib/Tools/c_config.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005-2018 (ita)
"""
C/C++/D configuration helpers
"""
from __future__ import with_statement
import os, re, shlex
from waflib import Build, Utils, Task, Options, Logs, Errors, Runner
from waflib.TaskGen import after_method, feature
from waflib.Configure import co... | 41,994 | Python | .py | 1,186 | 32.584317 | 155 | 0.662589 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,722 | compiler_fc.py | projecthamster_hamster/waflib/Tools/compiler_fc.py | #!/usr/bin/env python
# encoding: utf-8
import re
from waflib import Utils, Logs
from waflib.Tools import fc
fc_compiler = {
'win32' : ['gfortran','ifort'],
'darwin' : ['gfortran', 'g95', 'ifort'],
'linux' : ['gfortran', 'g95', 'ifort'],
'java' : ['gfortran', 'g95', 'ifort'],
'default': ['gfortran'],
'aix' ... | 2,162 | Python | .py | 63 | 31.746032 | 103 | 0.714696 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,723 | c_osx.py | projecthamster_hamster/waflib/Tools/c_osx.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy 2008-2018 (ita)
"""
MacOSX related tools
"""
import os, shutil, platform
from waflib import Task, Utils
from waflib.TaskGen import taskgen_method, feature, after_method, before_method
app_info = '''
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "f... | 5,846 | Python | .py | 164 | 32.987805 | 98 | 0.704228 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,724 | xlcxx.py | projecthamster_hamster/waflib/Tools/xlcxx.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
# Ralf Habacker, 2006 (rh)
# Yinon Ehrlich, 2009
# Michael Kuhn, 2009
from waflib.Tools import ccroot, ar
from waflib.Configure import conf
@conf
def find_xlcxx(conf):
"""
Detects the Aix C++ compiler
"""
cxx = conf.find_program(['xlc++_r', 'x... | 1,468 | Python | .py | 52 | 26.211538 | 62 | 0.595153 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,725 | gcc.py | projecthamster_hamster/waflib/Tools/gcc.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
# Ralf Habacker, 2006 (rh)
# Yinon Ehrlich, 2009
"""
gcc/llvm detection.
"""
from waflib.Tools import ccroot, ar
from waflib.Configure import conf
@conf
def find_gcc(conf):
"""
Find the program gcc, and if present, try to detect its version num... | 4,033 | Python | .py | 128 | 29.515625 | 105 | 0.635543 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,726 | c_tests.py | projecthamster_hamster/waflib/Tools/c_tests.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2016-2018 (ita)
"""
Various configuration tests.
"""
from waflib import Task
from waflib.Configure import conf
from waflib.TaskGen import feature, before_method, after_method
LIB_CODE = '''
#ifdef _MSC_VER
#define testEXPORT __declspec(dllexport)
#else
#define t... | 6,123 | Python | .py | 204 | 27.877451 | 115 | 0.669555 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,727 | icpc.py | projecthamster_hamster/waflib/Tools/icpc.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy 2009-2018 (ita)
"""
Detects the Intel C++ compiler
"""
import sys
from waflib.Tools import ccroot, ar, gxx
from waflib.Configure import conf
@conf
def find_icpc(conf):
"""
Finds the program icpc, and execute it to ensure it really is icpc
"""
cxx = conf.find_... | 590 | Python | .py | 25 | 21.88 | 67 | 0.733929 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,728 | cxx.py | projecthamster_hamster/waflib/Tools/cxx.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005-2018 (ita)
"Base for c++ programs and libraries"
from waflib import TaskGen, Task
from waflib.Tools import c_preproc
from waflib.Tools.ccroot import link_task, stlink_task
@TaskGen.extension('.cpp','.cc','.cxx','.C','.c++')
def cxx_hook(self, node):
"Binds... | 1,622 | Python | .py | 31 | 50.483871 | 311 | 0.700379 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,729 | compiler_cxx.py | projecthamster_hamster/waflib/Tools/compiler_cxx.py | #!/usr/bin/env python
# encoding: utf-8
# Matthias Jahn jahn dôt matthias ât freenet dôt de 2007 (pmarat)
"""
Try to detect a C++ compiler from the list of supported compilers (g++, msvc, etc)::
def options(opt):
opt.load('compiler_cxx')
def configure(cnf):
cnf.load('compiler_cxx')
def build(bld):
bld.progra... | 3,309 | Python | .py | 93 | 33.236559 | 126 | 0.673763 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,730 | gxx.py | projecthamster_hamster/waflib/Tools/gxx.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
# Ralf Habacker, 2006 (rh)
# Yinon Ehrlich, 2009
"""
g++/llvm detection.
"""
from waflib.Tools import ccroot, ar
from waflib.Configure import conf
@conf
def find_gxx(conf):
"""
Finds the program g++, and if present, try to detect its version nu... | 4,064 | Python | .py | 128 | 29.75 | 105 | 0.64346 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,731 | g95.py | projecthamster_hamster/waflib/Tools/g95.py | #! /usr/bin/env python
# encoding: utf-8
# KWS 2010
# Thomas Nagy 2016-2018 (ita)
import re
from waflib import Utils
from waflib.Tools import fc, fc_config, fc_scan, ar
from waflib.Configure import conf
@conf
def find_g95(conf):
fc = conf.find_program('g95', var='FC')
conf.get_g95_version(fc)
conf.env.FC_NAME = 'G... | 1,522 | Python | .py | 55 | 25.818182 | 72 | 0.71978 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,732 | __init__.py | projecthamster_hamster/waflib/Tools/__init__.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005-2018 (ita)
| 71 | Python | .py | 3 | 22.666667 | 30 | 0.705882 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,733 | nobuild.py | projecthamster_hamster/waflib/Tools/nobuild.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2015 (ita)
"""
Override the build commands to write empty files.
This is useful for profiling and evaluating the Python overhead.
To use::
def build(bld):
...
bld.load('nobuild')
"""
from waflib import Task
def build(bld):
def run(self):
... | 419 | Python | .py | 18 | 20.333333 | 64 | 0.683544 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,734 | ldc2.py | projecthamster_hamster/waflib/Tools/ldc2.py | #!/usr/bin/env python
# encoding: utf-8
# Alex Rønne Petersen, 2012 (alexrp/Zor)
from waflib.Tools import ar, d
from waflib.Configure import conf
@conf
def find_ldc2(conf):
"""
Finds the program *ldc2* and set the variable *D*
"""
conf.find_program(['ldc2'], var='D')
out = conf.cmd_and_log(conf.env.D + ['-vers... | 1,185 | Python | .py | 44 | 24.863636 | 50 | 0.59876 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,735 | msvc.py | projecthamster_hamster/waflib/Tools/msvc.py | #!/usr/bin/env python
# encoding: utf-8
# Carlos Rafael Giani, 2006 (dv)
# Tamas Pal, 2007 (folti)
# Nicolas Mercier, 2009
# Matt Clarkson, 2012
"""
Microsoft Visual C++/Intel C++ compiler support
If you get detection problems, first try any of the following::
chcp 65001
set PYTHONIOENCODING=...
set PYTHONLEGACYW... | 35,520 | Python | .py | 905 | 36.308287 | 180 | 0.707822 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,736 | vala.py | projecthamster_hamster/waflib/Tools/vala.py | #!/usr/bin/env python
# encoding: utf-8
# Ali Sabil, 2007
# Radosław Szkodziński, 2010
"""
At this point, vala is still unstable, so do not expect
this tool to be too stable either (apis, etc)
"""
import re
from waflib import Build, Context, Errors, Logs, Node, Options, Task, Utils
from waflib.TaskGen import extensio... | 11,373 | Python | .py | 296 | 35.128378 | 128 | 0.691993 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,737 | c_preproc.py | projecthamster_hamster/waflib/Tools/c_preproc.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
"""
C/C++ preprocessor for finding dependencies
Reasons for using the Waf preprocessor by default
#. Some c/c++ extensions (Qt) require a custom preprocessor for obtaining the dependencies (.moc files)
#. Not all compilers provide .d files for ob... | 27,701 | Python | .py | 930 | 25.874194 | 301 | 0.612852 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,738 | gdc.py | projecthamster_hamster/waflib/Tools/gdc.py | #!/usr/bin/env python
# encoding: utf-8
# Carlos Rafael Giani, 2007 (dv)
from waflib.Tools import ar, d
from waflib.Configure import conf
@conf
def find_gdc(conf):
"""
Finds the program gdc and set the variable *D*
"""
conf.find_program('gdc', var='D')
out = conf.cmd_and_log(conf.env.D + ['--version'])
if out.... | 1,107 | Python | .py | 43 | 23.674419 | 51 | 0.593156 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,739 | intltool.py | projecthamster_hamster/waflib/Tools/intltool.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
"""
Support for translation tools such as msgfmt and intltool
Usage::
def configure(conf):
conf.load('gnu_dirs intltool')
def build(bld):
# process the .po files into .gmo files, and install them in LOCALEDIR
bld(features='intltool_po', ... | 6,784 | Python | .py | 192 | 32.614583 | 112 | 0.702579 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,740 | fc_scan.py | projecthamster_hamster/waflib/Tools/fc_scan.py | #! /usr/bin/env python
# encoding: utf-8
# DC 2008
# Thomas Nagy 2016-2018 (ita)
import re
INC_REGEX = r"""(?:^|['">]\s*;)\s*(?:|#\s*)INCLUDE\s+(?:\w+_)?[<"'](.+?)(?=["'>])"""
USE_REGEX = r"""(?:^|;)\s*USE(?:\s+|(?:(?:\s*,\s*(?:NON_)?INTRINSIC)?\s*::))\s*(\w+)"""
MOD_REGEX = r"""(?:^|;)\s*MODULE(?!\s+(?:PROCEDURE|SUB... | 3,089 | Python | .py | 102 | 27.04902 | 103 | 0.652745 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,741 | lua.py | projecthamster_hamster/waflib/Tools/lua.py | #!/usr/bin/env python
# encoding: utf-8
# Sebastian Schlingmann, 2008
# Thomas Nagy, 2008-2018 (ita)
"""
Lua support.
Compile *.lua* files into *.luac*::
def configure(conf):
conf.load('lua')
conf.env.LUADIR = '/usr/local/share/myapp/scripts/'
def build(bld):
bld(source='foo.lua')
"""
from waflib.TaskGen im... | 851 | Python | .py | 30 | 26.433333 | 81 | 0.702337 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,742 | xlc.py | projecthamster_hamster/waflib/Tools/xlc.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
# Ralf Habacker, 2006 (rh)
# Yinon Ehrlich, 2009
# Michael Kuhn, 2009
from waflib.Tools import ccroot, ar
from waflib.Configure import conf
@conf
def find_xlc(conf):
"""
Detects the Aix C compiler
"""
cc = conf.find_program(['xlc_r', 'xlc'], v... | 1,441 | Python | .py | 52 | 25.692308 | 62 | 0.579942 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,743 | cs.py | projecthamster_hamster/waflib/Tools/cs.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
"""
C# support. A simple example::
def configure(conf):
conf.load('cs')
def build(bld):
bld(features='cs', source='main.cs', gen='foo')
Note that the configuration may compile C# snippets::
FRAG = '''
namespace Moo {
public class Test ... | 6,397 | Python | .py | 177 | 33.649718 | 115 | 0.686065 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,744 | d_config.py | projecthamster_hamster/waflib/Tools/d_config.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2016-2018 (ita)
from waflib import Utils
from waflib.Configure import conf
@conf
def d_platform_flags(self):
"""
Sets the extensions dll/so for d programs and libraries
"""
v = self.env
if not v.DEST_OS:
v.DEST_OS = Utils.unversioned_sys_platform()
binfmt... | 1,415 | Python | .py | 59 | 21.694915 | 119 | 0.687639 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,745 | d_scan.py | projecthamster_hamster/waflib/Tools/d_scan.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2016-2018 (ita)
"""
Provide a scanner for finding dependencies on d files
"""
import re
from waflib import Utils
def filter_comments(filename):
"""
:param filename: d file name
:type filename: string
:rtype: list
:return: a list of characters
"""
txt = Ut... | 5,056 | Python | .py | 184 | 23.657609 | 126 | 0.633437 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,746 | winres.py | projecthamster_hamster/waflib/Tools/winres.py | #!/usr/bin/env python
# encoding: utf-8
# Brant Young, 2007
"Process *.rc* files for C/C++: X{.rc -> [.res|.rc.o]}"
import os
import re
from waflib import Task
from waflib.TaskGen import extension
from waflib.Tools import c_preproc
from waflib import Utils
@extension('.rc')
def rc_file(self, node):
"""
Binds the .... | 3,205 | Python | .py | 100 | 28.95 | 124 | 0.665912 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,747 | perl.py | projecthamster_hamster/waflib/Tools/perl.py | #!/usr/bin/env python
# encoding: utf-8
# andersg at 0x63.nu 2007
# Thomas Nagy 2016-2018 (ita)
"""
Support for Perl extensions. A C/C++ compiler is required::
def options(opt):
opt.load('compiler_c perl')
def configure(conf):
conf.load('compiler_c perl')
conf.check_perl_version((5,6,0))
conf.check_perl_ext... | 4,517 | Python | .py | 133 | 31.62406 | 152 | 0.70626 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,748 | irixcc.py | projecthamster_hamster/waflib/Tools/irixcc.py | #! /usr/bin/env python
# encoding: utf-8
# imported from samba
"""
Compiler definition for irix/MIPSpro cc compiler
"""
from waflib import Errors
from waflib.Tools import ccroot, ar
from waflib.Configure import conf
@conf
def find_irixcc(conf):
v = conf.env
cc = conf.find_program('cc', var='CC')
try:
conf.cmd_a... | 1,171 | Python | .py | 43 | 25.232558 | 62 | 0.611459 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,749 | ifort.py | projecthamster_hamster/waflib/Tools/ifort.py | #! /usr/bin/env python
# encoding: utf-8
# DC 2008
# Thomas Nagy 2016-2018 (ita)
import os, re, traceback
from waflib import Utils, Logs, Errors
from waflib.Tools import fc, fc_config, fc_scan, ar, ccroot
from waflib.Configure import conf
from waflib.TaskGen import after_method, feature
@conf
def find_ifort(conf):
f... | 12,473 | Python | .py | 359 | 32.033426 | 133 | 0.709121 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,750 | flex.py | projecthamster_hamster/waflib/Tools/flex.py | #!/usr/bin/env python
# encoding: utf-8
# John O'Meara, 2006
# Thomas Nagy, 2006-2018 (ita)
"""
The **flex** program is a code generator which creates C or C++ files.
The generated files are compiled into object files.
"""
import os, re
from waflib import Task, TaskGen
from waflib.Tools import ccroot
def decide_ext(... | 1,553 | Python | .py | 53 | 27.377358 | 82 | 0.682093 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,751 | tex.py | projecthamster_hamster/waflib/Tools/tex.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
"""
TeX/LaTeX/PDFLaTeX/XeLaTeX support
Example::
def configure(conf):
conf.load('tex')
if not conf.env.LATEX:
conf.fatal('The program LaTex is required')
def build(bld):
bld(
features = 'tex',
type = 'latex', # pdflatex or x... | 15,360 | Python | .py | 451 | 30.228381 | 192 | 0.676836 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,752 | ccroot.py | projecthamster_hamster/waflib/Tools/ccroot.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005-2018 (ita)
"""
Classes and methods shared by tools providing support for C-like language such
as C/C++/D/Assembly/Go (this support module is almost never used alone).
"""
import os, re
from waflib import Task, Utils, Node, Errors, Logs
from waflib.TaskGen im... | 26,307 | Python | .py | 674 | 36.081602 | 394 | 0.696758 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,753 | fc.py | projecthamster_hamster/waflib/Tools/fc.py | #! /usr/bin/env python
# encoding: utf-8
# DC 2008
# Thomas Nagy 2016-2018 (ita)
"""
Fortran support
"""
from waflib import Utils, Task, Errors
from waflib.Tools import ccroot, fc_config, fc_scan
from waflib.TaskGen import extension
from waflib.Configure import conf
ccroot.USELIB_VARS['fc'] = set(['FCFLAGS', 'DEFINE... | 6,763 | Python | .py | 169 | 36.786982 | 239 | 0.691768 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,754 | test_stuff.py | projecthamster_hamster/tests/test_stuff.py | import sys, os.path
# a convoluted line to add hamster module to absolute path
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), "../src")))
import datetime as pdt
import unittest
import re
from hamster.lib import datetime as dt
from hamster.lib.dbus import (
to_dbus_fact,
to_dbus_fac... | 23,239 | Python | .py | 468 | 38.08547 | 106 | 0.58406 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,755 | fixpy2.py | projecthamster_hamster/waflib/fixpy2.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2010-2018 (ita)
from __future__ import with_statement
import os
all_modifs = {}
def fixdir(dir):
"""Call all substitution functions on Waf folders"""
for k in all_modifs:
for v in all_modifs[k]:
modif(os.path.join(dir, 'waflib'), k, v)
def modif(dir, na... | 1,488 | Python | .xpy | 51 | 26.588235 | 125 | 0.656601 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,756 | comictagger.py | evilhero_mylar/comictagger.py | #!/usr/bin/env python
from lib.comictaggerlib.main import ctmain
if __name__ == '__main__':
ctmain()
| 106 | Python | .py | 4 | 24.25 | 42 | 0.673267 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,757 | Mylar.py | evilhero_mylar/Mylar.py | #!/usr/bin/env python
# This file is part of Mylar.
#
# Mylar is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Mylar is distri... | 14,559 | Python | .py | 291 | 40.735395 | 172 | 0.638001 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,758 | get_image_size.py | evilhero_mylar/lib/get_image_size.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
"""
get_image_size.py
====================
:Name: get_image_size
:Purpose: extract image dimensions given a file path
:Author: Paulo Scardine (based on code from Emmanuel VA�SSE)
:Created: 26/09/... | 12,859 | Python | .py | 340 | 25.997059 | 79 | 0.505453 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,759 | argparse.py | evilhero_mylar/lib/argparse.py | # Author: Steven J. Bethard <steven.bethard@gmail.com>.
"""Command-line parsing library
This module is an optparse-inspired command-line parsing library that:
- handles both optional and positional arguments
- produces highly informative usage messages
- supports parsers that dispatch to sub-parsers
The... | 89,553 | Python | .py | 1,959 | 33.760082 | 83 | 0.575114 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,760 | MultipartPostHandler.py | evilhero_mylar/lib/MultipartPostHandler.py | #!/usr/bin/python
####
# 06/2010 Nic Wolfe <nic@wolfeden.ca>
# 02/2006 Will Holcomb <wholcomb@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 ... | 3,642 | Python | .py | 77 | 35.883117 | 111 | 0.581342 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,761 | configobj.py | evilhero_mylar/lib/configobj.py | # configobj.py
# A config file reader/writer that supports nested sections in config files.
# Copyright (C) 2005-2010 Michael Foord, Nicola Larosa
# E-mail: fuzzyman AT voidspace DOT org DOT uk
# nico AT tekNico DOT net
# ConfigObj 4
# http://www.voidspace.org.uk/python/configobj.html
# Released subject to th... | 88,163 | Python | .py | 2,074 | 29.865477 | 114 | 0.541903 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,762 | feedparser.py | evilhero_mylar/lib/feedparser.py | #!/usr/bin/env python
"""Universal feed parser
Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
Visit http://feedparser.org/ for the latest version
Visit http://feedparser.org/docs/ for the latest documentation
Required: Python 2.4 or later
Recommended: CJKCodecs and iconv_codec <http://cjkpytho... | 168,077 | Python | .py | 3,505 | 37.577175 | 297 | 0.57918 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,763 | certgen.py | evilhero_mylar/lib/certgen.py | # -*- coding: latin-1 -*-
#
# Copyright (C) Martin Sjögren and AB Strakt 2001, All rights reserved
# Copyright (C) Jean-Paul Calderone 2008, All rights reserved
# This file is licenced under the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 or later (aka LGPL v2.1)
# Please see LGPL2.1.txt for more information
"""
Cert... | 2,892 | Python | .py | 70 | 32.471429 | 104 | 0.621708 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,764 | six.py | evilhero_mylar/lib/six.py | """Utilities for writing code that runs on Python 2 and 3"""
# Copyright (c) 2010-2015 Benjamin Peterson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including with... | 30,098 | Python | .py | 699 | 36.296137 | 98 | 0.650222 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,765 | bencode.py | evilhero_mylar/lib/bencode.py | # Copyright (C) 2011 by clueless <clueless.nospam ! mail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, mo... | 9,132 | Python | .py | 239 | 33.753138 | 97 | 0.655971 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,766 | pathlib.py | evilhero_mylar/lib/pathlib.py | import fnmatch
import functools
import io
import ntpath
import os
import posixpath
import re
import sys
import time
from collections import Sequence
from contextlib import contextmanager
from errno import EINVAL, ENOENT
from operator import attrgetter
from stat import S_ISDIR, S_ISLNK, S_ISREG, S_ISSOCK, S_ISBLK, S_ISC... | 41,480 | Python | .py | 1,093 | 27.987191 | 95 | 0.563941 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,767 | util.py | evilhero_mylar/lib/apscheduler/util.py | """This module contains several handy functions primarily meant for internal use."""
from __future__ import division
from datetime import date, datetime, time, timedelta, tzinfo
from calendar import timegm
import re
from functools import partial
from pytz import timezone, utc
import six
try:
from inspect import ... | 12,588 | Python | .py | 296 | 35.182432 | 99 | 0.648529 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,768 | __init__.py | evilhero_mylar/lib/apscheduler/__init__.py | # These will be removed in APScheduler 4.0.
#release = __import__('pkg_resources').get_distribution('APScheduler').version.split('-')[0]
#version_info = tuple(int(x) if x.isdigit() else x for x in release.split('.'))
#version = __version__ = '.'.join(str(x) for x in version_info[:3])
version_info = (3, 3, 1)
release =... | 361 | Python | .py | 7 | 50.428571 | 92 | 0.654391 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,769 | events.py | evilhero_mylar/lib/apscheduler/events.py | __all__ = ('EVENT_SCHEDULER_STARTED', 'EVENT_SCHEDULER_SHUTDOWN', 'EVENT_SCHEDULER_PAUSED',
'EVENT_SCHEDULER_RESUMED', 'EVENT_EXECUTOR_ADDED', 'EVENT_EXECUTOR_REMOVED',
'EVENT_JOBSTORE_ADDED', 'EVENT_JOBSTORE_REMOVED', 'EVENT_ALL_JOBS_REMOVED',
'EVENT_JOB_ADDED', 'EVENT_JOB_REMOVED', 'E... | 3,571 | Python | .py | 75 | 41.666667 | 99 | 0.675582 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,770 | job.py | evilhero_mylar/lib/apscheduler/job.py | from collections import Iterable, Mapping
from uuid import uuid4
import six
from apscheduler.triggers.base import BaseTrigger
from apscheduler.util import (
ref_to_obj, obj_to_ref, datetime_repr, repr_escape, get_callable_name, check_callable_args,
convert_to_datetime)
class Job(object):
"""
Contain... | 10,690 | Python | .py | 226 | 36.402655 | 99 | 0.599077 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,771 | pool.py | evilhero_mylar/lib/apscheduler/executors/pool.py | from abc import abstractmethod
import concurrent.futures
from apscheduler.executors.base import BaseExecutor, run_job
class BasePoolExecutor(BaseExecutor):
@abstractmethod
def __init__(self, pool):
super(BasePoolExecutor, self).__init__()
self._pool = pool
def _do_submit_job(self, job, r... | 1,672 | Python | .py | 38 | 36.394737 | 94 | 0.660692 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,772 | gevent.py | evilhero_mylar/lib/apscheduler/executors/gevent.py | from __future__ import absolute_import
import sys
from apscheduler.executors.base import BaseExecutor, run_job
try:
import gevent
except ImportError: # pragma: nocover
raise ImportError('GeventExecutor requires gevent installed')
class GeventExecutor(BaseExecutor):
"""
Runs jobs as greenlets.
... | 763 | Python | .py | 22 | 26.954545 | 87 | 0.631651 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,773 | twisted.py | evilhero_mylar/lib/apscheduler/executors/twisted.py | from __future__ import absolute_import
from apscheduler.executors.base import BaseExecutor, run_job
class TwistedExecutor(BaseExecutor):
"""
Runs jobs in the reactor's thread pool.
Plugin alias: ``twisted``
"""
def start(self, scheduler, alias):
super(TwistedExecutor, self).start(schedu... | 778 | Python | .py | 18 | 34.944444 | 86 | 0.657371 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,774 | asyncio.py | evilhero_mylar/lib/apscheduler/executors/asyncio.py | from __future__ import absolute_import
import sys
from apscheduler.executors.base import BaseExecutor, run_job
try:
from asyncio import iscoroutinefunction
from apscheduler.executors.base_py3 import run_coroutine_job
except ImportError:
from trollius import iscoroutinefunction
run_coroutine_job = Non... | 1,706 | Python | .py | 38 | 35.289474 | 99 | 0.645745 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,775 | tornado.py | evilhero_mylar/lib/apscheduler/executors/tornado.py | from __future__ import absolute_import
import sys
from concurrent.futures import ThreadPoolExecutor
from tornado.gen import convert_yielded
from apscheduler.executors.base import BaseExecutor, run_job
try:
from inspect import iscoroutinefunction
from apscheduler.executors.base_py3 import run_coroutine_job
e... | 1,733 | Python | .py | 40 | 35.05 | 97 | 0.662895 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,776 | base.py | evilhero_mylar/lib/apscheduler/executors/base.py | from abc import ABCMeta, abstractmethod
from collections import defaultdict
from datetime import datetime, timedelta
from traceback import format_tb
import logging
import sys
from pytz import utc
import six
from apscheduler.events import (
JobExecutionEvent, EVENT_JOB_MISSED, EVENT_JOB_ERROR, EVENT_JOB_EXECUTED)
... | 5,042 | Python | .py | 109 | 36.33945 | 98 | 0.624873 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,777 | debug.py | evilhero_mylar/lib/apscheduler/executors/debug.py | import sys
from apscheduler.executors.base import BaseExecutor, run_job
class DebugExecutor(BaseExecutor):
"""
A special executor that executes the target callable directly instead of deferring it to a
thread or process.
Plugin alias: ``debug``
"""
def _do_submit_job(self, job, run_times):
... | 559 | Python | .py | 15 | 30.333333 | 94 | 0.653061 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,778 | base_py3.py | evilhero_mylar/lib/apscheduler/executors/base_py3.py | import logging
import sys
from datetime import datetime, timedelta
from traceback import format_tb
from pytz import utc
from apscheduler.events import (
JobExecutionEvent, EVENT_JOB_MISSED, EVENT_JOB_ERROR, EVENT_JOB_EXECUTED)
async def run_coroutine_job(job, jobstore_alias, run_times, logger_name):
"""Coro... | 1,761 | Python | .py | 35 | 38.4 | 97 | 0.609884 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,779 | interval.py | evilhero_mylar/lib/apscheduler/triggers/interval.py | from datetime import timedelta, datetime
from math import ceil
from tzlocal import get_localzone
from apscheduler.triggers.base import BaseTrigger
from apscheduler.util import convert_to_datetime, timedelta_seconds, datetime_repr, astimezone
class IntervalTrigger(BaseTrigger):
"""
Triggers on specified inte... | 3,802 | Python | .py | 75 | 41.373333 | 98 | 0.64097 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,780 | date.py | evilhero_mylar/lib/apscheduler/triggers/date.py | from datetime import datetime
from tzlocal import get_localzone
from apscheduler.triggers.base import BaseTrigger
from apscheduler.util import convert_to_datetime, datetime_repr, astimezone
class DateTrigger(BaseTrigger):
"""
Triggers once on the given datetime. If ``run_date`` is left empty, current time i... | 1,705 | Python | .py | 37 | 38 | 98 | 0.628779 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,781 | base.py | evilhero_mylar/lib/apscheduler/triggers/base.py | from abc import ABCMeta, abstractmethod
import six
class BaseTrigger(six.with_metaclass(ABCMeta)):
"""Abstract base class that defines the interface that every trigger must implement."""
__slots__ = ()
@abstractmethod
def get_next_fire_time(self, previous_fire_time, now):
"""
Return... | 578 | Python | .py | 13 | 38.076923 | 92 | 0.701252 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,782 | expressions.py | evilhero_mylar/lib/apscheduler/triggers/cron/expressions.py | """This module contains the expressions applicable for CronTrigger's fields."""
from calendar import monthrange
import re
from apscheduler.util import asint
__all__ = ('AllExpression', 'RangeExpression', 'WeekdayRangeExpression',
'WeekdayPositionExpression', 'LastDayOfMonthExpression')
WEEKDAYS = ['mon'... | 6,527 | Python | .py | 146 | 35.369863 | 96 | 0.579438 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,783 | __init__.py | evilhero_mylar/lib/apscheduler/triggers/cron/__init__.py | from datetime import datetime, timedelta
from tzlocal import get_localzone
import six
from apscheduler.triggers.base import BaseTrigger
from apscheduler.triggers.cron.fields import (
BaseField, WeekField, DayOfMonthField, DayOfWeekField, DEFAULT_VALUES)
from apscheduler.util import datetime_ceil, convert_to_datet... | 7,858 | Python | .py | 176 | 33.119318 | 98 | 0.571223 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,784 | fields.py | evilhero_mylar/lib/apscheduler/triggers/cron/fields.py | """Fields represent CronTrigger options which map to :class:`~datetime.datetime` fields."""
from calendar import monthrange
from apscheduler.triggers.cron.expressions import (
AllExpression, RangeExpression, WeekdayPositionExpression, LastDayOfMonthExpression,
WeekdayRangeExpression)
__all__ = ('MIN_VALUES'... | 3,190 | Python | .py | 70 | 37.328571 | 97 | 0.628155 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,785 | redis.py | evilhero_mylar/lib/apscheduler/jobstores/redis.py | from __future__ import absolute_import
from datetime import datetime
from pytz import utc
import six
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import datetime_to_utc_timestamp, utc_timestamp_to_datetime
from apscheduler.job import Job
try:
impor... | 5,423 | Python | .py | 118 | 36 | 99 | 0.623081 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,786 | memory.py | evilhero_mylar/lib/apscheduler/jobstores/memory.py | from __future__ import absolute_import
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import datetime_to_utc_timestamp
class MemoryJobStore(BaseJobStore):
"""
Stores jobs in an array in RAM. Provides no persistence support.
Plugin alias: ``m... | 3,655 | Python | .py | 85 | 33.447059 | 99 | 0.598534 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,787 | rethinkdb.py | evilhero_mylar/lib/apscheduler/jobstores/rethinkdb.py | from __future__ import absolute_import
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import maybe_ref, datetime_to_utc_timestamp, utc_timestamp_to_datetime
from apscheduler.job import Job
try:
import cPickle as pickle
except ImportError: # pragma: n... | 5,683 | Python | .py | 122 | 37.606557 | 99 | 0.629656 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,788 | sqlalchemy.py | evilhero_mylar/lib/apscheduler/jobstores/sqlalchemy.py | from __future__ import absolute_import
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import maybe_ref, datetime_to_utc_timestamp, utc_timestamp_to_datetime
from apscheduler.job import Job
try:
import cPickle as pickle
except ImportError: # pragma: n... | 5,785 | Python | .py | 123 | 38.373984 | 104 | 0.645201 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,789 | base.py | evilhero_mylar/lib/apscheduler/jobstores/base.py | from abc import ABCMeta, abstractmethod
import logging
import six
class JobLookupError(KeyError):
"""Raised when the job store cannot find a job for update or removal."""
def __init__(self, job_id):
super(JobLookupError, self).__init__(u'No job by the id of %s was found' % job_id)
class Conflictin... | 4,523 | Python | .py | 107 | 34.018692 | 98 | 0.634703 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,790 | mongodb.py | evilhero_mylar/lib/apscheduler/jobstores/mongodb.py | from __future__ import absolute_import
import warnings
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import maybe_ref, datetime_to_utc_timestamp, utc_timestamp_to_datetime
from apscheduler.job import Job
try:
import cPickle as pickle
except ImportErr... | 5,282 | Python | .py | 114 | 36.54386 | 109 | 0.624587 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,791 | zookeeper.py | evilhero_mylar/lib/apscheduler/jobstores/zookeeper.py | from __future__ import absolute_import
import os
from datetime import datetime
from pytz import utc
from kazoo.exceptions import NoNodeError, NodeExistsError
from apscheduler.jobstores.base import BaseJobStore, JobLookupError, ConflictingIdError
from apscheduler.util import maybe_ref, datetime_to_utc_timestamp, utc_... | 6,378 | Python | .py | 151 | 32.423841 | 98 | 0.603162 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,792 | gevent.py | evilhero_mylar/lib/apscheduler/schedulers/gevent.py | from __future__ import absolute_import
from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.schedulers.base import BaseScheduler
try:
from gevent.event import Event
from gevent.lock import RLock
import gevent
except ImportError: # pragma: nocover
raise ImportError('GeventSch... | 1,031 | Python | .py | 26 | 33.692308 | 66 | 0.715863 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,793 | twisted.py | evilhero_mylar/lib/apscheduler/schedulers/twisted.py | from __future__ import absolute_import
from functools import wraps
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.util import maybe_ref
try:
from twisted.internet import reactor as default_reactor
except ImportError: # pragma: nocover
raise ImportError('TwistedScheduler requires Twis... | 1,844 | Python | .py | 46 | 33.782609 | 82 | 0.640292 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,794 | asyncio.py | evilhero_mylar/lib/apscheduler/schedulers/asyncio.py | from __future__ import absolute_import
from functools import wraps
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.util import maybe_ref
try:
import asyncio
except ImportError: # pragma: nocover
try:
import trollius as asyncio
except ImportError:
raise ImportError(
... | 2,018 | Python | .py | 51 | 33.078431 | 95 | 0.627371 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,795 | tornado.py | evilhero_mylar/lib/apscheduler/schedulers/tornado.py | from __future__ import absolute_import
from datetime import timedelta
from functools import wraps
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.util import maybe_ref
try:
from tornado.ioloop import IOLoop
except ImportError: # pragma: nocover
raise ImportError('TornadoScheduler requ... | 1,926 | Python | .py | 47 | 34.787234 | 98 | 0.634997 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,796 | qt.py | evilhero_mylar/lib/apscheduler/schedulers/qt.py | from __future__ import absolute_import
from apscheduler.schedulers.base import BaseScheduler
try:
from PyQt5.QtCore import QObject, QTimer
except ImportError: # pragma: nocover
try:
from PyQt4.QtCore import QObject, QTimer
except ImportError:
try:
from PySide.QtCore import QOb... | 1,238 | Python | .py | 32 | 31 | 93 | 0.652174 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,797 | background.py | evilhero_mylar/lib/apscheduler/schedulers/background.py | from __future__ import absolute_import
from threading import Thread, Event
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.schedulers.blocking import BlockingScheduler
from apscheduler.util import asbool
class BackgroundScheduler(BlockingScheduler):
"""
A scheduler that runs in the ba... | 1,505 | Python | .py | 31 | 41.645161 | 92 | 0.603142 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,798 | __init__.py | evilhero_mylar/lib/apscheduler/schedulers/__init__.py | class SchedulerAlreadyRunningError(Exception):
"""Raised when attempting to start or configure the scheduler when it's already running."""
def __str__(self):
return 'Scheduler is already running'
class SchedulerNotRunningError(Exception):
"""Raised when attempting to shutdown the scheduler when i... | 406 | Python | .py | 8 | 45.25 | 95 | 0.730964 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,799 | blocking.py | evilhero_mylar/lib/apscheduler/schedulers/blocking.py | from __future__ import absolute_import
from threading import Event
from apscheduler.schedulers.base import BaseScheduler, STATE_STOPPED
from apscheduler.util import TIMEOUT_MAX
class BlockingScheduler(BaseScheduler):
"""
A scheduler that runs in the foreground
(:meth:`~apscheduler.schedulers.base.BaseSc... | 924 | Python | .py | 25 | 30.2 | 74 | 0.667789 | evilhero/mylar | 977 | 173 | 0 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |