
    _Og                     h    S r SSKJr   " S S\R                  5      r " S S\R                  5      rg)zRepository traffic stats logic.   )modelsc                   $    \ rS rSrSrS rS rSrg)
ViewsStats   a  The total number of repository views, per day or week, for the last 14
days.

See also https://developer.github.com/v3/repos/traffic/

.. note::

    Timestamps are aligned to UTC midnight of the beginning of the day or
    week. Week begins on Monday.

This object has the following attributes:

.. attribute:: count

    The total number of views.

.. attribute:: uniques

    The total number of unique views.

.. attribute:: views

    A list of dictionaries containing daily or weekly statistical data.

c                     US   U l         US   U l        US   U l        U R                  (       a+  U R                   H  nU R                  US   5      US'   M     g g )Ncountuniquesviews	timestamp)r   r	   r
   	_strptime)selfstats_objectviews      Z/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/github3/repos/traffic.py_update_attributesViewsStats._update_attributes    sX    !'*
#I.!'*
::

$(NN43D$E[! #     c                      SR                  U S9$ )Nz2<Views Statistics [{s.count}, {s.uniques} unique]>sformatr   s    r   _reprViewsStats._repr(   s    C
&4&.	r   )r   r	   r
   N__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes__ r   r   r   r      s    4Fr   r   c                   $    \ rS rSrSrS rS rSrg)ClonesStats.   a  The total number of repository clones, per day or week, for the last 14
days.

See also https://developer.github.com/v3/repos/traffic/

.. note::

    Timestamps are aligned to UTC midnight of the beginning of the day or
    week. Week begins on Monday.

This object has the following attributes:

.. attribute:: count

    The total number of clones.

.. attribute:: uniques

    The total number of unique clones.

.. attribute:: clones

    A list of dictionaries containing daily or weekly statistical data.

c                     US   U l         US   U l        US   U l        U R                  (       a+  U R                   H  nU R                  US   5      US'   M     g g )Nr   r	   clonesr   )r   r	   r(   r   )r   r   clones      r   r   ClonesStats._update_attributesI   sX    !'*
#I."8,;;%)^^E+4F%Gk" % r   c                      SR                  U S9$ )Nz3<Clones Statistics [{s.count}, {s.uniques} unique]>r   r   r   s    r   r   ClonesStats._reprQ   s    D
&4&.	r   )r(   r   r	   Nr   r#   r   r   r%   r%   .   s    4Hr   r%   N)r!    r   
GitHubCorer   r%   r#   r   r   <module>r/      s0    % &"" &R&&## &r   