皮肤黑穿什么颜色的衣服好看| 三月四号什么星座| 梦见吵架是什么意思| 尿多是什么原因| 全麦是什么意思| 深圳居住证有什么用| 一张张什么| 什么是非甾体抗炎药| 荔枝有什么寓意| 老烂腿用什么药最好| 手指发麻是什么原因引起的| 结核t细胞阳性说明什么| 胸腔疼痛挂什么科| 一度房室传导阻滞是什么意思| 孕激素六项检查什么时候做| 黄豆酱做什么菜好吃| 肺炎吃什么水果| 百步穿杨是什么生肖| 什么是淋巴| 西红柿什么时候吃最好| 7月5号是什么星座| 琨字五行属什么| 成人睡觉磨牙是什么原因| dm是什么意思| 月经为什么叫大姨妈| 九个月宝宝吃什么辅食| 婴幼儿屁股红擦什么| 芝士是什么做的| 口牙是什么意思| 小孩个子矮小吃什么促进生长发育| 硅胶是什么材料| 石斛不能和什么一起吃| 什么叫梗| 男女更年期分别在什么年龄| 八零年属什么生肖| 什么辕什么辙| 下套什么意思| 婴儿为什么吐奶| 腿疼膝盖疼是什么原因| 你的书包里有什么英文| 三九胃泰治什么胃病效果好| 过期的酸奶有什么用途| 真菌感染吃什么药| 四氯化碳是什么| 军绿色裤子配什么上衣| 枸杞不能和什么一起吃| 什么蔬菜降血压效果最好| 满五唯一的房子要交什么税| 甲沟炎是什么| 臣字五行属什么| 吃什么养肺| 睡眠不好吃什么药| 六月二十六是什么日子| pfs是什么意思| 猪肝跟什么相克| 忌讳是什么意思| 公鸡的尾巴有什么作用| 绿字五行属什么| 小熊是什么牌子| 赤藓糖醇是什么| 生物工程专业学什么| 嗓子疼吃什么水果好| 魔芋是什么| 黄芪不能和什么一起吃| 无花果是什么季节的水果| 为什么一照相脸就歪了| 女性梅毒有什么症状| fpu是什么意思| 头发热是什么原因| facebook是什么意思| 前列腺在什么位置| 做梦梦到自己生病了是什么意思| 菊花茶适合什么人喝| 怀孕头三个月吃什么好| 人的心脏在什么位置| 蓝牙耳机什么品牌好| 3月17日什么星座| 站桩对身体有什么好处和功效| 体内湿气重吃什么药效果好| 脚崴了用什么药| 存款准备金率是什么意思| 奇经八脉指的是什么| 绿豆芽炒什么好吃| 闪光感是什么感觉| 1979属什么生肖| 玉屏风治什么病最好| 什么有助于睡眠| 白醋加盐洗脸有什么好处| 血脂高是什么意思| 糖醇是什么意思| 25周岁属什么生肖| 乳房看什么科| 为什么有的人招蚊子| 一什么节日| 为什么眼睛会红| 膀胱炎是什么症状表现| 月经提前半个月来是什么原因| n字鞋子是什么牌子| 克罗恩病吃什么药| 爱而不得是什么意思| 子宫肌瘤挂什么科室| 电器火灾用什么灭火器| 圈癣是什么引起的| 维生素b12治什么病| 为什么大姨妈迟迟不来| 精子长什么样| 雪梨百合炖冰糖有什么功效| 中医心脉受损什么意思| 心脏不好吃什么药| 狗狗的鼻子为什么是湿的| 皇帝自称什么| 复刻是什么意思| 乾卦代表什么| 偏头痛什么原因| 备孕需要做什么准备| 苏轼的弟弟叫什么| 不走寻常路是什么意思| 中间人是什么意思| 黑木耳是什么意思| gb什么意思| 双肺条索是什么意思| 什么水越洗越脏| 圣诞节是什么时候| 右膝关节退行性变是什么意思| 吃护肝片有什么副作用| 前列腺不能吃什么食物| 上海有什么好玩的地方旅游景点| 脸上长扁平疣是什么原因引起的| 4.20什么星座| 钠氯偏低是什么原因| 拉屎肛门疼是什么原因| 端午节什么时候吃粽子| 脉搏跳得快是什么原因| 任性什么意思| 甲肝是什么病| 突然肚子疼是什么原因| 飞克手表什么档次| 引火上身是什么意思| 动脉硬化有什么危害| 阴茎是什么意思| 什么是超七水晶| 易孕体质是什么意思| 曹洪是曹操的什么人| 小孩拉肚子吃什么药效果好| mido手表什么档次| 鹅蛋脸适合戴什么眼镜| 深海鱼油有什么功效| 武当山求什么最灵| 七月份能种什么菜| 梦见自己死了预示什么| 青玉是什么玉| 呼吸性碱中毒吃什么药| 脚气是什么菌| 化疗恶心吃什么可以缓解| 71年属什么| 皮炎用什么药| 泡黄芪水喝有什么好处| 打喷嚏头疼是什么原因| 霜降吃什么| 突然长胖很多是什么原因| 有缘无分是什么意思| 糖类抗原153是什么| 吃什么能立马通大便| 减肥吃什么菜最好| 东南方向是什么位置| 嫂嫂是什么意思| 红细胞偏高是什么原因| 小柴胡颗粒治什么病| 碧色是什么颜色| 减肥吃什么比较好| 骨皮质是什么| 怀孕了不想要最好的办法是什么| 三庭五眼是什么意思| 清洁度二度是什么意思| 三个六代表什么意思| 水淀粉是什么粉| 哇哦什么意思| 二月花是什么花| 吃什么药能让月经推迟| 糖衣炮弹什么意思| 女命七杀代表什么| kate是什么意思| 人类什么时候出现的| 纺织娘是什么| 寒颤是什么意思| 落地签是什么意思| 脂质是什么| 零星是什么意思| 宫保鸡丁属于什么菜系| 开放性神经管缺陷是什么意思| 乌梅是什么水果做的| 河蚌为什么没人吃| 女人三十如狼四十如虎什么意思| 子女缘薄是什么意思| 惊厥是什么病| 七手八脚是什么意思| 1926年属什么| 善茬是什么意思| claire是什么意思| 台阶是什么意思| 什么动物吃猫| 白醋和小苏打一起用起什么效果| 排骨炒什么配菜好吃| 换肾是什么病| 希尔福是什么药| 为什么叫香港脚| 柠檬酸是什么| 笑掉大牙是什么动物| 臭酸是什么| 骨癌的前兆是什么症状| 昏什么昏什么| 啊囊死给什么意思| 白蜡金是什么金| 真菌菌丝阳性什么意思| 什么是命运| vsd是什么意思| a216是什么材质| 什么是主食| 焦糖色是什么| 磨豆腐是什么意思| 气管痉挛是什么症状| 牙齿总是出血是什么原因| 吃什么不长肉还能瘦| 阴茎不硬吃什么| 虎落平阳被犬欺是什么生肖| 腰疼是什么病的前兆| 腰底部疼痛跟什么病有关| 为什么睡觉| 心慌气短胸闷吃什么药| 白癜风是什么| 女孩缺金取什么名字好| 白蛋白低是什么意思| 母亲节什么时候| 饱不洗头饿不洗澡是为什么| 哈伦裤配什么上衣好看| 什么原因导致荨麻疹| 嬴政为什么要杀吕不韦| 什么事每人每天都必须认真的做| 青豆是什么豆| 客厅挂钟放在什么位置好| 鹦鹉吃什么蔬菜| 为什么减肥不掉秤| 梦见流鼻血是什么征兆| hbalc是什么意思| 吃了避孕药有什么反应| 唐僧真名叫什么| 白玉兰奖是什么级别的| 面料支数是什么意思| 皮肤炎症用什么药| 中心句是什么意思| 人工流产后可以吃什么| 百白破是预防什么的| o型血rh阳性是什么意思| 吃番茄有什么好处| 劳动法什么时候实施的| 小孩体质差吃什么能增强抵抗力| 待业是什么意思| 站久了腰疼是什么原因| 妇科菌群失调吃什么药| 什么药治拉肚子| 脾虚什么症状| 美尼尔眩晕症吃什么药| 中段尿是什么意思| ppd是什么| 百度
Skip to main content

【胡杨林大讲堂】地理空间大数据的尺度分析和...

百度 说白了在布拉切回来之后新疆原有的化学反应如今已经变的荡然无存了。

You can build search queries for the results you want with specialized code qualifiers, regular expressions, and boolean operations.

About code search query structure

The search syntax in this article only applies to searching code with GitHub code search. Note that the syntax and qualifiers for searching for non-code content, such as issues, users, and discussions, is not the same as the syntax for code search. For more information on non-code search, see About searching on GitHub and Searching on GitHub.

Search queries consist of search terms, comprising text you want to search for, and qualifiers, which narrow down the search.

A bare term with no qualifiers will match either the content of a file or the file's path.

For example, the following query:

http-push

The above query will match the file docs/http-push.txt, even if it doesn't contain the term http-push. It will also match a file called example.txt if it contains the term http-push.

You can enter multiple terms separated by whitespace to search for documents that satisfy both terms.

For example, the following query:

sparse index

The search results would include all documents containing both the terms sparse and index, in any order. As examples, it would match a file containing SparseIndexVector, a file with the phrase index for sparse trees, and even a file named index.txt that contains the term sparse.

Searching for multiple terms separated by whitespace is the equivalent to the search hello AND world. Other boolean operations, such as hello OR world, are also supported. For more information about boolean operations, see Using boolean operations.

Code search also supports searching for an exact string, including whitespace. For more information, see Query for an exact match.

You can narrow your code search with specialized qualifiers, such as repo:, language: and path:. For more information on the qualifiers you can use in code search, see Using qualifiers.

You can also use regular expressions in your searches by surrounding the expression in slashes. For more information on using regular expressions, see Using regular expressions.

Query for an exact match

To search for an exact string, including whitespace, you can surround the string in quotes. For example:

"sparse index"

You can also use quoted strings in qualifiers, for example:

path:git language:"protocol buffers"

Searching for quotes and backslashes

To search for code containing a quotation mark, you can escape the quotation mark using a backslash. For example, to find the exact string name = "tensorflow", you can search:

"name = \"tensorflow\""

To search for code containing a backslash, \, use a double backslash, \\.

The two escape sequences \\ and \" can be used outside of quotes as well. No other escape sequences are recognized, though. A backslash that isn't followed by either " or \ is included in the search, unchanged.

Additional escape sequences, such as \n to match a newline character, are supported in regular expressions. See Using regular expressions.

Using boolean operations

Code search supports boolean expressions. You can use the operators AND, OR, and NOT to combine search terms.

By default, adjacent terms separated by whitespace are equivalent to using the AND operator. For example, the search query sparse index is the same as sparse AND index, meaning that the search results will include all documents containing both the terms sparse and index, in any order.

To search for documents containing either one term or the other, you can use the OR operator. For example, the following query will match documents containing either sparse or index:

sparse OR index

To exclude files from your search results, you can use the NOT operator. For example, to exclude files in the __testing__ directory, you can search:

"fatal error" NOT path:__testing__

You can use parentheses to express more complicated boolean expressions. For example:

(language:ruby OR language:python) AND NOT path:"/tests/"

Using qualifiers

You can use specialized keywords to qualify your search.

Repository qualifier

To search within a repository, use the repo: qualifier. You must provide the full repository name, including the owner. For example:

repo:github-linguist/linguist

To search within a set of repositories, you can combine multiple repo: qualifiers with the boolean operator OR. For example:

repo:github-linguist/linguist OR repo:tree-sitter/tree-sitter

Note

Code search does not currently support regular expressions or partial matching for repository names, so you will have to type the entire repository name (including the user prefix) for the repo: qualifier to work.

Organization and user qualifiers

To search for files within an organization, use the org: qualifier. For example:

org:github

To search for files within a personal account, use the user: qualifier. For example:

user:octocat

Note

Code search does not currently support regular expressions or partial matching for organization or user names, so you will have to type the entire organization or user name for the qualifier to work.

Language qualifier

To narrow down to a specific languages, use the language: qualifier. For example:

language:ruby OR language:cpp OR language:csharp

For a complete list of supported language names, see languages.yaml in github-linguist/linguist. If your preferred language is not on the list, you can open a pull request to add it.

Path qualifier

To search within file paths, use the path: qualifier. This will match files containing the term anywhere in their file path. For example, to find files containing the term unit_tests in their path, use:

path:unit_tests

The above query will match both src/unit_tests/my_test.py and src/docs/unit_tests.md since they both contain unit_test somewhere in their path.

To match only a specific filename (and not part of the path), you could use a regular expression:

path:/(^|\/)README\.md$/

Note that the . in the filename is escaped, since . has special meaning for regular expressions. For more information about using regular expressions, see Using regular expressions.


You can also use some limited glob expressions in the path: qualifier.

For example, to search for files with the extension txt, you can use:

path:*.txt

To search for JavaScript files within a `src` directory, you could use:
path:src/*.js
  • By default, glob expressions are not anchored to the start of the path, so the above expression would still match a path like app/src/main.js. But if you prefix the expression with /, it will anchor to the start. For example:

    path:/src/*.js
    
  • Note that * doesn't match the / character, so for the above example, all results will be direct descendants of the src directory. To match within subdirectories, so that results include deeply nested files such as /src/app/testing/utils/example.js, you can use **. For example:

    path:/src/**/*.js
    

You can also use the ? global character. For example, to match the path file.aac or file.abc, you can use:

path:*.a?c

To search for a filename which contains a special character like `*` or `?`, just use a quoted string:
path:"file?"

Glob expressions are disabled for quoted strings, so the above query will only match paths containing the literal string file?.

Symbol qualifier

You can search for symbol definitions in code, such as function or class definitions, using the symbol: qualifier. Symbol search is based on parsing your code using the open source Tree-sitter parser ecosystem, so no extra setup or build tool integration is required.

For example, to search for a symbol called WithContext:

language:go symbol:WithContext

In some languages, you can search for symbols using a prefix (e.g. a prefix of their class name). For example, for a method deleteRows on a struct Maint, you could search symbol:Maint.deleteRows if you are using Go, or symbol:Maint::deleteRows in Rust.

You can also use regular expressions with the symbol qualifier. For example, the following query would find conversions people have implemented in Rust for the String type:

language:rust symbol:/^String::to_.*/

Note that this qualifier only searches for definitions and not references, and not all symbol types or languages are fully supported yet. Symbol extraction is supported for the following languages:

  • Bash
  • C
  • C#
  • C++
  • CodeQL
  • Elixir
  • Go
  • JSX
  • Java
  • JavaScript
  • Lua
  • PHP
  • Protocol Buffers
  • Python
  • R
  • Ruby
  • Rust
  • Scala
  • Starlark
  • Swift
  • Typescript

We are working on adding support for more languages. If you would like to help contribute to this effort, you can add support for your language in the open source Tree-sitter parser ecosystem, upon which symbol search is based.

Content qualifier

By default, bare terms search both paths and file content. To restrict a search to strictly match the content of a file and not file paths, use the content: qualifier. For example:

content:README.md

This query would only match files containing the term README.md, rather than matching files named README.md.

Is qualifier

To filter based on repository properties, you can use the is: qualifier. is: supports the following values:

  • archived: restricts the search to archived repositories.
  • fork: restricts the search to forked repositories.
  • vendored: restricts the search to content detected as vendored.
  • generated: restricts the search to content detected as generated.

For example:

path:/^MIT.txt$/ is:archived

Note that the is: qualifier can be inverted with the NOT operator. To search for non-archived repositories, you can search:

log4j NOT is:archived

To exclude forks from your results, you can search:

log4j NOT is:fork

Using regular expressions

Code search supports regular expressions to search for patterns in your code. You can use regular expressions in bare search terms as well as within many qualifiers, by surrounding the regex in slashes.

For example, to search for the regular expression sparse.*index, you would use:

/sparse.*index/

Note that you'll have to escape any forward slashes within the regular expression. For example, to search for files within the App/src directory, you would use:

/^App\/src\//

Inside a regular expression, \n stands for a newline character, \t stands for a tab, and \x{hhhh} can be used to escape any Unicode character. This means you can use regular expressions to search for exact strings that contain characters that you can't type into the search bar.

Most common regular expressions features work in code search. However, "look-around" assertions are not supported.

Separating search terms

All parts of a search, such as search terms, exact strings, regular expressions, qualifiers, parentheses, and the boolean keywords AND, OR, and NOT, must be separated from one another with spaces. The one exception is that items inside parentheses, ( ), don't need to be separated from the parentheses.

If your search contains multiple components that aren't separated by spaces, or other text that does not follow the rules listed above, code search will try to guess what you mean. It often falls back on treating that component of your query as the exact text to search for. For example, the following query:

printf("hello world\n");

Code search will give up on interpreting the parentheses and quotes as special characters and will instead search for files containing that exact code.

If code search guesses wrong, you can always get the search you wanted by using quotes and spaces to make the meaning clear.

Case sensitivity

By default, code search is case-insensitive, and results will include both uppercase and lowercase results. You can do case-sensitive searches by using a regular expression with case insensitivity turned off. For example, to search for the string "True", you would use:

/(?-i)True/
曹操的父亲叫什么名字 古埃及是什么人种 女人心肌缺血吃什么药 地果是什么 蛔虫是什么意思
终其一生下一句是什么 镶什么牙实惠耐用 开水冲服是什么意思 手指疣初期什么样子 后脑勺疼什么原因
来来来喝完这杯还有三杯是什么歌 贼是什么生肖 抛砖引玉什么意思 梦见鞋丢了是什么意思 眼睛突然红了是什么原因
脚上有水泡是什么原因 头里面有肿瘤有什么症状 女性肛门瘙痒用什么药 相见不如怀念是什么意思 ic50是什么意思
多囊为什么要吃避孕药hcv9jop4ns3r.cn 惊厥是什么病bfb118.com 老是吐是什么原因hcv9jop8ns3r.cn 考警校需要什么条件inbungee.com 丙氨酸氨基转移酶高是什么原因hcv8jop8ns9r.cn
痔疮挂什么科jasonfriends.com 什么是舍利96micro.com 嗓子疼挂什么科hcv9jop2ns1r.cn 血压偏低有什么危害mmeoe.com 四点是什么时辰sscsqa.com
条线是什么意思hcv9jop7ns1r.cn ga是什么牌子hcv8jop3ns3r.cn 胆怯是什么意思hcv9jop4ns5r.cn 阴道口有点痒用什么药hcv8jop4ns5r.cn 睡觉出汗是什么原因sscsqa.com
减肥可以吃什么水果hcv7jop6ns9r.cn 没品什么意思gangsutong.com 阿昔洛韦乳膏治什么病hcv8jop6ns6r.cn 面基是什么意思hcv9jop2ns5r.cn pes是什么材料hcv7jop4ns7r.cn
百度