code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static void setInvocationHandlerStatic(Object proxy, InvocationHandler handler) { try { final Field field = proxy.getClass().getDeclaredField(INVOCATION_HANDLER_FIELD); AccessController.doPrivileged(new SetAccessiblePrivilege(field)); field.s...
public class class_name { public static void setInvocationHandlerStatic(Object proxy, InvocationHandler handler) { try { final Field field = proxy.getClass().getDeclaredField(INVOCATION_HANDLER_FIELD); AccessController.doPrivileged(new SetAccessiblePrivilege(field)); // depends on contr...
public class class_name { public static int intLogBase2v3(int value) { int result = 0; if ((value & LOG2_V3_BRANCH_VALUES[4]) > 0) { value >>= LOG2_V3_SHIFT_VALUES[4]; result |= LOG2_V3_SHIFT_VALUES[4]; } if ((value & LOG2_V3_BRANCH_VALUES[3]) > 0) ...
public class class_name { public static int intLogBase2v3(int value) { int result = 0; if ((value & LOG2_V3_BRANCH_VALUES[4]) > 0) { value >>= LOG2_V3_SHIFT_VALUES[4]; // depends on control dependency: [if], data = [none] result |= LOG2_V3_SHIFT_VALUES[4]; // depend...
public class class_name { public static boolean isCompatIPv4Address(Inet6Address ip) { if (!ip.isIPv4CompatibleAddress()) { return false; } byte[] bytes = ip.getAddress(); if ((bytes[12] == 0) && (bytes[13] == 0) && (bytes[14] == 0) && ((bytes[15] == 0) || (bytes[15] == 1...
public class class_name { public static boolean isCompatIPv4Address(Inet6Address ip) { if (!ip.isIPv4CompatibleAddress()) { return false; // depends on control dependency: [if], data = [none] } byte[] bytes = ip.getAddress(); if ((bytes[12] == 0) && (bytes[13] == 0) && (bytes[14]...
public class class_name { public Enumeration tableKeys() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_CORE.logp(Level.FINE, methodClassName, "tableKeys", appNameForLogging); } Set k...
public class class_name { public Enumeration tableKeys() { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_CORE.logp(Level.FINE, methodClassName, "tableKeys", appNameForLogging); // depends on control d...
public class class_name { void setInterval(String interval) { final int i = CmsSerialDateUtil.toIntWithDefault(interval, -1); if (m_model.getInterval() != i) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setInterval(i); ...
public class class_name { void setInterval(String interval) { final int i = CmsSerialDateUtil.toIntWithDefault(interval, -1); if (m_model.getInterval() != i) { removeExceptionsOnChange(new Command() { public void execute() { m_model.setInterval(i); ...
public class class_name { protected void scanJarFile(final File file) { final ZipFile zipFile; try { zipFile = new ZipFile(file); } catch (IOException ioex) { if (!ignoreException) { throw new FindFileException("Invalid zip: " + file.getName(), ioex); } return; } final Enumeration entries = z...
public class class_name { protected void scanJarFile(final File file) { final ZipFile zipFile; try { zipFile = new ZipFile(file); // depends on control dependency: [try], data = [none] } catch (IOException ioex) { if (!ignoreException) { throw new FindFileException("Invalid zip: " + file.getName(), ioe...
public class class_name { public boolean tryEnter(Object obj) { if (entered.containsKey(obj)) { return false; } else { entered.put(obj, null); return true; } } }
public class class_name { public boolean tryEnter(Object obj) { if (entered.containsKey(obj)) { return false; // depends on control dependency: [if], data = [none] } else { entered.put(obj, null); // depends on control dependency: [if], data = [none] return true; // depends on control depende...
public class class_name { public static void main(String[] args) { for (int round = 1; round <= 5; round++) { Map<Long, Integer> deltaMsCount = new TreeMap<>(); Map<Long, Integer> deltaNsCount = new TreeMap<>(); System.out.println("\nRound: " + round); long msChanges = 0; long nsChanges = 0; long ...
public class class_name { public static void main(String[] args) { for (int round = 1; round <= 5; round++) { Map<Long, Integer> deltaMsCount = new TreeMap<>(); Map<Long, Integer> deltaNsCount = new TreeMap<>(); System.out.println("\nRound: " + round); // depends on control dependency: [for], data = [round]...
public class class_name { private boolean isRenditionMatchExtension(MediaFormat mediaFormat) { for (String extension : mediaFormat.getExtensions()) { if (FileExtension.isImage(extension)) { return true; } } return false; } }
public class class_name { private boolean isRenditionMatchExtension(MediaFormat mediaFormat) { for (String extension : mediaFormat.getExtensions()) { if (FileExtension.isImage(extension)) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { public UpdateUserRequest withGroups(String... groups) { if (this.groups == null) { setGroups(new java.util.ArrayList<String>(groups.length)); } for (String ele : groups) { this.groups.add(ele); } return this; } }
public class class_name { public UpdateUserRequest withGroups(String... groups) { if (this.groups == null) { setGroups(new java.util.ArrayList<String>(groups.length)); // depends on control dependency: [if], data = [none] } for (String ele : groups) { this.groups.add(ele...
public class class_name { public List<ICommandBehavior> getDynamicCommands() { final List<ICommandBehavior> result = new ArrayList<ICommandBehavior>(); for (final CommandImpl cmdImpl : dynamicCommands.values()) { result.add(cmdImpl.getBehavior()); } return result; } }
public class class_name { public List<ICommandBehavior> getDynamicCommands() { final List<ICommandBehavior> result = new ArrayList<ICommandBehavior>(); for (final CommandImpl cmdImpl : dynamicCommands.values()) { result.add(cmdImpl.getBehavior()); // depends on control dependency: [for], da...
public class class_name { public static Matcher<MethodTree> hasAnnotationOnAnyOverriddenMethod( final String annotationClass) { return new Matcher<MethodTree>() { @Override public boolean matches(MethodTree tree, VisitorState state) { MethodSymbol methodSym = ASTHelpers.getSymbol(tree); ...
public class class_name { public static Matcher<MethodTree> hasAnnotationOnAnyOverriddenMethod( final String annotationClass) { return new Matcher<MethodTree>() { @Override public boolean matches(MethodTree tree, VisitorState state) { MethodSymbol methodSym = ASTHelpers.getSymbol(tree); ...
public class class_name { public boolean isPotentialGroupHead() { CmsSite site = OpenCms.getSiteManager().getSiteForRootPath(m_primaryResource.getRootPath()); if (site == null) { return false; } Locale mainLocale = site.getMainTranslationLocale(null); if (mainLocale...
public class class_name { public boolean isPotentialGroupHead() { CmsSite site = OpenCms.getSiteManager().getSiteForRootPath(m_primaryResource.getRootPath()); if (site == null) { return false; // depends on control dependency: [if], data = [none] } Locale mainLocale = site....
public class class_name { private static Account authenticate(String userName, String storedPassword, String clientDigest, String nOnce, String nc, String cnonce, String method, String uri, String qop, String realmName, String md5a2, Deployment deployment, boolean storedPasswordIsA1Hash) { ...
public class class_name { private static Account authenticate(String userName, String storedPassword, String clientDigest, String nOnce, String nc, String cnonce, String method, String uri, String qop, String realmName, String md5a2, Deployment deployment, boolean storedPasswordIsA1Hash) { ...
public class class_name { public void setText (String text) { if (content instanceof VisLabel) { ((VisLabel) content).setText(text); } else { setContent(new VisLabel(text)); } pack(); } }
public class class_name { public void setText (String text) { if (content instanceof VisLabel) { ((VisLabel) content).setText(text); // depends on control dependency: [if], data = [none] } else { setContent(new VisLabel(text)); // depends on control dependency: [if], data = [none] } pack(); } }
public class class_name { public void setPlaybackState(int state) { if (sHasRemoteControlAPIs) { try { sRCCSetPlayStateMethod.invoke(mActualRemoteControlClient, state); } catch (Exception e) { throw new RuntimeException(e); } } } }
public class class_name { public void setPlaybackState(int state) { if (sHasRemoteControlAPIs) { try { sRCCSetPlayStateMethod.invoke(mActualRemoteControlClient, state); // depends on control dependency: [try], data = [none] } catch (Exception e) { throw n...
public class class_name { void findMinElementIndexInRows(int leftmost[] ) { Arrays.fill(leftmost,0,m,-1); // leftmost[i] = min(find(A(i,:))) for (int k = n-1; k >= 0; k--) { int idx0 = A.col_idx[k]; int idx1 = A.col_idx[k+1]; for( int p = idx0; p < idx1...
public class class_name { void findMinElementIndexInRows(int leftmost[] ) { Arrays.fill(leftmost,0,m,-1); // leftmost[i] = min(find(A(i,:))) for (int k = n-1; k >= 0; k--) { int idx0 = A.col_idx[k]; int idx1 = A.col_idx[k+1]; for( int p = idx0; p < idx1...
public class class_name { private boolean addIncomingInvokeId(Long invokeId) { synchronized (this.incomingInvokeList) { if (this.incomingInvokeList.contains(invokeId)) return false; else { this.incomingInvokeList.add(invokeId); return true...
public class class_name { private boolean addIncomingInvokeId(Long invokeId) { synchronized (this.incomingInvokeList) { if (this.incomingInvokeList.contains(invokeId)) return false; else { this.incomingInvokeList.add(invokeId); // depends on control depen...
public class class_name { protected CmsPair<String, List<I_CmsPreparedStatementParameter>> prepareVisitConditions( CmsVisitEntryFilter filter) { List<I_CmsPreparedStatementParameter> params = new ArrayList<I_CmsPreparedStatementParameter>(); StringBuffer conditions = new StringBuffer(); ...
public class class_name { protected CmsPair<String, List<I_CmsPreparedStatementParameter>> prepareVisitConditions( CmsVisitEntryFilter filter) { List<I_CmsPreparedStatementParameter> params = new ArrayList<I_CmsPreparedStatementParameter>(); StringBuffer conditions = new StringBuffer(); ...
public class class_name { @Override public void run() { try { this.delegate.run(); } catch (UndeclaredThrowableException ex) { this.errorHandler.handleError(ex.getUndeclaredThrowable()); } catch (Throwable ex) { this.errorHandler.handleError(ex); ...
public class class_name { @Override public void run() { try { this.delegate.run(); // depends on control dependency: [try], data = [none] } catch (UndeclaredThrowableException ex) { this.errorHandler.handleError(ex.getUndeclaredThrowable()); } catch (Throwable ex) { ...
public class class_name { @PostConstruct public void runSetup() throws SetupException { HAConfiguration.ZookeeperProperties zookeeperProperties = HAConfiguration.getZookeeperProperties(configuration); InterProcessMutex lock = curatorFactory.lockInstance(zookeeperProperties.getZkRoot()); try...
public class class_name { @PostConstruct public void runSetup() throws SetupException { HAConfiguration.ZookeeperProperties zookeeperProperties = HAConfiguration.getZookeeperProperties(configuration); InterProcessMutex lock = curatorFactory.lockInstance(zookeeperProperties.getZkRoot()); try...
public class class_name { public StaticFactor addStaticConditionalFactor(int[] antecedents, int consequent, int[] antecedentDimensions, int consequentDimension, BiFunction<int[], Integer, Double> conditionalProbaility) { ...
public class class_name { public StaticFactor addStaticConditionalFactor(int[] antecedents, int consequent, int[] antecedentDimensions, int consequentDimension, BiFunction<int[], Integer, Double> conditionalProbaility) { ...
public class class_name { public XExpression getExpression(/* @Nullable */ JvmMember member) { if(member != null) { return logicalContainerProvider.getAssociatedExpression(member); } return null; } }
public class class_name { public XExpression getExpression(/* @Nullable */ JvmMember member) { if(member != null) { return logicalContainerProvider.getAssociatedExpression(member); // depends on control dependency: [if], data = [(member] } return null; } }
public class class_name { private final boolean readCDataPrimary(char c) throws XMLStreamException { mWsStatus = (c <= CHAR_SPACE) ? ALL_WS_UNKNOWN : ALL_WS_NO; int ptr = mInputPtr; int inputLen = mInputEnd; char[] inputBuf = mInputBuffer; int start = ptr-1; ...
public class class_name { private final boolean readCDataPrimary(char c) throws XMLStreamException { mWsStatus = (c <= CHAR_SPACE) ? ALL_WS_UNKNOWN : ALL_WS_NO; int ptr = mInputPtr; int inputLen = mInputEnd; char[] inputBuf = mInputBuffer; int start = ptr-1; ...
public class class_name { public Observable<ServiceResponse<PolicyAssignmentInner>> createByIdWithServiceResponseAsync(String policyAssignmentId, PolicyAssignmentInner parameters) { if (policyAssignmentId == null) { throw new IllegalArgumentException("Parameter policyAssignmentId is required and ca...
public class class_name { public Observable<ServiceResponse<PolicyAssignmentInner>> createByIdWithServiceResponseAsync(String policyAssignmentId, PolicyAssignmentInner parameters) { if (policyAssignmentId == null) { throw new IllegalArgumentException("Parameter policyAssignmentId is required and ca...
public class class_name { public <K> Map<K, String> getMulti(Serializer<K> keySerializer, K... keys) { MultigetSliceQuery<K, String,String> q = createMultigetSliceQuery(keyspace, keySerializer, serializer, serializer); q.setColumnFamily(CF_NAME); q.setKeys(keys); q.setColumnNames(COLUMN_NAME); Que...
public class class_name { public <K> Map<K, String> getMulti(Serializer<K> keySerializer, K... keys) { MultigetSliceQuery<K, String,String> q = createMultigetSliceQuery(keyspace, keySerializer, serializer, serializer); q.setColumnFamily(CF_NAME); q.setKeys(keys); q.setColumnNames(COLUMN_NAME); Que...
public class class_name { @Override public void handleRequest(final Request request) { assertConfigured(); // // Service the request for each row. // List beanList = getBeanList(); HashSet rowIds = new HashSet(beanList.size()); WComponent row = getRepeatedComponent(); for (int i = 0; i < beanList.si...
public class class_name { @Override public void handleRequest(final Request request) { assertConfigured(); // // Service the request for each row. // List beanList = getBeanList(); HashSet rowIds = new HashSet(beanList.size()); WComponent row = getRepeatedComponent(); for (int i = 0; i < beanList.si...
public class class_name { @SuppressWarnings("nullness") // static method, so null first arg is OK: oi.factory private @NonNull Object getRefArg(OptionInfo oi, String argName, String argValue) throws ArgException { Object val; try { if (oi.constructor != null) { val = oi.constructor.newIn...
public class class_name { @SuppressWarnings("nullness") // static method, so null first arg is OK: oi.factory private @NonNull Object getRefArg(OptionInfo oi, String argName, String argValue) throws ArgException { Object val; try { if (oi.constructor != null) { val = oi.constructor.newIn...
public class class_name { @Override public Map<String, Object> getChildren(Boolean includeInheritedFields) { Map<String, Object> fields = new HashMap<String, Object>(); if (includeInheritedFields) { fields.putAll(super.getChildren(includeInheritedFields)); } fields.put("location", this.location); fiel...
public class class_name { @Override public Map<String, Object> getChildren(Boolean includeInheritedFields) { Map<String, Object> fields = new HashMap<String, Object>(); if (includeInheritedFields) { fields.putAll(super.getChildren(includeInheritedFields)); // depends on control dependency: [if], data = [(in...
public class class_name { static synchronized DocFileFactory getFactory(Configuration configuration) { DocFileFactory f = factories.get(configuration); if (f == null) { JavaFileManager fm = configuration.getFileManager(); if (fm instanceof StandardJavaFileManager) { ...
public class class_name { static synchronized DocFileFactory getFactory(Configuration configuration) { DocFileFactory f = factories.get(configuration); if (f == null) { JavaFileManager fm = configuration.getFileManager(); if (fm instanceof StandardJavaFileManager) { ...
public class class_name { @Override public void initUpstream() { NucleicAcid nuc = tempReac.getTemplate(); if (nuc != null) addToUpstream(nuc, getGraph()); for (Control cont : tempReac.getControlledOf()) { addToUpstream(cont, graph); } } }
public class class_name { @Override public void initUpstream() { NucleicAcid nuc = tempReac.getTemplate(); if (nuc != null) addToUpstream(nuc, getGraph()); for (Control cont : tempReac.getControlledOf()) { addToUpstream(cont, graph); // depends on control dependency: [for], data = [cont] } ...
public class class_name { public void setUseSystemsLocaleForFormat(boolean useSystemsLocale) { if (useSystemsLocaleForFormat != useSystemsLocale) { useSystemsLocaleForFormat = useSystemsLocale; getConfig().setProperty(USE_SYSTEMS_LOCALE_FOR_FORMAT_KEY, useSystemsLocaleForFormat); ...
public class class_name { public void setUseSystemsLocaleForFormat(boolean useSystemsLocale) { if (useSystemsLocaleForFormat != useSystemsLocale) { useSystemsLocaleForFormat = useSystemsLocale; // depends on control dependency: [if], data = [none] getConfig().setProperty(USE_SYSTEMS_...
public class class_name { String getTemplateOfParameterizedType(ParameterizedType parameterizedType, IJsonMarshaller jsonMarshaller) { Class cls = (Class) parameterizedType.getRawType(); Type[] actualTypeArguments = parameterizedType.getActualTypeArguments(); String res; if (Iterable.class.isAssignableFrom...
public class class_name { String getTemplateOfParameterizedType(ParameterizedType parameterizedType, IJsonMarshaller jsonMarshaller) { Class cls = (Class) parameterizedType.getRawType(); Type[] actualTypeArguments = parameterizedType.getActualTypeArguments(); String res; if (Iterable.class.isAssignableFrom...
public class class_name { @Override protected void paintComponent(Graphics g) { if (!isInitialized()) { return; } final Graphics2D G2 = (Graphics2D) g.create(); G2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); G2.setRende...
public class class_name { @Override protected void paintComponent(Graphics g) { if (!isInitialized()) { return; // depends on control dependency: [if], data = [none] } final Graphics2D G2 = (Graphics2D) g.create(); G2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, R...
public class class_name { public void notifyAddOnUninstalled(final AddOn addOn) { if (EventQueue.isDispatchThread()) { installedAddOnsModel.removeAddOn(addOn); if (latestInfo != null) { AddOn availableAddOn = latestInfo.getAddOn(addOn.getId()); if (availableAddOn != null) { uninstalledAddOns...
public class class_name { public void notifyAddOnUninstalled(final AddOn addOn) { if (EventQueue.isDispatchThread()) { installedAddOnsModel.removeAddOn(addOn); // depends on control dependency: [if], data = [none] if (latestInfo != null) { AddOn availableAddOn = latestInfo.getAddOn(addOn.getId()); ...
public class class_name { public static String notAllNullParameterCheck(String parameterName, Set<EntityColumn> columnSet) { StringBuilder sql = new StringBuilder(); sql.append("<bind name=\"notAllNullParameterCheck\" value=\"@tk.mybatis.mapper.util.OGNL@notAllNullParameterCheck("); sql.append(...
public class class_name { public static String notAllNullParameterCheck(String parameterName, Set<EntityColumn> columnSet) { StringBuilder sql = new StringBuilder(); sql.append("<bind name=\"notAllNullParameterCheck\" value=\"@tk.mybatis.mapper.util.OGNL@notAllNullParameterCheck("); sql.append(...
public class class_name { public static base_responses update(nitro_service client, snmptrap resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmptrap updateresources[] = new snmptrap[resources.length]; for (int i=0;i<resources.length;i++){ up...
public class class_name { public static base_responses update(nitro_service client, snmptrap resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { snmptrap updateresources[] = new snmptrap[resources.length]; for (int i=0;i<resources.length;i++){ up...
public class class_name { public JvmType getAnnotationType() { if (annotationType != null && annotationType.eIsProxy()) { InternalEObject oldAnnotationType = (InternalEObject)annotationType; annotationType = (JvmType)eResolveProxy(oldAnnotationType); if (annotationType != oldAnnotationType) { if (...
public class class_name { public JvmType getAnnotationType() { if (annotationType != null && annotationType.eIsProxy()) { InternalEObject oldAnnotationType = (InternalEObject)annotationType; annotationType = (JvmType)eResolveProxy(oldAnnotationType); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public EClass getIfcVector() { if (ifcVectorEClass == null) { ifcVectorEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(749); } return ifcVectorEClass; } }
public class class_name { @Override public EClass getIfcVector() { if (ifcVectorEClass == null) { ifcVectorEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(749); // depends on control dependency: [if], data = [none] } return ifcVectorEClass; } ...
public class class_name { private DatatypeStreamingValidator streamingValidatorFor(String uri, String localName, Attributes atts) { if ("http://www.w3.org/1999/xhtml".equals(uri)) { if ("time".equals(localName)) { if (atts.getIndex("", "datetime") < 0) { ...
public class class_name { private DatatypeStreamingValidator streamingValidatorFor(String uri, String localName, Attributes atts) { if ("http://www.w3.org/1999/xhtml".equals(uri)) { if ("time".equals(localName)) { if (atts.getIndex("", "datetime") < 0) { ...
public class class_name { private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || (dateStyle != DateFormat.NONE && (dateStyle & RELATIVE)>0)) { RelativeDateFormat r = new RelativeDateFormat(...
public class class_name { private static DateFormat get(int dateStyle, int timeStyle, ULocale loc, Calendar cal) { if((timeStyle != DateFormat.NONE && (timeStyle & RELATIVE)>0) || (dateStyle != DateFormat.NONE && (dateStyle & RELATIVE)>0)) { RelativeDateFormat r = new RelativeDateFormat(...
public class class_name { private Consumer wrapVoidMethod(Method method) { return c -> { try { method.invoke(this, c); } catch (InvocationTargetException e) { throw new CommandException(e); } catch (IllegalAccessException e) { throw new AssertionError(e); } }; ...
public class class_name { private Consumer wrapVoidMethod(Method method) { return c -> { try { method.invoke(this, c); // depends on control dependency: [try], data = [none] } catch (InvocationTargetException e) { throw new CommandException(e); } catch (IllegalAccessException e) {...
public class class_name { private UIForm getForm(UIComponent component) { while (component != null) { if (component instanceof UIForm) { break; } component = component.getParent(); } return (UIForm) component; } }
public class class_name { private UIForm getForm(UIComponent component) { while (component != null) { if (component instanceof UIForm) { break; } component = component.getParent(); // depends on control dependency: [while], data = [none] } return (UIForm) component; } }
public class class_name { public AddPermissionRequest withActions(String... actions) { if (this.actions == null) { setActions(new com.amazonaws.internal.SdkInternalList<String>(actions.length)); } for (String ele : actions) { this.actions.add(ele); } retu...
public class class_name { public AddPermissionRequest withActions(String... actions) { if (this.actions == null) { setActions(new com.amazonaws.internal.SdkInternalList<String>(actions.length)); // depends on control dependency: [if], data = [none] } for (String ele : actions) { ...
public class class_name { @CheckForSigned public static long getContentLength (@Nonnull final HttpServletRequest aHttpRequest) { ValueEnforcer.notNull (aHttpRequest, "HttpRequest"); if (false) { // Missing support > 2GB!!! return aHttpRequest.getContentLength (); } final String sC...
public class class_name { @CheckForSigned public static long getContentLength (@Nonnull final HttpServletRequest aHttpRequest) { ValueEnforcer.notNull (aHttpRequest, "HttpRequest"); if (false) { // Missing support > 2GB!!! return aHttpRequest.getContentLength (); // depends on control depe...
public class class_name { private void calculateMean() { for (Tuple t : trainingData) { int index = model.labelIndexer.getIndex(t.label); count[index]++; model.meanVectors[index] = VectorUtils.addition(model.meanVectors[index], t.vector.getVector()); // Ve...
public class class_name { private void calculateMean() { for (Tuple t : trainingData) { int index = model.labelIndexer.getIndex(t.label); count[index]++; // depends on control dependency: [for], data = [t] model.meanVectors[index] = VectorUtils.addition(model.meanVectors[ind...
public class class_name { public void marshall(DvbSubDestinationSettings dvbSubDestinationSettings, ProtocolMarshaller protocolMarshaller) { if (dvbSubDestinationSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public void marshall(DvbSubDestinationSettings dvbSubDestinationSettings, ProtocolMarshaller protocolMarshaller) { if (dvbSubDestinationSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { proto...
public class class_name { public PortMapping createPortMapping(RunImageConfiguration runConfig, Properties properties) { try { return new PortMapping(runConfig.getPorts(), properties); } catch (IllegalArgumentException exp) { throw new IllegalArgumentException("Cannot parse port...
public class class_name { public PortMapping createPortMapping(RunImageConfiguration runConfig, Properties properties) { try { return new PortMapping(runConfig.getPorts(), properties); // depends on control dependency: [try], data = [none] } catch (IllegalArgumentException exp) { ...
public class class_name { private static Set<TsBeanModel> writeBeanAndParentsFieldSpecs( Writer writer, Settings settings, TsModel model, Set<TsBeanModel> emittedSoFar, TsBeanModel bean) { if (emittedSoFar.contains(bean)) { return new HashSet<>(); } final TsBeanModel parentB...
public class class_name { private static Set<TsBeanModel> writeBeanAndParentsFieldSpecs( Writer writer, Settings settings, TsModel model, Set<TsBeanModel> emittedSoFar, TsBeanModel bean) { if (emittedSoFar.contains(bean)) { return new HashSet<>(); // depends on control dependency: [if], dat...
public class class_name { protected void bindStringColumnConstraints(Column column, PersistentProperty constrainedProperty) { final org.grails.datastore.mapping.config.Property mappedForm = constrainedProperty.getMapping().getMappedForm(); Number columnLength = mappedForm.getMaxSize(); List<?> ...
public class class_name { protected void bindStringColumnConstraints(Column column, PersistentProperty constrainedProperty) { final org.grails.datastore.mapping.config.Property mappedForm = constrainedProperty.getMapping().getMappedForm(); Number columnLength = mappedForm.getMaxSize(); List<?> ...
public class class_name { private Map<MetricQuery, List<Metric>> getSubQueryMetrics(List<MetricQuery> queries) { Map<MetricQuery, Future<List<Metric>>> queryFutureMap = new HashMap<>(); for (MetricQuery query : queries) { String requestBody = fromEntity(query); String requestUrl = query.getMetricQueryContex...
public class class_name { private Map<MetricQuery, List<Metric>> getSubQueryMetrics(List<MetricQuery> queries) { Map<MetricQuery, Future<List<Metric>>> queryFutureMap = new HashMap<>(); for (MetricQuery query : queries) { String requestBody = fromEntity(query); String requestUrl = query.getMetricQueryContex...
public class class_name { public static Level toLevel(final String name, final Level defaultLevel) { if (name == null) { return defaultLevel; } final Level level = LEVELS.get(toUpperCase(name)); return level == null ? defaultLevel : level; } }
public class class_name { public static Level toLevel(final String name, final Level defaultLevel) { if (name == null) { return defaultLevel; // depends on control dependency: [if], data = [none] } final Level level = LEVELS.get(toUpperCase(name)); return level == null ? def...
public class class_name { public static InputStream toInputStream(SOAPMessage msg){ if(msg==null) return null; ByteArrayOutputStream os = new ByteArrayOutputStream(); try { msg.writeTo(os); } catch (Exception e) { throw S1SystemError.wrap(e); ...
public class class_name { public static InputStream toInputStream(SOAPMessage msg){ if(msg==null) return null; ByteArrayOutputStream os = new ByteArrayOutputStream(); try { msg.writeTo(os); // depends on control dependency: [try], data = [none] } catch (Exception...
public class class_name { public Observable<ServiceResponse<List<UsageInner>>> listByLocationWithServiceResponseAsync(String location) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); ...
public class class_name { public Observable<ServiceResponse<List<UsageInner>>> listByLocationWithServiceResponseAsync(String location) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); ...
public class class_name { private static void setServiceEnabled(final XMPPConnection connection, final boolean isEnabled) { ServiceDiscoveryManager manager = ServiceDiscoveryManager .getInstanceFor(connection); List<String> namespaces = new ArrayList<>(); namespaces...
public class class_name { private static void setServiceEnabled(final XMPPConnection connection, final boolean isEnabled) { ServiceDiscoveryManager manager = ServiceDiscoveryManager .getInstanceFor(connection); List<String> namespaces = new ArrayList<>(); namespaces...
public class class_name { @Override public void addNewConnective() { String factType = getExpressionLeftSide().getPreviousGenericType(); if ( factType == null ) { factType = getExpressionLeftSide().getGenericType(); } String fieldName = getExpressionLeftSide().getFieldN...
public class class_name { @Override public void addNewConnective() { String factType = getExpressionLeftSide().getPreviousGenericType(); if ( factType == null ) { factType = getExpressionLeftSide().getGenericType(); // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public RedisCache init() { super.init(); /* * Parse custom property: redis-host-and-port */ String hostAndPort = getCacheProperty(CACHE_PROP_REDIS_HOST_AND_PORT); if (!StringUtils.isBlank(hostAndPort)) { this.redisHo...
public class class_name { @Override public RedisCache init() { super.init(); /* * Parse custom property: redis-host-and-port */ String hostAndPort = getCacheProperty(CACHE_PROP_REDIS_HOST_AND_PORT); if (!StringUtils.isBlank(hostAndPort)) { this.redisHo...
public class class_name { public T next() { if( loop ) { if( forwards ) { if( index >= fileNames.size() ) { index = fileNames.size()-1; forwards = false; } } else { if( index < 0 ) { index = 0; forwards = true; } } } if( forwards ) imageGUI = UtilImageIO.loadImage...
public class class_name { public T next() { if( loop ) { if( forwards ) { if( index >= fileNames.size() ) { index = fileNames.size()-1; // depends on control dependency: [if], data = [none] forwards = false; // depends on control dependency: [if], data = [none] } } else { if( index < 0 ) ...
public class class_name { public Boolean getFinalMasterTransStatus() { if(finalMasterTransStatus == null){ //check by logs first finalMasterTransStatus = checkTransStatusByLogs(); //then check by API if(finalMasterTransStatus == null){ finalMasterTransStatus = transStatusChecker.checkTrans...
public class class_name { public Boolean getFinalMasterTransStatus() { if(finalMasterTransStatus == null){ //check by logs first finalMasterTransStatus = checkTransStatusByLogs(); // depends on control dependency: [if], data = [none] //then check by API if(finalMasterTransStatus == null){ ...
public class class_name { public synchronized static void init(final NewExtensionListener _listener) { PeerMonitor.listener = _listener; if (PeerMonitor.self == null) { PeerMonitor.self = new PeerMonitor(); } else if (_listener != null) { ...
public class class_name { public synchronized static void init(final NewExtensionListener _listener) { PeerMonitor.listener = _listener; if (PeerMonitor.self == null) { PeerMonitor.self = new PeerMonitor(); // depends on control dependency: [if], data = [none] } ...
public class class_name { public final void addRemoteRepository(String id, String type, String url) { if (this.repositoryIds.add(id) ) { getRemoteRepositories().add(new RemoteRepository(id, type, url)); } } }
public class class_name { public final void addRemoteRepository(String id, String type, String url) { if (this.repositoryIds.add(id) ) { getRemoteRepositories().add(new RemoteRepository(id, type, url)); // depends on control dependency: [if], data = [none] } } }
public class class_name { static List<Point> decodeStepPoints(DirectionsRoute directionsRoute, List<Point> currentPoints, int legIndex, int stepIndex) { List<RouteLeg> legs = directionsRoute.legs(); if (hasInvalidLegs(legs)) { return currentPoints; } List<Leg...
public class class_name { static List<Point> decodeStepPoints(DirectionsRoute directionsRoute, List<Point> currentPoints, int legIndex, int stepIndex) { List<RouteLeg> legs = directionsRoute.legs(); if (hasInvalidLegs(legs)) { return currentPoints; // depends on cont...
public class class_name { static byte[] ip2ByteArray(String ip) { boolean ipv6Expected = false; if (ip.charAt(0) == '[') { // This is supposed to be an IPv6 literal if (ip.length() > 2 && ip.charAt(ip.length() - 1) == ']') { ip = ip.substring(1, ip.length() - 1);...
public class class_name { static byte[] ip2ByteArray(String ip) { boolean ipv6Expected = false; if (ip.charAt(0) == '[') { // This is supposed to be an IPv6 literal if (ip.length() > 2 && ip.charAt(ip.length() - 1) == ']') { ip = ip.substring(1, ip.length() - 1);...
public class class_name { static Set<String> getJavaDefaultTypes() { if (javaDefaultTypes == null) { javaDefaultTypes = Collections.unmodifiableSet(new HashSet<String>(Arrays.asList( "AbstractMethodError", "Appendable", "ArithmeticExceptio...
public class class_name { static Set<String> getJavaDefaultTypes() { if (javaDefaultTypes == null) { javaDefaultTypes = Collections.unmodifiableSet(new HashSet<String>(Arrays.asList( "AbstractMethodError", "Appendable", "ArithmeticExceptio...
public class class_name { protected void exportSuccessfulResult(String prefix, R result) { if (prefix == null) { return; } setPropertyIfNoNull(prefix, "input", result.getInput()); if (!result.isSuccessful()) { return; } setPropertyIfNoNull(prefix,...
public class class_name { protected void exportSuccessfulResult(String prefix, R result) { if (prefix == null) { return; // depends on control dependency: [if], data = [none] } setPropertyIfNoNull(prefix, "input", result.getInput()); if (!result.isSuccessful()) { ...
public class class_name { private String[] contextParameterNames(Method method) { Annotation[][] parameterAnnotations = method.getParameterAnnotations(); String[] names = new String[parameterAnnotations.length]; for (int i = 0; i < parameterAnnotations.length; i++) { for (Annotation...
public class class_name { private String[] contextParameterNames(Method method) { Annotation[][] parameterAnnotations = method.getParameterAnnotations(); String[] names = new String[parameterAnnotations.length]; for (int i = 0; i < parameterAnnotations.length; i++) { for (Annotation...
public class class_name { public String getUrl() { StringBuilder url = new StringBuilder(100); url.append("jdbc:postgresql://"); url.append(serverName); if (portNumber != 0) { url.append(":").append(portNumber); } url.append("/").append(URLCoder.encode(databaseName)); StringBuilder q...
public class class_name { public String getUrl() { StringBuilder url = new StringBuilder(100); url.append("jdbc:postgresql://"); url.append(serverName); if (portNumber != 0) { url.append(":").append(portNumber); // depends on control dependency: [if], data = [(portNumber] } url.append("/"...
public class class_name { public String printFlags() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < 16; i++) if (validFlag(i) && getFlag(i)) { sb.append(Flags.string(i)); sb.append(" "); } return sb.toString(); } }
public class class_name { public String printFlags() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < 16; i++) if (validFlag(i) && getFlag(i)) { sb.append(Flags.string(i)); // depends on control dependency: [if], data = [none] sb.append(" "); // depends on control dependency: [if], data = [none] ...
public class class_name { public List<String> getProcessList(String queueName) { // このメソッドを呼び出す前に、 // this#initProcessLists()を利用してprocessListsを初期しておくこと。 if (this.processLists == null) { return null; } return getProcessLists().get(queueName); } }
public class class_name { public List<String> getProcessList(String queueName) { // このメソッドを呼び出す前に、 // this#initProcessLists()を利用してprocessListsを初期しておくこと。 if (this.processLists == null) { return null; // depends on control dependency: [if], data = [none] } ...
public class class_name { @RequirePOST public JSONArray doPrevalidateConfig(StaplerRequest req) throws IOException { Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER); JSONArray response = new JSONArray(); for (Map.Entry<String,VersionNumber> p : parseRequestedPlugins(req.getInput...
public class class_name { @RequirePOST public JSONArray doPrevalidateConfig(StaplerRequest req) throws IOException { Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER); JSONArray response = new JSONArray(); for (Map.Entry<String,VersionNumber> p : parseRequestedPlugins(req.getInput...
public class class_name { public void endStage() { if (this.currentStage != null) { long time = System.currentTimeMillis() - this.currentStageStart; this.timings.add(new Stage(this.currentStage, time)); if (reportAsMetrics && submitter.getMetricContext().isPresent()) { String timerName = ...
public class class_name { public void endStage() { if (this.currentStage != null) { long time = System.currentTimeMillis() - this.currentStageStart; this.timings.add(new Stage(this.currentStage, time)); // depends on control dependency: [if], data = [(this.currentStage] if (reportAsMetrics && sub...
public class class_name { private DescribeVolumesResponseType describeVolumes(final String token, final int pMaxResults) { DescribeVolumesResponseType ret = new DescribeVolumesResponseType(); ret.setRequestId(UUID.randomUUID().toString()); Set<String> idsInThisPageIfToken = null; if (n...
public class class_name { private DescribeVolumesResponseType describeVolumes(final String token, final int pMaxResults) { DescribeVolumesResponseType ret = new DescribeVolumesResponseType(); ret.setRequestId(UUID.randomUUID().toString()); Set<String> idsInThisPageIfToken = null; if (n...
public class class_name { @Override public String toJSON() { try { JSONObject o = new JSONObject(); o.put(KEY_TYPE, mType); o.put(KEY_TITLE, mTitle); o.put(KEY_MESSAGE, mMessage); return o.toString(); } catch (JSONException e) { ...
public class class_name { @Override public String toJSON() { try { JSONObject o = new JSONObject(); o.put(KEY_TYPE, mType); // depends on control dependency: [try], data = [none] o.put(KEY_TITLE, mTitle); // depends on control dependency: [try], data = [none] ...
public class class_name { public void init(ContextConfig config) { this.config = config; PropertyMap properties = config.getProperties(); String edenSpace = properties.getString("EdenSpace"); if (edenSpace != null) { this.setEdenMemoryPool(edenSpace); ...
public class class_name { public void init(ContextConfig config) { this.config = config; PropertyMap properties = config.getProperties(); String edenSpace = properties.getString("EdenSpace"); if (edenSpace != null) { this.setEdenMemoryPool(edenSpace); // depe...
public class class_name { private void init(final String title, final int initialWidth, final int initialHeight, final Component component) { if (title != null) { setTitle(title); } setInitialWidth(initialWidth); setInitialHeight(initialHeight); setContent(component); } }
public class class_name { private void init(final String title, final int initialWidth, final int initialHeight, final Component component) { if (title != null) { setTitle(title); // depends on control dependency: [if], data = [(title] } setInitialWidth(initialWidth); setInitialHeight(initialHe...
public class class_name { public java.lang.String getFullName() { java.lang.Object ref = fullName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.t...
public class class_name { public java.lang.String getFullName() { java.lang.Object ref = fullName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; // depends on control dependency: [if], data = [none] } else { com.google.protobuf.ByteString bs = (com.google.pro...
public class class_name { public void setTraceIds(java.util.Collection<String> traceIds) { if (traceIds == null) { this.traceIds = null; return; } this.traceIds = new java.util.ArrayList<String>(traceIds); } }
public class class_name { public void setTraceIds(java.util.Collection<String> traceIds) { if (traceIds == null) { this.traceIds = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.traceIds =...
public class class_name { private void initEntityMetadata(Entity entity) { String kind = entity.kind(); if (kind.trim().length() == 0) { kind = entityClass.getSimpleName(); } entityMetadata = new EntityMetadata(entityClass, kind); } }
public class class_name { private void initEntityMetadata(Entity entity) { String kind = entity.kind(); if (kind.trim().length() == 0) { kind = entityClass.getSimpleName(); // depends on control dependency: [if], data = [none] } entityMetadata = new EntityMetadata(entityClass, kind); } }
public class class_name { private void onAttemptComplete(Throwable t) { try { if (circuitBreaker != null) { if (t instanceof CircuitBreakerOpenException) { metricRecorder.incrementCircuitBreakerCallsCircuitOpenCount(); } else if (circuitBreaker.is...
public class class_name { private void onAttemptComplete(Throwable t) { try { if (circuitBreaker != null) { if (t instanceof CircuitBreakerOpenException) { metricRecorder.incrementCircuitBreakerCallsCircuitOpenCount(); // depends on control dependency: [if], data...
public class class_name { public final DSLMapParser.pattern_return pattern() throws RecognitionException { DSLMapParser.pattern_return retval = new DSLMapParser.pattern_return(); retval.start = input.LT(1); Object root_0 = null; Token DOT28=null; Token MISC29=null; Token LEFT_CURLY30=null; Token RIGHT_...
public class class_name { public final DSLMapParser.pattern_return pattern() throws RecognitionException { DSLMapParser.pattern_return retval = new DSLMapParser.pattern_return(); retval.start = input.LT(1); Object root_0 = null; Token DOT28=null; Token MISC29=null; Token LEFT_CURLY30=null; Token RIGHT_...
public class class_name { @PostConstruct public void init() { ArrayList<Node> children = new ArrayList<>(); for (int i = 0; i < 20; i++) { StackPane child = new StackPane(); double width = Math.random() * 100 + 100; child.setPrefWidth(width); double h...
public class class_name { @PostConstruct public void init() { ArrayList<Node> children = new ArrayList<>(); for (int i = 0; i < 20; i++) { StackPane child = new StackPane(); double width = Math.random() * 100 + 100; child.setPrefWidth(width); // depends on contro...
public class class_name { public boolean isValid() { boolean valid = markers.isEmpty() || markers.size() >= 3; if (valid) { for (PolygonHoleMarkers hole : holes) { valid = hole.isValid(); if (!valid) { break; } ...
public class class_name { public boolean isValid() { boolean valid = markers.isEmpty() || markers.size() >= 3; if (valid) { for (PolygonHoleMarkers hole : holes) { valid = hole.isValid(); // depends on control dependency: [for], data = [hole] if (!valid) { ...
public class class_name { public final synchronized void addVetoableChangeListener( VetoableChangeListener listener) { if (listener == null) { return; } if (vetoSupport == null) { vetoSupport = new VetoableChangeSupport(this); } vetoSupport.ad...
public class class_name { public final synchronized void addVetoableChangeListener( VetoableChangeListener listener) { if (listener == null) { return; // depends on control dependency: [if], data = [none] } if (vetoSupport == null) { vetoSupport = new Vetoabl...
public class class_name { public static <T> ArrayList<T> distinct(Collection<T> collection) { if (isEmpty(collection)) { return new ArrayList<>(); } else if (collection instanceof Set) { return new ArrayList<>(collection); } else { return new ArrayList<>(new LinkedHashSet<>(collection)); } } ...
public class class_name { public static <T> ArrayList<T> distinct(Collection<T> collection) { if (isEmpty(collection)) { return new ArrayList<>(); // depends on control dependency: [if], data = [none] } else if (collection instanceof Set) { return new ArrayList<>(collection); // depends on control depen...
public class class_name { public static DMatrixSparseCSC convert(DMatrixSparseTriplet src , DMatrixSparseCSC dst , int hist[] ) { if( dst == null ) dst = new DMatrixSparseCSC(src.numRows, src.numCols , src.nz_length); else dst.reshape(src.numRows, src.numCols, src.nz_length); ...
public class class_name { public static DMatrixSparseCSC convert(DMatrixSparseTriplet src , DMatrixSparseCSC dst , int hist[] ) { if( dst == null ) dst = new DMatrixSparseCSC(src.numRows, src.numCols , src.nz_length); else dst.reshape(src.numRows, src.numCols, src.nz_length); ...
public class class_name { private void calculateMaxViewport() { tempMaximumViewport.set(0, MAX_WIDTH_HEIGHT, MAX_WIDTH_HEIGHT, 0); maxSum = 0.0f; for (SliceValue sliceValue : dataProvider.getPieChartData().getValues()) { maxSum += Math.abs(sliceValue.getValue()); } } }
public class class_name { private void calculateMaxViewport() { tempMaximumViewport.set(0, MAX_WIDTH_HEIGHT, MAX_WIDTH_HEIGHT, 0); maxSum = 0.0f; for (SliceValue sliceValue : dataProvider.getPieChartData().getValues()) { maxSum += Math.abs(sliceValue.getValue()); // depends on contr...
public class class_name { public CertificateDetail withDomainValidationOptions(DomainValidation... domainValidationOptions) { if (this.domainValidationOptions == null) { setDomainValidationOptions(new java.util.ArrayList<DomainValidation>(domainValidationOptions.length)); } for (Dom...
public class class_name { public CertificateDetail withDomainValidationOptions(DomainValidation... domainValidationOptions) { if (this.domainValidationOptions == null) { setDomainValidationOptions(new java.util.ArrayList<DomainValidation>(domainValidationOptions.length)); // depends on control depe...
public class class_name { public NextJourney createNextJourney(PlannedJourneyProvider journeyProvider, HtmlResponse response) { // almost copied from super String path = response.getRoutingPath(); final boolean redirectTo = response.isRedirectTo(); if (path.indexOf(":") < 0) { if (!...
public class class_name { public NextJourney createNextJourney(PlannedJourneyProvider journeyProvider, HtmlResponse response) { // almost copied from super String path = response.getRoutingPath(); final boolean redirectTo = response.isRedirectTo(); if (path.indexOf(":") < 0) { if (!...
public class class_name { private void setupValue(Object target, Keyframe kf) { //if (mProperty != null) { // kf.setValue(mProperty.get(target)); //} try { if (mGetter == null) { Class targetClass = target.getClass(); setupGetter(targetClas...
public class class_name { private void setupValue(Object target, Keyframe kf) { //if (mProperty != null) { // kf.setValue(mProperty.get(target)); //} try { if (mGetter == null) { Class targetClass = target.getClass(); setupGetter(targetClas...
public class class_name { public static double squaredLoss(double[] x, double[] y, double w_0, double w_1) { double sum = 0; for (int j = 0; j < x.length; j++) { sum += Math.pow((y[j] - (w_1 * x[j] + w_0)), 2); } return sum; } }
public class class_name { public static double squaredLoss(double[] x, double[] y, double w_0, double w_1) { double sum = 0; for (int j = 0; j < x.length; j++) { sum += Math.pow((y[j] - (w_1 * x[j] + w_0)), 2); // depends on control dependency: [for], data = [j] } return sum...
public class class_name { public File getLocalFile(URL remoteUri) { StringBuilder sb = new StringBuilder(); String host = remoteUri.getHost(); String query = remoteUri.getQuery(); String path = remoteUri.getPath(); if (host != null) { sb.appen...
public class class_name { public File getLocalFile(URL remoteUri) { StringBuilder sb = new StringBuilder(); String host = remoteUri.getHost(); String query = remoteUri.getQuery(); String path = remoteUri.getPath(); if (host != null) { sb.appen...
public class class_name { @Override public AnnotationVisitor visitArray(String name) { if (tc.isDebugEnabled()) { Tr.debug(tc, MessageFormat.format("[ {0} ] Name [ {1} ]", getHashText(), name)); } final AnnotationValueImpl arrayValu...
public class class_name { @Override public AnnotationVisitor visitArray(String name) { if (tc.isDebugEnabled()) { Tr.debug(tc, MessageFormat.format("[ {0} ] Name [ {1} ]", getHashText(), name)); // depends on control dependency: [if], data = [none] ...
public class class_name { public long read(long pos, Iterable<ByteBuffer> bufs) { if (pos >= size()) { return -1; } long start = pos; for (ByteBuffer buf : bufs) { int read = read(pos, buf); if (read == -1) { break; } else { pos += read; } } retur...
public class class_name { public long read(long pos, Iterable<ByteBuffer> bufs) { if (pos >= size()) { return -1; // depends on control dependency: [if], data = [none] } long start = pos; for (ByteBuffer buf : bufs) { int read = read(pos, buf); if (read == -1) { break; ...
public class class_name { public void setDirectories(java.util.Collection<WorkspaceDirectory> directories) { if (directories == null) { this.directories = null; return; } this.directories = new com.amazonaws.internal.SdkInternalList<WorkspaceDirectory>(directories); ...
public class class_name { public void setDirectories(java.util.Collection<WorkspaceDirectory> directories) { if (directories == null) { this.directories = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { public UriComponentsBuilder uri(URI uri) { Assert.notNull(uri, "'uri' must not be null"); this.scheme = uri.getScheme(); if (uri.isOpaque()) { this.ssp = uri.getRawSchemeSpecificPart(); resetHierarchicalComponents(); } else { if (uri.getRawUserInfo() != null) { this.use...
public class class_name { public UriComponentsBuilder uri(URI uri) { Assert.notNull(uri, "'uri' must not be null"); this.scheme = uri.getScheme(); if (uri.isOpaque()) { this.ssp = uri.getRawSchemeSpecificPart(); // depends on control dependency: [if], data = [none] resetHierarchicalComponents(); // depends...
public class class_name { private void requirePending() { if (pending != null) { return; } long exclusionComparable = Long.MIN_VALUE; while (nInclusionsRemaining != 0 && !queue.isEmpty()) { //find a candidate that is not excluded HeapElement inclusion = null; do { HeapElement candidate = queue...
public class class_name { private void requirePending() { if (pending != null) { return; // depends on control dependency: [if], data = [none] } long exclusionComparable = Long.MIN_VALUE; while (nInclusionsRemaining != 0 && !queue.isEmpty()) { //find a candidate that is not excluded HeapElement inclu...
public class class_name { private Throwable loadLib(String _lib) { try { System.load(_lib); return null; } catch (Throwable _ex) { return _ex; } } }
public class class_name { private Throwable loadLib(String _lib) { try { System.load(_lib); // depends on control dependency: [try], data = [none] return null; // depends on control dependency: [try], data = [none] } catch (Throwable _ex) { return _ex; } // d...
public class class_name { public String toRegexForFixedDate(Date date) { StringBuilder buf = new StringBuilder(); Converter<Object> p = headTokenConverter; while (p != null) { if (p instanceof LiteralConverter) { buf.append(p.convert(null)); } else if (p instanceof IntegerTokenConverter...
public class class_name { public String toRegexForFixedDate(Date date) { StringBuilder buf = new StringBuilder(); Converter<Object> p = headTokenConverter; while (p != null) { if (p instanceof LiteralConverter) { buf.append(p.convert(null)); // depends on control dependency: [if], data = [non...
public class class_name { public synchronized static boolean hasSudo() { if (!sudoTested) { String[] cmdArr = new String[]{"which", "sudo"}; List<String> cmd = new ArrayList<String>(cmdArr.length); Collections.addAll(cmd, cmdArr); ProcessBuilder whichsudo = new ProcessBuilder(cmd); try { P...
public class class_name { public synchronized static boolean hasSudo() { if (!sudoTested) { String[] cmdArr = new String[]{"which", "sudo"}; List<String> cmd = new ArrayList<String>(cmdArr.length); Collections.addAll(cmd, cmdArr); // depends on control dependency: [if], data = [none] ProcessBuilder w...
public class class_name { public final void destroy() throws JMException { synchronized (mBeanHandles) { List<JMException> exceptions = new ArrayList<JMException>(); List<MBeanHandle> unregistered = new ArrayList<MBeanHandle>(); for (MBeanHandle handle : mBeanHandles) { ...
public class class_name { public final void destroy() throws JMException { synchronized (mBeanHandles) { List<JMException> exceptions = new ArrayList<JMException>(); List<MBeanHandle> unregistered = new ArrayList<MBeanHandle>(); for (MBeanHandle handle : mBeanHandles) { ...