diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class RequestContextHolder {
private static final boolean jsfPresent =
ClassUtils . isPresent ( STRING0 , RequestContextHolder . class . getClassLoader ( ) ) ;
- private static final ThreadLocal requestAttributesHolder = new NamedThreadLocal ( STRING1 ) ;
+ private static final ThreadLoca... | Made threadlocals generic |
<nb> public class VirtualMachineMetrics {
final Long timestamp = ( Long ) bean . getClass ( ) . getDeclaredMethod ( STRING0 ) . invoke ( bean ) ;
final Long lastTimestamp = gcTimestamps . get ( name ) ;
- if ( lastTimestamp == null || timestamp > lastTimestamp ) {
+ SINGLE
+ SINGLE
+ if ( lastTimestamp ==... | Don t record GC durations which are obviously bad |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractFileOutStreamIntegrationTest {
protected CreateFileOptions mWriteAsync ;
protected CreateFileOptions mWriteUnderStore ;
- protected Configu... | SMALLFIX Remove unnecessary mTestConf |
<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 ;
<nb> pub... | Fix path separator in JUnitTest |
<nb> public class ValueAnimator extends Animator {
}
}
if ( fraction >= FLOAT0 ) {
- if ( mCurrentIteration < mRepeatCount ||
- ( mRepeatCount == INFINITE && mDuration != NUMBER0 ) ) {
+ if ( mCurrentIteration < mRepeatCount || mRepeatCount == INFINITE ) {
SINGLE
if ( mListeners != null ) {
int numLis... | Allow infinite repeat zero duration animators to continue repeating |
<nb> public final class StrictMode {
SINGLE
private static void setCloseGuardEnabled ( boolean enabled ) {
- if ( ! ( CloseGuard . getReporter ( ) instanceof AndroidBlockGuardPolicy ) ) {
+ if ( ! ( CloseGuard . getReporter ( ) instanceof AndroidCloseGuardReporter ) ) {
CloseGuard . setReporter ( new Androi... | Fix CloseGuard StrictMode integration |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import in WithSecurityContextTestExecutionListenerTests |
<nb> public class OpenSSLCipherConfigurationParser {
List < Cipher > allCiphersList = Arrays . asList ( Cipher . values ( ) ) ;
Collections . reverse ( allCiphersList ) ;
LinkedHashSet < Cipher > allCiphers = defaultSort ( new LinkedHashSet < > ( allCiphersList ) ) ;
- SINGLE
- SINGLE
- allCiphers . removeA... | Revert incorrect fix for failing Gump tests |
<nb> public class BaseInstanceFactory < T > implements InstanceFactory < T > {
public TypeRegistration ( ModelType < S > publicType ) {
this . publicType = publicType ;
- this . managedPublicType = publicType . isAnnotationPresent ( Managed . class ) ;
+ this . managedPublicType = isManaged ( publicType ) ;
... | Reuse isManaged explaining method where applicable |
<nb> public class ExpandableUploadListAdapter extends BaseExpandableListAdapter imple
uploadDateTextView . setVisibility ( View . GONE ) ;
pathTextView . setVisibility ( View . GONE ) ;
fileSizeTextView . setVisibility ( View . GONE ) ;
+ progressBar . invalidate ( ) ;
break ;
case UPLOAD_FAILED : | Invalidate progress bar every time the holding cell is requested for uploads in progress |
<nb> public class ScriptRecordReader extends RecordReader < NullWritable , FaunusVertex >
}
}
+ @ override
public void initialize ( final InputSplit genericSplit , final TaskAttemptContext context ) throws IOException {
this . lineRecordReader . initialize ( genericSplit , context ) ;
}
+ @ override
... | Add Override on methods in a RecordReader impl |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | removed unused imports |
<nb> public abstract class ESTestCase extends LuceneTestCase {
private static final GeohashGenerator geohashGenerator = new GeohashGenerator ( ) ;
public static class GeohashGenerator extends CodepointSetGenerator {
- private final static char [ ] ASCII_SET = STRING0 . toCharArray ( ) ;
+ private static final... | Fix modifier order |
<nb> public class CompileDriver {
for ( File file : nonExistingOutputPaths ) {
final boolean succeeded = file . mkdirs ( ) ;
if ( ! succeeded ) {
+ if ( file . exists ( ) ) {
+ SINGLE
+ continue ;
+ }
Messages . showMessageDialog ( myProject , CompilerBundle . message ( STRING0 , file . getPath ( ) ) , ... | correctly create overlapping output paths if doesn t exist |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
public class LazyLoadedSingletonThreadSafetyTest {
private static final int NUM_THREADS = NUMBER0 ;
- private List < ThreadSafeLazyLoadedIvoryT... | Synchronise the list as multiple threads are calling it |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class GitUntrackedFilesHolder implements Disposable , BulkFileListener {
}
COMMENT
- COMMENT
- COMMENT
- public void add ( @ notnull Collection < VirtualFile > files ) {
- synchronized... | Remove unused methods |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class ViewModel extends AbstractModel ... | Throw an exception instead of logging if mapToModel is used incorrectly |
<nb> public class FrameStreamerGateway {
}
public void onCaptureEndEvent ( String room ) {
- IDeskShareStream ds = streamsMap . remove ( room ) ;
- if ( ds != null ) {
- ds . stop ( ) ;
- ds = null ;
+ IDeskShareStream stream = streamsMap . remove ( room ) ;
+ if ( stream != null ) {
+ SINGLE
+ IS... | inform clients that the stream has stopped |
<nb> public abstract class AbstractModelElement < E extends AbstractModelElement < E > > im
COMMENT
COMMENT
protected AbstractModelElement ( ) {
- SINGLE
+ assert getClass ( ) == getElementClass ( ) : STRING0 + getClass ( ) + STRING1 + getElementClass ( ) ;
}
COMMENT | Restore the class to class element assertion |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed typo on Storage Access Framework |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT ... | Commented the example |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class ConsoleWithAuthentication {
public static void main ( String . . . args ) throws Exception {
- new RestC... | added simple example of authenticating console |
<nb> public class Street extends AbstractEdge implements WalkableEdge {
}
public void setElevationProfile ( PackedCoordinateSequence elev ) {
+ if ( elev == null ) {
+ return ;
+ }
if ( slopeOverride ) {
elev = new PackedCoordinateSequence . Float ( new Coordinate [ ] { new Coordinate ( FLOAT0 , FLOAT0 ... | handle missing elevation |
<nb> public class OAuthClientHttpRequestFactory implements ClientHttpRequestFactory {
if ( ! useAuthHeader ) {
String queryString = this . support . getOAuthQueryString ( this . resource , accessToken , uri . toURL ( ) , httpMethod . name ( ) , this . additionalOAuthParameters ) ;
String uriValue = String . value... | Duplicated query parameters cause invalid signature |
<nb> public final class EntityDataJSONFormat {
private EntityDataJSONFormat ( ) {
}
- public static void write ( EntityData . GlobalStore world , BufferedWriter writer ) throws IOException {
+ public static void write ( EntityData . GlobalStore world , BufferedWriter writer ) {
newGson ( ) . toJson ( world ... | Fixed all warnings of unnecessary throw declaration |
<nb> public class NioSocketChannel extends AbstractNioChannel implements io . netty . cha
}
public NioSocketChannel ( ) {
- this ( null , null , newSocket ( ) ) ;
+ this ( newSocket ( ) ) ;
+ }
+
+ public NioSocketChannel ( SocketChannel socket ) {
+ this ( null , null , socket ) ;
}
public NioS... | Add more constructor to NioSocketChannel |
<nb> public class CasReloadableMessageBundle extends ReloadableResourceBundleMessageS
if ( ! locale . equals ( Locale . ENGLISH ) ) {
for ( int i = NUMBER0 ; ! foundCode && i < this . basenames . length ; i ++ ) {
- final String filename = this . basenames [ i ] + STRING0 + locale . getLanguage ( ) ;
+ final ... | use full locale language dialect when resolving messages in bundles |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Metrics {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public static void enableConsoleReporting ( long period , TimeUn... | Remove Metrics enableConsoleReporting |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FlashlightTile extends QSTile < QSTile . BooleanState > implements
@ override
protected void handleClick ( ) {
+ if ( ActivityManager . is... | disable flashlight for monkey tests |
<nb> public class TvShowCollectionViewModel implements AdapteeCollection < TvShowViewMo
tvShow . addEpisode ( new EpisodeViewModel ( STRING0 , STRING1 ) ) ;
tvShows . add ( tvShow ) ;
+ tvShow = new TvShowViewModel ( STRING2 , STRING3 , NUMBER0 ) ;
+ tvShow . addEpisode ( new EpisodeViewModel ( STRING4 , STRI... | Add American Dad info |
<nb> public class VcsHistoryDialog extends DialogWrapper implements DataProvider {
myList . getEmptyText ( ) . setText ( VcsBundle . message ( STRING0 ) ) ;
myDiffPanel = DiffManager . getInstance ( ) . createDiffPanel ( getWindow ( ) , myProject , getDisposable ( ) ) ;
+ myDiffPanel . setRequestFocus ( false )... | don t move focus to the diff auto focus the list on show |
<nb> public final class ProcessCommonJSModulesTest extends CompilerTestCase {
public void testModuleExportsScope ( ) {
setFilename ( STRING0 ) ;
- test (
+ testModules (
STRING1 +
STRING2 ,
STRING3 +
STRING4 +
STRING5 ) ;
- test (
+ testModules (
STRING6 +
STRING2 ,
STRING3 +
STRING7 +
... | Fix failing test in ProcessCommonJSModulesTest |
<nb> public class Http11Processor extends AbstractHttp11Processor < Socket > {
} else {
request . setStartTime ( System . currentTimeMillis ( ) ) ;
keptAlive = true ;
- SINGLE
- socket . getSocket ( ) . setSoTimeout ( endpoint . getSoTimeout ( ) ) ;
SINGLE
if ( ! inputBuffer . parseHeaders ( ) ) {
SINGL... | Remove unnecessary setting of timeout will have been correctly set in setRequestLineReadTimeout |
<nb> public abstract class Connection {
public Config getConfig ( ) {
return config ;
}
+
+ public void setConfig ( Config config ) {
+ this . config = config ;
+ }
}
<nb> public class UploadInterruptedTest {
) ) ;
TestClient clientA = new TestClient ( STRING0 , testConnection ) ;
+ testConn... | Fix NullPointerException with config |
<nb> public class FeedItemMenuHandler {
context . startActivity ( intent ) ;
} else {
Toast . makeText ( context , context . getString ( R . string . download_error_malformed_url ) ,
- Toast . LENGTH_SHORT ) ;
+ Toast . LENGTH_SHORT ) . show ( ) ;
}
break ;
case R . id . support_item :
<nb> public cla... | show potential Toasts |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class ReaderPostListFragment extends Fragment
implements ReaderInterfaces . OnReaderPostSelectedL... | Added comment header to ReaderPostListFragment |
<nb> public final class MediaFormat {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public final int getInteger ( String name , int defaultValue ) {
+ try {
+ return getInteger ( name ) ;
+ }
+ catch ( NullPointerException e ) { COMMENT }
+ catch ( ClassCastException e ) { COMMENT }
+ ... | add getInteger with default value convenience method |
<nb> public abstract class MavenArtifactCoordinatesConverter extends ResolvingConvert
@ override
public String getErrorMessage ( @ nullable String s , ConvertContext context ) {
- return selectStrategy ( context ) . getContextName ( ) + STRING0 + MavenArtifactCoordinatesHelper . getId ( context ) + STRING1 ;
... | escaped error message |
<nb> public class RendererAdapterTest {
verify ( mockedCollection ) . removeAll ( ANY_OBJECT_COLLECTION ) ;
}
+ @ test
+ public void shouldClearElementsFromAdapteeCollection ( ) {
+ rendererAdapter . clear ( ) ;
+
+ verify ( mockedCollection ) . clear ( ) ;
+ }
+
private void initializeMocks ( ) {... | Add test to test clear RendererAdapter |
<nb> public class HintedHandOffManager implements HintedHandOffManagerMBean
Integer . MAX_VALUE ,
TimeUnit . SECONDS ,
new LinkedBlockingQueue < Runnable > ( ) ,
- new NamedThreadFactory ( STRING0 , Thread . MIN_PRIORITY ) , STRING0 ) ;
+ new NamedThreadFactory ( STRING0 , Thread . MIN_PRIORITY ) , STRING1 ) ... | fix hinted handoff threadpool s JMX path |
<nb> public class StubbingWithThrowablesTest {
assertEquals ( STRING0 , mockTwo . get ( STRING1 ) ) ;
try {
mockTwo . clear ( ) ;
+ fail ( ) ;
} catch ( ExceptionThree e ) { }
try {
- mockTwo . containsKey ( STRING2 ) ;
+ mockTwo . containsValue ( STRING2 ) ;
+ fail ( ) ;
} catch ( ExceptionFour e )... | fixed PMD errors |
<nb> public class ServiceCommandLookupTest {
ensureCommand ( commands , STRING0 ) ;
ensureCommand ( commands , STRING1 ) ;
ensureCommand ( commands , STRING2 ) ;
+
+ ensureCommand ( commands , STRING3 ) ;
+ ensureCommand ( commands , STRING4 ) ;
+ ensureCommand ( commands , STRING5 ) ;
}
private voi... | Extend tests to check the availability of the start stop and list commands |
<nb> public final class ConfigResolveOptions {
COMMENT
COMMENT
public static ConfigResolveOptions noSystem ( ) {
- return new ConfigResolveOptions ( false , false ) ;
+ return defaults ( ) . setUseSystemEnvironment ( false ) . setUseSystemProperties ( false ) ;
}
COMMENT
COMMENT
COMMENT
- COMMENT ... | implement ConfigResolveOptions noSystem in terms of defaults |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class TextureView extends View {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add a bit more doc to TextureView |
<nb>
COMMENT
package NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class EigenvectorCentralityTest extends Neo4jAlgoTestCase
EigenvectorCentralityPower eigenvectorCentralityPower , String nodeId ,
Double value )
{
... | Improve error messages for a sporadic test failure |
<nb> import NAMESPACE ;
public class FlickrExample
{
- private static final String PROTECTED_RESOURCE_URL = STRING0 ;
+ private static final String PROTECTED_RESOURCE_URL = STRING1 ;
public static void main ( String [ ] args )
{
SINGLE
- String apiKey = STRING2 ;
+ String apiKey = STRING3 ;
Stri... | updated the FlickrExample to use https |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed broken link |
<nb> public class DocumentArchive implements Closeable {
final Stack < ZipEntry > stack = new Stack < > ( ) ;
for ( int i = entries . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) {
entry = entries . get ( i ) ;
+ if ( entry . isDirectory ( ) != entry . getName ( ) . endsWith ( STRING0 ) ) {
+ throw new IOExcept... | Require directory names to end with a trailing in ZIP |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ deprecated
+ COMMENT
+ COMMENT
+ COMMENT
public class ComboBoxTableCellEditor extends AbstractTableCellEditor {
public static final ComboBoxTableCellEditor INSTANCE = new ComboBoxTableCellEditor ( ) ; | deprecate old ComboBoxTableCellEditor |
<nb> public class PredicatePushDown
if ( DeterminismEvaluator . isDeterministic ( conjunct ) ) {
SINGLE
Object response = nullInputEvaluator ( innerSymbols , conjunct ) ;
- if ( response == null || Boolean . FALSE . equals ( response ) ) {
+ if ( response == null || response instanceof NullLiteral || Boolean ... | Allow PredicatePushDown optimizer to handle NullLiteral from nullInputEvaluator |
<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 ;
<nb> public class DatabaseNavigatorTree extends Compo... | Data search UI |
<nb> public class Routes implements ApplicationRoutes {
router . GET ( ) . route ( STRING0 ) . with ( ApplicationController . class , STRING1 ) ;
router . POST ( ) . route ( STRING0 ) . with ( ApplicationController . class , STRING2 ) ;
- router . GET ( ) . route ( STRING3 ) . with ( ApplicationController . cla... | Remove GET route no view for it |
<nb> public class DeepLearningModel extends Model {
sb . append ( STRING0 ) ;
sb . append ( STRING0 ) ;
sb . append ( STRING0 ) ;
+ if ( ! model_info . get_params ( ) . adaptive_rate ) sb . append ( STRING0 ) ;
sb . append ( STRING0 ) ;
sb . append ( STRING0 ) ;
- sb . append ( STRING0 ) ;
+ sb . append... | Fix formatting still looks weird with new CSS changes |
<nb> public class SimpleTest extends TestCase {
assertEquals ( NUMBER0 , NUMBER0 ) ;
assertEquals ( NUMBER1 , NUMBER1 ) ;
assertEquals ( new Long ( NUMBER0 ) , new Long ( NUMBER0 ) ) ;
-
+
assertEquals ( STRING0 , NUMBER0 , NUMBER2 ) ;
assertEquals ( STRING1 , FLOAT0 , FLOAT1 , FLOAT2 ) ;
}
+ public s... | Added a main to SimpleTest thanks Lynn Allan |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class AbstractResource implements Resource {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix error in AbstractResource contentLength Javadoc |
<nb> public class AtmosphereAdapter extends ServletAdapter {
ctxPath = ctxPath . replace ( STRING0 , STRING1 ) ;
}
- String trailer = s . substring ( NUMBER0 , s . indexOf ( ctxPath ) ) ;
+ int index = s . indexOf ( ctxPath ) ;
+ if ( index < NUMBER1 ) {
+ index = s . length ( ) ;
+ }
+ String trailer... | Fix possible index out of bound |
<nb> public class FileElement
}
catch ( NumberFormatException e )
{
- e . printStackTrace ( ) ;
+ logger . warn ( STRING0
+ + STRING1 , e ) ;
}
} | Log warning on invalid file size instead of printing a stack trace |
<nb> public class WorkerThreadSpec implements ThreadSpec {
private final Handler handler ;
WorkerThreadSpec ( ) {
+ Looper . prepare ( ) ;
handler = new Handler ( Looper . myLooper ( ) ) ;
}
@ override public void execute ( Runnable runnable ) {
- Looper . prepare ( ) ;
handler . post ( runnable ) ;... | prepare the background thread looper before creating the handler |
<nb> public class EncodingStateImpl implements EncodingState {
}
public EncodingState appendEncoder ( Encoder encoder ) {
+ if ( encoder == null ) return this ;
Set < Encoder > newEncoders ;
if ( encoders == null || encoders . size ( ) == NUMBER0 ) {
newEncoders = Collections . singleton ( encoder ) ; | Handle special case in appendEncoder |
<nb> public class GeoIntentActivity extends OsmandListActivity {
. getItemId ( NUMBER0 ) ) ;
}
}
+ finish ( ) ;
} else {
AccessibleToast . makeText ( GeoIntentActivity . this ,
getString ( R . string . search_offline_geo_error , intent . getData ( ) ) , Toast . LENGTH_LONG ) . show ( ) ; | if incoming URL was properly parsed remove GeoIntentActivity from backstack |
<nb> public class AllIcons {
}
public static class Css {
- public static final Icon AtRule = IconLoader . getIcon ( STRING0 ) ; SINGLE
+ public static final Icon Atrule = IconLoader . getIcon ( STRING0 ) ; SINGLE
public static final Icon Property = IconLoader . getIcon ( STRING1 ) ; SINGLE
public static f... | Fix icon name |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
package NAMESPACE ; | Fixing broken link |
<nb> public class SpanishTreeNormalizer extends TreeNormalizer {
SINGLE
SINGLE
SINGLE
- return pos . substring ( NUMBER0 , NUMBER1 ) + STRING0 + pos . charAt ( NUMBER2 ) + STRING1 + pos . charAt ( NUMBER3 ) ;
+
+ SINGLE
+ char ner = pos . length ( ) == NUMBER4 ? pos . charAt ( NUMBER3 ) : STRING0 ;
+ re... | Handle noun tags which are missing NER label |
<nb> public class RuntimeJavaCompiler {
private ZipEntry entry ;
protected JavaClassFromEntry ( JarFile jarfile , ZipEntry entry ) {
- super ( URI . create ( STRING0 + jarfile . getName ( ) + STRING1 + entry . getName ( ) ) , Kind . CLASS ) ;
+ super ( URI . create ( STRING0 + jarfile . getName ( ) . toString... | Added fix to resolve path issue on Windows environments |
<nb> public class Frame extends Lockable < Frame > {
COMMENT
COMMENT
COMMENT
- public Frame subframe ( int startIdx , int endIdx ) {
+ private Frame subframe ( int startIdx , int endIdx ) {
return new Frame ( Arrays . copyOfRange ( _names , startIdx , endIdx ) , Arrays . copyOfRange ( vecs ( ) , startIdx , ... | hide a private method |
<nb> public class Console
SINGLE
if ( line == null ) {
+ System . out . println ( ) ;
return ;
} | Print newline when exiting CLI via ctrl D |
<nb> public class Messages {
}
public static int showDialog ( Component parent , String message , String title , String [ ] options , int defaultOptionIndex , Icon icon ) {
- return showDialog ( parent , message , title , options , defaultOptionIndex , icon ) ;
+ return showDialog ( parent , message , title ,... | Fix inf recursion |
<nb> import NAMESPACE ;
COMMENT
public interface WalletEventListener {
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface WalletEventListener {
void onCoinsReceived ( Wallet wallet , Transaction tx , BigInteger prevBalance , BigInteger newBalance ) ;
COMMENT
- COMMENT
... | Remove obsolete references to being called on Peer threads from the javadocs |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractWeatherProvider implements WeatherProvider {
static {
httpClient = new HttpClient ( new MultiThreadedHttpConnectionManager ( ... | Fixed connection reset exception |
<nb> public class ZContext implements Closeable
}
public ZContext ( int ioThreads_ ) {
- context = null ; SINGLE
sockets = new CopyOnWriteArrayList < Socket > ( ) ;
ioThreads = ioThreads_ ;
linger = NUMBER0 ; | Remove superfluous assignment |
<nb> public class DeepWaterV3 extends ModelBuilderSchema < DeepWater , DeepWaterV3 , DeepWa
help = STRING0 )
public DeepWaterParameters . Network network ;
- @ api ( level = API . Level . secondary , direction = API . Direction . INOUT , gridable = true , values = { STRING1 , STRING2 , STRING3 , STRING4 } ,
+... | Remove AUTO backend in Deep Water schema |
<nb> public interface MediaService
COMMENT
COMMENT
public static final String MIN_PORT_NUMBER_PROPERTY_NAME
- = STRING0 ;
+ = STRING1 ;
COMMENT
COMMENT | Fixed property name |
<nb> public class HibernatePersistenceProviderAdaptor implements PersistenceProviderA
properties . put ( org . hibernate . ejb . AvailableSettings . SCANNER , STRING0 ) ;
properties . put ( AvailableSettings . APP_CLASSLOADER , pu . getClassLoader ( ) ) ;
properties . put ( AvailableSettings . JTA_PLATFORM , appS... | remove legacy way of specifying TX manager that conflicts with JTA_PLATFORM |
<nb> public class TraktSyncActivity extends BaseActivity {
final ActionBar actionBar = getSupportActionBar ( ) ;
actionBar . setHomeButtonEnabled ( true ) ;
- actionBar . setTitle ( R . string . trakt ) ;
- setTitle ( R . string . trakt ) ;
mContainer = findViewById ( R . id . syncbuttons ) ; | Don t set a title |
<nb> public class GithubRebaseAction extends DumbAwareAction {
final String parent = repositoryInfo . getParent ( ) ;
LOG . assertTrue ( parent != null , STRING0 ) ;
- final String parentRepoString = STRING1 + parent ;
+ final String parentRepoString = STRING2 + parent + STRING3 ;
BasicAction . saveAll ( ... | Fix remote url |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public AudioQueue createInput ( AudioStreamBasicDescription format , InputCallback callback ) throws OSStatusException {
+ public static AudioQueue createInput ( AudioStreamBasicDescription format , InputCallback callback ) throws OSStatusException {
return ... | Fix AudioQueue createInput to be static |
<nb> final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
HdmiCecMessageBuilder . buildRoutingChange ( mAddress , oldPath , newPath ) ;
mService . sendCecCommand ( routingChange ) ;
removeAction ( RoutingControlAction . class ) ;
- addAndStartAction ( new RoutingControlAction ( this , newPath , false ,... | Fix a bug not sending Set Stream Path |
<nb> import NAMESPACE ;
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... | Replace Guice annotations with javax inject annotations |
<nb> public final class OpenSslEngine extends SSLEngine {
} while ( srcsOffset < srcsEndOffset ) ;
}
- rejectRemoteInitiatedRenegation ( ) ;
-
SINGLE
int bytesProduced = NUMBER0 ; | OpenSslEngine remove unecessary rejectRemoteInitiatedRenegation call |
<nb> public class AjpProcessor extends AbstractAjpProcessor < Socket > {
}
SINGLE
if ( keepAliveTimeout > NUMBER0 ) {
- socket . getSocket ( ) . setSoTimeout ( soTimeout ) ;
+ setTimeout ( socketWrapper , soTimeout ) ;
}
SINGLE
SINGLE
<nb> public class AjpProcessor extends AbstractAjpProcessor < Socke... | Use the new method to set socket timeouts |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class CosineDistanceMeasure implements DistanceMeasure { | Fixed a java doc no JIRA filed |
<nb> public class FileWatcher {
}
@ override
- protected boolean useAdaptiveSleepingPolicyWhenReadingOutput ( ) {
- return true ;
+ protected boolean useNonBlockingRead ( ) {
+ return false ;
}
} | use blocking read instead of polling sleeping for reading output error from file watcher |
<nb> public class MultiMap < K , V > implements Serializable {
@ notnull
public static < K , V > MultiMap < K , V > createSet ( ) {
+ return createSet ( TObjectHashingStrategy . CANONICAL ) ;
+ }
+
+ @ notnull
+ public static < K , V > MultiMap < K , V > createSet ( final TObjectHashingStrategy strategy... | introduce createSet strategy |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VideoListAdapter extends BaseAdapter {
videoUrls [ videoIndexs [ position ] ] , JCVideoPlayer . SCREEN_LAYOUT_LIST ,
videoTitles [ videoIndexs [ position ] ] ) ;... | solve that bug will release auto tiny window feature |
<nb> public interface Execution {
COMMENT
boolean isEnded ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ String getActivityId ( ) ;
+
COMMENT
COMMENT
String getProcessInstanceId ( ) ; | Expose activityID in interface Execution add a public getter for activityID |
<nb> public class SpongeModPluginContainer extends SpongePluginContainer implements M
spongeBus . registerListener ( this , this . pluginInstance . get ( ) ) ;
} catch ( Throwable t ) {
this . fmlController . errorOccurred ( this , t ) ;
- Throwables . propagateIfPossible ( t ) ;
+ SINGLE
}
} | Don t rethrow plugin construction exceptions |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class IntentionManagerImpl extends IntentionManager {
public List < IntentionAction > getStandardIntentionOptions ( final Highlight... | restore forgotten intention |
<nb> public class CommandExecutor {
private void closeStreams ( @ nullable Process process ) {
if ( process != null ) {
Closeables . closeQuietly ( process . getInputStream ( ) ) ;
- Closeables . closeQuietly ( process . getInputStream ( ) ) ;
Closeables . closeQuietly ( process . getOutputStream ( ) ) ;
Cl... | Remove duplicated statement in CommandExecutor |
<nb> public class PeerGroup implements TransactionBroadcaster {
return result ;
}
+ COMMENT
+ @ deprecated @ suppresswarnings ( STRING0 )
+ public void addEventListener ( AbstractPeerEventListener listener , Executor executor ) {
+ addConnectionEventListener ( executor , listener ) ;
+ addDataEventListe... | restore and deprecate some removed addEventListener methods |
<nb> public class MUCPersistenceManager {
private static final String ADD_ROOM =
STRING0 +
STRING1 +
- STRING2 +
- STRING3 ;
+ STRING4 +
+ STRING5 ;
private static final String UPDATE_SUBJECT =
STRING6 ;
private static final String DELETE_ROOM =
<nb> public class MUCPersistenceManager {
pstmt . ... | Removed lastActiveDate field from mucRoom |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class InputColumn extends Symbol {
+ public class InputColumn extends Symbol implements Comparable < InputColumn > {
public static final SymbolFactor... | make input column comparable |
<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 ;
COMMENT
COMMENT
<nb> public final clas... | use SAFE mongodb write concern |
<nb> class Connectors {
setConnectorAttribute ( connector , STRING0 , props . of ( STRING1 ) ) ;
setConnectorAttribute ( connector , STRING2 , props . of ( STRING3 , STRING4 ) ) ;
setConnectorAttribute ( connector , STRING5 , props . of ( STRING6 ) ) ;
- setConnectorAttribute ( connector , STRING7 , false ) ;
... | Adding truststore properties making clientAuth configurable |
<nb> public class Jsonschema2PojoMojo extends AbstractMojo implements GenerationConfi
STRING0 , STRING1 } , justification = STRING2 )
public void execute ( ) throws MojoExecutionException {
+ addProjectDependenciesToClasspath ( ) ;
+
try {
getAnnotationStyle ( ) ;
} catch ( IllegalArgumentException e ) ... | Build classpath before creating custom annotator |
<nb> public class CommitLog implements CommitLogMBean
COMMENT
public void resetUnsafe ( )
{
+ sync ( true ) ;
allocator . resetUnsafe ( ) ;
} | Fix RecoveryManagerTruncateTest failing in test compression |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | BroadcasterCache Fix typos in javadoc |
<nb> public class ESNodeTest {
@ test ( expected = StrictDynamicMappingException . class )
public void should_use_default_settings_for_index ( ) throws Exception {
- ESNode node = new ESNode ( fs , new Settings ( ) . setProperty ( STRING0 , NUMBER0 ) ) ;
+ ESNode node = new ESNode ( fs , new Settings ( ) ) ; ... | Remove hardcoded es http port in test |
<nb> public abstract class Animation implements Cloneable {
COMMENT
public static final int ZORDER_BOTTOM = - NUMBER0 ;
- private static final boolean USE_CLOSEGUARD
- = SystemProperties . getBoolean ( STRING0 , false ) ;
+ SINGLE
+ SINGLE
+ private static class NoImagePreloadHolder {
+ public static ... | Move Animation USE_CLOSEGUARD to inner class |
<nb> public class SelectStatement implements CQLStatement
SINGLE
SINGLE
SINGLE
- int multiplier = cfDef . isCompact ? NUMBER0 : ( cfDef . metadata . size ( ) + NUMBER0 ) ;
int toGroup = cfDef . isCompact ? - NUMBER0 : cfDef . columns . size ( ) ;
ColumnSlice slice = new ColumnSlice ( getRequestedBound ( Bou... | remove unused assignments |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ deprecated
public interface ParameterizedRowMapper < T > extends RowMapper < T > { | Fix javadoc glitch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.