code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static URI relativize(URI base,URI target) { if(!base.getScheme().equals(target.getScheme())) { return target; } StringBuilder rel = new StringBuilder(); String path = base.getPath(); String separator = "/"; StringTokenizer to...
public class class_name { public static URI relativize(URI base,URI target) { if(!base.getScheme().equals(target.getScheme())) { return target; // depends on control dependency: [if], data = [none] } StringBuilder rel = new StringBuilder(); String path = base.getPath(); ...
public class class_name { public static final int nextPrime8191(final int desiredCapacity) { if (desiredCapacity < 0) return 1; if (desiredCapacity <= 8191) { final int i = Arrays.binarySearch(primeCapacities8191, (short) desiredCapacity); return primeCapacities8191[((i < 0) ? ((-i) - 1) : i)]; } retu...
public class class_name { public static final int nextPrime8191(final int desiredCapacity) { if (desiredCapacity < 0) return 1; if (desiredCapacity <= 8191) { final int i = Arrays.binarySearch(primeCapacities8191, (short) desiredCapacity); return primeCapacities8191[((i < 0) ? ((-i) - 1) : i)]; // depends...
public class class_name { public static void rotateCCW( GrayS64 input , GrayS64 output ) { if( input.width != output.height || input.height != output.width ) throw new IllegalArgumentException("Incompatible shapes"); int w = input.width-1; for( int y = 0; y < input.height; y++ ) { int indexIn = input.sta...
public class class_name { public static void rotateCCW( GrayS64 input , GrayS64 output ) { if( input.width != output.height || input.height != output.width ) throw new IllegalArgumentException("Incompatible shapes"); int w = input.width-1; for( int y = 0; y < input.height; y++ ) { int indexIn = input.sta...
public class class_name { protected Object setAssemblageValue(Class assemblageType, Object assemblage, Object index, Object value) { if (assemblageType.isArray()) { int i = ((Integer) index).intValue(); if (Array.getLength(assemblage) <= i) { Object newAssemblage = Array.newInstance(assemblageType.getCompo...
public class class_name { protected Object setAssemblageValue(Class assemblageType, Object assemblage, Object index, Object value) { if (assemblageType.isArray()) { int i = ((Integer) index).intValue(); if (Array.getLength(assemblage) <= i) { Object newAssemblage = Array.newInstance(assemblageType.getCompo...
public class class_name { public EClass getGCBOX() { if (gcboxEClass == null) { gcboxEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(442); } return gcboxEClass; } }
public class class_name { public EClass getGCBOX() { if (gcboxEClass == null) { gcboxEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(442); // depends on control dependency: [if], data = [none] } return gcboxEClass; } }
public class class_name { boolean isGroupIdSuffixedWithArtifactId() { String grpId = getJavaGroupId(); String artId = getJavaArtifactId(); // Return false if one of them are null... if (grpId == null || artId == null) { return false; } int grpIdLen = grpId.length(); int artIdLen = artId.length()...
public class class_name { boolean isGroupIdSuffixedWithArtifactId() { String grpId = getJavaGroupId(); String artId = getJavaArtifactId(); // Return false if one of them are null... if (grpId == null || artId == null) { return false; // depends on control dependency: [if], data = [none] } int grpI...
public class class_name { @Override public void doRender(final WComponent component, final WebXmlRenderContext renderContext) { WLink link = (WLink) component; XmlStringBuilder xml = renderContext.getWriter(); String text = link.getText(); String targetWindowName = link.getOpenNewWindow() ? link.getTargetWind...
public class class_name { @Override public void doRender(final WComponent component, final WebXmlRenderContext renderContext) { WLink link = (WLink) component; XmlStringBuilder xml = renderContext.getWriter(); String text = link.getText(); String targetWindowName = link.getOpenNewWindow() ? link.getTargetWind...
public class class_name { public IoBuffer encodePacket(Packet packet) { IoBuffer out = null; Header header = packet.getHeader(); int channelId = header.getChannelId(); //log.trace("Channel id: {}", channelId); IRTMPEvent message = packet.getMessage(); if (message i...
public class class_name { public IoBuffer encodePacket(Packet packet) { IoBuffer out = null; Header header = packet.getHeader(); int channelId = header.getChannelId(); //log.trace("Channel id: {}", channelId); IRTMPEvent message = packet.getMessage(); if (message i...
public class class_name { private static double distance(double[] p1, double[] p2) { switch (p1.length) { case 2: return Math.sqrt((p1[0] - p2[0]) * (p1[0] - p2[0]) + (p1[1] - p2[1]) * (p1[1] - p2[1])); case 3: return Math.sqrt((p1[0] - p2[0]) * (p1[0] - p2[0]) + (p1[1] - p2[1]) * (p1[1] - p2[1]) + (p1[2] -...
public class class_name { private static double distance(double[] p1, double[] p2) { switch (p1.length) { case 2: return Math.sqrt((p1[0] - p2[0]) * (p1[0] - p2[0]) + (p1[1] - p2[1]) * (p1[1] - p2[1])); case 3: return Math.sqrt((p1[0] - p2[0]) * (p1[0] - p2[0]) + (p1[1] - p2[1]) * (p1[1] - p2[1]) + (p1[2] -...
public class class_name { public PropertyDataReader forProperty(InternalQName name, int type) { if (nodePropertyReader == null) { nodePropertyReader = new PropertyDataReader(parent, dataManager); } return nodePropertyReader.forProperty(name, type); } }
public class class_name { public PropertyDataReader forProperty(InternalQName name, int type) { if (nodePropertyReader == null) { nodePropertyReader = new PropertyDataReader(parent, dataManager); // depends on control dependency: [if], data = [none] } return nodePropertyReader.forPr...
public class class_name { public void align(Object... o) { int i = 0; String s[] = new String[o.length]; for (int ii = 0; ii < o.length; ii++) { if (o[ii] != null) { s[ii] = o[ii].toString(); } } while (i < s.length && i < maxColumnLength.size()) { int l = (s[i] == null ? 0 : s[i].length()); ...
public class class_name { public void align(Object... o) { int i = 0; String s[] = new String[o.length]; for (int ii = 0; ii < o.length; ii++) { if (o[ii] != null) { s[ii] = o[ii].toString(); } } // depends on control dependency: [if], data = [none] while (i < s.length && i < maxColumnLength.size()) ...
public class class_name { public static String getEmailDomain(final String email) { if (email == null || email.isEmpty()) { return null; } final int atSignIndex = email.indexOf('@'); if (atSignIndex != -1) { return email.substring(atSignIndex + 1); } return null; } }
public class class_name { public static String getEmailDomain(final String email) { if (email == null || email.isEmpty()) { return null; // depends on control dependency: [if], data = [none] } final int atSignIndex = email.indexOf('@'); if (atSignIndex != -1) { return email.substring(atSig...
public class class_name { private static Throwable getLastArgumentIfThrowable(Object... arguments) { if (ArrayUtil.isNotEmpty(arguments) && arguments[arguments.length - 1] instanceof Throwable) { return (Throwable) arguments[arguments.length - 1]; } else { return null; } } }
public class class_name { private static Throwable getLastArgumentIfThrowable(Object... arguments) { if (ArrayUtil.isNotEmpty(arguments) && arguments[arguments.length - 1] instanceof Throwable) { return (Throwable) arguments[arguments.length - 1]; // depends on control dependency: [if], data = [none] } else ...
public class class_name { public void addResponse(RecordResponse response) { if (response.getResponseSize() + getResponseSize() > 248) { throw new IllegalArgumentException(); } if (records == null) { records = new RecordResponse[1]; } else { ...
public class class_name { public void addResponse(RecordResponse response) { if (response.getResponseSize() + getResponseSize() > 248) { throw new IllegalArgumentException(); } if (records == null) { records = new RecordResponse[1]; // depends on control dependency: [if...
public class class_name { @SuppressWarnings("unused") // used by parser public static void removeDuplicatesAndReportErrors( Iterable<CommandTagAttribute> attrs, ErrorReporter errorReporter) { Set<String> seenAttributes = new HashSet<>(); for (Iterator<CommandTagAttribute> iterator = attrs.iterator(); i...
public class class_name { @SuppressWarnings("unused") // used by parser public static void removeDuplicatesAndReportErrors( Iterable<CommandTagAttribute> attrs, ErrorReporter errorReporter) { Set<String> seenAttributes = new HashSet<>(); for (Iterator<CommandTagAttribute> iterator = attrs.iterator(); i...
public class class_name { public static long bytesToLong(byte[] bytes) { assert bytes != null && bytes.length <= 8; final int BYTE_SIZE = 8; long value = 0; for (int i = 0; i < bytes.length; i++) { // shift byte i times, so it gets the correct significance int sh...
public class class_name { public static long bytesToLong(byte[] bytes) { assert bytes != null && bytes.length <= 8; final int BYTE_SIZE = 8; long value = 0; for (int i = 0; i < bytes.length; i++) { // shift byte i times, so it gets the correct significance int sh...
public class class_name { void checkNeedsPropertiesReloading(long now) { if (CACHING_VALIDITY_MS > 0 && now - lastCachedTime > CACHING_VALIDITY_MS) { this.rampUp = owner.getRampUpSeconds(); this.hold = owner.getHoldSeconds(); this.steps = owner.getStepsAsLong(); ...
public class class_name { void checkNeedsPropertiesReloading(long now) { if (CACHING_VALIDITY_MS > 0 && now - lastCachedTime > CACHING_VALIDITY_MS) { this.rampUp = owner.getRampUpSeconds(); // depends on control dependency: [if], data = [none] this.hold = owner.getHoldSeconds(); // depe...
public class class_name { public <E extends Enum> E getEnum(HazelcastProperty property, Class<E> enumClazz) { String value = getString(property); for (E enumConstant : enumClazz.getEnumConstants()) { if (enumConstant.name().equalsIgnoreCase(value)) { return enumConstant; ...
public class class_name { public <E extends Enum> E getEnum(HazelcastProperty property, Class<E> enumClazz) { String value = getString(property); for (E enumConstant : enumClazz.getEnumConstants()) { if (enumConstant.name().equalsIgnoreCase(value)) { return enumConstant; //...
public class class_name { public static String deidentifyRight(String str, int size) { int end = str.length(); int repeat; if (size > str.length()) { repeat = str.length(); } else { repeat = size; } return StringUtils.overlay(str, StringUtils.repeat('*', repeat), end - size, end); } }
public class class_name { public static String deidentifyRight(String str, int size) { int end = str.length(); int repeat; if (size > str.length()) { repeat = str.length(); // depends on control dependency: [if], data = [none] } else { repeat = size; // depends on control dependency: [if], data = [none] ...
public class class_name { public static String quote(String str) { int len = str.length(); StringBuffer buf = new StringBuffer(len+2); buf.append("\""); char c; for (int i=0;i<len;i++) { c = str.charAt(i); if (c == '"' || c == '\\') { buf....
public class class_name { public static String quote(String str) { int len = str.length(); StringBuffer buf = new StringBuffer(len+2); buf.append("\""); char c; for (int i=0;i<len;i++) { c = str.charAt(i); // depends on control dependency: [for], data = [i] ...
public class class_name { public OkRequest<T> send(final CharSequence value) { openOutput(); try { mOutput.write(value.toString()); } catch (IOException e) { deliverError(new ParseError(e)); } return this; } }
public class class_name { public OkRequest<T> send(final CharSequence value) { openOutput(); try { mOutput.write(value.toString()); // depends on control dependency: [try], data = [none] } catch (IOException e) { deliverError(new ParseError(e)); } // depends on ...
public class class_name { @Override protected void _fit(Dataframe trainingData) { AbstractModelParameters modelParameters = knowledgeBase.getModelParameters(); int n = trainingData.size(); int d = trainingData.xColumnSize(); Map<List<Object>, Double> logLikelihoods = modelP...
public class class_name { @Override protected void _fit(Dataframe trainingData) { AbstractModelParameters modelParameters = knowledgeBase.getModelParameters(); int n = trainingData.size(); int d = trainingData.xColumnSize(); Map<List<Object>, Double> logLikelihoods = modelP...
public class class_name { public void extract(@NotNull final SequentialReader reader, @NotNull final Metadata metadata, long length, @Nullable Directory parentDirectory) { IptcDirectory directory = new IptcDirectory(); metadata.addDirectory(directory); if (parentDirectory != null) ...
public class class_name { public void extract(@NotNull final SequentialReader reader, @NotNull final Metadata metadata, long length, @Nullable Directory parentDirectory) { IptcDirectory directory = new IptcDirectory(); metadata.addDirectory(directory); if (parentDirectory != null) ...
public class class_name { public boolean shouldSelectProperty(String property) { // no restriction if (getRoot().eagerLoad || restrictedProperties == null) { return true; } // explicit restriction if (getRoot().eagerLoad || restrictedProperties.contains(property)) { ...
public class class_name { public boolean shouldSelectProperty(String property) { // no restriction if (getRoot().eagerLoad || restrictedProperties == null) { return true; // depends on control dependency: [if], data = [none] } // explicit restriction if (getRoot().ea...
public class class_name { public EList<Short> getValues() { if (values == null) { values = new EDataTypeEList<Short>(Short.class, this, TypesPackage.JVM_SHORT_ANNOTATION_VALUE__VALUES); } return values; } }
public class class_name { public EList<Short> getValues() { if (values == null) { values = new EDataTypeEList<Short>(Short.class, this, TypesPackage.JVM_SHORT_ANNOTATION_VALUE__VALUES); // depends on control dependency: [if], data = [none] } return values; } }
public class class_name { public static double length3D(Geometry geom) { double sum = 0; for (int i = 0; i < geom.getNumGeometries(); i++) { sum += length3D((LineString) geom.getGeometryN(i)); } return sum; } }
public class class_name { public static double length3D(Geometry geom) { double sum = 0; for (int i = 0; i < geom.getNumGeometries(); i++) { sum += length3D((LineString) geom.getGeometryN(i)); // depends on control dependency: [for], data = [i] } return sum; } }
public class class_name { public GetRequestValidatorsResult withItems(RequestValidator... items) { if (this.items == null) { setItems(new java.util.ArrayList<RequestValidator>(items.length)); } for (RequestValidator ele : items) { this.items.add(ele); } r...
public class class_name { public GetRequestValidatorsResult withItems(RequestValidator... items) { if (this.items == null) { setItems(new java.util.ArrayList<RequestValidator>(items.length)); // depends on control dependency: [if], data = [none] } for (RequestValidator ele : items) ...
public class class_name { @Override public void deleteOrReleaseReadLock(final String filename) { if (isMultiChunked(filename)) { int newValue = 0; FileReadLockKey readLockKey = new FileReadLockKey(indexName, filename, affinitySegmentId); boolean done = false; Object lockVal...
public class class_name { @Override public void deleteOrReleaseReadLock(final String filename) { if (isMultiChunked(filename)) { int newValue = 0; FileReadLockKey readLockKey = new FileReadLockKey(indexName, filename, affinitySegmentId); boolean done = false; Object lockVal...
public class class_name { private int classifyTags(IFD ifd, ArrayList<TagValue> oversized, ArrayList<TagValue> undersized) { int tagValueSize = 4; int n = 0; for (TagValue tag : ifd.getMetadata().getTags()) { int tagsize = getTagSize(tag); if (tagsize > tagValueSize) { oversized.add(tag...
public class class_name { private int classifyTags(IFD ifd, ArrayList<TagValue> oversized, ArrayList<TagValue> undersized) { int tagValueSize = 4; int n = 0; for (TagValue tag : ifd.getMetadata().getTags()) { int tagsize = getTagSize(tag); if (tagsize > tagValueSize) { oversized.add(tag...
public class class_name { void waitForReady() { if (!ready) { writeLock(); try { while (!ready) { try { cond.await(5000, TimeUnit.MILLISECONDS); } catch (InterruptedException ie) { } } } finally { writeUnlock(); } } } }
public class class_name { void waitForReady() { if (!ready) { writeLock(); // depends on control dependency: [if], data = [none] try { while (!ready) { try { cond.await(5000, TimeUnit.MILLISECONDS); // depends on control dependency: [try], data = [none] } catch (...
public class class_name { private static Throwable getInnerException(Throwable exception) {// NOPMD final Throwable tmpException = exception; exception = getExceptionCauseUsingWellKnownTypes(tmpException); if (exception == null) { for (CauseMethodName methodName : CauseMethodName.values()) { exception =...
public class class_name { private static Throwable getInnerException(Throwable exception) {// NOPMD final Throwable tmpException = exception; exception = getExceptionCauseUsingWellKnownTypes(tmpException); if (exception == null) { for (CauseMethodName methodName : CauseMethodName.values()) { exception =...
public class class_name { protected TypeData findSubclassTypeData(final Class type) { final Class<? extends Annotation> defaultAnnotation = jsonAnnotation; if (type.getAnnotation(defaultAnnotation) != null) { // current type has annotation, don't find anything, let type data be created return null; } C...
public class class_name { protected TypeData findSubclassTypeData(final Class type) { final Class<? extends Annotation> defaultAnnotation = jsonAnnotation; if (type.getAnnotation(defaultAnnotation) != null) { // current type has annotation, don't find anything, let type data be created return null; // depen...
public class class_name { static void closeStream(BufferedReader br, FileReader fr) { try { if (br != null) br.close(); if (fr != null) fr.close(); } catch (IOException ex) { logger.error(ex.getMessage()); logger.debug("{}"...
public class class_name { static void closeStream(BufferedReader br, FileReader fr) { try { if (br != null) br.close(); if (fr != null) fr.close(); } catch (IOException ex) { logger.error(ex.getMessage()); logger.debug("{}"...
public class class_name { public void selectValue(String value) { String action = SELECTING + value + " in " + prettyOutput(); String expected = prettyOutputStart() + PRESENT_DISPLAYED_AND_ENABLED + value + SELECTED; try { if (isNotPresentDisplayedEnabledSelect(action, expected)) { ...
public class class_name { public void selectValue(String value) { String action = SELECTING + value + " in " + prettyOutput(); String expected = prettyOutputStart() + PRESENT_DISPLAYED_AND_ENABLED + value + SELECTED; try { if (isNotPresentDisplayedEnabledSelect(action, expected)) { ...
public class class_name { public static Document toDocument(String xml) { try { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory .newInstance(); documentBuilderFactory.setNamespaceAware(true); documentBuilderFactory.setIgnoringElementContentWhitespace(true); documentBuilderFac...
public class class_name { public static Document toDocument(String xml) { try { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory .newInstance(); documentBuilderFactory.setNamespaceAware(true); // depends on control dependency: [try], data = [none] documentBuilderFactory.setIgnori...
public class class_name { public void start() throws SlickException { SwingUtilities.invokeLater(new Runnable() { public void run() { try { Input.disableControllers(); try { Display.setParent(CanvasGameContainer.this); } catch (LWJGLException e) { throw new SlickExcep...
public class class_name { public void start() throws SlickException { SwingUtilities.invokeLater(new Runnable() { public void run() { try { Input.disableControllers(); // depends on control dependency: [try], data = [none] try { Display.setParent(CanvasGameContainer.this); // dep...
public class class_name { private static boolean load(String name, boolean mustSucceed, boolean useJavaLib) { if (s_loadedLibs.contains(name)) { return true; } if (! VoltDB.getLoadLibVOLTDB()) { return false; } test64bit(); StringBuilder msgBuilde...
public class class_name { private static boolean load(String name, boolean mustSucceed, boolean useJavaLib) { if (s_loadedLibs.contains(name)) { return true; // depends on control dependency: [if], data = [none] } if (! VoltDB.getLoadLibVOLTDB()) { return false; // depen...
public class class_name { public FacesMessage getFacesMessage() { FacesMessage result = this.message; if (null == result && null != this.messages && !this.messages.isEmpty()) { result = messages.iterator().next(); } return result; } }
public class class_name { public FacesMessage getFacesMessage() { FacesMessage result = this.message; if (null == result && null != this.messages && !this.messages.isEmpty()) { result = messages.iterator().next(); // depends on control dependency: [if], data = [none] } retur...
public class class_name { public void update(int delta) { if ((sprite == null) && (defaultImageName != null)) { loadSystemParticleImage(); } removeMe.clear(); ArrayList emitters = new ArrayList(this.emitters); for (int i=0;i<emitters.size();i++) { ParticleEmitter emitter = (ParticleEmitter) ...
public class class_name { public void update(int delta) { if ((sprite == null) && (defaultImageName != null)) { loadSystemParticleImage(); // depends on control dependency: [if], data = [none] } removeMe.clear(); ArrayList emitters = new ArrayList(this.emitters); for (int i=0;i<emitters.size();i...
public class class_name { protected void putAdviceResult(AspectAdviceRule aspectAdviceRule, Object adviceActionResult) { if (aspectAdviceResult == null) { aspectAdviceResult = new AspectAdviceResult(); } aspectAdviceResult.putAdviceResult(aspectAdviceRule, adviceActionResult); }...
public class class_name { protected void putAdviceResult(AspectAdviceRule aspectAdviceRule, Object adviceActionResult) { if (aspectAdviceResult == null) { aspectAdviceResult = new AspectAdviceResult(); // depends on control dependency: [if], data = [none] } aspectAdviceResult.putAdv...
public class class_name { @Override public final Scene moveToTop(final Layer layer) { if ((null != layer) && (LienzoCore.IS_CANVAS_SUPPORTED)) { final int size = getElement().getChildCount(); if (size < 2) { return this; } ...
public class class_name { @Override public final Scene moveToTop(final Layer layer) { if ((null != layer) && (LienzoCore.IS_CANVAS_SUPPORTED)) { final int size = getElement().getChildCount(); if (size < 2) { return this; // depends on control...
public class class_name { public static String unescape(String theValue) { if (theValue == null) { return null; } if (theValue.indexOf('\\') == -1) { return theValue; } StringBuilder b = new StringBuilder(); for (int i = 0; i < theValue.length(); i++) { char next = theValue.charAt(i); if (nex...
public class class_name { public static String unescape(String theValue) { if (theValue == null) { return null; // depends on control dependency: [if], data = [none] } if (theValue.indexOf('\\') == -1) { return theValue; // depends on control dependency: [if], data = [none] } StringBuilder b = new Str...
public class class_name { public List<String> getSupportedProperties(LdapEntity ldapEntity, List<String> propNames) { List<String> prop = new ArrayList<String>(); for (String propName : propNames) { if (propName.equals(SchemaConstants.VALUE_ALL_PROPERTIES)) { prop.add(prop...
public class class_name { public List<String> getSupportedProperties(LdapEntity ldapEntity, List<String> propNames) { List<String> prop = new ArrayList<String>(); for (String propName : propNames) { if (propName.equals(SchemaConstants.VALUE_ALL_PROPERTIES)) { prop.add(prop...
public class class_name { public MessageBean setLocation(final Element elem) { final MessageBean ret = new MessageBean(this); final String xtrf = elem.getAttribute(ATTRIBUTE_NAME_XTRF); if (!xtrf.isEmpty()) { ret.srcFile = toURI(xtrf); } final String xtrc = elem.getA...
public class class_name { public MessageBean setLocation(final Element elem) { final MessageBean ret = new MessageBean(this); final String xtrf = elem.getAttribute(ATTRIBUTE_NAME_XTRF); if (!xtrf.isEmpty()) { ret.srcFile = toURI(xtrf); // depends on control dependency: [if], data = ...
public class class_name { private static String createIfNeeded(String dir) { File f = new File(dir); if (f.exists()) { return dir; } else { boolean success = f.mkdirs(); if (success) return dir; else return null; ...
public class class_name { private static String createIfNeeded(String dir) { File f = new File(dir); if (f.exists()) { return dir; // depends on control dependency: [if], data = [none] } else { boolean success = f.mkdirs(); if (success) return...
public class class_name { private void copyPropertiesOverParameters(Map<String, String> parameters) { Properties properties = System.getProperties(); for (Object object : properties.keySet()) { String key = (String) object; if (key.startsWith(SYSTEM_PROPERTY_PREFIX)) { ...
public class class_name { private void copyPropertiesOverParameters(Map<String, String> parameters) { Properties properties = System.getProperties(); for (Object object : properties.keySet()) { String key = (String) object; if (key.startsWith(SYSTEM_PROPERTY_PREFIX)) { ...
public class class_name { public static ValueMatcher makeValueMatcherGeneric(DimensionSelector selector, Predicate<String> predicate) { int cardinality = selector.getValueCardinality(); if (cardinality >= 0 && selector.nameLookupPossibleInAdvance()) { return makeDictionaryEncodedValueMatcherGeneric(sel...
public class class_name { public static ValueMatcher makeValueMatcherGeneric(DimensionSelector selector, Predicate<String> predicate) { int cardinality = selector.getValueCardinality(); if (cardinality >= 0 && selector.nameLookupPossibleInAdvance()) { return makeDictionaryEncodedValueMatcherGeneric(sel...
public class class_name { public IAtomContainer generate(IAtomContainerSet atomContainers) throws CDKException { int iteration = 0; boolean structureFound = false; do { iteration++; boolean bondFormed; do { bondFormed = false; ...
public class class_name { public IAtomContainer generate(IAtomContainerSet atomContainers) throws CDKException { int iteration = 0; boolean structureFound = false; do { iteration++; boolean bondFormed; do { bondFormed = false; ...
public class class_name { public HttpResponse syncRequest(String host,int port,HttpRequest request,long waiteTimeMills) { HttpResponse response=null; synchronized (request) { if(response==null) { HttpListener listener=new HttpListener(request); NettyClient client=new NettyClient(config,new InetSocke...
public class class_name { public HttpResponse syncRequest(String host,int port,HttpRequest request,long waiteTimeMills) { HttpResponse response=null; synchronized (request) { if(response==null) { HttpListener listener=new HttpListener(request); NettyClient client=new NettyClient(config,new InetSocke...
public class class_name { @Nonnull public static final <T extends AbstractSingleton> T getSingleton (@Nonnull final IScope aScope, @Nonnull final Class <T> aClass) { ValueEnforcer.notNull (aScope, "aScope"); ValueEnforcer.notNull (aClass, ...
public class class_name { @Nonnull public static final <T extends AbstractSingleton> T getSingleton (@Nonnull final IScope aScope, @Nonnull final Class <T> aClass) { ValueEnforcer.notNull (aScope, "aScope"); ValueEnforcer.notNull (aClass, ...
public class class_name { public boolean intersectsCuboid(Vector3f[] vertices, float x, float y, float z) { if (vertices.length != 8) { throw new IllegalArgumentException("A cuboid has 8 vertices, not " + vertices.length); } planes: for (int i = 0; i < 6; i++) { ...
public class class_name { public boolean intersectsCuboid(Vector3f[] vertices, float x, float y, float z) { if (vertices.length != 8) { throw new IllegalArgumentException("A cuboid has 8 vertices, not " + vertices.length); } planes: for (int i = 0; i < 6; i++) { ...
public class class_name { public static void carryWithRequest(RpcInvokeContext context, SofaRequest request) { if (context != null) { Map<String, String> requestBaggage = context.getAllRequestBaggage(); if (CommonUtils.isNotEmpty(requestBaggage)) { // 需要透传 request.addReq...
public class class_name { public static void carryWithRequest(RpcInvokeContext context, SofaRequest request) { if (context != null) { Map<String, String> requestBaggage = context.getAllRequestBaggage(); if (CommonUtils.isNotEmpty(requestBaggage)) { // 需要透传 request.addReq...
public class class_name { private static Class<?> loadFinalizer(FinalizerLoader... loaders) { for (FinalizerLoader loader : loaders) { Class<?> finalizer = loader.loadFinalizer(); if (finalizer != null) { return finalizer; } } throw new AssertionError(); } }
public class class_name { private static Class<?> loadFinalizer(FinalizerLoader... loaders) { for (FinalizerLoader loader : loaders) { Class<?> finalizer = loader.loadFinalizer(); if (finalizer != null) { return finalizer; // depends on control dependency: [if], data = [none] } } ...
public class class_name { public BigDecimal negate() { if (intCompact == INFLATED) { return new BigDecimal(intVal.negate(), INFLATED, scale, precision); } else { return valueOf(-intCompact, scale, precision); } } }
public class class_name { public BigDecimal negate() { if (intCompact == INFLATED) { return new BigDecimal(intVal.negate(), INFLATED, scale, precision); // depends on control dependency: [if], data = [none] } else { return valueOf(-intCompact, scale, precision); // depends on co...
public class class_name { private Set<String> getConditionsSet(List<Function> atoms, AliasIndex index, boolean processShared) { Set<String> conditions = new LinkedHashSet<>(); if (processShared) { // guohui: After normalization, do we have shared variables? // TODO: should we remove this ?? Set<Variable>...
public class class_name { private Set<String> getConditionsSet(List<Function> atoms, AliasIndex index, boolean processShared) { Set<String> conditions = new LinkedHashSet<>(); if (processShared) { // guohui: After normalization, do we have shared variables? // TODO: should we remove this ?? Set<Variable>...
public class class_name { public boolean assignParsedElement(Concept parsedConcept, String syntaxElementName, ISyntaxElement syntaxElement) throws ModelException { if (syntaxElementName.equalsIgnoreCase(XMLSyntax.URI()) && syntaxElement instanceof SemanticIdentifier) { parsedConcept.set...
public class class_name { public boolean assignParsedElement(Concept parsedConcept, String syntaxElementName, ISyntaxElement syntaxElement) throws ModelException { if (syntaxElementName.equalsIgnoreCase(XMLSyntax.URI()) && syntaxElement instanceof SemanticIdentifier) { parsedConcept.set...
public class class_name { private static Map<Locale, String> getAllPageDocs(IAnnotationBinding[] annotations) { // all @PageDoc or @Page annotations including annotations contained in @PageDocs or @Page List<IAnnotationBinding> allPageAnnotations = new ArrayList<>(2); List<Class<?>> singlePage...
public class class_name { private static Map<Locale, String> getAllPageDocs(IAnnotationBinding[] annotations) { // all @PageDoc or @Page annotations including annotations contained in @PageDocs or @Page List<IAnnotationBinding> allPageAnnotations = new ArrayList<>(2); List<Class<?>> singlePage...
public class class_name { public CreateInstanceResponse createInstance(CreateInstanceRequest request) throws BceClientException { checkNotNull(request, "request should not be null."); if (Strings.isNullOrEmpty(request.getClientToken())) { request.setClientToken(this.generateClie...
public class class_name { public CreateInstanceResponse createInstance(CreateInstanceRequest request) throws BceClientException { checkNotNull(request, "request should not be null."); if (Strings.isNullOrEmpty(request.getClientToken())) { request.setClientToken(this.generateClie...
public class class_name { @Override public final List<CTDPt> getDPtListFromCTSer(final Object ctObjSer) { if (ctObjSer instanceof CTPieSer) { List<CTDPt> dptList = ((CTPieSer) ctObjSer).getDPtList(); if (dptList == null) { // return empty list instead of null for pie. // this will ensure pie cre...
public class class_name { @Override public final List<CTDPt> getDPtListFromCTSer(final Object ctObjSer) { if (ctObjSer instanceof CTPieSer) { List<CTDPt> dptList = ((CTPieSer) ctObjSer).getDPtList(); if (dptList == null) { // return empty list instead of null for pie. // this will ensure pie cre...
public class class_name { @Override protected ResolutionResult resolveDependencies(String projectFolder, String topLevelFolder, Set<String> csprojFiles) { if (this.nugetRestoreDependencies) { this.resolveCollector.executeRestore(projectFolder, csprojFiles); Collection<AgentProjectIn...
public class class_name { @Override protected ResolutionResult resolveDependencies(String projectFolder, String topLevelFolder, Set<String> csprojFiles) { if (this.nugetRestoreDependencies) { this.resolveCollector.executeRestore(projectFolder, csprojFiles); // depends on control dependency: [if...
public class class_name { public void setTaskFailureException(Throwable taskFailureException) { if (!this.contains(ConfigurationKeys.TASK_FAILURE_EXCEPTION_KEY)) { this.setProp(ConfigurationKeys.TASK_FAILURE_EXCEPTION_KEY, Throwables.getStackTraceAsString(taskFailureException)); } } }
public class class_name { public void setTaskFailureException(Throwable taskFailureException) { if (!this.contains(ConfigurationKeys.TASK_FAILURE_EXCEPTION_KEY)) { this.setProp(ConfigurationKeys.TASK_FAILURE_EXCEPTION_KEY, Throwables.getStackTraceAsString(taskFailureException)); // depends on contr...
public class class_name { public ReservedInstancesModification withModificationResults(ReservedInstancesModificationResult... modificationResults) { if (this.modificationResults == null) { setModificationResults(new com.amazonaws.internal.SdkInternalList<ReservedInstancesModificationResult>(modific...
public class class_name { public ReservedInstancesModification withModificationResults(ReservedInstancesModificationResult... modificationResults) { if (this.modificationResults == null) { setModificationResults(new com.amazonaws.internal.SdkInternalList<ReservedInstancesModificationResult>(modific...
public class class_name { public Xml read(String xmlPathQuery, boolean captureContent) { XmlPath xmlPath = XmlPathParser.parse(xmlPathQuery); Xml doc = new Xml(); boolean record = false; int levelIndex = 0; XmlNode node; while((node = pullXmlNode()) != null) { ...
public class class_name { public Xml read(String xmlPathQuery, boolean captureContent) { XmlPath xmlPath = XmlPathParser.parse(xmlPathQuery); Xml doc = new Xml(); boolean record = false; int levelIndex = 0; XmlNode node; while((node = pullXmlNode()) != null) { ...
public class class_name { private static String[] getPathStrings(String commaSeparatedPaths) { int length = commaSeparatedPaths.length(); int curlyOpen = 0; int pathStart = 0; boolean globPattern = false; List<String> pathStrings = new ArrayList<String>(); for (int i=0; i<length; i++) { ...
public class class_name { private static String[] getPathStrings(String commaSeparatedPaths) { int length = commaSeparatedPaths.length(); int curlyOpen = 0; int pathStart = 0; boolean globPattern = false; List<String> pathStrings = new ArrayList<String>(); for (int i=0; i<length; i++) { ...
public class class_name { private ResultPoint[] detectSolid1(ResultPoint[] cornerPoints) { // 0 2 // 1 3 ResultPoint pointA = cornerPoints[0]; ResultPoint pointB = cornerPoints[1]; ResultPoint pointC = cornerPoints[3]; ResultPoint pointD = cornerPoints[2]; int trAB = transitionsBetween(p...
public class class_name { private ResultPoint[] detectSolid1(ResultPoint[] cornerPoints) { // 0 2 // 1 3 ResultPoint pointA = cornerPoints[0]; ResultPoint pointB = cornerPoints[1]; ResultPoint pointC = cornerPoints[3]; ResultPoint pointD = cornerPoints[2]; int trAB = transitionsBetween(p...
public class class_name { public static DataSource create(DataSource ds, Log log) { if (ds == null) { throw new IllegalArgumentException(); } if (log == null) { log = LogFactory.getLog(LoggingDataSource.class); } if (!log.isDebugEnabled()) { ...
public class class_name { public static DataSource create(DataSource ds, Log log) { if (ds == null) { throw new IllegalArgumentException(); } if (log == null) { log = LogFactory.getLog(LoggingDataSource.class); // depends on control dependency: [if], data = [none] ...
public class class_name { public static void main(String args[]) { // Associate a new Context with this thread Context cx = Context.enter(); try { // Initialize the standard objects (Object, Function, etc.) // This must be done before scripts can be executed. ...
public class class_name { public static void main(String args[]) { // Associate a new Context with this thread Context cx = Context.enter(); try { // Initialize the standard objects (Object, Function, etc.) // This must be done before scripts can be executed. ...
public class class_name { public static boolean isCompressed(byte[] bytes) { if ((bytes == null) || (bytes.length < 2)) { return false; } else { return ((bytes[0] == (byte) (GZIPInputStream.GZIP_MAGIC)) && (bytes[1] == (byte) (GZIPInputStream.GZIP_MAGIC >> 8))); } } }
public class class_name { public static boolean isCompressed(byte[] bytes) { if ((bytes == null) || (bytes.length < 2)) { return false; // depends on control dependency: [if], data = [none] } else { return ((bytes[0] == (byte) (GZIPInputStream.GZIP_MAGIC)) && (bytes[1] == (byte) (GZIPInpu...
public class class_name { public void updateVariableName(String varName, String withName) { SDVariable oldVarNameRef = getVariable(varName); variableMap.remove(oldVarNameRef.getVarName()); val oldVarName = varName; oldVarNameRef.setVarName(withName); variableMap.put(withName, ol...
public class class_name { public void updateVariableName(String varName, String withName) { SDVariable oldVarNameRef = getVariable(varName); variableMap.remove(oldVarNameRef.getVarName()); val oldVarName = varName; oldVarNameRef.setVarName(withName); variableMap.put(withName, ol...
public class class_name { protected boolean load(URI itemToLoad, boolean fallbackLoad) { InputStream is = null; ByteArrayOutputStream stream = new ByteArrayOutputStream(); try { URLConnection conn; String proxyPort = this.properties.get("proxy.port"); String...
public class class_name { protected boolean load(URI itemToLoad, boolean fallbackLoad) { InputStream is = null; ByteArrayOutputStream stream = new ByteArrayOutputStream(); try { URLConnection conn; String proxyPort = this.properties.get("proxy.port"); String...
public class class_name { public void adjustChildren(int widthMeasureSpec, int heightMeasureSpec) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "adjustChildren: " + mHost + " widthMeasureSpec: " + View.MeasureSpec.toString(widthMeasureSpec) + " heightMeasureSpec: " ...
public class class_name { public void adjustChildren(int widthMeasureSpec, int heightMeasureSpec) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "adjustChildren: " + mHost + " widthMeasureSpec: " + View.MeasureSpec.toString(widthMeasureSpec) + " heightMeasureSpec: " ...
public class class_name { public int compareTo(Object object) { if (object == null || !(object instanceof Named)) { return -1; } else { Named vo = (Named) object; return getName().compareTo(vo.getName()); } } }
public class class_name { public int compareTo(Object object) { if (object == null || !(object instanceof Named)) { return -1; // depends on control dependency: [if], data = [none] } else { Named vo = (Named) object; return getName().co...
public class class_name { public static MultiLineString fromLineStrings(@NonNull List<LineString> lineStrings, @Nullable BoundingBox bbox) { List<List<Point>> coordinates = new ArrayList<>(lineStrings.size()); for (LineString lineString : lineStrings) { coo...
public class class_name { public static MultiLineString fromLineStrings(@NonNull List<LineString> lineStrings, @Nullable BoundingBox bbox) { List<List<Point>> coordinates = new ArrayList<>(lineStrings.size()); for (LineString lineString : lineStrings) { coo...
public class class_name { public void removeTrailingEmptyLines () { Line aLine = m_aLineTail; while (aLine != null && aLine.m_bIsEmpty) { removeLine (aLine); aLine = m_aLineTail; } } }
public class class_name { public void removeTrailingEmptyLines () { Line aLine = m_aLineTail; while (aLine != null && aLine.m_bIsEmpty) { removeLine (aLine); // depends on control dependency: [while], data = [(aLine] aLine = m_aLineTail; // depends on control dependency: [while], data = [none...
public class class_name { public List<String> getEffectiveAccountLineage() { if (accountLineage == null) { if (effectiveAccount != null) { try { accountLineage = accountsDao.getAccountLineage(effectiveAccount); } catch (AccountHierarchyDepthCrosse...
public class class_name { public List<String> getEffectiveAccountLineage() { if (accountLineage == null) { if (effectiveAccount != null) { try { accountLineage = accountsDao.getAccountLineage(effectiveAccount); // depends on control dependency: [try], data = [non...
public class class_name { private void addPredicates(List<Predicate> newPredicates) { for(Predicate newPredicate : newPredicates) { if(this.predicates == null) { this.predicates = newPredicate; } else { this.predicates = new And(this.predicates, newPredicate); } } } }
public class class_name { private void addPredicates(List<Predicate> newPredicates) { for(Predicate newPredicate : newPredicates) { if(this.predicates == null) { this.predicates = newPredicate; // depends on control dependency: [if], data = [none] } else { this.predicates = new And(this...
public class class_name { public static String read(Reader reader) { StringWriter writer = new StringWriter(); try { char[] buffer = new char[DEFAULT_BUFFER_SIZE]; int n; while (-1 != (n = reader.read(buffer))) { writer.write(buffer, 0, n); ...
public class class_name { public static String read(Reader reader) { StringWriter writer = new StringWriter(); try { char[] buffer = new char[DEFAULT_BUFFER_SIZE]; int n; while (-1 != (n = reader.read(buffer))) { writer.write(buffer, 0, n); // depends...
public class class_name { private String formatPriority(Priority value) { String result = null; if (value != null) { String[] priorityTypes = LocaleData.getStringArray(m_locale, LocaleData.PRIORITY_TYPES); int priority = value.getValue(); if (priority < Priority.LOWEST)...
public class class_name { private String formatPriority(Priority value) { String result = null; if (value != null) { String[] priorityTypes = LocaleData.getStringArray(m_locale, LocaleData.PRIORITY_TYPES); int priority = value.getValue(); if (priority < Priority.LOWEST)...
public class class_name { public static Duration getAdjustedDuration(ProjectFile file, int duration, TimeUnit timeUnit) { Duration result; switch (timeUnit) { case MINUTES: case ELAPSED_MINUTES: { double totalMinutes = duration / 10d; result = Dur...
public class class_name { public static Duration getAdjustedDuration(ProjectFile file, int duration, TimeUnit timeUnit) { Duration result; switch (timeUnit) { case MINUTES: case ELAPSED_MINUTES: { double totalMinutes = duration / 10d; result = Dur...
public class class_name { @Override public void handleRequest(final Request request) { super.handleRequest(request); if (isPresent(request)) { if (getExpandMode() != ExpandMode.NONE) { handleExpansionRequest(request); } if (getSelectMode() != SelectMode.NONE) { handleSelectionRequest(request); ...
public class class_name { @Override public void handleRequest(final Request request) { super.handleRequest(request); if (isPresent(request)) { if (getExpandMode() != ExpandMode.NONE) { handleExpansionRequest(request); // depends on control dependency: [if], data = [none] } if (getSelectMode() != Se...
public class class_name { public String[] removeFromStringArray(String[] strArray, String str) { String[] result = null; if (strArray != null && strArray.length > 0) { List<String> list = new ArrayList<String>(); for (int i=0; i < strArray.length; i++) { if (!str...
public class class_name { public String[] removeFromStringArray(String[] strArray, String str) { String[] result = null; if (strArray != null && strArray.length > 0) { List<String> list = new ArrayList<String>(); for (int i=0; i < strArray.length; i++) { if (!str...
public class class_name { public void setSupportedLocales(java.util.Collection<String> supportedLocales) { if (supportedLocales == null) { this.supportedLocales = null; return; } this.supportedLocales = new java.util.ArrayList<String>(supportedLocales); } }
public class class_name { public void setSupportedLocales(java.util.Collection<String> supportedLocales) { if (supportedLocales == null) { this.supportedLocales = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { public static synchronized CatalogResolver getCatalogResolver() { if (catalogResolver == null) { final CatalogManager manager = new CatalogManager(); manager.setIgnoreMissingProperties(true); manager.setUseStaticCatalog(false); // We'll use a privat...
public class class_name { public static synchronized CatalogResolver getCatalogResolver() { if (catalogResolver == null) { final CatalogManager manager = new CatalogManager(); manager.setIgnoreMissingProperties(true); // depends on control dependency: [if], data = [none] man...
public class class_name { @Override public List<String> toMessageList(Locale locale, UserMessages messages) { assertArgumentNotNull("locale", locale); assertArgumentNotNull("errors", messages); if (messages.isEmpty()) { return Collections.emptyList(); } final Lis...
public class class_name { @Override public List<String> toMessageList(Locale locale, UserMessages messages) { assertArgumentNotNull("locale", locale); assertArgumentNotNull("errors", messages); if (messages.isEmpty()) { return Collections.emptyList(); // depends on control depen...
public class class_name { public static BigDecimal atan2(BigDecimal y, BigDecimal x, MathContext mathContext) { checkMathContext(mathContext); MathContext mc = new MathContext(mathContext.getPrecision() + 3, mathContext.getRoundingMode()); if (x.signum() > 0) { // x > 0 return atan(y.divide(x, mc), mathConte...
public class class_name { public static BigDecimal atan2(BigDecimal y, BigDecimal x, MathContext mathContext) { checkMathContext(mathContext); MathContext mc = new MathContext(mathContext.getPrecision() + 3, mathContext.getRoundingMode()); if (x.signum() > 0) { // x > 0 return atan(y.divide(x, mc), mathConte...
public class class_name { public PoolStopResizeOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) { if (ifUnmodifiedSince == null) { this.ifUnmodifiedSince = null; } else { this.ifUnmodifiedSince = new DateTimeRfc1123(ifUnmodifiedSince); } return this; ...
public class class_name { public PoolStopResizeOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) { if (ifUnmodifiedSince == null) { this.ifUnmodifiedSince = null; // depends on control dependency: [if], data = [none] } else { this.ifUnmodifiedSince = new DateTimeRfc1123(...
public class class_name { @Override public void deFilter(byte[] line, byte[] previousLine, int sampleBitCount) throws PngException { PngFilterType filterType = PngFilterType.forValue(line[0]); line[0] = 0; PngFilterType previousFilterType = PngFilterType.forValue(previousLine[0]); previousLine[0] = 0; swi...
public class class_name { @Override public void deFilter(byte[] line, byte[] previousLine, int sampleBitCount) throws PngException { PngFilterType filterType = PngFilterType.forValue(line[0]); line[0] = 0; PngFilterType previousFilterType = PngFilterType.forValue(previousLine[0]); previousLine[0] = 0; swi...
public class class_name { @Override public Map<Integer, Integer> pPredecessors(int partition) { Map<Integer, Integer> predecessors = new TreeMap<Integer, Integer>(); UnmodifiableIterator<Map.Entry<Integer,Integer>> iter = m_tokensMap.get().entrySet().iterator(); Set<Integer> pTokens = new H...
public class class_name { @Override public Map<Integer, Integer> pPredecessors(int partition) { Map<Integer, Integer> predecessors = new TreeMap<Integer, Integer>(); UnmodifiableIterator<Map.Entry<Integer,Integer>> iter = m_tokensMap.get().entrySet().iterator(); Set<Integer> pTokens = new H...
public class class_name { private InsnList getReturnTraceInstructions() { InsnList il = new InsnList(); int retunedVariablePosition = getFistAvailablePosition(); il.add(TreeInstructions.getStoreInst(this.methodReturnType, retunedVariablePosition)); this.variableCreated(this.methodRet...
public class class_name { private InsnList getReturnTraceInstructions() { InsnList il = new InsnList(); int retunedVariablePosition = getFistAvailablePosition(); il.add(TreeInstructions.getStoreInst(this.methodReturnType, retunedVariablePosition)); this.variableCreated(this.methodRet...
public class class_name { public static boolean isvalidCard15(String idCard) { if (CHINA_ID_MIN_LENGTH != idCard.length()) { return false; } if (Validator.isNumber(idCard)) { // 省份 String proCode = idCard.substring(0, 2); if (null == cityCodes.get(proCode)) { return false; } //校...
public class class_name { public static boolean isvalidCard15(String idCard) { if (CHINA_ID_MIN_LENGTH != idCard.length()) { return false; // depends on control dependency: [if], data = [none] } if (Validator.isNumber(idCard)) { // 省份 String proCode = idCard.substring(0, 2); if (null == cityCo...
public class class_name { private static int getYIndex(PatternFinderUser def, int y, Segment<PrimitiveParameter> lastMatch) { int skipEnd = def.getSkipEnd(); if (lastMatch != null && skipEnd > 0) { return Math.max(y, lastMatch.getLastIndex() + skipEnd); } else if (lastMa...
public class class_name { private static int getYIndex(PatternFinderUser def, int y, Segment<PrimitiveParameter> lastMatch) { int skipEnd = def.getSkipEnd(); if (lastMatch != null && skipEnd > 0) { return Math.max(y, lastMatch.getLastIndex() + skipEnd); // depends on control dep...
public class class_name { private static void logVersionWarnings(String label1, String version1, String label2, String version2) { if (version1 == null) { if (version2 != null) { warning(null, "Unknown version", " for {}, version for {} is '{}'", new Object[] { label1, label2, version2 }); } } else...
public class class_name { private static void logVersionWarnings(String label1, String version1, String label2, String version2) { if (version1 == null) { if (version2 != null) { warning(null, "Unknown version", " for {}, version for {} is '{}'", new Object[] { label1, label2, version2 }); } } else...
public class class_name { private int findElementOrEmpty(int element) { assert element >= 0; int index = toIndex(IntHashCode.hashCode(element)); int offset = 1; while (cells[index] != EMPTY) { // element found! if (cells[index] == element) { return index; } ...
public class class_name { private int findElementOrEmpty(int element) { assert element >= 0; int index = toIndex(IntHashCode.hashCode(element)); int offset = 1; while (cells[index] != EMPTY) { // element found! if (cells[index] == element) { return index; // depends on ...
public class class_name { public SIBusMessage next() throws SISessionUnavailableException, SISessionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserSession.tc.isEntryEnabled()) SibTr.entry(Co...
public class class_name { public SIBusMessage next() throws SISessionUnavailableException, SISessionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && CoreSPIBrowserSession.tc.isEntryEnabled()) SibTr.entry(Co...
public class class_name { private void uninstall(EJBModuleMetaDataImpl mmd, boolean unbindNow) throws RuntimeWarning //d210058 {//d130898 final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "uninstall", mmd.getJ2EEName()); ...
public class class_name { private void uninstall(EJBModuleMetaDataImpl mmd, boolean unbindNow) throws RuntimeWarning //d210058 {//d130898 final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "uninstall", mmd.getJ2EEName()); ...
public class class_name { final void close(boolean allMenusAreClosing) { if (mIsClosing) return; mIsClosing = true; for (WeakReference<MenuPresenter> ref : mPresenters) { final MenuPresenter presenter = ref.get(); if (presenter == null) { mPresenters.rem...
public class class_name { final void close(boolean allMenusAreClosing) { if (mIsClosing) return; mIsClosing = true; for (WeakReference<MenuPresenter> ref : mPresenters) { final MenuPresenter presenter = ref.get(); if (presenter == null) { mPresenters.rem...
public class class_name { @Nonnull public static InputStreamAndCharset getInputStreamAndCharsetFromBOM (@Nonnull @WillNotClose final InputStream aIS) { ValueEnforcer.notNull (aIS, "InputStream"); // Check for BOM final int nMaxBOMBytes = EUnicodeBOM.getMaximumByteCount (); @WillNotClose final ...
public class class_name { @Nonnull public static InputStreamAndCharset getInputStreamAndCharsetFromBOM (@Nonnull @WillNotClose final InputStream aIS) { ValueEnforcer.notNull (aIS, "InputStream"); // Check for BOM final int nMaxBOMBytes = EUnicodeBOM.getMaximumByteCount (); @WillNotClose final ...
public class class_name { private static void inlineImgNodes(final Document doc, final String basePath) { // handle null inputs if (doc == null) return; final String fixedBasePath = basePath == null ? "" : basePath; final List<Node> imageNodes = XMLUtilities.getChildNodes(doc.getDocum...
public class class_name { private static void inlineImgNodes(final Document doc, final String basePath) { // handle null inputs if (doc == null) return; final String fixedBasePath = basePath == null ? "" : basePath; final List<Node> imageNodes = XMLUtilities.getChildNodes(doc.getDocum...
public class class_name { public static void log(@Nonnull Logger logger, @Nonnull LogLevel level, @Nonnull String format, @Nullable Object arg) { if (logger instanceof LocationAwareLogger) { log((LocationAwareLogger) logger, level, FQCN, null, format, new Object[]{arg}, null); } else if (tr...
public class class_name { public static void log(@Nonnull Logger logger, @Nonnull LogLevel level, @Nonnull String format, @Nullable Object arg) { if (logger instanceof LocationAwareLogger) { log((LocationAwareLogger) logger, level, FQCN, null, format, new Object[]{arg}, null); // depends on control...
public class class_name { public void marshall(UpdateAccountRequest updateAccountRequest, ProtocolMarshaller protocolMarshaller) { if (updateAccountRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(UpdateAccountRequest updateAccountRequest, ProtocolMarshaller protocolMarshaller) { if (updateAccountRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...