Showing 99 of 594 total issues
Similar blocks of code found in 3 locations. Consider refactoring. Open
data = [[260762, 1.0, 508], [255974, 0.9995205432491374, 314], [262375, 0.995004494539414, 394], [262380, 0.9931292144566812, 557], [252466, 0.9898404846671393, 199], [246743, 0.985564997877141, 306], [254169, 0.9827197084128754, 243], [246012, 0.9825697448892406, 266], [247494, 0.9823738990766145, 279], [255590, 0.9800564478921724, 217], [252973, 0.9776441701420158, 337], [253664, 0.9741389395062856, 456], [252424, 0.9736801289198488, 63], [258948, 0.9732062661497227, 112], [253174, 0.9719492196799694, 422], [255267, 0.9719088009873972, 492], [257457, 0.9716868922641491, 143], [247453, 0.9707955813360268, 133], [253862, 0.9675459038794917, 470], [246457, 0.967423685772223, 353], [246483, 0.9660485091369894, 220], [253323, 0.9660124371151629, 344], [253275, 0.9630738237643391, 108], [252730, 0.9626355522021315, 171], [251858, 0.9564584213802814, 391], [255524, 0.9561966371252345, 74], [252326, 0.9546786362098489, 346], [246016, 0.9537842491717058, 362], [255743, 0.9518825581893176, 388], [257390, 0.9501902172326385, 129], [246789, 0.9490206462784939, 427], [251740, 0.9478959235836434, 212], [257756, 0.946705583440969, 415], [247175, 0.9460241806072662, 249], [246409, 0.9457331433624273, 92], [254583, 0.9444613579959068, 294], [273218, 0.9444236862003821, 16], [247691, 0.9431149722248613, 204], [257038, 0.9415657602194711, 254], [246830, 0.9405764738107142, 269], [257505, 0.9365333565311016, 424], [251861, 0.935745653577619, 515], [272916, 0.9355255950579102, 135], [255301, 0.9354135153574902, 236], [247162, 0.9350689598902271, 359], [272387, 0.9322148274178269, 150], [258540, 0.9320473242357752, 232], [252937, 0.9318784720974497, 153], [246004, 0.9318586471492928, 404], [255641, 0.9297899607380152, 73], [253792, 0.9281710663620586, 167], [246426, 0.9281059169610684, 474], [254826, 0.9270102183434904, 339], [206226, 0.9239805190411253, 235], [253211, 0.9211164910452165, 437], [251880, 0.918685158061857, 454], [40550, 0.9172557375730561, 479], [255736, 0.9169155903325928, 379], [245582, 0.9163104457829065, 432], [254207, 0.9160932510669555, 94], [246404, 0.9145077559375656, 5], [245566, 0.9100607017786685, 525], [252279, 0.9097009976845397, 524], [252043, 0.9092307599316694, 418], [257488, 0.9071399027103872, 407], [259768, 0.9057088146152803, 49], [269057, 0.9036936439633608, 69], [258533, 0.9025437282385775, 372], [254917, 0.9012535754863585, 84], [255226, 0.8976885921201037, 159], [40545, 0.8955955357553247, 530], [246737, 0.8920794736825477, 267], [206730, 0.8900111340545069, 273], [272641, 0.8853217576950255, 18], [255688, 0.8852741167969947, 68], [252426, 0.8842120433823679, 61], [254054, 0.8796993791478442, 213], [245568, 0.8786320302152255, 498], [260711, 0.878597261504197, 431], [257545, 0.8780150541356884, 21], [244835, 0.8734134222791242, 442], [246418, 0.8730185708649779, 132], [271449, 0.8729158917523117, 262], [255832, 0.8682396079918682, 26], [40552, 0.8602295426456, 224], [246783, 0.8596927729575999, 225], [260878, 0.853285859309442, 516], [246424, 0.8485767482245214, 187], [260493, 0.8474185242614446, 30], [258043, 0.8442582899545508, 487], [251272, 0.843579812243694, 350], [257724, 0.8414221750999041, 3], [259231, 0.8403544210059642, 460], [253291, 0.8398237320867736, 303], [252487, 0.83782093548487, 60], [255731, 0.8324252044089674, 342], [247295, 0.8291894686740046, 316], [271037, 0.8290588471315553, 370], [247759, 0.8275165689827215, 528], [263632, 0.8259391786021053, 465], [254281, 0.8256132496465262, 130], [247512, 0.8246500110876908, 42], [258299, 0.8239047512003597, 364], [272807, 0.822753433513623, 341], [256298, 0.8225473638413617, 15], [259266, 0.822522253257111, 119], [253222, 0.8201156074874437, 402], [247431, 0.8173769018238112, 238], [258376, 0.8172429901719338, 308], [258621, 0.816153650456822, 1], [245563, 0.8152529056706465, 480], [252702, 0.8135589342104569, 476], [256879, 0.801231001951116, 471], [262653, 0.8011284051820451, 198], [246005, 0.799769257784673, 377], [255609, 0.7995768094868261, 378], [263473, 0.7992724526231358, 91], [254760, 0.7977818529993775, 148], [246037, 0.7962470526071239, 438], [252343, 0.7904056389830902, 328], [245265, 0.7812693790554158, 446], [255574, 0.7737779023101405, 382], [256557, 0.7735930808138083, 10], [255350, 0.7727129623570227, 428], [252308, 0.7704378286107495, 495], [260060, 0.7688247442554954, 297], [255766, 0.7680196102149903, 29], [276925, 0.7646927349277395, 12], [258526, 0.7642899000309429, 155], [249072, 0.763665871683132, 228], [277795, 0.7614025108781713, 365], [258539, 0.7594015758809503, 186], [263565, 0.7578053750353337, 146], [253479, 0.7563774534066453, 401], [255878, 0.7561723589494633, 491], [257525, 0.7496549619634668, 351], [252945, 0.7496308639084167, 334], [258036, 0.7476520281982351, 529], [255490, 0.7433711141333057, 447], [245564, 0.7426898886534481, 558], [246742, 0.7418416899473316, 4], [252098, 0.7409336219372067, 299], [278669, 0.7391098273477889, 502], [247568, 0.7381832033538864, 140], [255315, 0.734796598719933, 537], [247588, 0.7326440016423014, 296], [250124, 0.7315327474904637, 53], [255568, 0.7282803110396245, 214], [255131, 0.7278885160013389, 242], [253256, 0.7267670286654512, 423], [253414, 0.7254518878568604, 449], [256901, 0.7251054680423519, 200], [247579, 0.7245205961780155, 545], [247189, 0.7241541683849276, 291], [255252, 0.723019822728893, 227], [245994, 0.7229137755195575, 533], [245560, 0.7222146793673025, 499], [258037, 0.7214409989929784, 82], [258527, 0.7186110377019372, 311], [254035, 0.7181172684796588, 443], [251700, 0.7137348782392816, 305], [250827, 0.7133316803401442, 56], [245565, 0.7128518669304957, 430], [255351, 0.7095911273213145, 80], [249634, 0.708935674918791, 555], [255373, 0.7073475601832125, 298], [206952, 0.7072988703869099, 309], [262482, 0.7063649220809727, 126], [262749, 0.7059969149403088, 114], [252464, 0.7056108549581807, 152], [252488, 0.7054153034782327, 510], [255756, 0.7051085891226244, 169], [263555, 0.70086038580428, 90], [246420, 0.7000771217400066, 257], [252952, 0.6967270902898819, 123], [252708, 0.6959021962864168, 464], [252659, 0.6958311078853637, 411], [252954, 0.6945525447754528, 122], [253073, 0.6940069460525232, 540], [255672, 0.6917853475757965, 71], [256961, 0.6876353462456107, 445], [264498, 0.6860881793176042, 410], [246792, 0.6843620991552349, 304], [246039, 0.6749934451296945, 231], [257307, 0.6731537082744716, 518], [252406, 0.6730938605841683, 513], [252213, 0.6717624819729584, 149], [246738, 0.6709582654413354, 547], [246422, 0.6676631428701556, 319], [246033, 0.6603138788285451, 86], [254959, 0.6591552791483645, 336], [252720, 0.6565979545986832, 256], [262997, 0.6562284820807779, 168], [250142, 0.655094251892939, 54], [256836, 0.6473062406628735, 219], [252964, 0.6435704916255914, 264], [257549, 0.6402878850716527, 280], [254109, 0.6363903982190838, 417], [252944, 0.6324616509578199, 197], [252962, 0.630426671839553, 121], [249081, 0.630249900294952, 139], [253132, 0.6300048899125468, 111], [254471, 0.6289979962386093, 88], [271957, 0.6251045412617077, 554], [252318, 0.62407654829175, 506], [245573, 0.6210394356360276, 523], [262748, 0.6199808969200328, 398], [257508, 0.6199631143408582, 409], [243300, 0.6144676116830003, 553], [255592, 0.6141812666139973, 416], [247959, 0.612726870549734, 161], [251573, 0.6116974139976591, 177], [246416, 0.6107200034990455, 390], [260954, 0.6078839665034068, 317], [262279, 0.6077027778848466, 163], [244574, 0.6060718425037496, 512], [259771, 0.6060294570932623, 363], [260779, 0.6024496573731115, 65], [246417, 0.6020227802306085, 289], [270804, 0.601457618882334, 27], [257031, 0.599949292335306, 33], [245773, 0.5937753491903323, 440], [253084, 0.5903639560714405, 434], [260185, 0.5889189063560947, 338], [272388, 0.5852882624853101, 241], [263181, 0.5849339029925736, 478], [253686, 0.5837921163077028, 101], [259357, 0.5837708545378046, 47], [257080, 0.5827781052938337, 31], [253015, 0.5820899750556445, 120], [255176, 0.5792740166499388, 83], [264504, 0.5767642066174302, 500], [257535, 0.5709953023644101, 205], [253322, 0.5706252566932173, 107], [255765, 0.5676671295462713, 277], [253507, 0.5674620078720977, 343], [257992, 0.5673451499143574, 420], [260626, 0.5673121972095229, 335], [252943, 0.5627898097844761, 520], [247730, 0.5622587133123914, 178], [254784, 0.5590102369855546, 87], [257561, 0.5588916129931809, 248], [253344, 0.5586514635044065, 106], [255746, 0.557813685525672, 552], [257332, 0.5535772774662381, 32], [253588, 0.5507321211520837, 195], [258025, 0.5465487477232894, 467], [253515, 0.5448516840416298, 103], [261176, 0.5424323389045178, 55], [256454, 0.5414240054540719, 13], [252355, 0.5398171543217806, 542], [261976, 0.5362226035706543, 292], [252867, 0.535643553121791, 45], [262782, 0.5347411742406392, 109], [256684, 0.5338309151854237, 475], [256580, 0.5316659809860308, 265], [254774, 0.5316225558640747, 245], [256995, 0.530357291649383, 455], [255668, 0.5290031942016036, 72], [255615, 0.5282325903658175, 192], [258538, 0.5240167870720012, 321], [252347, 0.5219335162260027, 501], [252729, 0.5214846788393134, 158], [252791, 0.5211838732656775, 426], [255817, 0.5191134254996257, 300], [262752, 0.5177426765444708, 462], [247767, 0.5177020138185978, 261], [260732, 0.5172020550932599, 222], [255509, 0.5158588307892813, 408], [246024, 0.515175216577238, 293], [256986, 0.5139346270658534, 330], [245962, 0.5118889403000251, 70], [255584, 0.5002375450860039, 329], [251911, 0.5002114550451371, 128], [252935, 0.4967744584832324, 39], [245580, 0.4930715367444391, 468], [252315, 0.4918809750910493, 326], [246419, 0.4910112071852628, 95], [259222, 0.4889290955731193, 496], [278773, 0.4835620870368138, 141], [257741, 0.4835409346294182, 469], [257816, 0.4824261902895905, 461], [246019, 0.4802298354388908, 313], [261039, 0.4748480744919821, 62], [257496, 0.4734087180924063, 260], [252924, 0.47171915775031714, 43], [247198, 0.4705814981127778, 239], [246408, 0.4681185359808932, 539], [258026, 0.4676946378001977, 271], [253998, 0.4672133534959424, 97], [258407, 0.4617439651786302, 375], [273357, 0.45750202089280506, 14], [252957, 0.4555882733763392, 281], [255898, 0.45272218482685056, 450], [278779, 0.44951595269700223, 253], [255338, 0.44817913257512104, 211], [259174, 0.44496076681211916, 115], [272084, 0.4431496837017314, 23], [253350, 0.4401460553171044, 482], [254285, 0.4391487966131473, 89], [246001, 0.4390159749552403, 511], [261038, 0.4384484215367615, 162], [246009, 0.4375649538092671, 355], [270527, 0.4365905793999847, 193], [255928, 0.4338878358620241, 486], [257230, 0.4279776187761181, 507], [257903, 0.42659303523762493, 399], [246020, 0.42647232131576274, 367], [246739, 0.42548856179808026, 368], [267423, 0.4247251010413487, 202], [255886, 0.42307440610159047, 541], [253152, 0.42252381397498084, 546], [255346, 0.42059238217438955, 81], [255823, 0.4203222817976017, 361], [245584, 0.41689090972212933, 174], [244575, 0.41571154697721163, 472], [255479, 0.41498076367622794, 497], [257246, 0.4146174324014037, 393], [262027, 0.41185359538020067, 196], [246411, 0.4117789826762135, 93], [252739, 0.4086070889391498, 251], [262654, 0.40746562862840513, 136], [260735, 0.4074609431556965, 67], [255825, 0.4054978113608553, 246], [260437, 0.3989869734283357, 127], [255694, 0.398671801521817, 255], [256026, 0.3984349167579821, 295], [252409, 0.3950686170617587, 494], [255858, 0.3933391556595768, 396], [245878, 0.3916460702115356, 549], [255485, 0.39144897804450807, 263], [246784, 0.3904394957345376, 543], [252926, 0.3896653906891982, 41], [247107, 0.3891915599494797, 463], [254923, 0.38640347305689654, 182], [263316, 0.3839710215112621, 102], [253130, 0.3828081638637968, 406], [246716, 0.37756110070016496, 170], [257547, 0.37732993396114034, 22], [246031, 0.3769934662962339, 144], [256411, 0.37608487018790226, 387], [246622, 0.3735914154909459, 100], [260980, 0.37237951785386963, 459], [244541, 0.37097253979368916, 37], [253883, 0.36635374385996705, 98], [256598, 0.36426665473386965, 532], [254250, 0.36029423673880745, 412], [277426, 0.3600895700486749, 137], [253731, 0.35712934360523885, 99], [245574, 0.3561181102481289, 509], [247437, 0.3553652193322151, 290], [252897, 0.3518878399140848, 349], [252786, 0.34815756057056124, 48], [252653, 0.34801677162436306, 189], [256299, 0.34560939776903477, 207], [260736, 0.3446503621664582, 66], [255326, 0.3437094236945199, 181], [255355, 0.34322109670874074, 78], [40551, 0.3420839772895686, 521], [257059, 0.3414038261984769, 151], [259980, 0.3391548541357033, 51], [255325, 0.33620570373083725, 348], [249818, 0.3348483986537517, 147], [253813, 0.33378957096841805, 331], [257946, 0.33342721417254795, 458], [247686, 0.33298610717130167, 145], [244568, 0.3323141983983279, 223], [253780, 0.32877290255731567, 234], [260058, 0.3284829497954485, 57], [258035, 0.32266349371876096, 380], [257448, 0.3190609471103551, 347], [247294, 0.31793932880274467, 252], [253258, 0.3173928433971344, 489], [256953, 0.31572753208525084, 244], [254215, 0.3154122349137452, 206], [258311, 0.31469376908948415, 327], [246745, 0.3133972879732688, 444], [252939, 0.31308769717227225, 125], [259772, 0.31212784855051195, 134], [253842, 0.3110635219365844, 448], [252909, 0.30973256341314986, 44], [253070, 0.30692013298324955, 117], [252912, 0.3057994435122471, 221], [259263, 0.3043747454097122, 397], [253505, 0.3041790567896896, 104], [257523, 0.30273047263773384, 38], [258947, 0.29406221746690253, 209], [257648, 0.2915002967948332, 302], [256249, 0.2902986301881277, 488], [252747, 0.2898455541651887, 493], [257515, 0.2896417150991509, 310], [258136, 0.2887781383477989, 180], [245569, 0.28778549285680266, 439], [252925, 0.2845072618787068, 275], [246030, 0.2766774893910294, 85], [253448, 0.2763617400445601, 286], [256033, 0.2757604543764478, 19], [255720, 0.2748761718060344, 283], [255714, 0.2748153480768198, 519], [250726, 0.2742065252475126, 484], [253932, 0.2667539525583174, 9], [256784, 0.26658923500641485, 485], [257010, 0.2647914957528916, 483], [252665, 0.2606062067975815, 52], [272619, 0.2584427512173463, 340], [246748, 0.2567560963668885, 282], [253829, 0.2544756146037826, 7], [256906, 0.24588152320770115, 164], [259074, 0.24581116850282858, 325], [261324, 0.2446306932754695, 504], [256947, 0.2435158610534141, 385], [246754, 0.24199458042567437, 203], [252236, 0.24188357945632524, 436], [253143, 0.23800076442422125, 332], [246406, 0.23705480469881662, 435], [246403, 0.2347095756964818, 356], [252275, 0.23252471411418976, 138], [252534, 0.23241298988185616, 59], [252471, 0.23176766939478852, 274], [258034, 0.23051277587128843, 77], [255717, 0.229238300024151, 548], [247433, 0.22729706262145133, 371], [252302, 0.2268726597813903, 270], [251406, 0.22362912725090198, 58], [277427, 0.22283284663628908, 11], [264031, 0.22206626330766677, 389], [246112, 0.22127471997435827, 345], [252709, 0.22081680757904162, 50], [259151, 0.2199404971950709, 477], [273217, 0.21638400079555348, 466], [254324, 0.21294853528227942, 173], [256929, 0.2100616137448998, 36], [252804, 0.2061782291962457, 46], [252452, 0.20599004403311288, 481], [278133, 0.20583411732647053, 184], [256962, 0.2045365915933034, 201], [264033, 0.20196653659812017, 333], [253321, 0.200002094430032, 318], [252641, 0.19969927057335862, 6], [257011, 0.19520220943613534, 34], [246014, 0.19098492040375528, 527], [256841, 0.18876593374406608, 307], [254172, 0.18388631048184162, 210], [256244, 0.18037940908199282, 383], [246402, 0.17963324821408072, 259], [259223, 0.1793713870224222, 116], [261015, 0.17729730545118397, 505], [206733, 0.1754123752070188, 287], [257811, 0.17483317260376846, 230], [255853, 0.17309050366746098, 25], [205409, 0.1711984061064287, 395], [264281, 0.1682579227178563, 247], [247497, 0.1636423615230676, 386], [256963, 0.16269797801071906, 451], [247496, 0.1604717023659994, 40], [244542, 0.1599156011229317, 536], [247804, 0.15664066914678798, 250], [261877, 0.1554064639774628, 142], [253746, 0.15407388256401716, 183], [251770, 0.1526285447549706, 216], [253027, 0.14522157035866234, 357], [253022, 0.14422047790268183, 503], [263354, 0.1394743864547314, 218], [257452, 0.13866414408554711, 324], [253012, 0.137860843792448, 301], [260190, 0.13646749280863552, 413], [263000, 0.13617132064155893, 208], [256158, 0.12912001385583788, 376], [255483, 0.1282028475104972, 76], [245562, 0.12740981729077583, 514], [256172, 0.12712132691610414, 194], [252783, 0.12582443890703615, 531], [255990, 0.12225134427758255, 534], [279081, 0.11896331245926832, 188], [256263, 0.11824029844803141, 17], [245578, 0.11744328049992846, 556], [247439, 0.11720607144994374, 414], [257579, 0.11668055654258884, 358], [255517, 0.11587148966732672, 392], [255352, 0.11380234125780656, 79], [272390, 0.11369281640055523, 172], [246847, 0.11169651973417093, 285], [248154, 0.11139783619128985, 312], [254791, 0.1112078170971522, 191], [258390, 0.11107650938432503, 453], [253100, 0.11047726526235199, 113], [278489, 0.10975205773063822, 190], [275957, 0.10835975807983624, 352], [257205, 0.10780287161634367, 240], [258874, 0.10619467290650801, 110], [257528, 0.10303930505871142, 278], [247238, 0.1027947491404469, 258], [247434, 0.10125224639483342, 124], [253250, 0.10121075938332427, 157], [253128, 0.09922752981983624, 473], [252293, 0.09904317959453522, 165], [252706, 0.09568136898166194, 233], [253342, 0.09160473080587003, 323], [246015, 0.09151695130071935, 366], [247435, 0.09128225032278918, 522], [272472, 0.09016818427701695, 20], [255716, 0.08800668326571029, 517], [247140, 0.08770828356917833, 419], [257657, 0.08747930050561947, 535], [253292, 0.08518130499671121, 215], [256938, 0.08316429084998578, 166], [253082, 0.08293690515520748, 550], [246010, 0.08224979394154006, 156], [245559, 0.08181881802740087, 374], [253053, 0.08091689031848619, 179], [271550, 0.07992260255138654, 24], [245577, 0.0792595795587617, 490], [253058, 0.07830624144815093, 226], [258342, 0.07794562212835879, 96], [260632, 0.07682680428362224, 433], [249513, 0.07648571444392535, 403], [253089, 0.0764305223683315, 381], [256934, 0.07629966751268509, 35], [259181, 0.07508845044616554, 405], [252334, 0.07197012242153743, 229], [244832, 0.07101677107321545, 526], [278607, 0.06326861321876318, 284], [253064, 0.059727064110204585, 118], [245572, 0.056248511129450576, 429], [252756, 0.05192273980825758, 131], [252920, 0.05182668373393704, 384], [259142, 0.04679268002770058, 272], [245043, 0.04565807423597233, 452], [253194, 0.042674400754156155, 322], [118561, 0.04166379036762368, 457], [257517, 0.04116141306480202, 544], [245760, 0.04035157484761617, 360], [245581, 0.03925496817477289, 28], [279640, 0.038847028561318525, 441], [247972, 0.037958625487415146, 315], [259359, 0.037325826044676276, 400], [253023, 0.03551048980025853, 185], [260188, 0.03314718771437451, 288], [254418, 0.03188834626309119, 538], [251662, 0.03041987397768378, 2], [258532, 0.02969089665142224, 105], [259355, 0.029470762458296555, 175], [255745, 0.02905107068103912, 154], [246007, 0.027146887170043817, 320], [257846, 0.02483710656811361, 354], [252356, 0.02394110717431419, 64], [246917, 0.02366430245130461, 369], [270755, 0.02046755151139384, 276], [255515, 0.018360846456934428, 373], [258382, 0.017652160919706946, 160], [256895, 0.0127427661834745, 8], [257938, 0.008553195320381323, 75], [257546, 0.008272111670775505, 421], [257491, 0.008237883825808756, 268], [257532, 0.006748661431691643, 237], [259358, 0.00384184317048935, 425], [263367, 0.002329046522303063, 176], [260462, 0.0, 551]]
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 2796.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
data = [[247189, 1.0, 291], [255479, 0.9953067043007217, 497], [245564, 0.9092854585452049, 558], [247759, 0.9086029869575424, 528], [261324, 0.8057153846691997, 504], [250726, 0.7853152664846037, 484], [252659, 0.75658548417145, 411], [271957, 0.7473905343304611, 554], [252308, 0.7266416032259303, 495], [245878, 0.6979874576192975, 549], [252783, 0.6835806135019014, 531], [253084, 0.6635369995237497, 434], [253194, 0.6635043923572456, 322], [255574, 0.6281052794089036, 382], [255716, 0.6229951139749709, 517], [255592, 0.6189834226739688, 416], [247295, 0.6170208601866938, 316], [246408, 0.614974490258699, 539], [40550, 0.6115171815428533, 479], [255373, 0.6068651799675838, 298], [253152, 0.6011278444027143, 546], [253414, 0.5963951310346278, 449], [243300, 0.5876110012948976, 553], [255928, 0.5715888148099479, 486], [249513, 0.5657759006036626, 403], [252355, 0.5623126596400266, 542], [257205, 0.5519687106833153, 240], [252409, 0.5490454594160878, 494], [256995, 0.5487832932790102, 455], [260762, 0.5475850725197514, 508], [257756, 0.5389119627131349, 415], [253073, 0.5374808447324704, 540], [251272, 0.529753378965703, 350], [257515, 0.525373846880534, 310], [249634, 0.5245002580624918, 555], [245578, 0.5229833948073782, 556], [245562, 0.5217757614425789, 514], [247238, 0.520702104283002, 258], [252702, 0.5159241065309409, 476], [247579, 0.5140397503566954, 545], [246406, 0.5118257791992434, 435], [256947, 0.5114903685574476, 385], [255743, 0.5093986442470327, 388], [255717, 0.5043321154172119, 548], [256598, 0.5037023917202432, 532], [40551, 0.49828337786966165, 521], [245773, 0.4947216685668841, 440], [260462, 0.49404645937295283, 551], [206952, 0.4926149831714914, 309], [253128, 0.4888461478948572, 473], [254109, 0.4841508985315912, 417], [257517, 0.48349931102014626, 544], [255590, 0.4743960390507886, 217], [262380, 0.4676061667779639, 557], [253022, 0.4669156435931025, 503], [258407, 0.46279505086329065, 375], [255886, 0.4625838191629436, 541], [247107, 0.46225378558896213, 463], [246748, 0.4613514573944293, 282], [244574, 0.45997354050493894, 512], [255609, 0.45957785526783834, 378], [257488, 0.45867470613462874, 407], [247435, 0.4581174512436514, 522], [256986, 0.4575982282983796, 330], [258526, 0.45700928449403067, 155], [247494, 0.45580944829783626, 279], [253323, 0.455284488440659, 344], [244575, 0.4550202058503951, 472], [252452, 0.4548065647109424, 481], [278607, 0.45274306268448333, 284], [256953, 0.4476907059400671, 244], [260626, 0.44304893741797363, 335], [247175, 0.4425862778215582, 249], [255990, 0.44059976690013514, 534], [256411, 0.4405816399750539, 387], [253130, 0.44007016496381934, 406], [246417, 0.4387694135157254, 289], [245760, 0.4355978184985644, 360], [246420, 0.43540260653996476, 257], [253842, 0.43404368336210386, 448], [253027, 0.4337355364631809, 357], [245574, 0.43312703521760404, 509], [255817, 0.4316630663791099, 300], [244835, 0.43116909697449285, 442], [258043, 0.4281276172106147, 487], [259151, 0.42290963319629105, 477], [245572, 0.42188575416585655, 429], [247588, 0.42113940624570045, 296], [246015, 0.4196285870675571, 366], [246007, 0.4191443735908597, 320], [246789, 0.4167150694762166, 427], [255350, 0.41667535190093713, 428], [247140, 0.41434673267534994, 419], [255898, 0.4122645116123971, 450], [253479, 0.41142315387047784, 401], [253350, 0.4100327590483293, 482], [253222, 0.4097127234504002, 402], [255517, 0.40888238768214014, 392], [264498, 0.4055312216465653, 410], [262279, 0.4054923551618996, 163], [252708, 0.40494922203089234, 464], [255252, 0.4038421925875697, 227], [257846, 0.400430421368043, 354], [257010, 0.4003613169326503, 483], [253258, 0.39817078080907226, 489], [257657, 0.3974857116488306, 535], [247198, 0.3964743281567702, 239], [246019, 0.3876306689762958, 313], [255267, 0.3876050140308883, 492], [256249, 0.3838809564058669, 488], [246037, 0.3838234144673371, 438], [259222, 0.3827897239546739, 496], [246792, 0.382492852950921, 304], [255315, 0.3820748995547696, 537], [246830, 0.38139461818229525, 269], [259358, 0.38129628550168726, 425], [246738, 0.3809806939131714, 547], [255326, 0.3807120469816583, 181], [257246, 0.38007331269079114, 393], [244832, 0.3797179446428683, 526], [255823, 0.37889204231619567, 361], [206733, 0.3776835615128354, 287], [252347, 0.37636017944508227, 501], [263632, 0.37053235391316836, 465], [252641, 0.369632624292604, 6], [256784, 0.36899121342725505, 485], [254169, 0.36624041179625, 243], [252334, 0.36442485528612584, 229], [245559, 0.363342789896035, 374], [252943, 0.36276530173196314, 520], [254418, 0.361899547101665, 538], [253211, 0.3616131829341342, 437], [254826, 0.3615131490917619, 339], [256879, 0.3600959958033286, 471], [259074, 0.35967861681858737, 325], [255714, 0.35907334909735733, 519], [264504, 0.3580883642398094, 500], [255746, 0.3568743269313234, 552], [252343, 0.3561213818313306, 328], [40545, 0.35605168797830283, 530], [245565, 0.3559689358760972, 430], [257496, 0.35558741577342423, 260], [257038, 0.35389172206901176, 254], [246009, 0.3535506126004616, 355], [252973, 0.35317237380685684, 337], [246847, 0.3522248169221572, 285], [247972, 0.3520922810869565, 315], [256158, 0.35167136930743287, 376], [245573, 0.3514035837015401, 523], [246004, 0.3509566643180351, 404], [251861, 0.34844334776473745, 515], [255509, 0.34836964870252995, 408], [255858, 0.3445532983804579, 396], [259359, 0.34209793270390526, 400], [252747, 0.34160301726738096, 493], [253174, 0.34063345730650046, 422], [257549, 0.340305490134781, 280], [246457, 0.3398148175588156, 353], [258533, 0.3392691798667152, 372], [255736, 0.3385800931151538, 379], [257532, 0.3382075690806487, 237], [245580, 0.337204188710567, 468], [252791, 0.3370169624362729, 426], [257307, 0.3368616135641876, 518], [259181, 0.3364111998689087, 405], [257491, 0.3349127487548419, 268], [253507, 0.3338453097744715, 343], [252406, 0.3336863492862051, 513], [254035, 0.3323338301742651, 443], [256906, 0.33062993394551604, 164], [258540, 0.3285805817510898, 232], [247691, 0.3273280186828263, 204], [253143, 0.32682064251746545, 332], [255325, 0.32581722562454263, 348], [247162, 0.3249924643139142, 359], [252912, 0.3241562052924235, 221], [258311, 0.32328532174915336, 327], [206730, 0.32229739580667927, 273], [252279, 0.32161770076250906, 524], [252924, 0.32157680603145694, 43], [256901, 0.3213187690212257, 200], [256580, 0.3211297731005249, 265], [263181, 0.32063337660905755, 478], [246424, 0.31996814600987966, 187], [245560, 0.31909995756372656, 499], [258036, 0.3190821995518366, 529], [252945, 0.3186667854658897, 334], [246403, 0.31779288823533275, 356], [257992, 0.31769953148634694, 420], [245577, 0.317013537985255, 490], [267423, 0.31570812491009725, 202], [278779, 0.3153490213408974, 253], [255694, 0.31528671428292326, 255], [258025, 0.3150738349275297, 467], [262653, 0.3141154006572636, 198], [252739, 0.31404710418791887, 251], [261976, 0.31404637288840986, 292], [256026, 0.31389080190575414, 295], [255765, 0.31387827013476693, 277], [277795, 0.31377759425262347, 365], [246784, 0.3137502220953884, 543], [40552, 0.313312434736097, 224], [260632, 0.3125460653133785, 433], [279640, 0.31176693479234296, 441], [246402, 0.3115398742393805, 259], [255878, 0.3112951438606972, 491], [246024, 0.3111549708310144, 293], [254774, 0.3107436029975422, 245], [259142, 0.3104344931328798, 272], [255338, 0.3097770281161997, 211], [253792, 0.308858414364032, 167], [249072, 0.3072147734038307, 228], [258538, 0.30714013479306335, 321], [252925, 0.30702658395098326, 275], [278669, 0.3062301440461569, 502], [263354, 0.3060048731109085, 218], [262752, 0.30506892766395555, 462], [253342, 0.3044044828879365, 323], [247497, 0.3033244215556245, 386], [245566, 0.30212436443801516, 525], [259223, 0.30194530207229386, 116], [247804, 0.30164652234253175, 250], [252897, 0.30105958247421977, 349], [259771, 0.30085343533943704, 363], [252488, 0.30049861093022456, 510], [271449, 0.30013736941680225, 262], [246112, 0.29997856072033596, 345], [260190, 0.2995998048661708, 413], [255131, 0.29844790003905386, 242], [244542, 0.29840305133683986, 536], [255720, 0.2979466532950887, 283], [256962, 0.2967629997925421, 201], [247431, 0.29659170036276833, 238], [246745, 0.2965834041881554, 444], [275957, 0.2955693655404521, 352], [260060, 0.2954511677907017, 297], [252937, 0.29410165554088474, 153], [264033, 0.2939615892871324, 333], [246737, 0.29394758681467514, 267], [257903, 0.2930834119876093, 399], [251880, 0.2923364970064838, 454], [257546, 0.2923150616608394, 421], [252962, 0.29154080902166896, 121], [252706, 0.28993118679702906, 233], [246716, 0.28965599086380733, 170], [246016, 0.2889920812647796, 362], [260954, 0.2883012553394834, 317], [255490, 0.2879441071300038, 447], [251858, 0.2879069113519534, 391], [205409, 0.2878144969895243, 395], [258539, 0.2873282048102203, 186], [256836, 0.2865578248681194, 219], [257579, 0.28646374831455557, 358], [246005, 0.2857883265273938, 377], [251740, 0.2851591531399084, 212], [245568, 0.2844445962562409, 498], [257528, 0.2844059710611631, 278], [254250, 0.2842123617413622, 412], [255485, 0.2835960217800238, 263], [260437, 0.28314092037508987, 127], [256244, 0.2829415161103639, 383], [253321, 0.28289318676559366, 318], [247767, 0.2828481560194174, 261], [252098, 0.28207319087116894, 299], [260188, 0.28196930033766815, 288], [261038, 0.28189609879520244, 162], [206226, 0.2815004204979762, 235], [253023, 0.2811821549122627, 185], [246426, 0.28108540705055274, 474], [257741, 0.2810851483379909, 469], [247437, 0.2800152154356287, 290], [253862, 0.2797192591503401, 470], [252466, 0.2792223101532357, 199], [252302, 0.2788515690009104, 270], [244568, 0.27828322645337383, 223], [264281, 0.27820565365637895, 247], [254172, 0.2782024533852794, 210], [253058, 0.27742699096469414, 226], [253070, 0.27719067859888097, 117], [270755, 0.27620938381830135, 276], [246422, 0.2751830377422309, 319], [257816, 0.2745809868734605, 461], [256841, 0.2741441660766847, 307], [247568, 0.27378679926339705, 140], [263000, 0.27311572893777725, 208], [258026, 0.2728131122503827, 271], [246483, 0.27257472922443216, 220], [258527, 0.27213493462670973, 311], [260878, 0.2718275454068086, 516], [246739, 0.27115801132308903, 368], [257059, 0.2709965267248477, 151], [247439, 0.2709752187604269, 414], [255766, 0.2707366702590944, 29], [259263, 0.26922461966034306, 397], [251700, 0.2688750793630375, 305], [254959, 0.268705001508061, 336], [255853, 0.26858322188938955, 25], [257525, 0.26825329689172744, 351], [245569, 0.26786373779496575, 439], [246917, 0.26678905469589664, 369], [261176, 0.2658371736005525, 55], [256172, 0.2652638220985214, 194], [252957, 0.26486486140284754, 281], [252730, 0.2637730058491149, 171], [271037, 0.2633696905257776, 370], [259980, 0.26309715698514846, 51], [253746, 0.26262527341651737, 183], [255825, 0.2625658393169539, 246], [252720, 0.26209382845730256, 256], [245265, 0.26179380823687487, 446], [251770, 0.2616090139700507, 216], [253082, 0.26130809190741167, 550], [253291, 0.2612905259322162, 303], [255731, 0.26125716968101237, 342], [258376, 0.26122899021582907, 308], [246404, 0.2604785460794714, 5], [255515, 0.25995752695878194, 373], [252318, 0.2591268594840375, 506], [253292, 0.25909803410400895, 215], [247433, 0.25903993855822, 371], [252471, 0.25884307179686705, 274], [270527, 0.25799984277363575, 193], [256298, 0.2578660397690078, 15], [245563, 0.2562266991941362, 480], [258390, 0.25590929429273923, 453], [252709, 0.2547699518170755, 50], [273217, 0.25359428078990076, 466], [272807, 0.253285909472616, 341], [246418, 0.2522084609560121, 132], [252315, 0.25200288875932103, 326], [253813, 0.2512871159440561, 331], [252426, 0.25122153120044155, 61], [279081, 0.25071799167754977, 188], [262997, 0.2507034312691844, 168], [245994, 0.24986221037995257, 533], [272390, 0.24886164186738222, 172], [257561, 0.2485743203232229, 248], [253012, 0.24770250160170762, 301], [253053, 0.2476819985425499, 179], [258037, 0.24680255945111448, 82], [258299, 0.24632939594230696, 364], [255483, 0.24590115824466746, 76], [252964, 0.24480558123223373, 264], [257390, 0.2444637912216313, 129], [246014, 0.24444498931602426, 527], [252729, 0.24400182330347137, 158], [262027, 0.24392658109957147, 196], [254054, 0.243736686493138, 213], [252944, 0.2435555388870391, 197], [253664, 0.2432208218623922, 456], [257648, 0.24281210472476683, 302], [257811, 0.2421629216847827, 230], [261015, 0.24047415100515443, 505], [256299, 0.2397918781799363, 207], [257508, 0.23745490388854412, 409], [248154, 0.23738821043163805, 312], [253780, 0.23639818555691344, 234], [255524, 0.235973111217645, 74], [251662, 0.23549597765814687, 2], [258382, 0.23543800406146356, 160], [257452, 0.23372005389087824, 324], [246742, 0.23303528265868806, 4], [252487, 0.23268304927015804, 60], [256961, 0.2318508983212482, 445], [252043, 0.23132716387284785, 418], [272388, 0.23128620118105428, 241], [246419, 0.23098386493750026, 95], [118561, 0.23077075195181881, 457], [278133, 0.23014236813410188, 184], [246001, 0.22868405743563938, 511], [253448, 0.22794380835080483, 286], [246012, 0.22759402293910094, 266], [253883, 0.22724564801182032, 98], [246039, 0.2265341054908114, 231], [257448, 0.2260594936481449, 347], [260185, 0.22519070357887155, 338], [247730, 0.22473606914070302, 178], [254281, 0.2245806709039053, 130], [252954, 0.2240265966670464, 122], [272619, 0.22347317941134598, 340], [255226, 0.22255833924482252, 159], [253588, 0.22254380166725676, 195], [255568, 0.22157823053432765, 214], [264031, 0.22157035192204655, 389], [259772, 0.22130417583339718, 134], [254583, 0.2173714303480184, 294], [252326, 0.21683031869527786, 346], [256963, 0.215849673008519, 451], [262375, 0.21568682413711163, 394], [257080, 0.21524747858706766, 31], [255615, 0.2146024186266517, 192], [252756, 0.21238427562613635, 131], [254285, 0.21035468557230397, 89], [256557, 0.21024262930452564, 10], [246754, 0.2099627150578752, 203], [258136, 0.20742490659631896, 180], [255584, 0.20731907058348564, 329], [262749, 0.2071708388955262, 114], [252356, 0.20682996205412027, 64], [259357, 0.20543791434463707, 47], [254923, 0.20537197386058975, 182], [256895, 0.2050626248182401, 8], [255756, 0.20410397285368362, 169], [257938, 0.204031058694108, 75], [277426, 0.2017702838200106, 137], [255301, 0.200743091982172, 236], [257457, 0.20027257921659136, 143], [252935, 0.19636975683037544, 39], [252275, 0.19632479032078348, 138], [259355, 0.19374497843387367, 175], [252213, 0.19220005531303647, 149], [251573, 0.19136313431696503, 177], [258342, 0.1906620023953042, 96], [247512, 0.18679835224917676, 42], [252665, 0.18640166769416908, 52], [257230, 0.18354815151745504, 507], [249081, 0.17922571185795877, 139], [253829, 0.06674018931679239, 7], [252804, 0.04090877836768537, 46], [261039, 0.030146581326906938, 62], [252464, 0.02234914412617125, 152], [247959, 0.016971173290300314, 161], [262654, 0.016701766502914467, 136], [257946, 0.015895803442652994, 458], [257724, 0.015895803442652994, 3], [250142, 0.012669810287119932, 54], [247453, 0.012400834954822533, 133], [255346, 0.011862693706703661, 81], [252926, 0.011593918675170217, 41], [247686, 0.011323899319508626, 145], [257011, 0.011323899319508626, 34], [257535, 0.00998021779240974, 205], [255672, 0.009709802611539167, 71], [254784, 0.0094427897435145, 87], [255176, 0.0094427897435145, 83], [246010, 0.009183054896828038, 156], [255974, 0.008904860023204715, 314], [254760, 0.00836698564159084, 148], [256938, 0.008099296823761992, 166], [254791, 0.007829117738136868, 191], [255641, 0.007829117738136868, 73], [246020, 0.007560479378935876, 367], [255832, 0.0073336811608307444, 26], [272641, 0.0070235251126378505, 18], [257505, 0.0070235251126378505, 424], [253256, 0.006753870426854287, 423], [246783, 0.006485248317920397, 225], [276925, 0.005947451948562097, 12], [253275, 0.0056785903955681154, 108], [258035, 0.0056785903955681154, 380], [253250, 0.005141135995094501, 157], [260732, 0.005141135995094501, 222], [252236, 0.005141135995094501, 436], [255745, 0.0046030626579199345, 154], [252424, 0.004065386683193307, 63], [253932, 0.0037969664396959994, 9], [253132, 0.0037969664396959994, 111], [252653, 0.003528049438271417, 189], [273218, 0.003528049438271417, 16], [258621, 0.0032591731448156176, 1], [253344, 0.0032591731448156176, 106], [251911, 0.0032591731448156176, 128], [252293, 0.0032591731448156176, 165], [255688, 0.0032591731448156176, 68], [258532, 0.002990405964079002, 105], [246622, 0.002721484049167149, 100], [250827, 0.002721484049167149, 56], [257545, 0.002721484049167149, 21], [246030, 0.0021836401919097686, 85], [252952, 0.0021836401919097686, 123], [257031, 0.0021836401919097686, 33], [256454, 0.0019149918685658694, 13], [253322, 0.0016461301784035246, 107], [257332, 0.0016461301784035246, 32], [278773, 0.0016461301784035246, 141], [257547, 0.0016461301784035246, 22], [254324, 0.0013772798798883578, 173], [262482, 0.0013772798798883578, 126], [258948, 0.0013772798798883578, 112], [273357, 0.0013772798798883578, 14], [246033, 0.0013772798798883578, 86], [258874, 0.0013772798798883578, 110], [260711, 0.0011084849475027716, 431], [245962, 0.0011084849475027716, 70], [247496, 0.0011084849475027716, 40], [254215, 0.0011084849475027716, 206], [259266, 0.0008396525462283584, 119], [246416, 0.0008396525462283584, 390], [246409, 0.0008396525462283584, 92], [270804, 0.0008396525462283584, 27], [260736, 0.0008396525462283584, 66], [277427, 0.0008396525462283584, 11], [256929, 0.0008396525462283584, 36], [255351, 0.0008396525462283584, 80], [246031, 0.0008396525462283584, 144], [253089, 0.0005708510808155237, 381], [261877, 0.0005708510808155237, 142], [252867, 0.0005708510808155237, 45], [269057, 0.0005708510808155237, 69], [245582, 0.0005708510808155237, 432], [251406, 0.0005708510808155237, 58], [263565, 0.0005708510808155237, 146], [255668, 0.0005708510808155237, 72], [257523, 8.622447530249527e-05, 38], [247434, 8.622447530249527e-05, 124], [255352, 8.622447530249527e-05, 79], [252920, 8.622447530249527e-05, 384], [252909, 8.622447530249527e-05, 44], [247294, 8.622447530249527e-05, 252], [258034, 8.622447530249527e-05, 77], [252939, 8.622447530249527e-05, 125], [252786, 8.622447530249527e-05, 48], [249818, 8.622447530249527e-05, 147], [258947, 8.622447530249527e-05, 209], [250124, 8.622447530249527e-05, 53], [259231, 8.622447530249527e-05, 460], [259768, 8.622447530249527e-05, 49], [253015, 8.622447530249527e-05, 120], [256934, 8.622447530249527e-05, 35], [254917, 8.622447530249527e-05, 84], [260493, 8.622447530249527e-05, 30], [246411, 8.622447530249527e-05, 93], [253064, 8.622447530249527e-05, 118], [260779, 8.622447530249527e-05, 65], [260980, 8.622447530249527e-05, 459], [254471, 8.622447530249527e-05, 88], [253100, 8.622447530249527e-05, 113], [262748, 8.622447530249527e-05, 398], [256263, 8.622447530249527e-05, 17], [262782, 8.622447530249527e-05, 109], [263316, 8.622447530249527e-05, 102], [263367, 8.622447530249527e-05, 176], [254207, 8.622447530249527e-05, 94], [253998, 8.622447530249527e-05, 97], [271550, 8.622447530249527e-05, 24], [272084, 8.622447530249527e-05, 23], [272387, 8.622447530249527e-05, 150], [256033, 8.622447530249527e-05, 19], [272472, 8.622447530249527e-05, 20], [272916, 8.622447530249527e-05, 135], [253731, 8.622447530249527e-05, 99], [244541, 8.622447530249527e-05, 37], [252534, 8.622447530249527e-05, 59], [253686, 8.622447530249527e-05, 101], [253505, 8.622447530249527e-05, 104], [278489, 8.622447530249527e-05, 190], [253515, 8.622447530249527e-05, 103], [255355, 8.622447530249527e-05, 78], [256684, 0.0, 475], [245043, 0.0, 452], [260735, 0.0, 67], [263473, 0.0, 91], [245581, 0.0, 28], [245584, 0.0, 174], [260058, 0.0, 57], [259174, 0.0, 115], [246743, 0.0, 306], [263555, 0.0, 90]]
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 2796.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 3 locations. Consider refactoring. Open
data = [[245564, 1.0, 558], [262380, 0.9836065573770492, 557], [245578, 0.9754098360655737, 556], [249634, 0.9543325526932084, 555], [271957, 0.9402810304449649, 554], [243300, 0.9156908665105387, 553], [255746, 0.9133489461358314, 552], [260462, 0.8805620608899297, 551], [253082, 0.8735362997658079, 550], [245878, 0.8290398126463701, 549], [255717, 0.8231850117096019, 548], [246738, 0.8056206088992974, 547], [253152, 0.8044496487119438, 546], [247579, 0.7962529274004684, 545], [257517, 0.7728337236533958, 544], [246784, 0.765807962529274, 543], [252355, 0.7611241217798594, 542], [255886, 0.7505854800936768, 541], [253073, 0.747072599531616, 540], [246408, 0.7271662763466042, 539], [254418, 0.7072599531615925, 538], [255315, 0.7002341920374707, 537], [244542, 0.6920374707259953, 536], [257657, 0.6908665105386417, 535], [255990, 0.6768149882903981, 534], [245994, 0.6768149882903981, 533], [256598, 0.6662763466042154, 532], [252783, 0.6615925058548009, 531], [40545, 0.6615925058548009, 530], [258036, 0.6498829039812647, 529], [247759, 0.6487119437939111, 528], [246014, 0.6475409836065574, 527], [244832, 0.6416861826697893, 526], [245566, 0.6405152224824356, 525], [252279, 0.6370023419203747, 524], [245573, 0.6334894613583139, 523], [247435, 0.6323185011709602, 522], [40551, 0.6323185011709602, 521], [252943, 0.6311475409836066, 520], [255714, 0.6217798594847775, 519], [257307, 0.6217798594847775, 518], [255716, 0.6112412177985949, 517], [260878, 0.6018735362997658, 516], [251861, 0.6018735362997658, 515], [245562, 0.594847775175644, 514], [252406, 0.5936768149882904, 513], [244574, 0.5889929742388759, 512], [246001, 0.5807962529274004, 511], [252488, 0.5714285714285714, 510], [245574, 0.5679156908665105, 509], [260762, 0.5679156908665105, 508], [257230, 0.5667447306791569, 507], [252318, 0.5573770491803278, 506], [261015, 0.5562060889929742, 505], [261324, 0.5515222482435597, 504], [253022, 0.544496487119438, 503], [278669, 0.5398126463700235, 502], [252347, 0.5339578454332553, 501], [264504, 0.531615925058548, 500], [245560, 0.5304449648711944, 499], [245568, 0.5292740046838408, 498], [255479, 0.5292740046838408, 497], [259222, 0.522248243559719, 496], [252308, 0.5210772833723654, 495], [252409, 0.5199063231850117, 494], [252747, 0.5163934426229508, 493], [255267, 0.5163934426229508, 492], [255878, 0.509367681498829, 491], [245577, 0.5081967213114754, 490], [253258, 0.5070257611241218, 489], [256249, 0.5046838407494145, 488], [258043, 0.5046838407494145, 487], [255928, 0.5023419203747073, 486], [256784, 0.5, 485], [250726, 0.4929742388758782, 484], [257010, 0.4929742388758782, 483], [253350, 0.4859484777517564, 482], [252452, 0.4812646370023419, 481], [245563, 0.477751756440281, 480], [40550, 0.477751756440281, 479], [263181, 0.47540983606557374, 478], [259151, 0.47423887587822017, 477], [252702, 0.47423887587822017, 476], [256684, 0.46955503512880564, 475], [246426, 0.468384074941452, 474], [253128, 0.4672131147540984, 473], [244575, 0.46604215456674475, 472], [256879, 0.4648711943793911, 471], [253862, 0.4648711943793911, 470], [257741, 0.4648711943793911, 469], [245580, 0.4648711943793911, 468], [258025, 0.4637002341920375, 467], [273217, 0.4637002341920375, 466], [263632, 0.46252927400468385, 465], [252708, 0.4613583138173302, 464], [247107, 0.4601873536299766, 463], [262752, 0.4601873536299766, 462], [257816, 0.4601873536299766, 461], [259231, 0.45784543325526933, 460], [260980, 0.45784543325526933, 459], [257946, 0.4566744730679157, 458], [118561, 0.4566744730679157, 457], [253664, 0.45433255269320844, 456], [256995, 0.4531615925058548, 455], [251880, 0.4519906323185012, 454], [258390, 0.4519906323185012, 453], [245043, 0.4519906323185012, 452], [256963, 0.45081967213114754, 451], [255898, 0.45081967213114754, 450], [253414, 0.45081967213114754, 449], [253842, 0.4496487119437939, 448], [255490, 0.4484777517564403, 447], [245265, 0.4484777517564403, 446], [256961, 0.44730679156908665, 445], [246745, 0.446135831381733, 444], [254035, 0.4449648711943794, 443], [244835, 0.4414519906323185, 442], [279640, 0.4414519906323185, 441], [245773, 0.44028103044496486, 440], [245569, 0.44028103044496486, 439], [246037, 0.44028103044496486, 438], [253211, 0.43911007025761123, 437], [252236, 0.43911007025761123, 436], [246406, 0.4379391100702576, 435], [253084, 0.4379391100702576, 434], [260632, 0.4379391100702576, 433], [245582, 0.43676814988290397, 432], [260711, 0.43559718969555034, 431], [245565, 0.43559718969555034, 430], [245572, 0.43559718969555034, 429], [255350, 0.43559718969555034, 428], [246789, 0.4332552693208431, 427], [252791, 0.4332552693208431, 426], [259358, 0.4332552693208431, 425], [257505, 0.4332552693208431, 424], [253256, 0.43208430913348944, 423], [253174, 0.43208430913348944, 422], [257546, 0.4309133489461358, 421], [257992, 0.4309133489461358, 420], [247140, 0.4297423887587822, 419], [252043, 0.42857142857142855, 418], [254109, 0.4274004683840749, 417], [255592, 0.4274004683840749, 416], [257756, 0.4262295081967213, 415], [247439, 0.42271662763466045, 414], [260190, 0.42271662763466045, 413], [254250, 0.4215456674473068, 412], [252659, 0.4203747072599532, 411], [264498, 0.41920374707259955, 410], [257508, 0.41920374707259955, 409], [255509, 0.41920374707259955, 408], [257488, 0.41920374707259955, 407], [253130, 0.4180327868852459, 406], [259181, 0.4168618266978923, 405], [246004, 0.4168618266978923, 404], [249513, 0.41569086651053866, 403], [253222, 0.41569086651053866, 402], [253479, 0.41569086651053866, 401], [259359, 0.41569086651053866, 400], [257903, 0.41451990632318503, 399], [262748, 0.41217798594847777, 398], [259263, 0.41100702576112413, 397], [255858, 0.4098360655737705, 396], [205409, 0.40866510538641687, 395], [262375, 0.40749414519906324, 394], [257246, 0.40749414519906324, 393], [255517, 0.40749414519906324, 392], [251858, 0.40749414519906324, 391], [246416, 0.40749414519906324, 390], [264031, 0.4063231850117096, 389], [255743, 0.4063231850117096, 388], [256411, 0.405152224824356, 387], [247497, 0.4028103044496487, 386], [256947, 0.3992974238875878, 385], [252920, 0.3981264637002342, 384], [256244, 0.3957845433255269, 383], [255574, 0.3957845433255269, 382], [253089, 0.3946135831381733, 381], [258035, 0.3946135831381733, 380], [255736, 0.39344262295081966, 379], [255609, 0.39344262295081966, 378], [246005, 0.3911007025761124, 377], [256158, 0.3911007025761124, 376], [258407, 0.3875878220140515, 375], [245559, 0.38524590163934425, 374], [255515, 0.3840749414519906, 373], [258533, 0.373536299765808, 372], [247433, 0.373536299765808, 371], [271037, 0.37236533957845436, 370], [246917, 0.3711943793911007, 369], [246739, 0.36885245901639346, 368], [246020, 0.36885245901639346, 367], [246015, 0.36768149882903983, 366], [277795, 0.36768149882903983, 365], [258299, 0.3665105386416862, 364], [259771, 0.36533957845433257, 363], [246016, 0.36416861826697894, 362], [255823, 0.3618266978922717, 361], [245760, 0.3594847775175644, 360], [247162, 0.3583138173302108, 359], [257579, 0.3583138173302108, 358], [253027, 0.35714285714285715, 357], [246403, 0.35714285714285715, 356], [246009, 0.3559718969555035, 355], [257846, 0.3524590163934426, 354], [246457, 0.3524590163934426, 353], [275957, 0.34894613583138173, 352], [257525, 0.3477751756440281, 351], [251272, 0.34543325526932084, 350], [252897, 0.34543325526932084, 349], [255325, 0.3442622950819672, 348], [257448, 0.3442622950819672, 347], [252326, 0.3430913348946136, 346], [246112, 0.3430913348946136, 345], [253323, 0.3372365339578454, 344], [253507, 0.3337236533957845, 343], [255731, 0.3325526932084309, 342], [272807, 0.33021077283372363, 341], [272619, 0.32903981264637, 340], [254826, 0.32786885245901637, 339], [260185, 0.32786885245901637, 338], [252973, 0.32669789227166274, 337], [254959, 0.32435597189695553, 336], [260626, 0.3231850117096019, 335], [252945, 0.32201405152224827, 334], [264033, 0.32084309133489464, 333], [253143, 0.3185011709601874, 332], [253813, 0.3185011709601874, 331], [256986, 0.31733021077283374, 330], [255584, 0.31733021077283374, 329], [252343, 0.3161592505854801, 328], [258311, 0.3161592505854801, 327], [252315, 0.3149882903981265, 326], [259074, 0.3149882903981265, 325], [257452, 0.31381733021077285, 324], [253342, 0.31381733021077285, 323], [253194, 0.3126463700234192, 322], [258538, 0.3079625292740047, 321], [246007, 0.3079625292740047, 320], [246422, 0.3044496487119438, 319], [253321, 0.2997658079625293, 318], [260954, 0.29859484777517564, 317], [247295, 0.297423887587822, 316], [247972, 0.297423887587822, 315], [255974, 0.29508196721311475, 314], [246019, 0.29508196721311475, 313], [248154, 0.2939110070257611, 312], [258527, 0.29156908665105385, 311], [257515, 0.28805620608899296, 310], [206952, 0.28805620608899296, 309], [258376, 0.28805620608899296, 308], [256841, 0.2857142857142857, 307], [246743, 0.2822014051522248, 306], [251700, 0.2786885245901639, 305], [246792, 0.27634660421545665, 304], [253291, 0.275175644028103, 303], [257648, 0.27400468384074944, 302], [253012, 0.2728337236533958, 301], [255817, 0.2728337236533958, 300], [252098, 0.2728337236533958, 299], [255373, 0.2728337236533958, 298], [260060, 0.27049180327868855, 297], [247588, 0.2693208430913349, 296], [256026, 0.2693208430913349, 295], [254583, 0.265807962529274, 294], [246024, 0.265807962529274, 293], [261976, 0.2646370023419204, 292], [247189, 0.26229508196721313, 291], [247437, 0.26229508196721313, 290], [246417, 0.25995316159250587, 289], [260188, 0.25878220140515223, 288], [206733, 0.25644028103044497, 287], [253448, 0.25644028103044497, 286], [246847, 0.2529274004683841, 285], [278607, 0.2529274004683841, 284], [255720, 0.24941451990632318, 283], [246748, 0.24824355971896955, 282], [252957, 0.2459016393442623, 281], [257549, 0.2423887587822014, 280], [247494, 0.24004683840749413, 279], [257528, 0.2388758782201405, 278], [255765, 0.2388758782201405, 277], [270755, 0.23770491803278687, 276], [252925, 0.23653395784543327, 275], [252471, 0.234192037470726, 274], [206730, 0.23185011709601874, 273], [259142, 0.22950819672131148, 272], [258026, 0.2259953161592506, 271], [252302, 0.2259953161592506, 270], [246830, 0.2259953161592506, 269], [257491, 0.22482435597189696, 268], [246737, 0.22131147540983606, 267], [246012, 0.22014051522248243, 266], [256580, 0.21311475409836064, 265], [252964, 0.2107728337236534, 264], [255485, 0.2107728337236534, 263], [271449, 0.20960187353629978, 262], [247767, 0.20843091334894615, 261], [257496, 0.20608899297423888, 260], [246402, 0.202576112412178, 259], [247238, 0.20140515222482436, 258], [246420, 0.20140515222482436, 257], [252720, 0.1990632318501171, 256], [255694, 0.19789227166276346, 255], [257038, 0.1955503512880562, 254], [278779, 0.19320843091334894, 253], [247294, 0.1920374707259953, 252], [252739, 0.18969555035128804, 251], [247804, 0.1885245901639344, 250], [247175, 0.1873536299765808, 249], [257561, 0.18618266978922718, 248], [264281, 0.18501170960187355, 247], [255825, 0.18384074941451992, 246], [254774, 0.18384074941451992, 245], [256953, 0.18032786885245902, 244], [254169, 0.18032786885245902, 243], [255131, 0.17447306791569087, 242], [272388, 0.17330210772833723, 241], [257205, 0.17330210772833723, 240], [247198, 0.16744730679156908, 239], [247431, 0.16393442622950818, 238], [257532, 0.16393442622950818, 237], [255301, 0.16276346604215455, 236], [206226, 0.16159250585480095, 235], [253780, 0.16159250585480095, 234], [252706, 0.16042154566744732, 233], [258540, 0.15690866510538642, 232], [246039, 0.15690866510538642, 231], [257811, 0.15105386416861827, 230], [252334, 0.148711943793911, 229], [249072, 0.14754098360655737, 228], [255252, 0.14754098360655737, 227], [253058, 0.14754098360655737, 226], [246783, 0.14402810304449648, 225], [40552, 0.14285714285714285, 224], [244568, 0.14168618266978922, 223], [260732, 0.1405152224824356, 222], [252912, 0.13934426229508196, 221], [246483, 0.13817330210772832, 220], [256836, 0.1358313817330211, 219], [263354, 0.12997658079625293, 218], [255590, 0.12412177985948478, 217], [251770, 0.12412177985948478, 216], [253292, 0.12177985948477751, 215], [255568, 0.11475409836065574, 214], [254054, 0.11358313817330211, 213], [251740, 0.11124121779859485, 212], [255338, 0.11007025761124122, 211], [254172, 0.10421545667447307, 210], [258947, 0.10304449648711944, 209], [263000, 0.09836065573770492, 208], [256299, 0.09836065573770492, 207], [254215, 0.09718969555035128, 206], [257535, 0.09484777517564402, 205], [247691, 0.0936768149882904, 204], [246754, 0.0936768149882904, 203], [267423, 0.09133489461358314, 202], [256962, 0.09016393442622951, 201], [256901, 0.08782201405152225, 200], [252466, 0.08430913348946135, 199], [262653, 0.08313817330210772, 198], [252944, 0.08079625292740047, 197], [262027, 0.08079625292740047, 196], [253588, 0.07728337236533958, 195], [256172, 0.07377049180327869, 194], [270527, 0.07259953161592506, 193], [255615, 0.07259953161592506, 192], [254791, 0.07142857142857142, 191], [278489, 0.0702576112412178, 190], [252653, 0.06908665105386416, 189], [279081, 0.06791569086651054, 188], [246424, 0.06791569086651054, 187], [258539, 0.06323185011709602, 186], [253023, 0.05620608899297424, 185], [278133, 0.05503512880562061, 184], [253746, 0.05152224824355972, 183], [254923, 0.04918032786885246, 182], [255326, 0.04918032786885246, 181], [258136, 0.04918032786885246, 180], [253053, 0.0468384074941452, 179], [247730, 0.0468384074941452, 178], [251573, 0.04332552693208431, 177], [263367, 0.040983606557377046, 176], [259355, 0.03981264637002342, 175], [245584, 0.03864168618266979, 174], [254324, 0.03864168618266979, 173], [272390, 0.03864168618266979, 172], [252730, 0.03747072599531616, 171], [246716, 0.03629976580796253, 170], [255756, 0.03395784543325527, 169], [262997, 0.03044496487119438, 168], [253792, 0.03044496487119438, 167], [256938, 0.02927400468384075, 166], [252293, 0.026932084309133488, 165], [256906, 0.02576112412177986, 164], [262279, 0.02576112412177986, 163], [261038, 0.02459016393442623, 162], [247959, 0.0234192037470726, 161], [258382, 0.02224824355971897, 160], [255226, 0.02224824355971897, 159], [252729, 0.02224824355971897, 158], [253250, 0.02107728337236534, 157], [246010, 0.02107728337236534, 156], [258526, 0.01990632318501171, 155], [255745, 0.01873536299765808, 154], [252937, 0.01873536299765808, 153], [252464, 0.01873536299765808, 152], [257059, 0.01873536299765808, 151], [272387, 0.01873536299765808, 150], [252213, 0.01873536299765808, 149], [254760, 0.01873536299765808, 148], [249818, 0.01873536299765808, 147], [263565, 0.01873536299765808, 146], [247686, 0.01873536299765808, 145], [246031, 0.01873536299765808, 144], [257457, 0.01873536299765808, 143], [261877, 0.01873536299765808, 142], [278773, 0.01873536299765808, 141], [247568, 0.01873536299765808, 140], [249081, 0.01873536299765808, 139], [252275, 0.01873536299765808, 138], [277426, 0.01873536299765808, 137], [262654, 0.01873536299765808, 136], [272916, 0.01873536299765808, 135], [259772, 0.01873536299765808, 134], [247453, 0.01873536299765808, 133], [246418, 0.01873536299765808, 132], [252756, 0.01873536299765808, 131], [254281, 0.01873536299765808, 130], [257390, 0.01756440281030445, 129], [251911, 0.01639344262295082, 128], [260437, 0.01639344262295082, 127], [262482, 0.01522248243559719, 126], [252939, 0.01522248243559719, 125], [247434, 0.01522248243559719, 124], [252952, 0.01522248243559719, 123], [252954, 0.01522248243559719, 122], [252962, 0.01522248243559719, 121], [253015, 0.01522248243559719, 120], [259266, 0.01522248243559719, 119], [253064, 0.01522248243559719, 118], [253070, 0.01522248243559719, 117], [259223, 0.01522248243559719, 116], [259174, 0.01522248243559719, 115], [262749, 0.01522248243559719, 114], [253100, 0.01522248243559719, 113], [258948, 0.01522248243559719, 112], [253132, 0.01522248243559719, 111], [258874, 0.01522248243559719, 110], [262782, 0.01522248243559719, 109], [253275, 0.01522248243559719, 108], [253322, 0.01522248243559719, 107], [253344, 0.01522248243559719, 106], [258532, 0.01522248243559719, 105], [253505, 0.01522248243559719, 104], [253515, 0.01522248243559719, 103], [263316, 0.01522248243559719, 102], [253686, 0.01522248243559719, 101], [246622, 0.01522248243559719, 100], [253731, 0.01522248243559719, 99], [253883, 0.01522248243559719, 98], [253998, 0.01522248243559719, 97], [258342, 0.01522248243559719, 96], [246419, 0.01522248243559719, 95], [254207, 0.01522248243559719, 94], [246411, 0.01522248243559719, 93], [246409, 0.01522248243559719, 92], [263473, 0.01522248243559719, 91], [263555, 0.01522248243559719, 90], [254285, 0.01522248243559719, 89], [254471, 0.01522248243559719, 88], [254784, 0.01522248243559719, 87], [246033, 0.01522248243559719, 86], [246030, 0.01522248243559719, 85], [254917, 0.01522248243559719, 84], [255176, 0.01522248243559719, 83], [258037, 0.01522248243559719, 82], [255346, 0.01522248243559719, 81], [255351, 0.01522248243559719, 80], [255352, 0.01522248243559719, 79], [255355, 0.01522248243559719, 78], [258034, 0.01522248243559719, 77], [255483, 0.01522248243559719, 76], [257938, 0.01522248243559719, 75], [255524, 0.01522248243559719, 74], [255641, 0.01522248243559719, 73], [255668, 0.01522248243559719, 72], [255672, 0.01522248243559719, 71], [245962, 0.01522248243559719, 70], [269057, 0.01522248243559719, 69], [255688, 0.01522248243559719, 68], [260735, 0.01522248243559719, 67], [260736, 0.01522248243559719, 66], [260779, 0.01522248243559719, 65], [252356, 0.01522248243559719, 64], [252424, 0.01522248243559719, 63], [261039, 0.01522248243559719, 62], [252426, 0.01522248243559719, 61], [252487, 0.01522248243559719, 60], [252534, 0.01522248243559719, 59], [251406, 0.01522248243559719, 58], [260058, 0.01522248243559719, 57], [250827, 0.01522248243559719, 56], [261176, 0.01522248243559719, 55], [250142, 0.01522248243559719, 54], [250124, 0.01522248243559719, 53], [252665, 0.01522248243559719, 52], [259980, 0.01522248243559719, 51], [252709, 0.01522248243559719, 50], [259768, 0.01522248243559719, 49], [252786, 0.01522248243559719, 48], [259357, 0.01522248243559719, 47], [252804, 0.01522248243559719, 46], [252867, 0.01522248243559719, 45], [252909, 0.01522248243559719, 44], [252924, 0.01522248243559719, 43], [247512, 0.01522248243559719, 42], [252926, 0.01522248243559719, 41], [247496, 0.01522248243559719, 40], [252935, 0.01522248243559719, 39], [257523, 0.01522248243559719, 38], [244541, 0.01522248243559719, 37], [256929, 0.01522248243559719, 36], [256934, 0.01522248243559719, 35], [257011, 0.01522248243559719, 34], [257031, 0.01522248243559719, 33], [257332, 0.01522248243559719, 32], [257080, 0.01522248243559719, 31], [260493, 0.01522248243559719, 30], [255766, 0.01522248243559719, 29], [245581, 0.01522248243559719, 28], [270804, 0.01522248243559719, 27], [255832, 0.01522248243559719, 26], [255853, 0.01522248243559719, 25], [271550, 0.01522248243559719, 24], [272084, 0.01522248243559719, 23], [257547, 0.01522248243559719, 22], [257545, 0.01522248243559719, 21], [272472, 0.01522248243559719, 20], [256033, 0.01522248243559719, 19], [272641, 0.01522248243559719, 18], [256263, 0.01522248243559719, 17], [273218, 0.01522248243559719, 16], [256298, 0.01522248243559719, 15], [273357, 0.01522248243559719, 14], [256454, 0.01522248243559719, 13], [276925, 0.01522248243559719, 12], [277427, 0.01522248243559719, 11], [256557, 0.01522248243559719, 10], [253932, 0.0117096018735363, 9], [256895, 0.0117096018735363, 8], [253829, 0.00936768149882904, 7], [252641, 0.00819672131147541, 6], [246404, 0.00702576112412178, 5], [246742, 0.00585480093676815, 4], [257724, 0.00351288056206089, 3], [251662, 0.00117096018735363, 2], [258621, 0.0, 1]]
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 2796.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
renderSlide2() {
const { moved } = this.state;
const playing = moved[2] || false;
return (
<div className="slide-2" onMouseMove={this.onMouseMove(2)}>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 212.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
renderSlide3() {
const { moved } = this.state;
const playing = moved[3] || false;
return (
<div className="slide-3" onMouseMove={this.onMouseMove(3)}>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 212.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
renderCoinvestors() {
const { coinvestors } = this.props.item;
if (!coinvestors || !coinvestors.length) {
return null;
}
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 158.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
renderInvestments() {
const { recent_investments } = this.props.item;
if (!recent_investments || !recent_investments.length) {
return null;
}
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 158.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
<Row>
<Column large={6}>
{this.renderFilter('companies', `Your investments at ${competitor.name}`, { path: CompaniesSearchPath, optionComponent: Company })}
</Column>
<Column large={6}>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 115.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
<Row>
<Column large={6}>
{this.renderFilter('companies', `Your investments at ${competitor.name}`, { path: CompaniesSearchPath, optionComponent: Company })}
</Column>
<Column large={6}>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 115.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
<Row>
<Column large={6}>{this.renderInput('role', `Title at ${competitor.name}`)}</Column>
<Column large={6}>{this.renderInput('photo', 'Photo (URL)')}</Column>
</Row>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 87.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
<Row>
<Column large={6}>{this.renderInput('role', `Title at ${competitor.name}`)}</Column>
<Column large={6}>{this.renderInput('crunchbase_id', 'Crunchbase Profile')}</Column>
</Row>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 87.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
<Textfit key="subValue" mode="multi" min={this.props.min} max={this.props.max}>
<div className="textfit-cell subheading">
{this.state.subValue}
</div>
</Textfit>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 82.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
<Textfit key="value" mode="multi" min={this.props.min} max={this.props.max}>
<div className="textfit-cell">
{this.state.value}
</div>
</Textfit>,
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 82.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
renderHeader() {
const { page, header } = this.props;
if (!header) {
return null;
}
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 81.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
renderFooter() {
const { page, footer } = this.props;
if (!footer) {
return null;
}
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 81.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
<Row>
<Column large={6}>{this.renderInput('homepage', 'Personal Homepage')}</Column>
<Column large={6}>{this.renderAutoInput('location', 'City', CompetitorsLocationsPathWithQuery)}</Column>
</Row>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 75.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
<Row>
<Column large={6}>{this.renderInput('homepage', 'Your Personal Homepage')}</Column>
<Column large={6}>{this.renderAutoInput('city', 'Your City', FounderLocationsPath)}</Column>
</Row>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 75.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 11 locations. Consider refactoring. Open
<Row>
<Column large={6}>{this.renderInput('first_name', 'First Name')}</Column>
<Column large={6}>{this.renderInput('last_name', 'Last Name')}</Column>
</Row>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 74.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 11 locations. Consider refactoring. Open
<Row>
<Column large={6}>{this.renderInput('al_id', 'AngelList ID')}</Column>
<Column large={6}>{this.renderInput('crunchbase_id', 'Crunchbase ID')}</Column>
</Row>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 74.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 11 locations. Consider refactoring. Open
<Row>
<Column large={6}>{this.renderInput('twitter', 'Twitter Username')}</Column>
<Column large={6}>{this.renderInput('facebook', 'Facebook Username')}</Column>
</Row>
- Read upRead up
- Create a ticketCreate a ticket
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 74.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76