code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { protected void handleHoverEvent(Event evt) { if(evt.getTarget() instanceof Element) { Element e = (Element) evt.getTarget(); Node next = e.getNextSibling(); if(next instanceof Element) { toggleTooltip((Element) next, evt.getType()); } else { L...
public class class_name { protected void handleHoverEvent(Event evt) { if(evt.getTarget() instanceof Element) { Element e = (Element) evt.getTarget(); Node next = e.getNextSibling(); if(next instanceof Element) { toggleTooltip((Element) next, evt.getType()); // depends on control dependen...
public class class_name { private void generateSelects(M2MEntity entity, String packageName) { String idPart = CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_CAMEL, entity.idName); String methodName = ""; String workId = ""; methodName = "selectBy" + idPart; if (!isMethodAlreadyDefined(entity, methodName)) { ...
public class class_name { private void generateSelects(M2MEntity entity, String packageName) { String idPart = CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_CAMEL, entity.idName); String methodName = ""; String workId = ""; methodName = "selectBy" + idPart; if (!isMethodAlreadyDefined(entity, methodName)) { ...
public class class_name { boolean addImplementedInterface(JSTypeExpression interfaceName) { lazyInitInfo(); if (info.implementedInterfaces == null) { info.implementedInterfaces = new ArrayList<>(2); } if (info.implementedInterfaces.contains(interfaceName)) { return false; } info.imp...
public class class_name { boolean addImplementedInterface(JSTypeExpression interfaceName) { lazyInitInfo(); if (info.implementedInterfaces == null) { info.implementedInterfaces = new ArrayList<>(2); // depends on control dependency: [if], data = [none] } if (info.implementedInterfaces.contains(in...
public class class_name { void passf2(final int ido, final int l1, final double in[], final int in_off, final double out[], final int out_off, final int offset, final int isign) { double t1i, t1r; int iw1; iw1 = offset; int idx = ido * l1; if (ido <= 2) { for (int k = 0; k < l1; k++) { int idx0 = k * ...
public class class_name { void passf2(final int ido, final int l1, final double in[], final int in_off, final double out[], final int out_off, final int offset, final int isign) { double t1i, t1r; int iw1; iw1 = offset; int idx = ido * l1; if (ido <= 2) { for (int k = 0; k < l1; k++) { int idx0 = k * ...
public class class_name { public static String[] splitLongString( String str, char separator, char quote) { int len = (str == null) ? 0 : str.length(); if (str == null || len == 0) { return ArrayUtils.EMPTY_STRING_ARRAY; } int oldPos = 0; A...
public class class_name { public static String[] splitLongString( String str, char separator, char quote) { int len = (str == null) ? 0 : str.length(); if (str == null || len == 0) { return ArrayUtils.EMPTY_STRING_ARRAY; // depends on control dependency: [if], data = [no...
public class class_name { public <T> FluentIterable<T> toFluentIterable(Function<? super Cursor, T> singleRowTransform) { try { return Cursors.toFluentIterable(this, singleRowTransform); } finally { close(); } } }
public class class_name { public <T> FluentIterable<T> toFluentIterable(Function<? super Cursor, T> singleRowTransform) { try { return Cursors.toFluentIterable(this, singleRowTransform); // depends on control dependency: [try], data = [none] } finally { close(); } } }
public class class_name { protected void writeResultDetailed(Map<BioPAXElement, List<Match>> matches, OutputStream out, int columns) throws IOException { OutputStreamWriter writer = new OutputStreamWriter(out); // write the header String header = getHeader(); if (header != null) { writer.write(header...
public class class_name { protected void writeResultDetailed(Map<BioPAXElement, List<Match>> matches, OutputStream out, int columns) throws IOException { OutputStreamWriter writer = new OutputStreamWriter(out); // write the header String header = getHeader(); if (header != null) { writer.write(header...
public class class_name { @VisibleForTesting ByteBuffer allocateMemory() { if (!Boolean.getBoolean(DISABLE_ALLOCATE_DIRECT_PROPERTY)) { for (int retries = 0; retries < MEMORY_ALLOCATION_ATTEMPTS; retries++) { int targetCapacity = getMemoryForSort(retries); try { return ByteBuffer....
public class class_name { @VisibleForTesting ByteBuffer allocateMemory() { if (!Boolean.getBoolean(DISABLE_ALLOCATE_DIRECT_PROPERTY)) { for (int retries = 0; retries < MEMORY_ALLOCATION_ATTEMPTS; retries++) { int targetCapacity = getMemoryForSort(retries); try { return ByteBuffer....
public class class_name { @Check(CheckType.FAST) public void checkFieldName(SarlField field) { final JvmField inferredType = this.associations.getJvmField(field); final QualifiedName name = Utils.getQualifiedName(inferredType); if (this.featureNames.isDisallowedName(name)) { final String validName = Utils.fi...
public class class_name { @Check(CheckType.FAST) public void checkFieldName(SarlField field) { final JvmField inferredType = this.associations.getJvmField(field); final QualifiedName name = Utils.getQualifiedName(inferredType); if (this.featureNames.isDisallowedName(name)) { final String validName = Utils.fi...
public class class_name { public static String unescape(Object content) { if (content == null) { return null; } String str = String.valueOf(content); str = APOS_PATTERN.matcher(str).replaceAll("'"); str = QUOT_PATTERN.matcher(str).replaceAll("\""); str =...
public class class_name { public static String unescape(Object content) { if (content == null) { return null; // depends on control dependency: [if], data = [none] } String str = String.valueOf(content); str = APOS_PATTERN.matcher(str).replaceAll("'"); str = QUO...
public class class_name { public Bbox getBounds() { if (isEmpty()) { return null; } double minX = Double.MAX_VALUE; double minY = Double.MAX_VALUE; double maxX = -Double.MAX_VALUE; double maxY = -Double.MAX_VALUE; for (Point point : points) { if (point.getX() < minX) { minX = point.getX(); ...
public class class_name { public Bbox getBounds() { if (isEmpty()) { return null; // depends on control dependency: [if], data = [none] } double minX = Double.MAX_VALUE; double minY = Double.MAX_VALUE; double maxX = -Double.MAX_VALUE; double maxY = -Double.MAX_VALUE; for (Point point : points) { i...
public class class_name { public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if (strCommand.equalsIgnoreCase(MenuConstants.FORMDETAIL)) return (this.onForm(null, ScreenConstants.DETAIL_MODE, true, iCommandOptions, null) != null); else if (strCom...
public class class_name { public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if (strCommand.equalsIgnoreCase(MenuConstants.FORMDETAIL)) return (this.onForm(null, ScreenConstants.DETAIL_MODE, true, iCommandOptions, null) != null); else if (strCom...
public class class_name { public static void processAllCounterProbeExtensions(Event event){ List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ //Check if this probe ex...
public class class_name { public static void processAllCounterProbeExtensions(Event event){ List<ProbeExtension> probeExtnList = RequestProbeService.getProbeExtensions(); for (int i = 0; i < probeExtnList.size(); i ++) { ProbeExtension probeExtension = probeExtnList.get(i); try{ //Check if this probe ex...
public class class_name { private static SuggestedFix.Builder addPrivateConstructor(ClassTree classTree) { SuggestedFix.Builder fix = SuggestedFix.builder(); String indent = " "; for (Tree member : classTree.getMembers()) { if (member.getKind().equals(METHOD) && !isGeneratedConstructor((MethodTree) ...
public class class_name { private static SuggestedFix.Builder addPrivateConstructor(ClassTree classTree) { SuggestedFix.Builder fix = SuggestedFix.builder(); String indent = " "; for (Tree member : classTree.getMembers()) { if (member.getKind().equals(METHOD) && !isGeneratedConstructor((MethodTree) ...
public class class_name { public void preconfigureInput(InputComponent<?, ?> input, WithAttributes atts) { if (atts != null) { input.setEnabled(atts.enabled()); input.setLabel(atts.label()); input.setRequired(atts.required()); input.setRequiredMessage(atts.requiredMes...
public class class_name { public void preconfigureInput(InputComponent<?, ?> input, WithAttributes atts) { if (atts != null) { input.setEnabled(atts.enabled()); // depends on control dependency: [if], data = [(atts] input.setLabel(atts.label()); // depends on control dependency: [if], ...
public class class_name { private void runIndexing(Session upperSession, Tuple tuple) { initSession( upperSession ); try { index( upperSession, entity( upperSession, tuple ) ); } catch (Throwable e) { errorHandler.handleException( log.massIndexerUnexpectedErrorMessage(), e ); } finally { log.debug...
public class class_name { private void runIndexing(Session upperSession, Tuple tuple) { initSession( upperSession ); try { index( upperSession, entity( upperSession, tuple ) ); // depends on control dependency: [try], data = [none] } catch (Throwable e) { errorHandler.handleException( log.massIndexerUnex...
public class class_name { public Observable<ServiceResponse<OperationStatus>> updateCompositeEntityWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, CompositeEntityModel compositeModelUpdateObject) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Para...
public class class_name { public Observable<ServiceResponse<OperationStatus>> updateCompositeEntityWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, CompositeEntityModel compositeModelUpdateObject) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Para...
public class class_name { private void validateIfdMP(IFD ifd, int p) { IfdTags metadata = ifd.getMetadata(); if (p == 1 || p == 2) { checkRequiredTag(metadata, "NewSubfileType", 1, new long[]{0}); } checkRequiredTag(metadata, "ImageLength", 1); checkRequiredTag(metadata, "ImageWidth", 1); ...
public class class_name { private void validateIfdMP(IFD ifd, int p) { IfdTags metadata = ifd.getMetadata(); if (p == 1 || p == 2) { checkRequiredTag(metadata, "NewSubfileType", 1, new long[]{0}); // depends on control dependency: [if], data = [none] } checkRequiredTag(metadata, "ImageLength", 1...
public class class_name { public synchronized boolean hasNext() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "hasNext"); if(next == null) { synchronized(index) { next = (Index.Entry) cursor.next(); if(filter != null) { ...
public class class_name { public synchronized boolean hasNext() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "hasNext"); if(next == null) { synchronized(index) // depends on control dependency: [if], data = [none] { next = (Index.Entry) cur...
public class class_name { private static Object getValue(Object obj, String propertyPattern, ObjectWrapper options) { if (propertyPattern == null) { throw new IllegalArgumentException("Cannot get the value from a property with a 'null' propertyPattern."); } if (obj == null) { ...
public class class_name { private static Object getValue(Object obj, String propertyPattern, ObjectWrapper options) { if (propertyPattern == null) { throw new IllegalArgumentException("Cannot get the value from a property with a 'null' propertyPattern."); } if (obj == null) { ...
public class class_name { public void createDataChannel() { if (null != callReference) { RespokeCall call = callReference.get(); if (null != call) { PeerConnection peerConnection = call.getPeerConnection(); dataChannel = peerConnection.createDataChannel("...
public class class_name { public void createDataChannel() { if (null != callReference) { RespokeCall call = callReference.get(); if (null != call) { PeerConnection peerConnection = call.getPeerConnection(); dataChannel = peerConnection.createDataChannel("...
public class class_name { @SuppressWarnings("unchecked") public <E> E[] toArray(E[] array) { for (int i = 0, j = 0; i < array.length; ++i) { int index = -1; if (j < indices.length && (index = indices[j]) == i) { array[i] = (E)(Long.valueOf(values[j])); j++; } else array[i] = (E)(Long.val...
public class class_name { @SuppressWarnings("unchecked") public <E> E[] toArray(E[] array) { for (int i = 0, j = 0; i < array.length; ++i) { int index = -1; if (j < indices.length && (index = indices[j]) == i) { array[i] = (E)(Long.valueOf(values[j])); // depends on control dependency: [if], data = [n...
public class class_name { public static CmsWorkplaceSettings initUserSettings(CmsObject cms, CmsWorkplaceSettings settings, boolean update) { if (settings == null) { settings = new CmsWorkplaceSettings(); } // save current workplace user & user settings object CmsUser user...
public class class_name { public static CmsWorkplaceSettings initUserSettings(CmsObject cms, CmsWorkplaceSettings settings, boolean update) { if (settings == null) { settings = new CmsWorkplaceSettings(); // depends on control dependency: [if], data = [none] } // save current work...
public class class_name { public static void parse(final HashMap<String, String> tags, final String tag) { final String[] kv = splitString(tag, '='); if (kv.length != 2 || kv[0].length() <= 0 || kv[1].length() <= 0) { throw new IllegalArgumentException("invalid tag: " + tag); ...
public class class_name { public static void parse(final HashMap<String, String> tags, final String tag) { final String[] kv = splitString(tag, '='); if (kv.length != 2 || kv[0].length() <= 0 || kv[1].length() <= 0) { throw new IllegalArgumentException("invalid tag: " + tag); ...
public class class_name { public static String toColorString(Color pColor) { // Not a color... if (pColor == null) { return null; } StringBuilder str = new StringBuilder(Integer.toHexString(pColor.getRGB())); // Make sure string is 8 chars for (int...
public class class_name { public static String toColorString(Color pColor) { // Not a color... if (pColor == null) { return null; // depends on control dependency: [if], data = [none] } StringBuilder str = new StringBuilder(Integer.toHexString(pColor.getRGB())); ...
public class class_name { public static File getFullBackupFile(File restoreDir) { Pattern p = Pattern.compile(".+\\.0"); for (File f : PrivilegedFileHelper.listFiles(restoreDir, new FileFilter() { public boolean accept(File pathname) { Pattern p = Pattern.com...
public class class_name { public static File getFullBackupFile(File restoreDir) { Pattern p = Pattern.compile(".+\\.0"); for (File f : PrivilegedFileHelper.listFiles(restoreDir, new FileFilter() { public boolean accept(File pathname) { Pattern p = Pattern.com...
public class class_name { private void parseProperties(Element element, BeanDefinitionBuilder builder, ManagedList<AbstractBeanDefinition> propertyList) { NodeList properties = element.getChildNodes(); for (int i = 0; i < properties.getLength(); i++) { Node...
public class class_name { private void parseProperties(Element element, BeanDefinitionBuilder builder, ManagedList<AbstractBeanDefinition> propertyList) { NodeList properties = element.getChildNodes(); for (int i = 0; i < properties.getLength(); i++) { Node...
public class class_name { public Map<String, StringListAttribute> getCustomAttributes() { Map<String, StringListAttribute> rslt = new HashMap<String, StringListAttribute>(attributes); for (Preference p : accountEditAttributes) { rslt.remove(p.getName()); } re...
public class class_name { public Map<String, StringListAttribute> getCustomAttributes() { Map<String, StringListAttribute> rslt = new HashMap<String, StringListAttribute>(attributes); for (Preference p : accountEditAttributes) { rslt.remove(p.getName()); // depends on contro...
public class class_name { public static String fromNamedReference(CharSequence s) { if (s == null) { return null; } final Integer code = SPECIALS.get(s.toString()); if (code != null) { return "&#" + code + ";"; } return null; } }
public class class_name { public static String fromNamedReference(CharSequence s) { if (s == null) { return null; // depends on control dependency: [if], data = [none] } final Integer code = SPECIALS.get(s.toString()); if (code != null) { return "&#" + code + ";"...
public class class_name { private void obtainTextColor(@NonNull final TypedArray typedArray) { ColorStateList colorStateList = typedArray.getColorStateList(R.styleable.ActionPreference_android_textColor); if (colorStateList == null) { colorStateList = ContextCompat ...
public class class_name { private void obtainTextColor(@NonNull final TypedArray typedArray) { ColorStateList colorStateList = typedArray.getColorStateList(R.styleable.ActionPreference_android_textColor); if (colorStateList == null) { colorStateList = ContextCompat ...
public class class_name { @Override public boolean hasNext() { try { if (currentPart != null) { currentPart.close(); } if (!fileItemIterator.hasNext()) { return false; } FileItemStream fileItemStream = fileItemIterator.next(); if (fileItemStream.isFormField()) { currentPart ...
public class class_name { @Override public boolean hasNext() { try { if (currentPart != null) { currentPart.close(); // depends on control dependency: [if], data = [none] } if (!fileItemIterator.hasNext()) { return false; // depends on control dependency: [if], data = [none] } FileIt...
public class class_name { private Statement handleTranslationWithPlaceholders( MsgNode msg, ImmutableList<SoyPrintDirective> escapingDirectives, Expression soyMsgParts, Expression locale, MsgPartsAndIds partsAndId) { // We need to render placeholders into a buffer and then pack them i...
public class class_name { private Statement handleTranslationWithPlaceholders( MsgNode msg, ImmutableList<SoyPrintDirective> escapingDirectives, Expression soyMsgParts, Expression locale, MsgPartsAndIds partsAndId) { // We need to render placeholders into a buffer and then pack them i...
public class class_name { private static Node makeNewRvalueForDestructuringKey( Node stringKey, Node rvalue, Set<AstChange> newNodes, Ref ref) { if (stringKey.getOnlyChild().isDefaultValue()) { Node defaultValue = stringKey.getFirstChild().getSecondChild().detach(); // Assume `rvalue` has no side...
public class class_name { private static Node makeNewRvalueForDestructuringKey( Node stringKey, Node rvalue, Set<AstChange> newNodes, Ref ref) { if (stringKey.getOnlyChild().isDefaultValue()) { Node defaultValue = stringKey.getFirstChild().getSecondChild().detach(); // Assume `rvalue` has no side...
public class class_name { @Nullable public DBObject one() { DBCursor findOneCursor = copy().limit(-1); try { return findOneCursor.hasNext() ? findOneCursor.next() : null; } finally { findOneCursor.close(); } } }
public class class_name { @Nullable public DBObject one() { DBCursor findOneCursor = copy().limit(-1); try { return findOneCursor.hasNext() ? findOneCursor.next() : null; // depends on control dependency: [try], data = [none] } finally { findOneCursor.close(); ...
public class class_name { private void _sync() { if (!mirrored) throw new IllegalArgumentException("Mirroring not activated on this index"); // Reset statistics. stats = new SyncStats(); long startTime = System.currentTimeMillis(); // Notify listeners. ...
public class class_name { private void _sync() { if (!mirrored) throw new IllegalArgumentException("Mirroring not activated on this index"); // Reset statistics. stats = new SyncStats(); long startTime = System.currentTimeMillis(); // Notify listeners. ...
public class class_name { public void updateRequestByAddingReplaceVarPair( ParallelTask task, String replaceVarKey, String replaceVarValue) { Map<String, NodeReqResponse> taskResult = task.getParallelTaskResult(); for (Entry<String, NodeReqResponse> entry : taskResult.entrySet()) { ...
public class class_name { public void updateRequestByAddingReplaceVarPair( ParallelTask task, String replaceVarKey, String replaceVarValue) { Map<String, NodeReqResponse> taskResult = task.getParallelTaskResult(); for (Entry<String, NodeReqResponse> entry : taskResult.entrySet()) { ...
public class class_name { @Override public final ResourceSnapshot create(ContainerSnapshot container, DataSet representation, WriteSession session) { Name<?> name= NamingScheme. getDefault(). name(id.incrementAndGet()); DataSetHelper helper= DataSetUtils.newHelper(representation); ManagedIndi...
public class class_name { @Override public final ResourceSnapshot create(ContainerSnapshot container, DataSet representation, WriteSession session) { Name<?> name= NamingScheme. getDefault(). name(id.incrementAndGet()); DataSetHelper helper= DataSetUtils.newHelper(representation); ManagedIndi...
public class class_name { private boolean toBoundedNext() throws FetchException { if (!toNext()) { return false; } if (mEndBound != null) { byte[] currentKey = getCurrentKey(); if (currentKey == null) { return false; } ...
public class class_name { private boolean toBoundedNext() throws FetchException { if (!toNext()) { return false; } if (mEndBound != null) { byte[] currentKey = getCurrentKey(); if (currentKey == null) { return false; } ...
public class class_name { @Override protected void delete(Object entity, Object pKey) { EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.getClass()); MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata() ...
public class class_name { @Override protected void delete(Object entity, Object pKey) { EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entity.getClass()); MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata() ...
public class class_name { public static <T> double reduceBy( final double[] array, T object ) { if (object.getClass().isAnonymousClass()) { return reduceByR(array, object ); } try { ConstantCallSite callSite = Invoker.invokeReducerLongIntReturnLongMethodHandle(object)...
public class class_name { public static <T> double reduceBy( final double[] array, T object ) { if (object.getClass().isAnonymousClass()) { return reduceByR(array, object ); // depends on control dependency: [if], data = [none] } try { ConstantCallSite callSite = Invo...
public class class_name { public com.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig getCategoricalStatsConfig() { if (typeCase_ == 2) { return (com.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig) type_; } return com.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsCon...
public class class_name { public com.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig getCategoricalStatsConfig() { if (typeCase_ == 2) { return (com.google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig) type_; // depends on control dependency: [if], data = [none] } return com.g...
public class class_name { final Serializable restoreMapObject(byte[] mapItemArray) throws IOException, ClassNotFoundException { Serializable item = null;; /* If it is a real byte array, we need to return a safe copy with the */ /* header bytes removed. */ if ((mapItemArray[0] == HEADE...
public class class_name { final Serializable restoreMapObject(byte[] mapItemArray) throws IOException, ClassNotFoundException { Serializable item = null;; /* If it is a real byte array, we need to return a safe copy with the */ /* header bytes removed. */ if ((mapItemArray[0] == HEADE...
public class class_name { public EClass getGIMD() { if (gimdEClass == null) { gimdEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(453); } return gimdEClass; } }
public class class_name { public EClass getGIMD() { if (gimdEClass == null) { gimdEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(453); // depends on control dependency: [if], data = [none] } return gimdEClass; } }
public class class_name { public void buildAllStatistics() { for (Map<String,?> map : daoService.getAppsAndCountsToTreat()) { // get the date of older SMS for this app and account final Application application = (Application) map.get(Sms.PROP_APP); final Account account = (Account) map.get(Sms.PROP_ACC)...
public class class_name { public void buildAllStatistics() { for (Map<String,?> map : daoService.getAppsAndCountsToTreat()) { // get the date of older SMS for this app and account final Application application = (Application) map.get(Sms.PROP_APP); final Account account = (Account) map.get(Sms.PROP_ACC)...
public class class_name { private void close(ManagedConnection mc) { log.debugf("Closing managed connection for recovery (%s)", mc); if (mc != null) { try { mc.cleanup(); } catch (ResourceException ire) { log.debugf("Error durin...
public class class_name { private void close(ManagedConnection mc) { log.debugf("Closing managed connection for recovery (%s)", mc); if (mc != null) { try { mc.cleanup(); // depends on control dependency: [try], data = [none] } catch (ResourceExcept...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { if ("RESIZE".equals(EVENT_TYPE)) { resize(); redraw(); }else if ("REDRAW".equals(EVENT_TYPE)) { redraw(); } else if ("VISIBILITY".equals(EVENT_TYPE)) { Help...
public class class_name { @Override protected void handleEvents(final String EVENT_TYPE) { if ("RESIZE".equals(EVENT_TYPE)) { resize(); // depends on control dependency: [if], data = [none] redraw(); // depends on control dependency: [if], data = [none] }else if ("REDRAW".equals...
public class class_name { public Optional<Board> getOptionalBoard(Object projectIdOrPath, Integer boardId) { try { return (Optional.ofNullable(getBoard(projectIdOrPath, boardId))); } catch (GitLabApiException glae) { return (GitLabApi.createOptionalFromException(glae)); ...
public class class_name { public Optional<Board> getOptionalBoard(Object projectIdOrPath, Integer boardId) { try { return (Optional.ofNullable(getBoard(projectIdOrPath, boardId))); // depends on control dependency: [try], data = [none] } catch (GitLabApiException glae) { return ...
public class class_name { public boolean next() { while (true) { currentSlot++; if (!isOverflowing) { // not in an overflow block // if it reached the end of the block if (currentSlot >= currentPage.getNumRecords()) { if (getSiblingFlag(currentPage) != -1) { moveTo(getSiblingFlag(curr...
public class class_name { public boolean next() { while (true) { currentSlot++; // depends on control dependency: [while], data = [none] if (!isOverflowing) { // not in an overflow block // if it reached the end of the block if (currentSlot >= currentPage.getNumRecords()) { if (getSiblingFla...
public class class_name { private void organizeContent() { table = new TableBox(el, g, ctx); table.adoptParent(this); table.setStyle(style); for (Iterator<Box> it = nested.iterator(); it.hasNext(); ) { Box box = it.next(); if (box instanceof ...
public class class_name { private void organizeContent() { table = new TableBox(el, g, ctx); table.adoptParent(this); table.setStyle(style); for (Iterator<Box> it = nested.iterator(); it.hasNext(); ) { Box box = it.next(); if (box instanceof ...
public class class_name { private void enforceCorrectEncodingOfRequest() { String charset = NinjaConstant.UTF_8; String contentType = getHeader(CONTENT_TYPE); if (contentType != null) { charset = HttpHeaderUtils.getCharsetOfContentTypeOrUtf8(contentType); } try {...
public class class_name { private void enforceCorrectEncodingOfRequest() { String charset = NinjaConstant.UTF_8; String contentType = getHeader(CONTENT_TYPE); if (contentType != null) { charset = HttpHeaderUtils.getCharsetOfContentTypeOrUtf8(contentType); // depends on control de...
public class class_name { public static boolean checkAndLogPropertyDeprecated(HazelcastProperties properties, HazelcastProperty hazelcastProperty) { if (properties.containsKey(hazelcastProperty)) { LOGGER.warning( "Property " + hazelcastProperty.getName() + " is deprecated. Use ...
public class class_name { public static boolean checkAndLogPropertyDeprecated(HazelcastProperties properties, HazelcastProperty hazelcastProperty) { if (properties.containsKey(hazelcastProperty)) { LOGGER.warning( "Property " + hazelcastProperty.getName() + " is deprecated. Use ...
public class class_name { private static double computeWastedSpace( double maxSizeX, double maxSizeY, double aspect) { int maxAspectX = (int) (maxSizeY * aspect); int maxAspectY = (int) (maxSizeX / aspect); if (maxAspectX > maxSizeX) { double sizeX = maxSi...
public class class_name { private static double computeWastedSpace( double maxSizeX, double maxSizeY, double aspect) { int maxAspectX = (int) (maxSizeY * aspect); int maxAspectY = (int) (maxSizeX / aspect); if (maxAspectX > maxSizeX) { double sizeX = maxSi...
public class class_name { public void reportSuccess() { connectionLock.lock(); try { state = State.Success; condition.signalAll(); } finally { connectionLock.unlock(); } } }
public class class_name { public void reportSuccess() { connectionLock.lock(); try { state = State.Success; // depends on control dependency: [try], data = [none] condition.signalAll(); // depends on control dependency: [try], data = [none] } finally { ...
public class class_name { public static DMatrixRMaj checkZerosLT(DMatrixRMaj A , int numRows , int numCols) { if( A == null ) { return new DMatrixRMaj(numRows,numCols); } else if( numRows != A.numRows || numCols != A.numCols ) { A.reshape(numRows,numCols); A.zero();...
public class class_name { public static DMatrixRMaj checkZerosLT(DMatrixRMaj A , int numRows , int numCols) { if( A == null ) { return new DMatrixRMaj(numRows,numCols); // depends on control dependency: [if], data = [none] } else if( numRows != A.numRows || numCols != A.numCols ) { ...
public class class_name { private static Response getApiResponse(Verbs verb, String methodName, Map<String, String> params) throws IOException { Response response; String apiResourceUrl = Constants.OEMBED_URL + methodName; OAuthRequest request = new OAuthRequest(verb, apiResourceUrl); ...
public class class_name { private static Response getApiResponse(Verbs verb, String methodName, Map<String, String> params) throws IOException { Response response; String apiResourceUrl = Constants.OEMBED_URL + methodName; OAuthRequest request = new OAuthRequest(verb, apiResourceUrl); ...
public class class_name { public List<Alternatives<BeansDescriptor>> getAllAlternatives() { List<Alternatives<BeansDescriptor>> list = new ArrayList<Alternatives<BeansDescriptor>>(); List<Node> nodeList = model.get("alternatives"); for (Node node : nodeList) { Alternatives<BeansDesc...
public class class_name { public List<Alternatives<BeansDescriptor>> getAllAlternatives() { List<Alternatives<BeansDescriptor>> list = new ArrayList<Alternatives<BeansDescriptor>>(); List<Node> nodeList = model.get("alternatives"); for (Node node : nodeList) { Alternatives<BeansDesc...
public class class_name { public void setLastSuccessfullyAppliedConfigurations(java.util.Collection<Configuration> lastSuccessfullyAppliedConfigurations) { if (lastSuccessfullyAppliedConfigurations == null) { this.lastSuccessfullyAppliedConfigurations = null; return; } ...
public class class_name { public void setLastSuccessfullyAppliedConfigurations(java.util.Collection<Configuration> lastSuccessfullyAppliedConfigurations) { if (lastSuccessfullyAppliedConfigurations == null) { this.lastSuccessfullyAppliedConfigurations = null; // depends on control dependency: [if],...
public class class_name { public void setGroupedResourceCounts(java.util.Collection<GroupedResourceCount> groupedResourceCounts) { if (groupedResourceCounts == null) { this.groupedResourceCounts = null; return; } this.groupedResourceCounts = new com.amazonaws.internal.S...
public class class_name { public void setGroupedResourceCounts(java.util.Collection<GroupedResourceCount> groupedResourceCounts) { if (groupedResourceCounts == null) { this.groupedResourceCounts = null; // depends on control dependency: [if], data = [none] return; // depends on control ...
public class class_name { public String getMinDateLastModified() { if (m_searchParams.getMinDateLastModified() == Long.MIN_VALUE) { return ""; } return Long.toString(m_searchParams.getMinDateLastModified()); } }
public class class_name { public String getMinDateLastModified() { if (m_searchParams.getMinDateLastModified() == Long.MIN_VALUE) { return ""; // depends on control dependency: [if], data = [none] } return Long.toString(m_searchParams.getMinDateLastModified()); } }
public class class_name { public static String process(String input, List<Replacer> replacers) { if (null == input) { return null; } for (Replacer replacer : replacers) { input = replacer.process(input); } return input; } }
public class class_name { public static String process(String input, List<Replacer> replacers) { if (null == input) { return null; } // depends on control dependency: [if], data = [none] for (Replacer replacer : replacers) { input = replacer.process(input); // depends on control dependency: [for], data =...
public class class_name { protected int countComponentContainPaxWicketBeanAnnotatedOneLevel(Class<?> component) { Class<?> clazz = component; int numberOfInjectionFields = 0; for (Field field : clazz.getDeclaredFields()) { if (field.isAnnotationPresent(Inject.class)) { ...
public class class_name { protected int countComponentContainPaxWicketBeanAnnotatedOneLevel(Class<?> component) { Class<?> clazz = component; int numberOfInjectionFields = 0; for (Field field : clazz.getDeclaredFields()) { if (field.isAnnotationPresent(Inject.class)) { ...
public class class_name { public void updateNodeForId(final CmsUUID id) { final List<CmsSitemapTreeNode> nodes = Lists.newArrayList(); CmsVaadinUtils.visitDescendants(m_currentRootNode, new Predicate<Component>() { public boolean apply(Component input) { if (input instanc...
public class class_name { public void updateNodeForId(final CmsUUID id) { final List<CmsSitemapTreeNode> nodes = Lists.newArrayList(); CmsVaadinUtils.visitDescendants(m_currentRootNode, new Predicate<Component>() { public boolean apply(Component input) { if (input instanc...
public class class_name { public int[] createIntArray(Integer[] integers) { int[] result; if (integers != null) { int count = 0; int inputLength = integers.length; int[] tempResult = new int[inputLength]; for (int i = 0; i < inputLength; i++) { ...
public class class_name { public int[] createIntArray(Integer[] integers) { int[] result; if (integers != null) { int count = 0; int inputLength = integers.length; int[] tempResult = new int[inputLength]; for (int i = 0; i < inputLength; i++) { ...
public class class_name { private void writeBufferedValsToStorage() { List<Versioned<byte[]>> obsoleteVals = storageEngine.multiVersionPut(currBufferedKey, currBufferedVals); // log Obsolete versions in debug mode if(l...
public class class_name { private void writeBufferedValsToStorage() { List<Versioned<byte[]>> obsoleteVals = storageEngine.multiVersionPut(currBufferedKey, currBufferedVals); // log Obsolete versions in debug mode if(l...
public class class_name { private Thumb evalPressedThumb(float touchX) { Thumb result = null; boolean minThumbPressed = isInThumbRange(touchX, normalizedMinValue); boolean maxThumbPressed = isInThumbRange(touchX, normalizedMaxValue); if (minThumbPressed && maxThumbPressed) { ...
public class class_name { private Thumb evalPressedThumb(float touchX) { Thumb result = null; boolean minThumbPressed = isInThumbRange(touchX, normalizedMinValue); boolean maxThumbPressed = isInThumbRange(touchX, normalizedMaxValue); if (minThumbPressed && maxThumbPressed) { ...
public class class_name { public void applyToFormatters( Map<CmsUUID, I_CmsFormatterBean> formatters, CmsFormatterConfigurationCacheState externalFormatters) { if (m_removeAllNonExplicitlyAdded) { formatters.clear(); } for (Map.Entry<CmsUUID, Boolean> updateEntry : ...
public class class_name { public void applyToFormatters( Map<CmsUUID, I_CmsFormatterBean> formatters, CmsFormatterConfigurationCacheState externalFormatters) { if (m_removeAllNonExplicitlyAdded) { formatters.clear(); // depends on control dependency: [if], data = [none] } ...
public class class_name { public static String toHumanReadableSize(final long pSizeInBytes) { // TODO: Rewrite to use String.format? if (pSizeInBytes < 1024L) { return pSizeInBytes + " Bytes"; } else if (pSizeInBytes < (1024L << 10)) { return getSizeFormat(...
public class class_name { public static String toHumanReadableSize(final long pSizeInBytes) { // TODO: Rewrite to use String.format? if (pSizeInBytes < 1024L) { return pSizeInBytes + " Bytes"; // depends on control dependency: [if], data = [none] } else if (pSizeInBytes...
public class class_name { private void readParamsFromFile() { if (initParams != null) { ValueParam valParam = initParams.getValueParam(ADMIN_INDENTITY); if (valParam != null) { adminIdentity = valParam.getValue(); LOG.info("Admin identity is read from c...
public class class_name { private void readParamsFromFile() { if (initParams != null) { ValueParam valParam = initParams.getValueParam(ADMIN_INDENTITY); if (valParam != null) { adminIdentity = valParam.getValue(); // depends on control dependency: [if], data = [non...
public class class_name { @CanIgnoreReturnValue public ServiceManager startAsync() { for (Service service : services) { State state = service.state(); checkState(state == NEW, "Service %s is %s, cannot start it.", service, state); } for (Service service : services) { try { state...
public class class_name { @CanIgnoreReturnValue public ServiceManager startAsync() { for (Service service : services) { State state = service.state(); checkState(state == NEW, "Service %s is %s, cannot start it.", service, state); // depends on control dependency: [for], data = [service] } fo...
public class class_name { static byte[] encode(int count) { // 计算需要填充的位数 int amountToPad = BLOCK_SIZE - (count % BLOCK_SIZE); if (amountToPad == 0) { amountToPad = BLOCK_SIZE; } // 获得补位所用的字符 char padChr = chr(amountToPad); String tmp = new Str...
public class class_name { static byte[] encode(int count) { // 计算需要填充的位数 int amountToPad = BLOCK_SIZE - (count % BLOCK_SIZE); if (amountToPad == 0) { amountToPad = BLOCK_SIZE; // depends on control dependency: [if], data = [none] } // 获得补位所用的字符 char pa...
public class class_name { public static void applyTransform(GrayS8 input , int transform[] , int minValue, GrayS8 output ) { output.reshape(input.width,input.height); if( BoofConcurrency.USE_CONCURRENT ) { ImplEnhanceHistogram_MT.applyTransform(input, transform, minValue, output); } else { ImplEnhanceHist...
public class class_name { public static void applyTransform(GrayS8 input , int transform[] , int minValue, GrayS8 output ) { output.reshape(input.width,input.height); if( BoofConcurrency.USE_CONCURRENT ) { ImplEnhanceHistogram_MT.applyTransform(input, transform, minValue, output); // depends on control depende...
public class class_name { protected Iterator<BufferedRow> initialize() { // Load everthing into the buffer ... batchSize = loadAll(delegate, extractor, rowsWithNullKey); remainingRowCount.set(buffer.size() + rowsWithNullKey.size()); // We always return the buffered rows in ascending ord...
public class class_name { protected Iterator<BufferedRow> initialize() { // Load everthing into the buffer ... batchSize = loadAll(delegate, extractor, rowsWithNullKey); remainingRowCount.set(buffer.size() + rowsWithNullKey.size()); // We always return the buffered rows in ascending ord...
public class class_name { private int parseInteger(String value, int defaultValue) { try { return Integer.parseInt(value); } catch (NumberFormatException e) { return defaultValue; } } }
public class class_name { private int parseInteger(String value, int defaultValue) { try { return Integer.parseInt(value); // depends on control dependency: [try], data = [none] } catch (NumberFormatException e) { return defaultValue; } // depends on control dependency: [catch], data = [none] } }
public class class_name { public static void calculate(LPC lpc, long[] R) { int coeffCount = lpc.order; //calculate first iteration directly double[] A = lpc.rawCoefficients; for(int i = 0; i < coeffCount+1; i++) A[i] = 0.0; A[0] = 1; double E = R[0]; //calculate remaining iterations ...
public class class_name { public static void calculate(LPC lpc, long[] R) { int coeffCount = lpc.order; //calculate first iteration directly double[] A = lpc.rawCoefficients; for(int i = 0; i < coeffCount+1; i++) A[i] = 0.0; A[0] = 1; double E = R[0]; //calculate remaining iterations ...
public class class_name { public FastDoubleBuffer append(final FastDoubleBuffer buff) { if (buff.offset == 0) { return this; } append(buff.buffer, 0, buff.offset); return this; } }
public class class_name { public FastDoubleBuffer append(final FastDoubleBuffer buff) { if (buff.offset == 0) { return this; // depends on control dependency: [if], data = [none] } append(buff.buffer, 0, buff.offset); return this; } }
public class class_name { public <D, F, P> Promise<D, F, P> when(Promise<D, F, P> promise, AndroidExecutionScope scope) { if (promise instanceof AndroidDeferredObject) { return promise; } return new AndroidDeferredObject<D, F, P>(promise, scope).promise(); } }
public class class_name { public <D, F, P> Promise<D, F, P> when(Promise<D, F, P> promise, AndroidExecutionScope scope) { if (promise instanceof AndroidDeferredObject) { return promise; // depends on control dependency: [if], data = [none] } return new AndroidDeferredObject<D, F, P>(promise, scope).promise();...
public class class_name { public static boolean isAncestor(IBasicScope from, IBasicScope ancestor) { IBasicScope current = from; while (current.hasParent()) { current = current.getParent(); if (current.equals(ancestor)) { return true; } } ...
public class class_name { public static boolean isAncestor(IBasicScope from, IBasicScope ancestor) { IBasicScope current = from; while (current.hasParent()) { current = current.getParent(); // depends on control dependency: [while], data = [none] if (current.equals(ancestor)) { ...
public class class_name { private String getSubPath(CmsObject cms, CmsResource xmlPage, String resourcename) { if (xmlPage != null) { String rootPath = cms.getRequestContext().addSiteRoot(resourcename); String path = rootPath.substring(xmlPage.getRootPath().length()); if (...
public class class_name { private String getSubPath(CmsObject cms, CmsResource xmlPage, String resourcename) { if (xmlPage != null) { String rootPath = cms.getRequestContext().addSiteRoot(resourcename); String path = rootPath.substring(xmlPage.getRootPath().length()); if (...
public class class_name { @Override public RandomVariable getValue(double evaluationTime, AssetModelMonteCarloSimulationModel model) throws CalculationException { /* * The following valuation code requires in-depth knowledge of the model to calculate the denstiy analytically. */ BlackScholesModel blackScho...
public class class_name { @Override public RandomVariable getValue(double evaluationTime, AssetModelMonteCarloSimulationModel model) throws CalculationException { /* * The following valuation code requires in-depth knowledge of the model to calculate the denstiy analytically. */ BlackScholesModel blackScho...
public class class_name { @Override protected void findReferencedClassNames(final Set<String> classNames) { final MethodTypeSignature methodSig = getTypeSignature(); if (methodSig != null) { methodSig.findReferencedClassNames(classNames); } final MethodTypeSignature meth...
public class class_name { @Override protected void findReferencedClassNames(final Set<String> classNames) { final MethodTypeSignature methodSig = getTypeSignature(); if (methodSig != null) { methodSig.findReferencedClassNames(classNames); // depends on control dependency: [if], data = [...
public class class_name { public static byte[] readBytes(@Nonnull final InputStream pInputStream) throws IOException { ByteArrayOutputStream baos = null; BufferedInputStream bis = null; try { baos = new ByteArrayOutputStream(IO_BUFFER_SIZE_BYTES); bis = new B...
public class class_name { public static byte[] readBytes(@Nonnull final InputStream pInputStream) throws IOException { ByteArrayOutputStream baos = null; BufferedInputStream bis = null; try { baos = new ByteArrayOutputStream(IO_BUFFER_SIZE_BYTES); bis = new B...
public class class_name { private URL getPXmlRootURL(String appName, String archiveName, Entry pxml) { URL pxmlUrl = pxml.getResource(); String pxmlStr = pxmlUrl.toString(); String pxmlRootStr = pxmlStr.substring(0, pxmlStr.length() - PERSISTENCE_XML_RESOURCE_NAME.length()); URL pxmlRoo...
public class class_name { private URL getPXmlRootURL(String appName, String archiveName, Entry pxml) { URL pxmlUrl = pxml.getResource(); String pxmlStr = pxmlUrl.toString(); String pxmlRootStr = pxmlStr.substring(0, pxmlStr.length() - PERSISTENCE_XML_RESOURCE_NAME.length()); URL pxmlRoo...
public class class_name { public static IOException createIOException(List<IOException> exceptions) { if (exceptions == null || exceptions.isEmpty()) { return null; } if (exceptions.size() == 1) { return exceptions.get(0); } return new MultipleIOException(exceptions); } }
public class class_name { public static IOException createIOException(List<IOException> exceptions) { if (exceptions == null || exceptions.isEmpty()) { return null; // depends on control dependency: [if], data = [none] } if (exceptions.size() == 1) { return exceptions.get(0); // depends on cont...
public class class_name { public boolean lookup(String identifier) { try { SPFError err = new SPFError(); boolean found = getService().lookup(getAccessToken(), identifier, err); if (err.isOk()) { return found; } else { handleError(err); return false; } } catch (RemoteException e) { //...
public class class_name { public boolean lookup(String identifier) { try { SPFError err = new SPFError(); boolean found = getService().lookup(getAccessToken(), identifier, err); if (err.isOk()) { return found; // depends on control dependency: [if], data = [none] } else { handleError(err); // dep...
public class class_name { public java.util.List<MaintenanceWindowExecutionTaskIdentity> getWindowExecutionTaskIdentities() { if (windowExecutionTaskIdentities == null) { windowExecutionTaskIdentities = new com.amazonaws.internal.SdkInternalList<MaintenanceWindowExecutionTaskIdentity>(); } ...
public class class_name { public java.util.List<MaintenanceWindowExecutionTaskIdentity> getWindowExecutionTaskIdentities() { if (windowExecutionTaskIdentities == null) { windowExecutionTaskIdentities = new com.amazonaws.internal.SdkInternalList<MaintenanceWindowExecutionTaskIdentity>(); // depends ...
public class class_name { private void processResponse(Response response) { // at this point a server response should contain a secure JSON with challenges JSONObject jsonResponse = Utils.extractSecureJson(response); JSONObject jsonChallenges = (jsonResponse == null) ? null : jsonResponse.optJS...
public class class_name { private void processResponse(Response response) { // at this point a server response should contain a secure JSON with challenges JSONObject jsonResponse = Utils.extractSecureJson(response); JSONObject jsonChallenges = (jsonResponse == null) ? null : jsonResponse.optJS...
public class class_name { public boolean containsLocalVariable(@Nullable final String name) { if (name == null) { return false; } final String normalized = assertNotNull(PreprocessorUtils.normalizeVariableName(name)); if (normalized.isEmpty()) { return false; } return localVarTab...
public class class_name { public boolean containsLocalVariable(@Nullable final String name) { if (name == null) { return false; // depends on control dependency: [if], data = [none] } final String normalized = assertNotNull(PreprocessorUtils.normalizeVariableName(name)); if (normalized.isEmpty(...
public class class_name { private void setFileSizesAfterRestart(boolean coldStart, long minimumPermanentStoreSize, long maximumPermanentStoreSize, boolean isPermanentStoreSizeUnlimited, long minimumTemporaryStoreSize, long maximumTempo...
public class class_name { private void setFileSizesAfterRestart(boolean coldStart, long minimumPermanentStoreSize, long maximumPermanentStoreSize, boolean isPermanentStoreSizeUnlimited, long minimumTemporaryStoreSize, long maximumTempo...
public class class_name { public void marshall(LabelingJobInputConfig labelingJobInputConfig, ProtocolMarshaller protocolMarshaller) { if (labelingJobInputConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public void marshall(LabelingJobInputConfig labelingJobInputConfig, ProtocolMarshaller protocolMarshaller) { if (labelingJobInputConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
public class class_name { public boolean containsPrimary(Property property, String value) { for (Metadata meta : primary.get(property)) { if (meta.getValue().equals(value)) { return true; } } return false; } }
public class class_name { public boolean containsPrimary(Property property, String value) { for (Metadata meta : primary.get(property)) { if (meta.getValue().equals(value)) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { protected void registerWebSocketEndpoint(Binding<?> binding) {//}, ServerEndpoint serverEndpoint) { Object instance = binding.getProvider().get(); Class<?> instanceClass = instance.getClass(); ServerEndpoint serverEndpoint = instanceClass.getAnnotation(ServerEndpoint.class); ...
public class class_name { protected void registerWebSocketEndpoint(Binding<?> binding) {//}, ServerEndpoint serverEndpoint) { Object instance = binding.getProvider().get(); Class<?> instanceClass = instance.getClass(); ServerEndpoint serverEndpoint = instanceClass.getAnnotation(ServerEndpoint.class); ...
public class class_name { protected boolean checkClause(Clause clause, Queue<Notification> notifications) { Collection<DetectionPoint> windowDetectionPoints = new HashSet<DetectionPoint>(); for (Notification notification : notifications) { windowDetectionPoints.add(notification.getMonitorPoint()); } for (...
public class class_name { protected boolean checkClause(Clause clause, Queue<Notification> notifications) { Collection<DetectionPoint> windowDetectionPoints = new HashSet<DetectionPoint>(); for (Notification notification : notifications) { windowDetectionPoints.add(notification.getMonitorPoint()); // depends o...
public class class_name { @Override protected IIOMetadataNode getStandardTextNode() { if (!header.getName().isEmpty()) { IIOMetadataNode text = new IIOMetadataNode("Text"); IIOMetadataNode textEntry = new IIOMetadataNode("TextEntry"); textEntry.setAttribute("keyword", "...
public class class_name { @Override protected IIOMetadataNode getStandardTextNode() { if (!header.getName().isEmpty()) { IIOMetadataNode text = new IIOMetadataNode("Text"); IIOMetadataNode textEntry = new IIOMetadataNode("TextEntry"); textEntry.setAttribute("keyword", "...
public class class_name { public static void setScriptsExecutable(File dir) { String os = System.getProperty("os.name"); if (os != null && !os.startsWith("Windows")) { FileFilter filter = FileUtils.getSuffixFileFilter(".sh"); setExecutable(dir, filter); } } }
public class class_name { public static void setScriptsExecutable(File dir) { String os = System.getProperty("os.name"); if (os != null && !os.startsWith("Windows")) { FileFilter filter = FileUtils.getSuffixFileFilter(".sh"); setExecutable(dir, filter); // depends on control dependency: [if], data = [none] ...
public class class_name { public void marshall(ElasticLoadBalancer elasticLoadBalancer, ProtocolMarshaller protocolMarshaller) { if (elasticLoadBalancer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(ElasticLoadBalancer elasticLoadBalancer, ProtocolMarshaller protocolMarshaller) { if (elasticLoadBalancer == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { StringBuilder fwdQuote(char q) { StringBuilder sb = new StringBuilder(); while (hasNext()) { next(); sb.append(buffer[pos]); if (isCurr(q)) { if (isNext(q)) { // consecutive quote sign next(); } else { break; } } } if (sb.length() > 0) sb.setLe...
public class class_name { StringBuilder fwdQuote(char q) { StringBuilder sb = new StringBuilder(); while (hasNext()) { next(); // depends on control dependency: [while], data = [none] sb.append(buffer[pos]); // depends on control dependency: [while], data = [none] if (isCurr(q)) { if (isNext(q))...
public class class_name { public final void setVolumeByIncrement(float level) throws IOException { Volume volume = this.getStatus().volume; float total = volume.level; if (volume.increment <= 0f) { throw new ChromeCastException("Volume.increment is <= 0"); } // Wit...
public class class_name { public final void setVolumeByIncrement(float level) throws IOException { Volume volume = this.getStatus().volume; float total = volume.level; if (volume.increment <= 0f) { throw new ChromeCastException("Volume.increment is <= 0"); } // Wit...
public class class_name { public static void enableSubsystem(ISubsystem subsystem, boolean enable) { if (enable_logging) { if (enable) { mEnabledSubsystems.add(subsystem); } else { mEnabledSubsystems.remove(subsystem); } } } }
public class class_name { public static void enableSubsystem(ISubsystem subsystem, boolean enable) { if (enable_logging) { if (enable) { mEnabledSubsystems.add(subsystem); // depends on control dependency: [if], data = [none] } else { mEnabledSubsystems.r...
public class class_name { public int copy(long srcPos, byte[] data, int destPos, int length) { int segmentSize = 1 << log2OfSegmentSize; int remainingBytesInSegment = (int)(segmentSize - (srcPos & bitmask)); int dataPosition = destPos; while(length > 0) { byte[] segment = s...
public class class_name { public int copy(long srcPos, byte[] data, int destPos, int length) { int segmentSize = 1 << log2OfSegmentSize; int remainingBytesInSegment = (int)(segmentSize - (srcPos & bitmask)); int dataPosition = destPos; while(length > 0) { byte[] segment = s...
public class class_name { public JsonReader createReader(InputStream input) { try { return createReader(new InputStreamReader(input, "UTF-8")); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } } }
public class class_name { public JsonReader createReader(InputStream input) { try { return createReader(new InputStreamReader(input, "UTF-8")); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException e) { throw new RuntimeException(e)...