diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class SequenceFilesFromDirectory {
obuilder . withLongName ( STRING0 ) . withRequired ( true ) . withArgument (
abuilder . withName ( STRING0 ) . withMinimum ( NUMBER0 ) . withMaximum ( NUMBER0 ) . create ( ) )
. withDescription ( STRING1 )
- . withShortName ( STRING2 ) . create ( ) ;
+ . wi... | switch to input output args also add some more support in shell |
<nb> import NAMESPACE ;
COMMENT
public final class URIResultParser extends ResultParser {
- private static final Pattern URL_WITH_PROTOCOL_PATTERN = Pattern . compile ( STRING0 ) ;
+ SINGLE
+ private static final Pattern URL_WITH_PROTOCOL_PATTERN = Pattern . compile ( STRING1 ) ;
private static final Patt... | recognize protocols like opc tcp as valid URI schemes |
<nb> public abstract class RepositoryPage extends RootPage {
}
add ( new LinkPanel ( STRING0 , null , name , SummaryPage . class ,
WicketUtils . newRepositoryParameter ( repositoryName ) ) ) ;
- add ( new Label ( STRING1 , pageName ) . setRenderBodyOnly ( true ) ) ;
UserModel user = GitBlitWebSession . get ... | Remove obsolete pageName label |
<nb> public class ApplyRemoteMasterDomainModelHandler implements OperationStepHandler
final Set < ServerIdentity > affectedServers ;
SINGLE
affectedServers = new HashSet < ServerIdentity > ( ) ;
+
+ if ( ! hostModel . hasDefined ( SERVER_CONFIG ) ) {
+ return ;
+ }
+
for ( String serverName : hostMode... | skip empty server config |
<nb> public class SimpleAsyncHttpClient {
this . errorDocumentBehaviour = client . errorDocumentBehaviour ;
this . enableResumableDownload = client . resumeEnabled ;
this . ahc = client . asyncHttpClient ( ) ;
+ this . listener = client . listener ;
}
public Builder addBodyPart ( Part part ) throws Illega... | Make sure we kept the listener when we derive a new instance |
<nb> class NeoConstraintsListener SINGLE
NodeImpl getDeletedNode ( int nodeId )
{
- return deletedNodes . get ( nodeId ) ;
+ if ( deletedNodes != null )
+ {
+ return deletedNodes . get ( nodeId ) ;
+ }
+ return null ;
}
} | Fixed a NPE in neo constraints listener |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPAC... | Update a couple of copyright notices that missed Matts name |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CwComponentConfigurationTest extends CamelTestSupport {
@ test ( expected = IllegalArgumentException . class )
public void createEndpointWi... | Fixed wrong component usage in tests |
<nb> public class SearchController extends AuthenticatedController {
private StreamService streamService ;
public Result indexForStream ( String streamId , String q , String rangeType , int relative , String from , String to , String keyword , String interval , int page ) {
- Stream stream ;
+ return ok ( STR... | disable stream results for now |
<nb> public class OSecurityShared extends OSharedResourceAdaptive implements OSecurit
final OClass roleClass = getDatabase ( ) . getMetadata ( ) . getSchema ( ) . getClass ( STRING0 ) ;
if ( ! roleClass . existsProperty ( STRING1 ) )
roleClass . createProperty ( STRING1 , OType . LINK , roleClass ) ;
+ p = role... | Created default unique index against orole name |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultBroadcasterFactory extends BroadcasterFactory {
if ( ( b == null && createIfNull ) || ( ... | Remove only one Broadcaster |
<nb> import NAMESPACE ;
public class FetchProjector extends AbstractProjector {
- SINGLE
- private int fetchSize = NUMBER0 ;
- private int currentRowCount = NUMBER1 ;
+ private final int fetchSize ;
private final FetchProjectorContext context ;
private final FetchOperation fetchOperation ;
private f... | Remove default fetchSize from FetchProjector |
<nb> class ConfigurationClassEnhancer {
public Object intercept ( Object obj , Method method , Object [ ] args , MethodProxy proxy ) throws Throwable {
Enhancer . registerStaticCallbacks ( obj . getClass ( ) , null ) ;
+ SINGLE
+ SINGLE
if ( DisposableBean . class . isAssignableFrom ( obj . getClass ( ) . g... | Add comment on DisposableBean use in Configuration |
<nb> public class ExternalAnnotatorInspectionVisitor extends PsiElementVisitor {
}
return null ;
}
+
+ @ override
+ public boolean equals ( Object o ) {
+ if ( this == o ) return true ;
+ if ( o == null || getClass ( ) != o . getClass ( ) ) return false ;
+
+ LocalQuickFixBackedByIntentionAction act... | implement equals and hashCode to make two LocalQuickFix instances equal if they refer to one and the same IntentionAction |
<nb> public enum Cipher {
false ,
EncryptionLevel . HIGH ,
false ,
- NUMBER0 ,
- NUMBER0 ,
+ NUMBER1 ,
+ NUMBER1 ,
null ,
null
) ,
<nb> public enum Cipher {
false ,
EncryptionLevel . HIGH ,
false ,
- NUMBER0 ,
- NUMBER0 ,
+ NUMBER1 ,
+ NUMBER1 ,
null ,
null
) , | Fix copy paste error |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ConfigurableExtensionPointUtil {
final String parentId = wrapper . getParentId ( ) ;
if ( parentId != null ) {
final ConfigurableWrapper parent = idToConfigurable . get ( parentId ) ;
- LOG . assertTrue ( parent != null , S... | Prevent stupid NPE |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class CommonContentEntriesEditor extends ModuleElementsEditor {
}
}
- private class AddContentEntryAction extends Ic... | dumb aware add content root action |
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean
binaryMemtable_ . get ( ) . put ( key , buffer ) ;
}
- void forceFlush ( ) throws IOException
+ public void forceFlush ( )
{
memtable_ . get ( ) . forceflush ( ) ;
}
<nb> public interface ColumnFamilyStoreMBean
COMMENT
COMMENT
... | This patch adds ColumnFamilyStore forceflush to the mbean so that it can be activated through the management agent |
<nb> public class FileManagerImpl implements FileManager {
}
}
else if ( file instanceof ClsFileImpl ) {
- if ( ( ( ClsFileImpl ) file ) . isContentsLoaded ( ) ) {
+ SINGLE
( ( ClsFileImpl ) file ) . unloadContent ( ) ;
- }
+ SINGLE
}
myManager . childrenChanged ( event ) ; | fix updating class files issue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
<nb> extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , UU , I , IPK , T7
@ test
public void testEquals ( ) throws Exception... | Removed bad test code |
<nb> public class Allocation extends BaseObj {
SINGLE
if ( mips == MipmapControl . MIPMAP_NONE &&
t . getElement ( ) . isCompatible ( Element . RGBA_8888 ( rs ) ) &&
- usage == USAGE_SCRIPT ) {
+ usage == ( USAGE_SHARED | USAGE_SCRIPT ) ) {
int id = rs . nAllocationCreateBitmapBackedAllocation ( t . getID (... | We can only optimize bitmaps that have USAGE_SHARED |
<nb> public class NodeTraversal {
COMMENT
COMMENT
boolean inGlobalScope ( ) {
- return getScopeDepth ( ) <= NUMBER0 ;
+ return getScopeDepth ( ) == NUMBER0 ;
}
SINGLE | Changing equality sign for inGlobalScope to make the method clearer |
<nb> public abstract class AbstractAjaxCallback < T , K > implements Runnable {
data = status . getData ( ) ;
+ } catch ( IOException e ) {
+
+ SINGLE
+ SINGLE
+ String message = e . getMessage ( ) ;
+ if ( message != null && message . contains ( STRING0 ) ) {
+ status . code ( NUMBER0 ) . message (... | Add handling for cases where IOException is thrown from |
<nb> public class CxfPayload < T > {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public List < Source > getBodySources ( ) {
<nb> public class CxfPayload < T > {
return headers ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ C... | Add some javadocs to note streaming issues |
<nb> public class WorldEdit {
if ( split [ NUMBER0 ] . equals ( STRING0 ) ) {
split [ NUMBER0 ] = STRING1 ;
SINGLE
- } else if ( split [ NUMBER0 ] . matches ( STRING2 ) ) {
+ } else if ( split [ NUMBER0 ] . matches ( STRING3 ) ) {
String [ ] newSplit = new String [ split . length + NUMBER1 ] ;
System . ar... | Fixed script js shortcut not stripping forward slashes |
<nb> public class NotificationsActivity extends WPActionBarActivity
} else {
loadNotes ( true , noteId ) ;
}
+ mHasPerformedInitialUpdate = savedInstanceState . getBoolean ( KEY_INITIAL_UPDATE ) ;
} else {
loadNotes ( true , UNSPECIFIED_NOTE_ID ) ;
}
GCMIntentService . activeNotificationsMap . clear ( )... | fix an index out of bound crash |
<nb> public class JavaGenerator implements CodeGenerator
indent + STRING0 +
indent + STRING1 +
indent + STRING2 +
- indent + STRING3 +
indent + STRING4 +
indent + STRING5 +
indent + STRING6 +
<nb> public class JavaGenerator implements CodeGenerator
indent + STRING7 +
indent + STRING8 +
indent + ST... | Java Remove actingVersion from group encoder classes |
<nb> public class ParserTest2 extends TestUtil {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3 ,
STRING4 ,
STRING5 ,
SINGLE | Remove deleted file |
<nb> import 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 ;
+ import NAMESPACE ;
+ import NA... | platform api use Couple |
<nb> public class JsonStreamerEntity implements HttpEntity {
os . write ( STRING0 ) ;
} else if ( value instanceof JsonValueInterface ) {
os . write ( ( ( JsonValueInterface ) value ) . getEscapedJsonValue ( ) ) ;
+ } else if ( value instanceof org . json . JSONObject ) {
+ os . write ( ( ( org . json . JSONO... | Check for internal org json JSON classes when sending content |
<nb> public final class ACRA {
log . e ( LOG_TAG , STRING0 + app . getPackageName ( ) ) ;
return ;
}
- try {
- init ( app , new ConfigurationBuilder ( app ) . build ( ) ) ;
- } catch ( ACRAConfigurationException e ) {
- log . w ( LOG_TAG , STRING1 + e . getMessage ( ) ) ;
- }
+ init ( app , new Config... | remove unnecessary doubled catch block |
<nb> public class Solo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT | Replace show with display |
<nb> public class WebView extends AbsoluteLayout
COMMENT
COMMENT
public static void freeMemoryForTests ( ) {
- checkThread ( ) ;
getFactory ( ) . getStatics ( ) . freeMemoryForTests ( ) ;
} | Fix build after checkThread fix merge to master |
<nb> public class Node implements Cloneable , Serializable {
return res ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- NodeMismatch checkTreeTypeAwareEqualsImpl ( Node node2 ) {
- SINGLE
- if ( ! isEquivalentTo ( node2 , true , false ) ) {
- return new NodeMismatch ( this , node2 ) ;
... | Remove unused method checkTreeTypeAwareEqualsImpl |
<nb> public class XaLogicalLog
buffer . flip ( ) ;
fileChannel . write ( buffer ) ;
xidIdentMap . remove ( identifier ) ;
+ SINGLE
+ SINGLE
+ fileChannel . force ( false ) ;
}
private boolean readDoneEntry ( ) throws IOException | doneInternal now flushes each done record to fix problem with crash after global tx |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE
HibernateClinicTests . class ,
EntityManagerClinic... | Pet Clinic test suite now includes VisitsAtomViewTest |
<nb> public class WebServerBuckEventListener implements BuckEventListener {
}
@ subscribe
+ public void ruleCountCalculated ( BuildEvent . RuleCountCalculated calculated ) {
+ streamingWebSocketServlet . tellClients ( calculated ) ;
+ }
+
+ @ subscribe
public void buildFinished ( BuildEvent . Finished... | Subscribe WebServerBuckEventListener to BuildEvent RuleCountCalculated |
<nb> public class SampleItem extends AbstractItem < SampleItem , SampleItem . ViewHolder >
viewHolder . itemView . setTag ( this ) ;
SINGLE
- UIUtils . setBackground ( viewHolder . view , FastAdapterUIUtils . getSelectableBackground ( ctx , Color . RED ) ) ;
+ UIUtils . setBackground ( viewHolder . view , Fas... | adjust SampleItem to changed method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
@ immutable
<nb> public class SemiJoinNode
this . semiJoinOutput = requireNonNull ( semiJoinOutput , STRING0 ) ;
this . sourceHashSymbol = requireNonNull ( sourceHashSymbol , STRING1 )... | Validate arguments to SemiJoinNode |
<nb> public class ButtonlessScrollBarUI extends BasicScrollBarUI {
}
protected void doPaintTrack ( Graphics g , JComponent c , Rectangle bounds ) {
- if ( isMacScrollbar ( ) ) {
-
+ if ( isMacScrollbar ( ) && ! alwaysShowTrack ( ) ) {
bounds = getMacScrollBarBounds ( bounds , false ) ;
boolean vertical ... | OS X scrollbars do not paint unnecessary scrollbar s background in the console |
<nb> public class ReadOnlyGraphDatabaseProxy implements GraphDatabaseService
public Node getNodeById ( long id )
{
- return new ReadOnlyNodeProxy ( getNodeById ( id ) ) ;
+ return new ReadOnlyNodeProxy ( actual . getNodeById ( id ) ) ;
}
public Node getReferenceNode ( )
{
- return new ReadOnlyNodePr... | Fixed a recursion bug |
<nb> public final class Bootstrap {
}
COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public void setCatalinaHome ( String s ) {
- System . setProperty ( Globals . CATALINA_HOME_PROP , s ) ;
- }
-
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public void setCatalinaBase ( String s ) {
- Sy... | Remove unused code |
<nb> public class PeopleListFragment extends Fragment {
stringId = R . string . error_fetch_followers_list ;
break ;
case EMAIL_FOLLOWERS :
+ stringId = R . string . error_fetch_email_followers_list ;
+ break ;
+ case VIEWERS :
stringId = R . string . error_fetch_viewers_list ;
break ;
} | Fixes the fetch error string for email followers adds viewers one |
<nb> public class OverviewFragment extends SherlockFragment implements OnTraktActionC
COMMENT
private void onShowShowInfo ( ) {
Intent i = new Intent ( getActivity ( ) , ShowInfoActivity . class ) ;
- i . putExtra ( ShowInfoActivity . InitBundle . SHOW_TVDBID , Integer . valueOf ( getShowId ( ) ) ) ;
+ i . pu... | Remove useless conversion |
<nb>
COMMENT
COMMENT
COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
COMMENT
COMMENT
+
package NAMESPACE ;
COMMENT
<nb>
COMMENT
COMMENT
COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb> public enum ExceptionMessage {
SINGLE
;
- private final Mess... | Fixed checkstyle issues |
<nb> import 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 SampledTpchConnect... | Add ConnectorNodePartitioningProvider to SampledTpchConnectorFactory |
<nb> public class PyCharmNewProjectStep extends DefaultActionGroup implements DumbAwa
add ( action ) ;
final DirectoryProjectGenerator [ ] generators = Extensions . getExtensions ( DirectoryProjectGenerator . EP_NAME ) ;
+ if ( generators . length == NUMBER0 ) {
+ action . setPopup ( false ) ;
+ }
Arrays ... | Do not show select project type step in Community Edition |
<nb> public class McastServiceImpl {
receivePacket . setAddress ( address ) ;
receivePacket . setPort ( port ) ;
member . setCommand ( new byte [ NUMBER0 ] ) ;
- member . getData ( true , true ) ;
if ( membership == null ) membership = new Membership ( member ) ;
}
<nb> public class McastServiceImpl {
... | Remove duplicate calls |
<nb> public class MemoryRecords implements Records {
COMMENT
COMMENT
public void close ( ) {
- compressor . close ( ) ;
- writable = false ;
- buffer = compressor . buffer ( ) ;
+ if ( writable ) {
+ compressor . close ( ) ;
+ writable = false ;
+ buffer = compressor . buffer ( ) ;
+ }
}
COM... | make MemoryRecords idempotent reviewed by Guozhang Wang |
<nb> public final class SingleSampleSource implements SampleSource , SampleSourceReade
if ( elapsedMillis < getRetryDelayMillis ( currentLoadableExceptionCount ) ) {
return ;
}
- clearCurrentLoadableException ( ) ;
+ currentLoadableException = null ;
}
loader . startLoading ( this , this ) ;
} | Fix backoff for SingleSampleSource |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed compilation error |
<nb> public class UimaResource {
public UimaResource ( AnalysisEngine analysisEngine ) throws ResourceInitializationException {
this . analysisEngine = analysisEngine ;
- this . casPool = new CasPool ( Runtime . getRuntime ( ) . availableProcessors ( ) * NUMBER0 , analysisEngine ) ;
+ this . casPool = new Cas... | decrease heap usage of caspool |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SRTMPlugin extends OsmandPlugin {
public SRTMPlugin ( OsmandApplication app , boolean paid ) ... | Fix contour lines plugin |
<nb> public class SvnUpdateRootOptionsPanel implements SvnPanel {
@ nullable
private SVNURL getBranchForUrl ( final String url ) {
final VirtualFile root = ProjectLevelVcsManager . getInstance ( myVcs . getProject ( ) ) . getVcsRootFor ( myRoot ) ;
+ if ( root == null ) {
+ return null ;
+ }
return SvnUti... | update dialog NPE in branch field initialization |
<nb> public class PostsActivity extends ActionBarActivity
protected void onActivityResult ( int requestCode , int resultCode , Intent data ) {
if ( data != null ) {
if ( requestCode == RequestCodes . EDIT_POST && resultCode == RESULT_OK ) {
- if ( data . getBooleanExtra ( STRING0 , false ) ) {
+ if ( data . g... | Using constant for extra key |
<nb> import NAMESPACE ;
COMMENT
public final class DataInput2 implements DataInput {
- ByteBuffer buf ;
- int pos ;
+ public ByteBuffer buf ;
+ public int pos ;
public DataInput2 ( final ByteBuffer buf , final int pos ) {
this . buf = buf ;
<nb> import NAMESPACE ;
COMMENT
public final class Da... | Make some stuff in DataInput2 DataOutput2 public |
<nb> public class AutobahnServerHandler extends ChannelInboundHandlerAdapter {
SINGLE
if ( ! req . getDecoderResult ( ) . isSuccess ( ) ) {
sendHttpResponse ( ctx , req , new DefaultFullHttpResponse ( HTTP_1_1 , BAD_REQUEST ) ) ;
+ req . release ( ) ;
return ;
}
SINGLE
if ( req . getMethod ( ) != GET ... | Fix resource leakage in example |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public final class JmxMonitorRegistry implements MonitorRegistry {
<nb>
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
package NAMESPACE ; | fix some javadoc warnings |
<nb> public class LocationIndexTree implements LocationIndex
return false ;
if ( dataAccess . getHeader ( NUMBER0 ) != MAGIC_INT )
- throw new IllegalStateException ( STRING0 + MAGIC_INT ) ;
+ throw new IllegalStateException ( STRING1 + MAGIC_INT ) ;
if ( dataAccess . getHeader ( NUMBER1 * NUMBER2 ) != ca... | fixing minor typo |
<nb> public class BuildArtifactsBeforeRun implements BeforeRunTaskProvider < BuildArtif
}
public BuildArtifactsBeforeRunTask createTask ( RunConfiguration runConfiguration ) {
- if ( ! ArtifactManager . useArtifacts ( ) ) return null ;
return new BuildArtifactsBeforeRunTask ( myProject ) ;
} | do not delete Build Artifact option from Run configurations |
<nb> public class RepeatControlSet extends PopupControlSet {
@ override
public void onItemSelected ( AdapterView < ? > parentView , View view , int position , long id ) {
daysOfWeekContainer . setVisibility ( position == INTERVAL_WEEKS ? View . VISIBLE : View . GONE ) ;
+ intervalValue = position ;
}
@ ov... | Fixed a bug where repeat display wouldn t update correctly |
<nb> public class RobolectricTestRunner extends BlockJUnit4ClassRunner {
parallelUniverseInterface . setUpApplicationState ( method , testLifecycle , systemResourceLoader , appManifest , config ) ;
}
- private SdkConfig pickSdkVersion ( AndroidManifest appManifest , Config config ) {
+ protected SdkConfig pic... | Relax modifiers on RobolectricTestRunner so that we can override with some custom logic |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> class LockScreen extends LinearLayout implements KeyguardScreen , KeyguardUpdateM
mCallback = callback ;
mDisableMenuKeyInLockScreen = getResources (... | Always enable the menu hard key in LockScreen when ro monkey is set |
<nb> class LimitedLocalNodeFirstLocalBalancingPolicy implements LoadBalancingPolicy
}
}
- @ override
public void onSuspected ( Host host )
{
SINGLE | remove unneeded override |
<nb> public class SelectStatement implements CQLStatement
}
else
{
- if ( hasQueriableIndex )
- {
- stmt . usesSecondaryIndexing = true ;
- break ;
- }
- throw new InvalidRequestException ( STRING0 ) ;
+ SINGLE
+ SINGLE
+ throw new InvalidRequestException ( STRING1 ) ;
}
previous = cname ;
... | Fix SELECT validation |
<nb> public abstract class SensorMatcher implements BatchExtension , ExtensionMatcher
@ override
public final boolean accept ( Object extension ) {
return ClassUtils . isAssignable ( extension . getClass ( ) , Sensor . class )
- && acceptSensor ( ( Sensor ) extension ) || ClassUtils . isAssignable ( extension .... | Fix issue after renaming Analyzer Sensor |
<nb> public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
final RangeMarker selEndMarker ;
SelectionAndCaretMarkupLoader ( String fullPath ) throws IOException {
- final VirtualFile vFile = LocalFileSystem . getInstance ( ) . findFileByPath ( fullPath . replace ( File . separatorChar... | refresh expected file |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PythonSdkDetailsDialog extends DialogWrapper {
private void removeSdk ( ) {
final Sdk currentSdk = g... | fixed remove readd python sdk |
<nb> public class JavaVetoRenameCondition implements Condition < PsiElement > {
public boolean value ( final PsiElement element ) {
return element instanceof PsiJavaFile &&
! JspPsiUtil . isInJspFile ( element ) &&
- ! CollectHighlightsUtil . isOutsideSourceRootJavaFile ( ( PsiFile ) element ) &&
+ ! CollectH... | Java veto rename condition to pass on Java like out of source files |
<nb> public class CompressionLoader {
}
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
-
public static synchronized int getUncompressedBufferSize ( int compressedBufferSize , CompressionLevel cl ) {
final CompressionLibrary c = compressionLibraries . get ( cl ) ; | Removed some old outdated code |
<nb> public class EntityResizableCuboid extends Entity {
COMMENT
COMMENT
- @ sideonly ( Side . CLIENT )
public double textureStartX = NUMBER0 , textureStartY = NUMBER0 , textureStartZ = NUMBER0 ;
COMMENT
- @ sideonly ( Side . CLIENT )
public double textureSizeX = NUMBER1 , textureSizeY = NUMBER1 , tex... | Fix a dedicated server crash and add a title to the top of the network statistcis panel |
<nb> public abstract class TransferSettings {
COMMENT
public final String getField ( String key ) throws StorageException {
try {
- Object fieldValueAsObject = this . getClass ( ) . getDeclaredField ( key ) . get ( this ) ;
+ Field field = this . getClass ( ) . getDeclaredField ( key ) ;
+ field . setAccess... | Fix TS getField |
<nb> public class MainActivity extends Activity {
public void onLongPress ( MotionEvent e ) {
PointI point31 = new PointI ( ) ;
mapView . getLocationFromScreenPoint ( new PointI ( ( int ) e . getX ( ) , ( int ) e . getY ( ) ) , point31 ) ;
- geocode ( point31 ) ;
- Toast . makeText ( MainActivity . this , STR... | Fix crash permissions |
<nb> public class ReadOnlyStorageEngine implements StorageEngine < ByteArray , byte [ ] , b
COMMENT
private void deleteBackups ( ) {
File [ ] storeDirList = ReadOnlyUtils . getVersionDirs ( storeDir , NUMBER0 L , currentVersionId ) ;
- if ( storeDirList . length > ( numBackups + NUMBER1 ) ) {
+ if ( storeDirL... | Fix NPE in listing read only store versions |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class FileInputFormat < OT > implements InputFormat < OT , FileInputSp
COMMENT
COMMENT
COMMENT
- public static Confi... | FileInputFormat builder accepts GenericDataSources |
<nb> public class TimeLineCursorAdapter extends CursorAdapter {
holder . quoteButton . setOnClickListener ( new View . OnClickListener ( ) {
@ override
public void onClick ( View view ) {
- Intent intent = new Intent ( context , ComposeActivity . class ) ;
+ Intent intent ;
+ if ( ! secondAcc ) {
+ intent... | Fix Use second account when quoting |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ThemeBrowserFragment extends Fragment implements RecyclerListener ,
private SwipeToRefreshHelper mSwipeToRefreshHelper ;
@ override
-... | Replacing onAttach with non depracated version |
<nb> public class HttpGenerator
}
catch ( Exception e )
{
- String message = ( e instanceof BufferOverflowException ) ? STRING0 : e . getMessage ( ) ;
+ String message = ( e instanceof BufferOverflowException ) ? STRING1 : e . getMessage ( ) ;
throw new IOException ( message , e ) ;
}
finally | Fixing exception message |
<nb> public class RouteStartupOrderSimpleTest extends ContextTestSupport {
public void testRouteStartupOrder ( ) throws Exception {
MockEndpoint mock = getMockEndpoint ( STRING0 ) ;
- mock . expectedMessageCount ( NUMBER0 ) ;
+ mock . expectedMessageCount ( NUMBER1 ) ;
template . sendBody ( STRING1 , STRI... | Fixed unit test |
<nb>
package NAMESPACE ;
+ import static NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
- @ ignore
public class EmbeddableInterfaceTest {
@ entity
<nb> public class EmbeddableInterfaceTest {
}
... | improved embeddable interface tests |
<nb> public interface PlayerInventory extends Inventory {
COMMENT
public int getHeldItemSlot ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public int clear ( int id , int data ) ;
+
public HumanEntity getHolder ( ) ;
} | Add clear inventory API to PlayerInventory with a successful count return |
<nb> public class FileChooserActivity extends Activity {
COMMENT
COMMENT
+ COMMENT
if ( getIntent ( ) . hasExtra ( _Theme ) ) {
int theme ;
if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . ICE_CREAM_SANDWICH )
<nb> public class FileChooserActivity extends Activity {
theme = getIntent ( ) . ge... | fixed possible SuperNotCalledException |
<nb> public class AnnotationPreProcessor {
COMMENT
COMMENT
private boolean hasAnnotationProcessors ( ) {
- ServiceLoader < Processor > serviceLoader = ServiceLoader . load (
- Processor . class , new PathClassLoader ( Options . getClassPathEntries ( ) ) ) ;
+ PathClassLoader loader = new PathClassLoader ( O... | Include processorpaths when searching for annotation processors |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class DefaultAsyncHttpClient implements AsyncHttpClient {
private final static Logger LOGGER = LoggerFactory . getLogger ( DefaultAsyncHttpClient . class ) ; | added ThreadSafe in comments section for DefaultAsyncHttpClient |
<nb> public abstract class GrammaticalStructure implements Serializable {
IndexedWord root = rootTypedDep . dep ( ) ;
IndexedWord newRoot = null ;
+ Collections . sort ( basicDep ) ;
for ( TypedDependency td : basicDep ) {
if ( td . gov ( ) . equals ( root ) ) {
if ( newRoot != null ) { | Fix non determinism in finding the root in UD trees |
<nb> public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > {
} catch ( IllegalStateException x ) {
registerForEvent ( false , true ) ;
}
- } else if ( status == SocketStatus . OPEN_READ ) {
+ } else if ( status == SocketStatus . OPEN_READ &&
+ request . getReadListener ( ) != n... | Only try a non blocking read if non blocking is being used |
<nb> public abstract class BaseTextVectorizer implements TextVectorizer {
String sentence = getSentenceIterator ( ) . nextSentence ( ) ;
if ( sentence == null )
break ;
+ if ( sentence . isEmpty ( ) ) continue ;
vocabActor . tell ( new VocabWork ( latch , sentence , stem ) , vocabActor ) ;
queued . incremen... | skip blank lines |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed compile error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract class ActionBarActivityDelegate {
ActionBarDrawerToggle . Delegate {
@ override
public Drawable getThemeUpIndicator ( ) {
-... | Fix default up indicator tint when using ActionBarDrawableToggle |
<nb> public class ChunkedStreamSinkConduit extends AbstractStreamSinkConduit < StreamSi
@ override
public void terminateWrites ( ) throws IOException {
+ if ( anyAreSet ( state , FLAG_WRITES_SHUTDOWN ) ) {
+ return ;
+ }
if ( this . chunkleft != NUMBER0 ) {
throw UndertowMessages . MESSAGES . chunkedCha... | Fix issue with writing the last chunk for chunked requests |
<nb> public class CategoriesListActivity extends KickMaterialBaseActivity implements
public void categoryClicked ( Category category ) {
animateCategoryColor ( category ) ;
SINGLE
- discoverField . postValue ( DiscoverQuery . getDiscoverQuery ( category , NUMBER0 ) ) ;
+ discoverField . postValue ( DiscoverQu... | preload correct page when category is clicked |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EditorColorsManagerImpl extends EditorColorsManager implements Name
setGlobalScheme ( myDefaultColorSchemesManager . getAllSc... | don t use default scheme with darcula |
<nb> public class CamelScriptTest extends AbstractSpringBootTestSupport {
@ test
public void componentTests ( ) throws Exception {
- this . runLanguageTest ( config , STRING0 ) ;
+ this . runLanguageTest ( config , STRING1 ) ;
this . runLanguageTest ( config , STRING2 ) ;
this . runLanguageTest ( config ,... | Changed checked name to javaScript |
<nb> public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Cal
long d = timer . update ( System . currentTimeMillis ( ) - mTimeBase ) ;
if ( mCallback != null ) {
mCallback . updateTimer ( timer ) ;
+ d = timer . lastInterval ( ) ;
}
if ( d < NUMBER0 ) {
try { | update interval value after callback called |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer . IContex
float y = tileBox . getPixYFromLatLon ( o . lat , o . l... | Fix icons for GPX layer |
<nb> public final class ServiceVerificationHandler extends AbstractServiceListener < Ob
public synchronized void listenerAdded ( final ServiceController < ? > controller ) {
set . add ( controller ) ;
+ if ( ! controller . getSubstate ( ) . isRestState ( ) ) {
+ outstanding ++ ;
+ }
}
public synchroni... | Take proper action on the first state |
<nb> public class TermSession {
}
}
} ;
- mReaderThread . setName ( STRING0 ) ;
+ mReaderThread . setName ( STRING1 ) ;
mWriteQueue = new ByteQueue ( NUMBER0 ) ;
mWriterThread = new Thread ( ) {
<nb> public class TermSession {
}
}
} ;
- mWriterThread . setName ( STRING2 ) ;
+ mWriterThread .... | Use more descriptive thread names |
<nb> public class RestSqlActionTest extends AbstractSharedCrateClusterTest {
JSONAssert . assertEquals (
STRING0 +
STRING1 +
- STRING2 +
+ STRING3 +
STRING4 +
STRING5 +
STRING6 +
- STRING7 +
+ STRING8 +
STRING9
, json , true ) ;
}
<nb> public class RestSqlActionTest extends AbstractSharedCra... | fixed tests related to new property in test mapping |
<nb> import NAMESPACE ;
COMMENT
public interface Renderer {
+ public void initialize ( ) ;
+
COMMENT
COMMENT
COMMENT
<nb> public class NullRenderer implements Renderer {
private static final EnumSet < Caps > caps = EnumSet . noneOf ( Caps . class ) ;
private static final Statistics stats = new Sta... | Make Renderer initialize a standard method since everyone already uses it anyway |
<nb> public class DemoTagger implements Tagger {
@ override
public List < AnalyzedTokenReadings > tag ( final List < String > sentenceTokens ) {
- final List < AnalyzedTokenReadings > tokenReadings = new ArrayList < AnalyzedTokenReadings > ( ) ;
- int pos = NUMBER0 ;
+ final List < AnalyzedTokenReadings > t... | remove unused variable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.