author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20 values | license stringclasses 3 values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
323,346 | 20.09.2021 06:54:04 | -28,800 | df3f28188609dee6e49127d98d1a41c5b95d5d21 | Using strpos instead of mb_strpos | [
{
"change_type": "MODIFY",
"old_path": "Algo/TfIdf.php",
"new_path": "Algo/TfIdf.php",
"diff": "@@ -97,7 +97,7 @@ class TfIdf extends Factory\n$count = 0;\nforeach ($this->src_docs as $doc) {\n- if (false !== mb_strpos($doc, $gram, 0, 'UTF-8')) {\n+ if (false !== strpos($doc, $gram)) {\n++$count;\n}... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using strpos instead of mb_strpos |
323,346 | 20.09.2021 21:59:34 | -28,800 | 5a29a719956a74276e84a89fe49e7c24270aac14 | Using RMM to find possible words | [
{
"change_type": "MODIFY",
"old_path": "Algo/wordFinder.php",
"new_path": "Algo/wordFinder.php",
"diff": "@@ -32,7 +32,7 @@ class wordFinder extends Factory\n{\npublic int $min_tf = 2;\npublic int $step_len = 8;\n- public float $min_diff = 0.8;\n+ public float $min_diff = 0.5;\npublic int $src_len =... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using RMM to find possible words |
323,346 | 21.09.2021 08:56:28 | -28,800 | bf52a20667142e1f6d12990b7a9121e5969b215f | Improve word find logic | [
{
"change_type": "MODIFY",
"old_path": "Algo/wordFinder.php",
"new_path": "Algo/wordFinder.php",
"diff": "@@ -32,7 +32,7 @@ class wordFinder extends Factory\n{\npublic int $min_tf = 2;\npublic int $step_len = 8;\n- public float $min_diff = 0.5;\n+ public float $min_diff = 0.8;\npublic int $src_len =... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve word find logic |
323,346 | 21.09.2021 13:51:31 | -28,800 | 0d831a9c08b4da46eef631d94e95e99b8d55a80f | Using text chunk instead of lines | [
{
"change_type": "MODIFY",
"old_path": "Algo/wordFinder.php",
"new_path": "Algo/wordFinder.php",
"diff": "@@ -34,24 +34,23 @@ class wordFinder extends Factory\npublic int $step_len = 8;\npublic float $min_diff = 0.8;\n- public int $src_len = 0;\n- public string $src_text = '';\n-\n+ public array $ch... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using text chunk instead of lines |
323,346 | 22.09.2021 15:20:54 | -28,800 | fcf9dca26fb924cc08ab014952703784c559575e | Change funciton name and visibility | [
{
"change_type": "MODIFY",
"old_path": "Algo/Vsm.php",
"new_path": "Algo/Vsm.php",
"diff": "@@ -39,7 +39,7 @@ class Vsm extends Factory\n*\n* @return float\n*/\n- private static function getDist(array $src, array $dst, array $vct_val = []): float\n+ public function getDistance(array $src, array $dst... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change funciton name and visibility |
323,346 | 22.09.2021 15:52:50 | -28,800 | 10d9eebeaa8d01a9e1fbca497573b0806e937f50 | Change Vsm result to acos | [
{
"change_type": "MODIFY",
"old_path": "Algo/Vsm.php",
"new_path": "Algo/Vsm.php",
"diff": "@@ -57,7 +57,7 @@ class Vsm extends Factory\n}\n//Calculate space vector distance\n- $vsm = cos($res_vct / (sqrt($res_src * $res_dst)));\n+ $vsm = acos($res_vct / (sqrt($res_src * $res_dst)));\nunset($src, $d... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change Vsm result to acos |
323,346 | 22.09.2021 16:02:06 | -28,800 | b5e47694e321fb3ae4ee7b8d1558b27e14b3bc2e | Change Vsm result to COS(x) | [
{
"change_type": "MODIFY",
"old_path": "Algo/Vsm.php",
"new_path": "Algo/Vsm.php",
"diff": "@@ -57,7 +57,7 @@ class Vsm extends Factory\n}\n//Calculate space vector distance\n- $vsm = acos($res_vct / (sqrt($res_src * $res_dst)));\n+ $vsm = $res_vct / (sqrt($res_src * $res_dst));\nunset($src, $dst, $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change Vsm result to COS(x) |
323,346 | 27.09.2021 16:43:59 | -28,800 | 29705cc786a89561d19c5b6d9ff74b448d7142d5 | Let IOUnit::addMsgData accept all data types | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -162,15 +162,14 @@ class IOUnit extends Factory\n* Add message data\n*\n* @param string $msg_key\n- * @param array $msg_data\n*\n* @return $this\n*/\n- public function addMsgData(string $msg_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Let IOUnit::addMsgData accept all data types |
323,346 | 15.10.2021 16:18:26 | -28,800 | 2ebc060729bb6baafe9916d1a1ff9630772eb92f | Change default param value, remove useless code | [
{
"change_type": "MODIFY",
"old_path": "Algo/findWords.php",
"new_path": "Algo/findWords.php",
"diff": "@@ -32,7 +32,7 @@ class findWords extends Factory\n{\npublic int $min_tf = 2;\npublic int $step_len = 8;\n- public float $min_diff = 0.8;\n+ public float $min_diff = 0.4;\npublic array $chunk_list... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Change default param value, remove useless code |
323,346 | 18.10.2021 13:41:34 | -28,800 | fe680fc4fab4da1e00c8837890bb77bed1d390c4 | Fix NGram error | [
{
"change_type": "MODIFY",
"old_path": "Algo/NGram.php",
"new_path": "Algo/NGram.php",
"diff": "@@ -62,14 +62,18 @@ class NGram extends Factory\n$grams = [];\nif ($fill_empty && $n > 1) {\n- $this->fillEmpty($n - 1);\n+ $fill_len = $n - 1;\n+ $this->fillEmpty($fill_len);\n+ $this->src_len += $fill_l... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix NGram error |
323,346 | 18.10.2021 14:10:19 | -28,800 | 489299c90dad10a1a840387767ac2c7ebb2e432b | Use 0 insetad of negative value in IDF calculation | [
{
"change_type": "MODIFY",
"old_path": "Algo/TfIdf.php",
"new_path": "Algo/TfIdf.php",
"diff": "@@ -82,6 +82,10 @@ class TfIdf extends Factory\n{\nif (!isset($this->dst_idf[$gram])) {\n$this->dst_idf[$gram] = log($this->src_len / ($this->findContains($gram) + 1));\n+\n+ if (0 > $this->dst_idf[$gram]... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Use 0 insetad of negative value in IDF calculation |
323,346 | 18.10.2021 15:00:05 | -28,800 | 2002f35caca22b4c6724b2f3ecd7e2b5cdce5f8a | Fix lossing word when offset $j equals 1 | [
{
"change_type": "MODIFY",
"old_path": "Algo/findWords.php",
"new_path": "Algo/findWords.php",
"diff": "@@ -102,7 +102,7 @@ class findWords extends Factory\n$j = $length;\n$i = $length - $this->step_len;\n- while ($j > 1) {\n+ while ($j > 0) {\nif (0 > $i) {\n$i = 0;\n}\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix lossing word when offset $j equals 1 |
323,346 | 22.10.2021 15:06:07 | -28,800 | 9ec6f597f11c355ec7861c47c9983490e9f3792f | Hard code fix division by zero in Vsm | [
{
"change_type": "MODIFY",
"old_path": "Algo/Vsm.php",
"new_path": "Algo/Vsm.php",
"diff": "@@ -57,7 +57,7 @@ class Vsm extends Factory\n}\n//Calculate space vector distance\n- $vsm = $res_vct / (sqrt($res_src * $res_dst));\n+ $vsm = 0 < $res_vct ? ($res_vct / (sqrt($res_src * $res_dst))) : 0;\nunse... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Hard code fix division by zero in Vsm |
323,346 | 02.11.2021 10:09:49 | -28,800 | c3c71518804c94a81a21a24c59bea1af13d66e61 | Add copy dir from path | [
{
"change_type": "MODIFY",
"old_path": "Ext/libFile.php",
"new_path": "Ext/libFile.php",
"diff": "@@ -124,6 +124,50 @@ class libFile extends Factory\nreturn $file_list;\n}\n+ /**\n+ * Copy dir to path\n+ *\n+ * @param string $src\n+ * @param string $dst\n+ *\n+ * @return int\n+ */\n+ public function... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add copy dir from path |
323,346 | 02.11.2021 10:48:17 | -28,800 | 697375a45933d4b7619b14f3bbda19e4be15b128 | Funciton renamed | [
{
"change_type": "MODIFY",
"old_path": "Ext/libFile.php",
"new_path": "Ext/libFile.php",
"diff": "@@ -55,7 +55,7 @@ class libFile extends Factory\n*\n* @return string\n*/\n- public function getPath(string $path, string $root = ''): string\n+ public function mkPath(string $path, string $root = ''): s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Funciton renamed |
323,346 | 05.11.2021 18:35:17 | -28,800 | f4ac011c7665402ecf957cf7c9707613ebdf888e | Logic improved, bug fix | [
{
"change_type": "MODIFY",
"old_path": "Ext/libZip.php",
"new_path": "Ext/libZip.php",
"diff": "@@ -43,8 +43,6 @@ class libZip extends Factory\n\\ZipArchive::ER_SEEK => 'Seek error.'\n];\n- public \\ZipArchive $zipArchive;\n-\npublic string $store_path = 'zipFile';\npublic array $target_file = [];\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Logic improved, bug fix |
323,346 | 22.11.2021 16:02:43 | -28,800 | c1204b24170208f2ee4fbc6389ac4130be946349 | Add getFiles, remove useless comments | [
{
"change_type": "MODIFY",
"old_path": "Ext/libFile.php",
"new_path": "Ext/libFile.php",
"diff": "@@ -57,25 +57,20 @@ class libFile extends Factory\n*/\npublic function mkPath(string $path, string $root = ''): string\n{\n- //Define root\n$root = App::new()->getRootPath($root);\n- //Get clean path\n$... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add getFiles, remove useless comments |
323,346 | 30.11.2021 11:29:20 | -28,800 | 2f118f42dd69474002628128a24bac4cc545d9b7 | Only get MAC addr from network info for hardware hash | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/OS/WINNT.php",
"new_path": "Core/Lib/OS/WINNT.php",
"diff": "@@ -40,8 +40,8 @@ class WINNT\n{\n$queries = [\n'wmic cpu get Caption, CreationClassName, Family, Manufacturer, Name, ProcessorId, ProcessorType, Revision /format:value',\n- 'wmic nic get Ad... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Only get MAC addr from network info for hardware hash |
323,346 | 04.12.2021 23:19:59 | -28,800 | 64c4451e9b82a75be48f5e474865f9ba2f52db0a | Add option bypass_shell to libMPC | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -162,7 +162,10 @@ class libMPC extends Factory\n['file', $stdout_path, 'wb'],\n['file', $stderr_path, 'wb']\n],\n- $pipes\n+ $pipes,\n+ null,\n+ null,\n+ ['bypass_shell' => true]\n);\nif (!is_resource(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add option bypass_shell to libMPC |
323,346 | 04.12.2021 23:29:55 | -28,800 | 6f71f8d0585f52e8c4e89f5b8671d9237fd8abb6 | Using base64 encoded command | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -194,7 +194,6 @@ class libMPC extends Factory\n{\n$this->max_fork = &$max_fork;\n$this->max_exec = &$max_exec;\n-\n$this->proc_cmd = $this->php_path . ' \"' . $this->app->script_path . '\" -c\"/' . __C... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using base64 encoded command |
323,346 | 07.12.2021 12:59:15 | -28,800 | 00f9461146a2575e9fe0bd4860a7a8601082550f | Remove bypass_shell, add cwd param | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -89,7 +89,6 @@ class libMPC extends Factory\n{\n$cmd = $this->php_path . ' \"' . $this->app->script_path . '\"';\n$cmd .= ' -c\"' . $this->IOUnit->encodeData($c) . '\"';\n-\n$argv = '';\nif (isset($dat... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove bypass_shell, add cwd param |
323,346 | 07.12.2021 13:00:36 | -28,800 | 8ffb294cacda3d48f7ad00724a0f929b58a37efe | Remove bypass_shell, add param cwd, fix log read logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -124,10 +124,11 @@ class libExeC extends Factory\n* Start a process\n*\n* @param string $cmd\n+ * @param string|null $cwd\n*\n* @return void\n*/\n- public function start(string $cmd): void\n+ public ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove bypass_shell, add param cwd, fix log read logic |
323,346 | 07.12.2021 15:30:31 | -28,800 | 881244e8c183d907e1edc9b9f86aec27ac2f1ae0 | Switch stdout & stderr from file to pipe | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "namespace Ext;\nuse Core\\Factory;\n-use Core\\Lib\\App;\nuse Core\\OSUnit;\n/**\n@@ -47,7 +46,6 @@ class libExeC extends Factory\npublic string $key_logs;\npublic string $key_status;\npublic string $ke... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Switch stdout & stderr from file to pipe |
323,346 | 07.12.2021 16:32:10 | -28,800 | 65dedc5fc40b1000be489ef2fda43709091e1ee3 | Using socket instead of pipe for stdout & stderr | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -36,11 +36,11 @@ class libExeC extends Factory\n/** @var \\Redis $redis */\npublic \\Redis $redis;\n- public int $idle_time = 10;\n+ public int $idle_time = 3;\npublic int $max_hist = 1000;\npublic i... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using socket instead of pipe for stdout & stderr |
323,346 | 07.12.2021 20:39:55 | -28,800 | 98983bb96af4a18032fae46beb0dbb21ddea6975 | Using command params instead of string command | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "namespace Ext;\nuse Core\\Factory;\n-use Core\\OSUnit;\n/**\n* Class libExeC\n@@ -37,8 +36,8 @@ class libExeC extends Factory\npublic \\Redis $redis;\npublic int $idle_time = 3;\n+ public int $key_life ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using command params instead of string command |
323,346 | 07.12.2021 20:51:14 | -28,800 | 63a1aef3d1ddc113f883f6342810bcc45f46e96b | Fix proc_get_status error | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -140,9 +140,9 @@ class libExeC extends Factory\nstream_set_blocking($pipes[1], false);\nstream_set_blocking($pipes[2], false);\n- $this->redis->hSet($this->key_status, 'cmd', stream_get_meta_data($pr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix proc_get_status error |
323,346 | 07.12.2021 20:56:41 | -28,800 | b542581449e572669864683948a74919daf5d90c | Remove execSync from libMPC, using libExeC instead | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -133,53 +133,6 @@ class libMPC extends Factory\nreturn $result;\n}\n- /**\n- * Exec raw cmd sync\n- *\n- * @param string $cmd\n- * @param string|null $cwd\n- *\n- * @return string[]\n- * @throws \\Exce... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove execSync from libMPC, using libExeC instead |
323,346 | 07.12.2021 21:44:23 | -28,800 | b9fea5f814efe6bc095b1f5629d47b98bb7e4c94 | Improve proc exit logic | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -144,7 +144,6 @@ class libExeC extends Factory\nwhile (proc_get_status($proc)['running']) {\n$this->saveLogs([$pipes[1], $pipes[2]]);\n-\n$this->redis->expire($this->key_status, $this->key_life);\n$c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve proc exit logic |
323,346 | 08.12.2021 09:22:49 | -28,800 | 1aef96cb9fbbbfa939db746b791726d19d8b5488 | Fix calling php failed with space in path | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -87,7 +87,7 @@ class libMPC extends Factory\n*/\npublic function buildCmd(string $c, array $data): string\n{\n- $cmd = $this->php_path . ' \"' . $this->app->script_path . '\"';\n+ $cmd = '\"' . $this->... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix calling php failed with space in path |
323,346 | 09.12.2021 17:44:16 | -28,800 | bd44382c60de2d2549d4c3a26217d41eff452501 | Add pid record to redis when calling exec | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -140,7 +140,9 @@ class libExeC extends Factory\nstream_set_blocking($pipes[1], false);\nstream_set_blocking($pipes[2], false);\n- $this->redis->hSet($this->key_status, 'cmd', proc_get_status($proc)['... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add pid record to redis when calling exec |
323,346 | 10.12.2021 19:46:31 | -28,800 | ea214441789c14ad0c03ba51c32229357067afda | Fix failed to call php with spaces in path | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -146,7 +146,7 @@ class libMPC extends Factory\n$this->max_fork = &$max_fork;\n$this->max_exec = &$max_exec;\n- $this->proc_cmd = $this->php_path . ' \"' . $this->app->script_path . '\" -c\"/' . __CLASS... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix failed to call php with spaces in path |
323,346 | 13.12.2021 17:42:30 | -28,800 | 04b6b20f29a8052d572f3ebe0a7b581362eb8b4f | Always encode result from exec to from any other encodings | [
{
"change_type": "MODIFY",
"old_path": "Core/OSUnit.php",
"new_path": "Core/OSUnit.php",
"diff": "@@ -58,7 +58,15 @@ class OSUnit extends Factory\n*/\npublic function getPhpPath(): string\n{\n- return $this->os_obj->getPhpPath();\n+ $php_path = $this->os_obj->getPhpPath();\n+ $encoding = mb_detect_e... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Always encode result from exec to UTF-8 from any other encodings |
323,346 | 15.12.2021 13:11:16 | -28,800 | 80ab5a35f6917de1511646b9619a5348702cd911 | Using direct system result instead of parse_ini to find php executable path | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/OS/WINNT.php",
"new_path": "Core/Lib/OS/WINNT.php",
"diff": "@@ -54,6 +54,7 @@ class WINNT\n$output = array_filter($output);\n$output = array_unique($output);\n+\n$hw_hash = hash('md5', json_encode($output));\nunset($queries, $output, $query, $status)... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using direct system result instead of parse_ini to find php executable path |
323,346 | 17.12.2021 08:55:59 | -28,800 | 845aa5ce218ce851d4dcc89f5351238674df7b62 | Add worker list for ExeC | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -31,6 +31,7 @@ class libExeC extends Factory\n{\n//ExeC key prefix\nconst PREFIX = 'EXEC:';\n+ const WORKER = self::PREFIX . 'W';\n/** @var \\Redis $redis */\npublic \\Redis $redis;\n@@ -142,6 +143,7... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add worker list for ExeC |
323,346 | 17.12.2021 09:12:31 | -28,800 | 1becf5fbaf5d97c0ad7f825d0574e2995a8b8393 | Add user callable fn param to ExeC | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -114,10 +114,11 @@ class libExeC extends Factory\n*\n* @param array $cmd_params\n* @param string|null $cwd_path\n+ * @param callable|null $func\n*\n* @return void\n*/\n- public function start(array $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add user callable fn param to ExeC |
323,346 | 17.12.2021 12:54:34 | -28,800 | 1e05ebbba917bb3cb28bd4c19262bedcf2bdafe7 | Response HTTP 500 only when stop_on_error was set to true | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/Error.php",
"new_path": "Core/Lib/Error.php",
"diff": "@@ -215,13 +215,15 @@ class Error extends Factory\n$display_errors && $app->core_debug && $logger->show($err_lv, $message, $context);\n$logger->$err_lv($message, $context);\n+ if ($stop_on_error) ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Response HTTP 500 only when stop_on_error was set to true |
323,346 | 17.12.2021 16:35:22 | -28,800 | 2d6b87d248764a81701db5f7056d02e485aa772f | Add text/none to force output nothing | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -48,7 +48,7 @@ class IOUnit extends Factory\npublic string $cli_data_type = '';\nprotected string $base64_marker = 'data:text/argv;base64,';\n- protected array $response_types = ['application... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add text/none to force output nothing |
323,346 | 17.12.2021 16:36:04 | -28,800 | 992aa52c58fa12d6851beffa2a204615de25e0da | Using none output for MPC and Queue | [
{
"change_type": "MODIFY",
"old_path": "Ext/libMPC.php",
"new_path": "Ext/libMPC.php",
"diff": "@@ -88,7 +88,7 @@ class libMPC extends Factory\npublic function buildCmd(string $c, array $data): string\n{\n$cmd = '\"' . $this->php_path . '\" \"' . $this->app->script_path . '\"';\n- $cmd .= ' -c\"' . ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using none output for MPC and Queue |
323,346 | 18.12.2021 19:41:25 | -28,800 | 861101875a366eac04493ab17cfd5de663cf943a | Send command only if proc is still running | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -32,16 +32,14 @@ class libExeC extends Factory\n//ExeC key prefix\nconst PREFIX = 'EXEC:';\nconst WORKER = self::PREFIX . 'W';\n+ const STOP_CMD = 'ExecStop';\n/** @var \\Redis $redis */\npublic \\Re... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Send command only if proc is still running |
323,346 | 20.12.2021 11:00:31 | -28,800 | e651f1f0bb0bfaf7c27300876e5e3a3d694b49dd | Add lifetime for status key | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -38,6 +38,7 @@ class libExeC extends Factory\npublic \\Redis $redis;\npublic int $idle_time = 3;\n+ public int $lifetime = 30;\npublic int $max_hist = 1000;\npublic string $cmd_id;\n@@ -76,6 +77,21 @... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add lifetime for status key |
323,346 | 20.12.2021 11:02:52 | -28,800 | e1eb09ff77df3ac5fdff160f6636211848939575 | Register cleanup function when shutdown | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -161,6 +161,8 @@ class libExeC extends Factory\n$this->redis->hMSet($this->key_status, ['pid' => $proc_status['pid'], 'cmd' => $proc_status['command']]);\n$this->redis->hSet(self::WORKER, $this->cmd_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Register cleanup function when shutdown |
323,346 | 27.12.2021 14:50:21 | -28,800 | 57631d4be75fcd7504793f2bd8757f0acc3e5753 | Do NOT iconv phpPath to in OSUnit | [
{
"change_type": "MODIFY",
"old_path": "Core/OSUnit.php",
"new_path": "Core/OSUnit.php",
"diff": "@@ -58,15 +58,7 @@ class OSUnit extends Factory\n*/\npublic function getPhpPath(): string\n{\n- $php_path = $this->os_obj->getPhpPath();\n- $encoding = mb_detect_encoding($php_path);\n-\n- if ('UTF-8' !... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Do NOT iconv phpPath to UTF-8 in OSUnit |
323,346 | 27.12.2021 15:24:47 | -28,800 | e7633ac6a352ee8e7d68a5e5aa6aca141bf6ffae | Add exit_fn and some other usefull functions | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -93,13 +93,18 @@ class libExeC extends Factory\n}\n/**\n- * Get process status\n+ * Set the maximum number of success logs\n*\n- * @return array\n+ * @param int $number\n+ *\n+ * @return $this\n*/\n-... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add exit_fn and some other usefull functions |
323,346 | 29.12.2021 11:58:36 | -28,800 | ed65940b4d4c25eec7db2c949c14768645cd3d6f | Store PHP_OS value when OSUnit is calling | [
{
"change_type": "MODIFY",
"old_path": "Core/OSUnit.php",
"new_path": "Core/OSUnit.php",
"diff": "@@ -28,15 +28,19 @@ namespace Core;\n*/\nclass OSUnit extends Factory\n{\n- /** @var \\Core\\Lib\\OS\\Linux|\\Core\\Lib\\OS\\WINNT|\\Core\\Lib\\OS\\Darwin $os_obj */\n- protected object $os_obj;\n+ //OS... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Store PHP_OS value when OSUnit is calling |
323,346 | 29.12.2021 16:53:11 | -28,800 | 7d98bccd4da4dcae48a113f91f974e4cd43b4518 | Using simple commands for linux to getHwHash | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/OS/Linux.php",
"new_path": "Core/Lib/OS/Linux.php",
"diff": "@@ -39,11 +39,9 @@ class Linux\npublic function getHwHash(): string\n{\n$queries = [\n- 'cat /proc/cpuinfo | grep -E \"processor|vendor|family|model|microcode|MHz|cache|physical|address\"',\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Using simple commands for linux to getHwHash |
323,346 | 02.01.2022 21:00:46 | -28,800 | 5137e49bcb98ef5c428d917c7b48ef3e843d63fa | Use callable in some cases | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -207,7 +207,7 @@ class IOUnit extends Factory\n}\n//Call user registered handler for post process\n- if (!empty($this->cgi_handler)) {\n+ if (is_callable($this->cgi_handler)) {\ncall_user_fun... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Use callable in some cases |
323,346 | 04.01.2022 00:28:31 | -28,800 | 7367e9311942ab14e3f33acdac467705cfc63a54 | Fix libCoreApi code errors | [
{
"change_type": "MODIFY",
"old_path": "Ext/libCoreApi.php",
"new_path": "Ext/libCoreApi.php",
"diff": "@@ -352,32 +352,30 @@ class libCoreApi extends Factory\n/**\n* Add custom router to CGI stack\n*\n- * @param object $router_object\n- * @param string $router_method\n+ * @param callable $cgi_route... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix libCoreApi code errors |
323,346 | 04.01.2022 01:31:54 | -28,800 | 8307153e55dee577adef268ae42478ff5cfa1119 | Remove unnecessary cleanup call as it is already registered as shutdown function | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -236,8 +236,6 @@ class libExeC extends Factory\nproc_terminate($proc);\nproc_close($proc);\n- $this->cleanup();\n-\nunset($cmd_params, $cwd_path, $proc_fn, $exit_fn, $proc, $pipes, $proc_status, $com... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove unnecessary cleanup call as it is already registered as shutdown function |
323,346 | 04.01.2022 12:47:00 | -28,800 | f0071c65944ae76ac9e07b990b07bf5607ada42e | Set TTL for ExeC log key | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -39,7 +39,9 @@ class libExeC extends Factory\npublic int $idle_time = 3;\npublic int $lifetime = 30;\n- public int $max_hist = 1000;\n+\n+ public int $log_keep_days = 3;\n+ public int $log_max_hist =... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Set TTL for ExeC log key |
323,346 | 06.01.2022 15:59:23 | -28,800 | a96be8d0e54eb91111e3c61ca0ee109eb14f763b | Force output empty object instead of empty array when requested in application/json | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/IOUnit.php",
"new_path": "Core/Lib/IOUnit.php",
"diff": "@@ -302,6 +302,10 @@ class IOUnit extends Factory\nswitch ($this->content_type) {\ncase 'application/json':\n+ if (is_array($data) && empty($data)) {\n+ $data = (object)$data;\n+ }\n+\necho json... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Force output empty object instead of empty array when requested in application/json |
323,346 | 11.01.2022 12:20:52 | -28,800 | e710a923d06c74eaa9b8df69eb67daf8fa1d0941 | Add log_fn to process every log message from called process | [
{
"change_type": "MODIFY",
"old_path": "Ext/libExeC.php",
"new_path": "Ext/libExeC.php",
"diff": "@@ -120,7 +120,7 @@ class libExeC extends Factory\nreturn false;\n}\n- $msg = 'Command started at ' . date('Y-m-d H:i:s');\n+ $msg = 'Process started at ' . date('Y-m-d H:i:s');\n$this->redis->hSet($thi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add log_fn to process every log message from called process |
323,346 | 21.01.2022 15:35:26 | -28,800 | a60743fd049a008e7ffb9bb5cfc874d4f2f101a6 | WINNT improved | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/OS/WINNT.php",
"new_path": "Core/Lib/OS/WINNT.php",
"diff": "@@ -39,32 +39,23 @@ class WINNT\n*/\npublic function getHwHash(): string\n{\n- $queries = [\n- 'wmic cpu get Caption, CreationClassName, Family, Manufacturer, Name, ProcessorId, ProcessorTyp... | PHP | Apache License 2.0 | jerry-shaw/nervsys | WINNT improved |
323,346 | 21.01.2022 15:40:01 | -28,800 | b694206bb9c58f03bb6960482508498fc758af54 | Report error when PHP path NOT found | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/OS/Darwin.php",
"new_path": "Core/Lib/OS/Darwin.php",
"diff": "@@ -66,8 +66,16 @@ class Darwin\nthrow new \\Exception(PHP_OS . ': Access denied!', E_USER_ERROR);\n}\n+ if (empty($output)) {\n+ throw new \\Exception(PHP_OS . ': PHP path NOT found!', E_... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Report error when PHP path NOT found |
323,346 | 21.01.2022 16:27:28 | -28,800 | 18070fc661962c29380233e7a1560fc78b7d5bea | Add ability to save file from cURL | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -373,13 +373,14 @@ class libHttp extends Factory\n}\n/**\n- * Fetch response body from URL\n+ * Fetch response body from URL (return or save)\n*\n* @param string $url\n+ * @param string $to_file\n*\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add ability to save file from cURL |
323,346 | 21.01.2022 17:39:40 | -28,800 | fb76233b6da0870c2ed3078f4f6f4095f63877e3 | Ignore header, and do not parse response when save to file | [
{
"change_type": "MODIFY",
"old_path": "Ext/libHttp.php",
"new_path": "Ext/libHttp.php",
"diff": "@@ -389,7 +389,7 @@ class libHttp extends Factory\n$runtime_data = $this->buildRuntimeData($url_unit);\n//Build cURL options\n- $curl_options = $this->buildCurlOptions($runtime_data);\n+ $curl_options =... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Ignore header, and do not parse response when save to file |
323,346 | 21.01.2022 18:52:52 | -28,800 | 045d8dd8660bc80811bf6422a6e6ebd958e8d383 | Bug fix in libUpload | [
{
"change_type": "MODIFY",
"old_path": "Ext/libUpload.php",
"new_path": "Ext/libUpload.php",
"diff": "@@ -236,12 +236,11 @@ class libUpload extends Factory\n//Correct filename\nif ('' === $as) {\n- $as = 'saveFile' === $this->runtime['fn'] ? md5_file($this->runtime['tmp_name']) : hash('md5', $this->... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Bug fix in libUpload |
323,346 | 21.01.2022 19:10:05 | -28,800 | 888f0732fa459dbd66d78c0c845caf619bf17fe5 | Add * to allow uploading all extensions | [
{
"change_type": "MODIFY",
"old_path": "Ext/libUpload.php",
"new_path": "Ext/libUpload.php",
"diff": "@@ -225,7 +225,10 @@ class libUpload extends Factory\n$ext = $libFile->getExt($this->runtime['name']);\n}\n- if ((empty($this->ext) && !isset(self::MIME[(string)$ext])) || (!empty($this->ext) && !in... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add * to allow uploading all extensions |
323,346 | 21.01.2022 21:29:33 | -28,800 | 0f58e0954dae2f42337e12d76a40bb1a6b5de4ea | Use Get-WMIObject instead of Get-CimInstance for Win7 compatibility | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/OS/WINNT.php",
"new_path": "Core/Lib/OS/WINNT.php",
"diff": "@@ -40,11 +40,11 @@ class WINNT\npublic function getHwHash(): string\n{\n$ps_cmd = 'powershell -Command \"';\n- $ps_cmd .= 'Get-CimInstance -class Win32_Processor | select Caption, CreationC... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Use Get-WMIObject instead of Get-CimInstance for Win7 compatibility |
323,346 | 21.01.2022 22:18:16 | -28,800 | 24c42c32f581a3f415bcf1309a978dd24296ff92 | Fix PHP executable path detection under WIN7 | [
{
"change_type": "MODIFY",
"old_path": "Core/Lib/OS/WINNT.php",
"new_path": "Core/Lib/OS/WINNT.php",
"diff": "@@ -75,19 +75,25 @@ class WINNT\nthrow new \\Exception(PHP_OS . ': Access denied!', E_USER_ERROR);\n}\n- $process_info = current(array_filter($output));\n+ $php_path = '';\n+ $output = array... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix PHP executable path detection under WIN7 |
323,346 | 10.02.2022 12:56:31 | -28,800 | d22cf18f7cb8113f46a8ee89087d465152e65601 | Remove Proload codes | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "@@ -24,9 +24,9 @@ namespace Nervsys;\nclass NS\n{\n/**\n- * NS constructor\n+ * @return static\n*/\n- public function __construct()\n+ public static function new(): self\n{\nset_time_limit(0);\nignore_user_abort(true);\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove Proload codes |
323,346 | 10.02.2022 23:50:32 | -28,800 | ff508ebe19a3a1948e17ef2419bcf96b7dc616d9 | Make Reflect all static | [
{
"change_type": "MODIFY",
"old_path": "Lib/Reflect.php",
"new_path": "Lib/Reflect.php",
"diff": "namespace Nervsys\\Lib;\n-class Reflect extends Factory\n+class Reflect\n{\n- private array $pool = [];\n+ private static array $reflects = [];\n/**\n* @param string $class\n@@ -31,13 +31,13 @@ class Re... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Make Reflect all static |
323,346 | 11.02.2022 00:54:10 | -28,800 | 46b4a6f496ae705ac97916f92fdaa7091bf6ef7f | Use if... elseif... chain instead of switch in Factory | [
{
"change_type": "MODIFY",
"old_path": "Lib/Factory.php",
"new_path": "Lib/Factory.php",
"diff": "@@ -97,40 +97,22 @@ class Factory extends Reflect\ncontinue;\n}\n- switch ($param_info['type']) {\n- case 'int':\n- is_numeric($data[$param_info['name']])\n- ? $result['args'][] = (int)$data[$param_info... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Use if... elseif... chain instead of switch in Factory |
323,346 | 12.02.2022 10:41:31 | -28,800 | dedd2440fa8852f31a1386ac014614154dd80cb6 | Move Factory and Reflect from Lib to LC | [
{
"change_type": "RENAME",
"old_path": "Lib/Factory.php",
"new_path": "LC/Factory.php",
"diff": "* limitations under the License.\n*/\n-namespace Nervsys\\Lib;\n+namespace Nervsys\\LC;\nclass Factory\n{\n"
},
{
"change_type": "RENAME",
"old_path": "Lib/Reflect.php",
"new_path": "LC/R... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move Factory and Reflect from Lib to LC |
323,346 | 12.02.2022 15:50:31 | -28,800 | 90a6b570c0db4b75528464131cfdee03598d4a16 | Start main logic | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "namespace Nervsys;\n+use Nervsys\\LC\\App;\nuse Nervsys\\Lib\\CORS;\nuse Nervsys\\Lib\\Error;\n@@ -30,11 +31,16 @@ if (version_compare(PHP_VERSION, '8.1.0', '<')) {\nclass NS\n{\n+ public Error $error;\n+ public CORS $CO... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Start main logic |
323,346 | 12.02.2022 16:05:51 | -28,800 | d418097aa77f06c4bfffc18633cbfc0c9a7cb7d6 | Move some functions from App to NS | [
{
"change_type": "RENAME",
"old_path": "LC/App.php",
"new_path": "Lib/App.php",
"diff": "* limitations under the License.\n*/\n-namespace Nervsys\\LC;\n+namespace Nervsys\\Lib;\n+\n+use Nervsys\\LC\\Factory;\nclass App extends Factory\n{\npublic string $api_path = 'api';\npublic string $client_ip = ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move some functions from App to NS |
323,346 | 12.02.2022 16:11:21 | -28,800 | a7e5bd735feb5a33ab535acb6887bbe0d8465611 | Move setTimezone back to App | [
{
"change_type": "MODIFY",
"old_path": "Lib/App.php",
"new_path": "Lib/App.php",
"diff": "@@ -27,6 +27,8 @@ class App extends Factory\n{\npublic string $api_path = 'api';\npublic string $client_ip = '0.0.0.0';\n+ public string $timezone = 'Asia/Shanghai';\n+\npublic bool $core_debug = false;\n/**\n@... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move setTimezone back to App |
323,346 | 12.02.2022 16:26:24 | -28,800 | 453d6af885d65649a8f162343fcd401d261a959c | Move all controllable functions from NS to System | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "namespace Nervsys;\n-use Nervsys\\Lib\\App;\n-use Nervsys\\Lib\\CORS;\n-use Nervsys\\Lib\\Error;\n+use Nervsys\\LC\\System;\nif (version_compare(PHP_VERSION, '8.1.0', '<')) {\nexit('Nervsys 8.1+ needs PHP 8.1.0 or higher... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move all controllable functions from NS to System |
323,346 | 12.02.2022 16:29:37 | -28,800 | 9fc09c8e9067ab6c261b1f861b9afbacc4daf824 | Improve ROOT_PATH autoload logic | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "@@ -93,22 +93,8 @@ class NS\ndefine('HOSTNAME', is_string($hostname) ? $hostname : 'localhost');\n- spl_autoload_register(\n- static function (string $class): void\n- {\n- $file_path = ROOT_PATH . DIRECTORY_SEPARATOR . s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve ROOT_PATH autoload logic |
323,346 | 12.02.2022 17:49:46 | -28,800 | b16f75d8ca1798e426e4383bf26c308f056c1fbd | Properly move functions to other classes | [
{
"change_type": "MODIFY",
"old_path": "LC/System.php",
"new_path": "LC/System.php",
"diff": "@@ -91,7 +91,7 @@ class System extends Factory\n*/\npublic function AppSetApiPath(string $pathname): self\n{\n- $this->app->setApiPath($pathname);\n+ $this->app->api_path = &$pathname;\nunset($pathname);\nr... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Properly move functions to other classes |
323,346 | 12.02.2022 18:55:07 | -28,800 | a5cdee01925fcf9b5670cf520ab3558cb8f81bdb | IOParser controllable functions done | [
{
"change_type": "MODIFY",
"old_path": "LC/System.php",
"new_path": "LC/System.php",
"diff": "@@ -23,13 +23,13 @@ namespace Nervsys\\LC;\nuse Nervsys\\Lib\\App;\nuse Nervsys\\Lib\\CORS;\n-use Nervsys\\Lib\\Error;\n+use Nervsys\\Lib\\IOParser;\nclass System extends Factory\n{\npublic App $app;\npubli... | PHP | Apache License 2.0 | jerry-shaw/nervsys | IOParser controllable functions done |
323,346 | 12.02.2022 19:54:36 | -28,800 | 2f8f8fa42b566632b563218264cbfd36ce340a3a | Always trim src_cmd | [
{
"change_type": "MODIFY",
"old_path": "Lib/IOParser.php",
"new_path": "Lib/IOParser.php",
"diff": "@@ -52,7 +52,7 @@ class IOParser extends Factory\n{\n$this->readAccept();\n- $this->src_cmd = $this->readUrl();\n+ $this->src_cmd = trim($this->readUrl());\n$this->src_input = $this->readHttp();\n$thi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Always trim src_cmd |
323,346 | 12.02.2022 20:02:17 | -28,800 | 4b96bfd97e0ba7aac35d35b070f1eda75bfa62fc | Rename IOParser to IOData | [
{
"change_type": "MODIFY",
"old_path": "LC/System.php",
"new_path": "LC/System.php",
"diff": "@@ -23,13 +23,15 @@ namespace Nervsys\\LC;\nuse Nervsys\\Lib\\App;\nuse Nervsys\\Lib\\CORS;\n-use Nervsys\\Lib\\IOParser;\n+use Nervsys\\Lib\\IOData;\n+use Nervsys\\Lib\\Router;\nclass System extends Factor... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Rename IOParser to IOData |
323,346 | 12.02.2022 21:59:45 | -28,800 | e1b01a11f9a16862aabd5b48a207d1d77cc28c5d | Router related controllable functions added | [
{
"change_type": "MODIFY",
"old_path": "LC/System.php",
"new_path": "LC/System.php",
"diff": "@@ -222,8 +222,6 @@ class System extends Factory\n}\n/**\n- * Add message data\n- *\n* @param string $msg_key\n*\n* @return $this\n@@ -235,4 +233,44 @@ class System extends Factory\nunset($msg_key);\nreturn... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Router related controllable functions added |
323,346 | 12.02.2022 22:00:12 | -28,800 | a2bfa01283969af2b7daeb69230906fe93d52a70 | Fix up composer path and requires | [
{
"change_type": "MODIFY",
"old_path": "composer.json",
"new_path": "composer.json",
"diff": "\"framework\"\n],\n\"require\": {\n- \"php\": \"^7.4\",\n+ \"php\": \"^8.1\",\n\"ext-curl\": \"*\",\n\"ext-fileinfo\": \"*\",\n\"ext-gd\": \"*\",\n},\n\"autoload\": {\n\"psr-4\": {\n- \"Core\\\\\": \"./Core... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix up composer path and requires |
323,346 | 12.02.2022 22:09:45 | -28,800 | a2b8b456f2414325164d4589457d19e87abb95a4 | Keep going NS main logic, leave only Hook and Execute library | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "@@ -68,17 +68,38 @@ class NS\n$this->system->addAutoloadPath($this->system->app->root_path, true);\n}\n-\n/**\n* @return void\n*/\npublic function go(): void\n{\ndate_default_timezone_set($this->system->app->timezone);\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Keep going NS main logic, leave only Hook and Execute library |
323,346 | 12.02.2022 22:14:54 | -28,800 | f6a6d2681edc98eb65f7969ce59e2aa693422b49 | Open getFullCgiCmd for others to use | [
{
"change_type": "MODIFY",
"old_path": "Lib/Router.php",
"new_path": "Lib/Router.php",
"diff": "@@ -150,6 +150,29 @@ class Router extends Factory\nreturn $exe_list;\n}\n+ /**\n+ * @param string $cmd_val\n+ * @param bool $cli_exec\n+ *\n+ * @return string\n+ */\n+ public function getFullCgiCmd(string... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Open getFullCgiCmd for others to use |
323,346 | 16.02.2022 09:10:48 | -28,800 | c0f36c8bb10c4a2e40ada1c7367c6d270b7487df | Improve error display logic | [
{
"change_type": "MODIFY",
"old_path": "LC/Error.php",
"new_path": "LC/Error.php",
"diff": "@@ -148,7 +148,7 @@ class Error extends Factory\n'Trace' => $this->getTraceLog($throwable->getTrace())\n];\n- $display_errors && $app->core_debug && $logger->show($error_level, $message, $context);\n+ $app->c... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Improve error display logic |
323,346 | 19.02.2022 14:05:37 | -28,800 | a6bbf0c4084b7c5796e5fa55efcd966637c21fff | Remove display logs prarm in CGI router | [
{
"change_type": "MODIFY",
"old_path": "Lib/Router.php",
"new_path": "Lib/Router.php",
"diff": "@@ -121,7 +121,7 @@ class Router extends Factory\n$fn_list[] = [$class, $method, $cmd_val];\n} catch (\\Throwable $throwable) {\n- Error::new()->exceptionHandler($throwable, false, $this->app->core_debug ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove display logs prarm in CGI router |
323,346 | 19.02.2022 14:12:09 | -28,800 | f90b97bfb7f2cbacc918695abb74cac72b0a7509 | Remove unnecessary is_cli param | [
{
"change_type": "MODIFY",
"old_path": "Lib/CORS.php",
"new_path": "Lib/CORS.php",
"diff": "@@ -26,7 +26,6 @@ use Nervsys\\LC\\Factory;\nclass CORS extends Factory\n{\nprivate array $allowed_list = [];\n-\nprivate string $allow_headers = 'X-Requested-With, Content-Type, Content-Length';\n/**\n@@ -50... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove unnecessary is_cli param |
323,346 | 19.02.2022 20:59:59 | -28,800 | 727487a817dc3d753ae6b0f9fa7bc645d1b42902 | Cgi process now working | [
{
"change_type": "MODIFY",
"old_path": "LC/System.php",
"new_path": "LC/System.php",
"diff": "@@ -30,6 +30,7 @@ class System extends Factory\n{\npublic App $app;\npublic CORS $CORS;\n+ public Caller $caller;\npublic IOData $IOData;\npublic Router $router;\n@@ -44,6 +45,7 @@ class System extends Fact... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Cgi process now working |
323,346 | 20.02.2022 00:13:14 | -28,800 | 626ee17e24f62f44c6be24f5bf1a0b852fa4ba61 | Finish argument error notice log code | [
{
"change_type": "MODIFY",
"old_path": "LC/Factory.php",
"new_path": "LC/Factory.php",
"diff": "@@ -93,7 +93,7 @@ class Factory\nif (!isset($data[$param_info['name']])) {\n$param_info['has_default']\n? $result['args'][] = $param_info['default_value']\n- : $result['diff'][] = '\"' . $param_info['name... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Finish argument error notice log code |
323,346 | 20.02.2022 13:22:17 | -28,800 | e43c09c492c9330418b18a8a4ca6afe743b34ced | Keep argv as array, add "cwd" param to read key | [
{
"change_type": "MODIFY",
"old_path": "Lib/IOData.php",
"new_path": "Lib/IOData.php",
"diff": "@@ -33,7 +33,8 @@ class IOData extends Factory\npublic array $cookie_keys = [];\npublic string $src_cmd = '';\n- public string $src_argv = '';\n+ public string $cwd_path = '';\n+ public array $src_argv = ... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Keep argv as array, add "cwd" param to read key |
323,346 | 20.02.2022 14:26:15 | -28,800 | 7c78b1932c274e839270c69aa4a4607707506e0c | Cli caller done. | [
{
"change_type": "MODIFY",
"old_path": "LC/Caller.php",
"new_path": "LC/Caller.php",
"diff": "@@ -34,29 +34,29 @@ class Caller extends Factory\n}\n/**\n- * @param array $cmd_list\n+ * @param array $cmd_data\n* @param array $input_data\n*\n* @return array\n* @throws \\ReflectionException\n*/\n- publi... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Cli caller done. |
323,346 | 20.02.2022 14:32:25 | -28,800 | 4ddd0e2f09951389ec5039b19bf891dfaf6462bf | Finish main logic | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "@@ -88,8 +88,14 @@ class NS\n$cli_cmd = $this->system->router->parseCli($this->system->IOData->src_cmd);\nif (!empty($cli_cmd)) {\n-\n-\n+ while (is_array($cmd_data = array_shift($cli_cmd))) {\n+ $this->system->IOData->s... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Finish main logic |
323,346 | 20.02.2022 14:40:55 | -28,800 | 6c4028e67d01bd263afd608cca743ffe315ae58c | Remove unnecessary message formatter | [
{
"change_type": "MODIFY",
"old_path": "LC/Caller.php",
"new_path": "LC/Caller.php",
"diff": "@@ -122,8 +122,6 @@ class Caller extends Factory\nbreak;\n}\n- $msg = trim($msg) . PHP_EOL;\n-\nif ($realtime_debug) {\necho $msg;\n}\n"
}
] | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove unnecessary message formatter |
323,346 | 20.02.2022 14:45:41 | -28,800 | d014121b2dbf93d67b09c9d176bcb62e206418ce | Set default output to text/plain under CLI | [
{
"change_type": "MODIFY",
"old_path": "Lib/IOData.php",
"new_path": "Lib/IOData.php",
"diff": "@@ -41,7 +41,6 @@ class IOData extends Factory\npublic array $src_output = [];\npublic string $content_type = '';\n- public string $cli_data_type = '';\nprotected string $base64_marker = 'data:text/argv;b... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Set default output to text/plain under CLI |
323,346 | 20.02.2022 23:50:03 | -28,800 | 1234f88069e983634bc9c34d69228de81fce48be | Use cmd_raw value as returned key | [
{
"change_type": "MODIFY",
"old_path": "Lib/Router.php",
"new_path": "Lib/Router.php",
"diff": "@@ -98,9 +98,9 @@ class Router extends Factory\n$fn_list = [];\n$cmd_list = $this->getCmdList($c);\n- foreach ($cmd_list as $cmd_val) {\n+ foreach ($cmd_list as $cmd_raw) {\ntry {\n- $cmd_val = strtr($cmd... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Use cmd_raw value as returned key |
323,346 | 21.02.2022 22:40:02 | -28,800 | c2104772f09a5cf98e5948e298c9eab4fbfc3ed8 | Add getCallable and format storage keys | [
{
"change_type": "MODIFY",
"old_path": "LC/Reflect.php",
"new_path": "LC/Reflect.php",
"diff": "@@ -33,6 +33,8 @@ class Reflect\n*/\npublic static function getClass(string $class): \\ReflectionClass\n{\n+ $class = trim($class, '\\\\');\n+\nif (!isset(self::$reflects[$class])) {\nself::$reflects[$cla... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add getCallable and format storage keys |
323,346 | 21.02.2022 22:40:55 | -28,800 | fb7cc7a50eddfac6982405e336e605713c02cfdc | Move getParameters outside class Reflect in Factory | [
{
"change_type": "MODIFY",
"old_path": "LC/Factory.php",
"new_path": "LC/Factory.php",
"diff": "@@ -80,7 +80,7 @@ class Factory\npublic static function getArgs(string $class, string $method, array $data): array\n{\n$result = ['args' => [], 'diff' => []];\n- $params = Reflect::getParameters($class, $... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move getParameters outside class Reflect in Factory |
323,346 | 21.02.2022 23:09:17 | -28,800 | bad4b770b1d5281c14cca95460a5faf1b1cb8f85 | Remove unnecessary codes, only keep param formatter | [
{
"change_type": "MODIFY",
"old_path": "LC/Factory.php",
"new_path": "LC/Factory.php",
"diff": "@@ -56,7 +56,7 @@ class Factory\n$pass_params = current($class_params);\nif (is_array($pass_params) && !array_is_list($pass_params)) {\n- $class_params = self::getArgs($class_name, '__construct', $pass_pa... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Remove unnecessary codes, only keep param formatter |
323,346 | 21.02.2022 23:09:53 | -28,800 | 4715cd141122fcaaa3349cf5e26ca55364bd272f | Keep up with new Factory | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "namespace Nervsys;\n+use Nervsys\\LC\\Factory;\n+use Nervsys\\LC\\Reflect;\nuse Nervsys\\LC\\System;\nif (version_compare(PHP_VERSION, '8.1.0', '<')) {\n@@ -103,7 +105,10 @@ class NS\nif (!empty($cgi_cmd)) {\nwhile (is_a... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Keep up with new Factory |
323,346 | 21.02.2022 23:43:10 | -28,800 | 851ae894d93de78bc345096d773c211c7fb367ab | Move Hook controller functions to System | [
{
"change_type": "MODIFY",
"old_path": "LC/System.php",
"new_path": "LC/System.php",
"diff": "@@ -23,6 +23,7 @@ namespace Nervsys\\LC;\nuse Nervsys\\Lib\\App;\nuse Nervsys\\Lib\\CORS;\n+use Nervsys\\Lib\\Hook;\nuse Nervsys\\Lib\\IOData;\nuse Nervsys\\Lib\\Router;\n@@ -30,6 +31,7 @@ class System exte... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Move Hook controller functions to System |
323,346 | 21.02.2022 23:43:30 | -28,800 | 47ebd51a34ddfc29925199e1bae87ee72ad568dc | Add Hook logic | [
{
"change_type": "MODIFY",
"old_path": "NS.php",
"new_path": "NS.php",
"diff": "@@ -105,6 +105,12 @@ class NS\nif (!empty($cgi_cmd)) {\nwhile (is_array($cmd_data = array_shift($cgi_cmd))) {\n+ $full_cmd = strtr($cmd_data[0] . '/' . $cmd_data[1], '\\\\', '/');\n+\n+ if (!$this->system->hook->runBefor... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add Hook logic |
323,346 | 22.02.2022 00:05:55 | -28,800 | 52de00cef759f8cfe4d3e18013c42d17643ab410 | Fix TypeError when calling ReflectionMethod using array | [
{
"change_type": "MODIFY",
"old_path": "LC/Reflect.php",
"new_path": "LC/Reflect.php",
"diff": "@@ -73,7 +73,7 @@ class Reflect\n$key = trim((is_object($callable[0]) ? $callable[0]::class : $callable[0]) . '::' . $callable[1], '\\\\');\nif (!isset(self::$reflects[$key])) {\n- self::$reflects[$key] =... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix TypeError when calling ReflectionMethod using array |
323,346 | 22.02.2022 00:07:49 | -28,800 | 6716363291e8a2b75361f0f209b3597fc9ec25a8 | Hook code reformat | [
{
"change_type": "MODIFY",
"old_path": "Lib/Hook.php",
"new_path": "Lib/Hook.php",
"diff": "@@ -118,7 +118,10 @@ class Hook extends Factory\n*/\nprivate function passFn(callable $fn): bool\n{\n- $params = self::buildArgs(Reflect::getCallable($fn)->getParameters(), $this->IOData->src_input);\n+ $para... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Hook code reformat |
323,346 | 22.02.2022 10:58:29 | -28,800 | 92d9cbfc7463b956e4010a604d8606483c582d1b | Key rename from msg to message | [
{
"change_type": "MODIFY",
"old_path": "LC/System.php",
"new_path": "LC/System.php",
"diff": "@@ -248,7 +248,7 @@ class System extends Factory\npublic function IODataSetCodeMsg(int $code, string $msg): self\n{\n$this->IOData->src_msg['code'] = &$code;\n- $this->IOData->src_msg['msg'] = &$msg;\n+ $th... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Key rename from msg to message |
323,346 | 22.02.2022 12:13:19 | -28,800 | 90aa1b5cdccc226d4a64694d1bd06f76ef0c00f4 | Rename libFile to libFileIO | [
{
"change_type": "RENAME",
"old_path": "Ext/libFile.php",
"new_path": "Ext/libFileIO.php",
"diff": "* limitations under the License.\n*/\n-namespace Ext;\n+namespace Nervsys\\Ext;\nuse Nervsys\\LC\\Factory;\nuse Nervsys\\Lib\\App;\n-class libFile extends Factory\n+class libFileIO extends Factory\n{\... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Rename libFile to libFileIO |
323,346 | 23.02.2022 16:42:44 | -28,800 | 67cec0e61967e1bf9accbc7ae54254f57b9bf02f | Add runAsync to Caller | [
{
"change_type": "MODIFY",
"old_path": "LC/Caller.php",
"new_path": "LC/Caller.php",
"diff": "@@ -145,4 +145,16 @@ class Caller extends Factory\nunset($cmd_pair, $cmd_argv, $cwd_path, $realtime_debug, $proc, $pipes, $write, $except, $read, $pipe, $msg);\nreturn $result;\n}\n+\n+ /**\n+ * @param stri... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add runAsync to Caller |
323,346 | 28.02.2022 11:55:38 | -28,800 | 9dad3d39a1c388e54772bf195da7298970d8989a | Fix __construct params error when building | [
{
"change_type": "MODIFY",
"old_path": "LC/Factory.php",
"new_path": "LC/Factory.php",
"diff": "@@ -40,6 +40,7 @@ class Factory\n*\n* @return object\n* @throws \\ReflectionException\n+ * @throws \\Exception\n*/\npublic static function getObj(string $class_name, array $class_params = []): object\n{\n... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Fix __construct params error when building |
323,346 | 28.02.2022 12:19:50 | -28,800 | 4d19c698b414e26d5a631afc77b25ad564d1150f | Add PHP_EOL to log lines | [
{
"change_type": "MODIFY",
"old_path": "Ext/libLog.php",
"new_path": "Ext/libLog.php",
"diff": "@@ -55,8 +55,8 @@ class libLog extends Factory\nforeach ($params as $param) {\n$logs .= (is_array($param) || is_object($param))\n- ? json_encode($param, JSON_PRETTY)\n- : (string)$param;\n+ ? json_encode(... | PHP | Apache License 2.0 | jerry-shaw/nervsys | Add PHP_EOL to log lines |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.