From 9baffe22d69640532aa42f4c4e28df7379b39ddc Mon Sep 17 00:00:00 2001 From: Gaurav Date: Fri, 12 Jul 2024 16:25:52 +0530 Subject: [PATCH 1/3] Upgraded PHP version --- experiment/simulation/exp7.php | 12 ++++++------ experiment/simulation/exp7_1.php | 12 ++++++------ experiment/simulation/exp7_2.php | 12 ++++++------ experiment/simulation/exp7_3.php | 12 ++++++------ experiment/simulation/exp8/exp7.php | 12 ++++++------ experiment/simulation/exp8/exp7_1.php | 12 ++++++------ experiment/simulation/exp8/exp7_2.php | 12 ++++++------ experiment/simulation/exp8/exp7_3.php | 12 ++++++------ 8 files changed, 48 insertions(+), 48 deletions(-) diff --git a/experiment/simulation/exp7.php b/experiment/simulation/exp7.php index 7cce7e8..a17941c 100755 --- a/experiment/simulation/exp7.php +++ b/experiment/simulation/exp7.php @@ -30,12 +30,12 @@ function change(lang){ else if($language=='eng') $fp=fopen("analyse-size/accuracies_english","r"); -$train_token=array(); -$train_type=array(); -$algo=array(); -$test_token=array(); -$test_type=array(); -$feature=array(); +$train_token=[]; +$train_type=[]; +$algo=[]; +$test_token=[]; +$test_type=[]; +$feature=[]; $accuracy; $count=0; diff --git a/experiment/simulation/exp7_1.php b/experiment/simulation/exp7_1.php index 578e6c2..0293605 100644 --- a/experiment/simulation/exp7_1.php +++ b/experiment/simulation/exp7_1.php @@ -31,12 +31,12 @@ function change(temp){ else if($language=='eng') $fp=fopen("analyse-size/accuracies_english","r"); -$train_token=array(); -$train_type=array(); -$algo=array(); -$test_token=array(); -$test_type=array(); -$feature=array(); +$train_token=[]; +$train_type=[]; +$algo=[]; +$test_token=[]; +$test_type=[]; +$feature=[]; $accuracy; $count=0; diff --git a/experiment/simulation/exp7_2.php b/experiment/simulation/exp7_2.php index 226df1d..2dbffd8 100644 --- a/experiment/simulation/exp7_2.php +++ b/experiment/simulation/exp7_2.php @@ -33,12 +33,12 @@ function change(temp){ else if($language=='eng') $fp=fopen("analyse-size/accuracies_english","r"); -$train_token=array(); -$train_type=array(); -$algo=array(); -$test_token=array(); -$test_type=array(); -$feature=array(); +$train_token=[]; +$train_type=[]; +$algo=[]; +$test_token=[]; +$test_type=[]; +$feature=[]; $accuracy; $count=0; diff --git a/experiment/simulation/exp7_3.php b/experiment/simulation/exp7_3.php index ef42faa..356a58f 100644 --- a/experiment/simulation/exp7_3.php +++ b/experiment/simulation/exp7_3.php @@ -25,12 +25,12 @@ function getAccuracy(accuracy){ else if($language=='eng') $fp=fopen("analyse-size/accuracies_english","r"); -$train_token=array(); -$train_type=array(); -$algo=array(); -$test_token=array(); -$test_type=array(); -$feature=array(); +$train_token=[]; +$train_type=[]; +$algo=[]; +$test_token=[]; +$test_type=[]; +$feature=[]; $accuracy; $count=0; diff --git a/experiment/simulation/exp8/exp7.php b/experiment/simulation/exp8/exp7.php index 7cce7e8..a17941c 100755 --- a/experiment/simulation/exp8/exp7.php +++ b/experiment/simulation/exp8/exp7.php @@ -30,12 +30,12 @@ function change(lang){ else if($language=='eng') $fp=fopen("analyse-size/accuracies_english","r"); -$train_token=array(); -$train_type=array(); -$algo=array(); -$test_token=array(); -$test_type=array(); -$feature=array(); +$train_token=[]; +$train_type=[]; +$algo=[]; +$test_token=[]; +$test_type=[]; +$feature=[]; $accuracy; $count=0; diff --git a/experiment/simulation/exp8/exp7_1.php b/experiment/simulation/exp8/exp7_1.php index 578e6c2..0293605 100644 --- a/experiment/simulation/exp8/exp7_1.php +++ b/experiment/simulation/exp8/exp7_1.php @@ -31,12 +31,12 @@ function change(temp){ else if($language=='eng') $fp=fopen("analyse-size/accuracies_english","r"); -$train_token=array(); -$train_type=array(); -$algo=array(); -$test_token=array(); -$test_type=array(); -$feature=array(); +$train_token=[]; +$train_type=[]; +$algo=[]; +$test_token=[]; +$test_type=[]; +$feature=[]; $accuracy; $count=0; diff --git a/experiment/simulation/exp8/exp7_2.php b/experiment/simulation/exp8/exp7_2.php index 226df1d..2dbffd8 100644 --- a/experiment/simulation/exp8/exp7_2.php +++ b/experiment/simulation/exp8/exp7_2.php @@ -33,12 +33,12 @@ function change(temp){ else if($language=='eng') $fp=fopen("analyse-size/accuracies_english","r"); -$train_token=array(); -$train_type=array(); -$algo=array(); -$test_token=array(); -$test_type=array(); -$feature=array(); +$train_token=[]; +$train_type=[]; +$algo=[]; +$test_token=[]; +$test_type=[]; +$feature=[]; $accuracy; $count=0; diff --git a/experiment/simulation/exp8/exp7_3.php b/experiment/simulation/exp8/exp7_3.php index ef42faa..356a58f 100644 --- a/experiment/simulation/exp8/exp7_3.php +++ b/experiment/simulation/exp8/exp7_3.php @@ -25,12 +25,12 @@ function getAccuracy(accuracy){ else if($language=='eng') $fp=fopen("analyse-size/accuracies_english","r"); -$train_token=array(); -$train_type=array(); -$algo=array(); -$test_token=array(); -$test_type=array(); -$feature=array(); +$train_token=[]; +$train_type=[]; +$algo=[]; +$test_token=[]; +$test_type=[]; +$feature=[]; $accuracy; $count=0; From 41da0c8ecc059d3369e7c9c1448e6e1ef79964cb Mon Sep 17 00:00:00 2001 From: Gaurav Behera <127508054+gaurav-behera@users.noreply.github.com> Date: Wed, 24 Jul 2024 00:22:45 +0530 Subject: [PATCH 2/3] Update deployment-script.yml --- .github/workflows/deployment-script.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment-script.yml b/.github/workflows/deployment-script.yml index f224ba5..e24b520 100644 --- a/.github/workflows/deployment-script.yml +++ b/.github/workflows/deployment-script.yml @@ -18,10 +18,10 @@ jobs: node-version: '12' check-latest: true - run: | - git clone https://github.com/virtual-labs/ph3-lab-mgmt + git clone --depth=1 https://github.com/virtual-labs/ph3-lab-mgmt cd ph3-lab-mgmt npm install - node exp.js + npm run build-exp cd ../ git config --local user.email "admin@vlabs.ac.in" git config --local user.name "vleadadmin" From f29e32012df5461a42cac589ded78115adea0b86 Mon Sep 17 00:00:00 2001 From: Gaurav Behera <127508054+gaurav-behera@users.noreply.github.com> Date: Wed, 24 Jul 2024 15:39:09 +0530 Subject: [PATCH 3/3] Update deployment-script.yml - bump node version --- .github/workflows/deployment-script.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deployment-script.yml b/.github/workflows/deployment-script.yml index e24b520..8f8bd01 100644 --- a/.github/workflows/deployment-script.yml +++ b/.github/workflows/deployment-script.yml @@ -15,7 +15,7 @@ jobs: - name: Setup node uses: actions/setup-node@v2 with: - node-version: '12' + node-version: '22' check-latest: true - run: | git clone --depth=1 https://github.com/virtual-labs/ph3-lab-mgmt