Skip to content

Commit

Permalink
dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
sophieball committed Feb 16, 2019
1 parent 8c55552 commit 6b7e623
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project_lang_div.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
from dbs import *

# calculates language diversity of a project in a window
# input:
Expand All @@ -8,7 +9,7 @@
# contributor:projects mapping in a window prior to win
# win: the number of current window, 0 indexed
# output: language diversity [0,1] of this project in this window.
def get_lang_div(session, projects, contributors, contr_projs_win, win, langs):
def get_lang_div(pid, contributors, contr_projs_win, win, langs):
team_size = len(contributors)
if team_size == 0:
return 0
Expand Down

0 comments on commit 6b7e623

Please sign in to comment.