<commit_before>def time_insertions(Run_Schedule, URID, pickUpDropOff = True):
	'''URID: of class URID, has bookingId, pickUpLocation, dropOffLocation, etc.
		Run_Schedule: Schedule (pd.Data.Frame) of the run on which we're trying to insert the URID

		RETURN: pd.Data.Frame corresponding to nodes with overlapping pickup/dropoff windows'''

	if pickUpDropOff:
	    Start = URID.PickupStart[0]
	    End = URID.PickupEnd[0]
	else:
	    Start = URID.DropoffStart[0]
	    End = URID.DropoffEnd[0]
	crossover = []
	for jj in range(Run_Schedule.shape[0]):
	    #Checking if a Run's PickupWindow overlaps with URID's Window.
	    if Run_Schedule.Activity.iloc[jj] == 0:
	        PUE = Run_Schedule.PickupEnd.iloc[jj]; PUS = Run_Schedule.PickupStart.iloc[jj]
	        #simple, unequal overlap
	        if (PUE > Start) & (PUS < End):
	            crossover.append(Run_Schedule.index[jj])
	        # equal or strictly within [PUS, PUE]<commit_msg>time_insertions.py has better documentation<commit_after>def time_insertions(Run_Schedule, URID, pickUpDropOff = True):
	'''URID: of class URID, has bookingId, pickUpLocation, dropOffLocation, etc.
		Run_Schedule: Schedule (pd.Data.Frame) of the run on which we're trying to insert the URID

		RETURN: pd.Data.Frame corresponding to nodes with overlapping pickup/dropoff windows'''

	#CURRENT ISSUES: RUNSCHEDULE SHOULD HAVE PRECEDING NODES, AT LEAST ONE PRIOR TO RESCHED_INIT_TIME

	if pickUpDropOff:
	    Start = URID.PickupStart[0]
	    End = URID.PickupEnd[0]
	else:
	    Start = URID.DropoffStart[0]
	    End = URID.DropoffEnd[0]
	crossover = []
	for jj in range(Run_Schedule.shape[0]):
	    #Checking if a Run's PickupWindow overlaps with URID's Window.
	    if Run_Schedule.Activity.iloc[jj] == 0:
	        PUE = Run_Schedule.PickupEnd.iloc[jj]; PUS = Run_Schedule.PickupStart.iloc[jj]
	        #simple, unequal overlap
	        if (PUE > Start) & (PUS < End):
	            crossover.append(Run_Schedule.index[jj])
	        # equal or strictly within [PUS, PUE]
{'fraction_non_alphanumeric': 0.1016949152542373, 'fraction_numerical': 0.005982053838484547, 'mean_word_length': 3.6244239631336406, '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': '5916032', 'n_tokens_mistral': 746, 'n_tokens_neox': 663, 'n_words': 183}