picks the article name from a MediaWiki api response.

@param s text for parsing
768837
@Override
  protected ImmutableList<String> parseElements(String s) {
    ImmutableList.Builder<String> titleCollection = ImmutableList.builder();
    Optional<XmlElement> childOpt = XmlConverter.getChildOpt(s, "query", "imageusage");
    if (childOpt.isPresent()) {
      for (XmlElement element : childOpt.get().getChildren("iu")) {
        titleCollection.add(element.getAttributeValue("title"));
      }
    }
    return titleCollection.build();
  }
965010
private String computeGetterName(String name)
	{
		StringBuilder _result = new StringBuilder().append(PREFIX__GETTER);
		_result.append(Character.toUpperCase(name.charAt(0))).append(name.substring(1));
		return _result.toString();
	}
1209807
def get_wiki(self, section):
        

        doc = self._request(self.ws_prefix + ".getInfo", True)

        if len(doc.getElementsByTagName("wiki")) == 0:
            return

        node = doc.getElementsByTagName("wiki")[0]

        return _extract(node, section)
1199378
def handle_wiki(msg):
    

    if 'wiki.article.edit' in msg.topic:
        username = msg.msg['user']
    elif 'wiki.upload.complete' in msg.topic:
        username = msg.msg['user_text']
    else:
        raise ValueError("Unhandled topic.")

    return username
555937
private void toStringRenames(final StringBuilder sb) {
        if (getRenamesSubject() != null) {
            sb.append(',');
            sb.append("renamesSubject:" + getRenamesSubject());
        }
        if (getRenamesSubjectRange() != null) {
            sb.append(',');
            sb.append("renamesSubjectRange:" + getRenamesSubjectRange());
        }

    }
106537
@Override
	public SortedSet<String> getDomainNames(String name) {
		if ( name.length() < 4)
			throw new IllegalArgumentException("Can't interpret IDs that are shorter than 4 residues!");

		String url = String.format("%srepresentativeDomains?cluster=%s&structureId=%s",
				base, cutoff, name);
		return requestRepresentativeDomains(url);
	}
551523
public static void checkName(String s) {
    for (char c : s.toCharArray()) {
      if (c == '.' ||
          c == '-' ||
          c == '~' ||
          c == ',' ||
          c == '@' ||
          c == ' ' ||
          c == '(' ||
          c == ')' ||
          c == '+' ||
          c == '!' ||
          c == '\'' ||
          c == '%' ||
          c == '#') {
        continue;
      }
      if (c < 32 || c >= 127 || !Character.isJavaIdentifierPart(c)) {
        throw new IllegalArgumentException(
          "Cache name contains illegal character: '" + c + "', name=\"" + s + "\"");
      }
    }
  }
632477
public void setReason(String s)
    {
        int spaceIdx;

        if (s == null)
        {
            return;
        }

        spaceIdx = s.indexOf(' ');
        if (spaceIdx <= 0)
        {
            spaceIdx = s.length();
        }

        try
        {
            this.reason = Integer.valueOf(s.substring(0, spaceIdx));
        }
        catch (NumberFormatException e)
        {
            return;
        }

        if (s.length() > spaceIdx + 3)
        {
            this.reasonTxt = s.substring(spaceIdx + 3, s.length());
        }
    }
185425
def get_name(self, properly_capitalized=False):
        """"""

        if properly_capitalized:
            self.name = _extract(
                self._request(self.ws_prefix + ".getInfo", True), "name"
            )

        return self.name
407967
@Override
    protected Element getTextInput(final Element rssRoot) {

        final String elementName = getTextInputLabel();

        final Element eChannel = rssRoot.getChild("channel", getRSSNamespace());
        if (eChannel != null) {
            return eChannel.getChild(elementName, getRSSNamespace());
        } else {
            return null;
        }

    }
999041
static String checkStringArgument(String s, String name) {
    checkNotNull(s, name);
    checkArgument(!s.trim().isEmpty(), "'" + name + "' must not be blank. Was: '" + s + "'");
    return s;
  }
1259343
private String randomString(String[] s) {
        if (s == null || s.length <= 0) return "";
        return s[this.random.nextInt(s.length)];
    }
1050668
public void parse(String s) {
        Preconditions.checkNotNull(s, "s");
        if (s.length() == 0) {
            // Nothing to do.
            return;
        }

        val pairs = s.split(pairDelimiter);
        for (String pair : pairs) {
            int delimiterPos = pair.indexOf(keyValueDelimiter);
            if (delimiterPos < 0) {
                throw new IllegalArgumentException(String.format("Invalid pair '%s' (missing key-value delimiter).", pair));
            }

            String key = pair.substring(0, delimiterPos);
            String value;
            if (delimiterPos == pair.length() - 1) {
                value = "";
            } else {
                value = pair.substring(delimiterPos + 1);
            }

            Extractor<?> e = this.extractors.get(key);
            Preconditions.checkArgument(e != null, String.format("No extractor provided for key '%s'.", key));
            e.process(value);
        }
    }
241521
public void performCompletion(String s) {
        int selStart = getSelectionStart();
        int selEnd = getSelectionEnd();
        if (selStart != selEnd)
            return;
        Editable text = getText();
        HintSpan[] spans = text.getSpans(0, length(), HintSpan.class);
        if (spans.length > 1)
            throw new IllegalStateException("more than one HintSpan");
        Word word = getCurrentWord();
        if (word == null)
            throw new IllegalStateException("no word to complete");
        autoCompleting = true;
        //for (HintSpan span : spans)
        //    text.delete(text.getSpanStart(span), text.getSpanEnd(span));
        text.delete(selStart, selStart + word.postCursor.length());
        text.delete(selStart - word.preCursor.length(), selStart);
        text.insert(selStart - word.preCursor.length(), s);
        setSelection(selStart - word.preCursor.length() + s.length());
        fireOnFilterEvent(null);
        super.setImeOptions(prevOptions);
        autoCompleting = false;
    }
952063
String prefix(String s) {
         return prefix(s, feedback.getPre(), feedback.getPost());
    }
1256635
public void setSelected(String s)
    {
        for (int i = 0; i < listBox.getItemCount(); i++)
        {
            if (listBox.getItemText(i).equals(s))
                listBox.setSelectedIndex(i);
        }
    }
1298515
private static final String urlEncode(String s) {
        try {
            return URLEncoder.encode(s, "UTF-8");
        } catch (Exception e) {
            logger.warn("Failed to encode '" + s + "'", e);
            return s;
        }
    }