<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;

namespace Windows.UI.Interactivity
{
    /// <summary>
    /// Represents an action that can be targeted to affect an object other than its AssociatedObject.
    /// 
    /// </summary>
    /// 
    /// <remarks>
    /// This is an infrastructure class. Action authors should derive from TargetedTriggerAction&lt;T&gt; instead of this class.
    /// </remarks>
    public abstract class TargetedTriggerAction : TriggerAction
    {
        public static readonly DependencyProperty TargetObjectProperty = DependencyProperty.Register("TargetObject", typeof(object), typeof(TargetedTriggerAction), new PropertyMetadata(new PropertyChangedCallback(TargetedTriggerAction.OnTargetObjectChanged)));
        public static readonly DependencyProperty TargetNameProperty = DependencyProperty.Register("TargetName", typeof(string), typeof(TargetedTriggerAction), new PropertyMetadata(new PropertyChangedCallback(TargetedTriggerAction.OnTargetNameChanged)));
        private Type targetTypeConstraint;
        private bool isTargetChangedRegistered;
        private NameResolver targetResolver;

        /// <summary>
        /// Gets or sets the target object. If TargetObject is not set, the target will look for the object specified by TargetName. If an element referred to by TargetName cannot be found, the target will default to the AssociatedObject. This is a dependency property.
        /// 
        /// </summary>
        /// 
        /// <value>
        /// The target object.
        /// </value>
        public object TargetObject
        {
            get
            {
                return this.GetValue(TargetedTriggerAction.TargetObjectProperty);
            }<commit_msg>Fixed incorrect DependencyProperty initialization in TargetedTriggerAction which causes InvalidCastException<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;

namespace Windows.UI.Interactivity
{
    /// <summary>
    /// Represents an action that can be targeted to affect an object other than its AssociatedObject.
    /// 
    /// </summary>
    /// 
    /// <remarks>
    /// This is an infrastructure class. Action authors should derive from TargetedTriggerAction&lt;T&gt; instead of this class.
    /// </remarks>
    public abstract class TargetedTriggerAction : TriggerAction
    {
        public static readonly DependencyProperty TargetObjectProperty = DependencyProperty.Register("TargetObject", typeof(object), typeof(TargetedTriggerAction), new PropertyMetadata(null, new PropertyChangedCallback(TargetedTriggerAction.OnTargetObjectChanged)));
        public static readonly DependencyProperty TargetNameProperty = DependencyProperty.Register("TargetName", typeof(string), typeof(TargetedTriggerAction), new PropertyMetadata(null, new PropertyChangedCallback(TargetedTriggerAction.OnTargetNameChanged)));
        private Type targetTypeConstraint;
        private bool isTargetChangedRegistered;
        private NameResolver targetResolver;

        /// <summary>
        /// Gets or sets the target object. If TargetObject is not set, the target will look for the object specified by TargetName. If an element referred to by TargetName cannot be found, the target will default to the AssociatedObject. This is a dependency property.
        /// 
        /// </summary>
        /// 
        /// <value>
        /// The target object.
        /// </value>
        public object TargetObject
        {
            get
            {
                return this.GetValue(TargetedTriggerAction.TargetObjectProperty);
            }
{'fraction_non_alphanumeric': 0.08204860203814998, 'fraction_numerical': 0.0, 'mean_word_length': 3.111707841031149, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '3394350', 'n_tokens_mistral': 883, 'n_tokens_neox': 864, 'n_words': 296}