4fb4a93987cb9f8aa9475dd8ee1954f5e4f5d935,prepare/cutter.py,,cutByWords,#,163
Before Change
chunkList.append(lastChunk)
// Make the list of lists of strings into a list of strings
stringList = ["".join(subList) for subList in chunkList]
return stringList
def cutByLines(text, chunkSize, overlap, lastProp):
After Change
// Make the list of lists of strings into a list of strings
countSubList = 0
stringList=[]
for subList in chunkList:
stringList.extend(["".join(subList)])
if type(subList) is ListType:
countSubList+=1
// Prevent there isn"t subList inside chunkList
if countSubList==0:
stringList = []
stringList.extend(["".join(chunkList)])
return stringList
def cutByLines(text, chunkSize, overlap, lastProp):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 25
Instances
Project Name: WheatonCS/Lexos
Commit Name: 4fb4a93987cb9f8aa9475dd8ee1954f5e4f5d935
Time: 2015-06-05
Author: jingxian.liu@gmail.com
File Name: prepare/cutter.py
Class Name:
Method Name: cutByWords
Project Name: WheatonCS/Lexos
Commit Name: 4fb4a93987cb9f8aa9475dd8ee1954f5e4f5d935
Time: 2015-06-05
Author: jingxian.liu@gmail.com
File Name: prepare/cutter.py
Class Name:
Method Name: cutByLines
Project Name: WheatonCS/Lexos
Commit Name: 4fb4a93987cb9f8aa9475dd8ee1954f5e4f5d935
Time: 2015-06-05
Author: jingxian.liu@gmail.com
File Name: prepare/cutter.py
Class Name:
Method Name: cutByWords
Project Name: WheatonCS/Lexos
Commit Name: cd562605a9dbb998ac4cef45e2faa152b330f96a
Time: 2015-06-08
Author: jingxian.liu@gmail.com
File Name: prepare/cutter.py
Class Name:
Method Name: cutByCharacters