<commit_before>﻿using System;
using System.Linq;

namespace Bridge.React
{
	internal static class ComponentNameHelpers
	{
		internal static string GetDisplayName(object source)
		{
			if (source == null)
				throw new ArgumentNullException("source");

			if (Script.Write<bool>("Bridge.isPlainObject(source)"))
				return source.ToString();

			// There appears to be a bug in Bridge 15.0 which means that the GetClassName method function returns the wrong value, but accessing the (undocumented) $$name
			// property still works - so we'll use that for now. See http://forums.bridge.net/forum/bridge-net-pro/bugs/2613-change-to-getclassname-behaviour.
			return Script.Write<string>("source.$$name").Split(".").Last();
		}
	}
}<commit_msg>Removed workaround for a suspected Bridge bug<commit_after>﻿using System;

namespace Bridge.React
{
	internal static class ComponentNameHelpers
	{
		internal static string GetDisplayName(object source)
		{
			if (source == null)
				throw new ArgumentNullException("source");

			if (Script.Write<bool>("Bridge.isPlainObject(source)"))
				return source.ToString();

			return source.GetType().FullName;
		}
	}
}
{'fraction_non_alphanumeric': 0.11621856027753687, 'fraction_numerical': 0.006071118820468344, 'mean_word_length': 4.443396226415095, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '362878', 'n_tokens_mistral': 379, 'n_tokens_neox': 333, 'n_words': 94}