diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class Transaction extends Message implements Serializable {
cursor += output . getMessageSize ( ) ;
}
lockTime = readUint32 ( ) ;
-
- SINGLE
- hash = new Sha256Hash ( reverseBytes ( doubleDigest ( bytes , offset , cursor - offset ) ) ) ;
}
COMMENT
<nb> public class BlockChainTest {
Blo... | Don t pre calculate the hash in the Transaction parse code |
<nb> public abstract class DataSet < T extends Entry > {
COMMENT
COMMENT
protected void calcMinMax ( int start , int end ) {
- if ( mYVals . size ( ) == NUMBER0 )
+ final int yValCount = mYVals . size ( ) ;
+
+ if ( yValCount == NUMBER0 )
return ;
int endValue ;
- if ( end == NUMBER0 || end >= m... | Removed redundant calls |
<nb> public class AdminConsolePlugin implements Plugin {
COMMENT
COMMENT
public String getBindInterface ( ) {
- String interfaceName = JiveGlobals . getXMLProperty ( STRING0 ) ;
+ String adminInterfaceName = JiveGlobals . getXMLProperty ( STRING1 ) ;
+ String globalInterfaceName = JiveGlobals . getXMLProper... | Introduce adminConsole interface to openfire xml Patch from Matt Parker |
<nb> public class ModelMetricsRegression extends ModelMetricsSupervised {
SINGLE
public ModelMetrics makeModelMetrics ( Model m , Frame f ) {
double mse = _sumsqe / _wcount ;
- return m . _output . addModelMetrics ( new ModelMetricsRegression ( m , f , mse , weightedSigma ( ) , _sumdeviance ) ) ;
+ double mea... | Make deviance the mean residual deviance not the total |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
- public View ( Context context , AttributeSet attrs , int defStyle ) {
+ public View ( Context context ... | Fix documentation regarding defStyle in View constructor |
<nb> public class EvaluationResult < T extends SkyValue > {
result . putAll ( otherResult . resultMap ) ;
errors . putAll ( otherResult . errorMap ) ;
hasError |= otherResult . hasError ;
+ catastrophe = otherResult . catastrophe ;
return this ;
} | Include the new catastrophe field in EvaluationResult mergeFrom |
<nb> public class BlockingHttpClient {
. map ( response - > {
TypedData responseBody = response . getBody ( ) ;
ByteBuf responseBuffer = responseBody . getBuffer ( ) ;
- ByteBuf heapResponseBodyBuffer = unreleasableBuffer ( responseBuffer . isDirect ( ) ? copiedBuffer ( responseBuffer ) : responseBuffer . retai... | Fix harmless leak of heap buffers with test HTTP client |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NewRecentProjectPanel extends RecentProjectPanel {
if ( isGroup ) {
final ProjectGroup group = ( ( ProjectGroupActionGroup ... | align group names with project names |
<nb> public class TiledTextureRegion extends BaseTextureRegion implements ITiledTextu
@ override
public void setTextureX ( final int pTileIndex , final float pTextureX ) {
- this . mTextureRegions [ pTileIndex ] . setTextureY ( pTextureX ) ;
+ this . mTextureRegions [ pTileIndex ] . setTextureX ( pTextureX ) ... | Fixed wrong method call in TiledTextureRegion setTextureX thx to GitHubDemon |
<nb> public class ChangeUtil {
public void makeChange ( TreeChangeEvent destinationTreeChange ) {
destinationTreeChange . addElementaryChange ( element , ChangeInfoImpl . create ( ChangeInfo . CONTENTS_CHANGED , element ) ) ;
action . makeChange ( destinationTreeChange ) ;
+ ASTNode node = element ;
+ while (... | do cleanup before calling listeners on transactionCompleted |
<nb> class NioWorker implements Runnable {
SINGLE
channel . currentWriteEvent = evt ;
channel . currentWriteIndex = bufIdx ;
+ channel . inWriteNowLoop = false ;
SINGLE
cleanUpWriteBuffer ( channel , e ) ;
break ;
} catch ( Throwable t ) {
channel . currentWriteEvent = null ;
+ channel . inWriteNo... | Fixed a bug where the future of the write request is sometimes not notified |
<nb> public class FeedParser {
private static final Namespace ATOM_10_NS = Namespace
. getNamespace ( ATOM_10_URI ) ;
- private static final Date START = new Date ( NUMBER0 ) ;
- private static final Date END = new Date ( NUMBER1 * Integer . MAX_VALUE ) ;
+ private static final Date START = new Date ( NUMBE... | add a day to make sure we don t have issues with timezones |
<nb> public abstract class ServerModelTestBase extends DomainModelElementTestBase {
}
COMMENT
+ @ override
public void testSerializationDeserialization ( ) throws Exception {
SINGLE
<nb> public abstract class ServerModelTestBase extends DomainModelElementTestBase {
}
String getFullContent ( final ... | Use correct root element name in test |
<nb> public final class FixedLengthStreamSinkChannel implements StreamSinkChannel , Pr
private void exitWrite ( long oldVal , long consumed ) {
long newVal = oldVal - consumed ;
state = newVal ;
- if ( allAreSet ( newVal , FLAG_CLOSE_COMPLETE ) ) {
- SINGLE
- callClosed ( ) ;
+ if ( anyAreSet ( oldVal , M... | Fix bug in FixedLengthStreamSinkChannel that was breaking persistent connections |
<nb> public final class Cookies { SINGLE
if ( version == NUMBER0 &&
! CookieSupport . isV0Separator ( ( char ) bytes [ pos ] ) &&
CookieSupport . ALLOW_HTTP_SEPARATORS_IN_V0 ||
- ! CookieSupport . isHttpSeparator ( ( char ) bytes [ pos ] ) ) {
+ ! CookieSupport . isHttpSeparator ( ( char ) bytes [ pos ] ) || ... | Better handle edge cases when allowing in cookie value |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- class AccountAuthenticatorService extends Service {
+ public class AccountAuthenticatorService extends Service {
private static BootstrapAccountAuthenticator sAuthenticator = null ; | Fixed bug introduced in last commit service has to be public |
<nb> public final class ConfigurationBuilder {
}
@ nonnull
- ReportField [ ] customReportContent ( ) {
- if ( customReportContent != null ) {
- return customReportContent ;
- }
- return new ReportField [ NUMBER0 ] ;
- }
-
- @ nonnull
Set < ReportField > reportContent ( ) {
Set < ReportField > ... | remove unused getter |
<nb> public class Distributions {
AUTO {
@ override
public double deviance ( double w , double y , double f ) {
- throw new IllegalArgumentException ( ) ;
+ return Double . NaN ;
}
@ override | Fix DRF GBM tests Gaussian deviance now works |
<nb> public class AddMembershipListenerMessageTask
}
ClusterService clusterService = clientEngine . getClusterService ( ) ;
- boolean currentMemberIsMaster = clusterService . getMasterAddress ( ) . equals ( clientEngine . getThisAddress ( ) ) ;
- if ( parameters . localOnly && ! currentMemberIsMaster ) {
+ ... | Fixing potential Null pointer exception |
<nb> public class PopupChooserBuilder {
if ( ! myForceMovable && myTitle != null ) {
JLabel label = new JLabel ( myTitle ) ;
label . setBorder ( BorderFactory . createEmptyBorder ( NUMBER0 , NUMBER1 , NUMBER0 , NUMBER1 ) ) ;
- label . setHorizontalAlignment ( JLabel . CENTER ) ;
+ label . setHorizontalAlignme... | do not show hand cusrsor on the scroll bar |
<nb> public abstract class AbstractDynamicTypeBuilderForInliningTest extends Abstract
@ test
@ javaversionrule.enforce ( NUMBER0 )
public void testParameterMetaDataRetention ( ) throws Exception {
- Class < ? > dynamicType = create ( typePool . describe ( PARAMETER_NAME_CLASS ) . resolve ( ) , ClassFileLocator ... | Simplified test to not rely on resource lookup |
<nb> public final class Settings {
STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String LEGACY_DHCP_CLIENT = STRING1 ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add a hidden setting to use the legacy DHCP client |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removing an unused import |
<nb> public abstract class SafeAsyncTask < ResultT > implements Callable < ResultT > {
public FutureTask < Void > future ( ) {
- if ( future != null )
- throw new UnsupportedOperationException ( STRING0 ) ;
-
future = new FutureTask < Void > ( newTask ( ) ) ;
return future ;
} | remove double future restriction |
<nb> public class TypeIdItem extends Item < TypeIdItem > {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class TypeIdItem extends Item < TypeIdItem > {
return dexFile . TypeIdsSection . intern ( typeIdItem ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Add a convenience method that accepts a string instead of a StringIdItem |
<nb> public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
SINGLE
- public final Set getGroupMembershipRoles ( String userDn , String username ) {
+ public Set getGroupMembershipRoles ( String userDn , String username ) {
Set authorities = new HashSet ( ) ;
if ( groupSearchBas... | Removed final from getGroupMembershipRoles |
<nb> public abstract class AbstractAttributeBinding implements AttributeBinding {
}
@ override
+ public boolean isBasicPropertyAccessor ( ) {
+ return propertyAccessorName == null || STRING0 . equals ( propertyAccessorName ) ;
+ }
+
+
+ @ override
public boolean hasFormula ( ) {
for ( SimpleValue ... | Add AttributeBinding isBasicPropertyAccessor |
<nb> public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
final AbstractVcs vcs = scope . getVcs ( ) ;
if ( vcs == null ) continue ;
+ final VcsDirtyScope adjustedScope = vcs . adjustDirtyScope ( scope ) ;
myChangesViewManager . updateProgressText ( VcsBundle . message ( STRING0 ... | adjust scope call from change list manager |
<nb> public class Solo {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
<nb> class ViewFetcher {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT | Clarified javadoc for getCurrentImageViews in Solo and ViewFetcher |
<nb> public class DialpadDialog
public void focusLost ( FocusEvent e )
{
- this . dispose ( ) ;
+ this . setVisible ( false ) ;
}
}
<nb> public class MainCallPanel
- dialpadDialog . getHeight ( ) ) ;
dialpadDialog . setVisible ( true ) ;
+ dialpadDialog . requestFocus ( ) ;
}
else
{ | Fix dialpad focus problems |
<nb> public final class LoadedApk {
}
}
- String libraryPermittedPath = mAppDir + File . pathSeparator + mDataDir ;
+ String libraryPermittedPath = mDataDir ;
boolean isBundledApp = false ;
if ( mApplicationInfo . isSystemApp ( ) ) { | Remove path to the apk from the permittedPath |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | fixed license header |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GroovyDslFileIndex extends ScalarIndexExtension < String > {
try {
return TypesUtil . createTypeByFQClassName ( className ,... | don t catch ProcessCanceledException |
<nb> class BuilderStringPool implements StringSection < BuilderStringReference , Builder
@ nonnull @ override public Collection < ? extends Entry < ? extends BuilderStringReference , Integer > > getItems ( ) {
return new BuilderMapEntryCollection < BuilderStringReference > ( internedItems . values ( ) ) {
@ overr... | Delete some unneeded TODOs |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed grammar in Javadoc |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add usage example to MMPQ s class docs |
<nb> public class ConfigurationActivator
logger . debug ( STRING0 + getClass ( ) . getName ( ) + STRING1 ) ;
+ impl . start ( ) ;
+
bundleContext . registerService ( ConfigurationService . class . getName ( ) ,
impl ,
new java . util . Hashtable ( ) ) ; | Start the configuration service when activating its bundle |
<nb> import NAMESPACE ;
public final class OptionsSupport {
COMMENT
- protected static final String UNAVAILABLE = STRING0 ;
+ private static final String UNAVAILABLE = STRING0 ;
COMMENT
COMMENT | Changed visibility of static field from protected to private in final OptionsSupport class for MongoDB |
<nb> public class ASTApply extends ASTOp {
return res ;
}
@ override void apply ( Env env ) {
+ ArrayList < Frame > _trash = new ArrayList < > ( ) ;
String err = STRING0 ;
SINGLE
final ASTOp op = ASTOp . get ( _fun ) ;
<nb> public class ASTApply extends ASTOp {
if ( env . peekAry ( ) . numCols ( ) != ... | do not eagerly delete frames needed in the next statement |
<nb> public class FormClassIndex extends ScalarIndexExtension < String > {
public static List < PsiFile > findFormsBoundToClass ( PsiClass psiClass ) {
String qName = FormReferencesSearcher . getQualifiedName ( psiClass ) ;
if ( qName == null ) return Collections . emptyList ( ) ;
- return findFormsBoundToClass... | read access for real |
<nb> class WifiController extends StateMachine {
registerForStayAwakeModeChange ( handler ) ;
readWifiIdleTime ( ) ;
registerForWifiIdleTimeChange ( handler ) ;
- readStayAwakeConditions ( ) ;
+ readWifiSleepPolicy ( ) ;
registerForWifiSleepPolicyChange ( handler ) ;
} | Fix reading sleep policy |
<nb> public class DomElementsHighlightingUtil {
final ASTNode node = tag . getNode ( ) ;
assert node != null ;
final ASTNode startNode = XmlChildRole . START_TAG_NAME_FINDER . findChild ( node ) ;
- final ASTNode endNode = XmlChildRole . CLOSING_TAG_NAME_FINDER . findChild ( node ) ;
final int startOffset =... | tests fixed duplicated error stripes removed from end of xml tags |
<nb> public class TestPerformance extends BaseTest {
COMMENT
private static final boolean SHOW_DFA_STATE_STATS = true ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
private static final PredictionMode PREDICTION_MODE = PredictionMode . LL ;
private static final boolean TWO_STAGE_P... | Add comment to TestPerformance PREDICTION_MODE configuration field |
<nb> public class WhitelabelApprovalEndpoint {
map . put ( STRING0 , ( Object ) request . getContextPath ( ) ) ;
context . setRootObject ( map ) ;
String result = helper . replacePlaceholders ( template , resolver ) ;
+ response . setContentType ( getContentType ( ) ) ;
response . getWriter ( ) . append ( res... | Set content type in WhitelabelApprovalEndpoint responses |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class FreeMarkerMacroTests {
SINGLE
String output = response . getContentAsString ( ) ;
+ output = output . replace ( STRING0 , STRING1 ) ;
return output . trim ( ) ;
} | Revised newline handling tests pass on Windows now |
<nb> public class ContentAssertionTests {
this . mockMvc . perform ( get ( STRING0 ) )
. andExpect ( content ( ) . contentType ( MediaType . valueOf ( STRING1 ) ) )
. andExpect ( content ( ) . contentType ( STRING1 ) )
- . andExpect ( content ( ) . contentTypeCompatibleWith ( STRING2 ) )
+ . andExpect ( conte... | Fix broken test in ContentAssertionTests |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ experimentalapi ( STRING0 )
public class GrpcSslContexts {
private GrpcSslContexts ( ) { }
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
+ @ experimentalapi ( STRING1 )
public enum NegotiationType {
COMME... | Reduce advertised Netty API |
<nb> public class TinkerGraphTest extends GraphTest {
this . supportsEdgeIndex = true ;
}
- public void testTinkerBenchmarkTestSuite ( ) throws Exception {
+ COMMENT
this . stopWatch ( ) ;
doTestSuite ( new TinkerBenchmarkTestSuite ( this ) ) ;
printTestPerformance ( STRING0 , this . stopWatch ( ) ) ;
... | added TinkerBenchmarkTestSuite to validate traveral behavior there is a discrepancy in OrientGraph and OGraphDatabase |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Props implements Cloneable {
return ;
}
- activeProfiles = Convert . toStringArray ( value ) ;
+ activeProfiles = StringUtil . splitc ( ... | Removed Convert dependency in jodd props |
<nb> public final class PluginManager {
COMMENT
public void loadPlugins ( ) {
int id = ctx . getResources ( ) . getIdentifier ( STRING0 , STRING1 , ctx . getPackageName ( ) ) ;
+ if ( id == NUMBER0 ) { pluginConfigurationMissing ( ) ; }
XmlResourceParser xml = ctx . getResources ( ) . getXml ( id ) ;
int ev... | write error to log when plugins xml is missing |
<nb> public abstract class AbstractControl implements Control {
COMMENT
protected abstract void controlRender ( RenderManager rm , ViewPort vp ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ override
+ public Control c... | Added a default implementation of cloneForSpatial |
<nb> final class LibraryListAdapter extends BaseAdapter implements AdapterView . OnItem
}
public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) {
- android . util . Log . w ( STRING0 , STRING1 + position + STRING2 + id ) ;
getItem ( position ) . run ( ) ;
}
<nb> final... | removed debug output |
<nb> public class UnsequencedExpressionRewriterTest extends GenerationTest {
STRING0 , STRING1 ) ;
assertTranslatedLines ( translation ,
STRING2 ,
- STRING3 ,
+ STRING4 ,
STRING5 ,
- STRING6 ,
+ STRING7 ,
STRING8 ,
STRING9 ,
STRING10 ,
STRING11 ,
- STRING12 ,
+ STRING13 ,
STRING8 ,
STRIN... | Fixed unsequenced expression rewriter tests |
<nb> public final class Timestamped < T > {
if ( this == obj ) {
return true ;
}
- if ( obj == null ) {
- return false ;
- }
if ( ! ( obj instanceof Timestamped ) ) {
return false ;
} | Removed superfluous null check |
<nb> public class AsyncHttpClient {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public RequestHandle delete ( String url , RequestParams params , AsyncHttpResponseHandler responseHandler ) {
final HttpDelete delete = new HttpDelete ( getUrlWithQueryString ( isUrlEncodingEnabled , url , params ) ) ; | Added return to delete url params handler docs |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Improved javadoc for management attachment |
<nb> public abstract class EditorComposite implements Disposable {
myComponent . setComponent ( myTabbedPaneWrapper . getComponent ( ) ) ;
}
else {
- myTabbedPaneWrapper . addTab ( editor . getName ( ) , editor . getComponent ( ) ) ;
+ JComponent component = createEditorComponent ( editor ) ;
+ myTabbedPane... | adding editor fixes |
<nb> public class BuildManager implements Disposable {
conn . subscribe ( VirtualFileManager . VFS_CHANGES , new BulkFileListener . Adapter ( ) {
@ override
public void after ( @ notnull List < ? extends VFileEvent > events ) {
- if ( shouldTriggerMake ( events ) ) {
+ if ( ! IS_UNIT_TEST_MODE && shouldTrigge... | do not handle expensive VFS events in test mode |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
@ javax.ws.rs.applicationpath ( STRING0 )
public class ApplicationConfig extends Application {
-
- @ override
- public Set < Class < ? > > getClasses ( ) {
- return getRestResourceClass... | Removing redundant code |
<nb> public class PrivacyService {
IPrivacyService client = getClient ( ) ;
if ( client != null )
return ( client . getVersion ( ) == cCurrentVersion ) ;
- } catch ( RemoteException ex ) {
+ } catch ( SecurityException ignored ) {
+ } catch ( Throwable ex ) {
Util . bug ( null , ex ) ;
}
return false ... | Handle uid change when re installing support info |
<nb> public final class ActivityManagerService extends ActivityManagerNative
users = mStartedUserArray ;
} else {
SINGLE
- users = mCurrentUserArray ;
+ users = new int [ ] { userId } ;
}
SINGLE | Fix broadcast to a specific user |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ; | moving lexer stuff to core api |
<nb> public class MongoStorage extends StoreFunc implements StoreMetadata {
}
public OutputFormat getOutputFormat ( ) throws IOException {
- final MongoOutputFormat outputFmt = new MongoOutputFormat ( options . getUpdate ( ) . keys , options . getUpdate ( ) . multi ) ;
+ final MongoOutputFormat outputFmt = op... | Fix small npe |
<nb> public class TelecomManager {
COMMENT
COMMENT
COMMENT
+ @ systemapi
public void registerPhoneAccount ( PhoneAccount account ) {
try {
if ( isServiceConnected ( ) ) {
<nb> public class TelecomManager {
COMMENT
COMMENT
COMMENT
+ @ systemapi
public void unregisterPhoneAccount ( PhoneAccountH... | Add SystemApi to missing TelecomManager methods |
<nb> public class PathCompiler {
break ;
case PERIOD :
i ++ ;
- if ( path . charAt ( i ) == PERIOD ) {
+ if ( i < path . length ( ) && path . charAt ( i ) == PERIOD ) {
SINGLE
fragment = STRING0 ;
i ++ ; | Fix array out of bounds exception on |
<nb> public class NetworkControllerImpl extends BroadcastReceiver
if ( mMobileSignalControllers . containsKey ( dataSubId ) ) {
return mMobileSignalControllers . get ( dataSubId ) ;
}
- Log . e ( TAG , STRING0 + dataSubId ) ;
+ if ( DEBUG ) Log . e ( TAG , STRING0 + dataSubId ) ;
return mDefaultSignalContro... | Squelch chatty log messages |
<nb> public class HttpClientHelper implements Closeable {
return response ;
}
- private CloseableHttpClient getClient ( ) {
+ private synchronized CloseableHttpClient getClient ( ) {
if ( client == null ) {
HttpClientBuilder builder = HttpClientBuilder . create ( ) ;
builder . setRedirectStrategy ( new ... | Fix potential thread safety issue |
<nb> public class StatementSplitter
TokenSource tokens = getLexer ( checkNotNull ( sql , STRING0 ) ) ;
ImmutableList . Builder < String > list = ImmutableList . builder ( ) ;
StringBuilder sb = new StringBuilder ( ) ;
- int index = NUMBER0 ;
while ( true ) {
- Token token ;
- try {
- token = tokens . ne... | Remove unused error handling |
<nb> public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
this . removeView ( mUnlockScreen ) ;
mUnlockScreen = null ;
}
+ mUpdateMonitor . removeCallback ( this ) ;
}
private boolean isSecure ( ) { | Fix memory leak in lock screen |
<nb> public class DescriptorRenderer implements Renderer < DeclarationDescriptor > {
}
private void renderVisibility ( Visibility visibility , StringBuilder builder ) {
- builder . append ( visibility ) . append ( STRING0 ) ;
+ builder . append ( renderKeyword ( visibility . toString ( ) ) ) . append ( STRING... | Made soft keywords bold in DescriptorRenderer |
<nb> public class BackupImapStore extends ImapStore {
Collections . addAll ( messages , msgs ) ;
}
+ Collections . reverse ( messages ) ;
+
return messages ;
} | Restoring most recent items first |
<nb> public final class ThreadCpuStats {
COMMENT
private void updateNoValue ( ) {
final int currentPos = toIndex ( nextPos . get ( ) - NUMBER0 ) ;
- update ( totals . get ( currentPos ) ) ;
+ totals . set ( toIndex ( nextPos . getAndIncrement ( ) ) , totals . get ( currentPos ) ) ;
}
} | Do not update the last update time if the thread is gone |
<nb> public class ProxyStreamServlet extends HttpServlet {
HttpConnectionParams . setSoTimeout ( httpParams , NUMBER0 ) ;
COMMENT
- threadSafeConnectionManager . setDefaultMaxPerRoute ( NUMBER1 ) ;
- threadSafeConnectionManager . setMaxTotal ( NUMBER1 ) ;
+ threadSafeConnectionManager . setDefaultMaxPerRout... | Bumping up the connection quota for the dash proxy stream servlet |
<nb> import NAMESPACE ;
import NAMESPACE ;
class FutureAsyncCompletionHandler < T > implements AsyncCompletionHandler < T > {
- private final SingleResultFuture < T > future ; SINGLE
+ private final SingleResultFuture < T > future ;
public FutureAsyncCompletionHandler ( final SingleResultFuture < T > futu... | Removed outdated TODO |
<nb> public abstract class ODatabaseRecordAbstract < REC extends ORecordInternal < ? > > ex
metadata . getSecurity ( ) . createUser ( STRING0 , STRING0 , new String [ ] { readerRole . getName ( ) } ) ;
final ORole writerRole = metadata . getSecurity ( ) . createRole ( STRING1 , ORole . ALLOW_MODES . DENY_ALL_BUT ... | Fixed issue on role creation |
<nb> import NAMESPACE ;
COMMENT
abstract class MnemonicWrapper < T extends Component > implements Runnable , PropertyChangeListener {
public static MnemonicWrapper getWrapper ( Component component ) {
+ if ( component == null || component . getClass ( ) . getName ( ) . equals ( STRING0 ) ) {
+ return null ;
... | Ignore components which does not support mnemonics |
<nb> public class MockNotificationQueueService extends NotificationQueueServiceBase {
public int doProcessEvents ( ) {
int result = NUMBER0 ;
-
- for ( NotificationQueue cur : queues . values ( ) ) {
- result += doProcessEventsForQueue ( ( MockNotificationQueue ) cur ) ;
+ synchronized ( queues ) {
+ fo... | Add synchronize in the mock |
<nb> public class Spider {
private boolean initialized ;
COMMENT
- private static final Pattern svnUrlPattern = Pattern . compile ( STRING0 ) ; SINGLE
+ private static final Pattern svnUrlPattern = Pattern . compile ( STRING1 ) ; SINGLE
COMMENT
- private static final Pattern gitUrlPattern = Pattern . co... | The regular expression did not allow a folder called git to be spidered by the Git spider |
<nb> public class CRUDObjectPhysicalTest {
public void readAndBrowseDescendingAndCheckHoleUtilization ( ) {
database = ODatabaseObjectPool . global ( ) . acquire ( url , STRING0 , STRING0 ) ;
+ database . getLevel1Cache ( ) . invalidate ( ) ;
+ database . getLevel2Cache ( ) . clear ( ) ;
+
SINGLE
int i ... | cleaned the cache in a test |
<nb> public class DevicePolicyManager {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Remove suggested key names as its confusing |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT | Fixed license header updated to point to new location of helper classes in the |
<nb> public class Sprite extends TextureRegion {
COMMENT
COMMENT
public void rotate ( float degrees ) {
+ if ( degrees == NUMBER0 ) return ;
rotation += degrees ;
dirty = true ;
} | added a check in Sprite rotate |
<nb> public class WorldEdit {
commands . put ( STRING0 , STRING1 ) ;
commands . put ( STRING2 , STRING3 ) ;
commands . put ( STRING4 , STRING5 ) ;
- commands . put ( STRING6 , STRING7 ) ;
+ commands . put ( STRING8 , STRING7 ) ;
commands . put ( STRING9 , STRING10 ) ;
commands . put ( STRING11 , STRING12 ... | Changed super axe command to |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MSSQLDatabase extends AbstractDatabase {
@ override
public String escapeIndexName ( String catalogName , String schemaName ... | Don t include schema on indexes in mssql |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ShaderEditPan... | Fixed a saving issue in the shader Nodes Editor |
<nb> public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
assertAcked ( client ( ) . admin ( ) . indices ( ) . prepareUpdateSettings ( indexName ) . setSettings ( ImmutableSettings . builder ( )
. put ( STRING0 , numReplicas )
) . execute ( ) . actionGet ( ) ) ;
- ensureGreen ( index... | increasing replicas timeout to avoid slowness on virtualized |
<nb> public final class H2O {
embeddedH2OConfig . notifyAboutEmbeddedWebServerIpPort ( ip , port ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static void notifyAboutCloudSize ( InetAddress ip , int port , int size ) {
if ( embeddedH2OConfig == null ) { return ; }
embe... | Added a bit of javadoc |
<nb> public class CdiEventSupportBpmnParseListener implements BpmnParseListener {
addEndEventListener ( activity ) ;
}
+ @ override
+ public void parseIntermediateSignalCatchEventDefinition ( Element signalEventDefinition , ActivityImpl signalActivity ) {
+ addStartEventListener ( signalActivity ) ;
+ add... | adding missing methods to parse listener in cdi module |
<nb> public class PostgreSchema implements DBSSchema , DBPNamedObject2 , DBPSaveableObj
}
@ override
- public Collection < PostgreTableReal > getChildren ( @ notnull DBRProgressMonitor monitor )
+ public Collection < PostgreTableBase > getChildren ( @ notnull DBRProgressMonitor monitor )
throws DBException ... | PG schema contents loading fix |
<nb> public class GLMBasicTestBinomial extends TestUtil {
SINGLE
SINGLE
SINGLE
- assertTrue ( FLOAT0 >= GLMTest . residualDevianceTest ( model ) + FLOAT1 ) ;
+ assertTrue ( FLOAT0 >= GLMTest . residualDevianceTest ( model ) - FLOAT1 ) ;
SINGLE
SINGLE
SINGLE | Fixed sign in my previous test updated |
<nb> public class FilteringTreeBuilder extends AbstractTreeBuilder {
myRefilterQueue . cancelAllUpdates ( ) ;
}
final ActionCallback callback = new ActionCallback ( ) ;
- getUi ( ) . cancelUpdate ( ) . doWhenDone ( new Runnable ( ) {
+ getUi ( ) . cancelUpdate ( ) . doWhenProcessed ( new Runnable ( ) {
@ ov... | call ActionCallbacks even if rejected |
<nb> public class RobinEngine extends AbstractIndexShardComponent implements Engine ,
SnapshotIndexCommit phase1Snapshot ;
try {
phase1Snapshot = deletionPolicy . snapshot ( ) ;
- } catch ( IOException e ) {
+ } catch ( Exception e ) {
-- disableFlushCounter ;
throw new RecoveryEngineException ( shardId ,... | handle any exception on first phase |
<nb> public class FacetEditorImpl extends UnnamedConfigurableGroup implements Unnamed
}
else if ( myEditorTabs . length == NUMBER0 ) {
editorComponent = myEditorTabs [ NUMBER1 ] . createComponent ( ) ;
+ UIUtil . addInsets ( editorComponent , new Insets ( NUMBER1 , NUMBER2 , NUMBER1 , NUMBER1 ) ) ;
}
else {... | added small gap between modules list and facet editor |
<nb> public class ActionBarWrapper extends ActionBar implements android . app . ActionBar
if ( mListener != null ) {
if ( mFragmentTransaction == null ) {
- mFragmentTransaction = ( ( SherlockFragmentActivity ) mActivity ) . getSupportFragmentManager ( ) . beginTransaction ( )
- . disallowAddToBackStack ( ) ;... | added instanceof check |
<nb> public enum BlockStoreContext {
mLocalBlockWorkerClientPool . close ( ) ;
}
mBlockMasterClientPool = new BlockMasterClientPool ( ClientContext . getMasterAddress ( ) ) ;
- mLocalBlockWorkerClientPoolInitialized . set ( false ) ;
+ sLocalBlockWorkerClientPoolInitialized = false ;
}
} | fix the build |
<nb> public class HttpRouteTest extends ContextTestSupport {
public void testPojoRoutes ( ) throws Exception {
MockEndpoint mockEndpoint = resolveMandatoryEndpoint ( STRING0 , MockEndpoint . class ) ;
- mockEndpoint . expectedMessageCount ( NUMBER0 ) ;
+ mockEndpoint . expectedBodiesReceived ( expectedBody ) ... | tidied up the test case to avoid threading issues |
<nb> public class LocalExecutionPlanner
}
Optional < Symbol > ordinalitySymbol = node . getOrdinalitySymbol ( ) ;
Optional < Type > ordinalityType = ordinalitySymbol . map ( context . getTypes ( ) : : get ) ;
- ordinalityType . ifPresent ( type - > checkState ( type == BigintType . BIGINT , STRING0 ) ) ;
+ or... | Fix Type comparison using in LocalExecutionPlanner |
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ runwith ( DefaultServer . class )
- @ ajpignore ( apacheOnly = true )
+ @ ajpignore
public class JsrWebSocketServer07Test {
@ org.junit.test
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ runwith ( DefaultServer . class )
- @ ajpignore ( apacheOnly = true )... | Ignore web socket tests when using AJP |
<nb> public abstract class MasterDetailsComponent implements Configurable , Persistent
public boolean isDisplayInBold ( ) {
return myDisplayInBold ;
}
+
+ public void setDisplayInBold ( boolean displayInBold ) {
+ myDisplayInBold = displayInBold ;
+ }
}
@ suppresswarnings ( { STRING0 } ) | reworked deployment configurable follow up |
<nb> public class ChunkOutputWidget extends Composite
private void toggleExpansionState ( )
{
- SINGLE
+ SINGLE
+ SINGLE
if ( collapseTimer_ != null && collapseTimer_ . isRunning ( ) )
- collapseTimer_ . cancel ( ) ;
+ return ;
if ( expansionState_ . getValue ( ) == EXPANDED )
{ | throttle aggressive expand collapse toggling for chunk outputs |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.