Unnamed: 0
int64
0
6.7k
func
stringlengths
12
89.6k
target
bool
2 classes
project
stringlengths
45
151
1,800
public class WebDriverFacade { private WebDriver browser; public WebDriver getWebDriver() throws InvocationTargetException, IllegalAccessException, InstantiationException { if ( browser == null ) { String driverName = lookupDriverImplementation(); try { ...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebDriverFacade.java
1,801
public class JmxAttributeRepresentation extends ObjectRepresentation { protected ObjectName objectName; protected MBeanAttributeInfo attrInfo; protected MBeanServer jmxServer = ManagementFactory.getPlatformMBeanServer(); private static final RepresentationDispatcher REPRESENTATION_DISPATCHER = new JmxA...
false
community_server_src_main_java_org_neo4j_server_webadmin_rest_representations_JmxAttributeRepresentation.java
1,802
Firefox() { public WebDriver createInstance() { return new FirefoxDriver(); } },
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebDriverFacade.java
1,803
public class DocOutput implements Output, Serializable { private static final long serialVersionUID = 1L; private final ByteArrayOutputStream baos = new ByteArrayOutputStream(); private final PrintWriter out = new PrintWriter( baos ); @Override public Appendable append( ...
false
community_shell_src_test_java_org_neo4j_shell_Documenter.java
1,804
public class Documenter { public class DocOutput implements Output, Serializable { private static final long serialVersionUID = 1L; private final ByteArrayOutputStream baos = new ByteArrayOutputStream(); private final PrintWriter out = new PrintWriter( baos ); @Override ...
false
community_shell_src_test_java_org_neo4j_shell_Documenter.java
1,805
private static class RawColumn extends Column { public RawColumn( int indentation ) { super( multiply( " ", indentation ) ); } @Override boolean print( Output out, int i ) throws RemoteException { String value = cells.get( i ); ...
false
community_shell_src_main_java_org_neo4j_shell_ColumnPrinter.java
1,806
private static class Column { private int widest = 0; protected final List<String> cells = new ArrayList<String>(); protected final String prefix; public Column( String prefix ) { this.prefix = prefix; } void add( String cell ) { ...
false
community_shell_src_main_java_org_neo4j_shell_ColumnPrinter.java
1,807
public class ColumnPrinter { private final Column rawColumn; private final List<Column> columns = new ArrayList<Column>(); public ColumnPrinter( String... columnPrefixes ) { for ( String prefix : columnPrefixes ) { this.columns.add( new Column( prefix ) ); } ...
false
community_shell_src_main_java_org_neo4j_shell_ColumnPrinter.java
1,808
public class BigLabelStoreGenerator { private static Random random = new Random(); public static void main(String[] args) { long batchSize = parseLong( withDefault( System.getenv().get( "BATCH_SIZE" ), "100000" ) ); long numNodes = parseLong( withDefault( System.getenv( "NUM_NODES" ), "1000...
false
community_shell_src_main_java_org_neo4j_shell_BigLabelStoreGenerator.java
1,809
public class AppCommandParser { private final AppShellServer server; private final String line; private String appName; private App app; private final Map<String, String> options = new HashMap<>(); private final List<String> arguments = new ArrayList<>(); /** * @param server the server...
false
community_shell_src_main_java_org_neo4j_shell_AppCommandParser.java
1,810
public abstract class AbstractShellTest { protected GraphDatabaseAPI db; protected ShellServer shellServer; private ShellClient shellClient; private Integer remotelyAvailableOnPort; protected static final RelationshipType RELATIONSHIP_TYPE = withName( "TYPE" ); @Rule public EphemeralFileSys...
false
community_shell_src_test_java_org_neo4j_shell_AbstractShellTest.java
1,811
public class WebdriverSauceLabsDriver { public static final String WEBDRIVER_SAUCE_LABS_URL = "webdriver.sauce.labs.url"; public static WebDriver createDriver( DesiredCapabilities capabilities ) throws MalformedURLException { String sauceLabsUrl = System.getProperty( WEBDRIVER_SAUCE_LABS_URL ); ...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebdriverSauceLabsDriver.java
1,812
static class ElementClickable extends BaseMatcher<ElementReference> { public boolean matches( Object item ) { try { ((ElementReference) item).click(); return true; } catch ( WebDriverException webDriverException ) { ...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebdriverLibrary.java
1,813
public class WebdriverLibrary { protected final WebDriver d; public WebdriverLibrary(WebDriverFacade df) throws InvocationTargetException, IllegalAccessException, InstantiationException { d = df.getWebDriver(); } public WebDriver getWebDriver() { return d; } public...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebdriverLibrary.java
1,814
public class WebdriverConditionTimeoutException extends ConditionTimeoutException { /** * */ private static final long serialVersionUID = 1L; private String htmlDump; public WebdriverConditionTimeoutException( String msg, String htmlDump, Throwable cause ) { super( msg,...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebdriverConditionTimeoutException.java
1,815
public class WebdriverCondition<T> extends Condition<T> { private final WebDriver d; public WebdriverCondition( WebDriver d, Matcher<T> matcher, T state ) { super( matcher, state ); this.d = d; } public void waitUntilFulfilled(long timeout, String errorMessage) { try {...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebdriverCondition.java
1,816
public class WebdriverChromeDriver { public static final String WEBDRIVER_CHROME_DRIVER = "webdriver.chrome.driver"; public static final String WEBDRIVER_CHROME_DRIVER_DOWNLOAD_URL = "webdriver.chrome.driver.download.url"; public static void ensurePresent() { String chromeDriverPath = System.ge...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebdriverChromeDriver.java
1,817
public class WebadminWebdriverLibrary extends WebdriverLibrary { private static final String USE_DEV_HTML_FILE_KEY = "testWithDevHtmlFile"; private static final String AVOID_REDIRECT_AND_GO_STRAIGHT_TO_WEB_ADMIN_HOMEPAGE = "avoidRedirectAndGoStraightToWebAdminHomepage"; private String serverUrl; p...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebadminWebdriverLibrary.java
1,818
SauceLabsInternetExplorerWindows() { public WebDriver createInstance() throws MalformedURLException { DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer(); capabilities.setCapability( "platform", Platform.VISTA ); capab...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebDriverFacade.java
1,819
SauceLabsChromeWindows() { public WebDriver createInstance() throws MalformedURLException { DesiredCapabilities capabilities = DesiredCapabilities.chrome(); capabilities.setCapability( "platform", Platform.VISTA ); capabilities.setCapabilit...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebDriverFacade.java
1,820
SauceLabsFirefoxWindows() { public WebDriver createInstance() throws MalformedURLException { DesiredCapabilities capabilities = DesiredCapabilities.firefox(); capabilities.setCapability( "version", "5" ); capabilities.setCapability( "platfo...
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebDriverFacade.java
1,821
Chrome() { public WebDriver createInstance() { WebdriverChromeDriver.ensurePresent(); return new ChromeDriver(); } },
false
community_server_src_webtest_java_org_neo4j_server_webdriver_WebDriverFacade.java
1,822
public class JmxAttributeRepresentationDispatcher extends RepresentationDispatcher { @Override protected Representation dispatchOtherProperty( Object property, String param ) { if ( property instanceof CompositeData ) { return dispatchCompositeData( (CompositeData) property ); ...
false
community_server_src_main_java_org_neo4j_server_webadmin_rest_representations_JmxAttributeRepresentationDispatcher.java
1,823
public class ConsoleServiceRepresentation extends ServiceDefinitionRepresentation { private Iterable<String> engines; public ConsoleServiceRepresentation(String basePath, Iterable<String> engines) { super(basePath); resourceUri( "exec", "" ); this.engines = engines; } ...
false
community_server_src_main_java_org_neo4j_server_webadmin_rest_representations_ConsoleServiceRepresentation.java
1,824
public abstract class AbstractWebadminTest extends SharedServerTestBase { public @Rule TestData<JavaTestDocsGenerator> gen = TestData.producedThrough( JavaTestDocsGenerator.PRODUCER ); protected static WebadminWebdriverLibrary wl; private static WebDriverFacade webdriverFacade; @BeforeCl...
false
community_server_src_webtest_java_org_neo4j_server_webadmin_AbstractWebadminTest.java
1,825
return new ArrayList<String>(){{ add("shell"); }};
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_ConsoleServiceDocTest.java
1,826
public class ConsoleServiceDocTest { private final URI uri = URI.create( "http://peteriscool.com:6666/" ); @Test public void correctRepresentation() throws URISyntaxException, UnsupportedEncodingException { ConsoleService consoleService = new ConsoleService( new ShellOnlyConsoleSessionFactory()...
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_ConsoleServiceDocTest.java
1,827
public class ConfigureEnabledManagementConsolesDocIT extends ExclusiveServerTestBase { private NeoServer server; @After public void stopTheServer() { server.stop(); } @Test public void shouldBeAbleToExplicitlySetConsolesToEnabled() throws Exception { server = server()....
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_ConfigureEnabledManagementConsolesDocIT.java
1,828
{ @Override public Void call() throws Exception { server.stop(); return null; } } );
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_CommunityVersionAndEditionServiceDocIT.java
1,829
{ @Override public Void call() throws Exception { server.start(); return null; } } );
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_CommunityVersionAndEditionServiceDocIT.java
1,830
public class CommunityVersionAndEditionServiceDocIT extends ExclusiveServerTestBase { private static NeoServer server; private static FunctionalTestHelper functionalTestHelper; @ClassRule public static TemporaryFolder staticFolder = new TemporaryFolder(); public @Rule TestData<RESTDocsGene...
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_CommunityVersionAndEditionServiceDocIT.java
1,831
{ @Override public Void call() throws Exception { server.stop(); return null; } } );
false
advanced_server-advanced_src_test_java_org_neo4j_server_webadmin_rest_AdvancedVersionAndEditionServiceIT.java
1,832
{ @Override public Void call() throws Exception { AdvancedVersionAndEditionServiceIT.server.start(); return null; } } );
false
advanced_server-advanced_src_test_java_org_neo4j_server_webadmin_rest_AdvancedVersionAndEditionServiceIT.java
1,833
public class AdvancedVersionAndEditionServiceIT extends ExclusiveServerTestBase { private static NeoServer server; private static FunctionalTestHelper functionalTestHelper; @ClassRule public static TemporaryFolder staticFolder = new TemporaryFolder(); private static FakeClock clock; @BeforeCl...
false
advanced_server-advanced_src_test_java_org_neo4j_server_webadmin_rest_AdvancedVersionAndEditionServiceIT.java
1,834
public class ShellSessionCreator implements ConsoleSessionCreator { @Override public String name() { return "SHELL"; } @Override public ScriptSession newSession( Database database, CypherExecutor cypherExecutor ) { return new ShellSession( database.getGraph() ); } }
false
community_server_src_main_java_org_neo4j_server_webadmin_console_ShellSessionCreator.java
1,835
public class ShellSession implements ScriptSession { private static volatile ShellServer fallbackServer = null; private final ShellClient client; private final CollectingOutput output; private final StringLogger log; public ShellSession( GraphDatabaseAPI graph ) { try { ...
false
community_server_src_main_java_org_neo4j_server_webadmin_console_ShellSession.java
1,836
public class CypherSessionDocTest { @Test public void shouldReturnASingleNode() throws Throwable { AbstractGraphDatabase graphdb = (AbstractGraphDatabase) new TestGraphDatabaseFactory().newImpermanentDatabase(); Database database = new WrappedDatabase( graphdb ); CypherExecutor execu...
false
community_server_src_test_java_org_neo4j_server_webadmin_console_CypherSessionDocTest.java
1,837
public class CypherSessionCreator implements ConsoleSessionCreator { @Override public String name() { return "CYPHER"; } @Override public ScriptSession newSession( Database database, CypherExecutor cypherExecutor ) { return new CypherSession( cypherExecutor, database.getLogg...
false
community_server_src_main_java_org_neo4j_server_webadmin_console_CypherSessionCreator.java
1,838
public class CypherSession implements ScriptSession { private final CypherExecutor cypherExecutor; private final ConsoleLogger log; public CypherSession( CypherExecutor cypherExecutor, Logging logging ) { this.cypherExecutor = cypherExecutor; this.log = logging.getConsoleLog( getClass()...
false
community_server_src_main_java_org_neo4j_server_webadmin_console_CypherSession.java
1,839
@Ignore("On avengers wall to be resolved") public class ServerInfoWebIT extends AbstractWebadminTest { @Test public void canShowJMXValuesTest() { wl.goToWebadminStartPage(); wl.clickOnTab("Server info"); wl.clickOnLink("Primitive count"); wl.waitForElementToAppear(By.xp...
false
community_server_src_webtest_java_org_neo4j_server_webadmin_ServerInfoWebIT.java
1,840
@Ignore("On avengers wall to be resolved") public class RedirectWebIT extends AbstractWebadminTest { @Test public void rootRedirectsToWebadminTest() { wl.goToServerRoot(); wl.waitForUrlToBe(".+/webadmin/"); } }
false
community_server_src_webtest_java_org_neo4j_server_webadmin_RedirectWebIT.java
1,841
@Ignore("On avengers wall to be resolved") public class IndexManagerWebIT extends AbstractWebadminTest { @Test public void createNodeIndexTest() { wl.goToWebadminStartPage(); wl.clickOnTab("Indexes"); wl.writeTo(By.id( "create-node-index-name" ), "mynodeindex"); wl.clickOn(...
false
community_server_src_webtest_java_org_neo4j_server_webadmin_IndexManagerWebIT.java
1,842
@Ignore("On avengers wall to be resolved") public class DiscoverAvailableConsolesWebIT extends AbstractExclusiveServerWebadminTest { @Test public void shouldShowOnlyShellIfAvailable() throws Exception { NeoServer server = server().build(); try { server.start(); ...
false
community_server_src_webtest_java_org_neo4j_server_webadmin_DiscoverAvailableConsolesWebIT.java
1,843
@Ignore("On avengers wall to be resolved") public class DatabrowserWebIT extends AbstractWebadminTest { // // NODE MANAGEMENT // @Test public void canFindNodeByNodePredicatedIdTest() { long nodeId = wl.createNodeInDataBrowser(); wl.searchForInDataBrowser("node:" + nodeId); ...
false
community_server_src_webtest_java_org_neo4j_server_webadmin_DatabrowserWebIT.java
1,844
@Ignore("On avengers wall to be resolved") public class ConsoleWebIT extends AbstractWebadminTest { // // SHELL // /** * In order to access the Shell console, * click on the "Console" tab in the webadmin * and check the "Shell" link. * * @@screenshot_ShellConsole */ ...
false
community_server_src_webtest_java_org_neo4j_server_webadmin_ConsoleWebIT.java
1,845
private static class ShellOnlyConsoleSessionFactory implements ConsoleSessionFactory { @Override public ScriptSession createSession(String engineName, Database database) { return null; } @Override public Iterable<String> supportedEngines() { ...
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_ConsoleServiceDocTest.java
1,846
public class EnterpriseVersionAndEditionServiceIT extends ExclusiveServerTestBase { private static NeoServer server; private static FunctionalTestHelper functionalTestHelper; @ClassRule public static TemporaryFolder staticFolder = new TemporaryFolder(); private static FakeClock clock; @Before...
false
enterprise_server-enterprise_src_test_java_org_neo4j_server_webadmin_rest_EnterpriseVersionAndEditionServiceIT.java
1,847
public class SessionFactoryImpl implements ConsoleSessionFactory { private static final Collection<ConsoleSessionCreator> creators = IteratorUtil.asCollection( ServiceLoader.load( ConsoleSessionCreator.class ) ); private final HttpSession httpSession; private final CypherExecutor cypherExecutor; privat...
false
community_server_src_main_java_org_neo4j_server_webadmin_rest_console_SessionFactoryImpl.java
1,848
{ @Override public Void call() throws Exception { server.start(); return null; } } );
false
enterprise_server-enterprise_src_test_java_org_neo4j_server_webadmin_rest_EnterpriseVersionAndEditionServiceIT.java
1,849
@Path( ConsoleService.SERVICE_PATH ) public class ConsoleService implements AdvertisableService { public static final String SERVICE_PATH = "server/console"; private static final String SERVICE_NAME = "console"; private final ConsoleSessionFactory sessionFactory; private final Database database; pr...
false
community_server_src_main_java_org_neo4j_server_webadmin_rest_console_ConsoleService.java
1,850
private class FakeEnterpriseNeoServer extends FakeAdvancedNeoServer { }
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_VersionAndEditionServiceTest.java
1,851
private class FakeAdvancedNeoServer extends AbstractNeoServer { public FakeAdvancedNeoServer() { super( null ); } @Override protected PreFlightTasks createPreflightTasks() { throw new NotImplementedException(); } @Override...
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_VersionAndEditionServiceTest.java
1,852
{ @Override public Version version() { return version; } @Override public GraphDatabaseAPI graphDatabase() { return graphDatabaseAPI; } };
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_VersionAndEditionServiceTest.java
1,853
public class VersionAndEditionServiceTest { @Test public void shouldReturnReadableStringForServiceName() throws Exception { // given VersionAndEditionService service = new VersionAndEditionService( mock( CommunityNeoServer.class ) ); // when String serviceName = service.getN...
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_VersionAndEditionServiceTest.java
1,854
@Path(VersionAndEditionService.SERVER_PATH) public class VersionAndEditionService implements AdvertisableService { private NeoServer neoServer; public static final String SERVER_PATH = "server/version"; public VersionAndEditionService( @Context NeoServer neoServer ) { this.neoServer = neoServer...
false
community_server_src_main_java_org_neo4j_server_webadmin_rest_VersionAndEditionService.java
1,855
public class RootServiceDocTest { @Test public void shouldAdvertiseServicesWhenAsked() throws Exception { UriInfo uriInfo = mock( UriInfo.class ); URI uri = new URI( "http://example.org:7474/" ); when( uriInfo.getBaseUri() ).thenReturn( uri ); RootService svc = new RootServi...
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_RootServiceDocTest.java
1,856
@Path("/") public class RootService { private final NeoServer neoServer; public RootService( @Context NeoServer neoServer ) { this.neoServer = neoServer; } @GET public Response getServiceDefinition( @Context UriInfo uriInfo, @Context OutputFormat output ) { ServerRootRepres...
false
community_server_src_main_java_org_neo4j_server_webadmin_rest_RootService.java
1,857
{{ add( "shell" ); }};
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_Neo4jShellConsoleSessionDocTest.java
1,858
public class Neo4jShellConsoleSessionDocTest implements ConsoleSessionFactory { private static final String LN = System.getProperty( "line.separator" ); private ConsoleService consoleService; private Database database; private final URI uri = URI.create( "http://peteriscool.com:6666/" ); @Before ...
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_Neo4jShellConsoleSessionDocTest.java
1,859
public class MonitorServiceDocTest implements JobScheduler { private RrdDbWrapper rrdDb; private MonitorService monitorService; private Database database; private EntityOutputFormat output; @Test public void correctRepresentation() throws Exception { Response resp = monitorService.g...
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_MonitorServiceDocTest.java
1,860
@Path( MonitorService.ROOT_PATH ) public class MonitorService implements AdvertisableService { private final RrdDb rrdDb; private final OutputFormat output; public String getName() { return "monitor"; } public String getServerPath() { return ROOT_PATH; } public Mon...
false
community_server_src_main_java_org_neo4j_server_webadmin_rest_MonitorService.java
1,861
public class MasterInfoServiceTest { @Test public void masterShouldRespond200AndTrueWhenMaster() throws Exception { // given HighlyAvailableGraphDatabase database = mock( HighlyAvailableGraphDatabase.class ); when( database.role() ).thenReturn( "master" ); MasterInfoService ...
false
enterprise_server-enterprise_src_test_java_org_neo4j_server_webadmin_rest_MasterInfoServiceTest.java
1,862
@Path(MasterInfoService.BASE_PATH) public class MasterInfoService implements AdvertisableService { public static final String BASE_PATH = "server/ha"; public static final String IS_MASTER_PATH = "/master"; public static final String IS_SLAVE_PATH = "/slave"; public static final String IS_AVAILABLE_PATH ...
false
enterprise_server-enterprise_src_main_java_org_neo4j_server_webadmin_rest_MasterInfoService.java
1,863
public class MasterInfoServerModule implements ServerModule { private final WebServer server; private final Configuration config; private final ConsoleLogger log; public MasterInfoServerModule( WebServer server, Configuration config, Logging logging ) { this.server = server; this.co...
false
enterprise_server-enterprise_src_main_java_org_neo4j_server_webadmin_rest_MasterInfoServerModule.java
1,864
public class JmxServiceDocTest { public JmxService jmxService; private final URI uri = URI.create( "http://peteriscool.com:6666/" ); @Test public void correctRepresentation() throws URISyntaxException, UnsupportedEncodingException { Response resp = jmxService.getServiceDefinition(); ...
false
community_server_src_test_java_org_neo4j_server_webadmin_rest_JmxServiceDocTest.java
1,865
@Path(JmxService.ROOT_PATH) public class JmxService implements AdvertisableService { public static final String ROOT_PATH = "server/jmx"; public static final String DOMAINS_PATH = "/domain"; public static final String DOMAIN_TEMPLATE = DOMAINS_PATH + "/{domain}"; public static final String BEAN_TEMPLAT...
false
community_server_src_main_java_org_neo4j_server_webadmin_rest_JmxService.java
1,866
public class HaDiscoveryRepresentation extends MappingRepresentation { private static final String MASTER_KEY = "master"; private static final String SLAVE_KEY = "slave"; private static final String DISCOVERY_REPRESENTATION_TYPE = "discovery"; private final String basePath; private final String isM...
false
enterprise_server-enterprise_src_main_java_org_neo4j_server_webadmin_rest_HaDiscoveryRepresentation.java
1,867
{ @Override public Void call() throws Exception { server.stop(); return null; } } );
false
enterprise_server-enterprise_src_test_java_org_neo4j_server_webadmin_rest_EnterpriseVersionAndEditionServiceIT.java
1,868
{ private final TemporaryFolder folder = new TemporaryFolder(); @Override public File root() { return folder.getRoot(); } @Override public void delete() { fol...
false
community_kernel_src_test_java_org_neo4j_test_EmbeddedDatabaseRule.java
1,869
{ private final TargetDirectory targetDirectory = TargetDirectory.forTest( testClass ); private File dbDir; @Override public File root() { return dbDir; } @Override public void delete() ...
false
community_kernel_src_test_java_org_neo4j_test_EmbeddedDatabaseRule.java
1,870
public class EphemeralFileSystemRule extends ExternalResource { private EphemeralFileSystemAbstraction fs = new EphemeralFileSystemAbstraction(); @Override protected void after() { fs.shutdown(); } public EphemeralFileSystemAbstraction get() { return fs; } public E...
false
community_kernel_src_test_java_org_neo4j_test_EphemeralFileSystemRule.java
1,871
public class Script extends ConfigurationParser { public Script( File config, String... format ) { super( config, format ); } public Script( String... format ) { super( format ); } protected String storeDir; public static <S extends Script> S initialize( Class<S> scrip...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_Script.java
1,872
private class PropertyAdapter implements PropertyRenderer<IOException> { private final PropertyContainerStyle style; PropertyAdapter( Node node ) throws IOException { nodeStyle.emitNodeStart( stream, node ); this.style = nodeStyle; } PropertyAdapter( Relationship relationship ) throws IOException ...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_GraphvizRenderer.java
1,873
class GraphvizRenderer implements GraphRenderer<IOException> { private final PrintStream stream; private final GraphStyle graphStyle; private final NodeStyle nodeStyle; private final RelationshipStyle edgeStyle; GraphvizRenderer( GraphStyle style, PrintStream stream ) throws IOException { this.stream = stream;...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_GraphvizRenderer.java
1,874
static final class Header { private Header() { String prefix = getClass().getPackage().getName() + "."; String nodePrefix = prefix + "node."; String relPrefix = prefix + "relationship."; Properties properties = System.getProperties(); for ( Object obj : properties.keySet() ) { try { ...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_GraphStyle.java
1,875
{ @Override protected void emitGraphStart( Appendable stream ) throws IOException { stream.append( String.format( " subgraph cluster_%s {", subgraphName ) ); } @Override protected void emitGraphEnd( Appendable stream ) thro...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_GraphStyle.java
1,876
public class GraphStyle { GraphStyle( StyleParameter... parameters ) { this.configuration = new DefaultStyleConfiguration( parameters ); this.nodeStyle = new DefaultNodeStyle( configuration ); this.edgeStyle = new DefaultRelationshipStyle( configuration ); } /** * Constructor for subclasses. Used to provid...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_GraphStyle.java
1,877
class DefaultStyleConfiguration implements StyleConfiguration { boolean displayRelationshipLabel = true; DefaultStyleConfiguration( StyleParameter... parameters ) { this.nodeHeader = new HashMap<String, String>( GraphStyle.header().nodeHeader ); this.edgeHeader = new HashMap<String, String>( Grap...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_DefaultStyleConfiguration.java
1,878
class DefaultRelationshipStyle implements RelationshipStyle { private final DefaultStyleConfiguration config; DefaultRelationshipStyle( DefaultStyleConfiguration configuration ) { this.config = configuration; } public void emitRelationshipStart( Appendable stream, Relationship relationship...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_DefaultRelationshipStyle.java
1,879
class DefaultNodeStyle implements NodeStyle { protected final DefaultStyleConfiguration config; DefaultNodeStyle( DefaultStyleConfiguration configuration ) { this.config = configuration; } @Override public void emitNodeStart( Appendable stream, Node node ) throws IOExceptio...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_DefaultNodeStyle.java
1,880
private static class PatternParser { private final String pattern; PatternParser( String pattern ) { this.pattern = pattern; } String parse( PropertyContainer container ) { StringBuilder result = new StringBuilder(); for ( in...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_ConfigurationParser.java
1,881
private static class LineIterator extends PrefetchingIterator<String> { private final BufferedReader reader; public LineIterator( BufferedReader reader ) { this.reader = reader; } public LineIterator( File file ) { this( fileReader( file ...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_ConfigurationParser.java
1,882
styles.add( new StyleParameter.NodePropertyFilter() { public boolean acceptProperty(String key) { return Arrays.asList(nodePropertiesString.split(",")).contains(key); } });
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_ConfigurationParser.java
1,883
{ public String getTitle( Relationship container ) { return parser.parse( container ); } } );
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_ConfigurationParser.java
1,884
{ public String getTitle( Node container ) { return parser.parse( container ); } } );
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_ConfigurationParser.java
1,885
public class ConfigurationParser { @SuppressWarnings( "unchecked" ) public ConfigurationParser( File configFile, String... format ) { this( IteratorUtil.asIterable( new CombiningIterator<String>( Arrays.asList( new LineIterator( configFile ), new ArrayIterator<String>( format ) ) ) )...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_ConfigurationParser.java
1,886
public class AsciidocHelperTest { @Test public void test() { String cypher = "start n=node(0) " + "match " + "x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, " + "x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n, x-n...
false
community_graphviz_src_test_java_org_neo4j_visualization_graphviz_AsciidocHelperTest.java
1,887
public class AsciiDocStyle extends GraphStyle { static final Simple SIMPLE_PROPERTY_STYLE = StyleParameter.Simple.PROPERTY_AS_KEY_EQUALS_VALUE; static final DefaultStyleConfiguration PLAIN_STYLE = new DefaultStyleConfiguration( SIMPLE_PROPERTY_STYLE ); public AsciiDocStyle() { super...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_AsciiDocStyle.java
1,888
public class AsciiDocSimpleStyle extends AsciiDocStyle { private AsciiDocSimpleStyle() { this( false, true ); } private AsciiDocSimpleStyle( NodeStyle nodeStyle, RelationshipStyle edgeStyle ) { super( nodeStyle, edgeStyle ); } private AsciiDocSimpleStyle( boolea...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_AsciiDocSimpleStyle.java
1,889
public class AsciidocHelper { /** * Cut to max 123 chars for PDF layout compliance. Or even less, for * readability. */ private static final int MAX_CHARS_PER_LINE = 100; /** * Cut text message line length for readability. */ private static final int MAX_TEXT_LINE_LENGTH = 80; ...
false
community_graphviz_src_main_java_org_neo4j_visualization_asciidoc_AsciidocHelper.java
1,890
public class Visualizer<E extends Throwable> implements Visitor<Void, E> { private final GraphRenderer<E> renderer; private Set<Relationship> visitedRelationships = new HashSet<Relationship>(); private Set<Node> visitedNodes = new HashSet<Node>(); /** * Creates a new visualizer. * @param renderer * ...
false
community_graphviz_src_main_java_org_neo4j_visualization_Visualizer.java
1,891
public final class GraphvizWriter { private final GraphStyle style; /** * Create a new Graphviz writer. * @param configuration * the style parameters determining how the style of the output * of this writer. */ public GraphvizWriter( StyleParameter... configuration ) { this( new G...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_GraphvizWriter.java
1,892
public class SimpleNodeStyle extends DefaultNodeStyle { boolean hasLabels = false; SimpleNodeStyle( DefaultStyleConfiguration configuration ) { super( configuration ); } @Override public void emitNodeStart( Appendable stream, Node node ) throws IOException { str...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_SimpleNodeStyle.java
1,893
public abstract class SubgraphMappingWalker extends Walker { private final SubgraphMapper mapper; protected SubgraphMappingWalker( SubgraphMapper mapper ) { this.mapper = mapper; } private Map<String, Collection<Node>> subgraphs; private Collection<N...
false
community_graphviz_src_main_java_org_neo4j_visualization_SubgraphMapper.java
1,894
final class DefaultNodeProperty implements StyleParameter { private final String property; private final String value; /** * Add a property to the general node configuration. * @param property * the property key. * @param value * the property value. */ public DefaultNo...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_StyleParameter.java
1,895
abstract class RelationshipTailLabel implements StyleParameter { public void configure( StyleConfiguration configuration ) { configuration.setRelationshipParameterGetter( "taillabel", new ParameterGetter<Relationship>() { public String getParameterValue( Relationship container, ...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_StyleParameter.java
1,896
abstract class RelationshipPropertyFormat implements StyleParameter, PropertyFormatter { public final void configure( StyleConfiguration configuration ) { configuration.setRelationshipPropertyFomatter( this ); } }
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_StyleParameter.java
1,897
abstract class RelationshipPropertyFilter implements StyleParameter, PropertyFilter { public final void configure( StyleConfiguration configuration ) { configuration.setRelationshipPropertyFilter( this ); } }
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_StyleParameter.java
1,898
{ public String getParameterValue( Relationship container, String key ) { return getHeadLabel( container ); } } );
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_StyleParameter.java
1,899
abstract class RelationshipHeadLabel implements StyleParameter { public void configure( StyleConfiguration configuration ) { configuration.setRelationshipParameterGetter( "headlabel", new ParameterGetter<Relationship>() { public String getParameterValue( Relationship container, ...
false
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_StyleParameter.java