<commit_before>#!/bin/bash
set -e

# Given a filename on the command-line, figure out what variant it should be packaged into.
path=$1

if [[ -z "${path}" ]]; then
    echo "Please specify package file." 1>&2
    exit 2
fi

filename=$(basename "${path}")

# Ensure the filename starts with firebase-cpp-sdk-
if [[ "${filename}" != "firebase-cpp-sdk-"* ]]; then
    echo "Can only guess variant for firebase-cpp-sdk files. ${filename}" 1>&2
    exit 2
fi

os=
arch=
arch_win=
debugmode=Release
linkage=MD
vs=VS2015

for c in $(echo "${filename}" | tr "_.-" "\n\n\n"); do
    case $c in
	ios)
	    os=ios
	;;
	android)
	    os=android
	;;
	linux)
	    os=linux
	;;
	windows)
	    os=windows
	;;
	darwin)
	    os=darwin
	;;
	x86)
	    arch=i386
	    arch_win=x86
	;;
	x64)
	    arch=x86_64<commit_msg>Add additional CPU variants.<commit_after>#!/bin/bash
set -e

# Given a filename on the command-line, figure out what variant it should be packaged into.
# For example, firebase-cpp-sdk-windows-x64-Release-static-build.tgz would be:
#   OS: Windows
#   Compiler: VS2015 (default for Windows)
#   CPU: x64
#   Debug mode: Release
#   CRT linkage: MT ("static")
# So the build variant would be: VS2015/MT/x64/Release

path=$1

if [[ -z "${path}" ]]; then
    echo "Please specify package file." 1>&2
    exit 2
fi

filename=$(basename "${path}")

# Ensure the filename starts with firebase-cpp-sdk-
if [[ "${filename}" != "firebase-cpp-sdk-"* ]]; then
    echo "Can only guess variant for firebase-cpp-sdk files. ${filename}" 1>&2
    exit 2
fi

os=
arch=
arch_win=
debugmode=Release
linkage=MD
vs=VS2015

for c in $(echo "${filename}" | tr "_.-" "\n\n\n"); do
    case $c in
	ios)
	    os=ios
	;;
	android)
	    os=android
	;;
	linux)
	    os=linux
	;;
	windows)
	    os=windows
	;;
	darwin)
	    os=darwin
	;;
	x86)
	    arch=i386
	    arch_win=x86
	;;
	i386)
	    arch=i386
	    arch_win=x86
	;;
	x64)
	    arch=x86_64
	    arch_win=x64
	;;
	x86_64)
	    arch=x86_64
{'fraction_non_alphanumeric': 0.1480916030534351, 'fraction_numerical': 0.04071246819338423, 'mean_word_length': 2.932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '348848', 'n_tokens_mistral': 820, 'n_tokens_neox': 739, 'n_words': 214}