diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ChatSessionManagerAdapter extends info . guardianproject . otr . app . im . I
if ( ( connAdaptee . getCapability ( ) & ImConnection . CAPABILITY_GROUP_CHAT ) != NUMBER0 ) {
mGroupManager = connAdaptee . getChatGroupManager ( ) ;
- mGroupManager . addGroupListener ( new ChatGroupListenerAdpater... | fixed typo in class name |
<nb> public class StoreDirectTest2 {
( ( StoreDirect ) db . engine ) . storeCheck ( ) ;
Map map = db . hashMap ( STRING0 , Serializer . INTEGER , Serializer . BYTE_ARRAY ) ;
( ( StoreDirect ) db . engine ) . storeCheck ( ) ;
- long n = ( long ) ( NUMBER0 + FLOAT0 * TT . scale ( ) ) ;
+ long n = ( long ) ( NUM... | Make tests faster |
<nb> public class ClassDataItem extends Item < ClassDataItem > {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ nullable
public TypeIdItem getParentType ( ) { | Fix the javadoc for ClassDataItem getParentType |
<nb> public class GpsLocationProvider implements LocationProviderInterface {
&& mAGpsDataConnectionState == AGPS_DATA_CONNECTION_OPENING ) {
if ( mNetworkAvailable ) {
String apnName = info . getExtraInfo ( ) ;
+ SINGLE
+ if ( apnName == null ) {
+ apnName = getSelectedApn ( ) ;
+ }
if ( apnName == null... | DO NOT MERGE Work around for not getting APN info in NetworkInfo object |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class EncoderUtil {
private static final BitSet Q_RESTRICTED_CHARS = initChars ( STRING0 ) ;
- private static final int MAX_USED_CHARACTERS = N... | Removed unused import constant |
<nb> import NAMESPACE ;
public class AggregatorUtil
{
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public static List < PostAggregator > pruneDependentPostAgg ( List < PostAggregator > postAggregatorList , String postAggName )
<nb> public class Aggreg... | complete javadoc add comment use Lists reverse |
<nb> public class ClojureSnippetTest {
String snippet = new SnippetGenerator ( new ClojureSnippet ( ) ) . getSnippet ( step ) ;
String expected = STRING0 +
STRING1 +
- < < < < < < < HEAD
STRING2 ;
assertEquals ( expected , snippet ) ;
} | remove accidentally left in git artifact |
<nb> public class ReportedData {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getValue ( String variable ) {
+ for ( Iterator it = getFields ( ) ; it . hasNext ( ) ; ) {
+ Field field = ( Field ) it . next ( ) ;
+ if ( variable . equals ( field . getVariable ( ) ) ... | Adds getValue String to the inner class Row which allows to hide the inner class Field |
<nb> public final class NestedSetVisitor < E > {
}
private boolean add ( NestedSet < E > set ) {
- return seenSets . add ( set ) ;
+ return ! set . isEmpty ( ) && seenSets . add ( set ) ;
}
}
} | Optimize empty nested sets of errors warnings during Skyframe evaluation |
<nb> public abstract class Resource implements Serializable
{
StringBuffer buf = null ;
+ loop:
for ( int i = NUMBER0 ; i < raw . length ( ) ; i ++ )
{
char c = raw . charAt ( i ) ;
<nb> public abstract class Resource implements Serializable
case STRING0 :
case STRING1 :
buf = new StringBuffer ( r... | fixed loop break |
<nb> public enum CompilationLevel {
SINGLE
options . reserveRawExports = false ;
switch ( this ) {
- case ADVANCED_OPTIMIZATIONS :
- break ;
case SIMPLE_OPTIMIZATIONS :
SINGLE
options . setVariableRenaming ( VariableRenamingPolicy . ALL ) ;
<nb> public enum CompilationLevel {
options . setInlineVari... | Remove an unnecessary switch case |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AgentService extends AbstractIdleService implements Managed {
SINGLE
final MetricRegistry metricsRegistry = environme... | add memory usage metrics to helios agent |
<nb> public class ClientListTest {
assertTrue ( latch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ;
}
+
+ @ test
+ public void testIsEmpty ( ) {
+ assertTrue ( list . isEmpty ( ) ) ;
+ assertEquals ( NUMBER1 , list . size ( ) ) ;
+ list . add ( STRING0 ) ;
+ assertFalse ( list . isEmpty ( ) ) ;
+ a... | added client list set isEmpty method |
<nb> public class CodeStyleSettings implements Cloneable , JDOMExternalizable {
if ( fileTypeId != null && fileTypeId . length ( ) > NUMBER0 ) {
FileType target = FileTypeManager . getInstance ( ) . getFileTypeByExtension ( fileTypeId ) ;
- if ( FileTypes . UNKNOWN == target ) {
+ if ( FileTypes . UNKNOWN == ... | add PLAIN_TEXT filetype as unknown for additional indent options there is no plain text indent options |
<nb> public class SpecRewriter extends AbstractSpecVisitor implements IRewriteResourc
method . setCode ( block ) ;
method . setReturnType ( ClassHelper . VOID_TYPE ) ;
method . setVariableScope ( new VariableScope ( ) ) ;
- method . getAnnotations ( ) . clear ( ) ; SINGLE
+ method . getAnnotations ( ) . clear... | allow Subject on local vars |
<nb> public class AnnotationAppenderForTypeAnnotationsTest {
private TypeDescription . Generic . Visitor < AnnotationAppender > visitor ;
@ before
+ @ suppresswarnings ( STRING0 )
public void setUp ( ) throws Exception {
when ( annotationAppender . append ( annotationDescription , annotationValueFilter , BA... | Ignore unsafe casting in test case |
<nb> public class ExecutionTool {
}
}
if ( headerFlag ) {
- outErr . printErr ( STRING0 ) ;
outErr . printErr ( STRING1 + label + STRING2 ) ;
}
} | Remove debugging statement |
<nb> public abstract class CodegenContext {
return parentContext ;
}
- public Type jvmType ( JetTypeMapper mapper ) {
- if ( contextType instanceof ClassDescriptor ) {
- return mapper . mapType ( ( ( ClassDescriptor ) contextType ) . getDefaultType ( ) , JetTypeMapper . ownerKindToMapTypeMode ( contextKind ... | remove unused code |
<nb> public class StorageVolume implements Parcelable {
return - NUMBER0 ;
}
try {
- return Integer . parseInt ( mUuid . replace ( STRING0 , STRING1 ) , NUMBER1 ) ;
+ return ( int ) Long . parseLong ( mUuid . replace ( STRING0 , STRING1 ) , NUMBER1 ) ;
} catch ( NumberFormatException e ) {
return - NUMBER... | Parse UUID string with Long parseLong |
<nb> public class NameTable {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public String getMethodReferenceName ( IMethodBinding method , IMethodBinding functionalInterface ) {
- if ( method . isVarargs ( ) ) {
- return getFullName ( method . getDeclaringClass ( ) ) + STRING0
- ... | Remove dead method |
<nb> public class SourceDbBenchmarkTest {
long period = end - start ;
long throughputPerSecond = NUMBER0 * counter . get ( ) / period ;
LOGGER . info ( String . format ( STRING0 , counter . get ( ) , period , throughputPerSecond ) ) ;
- benchmark . expectAround ( STRING1 , throughputPerSecond , NUMBER1 , FLOAT0... | Fix error margin of SourceDbBenchmarkTest |
<nb> public interface FrameworkConfig {
COMMENT
String SIMPLE_HTTP_OVER_WEBSOCKET = STRING0 ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
String STREAMING_HTTP_OVER_WEBSOCKET = STRING1 ;
COMMENT
<nb> public class SimpleHttpProtocol implements WebSocketProtocol , Serializable {
}
AtmosphereRequest reques... | Fix missing subprotocol |
<nb> public class Liquibase {
LoggingExecutor loggingExecutor = new LoggingExecutor ( ExecutorService . getInstance ( ) . getExecutor ( database ) , output , database ) ;
ExecutorService . getInstance ( ) . setExecutor ( database , loggingExecutor ) ;
- outputHeader ( STRING0 ) ;
+ outputHeader ( STRING1 ) ; ... | Fixed type due to mistyped ctrl k |
<nb> public class ClassFilterEditor extends JPanel implements ComponentWithEmptyText
}
public boolean isCellEditable ( int rowIndex , int columnIndex ) {
- return isEnabled ( ) && ( columnIndex == CHECK_MARK ) ;
+ return isEnabled ( ) ;
}
public void removeRow ( final int idx ) { | made filters table cells editable |
<nb> public class BranchesPanel extends JPanel {
@ override
protected void paintComponent ( Graphics g ) {
- myRefPositions = myRefPainter . draw ( ( Graphics2D ) g , myRefs , UIUtil . DEFAULT_HGAP ) ;
+ myRefPositions = myRefPainter . draw ( ( Graphics2D ) g , myRefs , NUMBER0 ) ;
}
public void rebuild... | Remove extra gap at the left of the branches panel |
<nb> public class RtspRequestDecoder extends HttpMessageDecoder {
protected boolean isDecodingRequest ( ) {
return true ;
}
-
} | Removed an empty line |
<nb> public class ResourceNotFoundException extends ElasticsearchException {
super ( msg , args ) ;
}
- protected ResourceNotFoundException ( String msg , Throwable cause , Object . . . args ) {
+ public ResourceNotFoundException ( String msg , Throwable cause , Object . . . args ) {
super ( msg , cause , a... | Fix exception on task not found |
<nb> public abstract class HystrixCommandProperties {
private static final Integer default_metricsRollingStatisticalWindowBuckets = NUMBER0 ; SINGLE
private static final Integer default_circuitBreakerRequestVolumeThreshold = NUMBER1 ; SINGLE
private static final Integer default_circuitBreakerSleepWindowInMillisec... | Fix a comment which is a bit confusing |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SampleOpenTsdbExportApplication {
@ bean
@ configurationproperties ( STRING0 )
+ @ exportmetricwriter
public MetricWriter openTsdbMetricWriter ( ) {
Ope... | Add missing annotation to openTSDB sample |
<nb> public final class HttpPageBufferClient
clientCallback . clientFailed ( HttpPageBufferClient . this , t ) ;
}
- increaseErrorDelay ( ) ;
synchronized ( HttpPageBufferClient . this ) {
+ increaseErrorDelay ( ) ;
future = null ;
lastUpdate = DateTime . now ( ) ;
} | Move increaseErrorDelay in synchronized block |
<nb> public class PipelineRoutedStore extends RoutedStore {
Event . RESPONSES_RECEIVED ,
key ,
failureDetector ,
- storeDef . getPreferredReads ( ) ,
storeDef . getRequiredWrites ( ) ,
timeoutMs ,
nonblockingStores ) ) ;
<nb> import NAMESPACE ;
public class PerformParallelPutRequests extends
Abstrac... | Removed unused variable |
<nb> public class CallHistoryButton
COMMENT
COMMENT
private void setNotificationView (
- Collection < UINotificationGroup > notificationGroups )
+ final Collection < UINotificationGroup > notificationGroups )
{
+ if ( ! SwingUtilities . isEventDispatchThread ( ) )
+ {
+ SwingUtilities . invokeLater ( ... | Moves some ui code to be executed in EDT |
<nb> public class RecentsHorizontalScrollView extends HorizontalScrollView
}
setLayoutTransition ( transitioner ) ;
- SINGLE
- final ViewTreeObserver observer = getViewTreeObserver ( ) ;
+ SINGLE
final OnGlobalLayoutListener updateScroll = new OnGlobalLayoutListener ( ) {
public void onGlobalLayout ( ... | Fix jump cut when dismissing items in Recents |
<nb> public class LocalOnlyOkHttpDownloader implements Downloader {
HttpURLConnection connection = openConnection ( uri ) ;
connection . setUseCaches ( true ) ;
if ( localCacheOnly ) {
+ SINGLE
+ SINGLE
+ SINGLE
connection . setRequestProperty ( STRING0 ,
- STRING1 + Integer . MAX_VALUE
- + STRING2 + ... | Accept stale images of any age use rec |
<nb> public final class FileSystemMaster extends AbstractMaster {
ExceptionMessage . FILE_ALREADY_EXISTS . getMessage ( dstPath ) ) ;
}
- SINGLE
+ SINGLE
long opTimeMs = System . currentTimeMillis ( ) ;
renameInternal ( srcInode . getId ( ) , dstPath , false , opTimeMs ) ; | Remove misplaced generic from comment |
<nb> public class ExternalAnnotationsManagerImpl extends ExternalAnnotationsManager {
}
}
}
- final MyExternalPromptDialog dialog = new MyExternalPromptDialog ( project ) ;
- if ( dialog . isToBeShown ( ) ) {
+ final MyExternalPromptDialog dialog = ApplicationManager . getApplication ( ) . isUnitTestMode ( ... | do not create dialog in headless mode |
<nb> public class JavaDocInfoGenerator {
return text . length ( ) ;
}
- int length = generateLink ? generateLink ( buffer , qName , null , context , false ) : NUMBER0 ;
+ int length ;
+ if ( generateLink ) {
+ length = generateLink ( buffer , qName , null , context , false ) ;
+ }
+ else {
+ buffer ... | restore type on Ctrl mouse |
<nb> public class EventPackageSubscriber
subscription . setTimerTask ( refreshTask ) ;
int refreshDelay = expHeader . getExpires ( ) ;
- SINGLE
- if ( refreshDelay >= refreshMargin )
+ SINGLE
+ if ( refreshDelay >= ( NUMBER0 * refreshMargin ) )
refreshDelay -= refreshMargin ;
timer . schedule ( refres... | SIP Message flood |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LocationConvert {
public static final int FORMAT_MINUTES = NUMBER0 ;
public static final int FORMAT_SECO... | Added OLC converters to LocationConvert |
<nb> public class NdkCxxPlatform implements CxxPlatform {
this . cxxldflags = ImmutableList . of ( ) ;
this . ld = new GnuLinker ( getTool ( ndkRoot , targetConfiguration , host , STRING0 , version ) ) ;
- SINGLE
- this . ldflags = ImmutableList . of ( STRING1 , STRING2 ) ;
+ SINGLE
+ this . ldflags = Imm... | enable GC garbage collection just like the NDK does |
<nb> public class McastService implements MembershipService , MembershipListener , Messag
p . setProperty ( STRING0 , STRING1 ) ;
p . setProperty ( STRING2 , STRING3 ) ;
p . setProperty ( STRING4 , STRING5 ) ;
+ p . setProperty ( STRING6 , STRING7 ) ;
+ p . setProperty ( STRING8 , STRING9 ) ;
service . setP... | Fix IllegalArgumentException thrown by simple test for McastService |
<nb> public class ExtensionScript extends ExtensionAdaptor implements CommandLineList
Thread . currentThread ( ) . setContextClassLoader ( previousContextClassLoader ) ;
}
- return invokeScript ( script ) . getInterface ( class1 ) ;
+ if ( script . isRunableStandalone ( ) ) {
+ return null ;
+ }
+
+ I... | Fix NPE when attempting to get an interface from a Zest script |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
public class RemoveRelationshipFunctionalTest {
private NeoServer server ;
<nb> public class RemoveRelationshipFunctionalTest {
private ClientResponse sendDeleteRequest ( URI requestUri ) {
Client client = Clien... | http DELETE requires the proper mediatype to accept |
<nb> public class OptimizerFactory {
}
}
- public Serializable generate ( AccessCallback callback ) {
+ public synchronized Serializable generate ( AccessCallback callback ) {
if ( lastSourceValue < NUMBER0 ) {
lastSourceValue = callback . getNextValue ( ) ;
while ( lastSourceValue <= NUMBER0 ) {
<nb>... | synchronize enhanced id gen optimizers |
<nb> public class PresenceStatusSelectorBox
if ( protocolProvider . isRegistered ( )
&& ! presence . getPresenceStatus ( ) . equals ( status ) )
{
- new PublishPresenceStatusThread ( status ) ;
+ new PublishPresenceStatusThread ( status ) . start ( ) ;
}
}
<nb> public class OperationSetPersistentPrese... | Fix provider initial status and icq receceiving initial status |
<nb> class Clicker {
if ( view != null ) {
views = viewFetcher . getViews ( view , true ) ;
views = RobotiumUtils . removeInvisibleViews ( views ) ;
- clickOnScreen ( getClickableView ( views ) ) ;
+ clickOnScreen ( view ) ;
}
return RobotiumUtils . filterViews ( TextView . class , views ) ;
}
-
- C... | Modified clickInList so that it clicks in the middle of the list line |
<nb> public abstract class WebViewMapFragment extends Fragment implements AirMapInter
public void getSnapshot ( OnSnapshotReadyListener listener ) {
boolean isDrawingCacheEnabled = webView . isDrawingCacheEnabled ( ) ;
webView . setDrawingCacheEnabled ( true ) ;
- webView . buildDrawingCache ( ) ;
SINGLE
SI... | Remove explicit call to build the drawing cache |
<nb> public class GLMTest extends TestUtil {
}
}
- @ test @ ignore ( STRING0 )
+ @ test
public void testCitibikeReproPUBDEV1953 ( ) throws Exception {
GLMModel model = null ;
Frame tfr = parse_test_file ( STRING1 ) ; | Un ignored passing test in glm |
<nb> public class AntBuilder extends BuilderSupport {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
protected Task createTask ( String taskName ) {
return createTask ( taskName , ( Class ) getAntProject ( ) . getTaskDefinitions ( ) . get ( taskName ) ) ; | fixed javadoc warnings |
<nb> public class Observable < T > {
COMMENT
COMMENT
COMMENT
- public final Observable < Boolean > contains ( final T element ) {
+ public final Observable < Boolean > contains ( final Object element ) {
return exists ( new Func1 < T , Boolean > ( ) {
public final Boolean call ( T t1 ) {
return element ... | Update contains signature to contains Object |
<nb> class LeafBlockWrapper extends AbstractBlockWrapper {
private LeafBlockWrapper myNextBlock ;
private SpacingImpl mySpaceProperty ;
private IndentInside myLastLineIndent ;
- private CharSequence myText ;
public LeafBlockWrapper ( final Block block ,
CompositeBlockWrapper parent ,
<nb> class LeafBloc... | debug text field removed from LeafBlockWrapper |
<nb> public class SvnKitPropertyClient extends BaseSvnClient implements PropertyClien
@ override
public void setProperties ( @ notnull File file , @ notnull SVNProperties properties ) throws VcsException {
+ final SVNProperties propertiesToSet = properties ;
try {
createClient ( ) . doSetProperty ( file , n... | Fixed SvnKitPropertyClient setProperties correctly apply passed properties instead of anonymous class method argument with same name |
<nb> public class SelectWordUtil {
public List < TextRange > select ( PsiElement e , CharSequence editorText , int cursorOffset , Editor editor ) {
PsiJavaToken token = ( PsiJavaToken ) e ;
- if ( token . getTokenType ( ) != JavaTokenType . SEMICOLON ) {
+ if ( token . getTokenType ( ) != JavaTokenType . SEMI... | select word does not select lparenth to allow e g cast selection |
<nb> public class SugarRecord {
public void delete ( ) {
SQLiteDatabase db = getSugarContext ( ) . getSugarDb ( ) . getDB ( ) ;
db . delete ( NamingHelper . toSQLName ( getClass ( ) ) , STRING0 , new String [ ] { getId ( ) . toString ( ) } ) ;
+ Log . i ( STRING1 , getClass ( ) . getSimpleName ( ) + STRING2 + g... | add Log on delete |
<nb> public abstract class BasePretrainNetwork < LayerConfT extends org . deeplearning4j .
}
}
- public INDArray params ( ) {
+ public INDArray params ( ) {
+ return params ( false ) ;
+ }
+
+ public INDArray params ( boolean backprop ) {
List < INDArray > list = new ArrayList < > ( NUMBER0 ) ;
fo... | Fix params method for BasePretrainNetwork |
<nb> public abstract class ChooseByNameBase {
int match = shortName != null && matcher instanceof MinusculeMatcher
? ( ( MinusculeMatcher ) matcher ) . matchingDegree ( shortName ) : Integer . MIN_VALUE ;
int stats = StatisticsManager . getInstance ( ) . getUseCount ( new StatisticsInfo ( statContext , text ) ) ;... | prefer items with exactly typed prefix |
<nb> public class AnnotationConfigUtils {
}
}
- static void processCommonDefinitionAnnotations ( AnnotatedBeanDefinition abd ) {
+ public static void processCommonDefinitionAnnotations ( AnnotatedBeanDefinition abd ) {
processCommonDefinitionAnnotations ( abd , abd . getMetadata ( ) ) ;
} | Made processCommonDefinitionAnnotations AnnotatedBeanDefinition public |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class GroovyCompilerBase implements TranslatingCompiler {
final String home = LibrariesUtil . getGroovyLibraryHome ( classEntries ) ;
asser... | make groovy project compile editable compiler excludes configuration |
<nb> public class OsmandSettings {
SINGLE
public final CommonPreference < Boolean > SHOW_DESTINATION_ARROW = new BooleanPreference ( STRING0 , true ) . makeProfile ( ) ;
+ {
+ SHOW_DESTINATION_ARROW . setModeDefaultValue ( ApplicationMode . CAR , false ) ;
+ }
SINGLE
public final CommonPreference < St... | Don t show destination arrow in car by default |
<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 static NAMESPACE ;
+ import static NAMESPACE... | Passing sources via compiler configuration in BytecodeCompiler |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ incubating
public interface TwirlSourceSet extends LanguageSourceSet {
} | Cleanup for play twirl source sets story |
<nb> public class CallPeerJabberImpl
try
{
+ mediaHandler . getTransportManager ( ) .
+ wrapupConnectivityEstablishment ( ) ;
mediaHandler . processAnswer ( answer ) ;
}
catch ( Exception exc ) | Wait the end of ICE processing to process session accept message |
<nb> public class PlanGenerator {
}
if ( leg . to == null ) {
COMMENT
- leg . to = makePlace ( edgeNarrative . getToVertex ( ) ) ;
+ leg . to = makePlace ( edgeNarrative . getFromVertex ( ) ) ;
leg . endTime = new Date ( currState . getBackState ( ) . getTime ( ) ) ;
}
Geometry geometry = geometryFactor... | fix wrong end of walk legs after discussions with from lukwit |
<nb> public class Lucene {
public static final Version QUERYPARSER_VERSION = VERSION ;
public static final String LATEST_DOC_VALUES_FORMAT = STRING0 ;
public static final String LATEST_POSTINGS_FORMAT = STRING0 ;
- public static final String LATEST_CODEC = Codec . getDefault ( ) . getName ( ) ;
+ public stati... | Fix constant to not use the default codec name since it can change in tests |
<nb>
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+
package NAMESPACE ;
import static NAMESPACE ; | Added a HttpInput integration test |
<nb> public final class ItemCounter < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public void set ( T item , long value ) {
<nb> public final class ItemCounter < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public void reset ( ) {
for ( MutableLong entry : map . ... | Add toString to ItemCounter |
<nb> class SiteStreamsImpl extends AbstractStreamImplementation implements StreamImpl
}
public void next ( StreamListener [ ] listeners ) throws TwitterException {
- this . listener = ( SiteStreamsListener ) listeners [ NUMBER0 ] ;
- handleNextElement ( ) ;
+ try {
+ this . listener = ( SiteStreamsListene... | Fix issue control stream not being renewed upon stream reconnect |
<nb> public class JsonReaderTest extends GdxTest {
text = text . replace ( STRING0 , STRING1 ) ;
check ( text , object ) ;
+
+ text = text . replace ( STRING1 , STRING2 ) ;
+ check ( text , object ) ;
}
private void check ( String text , Object object ) { | Added another JSON test |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NewElementAction extends AnAction implements DumbAware , PopupActio
presentation . setEnabled ( false ) ;
return ;
}
- final IdeView ideView = LangDataKeys ... | enable File New action in Database view |
<nb> public class DotMojo extends AbstractMavenReport {
protected boolean runCamel ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ protected boolean useDot ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class DotMojo extends AbstractMavenReport {
private String mainClass... | Fixing a CheckStyle error |
<nb> public enum DataType {
@ override
public String toString ( ) {
-
return name ;
}
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public abstract class AggFunction < T extends AggState > {
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAM... | fixed imports and newline |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class SpellcheckingStrategy {
- protected final Tokenizer < PsiPlainText > myPlainTextTokenizer = TokenizerBase . create ( SplitterFactory . getInstance ( ) . getPlainTextSplitter ( ) ) ;
protected final Tokenizer < PsiComment > myCommentTokenizer = new Commen... | remove redundant tokenizer field |
<nb> public abstract class PropertyReferenceBase implements PsiPolyVariantReference ,
}
public boolean isReferenceTo ( PsiElement element ) {
- return element instanceof Property && Comparing . strEqual ( ( ( Property ) element ) . getUnescapedKey ( ) , getKeyText ( ) ) ;
+ if ( ! ( element instanceof Propert... | check references resolve |
<nb> public class ExecutionTool {
SINGLE
ImmutableSet < Artifact > additionalArtifacts = analysisResult . getAdditionalArtifactsToBuild ( ) ;
- SINGLE
- SINGLE
- if ( ! request . getBuildOptions ( ) . performExecutionPhase ) {
- return ;
- }
-
SINGLE
SINGLE
if ( getWorkspace ( ) . getFileSystem ... | Remove useless flag check executeBuild is only called if execution is requested |
<nb> public class ExtendedGroovyClassLoader extends GroovyClassLoader {
private static final String SHARED_PACKAGE = STRING0 ;
+ private static final URL [ ] NO_URLS = new URL [ ] { } ;
+
private final Map < String , byte [ ] > classResources = new HashMap < String , byte [ ] > ( ) ;
private final Groov... | Don t expose URLs from InnerLoader |
<nb> class Main {
private boolean bitextMode ;
private JLanguageTool srcLt ;
List < BitextRule > bRules ;
- long [ ] workTime = new long [ NUMBER0 ] ;
private Rule currentRule ;
COMMENT | remove unused field no functional change |
<nb> public abstract class DaemonRunner < S > {
}
if ( null != killerHook ) {
+ Runtime . getRuntime ( ) . removeShutdownHook ( killerHook ) ;
killerHook = null ;
log . debug ( STRING0 , killerHook ) ;
} | Remove daemon killing shutdown hooks in testing |
<nb> import NAMESPACE ;
COMMENT
public final class LoginHelper {
+ COMMENT
+ COMMENT
+ COMMENT
private LoginHelper ( ) { }
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
public interface CredentialsAdapter {
+
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
Credentials conve... | Added missing javadocs |
<nb> public final class Typeface_Delegate {
if ( familyName == null ) {
familyName = DEFAULT_FAMILY ;
}
+ if ( style < NUMBER0 ) {
+ style = Typeface . NORMAL ;
+ }
Typeface_Delegate newDelegate = new Typeface_Delegate ( familyName , style ) ;
if ( sFontLoader != null ) { | Set default text style in layoutlib as NORMAL DO NOT MERGE |
<nb> public class QueryStringDecoder {
if ( rawPath != null ) {
hasPath = true ;
} else {
- rawPath = STRING0 ;
+ rawPath = STRING0 ;
hasPath = false ;
}
SINGLE
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface NioChannelConfig extends ChannelConfig {
+ public interface NioC... | fixed checkstyle build failures |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SuggestVariableNameMacro extends Macro {
return new TextResult ( names [ NUMBER0 ] ) ;
}
+ @ nullable
+ @ override
+ public Result cal... | do not leave empty names inside expr statement |
<nb> public class StringKeyedMapAdapterTests extends TestCase {
private Map contents = new HashMap ( ) ;
- private StringKeyedMapAdapter map = new StringKeyedMapAdapter ( ) {
+ private StringKeyedMapAdapter < Object > map = new StringKeyedMapAdapter < Object > ( ) {
protected Object getAttribute ( String ... | Fixed failing test due to compiler differences |
<nb> public class ShutdownTimeout
synchronized ( this )
{
try {
+ logger . trace ( STRING0
+ + SHUTDOWN_TIMEOUT + STRING1 ) ;
wait ( SHUTDOWN_TIMEOUT ) ;
logger . error ( STRING2 ) ;
System . exit ( NUMBER0 ) ; | added a trace log when beginning the shutdown countdown |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMES... | Remove unused imports |
<nb> public interface WindowManager extends ViewManager {
}
public final CharSequence getTitle ( ) {
- return mTitle ;
+ return mTitle != null ? mTitle : STRING0 ;
}
COMMENT
<nb> public interface WindowManager extends ViewManager {
SINGLE
packageName = o . packageName ;
}
- if ( ! mTitle . equ... | Fixed issue with losing window name when copying WindowManager LayoutParams |
<nb> public class ReaderRelatedPostsView extends LinearLayout {
public void showRelatedPosts ( @ nonnull ReaderRelatedPostList posts , String siteName , boolean isGlobal ) {
mRelatedPostList = posts ;
- if ( mRelatedPostList . size ( ) == NUMBER0 ) return ;
ViewGroup container = ( ViewGroup ) findViewById (... | Remove all views from the container before checking if passed list is empty |
<nb> public class RecyclerView extends ViewGroup {
mRunningLayoutOrScroll = false ;
resumeRequestLayout ( false ) ;
}
+ final boolean fullyConsumedScroll = dx == hresult && dy == vresult ;
if ( ! mItemDecorations . isEmpty ( ) ) {
invalidate ( ) ;
}
<nb> public class RecyclerView extends ViewGroup {
s... | Stop ViewFlinger when layout does not consume full distance |
<nb> public class SuspendablesScanner extends Task {
MethodNode m = getOrCreateMethodNode ( cls . name + STRING0 + m1 ) ;
if ( m . suspendType != SuspendableType . SUSPENDABLE && m . suspendType != SuspendableType . SUSPENDABLE_SUPER ) {
m . setSuspendType ( SuspendableType . SUSPENDABLE_SUPER ) ;
+ m . inProje... | Fix missing entries in suspendable supers |
<nb> public class ConcurrentIndexingVersioningTest {
latch . await ( ) ;
System . out . println ( STRING0 ) ;
+ client . client ( ) . admin ( ) . indices ( ) . prepareRefresh ( ) . execute ( ) . actionGet ( ) ;
for ( int i = NUMBER0 ; i < NUMBER_OF_DOCS ; i ++ ) {
for ( int j = NUMBER0 ; j < NUMBER1 ; j ++ ... | add refresh before verifying in the test |
<nb> public class AsyncEchoTestClient implements EchoTestClient {
SINGLE
Method doWritingRequestBody = TAsyncMethodCall . class . getDeclaredMethod ( STRING0 , SelectionKey . class ) ;
ExpectedAnnotation thriftUrl = ExpectedAnnotation . annotation (
- STRING1 , SERVER_IP + STRING2 + SERVER_PORT + STRING3 ) ;
... | added hostname modification to Annotation checks |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public final class LwjglFileHandle extends FileHandle {
- LwjglFileHandle ( String fileName , FileType type ) {
+ public LwjglFileHandle ( String fileName , FileType type ) {
super ( fileName , type ) ;
}
- LwjglFileHandle ( File file , FileType type ) {
+ pub... | changed LwjglFileHandle constructors to public |
<nb> public class RequestCreator {
}
if ( data . hasImage ( ) ) {
Request finalData = picasso . transformRequest ( data . build ( ) ) ;
- String key = createKey ( finalData ) ;
+ String key = createKey ( finalData , new StringBuilder ( ) ) ;
Action action = new FetchAction ( picasso , finalData , skipMemo... | Use new string builder for fetch requests |
<nb> public class ComparisonFailureTest {
SINGLE
{ STRING0 , STRING1 , STRING2 } ,
- SINGLE
+ SINGLE
{ STRING3 , STRING4 , STRING5 } ,
- SINGLE
+ SINGLE
{ STRING6 , STRING7 , STRING8 } ,
SINGLE
<nb> public class ComparisonFailureTest {
STRING9 ,
STRING10 } ,
- SINGLE
+ SINGLE
{ STR... | Reworded postfix to suffix |
<nb> public class ShowcaseView extends RelativeLayout
SINGLE
invalidate ( ) ;
}
+
+ public boolean hasShowcaseView ( ) {
+ return showcaseX != NUMBER0 && showcaseY != NUMBER0 ;
+ }
public void setShowcaseItem ( final int itemType , final int actionItemId ,
final Activity activity ) {
<nb> public c... | Workaround for text going off screen without showcase view |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Moved IdGenerator and implementations from core to baseServices |
<nb> class BluetoothManagerService extends IBluetoothManager . Stub {
@ override
public void dump ( FileDescriptor fd , PrintWriter writer , String args [ ] ) {
+ mContext . enforceCallingOrSelfPermission ( android . Manifest . permission . DUMP , TAG ) ;
if ( mBluetoothBinder == null ) {
writer . println (... | Restore DUMP permission check for BluetoothManagerService |
<nb>
package NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
-
- import NAMESP... | Remove wildcard imports |
<nb> public abstract class XHook {
protected boolean isRestricted ( MethodHookParam param , String methodName ) throws Throwable {
int uid = Binder . getCallingUid ( ) ;
- Context context = AndroidAppHelper . currentApplication ( ) ;
- return PrivacyManager . getRestricted ( this , context , uid , mRestrictio... | Do not use current application context |
<nb> package NAMESPACE ;
public class Constant {
- public static final String BASE64_PUBLIC_KEY = STRING0 ;
+ public static final String BASE64_PUBLIC_KEY = STRING1 ;
SINGLE
public static final byte [ ] SALT = new byte [ ] { | Use correct public key |
<nb> public abstract class AbstractBootstrap < B extends AbstractBootstrap < B , C > , C ext
COMMENT
COMMENT
COMMENT
+ @ suppresswarnings ( STRING0 )
public < T > B attr ( AttributeKey < T > key , T value ) {
if ( key == null ) {
throw new NullPointerException ( STRING1 ) ;
<nb> public abstract class Ab... | removed an unnecessary local variable for consistency |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.