Skip to content

Commit

Permalink
Merge pull request #85 from austenstone/fix-tests
Browse files Browse the repository at this point in the history
chore: Update npm dependencies for json-2-csv and jstoxml
  • Loading branch information
austenstone authored Aug 29, 2024
2 parents 08b33f7 + dde9082 commit a4e7703
Show file tree
Hide file tree
Showing 10 changed files with 139,859 additions and 53 deletions.
37 changes: 28 additions & 9 deletions __tests__/mock/enterprise-usage-summary.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
<h1>Copilot Usage<br>10/14/2023 - 10/15/2023</h1>
<h3>Suggestions: 10,200</h3>
<h3>Acceptances: 8,100</h3>
<h3>Acceptance Rate: 79.41%</h3>
<h3>Lines of Code Accepted: 8,500</h3>
<h1>Copilot Usage<br>2 days (10/14/2023 - 10/15/2023)</h1>
<h2>Copilot Chat</h2>
<ul><li>Acceptances: 102</li><li>Turns: 805</li><li>Acceptance Rate: 12.67%</li><li>Average Daily Users: 10.00</li></ul>

```mermaid
---
config:
xyChart:
width: 90
height: 500
xAxis:
labelPadding: 20
themeVariables:
xyChart:
backgroundColor: "transparent"
---
xychart-beta
title "Chat Accepts & Acceptance Rate"
x-axis ["10/14", "10/15"]
y-axis "Chat Acceptances" 0 --> 67
bar [45, 57]
line [8.614285714285714, 8.393406593406594]
```
<h2>Copilot Completions</h2>
<ul><li>Suggestions: 10,200</li><li>Acceptances: 8,100</li><li>Acceptance Rate: 79.41%</li><li>Lines of Code Accepted: 8,500</li></ul>

```mermaid
---
Expand Down Expand Up @@ -50,7 +70,7 @@ title Language Usage
"python" : 8200
"javascript" : 2000
```
<table><tr><th>Language</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>python</td><td>8,200</td><td>6,500</td><td>79.27%</td><td>9,400</td><td>6,700</td><td>20</td></tr><tr><td>javascript</td><td>2,000</td><td>1,400</td><td>70.00%</td><td>3,100</td><td>2,000</td><td>10</td></tr></table>
<table><tr><th>Language</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>python</td><td>8,200</td><td>6,500</td><td>79.27%</td><td>9,400</td><td>6,700</td><td>5</td></tr><tr><td>javascript</td><td>2,000</td><td>1,400</td><td>70.00%</td><td>3,100</td><td>2,000</td><td>5</td></tr></table>
<h1>Editor Usage</h1>

```mermaid
Expand All @@ -59,8 +79,7 @@ title Editor Usage
"vscode" : 8100
"jetbrains" : 2100
```
<table><tr><th>Editor</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>vscode</td><td>8,100</td><td>6,400</td><td>79.01%</td><td>9,300</td><td>6,600</td><td>20</td></tr><tr><td>jetbrains</td><td>2,100</td><td>1,500</td><td>71.43%</td><td>3,200</td><td>2,100</td><td>10</td></tr></table>
<table><tr><th>Editor</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>vscode</td><td>8,100</td><td>6,400</td><td>79.01%</td><td>9,300</td><td>6,600</td><td>5</td></tr><tr><td>jetbrains</td><td>2,100</td><td>1,500</td><td>71.43%</td><td>3,200</td><td>2,100</td><td>5</td></tr></table>
<h1>Daily Usage</h1>
<h3>The most active day was 10/15/2023 with 15 active users.</h3>
<h3>The day with the highest acceptance rate was 10/15/2023 with an acceptance rate of 98.08%.</h3>
<ul><li>Most Active Day: 10/15/2023 (15 active users)</li><li>Highest Acceptance Rate: 10/15/2023 (98.08%)</li></ul>
<table><tr><th>Day</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th><th>Chat Acceptances</th><th>Chat Turns</th><th>Active Chat Users</th></tr><tr><td>10/14/2023</td><td>5,000</td><td>3,000</td><td>60.00%</td><td>7,000</td><td>3,500</td><td>15</td><td>45</td><td>350</td><td>8</td></tr><tr><td>10/15/2023</td><td>5,200</td><td>5,100</td><td>98.08%</td><td>5,300</td><td>5,000</td><td>15</td><td>57</td><td>455</td><td>12</td></tr></table>
4 changes: 3 additions & 1 deletion __tests__/mock/mock-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,4 +365,6 @@ export const exampleSeatAssignmentResponse: RestEndpointMethodTypes["copilot"]["
"site_admin": false
}
}
];
];

createMockData();
13 changes: 1 addition & 12 deletions __tests__/mock/org-seat-info-summary.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
<h1>Seat Info</h1>
<h3>Seat Management Setting: assign_selected</h3>
<h3>Public Code Suggestions Enabled: block</h3>
<h3>IDE Chat Enabled: undefined</h3>
<h3>Platform IDE Enabled: undefined</h3>
<h3>Platform Chat Enabled: undefined</h3>
<h3>CLI Enabled: undefined</h3>
<h3>Total Seats: 12</h3>
<h3>Added this cycle: 9</h3>
<h3>Pending invites: 0</h3>
<h3>Pending cancellations: 0</h3>
<h3>Active this cycle: 12</h3>
<h3>Inactive this cycle: 11</h3>
<ul><li>Seat Management Setting: assign_selected</li><li>Public Code Suggestions Enabled: block</li><li>IDE Chat Enabled: undefined</li><li>Platform IDE Enabled: disabled</li><li>Platform Chat Enabled: undefined</li><li>CLI Enabled: undefined</li><li>Total Seats: 12</li><li>Added this cycle: 9</li><li>Pending invites: 0</li><li>Pending cancellations: 0</li><li>Active this cycle: 12</li><li>Inactive this cycle: 11</li></ul>
37 changes: 28 additions & 9 deletions __tests__/mock/org-usage-summary.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
<h1>Copilot Usage<br>10/14/2023 - 10/15/2023</h1>
<h3>Suggestions: 1,800</h3>
<h3>Acceptances: 1,400</h3>
<h3>Acceptance Rate: 77.78%</h3>
<h3>Lines of Code Accepted: 1,900</h3>
<h1>Copilot Usage<br>2 days (10/14/2023 - 10/15/2023)</h1>
<h2>Copilot Chat</h2>
<ul><li>Acceptances: 89</li><li>Turns: 626</li><li>Acceptance Rate: 14.22%</li><li>Average Daily Users: 6.00</li></ul>

```mermaid
---
config:
xyChart:
width: 90
height: 500
xAxis:
labelPadding: 20
themeVariables:
xyChart:
backgroundColor: "transparent"
---
xychart-beta
title "Chat Accepts & Acceptance Rate"
x-axis ["10/14", "10/15"]
y-axis "Chat Acceptances" 0 --> 67
bar [32, 57]
line [10.72, 8.964788732394366]
```
<h2>Copilot Completions</h2>
<ul><li>Suggestions: 1,800</li><li>Acceptances: 1,400</li><li>Acceptance Rate: 77.78%</li><li>Lines of Code Accepted: 1,900</li></ul>

```mermaid
---
Expand Down Expand Up @@ -50,7 +70,7 @@ title Language Usage
"python" : 1200
"ruby" : 600
```
<table><tr><th>Language</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>python</td><td>1,200</td><td>800</td><td>66.67%</td><td>2,200</td><td>1,550</td><td>15</td></tr><tr><td>ruby</td><td>600</td><td>500</td><td>83.33%</td><td>700</td><td>350</td><td>6</td></tr></table>
<table><tr><th>Language</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>python</td><td>1,200</td><td>800</td><td>66.67%</td><td>2,200</td><td>1,550</td><td>6</td></tr><tr><td>ruby</td><td>600</td><td>500</td><td>83.33%</td><td>700</td><td>350</td><td>3</td></tr></table>
<h1>Editor Usage</h1>

```mermaid
Expand All @@ -59,8 +79,7 @@ title Editor Usage
"vscode" : 1200
"jetbrains" : 600
```
<table><tr><th>Editor</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>vscode</td><td>1,200</td><td>950</td><td>79.17%</td><td>2,200</td><td>1,350</td><td>13</td></tr><tr><td>jetbrains</td><td>600</td><td>350</td><td>58.33%</td><td>700</td><td>550</td><td>8</td></tr></table>
<table><tr><th>Editor</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>vscode</td><td>1,200</td><td>950</td><td>79.17%</td><td>2,200</td><td>1,350</td><td>5</td></tr><tr><td>jetbrains</td><td>600</td><td>350</td><td>58.33%</td><td>700</td><td>550</td><td>6</td></tr></table>
<h1>Daily Usage</h1>
<h3>The most active day was 10/15/2023 with 12 active users.</h3>
<h3>The day with the highest acceptance rate was 10/14/2023 with an acceptance rate of 80.00%.</h3>
<ul><li>Most Active Day: 10/15/2023 (12 active users)</li><li>Highest Acceptance Rate: 10/14/2023 (80.00%)</li></ul>
<table><tr><th>Day</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th><th>Chat Acceptances</th><th>Chat Turns</th><th>Active Chat Users</th></tr><tr><td>10/14/2023</td><td>1,000</td><td>800</td><td>80.00%</td><td>1,800</td><td>1,200</td><td>10</td><td>32</td><td>200</td><td>4</td></tr><tr><td>10/15/2023</td><td>800</td><td>600</td><td>75.00%</td><td>1,100</td><td>700</td><td>12</td><td>57</td><td>426</td><td>8</td></tr></table>
37 changes: 28 additions & 9 deletions __tests__/mock/team-usage-summary.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
<h1>Copilot Usage<br>10/14/2023 - 10/15/2023</h1>
<h3>Suggestions: 1,800</h3>
<h3>Acceptances: 1,400</h3>
<h3>Acceptance Rate: 77.78%</h3>
<h3>Lines of Code Accepted: 1,900</h3>
<h1>Copilot Usage<br>2 days (10/14/2023 - 10/15/2023)</h1>
<h2>Copilot Chat</h2>
<ul><li>Acceptances: 89</li><li>Turns: 626</li><li>Acceptance Rate: 14.22%</li><li>Average Daily Users: 6.00</li></ul>

```mermaid
---
config:
xyChart:
width: 90
height: 500
xAxis:
labelPadding: 20
themeVariables:
xyChart:
backgroundColor: "transparent"
---
xychart-beta
title "Chat Accepts & Acceptance Rate"
x-axis ["10/14", "10/15"]
y-axis "Chat Acceptances" 0 --> 67
bar [32, 57]
line [10.72, 8.964788732394366]
```
<h2>Copilot Completions</h2>
<ul><li>Suggestions: 1,800</li><li>Acceptances: 1,400</li><li>Acceptance Rate: 77.78%</li><li>Lines of Code Accepted: 1,900</li></ul>

```mermaid
---
Expand Down Expand Up @@ -50,7 +70,7 @@ title Language Usage
"python" : 1200
"ruby" : 600
```
<table><tr><th>Language</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>python</td><td>1,200</td><td>800</td><td>66.67%</td><td>2,200</td><td>1,550</td><td>15</td></tr><tr><td>ruby</td><td>600</td><td>500</td><td>83.33%</td><td>700</td><td>350</td><td>6</td></tr></table>
<table><tr><th>Language</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>python</td><td>1,200</td><td>800</td><td>66.67%</td><td>2,200</td><td>1,550</td><td>6</td></tr><tr><td>ruby</td><td>600</td><td>500</td><td>83.33%</td><td>700</td><td>350</td><td>3</td></tr></table>
<h1>Editor Usage</h1>

```mermaid
Expand All @@ -59,8 +79,7 @@ title Editor Usage
"vscode" : 1200
"jetbrains" : 600
```
<table><tr><th>Editor</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>vscode</td><td>1,200</td><td>950</td><td>79.17%</td><td>2,200</td><td>1,350</td><td>13</td></tr><tr><td>jetbrains</td><td>600</td><td>350</td><td>58.33%</td><td>700</td><td>550</td><td>8</td></tr></table>
<table><tr><th>Editor</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th></tr><tr><td>vscode</td><td>1,200</td><td>950</td><td>79.17%</td><td>2,200</td><td>1,350</td><td>5</td></tr><tr><td>jetbrains</td><td>600</td><td>350</td><td>58.33%</td><td>700</td><td>550</td><td>6</td></tr></table>
<h1>Daily Usage</h1>
<h3>The most active day was 10/15/2023 with 12 active users.</h3>
<h3>The day with the highest acceptance rate was 10/14/2023 with an acceptance rate of 80.00%.</h3>
<ul><li>Most Active Day: 10/15/2023 (12 active users)</li><li>Highest Acceptance Rate: 10/14/2023 (80.00%)</li></ul>
<table><tr><th>Day</th><th>Suggestions</th><th>Acceptances</th><th>Acceptance Rate</th><th>Lines Suggested</th><th>Lines Accepted</th><th>Active Users</th><th>Chat Acceptances</th><th>Chat Turns</th><th>Active Chat Users</th></tr><tr><td>10/14/2023</td><td>1,000</td><td>800</td><td>80.00%</td><td>1,800</td><td>1,200</td><td>10</td><td>32</td><td>200</td><td>4</td></tr><tr><td>10/15/2023</td><td>800</td><td>600</td><td>75.00%</td><td>1,100</td><td>700</td><td>12</td><td>57</td><td>426</td><td>8</td></tr></table>
Loading

0 comments on commit a4e7703

Please sign in to comment.