Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 13.09 KB | None | 0 0
  1. s = """06.08.2013  11:38             5 346 bytemap.cpp
  2. 06.08.2013  11:38             1 822 bytemap.h
  3. 12.11.2014  15:45               997 color.cpp
  4. 12.11.2014  15:45               854 color.h
  5. 12.11.2014  14:24             2 039 coords.cpp
  6. 17.11.2014  15:02             1 182 coords.h
  7. 02.11.2014  10:40             2 098 functions.cpp
  8. 02.11.2014  10:40               630 functions.h
  9. 27.08.2014  15:59               608 kcolor.h
  10. 30.09.2014  15:45             2 461 kdate.cpp
  11. 15.12.2011  10:58               942 kdate.h
  12. 25.03.2014  19:01             2 660 kdir.cpp
  13. 25.03.2014  19:01             1 014 kdir.h
  14. 30.10.2014  11:02             1 812 kfile.cpp
  15. 30.10.2014  11:03               654 kfile.h
  16. 26.07.2014  10:14             3 212 masktype.cpp
  17. 26.07.2014  15:05             1 310 masktype.h
  18. 17.11.2014  14:53               685 matrix.cpp
  19. 17.11.2014  14:52               516 matrix.h
  20. 29.05.2014  13:39               460 point.h
  21. 29.05.2014  13:10             1 293 rect.cpp
  22. 29.05.2014  13:10               754 rect.h
  23. 29.05.2014  13:33             4 189 surface.cpp
  24. 29.05.2014  13:33             1 630 surface.h
  25. 26.08.2011  20:34             3 930 tarball.cpp
  26. 26.08.2011  20:34               867 tarball.h
  27. 20.11.2014  11:41             7 766 text.cpp
  28. 20.11.2014  11:38             2 026 text.h
  29. 30.10.2014  10:43             7 943 tileset.cpp
  30. 30.10.2014  10:43             1 667 tileset.h
  31. 21.07.2011  09:52               484 action.cpp
  32. 21.07.2011  10:17               504 action.h
  33. 26.10.2014  18:43             2 718 actmode.cpp
  34. 26.10.2014  18:43               987 actmode.h
  35. 25.10.2013  14:31               537 aimotiv.cpp
  36. 25.10.2013  14:31               739 aimotiv.h
  37. 25.08.2013  13:06               858 aitype.cpp
  38. 25.08.2013  13:06               717 aitype.h
  39. 20.07.2014  08:51             3 417 area.cpp
  40. 17.04.2014  16:55             1 003 area.h
  41. 15.11.2014  09:13               976 armtype.cpp
  42. 15.11.2014  09:13               662 armtype.h
  43. 25.10.2013  10:08             1 223 attack.cpp
  44. 03.10.2013  09:42               774 attack.h
  45. 31.05.2014  14:41             2 499 attr.cpp
  46. 31.05.2014  14:41               886 attr.h
  47. 08.09.2011  19:38             2 397 attstyle.cpp
  48. 08.09.2011  19:38               890 attstyle.h
  49. 22.11.2014  18:01            39 979 avatar.cpp
  50. 05.10.2014  13:55             2 562 avatar.h
  51. 13.11.2014  11:31             2 930 bltheme.cpp
  52. 03.11.2013  14:52             1 018 bltheme.h
  53. 26.10.2014  18:58             4 426 blueprnt.cpp
  54. 20.04.2013  09:59               843 blueprnt.h
  55. 02.11.2013  19:44             1 485 bodypart.cpp
  56. 02.11.2013  19:44               717 bodypart.h
  57. 20.07.2014  11:04             2 768 building.cpp
  58. 24.01.2014  17:07               874 building.h
  59. 26.10.2014  18:59             3 437 cavern.cpp
  60. 26.07.2014  10:05             1 183 cavern.h
  61. 10.10.2014  13:54             1 404 chat.cpp
  62. 10.10.2014  13:50               605 chat.h
  63. 30.09.2014  16:55    <DIR>          classes
  64. 16.11.2014  11:43            13 408 cmddata.cpp
  65. 16.11.2014  11:43             2 822 cmddata.h
  66. 02.10.2013  15:20             1 139 colltype.cpp
  67. 02.10.2013  15:20               738 colltype.h
  68. 27.10.2014  18:54             7 869 construc.cpp
  69. 27.07.2014  16:29             2 363 construc.h
  70. 05.10.2014  13:49             7 367 contain.cpp
  71. 04.10.2014  10:37             1 822 contain.h
  72. 21.03.2013  12:37               689 conttype.cpp
  73. 20.03.2013  18:56               578 conttype.h
  74. 16.03.2013  18:52               515 corptype.cpp
  75. 16.03.2013  18:52               575 corptype.h
  76. 20.07.2014  08:52             2 507 corr.cpp
  77. 20.07.2014  08:52               681 corr.h
  78. 24.06.2011  14:29             1 249 damage.cpp
  79. 22.06.2011  11:24               666 damage.h
  80. 21.11.2011  17:58    <DIR>          data
  81. 24.11.2014  17:53    <DIR>          Debug
  82. 22.07.2013  19:48    <DIR>          design
  83. 01.12.2013  14:58             1 983 dethtype.cpp
  84. 01.12.2013  14:58               797 dethtype.h
  85. 26.10.2014  19:01             1 906 dispmess.cpp
  86. 24.03.2014  19:27               634 dispmess.h
  87. 27.10.2014  18:55            10 249 door.cpp
  88. 27.07.2014  16:31             2 272 door.h
  89. 30.10.2014  16:32             7 979 dungeon.cpp
  90. 18.06.2014  15:41             1 287 dungeon.h
  91. 18.04.2014  19:20               550 envtype.cpp
  92. 18.04.2014  19:20               612 envtype.h
  93. 31.10.2014  11:56             3 934 equip.cpp
  94. 31.10.2014  11:56             1 093 equip.h
  95. 04.12.2011  19:59               918 figstyle.cpp
  96. 08.09.2011  11:15               745 figstyle.h
  97. 17.11.2014  15:07             2 441 filler.cpp
  98. 17.11.2014  15:01               759 filler.h
  99. 10.01.2014  13:42             1 625 flytype.cpp
  100. 10.01.2014  13:42               629 flytype.h
  101. 01.10.2013  08:58               991 foodtype.cpp
  102. 01.10.2013  08:58               703 foodtype.h
  103. 27.10.2014  18:56             4 548 form.cpp
  104. 27.07.2014  16:33             1 682 form.h
  105. 27.10.2014  18:58             3 987 fountain.cpp
  106. 27.07.2014  16:21             1 252 fountain.h
  107. 24.11.2014  14:22            10 713 game.cpp
  108. 30.10.2014  11:09             1 362 game.h
  109. 20.07.2014  18:34             4 910 gameview.cpp
  110. 13.07.2014  11:36             1 970 gameview.h
  111. 23.11.2014  22:48               442 gender.cpp
  112. 23.11.2014  22:48               617 gender.h
  113. 04.09.2011  13:11             1 201 genstat.cpp
  114. 04.09.2011  13:11               561 genstat.h
  115. 26.09.2014  16:31             1 947 golem.cpp
  116. 27.10.2014  19:02             5 220 grave.cpp
  117. 15.08.2014  20:06             1 270 grave.h
  118. 05.10.2014  09:39    <DIR>          grp
  119. 21.11.2014  18:17            32 391 gui.cpp
  120. 12.11.2014  15:39             7 090 gui.h
  121. 20.11.2014  11:55             1 327 handed.cpp
  122. 02.11.2013  19:49               704 handed.h
  123. 27.03.2014  12:13             4 107 help.cpp
  124. 27.03.2014  12:03               493 help.h
  125. 23.03.2013  17:24               607 herbtype.cpp
  126. 23.03.2013  17:24               513 herbtype.h
  127. 28.02.2012  17:31               641 humidity.cpp
  128. 28.02.2012  17:31               565 humidity.h
  129. 30.08.2014  13:37             1 561 imgdata.cpp
  130. 29.05.2014  15:52               648 imgdata.h
  131. 25.05.2014  21:50             3 218 imtype.cpp
  132. 25.05.2014  21:50             1 169 imtype.h
  133. 31.10.2014  12:13             5 727 invtype.cpp
  134. 31.10.2014  12:13             1 173 invtype.h
  135. 24.11.2014  17:30    <DIR>          ipch
  136. 27.10.2014  19:06            18 441 item.cpp
  137. 06.11.2014  14:13             3 168 item.h
  138. 27.10.2014  19:08             3 569 itemmenu.cpp
  139. 04.10.2014  10:37               896 itemmenu.h
  140. 04.04.2014  08:54             3 721 itemname.cpp
  141. 10.03.2013  12:36               879 itemname.h
  142. 15.08.2014  20:04             1 760 itempipe.cpp
  143. 15.08.2014  20:04               720 itempipe.h
  144. 01.06.2014  09:22            47 908 itemtype.cpp
  145. 01.04.2014  10:53             6 467 itemtype.h
  146. 21.09.2010  16:06         1 038 848 Kaduria.exe
  147. 21.09.2010  16:06         2 523 436 Kaduria.ilk
  148. 24.11.2014  17:53        14 319 616 Kaduria.sdf
  149. 21.09.2010  15:36               885 Kaduria.sln
  150. 19.11.2014  11:53            14 587 Kaduria.vcxproj
  151. 19.11.2014  11:53            29 189 Kaduria.vcxproj.filters
  152. 21.09.2010  15:36               143 Kaduria.vcxproj.user
  153. 21.11.2014  18:29            22 218 kaduria053_todo.txt
  154. 18.11.2014  14:57            21 598 kdebug.cpp
  155. 14.01.2014  14:03             1 687 kdebug.h
  156. 23.10.2012  16:19               480 kevent.cpp
  157. 23.10.2012  16:18               477 kevent.h
  158. 27.10.2014  19:19             5 070 keyboard.cpp
  159. 07.10.2014  14:48             1 227 keyboard.h
  160. 12.11.2014  14:34            13 395 kobj.cpp
  161. 12.11.2014  14:29             5 378 kobj.h
  162. 21.11.2014  09:59            85 647 level.cpp
  163. 21.11.2014  10:00            12 268 level.h
  164. 12.07.2014  17:11             2 078 lightso.cpp
  165. 12.07.2014  17:00               855 lightso.h
  166. 05.10.2014  11:27             2 596 liquid.cpp
  167. 05.10.2014  11:27               762 liquid.h
  168. 18.11.2014  15:12             1 823 locktype.cpp
  169. 18.11.2014  15:10               737 locktype.h
  170. 26.10.2014  19:11             7 360 lvlnode.cpp
  171. 09.11.2013  15:44             2 825 lvlnode.h
  172. 20.07.2014  08:55            18 896 lvltheme.cpp
  173. 20.07.2014  08:55             1 852 lvltheme.h
  174. 15.11.2014  10:09             5 826 material.cpp
  175. 15.11.2014  10:09             1 396 material.h
  176. 23.11.2014  22:42             4 798 menu.cpp
  177. 27.10.2013  17:04               994 menu.h
  178. 08.10.2014  12:04            30 167 mess.cpp
  179. 30.09.2014  16:37             2 888 mess.h
  180. 06.12.2011  22:25             7 214 monfam.cpp
  181. 06.12.2011  22:25             1 442 monfam.h
  182. 19.11.2014  12:17            56 853 monster.cpp
  183. 12.11.2014  20:34             6 980 monster.h
  184. 24.11.2014  17:51            26 168 montype.cpp
  185. 24.11.2014  17:52             2 539 montype.h
  186. 28.10.2014  15:56             9 121 movable.cpp
  187. 27.07.2014  16:37             2 356 movable.h
  188. 20.07.2014  10:58             1 910 mulcon.cpp
  189. 19.04.2011  19:19               640 mulcon.h
  190. 30.09.2014  16:27            27 596 names.cpp
  191. 30.09.2014  16:25             1 104 names.h
  192. 29.07.2013  13:22               493 objname.cpp
  193. 19.08.2012  21:48               298 objname.h
  194. 27.09.2013  11:17             1 393 objsize.cpp
  195. 27.09.2013  11:17               532 objsize.h
  196. 16.07.2014  17:51             2 677 objtype.cpp
  197. 16.07.2014  17:51               884 objtype.h
  198. 27.10.2014  18:52             4 248 opener.cpp
  199. 27.10.2014  18:52             1 518 opener.h
  200. 26.10.2014  19:13             4 729 options.cpp
  201. 26.09.2014  16:27             1 105 options.h
  202. 26.10.2014  19:14             1 428 passage.cpp
  203. 20.07.2014  08:55               360 passage.h
  204. 20.07.2014  11:02             3 182 pathfind.cpp
  205. 20.07.2014  09:01               530 pathfind.h
  206. 06.11.2014  14:08             6 026 place.cpp
  207. 26.07.2014  11:36             1 763 place.h
  208. 28.09.2011  11:58             2 316 placetype.cpp
  209. 28.09.2011  11:58             1 037 placetype.h
  210. 15.11.2014  10:09            15 227 plant.cpp
  211. 03.11.2014  17:09             3 512 plant.h
  212. 24.11.2014  17:50             5 720 prof.cpp
  213. 19.08.2014  19:47             1 175 prof.h
  214. 07.03.2013  12:53               583 projtype.cpp
  215. 07.03.2013  12:48               583 projtype.h
  216. 20.07.2014  08:57             2 490 river.cpp
  217. 20.07.2014  08:57               671 river.h
  218. 02.06.2014  20:26             1 857 rng.cpp
  219. 02.06.2014  20:26               705 rng.h
  220. 28.10.2014  15:58            26 254 room.cpp
  221. 20.07.2014  10:55             3 519 room.h
  222. 12.04.2013  08:56             2 157 roomshap.cpp
  223. 12.04.2013  08:56               793 roomshap.h
  224. 20.07.2014  08:58             6 153 roomtype.cpp
  225. 20.07.2014  08:58             1 227 roomtype.h
  226. 18.04.2013  12:50             1 404 roughloc.cpp
  227. 18.04.2013  12:28               684 roughloc.h
  228. 21.11.2014  22:00             1 550 score.cpp
  229. 21.11.2014  22:00               851 score.h
  230. 28.10.2014  16:00            10 938 scroll.cpp
  231. 30.09.2014  16:02             1 480 scroll.h
  232. 17.10.2009  10:41           324 096 SDL.dll
  233. 28.10.2014  16:01             2 277 sewer.cpp
  234. 28.10.2014  16:01             1 258 sewer.h
  235. 07.03.2013  12:51               596 shootype.cpp
  236. 06.03.2013  16:37               565 shootype.h
  237. 16.08.2014  08:33             1 549 shoptype.cpp
  238. 16.08.2014  08:33               663 shoptype.h
  239. 28.10.2014  16:01             2 852 sign.cpp
  240. 27.07.2014  16:41             1 314 sign.h
  241. 28.10.2014  16:02             2 170 skill.cpp
  242. 10.01.2014  13:17             1 053 skill.h
  243. 10.01.2014  13:13             1 250 skillvl.cpp
  244. 10.01.2014  13:13               807 skillvl.h
  245. 13.11.2014  11:29             8 571 spawner.cpp
  246. 11.01.2014  22:50             3 002 spawner.h
  247. 28.10.2014  16:04             5 697 stairs.cpp
  248. 27.07.2014  16:42             1 928 stairs.h
  249. 09.09.2014  21:29             3 345 stat.cpp
  250. 09.09.2014  21:26             1 262 stat.h
  251. 05.10.2014  11:30             3 631 state.cpp
  252. 05.10.2014  11:30             1 113 state.h
  253. 02.10.2013  12:37             2 066 style.cpp
  254. 02.10.2013  12:34               688 style.h
  255. 31.10.2014  12:19             1 995 target.cpp
  256. 23.08.2014  11:18               718 target.h
  257. 12.11.2014  20:26             1 673 tempera.cpp
  258. 13.11.2014  11:33               687 tempera.h
  259. 15.11.2014  10:01            11 680 terrtype.cpp
  260. 16.01.2014  12:20             2 541 terrtype.h
  261. 13.11.2014  11:33            11 586 tile.cpp
  262. 09.10.2014  13:09             3 017 tile.h
  263. 17.11.2014  15:14            29 310 tilemap.cpp
  264. 12.11.2014  15:52             4 753 tilemap.h
  265. 07.07.2014  14:36             3 707 tmtype.cpp
  266. 28.06.2014  10:42             1 146 tmtype.h
  267. 25.05.2014  21:52               971 tooltype.cpp
  268. 25.05.2014  21:52               672 tooltype.h
  269. 28.10.2014  16:05             9 412 traps.cpp
  270. 27.07.2014  16:44             2 463 traps.h
  271. 01.06.2014  09:15               581 valuable.cpp
  272. 01.06.2014  09:15               544 valuable.h
  273. 25.09.2013  13:09             2 538 weaptype.cpp
  274. 25.09.2013  13:09               899 weaptype.h
  275. 28.10.2014  16:14             2 730 window.cpp
  276. 26.09.2014  16:21             1 626 window.h"""
  277.  
  278. total_bytes = 0
  279. for line in s.split("\n"):
  280.     if (".cpp" in line) or (".h" in line):
  281.         chunks = line.rsplit(" ",3)
  282.         #kbytes = int(chunks[1])*1000 if len(chunks[1]) else 0
  283.         bytes = int(chunks[1]+chunks[2])
  284.         total_bytes += bytes
  285.         print chunks[1:]
  286. print total_bytes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement