code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static void addSuppressed(Throwable owner, Throwable add) { try { Method method = owner.getClass().getMethod("addSuppressed", Throwable.class); method.invoke(owner, add); } catch (NoSuchMethodException e) { // ignore, will happen for JRE < 1.7 } catch (SecurityException ...
public class class_name { public static void addSuppressed(Throwable owner, Throwable add) { try { Method method = owner.getClass().getMethod("addSuppressed", Throwable.class); method.invoke(owner, add); // depends on control dependency: [try], data = [none] } catch (NoSuchMethodException e) { // ignore, ...
public class class_name { public void release() { CounterLock lock; synchronized (DataStore.class) { lock = FILE_LOCKS.get(file); if(lock == null) { LOG.error("Trying to release unlocked file {}", file); return; } lock.dec(); if(lock.counter == 0) { FILE...
public class class_name { public void release() { CounterLock lock; synchronized (DataStore.class) { lock = FILE_LOCKS.get(file); if(lock == null) { LOG.error("Trying to release unlocked file {}", file); // depends on control dependency: [if], data = [none] return; // depends on co...
public class class_name { public static String getClassName(Class<?> cls) { if (cls.isMemberClass()) { String name = cls.getName(); name = StringUtils.substringAfterLast(name, PACKAGE_SEPARATOR); return name; } return cls.getSimpleName(); } }
public class class_name { public static String getClassName(Class<?> cls) { if (cls.isMemberClass()) { String name = cls.getName(); name = StringUtils.substringAfterLast(name, PACKAGE_SEPARATOR); // depends on control dependency: [if], data = [none] return name; // depends o...
public class class_name { public MethodFilter build() { if(filters.isEmpty()) { throw new IllegalStateException("No filter specified."); } if(filters.size() == 1) { return filters.get(0); } MethodFilter[] methodFilters = new MethodFilter[filters.size()]; ...
public class class_name { public MethodFilter build() { if(filters.isEmpty()) { throw new IllegalStateException("No filter specified."); } if(filters.size() == 1) { return filters.get(0); // depends on control dependency: [if], data = [none] } MethodFilte...
public class class_name { protected ImageDTO extractOneImageFromCurrentCursor(Cursor cursor) { int api = android.os.Build.VERSION.SDK_INT; if(imageIdCol == -1) { imageIdCol = cursor.getColumnIndexOrThrow(MediaStore.Images.Media._ID); imageTitleCol = cursor.getColumnIndexOrThrow(...
public class class_name { protected ImageDTO extractOneImageFromCurrentCursor(Cursor cursor) { int api = android.os.Build.VERSION.SDK_INT; if(imageIdCol == -1) { imageIdCol = cursor.getColumnIndexOrThrow(MediaStore.Images.Media._ID); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override protected String createDialogHtml(String dialog) { StringBuffer result = new StringBuffer(1024); result.append(createWidgetTableStart()); // show error header once if there were validation errors result.append(createWidgetErrorHeader()); ...
public class class_name { @Override protected String createDialogHtml(String dialog) { StringBuffer result = new StringBuffer(1024); result.append(createWidgetTableStart()); // show error header once if there were validation errors result.append(createWidgetErrorHeader()); ...
public class class_name { public EventRecord getNext() { try { String line = reader.readLine(); if (line != null) { if (firstLine == null) firstLine = new String(line); offset += line.length() + 1; return parseLine(line); } } catch (IOException e) { e.printStackTrace(); } retu...
public class class_name { public EventRecord getNext() { try { String line = reader.readLine(); if (line != null) { if (firstLine == null) firstLine = new String(line); offset += line.length() + 1; // depends on control dependency: [if], data = [none] return parseLine(line); // depends on contro...
public class class_name { private static Optional<AbbreviatedObjectId> createAbbreviatedCommitId(@Nonnull ObjectReader objectReader, ObjectId commitId, int requestedLength) { if (requestedLength < 2) { // 0 means we don't want to print commit id's at all return Optional.empty(); } try { ...
public class class_name { private static Optional<AbbreviatedObjectId> createAbbreviatedCommitId(@Nonnull ObjectReader objectReader, ObjectId commitId, int requestedLength) { if (requestedLength < 2) { // 0 means we don't want to print commit id's at all return Optional.empty(); // depends on control d...
public class class_name { static int compareMarkers(IMarker m1, IMarker m2) { if (m1 == null || m2 == null || !m1.exists() || !m2.exists()) { return 0; } int rank1 = MarkerUtil.findBugRankForMarker(m1); int rank2 = MarkerUtil.findBugRankForMarker(m2); int result = ra...
public class class_name { static int compareMarkers(IMarker m1, IMarker m2) { if (m1 == null || m2 == null || !m1.exists() || !m2.exists()) { return 0; // depends on control dependency: [if], data = [none] } int rank1 = MarkerUtil.findBugRankForMarker(m1); int rank2 = Marker...
public class class_name { private static String chompLastParam(String input) { int lastCommaIndex = input.lastIndexOf(','); if (lastCommaIndex == -1) { return input; } else { return input.substring(0, lastCommaIndex) + ")"; } } }
public class class_name { private static String chompLastParam(String input) { int lastCommaIndex = input.lastIndexOf(','); if (lastCommaIndex == -1) { return input; // depends on control dependency: [if], data = [none] } else { return input.substring(0, lastCommaIndex) ...
public class class_name { public static List<Kontonummer> getKontonummerList(int length) { final class NormalKontonrDigitGenerator extends KontonummerDigitGenerator { @Override String generateKontonummer() { StringBuilder kontonrBuffer = new StringBuilder(LENGTH); for (int i = 0; i < LENGTH; i++) ...
public class class_name { public static List<Kontonummer> getKontonummerList(int length) { final class NormalKontonrDigitGenerator extends KontonummerDigitGenerator { @Override String generateKontonummer() { StringBuilder kontonrBuffer = new StringBuilder(LENGTH); for (int i = 0; i < LENGTH; i++) ...
public class class_name { @JSFProperty(partialStateHolder=true) public Converter getConverter() { if (_converter != null) { return _converter; } ValueExpression expression = getValueExpression("converter"); if (expression != null) { return...
public class class_name { @JSFProperty(partialStateHolder=true) public Converter getConverter() { if (_converter != null) { return _converter; // depends on control dependency: [if], data = [none] } ValueExpression expression = getValueExpression("converter"); ...
public class class_name { public final UnicodeSet add(CharSequence s) { checkFrozen(); int cp = getSingleCP(s); if (cp < 0) { strings.add(s.toString()); pat = null; } else { add_unchecked(cp, cp); } return this; } }
public class class_name { public final UnicodeSet add(CharSequence s) { checkFrozen(); int cp = getSingleCP(s); if (cp < 0) { strings.add(s.toString()); // depends on control dependency: [if], data = [none] pat = null; // depends on control dependency: [if], data = [none...
public class class_name { @SuppressWarnings("unchecked") private Map<String, CmsTemplateContext> getContextMap() { Object cachedObj = m_cache.getCachedObject(m_cms, getConfigurationPropertyPath()); if (cachedObj != null) { return (Map<String, CmsTemplateContext>)cachedObj; ...
public class class_name { @SuppressWarnings("unchecked") private Map<String, CmsTemplateContext> getContextMap() { Object cachedObj = m_cache.getCachedObject(m_cms, getConfigurationPropertyPath()); if (cachedObj != null) { return (Map<String, CmsTemplateContext>)cachedObj; // dep...
public class class_name { public static GeoRSSModule getGeoRSS(final SyndFeed feed) { final GeoRSSModule simple = (GeoRSSModule) feed.getModule(GeoRSSModule.GEORSS_GEORSS_URI); final GeoRSSModule w3cGeo = (GeoRSSModule) feed.getModule(GeoRSSModule.GEORSS_W3CGEO_URI); final GeoRSSModule gml = (G...
public class class_name { public static GeoRSSModule getGeoRSS(final SyndFeed feed) { final GeoRSSModule simple = (GeoRSSModule) feed.getModule(GeoRSSModule.GEORSS_GEORSS_URI); final GeoRSSModule w3cGeo = (GeoRSSModule) feed.getModule(GeoRSSModule.GEORSS_W3CGEO_URI); final GeoRSSModule gml = (G...
public class class_name { public static void sort(final List<Artifact> targets) { int n = targets.size(); while(n != 0){ int newn = 0; for(int i = 1 ; i <= n-1 ; i++){ if (targets.get(i-1).toString().compareTo(targets.get(i).toString()) > 0){ ...
public class class_name { public static void sort(final List<Artifact> targets) { int n = targets.size(); while(n != 0){ int newn = 0; for(int i = 1 ; i <= n-1 ; i++){ if (targets.get(i-1).toString().compareTo(targets.get(i).toString()) > 0){ ...
public class class_name { public static SoyMsgRawTextPart of(String rawText) { int utf8Length = Utf8.encodedLength(rawText); // Determine whether UTF8 or UTF16 uses less memory, and choose between one of the two internal // implementations. char[] is preferred if the sizes are equal because it is faster t...
public class class_name { public static SoyMsgRawTextPart of(String rawText) { int utf8Length = Utf8.encodedLength(rawText); // Determine whether UTF8 or UTF16 uses less memory, and choose between one of the two internal // implementations. char[] is preferred if the sizes are equal because it is faster t...
public class class_name { public static TimestampSpec mergeTimestampSpec(List<TimestampSpec> toMerge) { if (toMerge == null || toMerge.size() == 0) { return null; } TimestampSpec result = toMerge.get(0); for (int i = 1; i < toMerge.size(); i++) { if (toMerge.get(i) == null) { con...
public class class_name { public static TimestampSpec mergeTimestampSpec(List<TimestampSpec> toMerge) { if (toMerge == null || toMerge.size() == 0) { return null; // depends on control dependency: [if], data = [none] } TimestampSpec result = toMerge.get(0); for (int i = 1; i < toMerge.size(); ...
public class class_name { public static List<String> getResourceNamesFromJAR(String path, String extension, Class<?> clazz) throws IOException { CodeSource src = clazz.getProtectionDomain().getCodeSource(); List<String> testResources = new ArrayList<String>(); ZipInputStream zip = null; if (src != null) { ...
public class class_name { public static List<String> getResourceNamesFromJAR(String path, String extension, Class<?> clazz) throws IOException { CodeSource src = clazz.getProtectionDomain().getCodeSource(); List<String> testResources = new ArrayList<String>(); ZipInputStream zip = null; if (src != null) { ...
public class class_name { public static String toStringLimited(ImmutableSet<?> items, int limit) { if (items.size() <= limit) { return items.toString(); } else { return items.asList().subList(0, limit).toString() + "... (" + (items.size() - limit) + " more)"; } } }
public class class_name { public static String toStringLimited(ImmutableSet<?> items, int limit) { if (items.size() <= limit) { return items.toString(); // depends on control dependency: [if], data = [none] } else { return items.asList().subList(0, limit).toString() + "... (" + (items.size() - limi...
public class class_name { public void setOffscreenPageLimit(int limit) { if (limit < DEFAULT_OFFSCREEN_PAGES) { Log.w(TAG, "Requested offscreen page limit " + limit + " too small; defaulting to " + DEFAULT_OFFSCREEN_PAGES); limit = DEFAULT_OFFSCREEN_PAGES; } ...
public class class_name { public void setOffscreenPageLimit(int limit) { if (limit < DEFAULT_OFFSCREEN_PAGES) { Log.w(TAG, "Requested offscreen page limit " + limit + " too small; defaulting to " + // depends on control dependency: [if], data = [none] DEFAULT_OFFSCREEN_PAGES); ...
public class class_name { private BufferedImage create_FRAME_Image(final int WIDTH, BufferedImage image) { if (WIDTH <= 0) { return null; } if (image == null) { image = UTIL.createImage(WIDTH, WIDTH, Transparency.TRANSLUCENT); } final Graphics2D G2 = ima...
public class class_name { private BufferedImage create_FRAME_Image(final int WIDTH, BufferedImage image) { if (WIDTH <= 0) { return null; // depends on control dependency: [if], data = [none] } if (image == null) { image = UTIL.createImage(WIDTH, WIDTH, Transparency.TRA...
public class class_name { public double calculateDistance(DoubleSolution individual, double[] lambda) { double scale; double distance; double[] vecInd = new double[problem.getNumberOfObjectives()]; double[] vecProj = new double[problem.getNumberOfObjectives()]; // vecInd has been normalized to th...
public class class_name { public double calculateDistance(DoubleSolution individual, double[] lambda) { double scale; double distance; double[] vecInd = new double[problem.getNumberOfObjectives()]; double[] vecProj = new double[problem.getNumberOfObjectives()]; // vecInd has been normalized to th...
public class class_name { public Content getSignature(MemberDoc member) { Content pre = new HtmlTree(HtmlTag.PRE); writer.addAnnotationInfo(member, pre); addModifiers(member, pre); Content link = writer.getLink(new LinkInfoImpl(configuration, Link...
public class class_name { public Content getSignature(MemberDoc member) { Content pre = new HtmlTree(HtmlTag.PRE); writer.addAnnotationInfo(member, pre); addModifiers(member, pre); Content link = writer.getLink(new LinkInfoImpl(configuration, Link...
public class class_name { public static long benchGet(DMatrixRMaj A , int n ) { long before = System.currentTimeMillis(); double total = 0; for( int iter = 0; iter < n; iter++ ) { for( int i = 0; i < A.numRows; i++ ) { for( int j = 0; j < A.numCols; j++ ) { ...
public class class_name { public static long benchGet(DMatrixRMaj A , int n ) { long before = System.currentTimeMillis(); double total = 0; for( int iter = 0; iter < n; iter++ ) { for( int i = 0; i < A.numRows; i++ ) { for( int j = 0; j < A.numCols; j++ ) { ...
public class class_name { @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); int contentWidth = mWidth - paddingLeft - paddingRight; int contentHeight = mHeight - paddingTop - paddingBottom; mCirclePaint.setStyle(Paint.Style.FILL); mCirclePaint.setColor...
public class class_name { @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); int contentWidth = mWidth - paddingLeft - paddingRight; int contentHeight = mHeight - paddingTop - paddingBottom; mCirclePaint.setStyle(Paint.Style.FILL); mCirclePaint.setColor...
public class class_name { public List<SequenceGenerator<EntityMappings<T>>> getAllSequenceGenerator() { List<SequenceGenerator<EntityMappings<T>>> list = new ArrayList<SequenceGenerator<EntityMappings<T>>>(); List<Node> nodeList = childNode.get("sequence-generator"); for(Node node: nodeList) ...
public class class_name { public List<SequenceGenerator<EntityMappings<T>>> getAllSequenceGenerator() { List<SequenceGenerator<EntityMappings<T>>> list = new ArrayList<SequenceGenerator<EntityMappings<T>>>(); List<Node> nodeList = childNode.get("sequence-generator"); for(Node node: nodeList) ...
public class class_name { public static String decode(String s, String enc, boolean decodeSlash, boolean formEncoding, StringBuilder buffer) { buffer.setLength(0); boolean needToChange = false; int numChars = s.length(); int i = 0; while (i < numChars) { char c = s....
public class class_name { public static String decode(String s, String enc, boolean decodeSlash, boolean formEncoding, StringBuilder buffer) { buffer.setLength(0); boolean needToChange = false; int numChars = s.length(); int i = 0; while (i < numChars) { char c = s....
public class class_name { @Override public EClass getIfcBoundedCurve() { if (ifcBoundedCurveEClass == null) { ifcBoundedCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(53); } return ifcBoundedCurveEClass; } }
public class class_name { @Override public EClass getIfcBoundedCurve() { if (ifcBoundedCurveEClass == null) { ifcBoundedCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(53); // depends on control dependency: [if], data = [none] } return ifcB...
public class class_name { public Object execute(final Map<Object, Object> iArgs) { if (clusterName == null) throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet"); final ODatabaseDocumentInternal database = getDatabase(); final int clusterId = da...
public class class_name { public Object execute(final Map<Object, Object> iArgs) { if (clusterName == null) throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet"); final ODatabaseDocumentInternal database = getDatabase(); final int clusterId = da...
public class class_name { public synchronized void load() { XmlFile file = getConfigFile(); if(!file.exists()) return; try { file.unmarshal(this); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to load "+file, e); } } }
public class class_name { public synchronized void load() { XmlFile file = getConfigFile(); if(!file.exists()) return; try { file.unmarshal(this); // depends on control dependency: [try], data = [none] } catch (IOException e) { LOGGER.log(Level.WARNI...
public class class_name { public void marshall(RemoveTagsRequest removeTagsRequest, ProtocolMarshaller protocolMarshaller) { if (removeTagsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(r...
public class class_name { public void marshall(RemoveTagsRequest removeTagsRequest, ProtocolMarshaller protocolMarshaller) { if (removeTagsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(r...
public class class_name { static Set<Character> parseCharactersToForbid(String paramValue) { final Set<Character> charactersToForbid = new HashSet<Character>(); if (null == paramValue) { paramValue = DEFAULT_CHARACTERS_BLOCKED; } if ("none".equals(paramValue)) { ...
public class class_name { static Set<Character> parseCharactersToForbid(String paramValue) { final Set<Character> charactersToForbid = new HashSet<Character>(); if (null == paramValue) { paramValue = DEFAULT_CHARACTERS_BLOCKED; // depends on control dependency: [if], data = [none] ...
public class class_name { public static String safeToString(Object value) { try { // TODO(b/36844237): Re-evaluate if this is the best place for null handling (null is also // handled for arguments via visitNull() and this is only for literal arguments). return value != null ? toString(value) : "...
public class class_name { public static String safeToString(Object value) { try { // TODO(b/36844237): Re-evaluate if this is the best place for null handling (null is also // handled for arguments via visitNull() and this is only for literal arguments). return value != null ? toString(value) : "...
public class class_name { public TreeGraphNode highestNodeWithSameHead() { TreeGraphNode node = this; while (true) { TreeGraphNode parent = safeCast(node.parent()); if (parent == null || parent.headWordNode() != node.headWordNode()) { return node; } node = parent; } ...
public class class_name { public TreeGraphNode highestNodeWithSameHead() { TreeGraphNode node = this; while (true) { TreeGraphNode parent = safeCast(node.parent()); if (parent == null || parent.headWordNode() != node.headWordNode()) { return node; // depends on control dependency: [if...
public class class_name { private static char encodeChar(char c, int offset, boolean isDecodeNumber) { if (isDecodeNumber) { if (c >= CHAR0 && c <= CHAR9) { c -= CHAR0; c = (char) ((c + offset) % 10); c += CHAR0; } } // A == 65, Z == 90 if (c >= ACHAR && c <= ZCHAR) { c -= ACHA...
public class class_name { private static char encodeChar(char c, int offset, boolean isDecodeNumber) { if (isDecodeNumber) { if (c >= CHAR0 && c <= CHAR9) { c -= CHAR0; // depends on control dependency: [if], data = [none] c = (char) ((c + offset) % 10); // depends on control dependency: [if], data =...
public class class_name { private static <T> boolean containsIdentity(List<T> list, T object) { for (T item : list) { if (item == object) { return true; } } return false; } }
public class class_name { private static <T> boolean containsIdentity(List<T> list, T object) { for (T item : list) { if (item == object) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { private int getStatement() { checkValue = baseValue; baseValue = DATDictionary.getItem(checkValue).getBase() + charHashCode; if (baseValue < DATDictionary.arrayLength && (DATDictionary.getItem(baseValue).getCheck() == checkValue || DATDictionary...
public class class_name { private int getStatement() { checkValue = baseValue; baseValue = DATDictionary.getItem(checkValue).getBase() + charHashCode; if (baseValue < DATDictionary.arrayLength && (DATDictionary.getItem(baseValue).getCheck() == checkValue || DATDictionary...
public class class_name { public void setValue(org.openprovenance.prov.model.Value value) { if (value!=null) { this.value = value; getAllAttributes().add((org.openprovenance.prov.model.Attribute)value); //FIXME: should replace previous value! } } }
public class class_name { public void setValue(org.openprovenance.prov.model.Value value) { if (value!=null) { this.value = value; // depends on control dependency: [if], data = [none] getAllAttributes().add((org.openprovenance.prov.model.Attribute)value); //FIXME: should replace previous value! // depends ...
public class class_name { public void setCurrentGroup(int groupId){ if(mCurrentGroup != groupId){ int oldGroupId = mCurrentGroup; mCurrentGroup = groupId; mGroupChanged = true; dispatchOnToolbarGroupChanged(oldGroupId, mCurrentGroup); animateOut(); ...
public class class_name { public void setCurrentGroup(int groupId){ if(mCurrentGroup != groupId){ int oldGroupId = mCurrentGroup; mCurrentGroup = groupId; // depends on control dependency: [if], data = [none] mGroupChanged = true; // depends on control dependency: [if], data...
public class class_name { public T get(final T value) { expungeStaleEntries(); // final int index = (value.hashCode() & 0x7FFFFFFF) % elementData.length; Entry<T> m = elementData[index]; while (m != null) { if (eq(value, m.get())) { return m.get(); } m = m.nextInSlot; } return null; } }
public class class_name { public T get(final T value) { expungeStaleEntries(); // final int index = (value.hashCode() & 0x7FFFFFFF) % elementData.length; Entry<T> m = elementData[index]; while (m != null) { if (eq(value, m.get())) { return m.get(); // depends on control dependency: [if], data = [none]...
public class class_name { public final JavaParser.formalParameter_return formalParameter() throws RecognitionException { JavaParser.formalParameter_return retval = new JavaParser.formalParameter_return(); retval.start = input.LT(1); int formalParameter_StartIndex = input.index(); try { if ( state.backtrack...
public class class_name { public final JavaParser.formalParameter_return formalParameter() throws RecognitionException { JavaParser.formalParameter_return retval = new JavaParser.formalParameter_return(); retval.start = input.LT(1); int formalParameter_StartIndex = input.index(); try { if ( state.backtrack...
public class class_name { public final static List<ConnectionNotation> getAllEdgeConnections(List<ConnectionNotation> connections) { List<ConnectionNotation> listEdgeConnection = new ArrayList<ConnectionNotation>(); for (ConnectionNotation connection : connections) { if (!(connection.getrGroupSource()...
public class class_name { public final static List<ConnectionNotation> getAllEdgeConnections(List<ConnectionNotation> connections) { List<ConnectionNotation> listEdgeConnection = new ArrayList<ConnectionNotation>(); for (ConnectionNotation connection : connections) { if (!(connection.getrGroupSource()...
public class class_name { public ListGitHubAccountTokenNamesResult withTokenNameList(String... tokenNameList) { if (this.tokenNameList == null) { setTokenNameList(new com.amazonaws.internal.SdkInternalList<String>(tokenNameList.length)); } for (String ele : tokenNameList) { ...
public class class_name { public ListGitHubAccountTokenNamesResult withTokenNameList(String... tokenNameList) { if (this.tokenNameList == null) { setTokenNameList(new com.amazonaws.internal.SdkInternalList<String>(tokenNameList.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { public static List<CPDefinitionOptionValueRel> toModels( CPDefinitionOptionValueRelSoap[] soapModels) { if (soapModels == null) { return null; } List<CPDefinitionOptionValueRel> models = new ArrayList<CPDefinitionOptionValueRel>(soapModels.length); for (CPDefinitionOptionValueR...
public class class_name { public static List<CPDefinitionOptionValueRel> toModels( CPDefinitionOptionValueRelSoap[] soapModels) { if (soapModels == null) { return null; // depends on control dependency: [if], data = [none] } List<CPDefinitionOptionValueRel> models = new ArrayList<CPDefinitionOptionValueRel...
public class class_name { public static void runExample( AdWordsServicesInterface adWordsServices, AdWordsSession session, Long campaignId) throws ApiException, RemoteException { // Get the CustomerExtensionSettingService. CustomerExtensionSettingServiceInterface customerExtensionSettingService = ...
public class class_name { public static void runExample( AdWordsServicesInterface adWordsServices, AdWordsSession session, Long campaignId) throws ApiException, RemoteException { // Get the CustomerExtensionSettingService. CustomerExtensionSettingServiceInterface customerExtensionSettingService = ...
public class class_name { private int convertFocusDirectionToLayoutDirection(int focusDirection) { switch (focusDirection) { case View.FOCUS_BACKWARD: return RenderState.LAYOUT_START; case View.FOCUS_FORWARD: return RenderState.LAYOUT_END; cas...
public class class_name { private int convertFocusDirectionToLayoutDirection(int focusDirection) { switch (focusDirection) { case View.FOCUS_BACKWARD: return RenderState.LAYOUT_START; case View.FOCUS_FORWARD: return RenderState.LAYOUT_END; cas...
public class class_name { @Override public Model read(Configuration config) { String name = config.getName(); Descriptor desc = getDescriptor(); if (CHANNELS.equals(name)) { return new V1ChannelsModel(config, desc); } else if (CHANNEL.equals(name)) { return n...
public class class_name { @Override public Model read(Configuration config) { String name = config.getName(); Descriptor desc = getDescriptor(); if (CHANNELS.equals(name)) { return new V1ChannelsModel(config, desc); // depends on control dependency: [if], data = [none] }...
public class class_name { protected void eol(byte[] in, int sz) throws IOException { int next = ConsoleNote.findPreamble(in,0,sz); // perform byte[]->char[] while figuring out the char positions of the BLOBs int written = 0; while (next>=0) { if (next>written) { ...
public class class_name { protected void eol(byte[] in, int sz) throws IOException { int next = ConsoleNote.findPreamble(in,0,sz); // perform byte[]->char[] while figuring out the char positions of the BLOBs int written = 0; while (next>=0) { if (next>written) { ...
public class class_name { public void checkBrowserType(final HttpServletRequest request) { String reqpar = request.getParameter(getBrowserTypeRequestName()); if (reqpar != null) { if (reqpar.equals("!")) { // Go back to unsticky browser type setBrowserTypeSticky(false); } else { ...
public class class_name { public void checkBrowserType(final HttpServletRequest request) { String reqpar = request.getParameter(getBrowserTypeRequestName()); if (reqpar != null) { if (reqpar.equals("!")) { // Go back to unsticky browser type setBrowserTypeSticky(false); // depends on con...
public class class_name { public void dropIndex(final String indexName) { makeActive(); executeOutsideTx(new OCallable<Object, OrientBaseGraph>() { @Override public Object call(OrientBaseGraph g) { try { final OIndexManager indexManager = getRawGraph().getMetadata().getIndexManag...
public class class_name { public void dropIndex(final String indexName) { makeActive(); executeOutsideTx(new OCallable<Object, OrientBaseGraph>() { @Override public Object call(OrientBaseGraph g) { try { final OIndexManager indexManager = getRawGraph().getMetadata().getIndexManag...
public class class_name { @Override public void notifyHandlableAdded(Featurable featurable) { if (featurable.hasFeature(Displayable.class)) { final Displayable displayable = featurable.getFeature(Displayable.class); final Integer layer = getLayer(featurable); ...
public class class_name { @Override public void notifyHandlableAdded(Featurable featurable) { if (featurable.hasFeature(Displayable.class)) { final Displayable displayable = featurable.getFeature(Displayable.class); final Integer layer = getLayer(featurable); ...
public class class_name { public static int readRawUntil (final StringBuilder out, final String in, final int start, final char end) { int pos = start; while (pos < in.length ()) { final char ch = in.charAt (pos); if (ch == end) break; out.append (ch); pos++; } re...
public class class_name { public static int readRawUntil (final StringBuilder out, final String in, final int start, final char end) { int pos = start; while (pos < in.length ()) { final char ch = in.charAt (pos); if (ch == end) break; out.append (ch); // depends on control depe...
public class class_name { void startBlockImpl( String[] selectors ) { for( int i=0; i<selectors.length; i++ ) { if( i > 0 ) { output.append( ',' ); newline(); } insets(); append( selectors[i] ); } space(); o...
public class class_name { void startBlockImpl( String[] selectors ) { for( int i=0; i<selectors.length; i++ ) { if( i > 0 ) { output.append( ',' ); // depends on control dependency: [if], data = [none] newline(); // depends on control dependency: [if], data = [none] ...
public class class_name { public void setName(final String repoName) { if (name == null) { name = repoName; } else if (!name.equals(repoName)) { throw new IllegalStateException( "Repository [" + name + "] cannot be renamed as [" + repoName + "]."); } } }
public class class_name { public void setName(final String repoName) { if (name == null) { name = repoName; // depends on control dependency: [if], data = [none] } else if (!name.equals(repoName)) { throw new IllegalStateException( "Repository [" + name + "] cannot be renamed as [" + repoNa...
public class class_name { private TableDescriptor getTableDescriptor(Table table, SchemaDescriptor schemaDescriptor, Store store) { TableDescriptor tableDescriptor; if (table instanceof View) { View view = (View) table; ViewDescriptor viewDescriptor = store.create(ViewDescriptor...
public class class_name { private TableDescriptor getTableDescriptor(Table table, SchemaDescriptor schemaDescriptor, Store store) { TableDescriptor tableDescriptor; if (table instanceof View) { View view = (View) table; ViewDescriptor viewDescriptor = store.create(ViewDescriptor...
public class class_name { public String toIntegerRationalString() { BigDecimal fractionNumerator = numerator.remainder(denominator); BigDecimal integerNumerator = numerator.subtract(fractionNumerator); BigDecimal integerPart = integerNumerator.divide(denominator); StringBuilder result = new StringBuilder...
public class class_name { public String toIntegerRationalString() { BigDecimal fractionNumerator = numerator.remainder(denominator); BigDecimal integerNumerator = numerator.subtract(fractionNumerator); BigDecimal integerPart = integerNumerator.divide(denominator); StringBuilder result = new StringBuilder...
public class class_name { public void marshall(DeleteEventSubscriptionRequest deleteEventSubscriptionRequest, ProtocolMarshaller protocolMarshaller) { if (deleteEventSubscriptionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(DeleteEventSubscriptionRequest deleteEventSubscriptionRequest, ProtocolMarshaller protocolMarshaller) { if (deleteEventSubscriptionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public boolean isGroupGuests(String groupName) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(groupName)) { return false; } return m_groupGuests.equals(groupName) || groupName.endsWith(CmsOrganizationalUnit.SEPARATOR + m_groupGuests); } }
public class class_name { public boolean isGroupGuests(String groupName) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(groupName)) { return false; // depends on control dependency: [if], data = [none] } return m_groupGuests.equals(groupName) || groupName.endsWith(CmsOrganizationalUni...
public class class_name { public Query withParams(Collection<Object> paramValues) { if (null == paramValues) { return this; } int i = 0; for (Object paramValue : paramValues) { paramIndexValues.put(++i, this.converterValue(paramValue)); } return t...
public class class_name { public Query withParams(Collection<Object> paramValues) { if (null == paramValues) { return this; // depends on control dependency: [if], data = [none] } int i = 0; for (Object paramValue : paramValues) { paramIndexValues.put(++i, this.c...
public class class_name { public double[] solveInplace(double[] b) { if(b.length != m) { throw new IllegalArgumentException(ERR_MATRIX_DIMENSIONS); } if(!this.isNonsingular()) { throw new ArithmeticException(ERR_SINGULAR); } // Solve L*Y = B(piv,:) for(int k = 0; k < n; k++) { ...
public class class_name { public double[] solveInplace(double[] b) { if(b.length != m) { throw new IllegalArgumentException(ERR_MATRIX_DIMENSIONS); } if(!this.isNonsingular()) { throw new ArithmeticException(ERR_SINGULAR); } // Solve L*Y = B(piv,:) for(int k = 0; k < n; k++) { ...
public class class_name { public static byte[] vleEncodeLong(final long value) { if (Byte.MIN_VALUE <= value && value <= Byte.MAX_VALUE) { return new byte[] { (byte) value }; } else if (Short.MIN_VALUE <= value && value <= Short.MAX_VALUE) { return Bytes.fromShort((short) value); } else if (Int...
public class class_name { public static byte[] vleEncodeLong(final long value) { if (Byte.MIN_VALUE <= value && value <= Byte.MAX_VALUE) { return new byte[] { (byte) value }; // depends on control dependency: [if], data = [none] } else if (Short.MIN_VALUE <= value && value <= Short.MAX_VALUE) { ret...
public class class_name { public Observable<ServiceResponse<ExplicitListItem>> getExplicitListItemWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, long itemId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is requir...
public class class_name { public Observable<ServiceResponse<ExplicitListItem>> getExplicitListItemWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, long itemId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is requir...
public class class_name { public static <L extends Listener, E extends Event<?, L>> boolean checkPrevent( EventStack eventStack, E event, BiConsumer<L, E> bc, ExceptionCallback ec) { // check if any of the currently dispatched events marked the target // listener class to be prevented. ...
public class class_name { public static <L extends Listener, E extends Event<?, L>> boolean checkPrevent( EventStack eventStack, E event, BiConsumer<L, E> bc, ExceptionCallback ec) { // check if any of the currently dispatched events marked the target // listener class to be prevented. ...
public class class_name { private List<DelayedEntry> callHandler(Collection<DelayedEntry> delayedEntries, StoreOperationType operationType) { final int size = delayedEntries.size(); if (size == 0) { return Collections.emptyList(); } ...
public class class_name { private List<DelayedEntry> callHandler(Collection<DelayedEntry> delayedEntries, StoreOperationType operationType) { final int size = delayedEntries.size(); if (size == 0) { return Collections.emptyList(); // depends on con...
public class class_name { public static Set<Locale> getLocalizationProblemLocales( Class<?> i18nClass ) { CheckArg.isNotNull(i18nClass, "i18nClass"); Set<Locale> locales = new HashSet<Locale>(LOCALE_TO_CLASS_TO_PROBLEMS_MAP.size()); for (Entry<Locale, Map<Class<?>, Set<String>>> localeEntry : L...
public class class_name { public static Set<Locale> getLocalizationProblemLocales( Class<?> i18nClass ) { CheckArg.isNotNull(i18nClass, "i18nClass"); Set<Locale> locales = new HashSet<Locale>(LOCALE_TO_CLASS_TO_PROBLEMS_MAP.size()); for (Entry<Locale, Map<Class<?>, Set<String>>> localeEntry : L...
public class class_name { @Override public EClass getIfcTrimmedCurve() { if (ifcTrimmedCurveEClass == null) { ifcTrimmedCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(734); } return ifcTrimmedCurveEClass; } }
public class class_name { @Override public EClass getIfcTrimmedCurve() { if (ifcTrimmedCurveEClass == null) { ifcTrimmedCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(734); // depends on control dependency: [if], data = [none] } return ifc...
public class class_name { protected void justAdd(final String key, final String value, final ArrayList<String> keyProfiles, final Operator operator) { if (operator == Operator.COPY) { HashMap<String,Object> target = new HashMap<>(); String[] profiles = null; if (keyProfiles != null) { profiles = keyPro...
public class class_name { protected void justAdd(final String key, final String value, final ArrayList<String> keyProfiles, final Operator operator) { if (operator == Operator.COPY) { HashMap<String,Object> target = new HashMap<>(); String[] profiles = null; if (keyProfiles != null) { profiles = keyPro...
public class class_name { public static boolean getAsynchronousMethods(Method[] beanMethods, boolean[] asynchMethodFlags, MethodInterface methodInterface) { final boolean isTraceOn = TraceComponent.isAnyTracin...
public class class_name { public static boolean getAsynchronousMethods(Method[] beanMethods, boolean[] asynchMethodFlags, MethodInterface methodInterface) { final boolean isTraceOn = TraceComponent.isAnyTracin...
public class class_name { public SemanticType.Record extractRecordType(SemanticType type, Environment environment, ReadWriteTypeExtractor.Combinator<SemanticType.Record> combinator, SyntacticItem item) { // if (type != null) { SemanticType.Record recordT = rwTypeExtractor.apply(type, environment, combinator)...
public class class_name { public SemanticType.Record extractRecordType(SemanticType type, Environment environment, ReadWriteTypeExtractor.Combinator<SemanticType.Record> combinator, SyntacticItem item) { // if (type != null) { SemanticType.Record recordT = rwTypeExtractor.apply(type, environment, combinator)...
public class class_name { public static byte [] padTail(final byte [] a, final int length) { byte [] padding = new byte[length]; for (int i = 0; i < length; i++) { padding[i] = 0; } return add(a, padding); } }
public class class_name { public static byte [] padTail(final byte [] a, final int length) { byte [] padding = new byte[length]; for (int i = 0; i < length; i++) { padding[i] = 0; // depends on control dependency: [for], data = [i] } return add(a, padding); } }
public class class_name { private void updateBufferPoolMetrics() { for (BufferPoolMXBean bufferPoolMXBean : bufferPoolMXBeanList) { String normalizedKeyName = bufferPoolMXBean.getName().replaceAll("[^\\w]", "-"); final ByteAmount memoryUsed = ByteAmount.fromBytes(bufferPoolMXBean.getMemoryUsed()); ...
public class class_name { private void updateBufferPoolMetrics() { for (BufferPoolMXBean bufferPoolMXBean : bufferPoolMXBeanList) { String normalizedKeyName = bufferPoolMXBean.getName().replaceAll("[^\\w]", "-"); final ByteAmount memoryUsed = ByteAmount.fromBytes(bufferPoolMXBean.getMemoryUsed()); ...
public class class_name { static List<String> stringsWithEq(String name, @Nullable List<String> values) { List<String> result = new ArrayList<>(); if (values != null) { for (String value : values) { result.addAll(stringWithEq(name, value)); } } return result; } }
public class class_name { static List<String> stringsWithEq(String name, @Nullable List<String> values) { List<String> result = new ArrayList<>(); if (values != null) { for (String value : values) { result.addAll(stringWithEq(name, value)); // depends on control dependency: [for], data = [value] ...
public class class_name { public BooleanExpression isNotNull() { if (isnotnull == null) { isnotnull = Expressions.booleanOperation(Ops.IS_NOT_NULL, mixin); } return isnotnull; } }
public class class_name { public BooleanExpression isNotNull() { if (isnotnull == null) { isnotnull = Expressions.booleanOperation(Ops.IS_NOT_NULL, mixin); // depends on control dependency: [if], data = [none] } return isnotnull; } }
public class class_name { public List<String> getRepositoryUrls() { List<String> urls = new ArrayList<String>(); for ( Repository repo : getRepositories() ) { urls.add( repo.getUrl() ); } return urls; } }
public class class_name { public List<String> getRepositoryUrls() { List<String> urls = new ArrayList<String>(); for ( Repository repo : getRepositories() ) { urls.add( repo.getUrl() ); // depends on control dependency: [for], data = [repo] } return urls; } }
public class class_name { protected void extractProfilesAndAdd(final String key, final String value, final Operator operator) { String fullKey = key; int ndx = fullKey.indexOf(PROFILE_LEFT); if (ndx == -1) { justAdd(fullKey, value, null, operator); return; } // extract profiles ArrayList<String> key...
public class class_name { protected void extractProfilesAndAdd(final String key, final String value, final Operator operator) { String fullKey = key; int ndx = fullKey.indexOf(PROFILE_LEFT); if (ndx == -1) { justAdd(fullKey, value, null, operator); // depends on control dependency: [if], data = [none] retu...
public class class_name { public Collection<CascadeType> getCascades(PluralAttribute<?, ?, ?> attribute) { if (attribute.getJavaMember() instanceof AccessibleObject) { AccessibleObject accessibleObject = (AccessibleObject) attribute.getJavaMember(); OneToMany oneToMany = accessibleObjec...
public class class_name { public Collection<CascadeType> getCascades(PluralAttribute<?, ?, ?> attribute) { if (attribute.getJavaMember() instanceof AccessibleObject) { AccessibleObject accessibleObject = (AccessibleObject) attribute.getJavaMember(); OneToMany oneToMany = accessibleObjec...
public class class_name { public void marshall(EntityRecognizerMetadataEntityTypesListItem entityRecognizerMetadataEntityTypesListItem, ProtocolMarshaller protocolMarshaller) { if (entityRecognizerMetadataEntityTypesListItem == null) { throw new SdkClientException("Invalid argument passed to marsh...
public class class_name { public void marshall(EntityRecognizerMetadataEntityTypesListItem entityRecognizerMetadataEntityTypesListItem, ProtocolMarshaller protocolMarshaller) { if (entityRecognizerMetadataEntityTypesListItem == null) { throw new SdkClientException("Invalid argument passed to marsh...
public class class_name { public void marshall(TerminologyDataLocation terminologyDataLocation, ProtocolMarshaller protocolMarshaller) { if (terminologyDataLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void marshall(TerminologyDataLocation terminologyDataLocation, ProtocolMarshaller protocolMarshaller) { if (terminologyDataLocation == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public static void parkNanos(Object blocker, long nanos) { try { Strand.parkNanos(blocker, nanos); } catch (SuspendExecution e) { throw RuntimeSuspendExecution.of(e); } } }
public class class_name { public static void parkNanos(Object blocker, long nanos) { try { Strand.parkNanos(blocker, nanos); // depends on control dependency: [try], data = [none] } catch (SuspendExecution e) { throw RuntimeSuspendExecution.of(e); } // depends on control...
public class class_name { private static <T> T firstNotNull(T o1, T o2) { if (o1 != null) { return o1; } return o2; } }
public class class_name { private static <T> T firstNotNull(T o1, T o2) { if (o1 != null) { return o1; // depends on control dependency: [if], data = [none] } return o2; } }
public class class_name { public static <T> T getLast(Collection<T> collection) { if (isEmpty(collection)) { return null; } // 当类型List时,直接取得最后一个元素. if (collection instanceof List) { List<T> list = (List<T>) collection; return list.get(list.size() - 1); } return Iterators.getLast(collection.itera...
public class class_name { public static <T> T getLast(Collection<T> collection) { if (isEmpty(collection)) { return null; // depends on control dependency: [if], data = [none] } // 当类型List时,直接取得最后一个元素. if (collection instanceof List) { List<T> list = (List<T>) collection; return list.get(list.size() ...
public class class_name { public String asYaml(String jsonStringFile) throws JsonProcessingException, IOException, FileNotFoundException { InputStream stream = getClass().getClassLoader().getResourceAsStream(jsonStringFile); Writer writer = new StringWriter(); char[] buffer = new char[1024]; ...
public class class_name { public String asYaml(String jsonStringFile) throws JsonProcessingException, IOException, FileNotFoundException { InputStream stream = getClass().getClassLoader().getResourceAsStream(jsonStringFile); Writer writer = new StringWriter(); char[] buffer = new char[1024]; ...
public class class_name { public void setClusterSecurityGroups(java.util.Collection<ClusterSecurityGroup> clusterSecurityGroups) { if (clusterSecurityGroups == null) { this.clusterSecurityGroups = null; return; } this.clusterSecurityGroups = new com.amazonaws.internal.S...
public class class_name { public void setClusterSecurityGroups(java.util.Collection<ClusterSecurityGroup> clusterSecurityGroups) { if (clusterSecurityGroups == null) { this.clusterSecurityGroups = null; // depends on control dependency: [if], data = [none] return; // depends on control ...
public class class_name { @Reference(name = REFERENCE_ADMIN_OBJECT_SERVICES, service = AdminObjectService.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE) protected synchronized void addAdminObjectService(ServiceReference<AdminObject...
public class class_name { @Reference(name = REFERENCE_ADMIN_OBJECT_SERVICES, service = AdminObjectService.class, policy = ReferencePolicy.DYNAMIC, cardinality = ReferenceCardinality.MULTIPLE) protected synchronized void addAdminObjectService(ServiceReference<AdminObject...
public class class_name { static ClassRefTypeSignature parse(final Parser parser, final String definingClassName) throws ParseException { if (parser.peek() == 'L') { parser.next(); if (!TypeUtils.getIdentifierToken(parser, /* separator = */ '/', /* separatorReplace = */ '.')) { ...
public class class_name { static ClassRefTypeSignature parse(final Parser parser, final String definingClassName) throws ParseException { if (parser.peek() == 'L') { parser.next(); if (!TypeUtils.getIdentifierToken(parser, /* separator = */ '/', /* separatorReplace = */ '.')) { ...
public class class_name { @Override public boolean removeAll(IntSet c) { if (c == null || c.isEmpty()) { return false; } IntIterator itr; if (c instanceof HashIntSet) { itr = ((HashIntSet) c).unsortedIterator(); } else { itr = c.iterator(); } boolean res = ...
public class class_name { @Override public boolean removeAll(IntSet c) { if (c == null || c.isEmpty()) { return false; // depends on control dependency: [if], data = [none] } IntIterator itr; if (c instanceof HashIntSet) { itr = ((HashIntSet) c).unsortedIterator(); // depends o...
public class class_name { protected void init() { handle = TessBaseAPICreate(); StringArray sarray = new StringArray(configList.toArray(new String[0])); PointerByReference configs = new PointerByReference(); configs.setPointer(sarray); TessBaseAPIInit1(handle, datapath, language...
public class class_name { protected void init() { handle = TessBaseAPICreate(); StringArray sarray = new StringArray(configList.toArray(new String[0])); PointerByReference configs = new PointerByReference(); configs.setPointer(sarray); TessBaseAPIInit1(handle, datapath, language...
public class class_name { void setParameter(String name, Object value) throws Exception { logger.debug("public void setParameter"); try { if (this.sfStatement != null) { this.sfStatement.addProperty(name, value); } } catch (SFException ex) { throw new Snowflak...
public class class_name { void setParameter(String name, Object value) throws Exception { logger.debug("public void setParameter"); try { if (this.sfStatement != null) { this.sfStatement.addProperty(name, value); // depends on control dependency: [if], data = [none] } } ...
public class class_name { public List<abstractTiffType> getDescriptiveValueObject() { Tag tag = TiffTags.getTag(id); if (tag != null) { if (tag.hasReadableDescription()){ String desc = this.toString(); String tagDescription = tag.getTextDescription(toString()); if (tagDescription ...
public class class_name { public List<abstractTiffType> getDescriptiveValueObject() { Tag tag = TiffTags.getTag(id); if (tag != null) { if (tag.hasReadableDescription()){ String desc = this.toString(); String tagDescription = tag.getTextDescription(toString()); if (tagDescription ...
public class class_name { public void adjustTransformer(Transformer transformer, String sourceFilename, File targetFile) { GitHelper.addCommitProperties(transformer, baseDir, 7, getLog()); String warBasename; String webhelpOutdir = targetFile.getName().substring(0, targetFile.getName().lastIndexOf('.')); i...
public class class_name { public void adjustTransformer(Transformer transformer, String sourceFilename, File targetFile) { GitHelper.addCommitProperties(transformer, baseDir, 7, getLog()); String warBasename; String webhelpOutdir = targetFile.getName().substring(0, targetFile.getName().lastIndexOf('.')); i...
public class class_name { protected boolean isBinaryResource(String resourcePath) { String extension = FileNameUtils.getExtension(resourcePath); if (extension != null) { extension = extension.toLowerCase(); } return MIMETypesSupport.getSupportedProperties(this).containsKey(extension); } }
public class class_name { protected boolean isBinaryResource(String resourcePath) { String extension = FileNameUtils.getExtension(resourcePath); if (extension != null) { extension = extension.toLowerCase(); // depends on control dependency: [if], data = [none] } return MIMETypesSupport.getSupportedPropertie...
public class class_name { public boolean hasNewHeader(int position, boolean isReverseLayout) { if (indexOutOfBounds(position)) { return false; } long headerId = mAdapter.getHeaderId(position); if (headerId < 0) { return false; } long nextItemHeaderId = -1; int nextItemPositio...
public class class_name { public boolean hasNewHeader(int position, boolean isReverseLayout) { if (indexOutOfBounds(position)) { return false; // depends on control dependency: [if], data = [none] } long headerId = mAdapter.getHeaderId(position); if (headerId < 0) { return false; // depen...
public class class_name { public String findFilter(String destination) { FindFilterEvent event = new FindFilterEvent(); event.setDestination(destination); try { Object obj = delegate.callManager(event); if (obj != null && obj instanceof String) { return (...
public class class_name { public String findFilter(String destination) { FindFilterEvent event = new FindFilterEvent(); event.setDestination(destination); try { Object obj = delegate.callManager(event); if (obj != null && obj instanceof String) { return (...
public class class_name { public void setFormEnabled(boolean enabled) { m_formEnabled = enabled; m_selectBox.setEnabled(enabled); m_heightBox.setEnabled(enabled); m_widthBox.setEnabled(enabled); if (enabled) { m_cropButton.enable(); m_removeCropButton.en...
public class class_name { public void setFormEnabled(boolean enabled) { m_formEnabled = enabled; m_selectBox.setEnabled(enabled); m_heightBox.setEnabled(enabled); m_widthBox.setEnabled(enabled); if (enabled) { m_cropButton.enable(); // depends on control dependency:...
public class class_name { private File captureScreen(TestMethod rootMethod) { byte[] screenData = AdapterContainer.globalInstance().captureScreen(); if (screenData == null) { return null; } // use encoded name to avoid various possible file name encoding problem // ...
public class class_name { private File captureScreen(TestMethod rootMethod) { byte[] screenData = AdapterContainer.globalInstance().captureScreen(); if (screenData == null) { return null; // depends on control dependency: [if], data = [none] } // use encoded name to avoid v...
public class class_name { @SuppressWarnings("unchecked") public <T> T get(final Class<T> type) { T bean = (T) components.get(type); if (bean != null) { return bean; } return (T) get(type.getName()); } }
public class class_name { @SuppressWarnings("unchecked") public <T> T get(final Class<T> type) { T bean = (T) components.get(type); if (bean != null) { return bean; // depends on control dependency: [if], data = [none] } return (T) get(type.getName()); } }
public class class_name { public void stop(Path baseDir, Path sampleDir, ProcessExitCallback callback) { if (!sampleDir.toFile().exists() && callback != null) { callback.callback(0); } ProcessCommand cmd = MavenProject.load(baseDir).mvnw("jetty:stop", "-f", sa...
public class class_name { public void stop(Path baseDir, Path sampleDir, ProcessExitCallback callback) { if (!sampleDir.toFile().exists() && callback != null) { callback.callback(0); // depends on control dependency: [if], data = [none] } ProcessCommand cmd = MavenProject.load...
public class class_name { public MediaWikiParser createParser(){ logger.debug( "Selected Parser: {}", parserClass ); if( parserClass == ModularParser.class ){ ModularParser mwgp = new ModularParser( // resolveLineSeparator(), "\n", languageIdentifers, categoryIdentifers, imageIdentifers...
public class class_name { public MediaWikiParser createParser(){ logger.debug( "Selected Parser: {}", parserClass ); if( parserClass == ModularParser.class ){ ModularParser mwgp = new ModularParser( // resolveLineSeparator(), "\n", languageIdentifers, categoryIdentifers, imageIdentifers...
public class class_name { public void moveupFieldData(FieldData fieldInfo) { // Move these fields up to the field passed in BaseField field; String thisFieldStr; int count = fieldInfo.getFieldCount() + DBConstants.MAIN_FIELD; for (int i = DBConstants.MAIN_FIELD; i < count; i++) ...
public class class_name { public void moveupFieldData(FieldData fieldInfo) { // Move these fields up to the field passed in BaseField field; String thisFieldStr; int count = fieldInfo.getFieldCount() + DBConstants.MAIN_FIELD; for (int i = DBConstants.MAIN_FIELD; i < count; i++) ...