<commit_before>using UnityEngine;
using System;
using System.Collections;

#if UNITY_ANDROID && !UNITY_EDITOR
public class FrispAndroidSocial {
	private static readonly FrispAndroidSocial _singleton = new FrispAndroidSocial ();

	private FrispAndroidSocial() {}

	public static FrispAndroidSocial Instance() {
		return _singleton;
	}

	public void ShareImage(String title, String text, Texture2D image) {
		var imageInBytes = image.EncodeToPNG();
		var base64Image = System.Convert.ToBase64String (imageInBytes);
		var socialClass = new AndroidJavaClass (
			"com.frispgames.frispsocial.FrispSocial"
		);

		using (socialClass) {
			socialClass.CallStatic (
				"shareImage", new String[]{title, text, base64Image}
			);
		}
	}
}
#endif<commit_msg>tidied up code a bit.<commit_after>using UnityEngine;
using System;
using System.Collections;

#if UNITY_ANDROID && !UNITY_EDITOR
public class FrispAndroidSocial {
	private static readonly FrispAndroidSocial _singleton =
		new FrispAndroidSocial ();

	private FrispAndroidSocial() {}

	public static FrispAndroidSocial Instance() {
		return _singleton;
	}

	public void ShareImage(String title, String text, Texture2D image) {
		var imageInBytes = image.EncodeToPNG();
		var base64Image = System.Convert.ToBase64String (imageInBytes);
		var socialClass = new AndroidJavaClass (
			"com.frispgames.frispsocial.FrispSocial"
		);

		using (socialClass) {
			socialClass.CallStatic (
				"shareImage", new String[]{title, text, base64Image}
			);
		}
	}
}
#endif
{'fraction_non_alphanumeric': 0.09362549800796813, 'fraction_numerical': 0.009296148738379814, 'mean_word_length': 5.076612903225806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7144652', 'n_tokens_mistral': 525, 'n_tokens_neox': 471, 'n_words': 115}