Source code and data for the paper "Towards Modelling and Simulation of Organisational Routines".
Python requirements can be found in requirements.txt.
To run the data extraction, you will need a GitHub access token.
There are three Jupyter notebooks:
-
notebooks/01-Data_Extraction.ipynb: Loads data from the GitHub REST API. (note: data can already be found indata/data.xlsx). -
notebooks/02-Data_Analysis.ipynb: Loadsdata/data.xlsxand applies some pre-processing before loading into routines data model objects. It then extracts recurrent action patterns and builds a summary statistics table about the patterns todata/summary.xlsx. Finally, a state transition matrix is calculated and output todata/transition_matrix.xlsx. -
notebooks/03-Plot_Figures.ipynb: Renders the routines data model class diagram from a PlantUML description infigures/routines_model.txtas an image output tofigures/routines_model.png(Fig. 1), then loadsdata/summary.xlsxanddata/transition_matrix.xlsxto generate respective LaTeX tables (Tables 4 and 5). The transition matrix is then used to plot a visualisation of the Markov chain that is output tofigures/markov_chain_plot.pdf(Fig. 2).