<commit_before>#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Get rietveld stats about the review you done, or forgot to do.

Example:
  - my_reviews.py -o <EMAIL> -Q  for stats for last quarter.
"""
import datetime
import optparse
import os
import sys

import rietveld


def username(email):
  return email.split('@', 1)[0]


def print_reviews(reviewer, created_after, created_before, instance_url):
  """Prints issues the dude reviewed."""
  remote = rietveld.Rietveld(instance_url, None, None)
  total = 0
  actually_reviewed = 0

  # See def search() in rietveld.py to see all the filters you can use.
  for issue in remote.search(<commit_msg>Fix use of obsolete flag -o to -r<commit_after>#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""Get rietveld stats about the review you done, or forgot to do.

Example:
  - my_reviews.py -r <EMAIL> -Q  for stats for last quarter.
"""
import datetime
import optparse
import os
import sys

import rietveld


def username(email):
  return email.split('@', 1)[0]


def print_reviews(reviewer, created_after, created_before, instance_url):
  """Prints issues the dude reviewed."""
  remote = rietveld.Rietveld(instance_url, None, None)
  total = 0
  actually_reviewed = 0

  # See def search() in rietveld.py to see all the filters you can use.
  for issue in remote.search(
{'fraction_non_alphanumeric': 0.09226932668329177, 'fraction_numerical': 0.00997506234413965, 'mean_word_length': 4.047169811320755, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '565121', 'n_tokens_mistral': 531, 'n_tokens_neox': 502, 'n_words': 210}