code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static JSONCompareResult compareJson(final JSONString expected, final JSONString actual) { final JSONCompareResult result = new JSONCompareResult(); final String expectedJson = expected.toJSONString(); final String actualJson = actual.toJSONString(); if ...
public class class_name { public static JSONCompareResult compareJson(final JSONString expected, final JSONString actual) { final JSONCompareResult result = new JSONCompareResult(); final String expectedJson = expected.toJSONString(); final String actualJson = actual.toJSONString(); if ...
public class class_name { public boolean isTableMin() { // do not support GROUP BY for now if (m_groupByExpressions.isEmpty() == false) { return false; } if (m_aggregateTypes.size() != 1) { return false; } if (m_aggregateTypes.get(0).equals(Expres...
public class class_name { public boolean isTableMin() { // do not support GROUP BY for now if (m_groupByExpressions.isEmpty() == false) { return false; // depends on control dependency: [if], data = [none] } if (m_aggregateTypes.size() != 1) { return false; // de...
public class class_name { protected List<Name> parseSupertypes( TokenStream tokens ) { if (tokens.canConsume('>')) { // There is at least one supertype ... return parseNameList(tokens); } return Collections.emptyList(); } }
public class class_name { protected List<Name> parseSupertypes( TokenStream tokens ) { if (tokens.canConsume('>')) { // There is at least one supertype ... return parseNameList(tokens); // depends on control dependency: [if], data = [none] } return Collections.emptyList(...
public class class_name { public void forEach(final Function<T, Void> function) { for ( final ListenerEntry<T> entry : listeners.values() ) { entry.executor.execute ( new Runnable() { @Override publi...
public class class_name { public void forEach(final Function<T, Void> function) { for ( final ListenerEntry<T> entry : listeners.values() ) { entry.executor.execute ( new Runnable() { @Override publi...
public class class_name { @Override public boolean deliveryDelayableUnlock(PersistentTransaction tran, long lockID) throws MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deliveryDelayableUnlock", "tran=" + tran + "lockID=" + lock...
public class class_name { @Override public boolean deliveryDelayableUnlock(PersistentTransaction tran, long lockID) throws MessageStoreException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "deliveryDelayableUnlock", "tran=" + tran + "lockID=" + lock...
public class class_name { public void setInstanceLevel(int[] enabled, int[] enabledSync, int newLevel, boolean recursive) { // fine grained spec is not defined, use 5.0 level if (newLevel != PmiConstants.LEVEL_FINEGRAIN) { if (newLevel != PmiConstants.LEVEL_UNDEFINED) { setI...
public class class_name { public void setInstanceLevel(int[] enabled, int[] enabledSync, int newLevel, boolean recursive) { // fine grained spec is not defined, use 5.0 level if (newLevel != PmiConstants.LEVEL_FINEGRAIN) { if (newLevel != PmiConstants.LEVEL_UNDEFINED) { setI...
public class class_name { @Override public void decode(FacesContext context) { if (context == null) { throw new NullPointerException(); } // QUESTION can we move forward and support an array? no different than UISelectMany; perhaps need to know // if the value expressio...
public class class_name { @Override public void decode(FacesContext context) { if (context == null) { throw new NullPointerException(); } // QUESTION can we move forward and support an array? no different than UISelectMany; perhaps need to know // if the value expressio...
public class class_name { protected Set<String> getPrevExpandedRows() { Set<String> prev = getComponentModel().prevExpandedRows; if (prev == null) { return Collections.emptySet(); } else { return Collections.unmodifiableSet(prev); } } }
public class class_name { protected Set<String> getPrevExpandedRows() { Set<String> prev = getComponentModel().prevExpandedRows; if (prev == null) { return Collections.emptySet(); // depends on control dependency: [if], data = [none] } else { return Collections.unmodifiableSet(prev); // depends on control ...
public class class_name { public void visit(Predicate predicate) { if (traverser.isEnteringContext()) { initializePrinters(); } else if (traverser.isLeavingContext()) { printTable(); } super.visit(predicate); } }
public class class_name { public void visit(Predicate predicate) { if (traverser.isEnteringContext()) { initializePrinters(); // depends on control dependency: [if], data = [none] } else if (traverser.isLeavingContext()) { printTable(); // depends on ...
public class class_name { public void marshall(PlacedPlayerSession placedPlayerSession, ProtocolMarshaller protocolMarshaller) { if (placedPlayerSession == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(PlacedPlayerSession placedPlayerSession, ProtocolMarshaller protocolMarshaller) { if (placedPlayerSession == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void setKey(String key) { if (key == null) { clearKey(); } else { ThreadContext.putContext(dbName, key); } log.debug("set data source key[" + key + "]"); } }
public class class_name { public void setKey(String key) { if (key == null) { clearKey(); // depends on control dependency: [if], data = [none] } else { ThreadContext.putContext(dbName, key); // depends on control dependency: [if], data = [none] } log.debug("set ...
public class class_name { public String getExcludedUsers() { if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_excludedUsers)) { getToNames(); } if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_excludedUsers)) { return ""; } return m_excludedUsers; } }
public class class_name { public String getExcludedUsers() { if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_excludedUsers)) { getToNames(); // depends on control dependency: [if], data = [none] } if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_excludedUsers)) { return ""; // d...
public class class_name { public void marshall(GetIntegrationResponseRequest getIntegrationResponseRequest, ProtocolMarshaller protocolMarshaller) { if (getIntegrationResponseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(GetIntegrationResponseRequest getIntegrationResponseRequest, ProtocolMarshaller protocolMarshaller) { if (getIntegrationResponseRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { @SneakyThrows public static <R> Supplier<R> doIf(final boolean condition, final Supplier<R> trueFunction, final Supplier<R> falseFunction) { return () -> { try { if (condition) { return trueFunc...
public class class_name { @SneakyThrows public static <R> Supplier<R> doIf(final boolean condition, final Supplier<R> trueFunction, final Supplier<R> falseFunction) { return () -> { try { if (condition) { return trueFunc...
public class class_name { public List<ProjectResourceSpreadType.Period> getPeriod() { if (period == null) { period = new ArrayList<ProjectResourceSpreadType.Period>(); } return this.period; } }
public class class_name { public List<ProjectResourceSpreadType.Period> getPeriod() { if (period == null) { period = new ArrayList<ProjectResourceSpreadType.Period>(); // depends on control dependency: [if], data = [none] } return this.period; } }
public class class_name { @Override public void close() { if (this.closed.compareAndSet(false, true)) { this.connector.close(); log.info("{}: Closed.", this.traceObjectId); } } }
public class class_name { @Override public void close() { if (this.closed.compareAndSet(false, true)) { this.connector.close(); // depends on control dependency: [if], data = [none] log.info("{}: Closed.", this.traceObjectId); // depends on control dependency: [if], data = [none] ...
public class class_name { private AbstractPolicy matchPolicies(EvaluationCtx eval, Map<String, AbstractPolicy> policyList) throws TopLevelPolicyException { // setup a list of matching policies Map<String, AbstractPolicy> list = new Ha...
public class class_name { private AbstractPolicy matchPolicies(EvaluationCtx eval, Map<String, AbstractPolicy> policyList) throws TopLevelPolicyException { // setup a list of matching policies Map<String, AbstractPolicy> list = new Ha...
public class class_name { public static Integer getInteger(String propertyName, String envName, Integer defaultValue) { checkEnvName(envName); Integer propertyValue = NumberUtil.toIntObject(System.getProperty(propertyName), null); if (propertyValue != null) { return propertyValue; } else { propertyValue ...
public class class_name { public static Integer getInteger(String propertyName, String envName, Integer defaultValue) { checkEnvName(envName); Integer propertyValue = NumberUtil.toIntObject(System.getProperty(propertyName), null); if (propertyValue != null) { return propertyValue; // depends on control depend...
public class class_name { public static Throwable getThrowable(ServletRequest request) { Throwable error = (Throwable) request.getAttribute(SERVLET_EXCEPTION); if (error == null) { error = (Throwable) request.getAttribute(JSP_EXCEPTION); if (error != null) { /* * The only place that sets JSP_EXCEPTION...
public class class_name { public static Throwable getThrowable(ServletRequest request) { Throwable error = (Throwable) request.getAttribute(SERVLET_EXCEPTION); if (error == null) { error = (Throwable) request.getAttribute(JSP_EXCEPTION); // depends on control dependency: [if], data = [none] if (error != nu...
public class class_name { private List<StyleFilter> initStyleFilters(List<FeatureStyleInfo> styleDefinitions) throws GeomajasException { List<StyleFilter> styleFilters = new ArrayList<StyleFilter>(); if (styleDefinitions == null || styleDefinitions.size() == 0) { styleFilters.add(new StyleFilterImpl()); // use ...
public class class_name { private List<StyleFilter> initStyleFilters(List<FeatureStyleInfo> styleDefinitions) throws GeomajasException { List<StyleFilter> styleFilters = new ArrayList<StyleFilter>(); if (styleDefinitions == null || styleDefinitions.size() == 0) { styleFilters.add(new StyleFilterImpl()); // use ...
public class class_name { protected void clearLine() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < terminal.getWidth(); i++) { sb.append(" "); } console.out().print(sb.toString()); } }
public class class_name { protected void clearLine() { StringBuilder sb = new StringBuilder(); for (int i = 0; i < terminal.getWidth(); i++) { sb.append(" "); // depends on control dependency: [for], data = [none] } console.out().print(sb.toString()); } }
public class class_name { public final String entryRuleOperators() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleOperators = null; try { // InternalSARL.g:9544:49: (iv_ruleOperators= ruleOperators EOF ) // InternalSARL.g:9545:2: iv...
public class class_name { public final String entryRuleOperators() throws RecognitionException { String current = null; AntlrDatatypeRuleToken iv_ruleOperators = null; try { // InternalSARL.g:9544:49: (iv_ruleOperators= ruleOperators EOF ) // InternalSARL.g:9545:2: iv...
public class class_name { void add( LessExtend lessExtend, String[] mainSelector ) { if( mainSelector == null || mainSelector[0].startsWith( "@media" ) ) { mainSelector = lessExtend.getSelectors(); } else { mainSelector = SelectorUtils.merge( mainSelector, lessExtend.getSelector...
public class class_name { void add( LessExtend lessExtend, String[] mainSelector ) { if( mainSelector == null || mainSelector[0].startsWith( "@media" ) ) { mainSelector = lessExtend.getSelectors(); // depends on control dependency: [if], data = [none] } else { mainSelector = Sel...
public class class_name { public NumberFormat getNumberFormat(char field) { Character ovrField; ovrField = Character.valueOf(field); if (overrideMap != null && overrideMap.containsKey(ovrField)) { String nsName = overrideMap.get(ovrField).toString(); NumberFormat nf = nu...
public class class_name { public NumberFormat getNumberFormat(char field) { Character ovrField; ovrField = Character.valueOf(field); if (overrideMap != null && overrideMap.containsKey(ovrField)) { String nsName = overrideMap.get(ovrField).toString(); NumberFormat nf = nu...
public class class_name { public void marshall(MemberDefinition memberDefinition, ProtocolMarshaller protocolMarshaller) { if (memberDefinition == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(memb...
public class class_name { public void marshall(MemberDefinition memberDefinition, ProtocolMarshaller protocolMarshaller) { if (memberDefinition == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(memb...
public class class_name { public void addPredicate(final INodeReadTrx mTransaction) { assert getPipeStack().size() >= 2; final AbsAxis mPredicate = getPipeStack().pop().getExpr(); if (mPredicate instanceof LiteralExpr) { mPredicate.hasNext(); // if is numeric literal...
public class class_name { public void addPredicate(final INodeReadTrx mTransaction) { assert getPipeStack().size() >= 2; final AbsAxis mPredicate = getPipeStack().pop().getExpr(); if (mPredicate instanceof LiteralExpr) { mPredicate.hasNext(); // depends on control dependency: [i...
public class class_name { public double learn(double[] x, double[] y, double weight) { setInput(x); propagate(); double err = weight * computeOutputError(y); if (weight != 1.0) { for (int i = 0; i < outputLayer.units; i++) { outputLayer.error[i] *= weight; ...
public class class_name { public double learn(double[] x, double[] y, double weight) { setInput(x); propagate(); double err = weight * computeOutputError(y); if (weight != 1.0) { for (int i = 0; i < outputLayer.units; i++) { outputLayer.error[i] *= weight; ...
public class class_name { private void plan() { // Mapping of stealer node to list of primary partitions being moved final TreeMultimap<Integer, Integer> stealerToStolenPrimaryPartitions = TreeMultimap.create(); // Output initial and final cluster if(outputDir != null) Reba...
public class class_name { private void plan() { // Mapping of stealer node to list of primary partitions being moved final TreeMultimap<Integer, Integer> stealerToStolenPrimaryPartitions = TreeMultimap.create(); // Output initial and final cluster if(outputDir != null) Reba...
public class class_name { public EClass getMMO() { if (mmoEClass == null) { mmoEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(300); } return mmoEClass; } }
public class class_name { public EClass getMMO() { if (mmoEClass == null) { mmoEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(300); // depends on control dependency: [if], data = [none] } return mmoEClass; } }
public class class_name { public TableRef create(String primaryKeyName, StorageDataType primaryKeyDataType, String secondaryKeyName, StorageDataType secondaryKeyDataType, StorageProvisionType provisionType, StorageProvisionLoad provisionLoad, OnTableCreation onTableCreation, OnError onError){ PostBodyBuild...
public class class_name { public TableRef create(String primaryKeyName, StorageDataType primaryKeyDataType, String secondaryKeyName, StorageDataType secondaryKeyDataType, StorageProvisionType provisionType, StorageProvisionLoad provisionLoad, OnTableCreation onTableCreation, OnError onError){ PostBodyBuild...
public class class_name { public static String addObjects( Object... objects ) { int length = 0; for ( Object obj : objects ) { if ( obj == null ) { continue; } length += obj.toString().length(); } CharBuf builder = CharBuf.createExact...
public class class_name { public static String addObjects( Object... objects ) { int length = 0; for ( Object obj : objects ) { if ( obj == null ) { continue; } length += obj.toString().length(); // depends on control dependency: [for], data = [obj] ...
public class class_name { public void marshall(UpdateBranchRequest updateBranchRequest, ProtocolMarshaller protocolMarshaller) { if (updateBranchRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(UpdateBranchRequest updateBranchRequest, ProtocolMarshaller protocolMarshaller) { if (updateBranchRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { private void calculateMenuItemPosition() { float itemRadius = (expandedRadius + collapsedRadius) / 2, f; RectF area = new RectF( center.x - itemRadius, center.y - itemRadius, center.x + itemRadius, center.y + ite...
public class class_name { private void calculateMenuItemPosition() { float itemRadius = (expandedRadius + collapsedRadius) / 2, f; RectF area = new RectF( center.x - itemRadius, center.y - itemRadius, center.x + itemRadius, center.y + ite...
public class class_name { @Override public final void encryptLogs() throws Exception { if (this.logDir != null && this.logDir.exists() && !this.logDir.isFile()) { File[] files = this.logDir.listFiles(); if (files != null) { for (File fl : files) { if (fl.getName().endsWith(".log")) ...
public class class_name { @Override public final void encryptLogs() throws Exception { if (this.logDir != null && this.logDir.exists() && !this.logDir.isFile()) { File[] files = this.logDir.listFiles(); if (files != null) { for (File fl : files) { if (fl.getName().endsWith(".log")) ...
public class class_name { public static double getDoubleParameter(final ServletRequest pReq, final String pName, final double pDefault) { String str = pReq.getParameter(pName); try { return str != null ? Double.parseDouble(str) : pDefault; } catch (NumberFormatExcepti...
public class class_name { public static double getDoubleParameter(final ServletRequest pReq, final String pName, final double pDefault) { String str = pReq.getParameter(pName); try { return str != null ? Double.parseDouble(str) : pDefault; // depends on control dependency: [try], data...
public class class_name { @Override public int size() { try { lockAllSegments(); int size = 0; for (LinkedHashMapSegment<K, V> seg : segments) { size += seg.size(); } return size; } finally { unlockAllSegments()...
public class class_name { @Override public int size() { try { lockAllSegments(); // depends on control dependency: [try], data = [none] int size = 0; for (LinkedHashMapSegment<K, V> seg : segments) { size += seg.size(); // depends on control dependency: [...
public class class_name { public int lookForSelectablePosition(int position, boolean lookDown) { final ListAdapter adapter = getAdapter(); if (adapter == null || isInTouchMode()) { return INVALID_POSITION; } final int count = adapter.getCount(); if (!getAdapter().are...
public class class_name { public int lookForSelectablePosition(int position, boolean lookDown) { final ListAdapter adapter = getAdapter(); if (adapter == null || isInTouchMode()) { return INVALID_POSITION; // depends on control dependency: [if], data = [none] } final int cou...
public class class_name { void addTranscoderAt(Transcoder transcoder, int i) { if (numTranscoders == elements.length) { EConvElement[] tmp = new EConvElement[elements.length * 2]; System.arraycopy(elements, 0, tmp, 0, i); System.arraycopy(elements, i, tmp, i + 1, element...
public class class_name { void addTranscoderAt(Transcoder transcoder, int i) { if (numTranscoders == elements.length) { EConvElement[] tmp = new EConvElement[elements.length * 2]; System.arraycopy(elements, 0, tmp, 0, i); // depends on control dependency: [if], data = [none] ...
public class class_name { public List<String> getPossiblePaths(int maxDepth) { if (allDissectors.isEmpty()) { return Collections.emptyList(); // nothing to do. } try { assembleDissectors(); } catch (MissingDissectorsException | InvalidDissectorException e) { ...
public class class_name { public List<String> getPossiblePaths(int maxDepth) { if (allDissectors.isEmpty()) { return Collections.emptyList(); // nothing to do. // depends on control dependency: [if], data = [none] } try { assembleDissectors(); // depends on control depe...
public class class_name { protected <Y> T getUniqueByAttribute(String attributeName, Y value) { try { return getDatabaseSupport().getUniqueByAttribute(getEntityClass(), attributeName, value); } catch (NoResultException ex) { return null; } } }
public class class_name { protected <Y> T getUniqueByAttribute(String attributeName, Y value) { try { return getDatabaseSupport().getUniqueByAttribute(getEntityClass(), attributeName, value); // depends on control dependency: [try], data = [none] } catch (NoResultException ex) { ...
public class class_name { private String buildMapClickMessage(LatLng latLng, double zoom, BoundingBox boundingBox, double tolerance, Projection projection) { String message = null; // Verify the features are indexed and we are getting information if (isIndexed() && (maxFeaturesInfo || features...
public class class_name { private String buildMapClickMessage(LatLng latLng, double zoom, BoundingBox boundingBox, double tolerance, Projection projection) { String message = null; // Verify the features are indexed and we are getting information if (isIndexed() && (maxFeaturesInfo || features...
public class class_name { @SuppressWarnings("unchecked") public static <T> T invoke(Object object, Class<?> clazz, String methodName, Object... arguments) throws Exception { Params.notNull(clazz, "Class"); Params.notNullOrEmpty(methodName, "Method name"); Class<?>[] parameterTypes = getParameterTy...
public class class_name { @SuppressWarnings("unchecked") public static <T> T invoke(Object object, Class<?> clazz, String methodName, Object... arguments) throws Exception { Params.notNull(clazz, "Class"); Params.notNullOrEmpty(methodName, "Method name"); Class<?>[] parameterTypes = getParameterTy...
public class class_name { @Nullable public ExpressionStatement rewrite(ExpressionStatement stat) { try { if (!isInteraction(stat)) return null; createBuilder(); setCount(); setCall(); addResponses(); build(); return register(); } catch (InvalidSpecCompileException e...
public class class_name { @Nullable public ExpressionStatement rewrite(ExpressionStatement stat) { try { if (!isInteraction(stat)) return null; createBuilder(); // depends on control dependency: [try], data = [none] setCount(); // depends on control dependency: [try], data = [none] setCa...
public class class_name { private static void listResourceNotes(ProjectFile file) { for (Resource resource : file.getResources()) { String notes = resource.getNotes(); if (notes.length() != 0) { System.out.println("Notes for " + resource.getName() + ": " + notes);...
public class class_name { private static void listResourceNotes(ProjectFile file) { for (Resource resource : file.getResources()) { String notes = resource.getNotes(); if (notes.length() != 0) { System.out.println("Notes for " + resource.getName() + ": " + notes);...
public class class_name { protected void fireMySelectionChanged(MyListSelectionEvent event) { this.selectionChanged(event.getSource(), event.getRow(), event.getRow(), event.getType()); // Make sure model knows // Guaranteed to return a non-null array Object[] listeners = listenerList.getLi...
public class class_name { protected void fireMySelectionChanged(MyListSelectionEvent event) { this.selectionChanged(event.getSource(), event.getRow(), event.getRow(), event.getType()); // Make sure model knows // Guaranteed to return a non-null array Object[] listeners = listenerList.getLi...
public class class_name { public String getDatabasePlatformClassName(PUInfoImpl pui) { SessionLog traceLogger = new TraceLog(); Properties properties = pui.getProperties(); String productName = properties.getProperty(PersistenceUnitProperties.SCHEMA_DATABASE_PRODUCT_NAME); String vend...
public class class_name { public String getDatabasePlatformClassName(PUInfoImpl pui) { SessionLog traceLogger = new TraceLog(); Properties properties = pui.getProperties(); String productName = properties.getProperty(PersistenceUnitProperties.SCHEMA_DATABASE_PRODUCT_NAME); String vend...
public class class_name { @GwtIncompatible("incompatible method") private static boolean memberEquals(final Class<?> type, final Object o1, final Object o2) { if (o1 == o2) { return true; } if (o1 == null || o2 == null) { return false; } if (type.isAr...
public class class_name { @GwtIncompatible("incompatible method") private static boolean memberEquals(final Class<?> type, final Object o1, final Object o2) { if (o1 == o2) { return true; // depends on control dependency: [if], data = [none] } if (o1 == null || o2 == null) { ...
public class class_name { public UnassignIpv6AddressesRequest withIpv6Addresses(String... ipv6Addresses) { if (this.ipv6Addresses == null) { setIpv6Addresses(new com.amazonaws.internal.SdkInternalList<String>(ipv6Addresses.length)); } for (String ele : ipv6Addresses) { t...
public class class_name { public UnassignIpv6AddressesRequest withIpv6Addresses(String... ipv6Addresses) { if (this.ipv6Addresses == null) { setIpv6Addresses(new com.amazonaws.internal.SdkInternalList<String>(ipv6Addresses.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public int prestartAllCoreThreads() { int answer = 0; synchronized (workers) { for (int i = super.getCorePoolSize() - workers.size() ; i > 0; i --) { addWorker(); answer ++; } } return answer...
public class class_name { @Override public int prestartAllCoreThreads() { int answer = 0; synchronized (workers) { for (int i = super.getCorePoolSize() - workers.size() ; i > 0; i --) { addWorker(); // depends on control dependency: [for], data = [none] a...
public class class_name { public void addChildTask(Task child, int childOutlineLevel) { int outlineLevel = NumberHelper.getInt(getOutlineLevel()); if ((outlineLevel + 1) == childOutlineLevel) { m_children.add(child); setSummary(true); } else { if (m_ch...
public class class_name { public void addChildTask(Task child, int childOutlineLevel) { int outlineLevel = NumberHelper.getInt(getOutlineLevel()); if ((outlineLevel + 1) == childOutlineLevel) { m_children.add(child); // depends on control dependency: [if], data = [none] setSumma...
public class class_name { @SuppressWarnings("unchecked") public List<String> getModuleParamList(String moduleName, String paramName) { Map<String, Object> moduleParams = getModuleParams(moduleName); if (moduleParams == null || !moduleParams.containsKey(paramName)) { return null; ...
public class class_name { @SuppressWarnings("unchecked") public List<String> getModuleParamList(String moduleName, String paramName) { Map<String, Object> moduleParams = getModuleParams(moduleName); if (moduleParams == null || !moduleParams.containsKey(paramName)) { return null; //...
public class class_name { public static int weekCount(Date start, Date end) { final Calendar startCalendar = Calendar.getInstance(); startCalendar.setTime(start); final Calendar endCalendar = Calendar.getInstance(); endCalendar.setTime(end); final int startWeekofYear = startCalendar.get(Calendar.WEEK_...
public class class_name { public static int weekCount(Date start, Date end) { final Calendar startCalendar = Calendar.getInstance(); startCalendar.setTime(start); final Calendar endCalendar = Calendar.getInstance(); endCalendar.setTime(end); final int startWeekofYear = startCalendar.get(Calendar.WEEK_...
public class class_name { public static boolean allowDefaultDataSourceUse(PersistenceUnitMetadata pu) { boolean result = true; if (pu.getProperties().containsKey(Configuration.JPA_ALLOW_DEFAULT_DATA_SOURCE_USE)) { result = Boolean.parseBoolean(pu.getProperties().getProperty(Configuration.JP...
public class class_name { public static boolean allowDefaultDataSourceUse(PersistenceUnitMetadata pu) { boolean result = true; if (pu.getProperties().containsKey(Configuration.JPA_ALLOW_DEFAULT_DATA_SOURCE_USE)) { result = Boolean.parseBoolean(pu.getProperties().getProperty(Configuration.JP...
public class class_name { private boolean isUUID(String uuid) { try { UUID.fromString(uuid); return true; } catch (Exception ex) { return false; } } }
public class class_name { private boolean isUUID(String uuid) { try { UUID.fromString(uuid); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [try], data = [none] } catch (Exception ex) { return false; } //...
public class class_name { private void initGraphics() { // Set initial size if (Double.compare(gauge.getPrefWidth(), 0.0) <= 0 || Double.compare(gauge.getPrefHeight(), 0.0) <= 0 || Double.compare(gauge.getWidth(), 0.0) <= 0 || Double.compare(gauge.getHeight(), 0.0) <= 0) { if (g...
public class class_name { private void initGraphics() { // Set initial size if (Double.compare(gauge.getPrefWidth(), 0.0) <= 0 || Double.compare(gauge.getPrefHeight(), 0.0) <= 0 || Double.compare(gauge.getWidth(), 0.0) <= 0 || Double.compare(gauge.getHeight(), 0.0) <= 0) { if (g...
public class class_name { void selectView(String viewName) { if (DETAILS.equals(viewName)) { getList().removeStyleName(I_CmsLayoutBundle.INSTANCE.galleryResultItemCss().tilingList()); } else if (SMALL.equals(viewName)) { getList().addStyleName(I_CmsLayoutBundle.INSTANCE.gallery...
public class class_name { void selectView(String viewName) { if (DETAILS.equals(viewName)) { getList().removeStyleName(I_CmsLayoutBundle.INSTANCE.galleryResultItemCss().tilingList()); // depends on control dependency: [if], data = [none] } else if (SMALL.equals(viewName)) { get...
public class class_name { private void updateComplex(String string) { if (string != null && StringUtils.getExpressionKey(string) != null && !string.equals(StringUtils.getExpressionKey(string))) { complex = true; } } }
public class class_name { private void updateComplex(String string) { if (string != null && StringUtils.getExpressionKey(string) != null && !string.equals(StringUtils.getExpressionKey(string))) { complex = true; // depends on control dependency: [if], data = [none] } } }
public class class_name { public static File[] getVersionDirs(File rootDir, final long minId, final long maxId) { return rootDir.listFiles(new FileFilter() { public boolean accept(File pathName) { if(checkVersionDirName(pathName)) { long versionId = getVersionId...
public class class_name { public static File[] getVersionDirs(File rootDir, final long minId, final long maxId) { return rootDir.listFiles(new FileFilter() { public boolean accept(File pathName) { if(checkVersionDirName(pathName)) { long versionId = getVersionId...
public class class_name { public boolean renderPickedItemStack(ItemStack itemStack) { if (itemStack == null || itemStack == ItemStack.EMPTY) return false; int size = itemStack.getCount(); String label = null; if (size == 0) { itemStack.setCount(size != 0 ? size : 1); label = TextFormatting.YELLOW ...
public class class_name { public boolean renderPickedItemStack(ItemStack itemStack) { if (itemStack == null || itemStack == ItemStack.EMPTY) return false; int size = itemStack.getCount(); String label = null; if (size == 0) { itemStack.setCount(size != 0 ? size : 1); // depends on control dependency:...
public class class_name { public static boolean isVersion(Node node) { try { if (node.isNodeType("nt:version")) return true; return false; } catch (RepositoryException exc) { LOG.error(exc.getMessage(), exc); return false; ...
public class class_name { public static boolean isVersion(Node node) { try { if (node.isNodeType("nt:version")) return true; return false; // depends on control dependency: [try], data = [none] } catch (RepositoryException exc) { LOG.err...
public class class_name { @Override public List<EnhanceEntity> populateRelation(EntityMetadata m, Client client, int maxResults) { // TODO: maxresults to be taken care after work on pagination. List<EnhanceEntity> ls = null; List<String> relationNames = m.getRelationNames(); ...
public class class_name { @Override public List<EnhanceEntity> populateRelation(EntityMetadata m, Client client, int maxResults) { // TODO: maxresults to be taken care after work on pagination. List<EnhanceEntity> ls = null; List<String> relationNames = m.getRelationNames(); ...
public class class_name { public static Date nextDay(Date date, int day) { Calendar cal = Calendar.getInstance(); if (date != null) { cal.setTime(date); } cal.add(Calendar.DAY_OF_YEAR, day); return cal.getTime(); } }
public class class_name { public static Date nextDay(Date date, int day) { Calendar cal = Calendar.getInstance(); if (date != null) { cal.setTime(date); // depends on control dependency: [if], data = [(date] } cal.add(Calendar.DAY_OF_YEAR, day); return cal.getT...
public class class_name { public List<AssetPath> getAssetPaths() { ArrayList<AssetPath> assetPaths = new ArrayList<>(apk_assets_.size()); for (CppApkAssets apkAssets : apk_assets_) { Path path = Fs.fromUrl(apkAssets.GetPath()); assetPaths.add(new AssetPath(path, apkAssets.GetLoadedArsc().IsSystem()...
public class class_name { public List<AssetPath> getAssetPaths() { ArrayList<AssetPath> assetPaths = new ArrayList<>(apk_assets_.size()); for (CppApkAssets apkAssets : apk_assets_) { Path path = Fs.fromUrl(apkAssets.GetPath()); assetPaths.add(new AssetPath(path, apkAssets.GetLoadedArsc().IsSystem()...
public class class_name { @Override public int countByG_S_A(long groupId, boolean shippingAllowed, boolean active) { FinderPath finderPath = FINDER_PATH_COUNT_BY_G_S_A; Object[] finderArgs = new Object[] { groupId, shippingAllowed, active }; Long count = (Long)finderCache.getResult(finderPath, finderArgs, t...
public class class_name { @Override public int countByG_S_A(long groupId, boolean shippingAllowed, boolean active) { FinderPath finderPath = FINDER_PATH_COUNT_BY_G_S_A; Object[] finderArgs = new Object[] { groupId, shippingAllowed, active }; Long count = (Long)finderCache.getResult(finderPath, finderArgs, t...
public class class_name { @Override @Async public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) { // We need to use the generic OsgiBundleApplicationContextEvent here and test // for instanceof since gemini-blueprint does not correctly determine // the event type ...
public class class_name { @Override @Async public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) { // We need to use the generic OsgiBundleApplicationContextEvent here and test // for instanceof since gemini-blueprint does not correctly determine // the event type ...
public class class_name { public ProviderConfiguration discover() { Map responseAttributes = this.restTemplate.getForObject(this.providerLocation, Map.class); ProviderConfiguration.Builder builder = new ProviderConfiguration.Builder(); builder.issuer((String)responseAttributes.get(ISSUER_ATTR_NAME)); builder...
public class class_name { public ProviderConfiguration discover() { Map responseAttributes = this.restTemplate.getForObject(this.providerLocation, Map.class); ProviderConfiguration.Builder builder = new ProviderConfiguration.Builder(); builder.issuer((String)responseAttributes.get(ISSUER_ATTR_NAME)); builder...
public class class_name { @SuppressWarnings("unchecked") protected <T> Class<T> getClassOrDefault(final String className, final Class<T> defaultResult) { try { return className == null ? defaultResult : (Class<T>)Class.forName(className); } catch ...
public class class_name { @SuppressWarnings("unchecked") protected <T> Class<T> getClassOrDefault(final String className, final Class<T> defaultResult) { try { return className == null ? defaultResult : (Class<T>)Class.forName(className); // depends on co...
public class class_name { public static BufferedImage getIndexedImage(BufferedImage pImage, IndexColorModel pColors, Color pMatte, int pHints) { // TODO: Consider: /* if (pImage.getType() == BufferedImage.TYPE_BYTE_INDEXED || pImage.getType() == BufferedImage.TYPE_BYTE_BINARY) {...
public class class_name { public static BufferedImage getIndexedImage(BufferedImage pImage, IndexColorModel pColors, Color pMatte, int pHints) { // TODO: Consider: /* if (pImage.getType() == BufferedImage.TYPE_BYTE_INDEXED || pImage.getType() == BufferedImage.TYPE_BYTE_BINARY) {...
public class class_name { public static synchronized void startMsg() { Log.startZeit.setTime(System.currentTimeMillis()); Log.versionMsg(Const.PROGRAMMNAME); Log.sysLog(Log.LILNE); Log.sysLog(""); Log.sysLog("Programmpfad: " + Functions.getPathJar()); Log.sysLog("Filmlis...
public class class_name { public static synchronized void startMsg() { Log.startZeit.setTime(System.currentTimeMillis()); Log.versionMsg(Const.PROGRAMMNAME); Log.sysLog(Log.LILNE); Log.sysLog(""); Log.sysLog("Programmpfad: " + Functions.getPathJar()); Log.sysLog("Filmlis...
public class class_name { public void addMemberDescription(VariableElement field, DocTree serialFieldTag, Content contentTree) { CommentHelper ch = utils.getCommentHelper(field); List<? extends DocTree> description = ch.getDescription(configuration, serialFieldTag); if (!description.isEmpty()) ...
public class class_name { public void addMemberDescription(VariableElement field, DocTree serialFieldTag, Content contentTree) { CommentHelper ch = utils.getCommentHelper(field); List<? extends DocTree> description = ch.getDescription(configuration, serialFieldTag); if (!description.isEmpty()) ...
public class class_name { protected T createInstance() { try { return ObjectUtils.newInstance(tClass); } catch (Exception e) { throw new IllegalStateException("Some of default marshallers, chosen for the type\n" + tClass + " by default, delegate to \n" + ...
public class class_name { protected T createInstance() { try { return ObjectUtils.newInstance(tClass); // depends on control dependency: [try], data = [none] } catch (Exception e) { throw new IllegalStateException("Some of default marshallers, chosen for the type\n" + ...
public class class_name { private static Set<Method> findLockedMethods(ClassContext classContext, SelfCalls selfCalls, Set<CallSite> obviouslyLockedSites) { JavaClass javaClass = classContext.getJavaClass(); Method[] methodList = javaClass.getMethods(); CallGraph callGraph = selfCalls.get...
public class class_name { private static Set<Method> findLockedMethods(ClassContext classContext, SelfCalls selfCalls, Set<CallSite> obviouslyLockedSites) { JavaClass javaClass = classContext.getJavaClass(); Method[] methodList = javaClass.getMethods(); CallGraph callGraph = selfCalls.get...
public class class_name { public boolean processThisRecord(Record record) { if (record == null) return false; boolean bPhysicalName = true; if (DBConstants.TRUE.equalsIgnoreCase(this.getProperty(USE_DATABASE_NAME))) bPhysicalName = false; String strFilename =...
public class class_name { public boolean processThisRecord(Record record) { if (record == null) return false; boolean bPhysicalName = true; if (DBConstants.TRUE.equalsIgnoreCase(this.getProperty(USE_DATABASE_NAME))) bPhysicalName = false; String strFilename =...
public class class_name { private boolean processLoginSession(String loginContent) { LoginSession loginSession = bot.session(); Matcher matcher = PROCESS_LOGIN_PATTERN.matcher(loginContent); if (matcher.find()) { loginSession.setUrl(matcher.group(1)); } Api...
public class class_name { private boolean processLoginSession(String loginContent) { LoginSession loginSession = bot.session(); Matcher matcher = PROCESS_LOGIN_PATTERN.matcher(loginContent); if (matcher.find()) { loginSession.setUrl(matcher.group(1)); // depends on control...
public class class_name { public static ComputationGraphConfiguration.GraphBuilder inceptionV1ResC( ComputationGraphConfiguration.GraphBuilder graph, String blockName, int scale, double activationScale, String input) { // loop and add each subsequent resnet blocks ...
public class class_name { public static ComputationGraphConfiguration.GraphBuilder inceptionV1ResC( ComputationGraphConfiguration.GraphBuilder graph, String blockName, int scale, double activationScale, String input) { // loop and add each subsequent resnet blocks ...
public class class_name { private void createRelationshipForCollectionOfPrimitivesOrMap(AssociationKey associationKey, String collectionRole, String[] columnNames, StringBuilder queryBuilder) { String relationshipType = collectionRole; if ( isPartOfEmbedded( collectionRole ) ) { queryBuilder.append( " MERGE (ow...
public class class_name { private void createRelationshipForCollectionOfPrimitivesOrMap(AssociationKey associationKey, String collectionRole, String[] columnNames, StringBuilder queryBuilder) { String relationshipType = collectionRole; if ( isPartOfEmbedded( collectionRole ) ) { queryBuilder.append( " MERGE (ow...
public class class_name { public static File appendToFile(String filename, String extraContent, boolean onNewLine){ PrintWriter pw = null; try { pw = new PrintWriter( new BufferedWriter( new OutputStreamWriter( ...
public class class_name { public static File appendToFile(String filename, String extraContent, boolean onNewLine){ PrintWriter pw = null; try { pw = new PrintWriter( new BufferedWriter( new OutputStreamWriter( ...
public class class_name { public void loadWithTimeout(int timeout) { for (String stylesheet : m_stylesheets) { boolean alreadyLoaded = checkStylesheet(stylesheet); if (alreadyLoaded) { m_loadCounter += 1; } else { appendStylesheet(stylesheet,...
public class class_name { public void loadWithTimeout(int timeout) { for (String stylesheet : m_stylesheets) { boolean alreadyLoaded = checkStylesheet(stylesheet); if (alreadyLoaded) { m_loadCounter += 1; // depends on control dependency: [if], data = [none] ...
public class class_name { public void setMetaDataSlotService(MetaDataSlotService slotService) { JaxWsMetaDataManager.jaxwsApplicationSlot = slotService.reserveMetaDataSlot(ApplicationMetaData.class); JaxWsMetaDataManager.jaxwsModuleSlot = slotService.reserveMetaDataSlot(ModuleMetaData.class); J...
public class class_name { public void setMetaDataSlotService(MetaDataSlotService slotService) { JaxWsMetaDataManager.jaxwsApplicationSlot = slotService.reserveMetaDataSlot(ApplicationMetaData.class); JaxWsMetaDataManager.jaxwsModuleSlot = slotService.reserveMetaDataSlot(ModuleMetaData.class); J...
public class class_name { @Override protected final void checkIntegrity () throws InternetSCSIException { String exceptionMessage; do { if (status != LoginStatus.SUCCESS && statusSequenceNumber != 0) { exceptionMessage = "While no successful login is preformed, the Stat...
public class class_name { @Override protected final void checkIntegrity () throws InternetSCSIException { String exceptionMessage; do { if (status != LoginStatus.SUCCESS && statusSequenceNumber != 0) { exceptionMessage = "While no successful login is preformed, the Stat...
public class class_name { public boolean setTypeface(GVRContext gvrContext, String font, fontStyleTypes style) { if ( !font.equals(DEFAULT_FONT) ) { try { Context context = gvrContext.getContext(); int styleType = Typeface.NORMAL; if (style == fontSty...
public class class_name { public boolean setTypeface(GVRContext gvrContext, String font, fontStyleTypes style) { if ( !font.equals(DEFAULT_FONT) ) { try { Context context = gvrContext.getContext(); int styleType = Typeface.NORMAL; if (style == fontSty...
public class class_name { private String getRealmName() { String realm = "defaultRealm"; try { UserRegistry ur = RegistryHelper.getUserRegistry(null); if (ur != null) { String r = ur.getRealm(); if (r != null) { realm = r; ...
public class class_name { private String getRealmName() { String realm = "defaultRealm"; try { UserRegistry ur = RegistryHelper.getUserRegistry(null); if (ur != null) { String r = ur.getRealm(); if (r != null) { realm = r; // d...
public class class_name { String[] polled_device() { Util.out4.println("In polled_device command"); final int nb_class = class_list.size(); final Vector dev_name = new Vector(); for (int i = 0; i < nb_class; i++) { final DeviceClass dc = (DeviceClass) class_list.elementAt(i...
public class class_name { String[] polled_device() { Util.out4.println("In polled_device command"); final int nb_class = class_list.size(); final Vector dev_name = new Vector(); for (int i = 0; i < nb_class; i++) { final DeviceClass dc = (DeviceClass) class_list.elementAt(i...
public class class_name { protected void addStepFailureContextData( StepExecutionResult stepResult, ExecutionContextImpl.Builder builder ) { HashMap<String, String> resultData = new HashMap<>(); if (null != stepResult.getFailureData()) { //con...
public class class_name { protected void addStepFailureContextData( StepExecutionResult stepResult, ExecutionContextImpl.Builder builder ) { HashMap<String, String> resultData = new HashMap<>(); if (null != stepResult.getFailureData()) { //con...
public class class_name { public static String getUniqueNameProtocol(ProviderConfig providerConfig, String protocol) { if (StringUtils.isNotEmpty(protocol)) { return getUniqueName(providerConfig) + "@" + protocol; } else { return getUniqueName(providerConfig); } } }
public class class_name { public static String getUniqueNameProtocol(ProviderConfig providerConfig, String protocol) { if (StringUtils.isNotEmpty(protocol)) { return getUniqueName(providerConfig) + "@" + protocol; // depends on control dependency: [if], data = [none] } else { re...
public class class_name { private RedBlackTreeNode<Key, Value> floor(RedBlackTreeNode<Key, Value> x, Key key) { if (x == null) { return null; } int cmp = key.compareTo(x.getKey()); if (cmp == 0) { return x; } if (cmp < 0) { return floor(x.getLeft(), key); } RedBlackTreeNode<Key, Value> t = floor...
public class class_name { private RedBlackTreeNode<Key, Value> floor(RedBlackTreeNode<Key, Value> x, Key key) { if (x == null) { return null; // depends on control dependency: [if], data = [none] } int cmp = key.compareTo(x.getKey()); if (cmp == 0) { return x; // depends on control dependency: [if], data...
public class class_name { public static String getShortDateString(long time, String format) { if (format == null || format.isEmpty()) { format = "yyyy-MM-dd"; } SimpleDateFormat smpf = new SimpleDateFormat(format); return smpf.format(new Date(time)); } }
public class class_name { public static String getShortDateString(long time, String format) { if (format == null || format.isEmpty()) { format = "yyyy-MM-dd"; // depends on control dependency: [if], data = [none] } SimpleDateFormat smpf = new SimpleDateFormat(format); retur...
public class class_name { public final void containsNoDuplicates() { List<Entry<?>> duplicates = newArrayList(); for (Multiset.Entry<?> entry : LinkedHashMultiset.create(actual()).entrySet()) { if (entry.getCount() > 1) { duplicates.add(entry); } } if (!duplicates.isEmpty()) { ...
public class class_name { public final void containsNoDuplicates() { List<Entry<?>> duplicates = newArrayList(); for (Multiset.Entry<?> entry : LinkedHashMultiset.create(actual()).entrySet()) { if (entry.getCount() > 1) { duplicates.add(entry); // depends on control dependency: [if], data = [none...
public class class_name { public RoundedMoney pow(int n) { MathContext mc = monetaryContext.get(MathContext.class); if(mc==null){ mc = MathContext.DECIMAL64; } return new RoundedMoney(number.pow(n, mc), currency, rounding).with(rounding); } }
public class class_name { public RoundedMoney pow(int n) { MathContext mc = monetaryContext.get(MathContext.class); if(mc==null){ mc = MathContext.DECIMAL64; // depends on control dependency: [if], data = [none] } return new RoundedMoney(number.pow(n, mc), cu...
public class class_name { public static String toHeaderValue(long timeoutNanos) { final long cutoff = 100000000; if (timeoutNanos < 0) { throw new IllegalArgumentException("Timeout too small"); } else if (timeoutNanos < cutoff) { return TimeUnit.NANOSECONDS.toNanos(timeo...
public class class_name { public static String toHeaderValue(long timeoutNanos) { final long cutoff = 100000000; if (timeoutNanos < 0) { throw new IllegalArgumentException("Timeout too small"); } else if (timeoutNanos < cutoff) { return TimeUnit.NANOSECONDS.toNanos(timeo...
public class class_name { public void normalize() { if (llx > urx) { float a = llx; llx = urx; urx = a; } if (lly > ury) { float a = lly; lly = ury; ury = a; } } }
public class class_name { public void normalize() { if (llx > urx) { float a = llx; llx = urx; // depends on control dependency: [if], data = [none] urx = a; // depends on control dependency: [if], data = [none] } if (lly > ury) { float a = lly; lly = ury; // depends on control dependency: [if], d...
public class class_name { public ListResourcesForTagOptionResult withResourceDetails(ResourceDetail... resourceDetails) { if (this.resourceDetails == null) { setResourceDetails(new java.util.ArrayList<ResourceDetail>(resourceDetails.length)); } for (ResourceDetail ele : resourceDeta...
public class class_name { public ListResourcesForTagOptionResult withResourceDetails(ResourceDetail... resourceDetails) { if (this.resourceDetails == null) { setResourceDetails(new java.util.ArrayList<ResourceDetail>(resourceDetails.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { private void enforceCorrectLoadOrder(UIViewRoot root, FacesContext context) { // // first, handle the CSS files. // // Put BootsFaces.css or BootsFaces.min.css first, // // theme.css second // // and everything else behind them. List<UIComponent> resources = new ArrayList<UIComponen...
public class class_name { private void enforceCorrectLoadOrder(UIViewRoot root, FacesContext context) { // // first, handle the CSS files. // // Put BootsFaces.css or BootsFaces.min.css first, // // theme.css second // // and everything else behind them. List<UIComponent> resources = new ArrayList<UIComponen...
public class class_name { public static boolean isIntValue(final String value) { try { Integer.parseInt(value); return true; } catch (final NumberFormatException ex) { return false; } } }
public class class_name { public static boolean isIntValue(final String value) { try { Integer.parseInt(value); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [try], data = [none] } catch (final NumberFormatException ex) { ...
public class class_name { public static RetentionPolicy getRetentionPolicy(Class<? extends Annotation> annotationType) { final Retention retention = annotationType.getAnnotation(Retention.class); if (null == retention) { return RetentionPolicy.CLASS; } return retention.value(); } }
public class class_name { public static RetentionPolicy getRetentionPolicy(Class<? extends Annotation> annotationType) { final Retention retention = annotationType.getAnnotation(Retention.class); if (null == retention) { return RetentionPolicy.CLASS; // depends on control dependency: [if], data = [none] }...
public class class_name { String determineAvd() { String avd; if ( emulatorAvd != null ) { avd = emulatorAvd; } else { avd = "Default"; } return avd; } }
public class class_name { String determineAvd() { String avd; if ( emulatorAvd != null ) { avd = emulatorAvd; // depends on control dependency: [if], data = [none] } else { avd = "Default"; // depends on control dependency: [if], data = [none]...
public class class_name { private static void printTargetPathList(FileStatus[] targetTmpFiles) { StringBuilder builder = new StringBuilder(); builder.append("Preprocess target files:"); String lineSeparator = System.getProperty("line.separator"); for (FileStatus targetFile : ...
public class class_name { private static void printTargetPathList(FileStatus[] targetTmpFiles) { StringBuilder builder = new StringBuilder(); builder.append("Preprocess target files:"); String lineSeparator = System.getProperty("line.separator"); for (FileStatus targetFile : ...
public class class_name { private static InetAddress[] getByReflection() { try { Class<?> SystemProperties = Class.forName("android.os.SystemProperties"); Method method = SystemProperties.getMethod("get", new Class<?>[]{String.class}); ...
public class class_name { private static InetAddress[] getByReflection() { try { Class<?> SystemProperties = Class.forName("android.os.SystemProperties"); Method method = SystemProperties.getMethod("get", new Class<?>[]{String.class}); ...
public class class_name { protected ExecutorService initializeExecutor(ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler) { this.scheduledExecutor = createExecutor(this.poolSize, threadFactory, rejectedExecutionHandler); if (this.removeOnCancelPolicy) { ...
public class class_name { protected ExecutorService initializeExecutor(ThreadFactory threadFactory, RejectedExecutionHandler rejectedExecutionHandler) { this.scheduledExecutor = createExecutor(this.poolSize, threadFactory, rejectedExecutionHandler); if (this.removeOnCancelPolicy) { ...
public class class_name { synchronized void activateLazily() { if (cacheManager != null) return; // lazy initialization has already completed final boolean trace = TraceComponent.isAnyTracingEnabled(); Properties vendorProperties = new Properties(); String...
public class class_name { synchronized void activateLazily() { if (cacheManager != null) return; // lazy initialization has already completed final boolean trace = TraceComponent.isAnyTracingEnabled(); Properties vendorProperties = new Properties(); String...