code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public Float getFloat(final String key, final Float def) { Float val = getFloat(key); if (val == null) { if (map.containsKey(key)) { return null; } return def; } return val; } }
public class class_name { public Float getFloat(final String key, final Float def) { Float val = getFloat(key); if (val == null) { if (map.containsKey(key)) { return null; // depends on control dependency: [if], data = [none] } return def; // depends on control dependency: [if], data = [none] } ...
public class class_name { public static DZcs cs_load(InputStream in) { int i, j; double x[], x_re, x_im ; DZcs T; String line, tokens[] ; Reader r = new InputStreamReader(in); BufferedReader br = new BufferedReader(r); T = cs_spalloc(0, 0, 1, true, true) ; /* allocate result */ try { ...
public class class_name { public static DZcs cs_load(InputStream in) { int i, j; double x[], x_re, x_im ; DZcs T; String line, tokens[] ; Reader r = new InputStreamReader(in); BufferedReader br = new BufferedReader(r); T = cs_spalloc(0, 0, 1, true, true) ; /* allocate result */ try { ...
public class class_name { protected static FileList transformFileList(final CSNodeWrapper node) { final List<File> files = new LinkedList<File>(); // Add all the child files if (node.getChildren() != null && node.getChildren().getItems() != null) { final List<CSNodeWrapper> childNo...
public class class_name { protected static FileList transformFileList(final CSNodeWrapper node) { final List<File> files = new LinkedList<File>(); // Add all the child files if (node.getChildren() != null && node.getChildren().getItems() != null) { final List<CSNodeWrapper> childNo...
public class class_name { public void setBoneMap(int[] bonemap) { GVRSkeleton dstskel = mDestSkeleton; int numbones; if (bonemap == null) { return; } if (dstskel == null) { return; } numbones = dstskel.getNumBones();...
public class class_name { public void setBoneMap(int[] bonemap) { GVRSkeleton dstskel = mDestSkeleton; int numbones; if (bonemap == null) { return; // depends on control dependency: [if], data = [none] } if (dstskel == null) { retur...
public class class_name { @Override public void execute() { if ( "pom".equals( project.getPackaging() ) ) { return; } if ( skip ) { return; } long ts = System.currentTimeMillis(); Properties projectProperties = p...
public class class_name { @Override public void execute() { if ( "pom".equals( project.getPackaging() ) ) { return; // depends on control dependency: [if], data = [none] } if ( skip ) { return; // depends on control dependency: [if], data = [none...
public class class_name { public static List<ConnectionNotation> hybridizeAntiparallel(PolymerNotation one, PolymerNotation two) throws RNAUtilsException, NotationException, HELM2HandledException, ChemistryException, NucleotideLoadingException { checkRNA(one); checkRNA(two); List<ConnectionNotation>...
public class class_name { public static List<ConnectionNotation> hybridizeAntiparallel(PolymerNotation one, PolymerNotation two) throws RNAUtilsException, NotationException, HELM2HandledException, ChemistryException, NucleotideLoadingException { checkRNA(one); checkRNA(two); List<ConnectionNotation>...
public class class_name { private List<PipelineStage> findUnmappedStages(Dashboard dashboard,List<PipelineStage> pipelineStageList){ List<PipelineStage> unmappedStages = new ArrayList<>(); Map<PipelineStage, String> stageToEnvironmentNameMap = PipelineUtils.getStageToEnvironmentNameMap(dashboard); ...
public class class_name { private List<PipelineStage> findUnmappedStages(Dashboard dashboard,List<PipelineStage> pipelineStageList){ List<PipelineStage> unmappedStages = new ArrayList<>(); Map<PipelineStage, String> stageToEnvironmentNameMap = PipelineUtils.getStageToEnvironmentNameMap(dashboard); ...
public class class_name { protected void launch(String projectName, String fullyQualifiedName, String mode) throws CoreException { final List<ILaunchConfiguration> configs = getCandidates(projectName, fullyQualifiedName); ILaunchConfiguration config = null; final int count = configs.size(); if (count == 1) ...
public class class_name { protected void launch(String projectName, String fullyQualifiedName, String mode) throws CoreException { final List<ILaunchConfiguration> configs = getCandidates(projectName, fullyQualifiedName); ILaunchConfiguration config = null; final int count = configs.size(); if (count == 1) ...
public class class_name { private Principal selectedPrincipal() { if (browseByColumn.getSelectedItem().getTitle().equals(Console.CONSTANTS.common_label_users())) { return userColumn.getSelectedItem(); } else if (browseByColumn.getSelectedItem().getTitle().equals(Console.CONSTANTS.common_lab...
public class class_name { private Principal selectedPrincipal() { if (browseByColumn.getSelectedItem().getTitle().equals(Console.CONSTANTS.common_label_users())) { return userColumn.getSelectedItem(); // depends on control dependency: [if], data = [none] } else if (browseByColumn.getSelecte...
public class class_name { public void marshall(JdbcTarget jdbcTarget, ProtocolMarshaller protocolMarshaller) { if (jdbcTarget == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(jdbcTarget.getConnecti...
public class class_name { public void marshall(JdbcTarget jdbcTarget, ProtocolMarshaller protocolMarshaller) { if (jdbcTarget == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(jdbcTarget.getConnecti...
public class class_name { private boolean gatherCandidate(IceComponent component, InetAddress address, int startingPort, RtpPortManager portManager, Selector selector) { // Recursion stop criteria if(startingPort == portManager.peek()) { return false; } // Gather the candidate using current port try { ...
public class class_name { private boolean gatherCandidate(IceComponent component, InetAddress address, int startingPort, RtpPortManager portManager, Selector selector) { // Recursion stop criteria if(startingPort == portManager.peek()) { return false; // depends on control dependency: [if], data = [none] } ...
public class class_name { public void setRepositoryFolderHandler(I_CmsRepositoryFolderHandler clazz) { m_repositoryFolderHandler = clazz; if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info( org.opencms.configuration.Messages.get().getBundle().key( org.o...
public class class_name { public void setRepositoryFolderHandler(I_CmsRepositoryFolderHandler clazz) { m_repositoryFolderHandler = clazz; if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info( org.opencms.configuration.Messages.get().getBundle().key( org.o...
public class class_name { int getContentLength(HttpURLConnection conn) { String transferEncoding = conn.getHeaderField(TRANSFER_ENCODING); if (transferEncoding == null || transferEncoding.equalsIgnoreCase("chunked")) { return conn.getHeaderFieldInt(CONTENT_LENGTH, -1); } else { return -1; }...
public class class_name { int getContentLength(HttpURLConnection conn) { String transferEncoding = conn.getHeaderField(TRANSFER_ENCODING); if (transferEncoding == null || transferEncoding.equalsIgnoreCase("chunked")) { return conn.getHeaderFieldInt(CONTENT_LENGTH, -1); // depends on control dependency: [...
public class class_name { public String[] getContentValue() { List<WebElement> options = getElement().findElements(By.tagName("option")); List<String> contents = new ArrayList<String>(); for (WebElement option : options) { contents.add(option.getAttribute("value")); } ...
public class class_name { public String[] getContentValue() { List<WebElement> options = getElement().findElements(By.tagName("option")); List<String> contents = new ArrayList<String>(); for (WebElement option : options) { contents.add(option.getAttribute("value")); // depends on c...
public class class_name { @SuppressWarnings("deprecation") static JdkApplicationProtocolNegotiator toNegotiator(ApplicationProtocolConfig config, boolean isServer) { if (config == null) { return JdkDefaultApplicationProtocolNegotiator.INSTANCE; } switch(config.protocol()) { ...
public class class_name { @SuppressWarnings("deprecation") static JdkApplicationProtocolNegotiator toNegotiator(ApplicationProtocolConfig config, boolean isServer) { if (config == null) { return JdkDefaultApplicationProtocolNegotiator.INSTANCE; // depends on control dependency: [if], data = [no...
public class class_name { static Vector2d newAtomAnnotationVector(IAtom atom, List<IBond> bonds, List<Vector2d> auxVectors) { final List<Vector2d> vectors = new ArrayList<Vector2d>(bonds.size()); for (IBond bond : bonds) vectors.add(VecmathUtil.newUnitVector(atom, bond)); if (vect...
public class class_name { static Vector2d newAtomAnnotationVector(IAtom atom, List<IBond> bonds, List<Vector2d> auxVectors) { final List<Vector2d> vectors = new ArrayList<Vector2d>(bonds.size()); for (IBond bond : bonds) vectors.add(VecmathUtil.newUnitVector(atom, bond)); if (vect...
public class class_name { @Override public int getId() { if (mId != 0) { return mId; } if (!TextUtils.isEmpty(mPath) && !TextUtils.isEmpty(mUrl)) { return mId = FileDownloadUtils.generateId(mUrl, mPath, mPathAsDirectory); } return 0; } }
public class class_name { @Override public int getId() { if (mId != 0) { return mId; // depends on control dependency: [if], data = [none] } if (!TextUtils.isEmpty(mPath) && !TextUtils.isEmpty(mUrl)) { return mId = FileDownloadUtils.generateId(mUrl, mPath, mPathAsDi...
public class class_name { public boolean sameJSONFormat(JSONFormat jf){ Map<String,String> featLinks = new HashMap<>(); if(!this.name.equals(jf.name) || !this.creator.equals(jf.creator) || !this.license.equals(jf.license) || !this.source.equals(jf.source)){ return false; }else if(!this.sameFeatures(jf, featL...
public class class_name { public boolean sameJSONFormat(JSONFormat jf){ Map<String,String> featLinks = new HashMap<>(); if(!this.name.equals(jf.name) || !this.creator.equals(jf.creator) || !this.license.equals(jf.license) || !this.source.equals(jf.source)){ return false; // depends on control dependency: [if],...
public class class_name { public void marshall(DescribeMaintenanceStartTimeRequest describeMaintenanceStartTimeRequest, ProtocolMarshaller protocolMarshaller) { if (describeMaintenanceStartTimeRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(DescribeMaintenanceStartTimeRequest describeMaintenanceStartTimeRequest, ProtocolMarshaller protocolMarshaller) { if (describeMaintenanceStartTimeRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void error( String msg, Throwable t ) { if( m_delegate.isErrorEnabled() ) { m_delegate.error( msg, t ); } } }
public class class_name { public void error( String msg, Throwable t ) { if( m_delegate.isErrorEnabled() ) { m_delegate.error( msg, t ); // depends on control dependency: [if], data = [none] } } }
public class class_name { @Override public double getForecastTimeIntervalSizeInHours(Grib2Pds pds) { Grib2Pds.PdsInterval pdsIntv = (Grib2Pds.PdsInterval) pds; // override here only if timeRangeUnit = 255 boolean needOverride = false; for (Grib2Pds.TimeInterval ti : pdsIntv.getTimeIntervals()) { ...
public class class_name { @Override public double getForecastTimeIntervalSizeInHours(Grib2Pds pds) { Grib2Pds.PdsInterval pdsIntv = (Grib2Pds.PdsInterval) pds; // override here only if timeRangeUnit = 255 boolean needOverride = false; for (Grib2Pds.TimeInterval ti : pdsIntv.getTimeIntervals()) { ...
public class class_name { public void rows(int numOfRows) { int rows = checkRows(numOfRows, 0, 0); String reason = NO_ELEMENT_FOUND; if (rows < 0 && getElement().is().present()) { reason = "Element not table"; } assertTrue(reason, rows >= 0); assertEquals("Nu...
public class class_name { public void rows(int numOfRows) { int rows = checkRows(numOfRows, 0, 0); String reason = NO_ELEMENT_FOUND; if (rows < 0 && getElement().is().present()) { reason = "Element not table"; // depends on control dependency: [if], data = [none] } a...
public class class_name { public void marshall(BotMetadata botMetadata, ProtocolMarshaller protocolMarshaller) { if (botMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(botMetadata.getName...
public class class_name { public void marshall(BotMetadata botMetadata, ProtocolMarshaller protocolMarshaller) { if (botMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(botMetadata.getName...
public class class_name { public static Predicate<Throwable> throwableContainsMessage(final String expected, final boolean caseSensitive) { return new Predicate<Throwable>() { public boolean apply(Throwable input) { String actual = input.getMessage(); String exp = ex...
public class class_name { public static Predicate<Throwable> throwableContainsMessage(final String expected, final boolean caseSensitive) { return new Predicate<Throwable>() { public boolean apply(Throwable input) { String actual = input.getMessage(); String exp = ex...
public class class_name { public OutputGate getOutputGate(int index) { if (index < this.outputGates.size()) { return this.outputGates.get(index); } return null; } }
public class class_name { public OutputGate getOutputGate(int index) { if (index < this.outputGates.size()) { return this.outputGates.get(index); // depends on control dependency: [if], data = [(index] } return null; } }
public class class_name { private static InputStream createInputStream(GraphicFactory graphicFactory, String relativePathPrefix, String src) throws IOException { InputStream inputStream; if (src.startsWith(PREFIX_ASSETS)) { src = src.substring(PREFIX_ASSETS.length()); inputStrea...
public class class_name { private static InputStream createInputStream(GraphicFactory graphicFactory, String relativePathPrefix, String src) throws IOException { InputStream inputStream; if (src.startsWith(PREFIX_ASSETS)) { src = src.substring(PREFIX_ASSETS.length()); inputStrea...
public class class_name { public void removeToken(Object token) { m_tokens.remove(token); if (m_tokens.isEmpty()) { if (m_joinAction != null) { m_joinAction.run(); } } } }
public class class_name { public void removeToken(Object token) { m_tokens.remove(token); if (m_tokens.isEmpty()) { if (m_joinAction != null) { m_joinAction.run(); // depends on control dependency: [if], data = [none] } } } }
public class class_name { public EClass getIfcDamperType() { if (ifcDamperTypeEClass == null) { ifcDamperTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(141); } return ifcDamperTypeEClass; } }
public class class_name { public EClass getIfcDamperType() { if (ifcDamperTypeEClass == null) { ifcDamperTypeEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(141); // depends on control dependency: [if], data = [none] } return ifcDamperTypeECl...
public class class_name { public void setClusterNames(java.util.Collection<String> clusterNames) { if (clusterNames == null) { this.clusterNames = null; return; } this.clusterNames = new java.util.ArrayList<String>(clusterNames); } }
public class class_name { public void setClusterNames(java.util.Collection<String> clusterNames) { if (clusterNames == null) { this.clusterNames = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } ...
public class class_name { private List<String> readLinkExcludes(CmsObject cms) { List<String> linkExcludes = new ArrayList<String>(); try { // get the link exclude file String filePath = OpenCms.getSystemInfo().getConfigFilePath(cms, LINK_EXCLUDE_DEFINIFITON_FILE); ...
public class class_name { private List<String> readLinkExcludes(CmsObject cms) { List<String> linkExcludes = new ArrayList<String>(); try { // get the link exclude file String filePath = OpenCms.getSystemInfo().getConfigFilePath(cms, LINK_EXCLUDE_DEFINIFITON_FILE); ...
public class class_name { @Deprecated public static Word2Vec readWord2Vec(File file) throws IOException { File tmpFileSyn0 = DL4JFileUtils.createTempFile("word2vec", "0"); File tmpFileSyn1 = DL4JFileUtils.createTempFile("word2vec", "1"); File tmpFileC = DL4JFileUtils.createTempFile("word2ve...
public class class_name { @Deprecated public static Word2Vec readWord2Vec(File file) throws IOException { File tmpFileSyn0 = DL4JFileUtils.createTempFile("word2vec", "0"); File tmpFileSyn1 = DL4JFileUtils.createTempFile("word2vec", "1"); File tmpFileC = DL4JFileUtils.createTempFile("word2ve...
public class class_name { private boolean compareFs(FileSystem srcFs, FileSystem destFs) { URI srcUri = srcFs.getUri(); URI dstUri = destFs.getUri(); if (srcUri.getScheme() == null) { return false; } if (!srcUri.getScheme().equals(dstUri.getScheme())) { return false; } String sr...
public class class_name { private boolean compareFs(FileSystem srcFs, FileSystem destFs) { URI srcUri = srcFs.getUri(); URI dstUri = destFs.getUri(); if (srcUri.getScheme() == null) { return false; // depends on control dependency: [if], data = [none] } if (!srcUri.getScheme().equals(dstUri.g...
public class class_name { void addIndexCondition(Expression[] exprList, Index index, int colCount, boolean isJoin) { // VoltDB extension if (rangeIndex == index && isJoinIndex && (!isJoin) && (multiColumnCount > 0) && (colCount == 0)) { // This is one part...
public class class_name { void addIndexCondition(Expression[] exprList, Index index, int colCount, boolean isJoin) { // VoltDB extension if (rangeIndex == index && isJoinIndex && (!isJoin) && (multiColumnCount > 0) && (colCount == 0)) { // This is one part...
public class class_name { public void registerLoaderIndicators(By... loaderIndicators) { for(By locator : loaderIndicators) { log.debug("Registered loader: " + locator); this.expectedGlobalConditions.add(new ExpectedWebElementCondition(locator)); } } }
public class class_name { public void registerLoaderIndicators(By... loaderIndicators) { for(By locator : loaderIndicators) { log.debug("Registered loader: " + locator); // depends on control dependency: [for], data = [locator] this.expectedGlobalConditions.add(new ExpectedWebElementCondition(locator)...
public class class_name { @SuppressWarnings("deprecation") private void jobCompleteUnprotected() { // // All tasks are complete, then the job is done! if(this.terminated == JobStatus.FAILED || this.terminated == JobStatus.KILLED) { terminate(this.terminated); } if (this.status...
public class class_name { @SuppressWarnings("deprecation") private void jobCompleteUnprotected() { // // All tasks are complete, then the job is done! if(this.terminated == JobStatus.FAILED || this.terminated == JobStatus.KILLED) { terminate(this.terminated); // depends on control dep...
public class class_name { private boolean cleanLockedObjects(ITransaction transaction, LockedObject lo, boolean temporary) { if (lo._children == null) { if (lo._owner == null) { if (temporary) { lo.removeTempLockedObject(); } else { ...
public class class_name { private boolean cleanLockedObjects(ITransaction transaction, LockedObject lo, boolean temporary) { if (lo._children == null) { if (lo._owner == null) { if (temporary) { lo.removeTempLockedObject(); // depends on control depe...
public class class_name { public MultiTouchAction perform() { List<TouchAction> touchActions = actions.build(); checkArgument(touchActions.size() > 0, "MultiTouch action must have at least one TouchAction added before it can be performed"); if (touchActions.size() > 1) { ...
public class class_name { public MultiTouchAction perform() { List<TouchAction> touchActions = actions.build(); checkArgument(touchActions.size() > 0, "MultiTouch action must have at least one TouchAction added before it can be performed"); if (touchActions.size() > 1) { ...
public class class_name { private static void setAllowUnsafeSslRenegotiationSystemProperty(boolean allow) { String ibmSystemPropertyValue; if (allow) { logger.info("Unsafe SSL renegotiation enabled."); ibmSystemPropertyValue = "ALL"; } else { logger.inf...
public class class_name { private static void setAllowUnsafeSslRenegotiationSystemProperty(boolean allow) { String ibmSystemPropertyValue; if (allow) { logger.info("Unsafe SSL renegotiation enabled."); // depends on control dependency: [if], data = [none] ibmSystemPropertyVa...
public class class_name { private void populateRelation(TaskField field, Task sourceTask, String relationship) throws MPXJException { int index = 0; int length = relationship.length(); // // Extract the identifier // while ((index < length) && (Character.isDigit(relationship.cha...
public class class_name { private void populateRelation(TaskField field, Task sourceTask, String relationship) throws MPXJException { int index = 0; int length = relationship.length(); // // Extract the identifier // while ((index < length) && (Character.isDigit(relationship.cha...
public class class_name { private static @Nullable Path getParentPath(Path path) { Path parent = path.getParent(); // Paths that have a parent: if (parent != null) { // "/foo" ("/") // "foo/bar" ("foo") // "C:\foo" ("C:\") // "\foo" ("\" - current drive for process on Windows) ...
public class class_name { private static @Nullable Path getParentPath(Path path) { Path parent = path.getParent(); // Paths that have a parent: if (parent != null) { // "/foo" ("/") // "foo/bar" ("foo") // "C:\foo" ("C:\") // "\foo" ("\" - current drive for process on Windows) ...
public class class_name { public final ResTable_config withSdkVersion(int sdkVersion) { if (sdkVersion == this.sdkVersion) { return this; } return new ResTable_config(size, mcc, mnc, language, country, orientation, touchscreen, density, keyboard, navigation, inputFlags, screenWidth, s...
public class class_name { public final ResTable_config withSdkVersion(int sdkVersion) { if (sdkVersion == this.sdkVersion) { return this; // depends on control dependency: [if], data = [none] } return new ResTable_config(size, mcc, mnc, language, country, orientation, touchscreen, density, ke...
public class class_name { public int compareTo(Address a) { int compare = workManagerId.compareTo(a.getWorkManagerId()); if (compare != 0) return compare; compare = workManagerName.compareTo(a.getWorkManagerName()); if (compare != 0) return compare; if (transportId ...
public class class_name { public int compareTo(Address a) { int compare = workManagerId.compareTo(a.getWorkManagerId()); if (compare != 0) return compare; compare = workManagerName.compareTo(a.getWorkManagerName()); if (compare != 0) return compare; if (transportId ...
public class class_name { public static double [] boundLargestEigenValue(DMatrixRMaj A , double []bound ) { if( A.numRows != A.numCols ) throw new IllegalArgumentException("A must be a square matrix."); double min = Double.MAX_VALUE; double max = 0; int n = A.numRows; ...
public class class_name { public static double [] boundLargestEigenValue(DMatrixRMaj A , double []bound ) { if( A.numRows != A.numCols ) throw new IllegalArgumentException("A must be a square matrix."); double min = Double.MAX_VALUE; double max = 0; int n = A.numRows; ...
public class class_name { protected List<Dependency> createFlattenedDependencies( Model effectiveModel ) { List<Dependency> flattenedDependencies = new ArrayList<Dependency>(); // resolve all direct and inherited dependencies... createFlattenedDependencies( effectiveModel, flattenedDepende...
public class class_name { protected List<Dependency> createFlattenedDependencies( Model effectiveModel ) { List<Dependency> flattenedDependencies = new ArrayList<Dependency>(); // resolve all direct and inherited dependencies... createFlattenedDependencies( effectiveModel, flattenedDepende...
public class class_name { private boolean compare(ByteDataBuffer serializedRepresentation, long key) { long position = key & POINTER_MASK; int sizeOfData = VarInt.readVInt(byteData.getUnderlyingArray(), position); if (sizeOfData != serializedRepresentation.length()) { return false...
public class class_name { private boolean compare(ByteDataBuffer serializedRepresentation, long key) { long position = key & POINTER_MASK; int sizeOfData = VarInt.readVInt(byteData.getUnderlyingArray(), position); if (sizeOfData != serializedRepresentation.length()) { return false...
public class class_name { boolean fitEpipolar(FastQueue<AssociatedIndex> matches , List<Point2D_F64> pointsA , List<Point2D_F64> pointsB , ModelMatcher<?,AssociatedPair> ransac , PairwiseImageGraph.Motion edge ) { pairs.resize(matches.size); for (int i = 0; i < matches.size; i++) { Associated...
public class class_name { boolean fitEpipolar(FastQueue<AssociatedIndex> matches , List<Point2D_F64> pointsA , List<Point2D_F64> pointsB , ModelMatcher<?,AssociatedPair> ransac , PairwiseImageGraph.Motion edge ) { pairs.resize(matches.size); for (int i = 0; i < matches.size; i++) { Associated...
public class class_name { public void writeIncludes(CodeType codeType) { ClassInfo recClassInfo2 = null; ClassFields recClassFields = null; try { ClassInfo recClassInfo = (ClassInfo)this.getMainRecord(); String classType = recClassInfo.getField(ClassInfo.CLASS_TYPE).toSt...
public class class_name { public void writeIncludes(CodeType codeType) { ClassInfo recClassInfo2 = null; ClassFields recClassFields = null; try { ClassInfo recClassInfo = (ClassInfo)this.getMainRecord(); String classType = recClassInfo.getField(ClassInfo.CLASS_TYPE).toSt...
public class class_name { synchronized final JsMsgPart getPayload(JMFSchema schema) { if (payload == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "getPayload will call getPart"); payload = jmo.getPayloadPart().getPart(JsP...
public class class_name { synchronized final JsMsgPart getPayload(JMFSchema schema) { if (payload == null) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "getPayload will call getPart"); payload = jmo.getPayloadPart().getPart(JsP...
public class class_name { @Override public boolean canServe(URL refUrl) { if (refUrl == null || !this.getPath().equals(refUrl.getPath())) { return false; } if(!protocol.equals(refUrl.getProtocol())) { return false; } if (!Constants.NODE_TYPE_SERVICE...
public class class_name { @Override public boolean canServe(URL refUrl) { if (refUrl == null || !this.getPath().equals(refUrl.getPath())) { return false; // depends on control dependency: [if], data = [none] } if(!protocol.equals(refUrl.getProtocol())) { return fals...
public class class_name { public static String truncate(final String value, final int length, final String filler) { validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER); if (length == 0) { return ""; } if (length >= value.length()) { return value; ...
public class class_name { public static String truncate(final String value, final int length, final String filler) { validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER); if (length == 0) { return ""; // depends on control dependency: [if], data = [none] } if (le...
public class class_name { @Override public void onFileChange(Path path) { String fileExtension = path.getName().substring(path.getName().lastIndexOf('.') + 1); if (fileExtension.equalsIgnoreCase(SchedulerUtils.JOB_PROPS_FILE_EXTENSION)) { LOG.info("Detected change to common properties file " + path.toS...
public class class_name { @Override public void onFileChange(Path path) { String fileExtension = path.getName().substring(path.getName().lastIndexOf('.') + 1); if (fileExtension.equalsIgnoreCase(SchedulerUtils.JOB_PROPS_FILE_EXTENSION)) { LOG.info("Detected change to common properties file " + path.toS...
public class class_name { public static base_responses unset(nitro_service client, String ipaddress[], String args[]) throws Exception { base_responses result = null; if (ipaddress != null && ipaddress.length > 0) { nsrpcnode unsetresources[] = new nsrpcnode[ipaddress.length]; for (int i=0;i<ipaddress.length...
public class class_name { public static base_responses unset(nitro_service client, String ipaddress[], String args[]) throws Exception { base_responses result = null; if (ipaddress != null && ipaddress.length > 0) { nsrpcnode unsetresources[] = new nsrpcnode[ipaddress.length]; for (int i=0;i<ipaddress.length...
public class class_name { @Override public void close() throws IOException { if (!closed) { closed = true; try { byte[] buffer = cipher.doFinal(); if (buffer != null) { output.write(buffer); } } catch (I...
public class class_name { @Override public void close() throws IOException { if (!closed) { closed = true; try { byte[] buffer = cipher.doFinal(); if (buffer != null) { output.write(buffer); // depends on control dependency: [if], ...
public class class_name { public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { // Get the RateCardService. RateCardServiceInterface rateCardService = adManagerServices.get(session, RateCardServiceInterface.class); // Create a s...
public class class_name { public static void runExample(AdManagerServices adManagerServices, AdManagerSession session) throws RemoteException { // Get the RateCardService. RateCardServiceInterface rateCardService = adManagerServices.get(session, RateCardServiceInterface.class); // Create a s...
public class class_name { public final void int_key() throws RecognitionException { Token id=null; try { // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:776:5: ({...}? =>id= ID ) // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:776:12: {...}? =>id= ID { if ( !(((helper...
public class class_name { public final void int_key() throws RecognitionException { Token id=null; try { // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:776:5: ({...}? =>id= ID ) // src/main/resources/org/drools/compiler/lang/DRL6Expressions.g:776:12: {...}? =>id= ID { if ( !(((helper...
public class class_name { public DateMidnight withDurationAdded(ReadableDuration durationToAdd, int scalar) { if (durationToAdd == null || scalar == 0) { return this; } return withDurationAdded(durationToAdd.getMillis(), scalar); } }
public class class_name { public DateMidnight withDurationAdded(ReadableDuration durationToAdd, int scalar) { if (durationToAdd == null || scalar == 0) { return this; // depends on control dependency: [if], data = [none] } return withDurationAdded(durationToAdd.getMillis(), scalar);...
public class class_name { public final String evalSqlCreateTable(final String pEntityName) { TableSql tableSql = getTablesMap().get(pEntityName); StringBuffer result = new StringBuffer("create table " + pEntityName.toUpperCase() + " (\n"); boolean isFirstField = true; for (Map.Entry<String, Field...
public class class_name { public final String evalSqlCreateTable(final String pEntityName) { TableSql tableSql = getTablesMap().get(pEntityName); StringBuffer result = new StringBuffer("create table " + pEntityName.toUpperCase() + " (\n"); boolean isFirstField = true; for (Map.Entry<String, Field...
public class class_name { public static String getPinYin(String chinese) { final StrBuilder result = StrUtil.strBuilder(); String strTemp = null; int len = chinese.length(); for (int j = 0; j < len; j++) { strTemp = chinese.substring(j, j + 1); int ascii = getChsAscii(strTemp); if (ascii > 0) {...
public class class_name { public static String getPinYin(String chinese) { final StrBuilder result = StrUtil.strBuilder(); String strTemp = null; int len = chinese.length(); for (int j = 0; j < len; j++) { strTemp = chinese.substring(j, j + 1); // depends on control dependency: [for], data = [j] in...
public class class_name { public static String rsaSign(String content, String privateKey) { if (null == content || privateKey == null) { return null; } try { PKCS8EncodedKeySpec priPKCS8 = new PKCS8EncodedKeySpec(Base64.decode(privateKey, Base64.DEFAULT)); ...
public class class_name { public static String rsaSign(String content, String privateKey) { if (null == content || privateKey == null) { return null; // depends on control dependency: [if], data = [none] } try { PKCS8EncodedKeySpec priPKCS8 = new PKCS8EncodedKey...
public class class_name { public EClass getIfcCraneRailFShapeProfileDef() { if (ifcCraneRailFShapeProfileDefEClass == null) { ifcCraneRailFShapeProfileDefEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(128); } return ifcCraneRailFShapeProfile...
public class class_name { public EClass getIfcCraneRailFShapeProfileDef() { if (ifcCraneRailFShapeProfileDefEClass == null) { ifcCraneRailFShapeProfileDefEClass = (EClass) EPackage.Registry.INSTANCE .getEPackage(Ifc2x3tc1Package.eNS_URI).getEClassifiers().get(128); // depends on control dependency: [if],...
public class class_name { @Override public final boolean isValid(final Object pvalue, final ConstraintValidatorContext pcontext) { if (pvalue == null) { return true; } try { String valueCountry = BeanPropertyReaderUtil.getNullSaveStringProperty(pvalue, this.fieldCountryCode); ...
public class class_name { @Override public final boolean isValid(final Object pvalue, final ConstraintValidatorContext pcontext) { if (pvalue == null) { return true; // depends on control dependency: [if], data = [none] } try { String valueCountry = BeanPropertyReaderUtil.getNullSav...
public class class_name { protected void processAnimations(FragmentAnimation animation, FragmentTransaction ft) { if (animation != null) { if (animation.isCompletedAnimation()) { ft.setCustomAnimations(animation.getEnterAnim(), animation.getExitAnim(), animat...
public class class_name { protected void processAnimations(FragmentAnimation animation, FragmentTransaction ft) { if (animation != null) { if (animation.isCompletedAnimation()) { ft.setCustomAnimations(animation.getEnterAnim(), animation.getExitAnim(), animat...
public class class_name { protected final SessionState getSessionState() { if (sessionTracker != null) { Session currentSession = sessionTracker.getSession(); return (currentSession != null) ? currentSession.getState() : null; } return null; } }
public class class_name { protected final SessionState getSessionState() { if (sessionTracker != null) { Session currentSession = sessionTracker.getSession(); return (currentSession != null) ? currentSession.getState() : null; // depends on control dependency: [if], data = [null)] ...
public class class_name { public static CompilationFailedException create(final IMessage[] errors) { final StringBuilder sb = new StringBuilder(); sb.append("AJC compiler errors:").append(LINE_SEPARATOR); for (final IMessage error : errors) { sb.append(error.toString()).append(LINE...
public class class_name { public static CompilationFailedException create(final IMessage[] errors) { final StringBuilder sb = new StringBuilder(); sb.append("AJC compiler errors:").append(LINE_SEPARATOR); for (final IMessage error : errors) { sb.append(error.toString()).append(LINE...
public class class_name { protected String getApplicationFilename() { // A project doesn't build a web application artifact but getting the // application artifacts from dependencies. e.g. liberty-assembly type // project. if ("dependencies".equals(getInstallAppPackages())) { ...
public class class_name { protected String getApplicationFilename() { // A project doesn't build a web application artifact but getting the // application artifacts from dependencies. e.g. liberty-assembly type // project. if ("dependencies".equals(getInstallAppPackages())) { ...
public class class_name { public void marshall(S3Config s3Config, ProtocolMarshaller protocolMarshaller) { if (s3Config == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(s3Config.getBucketAccessRole...
public class class_name { public void marshall(S3Config s3Config, ProtocolMarshaller protocolMarshaller) { if (s3Config == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(s3Config.getBucketAccessRole...
public class class_name { <A> AbstractFunction1<Connection, A> connectionFunction(final ConnectionCallable<A> block) { return new AbstractFunction1<Connection, A>() { public A apply(Connection connection) { try { return block.call(connection); } catch (java.sql.SQLException e) { ...
public class class_name { <A> AbstractFunction1<Connection, A> connectionFunction(final ConnectionCallable<A> block) { return new AbstractFunction1<Connection, A>() { public A apply(Connection connection) { try { return block.call(connection); // depends on control dependency: [try], data =...
public class class_name { public static Constraint digits(final Number integer, final Number fraction) { return new Constraint("digits", digitsPayload(integer, fraction)) { public boolean isValid(Object actualValue) { if (actualValue != null) { if (!((actualValue instanceof Number) || (actualValue instan...
public class class_name { public static Constraint digits(final Number integer, final Number fraction) { return new Constraint("digits", digitsPayload(integer, fraction)) { public boolean isValid(Object actualValue) { if (actualValue != null) { if (!((actualValue instanceof Number) || (actualValue instan...
public class class_name { public static String join(Object[] array, String separator) { if (array == null) { return null; } StringBuilder builder = new StringBuilder(); for (int i = 0; i < array.length; i++) { Object o = array[i]; if (i > 0) { ...
public class class_name { public static String join(Object[] array, String separator) { if (array == null) { return null; // depends on control dependency: [if], data = [none] } StringBuilder builder = new StringBuilder(); for (int i = 0; i < array.length; i++) { ...
public class class_name { public RequestLaunchTemplateData withSecurityGroups(String... securityGroups) { if (this.securityGroups == null) { setSecurityGroups(new com.amazonaws.internal.SdkInternalList<String>(securityGroups.length)); } for (String ele : securityGroups) { ...
public class class_name { public RequestLaunchTemplateData withSecurityGroups(String... securityGroups) { if (this.securityGroups == null) { setSecurityGroups(new com.amazonaws.internal.SdkInternalList<String>(securityGroups.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public static Locale parseLocale(String localeString) { if (localeString == null || localeString.length() == 0) { return Locale.getDefault(); } localeString = localeString.trim(); if (localeString == null) { return null; } ...
public class class_name { public static Locale parseLocale(String localeString) { if (localeString == null || localeString.length() == 0) { return Locale.getDefault(); // depends on control dependency: [if], data = [none] } localeString = localeString.trim(); if (localeStri...
public class class_name { private FieldDescriptor[] getExtentFieldDescriptors(TableAlias extAlias, FieldDescriptor[] fds) { FieldDescriptor[] result = new FieldDescriptor[fds.length]; for (int i = 0; i < fds.length; i++) { result[i] = extAlias.cld.getFieldDescriptorByName...
public class class_name { private FieldDescriptor[] getExtentFieldDescriptors(TableAlias extAlias, FieldDescriptor[] fds) { FieldDescriptor[] result = new FieldDescriptor[fds.length]; for (int i = 0; i < fds.length; i++) { result[i] = extAlias.cld.getFieldDescriptorByName...
public class class_name { @Nonnull @ReturnsMutableCopy public static ICommonsList <Date> computeFireTimes (final IOperableTrigger trigg, final ICalendar cal, final int numTimes) { final ICommonsList <D...
public class class_name { @Nonnull @ReturnsMutableCopy public static ICommonsList <Date> computeFireTimes (final IOperableTrigger trigg, final ICalendar cal, final int numTimes) { final ICommonsList <D...
public class class_name { public void releaseRequest(HttpRequestMessageImpl request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "releaseRequest: " + request); } this.reqPool.put(request); } }
public class class_name { public void releaseRequest(HttpRequestMessageImpl request) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "releaseRequest: " + request); // depends on control dependency: [if], data = [none] } this.reqPool.put(request); ...
public class class_name { public static String getGenericString(Field field){ String fieldDescription = field.toGenericString(); List<String> splitResult = new ArrayList<String>(); char[] charResult = fieldDescription.toCharArray(); boolean isFinished = false; int separatorIndex = fieldDescripti...
public class class_name { public static String getGenericString(Field field){ String fieldDescription = field.toGenericString(); List<String> splitResult = new ArrayList<String>(); char[] charResult = fieldDescription.toCharArray(); boolean isFinished = false; int separatorIndex = fieldDescripti...
public class class_name { private static double log(double x) { double y = 0.0; if (x < 1E-300) { y = -690.7755; } else { y = java.lang.Math.log(x); } return y; } }
public class class_name { private static double log(double x) { double y = 0.0; if (x < 1E-300) { y = -690.7755; // depends on control dependency: [if], data = [none] } else { y = java.lang.Math.log(x); // depends on control dependency: [if], data = [(x] } ...
public class class_name { public static void copyFields(Connection connection, SimpleResultSet rs, TableLocation tableLocation) throws SQLException { DatabaseMetaData meta = connection.getMetaData(); ResultSet columnsRs = meta.getColumns(tableLocation.getCatalog(null), tableLocation.getSchema(null), ...
public class class_name { public static void copyFields(Connection connection, SimpleResultSet rs, TableLocation tableLocation) throws SQLException { DatabaseMetaData meta = connection.getMetaData(); ResultSet columnsRs = meta.getColumns(tableLocation.getCatalog(null), tableLocation.getSchema(null), ...
public class class_name { public AnnotationInfoList getAnnotationInfo() { if (!scanResult.scanSpec.enableAnnotationInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableAnnotationInfo() before #scan()"); } if (annotationInfo == null || annotationInfo.length == 0) ...
public class class_name { public AnnotationInfoList getAnnotationInfo() { if (!scanResult.scanSpec.enableAnnotationInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableAnnotationInfo() before #scan()"); } if (annotationInfo == null || annotationInfo.length == 0) ...
public class class_name { protected void stop() { final EventManager eventManager = BeanManager.getInstance().getReference(EventManager.class); for (final AbstractEventListener<?> eventListener : eventListeners) { eventManager.unregisterListener(eventListener); } } }
public class class_name { protected void stop() { final EventManager eventManager = BeanManager.getInstance().getReference(EventManager.class); for (final AbstractEventListener<?> eventListener : eventListeners) { eventManager.unregisterListener(eventListener); // depends on control depende...
public class class_name { public ChannelData[] generateChildDataArray(ChannelData[] parentChannelData, boolean[] childrenCreated) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "generateChildDataArray"); } ChannelData newChannelDataArray[] = new Ch...
public class class_name { public ChannelData[] generateChildDataArray(ChannelData[] parentChannelData, boolean[] childrenCreated) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "generateChildDataArray"); // depends on control dependency: [if], data = [none] ...
public class class_name { public void setScanHeadersAllRequests(boolean scanAllRequests) { if (scanAllRequests == scanHeadersAllRequests) { return; } this.scanHeadersAllRequests = scanAllRequests; getConfig().setProperty(SCAN_HEADERS_ALL_REQUESTS, this.scanHeadersAllR...
public class class_name { public void setScanHeadersAllRequests(boolean scanAllRequests) { if (scanAllRequests == scanHeadersAllRequests) { return; // depends on control dependency: [if], data = [none] } this.scanHeadersAllRequests = scanAllRequests; getConfig().setPr...
public class class_name { private void generateOrderedDepGraph() { TopologicalOrderIterator<Predicate, DefaultEdge> iter = new TopologicalOrderIterator<Predicate, DefaultEdge>(predicateDependencyGraph); while (iter.hasNext()){ Predicate pred = iter.next(); predicatesInBottomUp.add(pred); } Collect...
public class class_name { private void generateOrderedDepGraph() { TopologicalOrderIterator<Predicate, DefaultEdge> iter = new TopologicalOrderIterator<Predicate, DefaultEdge>(predicateDependencyGraph); while (iter.hasNext()){ Predicate pred = iter.next(); predicatesInBottomUp.add(pred); // depends on...
public class class_name { public boolean isExceptionAtThisTime() { Time now = new Time(); for (TimeSpan span : timesOfDay) { if (span.isWithin(now)) { return true; } } return false; } }
public class class_name { public boolean isExceptionAtThisTime() { Time now = new Time(); for (TimeSpan span : timesOfDay) { if (span.isWithin(now)) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { public static void addPropertiesToSpec(ModuleSpec.Builder moduleSpecBuilder, Map<String, String> properties) { for (Entry<String, String> entry : properties.entrySet()) { moduleSpecBuilder.addProperty(entry.getKey(), entry.getValue()); } } }
public class class_name { public static void addPropertiesToSpec(ModuleSpec.Builder moduleSpecBuilder, Map<String, String> properties) { for (Entry<String, String> entry : properties.entrySet()) { moduleSpecBuilder.addProperty(entry.getKey(), entry.getValue()); // depends on control dependency: [fo...
public class class_name { private static double euclideanNorm(double vector[]) { int n = vector.length; if (n < 1) { return 0; } if (n == 1) { return Math.abs(vector[0]); } // this algorithm is (often) more accurate than just summing up the sq...
public class class_name { private static double euclideanNorm(double vector[]) { int n = vector.length; if (n < 1) { return 0; // depends on control dependency: [if], data = [none] } if (n == 1) { return Math.abs(vector[0]); // depends on control dependency: [...
public class class_name { @Override public final void onNext(ReadRowsResponse readRowsResponse) { if (complete) { onError(new IllegalStateException("Adding partialRow after completion")); return; } int rowsProcessed = 0; for (int i = 0; i < readRowsResponse.getChunksCount(); i++) { ...
public class class_name { @Override public final void onNext(ReadRowsResponse readRowsResponse) { if (complete) { onError(new IllegalStateException("Adding partialRow after completion")); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [non...
public class class_name { @Override public void visitMethod(Method obj) { Code c = obj.getCode(); if (c != null) { byte[] opcodes = c.getCode(); if (opcodes != null) { trPCPos = opcodes.length - 1; if (!obj.getSignature().endsWith(Values.SIG_V...
public class class_name { @Override public void visitMethod(Method obj) { Code c = obj.getCode(); if (c != null) { byte[] opcodes = c.getCode(); if (opcodes != null) { trPCPos = opcodes.length - 1; // depends on control dependency: [if], data = [none] ...
public class class_name { private void addCharts(PageParameters parameters){ List<Chart> charts = getChartFromParams(parameters); //If we have more than one chart - use SmallComponents if(charts.size() > 1){ List<SmallChartComponent> components = new ArrayList<>(); for...
public class class_name { private void addCharts(PageParameters parameters){ List<Chart> charts = getChartFromParams(parameters); //If we have more than one chart - use SmallComponents if(charts.size() > 1){ List<SmallChartComponent> components = new ArrayList<>(); for...
public class class_name { @Override public CPOptionValue remove(Serializable primaryKey) throws NoSuchCPOptionValueException { Session session = null; try { session = openSession(); CPOptionValue cpOptionValue = (CPOptionValue)session.get(CPOptionValueImpl.class, primaryKey); if (cpOptionValue ...
public class class_name { @Override public CPOptionValue remove(Serializable primaryKey) throws NoSuchCPOptionValueException { Session session = null; try { session = openSession(); CPOptionValue cpOptionValue = (CPOptionValue)session.get(CPOptionValueImpl.class, primaryKey); if (cpOptionValue ...
public class class_name { @Override public INDArray get(INDArrayIndex... indexes) { sort(); if (indexes.length == 1 && indexes[0] instanceof NDArrayIndexAll || (indexes.length == 2 && (isRowVector() && indexes[0] instanceof PointIndex && indexes[0].offset() == 0 ...
public class class_name { @Override public INDArray get(INDArrayIndex... indexes) { sort(); if (indexes.length == 1 && indexes[0] instanceof NDArrayIndexAll || (indexes.length == 2 && (isRowVector() && indexes[0] instanceof PointIndex && indexes[0].offset() == 0 ...
public class class_name { public boolean addTag(String tagName, String tagValue) { boolean result = false; if (firstIFD != null) { if (firstIFD.containsTagId(TiffTags.getTagId(tagName))) { firstIFD.removeTag(tagName); } firstIFD.addTag(tagName, tagValue); createMetadataDictionar...
public class class_name { public boolean addTag(String tagName, String tagValue) { boolean result = false; if (firstIFD != null) { if (firstIFD.containsTagId(TiffTags.getTagId(tagName))) { firstIFD.removeTag(tagName); // depends on control dependency: [if], data = [none] } firstIFD.ad...
public class class_name { public Evaluation getEvaluation(int relativeIndex) { Evaluation result = null; if (relativeIndex <= 0) { result = _currentEvaluation; while((++relativeIndex < 0) && (result != null)) { result = result.getParent(); } ...
public class class_name { public Evaluation getEvaluation(int relativeIndex) { Evaluation result = null; if (relativeIndex <= 0) { result = _currentEvaluation; // depends on control dependency: [if], data = [none] while((++relativeIndex < 0) && (result != null)) { ...
public class class_name { public Label newLabel(Label oldLabel) { if (oldLabel instanceof HasTag) { return new WordTag(oldLabel.value(), ((HasTag) oldLabel).tag()); } else { return new WordTag(oldLabel.value()); } } }
public class class_name { public Label newLabel(Label oldLabel) { if (oldLabel instanceof HasTag) { return new WordTag(oldLabel.value(), ((HasTag) oldLabel).tag()); // depends on control dependency: [if], data = [none] } else { return new WordTag(oldLabel.value()); // depends on control depend...
public class class_name { public Observable<ServiceResponse<ImageAnalysis>> analyzeImageWithServiceResponseAsync(String url, List<VisualFeatureTypes> visualFeatures, List<Details> details, String language) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.cl...
public class class_name { public Observable<ServiceResponse<ImageAnalysis>> analyzeImageWithServiceResponseAsync(String url, List<VisualFeatureTypes> visualFeatures, List<Details> details, String language) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.cl...
public class class_name { private static JsonParserIterator<TaskStatusPlus> getTasks( DruidLeaderClient indexingServiceClient, ObjectMapper jsonMapper, BytesAccumulatingResponseHandler responseHandler ) { Request request; try { request = indexingServiceClient.makeRequest( ...
public class class_name { private static JsonParserIterator<TaskStatusPlus> getTasks( DruidLeaderClient indexingServiceClient, ObjectMapper jsonMapper, BytesAccumulatingResponseHandler responseHandler ) { Request request; try { request = indexingServiceClient.makeRequest( ...
public class class_name { private static float[] normalize(float[] in) { float[] out = new float[in.length]; for (int i = 0; i < in.length; i++) { out[i] = (in[i] / 255.0f); } return out; } }
public class class_name { private static float[] normalize(float[] in) { float[] out = new float[in.length]; for (int i = 0; i < in.length; i++) { out[i] = (in[i] / 255.0f); // depends on control dependency: [for], data = [i] } return out; } }
public class class_name { public static boolean unpackEntry(File zip, String name, File file, Charset charset) { ZipFile zf = null; try { if (charset != null) { zf = new ZipFile(zip, charset); } else { zf = new ZipFile(zip); } return doUnpackEntry(zf, name, file); ...
public class class_name { public static boolean unpackEntry(File zip, String name, File file, Charset charset) { ZipFile zf = null; try { if (charset != null) { zf = new ZipFile(zip, charset); // depends on control dependency: [if], data = [none] } else { zf = new ZipFile(zip)...
public class class_name { void clusterHeartbeat(String clusterId, UpdateServerHeartbeat updateSelf, UpdateRackHeartbeat updateRack, UpdatePodSystem updatePod, long sequence) { if (startUpdate(updateRack, updatePod)) {...
public class class_name { void clusterHeartbeat(String clusterId, UpdateServerHeartbeat updateSelf, UpdateRackHeartbeat updateRack, UpdatePodSystem updatePod, long sequence) { if (startUpdate(updateRack, updatePod)) {...
public class class_name { private static String replaceIntegerStringByBooleanRepresentation(final String value) { if (value.equals("0")) { return FALSE.toString(); } else if (value.equals("1")) { return TRUE.toString(); } return value; } }
public class class_name { private static String replaceIntegerStringByBooleanRepresentation(final String value) { if (value.equals("0")) { return FALSE.toString(); // depends on control dependency: [if], data = [none] } else if (value.equals("1")) { return TRUE.toString(); // de...
public class class_name { public long calculateDuration() { if (!nodes.isEmpty()) { long endTime = 0; for (int i = 0; i < getNodes().size(); i++) { Node node = getNodes().get(i); long nodeEndTime = node.overallEndTime(); if (nodeEndTime ...
public class class_name { public long calculateDuration() { if (!nodes.isEmpty()) { long endTime = 0; for (int i = 0; i < getNodes().size(); i++) { Node node = getNodes().get(i); long nodeEndTime = node.overallEndTime(); if (nodeEndTime ...