Student: Nandun Bandara
Project: Stackle - Frontend Functionality and User Interface Improvements
Organization: Sustainable Computing Research Group (SCoRe)
Mentors: Pasan Gamaetige, Tharindu Ranathunga
| import numpy as np | |
| import pandas as pd | |
| from sklearn.metrics import confusion_matrix | |
| from sklearn.metrics import accuracy_score, precision_score | |
| from sklearn.neighbors import KNeighborsClassifier | |
| from sklearn.svm import SVC | |
| # Calculate sensitivity using the confusion matrix |
| package lk.sliit.mad.labsheet4; | |
| import androidx.appcompat.app.AppCompatActivity; | |
| import androidx.core.app.NotificationCompat; | |
| import androidx.core.app.NotificationManagerCompat; | |
| import android.app.NotificationChannel; | |
| import android.app.NotificationManager; | |
| import android.app.PendingIntent; | |
| import android.content.Intent; |
| const | |
| express = require('express'), | |
| bodyParser = require('body-parser'), | |
| cookieParser = require('cookie-parser'), | |
| randomBytes = require('random-bytes'), | |
| app = express(), | |
| // application constants | |
| PORT = 9090, |
| const | |
| express = require('express'), | |
| cookieParser = require('cookie-parser'), | |
| randomBytes = require('random-bytes'), | |
| bodyParser = require('body-parser'), | |
| constants = require('./app/constants'), | |
| app = express(), |
| language: node_js | |
| node_js: | |
| - "7" | |
| before_script: | |
| - npm install | |
| script: npm test |
| //date | |
| //set the current date formated to dd/mm/yyyy | |
| var currentDate = new Date(); | |
| var currentDate_dd = currentDate.getDate()<10?'0'+currentDate.getDate():currentDate.getDate(); | |
| var currentDate_mm = currentDate.getMonth()<10?'0'+currentDate.getMonth():currentDate.getMonth(); | |
| var currentDate_yyyy = currentDate.getFullYear(); | |
| var currentFormattedDate = currentDate_dd+'/'+currentDate_mm+'/'+currentDate_yyyy; | |
| //set the current time | |
| var currentTime = new Date(); |
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var ftp = require('vinyl-ftp'); | |
| var user = process.env.FTP_USER; | |
| var pwd = process.env.FTP_PWD; | |
| var localFiles = [ |
| const express = require("express") | |
| bodyParser = require("body-parser"); | |
| app = express(); | |
| app.use(bodyParser.urlencoded({ extended:false })); | |
| app.use(bodyParser.json()); | |
| app.get('/', (req,res)=>{ | |
| res.json({message: "sample service"}); | |
| }) |