id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
7,301 | protected abstract int gridCount();
protected CacheAtomicityMode atomicityMode() {
return TRANSACTIONAL;
}
public void testNoDataInCache() throws Exception {
<BUG>CacheQuery<List<?>> qry = ((IgniteKernal)grid(0))
.getCache(null).queries().createSqlFieldsQuery("select age from Person where orgId = 999");
Collection<Igni... | SqlFieldsQuery qry = new SqlFieldsQuery("select age from Person where orgId = 999");
Collection<List<?>> res = grid(0).cache(null).query(qry).getAll();
IgniteBiTuple<Integer, Integer> redRes = F.reduce(res, new AverageRemoteReducer());
assertEquals("Result", 0, F.reduce(Collections.singleton(redRes), new AverageLocalRe... |
7,302 | Bundle savedInstanceState) {
final View rootView = inflater.inflate(R.layout.tab_qibla, container, false);
final QiblaCompassView qiblaCompassView = (QiblaCompassView)rootView.findViewById(R.id.qibla_compass);
qiblaCompassView.setConstants(((TextView)rootView.findViewById(R.id.bearing_north)), getText(R.string.bearing_... | sOrientationListener = new android.hardware.SensorListener() {
|
7,303 | if(worldIn.getTileEntity(pos) != null){
TileEntity te = worldIn.getTileEntity(pos);
if(te.hasCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null) && te.getCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null).getTemp() >= -273D + mult){
te.getCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null).addHeat(-mult);
}
<... | if(te.hasCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null)){
te.getCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null).addHeat(mult);
|
7,304 | public static double betterRound(double numIn, int decPlac){
double opOn = Math.round(numIn * Math.pow(10, decPlac)) / Math.pow(10D, decPlac);
return opOn;
}
public static double centerCeil(double numIn, int tiers){
<BUG>return ((numIn > 0) ? Math.ceil(numIn * tiers) : Math.floor(numIn * tiers)) / tiers;
</BUG>
}
publi... | return ((numIn > 0) ? Math.ceil(numIn * (double) tiers) : Math.floor(numIn * (double) tiers)) / (double) tiers;
|
7,305 | package com.Da_Technomancer.crossroads.API;
import com.Da_Technomancer.crossroads.API.DefaultStorageHelper.DefaultStorage;
import com.Da_Technomancer.crossroads.API.heat.DefaultHeatHandler;
import com.Da_Technomancer.crossroads.API.heat.IHeatHandler;
import com.Da_Technomancer.crossroads.API.magic.DefaultMagicHandler;
... | import com.Da_Technomancer.crossroads.API.rotary.DefaultAxleHandler;
import com.Da_Technomancer.crossroads.API.rotary.DefaultCogHandler;
import com.Da_Technomancer.crossroads.API.rotary.IAxleHandler;
import com.Da_Technomancer.crossroads.API.rotary.ICogHandler;
|
7,306 | import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import net.minecraftforge.common.capabilities.CapabilityManager;
public class Capabilities{
@CapabilityInject(IHeatHandler.class)
<BUG>public static Capability<IHeatHandler> HEAT_HANDLER_CAPABILITY ... | @CapabilityInject(IAxleHandler.class)
public static Capability<IAxleHandler> AXLE_HANDLER_CAPABILITY = null;
@CapabilityInject(ICogHandler.class)
public static Capability<ICogHandler> COG_HANDLER_CAPABILITY = null;
|
7,307 | public IEffect getMixEffect(Color col){
if(col == null){
return effect;
}
int top = Math.max(col.getBlue(), Math.max(col.getRed(), col.getGreen()));
<BUG>if(top < rand.nextInt(128) + 128){
return voidEffect;</BUG>
}
return effect;
}
| if(top != 255){
return voidEffect;
|
7,308 | } else {
updateMemo();
callback.updateMemo();
}
dismiss();
<BUG>}else{
</BUG>
Toast.makeText(getActivity(), getString(R.string.toast_memo_empty), Toast.LENGTH_SHORT).show();
}
}
| [DELETED] |
7,309 | }
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_memo);
<BUG>ChinaPhoneHelper.setStatusBar(this,true);
</BUG>
topicId = getIntent().getLongExtra("topicId", -1);
if (topicId == -1) {
finish();
| ChinaPhoneHelper.setStatusBar(this, true);
|
7,310 | MemoEntry.COLUMN_REF_TOPIC__ID + " = ?"
, new String[]{String.valueOf(topicId)});
}
public Cursor selectMemo(long topicId) {
Cursor c = db.query(MemoEntry.TABLE_NAME, null, MemoEntry.COLUMN_REF_TOPIC__ID + " = ?", new String[]{String.valueOf(topicId)}, null, null,
<BUG>MemoEntry._ID + " DESC", null);
</BUG>
if (c != nu... | MemoEntry.COLUMN_ORDER + " ASC", null);
|
7,311 | MemoEntry._ID + " = ?",
new String[]{String.valueOf(memoId)});
}
public long updateMemoContent(long memoId, String memoContent) {
ContentValues values = new ContentValues();
<BUG>values.put(MemoEntry.COLUMN_CONTENT, memoContent);
return db.update(</BUG>
MemoEntry.TABLE_NAME,
values,
MemoEntry._ID + " = ?",
| return db.update(
|
7,312 | import android.widget.RelativeLayout;
import android.widget.TextView;
import com.kiminonawa.mydiary.R;
import com.kiminonawa.mydiary.db.DBManager;
import com.kiminonawa.mydiary.shared.EditMode;
<BUG>import com.kiminonawa.mydiary.shared.ThemeManager;
import java.util.List;
public class MemoAdapter extends RecyclerView.A... | import com.marshalchen.ultimaterecyclerview.dragsortadapter.DragSortAdapter;
public class MemoAdapter extends DragSortAdapter<DragSortAdapter.ViewHolder> implements EditMode {
|
7,313 | private DBManager dbManager;
private boolean isEditMode = false;
private EditMemoDialogFragment.MemoCallback callback;
private static final int TYPE_HEADER = 0;
private static final int TYPE_ITEM = 1;
<BUG>public MemoAdapter(FragmentActivity activity, long topicId, List<MemoEntity> memoList, DBManager dbManager, EditMe... | public MemoAdapter(FragmentActivity activity, long topicId, List<MemoEntity> memoList, DBManager dbManager, EditMemoDialogFragment.MemoCallback callback, RecyclerView recyclerView) {
super(recyclerView);
this.mActivity = activity;
|
7,314 | this.memoList = memoList;
this.dbManager = dbManager;
this.callback = callback;
}
@Override
<BUG>public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
</BUG>
View view;
if (isEditMode) {
if (viewType == TYPE_HEADER) {
| public DragSortAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
|
7,315 | editMemoDialogFragment.show(mActivity.getSupportFragmentManager(), "editMemoDialogFragment");
}
});
}
}
<BUG>protected class MemoViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
private View rootView;
private TextView TV_memo_item_content;</BUG>
private ImageView IV_memo_item_delete;
| protected class MemoViewHolder extends DragSortAdapter.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
private ImageView IV_memo_item_dot;
private TextView TV_memo_item_content;
|
7,316 | import java.util.List;
public class SPiDClient {
private static final SPiDClient instance = new SPiDClient();
private SPiDConfiguration config;
private SPiDAccessToken token;
<BUG>private SPiDAuthorizationRequest authorizationRequest;
</BUG>
private List<SPiDRequest> waitingRequests;
private SPiDClient() {
config = nul... | private SPiDAuthorizationListener authorizationListener;
|
7,317 | </BUG>
private List<SPiDRequest> waitingRequests;
private SPiDClient() {
config = null;
token = null;
<BUG>authorizationRequest = null;
</BUG>
waitingRequests = new ArrayList<SPiDRequest>();
}
public static SPiDClient getInstance() {
| import java.util.List;
public class SPiDClient {
private static final SPiDClient instance = new SPiDClient();
private SPiDConfiguration config;
private SPiDAccessToken token;
private SPiDAuthorizationListener authorizationListener;
authorizationListener = null;
|
7,318 | return token.getExpiresAt();
return null;
}
public boolean isAuthorized() {
return token != null;
<BUG>}
public SPiDConfiguration getConfig() {</BUG>
return config;
}
public SPiDAccessToken getAccessToken() {
| public boolean isClientToken() {
return token != null && token.isClientToken();
public SPiDConfiguration getConfig() {
|
7,319 | public SPiDConfiguration getConfig() {</BUG>
return config;
}
public SPiDAccessToken getAccessToken() {
return token;
<BUG>}
public SPiDRequest apiGetRequest(String path, SPiDRequestListener listener) {
SPiDRequest request = new SPiDRequest("GET", config.getServerURL() + "/api/" + config.getApiVersion() + path, listene... | return token.getExpiresAt();
return null;
public boolean isAuthorized() {
return token != null;
public boolean isClientToken() {
return token != null && token.isClientToken();
public SPiDConfiguration getConfig() {
|
7,320 | }
public boolean getDebug() {
return config.getDebugMode();
<BUG>}
}
</BUG>
| request.execute();
|
7,321 | } catch (ParseException e) {
errorCode = -1;
}
type = type != null ? type : SPID_EXCEPTION;
if (type.equals(API_EXCEPTION)) {
<BUG>return new SPiDApiException(error, descriptions, errorCode, type);
} else if (type.equals(OAUTH_EXCEPTION)) {</BUG>
return new SPiDOAuthException(error, descriptions, errorCode, type);
} el... | } else if (error != null && (error.equals(INVALID_TOKEN) || error.equals(EXPIRED_TOKEN))) {
return new SPiDInvalidAccessTokenException(error, descriptions, errorCode, type);
} else if (type.equals(OAUTH_EXCEPTION)) {
|
7,322 | } else {
return new SPiDException(error, descriptions, errorCode, SPID_EXCEPTION);
}
}
private static Map<String, String> descriptionsFromJSONObject(JSONObject jsonObject) {
<BUG>Map<String, String> map = new HashMap();
</BUG>
Iterator keys = jsonObject.keys();
while (keys.hasNext()) {
String key = (String) keys.next()... | Map<String, String> map = new HashMap<String, String>();
|
7,323 | private String signSecret;
private String appURLScheme;
private String serverURL;
private String redirectURL;
private String authorizationURL;
<BUG>private String registrationURL;
private String lostPasswordURL;
</BUG>
private String tokenURL;
| private String signupURL;
private String forgotPasswordURL;
|
7,324 |
registrationURL = serverURL + "/auth/signup";
</BUG>
}
<BUG>if (lostPasswordURL == null || lostPasswordURL.trim().equals("")) {
lostPasswordURL = serverURL + "/auth/forgotpassword";
</BUG>
}
if (serverClientID == null || serverClientID.trim().equals("")) {
| authorizationURL = serverURL + "/auth/login";
if (tokenURL == null || tokenURL.trim().equals("")) {
tokenURL = serverURL + "/oauth/token";
if (signupURL == null || signupURL.trim().equals("")) {
signupURL = serverURL + "/auth/signup";
if (forgotPasswordURL == null || forgotPasswordURL.trim().equals("")) {
forgotPasswor... |
7,325 | signSecret,
appURLScheme,
serverURL,
redirectURL,
authorizationURL,
<BUG>registrationURL,
lostPasswordURL,
</BUG>
tokenURL,
serverClientID,
| signupURL,
forgotPasswordURL,
|
7,326 | private String clientSecret;
private String signSecret;
private String appURLScheme;
private String serverURL;
private String authorizationURL;
<BUG>private String registrationURL;
private String lostPasswordURL;
</BUG>
private String tokenURL;
| private String signupURL;
private String forgotPasswordURL;
|
7,327 | private String serverClientID;
private Boolean useMobileWeb;
private String apiVersion;
private Boolean debugMode;
private Context context;
<BUG>protected SPiDConfiguration(String clientID, String clientSecret, String signSecret, String appURLScheme, String serverURL, String redirectURL, String authorizationURL, String... | protected SPiDConfiguration(String clientID, String clientSecret, String signSecret, String appURLScheme, String serverURL, String redirectURL, String authorizationURL, String registrationURL, String forgotPasswordURL, String tokenURL, String serverClientID, Boolean useMobileWeb, String apiVersion, Boolean debugMode, C... |
7,328 | this.signSecret = signSecret;
this.appURLScheme = appURLScheme;
this.serverURL = serverURL;
this.redirectURL = redirectURL;
this.authorizationURL = authorizationURL;
<BUG>this.registrationURL = registrationURL;
this.lostPasswordURL = lostPasswordURL;
</BUG>
this.tokenURL = tokenURL;
| this.signupURL = registrationURL;
this.forgotPasswordURL = forgotPasswordURL;
|
7,329 | package com.schibsted.android.sdk.keychain;
import android.content.Context;
import android.content.SharedPreferences;
import android.provider.Settings;
<BUG>import android.util.Base64;
import com.schibsted.android.sdk.accesstoken.SPiDAccessToken;
import com.schibsted.android.sdk.logger.SPiDLogger;
import com.schibsted.... | import com.schibsted.android.sdk.SPiDClient;
import com.schibsted.android.sdk.exceptions.SPiDKeychainException;
|
7,330 | return token;
} else {
return null;
}
}
<BUG>public static void clearAccessTokenFromSharedPreferences(Context context) {
SharedPreferences secure = context.getSharedPreferences(context.getPackageName() + ".sdk", Context.MODE_PRIVATE);</BUG>
SharedPreferences.Editor editor = secure.edit();
editor.remove("access_token");... | public static void clearAccessTokenFromSharedPreferences() {
Context context = SPiDClient.getInstance().getConfig().getContext();
SharedPreferences secure = context.getSharedPreferences(context.getPackageName() + ".sdk", Context.MODE_PRIVATE);
|
7,331 | Bundle savedInstanceState) {
final View rootView = inflater.inflate(R.layout.tab_qibla, container, false);
final QiblaCompassView qiblaCompassView = (QiblaCompassView)rootView.findViewById(R.id.qibla_compass);
qiblaCompassView.setConstants(((TextView)rootView.findViewById(R.id.bearing_north)), getText(R.string.bearing_... | sOrientationListener = new android.hardware.SensorListener() {
|
7,332 | import org.slf4j.LoggerFactory;
public class OneWireBindingConfigFactory {
private static final Logger logger = LoggerFactory.getLogger(OneWireBindingConfigFactory.class);
public static OneWireBindingConfig createOneWireDeviceProperty(Item pvItem, String pvBindingConfig)
throws BindingConfigParseException {
<BUG>logger... | logger.debug("createOneWireDeviceProperty: {} - bindingConfig:{}", pvItem.getName(), pvBindingConfig);
|
7,333 | lvNewBindingConfig = new OneWireDevicePropertyStringBindingConfig(pvBindingConfig);
} else {
throw new UnsupportedOperationException(
"the item-type " + pvItem.getClass() + " cannot be a onewire device");
}
<BUG>logger.debug("created newBindingConfig: " + lvNewBindingConfig.toString());
</BUG>
return lvNewBindingConfig... | logger.debug("created newBindingConfig: {}", lvNewBindingConfig.toString());
|
7,334 | scheduleAllBindings(lvProvider);
}
}
@Override
protected void internalReceiveCommand(String pvItemName, Command pvCommand) {
<BUG>logger.debug("received command " + pvCommand.toString() + " for item " + pvItemName);
OneWireBindingConfig lvBindigConfig = getBindingConfig(pvItemName);</BUG>
if (lvBindigConfig instanceof ... | logger.debug("received command {} for item {}", pvCommand, pvItemName);
OneWireBindingConfig lvBindigConfig = getBindingConfig(pvItemName);
|
7,335 | OneWireConnection.writeToOneWire(lvWritableBindingConfig.getDevicePropertyPath(), lvStringValue);
} else if (lvBindigConfig instanceof AbstractOneWireControlBindingConfig) {
AbstractOneWireControlBindingConfig lvControlBindingConfig = (AbstractOneWireControlBindingConfig) lvBindigConfig;
lvControlBindingConfig.executeC... | logger.debug("received command {} for item {} which is not writable or executable", pvCommand,
pvItemName);
|
7,336 | if (lvAutoRefreshTimeInSecs > 0) {
if (!ivOneWireReaderScheduler.scheduleUpdate(pvItemName, lvAutoRefreshTimeInSecs)) {
logger.warn("Couldn't add to OneWireUpdate scheduler", lvDeviceBindingConfig);
}
} else {
<BUG>logger.debug("Didn't add to OneWireUpdate scheduler, because refresh is <= 0: "
+ lvDeviceBindingConfig.... | if (!ivOneWireReaderScheduler.scheduleUpdate(lvItemName, lvAutoRefreshTimeInSecs)) {
logger.warn("Couldn't add to OneWireUpdate scheduler",
lvDevicePropertyBindingConfig);
|
7,337 | public void updateItemFromOneWire(String pvItemName) {
if (OneWireConnection.getConnection() != null) {
AbstractOneWireDevicePropertyBindingConfig pvBindingConfig = (AbstractOneWireDevicePropertyBindingConfig) getBindingConfig(
pvItemName);
if (pvBindingConfig == null) {
<BUG>logger.error("no bindingConfig found for it... | logger.error("no bindingConfig found for itemName={} cannot update! It will be removed from scheduler",
ivOneWireReaderScheduler.removeItem(pvItemName);
|
7,338 | if (lvReadValue != null) {
Type lvNewType = pvBindingConfig.convertReadValueToType(lvReadValue);
if (lvItem != null) {
postUpdate(lvItem, lvNewType);
} else {
<BUG>logger.error("There is no Item for ItemName=" + pvItemName);
</BUG>
}
} else {
String lvLogText = "Set Item for itemName=" + pvItemName
| logger.error("There is no Item for ItemName={}", pvItemName);
|
7,339 | if (!ivPostOnlyChangedValues || !lvNewState.equals(lvCachedState)) {
ivCacheItemStates.remove(pvItem.getName());
ivCacheItemStates.put(pvItem.getName(), lvNewState);
eventPublisher.postUpdate(pvItem.getName(), lvNewState);
} else {
<BUG>logger.debug("didn't post update to eventPublisher, because state did not change fo... | logger.debug("didn't post update to eventPublisher, because state did not change for item {}",
|
7,340 | public String getBindingType() {
return "onewire";
}
@Override
public void validateItemType(Item pvItem, String pvBindingConfig) throws BindingConfigParseException {
<BUG>logger.debug("validateItemType: " + pvItem.getName() + " - bindingConfig:" + pvBindingConfig);
if (OneWireBindingConfigFactory.isValidItemType(pvItem... | logger.debug("validateItemType: {} - bindingConfig:{}", pvItem.getName(), pvBindingConfig);
if (OneWireBindingConfigFactory.isValidItemType(pvItem, pvBindingConfig)) {
|
7,341 | pageContext.getOut().print(content);
} catch (IOException e) {
if (OpenCms.getLog(this).isErrorEnabled()) {
OpenCms.getLog(this).error("Error in Jsp <contentshow> tag processing", e);
}
<BUG>throw new javax.servlet.jsp.JspException(e);
}</BUG>
return SKIP_BODY;
}
public String getElement() {
| throw new JspException(e);
|
7,342 | public class CmsJspTagContentLoop extends TagSupport implements I_CmsJspTagContentContainer {
private A_CmsXmlDocument m_content;
private String m_element;
private int m_index = -1;
private Locale m_locale;
<BUG>private String m_resourceName;
public int doAfterBody() {</BUG>
if (m_content.hasValue(m_element, m_locale, ... | private I_CmsJspTagContentContainer m_parentTag;
public int doAfterBody() {
|
7,343 | import java.net.URI;
import java.util.Calendar;
import java.util.Date;
import java.util.Formatter;
import java.util.List;
<BUG>import javax.ws.rs.core.UriBuilder;
import org.apache.commons.httpclient.URIException;
import org.apache.commons.httpclient.util.URIUtil;</BUG>
import org.suigeneris.jrcs.rcs.Version;
import or... | [DELETED] |
7,344 | if (home != null) {
space.setHome(home.getPrefixedFullName());
space.setXwikiRelativeUrl(home.getURL("view"));
space.setXwikiAbsoluteUrl(home.getExternalURL("view"));
}
<BUG>String pagesUri = UriBuilder.fromUri(baseUri).path(PagesResource.class).build(wikiName, spaceName).toString();
</BUG>
Link pagesLink = objectFacto... | String pagesUri = uri(baseUri, PagesResource.class, wikiName, spaceName);
|
7,345 | Link pagesLink = objectFactory.createLink();
pagesLink.setHref(pagesUri);
pagesLink.setRel(Relations.PAGES);
space.getLinks().add(pagesLink);
if (home != null) {
<BUG>String homeUri =
UriBuilder.fromUri(baseUri).path(PageResource.class).build(wikiName, spaceName, home.getName())
.toString();</BUG>
Link homeLink = obje... | String homeUri = uri(baseUri, PageResource.class, wikiName, spaceName, home.getName());
|
7,346 | .toString();</BUG>
Link homeLink = objectFactory.createLink();
homeLink.setHref(homeUri);
homeLink.setRel(Relations.HOME);
space.getLinks().add(homeLink);
<BUG>}
String searchUri =
UriBuilder.fromUri(baseUri).path(SpaceSearchResource.class).build(wikiName, spaceName).toString();</BUG>
Link searchLink = objectFactory.cr... | Link pagesLink = objectFactory.createLink();
pagesLink.setHref(pagesUri);
pagesLink.setRel(Relations.PAGES);
space.getLinks().add(pagesLink);
if (home != null) {
String homeUri = uri(baseUri, PageResource.class, wikiName, spaceName, home.getName());
String searchUri = uri(baseUri, SpaceSearchResource.class, wikiName, s... |
7,347 | if (!languages.isEmpty()) {
if (!doc.getDefaultLanguage().equals("")) {
translations.setDefault(doc.getDefaultLanguage());
Translation translation = objectFactory.createTranslation();
translation.setLanguage(doc.getDefaultLanguage());
<BUG>String pageTranslationUri =
UriBuilder.fromUri(baseUri).path(PageResource.class)... | uri(baseUri, PageResource.class, doc.getWiki(), doc.getSpace(), doc.getName());
|
7,348 | }
}
for (String language : languages) {
Translation translation = objectFactory.createTranslation();
translation.setLanguage(language);
<BUG>String pageTranslationUri =
UriBuilder.fromUri(baseUri).path(PageTranslationResource.class)
.build(doc.getWiki(), doc.getSpace(), doc.getName(), language).toString();</BUG>
Link p... | uri(baseUri, PageTranslationResource.class, doc.getWiki(), doc.getSpace(), doc.getName(), language);
|
7,349 | Link pageTranslationLink = objectFactory.createLink();
pageTranslationLink.setHref(pageTranslationUri);
pageTranslationLink.setRel(Relations.PAGE);
translation.getLinks().add(pageTranslationLink);
String historyUri =
<BUG>UriBuilder.fromUri(baseUri).path(PageTranslationHistoryResource.class)
.build(doc.getWiki(), doc.g... | uri(baseUri, PageTranslationHistoryResource.class, doc.getWiki(), doc.getSpace(), doc.getName(),
language);
Link historyLink = objectFactory.createLink();
|
7,350 | pageSummary.setParent(doc.getParent());
if (parent != null && !parent.isNew()) {
pageSummary.setParentId(parent.getPrefixedFullName());
} else {
pageSummary.setParentId("");
<BUG>}
String spaceUri =
UriBuilder.fromUri(baseUri).path(SpaceResource.class).build(doc.getWiki(), doc.getSpace()).toString();</BUG>
Link spaceLi... | String spaceUri = uri(baseUri, SpaceResource.class, doc.getWiki(), doc.getSpace());
|
7,351 | UriBuilder.fromUri(baseUri).path(SpaceResource.class).build(doc.getWiki(), doc.getSpace()).toString();</BUG>
Link spaceLink = objectFactory.createLink();
spaceLink.setHref(spaceUri);
spaceLink.setRel(Relations.SPACE);
pageSummary.getLinks().add(spaceLink);
<BUG>if (parent != null) {
String parentUri =
UriBuilder.fromUr... | pageSummary.setParent(doc.getParent());
if (parent != null && !parent.isNew()) {
pageSummary.setParentId(parent.getPrefixedFullName());
} else {
pageSummary.setParentId("");
}
String spaceUri = uri(baseUri, SpaceResource.class, doc.getWiki(), doc.getSpace());
String parentUri = uri(baseUri, PageResource.class, parent.g... |
7,352 | Link historyLink = objectFactory.createLink();
historyLink.setHref(historyUri);
historyLink.setRel(Relations.HISTORY);
pageSummary.getLinks().add(historyLink);
if (!doc.getChildren().isEmpty()) {
<BUG>String pageChildrenUri =
UriBuilder.fromUri(baseUri).path(PageChildrenResource.class)
.build(doc.getWiki(), doc.getSpac... | uri(baseUri, PageChildrenResource.class, doc.getWiki(), doc.getSpace(), doc.getName());
|
7,353 | objectsLink.setRel(Relations.OBJECTS);
pageSummary.getLinks().add(objectsLink);
}
com.xpn.xwiki.api.Object tagsObject = doc.getObject("XWiki.TagClass", 0);
if (tagsObject != null) {
<BUG>if (tagsObject.getProperty("tags") != null) {
String tagsUri =
UriBuilder.fromUri(baseUri).path(PageTagsResource.class)
.build(doc.ge... | String tagsUri = uri(baseUri, PageTagsResource.class, doc.getWiki(), doc.getSpace(), doc.getName());
|
7,354 | tagsLink.setHref(tagsUri);
tagsLink.setRel(Relations.TAGS);
pageSummary.getLinks().add(tagsLink);
}
}
<BUG>String syntaxesUri = UriBuilder.fromUri(baseUri).path(SyntaxesResource.class).build().toString();
Link syntaxesLink = objectFactory.createLink();</BUG>
syntaxesLink.setHref(syntaxesUri);
syntaxesLink.setRel(Relati... | String syntaxesUri = uri(baseUri, SyntaxesResource.class);
Link syntaxesLink = objectFactory.createLink();
|
7,355 | }
return historySummary;
}
private static void fillAttachment(Attachment attachment, ObjectFactory objectFactory, URI baseUri,
<BUG>com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl,
XWiki xwikiApi, Boolean withPrettyNames)
{</BUG>
Document doc = xwikiAttachment.getDocument... | com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl, XWiki xwikiApi,
{
|
7,356 | Calendar calendar = Calendar.getInstance();
calendar.setTime(xwikiAttachment.getDate());
attachment.setDate(calendar);
attachment.setXwikiRelativeUrl(xwikiRelativeUrl);
attachment.setXwikiAbsoluteUrl(xwikiAbsoluteUrl);
<BUG>String pageUri =
UriBuilder.fromUri(baseUri).path(PageResource.class).build(doc.getWiki(), doc.g... | String pageUri = uri(baseUri, PageResource.class, doc.getWiki(), doc.getSpace(), doc.getName());
|
7,357 | }
return attachmentUri;
}</BUG>
public static Attachment createAttachment(ObjectFactory objectFactory, URI baseUri,
<BUG>com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl,
XWiki xwikiApi, Boolean withPrettyNames)
{</BUG>
Attachment attachment = objectFactory.createAttachmen... | com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl, XWiki xwikiApi,
{
|
7,358 | attachmentLink.setRel(Relations.ATTACHMENT_DATA);
attachment.getLinks().add(attachmentLink);
return attachment;
}
public static Attachment createAttachmentAtVersion(ObjectFactory objectFactory, URI baseUri,
<BUG>com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl,
XWiki xwiki... | com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl, XWiki xwikiApi,
{
|
7,359 | .build(doc.getWiki(), doc.getSpace(), doc.getName(), doc.getVersion(),
xwikiObject.getClassName(),
xwikiObject.getNumber()).toString();</BUG>
} else {
<BUG>propertiesUri =
UriBuilder
.fromUri(baseUri)
.path(ObjectPropertiesResource.class)
.build(doc.getWiki(), doc.getSpace(), doc.getName(), xwikiObject.getClassName(),
... | fillObjectSummary(objectSummary, objectFactory, baseUri, doc, xwikiObject, xwikiApi, withPrettyNames);
Link objectLink = getObjectLink(objectFactory, baseUri, doc, xwikiObject, useVersion, Relations.OBJECT);
objectSummary.getLinks().add(objectLink);
String propertiesUri;
if (useVersion) {
uri(baseUri, ObjectPropertiesA... |
7,360 | .build(doc.getWiki(), doc.getSpace(), doc.getName(), doc.getVersion(),
xwikiObject.getClassName(), xwikiObject.getNumber(), propertyClass.getName())
.toString();</BUG>
} else {
<BUG>propertyUri =
UriBuilder
.fromUri(baseUri)
.path(ObjectPropertyResource.class)
.build(doc.getWiki(), doc.getSpace(), doc.getName(), xwikiO... | propertiesUri =
uri(baseUri, ObjectPropertiesResource.class, doc.getWiki(), doc.getSpace(), doc.getName(),
xwikiObject.getClassName(), xwikiObject.getNumber());
|
7,361 | .build(doc.getWiki(), doc.getSpace(), doc.getName(), doc.getVersion(),
xwikiObject.getClassName(),
xwikiObject.getNumber()).toString();</BUG>
} else {
<BUG>objectUri =
UriBuilder
.fromUri(baseUri)
.path(ObjectResource.class)
.build(doc.getWiki(), doc.getSpace(), doc.getName(), xwikiObject.getClassName(),
xwikiObject.ge... | private static Link getObjectLink(ObjectFactory objectFactory, URI baseUri, Document doc, BaseObject xwikiObject,
boolean useVersion, String relation)
String objectUri;
if (useVersion) {
uri(baseUri, ObjectAtPageVersionResource.class, doc.getWiki(), doc.getSpace(), doc.getName(),
doc.getVersion(), xwikiObject.getClassN... |
7,362 | Link propertyLink = objectFactory.createLink();
propertyLink.setHref(propertyUri);
propertyLink.setRel(Relations.SELF);
property.getLinks().add(propertyLink);
clazz.getProperties().add(property);
<BUG>}
String classUri =
UriBuilder.fromUri(baseUri).path(ClassResource.class).build(wikiName, xwikiClass.getName()).toStrin... | String classUri = uri(baseUri, ClassResource.class, wikiName, xwikiClass.getName());
|
7,363 | String classUri =
UriBuilder.fromUri(baseUri).path(ClassResource.class).build(wikiName, xwikiClass.getName()).toString();</BUG>
Link classLink = objectFactory.createLink();
classLink.setHref(classUri);
classLink.setRel(Relations.SELF);
<BUG>clazz.getLinks().add(classLink);
String propertiesUri =
UriBuilder.fromUri(base... | propertyLink.setHref(propertyUri);
propertyLink.setRel(Relations.SELF);
property.getLinks().add(propertyLink);
clazz.getProperties().add(property);
}
String classUri = uri(baseUri, ClassResource.class, wikiName, xwikiClass.getName());
String propertiesUri = uri(baseUri, ClassPropertiesResource.class, wikiName, xwikiCla... |
7,364 | <BUG>package org.xwiki.rest.internal;
import org.apache.commons.lang3.StringUtils;</BUG>
import org.xwiki.component.manager.ComponentManager;
import org.xwiki.context.Execution;
import org.xwiki.model.reference.EntityReferenceSerializer;
| import java.net.URI;
import javax.ws.rs.core.UriBuilder;
import org.apache.commons.httpclient.URIException;
import org.apache.commons.httpclient.util.URIUtil;
import org.apache.commons.lang3.StringUtils;
|
7,365 | return build( modelSource, null, request );
}
private ModelBuildingResult build( ModelSource modelSource, File pomFile, ModelBuildingRequest request )
throws ModelBuildingException
{
<BUG>DefaultModelBuildingResult result = new DefaultModelBuildingResult();
ProfileActivationContext profileActivationContext = getProfile... | List<ModelProblem> problems = new ArrayList<ModelProblem>();
List<Profile> activeExternalProfiles = getActiveExternalProfiles( request, profileActivationContext, problems );
Model model = readModel( modelSource, request, problems );
|
7,366 | Model resultModel = current;
resultModels.add( resultModel );
Model rawModel = ModelUtils.cloneModel( current );
rawModels.add( rawModel );
modelNormalizer.mergeDuplicates( resultModel, request );
<BUG>List<Profile> activeProjectProfiles = getActiveProjectProfiles( rawModel, profileActivationContext );
List<Profile> ac... | List<Profile> activeProjectProfiles =
getActiveProjectProfiles( rawModel, profileActivationContext, problems );
List<Profile> activeProfiles = activeProjectProfiles;
|
7,367 | for ( Profile activeProfile : activeProfiles )
{
profileInjector.injectProfile( resultModel, activeProfile, request );
}
result.setActiveProfiles( rawModel, activeProfiles );
<BUG>configureResolver( request.getModelResolver(), resultModel );
</BUG>
}
Model superModel = getSuperModel();
rawModels.add( superModel );
| configureResolver( request.getModelResolver(), resultModel, problems );
|
7,368 | rawModels.add( superModel );
resultModels.add( superModel );
result.setRawModels( rawModels );
assembleInheritance( resultModels, request );
Model resultModel = resultModels.get( 0 );
<BUG>resultModel = interpolateModel( resultModel, request );
</BUG>
resultModels.set( 0, resultModel );
modelPathTranslator.alignToBaseD... | resultModel = interpolateModel( resultModel, request, problems );
|
7,369 | managementInjector.injectManagement( resultModel, request );
if ( request.isProcessPlugins() )
{
pluginConfigurationExpander.expandPluginConfiguration( resultModel, request );
}
<BUG>validateModel( resultModel, false, request );
result.setEffectiveModel( resultModel );</BUG>
return result;
}
| validateModel( resultModel, false, request, problems );
if ( !problems.isEmpty() )
throw new ModelBuildingException( problems );
result.setEffectiveModel( resultModel );
|
7,370 | context.setActiveProfileIds( request.getActiveProfileIds() );
context.setInactiveProfileIds( request.getInactiveProfileIds() );
context.setExecutionProperties( request.getExecutionProperties() );
return context;
}
<BUG>private Model readModel( ModelSource modelSource, ModelBuildingRequest request )
</BUG>
throws ModelB... | private Model readModel( ModelSource modelSource, ModelBuildingRequest request, List<ModelProblem> problems )
|
7,371 | Model parent = models.get( i + 1 );
Model child = models.get( i );
inheritanceAssembler.assembleModelInheritance( child, parent, request );
}
}
<BUG>private Model interpolateModel( Model model, ModelBuildingRequest request )
throws ModelBuildingException</BUG>
{
try
| private Model interpolateModel( Model model, ModelBuildingRequest request, List<ModelProblem> problems )
|
7,372 | {
Parent parent = childModel.getParent();
ModelResolver modelResolver = request.getModelResolver();
if ( modelResolver == null )
{
<BUG>Exception e = new IllegalArgumentException( "No model resolver provided" );
throw new UnresolvableParentException( "Failed to resolve parent POM " + toId( parent ) + " for POM "
+ toSo... | for ( int i = models.size() - 2; i >= 0; i-- )
Model parent = models.get( i + 1 );
Model child = models.get( i );
inheritanceAssembler.assembleModelInheritance( child, parent, request );
}
}
private Model interpolateModel( Model model, ModelBuildingRequest request, List<ModelProblem> problems )
|
7,373 | cgl.setLexicalvalue(valueEdit);
cgl.setIdgroup(idDomaine);
cgl.setIdthesaurus(idTheso);
cgl.setLang(langueEdit);
GroupHelper cgh = new GroupHelper();
<BUG>if (!cgh.isDomainExist(connect.getPoolConnexion(),
cgl.getLexicalvalue(),</BUG>
cgl.getIdthesaurus(), cgl.getLang())) {
FacesContext.getCurrentInstance().addMessage(... | if (cgh.isDomainExist(connect.getPoolConnexion(),
cgl.getLexicalvalue(),
|
7,374 | Term terme = new Term();
terme.setId_thesaurus(idTheso);
terme.setLang(langueEdit);
terme.setLexical_value(valueEdit);
terme.setId_term(idT);
<BUG>if (new TermHelper().isTermExist(connect.getPoolConnexion(),
</BUG>
terme.getLexical_value(),
terme.getId_thesaurus(), terme.getLang())) {
FacesContext.getCurrentInstance().... | if (termHelper.isTermExist(connect.getPoolConnexion(),
|
7,375 | Term terme = new Term();
terme.setId_thesaurus(idTheso);
terme.setLang(langueEdit);
terme.setLexical_value(valueEdit);
terme.setId_term(idT);
<BUG>if (new TermHelper().isTermExist(connect.getPoolConnexion(),
</BUG>
terme.getLexical_value(),
terme.getId_thesaurus(), terme.getLang())) {
FacesContext.getCurrentInstance().... | if (termHelper.isTermExist(connect.getPoolConnexion(),
|
7,376 | langues = new ArrayList<>();
HashMap<String, String> tempMapL = new HashMap<>();
for (NodeTermTraduction ntt : tempNTT) {
tempMapL.put(ntt.getLang(), ntt.getLexicalValue());
}
<BUG>langues.addAll(tempMapL.entrySet());
}</BUG>
langueEdit = "";
valueEdit = "";
if (!tradExist) {
| if(newTraduction) {
nom = termHelper.getThisTerm(connect.getPoolConnexion(),idC, idTheso, idlangue).getLexical_value();
|
7,377 | if (n.getTitle().trim().isEmpty()) {
dynamicTreeNode = (TreeNode) new MyTreeNode(1, n.getIdConcept(), idTheso, idlangue, "", "", "dossier", n.getIdConcept(), root);
} else {
dynamicTreeNode = (TreeNode) new MyTreeNode(1, n.getIdConcept(), idTheso, idlangue, "", "", "dossier", n.getTitle(), root);
}
<BUG>new DefaultTree... | DefaultTreeNode defaultTreeNode = new DefaultTreeNode("fake", dynamicTreeNode);
defaultTreeNode.setExpanded(true);
|
7,378 | SKOSXmlDocument sxd = new ReadFileSKOS().readStringBuffer(sb);
for (SKOSResource resource : sxd.getResourcesList()) {
NodeAlignment na = new NodeAlignment();
na.setInternal_id_concept(idC);
na.setInternal_id_thesaurus(idTheso);
<BUG>na.setThesaurus_target("OpenTheso");
</BUG>
na.setUri_target(resource.getUri());
for(SK... | na.setThesaurus_target("Pactols");
|
7,379 | import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
<BUG>import java.util.Set;
import org.apache.maven.model.Activation;</BUG>
import org.apache.maven.model.ActivationFile;
import org.apache.maven.model.ActivationOS;
import org.apache.m... | import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.maven.model.Activation;
|
7,380 | import org.sonatype.aether.repository.RemoteRepository;
import org.sonatype.aether.repository.RepositoryPolicy;
import org.sonatype.aether.util.artifact.ArtifactProperties;
import org.sonatype.aether.util.artifact.DefaultArtifact;
import org.sonatype.aether.util.artifact.DefaultArtifactType;
<BUG>public class MavenConv... | private static final Logger log = Logger.getLogger(MavenConverter.class.getName());
private static final String EMPTY = "";
|
7,381 | package org.jboss.shrinkwrap.resolver.impl.maven;
import java.util.Arrays;
<BUG>import java.util.List;
import org.jboss.shrinkwrap.resolver.api.maven.MavenArtifactInfo;</BUG>
import org.jboss.shrinkwrap.resolver.api.maven.PackagingType;
import org.jboss.shrinkwrap.resolver.api.maven.ScopeType;
import org.jboss.shrinkwr... | import java.util.logging.Level;
import java.util.logging.Logger;
import org.jboss.shrinkwrap.resolver.api.maven.MavenArtifactInfo;
|
7,382 | import org.jboss.shrinkwrap.resolver.api.maven.ScopeType;
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinate;
import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenCoordinates;
import org.sonatype.aether.artifact.Artifact;
import org.sonatype.aether.graph.DependencyNode;
<BUG>public clas... | private static final Logger log = Logger.getLogger(MavenArtifactInfoImpl.class.getName());
protected final MavenCoordinate mavenCoordinate;
|
7,383 | { "test-deps-k", new Class<?>[] { Key.class, KeyException.class } },
{ "test-deps-l", new Class<?>[] { LinkedList.class, Long.class, ListIterator.class } },
{ "test-dependency-scopes", new Class<?>[] { Writer.class, Reader.class } },
{ "test-dependency-test-scope", new Class<?>[] { Method.class, Type.class, Field.class... | { "test-dependency-with-test-jar-tests", new Class<?>[] { Field.class } },
{ "test-wrong-scope", new Class<?>[] { ArrayList.class, Key.class, KeyException.class } },};
return Arrays.asList(data);
|
7,384 | protected String prefixes;
protected RpmType type = BINARY;
protected Architecture architecture = NOARCH;
protected Os os = LINUX;
protected File destination;
<BUG>protected List< ArchiveFileSet> filesets = new ArrayList< ArchiveFileSet>();
protected List< Link> links = new ArrayList< Link>();</BUG>
protected List< Dep... | protected List< Ghost> ghosts = new ArrayList< Ghost>();
protected List< Link> links = new ArrayList< Link>();
|
7,385 | } else {
File file = new File( scanner.getBasedir(), entry);
builder.addFile(prefix + entry, file, filemode, dirmode, directive, username, group);
}
}
<BUG>}
for ( Link link : links) builder.addLink( link.getPath(), link.getTarget(), link.getPermissions());</BUG>
for ( Depends dependency : depends) builder.addDependenc... | for ( Ghost ghost : ghosts) {
builder.addFile( ghost.getPath(), null, ghost.getFilemode(), ghost.getDirmode(), Directive.GHOST, ghost.getUsername(), ghost.getGroup());
for ( Link link : links) builder.addLink( link.getPath(), link.getTarget(), link.getPermissions());
|
7,386 | public void setProvides( String provides) { this.provides = provides; }
public void setPrefixes( String prefixes) { this.prefixes = prefixes; }
public void setDestination( File destination) { this.destination = destination; }
public void addZipfileset( ZipFileSet fileset) { filesets.add( fileset); }
public void addTarf... | public void addGhost( Ghost ghost) { ghosts.add( ghost); }
public void addLink( Link link) { links.add( link); }
|
7,387 | import org.freecompany.redline.Util;
import static java.util.Arrays.asList;
import static java.util.logging.Level.FINE;
import static java.util.logging.Logger.getLogger;
import static org.freecompany.redline.Util.normalizePath;
<BUG>import static org.freecompany.redline.payload.CpioHeader.DEFAULT_DIRECTORY_PERMISSION;
... | import static org.freecompany.redline.payload.CpioHeader.DEFAULT_FILE_PERMISSION;
import static org.freecompany.redline.payload.CpioHeader.DEFAULT_USERNAME;
import static org.freecompany.redline.payload.CpioHeader.DEFAULT_GROUP;
import static org.freecompany.redline.payload.CpioHeader.DIR;
|
7,388 | package org.apache.cxf.rt.security.saml.xacml;
import java.security.Principal;
import java.util.List;
import org.apache.cxf.message.Message;
import org.opensaml.xacml.ctx.RequestType;
<BUG>@Deprecated</BUG>
public interface XACMLRequestBuilder {
RequestType createRequest(Principal principal, List<String> roles, Message... | [DELETED] |
7,389 | import melnorme.lang.ide.core.utils.EclipseUtils;
import melnorme.lang.ide.core.utils.ResourceUtils;
import melnorme.lang.tooling.ast.SourceRange;
import melnorme.lang.tooling.common.SourceLineColumnRange;
import melnorme.lang.tooling.common.ToolSourceMessage;
<BUG>import melnorme.lang.tooling.common.ops.IOperationMoni... | import melnorme.utilbox.collections.ArrayList2;
import melnorme.utilbox.collections.HashMap2;
|
7,390 | public Tag createTag(String name) throws WeixinException {
String tag_create_uri = getRequestUri("tag_create_uri");
WeixinResponse response = weixinExecutor.post(
String.format(tag_create_uri, tokenManager.getAccessToken()),
String.format("{\"tag\":{\"name\":\"%s\"}}", name));
<BUG>return JSON.parseObject(response.getA... | JSONObject obj = response.getAsJson().getJSONObject("tag");
return new Tag(obj.getIntValue("id"), obj.getString("name"));
}
|
7,391 | public Element getElement(final int index) throws IndexOutOfBoundsException
{
return elements.get(index);
}
public boolean isRoot()
<BUG>{
return elements.isEmpty() || elements.size() == 1 &&
SchemaUtils.isUrn(elements.get(0).getAttribute());</BUG>
}
public int size()
| return elements.isEmpty();
|
7,392 | {
return Parser.parsePath(pathString);
}
public static Path root()
{
<BUG>return ROOT;
}
public static Path root(final String extensionSchema)
</BUG>
{
| return new Path(schemaUrn, elements.subList(0, index));
public Iterator<Element> iterator()
|
7,393 | import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;
public class DependencyConvergenceReport
extends AbstractProjectInfoReport
<BUG>{
private List reactorProjects;
private static final int PERCENTAGE = 100;</BUG>
public String getOutputName()
{
| private static final int PERCENTAGE = 100;
private static final List SUPPORTED_FONT_FAMILY_NAMES = Arrays.asList( GraphicsEnvironment
.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() );
|
7,394 | sink.section1();
sink.sectionTitle1();
sink.text( getI18nString( locale, "title" ) );
sink.sectionTitle1_();
Map dependencyMap = getDependencyMap();
<BUG>generateLegend( locale, sink );
generateStats( locale, sink, dependencyMap );
generateConvergence( locale, sink, dependencyMap );
sink.section1_();</BUG>
sink.body_()... | sink.lineBreak();
sink.section1_();
|
7,395 | Iterator it = artifactMap.keySet().iterator();
while ( it.hasNext() )
{
String version = (String) it.next();
sink.tableRow();
<BUG>sink.tableCell();
sink.text( version );</BUG>
sink.tableCell_();
sink.tableCell();
generateVersionDetails( sink, artifactMap, version );
| sink.tableCell( String.valueOf( cellWidth ) + "px" );
sink.text( version );
|
7,396 | sink.tableCell();
sink.text( getI18nString( locale, "legend.shared" ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableCell();
iconError( sink );</BUG>
sink.tableCell_();
sink.tableCell();
sink.text( getI18nString( locale, "legend.different" ) );
| sink.tableCell( "15px" ); // according /images/icon_error_sml.gif
iconError( sink );
|
7,397 | sink.tableCaption();
sink.text( getI18nString( locale, "stats.caption" ) );
sink.tableCaption_();</BUG>
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.subprojects" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
s... | sink.bold();
sink.bold_();
sink.tableCaption_();
sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.subprojects" ) );
sink.tableHeaderCell_();
|
7,398 | sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.dependencies" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( depCount ) );
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.dependencies" ) );
sink.tableHeaderCell_();
|
7,399 | sink.text( String.valueOf( convergence ) + "%" );
sink.bold_();
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.readyrelease" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
if ( convergence >= PERCENTAGE && snapshotCount <= 0 )
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.readyrelease" ) );
sink.tableHeaderCell_();
|
7,400 | {
ReverseDependencyLink p1 = (ReverseDependencyLink) o1;
ReverseDependencyLink p2 = (ReverseDependencyLink) o2;
return p1.getProject().getId().compareTo( p2.getProject().getId() );
}
<BUG>else
{</BUG>
return 0;
}
}
| iconError( sink );
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.