<commit_before>from sqlalchemy import text
from sqlalchemy import orm
from sqlalchemy.dialects.postgresql import JSONB

from app import db
from jobs import update_registry
from jobs import Update

from models.product import Product
from models.person import Person

q = db.session.query(Person.id)
q = q.filter(Person.orcid_id != None)
update_registry.register(Update(
    job=Person.refresh,
    query=q
))


q = db.session.query(Person.id)
update_registry.register(Update(
    job=Person.set_first_name,
    query=q
))
q = db.session.query(Person.id)
update_registry.register(Update(
    job=Person.calculate,<commit_msg>start refresh where it left off.  TEMPORARY HACK.<commit_after>from sqlalchemy import text
from sqlalchemy import orm
from sqlalchemy.dialects.postgresql import JSONB

from app import db
from jobs import update_registry
from jobs import Update

from models.product import Product
from models.person import Person

q = db.session.query(Person.id)
q = q.filter(Person.orcid_id != None)
q = q.filter(Person.id > 'FQ') ######### TEMPORARY
update_registry.register(Update(
    job=Person.refresh,
    query=q
))


q = db.session.query(Person.id)
update_registry.register(Update(
    job=Person.set_first_name,
    query=q
))
q = db.session.query(Person.id)
update_registry.register(Update(
    job=Person.calculate,
{'fraction_non_alphanumeric': 0.09827456864216054, 'fraction_numerical': 0.0, 'mean_word_length': 5.009009009009009, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3456430', 'n_tokens_mistral': 442, 'n_tokens_neox': 429, 'n_words': 108}