code: func (s *RepositoriesService) ListCodeFrequency(ctx context.Context, owner, repo string) ([]*WeeklyStats, *Response, error) {
  	u := fmt.Sprintf("repos/%v/%v/stats/code_frequency", owner, repo)
  	req, err := s.client.NewRequest("GET", u, nil)
  	if err != nil {
  		return nil, nil, err
  	}
  
  	var weeks [][]int
  	resp, err := s.client.Do(ctx, req, &weeks)
  
  	// convert int slices into WeeklyStats
  	var stats []*WeeklyStats
  	for _, week := range weeks {
  		if len(week) != 3 {
  			continue
  		}
  		stat := &WeeklyStats{
  			Week:      &Timestamp{time.Unix(int64(week[0]), 0)},
  			Additions: Int(week[1]),
  			Deletions: Int(week[2]),
  		}
  		stats = append(stats, stat)
  	}
  
  	return stats, resp, err
  }
docs: // ListCodeFrequency returns a weekly aggregate of the number of additions and
  // deletions pushed to a repository. Returned WeeklyStats will contain
  // additions and deletions, but not total commits.
  //
  // If this is the first time these statistics are requested for the given
  // repository, this method will return an *AcceptedError and a status code of
  // 202. This is because this is the status that GitHub returns to signify that
  // it is now computing the requested statistics. A follow up request, after a
  // delay of a second or so, should result in a successful request.
  //
  // GitHub API docs: https://developer.github.com/v3/repos/statistics/#code-frequency