Sugerencia de código de referencia de licencia

watsonx Code Assistant

Watsonx Code Assistant comprueba si una sugerencia de código generada es similar a otras fuentes de código.

El código generado debe tener 10 líneas o más en estos idiomas:

  • C
  • C++
  • Go
  • Java
  • JavaScript
  • Python
  • TypeScript

Por defecto, watsonx Code Assistant bloquea las sugerencias de código que son similares a otras fuentes de código.

Para algunas licencias, puede permitir sugerencias de código que incluyan una referencia a la licencia. Para más información, consulte Configurar cómo se muestran las sugerencias de código.

Esta tabla enumera las licencias para las que puede permitir sugerencias de código:

Licencias que pueden permitirse para las sugerencias de código
Grupo Licencia
Licencias MIT MIT No Attribution (mit-0)
Licencias MIT Enlightenment License (e16) (MIT-advertising)
Licencias MIT CMU License (MIT-CMU)
Licencias MIT enna License (MIT-enna)
Licencias MIT feh License (MIT-feh)
Licencias MIT MIT License (MIT)
Licencias MIT MIT +no-false-attribs license (MITNFA)
Licencias de software Apache Apache License 1.0 (Apache-1.0)
Licencias de software Apache Apache License 1.1 (Apache-1.1)
Licencias de software Apache Apache License 2.0 (Apache-2.0)
Licencias públicas generales menores GNU Lesser General Public License v2.1 only (LGPL-2.1)
Licencias públicas generales menores GNU Lesser General Public License v3.0 only (LGPL-3.0)
Licencias públicas generales GNU General Public License v2.0 only (GPL-2.0)
Licencias públicas generales GNU General Public License v3.0 only (GPL-3.0)
Licencias públicas generales GNU Affero General Public License v3.0 (AGPL-3.0)
creative commons Creative Commons Attribution 1.0 Generic (CC-BY-1.0)
creative commons Creative Commons Attribution 2.0 Generic (CC-BY-2.0)
creative commons Creative Commons Attribution 3.0 Unported (CC-BY-3.0)
creative commons Creative Commons Attribution 4.0 International (CC-BY-4.0)
creative commons Creative Commons Zero v1.0 Universal (CC0-1.0)
creative commons Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.0)
Distribución de software Berkeley BSD 1-Clause License (BSD-1-Clause)
Distribución de software Berkeley BSD 2-Clause "Simplified" License (BSD-2-Clause)
Distribución de software Berkeley BSD 2-Clause FreeBSD License (BSD-2-Clause-FreeBSD)
Distribución de software Berkeley BSD 2-Clause NetBSD License (BSD-2-Clause-NetBSD)
Distribución de software Berkeley BSD-2-Clause Plus Patent License (BSD-2-Clause-Patent)
Distribución de software Berkeley BSD 3-Clause "New" or "Revised" License (BSD-3-Clause)
Distribución de software Berkeley BSD with attribution (BSD-3-Clause-Attribution)
Distribución de software Berkeley BSD 3-Clause Clear License (BSD-3-Clause-Clear)
Distribución de software Berkeley Lawrence Berkeley National Labs BSD variant license (BSD-3-Clause-LBNL)
Distribución de software Berkeley BSD 3-Clause No Nuclear License (BSD-3-Clause-No-Nuclear-License)
Distribución de software Berkeley BSD 3-Clause No Nuclear License 2014 (BSD-3-Clause-No-Nuclear-License-2014)
Distribución de software Berkeley BSD 3-Clause No Nuclear Warranty (BSD-3-Clause-No-Nuclear-Warranty)
Distribución de software Berkeley BSD 3-Clause Open MPI variant (BSD-3-Clause-Open-MPI)
Distribución de software Berkeley BSD 4-Clause "Original" or "Old" License (BSD-4-Clause)
Distribución de software Berkeley BSD-4-Clause (University of California-Specific) (BSD-4-Clause-UC)
Distribución de software Berkeley BSD Source Code Attribution (BSD-Source-Code)
Distribución de software Berkeley BSD Zero Clause License (0BSD)
dominio público The Unlicense (Unlicense)
Licencias de origen empresarial Boost Software License 1.0 (BSL-1.0)
Consorcio de Sistemas de Internet ISC License (ISC)

Esta tabla enumera las licencias para las que las sugerencias de código están siempre bloqueadas. Este ajuste no se puede configurar.

Licencias siempre bloqueadas
Licencia
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