Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: removed vector indexes and renamed properly to ensure right dime… #178

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from .base_models import BaseNode, ContainsRelationship
from neomodel import RelationshipFrom, RelationshipTo, StringProperty,ZeroOrMore,One,ArrayProperty,VectorIndex,FloatProperty

class ConfluenceClass(BaseNode):
"""Represents a class in a package"""
class_name = StringProperty(required=True)
class_implementation_summary = StringProperty(default="")
class_objective = StringProperty(default="")
class_objective_embedding = ArrayProperty(FloatProperty())
class_implementation_summary_embedding = ArrayProperty(FloatProperty())
# Class relationships
package = RelationshipFrom('ConfluencePackage', 'CONTAINS', model=ContainsRelationship, cardinality=One)
methods = RelationshipTo('ConfluenceMethod', 'CONTAINS', model=ContainsRelationship, cardinality=ZeroOrMore)
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from neomodel import (
StringProperty,
RelationshipTo,
RelationshipFrom,
ZeroOrMore,
One,
ArrayProperty,
VectorIndex,
FloatProperty
)
from .base_models import BaseNode, ContainsRelationship

class ConfluenceCodebase(BaseNode):
"""Represents a codebase in the system"""
codebase_summary = StringProperty(default="")
codebase_objective = StringProperty(default="")
codebase_objective_embedding = ArrayProperty(FloatProperty())
codebase_implementation_embedding = ArrayProperty(FloatProperty())
# One codebase can contain multiple packages
packages = RelationshipTo('ConfluencePackage', 'CONTAINS', model=ContainsRelationship, cardinality=ZeroOrMore)



Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from .base_models import BaseNode, ContainsRelationship
from neomodel import RelationshipFrom, StringProperty,One,ArrayProperty,VectorIndex,FloatProperty

class ConfluenceMethod(BaseNode):
"""Represents a method in a class"""
function_name = StringProperty(required=True)
function_implementation_summary = StringProperty(default="")
function_objective = StringProperty(default="")
function_objective_embedding = ArrayProperty(FloatProperty())
function_summary_embedding = ArrayProperty(FloatProperty())
# Method relationships
confluence_class = RelationshipFrom('ConfluenceClass', 'CONTAINS', model=ContainsRelationship, cardinality=One)
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from .base_models import BaseNode, ContainsRelationship
from neomodel import RelationshipFrom, RelationshipTo, StringProperty,ZeroOrMore,One,ArrayProperty,VectorIndex,FloatProperty

class ConfluencePackage(BaseNode):
"""Represents a package in the codebase"""
package_objective = StringProperty(required=True)
package_implementation_summary = StringProperty(required=True,default="")

package_objective_embedding = ArrayProperty(FloatProperty())
package_implementation_summary_embedding = ArrayProperty(FloatProperty())
confluence_codebase = RelationshipFrom('ConfluenceCodebase', 'CONTAINS', model=ContainsRelationship, cardinality=One)
sub_packages = RelationshipTo('ConfluencePackage', 'CONTAINS', model=ContainsRelationship, cardinality=ZeroOrMore)
classes = RelationshipTo('ConfluenceClass', 'CONTAINS', model=ContainsRelationship, cardinality=ZeroOrMore)

This file was deleted.

This file was deleted.

Loading