Beispiel #1
0
}
ini_set("display_errors", "true");
error_reporting(E_ALL);
echo "<h1>IP Bug Query Working Page</h1>";
echo "<h2>List bugs with attachments from people who are not committers.  The ones that are marked as contributed are white while those that are not marked as contributed are red.  Those that are yellow have the same committer as patch contributor.</h2>";
echo "<p>Date of Query: " . date(DATE_RFC822) . "</p>";
echo "<h3>PDE: API Tools</h3>";
checkProject(2, 883, $includedMilestones);
echo "<h3>PDE: Build</h3>";
checkProject(2, 21, $includedMilestones);
echo "<h3>PDE: Doc</h3>";
checkProject(2, 23, $includedMilestones);
echo "<h3>PDE: Incubators</h3>";
checkProject(2, 602, $includedMilestones);
echo "<h3>PDE: UI</h3>";
checkProject(2, 22, $includedMilestones);
$dbc->disconnect();
$rs = null;
$dbh = null;
$dbc = null;
echo "<h2>Summary, by Contributors</h2>";
echo "<table border='1' cellpadding='2' width='80%'>";
echo "<tr><th>Id</th><th>Name</th><th>Number of patches</th></tr>";
array_multisort($uniqueCount, SORT_DESC, SORT_NUMERIC);
foreach (array_keys($uniqueCount) as $key) {
    echo "<tr>";
    echo "<td>" . str_replace("@", "{at}", $key) . "</td><td>" . $uniqueNames[$key] . "</td><td>" . $uniqueCount[$key] . "</td>";
    echo "</tr>";
}
echo "</table>";
exit;
                if ($contributor == null) {
                    $contributor = $contributorEmail;
                }
                $committer = $myrow['committer_real_name'];
                if (array_key_exists($myrow['bug_id'], $committerOverrides)) {
                    $committer = $committerOverrides[$myrow['bug_id']];
                }
                echo $componenetLabel . ",";
                echo "https://bugs.eclipse.org/bugs/show_bug.cgi?id=" . $myrow['bug_id'] . ",";
                echo str_replace("@", "{at}", $contributor) . ",";
                $count = countAddedLines($myrow);
                echo ($count < 100 ? "small" : $count) . ",";
                echo $committer . ",";
                echo str_replace(",", " ", $myrow['description']);
                echo "\n";
            }
        }
    }
    flush();
}
checkProject("APT", 3, 268, $includedMilestones);
checkProject("Core", 3, 10, $includedMilestones);
checkProject("Debug", 3, 11, $includedMilestones);
checkProject("Doc", 3, 24, $includedMilestones);
checkProject("Text", 3, 43, $includedMilestones);
checkProject("UI", 3, 12, $includedMilestones);
$dbc->disconnect();
$rs = null;
$dbh = null;
$dbc = null;
exit;
echo "<h3>Platform: SWT</h3>";
checkProject(1, 2, $includedMilestones);
echo "<h3>Platform: Team</h3>";
checkProject(1, 6, $includedMilestones);
echo "<h3>Platform: Text</h3>";
checkProject(1, 42, $includedMilestones);
echo "<h3>Platform: UI</h3>";
checkProject(1, 8, $includedMilestones);
echo "<h3>Platform: Update</h3>";
checkProject(1, 3, $includedMilestones);
echo "<h3>Platform: User Assistance</h3>";
checkProject(1, 5, $includedMilestones);
echo "<h3>Platform: WebDAV</h3>";
checkProject(1, 17, $includedMilestones);
echo "<h3>Platform: Website</h3>";
checkProject(1, 358, $includedMilestones);
$dbc->disconnect();
$rs = null;
$dbh = null;
$dbc = null;
echo "<h2>Summary, by Contributors</h2>";
echo "<table border='1' cellpadding='2' width='80%'>";
echo "<tr><th>Id</th><th>Name</th><th>Number of patches</th></tr>";
array_multisort($uniqueCount, SORT_DESC, SORT_NUMERIC);
foreach (array_keys($uniqueCount) as $key) {
    echo "<tr>";
    echo "<td>" . str_replace("@", "{at}", $key) . "</td><td>" . $uniqueNames[$key] . "</td><td>" . $uniqueCount[$key] . "</td>";
    echo "</tr>";
}
echo "</table>";
exit;
                }
                $committer = $myrow['committer_real_name'];
                if (array_key_exists($myrow['bug_id'], $committerOverrides)) {
                    $committer = $committerOverrides[$myrow['bug_id']];
                }
                if (strcmp($committer, $contributor) == 0) {
                    $committer = "Chris Aniszczyk";
                }
                echo $componenetLabel . ",";
                echo "https://bugs.eclipse.org/bugs/show_bug.cgi?id=" . $myrow['bug_id'] . ",";
                echo str_replace("@", "{at}", $contributor) . ",";
                $count = countAddedLines($myrow);
                echo ($count < 100 ? "small" : $count) . ",";
                echo $committer . ",";
                echo str_replace(",", " ", $myrow['description']);
                echo "\n";
            }
        }
    }
    flush();
}
checkProject("API Tools", 2, 883, $includedMilestones);
checkProject("Build", 2, 21, $includedMilestones);
checkProject("Doc", 2, 23, $includedMilestones);
//checkProject("Incubators", 2, 602, $includedMilestones);
checkProject("UI", 2, 22, $includedMilestones);
$dbc->disconnect();
$rs = null;
$dbh = null;
$dbc = null;
exit;
Beispiel #5
0
error_reporting(E_ALL);
echo "<h1>IP Bug Query Working Page</h1>";
echo "<h2>List bugs with attachments from people who are not committers.  The ones that are marked as contributed are white while those that are not marked as contributed are red.  Those that are yellow have the same committer as patch contributor.</h2>";
echo "<p>Date of Query: " . date(DATE_RFC822) . "</p>";
echo "<h3>JDT: APT</h3>";
checkProject(3, 268, $includedMilestones);
echo "<h3>JDT: Core</h3>";
checkProject(3, 10, $includedMilestones);
echo "<h3>JDT: Debug</h3>";
checkProject(3, 11, $includedMilestones);
echo "<h3>JDT: Doc</h3>";
checkProject(3, 24, $includedMilestones);
echo "<h3>JDT: Text</h3>";
checkProject(3, 43, $includedMilestones);
echo "<h3>JDT: UI</h3>";
checkProject(3, 12, $includedMilestones);
$dbc->disconnect();
$rs = null;
$dbh = null;
$dbc = null;
echo "<h2>Summary, by Contributors</h2>";
echo "<table border='1' cellpadding='2' width='80%'>";
echo "<tr><th>Id</th><th>Name</th><th>Number of patches</th></tr>";
array_multisort($uniqueCount, SORT_DESC, SORT_NUMERIC);
foreach (array_keys($uniqueCount) as $key) {
    echo "<tr>";
    echo "<td>" . str_replace("@", "{at}", $key) . "</td><td>" . $uniqueNames[$key] . "</td><td>" . $uniqueCount[$key] . "</td>";
    echo "</tr>";
}
echo "</table>";
exit;
                echo str_replace("@", "{at}", $contributor) . ",";
                $count = countAddedLines($myrow);
                echo ($count < 100 ? "small" : $count) . ",";
                echo $committer . ",";
                echo str_replace(",", " ", $myrow['description']);
                echo "\n";
            }
        }
    }
    flush();
}
checkProject("Platform Ant", 1, 16, $includedMilestones);
checkProject("Platform Compare", 1, 18, $includedMilestones);
checkProject("Platform CVS", 1, 84, $includedMilestones);
checkProject("Platform Debug", 1, 20, $includedMilestones);
checkProject("Platform IDE", 1, 542, $includedMilestones);
checkProject("Platform Releng", 1, 4, $includedMilestones);
checkProject("Platform Resources", 1, 7, $includedMilestones);
checkProject("Platform Runtime", 1, 120, $includedMilestones);
checkProject("Platform Search", 1, 19, $includedMilestones);
checkProject("Platform SWT", 1, 2, $includedMilestones);
checkProject("Platform Team", 1, 6, $includedMilestones);
checkProject("Platform Text", 1, 42, $includedMilestones);
checkProject("Platform UI", 1, 8, $includedMilestones);
checkProject("Platform Update", 1, 3, $includedMilestones);
checkProject("Platform UA", 1, 5, $includedMilestones);
$dbc->disconnect();
$rs = null;
$dbh = null;
$dbc = null;
exit;