code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @UsedByGeneratedCode public __DynamicallyDispatchable determineDispatcher(Object instance, String nameAndDescriptor) { if (nameAndDescriptor.startsWith("<init>")) { // its a ctor, no dynamic lookup required if (!hasBeenReloaded()) { // TODO evaluate whether this is too naughty. ...
public class class_name { @UsedByGeneratedCode public __DynamicallyDispatchable determineDispatcher(Object instance, String nameAndDescriptor) { if (nameAndDescriptor.startsWith("<init>")) { // its a ctor, no dynamic lookup required if (!hasBeenReloaded()) { // TODO evaluate whether this is too naughty. ...
public class class_name { private byte[] getBytesFromDocumentEntry(final DocumentEntry de) throws IOException { InputStream is = null; try { is = new DocumentInputStream(de); return getBytesFromStream(is); } finally { if (is != null) { try { is.close(); } catch (final IOException e) { ...
public class class_name { private byte[] getBytesFromDocumentEntry(final DocumentEntry de) throws IOException { InputStream is = null; try { is = new DocumentInputStream(de); return getBytesFromStream(is); } finally { if (is != null) { try { is.close(); // depends on control dependency: [try...
public class class_name { boolean addPersona(SPFPersona persona) { SQLiteDatabase db = getWritableDatabase(); String table = Contract.TABLE_PERSONAS; String nullColumnHack = null; ContentValues values = new ContentValues(); values.put(Contract.COLUMN_PERSONA, persona.getIdentifier()); if (db.insert(table, ...
public class class_name { boolean addPersona(SPFPersona persona) { SQLiteDatabase db = getWritableDatabase(); String table = Contract.TABLE_PERSONAS; String nullColumnHack = null; ContentValues values = new ContentValues(); values.put(Contract.COLUMN_PERSONA, persona.getIdentifier()); if (db.insert(table, ...
public class class_name { private int maxChildOrGrandchildWithComparator(int k) { int gc = 4 * k; int maxgc; K gcValue; // 4 grandchilden if (gc + 3 <= size) { gcValue = array[gc]; maxgc = gc; if (comparator.compare(array[++gc], gcValue) > 0)...
public class class_name { private int maxChildOrGrandchildWithComparator(int k) { int gc = 4 * k; int maxgc; K gcValue; // 4 grandchilden if (gc + 3 <= size) { gcValue = array[gc]; // depends on control dependency: [if], data = [none] maxgc = gc; // depe...
public class class_name { private void findUnmatchedAssertions(final List<ACE> aces, List<AceAssertion> unsatisfiedAssertions) { List<AceAssertion> unmatchedAssertions = null; if (aces == null || aces.isEmpty()) { return; } for (ACE ace : aces) { long rightsMask...
public class class_name { private void findUnmatchedAssertions(final List<ACE> aces, List<AceAssertion> unsatisfiedAssertions) { List<AceAssertion> unmatchedAssertions = null; if (aces == null || aces.isEmpty()) { return; // depends on control dependency: [if], data = [none] } ...
public class class_name { private void refreshDataForRow(Row row) { if (row == null) { return; } String saveAttrList = SaveAttrsUtility.getSaveAttrListFromRow(row); if (saveAttrList!= null) { String[] saveAttrs = saveAttrList.split(","); for (String fullSaveAttr : saveAttrs) { refreshDataF...
public class class_name { private void refreshDataForRow(Row row) { if (row == null) { return; // depends on control dependency: [if], data = [none] } String saveAttrList = SaveAttrsUtility.getSaveAttrListFromRow(row); if (saveAttrList!= null) { String[] saveAttrs = saveAttrList.split(","); for...
public class class_name { @SuppressLint("NewApi") public static Intent createChooser(Intent target, CharSequence title) { if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN) { return Intent.createChooser(target, title); } Intent intent = new Intent(); intent.setClass(Applic...
public class class_name { @SuppressLint("NewApi") public static Intent createChooser(Intent target, CharSequence title) { if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN) { return Intent.createChooser(target, title); // depends on control dependency: [if], data = [none] } Intent...
public class class_name { public void add(final DataPoints dps) { metric_uids.add(dps.metricUID()); // TODO - tags intersection for (final byte[] tagk : dps.getAggregatedTagUids()) { aggregated_tags.add(tagk); } tsuids.addAll(dps.getTSUIDs()); // TODO - this ain't right. We...
public class class_name { public void add(final DataPoints dps) { metric_uids.add(dps.metricUID()); // TODO - tags intersection for (final byte[] tagk : dps.getAggregatedTagUids()) { aggregated_tags.add(tagk); // depends on control dependency: [for], data = [tagk] } tsuids.addA...
public class class_name { private ULocale getBestMatchInternal(ULocale languageCode, OutputDouble outputWeight) { languageCode = canonicalize(languageCode); final ULocale maximized = addLikelySubtags(languageCode); if (DEBUG) { System.out.println("\ngetBestMatchInternal: " + languag...
public class class_name { private ULocale getBestMatchInternal(ULocale languageCode, OutputDouble outputWeight) { languageCode = canonicalize(languageCode); final ULocale maximized = addLikelySubtags(languageCode); if (DEBUG) { System.out.println("\ngetBestMatchInternal: " + languag...
public class class_name { private <T> Collection<Integer> transformSink(SinkTransformation<T> sink) { Collection<Integer> inputIds = transform(sink.getInput()); String slotSharingGroup = determineSlotSharingGroup(sink.getSlotSharingGroup(), inputIds); streamGraph.addSink(sink.getId(), slotSharingGroup, ...
public class class_name { private <T> Collection<Integer> transformSink(SinkTransformation<T> sink) { Collection<Integer> inputIds = transform(sink.getInput()); String slotSharingGroup = determineSlotSharingGroup(sink.getSlotSharingGroup(), inputIds); streamGraph.addSink(sink.getId(), slotSharingGroup, ...
public class class_name { @Pure public static List<String> getSystemDefaults(TrafficDirection direction) { final List<String> array = new ArrayList<>(); try { int i = 0; while (true) { array.add(getSystemDefault(direction, i)); ++i; } } catch (AssertionError e) { throw e; } catch (Throwabl...
public class class_name { @Pure public static List<String> getSystemDefaults(TrafficDirection direction) { final List<String> array = new ArrayList<>(); try { int i = 0; while (true) { array.add(getSystemDefault(direction, i)); // depends on control dependency: [while], data = [none] ++i; // depends...
public class class_name { public static boolean canFormat(ConfigurablePropertyAccessor bw, Object obj, String prop) { String key = obj.getClass().getName() + "_" + prop; if (!cache.containsKey(key)) { cache.put(key, false); TypeDescriptor td = bw.getPropertyTypeDescriptor(prop); if (td != nul...
public class class_name { public static boolean canFormat(ConfigurablePropertyAccessor bw, Object obj, String prop) { String key = obj.getClass().getName() + "_" + prop; if (!cache.containsKey(key)) { cache.put(key, false); // depends on control dependency: [if], data = [none] TypeDescriptor td =...
public class class_name { public static void setButtonDimensionHint(Button button) { Assert.isNotNull(button); Object gd= button.getLayoutData(); if (gd instanceof GridData) { ((GridData)gd).widthHint= getButtonWidthHint(button); ((GridData)gd).horizontalAlignment = GridData.FILL; } } }
public class class_name { public static void setButtonDimensionHint(Button button) { Assert.isNotNull(button); Object gd= button.getLayoutData(); if (gd instanceof GridData) { ((GridData)gd).widthHint= getButtonWidthHint(button); // depends on control dependency: [if], data = [none] ((GridData)gd).horizont...
public class class_name { public EClass getIfcRailing() { if (ifcRailingEClass == null) { ifcRailingEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(420); } return ifcRailingEClass; } }
public class class_name { public EClass getIfcRailing() { if (ifcRailingEClass == null) { ifcRailingEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(420); // depends on control dependency: [if], data = [none] } return ifcRailingEClass; } }
public class class_name { static public void cleanCache(Date cutoff, StringBuilder sbuff) { if (sbuff != null) sbuff.append("CleanCache files before ").append(cutoff).append("\n"); File dir = new File(root); File[] children = dir.listFiles(); if (children == null) return; for (File file : chil...
public class class_name { static public void cleanCache(Date cutoff, StringBuilder sbuff) { if (sbuff != null) sbuff.append("CleanCache files before ").append(cutoff).append("\n"); File dir = new File(root); File[] children = dir.listFiles(); if (children == null) return; for (File file : chil...
public class class_name { protected void readSettings() { boolean createConstructors = false; boolean createUnimplemented = true; boolean createEventHandlers = true; boolean createLifecycleFunctions = true; final IDialogSettings dialogSettings = getDialogSettings(); if (dialogSettings != null) { final I...
public class class_name { protected void readSettings() { boolean createConstructors = false; boolean createUnimplemented = true; boolean createEventHandlers = true; boolean createLifecycleFunctions = true; final IDialogSettings dialogSettings = getDialogSettings(); if (dialogSettings != null) { final I...
public class class_name { synchronized void rollback(Session session, long timestamp) { RowActionBase action = this; do { if (action.session == session && action.commitTimestamp == 0) { if (action.actionTimestamp >= timestamp || action.actionTimesta...
public class class_name { synchronized void rollback(Session session, long timestamp) { RowActionBase action = this; do { if (action.session == session && action.commitTimestamp == 0) { if (action.actionTimestamp >= timestamp || action.actionTimesta...
public class class_name { public static <N> void merge(MutableGraph<N> graph1, Graph<N> graph2) { for (N node : graph2.nodes()) { graph1.addNode(node); } for (EndpointPair<N> edge : graph2.edges()) { graph1.putEdge(edge.nodeU(), edge.nodeV()); } } }
public class class_name { public static <N> void merge(MutableGraph<N> graph1, Graph<N> graph2) { for (N node : graph2.nodes()) { graph1.addNode(node); // depends on control dependency: [for], data = [node] } for (EndpointPair<N> edge : graph2.edges()) { graph1.putEdge(e...
public class class_name { public PoseSteering getPoseSteering(long time) { long startTime = this.getTemporalVariable().getEST(); long endTime = this.getTemporalVariable().getEET(); if (time < startTime || time > endTime) { return this.getTrajectory().getPoseSteering()[this.getTrajectory().getPoseSteering().l...
public class class_name { public PoseSteering getPoseSteering(long time) { long startTime = this.getTemporalVariable().getEST(); long endTime = this.getTemporalVariable().getEET(); if (time < startTime || time > endTime) { return this.getTrajectory().getPoseSteering()[this.getTrajectory().getPoseSteering().l...
public class class_name { private void removeInstalledExtension(DefaultInstalledExtension installedExtension, String namespace) { removeInstalledFeature(installedExtension.getId().getId(), namespace); for (ExtensionId feature : installedExtension.getExtensionFeatures()) { removeInstall...
public class class_name { private void removeInstalledExtension(DefaultInstalledExtension installedExtension, String namespace) { removeInstalledFeature(installedExtension.getId().getId(), namespace); for (ExtensionId feature : installedExtension.getExtensionFeatures()) { removeInstall...
public class class_name { private EventParameters createEventParameters(Map<String,String> pParams){ EventParameters evParams = EventParameters.Factory.newInstance(); for (String name : pParams.keySet()) { String val = pParams.get(name); if(val == null){ conti...
public class class_name { private EventParameters createEventParameters(Map<String,String> pParams){ EventParameters evParams = EventParameters.Factory.newInstance(); for (String name : pParams.keySet()) { String val = pParams.get(name); if(val == null){ conti...
public class class_name { public EncryptionEntities withItems(EncryptionEntity... items) { if (this.items == null) { setItems(new com.amazonaws.internal.SdkInternalList<EncryptionEntity>(items.length)); } for (EncryptionEntity ele : items) { this.items.add(ele); ...
public class class_name { public EncryptionEntities withItems(EncryptionEntity... items) { if (this.items == null) { setItems(new com.amazonaws.internal.SdkInternalList<EncryptionEntity>(items.length)); // depends on control dependency: [if], data = [none] } for (EncryptionEntity el...
public class class_name { public static File getUserM2Repository() { // if there is m2override system propery, use it. String m2Override = System.getProperty("apiman.gateway.m2-repository-path"); //$NON-NLS-1$ if (m2Override != null) { return new File(m2Override).getAbsoluteFile(); ...
public class class_name { public static File getUserM2Repository() { // if there is m2override system propery, use it. String m2Override = System.getProperty("apiman.gateway.m2-repository-path"); //$NON-NLS-1$ if (m2Override != null) { return new File(m2Override).getAbsoluteFile(); // dep...
public class class_name { public static EmbeddedPostgresTestDatabaseRule embeddedDatabaseRule(@Nonnull final URL baseUrl, final String... personalities) { try { return embeddedDatabaseRule(baseUrl.toURI(), personalities); } catch (URISyntaxException e) { throw new IllegalArg...
public class class_name { public static EmbeddedPostgresTestDatabaseRule embeddedDatabaseRule(@Nonnull final URL baseUrl, final String... personalities) { try { return embeddedDatabaseRule(baseUrl.toURI(), personalities); // depends on control dependency: [try], data = [none] } catch (U...
public class class_name { public float getSequenceTailAverageQuality(int numElements) { float quality = -1; if (this.size() >= numElements) { // Sum the quality of the last 'n' elements of the sequence, // and divide the result by 'n' to obtain the average value int ...
public class class_name { public float getSequenceTailAverageQuality(int numElements) { float quality = -1; if (this.size() >= numElements) { // Sum the quality of the last 'n' elements of the sequence, // and divide the result by 'n' to obtain the average value int ...
public class class_name { public static String getPathToBase() { String path = new File(".").getAbsoluteFile().getParent(); while( path != null ) { File f = new File(path); if( !f.exists() ) break; String[] files = f.list(); if( files == null ) break; boolean foundMain = false; boolea...
public class class_name { public static String getPathToBase() { String path = new File(".").getAbsoluteFile().getParent(); while( path != null ) { File f = new File(path); if( !f.exists() ) break; String[] files = f.list(); if( files == null ) break; boolean foundMain = false; boolea...
public class class_name { private void checkViewMeetsSpec(String viewName, ParsedSelectStmt stmt) throws VoltCompilerException { int groupColCount = stmt.groupByColumns().size(); int displayColCount = stmt.m_displayColumns.size(); StringBuffer msg = new StringBuffer(); msg.append("Mater...
public class class_name { private void checkViewMeetsSpec(String viewName, ParsedSelectStmt stmt) throws VoltCompilerException { int groupColCount = stmt.groupByColumns().size(); int displayColCount = stmt.m_displayColumns.size(); StringBuffer msg = new StringBuffer(); msg.append("Mater...
public class class_name { public ScreenComponent setupTableLookup(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Rec record, String keyAreaName, Converter fldDisplayFieldDesc, boolean bIncludeBlankOption, boolean bIncludeFormButton) { ScreenComponent screenFi...
public class class_name { public ScreenComponent setupTableLookup(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, Rec record, String keyAreaName, Converter fldDisplayFieldDesc, boolean bIncludeBlankOption, boolean bIncludeFormButton) { ScreenComponent screenFi...
public class class_name { protected void adjustGridLayout() { int numColumns = calcNumberOfColumns(); ((GridLayout) fieldEditorParent.getLayout()).numColumns = numColumns; if (fields != null) { for (int i = 0; i < fields.size(); i++) { FieldEditor fieldEditor = fields.get(i); fieldEditor.fillIntoGrid(...
public class class_name { protected void adjustGridLayout() { int numColumns = calcNumberOfColumns(); ((GridLayout) fieldEditorParent.getLayout()).numColumns = numColumns; if (fields != null) { for (int i = 0; i < fields.size(); i++) { FieldEditor fieldEditor = fields.get(i); fieldEditor.fillIntoGrid(...
public class class_name { protected void setParent(Object parent, Object child) { getProxyBuilder().getCurrentFactory().setParent(getProxyBuilder().getChildBuilder(), parent, child); Factory parentFactory = getProxyBuilder().getParentFactory(); if (parentFactory != null) { parentFac...
public class class_name { protected void setParent(Object parent, Object child) { getProxyBuilder().getCurrentFactory().setParent(getProxyBuilder().getChildBuilder(), parent, child); Factory parentFactory = getProxyBuilder().getParentFactory(); if (parentFactory != null) { parentFac...
public class class_name { public void start() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "start"); } if (!this.bRunning) { this.ncsaLog.start(); this.frcaLog.start(); this.debugLog.start(); this.b...
public class class_name { public void start() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "start"); // depends on control dependency: [if], data = [none] } if (!this.bRunning) { this.ncsaLog.start(); // depends on control dependency:...
public class class_name { public static final <T> Set<T> symmetricDifference(Collection<Set<T>> sets) { MapSet<T,Integer> mapSet = new HashMapSet<>(); int index = 0; for (Set<T> set : sets) { for (T t : set) { mapSet.add(t, index); ...
public class class_name { public static final <T> Set<T> symmetricDifference(Collection<Set<T>> sets) { MapSet<T,Integer> mapSet = new HashMapSet<>(); int index = 0; for (Set<T> set : sets) { for (T t : set) { mapSet.add(t, index); //...
public class class_name { public Observable<ServiceResponse<List<TransparentDataEncryptionActivityInner>>> listByConfigurationWithServiceResponseAsync(String resourceGroupName, String serverName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("...
public class class_name { public Observable<ServiceResponse<List<TransparentDataEncryptionActivityInner>>> listByConfigurationWithServiceResponseAsync(String resourceGroupName, String serverName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("...
public class class_name { public com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() { java.lang.Object ref = callerSuppliedUserAgent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java....
public class class_name { public com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() { java.lang.Object ref = callerSuppliedUserAgent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java....
public class class_name { public org.grails.datastore.mapping.query.api.Criteria sizeEq(String propertyName, int size) { if (!validateSimpleExpression()) { throwRuntimeException(new IllegalArgumentException("Call to [sizeEq] with propertyName [" + propertyName + "] and size [" +...
public class class_name { public org.grails.datastore.mapping.query.api.Criteria sizeEq(String propertyName, int size) { if (!validateSimpleExpression()) { throwRuntimeException(new IllegalArgumentException("Call to [sizeEq] with propertyName [" + propertyName + "] and size [" +...
public class class_name { public void error( String format, Object arg1, Object arg2 ) { if( m_delegate.isErrorEnabled() ) { FormattingTuple tuple = MessageFormatter.format( format, arg1, arg2 ); m_delegate.error( tuple.getMessage(), tuple.getThrowable() ); } } }
public class class_name { public void error( String format, Object arg1, Object arg2 ) { if( m_delegate.isErrorEnabled() ) { FormattingTuple tuple = MessageFormatter.format( format, arg1, arg2 ); m_delegate.error( tuple.getMessage(), tuple.getThrowable() ); // depends on con...
public class class_name { public void marshall(Contact contact, ProtocolMarshaller protocolMarshaller) { if (contact == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(contact.getContactArn(), CONTAC...
public class class_name { public void marshall(Contact contact, ProtocolMarshaller protocolMarshaller) { if (contact == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(contact.getContactArn(), CONTAC...
public class class_name { @Override public void onAddJob(JobSpec addedJob) { if (this.filter.apply(addedJob)) { this.delegate.onAddJob(addedJob); } } }
public class class_name { @Override public void onAddJob(JobSpec addedJob) { if (this.filter.apply(addedJob)) { this.delegate.onAddJob(addedJob); // depends on control dependency: [if], data = [none] } } }
public class class_name { public static URI buildUriInClientFormat(ConfigKeyPath configKeyPath, ConfigStore cs, boolean returnURIWithAuthority) { try { if (!returnURIWithAuthority) { return new URI(cs.getStoreURI().getScheme(), null, configKeyPath.getAbsolutePathString(), null, null); } ...
public class class_name { public static URI buildUriInClientFormat(ConfigKeyPath configKeyPath, ConfigStore cs, boolean returnURIWithAuthority) { try { if (!returnURIWithAuthority) { return new URI(cs.getStoreURI().getScheme(), null, configKeyPath.getAbsolutePathString(), null, null); // depen...
public class class_name { public void link(String featureTable, String tileTable) { if (!isLinked(featureTable, tileTable)) { getOrCreateExtension(); try { if (!featureTileLinkDao.isTableExists()) { geoPackage.createFeatureTileLinkTable(); } FeatureTileLink link = new FeatureTileLink(); ...
public class class_name { public void link(String featureTable, String tileTable) { if (!isLinked(featureTable, tileTable)) { getOrCreateExtension(); try { if (!featureTileLinkDao.isTableExists()) { geoPackage.createFeatureTileLinkTable(); // depends on control dependency: [if], data = [none] } ...
public class class_name { private static String removeStartingDots(String fileName) { // machte unter OS X/Linux Probleme, zB. bei dem Titel: "....Paula" while (!fileName.isEmpty() && (fileName.startsWith("."))) { fileName = fileName.substring(1, fileName.length()); } return...
public class class_name { private static String removeStartingDots(String fileName) { // machte unter OS X/Linux Probleme, zB. bei dem Titel: "....Paula" while (!fileName.isEmpty() && (fileName.startsWith("."))) { fileName = fileName.substring(1, fileName.length()); // depends on control de...
public class class_name { @Override public Collection<? extends NameClassPair> listRemoteInstances(String appName, String moduleName, String compName, String namespaceString, String nameInContext) throws NamingException { Collection<NameCla...
public class class_name { @Override public Collection<? extends NameClassPair> listRemoteInstances(String appName, String moduleName, String compName, String namespaceString, String nameInContext) throws NamingException { Collection<NameCla...
public class class_name { private void charArray(char[] vals, int limit) { int len; char c; int left, right; String str; int instrsPerChunk = 6; int maxLen; int used; left = 0; len = vals.length; // len/CHUNK + 1 is conservative because l...
public class class_name { private void charArray(char[] vals, int limit) { int len; char c; int left, right; String str; int instrsPerChunk = 6; int maxLen; int used; left = 0; len = vals.length; // len/CHUNK + 1 is conservative because l...
public class class_name { @Pure public static LegalTrafficSide getPreferredLegalTrafficSide() { final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkConstants.class); String name = null; if (prefs != null) { name = prefs.get("LEGAL_TRAFFIC_SIDE", null); //$NON-NLS-1$ } if (name != null) { ...
public class class_name { @Pure public static LegalTrafficSide getPreferredLegalTrafficSide() { final Preferences prefs = Preferences.userNodeForPackage(RoadNetworkConstants.class); String name = null; if (prefs != null) { name = prefs.get("LEGAL_TRAFFIC_SIDE", null); //$NON-NLS-1$ // depends on control depe...
public class class_name { public synchronized void cancel() { // If the packet collector has already been cancelled, do nothing. if (cancelled) { return; } cancelled = true; connection.removeStanzaCollector(this); notifyAll(); if (collectorToReset !...
public class class_name { public synchronized void cancel() { // If the packet collector has already been cancelled, do nothing. if (cancelled) { return; // depends on control dependency: [if], data = [none] } cancelled = true; connection.removeStanzaCollector(this)...
public class class_name { public static <T> Set<T> immutableSetView(Set<T> set) { if (set instanceof ImmutableSet<?>) { return set; } return Collections.unmodifiableSet(set); } }
public class class_name { public static <T> Set<T> immutableSetView(Set<T> set) { if (set instanceof ImmutableSet<?>) { return set; // depends on control dependency: [if], data = [none] } return Collections.unmodifiableSet(set); } }
public class class_name { public String getDecodedMessage() { if (message == null) { return null; } return new String(Base64.base64ToByteArray(message), Charset.forName("UTF-8")); } }
public class class_name { public String getDecodedMessage() { if (message == null) { return null; // depends on control dependency: [if], data = [none] } return new String(Base64.base64ToByteArray(message), Charset.forName("UTF-8")); } }
public class class_name { public Duration getStartSlack() { Duration startSlack = (Duration) getCachedValue(TaskField.START_SLACK); if (startSlack == null) { Duration duration = getDuration(); if (duration != null) { startSlack = DateHelper.getVariance(this, ...
public class class_name { public Duration getStartSlack() { Duration startSlack = (Duration) getCachedValue(TaskField.START_SLACK); if (startSlack == null) { Duration duration = getDuration(); if (duration != null) { startSlack = DateHelper.getVariance(this, ...
public class class_name { private Object invokeMethod(final Object obj, final Method method, final Object... args) { // turn method to accessible. otherwise, we won't be able to callback to methods // on non-public classes. boolean accessibility = method.isAccessible(); method.setAccess...
public class class_name { private Object invokeMethod(final Object obj, final Method method, final Object... args) { // turn method to accessible. otherwise, we won't be able to callback to methods // on non-public classes. boolean accessibility = method.isAccessible(); method.setAccess...
public class class_name { public String getLocalAddr() { if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRequestObjectInUse(); } // 321485 String addr = null; if (this._request != null) { addr = this._request.getLocalAddr(); } if...
public class class_name { public String getLocalAddr() { if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){ checkRequestObjectInUse(); // depends on control dependency: [if], data = [none] } // 321485 String addr = null; if (this._request != null) { add...
public class class_name { @Override public void trace(final MessageItem messageItem, final Object... parameters) { if (getLogger().isTraceEnabled(messageItem.getMarker())) { getLogger().trace(messageItem.getMarker(), messageItem.getText(parameters)); } } }
public class class_name { @Override public void trace(final MessageItem messageItem, final Object... parameters) { if (getLogger().isTraceEnabled(messageItem.getMarker())) { getLogger().trace(messageItem.getMarker(), messageItem.getText(parameters)); // depends on control dependency: [if], ...
public class class_name { public IpPermission withPrefixListIds(PrefixListId... prefixListIds) { if (this.prefixListIds == null) { setPrefixListIds(new com.amazonaws.internal.SdkInternalList<PrefixListId>(prefixListIds.length)); } for (PrefixListId ele : prefixListIds) { ...
public class class_name { public IpPermission withPrefixListIds(PrefixListId... prefixListIds) { if (this.prefixListIds == null) { setPrefixListIds(new com.amazonaws.internal.SdkInternalList<PrefixListId>(prefixListIds.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { private static String base64Encode(byte[] data) { char c64[] = new char[data.length * 4 / 3 + 5]; for (int i = 0, k = 0; i < data.length; i += 3, k += 4) { c64[k + 0] = (char) (data[i] >> 2); c64[k + 1] = (char) ((data[i] & 0x03) << 4); c64[...
public class class_name { private static String base64Encode(byte[] data) { char c64[] = new char[data.length * 4 / 3 + 5]; for (int i = 0, k = 0; i < data.length; i += 3, k += 4) { c64[k + 0] = (char) (data[i] >> 2); // depends on control dependency: [for], data = [i] c64[k + 1...
public class class_name { public Collection<Text> split(char separator) { int pointer = pos; int limit = pos + len; int mark = pointer; ArrayList<Text> tokens = new ArrayList<Text>(); while (pointer < limit) { if (chars[pointer] == separator) { token...
public class class_name { public Collection<Text> split(char separator) { int pointer = pos; int limit = pos + len; int mark = pointer; ArrayList<Text> tokens = new ArrayList<Text>(); while (pointer < limit) { if (chars[pointer] == separator) { token...
public class class_name { public void marshall(FileSystem fileSystem, ProtocolMarshaller protocolMarshaller) { if (fileSystem == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(fileSystem.getOwnerId(...
public class class_name { public void marshall(FileSystem fileSystem, ProtocolMarshaller protocolMarshaller) { if (fileSystem == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(fileSystem.getOwnerId(...
public class class_name { @Deprecated public String getStrVal(String name) { if (getValue(name) instanceof String) { return (String)getValue(name); } return String.valueOf(getValue(name)); } }
public class class_name { @Deprecated public String getStrVal(String name) { if (getValue(name) instanceof String) { return (String)getValue(name); // depends on control dependency: [if], data = [none] } return String.valueOf(getValue(name)); } }
public class class_name { @VisibleForTesting protected CounterData createCounterData(final String counterName) { this.counterNameValidator.validateCounterName(counterName); final Key<CounterData> counterKey = CounterData.key(counterName); // Perform a transactional GET to see if the counter exists. If it doe...
public class class_name { @VisibleForTesting protected CounterData createCounterData(final String counterName) { this.counterNameValidator.validateCounterName(counterName); final Key<CounterData> counterKey = CounterData.key(counterName); // Perform a transactional GET to see if the counter exists. If it doe...
public class class_name { @CheckReturnValue LocalSyncWriteModelContainer desyncDocumentsFromRemote( final NamespaceSynchronizationConfig nsConfig, final BsonValue... documentIds) { this.waitUntilInitialized(); final MongoNamespace namespace = nsConfig.getNamespace(); final Lock lock = this.sy...
public class class_name { @CheckReturnValue LocalSyncWriteModelContainer desyncDocumentsFromRemote( final NamespaceSynchronizationConfig nsConfig, final BsonValue... documentIds) { this.waitUntilInitialized(); final MongoNamespace namespace = nsConfig.getNamespace(); final Lock lock = this.sy...
public class class_name { public static String suppressWhiteSpace(String str) { int len = str.length(); StringBuilder sb = new StringBuilder(len); // boolean wasWS=false; char c; char buffer = 0; for (int i = 0; i < len; i++) { c = str.charAt(i); if (c == '\n' || c == '\r') buffer = '\n'; else if...
public class class_name { public static String suppressWhiteSpace(String str) { int len = str.length(); StringBuilder sb = new StringBuilder(len); // boolean wasWS=false; char c; char buffer = 0; for (int i = 0; i < len; i++) { c = str.charAt(i); // depends on control dependency: [for], data = [i] if ...
public class class_name { private void countLocalStoresLoadsAndIncrements(int[] localStoreCount, int[] localLoadCount, int[] localIncrementCount, CFG cfg) { for (Iterator<Location> i = cfg.locationIterator(); i.hasNext();) { Location location = i.next(); if (location.getBas...
public class class_name { private void countLocalStoresLoadsAndIncrements(int[] localStoreCount, int[] localLoadCount, int[] localIncrementCount, CFG cfg) { for (Iterator<Location> i = cfg.locationIterator(); i.hasNext();) { Location location = i.next(); if (location.getBas...
public class class_name { public boolean addAll(Collection<? extends T> toAdd) { boolean changed = false; for (T elem : toAdd) { changed |= addElem(elem); } expandIfNecessary(); return changed; } }
public class class_name { public boolean addAll(Collection<? extends T> toAdd) { boolean changed = false; for (T elem : toAdd) { changed |= addElem(elem); // depends on control dependency: [for], data = [elem] } expandIfNecessary(); return changed; } }
public class class_name { public Discover firstAirDateYearGte(int year) { if (checkYear(year)) { params.add(Param.FIRST_AIR_DATE_GTE, year); } return this; } }
public class class_name { public Discover firstAirDateYearGte(int year) { if (checkYear(year)) { params.add(Param.FIRST_AIR_DATE_GTE, year); // depends on control dependency: [if], data = [none] } return this; } }
public class class_name { final Document createDocument(List<String> row, DocumentFactory documentFactory) { String id = StringUtils.EMPTY; String content = StringUtils.EMPTY; Language language = documentFactory.getDefaultLanguage(); Map<AttributeType, Object> attributeMap = new HashMap<>(); Strin...
public class class_name { final Document createDocument(List<String> row, DocumentFactory documentFactory) { String id = StringUtils.EMPTY; String content = StringUtils.EMPTY; Language language = documentFactory.getDefaultLanguage(); Map<AttributeType, Object> attributeMap = new HashMap<>(); Strin...
public class class_name { public void marshall(UpdateModelRequest updateModelRequest, ProtocolMarshaller protocolMarshaller) { if (updateModelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(UpdateModelRequest updateModelRequest, ProtocolMarshaller protocolMarshaller) { if (updateModelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public ListPoliciesResult withPolicyList(PolicySummary... policyList) { if (this.policyList == null) { setPolicyList(new java.util.ArrayList<PolicySummary>(policyList.length)); } for (PolicySummary ele : policyList) { this.policyList.add(ele); ...
public class class_name { public ListPoliciesResult withPolicyList(PolicySummary... policyList) { if (this.policyList == null) { setPolicyList(new java.util.ArrayList<PolicySummary>(policyList.length)); // depends on control dependency: [if], data = [none] } for (PolicySummary ele :...
public class class_name { private void removeEntryFromAuthCacheForUser(HttpServletRequest req, HttpServletResponse res) { getAuthCacheService(); if (authCacheService == null) { return; } String user = req.getRemoteUser(); if (user == null) { Principal p =...
public class class_name { private void removeEntryFromAuthCacheForUser(HttpServletRequest req, HttpServletResponse res) { getAuthCacheService(); if (authCacheService == null) { return; // depends on control dependency: [if], data = [none] } String user = req.getRemoteUser();...
public class class_name { @Search() public List<Patient> findPatientsByName(@RequiredParam(name = Patient.SP_FAMILY) StringDt theFamilyName) { LinkedList<Patient> retVal = new LinkedList<Patient>(); /* * Look for all patients matching the name */ for (Deque<Patient> nextPatientList : myIdToPatientVersion...
public class class_name { @Search() public List<Patient> findPatientsByName(@RequiredParam(name = Patient.SP_FAMILY) StringDt theFamilyName) { LinkedList<Patient> retVal = new LinkedList<Patient>(); /* * Look for all patients matching the name */ for (Deque<Patient> nextPatientList : myIdToPatientVersion...
public class class_name { @Override public EClass getIfcTransportElement() { if (ifcTransportElementEClass == null) { ifcTransportElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(730); } return ifcTransportElementEClass; } }
public class class_name { @Override public EClass getIfcTransportElement() { if (ifcTransportElementEClass == null) { ifcTransportElementEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(730); // depends on control dependency: [if], data = [none] } ...
public class class_name { public Object getJavaDefaultValueDefault() { if (field.getType() == boolean.class) { return DEFAULT_VALUE_BOOLEAN; } else if (field.getType() == byte.class || field.getType() == Byte.class) { return DEFAULT_VALUE_BYTE; } else if (field.getType() == char.class || field.getType() ==...
public class class_name { public Object getJavaDefaultValueDefault() { if (field.getType() == boolean.class) { return DEFAULT_VALUE_BOOLEAN; // depends on control dependency: [if], data = [none] } else if (field.getType() == byte.class || field.getType() == Byte.class) { return DEFAULT_VALUE_BYTE; // depends...
public class class_name { public void marshall(DetectTextRequest detectTextRequest, ProtocolMarshaller protocolMarshaller) { if (detectTextRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(d...
public class class_name { public void marshall(DetectTextRequest detectTextRequest, ProtocolMarshaller protocolMarshaller) { if (detectTextRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(d...
public class class_name { public MetricTimeSeries getMetricTimeSeries(String actualMetricPath) { Map<String, String> actualDimensions = new HashMap<>(); actualDimensions.putAll(dimensions); String[] path = actualMetricPath.split("\\|"); for (int i = 0; i < dimensionsPath.length; i++) ...
public class class_name { public MetricTimeSeries getMetricTimeSeries(String actualMetricPath) { Map<String, String> actualDimensions = new HashMap<>(); actualDimensions.putAll(dimensions); String[] path = actualMetricPath.split("\\|"); for (int i = 0; i < dimensionsPath.length; i++) ...
public class class_name { public ModelAdapter<Model, Item> setNewList(List<Model> list, boolean retainFilter) { List<Item> items = intercept(list); if (mUseIdDistributor) { getIdDistributor().checkIds(items); } //reset the filter CharSequence filter = null; ...
public class class_name { public ModelAdapter<Model, Item> setNewList(List<Model> list, boolean retainFilter) { List<Item> items = intercept(list); if (mUseIdDistributor) { getIdDistributor().checkIds(items); // depends on control dependency: [if], data = [none] } //reset ...
public class class_name { public Set<String> getActivitiesWithRoutingConstraints(){ Set<String> result = new HashSet<>(); String propertyValue = getProperty(ConstraintContextProperty.ACTIVITIES_WITH_CONSTRAINTS); if(propertyValue == null) return result; StringTokenizer activityTokens = StringUtils.splitArra...
public class class_name { public Set<String> getActivitiesWithRoutingConstraints(){ Set<String> result = new HashSet<>(); String propertyValue = getProperty(ConstraintContextProperty.ACTIVITIES_WITH_CONSTRAINTS); if(propertyValue == null) return result; StringTokenizer activityTokens = StringUtils.splitArra...
public class class_name { public static <T extends Annotation> T findAnnotation(Method m, Class<T> annotationClazz) { T annotation = m.getAnnotation(annotationClazz); if (annotation != null) { return annotation; } if (stereotypeAnnotationClass != null) { List<Cl...
public class class_name { public static <T extends Annotation> T findAnnotation(Method m, Class<T> annotationClazz) { T annotation = m.getAnnotation(annotationClazz); if (annotation != null) { return annotation; // depends on control dependency: [if], data = [none] } if (st...
public class class_name { public boolean executeJob(String jobName, String jobGroupName) { try { this.scheduler.triggerJob(new JobKey(jobName, jobGroupName)); return true; } catch (SchedulerException e) { logger.error("error executing job: " + jobName + " in group: "...
public class class_name { public boolean executeJob(String jobName, String jobGroupName) { try { this.scheduler.triggerJob(new JobKey(jobName, jobGroupName)); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [try], data = [none] ...
public class class_name { @Override public T decode(BsonReader reader, DecoderContext decoderContext) { T instance = instantiate(); reader.readStartDocument(); while (reader.readBsonType() != BsonType.END_OF_DOCUMENT) { String fieldName = reader.readName(); BsoneeBaseSetter<T> bsoneeBaseSetter = settersBy...
public class class_name { @Override public T decode(BsonReader reader, DecoderContext decoderContext) { T instance = instantiate(); reader.readStartDocument(); while (reader.readBsonType() != BsonType.END_OF_DOCUMENT) { String fieldName = reader.readName(); BsoneeBaseSetter<T> bsoneeBaseSetter = settersBy...
public class class_name { public void addKeyword(String keyword) { if (taxonomy.concepts.containsKey(keyword)) { throw new IllegalArgumentException(String.format("Concept %s already exists.", keyword)); } taxonomy.concepts.put(keyword, this); if (synset == null) { ...
public class class_name { public void addKeyword(String keyword) { if (taxonomy.concepts.containsKey(keyword)) { throw new IllegalArgumentException(String.format("Concept %s already exists.", keyword)); } taxonomy.concepts.put(keyword, this); if (synset == null) { ...
public class class_name { public void doAdd(@FormGroup("dataMediaSourceInfo") Group dataMediaSourceInfo, @FormField(name = "formDataMediaSourceError", group = "dataMediaSourceInfo") CustomErrors err, Navigator nav) throws Exception { DataMediaSource dataMediaSource =...
public class class_name { public void doAdd(@FormGroup("dataMediaSourceInfo") Group dataMediaSourceInfo, @FormField(name = "formDataMediaSourceError", group = "dataMediaSourceInfo") CustomErrors err, Navigator nav) throws Exception { DataMediaSource dataMediaSource =...
public class class_name { public static SubscribeRequest createSubscribeReq(List<SubscribeElement> list) { if (list == null) { throw new NullPointerException("list is not allowed to be null"); } SubscribeRequest ret = createSubscribeReq(); for (SubscribeElement el : list) { ret.addSubscribeElement(el); ...
public class class_name { public static SubscribeRequest createSubscribeReq(List<SubscribeElement> list) { if (list == null) { throw new NullPointerException("list is not allowed to be null"); } SubscribeRequest ret = createSubscribeReq(); for (SubscribeElement el : list) { ret.addSubscribeElement(el); ...
public class class_name { public Observable<ServiceResponseWithHeaders<Void, JobSchedulePatchHeaders>> patchWithServiceResponseAsync(String jobScheduleId, JobSchedulePatchParameter jobSchedulePatchParameter) { if (this.client.batchUrl() == null) { throw new IllegalArgumentException("Parameter this....
public class class_name { public Observable<ServiceResponseWithHeaders<Void, JobSchedulePatchHeaders>> patchWithServiceResponseAsync(String jobScheduleId, JobSchedulePatchParameter jobSchedulePatchParameter) { if (this.client.batchUrl() == null) { throw new IllegalArgumentException("Parameter this....
public class class_name { public void marshall(DescribeReservedElasticsearchInstancesRequest describeReservedElasticsearchInstancesRequest, ProtocolMarshaller protocolMarshaller) { if (describeReservedElasticsearchInstancesRequest == null) { throw new SdkClientException("Invalid argument passed to...
public class class_name { public void marshall(DescribeReservedElasticsearchInstancesRequest describeReservedElasticsearchInstancesRequest, ProtocolMarshaller protocolMarshaller) { if (describeReservedElasticsearchInstancesRequest == null) { throw new SdkClientException("Invalid argument passed to...
public class class_name { public boolean clickWithExtJS() { String id = getAttributeId(); if (hasId(id)) { String script = "return (function(){var b = Ext.getCmp('" + id + "'); if(b) {b.onClick({preventDefault:function(){},button:0}); return true;} return false;})()"; Object...
public class class_name { public boolean clickWithExtJS() { String id = getAttributeId(); if (hasId(id)) { String script = "return (function(){var b = Ext.getCmp('" + id + "'); if(b) {b.onClick({preventDefault:function(){},button:0}); return true;} return false;})()"; // depends on cont...
public class class_name { protected boolean hasVisibleElements(BaseUIComponent component) { for (BaseUIComponent child : component.getChildren(BaseUIComponent.class)) { ElementUI ele = getAssociatedElement(child); if (ele != null && ele.isVisible()) { return...
public class class_name { protected boolean hasVisibleElements(BaseUIComponent component) { for (BaseUIComponent child : component.getChildren(BaseUIComponent.class)) { ElementUI ele = getAssociatedElement(child); if (ele != null && ele.isVisible()) { return...
public class class_name { public String getDigitPattern() { String pattern = Optional.fromNullable(getParameter(SignalParameters.DIGIT_PATTERN.symbol())).or(""); if (!pattern.isEmpty()) { // Replace pattern to comply with MEGACO digitMap pattern = pattern.replace(".", "*").repla...
public class class_name { public String getDigitPattern() { String pattern = Optional.fromNullable(getParameter(SignalParameters.DIGIT_PATTERN.symbol())).or(""); if (!pattern.isEmpty()) { // Replace pattern to comply with MEGACO digitMap pattern = pattern.replace(".", "*").repla...
public class class_name { public EEnum getGBIMGRES() { if (gbimgresEEnum == null) { gbimgresEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(135); } return gbimgresEEnum; } }
public class class_name { public EEnum getGBIMGRES() { if (gbimgresEEnum == null) { gbimgresEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(135); // depends on control dependency: [if], data = [none] } return gbimgresEEnum; } }
public class class_name { public static String tokenizeSmileys(String text) { for(Map.Entry<String, String> smiley : SMILEYS_MAPPING.entrySet()) { text = text.replaceAll(smiley.getKey(), smiley.getValue()); } return text; } }
public class class_name { public static String tokenizeSmileys(String text) { for(Map.Entry<String, String> smiley : SMILEYS_MAPPING.entrySet()) { text = text.replaceAll(smiley.getKey(), smiley.getValue()); // depends on control dependency: [for], data = [smiley] } return text; ...
public class class_name { private void reorderJobs(JobInProgress job, JobSchedulingInfo oldInfo, QueueInfo qi) { if(qi.removeWaitingJob(oldInfo) != null) { qi.addWaitingJob(job); } if(qi.removeRunningJob(oldInfo) != null) { qi.addRunningJob(job); } } }
public class class_name { private void reorderJobs(JobInProgress job, JobSchedulingInfo oldInfo, QueueInfo qi) { if(qi.removeWaitingJob(oldInfo) != null) { qi.addWaitingJob(job); // depends on control dependency: [if], data = [none] } if(qi.removeRunningJob(oldInfo) !...
public class class_name { public double[] getRowPackedCopy() { double[] vals = new double[m * n]; for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { vals[i * n + j] = A[i][j]; } } return vals; } }
public class class_name { public double[] getRowPackedCopy() { double[] vals = new double[m * n]; for (int i = 0; i < m; i++) { for (int j = 0; j < n; j++) { vals[i * n + j] = A[i][j]; // depends on control dependency: [for], data = [j] } ...
public class class_name { public static boolean deleteQuietly(@Nullable File file) { if (file == null) { return false; } return deleteQuietly(file.toPath()); } }
public class class_name { public static boolean deleteQuietly(@Nullable File file) { if (file == null) { return false; // depends on control dependency: [if], data = [none] } return deleteQuietly(file.toPath()); } }
public class class_name { public boolean interrupt (final String fireInstanceId) throws UnableToInterruptJobException { final ICommonsList <IJobExecutionContext> jobs = getCurrentlyExecutingJobs (); IJob job = null; for (final IJobExecutionContext jec : jobs) { if (jec.getFireInstanceId ().eq...
public class class_name { public boolean interrupt (final String fireInstanceId) throws UnableToInterruptJobException { final ICommonsList <IJobExecutionContext> jobs = getCurrentlyExecutingJobs (); IJob job = null; for (final IJobExecutionContext jec : jobs) { if (jec.getFireInstanceId ().eq...
public class class_name { public static <T> T parse(byte[] in, Class<T> mapTo) { try { JSONParser p = new JSONParser(DEFAULT_PERMISSIVE_MODE); return p.parse(in, defaultReader.getMapper(mapTo)); } catch (Exception e) { return null; } } }
public class class_name { public static <T> T parse(byte[] in, Class<T> mapTo) { try { JSONParser p = new JSONParser(DEFAULT_PERMISSIVE_MODE); return p.parse(in, defaultReader.getMapper(mapTo)); // depends on control dependency: [try], data = [none] } catch (Exception e) { return null; } // depends on c...
public class class_name { public boolean isConsistentWith(KbState other) { // Both states need to have the same functions in the same order. // Don't check the names specifically though, because it's expensive. Preconditions.checkArgument(other.functionNames.size() == functionNames.size()); List<F...
public class class_name { public boolean isConsistentWith(KbState other) { // Both states need to have the same functions in the same order. // Don't check the names specifically though, because it's expensive. Preconditions.checkArgument(other.functionNames.size() == functionNames.size()); List<F...
public class class_name { public static String isValidSqlWithMessage(Connection con, String sql, List<QueryParameter> parameters) { try { QueryUtil qu = new QueryUtil(con, DialectUtil.getDialect(con)); Map<String, QueryParameter> params = new HashMap<String, QueryParameter>(); for (QueryParameter qp : ...
public class class_name { public static String isValidSqlWithMessage(Connection con, String sql, List<QueryParameter> parameters) { try { QueryUtil qu = new QueryUtil(con, DialectUtil.getDialect(con)); Map<String, QueryParameter> params = new HashMap<String, QueryParameter>(); for (QueryParameter qp : ...
public class class_name { public Map<String, String> readPropertiesFromActiveProfiles( final String prefix, final String... properties ) { if (settings == null) { console.debug("No maven setting injected"); return Collecti...
public class class_name { public Map<String, String> readPropertiesFromActiveProfiles( final String prefix, final String... properties ) { if (settings == null) { console.debug("No maven setting injected"); // depends on control depen...
public class class_name { @InterfaceAudience.Public public void setIsDeletion(boolean isDeletion) { if (isDeletion == true) { properties.put("_deleted", true); } else { properties.remove("_deleted"); } } }
public class class_name { @InterfaceAudience.Public public void setIsDeletion(boolean isDeletion) { if (isDeletion == true) { properties.put("_deleted", true); // depends on control dependency: [if], data = [true)] } else { properties.remove("_deleted"); // depends on contro...
public class class_name { public void setButtonMode (int mode) { if (this.mode == mode) { return; } if (this.mode == BreakpointsParam.BUTTON_MODE_SIMPLE) { if (isBreakAll) { setBreakAll(false); setBreakRequest(true); setBreakResponse(true); } } else if (isBreakRequest || isBreakR...
public class class_name { public void setButtonMode (int mode) { if (this.mode == mode) { return; // depends on control dependency: [if], data = [none] } if (this.mode == BreakpointsParam.BUTTON_MODE_SIMPLE) { if (isBreakAll) { setBreakAll(false); // depends on control dependency: [if], data = [...
public class class_name { public static LongPredicate softenLongPredicate(final CheckedLongPredicate fn) { return t -> { try { return fn.test(t); } catch (final Throwable e) { throw throwSoftenedException(e); } }; } }
public class class_name { public static LongPredicate softenLongPredicate(final CheckedLongPredicate fn) { return t -> { try { return fn.test(t); // depends on control dependency: [try], data = [none] } catch (final Throwable e) { throw throwSoftenedExcep...
public class class_name { protected void loadClientMetadata(Map<String, Object> puProperties) { clientMetadata = new ClientMetadata(); String luceneDirectoryPath = puProperties != null ? (String) puProperties .get(PersistenceProperties.KUNDERA_INDEX_HOME_DIR) : null; ...
public class class_name { protected void loadClientMetadata(Map<String, Object> puProperties) { clientMetadata = new ClientMetadata(); String luceneDirectoryPath = puProperties != null ? (String) puProperties .get(PersistenceProperties.KUNDERA_INDEX_HOME_DIR) : null; ...
public class class_name { private void checkFieldType(int field, Type... expected) { Type actual = getType(field); for (Type type : expected) { if (actual.equals(type)) { return; } } throw new IllegalArgumentException(format("Expected field %...
public class class_name { private void checkFieldType(int field, Type... expected) { Type actual = getType(field); for (Type type : expected) { if (actual.equals(type)) { return; // depends on control dependency: [if], data = [none] } } throw...
public class class_name { public boolean waitForDisconnect(long timeout) { initErrorInfo(); RequestEvent event = parent.waitRequest(timeout); if (event == null) { setReturnCode(parent.getReturnCode()); setErrorMessage(parent.getErrorMessage()); setException(parent.getException()); ...
public class class_name { public boolean waitForDisconnect(long timeout) { initErrorInfo(); RequestEvent event = parent.waitRequest(timeout); if (event == null) { setReturnCode(parent.getReturnCode()); // depends on control dependency: [if], data = [none] setErrorMessage(parent.getErrorMessag...