<commit_before>#! /usr/bin/env python
# -*- coding:utf-8 -*- 


#
# Application to calibrate a camera
#


#
# External dependencies
#
import cv2
import numpy
import glob
import sys


# Get image file names
image_files = glob.glob( sys.argv[1] )

# Chessboard pattern
pattern_size = ( 9, 6 )
pattern_points = numpy.zeros( (numpy.prod(pattern_size), 3), numpy.float32 )
pattern_points[:,:2] = numpy.indices(pattern_size).T.reshape(-1, 2)

# Termination criteria
term = ( cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_COUNT, 30, 0.1 )

obj_points = []
img_points = []
h, w = 0, 0

# For each image<commit_msg>Change import.<commit_after>#! /usr/bin/env python
# -*- coding:utf-8 -*- 


#
# Application to calibrate a camera
#


#
# External dependencies
#
import cv2
import numpy as np
import glob
import sys


# Get image file names
image_files = glob.glob( sys.argv[1] )

# Chessboard pattern
pattern_size = ( 9, 6 )
pattern_points = np.zeros( (np.prod(pattern_size), 3), np.float32 )
pattern_points[:,:2] = np.indices(pattern_size).T.reshape(-1, 2)

# Termination criteria
term = ( cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_COUNT, 30, 0.1 )

obj_points = []
img_points = []
h, w = 0, 0

# For each image
{'fraction_non_alphanumeric': 0.13928273561301086, 'fraction_numerical': 0.0316930775646372, 'mean_word_length': 4.1063829787234045, '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': '4080479', 'n_tokens_mistral': 481, 'n_tokens_neox': 450, 'n_words': 112}