code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private static int isIsolatedTashkeelChar(char ch){ if (ch >= 0xfe70 && ch <= 0xfe7f && ch != NEW_TAIL_CHAR && ch != 0xFE75){ return (1 - tashkeelMedial [ch - 0xFE70]); } else if(ch >= 0xfc5e && ch <= 0xfc63){ return 1; } else{ retur...
public class class_name { private static int isIsolatedTashkeelChar(char ch){ if (ch >= 0xfe70 && ch <= 0xfe7f && ch != NEW_TAIL_CHAR && ch != 0xFE75){ return (1 - tashkeelMedial [ch - 0xFE70]); // depends on control dependency: [if], data = [none] } else if(ch >= 0xfc5e && ch <= 0xfc63){ ...
public class class_name { public void marshall(GetUsageRequest getUsageRequest, ProtocolMarshaller protocolMarshaller) { if (getUsageRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getUsag...
public class class_name { public void marshall(GetUsageRequest getUsageRequest, ProtocolMarshaller protocolMarshaller) { if (getUsageRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getUsag...
public class class_name { private String readScript( File file) throws IOException { if ( file == null) return null; StringBuilder script = new StringBuilder(); BufferedReader in = new BufferedReader( new FileReader(file)); try { String line; while (( line = in...
public class class_name { private String readScript( File file) throws IOException { if ( file == null) return null; StringBuilder script = new StringBuilder(); BufferedReader in = new BufferedReader( new FileReader(file)); try { String line; while (( line = in...
public class class_name { private void buildCommunicationSummaryStatistics(Map<String, CommunicationSummaryStatistics> stats, String index, Criteria criteria, boolean addMetrics) { if (!refresh(index)) { return; } // Don't specif...
public class class_name { private void buildCommunicationSummaryStatistics(Map<String, CommunicationSummaryStatistics> stats, String index, Criteria criteria, boolean addMetrics) { if (!refresh(index)) { return; // depends on control dependency: ...
public class class_name { public static int getSingleBondEquivalentSum(Iterator<IBond> bonds) { int sum = 0; while (bonds.hasNext()) { IBond.Order order = bonds.next().getOrder(); if (order != null) { sum += order.numeric(); } } return...
public class class_name { public static int getSingleBondEquivalentSum(Iterator<IBond> bonds) { int sum = 0; while (bonds.hasNext()) { IBond.Order order = bonds.next().getOrder(); if (order != null) { sum += order.numeric(); // depends on control dependency: [if]...
public class class_name { public void marshall(ParameterRanges parameterRanges, ProtocolMarshaller protocolMarshaller) { if (parameterRanges == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(paramet...
public class class_name { public void marshall(ParameterRanges parameterRanges, ProtocolMarshaller protocolMarshaller) { if (parameterRanges == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(paramet...
public class class_name { public void writeByteBuffer(WsByteBuffer[] buf) { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.entering(CLASS_NAME, "writeByteBuffer"); } if (!committed) { if (!_hasFlushed && obs != null) { _hasFlus...
public class class_name { public void writeByteBuffer(WsByteBuffer[] buf) { if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) { //306998.15 logger.entering(CLASS_NAME, "writeByteBuffer"); // depends on control dependency: [if], data = [none] } if (!committed) {...
public class class_name { public DecodingState decode(IoBuffer in, ProtocolDecoderOutput out) throws Exception { boolean found = false; boolean finished = false; while (in.hasRemaining()) { byte b = in.get(); if (!hasCR) { if (b == CR) { ...
public class class_name { public DecodingState decode(IoBuffer in, ProtocolDecoderOutput out) throws Exception { boolean found = false; boolean finished = false; while (in.hasRemaining()) { byte b = in.get(); if (!hasCR) { if (b == CR) { ...
public class class_name { @Override public void setAction(Context context, final SocializeAction action) { try { doSetAction(action); } catch (Exception e) { setText("Error!"); if(logger != null) { logger.error("Error rendering action text", e); } else { SocializeLogger.e(e.getMessag...
public class class_name { @Override public void setAction(Context context, final SocializeAction action) { try { doSetAction(action); // depends on control dependency: [try], data = [none] } catch (Exception e) { setText("Error!"); if(logger != null) { logger.error("Error rendering action text...
public class class_name { void commit(final boolean isJobCancelled) throws IOException { this.datasetStatesByUrns = Optional.of(computeDatasetStatesByUrns()); final boolean shouldCommitDataInJob = shouldCommitDataInJob(this.jobState); final DeliverySemantics deliverySemantics = DeliverySemantics.pars...
public class class_name { void commit(final boolean isJobCancelled) throws IOException { this.datasetStatesByUrns = Optional.of(computeDatasetStatesByUrns()); final boolean shouldCommitDataInJob = shouldCommitDataInJob(this.jobState); final DeliverySemantics deliverySemantics = DeliverySemantics.pars...
public class class_name { @Override public void aggregate(final ByteBuffer buf, final int position) { for (int i = 0; i < valueSelectors.length; i++) { values[i] = valueSelectors[i].getDouble(); } final IndexedInts keys = keySelector.getRow(); // Wrapping memory and ArrayOfDoublesSketch is in...
public class class_name { @Override public void aggregate(final ByteBuffer buf, final int position) { for (int i = 0; i < valueSelectors.length; i++) { values[i] = valueSelectors[i].getDouble(); // depends on control dependency: [for], data = [i] } final IndexedInts keys = keySelector.getRow(); ...
public class class_name { private void obtainToolbarElevation() { int elevation; try { elevation = ThemeUtil.getDimensionPixelSize(this, R.attr.toolbarElevation); } catch (NotFoundException e) { elevation = getResources().getDimensionPixelSize(R.dimen.toolbar_elevation)...
public class class_name { private void obtainToolbarElevation() { int elevation; try { elevation = ThemeUtil.getDimensionPixelSize(this, R.attr.toolbarElevation); // depends on control dependency: [try], data = [none] } catch (NotFoundException e) { elevation = getResou...
public class class_name { protected void taggingWeightWithWordFrequency(List<Word> words1, List<Word> words2){ if(words1.get(0).getWeight() != null || words2.get(0).getWeight() != null){ if(LOGGER.isDebugEnabled()){ LOGGER.debug("词已经被指定权重,不再使用词频进行标注"); } retu...
public class class_name { protected void taggingWeightWithWordFrequency(List<Word> words1, List<Word> words2){ if(words1.get(0).getWeight() != null || words2.get(0).getWeight() != null){ if(LOGGER.isDebugEnabled()){ LOGGER.debug("词已经被指定权重,不再使用词频进行标注"); // depends on control dependen...
public class class_name { public SchemaColumn copyAndReplaceWithTVE(int colIndex) { TupleValueExpression newTve; if (m_expression instanceof TupleValueExpression) { newTve = (TupleValueExpression) m_expression.clone(); newTve.setColumnIndex(colIndex); } else { ...
public class class_name { public SchemaColumn copyAndReplaceWithTVE(int colIndex) { TupleValueExpression newTve; if (m_expression instanceof TupleValueExpression) { newTve = (TupleValueExpression) m_expression.clone(); // depends on control dependency: [if], data = [none] newTve...
public class class_name { public void add(final AbstractHistogram otherHistogram) throws ArrayIndexOutOfBoundsException { long highestRecordableValue = highestEquivalentValue(valueFromIndex(countsArrayLength - 1)); if (highestRecordableValue < otherHistogram.getMaxValue()) { if (!isAutoResi...
public class class_name { public void add(final AbstractHistogram otherHistogram) throws ArrayIndexOutOfBoundsException { long highestRecordableValue = highestEquivalentValue(valueFromIndex(countsArrayLength - 1)); if (highestRecordableValue < otherHistogram.getMaxValue()) { if (!isAutoResi...
public class class_name { public static Map<CmsUUID, CmsUser> addExportUsersFromRoles( CmsObject cms, String ou, List<String> roles, Map<CmsUUID, CmsUser> exportUsers) throws CmsException { if ((roles != null) && (roles.size() > 0)) { Iterator<String> itRoles = ...
public class class_name { public static Map<CmsUUID, CmsUser> addExportUsersFromRoles( CmsObject cms, String ou, List<String> roles, Map<CmsUUID, CmsUser> exportUsers) throws CmsException { if ((roles != null) && (roles.size() > 0)) { Iterator<String> itRoles = ...
public class class_name { public void registerWorkerStatus(ZooKeeper zk, Plan plan, WorkerStatus s) throws WorkerDaoException{ String writeToPath = PLAN_WORKERS_ZK + "/" + plan.getName() + "/" + s.getWorkerUuid(); try { Stat planBase = zk.exists(PLAN_WORKERS_ZK + "/" + plan.getName(), false); if (p...
public class class_name { public void registerWorkerStatus(ZooKeeper zk, Plan plan, WorkerStatus s) throws WorkerDaoException{ String writeToPath = PLAN_WORKERS_ZK + "/" + plan.getName() + "/" + s.getWorkerUuid(); try { Stat planBase = zk.exists(PLAN_WORKERS_ZK + "/" + plan.getName(), false); if (p...
public class class_name { public void messagesAdded(int msgCount, BatchListener listener) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "messagesAdded","msgCount="+msgCount+",listener="+listener); boolean completeBatch = false; ...
public class class_name { public void messagesAdded(int msgCount, BatchListener listener) throws SIResourceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "messagesAdded","msgCount="+msgCount+",listener="+listener); boolean completeBatch = false; ...
public class class_name { @InterfaceStability.Unstable public synchronized String[] getPropertySources(String name) { if (properties == null) { // If properties is null, it means a resource was newly added // but the props were cleared so as to load it upon future // requests. So lets force a load by askin...
public class class_name { @InterfaceStability.Unstable public synchronized String[] getPropertySources(String name) { if (properties == null) { // If properties is null, it means a resource was newly added // but the props were cleared so as to load it upon future // requests. So lets force a load by askin...
public class class_name { @SuppressWarnings({ "unchecked", "null" }) public void update(final Sketch<S> sketchIn) { final boolean isFirstCall = isFirstCall_; isFirstCall_ = false; if (sketchIn == null) { isEmpty_ = true; sketch_ = null; return; } theta_ = min(theta_, sketchIn.ge...
public class class_name { @SuppressWarnings({ "unchecked", "null" }) public void update(final Sketch<S> sketchIn) { final boolean isFirstCall = isFirstCall_; isFirstCall_ = false; if (sketchIn == null) { isEmpty_ = true; // depends on control dependency: [if], data = [none] sketch_ = null; //...
public class class_name { public void marshall(ListRobotsRequest listRobotsRequest, ProtocolMarshaller protocolMarshaller) { if (listRobotsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(l...
public class class_name { public void marshall(ListRobotsRequest listRobotsRequest, ProtocolMarshaller protocolMarshaller) { if (listRobotsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(l...
public class class_name { public static LocalizedMessages getInstance(Locale locale) { LocalizedMessages instance = null; if (locale == null) { locale = Locale.getDefault(); } String localeKey = locale.getLanguage(); if (localizedMessages.containsKey(localeKey)) { instance =...
public class class_name { public static LocalizedMessages getInstance(Locale locale) { LocalizedMessages instance = null; if (locale == null) { locale = Locale.getDefault(); // depends on control dependency: [if], data = [none] } String localeKey = locale.getLanguage(); if (localizedM...
public class class_name { public static ImList<Class> registerClasses(Class... cs) { if (cs == null) { throw new IllegalArgumentException("Can't register a null type array"); } if (cs.length == 0) { throw new IllegalArgumentException("Can't register a zero-length type ar...
public class class_name { public static ImList<Class> registerClasses(Class... cs) { if (cs == null) { throw new IllegalArgumentException("Can't register a null type array"); } if (cs.length == 0) { throw new IllegalArgumentException("Can't register a zero-length type ar...
public class class_name { public static String[] nullToEmpty(String[] array) { if (array == null || array.length == 0) { return EMPTY_STRING_ARRAY; } return array; } }
public class class_name { public static String[] nullToEmpty(String[] array) { if (array == null || array.length == 0) { return EMPTY_STRING_ARRAY; // depends on control dependency: [if], data = [none] } return array; } }
public class class_name { @Override public void onActivityStopped(final Activity activity) { if (foregroundActivities.decrementAndGet() < 0) { ApptentiveLog.e("Incorrect number of foreground Activities encountered. Resetting to 0."); foregroundActivities.set(0); } if (checkFgBgRoutine != null) { delay...
public class class_name { @Override public void onActivityStopped(final Activity activity) { if (foregroundActivities.decrementAndGet() < 0) { ApptentiveLog.e("Incorrect number of foreground Activities encountered. Resetting to 0."); // depends on control dependency: [if], data = [none] foregroundActivities.s...
public class class_name { @Override public CPInstance fetchByC_NotST_First(long CPDefinitionId, int status, OrderByComparator<CPInstance> orderByComparator) { List<CPInstance> list = findByC_NotST(CPDefinitionId, status, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); } return ...
public class class_name { @Override public CPInstance fetchByC_NotST_First(long CPDefinitionId, int status, OrderByComparator<CPInstance> orderByComparator) { List<CPInstance> list = findByC_NotST(CPDefinitionId, status, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); // depends on ...
public class class_name { public void encodeData(AsnOutputStream asnOs) throws MAPException { try { if (this.choice == null) throw new MAPException("Error while encoding the " + _PrimitiveName + ": choice is not defined"); if ((this.choice == PSSubscriberStateChoice.ps...
public class class_name { public void encodeData(AsnOutputStream asnOs) throws MAPException { try { if (this.choice == null) throw new MAPException("Error while encoding the " + _PrimitiveName + ": choice is not defined"); if ((this.choice == PSSubscriberStateChoice.ps...
public class class_name { public static ClassSymbol outermostClass(Symbol symbol) { ClassSymbol curr = symbol.enclClass(); while (curr.owner != null) { ClassSymbol encl = curr.owner.enclClass(); if (encl == null) { break; } curr = encl; } return curr; } }
public class class_name { public static ClassSymbol outermostClass(Symbol symbol) { ClassSymbol curr = symbol.enclClass(); while (curr.owner != null) { ClassSymbol encl = curr.owner.enclClass(); if (encl == null) { break; } curr = encl; // depends on control dependency: [while],...
public class class_name { private void setName(Thread thread, String name) { try { thread.setName(name); } catch (SecurityException se) { if (LOGGER.isWarnEnabled()) { LOGGER.warn("Failed to set the thread name.", se); } } } }
public class class_name { private void setName(Thread thread, String name) { try { thread.setName(name); // depends on control dependency: [try], data = [none] } catch (SecurityException se) { if (LOGGER.isWarnEnabled()) { LOGGER.warn("Failed to set the thread na...
public class class_name { protected void _generate(SarlAnnotationType annotation, IExtraLanguageGeneratorContext context) { final JvmDeclaredType jvmType = getJvmModelAssociations().getInferredType(annotation); final PyAppendable appendable = createAppendable(jvmType, context); if (generateTypeDeclaration( t...
public class class_name { protected void _generate(SarlAnnotationType annotation, IExtraLanguageGeneratorContext context) { final JvmDeclaredType jvmType = getJvmModelAssociations().getInferredType(annotation); final PyAppendable appendable = createAppendable(jvmType, context); if (generateTypeDeclaration( t...
public class class_name { public static <T> T[] transform(T[] array, Transformer<T> transformer) { Assert.notNull(array, "Array is required"); Assert.notNull(transformer, "Transformer is required"); for (int index = 0; index < array.length; index++) { array[index] = transformer.transform(array[inde...
public class class_name { public static <T> T[] transform(T[] array, Transformer<T> transformer) { Assert.notNull(array, "Array is required"); Assert.notNull(transformer, "Transformer is required"); for (int index = 0; index < array.length; index++) { array[index] = transformer.transform(array[inde...
public class class_name { public Namer getManyToOneNamer(Attribute fromAttribute, Namer targetEntityNamer) { // configuration Namer result = getManyToOneNamerFromConf(fromAttribute.getColumnConfig(), targetEntityNamer); // fall back if (result == null) { result = getXToOneN...
public class class_name { public Namer getManyToOneNamer(Attribute fromAttribute, Namer targetEntityNamer) { // configuration Namer result = getManyToOneNamerFromConf(fromAttribute.getColumnConfig(), targetEntityNamer); // fall back if (result == null) { result = getXToOneN...
public class class_name { public static JvmType filterActiveProcessorType(JvmType type, CommonTypeComputationServices services) { if (AccessorsProcessor.class.getName().equals(type.getQualifiedName())) { return services.getTypeReferences().findDeclaredType(SarlAccessorsProcessor.class, type); } return type; ...
public class class_name { public static JvmType filterActiveProcessorType(JvmType type, CommonTypeComputationServices services) { if (AccessorsProcessor.class.getName().equals(type.getQualifiedName())) { return services.getTypeReferences().findDeclaredType(SarlAccessorsProcessor.class, type); // depends on contro...
public class class_name { public int nextCaseMapCP() { int c; if(cpLimit<limit) { cpStart=cpLimit; c=rep.char32At(cpLimit); cpLimit+=UTF16.getCharCount(c); return c; } else { return -1; } } }
public class class_name { public int nextCaseMapCP() { int c; if(cpLimit<limit) { cpStart=cpLimit; // depends on control dependency: [if], data = [none] c=rep.char32At(cpLimit); // depends on control dependency: [if], data = [(cpLimit] cpLimit+=UTF16.getCharCount(c);...
public class class_name { public static void saveSequenceFile(String path, JavaRDD<List<Writable>> rdd, Integer maxOutputFiles) { path = FilenameUtils.normalize(path, true); if (maxOutputFiles != null) { rdd = rdd.coalesce(maxOutputFiles); } JavaPairRDD<List<Writable>, Long...
public class class_name { public static void saveSequenceFile(String path, JavaRDD<List<Writable>> rdd, Integer maxOutputFiles) { path = FilenameUtils.normalize(path, true); if (maxOutputFiles != null) { rdd = rdd.coalesce(maxOutputFiles); // depends on control dependency: [if], data = [(m...
public class class_name { public boolean isBeforeRange(Range<T> otherRange) { if (otherRange == null) { return false; } return isBefore(otherRange.min); } }
public class class_name { public boolean isBeforeRange(Range<T> otherRange) { if (otherRange == null) { return false; } // depends on control dependency: [if], data = [none] return isBefore(otherRange.min); } }
public class class_name { public static String urlFormEncode(final String s) { if (StringUtils.isBlank(s)) { LOG.warn("Could not encode blank string"); throw new IllegalArgumentException("Blank string"); } try { return URLE...
public class class_name { public static String urlFormEncode(final String s) { if (StringUtils.isBlank(s)) { LOG.warn("Could not encode blank string"); // depends on control dependency: [if], data = [none] throw new IllegalArgumentException("Blank string"); ...
public class class_name { private String generateVersionEleStr() { StringBuilder sb = new StringBuilder(); sb.append(MyBatis3FormattingUtilities.getEscapedColumnName(this.versionColumn)); sb.append(" = "); sb.append("#{version,jdbcType="); sb.append(this.versionColumn.getJdbcTyp...
public class class_name { private String generateVersionEleStr() { StringBuilder sb = new StringBuilder(); sb.append(MyBatis3FormattingUtilities.getEscapedColumnName(this.versionColumn)); sb.append(" = "); sb.append("#{version,jdbcType="); sb.append(this.versionColumn.getJdbcTyp...
public class class_name { private Expression partToPartExpression(SoyMsgPart part) { if (part instanceof SoyMsgPlaceholderPart) { return SOY_MSG_PLACEHOLDER_PART.construct( constant(((SoyMsgPlaceholderPart) part).getPlaceholderName()), constantNull(STRING_TYPE)); } else if (part instanceof SoyM...
public class class_name { private Expression partToPartExpression(SoyMsgPart part) { if (part instanceof SoyMsgPlaceholderPart) { return SOY_MSG_PLACEHOLDER_PART.construct( constant(((SoyMsgPlaceholderPart) part).getPlaceholderName()), constantNull(STRING_TYPE)); // depends on control dependency: [...
public class class_name { public com.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig getReplaceWithInfoTypeConfig() { if (transformationCase_ == 7) { return (com.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig) transformation_; } return com.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig.getDefaultIn...
public class class_name { public com.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig getReplaceWithInfoTypeConfig() { if (transformationCase_ == 7) { return (com.google.privacy.dlp.v2.ReplaceWithInfoTypeConfig) transformation_; // depends on control dependency: [if], data = [none] } return com.google...
public class class_name { private static Integer safeInteger(String input) { try { return Integer.valueOf(input); } catch (Exception e) { return null; } } }
public class class_name { private static Integer safeInteger(String input) { try { return Integer.valueOf(input); // depends on control dependency: [try], data = [none] } catch (Exception e) { return null; } // depends on control dependency: [catch], data = [none] } }
public class class_name { public void marshall(DeleteApplicationCloudWatchLoggingOptionRequest deleteApplicationCloudWatchLoggingOptionRequest, ProtocolMarshaller protocolMarshaller) { if (deleteApplicationCloudWatchLoggingOptionRequest == null) { throw new SdkClientException("Invalid argument pas...
public class class_name { public void marshall(DeleteApplicationCloudWatchLoggingOptionRequest deleteApplicationCloudWatchLoggingOptionRequest, ProtocolMarshaller protocolMarshaller) { if (deleteApplicationCloudWatchLoggingOptionRequest == null) { throw new SdkClientException("Invalid argument pas...
public class class_name { public DescribeSchemasResult withSchemas(String... schemas) { if (this.schemas == null) { setSchemas(new java.util.ArrayList<String>(schemas.length)); } for (String ele : schemas) { this.schemas.add(ele); } return this; } }
public class class_name { public DescribeSchemasResult withSchemas(String... schemas) { if (this.schemas == null) { setSchemas(new java.util.ArrayList<String>(schemas.length)); // depends on control dependency: [if], data = [none] } for (String ele : schemas) { this.sche...
public class class_name { @Override protected Collection<? extends GrantedAuthority> loadUserAuthorities( DirContextOperations userData, String username, String password) { String[] groups = userData.getStringAttributes("memberOf"); if (groups == null) { logger.debug("No values for 'memberOf' attribute.");...
public class class_name { @Override protected Collection<? extends GrantedAuthority> loadUserAuthorities( DirContextOperations userData, String username, String password) { String[] groups = userData.getStringAttributes("memberOf"); if (groups == null) { logger.debug("No values for 'memberOf' attribute.");...
public class class_name { public String parse() { Map<String, ClassConstraints> classNameToValidationRulesMap = new HashMap<>(); for (Class clazz : classpathScanner.findClassesToParse()) { if (clazz != null) { ClassConstraints classValidationRules = new AnnotatedClass(clazz, options.getExcludedF...
public class class_name { public String parse() { Map<String, ClassConstraints> classNameToValidationRulesMap = new HashMap<>(); for (Class clazz : classpathScanner.findClassesToParse()) { if (clazz != null) { ClassConstraints classValidationRules = new AnnotatedClass(clazz, options.getExcludedF...
public class class_name { public final void mSTRING_LITERAL() throws RecognitionException { try { int _type = STRING_LITERAL; int _channel = DEFAULT_TOKEN_CHANNEL; // com/dyuproject/protostuff/parser/ProtoLexer.g:272:5: ( '\"' ( ESC_SEQ | ~ ( '\\\\' | '\"' ) )* '\"' ) ...
public class class_name { public final void mSTRING_LITERAL() throws RecognitionException { try { int _type = STRING_LITERAL; int _channel = DEFAULT_TOKEN_CHANNEL; // com/dyuproject/protostuff/parser/ProtoLexer.g:272:5: ( '\"' ( ESC_SEQ | ~ ( '\\\\' | '\"' ) )* '\"' ) ...
public class class_name { public static void bindDragHandle(final RecyclerView.ViewHolder holder, final IExtendedDraggable item) { // if necessary, init the drag handle, which will start the drag when touched if (item.getTouchHelper() != null && item.getDragView(holder) != null) { item.getD...
public class class_name { public static void bindDragHandle(final RecyclerView.ViewHolder holder, final IExtendedDraggable item) { // if necessary, init the drag handle, which will start the drag when touched if (item.getTouchHelper() != null && item.getDragView(holder) != null) { item.getD...
public class class_name { @SuppressWarnings("PMD.DataflowAnomalyAnalysis") protected static String derivePattern(String path) { String pattern; if ("/".equals(path)) { pattern = "/**"; } else { String patternBase = path; if (patternBase.endsWith("/")) { ...
public class class_name { @SuppressWarnings("PMD.DataflowAnomalyAnalysis") protected static String derivePattern(String path) { String pattern; if ("/".equals(path)) { pattern = "/**"; // depends on control dependency: [if], data = [none] } else { String patternBase ...
public class class_name { public void setAccountIdsToAdd(java.util.Collection<String> accountIdsToAdd) { if (accountIdsToAdd == null) { this.accountIdsToAdd = null; return; } this.accountIdsToAdd = new com.amazonaws.internal.SdkInternalList<String>(accountIdsToAdd); ...
public class class_name { public void setAccountIdsToAdd(java.util.Collection<String> accountIdsToAdd) { if (accountIdsToAdd == null) { this.accountIdsToAdd = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public WroModel create() { WroModel newModel = null; try { newModel = super.create(); } catch (final WroRuntimeException e) { LOG.error("Error while creating the model", e); } if (newModel == null) { LOG.warn("Couldn't load new model,...
public class class_name { @Override public WroModel create() { WroModel newModel = null; try { newModel = super.create(); // depends on control dependency: [try], data = [none] } catch (final WroRuntimeException e) { LOG.error("Error while creating the model", e); } // depends on ...
public class class_name { public ServiceBroker use(Collection<Middleware> middlewares) { if (serviceRegistry == null) { // Apply middlewares later this.middlewares.addAll(middlewares); } else { // Apply middlewares now serviceRegistry.use(middlewares); } return this; } }
public class class_name { public ServiceBroker use(Collection<Middleware> middlewares) { if (serviceRegistry == null) { // Apply middlewares later this.middlewares.addAll(middlewares); // depends on control dependency: [if], data = [none] } else { // Apply middlewares now serviceRegistry.use(middlewa...
public class class_name { public String convert(BufferedImage image, boolean favicon) { // Reset statistics before anything statsArray = new int[12]; // Begin the timer dStart = System.nanoTime(); // Scale the image image = scale(image, favicon); // The +1 is for...
public class class_name { public String convert(BufferedImage image, boolean favicon) { // Reset statistics before anything statsArray = new int[12]; // Begin the timer dStart = System.nanoTime(); // Scale the image image = scale(image, favicon); // The +1 is for...
public class class_name { @Override protected Double boundaryForSegment(String segmentName) throws IOException { if (segmentRegistration.equals(SEGMENT_SORT_ASC) || segmentRegistration.equals(SEGMENT_SORT_DESC)) { Double thisLast = segmentValueTopListLast.get(segmentName); if (thisLast == nul...
public class class_name { @Override protected Double boundaryForSegment(String segmentName) throws IOException { if (segmentRegistration.equals(SEGMENT_SORT_ASC) || segmentRegistration.equals(SEGMENT_SORT_DESC)) { Double thisLast = segmentValueTopListLast.get(segmentName); if (thisLast == nul...
public class class_name { protected final void beforeDelivery(MessageEndpoint endpoint) { if (TRACE.isEntryEnabled()) { final String methodName = "beforeDelivery"; SibTr.entry(this, TRACE, methodName, endpoint); SibTr.exit(this, TRACE, methodName); } } }
public class class_name { protected final void beforeDelivery(MessageEndpoint endpoint) { if (TRACE.isEntryEnabled()) { final String methodName = "beforeDelivery"; SibTr.entry(this, TRACE, methodName, endpoint); // depends on control dependency: [if], data = [none] SibTr.ex...
public class class_name { @Override public long size() { if (this.isDirectory()) { return -1L; } final Asset asset = this.getArchive().get(this.path.toString()).getAsset(); final InputStream stream = asset.openStream(); int totalRead = 0; final byte[] bu...
public class class_name { @Override public long size() { if (this.isDirectory()) { return -1L; // depends on control dependency: [if], data = [none] } final Asset asset = this.getArchive().get(this.path.toString()).getAsset(); final InputStream stream = asset.openStream...
public class class_name { protected Set<Radio> getRadioChildren(final Widget widget, final Set<Radio> c) { Set<Radio> children = c; if (children == null) { children = new HashSet<Radio>(); } if (widget instanceof Radio) { children.add((Radio) widget); } e...
public class class_name { protected Set<Radio> getRadioChildren(final Widget widget, final Set<Radio> c) { Set<Radio> children = c; if (children == null) { children = new HashSet<Radio>(); // depends on control dependency: [if], data = [none] } if (widget instanceof Radio) {...
public class class_name { public void setLaunchTemplates(java.util.Collection<LaunchTemplate> launchTemplates) { if (launchTemplates == null) { this.launchTemplates = null; return; } this.launchTemplates = new com.amazonaws.internal.SdkInternalList<LaunchTemplate>(launc...
public class class_name { public void setLaunchTemplates(java.util.Collection<LaunchTemplate> launchTemplates) { if (launchTemplates == null) { this.launchTemplates = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none...
public class class_name { public static <S1, S2, I, T1, T2, SP, TP, A extends MutableDeterministic<S2, I, T2, SP, TP>> A toDeterministic( PaigeTarjan pt, AutomatonCreator<A, I> creator, Alphabet<I> inputs, DeterministicAutomaton<S1, I, T1> original, StateIDs<...
public class class_name { public static <S1, S2, I, T1, T2, SP, TP, A extends MutableDeterministic<S2, I, T2, SP, TP>> A toDeterministic( PaigeTarjan pt, AutomatonCreator<A, I> creator, Alphabet<I> inputs, DeterministicAutomaton<S1, I, T1> original, StateIDs<...
public class class_name { private void checkColumnSize(Column<?> newColumn) { if (columnCount() != 0) { Preconditions.checkArgument(newColumn.size() == rowCount(), "Column " + newColumn.name() + " does not have the same number of rows as the other col...
public class class_name { private void checkColumnSize(Column<?> newColumn) { if (columnCount() != 0) { Preconditions.checkArgument(newColumn.size() == rowCount(), "Column " + newColumn.name() + " does not have the same number of rows as the other col...
public class class_name { public long addNextFile(SourceFile source) { String strPath = source.getFilePath(); long lStreamLength = source.getStreamLength(); InputStream inStream = source.makeInStream(); long lLength = 0; try { if (m_lMaxZipFileSize > 0) //? if (lLength != File.OL) { // Check...
public class class_name { public long addNextFile(SourceFile source) { String strPath = source.getFilePath(); long lStreamLength = source.getStreamLength(); InputStream inStream = source.makeInStream(); long lLength = 0; try { if (m_lMaxZipFileSize > 0) //? if (lLength != File.OL) { // Check...
public class class_name { public static final synchronized Date parseTime(String time) { try { return timeFormat.parse(time); } catch(ParseException e) { throw new RuntimeException(e); } } }
public class class_name { public static final synchronized Date parseTime(String time) { try { return timeFormat.parse(time); // depends on control dependency: [try], data = [none] } catch(ParseException e) { throw new RuntimeException(e); } // depends on control dependency: [catch], data = [none] } }
public class class_name { @Override public int append(ReadableByteChannel channel) throws IOException { assert invariant(true); int totalRead = 0; try { boolean done; // precondition: the channel has data do { ByteBuffer dest = writableBuf(); int space = dest.remaining(); assert space...
public class class_name { @Override public int append(ReadableByteChannel channel) throws IOException { assert invariant(true); int totalRead = 0; try { boolean done; // precondition: the channel has data do { ByteBuffer dest = writableBuf(); int space = dest.remaining(); assert space...
public class class_name { public static void rcvCreateDurableSub(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) ...
public class class_name { public static void rcvCreateDurableSub(CommsByteBuffer request, Conversation conversation, int requestNumber, boolean allocatedFromBufferPool, boolean partOfExchange) ...
public class class_name { private char retrieveWrappingQuoteTypeOfJsonMemberNames(String jsonString) { char quote = '\"'; // the default quote character used to specify json member names and string value according to the json specification for (char c : jsonString.toCharArray()) { if (c ...
public class class_name { private char retrieveWrappingQuoteTypeOfJsonMemberNames(String jsonString) { char quote = '\"'; // the default quote character used to specify json member names and string value according to the json specification for (char c : jsonString.toCharArray()) { if (c ...
public class class_name { public final void setHintTextColor(final ColorStateList colors) { this.hintColor = colors; if (getAdapter() != null) { ProxySpinnerAdapter proxyAdapter = (ProxySpinnerAdapter) getAdapter(); setAdapter(proxyAdapter.getAdapter()); } } }
public class class_name { public final void setHintTextColor(final ColorStateList colors) { this.hintColor = colors; if (getAdapter() != null) { ProxySpinnerAdapter proxyAdapter = (ProxySpinnerAdapter) getAdapter(); setAdapter(proxyAdapter.getAdapter()); // depends on control d...
public class class_name { public void setS3(java.util.Collection<CodeGenNodeArg> s3) { if (s3 == null) { this.s3 = null; return; } this.s3 = new java.util.ArrayList<CodeGenNodeArg>(s3); } }
public class class_name { public void setS3(java.util.Collection<CodeGenNodeArg> s3) { if (s3 == null) { this.s3 = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.s3 = new java.util.ArrayLi...
public class class_name { public void marshall(DeleteVoiceConnectorTerminationCredentialsRequest deleteVoiceConnectorTerminationCredentialsRequest, ProtocolMarshaller protocolMarshaller) { if (deleteVoiceConnectorTerminationCredentialsRequest == null) { throw new SdkClientException("In...
public class class_name { public void marshall(DeleteVoiceConnectorTerminationCredentialsRequest deleteVoiceConnectorTerminationCredentialsRequest, ProtocolMarshaller protocolMarshaller) { if (deleteVoiceConnectorTerminationCredentialsRequest == null) { throw new SdkClientException("In...
public class class_name { public static <T extends Throwable> T assertThrows(String message, Class<T> expectedThrowable, ThrowingRunnable runnable) { try { runnable.run(); } catch (Throwable actualThrown) { if (expectedThrowable.isInstance(actualThrown)) { ...
public class class_name { public static <T extends Throwable> T assertThrows(String message, Class<T> expectedThrowable, ThrowingRunnable runnable) { try { runnable.run(); // depends on control dependency: [try], data = [none] } catch (Throwable actualThrown) { if (e...
public class class_name { private void moveToFirst(List<ImageFormat> v, int format){ for(ImageFormat i : v) if(i.getIndex()==format){ v.remove(i); v.add(0, i); break; } } }
public class class_name { private void moveToFirst(List<ImageFormat> v, int format){ for(ImageFormat i : v) if(i.getIndex()==format){ v.remove(i); // depends on control dependency: [if], data = [none] v.add(0, i); // depends on control dependency: [if], data = [none] break; } } }
public class class_name { public int getIndex() { if (parent != null) { for (int i = 0; i < parent.children.size(); i++) { if (parent.children.get(i) == this) { return i; } } } return -1; } }
public class class_name { public int getIndex() { if (parent != null) { for (int i = 0; i < parent.children.size(); i++) { if (parent.children.get(i) == this) { return i; // depends on control dependency: [if], data = [none] } } ...
public class class_name { private void convertLink2Record(final int iIndex) { if (ridOnly || !autoConvertToRecord) // PRECONDITIONS return; final OIdentifiable o = super.get(iIndex); if (contentType == MULTIVALUE_CONTENT_TYPE.ALL_RECORDS && !o.getIdentity().isNew()) // ALL RECORDS AND THE OBJE...
public class class_name { private void convertLink2Record(final int iIndex) { if (ridOnly || !autoConvertToRecord) // PRECONDITIONS return; final OIdentifiable o = super.get(iIndex); if (contentType == MULTIVALUE_CONTENT_TYPE.ALL_RECORDS && !o.getIdentity().isNew()) // ALL RECORDS AND THE OBJE...
public class class_name { private synchronized File getWorkingDirectory() { if (workingDirectory == null) { try { workingDirectory = Files.createTempDirectory(TEMP_DIRECTORY_PREFIX).toFile(); } catch (IOException e) { throw new UnexpectedException(e); } } retur...
public class class_name { private synchronized File getWorkingDirectory() { if (workingDirectory == null) { try { workingDirectory = Files.createTempDirectory(TEMP_DIRECTORY_PREFIX).toFile(); // depends on control dependency: [try], data = [none] } catch (IOException e) { th...
public class class_name { Throwable externalCause() { IdentityHashMap<Throwable, Throwable> seen = new IdentityHashMap<Throwable, Throwable>(); Throwable cause = getCause(); while (cause instanceof IonException) { if (seen.put(cause, cause) != null) // cycl...
public class class_name { Throwable externalCause() { IdentityHashMap<Throwable, Throwable> seen = new IdentityHashMap<Throwable, Throwable>(); Throwable cause = getCause(); while (cause instanceof IonException) { if (seen.put(cause, cause) != null) // cycl...
public class class_name { private static <E> Collection<E> checkElements( Collection<E> elements, Constraint<? super E> constraint) { Collection<E> copy = Lists.newArrayList(elements); for (E element : copy) { constraint.checkElement(element); } return copy; } }
public class class_name { private static <E> Collection<E> checkElements( Collection<E> elements, Constraint<? super E> constraint) { Collection<E> copy = Lists.newArrayList(elements); for (E element : copy) { constraint.checkElement(element); // depends on control dependency: [for], data = [elemen...
public class class_name { @Override public void drawText(Graphics2D graphics, int width, int height) { if(StringUtils.isBlank(text) || StringUtils.isBlank(domainName)) { return ; } int x = 0, y = 0; int fontsize = ((int)(width * textWidthPercent)) / domainName....
public class class_name { @Override public void drawText(Graphics2D graphics, int width, int height) { if(StringUtils.isBlank(text) || StringUtils.isBlank(domainName)) { return ; // depends on control dependency: [if], data = [none] } int x = 0, y = 0; int font...
public class class_name { public static List<TraceEvent> filterCCMEvents(List<TraceEvent> data) throws Exception { List<TraceEvent> result = new ArrayList<TraceEvent>(); for (TraceEvent te : data) { if (te.getType() == TraceEvent.PUSH_CCM_CONTEXT || te.getType() == TraceEven...
public class class_name { public static List<TraceEvent> filterCCMEvents(List<TraceEvent> data) throws Exception { List<TraceEvent> result = new ArrayList<TraceEvent>(); for (TraceEvent te : data) { if (te.getType() == TraceEvent.PUSH_CCM_CONTEXT || te.getType() == TraceEven...
public class class_name { public static @CheckForNull @CheckReturnValue TypeQualifierAnnotation getDirectTypeQualifierAnnotation(XMethod xmethod, int parameter, TypeQualifierValue<?> typeQualifierValue) { XMethod bridge = xmethod.bridgeTo(); if (bridge != null) { xmethod = bridge; ...
public class class_name { public static @CheckForNull @CheckReturnValue TypeQualifierAnnotation getDirectTypeQualifierAnnotation(XMethod xmethod, int parameter, TypeQualifierValue<?> typeQualifierValue) { XMethod bridge = xmethod.bridgeTo(); if (bridge != null) { xmethod = bridge; // de...
public class class_name { private String getStringValue(Node node) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: case Node.TEXT_NODE: return node.getNodeValue(); default: { try { Transformer transformer = TRANSF...
public class class_name { private String getStringValue(Node node) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: case Node.TEXT_NODE: return node.getNodeValue(); default: { try { Transformer transformer = TRANSF...
public class class_name { @SuppressWarnings({ "unchecked", "PMD.AvoidThrowingNewInstanceOfSameException" }) public static <T extends Error> T duplicate(T event) { try { return (T) event.getClass().getConstructor(event.getClass()) .newInstance(event); } catch (Ins...
public class class_name { @SuppressWarnings({ "unchecked", "PMD.AvoidThrowingNewInstanceOfSameException" }) public static <T extends Error> T duplicate(T event) { try { return (T) event.getClass().getConstructor(event.getClass()) .newInstance(event); // depends on contro...
public class class_name { public Date getCreationDateTime() { long time = 0; if (createtime != null) { time = createtime.longValue() * 1000; } if (createtime_nano != null) { time += (createtime_nano.longValue() / 1000000); } return new Date(time); } }
public class class_name { public Date getCreationDateTime() { long time = 0; if (createtime != null) { time = createtime.longValue() * 1000; // depends on control dependency: [if], data = [none] } if (createtime_nano != null) { time += (createtime_nano.longValue() / 1000000); // depends on control dep...
public class class_name { public java.util.List<SingleInstanceHealth> getInstanceHealthList() { if (instanceHealthList == null) { instanceHealthList = new com.amazonaws.internal.SdkInternalList<SingleInstanceHealth>(); } return instanceHealthList; } }
public class class_name { public java.util.List<SingleInstanceHealth> getInstanceHealthList() { if (instanceHealthList == null) { instanceHealthList = new com.amazonaws.internal.SdkInternalList<SingleInstanceHealth>(); // depends on control dependency: [if], data = [none] } return i...
public class class_name { private static void println(StringBuilder buf, int width, String data) { for(String line : FormatUtil.splitAtLastBlank(data, width)) { buf.append(line); if(!line.endsWith(FormatUtil.NEWLINE)) { buf.append(FormatUtil.NEWLINE); } } } }
public class class_name { private static void println(StringBuilder buf, int width, String data) { for(String line : FormatUtil.splitAtLastBlank(data, width)) { buf.append(line); // depends on control dependency: [for], data = [line] if(!line.endsWith(FormatUtil.NEWLINE)) { buf.append(FormatUti...
public class class_name { @Nonnull public ByteBuffer getAsNewByteBuffer (@Nonnull final String sSource) { // Optimized for 1 byte per character strings (ASCII) ByteBuffer ret = ByteBuffer.allocate (sSource.length () + BUFFER_EXTRA_BYTES); while (encode (sSource, ret).isContinue ()) { // need...
public class class_name { @Nonnull public ByteBuffer getAsNewByteBuffer (@Nonnull final String sSource) { // Optimized for 1 byte per character strings (ASCII) ByteBuffer ret = ByteBuffer.allocate (sSource.length () + BUFFER_EXTRA_BYTES); while (encode (sSource, ret).isContinue ()) { // need...
public class class_name { protected StringPropertyEditor getRDFCommentEditor(BioPAXElement bpe) { StringPropertyEditor editor; Class<? extends BioPAXElement> inter = bpe.getModelInterface(); if (this.getLevel().equals(BioPAXLevel.L3)) { editor = (StringPropertyEditor) this.getEditorMap().getEditorForProper...
public class class_name { protected StringPropertyEditor getRDFCommentEditor(BioPAXElement bpe) { StringPropertyEditor editor; Class<? extends BioPAXElement> inter = bpe.getModelInterface(); if (this.getLevel().equals(BioPAXLevel.L3)) { editor = (StringPropertyEditor) this.getEditorMap().getEditorForProper...
public class class_name { @SuppressWarnings("unchecked") private boolean hasPropertiesConfiguration(Dictionary properties) { HashMap<Object, Object> mapProperties = new HashMap<Object, Object>(properties.size()); for (Object key : Collections.list(properties.keys())) { mapProperties.put(key, properties...
public class class_name { @SuppressWarnings("unchecked") private boolean hasPropertiesConfiguration(Dictionary properties) { HashMap<Object, Object> mapProperties = new HashMap<Object, Object>(properties.size()); for (Object key : Collections.list(properties.keys())) { mapProperties.put(key, properties...
public class class_name { public synchronized void start() { for (final AttributeCache cache : attributeCacheMap.values()) { cache.startRefresh(POLLING_POOL); } for (final CommandCache cache : commandCacheMap.values()) { cache.startRefresh(POLLING_POOL); } ...
public class class_name { public synchronized void start() { for (final AttributeCache cache : attributeCacheMap.values()) { cache.startRefresh(POLLING_POOL); // depends on control dependency: [for], data = [cache] } for (final CommandCache cache : commandCacheMap.values()) { ...
public class class_name { public synchronized void entering(long fnr2) { int fnr = (int) fnr2; // Here the long value is casted into in to be used as index to the arrays. requesting(fnr);// the #req counter is changed to add one to it. try { if (!instance.evaluatePP(fnr).booleanValue()) // the first evalua...
public class class_name { public synchronized void entering(long fnr2) { int fnr = (int) fnr2; // Here the long value is casted into in to be used as index to the arrays. requesting(fnr);// the #req counter is changed to add one to it. try { if (!instance.evaluatePP(fnr).booleanValue()) // the first evalua...
public class class_name { public Object get(Object key, int version) { if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, methodNames[GET], key + " " + version); ...
public class class_name { public Object get(Object key, int version) { if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, methodNames[GET], key + " " + version); ...
public class class_name { protected void checkMethods(Class<?> itfClass) { ConcurrentHashMap<String, Boolean> methodsLimit = new ConcurrentHashMap<String, Boolean>(); for (Method method : itfClass.getMethods()) { String methodName = method.getName(); if (methodsLimit.containsKey...
public class class_name { protected void checkMethods(Class<?> itfClass) { ConcurrentHashMap<String, Boolean> methodsLimit = new ConcurrentHashMap<String, Boolean>(); for (Method method : itfClass.getMethods()) { String methodName = method.getName(); if (methodsLimit.containsKey...
public class class_name { public static String getResourceVersion(HasMetadata entity) { if (entity != null) { ObjectMeta metadata = entity.getMetadata(); if (metadata != null) { String resourceVersion = metadata.getResourceVersion(); if (StringUtils.isNot...
public class class_name { public static String getResourceVersion(HasMetadata entity) { if (entity != null) { ObjectMeta metadata = entity.getMetadata(); if (metadata != null) { String resourceVersion = metadata.getResourceVersion(); if (StringUtils.isNot...
public class class_name { public ServletContext getServletContext() { ServletConfig sc = getServletConfig(); if (sc == null) { throw new IllegalStateException( lStrings.getString("err.servlet_config_not_initialized")); } return sc.getServletContext(); } ...
public class class_name { public ServletContext getServletContext() { ServletConfig sc = getServletConfig(); if (sc == null) { throw new IllegalStateException( lStrings.getString("err.servlet_config_not_initialized")); } return sc.getServletContext(); // dep...
public class class_name { @Override public Iterator<? extends IPAddressSeqRange> prefixIterator(int prefixLength) { if(!isMultiple()) { return new Iterator<IPAddressSeqRange>() { IPAddressSeqRange orig = IPAddressSeqRange.this; @Override public boolean hasNext() { return orig != null; } ...
public class class_name { @Override public Iterator<? extends IPAddressSeqRange> prefixIterator(int prefixLength) { if(!isMultiple()) { return new Iterator<IPAddressSeqRange>() { IPAddressSeqRange orig = IPAddressSeqRange.this; @Override public boolean hasNext() { return orig != null; } ...
public class class_name { public String buildCurrentPermissions() { StringBuffer result = new StringBuffer( dialogToggleStart( key(Messages.GUI_PERMISSION_USER_0), "userpermissions", getSettings().getUserSettings().getDialogExpandUserPermissions()));...
public class class_name { public String buildCurrentPermissions() { StringBuffer result = new StringBuffer( dialogToggleStart( key(Messages.GUI_PERMISSION_USER_0), "userpermissions", getSettings().getUserSettings().getDialogExpandUserPermissions()));...
public class class_name { public void computeNonEdgeForces(int pointIndex, double theta, INDArray negativeForce, AtomicDouble sumQ) { // Make sure that we spend no time on empty nodes or self-interactions if (cumSize == 0 || (isLeaf() && size == 1 && index[0] == pointIndex)) return; ...
public class class_name { public void computeNonEdgeForces(int pointIndex, double theta, INDArray negativeForce, AtomicDouble sumQ) { // Make sure that we spend no time on empty nodes or self-interactions if (cumSize == 0 || (isLeaf() && size == 1 && index[0] == pointIndex)) return; ...
public class class_name { private void startRecording(String line, DispatchCallback callback) { OutputFile outputFile = sqlLine.getRecordOutputFile(); if (outputFile != null) { callback.setToFailure(); sqlLine.error(sqlLine.loc("record-already-running", outputFile)); return; } String...
public class class_name { private void startRecording(String line, DispatchCallback callback) { OutputFile outputFile = sqlLine.getRecordOutputFile(); if (outputFile != null) { callback.setToFailure(); // depends on control dependency: [if], data = [none] sqlLine.error(sqlLine.loc("record-already-r...
public class class_name { public static List<MainType> getMainTypesBySize(final int typeSize) { final List<MainType> l = new ArrayList<>(); for (final Iterator<MainType> i = map.values().iterator(); i.hasNext();) { final MainType type = i.next(); try { final String dptId = type.getSubTypes().keySet().it...
public class class_name { public static List<MainType> getMainTypesBySize(final int typeSize) { final List<MainType> l = new ArrayList<>(); for (final Iterator<MainType> i = map.values().iterator(); i.hasNext();) { final MainType type = i.next(); try { final String dptId = type.getSubTypes().keySet().it...
public class class_name { public void mouseDragged(MouseEvent e) { if (pressed) { int deltaY = e.getYOnScreen() - lastY; lastY = e.getYOnScreen(); int deltaX = e.getXOnScreen() - lastX; lastX = e.getXOnScreen(); boolean revalidate = fals...
public class class_name { public void mouseDragged(MouseEvent e) { if (pressed) { int deltaY = e.getYOnScreen() - lastY; lastY = e.getYOnScreen(); // depends on control dependency: [if], data = [none] int deltaX = e.getXOnScreen() - lastX; lastX = e....
public class class_name { public static boolean isInstance(Object obj, String interfaceClazzName) { for (Class<?> clazz = obj.getClass(); clazz != null && !clazz.equals(Object.class); clazz = clazz.getSuperclass()) { Class<?>[] interfaces = clazz.getInterfaces(); for (Class<?> itf : interfaces) { if (i...
public class class_name { public static boolean isInstance(Object obj, String interfaceClazzName) { for (Class<?> clazz = obj.getClass(); clazz != null && !clazz.equals(Object.class); clazz = clazz.getSuperclass()) { Class<?>[] interfaces = clazz.getInterfaces(); for (Class<?> itf : interfaces) { if (i...
public class class_name { private void closeFreshSelectConnections(Connection lastSelectConnect, List<Connection> serviceOffConnections) throws InterruptedException { if (null != las...
public class class_name { private void closeFreshSelectConnections(Connection lastSelectConnect, List<Connection> serviceOffConnections) throws InterruptedException { if (null != las...
public class class_name { public synchronized void closeConnection( int code, String message, boolean remote ) { if( readyState == ReadyState.CLOSED ) { return; } //Methods like eot() call this method without calling onClose(). Due to that reason we have to adjust the ReadyState manually if( readyState == R...
public class class_name { public synchronized void closeConnection( int code, String message, boolean remote ) { if( readyState == ReadyState.CLOSED ) { return; // depends on control dependency: [if], data = [none] } //Methods like eot() call this method without calling onClose(). Due to that reason we have t...