There is no law in China, exactly. It only owns the rule of Machiavelli. Many Chinese programmers just sell some code in Github to Chinese government, which they can got a lot of money. Can you imagine that? The way that Chinese programmer make a living just Copy and paste.