-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPoints.cs
109 lines (96 loc) · 2.5 KB
/
Points.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
using System.Collections.Generic;
namespace pulse
{
/// <summary>
/// Point values.
/// </summary>
public static class Points
{
/// <summary>
/// The bug report.
/// </summary>
public const string BugReport = "BugReport";
/// <summary>
/// The collaboration.
/// </summary>
public const string Collaboration = "Collaboration";
/// <summary>
/// The created work.
/// </summary>
public const string CreatedWork = "CreatedWork";
/// <summary>
/// The due diligence.
/// </summary>
public const string DueDiligence = "DueDiligence";
/// <summary>
/// The finish work.
/// </summary>
public const string FinishWork = "FinishWork";
/// <summary>
/// The house cleaning.
/// </summary>
public const string HouseCleaning = "HouseCleaning";
/// <summary>
/// The lacking verbosity.
/// </summary>
public const string LackingVerbosity = "LackingVerbosity";
/// <summary>
/// The lack of purpose.
/// </summary>
public const string LackOfPurpose = "LackOfPurpose";
/// <summary>
/// The participation.
/// </summary>
public const string Participation = "Participation";
/// <summary>
/// The taking ownership.
/// </summary>
public const string TakingOwnership = "TakingOwnership";
/// <summary>
/// The verbosity.
/// </summary>
public const string Verbosity = "Verbosity";
/// <summary>
/// Defaults the values.
/// </summary>
/// <returns>Default values for points.</returns>
public static IDictionary<string, double> DefaultValues()
{
return new Dictionary<string, double>()
{
{ Points.LackingVerbosity, -0.2 },
{ Points.LackOfPurpose, -0.2 },
{ Points.BugReport, 0.7 },
{ Points.Collaboration, 0.7 },
{ Points.CreatedWork, 0.02 },
{ Points.DueDiligence, 0.4 },
{ Points.FinishWork, 0.5 },
{ Points.HouseCleaning, 0.1 },
{ Points.Participation, 0.3 },
{ Points.TakingOwnership, 0.1 },
{ Points.Verbosity, 0.8 }
};
}
/// <summary>
/// Defaults the values zeroed.
/// </summary>
/// <returns></returns>
public static IDictionary<string, double> EmptyDefaultValues()
{
return new Dictionary<string, double>()
{
{ Points.LackingVerbosity, 0 },
{ Points.LackOfPurpose, 0 },
{ Points.BugReport, 0 },
{ Points.Collaboration, 0 },
{ Points.CreatedWork, 0 },
{ Points.DueDiligence, 0 },
{ Points.FinishWork, 0 },
{ Points.HouseCleaning, 0 },
{ Points.Participation, 0 },
{ Points.TakingOwnership, 0 },
{ Points.Verbosity, 0 }
};
}
}
}