<commit_before>/*
 * App.vala
 *
 * The Ambition Web Framework
 * http://www.ambitionframework.org
 *
 * Copyright 2012-2013 Sensical, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

using Gee;
using Ambition.Authorization;

namespace Ambition {
	public static const double VERSION_DOUBLE = 0.100;
	public static const string VERSION = "0.1";

	/**
	 * This needs to be somewhere else. to_array() combined with joinv is a
	 * recipe for segfaults, so this is a layer of protection until I figure
	 * out what might be wrong.
	 * @param separator String to separate strings
	 * @param list ArrayList of strings to join
	 */
	public string arraylist_joinv( string separator, ArrayList<string> list ) {
		if ( list == null || list.size == 0 ) {
			return "";
		}

		string[] list_array = new string[list.size];
		int f_index = 0;
		foreach ( string f in list ) {
			list_array[f_index++] = f;<commit_msg>Fix stpcpy warning on application load<commit_after>/*
 * App.vala
 *
 * The Ambition Web Framework
 * http://www.ambitionframework.org
 *
 * Copyright 2012-2013 Sensical, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

using Gee;
using Ambition.Authorization;

namespace Ambition {
	public static const double VERSION_DOUBLE = 0.100;
	public static const string VERSION = "0.1";

	/**
	 * This needs to be somewhere else. to_array() combined with joinv is a
	 * recipe for segfaults, so this is a layer of protection until I figure
	 * out what might be wrong.
	 * @param separator String to separate strings
	 * @param list ArrayList of strings to join
	 */
	public string arraylist_joinv( string separator, ArrayList<string> list ) {
		if ( list == null || list.size == 0 ) {
			return "";
		}

		string[] list_array = new string[list.size];
		int f_index = 0;
		foreach ( string f in list ) {
			if ( f == null ) {
				f = "";
			}
			list_array[f_index++] = f;
{'fraction_non_alphanumeric': 0.08947006194081211, 'fraction_numerical': 0.013764624913971095, 'mean_word_length': 3.493044822256569, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6026134', 'n_tokens_mistral': 876, 'n_tokens_neox': 807, 'n_words': 362}