> Looking as the code I disagree, you can see parts of the code have been
copied and modified.

Can you please elaborate?

I just had an look at the entire git history of the file (see
https://github.com/lightbend/paradox/commit/7f55c0c71bfbfc6a987c2693b19dcbb74c9dc9a3)
and the original version
of the code that was committed is pretty much the same as the latest
version (see
https://github.com/lightbend/paradox/commit/7f55c0c71bfbfc6a987c2693b19dcbb74c9dc9a3
)

This is the code from the project

  function setCookie(cname,cvalue,exdays) {
    if(!exdays) exdays = 365;
    var d = new Date();
    d.setTime(d.getTime() + (exdays*24*60*60*1000));
    var expires = "expires=" + d.toGMTString();
    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
  }

which if you asked someone "how do you create a cookie that lasts one year"
this is
the solution (or some slight variation) that any JS frontend developer
would code from scratch. There is also

  function getCookie(cookieName) {
    const cookieAttr = decodeURIComponent(document.cookie)
        .split(";")
        .find(row => row.trimStart().startsWith(cookieName))
    return cookieAttr ? cookieAttr.split("=")[1] : "";
  }

Which again if you know how cookies are encoded (i.e. they are represented
as key=value and delimited by colon i.e. ;) and you asked someone
to implement this from scratch, you will write the above.

On Fri, Jul 14, 2023 at 1:43 AM Justin Mclean <jus...@classsoftware.com>
wrote:

> Hi,
>
> Looking as the code I disagree, you can see parts of the code have been
> copied and modified.
>
> Kind Regard
> Justin
>
> > On 14 Jul 2023, at 9:12 am, PJ Fanning <fannin...@gmail.com> wrote:
> >
> > Thanks Justin for clarifying. Based on Johannes' input, we think that
> > we don't need to add anything to the license for these Mozilla links.
> > The links are there to point at the API documentation and none of the
> > sample code that appears in that documentation was copied.
> >
> > On Fri, 14 Jul 2023 at 00:05, Justin Mclean <jus...@classsoftware.com>
> wrote:
> >>
> >> HI,
> >>
> >> Both CC0 [1] and MIT [2] are treated as Category A licenses so can be
> included in a source release.
> >>
> >> Kind Regards,
> >> Justin
> >>
> >> 1.
> https://www.apache.org/legal/resolved.html#handling-public-domain-licensed-works
> >> 2. https://www.apache.org/legal/resolved.html#category-a
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org
> > For additional commands, e-mail: general-h...@incubator.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscr...@incubator.apache.org
> For additional commands, e-mail: general-h...@incubator.apache.org
>
>

-- 

Matthew de Detrich

*Aiven Deutschland GmbH*

Immanuelkirchstraße 26, 10405 Berlin

Amtsgericht Charlottenburg, HRB 209739 B

Geschäftsführer: Oskari Saarenmaa & Hannu Valtonen

*m:* +491603708037

*w:* aiven.io *e:* matthew.dedetr...@aiven.io

Reply via email to