code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public String getSQLState() { String state = null; try { state = new String(m_sqlState, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } return state; } }
public class class_name { public String getSQLState() { String state = null; try { state = new String(m_sqlState, "UTF-8"); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } // d...
public class class_name { public T _get(long seqno) { lock.lock(); try { int row_index=computeRow(seqno); if(row_index < 0 || row_index >= matrix.length) return null; T[] row=matrix[row_index]; if(row == null) return null; ...
public class class_name { public T _get(long seqno) { lock.lock(); try { int row_index=computeRow(seqno); if(row_index < 0 || row_index >= matrix.length) return null; T[] row=matrix[row_index]; if(row == null) return null; ...
public class class_name { public static double bytes_to_double(byte[] bytes, int offset) { try { long result = bytes[0+offset] & 0xff; result <<= 8; result |= bytes[1+offset] & 0xff; result <<= 8; result |= bytes[2+offset] & 0xff; result <<= 8; result |= bytes[3+offset] & 0xff; resul...
public class class_name { public static double bytes_to_double(byte[] bytes, int offset) { try { long result = bytes[0+offset] & 0xff; result <<= 8; // depends on control dependency: [try], data = [none] result |= bytes[1+offset] & 0xff; // depends on control dependency: [try], data = [none] result ...
public class class_name { public JBBPTextWriter Bin(final Object... objs) throws IOException { if (this.mappedClassObserver == null) { this.mappedClassObserver = new MappedObjectLogger(); } ensureNewLineMode(); for (final Object obj : objs) { if (obj == null) { write("<NULL>"); ...
public class class_name { public JBBPTextWriter Bin(final Object... objs) throws IOException { if (this.mappedClassObserver == null) { this.mappedClassObserver = new MappedObjectLogger(); // depends on control dependency: [if], data = [none] } ensureNewLineMode(); for (final Object obj : objs) ...
public class class_name { private static int readStringLength(DataInputView source) throws IOException { int len = source.readByte() & 0xFF; if (len >= HIGH_BIT) { int shift = 7; int curr; len = len & 0x7F; while ((curr = source.readByte() & 0xFF) >= HIGH_BIT) { len |= (curr & 0x7F) << shift; ...
public class class_name { private static int readStringLength(DataInputView source) throws IOException { int len = source.readByte() & 0xFF; if (len >= HIGH_BIT) { int shift = 7; int curr; len = len & 0x7F; while ((curr = source.readByte() & 0xFF) >= HIGH_BIT) { len |= (curr & 0x7F) << shift; // d...
public class class_name { public void useFolder(final String folderName) { closeFolderIfOpened(folder); try { this.folderName = folderName; this.folder = getService().getFolder(folderName); try { folder.open(Folder.READ_WRITE); } catch (final MailException ignore) { folder.open(Folder.READ_ONL...
public class class_name { public void useFolder(final String folderName) { closeFolderIfOpened(folder); try { this.folderName = folderName; // depends on control dependency: [try], data = [none] this.folder = getService().getFolder(folderName); // depends on control dependency: [try], data = [none] try {...
public class class_name { public void marshall(ResourceChangeDetail resourceChangeDetail, ProtocolMarshaller protocolMarshaller) { if (resourceChangeDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(ResourceChangeDetail resourceChangeDetail, ProtocolMarshaller protocolMarshaller) { if (resourceChangeDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { protected final MtasDataCollector add(boolean increaseSourceNumber) throws IOException { if (!closed) { if (!collectorType.equals(DataCollector.COLLECTOR_TYPE_DATA)) { throw new IOException( "collector should be " + DataCollector.COLLECTOR_TYPE_DATA); ...
public class class_name { protected final MtasDataCollector add(boolean increaseSourceNumber) throws IOException { if (!closed) { if (!collectorType.equals(DataCollector.COLLECTOR_TYPE_DATA)) { throw new IOException( "collector should be " + DataCollector.COLLECTOR_TYPE_DATA); ...
public class class_name { public UnixPath normalize() { List<String> parts = new ArrayList<>(); boolean mutated = false; int resultLength = 0; int mark = 0; int index; do { index = path.indexOf(SEPARATOR, mark); String part = path.substring(mark, index == -1 ? path.length() : index ...
public class class_name { public UnixPath normalize() { List<String> parts = new ArrayList<>(); boolean mutated = false; int resultLength = 0; int mark = 0; int index; do { index = path.indexOf(SEPARATOR, mark); String part = path.substring(mark, index == -1 ? path.length() : index ...
public class class_name { public void marshall(GetMLModelRequest getMLModelRequest, ProtocolMarshaller protocolMarshaller) { if (getMLModelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(g...
public class class_name { public void marshall(GetMLModelRequest getMLModelRequest, ProtocolMarshaller protocolMarshaller) { if (getMLModelRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(g...
public class class_name { public static int lenIonTimestamp(Timestamp di) { if (di == null) return 0; int len = 0; switch (di.getPrecision()) { case FRACTION: case SECOND: { BigDecimal fraction = di.getFractionalSecond(); if (fraction != null...
public class class_name { public static int lenIonTimestamp(Timestamp di) { if (di == null) return 0; int len = 0; switch (di.getPrecision()) { case FRACTION: case SECOND: { BigDecimal fraction = di.getFractionalSecond(); if (fraction != null...
public class class_name { public static QName valueOf(String qNameAsString) { // null is not valid if (qNameAsString == null) { throw new IllegalArgumentException( "cannot create QName from \"null\" or \"\" String"); } // "" local part is valid to prese...
public class class_name { public static QName valueOf(String qNameAsString) { // null is not valid if (qNameAsString == null) { throw new IllegalArgumentException( "cannot create QName from \"null\" or \"\" String"); } // "" local part is valid to prese...
public class class_name { public boolean createSqlTableFrom(Connection connection, String tableToClone) { long startTime = System.currentTimeMillis(); try { Statement statement = connection.createStatement(); // Drop target table to avoid a conflict. String dropSql =...
public class class_name { public boolean createSqlTableFrom(Connection connection, String tableToClone) { long startTime = System.currentTimeMillis(); try { Statement statement = connection.createStatement(); // Drop target table to avoid a conflict. String dropSql =...
public class class_name { public String getInputBody() { if (m_requestEntity.length == 0 || !m_bEntityCompressed) { return Utils.toString(m_requestEntity); } else { try { return Utils.toString(Utils.decompressGZIP(m_requestEntity)); } catch (IOE...
public class class_name { public String getInputBody() { if (m_requestEntity.length == 0 || !m_bEntityCompressed) { return Utils.toString(m_requestEntity); // depends on control dependency: [if], data = [none] } else { try { return Utils.toString(Utils.decom...
public class class_name { public static <T> Collection<T> filter(Collection<T> data, Filter<T> filter) { if (!Utils.isEmpty(data)) { Iterator<T> iterator = data.iterator(); while (iterator.hasNext()) { T item = iterator.next(); if (!filter.accept(item)) {...
public class class_name { public static <T> Collection<T> filter(Collection<T> data, Filter<T> filter) { if (!Utils.isEmpty(data)) { Iterator<T> iterator = data.iterator(); while (iterator.hasNext()) { T item = iterator.next(); if (!filter.accept(item)) {...
public class class_name { protected String determineTargetUrl(HttpServletRequest request, HttpServletResponse response) { if (isAlwaysUseDefaultTargetUrl()) { return defaultTargetUrl; } // Check for the parameter and use that if available String targetUrl = null; if (targetUrlParameter != null) { ...
public class class_name { protected String determineTargetUrl(HttpServletRequest request, HttpServletResponse response) { if (isAlwaysUseDefaultTargetUrl()) { return defaultTargetUrl; // depends on control dependency: [if], data = [none] } // Check for the parameter and use that if available String targ...
public class class_name { public int getWidthWeight() { int ret = 1; if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH)) { ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH)); } return ret; } }
public class class_name { public int getWidthWeight() { int ret = 1; if (!isFixedWidth() && hasProperty(UIFormFieldProperty.WIDTH)) { ret = Integer.valueOf(getProperty(UIFormFieldProperty.WIDTH)); // depends on control dependency: [if], data = [none] } return ret; } ...
public class class_name { public static void byteBufferToOutputStream(ByteBuffer in, OutputStream out) throws IOException { final int BUF_SIZE = 8192; if (in.hasArray()) { out.write(in.array(), in.arrayOffset() + in.position(), in.remaining()); } else { final byte[] b = new byte[Math.min...
public class class_name { public static void byteBufferToOutputStream(ByteBuffer in, OutputStream out) throws IOException { final int BUF_SIZE = 8192; if (in.hasArray()) { out.write(in.array(), in.arrayOffset() + in.position(), in.remaining()); } else { final byte[] b = new byte[Math.min...
public class class_name { public int delete(CMALocale locale) { final String id = getResourceIdOrThrow(locale, "locale"); final String spaceId = getSpaceIdOrThrow(locale, "locale"); final String environmentId = locale.getEnvironmentId(); final CMASystem sys = locale.getSystem(); locale.setSystem(n...
public class class_name { public int delete(CMALocale locale) { final String id = getResourceIdOrThrow(locale, "locale"); final String spaceId = getSpaceIdOrThrow(locale, "locale"); final String environmentId = locale.getEnvironmentId(); final CMASystem sys = locale.getSystem(); locale.setSystem(n...
public class class_name { @Override public ODocument toStream() { document.setInternalStatus(ORecordElement.STATUS.UNMARSHALLING); try { serializeToStream(); } finally { document.setInternalStatus(ORecordElement.STATUS.LOADED); } return document; } }
public class class_name { @Override public ODocument toStream() { document.setInternalStatus(ORecordElement.STATUS.UNMARSHALLING); try { serializeToStream(); // depends on control dependency: [try], data = [none] } finally { document.setInternalStatus(ORecordElement.STATUS.LOADED); ...
public class class_name { @TaskAction public void stopAction() { DevServer server = devServers.newDevAppServer(CloudSdkOperations.getDefaultHandler(getLogger())); try { server.stop(runConfig.toStopConfiguration()); } catch (AppEngineException ex) { getLogger().error("Failed to stop se...
public class class_name { @TaskAction public void stopAction() { DevServer server = devServers.newDevAppServer(CloudSdkOperations.getDefaultHandler(getLogger())); try { server.stop(runConfig.toStopConfiguration()); // depends on control dependency: [try], data = [none] } catch (AppEngineExc...
public class class_name { public CreateDevicePoolRequest withRules(Rule... rules) { if (this.rules == null) { setRules(new java.util.ArrayList<Rule>(rules.length)); } for (Rule ele : rules) { this.rules.add(ele); } return this; } }
public class class_name { public CreateDevicePoolRequest withRules(Rule... rules) { if (this.rules == null) { setRules(new java.util.ArrayList<Rule>(rules.length)); // depends on control dependency: [if], data = [none] } for (Rule ele : rules) { this.rules.add(ele); // d...
public class class_name { private void addUserRolesLimitCriteria( QueryWhere queryWhere, String userId, List<String> groupIds ) { List<QueryCriteria> newBaseCriteriaList = new ArrayList<QueryCriteria>(2); // user role limiting criteria QueryCriteria userRolesLimitingCriteria = new QueryCriteri...
public class class_name { private void addUserRolesLimitCriteria( QueryWhere queryWhere, String userId, List<String> groupIds ) { List<QueryCriteria> newBaseCriteriaList = new ArrayList<QueryCriteria>(2); // user role limiting criteria QueryCriteria userRolesLimitingCriteria = new QueryCriteri...
public class class_name { @NonNull protected List<LayoutHelper> transformCards(@Nullable List<L> cards, final @NonNull List<C> data, @NonNull List<Pair<Range<Integer>, L>> rangeCards) { if (cards == null || cards.size() == 0) { return new LinkedLi...
public class class_name { @NonNull protected List<LayoutHelper> transformCards(@Nullable List<L> cards, final @NonNull List<C> data, @NonNull List<Pair<Range<Integer>, L>> rangeCards) { if (cards == null || cards.size() == 0) { return new LinkedLi...
public class class_name { public static Type createInstance(String name, int min, int max) { // Ensure that min is less than or equal to max. if (min > max) { throw new IllegalArgumentException("'min' must be less than or equal to 'max'."); } synchronized (INT_R...
public class class_name { public static Type createInstance(String name, int min, int max) { // Ensure that min is less than or equal to max. if (min > max) { throw new IllegalArgumentException("'min' must be less than or equal to 'max'."); } synchronized (INT_R...
public class class_name { void resize(int size, byte value) { if (size > _capacity) { resizeBuf(size); } while (_size < size) { _buf[_size++] = value; } } }
public class class_name { void resize(int size, byte value) { if (size > _capacity) { resizeBuf(size); // depends on control dependency: [if], data = [(size] } while (_size < size) { _buf[_size++] = value; // depends on control dependency: [while], da...
public class class_name { public static <T> String toJson(T obj) { StringWriter writer = new StringWriter(); String jsonStr = ""; JsonGenerator gen = null; try { gen = getJsonFactory().createGenerator(writer); getMapper().writeValue(gen, obj); writer.flush(); jsonStr = writer.toString(); } catch...
public class class_name { public static <T> String toJson(T obj) { StringWriter writer = new StringWriter(); String jsonStr = ""; JsonGenerator gen = null; try { gen = getJsonFactory().createGenerator(writer); // depends on control dependency: [try], data = [none] getMapper().writeValue(gen, obj); // dep...
public class class_name { public void debug(Object format, Object... msg) { if (logger.isDebugEnabled()) { // check if the first message contains variables variables if (format.toString().contains("{")) { logger.debug(format.toString(), msg); } else { logger.debug(format.toString().concat(" ").conca...
public class class_name { public void debug(Object format, Object... msg) { if (logger.isDebugEnabled()) { // check if the first message contains variables variables if (format.toString().contains("{")) { logger.debug(format.toString(), msg); // depends on control dependency: [if], data = [none] } else ...
public class class_name { public static Object createJsonpProvider() { JsonProvider jsonProvider = AccessController.doPrivileged(new PrivilegedAction<JsonProvider>(){ @Override public JsonProvider run() { try { Bundle b = FrameworkUtil.getBundle(Provider...
public class class_name { public static Object createJsonpProvider() { JsonProvider jsonProvider = AccessController.doPrivileged(new PrivilegedAction<JsonProvider>(){ @Override public JsonProvider run() { try { Bundle b = FrameworkUtil.getBundle(Provider...
public class class_name { private void notifyMessageReceived(QueueData queueData) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyMessageReceived", queueData); long messageLength = queueData.getMessageLength(); if (trackBytes) { bytes...
public class class_name { private void notifyMessageReceived(QueueData queueData) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "notifyMessageReceived", queueData); long messageLength = queueData.getMessageLength(); if (trackBytes) { bytes...
public class class_name { public Object parsePropertyValue(Element ele, BeanDefinition bd, String propertyName) { String elementName = (propertyName != null) ? "<property> element for property '" + propertyName + "'" : "<constructor-arg> element"; // Should only have one child element: ref, value, lis...
public class class_name { public Object parsePropertyValue(Element ele, BeanDefinition bd, String propertyName) { String elementName = (propertyName != null) ? "<property> element for property '" + propertyName + "'" : "<constructor-arg> element"; // Should only have one child element: ref, value, lis...
public class class_name { private Optional<Icon> getSplash(String splashHash) { if (splashHash == null) { return Optional.empty(); } try { return Optional.of(new IconImpl(getApi(), new URL("https://cdn.discordapp.com/splashs/" ...
public class class_name { private Optional<Icon> getSplash(String splashHash) { if (splashHash == null) { return Optional.empty(); // depends on control dependency: [if], data = [none] } try { return Optional.of(new IconImpl(getApi(), ...
public class class_name { public static List<ModelServiceInstance> filter(ServiceInstanceQuery query, List<ModelServiceInstance> list) { if (list == null || list.size() == 0) { return Collections.emptyList(); } List<QueryCriterion> criteria = query.getCriteria(); if (crit...
public class class_name { public static List<ModelServiceInstance> filter(ServiceInstanceQuery query, List<ModelServiceInstance> list) { if (list == null || list.size() == 0) { return Collections.emptyList(); // depends on control dependency: [if], data = [none] } List<QueryCriter...
public class class_name { public UnicodeSet complement() { checkFrozen(); if (list[0] == LOW) { System.arraycopy(list, 1, list, 0, len-1); --len; } else { ensureCapacity(len+1); System.arraycopy(list, 0, list, 1, len); list[0] = LOW; ...
public class class_name { public UnicodeSet complement() { checkFrozen(); if (list[0] == LOW) { System.arraycopy(list, 1, list, 0, len-1); // depends on control dependency: [if], data = [none] --len; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { private void clearArt(DeviceAnnouncement announcement) { final int player = announcement.getNumber(); // Iterate over a copy to avoid concurrent modification issues for (DeckReference deck : new HashSet<DeckReference>(hotCache.keySet())) { if (deck.player =...
public class class_name { private void clearArt(DeviceAnnouncement announcement) { final int player = announcement.getNumber(); // Iterate over a copy to avoid concurrent modification issues for (DeckReference deck : new HashSet<DeckReference>(hotCache.keySet())) { if (deck.player =...
public class class_name { @DELETE @Produces(MediaType.APPLICATION_JSON) @Path("/{alertId}") @Description("Deletes the alert having the given ID along with all its triggers and notifications.") public Response deleteAlert(@Context HttpServletRequest req, @PathParam("alertId") BigInteger alertId) { if (alertId ...
public class class_name { @DELETE @Produces(MediaType.APPLICATION_JSON) @Path("/{alertId}") @Description("Deletes the alert having the given ID along with all its triggers and notifications.") public Response deleteAlert(@Context HttpServletRequest req, @PathParam("alertId") BigInteger alertId) { if (alertId ...
public class class_name { @Override public Collection<ConfigAttribute> getAllConfigAttributes() { Set<ConfigAttribute> allAttributes = new HashSet<>(); for (List<ConfigAttribute> attributeList : methodMap.values()) { allAttributes.addAll(attributeList); } return allAttributes; } }
public class class_name { @Override public Collection<ConfigAttribute> getAllConfigAttributes() { Set<ConfigAttribute> allAttributes = new HashSet<>(); for (List<ConfigAttribute> attributeList : methodMap.values()) { allAttributes.addAll(attributeList); // depends on control dependency: [for], data = [attribu...
public class class_name { @Override public Authentication doLogin(Authentication authentication) { Authentication result = null; try { result = getAuthenticationManager().authenticate(authentication); } catch (AuthenticationException e) { logger.info("authentication failed: " + e.getMessage()); // Fi...
public class class_name { @Override public Authentication doLogin(Authentication authentication) { Authentication result = null; try { result = getAuthenticationManager().authenticate(authentication); // depends on control dependency: [try], data = [none] } catch (AuthenticationException e) { logger.info...
public class class_name { public void handleValueChange(int valueIndex, String value) { changeEntityValue(value, valueIndex); CmsUndoRedoHandler handler = CmsUndoRedoHandler.getInstance(); if (handler.isIntitalized()) { handler.addChange(m_entity.getId(), m_attributeName, valu...
public class class_name { public void handleValueChange(int valueIndex, String value) { changeEntityValue(value, valueIndex); CmsUndoRedoHandler handler = CmsUndoRedoHandler.getInstance(); if (handler.isIntitalized()) { handler.addChange(m_entity.getId(), m_attributeName, valu...
public class class_name { public void parseRules(String description) { // (the number of elements in the description list isn't necessarily // the number of rules-- some descriptions may expend into two rules) List<NFRule> tempRules = new ArrayList<NFRule>(); // we keep track of the ru...
public class class_name { public void parseRules(String description) { // (the number of elements in the description list isn't necessarily // the number of rules-- some descriptions may expend into two rules) List<NFRule> tempRules = new ArrayList<NFRule>(); // we keep track of the ru...
public class class_name { public void marshall(ListObjectParentPathsRequest listObjectParentPathsRequest, ProtocolMarshaller protocolMarshaller) { if (listObjectParentPathsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ListObjectParentPathsRequest listObjectParentPathsRequest, ProtocolMarshaller protocolMarshaller) { if (listObjectParentPathsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void setDatasourceParams(JdbcDatabase database, com.mysql.jdbc.jdbc2.optional.MysqlDataSource dataSource) { String strURL = database.getProperty(SQLParams.JDBC_URL_PARAM); if ((strURL == null) || (strURL.length() == 0)) strURL = database.getProperty(SQLP...
public class class_name { public void setDatasourceParams(JdbcDatabase database, com.mysql.jdbc.jdbc2.optional.MysqlDataSource dataSource) { String strURL = database.getProperty(SQLParams.JDBC_URL_PARAM); if ((strURL == null) || (strURL.length() == 0)) strURL = database.getProperty(SQLP...
public class class_name { @Nullable public static SSLSession findSslSession(@Nullable Channel channel, SessionProtocol sessionProtocol) { if (!sessionProtocol.isTls()) { return null; } return findSslSession(channel); } }
public class class_name { @Nullable public static SSLSession findSslSession(@Nullable Channel channel, SessionProtocol sessionProtocol) { if (!sessionProtocol.isTls()) { return null; // depends on control dependency: [if], data = [none] } return findSslSession(channel); } }
public class class_name { boolean isHorizontalSeparator() { if (isAttribute(Chunk.SEPARATOR)) { Object[] o = (Object[])getAttribute(Chunk.SEPARATOR); return !((Boolean)o[1]).booleanValue(); } return false; } }
public class class_name { boolean isHorizontalSeparator() { if (isAttribute(Chunk.SEPARATOR)) { Object[] o = (Object[])getAttribute(Chunk.SEPARATOR); return !((Boolean)o[1]).booleanValue(); // depends on control dependency: [if], data = [none] } return false; } }
public class class_name { protected void handleSqlCount(ActionRuntime runtime) { final CallbackContext context = CallbackContext.getCallbackContextOnThread(); if (context == null) { return; } final SqlStringFilter filter = context.getSqlStringFilter(); if (filter == ...
public class class_name { protected void handleSqlCount(ActionRuntime runtime) { final CallbackContext context = CallbackContext.getCallbackContextOnThread(); if (context == null) { return; // depends on control dependency: [if], data = [none] } final SqlStringFilter filter ...
public class class_name { @Override @SuppressWarnings("unchecked") public void collectParameters(Object pojo, List<Object> parameters) { F facetValue = getFacetValue(pojo); if (facetValue == null) { parameters.add(nullColumnValue()); } else { parameters.add(toCol...
public class class_name { @Override @SuppressWarnings("unchecked") public void collectParameters(Object pojo, List<Object> parameters) { F facetValue = getFacetValue(pojo); if (facetValue == null) { parameters.add(nullColumnValue()); // depends on control dependency: [if], data = [n...
public class class_name { public static base_responses update(nitro_service client, nshostname resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nshostname updateresources[] = new nshostname[resources.length]; for (int i=0;i<resources.length;i++){ ...
public class class_name { public static base_responses update(nitro_service client, nshostname resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nshostname updateresources[] = new nshostname[resources.length]; for (int i=0;i<resources.length;i++){ ...
public class class_name { Scroll scroll(String scrollId, ScrollReader reader) throws IOException { InputStream scroll = client.scroll(scrollId); try { return reader.read(scroll); } finally { if (scroll instanceof StatsAware) { stats.aggregate(((StatsAware...
public class class_name { Scroll scroll(String scrollId, ScrollReader reader) throws IOException { InputStream scroll = client.scroll(scrollId); try { return reader.read(scroll); } finally { if (scroll instanceof StatsAware) { stats.aggregate(((StatsAware...
public class class_name { public static void rank1UpdateMultL(DMatrixRMaj A , double u[] , double gamma , int colA0, int w0 , int w1 ) { for( int i = colA0; i < A.numRows; i++ ) { ...
public class class_name { public static void rank1UpdateMultL(DMatrixRMaj A , double u[] , double gamma , int colA0, int w0 , int w1 ) { for( int i = colA0; i < A.numRows; i++ ) { ...
public class class_name { @Nullable @Override public R findCounterExample(A automaton, Collection<? extends I> inputs, P property) { if (automaton.size() > size) { counterExamples.clear(); } size = automaton.size(); return counterExamples.computeIfAbsent( ...
public class class_name { @Nullable @Override public R findCounterExample(A automaton, Collection<? extends I> inputs, P property) { if (automaton.size() > size) { counterExamples.clear(); // depends on control dependency: [if], data = [none] } size = automaton.size(); ...
public class class_name { public <T> Class<T> isAssignableFrom(final Class<?> superType, final Class<T> type, final String message) { if (!superType.isAssignableFrom(type)) { fail(message); } return type; } }
public class class_name { public <T> Class<T> isAssignableFrom(final Class<?> superType, final Class<T> type, final String message) { if (!superType.isAssignableFrom(type)) { fail(message); // depends on control dependency: [if], data = [none] } return type; } }
public class class_name { private static long lcm(long x, long y) { // binary gcd algorithm from Knuth, "The Art of Computer Programming," // vol. 2, 1st ed., pp. 298-299 long x1 = x; long y1 = y; int p2 = 0; while ((x1 & 1) == 0 && (y1 & 1) == 0) { ++p2; ...
public class class_name { private static long lcm(long x, long y) { // binary gcd algorithm from Knuth, "The Art of Computer Programming," // vol. 2, 1st ed., pp. 298-299 long x1 = x; long y1 = y; int p2 = 0; while ((x1 & 1) == 0 && (y1 & 1) == 0) { ++p2; //...
public class class_name { public void setCycleInterval(float newCycleInterval) { if ( (this.cycleInterval != newCycleInterval) && (newCycleInterval > 0) ) { for (GVRNodeAnimation gvrKeyFrameAnimation : gvrKeyFrameAnimations) { //TODO Cannot easily change the GVRAnimation's GVRChanne...
public class class_name { public void setCycleInterval(float newCycleInterval) { if ( (this.cycleInterval != newCycleInterval) && (newCycleInterval > 0) ) { for (GVRNodeAnimation gvrKeyFrameAnimation : gvrKeyFrameAnimations) { //TODO Cannot easily change the GVRAnimation's GVRChanne...
public class class_name { public static HostAndPort fromString(String hostPort, int defaultPort) { if (hostPort == null) throw new NullPointerException("hostPort == null"); String host = hostPort; int endHostIndex = hostPort.length(); if (hostPort.startsWith("[")) { // Bracketed IPv6 endHostInde...
public class class_name { public static HostAndPort fromString(String hostPort, int defaultPort) { if (hostPort == null) throw new NullPointerException("hostPort == null"); String host = hostPort; int endHostIndex = hostPort.length(); if (hostPort.startsWith("[")) { // Bracketed IPv6 endHostInde...
public class class_name { public void validate() { synchronized (mSharedMapsLock) { // Compute block lock reference counts based off of lock records ConcurrentMap<Long, AtomicInteger> blockLockReferenceCounts = new ConcurrentHashMap<>(); for (LockRecord record : mLockIdToRecordMap.values()) { ...
public class class_name { public void validate() { synchronized (mSharedMapsLock) { // Compute block lock reference counts based off of lock records ConcurrentMap<Long, AtomicInteger> blockLockReferenceCounts = new ConcurrentHashMap<>(); for (LockRecord record : mLockIdToRecordMap.values()) { ...
public class class_name { public static void setGlobalSplineApproximationRatio(Double distance) { if (distance == null || Double.isNaN(distance.doubleValue())) { globalSplineApproximation = GeomConstants.SPLINE_APPROXIMATION_RATIO; } else { globalSplineApproximation = Math.max(0, distance); } } }
public class class_name { public static void setGlobalSplineApproximationRatio(Double distance) { if (distance == null || Double.isNaN(distance.doubleValue())) { globalSplineApproximation = GeomConstants.SPLINE_APPROXIMATION_RATIO; // depends on control dependency: [if], data = [none] } else { globalSplineAp...
public class class_name { public void or(final Roaring64NavigableMap x2) { boolean firstBucket = true; for (Entry<Integer, BitmapDataProvider> e2 : x2.highToBitmap.entrySet()) { // Keep object to prevent auto-boxing Integer high = e2.getKey(); BitmapDataProvider lowBitmap1 = this.highToBitm...
public class class_name { public void or(final Roaring64NavigableMap x2) { boolean firstBucket = true; for (Entry<Integer, BitmapDataProvider> e2 : x2.highToBitmap.entrySet()) { // Keep object to prevent auto-boxing Integer high = e2.getKey(); BitmapDataProvider lowBitmap1 = this.highToBitm...
public class class_name { public static Set<String> parseServiceSPIExtensionFile(Resource metaInfServicesEntry) { Set<String> serviceClazz = new HashSet<String>(); URL metaInfServicesUrl = metaInfServicesEntry == null ? null : metaInfServicesEntry.getURL(); if (metaInfServicesUrl != null) { ...
public class class_name { public static Set<String> parseServiceSPIExtensionFile(Resource metaInfServicesEntry) { Set<String> serviceClazz = new HashSet<String>(); URL metaInfServicesUrl = metaInfServicesEntry == null ? null : metaInfServicesEntry.getURL(); if (metaInfServicesUrl != null) { ...
public class class_name { public DescribeTimeBasedAutoScalingResult withTimeBasedAutoScalingConfigurations(TimeBasedAutoScalingConfiguration... timeBasedAutoScalingConfigurations) { if (this.timeBasedAutoScalingConfigurations == null) { setTimeBasedAutoScalingConfigurations(new com.amazonaws.intern...
public class class_name { public DescribeTimeBasedAutoScalingResult withTimeBasedAutoScalingConfigurations(TimeBasedAutoScalingConfiguration... timeBasedAutoScalingConfigurations) { if (this.timeBasedAutoScalingConfigurations == null) { setTimeBasedAutoScalingConfigurations(new com.amazonaws.intern...
public class class_name { public ValidationResult check(Entry entry) { result = new ValidationResult(); if (entry.isDelete()) { reportMessage(Severity.FIX, entry.getOrigin(), FIX_ID, entry.getPrimaryAccession()); } return result; } }
public class class_name { public ValidationResult check(Entry entry) { result = new ValidationResult(); if (entry.isDelete()) { reportMessage(Severity.FIX, entry.getOrigin(), FIX_ID, entry.getPrimaryAccession()); // depends on control dependency: [if], data = [none] } return result; } }
public class class_name { @Override protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException { if (((View) example).getDefinition() != null) { return example; } Database database = snapshot.getDatabase(); Schema ...
public class class_name { @Override protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException { if (((View) example).getDefinition() != null) { return example; } Database database = snapshot.getDatabase(); Schema ...
public class class_name { @Override public void endElement(String uri, String localName, String qName) throws SAXException { // <context-param> if (elements("web-app", "context-param")) { if (currentName != null && currentValue != null) { entries.put(currentName, curren...
public class class_name { @Override public void endElement(String uri, String localName, String qName) throws SAXException { // <context-param> if (elements("web-app", "context-param")) { if (currentName != null && currentValue != null) { entries.put(currentName, curren...
public class class_name { private int urlType(String urlPattern) { String pattern = urlPattern.toString(); if (pattern.startsWith("*.")) { //extension return EXTENSION_PATTERN; //0 } else if (pattern.startsWith("/") && pattern.endsWith("/*")) { // path prefix return PATH...
public class class_name { private int urlType(String urlPattern) { String pattern = urlPattern.toString(); if (pattern.startsWith("*.")) { //extension return EXTENSION_PATTERN; //0 // depends on control dependency: [if], data = [none] } else if (pattern.startsWith("/") && pattern.en...
public class class_name { private void clearBeatGrids(DeviceAnnouncement announcement) { final int player = announcement.getNumber(); // Iterate over a copy to avoid concurrent modification issues for (DeckReference deck : new HashSet<DeckReference>(hotCache.keySet())) { if (deck.pl...
public class class_name { private void clearBeatGrids(DeviceAnnouncement announcement) { final int player = announcement.getNumber(); // Iterate over a copy to avoid concurrent modification issues for (DeckReference deck : new HashSet<DeckReference>(hotCache.keySet())) { if (deck.pl...
public class class_name { public boolean canResolve(QualifiedName name) { if (!this.name.isPresent()) { return false; } // TODO: need to know whether the qualified name and the name of this field were quoted return matchesPrefix(name.getPrefix()) && this.name.get().equa...
public class class_name { public boolean canResolve(QualifiedName name) { if (!this.name.isPresent()) { return false; // depends on control dependency: [if], data = [none] } // TODO: need to know whether the qualified name and the name of this field were quoted return m...
public class class_name { protected void beforeSend(RpcInternalContext context, SofaRequest request) { currentRequests.incrementAndGet(); context.getStopWatch().tick().read(); context.setLocalAddress(localAddress()); if (EventBus.isEnable(ClientBeforeSendEvent.class)) { Even...
public class class_name { protected void beforeSend(RpcInternalContext context, SofaRequest request) { currentRequests.incrementAndGet(); context.getStopWatch().tick().read(); context.setLocalAddress(localAddress()); if (EventBus.isEnable(ClientBeforeSendEvent.class)) { Even...
public class class_name { void positionPopup() { if (m_popup.isShowing()) { int width = m_popup.getOffsetWidth(); int openerHeight = CmsDomUtil.getCurrentStyleInt(m_opener.getElement(), CmsDomUtil.Style.height); int popupHeight = getPopupHeight(); int dx = 0; ...
public class class_name { void positionPopup() { if (m_popup.isShowing()) { int width = m_popup.getOffsetWidth(); int openerHeight = CmsDomUtil.getCurrentStyleInt(m_opener.getElement(), CmsDomUtil.Style.height); int popupHeight = getPopupHeight(); int dx = 0; ...
public class class_name { private void visitActionFieldList(ActionInsertFact afl) { String factType = afl.getFactType(); for (ActionFieldValue afv : afl.getFieldValues()) { InterpolationVariable var = new InterpolationVariable(afv.getValue(), ...
public class class_name { private void visitActionFieldList(ActionInsertFact afl) { String factType = afl.getFactType(); for (ActionFieldValue afv : afl.getFieldValues()) { InterpolationVariable var = new InterpolationVariable(afv.getValue(), ...
public class class_name { public T background(int id) { if (view != null) { if (id != 0) { view.setBackgroundResource(id); } else { if (Build.VERSION.SDK_INT<9) { view.setBackgroundDrawable(null); } else...
public class class_name { public T background(int id) { if (view != null) { if (id != 0) { view.setBackgroundResource(id); // depends on control dependency: [if], data = [(id] } else { if (Build.VERSION.SDK_INT<9) { view.setBackgroundD...
public class class_name { public void setLocale(final Locale locale) { if (!equals(this.locale, locale)) { this.locale = locale; super.setValue(toString(locale)); i18nBundleProvider.reloadBundles(locale); } } }
public class class_name { public void setLocale(final Locale locale) { if (!equals(this.locale, locale)) { this.locale = locale; // depends on control dependency: [if], data = [none] super.setValue(toString(locale)); // depends on control dependency: [if], data = [none] i18n...
public class class_name { @Deprecated public static String addSmallestScreenWidth(String qualifiers, int smallestScreenWidth) { int qualifiersSmallestScreenWidth = Qualifiers.getSmallestScreenWidth(qualifiers); if (qualifiersSmallestScreenWidth == -1) { if (qualifiers.length() > 0) { qualifiers...
public class class_name { @Deprecated public static String addSmallestScreenWidth(String qualifiers, int smallestScreenWidth) { int qualifiersSmallestScreenWidth = Qualifiers.getSmallestScreenWidth(qualifiers); if (qualifiersSmallestScreenWidth == -1) { if (qualifiers.length() > 0) { qualifiers...
public class class_name { public static boolean isPure(SyntacticItem item) { // Examine expression to determine whether this expression is impure. if (item instanceof Expr.StaticVariableAccess || item instanceof Expr.Dereference || item instanceof Expr.New) { return false; } else if (item instanceof Expr.Invo...
public class class_name { public static boolean isPure(SyntacticItem item) { // Examine expression to determine whether this expression is impure. if (item instanceof Expr.StaticVariableAccess || item instanceof Expr.Dereference || item instanceof Expr.New) { return false; // depends on control dependency: [if]...
public class class_name { public static LinkedHashMap<String, String> getSearchWidgetMapping() { LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(); for (SearchWidgetCreator swc : REGISTRY.values()) { map.put(swc.getSearchWidgetId(), swc.getSearchWidgetName()); } return map; } }
public class class_name { public static LinkedHashMap<String, String> getSearchWidgetMapping() { LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(); for (SearchWidgetCreator swc : REGISTRY.values()) { map.put(swc.getSearchWidgetId(), swc.getSearchWidgetName()); // depends on control depende...
public class class_name { protected int interpretInfo(LineParser lp, MessageMgr mm){ String fileName = this.getFileName(lp); String content = this.getContent(fileName, mm); if(content==null){ return 1; } String[] lines = StringUtils.split(content, "\n"); String info = null; for(String s : lines){ ...
public class class_name { protected int interpretInfo(LineParser lp, MessageMgr mm){ String fileName = this.getFileName(lp); String content = this.getContent(fileName, mm); if(content==null){ return 1; // depends on control dependency: [if], data = [none] } String[] lines = StringUtils.split(content, "\n"...
public class class_name { @Override public GeoPackageTile getTile(int x, int y, int zoom) { GeoPackageTile tile = null; TileRow tileRow = retrieveTileRow(x, y, zoom); if (tileRow != null) { TileMatrix tileMatrix = tileDao.getTileMatrix(zoom); int tileWidth = (int) ...
public class class_name { @Override public GeoPackageTile getTile(int x, int y, int zoom) { GeoPackageTile tile = null; TileRow tileRow = retrieveTileRow(x, y, zoom); if (tileRow != null) { TileMatrix tileMatrix = tileDao.getTileMatrix(zoom); int tileWidth = (int) ...
public class class_name { public void marshall(ListHandshakesForOrganizationRequest listHandshakesForOrganizationRequest, ProtocolMarshaller protocolMarshaller) { if (listHandshakesForOrganizationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); }...
public class class_name { public void marshall(ListHandshakesForOrganizationRequest listHandshakesForOrganizationRequest, ProtocolMarshaller protocolMarshaller) { if (listHandshakesForOrganizationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); }...
public class class_name { protected static String getResource(Uri uri) { if (!isAPIUri(uri)) { return null; } String scheme = uri.getScheme(); String apiScheme = getBaseUri().getScheme(); // Strip out the protocol and store the result in the "remainder" variable ...
public class class_name { protected static String getResource(Uri uri) { if (!isAPIUri(uri)) { return null; // depends on control dependency: [if], data = [none] } String scheme = uri.getScheme(); String apiScheme = getBaseUri().getScheme(); // Strip out the protoc...
public class class_name { public List<Rankable> getRankings() { List<Rankable> copy = Lists.newLinkedList(); for (Rankable r : rankedItems) { copy.add(r.copy()); } return ImmutableList.copyOf(copy); } }
public class class_name { public List<Rankable> getRankings() { List<Rankable> copy = Lists.newLinkedList(); for (Rankable r : rankedItems) { copy.add(r.copy()); // depends on control dependency: [for], data = [r] } return ImmutableList.copyOf(copy); } }
public class class_name { @Override public void onEnd(boolean result, BaseSliderView target) { if(target.isErrorDisappear() == false || result == true){ return; } for (BaseSliderView slider: mImageContents){ if(slider.equals(target)){ removeSlider(tar...
public class class_name { @Override public void onEnd(boolean result, BaseSliderView target) { if(target.isErrorDisappear() == false || result == true){ return; // depends on control dependency: [if], data = [none] } for (BaseSliderView slider: mImageContents){ if(sl...
public class class_name { private void publishEvent(WSJobExecution jobEx, String topicToPublish, String correlationId) { if (eventsPublisher != null) { eventsPublisher.publishJobExecutionEvent(jobEx, topicToPublish, correlationId); } } }
public class class_name { private void publishEvent(WSJobExecution jobEx, String topicToPublish, String correlationId) { if (eventsPublisher != null) { eventsPublisher.publishJobExecutionEvent(jobEx, topicToPublish, correlationId); // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public boolean add(T newElement) { elements[lastIndex] = newElement; lastIndex = incrementIndex(lastIndex, 0); if (isEmpty()) { // First element firstIndex = 0; size = 1; } else if (isFull()) { // Reuse space firstIndex = lastIndex; } else { ...
public class class_name { @Override public boolean add(T newElement) { elements[lastIndex] = newElement; lastIndex = incrementIndex(lastIndex, 0); if (isEmpty()) { // First element firstIndex = 0; // depends on control dependency: [if], data = [none] size = 1; // depends on control dependency: ...
public class class_name { public static String getAbsoluteParent(String path, int level) { int idx = 0; int len = path.length(); while (level >= 0 && idx < len) { idx = path.indexOf('/', idx + 1); if (idx < 0) { idx = len; } level--; ...
public class class_name { public static String getAbsoluteParent(String path, int level) { int idx = 0; int len = path.length(); while (level >= 0 && idx < len) { idx = path.indexOf('/', idx + 1); // depends on control dependency: [while], data = [none] if (idx < 0) ...
public class class_name { @SuppressWarnings("unchecked") public static String map2JsonString(Map<String, Object> map) { IStringBuffer sb = new IStringBuffer(); sb.append('{'); for ( Map.Entry<String, Object> entry : map.entrySet() ) { sb.append('"').append(entry.getK...
public class class_name { @SuppressWarnings("unchecked") public static String map2JsonString(Map<String, Object> map) { IStringBuffer sb = new IStringBuffer(); sb.append('{'); for ( Map.Entry<String, Object> entry : map.entrySet() ) { sb.append('"').append(entry.getK...
public class class_name { public RhinoScriptBuilder evaluateChain(final InputStream stream, final String sourceName) throws IOException { notNull(stream); try { getContext().evaluateReader(scope, new InputStreamReader(stream), sourceName, 1, null); return this; } catch(final RhinoExce...
public class class_name { public RhinoScriptBuilder evaluateChain(final InputStream stream, final String sourceName) throws IOException { notNull(stream); try { getContext().evaluateReader(scope, new InputStreamReader(stream), sourceName, 1, null); return this; } catch(final RhinoExce...
public class class_name { public int[] getPixelValues(byte[] imageBytes) { PngReaderInt reader = new PngReaderInt(new ByteArrayInputStream(imageBytes)); validateImageType(reader); int[] pixels = new int[reader.imgInfo.cols * reader.imgInfo.rows]; int rowNumber = 0; while (reade...
public class class_name { public int[] getPixelValues(byte[] imageBytes) { PngReaderInt reader = new PngReaderInt(new ByteArrayInputStream(imageBytes)); validateImageType(reader); int[] pixels = new int[reader.imgInfo.cols * reader.imgInfo.rows]; int rowNumber = 0; while (reade...
public class class_name { public boolean unsuspendCassandraHost(CassandraHost cassandraHost) { HClientPool pool = suspendedHostPools.remove(cassandraHost); boolean readded = pool != null; if ( readded ) { boolean alreadyThere = hostPools.putIfAbsent(cassandraHost, pool) != null; if ( alreadyThe...
public class class_name { public boolean unsuspendCassandraHost(CassandraHost cassandraHost) { HClientPool pool = suspendedHostPools.remove(cassandraHost); boolean readded = pool != null; if ( readded ) { boolean alreadyThere = hostPools.putIfAbsent(cassandraHost, pool) != null; if ( alreadyThe...
public class class_name { protected void process(String text, Map params, Writer writer){ try{ Template t = new Template("temp", new StringReader(text), FreeMarkerTL.getEnvironment().getConfiguration()); t.process(params, writer); }catch(Exception e){ thro...
public class class_name { protected void process(String text, Map params, Writer writer){ try{ Template t = new Template("temp", new StringReader(text), FreeMarkerTL.getEnvironment().getConfiguration()); t.process(params, writer); // depends on control dependency: [try], data = [none] ...
public class class_name { private void applyUpdates(DBTransaction dbTran) { Map<String, Map<String, List<DColumn>>> colUpdatesMap = dbTran.getColumnUpdatesMap(); for (String storeName : colUpdatesMap.keySet()) { updateTableColumnUpdates(storeName, colUpdatesMap.get(storeName)); } ...
public class class_name { private void applyUpdates(DBTransaction dbTran) { Map<String, Map<String, List<DColumn>>> colUpdatesMap = dbTran.getColumnUpdatesMap(); for (String storeName : colUpdatesMap.keySet()) { updateTableColumnUpdates(storeName, colUpdatesMap.get(storeName)); // depends o...
public class class_name { public static List<String> readFileFrom(String _fileName, Charset _charset, SearchOrder... _searchOrder) { InputStream stream = openInputStreamForFile(_fileName, _searchOrder); if (stream != null) { return readTextFileFromStream(stream, _charset, true); } return null...
public class class_name { public static List<String> readFileFrom(String _fileName, Charset _charset, SearchOrder... _searchOrder) { InputStream stream = openInputStreamForFile(_fileName, _searchOrder); if (stream != null) { return readTextFileFromStream(stream, _charset, true); // depends on control d...
public class class_name { @Override public void initializeFromFile(TreeIndexHeader header, PageFile<FlatRStarTreeNode> file) { super.initializeFromFile(header, file); // reconstruct root int nextPageID = file.getNextPageID(); dirCapacity = nextPageID; root = createNewDirectoryNode(); for(int...
public class class_name { @Override public void initializeFromFile(TreeIndexHeader header, PageFile<FlatRStarTreeNode> file) { super.initializeFromFile(header, file); // reconstruct root int nextPageID = file.getNextPageID(); dirCapacity = nextPageID; root = createNewDirectoryNode(); for(int...
public class class_name { @SuppressWarnings({"unused", "WeakerAccess"}) public synchronized void pushInstallReferrer(String source, String medium, String campaign) { if (source == null && medium == null && campaign == null) return; try { // If already pushed, don't send it again ...
public class class_name { @SuppressWarnings({"unused", "WeakerAccess"}) public synchronized void pushInstallReferrer(String source, String medium, String campaign) { if (source == null && medium == null && campaign == null) return; try { // If already pushed, don't send it again ...
public class class_name { public static void injectTargetIntoWrapper(final Object target, final Object wrapper, final String targetFieldName) { try { final Field field = wrapper.getClass().getField(targetFieldName); field.setAccessible(true); field.set(wrapper, target); } catch (Exception ex) { throw n...
public class class_name { public static void injectTargetIntoWrapper(final Object target, final Object wrapper, final String targetFieldName) { try { final Field field = wrapper.getClass().getField(targetFieldName); field.setAccessible(true); // depends on control dependency: [try], data = [none] field.set(...
public class class_name { public Object read(Object object) { if(object == null) { String msg = "Can not evaluate the identifier \"" + _identifier + "\" on a null object."; LOGGER.error(msg); throw new RuntimeException(msg); } if(TRACE_ENABLED) L...
public class class_name { public Object read(Object object) { if(object == null) { String msg = "Can not evaluate the identifier \"" + _identifier + "\" on a null object."; // depends on control dependency: [if], data = [none] LOGGER.error(msg); // depends on control dependency: [if], d...
public class class_name { @Override public Object map(Object input) { String orig = input.toString(); if (map.containsKey(orig)) { return map.get(orig); } if (input instanceof String) return input; else return orig; } }
public class class_name { @Override public Object map(Object input) { String orig = input.toString(); if (map.containsKey(orig)) { return map.get(orig); // depends on control dependency: [if], data = [none] } if (input instanceof String) return input; ...
public class class_name { private static Object[] resolveUrl(String str) { String scheme = "http", host = "localhost", uri = "/"; int port = 80; Object[] obj = new Object[2]; try { if (str.length() >= 10) { String temp = str.substring(0, str.indexOf(":"));...
public class class_name { private static Object[] resolveUrl(String str) { String scheme = "http", host = "localhost", uri = "/"; int port = 80; Object[] obj = new Object[2]; try { if (str.length() >= 10) { String temp = str.substring(0, str.indexOf(":"));...
public class class_name { public JdbcConnectionDescriptor addDescriptor(String jcdAlias, String jdbcDriver, String jdbcConnectionUrl, String username, String password) { JdbcConnectionDescriptor jcd = new JdbcConnectionDescriptor(); HashMap props = utils.parseConnectionUrl(jdb...
public class class_name { public JdbcConnectionDescriptor addDescriptor(String jcdAlias, String jdbcDriver, String jdbcConnectionUrl, String username, String password) { JdbcConnectionDescriptor jcd = new JdbcConnectionDescriptor(); HashMap props = utils.parseConnectionUrl(jdb...
public class class_name { private String encodeUrl(String text) { if (urlEncoding) { try { return URLEncoder.encode(text, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new ValidationException("UTF-8 encoding is not supported on this platform"); } } else { //...
public class class_name { private String encodeUrl(String text) { if (urlEncoding) { try { return URLEncoder.encode(text, "UTF-8"); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException e) { throw new ValidationException("UTF-8 encoding is not supp...
public class class_name { public boolean shouldDoInitialLoad() { if (role.is(Role.SENDER_BACKUP)) { // was backup. become primary sender role.next(Role.SENDER); if (state.is(State.LOADING)) { // previous loading was in progress. cancel and start from scratch...
public class class_name { public boolean shouldDoInitialLoad() { if (role.is(Role.SENDER_BACKUP)) { // was backup. become primary sender role.next(Role.SENDER); // depends on control dependency: [if], data = [none] if (state.is(State.LOADING)) { // previous ...
public class class_name { private void calculateAccessibilityGraph(Iterable<BeanDeploymentArchiveImpl> beanDeploymentArchives) { for (BeanDeploymentArchiveImpl from : beanDeploymentArchives) { for (BeanDeploymentArchiveImpl target : beanDeploymentArchives) { if (from.isAccessible(ta...
public class class_name { private void calculateAccessibilityGraph(Iterable<BeanDeploymentArchiveImpl> beanDeploymentArchives) { for (BeanDeploymentArchiveImpl from : beanDeploymentArchives) { for (BeanDeploymentArchiveImpl target : beanDeploymentArchives) { if (from.isAccessible(ta...
public class class_name { @Override public void unbind(final Name dn, boolean recursive) { if (!recursive) { doUnbind(dn); } else { doUnbindRecursively(dn); } } }
public class class_name { @Override public void unbind(final Name dn, boolean recursive) { if (!recursive) { doUnbind(dn); // depends on control dependency: [if], data = [none] } else { doUnbindRecursively(dn); // depends on control dependency: [if], data = [none] } } }