code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public <T> String marshal(final T object) { if (object == null) { throw new IllegalArgumentException("object parameter is null"); } ObjectWriter writer = objectMapper.writer().withDefaultPrettyPrinter(); String results = null; try { ...
public class class_name { public <T> String marshal(final T object) { if (object == null) { throw new IllegalArgumentException("object parameter is null"); } ObjectWriter writer = objectMapper.writer().withDefaultPrettyPrinter(); String results = null; try { ...
public class class_name { public GetInventoryResult withEntities(InventoryResultEntity... entities) { if (this.entities == null) { setEntities(new com.amazonaws.internal.SdkInternalList<InventoryResultEntity>(entities.length)); } for (InventoryResultEntity ele : entities) { ...
public class class_name { public GetInventoryResult withEntities(InventoryResultEntity... entities) { if (this.entities == null) { setEntities(new com.amazonaws.internal.SdkInternalList<InventoryResultEntity>(entities.length)); // depends on control dependency: [if], data = [none] } ...
public class class_name { public void forceFlushWithBestEffort() { LOG.info("Forcing to flush data to socket with best effort."); while (!outgoingPacketsToWrite.isEmpty()) { int writeState = outgoingPacketsToWrite.poll().writeToChannel(socketChannel); if (writeState != 0) { LOG.info("Failed...
public class class_name { public void forceFlushWithBestEffort() { LOG.info("Forcing to flush data to socket with best effort."); while (!outgoingPacketsToWrite.isEmpty()) { int writeState = outgoingPacketsToWrite.poll().writeToChannel(socketChannel); if (writeState != 0) { LOG.info("Failed...
public class class_name { @Override public int compareTo(ChronoLocalDate other) { int cmp = Jdk8Methods.compareLongs(toEpochDay(), other.toEpochDay()); if (cmp == 0) { cmp = getChronology().compareTo(other.getChronology()); } return cmp; } }
public class class_name { @Override public int compareTo(ChronoLocalDate other) { int cmp = Jdk8Methods.compareLongs(toEpochDay(), other.toEpochDay()); if (cmp == 0) { cmp = getChronology().compareTo(other.getChronology()); // depends on control dependency: [if], data = [none] }...
public class class_name { public void updateDates(long dateLastModified, long dateExpires) { int pos = m_flexContextInfoList.size() - 1; if (pos < 0) { // ensure a valid position is used return; } (m_flexContextInfoList.get(pos)).updateDates(dateLastModified, da...
public class class_name { public void updateDates(long dateLastModified, long dateExpires) { int pos = m_flexContextInfoList.size() - 1; if (pos < 0) { // ensure a valid position is used return; // depends on control dependency: [if], data = [none] } (m_flexCont...
public class class_name { protected void open() { if (!m_enabled) { return; } m_openClose.setDown(true); if (m_maxCellWidth == 0) { initMaxCellWidth(); } int selectorWidth = m_maxCellWidth; // should not be any wider than the actual windo...
public class class_name { protected void open() { if (!m_enabled) { return; // depends on control dependency: [if], data = [none] } m_openClose.setDown(true); if (m_maxCellWidth == 0) { initMaxCellWidth(); // depends on control dependency: [if], data = [none] ...
public class class_name { public void reportAsHeaders(HttpServletResponse rsp) { rsp.addHeader("X-You-Are-Authenticated-As",authentication.getName()); if (REPORT_GROUP_HEADERS) { for (GrantedAuthority auth : authentication.getAuthorities()) { rsp.addHeader("X-You-Are-In-Grou...
public class class_name { public void reportAsHeaders(HttpServletResponse rsp) { rsp.addHeader("X-You-Are-Authenticated-As",authentication.getName()); if (REPORT_GROUP_HEADERS) { for (GrantedAuthority auth : authentication.getAuthorities()) { rsp.addHeader("X-You-Are-In-Grou...
public class class_name { public static void setAndroidLScanningDisabled(boolean disabled) { sAndroidLScanningDisabled = disabled; BeaconManager instance = sInstance; if (instance != null) { instance.applySettings(); } } }
public class class_name { public static void setAndroidLScanningDisabled(boolean disabled) { sAndroidLScanningDisabled = disabled; BeaconManager instance = sInstance; if (instance != null) { instance.applySettings(); // depends on control dependency: [if], data = [none] } ...
public class class_name { public java.util.List<RoleUsageType> getRoleUsageList() { if (roleUsageList == null) { roleUsageList = new com.amazonaws.internal.SdkInternalList<RoleUsageType>(); } return roleUsageList; } }
public class class_name { public java.util.List<RoleUsageType> getRoleUsageList() { if (roleUsageList == null) { roleUsageList = new com.amazonaws.internal.SdkInternalList<RoleUsageType>(); // depends on control dependency: [if], data = [none] } return roleUsageList; } }
public class class_name { private boolean possiblySuspendOrResumeSupervisorInternal(String id, boolean suspend) { Pair<Supervisor, SupervisorSpec> pair = supervisors.get(id); if (pair == null || pair.rhs.isSuspended() == suspend) { return false; } SupervisorSpec nextState = suspend ? pair.rhs....
public class class_name { private boolean possiblySuspendOrResumeSupervisorInternal(String id, boolean suspend) { Pair<Supervisor, SupervisorSpec> pair = supervisors.get(id); if (pair == null || pair.rhs.isSuspended() == suspend) { return false; // depends on control dependency: [if], data = [none] ...
public class class_name { protected int unicodeEscapeLexer(int c) throws IOException { int ret = 0; // ignore 'u' (assume c==\ now) and read 4 hex digits c = in.read(); code.clear(); try { for (int i = 0; i < 4; i++) { c = in.read(); i...
public class class_name { protected int unicodeEscapeLexer(int c) throws IOException { int ret = 0; // ignore 'u' (assume c==\ now) and read 4 hex digits c = in.read(); code.clear(); try { for (int i = 0; i < 4; i++) { c = in.read(); // depends on con...
public class class_name { public boolean saveJMXSettings() { Log log = config.getLog(); // create and validate file File settingsFile = getSettingsFile(); // create the jmx properties state Properties properties = new Properties(); sa...
public class class_name { public boolean saveJMXSettings() { Log log = config.getLog(); // create and validate file File settingsFile = getSettingsFile(); // create the jmx properties state Properties properties = new Properties(); sa...
public class class_name { public void negotiateFormats(MediaDescriptionField media) { // Clean currently offered formats this.offeredFormats.clean(); // Map payload types to RTP Format for (String payloadType : media.getPayloadTypes()) { RTPFormat format; try { int payloadTypeInt...
public class class_name { public void negotiateFormats(MediaDescriptionField media) { // Clean currently offered formats this.offeredFormats.clean(); // Map payload types to RTP Format for (String payloadType : media.getPayloadTypes()) { RTPFormat format; try { int payloadTypeInt...
public class class_name { public EClass getIfcLuminousFluxMeasure() { if (ifcLuminousFluxMeasureEClass == null) { ifcLuminousFluxMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(700); } return ifcLuminousFluxMeasureEClass; } }
public class class_name { public EClass getIfcLuminousFluxMeasure() { if (ifcLuminousFluxMeasureEClass == null) { ifcLuminousFluxMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(700); // depends on control dependency: [if], data = [none] }...
public class class_name { public static <T> T objectDeepCopyWithBlackList(Object from, Object to, Class<?> baseClass, String... blockFields) { List<String> bFields = getDeclaredFields(baseClass); for (String blockField : blockFields) { bFields.add(blockField); } return ob...
public class class_name { public static <T> T objectDeepCopyWithBlackList(Object from, Object to, Class<?> baseClass, String... blockFields) { List<String> bFields = getDeclaredFields(baseClass); for (String blockField : blockFields) { bFields.add(blockField); // depends on control depend...
public class class_name { @Override public void store(final URI type, final Record record) { if (KS.RESOURCE.equals(type)) { getHbaseUtils().processPut(record, hbaseUtils.getHbaseTableNamePrefix() + DEFAULT_RES_TAB_NAME, DEFAULT_RES_FAM_NAME, ...
public class class_name { @Override public void store(final URI type, final Record record) { if (KS.RESOURCE.equals(type)) { getHbaseUtils().processPut(record, hbaseUtils.getHbaseTableNamePrefix() + DEFAULT_RES_TAB_NAME, DEFAULT_RES_FAM_NAME, ...
public class class_name { public Object repushContextClassLoader(Object origLoader, ClassLoader loader) { if (origLoader == UNCHANGED) { return pushContextClassLoader(loader); } setContextClassLoader(Thread.currentThread(), loader); return origLoader; } }
public class class_name { public Object repushContextClassLoader(Object origLoader, ClassLoader loader) { if (origLoader == UNCHANGED) { return pushContextClassLoader(loader); // depends on control dependency: [if], data = [none] } setContextClassLoader(Thread.currentThread(), load...
public class class_name { public static SObject of(String key, InputStream is) { try { return new InputStreamSObject(key, $.requireNotNull(is)); } catch (Exception e) { return getInvalidObject(key, e); } } }
public class class_name { public static SObject of(String key, InputStream is) { try { return new InputStreamSObject(key, $.requireNotNull(is)); // depends on control dependency: [try], data = [none] } catch (Exception e) { return getInvalidObject(key, e); } // depends o...
public class class_name { public void marshall(GetWorkGroupRequest getWorkGroupRequest, ProtocolMarshaller protocolMarshaller) { if (getWorkGroupRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(GetWorkGroupRequest getWorkGroupRequest, ProtocolMarshaller protocolMarshaller) { if (getWorkGroupRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { protected void error(E error) { this.error = checkNotNull(error); this.completed = true; for (Callback<T, E> callback : toBeNotified) { callback.error(error); } } }
public class class_name { protected void error(E error) { this.error = checkNotNull(error); this.completed = true; for (Callback<T, E> callback : toBeNotified) { callback.error(error); // depends on control dependency: [for], data = [callback] } } }
public class class_name { public static void main(String[] args) throws IOException, NoSuchAlgorithmException, InvalidKeyException, XmlPullParserException { try { /* play.min.io for test and development. */ MinioClient minioClient = new MinioClient("https://play.min.io:9000", "Q3AM3UQ867SPQQA43P2F"...
public class class_name { public static void main(String[] args) throws IOException, NoSuchAlgorithmException, InvalidKeyException, XmlPullParserException { try { /* play.min.io for test and development. */ MinioClient minioClient = new MinioClient("https://play.min.io:9000", "Q3AM3UQ867SPQQA43P2F"...
public class class_name { public Observable<JobDetails> findScheduledJobs(Date timeSlice, rx.Scheduler scheduler) { return session.executeAndFetch(findAllScheduled.bind(), scheduler) .filter(filterNullJobs) .filter(row -> row.getTimestamp(0).compareTo(timeSlice) <= 0) ...
public class class_name { public Observable<JobDetails> findScheduledJobs(Date timeSlice, rx.Scheduler scheduler) { return session.executeAndFetch(findAllScheduled.bind(), scheduler) .filter(filterNullJobs) .filter(row -> row.getTimestamp(0).compareTo(timeSlice) <= 0) ...
public class class_name { public String getObjectId(Object obj) { Identity oid = null; PersistenceBroker broker = null; try { if (getCurrentDatabase() != null) { /** * is there an open database we are calling getObj...
public class class_name { public String getObjectId(Object obj) { Identity oid = null; PersistenceBroker broker = null; try { if (getCurrentDatabase() != null) { /** * is there an open database we are calling getObj...
public class class_name { @Override public final void setPickUpPlace(final PickUpPlace pPickUpPlace) { this.pickUpPlace = pPickUpPlace; if (this.itsId == null) { this.itsId = new SeServicePlaceId(); } this.itsId.setPickUpPlace(this.pickUpPlace); } }
public class class_name { @Override public final void setPickUpPlace(final PickUpPlace pPickUpPlace) { this.pickUpPlace = pPickUpPlace; if (this.itsId == null) { this.itsId = new SeServicePlaceId(); // depends on control dependency: [if], data = [none] } this.itsId.setPickUpPlace(this.pickUpPla...
public class class_name { public boolean postProcess() { boolean success = true; if ( options.getStylesheetFile() == null ) { success &= copyResource(options.getJavadocVersion().getStylesheet(), "stylesheet.css", "CSS stylesheet"); } if ( options.isHighlightEnabled() ) { ...
public class class_name { public boolean postProcess() { boolean success = true; if ( options.getStylesheetFile() == null ) { success &= copyResource(options.getJavadocVersion().getStylesheet(), "stylesheet.css", "CSS stylesheet"); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public String marshall(final T obj) { try { return obj.name(); } catch (final RuntimeException e) { throw failure(e, "Unable to marshall the instance of " + obj.getClass() + " into a string"); } } }
public class class_name { @Override public String marshall(final T obj) { try { return obj.name(); // depends on control dependency: [try], data = [none] } catch (final RuntimeException e) { throw failure(e, "Unable to marshall the instance of " + obj.getClass() + " into a s...
public class class_name { protected MongodbQueue<ID, DATA> setMongoClient(MongoClient mongoClient, boolean setMyOwnMongoClient) { if (myOwnMongoClient && this.mongoClient != null) { this.mongoClient.close(); } this.mongoClient = mongoClient; myOwnMongoClient = se...
public class class_name { protected MongodbQueue<ID, DATA> setMongoClient(MongoClient mongoClient, boolean setMyOwnMongoClient) { if (myOwnMongoClient && this.mongoClient != null) { this.mongoClient.close(); // depends on control dependency: [if], data = [none] } this.mo...
public class class_name { public static void main(String[] args) { if (args.length != 2) { System.err.println("Usage: StyleImport <url> <output_file>"); System.exit(0); } try { StyleImport si = new StyleImport(args[0]); ...
public class class_name { public static void main(String[] args) { if (args.length != 2) { System.err.println("Usage: StyleImport <url> <output_file>"); // depends on control dependency: [if], data = [none] System.exit(0); // depends on control dependency: [if], data = [none...
public class class_name { private JsDocToken recordDescription(JsDocToken token) { // Find marker's description (if applicable). if (jsdocBuilder.shouldParseDocumentation()) { ExtractionInfo descriptionInfo = extractMultilineTextualBlock(token); token = descriptionInfo.token; } else { tok...
public class class_name { private JsDocToken recordDescription(JsDocToken token) { // Find marker's description (if applicable). if (jsdocBuilder.shouldParseDocumentation()) { ExtractionInfo descriptionInfo = extractMultilineTextualBlock(token); token = descriptionInfo.token; // depends on control ...
public class class_name { public static void invokeInThread(DirectInvocation invocation) { boolean retry = true; while (retry) { invocation.run(); if (invocation.retry == null) { retry = false; } else { try { if (in...
public class class_name { public static void invokeInThread(DirectInvocation invocation) { boolean retry = true; while (retry) { invocation.run(); // depends on control dependency: [while], data = [none] if (invocation.retry == null) { retry = false; // depends o...
public class class_name { public int doFilter(Workspace ws, DataBinder binder, ExecutionContext ctx) throws DataException, ServiceException { String configFileName = (String) ctx.getCachedObject("filterParameter"); try { ClassLoader cl = getClass().getClassLoader(); Enumeration<URL> propFiles = cl...
public class class_name { public int doFilter(Workspace ws, DataBinder binder, ExecutionContext ctx) throws DataException, ServiceException { String configFileName = (String) ctx.getCachedObject("filterParameter"); try { ClassLoader cl = getClass().getClassLoader(); Enumeration<URL> propFiles = cl...
public class class_name { public void applyProperties(Properties props) { Iterator<?> iter = props.keySet().iterator(); while (iter.hasNext()) { String fullName = (String) iter.next(); String value = props.getProperty(fullName).trim(); if (fullName.indexOf(":") != -1...
public class class_name { public void applyProperties(Properties props) { Iterator<?> iter = props.keySet().iterator(); while (iter.hasNext()) { String fullName = (String) iter.next(); String value = props.getProperty(fullName).trim(); if (fullName.indexOf(":") != -1...
public class class_name { @Deactivate protected synchronized void deactivate(int reason) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Deactivated: " + reason); } super.deactivate(MY_ALIAS, reason); repertoireMap.clear(); re...
public class class_name { @Deactivate protected synchronized void deactivate(int reason) { if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) { Tr.event(tc, "Deactivated: " + reason); // depends on control dependency: [if], data = [none] } super.deactivate(MY_ALIA...
public class class_name { void addColumn(String family, String qualifier, Class<?> clazz) { Preconditions.checkNotNull(family, "family name"); Preconditions.checkNotNull(qualifier, "qualifier name"); Preconditions.checkNotNull(clazz, "class type"); Map<String, TypeInformation<?>> qualifierMap = this.familyMap....
public class class_name { void addColumn(String family, String qualifier, Class<?> clazz) { Preconditions.checkNotNull(family, "family name"); Preconditions.checkNotNull(qualifier, "qualifier name"); Preconditions.checkNotNull(clazz, "class type"); Map<String, TypeInformation<?>> qualifierMap = this.familyMap....
public class class_name { @Override public int countByG_K_T(long groupId, String key, int type) { FinderPath finderPath = FINDER_PATH_COUNT_BY_G_K_T; Object[] finderArgs = new Object[] { groupId, key, type }; Long count = (Long)finderCache.getResult(finderPath, finderArgs, this); if (count == null) { St...
public class class_name { @Override public int countByG_K_T(long groupId, String key, int type) { FinderPath finderPath = FINDER_PATH_COUNT_BY_G_K_T; Object[] finderArgs = new Object[] { groupId, key, type }; Long count = (Long)finderCache.getResult(finderPath, finderArgs, this); if (count == null) { St...
public class class_name { protected String getEncryptionKey() { if (extendedMetadata != null && extendedMetadata.getEncryptionKey() != null) { return extendedMetadata.getEncryptionKey(); } else { return keyManager.getDefaultCredentialName(); } } }
public class class_name { protected String getEncryptionKey() { if (extendedMetadata != null && extendedMetadata.getEncryptionKey() != null) { return extendedMetadata.getEncryptionKey(); // depends on control dependency: [if], data = [none] } else { return keyManager.getDefaultC...
public class class_name { private static Map<String,String> getRankMap(Object[] params){ if (params == null) { return null; } HashMap<String,String> result = new HashMap<>(); for (int i = 0; i < params.length; i++) { String name = params[i] instanceof Parameter ?...
public class class_name { private static Map<String,String> getRankMap(Object[] params){ if (params == null) { return null; // depends on control dependency: [if], data = [none] } HashMap<String,String> result = new HashMap<>(); for (int i = 0; i < params.length; i++) { ...
public class class_name { public static LongStream of(final Supplier<LongList> supplier) { final LongIterator iter = new LongIteratorEx() { private LongIterator iterator = null; @Override public boolean hasNext() { if (iterator == null) { ...
public class class_name { public static LongStream of(final Supplier<LongList> supplier) { final LongIterator iter = new LongIteratorEx() { private LongIterator iterator = null; @Override public boolean hasNext() { if (iterator == null) { ...
public class class_name { protected <T> TypedResult<T> handleMissingResult() { // check if the monitoring thread is still there // we need to wait until we know what is going on if (monitoringThread.isAlive()) { return TypedResult.empty(); } // the job finished with an exception else if (executionExcept...
public class class_name { protected <T> TypedResult<T> handleMissingResult() { // check if the monitoring thread is still there // we need to wait until we know what is going on if (monitoringThread.isAlive()) { return TypedResult.empty(); // depends on control dependency: [if], data = [none] } // the job...
public class class_name { @Override public String getUserFacingMessage() { final StringBuilder bldr = new StringBuilder(); if (causes != null && causes.size() > 1) { bldr.append("SYMBOL WARNINGS"); } else { bldr.append("SYMBOL WARNING"); } final Str...
public class class_name { @Override public String getUserFacingMessage() { final StringBuilder bldr = new StringBuilder(); if (causes != null && causes.size() > 1) { bldr.append("SYMBOL WARNINGS"); // depends on control dependency: [if], data = [none] } else { bldr....
public class class_name { public void marshall(S3ContentLocation s3ContentLocation, ProtocolMarshaller protocolMarshaller) { if (s3ContentLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(s...
public class class_name { public void marshall(S3ContentLocation s3ContentLocation, ProtocolMarshaller protocolMarshaller) { if (s3ContentLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(s...
public class class_name { public static MaskedText maskInUrl(String url){ MaskedText result = new MaskedText(); result.setClearText(url); result.setText(url); result.setMasked(null); if (url != null){ Matcher urlMatcher = URL_PATTERN.matcher(url); if (urlMatcher.find()) { Matcher pwdMat...
public class class_name { public static MaskedText maskInUrl(String url){ MaskedText result = new MaskedText(); result.setClearText(url); result.setText(url); result.setMasked(null); if (url != null){ Matcher urlMatcher = URL_PATTERN.matcher(url); if (urlMatcher.find()) { Matcher pwdMat...
public class class_name { public static void apply(Face type, TextView... textViews){ if(textViews.length == 0) return; for (int i = 0; i < textViews.length; i++) { apply(textViews[i], type); } } }
public class class_name { public static void apply(Face type, TextView... textViews){ if(textViews.length == 0) return; for (int i = 0; i < textViews.length; i++) { apply(textViews[i], type); // depends on control dependency: [for], data = [i] } } }
public class class_name { private boolean isSwitcherChange(boolean switcherStatus) { boolean ret = false; if (switcherStatus != lastHeartBeatSwitcherStatus) { ret = true; lastHeartBeatSwitcherStatus = switcherStatus; logger.info("heartbeat switcher change to " + switcherStatus); } return ret; } }
public class class_name { private boolean isSwitcherChange(boolean switcherStatus) { boolean ret = false; if (switcherStatus != lastHeartBeatSwitcherStatus) { ret = true; // depends on control dependency: [if], data = [none] lastHeartBeatSwitcherStatus = switcherStatus; // depends on control dependency: [if]...
public class class_name { static String concatFilePathNames(String leftPath, String rightPath, String fileSep) { String leftPathTrimmed = leftPath.trim(); String rightPathTrimmed = rightPath.trim(); if (leftPathTrimmed.isEmpty()) ...
public class class_name { static String concatFilePathNames(String leftPath, String rightPath, String fileSep) { String leftPathTrimmed = leftPath.trim(); String rightPathTrimmed = rightPath.trim(); if (leftPathTrimmed.isEmpty()) ...
public class class_name { private final boolean addSlot(final int slot, final int key) { if (slot < allocated) { moveElementsRight(keys, slot); } allocated++; keys[slot] = key; return true; } }
public class class_name { private final boolean addSlot(final int slot, final int key) { if (slot < allocated) { moveElementsRight(keys, slot); // depends on control dependency: [if], data = [none] } allocated++; keys[slot] = key; return true; } }
public class class_name { public float[][] getPhi() { float[][] phi = new float[K][V]; if (SAMPLE_LAG > 0) { for (int k = 0; k < K; k++) { for (int w = 0; w < V; w++) { phi[k][w] = phisum[k][w] / numstats; } } }...
public class class_name { public float[][] getPhi() { float[][] phi = new float[K][V]; if (SAMPLE_LAG > 0) { for (int k = 0; k < K; k++) { for (int w = 0; w < V; w++) { phi[k][w] = phisum[k][w] / numstats; // depends on control dependency: [for], da...
public class class_name { public static DoubleList toDoubleList(Collection<?> inputList, String propertyPath) { if (inputList.size() == 0) { return new DoubleList(0); } DoubleList outputList = new DoubleList(inputList.size()); if (propertyPath.contains(".") || propertyPath...
public class class_name { public static DoubleList toDoubleList(Collection<?> inputList, String propertyPath) { if (inputList.size() == 0) { return new DoubleList(0); // depends on control dependency: [if], data = [0)] } DoubleList outputList = new DoubleList(inputList.size()); ...
public class class_name { private void apply(HyphenationPattern pattern, int pos) { int internalOffset = pos - 2; HyphenationPatternPosition[] positions = pattern.getHyphenationPositions(); for (HyphenationPatternPosition hyphenationPosition : positions) { int i = hyphenationPosition.index + in...
public class class_name { private void apply(HyphenationPattern pattern, int pos) { int internalOffset = pos - 2; HyphenationPatternPosition[] positions = pattern.getHyphenationPositions(); for (HyphenationPatternPosition hyphenationPosition : positions) { int i = hyphenationPosition.index + in...
public class class_name { private void processUDF(UDFTypeType udf) { FieldTypeClass fieldType = FIELD_TYPE_MAP.get(udf.getSubjectArea()); if (fieldType != null) { UserFieldDataType dataType = UserFieldDataType.getInstanceFromXmlName(udf.getDataType()); String name = udf.getTitle(...
public class class_name { private void processUDF(UDFTypeType udf) { FieldTypeClass fieldType = FIELD_TYPE_MAP.get(udf.getSubjectArea()); if (fieldType != null) { UserFieldDataType dataType = UserFieldDataType.getInstanceFromXmlName(udf.getDataType()); String name = udf.getTitle(...
public class class_name { public static Titan0Edge createEdge(Titan0Graph graph, Edge source) { if (source == null) { return null; } return new Titan0Edge(graph, source); } }
public class class_name { public static Titan0Edge createEdge(Titan0Graph graph, Edge source) { if (source == null) { return null; // depends on control dependency: [if], data = [none] } return new Titan0Edge(graph, source); } }
public class class_name { public Iterable<GitHub> findGithubConfig(Predicate<GitHubServerConfig> match) { Function<GitHubServerConfig, GitHub> loginFunction = loginToGithub(); if (Objects.isNull(loginFunction)) { return Collections.emptyList(); } // try all the credentials ...
public class class_name { public Iterable<GitHub> findGithubConfig(Predicate<GitHubServerConfig> match) { Function<GitHubServerConfig, GitHub> loginFunction = loginToGithub(); if (Objects.isNull(loginFunction)) { return Collections.emptyList(); // depends on control dependency: [if], data =...
public class class_name { protected final PackageDescr compilationUnit(PackageDescrBuilder pkg) throws RecognitionException { try { // package declaration? if (input.LA(1) != DRL6Lexer.EOF && helper.validateIdentifierKey(DroolsSoftKeywords.PACKAGE)) { String pkgName = pa...
public class class_name { protected final PackageDescr compilationUnit(PackageDescrBuilder pkg) throws RecognitionException { try { // package declaration? if (input.LA(1) != DRL6Lexer.EOF && helper.validateIdentifierKey(DroolsSoftKeywords.PACKAGE)) { String pkgName = pa...
public class class_name { @SuppressWarnings({"unused", "WeakerAccess"}) void pushInAppNotificationStateEvent(boolean clicked, CTInAppNotification data, Bundle customData) { JSONObject event = new JSONObject(); try { JSONObject notif = getWzrkFields(data); if (customData != ...
public class class_name { @SuppressWarnings({"unused", "WeakerAccess"}) void pushInAppNotificationStateEvent(boolean clicked, CTInAppNotification data, Bundle customData) { JSONObject event = new JSONObject(); try { JSONObject notif = getWzrkFields(data); if (customData != ...
public class class_name { public static void loadPropsBySuffix(final File jobPath, final Props props, final String... suffixes) { try { if (jobPath.isDirectory()) { final File[] files = jobPath.listFiles(); if (files != null) { for (final File file : files) { loadP...
public class class_name { public static void loadPropsBySuffix(final File jobPath, final Props props, final String... suffixes) { try { if (jobPath.isDirectory()) { final File[] files = jobPath.listFiles(); if (files != null) { for (final File file : files) { loadP...
public class class_name { public static Router register(Router router, Object... restApi) { Assert.notNull(router, "Missing vertx router!"); Assert.isTrue(restApi != null && restApi.length > 0, "Missing REST API class object!"); assert restApi != null; for (Object api : restApi) { if (api == null) { ...
public class class_name { public static Router register(Router router, Object... restApi) { Assert.notNull(router, "Missing vertx router!"); Assert.isTrue(restApi != null && restApi.length > 0, "Missing REST API class object!"); assert restApi != null; for (Object api : restApi) { if (api == null) { ...
public class class_name { public boolean add(String field, RDFNode result) { if (!this.result.containsKey(field)) { this.result.put(field, new ArrayList<RDFNode>()); } this.result.get(field).add(result); return true; } }
public class class_name { public boolean add(String field, RDFNode result) { if (!this.result.containsKey(field)) { this.result.put(field, new ArrayList<RDFNode>()); // depends on control dependency: [if], data = [none] } this.result.get(field).add(result); return true; ...
public class class_name { protected static StatementGroup findStatementGroup(PropertyIdValue pid, StatementDocument document) { for (StatementGroup sg : document.getStatementGroups()) { if (pid.equals(sg.getProperty())) { return sg; } } return null; } }
public class class_name { protected static StatementGroup findStatementGroup(PropertyIdValue pid, StatementDocument document) { for (StatementGroup sg : document.getStatementGroups()) { if (pid.equals(sg.getProperty())) { return sg; // depends on control dependency: [if], data = [none] } } return nu...
public class class_name { public static Schema switchNamespace(Schema schema, Map<String, String> namespaceOverride) { Schema newSchema; String newNamespace = StringUtils.EMPTY; // Process all Schema Types // (Primitives are simply cloned) switch (schema.getType()) { case ENUM: newNa...
public class class_name { public static Schema switchNamespace(Schema schema, Map<String, String> namespaceOverride) { Schema newSchema; String newNamespace = StringUtils.EMPTY; // Process all Schema Types // (Primitives are simply cloned) switch (schema.getType()) { case ENUM: newNa...
public class class_name { public void makeConfigParserLive() { if(stagedConfigParser != null) { notifyListeners(listeners, stagedConfigParser, log); liveConfigParser = stagedConfigParser; latch.countDown(); } } }
public class class_name { public void makeConfigParserLive() { if(stagedConfigParser != null) { notifyListeners(listeners, stagedConfigParser, log); // depends on control dependency: [if], data = [none] liveConfigParser = stagedConfigParser; // depends on control dependency: [if], data = [none]...
public class class_name { void displayResourceInfo(CmsResultItemBean info) { if (m_hasImage) { setImagePreview(info.getPath(), info.getViewLink()); m_resourceInfoPanel.add(new CmsImageInfo(info, info.getDimension())); } else { CmsListItemWidget widget = new CmsListI...
public class class_name { void displayResourceInfo(CmsResultItemBean info) { if (m_hasImage) { setImagePreview(info.getPath(), info.getViewLink()); // depends on control dependency: [if], data = [none] m_resourceInfoPanel.add(new CmsImageInfo(info, info.getDimension())); // depends on ...
public class class_name { public boolean evaluate(Object feature) { // Checks to ensure that the attribute has been set if (attribute == null) { return false; } // Note that this converts the attribute to a string // for comparison. Unlike the math or geometry filters, which // require specific types to...
public class class_name { public boolean evaluate(Object feature) { // Checks to ensure that the attribute has been set if (attribute == null) { return false; // depends on control dependency: [if], data = [none] } // Note that this converts the attribute to a string // for comparison. Unlike the math or ...
public class class_name { void kickOffTimer() throws UnavailableException { final String methodName = "kickOffTimer"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } synchronized (_timerLock) ...
public class class_name { void kickOffTimer() throws UnavailableException { final String methodName = "kickOffTimer"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } synchronized (_timerLock) ...
public class class_name { public void registerJsonValueProcessor( String key, JsonValueProcessor jsonValueProcessor ) { if( key != null && jsonValueProcessor != null ) { keyMap.put( key, jsonValueProcessor ); } } }
public class class_name { public void registerJsonValueProcessor( String key, JsonValueProcessor jsonValueProcessor ) { if( key != null && jsonValueProcessor != null ) { keyMap.put( key, jsonValueProcessor ); // depends on control dependency: [if], data = [( key] } } }
public class class_name { public static String toJSONString(Object o) { try { return objectMapper.writer().without(SerializationFeature.INDENT_OUTPUT).writeValueAsString(o); } catch (JsonProcessingException e) { throw new RuntimeException(e); } } }
public class class_name { public static String toJSONString(Object o) { try { return objectMapper.writer().without(SerializationFeature.INDENT_OUTPUT).writeValueAsString(o); // depends on control dependency: [try], data = [none] } catch (JsonProcessingException e) { throw new RuntimeException(e); ...
public class class_name { void decreaseKBy1() { if (k_ <= 1) { throw new SketchesStateException("Cannot decrease k below 1 in union"); } if ((h_ == 0) && (r_ == 0)) { // exact mode, but no data yet; this reduction is somewhat gratuitous --k_; } else if ((h_ > 0) && (r_ == 0)) { ...
public class class_name { void decreaseKBy1() { if (k_ <= 1) { throw new SketchesStateException("Cannot decrease k below 1 in union"); } if ((h_ == 0) && (r_ == 0)) { // exact mode, but no data yet; this reduction is somewhat gratuitous --k_; // depends on control dependency: [if], data ...
public class class_name { public final void increaseWrittenBytes(int increment, long currentTime) { if (increment <= 0) { return; } writtenBytes += increment; lastWriteTime = currentTime; idleCountForBoth.set(0); idleCountForWrite.set(0); if (getSer...
public class class_name { public final void increaseWrittenBytes(int increment, long currentTime) { if (increment <= 0) { return; // depends on control dependency: [if], data = [none] } writtenBytes += increment; lastWriteTime = currentTime; idleCountForBoth.set(0);...
public class class_name { public synchronized InstanceStatus setStatus(InstanceStatus status) { if (this.status != status) { InstanceStatus prev = this.status; this.status = status; setIsDirty(); return prev; } return null; } }
public class class_name { public synchronized InstanceStatus setStatus(InstanceStatus status) { if (this.status != status) { InstanceStatus prev = this.status; this.status = status; // depends on control dependency: [if], data = [none] setIsDirty(); // depends on control dep...
public class class_name { public String generateAliasForSharedKey() { String alias = null; if (serverName != null) { alias = serverName + "Alias" + new Integer(aliasIncrement).toString(); } aliasIncrement++; return alias; } }
public class class_name { public String generateAliasForSharedKey() { String alias = null; if (serverName != null) { alias = serverName + "Alias" + new Integer(aliasIncrement).toString(); // depends on control dependency: [if], data = [none] } aliasIncrement++; retur...
public class class_name { public void suspend() { if (suspension.compareAndSet(null, new CountDownLatch(1))) { try { suspendBarrier.await(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); } catch (BrokenBarrierException e) { LOG.error("Exception dur...
public class class_name { public void suspend() { if (suspension.compareAndSet(null, new CountDownLatch(1))) { try { suspendBarrier.await(); // depends on control dependency: [try], data = [none] } catch (InterruptedException e) { Thread.currentThread().interrupt(); } catch (Broke...
public class class_name { private void remapComposite(FontFileReader in, Map glyphs, int glyphOffset, Integer glyphIdx) throws IOException { int offset = glyphOffset + (int)mtxTab[glyphIdx.intValue()].getOffset() + 10; ...
public class class_name { private void remapComposite(FontFileReader in, Map glyphs, int glyphOffset, Integer glyphIdx) throws IOException { int offset = glyphOffset + (int)mtxTab[glyphIdx.intValue()].getOffset() + 10; ...
public class class_name { @SuppressWarnings({"unused", "WeakerAccess"}) private void showNotificationIfAvailable(final Context context){ if(!this.config.isAnalyticsOnly()) { runOnNotificationQueue(new Runnable() { @Override public void run() { ...
public class class_name { @SuppressWarnings({"unused", "WeakerAccess"}) private void showNotificationIfAvailable(final Context context){ if(!this.config.isAnalyticsOnly()) { runOnNotificationQueue(new Runnable() { @Override public void run() { ...
public class class_name { public int getMaxEndPosition(int docId, int position) throws IOException { if (ignoreSpans != null && docId == currentDocId) { if (position < minimumPosition) { throw new IOException( "Unexpected position, should be >= " + minimumPosition + "!"); } co...
public class class_name { public int getMaxEndPosition(int docId, int position) throws IOException { if (ignoreSpans != null && docId == currentDocId) { if (position < minimumPosition) { throw new IOException( "Unexpected position, should be >= " + minimumPosition + "!"); } co...
public class class_name { protected ScriptBuilder bigNum(int index, long num) { final byte[] data; if (num == 0) { data = new byte[0]; } else { Stack<Byte> result = new Stack<>(); final boolean neg = num < 0; long absvalue = Math.abs(num); ...
public class class_name { protected ScriptBuilder bigNum(int index, long num) { final byte[] data; if (num == 0) { data = new byte[0]; // depends on control dependency: [if], data = [none] } else { Stack<Byte> result = new Stack<>(); final boolean neg = num ...
public class class_name { static void assertEquals(String message, Object comparison1, Object comparison2) { if(comparison1 == comparison2) { return; } if(comparison1.equals(comparison2)) { return; } System.err.println(message); }...
public class class_name { static void assertEquals(String message, Object comparison1, Object comparison2) { if(comparison1 == comparison2) { return; // depends on control dependency: [if], data = [none] } if(comparison1.equals(comparison2)) { return;...
public class class_name { public void marshall(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest, ProtocolMarshaller protocolMarshaller) { if (enableSharingWithAwsOrganizationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { public void marshall(EnableSharingWithAwsOrganizationRequest enableSharingWithAwsOrganizationRequest, ProtocolMarshaller protocolMarshaller) { if (enableSharingWithAwsOrganizationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); ...
public class class_name { static IOException ioeToSocketException(IOException ioe) { if (ioe.getClass().equals(IOException.class)) { // "se" could be a new class in stead of SocketException. IOException se = new SocketException("Original Exception : " + ioe); se.initCause(ioe); /* Change th...
public class class_name { static IOException ioeToSocketException(IOException ioe) { if (ioe.getClass().equals(IOException.class)) { // "se" could be a new class in stead of SocketException. IOException se = new SocketException("Original Exception : " + ioe); se.initCause(ioe); // depends on cont...
public class class_name { void assign(IAtomContainer container, String[] symbs, EdgeToBondMap bonds, int[][] graph, Set<IBond> mmffArom) { int[] contribution = new int[graph.length]; int[] doubleBonds = new int[graph.length]; Arrays.fill(doubleBonds, -1); setupContributionAndDoubleBond...
public class class_name { void assign(IAtomContainer container, String[] symbs, EdgeToBondMap bonds, int[][] graph, Set<IBond> mmffArom) { int[] contribution = new int[graph.length]; int[] doubleBonds = new int[graph.length]; Arrays.fill(doubleBonds, -1); setupContributionAndDoubleBond...
public class class_name { public Object getLambdaArgument(String name) { for (Map<String,Object> arguments : lambdaArguments) { Object result = arguments.get(name); if (result != null) { return result; } } return null; } }
public class class_name { public Object getLambdaArgument(String name) { for (Map<String,Object> arguments : lambdaArguments) { Object result = arguments.get(name); if (result != null) { return result; // depends on control dependency: [if], data = [none] } ...
public class class_name { public static String md5Encode(String strIn) { try { MessageDigest md5 = MessageDigest.getInstance("md5"); byte[] bin = toBytes(strIn); byte[] bout = md5.digest(bin); String strOut = javax.xml.bind.DatatypeConverter.printBase64Binar...
public class class_name { public static String md5Encode(String strIn) { try { MessageDigest md5 = MessageDigest.getInstance("md5"); byte[] bin = toBytes(strIn); byte[] bout = md5.digest(bin); String strOut = javax.xml.bind.DatatypeConverter.printBase64Binar...
public class class_name { @Override public Schema transform(Schema inputSchema) { Schema.Builder newSchema = new Schema.Builder(); for (int i = 0; i < inputSchema.numColumns(); i++) { if (inputSchema.getType(i) == ColumnType.String) { newSchema.addColumnDouble(inputSchem...
public class class_name { @Override public Schema transform(Schema inputSchema) { Schema.Builder newSchema = new Schema.Builder(); for (int i = 0; i < inputSchema.numColumns(); i++) { if (inputSchema.getType(i) == ColumnType.String) { newSchema.addColumnDouble(inputSchem...
public class class_name { public URLTemplate getURLTemplate( String name ) { URLTemplate urlTemplate = null; if ( _servletContext != null ) { URLTemplatesFactory urlTemplatesFactory = URLTemplatesFactory.getURLTemplatesFactory( _servletContext ); if ( urlTemplatesFa...
public class class_name { public URLTemplate getURLTemplate( String name ) { URLTemplate urlTemplate = null; if ( _servletContext != null ) { URLTemplatesFactory urlTemplatesFactory = URLTemplatesFactory.getURLTemplatesFactory( _servletContext ); if ( urlTemplatesFa...
public class class_name { @Override public void release(final T t, final boolean prune) { if (t == null) { throw new IllegalArgumentException("Can not return a null item to the pool"); } if (closed) { close(t); return; } if (prune) { ...
public class class_name { @Override public void release(final T t, final boolean prune) { if (t == null) { throw new IllegalArgumentException("Can not return a null item to the pool"); } if (closed) { close(t); // depends on control dependency: [if], data = [none] ...
public class class_name { private boolean validInstanceOfExpression(Node expr) { // The expression must have two children: // - The instanceOf keyword // - A string if (!checkParameterCount(expr, Keywords.INSTANCEOF)) { return false; } if (!validTypeTransformationExpression(getCallArgumen...
public class class_name { private boolean validInstanceOfExpression(Node expr) { // The expression must have two children: // - The instanceOf keyword // - A string if (!checkParameterCount(expr, Keywords.INSTANCEOF)) { return false; // depends on control dependency: [if], data = [none] } ...
public class class_name { public synchronized String formatMessage(LogRecord record) { String format = record.getMessage(); java.util.ResourceBundle catalog = record.getResourceBundle(); if (catalog != null) { try { format = catalog.getString(record.getMessage()); ...
public class class_name { public synchronized String formatMessage(LogRecord record) { String format = record.getMessage(); java.util.ResourceBundle catalog = record.getResourceBundle(); if (catalog != null) { try { format = catalog.getString(record.getMessage()); //...
public class class_name { @SuppressWarnings("unchecked") public <Input,Output> Adapter<Input,Output> findAdapter(Object in, Class<Input> input, Class<Output> output) { ArrayList<Adapter> acceptInput = new ArrayList<>(); ArrayList<Adapter> matching = new ArrayList<>(); for (Adapter a : adapters) { if (!a...
public class class_name { @SuppressWarnings("unchecked") public <Input,Output> Adapter<Input,Output> findAdapter(Object in, Class<Input> input, Class<Output> output) { ArrayList<Adapter> acceptInput = new ArrayList<>(); ArrayList<Adapter> matching = new ArrayList<>(); for (Adapter a : adapters) { if (!a...
public class class_name { public static Usage getUsage(String cobolUsage) { if (cobolUsage == null) { return null; } if (cobolUsage.equals(BINARY)) { return Usage.BINARY; } else if (cobolUsage.equals("COMP")) { return Usage.BINARY; } else if (...
public class class_name { public static Usage getUsage(String cobolUsage) { if (cobolUsage == null) { return null; // depends on control dependency: [if], data = [none] } if (cobolUsage.equals(BINARY)) { return Usage.BINARY; // depends on control dependency: [if], data =...
public class class_name { public static SimpleGraph<String, DefaultEdge> getSimpleGraphFromUser() { Scanner sc = new Scanner(System.in); SimpleGraph<String, DefaultEdge> graph = new SimpleGraph<String, DefaultEdge>(DefaultEdge.class); // input number of vertices int verticeAmount; ...
public class class_name { public static SimpleGraph<String, DefaultEdge> getSimpleGraphFromUser() { Scanner sc = new Scanner(System.in); SimpleGraph<String, DefaultEdge> graph = new SimpleGraph<String, DefaultEdge>(DefaultEdge.class); // input number of vertices int verticeAmount; ...
public class class_name { @Override public void setContentLengthLong (long len) { String methodName = "setContentLengthLong"; if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { logger.entering(CLASS_NAME, methodName, "length --> " + String.value...
public class class_name { @Override public void setContentLengthLong (long len) { String methodName = "setContentLengthLong"; if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { logger.entering(CLASS_NAME, methodName, "length --> " + String.value...
public class class_name { private void updateFinishedCounters(ThisStatistics localStatistics) throws InterruptedException { int snapshotJobsProcessed = countJobsProcessedLower_.get(); /* * ensure that all contexts for processed jobs are marked as saturated */ for (;;) { int snapshotCountContextsSatur...
public class class_name { private void updateFinishedCounters(ThisStatistics localStatistics) throws InterruptedException { int snapshotJobsProcessed = countJobsProcessedLower_.get(); /* * ensure that all contexts for processed jobs are marked as saturated */ for (;;) { int snapshotCountContextsSatur...
public class class_name { public static String getRequestURIForGrailsDispatchURI(HttpServletRequest request) { UrlPathHelper pathHelper = new UrlPathHelper(); if (request.getRequestURI().endsWith(GRAILS_DISPATCH_EXTENSION)) { String path = pathHelper.getPathWithinApplication(request); ...
public class class_name { public static String getRequestURIForGrailsDispatchURI(HttpServletRequest request) { UrlPathHelper pathHelper = new UrlPathHelper(); if (request.getRequestURI().endsWith(GRAILS_DISPATCH_EXTENSION)) { String path = pathHelper.getPathWithinApplication(request); ...
public class class_name { @Override public void increment(long amount) { spectatorCounter.increment(amount); if (amount > 0L) { count.addAndGet(amount); } } }
public class class_name { @Override public void increment(long amount) { spectatorCounter.increment(amount); if (amount > 0L) { count.addAndGet(amount); // depends on control dependency: [if], data = [(amount] } } }
public class class_name { public void generateWitherForField(EclipseNode fieldNode, EclipseNode sourceNode, AccessLevel level) { for (EclipseNode child : fieldNode.down()) { if (child.getKind() == Kind.ANNOTATION) { if (annotationTypeMatches(Wither.class, child)) { //The annotation will make it happen, s...
public class class_name { public void generateWitherForField(EclipseNode fieldNode, EclipseNode sourceNode, AccessLevel level) { for (EclipseNode child : fieldNode.down()) { if (child.getKind() == Kind.ANNOTATION) { if (annotationTypeMatches(Wither.class, child)) { //The annotation will make it happen, s...
public class class_name { public static boolean classExistsAndIsLoadable(String className) { try { Class.forName(className); return true; } catch (ClassNotFoundException e) { // Exception noted and ignored. e = null; ...
public class class_name { public static boolean classExistsAndIsLoadable(String className) { try { Class.forName(className); return true; // depends on control dependency: [try], data = [none] } catch (ClassNotFoundException e) { // Excep...
public class class_name { public byte[] getFingerprintFromFile(String fingerprintFile) { byte[] fingerprint = null; try { InputStream fis = new FileInputStream(fingerprintFile); fingerprint = getFingerprintFromInputStream(fis); fis.close(); } catch (IOExcepti...
public class class_name { public byte[] getFingerprintFromFile(String fingerprintFile) { byte[] fingerprint = null; try { InputStream fis = new FileInputStream(fingerprintFile); fingerprint = getFingerprintFromInputStream(fis); // depends on control dependency: [try], data = [no...
public class class_name { private void readObject(WebContext ctx, String bucketName, String objectId) throws IOException { Bucket bucket = storage.getBucket(bucketName); String id = objectId.replace('/', '_'); String uploadId = ctx.get("uploadId").asString(); if (!checkObjectRequest(ct...
public class class_name { private void readObject(WebContext ctx, String bucketName, String objectId) throws IOException { Bucket bucket = storage.getBucket(bucketName); String id = objectId.replace('/', '_'); String uploadId = ctx.get("uploadId").asString(); if (!checkObjectRequest(ct...
public class class_name { public Point3D_F64 getCorner(int index , Point3D_F64 corner ) { if( corner == null ) corner = new Point3D_F64(); corner.set(p); if( (index & 0x01) != 0 ) { corner.x += lengthX; } if( (index & 0x02) != 0 ) { corner.y += lengthY; } if( (index & 0x04) != 0 ) { corner....
public class class_name { public Point3D_F64 getCorner(int index , Point3D_F64 corner ) { if( corner == null ) corner = new Point3D_F64(); corner.set(p); if( (index & 0x01) != 0 ) { corner.x += lengthX; // depends on control dependency: [if], data = [none] } if( (index & 0x02) != 0 ) { corner.y +=...
public class class_name { public static double logGamma( double x ) { double ret; if (Double.isNaN(x) || (x <= 0.0)) { ret = Double.NaN; } else { double g = 607.0 / 128.0; double sum = 0.0; for( int i = LANCZOS.length - 1; i > 0; --i ) { ...
public class class_name { public static double logGamma( double x ) { double ret; if (Double.isNaN(x) || (x <= 0.0)) { ret = Double.NaN; // depends on control dependency: [if], data = [none] } else { double g = 607.0 / 128.0; double sum = 0.0; f...
public class class_name { public String queryCatalogClassName () { String className = System.getProperty(pClassname); if (className == null) { if (resources==null) readProperties(); if (resources==null) return null; try { return resources.getString("catalog-class-name"); } catch (Miss...
public class class_name { public String queryCatalogClassName () { String className = System.getProperty(pClassname); if (className == null) { if (resources==null) readProperties(); if (resources==null) return null; try { return resources.getString("catalog-class-name"); // depends on contr...
public class class_name { private void initializeVerifier() { ManifestEntryVerifier mev = null; // Verify "META-INF/" entries... try { String[] names = getMetaInfEntryNames(); if (names != null) { for (int i = 0; i < names.length; i++) { ...
public class class_name { private void initializeVerifier() { ManifestEntryVerifier mev = null; // Verify "META-INF/" entries... try { String[] names = getMetaInfEntryNames(); if (names != null) { for (int i = 0; i < names.length; i++) { ...