Arrange modules in standardized ordering

This commit is contained in:
Debanjum Singh Solanky 2021-08-17 03:59:58 -07:00
parent 569e30b1c8
commit a3a1100be9
3 changed files with 22 additions and 8 deletions

View file

@ -1,11 +1,18 @@
# Standard Packages
import sys
import argparse
import pathlib
from typing import Optional
# External Packages
import uvicorn
from fastapi import FastAPI
# Internal Packages
from search_type import asymmetric
from processor.org_mode.org_to_jsonl import org_to_jsonl
from utils.helpers import is_none_or_empty
import argparse
import pathlib
import uvicorn
app = FastAPI()

View file

@ -1,14 +1,16 @@
#!/usr/bin/env python3
# Import Modules
from processor.org_mode import orgnode
from utils.helpers import get_absolute_path, is_none_or_empty
# Standard Packages
import json
import argparse
import pathlib
import glob
import gzip
# Internal Packages
from processor.org_mode import orgnode
from utils.helpers import get_absolute_path, is_none_or_empty
# Define Functions
def org_to_jsonl(org_files, org_file_filter, output_file, verbose=0):

View file

@ -1,15 +1,20 @@
#!/usr/bin/env python
# Standard Packages
import json
from sentence_transformers import SentenceTransformer, CrossEncoder, util
import time
import gzip
import os
import sys
import re
import torch
import argparse
import pathlib
# External Packages
import torch
from sentence_transformers import SentenceTransformer, CrossEncoder, util
# Internal Packages
from utils.helpers import get_absolute_path
from processor.org_mode.org_to_jsonl import org_to_jsonl