<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis;

namespace Testity.BuildProcess.Unity3D
{
	public class DefaultInitializationExpression : IInitializationExpression
	{
		public ExpressionStatementSyntax Statement { get; private set; }

		public DefaultInitializationExpression(InitializationExpressionData data, string targetEngineComponentFieldName)
		{
            string fasterFlectMethodName = data.DestinationMemberType == System.Reflection.MemberTypes.Field ?
					@"SetFieldValue" : @"SetPropertyValue"; //can't use nameof with extension method I think. Will

			//generated with: http://roslynquoter.azurewebsites.net/ do not try to read
			Statement = SyntaxFactory.ExpressionStatement(
									SyntaxFactory.InvocationExpression(
										SyntaxFactory.MemberAccessExpression(
											SyntaxKind.SimpleMemberAccessExpression,
											SyntaxFactory.IdentifierName(
												targetEngineComponentFieldName), //target field
											SyntaxFactory.IdentifierName(
												fasterFlectMethodName))
										.WithOperatorToken(
											SyntaxFactory.Token(
												SyntaxKind.DotToken)))
									.WithArgumentList(
										SyntaxFactory.ArgumentList(
											SyntaxFactory.SeparatedList<ArgumentSyntax>(
												new SyntaxNodeOrToken[]{
													SyntaxFactory.Argument(
														SyntaxFactory.IdentifierName(
															data.DestinationFieldName)),
													SyntaxFactory.Token(
														SyntaxKind.CommaToken),
													SyntaxFactory.Argument(
														SyntaxFactory.InvocationExpression(
															SyntaxFactory.MemberAccessExpression(
																SyntaxKind.SimpleMemberAccessExpression,
																SyntaxFactory.IdentifierName(
																	data.SourceFieldName),
																SyntaxFactory.IdentifierName(
																	@"ToEngineType"))
															.WithOperatorToken(
																SyntaxFactory.Token(
																	SyntaxKind.DotToken)))
														.WithArgumentList(
															SyntaxFactory.ArgumentList()
															.WithOpenParenToken(
																SyntaxFactory.Token(
																	SyntaxKind.OpenParenToken))
															.WithCloseParenToken(
																SyntaxFactory.Token(
																	SyntaxKind.CloseParenToken))))}))
										.WithOpenParenToken(
											SyntaxFactory.Token(
												SyntaxKind.OpenParenToken))
										.WithCloseParenToken(
											SyntaxFactory.Token(
												SyntaxKind.CloseParenToken))));
        }
	}
}<commit_msg>Needed Literal String<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis;

namespace Testity.BuildProcess.Unity3D
{
	public class DefaultInitializationExpression : IInitializationExpression
	{
		public ExpressionStatementSyntax Statement { get; private set; }

		public DefaultInitializationExpression(InitializationExpressionData data, string targetEngineComponentFieldName)
		{
            string fasterFlectMethodName = data.DestinationMemberType == System.Reflection.MemberTypes.Field ?
					@"SetFieldValue" : @"SetPropertyValue"; //can't use nameof with extension method I think. Will

			//generated with: http://roslynquoter.azurewebsites.net/ do not try to read
			Statement = SyntaxFactory.ExpressionStatement(
									SyntaxFactory.InvocationExpression(
										SyntaxFactory.MemberAccessExpression(
											SyntaxKind.SimpleMemberAccessExpression,
											SyntaxFactory.IdentifierName(
												targetEngineComponentFieldName), //target field
											SyntaxFactory.IdentifierName(
												fasterFlectMethodName))
										.WithOperatorToken(
											SyntaxFactory.Token(
												SyntaxKind.DotToken)))
									.WithArgumentList(
										SyntaxFactory.ArgumentList(
											SyntaxFactory.SeparatedList<ArgumentSyntax>(
												new SyntaxNodeOrToken[]{
													SyntaxFactory.Argument(
														SyntaxFactory.LiteralExpression(
															SyntaxKind.StringLiteralExpression,
															SyntaxFactory.Literal(
																SyntaxFactory.TriviaList(),
																@"""" + data.DestinationFieldName + @"""",
																@"""" + data.DestinationFieldName + @"""",
																SyntaxFactory.TriviaList()))),
													SyntaxFactory.Token(
														SyntaxKind.CommaToken),
													SyntaxFactory.Argument(
														SyntaxFactory.InvocationExpression(
															SyntaxFactory.MemberAccessExpression(
																SyntaxKind.SimpleMemberAccessExpression,
																SyntaxFactory.IdentifierName(
																	data.SourceFieldName),
																SyntaxFactory.IdentifierName(
																	@"ToEngineType"))
															.WithOperatorToken(
																SyntaxFactory.Token(
																	SyntaxKind.DotToken)))
														.WithArgumentList(
															SyntaxFactory.ArgumentList()
															.WithOpenParenToken(
																SyntaxFactory.Token(
																	SyntaxKind.OpenParenToken))
															.WithCloseParenToken(
																SyntaxFactory.Token(
																	SyntaxKind.CloseParenToken))))}))
										.WithOpenParenToken(
											SyntaxFactory.Token(
												SyntaxKind.OpenParenToken))
										.WithCloseParenToken(
											SyntaxFactory.Token(
												SyntaxKind.CloseParenToken))));
        }
	}
}
{'fraction_non_alphanumeric': 0.07363588204132085, 'fraction_numerical': 0.0003531696980399082, 'mean_word_length': 2.2739884393063585, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4268503', 'n_tokens_mistral': 2460, 'n_tokens_neox': 1364, 'n_words': 217}