code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private List<Word> segSentence(final String sentence){ if(sentence.length() == 1){ if(KEEP_WHITESPACE){ List<Word> result = new ArrayList<>(1); result.add(new Word(KEEP_CASE ? sentence : sentence.toLowerCase())); return resul...
public class class_name { private List<Word> segSentence(final String sentence){ if(sentence.length() == 1){ if(KEEP_WHITESPACE){ List<Word> result = new ArrayList<>(1); result.add(new Word(KEEP_CASE ? sentence : sentence.toLowerCase())); // depends on control depend...
public class class_name { public static float optFloat(@Nullable Bundle bundle, @Nullable String key, float fallback) { if (bundle == null) { return fallback; } return bundle.getFloat(key, fallback); } }
public class class_name { public static float optFloat(@Nullable Bundle bundle, @Nullable String key, float fallback) { if (bundle == null) { return fallback; // depends on control dependency: [if], data = [none] } return bundle.getFloat(key, fallback); } }
public class class_name { protected void addWord(List<Word> result, String text, int start, int len){ Word word = getWord(text, start, len); if(word != null){ result.add(word); } } }
public class class_name { protected void addWord(List<Word> result, String text, int start, int len){ Word word = getWord(text, start, len); if(word != null){ result.add(word); // depends on control dependency: [if], data = [(word] } } }
public class class_name { public Object get(Object propertyName) { if (propertyName instanceof CharSequence) { propertyName = propertyName.toString(); } if (propertyName instanceof List) { Map submap = new HashMap(); List propertyNames = (List)propertyName; ...
public class class_name { public Object get(Object propertyName) { if (propertyName instanceof CharSequence) { propertyName = propertyName.toString(); // depends on control dependency: [if], data = [none] } if (propertyName instanceof List) { Map submap = new HashMap();...
public class class_name { private void removeOldFiles() { if (_retainDays>0) { Calendar retainDate = Calendar.getInstance(); retainDate.add(Calendar.DATE,-_retainDays); int borderYear = retainDate.get(java.util.Calendar.YEAR); int borderMonth = retain...
public class class_name { private void removeOldFiles() { if (_retainDays>0) { Calendar retainDate = Calendar.getInstance(); retainDate.add(Calendar.DATE,-_retainDays); // depends on control dependency: [if], data = [none] int borderYear = retainDate.get(java.uti...
public class class_name { public static final <T> T getSingleton(Class<T> clazz, Object... args) throws Exception { T instance = null; synchronized (LOCK) { instance = (T) singletonMap.get(clazz); if (instance == null) { Constructor<?> constructor = null; ...
public class class_name { public static final <T> T getSingleton(Class<T> clazz, Object... args) throws Exception { T instance = null; synchronized (LOCK) { instance = (T) singletonMap.get(clazz); if (instance == null) { Constructor<?> constructor = null; ...
public class class_name { public final EObject entryRuleOrExpression() throws RecognitionException { EObject current = null; EObject iv_ruleOrExpression = null; try { // InternalSimpleAntlr.g:950:2: (iv_ruleOrExpression= ruleOrExpression EOF ) // InternalSimpleAntlr.g...
public class class_name { public final EObject entryRuleOrExpression() throws RecognitionException { EObject current = null; EObject iv_ruleOrExpression = null; try { // InternalSimpleAntlr.g:950:2: (iv_ruleOrExpression= ruleOrExpression EOF ) // InternalSimpleAntlr.g...
public class class_name { private CredentialsInfo getRadiusChallenge(RadiusPacket challengePacket) { // Try to get the state attribute - if it's not there, we have a problem RadiusAttribute stateAttr = challengePacket.findAttribute(Attr_State.TYPE); if (stateAttr == null) { logger....
public class class_name { private CredentialsInfo getRadiusChallenge(RadiusPacket challengePacket) { // Try to get the state attribute - if it's not there, we have a problem RadiusAttribute stateAttr = challengePacket.findAttribute(Attr_State.TYPE); if (stateAttr == null) { logger....
public class class_name { public String quotedPrintable(Object content) { if (content != null) { try { return new QuotedPrintableCodec().encode(String.valueOf(content)); } catch (EncoderException ex) { // Just return null } } ...
public class class_name { public String quotedPrintable(Object content) { if (content != null) { try { return new QuotedPrintableCodec().encode(String.valueOf(content)); // depends on control dependency: [try], data = [none] } catch (EncoderException ex) { ...
public class class_name { @SuppressWarnings("unchecked") private FeatureInstaller findInstaller(final Class<?> type, final ExtensionsHolder holder) { for (FeatureInstaller installer : holder.getInstallers()) { if (installer.matches(type)) { return installer; } ...
public class class_name { @SuppressWarnings("unchecked") private FeatureInstaller findInstaller(final Class<?> type, final ExtensionsHolder holder) { for (FeatureInstaller installer : holder.getInstallers()) { if (installer.matches(type)) { return installer; // depends on contro...
public class class_name { public Whitelist addAttributes(String tag, String... attributes) { Validate.notEmpty(tag); Validate.notNull(attributes); Validate.isTrue(attributes.length > 0, "No attribute names supplied."); TagName tagName = TagName.valueOf(tag); tagNames.add(tagNam...
public class class_name { public Whitelist addAttributes(String tag, String... attributes) { Validate.notEmpty(tag); Validate.notNull(attributes); Validate.isTrue(attributes.length > 0, "No attribute names supplied."); TagName tagName = TagName.valueOf(tag); tagNames.add(tagNam...
public class class_name { public UrlBuilder addParameter(String name, String value) { if (value == null) { value = ""; } params.put(name, value); return this; } }
public class class_name { public UrlBuilder addParameter(String name, String value) { if (value == null) { value = ""; // depends on control dependency: [if], data = [none] } params.put(name, value); return this; } }
public class class_name { private void applyDataUpdate(final M data) { this.data = data; CompletableFutureLite<M> currentSyncFuture = null; Future<M> currentSyncTask = null; // Check if sync is in process. synchronized (syncMonitor) { if (syncFuture != null) { ...
public class class_name { private void applyDataUpdate(final M data) { this.data = data; CompletableFutureLite<M> currentSyncFuture = null; Future<M> currentSyncTask = null; // Check if sync is in process. synchronized (syncMonitor) { if (syncFuture != null) { ...
public class class_name { public static List<LocalDate> untilDays(LocalDate startDate, LocalDate endDate) { long until = startDate.until(endDate, ChronoUnit.DAYS) + 1; List<LocalDate> dates = new ArrayList<>(); for (long i = 0; i < until; i++) { dates.add(startDate.plusDays(i)); ...
public class class_name { public static List<LocalDate> untilDays(LocalDate startDate, LocalDate endDate) { long until = startDate.until(endDate, ChronoUnit.DAYS) + 1; List<LocalDate> dates = new ArrayList<>(); for (long i = 0; i < until; i++) { dates.add(startDate.plusDays(i)); // ...
public class class_name { private static void processProperty(final ClassNode cNode, PropertyNode node) { String name = node.getName(); FieldNode field = node.getField(); int propNodeModifiers = node.getModifiers(); String getterName = "get" + Verifier.capitalize(name); String ...
public class class_name { private static void processProperty(final ClassNode cNode, PropertyNode node) { String name = node.getName(); FieldNode field = node.getField(); int propNodeModifiers = node.getModifiers(); String getterName = "get" + Verifier.capitalize(name); String ...
public class class_name { public HppRequest encode(String charset) throws UnsupportedEncodingException { if (null != this.account) { this.account = new String(Base64.encodeBase64(this.account.getBytes(charset)), charset); } if (null != this.amount) { this.amount = new String(Base64.encodeBase64(this.amoun...
public class class_name { public HppRequest encode(String charset) throws UnsupportedEncodingException { if (null != this.account) { this.account = new String(Base64.encodeBase64(this.account.getBytes(charset)), charset); } if (null != this.amount) { this.amount = new String(Base64.encodeBase64(this.amoun...
public class class_name { public void run() { SupervisorManger supervisorManager; try { Map<Object, Object> conf = Utils.readStormConfig(); StormConfig.validate_distributed_mode(conf); createPid(conf); supervisorManager = mkSupervisor(conf, null); ...
public class class_name { public void run() { SupervisorManger supervisorManager; try { Map<Object, Object> conf = Utils.readStormConfig(); StormConfig.validate_distributed_mode(conf); // depends on control dependency: [try], data = [none] createPid(conf); // depen...
public class class_name { public void marshall(Address address, ProtocolMarshaller protocolMarshaller) { if (address == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(address.getAddressId(), ADDRESS...
public class class_name { public void marshall(Address address, ProtocolMarshaller protocolMarshaller) { if (address == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(address.getAddressId(), ADDRESS...
public class class_name { protected Object getValue() { Object value = this.value; if (value == null) { this.value = value = fromBinary("value"); } return value; } }
public class class_name { protected Object getValue() { Object value = this.value; if (value == null) { this.value = value = fromBinary("value"); // depends on control dependency: [if], data = [none] } return value; } }
public class class_name { public void group( @NonNull final String groupId, @Nullable final Traits groupTraits, @Nullable final Options options) { assertNotShutdown(); if (isNullOrEmpty(groupId)) { throw new IllegalArgumentException("groupId must not be null or empty."); } anal...
public class class_name { public void group( @NonNull final String groupId, @Nullable final Traits groupTraits, @Nullable final Options options) { assertNotShutdown(); if (isNullOrEmpty(groupId)) { throw new IllegalArgumentException("groupId must not be null or empty."); } anal...
public class class_name { @Override public EClass getIfcLuminousIntensityMeasure() { if (ifcLuminousIntensityMeasureEClass == null) { ifcLuminousIntensityMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(831); } return ifcLuminousIntensityM...
public class class_name { @Override public EClass getIfcLuminousIntensityMeasure() { if (ifcLuminousIntensityMeasureEClass == null) { ifcLuminousIntensityMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(831); // depends on control dependency: [...
public class class_name { public void marshall(Location location, ProtocolMarshaller protocolMarshaller) { if (location == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(location.getLocationCode(), ...
public class class_name { public void marshall(Location location, ProtocolMarshaller protocolMarshaller) { if (location == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(location.getLocationCode(), ...
public class class_name { public static double[] rowMax(double[][] data) { double[] x = new double[data.length]; for (int i = 0; i < x.length; i++) { x[i] = max(data[i]); } return x; } }
public class class_name { public static double[] rowMax(double[][] data) { double[] x = new double[data.length]; for (int i = 0; i < x.length; i++) { x[i] = max(data[i]); // depends on control dependency: [for], data = [i] } return x; } }
public class class_name { public void setRoleUsageList(java.util.Collection<RoleUsageType> roleUsageList) { if (roleUsageList == null) { this.roleUsageList = null; return; } this.roleUsageList = new com.amazonaws.internal.SdkInternalList<RoleUsageType>(roleUsageList); ...
public class class_name { public void setRoleUsageList(java.util.Collection<RoleUsageType> roleUsageList) { if (roleUsageList == null) { this.roleUsageList = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public void writeRecord(Row row) throws IOException { if (typesArray != null && typesArray.length > 0 && typesArray.length != row.getArity()) { LOG.warn("Column SQL types array doesn't match arity of passed Row! Check the passed array..."); } try { if (typesArray == n...
public class class_name { @Override public void writeRecord(Row row) throws IOException { if (typesArray != null && typesArray.length > 0 && typesArray.length != row.getArity()) { LOG.warn("Column SQL types array doesn't match arity of passed Row! Check the passed array..."); } try { if (typesArray == n...
public class class_name { public void merge(ExtractionResult extractionResult) { for (Result result : extractionResult.results) { add(result.getObject(), result.getResultName()); } } }
public class class_name { public void merge(ExtractionResult extractionResult) { for (Result result : extractionResult.results) { add(result.getObject(), result.getResultName()); // depends on control dependency: [for], data = [result] } } }
public class class_name { public static void multiplyComplex( ImageInterleaved complexA , ImageInterleaved complexB , ImageInterleaved complexC ) { if( complexB instanceof InterleavedF32 ) { DiscreteFourierTransformOps.multiplyComplex((InterleavedF32) complexA, (InterleavedF32) complexB, (InterleavedF32) complexC...
public class class_name { public static void multiplyComplex( ImageInterleaved complexA , ImageInterleaved complexB , ImageInterleaved complexC ) { if( complexB instanceof InterleavedF32 ) { DiscreteFourierTransformOps.multiplyComplex((InterleavedF32) complexA, (InterleavedF32) complexB, (InterleavedF32) complexC...
public class class_name { protected String[] readClassActionPath(final Class actionClass) { // read class annotation MadvocAction madvocActionAnnotation = ((Class<?>)actionClass).getAnnotation(MadvocAction.class); String classActionPath = madvocActionAnnotation != null ? madvocActionAnnotation.value().trim() : ...
public class class_name { protected String[] readClassActionPath(final Class actionClass) { // read class annotation MadvocAction madvocActionAnnotation = ((Class<?>)actionClass).getAnnotation(MadvocAction.class); String classActionPath = madvocActionAnnotation != null ? madvocActionAnnotation.value().trim() : ...
public class class_name { public static ConditionFactor create(StreamTokenizer tokenizer) throws WebDAVException { EntityTag entityTag = new EntityTag(); try { int token = tokenizer.ttype; if (token == '[') token = tokenizer.nextToken(); else ...
public class class_name { public static ConditionFactor create(StreamTokenizer tokenizer) throws WebDAVException { EntityTag entityTag = new EntityTag(); try { int token = tokenizer.ttype; if (token == '[') token = tokenizer.nextToken(); else ...
public class class_name { private static boolean isComposingCharOrSurrogate(char c) { if (UCharacter.isHighSurrogate(c) || UCharacter.isLowSurrogate(c)) { return true; } return isComposingChar(c); } }
public class class_name { private static boolean isComposingCharOrSurrogate(char c) { if (UCharacter.isHighSurrogate(c) || UCharacter.isLowSurrogate(c)) { return true; // depends on control dependency: [if], data = [none] } return isComposingChar(c); } }
public class class_name { public static String formatLsString(boolean hSize, boolean acl, boolean isFolder, String permission, String userName, String groupName, long size, long lastModifiedTime, int inAlluxioPercentage, String persistenceState, String path, String dateFormatPattern) { String inA...
public class class_name { public static String formatLsString(boolean hSize, boolean acl, boolean isFolder, String permission, String userName, String groupName, long size, long lastModifiedTime, int inAlluxioPercentage, String persistenceState, String path, String dateFormatPattern) { String inA...
public class class_name { protected void addChild(ElementBase child, boolean doEvent) { if (!child.canAcceptParent(this)) { CWFException.raise(child.rejectReason); } if (!canAcceptChild(child)) { CWFException.raise(rejectReason); } if (d...
public class class_name { protected void addChild(ElementBase child, boolean doEvent) { if (!child.canAcceptParent(this)) { CWFException.raise(child.rejectReason); // depends on control dependency: [if], data = [none] } if (!canAcceptChild(child)) { CWFException...
public class class_name { private boolean gbyTablesEqual(MaterializedViewInfo mv) { if (m_selectStmt.hasComplexGroupby() != mv.getGroupbyexpressionsjson().isEmpty()) { if (m_selectStmt.hasComplexGroupby()) { // when both have complex GBY expressions, anonymize table/column of SEL stmt and compa...
public class class_name { private boolean gbyTablesEqual(MaterializedViewInfo mv) { if (m_selectStmt.hasComplexGroupby() != mv.getGroupbyexpressionsjson().isEmpty()) { if (m_selectStmt.hasComplexGroupby()) { // when both have complex GBY expressions, anonymize table/column of SEL stmt and compa...
public class class_name { @Override public final IoBuffer limit(int newLimit) { autoExpand(newLimit, 0); buf().limit(newLimit); if (mark > newLimit) { mark = -1; } return this; } }
public class class_name { @Override public final IoBuffer limit(int newLimit) { autoExpand(newLimit, 0); buf().limit(newLimit); if (mark > newLimit) { mark = -1; // depends on control dependency: [if], data = [none] } return this; } }
public class class_name { protected void dispatch(Throwable object, boolean child) { if (object instanceof CompilationFailedException) { report((CompilationFailedException) object, child); } else if (object instanceof GroovyExceptionInterface) { report((GroovyExceptionInterface)...
public class class_name { protected void dispatch(Throwable object, boolean child) { if (object instanceof CompilationFailedException) { report((CompilationFailedException) object, child); // depends on control dependency: [if], data = [none] } else if (object instanceof GroovyExceptionInte...
public class class_name { @Override public boolean hasNextCase() { // this method only returns true if dependent values are grouped if (!dependent) { return false; } for (Constraint c : constraints) { if (c.hasNextCase()) { return true; } } return false; } }
public class class_name { @Override public boolean hasNextCase() { // this method only returns true if dependent values are grouped if (!dependent) { return false; // depends on control dependency: [if], data = [none] } for (Constraint c : constraints) { if (c.hasNextCase()) { return true; ...
public class class_name { @Override public int getIconWidth(SynthContext context) { if (context == null) { return width; } JComponent c = context.getComponent(); if (c instanceof JToolBar && ((JToolBar) c).getOrientation() == JToolBar.VERTICAL) { // we onl...
public class class_name { @Override public int getIconWidth(SynthContext context) { if (context == null) { return width; // depends on control dependency: [if], data = [none] } JComponent c = context.getComponent(); if (c instanceof JToolBar && ((JToolBar) c).getOrient...
public class class_name { public static void merge(Object dest, Object orig) { String attr = ""; try { Set attrs = org.apache.commons.beanutils.PropertyUtils.describe(orig).keySet(); attrs.remove("class"); for (Iterator it = attrs.iterator(); it.hasNext();) { attr = (String) it.next()...
public class class_name { public static void merge(Object dest, Object orig) { String attr = ""; try { Set attrs = org.apache.commons.beanutils.PropertyUtils.describe(orig).keySet(); attrs.remove("class"); // depends on control dependency: [try], data = [none] for (Iterator it = attrs.iterato...
public class class_name { public void paint (Graphics2D gfx) { gfx.setColor(Color.red); Point prev = null; int size = size(); for (int ii = 0; ii < size; ii++) { PathNode n = getNode(ii); if (prev != null) { gfx.drawLine(prev.x, prev.y, n.loc....
public class class_name { public void paint (Graphics2D gfx) { gfx.setColor(Color.red); Point prev = null; int size = size(); for (int ii = 0; ii < size; ii++) { PathNode n = getNode(ii); if (prev != null) { gfx.drawLine(prev.x, prev.y, n.loc....
public class class_name { @Override protected void doIterationProcedure (final int n) { if (n == 1) return; // already initialized if (m_fMid < 0) { m_fXNeg = m_fXMid; // the root is in the xPos half m_fNeg = m_fMid; } else { m_fXPos = m_fXMid; // the root is in the...
public class class_name { @Override protected void doIterationProcedure (final int n) { if (n == 1) return; // already initialized if (m_fMid < 0) { m_fXNeg = m_fXMid; // the root is in the xPos half // depends on control dependency: [if], data = [none] m_fNeg = m_fMid; // depends on...
public class class_name { public static TypeDescription resolve(TypeDescription typeDescription, TypeDescription targetType) { int arity = 0; TypeDescription componentType = typeDescription; while (componentType.isArray()) { componentType = componentType.getComponentType(); ...
public class class_name { public static TypeDescription resolve(TypeDescription typeDescription, TypeDescription targetType) { int arity = 0; TypeDescription componentType = typeDescription; while (componentType.isArray()) { componentType = componentType.getComponentType(); // depen...
public class class_name { public void addRow(final String[] data) { if (anyStringContainsNewLine(data)) { final String[][] theMatrix = Util.createMatrix(data); for (int i = 0; i < theMatrix.length; i++) { addRow(theMatrix[i]); } } else { final Row myRow = new Row(this, data); rows.add(myRow); ...
public class class_name { public void addRow(final String[] data) { if (anyStringContainsNewLine(data)) { final String[][] theMatrix = Util.createMatrix(data); for (int i = 0; i < theMatrix.length; i++) { addRow(theMatrix[i]); // depends on control dependency: [for], data = [i] } } else { final Row...
public class class_name { private String getMatchedFigureKeyword(String line) { for (String keyword : Config.FIGURE_KEYWORDS) { if (line.startsWith(keyword)) { return keyword; } } return null; } }
public class class_name { private String getMatchedFigureKeyword(String line) { for (String keyword : Config.FIGURE_KEYWORDS) { if (line.startsWith(keyword)) { return keyword; // depends on control dependency: [if], data = [none] } } return null; } }
public class class_name { public boolean supportsGetGeneratedKeys(DatabaseMetaData meta) { try { // // invoking JDK 1.4 method by reflection // return ((Boolean) DatabaseMetaData.class.getMethod("supportsGetGeneratedKeys", null).invoke(meta, null)).booleanValue(); } catch(Throwable e)...
public class class_name { public boolean supportsGetGeneratedKeys(DatabaseMetaData meta) { try { // // invoking JDK 1.4 method by reflection // return ((Boolean) DatabaseMetaData.class.getMethod("supportsGetGeneratedKeys", null).invoke(meta, null)).booleanValue(); // depends on control de...
public class class_name { private Map<String, Object> parseInsertIntoQuery(String query) { Map<String, Object> persistDetails = new HashMap<String, Object>(); String insertReg = "(?i)^insert\\s+into\\s+(\\S+)\\s+(?:as\\s+(\\S+)\\s+)?FROM\\s+\\((.*)\\)$"; Pattern r = Pattern.compile(insertRe...
public class class_name { private Map<String, Object> parseInsertIntoQuery(String query) { Map<String, Object> persistDetails = new HashMap<String, Object>(); String insertReg = "(?i)^insert\\s+into\\s+(\\S+)\\s+(?:as\\s+(\\S+)\\s+)?FROM\\s+\\((.*)\\)$"; Pattern r = Pattern.compile(insertRe...
public class class_name { public boolean readHistoryEnabledForIndex(String index) { if(!this.enabled) { return false; } if(searchguardIndex.equals(index)) { return logInternalConfig; } try { return !cache.get(index)....
public class class_name { public boolean readHistoryEnabledForIndex(String index) { if(!this.enabled) { return false; // depends on control dependency: [if], data = [none] } if(searchguardIndex.equals(index)) { return logInternalConfig; // depends on co...
public class class_name { private void stripAsterisk(final StringBuilder javaDoc) { int index = javaDoc.indexOf("*"); while (index != -1) { javaDoc.replace(index, index + 1, ""); index = javaDoc.indexOf("*"); } } }
public class class_name { private void stripAsterisk(final StringBuilder javaDoc) { int index = javaDoc.indexOf("*"); while (index != -1) { javaDoc.replace(index, index + 1, ""); // depends on control dependency: [while], data = [(index] index = javaDoc.indexOf("*"); // depends on control dependency: [while]...
public class class_name { public void addMasterListeners() { super.addMasterListeners(); this.getField(ProgramControl.LAST_PACKAGE_UPDATE).setEnabled(false); this.addListener(new FileListener() { public void doNewRecord(boolean bDisplayOption) { ...
public class class_name { public void addMasterListeners() { super.addMasterListeners(); this.getField(ProgramControl.LAST_PACKAGE_UPDATE).setEnabled(false); this.addListener(new FileListener() { public void doNewRecord(boolean bDisplayOption) { ...
public class class_name { public void marshall(Record record, ProtocolMarshaller protocolMarshaller) { if (record == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(record.getKey(), KEY_BINDING); ...
public class class_name { public void marshall(Record record, ProtocolMarshaller protocolMarshaller) { if (record == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(record.getKey(), KEY_BINDING); // ...
public class class_name { public static MimeType mimeType(String type) { try { return new MimeType(type); } catch (MimeTypeParseException ex) { throw new RuntimeException(ex); } } }
public class class_name { public static MimeType mimeType(String type) { try { return new MimeType(type); // depends on control dependency: [try], data = [none] } catch (MimeTypeParseException ex) { throw new RuntimeException(ex); } // depends on control dependency: [cat...
public class class_name { public void close() { if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled()) SibTr.entry(CoreSPIProducerSession.tc, "close", this); boolean closedNow = _close(); if (closedNow) { _conn.removeProducerSession(this); } if ...
public class class_name { public void close() { if (TraceComponent.isAnyTracingEnabled() && CoreSPIProducerSession.tc.isEntryEnabled()) SibTr.entry(CoreSPIProducerSession.tc, "close", this); boolean closedNow = _close(); if (closedNow) { _conn.removeProducerSession(this); // depends on ...
public class class_name { void registerSyncConsumer(MessageConsumer consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "registerSyncConsumer", consumer); // ensure that movement between lists is atomic synchronized (consumerListsLock)...
public class class_name { void registerSyncConsumer(MessageConsumer consumer) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "registerSyncConsumer", consumer); // ensure that movement between lists is atomic synchronized (consumerListsLock)...
public class class_name { public void add(ObjectType type, boolean explicit) { int index = factory.getIndexOfType(type); if (!exceptionSet.get(index)) { ++size; } exceptionSet.set(index); if (explicit) { explicitSet.set(index); } commonSu...
public class class_name { public void add(ObjectType type, boolean explicit) { int index = factory.getIndexOfType(type); if (!exceptionSet.get(index)) { ++size; // depends on control dependency: [if], data = [none] } exceptionSet.set(index); if (explicit) { ...
public class class_name { public static Response getVotingResponse(ParaObject object, Map<String, Object> entity) { boolean voteSuccess = false; if (object != null && entity != null) { String upvoterId = (String) entity.get("_voteup"); String downvoterId = (String) entity.get("_votedown"); if (!StringUtil...
public class class_name { public static Response getVotingResponse(ParaObject object, Map<String, Object> entity) { boolean voteSuccess = false; if (object != null && entity != null) { String upvoterId = (String) entity.get("_voteup"); String downvoterId = (String) entity.get("_votedown"); if (!StringUtil...
public class class_name { public final void start() { if (this.started) { log.warn(String.format("Reporter %s has already been started.", this.name)); return; } try { startImpl(); this.started = true; } catch (Exception exception) { log.warn(String.format("Reporter %s did ...
public class class_name { public final void start() { if (this.started) { log.warn(String.format("Reporter %s has already been started.", this.name)); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } try { startImpl(); /...
public class class_name { private String formatDate(final WPartialDateField dateField) { Integer day = dateField.getDay(); Integer month = dateField.getMonth(); Integer year = dateField.getYear(); if (day != null || month != null || year != null) { StringBuffer buf = new StringBuffer(10); append(buf, y...
public class class_name { private String formatDate(final WPartialDateField dateField) { Integer day = dateField.getDay(); Integer month = dateField.getMonth(); Integer year = dateField.getYear(); if (day != null || month != null || year != null) { StringBuffer buf = new StringBuffer(10); append(buf, y...
public class class_name { protected File zipSubfolder(File rootDir, String zipSubFolder, String zipFileName, String archiveFolder) throws MojoExecutionException { int resultCode = 0; try { File scriptDirectory = new File(project.getBuild().getDirectory(), "scripts").getCanonicalFile(); ...
public class class_name { protected File zipSubfolder(File rootDir, String zipSubFolder, String zipFileName, String archiveFolder) throws MojoExecutionException { int resultCode = 0; try { File scriptDirectory = new File(project.getBuild().getDirectory(), "scripts").getCanonicalFile(); ...
public class class_name { public ClientConfig getClientConfig() { ClientConfig rescuConfig = new ClientConfig(); // create default rescu config // set per exchange connection- and read-timeout (if they have been set in the // ExchangeSpecification) int customHttpConnTimeout = exchange.getExchangeSpec...
public class class_name { public ClientConfig getClientConfig() { ClientConfig rescuConfig = new ClientConfig(); // create default rescu config // set per exchange connection- and read-timeout (if they have been set in the // ExchangeSpecification) int customHttpConnTimeout = exchange.getExchangeSpec...
public class class_name { public static boolean isConstructor(JCTree tree) { if (tree.hasTag(METHODDEF)) { Name name = ((JCMethodDecl) tree).name; return name == name.table.names.init; } else { return false; } } }
public class class_name { public static boolean isConstructor(JCTree tree) { if (tree.hasTag(METHODDEF)) { Name name = ((JCMethodDecl) tree).name; return name == name.table.names.init; // depends on control dependency: [if], data = [none] } else { return false; // de...
public class class_name { public NlsFormatterPlugin<?> getFormatter(String formatType, String formatStyle) { NlsFormatterPlugin<?> result = null; Map<String, NlsFormatterPlugin<?>> style2builderMap = this.builders.get(formatType); if (style2builderMap != null) { result = style2builderMap.get(fo...
public class class_name { public NlsFormatterPlugin<?> getFormatter(String formatType, String formatStyle) { NlsFormatterPlugin<?> result = null; Map<String, NlsFormatterPlugin<?>> style2builderMap = this.builders.get(formatType); if (style2builderMap != null) { result = style2builderMap.get(fo...
public class class_name { public Endpoint withIpAddr(@Nullable String ipAddr) { ensureSingle(); if (ipAddr == null) { return withoutIpAddr(); } if (NetUtil.isValidIpV4Address(ipAddr)) { return withIpAddr(ipAddr, StandardProtocolFamily.INET); } i...
public class class_name { public Endpoint withIpAddr(@Nullable String ipAddr) { ensureSingle(); if (ipAddr == null) { return withoutIpAddr(); // depends on control dependency: [if], data = [none] } if (NetUtil.isValidIpV4Address(ipAddr)) { return withIpAddr(ipAd...
public class class_name { private synchronized void recover() { try { // close all reopen dataRecorders this.close(); Set<String> loggerNames = this.dataLoggerFactory.findLoggerNames(); // recover all logs for (String loggerName : loggerNames) { IDataLogger dataLogger = this.dataLoggerFactory...
public class class_name { private synchronized void recover() { try { // close all reopen dataRecorders this.close(); // depends on control dependency: [try], data = [none] Set<String> loggerNames = this.dataLoggerFactory.findLoggerNames(); // recover all logs for (String loggerName : loggerNames)...
public class class_name { public int[] getSentenceIds() { ArrayList<IntNaryTree> leaves = getLeaves(); int[] sent = new int[leaves.size()]; for (int i=0; i<sent.length; i++) { sent[i] = leaves.get(i).symbol; } return sent; } }
public class class_name { public int[] getSentenceIds() { ArrayList<IntNaryTree> leaves = getLeaves(); int[] sent = new int[leaves.size()]; for (int i=0; i<sent.length; i++) { sent[i] = leaves.get(i).symbol; // depends on control dependency: [for], data = [i] } retur...
public class class_name { public static DigestUtils getDigestUtils() { if (digestUtils == null) { try { Class clazz = Class.forName(DIGEST_UTILS); digestUtils = (DigestUtils) clazz.newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { ...
public class class_name { public static DigestUtils getDigestUtils() { if (digestUtils == null) { try { Class clazz = Class.forName(DIGEST_UTILS); digestUtils = (DigestUtils) clazz.newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { ...
public class class_name { public void signalEvent(String compensationType, Object activityRefStr) { if( activityRefStr == null || ! (activityRefStr instanceof String) ) { throw new WorkflowRuntimeException(null, getProcessInstance(), "Compensation can only be triggered with St...
public class class_name { public void signalEvent(String compensationType, Object activityRefStr) { if( activityRefStr == null || ! (activityRefStr instanceof String) ) { throw new WorkflowRuntimeException(null, getProcessInstance(), "Compensation can only be triggered with St...
public class class_name { public void setItems(java.util.Collection<Authorizer> items) { if (items == null) { this.items = null; return; } this.items = new java.util.ArrayList<Authorizer>(items); } }
public class class_name { public void setItems(java.util.Collection<Authorizer> items) { if (items == null) { this.items = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.items = new java.u...
public class class_name { public Filters withExtendedKeyUsage(ExtendedKeyUsageName... extendedKeyUsage) { java.util.ArrayList<String> extendedKeyUsageCopy = new java.util.ArrayList<String>(extendedKeyUsage.length); for (ExtendedKeyUsageName value : extendedKeyUsage) { extendedKeyUsageCopy.a...
public class class_name { public Filters withExtendedKeyUsage(ExtendedKeyUsageName... extendedKeyUsage) { java.util.ArrayList<String> extendedKeyUsageCopy = new java.util.ArrayList<String>(extendedKeyUsage.length); for (ExtendedKeyUsageName value : extendedKeyUsage) { extendedKeyUsageCopy.a...
public class class_name { @ReadOperation public Map<?, ?> getReport(@Nullable final String flowId) { val jsonMap = new LinkedHashMap<String, Object>(); val map = this.applicationContext.getBeansOfType(FlowDefinitionRegistry.class, false, true); map.forEach((k, v) -> Arrays.stream(v.getFlow...
public class class_name { @ReadOperation public Map<?, ?> getReport(@Nullable final String flowId) { val jsonMap = new LinkedHashMap<String, Object>(); val map = this.applicationContext.getBeansOfType(FlowDefinitionRegistry.class, false, true); map.forEach((k, v) -> Arrays.stream(v.getFlow...
public class class_name { public EClass getPasswordChanged() { if (passwordChangedEClass == null) { passwordChangedEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(LogPackage.eNS_URI) .getEClassifiers().get(27); } return passwordChangedEClass; } }
public class class_name { public EClass getPasswordChanged() { if (passwordChangedEClass == null) { passwordChangedEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(LogPackage.eNS_URI) .getEClassifiers().get(27); // depends on control dependency: [if], data = [none] } return passwordChangedEC...
public class class_name { public EClass getBCF() { if (bcfEClass == null) { bcfEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(196); } return bcfEClass; } }
public class class_name { public EClass getBCF() { if (bcfEClass == null) { bcfEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(196); // depends on control dependency: [if], data = [none] } return bcfEClass; } }
public class class_name { protected void localRelease() { super.localRelease(); _currentItem = null; _currentIndex = -1; _iterator = null; _defaultText = null; _renderState = INIT; _haveKids = false; _contentBuffer = null; _padContext = null; ...
public class class_name { protected void localRelease() { super.localRelease(); _currentItem = null; _currentIndex = -1; _iterator = null; _defaultText = null; _renderState = INIT; _haveKids = false; _contentBuffer = null; _padContext = null; ...
public class class_name { public void actionUndoChanges() throws JspException { // save initialized instance of this class in request attribute for included sub-elements getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this); try { boolean isFolder = false; S...
public class class_name { public void actionUndoChanges() throws JspException { // save initialized instance of this class in request attribute for included sub-elements getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this); try { boolean isFolder = false; S...
public class class_name { private Set<MasterWorkerInfo> selectInfoByAddress(Set<String> addresses, Set<MasterWorkerInfo> workerInfoSet, Set<String> workerNames) { return workerInfoSet.stream().filter(info -> { String host = info.getWorkerAddress().getHost(); workerNames.add(host); String i...
public class class_name { private Set<MasterWorkerInfo> selectInfoByAddress(Set<String> addresses, Set<MasterWorkerInfo> workerInfoSet, Set<String> workerNames) { return workerInfoSet.stream().filter(info -> { String host = info.getWorkerAddress().getHost(); workerNames.add(host); String i...
public class class_name { private boolean isDialog(Activity activity, View decorView){ if(decorView == null || !decorView.isShown() || activity == null){ return false; } Context viewContext = null; if(decorView != null){ viewContext = decorView.getContext(); } if (viewContext instanceof ContextThe...
public class class_name { private boolean isDialog(Activity activity, View decorView){ if(decorView == null || !decorView.isShown() || activity == null){ return false; // depends on control dependency: [if], data = [none] } Context viewContext = null; if(decorView != null){ viewContext = decorView.getCon...
public class class_name { private void moveGlobalSymbols(Collection<GlobalSymbol> globalSymbols) { for (GlobalSymbolCycle globalSymbolCycle : new OrderAndCombineGlobalSymbols(globalSymbols).orderAndCombine()) { // Symbols whose declarations refer to each other must be grouped together and their ...
public class class_name { private void moveGlobalSymbols(Collection<GlobalSymbol> globalSymbols) { for (GlobalSymbolCycle globalSymbolCycle : new OrderAndCombineGlobalSymbols(globalSymbols).orderAndCombine()) { // Symbols whose declarations refer to each other must be grouped together and their ...
public class class_name { public static int fromString (String dirstr) { for (int ii = 0; ii < FINE_DIRECTION_COUNT; ii++) { if (DIR_STRINGS[ii].equals(dirstr)) { return ii; } } return NONE; } }
public class class_name { public static int fromString (String dirstr) { for (int ii = 0; ii < FINE_DIRECTION_COUNT; ii++) { if (DIR_STRINGS[ii].equals(dirstr)) { return ii; // depends on control dependency: [if], data = [none] } } return NONE; } ...
public class class_name { @Override public void set(long timestampMs, long value) { long[] bucket = calcBucketOffset(timestampMs); String redisKey = getName() + ":" + bucket[0]; String redisField = String.valueOf(bucket[1]); try (Jedis jedis = getJedis()) { jedis.hset(re...
public class class_name { @Override public void set(long timestampMs, long value) { long[] bucket = calcBucketOffset(timestampMs); String redisKey = getName() + ":" + bucket[0]; String redisField = String.valueOf(bucket[1]); try (Jedis jedis = getJedis()) { jedis.hset(re...
public class class_name { public boolean runNext() { if (!hasQueuedTasks()) { return false; } if (Thread.currentThread().equals(executorThread)) { Logger.info("ignoring request to execute task - called from executor's own thread"); return false; } Runnable task = deferredTasks.pol...
public class class_name { public boolean runNext() { if (!hasQueuedTasks()) { return false; // depends on control dependency: [if], data = [none] } if (Thread.currentThread().equals(executorThread)) { Logger.info("ignoring request to execute task - called from executor's own thread"); // depend...
public class class_name { public void setWholeDay(Boolean isWholeDay) { if (m_model.isWholeDay() ^ ((null != isWholeDay) && isWholeDay.booleanValue())) { m_model.setWholeDay(isWholeDay); valueChanged(); } } }
public class class_name { public void setWholeDay(Boolean isWholeDay) { if (m_model.isWholeDay() ^ ((null != isWholeDay) && isWholeDay.booleanValue())) { m_model.setWholeDay(isWholeDay); // depends on control dependency: [if], data = [none] valueChanged(); // depends on control de...
public class class_name { public static final char[][] deepCopy(char[][] toCopy) { int toCopyLength = toCopy.length; char[][] result = new char[toCopyLength][]; for (int i = 0; i < toCopyLength; i++) { char[] toElement = toCopy[i]; int toElementLength = toElement.length; char[] resultElement = new ch...
public class class_name { public static final char[][] deepCopy(char[][] toCopy) { int toCopyLength = toCopy.length; char[][] result = new char[toCopyLength][]; for (int i = 0; i < toCopyLength; i++) { char[] toElement = toCopy[i]; int toElementLength = toElement.length; char[] resultElement = new ch...
public class class_name { private String[] segment(final String builtText) { // these are fine because they do not affect offsets String line = builtText.trim(); line = RuleBasedTokenizer.doubleSpaces.matcher(line).replaceAll(" "); if (this.isHardParagraph) { // convert every (spurious) paragra...
public class class_name { private String[] segment(final String builtText) { // these are fine because they do not affect offsets String line = builtText.trim(); line = RuleBasedTokenizer.doubleSpaces.matcher(line).replaceAll(" "); if (this.isHardParagraph) { // convert every (spurious) paragra...
public class class_name { public static double computeSvf(Point pt, Geometry geoms, double distance, int rayCount, int stepRayLength){ double svf = -1; if(pt ==null){ return svf; } if(geoms == null){ return svf; } if(distance<=0){ t...
public class class_name { public static double computeSvf(Point pt, Geometry geoms, double distance, int rayCount, int stepRayLength){ double svf = -1; if(pt ==null){ return svf; // depends on control dependency: [if], data = [none] } if(geoms == null){ return...
public class class_name { private String getStringValue(Collection<CmsCategory> categories) { CmsObject cms = A_CmsUI.getCmsObject(); String result = ""; for (CmsCategory cat : categories) { result += cms.getRequestContext().removeSiteRoot(cat.getRootPath()) + ","; } ...
public class class_name { private String getStringValue(Collection<CmsCategory> categories) { CmsObject cms = A_CmsUI.getCmsObject(); String result = ""; for (CmsCategory cat : categories) { result += cms.getRequestContext().removeSiteRoot(cat.getRootPath()) + ","; // depends on co...
public class class_name { public static <T extends ImageGray<T>> T nv21ToGray( byte[] data , int width , int height , T output , Class<T> outputType ) { if( outputType == GrayU8.class ) { return (T)nv21ToGray(data,width,height,(GrayU8)output); } else if( outputType == GrayF32.class ) { return (T)nv21...
public class class_name { public static <T extends ImageGray<T>> T nv21ToGray( byte[] data , int width , int height , T output , Class<T> outputType ) { if( outputType == GrayU8.class ) { return (T)nv21ToGray(data,width,height,(GrayU8)output); // depends on control dependency: [if], data = [none] } else...
public class class_name { public int getValue(int c, int column) { if (isCompacted || c < 0 || c > MAX_CP || column < 0 || column >= (columns - 2)) { return 0; } int index = findRow(c); return v[index + 2 + column]; } }
public class class_name { public int getValue(int c, int column) { if (isCompacted || c < 0 || c > MAX_CP || column < 0 || column >= (columns - 2)) { return 0; // depends on control dependency: [if], data = [none] } int index = findRow(c); return v[index + 2 ...
public class class_name { public static void normalizeHTMLTree(Document doc) { //normalize tables NodeList tables = doc.getElementsByTagName("table"); for (int i = 0; i < tables.getLength(); i++) { Vector<Node> nodes = new Vector<Node>(); recursiveFindBadNode...
public class class_name { public static void normalizeHTMLTree(Document doc) { //normalize tables NodeList tables = doc.getElementsByTagName("table"); for (int i = 0; i < tables.getLength(); i++) { Vector<Node> nodes = new Vector<Node>(); recursiveFindBadNode...
public class class_name { public void addAnnotations(/* @Nullable */ JvmAnnotationTarget target, /* @Nullable */ Iterable<? extends XAnnotation> annotations) { if(annotations == null || target == null) return; for (XAnnotation annotation : annotations) { addAnnotation(target, annotation); } } }
public class class_name { public void addAnnotations(/* @Nullable */ JvmAnnotationTarget target, /* @Nullable */ Iterable<? extends XAnnotation> annotations) { if(annotations == null || target == null) return; for (XAnnotation annotation : annotations) { addAnnotation(target, annotation); // depends on cont...
public class class_name { @SuppressWarnings("null") // TODO: Too much code, improve this, possibly by breaking it public static final Object getObject(Object obj, String fieldName) { Field embeddedField; try { embeddedField = obj.getClass().getDeclaredField(fieldN...
public class class_name { @SuppressWarnings("null") // TODO: Too much code, improve this, possibly by breaking it public static final Object getObject(Object obj, String fieldName) { Field embeddedField; try { embeddedField = obj.getClass().getDeclaredField(fieldN...
public class class_name { public Observable<ServiceResponse<Object>> runWithServiceResponseAsync(String resourceGroupName, String workflowName, String triggerName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required an...
public class class_name { public Observable<ServiceResponse<Object>> runWithServiceResponseAsync(String resourceGroupName, String workflowName, String triggerName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required an...
public class class_name { private SparseMatrix retainColumns(Set<Integer> indicesToKeep) { int words = termToIndex.numDimensions(); int cols = indicesToKeep.size(); // Create a mapping from old indices to their new index value. Map<Integer, Integer> indexMap = new HashMap<Integer,...
public class class_name { private SparseMatrix retainColumns(Set<Integer> indicesToKeep) { int words = termToIndex.numDimensions(); int cols = indicesToKeep.size(); // Create a mapping from old indices to their new index value. Map<Integer, Integer> indexMap = new HashMap<Integer,...
public class class_name { @Override public ReadWriteLockedOffHeapClockCache<K, V> newInstance() { StorageEngine<? super K, ? super V> storageEngine = storageEngineFactory.newInstance(); try { if (evictionListener == null) { return new ReadWriteLockedOffHeapClockCache<>(tableSource, storageEngin...
public class class_name { @Override public ReadWriteLockedOffHeapClockCache<K, V> newInstance() { StorageEngine<? super K, ? super V> storageEngine = storageEngineFactory.newInstance(); try { if (evictionListener == null) { return new ReadWriteLockedOffHeapClockCache<>(tableSource, storageEngin...
public class class_name { private StatementHandler getStatementHandler(Class<? extends StatementHandler> statementHandlerClazz) { StatementHandler result = null; Constructor<? extends StatementHandler> constructor = null; Class<? extends StatementHandler> clazz = statementHandlerClazz; ...
public class class_name { private StatementHandler getStatementHandler(Class<? extends StatementHandler> statementHandlerClazz) { StatementHandler result = null; Constructor<? extends StatementHandler> constructor = null; Class<? extends StatementHandler> clazz = statementHandlerClazz; ...
public class class_name { private static void setField(Class<?> expectedType, Object value, boolean saveOriginal) throws IllegalStateException { try { for (Field field : NamingManager.class.getDeclaredFields()) { if (expectedType.equals(field.getType())) { field....
public class class_name { private static void setField(Class<?> expectedType, Object value, boolean saveOriginal) throws IllegalStateException { try { for (Field field : NamingManager.class.getDeclaredFields()) { if (expectedType.equals(field.getType())) { field....
public class class_name { public synchronized static BandwidthClient getInstance() { if (INSTANCE == null) { String userId = System.getProperty(BandwidthConstants.BANDWIDTH_SYSPROP_USER_ID); String apiToken = System.getProperty(BandwidthConstants.BANDWIDTH_SYSPROP_API_TOKEN); ...
public class class_name { public synchronized static BandwidthClient getInstance() { if (INSTANCE == null) { String userId = System.getProperty(BandwidthConstants.BANDWIDTH_SYSPROP_USER_ID); String apiToken = System.getProperty(BandwidthConstants.BANDWIDTH_SYSPROP_API_TOKEN); ...
public class class_name { public static ZonalOffset atLongitude(BigDecimal longitude) { if ( (longitude.compareTo(DECIMAL_POS_180) > 0) || (longitude.compareTo(DECIMAL_NEG_180) < 0) ) { throw new IllegalArgumentException("Out of range: " + longitude); } ...
public class class_name { public static ZonalOffset atLongitude(BigDecimal longitude) { if ( (longitude.compareTo(DECIMAL_POS_180) > 0) || (longitude.compareTo(DECIMAL_NEG_180) < 0) ) { throw new IllegalArgumentException("Out of range: " + longitude); } ...
public class class_name { public String getValue() { String value = editTextView.getText().toString(); if (TextUtils.isEmpty(editVerifyRegex)) { return value; } return editTextView.verifyValue() ? value : ""; } }
public class class_name { public String getValue() { String value = editTextView.getText().toString(); if (TextUtils.isEmpty(editVerifyRegex)) { return value; // depends on control dependency: [if], data = [none] } return editTextView.verifyValue() ? value : ""; } }
public class class_name { @Override public Object getRequestValue(final Request request) { if (isPresent(request)) { return getNewSelection(request); } else { return getValue(); } } }
public class class_name { @Override public Object getRequestValue(final Request request) { if (isPresent(request)) { return getNewSelection(request); // depends on control dependency: [if], data = [none] } else { return getValue(); // depends on control dependency: [if], data = [none] } } }
public class class_name { public void setValue(T value) throws IllegalArgumentException { Integer b = attributeClass.lookupInt.get(value); // Check if the value is not already a memeber of the attribute class. if (b == null) { // Check if the attribute class has been fi...
public class class_name { public void setValue(T value) throws IllegalArgumentException { Integer b = attributeClass.lookupInt.get(value); // Check if the value is not already a memeber of the attribute class. if (b == null) { // Check if the attribute class has been fi...
public class class_name { private static JoseFactory loadSpi(ClassLoader cl) { if (cl == null) { return null; } // start from the root CL and go back down to the TCCL JoseFactory instance = loadSpi(cl.getParent()); if (instance == null) { ServiceLoader<...
public class class_name { private static JoseFactory loadSpi(ClassLoader cl) { if (cl == null) { return null; // depends on control dependency: [if], data = [none] } // start from the root CL and go back down to the TCCL JoseFactory instance = loadSpi(cl.getParent()); ...
public class class_name { private String compileRealWord(String realWord, CoreDictionary.Attribute attribute) { if (attribute.nature.length == 1) { Nature nature = attribute.nature[0]; if (nature.startsWith("nr")) { wordID = CoreDictionary.NR_WORD...
public class class_name { private String compileRealWord(String realWord, CoreDictionary.Attribute attribute) { if (attribute.nature.length == 1) { Nature nature = attribute.nature[0]; if (nature.startsWith("nr")) { wordID = CoreDictionary.NR_WORD...