repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/strhub/models/trba/transformation.py
strhub/models/trba/transformation.py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class TPS_SpatialTransformerNetwork(nn.Module): """ Rectification Network of RARE, namely TPS based STN """ def __init__(self, F, I_size, I_r_size, I_channel_num=1): """ Based on RARE TPS input: ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/strhub/data/module.py
strhub/data/module.py
# Scene Text Recognition Model Hub # Copyright 2022 Darwin Bautista # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/strhub/data/dataset.py
strhub/data/dataset.py
# Scene Text Recognition Model Hub # Copyright 2022 Darwin Bautista # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/strhub/data/utils.py
strhub/data/utils.py
# Scene Text Recognition Model Hub # Copyright 2022 Darwin Bautista # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/strhub/data/__init__.py
strhub/data/__init__.py
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/strhub/data/aa_overrides.py
strhub/data/aa_overrides.py
# Scene Text Recognition Model Hub # Copyright 2022 Darwin Bautista # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/strhub/data/augment.py
strhub/data/augment.py
# Scene Text Recognition Model Hub # Copyright 2022 Darwin Bautista # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/mlt19_converter.py
tools/mlt19_converter.py
#!/usr/bin/env python3 import sys root = sys.argv[1] with open(root + '/gt.txt', 'r') as f: d = f.readlines() with open(root + '/lmdb.txt', 'w') as f: for line in d: img, script, label = line.split(',', maxsplit=2) label = label.strip() if label and script in ['Latin', 'Symbols']: ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/create_lmdb_dataset.py
tools/create_lmdb_dataset.py
#!/usr/bin/env python3 """ a modified version of CRNN torch repository https://github.com/bgshih/crnn/blob/master/tool/create_dataset.py """ import io import os import fire import lmdb import numpy as np from PIL import Image def checkImageIsValid(imageBin): if imageBin is None: return False img = Im...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/case_sensitive_str_datasets_converter.py
tools/case_sensitive_str_datasets_converter.py
#!/usr/bin/env python3 import os.path import sys from pathlib import Path d = sys.argv[1] p = Path(d) gt = [] num_samples = len(list(p.glob('label/*.txt'))) ext = 'jpg' if p.joinpath('IMG', '1.jpg').is_file() else 'png' for i in range(1, num_samples + 1): img = p.joinpath('IMG', f'{i}.{ext}') name = os.pat...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/lsvt_converter.py
tools/lsvt_converter.py
#!/usr/bin/env python3 import argparse import os import os.path as osp import re from functools import partial import mmcv import numpy as np from PIL import Image from mmocr.utils.fileio import list_to_file def parse_args(): parser = argparse.ArgumentParser( description='Generate training set of LSVT ' ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/coco_2_converter.py
tools/coco_2_converter.py
#!/usr/bin/env python3 import argparse import html import math import os import os.path as osp from functools import partial import mmcv from PIL import Image from mmocr.utils.fileio import list_to_file def parse_args(): parser = argparse.ArgumentParser( description='Generate training and validation set ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/test_abinet_lm_acc.py
tools/test_abinet_lm_acc.py
#!/usr/bin/env python3 import argparse import string import sys import torch import torch.nn.functional as F from torch import Tensor from torch.nn.utils.rnn import pad_sequence from tqdm import tqdm from strhub.data.module import SceneTextDataModule from strhub.models.abinet.system import ABINet sys.path.insert(0,...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/textocr_converter.py
tools/textocr_converter.py
#!/usr/bin/env python3 # Copyright (c) OpenMMLab. All rights reserved. import argparse import math import os import os.path as osp from functools import partial import mmcv import numpy as np from PIL import Image from mmocr.utils.fileio import list_to_file def parse_args(): parser = argparse.ArgumentParser( ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/filter_lmdb.py
tools/filter_lmdb.py
#!/usr/bin/env python3 import io import os from argparse import ArgumentParser import numpy as np import lmdb from PIL import Image def main(): parser = ArgumentParser() parser.add_argument('inputs', nargs='+', help='Path to input LMDBs') parser.add_argument('--output', help='Path to output LMDB') pa...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/openvino_converter.py
tools/openvino_converter.py
#!/usr/bin/env python3 import math import os import os.path as osp from argparse import ArgumentParser from functools import partial import mmcv from PIL import Image from mmocr.utils.fileio import list_to_file def parse_args(): parser = ArgumentParser(description='Generate training and validation set ' ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/coco_text_converter.py
tools/coco_text_converter.py
#!/usr/bin/env python3 for s in ['train', 'val']: with open('{}_words_gt.txt'.format(s), 'r', encoding='utf8') as f: d = f.readlines() with open('{}_lmdb.txt'.format(s), 'w', encoding='utf8') as f: for line in d: try: fname, label = line.split(',', maxsplit=1) ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
VamosC/CLIP4STR
https://github.com/VamosC/CLIP4STR/blob/7497c15d0e6d645e3dfa8c646b31e72153ece2a6/tools/art_converter.py
tools/art_converter.py
#!/usr/bin/env python3 import json with open('train_task2_labels.json', 'r', encoding='utf8') as f: d = json.load(f) with open('gt.txt', 'w', encoding='utf8') as f: for k, v in d.items(): if len(v) != 1: print('error', v) v = v[0] if v['language'].lower() != 'latin': ...
python
Apache-2.0
7497c15d0e6d645e3dfa8c646b31e72153ece2a6
2026-01-05T07:12:52.632396Z
false
bharadwaj-raju/cligenerator
https://github.com/bharadwaj-raju/cligenerator/blob/9b61832311dab3fcd0146195a063667a4440578b/setup.py
setup.py
from distutils.core import setup import subprocess as sp version = '1.0.2' setup( name='cligenerator', packages=['cligenerator'], version=version, description='Generate CLI tools from Python modules and functions', author='Bharadwaj Raju', author_email='bharadwaj.raju777@gmail.com', url='https://github.com/bha...
python
MIT
9b61832311dab3fcd0146195a063667a4440578b
2026-01-05T07:12:53.345874Z
false
bharadwaj-raju/cligenerator
https://github.com/bharadwaj-raju/cligenerator/blob/9b61832311dab3fcd0146195a063667a4440578b/cligenerator/cligenerator.py
cligenerator/cligenerator.py
# coding: utf-8 # Licensed under the MIT license (see the LICENSE file or the text below) # This file is part of cligenerator — generate CLI tools from Python libraries # — also known as "CLI Generator" and "CLIGenerator" and "cli-generator" # Copyright © 2016 Bharadwaj Raju # Permission is hereby granted, free of ...
python
MIT
9b61832311dab3fcd0146195a063667a4440578b
2026-01-05T07:12:53.345874Z
false
bharadwaj-raju/cligenerator
https://github.com/bharadwaj-raju/cligenerator/blob/9b61832311dab3fcd0146195a063667a4440578b/cligenerator/__init__.py
cligenerator/__init__.py
from .cligenerator import CLIGenerator
python
MIT
9b61832311dab3fcd0146195a063667a4440578b
2026-01-05T07:12:53.345874Z
false
bharadwaj-raju/cligenerator
https://github.com/bharadwaj-raju/cligenerator/blob/9b61832311dab3fcd0146195a063667a4440578b/tests/mymodule.py
tests/mymodule.py
# A simple module def greet(hello='Hello', world='World!'): return hello + ', ' + world def tab(text): return '\t' + text def untab(text): return text.lstrip('\\t').lstrip()
python
MIT
9b61832311dab3fcd0146195a063667a4440578b
2026-01-05T07:12:53.345874Z
false
bharadwaj-raju/cligenerator
https://github.com/bharadwaj-raju/cligenerator/blob/9b61832311dab3fcd0146195a063667a4440578b/tests/cli_func.py
tests/cli_func.py
import argparse import sys def my_function(a, b=3): return int(a) + int(b) def __my_functionCLI(): parser = argparse.ArgumentParser(description='A CLI tool for my_function') parser.add_argument('a') parser.add_argument('--b', type=int, default=3) args = parser.parse_args() try: print(test_function.my...
python
MIT
9b61832311dab3fcd0146195a063667a4440578b
2026-01-05T07:12:53.345874Z
false
bharadwaj-raju/cligenerator
https://github.com/bharadwaj-raju/cligenerator/blob/9b61832311dab3fcd0146195a063667a4440578b/tests/context.py
tests/context.py
import sys sys.path.insert(0, '..') import cligenerator
python
MIT
9b61832311dab3fcd0146195a063667a4440578b
2026-01-05T07:12:53.345874Z
false
bharadwaj-raju/cligenerator
https://github.com/bharadwaj-raju/cligenerator/blob/9b61832311dab3fcd0146195a063667a4440578b/tests/test_function.py
tests/test_function.py
from context import cligenerator import subprocess as sp import mymodule import sys import inspect def my_function(a, b=3): return int(a) + int(b) def test_create_cli(): print('\nCreating CLI for my_function.') print(inspect.getsource(my_function)) cligen = cligenerator.CLIGenerator(my_function) with open('c...
python
MIT
9b61832311dab3fcd0146195a063667a4440578b
2026-01-05T07:12:53.345874Z
false
bharadwaj-raju/cligenerator
https://github.com/bharadwaj-raju/cligenerator/blob/9b61832311dab3fcd0146195a063667a4440578b/tests/test_module.py
tests/test_module.py
from context import cligenerator import subprocess as sp import mymodule import sys def test_create_cli(): print('\nCreating CLI for mymodule ({}).'.format(mymodule.__file__)) cligen = cligenerator.CLIGenerator(mymodule) with open('cli_module.py', 'w') as f: f.write(cligen.generate()) def test_cli_greet(): ...
python
MIT
9b61832311dab3fcd0146195a063667a4440578b
2026-01-05T07:12:53.345874Z
false
bharadwaj-raju/cligenerator
https://github.com/bharadwaj-raju/cligenerator/blob/9b61832311dab3fcd0146195a063667a4440578b/tests/cli_module.py
tests/cli_module.py
import argparse import sys import mymodule class MymoduleCLI(object): def __init__(self): parser = argparse.ArgumentParser( description='A CLI tool for mymodule', formatter_class=argparse.RawTextHelpFormatter, usage='%(prog)s command options', allow_abbrev=False) parser.add_argument('command', help...
python
MIT
9b61832311dab3fcd0146195a063667a4440578b
2026-01-05T07:12:53.345874Z
false
Akascape/Ascify-Art
https://github.com/Akascape/Ascify-Art/blob/202a6d894bcce7cc54ace8ae987e0663f743675d/ascify art/Ascify-Art.py
ascify art/Ascify-Art.py
""" ╔═══╗ ╔═╗ ╔═══╗ ╔╗ ║╔═╗║ ║╔╝ ║╔═╗║ ╔╝╚╗ ║║ ║║╔══╗╔══╗╔╗╔╝╚╗╔╗ ╔╗ ║║ ║║╔═╗╚╗╔╝ ║╚═╝║║══╣║╔═╝╠╣╚╗╔╝║║ ║║ ║╚═╝║║╔╝ ║║ ║╔═╗║╠══║║╚═╗║║ ║║ ║╚═╝║ ║╔═╗║║║ ║╚╗ ╚╝ ╚╝╚══╝╚══╝╚╝ ╚╝ ╚═╗╔╝ ╚╝ ╚╝╚╝ ╚═╝ ╔═╝║ ╚══╝ Version: 0.9 Developer:...
python
MIT
202a6d894bcce7cc54ace8ae987e0663f743675d
2026-01-05T07:12:54.801288Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/setup.py
setup.py
from setuptools import setup, find_packages version = '1.2' with open("README.md", "r") as fh: long_description = fh.read() setup( name='qtwidgets', version=version, author='Martin Fitzpatrick', author_email='martin.fitzpatrick@gmail.com', description='Custom widget library for PyQt6, PyQt5, ...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/__init__.py
qtwidgets/__init__.py
from .colorbutton import ColorButton # from color_duo # from equalizer from .equalizer_bar import EqualizerBar # from filebrowser from .gradient import Gradient from .paint import Paint from .passwordedit import PasswordEdit from .power_bar import PowerBar from .palette import PaletteGrid, PaletteHorizontal, PaletteVer...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/equalizer_bar/equalizer_bar.py
qtwidgets/equalizer_bar/equalizer_bar.py
import sys from qtpy import QtCore, QtGui, QtWidgets from qtpy.QtCore import Qt from qtpy.QtCore import Signal class EqualizerBar(QtWidgets.QWidget): def __init__(self, bars, steps, *args, **kwargs): super().__init__(*args, **kwargs) self.setSizePolicy( QtWidgets.QSizePolicy.Minimum...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/equalizer_bar/demo.py
qtwidgets/equalizer_bar/demo.py
from qtpy import QtCore, QtWidgets from qtwidgets import EqualizerBar import random class Window(QtWidgets.QMainWindow): def __init__(self): super().__init__() self.equalizer = EqualizerBar(5, ['#0C0786', '#40039C', '#6A00A7', '#8F0DA3', '#B02A8F', '#CA4678', '#E06461', ...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/equalizer_bar/__init__.py
qtwidgets/equalizer_bar/__init__.py
from .equalizer_bar import EqualizerBar
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/palette/palette.py
qtwidgets/palette/palette.py
import sys from qtpy import QtCore, QtWidgets from qtpy.QtCore import Signal PALETTES = { # bokeh paired 12 'paired12':['#000000', '#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928', '#ffffff'], # d3 category 10 'category1...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/palette/demo.py
qtwidgets/palette/demo.py
from qtpy import QtCore, QtGui, QtWidgets from qtwidgets import PaletteGrid, PaletteHorizontal, PaletteVertical class Window(QtWidgets.QMainWindow): def __init__(self): super().__init__() palette = PaletteGrid('17undertones') # or PaletteHorizontal, or PaletteVertical palette.selected.co...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/palette/__init__.py
qtwidgets/palette/__init__.py
from .palette import PaletteGrid, PaletteHorizontal, PaletteVertical
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/paint/paint.py
qtwidgets/paint/paint.py
import sys from qtpy import QtCore, QtGui, QtWidgets from qtpy.QtCore import Qt class Paint(QtWidgets.QLabel): def __init__(self, width, height, background='white', *args, **kwargs): super().__init__(*args, **kwargs) pixmap = QtGui.QPixmap(width, height) self.setPixmap(pixmap) # ...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/paint/demo.py
qtwidgets/paint/demo.py
from qtpy import QtCore, QtGui, QtWidgets from qtwidgets import Paint class Window(QtWidgets.QMainWindow): def __init__(self): super().__init__() paint = Paint(300, 300) paint.setPenWidth(5) paint.setPenColor('#EB5160') self.setCentralWidget(paint) app = QtWidgets.QAppl...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/paint/__init__.py
qtwidgets/paint/__init__.py
from .paint import Paint
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/colorbutton/colorbutton.py
qtwidgets/colorbutton/colorbutton.py
import sys if 'PyQt5' in sys.modules: from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtCore import Qt, pyqtSignal as Signal else: from PySide2 import QtCore, QtGui, QtWidgets from PySide2.QtCore import Qt, Signal class ColorButton(QtWidgets.QPushButton): ''' Custom Qt Widget to show a...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/colorbutton/demo.py
qtwidgets/colorbutton/demo.py
from qtpy import QtWidgets from qtwidgets import ColorButton class Window(QtWidgets.QMainWindow): def __init__(self): super().__init__() palette = ColorButton(color='red') palette.colorChanged.connect(self.show_selected_color) self.setCentralWidget(palette) def show_selected...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/colorbutton/__init__.py
qtwidgets/colorbutton/__init__.py
from .colorbutton import ColorButton
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/rangeslider/demo_pyside2.py
qtwidgets/rangeslider/demo_pyside2.py
from PySide2 import QtCore, QtGui, QtWidgets from qtwidgets import RangeSlider app = QtWidgets.QApplication([]) slider = RangeSlider() slider.show() app.exec_()
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/rangeslider/demo_pyqt5.py
qtwidgets/rangeslider/demo_pyqt5.py
from PyQt5 import QtCore, QtGui, QtWidgets from qtwidgets import RangeSlider app = QtWidgets.QApplication([]) slider = RangeSlider() slider.show() app.exec_()
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/rangeslider/__init__.py
qtwidgets/rangeslider/__init__.py
from .rangeslider import RangeSlider
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/rangeslider/rangeslider.py
qtwidgets/rangeslider/rangeslider.py
import sys if "PyQt5" in sys.modules: from PyQt5 import QtCore, QtWidgets from PyQt5.QtCore import Qt, pyqtSignal as Signal else: from PySide2 import QtCore, QtWidgets, QtGui from PySide2.QtCore import Signal, Qt class RangeSlider(QtWidgets.QWidget): def __init__(self, parent=None): supe...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/toggle/toggle.py
qtwidgets/toggle/toggle.py
import sys from qtpy.QtCore import ( Qt, QSize, QPoint, QPointF, QRectF, QEasingCurve, QPropertyAnimation, QSequentialAnimationGroup, Slot, Property) from qtpy.QtWidgets import QCheckBox from qtpy.QtGui import QColor, QBrush, QPaintEvent, QPen, QPainter class Toggle(QCheckBox): _transparent_pen = ...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/toggle/demo.py
qtwidgets/toggle/demo.py
from qtpy import QtCore, QtGui, QtWidgets from toggle import Toggle, AnimatedToggle class Window(QtWidgets.QMainWindow): def __init__(self): super().__init__() toggle_1 = Toggle() toggle_2 = AnimatedToggle( checked_color="#FFB000", pulse_checked_color="#44FFB000" ...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/toggle/__init__.py
qtwidgets/toggle/__init__.py
from .toggle import Toggle, AnimatedToggle
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/passwordedit/password.py
qtwidgets/passwordedit/password.py
import os import sys from qtpy import QtCore, QtGui, QtWidgets from qtpy.QtCore import Qt, Signal folder = os.path.dirname(__file__) class PasswordEdit(QtWidgets.QLineEdit): """ Password LineEdit with icons to show/hide password entries. Based on this example https://kushaldas.in/posts/creating-password...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/passwordedit/demo.py
qtwidgets/passwordedit/demo.py
from qtpy import QtCore, QtGui, QtWidgets from qtwidgets import PasswordEdit class Window(QtWidgets.QMainWindow): def __init__(self): super().__init__() password = PasswordEdit() self.setCentralWidget(password) app = QtWidgets.QApplication([]) w = Window() w.show() app.exec_()
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/passwordedit/__init__.py
qtwidgets/passwordedit/__init__.py
from .password import PasswordEdit
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/power_bar/power_bar.py
qtwidgets/power_bar/power_bar.py
import sys from qtpy import QtCore, QtGui, QtWidgets from qtpy.QtCore import Qt from qtpy.QtCore import Signal class _Bar(QtWidgets.QWidget): clickedValue = Signal(int) def __init__(self, steps, *args, **kwargs): super().__init__(*args, **kwargs) self.setSizePolicy( QtWidgets.Q...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/power_bar/demo.py
qtwidgets/power_bar/demo.py
from qtpy import QtCore, QtGui, QtWidgets from qtwidgets import PowerBar app = QtWidgets.QApplication([]) volume = PowerBar(["#053061", "#2166ac", "#4393c3", "#92c5de", "#d1e5f0", "#f7f7f7", "#fddbc7", "#f4a582", "#d6604d", "#b2182b", "#67001f"]) volume.setBarSolidPercent(0.8) volume.setBarPadding(5) volume.show() ap...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/power_bar/__init__.py
qtwidgets/power_bar/__init__.py
from .power_bar import PowerBar
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/gradient/gradient.py
qtwidgets/gradient/gradient.py
import sys from qtpy import QtCore, QtGui, QtWidgets from qtpy.QtCore import Qt from qtpy.QtCore import Signal class Gradient(QtWidgets.QWidget): gradientChanged = Signal() def __init__(self, gradient=None, *args, **kwargs): super().__init__(*args, **kwargs) self.setSizePolicy( ...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/gradient/demo.py
qtwidgets/gradient/demo.py
from qtpy import QtCore, QtGui, QtWidgets from gradient import Gradient class Window(QtWidgets.QMainWindow): def __init__(self): super().__init__() gradient = Gradient() gradient.setGradient([(0, 'black'), (1, 'green'), (0.5, 'red')]) self.setCentralWidget(gradient) app = QtWid...
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
pythonguis/python-qtwidgets
https://github.com/pythonguis/python-qtwidgets/blob/89bd9dc53990f04a82bb27cb056f0c513e40e8b0/qtwidgets/gradient/__init__.py
qtwidgets/gradient/__init__.py
from .gradient import Gradient
python
MIT
89bd9dc53990f04a82bb27cb056f0c513e40e8b0
2026-01-05T07:12:55.329843Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/train.py
train.py
import argparse import functools import os import time from datetime import timedelta from paddle.distributed import fleet import paddle from paddle import nn from paddle.io import DataLoader from paddle.optimizer import Adam from paddle.optimizer.lr import CosineAnnealingDecay from sklearn.metrics import f1_score from...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/infer.py
infer.py
import argparse import functools from utils.predictor import PunctuationExecutor from utils.utils import add_arguments, print_arguments parser = argparse.ArgumentParser(description=__doc__) add_arg = functools.partial(add_arguments, argparser=parser) add_arg('text', str, '近几年不但我用书给女儿压岁也劝说亲朋不要给女儿压岁钱而改送压...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/eval.py
eval.py
import argparse import functools import os import paddle from paddle import nn from paddle.io import DataLoader from sklearn.metrics import f1_score from utils.logger import setup_logger from utils.model import ErnieLinear from utils.reader import PuncDatasetFromErnieTokenizer, collate_fn from utils.utils import add_...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/export_model.py
export_model.py
import argparse import functools import os import shutil import paddle from paddle.static import InputSpec from utils.logger import setup_logger from utils.model import ErnieLinearExport from utils.utils import add_arguments, print_arguments logger = setup_logger(__name__) parser = argparse.ArgumentParser(descript...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/clear_data.py
clear_data.py
import os import random def is_chinese(text): for c in text: if u'\u4e00' <= c <= u'\u9fa5': return True return False def clear_text(src_dir, clear_file): os.makedirs(os.path.dirname(clear_file), exist_ok=True) results = [] for f in os.listdir(src_dir): with open(os.p...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/utils/predictor.py
utils/predictor.py
import json import os import re import numpy as np import paddle.inference as paddle_infer from paddlenlp.transformers import ErnieTokenizer from utils.logger import setup_logger logger = setup_logger(__name__) __all__ = ['PunctuationExecutor'] class PunctuationExecutor: def __init__(self, model_dir, use_gpu=T...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/utils/sampler.py
utils/sampler.py
import math import numpy as np from paddle.io import BatchSampler, DistributedBatchSampler __all__ = ["CustomBatchSampler", "CustomDistributedBatchSampler"] def _batch_shuffle(indices, batch_size, epoch): """将大小相似的实例放入小批量中可以提高效率,并进行批量打乱 1. 按持续时间对音频剪辑进行排序 2. 生成一个随机数k, k的范围[0,batch_size) 3. 随机移动k实例,为...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/utils/reader.py
utils/reader.py
import json import os import random import numpy as np from paddle.io import Dataset from paddlenlp.transformers import ErnieTokenizer from tqdm import tqdm from utils.logger import setup_logger logger = setup_logger(__name__) __all__ = ["PuncDatasetFromErnieTokenizer", "collate_fn"] class PuncDatasetFromErnieTok...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/utils/model.py
utils/model.py
import paddle import paddle.nn as nn from paddlenlp.transformers import ErnieForTokenClassification class ErnieLinear(nn.Layer): def __init__(self, num_classes, pretrained_token='ernie-3.0-medium-zh', **kwargs): super(ErnieLinear, self).__init__() ...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/utils/logger.py
utils/logger.py
import datetime import logging import os import sys import termcolor __all__ = ['setup_logger'] logger_initialized = [] def setup_logger(name, output=None): """ Initialize logger and set its verbosity level to INFO. Args: output (str): a file name or a directory to save log. If None, will not sa...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/utils/utils.py
utils/utils.py
import distutils.util def print_arguments(args): print("----------- Configuration Arguments -----------") for arg, value in sorted(vars(args).items()): print("%s: %s" % (arg, value)) print("------------------------------------------------") def add_arguments(argname, type, default, help, argpar...
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
yeyupiaoling/PunctuationModel
https://github.com/yeyupiaoling/PunctuationModel/blob/b16b89d906792c394f59b1f921dd561b86f81664/utils/__init__.py
utils/__init__.py
python
Apache-2.0
b16b89d906792c394f59b1f921dd561b86f81664
2026-01-05T07:12:58.138495Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/manage.py
manage.py
#!/usr/bin/env python import inspect import os import sys import dotenv def if_exists_load_env(name: str) -> None: current_frame = inspect.currentframe() if not current_frame: return inspect_file = inspect.getfile(current_frame) env_path = os.path.dirname(os.path.abspath(inspect_file)) e...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/setup.py
setup.py
#!/usr/bin/env python import io import re from pathlib import Path from setuptools import find_packages, setup this_directory = Path(__file__).parent long_description = (this_directory / "README.md").read_text() version = "" with io.open("wagtailgeowidget/__init__.py", "r", encoding="utf8") as fd: version = re....
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/test_latlng_parse.py
tests/test_latlng_parse.py
from typing import Dict, cast from django.test import SimpleTestCase from wagtailgeowidget.helpers import geosgeometry_str_to_struct class LatLngParseTestCase(SimpleTestCase): def test_that_basic_parsing_works(self): struct = geosgeometry_str_to_struct("SRID=5432;POINT(12.0 13.0)") struct = cast...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/test_widgets.py
tests/test_widgets.py
import unittest from django.test import TestCase from wagtail import VERSION as WAGTAIL_VERSION from wagtailgeowidget import app_settings, geocoders from wagtailgeowidget.widgets import ( GeocoderField, GoogleMapsField, GoogleMapsFieldAdapter, LeafletField, LeafletFieldAdapter, ) class GoogleMap...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/__init__.py
tests/__init__.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/geopage_nospatial/views.py
tests/geopage_nospatial/views.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/geopage_nospatial/admin.py
tests/geopage_nospatial/admin.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/geopage_nospatial/models.py
tests/geopage_nospatial/models.py
from django.db import models from django.utils.functional import cached_property from django.utils.translation import gettext as _ from wagtail import blocks from wagtail.admin.panels import FieldPanel, MultiFieldPanel from wagtail.fields import StreamField from wagtail.models import Page from wagtailgeowidget import ...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/geopage_nospatial/__init__.py
tests/geopage_nospatial/__init__.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/geopage_nospatial/tests.py
tests/geopage_nospatial/tests.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/geopage_nospatial/apps.py
tests/geopage_nospatial/apps.py
from django.apps import AppConfig class GeopageNospatialConfig(AppConfig): name = "tests.geopage_nospatial"
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/geopage_nospatial/migrations/0001_initial.py
tests/geopage_nospatial/migrations/0001_initial.py
# Generated by Django 4.2.23 on 2025-08-14 04:41 from django.db import migrations, models import django.db.models.deletion import wagtail.fields class Migration(migrations.Migration): initial = True dependencies = [ ("wagtailcore", "0094_alter_page_locale"), ] operations = [ migrat...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/geopage_nospatial/migrations/__init__.py
tests/geopage_nospatial/migrations/__init__.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/__init__.py
tests/examplesite/__init__.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/wsgi.py
tests/examplesite/wsgi.py
""" WSGI config for examplesite project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/urls.py
tests/examplesite/urls.py
from django.conf import settings from django.contrib import admin from django.urls import include, re_path from wagtail import urls as wagtail_urls from wagtail.admin import urls as wagtailadmin_urls from wagtail.documents import urls as wagtaildocs_urls from tests.search import views as search_views urlpatterns = [ ...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/management/__init__.py
tests/examplesite/management/__init__.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/management/commands/create_superuser_if_none_exists.py
tests/examplesite/management/commands/create_superuser_if_none_exists.py
from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand class Command(BaseCommand): """ Create superuser if none exist Example: manage.py create_superuser_if_none_exists --user=admin --password=123 """ def add_arguments(self, parser): pa...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/management/commands/__init__.py
tests/examplesite/management/commands/__init__.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/settings/dev.py
tests/examplesite/settings/dev.py
from .base import * # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "RANDOM" EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" try: from .local import * except ImportError: pass
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/settings/base_nospatial.py
tests/examplesite/settings/base_nospatial.py
from .base import * INSTALLED_APPS.remove("django.contrib.gis") INSTALLED_APPS.remove("geopage") # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "SECRET" EMAIL_BACKEND = "django.core.mail.backends.consol...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/settings/production.py
tests/examplesite/settings/production.py
from .base import * DEBUG = False try: from .local import * except ImportError: pass
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/settings/__init__.py
tests/examplesite/settings/__init__.py
import os from django.core.exceptions import ImproperlyConfigured def get_env(name, default=None): """Get the environment variable or return exception""" if name in os.environ: return os.environ[name] if default is not None: return default error_msg = "Set the {} env variable".forma...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/settings/base.py
tests/examplesite/settings/base.py
""" Django settings for examplesite project. Generated by 'django-admin startproject' using Django 1.10.6. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ # Bui...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/examplesite/settings/test.py
tests/examplesite/settings/test.py
from .base import * PASSWORD_HASHERS = ("django.contrib.auth.hashers.MD5PasswordHasher",) INSTALLED_APPS = [ "django.contrib.contenttypes", "django.contrib.auth", "django.contrib.sites", "wagtail", "wagtail.admin", "wagtail.sites", "wagtail.users", "wagtail.images", "taggit", "...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/home/models.py
tests/home/models.py
from wagtail.models import Page class HomePage(Page): pass
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/home/__init__.py
tests/home/__init__.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/home/migrations/0001_initial.py
tests/home/migrations/0001_initial.py
# Generated by Django 4.2.23 on 2025-08-14 04:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ("wagtailcore", "0094_alter_page_locale"), ] operations = [ migrations.CreateModel( ...
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/home/migrations/__init__.py
tests/home/migrations/__init__.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false
Frojd/wagtail-geo-widget
https://github.com/Frojd/wagtail-geo-widget/blob/ec36d7bfcd551fc415f50e8b27bd8d68a013c445/tests/geopage/views.py
tests/geopage/views.py
python
MIT
ec36d7bfcd551fc415f50e8b27bd8d68a013c445
2026-01-05T07:13:00.652315Z
false