code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Override public int getDiskCacheHashcode(boolean debug, boolean includeValue) throws DynamicCacheException { final String methodName = "getDiskCacheHashcode()"; if (this.swapToDisk) { // TODO write code to support getDiskCacheHashcode function if (...
public class class_name { @Override public int getDiskCacheHashcode(boolean debug, boolean includeValue) throws DynamicCacheException { final String methodName = "getDiskCacheHashcode()"; if (this.swapToDisk) { // TODO write code to support getDiskCacheHashcode function if (...
public class class_name { private void createDirectory() { int numTables = 9; // Create the TrueType header writeByte((byte)0); writeByte((byte)1); writeByte((byte)0); writeByte((byte)0); realSize += 4; writeUShort(numTables); realSize += 2; ...
public class class_name { private void createDirectory() { int numTables = 9; // Create the TrueType header writeByte((byte)0); writeByte((byte)1); writeByte((byte)0); writeByte((byte)0); realSize += 4; writeUShort(numTables); realSize += 2; ...
public class class_name { public static String redecodeUriComponent(String input) { if (input == null) { return input; } return new String( changeEncoding(input.getBytes(), ENCODING_UTF_8, OpenCms.getSystemInfo().getDefaultEncoding())); } }
public class class_name { public static String redecodeUriComponent(String input) { if (input == null) { return input; // depends on control dependency: [if], data = [none] } return new String( changeEncoding(input.getBytes(), ENCODING_UTF_8, OpenCms.getSystemInfo().get...
public class class_name { private I_CmsFacetQueryItem parseFacetQueryItem(final String prefix) { I_CmsXmlContentValue query = m_xml.getValue(prefix + XML_ELEMENT_QUERY_FACET_QUERY_QUERY, m_locale); if (null != query) { String queryString = query.getStringValue(null); I_CmsXmlCo...
public class class_name { private I_CmsFacetQueryItem parseFacetQueryItem(final String prefix) { I_CmsXmlContentValue query = m_xml.getValue(prefix + XML_ELEMENT_QUERY_FACET_QUERY_QUERY, m_locale); if (null != query) { String queryString = query.getStringValue(null); I_CmsXmlCo...
public class class_name { public void addPush(long k) { int ik = (int) k; if (ik == k) { addPush(ik); add(ByteCode.I2L); } else { addLoadConstant(k); } } }
public class class_name { public void addPush(long k) { int ik = (int) k; if (ik == k) { addPush(ik); // depends on control dependency: [if], data = [(ik] add(ByteCode.I2L); // depends on control dependency: [if], data = [none] } else { addLoadConstant(k); //...
public class class_name { private Set<CmsUUID> getIdsOfPublishResourcesWhichAreBothNewAndDeleted( List<CmsPublishedResource> publishedResources) { Set<CmsUUID> result = new HashSet<CmsUUID>(); Set<CmsUUID> deletedSet = new HashSet<CmsUUID>(); for (CmsPublishedResource pubRes : publishe...
public class class_name { private Set<CmsUUID> getIdsOfPublishResourcesWhichAreBothNewAndDeleted( List<CmsPublishedResource> publishedResources) { Set<CmsUUID> result = new HashSet<CmsUUID>(); Set<CmsUUID> deletedSet = new HashSet<CmsUUID>(); for (CmsPublishedResource pubRes : publishe...
public class class_name { public static boolean isScrolledIntoView (Widget target, int minPixels) { int wtop = Window.getScrollTop(), wheight = Window.getClientHeight(); int ttop = target.getAbsoluteTop(); if (ttop > wtop) { return (wtop + wheight - ttop > minPixels); } ...
public class class_name { public static boolean isScrolledIntoView (Widget target, int minPixels) { int wtop = Window.getScrollTop(), wheight = Window.getClientHeight(); int ttop = target.getAbsoluteTop(); if (ttop > wtop) { return (wtop + wheight - ttop > minPixels); // depends...
public class class_name { protected static Type getTypeReference(Object type) { if (type instanceof Type) { return (Type) type; } else if (type instanceof Class) { return Type.getType((Class) type); } else if (type instanceof String) { String className = type...
public class class_name { protected static Type getTypeReference(Object type) { if (type instanceof Type) { return (Type) type; // depends on control dependency: [if], data = [none] } else if (type instanceof Class) { return Type.getType((Class) type); // depends on control depe...
public class class_name { protected String getDBCreationUrl() { JdbcConnectionDescriptor jcd = getConnection(); // currently I only know about specifics for mysql if (TORQUE_PLATFORM_MYSQL.equals(getTargetTorquePlatform())) { // we have to remove the db name as t...
public class class_name { protected String getDBCreationUrl() { JdbcConnectionDescriptor jcd = getConnection(); // currently I only know about specifics for mysql if (TORQUE_PLATFORM_MYSQL.equals(getTargetTorquePlatform())) { // we have to remove the db name as t...
public class class_name { public synchronized void lockAndRegister(RuntimeObject rtObject, int lockMode, boolean cascade, List registeredObjects) { if(log.isDebugEnabled()) log.debug("Lock and register called for " + rtObject.getIdentity()); // if current object was already locked, do nothing ...
public class class_name { public synchronized void lockAndRegister(RuntimeObject rtObject, int lockMode, boolean cascade, List registeredObjects) { if(log.isDebugEnabled()) log.debug("Lock and register called for " + rtObject.getIdentity()); // if current object was already locked, do nothing ...
public class class_name { private static float pointToPolygonDist(double x, double y, Polygon polygon) { boolean inside = false; double minDistSq = Double.POSITIVE_INFINITY; // External ring LineString exterior = polygon.getExteriorRing(); for (int i = 0, n = exterior.getNumPoi...
public class class_name { private static float pointToPolygonDist(double x, double y, Polygon polygon) { boolean inside = false; double minDistSq = Double.POSITIVE_INFINITY; // External ring LineString exterior = polygon.getExteriorRing(); for (int i = 0, n = exterior.getNumPoi...
public class class_name { @SuppressWarnings("unchecked") private final Shape<?> doCheckEnterExitShape(final INodeXYEvent event) { final int x = event.getX(); final int y = event.getY(); final Shape<?> shape = findShapeAtPoint(x, y); if (shape != null) { fi...
public class class_name { @SuppressWarnings("unchecked") private final Shape<?> doCheckEnterExitShape(final INodeXYEvent event) { final int x = event.getX(); final int y = event.getY(); final Shape<?> shape = findShapeAtPoint(x, y); if (shape != null) { fi...
public class class_name { static String getLogHeader(Map<String, String> config) { StringBuilder builder = new StringBuilder(512); String productInfo = config.get("websphere.product.info"); if (productInfo != null) { builder.append("product = ").append(productInfo).append(LoggingCo...
public class class_name { static String getLogHeader(Map<String, String> config) { StringBuilder builder = new StringBuilder(512); String productInfo = config.get("websphere.product.info"); if (productInfo != null) { builder.append("product = ").append(productInfo).append(LoggingCo...
public class class_name { private String generateXmlSchema(Reader cobolReader, String targetNamespace, String targetXmlSchemaName, final String xsltFileName) { log.debug("XML schema {} generation started", targetXmlSchemaName + XSD_FILE_EXTENSION); String xmlSch...
public class class_name { private String generateXmlSchema(Reader cobolReader, String targetNamespace, String targetXmlSchemaName, final String xsltFileName) { log.debug("XML schema {} generation started", targetXmlSchemaName + XSD_FILE_EXTENSION); String xmlSch...
public class class_name { public ResultSet executeQuery(final String query) throws SQLException { startTimer(); try { if (queryResult != null) { queryResult.close(); } final Query queryToSend = queryFactory.createQuery(query); queryResult ...
public class class_name { public ResultSet executeQuery(final String query) throws SQLException { startTimer(); try { if (queryResult != null) { queryResult.close(); // depends on control dependency: [if], data = [none] } final Query queryToSend = que...
public class class_name { public void marshall(UpdateSecurityProfileRequest updateSecurityProfileRequest, ProtocolMarshaller protocolMarshaller) { if (updateSecurityProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(UpdateSecurityProfileRequest updateSecurityProfileRequest, ProtocolMarshaller protocolMarshaller) { if (updateSecurityProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void setMappings(List<String> mappings) { if (mappings.size() > 0) { @SuppressWarnings("unchecked") Pair<String, String>[] renames = (Pair<String, String>[])Array.newInstance(Pair.class, mappings.size()); for (int i = 0; i < _renames.length; ++i) { ...
public class class_name { public void setMappings(List<String> mappings) { if (mappings.size() > 0) { @SuppressWarnings("unchecked") Pair<String, String>[] renames = (Pair<String, String>[])Array.newInstance(Pair.class, mappings.size()); for (int i = 0; i < _renames.length; ++i) { ...
public class class_name { public final Object put2d(Object key1, Object key2, Object value) { AssociativeArray tmp = internalData.get(key1); if(tmp == null) { internalData.put(key1, new AssociativeArray()); } return internalData.get(key1).internalData.put(key2, valu...
public class class_name { public final Object put2d(Object key1, Object key2, Object value) { AssociativeArray tmp = internalData.get(key1); if(tmp == null) { internalData.put(key1, new AssociativeArray()); // depends on control dependency: [if], data = [none] } ret...
public class class_name { private static String doGetPath(final String filename, final int separatorAdd) { if (filename == null) { return null; } int prefix = getPrefixLength(filename); if (prefix < 0) { return null; } int index = indexOfLastSeparator(filename); int endIndex = index + separat...
public class class_name { private static String doGetPath(final String filename, final int separatorAdd) { if (filename == null) { return null; // depends on control dependency: [if], data = [none] } int prefix = getPrefixLength(filename); if (prefix < 0) { return null; // depends on control dependency: ...
public class class_name { private double wayLength(List<OSMNode> nodes) { double length = 0d; OSMNode n1, n2; n1 = nodes.get(0); for (int i = 1; i < nodes.size(); i++) { n2 = nodes.get(i); length += LatLongUtil.distance( Double.parseDouble(...
public class class_name { private double wayLength(List<OSMNode> nodes) { double length = 0d; OSMNode n1, n2; n1 = nodes.get(0); for (int i = 1; i < nodes.size(); i++) { n2 = nodes.get(i); // depends on control dependency: [for], data = [i] length += LatLongUt...
public class class_name { String rrToString() { StringBuffer sb = new StringBuffer(); sb.append(Address.toDottedQuad(address)); sb.append(" "); sb.append(protocol); for (int i = 0; i < services.length; i++) { sb.append(" " + services[i]); } return sb.toString(); } }
public class class_name { String rrToString() { StringBuffer sb = new StringBuffer(); sb.append(Address.toDottedQuad(address)); sb.append(" "); sb.append(protocol); for (int i = 0; i < services.length; i++) { sb.append(" " + services[i]); // depends on control dependency: [for], data = [i] } return sb.toStrin...
public class class_name { public void marshall(StartCrawlerRequest startCrawlerRequest, ProtocolMarshaller protocolMarshaller) { if (startCrawlerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(StartCrawlerRequest startCrawlerRequest, ProtocolMarshaller protocolMarshaller) { if (startCrawlerRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void connect(String dn, String credentials) { BindRequest bindRequest = new BindRequestImpl(); bindRequest.setCredentials(credentials); try { bindRequest.setDn(new Dn(dn)); connection.connect(); connection.bind(bindRequest); ...
public class class_name { public void connect(String dn, String credentials) { BindRequest bindRequest = new BindRequestImpl(); bindRequest.setCredentials(credentials); try { bindRequest.setDn(new Dn(dn)); // depends on control dependency: [try], data = [none] connection...
public class class_name { @Override public boolean configure(final FeatureContext context) { if (!context.getConfiguration().isRegistered(PersistenceExceptionMapper.class)) { context.register(PersistenceExceptionMapper.class); } if (context.getConfiguration().isRegistered(Model...
public class class_name { @Override public boolean configure(final FeatureContext context) { if (!context.getConfiguration().isRegistered(PersistenceExceptionMapper.class)) { context.register(PersistenceExceptionMapper.class); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void dispatch_event(final EventData eventData) { final TangoInterfaceChange interfaceChange = this; if (EventUtil.graphicAvailable()) { // Causes doRun.run() to be executed asynchronously // on the AWT event dispatching thread. ...
public class class_name { public void dispatch_event(final EventData eventData) { final TangoInterfaceChange interfaceChange = this; if (EventUtil.graphicAvailable()) { // Causes doRun.run() to be executed asynchronously // on the AWT event dispatching thread. ...
public class class_name { private boolean isApplicable(QueryCacheEventData event) { if (!getInfo().isPublishable()) { return false; } final int partitionId = event.getPartitionId(); if (isEndEvent(event)) { sequenceProvider.reset(partitionId); remov...
public class class_name { private boolean isApplicable(QueryCacheEventData event) { if (!getInfo().isPublishable()) { return false; // depends on control dependency: [if], data = [none] } final int partitionId = event.getPartitionId(); if (isEndEvent(event)) { ...
public class class_name { private static String getHostAddress(InetSocketAddress addr) { String hostToAppend = ""; if (addr.isUnresolved()) { hostToAppend = addr.getHostName(); } else { hostToAppend = addr.getAddress().getHostAddress(); } return hostToAppend; } }
public class class_name { private static String getHostAddress(InetSocketAddress addr) { String hostToAppend = ""; if (addr.isUnresolved()) { hostToAppend = addr.getHostName(); // depends on control dependency: [if], data = [none] } else { hostToAppend = addr.getAddress().getHostAddress(); // d...
public class class_name { public static List<String> applySpecialPaths(List<String> pathTokens) throws IllegalArgumentException { final ArrayList<String> newTokens = new ArrayList<String>(); for (String pathToken : pathTokens) { if (isCurrentToken(pathToken)) { continue; } else if (isRevers...
public class class_name { public static List<String> applySpecialPaths(List<String> pathTokens) throws IllegalArgumentException { final ArrayList<String> newTokens = new ArrayList<String>(); for (String pathToken : pathTokens) { if (isCurrentToken(pathToken)) { continue; } else if (isRevers...
public class class_name { public static java.util.Date toDate(String monthStr, String dayStr, String yearStr, String hourStr, String minuteStr, String secondStr) { int month, day, year, hour, minute, second; try { month = Integer.parseInt(monthStr); day = Integer.parseInt(dayStr); year = Integer.pa...
public class class_name { public static java.util.Date toDate(String monthStr, String dayStr, String yearStr, String hourStr, String minuteStr, String secondStr) { int month, day, year, hour, minute, second; try { month = Integer.parseInt(monthStr); // depends on control dependency: [try], data = [none] ...
public class class_name { private BeanReferences[] convertRefToReferences(final String[] references) { if (references == null) { return null; } BeanReferences[] ref = new BeanReferences[references.length]; for (int i = 0; i < references.length; i++) { ref[i] = BeanReferences.of(references[i]); } ret...
public class class_name { private BeanReferences[] convertRefToReferences(final String[] references) { if (references == null) { return null; // depends on control dependency: [if], data = [none] } BeanReferences[] ref = new BeanReferences[references.length]; for (int i = 0; i < references.length; i++) { ...
public class class_name { public static <T> String joinAnd(final String delimiter, final String lastDelimiter, final Collection<T> objs) { if (objs == null || objs.isEmpty()) { return ""; } final Iterator<T> iter = objs.iterator(); final StringBuffer buffer = new StringBuffer(Strings.toString(it...
public class class_name { public static <T> String joinAnd(final String delimiter, final String lastDelimiter, final Collection<T> objs) { if (objs == null || objs.isEmpty()) { return ""; // depends on control dependency: [if], data = [none] } final Iterator<T> iter = objs.iterator(); final Stri...
public class class_name { private void tred2() { // This is derived from the Algol procedures tred2 by // Bowdler, Martin, Reinsch, and Wilkinson, Handbook for // Auto. Comp., Vol.ii-Linear Algebra, and the corresponding // Fortran subroutine in EISPACK. System.arraycopy(V[n - 1], 0, d, 0, n); ...
public class class_name { private void tred2() { // This is derived from the Algol procedures tred2 by // Bowdler, Martin, Reinsch, and Wilkinson, Handbook for // Auto. Comp., Vol.ii-Linear Algebra, and the corresponding // Fortran subroutine in EISPACK. System.arraycopy(V[n - 1], 0, d, 0, n); ...
public class class_name { protected void notifyToHandlers(Object message, ISFSObject params) { if(params == null) params = new SFSObject(); for(ServerHandlerClass handler : handlers) { notifyToHandler(handler, message, params); } } }
public class class_name { protected void notifyToHandlers(Object message, ISFSObject params) { if(params == null) params = new SFSObject(); for(ServerHandlerClass handler : handlers) { notifyToHandler(handler, message, params); // depends on control dependency: [for], data = [handler] ...
public class class_name { public java.util.List<DirectConnectGatewayAssociation> getDirectConnectGatewayAssociations() { if (directConnectGatewayAssociations == null) { directConnectGatewayAssociations = new com.amazonaws.internal.SdkInternalList<DirectConnectGatewayAssociation>(); } ...
public class class_name { public java.util.List<DirectConnectGatewayAssociation> getDirectConnectGatewayAssociations() { if (directConnectGatewayAssociations == null) { directConnectGatewayAssociations = new com.amazonaws.internal.SdkInternalList<DirectConnectGatewayAssociation>(); // depends on co...
public class class_name { public void marshall(DescribeElasticsearchDomainsRequest describeElasticsearchDomainsRequest, ProtocolMarshaller protocolMarshaller) { if (describeElasticsearchDomainsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(DescribeElasticsearchDomainsRequest describeElasticsearchDomainsRequest, ProtocolMarshaller protocolMarshaller) { if (describeElasticsearchDomainsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public static List<Long> ends(final Iterable<Range<Long>> ranges) { List<Long> ends = new ArrayList<Long>(); for (Range<Long> range : ranges) { checkClosedOpen(range); ends.add(range.upperEndpoint()); } return ends; } }
public class class_name { public static List<Long> ends(final Iterable<Range<Long>> ranges) { List<Long> ends = new ArrayList<Long>(); for (Range<Long> range : ranges) { checkClosedOpen(range); // depends on control dependency: [for], data = [range] ends.add(range.upperEndpoint(...
public class class_name { public int getPort() { if (port != null && port != 0) { return port; } return urlParser != null ? urlParser.getHostAddresses().get(0).port : 3306; } }
public class class_name { public int getPort() { if (port != null && port != 0) { return port; // depends on control dependency: [if], data = [none] } return urlParser != null ? urlParser.getHostAddresses().get(0).port : 3306; } }
public class class_name { public void configure(ConfigProvider configProvider) { ConfigBuilder builder; this.configReadLock.lock(); try { builder = ConfigBuilder.withConfig(this.config); } finally { this.configReadLock.unlock(); } Config newConfig = configProvider.provide(builder)...
public class class_name { public void configure(ConfigProvider configProvider) { ConfigBuilder builder; this.configReadLock.lock(); try { builder = ConfigBuilder.withConfig(this.config); // depends on control dependency: [try], data = [none] } finally { this.configReadLock.unlock(); } ...
public class class_name { public PactDslWithState given(String state, String firstKey, Object firstValue, Object... paramsKeyValuePair) { if (paramsKeyValuePair.length % 2 != 0) { throw new IllegalArgumentException("Pair key value should be provided, but there is one key without value."); ...
public class class_name { public PactDslWithState given(String state, String firstKey, Object firstValue, Object... paramsKeyValuePair) { if (paramsKeyValuePair.length % 2 != 0) { throw new IllegalArgumentException("Pair key value should be provided, but there is one key without value."); ...
public class class_name { public Properties generate(Properties instructions, ProjectDependencies dependencies) { Properties result = new Properties(); result.putAll(instructions); StringBuilder include = new StringBuilder(); if (instructions.getProperty(Constants.INCLUDE_RESOURCE) != n...
public class class_name { public Properties generate(Properties instructions, ProjectDependencies dependencies) { Properties result = new Properties(); result.putAll(instructions); StringBuilder include = new StringBuilder(); if (instructions.getProperty(Constants.INCLUDE_RESOURCE) != n...
public class class_name { public static Optional<Method> extractSetter(final Class<?> targetClass, final String propertyName, final Class<?> propertyType) { final String methodName = "set" + Utils.capitalize(propertyName); Method method; try { method = target...
public class class_name { public static Optional<Method> extractSetter(final Class<?> targetClass, final String propertyName, final Class<?> propertyType) { final String methodName = "set" + Utils.capitalize(propertyName); Method method; try { method = target...
public class class_name { private List iterateAndReturnNative(final ResultSet rSet) { final Iterator<Row> rowIter = rSet.iterator(); final List results = new ArrayList(); final List item = new ArrayList<>(); final boolean isSingle = (rSet.getColumnDefinitions().size() == 1); w...
public class class_name { private List iterateAndReturnNative(final ResultSet rSet) { final Iterator<Row> rowIter = rSet.iterator(); final List results = new ArrayList(); final List item = new ArrayList<>(); final boolean isSingle = (rSet.getColumnDefinitions().size() == 1); w...
public class class_name { private static void cleanup(ContextFromVertx context) { // Release all resources, especially uploaded file. if (context != null) { context.cleanup(); } Context.CONTEXT.remove(); } }
public class class_name { private static void cleanup(ContextFromVertx context) { // Release all resources, especially uploaded file. if (context != null) { context.cleanup(); // depends on control dependency: [if], data = [none] } Context.CONTEXT.remove(); } }
public class class_name { private static I_CmsResourceType getResourceType(CmsResource resource, String createType) { I_CmsResourceType resType = null; if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(createType)) { try { resType = OpenCms.getResourceManager().getResourceType(c...
public class class_name { private static I_CmsResourceType getResourceType(CmsResource resource, String createType) { I_CmsResourceType resType = null; if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(createType)) { try { resType = OpenCms.getResourceManager().getResourceType(c...
public class class_name { public void removeDefaultBindingIfNotExists(Properties properties) { List<Bw> bwServices = this.getBWServices(); for (Bw bw : bwServices) { String path = "bw[" + bw.getName() + "]/bindings/binding[]/machine"; List<Binding> bindings = bw.getBindings().getBinding(); for (Ite...
public class class_name { public void removeDefaultBindingIfNotExists(Properties properties) { List<Bw> bwServices = this.getBWServices(); for (Bw bw : bwServices) { String path = "bw[" + bw.getName() + "]/bindings/binding[]/machine"; List<Binding> bindings = bw.getBindings().getBinding(); for (Ite...
public class class_name { protected void chooseFirstInRemoteRack(DatanodeDescriptor localMachine, HashMap<Node, Node> excludedNodes, long blocksize, int maxReplicasPerRack, List<DatanodeDescriptor> results) throws NotEnoughReplicasException { readLock(); try { RackRingInfo rackInfo = ra...
public class class_name { protected void chooseFirstInRemoteRack(DatanodeDescriptor localMachine, HashMap<Node, Node> excludedNodes, long blocksize, int maxReplicasPerRack, List<DatanodeDescriptor> results) throws NotEnoughReplicasException { readLock(); try { RackRingInfo rackInfo = ra...
public class class_name { protected void removeLastChildNodeIfEmptyText(final Node parentNode, final boolean closedTag) { if (parentNode == null) { return; } Node lastChild = parentNode.getLastChild(); if (lastChild == null) { return; } if (lastChild.getNodeType() != Node.NodeType.TEXT) { retu...
public class class_name { protected void removeLastChildNodeIfEmptyText(final Node parentNode, final boolean closedTag) { if (parentNode == null) { return; // depends on control dependency: [if], data = [none] } Node lastChild = parentNode.getLastChild(); if (lastChild == null) { return; // depends on c...
public class class_name { public static Operator getReversedOperator(Operator e) { if ( e.equals( Operator.NOT_EQUAL ) ) { return Operator.EQUAL; } else if ( e.equals( Operator.EQUAL ) ) { return Operator.NOT_EQUAL; } else if ( e.equals( Operator.GREATER ) ) { ...
public class class_name { public static Operator getReversedOperator(Operator e) { if ( e.equals( Operator.NOT_EQUAL ) ) { return Operator.EQUAL; // depends on control dependency: [if], data = [none] } else if ( e.equals( Operator.EQUAL ) ) { return Operator.NOT_EQUAL; // depend...
public class class_name { public List<Family> getFamilies() { final List<Family> families = new ArrayList<>(); for (final FamilyNavigator nav : familySNavigators) { families.add(nav.getFamily()); } return families; } }
public class class_name { public List<Family> getFamilies() { final List<Family> families = new ArrayList<>(); for (final FamilyNavigator nav : familySNavigators) { families.add(nav.getFamily()); // depends on control dependency: [for], data = [nav] } return families; } ...
public class class_name { private int addMandatoryArcs() throws ContradictionException { int from, to, rFrom, rTo, arc; int tSize = 0; double val = propHK.getMinArcVal(); for (int i = ma.size() - 1; i >= 0; i--) { arc = ma.get(i); from = arc / n; to = arc % n; rFrom = findUF(from); rTo = findUF(...
public class class_name { private int addMandatoryArcs() throws ContradictionException { int from, to, rFrom, rTo, arc; int tSize = 0; double val = propHK.getMinArcVal(); for (int i = ma.size() - 1; i >= 0; i--) { arc = ma.get(i); from = arc / n; to = arc % n; rFrom = findUF(from); rTo = findUF(...
public class class_name { private XPathFactory _newFactory(String uri) { XPathFactory xpf; String propertyName = SERVICE_CLASS.getName() + ":" + uri; // system property look up try { if (debug) debugPrintln("Looking up system property '"+propertyName+"'" ); Stri...
public class class_name { private XPathFactory _newFactory(String uri) { XPathFactory xpf; String propertyName = SERVICE_CLASS.getName() + ":" + uri; // system property look up try { if (debug) debugPrintln("Looking up system property '"+propertyName+"'" ); Stri...
public class class_name { public static <Item extends IItem & IExpandable> void notifyItemsChanged(final FastAdapter adapter, final ExpandableExtension expandableExtension, Item header, Set<Long> identifiers, boolean checkSubItems, boolean restoreExpandedState) { int subItems = header.getSubItems().size(); ...
public class class_name { public static <Item extends IItem & IExpandable> void notifyItemsChanged(final FastAdapter adapter, final ExpandableExtension expandableExtension, Item header, Set<Long> identifiers, boolean checkSubItems, boolean restoreExpandedState) { int subItems = header.getSubItems().size(); ...
public class class_name { public static String combine(String left, String right, int minOverlap) { if (left.length() < minOverlap) return null; if (right.length() < minOverlap) return null; int bestOffset = Integer.MAX_VALUE; for (int offset = minOverlap - left.length(); offset < right.length() - minO...
public class class_name { public static String combine(String left, String right, int minOverlap) { if (left.length() < minOverlap) return null; if (right.length() < minOverlap) return null; int bestOffset = Integer.MAX_VALUE; for (int offset = minOverlap - left.length(); offset < right.length() - minO...
public class class_name { public void setVolumesFrom(java.util.Collection<VolumeFrom> volumesFrom) { if (volumesFrom == null) { this.volumesFrom = null; return; } this.volumesFrom = new com.amazonaws.internal.SdkInternalList<VolumeFrom>(volumesFrom); } }
public class class_name { public void setVolumesFrom(java.util.Collection<VolumeFrom> volumesFrom) { if (volumesFrom == null) { this.volumesFrom = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { @UiThread public static <T extends View, V> void set(@NonNull List<T> list, @NonNull Property<? super T, V> setter, @Nullable V value) { //noinspection ForLoopReplaceableByForEach for (int i = 0, count = list.size(); i < count; i++) { setter.set(list.get(i), value); ...
public class class_name { @UiThread public static <T extends View, V> void set(@NonNull List<T> list, @NonNull Property<? super T, V> setter, @Nullable V value) { //noinspection ForLoopReplaceableByForEach for (int i = 0, count = list.size(); i < count; i++) { setter.set(list.get(i), value); // d...
public class class_name { protected Object convertToAsyncDriverTypes(Object object){ if(object instanceof Enum){ return ((Enum)object).name(); }else if(object instanceof LocalDateTime){ LocalDateTime convert = (LocalDateTime) object; return new org.joda.time.LocalDat...
public class class_name { protected Object convertToAsyncDriverTypes(Object object){ if(object instanceof Enum){ return ((Enum)object).name(); // depends on control dependency: [if], data = [none] }else if(object instanceof LocalDateTime){ LocalDateTime convert = (LocalDateTime)...
public class class_name { @Override public long getCumulativeJobInstancesCount() { DbConn em2 = Helpers.getNewDbSession(); try { return em2.runSelectSingle("history_select_count_for_poller", Long.class, this.queue.getId(), this.engine.getNode().getId()); } fi...
public class class_name { @Override public long getCumulativeJobInstancesCount() { DbConn em2 = Helpers.getNewDbSession(); try { return em2.runSelectSingle("history_select_count_for_poller", Long.class, this.queue.getId(), this.engine.getNode().getId()); // depends on contro...
public class class_name { public JsonObject getAsObject(String property) { if (!super.has(property)) { super.set(property, new JsonValue(new JsonObject()), false); } return get(property).getAsObject(); } }
public class class_name { public JsonObject getAsObject(String property) { if (!super.has(property)) { super.set(property, new JsonValue(new JsonObject()), false); // depends on control dependency: [if], data = [none] } return get(property).getAsObject(); } }
public class class_name { @Override public String getInitParameter(String name) { FilterConfig fc = getFilterConfig(); if (fc == null) { throw new IllegalStateException( lStrings.getString("err.filter_config_not_initialized")); } return fc.getInitParamet...
public class class_name { @Override public String getInitParameter(String name) { FilterConfig fc = getFilterConfig(); if (fc == null) { throw new IllegalStateException( lStrings.getString("err.filter_config_not_initialized")); } return fc.getInitParamet...
public class class_name { public static Integer getRedirectPort(String host, int httpPort) { Integer httpsPort = null; synchronized (map) { if (httpPort == DEFAULT_HTTP_PORT && map.get(httpPort) == null) { // use default redirect of 80 to 443 httpsPort = DEFA...
public class class_name { public static Integer getRedirectPort(String host, int httpPort) { Integer httpsPort = null; synchronized (map) { if (httpPort == DEFAULT_HTTP_PORT && map.get(httpPort) == null) { // use default redirect of 80 to 443 httpsPort = DEFA...
public class class_name { public static Date fromISODate(final String val) throws BadDateException { try { synchronized (isoDateFormat) { try { isoDateFormat.setTimeZone(Timezones.getDefaultTz()); } catch (TimezonesException tze) { throw new RuntimeException(tze); ...
public class class_name { public static Date fromISODate(final String val) throws BadDateException { try { synchronized (isoDateFormat) { try { isoDateFormat.setTimeZone(Timezones.getDefaultTz()); // depends on control dependency: [try], data = [none] } catch (TimezonesException tze...
public class class_name { public java.util.List<QueryInfo> getQueries() { if (queries == null) { queries = new com.amazonaws.internal.SdkInternalList<QueryInfo>(); } return queries; } }
public class class_name { public java.util.List<QueryInfo> getQueries() { if (queries == null) { queries = new com.amazonaws.internal.SdkInternalList<QueryInfo>(); // depends on control dependency: [if], data = [none] } return queries; } }
public class class_name { private DocumentedFeature getDocumentedFeatureForClass(final Class<?> clazz) { if (clazz != null && clazz.isAnnotationPresent(DocumentedFeature.class)) { return clazz.getAnnotation(DocumentedFeature.class); } else { return null; } } ...
public class class_name { private DocumentedFeature getDocumentedFeatureForClass(final Class<?> clazz) { if (clazz != null && clazz.isAnnotationPresent(DocumentedFeature.class)) { return clazz.getAnnotation(DocumentedFeature.class); // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public void execute() throws MojoExecutionException, MojoFailureException { validateConfiguration(preReleaseGoals, postReleaseGoals); try { // check uncommitted changes checkUncommittedChanges(); // git for-each-ref --format=...
public class class_name { @Override public void execute() throws MojoExecutionException, MojoFailureException { validateConfiguration(preReleaseGoals, postReleaseGoals); try { // check uncommitted changes checkUncommittedChanges(); // git for-each-ref --format=...
public class class_name { public void addAdditionalInformation(String key, String value) { if (this.additionalInformation == null) { this.additionalInformation = new TreeMap<String, String>(); } this.additionalInformation.put(key, value); } }
public class class_name { public void addAdditionalInformation(String key, String value) { if (this.additionalInformation == null) { this.additionalInformation = new TreeMap<String, String>(); // depends on control dependency: [if], data = [none] } this.additionalInformation.put(key, value); } }
public class class_name { @Override public void visitMethod(Method obj) { methodSignatureIsConstrained = false; String methodName = obj.getName(); if (!Values.CONSTRUCTOR.equals(methodName) && !Values.STATIC_INITIALIZER.equals(methodName)) { String methodSig = obj.getSignature...
public class class_name { @Override public void visitMethod(Method obj) { methodSignatureIsConstrained = false; String methodName = obj.getName(); if (!Values.CONSTRUCTOR.equals(methodName) && !Values.STATIC_INITIALIZER.equals(methodName)) { String methodSig = obj.getSignature...
public class class_name { @Override public CommerceNotificationTemplate fetchByG_T_E_Last(long groupId, String type, boolean enabled, OrderByComparator<CommerceNotificationTemplate> orderByComparator) { int count = countByG_T_E(groupId, type, enabled); if (count == 0) { return null; } List<CommerceNo...
public class class_name { @Override public CommerceNotificationTemplate fetchByG_T_E_Last(long groupId, String type, boolean enabled, OrderByComparator<CommerceNotificationTemplate> orderByComparator) { int count = countByG_T_E(groupId, type, enabled); if (count == 0) { return null; // depends on control ...
public class class_name { private void fixAfterDeletion(TreeEntry<E> x) { while (x != root && colorOf(x) == BLACK) { if (x == leftOf(parentOf(x))) { TreeEntry<E> sib = rightOf(parentOf(x)); if (colorOf(sib) == RED) { setColor(sib, BLACK); ...
public class class_name { private void fixAfterDeletion(TreeEntry<E> x) { while (x != root && colorOf(x) == BLACK) { if (x == leftOf(parentOf(x))) { TreeEntry<E> sib = rightOf(parentOf(x)); if (colorOf(sib) == RED) { setColor(sib, BLACK); // depe...
public class class_name { public static <T extends XNSerializable> List<T> parseList(XNElement container, String itemName, Supplier<T> creator) { List<T> result = new ArrayList<>(); for (XNElement e : container.childrenWithName(itemName)) { T obj = creator.get(); ob...
public class class_name { public static <T extends XNSerializable> List<T> parseList(XNElement container, String itemName, Supplier<T> creator) { List<T> result = new ArrayList<>(); for (XNElement e : container.childrenWithName(itemName)) { T obj = creator.get(); ob...
public class class_name { public PresenceSubscriber addBuddy(String uri, int duration, String eventId, long timeout) { initErrorInfo(); if (buddyList.get(uri) != null) { setReturnCode(SipSession.INVALID_ARGUMENT); setErrorMessage("addBuddy() called but buddy is already in the list"); return ...
public class class_name { public PresenceSubscriber addBuddy(String uri, int duration, String eventId, long timeout) { initErrorInfo(); if (buddyList.get(uri) != null) { setReturnCode(SipSession.INVALID_ARGUMENT); // depends on control dependency: [if], data = [none] setErrorMessage("addBuddy() ca...
public class class_name { public void bind(SQLiteStatement statement) { if (this.compiledStatement != null) { // already binded return; } int index = 1; statement.clearBindings(); Object value; for (int j = 0; j < args.size(); j++) { value = args.get(j); switch (valueType.get(index - 1)) { ...
public class class_name { public void bind(SQLiteStatement statement) { if (this.compiledStatement != null) { // already binded return; // depends on control dependency: [if], data = [none] } int index = 1; statement.clearBindings(); Object value; for (int j = 0; j < args.size(); j++) { value =...
public class class_name { @Override public void processComponent(String propertyName, JComponent component) { if (component instanceof JComboBox) { this.installSearchable((JComboBox) component); } else if (component instanceof JList) { this.installSearchable((JList) compone...
public class class_name { @Override public void processComponent(String propertyName, JComponent component) { if (component instanceof JComboBox) { this.installSearchable((JComboBox) component); // depends on control dependency: [if], data = [none] } else if (component instanceof JList...
public class class_name { public void callCallbacks(Event event, CallbackType type) throws CancelledException, AsyncException { String trigger = event.name; if (type == CallbackType.LEAVE_STATE) trigger = event.src; else if (type == CallbackType.ENTER_STATE) trigger = event.dst; Callback[] callbacks = new Cal...
public class class_name { public void callCallbacks(Event event, CallbackType type) throws CancelledException, AsyncException { String trigger = event.name; if (type == CallbackType.LEAVE_STATE) trigger = event.src; else if (type == CallbackType.ENTER_STATE) trigger = event.dst; Callback[] callbacks = new Cal...
public class class_name { public String events(EventCondition condition) { String description = "event on: " + condition.getDataId(); if (condition.getExpression() != null) { description += " [" + condition.getExpression() + "]"; } return description; } }
public class class_name { public String events(EventCondition condition) { String description = "event on: " + condition.getDataId(); if (condition.getExpression() != null) { description += " [" + condition.getExpression() + "]"; // depends on control dependency: [if], data = [none] ...
public class class_name { public boolean matches(String pattern, String itemName) { int index = pattern.indexOf('*'); if (index == -1) { return itemName.equals(pattern); } String firstPart = pattern.substring(0, index); int indexFirstPart = itemName.indexOf(firstPar...
public class class_name { public boolean matches(String pattern, String itemName) { int index = pattern.indexOf('*'); if (index == -1) { return itemName.equals(pattern); // depends on control dependency: [if], data = [none] } String firstPart = pattern.substring(0, index); ...
public class class_name { public DataSource getDataSource() { if(dataSource == null) { LOG.info("Having to construct a new DataSource"); dataSource = new DataSource(); dataSource.setDriverClassName(dbSettings.getDriver()); dataSource.setUrl(dbSettings.getJdbcUr...
public class class_name { public DataSource getDataSource() { if(dataSource == null) { LOG.info("Having to construct a new DataSource"); // depends on control dependency: [if], data = [none] dataSource = new DataSource(); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public Object get(String propName) { if (propName.equals(PROP_PRINCIPAL_NAME)) { return getPrincipalName(); } if (propName.equals(PROP_PASSWORD)) { return getPassword(); } if (propName.equals(PROP_REALM)) { ...
public class class_name { @Override public Object get(String propName) { if (propName.equals(PROP_PRINCIPAL_NAME)) { return getPrincipalName(); // depends on control dependency: [if], data = [none] } if (propName.equals(PROP_PASSWORD)) { return getPassword(); // depe...
public class class_name { private boolean isValidTreeType(Tree t) { if (t instanceof LambdaExpressionTree) { return true; } if (t instanceof ClassTree) { NestingKind nestingKind = ASTHelpers.getSymbol((ClassTree) t).getNestingKind(); return nestingKind.equals(NestingKind.ANONYMOUS) || nes...
public class class_name { private boolean isValidTreeType(Tree t) { if (t instanceof LambdaExpressionTree) { return true; // depends on control dependency: [if], data = [none] } if (t instanceof ClassTree) { NestingKind nestingKind = ASTHelpers.getSymbol((ClassTree) t).getNestingKind(); r...
public class class_name { public PersistenceBroker getInnermostDelegate() { PersistenceBroker broker = this.m_broker; while (broker != null && broker instanceof DelegatingPersistenceBroker) { broker = ((DelegatingPersistenceBroker) broker).getDelegate(); if (this == broker) { return null; ...
public class class_name { public PersistenceBroker getInnermostDelegate() { PersistenceBroker broker = this.m_broker; while (broker != null && broker instanceof DelegatingPersistenceBroker) { broker = ((DelegatingPersistenceBroker) broker).getDelegate(); // depends on control dependency: [while], data ...
public class class_name { public void init() { WfdLog.d(TAG, "Called init()"); initAndStartHandler(); try { mPort = this.requestAvailablePortFromOs(); } catch (IOException e) { mListener.onError(); return; } mManager = (WifiP2pManag...
public class class_name { public void init() { WfdLog.d(TAG, "Called init()"); initAndStartHandler(); try { mPort = this.requestAvailablePortFromOs(); // depends on control dependency: [try], data = [none] } catch (IOException e) { mListener.onError(); ...
public class class_name { @SuppressWarnings("unchecked") protected <T extends Object> T extractFieldValue( final JSONObject jsonObject, final String field, final Class<T> fieldType) { T fieldValue = null; if ((jsonObject != null) && jsonObject.has(field) && !jsonObject.isNull(field)) { try { if (fieldTy...
public class class_name { @SuppressWarnings("unchecked") protected <T extends Object> T extractFieldValue( final JSONObject jsonObject, final String field, final Class<T> fieldType) { T fieldValue = null; if ((jsonObject != null) && jsonObject.has(field) && !jsonObject.isNull(field)) { try { if (fieldTy...
public class class_name { public static Collection<Info> getPendingCollaborations(BoxAPIConnection api) { URL url = PENDING_COLLABORATIONS_URL.build(api.getBaseURL()); BoxAPIRequest request = new BoxAPIRequest(api, url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); ...
public class class_name { public static Collection<Info> getPendingCollaborations(BoxAPIConnection api) { URL url = PENDING_COLLABORATIONS_URL.build(api.getBaseURL()); BoxAPIRequest request = new BoxAPIRequest(api, url, "GET"); BoxJSONResponse response = (BoxJSONResponse) request.send(); ...
public class class_name { private boolean checkFileNHeader(final InputStream is, final StreamParseWriter dout, StreamData din, int cidx) throws IOException { byte[] headerBytes = ZipUtil.unzipForHeader(din.getChunkData(cidx), this._setup._chunk_size); ParseSetup ps = ParseSetup.guessSetup(null, heade...
public class class_name { private boolean checkFileNHeader(final InputStream is, final StreamParseWriter dout, StreamData din, int cidx) throws IOException { byte[] headerBytes = ZipUtil.unzipForHeader(din.getChunkData(cidx), this._setup._chunk_size); ParseSetup ps = ParseSetup.guessSetup(null, heade...
public class class_name { public OutputGroupDetail withOutputDetails(OutputDetail... outputDetails) { if (this.outputDetails == null) { setOutputDetails(new java.util.ArrayList<OutputDetail>(outputDetails.length)); } for (OutputDetail ele : outputDetails) { this.outputDe...
public class class_name { public OutputGroupDetail withOutputDetails(OutputDetail... outputDetails) { if (this.outputDetails == null) { setOutputDetails(new java.util.ArrayList<OutputDetail>(outputDetails.length)); // depends on control dependency: [if], data = [none] } for (OutputD...
public class class_name { protected void buildseqtypes(Variable cdmvar) throws DapException { if (CDMUtil.hasVLEN(cdmvar)) { buildseqtype(cdmvar); } if (cdmvar.getDataType() == DataType.STRUCTURE || cdmvar.getDataType() == DataType.SEQUENCE) { ...
public class class_name { protected void buildseqtypes(Variable cdmvar) throws DapException { if (CDMUtil.hasVLEN(cdmvar)) { buildseqtype(cdmvar); } if (cdmvar.getDataType() == DataType.STRUCTURE || cdmvar.getDataType() == DataType.SEQUENCE) { ...
public class class_name { protected List<DisabledDuration> createBlockingDurations(final Iterable<BlockingState> inputBundleEvents) { final List<DisabledDuration> result = new ArrayList<DisabledDuration>(); final Set<String> services = ImmutableSet.copyOf(Iterables.transform(inputBundleEvents, new Fu...
public class class_name { protected List<DisabledDuration> createBlockingDurations(final Iterable<BlockingState> inputBundleEvents) { final List<DisabledDuration> result = new ArrayList<DisabledDuration>(); final Set<String> services = ImmutableSet.copyOf(Iterables.transform(inputBundleEvents, new Fu...
public class class_name { @Override public void onClick() { try { setResponsePage(new DashboardPage(getPage().getPageReference())); } catch (final EFapsException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
public class class_name { @Override public void onClick() { try { setResponsePage(new DashboardPage(getPage().getPageReference())); // depends on control dependency: [try], data = [none] } catch (final EFapsException e) { // TODO Auto-generated catch block e....
public class class_name { public UploadMaterialResponse uploadMaterialFile(File file, String title, String introduction){ UploadMaterialResponse response; String url = "http://api.weixin.qq.com/cgi-bin/material/add_material?access_token=#"; BaseResponse r; if(StrUtil.isBlank(title)) { ...
public class class_name { public UploadMaterialResponse uploadMaterialFile(File file, String title, String introduction){ UploadMaterialResponse response; String url = "http://api.weixin.qq.com/cgi-bin/material/add_material?access_token=#"; BaseResponse r; if(StrUtil.isBlank(title)) { ...
public class class_name { public static final double signed(double angle) { angle = normalizeToFullAngle(angle); if (angle > Math.PI) { return angle - FULL_CIRCLE; } else { return angle; } } }
public class class_name { public static final double signed(double angle) { angle = normalizeToFullAngle(angle); if (angle > Math.PI) { return angle - FULL_CIRCLE; // depends on control dependency: [if], data = [none] } else { return...
public class class_name { protected static void checkNotNull (Object[] array) { checkNotNull((Object)array); for (Object o : array) { checkNotNull(o); } } }
public class class_name { protected static void checkNotNull (Object[] array) { checkNotNull((Object)array); for (Object o : array) { checkNotNull(o); // depends on control dependency: [for], data = [o] } } }
public class class_name { public boolean failAndRecycle(Throwable cause) { ReferenceCountUtil.release(msg); if (promise != null) { promise.setFailure(cause); } return recycle(); } }
public class class_name { public boolean failAndRecycle(Throwable cause) { ReferenceCountUtil.release(msg); if (promise != null) { promise.setFailure(cause); // depends on control dependency: [if], data = [none] } return recycle(); } }
public class class_name { public void marshall(CheckpointConfigurationUpdate checkpointConfigurationUpdate, ProtocolMarshaller protocolMarshaller) { if (checkpointConfigurationUpdate == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(CheckpointConfigurationUpdate checkpointConfigurationUpdate, ProtocolMarshaller protocolMarshaller) { if (checkpointConfigurationUpdate == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { @Override public List<IndexableField> indexableFields(String name, String value) { JtsGeometry shape = geometry(value); for (GeoTransformation transformation : transformations) { shape = transformation.apply(shape); } return Arrays.asList(strate...
public class class_name { @Override public List<IndexableField> indexableFields(String name, String value) { JtsGeometry shape = geometry(value); for (GeoTransformation transformation : transformations) { shape = transformation.apply(shape); // depends on control dependency: [for], data...
public class class_name { public double getATMForward(AnalyticModelInterface model, boolean isFirstPeriodIncluded) { if(!Double.isNaN(cachedATMForward) && cacheStateModel.get() == model && cacheStateIsFirstPeriodIncluded == isFirstPeriodIncluded) { return cachedATMForward; } ScheduleInterface remainderSchedu...
public class class_name { public double getATMForward(AnalyticModelInterface model, boolean isFirstPeriodIncluded) { if(!Double.isNaN(cachedATMForward) && cacheStateModel.get() == model && cacheStateIsFirstPeriodIncluded == isFirstPeriodIncluded) { return cachedATMForward; // depends on control dependency: [if], ...
public class class_name { public void readEntries(TableKelp table, InSegment reader, SegmentEntryCallback cb) { TempBuffer tBuf = TempBuffer.createLarge(); byte []buffer = tBuf.buffer(); InStore sIn = reader.getStoreRead(); byte []tableKey = n...
public class class_name { public void readEntries(TableKelp table, InSegment reader, SegmentEntryCallback cb) { TempBuffer tBuf = TempBuffer.createLarge(); byte []buffer = tBuf.buffer(); InStore sIn = reader.getStoreRead(); byte []tableKey = n...