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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28,000 | lookup.py | stan-dev_pystan2/pystan/lookup.py | #-----------------------------------------------------------------------------
# Copyright (c) 2017, PyStan developers
#
# This file is licensed under Version 3.0 of the GNU General Public
# License. See LICENSE for a text of the license.
#-----------------------------------------------------------------------------
i... | 5,373 | Python | .py | 122 | 35.647541 | 78 | 0.593881 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,001 | test_rstan_stan_args.py | stan-dev_pystan2/pystan/tests/test_rstan_stan_args.py | import unittest
import numpy as np
import pystan
from pystan.tests.helper import get_model
# REF: rstan/tests/unitTests/runit.test.stan_args_hpp.R
class TestPyStanArgs(unittest.TestCase):
def test_stan_args_basic(self):
y = np.array([0.70, -0.16, 0.77, -1.37, -1.99, 1.35, 0.08,
... | 6,051 | Python | .py | 93 | 55.516129 | 116 | 0.637742 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,002 | test_basic.py | stan-dev_pystan2/pystan/tests/test_basic.py | from collections import OrderedDict
import gc
import os
import tempfile
import unittest
import numpy as np
import pystan
from pystan._compat import PY2
from pystan.tests.helper import get_model
class TestNormal(unittest.TestCase):
@classmethod
def setUpClass(cls):
model_code = 'parameters {real y;} ... | 7,434 | Python | .py | 156 | 38.301282 | 109 | 0.607976 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,003 | test_linear_regression.py | stan-dev_pystan2/pystan/tests/test_linear_regression.py | import unittest
import numpy as np
import pystan
class TestLinearRegression(unittest.TestCase):
@classmethod
def setUpClass(cls):
np.random.seed(1)
n = 10000
p = 3
cls.beta_true = beta_true = (1, 3, 5)
X = np.random.normal(size=(n, p))
X = (X - np.mean(X, ax... | 1,396 | Python | .py | 41 | 25.121951 | 83 | 0.527571 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,004 | test_user_inits.py | stan-dev_pystan2/pystan/tests/test_user_inits.py | import unittest
import numpy as np
import pystan
class TestUserInits(unittest.TestCase):
@classmethod
def setUpClass(cls):
model_code = """
data {
real x;
}
parameters {
real mu;
}
model {
x ~ norm... | 4,001 | Python | .py | 96 | 31.177083 | 150 | 0.548919 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,005 | test_euclidian_metric.py | stan-dev_pystan2/pystan/tests/test_euclidian_metric.py | import unittest
import os
import numpy as np
import tempfile
import pystan
from pystan import StanModel
from pystan.tests.helper import get_model
class TestEuclidianMetric(unittest.TestCase):
@classmethod
def setUpClass(cls):
model_code = """
data {
int<lower=2> K;
int<lower=1... | 13,947 | Python | .py | 226 | 52.411504 | 158 | 0.627224 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,006 | test_generated_quantities_seed.py | stan-dev_pystan2/pystan/tests/test_generated_quantities_seed.py | from collections import OrderedDict
import gc
import os
import tempfile
import unittest
import numpy as np
import pystan
from pystan._compat import PY2
class TestGeneratedQuantitiesSeed(unittest.TestCase):
"""Verify that the RNG in the transformed data block uses the overall seed.
See https://github.com/st... | 1,494 | Python | .py | 45 | 24.022222 | 79 | 0.553782 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,007 | test_utf8.py | stan-dev_pystan2/pystan/tests/test_utf8.py | import unittest
from pystan import stanc, StanModel
from pystan._compat import PY2
class TestUTF8(unittest.TestCase):
desired = sorted({"status", "model_cppname", "cppcode", "model_name", "model_code", "include_paths"})
def test_utf8(self):
model_code = 'parameters {real y;} model {y ~ normal(0,1);}... | 1,618 | Python | .py | 28 | 49.75 | 105 | 0.668579 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,008 | test_extract.py | stan-dev_pystan2/pystan/tests/test_extract.py | import unittest
import numpy as np
from pandas.util.testing import assert_series_equal
from numpy.testing import assert_array_equal
import pystan
class TestExtract(unittest.TestCase):
@classmethod
def setUpClass(cls):
ex_model_code = '''
parameters {
real alpha[2,3];
... | 13,084 | Python | .py | 290 | 33.265517 | 104 | 0.537974 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,009 | test_basic_array.py | stan-dev_pystan2/pystan/tests/test_basic_array.py | import unittest
import numpy as np
import pystan
class TestBasicArray(unittest.TestCase):
@classmethod
def setUpClass(cls):
model_code = """
data {
int<lower=2> K;
}
parameters {
real beta[K,1,2];
}
model {
for (k in 1:K)
... | 2,048 | Python | .py | 59 | 26.101695 | 85 | 0.531313 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,010 | test_misc.py | stan-dev_pystan2/pystan/tests/test_misc.py | from collections import OrderedDict
import os
import tempfile
import unittest
import numpy as np
from pystan import misc
from pystan._compat import PY2
from pystan.constants import MAX_UINT
def is_valid_seed(seed):
return isinstance(seed, int) and seed >= 0 and seed <= MAX_UINT
class TestMisc(unittest.TestCas... | 9,688 | Python | .py | 163 | 49.546012 | 113 | 0.537514 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,011 | test_basic_matrix.py | stan-dev_pystan2/pystan/tests/test_basic_matrix.py | import unittest
import numpy as np
from pystan import StanModel
from pystan.tests.helper import get_model
class TestMatrixParam(unittest.TestCase):
@classmethod
def setUpClass(cls):
model_code = """
data {
int<lower=2> K;
int<lower=1> D;
}
parameters {
... | 1,684 | Python | .py | 49 | 26.306122 | 64 | 0.562922 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,012 | test_posterior_means.py | stan-dev_pystan2/pystan/tests/test_posterior_means.py | import unittest
import numpy as np
import pystan
class TestPosteriorMeans(unittest.TestCase):
"""Test get_posterior_mean"""
@classmethod
def setUpClass(cls):
model_code = """
data {
int<lower=0> n_subjects; // number of subjects
int<lower=0,upper=40> score[n_subj... | 1,185 | Python | .py | 36 | 23.055556 | 78 | 0.535902 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,013 | test_chains.py | stan-dev_pystan2/pystan/tests/test_chains.py | from collections import OrderedDict
import math
import os
import unittest
import numpy as np
import pystan
import pystan.chains
class TestMcmcChains(unittest.TestCase):
# REF: stan/src/test/unit/mcmc/chains_test.cpp
@classmethod
def setUpClass(cls):
testdata_path = os.path.join(os.path.dirname(__... | 3,353 | Python | .py | 76 | 34.328947 | 87 | 0.574012 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,014 | test_covexpquad.py | stan-dev_pystan2/pystan/tests/test_covexpquad.py | import unittest
from pystan import StanModel
class TestCovExpQuad(unittest.TestCase):
"""
Unit test added to address issue discussed here: https://github.com/stan-dev/pystan/issues/271
"""
@classmethod
def setUpClass(cls):
covexpquad = """
data {
real rx1[5];
}
... | 563 | Python | .py | 21 | 19.904762 | 98 | 0.60223 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,015 | test_ess.py | stan-dev_pystan2/pystan/tests/test_ess.py | import unittest
import pystan
import pystan.chains
import pystan._chains
from pystan.tests.helper import get_model
# NOTE: This test is fragile because the default sampling algorithm used by Stan
# may change in significant ways.
class TestESS(unittest.TestCase):
@classmethod
def setUpClass(cls):
m... | 1,007 | Python | .py | 21 | 40.190476 | 87 | 0.664286 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,016 | test_external_cpp.py | stan-dev_pystan2/pystan/tests/test_external_cpp.py | import unittest
import numpy as np
from numpy.testing import assert_array_equal
import os
import pystan
# NOTE: This test is fragile because the default sampling algorithm used by Stan
# may change in significant ways.
external_cpp_code = """
inline double my_func (double A, double B, std::ostream* pstream)... | 3,693 | Python | .py | 101 | 27.148515 | 85 | 0.536496 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,017 | test_extra_compile_args.py | stan-dev_pystan2/pystan/tests/test_extra_compile_args.py | import distutils.errors
import sys
import os
import unittest
import pystan
from pystan._compat import PY2
class TestExtraCompileArgs(unittest.TestCase):
def test_extra_compile_args(self):
extra_compile_args = [
'-O3',
'-ftemplate-depth-1024',
'-Wno-unused-function',
... | 4,296 | Python | .py | 107 | 27.962617 | 101 | 0.495577 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,018 | test_lookup.py | stan-dev_pystan2/pystan/tests/test_lookup.py | import unittest
import numpy as np
import pystan
class TestLookup(unittest.TestCase):
def test_lookup(self):
cbind = pystan.lookup("R.cbind")["StanFunction"]
hstack = pystan.lookup("numpy.hstack")["StanFunction"]
cbind_err = pystan.lookup("R.cbindd")["StanFunction"]
cbind_2 = pystan... | 1,160 | Python | .py | 24 | 39.625 | 71 | 0.635242 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,019 | test_basic_pars.py | stan-dev_pystan2/pystan/tests/test_basic_pars.py | import unittest
from pystan.tests.helper import get_model
import pystan
class Test8Schools(unittest.TestCase):
@classmethod
def setUpClass(cls):
schools_code = """\
data {
int<lower=0> J; // number of schools
real y[J]; // estimated treatment effects
... | 4,498 | Python | .py | 110 | 30.227273 | 80 | 0.55436 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,020 | test_optimizing_example.py | stan-dev_pystan2/pystan/tests/test_optimizing_example.py | import unittest
import numpy as np
import pystan
class TestOptimizingExample(unittest.TestCase):
"""Test optimizing example from documentation"""
@classmethod
def setUpClass(cls):
ocode = """
data {
int<lower=1> N;
real y[N];
}
parameters {
... | 694 | Python | .py | 26 | 18.653846 | 54 | 0.553707 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,021 | test_fixed_param.py | stan-dev_pystan2/pystan/tests/test_fixed_param.py | import unittest
import numpy as np
import pystan
from pystan._compat import PY2
class TestFixedParam(unittest.TestCase):
@classmethod
def setUpClass(cls):
model_code = '''
model { }
generated quantities {
real y;
y = normal_rng(0, 1);
... | 828 | Python | .py | 23 | 27.608696 | 67 | 0.579474 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,022 | test_misc_args.py | stan-dev_pystan2/pystan/tests/test_misc_args.py | import unittest
import numpy as np
import pystan
from pystan._compat import PY2
from pystan.tests.helper import get_model
class TestArgs(unittest.TestCase):
@classmethod
def setUpClass(cls):
model_code = 'parameters {real x;real y;real z;} model {x ~ normal(0,1);y ~ normal(0,1);z ~ normal(0,1);}'
... | 1,769 | Python | .py | 35 | 42.542857 | 114 | 0.686377 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,023 | test_stan_file_io.py | stan-dev_pystan2/pystan/tests/test_stan_file_io.py | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import io
import os
import tempfile
import numpy as np
from pystan import stan, stanc
class TestStanFileIO(unittest.TestCase):
def test_stan_model_from_file(self):
bernoulli_model_code = """
d... | 2,640 | Python | .py | 65 | 31.584615 | 82 | 0.544709 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,024 | test_rstan_testoptim.py | stan-dev_pystan2/pystan/tests/test_rstan_testoptim.py | import logging
import unittest
import numpy as np
import pystan
from pystan.tests.helper import get_model
class TestOptim(unittest.TestCase):
@classmethod
def setUpClass(cls):
stdnorm = """
data {
int N;
real y[N];
}
parameters {
real mu;
real... | 2,501 | Python | .py | 63 | 30.238095 | 91 | 0.564483 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,025 | helper.py | stan-dev_pystan2/pystan/tests/helper.py | import os
import pickle
import bz2
import pystan
from pystan._compat import PY2
def get_bz2_open():
if PY2:
bz2_open = bz2.BZ2File
else:
bz2_open = bz2.open
return bz2_open
def load_model(path):
_, ext = os.path.splitext(path)
if ext != '.bz2':
path = path + ".bz2"
bz... | 1,359 | Python | .py | 46 | 24.152174 | 78 | 0.623565 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,026 | test_vb.py | stan-dev_pystan2/pystan/tests/test_vb.py | import os
import unittest
import tempfile
import pystan
from pystan.tests.helper import get_model
class TestNormalVB(unittest.TestCase):
seed = 1
@classmethod
def setUpClass(cls):
model_code = 'parameters {real x;real y;real z;} model {x ~ normal(0,1);y ~ normal(0,1);z ~ normal(0,1);}'
c... | 2,367 | Python | .py | 48 | 41.604167 | 117 | 0.656994 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,027 | test_stanc.py | stan-dev_pystan2/pystan/tests/test_stanc.py | import unittest
import os
from pystan import stanc, StanModel
from pystan._compat import PY2
class TestStanc(unittest.TestCase):
def test_stanc(self):
model_code = 'parameters {real y;} model {y ~ normal(0,1);}'
result = stanc(model_code=model_code)
desired = sorted({"status", "model_cpp... | 2,667 | Python | .py | 49 | 45.836735 | 133 | 0.647893 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,028 | test_pickle.py | stan-dev_pystan2/pystan/tests/test_pickle.py | import io
import os
import pickle
import sys
import tempfile
import unittest
import numpy as np
import pystan
from pystan.tests.helper import get_model
from pystan.experimental import unpickle_fit
class TestPickle(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.pickle_file = os.path.join(te... | 4,607 | Python | .py | 108 | 33.935185 | 117 | 0.625642 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,029 | test_rstan_getting_started.py | stan-dev_pystan2/pystan/tests/test_rstan_getting_started.py | import tempfile
import unittest
import numpy as np
import pystan
from pystan.tests.helper import get_model
def validate_data(fit):
la = fit.extract(permuted=True) # return a dictionary of arrays
mu, tau, eta, theta = la['mu'], la['tau'], la['eta'], la['theta']
np.testing.assert_equal(mu.shape, (2000,))... | 2,883 | Python | .py | 76 | 29.776316 | 77 | 0.589394 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,030 | test_rstan_stanfit.py | stan-dev_pystan2/pystan/tests/test_rstan_stanfit.py | import unittest
import numpy as np
from pystan import StanModel, stan
from pystan._compat import PY2
from pystan.tests.helper import get_model
# REF: rstan/tests/unitTests/runit.test.stanfit.R
class TestStanfit(unittest.TestCase):
def test_init_zero_exception_inf_grad(self):
code = """
paramete... | 3,510 | Python | .py | 85 | 29.964706 | 109 | 0.505858 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,031 | test_unconstrain_pars.py | stan-dev_pystan2/pystan/tests/test_unconstrain_pars.py | import unittest
import pystan
from pystan._compat import PY2
class TestUnconstrainPars(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.model = pystan.StanModel(model_code="parameters { real x; } model { }")
def test_unconstrain_pars(self):
data, seed = {}, 1
fit = self... | 541 | Python | .py | 13 | 35.307692 | 86 | 0.705545 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,032 | enum.py | stan-dev_pystan2/pystan/external/enum/enum.py | """Python Enumerations"""
import sys as _sys
__all__ = ['Enum', 'IntEnum', 'unique']
pyver = float('%s.%s' % _sys.version_info[:2])
try:
any
except NameError:
def any(iterable):
for element in iterable:
if element:
return True
return False
class _RouteClassAttri... | 27,890 | Python | .py | 626 | 33.789137 | 113 | 0.547854 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,033 | __init__.py | stan-dev_pystan2/pystan/external/enum/__init__.py | """Python Enumerations"""
import sys as _sys
__all__ = ['Enum', 'IntEnum', 'unique']
pyver = float('%s.%s' % _sys.version_info[:2])
try:
any
except NameError:
def any(iterable):
for element in iterable:
if element:
return True
return False
class _RouteClassAttri... | 27,890 | Python | .py | 626 | 33.789137 | 113 | 0.547854 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,034 | mstats.py | stan-dev_pystan2/pystan/external/scipy/mstats.py | """
mquantiles function from scipy
scipy commit: 195569e91b0708aae26ea74581d03d3ca279117e
:author: Pierre GF Gerard-Marchant
:contact: pierregm_at_uga_edu
scipy is distributed under a BSD license
"""
import numpy as np
import numpy.ma as ma
from numpy.ma import masked, nomask
def mquantiles(a, prob=list([.25,.5,.7... | 4,996 | Python | .py | 127 | 30.96063 | 77 | 0.515564 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,035 | trace.py | stan-dev_pystan2/pystan/external/pymc/trace.py | # mock out pymc classes for now
MultiTrace = type(None)
| 56 | Python | .py | 2 | 27 | 31 | 0.777778 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,036 | plots.py | stan-dev_pystan2/pystan/external/pymc/plots.py | # pymc git commit: 6115726122d46267c86d16de635941daa37eb357
# =======
# License
# =======
#
# PyMC is distributed under the Apache License, Version 2.0
#
# Copyright (c) 2006 Christopher J. Fonnesbeck (Academic Free License)
# Copyright (c) 2007-2008 Christopher J. Fonnesbeck, Anand Prabhakar Patil, David Huard (Academ... | 13,334 | Python | .py | 351 | 26.948718 | 149 | 0.528273 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,037 | __init__.py | stan-dev_pystan2/pystan/experimental/__init__.py | import logging
from .misc import fix_include
from .pickling_tools import unpickle_fit
logger = logging.getLogger('pystan')
logger.warning("This submodule contains experimental code, please use with caution")
| 209 | Python | .py | 5 | 40.6 | 84 | 0.832512 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,038 | pickling_tools.py | stan-dev_pystan2/pystan/experimental/pickling_tools.py | """Experimental module to load fit without model instance."""
from distutils.core import Extension
from Cython.Build.Inline import _get_build_extension
from Cython.Build.Dependencies import cythonize
import tempfile
import logging
import io
import os
import string
import numpy as np
import pickle
import pystan
import p... | 7,885 | Python | .py | 206 | 29.135922 | 102 | 0.582984 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,039 | misc.py | stan-dev_pystan2/pystan/experimental/misc.py | import logging
import re
import os
logger = logging.getLogger('pystan')
def fix_include(model_code):
"""Reformat `model_code` (remove whitespace) around the #include statements.
Note
----
A modified `model_code` is returned.
Parameters
----------
model_code : str
Model co... | 957 | Python | .py | 32 | 24.15625 | 80 | 0.608213 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,040 | differences_pystan_rstan.rst | stan-dev_pystan2/doc/differences_pystan_rstan.rst | .. _differences-pystan-rstan:
.. currentmodule:: pystan
======================================
Differences between PyStan and RStan
======================================
While PyStan attempts to maintain API compatibility with RStan, there are
certain unavoidable differences between Python and R.
Methods and attr... | 2,128 | Python | .py | 62 | 29.693548 | 79 | 0.612475 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,041 | conf.py | stan-dev_pystan2/doc/conf.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# PyStan documentation build configuration file, created by
# sphinx-quickstart on Fri May 24 13:36:04 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | 10,880 | Python | .py | 264 | 39.113636 | 79 | 0.713783 | stan-dev/pystan2 | 921 | 191 | 0 | GPL-3.0 | 9/5/2024, 5:13:50 PM (Europe/Amsterdam) |
28,042 | setup.py | arsenetar_dupeguru/setup.py | from setuptools import setup, Extension
from pathlib import Path
exts = [
Extension(
"core.pe._block",
[
str(Path("core", "pe", "modules", "block.c")),
str(Path("core", "pe", "modules", "common.c")),
],
include_dirs=[str(Path("core", "pe", "modules"))],
)... | 754 | Python | .py | 23 | 25.913043 | 80 | 0.519231 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,043 | run.py | arsenetar_dupeguru/run.py | #!/usr/bin/python3
# Copyright 2017 Virgil Dupras
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
import sys
import os.path as op
import gc
from PyQt5.Qt... | 2,628 | Python | .py | 72 | 32.666667 | 100 | 0.741732 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,044 | build.py | arsenetar_dupeguru/build.py | # Copyright 2017 Virgil Dupras
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from pathlib import Path
import sys
from optparse import OptionParser
impor... | 4,878 | Python | .py | 141 | 29.028369 | 120 | 0.645873 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,045 | copyright | arsenetar_dupeguru/pkg/debian/copyright | Copyright 2014 Hardcoded Software Inc. (http://www.hardcoded.net)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list o... | 1,757 | Python | .py | 8 | 216.25 | 755 | 0.813288 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,046 | build_pe_modules.py | arsenetar_dupeguru/pkg/debian/build_pe_modules.py | import sys
import os
import os.path as op
import shutil
import importlib
from setuptools import setup, Extension
sys.path.insert(1, op.abspath("src"))
from hscommon.build import move_all
exts = [
Extension("_block", [op.join("modules", "block.c"), op.join("modules", "common.c")]),
Extension("_cache", [op.jo... | 666 | Python | .py | 20 | 31.1 | 89 | 0.657321 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,047 | progress_window.py | arsenetar_dupeguru/qt/progress_window.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import Qt, QTimer
from Py... | 3,337 | Python | .py | 74 | 35.635135 | 100 | 0.641254 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,048 | ignore_list_table.py | arsenetar_dupeguru/qt/ignore_list_table.py | # Created On: 2012-03-13
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from qt.column imp... | 529 | Python | .py | 14 | 34.5 | 89 | 0.727984 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,049 | directories_model.py | arsenetar_dupeguru/qt/directories_model.py | # Created By: Virgil Dupras
# Created On: 2009-04-25
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 5,614 | Python | .py | 134 | 33.701493 | 116 | 0.647102 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,050 | preferences_dialog.py | arsenetar_dupeguru/qt/preferences_dialog.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import Qt, QSize, pyqtSlo... | 20,141 | Python | .py | 402 | 40.920398 | 119 | 0.691656 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,051 | util.py | arsenetar_dupeguru/qt/util.py | # Created By: Virgil Dupras
# Created On: 2011-02-01
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 5,781 | Python | .py | 135 | 36.740741 | 97 | 0.695196 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,052 | recent.py | arsenetar_dupeguru/qt/recent.py | # Created By: Virgil Dupras
# Created On: 2009-11-12
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 2,835 | Python | .py | 75 | 30.52 | 89 | 0.648304 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,053 | exclude_list_table.py | arsenetar_dupeguru/qt/exclude_list_table.py | # This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QFont, QFontMetrics, QIcon, QColor
from qt.column impor... | 2,560 | Python | .py | 55 | 37.363636 | 106 | 0.630461 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,054 | tree_model.py | arsenetar_dupeguru/qt/tree_model.py | # Created By: Virgil Dupras
# Created On: 2009-09-14
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 6,250 | Python | .py | 146 | 34.082192 | 101 | 0.631423 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,055 | problem_dialog.py | arsenetar_dupeguru/qt/problem_dialog.py | # Created By: Virgil Dupras
# Created On: 2010-04-12
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 3,069 | Python | .py | 70 | 36.957143 | 89 | 0.716148 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,056 | about_box.py | arsenetar_dupeguru/qt/about_box.py | # Created By: Virgil Dupras
# Created On: 2009-05-09
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 3,435 | Python | .py | 70 | 41.6 | 120 | 0.694875 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,057 | result_window.py | arsenetar_dupeguru/qt/result_window.py | # Created By: Virgil Dupras
# Created On: 2009-04-25
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 19,339 | Python | .py | 460 | 30.923913 | 102 | 0.617745 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,058 | app.py | arsenetar_dupeguru/qt/app.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
import sys
import os.path as op
from PyQt5... | 19,602 | Python | .py | 396 | 39.356061 | 120 | 0.654153 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,059 | details_dialog.py | arsenetar_dupeguru/qt/details_dialog.py | # Created By: Virgil Dupras
# Created On: 2010-02-05
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 3,489 | Python | .py | 71 | 40.830986 | 97 | 0.684767 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,060 | column.py | arsenetar_dupeguru/qt/column.py | # Created By: Virgil Dupras
# Created On: 2009-11-25
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 4,521 | Python | .py | 96 | 38.114583 | 106 | 0.661301 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,061 | details_table.py | arsenetar_dupeguru/qt/details_table.py | # Created By: Virgil Dupras
# Created On: 2009-05-17
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 3,369 | Python | .py | 76 | 36.236842 | 104 | 0.660464 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,062 | error_report_dialog.py | arsenetar_dupeguru/qt/error_report_dialog.py | # Created By: Virgil Dupras
# Created On: 2009-05-23
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 3,938 | Python | .py | 84 | 39.738095 | 120 | 0.700156 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,063 | selectable_list.py | arsenetar_dupeguru/qt/selectable_list.py | # Created By: Virgil Dupras
# Created On: 2011-09-06
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 3,348 | Python | .py | 81 | 33.679012 | 116 | 0.661638 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,064 | table.py | arsenetar_dupeguru/qt/table.py | # Created By: Virgil Dupras
# Created On: 2009-11-01
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 5,600 | Python | .py | 134 | 33.58209 | 116 | 0.652757 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,065 | platform.py | arsenetar_dupeguru/qt/platform.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
import os.path as op
from hscommon.plat imp... | 1,124 | Python | .py | 28 | 36.607143 | 92 | 0.682525 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,066 | prioritize_dialog.py | arsenetar_dupeguru/qt/prioritize_dialog.py | # Created By: Virgil Dupras
# Created On: 2011-09-06
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 6,311 | Python | .py | 131 | 40.549618 | 101 | 0.718527 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,067 | search_edit.py | arsenetar_dupeguru/qt/search_edit.py | # Created By: Virgil Dupras
# Created On: 2009-12-10
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 4,460 | Python | .py | 97 | 37.814433 | 94 | 0.661751 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,068 | stats_label.py | arsenetar_dupeguru/qt/stats_label.py | # Created By: Virgil Dupras
# Created On: 2010-02-12
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 539 | Python | .py | 14 | 34.428571 | 89 | 0.710728 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,069 | preferences.py | arsenetar_dupeguru/qt/preferences.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtWidgets import QApplication, Q... | 15,700 | Python | .py | 316 | 40.835443 | 120 | 0.661845 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,070 | deletion_options.py | arsenetar_dupeguru/qt/deletion_options.py | # Created By: Virgil Dupras
# Created On: 2012-05-30
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 3,578 | Python | .py | 72 | 42.097222 | 94 | 0.70329 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,071 | directories_dialog.py | arsenetar_dupeguru/qt/directories_dialog.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import QRect, Qt
from PyQ... | 15,794 | Python | .py | 329 | 38.732523 | 114 | 0.68607 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,072 | problem_table.py | arsenetar_dupeguru/qt/problem_table.py | # Created By: Virgil Dupras
# Created On: 2010-04-12
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 727 | Python | .py | 18 | 36.277778 | 89 | 0.700709 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,073 | results_model.py | arsenetar_dupeguru/qt/results_model.py | # Created By: Virgil Dupras
# Created On: 2009-04-23
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 4,212 | Python | .py | 102 | 32.617647 | 98 | 0.638964 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,074 | ignore_list_dialog.py | arsenetar_dupeguru/qt/ignore_list_dialog.py | # Created By: Virgil Dupras
# Created On: 2012-03-13
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 2,502 | Python | .py | 56 | 38.25 | 98 | 0.723544 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,075 | tabbed_window.py | arsenetar_dupeguru/qt/tabbed_window.py | # This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import QRect, pyqtSlot, Qt, QEvent
from PyQt5.QtWidgets import (
QWidget,
QVBoxLay... | 14,307 | Python | .py | 319 | 35.818182 | 110 | 0.666403 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,076 | radio_box.py | arsenetar_dupeguru/qt/radio_box.py | # Created On: 2010-06-02
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore ... | 2,873 | Python | .py | 75 | 30.253333 | 95 | 0.628725 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,077 | exclude_list_dialog.py | arsenetar_dupeguru/qt/exclude_list_dialog.py | # This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
import re
from PyQt5.QtCore import Qt, pyqtSlot
from PyQt5.QtWidgets import (
QPushButton,
QLineEdit... | 7,362 | Python | .py | 160 | 38.08125 | 120 | 0.685038 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,078 | preferences_dialog.py | arsenetar_dupeguru/qt/pe/preferences_dialog.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from hscommon.trans import trget
from hsco... | 3,875 | Python | .py | 64 | 52.8125 | 115 | 0.740789 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,079 | block.pyi | arsenetar_dupeguru/qt/pe/block.pyi | from typing import Tuple, List, Union
from PyQt5.QtGui import QImage
_block = Tuple[int, int, int]
def getblock(image: QImage) -> _block: ... # noqa: E302
def getblocks(image: QImage, block_count_per_side: int) -> Union[List[_block], None]: ...
| 248 | Python | .py | 5 | 48.2 | 89 | 0.709544 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,080 | block.py | arsenetar_dupeguru/qt/pe/block.py | # Created By: Virgil Dupras
# Created On: 2009-05-10
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 1,562 | Python | .py | 40 | 38 | 89 | 0.603289 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,081 | details_dialog.py | arsenetar_dupeguru/qt/pe/details_dialog.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import Qt, QSize, pyqtSig... | 6,224 | Python | .py | 120 | 43.758333 | 94 | 0.709847 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,082 | image_viewer.py | arsenetar_dupeguru/qt/pe/image_viewer.py | # This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import QObject, Qt, QSize, QRectF, QPointF, QPoint, pyqtSlot, pyqtSignal, QEvent
from PyQt... | 51,061 | Python | .py | 1,148 | 34.930314 | 119 | 0.662765 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,083 | photo.py | arsenetar_dupeguru/qt/pe/photo.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
import logging
from PyQt5.QtGui import QIm... | 2,767 | Python | .py | 65 | 30.753846 | 98 | 0.567347 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,084 | results_model.py | arsenetar_dupeguru/qt/pe/results_model.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from qt.column import Column
from qt.result... | 898 | Python | .py | 20 | 39.35 | 89 | 0.700571 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,085 | preferences_dialog.py | arsenetar_dupeguru/qt/me/preferences_dialog.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import QSize
from PyQt5.Q... | 5,113 | Python | .py | 101 | 42.762376 | 101 | 0.718369 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,086 | details_dialog.py | arsenetar_dupeguru/qt/me/details_dialog.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import QSize
from PyQt5.Q... | 949 | Python | .py | 21 | 40.714286 | 89 | 0.771398 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,087 | results_model.py | arsenetar_dupeguru/qt/me/results_model.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from qt.column import Column
from qt.result... | 1,286 | Python | .py | 29 | 37.724138 | 89 | 0.669856 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,088 | preferences_dialog.py | arsenetar_dupeguru/qt/se/preferences_dialog.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import QSize
from PyQt5.Q... | 6,728 | Python | .py | 124 | 46.112903 | 105 | 0.734001 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,089 | details_dialog.py | arsenetar_dupeguru/qt/se/details_dialog.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from PyQt5.QtCore import QSize
from PyQt5.Q... | 947 | Python | .py | 21 | 40.619048 | 89 | 0.770901 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,090 | results_model.py | arsenetar_dupeguru/qt/se/results_model.py | # Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from qt.column import Column
from qt.result... | 840 | Python | .py | 19 | 38.842105 | 89 | 0.701711 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,091 | trans.py | arsenetar_dupeguru/hscommon/trans.py | # Created By: Virgil Dupras
# Created On: 2010-06-23
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 5,015 | Python | .py | 139 | 29.71223 | 98 | 0.636082 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,092 | loc.py | arsenetar_dupeguru/hscommon/loc.py | import os
import os.path as op
import shutil
import tempfile
from typing import Any, List
import polib
from hscommon import pygettext
LC_MESSAGES = "LC_MESSAGES"
def get_langs(folder: str) -> List[str]:
return [name for name in os.listdir(folder) if op.isdir(op.join(folder, name))]
def files_with_ext(folder:... | 3,602 | Python | .py | 84 | 35.916667 | 100 | 0.657421 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,093 | pygettext.py | arsenetar_dupeguru/hscommon/pygettext.py | # This module was taken from CPython's Tools/i18n and dirtily hacked to bypass the need for cmdline
# invocation.
# Originally written by Barry Warsaw <barry@zope.com>
#
# Minimally patched to make it even more xgettext compatible
# by Peter Funk <pf@artcom-gmbh.de>
#
# 2002-11-22 Jürgen Hermann <jh@web.de>
# Added c... | 12,539 | Python | .py | 329 | 28.300912 | 104 | 0.559257 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,094 | sphinxgen.py | arsenetar_dupeguru/hscommon/sphinxgen.py | # Copyright 2018 Virgil Dupras
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from pathlib import Path
import re
from typing import Callable, Dict, Union... | 2,969 | Python | .py | 66 | 40.151515 | 113 | 0.687975 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,095 | util.py | arsenetar_dupeguru/hscommon/util.py | # Created By: Virgil Dupras
# Created On: 2011-01-11
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 10,435 | Python | .py | 259 | 34.332046 | 111 | 0.628461 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,096 | path.py | arsenetar_dupeguru/hscommon/path.py | # Created By: Virgil Dupras
# Created On: 2006/02/21
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3... | 1,892 | Python | .py | 42 | 38.952381 | 97 | 0.651961 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,097 | plat.py | arsenetar_dupeguru/hscommon/plat.py | # Created On: 2011/09/22
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
# Yes, I know, the... | 675 | Python | .py | 13 | 50.692308 | 98 | 0.760243 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,098 | desktop.py | arsenetar_dupeguru/hscommon/desktop.py | # Created By: Virgil Dupras
# Created On: 2013-10-12
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
#
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-... | 3,091 | Python | .py | 73 | 36.136986 | 99 | 0.679025 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |
28,099 | conflict.py | arsenetar_dupeguru/hscommon/conflict.py | # Created By: Virgil Dupras
# Created On: 2008-01-08
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3... | 2,971 | Python | .py | 64 | 41.5 | 98 | 0.682825 | arsenetar/dupeguru | 5,226 | 412 | 427 | GPL-3.0 | 9/5/2024, 5:13:58 PM (Europe/Amsterdam) |