<commit_before>mathia
======

My 2014-2015 IB Math HL Internal Assessment

Wikipedia network topography analysis, written in Python. No title yet.

Dataset thanks to [<NAME>ve](http://haselgrove.id.au/wikipedia.htm)––you can get it at that link. I include `links-simple-sorted.txt` and `titles-sorted.txt` in the same directory as my scripts; code refers to relative positions in several places, so leave them there.

## File index (OUTDATED)

+ `analysis.py` does big-scale analysis of the network (limited link-counting capability right now)
+ `listmake.py` isn't actually commonly used, but may be used to pickle the links data once and for all. For now, just includes the stock data-to-list code that I'm copying and pasting everywhere because fisi
+ `localized-analysis.py` does analysis on a randomly selected node, including the calculation of the clustering coefficient.


## To do list

+ Debug clustering coefficient calculation; returns values greater than 1, which should be maximum value. Current thought: some edges will be counted twice if two neighbors both link to the other, but not all edges will be counted twice (the link does not report inlinks).
+ Add large-scale clustering coefficient (list, average) to analysis.py
+ Run analytics in a list without any redirects (single outgoing link)<commit_msg>Update readmy, parallel<commit_after>mathia
======

My 2014-2015 IB Math HL Internal Assessment

Wikipedia network topography analysis, written in Python. No title yet.

Dataset thanks to [<NAME>](http://haselgrove.id.au/wikipedia.htm)––you can get it at that link. I include `links-simple-sorted.txt` and `titles-sorted.txt` in the same directory as my scripts; code refers to relative positions in several places, so leave them there.

## File index (OUTDATED)

+ `analysis.py` does big-scale analysis of the network (limited link-counting capability right now)
+ `listmake.py` isn't actually commonly used, but may be used to pickle the links data once and for all. For now, just includes the stock data-to-list code that I'm copying and pasting everywhere because fisi
+ `localized-analysis.py` does analysis on a randomly selected node, including the calculation of the clustering coefficient.


## To do list

+ Debug clustering coefficient calculation; returns values greater than 1, which should be maximum value. Current thought: some edges will be counted twice if two neighbors both link to the other, but not all edges will be counted twice (the link does not report inlinks).
+ Add large-scale clustering coefficient (list, average) to analysis.py
+ Parallel processing!
{'fraction_non_alphanumeric': 0.06983883346124328, 'fraction_numerical': 0.006907137375287797, 'mean_word_length': 4.793333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6969950', 'n_tokens_mistral': 701, 'n_tokens_neox': 646, 'n_words': 356}