code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private void findErrorMessages(FacesContext context) { if (context.getMessageList().isEmpty() || context.isValidationFailed()) { return; } for (FacesMessage msg : context.getMessageList()) { if (msg.getSeverity().equals(FacesMessage.SEVERITY_ERR...
public class class_name { private void findErrorMessages(FacesContext context) { if (context.getMessageList().isEmpty() || context.isValidationFailed()) { return; // depends on control dependency: [if], data = [none] } for (FacesMessage msg : context.getMessageList()) { ...
public class class_name { public UNode toDoc() { // Root node is called "doc". UNode result = UNode.createMapNode("doc"); // Each child of "doc" is a simple VALUE node. for (String fieldName : m_resultFields.keySet()) { // In XML, we want the element name to b...
public class class_name { public UNode toDoc() { // Root node is called "doc". UNode result = UNode.createMapNode("doc"); // Each child of "doc" is a simple VALUE node. for (String fieldName : m_resultFields.keySet()) { // In XML, we want the element name to b...
public class class_name { public void initialise() { if (log.isDebugEnabled()) { log.debug("now initialising conf"); } initDecodeUsing(decodeUsing); boolean rulesOk = true; for (int i = 0; i < rules.size(); i++) { final Rule rule = (Rule) rules.get(i); ...
public class class_name { public void initialise() { if (log.isDebugEnabled()) { log.debug("now initialising conf"); // depends on control dependency: [if], data = [none] } initDecodeUsing(decodeUsing); boolean rulesOk = true; for (int i = 0; i < rules.size(); i++)...
public class class_name { public void deleteElement(Object parent, String name) { Element element = getElement(parent, name); if (element != null) { Element group = (Element) element.getParentElement(); if (group != null) { deleteRecursively(group, element); } } } }
public class class_name { public void deleteElement(Object parent, String name) { Element element = getElement(parent, name); if (element != null) { Element group = (Element) element.getParentElement(); if (group != null) { deleteRecursively(group, element); // depends on control dependency: [if], data =...
public class class_name { public static Vector2dfx convert(Tuple2D<?> tuple) { if (tuple instanceof Vector2dfx) { return (Vector2dfx) tuple; } return new Vector2dfx(tuple.getX(), tuple.getY()); } }
public class class_name { public static Vector2dfx convert(Tuple2D<?> tuple) { if (tuple instanceof Vector2dfx) { return (Vector2dfx) tuple; // depends on control dependency: [if], data = [none] } return new Vector2dfx(tuple.getX(), tuple.getY()); } }
public class class_name { public final void registerSession(Session session, EventType event) { if (session.isClosed() && event != EventType.UNREGISTER) { return; } Reactor reactor = (Reactor) session.getAttribute(REACTOR_ATTRIBUTE); if (reactor == null) { reactor = nextReactor(); final React...
public class class_name { public final void registerSession(Session session, EventType event) { if (session.isClosed() && event != EventType.UNREGISTER) { return; // depends on control dependency: [if], data = [none] } Reactor reactor = (Reactor) session.getAttribute(REACTOR_ATTRIBUTE); if (reactor =...
public class class_name { public static int getIsolationLevel(SynchronizationRegistryUOWScope txKey) { ContainerTx ctx = (ContainerTx) txKey.getResource(containerTxResourceKey); if (ctx == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(tc, ...
public class class_name { public static int getIsolationLevel(SynchronizationRegistryUOWScope txKey) { ContainerTx ctx = (ContainerTx) txKey.getResource(containerTxResourceKey); if (ctx == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) Tr.event(tc, ...
public class class_name { public Iterator<E> iterator () { // the crazy sanity checks if (_size < 0 || _size > _entries.length || (_size > 0 && _entries[_size-1] == null)) { log.warning("DSet in a bad way", "size", _size, "entries", _entries, new Exception()); } return ...
public class class_name { public Iterator<E> iterator () { // the crazy sanity checks if (_size < 0 || _size > _entries.length || (_size > 0 && _entries[_size-1] == null)) { log.warning("DSet in a bad way", "size", _size, "entries", _entries, new Exception()); // depends on control depe...
public class class_name { @SuppressWarnings("unchecked") protected void initBroadcastInputReaders() throws Exception { final int numBroadcastInputs = this.config.getNumBroadcastInputs(); final MutableReader<?>[] broadcastInputReaders = new MutableReader[numBroadcastInputs]; for (int i = 0; i < this.config.ge...
public class class_name { @SuppressWarnings("unchecked") protected void initBroadcastInputReaders() throws Exception { final int numBroadcastInputs = this.config.getNumBroadcastInputs(); final MutableReader<?>[] broadcastInputReaders = new MutableReader[numBroadcastInputs]; for (int i = 0; i < this.config.ge...
public class class_name { public UpdateTableRequest withGlobalSecondaryIndexUpdates(GlobalSecondaryIndexUpdate... globalSecondaryIndexUpdates) { if (this.globalSecondaryIndexUpdates == null) { setGlobalSecondaryIndexUpdates(new java.util.ArrayList<GlobalSecondaryIndexUpdate>(globalSecondaryIndexUpd...
public class class_name { public UpdateTableRequest withGlobalSecondaryIndexUpdates(GlobalSecondaryIndexUpdate... globalSecondaryIndexUpdates) { if (this.globalSecondaryIndexUpdates == null) { setGlobalSecondaryIndexUpdates(new java.util.ArrayList<GlobalSecondaryIndexUpdate>(globalSecondaryIndexUpd...
public class class_name { @Deprecated public OPropertyImpl dropIndexes() { getDatabase().checkSecurity(ORule.ResourceGeneric.SCHEMA, ORole.PERMISSION_DELETE); acquireSchemaReadLock(); try { final OIndexManager indexManager = getDatabase().getMetadata().getIndexManager(); final Array...
public class class_name { @Deprecated public OPropertyImpl dropIndexes() { getDatabase().checkSecurity(ORule.ResourceGeneric.SCHEMA, ORole.PERMISSION_DELETE); acquireSchemaReadLock(); try { final OIndexManager indexManager = getDatabase().getMetadata().getIndexManager(); final Array...
public class class_name { public ChannelWrapper getChannel(String nodeGroup, NodeType nodeType, String identity) { List<ChannelWrapper> channelWrappers = getChannels(nodeGroup, nodeType); if (channelWrappers != null && channelWrappers.size() != 0) { for (ChannelWrapper channelWrapper : chan...
public class class_name { public ChannelWrapper getChannel(String nodeGroup, NodeType nodeType, String identity) { List<ChannelWrapper> channelWrappers = getChannels(nodeGroup, nodeType); if (channelWrappers != null && channelWrappers.size() != 0) { for (ChannelWrapper channelWrapper : chan...
public class class_name { public void saveAndLeave(final Command leaveCommand) { if (hasPageChanged()) { CmsRpcAction<Long> action = new CmsRpcAction<Long>() { /** * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute() */ @Overri...
public class class_name { public void saveAndLeave(final Command leaveCommand) { if (hasPageChanged()) { CmsRpcAction<Long> action = new CmsRpcAction<Long>() { /** * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute() */ @Overri...
public class class_name { static public SimpleUnit factory(String name) { try { return factoryWithExceptions(name); } catch (Exception e) { if (debugParse) System.out.println("Parse " + name + " got Exception " + e); return null; } } }
public class class_name { static public SimpleUnit factory(String name) { try { return factoryWithExceptions(name); // depends on control dependency: [try], data = [none] } catch (Exception e) { if (debugParse) System.out.println("Parse " + name + " got Exception " + e); return null; } //...
public class class_name { @Override public EEnum getServerState() { if (serverStateEEnum == null) { serverStateEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(44); } return serverStateEEnum; } }
public class class_name { @Override public EEnum getServerState() { if (serverStateEEnum == null) { serverStateEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(44); // depends on control dependency: [if], data = [none] } return serverStateEEnum; } }
public class class_name { void write_attribute_reply(int timeout) { DevError[] errors = null; try { if (timeout==NO_TIMEOUT) dev.write_attribute_reply(id); else dev.write_attribute_reply(id, 0); } catch(AsynReplyNotArrived e) { errors = e.errors; } catch(DevFailed e) { errors = e...
public class class_name { void write_attribute_reply(int timeout) { DevError[] errors = null; try { if (timeout==NO_TIMEOUT) dev.write_attribute_reply(id); else dev.write_attribute_reply(id, 0); } catch(AsynReplyNotArrived e) { errors = e.errors; } // depends on control dependency: [cat...
public class class_name { public static void writeString(String value, ByteBuffer buf) { if (value == null) { buf.putInt(VoltType.NULL_STRING_LENGTH); return; } byte[] strbytes = value.getBytes(Constants.UTF8ENCODING); int len = strbytes.length; buf.put...
public class class_name { public static void writeString(String value, ByteBuffer buf) { if (value == null) { buf.putInt(VoltType.NULL_STRING_LENGTH); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } b...
public class class_name { public java.util.List<String> getAllocationIds() { if (allocationIds == null) { allocationIds = new com.amazonaws.internal.SdkInternalList<String>(); } return allocationIds; } }
public class class_name { public java.util.List<String> getAllocationIds() { if (allocationIds == null) { allocationIds = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return allocationIds; } }
public class class_name { @Override public final boolean isValid(final String pvalue, final ConstraintValidatorContext pcontext) { if (StringUtils.isEmpty(pvalue)) { return true; } try { // execute regular expression, result doesn't matter "x".matches(pvalue); return true; } c...
public class class_name { @Override public final boolean isValid(final String pvalue, final ConstraintValidatorContext pcontext) { if (StringUtils.isEmpty(pvalue)) { return true; // depends on control dependency: [if], data = [none] } try { // execute regular expression, result doesn't matter...
public class class_name { public DescribeRecordResult withRecordOutputs(RecordOutput... recordOutputs) { if (this.recordOutputs == null) { setRecordOutputs(new java.util.ArrayList<RecordOutput>(recordOutputs.length)); } for (RecordOutput ele : recordOutputs) { this.recor...
public class class_name { public DescribeRecordResult withRecordOutputs(RecordOutput... recordOutputs) { if (this.recordOutputs == null) { setRecordOutputs(new java.util.ArrayList<RecordOutput>(recordOutputs.length)); // depends on control dependency: [if], data = [none] } for (Reco...
public class class_name { public static String getProcessPid( Session session, String userName, String grep1, String grep2 ) throws JSchException, IOException { String command = "ps aux | grep \"" + grep1 + "\" | grep -v grep"; String remoteResponseStr = launchACommand(session, command); ...
public class class_name { public static String getProcessPid( Session session, String userName, String grep1, String grep2 ) throws JSchException, IOException { String command = "ps aux | grep \"" + grep1 + "\" | grep -v grep"; String remoteResponseStr = launchACommand(session, command); ...
public class class_name { @Override public EClass getIfcFurniture() { if (ifcFurnitureEClass == null) { ifcFurnitureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(298); } return ifcFurnitureEClass; } }
public class class_name { @Override public EClass getIfcFurniture() { if (ifcFurnitureEClass == null) { ifcFurnitureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(298); // depends on control dependency: [if], data = [none] } return ifcFurniture...
public class class_name { public EClass getIfcElementComponent() { if (ifcElementComponentEClass == null) { ifcElementComponentEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(198); } return ifcElementComponentEClass; } }
public class class_name { public EClass getIfcElementComponent() { if (ifcElementComponentEClass == null) { ifcElementComponentEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(198); // depends on control dependency: [if], data = [none] } retur...
public class class_name { private Set<String> getAllComponentClasses(DeploymentUnit deploymentUnit, CompositeIndex index, WarMetaData metaData, TldsMetaData tldsMetaData) { final Set<String> classes = new HashSet<String>(); getAllComponentClasses(metaData.getMergedJBossWebMetaData(), classes); ...
public class class_name { private Set<String> getAllComponentClasses(DeploymentUnit deploymentUnit, CompositeIndex index, WarMetaData metaData, TldsMetaData tldsMetaData) { final Set<String> classes = new HashSet<String>(); getAllComponentClasses(metaData.getMergedJBossWebMetaData(), classes); ...
public class class_name { @RequestMapping(value = "/{notificationId}/events", method = RequestMethod.POST) @ResponseStatus(HttpStatus.CREATED) @ResponseBody public EventDTO createEvent(HttpServletRequest req, HttpServletResponse resp, @PathVariable("notificationId") long notificationId, ...
public class class_name { @RequestMapping(value = "/{notificationId}/events", method = RequestMethod.POST) @ResponseStatus(HttpStatus.CREATED) @ResponseBody public EventDTO createEvent(HttpServletRequest req, HttpServletResponse resp, @PathVariable("notificationId") long notificationId, ...
public class class_name { Node getNode(Node root) { if (isRoot()) { return root; } Node startNode = root; Matcher pathMatcher = dotWithPreviousChar.matcher(path); int pos = 0; while (pathMatcher.find()) { String step = path.substring(pos, pathMat...
public class class_name { Node getNode(Node root) { if (isRoot()) { return root; // depends on control dependency: [if], data = [none] } Node startNode = root; Matcher pathMatcher = dotWithPreviousChar.matcher(path); int pos = 0; while (pathMatcher.find()) {...
public class class_name { private boolean commentLinesBefore( String content, int line ) { int offset = _root.getElement( line ).getStartOffset(); // Start of comment not found, nothing to do int startDelimiter = lastIndexOf( content, getStartDelimiter(), offset - 2 ); if( startDelimiter < 0 ) { ...
public class class_name { private boolean commentLinesBefore( String content, int line ) { int offset = _root.getElement( line ).getStartOffset(); // Start of comment not found, nothing to do int startDelimiter = lastIndexOf( content, getStartDelimiter(), offset - 2 ); if( startDelimiter < 0 ) { ...
public class class_name { public static final byte[] getBytes(String input) { byte output[] = null; try { if (input != null) { output = input.getBytes("UTF-8"); } } catch (UnsupportedEncodingException e) { // This should not happen. ...
public class class_name { public static final byte[] getBytes(String input) { byte output[] = null; try { if (input != null) { output = input.getBytes("UTF-8"); // depends on control dependency: [if], data = [none] } } catch (UnsupportedEncodingException ...
public class class_name { static final byte[] toHllByteArray(final AbstractHllArray impl, final boolean compact) { int auxBytes = 0; if (impl.tgtHllType == TgtHllType.HLL_4) { final AuxHashMap auxHashMap = impl.getAuxHashMap(); if (auxHashMap != null) { auxBytes = (compact) ? au...
public class class_name { static final byte[] toHllByteArray(final AbstractHllArray impl, final boolean compact) { int auxBytes = 0; if (impl.tgtHllType == TgtHllType.HLL_4) { final AuxHashMap auxHashMap = impl.getAuxHashMap(); if (auxHashMap != null) { auxBytes = (compact) ? au...
public class class_name { @Nullable private TableReportEntry convertToTableReportEntry(Map<String, Object> map, Predicate<String> placementFilter, Predicate<Boolean> droppedFilter, Predicate<Boolean> facadeFilter) { if (Intrinsic.isDeleted(map)) { ...
public class class_name { @Nullable private TableReportEntry convertToTableReportEntry(Map<String, Object> map, Predicate<String> placementFilter, Predicate<Boolean> droppedFilter, Predicate<Boolean> facadeFilter) { if (Intrinsic.isDeleted(map)) { ...
public class class_name { public String getLocationStr() { if (locationStr == null && location != null) { locationStr = location.toString(); } return locationStr; } }
public class class_name { public String getLocationStr() { if (locationStr == null && location != null) { locationStr = location.toString(); // depends on control dependency: [if], data = [none] } return locationStr; } }
public class class_name { @Override public StateConnection service() { try { StateConnection nextState = _state.service(this); //return StateConnection.CLOSE; return nextState; /* if (_invocation == null && getRequestHttp().parseInvocation()) { if (_invocation == n...
public class class_name { @Override public StateConnection service() { try { StateConnection nextState = _state.service(this); //return StateConnection.CLOSE; return nextState; // depends on control dependency: [try], data = [none] /* if (_invocation == null && getRequestH...
public class class_name { private long grow(PrintStream out, List<ItemSet> list, TotalSupportTree ttree, FPTree fptree, int[] itemset, int[] localItemSupport, int[] prefixItemset) { if (fptree == T0) { int nprocs = MulticoreExecutor.getThreadPoolSize(); List<List<HeaderTableItem>> heade...
public class class_name { private long grow(PrintStream out, List<ItemSet> list, TotalSupportTree ttree, FPTree fptree, int[] itemset, int[] localItemSupport, int[] prefixItemset) { if (fptree == T0) { int nprocs = MulticoreExecutor.getThreadPoolSize(); List<List<HeaderTableItem>> heade...
public class class_name { public com.google.protobuf.ByteString getCallerIpBytes() { java.lang.Object ref = callerIp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); calle...
public class class_name { public com.google.protobuf.ByteString getCallerIpBytes() { java.lang.Object ref = callerIp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); calle...
public class class_name { @Override public void generateError(String response) { final String errorInString = extractParameter(response, ERROR_REGEX_PATTERN, true); final String errorDescription = extractParameter(response, ERROR_DESCRIPTION_REGEX_PATTERN, false); OAuth2Error errorCode; ...
public class class_name { @Override public void generateError(String response) { final String errorInString = extractParameter(response, ERROR_REGEX_PATTERN, true); final String errorDescription = extractParameter(response, ERROR_DESCRIPTION_REGEX_PATTERN, false); OAuth2Error errorCode; ...
public class class_name { public static double getMaskingValueFromConfig(Map<String, Object> layerConfig, KerasLayerConfiguration conf) throws InvalidKerasConfigurationException { Map<String, Object> innerConfig = KerasLayerUtils.getInnerLayerConfi...
public class class_name { public static double getMaskingValueFromConfig(Map<String, Object> layerConfig, KerasLayerConfiguration conf) throws InvalidKerasConfigurationException { Map<String, Object> innerConfig = KerasLayerUtils.getInnerLayerConfi...
public class class_name { public static Color valueOf(String color) { Objects.requireNonNull(color, "color"); Throwable cause = null; try { Color hexColor = parseHexString(color); if (hexColor != null) { return hexColor; } else { String upperColor = BasicHelper.toUpperCas...
public class class_name { public static Color valueOf(String color) { Objects.requireNonNull(color, "color"); Throwable cause = null; try { Color hexColor = parseHexString(color); if (hexColor != null) { return hexColor; // depends on control dependency: [if], data = [none] } els...
public class class_name { private static Date parse(String date) { for (int i = 0; i < fmt.length; i++) { try { SimpleDateFormat df = new SimpleDateFormat(fmt[i]); return df.parse(date); } catch (ParseException E) { // keep trying ...
public class class_name { private static Date parse(String date) { for (int i = 0; i < fmt.length; i++) { try { SimpleDateFormat df = new SimpleDateFormat(fmt[i]); return df.parse(date); // depends on control dependency: [try], data = [none] } catch (Pars...
public class class_name { private static void validateTags(String[] tagList, ArrayList<String> validList, ArrayList<String> invalidList) { for (String tag : tagList) { tag = tag.trim(); if (tag.contains("\\") || tag.contains(" ") || tag.contains("\n") || tag.contains("-") || tag.equals(...
public class class_name { private static void validateTags(String[] tagList, ArrayList<String> validList, ArrayList<String> invalidList) { for (String tag : tagList) { tag = tag.trim(); // depends on control dependency: [for], data = [tag] if (tag.contains("\\") || tag.contains(" ") || ...
public class class_name { @Override public Page<T> findAll(final Pageable pageable) { if (pageable == null) { LOGGER.debug("Pageable in findAll(Pageable) is null"); } final ArangoCursor<T> result = findAllInternal(pageable, null, new HashMap<>()); final List<T> content = result.asListRemaining(); return...
public class class_name { @Override public Page<T> findAll(final Pageable pageable) { if (pageable == null) { LOGGER.debug("Pageable in findAll(Pageable) is null"); // depends on control dependency: [if], data = [none] } final ArangoCursor<T> result = findAllInternal(pageable, null, new HashMap<>()); fina...
public class class_name { @Override public String[] split(String str) { Matcher matcher = pattern.matcher(str); String[] strings = { "" }; if (matcher.matches()) { int groupCount = matcher.groupCount(); strings = new String[groupCount]; for (int i = 1; i...
public class class_name { @Override public String[] split(String str) { Matcher matcher = pattern.matcher(str); String[] strings = { "" }; if (matcher.matches()) { int groupCount = matcher.groupCount(); strings = new String[groupCount]; // depends on control depende...
public class class_name { public static LocalCall<Map<String, Xor<Info, List<Info>>>> infoInstalledAllVersions( List<String> attributes, boolean reportErrors, String... packages) { LinkedHashMap<String, Object> kwargs = new LinkedHashMap<>(); kwargs.put("attr", attributes.stream().collect(C...
public class class_name { public static LocalCall<Map<String, Xor<Info, List<Info>>>> infoInstalledAllVersions( List<String> attributes, boolean reportErrors, String... packages) { LinkedHashMap<String, Object> kwargs = new LinkedHashMap<>(); kwargs.put("attr", attributes.stream().collect(C...
public class class_name { public void setResponseTimeRootCauses(java.util.Collection<ResponseTimeRootCause> responseTimeRootCauses) { if (responseTimeRootCauses == null) { this.responseTimeRootCauses = null; return; } this.responseTimeRootCauses = new java.util.ArrayLis...
public class class_name { public void setResponseTimeRootCauses(java.util.Collection<ResponseTimeRootCause> responseTimeRootCauses) { if (responseTimeRootCauses == null) { this.responseTimeRootCauses = null; // depends on control dependency: [if], data = [none] return; // depends on con...
public class class_name { public final void setTemplate() { template = new HashMap(); if (isEventExist()) { template.putAll(events.get(next)); } template.put("event", eventType); } }
public class class_name { public final void setTemplate() { template = new HashMap(); if (isEventExist()) { template.putAll(events.get(next)); // depends on control dependency: [if], data = [none] } template.put("event", eventType); } }
public class class_name { public static boolean validate(Controller controller, String userInputString) { String captchaKey = controller.getCookie(captchaName); if (validate(captchaKey, userInputString)) { controller.removeCookie(captchaName); return true; } return false; } }
public class class_name { public static boolean validate(Controller controller, String userInputString) { String captchaKey = controller.getCookie(captchaName); if (validate(captchaKey, userInputString)) { controller.removeCookie(captchaName); // depends on control dependency: [if], data = [none] return ...
public class class_name { public void publish(String message, Level level) { try { publish(new LogRecord(level, message)); } catch(BadLocationException e) { throw new RuntimeException("Error writing a log-like message.", e); } } }
public class class_name { public void publish(String message, Level level) { try { publish(new LogRecord(level, message)); // depends on control dependency: [try], data = [none] } catch(BadLocationException e) { throw new RuntimeException("Error writing a log-like message.", e); } // depend...
public class class_name { public AstNode parse( final String ddl, final String fileName ) throws ParsingException { CheckArg.isNotEmpty(ddl, "ddl"); RuntimeException firstException = null; // Go through each parser and score the DDL content final Map<DdlParser...
public class class_name { public AstNode parse( final String ddl, final String fileName ) throws ParsingException { CheckArg.isNotEmpty(ddl, "ddl"); RuntimeException firstException = null; // Go through each parser and score the DDL content final Map<DdlParser...
public class class_name { public void startServer() { server = new Server(httpPort); server.setHandler(wrapHandlers()); if (isWebSocketInClassPath()) { setupForWebSocket(); } try { server.start(); log().info("server started"); Runtime.getRuntime().addShutdownHook(new Thre...
public class class_name { public void startServer() { server = new Server(httpPort); server.setHandler(wrapHandlers()); if (isWebSocketInClassPath()) { setupForWebSocket(); // depends on control dependency: [if], data = [none] } try { server.start(); // depends on control dependency: ...
public class class_name { private IndexSession getSession(String index, String... columns) throws PersistenceException { IndexSession session = null; String sessionKey = index + Arrays.hashCode(columns); // both index and columns play a role in opening a session try { if (hsClient == null) { hsClient =...
public class class_name { private IndexSession getSession(String index, String... columns) throws PersistenceException { IndexSession session = null; String sessionKey = index + Arrays.hashCode(columns); // both index and columns play a role in opening a session try { if (hsClient == null) { hsClient =...
public class class_name { static void parseSkeleton(String skeleton, int[] skeletonFieldWidth) { int PATTERN_CHAR_BASE = 0x41; for ( int i = 0; i < skeleton.length(); ++i ) { ++skeletonFieldWidth[skeleton.charAt(i) - PATTERN_CHAR_BASE]; } } }
public class class_name { static void parseSkeleton(String skeleton, int[] skeletonFieldWidth) { int PATTERN_CHAR_BASE = 0x41; for ( int i = 0; i < skeleton.length(); ++i ) { ++skeletonFieldWidth[skeleton.charAt(i) - PATTERN_CHAR_BASE]; // depends on control dependency: [for], data = [i] ...
public class class_name { public static Subject getSubject() { if (SUBJECT.get() != null) { return SUBJECT.get().peek(); } else { AccessControlContext acc = AccessController.getContext(); if (System.getSecurityManager() == null) { return Subject.getSubject(acc); ...
public class class_name { public static Subject getSubject() { if (SUBJECT.get() != null) { return SUBJECT.get().peek(); // depends on control dependency: [if], data = [none] } else { AccessControlContext acc = AccessController.getContext(); if (System.getSecurityManager() == nul...
public class class_name { public void changeState(Class<? extends State> next) { Check.notNull(next); final State from = current; if (current != null) { last = current.getClass(); current.exit(); } if (!states.containsKey(next)) ...
public class class_name { public void changeState(Class<? extends State> next) { Check.notNull(next); final State from = current; if (current != null) { last = current.getClass(); // depends on control dependency: [if], data = [none] current.exit(); ...
public class class_name { @Override public DMatrixRMaj getT(DMatrixRMaj T ) { T = UtilDecompositons_DDRM.checkZeros(T,N,N); T.data[0] = QT.data[0]; for( int i = 1; i < N; i++ ) { T.set(i,i, QT.get(i,i)); double a = QT.get(i-1,i); T.set(i-1,i,a); ...
public class class_name { @Override public DMatrixRMaj getT(DMatrixRMaj T ) { T = UtilDecompositons_DDRM.checkZeros(T,N,N); T.data[0] = QT.data[0]; for( int i = 1; i < N; i++ ) { T.set(i,i, QT.get(i,i)); // depends on control dependency: [for], data = [i] double a ...
public class class_name { private boolean hasPrintedPackageIndex(PackageElement pkg) { for (PackageElement printedPkg : printedPackageHeaders) { if (utils.getPackageName(pkg).startsWith(utils.parsePackageName(printedPkg))) { return true; } } return false;...
public class class_name { private boolean hasPrintedPackageIndex(PackageElement pkg) { for (PackageElement printedPkg : printedPackageHeaders) { if (utils.getPackageName(pkg).startsWith(utils.parsePackageName(printedPkg))) { return true; // depends on control dependency: [if], data ...
public class class_name { public int intVal(String newVal, int curVal, String name) { int newInt; try { newInt = Integer.parseInt(newVal); } catch (Exception e) { valErrors.add(new IntValError(name, newVal)); newInt = curVal; } return newInt; } }
public class class_name { public int intVal(String newVal, int curVal, String name) { int newInt; try { newInt = Integer.parseInt(newVal); // depends on control dependency: [try], data = [none] } catch (Exception e) { valErrors.add(new IntValError(name, newVal)); newInt = curVal; } /...
public class class_name { private static boolean isCallTo(Node n, Node targetMethod) { if (!n.isCall()) { return false; } Node method = n.getFirstChild(); return method.isGetProp() && method.matchesQualifiedName(targetMethod); } }
public class class_name { private static boolean isCallTo(Node n, Node targetMethod) { if (!n.isCall()) { return false; // depends on control dependency: [if], data = [none] } Node method = n.getFirstChild(); return method.isGetProp() && method.matchesQualifiedName(targetMethod); } }
public class class_name { private static String annotateMessage(String message, int pos) { StringBuilder sb = new StringBuilder(message); sb.append('\n'); for (int i = 0; i < pos; i++) { sb.append('-'); } sb.append('^'); return sb.toString(); } }
public class class_name { private static String annotateMessage(String message, int pos) { StringBuilder sb = new StringBuilder(message); sb.append('\n'); for (int i = 0; i < pos; i++) { sb.append('-'); // depends on control dependency: [for], data = [none] } sb.append('^'); return sb.toS...
public class class_name { public static int getfd(FileDescriptor descriptor) { try { return field.getInt(descriptor); } catch (IllegalArgumentException | IllegalAccessException e) { log.warn("Unable to read fd field from java.io.FileDescriptor"); } return -1; } }
public class class_name { public static int getfd(FileDescriptor descriptor) { try { return field.getInt(descriptor); // depends on control dependency: [try], data = [none] } catch (IllegalArgumentException | IllegalAccessException e) { log.warn("Unable to read fd field from java.io.FileDescr...
public class class_name { public Set<K> getUnmatchedKeys() { stateLock.readLock().lock(); try { return new HashSet<K>(this.actualIndices.keySet()); } finally { stateLock.readLock().unlock(); } } }
public class class_name { public Set<K> getUnmatchedKeys() { stateLock.readLock().lock(); try { return new HashSet<K>(this.actualIndices.keySet()); // depends on control dependency: [try], data = [none] } finally { stateLock.readLock().unlock(); } } }
public class class_name { public void add(final D data) { this.container.add(data); // if the size of data is known add the value to the task size if (data instanceof ISizeable) { this.byteSize += ((ISizeable) data).byteSize(); } } }
public class class_name { public void add(final D data) { this.container.add(data); // if the size of data is known add the value to the task size if (data instanceof ISizeable) { this.byteSize += ((ISizeable) data).byteSize(); // depends on control dependency: [if], data = [none] } } }
public class class_name { protected int search(char[] chs, int offset, int tailLen) { if(tailLen == 0) { return -1; } CharNode cn = dic.head(chs[offset]); return search(cn, chs, offset, tailLen); } }
public class class_name { protected int search(char[] chs, int offset, int tailLen) { if(tailLen == 0) { return -1; // depends on control dependency: [if], data = [none] } CharNode cn = dic.head(chs[offset]); return search(cn, chs, offset, tailLen); } }
public class class_name { public java.util.List<String> getEgressOnlyInternetGatewayIds() { if (egressOnlyInternetGatewayIds == null) { egressOnlyInternetGatewayIds = new com.amazonaws.internal.SdkInternalList<String>(); } return egressOnlyInternetGatewayIds; } }
public class class_name { public java.util.List<String> getEgressOnlyInternetGatewayIds() { if (egressOnlyInternetGatewayIds == null) { egressOnlyInternetGatewayIds = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return...
public class class_name { private <T> List<T> readCSVByMapHandler(InputStream is, Class<T> clazz) throws IOException, Excel4JException { List<T> records = new ArrayList<>(); List<ExcelHeader> headers = Utils.getHeaderList(clazz); if (null == headers || headers.size() <= 0) { ...
public class class_name { private <T> List<T> readCSVByMapHandler(InputStream is, Class<T> clazz) throws IOException, Excel4JException { List<T> records = new ArrayList<>(); List<ExcelHeader> headers = Utils.getHeaderList(clazz); if (null == headers || headers.size() <= 0) { ...
public class class_name { public void addValue (int value) { if (value < _minValue) { _buckets[0]++; } else if (value >= _maxValue) { _buckets[_buckets.length-1]++; } else { _buckets[(value-_minValue)/_bucketWidth]++; } _count++; } }
public class class_name { public void addValue (int value) { if (value < _minValue) { _buckets[0]++; // depends on control dependency: [if], data = [none] } else if (value >= _maxValue) { _buckets[_buckets.length-1]++; // depends on control dependency: [if], data = [none] ...
public class class_name { public final void rollbackRemoteTransaction(GlobalTransaction gtx) { RpcManager rpcManager = cache.getRpcManager(); CommandsFactory factory = cache.getComponentRegistry().getCommandsFactory(); try { RollbackCommand rollbackCommand = factory.buildRollbackCommand(gtx)...
public class class_name { public final void rollbackRemoteTransaction(GlobalTransaction gtx) { RpcManager rpcManager = cache.getRpcManager(); CommandsFactory factory = cache.getComponentRegistry().getCommandsFactory(); try { RollbackCommand rollbackCommand = factory.buildRollbackCommand(gtx)...
public class class_name { public void setSettingsRef(String settingsRef) { if (GitTaskUtils.isNullOrBlankString(settingsRef)) { throw new BuildException("Can't set blank git settings reference."); } // no override if (this.setting...
public class class_name { public void setSettingsRef(String settingsRef) { if (GitTaskUtils.isNullOrBlankString(settingsRef)) { throw new BuildException("Can't set blank git settings reference."); } // no override if (this.setting...
public class class_name { protected StringBuilder processLine(String nextElement) { StringBuilder sb = new StringBuilder(nextElement.length() * 2); // this is for the worse case where all elements have to be escaped. for (int j = 0; j < nextElement.length(); j++) { char nextChar = nextElement.char...
public class class_name { protected StringBuilder processLine(String nextElement) { StringBuilder sb = new StringBuilder(nextElement.length() * 2); // this is for the worse case where all elements have to be escaped. for (int j = 0; j < nextElement.length(); j++) { char nextChar = nextElement.char...
public class class_name { public static void reverse(double[] array, int fromIndex, int toIndex) { checkNotNull(array); checkPositionIndexes(fromIndex, toIndex, array.length); for (int i = fromIndex, j = toIndex - 1; i < j; i++, j--) { double tmp = array[i]; array[i] = array[j]; array[j] ...
public class class_name { public static void reverse(double[] array, int fromIndex, int toIndex) { checkNotNull(array); checkPositionIndexes(fromIndex, toIndex, array.length); for (int i = fromIndex, j = toIndex - 1; i < j; i++, j--) { double tmp = array[i]; array[i] = array[j]; // depends on c...
public class class_name { public static Driver loadDriver(final URL jarUrl) { final URLClassLoader driverCl = URLClassLoader. newInstance(new URL[] { jarUrl }, null); final Iterator<Driver> iter = ServiceLoader. load(Driver.class, driverCl).iterator(); if (!iter.hasNex...
public class class_name { public static Driver loadDriver(final URL jarUrl) { final URLClassLoader driverCl = URLClassLoader. newInstance(new URL[] { jarUrl }, null); final Iterator<Driver> iter = ServiceLoader. load(Driver.class, driverCl).iterator(); if (!iter.hasNex...
public class class_name { static <A> int swap(final TreeNode<A> that, final TreeNode<A> other) { assert that != null; assert other != null; final Random random = RandomRegistry.getRandom(); final ISeq<TreeNode<A>> seq1 = that.breadthFirstStream() .collect(ISeq.toISeq()); final ISeq<TreeNode<A>> seq2 = ...
public class class_name { static <A> int swap(final TreeNode<A> that, final TreeNode<A> other) { assert that != null; assert other != null; final Random random = RandomRegistry.getRandom(); final ISeq<TreeNode<A>> seq1 = that.breadthFirstStream() .collect(ISeq.toISeq()); final ISeq<TreeNode<A>> seq2 = ...
public class class_name { public static synchronized List<Class< ? >> locateAll(final String serviceName) { if ( serviceName == null ) { throw new IllegalArgumentException( "serviceName cannot be null" ); } List<Class< ? >> classes = new ArrayList<Class< ? >>(); if ( factori...
public class class_name { public static synchronized List<Class< ? >> locateAll(final String serviceName) { if ( serviceName == null ) { throw new IllegalArgumentException( "serviceName cannot be null" ); } List<Class< ? >> classes = new ArrayList<Class< ? >>(); if ( factori...
public class class_name { @Override public String getSignature() { String signature = super.getSignature(); if (signature.indexOf('(') == -1) { return signature; } if (LOGGER.isDebugEnabled()) { LOGGER.debug("Condensing signature [{}]", signature); } int returnTypeSpace = signa...
public class class_name { @Override public String getSignature() { String signature = super.getSignature(); if (signature.indexOf('(') == -1) { return signature; // depends on control dependency: [if], data = [none] } if (LOGGER.isDebugEnabled()) { LOGGER.debug("Condensing signature [{}...
public class class_name { public ResultMatcher isObject() { return new AbstractResultMatcher(path, configuration) { public void doMatch(Object actual) { isPresent(actual); Node node = getNode(actual); if (node.getNodeType() != OBJECT) { ...
public class class_name { public ResultMatcher isObject() { return new AbstractResultMatcher(path, configuration) { public void doMatch(Object actual) { isPresent(actual); Node node = getNode(actual); if (node.getNodeType() != OBJECT) { ...
public class class_name { @SafeVarargs public static <T> T[] deleteAll(final T[] a, int... indices) { N.checkArgNotNull(a, "a"); if (N.isNullOrEmpty(indices)) { return a.clone(); } else if (indices.length == 1) { return delete(a, indices[0]); } ...
public class class_name { @SafeVarargs public static <T> T[] deleteAll(final T[] a, int... indices) { N.checkArgNotNull(a, "a"); if (N.isNullOrEmpty(indices)) { return a.clone(); // depends on control dependency: [if], data = [none] } else if (indices.length == 1) { ...
public class class_name { public static <U extends Aggregate> List<Batch<U>> getBatches(List<U> list, int partitionSize) { DataType c = null; for (val u:list) { for (val a:u.getArguments()) { // we'll be comparing to the first array if (c == null && a != null...
public class class_name { public static <U extends Aggregate> List<Batch<U>> getBatches(List<U> list, int partitionSize) { DataType c = null; for (val u:list) { for (val a:u.getArguments()) { // we'll be comparing to the first array if (c == null && a != null...
public class class_name { @Override public void storeCalendar(String name, Calendar calendar, boolean replaceExisting, boolean updateTriggers, JedisCluster jedis) throws JobPersistenceException { final String calendarHashKey = redisSchema.calendarHashKey(name); if (!replaceExisting && jedis.exists(...
public class class_name { @Override public void storeCalendar(String name, Calendar calendar, boolean replaceExisting, boolean updateTriggers, JedisCluster jedis) throws JobPersistenceException { final String calendarHashKey = redisSchema.calendarHashKey(name); if (!replaceExisting && jedis.exists(...
public class class_name { public static void checkPackageAccess(String name) { SecurityManager s = System.getSecurityManager(); if (s != null) { String cname = name.replace('/', '.'); if (cname.startsWith("[")) { int b = cname.lastIndexOf('[') + 2; ...
public class class_name { public static void checkPackageAccess(String name) { SecurityManager s = System.getSecurityManager(); if (s != null) { String cname = name.replace('/', '.'); if (cname.startsWith("[")) { int b = cname.lastIndexOf('[') + 2; ...
public class class_name { public Observable<ServiceResponse<Page<ResourceMetricInner>>> listWorkerPoolInstanceMetricsNextWithServiceResponseAsync(final String nextPageLink) { return listWorkerPoolInstanceMetricsNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<ResourceMetr...
public class class_name { public Observable<ServiceResponse<Page<ResourceMetricInner>>> listWorkerPoolInstanceMetricsNextWithServiceResponseAsync(final String nextPageLink) { return listWorkerPoolInstanceMetricsNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<ResourceMetr...
public class class_name { protected void pad() throws IOException { if (bytesWritten > 0) { int extra = (int) ( bytesWritten % TarConstants.DATA_BLOCK ); if (extra > 0) { write( new byte[TarConstants.DATA_BLOCK - extra] ); } } } }
public class class_name { protected void pad() throws IOException { if (bytesWritten > 0) { int extra = (int) ( bytesWritten % TarConstants.DATA_BLOCK ); if (extra > 0) { write( new byte[TarConstants.DATA_BLOCK - extra] ); // depends on control dependency: [if], d...
public class class_name { @Override public Prediction<DynamicAssignment, DynamicAssignment> getBestPredictions(DynamicAssignment dynamicInput, DynamicAssignment dynamicOutput, int numPredictions) { if (!factorGraph.getVariables().isValidAssignment(dynamicInput)) { // Cannot make predictions ret...
public class class_name { @Override public Prediction<DynamicAssignment, DynamicAssignment> getBestPredictions(DynamicAssignment dynamicInput, DynamicAssignment dynamicOutput, int numPredictions) { if (!factorGraph.getVariables().isValidAssignment(dynamicInput)) { // Cannot make predictions ret...
public class class_name { public PMSession registerSession(String sessionId) { synchronized (sessions) { if (sessionId != null) { if (!sessions.containsKey(sessionId)) { sessions.put(sessionId, new PMSession(sessionId)); } return g...
public class class_name { public PMSession registerSession(String sessionId) { synchronized (sessions) { if (sessionId != null) { if (!sessions.containsKey(sessionId)) { sessions.put(sessionId, new PMSession(sessionId)); // depends on control dependency: [if], da...
public class class_name { public void keyPressed(KeyEvent evt) { if (evt.getKeyCode() == KeyEvent.VK_ENTER) { boolean bDoTab = true; int iTextLength = m_control.getDocument().getLength(); if (((m_control.getSelectionStart() == 0) || (m_control.getSelectionStart()...
public class class_name { public void keyPressed(KeyEvent evt) { if (evt.getKeyCode() == KeyEvent.VK_ENTER) { boolean bDoTab = true; int iTextLength = m_control.getDocument().getLength(); if (((m_control.getSelectionStart() == 0) || (m_control.getSelectionStart()...
public class class_name { protected void openPopup() { if (m_cmsPopup == null) { m_cmsPopup = new CmsPopup(Messages.get().key(Messages.GUI_DIALOG_CATEGORIES_TITLE_0), CmsPopup.WIDE_WIDTH); m_cmsCategoryTree = new CmsCategoryTree(m_selected, 300, m_isSingleValue, m_resultList, m_collap...
public class class_name { protected void openPopup() { if (m_cmsPopup == null) { m_cmsPopup = new CmsPopup(Messages.get().key(Messages.GUI_DIALOG_CATEGORIES_TITLE_0), CmsPopup.WIDE_WIDTH); // depends on control dependency: [if], data = [none] m_cmsCategoryTree = new CmsCategoryTree(m_...
public class class_name { public void setTree(final TreeNode<ChartData> TREE) { if (null != tree) { getTreeNode().flattened().forEach(node -> node.removeAllTreeNodeEventListeners()); } tree.set(TREE); getTreeNode().flattened().forEach(node -> node.setOnTreeNodeEvent(e -> redraw())); pre...
public class class_name { public void setTree(final TreeNode<ChartData> TREE) { if (null != tree) { getTreeNode().flattened().forEach(node -> node.removeAllTreeNodeEventListeners()); } // depends on control dependency: [if], data = [none] tree.set(TREE); getTreeNode().flattened().forEach(node -...
public class class_name { public static GooglePaymentConfiguration fromJson(JSONObject json) { if (json == null) { json = new JSONObject(); } GooglePaymentConfiguration googlePaymentConfiguration = new GooglePaymentConfiguration(); googlePaymentConfiguration.mEnabled = json...
public class class_name { public static GooglePaymentConfiguration fromJson(JSONObject json) { if (json == null) { json = new JSONObject(); // depends on control dependency: [if], data = [none] } GooglePaymentConfiguration googlePaymentConfiguration = new GooglePaymentConfiguration...
public class class_name { public List<IGosuAnnotation> getAnnotations() { ArrayList<IGosuAnnotation> annotations = new ArrayList<IGosuAnnotation>(); if( _dfsGetter != null ) { annotations.addAll( _dfsGetter.getAnnotations() ); } if( _dfsSetter != null && !pureVarBasedProperty() ) { ...
public class class_name { public List<IGosuAnnotation> getAnnotations() { ArrayList<IGosuAnnotation> annotations = new ArrayList<IGosuAnnotation>(); if( _dfsGetter != null ) { annotations.addAll( _dfsGetter.getAnnotations() ); // depends on control dependency: [if], data = [( _dfsGetter] } if...
public class class_name { @Override public void paint(final RenderContext renderContext) { if (!DebugUtil.isDebugFeaturesEnabled() || !(renderContext instanceof WebXmlRenderContext)) { getBackingComponent().paint(renderContext); return; } AjaxOperation operation = AjaxHelper.getCurrentOperation(); if ...
public class class_name { @Override public void paint(final RenderContext renderContext) { if (!DebugUtil.isDebugFeaturesEnabled() || !(renderContext instanceof WebXmlRenderContext)) { getBackingComponent().paint(renderContext); // depends on control dependency: [if], data = [none] return; // depends on contr...
public class class_name { private void addRecords(HBaseDataWrapper columnWrapper, List<HBaseDataWrapper> embeddableData, List<HBaseDataWrapper> dataSet) { dataSet.add(columnWrapper); if (!embeddableData.isEmpty()) { dataSet.addAll(embeddableData); } } }
public class class_name { private void addRecords(HBaseDataWrapper columnWrapper, List<HBaseDataWrapper> embeddableData, List<HBaseDataWrapper> dataSet) { dataSet.add(columnWrapper); if (!embeddableData.isEmpty()) { dataSet.addAll(embeddableData); // depends on cont...
public class class_name { @Override public boolean controlEvents(EventModel eventModel) { if (level.compareTo(PresenceIndicatorLevel.WEAK) >= 0) { return present; } else //noinspection SimplifiableIfStatement if (level.compareTo(PresenceIndicatorLevel.WEAK) < 0 && mostVague....
public class class_name { @Override public boolean controlEvents(EventModel eventModel) { if (level.compareTo(PresenceIndicatorLevel.WEAK) >= 0) { return present; // depends on control dependency: [if], data = [none] } else //noinspection SimplifiableIfStatement if (level.co...
public class class_name { @Override public void addObject(DigitalObject obj) { // CURRENT TIME: // Get the current time to use for created dates on object // and object components (if they are not already there). Date nowUTC = new Date(); // DOReplicator replicator=(DORepli...
public class class_name { @Override public void addObject(DigitalObject obj) { // CURRENT TIME: // Get the current time to use for created dates on object // and object components (if they are not already there). Date nowUTC = new Date(); // DOReplicator replicator=(DORepli...
public class class_name { public final <I extends AI18nName<?, ?>, T extends AItemSpecifics<?, ?>> void updateForItemSpecificsList( final Map<String, Object> pReqVars, final List<T> pOutdGdSpList, final SettingsAdd pSettingsAdd, final GoodsInListLuv pGoodsInListLuv, final TradingSettings pTradingSett...
public class class_name { public final <I extends AI18nName<?, ?>, T extends AItemSpecifics<?, ?>> void updateForItemSpecificsList( final Map<String, Object> pReqVars, final List<T> pOutdGdSpList, final SettingsAdd pSettingsAdd, final GoodsInListLuv pGoodsInListLuv, final TradingSettings pTradingSett...
public class class_name { public void addRequestHandler(String host, String firstPath, RequestHandler requestHandler) { String key = hostPathToKey(host, firstPath); if (pathMap.containsKey(key)) { LOGGER.warning("Duplicate port:path map for " + port + ":" + key); } else { pathMap.put(key, requestH...
public class class_name { public void addRequestHandler(String host, String firstPath, RequestHandler requestHandler) { String key = hostPathToKey(host, firstPath); if (pathMap.containsKey(key)) { LOGGER.warning("Duplicate port:path map for " + port + ":" + key); // depends on control dependency: [if],...
public class class_name { public AbsAxis getPipeline() { assert getPipeStack().size() <= 1; if (getPipeStack().size() == 1 && mExprStack.size() == 1) { return getPipeStack().pop().getExpr(); } else { throw new IllegalStateException("Query was not build correctly."); ...
public class class_name { public AbsAxis getPipeline() { assert getPipeStack().size() <= 1; if (getPipeStack().size() == 1 && mExprStack.size() == 1) { return getPipeStack().pop().getExpr(); // depends on control dependency: [if], data = [none] } else { throw new Illeg...
public class class_name { private static Map<Long, Double> fillCalculateMetricTransform(Metric metric, String calculationType) { // Calculate min, max, avg, dev, or a percentile value Double result = calculateResult(metric, calculationType); // return a new time series with the constant values...
public class class_name { private static Map<Long, Double> fillCalculateMetricTransform(Metric metric, String calculationType) { // Calculate min, max, avg, dev, or a percentile value Double result = calculateResult(metric, calculationType); // return a new time series with the constant values...
public class class_name { public static long[] allLongs(Cursor cursor, boolean close) { long[] l = EMPTY_LONG_ARRAY; if (cursor.moveToFirst()) { l = new long[cursor.getCount()]; do { l[cursor.getPosition()] = cursor.getLong(0); } while (cursor.moveToN...
public class class_name { public static long[] allLongs(Cursor cursor, boolean close) { long[] l = EMPTY_LONG_ARRAY; if (cursor.moveToFirst()) { l = new long[cursor.getCount()]; // depends on control dependency: [if], data = [none] do { l[cursor.getPosition()] = ...
public class class_name { public PartnerLogData findEntry(RecoveryWrapper rw) { if (tc.isEntryEnabled()) Tr.entry(tc, "findEntry", rw); PartnerLogData entry; _pltWriteLock.lock(); try { // Search the partner log table... for (PartnerLogData pld : _...
public class class_name { public PartnerLogData findEntry(RecoveryWrapper rw) { if (tc.isEntryEnabled()) Tr.entry(tc, "findEntry", rw); PartnerLogData entry; _pltWriteLock.lock(); try { // Search the partner log table... for (PartnerLogData pld : _...
public class class_name { private String stripSuffixes(String word) { //integer variables 1 is positive, 0 undecided, -1 negative equiverlent of pun vars positive undecided negative int ruleok = 0; int Continue = 0; //integer varables int pll = 0; //position of last letter ...
public class class_name { private String stripSuffixes(String word) { //integer variables 1 is positive, 0 undecided, -1 negative equiverlent of pun vars positive undecided negative int ruleok = 0; int Continue = 0; //integer varables int pll = 0; //position of last letter ...
public class class_name { public static BufferedReader createBufferedReader(InputStream stream) { try { return new BufferedReader(new InputStreamReader(stream, "UTF-8")); } catch(UnsupportedEncodingException unused) { throw new BugError("Unsupported UTF-8 ecoding."); } } }
public class class_name { public static BufferedReader createBufferedReader(InputStream stream) { try { return new BufferedReader(new InputStreamReader(stream, "UTF-8")); // depends on control dependency: [try], data = [none] } catch(UnsupportedEncodingException unused) { throw new BugE...
public class class_name { public ClassLoader execute(ClassLoader cl) { //PK83186 start newClassLoader = cl; if (threadContextAccessor.isPrivileged()) { cl = (ClassLoader) run(); } else { cl = (ClassLoader) AccessController.doPrivileged(this); } ...
public class class_name { public ClassLoader execute(ClassLoader cl) { //PK83186 start newClassLoader = cl; if (threadContextAccessor.isPrivileged()) { cl = (ClassLoader) run(); // depends on control dependency: [if], data = [none] } else { cl = (ClassLoader) A...
public class class_name { public void setNextDate(final Date pValue, final String pPattern, final boolean pUseBcd) { // create date formatter SimpleDateFormat sdf = new SimpleDateFormat(pPattern); String value = sdf.format(pValue); if (pUseBcd) { setNextHexaString(value, value.length() * 4); } els...
public class class_name { public void setNextDate(final Date pValue, final String pPattern, final boolean pUseBcd) { // create date formatter SimpleDateFormat sdf = new SimpleDateFormat(pPattern); String value = sdf.format(pValue); if (pUseBcd) { setNextHexaString(value, value.length() * 4); // depe...