code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public long setCommitIndex(long commitIndex) { checkArgument(commitIndex >= 0, "commitIndex must be positive"); long previousCommitIndex = this.commitIndex; if (commitIndex > previousCommitIndex) { this.commitIndex = commitIndex; logWriter.commit(Math.min(commitIndex, ...
public class class_name { public long setCommitIndex(long commitIndex) { checkArgument(commitIndex >= 0, "commitIndex must be positive"); long previousCommitIndex = this.commitIndex; if (commitIndex > previousCommitIndex) { this.commitIndex = commitIndex; // depends on control dependency: [if], data ...
public class class_name { public DomainCommandBuilder setInterProcessHostControllerPort(final String port) { if (port != null) { setInterProcessHostControllerPort(Integer.parseInt(port)); } return this; } }
public class class_name { public DomainCommandBuilder setInterProcessHostControllerPort(final String port) { if (port != null) { setInterProcessHostControllerPort(Integer.parseInt(port)); // depends on control dependency: [if], data = [(port] } return this; } }
public class class_name { private void makeDirectories(String dirPath, String permissions) throws IOException { if (!dirPath.contains("/")) return; String[] pathElements = dirPath.split("/"); if (pathElements.length == 1) return; // if the string ends with / it means that the dir pat...
public class class_name { private void makeDirectories(String dirPath, String permissions) throws IOException { if (!dirPath.contains("/")) return; String[] pathElements = dirPath.split("/"); if (pathElements.length == 1) return; // if the string ends with / it means that the dir pat...
public class class_name { public void resolveBuilderType() { if (getBuilderTypeStyle() == null) { setBuilderTypeStyle(""); } final String fieldType = getFieldType(); String generics = ""; if (fieldType.contains("<")) { generics = fieldType.substring(field...
public class class_name { public void resolveBuilderType() { if (getBuilderTypeStyle() == null) { setBuilderTypeStyle(""); // depends on control dependency: [if], data = [none] } final String fieldType = getFieldType(); String generics = ""; if (fieldType.contains("<...
public class class_name { public static Version parse(String version) { Assert.hasText(version, "Version must not be null o empty!"); String[] parts = version.trim().split("\\."); int[] intParts = new int[parts.length]; for (int i = 0; i < parts.length; i++) { String input = i == parts.length...
public class class_name { public static Version parse(String version) { Assert.hasText(version, "Version must not be null o empty!"); String[] parts = version.trim().split("\\."); int[] intParts = new int[parts.length]; for (int i = 0; i < parts.length; i++) { String input = i == parts.length...
public class class_name { public static Character[] valuesOf(char[] array) { Character[] dest = new Character[array.length]; for (int i = 0; i < array.length; i++) { dest[i] = Character.valueOf(array[i]); } return dest; } }
public class class_name { public static Character[] valuesOf(char[] array) { Character[] dest = new Character[array.length]; for (int i = 0; i < array.length; i++) { dest[i] = Character.valueOf(array[i]); // depends on control dependency: [for], data = [i] } return dest; } }
public class class_name { public Finder<SQLProperty> getEntityBySimpleName(String entityName) { if (entityName == null) return null; SQLiteEntity result = entitiesBySimpleName.get(entityName.toLowerCase()); if (result != null) return result; for (GeneratedTypeElement item : this.generatedEntities) { ...
public class class_name { public Finder<SQLProperty> getEntityBySimpleName(String entityName) { if (entityName == null) return null; SQLiteEntity result = entitiesBySimpleName.get(entityName.toLowerCase()); if (result != null) return result; for (GeneratedTypeElement item : this.generatedEntities) { ...
public class class_name { public WriteResult insert(DBObject dbObject, QueryOptions options) { if(options != null && (options.containsKey("w") || options.containsKey("wtimeout"))) { // Some info about params: http://api.mongodb.org/java/current/com/mongodb/WriteConcern.html return dbCol...
public class class_name { public WriteResult insert(DBObject dbObject, QueryOptions options) { if(options != null && (options.containsKey("w") || options.containsKey("wtimeout"))) { // Some info about params: http://api.mongodb.org/java/current/com/mongodb/WriteConcern.html return dbCol...
public class class_name { public boolean add(Task task) { // Check that this slot has been assigned to the job sending this task Preconditions.checkArgument(task.getJobID().equals(jobId), "The task's job id does not match the " + "job id for which the slot has been allocated."); Preconditions.checkArgument(ta...
public class class_name { public boolean add(Task task) { // Check that this slot has been assigned to the job sending this task Preconditions.checkArgument(task.getJobID().equals(jobId), "The task's job id does not match the " + "job id for which the slot has been allocated."); Preconditions.checkArgument(ta...
public class class_name { private static TableColumnModelListener createTableColumnModelListener(final JTable table) { return new TableColumnModelListener() { public void columnAdded(TableColumnModelEvent e) { if (table.getParent() instanceof JViewport && table.getParent().getParent...
public class class_name { private static TableColumnModelListener createTableColumnModelListener(final JTable table) { return new TableColumnModelListener() { public void columnAdded(TableColumnModelEvent e) { if (table.getParent() instanceof JViewport && table.getParent().getParent...
public class class_name { public void setCompatibilities(java.util.Collection<String> compatibilities) { if (compatibilities == null) { this.compatibilities = null; return; } this.compatibilities = new com.amazonaws.internal.SdkInternalList<String>(compatibilities); ...
public class class_name { public void setCompatibilities(java.util.Collection<String> compatibilities) { if (compatibilities == null) { this.compatibilities = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { public DataSet query(final Class<?> targetClass, Collection<String> selectColumnNames, Condition whereClause, String groupBy, String having, String orderBy, int offset, int count) { if (N.isNullOrEmpty(selectColumnNames)) { selectColumnNames = ClassUtil.getP...
public class class_name { public DataSet query(final Class<?> targetClass, Collection<String> selectColumnNames, Condition whereClause, String groupBy, String having, String orderBy, int offset, int count) { if (N.isNullOrEmpty(selectColumnNames)) { selectColumnNames = ClassUtil.getP...
public class class_name { static int getUsageIndex(DSAKeyValidationParameters.Usage usage) { if (usage == DSAKeyValidationParameters.Usage.DIGITAL_SIGNATURE) { return DSAParameterGenerationParameters.DIGITAL_SIGNATURE_USAGE; } else if (usage == DSAKeyValidationParameters.Usage.KEY_ESTAB...
public class class_name { static int getUsageIndex(DSAKeyValidationParameters.Usage usage) { if (usage == DSAKeyValidationParameters.Usage.DIGITAL_SIGNATURE) { return DSAParameterGenerationParameters.DIGITAL_SIGNATURE_USAGE; // depends on control dependency: [if], data = [none] } else i...
public class class_name { public EClass getIfcMaterialLayerSet() { if (ifcMaterialLayerSetEClass == null) { ifcMaterialLayerSetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(310); } return ifcMaterialLayerSetEClass; } }
public class class_name { public EClass getIfcMaterialLayerSet() { if (ifcMaterialLayerSetEClass == null) { ifcMaterialLayerSetEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(310); // depends on control dependency: [if], data = [none] } retur...
public class class_name { public void setFrom(Address address) { assertArgumentNotNull("address", address); from = address; try { message.setFrom(address); } catch (MessagingException e) { String msg = buildAddressSettingFailureMessage("from", address); ...
public class class_name { public void setFrom(Address address) { assertArgumentNotNull("address", address); from = address; try { message.setFrom(address); // depends on control dependency: [try], data = [none] } catch (MessagingException e) { String msg = buildA...
public class class_name { public int compareTo(Object o) { if (!(o instanceof UrlMapping)) { throw new IllegalArgumentException("Cannot compare with Object [" + o + "]. It is not an instance of UrlMapping!"); } if (equals(o)) return 0; UrlMapping other = (UrlMapping) o; ...
public class class_name { public int compareTo(Object o) { if (!(o instanceof UrlMapping)) { throw new IllegalArgumentException("Cannot compare with Object [" + o + "]. It is not an instance of UrlMapping!"); } if (equals(o)) return 0; UrlMapping other = (UrlMapping) o; ...
public class class_name { protected void auditProvideAndRegisterEvent( IHETransactionEventTypeCodes transaction, RFC3881EventOutcomeCodes eventOutcome, String repositoryEndpointUri, String userName, String submissionSetUniqueId, String patientId, List<CodedValueType> purposesOfUse...
public class class_name { protected void auditProvideAndRegisterEvent( IHETransactionEventTypeCodes transaction, RFC3881EventOutcomeCodes eventOutcome, String repositoryEndpointUri, String userName, String submissionSetUniqueId, String patientId, List<CodedValueType> purposesOfUse...
public class class_name { public void marshall(SetStatusRequest setStatusRequest, ProtocolMarshaller protocolMarshaller) { if (setStatusRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(setS...
public class class_name { public void marshall(SetStatusRequest setStatusRequest, ProtocolMarshaller protocolMarshaller) { if (setStatusRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(setS...
public class class_name { @Override public void visitCode(Code obj) { try { stack.resetForMethodEntry(this); reportedType = ImmutabilityType.UNKNOWN; super.visitCode(obj); } catch (StopOpcodeParsingException e) { // report type is immutable } ...
public class class_name { @Override public void visitCode(Code obj) { try { stack.resetForMethodEntry(this); // depends on control dependency: [try], data = [none] reportedType = ImmutabilityType.UNKNOWN; // depends on control dependency: [try], data = [none] super.visit...
public class class_name { private static void processResourceFilter(ProjectFile project, Filter filter) { for (Resource resource : project.getResources()) { if (filter.evaluate(resource, null)) { System.out.println(resource.getID() + "," + resource.getUniqueID() + "," + res...
public class class_name { private static void processResourceFilter(ProjectFile project, Filter filter) { for (Resource resource : project.getResources()) { if (filter.evaluate(resource, null)) { System.out.println(resource.getID() + "," + resource.getUniqueID() + "," + res...
public class class_name { protected boolean parseFields(ByteBuffer buffer) { // Process headers while ((_state == State.HEADER || _state == State.TRAILER) && buffer.hasRemaining()) { // process each character HttpTokens.Token t = next(buffer); if (t == null) ...
public class class_name { protected boolean parseFields(ByteBuffer buffer) { // Process headers while ((_state == State.HEADER || _state == State.TRAILER) && buffer.hasRemaining()) { // process each character HttpTokens.Token t = next(buffer); if (t == null) ...
public class class_name { public void setRegionCoverageSize(int size){ if(size < 0){ return; } int lg = (int)Math.ceil(Math.log(size)/Math.log(2)); //int lg = 31 - Integer.numberOfLeadingZeros(size); int newRegionCoverageSize = 1 << lg; int newRegionCoverageM...
public class class_name { public void setRegionCoverageSize(int size){ if(size < 0){ return; // depends on control dependency: [if], data = [none] } int lg = (int)Math.ceil(Math.log(size)/Math.log(2)); //int lg = 31 - Integer.numberOfLeadingZeros(size); int newRegion...
public class class_name { @Nullable public File deleteFile(@NotNull final Transaction txn, @NotNull final String path) { final ArrayByteIterable key = StringBinding.stringToEntry(path); final ByteIterable fileMetadata; try (Cursor cursor = pathnames.openCursor(txn)) { fileMetada...
public class class_name { @Nullable public File deleteFile(@NotNull final Transaction txn, @NotNull final String path) { final ArrayByteIterable key = StringBinding.stringToEntry(path); final ByteIterable fileMetadata; try (Cursor cursor = pathnames.openCursor(txn)) { fileMetada...
public class class_name { public void setSelect(final String select) { if (null == select) { this.select = null; } else { if (Strings.contains(select.toLowerCase(), "select")) { this.select = select; } else { this.select = "select " + select; } } } }
public class class_name { public void setSelect(final String select) { if (null == select) { this.select = null; // depends on control dependency: [if], data = [none] } else { if (Strings.contains(select.toLowerCase(), "select")) { this.select = select; // depends on control dependency: [if...
public class class_name { public static byte[] hexToByteArray(String hex) { int length = hex.length(); byte[] result = new byte[(length / 2) + (length % 2)]; for (int i = length, j = result.length - 1; i > 0; i -= 2, j--) { result[j] = hexToByte(hex.charAt(i - 1)); if (i > 1) { result[j...
public class class_name { public static byte[] hexToByteArray(String hex) { int length = hex.length(); byte[] result = new byte[(length / 2) + (length % 2)]; for (int i = length, j = result.length - 1; i > 0; i -= 2, j--) { result[j] = hexToByte(hex.charAt(i - 1)); // depends on control dependency: [...
public class class_name { public static HtmlTree MAIN(HtmlStyle styleClass, Content body) { HtmlTree htmltree = HtmlTree.MAIN(body); if (styleClass != null) { htmltree.addStyle(styleClass); } return htmltree; } }
public class class_name { public static HtmlTree MAIN(HtmlStyle styleClass, Content body) { HtmlTree htmltree = HtmlTree.MAIN(body); if (styleClass != null) { htmltree.addStyle(styleClass); // depends on control dependency: [if], data = [(styleClass] } return htmltree; }...
public class class_name { private static void start(Context context, Class<?> daemonClazzName, int interval) { String cmd = context.getDir(BIN_DIR_NAME, Context.MODE_PRIVATE) .getAbsolutePath() + File.separator + DAEMON_BIN_NAME; /* create the command string */ StringBuilder cmdBuilder = new StringBuilder();...
public class class_name { private static void start(Context context, Class<?> daemonClazzName, int interval) { String cmd = context.getDir(BIN_DIR_NAME, Context.MODE_PRIVATE) .getAbsolutePath() + File.separator + DAEMON_BIN_NAME; /* create the command string */ StringBuilder cmdBuilder = new StringBuilder();...
public class class_name { protected void splitPixels( int indexStart , int indexStop ) { // too short to split if( indexStart+1 >= indexStop ) return; int indexSplit = selectSplitBetween(indexStart, indexStop); if( indexSplit >= 0 ) { splitPixels(indexStart, indexSplit); splits.add(indexSplit); s...
public class class_name { protected void splitPixels( int indexStart , int indexStop ) { // too short to split if( indexStart+1 >= indexStop ) return; int indexSplit = selectSplitBetween(indexStart, indexStop); if( indexSplit >= 0 ) { splitPixels(indexStart, indexSplit); // depends on control dependenc...
public class class_name { public void setCharacterEncoding(String encoding) { if (this._outputState==0 && !isCommitted()) { _charEncodingSetInContentType=true; _httpResponse.setCharacterEncoding(encoding,true); } } }
public class class_name { public void setCharacterEncoding(String encoding) { if (this._outputState==0 && !isCommitted()) { _charEncodingSetInContentType=true; // depends on control dependency: [if], data = [none] _httpResponse.setCharacterEncoding(encoding,true); // depends...
public class class_name { public void marshall(AlgorithmSpecification algorithmSpecification, ProtocolMarshaller protocolMarshaller) { if (algorithmSpecification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(AlgorithmSpecification algorithmSpecification, ProtocolMarshaller protocolMarshaller) { if (algorithmSpecification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { synchronized private MeetmeRoom findMeetmeRoom(final String roomNumber) { MeetmeRoom foundRoom = null; for (final MeetmeRoom room : this.rooms) { if (room.getRoomNumber().compareToIgnoreCase(roomNumber) == 0) { foundRo...
public class class_name { synchronized private MeetmeRoom findMeetmeRoom(final String roomNumber) { MeetmeRoom foundRoom = null; for (final MeetmeRoom room : this.rooms) { if (room.getRoomNumber().compareToIgnoreCase(roomNumber) == 0) { foundRo...
public class class_name { public boolean containsRequiredAnnotations(Collection<Class<? extends Annotation>> requiredAnnotations) { if (annotatedType instanceof BackedAnnotatedType<?>) { return containsAnnotation((BackedAnnotatedType<?>) annotatedType, requiredAnnotations); } else if (annot...
public class class_name { public boolean containsRequiredAnnotations(Collection<Class<? extends Annotation>> requiredAnnotations) { if (annotatedType instanceof BackedAnnotatedType<?>) { return containsAnnotation((BackedAnnotatedType<?>) annotatedType, requiredAnnotations); // depends on control de...
public class class_name { private static void flipMaskedWord(int[] array, int index, int from, int to) { if (from == to) { return; } to = 32 - to; int word = wordAt(array, index); word ^= ((0xffffffff >>> from) << (from + to)) >>> to; array[index] = word & WORD_MASK; } }
public class class_name { private static void flipMaskedWord(int[] array, int index, int from, int to) { if (from == to) { return; // depends on control dependency: [if], data = [none] } to = 32 - to; int word = wordAt(array, index); word ^= ((0xffffffff >>> from) << (from + to)) >>> to; ...
public class class_name { public void clear () { for (int icount = _items.size(); icount > 0; icount--) { DirtyItem item = _items.remove(0); item.clear(); _freelist.add(item); } } }
public class class_name { public void clear () { for (int icount = _items.size(); icount > 0; icount--) { DirtyItem item = _items.remove(0); item.clear(); // depends on control dependency: [for], data = [none] _freelist.add(item); // depends on control dependency: [for],...
public class class_name { public ServiceCall<Void> updateVoiceModel(UpdateVoiceModelOptions updateVoiceModelOptions) { Validator.notNull(updateVoiceModelOptions, "updateVoiceModelOptions cannot be null"); String[] pathSegments = { "v1/customizations" }; String[] pathParameters = { updateVoiceModelOptions.c...
public class class_name { public ServiceCall<Void> updateVoiceModel(UpdateVoiceModelOptions updateVoiceModelOptions) { Validator.notNull(updateVoiceModelOptions, "updateVoiceModelOptions cannot be null"); String[] pathSegments = { "v1/customizations" }; String[] pathParameters = { updateVoiceModelOptions.c...
public class class_name { public Map<String, CmsModuleVersion> getInstalledModules() { String file = CmsModuleConfiguration.DEFAULT_XML_FILE_NAME; // /opencms/modules/module[?] String basePath = new StringBuffer("/").append(CmsConfigurationManager.N_ROOT).append("/").append( CmsMod...
public class class_name { public Map<String, CmsModuleVersion> getInstalledModules() { String file = CmsModuleConfiguration.DEFAULT_XML_FILE_NAME; // /opencms/modules/module[?] String basePath = new StringBuffer("/").append(CmsConfigurationManager.N_ROOT).append("/").append( CmsMod...
public class class_name { public EClass getIfcStructuralLoadStatic() { if (ifcStructuralLoadStaticEClass == null) { ifcStructuralLoadStaticEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(553); } return ifcStructuralLoadStaticEClass; } }
public class class_name { public EClass getIfcStructuralLoadStatic() { if (ifcStructuralLoadStaticEClass == null) { ifcStructuralLoadStaticEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(553); // depends on control dependency: [if], data = [none] ...
public class class_name { public static void deleteFile(@NonNull File file) { boolean deleted = file.delete(); if (!deleted) { Log.w(LOG_TAG, "Could not delete file: " + file); } } }
public class class_name { public static void deleteFile(@NonNull File file) { boolean deleted = file.delete(); if (!deleted) { Log.w(LOG_TAG, "Could not delete file: " + file); // depends on control dependency: [if], data = [none] } } }
public class class_name { @FFDCIgnore(AuthenticationException.class) protected Subject recreateFullSubject(WSPrincipal wsPrincipal, SecurityService securityService, AtomicServiceReference<UnauthenticatedSubjectService> unauthenticatedSubjectServiceRef, String customCacheKe...
public class class_name { @FFDCIgnore(AuthenticationException.class) protected Subject recreateFullSubject(WSPrincipal wsPrincipal, SecurityService securityService, AtomicServiceReference<UnauthenticatedSubjectService> unauthenticatedSubjectServiceRef, String customCacheKe...
public class class_name { public void marshall(PublishLayerVersionRequest publishLayerVersionRequest, ProtocolMarshaller protocolMarshaller) { if (publishLayerVersionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void marshall(PublishLayerVersionRequest publishLayerVersionRequest, ProtocolMarshaller protocolMarshaller) { if (publishLayerVersionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { private Variant loadVariantWhenAuthorized(final HttpServletRequest request) { // extract the pushApplicationID and its secret from the HTTP Basic // header: final String[] credentials = HttpBasicHelper.extractUsernameAndPasswordFromBasicHeader(request); final S...
public class class_name { private Variant loadVariantWhenAuthorized(final HttpServletRequest request) { // extract the pushApplicationID and its secret from the HTTP Basic // header: final String[] credentials = HttpBasicHelper.extractUsernameAndPasswordFromBasicHeader(request); final S...
public class class_name { public void marshall(CreateDiskFromSnapshotRequest createDiskFromSnapshotRequest, ProtocolMarshaller protocolMarshaller) { if (createDiskFromSnapshotRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(CreateDiskFromSnapshotRequest createDiskFromSnapshotRequest, ProtocolMarshaller protocolMarshaller) { if (createDiskFromSnapshotRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static void setChild(Element parent, Element child, String[] names, boolean firstToLast) { Assert.isTrue(isDAVElement(parent)); Assert.isNotNull(child); Assert.isTrue(DAV_NS.equals(resolve(getNSPrefix(child), parent))); Assert.isNotNull(names); ...
public class class_name { public static void setChild(Element parent, Element child, String[] names, boolean firstToLast) { Assert.isTrue(isDAVElement(parent)); Assert.isNotNull(child); Assert.isTrue(DAV_NS.equals(resolve(getNSPrefix(child), parent))); Assert.isNotNull(names); ...
public class class_name { public QueryAtom bind(QueryBinding binding) { List<QueryArgument> args = new ArrayList<QueryArgument>(); for(QueryArgument arg : this.args) { if(binding.isBound(arg)) { args.add(binding.get(arg)); } else { args.add(arg); } } return new QueryAtom(type, args); ...
public class class_name { public QueryAtom bind(QueryBinding binding) { List<QueryArgument> args = new ArrayList<QueryArgument>(); for(QueryArgument arg : this.args) { if(binding.isBound(arg)) { args.add(binding.get(arg)); // depends on control dependency: [if], data = [none] } else { args.add(a...
public class class_name { private byte[] bufX( long bias, int scale, int off, int log ) { byte[] bs = new byte[(_len<<log)+off]; int j = 0; for( int i=0; i<_len; i++ ) { long le = -bias; if(_id == null || _id.length == 0 || (j < _id.length && _id[j] == i)){ if( isNA2(j) ) { le...
public class class_name { private byte[] bufX( long bias, int scale, int off, int log ) { byte[] bs = new byte[(_len<<log)+off]; int j = 0; for( int i=0; i<_len; i++ ) { long le = -bias; if(_id == null || _id.length == 0 || (j < _id.length && _id[j] == i)){ if( isNA2(j) ) { le...
public class class_name { public static ImmutablePair<PrivateKey, X509Certificate> extractCertificateWithKey(KeyStore keyStore, char [] keyStorePassword) { Assert.notNull(keyStore, "KeyStore is mandatory"); Assert.notNull(keyStorePassword, "Password for key store is mandatory"); try { ...
public class class_name { public static ImmutablePair<PrivateKey, X509Certificate> extractCertificateWithKey(KeyStore keyStore, char [] keyStorePassword) { Assert.notNull(keyStore, "KeyStore is mandatory"); Assert.notNull(keyStorePassword, "Password for key store is mandatory"); try { ...
public class class_name { @Override public Byte getReportCOD() { // If the cached reference isn't set up, then get one now. if (!_reportCODSet) { JsMessage localMsg = getJSMessage(true); _reportCODSet = true; _reportCOD = localMsg.getReportCOD(); ...
public class class_name { @Override public Byte getReportCOD() { // If the cached reference isn't set up, then get one now. if (!_reportCODSet) { JsMessage localMsg = getJSMessage(true); _reportCODSet = true; // depends on control dependency: [if], data = [none] ...
public class class_name { @Override public URL getResource(String name) { URL result = null; for (Deployment deployment : kernel.getDeployments()) { if (!(deployment instanceof WARDeployment)) { result = deployment.getClassLoader().getResource(name); ...
public class class_name { @Override public URL getResource(String name) { URL result = null; for (Deployment deployment : kernel.getDeployments()) { if (!(deployment instanceof WARDeployment)) { result = deployment.getClassLoader().getResource(name); // depends on...
public class class_name { public Map<String, String> getImageDnd() { if (m_imageDnd == null) { m_imageDnd = CmsCollectionsGenericWrapper.createLazyMap(new CmsImageDndTransformer()); } return m_imageDnd; } }
public class class_name { public Map<String, String> getImageDnd() { if (m_imageDnd == null) { m_imageDnd = CmsCollectionsGenericWrapper.createLazyMap(new CmsImageDndTransformer()); // depends on control dependency: [if], data = [none] } return m_imageDnd; } }
public class class_name { public CdnPathBuilder sharp(int strength) { if (strength < 0 || strength > 20) { strength = 5; } sb.append("/-/sharp/") .append(strength); return this; } }
public class class_name { public CdnPathBuilder sharp(int strength) { if (strength < 0 || strength > 20) { strength = 5; // depends on control dependency: [if], data = [none] } sb.append("/-/sharp/") .append(strength); return this; } }
public class class_name { public static void openPropertyDialog( CmsPropertiesBean result, final I_CmsContextMenuHandler contextMenuHandler, final boolean editName, final Runnable cancelHandler, final boolean enableAdeTemplateSelect, final PropertyEditingContext editCont...
public class class_name { public static void openPropertyDialog( CmsPropertiesBean result, final I_CmsContextMenuHandler contextMenuHandler, final boolean editName, final Runnable cancelHandler, final boolean enableAdeTemplateSelect, final PropertyEditingContext editCont...
public class class_name { protected String getTag(ILoggingEvent event) { // format tag based on encoder layout; truncate if max length // exceeded (only necessary for isLoggable(), which throws // IllegalArgumentException) String tag = (this.tagEncoder != null) ? this.tagEncoder.getLayout().doLayout(ev...
public class class_name { protected String getTag(ILoggingEvent event) { // format tag based on encoder layout; truncate if max length // exceeded (only necessary for isLoggable(), which throws // IllegalArgumentException) String tag = (this.tagEncoder != null) ? this.tagEncoder.getLayout().doLayout(ev...
public class class_name { void iteratorSpecialDelete( Iterator iter, GBSNode node, int index) { _vno++; if ((_vno&1) == 1) { node.deleteByLeftShift(index); ...
public class class_name { void iteratorSpecialDelete( Iterator iter, GBSNode node, int index) { _vno++; if ((_vno&1) == 1) { node.deleteByLeftShift(index); // depend...
public class class_name { private static int sizeofPrimitiveType(final Class type) { if (type == int.class) { return INT_FIELD_SIZE; } else if (type == long.class) { return LONG_FIELD_SIZE; } else if (type == short.class) { return SHORT_FIELD_SIZE; } ...
public class class_name { private static int sizeofPrimitiveType(final Class type) { if (type == int.class) { return INT_FIELD_SIZE; // depends on control dependency: [if], data = [none] } else if (type == long.class) { return LONG_FIELD_SIZE; // depends on control dependency: [...
public class class_name { public JSONObject simnet(String text1, String text2, HashMap<String, Object> options) { AipRequest request = new AipRequest(); preOperation(request); request.addBody("text_1", text1); request.addBody("text_2", text2); if (opti...
public class class_name { public JSONObject simnet(String text1, String text2, HashMap<String, Object> options) { AipRequest request = new AipRequest(); preOperation(request); request.addBody("text_1", text1); request.addBody("text_2", text2); if (opti...
public class class_name { public synchronized SpiderMonitor register(Spider... spiders) throws JMException { for (Spider spider : spiders) { MonitorSpiderListener monitorSpiderListener = new MonitorSpiderListener(); if (spider.getSpiderListeners() == null) { List<SpiderL...
public class class_name { public synchronized SpiderMonitor register(Spider... spiders) throws JMException { for (Spider spider : spiders) { MonitorSpiderListener monitorSpiderListener = new MonitorSpiderListener(); if (spider.getSpiderListeners() == null) { List<SpiderL...
public class class_name { private static ImmutableList<ErrorProneToken> annotationTokens( Tree tree, VisitorState state, int annotationEnd) { int endPos; if (tree instanceof JCMethodDecl) { JCMethodDecl methodTree = (JCMethodDecl) tree; endPos = methodTree.getBody() == null ...
public class class_name { private static ImmutableList<ErrorProneToken> annotationTokens( Tree tree, VisitorState state, int annotationEnd) { int endPos; if (tree instanceof JCMethodDecl) { JCMethodDecl methodTree = (JCMethodDecl) tree; endPos = methodTree.getBody() == null ...
public class class_name { public void recording() { if (null != dialog && dialog.isShowing()) { mImageView.setImageResource(R.drawable.hlklib_record_animate_01); mWarningText.setText(R.string.hlklib_voice_recorder_warning_text_cancel); } } }
public class class_name { public void recording() { if (null != dialog && dialog.isShowing()) { mImageView.setImageResource(R.drawable.hlklib_record_animate_01); // depends on control dependency: [if], data = [none] mWarningText.setText(R.string.hlklib_voice_recorder_warning_text_cancel...
public class class_name { private void runEKBPreCommitHooks(EKBCommit commit) throws EKBException { for (EKBPreCommitHook hook : preCommitHooks) { try { hook.onPreCommit(commit); } catch (EKBException e) { throw new EKBException("EDBException is thrown in...
public class class_name { private void runEKBPreCommitHooks(EKBCommit commit) throws EKBException { for (EKBPreCommitHook hook : preCommitHooks) { try { hook.onPreCommit(commit); // depends on control dependency: [try], data = [none] } catch (EKBException e) { ...
public class class_name { private boolean getBoolean(String key, boolean defaultValue) { try { return optBoolean(key, defaultValue); } catch (Exception e) { ApptentiveLog.e(e, "Exception while getting boolean key '%s'", key); logException(e); return defaultValue; } } }
public class class_name { private boolean getBoolean(String key, boolean defaultValue) { try { return optBoolean(key, defaultValue); // depends on control dependency: [try], data = [none] } catch (Exception e) { ApptentiveLog.e(e, "Exception while getting boolean key '%s'", key); logException(e); retur...
public class class_name { @Nonnull private static String leftpad(@Nonnull String s, int n, char padChar) { int diff = n - s.length(); if (diff <= 0) { return s; } StringBuilder buf = new StringBuilder(n); for (int i = 0; i < diff; ++i) { buf.append(p...
public class class_name { @Nonnull private static String leftpad(@Nonnull String s, int n, char padChar) { int diff = n - s.length(); if (diff <= 0) { return s; // depends on control dependency: [if], data = [none] } StringBuilder buf = new StringBuilder(n); for...
public class class_name { public java.util.List<java.util.Map<String, MaintenanceWindowTaskParameterValueExpression>> getTaskParameters() { if (taskParameters == null) { taskParameters = new com.amazonaws.internal.SdkInternalList<java.util.Map<String, MaintenanceWindowTaskParameterValueExpression>>...
public class class_name { public java.util.List<java.util.Map<String, MaintenanceWindowTaskParameterValueExpression>> getTaskParameters() { if (taskParameters == null) { taskParameters = new com.amazonaws.internal.SdkInternalList<java.util.Map<String, MaintenanceWindowTaskParameterValueExpression>>...
public class class_name { void removeDeadEndTransitions() { Iterator<CharRange> it = transitions.keySet().iterator(); while (it.hasNext()) { CharRange r = it.next(); if (transitions.get(r).getTo().isDeadEnd()) { it.remove(); ...
public class class_name { void removeDeadEndTransitions() { Iterator<CharRange> it = transitions.keySet().iterator(); while (it.hasNext()) { CharRange r = it.next(); if (transitions.get(r).getTo().isDeadEnd()) { it.remove(); // de...
public class class_name { public AppRequestToken login( String usernameParam, String passwordParam, Long sessionLifespanSecondsParam) { if (this.isEmpty(usernameParam) || this.isEmpty(passwordParam)) { throw new FluidClientException( "Username and Password required."...
public class class_name { public AppRequestToken login( String usernameParam, String passwordParam, Long sessionLifespanSecondsParam) { if (this.isEmpty(usernameParam) || this.isEmpty(passwordParam)) { throw new FluidClientException( "Username and Password required."...
public class class_name { public static String formatSlices(List<DataSlice> slices, int max) { if (slices != null) { StringBuilder builder = new StringBuilder(); if (slices.size() != 0) { int number = 1; int sliceCount = slices.size(); for(DataSlice slice : slices)...
public class class_name { public static String formatSlices(List<DataSlice> slices, int max) { if (slices != null) { StringBuilder builder = new StringBuilder(); if (slices.size() != 0) { int number = 1; int sliceCount = slices.size(); for(DataSlice slice : slices)...
public class class_name { public void run () throws MojoExecutionException, MojoFailureException { ESuccess exitCode; try { if (getLog ().isDebugEnabled ()) { getLog ().debug ("Running " + getToolName () + ": " + this); } exitCode = execute (); } catch (final Excep...
public class class_name { public void run () throws MojoExecutionException, MojoFailureException { ESuccess exitCode; try { if (getLog ().isDebugEnabled ()) { getLog ().debug ("Running " + getToolName () + ": " + this); // depends on control dependency: [if], data = [none] } ...
public class class_name { public boolean collectResponse(final ODistributedResponse response) { final String executorNode = response.getExecutorNodeName(); final String senderNode = response.getSenderNodeName(); response.setDistributedResponseManager(this); synchronousResponsesLock.lock(); try { ...
public class class_name { public boolean collectResponse(final ODistributedResponse response) { final String executorNode = response.getExecutorNodeName(); final String senderNode = response.getSenderNodeName(); response.setDistributedResponseManager(this); synchronousResponsesLock.lock(); try { ...
public class class_name { public boolean cancelShutdown() { if (scheduledGraceful != null) { boolean result = scheduledGraceful.cancel(false); if (result) { shutdown.set(false); if (gracefulCallback != null) gracefulCallback.cancel(); ...
public class class_name { public boolean cancelShutdown() { if (scheduledGraceful != null) { boolean result = scheduledGraceful.cancel(false); if (result) { shutdown.set(false); // depends on control dependency: [if], data = [none] if (gracefulCallbac...
public class class_name { public Integer getPosition(String parameterName) { Integer position = null; for (int i = 0; i < this.sqlParameterNames.size(); i++) { if (this.sqlParameterNames.get(i).equals(parameterName) == true) { position = i; break; ...
public class class_name { public Integer getPosition(String parameterName) { Integer position = null; for (int i = 0; i < this.sqlParameterNames.size(); i++) { if (this.sqlParameterNames.get(i).equals(parameterName) == true) { position = i; // depends on control depen...
public class class_name { private String getCallerUniqueName() throws WIMApplicationException { String uniqueName = null; Subject subject = null; WSCredential cred = null; try { /* Get the subject */ if ((subject = WSSubject.getRunAsSubject()) == null) { ...
public class class_name { private String getCallerUniqueName() throws WIMApplicationException { String uniqueName = null; Subject subject = null; WSCredential cred = null; try { /* Get the subject */ if ((subject = WSSubject.getRunAsSubject()) == null) { ...
public class class_name { public void marshall(UpdateLoggerDefinitionRequest updateLoggerDefinitionRequest, ProtocolMarshaller protocolMarshaller) { if (updateLoggerDefinitionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(UpdateLoggerDefinitionRequest updateLoggerDefinitionRequest, ProtocolMarshaller protocolMarshaller) { if (updateLoggerDefinitionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public Routed<T> route(M method, String path) { MethodlessRouter<T> router = routers.get(method); if (router == null) router = anyMethodRouter; Routed<T> ret = router.route(path); if (ret != null) return ret; if (router != anyMethodRouter) { ret = anyMethodRouter.r...
public class class_name { public Routed<T> route(M method, String path) { MethodlessRouter<T> router = routers.get(method); if (router == null) router = anyMethodRouter; Routed<T> ret = router.route(path); if (ret != null) return ret; if (router != anyMethodRouter) { ret = anyMethodRouter.r...
public class class_name { public static double Manhattan(double[] p, double[] q) { double sum = 0; for (int i = 0; i < p.length; i++) { sum += Math.abs(p[i] - q[i]); } return sum; } }
public class class_name { public static double Manhattan(double[] p, double[] q) { double sum = 0; for (int i = 0; i < p.length; i++) { sum += Math.abs(p[i] - q[i]); // depends on control dependency: [for], data = [i] } return sum; } }
public class class_name { public void marshall(UpdateManagedInstanceRoleRequest updateManagedInstanceRoleRequest, ProtocolMarshaller protocolMarshaller) { if (updateManagedInstanceRoleRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } tr...
public class class_name { public void marshall(UpdateManagedInstanceRoleRequest updateManagedInstanceRoleRequest, ProtocolMarshaller protocolMarshaller) { if (updateManagedInstanceRoleRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } tr...
public class class_name { private static boolean hasPossibleMutatingMethods(@Nonnull final List<Method> methods) { boolean result = false; for (final Method method : methods) { if (!method.getAttributes().isEmpty()) { result = true; break; } } return result; } }
public class class_name { private static boolean hasPossibleMutatingMethods(@Nonnull final List<Method> methods) { boolean result = false; for (final Method method : methods) { if (!method.getAttributes().isEmpty()) { result = true; // depends on control dependency: [if], data = [none] break; } } ...
public class class_name { public static void unexplode(File dir, int compressionLevel) { try { // Find a new unique name is the same directory File zip = FileUtils.getTempFileFor(dir); // Pack it pack(dir, zip, compressionLevel); // Delete the directory FileUtils.deleteDirecto...
public class class_name { public static void unexplode(File dir, int compressionLevel) { try { // Find a new unique name is the same directory File zip = FileUtils.getTempFileFor(dir); // Pack it pack(dir, zip, compressionLevel); // depends on control dependency: [try], data = [none] ...
public class class_name { public Variable getDeclaredVariable(String name, boolean publicOnly) { //private Set mPrivateVars; Variable var = mDeclared.get(name); if (var != null) { // If its okay to be private or its public then... if (!publicOnly || mPrivateVars == null...
public class class_name { public Variable getDeclaredVariable(String name, boolean publicOnly) { //private Set mPrivateVars; Variable var = mDeclared.get(name); if (var != null) { // If its okay to be private or its public then... if (!publicOnly || mPrivateVars == null...
public class class_name { protected boolean isSetterMethod(Method method) { Matcher matcher = _setterRegex.matcher(method.getName()); if (matcher.matches()) { if (Modifier.isStatic(method.getModifiers())) return false; if (!Modifier.isPublic(method.getModifiers())) return false...
public class class_name { protected boolean isSetterMethod(Method method) { Matcher matcher = _setterRegex.matcher(method.getName()); if (matcher.matches()) { if (Modifier.isStatic(method.getModifiers())) return false; if (!Modifier.isPublic(method.getModifiers())) return false...
public class class_name { public void init(HttpInboundServiceContext sc, BNFHeaders hdrs) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); if (null != hdrs) { ...
public class class_name { public void init(HttpInboundServiceContext sc, BNFHeaders hdrs) { // for requests, we don't care about the validation setHeaderValidation(false); setOwner(sc); setBinaryParseState(HttpInternalConstants.PARSING_BINARY_VERSION); if (null != hdrs) { ...
public class class_name { public static double min(double[][] values) { double min = Double.MAX_VALUE; for (int i = 0; i < values.length; i++) { for (int j = 0; j < values[i].length; j++) { min = (values[i][j] < min) ? values[i][j] : min; } } return min; } }
public class class_name { public static double min(double[][] values) { double min = Double.MAX_VALUE; for (int i = 0; i < values.length; i++) { for (int j = 0; j < values[i].length; j++) { min = (values[i][j] < min) ? values[i][j] : min; // depends on control dependency: [for], data = [j] ...
public class class_name { void close() { final String methodName = "close"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } /* * Cancel any ongoing dispatch */ _cancelled = true; ...
public class class_name { void close() { final String methodName = "close"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); // depends on control dependency: [if], data = [none] } /* * Cancel any ongoing ...
public class class_name { ClusterHeartbeat createCluster(String clusterName) { ClusterHeartbeat cluster = _clusterMap.get(clusterName); if (cluster == null) { cluster = new ClusterHeartbeat(clusterName, this); _clusterMap.putIfAbsent(clusterName, cluster); cluster = _clus...
public class class_name { ClusterHeartbeat createCluster(String clusterName) { ClusterHeartbeat cluster = _clusterMap.get(clusterName); if (cluster == null) { cluster = new ClusterHeartbeat(clusterName, this); // depends on control dependency: [if], data = [(cluster] _clusterMap.putIf...
public class class_name { public java.util.List<String> getActivityIds() { if (activityIds == null) { activityIds = new com.amazonaws.internal.SdkInternalList<String>(); } return activityIds; } }
public class class_name { public java.util.List<String> getActivityIds() { if (activityIds == null) { activityIds = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return activityIds; } }
public class class_name { public void marshall(GetCommitRequest getCommitRequest, ProtocolMarshaller protocolMarshaller) { if (getCommitRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getC...
public class class_name { public void marshall(GetCommitRequest getCommitRequest, ProtocolMarshaller protocolMarshaller) { if (getCommitRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getC...
public class class_name { public void restore(ObjectInputStream ois, int dataVersion) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "restore", new Object[] { ois, Integer.valueOf(dataVersion) }); checkPersistentVersionId(dataVersion); try { ...
public class class_name { public void restore(ObjectInputStream ois, int dataVersion) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry( tc, "restore", new Object[] { ois, Integer.valueOf(dataVersion) }); checkPersistentVersionId(dataVersion); try { ...
public class class_name { void free(ClientSocket stream) { success(); _activeCount.decrementAndGet(); synchronized (this) { int size = (_idleHead - _idleTail + _idle.length) % _idle.length; if (_state != State.CLOSED && size < _idleSize) { _idleHead = (_idleHead + 1) % _idle.length...
public class class_name { void free(ClientSocket stream) { success(); _activeCount.decrementAndGet(); synchronized (this) { int size = (_idleHead - _idleTail + _idle.length) % _idle.length; if (_state != State.CLOSED && size < _idleSize) { _idleHead = (_idleHead + 1) % _idle.length...
public class class_name { public static base_responses enable(nitro_service client, String trapname[]) throws Exception { base_responses result = null; if (trapname != null && trapname.length > 0) { snmpalarm enableresources[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++){ enabler...
public class class_name { public static base_responses enable(nitro_service client, String trapname[]) throws Exception { base_responses result = null; if (trapname != null && trapname.length > 0) { snmpalarm enableresources[] = new snmpalarm[trapname.length]; for (int i=0;i<trapname.length;i++){ enabler...
public class class_name { public GetCostForecastResult withForecastResultsByTime(ForecastResult... forecastResultsByTime) { if (this.forecastResultsByTime == null) { setForecastResultsByTime(new java.util.ArrayList<ForecastResult>(forecastResultsByTime.length)); } for (ForecastResul...
public class class_name { public GetCostForecastResult withForecastResultsByTime(ForecastResult... forecastResultsByTime) { if (this.forecastResultsByTime == null) { setForecastResultsByTime(new java.util.ArrayList<ForecastResult>(forecastResultsByTime.length)); // depends on control dependency: [i...
public class class_name { @Override public final String render() { RythmEngine engine = __engine(); boolean engineSet = RythmEngine.set(engine); try { long l = 0l; boolean logTime = __logTime(); if (logTime) { l = System.currentTimeMillis(...
public class class_name { @Override public final String render() { RythmEngine engine = __engine(); boolean engineSet = RythmEngine.set(engine); try { long l = 0l; boolean logTime = __logTime(); if (logTime) { l = System.currentTimeMillis(...
public class class_name { protected static boolean unsecureSaveAuthentication(URL url, String postBody) throws IOException { HttpURLConnection connection = null; boolean result = false; try { connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setDo...
public class class_name { protected static boolean unsecureSaveAuthentication(URL url, String postBody) throws IOException { HttpURLConnection connection = null; boolean result = false; try { connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setDo...
public class class_name { public void load(File file) { try { PropertiesConfiguration config = new PropertiesConfiguration(); // disabled to prevent accumulo classpath value from being shortened config.setDelimiterParsingDisabled(true); config.load(file); ((CompositeConfiguration) int...
public class class_name { public void load(File file) { try { PropertiesConfiguration config = new PropertiesConfiguration(); // disabled to prevent accumulo classpath value from being shortened config.setDelimiterParsingDisabled(true); // depends on control dependency: [try], data = [none] ...
public class class_name { public SelectorDomain getSelectorDomain() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getSelectorDomain"); SibTr.exit(tc, "getSelectorDomain", domain); } return domain; } }
public class class_name { public SelectorDomain getSelectorDomain() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getSelectorDomain"); // depends on control dependency: [if], data = [none] SibTr.exit(tc, "getSelectorDomain", domain); // depends on control d...
public class class_name { protected synchronized int[] getMaxMapAndReduceLoad(int localMaxMapLoad, int localMaxReduceLoad) { // Approximate because of concurrency final int numTaskTrackers = taskTrackerManager.getClusterStatus().getTaskTrackers(); /* Hold the result */ int maxMapLoad = 0; ...
public class class_name { protected synchronized int[] getMaxMapAndReduceLoad(int localMaxMapLoad, int localMaxReduceLoad) { // Approximate because of concurrency final int numTaskTrackers = taskTrackerManager.getClusterStatus().getTaskTrackers(); /* Hold the result */ int maxMapLoad = 0; ...
public class class_name { public static String extractTaskID(String path, String identifier) { LOG.debug("extract task id for {}", path); if (path.contains(HADOOP_ATTEMPT)) { String prf = path.substring(path.indexOf(HADOOP_ATTEMPT)); if (prf.contains("/")) { return TaskAttemptID.forName(prf...
public class class_name { public static String extractTaskID(String path, String identifier) { LOG.debug("extract task id for {}", path); if (path.contains(HADOOP_ATTEMPT)) { String prf = path.substring(path.indexOf(HADOOP_ATTEMPT)); if (prf.contains("/")) { return TaskAttemptID.forName(prf...
public class class_name { @Override public boolean validate(final Problems problems, final String compName, final String model) { final char[] chars = model.toCharArray(); for (final char c : chars) { if (Character.isWhitespace(c)) { problems.add(ValidationBundle.getMessage(MayNotContainSpacesValidator.cla...
public class class_name { @Override public boolean validate(final Problems problems, final String compName, final String model) { final char[] chars = model.toCharArray(); for (final char c : chars) { if (Character.isWhitespace(c)) { problems.add(ValidationBundle.getMessage(MayNotContainSpacesValidator.cla...
public class class_name { private static void applyStyle(TextView v, AttributeSet attrs, int defStyleAttr, int defStyleRes){ String fontFamily = null; int typefaceIndex = -1; int styleIndex = -1; int shadowColor = 0; float dx = 0, dy = 0, r = 0; Drawable drawableLeft = ...
public class class_name { private static void applyStyle(TextView v, AttributeSet attrs, int defStyleAttr, int defStyleRes){ String fontFamily = null; int typefaceIndex = -1; int styleIndex = -1; int shadowColor = 0; float dx = 0, dy = 0, r = 0; Drawable drawableLeft = ...
public class class_name { @Override public void initialize(IAggregator aggregator, IAggregatorExtension extension, IExtensionRegistrar registrar) { final String sourceMethod = "initialize"; //$NON-NLS-1$ boolean isTraceLogging = log.isLoggable(Level.FINER); if (isTraceLogging) { log.entering(Bundl...
public class class_name { @Override public void initialize(IAggregator aggregator, IAggregatorExtension extension, IExtensionRegistrar registrar) { final String sourceMethod = "initialize"; //$NON-NLS-1$ boolean isTraceLogging = log.isLoggable(Level.FINER); if (isTraceLogging) { log.entering(Bundl...
public class class_name { @Override public boolean visitTree(VisitContext context, VisitCallback callback) { // push the Component to EL pushComponentToEL(context.getFacesContext(), this); try { if (!isVisitable(context)) { return false; ...
public class class_name { @Override public boolean visitTree(VisitContext context, VisitCallback callback) { // push the Component to EL pushComponentToEL(context.getFacesContext(), this); try { if (!isVisitable(context)) { return false; /...
public class class_name { public boolean isServerStarted() { String thisMethodName = CLASS_NAME + ".isServerStarted()"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); } if (TraceComponent.isAnyTracingEnabled() && ...
public class class_name { public boolean isServerStarted() { String thisMethodName = CLASS_NAME + ".isServerStarted()"; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, thisMethodName, this); // depends on control dependency: [if], data = [none] }...
public class class_name { private static void removeStaleCachedMisconfiguredHosts() { long currentTime = System.currentTimeMillis(); if (!((currentTime - timeStampLastStaleCheck) >= MAX_AGE_MISCONFIGURED_HOST_IN_MS)) { return; } timeStampLastStaleCheck = currentTime; for (MapIterator it = misconfi...
public class class_name { private static void removeStaleCachedMisconfiguredHosts() { long currentTime = System.currentTimeMillis(); if (!((currentTime - timeStampLastStaleCheck) >= MAX_AGE_MISCONFIGURED_HOST_IN_MS)) { return; // depends on control dependency: [if], data = [none] } timeStampLastStaleCh...