original_docstring: 
      Create a fake example event data
      
docstring: Create a fake example event data
docstring_tokens: Create a fake example event data
code: def _get_example_event() -> EventIngestionModel:
      """
      Create a fake example event data
      """
      # Create a body for the event
      body = Body(
          name=f"Example Committee {random.randint(*RAND_BODY_RANGE)}",
          description="Example Description",
      )
  
      # Create sessions for the event
      sessions = [
          Session(
              session_datetime=datetime.utcnow() + (i * timedelta(hours=3)),
              session_index=i,
              video_uri=session[0],
              caption_uri=session[1],
          )
          for i, session in enumerate(random.sample(SESSIONS, random.randint(1, 3)))
      ]
  
      # Get a number of event minutes items for the event
      num_event_minutes_items = random.randint(*RAND_EVENT_MINUTES_ITEMS_RANGE)
  
      # Get the decision for each event minutes item
      event_minutes_item_decisions = random.choices(
          ALL_EVENT_MINUTES_ITEM_DECISIONS, k=num_event_minutes_items
      )
  
      # Get the majority number of votes for each event minutes item
      vote_majority_nums = random.choices(
          range(NUM_COUNCIL_SEATS // 2 + 1, NUM_COUNCIL_SEATS + 1),
          k=num_event_minutes_items,
      )
  
      # Get the vote decisions for each event minutes item
      vote_decisions = [
          [
              *random.choices(
                  PASSING_VOTE_DECISIONS
                  if event_minutes_item_decisions[i] == EventMinutesItemDecision.PASSED
                  else FAILING_VOTE_DECISIONS,
                  k=vote_majority_nums[i],
              ),
              *random.choices(
                  FAILING_VOTE_DECISIONS
                  if event_minutes_item_decisions[i] == EventMinutesItemDecision.PASSED
                  else PASSING_VOTE_DECISIONS,
                  k=NUM_COUNCIL_SEATS - vote_majority_nums[i],
              ),
          ]
          for i in range(num_event_minutes_items)
      ]
  
      # Get a matter number for each event minutes item
      matter_nums = random.sample(
          range(RAND_MATTER_RANGE[0], RAND_MATTER_RANGE[1] + 1),
          num_event_minutes_items,
      )
  
      # Bin/discretize matter num.
      # The bin num for each matter are used to
      # determine the matter type and sponsor of the matter
      bins = range(0, RAND_MATTER_RANGE[1], RAND_MATTER_RANGE[1] // NUM_COUNCIL_SEATS)
      bin_nums = [bisect_left(bins, matter_num) for matter_num in matter_nums]
  
      # Create a list of event minutes item for the event
      event_minutes_items = [
          EventMinutesItem(
              minutes_item=MinutesItem(
                  name=f"Example Minutes Item {matter_nums[i]}",
                  description="Example Description",
              ),
              matter=Matter(
                  name=f"Example Matter {matter_nums[i]}",
                  matter_type=f"Example Matter Type {bin_nums[i]}",
                  title="Example Matter Title",
                  result_status=MatterStatusDecision.IN_PROGRESS,
                  sponsors=[_get_example_person(bin_nums[i])],
              ),
              supporting_files=[
                  SupportingFile(
                      name=f"Example Supporting File Name {file_num}",
                      uri=DUMMY_FILE_URI,
                  )
                  for file_num in range(1, random.randint(1, 5) + 1)
              ],
              decision=event_minutes_item_decisions[i],
              votes=[
                  Vote(
                      person=_get_example_person(seat_num),
                      decision=vote_decisions[i][seat_num - 1],
                  )
                  for seat_num in range(1, NUM_COUNCIL_SEATS + 1)
              ],
          )
          for i in range(num_event_minutes_items)
      ]
  
      # Insert a non-matter event minutes item
      event_minutes_items.insert(
          0,
          EventMinutesItem(
              minutes_item=MinutesItem(
                  name="Approval of Agenda", description="Example Description"
              )
          ),
      )
  
      return EventIngestionModel(
          body=body,
          sessions=sessions,
          event_minutes_items=event_minutes_items,
          agenda_uri=DUMMY_FILE_URI,
          minutes_uri=DUMMY_FILE_URI,
      )
code_tokens: def _get_example_event ( ) -> EventIngestionModel : body = Body ( name = f"Example Committee {random.randint(*RAND_BODY_RANGE)}" , description = "Example Description" , ) sessions = [ Session ( session_datetime = datetime . utcnow ( ) + ( i * timedelta ( hours = 3 ) ) , session_index = i , video_uri = session [ 0 ] , caption_uri = session [ 1 ] , ) for i , session in enumerate ( random . sample ( SESSIONS , random . randint ( 1 , 3 ) ) ) ] num_event_minutes_items = random . randint ( * RAND_EVENT_MINUTES_ITEMS_RANGE ) event_minutes_item_decisions = random . choices ( ALL_EVENT_MINUTES_ITEM_DECISIONS , k = num_event_minutes_items ) vote_majority_nums = random . choices ( range ( NUM_COUNCIL_SEATS // 2 + 1 , NUM_COUNCIL_SEATS + 1 ) , k = num_event_minutes_items , ) vote_decisions = [ [ * random . choices ( PASSING_VOTE_DECISIONS if event_minutes_item_decisions [ i ] == EventMinutesItemDecision . PASSED else FAILING_VOTE_DECISIONS , k = vote_majority_nums [ i ] , ) , * random . choices ( FAILING_VOTE_DECISIONS if event_minutes_item_decisions [ i ] == EventMinutesItemDecision . PASSED else PASSING_VOTE_DECISIONS , k = NUM_COUNCIL_SEATS - vote_majority_nums [ i ] , ) , ] for i in range ( num_event_minutes_items ) ] matter_nums = random . sample ( range ( RAND_MATTER_RANGE [ 0 ] , RAND_MATTER_RANGE [ 1 ] + 1 ) , num_event_minutes_items , ) bins = range ( 0 , RAND_MATTER_RANGE [ 1 ] , RAND_MATTER_RANGE [ 1 ] // NUM_COUNCIL_SEATS ) bin_nums = [ bisect_left ( bins , matter_num ) for matter_num in matter_nums ] event_minutes_items = [ EventMinutesItem ( minutes_item = MinutesItem ( name = f"Example Minutes Item {matter_nums[i]}" , description = "Example Description" , ) , matter = Matter ( name = f"Example Matter {matter_nums[i]}" , matter_type = f"Example Matter Type {bin_nums[i]}" , title = "Example Matter Title" , result_status = MatterStatusDecision . IN_PROGRESS , sponsors = [ _get_example_person ( bin_nums [ i ] ) ] , ) , supporting_files = [ SupportingFile ( name = f"Example Supporting File Name {file_num}" , uri = DUMMY_FILE_URI , ) for file_num in range ( 1 , random . randint ( 1 , 5 ) + 1 ) ] , decision = event_minutes_item_decisions [ i ] , votes = [ Vote ( person = _get_example_person ( seat_num ) , decision = vote_decisions [ i ] [ seat_num - 1 ] , ) for seat_num in range ( 1 , NUM_COUNCIL_SEATS + 1 ) ] , ) for i in range ( num_event_minutes_items ) ] event_minutes_items . insert ( 0 , EventMinutesItem ( minutes_item = MinutesItem ( name = "Approval of Agenda" , description = "Example Description" ) ) , ) return EventIngestionModel ( body = body , sessions = sessions , event_minutes_items = event_minutes_items , agenda_uri = DUMMY_FILE_URI , minutes_uri = DUMMY_FILE_URI , )
short_docstring: Create a fake example event data
short_docstring_tokens: Create a fake example event data
comment: """
      Create a fake example event data
      """$SEP$# Create a body for the event$SEP$# Create sessions for the event$SEP$# Get a number of event minutes items for the event$SEP$# Get the decision for each event minutes item$SEP$# Get the majority number of votes for each event minutes item$SEP$# Get the vote decisions for each event minutes item$SEP$# Get a matter number for each event minutes item$SEP$# Bin/discretize matter num.$SEP$# The bin num for each matter are used to$SEP$# determine the matter type and sponsor of the matter$SEP$# Create a list of event minutes item for the event$SEP$# Insert a non-matter event minutes item