repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/search/DifferentialRevisionFulltextEngine.php
src/applications/differential/search/DifferentialRevisionFulltextEngine.php
<?php final class DifferentialRevisionFulltextEngine extends PhabricatorFulltextEngine { protected function buildAbstractDocument( PhabricatorSearchAbstractDocument $document, $object) { $revision = id(new DifferentialRevisionQuery()) ->setViewer($this->getViewer()) ->withPHIDs(array($obj...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/search/DifferentialRevisionFerretEngine.php
src/applications/differential/search/DifferentialRevisionFerretEngine.php
<?php final class DifferentialRevisionFerretEngine extends PhabricatorFerretEngine { public function getApplicationName() { return 'differential'; } public function getScopeName() { return 'revision'; } public function newSearchEngine() { return new DifferentialRevisionSearchEngine(); } }...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/engine/DifferentialRevisionTimelineEngine.php
src/applications/differential/engine/DifferentialRevisionTimelineEngine.php
<?php final class DifferentialRevisionTimelineEngine extends PhabricatorTimelineEngine { protected function newTimelineView() { $viewer = $this->getViewer(); $xactions = $this->getTransactions(); $revision = $this->getObject(); $view_data = $this->getViewData(); if (!$view_data) { $view...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/engine/DifferentialRevisionDraftEngine.php
src/applications/differential/engine/DifferentialRevisionDraftEngine.php
<?php final class DifferentialRevisionDraftEngine extends PhabricatorDraftEngine { protected function hasCustomDraftContent() { $viewer = $this->getViewer(); $revision = $this->getObject(); $inlines = id(new DifferentialDiffInlineCommentQuery()) ->setViewer($viewer) ->withRevisionPHIDs(ar...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/engine/DifferentialChangesetEngine.php
src/applications/differential/engine/DifferentialChangesetEngine.php
<?php final class DifferentialChangesetEngine extends Phobject { private $viewer; public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $this; } public function getViewer() { return $this->viewer; } public function rebuildChangesets(array $changesets) { as...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/engine/DifferentialFileTreeEngine.php
src/applications/differential/engine/DifferentialFileTreeEngine.php
<?php final class DifferentialFileTreeEngine extends Phobject { private $viewer; private $changesets; private $disabled; private $ownedChangesets; public function setViewer($viewer) { $this->viewer = $viewer; return $this; } public function getViewer() { return $this->viewer; } publ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/engine/DifferentialAffectedPathEngine.php
src/applications/differential/engine/DifferentialAffectedPathEngine.php
<?php final class DifferentialAffectedPathEngine extends Phobject { private $revision; private $diff; public function setRevision(DifferentialRevision $revision) { $this->revision = $revision; return $this; } public function getRevision() { return $this->revision; } public function setD...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/engine/DifferentialDiffExtractionEngine.php
src/applications/differential/engine/DifferentialDiffExtractionEngine.php
<?php final class DifferentialDiffExtractionEngine extends Phobject { private $viewer; private $authorPHID; public function setViewer(PhabricatorUser $viewer) { $this->viewer = $viewer; return $this; } public function getViewer() { return $this->viewer; } public function setAuthorPHID($au...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialReviewerFunctionDatasource.php
src/applications/differential/typeahead/DifferentialReviewerFunctionDatasource.php
<?php final class DifferentialReviewerFunctionDatasource extends PhabricatorTypeaheadCompositeDatasource { public function getBrowseTitle() { return pht('Browse Reviewers'); } public function getPlaceholderText() { return pht('Type a user, project, package name or function...'); } public functio...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialResponsibleViewerFunctionDatasource.php
src/applications/differential/typeahead/DifferentialResponsibleViewerFunctionDatasource.php
<?php final class DifferentialResponsibleViewerFunctionDatasource extends PhabricatorTypeaheadDatasource { public function getBrowseTitle() { return pht('Browse Viewer'); } public function getPlaceholderText() { return pht('Type viewer()...'); } public function getDatasourceApplicationClass() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialResponsibleDatasource.php
src/applications/differential/typeahead/DifferentialResponsibleDatasource.php
<?php final class DifferentialResponsibleDatasource extends PhabricatorTypeaheadCompositeDatasource { public function getBrowseTitle() { return pht('Browse Responsible Users'); } public function getPlaceholderText() { return pht('Type a user, project, or package name, or function...'); } public ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialBlockingReviewerDatasource.php
src/applications/differential/typeahead/DifferentialBlockingReviewerDatasource.php
<?php final class DifferentialBlockingReviewerDatasource extends PhabricatorTypeaheadCompositeDatasource { public function getBrowseTitle() { return pht('Browse Blocking Reviewers'); } public function getPlaceholderText() { return pht('Type a user, project, or package name...'); } public functio...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialExactUserFunctionDatasource.php
src/applications/differential/typeahead/DifferentialExactUserFunctionDatasource.php
<?php final class DifferentialExactUserFunctionDatasource extends PhabricatorTypeaheadCompositeDatasource { public function getBrowseTitle() { return pht('Browse Users'); } public function getPlaceholderText() { return pht('Type exact(<user>)...'); } public function getDatasourceApplicationClass...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialNoReviewersDatasource.php
src/applications/differential/typeahead/DifferentialNoReviewersDatasource.php
<?php final class DifferentialNoReviewersDatasource extends PhabricatorTypeaheadDatasource { const FUNCTION_TOKEN = 'none()'; public function getBrowseTitle() { return pht('Browse No Reviewers'); } public function getPlaceholderText() { return pht('Type "none"...'); } public function getDatas...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialRevisionClosedStatusDatasource.php
src/applications/differential/typeahead/DifferentialRevisionClosedStatusDatasource.php
<?php final class DifferentialRevisionClosedStatusDatasource extends PhabricatorTypeaheadDatasource { const FUNCTION_TOKEN = 'closed()'; public function getBrowseTitle() { return pht('Browse Any Closed Status'); } public function getPlaceholderText() { return pht('Type closed()...'); } public...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialResponsibleUserDatasource.php
src/applications/differential/typeahead/DifferentialResponsibleUserDatasource.php
<?php final class DifferentialResponsibleUserDatasource extends PhabricatorTypeaheadCompositeDatasource { public function getBrowseTitle() { return pht('Browse Users'); } public function getPlaceholderText() { return pht('Type a user name...'); } public function getDatasourceApplicationClass() {...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialRevisionOpenStatusDatasource.php
src/applications/differential/typeahead/DifferentialRevisionOpenStatusDatasource.php
<?php final class DifferentialRevisionOpenStatusDatasource extends PhabricatorTypeaheadDatasource { const FUNCTION_TOKEN = 'open()'; public function getBrowseTitle() { return pht('Browse Any Open Status'); } public function getPlaceholderText() { return pht('Type open()...'); } public functio...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialRevisionStatusFunctionDatasource.php
src/applications/differential/typeahead/DifferentialRevisionStatusFunctionDatasource.php
<?php final class DifferentialRevisionStatusFunctionDatasource extends PhabricatorTypeaheadCompositeDatasource { public function getBrowseTitle() { return pht('Browse Statuses'); } public function getPlaceholderText() { return pht('Type a revision status name or function...'); } public function ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialReviewerDatasource.php
src/applications/differential/typeahead/DifferentialReviewerDatasource.php
<?php final class DifferentialReviewerDatasource extends PhabricatorTypeaheadCompositeDatasource { public function getBrowseTitle() { return pht('Browse Reviewers'); } public function getPlaceholderText() { return pht('Type a user, project, or package name...'); } public function getDatasourceAp...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/typeahead/DifferentialRevisionStatusDatasource.php
src/applications/differential/typeahead/DifferentialRevisionStatusDatasource.php
<?php final class DifferentialRevisionStatusDatasource extends PhabricatorTypeaheadDatasource { public function getBrowseTitle() { return pht('Browse Statuses'); } public function getPlaceholderText() { return pht('Type a revision status name...'); } public function getDatasourceApplicationClass...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/capability/DifferentialDefaultViewCapability.php
src/applications/differential/capability/DifferentialDefaultViewCapability.php
<?php final class DifferentialDefaultViewCapability extends PhabricatorPolicyCapability { const CAPABILITY = 'differential.default.view'; public function getCapabilityName() { return pht('Default View Policy'); } public function shouldAllowPublicPolicySetting() { return true; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/remarkup/DifferentialRemarkupRule.php
src/applications/differential/remarkup/DifferentialRemarkupRule.php
<?php final class DifferentialRemarkupRule extends PhabricatorObjectRemarkupRule { protected function getObjectNamePrefix() { return 'D'; } protected function loadObjects(array $ids) { $viewer = $this->getEngine()->getConfig('viewer'); return id(new DifferentialRevisionQuery()) ->setViewer($v...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialReviewerStatus.php
src/applications/differential/constants/DifferentialReviewerStatus.php
<?php final class DifferentialReviewerStatus extends Phobject { const STATUS_BLOCKING = 'blocking'; const STATUS_ADDED = 'added'; const STATUS_ACCEPTED = 'accepted'; const STATUS_REJECTED = 'rejected'; const STATUS_COMMENTED = 'commented'; const STATUS_ACCEPTED_OLDER = 'accepted-older'; const STATUS_REJ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialChangeType.php
src/applications/differential/constants/DifferentialChangeType.php
<?php final class DifferentialChangeType extends Phobject { const TYPE_ADD = 1; const TYPE_CHANGE = 2; const TYPE_DELETE = 3; const TYPE_MOVE_AWAY = 4; const TYPE_COPY_AWAY = 5; const TYPE_MOVE_HERE = 6; const TYPE_COPY_HERE = 7; const TYPE_MULTICOPY = 8; const TYPE_MESSAGE = ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialRevisionStatus.php
src/applications/differential/constants/DifferentialRevisionStatus.php
<?php final class DifferentialRevisionStatus extends Phobject { const NEEDS_REVIEW = 'needs-review'; const NEEDS_REVISION = 'needs-revision'; const CHANGES_PLANNED = 'changes-planned'; const ACCEPTED = 'accepted'; const PUBLISHED = 'published'; const ABANDONED = 'abandoned'; const DRAFT = 'draft'; pr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialRevisionControlSystem.php
src/applications/differential/constants/DifferentialRevisionControlSystem.php
<?php // TODO: Unify with similar Repository constants final class DifferentialRevisionControlSystem extends Phobject { const SVN = 'svn'; const GIT = 'git'; const MERCURIAL = 'hg'; }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialLegacyQuery.php
src/applications/differential/constants/DifferentialLegacyQuery.php
<?php final class DifferentialLegacyQuery extends Phobject { const STATUS_ANY = 'status-any'; const STATUS_OPEN = 'status-open'; const STATUS_ACCEPTED = 'status-accepted'; const STATUS_NEEDS_REVIEW = 'status-needs-review'; const STATUS_NEEDS_REVISION = 'status-needs-revision';...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialAction.php
src/applications/differential/constants/DifferentialAction.php
<?php final class DifferentialAction extends Phobject { const ACTION_CLOSE = 'commit'; const ACTION_COMMENT = 'none'; const ACTION_ACCEPT = 'accept'; const ACTION_REJECT = 'reject'; const ACTION_RETHINK = 'rethink'; const ACTION_ABANDON = 'abandon'; const AC...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialUnitStatus.php
src/applications/differential/constants/DifferentialUnitStatus.php
<?php final class DifferentialUnitStatus extends Phobject { const UNIT_NONE = 0; const UNIT_OKAY = 1; const UNIT_WARN = 2; const UNIT_FAIL = 3; const UNIT_SKIP = 4; const UNIT_AUTO_SKIP = 6; private $value; public static function newStatusFromValue($value) { $statu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialUnitTestResult.php
src/applications/differential/constants/DifferentialUnitTestResult.php
<?php final class DifferentialUnitTestResult extends Phobject { const RESULT_PASS = 'pass'; const RESULT_FAIL = 'fail'; const RESULT_SKIP = 'skip'; const RESULT_BROKEN = 'broken'; const RESULT_UNSOUND = 'unsound'; }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialConstantsModule.php
src/applications/differential/constants/DifferentialConstantsModule.php
<?php final class DifferentialConstantsModule extends PhabricatorConfigModule { public function getModuleKey() { return 'constants.differential'; } public function getModuleName() { return pht('Constants: Differential'); } public function renderModuleStatus(AphrontRequest $request) { $viewer...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/constants/DifferentialLintStatus.php
src/applications/differential/constants/DifferentialLintStatus.php
<?php final class DifferentialLintStatus extends Phobject { const LINT_NONE = 0; const LINT_OKAY = 1; const LINT_WARN = 2; const LINT_FAIL = 3; const LINT_SKIP = 4; const LINT_AUTO_SKIP = 6; private $value; public static function newStatusFromValue($value) { $statu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/DifferentialCustomFieldRevertsParser.php
src/applications/differential/parser/DifferentialCustomFieldRevertsParser.php
<?php final class DifferentialCustomFieldRevertsParser extends PhabricatorCustomFieldMonogramParser { protected function getPrefixes() { // NOTE: Git language is "This reverts commit X." // NOTE: Mercurial language is "Backed out changeset Y". return array( 'revert', 'reverts', 're...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/DifferentialCommitMessageParser.php
src/applications/differential/parser/DifferentialCommitMessageParser.php
<?php /** * Parses commit messages (containing relatively freeform text with textual * field labels) into a dictionary of fields. * * $parser = id(new DifferentialCommitMessageParser()) * ->setLabelMap($label_map) * ->setTitleKey($key_title) * ->setSummaryKey($key_summary); * * $fields = $pars...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/DifferentialHunkParser.php
src/applications/differential/parser/DifferentialHunkParser.php
<?php final class DifferentialHunkParser extends Phobject { private $oldLines; private $newLines; private $intraLineDiffs; private $depthOnlyLines; private $visibleLinesMask; private $normalized; /** * Get a map of lines on which hunks start, other than line 1. This * datastructure is used to det...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/DifferentialCustomFieldDependsOnParser.php
src/applications/differential/parser/DifferentialCustomFieldDependsOnParser.php
<?php final class DifferentialCustomFieldDependsOnParser extends PhabricatorCustomFieldMonogramParser { protected function getPrefixes() { return array( 'depends on', ); } protected function getInfixes() { return array( 'diff', 'diffs', 'change', 'changes', 're...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/DifferentialLineAdjustmentMap.php
src/applications/differential/parser/DifferentialLineAdjustmentMap.php
<?php /** * Datastructure which follows lines of code across source changes. * * This map is used to update the positions of inline comments after diff * updates. For example, if a inline comment appeared on line 30 of a diff * but the next update adds 15 more lines above it, the comment should move * down to li...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/DifferentialChangesetParser.php
src/applications/differential/parser/DifferentialChangesetParser.php
<?php final class DifferentialChangesetParser extends Phobject { const HIGHLIGHT_BYTE_LIMIT = 262144; protected $visible = array(); protected $new = array(); protected $old = array(); protected $intra = array(); protected $depthOnlyLines = array(); protected $newRender ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
true
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/__tests__/DifferentialCustomFieldRevertsParserTestCase.php
src/applications/differential/parser/__tests__/DifferentialCustomFieldRevertsParserTestCase.php
<?php final class DifferentialCustomFieldRevertsParserTestCase extends PhabricatorTestCase { public function testParser() { $map = array( 'quack quack quack' => array(), // Git default message. 'This reverts commit 1234abcd.' => array( array( 'match' => 'reverts commit 123...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/__tests__/DifferentialCommitMessageParserTestCase.php
src/applications/differential/parser/__tests__/DifferentialCommitMessageParserTestCase.php
<?php final class DifferentialCommitMessageParserTestCase extends PhabricatorTestCase { public function testDifferentialCommitMessageParser() { $dir = dirname(__FILE__).'/messages/'; $list = Filesystem::listDirectory($dir, $include_hidden = false); foreach ($list as $file) { if (!preg_match('/.t...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/__tests__/DifferentialChangesetParserTestCase.php
src/applications/differential/parser/__tests__/DifferentialChangesetParserTestCase.php
<?php final class DifferentialChangesetParserTestCase extends PhabricatorTestCase { public function testDiffChangesets() { $hunk = new DifferentialHunk(); $hunk->setChanges("+a\n b\n-c\n"); $hunk->setNewOffset(1); $hunk->setNewLen(2); $left = new DifferentialChangeset(); $left->attachHunks(a...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/__tests__/DifferentialTabReplacementTestCase.php
src/applications/differential/parser/__tests__/DifferentialTabReplacementTestCase.php
<?php final class DifferentialTabReplacementTestCase extends PhabricatorTestCase { public function testTabReplacement() { $tab1 = "<span data-copy-text=\"\t\"> </span>"; $tab2 = "<span data-copy-text=\"\t\"> </span>"; $cat = "\xF0\x9F\x90\xB1"; $cases = array( '' => '', 'x' => 'x', ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/__tests__/DifferentialHunkParserTestCase.php
src/applications/differential/parser/__tests__/DifferentialHunkParserTestCase.php
<?php final class DifferentialHunkParserTestCase extends PhabricatorTestCase { private function createComment() { $comment = new DifferentialInlineComment(); return $comment; } private function createHunk( $old_offset, $old_len, $new_offset, $new_len, $changes) { $hunk = id(new...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/differential/parser/__tests__/DifferentialCustomFieldDependsOnParserTestCase.php
src/applications/differential/parser/__tests__/DifferentialCustomFieldDependsOnParserTestCase.php
<?php final class DifferentialCustomFieldDependsOnParserTestCase extends PhabricatorTestCase { public function testParser() { $map = array( 'quack quack quack' => array(), 'D123' => array(), 'depends on D123' => array( array( 'match' => 'depends on D123', 'prefix'...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/controller/DivinerFindController.php
src/applications/diviner/controller/DivinerFindController.php
<?php final class DivinerFindController extends DivinerController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $book_name = $request->getStr('book'); $query_text = $request->getStr('name'); ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/controller/DivinerController.php
src/applications/diviner/controller/DivinerController.php
<?php abstract class DivinerController extends PhabricatorController { public function buildApplicationMenu() { return $this->newApplicationMenu() ->setSearchEngine(new DivinerAtomSearchEngine()); } protected function renderAtomList(array $symbols) { assert_instances_of($symbols, 'DivinerLiveSymb...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/controller/DivinerAtomListController.php
src/applications/diviner/controller/DivinerAtomListController.php
<?php final class DivinerAtomListController extends DivinerController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { return id(new DivinerAtomSearchEngine()) ->setController($this) ->buildResponse(); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/controller/DivinerAtomController.php
src/applications/diviner/controller/DivinerAtomController.php
<?php final class DivinerAtomController extends DivinerController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getUser(); $book_name = $request->getURIData('book'); $atom_type = $request->getURIData('t...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/controller/DivinerMainController.php
src/applications/diviner/controller/DivinerMainController.php
<?php final class DivinerMainController extends DivinerController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $books = id(new DivinerBookQuery()) ->setViewer($viewer) ->execute(); ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/controller/DivinerBookEditController.php
src/applications/diviner/controller/DivinerBookEditController.php
<?php final class DivinerBookEditController extends DivinerController { public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $book_name = $request->getURIData('book'); $book = id(new DivinerBookQuery()) ->setViewer($viewer) ->requireCapabilities( ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/controller/DivinerBookController.php
src/applications/diviner/controller/DivinerBookController.php
<?php final class DivinerBookController extends DivinerController { public function shouldAllowPublic() { return true; } public function handleRequest(AphrontRequest $request) { $viewer = $request->getViewer(); $book_name = $request->getURIData('book'); $book = id(new DivinerBookQuery()) ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/renderer/DivinerDefaultRenderer.php
src/applications/diviner/renderer/DivinerDefaultRenderer.php
<?php final class DivinerDefaultRenderer extends DivinerRenderer { public function renderAtom(DivinerAtom $atom) { $out = array( $this->renderAtomTitle($atom), $this->renderAtomProperties($atom), $this->renderAtomDescription($atom), ); return phutil_tag( 'div', array( ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/renderer/DivinerRenderer.php
src/applications/diviner/renderer/DivinerRenderer.php
<?php abstract class DivinerRenderer extends Phobject { private $publisher; private $atomStack = array(); public function setPublisher($publisher) { $this->publisher = $publisher; return $this; } public function getPublisher() { return $this->publisher; } public function getConfig($key, $...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/storage/DivinerLiveAtom.php
src/applications/diviner/storage/DivinerLiveAtom.php
<?php final class DivinerLiveAtom extends DivinerDAO { protected $symbolPHID; protected $content; protected $atomData; protected function getConfiguration() { return array( self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array( 'content' => self::SERIALIZATION_JSON, ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/storage/DivinerLiveBookTransaction.php
src/applications/diviner/storage/DivinerLiveBookTransaction.php
<?php final class DivinerLiveBookTransaction extends PhabricatorApplicationTransaction { public function getApplicationName() { return 'diviner'; } public function getApplicationTransactionType() { return DivinerBookPHIDType::TYPECONST; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/storage/DivinerLiveSymbol.php
src/applications/diviner/storage/DivinerLiveSymbol.php
<?php final class DivinerLiveSymbol extends DivinerDAO implements PhabricatorPolicyInterface, PhabricatorMarkupInterface, PhabricatorDestructibleInterface, PhabricatorFulltextInterface { protected $bookPHID; protected $repositoryPHID; protected $context; protected $type; protected $name; ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/storage/DivinerSchemaSpec.php
src/applications/diviner/storage/DivinerSchemaSpec.php
<?php final class DivinerSchemaSpec extends PhabricatorConfigSchemaSpec { public function buildSchemata() { $this->buildEdgeSchemata(new DivinerLiveBook()); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/storage/DivinerLiveBook.php
src/applications/diviner/storage/DivinerLiveBook.php
<?php final class DivinerLiveBook extends DivinerDAO implements PhabricatorPolicyInterface, PhabricatorProjectInterface, PhabricatorDestructibleInterface, PhabricatorApplicationTransactionInterface, PhabricatorFulltextInterface { protected $name; protected $repositoryPHID; protected $viewP...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/storage/DivinerDAO.php
src/applications/diviner/storage/DivinerDAO.php
<?php abstract class DivinerDAO extends PhabricatorLiskDAO { public function getApplicationName() { return 'diviner'; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/query/DivinerLiveBookTransactionQuery.php
src/applications/diviner/query/DivinerLiveBookTransactionQuery.php
<?php final class DivinerLiveBookTransactionQuery extends PhabricatorApplicationTransactionQuery { public function getTemplateApplicationTransaction() { return new DivinerLiveBookTransaction(); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/query/DivinerAtomSearchEngine.php
src/applications/diviner/query/DivinerAtomSearchEngine.php
<?php final class DivinerAtomSearchEngine extends PhabricatorApplicationSearchEngine { public function getResultTypeDescription() { return pht('Documentation Atoms'); } public function getApplicationClassName() { return 'PhabricatorDivinerApplication'; } public function canUseInPanelContext() { ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/query/DivinerBookQuery.php
src/applications/diviner/query/DivinerBookQuery.php
<?php final class DivinerBookQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $names; private $nameLike; private $namePrefix; private $repositoryPHIDs; private $needProjectPHIDs; private $needRepositories; public function withIDs(array $ids) { $this-...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/query/DivinerAtomQuery.php
src/applications/diviner/query/DivinerAtomQuery.php
<?php final class DivinerAtomQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $phids; private $bookPHIDs; private $names; private $types; private $contexts; private $indexes; private $isDocumentable; private $isGhost; private $nodeHashes; private $titles; private $n...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/cache/DivinerAtomCache.php
src/applications/diviner/cache/DivinerAtomCache.php
<?php final class DivinerAtomCache extends DivinerDiskCache { private $fileHashMap; private $atomMap; private $symbolMap; private $edgeSrcMap; private $edgeDstMap; private $graphMap; private $atoms = array(); private $writeAtoms = array(); public function __construct($cache_directory) { parent...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/cache/DivinerDiskCache.php
src/applications/diviner/cache/DivinerDiskCache.php
<?php abstract class DivinerDiskCache extends Phobject { private $cache; public function __construct($cache_directory, $name) { $dir_cache = id(new PhutilDirectoryKeyValueCache()) ->setCacheDirectory($cache_directory); $profiled_cache = id(new PhutilKeyValueCacheProfiler($dir_cache)) ->setPro...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/cache/DivinerPublishCache.php
src/applications/diviner/cache/DivinerPublishCache.php
<?php final class DivinerPublishCache extends DivinerDiskCache { private $pathMap; private $index; public function __construct($cache_directory) { parent::__construct($cache_directory, 'diviner-publish-cache'); } /* -( Path Map )----------------------------------------------------------- */ publi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/publisher/DivinerLivePublisher.php
src/applications/diviner/publisher/DivinerLivePublisher.php
<?php final class DivinerLivePublisher extends DivinerPublisher { private $book; protected function getBook() { if (!$this->book) { $book_name = $this->getConfig('name'); $book = id(new DivinerLiveBook())->loadOneWhere( 'name = %s', $book_name); if (!$book) { $book...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/publisher/DivinerStaticPublisher.php
src/applications/diviner/publisher/DivinerStaticPublisher.php
<?php final class DivinerStaticPublisher extends DivinerPublisher { private $publishCache; private $atomNameMap; private function getPublishCache() { if (!$this->publishCache) { $dir = implode( DIRECTORY_SEPARATOR, array( $this->getConfig('root'), '.divinercache', ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/publisher/DivinerPublisher.php
src/applications/diviner/publisher/DivinerPublisher.php
<?php abstract class DivinerPublisher extends Phobject { private $atomCache; private $atomGraphHashToNodeHashMap; private $atomMap = array(); private $renderer; private $config; private $symbolReverseMap; private $dropCaches; private $repositoryPHID; final public function setDropCaches($drop_caches...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/editor/DivinerLiveBookEditor.php
src/applications/diviner/editor/DivinerLiveBookEditor.php
<?php final class DivinerLiveBookEditor extends PhabricatorApplicationTransactionEditor { public function getEditorApplicationClass() { return 'PhabricatorDivinerApplication'; } public function getEditorObjectsDescription() { return pht('Diviner Books'); } public function getTransactionTypes() {...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/application/PhabricatorDivinerApplication.php
src/applications/diviner/application/PhabricatorDivinerApplication.php
<?php final class PhabricatorDivinerApplication extends PhabricatorApplication { public function getBaseURI() { return '/diviner/'; } public function getIcon() { return 'fa-sun-o'; } public function getName() { return pht('Diviner'); } public function getShortDescription() { return ph...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/atomizer/DivinerFileAtomizer.php
src/applications/diviner/atomizer/DivinerFileAtomizer.php
<?php final class DivinerFileAtomizer extends DivinerAtomizer { protected function executeAtomize($file_name, $file_data) { $atom = $this->newAtom(DivinerAtom::TYPE_FILE) ->setName($file_name) ->setFile($file_name) ->setContentRaw($file_data); return array($atom); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/atomizer/DivinerArticleAtomizer.php
src/applications/diviner/atomizer/DivinerArticleAtomizer.php
<?php final class DivinerArticleAtomizer extends DivinerAtomizer { protected function executeAtomize($file_name, $file_data) { $atom = $this->newAtom(DivinerAtom::TYPE_ARTICLE) ->setLine(1) ->setLength(count(explode("\n", $file_data))) ->setLanguage('human'); $block = "/**\n".str_replace(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/atomizer/DivinerPHPAtomizer.php
src/applications/diviner/atomizer/DivinerPHPAtomizer.php
<?php final class DivinerPHPAtomizer extends DivinerAtomizer { protected function newAtom($type) { return parent::newAtom($type)->setLanguage('php'); } protected function executeAtomize($file_name, $file_data) { $future = PhutilXHPASTBinary::getParserFuture($file_data); $tree = XHPASTTree::newFromD...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/atomizer/DivinerAtomizer.php
src/applications/diviner/atomizer/DivinerAtomizer.php
<?php /** * Generate @{class:DivinerAtom}s from source code. */ abstract class DivinerAtomizer extends Phobject { private $book; private $fileName; private $atomContext; /** * If you make a significant change to an atomizer, you can bump this version * to drop all the old atom caches. */ public ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/view/DivinerReturnTableView.php
src/applications/diviner/view/DivinerReturnTableView.php
<?php final class DivinerReturnTableView extends AphrontTagView { private $return; private $header; public function setReturn(array $return) { $this->return = $return; return $this; } public function setHeader($text) { $this->header = $text; return $this; } protected function getTagNa...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/view/DivinerBookItemView.php
src/applications/diviner/view/DivinerBookItemView.php
<?php final class DivinerBookItemView extends AphrontTagView { private $title; private $subtitle; private $type; private $href; public function setTitle($title) { $this->title = $title; return $this; } public function setSubtitle($subtitle) { $this->subtitle = $subtitle; return $this; ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/view/DivinerSectionView.php
src/applications/diviner/view/DivinerSectionView.php
<?php final class DivinerSectionView extends AphrontTagView { private $header; private $content; public function addContent($content) { $this->content[] = $content; return $this; } public function setHeader($text) { $this->header = $text; return $this; } protected function getTagName(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/view/DivinerParameterTableView.php
src/applications/diviner/view/DivinerParameterTableView.php
<?php final class DivinerParameterTableView extends AphrontTagView { private $parameters; private $header; public function setParameters(array $parameters) { $this->parameters = $parameters; return $this; } public function setHeader($text) { $this->header = $text; return $this; } prot...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/phid/DivinerAtomPHIDType.php
src/applications/diviner/phid/DivinerAtomPHIDType.php
<?php final class DivinerAtomPHIDType extends PhabricatorPHIDType { const TYPECONST = 'ATOM'; public function getTypeName() { return pht('Diviner Atom'); } public function newObject() { return new DivinerLiveSymbol(); } public function getTypeIcon() { return 'fa-cube'; } public functio...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/phid/DivinerBookPHIDType.php
src/applications/diviner/phid/DivinerBookPHIDType.php
<?php final class DivinerBookPHIDType extends PhabricatorPHIDType { const TYPECONST = 'BOOK'; public function getTypeName() { return pht('Diviner Book'); } public function newObject() { return new DivinerLiveBook(); } public function getTypeIcon() { return 'fa-book'; } public function ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/search/DivinerLiveSymbolFulltextEngine.php
src/applications/diviner/search/DivinerLiveSymbolFulltextEngine.php
<?php final class DivinerLiveSymbolFulltextEngine extends PhabricatorFulltextEngine { protected function buildAbstractDocument( PhabricatorSearchAbstractDocument $document, $object) { $atom = $object; $book = $atom->getBook(); $document ->setDocumentTitle($atom->getTitle()) ->set...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/search/DivinerLiveBookFulltextEngine.php
src/applications/diviner/search/DivinerLiveBookFulltextEngine.php
<?php final class DivinerLiveBookFulltextEngine extends PhabricatorFulltextEngine { protected function buildAbstractDocument( PhabricatorSearchAbstractDocument $document, $object) { $book = $object; $document->setDocumentTitle($book->getTitle()); $document->addField( PhabricatorSearch...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/typeahead/DivinerBookDatasource.php
src/applications/diviner/typeahead/DivinerBookDatasource.php
<?php final class DivinerBookDatasource extends PhabricatorTypeaheadDatasource { public function getBrowseTitle() { return pht('Browse Books'); } public function getPlaceholderText() { return pht('Type a book name...'); } public function getDatasourceApplicationClass() { return 'PhabricatorDiv...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/workflow/DivinerGenerateWorkflow.php
src/applications/diviner/workflow/DivinerGenerateWorkflow.php
<?php final class DivinerGenerateWorkflow extends DivinerWorkflow { private $atomCache; protected function didConstruct() { $this ->setName('generate') ->setSynopsis(pht('Generate documentation.')) ->setArguments( array( array( 'name' => 'clean', 'h...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/workflow/DivinerAtomizeWorkflow.php
src/applications/diviner/workflow/DivinerAtomizeWorkflow.php
<?php final class DivinerAtomizeWorkflow extends DivinerWorkflow { protected function didConstruct() { $this ->setName('atomize') ->setSynopsis(pht('Build atoms from source.')) ->setArguments( array( array( 'name' => 'atomizer', 'param' => 'class', ...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/workflow/DivinerWorkflow.php
src/applications/diviner/workflow/DivinerWorkflow.php
<?php abstract class DivinerWorkflow extends PhabricatorManagementWorkflow { private $config; private $bookConfigPath; public function getBookConfigPath() { return $this->bookConfigPath; } protected function getConfig($key, $default = null) { return idx($this->config, $key, $default); } prote...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/capability/DivinerDefaultViewCapability.php
src/applications/diviner/capability/DivinerDefaultViewCapability.php
<?php final class DivinerDefaultViewCapability extends PhabricatorPolicyCapability { const CAPABILITY = 'diviner.default.view'; public function getCapabilityName() { return pht('Default View Policy'); } public function shouldAllowPublicPolicySetting() { return true; } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/capability/DivinerDefaultEditCapability.php
src/applications/diviner/capability/DivinerDefaultEditCapability.php
<?php final class DivinerDefaultEditCapability extends PhabricatorPolicyCapability { const CAPABILITY = 'diviner.default.edit'; public function getCapabilityName() { return pht('Default Edit Policy'); } }
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/atom/DivinerAtomRef.php
src/applications/diviner/atom/DivinerAtomRef.php
<?php final class DivinerAtomRef extends Phobject { private $book; private $context; private $type; private $name; private $group; private $summary; private $index; private $title; public function getSortKey() { return implode( "\0", array( $this->getName(), $this->g...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/atom/DivinerAtom.php
src/applications/diviner/atom/DivinerAtom.php
<?php final class DivinerAtom extends Phobject { const TYPE_ARTICLE = 'article'; const TYPE_CLASS = 'class'; const TYPE_FILE = 'file'; const TYPE_FUNCTION = 'function'; const TYPE_INTERFACE = 'interface'; const TYPE_METHOD = 'method'; private $type; private $name; private $file; pr...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diviner/markup/DivinerSymbolRemarkupRule.php
src/applications/diviner/markup/DivinerSymbolRemarkupRule.php
<?php final class DivinerSymbolRemarkupRule extends PhutilRemarkupRule { const KEY_RULE_ATOM_REF = 'rule.diviner.atomref'; public function getPriority() { return 200.0; } public function apply($text) { // Grammar here is: // // rule = '@{' maybe_type name maybe_title '}' // may...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/console/controller/DarkConsoleDataController.php
src/applications/console/controller/DarkConsoleDataController.php
<?php final class DarkConsoleDataController extends PhabricatorController { public function shouldRequireLogin() { return !PhabricatorEnv::getEnvConfig('darkconsole.always-on'); } public function shouldRequireEnabledUser() { return !PhabricatorEnv::getEnvConfig('darkconsole.always-on'); } public f...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/console/controller/DarkConsoleController.php
src/applications/console/controller/DarkConsoleController.php
<?php final class DarkConsoleController extends PhabricatorController { protected $op; protected $data; public function shouldRequireLogin() { return !PhabricatorEnv::getEnvConfig('darkconsole.always-on'); } public function shouldRequireEnabledUser() { return !PhabricatorEnv::getEnvConfig('darkcon...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/console/plugin/DarkConsoleRequestPlugin.php
src/applications/console/plugin/DarkConsoleRequestPlugin.php
<?php final class DarkConsoleRequestPlugin extends DarkConsolePlugin { public function getName() { return pht('Request'); } public function getDescription() { return pht( 'Information about %s and %s.', '$_REQUEST', '$_SERVER'); } public function generateData() { $addr = idx(...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/console/plugin/DarkConsoleServicesPlugin.php
src/applications/console/plugin/DarkConsoleServicesPlugin.php
<?php final class DarkConsoleServicesPlugin extends DarkConsolePlugin { protected $observations; public function getName() { return pht('Services'); } public function getDescription() { return pht('Information about services.'); } public static function getQueryAnalyzerHeader() { return 'X-...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/console/plugin/DarkConsoleXHProfPlugin.php
src/applications/console/plugin/DarkConsoleXHProfPlugin.php
<?php final class DarkConsoleXHProfPlugin extends DarkConsolePlugin { protected $profileFilePHID; public function getName() { return pht('XHProf'); } public function getColor() { $data = $this->getData(); if ($data['profileFilePHID']) { return '#ff00ff'; } return null; } publi...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/console/plugin/DarkConsoleStartupPlugin.php
src/applications/console/plugin/DarkConsoleStartupPlugin.php
<?php final class DarkConsoleStartupPlugin extends DarkConsolePlugin { public function getName() { return pht('Startup'); } public function getDescription() { return pht('Timing information about the startup sequence.'); } /** * @phutil-external-symbol class PhabricatorStartup */ public fu...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/console/plugin/DarkConsolePlugin.php
src/applications/console/plugin/DarkConsolePlugin.php
<?php abstract class DarkConsolePlugin extends Phobject { private $data; private $request; private $core; abstract public function getName(); abstract public function getDescription(); abstract public function renderPanel(); public function __construct() {} public function getColor() { return n...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false
phacility/phabricator
https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/console/plugin/DarkConsoleEventPlugin.php
src/applications/console/plugin/DarkConsoleEventPlugin.php
<?php final class DarkConsoleEventPlugin extends DarkConsolePlugin { public function getName() { return pht('Events'); } public function getDescription() { return pht('Information about events and event listeners.'); } public function generateData() { $listeners = PhutilEventEngine::getInstanc...
php
Apache-2.0
5720a38cfe95b00ca4be5016dd0d2f3195f4fa04
2026-01-04T15:03:23.651835Z
false