We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 15 columns, instead of 6 in line 7.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealedClassesPerNamespaceThatAre,MethodsPerClass,ClassesPerNamespace,publicMethodsPerClass,privateMethodsPerClass,protectedMethodsPerClass,overrideMethodsPerClass,ParametersPerMethod,staticClassesPerNamespaceThatAre,UsageOfPartialClass,UsageOfVerbsInMethodNames,AverageLengthOfMethodNames,CodeToCommentRatio,PercentageOfEnglishWordTokens,Tag | |
0,1,1,0,0,0,0,1,0,0,0,4,0.0163934426229508,0.0833333333333333,Troelson | |
0,1,1,0,0,0,0,1,0,0,0,15.75,0.0855855855855856,0.0833333333333333,Troelson | |
0,2.5,1,0,0.5,1.5,0,1.4,0,0.0714285714285714,0.125,18,0.0561224489795918,0.333333333333333,Troelson | |
0,1.66666666666667,1,0,0.333333333333333,1,0,1.4,0,0.0714285714285714,0.125,9,0.049438202247191,0.958333333333333,Troelson | |
0,1.75,1,0,0.25,1.25,0,1.57142857142857,0,0.142857142857143,0.208333333333333,7.33333333333333,0.0446927374301676,1.08333333333333,Troelson | |
0,1.6,1,0,0.2,1.2,0,1.625,0,0.214285714285714,0.291666666666667,9,0.041025641025641,1.20833333333333,Troelson | |
0,2.33333333333333,1,0.833333333333333,0.166666666666667,1.1666 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
List<PlugIn> plugIns = new List<PlugIn> (); | |
//Create some plugins | |
var keys = Enumerable.Range(0,100).Select(e => Guid.NewGuid().ToString()).ToArray(); | |
for (int i = 0; i < 1000000; i++) | |
{ | |
plugIns.Add(new PlugIn(keys[new Random().Next(keys.Length-1)],"Some thing",Console.WriteLine)); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hasDup = plugIns.ToLookup(plugIn => plugIn.ID).Count != plugIns.Count; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PlugIn | |
{ | |
public string ID { get; set; } | |
public string Description { get; set; } | |
public Action DoThis { get; set;} | |
public PlugIn(string id, string des, Action act) | |
{ | |
ID = id; | |
Description = des; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var duplicates = plugIns.GroupBy(i => i.ID) | |
.Where(g => g.Count() > 1) | |
.ToDictionary(g => g.Key, g => g.Select(a => a.Description).ToList()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
List<Employee> testSet = new List<Employee> (); | |
for (int i = 0; i < 20000; i++) | |
{ | |
testSet.Add(new Employee(Guid.NewGuid().ToString(),"345")); | |
} | |
Stopwatch w = new Stopwatch (); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class SearchEx | |
{ | |
public static IList<string> NGrams( string sentence, int q) | |
{ | |
int total = sentence.Length - q; | |
List<string> tokens = new List<string>(); | |
for (int i = 0; i <= total; i++) | |
tokens.Add(sentence.Substring(i, q)); | |
return tokens; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interesting contemporary communication photography bike birke blog blogs atony james apulia ataka australian big tvs acupuncture administration advertising brochure budget jewellery manufacturer manufacturers provider recruitment hypnotist laptops buffalo mozzarella organizer moulds consultant conservatory construction distributor consultancy organiser masspressies entertainment developments experiences experience | |
temps derailleurs koi domaineers looseners lot3 firenze pcs modded mud bugz partitioning jewellers | |
valuer sms sandwell limos ubique usbs teles ssfl flynn waggons entertainer | |
installers installer installation furnishing discoveries professional provider providers centre | |
measurement ny pd partioning dj djs accommodation accessories refurbishment petitioners coaters | |
maintenance conveyancers improvements sourcing conveniences dvds chillis voip fones wine bottlers | |
programming furnishing agricultural albury alicante andaluci antigua mediterranean framersmallaga conservatories consolidation adriatic a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//A very basic but smart code comparer for C# | |
//Written using Microsoft.CodeAnalysis.CSharp and LINQ | |
public class SmartComparer | |
{ | |
public static string Code1 { get; set; } | |
public static string Code2 { get; set; } | |
public static IEnumerable<ClassDeclarationSyntax> Classes1 { get; set; } | |
public static IEnumerable<ClassDeclarationSyntax> Classes2 { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string code_1 = @"public class Employee | |
{ | |
private int _Age; | |
private string _Name; | |
public int Age | |
{ | |
get { return _Age; } | |
} |