Skip to content

Instantly share code, notes, and snippets.

View igoratf's full-sized avatar
🎯
Focusing

Igor Farias igoratf

🎯
Focusing
View GitHub Profile
@igoratf
igoratf / get_metrics.py
Created October 6, 2021 11:19
Extract metrics from React repositories
import csv
import os
import re
import sys
def get_data(directory, filename, name):
f = open(directory + '/' + filename)
lines = 0
imports = 0
#include <stdio.h>
#include <assert.h>
#include <pthread.h>
long int counter = 0;
void* run (void* args) {
int my_id;
long int j;