diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class DriverConductor implements Agent
final UdpChannel udpChannel ,
final long correlationId )
{
- final RawLog rawLog = rawLogFactory . newConnection (
- udpChannel . canonicalForm ( ) , sessionId , streamId , correlationId , termBufferLength ) ;
+ final String canonicalForm = udpChannel . can... | Added default headers to the connection log buffer |
<nb> public class MemoryTest {
@ test
public void testMemoryManagement ( ) {
- SINGLE
-
System . out . println ( STRING0 ) ;
for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
<nb> public class MemoryTest {
@ suppresswarnings ( STRING1 )
TableView view = query . findAll ( ) ;
+ SINGLE
+ SINGLE
... | Added close methods to MemoryTest |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProjectUtil {
f . requestFocus ( ) ;
}
- public static String mainModulePathByProjectPath ( String path ) {
- int do... | kill couple of unused methods |
<nb> public final class MediaProjectionManagerService extends SystemService
@ override
public void onSwitchUser ( int userId ) {
mMediaRouter . rebindAsUser ( userId ) ;
+ synchronized ( mLock ) {
+ if ( mProjectionGrant != null ) {
+ mProjectionGrant . stop ( ) ;
+ }
+ }
}
@ override | Stop active media projections on user switch |
<nb> public class HttpConnectionManager extends AbstractConnectionManager {
}
public Proxy getProxy ( ) throws IOException {
- if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . M ) {
- return new Proxy ( Proxy . Type . SOCKS , new InetSocketAddress ( InetAddress . getLocalHost ( ) , NUMBER0 ) ) ;
- ... | always use http proxy for http requests |
<nb> public final class GeolocationService implements LocationListener {
COMMENT
COMMENT
private void registerForLocationUpdates ( ) {
- mLocationManager . requestLocationUpdates ( LocationManager . NETWORK_PROVIDER , NUMBER0 , NUMBER0 , this ) ;
- mIsNetworkProviderAvailable = true ;
- if ( mIsGpsEnabled )... | Handle security exception when Geolocation registers with system location service in DumpRenderTree |
<nb> class ClosureRewriteClass extends AbstractPostOrderCallback
COMMENT
private static boolean isGoogDefineClass ( Node value ) {
if ( value != null && value . isCall ( ) ) {
- return value . getFirstChild ( ) . matchesQualifiedName ( STRING0 ) ||
- value . getFirstChild ( ) . matchesQualifiedName ( STRING1 ... | Remove support for the labs version of goog defineClass now that it has been promoted out of labs |
<nb> public class GenerateSourcesMojo extends AbstractAndroidMojo
protoCommands . add ( STRING0 + getAndroidSdk ( ) . getPathForFrameworkAidl ( ) ) ;
genDirectoryAidl . mkdirs ( ) ;
- getLog ( ) . warn ( STRING1 + genDirectoryAidl ) ;
+ getLog ( ) . info ( STRING1 + genDirectoryAidl ) ;
project . addCompile... | removing improper warning status of a log message |
<nb> public class HighlightingCodeBuilder extends HtmlCodeBuilder {
}
@ override
- public Appendable append ( CharSequence csq , int start , int end ) {
- for ( int i = start ; i < end ; i ++ ) {
- append ( csq . charAt ( i ) ) ;
- }
- return this ;
- }
-
public void appendWithoutTransforming ( St... | Fix some quality flaws |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ ... | Encourage users to use framworks instead of chaining things together manually |
<nb> public class ImapStore extends Store {
if ( fp . contains ( FetchProfile . Item . ENVELOPE ) ) {
fetchFields . add ( STRING0 ) ;
fetchFields . add ( STRING1 ) ;
- fetchFields . add ( STRING2
- + K9 . IDENTITY_HEADER + STRING3 ) ;
+ fetchFields . add ( STRING4 +
+ STRING5 + K9 . IDENTITY_HEADER + STRI... | also get the Message ID when fetching the message envelope |
<nb> public class HystrixObservableCommandTest extends CommonHystrixCommandTests < Test
return b ;
}
- } ) . finallyDo ( new Action0 ( ) {
+ } ) . doAfterTerminate ( new Action0 ( ) {
@ override
public void call ( ) {
<nb> public class HystrixObservableCommandTest extends CommonHystrixCommandTests < T... | Switch usage of Observable finallyDo to Observable doAfterTerminate |
<nb> public class BusinessInvoiceUtils {
}
SINGLE
- public static boolean isInvoiceAdjustmentItem ( final InvoiceItem invoiceItem , final Collection < InvoiceItem > otherInvoiceItems ) {
+ public static boolean isInvoiceAdjustmentItem ( final InvoiceItem invoiceItem , final Collection < InvoiceItem > otherInv... | fix bug in isInvoiceAdjustmentItem |
<nb> public class JettyCometSupportWithWebSocket extends Jetty7CometSupport {
if ( config . getInitParameter ( AtmosphereServlet . WEBSOCKET_BUFFER_SIZE ) != null ) {
bufferSize = Integer . valueOf ( config . getInitParameter ( AtmosphereServlet . WEBSOCKET_BUFFER_SIZE ) ) ;
}
- logger . debug ( STRING0 , buffe... | Log that as INFO |
<nb> public final class HttpPageBufferClient
throw new PageTransportErrorException ( format ( STRING0 , response . getStatusCode ( ) , response . getStatusMessage ( ) , request . getUri ( ) ) ) ;
}
+ SINGLE
String contentType = response . getHeader ( CONTENT_TYPE ) ;
- if ( ( contentType == null ) || ! medi... | Include full response object for null content type |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
SINGLE
SINGLE
SINGLE | Added licence to TestUtil |
<nb> class ActivityStarter {
startedActivityStackId = mTargetStack . mStackId ;
}
- if ( startedActivityStackId == DOCKED_STACK_ID && prevFocusedStackId == HOME_STACK_ID ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ final boolean noDisplayActivityOverHome = mSourceRecord != null
+ && mSourceR... | Handle trampoline activites in different tasks |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Add missing imports |
<nb> abstract class AbstractTFS extends FileSystem {
mTachyonHeader = getScheme ( ) + STRING0 + uri . getHost ( ) + STRING1 + uri . getPort ( ) ;
mTFS = TachyonFS . get ( uri . getHost ( ) , uri . getPort ( ) , isZookeeperMode ( ) ) ;
mUri = URI . create ( mTachyonHeader ) ;
+ UNDERFS_ADDRESS = mTFS . getUfsAdd... | restored underfs for tfs |
<nb> import NAMESPACE ;
import NAMESPACE ;
- @ notdryrun
@ dependsupon ( DecoratorBarriers . END_OF_VIOLATION_TRACKING )
public class NewViolationsDecorator implements Decorator { | Compute new violations on dry runs |
<nb> public class FileDocumentManagerImpl extends FileDocumentManager implements Appl
}
private void fireFileContentLoaded ( final VirtualFile file , final DocumentEx document ) {
- myBus . asyncPublisher ( AppTopics . FILE_DOCUMENT_SYNC ) . fileContentLoaded ( file , document ) ;
+ SINGLE
}
} | Do not find this unnecessary event at all |
<nb> public class ReflectorServletProcessor extends AbstractReflectorAtmosphereHandle
public ReflectorServletProcessor ( ) {
}
+ public ReflectorServletProcessor ( Servlet servlet ) {
+ this . servlet = servlet ;
+ }
+
void loadWebApplication ( ServletConfig sc ) throws MalformedURLException ,
Instant... | Add a constructor that allow passing the Servlet |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
public int getUserRotationMode ( ) {
return Settings . System . getIntForUser ( mContext . getContentResolver ( ) ,
- Settings . System . USER_ROTATION , WindowManagerPolicy . USER_ROTATION_FREE ,
- UserHandle . USER_CURRENT ) ;
+ Setting... | Fix PhoneWindowManager getUserRotationMode |
<nb> public class Daemon {
quittingInProgress = false ;
}
- public void start ( boolean startedWithGui ) {
+ public void start ( boolean startedWithGui ) throws Exception {
this . startedWithGui = startedWithGui ;
SINGLE
<nb> public class Daemon {
}
catch ( Exception e ) {
log . info ( STRING0 )... | add error handling when daemon does not start |
<nb> import NAMESPACE ;
@ runwith ( JUnit4TestRunner . class )
public class CamelJdbcAggregatorTest extends AbstractFeatureTest {
- public static final String COMPONENT = extractName ( CamelJdbcAggregatorTest . class ) ;
+ SINGLE
+ public static final String COMPONENT = STRING0 ;
@ test
public void te... | Moved jdbc aggregator to sql component |
<nb> public class OverviewFragment extends SherlockFragment implements OnTraktActionC
protected void onLoadImage ( String imagePath ) {
final FrameLayout container = ( FrameLayout ) getActivity ( ) . findViewById ( R . id . imageContainer ) ;
- if ( mArtTask == null || mArtTask . getStatus ( ) == AsyncTask . St... | Always cancel a running image task in OverviewFragment |
<nb> public class ExchangeClient
private final Deque < HttpPageBufferClient > queuedClients = new LinkedList < > ( ) ;
private final Set < HttpPageBufferClient > completedClients = Sets . newSetFromMap ( new ConcurrentHashMap < HttpPageBufferClient , Boolean > ( ) ) ;
- public final LinkedBlockingDeque < Page >... | Make exchange client field private |
<nb> public class Intent implements Parcelable , Cloneable {
COMMENT
@ sdkconstant ( SdkConstantType . BROADCAST_INTENT_ACTION )
public static final String ACTION_USB_ANLG_HEADSET_PLUG =
- STRING0 ;
+ STRING1 ;
COMMENT
COMMENT
<nb> public class Intent implements Parcelable , Cloneable {
COMMENT
@ ... | Fix error in HDMI and digital dock intent strings |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GitCucumberWorld {
myPlatformFacade = ServiceManager . getService ( myProject , GitPlatformFacade . class ) ;
myGit = Servi... | git tests Use the same path to Git in test utils and production classes |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class AdaDeltaUpdater extends BaseUpdater {
@ override
public GradientUpdater init ( String variable , INDArray gradient , Layer layer ) {
+ Gradien... | add missing declaration for adadelta |
<nb> public class PutAllOperation extends AbstractMapOperation implements PartitionAw
continue ;
}
if ( mapContainer . getWanReplicationPublisher ( ) != null && mapContainer . getWanMergePolicy ( ) != null ) {
- if ( record != null ) {
- final Data dataValueAsData = mapServiceContext . toData ( dataValue ) ; ... | Removed a redundant nullcheck in the PutAllOperation |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Axis {
private String name ;
private boolean isAutoGenerated = true ;
private boolean hasLines = false ;
- private int textColor = Utils . DEFAULT_DARKEN_CO... | Hanged default Axis text color to make it more visible |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DBCollection implements IDBCollection {
COMMENT
@ override
public void setHintFields ( final List < DBObject > indexes ) {
- hintFields = indexes ;
+ this... | feat driver compat add DBCollection getHintFields |
<nb> public class AdminConsolePlugin implements Plugin {
boolean plainStarted = false ;
SINGLE
SINGLE
- interfaceName = JiveGlobals . getXMLProperty ( STRING0 ) ;
+ interfaceName = JiveGlobals . getXMLProperty ( STRING1 ) ;
port = JiveGlobals . getXMLProperty ( STRING2 , NUMBER0 ) ;
InetAddrPort address =... | Fixed misspelling error |
<nb> public class MessageList
LocalMessage message = ( LocalMessage ) m ;
Date date = message . getSentDate ( ) ;
this . compareDate = message . getInternalDate ( ) ;
+ if ( this . compareDate == null )
+ {
+ this . compareDate = message . getSentDate ( ) ;
+ }
+
this . folder = folder ;
if ( Util... | only store an internalDate if we actually get it from the server If we |
<nb> public interface PushStrategy
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | PushStrategy java remove newlines in javadoc |
<nb> public class BackupTest {
sonarConfig . setProfiles ( getProfiles ( ) ) ;
String xml = backup . getXmlFromSonarConfig ( sonarConfig ) ;
- System . out . println ( xml ) ;
assertXmlAreSimilar ( xml , STRING0 ) ;
} | Remove debug output |
<nb> public class RebalanceControllerCLI {
System . exit ( NUMBER0 ) ;
}
- Set < String > missing = CmdUtils . missing ( options , STRING0 , STRING1 ) ;
+ Set < String > missing = CmdUtils . missing ( options , STRING0 , STRING2 ) ;
if ( missing . size ( ) > NUMBER0 ) {
printUsageAndDie ( STRING3 + Joiner... | Fix arg checking typo in RebalanceControllerCLI |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ColumnFamily implements IColumnContainer , IIterableColumns
SINGLE
SINGLE
Map < ByteBuffer , IColumn > columns = cfCompos... | replace loop over keys lookup w loop over map entries |
<nb> import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class TimingTest extends TestCase {
<nb> public class TimingTest extends TestCase {
Timing t = new Timing ( ) ;
sleepTen ( ) ;
long val2 = t . reportNano ( ) ... | Make okay timing bands even wider |
<nb> public class TopHitsTests extends BaseAggregationTestCase < TopHitsAggregator . TopH
factory . sort ( SortBuilders . fieldSort ( randomAsciiOfLengthBetween ( NUMBER0 , NUMBER1 ) ) . order ( randomFrom ( SortOrder . values ( ) ) ) ) ;
break ;
case NUMBER2 :
- factory . sort ( SortBuilders . geoDistanceSort ... | fix merge error |
<nb> public class ImageViewTouchBase extends ImageView implements IDisposable {
}
protected void updateRect ( RectF bitmapRect , RectF scrollRect ) {
+ if ( bitmapRect == null )
+ return ;
+
float width = getWidth ( ) ;
float height = getHeight ( ) ; | Fix crash when user quickly taps on an image while performing a swiping motion |
<nb> class WorkbenchTabPanel
if ( getSelectedIndex ( ) >= NUMBER0 )
{
- WorkbenchTab lastTab = tabs_ . get ( getSelectedIndex ( ) ) ;
- lastTab . onBeforeUnselected ( ) ;
+ int unselectedTab = getSelectedIndex ( ) ;
+ if ( unselectedTab < tabs_ . size ( ) )
+ {
+ WorkbenchTab lastTab = tabs_ . get ( u... | prevent indexing error in tab before selected handler |
<nb> public class DefaultIjLibraryFactoryTest {
libraryFactoryResolver = new DefaultIjLibraryFactory . IjLibraryFactoryResolver ( ) {
@ override
public Path getPath ( SourcePath path ) {
- return sourcePathResolver . deprecatedGetPath ( path ) ;
+ return sourcePathResolver . getRelativePath ( path ) ;
}
... | Remove SourcePathResolver deprecatedGetPath from c f b jvm java intellij |
<nb> public abstract class HashCode {
throw new IllegalArgumentException ( STRING0 + ch ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ override
public final boolean equals ( @ nullable Object object ) {
if ( object instanceof HashCode ) { | Specify constant time behavior for HashCode equals |
<nb> public class FMLClientHandler implements IFMLSidedHandler
FMLCommonHandler . instance ( ) . worldTickEnd ( ) ;
if ( client . field_6313_p != null ) {
FMLCommonHandler . instance ( ) . tickEnd ( TickType . WORLDGUI , FLOAT0 , client . field_6313_p ) ;
+ }
}
} | Fix stupid problem with braces |
<nb>
package NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove usage of obsolete junit framework Assert class |
<nb> public class EditPostSettingsFragment extends Fragment
LayoutInflater layoutInflater = getActivity ( ) . getLayoutInflater ( ) ;
if ( mCategories != null ) {
- AppCompatButton buttonCategory = ( AppCompatButton ) layoutInflater . inflate ( R . layout . category_button , null ) ;
for ( String categoryName... | Move button inflation back inside the for loop |
<nb> public abstract class NanoHTTPD {
POST ,
DELETE ,
HEAD ,
- OPTIONS ;
+ OPTIONS ,
+ TRACE ,
+ CONNECT ,
+ PATCH ;
static Method lookup ( String method ) {
for ( Method m : Method . values ( ) ) { | Added some HTTP methods |
<nb> public class ServerProperties implements EmbeddedServletContainerCustomizer {
return STRING0 ;
}
if ( this . servletPath . contains ( STRING1 ) ) {
- if ( this . servletPath . endsWith ( STRING1 ) ) {
- return this . servletPath ;
- }
return this . servletPath ;
}
if ( this . servletPath . endsWi... | Remove dead code in ServerProperties |
<nb> public class CacheMonitor extends AbstractMonitor
emitter . emit ( builder . build ( String . format ( STRING0 , metricPrefix ) , cacheStats . getNumEvictions ( ) ) ) ;
emitter . emit ( builder . build ( String . format ( STRING1 , metricPrefix ) , cacheStats . hitRate ( ) ) ) ;
emitter . emit ( builder . bu... | emit cache timeouts metric |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public final class Simple1P1CPerfTest
{
private static final int R... | Ascii art showing dependencies |
<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 NAM... | Fix forbidden access in Gaelyk |
<nb> public class MultiHostRegistrarImpl implements MultiHostRegistrar , ModificationT
@ override
public String toString ( ) {
- return result . toString ( ) ;
+ return String . valueOf ( result ) ;
}
@ notnull
<nb> public class InjectionPlace {
}
} ;
- private final ElementPattern < PsiElemen... | improve debugging experience |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReaderRelatedPost {
SINGLE
public static final String RELATED_POST_FIELDS = STRING0 ;
- public static ReaderRelatedPost fromJson ( @ nonnull JSONObject json ) {
+ public static ReaderRelatedPost... | Null check ReaderRelatedPost fromJSON |
<nb> public class DexFileReader {
int code_off = ( int ) in . readULeb128 ( ) ;
int method_id = lastIndex + diff ;
Method method = getMethod ( method_id ) ;
+
+ SINGLE
+ SINGLE
+ if ( NUMBER0 == ( method_access_flags & DexOpcodes . ACC_CONSTRUCTOR )
+ && ( method . getName ( ) . equals ( STRING0 ) || me... | handle init method name GLITCH |
<nb> public enum ChatColor {
int length = input . length ( ) ;
while ( ( lastIndex = input . indexOf ( COLOR_CHAR , lastIndex + NUMBER0 ) ) != - NUMBER0 ) {
- if ( lastIndex != length ) {
+ if ( lastIndex < length - NUMBER0 ) {
char c = input . charAt ( lastIndex + NUMBER0 ) ;
ChatColor col = getByChar ( ... | Fixed an index out of range error in ChatColor getLastColors |
<nb> public class TestSymbolIssues extends BaseJavaToolTest {
testErrors ( test , false ) ;
}
+
+ SINGLE
+ @ test public void testLabelsForTokensWithMixedTypes ( ) {
+ String [ ] test = {
+ STRING0 +
+ STRING1 +
+ STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING5 +
+ STRING6 +
+ STRING7 +
+ ST... | Added test testLabelsForTokensWithMixedTypes |
<nb> public class MethodLibrary {
+ STRING0
+ STRING1
+ STRING2
- + STRING3 ,
+ + STRING4 ,
parameters = {
@ param ( name = STRING5 , type = String . class , doc = STRING6 ) ,
@ param (
<nb> public class MethodLibrary {
+ STRING0
+ STRING1
+ STRING7
- + STRING3 ,
+ + STRING4 ,
parameters =... | Fix invalid tags in Skylark string method docs |
<nb> public abstract class FileStateValue implements SkyValue {
@ override
public String prettyPrint ( ) {
String contents = digest != null
- ? String . format ( STRING0 , Arrays . toString ( digest ) )
+ ? String . format ( STRING1 , Arrays . toString ( digest ) )
: contentsProxy . prettyPrint ( ) ;
Stri... | Fix missing format specifier |
<nb> public abstract class GrTypeDefinitionImpl extends GrStubElementBase < GrTypeDefin
}
final PsiClass containingClass = getContainingClass ( ) ;
- if ( containingClass != null ) {
+ if ( containingClass != null && containingClass . getQualifiedName ( ) != null ) {
return containingClass . getQualifiedNam... | inner classes of anonymous class have no qualified name |
<nb> public class MatchPhrasePrefixQueryBuilder extends AbstractQueryBuilder < MatchPhr
}
}
} else {
+ if ( fieldName != null ) {
+ throw new ParsingException ( parser . getTokenLocation ( ) , STRING0 +
+ STRING1 + fieldName + STRING2 + parser . currentName ( ) + STRING3 ) ;
+ }
fieldName = parser . cur... | Throw parsing error if match phrase prefix query contains multiple fields in its short version |
<nb> public class FactorialClientPipelineFactory implements
public ChannelPipeline getPipeline ( ) throws Exception {
ChannelPipeline pipeline = pipeline ( ) ;
- SINGLE
+ SINGLE
pipeline . addLast ( STRING0 , new ZlibEncoder ( ZlibWrapper . GZIP ) ) ;
pipeline . addLast ( STRING1 , new ZlibDecoder ( ZlibW... | Rephrased the comments on compression handlers |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AndroidDisplayer implements IDisplayer {
SINGLE
SINGLE
canvas . drawBitmap ( holder . bitmap , left , top , null ) ;
- Log . e ( STRING0 ,... | Fix caches recycle bugs |
<nb> public class JmsHttpJmsTest extends ContextTestSupport {
protected RouteBuilder createRouteBuilder ( ) throws Exception {
return new RouteBuilder ( ) {
public void configure ( ) {
- from ( STRING0 ) . to ( STRING1 ) . to ( STRING2 ) ;
+ from ( STRING0 ) . to ( STRING3 ) . to ( STRING2 ) ;
- from ( ST... | Changed the jetty server port to fix the permission error of the JmsHttpJmsTest in non windows box |
<nb> public class ByteBufferUtil {
public static final boolean isSmallerOrEqualThan ( ByteBuffer a , ByteBuffer b ) {
return compare ( a , b ) <= NUMBER0 ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final boolean isSmallerThan ( StaticBuffer a , Sta... | Added two StaticBuffer helpers to ByteBufferUtil |
<nb> public class ClientFactory {
COMMENT
COMMENT
public static synchronized IClient getNamedClient ( String name ) {
+ return getNamedClient ( name , DefaultClientConfigImpl . class ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static synchronized IClient getNamedClient (... | add helper method to get or create a client with a custom config class |
<nb> class ActivityStarter {
}
private void launchRecentsAppIfNeeded ( ActivityStack topStack ) {
- if ( topStack . mStackId == HOME_STACK_ID && mTargetStack . mStackId == DOCKED_STACK_ID ) {
+ if ( topStack . mStackId == HOME_STACK_ID && mTargetStack != null
+ && mTargetStack . mStackId == DOCKED_STACK_ID ... | Fix NPE when checking if recents should be launched in docked mode |
<nb> import NAMESPACE ;
COMMENT
public class LayeredLexer implements Lexer , Cloneable {
private static final Logger LOG = Logger . getInstance ( STRING0 ) ;
- private static final int IN_LAYER_STATE = Integer . MAX_VALUE ;
+ private static final int IN_LAYER_STATE = NUMBER0 ; SINGLE
private char [ ] myBu... | Temporarily reduced value for IN_LAYER_STATE due to assertions in JspHighlightingLexer |
<nb> public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE
protected void initGLCanvas ( ) {
SINGLE
SINGLE
- GLCapabilities caps = new GLCapabilities ( GLProfile . getMaxFixedFunc ( true ) ) ;
+ SINGLE
+ GLCapabilities caps = new GLCapabilities ( GLProfile . getDefault ( ) ) ;
c... | Improves OpenGL ES support especially for Raspberry Pi contribution of Erkki Nokso Koivisto uses the default profile |
<nb> public class WebView extends AbsoluteLayout
protected int computeHorizontalScrollRange ( ) {
if ( mDrawHistory ) {
return mHistoryWidth ;
- } else if ( mHorizontalScrollBarMode == SCROLLBAR_ALWAYSOFF ) {
+ } else if ( mHorizontalScrollBarMode == SCROLLBAR_ALWAYSOFF
+ && ( mActualScale - mMinZoomScale <... | Only honor the scrollbar mode at the minimum zoom |
<nb> public class JSONTest extends DocumentDBBaseTest {
@ test
public void testScientificNotation ( ) {
ODocument doc = new ODocument ( ) ;
- doc . fromJSON ( STRING0 ) ;
+ doc . fromJSON ( STRING1 ) ;
double number1 = doc . field ( STRING2 ) ;
Assert . assertEquals ( number1 , - FLOAT0 ) ; | fixed wrong JSON scintific notation test |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PythonCompletionWeigher extends CompletionWeigher {
@ nonnls private static final String DOUBLE_UNDER = STRING0 ;
@ override
- public Com... | added weight for dict keys in completion |
<nb> public class UpdateByBranchUpdateSettings implements UpdateSettings {
}
public boolean getPruneEmptyDirectories ( ) {
- return false ;
+ return true ;
}
public String getBranch1ToMergeWith ( ) { | prune empty directories when switching to just created tag or branch |
<nb> public class TwoWayView extends AdapterView < ListAdapter > implements
recycleBin . addScrapView ( child , - NUMBER0 ) ;
}
- returnedWidth += child . getMeasuredHeight ( ) ;
+ returnedWidth += child . getMeasuredWidth ( ) ;
if ( returnedWidth >= maxWidth ) {
SINGLE | library Use measured width in measureWidthOfChildren |
<nb> public class IssueIndexBenchmarkTest {
long period = System . currentTimeMillis ( ) - start ;
long throughputPerSecond = NUMBER0 * issues . count . get ( ) / period ;
LOGGER . info ( String . format ( STRING0 , issues . count . get ( ) , period , throughputPerSecond ) ) ;
- benchmark . expectAround ( STRIN... | Fix perf tests of issue indexing |
<nb> abstract class AbstractFileSystem extends org . apache . hadoop . fs . FileSystem {
try {
statuses = sFileSystem . listStatus ( uri ) ;
} catch ( AlluxioException e ) {
- throw new IOException ( e ) ;
+ if ( e instanceof FileDoesNotExistException ) {
+ throw new FileNotFoundException ( HadoopUtils . ge... | improve Exception process for FileDoesNotExistException |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class SnappyFramedDecoder extends ByteToByteDecoder {
enum ChunkType {
<nb> public class SnappyFramedDecoder extends ByteToByteDecoder {
COMMENT
COMMENT
- C... | Clarify SnappyFramedDecoder javadoc to make it as clear as possible regarding the default settings |
<nb> public abstract class DbBaseTest {
if ( dockerHost != null ) {
selftCreated = true ;
- return dockerHost ; SINGLE
+
+ if ( dockerHost . startsWith ( STRING0 ) ) {
+ SINGLE
+ dockerHost = dockerHost . substring ( NUMBER0 ) ;
+ dockerHost = dockerHost . substring ( NUMBER1 , dockerHost . lastIndexO... | Fixed docker for tests |
<nb> public class ASTNode {
COMMENT
public void removeNodeMetaData ( Object key ) {
if ( key == null ) throw new GroovyBugError ( STRING0 + this + STRING1 ) ;
- SINGLE
if ( metaDataMap == null ) {
return ;
} | remove invalid comment |
<nb> public class ReaderPostAdapter extends BaseAdapter {
}
holder . txtTitle . setText ( post . getTitle ( ) ) ;
- holder . txtBlogName . setText ( post . getBlogName ( ) ) ;
holder . txtDate . setText ( DateTimeUtils . javaDateToTimeSpan ( post . getDatePublished ( ) ) ) ;
+ if ( post . hasBlogName ( ) ... | Post list now shows author name when blog name is empty |
<nb> public class DownloadFileHandler extends BaseHandler {
handleSiteDeactivatedException ( ) ;
}
- Session session = SessionManager . getSession ( getSyncAccountId ( ) ) ;
+ final Session session = SessionManager . getSession ( getSyncAccountId ( ) ) ;
Header tokenHeader = httpResponse . getFirstHeader ... | sync engine Make eclipse compiler happy |
<nb> public final class Platform {
else {
osType = UNSPECIFIED ;
}
- boolean hasAWT = false ;
- try {
- Class . forName ( STRING0 ) ;
- hasAWT = true ;
- }
- catch ( Throwable t ) {
- SINGLE
- }
- HAS_AWT = hasAWT ;
boolean hasBuffers = false ;
try {
Class . forName ( STRING1 ) ;
<nb> pu... | avoid inadvertent AWT library load |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AccessLogHandler implements HttpHandler {
public AccessLogHandler ( final HttpHandler next , final AccessLogReceiver accessLogReceiver , final String formatString , ClassLoader classLoader )... | Handle common names in the access log |
<nb> public class ProxyConnectionPool implements Closeable {
public void completed ( ClientConnection result ) {
UndertowLogger . PROXY_REQUEST_LOGGER . debugf ( STRING0 , getUri ( ) ) ;
connectionPoolManager . clearErrorState ( ) ;
+ final HostThreadData data = getData ( ) ;
+ result . getCloseSetter ( ) . s... | add missing proxy connection close handler |
<nb> public abstract class DKV {
SINGLE
SINGLE
SINGLE
- if ( ! isConvertedFrameKeyString ( key . toString ( ) ) ) {
- String frameKeyString = calcConvertedFrameKeyString ( key . toString ( ) ) ;
- Key k = Key . make ( frameKeyString ) ;
- remove ( k ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
... | Added temporary fixes to avoid recent bug with flooding the system with too many Task put keys implicitly removing |
<nb> public class OCommandExecutorSQLAlterProperty extends OCommandExecutorSQLAbstrac
}
value = parserText . substring ( pos + NUMBER0 ) . trim ( ) ;
+ if ( attribute . equals ( ATTRIBUTES . NAME ) || attribute . equals ( ATTRIBUTES . LINKEDCLASS ) ) {
+ value = decodeClassName ( value ) ;
+ }
if ( valu... | Fix ALTER PROPERTY with back ticks |
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
paddingTop += getVerticalOffset ( false ) ;
}
r . offset ( paddingLeft , paddingTop ) ;
+ int paddingBottom = getExtendedPaddingBottom ( ) ;
+ r . bottom += paddingBottom ;
}
COMMENT | Added bottom padding in textview s focused rectangle |
<nb> public class HaBeanIT
private void assertMasterInformation ( HighAvailability ha )
{
- assertTrue ( STRING0 , ha . isAvailable ( ) ) ;
- assertEquals ( STRING1 , HighAvailabilityModeSwitcher . MASTER , ha . getRole ( ) ) ;
- ClusterMemberInfo info = ha . getInstancesInCluster ( ) [ NUMBER0 ] ;
- asse... | Change some assertion prints |
<nb> public class WindowAnimator {
boolean applyExistingExitAnimation = mPostKeyguardExitAnimation != null
&& ! winAnimator . mKeyguardGoingAwayAnimation
&& win . hasDrawnLw ( )
- && win . mAttachedWindow == null ;
+ && win . mAttachedWindow == null
+ && mForceHiding != KEYGUARD_NOT_SHOWN ;
SINGLE
SIN... | Don t apply animations to windows that are showing |
<nb> public class ArrayNode extends AbstractArrayNode {
COMMENT
@ override
protected void fillArray ( IJsonNode [ ] result ) {
- this . children . toArray ( new IJsonNode [ this . children . size ( ) ] ) ;
+ IJsonNode [ ] array = this . children . toArray ( new IJsonNode [ this . children . size ( ) ] ) ;
+... | fixed bug in ArrayNode fillArray result |
<nb> public class NettyServerHandlerTest extends NettyHandlerTestBase < NettyServerHand
}
}
- private ByteBuf badFrame ( ) throws Exception {
- SINGLE
- return super . pingFrame ( false , Unpooled . EMPTY_BUFFER ) ;
- }
-
@ override
protected NettyServerHandler newHandler ( ) {
Http2Connection con... | Remove unused function in netty test |
<nb> public class GLMBasicTestMultinomial extends TestUtil {
params . _alpha = new double [ ] { NUMBER0 } ;
params . _objective_epsilon = FLOAT0 ;
params . _beta_epsilon = FLOAT1 ;
- params . _max_iterations = NUMBER1 ;
+ params . _max_iterations = NUMBER2 ;
double [ ] alpha = new double [ ] { FLOAT2 } ;
... | Updated glm multinomial test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JSONServiceAction extends JSONAction {
return new Short ( ParamUtil . getShort ( req , parameter ) ) ;
}
+ else if ( parameterTypeName . equals ( Date . clas... | JSONService missing Date |
<nb> public class IterablesSize extends BugChecker implements EnhancedForLoopTreeMatc
MethodInvocationTree methodInvocation = ( MethodInvocationTree ) whileExpression ;
if ( methodSelect ( isDescendantOfMethod ( STRING0 , STRING1 ) )
. matches ( methodInvocation , state ) ) {
- return describeMatch ( tree , new... | Fixed the issue with while loop pattern recognition for the iterable size |
<nb> public class InvocationHandler
if ( reentrant )
{
SINGLE
- return null ;
+ return Task . fromValue ( null ) ;
}
return result ; | Fix reentrant invocations |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> public class ConcurrentBag < T extends AbstractBagEntry >
protected AbstractQueuedLongSynchronizer createQueuedSynchronizer ( )
{
- throw new NotImplementedException ( ) ;
+ thro... | Don t throw sun internal NotImplementedException just throw a RunTimeException |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class FileTypeUtil
{
<nb> public class FileTypeUtil
return false ;
}
+ if ( ProjectUtil... | do not add copyright for |
<nb> public class PortalSoapTest extends BaseSoapTest {
String middleName = STRING0 ;
String lastName = STRING1 ;
String nickName = null ;
- String prefixId = null ;
- String suffixId = null ;
+ int prefixId = NUMBER0 ;
+ int suffixId = NUMBER0 ;
boolean male = true ;
int birthdayMonth = Calendar . JA... | fix compile issues |
<nb> public class DefaultParallelBatch < T > implements ParallelBatch < T > {
if ( error . get ( ) == null ) {
promise . result ( t - > {
if ( t . isError ( ) ) {
- if ( ! error . compareAndSet ( null , t . getThrowable ( ) ) ) {
+ Throwable thisError = t . getThrowable ( ) ;
+ if ( ! error . compareAndSet ... | Avoid exception self suppression |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.