original_docstring: Code for donwloading a image, recieves a row from the dataset
  
      
docstring: Code for donwloading a image, recieves a row from the dataset
docstring_tokens: Code for donwloading a image recieves a row from the dataset
code: def downloadFromSrc(u):
      """Code for donwloading a image, recieves a row from the dataset
  
      """
      row = df.loc[u]
      imgClass = row['paintType'] + '/'
      url = row['src']
      filename = "../../data/interim/"+imgClass+str(u)+'.jpg'
      result = requests.get(url, stream=True)
      if result.status_code == 200:
          path = "../../data/interim/"+imgClass
          if not os.path.exists(path):
              os.mkdir(path)
          image = result.raw.read()
          open(filename,"wb").write(image)
code_tokens: def downloadFromSrc ( u ) : row = df . loc [ u ] imgClass = row [ 'paintType' ] + '/' url = row [ 'src' ] filename = "../../data/interim/" + imgClass + str ( u ) + '.jpg' result = requests . get ( url , stream = True ) if result . status_code == 200 : path = "../../data/interim/" + imgClass if not os . path . exists ( path ) : os . mkdir ( path ) image = result . raw . read ( ) open ( filename , "wb" ) . write ( image )
short_docstring: Code for donwloading a image, recieves a row from the dataset
short_docstring_tokens: Code for donwloading a image recieves a row from the dataset
comment: """Code for donwloading a image, recieves a row from the dataset
  
      """