<commit_before>//branchLocations.cpp 
//create two vectors from the given SMILES string that contain the indicies of the opening and closing parentheses

#include <iostream>
#include <vector>
#include <string>

std::vector<int> locations(std::string sample, char branch);

int main()
{
	std::string SMILES; //SMILES goes here

	char startBranch = '(';
	char endBranch = ')';


	std::vector<int> startResults = locations(SMILES, startBranch);
	std::vector<int> endResults = locations(SMILES, endBranch);

	system("pause");
	return 0;
}

std::vector<int> locations(std::string testString, char testChar)
{
	std::vector<int> characterLocations;
	for (int i = 0; i < testString.size(); i++)
	{
		if (testString[i] == testChar)
		{
			characterLocations.push_back(i); // gives the indicies of the instances of the chosen characters
		}
	}
	return characterLocations;

}<commit_msg>started working on files again<commit_after>//branchLocations.cpp 
//create two vectors from the given SMILES string that contain the indicies of the opening and closing parentheses

#include <iostream>
#include <vector>
#include <string>

std::vector<int> locations(std::string sample, char branch);

int main() {
	std::cout << "Please input SMILES\n";
	std::string SMILES;
	std::cin >> SMILES; //SMILES goes here

	char startBranch = '(';
	char endBranch = ')';


	std::vector<int> startResults = locations(SMILES, startBranch);
	std::vector<int> endResults = locations(SMILES, endBranch);
	


	system("pause");
	return 0;
}

std::vector<int> locations(std::string testString, char testChar) {
	std::vector<int> characterLocations;
	for (int i = 0; i < testString.size(); i++)
	{
		if (testString[i] == testChar)
		{
			characterLocations.push_back(i); // gives the indicies of the instances of the chosen characters
		}
	}
	return characterLocations;

}
{'fraction_non_alphanumeric': 0.13155021834061134, 'fraction_numerical': 0.002183406113537118, 'mean_word_length': 5.089700996677741, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 21, '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': '6569314', 'n_tokens_mistral': 616, 'n_tokens_neox': 593, 'n_words': 174}