Unnamed: 0
int64
0
6.7k
func
stringlengths
12
89.6k
target
bool
2 classes
project
stringlengths
45
151
3,200
@RunWith(Parameterized.class) public static class TestAllReportMessages implements Answer { @Test @SuppressWarnings("unchecked") public void shouldLogInconsistency() throws Exception { // given InconsistencyReport report = mock( InconsistencyReport.cla...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_report_ConsistencyReporterTest.java
3,201
TEXT { @Override boolean isA( List<String> block ) { return true; } @Override String process( Block block, State state ) { return StringUtils.join( block.lines, CypherDoc.EOL ) + CypherDoc.EOL; } };
false
manual_cypherdoc_src_main_java_org_neo4j_doc_cypherdoc_BlockType.java
3,202
public class IndexRules { public static Iterable<IndexRule> loadAllIndexRules( final RecordStore<DynamicRecord> schemaStore ) { return new Iterable<IndexRule>() { @Override public Iterator<IndexRule> iterator() { return new SchemaStorage( schem...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_schema_IndexRules.java
3,203
public class LabelScanCheck implements RecordCheck<LabelScanDocument, ConsistencyReport.LabelScanConsistencyReport> { @Override public void check( LabelScanDocument record, CheckerEngine<LabelScanDocument, ConsistencyReport.LabelScanConsistencyReport> engine, RecordAccess records ) { Nod...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_labelscan_LabelScanCheck.java
3,204
public class IndexIterator implements BoundedIterable<Long> { private final IndexAccessor indexAccessor; private BoundedIterable<Long> indexReader; public IndexIterator( IndexAccessor indexAccessor ) { this.indexAccessor = indexAccessor; } @Override public long maxCount() { ...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_index_IndexIterator.java
3,205
public class IndexEntryProcessor implements RecordProcessor<Long> { private final ConsistencyReporter reporter; private final IndexCheck indexCheck; public IndexEntryProcessor( ConsistencyReporter reporter, IndexCheck indexCheck ) { this.reporter = reporter; this.indexCheck = indexCheck...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_index_IndexEntryProcessor.java
3,206
public class IndexAccessors implements Closeable { private final Map<Long,IndexAccessor> accessors = new HashMap<>(); private final List<IndexRule> indexRules = new ArrayList<>(); public IndexAccessors( SchemaIndexProvider provider, RecordStore<DynamicRecord> schemaStore ) throws IOException, M...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_index_IndexAccessors.java
3,207
@Service.Implementation(TransactionInterceptorProvider.class) public class VerifyingTransactionInterceptorProvider extends CheckingTransactionInterceptorProvider { public static final String NAME = "verifying"; public VerifyingTransactionInterceptorProvider() { super( NAME ); } @Override ...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_intercept_VerifyingTransactionInterceptorProvider.java
3,208
DIFF { @Override DiffCheck createChecker( StringLogger logger ) { return new IncrementalDiffCheck( logger ); } };
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_intercept_InconsistencyLoggingTransactionInterceptorProvider.java
3,209
FULL { @Override DiffCheck createChecker( StringLogger logger ) { return new FullDiffCheck( logger ); } },
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_intercept_InconsistencyLoggingTransactionInterceptorProvider.java
3,210
@Service.Implementation(TransactionInterceptorProvider.class) public class InconsistencyLoggingTransactionInterceptorProvider extends CheckingTransactionInterceptorProvider { public static final String NAME = "inconsistency" + "log"; public InconsistencyLoggingTransactionInterceptorProvider() { sup...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_intercept_InconsistencyLoggingTransactionInterceptorProvider.java
3,211
abstract class CheckingTransactionInterceptorProvider extends TransactionInterceptorProvider { public CheckingTransactionInterceptorProvider( String name ) { super( name ); } abstract DiffCheck createChecker( String mode, StringLogger logger ); @Override public CheckingTransactionInter...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_intercept_CheckingTransactionInterceptorProvider.java
3,212
class CheckingTransactionInterceptor implements TransactionInterceptor { private TransactionInterceptor next; private LogEntry.Start startEntry; private LogEntry.Commit commitEntry; private final DiffStore diffs; private final DiffCheck checker; CheckingTransactionInterceptor( DiffCheck checker...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_intercept_CheckingTransactionInterceptor.java
3,213
class StoreProcessor extends AbstractStoreProcessor { private final ConsistencyReport.Reporter report; StoreProcessor( ConsistencyReport.Reporter report ) { this.report = report; } @Override protected void checkNode( RecordStore<NodeRecord> store, NodeRecord node, ...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_StoreProcessor.java
3,214
public class LoggingDiffCheck extends DiffCheck { private final DiffCheck checker; public LoggingDiffCheck( DiffCheck checker, StringLogger logger ) { super( logger ); this.checker = checker; } @Override public ConsistencySummaryStatistics execute( DiffStore diffs ) throws Cons...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_LoggingDiffCheck.java
3,215
private static class RuleReader implements SchemaRuleAccess { private final RecordStore<DynamicRecord> schemaStore; private RuleReader( RecordStore<DynamicRecord> schemaStore ) { this.schemaStore = schemaStore; } @Override public SchemaRule loadSingl...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_IncrementalDiffCheck.java
3,216
public class IncrementalDiffCheck extends DiffCheck { public IncrementalDiffCheck( StringLogger logger ) { super( logger ); } @Override public ConsistencySummaryStatistics execute( DiffStore diffs ) { ConsistencySummaryStatistics summary = new ConsistencySummaryStatistics(); ...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_incremental_IncrementalDiffCheck.java
3,217
{ @Override protected void transactionData( GraphStoreFixture.TransactionDataBuilder tx, GraphStoreFixture.IdGenerator next ) { DynamicRecord array = new DynamicRecord( next.arrayProperty() ); array.s...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_checking_incremental_IncrementalCheckIntegrationTest.java
3,218
{ @Override protected void transactionData( GraphStoreFixture.TransactionDataBuilder tx, GraphStoreFixture.IdGenerator next ) { DynamicRecord string = new DynamicRecord( next.stringProperty() ); strin...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_checking_incremental_IncrementalCheckIntegrationTest.java
3,219
{ @Override protected void transactionData( GraphStoreFixture.TransactionDataBuilder tx, GraphStoreFixture.IdGenerator next ) { PropertyRecord property = new PropertyRecord( next.property() ); propert...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_checking_incremental_IncrementalCheckIntegrationTest.java
3,220
{ @Override protected void transactionData( GraphStoreFixture.TransactionDataBuilder tx, GraphStoreFixture.IdGenerator next ) { long node = next.node(); tx.create( new RelationshipRecord( next.relatio...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_checking_incremental_IncrementalCheckIntegrationTest.java
3,221
{ @Override protected void transactionData( GraphStoreFixture.TransactionDataBuilder tx, GraphStoreFixture.IdGenerator next ) { tx.create( new NodeRecord( next.node(), next.relationship(), -1 ) ); } ...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_checking_incremental_IncrementalCheckIntegrationTest.java
3,222
public class LabelScanDocumentProcessor implements RecordProcessor<NodeLabelRange> { private final ConsistencyReporter reporter; private final LabelScanCheck labelScanCheck; public LabelScanDocumentProcessor( ConsistencyReporter reporter, LabelScanCheck labelScanCheck ) { this.reporter = report...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_labelscan_LabelScanDocumentProcessor.java
3,223
{ @Override public Iterator<IndexRule> iterator() { return new SchemaStorage( schemaStore ).allIndexRules(); } };
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_checking_schema_IndexRules.java
3,224
{ @Override public boolean matchesSafely( String item ) { return item.trim().split( " " ).length > 1; } @Override public void describeTo( Description description ) { description.appendText( "mess...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_report_ConsistencyReporterTest.java
3,225
public class NodePropertiesReporter { private final GraphDatabaseService database; public NodePropertiesReporter( GraphDatabaseService database ) { this.database = database; } public void reportNodeProperties( PrintWriter writer, RecordSet<RelationshipRecord> relationshipRecords ) { ...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_NodePropertiesReporter.java
3,226
@RunWith(Suite.class) @Suite.SuiteClasses({ConsistencyReporterTest.TestAllReportMessages.class, ConsistencyReporterTest.TestReportLifecycle.class}) public class ConsistencyReporterTest { public static class TestReportLifecycle { @Test public void shouldSummarizeStatisticsAft...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_report_ConsistencyReporterTest.java
3,227
private static abstract class ReportInvocationHandler <RECORD extends AbstractBaseRecord, REPORT extends ConsistencyReport> implements CheckerEngine<RECORD, REPORT>, InvocationHandler { final InconsistencyReport report; private final ProxyFactory<REPORT> factory; ...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_report_ConsistencyReporter.java
3,228
static class ReportHandler <RECORD extends AbstractBaseRecord, REPORT extends ConsistencyReport> extends ReportInvocationHandler<RECORD,REPORT> { private final AbstractBaseRecord record; ReportHandler( InconsistencyReport report, ProxyFactory<REPORT> factory, RecordType ...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_report_ConsistencyReporter.java
3,229
static class ProxyFactory<T> { private Constructor<? extends T> constructor; @SuppressWarnings("unchecked") ProxyFactory( Class<T> type ) throws LinkageError { try { this.constructor = (Constructor<? extends T>) Proxy ...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_report_ConsistencyReporter.java
3,230
private static class DiffReportHandler <RECORD extends AbstractBaseRecord, REPORT extends ConsistencyReport> extends ReportInvocationHandler<RECORD,REPORT> { private final AbstractBaseRecord oldRecord; private final AbstractBaseRecord newRecord; private DiffRepor...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_report_ConsistencyReporter.java
3,231
public class ConsistencyReporter implements ConsistencyReport.Reporter { private static final ProxyFactory<ConsistencyReport.SchemaConsistencyReport> SCHEMA_REPORT = ProxyFactory.create( ConsistencyReport.SchemaConsistencyReport.class ); private static final ProxyFactory<ConsistencyReport.NodeConsis...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_report_ConsistencyReporter.java
3,232
SECOND { @Override public long get( RelationshipRecord rel ) { return rel.getSecondNode(); } };
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_RelationshipNodeField.java
3,233
FIRST { @Override public long get( RelationshipRecord rel ) { return rel.getFirstNode(); } },
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_RelationshipNodeField.java
3,234
SECOND_PREV( Record.NO_PREV_RELATIONSHIP ) { @Override public long relOf( RelationshipRecord rel ) { return rel.getSecondPrevRel(); } };
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_RelationshipChainField.java
3,235
SECOND_NEXT( Record.NO_NEXT_RELATIONSHIP ) { @Override public long relOf( RelationshipRecord rel ) { return rel.getSecondNextRel(); } },
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_RelationshipChainField.java
3,236
FIRST_PREV( Record.NO_PREV_RELATIONSHIP ) { @Override public long relOf( RelationshipRecord rel ) { return rel.getFirstPrevRel(); } },
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_RelationshipChainField.java
3,237
FIRST_NEXT( Record.NO_NEXT_RELATIONSHIP ) { @Override public long relOf( RelationshipRecord rel ) { return rel.getFirstNextRel(); } },
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_RelationshipChainField.java
3,238
public class RelationshipChainExplorerTest { private static final TargetDirectory target = TargetDirectory.forTest( RelationshipChainExplorerTest.class ); private static final int NDegreeTwoNodes = 10; @Rule public TargetDirectory.TestDirectory storeLocation = target.testDirectory(); private StoreA...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_repair_RelationshipChainExplorerTest.java
3,239
public class RelationshipChainExplorer { public static final int none = Record.NO_NEXT_RELATIONSHIP.intValue(); private final RecordStore<RelationshipRecord> recordStore; public RelationshipChainExplorer( RecordStore<RelationshipRecord> recordStore ) { this.recordStore = recordStore; } ...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_RelationshipChainExplorer.java
3,240
public class RecordSetTest { @Test public void toStringShouldPlaceEachRecordOnItsOwnLine() throws Exception { // given NodeRecord record1 = new NodeRecord( 1, 1, 1 ); NodeRecord record2 = new NodeRecord( 2, 2, 2 ); RecordSet<NodeRecord> set = new RecordSet<NodeRecord>(); ...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_repair_RecordSetTest.java
3,241
class RecordSet<R extends Abstract64BitRecord> implements Iterable<R> { private Map<Long, R> map = new HashMap<Long, R>(); void add( R record ) { map.put( record.getId(), record ); } RecordSet<R> union( RecordSet<R> other ) { RecordSet<R> set = new RecordSet<R>(); set.a...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_RecordSet.java
3,242
{ @Override public boolean matchesSafely( RecordSet<RelationshipRecord> actualSet ) { return actualSet.containsAll( expectedSet ); } @Override public void describeTo( Description description ) { ...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_repair_OwningNodeRelationshipChainTest.java
3,243
public class OwningNodeRelationshipChainTest { @Test public void shouldFindBothChainsThatTheRelationshipRecordShouldBelongTo() throws Exception { // given int node1 = 101, node1Rel = 1001; int node2 = 201, node2Rel = 2001; int sharedRel = 1000; int relType = 0; ...
false
enterprise_consistency-check_src_test_java_org_neo4j_consistency_repair_OwningNodeRelationshipChainTest.java
3,244
public class OwningNodeRelationshipChain { private final RelationshipChainExplorer relationshipChainExplorer; private final RecordStore<NodeRecord> nodeStore; public OwningNodeRelationshipChain( RelationshipChainExplorer relationshipChainExplorer, RecordStore<NodeRec...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_repair_OwningNodeRelationshipChain.java
3,245
public class LabelScanDocument extends Abstract64BitRecord { private final NodeLabelRange nodeLabelRange; public LabelScanDocument( NodeLabelRange nodeLabelRange ) { super( nodeLabelRange.id() ); this.nodeLabelRange = nodeLabelRange; setInUse( true ); } public NodeLabelRang...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_synthetic_LabelScanDocument.java
3,246
public class FileMapper { private final StoreChannel fileChannel; public FileMapper( StoreChannel fileChannel ) { this.fileChannel = fileChannel; } public long fileSizeInBytes() throws IOException { return fileChannel.size(); } public MappedWindow mapWindow( long first...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_windowpool_FileMapper.java
3,247
public class LoggingStatisticsListener implements MappingStatisticsListener { private final PrintWriter logWriter; public LoggingStatisticsListener( File fileName ) throws FileNotFoundException { this.logWriter = FileUtils.newFilePrintWriter( fileName, Charsets.UTF_8 ); } @Override pub...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_windowpool_LoggingStatisticsListener.java
3,248
@SuppressWarnings("MagicConstant") public class ScrollableOptionPane { public static void showWrappedMessageDialog( Component parentComponent, String message, String title, int messageType ) { showMessageDialog( parentComponent, createWrappingScrollPane( ...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_ScrollableOptionPane.java
3,249
public class OpenDirectoryActionListener implements ActionListener { private final Component parent; private final File directory; private final DesktopModel model; public OpenDirectoryActionListener( Component parent, File directory, DesktopModel model ) { this.parent = parent; thi...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_OpenDirectoryActionListener.java
3,250
public class OpenBrowserMouseListener extends MouseAdapter { private final JLabel link; private final DesktopModel model; public OpenBrowserMouseListener( JLabel link, DesktopModel model ) { this.link = link; this.model = model; } @Override public void mouseClicked( MouseEv...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_OpenBrowserMouseListener.java
3,251
private class SysTrayActions implements SysTray.Actions { @Override public void closeForReal() { shutdown(); } @Override public void clickSysTray() { frame.setVisible( true ); } @Override public void clickC...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_MainWindow.java
3,252
{ @Override public void run() { databaseActions.stop(); updateStatus( STOPPED ); } } );
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_MainWindow.java
3,253
{ @Override public void actionPerformed( ActionEvent e ) { updateStatus( DatabaseStatus.STOPPING ); invokeLater( new Runnable() { @Override public void run() { ...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_MainWindow.java
3,254
{ @Override public void mouseClicked( MouseEvent e ) { if ( MouseEvent.BUTTON1 == e.getButton() && e.isAltDown() ) { debugWindow.show(); } } } );
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_MainWindow.java
3,255
{ @Override public void actionPerformed( ActionEvent e ) { JDialog settingsDialog = new SettingsDialog( frame, model ); settingsDialog.setLocationRelativeTo( null ); settingsDialog.setVisible( true ); } } );
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_MainWindow.java
3,256
public class MainWindow { private final DesktopModel model; private final JFrame frame; private final DatabaseActions databaseActions; private final JButton browseButton; private final JButton settingsButton; private final JButton startButton; private final JButton stopButton; private f...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_MainWindow.java
3,257
public final class Graphics { public static final String LOGO_32 = "/neo4j-icon_32x32.png"; public static final String SYSTEM_TRAY_ICON = "/neo4j-systray-16.png"; private static final String LOGO_PATTERN = "/neo4j-icon_%1$dx%1$d.png"; private static final int MIN_SIZE = 16; private static final int...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_Graphics.java
3,258
public abstract class EditFileActionListener implements ActionListener { private final Component parentComponent; private final DesktopModel model; EditFileActionListener( Component parentComponent, DesktopModel model ) { this.parentComponent = parentComponent; this.model = model; }...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_EditFileActionListener.java
3,259
{ @Override public boolean accept( File dir, String name ) { return ! name.startsWith( "." ); } } );
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_DesktopModel.java
3,260
public class DesktopModel { private final DesktopConfigurator serverConfigurator; private final List<DesktopModelListener> listeners = new ArrayList<>(); private final Installation installation; public DesktopModel( Installation installation ) { this.installation = installation; thi...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_DesktopModel.java
3,261
model.register( new DesktopModelListener() { @Override public void desktopModelChanged(DesktopModel model) { link.setText("http://localhost:" + model.getServerPort() + "/"); } });
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_DatabaseStatus.java
3,262
@SuppressWarnings("MagicConstant") public final class Components { public static final int BASE_SPACING_SIZE = 5; public static final int DEFAULT_TEXT_COLUMNS = 35; private Components() { throw new UnsupportedOperationException(); } static JPanel createPanel( Component... components ) ...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_Components.java
3,263
class BrowseForDatabaseActionListener implements ActionListener { private final JFrame frame; private final JTextField directoryDisplay; private final DesktopModel model; public BrowseForDatabaseActionListener( JFrame frame, JTextField directoryDisplay, DesktopModel model ) { this.frame = f...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_BrowseForDatabaseActionListener.java
3,264
public class DesktopConfigurator implements Configurator { private final CompositeConfiguration compositeConfig = new CompositeConfiguration(); private final Map<String, String> map = new HashMap<>(); private final Installation installation; private Configurator propertyFileConfig; public Desktop...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_runtime_DesktopConfigurator.java
3,265
public class DatabaseActions { private final DesktopModel model; private AbstractNeoServer server; private Logging logging; private LifeSupport life; public DatabaseActions( DesktopModel model ) { this.model = model; } public void start() throws UnableToStartServerException ...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_runtime_DatabaseActions.java
3,266
public class WindowsInstallation extends PortableInstallation { private final WindowsEnvironment environment; private final Properties installProperties; public WindowsInstallation() throws Exception { environment = new WindowsEnvironment(); installProperties = new Properties(); ...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_windows_WindowsInstallation.java
3,267
class WindowsEnvironment extends PortableEnvironment { @Override public void openBrowser( String link ) throws IOException, URISyntaxException { if ( isPortableBrowseSupported() ) { portableBrowse( link ); return; } throw new UnsupportedOperationExcep...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_windows_WindowsEnvironment.java
3,268
public class PlatformUI { public static void selectPlatformUI() { try { UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() ); } catch ( ClassNotFoundException | UnsupportedLookAndFeelException | InstantiationException | IllegalAccessException e) ...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_PlatformUI.java
3,269
class SettingsDialog extends JDialog { private final DesktopModel model; SettingsDialog( Frame owner, DesktopModel model ) { super( owner, "Neo4j Settings", true ); this.model = model; getContentPane().add( withSpacingBorder( withBoxLayout( BoxLayout.Y_AXIS, createPanel( ...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SettingsDialog.java
3,270
class MappedWindow implements PersistenceWindow { private final long startRecordId; private final Buffer buffer; private final int recordsPerPage; private final int recordSize; private static final boolean I_AM_SURE_THERE_ARE_NO_REFERENCES_TO_HERE = false; public MappedWindow( int recordsPerPag...
false
enterprise_consistency-check_src_main_java_org_neo4j_consistency_store_windowpool_MappedWindow.java
3,271
{ @Override public void actionPerformed( ActionEvent e ) { close(); } } ) ) )
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SettingsDialog.java
3,272
TITLE { @Override boolean isA( List<String> block ) { int size = block.size(); return size > 0 && ( ( block.get( 0 ) .startsWith( "=" ) && !block.get( 0 ) .startsWith( "==" ) ) || size > 1 && block.get( 1 ) ...
false
manual_cypherdoc_src_main_java_org_neo4j_doc_cypherdoc_BlockType.java
3,273
public class BlockTest { private GraphDatabaseService database; private ExecutionEngine engine; private State state; @Rule public ExpectedException expectedException = ExpectedException.none(); private static final String COMMENT_BLOCK = "////"; private static final List<String> ADAM_QUERY...
false
manual_cypherdoc_src_test_java_org_neo4j_doc_cypherdoc_BlockTest.java
3,274
final class Block { public final List<String> lines; public final BlockType type; private Block( List<String> lines, BlockType type ) { this.lines = lines; this.type = type; } String process( State state ) { return type.process( this, state ); } @Override ...
false
manual_cypherdoc_src_main_java_org_neo4j_doc_cypherdoc_Block.java
3,275
class UnsuitableDirectoryException extends Exception { UnsuitableDirectoryException(String message, File dir) { super( format( message, dir.getAbsolutePath() ) ); } }
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_UnsuitableDirectoryException.java
3,276
public class UnableToStartServerException extends Exception { public UnableToStartServerException( String message ) { super( message ); } }
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_UnableToStartServerException.java
3,277
public class TeeOutputStream extends OutputStream { private final OutputStream a; private final OutputStream b; public TeeOutputStream(OutputStream a, OutputStream b) { this.a = a; this.b = b; } @Override public void write( int data ) throws IOException { a.writ...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_TeeOutputStream.java
3,278
public class SystemOutDebugWindow { private static final int START_X = 100; private static final int START_Y = 100; private static final int START_WIDTH = 600; private static final int START_HEIGHT = 800; private final ByteArrayOutputStream sysStreamCapture = new ByteArrayOutputStream(); privat...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SystemOutDebugWindow.java
3,279
{ @Override public void windowClosing( WindowEvent e ) { actions.clickCloseButton(); } } );
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SysTray.java
3,280
{ @Override public void mouseClicked( MouseEvent e ) { actions.clickSysTray(); } } );
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SysTray.java
3,281
{ @Override public void actionPerformed( ActionEvent e ) { actions.clickSysTray(); } } );
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SysTray.java
3,282
private static class Enabled extends SysTray { private final TrayIcon trayIcon; private final String iconResourceBaseName; Enabled( String iconResourceBaseName, Actions actions, JFrame mainWindow ) throws AWTException { this.iconResourceBaseName = iconResourc...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SysTray.java
3,283
{ @Override public void windowClosing( WindowEvent e ) { actions.closeForReal(); } } );
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SysTray.java
3,284
private static class Disabled extends SysTray { Disabled( final Actions actions, JFrame mainWindow ) { mainWindow.setDefaultCloseOperation( DO_NOTHING_ON_CLOSE ); mainWindow.addWindowListener( new WindowAdapter() { @Override pub...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SysTray.java
3,285
public abstract class SysTray { public static SysTray install( Actions actions, JFrame mainWindow ) { try { if ( SystemTray.isSupported() ) { return new SysTray.Enabled( Graphics.SYSTEM_TRAY_ICON, actions, mainWindow ); } } catc...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SysTray.java
3,286
{ @Override public void run() { try { model.prepareGraphDirectoryForStart(); databaseActions.start(); mainWindow.updateStatus( STARTED ); } catch ( Uns...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_StartDatabaseActionListener.java
3,287
class StartDatabaseActionListener implements ActionListener { private MainWindow mainWindow; private final DesktopModel model; private final DatabaseActions databaseActions; public StartDatabaseActionListener( MainWindow mainWindow, DesktopModel model, DatabaseActions databaseActions ) { th...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_StartDatabaseActionListener.java
3,288
{ @Override protected File getFile() { return model.getVmOptionsFile(); } } );
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SettingsDialog.java
3,289
{ @Override protected File getFile() { return model.getServerConfigurationFile(); } @SuppressWarnings("ResultOfMethodCallIgnored") @Override protected void ensureFileAndParentDirectoriesExists( File file ) throw...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SettingsDialog.java
3,290
{ @Override protected File getFile() { return model.getDatabaseConfigurationFile(); } @SuppressWarnings("ResultOfMethodCallIgnored") @Override protected void ensureFileAndParentDirectoriesExists( File file ) thr...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_ui_SettingsDialog.java
3,291
public class UnixInstallation extends PortableInstallation { @Override public Environment getEnvironment() { return new UnixEnvironment(); } @Override public File getConfigurationDirectory() { // On UNIX derived systems it makes sense to put the configurations in the parent ...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_unix_UnixInstallation.java
3,292
class UnixEnvironment extends PortableEnvironment { @Override public void openBrowser( String url ) throws IOException, URISyntaxException { if ( isPortableBrowseSupported() ) { portableBrowse( url ); return; } throw new UnsupportedOperationException(...
false
packaging_neo4j-desktop_src_main_java_org_neo4j_desktop_config_unix_UnixEnvironment.java
3,293
{ @Override public String apply( String s ) { return s.toUpperCase(); } };
false
packaging_neo4j-desktop_src_test_java_org_neo4j_desktop_config_portable_VariableSubstitutorTest.java
3,294
public class VariableSubstitutorTest { private static final Function<String, String> TO_UPPER_CASE = new Function<String, String>() { @Override public String apply( String s ) { return s.toUpperCase(); } }; private final VariableSubstitutor substitutor = new ...
false
packaging_neo4j-desktop_src_test_java_org_neo4j_desktop_config_portable_VariableSubstitutorTest.java
3,295
public class ExecutionEngineTests { @Rule public DatabaseRule database = new ImpermanentDatabaseRule(); @Test public void shouldConvertListsAndMapsWhenPassingFromScalaToJava() throws Exception { ExecutionEngine executionEngine = new ExecutionEngine( database.getGraphDatabaseService() ); ...
false
community_cypher_cypher_src_test_java_org_neo4j_cypher_javacompat_ExecutionEngineTests.java
3,296
public class ExecutionEngine { private org.neo4j.cypher.ExecutionEngine inner; /** * Creates an execution engine around the give graph database * @param database The database to wrap */ public ExecutionEngine( GraphDatabaseService database ) { this( database, DEV_NULL ); } ...
false
community_cypher_cypher_src_main_java_org_neo4j_cypher_javacompat_ExecutionEngine.java
3,297
public class CypherUpdateMapTest { private ExecutionEngine engine; private GraphDatabaseService gdb; @Test public void updateNodeByMapParameter() { engine.execute( "CREATE (n:Reference) SET n = {data} RETURN n" , map( "data", map("key...
false
community_cypher_cypher_src_test_java_org_neo4j_cypher_javacompat_CypherUpdateMapTest.java
3,298
{ @Override public boolean isDebugEnabled() { return debugEnabled; } };
false
community_cypher_cypher_src_test_java_org_neo4j_cypher_javacompat_CypherLoggingTest.java
3,299
public class CypherLoggingTest { private ExecutionEngine engine; private boolean debugEnabled; private BufferingLogger logger = new BufferingLogger() { @Override public boolean isDebugEnabled() { return debugEnabled; } }; private static final String LI...
false
community_cypher_cypher_src_test_java_org_neo4j_cypher_javacompat_CypherLoggingTest.java