Coder Social home page Coder Social logo

alyssafrazee / github_analysis Goto Github PK

View Code? Open in Web Editor NEW
33.0 3.0 3.0 273 KB

code for analysis of github repo ownership and gender

Home Page: http://alyssafrazee.com/gender-and-github-code.html

Python 28.98% Shell 1.88% R 8.44% JavaScript 60.70%

github_analysis's Introduction

gender of GitHub repo owners


This repository contains the code and data used to analyze the gender breakdown of owners of public GitHub repositories. I wrote a blog post about what I found.

To reproduce the analysis, run scripts in the following order:

  • get_github_info_byday.py: uses the GitHub API to scrape repository data. (nb: This will take something like 60 hours to run).
  • merge_files.sh: puts all scraped data together in a big text file
  • make_database.R: dumps the scraped data into a SQLite database
  • analyze_data.py: processes the data
  • bargraph.js: JavaScript/D3 code used to make the graphic showing the results. Alex Wilson made major contributions to this code.

data

The data I scraped in get_github_info_byday.py and processed with merge_files.sh and make_database.R is available in a .db file here. I removed all repo owner last names.

dependencies

Python libraries: PyGithub, Unidecode, Pandas, SexMachine, Matplotlib. Make sure these are installed before running scripts. See requirements.txt for a more detailed specification of Python dependencies, including versions.

R packages: devtools, proto, DBI, chron, RSQLite, and RSQLITE.extfuns. All can be installed from CRAN in R using the install.packages function.

github_analysis's People

Contributors

alyssafrazee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

github_analysis's Issues

Yo. IDEA.

screenshot 2014-08-21 00 44 39 2

What if we changed this to be checkboxes? And then it would control sorting by the sum of the elements rather than each one individually. Because you could recreate this situation, but also do so much more!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.