<commit_before>#!/usr/bin/env bash

# This is a small script to stitch panorama images produced  by Samsung Gear360
# Could be adopted to use with other cameras after creating pto file
# (Hugin template)
#
# https://github.com/ultramango/gear360pano


# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in
DIR=$(dirname `which $0`)
SCRIPTNAME=$0
GALLERYDIR="html"
OUTDIR="$DIR/$GALLERYDIR/data"
OUTTMPNAME="out"
PTOTMPL_SM_C200="$DIR/gear360sm-c200.pto"
PTOTMPL_SM_R210="$DIR/gear360sm-r210.pto"
JPGQUALITY=97
PTOJPGFILENAME="dummy.jpg"
# Note, this file is inside GALLERYDIR
GALLERYFILELIST="filelist.txt"
# By default we will ignore files that have been processed
IGNOREPROCESSED="yes"
# Default blending program
BLENDPROG="enblend"
# Default - we use GPU
EXTRANONAOPTIONS="-g"
EXTRAENBLENDOPTIONS="--gpu"
# Debug, yes - print debug, empty - no debug<commit_msg>Find real script directory when run from symlink.<commit_after>#!/usr/bin/env bash

# This is a small script to stitch panorama images produced  by Samsung Gear360
# Could be adopted to use with other cameras after creating pto file
# (Hugin template)
#
# https://github.com/ultramango/gear360pano


# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in
WHICH=`which $0`
DIR=$(dirname `readlink -f $WHICH`)

SCRIPTNAME=$0
GALLERYDIR="html"
OUTDIR="$DIR/$GALLERYDIR/data"
OUTTMPNAME="out"
PTOTMPL_SM_C200="$DIR/gear360sm-c200.pto"
PTOTMPL_SM_R210="$DIR/gear360sm-r210.pto"
JPGQUALITY=97
PTOJPGFILENAME="dummy.jpg"
# Note, this file is inside GALLERYDIR
GALLERYFILELIST="filelist.txt"
# By default we will ignore files that have been processed
IGNOREPROCESSED="yes"
# Default blending program
BLENDPROG="enblend"
# Default - we use GPU
EXTRANONAOPTIONS="-g"
EXTRAENBLENDOPTIONS="--gpu"
# Debug, yes - print debug, empty - no debug
{'fraction_non_alphanumeric': 0.1202127659574468, 'fraction_numerical': 0.035106382978723406, 'mean_word_length': 5.670212765957447, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3460467', 'n_tokens_mistral': 741, 'n_tokens_neox': 664, 'n_words': 163}