repo_id
stringclasses
208 values
file_path
stringlengths
31
190
content
stringlengths
1
2.65M
__index_level_0__
int64
0
0
qxf2_public_repos/cars-api
qxf2_public_repos/cars-api/terraform/carsapi.tf
provider "aws" { region = var.aws_region profile = var.profile } // Generate a secure private TLS key resource "tls_private_key" "carsapiprivate" { algorithm = "RSA" rsa_bits = 4096 } resource "aws_key_pair" "deployer" { key_name = var.key_name public_key = tls_private_key.carsapiprivate.public_key_ope...
0
qxf2_public_repos/cars-api
qxf2_public_repos/cars-api/terraform/variables.tf
/* terraform/variables.tf Modify default values of variables as needed for aws_region, profile, keyname*/ variable "aws_region" { default = "us-east-1" description = "The AWS region to create resources in" type = string } variable "profile" { default = "personal" type = string } variable "key_nam...
0
qxf2_public_repos/cars-api
qxf2_public_repos/cars-api/terraform/ami-datasource.tf
data "aws_ami" "ubuntu" { most_recent = true filter { name = "name" values = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*"] } filter { name = "virtualization-type" values = ["hvm"] } owners = ["099720109477"] # Canonical }
0
qxf2_public_repos/cars-api
qxf2_public_repos/cars-api/templates/index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Cars API</title> <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <script src="//maxcdn.bootstra...
0
qxf2_public_repos
qxf2_public_repos/weather-shopper-app-apk/LICENSE
MIT License Copyright (c) 2024 rohandudam Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
0
qxf2_public_repos
qxf2_public_repos/weather-shopper-app-apk/README.md
# Weather Shopper App Apk Weather Shopper App is developed by [Qxf2 Services](https://www.qxf2.com/?utm_source=weather-shopper-android-app&utm_medium=click&utm_campaign=From%20Github) for practical learning of Appium and programming language. This repository holds the APK file of the Weather Shopper App. You can downl...
0
qxf2_public_repos
qxf2_public_repos/context-based-qa-rag/explore_rag.py
""" A context-based question answering script that reads the context from a dataset and answers questions based on it """ import os import torch from datasets import load_dataset from transformers import DPRContextEncoder, \ DPRContextEncoderTokenizer, \ RagTokenizer, \...
0
qxf2_public_repos
qxf2_public_repos/context-based-qa-rag/LICENSE
MIT License Copyright (c) 2023 shivahari Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
0
qxf2_public_repos
qxf2_public_repos/context-based-qa-rag/requirements.txt
torch==2.0.1 torchvision==0.15.2 transformers==4.30.2 datasets==2.13.1 faiss-cpu==1.7.4
0
qxf2_public_repos
qxf2_public_repos/context-based-qa-rag/README.md
# context-based-qa-rag Context-based Question Answering using RAG
0
qxf2_public_repos
qxf2_public_repos/qxf2-employees/run.py
from employees.employee_app import app #----START OF SCRIPT if __name__=='__main__': app.run()
0
qxf2_public_repos
qxf2_public_repos/qxf2-employees/requirements.txt
SQLAlchemy==1.3.20 graphene-sqlalchemy==2.3.0 Flask==1.1.2 Flask-GraphQL==2.0.1 flask-graphql-auth==1.3.2 PyJWT==1.7.0
0
qxf2_public_repos
qxf2_public_repos/qxf2-employees/README.md
# Employee Database This repo is a GraphQL implementation of a single table (employees) using Flask and Graphene. The app has authentication (JWT) and exposes the web based graphiQL editor too. Qxf2 uses this app to practice writing tests, learning to make graphQL queries and as a starting point to understanding the re...
0
qxf2_public_repos/qxf2-employees
qxf2_public_repos/qxf2-employees/data/dummy_data.csv
email,firstname,lastname,employee_id,skype_id,blog_author_name,phone,github_id,aws_id,trello_id,date_joined,employment_type,is_active steinitz@qxf2.com,Wilhelm,Steinitz,WorldChamp001,wilihelm.steinitz.qxf2,user1,188621894,steinitz_qxf2,123456789,steinitzqxf21,01-Feb-86,full,Y lasker@qxf2.com,Emmanuel,Lasker,WorldChamp0...
0
qxf2_public_repos/qxf2-employees
qxf2_public_repos/qxf2-employees/employees/employee_app.py
""" Flask app that exposes the GraphQL interface """ from flask import Flask from flask_graphql_auth import ( AuthInfoField, GraphQLAuth, get_jwt_identity, get_raw_jwt, create_access_token, create_refresh_token, query_jwt_required, mutation_jwt_refresh_token_required, mutation_jwt_re...
0
qxf2_public_repos/qxf2-employees
qxf2_public_repos/qxf2-employees/employees/models.py
""" Models for the employee app """ from sqlalchemy import * from sqlalchemy.orm import scoped_session, sessionmaker, relationship, backref from sqlalchemy.ext.declarative import declarative_base engine = create_engine('sqlite:///data/employee_database.sqlite3', convert_unicode=True) db_session = scoped_session(sessio...
0
qxf2_public_repos/qxf2-employees
qxf2_public_repos/qxf2-employees/employees/secret.py
JWT_SECRET_KEY="FILL_THIS_OUT_PLEASE"
0
qxf2_public_repos/qxf2-employees
qxf2_public_repos/qxf2-employees/employees/schema.py
""" This script ties the database model to the GraphQL schema """ import graphene from graphene import relay from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField from flask_graphql_auth import ( create_access_token, query_header_jwt_required, create_refresh_token) from employees.m...
0
qxf2_public_repos
qxf2_public_repos/flask-tutorial-demo/LICENSE
MIT License Copyright (c) 2018 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl...
0
qxf2_public_repos
qxf2_public_repos/flask-tutorial-demo/mybio.py
""" Flask app to host my simple bio Habit: Develop -> test locally -> commit -> push to remote -> deploy to prod -> test on prod === 30 minutes """ from flask import Flask app = Flask(__name__) @app.route("/") def index_page(): "The search page" return "<html><h1>Under construction</h1>Hello, I'm arun.<html...
0
qxf2_public_repos
qxf2_public_repos/flask-tutorial-demo/README.md
# flask-tutorial-demo This tutorial was used to give a one-hour live demo on writing a web application with Flask.
0
qxf2_public_repos
qxf2_public_repos/py_isolid/LICENSE
MIT License Copyright (c) 2019 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subl...
0
qxf2_public_repos
qxf2_public_repos/py_isolid/README.md
# py_isolid This is a Python module to work with Inrupt's Solid.
0
qxf2_public_repos
qxf2_public_repos/delta-lake-trello/LICENSE
MIT License Copyright (c) 2023 sravantit25 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
0
qxf2_public_repos
qxf2_public_repos/delta-lake-trello/requirements.txt
delta-spark==2.1.1 deltalake==0.6.4 pydelta==1.7.0 pyspark==3.3.1 requests pandas loguru
0
qxf2_public_repos
qxf2_public_repos/delta-lake-trello/README.md
## Delta Lake implementation for Qxf2's Trello data ### Background Delta lake is an open-source storage framework that brings reliability to data lakes by ensuring ACID transactions, scalable metadata handling and much more. It thereby enables building a Lakehouse architecure on top of existing data lakes. The Lakehou...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/config/delta_table_conf.py
""" Contains the paths of the delta tables """ cards_bronze_table_path = '/home/ubuntu/lakehouse_project/data_tables/bronze_cards_table' members_bronze_table_path = '/home/ubuntu/lakehouse_project/data_tables/bronze_members_table' cards_silver_table_path = '/home/ubuntu/lakehouse_project/data_tables/silver_cards_table'...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/config/trello_conf.py
""" Contains the Trello configuration details """ import os TRELLO_API_KEY = os.environ["TRELLO_API_KEY"] TRELLO_API_SECRET= os.environ["TRELLO_API_SECRET"] TRELLO_TOKEN = os.environ["TRELLO_TOKEN"]
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/config/skype_conf.py
""" Contains Skype configuration details """ import os SKYPE_CHANNEL = os.environ["SKYPE_CHANNEL"] SKYPE_URL= os.environ["SKYPE_API_KEY"] SKYPE_API_KEY = os.environ["SKYPE_API_KEY"]
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/operations/bronze_layer_operations.py
""" This script contains the functions that help in ingestion operations * Fetching the raw trello cards data * Fetching the raw trello members data """ import os import sys import json from loguru import logger from delta import * from delta.tables import DeltaTable # add project root to sys path sys.path.append(os.p...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/operations/silver_layer_operations.py
""" This script contains the functions that help in refinement operations """ import os import sys from loguru import logger from delta.tables import DeltaTable from pyspark.sql.functions import col, date_format, lit, row_number from pyspark.sql.window import Window # add project root to sys path sys.path.append(os.pa...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/rohan_cards_gold.py
""" This script will: - fetch all cards from silver unique cards table, - filter data for specific user over specified time frame and - save it to user Delta Lake Gold table """ import os import sys from datetime import datetime import argparse from loguru import logger from pyspark.sql.functions import col sys.path...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/archana_gold_card.py
""" Script to - fetch all the cards that a member has worked on within the given duration - save this data to the member's Delta Lake Gold table """ import os import sys from datetime import datetime import argparse from loguru import logger from pyspark.sql.functions import col sys.path.append(os.path.dirname(os.pat...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/raghava_nelbo_trello_to_gold.py
""" This script will fetch all the cards of a Trello board according to the defined criteria: This script fetches all the Trello cards that I have worked on over a period of time and place it in a Gold delta table This script is scheduled to run twice a week """ import os import sys from datetime import datetime, tim...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/mohan_gold_data.py
""" This script will fetch all the cards from silver unique cards table and - filter the table for specific user - filter data for specific timeframe passed in the script - save it to user Delta Lake Gold table """ import os import sys from datetime import datetime, timedelta import argparse from loguru import logger...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/akkul_cards_gold.py
""" This script will fetch all the cards from silver unique cards table and - filter the table for specific user - filter data for specific timeframe passed in the script - save it to user Delta Lake Gold table """ import os import sys from datetime import datetime, timedelta import argparse from loguru import logger...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/shiva_cards_gold.py
""" What does the script do: - Get all the cards a member has worked on - Filter the cars based on start & end date CLI params passed - Create a Gold table with the filtered cards """ import argparse from enum import Enum from datetime import datetime import os import sys sys.path.append(os.path.dirname(os...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/refine_unique_cards_silver.py
""" This job will run the steps which will deduplicate the refined cards data and place them in a Delta Lake Silver table """ import os import sys from loguru import logger sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from operations import silver_layer_operations as sl from helpers imp...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/avinash_cards_gold.py
""" This script will fetch all the cards from silver unique cards table and - filter the table for specific user - filter data for specific timeframe passed in the script - save it to user Delta Lake Gold table """ import os import sys from datetime import datetime import argparse from loguru import logger from pyspa...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/sravanti_cards_gold.py
""" This script will fetch all the cards that have a particular person as the member. It can be queried based on date """ import os import sys from datetime import datetime as dt import argparse from loguru import logger sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from config import d...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/ingest_cards_bronze.py
""" This job will run the steps which will extract raw cards data of a trello board and place them in a Delta Lake Bronze table It is scheduled to run daily """ import os import sys from loguru import logger sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from operations import bronze_laye...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/ajitava_cards_gold.py
""" This script will fetch all the cards of a trello board that according to the below criteria: - Get the data for a defined data range Save the data to Delta Lake Gold table This script is scheduled to run twice a week """ import os import sys from datetime import datetime, timedelta import argparse from loguru impo...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/indira_gold_table.py
""" This script will fetch all the cards for the given user according to the below criteria: - get the date within the given date range - save the data to Delta Lake Gold table - This script is scheduled to run twice a week """ import os import sys from datetime import datetime, timedelta import argparse from loguru ...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/noactivity_cards_gold.py
""" This script will fetch all the cards of a trello board that according to the below criteria: - present in doing list - does not have any activity from past specified days Save the data to Delta Lake Gold table This script is scheduled to run twice a week """ import os import sys from datetime import datetime, time...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/ingest_members_bronze.py
""" This job will run the steps which will extract raw members data of a trello board and place them in a Delta Lake Bronze table It is run once """ import os import sys from loguru import logger sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from operations import bronze_layer_operations...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/refine_current_doing_cards_silver.py
""" This job will run the steps which will refine cards data of a trello board and place them in a Delta Lake Silver table It is scheduled to run """ import os import sys from loguru import logger sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from operations import silver_layer_operation...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/preedhi_cards_duration_gold.py
""" Script to - fetch all the cards that a member has worked on within the given duration - save this data to the member's Delta Lake Gold table """ import os import sys from datetime import datetime import argparse from loguru import logger from pyspark.sql.functions import col sys.path.append(os.path.dirname(os.pat...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/drishya_cards_gold.py
""" This script will fetch all the cards of a trello board that according to the below criteria: - present with in timeframe - Fetch data for Drishya as username Save the data to Delta Lake Gold table """ import os import sys from datetime import datetime, timedelta import argparse from loguru import logger from pysp...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/jobs/rg_trello_cards_gold.py
""" This script will fetch all the trello cards of Raji Gali Save the data to Delta Lake Gold table raji_cards_gold """ import os import sys from datetime import datetime, timedelta import argparse from loguru import logger from pyspark.sql.functions import * sys.path.append(os.path.dirname(os.path.dirname(os.path.abs...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/helpers/trello_functions.py
""" Module containing helper functions for use with Trello """ from trello import TrelloClient from config import trello_conf as tc def get_trello_client(): """ return trello_client object :return trello_client: Trello client object """ try: trello_client = TrelloClient( api_k...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/helpers/common_functions.py
""" This module contains common functions """ import re import datetime import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import helpers.trello_functions as tf def clean_board_date(date: str): """ Cleans up date format in the sprint board name """ if da...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/helpers/skype_sender.py
""" This script is used to send message to provided Skype channel """ import os import sys import requests from loguru import logger sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from config import skype_conf as sc def post_message_on_skype(message): """ Posts a message on the s...
0
qxf2_public_repos/delta-lake-trello
qxf2_public_repos/delta-lake-trello/helpers/spark_helper.py
""" Module containing helper functions for use with Apache Spark """ import pyspark from pyspark.sql import SparkSession from delta import * def start_spark(app_name='trello_delta_app'): """ Start a Spark session :param app_name: Name of Spark app :return: Spark session object """ # get Spar...
0
qxf2_public_repos
qxf2_public_repos/the-bored-qa/LICENSE
MIT License Copyright (c) 2020 qxf2 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, ...
0
qxf2_public_repos
qxf2_public_repos/the-bored-qa/requirements.txt
Flask==1.1.2
0
qxf2_public_repos
qxf2_public_repos/the-bored-qa/README.md
# the-bored-qa A site that shows a random question or situation that make the QA __think__ for themselves and serve as good starting points for discussion and deeper exploration. I'd like a site that throws up challenges that make testers think deeper about testing. So imagine something like a site that QA can visit ...
0
qxf2_public_repos
qxf2_public_repos/the-bored-qa/application.py
""" This file starts the bored QA web application """ from the_bored_qa import app as application #----START OF SCRIPT if __name__ == "__main__": application.run()
0
qxf2_public_repos/the-bored-qa
qxf2_public_repos/the-bored-qa/the_bored_qa/__init__.py
""" The bored QA app starts here! """ from flask import Flask app = Flask(__name__) from the_bored_qa import views
0
qxf2_public_repos/the-bored-qa
qxf2_public_repos/the-bored-qa/the_bored_qa/views.py
""" The Bored QA """ import json import os import random from flask import render_template, request from the_bored_qa import app #import open_questions #import explain_me #import architecture_diagrams #Where are the data files stored? CURR_PATH = os.path.dirname(os.path.abspath(__file__)) DATA_PATH = os.path.join(CURR...
0
qxf2_public_repos/the-bored-qa/the_bored_qa/static
qxf2_public_repos/the-bored-qa/the_bored_qa/static/css/bored_qa_styles.css
/* Src: https://github.com/pure-css/pure/blob/master/site/static/layouts/marketing/styles.css*/ * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } /* * -- BASE STYLES -- * Most of these are inherited from Base, but I want to change a few. */ body { line-height...
0
qxf2_public_repos/the-bored-qa/the_bored_qa/static
qxf2_public_repos/the-bored-qa/the_bored_qa/static/css/style.css
body { background-color: white; background-size:cover; } .questions{ position: absolute; left: 10%; top: 40%; } .block { display: block; width: 20%; border: none; background-color: #4CAF50; color: white; padding: 14px 28px; font-size: 20px; cursor: pointer; ...
0
qxf2_public_repos/the-bored-qa/the_bored_qa/static
qxf2_public_repos/the-bored-qa/the_bored_qa/static/js/bored_qa.js
function toggleInstructions(id) { var div = document.getElementById(id); div.style.display = div.style.display == "none" ? "block" : "none"; }
0
qxf2_public_repos/the-bored-qa/the_bored_qa/static
qxf2_public_repos/the-bored-qa/the_bored_qa/static/data/block_diagrams.json
{ "challenges": [ { "name": "real time monitoring and debugging", "image_url": "https://drive.google.com/uc?id=1zrjxYfzxXShJL_7rEyQsdu5vfUTR_MLQ&export=download", "src": "https://bytes.swiggy.com/architecture-and-design-principles-behind-the-swiggys-delivery-partners-app-...
0
qxf2_public_repos/the-bored-qa/the_bored_qa/static
qxf2_public_repos/the-bored-qa/the_bored_qa/static/data/open_questions.json
{ "challenges": [{ "type": "open-question", "question": "How do you test the emoticons are displayed across different platforms correctly?", "example_apps": [ "Skype", "Slack", "MS Teams" ] }, { ...
0
qxf2_public_repos/the-bored-qa/the_bored_qa/static
qxf2_public_repos/the-bored-qa/the_bored_qa/static/data/situational_questions.json
{ "challenges": [ { "question": "Can Regression testing be fully automated?", "src": "https://www.reddit.com/r/softwaretesting/comments/f8r3ic/regression_testing_can_never_be_fully_automated/", "type": "situational-question" }, { "question": "W...
0
qxf2_public_repos/the-bored-qa/the_bored_qa/static
qxf2_public_repos/the-bored-qa/the_bored_qa/static/data/challenge_metadata.json
{ "challenges_meta": [ { "type": "situational-question", "template": "situational-questions.html", "data": "situational_questions.json" }, { "type": "explain-me", "template": "explain-me.html", "data": "explain_me.json" ...
0
qxf2_public_repos/the-bored-qa/the_bored_qa/static
qxf2_public_repos/the-bored-qa/the_bored_qa/static/data/bugs.json
{ "challenges": [ { "type": "bug", "src": "https://github.com/notepad-plus-plus/notepad-plus-plus/issues/7995", "description": "Notepad++ crashes when trying 'replace in files'" }, { "type": "bug", "src": "https://issues.jenkins-ci....
0
qxf2_public_repos/the-bored-qa/the_bored_qa/static
qxf2_public_repos/the-bored-qa/the_bored_qa/static/data/explain_me.json
{ "challenges": [ { "type": "explain-me", "question": "pip install --upgrade robotframework-seleniumlibrary", "src": "https://github.com/robotframework/SeleniumLibrary", "answer": "Install Python-specific modules and use --upgrade to upgrade the existing pytho...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/why.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="splash"> <h2 class="content-head">Why did we build this?</h2> <p class="normal-text">A while ago, my colleague <a href="https://www.linkedin.com/in/rajigali/">Raji Gali</a> pointed out that we rarely talk about ...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/copyright.html
<div class="is-center"> <span class="copyright">&copy;</span> <a href="https://qxf2.com/?utm_source=footer&utm_medium=click&utm_campaign=The%20Bored%20QA" class="copyright">Qxf2 Services</a> <span class="copyright">2020</span> <!-- - <script>document.write(new Date().getFullYear())</script>-...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/index.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="splash"> <h1 class="splash-head">Spin, tester. Spin!</h1> <p class="splash-subhead"> Challenges to trigger thought, discussion and exploration </p> {% include 'challenge_button.html' ...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/base.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="The bored QA"> <title>The bored QA</title> <link rel='icon' href='/static/img/favicon.ico' type='image/x-icon'/ > <link rel="st...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/explain-me.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="splash"> <p class="challenge-metadata">Explain this command in English</p> <h2 class="explain-me-head">{{ challenge.question }}</h2> <span> <a class="challenge-metadata" href="{{ challenge.sr...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/how.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="splash"> <h2 class="content-head">How to use this site?</h2> <p class="normal-text">Visit this site when you are bored. Click on the 'Challenge me!' button. Every challenge comes with a 'what am I expected to do...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/open-questions.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="splash"> <p class="challenge-metadata">The curious cat</p> <h2 class="content-head">{{ challenge.question }}</h2> <p class="challenge-metadata">Example applications: {{ challenge.example_apps }}</p> ...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/bugs.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="splash"> <p class="challenge-metadata">Everyone has bugs</p> <h2 class="content-head"><a href="{{ challenge.src}}">{{ challenge.description }}</a></h2> <span> <a class="challenge-metadata" on...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/situational-questions.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="splash"> <p class="challenge-metadata">From the Internet</p> <h2 class="content-head">{{ challenge.question }}</h2> <span> <a class="challenge-metadata" href="{{ challenge.src }}">Source</a> ...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/challenge_button.html
<form action='/' method="post"> <p> <button class="pure-button button-index" type="submit">Challenge me!</button> </p> </form>
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/block-diagrams.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="img-splash"> <div class="pure-g"> <div class="pure-u-2-3"> <img class="block-diagram-img" src="{{ challenge.image_url }}"></img> </div> <div class="pure-u-1-3"> ...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/what.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="splash"> <h2 class="content-head">What is this site?</h2> <p class="normal-text">This is a site meant for software testers. The site throws a random challenge that makes the tester think. We hope the challenges ...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/error.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="splash"> <h1 class="splash-head">🤦 Uh oh! </h1> <p class="splash-subhead"> We handled your last request poorly. Please try again. </p> {% include 'challenge_button.html' %} {...
0
qxf2_public_repos/the-bored-qa/the_bored_qa
qxf2_public_repos/the-bored-qa/the_bored_qa/templates/faq.html
{% extends "base.html" %} {% block content %} <div class="splash-container"> <div class="img-splash"> <h2 class="content-head">FAQ</h2> <p class="normal-text"><strong>1. Can I see all the questions in one place?</strong></p> <p class="normal-text">Ans. No. Not as of Jul-2020. We do plan to e...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/bandit.yml
# Skip flagging assert statement inclusion in test during Codacy check assert_used: skips: ['*/test_*.py']
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/conftest.py
""" Pytest configuration and shared fixtures This module contains the common pytest fixtures, hooks, and utility functions used throughout the test suite. These fixtures help to set up test dependencies such as browser configurations, base URLs, and external services (e.g., BrowserStack, SauceLabs, TestRail, Report P...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/pytest.ini
[pytest] addopts = -v -s -rsxX --continue-on-collection-errors --tb=short --ignore=utils/Test_Rail.py --ignore=tests/test_boilerplate.py --ignore=utils/Test_Runner_Class.py -p no:cacheprovider norecursedirs = .svn _build tmp* log .vscode .git markers = GUI: mark a test as part of the GUI regression suite API: m...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/LICENSE
MIT License Copyright (c) 2016 Qxf2 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, ...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/requirements.txt
requests==2.32.0 reportportal-client==5.5.4 pytest==8.1.1 selenium==4.12.0 python_dotenv==0.16.0 Appium_Python_Client==3.2.0 pytest-xdist>=1.31 pytest-html>=3.0.0 pytest-rerunfailures>=9.1.1 pytest_reportportal==5.4.0 pillow>=6.2.0 tesults==1.2.1 boto3==1.33.0 loguru imageio questionary>=1.9.0 clear-screen>=0.1.14 prom...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/Dockerfile
# Pull ubuntu 22.04 base image FROM ubuntu:22.04 LABEL maintainer="Qxf2 Services" ENV DISPLAY=:20 # Essential tools and xvfb RUN apt-get update && apt-get install -y \ software-properties-common \ unzip \ wget \ bzip2 \ xvfb \ x11vnc \ fluxbox \ xterm # Install Google Chrome and depe...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/env_remote
#Set REMOTE_BROWSER_PLATFROM TO BS TO RUN ON BROWSERSTACK else #SET REMOTE_BROWSER_PLATFORM TO SL TO RUN ON SAUCELABS #SET REMOTE_BROWSER_PLATFORM TO LT TO RUN ON LAMBDATEST REMOTE_BROWSER_PLATFORM = "BS" REMOTE_USERNAME = "Enter your username" REMOTE_ACCESS_KEY = "Enter your access key"
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/env_conf
# Tesults Configuration tesults_target_token_default = "" #TestRail url and credentials testrail_url = "Add your testrail url" testrail_user = 'TESTRAIL_USERNAME' testrail_password = 'TESTRAIL_PASSWORD' #Details needed for the Gmail #Fill out the email details over here imaphost ="imap.gmail.com" #Add imap hostname...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/Readme.md
![Python version](https://img.shields.io/badge/python-3.x-green?color=brightgreen) ![GitHub](https://img.shields.io/github/license/qxf2/qxf2-page-object-model?color=brightgreen) ![Maintenance](https://img.shields.io/maintenance/yes/2024?color=brightgreen) [![CircleCI](https://circleci.com/gh/qxf2/qxf2-page-object-model...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/CONTRIBUTING.md
Contributing Guidelines -------- Your contributions are always welcome! There are a number of ways you can contribute. These guidelines instruct how to submit issues and contribute code or documentation to [Qxf2 Automation Framework](https://github.com/qxf2/qxf2-page-object-model). Reporting bugs -------- This sect...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/tox.ini
[tox] skipsdist = true [testenv] #Setting the dependency file deps = -r{toxinidir}/requirements.txt #used to not trigger the “not installed in virtualenv” warning message whitelist_externals=* #setting the environment setenv= app_path= {toxinidir}/weather-shopper-app-apk/app/ #Command to run the test commands = p...
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/entrypoint.sh
#!/bin/bash export DISPLAY=:20 Xvfb :20 -screen 0 1366x768x16 & # Start x11vnc x11vnc -passwd TestVNC -display :20 -N -forever & # Run CMD command exec "$@"
0
qxf2_public_repos
qxf2_public_repos/qxf2-page-object-model/env_ssh_conf
#Server credential details needed for ssh HOST = 'Enter your host details here' USERNAME = 'USERNAME' PASSWORD = 'PASSWORD' PORT = 22 TIMEOUT = 10 #.pem file details PKEY = 'Enter your key filename here' #Sample commands to execute(Add your commands here) COMMANDS = ['ls;mkdir sample'] #Sample file locations to upl...
0
qxf2_public_repos/qxf2-page-object-model
qxf2_public_repos/qxf2-page-object-model/endpoints/registration_api_endpoints.py
""" API endpoint abstraction for /registration endpoint """ from .base_api import BaseAPI class RegistrationAPIEndpoints(BaseAPI): "Class for registration endpoints" def registration_url(self,suffix=''): """Append API end point to base URL""" return self.base_url+'/register/'+suffix def r...
0
qxf2_public_repos/qxf2-page-object-model
qxf2_public_repos/qxf2-page-object-model/endpoints/api_player.py
# pylint: disable=line-too-long """ API_Player class does the following: a) serves as an interface between the test and API_Interface b) contains several useful wrappers around commonly used combination of actions c) maintains the test context/state """ from base64 import b64encode import logging import urllib.parse fr...
0
qxf2_public_repos/qxf2-page-object-model
qxf2_public_repos/qxf2-page-object-model/endpoints/base_api.py
""" A wrapper around Requests to make Restful API calls """ import asyncio import requests from requests.exceptions import HTTPError, RequestException class BaseAPI: "Main base class for Requests based scripts" session_object = requests.Session() base_url = None def make_request(self, ...
0
qxf2_public_repos/qxf2-page-object-model
qxf2_public_repos/qxf2-page-object-model/endpoints/user_api_endpoints.py
""" API endpoints for Registration """ from .base_api import BaseAPI class UserAPIEndpoints(BaseAPI): "Class for user endpoints" def user_url(self,suffix=''): """Append API end point to base URL""" return self.base_url+'/users'+suffix def get_user_list(self,headers): "get users list...
0
qxf2_public_repos/qxf2-page-object-model
qxf2_public_repos/qxf2-page-object-model/endpoints/api_interface.py
""" A composed Interface for all the Endpoint abstraction objects: * Cars API Endpoints * Registration API Endpoints * User API Endpoints The APIPlayer Object interacts only to the Interface to access the Endpoint """ from .cars_api_endpoints import CarsAPIEndpoints from .registration_api_endpoints import ...
0