---
name: watsonx-code-assistant-wca-license-reference
title: Code suggestion license reference
description: Watsonx Code Assistant checks whether a generated code suggestion is similar to other code sources.
last-updated: 2025-01-08
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/watsonx-code-assistant?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Code suggestion license reference
{: #wca-license-reference}

[watsonx Code Assistant]{: tag-blue}

Watsonx Code Assistant checks whether a generated code suggestion is similar to other code sources.
{: shortdesc}

The generated code must be 10 or more lines in these languages:
When you reference a method, or use CodeLens on a method, watsonx Code Assistant supports certain code languages. Referencing a full file works for all languages. For more information, see [Language support when you work with methods](https://cloud.ibm.com/docs/watsonx-code-assistant?topic=watsonx-code-assistant-wca-reference-methods-language&format=markdown).

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](https://cloud.ibm.com/docs/watsonx-code-assistant?topic=watsonx-code-assistant-cloud-setup-configurations&format=markdown).

This table lists the licenses for which you can allow 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)` |
{: caption="Licenses that can be allowed for code suggestions" caption-side="bottom"}

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

| 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` 
{: caption="Licenses that are always blocked" caption-side="bottom"}