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 sys | |
if len(sys.argv) <3: | |
print("python test.py checkpoint_path data-bin bpe_code") | |
sys.exit(0) | |
else: | |
path=sys.argv[1] | |
db=sys.argv[2] | |
code=sys.argv[3] | |
from fairseq.models.transformer import TransformerModel | |
eng2brx = TransformerModel.from_pretrained( |
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
#!/usr/bin/env bash | |
# | |
# Adapted from https://github.com/facebookresearch/MIXER/blob/master/prepareData.sh | |
usage() { | |
echo "usage: <command> options:<e|p|b|a>" | |
echo "-e exp1 -p eng-brx -b 5000 -a transformer" | |
} | |
no_args="true" | |
while getopts e:l:b:a: flag; do | |
case "${flag}" in |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
import "../utils/Strings.sol"; | |
import "../utils/introspection/ERC165.sol"; | |
/** | |
* @dev External interface of AccessControl declared to support ERC165 detection. |
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 tensorflow.keras | |
from PIL import Image, ImageOps | |
import numpy as np | |
# Disable scientific notation for clarity | |
np.set_printoptions(suppress=True) | |
# Load the model | |
model = tensorflow.keras.models.load_model('keras_model.h5') |
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
void main(){ | |
print("Hello World"); | |
Student s = new Student(23,"Sanjib Narzary","G1234"); | |
print(s.roll); | |
} | |
class Student{ | |
int age; | |
String name; | |
String rollNumber; |
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
# Copyright (c) 2013 Georgios Gousios | |
# MIT-licensed | |
create database stackoverflow DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; | |
use stackoverflow; | |
create table badges ( | |
Id INT NOT NULL PRIMARY KEY, | |
UserId INT, |
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
;Author : Sanjib Narzary | |
;Institute: NIT Calicut | |
;Email: [email protected] | |
;greet.asm | |
section .data | |
; Declare/store the information "Hello World!" | |
prompt db 'What is your name? ' | |
; do not change the order of the following three lines! | |
helloMsg dq 'Hello ' | |
name db ' ' ; space characters |
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
;Author : Sanjib Narzary | |
;Institute: NIT Calicut | |
;Email: [email protected] | |
;Assembly Code | |
section .data | |
;New line string | |
NEWLINE: db 0xa, 0xd | |
LENGTH: equ $-NEWLINE | |
section .bss | |
INPT: resd 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
;Author : Sanjib Narzary | |
;Institute: NIT Calicut | |
;Email: [email protected] | |
;Assembly Code | |
section .text | |
global main | |
extern printf | |
main: | |
mov ebx,10 ;number 10 to ebx |
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
;Author : Sanjib Narzary | |
;Institute: NIT Calicut | |
;Email: [email protected] | |
;Assembly Code | |
section .text | |
global main | |
extern printf | |
main: |