GitCode, a git-hosting website operated Chongqing Open-Source Co-Creation Technology Co Ltd and with technical support from CSDN and Huawei Cloud.

It is being reported that many users’ repository are being cloned and re-hosted on GitCode without explicit authorization.

There is also a thread on Ycombinator (archived link)

  • bionicjoey@lemmy.ca
    link
    fedilink
    English
    arrow-up
    383
    arrow-down
    10
    ·
    6 months ago

    Solution: create a GitHub repo with Markdown articles outlining human rights abuses by the CCP and have a large number of GitHub users star and fork the repo.

    • Colonel Panic@lemm.ee
      link
      fedilink
      English
      arrow-up
      173
      arrow-down
      2
      ·
      6 months ago

      You’ve heard of CamelCase and lowercase and intVariableName variable naming styles. Get ready for:

      for (int Taiwan == 0; Taiwan < HongKong; Taiwan++) { int TianamenSquare == 0; … }

    • Tramort@programming.dev
      link
      fedilink
      English
      arrow-up
      90
      arrow-down
      3
      ·
      6 months ago

      That’s the whole point of this: they will automatically filter that out, and this is an impotent, though well intended, gesture.

      • Morphit @feddit.uk
        link
        fedilink
        English
        arrow-up
        78
        arrow-down
        1
        ·
        6 months ago

        How will they filter it out? If they just don’t mirror anything with ‘forbidden’ terms, we can poison repos to prevent them being mirrored. If they try to tamper with the repo histories then they’ll end up breaking a load of stuff that relies on consistent git hashes.

        • jorp@lemmy.world
          link
          fedilink
          English
          arrow-up
          28
          ·
          6 months ago

          I feel like the effort to make such a repo and make it popular enough to be cloned and rehosted is a lot more effort than someone manually checking the results of an automated filter process.

          The “effort economy” is hugely in favor of the mirroring side

      • bionicjoey@lemmy.ca
        link
        fedilink
        English
        arrow-up
        25
        ·
        6 months ago

        Yeah I figured as much. It was mostly a joke. At the end of the day, if stuff is on GH, people can take it. It’s barely even stealing. Unless the license disagrees of course but then you were putting a lot of trust in society by making it public in the first place.

        • jaybone@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          1
          ·
          6 months ago

          That’s what I don’t get about this. Why does anyone care? Even this Chinese company, why do they care to clone it all? It’s already all hosted and publicly available.

          • bionicjoey@lemmy.ca
            link
            fedilink
            English
            arrow-up
            9
            ·
            6 months ago

            Apparently they aren’t respecting licenses. It’s possible to have source code publicly available on GH but have it not be truly FOSS. But that’s generally not a great idea since you’re effectively relying on the honour system for people not to take your code.

          • irreticent@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            6 months ago

            Even this Chinese company, why do they care to clone it all? It’s already all hosted and publicly available.

            Until it isn’t. Perhaps they are preparing for a future war with the US and assume their access to all that code will be blocked. They want to copy it now while they have access.

      • Azzu@lemm.ee
        link
        fedilink
        English
        arrow-up
        25
        arrow-down
        2
        ·
        6 months ago

        The real solution is to include a few tiananmenSquare variables in all the repositories. Either they exclude the entire repository or just the specific file, in either case the entire project may be unusable.

        • BeigeAgenda@lemmy.ca
          link
          fedilink
          English
          arrow-up
          15
          arrow-down
          1
          ·
          6 months ago

          It’s a new coding paradigm, I will take some time getting used to looking for libraries in the uyghur/tianamen folder.

        • theneverfox@pawb.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 months ago

          So… You’re saying instead of “main”, “app”, or “core”, we should change the convention to make tiananmenSquare the entry point for apps?

          Or maybe make it the filename for utils, so it’ll just break

          • Azzu@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            6 months ago

            For example.

            But honestly I was more joking. The thing that makes most projects useful is the developers developing it, and they can’t clone that

        • Tramort@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          arrow-down
          2
          ·
          6 months ago

          China filters every byte of Internet traffic in and out of the country.

          It seems naive to think they can’t accomplish the same thing for a GitHub mirror.

          • Azzu@lemm.ee
            link
            fedilink
            English
            arrow-up
            5
            arrow-down
            1
            ·
            6 months ago

            They’re not supposed to, it’s just about blocking them from using the software :)

    • UnderpantsWeevil@lemmy.world
      link
      fedilink
      English
      arrow-up
      18
      arrow-down
      9
      ·
      6 months ago

      create a GitHub repo with Markdown articles outlining human rights abuses by the CCP

      Once you have logged “China killed 100 Zillion people! End CCP now!” in Chinese GitHub, everyone in China will realize that their lives are actually very bad and they need to do a Revolution immediately.

      • Kusimulkku@lemm.ee
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 months ago

        And here I was thinking that might prevent them mirroring the repo but whatever

    • Asherah@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      26
      ·
      6 months ago

      Maybe we should consider the same for the US government instead of being afraid of the big Chinese boogeyman across the sea? Because I guarantee you the US has just as many, if not more. But China bad. 🙄

      • bionicjoey@lemmy.ca
        link
        fedilink
        English
        arrow-up
        20
        arrow-down
        2
        ·
        edit-2
        6 months ago

        I was making a joke about abusing Chinese censorship in order to stop them cloning GitHub repos (assuming that was something you wanted to do). The joke being that the CCP suppresses information about their human rights abuses. That is not true of the US. You could absolutely make a GitHub repo detailing the crimes of the US government. Nobody will stop you.

      • x4740N@lemm.ee
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        2
        ·
        6 months ago

        50 Cent Army Repellant:

        六四

        1989 Tiananmen Square Massacre

      • bionicjoey@lemmy.ca
        link
        fedilink
        English
        arrow-up
        73
        arrow-down
        3
        ·
        edit-2
        6 months ago

        Tankie whataboutism strikes again.

        Two things can be bad at the same time. Wild, I know.

        Edit: also, the point of my joke wasn’t the human rights abuses. It is that these things are censored in China. So your comment is even more irrelevant. One could very easily create a repo outlining American crimes and put it on GitHub. But doing so in China with CCP crimes will have you sent to a Gulag

              • bionicjoey@lemmy.ca
                link
                fedilink
                English
                arrow-up
                44
                arrow-down
                1
                ·
                edit-2
                6 months ago

                Lmao it’s literally the name of a logical fallacy. How is the term itself fallacious?

                Also I harbour no racism or ill will toward the Chinese people. My girlfriend is Chinese and I care about her a lot and love learning about her culture. I just don’t abide the human rights atrocities (or censorship thereof) committed by any government.

  • 0x0@programming.dev
    link
    fedilink
    English
    arrow-up
    135
    arrow-down
    6
    ·
    6 months ago

    The vast majority of projects on GitHub is open-source and forkable, why would that need authorization?

    It’s… suspicious that China’s doing it en masse, but there’s nothing wrong in cloning or forking a repo last i heard.

    • passepartout@feddit.org
      link
      fedilink
      English
      arrow-up
      115
      arrow-down
      5
      ·
      6 months ago

      It’s not about authorization. They want to build a knowledge base for when the Great Firewall gets some more filters. Just like russias mirror of wikipedia which is heavily edited to discredit the west.

      • FaceDeer@fedia.io
        link
        fedilink
        arrow-up
        45
        arrow-down
        4
        ·
        6 months ago

        And under copyleft licensing, they’re allowed to do that. Both to GitHub repositories and Wikipedia.

        • passepartout@feddit.org
          link
          fedilink
          English
          arrow-up
          42
          arrow-down
          4
          ·
          6 months ago

          Of course they are, it’s not like there is some kind of international jurisdiction anyway. What is bothersome is why they do it.

          • acockworkorange@mander.xyz
            link
            fedilink
            English
            arrow-up
            2
            ·
            6 months ago

            Even if there was jurisdiction, anyone in the world is entitled to do it by the very licenses these works are released under.

        • Kusimulkku@lemm.ee
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 months ago

          Hopefully they follow the rest of the stipulations of the licenses, such as the common one about keeping the license as such and contributing the changes back.

      • 31337@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        6 months ago

        This seems like the most plausible explanation. Only other thing I can think of is they want to develop their own CoPilot (which I’m guessing isn’t available in China due to the U.S. AI restrictions?), and they’re just using their existing infrastructure to gather training data.

      • rottingleaf@lemmy.zip
        link
        fedilink
        English
        arrow-up
        15
        arrow-down
        21
        ·
        6 months ago

        Just like russias mirror of wikipedia which is heavily edited to discredit the west.

        How come I live in Russia and have never seen such?

        I know only of quite a few troll\counterculture projects, some, like Lurkmore, are already, well, dead, some, like Traditsiya, are not.

        That, of course, if you don’t mean that Russian Wikipedia in itself has problems. Which would be true.

        • passepartout@feddit.org
          link
          fedilink
          English
          arrow-up
          33
          arrow-down
          2
          ·
          6 months ago

          It’s called Ruwiki.

          It was launched in June 24, 2023 as a fork of the Russian Wikipedia, and has been described by some media groups as “Putin-friendly” and “Kremlin-compliant”.

    • ifsocialismwasabear@lemmy.ml
      link
      fedilink
      English
      arrow-up
      17
      arrow-down
      4
      ·
      6 months ago

      Firewalls are already being built in america’s internet with the ban of tiktok

      As an european i do not see problem with having copies of free software in places not controlled by the monopoly microsoft is morphing to.

  • csm10495@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    93
    arrow-down
    4
    ·
    6 months ago

    It’s a bit odd, but isn’t it equivalent to forking and putting up a fork elsewhere?

    I guess I don’t see the problem.

      • SorteKanin@feddit.dk
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        6 months ago

        Does it though? You can still put up a fork somewhere else as long as you uphold the license right? Unless I guess in the case where the license explicitly disallows forks, but I don’t think that’s very common (can you even do that?).

        • barsoap@lemm.ee
          link
          fedilink
          English
          arrow-up
          6
          ·
          6 months ago

          Forks are derivative works (quite obviously) so yes you can forbid them via license terms. Whether or not that’s still open source, take it up with OSI. I vaguely recall that at least once upon a time there was some project that required modification to the code to be published as separate patches and it was generally accepted to be open source don’t ask me which.

        • dev_null@lemmy.ml
          link
          fedilink
          English
          arrow-up
          3
          ·
          6 months ago

          Most GitHub repos don’t have a license, meaning you are not licensed to do anything with them. Rehosting them would be the same as rehosting an image you don’t have a license for.

    • UnderpantsWeevil@lemmy.world
      link
      fedilink
      English
      arrow-up
      29
      arrow-down
      8
      ·
      6 months ago

      It will be funny to see folks who spent the last ten years posting “It’s not stealing, it’s copying” memes suddenly find religion because Evil Foreign People got involved.

      • Klear@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        6 months ago

        I’m quite scared of how AI apparently pushes people in favour of significantly stricter copyrights. This is not a good trend.

        • UnderpantsWeevil@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          1
          ·
          edit-2
          6 months ago

          This isn’t people being influenced by AI. This is Microsoft’s Godzilla battling the RIAA/MPAA’s King Kong.

          The trend, to date, has been consolidation of media properties under fewer and more hegemonic distributors. And now we’re seeing a couple of economic Titans battle over the position of “Last Legitimate Music Vendor”.

    • WanderingVentra@lemm.ee
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      2
      ·
      6 months ago

      Ya, I kind of like the idea of code being put somewhere else just in case. It sucks it’s China, but I hate to see anything centralized in one company, especially if it’s a big public, good like Github and all it’s code.

    • pumpkinseedoil@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 months ago

      The only issue I see is that they make a new Chinese equivalent for GitHub where they can censor code easier (or was GitHub already blocked?), but they already censor everything anyway so there’s probably effectively no change.

  • raspberriesareyummy@lemmy.world
    link
    fedilink
    English
    arrow-up
    99
    arrow-down
    14
    ·
    6 months ago

    With the obligatory “fuck everyone who disregards open source licenses”, I am still slightly amused at this raising eyebrows while nearly no one is complaining about MS using github to train their copilot LLM, which will help circumvent licenses & copyrights by the bazillion.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      20
      ·
      6 months ago

      while nearly no one is complaining about MS using github to train their copilot LLM,

      Lots of people complained about that. I’ve only seen this single thread complaining about this.

    • Kusimulkku@lemm.ee
      link
      fedilink
      English
      arrow-up
      14
      ·
      6 months ago

      nearly no one is complaining about MS using github to train their copilot LLM

      What rock have you been living under??

    • Cosmicomical@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      arrow-down
      4
      ·
      6 months ago

      Came here to say this. As much as I don’t like china, there is really nothing to see (apart from the source, that’s for everybody to see).

      • mightyfoolish@lemmy.world
        link
        fedilink
        English
        arrow-up
        13
        arrow-down
        1
        ·
        edit-2
        6 months ago

        This could be illegal for git repos that do not have a open source license that allows mirroring or copying (BSD, Apache, Mit, GPL, etc.) Sometimes these repos are more “source available” and the source is only allowed to be read, not redistributed or modified. I would say that this is more of a matter for each individual copyright holder, not Microsoft.

        But ultimately I agree, this really isn’t as big of a deal as people are making.

        edit: changed some wording to be clearer

        • Maggoty@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          6
          ·
          6 months ago

          China is a sovereign entity. I’m pretty sure they can decide foreign licensing laws don’t apply there.

          • mightyfoolish@lemmy.world
            link
            fedilink
            English
            arrow-up
            6
            ·
            edit-2
            6 months ago

            China is a soverign state and they should make their own laws. However, China has promised repeatably that they will take IP concerns more strictly (trade deal with Trump in 2020 is one example of this promise). It seems of this moment they still use the World Intellectual Property Organization for inspiration for their IP laws. At one point, China did not acknowledge IP rights at all but chose to acknowledge them in order to secure foreign business trade. Being consistent is good for business; especially when it comes to international business.

            In 1980, China became a member of the World Intellectual Property Organization (WIPO). As of at least 2023, China’s view is that WIPO should be the primary international forum for IP rule-making. - Wikipedia

            • Maggoty@lemmy.world
              link
              fedilink
              English
              arrow-up
              2
              arrow-down
              1
              ·
              6 months ago

              China has never been consistent. Doing business there is all about relations with the CCP. This is a perfect example of how an authoritarian regime differs from a liberal regime. One is bound by it’s promises and rules and the other binds it’s rules to it’s needs.

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 months ago

      Not like MS couldn’t be sued.
      It may be expensive but possible.
      Unlike China. Good luck suing china (or the chinese government) as a whole. Maybe you’ll get out a domestic ban but I can hardly believe that they will care and probably will continue with their operation. But now it’s not on very legal grounds.

    • kava@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      3
      ·
      6 months ago

      If I look at a few implementations of an algorithm and then implement my own using those as inspiration, am I breaking copyright law and circumventing licenses?

      • sugar_in_your_tea@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 months ago

        That depends on how similar your resulting algorithm is to the sources you were “inspired” by. You’re probably fine if you’re not copying verbatim and your code just ends up looking similar because that’s how solutions are generally structured, but there absolutely are limits there.

        If you’re trying to rewrite something into another license, you’ll need to be a lot more careful.

        • kava@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 months ago

          What’s the limit? This needs to be absolutely explicit and easy to understand because this is what LLMs are doing. They take hundreds of thousands of similar algorithms and they create an amalgamation of it.

          When is it copying and when it is “inspiration”? What’s the line between learning and copying?

          • sugar_in_your_tea@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            6 months ago

            I disagree that it needs to be explicit. The current law is the fair use doctrine, which generally has more to do with the intended use than specific amounts of the text/media. The point is that humans should know where that limit is and when they’ve crossed it, with motive being a huge part of it.

            I think machines and algorithms should have to abide by a much narrower understanding of “fair use” because they don’t have motive or the ability to Intuit when they’ve crossed the line. So scraping copyrighted works to produce an LLM should probably generally be illegal, imo.

            That said, our current copyright system is busted and desperately needs reform. We should be limiting copyright to 14 years (as in the original copyright act of 1790), with an option to explicitly extend for another 14 years. That way LLMs can scrape comment published >28 years ago with no concerns, and most content produced >14 years (esp. forums and social media where copyright extension is incredibly unlikely). That would be reasonable IMO and sidestep most of the issues people have with LLMs.

            • kava@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              6 months ago

              First, this conversation has little to do with fair use. Fair use is when there is an acceptable reason to break copyright. For example when you are making a parody or critique or for education purposes.

              What we are talking about is the act of reading and/or learning and then using that information in order to synthesize new material. This is essentially the entire point of education. When someone goes to art school, they study many different artists and their techniques. They learn from these techniques as they merge them together in different ways to create novel art.

              Everybody recognizes this is perfectly OK and to assume otherwise is absurd. So what we are talking about is not fair use, but extracting data from copyrighted material and using it to create novel material.

              The distinction here is you claim when this process is automated, it should become illegal. Why?

              My opinion is if it’s legal for a human to do, it should be legal for a human to automate.

              • sugar_in_your_tea@sh.itjust.works
                link
                fedilink
                English
                arrow-up
                1
                ·
                6 months ago

                What we are talking about is the act of reading and/or learning and then using that information in order to synthesize new material.

                Sure, but that’s not what LLMs are doing. They’re breaking down works to reproduce portions of it in answers. Learning is about concepts, LLMs don’t understand concepts, they just compare inputs with training data to provide synthesized answers.

                The process a human goes through is distinctly different from the process current AI goes through. The process an AI goes through is closer to a journalist copy-pasting quotations into their article, which falls under fair use. The difference is that AI will synthesize quotations from multiple (many) sources, whereas a journalist will generally just do one at a time, but it’s still the same process.

      • raspberriesareyummy@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        6 months ago

        As I am a big proponent of open source, there is nothing wrong even with copying code - the point is that you should not be allowed to claim something as your own idea and definitely not to claim copyright on code that was “inspired” by someone else’s work. The easiest solution would be to forbid patents on software (and patents altogether) completely. The only purpose that FOSS licenses have is to prevent corporations from monetizing the work under the license.

        • kava@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          6 months ago

          Well let’s say there’s an algorithm to find length of longest palindrome with a set of letters. I look at 20 different implementations. Some people use hashmaps, some don’t. Some do it recursively, some don’t. Etc

          I consider all of them and create my own. I decide to implement myself both recursive and hash map but also add certain novel elements.

          Am I copying code? Am I breaking copyright? Can I claim I wrote it? Or do I have to give credit to all 20 people?

          As for forbidding patents on software, I agree entirely. Would be a net positive for the world. You should be able to inspect all software that runs on your computer. Of course that’s a bit idealistic and pipe-dreamy.

          • raspberriesareyummy@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            6 months ago

            again, I don’t have a problem with copying code - but I as a developer know whether I took enough of someone else’s algorithm so that I should mention the original authorship :) My only problem with circumventing licenses is when people put more restrictive licenses on plagiarized code.

            And - I guess - in conclusion, if someone makes a license too free, so that putting a restrictive (commercial) license or patent on plagiarized / derived work, that is also something I don’t want to see.

            • kava@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              6 months ago

              I have no problem copying code either. The question is at what point does it go from

              1. I’m reading code and doing research

              To

              1. I’m copying code

              How abstracted does it have to be before it’s OK? If you write a merge sort, it might be similar to the one you learned when you were studying data structures.

              Should you make sure you attribute your data structure textbook every time you write a merge sort?

              Are you understanding the point I’m trying to get at?

              • raspberriesareyummy@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                6 months ago

                My trivial (non legal ;) answer is: If you are working for a corporation that is looking to patent something / make something closed license: the moment you ever looked at a single line of my code relevant to what you are doing, you are forbidden from releasing under any more restrictive license. If you are a private person working on open source? Then you be the judge whether you copied enough of my code that you believe it is more than just “inspired by”.

    • ILikeBoobies@lemmy.ca
      link
      fedilink
      English
      arrow-up
      10
      arrow-down
      25
      ·
      6 months ago

      Are you just trying to make a bad pro-China argument or have you never been online before?

      • Petter1@lemm.ee
        link
        fedilink
        English
        arrow-up
        33
        arrow-down
        1
        ·
        6 months ago

        I see it more as a good anti-Microsoft argument 🤷🏻‍♀️

        • ILikeBoobies@lemmy.ca
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          18
          ·
          6 months ago

          “Why does no one say murder is bad unless China is murdering”

          Isn’t a good anti-murder argument

          • raspberriesareyummy@lemmy.world
            link
            fedilink
            English
            arrow-up
            16
            arrow-down
            1
            ·
            6 months ago

            “Why does no one say murder is bad unless China is murdering”

            I can not fathom how you absolutely nailed the essence of my comment, yet misunderstood it (and - arguably - your own example) so fundamentally.

            Let me try to help, once:

            “Why do most people not complain about murder when Microsoft is doing it, but when China is doing it, the very justified outrage can be heard?”

            • ILikeBoobies@lemmy.ca
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              4
              ·
              edit-2
              6 months ago

              I cannot fathom how you absolutely nailed the essence of my comment, yet misunderstood it (and - arguably - your own example) so fundamentally.

              People do criticize Microsoft for using open source data to train LLMs, just like people criticize murder

              Hence the query about having never been on the internet before

  • dan@upvote.au
    link
    fedilink
    English
    arrow-up
    96
    arrow-down
    14
    ·
    edit-2
    6 months ago

    I don’t understand why this is a bad thing? Open source code is designed to be shared/distributed, and an open-source license can’t place any limits on who can use or share the code. Git was designed as a distributed, decentralized model partly for this reason (even though people ended up centralizing it on Github anyways)

    They might end up using the code in a way that violates its license, but simply cloning it isn’t a problem.

    • BlueMagma@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      36
      arrow-down
      4
      ·
      6 months ago

      I expect it’s going likely to be used to train some Chinese AI model. The race to AGI is in progress. IMO: “ideas” (code included) should be freely usable by anyone, including the people I might disagree with. But I understand the fear it induces to think that an authoritarian government will get access to AGI before a democratic one. That said I’m not entirely convinced the US is a democratic government…

      PS: I’m french, and my gov is soon to be controlled by fascist pigs if it’s not already, so I’m not judging…

      • dan@upvote.au
        link
        fedilink
        English
        arrow-up
        12
        arrow-down
        3
        ·
        6 months ago

        I expect it’s going likely to be used to train some Chinese AI model.

        Even if they do that, the license for open source software doesn’t disallow it from being done.

        • sugar_in_your_tea@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          13
          ·
          6 months ago

          It certainly can. Most licences require derivative works to be under the same or similar licence, and an AI based on FOSS would likely not respect those terms. It’s the same issue as AI training on music, images, and text, it’s a likely violation of copyright and thus a violation of open source licensing terms.

          Training on it is probably fine, but generating code from the model is likely a whole host of licence violations.

          • dan@upvote.au
            link
            fedilink
            English
            arrow-up
            5
            arrow-down
            4
            ·
            6 months ago

            Most licences require derivative works to be under the same or similar licence

            Some, but probably not most. This is mostly an issue with “viral” licenses like GPL, which restrict the license of derivative works. Permissive licenses like the MIT license are very common and don’t restrict this.

            MIT does say that “all copies or substantial portions of the Software” need to come with the license attached, but code generated by an AI is arguably not a “substantial portion” of the software.

            • sugar_in_your_tea@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              8
              ·
              6 months ago

              code generated by an AI is arguably not a “substantial portion” of the software

              How do you verify that though?

              And does the model need to include all of the licenses? Surely the “all copies or substantial portions” would apply to LLMs, since they literally include the source in the model as a derivative work. That’s fine if it’s for personal use (fair use laws apply), but if you’re going to distribute it (e.g. as a centralized LLM), then you need to be very careful about how licenses are used, applied, and distributed.

              So I absolutely do believe that building a broadly used model is a violation of copyright, and that’s true whether it’s under an open source license or not.

    • barryamelton@lemmy.ml
      link
      fedilink
      English
      arrow-up
      24
      arrow-down
      1
      ·
      6 months ago

      The code needs to maintain the copyrights and authors. They are “mirroring” usernames into their own domain, with mails that dont correspond to the original authors, stealing their contributions.

      • dan@upvote.au
        link
        fedilink
        English
        arrow-up
        5
        ·
        6 months ago

        with mails that dont correspond to the original authors,

        Oh! I didn’t realise this. Do you have an example?

      • Aceticon@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        edit-2
        6 months ago

        That would make it plagiarism, which ethically is a whole different matter than merelly copying that which is free to copy.

    • Kayn@dormi.zone
      link
      fedilink
      English
      arrow-up
      19
      arrow-down
      2
      ·
      6 months ago

      I’m seeing this misconception in a lot of places.

      Just because something is on GitHub, doesn’t mean it’s open source. It doesn’t automatically grant permission to share either.

        • Kayn@dormi.zone
          link
          fedilink
          English
          arrow-up
          3
          ·
          6 months ago

          Correct, you are allowed to click the “fork” button and nothing else. You’re still not allowed to download, use, modify, compile or redistribute the code in any way that doesn’t involve the “fork” button.

      • Grimm665@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        6
        ·
        6 months ago

        It may not be de jure open source, but if the code is posted publicly on the internet in a way that anyone can download and modify it, it sort of becomes de facto open source (or “source available” if you prefer).

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          5
          ·
          6 months ago

          Please don’t muddy the water with terms like this. Something is open source if and only if it has an open source license.

    • ZILtoid1991@lemmy.world
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      2
      ·
      6 months ago

      I personally don’t care if someone “steals” my code (Here’s my profile if you want to do so: https://github.com/ZILtoid1991 ), however it can mean some mixture of two things:

      1. China is getting ready for war, which will mean the US will try its best to block technology, including open source projects.
      2. China is planning to block GitHub due to it being able to host information the Chinese government might not like.

      Of course it could mean totally unrelated stuff too (e.g. just your typical anti-China and/or anti-communist paranoia sells political points).

      • dan@upvote.au
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        6 months ago

        US will try its best to block technology, including open source projects.

        You can’t block open source projects from anyone. That’s the entire point of open source. For a license to be considered open-source, it must not have any limitations as to who can use it.

        • irreticent@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 months ago

          You can’t block open source projects from anyone.

          I think they were referring to blocking GitHub from public access. In the event of a world war I could easily see Microsoft obeying the order to shut down GitHub.

  • romp_2_door@lemmy.world
    link
    fedilink
    English
    arrow-up
    76
    ·
    6 months ago

    fun to think that my shitty program is now stored in an artic vault and stored in some Chinese servers

    So many bugs I never fixed and yet here we are lol

  • callmepk@lemmy.world
    link
    fedilink
    English
    arrow-up
    45
    arrow-down
    1
    ·
    edit-2
    6 months ago

    I think the major issue is here is that they are “mirroring” with the same username without clear indicating they are mirrors and they are modifying all the github links in Readme to GitCode. But if you want to claim your project, they want to only comment using the issue section of a project which requires account; but then you have to have a Chinese phone number to register account, and you will automatically get a Huawei Cloud account when you registering it

    Edit: also some background info about the company behind GitCode from my other comment: the company behind GitCode is funded and owned by CSDN (China Software Developer Network) and the actual infrastructure and service is provided by Huawei Cloud. On the website they have written this statement in the registration page.

    CSDN is mostly a platform to share posts on software development, but it is known to have a lot of issues, including:

    1. poor content and directly copied posts from other people without consent, which to a point people is considering the site a content farm; it is even a top blocked site on Kagi;
    2. All code provided there requires “coins” to download, even they are open-sourced code; it was reported multiple people in China got scammed via CSDN;
    3. You have to login to copy code on the post, and sometimes hides half the post to require you to login to read.
    • uis@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      6 months ago
      1. All code provided there requires “coins” to download, even they are open-sourced code; it was reported multiple people in China got scammed via CSDN;
      2. You have to login to copy code on the post, and sometimes hides half the post to require you to login to read.

      Oh fuck! Capitalism with beastly grin strikes back.

    • KubeRoot@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      44
      arrow-down
      4
      ·
      6 months ago

      I do believe it’s illegal if they take a repository with a restrictive license (which includes any repository without a license), and then make it available on their own service. I think China just doesn’t care.

      • the_ocs@lemmy.world
        link
        fedilink
        English
        arrow-up
        25
        arrow-down
        5
        ·
        6 months ago

        If it’s hosted in a public repo, anyone can clone it, that’s very much part of most git flows.

        What you can do with the software, how you can use it, that’s another matter, based on the licence.

        That of course assumes China will respect the copyright…

        • KubeRoot@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          9
          arrow-down
          1
          ·
          6 months ago

          Sure, you can probably clone it - I’m not 100% sure, but I think laws protect that as long as it’s private use.

          You can also fork it on GitHub, that’s something you agree to in the GitHub ToS - though I think you’re not allowed to push any modifications if the license doesn’t allow it?

          Straight up taking the content from GitHub, uploading it to your own servers, and letting people grab a copy from there? That’s redistribution, and is something that needs to be permitted by the license. It doesn’t matter if it’s git or something else, in the end that’s just a way to host potentially copyrighted material.

          Though if you have some reference on why this is not the case, I’d love to see it - but I’m not gonna take a claim that “that’s very much a part of most git flows”.

      • Themadbeagle@lemm.ee
        link
        fedilink
        English
        arrow-up
        16
        arrow-down
        7
        ·
        6 months ago

        Illegal according to who?

        The US? Why would China care, they are their own country with their own laws.

        International courts? Who is enforcing those judgments?

          • irreticent@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            ·
            6 months ago

            It’s not about laws at this level but about whether it is worth to do vs possible repercussions

            Again, what repercussions? Who will enforce an ICC judgement against the CCP? Laws aside, what possible actions could be taken? I guess sanctions but that’s unlikely over something like this.

    • menas@lemmy.wtf
      link
      fedilink
      English
      arrow-up
      3
      ·
      6 months ago

      Law do not exist by itself; it’s the result of balance of power. How would you know that your State do not use illegally free software ? And if you know it, could you sue it ? Even if it’s a classified administration ?

      Apply laws Internationally is even worse. It usually depends of the imperialist relationship between States. For exemple, Facebook rules was illegal in France, but France changes it’s laws rather than sue Facebook. A decade later, the whole European Union could forte RGPD upon the GAFAM.

      China have nothing to fear in ignoring those licence, and we shouldn’t rely on it to protect our work. However we could strengthen our common defenses, through FOSS for people in the US … and maybe trade unions elsewhere.

  • kersplomp@programming.dev
    link
    fedilink
    English
    arrow-up
    59
    arrow-down
    25
    ·
    edit-2
    6 months ago

    Some random Chinese company: does something jenky

    Blogger: “The entire country of China is doing this jenky thing!”

      • DAMunzy@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        19
        arrow-down
        37
        ·
        6 months ago

        And all US companies follow US laws and crazy people say they do the bidding of CIA/NSA/FBI- which they do, to a degree.

        • Riven@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          18
          arrow-down
          3
          ·
          6 months ago

          Yea they would have to do their bidding if the government came knocking with subpoenas.

            • Riven@lemmy.dbzer0.com
              link
              fedilink
              English
              arrow-up
              15
              arrow-down
              1
              ·
              6 months ago

              Might be because of our approaches?

              Your’s comes across as a sort of whatabout that nobody asked for and mine is just a statement of fact related to what you mentioned.

              It’s not inaccurate to say that the Chinese government has a tighter leash on all business in their country than the US has in theirs though.

    • callmepk@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      1
      ·
      edit-2
      6 months ago

      The random Chinese company: owned by Huawei and CSDN (where CSDN is known to be the worst site known to Chinese developers where they literally costs money to let you download open source code)

      Edit: i think my original is a bit unclear, so this is a more detailed info: the company is funded and owned by CSDN (China Software Developer Network) and the actual infrastructure and service is provided by Huawei Cloud. On the website they have written this statement in the registration page.

      CSDN is mostly a platform to share posts on software development, but it is known to have a lot of issues, including:

      1. poor content and directly copied posts from other people without consent, which to a point people is considering the site a content farm; it is even a top blocked site on Kagi;
      2. All code provided there requires “coins” to download, even they are open-sourced code; it was reported multiple people in China got scammed via CSDN;
      3. You have to login to copy code on the post, and sometimes hides half the post to require you to login to read.
  • A1kmm@lemmy.amxl.com
    link
    fedilink
    English
    arrow-up
    35
    arrow-down
    2
    ·
    6 months ago

    GitHub are not some bastion of righteousness - they are literally owned by Microsoft. And they work hard to stop people from getting too much Open Source from them, with rate limits and the like, so essentially gate keep.

    I think CSDN probably want to gatekeep their clone even harder, but in general having archives of GitHub on the Internet is a good thing.

  • Melvin_Ferd@lemmy.world
    link
    fedilink
    English
    arrow-up
    32
    arrow-down
    1
    ·
    edit-2
    6 months ago

    If we steal IP from China does the American government give us a business loan?