OpenGenus/cosmos

Add search parameters for GitHub search for Cosmos

Open

#2,528 创建于 2017年10月26日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C++ (3,724 fork)batch import
Hacktoberfestenhancement

仓库指标

Star
 (13,462 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Objective: Make GitHub search work well for searching for codes within Cosmos

Solution: Add search parameters to codes as a comment Ideally, the search parameter should include the upper classification/ directories and the possible searchable problem statement. This must be done for all existing codes at Cosmos.

This is a simple and yet powerful enhancement can be performed by anyone in parts 👍

For instance, for the code for 2d line intersection in C at location code/computational_geometry/2d_line_intersection, the comment should be:

//  computational geometry | 2D line intersecton | C
//  Part of Cosmos by OpenGenus Foundation

Take a look at the C code: see The second comment is to distinguish codes from OpenGenus and is more of a convention. Consider this search results for 2d line intersection

For a fixed convention, we must place the search parameter comment at the top of the code

Note: new codes should take this into account

贡献者指南