<commit_before>#!/usr/bin/env python
from __future__ import absolute_import, division, print_function
import numpy as np
# Hotspotter
from plottool import draw_func2 as df2
from plottool.viz_keypoints import show_keypoints
#from hsdev import dev_consistency
# TPL
import pyhesaff
# VTool
from os.path import join, dirname, realpath
import vtool  # NOQA
import vtool.image as gtool
import vtool.keypoint as ktool

if __name__ == '__main__':
    np.set_printoptions(threshold=5000, linewidth=5000, precision=3)
    # Read data
    print('[rotinvar] loading test data')

    img_fname = join(dirname(vtool.__file__), 'tests', 'testdata', 'jeff.png')
    img_fpath = realpath(img_fname)
    imgL = gtool.cvt_BGR2L(gtool.imread(img_fpath))<commit_msg>fixed exhaustive ori extract<commit_after>#!/usr/bin/env python
from __future__ import absolute_import, division, print_function
import numpy as np
# Hotspotter
from plottool import draw_func2 as df2
from plottool.viz_keypoints import show_keypoints
#from hsdev import dev_consistency
# TPL
import pyhesaff
# VTool
from os.path import realpath
import vtool  # NOQA
import vtool.image as gtool
import vtool.keypoint as ktool
from vtool.tests import grabdata

if __name__ == '__main__':
    np.set_printoptions(threshold=5000, linewidth=5000, precision=3)
    # Read data
    print('[rotinvar] loading test data')

    img_fname = grabdata.get_test_gpaths(names='jeff')[0]
    img_fpath = realpath(img_fname)
    imgL = gtool.cvt_BGR2L(gtool.imread(img_fpath))
{'fraction_non_alphanumeric': 0.08377659574468085, 'fraction_numerical': 0.016622340425531915, 'mean_word_length': 5.404255319148936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3389373', 'n_tokens_mistral': 547, 'n_tokens_neox': 512, 'n_words': 139}