Skip to content

Commit

Permalink
Merge pull request #192 from unoplat/191-refactor-simplify-properties…
Browse files Browse the repository at this point in the history
…-will-help-a-lot-in-custom-cypher-queries

fix: simplifying the names
  • Loading branch information
JayGhiya authored Oct 25, 2024
2 parents b7d5b0b + ea47cb6 commit 51ac37a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
class ConfluenceClass(BaseNode):
"""Represents a class in a package"""
class_name = StringProperty(required=True)
class_implementation_summary = StringProperty(default="")
class_objective = StringProperty(default="")
implementation_summary = StringProperty(default="")
objective = StringProperty(default="")
class_objective_embedding = ArrayProperty(FloatProperty())
class_implementation_summary_embedding = ArrayProperty(FloatProperty())
# Class relationships
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

class ConfluenceCodebase(BaseNode):
"""Represents a codebase in the system"""
codebase_implementation_summary = StringProperty(default="")
codebase_objective = StringProperty(default="")
implementation_summary = StringProperty(default="")
objective = StringProperty(default="")
codebase_objective_embedding = ArrayProperty(FloatProperty())
codebase_implementation_summary_embedding = ArrayProperty(FloatProperty())
# One codebase can contain multiple packages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
class ConfluenceMethod(BaseNode):
"""Represents a method in a class"""
function_name = StringProperty(required=True)
function_implementation_summary = StringProperty(default="")
function_objective = StringProperty(default="")
implementation_summary = StringProperty(default="")
objective = StringProperty(default="")
function_objective_embedding = ArrayProperty(FloatProperty())
function_implementation_summary_embedding = ArrayProperty(FloatProperty())
# Method relationships
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

class ConfluencePackage(BaseNode):
"""Represents a package in the codebase"""
package_objective = StringProperty(required=True)
package_implementation_summary = StringProperty(required=True)
objective = StringProperty(required=True)
implementation_summary = StringProperty(required=True)
package_objective_embedding = ArrayProperty(FloatProperty())
package_implementation_summary_embedding = ArrayProperty(FloatProperty())
confluence_codebase = RelationshipTo('.confluence_codebase.ConfluenceCodebase', 'BELONGS_TO', model=ContainsRelationship,cardinality=One)
Expand Down

0 comments on commit 51ac37a

Please sign in to comment.