<commit_before>if (req.isAuthenticated()) {
  new User({ google: profile.sub })
    .fetch()
    .then(function(user) {
      if (user) {
        return res.status(409).send({ msg: 'There is already an existing account linked with Google that belongs to you.' });
      }
      user = req.user;
      user.set('name', user.get('name') || profile.name);
      user.set('gender', user.get('gender') || profile.gender);
      user.set('picture', user.get('picture') || profile.picture.replace('sz=50', 'sz=200'));
      user.set('location', user.get('location') || profile.location);
      user.set('google', profile.id);
      user.save(user.changed, { patch: true }).then(function() {
        res.send({ token: generateToken(user), user: user });<commit_msg>fixed google jwt sql profile id reference<commit_after>if (req.isAuthenticated()) {
  new User({ google: profile.sub })
    .fetch()
    .then(function(user) {
      if (user) {
        return res.status(409).send({ msg: 'There is already an existing account linked with Google that belongs to you.' });
      }
      user = req.user;
      user.set('name', user.get('name') || profile.name);
      user.set('gender', user.get('gender') || profile.gender);
      user.set('picture', user.get('picture') || profile.picture.replace('sz=50', 'sz=200'));
      user.set('location', user.get('location') || profile.location);
      user.set('google', profile.sub);
      user.save(user.changed, { patch: true }).then(function() {
        res.send({ token: generateToken(user), user: user });
{'fraction_non_alphanumeric': 0.1879455605962411, 'fraction_numerical': 0.010369410239792612, 'mean_word_length': 3.398860398860399, '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': '2493689', 'n_tokens_mistral': 472, 'n_tokens_neox': 461, 'n_words': 110}