IBM Cloud Docs
Code suggestion license reference

Code suggestion license reference

watsonx Code Assistant

Watsonx Code Assistant checks whether a generated code suggestion is similar to other code sources.

The generated code must be 10 or more lines in these languages:

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

By default, watsonx Code Assistant blocks code suggestions that are similar to other code sources.

For some licenses, you can allow code suggestions that include a license reference. For more information, see Configuring how code suggestions are displayed.

This table lists the licenses for which you can allow code suggestions:

Licenses that can be allowed for code suggestions
Group License
MIT Licenses MIT No Attribution (mit-0)
MIT Licenses Enlightenment License (e16) (MIT-advertising)
MIT Licenses CMU License (MIT-CMU)
MIT Licenses enna License (MIT-enna)
MIT Licenses feh License (MIT-feh)
MIT Licenses MIT License (MIT)
MIT Licenses MIT +no-false-attribs license (MITNFA)
Apache Software Licenses Apache License 1.0 (Apache-1.0)
Apache Software Licenses Apache License 1.1 (Apache-1.1)
Apache Software Licenses Apache License 2.0 (Apache-2.0)
Lesser General Public Licenses GNU Lesser General Public License v2.1 only (LGPL-2.1)
Lesser General Public Licenses GNU Lesser General Public License v3.0 only (LGPL-3.0)
General Public Licenses GNU General Public License v2.0 only (GPL-2.0)
General Public Licenses GNU General Public License v3.0 only (GPL-3.0)
General Public Licenses 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)
Berkeley Software Distribution BSD 1-Clause License (BSD-1-Clause)
Berkeley Software Distribution BSD 2-Clause "Simplified" License (BSD-2-Clause)
Berkeley Software Distribution BSD 2-Clause FreeBSD License (BSD-2-Clause-FreeBSD)
Berkeley Software Distribution BSD 2-Clause NetBSD License (BSD-2-Clause-NetBSD)
Berkeley Software Distribution BSD-2-Clause Plus Patent License (BSD-2-Clause-Patent)
Berkeley Software Distribution BSD 3-Clause "New" or "Revised" License (BSD-3-Clause)
Berkeley Software Distribution BSD with attribution (BSD-3-Clause-Attribution)
Berkeley Software Distribution BSD 3-Clause Clear License (BSD-3-Clause-Clear)
Berkeley Software Distribution Lawrence Berkeley National Labs BSD variant license (BSD-3-Clause-LBNL)
Berkeley Software Distribution BSD 3-Clause No Nuclear License (BSD-3-Clause-No-Nuclear-License)
Berkeley Software Distribution BSD 3-Clause No Nuclear License 2014 (BSD-3-Clause-No-Nuclear-License-2014)
Berkeley Software Distribution BSD 3-Clause No Nuclear Warranty (BSD-3-Clause-No-Nuclear-Warranty)
Berkeley Software Distribution BSD 3-Clause Open MPI variant (BSD-3-Clause-Open-MPI)
Berkeley Software Distribution BSD 4-Clause "Original" or "Old" License (BSD-4-Clause)
Berkeley Software Distribution BSD-4-Clause (University of California-Specific) (BSD-4-Clause-UC)
Berkeley Software Distribution BSD Source Code Attribution (BSD-Source-Code)
Berkeley Software Distribution BSD Zero Clause License (0BSD)
Public Domain The Unlicense (Unlicense)
Business Source Licenses Boost Software License 1.0 (BSL-1.0)
Internet Systems Consortium ISC License (ISC)

This table lists the licenses for which code suggestions are always blocked. This setting can't be configured.

Licenses that are always blocked
License
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