程式碼建議許可參考
watsonx Code Assistant
Watsonx Code Assistant檢查產生的程式碼建議是否與其他程式碼來源相似。
產生的程式碼必須為以下語言的 10 行或更多行:
- C
- C++
- 進行
- Java
- JavaScript
- Python
- TypeScript
預設情況下,watsonx Code Assistant會封鎖與其他程式碼來源類似的程式碼建議。
對於某些許可證,您可以允許包含許可證參考的程式碼建議。 有關詳細信息,請參閱 配置代碼建議的顯示方式。
下表列出了您可以允許程式碼建議的許可證:
| 群組 | 授權 |
|---|---|
| 麻省理工學院許可證 | MIT No Attribution (mit-0) |
| 麻省理工學院許可證 | Enlightenment License (e16) (MIT-advertising) |
| 麻省理工學院許可證 | CMU License (MIT-CMU) |
| 麻省理工學院許可證 | enna License (MIT-enna) |
| 麻省理工學院許可證 | feh License (MIT-feh) |
| 麻省理工學院許可證 | MIT License (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 |