<commit_before>(ns 
  damp.ekeko.aspectj
  (:refer-clojure :exclude [== type])
;  (:use [clojure.core.logic])
;  (:use [damp.ekeko logic])
  (:use [damp.ekeko])
  (:require [damp.ekeko.aspectj [reification :as aj] [ajdtastnode :as ajnode]]))

(defn
  make-query-views-aspectj-aware!
  []
  (intern 'damp.ekeko.gui 'label-provider-class baristaui.views.queryResult.AJDTLabelProvider))

(make-query-views-aspectj-aware!)



(comment
  
  (use 'damp.ekeko.aspectj)
  (in-ns 'damp.ekeko.aspectj)
  
  (ekeko* [?aspect ?pc] (aj/aspect-advice ?aspect ?pc))
  

  )




<commit_msg>Added some example queries.<commit_after>(ns 
  damp.ekeko.aspectj
  (:refer-clojure :exclude [== type])
;  (:use [clojure.core.logic])
  (:use [damp.ekeko logic])
  (:use [damp.ekeko])
  (:require [damp.ekeko.aspectj [reification :as aj] [ajdtastnode :as ajnode]]))

(defn
  make-query-views-aspectj-aware!
  []
  (intern 'damp.ekeko.gui 'label-provider-class baristaui.views.queryResult.AJDTLabelProvider))

(make-query-views-aspectj-aware!)



(comment
  
  (use 'damp.ekeko.aspectj)
  (in-ns 'damp.ekeko.aspectj)
  
  ;results from model elements
  (ekeko* [?aspect ?advice] (aj/aspect-advice ?aspect ?advice))
  
  (ekeko* [?aspect ?pc] (aj/aspect-pointcut ?aspect ?pc))
  
  (ekeko* [?key ?element] (aj/element ?key ?element))
  
  ;results from xcut model
  (ekeko* [?advice ?shadow] (aj/advice-shadow ?advice ?shadow))

  ;;all xcut relations and their type ... only 4 contain info for the test project
  ;;TODO: check on HealthWatcher, AJHotdraw
  (ekeko* [?xcut ?reltype ?rel] (aj/xcut-relationtype-relation ?xcut ?reltype ?rel))
  
  
  
  )





{'fraction_non_alphanumeric': 0.16605392156862744, 'fraction_numerical': 0.0006127450980392157, 'mean_word_length': 3.8456973293768546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3384974', 'n_tokens_mistral': 721, 'n_tokens_neox': 689, 'n_words': 132}