diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class SlidingUpPanelLayout extends ViewGroup {
SINGLE
lp . height = mIsSlidingUp ? ( newTop - getPaddingBottom ( ) ) : ( getHeight ( ) - getPaddingBottom ( ) - mSlideableView . getMeasuredHeight ( ) - newTop ) ;
mMainView . requestLayout ( ) ;
- } else if ( lp . height != defaultHeight ) {
+ } els... | Fixed a small bug in overlay content |
<nb> public class GitLogProvider implements VcsLogProvider {
if ( filterCollection . getTextFilter ( ) != null ) {
String textFilter = filterCollection . getTextFilter ( ) . getText ( ) ;
- filterParameters . add ( prepareParameter ( STRING0 , textFilter ) ) ;
+ filterParameters . add ( prepareParameter ( STR... | vcs log fix log text filter for strings containing or characters |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- public class RestIT extends ElasticsearchRestTestCase {
+ public class RestIT extends ESRestTestCase {
public RestIT ( RestTestCandidate testCandidate ) {
super ( testCandidate ) ;
} | Fix missed test class |
<nb> public abstract class NanoHTTPD {
COMMENT
public static class Response {
COMMENT
- COMMENT
+ COMMENT
COMMENT
private IStatus status ;
COMMENT
<nb> public abstract class NanoHTTPD {
private boolean chunkedTransfer ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public Response ( String msg ) {... | Fix outdated javadoc comment |
<nb> import NAMESPACE ;
public class MavenDependencyResolver implements DependencyResolver {
private final Project project = new Project ( ) ;
+ private final String repositoryUrl ;
+ private final String repositoryId ;
+
+ public MavenDependencyResolver ( ) {
+ this ( STRING0 , STRING1 ) ;
+ }
+
... | Allow dependency injecting the Maven repository URL and ID |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class ChatStateManager {
connection . getChatManager ( ) . addOutgoingMessageInterceptor ( outgoingInterceptor ,
filter ) ;
connection . getChatManager ( ) . addChatListener ( incomingInt... | Add service discovery feature for chat state |
<nb> public class DevicePolicyManager {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public int enableSystemApp ( ComponentName admin , Intent intent ) {
if ( mService != null ) { | Fix javadoc typo |
<nb> public abstract class PullToRefreshBase < T extends View > extends LinearLayout imp
SINGLE
static final boolean DEBUG = true ;
+
+ static final boolean USE_HW_LAYERS = false ;
static final String LOG_TAG = STRING0 ;
<nb> public abstract class PullToRefreshBase < T extends View > extends LinearLay... | Disable Hardware Layers for now |
<nb> public class GrailsRepoResolver extends URLResolver {
XmlSlurper xmlSlurper = new XmlSlurper ( ) ;
xmlSlurper . setErrorHandler ( new ErrorHandler ( ) {
- @ override
public void warning ( SAXParseException e ) throws SAXException {
SINGLE
}
- @ override
public void error ( SAXParseException e )... | removed Override for interface impl methods |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class ImapList extends ArrayList < Object > {
+ class ImapList extends ArrayList < Object > {
private static final long serialVersionUID = - NUMBER0 ;
private static final DateFormat DATE_FORMAT = new SimpleDateFormat ( STRING0 , Locale . US ) ;
p... | Make classes package private |
<nb> public class StringTypeDescriptor extends AbstractTypeDescriptor < String > {
if ( Reader . class . isInstance ( value ) ) {
return DataHelper . extractString ( ( Reader ) value ) ;
}
- if ( Clob . class . isInstance ( value ) || DataHelper . isNClob ( value . getClass ( ) ) ) {
+ if ( Clob . class . isI... | remove dead code from boolean operand |
<nb> public class PackagedProgram {
}
private static Class < ? > loadMainClass ( String className , ClassLoader cl ) throws ProgramInvocationException {
+ ClassLoader contextCl = null ;
try {
- return Class . forName ( className , true , cl ) ;
+ contextCl = Thread . currentThread ( ) . getContextClassLoa... | CLI Set current class loader to user class loader and disable class initialization |
<nb> import NAMESPACE
COMMENT
public class AuthorizationCodeResourceDetails extends AbstractRedirectResourceDetails {
- private String userAuthorizationUri ;
-
public AuthorizationCodeResourceDetails ( ) {
setGrantType ( STRING0 ) ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- pub... | Remove redundant code in AuthorizationCodeResourceDetails |
<nb> public class JRubyObjectHandler extends ReflectionObjectHandler {
}
} ) ;
return createWrapper ( scopeIndex , wrappers , guards , MAP_METHOD , new Object [ ] { rs } ) ;
+ } else {
+ guards . add ( new Predicate < Object [ ] > ( ) {
+ @ override
+ public boolean apply ( @ nullable Object [ ] input ) {... | remember we didnt find it |
<nb> public class ContactIcqImpl
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ void setJoustSimBuddy ( Buddy newBuddy )
+ {
+ this . joustSimBuddy = newBuddy ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ContactIcqImpl
}
COMMENT
+ COM... | Added utilities for converting a volatile contact to a persistent one |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ... | remove direct dependency on GroovyPagesTemplateEngine in RenderDynamicMethod |
<nb> public class Conditions {
} ;
}
+ public static < T > Condition < T > instanceOf ( final Class < ? > . . . clazz ) {
+ return new Condition < T > ( ) {
+ @ override
+ public boolean value ( T t ) {
+ for ( Class < ? > aClass : clazz ) {
+ if ( aClass . isInstance ( t ) ) return true ;
+ }
+ r... | introduce Conditions instanceOf Class |
<nb> public class ObjcRuleClasses {
COMMENT
Header file to prepend to every source file being compiled ( both arc
and non - arc ) .
- Note that the file will not be precompiled - this is simply a
- convenience , not a build - speed enhancement .
+ Use of pch files is actively discouraged in BUILD files , an... | Add stronger language about pch files and that they shouldn t be used |
<nb> public class ControlCommandsTest extends JedisCommandTestBase {
public void monitor ( ) {
new Thread ( new Runnable ( ) {
public void run ( ) {
+ try {
+ SINGLE
+ Thread . sleep ( NUMBER0 ) ;
+ } catch ( InterruptedException e ) {
+ }
Jedis j = new Jedis ( STRING0 ) ;
j . auth ( STRING1 ) ;
f... | Fix ControlCommandsTest to don t hang from monitor test because of timing issue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class InteractiveReport extends AbstractReport {
}
}
+ SINGLE
+ Collections . sort ( interestingBuildLogs , new Comparator < Build... | show build options in reverse time order in rage |
<nb> public abstract class ResourceId {
SINGLE
cls = RobotManager . getResourceIdByLegacyClassName ( nbt . getString ( STRING0 ) ) ;
} else {
- cls = RobotManager . getResourceIdByName ( STRING1 ) ;
+ cls = RobotManager . getResourceIdByName ( nbt . getString ( STRING1 ) ) ;
}
ResourceId id = ( Resource... | fix an error when loading robot resources |
<nb> public class ANTLRInputStream implements CharStream {
@ override
public void consume ( ) {
+ if ( p >= n ) {
+ assert LA ( NUMBER0 ) == CharStream . EOF ;
+ throw new IllegalStateException ( STRING0 ) ;
+ }
+
SINGLE
if ( p < n ) {
p ++ ; | Throw IllegalStateException if the user tries to consume EOF |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public final class Geofence implements Parcelable {
COMMENT
<nb> public final class Geofence implements Parcelable {
private final float mRadius ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> publ... | Clarify the callback mechanisms for LocationRequest |
<nb> public class TemplateState implements Disposable {
int start = mySegments . getSegmentStart ( segmentNumber ) ;
int end = mySegments . getSegmentEnd ( segmentNumber ) ;
int length = myDocument . getTextLength ( ) ;
- if ( start >= length || end > length ) {
+ if ( start > length || end > length ) {
ret... | fix live templates NPE at the end of file |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public class PyQuickDocTest extends LightMarkedTestCase {
private PythonDocumentatio... | fixed quickdoc test |
<nb> public final class WebViewFactory {
StrictMode . ThreadPolicy oldPolicy = StrictMode . allowThreadDiskReads ( ) ;
Trace . traceBegin ( Trace . TRACE_TAG_WEBVIEW , STRING0 ) ;
try {
- try {
- sProviderInstance = providerClass . getConstructor ( WebViewDelegate . class )
- . newInstance ( new WebViewDele... | WebView Remove fallback call to WebViewFactoryProvider no arg constructor |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ImmutableASTTransformation extends AbstractASTTransformation {
) ,
new IfStat... | Reverted equality check |
<nb> public class BackupManager {
COMMENT
@ systemapi
public boolean isBackupEnabled ( ) {
+ checkServiceBinder ( ) ;
if ( sService != null ) {
try {
return sService . isBackupEnabled ( ) ; | Fix BackupManager isBackupEnabled |
<nb> public class CsvReporter extends AbstractPollingReporter implements
}
}
- public static interface Context {
- public PrintStream getStream ( String header ) throws IOException ;
+ public interface Context {
+ PrintStream getStream ( String header ) throws IOException ;
}
@ override
<nb> publi... | Fix modifier order and usage |
<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
+ COMMEN... | Groovy should provide an Immutable annotation to make creating immutable objects easy javadoc |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SQLUsageStore implements UsageStore
@ override
public long getUsages ( Table table )
{
- return NUMBER0 ;
+ Map < Ta... | sql Fix SQLUsageStore |
<nb> public class XmppUriHelper {
public static String getUri ( String address , String otrFingerprint )
{
-
+ COMMENT
Uri . Builder builder = new Uri . Builder ( ) ;
builder . scheme ( SCHEME ) ;
builder . appendPath ( address ) ;
if ( otrFingerprint != null )
builder . appendQueryParameter ( OTR... | updated code for URI generation |
<nb> public class FileConsumerSuspendTest extends ContextTestSupport {
deleteDirectory ( STRING0 ) ;
MockEndpoint mock = getMockEndpoint ( STRING1 ) ;
- mock . expectedBodiesReceived ( STRING2 ) ;
+ mock . expectedMessageCount ( NUMBER0 ) ;
template . sendBodyAndHeader ( STRING3 , STRING2 , Exchange . FIL... | Fixed unit test |
<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... | restore createGlobalContextForTool go plugin compatibility |
<nb> class FalseFriendRuleHandler extends XMLRuleHandler {
formatter . applyPattern ( messages . getString ( STRING0 ) ) ;
Object [ ] messageArguments = {
pattern ,
- textLanguage . getName ( ) ,
+ textLanguage . getShortName ( ) ,
translation ,
- motherTongue . getName ( )
+ motherTongue . getShortName... | improve error message |
<nb> public class LeveledManifest
SINGLE
SINGLE
- if ( score > NUMBER0 || i == NUMBER1 )
+ if ( score > FLOAT0 || i == NUMBER1 )
{
Collection < SSTableReader > candidates = getCandidatesFor ( i ) ;
if ( logger . isDebugEnabled ( ) )
<nb> public class LeveledManifest
List < SSTableReader > sstables =... | fix estimated leveled compaction tasks |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class BazelJ2ObjcLibraryRule implements RuleDefinition {
@ override
public RuleClass... | Fix required fragments for Bazel j2objc_library rule |
<nb> public class AsyncExecutor implements Disposable {
COMMENT
public < T > AsyncResult < T > submit ( final AsyncTask < T > task ) {
T result = null ;
- boolean error = false ;
try {
result = task . call ( ) ;
} catch ( Throwable t ) {
- error = true ;
+ throw new GdxRuntimeException ( STRING0 + t .... | Fixed error handling in AsyncExecutor s GWT emulation |
<nb> public class ResolveVisitor extends ClassCodeExpressionTransformer {
}
break ;
}
- SINGLE
+ SINGLE
SINGLE
- else if ( ! ( it . getClass ( ) == PropertyExpression . class ) ) {
+ else if ( it . getClass ( ) != PropertyExpression . class ) {
return null ;
} else {
PropertyExpression current = (... | Correct a comment and simplify some |
<nb> public class PropertyNamingStrategy SINGLE
public static class LowerCaseWithUnderscoresStrategy extends SnakeCaseStrategy { }
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ deprecated
public static class PascalCaseStrategy extends UpperCamelCaseStrategy { } | Fix misleading javadoc for PascalCaseStrategy |
<nb> public final class HttpLoggingInterceptor implements Interceptor {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix logging interceptor Javadoc typo |
<nb> public class ActivityTestMain extends Activity {
Log . i ( TAG , STRING0 + name ) ;
}
} ;
- if ( bindService ( intent , conn , Context . BIND_AUTO_CREATE , NUMBER0 ) ) {
+ if ( bindServiceAsUser ( intent , conn , Context . BIND_AUTO_CREATE , UserHandle . OWNER ) ) {
mConnections . add ( conn ) ;
} el... | Fix test build failure |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix MockContext package declaration |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class DirectoryTraversal {
SINGLE
}
- public static void main ( String [ ] args ) throws IOException {
- Path directory = Paths . get... | Remove unused method |
<nb> import NAMESPACE ;
COMMENT
public class CoordinatorLayout extends ViewGroup implements NestedScrollingParent {
static final String TAG = STRING0 ;
- static final String WIDGET_PACKAGE_NAME = CoordinatorLayout . class . getPackage ( ) . getName ( ) ;
+ static final String WIDGET_PACKAGE_NAME ;
+
+ sta... | Allow CoordinatorLayout to handle root level pkg |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
-
COMMENT
COMMENT
public interface ArgumentExtractor { | Adjusted ArgumentExtractor s javadoc to match interface behavior |
<nb> public class KinematicCharacterMover implements CharacterMover {
if ( input . isFirstRun ( ) && moveResult . isHorizontalHit ( ) ) {
entity . send ( new HorizontalCollisionEvent ( state . getPosition ( ) , state . getVelocity ( ) ) ) ;
}
- if ( state . isGrounded ( ) || movementComp . mode == MovementMode ... | Send SwimStroke event when diving |
<nb> public class TwitterExample
System . out . println ( STRING0 ) ;
System . out . println ( ) ;
- System . out . println ( STRING1 ) ;
+ System . out . println ( STRING2 ) ;
System . out . println ( AUTHORIZE_URL + requestToken . getToken ( ) ) ;
System . out . println ( STRING3 ) ;
System . out . pr... | Changed old lib name |
<nb> public class OnAlarmReceiver extends BroadcastReceiver {
if ( Intent . ACTION_BOOT_COMPLETED . equals ( intent . getAction ( ) ) ) {
SINGLE
SINGLE
- Log . d ( STRING0 , STRING1 ) ;
+ Log . d ( STRING0 , STRING2 ) ;
Utils . runNotificationServiceDelayed ( context ) ;
} else {
SINGLE | Clarify log message |
<nb> public class JavaReflectionUtil {
}
public static Class < ? > getWrapperTypeForPrimitiveType ( Class < ? > type ) {
- if ( type == Boolean . TYPE ) {
+ if ( type == Character . TYPE ) {
+ return Character . class ;
+ } else if ( type == Boolean . TYPE ) {
return Boolean . class ;
} else if ( type... | Added missing char to Character to JavaReflectionUtil s mapping from primitive to boxed types |
<nb> public class FMLMissingMappingsEvent extends FMLEvent {
}
private ListMultimap < String , MissingMapping > missing ;
private ModContainer activeContainer ;
- private List < MissingMapping > currentList ;
public FMLMissingMappingsEvent ( ListMultimap < String , MissingMapping > missingMappings )
{
<... | Fix FMLMissingMappingsEvent get |
<nb> public class RecipeSorter implements Comparator < IRecipe >
if ( ret == null )
{
- cls = cls . getSuperclass ( ) ;
while ( cls != Object . class )
{
+ cls = cls . getSuperclass ( ) ;
ret = categories . get ( cls ) ;
if ( ret != null )
{ | Fix infinite loop in RecipeSorter |
<nb> public class FakeView {
public void addView ( View child ) {
children . add ( child ) ;
- FakeView childProxy = ( FakeView ) ProxyDelegatingHandler . getInstance ( ) . proxyFor ( child ) ;
- childProxy . parent = this ;
+ childProxy ( child ) . parent = this ;
+ }
+
+ private FakeView childProxy ... | Created ContextAreaBuilder to encapsulate access to action pane |
<nb> public class CommonShortcuts {
return shortcutsById ( IdeActions . ACTION_NEW_ELEMENT ) ;
}
+ public static ShortcutSet getDuplicate ( ) {
+ return shortcutsById ( IdeActions . ACTION_EDITOR_DUPLICATE ) ;
+ }
+
public static ShortcutSet getMove ( ) {
return shortcutsById ( IdeActions . ACTION_MOV... | add Duplicate shortcut set |
<nb> public class JmsRouteRequestReplyTest extends CamelTestSupport {
}
public void run ( ) {
+ SINGLE
+ try {
+ template . start ( ) ;
+ } catch ( Exception e ) {
+ SINGLE
+ }
+
for ( int i = NUMBER0 ; i < maxCalls ; i ++ ) {
int callId = counter . incrementAndGet ( ) ;
Object reply = STRING0... | Fixed potential issue with this test |
<nb> public class LzoTextLoader extends LzoBaseLoadFunc {
}
Tuple t = null ;
try {
- Object line = reader_ . getCurrentValue ( ) ;
- if ( line != null ) {
- incrCounter ( LzoTextLoaderCounters . LinesRead , NUMBER0 ) ;
- t = tupleFactory_ . newTuple ( new DataByteArray ( line . toString ( ) . getBytes ( )... | Fix infinite loop in LzoTextLoader |
<nb> public abstract class Model < M extends Model < M , P , O > , P extends Model . Parameters ,
vvecs [ i ] = vec ;
}
if ( good == convNaN )
- throw new H2OIllegalArgumentException ( STRING0 ) ;
+ throw new IllegalArgumentException ( STRING0 ) ;
if ( good == names . length || ( colNameToSkip != null && te... | Just throw a regular IAE |
<nb> public class TaskContext
public TaskContext ( TaskId taskId , Executor executor , Session session , DataSize maxMemory )
{
this (
- taskId ,
- executor ,
- session ,
- checkNotNull ( maxMemory , STRING0 ) ,
- true ) ;
- }
-
- public TaskContext ( TaskId taskId , Executor executor , Session se... | Remove unused constructor |
<nb> public class ItemlistFragment extends ListFragment {
@ override
protected void onPostExecute ( Void result ) {
super . onPostExecute ( result ) ;
- ( ( MainActivity ) getActivity ( ) ) . loadFragment ( NewEpisodesFragment . TAG , null ) ;
+ ( ( MainActivity ) getActivity ( ) ) . loadFragment ( EpisodesFr... | Don t load a fragment not reachable from the drawer |
<nb> public class SeriesGuideDatabase extends SQLiteOpenHelper {
return db . rawQuery ( query . toString ( ) , selectionArgs ) ;
}
- public static Cursor getSuggestions ( String searchterm , SQLiteDatabase db ) {
+ public static Cursor getSuggestions ( String searchTerm , SQLiteDatabase db ) {
String query ... | Also strip double quotation from suggestions match query |
<nb> public class FullSaveGenerateModel < T > implements GenerateModel < T > {
@ override
public void update ( Interval oldInterval , Interval newInterval ) {
+ size = newInterval . to ( ) - oldInterval . to ( ) + size ;
generate ( ) ;
}
} | fix crash update model |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class MyWebApplication extends PetiteWebApplication {
<nb> public class MyWebApplication extends PetiteWebApplication {
@ over... | Fixed compilation error |
<nb> public class SchemaStatVisitor extends SQLASTVisitorAdapter {
private String handleName ( String ident ) {
ident = ident . replaceAll ( STRING0 , STRING1 ) ;
+ ident = ident . replaceAll ( STRING2 , STRING1 ) ;
ident = ident . replaceAll ( STRING3 , STRING1 ) ;
ident = aliasWrap ( ident ) ; | SchemaStatVisitor improve support mysql |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SuspendManagerImpl implements SuspendManager {
if ( suspendContext . myVotesToVote == NUMBER0 ) {
if ( suspendContext . myIsVotedForResume ) {
SIN... | SuspendContextImpl setIsEvaluating resume may happen during the evaluation in the context |
<nb> public class MySiteFragment extends Fragment
FragmentManager fm = getFragmentManager ( ) ;
fm . beginTransaction ( ) . add ( new MediaAddFragment ( ) , ADD_MEDIA_FRAGMENT_TAG ) . commit ( ) ;
- int fabHeight = getResources ( ) . getDimensionPixelSize ( R . dimen . fab_size_normal ) ;
+ int fabHeight = ge... | use the full R package name |
<nb> public interface OperationSetPersistentPresence
COMMENT
public ContactGroup getServerStoredContactListRoot ( ) ;
-
COMMENT
COMMENT
COMMENT
<nb> public interface OperationSetPersistentPresence
public void removeServerStoredGroupChangeListener (
ServerStoredGroupListener listener ) ;
+
+ CO... | Added the possibility of creating unresolved contacts and contact groups |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | undo intellij magic |
<nb> public class StreamGraphGenerator {
private StreamGraphGenerator ( StreamExecutionEnvironment env ) {
this . streamGraph = new StreamGraph ( env ) ;
this . streamGraph . setChaining ( env . isChainingEnabled ( ) ) ;
+ this . streamGraph . setStateBackend ( env . getStateBackend ( ) ) ;
this . env = env ;... | hofix Properly set state backend from execution environment to stream graph |
<nb> public final class TestTree {
SINGLE
storage . addColumn ( key , STRING0 . getBytes ( MockBase . ASCII ( ) ) ,
( byte [ ] ) TreetoStorageJson . invoke ( buildTestTree ( ) ) ) ;
- Tree t = JSON . parseToObject ( ( byte [ ] ) TreetoStorageJson . invoke ( buildTestTree ( ) ) , Tree . class ) ;
- System . ou... | Remove leftover System out println from TestTree |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> final class CopticMonthOfYearDateTimeField extends PreciseDurationDateTimeField
return ( iChronology . getDayOfYear ( instant ) - NUMBER0 ) / NUMBER1 + NUMBER0 ;
}
+ public long set ( long instant , ... | Need special rule for set |
<nb> public class ConfigurationDialog implements ActionListener {
File newDir = Tools . openDirectoryDialog ( owner , dir ) ;
if ( newDir != null ) {
try {
- File checkDir = new File ( newDir , config . getLanguage ( ) . getShortName ( ) ) ;
- LuceneLanguageModel . validateDirectory ( checkDir ) ;
+ if ( co... | prevent NullPointerException in office context not sure why exactly language is null |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class NERClassifierCombiner extends ClassifierCombiner < CoreLabel > {
SINGLE
SINGLE
recognizeNumberSequences ( output , document , sentence ) ;
+ } catch ... | Pass interrupted exceptions up the chain instead of printing them out |
<nb> final class ActivityRecord {
_intent . getCategories ( ) . size ( ) == NUMBER0 &&
_intent . getData ( ) == null &&
_intent . getType ( ) == null &&
- ( intent . getFlags ( ) & Intent . FLAG_ACTIVITY_NEW_TASK ) != NUMBER1 &&
! isResolverActivity ( ) ) {
SINGLE
mActivityType = HOME_ACTIVITY_TYPE ; | Allow activities without FLAG_ACTIVITY_NEW_TASK set to be home activities |
<nb> public class Node extends ClusterEntity {
return systemInfo . codename ;
}
+ public String getTimezone ( ) {
+ requireSystemInfo ( ) ;
+ return systemInfo . timezone ;
+ }
+
public String getPid ( ) {
requireJVMInfo ( ) ;
return jvmInfo . getPid ( ) ;
<nb> public class SystemOverviewRespons... | Expose method to get node s timezone |
<nb> public class FlatMapOperator < IN , OUT > extends SingleInputUdfOperator < IN , OUT , Fl
}
@ override
- protected org . apache . flink . api . common . operators . base . FlatMapOperatorBase < IN , OUT , FlatMapFunction < IN , OUT > > translateToDataFlow ( Operator < IN > input ) {
-
+ protected FlatMa... | Remove full package name for FlatMapOperatorBase |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT | Remove unused imports and fix check style |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface AutowireCapableBeanFactory extends BeanFactory {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface AutowireCapableBeanFactory extends B... | Fix typos in Javadoc for AutowireCapableBeanFactory |
<nb> public class Text extends RectangularShape {
public TextVertexBuffer getVertexBuffer ( ) {
return ( TextVertexBuffer ) super . getVertexBuffer ( ) ;
}
+
+ public String getText ( ) {
+ return this . mText ;
+ }
SINGLE
SINGLE | Added a getText method to the Text class |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SparkCrossProductCheck implements PhysicalPlanResolver , Dispatcher
SparkWork sparkWork = ( ( SparkTask ) currTask ) . getWork ( ) ;
checkShuffleJoin ( sparkWor... | Check cross product for conditional task Spark Branch Rui via Xuefu |
<nb> public class GCloudSessionTester
{
public static void main ( String [ ] args ) throws Exception
{
+ if ( args . length < NUMBER0 )
+ System . err . println ( STRING0 ) ;
+
System . setProperty ( STRING1 , STRING2 ) ;
Server server = new Server ( NUMBER1 ) ;
<nb> public class GCloudSessionTester... | Remove test credentials from tester |
<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... | Removing unused imports |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
- 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... | association parse fix warnings |
<nb> public final class ActivityStackSupervisor implements DisplayListener {
mTmpConfigs . clear ( ) ;
mTmpInsetBounds . clear ( ) ;
final ArrayList < TaskRecord > tasks = stack . getAllTasks ( ) ;
+ final Rect taskBounds = tempTaskBounds != null ? tempTaskBounds : bounds ;
+ final Rect insetBounds = tempTask... | Fix wrong inset bounds |
<nb> public class AndroidApplication extends Application {
. build ( ) ;
this . applicationComponent . inject ( this ) ;
}
-
- public ApplicationComponent getComponent ( ) {
- return applicationComponent ;
- }
} | Remove unused ApplicationComponent getter |
<nb> public class Parser {
}
}
- public static Packet decodeString ( String str ) {
+ private static Packet decodeString ( String str ) {
Packet p = new Packet ( ) ;
int i = NUMBER0 ; | add a test |
<nb> public class DeepLearning extends ModelBuilder < DeepLearningModel , DeepLearningPar
}
model . training_rows = train . numRows ( ) ;
trainScoreFrame = sampleFrame ( train , mp . _score_training_samples , mp . _seed ) ; SINGLE
+ if ( trainScoreFrame != train ) _delete_me . add ( trainScoreFrame ) ;
if (... | Fix some leaks |
<nb> public abstract class RealmBaseAdapter < T extends RealmObject > extends BaseAdapte
}
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ override
public int getCount ( ) {
if ( realmResults == null ) {
<nb> public abstract class RealmBaseAdapter < T extends RealmObject > extends BaseAdap... | Add missing method docs |
<nb> public class SavePlotAsPdfDialog extends ModalDialogBase
private void setCustomPaperSize ( double width , double height )
{
- paperSizes_ . remove ( paperSizes_ . size ( ) - NUMBER0 ) ;
+ paperSizes_ . remove ( paperSizes_ . size ( ) - NUMBER1 ) ;
paperSizes_ . add ( new PaperSize ( STRING0 , width , h... | save custom paper size to last paper size entry |
<nb> public class DeepLearning extends SupervisedModelBuilder < DeepLearningModel , DeepL
throw new RuntimeException ( ex ) ;
}
finally {
- if ( model != null ) model . unlock ( self ( ) ) ;
- if ( model . actual_best_model_key != null ) {
- assert ( model . actual_best_model_key != model . _key ) ;
- DKV... | Fix potential NPE |
<nb> public class DynamicFileConfigurationTest {
assertEquals ( Double . valueOf ( FLOAT0 ) , doubleProp . getValue ( ) ) ;
assertEquals ( Long . valueOf ( NUMBER0 ) , longProp . getValue ( ) ) ;
ConfigurationManager . getConfigInstance ( ) . addConfigurationListener ( listener ) ;
+ System . out . println ( ST... | Add debugging statements to debug CloudBee race condition issue |
<nb> public class CodeSearchOracle extends SuggestOracle
return NUMBER0 ;
int query_n = query . length ( ) ;
- int string_n = string . length ( ) ;
int result = NUMBER0 ;
<nb> public class CodeSearchOracle extends SuggestOracle
if ( lhsScore == rhsScore )
{
- return NUMBER0 ;
+ return lhs . ge... | prefer shorter to longer matches |
<nb> public class AeronStat
final MappedByteBuffer cncByteBuffer = IoUtil . mapExistingFile ( cncFile , STRING0 ) ;
final DirectBuffer metaDataBuffer = CncFileDescriptor . createMetaDataBuffer ( cncByteBuffer ) ;
final int cncVersion = metaDataBuffer . getInt ( CncFileDescriptor . cncVersionOffset ( NUMBER0 ) ) ;... | add cnc version and client liveness info to AeronStat |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public final class Types {
public static final Type SHORT = new ClassType ( TypeCategory . NUMERIC , Short . class , short . class ) ;
public static final Type STRIN... | added more Type constants |
<nb> public class Utils {
else return new HashMap ( ) ;
}
if ( resources . size ( ) > NUMBER0 ) {
- throw new RuntimeException ( STRING0 + name + STRING1
- + resources ) ;
+ throw new RuntimeException ( STRING0 + name + STRING1 ) ;
}
URL resource = resources . get ( NUMBER1 ) ;
Yaml yaml = new Yaml ( ... | revert src jvm backtype storm utils Utils |
<nb> public interface ExoPlayer {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
@ deprecated
@ override
public boolean getRendererEnabled ( int rendererIndex ) {
- int selectedTrack = getS... | Make getRendererEnabled behavior the same as it used to be until it s removed |
<nb> public abstract class WPActionBarActivity extends SherlockFragmentActivity {
}
WordPress . statsLastPingDate = null ; SINGLE
- if ( shouldUpdateCurrentBlogStats ( ) ) {
+ if ( shouldUpdateCurrentBlogStatsInBackground ( ) ) {
WordPress . updateCurrentBlogStatsInBackground ( ) ;
}
}
<nb> public abs... | Renamed the method that checks if Stats should be refreshed in BG |
<nb> public class BreakpointManager implements JDOMExternalizable {
public synchronized List < Breakpoint > getBreakpoints ( ) {
if ( myBreakpointsListForIteration == null ) {
- myBreakpointsListForIteration = new ArrayList < Breakpoint > ( myBreakpoints ) ;
+ myBreakpointsListForIteration = new ArrayList < B... | Any Exceptiion breakpoint does not work |
<nb> public class TiledMapPacker {
g . drawImage ( layout . image , NUMBER0 , NUMBER0 , tileWidth , tileHeight , ( int ) tileLocation . x , ( int ) tileLocation . y , ( int ) tileLocation . x
+ tileWidth , ( int ) tileLocation . y + tileHeight , null ) ;
+ if ( isBlended ( tile ) ) setBlended ( gid ) ;
packer... | Fixed effectively set blended tiles |
<nb> class PackageManagerService extends IPackageManager . Stub {
}
SdInstallArgs ( String cid ) {
- this ( ( Uri ) null , cid ) ;
+ super ( null , null , PackageManager . INSTALL_EXTERNAL , null ) ;
+ this . cid = cid ;
}
SdInstallArgs ( Uri packageURI , String cid ) {
super ( packageURI , null , P... | Can t move apps to SD card |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class UserModel implements Principal , Serializable , Comparable < UserModel >
}
public String createCookie ( ) {
- return StringUtils . getSHA... | changing Math random to SecureRandom |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.