<commit_before>// First, we set a Participant Delegate when a Participant first connects: 

// MARK: TVIRoomDelegate

func room(_ room: TVIRoom, participantDidConnect participant: TVIParticipant) {
	print("Participant connected: \(participant.identity!)")
	participant.delegate = self
}

/* In the Participant Delegate, we can respond when the Participant adds a Video
Track by rendering it on screen: */

// MARK: TVIParticipantDelegate

func participant(_ participant: TVIParticipant, addedVideoTrack videoTrack: TVIVideoTrack) {
	print("Participant \(participant.identity) added video track")
    
	self.remoteMediaView = TVIVideoView.init(frame: self.view.bounds, delegate:self)
    
	videoTrack.addRenderer(self.remoteMediaView)
}


// Lastly, we can subscribe to important events on the Video View

// MARK: TVIVideoViewDelegate

func videoView(_ view: TVIVideoView, videoDimensionsDidChange dimensions: CMVideoDimensions) {
    print("The dimensions of the video track changed to: \(dimensions.width)x\(dimensions.height)")
    self.view.setNeedsLayout()<commit_msg>using consistent variable names between swift and obj-c (#298)<commit_after>// First, we set a Participant Delegate when a Participant first connects: 

// MARK: TVIRoomDelegate

func room(_ room: TVIRoom, participantDidConnect participant: TVIParticipant) {
	print("Participant connected: \(participant.identity!)")
	participant.delegate = self
}

/* In the Participant Delegate, we can respond when the Participant adds a Video
Track by rendering it on screen: */

// MARK: TVIParticipantDelegate

func participant(_ participant: TVIParticipant, addedVideoTrack videoTrack: TVIVideoTrack) {
	print("Participant \(participant.identity) added video track")
    
	self.remoteView = TVIVideoView.init(frame: self.view.bounds, delegate:self)
    
	videoTrack.addRenderer(self.remoteView)
}


// Lastly, we can subscribe to important events on the Video View

// MARK: TVIVideoViewDelegate

func videoView(_ view: TVIVideoView, videoDimensionsDidChange dimensions: CMVideoDimensions) {
    print("The dimensions of the video track changed to: \(dimensions.width)x\(dimensions.height)")
    self.view.setNeedsLayout()
{'fraction_non_alphanumeric': 0.08970251716247139, 'fraction_numerical': 0.0013729977116704805, 'mean_word_length': 5.317919075144508, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6542690', 'n_tokens_mistral': 644, 'n_tokens_neox': 607, 'n_words': 195}