<commit_before>#!/bin/sh

case "$1" in
c) 
	lang="c" ;;
cs|csharp) 
	lang="cs" ;;
*) 
	echo "Invalid output language: $1." >&2
	echo "Valid output languages: c csharp" >&2
	exit 1
	;;
esac

# Common comment
cat<<EOF
/* size check output for language $lang */
/* DO NOT MODIFY THIS FILE - MODIFY $0 and testsizes-typelist.txt instead */

EOF

# Beginning of file
case "$lang" in
c)
cat <<EOF
#include <stdio.h>

#include <gphoto2/gphoto2-port.h>

#include <gphoto2/gphoto2-camera.h>
#include <gphoto2/gphoto2-file.h>
#include <gphoto2/gphoto2-filesys.h>
#include <gphoto2/gphoto2-abilities-list.h>

int
main(void)
{
EOF
;;
cs)
cat<<EOF
using Gphoto2.Base;

class TestSizes {

  public static int Main() {
EOF<commit_msg>Use new namespace for size check: LibGPhoto2 instead of Gphoto2.Base<commit_after>#!/bin/sh

case "$1" in
c) 
	lang="c" ;;
cs|csharp) 
	lang="cs" ;;
*) 
	echo "Invalid output language: $1." >&2
	echo "Valid output languages: c csharp" >&2
	exit 1
	;;
esac

# Common comment
cat<<EOF
/* size check output for language $lang */
/* DO NOT MODIFY THIS FILE - MODIFY $0 and testsizes-typelist.txt instead */

EOF

# Beginning of file
case "$lang" in
c)
cat <<EOF
#include <stdio.h>

#include <gphoto2/gphoto2-port.h>

#include <gphoto2/gphoto2-camera.h>
#include <gphoto2/gphoto2-file.h>
#include <gphoto2/gphoto2-filesys.h>
#include <gphoto2/gphoto2-abilities-list.h>

int
main(void)
{
EOF
;;
cs)
cat<<EOF
using LibGPhoto2;

class TestSizes {

  public static int Main() {
EOF
{'fraction_non_alphanumeric': 0.14956405097250167, 'fraction_numerical': 0.02414486921529175, 'mean_word_length': 4.109589041095891, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 19, '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': '2620515', 'n_tokens_mistral': 615, 'n_tokens_neox': 590, 'n_words': 166}