This file contains hidden or 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 json | |
| from datetime import datetime | |
| from dataclasses import dataclass | |
| from enum import Enum | |
| from typing import List | |
| from warnings import warn | |
| from .config import USERS_DATASET_PATH | |
This file contains hidden or 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
| from dataclasses import asdict | |
| import uvicorn | |
| from starlette.applications import Starlette | |
| from starlette.routing import Route | |
| from starlette.responses import UJSONResponse | |
| from src.repo.users import get_user, get_users | |
This file contains hidden or 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 json | |
| from sys import argv | |
| from faker import Faker | |
| from .users import User | |
| from .config import USERS_DATASET_PATH | |
| def generate_users(size: int) -> None: |
This file contains hidden or 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
| Jinja2==2.11.2 | |
| Werkzeug==1.0.1 | |
| click==7.1.1 | |
| flask==1.1.2 | |
| gunicorn==20.0.4 | |
| itsdangerous==1.1.0 |
This file contains hidden or 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
| -r base.txt | |
| pytest==5.2.0 | |
| pytest-mock==1.10.4 | |
| ipdb==0.12 |
This file contains hidden or 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
| Flask==1.* | |
| gunicorn==20.* |
This file contains hidden or 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
| addCodeLine = (code) -> | |
| editor = atom.workspace.getActivePaneItem() | |
| cursors = editor.getCursors(); | |
| cursors[0].moveToFirstCharacterOfLine(); | |
| cursors[0].moveToFirstCharacterOfLine(); | |
| editor.insertText(code, options = { | |
| "autoIndentNewline": true, | |
| "autoIndent": true | |
| }) |
This file contains hidden or 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 { getHttp } from 'utils/fetch'; | |
| import { HISTORY_URL } from 'conf/urls'; | |
| const types = { | |
| START_FETCHING_HISTORY: 'START_FETCHING_HISTORY', | |
| FINISH_FETCHING_HISTORY: 'FINISH_FETCHING_HISTORY', | |
| INVALIDATE_HISTORY: 'INVALIDATE_HISTORY', | |
| }; |