code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { void setSecurityLevel(final int securityLevel) throws InvalidArgumentException { logger.trace(format("setSecurityLevel to %d", securityLevel)); if (securityCurveMapping.isEmpty()) { throw new InvalidArgumentException("Security curve mapping has no entries."); ...
public class class_name { void setSecurityLevel(final int securityLevel) throws InvalidArgumentException { logger.trace(format("setSecurityLevel to %d", securityLevel)); if (securityCurveMapping.isEmpty()) { throw new InvalidArgumentException("Security curve mapping has no entries."); ...
public class class_name { private static PropertyChangeListener createAncestorPropertyChangeListener(final JTable table) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (table.getParent() instanceof JViewport && table.getParent().ge...
public class class_name { private static PropertyChangeListener createAncestorPropertyChangeListener(final JTable table) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (table.getParent() instanceof JViewport && table.getParent().ge...
public class class_name { private static void multiplyAxB(final double[] aBlock, final double[] bBlock, final double[] cBlock, final int step) { final int blockStripeMini = step % 3; final int blockStripeMaxi = step / 3; final int blockArea = step * step; for (int iL = 0; iL < blockArea; iL += step) ...
public class class_name { private static void multiplyAxB(final double[] aBlock, final double[] bBlock, final double[] cBlock, final int step) { final int blockStripeMini = step % 3; final int blockStripeMaxi = step / 3; final int blockArea = step * step; for (int iL = 0; iL < blockArea; iL += step) ...
public class class_name { private static void forEachParameter(SQLiteModelMethod method, OnMethodParameterListener listener) { for (VariableElement p : method.getElement().getParameters()) { listener.onMethodParameter(p); } } }
public class class_name { private static void forEachParameter(SQLiteModelMethod method, OnMethodParameterListener listener) { for (VariableElement p : method.getElement().getParameters()) { listener.onMethodParameter(p); // depends on control dependency: [for], data = [p] } } }
public class class_name { private String checkOriginHeader(HttpServletRequest request, JCorsConfig config) { String originHeader = request.getHeader(CorsHeaders.ORIGIN_HEADER); Constraint.ensureNotEmpty(originHeader, "Cross-Origin requests must specify an Origin Header"); String[] origins = originHeader.split(...
public class class_name { private String checkOriginHeader(HttpServletRequest request, JCorsConfig config) { String originHeader = request.getHeader(CorsHeaders.ORIGIN_HEADER); Constraint.ensureNotEmpty(originHeader, "Cross-Origin requests must specify an Origin Header"); String[] origins = originHeader.split(...
public class class_name { public static ILogger getLogger(String name) { // try the fast path first LoggerFactory existingFactory = loggerFactory; if (existingFactory != null) { return existingFactory.getLogger(name); } synchronized (FACTORY_LOCK) { exis...
public class class_name { public static ILogger getLogger(String name) { // try the fast path first LoggerFactory existingFactory = loggerFactory; if (existingFactory != null) { return existingFactory.getLogger(name); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void setCustomerDnsIps(java.util.Collection<String> customerDnsIps) { if (customerDnsIps == null) { this.customerDnsIps = null; return; } this.customerDnsIps = new com.amazonaws.internal.SdkInternalList<String>(customerDnsIps); } }
public class class_name { public void setCustomerDnsIps(java.util.Collection<String> customerDnsIps) { if (customerDnsIps == null) { this.customerDnsIps = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { private void putValue(EsRequest doc, EsIndexColumn column, Object value) { Object columnValue = column.columnValue(value); String stringValue = column.stringValue(value); doc.put(column.getName(), columnValue); if (!(value instanceof ModeShapeDateTime || value ...
public class class_name { private void putValue(EsRequest doc, EsIndexColumn column, Object value) { Object columnValue = column.columnValue(value); String stringValue = column.stringValue(value); doc.put(column.getName(), columnValue); if (!(value instanceof ModeShapeDateTime || value ...
public class class_name { protected String extractCategory(ValuedParameter[] params, ConstraintViolation<Object> violation) { Iterator<Node> path = violation.getPropertyPath().iterator(); Node method = path.next(); logger.debug("Constraint violation on method {}: {}", method, violation); StringBuilder cat = n...
public class class_name { protected String extractCategory(ValuedParameter[] params, ConstraintViolation<Object> violation) { Iterator<Node> path = violation.getPropertyPath().iterator(); Node method = path.next(); logger.debug("Constraint violation on method {}: {}", method, violation); StringBuilder cat = n...
public class class_name { protected String fetchMarkdownTagletDescriptionFile(String resourceName) { final URL url = this.getClass().getResource(resourceName); if( url!=null ) { try { return FileUtils.readFileToString(new File(url.toURI())); } catch (Exception e)...
public class class_name { protected String fetchMarkdownTagletDescriptionFile(String resourceName) { final URL url = this.getClass().getResource(resourceName); if( url!=null ) { try { return FileUtils.readFileToString(new File(url.toURI())); // depends on control dependency:...
public class class_name { public ServiceCall<UtteranceAnalyses> toneChat(ToneChatOptions toneChatOptions) { Validator.notNull(toneChatOptions, "toneChatOptions cannot be null"); String[] pathSegments = { "v3/tone_chat" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPo...
public class class_name { public ServiceCall<UtteranceAnalyses> toneChat(ToneChatOptions toneChatOptions) { Validator.notNull(toneChatOptions, "toneChatOptions cannot be null"); String[] pathSegments = { "v3/tone_chat" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPo...
public class class_name { public void marshall(RenewalSummary renewalSummary, ProtocolMarshaller protocolMarshaller) { if (renewalSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(renewalSum...
public class class_name { public void marshall(RenewalSummary renewalSummary, ProtocolMarshaller protocolMarshaller) { if (renewalSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(renewalSum...
public class class_name { private static Number asNumber(Object value) { Number num = null; if (value == null) { num = null; } else if (value instanceof Number) { num = (Number) value; } else if (value instanceof Boolean) { num = ((Boolean) value) ? 1 : 0; } return num; } }
public class class_name { private static Number asNumber(Object value) { Number num = null; if (value == null) { num = null; // depends on control dependency: [if], data = [none] } else if (value instanceof Number) { num = (Number) value; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public void set_timeout_millis(final int timeout, final boolean fwd) throws DevFailed { synchronized (this) { final Iterator it = elements.iterator(); while (it.hasNext()) { final GroupElement e = (GroupElement) it.next(); if (e instanceof GroupDeviceElement || fw...
public class class_name { @Override public void set_timeout_millis(final int timeout, final boolean fwd) throws DevFailed { synchronized (this) { final Iterator it = elements.iterator(); while (it.hasNext()) { final GroupElement e = (GroupElement) it.next(); if (e instanceof GroupDeviceElement || fw...
public class class_name { public static void removeChild(Node parent, Node node) { if (isTryFinallyNode(parent, node)) { if (NodeUtil.hasCatchHandler(getCatchBlock(parent))) { // A finally can only be removed if there is a catch. parent.removeChild(node); } else { // Otherwise, ...
public class class_name { public static void removeChild(Node parent, Node node) { if (isTryFinallyNode(parent, node)) { if (NodeUtil.hasCatchHandler(getCatchBlock(parent))) { // A finally can only be removed if there is a catch. parent.removeChild(node); // depends on control dependency: [if...
public class class_name { private static String joinSetAndGetValue(List<Field> fields, List<Object> values, Object obj, boolean withNull) { StringBuilder sb = new StringBuilder(); int fieldSize = fields.size(); for(int i = 0; i < fieldSize; i++) { Column column = fields.get(i).getAnnotation(Column.class); ...
public class class_name { private static String joinSetAndGetValue(List<Field> fields, List<Object> values, Object obj, boolean withNull) { StringBuilder sb = new StringBuilder(); int fieldSize = fields.size(); for(int i = 0; i < fieldSize; i++) { Column column = fields.get(i).getAnnotation(Column.class); ...
public class class_name { @SuppressWarnings("unchecked") protected Map<String, BeanData> getSessionMap(final HttpSession session) { SessionBeans sessionBeans = (SessionBeans) session.getAttribute(SESSION_BEANS_NAME); if (sessionBeans == null) { return null; } return sessionBeans.getBeanMap(); } }
public class class_name { @SuppressWarnings("unchecked") protected Map<String, BeanData> getSessionMap(final HttpSession session) { SessionBeans sessionBeans = (SessionBeans) session.getAttribute(SESSION_BEANS_NAME); if (sessionBeans == null) { return null; // depends on control dependency: [if], data = [none]...
public class class_name { public void end(Xid xid, int flags) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "end", new Object[] { ivManagedConnection, AdapterUtil.toString(xid), AdapterUt...
public class class_name { public void end(Xid xid, int flags) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "end", new Object[] { ivManagedConnection, AdapterUtil.toString(xid), AdapterUt...
public class class_name { public void marshall(UpdateElasticsearchDomainConfigRequest updateElasticsearchDomainConfigRequest, ProtocolMarshaller protocolMarshaller) { if (updateElasticsearchDomainConfigRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { public void marshall(UpdateElasticsearchDomainConfigRequest updateElasticsearchDomainConfigRequest, ProtocolMarshaller protocolMarshaller) { if (updateElasticsearchDomainConfigRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { public static Config getAndRemoveConfigWithName(List<Config> configs, String name) { final Config config = getConfigWithName(configs, name); if (config != null) { configs.remove(config); } return config; } }
public class class_name { public static Config getAndRemoveConfigWithName(List<Config> configs, String name) { final Config config = getConfigWithName(configs, name); if (config != null) { configs.remove(config); // depends on control dependency: [if], data = [(config] } return config; } }
public class class_name { public int getOrdinal() { String configOrdinal = getValue(CONFIG_ORDINAL); if (configOrdinal != null) { try { return Integer.parseInt(configOrdinal); } catch (NumberFormatException ignored) { // Ignored } ...
public class class_name { public int getOrdinal() { String configOrdinal = getValue(CONFIG_ORDINAL); if (configOrdinal != null) { try { return Integer.parseInt(configOrdinal); // depends on control dependency: [try], data = [none] } catch (NumberFormatException i...
public class class_name { public void encode(final MiniSatStyleSolver s, final LNGIntVector lits) { assert lits.size() != 0; if (lits.size() == 1) addUnitClause(s, lits.get(0)); else { final LNGIntVector seqAuxiliary = new LNGIntVector(); for (int i = 0; i < lits.size() - 1; i++) { ...
public class class_name { public void encode(final MiniSatStyleSolver s, final LNGIntVector lits) { assert lits.size() != 0; if (lits.size() == 1) addUnitClause(s, lits.get(0)); else { final LNGIntVector seqAuxiliary = new LNGIntVector(); for (int i = 0; i < lits.size() - 1; i++) { ...
public class class_name { public <T> T copy (T object) { if (object == null) return null; if (copyShallow) return object; copyDepth++; try { if (originalToCopy == null) originalToCopy = new IdentityMap(); Object existingCopy = originalToCopy.get(object); if (existingCopy != null) return (T)exis...
public class class_name { public <T> T copy (T object) { if (object == null) return null; if (copyShallow) return object; copyDepth++; try { if (originalToCopy == null) originalToCopy = new IdentityMap(); Object existingCopy = originalToCopy.get(object); if (existingCopy != null) return (T)exis...
public class class_name { private boolean cancelActiveAction(final Long actionId) { if (actionId != null) { try { deploymentManagement.cancelAction(actionId); return true; } catch (final CancelActionNotAllowedException e) { LOG.info("Cance...
public class class_name { private boolean cancelActiveAction(final Long actionId) { if (actionId != null) { try { deploymentManagement.cancelAction(actionId); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [try],...
public class class_name { public Future<GoodwillSchema> getSchema(final String schemaName) { try { return client.prepareGet(String.format("%s/%s", url, schemaName)).addHeader("Accept", "application/json").execute(new AsyncCompletionHandler<GoodwillSchema>() { @Overri...
public class class_name { public Future<GoodwillSchema> getSchema(final String schemaName) { try { return client.prepareGet(String.format("%s/%s", url, schemaName)).addHeader("Accept", "application/json").execute(new AsyncCompletionHandler<GoodwillSchema>() { @Overri...
public class class_name { private boolean loopShortcutNecessary(int node, int firstOrigEdge, int lastOrigEdge, double loopWeight) { EdgeIterator inIter = loopAvoidanceInEdgeExplorer.setBaseNode(node); while (inIter.next()) { EdgeIterator outIter = loopAvoidanceOutEdgeExplorer.setBaseNode(no...
public class class_name { private boolean loopShortcutNecessary(int node, int firstOrigEdge, int lastOrigEdge, double loopWeight) { EdgeIterator inIter = loopAvoidanceInEdgeExplorer.setBaseNode(node); while (inIter.next()) { EdgeIterator outIter = loopAvoidanceOutEdgeExplorer.setBaseNode(no...
public class class_name { public static Fault naturalize(Throwable ex) { while (ex instanceof InvocationTargetException || ex instanceof UndeclaredThrowableException) { ex = ex.getCause(); } if (ex instanceof Fault) { return Fault.class.cast(ex); } return...
public class class_name { public static Fault naturalize(Throwable ex) { while (ex instanceof InvocationTargetException || ex instanceof UndeclaredThrowableException) { ex = ex.getCause(); // depends on control dependency: [while], data = [none] } if (ex instanceof Fault) { ...
public class class_name { public String toRemote(final String host, final File localFile) { if (this.remoteName != null && (this.hosts == null || this.hosts.contains(host))) { try { final String canonical = localFile.getCanonicalPath(); if (canonical.startsWith(this.canonicalPath) && isActive...
public class class_name { public String toRemote(final String host, final File localFile) { if (this.remoteName != null && (this.hosts == null || this.hosts.contains(host))) { try { final String canonical = localFile.getCanonicalPath(); if (canonical.startsWith(this.canonicalPath) && isActive...
public class class_name { public void clean() { log.debug("[clean] Cleaning world"); for (Robot bot : robotsPosition.keySet()) { bot.die("World cleanup"); if (robotsPosition.containsKey(bot)) { log.warn("[clean] Robot did not unregister itself. Removing it"); remove(bot); } } } }
public class class_name { public void clean() { log.debug("[clean] Cleaning world"); for (Robot bot : robotsPosition.keySet()) { bot.die("World cleanup"); // depends on control dependency: [for], data = [bot] if (robotsPosition.containsKey(bot)) { log.warn("[clean] Robot did not unregister itself. Remov...
public class class_name { public Path getTranslatedInstance (int x, int y) { if (_source == null) { return new LinePath(null, new Point(_dest.x + x, _dest.y + y), _duration); } else { return new LinePath(_source.x + x, _source.y + y, _dest.x + x, ...
public class class_name { public Path getTranslatedInstance (int x, int y) { if (_source == null) { return new LinePath(null, new Point(_dest.x + x, _dest.y + y), _duration); // depends on control dependency: [if], data = [none] } else { return new LinePath(_...
public class class_name { private boolean processError(ByteBuf in) { int length = lineLength(in); if (length == -1) { return false; } in.skipBytes(length); return true; } }
public class class_name { private boolean processError(ByteBuf in) { int length = lineLength(in); if (length == -1) { return false; // depends on control dependency: [if], data = [none] } in.skipBytes(length); return true; } }
public class class_name { public CmsSearchParameters restrict(CmsSearchParameters restriction) { // append queries StringBuffer query = new StringBuffer(256); if (getQuery() != null) { // don't blow up unnecessary closures (if CmsSearch is reused and restricted several times) ...
public class class_name { public CmsSearchParameters restrict(CmsSearchParameters restriction) { // append queries StringBuffer query = new StringBuffer(256); if (getQuery() != null) { // don't blow up unnecessary closures (if CmsSearch is reused and restricted several times) ...
public class class_name { @Deprecated public Map<String, HashSet<String>> match(Map<String, IndexedNodeType> aamModules, Map<String, NodeTemplate> offerings){ Map<String, HashSet<String>> mathedOfferings = new HashMap<>(); for(String moduleName: aamModules.keySet()){ IndexedNodeType mo...
public class class_name { @Deprecated public Map<String, HashSet<String>> match(Map<String, IndexedNodeType> aamModules, Map<String, NodeTemplate> offerings){ Map<String, HashSet<String>> mathedOfferings = new HashMap<>(); for(String moduleName: aamModules.keySet()){ IndexedNodeType mo...
public class class_name { public Husband addHusbandToFamily(final Family family, final Person person) { if (family == null || person == null) { return new Husband(); } final FamS famS = new FamS(person, "FAMS", new ObjectId(family.getString())); f...
public class class_name { public Husband addHusbandToFamily(final Family family, final Person person) { if (family == null || person == null) { return new Husband(); // depends on control dependency: [if], data = [none] } final FamS famS = new FamS(person, "FAMS", ...
public class class_name { private <Message extends PMessage<Message, Field>, Field extends PField> Message parseMessage(ThriftTokenizer tokenizer, PMessageDescriptor<Message, Field> type) throws IOException { PMessageBuilder<Message, Field> builder = type.builder(); if (to...
public class class_name { private <Message extends PMessage<Message, Field>, Field extends PField> Message parseMessage(ThriftTokenizer tokenizer, PMessageDescriptor<Message, Field> type) throws IOException { PMessageBuilder<Message, Field> builder = type.builder(); if (to...
public class class_name { public VirtualRouterSpec withListeners(VirtualRouterListener... listeners) { if (this.listeners == null) { setListeners(new java.util.ArrayList<VirtualRouterListener>(listeners.length)); } for (VirtualRouterListener ele : listeners) { this.liste...
public class class_name { public VirtualRouterSpec withListeners(VirtualRouterListener... listeners) { if (this.listeners == null) { setListeners(new java.util.ArrayList<VirtualRouterListener>(listeners.length)); // depends on control dependency: [if], data = [none] } for (VirtualRo...
public class class_name { public float[] t1(float[] z, int k) { float[] result = new float[z.length]; for (int i = 0; i < z.length; i++) { result[i] = (new Transformations()).sDecept(z[i], (float) 0.35, (float) 0.001, (float) 0.05); } return result; } }
public class class_name { public float[] t1(float[] z, int k) { float[] result = new float[z.length]; for (int i = 0; i < z.length; i++) { result[i] = (new Transformations()).sDecept(z[i], (float) 0.35, (float) 0.001, (float) 0.05); // depends on control dependency: [for], data = [i] } r...
public class class_name { private Map<String, ClassRef> getReferenceMap() { Map<String, ClassRef> mapping = new HashMap<String, ClassRef>(); List<ClassRef> refs = getReferences(); //It's best to have predictable order, so that we can generate uniform code. Collections.sort(refs, new Co...
public class class_name { private Map<String, ClassRef> getReferenceMap() { Map<String, ClassRef> mapping = new HashMap<String, ClassRef>(); List<ClassRef> refs = getReferences(); //It's best to have predictable order, so that we can generate uniform code. Collections.sort(refs, new Co...
public class class_name { public void pluginSkipped(Plugin plugin, String reason) { if (isStop()) { return; } PluginStats pluginStats = mapPluginStats.get(plugin.getId()); if (pluginStats == null || pluginStats.isSkipped() || pluginFactory.getCompleted().contains(plug...
public class class_name { public void pluginSkipped(Plugin plugin, String reason) { if (isStop()) { return; // depends on control dependency: [if], data = [none] } PluginStats pluginStats = mapPluginStats.get(plugin.getId()); if (pluginStats == null || pluginStats.isS...
public class class_name { public void withRoutes(MangooRoute... routes) { Objects.requireNonNull(routes, Required.ROUTE.toString()); for (MangooRoute route : routes) { RequestRoute requestRoute = (RequestRoute) route; requestRoute.withControllerClass(this.controllerClas...
public class class_name { public void withRoutes(MangooRoute... routes) { Objects.requireNonNull(routes, Required.ROUTE.toString()); for (MangooRoute route : routes) { RequestRoute requestRoute = (RequestRoute) route; requestRoute.withControllerClass(this.controllerClas...
public class class_name { public KeePassFile enrichNodesWithIconData(KeePassFile keePassFile) { CustomIcons iconLibrary = keePassFile.getMeta().getCustomIcons(); GroupZipper zipper = new GroupZipper(keePassFile); Iterator<Group> iter = zipper.iterator(); while (iter.hasNext()) { ...
public class class_name { public KeePassFile enrichNodesWithIconData(KeePassFile keePassFile) { CustomIcons iconLibrary = keePassFile.getMeta().getCustomIcons(); GroupZipper zipper = new GroupZipper(keePassFile); Iterator<Group> iter = zipper.iterator(); while (iter.hasNext()) { ...
public class class_name { private Map<String, Object> parseTSUIDsList(HttpQuery query) { final HashMap<String, Object> map = new HashMap<String, Object>(); map.put("treeId", parseTreeId(query, true)); final String tsquery = query.getQueryStringParam("tsuids"); if (tsquery != null) { final St...
public class class_name { private Map<String, Object> parseTSUIDsList(HttpQuery query) { final HashMap<String, Object> map = new HashMap<String, Object>(); map.put("treeId", parseTreeId(query, true)); final String tsquery = query.getQueryStringParam("tsuids"); if (tsquery != null) { final St...
public class class_name { public EEnum getFinishingFidelityStpFinEx() { if (finishingFidelityStpFinExEEnum == null) { finishingFidelityStpFinExEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(166); } return finishingFidelityStpFinExEEnum; } }
public class class_name { public EEnum getFinishingFidelityStpFinEx() { if (finishingFidelityStpFinExEEnum == null) { finishingFidelityStpFinExEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(166); // depends on control dependency: [if], data = [none] } return...
public class class_name { private DateTime providedOrDefaultFromValue(DateTime from, DateTime to, AggregateCounterResolution resolution) { if (from != null) { return from; } switch (resolution) { case minute: return to.minusMinutes(59); case hour: return to.minusHours(23); case day: return t...
public class class_name { private DateTime providedOrDefaultFromValue(DateTime from, DateTime to, AggregateCounterResolution resolution) { if (from != null) { return from; // depends on control dependency: [if], data = [none] } switch (resolution) { case minute: return to.minusMinutes(59); case hour...
public class class_name { private static boolean setVTMode() { long console = GetStdHandle(STD_OUTPUT_HANDLE); int[] mode = new int[1]; if (Kernel32.GetConsoleMode(console, mode) == 0) { // No need to go further, not supported. return false; } if (Kernel3...
public class class_name { private static boolean setVTMode() { long console = GetStdHandle(STD_OUTPUT_HANDLE); int[] mode = new int[1]; if (Kernel32.GetConsoleMode(console, mode) == 0) { // No need to go further, not supported. return false; // depends on control depende...
public class class_name { public long add(long instant, long duration, int scalar) { if (duration == 0 || scalar == 0) { return instant; } long add = FieldUtils.safeMultiply(duration, scalar); return FieldUtils.safeAdd(instant, add); } }
public class class_name { public long add(long instant, long duration, int scalar) { if (duration == 0 || scalar == 0) { return instant; // depends on control dependency: [if], data = [none] } long add = FieldUtils.safeMultiply(duration, scalar); return FieldUtils.safeAdd(in...
public class class_name { protected final Logging getLoggingSkill() { if (this.skillBufferLogging == null || this.skillBufferLogging.get() == null) { this.skillBufferLogging = $getSkill(Logging.class); } return $castSkill(Logging.class, this.skillBufferLogging); } }
public class class_name { protected final Logging getLoggingSkill() { if (this.skillBufferLogging == null || this.skillBufferLogging.get() == null) { this.skillBufferLogging = $getSkill(Logging.class); // depends on control dependency: [if], data = [none] } return $castSkill(Logging.class, this.skillBufferLog...
public class class_name { public long optLong(int index, long defaultValue) { final Number val = this.optNumber(index, null); if (val == null) { return defaultValue; } return val.longValue(); } }
public class class_name { public long optLong(int index, long defaultValue) { final Number val = this.optNumber(index, null); if (val == null) { return defaultValue; // depends on control dependency: [if], data = [none] } return val.longValue(); } }
public class class_name { public static boolean hasMethod(Class<?> targetClass, String methodName, Class... parameterTypes) { try { targetClass.getMethod(methodName, parameterTypes); return true; } catch (NoSuchMethodException e) { return false; } } }
public class class_name { public static boolean hasMethod(Class<?> targetClass, String methodName, Class... parameterTypes) { try { targetClass.getMethod(methodName, parameterTypes); // depends on control dependency: [try], data = [none] return true; // depends on control dependency: [t...
public class class_name { private static void addLong(long input, int count, int startPos, byte[] dest) { if(DEBUG_LEV > 30) System.err.println("EncodedElement::addLong : Begin"); int currentByte = startPos/8; int currentOffset = startPos%8; int bitRoom;//how many bits can be placed in current by...
public class class_name { private static void addLong(long input, int count, int startPos, byte[] dest) { if(DEBUG_LEV > 30) System.err.println("EncodedElement::addLong : Begin"); int currentByte = startPos/8; int currentOffset = startPos%8; int bitRoom;//how many bits can be placed in current by...
public class class_name { void execute(@NonNull FlowVersion flowVersion) { checkState(isSupported(flowVersion), "Single sign on is not supported on the device. " + "Please install or update to the latest version of Uber app."); Intent intent = new Intent(Intent.ACTION_VIEW); fi...
public class class_name { void execute(@NonNull FlowVersion flowVersion) { checkState(isSupported(flowVersion), "Single sign on is not supported on the device. " + "Please install or update to the latest version of Uber app."); Intent intent = new Intent(Intent.ACTION_VIEW); fi...
public class class_name { public static Future<Boolean> send(Email email) { try { email = buildMessage(email); if (GojaConfig.getProperty("mail.smtp", StringPool.EMPTY).equals("mock") && GojaConfig.getApplicationMode().isDev()) { Mock.send(email); ...
public class class_name { public static Future<Boolean> send(Email email) { try { email = buildMessage(email); // depends on control dependency: [try], data = [none] if (GojaConfig.getProperty("mail.smtp", StringPool.EMPTY).equals("mock") && GojaConfig.getApplicatio...
public class class_name { public void sendMessageToAgents(String[] agent_name, String msgtype, Object message_content, Connector connector) { HashMap<String, Object> hm = new HashMap<String, Object>(); hm.put("performative", msgtype); hm.put(SFipa.CONTENT, message_content); ...
public class class_name { public void sendMessageToAgents(String[] agent_name, String msgtype, Object message_content, Connector connector) { HashMap<String, Object> hm = new HashMap<String, Object>(); hm.put("performative", msgtype); hm.put(SFipa.CONTENT, message_content); ...
public class class_name { public static List<AmendExecutionExtension> filterCompatibleExtensions( final List<AmendExecutionExtension> extensions, final Class<? extends RepositoryMethodDescriptor> descriptorType) { @SuppressWarnings("unchecked") final Class<? extends AmendExecuti...
public class class_name { public static List<AmendExecutionExtension> filterCompatibleExtensions( final List<AmendExecutionExtension> extensions, final Class<? extends RepositoryMethodDescriptor> descriptorType) { @SuppressWarnings("unchecked") final Class<? extends AmendExecuti...
public class class_name { public static String fabric8ArchetypesVersion() { String version = System.getenv(ENV_FABRIC8_ARCHETYPES_VERSION); if (Strings.isNotBlank(version)) { return version; } return MavenHelpers.getVersion("io.fabric8.archetypes", "archetypes-catalog"); ...
public class class_name { public static String fabric8ArchetypesVersion() { String version = System.getenv(ENV_FABRIC8_ARCHETYPES_VERSION); if (Strings.isNotBlank(version)) { return version; // depends on control dependency: [if], data = [none] } return MavenHelpers.getVersi...
public class class_name { @NotNull public DoubleStream doubles(long streamSize, final double randomNumberOrigin, final double randomNumberBound) { if (streamSize < 0L) throw new IllegalArgumentException(); if (streamSize == 0L) { return DoubleStream.empty(); } ...
public class class_name { @NotNull public DoubleStream doubles(long streamSize, final double randomNumberOrigin, final double randomNumberBound) { if (streamSize < 0L) throw new IllegalArgumentException(); if (streamSize == 0L) { return DoubleStream.empty(); // depends on co...
public class class_name { public String convertListToString(Object listOrString) { if (listOrString == null) { return null; } if (listOrString instanceof Collection) { List<String> list = (List<String>) listOrString; return StringUtils.join(list, ","); } return listOrString.toString(); } }
public class class_name { public String convertListToString(Object listOrString) { if (listOrString == null) { return null; // depends on control dependency: [if], data = [none] } if (listOrString instanceof Collection) { List<String> list = (List<String>) listOrString; return StringUtils.join(list, ...
public class class_name { public StyleRow getStyle(String featureTable, long featureId, GeometryType geometryType, boolean tableStyle) { StyleRow styleRow = null; // Feature Style Styles styles = getStyles(featureTable, featureId); if (styles != null) { ...
public class class_name { public StyleRow getStyle(String featureTable, long featureId, GeometryType geometryType, boolean tableStyle) { StyleRow styleRow = null; // Feature Style Styles styles = getStyles(featureTable, featureId); if (styles != null) { ...
public class class_name { public static void deleteTileScalingExtension(GeoPackageCore geoPackage) { TileScalingDao tileScalingDao = geoPackage.getTileScalingDao(); ExtensionsDao extensionsDao = geoPackage.getExtensionsDao(); try { if (tileScalingDao.isTableExists()) { geoPackage.dropTable(tileScalingDao...
public class class_name { public static void deleteTileScalingExtension(GeoPackageCore geoPackage) { TileScalingDao tileScalingDao = geoPackage.getTileScalingDao(); ExtensionsDao extensionsDao = geoPackage.getExtensionsDao(); try { if (tileScalingDao.isTableExists()) { geoPackage.dropTable(tileScalingDao...
public class class_name { private void setHeadlessPadding() { if (dialogType == DialogType.INPUT_TEXT) { bodyContainer.setStyle( PreDefinedStyle.INPUT_DIALOG_HEADLESS_PADDING.getStyle()); } else if (dialogType == DialogType.EXCEPTION) { bodyContainer.setStyl...
public class class_name { private void setHeadlessPadding() { if (dialogType == DialogType.INPUT_TEXT) { bodyContainer.setStyle( PreDefinedStyle.INPUT_DIALOG_HEADLESS_PADDING.getStyle()); // depends on control dependency: [if], data = [none] } else if (dialogType == Dia...
public class class_name { public static Profile findProfile(Model mavenModel, String profileId) { List<Profile> profiles = mavenModel.getProfiles(); if (profiles != null) { for (Profile profile : profiles) { if (Objects.equal(profile.getId(), profileId)) { ...
public class class_name { public static Profile findProfile(Model mavenModel, String profileId) { List<Profile> profiles = mavenModel.getProfiles(); if (profiles != null) { for (Profile profile : profiles) { if (Objects.equal(profile.getId(), profileId)) { ...
public class class_name { private void sendIncrementalBlockReport(long startTime) throws Exception { // check if there are newly received blocks Block[] receivedAndDeletedBlockArray = null; int numBlocksReceivedAndDeleted = 0; int currentPendingRequests = 0; synchronized (receivedAndDeletedBlockL...
public class class_name { private void sendIncrementalBlockReport(long startTime) throws Exception { // check if there are newly received blocks Block[] receivedAndDeletedBlockArray = null; int numBlocksReceivedAndDeleted = 0; int currentPendingRequests = 0; synchronized (receivedAndDeletedBlockL...
public class class_name { private static void genericizeftStyles( List<FeatureTypeStyle> ftStyles ) { for( FeatureTypeStyle featureTypeStyle : ftStyles ) { featureTypeStyle.featureTypeNames().clear(); featureTypeStyle.featureTypeNames().add(new NameImpl(GENERIC_FEATURE_TYPENAME)); ...
public class class_name { private static void genericizeftStyles( List<FeatureTypeStyle> ftStyles ) { for( FeatureTypeStyle featureTypeStyle : ftStyles ) { featureTypeStyle.featureTypeNames().clear(); // depends on control dependency: [for], data = [featureTypeStyle] featureTypeStyle.fe...
public class class_name { private IQ receiveSessionTerminateAction(JingleSession session, Jingle jingle) { // According to XEP-166 the only thing we can do is ack. IQ response = session.createAck(jingle); try { session.terminate("Closed remotely"); } catch (Exception e) { ...
public class class_name { private IQ receiveSessionTerminateAction(JingleSession session, Jingle jingle) { // According to XEP-166 the only thing we can do is ack. IQ response = session.createAck(jingle); try { session.terminate("Closed remotely"); // depends on control dependency...
public class class_name { private static boolean checkChangesFilledUpTo(final FileChanges changesContainer, final long pageIndex) { if (changesContainer == null) { return true; } else if (changesContainer.isNew || changesContainer.maxNewPageIndex > -2) { return pageIndex < changesContainer.maxNewPa...
public class class_name { private static boolean checkChangesFilledUpTo(final FileChanges changesContainer, final long pageIndex) { if (changesContainer == null) { return true; // depends on control dependency: [if], data = [none] } else if (changesContainer.isNew || changesContainer.maxNewPageIndex > -2...
public class class_name { @Override public String handle(final Object value) { final StringBuilder s = new StringBuilder(); if (value instanceof List) { final List<?> l = (List<?>) value; for (final Object o : l) { if (s.length() > 0) { s....
public class class_name { @Override public String handle(final Object value) { final StringBuilder s = new StringBuilder(); if (value instanceof List) { final List<?> l = (List<?>) value; for (final Object o : l) { if (s.length() > 0) { s....
public class class_name { public static BigDecimal exp (final BigDecimal x, final int scale) { // e^0 = 1 if (x.signum () == 0) { return BigDecimal.ONE; } // If x is negative, return 1/(e^-x). if (x.signum () == -1) { return BigDecimal.ONE.divide (exp (x.negate (), scale), sc...
public class class_name { public static BigDecimal exp (final BigDecimal x, final int scale) { // e^0 = 1 if (x.signum () == 0) { return BigDecimal.ONE; // depends on control dependency: [if], data = [none] } // If x is negative, return 1/(e^-x). if (x.signum () == -1) { retu...
public class class_name { public Revision backward(int count) { if (count == 0) { return this; } if (count < 0) { throw new IllegalArgumentException("count " + count + " (expected: a non-negative integer)"); } return new Revision(subtract(major, count));...
public class class_name { public Revision backward(int count) { if (count == 0) { return this; // depends on control dependency: [if], data = [none] } if (count < 0) { throw new IllegalArgumentException("count " + count + " (expected: a non-negative integer)"); }...
public class class_name { public static void initJMXBean(JawrApplicationConfigManager appConfigMgr, ServletContext servletContext, String resourceType, String mBeanPrefix) { try { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); if (mbs != null) { ObjectName jawrConfigMgrObjName = JmxUt...
public class class_name { public static void initJMXBean(JawrApplicationConfigManager appConfigMgr, ServletContext servletContext, String resourceType, String mBeanPrefix) { try { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); if (mbs != null) { ObjectName jawrConfigMgrObjName = JmxUt...
public class class_name { public CloudwatchLogsExportConfiguration withDisableLogTypes(String... disableLogTypes) { if (this.disableLogTypes == null) { setDisableLogTypes(new java.util.ArrayList<String>(disableLogTypes.length)); } for (String ele : disableLogTypes) { thi...
public class class_name { public CloudwatchLogsExportConfiguration withDisableLogTypes(String... disableLogTypes) { if (this.disableLogTypes == null) { setDisableLogTypes(new java.util.ArrayList<String>(disableLogTypes.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { @TargetApi(Build.VERSION_CODES.LOLLIPOP) public void animate(View view) { if (!expanded) { mIv.setImageDrawable(mSearchToBar); mSearchToBar.start(); mIv.animate().translationX(0f).setDuration(mDuration).setInterpolator(mInterp); //te...
public class class_name { @TargetApi(Build.VERSION_CODES.LOLLIPOP) public void animate(View view) { if (!expanded) { mIv.setImageDrawable(mSearchToBar); // depends on control dependency: [if], data = [none] mSearchToBar.start(); // depends on control dependency: [if], data = [none] ...
public class class_name { public WorkflowExecutionInfo withTagList(String... tagList) { if (this.tagList == null) { setTagList(new java.util.ArrayList<String>(tagList.length)); } for (String ele : tagList) { this.tagList.add(ele); } return this; } }
public class class_name { public WorkflowExecutionInfo withTagList(String... tagList) { if (this.tagList == null) { setTagList(new java.util.ArrayList<String>(tagList.length)); // depends on control dependency: [if], data = [none] } for (String ele : tagList) { this.tagL...
public class class_name { private void setReferent(SNode n, long index, int value) { if (n instanceof SToken) { SToken tok = (SToken) n; if (!referentOfToken.containsKey(tok.getId())) { HashMap<Long, Integer> newlist = new HashMap<Long, Integer>(); newlist.put(index, value);...
public class class_name { private void setReferent(SNode n, long index, int value) { if (n instanceof SToken) { SToken tok = (SToken) n; if (!referentOfToken.containsKey(tok.getId())) { HashMap<Long, Integer> newlist = new HashMap<Long, Integer>(); newlist.put(index, value);...
public class class_name { private void removeDeadMethods(String clazz, List<BodyDeclaration> declarations) { Iterator<BodyDeclaration> declarationsIter = declarations.iterator(); while (declarationsIter.hasNext()) { BodyDeclaration declaration = declarationsIter.next(); if (declaration instanceof M...
public class class_name { private void removeDeadMethods(String clazz, List<BodyDeclaration> declarations) { Iterator<BodyDeclaration> declarationsIter = declarations.iterator(); while (declarationsIter.hasNext()) { BodyDeclaration declaration = declarationsIter.next(); if (declaration instanceof M...
public class class_name { public static ByteBuf copyShort(short... values) { if (values == null || values.length == 0) { return EMPTY_BUFFER; } ByteBuf buffer = buffer(values.length * 2); for (int v: values) { buffer.writeShort(v); } return buffer...
public class class_name { public static ByteBuf copyShort(short... values) { if (values == null || values.length == 0) { return EMPTY_BUFFER; // depends on control dependency: [if], data = [none] } ByteBuf buffer = buffer(values.length * 2); for (int v: values) { ...
public class class_name { private String getMimeType(String resource) { if (resource.endsWith(".png")) { return "image/png"; } else if (resource.endsWith(".css")) { return "text/css"; } else if (resource.endsWith(".js")) { return "application/x-javascript"; } else if (resource.endsWit...
public class class_name { private String getMimeType(String resource) { if (resource.endsWith(".png")) { return "image/png"; // depends on control dependency: [if], data = [none] } else if (resource.endsWith(".css")) { return "text/css"; // depends on control dependency: [if], data = [none] } e...
public class class_name { @PerformanceSensitive public Stack<Class<?>> getCurrentStackTrace() { // benchmarks show that using the SecurityManager is much faster than looping through getCallerClass(int) if (getSecurityManager() != null) { final Class<?>[] array = getSecurityManager().get...
public class class_name { @PerformanceSensitive public Stack<Class<?>> getCurrentStackTrace() { // benchmarks show that using the SecurityManager is much faster than looping through getCallerClass(int) if (getSecurityManager() != null) { final Class<?>[] array = getSecurityManager().get...
public class class_name { public static <T extends Geometry> GeometryExpression<T> asGeometry(Expression<T> expr) { Expression<T> underlyingMixin = ExpressionUtils.extract(expr); if (underlyingMixin instanceof PathImpl) { return new GeometryPath<T>((PathImpl<T>) underlyingMixin); } ...
public class class_name { public static <T extends Geometry> GeometryExpression<T> asGeometry(Expression<T> expr) { Expression<T> underlyingMixin = ExpressionUtils.extract(expr); if (underlyingMixin instanceof PathImpl) { return new GeometryPath<T>((PathImpl<T>) underlyingMixin); // depends...
public class class_name { private void dealWithFile(File file) { // Browse thru Map SelectiveFileScannerObserver specificFileScanner = selectiveFileScannerMap.get(file.getName()); if (specificFileScanner != null) { logger.debug("Launching fileScanner={} for file={}", specificFileScanner.getClass(), file.getAb...
public class class_name { private void dealWithFile(File file) { // Browse thru Map SelectiveFileScannerObserver specificFileScanner = selectiveFileScannerMap.get(file.getName()); if (specificFileScanner != null) { logger.debug("Launching fileScanner={} for file={}", specificFileScanner.getClass(), file.getAb...
public class class_name { public List<Field> getFormFields( Form formToGetFieldsForParam, boolean includeTableFieldsParam) { if (formToGetFieldsForParam != null && this.serviceTicket != null) { formToGetFieldsForParam.setServiceTicket(this.serviceTicket); } try { FormFieldListing formFieldListing =...
public class class_name { public List<Field> getFormFields( Form formToGetFieldsForParam, boolean includeTableFieldsParam) { if (formToGetFieldsForParam != null && this.serviceTicket != null) { formToGetFieldsForParam.setServiceTicket(this.serviceTicket); // depends on control dependency: [if], data = [non...
public class class_name { public static long durationMS(LocalDateTime start,LocalDateTime end) { if(start == null || end == null) { return 0; } return Duration.between(start, end).toMillis(); } }
public class class_name { public static long durationMS(LocalDateTime start,LocalDateTime end) { if(start == null || end == null) { return 0; // depends on control dependency: [if], data = [none] } return Duration.between(start, end).toMillis(); } }
public class class_name { private FacetList calculateFacetList(AbstractDataTable table, String[] facetFields) { if(facetFields == null || facetFields.length == 0){ throw new NullPointerException("Facet field list empty"); } FacetList facetList = new FacetList(); for (String...
public class class_name { private FacetList calculateFacetList(AbstractDataTable table, String[] facetFields) { if(facetFields == null || facetFields.length == 0){ throw new NullPointerException("Facet field list empty"); } FacetList facetList = new FacetList(); for (String...
public class class_name { public static Set<Pair<Integer, Integer>> getTopicIdsFromContentSpec(final ContentSpec contentSpec) { // Add the topics at this level to the database final Set<Pair<Integer, Integer>> topicIds = new HashSet<Pair<Integer, Integer>>(); final List<SpecTopic> specTopics = ...
public class class_name { public static Set<Pair<Integer, Integer>> getTopicIdsFromContentSpec(final ContentSpec contentSpec) { // Add the topics at this level to the database final Set<Pair<Integer, Integer>> topicIds = new HashSet<Pair<Integer, Integer>>(); final List<SpecTopic> specTopics = ...
public class class_name { private static Level logLevelFor(DescriptorVisibilityFilter f) { Long interval = SystemProperties.getLong( DescriptorVisibilityFilter.class.getName() + ".badFilterLogWarningIntervalMinutes", 60L); // the healthy path will never see this synchron...
public class class_name { private static Level logLevelFor(DescriptorVisibilityFilter f) { Long interval = SystemProperties.getLong( DescriptorVisibilityFilter.class.getName() + ".badFilterLogWarningIntervalMinutes", 60L); // the healthy path will never see this synchron...
public class class_name { public final void removePointsFromAttr(final Element root, final String selector, final String attr) { final Iterable<Element> elements; // Elements to fix checkNotNull(root, "Received a null pointer as root element"); checkNotNull(selector, "Received a nu...
public class class_name { public final void removePointsFromAttr(final Element root, final String selector, final String attr) { final Iterable<Element> elements; // Elements to fix checkNotNull(root, "Received a null pointer as root element"); checkNotNull(selector, "Received a nu...
public class class_name { void connectAndRequestGoogleAccount(int signInRequestCode, int errorResolutionRequestCode) { if (client.isConnected()) { requestGoogleAccount(signInRequestCode); } else if (!client.isConnecting()) { this.signInRequestCode = signInRequestCode; ...
public class class_name { void connectAndRequestGoogleAccount(int signInRequestCode, int errorResolutionRequestCode) { if (client.isConnected()) { requestGoogleAccount(signInRequestCode); // depends on control dependency: [if], data = [none] } else if (!client.isConnecting()) { ...
public class class_name { private String checkLooseEndsTableNameConflict(String clearname, int attempt) { Enumeration e = getVariables(); while (e.hasMoreElements()) { BaseType bt = (BaseType) e.nextElement(); String btName = bt.getEncodedName(); //LogStream.out...
public class class_name { private String checkLooseEndsTableNameConflict(String clearname, int attempt) { Enumeration e = getVariables(); while (e.hasMoreElements()) { BaseType bt = (BaseType) e.nextElement(); String btName = bt.getEncodedName(); //LogStream.out...
public class class_name { static public String canonical(String s) { if(s != null) { s = s.trim(); if(s.length() == 0) s = null; } return s; } }
public class class_name { static public String canonical(String s) { if(s != null) { s = s.trim(); // depends on control dependency: [if], data = [none] if(s.length() == 0) s = null; } return s; } }
public class class_name { private static boolean validParameter(final Parameter p) { if (p.getNamespace() == null) { return false; } if (p.getValue() == null) { return false; } return true; } }
public class class_name { private static boolean validParameter(final Parameter p) { if (p.getNamespace() == null) { return false; // depends on control dependency: [if], data = [none] } if (p.getValue() == null) { return false; // depends on control dependency: [if], da...
public class class_name { public static List<MimeType> parseMimeTypes(String mimeTypes) { if (!Strings.isNullOrEmpty(mimeTypes)) { return Collections.emptyList(); } String[] tokens = mimeTypes.split(",\\s*"); List<MimeType> result = new ArrayList<MimeType>(tokens.length); ...
public class class_name { public static List<MimeType> parseMimeTypes(String mimeTypes) { if (!Strings.isNullOrEmpty(mimeTypes)) { return Collections.emptyList(); // depends on control dependency: [if], data = [none] } String[] tokens = mimeTypes.split(",\\s*"); List<MimeTyp...
public class class_name { @Nullable private static <T> ArrayList<T> excludeObject(@Nullable ArrayList<T> list, @Nullable T target, boolean exclude) { if (target != null) { if (exclude) { list = ArrayListManager.add(list, target); } else { list = Array...
public class class_name { @Nullable private static <T> ArrayList<T> excludeObject(@Nullable ArrayList<T> list, @Nullable T target, boolean exclude) { if (target != null) { if (exclude) { list = ArrayListManager.add(list, target); // depends on control dependency: [if], data = [n...
public class class_name { public static String decapitalize(String text) { if (isNullOrEmpty(text)) { return text; } char chars[] = text.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); } }
public class class_name { public static String decapitalize(String text) { if (isNullOrEmpty(text)) { return text; // depends on control dependency: [if], data = [none] } char chars[] = text.toCharArray(); chars[0] = Character.toLowerCase(chars[0]); return new String(chars); } }
public class class_name { public static Map<String, Object> configureObjectFieldsWithProperties( final Object object, final List<Property> properties, final Map<String, Object> inputConfig ) { HashMap<String, Object> modified = new HashMap<>(inputConfig); for...
public class class_name { public static Map<String, Object> configureObjectFieldsWithProperties( final Object object, final List<Property> properties, final Map<String, Object> inputConfig ) { HashMap<String, Object> modified = new HashMap<>(inputConfig); for...
public class class_name { public static boolean isSnapshotablePersistentTableView(Database db, Table table) { Table materializer = table.getMaterializer(); if (materializer == null) { // Return false if it is not a materialized view. return false; } if (CatalogUt...
public class class_name { public static boolean isSnapshotablePersistentTableView(Database db, Table table) { Table materializer = table.getMaterializer(); if (materializer == null) { // Return false if it is not a materialized view. return false; // depends on control dependenc...
public class class_name { public void realClose() { if (isClosing()) { if (buffer != null) { buffer.free(); buffer = null; } state.setState(RTMP.STATE_DISCONNECTED); pendingMessages.clear(); super.close(); ...
public class class_name { public void realClose() { if (isClosing()) { if (buffer != null) { buffer.free(); // depends on control dependency: [if], data = [none] buffer = null; // depends on control dependency: [if], data = [none] } stat...
public class class_name { @Override public TypedOutput toBody(final Object object) { if (object.getClass().isAnnotationPresent(DoNotConvert.class)) { return new TypedString(object.toString()); } else { return converter.toBody(object); } } }
public class class_name { @Override public TypedOutput toBody(final Object object) { if (object.getClass().isAnnotationPresent(DoNotConvert.class)) { return new TypedString(object.toString()); // depends on control dependency: [if], data = [none] } else { return conv...
public class class_name { private void addPostParams(final Request request) { if (status != null) { request.addPostParam("Status", status.toString()); } if (announceUrl != null) { request.addPostParam("AnnounceUrl", announceUrl.toString()); } if (announ...
public class class_name { private void addPostParams(final Request request) { if (status != null) { request.addPostParam("Status", status.toString()); // depends on control dependency: [if], data = [none] } if (announceUrl != null) { request.addPostParam("AnnounceUrl", ...
public class class_name { protected void deliverResponse(T response) { synchronized (responseListeners) { for (RequestListener.ResponseListener responseListener : responseListeners) { responseListener.onResponse(response); } if (!this.response.intermediate) {...
public class class_name { protected void deliverResponse(T response) { synchronized (responseListeners) { for (RequestListener.ResponseListener responseListener : responseListeners) { responseListener.onResponse(response); // depends on control dependency: [for], data = [responseLis...
public class class_name { private static void manageLifecycleAnnotation(final Component<?> component, final MultiMap<String, Method> lifecycleMethod, final Class<? extends Annotation> annotationClass) { for (final Method method : ClassUtility.getAnnotatedMethods(component.getClass(), annotationClass)) { ...
public class class_name { private static void manageLifecycleAnnotation(final Component<?> component, final MultiMap<String, Method> lifecycleMethod, final Class<? extends Annotation> annotationClass) { for (final Method method : ClassUtility.getAnnotatedMethods(component.getClass(), annotationClass)) { ...
public class class_name { private synchronized void startTimer() { if (timer == null) { timer = new Timer("Timer thread for monitoring " + getContextName(), true); TimerTask task = new TimerTask() { public void run() { try { timerEvent...
public class class_name { private synchronized void startTimer() { if (timer == null) { timer = new Timer("Timer thread for monitoring " + getContextName(), true); // depends on control dependency: [if], data = [none] TimerTask task = new TimerTask() { public voi...