<commit_before>install.packages("devtools", dependencies = TRUE)
library(devtools)
devtools::install_github("nicolewhite/RNeo4j")
install.packages('RNeo4j')
library(RNeo4j)

graph = startGraph("http://localhost:7474/db/data/", username = 'neo4j', password = '<PASSWORD>')

cnt.tag.photo = cypher(graph, 'match (t:Tag)<--(p:Photo) return t.name, count(p) order by count(p) desc')

cnt.tag.photo<commit_msg>added some simple plots for exif data<commit_after>install.packages("devtools", dependencies = TRUE)
library(devtools)
devtools::install_github("nicolewhite/RNeo4j")
install.packages('RNeo4j')
library(RNeo4j)

install.packages('ggplot2')
library(ggplot2)

graph = startGraph("http://localhost:7474/db/data/", username = 'neo4j', password = '<PASSWORD>')

cnt.tag.photo = cypher(graph, 'match (t:Tag)<--(p:Photo) return t.name, count(p) order by count(p) desc')

cnt.exif.photo = cypher(graph, 'match (p:Photo)-[:HAS_EXIF]->(l:Lens) return l.name as exif, count(p) as numberOfPhotos order by count(p) desc')

cnt.exif.photo = cypher(graph, 'match (p:Photo)-[:HAS_EXIF]->(i:Iso) return i.name as exif, count(p) as numberOfPhotos order by count(p) desc')

bp<- ggplot(cnt.exif.photo, aes(x=exif, y=numberOfPhotos, fill=exif))+
  geom_bar(width = 1, stat = "identity")
bp

pie <- bp + coord_polar("x", start=0)
pie
{'fraction_non_alphanumeric': 0.1779467680608365, 'fraction_numerical': 0.015209125475285171, 'mean_word_length': 6.651162790697675, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '1037966', 'n_tokens_mistral': 514, 'n_tokens_neox': 494, 'n_words': 101}