This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "types.h" | |
#include "user.h" | |
int main(void){ | |
printf(1,"%d",getmyage()); | |
exit(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "types.h" | |
#include "user.h" | |
int main(void){ | |
printf(1,"hello"); | |
exit(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#define NULL_VALUE -99999 | |
#define SUCCESS_VALUE 99999 | |
struct listNode | |
{ | |
int item; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#define MAX_HEAP_SIZE 100000 | |
#define MAXREAL 999999.0 | |
class HeapItem | |
{ | |
public: | |
int data; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<bits/stdc++.h> | |
using namespace std; | |
template<typename T> | |
struct linkedlist | |
{ | |
T data; | |
linkedlist *next; | |
}; | |
NewerOlder