Unnamed: 0
int64 0
6.7k
| func
stringlengths 12
89.6k
| target
bool 2
classes | project
stringlengths 45
151
|
|---|---|---|---|
6,700
|
interface TitleGetter<E extends PropertyContainer>
{
/**
* Get the title for a node or a relationship.
* @param container
* the node or relationship to get the title for.
* @return the title for the node/relationship.
*/
String getTitle( E container );
}
| false
|
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_TitleGetter.java
|
6,701
|
public enum NodeColorConfig
{
/**
* Alias for BOTH_IGNORE_DIRECTION.
*/
DEFAULT()
{
@Override
void configure( AutoNodeColor style )
{
BOTH_IGNORE_DIRECTION.configure( style );
}
},
/**
* Differentiate on relationship type and direction.
*/
BOTH()
{
@Override
void configure( AutoNodeColor style )
{
style.directions = new Direction[] { Direction.INCOMING,
Direction.OUTGOING };
style.differentiateOnDirection = true;
}
},
/**
* Differentiate on relationship type, ignore direction.
*/
BOTH_IGNORE_DIRECTION()
{
@Override
void configure( AutoNodeColor style )
{
style.directions = new Direction[] { Direction.INCOMING,
Direction.OUTGOING };
style.differentiateOnDirection = false;
}
},
/**
* Only look at incoming relationships.
*/
INCOMING()
{
@Override
void configure( AutoNodeColor style )
{
style.directions = new Direction[] { Direction.INCOMING };
style.differentiateOnDirection = false;
}
},
/**
* Only look at outgoing relationships.
*/
OUTGOING()
{
@Override
void configure( AutoNodeColor style )
{
style.directions = new Direction[] { Direction.OUTGOING };
style.differentiateOnDirection = false;
}
},
/**
* Differentiate only on if a node has incoming or outgoing
* relationships.
*/
DIRECTION()
{
@Override
void configure( AutoNodeColor style )
{
style.directions = new Direction[] { Direction.INCOMING,
Direction.OUTGOING };
style.differentiateOnDirectionOnly = true;
}
};
abstract void configure( AutoNodeColor style );
}
| false
|
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_color_AutoNodeColor.java
|
6,702
|
public enum Color
{
GREY( "#2e3436", "#888a85" ),
GREEN( "#4e9a06", "#73d216" ),
RED( "#a40000", "#cc0000" ),
BLUE( "#204a87", "#3465a4" ),
BROWN( "#8f5902", "#c17d11" ),
PURPLE( "#5c3566", "#75507b" ),
YELLOW( "#c4a000", "#edd400" ),
ORANGE( "#ce5c00", "#f57900" );
String dark;
String light;
Color( String dark, String light )
{
this.dark = dark;
this.light = light;
}
}
| false
|
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_color_Color.java
|
6,703
|
public interface ColorMapper<E>
{
/**
* Get color for an entity.
*
* @param entity entity to get color for
* @return color for entity
*/
Color getColor( E entity );
/**
* Colors to reserve - note that it will only be called once, any changes to
* the collection after that will have no effect.
*
* @return reserved colors
*/
Collection<Color> getColors();
}
| false
|
community_graphviz_src_main_java_org_neo4j_visualization_graphviz_color_ColorMapper.java
|
6,704
|
public interface Visitor<R, E extends Throwable>
{
void visitNode( Node node ) throws E;
void visitRelationship( Relationship relationship ) throws E;
Visitor<R, E> visitSubgraph( String name ) throws E;
R done() throws E;
}
| false
|
community_graphviz_src_main_java_org_neo4j_walk_Visitor.java
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.