Skip to content

Instantly share code, notes, and snippets.

View lsiddiqsunny's full-sized avatar
🎯
Focusing

Latif Siddiq Sunny lsiddiqsunny

🎯
Focusing
View GitHub Profile
@lsiddiqsunny
lsiddiqsunny / Interrogation.py
Created June 16, 2023 15:04
Detect partial sentence and interrogation using space library.
import spacy
nlp = spacy.load("en_core_web_sm")
python_comment = """
This function calculates the sum of two numbers.
What are the parameters of this function?
How does this function handle errors?
"""
#institute
CREATE TABLE `onlineexam`.`Institution` ( `Institution_Id` INT NOT NULL , `Institution_Name` VARCHAR(1000) NOT NULL , `Phone_Number` VARCHAR(15) NOT NULL , PRIMARY KEY (`Institution_Id`)) ENGINE = InnoDB;
#Student
CREATE TABLE `onlineexam`.`Student` ( `Student_Id` INT NOT NULL , `Institution_Id` INT NOT NULL , `Student_Name` VARCHAR(100) NOT NULL , `Phone_Number` VARCHAR(15) NOT NULL , `Email` VARCHAR(100) NOT NULL , PRIMARY KEY (`Student_Id`), INDEX `Foreign_Key` (`Institution_Id`)) ENGINE = InnoDB;
#teacher
CREATE TABLE `onlineexam`.`Teacher` ( `Teacher_Id` INT NOT NULL , `Institution_Id` INT NOT NULL , `Teacher_Name` VARCHAR(100) NOT NULL , `Phone_Number` VARCHAR(15) NOT NULL , `Email` VARCHAR(100) NOT NULL , `isVerified` BOOLEAN NOT NULL , PRIMARY KEY (`Teacher_Id`), INDEX `Foreign_Key` (`Institution_Id`)) ENGINE = InnoDB;
#include "types.h"
#include "user.h"
int main(void){
printf(1,"%d",getmyage());
exit();
}
#include "types.h"
#include "user.h"
int main(void){
printf(1,"hello");
exit();
}
#include<bits/stdc++.h>
using namespace std;
#define mx 100005
vector<int>g[mx],rg[mx],sg[mx];
int visited[mx];
long long cost[mx],cost1[mx];
long long scc[mx];
long long ans[mx];
stack<int>s;
int co=1;
for(int i=1;i<=n;i++)
{
memset(visited,0,sizeof visited);
dfs(i);
for(int j=1;j<=n;j++)
if(visited[j]==1)
ans[i]=ans[i]+cost[j];
}
#include<stdio.h>
#include<stdlib.h>
#define FALSE_VALUE 0
#define TRUE_VALUE 1
struct treeNode
{
int item;
struct treeNode * left; //points to left child
#include<stdio.h>
#include<stdlib.h>
#define NULL_VALUE -99999
#define SUCCESS_VALUE 99999
struct listNode
{
int item;
#include<stdio.h>
#define MAX_HEAP_SIZE 100000
#define MAXREAL 999999.0
class HeapItem
{
public:
int data;
#include<bits/stdc++.h>
using namespace std;
template<typename T>
struct linkedlist
{
T data;
linkedlist *next;
};