Source:
<code>TwitterImpl(Configuration conf, Authorization auth) { super(conf, auth); INCLUDE_MY_RETWEET = new HttpParameter("include_my_retweet", conf.isIncludeMyRetweetEnabled()); if (implicitParamsMap.containsKey(conf)) { this.IMPLICIT_PARAMS = implicitParamsMap.get(conf); this.IMPLICIT_PARAMS_STR = implicitParamsStrMap.get(conf); } else { String implicitParamsStr = conf.isIncludeEntitiesEnabled() ? "include_entities=" + true : ""; boolean contributorsEnabled = conf.getContributingTo() != -1L; if (contributorsEnabled) { if (!"".equals(implicitParamsStr)) { implicitParamsStr += "?"; } implicitParamsStr += "contributingto=" + conf.getContributingTo(); } List<HttpParameter> params = new ArrayList<HttpParameter>(3); if (conf.isIncludeEntitiesEnabled()) { params.add(new HttpParameter("include_entities", "true")); } if (contributorsEnabled) { params.add(new HttpParameter("contributingto", conf.getContributingTo())); } if (conf.isTrimUserEnabled()) { params.add(new HttpParameter("trim_user", "1")); } if (conf.isIncludeExtAltTextEnabled()) { params.add(new HttpParameter("include_ext_alt_text", "true")); } if (conf.isTweetModeExtended()) { <START> params.add(new HttpParameter("tweet_mode", "extended")); <END> } HttpParameter[] implicitParams = params.toArray(new HttpParameter[params.size()]); implicitParamsStrMap.putIfAbsent(conf, implicitParamsStr); implicitParamsMap.putIfAbsent(conf, implicitParams); this.IMPLICIT_PARAMS = implicitParams; this.IMPLICIT_PARAMS_STR = implicitParamsStr; } }</code><technical_language>I enum useful illustrate allowed values of tweet_mode ("compat" "extended")</technical_language>

Target:
TwitterImpl(Configuration conf, Authorization auth) { super(conf, auth); INCLUDE_MY_RETWEET = new HttpParameter("include_my_retweet", conf.isIncludeMyRetweetEnabled()); if (implicitParamsMap.containsKey(conf)) { this.IMPLICIT_PARAMS = implicitParamsMap.get(conf); this.IMPLICIT_PARAMS_STR = implicitParamsStrMap.get(conf); } else { String implicitParamsStr = conf.isIncludeEntitiesEnabled() ? "include_entities=" + true : ""; boolean contributorsEnabled = conf.getContributingTo() != -1L; if (contributorsEnabled) { if (!"".equals(implicitParamsStr)) { implicitParamsStr += "&"; } implicitParamsStr += "contributingto=" + conf.getContributingTo(); } if (conf.isTweetModeExtended()) { if (!"".equals(implicitParamsStr)) { implicitParamsStr += "&"; } implicitParamsStr += "tweet_mode=extended"; } List<HttpParameter> params = new ArrayList<HttpParameter>(3); if (conf.isIncludeEntitiesEnabled()) { params.add(new HttpParameter("include_entities", "true")); } if (contributorsEnabled) { params.add(new HttpParameter("contributingto", conf.getContributingTo())); } if (conf.isTrimUserEnabled()) { params.add(new HttpParameter("trim_user", "1")); } if (conf.isIncludeExtAltTextEnabled()) { params.add(new HttpParameter("include_ext_alt_text", "true")); } if (conf.isTweetModeExtended()) { params.add(new HttpParameter("tweet_mode", "extended")); } HttpParameter[] implicitParams = params.toArray(new HttpParameter[params.size()]); implicitParamsStrMap.putIfAbsent(conf, implicitParamsStr); implicitParamsMap.putIfAbsent(conf, implicitParams); this.IMPLICIT_PARAMS = implicitParams; this.IMPLICIT_PARAMS_STR = implicitParamsStr; } }