code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void setType(BusItineraryHaltType type) { if (type != null && type != this.type) { this.type = type; firePrimitiveChanged(); } } }
public class class_name { public void setType(BusItineraryHaltType type) { if (type != null && type != this.type) { this.type = type; // depends on control dependency: [if], data = [none] firePrimitiveChanged(); // depends on control dependency: [if], data = [none] } } }
public class class_name { @Override public IntColumn asIntColumn() { IntArrayList values = new IntArrayList(); for (float d : data) { values.add((int) d); } values.trim(); return IntColumn.create(this.name(), values.elements()); } }
public class class_name { @Override public IntColumn asIntColumn() { IntArrayList values = new IntArrayList(); for (float d : data) { values.add((int) d); // depends on control dependency: [for], data = [d] } values.trim(); return IntColumn.create(this.name(), va...
public class class_name { @Override public QAnd appendSQL(final SQLSelect _sql) throws EFapsException { _sql.addPart(SQLPart.PARENTHESIS_OPEN); boolean first = true; for (final AbstractQPart part : this.parts) { if (first) { first = false; ...
public class class_name { @Override public QAnd appendSQL(final SQLSelect _sql) throws EFapsException { _sql.addPart(SQLPart.PARENTHESIS_OPEN); boolean first = true; for (final AbstractQPart part : this.parts) { if (first) { first = false; // depends ...
public class class_name { @Override public void run() // F73234 { synchronized (this) // d601399 { if (ivIsCanceled) // d583637 { //if this instance has been canceled, we do no more processing. // this also guarantees that a future alarm i...
public class class_name { @Override public void run() // F73234 { synchronized (this) // d601399 { if (ivIsCanceled) // d583637 { //if this instance has been canceled, we do no more processing. // this also guarantees that a future alarm i...
public class class_name { @Deprecated public void start(final Listener listener) { if (listener instanceof Observer) { start((Observer) listener); } else { start(new Observer() { @Override public void onError(Status error) { listener.onError(error); } ...
public class class_name { @Deprecated public void start(final Listener listener) { if (listener instanceof Observer) { start((Observer) listener); // depends on control dependency: [if], data = [none] } else { start(new Observer() { @Override public void onError(Status error) ...
public class class_name { private static boolean datetimeFormatSpecifiesZone(Slice formatString) { boolean quoted = false; for (char c : formatString.toStringUtf8().toCharArray()) { if (quoted) { if (c == '\'') { quoted = false; } ...
public class class_name { private static boolean datetimeFormatSpecifiesZone(Slice formatString) { boolean quoted = false; for (char c : formatString.toStringUtf8().toCharArray()) { if (quoted) { if (c == '\'') { quoted = false; // depends on control ...
public class class_name { public static Class<?> getMapperClass(String msId) { if (msId.indexOf(".") == -1) { throw new MapperException("当前MappedStatement的id=" + msId + ",不符合MappedStatement的规则!"); } String mapperClassStr = msId.substring(0, msId.lastIndexOf(".")); //由于一个接口中的...
public class class_name { public static Class<?> getMapperClass(String msId) { if (msId.indexOf(".") == -1) { throw new MapperException("当前MappedStatement的id=" + msId + ",不符合MappedStatement的规则!"); } String mapperClassStr = msId.substring(0, msId.lastIndexOf(".")); //由于一个接口中的...
public class class_name { private void doChangeSelectionInList(int moveBy) { PlayListEntry [] selected = playList.getSelectedEntries(); if (selected==null || selected.length == 0) { playList.setSelectedElement(0); doMakeIndexVisible(0); } else { int firstIndex = selected[0].getIndexInPlaylist(); ...
public class class_name { private void doChangeSelectionInList(int moveBy) { PlayListEntry [] selected = playList.getSelectedEntries(); if (selected==null || selected.length == 0) { playList.setSelectedElement(0); // depends on control dependency: [if], data = [none] doMakeIndexVisible(0); // depends on c...
public class class_name { public int updateByHql(String secondHalfOfHql, Object[] paramValues, Type[] paramTypes){ StringBuilder queryStr = new StringBuilder(); queryStr.append("update ") .append(this.clazz.getName()) .append(" "); if (secondHalfOfHql != null){ queryStr.append(secondHalfOfHq...
public class class_name { public int updateByHql(String secondHalfOfHql, Object[] paramValues, Type[] paramTypes){ StringBuilder queryStr = new StringBuilder(); queryStr.append("update ") .append(this.clazz.getName()) .append(" "); if (secondHalfOfHql != null){ queryStr.append(secondHalfOfHq...
public class class_name { protected ConditionOutcome getResourceOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) { List<String> found = new ArrayList<>(); for (String location : this.resourceLocations) { Resource resource = context.getResourceLoader().getResource(location); if (resource !...
public class class_name { protected ConditionOutcome getResourceOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) { List<String> found = new ArrayList<>(); for (String location : this.resourceLocations) { Resource resource = context.getResourceLoader().getResource(location); if (resource !...
public class class_name { @NonNull public static SourceParams createBancontactParams( @IntRange(from = 0) long amount, @NonNull String name, @NonNull String returnUrl, @Nullable String statementDescriptor, @Nullable String preferredLanguage) { fin...
public class class_name { @NonNull public static SourceParams createBancontactParams( @IntRange(from = 0) long amount, @NonNull String name, @NonNull String returnUrl, @Nullable String statementDescriptor, @Nullable String preferredLanguage) { fin...
public class class_name { @Override public synchronized void authenticate() throws PortalSecurityException { int i; Enumeration e = mySubContexts.elements(); while (e.hasMoreElements()) { ISecurityContext sctx = ((Entry) e.nextElement()).getCtx(); // The principal a...
public class class_name { @Override public synchronized void authenticate() throws PortalSecurityException { int i; Enumeration e = mySubContexts.elements(); while (e.hasMoreElements()) { ISecurityContext sctx = ((Entry) e.nextElement()).getCtx(); // The principal a...
public class class_name { private boolean isCacheValid() { long now = CurrentTime.currentTime(); if ((now - _lastTime < 100) && ! CurrentTime.isTest()) return true; long oldLastModified = _lastModified; long oldLength = _length; long newLastModified = getBacking().getLastModified(); ...
public class class_name { private boolean isCacheValid() { long now = CurrentTime.currentTime(); if ((now - _lastTime < 100) && ! CurrentTime.isTest()) return true; long oldLastModified = _lastModified; long oldLength = _length; long newLastModified = getBacking().getLastModified(); ...
public class class_name { public List<RuleProxyField> clearDerived() { List<RuleProxyField> ret = new ArrayList<RuleProxyField>(); List<ProxyObject> proxyObjects = m_session.getProxyObjects(); for (ProxyObject proxyObject: proxyObjects) { for (Map.Entry<String,ProxyField> e...
public class class_name { public List<RuleProxyField> clearDerived() { List<RuleProxyField> ret = new ArrayList<RuleProxyField>(); List<ProxyObject> proxyObjects = m_session.getProxyObjects(); for (ProxyObject proxyObject: proxyObjects) { for (Map.Entry<String,ProxyField> e...
public class class_name { public void purgeBodyBuffers(boolean callClose) { // the async read for the entire incoming body has finished, discard // the buffers and pick up with the close sequence if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Disca...
public class class_name { public void purgeBodyBuffers(boolean callClose) { // the async read for the entire incoming body has finished, discard // the buffers and pick up with the close sequence if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Disca...
public class class_name { public byte[] getBytes() { ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { workbook.write(baos); } catch (IOException e) { new RuntimeException(e); } finally { if (baos != null) try { baos.close(); } catch (...
public class class_name { public byte[] getBytes() { ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { workbook.write(baos); // depends on control dependency: [try], data = [none] } catch (IOException e) { new RuntimeException(e); } finally { // depends on control depen...
public class class_name { private Zxid getCommittedZxid(ClusterConfiguration cnf) { ArrayList<Zxid> zxids = new ArrayList<Zxid>(); LOG.debug("Getting zxid can be committd for cluster configuration {}", cnf.getVersion()); for (PeerHandler ph : quorumMap.values()) { Zxid ackZxid = ph.getL...
public class class_name { private Zxid getCommittedZxid(ClusterConfiguration cnf) { ArrayList<Zxid> zxids = new ArrayList<Zxid>(); LOG.debug("Getting zxid can be committd for cluster configuration {}", cnf.getVersion()); for (PeerHandler ph : quorumMap.values()) { Zxid ackZxid = ph.getL...
public class class_name { public String buildUnionSubQuery( String typeDiscriminatorColumn, String[] unionColumns, Set<String> columnsPresentInTable, int computedColumnsOffset, String typeDiscriminatorValue, String selection, String gr...
public class class_name { public String buildUnionSubQuery( String typeDiscriminatorColumn, String[] unionColumns, Set<String> columnsPresentInTable, int computedColumnsOffset, String typeDiscriminatorValue, String selection, String gr...
public class class_name { private StringBuffer getExceptionElement(Throwable throwable) { StringBuffer buf = new StringBuffer(256); if (!m_writeHtml) { if (m_showExceptionStackTrace) { buf.append("aT('"); buf.append(getMessages().key(Messages.RPT_EXCEPTION_...
public class class_name { private StringBuffer getExceptionElement(Throwable throwable) { StringBuffer buf = new StringBuffer(256); if (!m_writeHtml) { if (m_showExceptionStackTrace) { buf.append("aT('"); buf.append(getMessages().key(Messages.RPT_EXCEPTION_...
public class class_name { public void onDeleteResponseEvent(ResponseEvent event, ActivityContextInterface aci) { if (event.getException() != null) { if (tracer.isInfoEnabled()) { tracer.info("Failed to delete " + event.getURI(), event.getException()); } getParent().deleteResponse(event.getURI(...
public class class_name { public void onDeleteResponseEvent(ResponseEvent event, ActivityContextInterface aci) { if (event.getException() != null) { if (tracer.isInfoEnabled()) { tracer.info("Failed to delete " + event.getURI(), event.getException()); // depends on control dependency: [if], data = [n...
public class class_name { public static AssertionInfo getAssertion(Message message) throws SAXException, IOException, ParserConfigurationException { AssertionInfoMap aim = message.get(AssertionInfoMap.class); if (aim != null) { Collection<AssertionInfo> ais = aim .get(CompressionPolicyBuilder.COMPRES...
public class class_name { public static AssertionInfo getAssertion(Message message) throws SAXException, IOException, ParserConfigurationException { AssertionInfoMap aim = message.get(AssertionInfoMap.class); if (aim != null) { Collection<AssertionInfo> ais = aim .get(CompressionPolicyBuilder.COMPRES...
public class class_name { static <T> List<T> toList(Class<T> targetClass, Cursor cursor, int offset, int count) { if (N.isEntity(targetClass)) { final DataSet ds = extractData(targetClass, cursor, offset, count); if (ds == null || ds.isEmpty()) { return new ArrayLi...
public class class_name { static <T> List<T> toList(Class<T> targetClass, Cursor cursor, int offset, int count) { if (N.isEntity(targetClass)) { final DataSet ds = extractData(targetClass, cursor, offset, count); if (ds == null || ds.isEmpty()) { return new ArrayLi...
public class class_name { protected boolean isGzipEligible(final HttpServletRequest request) { // request parameter name if (requestParameterName.length() != 0) { String forceGzipString = request.getParameter(requestParameterName); if (forceGzipString != null) { return Converter.get().toBooleanValue(fo...
public class class_name { protected boolean isGzipEligible(final HttpServletRequest request) { // request parameter name if (requestParameterName.length() != 0) { String forceGzipString = request.getParameter(requestParameterName); if (forceGzipString != null) { return Converter.get().toBooleanValue(fo...
public class class_name { public boolean[] toBooleanArray() { boolean[] bits = new boolean[length]; for (int i=0; i < length; i++) { bits[i] = get(i); } return bits; } }
public class class_name { public boolean[] toBooleanArray() { boolean[] bits = new boolean[length]; for (int i=0; i < length; i++) { bits[i] = get(i); // depends on control dependency: [for], data = [i] } return bits; } }
public class class_name { @Override public Tuple getNext() throws IOException { Tuple tuple = null; try { if (isBuildingExample) { isBuildingExample = false; // Terminate on the next iteration return tupleFactory.newTuple(createPigExample()); ...
public class class_name { @Override public Tuple getNext() throws IOException { Tuple tuple = null; try { if (isBuildingExample) { isBuildingExample = false; // Terminate on the next iteration // depends on control dependency: [if], data = [none] ...
public class class_name { protected void processBindings(ObjectMapper jsonMapper, JsonNode root) { String script = null; try { if(root.has("bindings")) { JsonNode bindingsNode = root.get("bindings"); if(bindingsNode.isArray()) { String[] jsLines = jsonMapper.reader(String[].clas...
public class class_name { protected void processBindings(ObjectMapper jsonMapper, JsonNode root) { String script = null; try { if(root.has("bindings")) { JsonNode bindingsNode = root.get("bindings"); if(bindingsNode.isArray()) { String[] jsLines = jsonMapper.reader(String[].clas...
public class class_name { public java.util.List<ServerCertificateMetadata> getServerCertificateMetadataList() { if (serverCertificateMetadataList == null) { serverCertificateMetadataList = new com.amazonaws.internal.SdkInternalList<ServerCertificateMetadata>(); } return serverCertif...
public class class_name { public java.util.List<ServerCertificateMetadata> getServerCertificateMetadataList() { if (serverCertificateMetadataList == null) { serverCertificateMetadataList = new com.amazonaws.internal.SdkInternalList<ServerCertificateMetadata>(); // depends on control dependency: [if...
public class class_name { public static SimpleURIReference toURIReference(String pidString) { SimpleURIReference ref = null; try { ref = new SimpleURIReference(new URI(toURI(pidString))); } catch (URISyntaxException e) { // assumes pid is well-formed throw ne...
public class class_name { public static SimpleURIReference toURIReference(String pidString) { SimpleURIReference ref = null; try { ref = new SimpleURIReference(new URI(toURI(pidString))); // depends on control dependency: [try], data = [none] } catch (URISyntaxException e) { ...
public class class_name { public File[] listFiles(FileFilter filter) { File[] files = listFiles(); if (filter == null || files == null) { return files; } List<File> result = new ArrayList<File>(files.length); for (File file : files) { if (filter.accept(fi...
public class class_name { public File[] listFiles(FileFilter filter) { File[] files = listFiles(); if (filter == null || files == null) { return files; // depends on control dependency: [if], data = [none] } List<File> result = new ArrayList<File>(files.length); for ...
public class class_name { private static ClassLoader getPlatformClassLoader() { if (JavaInfo.majorVersion() >= 9) { return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() { @Override public ClassLoader run() { ClassLoader pcl = n...
public class class_name { private static ClassLoader getPlatformClassLoader() { if (JavaInfo.majorVersion() >= 9) { return AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() { @Override public ClassLoader run() { ClassLoader pcl = n...
public class class_name { public List<FlowEvent> getFlowEvents(FlowKey flowKey) throws IOException { byte[] startKey = Bytes.add(flowKeyConverter.toBytes(flowKey), Constants.SEP_BYTES); Scan scan = new Scan(startKey); scan.setFilter(new WhileMatchFilter(new PrefixFilter(startKey))); List<FlowE...
public class class_name { public List<FlowEvent> getFlowEvents(FlowKey flowKey) throws IOException { byte[] startKey = Bytes.add(flowKeyConverter.toBytes(flowKey), Constants.SEP_BYTES); Scan scan = new Scan(startKey); scan.setFilter(new WhileMatchFilter(new PrefixFilter(startKey))); List<FlowE...
public class class_name { public void buildModuleTags(XMLNode node, Content moduleContentTree) { if (!configuration.nocomment) { moduleWriter.addModuleTags(moduleContentTree); } } }
public class class_name { public void buildModuleTags(XMLNode node, Content moduleContentTree) { if (!configuration.nocomment) { moduleWriter.addModuleTags(moduleContentTree); // depends on control dependency: [if], data = [none] } } }
public class class_name { private void addDescriptor(boolean positive, NccFeature f) { // avoid adding the same descriptor twice or adding contradicting results if( positive) if( distance(f,templatePositive) < 0.05 ) { return; } if( !positive) { if( distance(f,templateNegative) < 0.05 ) { return...
public class class_name { private void addDescriptor(boolean positive, NccFeature f) { // avoid adding the same descriptor twice or adding contradicting results if( positive) if( distance(f,templatePositive) < 0.05 ) { return; // depends on control dependency: [if], data = [none] } if( !positive) { ...
public class class_name { private void initialize() { this.setContentPane(getJContentPane()); this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); this.setTitle(TITLE); this.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(WindowEvent winEv...
public class class_name { private void initialize() { this.setContentPane(getJContentPane()); this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); this.setTitle(TITLE); this.addWindowListener(new java.awt.event.WindowAdapter() { @Override public void windowClosing(WindowEvent winEv...
public class class_name { public WebElement waitForWebElement(final By by, int minimumNumberOfMatches, int timeout, boolean scroll){ final long endTime = SystemClock.uptimeMillis() + timeout; while (true) { final boolean timedOut = SystemClock.uptimeMillis() > endTime; if (timedOut){ searcher.logMatc...
public class class_name { public WebElement waitForWebElement(final By by, int minimumNumberOfMatches, int timeout, boolean scroll){ final long endTime = SystemClock.uptimeMillis() + timeout; while (true) { final boolean timedOut = SystemClock.uptimeMillis() > endTime; if (timedOut){ searcher.logMatc...
public class class_name { public static BufferedImage getLocalBufferedImage(File res) { try { BufferedImage read = ImageIO.read(res); return read; } catch (FileNotFoundException e) { logger.error("FileNotFound", e); } catch (IOException e) { logger.error("getLocalBufferedImage IO error", e); } re...
public class class_name { public static BufferedImage getLocalBufferedImage(File res) { try { BufferedImage read = ImageIO.read(res); return read; // depends on control dependency: [try], data = [none] } catch (FileNotFoundException e) { logger.error("FileNotFound", e); } catch (IOException e) { // depe...
public class class_name { @SuppressWarnings("unchecked") private void privateSync(final boolean syncInternal, final boolean forceSyncStore) { if (readOnly) { return; } final long ts = System.currentTimeMillis(); boolean isDirty = false; if (!dirtyLeafNodes.isEmpty() || !dirtyInternalNodes.isEmpty()) { ...
public class class_name { @SuppressWarnings("unchecked") private void privateSync(final boolean syncInternal, final boolean forceSyncStore) { if (readOnly) { return; // depends on control dependency: [if], data = [none] } final long ts = System.currentTimeMillis(); boolean isDirty = false; if (!dirtyLeaf...
public class class_name { public static String resolveType(String klass, PackageDescr packageDescr, PackageRegistry pkgRegistry) { String arraySuffix = ""; int arrayIndex = klass.indexOf("["); if (arrayIndex >= 0) { ...
public class class_name { public static String resolveType(String klass, PackageDescr packageDescr, PackageRegistry pkgRegistry) { String arraySuffix = ""; int arrayIndex = klass.indexOf("["); if (arrayIndex >= 0) { ...
public class class_name { public void deserialize(ByteBuffer bbf) { this.clear(); ByteBuffer buffer = bbf.order() == LITTLE_ENDIAN ? bbf : bbf.slice().order(LITTLE_ENDIAN); final int cookie = buffer.getInt(); if ((cookie & 0xFFFF) != SERIAL_COOKIE && cookie != SERIAL_COOKIE_NO_RUNCONTAINER) { th...
public class class_name { public void deserialize(ByteBuffer bbf) { this.clear(); ByteBuffer buffer = bbf.order() == LITTLE_ENDIAN ? bbf : bbf.slice().order(LITTLE_ENDIAN); final int cookie = buffer.getInt(); if ((cookie & 0xFFFF) != SERIAL_COOKIE && cookie != SERIAL_COOKIE_NO_RUNCONTAINER) { th...
public class class_name { public void marshall(PutDedicatedIpInPoolRequest putDedicatedIpInPoolRequest, ProtocolMarshaller protocolMarshaller) { if (putDedicatedIpInPoolRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(PutDedicatedIpInPoolRequest putDedicatedIpInPoolRequest, ProtocolMarshaller protocolMarshaller) { if (putDedicatedIpInPoolRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public Object get(int iRowIndex, int iRecordCount) throws DBException, RemoteException { try { Utility.getLogger().info("EJB get: row= " + iRowIndex + " count= " + iRecordCount); synchronized (this.getTask()) { Record gridReco...
public class class_name { public Object get(int iRowIndex, int iRecordCount) throws DBException, RemoteException { try { Utility.getLogger().info("EJB get: row= " + iRowIndex + " count= " + iRecordCount); synchronized (this.getTask()) { Record gridReco...
public class class_name { private NodeSet<OWLClass> nodesToOwlClassNodeSet(Set<au.csiro.ontology.Node> nodes) { Set<Node<OWLClass>> temp = new HashSet<Node<OWLClass>>(); for (au.csiro.ontology.Node n : nodes) { temp.add(nodeToOwlClassNode(n)); } return new OWLClassNodeS...
public class class_name { private NodeSet<OWLClass> nodesToOwlClassNodeSet(Set<au.csiro.ontology.Node> nodes) { Set<Node<OWLClass>> temp = new HashSet<Node<OWLClass>>(); for (au.csiro.ontology.Node n : nodes) { temp.add(nodeToOwlClassNode(n)); // depends on control dependency: [for], da...
public class class_name { protected final CompletionStage<Void> loadIfNeeded(final InvocationContext ctx, Object key, final FlagAffectedCommand cmd) { if (skipLoad(cmd, key, ctx)) { return null; } return loadInContext(ctx, key, cmd); } }
public class class_name { protected final CompletionStage<Void> loadIfNeeded(final InvocationContext ctx, Object key, final FlagAffectedCommand cmd) { if (skipLoad(cmd, key, ctx)) { return null; // depends on control dependency: [if], data = [none] } return loadInContext(ctx, key, cmd); ...
public class class_name { private void appendDependentPluginKeys(String pluginKey, Set<String> appendTo) { for (PluginInfo otherPlugin : getPluginInfos()) { if (!otherPlugin.getKey().equals(pluginKey)) { for (PluginInfo.RequiredPlugin requirement : otherPlugin.getRequiredPlugins()) { if (re...
public class class_name { private void appendDependentPluginKeys(String pluginKey, Set<String> appendTo) { for (PluginInfo otherPlugin : getPluginInfos()) { if (!otherPlugin.getKey().equals(pluginKey)) { for (PluginInfo.RequiredPlugin requirement : otherPlugin.getRequiredPlugins()) { if (re...
public class class_name { public void setUrl(String url) { this.url = url; if (child != null) { child.destroy(); child = null; } if (url.startsWith("http") || !url.endsWith(".fsp")) { child = new Iframe(); ((Iframe) child).setSrc(url); ...
public class class_name { public void setUrl(String url) { this.url = url; if (child != null) { child.destroy(); // depends on control dependency: [if], data = [none] child = null; // depends on control dependency: [if], data = [none] } if (url.startsWith("http...
public class class_name { protected void capture3DScreenShot(GVRRenderTarget renderTarget, boolean isMultiview) { if (mScreenshot3DCallback == null) { return; } final Bitmap[] bitmaps = new Bitmap[6]; renderSixCamerasAndReadback(mMainScene.getMainCameraRig(), bitmaps, render...
public class class_name { protected void capture3DScreenShot(GVRRenderTarget renderTarget, boolean isMultiview) { if (mScreenshot3DCallback == null) { return; // depends on control dependency: [if], data = [none] } final Bitmap[] bitmaps = new Bitmap[6]; renderSixCamerasAndR...
public class class_name { public static String extractAccountIdFromObjectKey(String objectKey) { if (objectKey == null) { return null; } int start = objectKey.lastIndexOf(FORWARD_SLASH); if (start != -1) { int end = objectKey.indexOf(UNDER_SCORE, start + FORWAR...
public class class_name { public static String extractAccountIdFromObjectKey(String objectKey) { if (objectKey == null) { return null; // depends on control dependency: [if], data = [none] } int start = objectKey.lastIndexOf(FORWARD_SLASH); if (start != -1) { i...
public class class_name { public void addAttribute(AttributeSpecification specification) { synchronized (this.attributes) { if (!this.attributes.contains(specification)) { this.attributes.add(specification); if (this.sentAttrSpecifications) { this.announceAttributes(); } } } } }
public class class_name { public void addAttribute(AttributeSpecification specification) { synchronized (this.attributes) { if (!this.attributes.contains(specification)) { this.attributes.add(specification); // depends on control dependency: [if], data = [none] if (this.sentAttrSpecifications) { thi...
public class class_name { public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c = tableCellRenderer.getTableCellRendererComponent(table, value, isSelected, h...
public class class_name { public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c = tableCellRenderer.getTableCellRendererComponent(table, value, isSelected, h...
public class class_name { public static List<IterableResult<?>> getIterableResults(Result r) { if(r instanceof IterableResult<?>) { List<IterableResult<?>> irs = new ArrayList<>(1); irs.add((IterableResult<?>) r); return irs; } if(r instanceof HierarchicalResult) { return filterResu...
public class class_name { public static List<IterableResult<?>> getIterableResults(Result r) { if(r instanceof IterableResult<?>) { List<IterableResult<?>> irs = new ArrayList<>(1); // depends on control dependency: [if], data = [)] irs.add((IterableResult<?>) r); // depends on control dependency: [if]...
public class class_name { public Observable<ServiceResponse<Page<DataLakeStoreAccountInfoInner>>> listDataLakeStoreAccountsWithServiceResponseAsync(final String resourceGroupName, final String accountName) { return listDataLakeStoreAccountsSinglePageAsync(resourceGroupName, accountName) .concatMap(...
public class class_name { public Observable<ServiceResponse<Page<DataLakeStoreAccountInfoInner>>> listDataLakeStoreAccountsWithServiceResponseAsync(final String resourceGroupName, final String accountName) { return listDataLakeStoreAccountsSinglePageAsync(resourceGroupName, accountName) .concatMap(...
public class class_name { public ClassLoader determineActualClassLoader() { if (classLoader != null) { return classLoader; } else if (kieContainer != null) { return kieContainer.getClassLoader(); } return getClass().getClassLoader(); } }
public class class_name { public ClassLoader determineActualClassLoader() { if (classLoader != null) { return classLoader; // depends on control dependency: [if], data = [none] } else if (kieContainer != null) { return kieContainer.getClassLoader(); // depends on control depende...
public class class_name { @Override public EEnum getIfcWallTypeEnum() { if (ifcWallTypeEnumEEnum == null) { ifcWallTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(1100); } return ifcWallTypeEnumEEnum; } }
public class class_name { @Override public EEnum getIfcWallTypeEnum() { if (ifcWallTypeEnumEEnum == null) { ifcWallTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(1100); // depends on control dependency: [if], data = [none] } return ifcWal...
public class class_name { private void readLocalInfilePacket(Buffer buffer, Results results) throws SQLException { int seq = 2; buffer.getLengthEncodedNumeric(); //field pos String fileName = buffer.readStringNullEnd(StandardCharsets.UTF_8); try { // Server request the local file (LOCAL DATA LOC...
public class class_name { private void readLocalInfilePacket(Buffer buffer, Results results) throws SQLException { int seq = 2; buffer.getLengthEncodedNumeric(); //field pos String fileName = buffer.readStringNullEnd(StandardCharsets.UTF_8); try { // Server request the local file (LOCAL DATA LOC...
public class class_name { public float[][] projToLatLon(float[][] from, float[][] to) { int cnt = from[0].length; float[] fromXA = from[INDEX_X]; float[] fromYA = from[INDEX_Y]; float[] toLatA = to[INDEX_LAT]; float[] toLonA = to[INDEX_LON]; double toLat, toLon; for (int i = 0; i <...
public class class_name { public float[][] projToLatLon(float[][] from, float[][] to) { int cnt = from[0].length; float[] fromXA = from[INDEX_X]; float[] fromYA = from[INDEX_Y]; float[] toLatA = to[INDEX_LAT]; float[] toLonA = to[INDEX_LON]; double toLat, toLon; for (int i = 0; i <...
public class class_name { protected UriQueryBuilder generateQueryBuilder() throws StorageException { final UriQueryBuilder builder = new UriQueryBuilder(); if (!Utility.isNullOrEmpty(this.filterString)) { builder.add(TableConstants.FILTER, this.filterString); } if (this.tak...
public class class_name { protected UriQueryBuilder generateQueryBuilder() throws StorageException { final UriQueryBuilder builder = new UriQueryBuilder(); if (!Utility.isNullOrEmpty(this.filterString)) { builder.add(TableConstants.FILTER, this.filterString); } if (this.tak...
public class class_name { @Override public void start() { if (this.started) { throw new IllegalStateException("The stub server has been started already."); } logger.debug("starting the underlying stub server..."); this.server.registerRequestManager(this...
public class class_name { @Override public void start() { if (this.started) { throw new IllegalStateException("The stub server has been started already."); } logger.debug("starting the underlying stub server..."); this.server.registerRequestManager(this...
public class class_name { @Override public void start() throws ChannelException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "start"); } if (this.stopFlag) { // only start once this.stopFlag = false; if (th...
public class class_name { @Override public void start() throws ChannelException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "start"); } if (this.stopFlag) { // only start once this.stopFlag = false; if (th...
public class class_name { @Override public final boolean isValid(final Object pvalue, final ConstraintValidatorContext pcontext) { if (pvalue == null) { return true; } try { final Object field1Value = BeanPropertyReaderUtil.getNullSaveProperty(pvalue, field1Name); final Object field2Val...
public class class_name { @Override public final boolean isValid(final Object pvalue, final ConstraintValidatorContext pcontext) { if (pvalue == null) { return true; // depends on control dependency: [if], data = [none] } try { final Object field1Value = BeanPropertyReaderUtil.getNullSaveProp...
public class class_name { protected void decompressData(ArrayList arr) { HashMap fstData = null; // The first data record (Map type) HashMap cprData; // The following data record which will be compressed for (Object sub : arr) { if (sub instanceof ArrayList) { ...
public class class_name { protected void decompressData(ArrayList arr) { HashMap fstData = null; // The first data record (Map type) HashMap cprData; // The following data record which will be compressed for (Object sub : arr) { if (sub instanceof ArrayList) { ...
public class class_name { public String loadSpecification() { try { specification = gpUtil.getSpecification(spaceKey, getPage().getTitle()); } catch (GreenPepperServerException e) { if(!e.getId().equals(GreenPepperServerErrorKey.SPECIFICATION_NOT_FOUN...
public class class_name { public String loadSpecification() { try { specification = gpUtil.getSpecification(spaceKey, getPage().getTitle()); // depends on control dependency: [try], data = [none] } catch (GreenPepperServerException e) { if(!e.getId()....
public class class_name { @Override protected List<S> reproduction(List<S> population) { int numberOfParents = crossoverOperator.getNumberOfRequiredParents() ; checkNumberOfParents(population, numberOfParents); List<S> offspringPopulation = new ArrayList<>(getMaxPopulationSize()); for (int i = 0; i...
public class class_name { @Override protected List<S> reproduction(List<S> population) { int numberOfParents = crossoverOperator.getNumberOfRequiredParents() ; checkNumberOfParents(population, numberOfParents); List<S> offspringPopulation = new ArrayList<>(getMaxPopulationSize()); for (int i = 0; i...
public class class_name { public boolean isCorrelated() { if (opType == OpTypes.TABLE_SUBQUERY && subQuery != null && subQuery.isCorrelated()) { return true; } return false; } }
public class class_name { public boolean isCorrelated() { if (opType == OpTypes.TABLE_SUBQUERY && subQuery != null && subQuery.isCorrelated()) { return true; // depends on control dependency: [if], data = [none] } return false; } }
public class class_name { public void performTranslation(File gensrcDir, Map<String,Transformer> suffixRules) { Map<String,Transformer> sr = new HashMap<String,Transformer>(); for (Map.Entry<String,Transformer> e : suffixRules.entrySet()) { if (e.getValue() != copyFiles && e...
public class class_name { public void performTranslation(File gensrcDir, Map<String,Transformer> suffixRules) { Map<String,Transformer> sr = new HashMap<String,Transformer>(); for (Map.Entry<String,Transformer> e : suffixRules.entrySet()) { if (e.getValue() != copyFiles && e...
public class class_name { public void setFillColor(Color color) { String hex = null; Double opacity = null; if (color != null) { hex = color.getColorHexShorthand(); opacity = new Double(color.getOpacity()); } setFillColor(hex); setFillOpacity(opac...
public class class_name { public void setFillColor(Color color) { String hex = null; Double opacity = null; if (color != null) { hex = color.getColorHexShorthand(); // depends on control dependency: [if], data = [none] opacity = new Double(color.getOpacity()); // depends...
public class class_name { public static Uri getFileUri(Activity activity, File file) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { return FileProvider.getUriForFile(activity, activity.getPackageName() + ".file.path.share", file); } return Uri.fromFile(file); } }
public class class_name { public static Uri getFileUri(Activity activity, File file) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { return FileProvider.getUriForFile(activity, activity.getPackageName() + ".file.path.share", file); // depends on control dependency: [if], data = [none] ...
public class class_name { public static String remove(final String s, final String remove) { if (isEmpty(s) || isEmpty(remove)) { return s; } return replace(s, remove, "", -1); } }
public class class_name { public static String remove(final String s, final String remove) { if (isEmpty(s) || isEmpty(remove)) { return s; // depends on control dependency: [if], data = [none] } return replace(s, remove, "", -1); } }
public class class_name { public static MockMvcFactory of(Object[] controllerOrMockMvcConfigurers) { List<Object> controllers = new ArrayList<Object>(); List<MockMvcConfigurer> configurers = new ArrayList<MockMvcConfigurer>(); for (Object object : controllerOrMockMvcConfigurers) { i...
public class class_name { public static MockMvcFactory of(Object[] controllerOrMockMvcConfigurers) { List<Object> controllers = new ArrayList<Object>(); List<MockMvcConfigurer> configurers = new ArrayList<MockMvcConfigurer>(); for (Object object : controllerOrMockMvcConfigurers) { i...
public class class_name { public String getParameterValue(String name) { NodeList parms = node.getChildNodes(); for (int i = 0; i < parms.getLength(); i++) { Element parm = (Element) parms.item(i); if (parm.getTagName().equals(Constants.ELM_PARAMETER)) { String ...
public class class_name { public String getParameterValue(String name) { NodeList parms = node.getChildNodes(); for (int i = 0; i < parms.getLength(); i++) { Element parm = (Element) parms.item(i); if (parm.getTagName().equals(Constants.ELM_PARAMETER)) { String ...
public class class_name { public XExtension getByPrefix(String prefix) { for (XExtension ext : extensionList) { if (ext.getPrefix().equals(prefix)) { return ext; } } return null; } }
public class class_name { public XExtension getByPrefix(String prefix) { for (XExtension ext : extensionList) { if (ext.getPrefix().equals(prefix)) { return ext; // depends on control dependency: [if], data = [none] } ...
public class class_name { public Observable<ServiceResponse<Page<CertificateItem>>> getCertificatesWithServiceResponseAsync(final String vaultBaseUrl) { return getCertificatesSinglePageAsync(vaultBaseUrl) .concatMap(new Func1<ServiceResponse<Page<CertificateItem>>, Observable<ServiceResponse<Page<C...
public class class_name { public Observable<ServiceResponse<Page<CertificateItem>>> getCertificatesWithServiceResponseAsync(final String vaultBaseUrl) { return getCertificatesSinglePageAsync(vaultBaseUrl) .concatMap(new Func1<ServiceResponse<Page<CertificateItem>>, Observable<ServiceResponse<Page<C...
public class class_name { public void namespaceAfterStartElement(String prefix, String uri) throws SAXException { // hack for XSLTC with finding URI for default namespace if (m_firstTagNotEmitted && m_firstElementURI == null && m_firstElementName != null) { String pre...
public class class_name { public void namespaceAfterStartElement(String prefix, String uri) throws SAXException { // hack for XSLTC with finding URI for default namespace if (m_firstTagNotEmitted && m_firstElementURI == null && m_firstElementName != null) { String pre...
public class class_name { public void marshall(LambdaFunctionScheduledEventAttributes lambdaFunctionScheduledEventAttributes, ProtocolMarshaller protocolMarshaller) { if (lambdaFunctionScheduledEventAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { public void marshall(LambdaFunctionScheduledEventAttributes lambdaFunctionScheduledEventAttributes, ProtocolMarshaller protocolMarshaller) { if (lambdaFunctionScheduledEventAttributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { @Override public @Nonnull MachineImage registerImageBundle(@Nonnull ImageCreateOptions options) throws CloudException, InternalException { APITrace.begin(getProvider(), "Image.registerImageBundle"); try { if( !MachineImageFormat.AWS.equals(options.getBundleForm...
public class class_name { @Override public @Nonnull MachineImage registerImageBundle(@Nonnull ImageCreateOptions options) throws CloudException, InternalException { APITrace.begin(getProvider(), "Image.registerImageBundle"); try { if( !MachineImageFormat.AWS.equals(options.getBundleForm...
public class class_name { public DescribeSpotInstanceRequestsRequest withSpotInstanceRequestIds(String... spotInstanceRequestIds) { if (this.spotInstanceRequestIds == null) { setSpotInstanceRequestIds(new com.amazonaws.internal.SdkInternalList<String>(spotInstanceRequestIds.length)); } ...
public class class_name { public DescribeSpotInstanceRequestsRequest withSpotInstanceRequestIds(String... spotInstanceRequestIds) { if (this.spotInstanceRequestIds == null) { setSpotInstanceRequestIds(new com.amazonaws.internal.SdkInternalList<String>(spotInstanceRequestIds.length)); // depends on ...
public class class_name { private ArrayList obtainCandidateList(String[] tTokens, String[] uTokens, double[] tIdfArray, double[] uIdfArray) { ArrayList candidateList = new ArrayList(); double minStringSize = getMinStringSize(tTokens, uTokens); for (int t = 0; t <...
public class class_name { private ArrayList obtainCandidateList(String[] tTokens, String[] uTokens, double[] tIdfArray, double[] uIdfArray) { ArrayList candidateList = new ArrayList(); double minStringSize = getMinStringSize(tTokens, uTokens); for (int t = 0; t <...
public class class_name { public void stop() { if (runnerThread == null) { return; } runnerThread.interrupt(); nsLock.writeLock().lock(); try { if (runnerThread == null) { return; } this.cancel(); this.close(); while (runnerThread.isAlive()) { ...
public class class_name { public void stop() { if (runnerThread == null) { return; // depends on control dependency: [if], data = [none] } runnerThread.interrupt(); nsLock.writeLock().lock(); try { if (runnerThread == null) { return; // depends on control dependency: [if], dat...
public class class_name { public String nonpipelineWrite(String key, DataGenerator dataGenerator) { String value = key + "__" + dataGenerator.getRandomValue() + "__" + key; String result = this.jedisClient.get().set(key, value); if (!"OK".equals(result)) { logger.error("SET_ERROR: ...
public class class_name { public String nonpipelineWrite(String key, DataGenerator dataGenerator) { String value = key + "__" + dataGenerator.getRandomValue() + "__" + key; String result = this.jedisClient.get().set(key, value); if (!"OK".equals(result)) { logger.error("SET_ERROR: ...
public class class_name { public void marshall(InsertableImage insertableImage, ProtocolMarshaller protocolMarshaller) { if (insertableImage == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inserta...
public class class_name { public void marshall(InsertableImage insertableImage, ProtocolMarshaller protocolMarshaller) { if (insertableImage == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inserta...
public class class_name { public boolean isEUI64(boolean partial) { int segmentCount = getSegmentCount(); int endIndex = addressSegmentIndex + segmentCount; if(addressSegmentIndex <= 5) { if(endIndex > 6) { int index3 = 5 - addressSegmentIndex; IPv6AddressSegment seg3 = getSegment(index3); IPv6Add...
public class class_name { public boolean isEUI64(boolean partial) { int segmentCount = getSegmentCount(); int endIndex = addressSegmentIndex + segmentCount; if(addressSegmentIndex <= 5) { if(endIndex > 6) { int index3 = 5 - addressSegmentIndex; IPv6AddressSegment seg3 = getSegment(index3); IPv6Add...
public class class_name { protected void invalidateCacheEntry(String spaceId, String key, Object data) { if (isCacheEnabled()) { putToCache(getCacheName(), calcCacheKey(spaceId, key), data); } } }
public class class_name { protected void invalidateCacheEntry(String spaceId, String key, Object data) { if (isCacheEnabled()) { putToCache(getCacheName(), calcCacheKey(spaceId, key), data); // depends on control dependency: [if], data = [none] } } }
public class class_name { public String extractTransition(XEvent event) { XAttribute attribute = event.getAttributes().get(KEY_TRANSITION); if (attribute == null) { return null; } else { return ((XAttributeLiteral) attribute).getValue(); } } }
public class class_name { public String extractTransition(XEvent event) { XAttribute attribute = event.getAttributes().get(KEY_TRANSITION); if (attribute == null) { return null; // depends on control dependency: [if], data = [none] } else { return ((XAttributeLiteral) attribute).getValue(); // depends on c...
public class class_name { public boolean write(DataOutputStream daOut, boolean bFixedLength) { try { Float flData = (Float)this.getData(); float fData; if (flData == null) fData = Float.NaN; else fData = flData.floatValue(); ...
public class class_name { public boolean write(DataOutputStream daOut, boolean bFixedLength) { try { Float flData = (Float)this.getData(); float fData; if (flData == null) fData = Float.NaN; else fData = flData.floatValue(); ...
public class class_name { public void readChild(Element element, PrintWriter ps, int level, String name) { String nbTab = tabMaker(level); if (element instanceof Resource) { Resource resource = (Resource) element; writeBegin(ps, nbTab, name, level, element.getTypeAsString()); for (Resource....
public class class_name { public void readChild(Element element, PrintWriter ps, int level, String name) { String nbTab = tabMaker(level); if (element instanceof Resource) { Resource resource = (Resource) element; writeBegin(ps, nbTab, name, level, element.getTypeAsString()); // depends on contr...
public class class_name { static PackageInfo getDropboxAppPackage(Context context, Intent intent) { PackageManager manager = context.getPackageManager(); List<ResolveInfo> infos = manager.queryIntentActivities(intent, 0); if (null == infos || 1 != infos.size()) { // The official ap...
public class class_name { static PackageInfo getDropboxAppPackage(Context context, Intent intent) { PackageManager manager = context.getPackageManager(); List<ResolveInfo> infos = manager.queryIntentActivities(intent, 0); if (null == infos || 1 != infos.size()) { // The official ap...
public class class_name { public List<CustomWindowStateType<PortletDescriptor>> getAllCustomWindowState() { List<CustomWindowStateType<PortletDescriptor>> list = new ArrayList<CustomWindowStateType<PortletDescriptor>>(); List<Node> nodeList = model.get("custom-window-state"); for(Node node: nodeLi...
public class class_name { public List<CustomWindowStateType<PortletDescriptor>> getAllCustomWindowState() { List<CustomWindowStateType<PortletDescriptor>> list = new ArrayList<CustomWindowStateType<PortletDescriptor>>(); List<Node> nodeList = model.get("custom-window-state"); for(Node node: nodeLi...
public class class_name { public static int dayOfWeek(){ setTime(); int dayofweek = cal.get(Calendar.DAY_OF_WEEK) - 1; if (dayofweek == 0) { dayofweek = 7; } return dayofweek; } }
public class class_name { public static int dayOfWeek(){ setTime(); int dayofweek = cal.get(Calendar.DAY_OF_WEEK) - 1; if (dayofweek == 0) { dayofweek = 7; // depends on control dependency: [if], data = [none] } return dayofweek; } }
public class class_name { @Override public void load(UnitDaoFactory unitDaoFactory) { for (String query : queries) { unitDaoFactory.getUnitDao().execute(query); } } }
public class class_name { @Override public void load(UnitDaoFactory unitDaoFactory) { for (String query : queries) { unitDaoFactory.getUnitDao().execute(query); // depends on control dependency: [for], data = [query] } } }
public class class_name { public List<FaceletTaglibTagType<FaceletTaglibType<T>>> getAllTag() { List<FaceletTaglibTagType<FaceletTaglibType<T>>> list = new ArrayList<FaceletTaglibTagType<FaceletTaglibType<T>>>(); List<Node> nodeList = childNode.get("tag"); for(Node node: nodeList) { ...
public class class_name { public List<FaceletTaglibTagType<FaceletTaglibType<T>>> getAllTag() { List<FaceletTaglibTagType<FaceletTaglibType<T>>> list = new ArrayList<FaceletTaglibTagType<FaceletTaglibType<T>>>(); List<Node> nodeList = childNode.get("tag"); for(Node node: nodeList) { ...
public class class_name { @Override public EEnum getIfcComplexPropertyTemplateTypeEnum() { if (ifcComplexPropertyTemplateTypeEnumEEnum == null) { ifcComplexPropertyTemplateTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE .getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(938); } return ifcC...
public class class_name { @Override public EEnum getIfcComplexPropertyTemplateTypeEnum() { if (ifcComplexPropertyTemplateTypeEnumEEnum == null) { ifcComplexPropertyTemplateTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE .getEPackage(Ifc4Package.eNS_URI).getEClassifiers().get(938); // depends on cont...
public class class_name { private Map<String, Object> toMap(CompositeData value) { Map<String, Object> data = new HashMap<String, Object>(); for(String key : value.getCompositeType().keySet()) { data.put(key, value.get(key)); } return data; } }
public class class_name { private Map<String, Object> toMap(CompositeData value) { Map<String, Object> data = new HashMap<String, Object>(); for(String key : value.getCompositeType().keySet()) { data.put(key, value.get(key)); // depends on control dependency: [for], data = [key] } ...
public class class_name { public static ExtendedKeyUsage getExtendedKeyUsage(Set<String> usages) { KeyPurposeId[] keyUsages = new KeyPurposeId[usages.size()]; int i = 0; for (String usage : usages) { keyUsages[i++] = KeyPurposeId.getInstance(new ASN1ObjectIdentifier(usage)); ...
public class class_name { public static ExtendedKeyUsage getExtendedKeyUsage(Set<String> usages) { KeyPurposeId[] keyUsages = new KeyPurposeId[usages.size()]; int i = 0; for (String usage : usages) { keyUsages[i++] = KeyPurposeId.getInstance(new ASN1ObjectIdentifier(usage)); //...
public class class_name { public void marshall(MaintenanceWindowLambdaParameters maintenanceWindowLambdaParameters, ProtocolMarshaller protocolMarshaller) { if (maintenanceWindowLambdaParameters == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(MaintenanceWindowLambdaParameters maintenanceWindowLambdaParameters, ProtocolMarshaller protocolMarshaller) { if (maintenanceWindowLambdaParameters == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public Map<String, Integer> suggest(String string, int maxCost, int substitutionCost) { if (StringUtils.isNullOrBlank(string)) { return Collections.emptyMap(); } else if (containsKey(string)) { return Maps.map(string, 0); } Map<String, Integer> result...
public class class_name { public Map<String, Integer> suggest(String string, int maxCost, int substitutionCost) { if (StringUtils.isNullOrBlank(string)) { return Collections.emptyMap(); // depends on control dependency: [if], data = [none] } else if (containsKey(string)) { return Maps.map...
public class class_name { public void setNodeDataSizeIfQuotaExists(String repositoryName, String workspaceName, String nodePath, long dataSize) { setNodeDataSize(repositoryName, workspaceName, nodePath, dataSize); try { getNodeQuotaOrGroupOfNodesQuota(repositoryName, workspaceName, nodeP...
public class class_name { public void setNodeDataSizeIfQuotaExists(String repositoryName, String workspaceName, String nodePath, long dataSize) { setNodeDataSize(repositoryName, workspaceName, nodePath, dataSize); try { getNodeQuotaOrGroupOfNodesQuota(repositoryName, workspaceName, nodeP...
public class class_name { private void checkForGenerator(final Class<?> clazz, Field field, GeneratedValue generatedValue, String schemaName) { TableGenerator tableGenerator = field.getAnnotation(TableGenerator.class); SequenceGenerator sequenceGenerator = field.getAnnotation(SequenceGenerator.cl...
public class class_name { private void checkForGenerator(final Class<?> clazz, Field field, GeneratedValue generatedValue, String schemaName) { TableGenerator tableGenerator = field.getAnnotation(TableGenerator.class); SequenceGenerator sequenceGenerator = field.getAnnotation(SequenceGenerator.cl...
public class class_name { private void incrementHeaderCounter() { this.numberOfHeaders++; this.headerAddCount++; if (this.limitNumHeaders < this.numberOfHeaders) { String msg = "Too many headers in storage: " + this.numberOfHeaders; if (TraceComponent.isAnyTracingEnabled...
public class class_name { private void incrementHeaderCounter() { this.numberOfHeaders++; this.headerAddCount++; if (this.limitNumHeaders < this.numberOfHeaders) { String msg = "Too many headers in storage: " + this.numberOfHeaders; // depends on control dependency: [if], data = [no...
public class class_name { private static void createList( int data[], int k , int level , List<int[]> ret ) { data[k] = level; if( level < data.length-1 ) { for( int i = 0; i < data.length; i++ ) { if( data[i] == -1 ) { createList(data,i,level+1,ret)...
public class class_name { private static void createList( int data[], int k , int level , List<int[]> ret ) { data[k] = level; if( level < data.length-1 ) { for( int i = 0; i < data.length; i++ ) { if( data[i] == -1 ) { createList(data,i,level+1,ret)...
public class class_name { @Override public IPAddress getAddress() throws IncompatibleAddressException { if(!addressProvider.isInvalid()) { // Avoid the exception the second time with this check try { return toAddress(); } catch(AddressStringException e) { /* note that this exception is cached, it is not l...
public class class_name { @Override public IPAddress getAddress() throws IncompatibleAddressException { if(!addressProvider.isInvalid()) { // Avoid the exception the second time with this check try { return toAddress(); // depends on control dependency: [try], data = [none] } catch(AddressStringException ...
public class class_name { static void rcvRequestMsgs(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, ...
public class class_name { static void rcvRequestMsgs(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, ...