90a28005e448fa1240ca0c0c77c690e47fc1a5be,engine/logging.py,,image3_animatedGIF,#,30

Before Change



def image3_animatedGIF(tag,x):
  //x=numpy.random.randint(0,256,[10,10,10],numpy.uint8)
  ims=[GIF.fromarray(np.asarray((x[0,i,:,:,0]).astype(np.uint8))) for i in range(x.shape[3])]
  s=b""
  for b in PIL.GifImagePlugin.getheader(ims[0])[0]:
    s+=b
  s+=b"\x21\xFF\x0B\x4E\x45\x54\x53\x43\x41\x50\x45\x32\x2E\x30\x03\x01\x00\x00\x00"
  for i in ims:
    for b in PIL.GifImagePlugin.getdata(i):
      s+=b

After Change


def image3_animatedGIF(tag,ims):
  //x=numpy.random.randint(0,256,[10,10,10],numpy.uint8)
  ims = [np.asarray((ims[i,:,:]).astype(np.uint8)) for i in range(ims.shape[0])]
  ims=[GIF.fromarray(im) for im in ims]
  s=b""
  for b in PIL.GifImagePlugin.getheader(ims[0])[0]:
    s+=b
  s+=b"\x21\xFF\x0B\x4E\x45\x54\x53\x43\x41\x50\x45\x32\x2E\x30\x03\x01\x00\x00\x00"
  for i in ims:
    for b in PIL.GifImagePlugin.getdata(i):
      s+=b
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 2

Instances


Project Name: NifTK/NiftyNet
Commit Name: 90a28005e448fa1240ca0c0c77c690e47fc1a5be
Time: 2017-07-06
Author: eli.gibson@gmail.com
File Name: engine/logging.py
Class Name:
Method Name: image3_animatedGIF


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 7c57e6f2de0795edef5aed8cbcebb1243ba86191
Time: 2018-02-23
Author: nstm101339@gmail.com
File Name: lib/reconstruct.py
Class Name:
Method Name: image_tta


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 96d99ac0a6b0810147d8d6e2647be926a131457e
Time: 2018-02-25
Author: tsurumeso@gmail.com
File Name: lib/reconstruct.py
Class Name:
Method Name: image_tta


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 97aeda2a947c44cdef91d9276c2c38c02f37cda1
Time: 2017-02-08
Author: nstm101339@gmail.com
File Name: lib/iproc.py
Class Name:
Method Name: array_to_wand


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 7c57e6f2de0795edef5aed8cbcebb1243ba86191
Time: 2018-02-23
Author: nstm101339@gmail.com
File Name: lib/reconstruct.py
Class Name:
Method Name: image