code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public void update() { if (settings != null && getWidth() > 0 && getHeight() > 0) { // Updating finder area rectangle GravityUtils.getMovementAreaPosition(settings, tmpRect); rect.set(tmpRect); rect.offset(getPaddingLeft(), getPaddingTop...
public class class_name { public void update() { if (settings != null && getWidth() > 0 && getHeight() > 0) { // Updating finder area rectangle GravityUtils.getMovementAreaPosition(settings, tmpRect); // depends on control dependency: [if], data = [(settings] rect.set(tmpRec...
public class class_name { public static Vector2D_F64 transform( Affine2D_F64 se, Vector2D_F64 orig, Vector2D_F64 result ) { if( result == null ) { result = new Vector2D_F64(); } // copy the values so that no errors happen if orig and result are the same instance double x = orig.x; double y = orig.y; ...
public class class_name { public static Vector2D_F64 transform( Affine2D_F64 se, Vector2D_F64 orig, Vector2D_F64 result ) { if( result == null ) { result = new Vector2D_F64(); // depends on control dependency: [if], data = [none] } // copy the values so that no errors happen if orig and result are the same ...
public class class_name { static DataBlock[] getDataBlocks(byte[] rawCodewords, Version version, ErrorCorrectionLevel ecLevel) { if (rawCodewords.length != version.getTotalCodewords()) { throw new IllegalArgumentException(); } //...
public class class_name { static DataBlock[] getDataBlocks(byte[] rawCodewords, Version version, ErrorCorrectionLevel ecLevel) { if (rawCodewords.length != version.getTotalCodewords()) { throw new IllegalArgumentException(); } //...
public class class_name { public BareJid getOwnJid() { if (ownJid == null && connection().isAuthenticated()) { ownJid = connection().getUser().asBareJid(); } return ownJid; } }
public class class_name { public BareJid getOwnJid() { if (ownJid == null && connection().isAuthenticated()) { ownJid = connection().getUser().asBareJid(); // depends on control dependency: [if], data = [none] } return ownJid; } }
public class class_name { @Override public void setValue(Object value) { FacesContext facesContext = getFacesContext(); if (facesContext != null && facesContext.isProjectStage(ProjectStage.Development)) { // extended debug-info when in Development mode _createFie...
public class class_name { @Override public void setValue(Object value) { FacesContext facesContext = getFacesContext(); if (facesContext != null && facesContext.isProjectStage(ProjectStage.Development)) { // extended debug-info when in Development mode _createFie...
public class class_name { public static boolean hasPossibleStaticMethod(ClassNode cNode, String name, Expression arguments, boolean trySpread) { int count = 0; boolean foundSpread = false; if (arguments instanceof TupleExpression) { TupleExpression tuple = (TupleExpression) argumen...
public class class_name { public static boolean hasPossibleStaticMethod(ClassNode cNode, String name, Expression arguments, boolean trySpread) { int count = 0; boolean foundSpread = false; if (arguments instanceof TupleExpression) { TupleExpression tuple = (TupleExpression) argumen...
public class class_name { public void setPendingRequests(java.util.Collection<Workspace> pendingRequests) { if (pendingRequests == null) { this.pendingRequests = null; return; } this.pendingRequests = new com.amazonaws.internal.SdkInternalList<Workspace>(pendingRequests...
public class class_name { public void setPendingRequests(java.util.Collection<Workspace> pendingRequests) { if (pendingRequests == null) { this.pendingRequests = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { private InternalCacheEntry<WrappedBytes, WrappedBytes> performPut(long bucketHeadAddress, long actualAddress, long newAddress, WrappedBytes key, boolean requireReturn) { // Have to start new linked node list if (bucketHeadAddress == 0) { memoryLookup.putMemoryAdd...
public class class_name { private InternalCacheEntry<WrappedBytes, WrappedBytes> performPut(long bucketHeadAddress, long actualAddress, long newAddress, WrappedBytes key, boolean requireReturn) { // Have to start new linked node list if (bucketHeadAddress == 0) { memoryLookup.putMemoryAdd...
public class class_name { public static void printWarnings(Connection conn, PrintWriter pw) { if (conn != null) { try { printStackTrace(conn.getWarnings(), pw); } catch (SQLException e) { printStackTrace(e, pw); } } } }
public class class_name { public static void printWarnings(Connection conn, PrintWriter pw) { if (conn != null) { try { printStackTrace(conn.getWarnings(), pw); // depends on control dependency: [try], data = [none] } catch (SQLException e) { printStackTr...
public class class_name { public void setSupportedFeatureNames(java.util.Collection<String> supportedFeatureNames) { if (supportedFeatureNames == null) { this.supportedFeatureNames = null; return; } this.supportedFeatureNames = new com.amazonaws.internal.SdkInternalList...
public class class_name { public void setSupportedFeatureNames(java.util.Collection<String> supportedFeatureNames) { if (supportedFeatureNames == null) { this.supportedFeatureNames = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [i...
public class class_name { public Map buildSortQueryParamsMap(String sortExpression) { SortModel sortModel = getDataGridState().getSortModel(); SortStrategy sortStrategy = sortModel.getSortStrategy(); List currSorts = sortModel.getSorts(); ArrayList newSorts = new ArrayList(); ...
public class class_name { public Map buildSortQueryParamsMap(String sortExpression) { SortModel sortModel = getDataGridState().getSortModel(); SortStrategy sortStrategy = sortModel.getSortStrategy(); List currSorts = sortModel.getSorts(); ArrayList newSorts = new ArrayList(); ...
public class class_name { public void addDatatype(String pluralDatatype, String datatype) { pluralDatatype = Utils.noSpaces(Utils.stripAndTrim(pluralDatatype, " "), "-"); datatype = Utils.noSpaces(Utils.stripAndTrim(datatype, " "), "-"); if (StringUtils.isBlank(pluralDatatype) || StringUtils.isBlank(datatype)) {...
public class class_name { public void addDatatype(String pluralDatatype, String datatype) { pluralDatatype = Utils.noSpaces(Utils.stripAndTrim(pluralDatatype, " "), "-"); datatype = Utils.noSpaces(Utils.stripAndTrim(datatype, " "), "-"); if (StringUtils.isBlank(pluralDatatype) || StringUtils.isBlank(datatype)) {...
public class class_name { public void hiccup() { // If termination is already under way do nothing. if (state != State.ACTIVE) { return; } // We'll drop the pointer to the inpipe. From now on, the peer is // responsible for deallocating it. inpipe = n...
public class class_name { public void hiccup() { // If termination is already under way do nothing. if (state != State.ACTIVE) { return; // depends on control dependency: [if], data = [none] } // We'll drop the pointer to the inpipe. From now on, the peer is /...
public class class_name { public Map<String, Reflector> fields() { Map<String, Reflector> result; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { result = new ArrayMap<>(); } else { result = new HashMap<>(); } Class<?> typ...
public class class_name { public Map<String, Reflector> fields() { Map<String, Reflector> result; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { result = new ArrayMap<>(); // depends on control dependency: [if], data = [none] } else { re...
public class class_name { @Override public EClass getIfcPreDefinedCurveFont() { if (ifcPreDefinedCurveFontEClass == null) { ifcPreDefinedCurveFontEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(441); } return ifcPreDefinedCurveFontEClass; } }
public class class_name { @Override public EClass getIfcPreDefinedCurveFont() { if (ifcPreDefinedCurveFontEClass == null) { ifcPreDefinedCurveFontEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(441); // depends on control dependency: [if], data = [no...
public class class_name { public static void sleep(long length, TimeUnit unit) { try { unit.sleep(length); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } }
public class class_name { public static void sleep(long length, TimeUnit unit) { try { unit.sleep(length); // depends on control dependency: [try], data = [none] } catch (InterruptedException e) { Thread.currentThread().interrupt(); } // depends on control dependency: [catch], data = [none] } }
public class class_name { private Token unwindTo(int targetIndent, Token copyFrom) { assert dentsBuffer.isEmpty() : dentsBuffer; dentsBuffer.add(createToken(nlToken, copyFrom)); // To make things easier, we'll queue up ALL of the dedents, and then pop off the first one. // For example, here's how some ...
public class class_name { private Token unwindTo(int targetIndent, Token copyFrom) { assert dentsBuffer.isEmpty() : dentsBuffer; dentsBuffer.add(createToken(nlToken, copyFrom)); // To make things easier, we'll queue up ALL of the dedents, and then pop off the first one. // For example, here's how some ...
public class class_name { private boolean isLongOption(String token) { if (!token.startsWith("-") || token.length() == 1) { return false; } int pos = token.indexOf("="); String t = pos == -1 ? token : token.substring(0, pos); if (!options.getMatchingOpt...
public class class_name { private boolean isLongOption(String token) { if (!token.startsWith("-") || token.length() == 1) { return false; // depends on control dependency: [if], data = [none] } int pos = token.indexOf("="); String t = pos == -1 ? token : token.s...
public class class_name { public static String getSafeFileName(String orig) { if (orig != null) { return orig.replaceAll("[^0-9A-Za-z-]", "_"); } else { return UUID.randomUUID().toString(); } } }
public class class_name { public static String getSafeFileName(String orig) { if (orig != null) { return orig.replaceAll("[^0-9A-Za-z-]", "_"); // depends on control dependency: [if], data = [none] } else { return UUID.randomUUID().toString(); // depends on control dependency: [if], d...
public class class_name { private void authorize() { Map<String, String> param = new HashMap<>(); param.put("clientId", clientId); param.put("authorizeToken", authorizeToken); String result = HttpUtils.sendPost(authorizeUrl, param); Map<String, String> resultMap = parseHttpKvStr...
public class class_name { private void authorize() { Map<String, String> param = new HashMap<>(); param.put("clientId", clientId); param.put("authorizeToken", authorizeToken); String result = HttpUtils.sendPost(authorizeUrl, param); Map<String, String> resultMap = parseHttpKvStr...
public class class_name { public static <K, V> V getOrDefault(final Map<K, V> map, final K key, final Function<K, V> supplier) { V value = map.get(key); if (value == null) { value = supplier.apply(key); map.put(key, value); } return value; } }
public class class_name { public static <K, V> V getOrDefault(final Map<K, V> map, final K key, final Function<K, V> supplier) { V value = map.get(key); if (value == null) { value = supplier.apply(key); // depends on control dependency: [if], data = [none] map.put(ke...
public class class_name { @Override public LoadBalancerFilter and(LoadBalancerFilter otherFilter) { checkNotNull(otherFilter, "Other filter must be not a null"); if (evaluation instanceof SingleFilterEvaluation && otherFilter.evaluation instanceof SingleFilterEvaluation) { ...
public class class_name { @Override public LoadBalancerFilter and(LoadBalancerFilter otherFilter) { checkNotNull(otherFilter, "Other filter must be not a null"); if (evaluation instanceof SingleFilterEvaluation && otherFilter.evaluation instanceof SingleFilterEvaluation) { ...
public class class_name { @Override public void solve(DefaultSolverScope<Solution_> solverScope) { CustomPhaseScope<Solution_> phaseScope = new CustomPhaseScope<>(solverScope); phaseStarted(phaseScope); CustomStepScope<Solution_> stepScope = new CustomStepScope<>(phaseScope); for (...
public class class_name { @Override public void solve(DefaultSolverScope<Solution_> solverScope) { CustomPhaseScope<Solution_> phaseScope = new CustomPhaseScope<>(solverScope); phaseStarted(phaseScope); CustomStepScope<Solution_> stepScope = new CustomStepScope<>(phaseScope); for (...
public class class_name { private List<Float> interpolateDownwards(float max, int steps) { List<Float> result = new ArrayList<Float>(); if (max > 0) { // We try to generate a "nice" descending list of non-negative floats // where the step size is bigger for bigger "max" va...
public class class_name { private List<Float> interpolateDownwards(float max, int steps) { List<Float> result = new ArrayList<Float>(); if (max > 0) { // We try to generate a "nice" descending list of non-negative floats // where the step size is bigger for bigger "max" va...
public class class_name { @Override public String getProperty(final String _name) { String value = super.getProperty(_name); if (value == null && getParentType() != null) { value = getParentType().getProperty(_name); } return value; } }
public class class_name { @Override public String getProperty(final String _name) { String value = super.getProperty(_name); if (value == null && getParentType() != null) { value = getParentType().getProperty(_name); // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public void generateWriteProperty(Builder methodBuilder, String editorName, TypeName beanClass, String beanName, PrefsProperty property) { if (nullable) { methodBuilder.beginControlFlow("if ($L!=null) ", getter(beanName, beanClass, property)); } methodBuilder.addCode("$...
public class class_name { @Override public void generateWriteProperty(Builder methodBuilder, String editorName, TypeName beanClass, String beanName, PrefsProperty property) { if (nullable) { methodBuilder.beginControlFlow("if ($L!=null) ", getter(beanName, beanClass, property)); // depends on control dependen...
public class class_name { private long getDashboardRefreshRate(final DashboardConfig selectedDashboardConfig) { if (selectedDashboardConfig == null) { return DEFAULT_DASHBOARD_REFRESH_RATE; } return TimeUnit.SECONDS.toMillis(selectedDashboardConfig.getRefresh()); } }
public class class_name { private long getDashboardRefreshRate(final DashboardConfig selectedDashboardConfig) { if (selectedDashboardConfig == null) { return DEFAULT_DASHBOARD_REFRESH_RATE; // depends on control dependency: [if], data = [none] } return TimeUnit.SECONDS.toMillis(selectedDashboardConfig.getRef...
public class class_name { @Override public final CharSequence getStringValueCS() { String mValue = ""; try { final INodeReadTrx rtx = createRtxAndMove(); switch (nodeKind) { case ROOT: case ELEMENT: mValue = expandString(); ...
public class class_name { @Override public final CharSequence getStringValueCS() { String mValue = ""; try { final INodeReadTrx rtx = createRtxAndMove(); switch (nodeKind) { case ROOT: case ELEMENT: mValue = expandString(); ...
public class class_name { public static Date convertTimeToDate(Date time) { if (time != null) { DataConverters.initGlobals(); Calendar calendar = DataConverters.gCalendar; calendar.setTime(time); calendar.set(Calendar.HOUR_OF_DAY, 0); cale...
public class class_name { public static Date convertTimeToDate(Date time) { if (time != null) { DataConverters.initGlobals(); // depends on control dependency: [if], data = [none] Calendar calendar = DataConverters.gCalendar; calendar.setTime(time); // depends on...
public class class_name { @Nullable public TransitionValues getTransitionValues(@NonNull View view, boolean start) { if (mParent != null) { return mParent.getTransitionValues(view, start); } TransitionValuesMaps valuesMaps = start ? mStartValues : mEndValues; return valu...
public class class_name { @Nullable public TransitionValues getTransitionValues(@NonNull View view, boolean start) { if (mParent != null) { return mParent.getTransitionValues(view, start); // depends on control dependency: [if], data = [none] } TransitionValuesMaps valuesMaps = ...
public class class_name { public static double quantile(double val, double mu, double sigma, double k) { if(val < 0.0 || val > 1.0) { return Double.NaN; } if(k < 0) { return mu + sigma * Math.max((1. - FastMath.pow(-FastMath.log(val), k)) / k, 1. / k); } else if(k > 0) { return mu...
public class class_name { public static double quantile(double val, double mu, double sigma, double k) { if(val < 0.0 || val > 1.0) { return Double.NaN; // depends on control dependency: [if], data = [none] } if(k < 0) { return mu + sigma * Math.max((1. - FastMath.pow(-FastMath.log(val), k)) / ...
public class class_name { protected JsonResult login() { T authToken; authToken = loginViaBasicAuth(servletRequest); if (authToken == null) { authToken = loginViaRequestParams(servletRequest); } if (authToken == null) { log.warn("Login failed."); return JsonResult.of(HttpStatus.error401().unauth...
public class class_name { protected JsonResult login() { T authToken; authToken = loginViaBasicAuth(servletRequest); if (authToken == null) { authToken = loginViaRequestParams(servletRequest); // depends on control dependency: [if], data = [none] } if (authToken == null) { log.warn("Login failed.");...
public class class_name { public static CommandResult execCommand(String[] commands, boolean isRoot, boolean isNeedResultMsg) { int result = -1; if (commands == null || commands.length == 0) { return new CommandResult(result, null, null); } Process process = null; B...
public class class_name { public static CommandResult execCommand(String[] commands, boolean isRoot, boolean isNeedResultMsg) { int result = -1; if (commands == null || commands.length == 0) { return new CommandResult(result, null, null); // depends on control dependency: [if], data = [none...
public class class_name { @Override protected PathHessian buildParentPath(QueryBuilder builder) { PathMapHessian pathMap = _parent.buildPathMap(builder); PathHessian subPath = pathMap.get(_name); if (subPath == null) { PathMapHessian pathMapSelf = buildPathMap(builder); sub...
public class class_name { @Override protected PathHessian buildParentPath(QueryBuilder builder) { PathMapHessian pathMap = _parent.buildPathMap(builder); PathHessian subPath = pathMap.get(_name); if (subPath == null) { PathMapHessian pathMapSelf = buildPathMap(builder); sub...
public class class_name { public double calculatePathProbability(SimulationPath path) { Connection connection = null; PreparedStatement pstmt = null; ResultSet rs = null; try { connection = bamDataSource.getConnection(); ...
public class class_name { public double calculatePathProbability(SimulationPath path) { Connection connection = null; PreparedStatement pstmt = null; ResultSet rs = null; try { connection = bamDataSource.getConnection(); // depends on control d...
public class class_name { public void update(CmsPublishedResource res) { try { update(res.getStructureId(), res.getRootPath(), res.getType(), res.getState()); } catch (CmsRuntimeException e) { // may happen during import of org.opencms.base module LOG.warn(e.g...
public class class_name { public void update(CmsPublishedResource res) { try { update(res.getStructureId(), res.getRootPath(), res.getType(), res.getState()); // depends on control dependency: [try], data = [none] } catch (CmsRuntimeException e) { // may happen during impo...
public class class_name { protected final void run(Block block) { if (stopping) { return; } final Authentication auth = Jenkins.getAuthentication(); task = GeneralNonBlockingStepExecutionUtils.getExecutorService().submit(() -> { threadName = Thread.currentThread(...
public class class_name { protected final void run(Block block) { if (stopping) { return; // depends on control dependency: [if], data = [none] } final Authentication auth = Jenkins.getAuthentication(); task = GeneralNonBlockingStepExecutionUtils.getExecutorService().submit(...
public class class_name { public StreamRecord<T> getStreamRecord() { StreamRecord<T> streamRecord = new StreamRecord<>(value); if (hasTimestamp) { streamRecord.setTimestamp(timestamp); } return streamRecord; } }
public class class_name { public StreamRecord<T> getStreamRecord() { StreamRecord<T> streamRecord = new StreamRecord<>(value); if (hasTimestamp) { streamRecord.setTimestamp(timestamp); // depends on control dependency: [if], data = [none] } return streamRecord; } }
public class class_name { public void marshall(PutLoggingConfigurationRequest putLoggingConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (putLoggingConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(PutLoggingConfigurationRequest putLoggingConfigurationRequest, ProtocolMarshaller protocolMarshaller) { if (putLoggingConfigurationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public java.util.List<String> getTaskArns() { if (taskArns == null) { taskArns = new com.amazonaws.internal.SdkInternalList<String>(); } return taskArns; } }
public class class_name { public java.util.List<String> getTaskArns() { if (taskArns == null) { taskArns = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return taskArns; } }
public class class_name { public static boolean writeToFile(Bitmap bmp, String fileName) { if (bmp == null || StringUtils.isNullOrEmpty(fileName)) return false; FileOutputStream fos = null; try { fos = new FileOutputStream(fileName); bmp.compress(CompressForm...
public class class_name { public static boolean writeToFile(Bitmap bmp, String fileName) { if (bmp == null || StringUtils.isNullOrEmpty(fileName)) return false; FileOutputStream fos = null; try { fos = new FileOutputStream(fileName); // depends on control dependency: [tr...
public class class_name { private String getHalfMatrixString(Permutation permutation) { StringBuilder builder = new StringBuilder(permutation.size()); int size = permutation.size(); for (int indexI = 0; indexI < size - 1; indexI++) { for (int indexJ = indexI + 1; indexJ < size; inde...
public class class_name { private String getHalfMatrixString(Permutation permutation) { StringBuilder builder = new StringBuilder(permutation.size()); int size = permutation.size(); for (int indexI = 0; indexI < size - 1; indexI++) { for (int indexJ = indexI + 1; indexJ < size; inde...
public class class_name { public ConfusionMatrix getTransposedMatrix() { ConfusionMatrix result = new ConfusionMatrix(); for (Map.Entry<String, Map<String, Integer>> gold : this.map.entrySet()) { for (Map.Entry<String, Integer> predicted : gold.getValue().entrySet()) { ...
public class class_name { public ConfusionMatrix getTransposedMatrix() { ConfusionMatrix result = new ConfusionMatrix(); for (Map.Entry<String, Map<String, Integer>> gold : this.map.entrySet()) { for (Map.Entry<String, Integer> predicted : gold.getValue().entrySet()) { ...
public class class_name { public void marshall(WorkflowTypeInfo workflowTypeInfo, ProtocolMarshaller protocolMarshaller) { if (workflowTypeInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(work...
public class class_name { public void marshall(WorkflowTypeInfo workflowTypeInfo, ProtocolMarshaller protocolMarshaller) { if (workflowTypeInfo == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(work...
public class class_name { public Observable<ServiceResponse<Page<JobExecutionInner>>> listByStepWithServiceResponseAsync(final String resourceGroupName, final String serverName, final String jobAgentName, final String jobName, final UUID jobExecutionId, final String stepName) { return listByStepSinglePageAsync...
public class class_name { public Observable<ServiceResponse<Page<JobExecutionInner>>> listByStepWithServiceResponseAsync(final String resourceGroupName, final String serverName, final String jobAgentName, final String jobName, final UUID jobExecutionId, final String stepName) { return listByStepSinglePageAsync...
public class class_name { @Nonnull public static Homoglyph build (@Nonnull @WillClose final Reader aReader) throws IOException { ValueEnforcer.notNull (aReader, "reader"); try (final NonBlockingBufferedReader aBR = new NonBlockingBufferedReader (aReader)) { final ICommonsList <IntSet> aList = new...
public class class_name { @Nonnull public static Homoglyph build (@Nonnull @WillClose final Reader aReader) throws IOException { ValueEnforcer.notNull (aReader, "reader"); try (final NonBlockingBufferedReader aBR = new NonBlockingBufferedReader (aReader)) { final ICommonsList <IntSet> aList = new...
public class class_name { public static void sort(double[] doubleArray) { boolean swapped = true; while(swapped) { swapped = false; for(int i = 0; i < (doubleArray.length - 1 ); i++) { if(doubleArray[i] > doubleArray[i + 1]) { ...
public class class_name { public static void sort(double[] doubleArray) { boolean swapped = true; while(swapped) { swapped = false; // depends on control dependency: [while], data = [none] for(int i = 0; i < (doubleArray.length - 1 ); i++) { ...
public class class_name { public void mapNodeToCliqueFamily(OpenBitSet[] varNodeToCliques, JunctionTreeClique[] jtNodes) { for ( int i = 0; i < varNodeToCliques.length; i++ ) { GraphNode<BayesVariable> varNode = graph.getNode( i ); // Get OpenBitSet for parents OpenBitSet p...
public class class_name { public void mapNodeToCliqueFamily(OpenBitSet[] varNodeToCliques, JunctionTreeClique[] jtNodes) { for ( int i = 0; i < varNodeToCliques.length; i++ ) { GraphNode<BayesVariable> varNode = graph.getNode( i ); // Get OpenBitSet for parents OpenBitSet p...
public class class_name { public void marshall(PortProbeDetail portProbeDetail, ProtocolMarshaller protocolMarshaller) { if (portProbeDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(portPro...
public class class_name { public void marshall(PortProbeDetail portProbeDetail, ProtocolMarshaller protocolMarshaller) { if (portProbeDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(portPro...
public class class_name { public Observable<ServiceResponse<KeyBundle>> updateKeyWithServiceResponseAsync(String vaultBaseUrl, String keyName, String keyVersion, List<JsonWebKeyOperation> keyOps, KeyAttributes keyAttributes, Map<String, String> tags) { if (vaultBaseUrl == null) { throw new IllegalA...
public class class_name { public Observable<ServiceResponse<KeyBundle>> updateKeyWithServiceResponseAsync(String vaultBaseUrl, String keyName, String keyVersion, List<JsonWebKeyOperation> keyOps, KeyAttributes keyAttributes, Map<String, String> tags) { if (vaultBaseUrl == null) { throw new IllegalA...
public class class_name { public RedBlackTreeNode<Key, Value> floorNode(Key key) { if (isEmpty()) { return null; } RedBlackTreeNode<Key, Value> x = floor(root, key); if (x == null) { return null; } else { return x; } } }
public class class_name { public RedBlackTreeNode<Key, Value> floorNode(Key key) { if (isEmpty()) { return null; // depends on control dependency: [if], data = [none] } RedBlackTreeNode<Key, Value> x = floor(root, key); if (x == null) { return null; // depends on control dependency: [if], data = [none] ...
public class class_name { private static Set<String> findFiles(File sourceFolder, File baseFile) { Set<String> retval = new HashSet<String>(); if (!sourceFolder.exists() || sourceFolder.isHidden() || !sourceFolder.isDirectory() || !sourceFolder.canRead() || isGitMetaDataFolder(sourceFolder)) { return re...
public class class_name { private static Set<String> findFiles(File sourceFolder, File baseFile) { Set<String> retval = new HashSet<String>(); if (!sourceFolder.exists() || sourceFolder.isHidden() || !sourceFolder.isDirectory() || !sourceFolder.canRead() || isGitMetaDataFolder(sourceFolder)) { return re...
public class class_name { private void processMarkdown(List<MarkdownDTO> markdownDTOs, int options, final Map<String, Attributes> attributesMap) throws MojoExecutionException { getLog().debug("Process Markdown"); getLog().debug("inputEncoding: '" + getInputEncoding() + "', outputEncoding: '" + getOutpu...
public class class_name { private void processMarkdown(List<MarkdownDTO> markdownDTOs, int options, final Map<String, Attributes> attributesMap) throws MojoExecutionException { getLog().debug("Process Markdown"); getLog().debug("inputEncoding: '" + getInputEncoding() + "', outputEncoding: '" + getOutpu...
public class class_name { public List<ExpandedAnnotation> expand(final Annotation targetAnno) { Objects.requireNonNull(targetAnno); final List<ExpandedAnnotation> expandedList = new ArrayList<>(); if(isRepeated(targetAnno)) { // 繰り返しのアノテーションの場合、要素を抽出する。 ...
public class class_name { public List<ExpandedAnnotation> expand(final Annotation targetAnno) { Objects.requireNonNull(targetAnno); final List<ExpandedAnnotation> expandedList = new ArrayList<>(); if(isRepeated(targetAnno)) { // 繰り返しのアノテーションの場合、要素を抽出する。 ...
public class class_name { private String[] halfMatchI(String longtext, String shorttext, int i) { // Start with a 1/4 length substring at position i as a seed. String seed = longtext.substring(i, i + longtext.length() / 4); int j = -1; String best_common = ""; String best_longte...
public class class_name { private String[] halfMatchI(String longtext, String shorttext, int i) { // Start with a 1/4 length substring at position i as a seed. String seed = longtext.substring(i, i + longtext.length() / 4); int j = -1; String best_common = ""; String best_longte...
public class class_name { public static void setBackgroundResource(EfficientCacheView cacheView, int viewId, @DrawableRes int resid) { View view = cacheView.findViewByIdEfficient(viewId); if (view != null) { view.setBackgroundResource(resid); } } }
public class class_name { public static void setBackgroundResource(EfficientCacheView cacheView, int viewId, @DrawableRes int resid) { View view = cacheView.findViewByIdEfficient(viewId); if (view != null) { view.setBackgroundResource(resid); // depends on control dependency: [i...
public class class_name { public long nextLong(int radix) { // Check cached result if ((typeCache != null) && (typeCache instanceof Long) && this.radix == radix) { long val = ((Long)typeCache).longValue(); useTypeCache(); return val; } set...
public class class_name { public long nextLong(int radix) { // Check cached result if ((typeCache != null) && (typeCache instanceof Long) && this.radix == radix) { long val = ((Long)typeCache).longValue(); useTypeCache(); // depends on control dependency: [if], data ...
public class class_name { private boolean isParentFirst(String resourceName) { // default to the global setting and then see // if this class belongs to a package which has been // designated to use a specific loader first // (this one or the parent one) // TODO shouldn't this ...
public class class_name { private boolean isParentFirst(String resourceName) { // default to the global setting and then see // if this class belongs to a package which has been // designated to use a specific loader first // (this one or the parent one) // TODO shouldn't this ...
public class class_name { public KeyStore getKeyStore(String name, String type, String provider, String fileName, String password, boolean create, SSLConfig sslConfig) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getKeyStore", new Object[] { name...
public class class_name { public KeyStore getKeyStore(String name, String type, String provider, String fileName, String password, boolean create, SSLConfig sslConfig) throws Exception { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getKeyStore", new Object[] { name...
public class class_name { protected byte[] getThriftColumnValue(Object e, Attribute attribute) { byte[] value = null; Field field = (Field) ((Attribute) attribute).getJavaMember(); try { if (attribute != null && field.get(e) != null) { if (Ca...
public class class_name { protected byte[] getThriftColumnValue(Object e, Attribute attribute) { byte[] value = null; Field field = (Field) ((Attribute) attribute).getJavaMember(); try { if (attribute != null && field.get(e) != null) { if (Ca...
public class class_name { public final List<Form> searchAndConvertHitsToFormWithAllFields( QueryBuilder qbParam, String indexParam, int offsetParam, int limitParam, Long ... formTypesParam ) { SearchHits searchHits = this.searchWithHits( qbParam, indexParam, false, offsetParam, li...
public class class_name { public final List<Form> searchAndConvertHitsToFormWithAllFields( QueryBuilder qbParam, String indexParam, int offsetParam, int limitParam, Long ... formTypesParam ) { SearchHits searchHits = this.searchWithHits( qbParam, indexParam, false, offsetParam, li...
public class class_name { public NullnessHint analyzeReturnType() { if (method.getReturnType().isPrimitiveType()) { LOG(DEBUG, "DEBUG", "Skipping method with primitive return type: " + method.getSignature()); return NullnessHint.UNKNOWN; } LOG(DEBUG, "DEBUG", "@ Return type analysis for: " + me...
public class class_name { public NullnessHint analyzeReturnType() { if (method.getReturnType().isPrimitiveType()) { LOG(DEBUG, "DEBUG", "Skipping method with primitive return type: " + method.getSignature()); // depends on control dependency: [if], data = [none] return NullnessHint.UNKNOWN; // depends ...
public class class_name { public EClass getIfcStructuralAction() { if (ifcStructuralActionEClass == null) { ifcStructuralActionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(534); } return ifcStructuralActionEClass; } }
public class class_name { public EClass getIfcStructuralAction() { if (ifcStructuralActionEClass == null) { ifcStructuralActionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(534); // depends on control dependency: [if], data = [none] } retur...
public class class_name { public void setEventSelectors(java.util.Collection<EventSelector> eventSelectors) { if (eventSelectors == null) { this.eventSelectors = null; return; } this.eventSelectors = new com.amazonaws.internal.SdkInternalList<EventSelector>(eventSelecto...
public class class_name { public void setEventSelectors(java.util.Collection<EventSelector> eventSelectors) { if (eventSelectors == null) { this.eventSelectors = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { public final void normalize(Quaternion q1) { double norm; norm = (q1.x*q1.x + q1.y*q1.y + q1.z*q1.z + q1.w*q1.w); if (norm > 0f) { norm = 1f/Math.sqrt(norm); this.x = norm*q1.x; this.y = norm*q1.y; this.z = norm*q1.z; this.w = norm*q1.w; } else { this.x = 0f; th...
public class class_name { public final void normalize(Quaternion q1) { double norm; norm = (q1.x*q1.x + q1.y*q1.y + q1.z*q1.z + q1.w*q1.w); if (norm > 0f) { norm = 1f/Math.sqrt(norm); // depends on control dependency: [if], data = [(norm] this.x = norm*q1.x; // depends on control dependency: [if], data =...
public class class_name { @Override public GeolocationApi.Response read(JsonReader reader) throws IOException { if (reader.peek() == JsonToken.NULL) { reader.nextNull(); return null; } GeolocationApi.Response response = new GeolocationApi.Response(); LatLngAdapter latLngAdapter = new Lat...
public class class_name { @Override public GeolocationApi.Response read(JsonReader reader) throws IOException { if (reader.peek() == JsonToken.NULL) { reader.nextNull(); return null; } GeolocationApi.Response response = new GeolocationApi.Response(); LatLngAdapter latLngAdapter = new Lat...
public class class_name { public void registerDefaults() { typeToRenderer.clear(); ServiceLoader<TableCellRenderer> serviceLoader = ServiceLoader.load(TableCellRenderer.class); Iterator<TableCellRenderer> iterator = serviceLoader.iterator(); while (iterator.hasNext()) { Tab...
public class class_name { public void registerDefaults() { typeToRenderer.clear(); ServiceLoader<TableCellRenderer> serviceLoader = ServiceLoader.load(TableCellRenderer.class); Iterator<TableCellRenderer> iterator = serviceLoader.iterator(); while (iterator.hasNext()) { Tab...
public class class_name { @Override public void sawOpcode(int seen) { Integer userValue = null; if ((conditionalTarget != -1) && (getPC() >= conditionalTarget)) { conditionalTarget = -1; sawMethodWeight = 0; } try { switch (seen) { ...
public class class_name { @Override public void sawOpcode(int seen) { Integer userValue = null; if ((conditionalTarget != -1) && (getPC() >= conditionalTarget)) { conditionalTarget = -1; // depends on control dependency: [if], data = [none] sawMethodWeight = 0; // depends o...
public class class_name { public ColorRecord[] enumerateColors (String className) { // make sure the class exists ClassRecord record = getClassRecord(className); if (record == null) { return null; } // create the array ColorRecord[] crecs = new ColorReco...
public class class_name { public ColorRecord[] enumerateColors (String className) { // make sure the class exists ClassRecord record = getClassRecord(className); if (record == null) { return null; // depends on control dependency: [if], data = [none] } // create...
public class class_name { @Override public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException { final String sourceMethod = "getMBeanInfo"; checkConnection(); URL mbeanURL = null; HttpsURLConnection con...
public class class_name { @Override public MBeanInfo getMBeanInfo(ObjectName name) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException { final String sourceMethod = "getMBeanInfo"; checkConnection(); URL mbeanURL = null; HttpsURLConnection con...
public class class_name { private static void removeRangesFromShiftMap( final NavigableMap<String, ConfigRangeAttrs> shiftMap, final List<String> removeFullNameList) { for (String fname : removeFullNameList) { shiftMap.remove(fname); } } }
public class class_name { private static void removeRangesFromShiftMap( final NavigableMap<String, ConfigRangeAttrs> shiftMap, final List<String> removeFullNameList) { for (String fname : removeFullNameList) { shiftMap.remove(fname); // depends on control dependency: [for], data = [fname] } } }
public class class_name { public void marshall(UpdateGameSessionRequest updateGameSessionRequest, ProtocolMarshaller protocolMarshaller) { if (updateGameSessionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void marshall(UpdateGameSessionRequest updateGameSessionRequest, ProtocolMarshaller protocolMarshaller) { if (updateGameSessionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void deleteSubnet(DeleteSubnetRequest deleteSubnetRequest) { checkNotNull(deleteSubnetRequest, "request should not be null."); checkNotNull(deleteSubnetRequest.getSubnetId(), "request subnetId should not be null."); if (Strings.isNullOrEmpty(deleteSubnetRequest....
public class class_name { public void deleteSubnet(DeleteSubnetRequest deleteSubnetRequest) { checkNotNull(deleteSubnetRequest, "request should not be null."); checkNotNull(deleteSubnetRequest.getSubnetId(), "request subnetId should not be null."); if (Strings.isNullOrEmpty(deleteSubnetRequest....
public class class_name { public static boolean plays(Role role, String r) { if (r == null) { throw new IllegalArgumentException("null role"); } if (role == null) { return false; } return role.value().contains(r); } }
public class class_name { public static boolean plays(Role role, String r) { if (r == null) { throw new IllegalArgumentException("null role"); } if (role == null) { return false; // depends on control dependency: [if], data = [none] } return role.value()....
public class class_name { public static void copy(InputStream is, OutputStream os) throws IOException { Asserts.notNullParameter("is", is); Asserts.notNullParameter("os", os); try { byte[] buf = new byte[1024]; int len = 0; while((len = is.read(buf)) > 0) { os.write(buf, 0, len); } }...
public class class_name { public static void copy(InputStream is, OutputStream os) throws IOException { Asserts.notNullParameter("is", is); Asserts.notNullParameter("os", os); try { byte[] buf = new byte[1024]; int len = 0; while((len = is.read(buf)) > 0) { os.write(buf, 0, len); // depends ...
public class class_name { private WorkUnitProcessor<ClasspathEntryWorkUnit> newClasspathEntryWorkUnitProcessor( final Set<ClasspathElement> openedClasspathElementsSet, final Queue<Entry<Integer, ClasspathElement>> toplevelClasspathEltOrder) { return new WorkUnitProcessor<ClasspathEntryW...
public class class_name { private WorkUnitProcessor<ClasspathEntryWorkUnit> newClasspathEntryWorkUnitProcessor( final Set<ClasspathElement> openedClasspathElementsSet, final Queue<Entry<Integer, ClasspathElement>> toplevelClasspathEltOrder) { return new WorkUnitProcessor<ClasspathEntryW...
public class class_name { public void marshall(EndpointConfigSummary endpointConfigSummary, ProtocolMarshaller protocolMarshaller) { if (endpointConfigSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(EndpointConfigSummary endpointConfigSummary, ProtocolMarshaller protocolMarshaller) { if (endpointConfigSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { protected long toLongSafe(String toParseParam) { if (toParseParam == null || toParseParam.trim().isEmpty()) { return -1; } try { return Long.parseLong(toParseParam.trim()); } catch (NumberFormatException e) { return -1; } } }
public class class_name { protected long toLongSafe(String toParseParam) { if (toParseParam == null || toParseParam.trim().isEmpty()) { return -1; // depends on control dependency: [if], data = [none] } try { return Long.parseLong(toParseParam.trim()); // depends on control dependency: [try], data = [none...
public class class_name { public static <T extends Model> List<T> processCursor(Class<T> cls, Cursor cursor) { final List<T> entities = new ArrayList<T>(); try { Constructor<T> entityConstructor = cls.getConstructor(); if (cursor.moveToFirst()) { do { T entity = getEntity(cls, cursor.getLong(cursor....
public class class_name { public static <T extends Model> List<T> processCursor(Class<T> cls, Cursor cursor) { final List<T> entities = new ArrayList<T>(); try { Constructor<T> entityConstructor = cls.getConstructor(); if (cursor.moveToFirst()) { do { T entity = getEntity(cls, cursor.getLong(cursor....
public class class_name { public java.util.List<String> getLabels() { if (labels == null) { labels = new com.amazonaws.internal.SdkInternalList<String>(); } return labels; } }
public class class_name { public java.util.List<String> getLabels() { if (labels == null) { labels = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return labels; } }
public class class_name { static Map<String, ExtendedEntityManager> getCurrentCall() { ArrayList<Map<String, ExtendedEntityManager>> stack = currentSFSBCallStack(); Map<String, ExtendedEntityManager> result = null; if (stack != null) { result = stack.get(stack.size() - 1); }...
public class class_name { static Map<String, ExtendedEntityManager> getCurrentCall() { ArrayList<Map<String, ExtendedEntityManager>> stack = currentSFSBCallStack(); Map<String, ExtendedEntityManager> result = null; if (stack != null) { result = stack.get(stack.size() - 1); // depend...
public class class_name { private WFSExceptionWriter getFeature(PrintWriter out, HttpServletRequest hsreq, SimpleGeometryCSBuilder sgcs, String ftName, String fullFtName) { List<SimpleGeometry> geometryList = new ArrayList<SimpleGeometry>(); GeometryType geoT = sgcs.getGeometryType(ftName); if(geo...
public class class_name { private WFSExceptionWriter getFeature(PrintWriter out, HttpServletRequest hsreq, SimpleGeometryCSBuilder sgcs, String ftName, String fullFtName) { List<SimpleGeometry> geometryList = new ArrayList<SimpleGeometry>(); GeometryType geoT = sgcs.getGeometryType(ftName); if(geo...
public class class_name { public static String[][] genSequence(String sent){ CharType[] tags = Chars.getType(sent); int len = sent.length(); ArrayList<String> words = new ArrayList<String>(); ArrayList<String> types = new ArrayList<String>(); int begin =0; for(int j=0; j<len; j++) { if(j<len-1 && ta...
public class class_name { public static String[][] genSequence(String sent){ CharType[] tags = Chars.getType(sent); int len = sent.length(); ArrayList<String> words = new ArrayList<String>(); ArrayList<String> types = new ArrayList<String>(); int begin =0; for(int j=0; j<len; j++) { if(j<len-1 && ta...
public class class_name { @Override public DocumentBuilderFactory createDocumentBuilderFactory() { DocumentBuilderFactory instance = DocumentBuilderFactory.newInstance(); instance.setXIncludeAware(this.isXIncludeAware); instance.setExpandEntityReferences(this.isExpandEntityReferences); // ...
public class class_name { @Override public DocumentBuilderFactory createDocumentBuilderFactory() { DocumentBuilderFactory instance = DocumentBuilderFactory.newInstance(); instance.setXIncludeAware(this.isXIncludeAware); instance.setExpandEntityReferences(this.isExpandEntityReferences); // ...
public class class_name { public static String escapeForXML(String inString) { if (inString == null) return null; String outString = inString; outString = replace(outString, "&", "&amp;"); outString = replace(outString, "<", "&lt;"); outString = replace(outString, ">", "&gt;"); out...
public class class_name { public static String escapeForXML(String inString) { if (inString == null) return null; String outString = inString; outString = replace(outString, "&", "&amp;"); outString = replace(outString, "<", "&lt;"); outString = replace(outString, ">", "&gt;"); out...
public class class_name { @Override public int chown(String path, @uid_t long uid, @gid_t long gid) { if (!mIsUserGroupTranslation) { LOG.info("Cannot change the owner/group of path {}. Please set {} to be true to enable " + "user group translation in Alluxio-FUSE.", path, PropertyKey.F...
public class class_name { @Override public int chown(String path, @uid_t long uid, @gid_t long gid) { if (!mIsUserGroupTranslation) { LOG.info("Cannot change the owner/group of path {}. Please set {} to be true to enable " + "user group translation in Alluxio-FUSE.", path, PropertyKey.F...
public class class_name { public static <T> AsyncCallback<T> disabler (AsyncCallback<T> callback, final HasEnabled... disablees) { for (HasEnabled widget : disablees) { widget.setEnabled(false); } return new ChainedCallback<T, T>(...
public class class_name { public static <T> AsyncCallback<T> disabler (AsyncCallback<T> callback, final HasEnabled... disablees) { for (HasEnabled widget : disablees) { widget.setEnabled(false); // depends on control dependency: [for], data = [wi...
public class class_name { private List<CmsResource> internalReadResourceList(CmsObject cms, List<CmsUUID> uuidList) { List<CmsResource> resList = new ArrayList<CmsResource>(uuidList.size()); for (Iterator<CmsUUID> i = uuidList.iterator(); i.hasNext();) { try { CmsResource r...
public class class_name { private List<CmsResource> internalReadResourceList(CmsObject cms, List<CmsUUID> uuidList) { List<CmsResource> resList = new ArrayList<CmsResource>(uuidList.size()); for (Iterator<CmsUUID> i = uuidList.iterator(); i.hasNext();) { try { CmsResource r...
public class class_name { public void marshall(BillingModeSummary billingModeSummary, ProtocolMarshaller protocolMarshaller) { if (billingModeSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(BillingModeSummary billingModeSummary, ProtocolMarshaller protocolMarshaller) { if (billingModeSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { void getProperties(Connection connection, long id, LoggingEvent event) throws SQLException { PreparedStatement statement = connection.prepareStatement(sqlProperties); try { statement.setLong(1, id); ResultSet rs = statement.executeQuery(); while (rs.next()) {...
public class class_name { void getProperties(Connection connection, long id, LoggingEvent event) throws SQLException { PreparedStatement statement = connection.prepareStatement(sqlProperties); try { statement.setLong(1, id); ResultSet rs = statement.executeQuery(); while (rs.next()) {...
public class class_name { private static int isTashkeelOnTatweelChar(char ch){ if (ch >= 0xfe70 && ch <= 0xfe7f && ch != NEW_TAIL_CHAR && ch != 0xFE75 && ch != SHADDA_TATWEEL_CHAR) { return tashkeelMedial [ch - 0xFE70]; } else if( (ch >= 0xfcf2 && ch <= 0xfcf4) || (ch == SHADDA_TATW...
public class class_name { private static int isTashkeelOnTatweelChar(char ch){ if (ch >= 0xfe70 && ch <= 0xfe7f && ch != NEW_TAIL_CHAR && ch != 0xFE75 && ch != SHADDA_TATWEEL_CHAR) { return tashkeelMedial [ch - 0xFE70]; // depends on control dependency: [if], data = [none] } else if...
public class class_name { @UiThread public void expandParentRange(int startParentPosition, int parentCount) { int endParentPosition = startParentPosition + parentCount; for (int i = startParentPosition; i < endParentPosition; i++) { expandParent(i); } } }
public class class_name { @UiThread public void expandParentRange(int startParentPosition, int parentCount) { int endParentPosition = startParentPosition + parentCount; for (int i = startParentPosition; i < endParentPosition; i++) { expandParent(i); // depends on control dependency: [fo...
public class class_name { private String fixPortletPath(HttpServletRequest request, IPortalUrlBuilder urlBuilder) { String path = urlBuilder.getUrlString(); String context = request.getContextPath(); if (StringUtils.isBlank(context)) { context = "/"; } if (!path.sta...
public class class_name { private String fixPortletPath(HttpServletRequest request, IPortalUrlBuilder urlBuilder) { String path = urlBuilder.getUrlString(); String context = request.getContextPath(); if (StringUtils.isBlank(context)) { context = "/"; // depends on control dependency...
public class class_name { public EClass getIfcLaborResource() { if (ifcLaborResourceEClass == null) { ifcLaborResourceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(286); } return ifcLaborResourceEClass; } }
public class class_name { public EClass getIfcLaborResource() { if (ifcLaborResourceEClass == null) { ifcLaborResourceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(286); // depends on control dependency: [if], data = [none] } return ifcLabo...
public class class_name { Number numberFor(Number source, Class<?> destinationType) { if (destinationType.equals(source.getClass())) return source; if (destinationType.equals(Byte.class)) { long longValue = source.longValue(); if (longValue > Byte.MAX_VALUE) throw new Errors()...
public class class_name { Number numberFor(Number source, Class<?> destinationType) { if (destinationType.equals(source.getClass())) return source; if (destinationType.equals(Byte.class)) { long longValue = source.longValue(); if (longValue > Byte.MAX_VALUE) throw new Errors()...
public class class_name { public <R> Promise<R> zipPromise(final ListFunction<T, Promise<R>> fuc) { return new Promise<>(resolver -> { promises.then(promises1 -> { final ArrayList<T> res = new ArrayList<T>(); for (int i = 0; i < promises1.length; i++) { ...
public class class_name { public <R> Promise<R> zipPromise(final ListFunction<T, Promise<R>> fuc) { return new Promise<>(resolver -> { promises.then(promises1 -> { final ArrayList<T> res = new ArrayList<T>(); for (int i = 0; i < promises1.length; i++) { ...
public class class_name { public void setPolicyInputList(java.util.Collection<String> policyInputList) { if (policyInputList == null) { this.policyInputList = null; return; } this.policyInputList = new com.amazonaws.internal.SdkInternalList<String>(policyInputList); ...
public class class_name { public void setPolicyInputList(java.util.Collection<String> policyInputList) { if (policyInputList == null) { this.policyInputList = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { String getURI (String prefix) { if ("".equals(prefix)) { return defaultNS; } else if (prefixTable == null) { return null; } else { return (String)prefixTable.get(prefix); } } }
public class class_name { String getURI (String prefix) { if ("".equals(prefix)) { return defaultNS; // depends on control dependency: [if], data = [none] } else if (prefixTable == null) { return null; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { public static <E extends Enum<E>> long getLongFlag(EnumSet<E> eSet) { long flag = 0; for (Enum<E> en : eSet) { long ordinal = en.ordinal(); if (ordinal >= Long.SIZE) { throw new IllegalArgumentException(eS...
public class class_name { public static <E extends Enum<E>> long getLongFlag(EnumSet<E> eSet) { long flag = 0; for (Enum<E> en : eSet) { long ordinal = en.ordinal(); if (ordinal >= Long.SIZE) { throw new IllegalArgumentException(eS...
public class class_name { public void transition(RaftServer.Role role) { checkThread(); checkNotNull(role); if (this.role.role() == role) { return; } log.info("Transitioning to {}", role); // Close the old state. try { this.role.stop().get(); } catch (InterruptedException...
public class class_name { public void transition(RaftServer.Role role) { checkThread(); checkNotNull(role); if (this.role.role() == role) { return; // depends on control dependency: [if], data = [none] } log.info("Transitioning to {}", role); // Close the old state. try { thi...