代码建议 许可参考
watsonx Code Assistant
Watsonx Code Assistant检查生成的代码建议是否与其他代码源相似。
在这些语言中,生成的代码必须为 10 行或更多行:
- C
- C++
- 执行
- Java
- JavaScript
- Python
- TypeScript
默认情况下,watsonx Code Assistant会阻止与其他代码源相似的代码建议。
对于某些许可证,您可以允许包含许可证参考的代码建议。 有关更多信息,请参阅 配置代码建议的显示方式。
本表列出了允许提出代码建议的许可证:
| 组 | 许可证 |
|---|---|
| MIT 许可 | MIT No Attribution (mit-0) |
| MIT 许可 | Enlightenment License (e16) (MIT-advertising) |
| MIT 许可 | CMU License (MIT-CMU) |
| MIT 许可 | enna License (MIT-enna) |
| MIT 许可 | feh License (MIT-feh) |
| MIT 许可 | MIT License (MIT) |
| MIT 许可 | MIT +no-false-attribs license (MITNFA) |
| Apache软件许可证 | Apache License 1.0 (Apache-1.0) |
| Apache软件许可证 | Apache License 1.1 (Apache-1.1) |
| Apache软件许可证 | Apache License 2.0 (Apache-2.0) |
| 较小通用公共许可证 | GNU Lesser General Public License v2.1 only (LGPL-2.1) |
| 较小通用公共许可证 | GNU Lesser General Public License v3.0 only (LGPL-3.0) |
| 普通公共许可证 | GNU General Public License v2.0 only (GPL-2.0) |
| 普通公共许可证 | GNU General Public License v3.0 only (GPL-3.0) |
| 普通公共许可证 | GNU Affero General Public License v3.0 (AGPL-3.0) |
| 知识共享 | Creative Commons Attribution 1.0 Generic (CC-BY-1.0) |
| 知识共享 | Creative Commons Attribution 2.0 Generic (CC-BY-2.0) |
| 知识共享 | Creative Commons Attribution 3.0 Unported (CC-BY-3.0) |
| 知识共享 | Creative Commons Attribution 4.0 International (CC-BY-4.0) |
| 知识共享 | Creative Commons Zero v1.0 Universal (CC0-1.0) |
| 知识共享 | Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.0) |
| 伯克利软件分发 | BSD 1-Clause License (BSD-1-Clause) |
| 伯克利软件分发 | BSD 2-Clause "Simplified" License (BSD-2-Clause) |
| 伯克利软件分发 | BSD 2-Clause FreeBSD License (BSD-2-Clause-FreeBSD) |
| 伯克利软件分发 | BSD 2-Clause NetBSD License (BSD-2-Clause-NetBSD) |
| 伯克利软件分发 | BSD-2-Clause Plus Patent License (BSD-2-Clause-Patent) |
| 伯克利软件分发 | BSD 3-Clause "New" or "Revised" License (BSD-3-Clause) |
| 伯克利软件分发 | BSD with attribution (BSD-3-Clause-Attribution) |
| 伯克利软件分发 | BSD 3-Clause Clear License (BSD-3-Clause-Clear) |
| 伯克利软件分发 | Lawrence Berkeley National Labs BSD variant license (BSD-3-Clause-LBNL) |
| 伯克利软件分发 | BSD 3-Clause No Nuclear License (BSD-3-Clause-No-Nuclear-License) |
| 伯克利软件分发 | BSD 3-Clause No Nuclear License 2014 (BSD-3-Clause-No-Nuclear-License-2014) |
| 伯克利软件分发 | BSD 3-Clause No Nuclear Warranty (BSD-3-Clause-No-Nuclear-Warranty) |
| 伯克利软件分发 | BSD 3-Clause Open MPI variant (BSD-3-Clause-Open-MPI) |
| 伯克利软件分发 | BSD 4-Clause "Original" or "Old" License (BSD-4-Clause) |
| 伯克利软件分发 | BSD-4-Clause (University of California-Specific) (BSD-4-Clause-UC) |
| 伯克利软件分发 | BSD Source Code Attribution (BSD-Source-Code) |
| 伯克利软件分发 | BSD Zero Clause License (0BSD) |
| 公共领域 | The Unlicense (Unlicense) |
| 业务来源许可证 | Boost Software License 1.0 (BSL-1.0) |
| 互联网系统联盟 | ISC License (ISC) |
本表列出了始终阻止代码建议的许可证。 此设置无法配置。
| 许可证 |
|---|
adobe-2006 |
adobe-glyph |
adsl |
amdplpa |
aml |
ampas |
antlr-pd |
apafml |
artistic-2.0 |
barr |
blueoak-1.0.0 |
boost software license 1.0 |
bzip2-1.0.6 |
cecill-2.1 |
cecill-b |
cnri-python-gpl-compatible |
condor-1.1 |
curl |
do what the f*ck you want to public license |
doc |
ecl-1.0 |
ecl-2.0 |
eclipse public license 1.0 |
eclipse public license 2.0 |
educational community license v2.0 |
efl-2.0 |
egenix |
epl-1.0 |
epl-2.0 |
european union public license 1.2 |
fair |
fsfap |
fsful |
ftl |
giftware |
hpnd |
ibm internal |
ibm-pibs |
icu |
ijg |
imagemagick |
info-zip |
intel |
jasper-2.0 |
leptonica |
libpng |
libpng-2.0 |
libtiff |
linux-openib |
microsoft public license |
miros |
mozilla public license 2.0 |
mpich2 |
mpl-2.0 |
ms-pl |
ms-rl |
mtll |
mulanpsl-1.0 |
mulanpsl-2.0 |
multics |
mup |
nasa-1.3 |
naumen |
ncsa |
net-snmp |
netcdf |
nlpl |
nrl |
ntp |
ofl-1.1 |
oldap-2.2.1 |
oldap-2.3 |
oldap-2.4 |
oldap-2.5 |
oldap-2.6 |
oldap-2.7 |
oldap-2.8 |
oml |
openssl |
osl-3.0 |
other |
php-3.0 |
php-3.01 |
plexus |
postgresql |
psf-2.0 |
python-2.0 |
qhull |
ruby |
sgi-b-2.0 |
spencer-86 |
spencer-94 |
swl |
tcl |
tcp-wrappers |
tu-berlin-1.0 |
tu-berlin-2.0 |
upl-1.0 |
vim |
vsl-1.0 |
w3c |
w3c-19980720 |
w3c-20150513 |
wtfpl |
x11 |
xerox |
xfree86-1.1 |
xinetd |
xnet |
xpp |
zed |
zend-2.0 |
zlib |
zlib-acknowledgement |
zpl-1.1 |
zpl-2.0 |
zpl-2.1 |