





'''simple docstring'''




class 				__snake_case     :





	def __init__(		self      ,       UpperCamelCase_		)      ->		None:
		snake_case__	       =   set_counts
		snake_case__	       =   max(UpperCamelCase_		)
		snake_case__	       =   len(UpperCamelCase_		)
		snake_case__	       =   [1] * num_sets
		snake_case__	       =   list(range(UpperCamelCase_		)		)





	def   _snake_case   (		self      ,       UpperCamelCase_      ,       UpperCamelCase_		)      ->		bool:
		snake_case__	       =   self.get_parent(UpperCamelCase_		)
		snake_case__	       =   self.get_parent(UpperCamelCase_		)

		if src_parent == dst_parent:
			return False

		if self.ranks[dst_parent] >= self.ranks[src_parent]:
			self.set_counts[dst_parent] += self.set_counts[src_parent]
			snake_case__	       =   0
			snake_case__	       =   dst_parent
			if self.ranks[dst_parent] == self.ranks[src_parent]:
				self.ranks[dst_parent] += 1
			snake_case__	       =   self.set_counts[dst_parent]
		else:
			self.set_counts[src_parent] += self.set_counts[dst_parent]
			snake_case__	       =   0
			snake_case__	       =   src_parent
			snake_case__	       =   self.set_counts[src_parent]

		snake_case__	       =   max(self.max_set      ,       UpperCamelCase_		)
		return True





	def   _snake_case   (		self      ,       UpperCamelCase_		)      ->		int:
		if self.parents[disj_set] == disj_set:
			return disj_set
		snake_case__	       =   self.get_parent(self.parents[disj_set]		)
		return self.parents[disj_set]










'''simple docstring'''




import requests
from bsa import BeautifulSoup




def 						__lowerCamelCase			(	UpperCAmelCase_					,				UpperCAmelCase_							)   ->str:
	snake_case__	       =   BeautifulSoup(requests.get(UpperCAmelCase_					,				params=UpperCAmelCase_							).content					,				'html.parser'							)
	snake_case__	       =   soup.find('div'					,				attrs={'class': 'gs_ri'}							)
	snake_case__	       =   div.find('div'					,				attrs={'class': 'gs_fl'}							).find_all('a'							)
	return anchors[2].get_text()


if __name__ == "__main__":
			a__					:			int          =     {
			    '''title''': (
			        '''Precisely geometry controlled microsupercapacitors for ultrahigh areal '''
			        '''capacitance, volumetric capacitance, and energy density'''
			    ),
			    '''journal''': '''Chem. Mater.''',
			    '''volume''': 30,
			    '''pages''': '''3979-3990''',
			    '''year''': 2018,
			    '''hl''': '''en''',
			}
			print(get_citation('''https://scholar.google.com/scholar_lookup''', params=params))



