Skip to content

Commit

Permalink
🐞 Re-add negation incorrectness check
Browse files Browse the repository at this point in the history
This should not of been removed, but enhanced to verify a valid negation was returned in an incorrect result, or mark it as having no valid negation.
  • Loading branch information
beverage committed Nov 18, 2024
1 parent 0b31d1d commit a1eb13c
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 0 deletions.
125 changes: 125 additions & 0 deletions demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# The configurations that used for the recording, feel free to edit them
config:

# Specify a command to be executed
# like `/bin/bash -l`, `ls`, or any other commands
# the default is bash for Linux
# or powershell.exe for Windows
command: bash -l

# Specify the current working directory path
# the default is the current working directory path
cwd: /Users/alexbeverage/Code/LanguageApps/DatabaseTests

# Export additional ENV variables
env:
recording: true

# Explicitly set the number of columns
# or use `auto` to take the current
# number of columns of your shell
cols: 210

# Explicitly set the number of rows
# or use `auto` to take the current
# number of rows of your shell
rows: 51

# Amount of times to repeat GIF
# If value is -1, play once
# If value is 0, loop indefinitely
# If value is a positive number, loop n times
repeat: 0

# Quality
# 1 - 100
quality: 100

# Delay between frames in ms
# If the value is `auto` use the actual recording delays
frameDelay: auto

# Maximum delay between frames in ms
# Ignored if the `frameDelay` isn't set to `auto`
# Set to `auto` to prevent limiting the max idle time
maxIdleTime: 2000

# The surrounding frame box
# The `type` can be null, window, floating, or solid`
# To hide the title use the value null
# Don't forget to add a backgroundColor style with a null as type
frameBox:
type: floating
title: Terminalizer
style:
border: 0px black solid
# boxShadow: none
# margin: 0px

# Add a watermark image to the rendered gif
# You need to specify an absolute path for
# the image on your machine or a URL, and you can also
# add your own CSS styles
watermark:
imagePath: null
style:
position: absolute
right: 15px
bottom: 15px
width: 100px
opacity: 0.9

# Cursor style can be one of
# `block`, `underline`, or `bar`
cursorStyle: block

# Font family
# You can use any font that is installed on your machine
# in CSS-like syntax
fontFamily: "Monaco, Lucida Console, Ubuntu Mono, Monospace"

# The size of the font
fontSize: 12

# The height of lines
lineHeight: 1

# The spacing between letters
letterSpacing: 0

# Theme
theme:
background: "transparent"
foreground: "#afafaf"
cursor: "#c7c7c7"
black: "#232628"
red: "#fc4384"
green: "#b3e33b"
yellow: "#ffa727"
blue: "#75dff2"
magenta: "#ae89fe"
cyan: "#708387"
white: "#d5d5d0"
brightBlack: "#626566"
brightRed: "#ff7fac"
brightGreen: "#c8ed71"
brightYellow: "#ebdf86"
brightBlue: "#75dff2"
brightMagenta: "#ae89fe"
brightCyan: "#b1c6ca"
brightWhite: "#f9f9f4"

# Records, feel free to edit them
records:
- delay: 1506
content: "\r\nThe default interactive shell is now zsh.\r\nTo update your account to use zsh, please run `chsh -s /bin/zsh`.\r\nFor more details, please visit https://support.apple.com/kb/HT208050.\r\n\e[?1034hAlexs-MacBook-Pro:DatabaseTests alexbeverage$ "
- delay: 6397
content: e
- delay: 213
content: x
- delay: 157
content: i
- delay: 128
content: t
- delay: 142
content: "\r\nlogout\r\n"
4 changes: 4 additions & 0 deletions src/dbtest/sentences/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ async def create_sentence(verb_infinitive: str,
sentence.indirect_pronoun = response_json["indirect_pronoun"]
sentence.reflexive_pronoun = "none" # Temporarily set this to none to not break things before removed, unless kept.

# These can happen if an incorrect answer is on the negation, which is fine, but will break the negation enum.
if is_correct is False and sentence.negation not in Negation.__members__:
sentence.negation = str(Negation.none)

# If a sentence is supposed to be correct, double check it, as the prompts to generate it are overly complicated right now.
if is_correct:

Expand Down

0 comments on commit a1eb13c

Please sign in to comment.