<commit_before>package org.eclipse.birt.report.data.adapter.api;

import java.lang.reflect.InvocationTargetException;

import org.eclipse.birt.report.model.api.ReportItemHandle;
import org.eclipse.birt.report.model.api.olap.CubeHandle;


public class LinkedDataSetUtil
{
	public static boolean bindToLinkedDataSet( ReportItemHandle reportItemHandle )
			throws IllegalArgumentException, IllegalAccessException,
			InvocationTargetException
	{
		return false;
	}
	
	public static boolean isLinkedDataSetCube( CubeHandle handle )
	{
		return false;
	}
}
<commit_msg>CubeQueryUtil.getInvalidBindings( ICubeQueryDefinition ) method needs to be enhanced to handle query defn from linked data model [57886]<commit_after>package org.eclipse.birt.report.data.adapter.api;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

import org.eclipse.birt.report.model.api.ReportItemHandle;


public class LinkedDataSetUtil
{
	private static String GET_LINKED_DATA_MODEL_METHOD = "getLinkedDataModel";
	
	public static boolean bindToLinkedDataSet( ReportItemHandle reportItemHandle )
			throws IllegalArgumentException, IllegalAccessException,
			InvocationTargetException
	{
		Method[] methods = reportItemHandle.getClass( ).getMethods( );
		for ( int i = 0; i < methods.length; i++ )
		{
			String name = methods[i].getName( );
			if ( name.equals( GET_LINKED_DATA_MODEL_METHOD ) )
			{
				Object result = methods[i].invoke( reportItemHandle );
				if ( result != null )
					return true;
			}
		}
		return false;
	}
}

{'fraction_non_alphanumeric': 0.0834902699309479, 'fraction_numerical': 0.003766478342749529, 'mean_word_length': 4.175324675324675, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5665712', 'n_tokens_mistral': 507, 'n_tokens_neox': 464, 'n_words': 100}