Spaces:
Running
Running
Commit ·
de1be28
1
Parent(s): 8c495c2
updated tests
Browse files- tests/dummy_dataset.csv +100 -100
- tests/test_core_functions.py +4 -4
tests/dummy_dataset.csv
CHANGED
|
@@ -1,100 +1,100 @@
|
|
| 1 |
-
report
|
| 2 |
-
Geometric patterns started rotating behind my eyelids.
|
| 3 |
-
The colors in the room became incredibly vivid; they started breathing.
|
| 4 |
-
I saw a bright white light. It seemed to emanate from everywhere.
|
| 5 |
-
Fractal imagery appeared. It shifted slowly from green to purple.
|
| 6 |
-
The edges of objects became fuzzy. Everything looked indistinct.
|
| 7 |
-
Visual acuity increased significantly. I could see every pore on my hand.
|
| 8 |
-
I perceived trails of light following moving objects.
|
| 9 |
-
The room appeared to stretch. It warped like a funhouse mirror.
|
| 10 |
-
Complex architectural structures appeared in my peripheral vision.
|
| 11 |
-
Everything looked two-dimensional. It was like a flat painting.
|
| 12 |
-
My body felt incredibly heavy. It felt as if I were sinking into the floor.
|
| 13 |
-
I lost all sensation in my hands and feet.
|
| 14 |
-
A warm tingling sensation started at the base of my spine. It moved up to my neck.
|
| 15 |
-
I felt a disconnect between my mind and my physical form.
|
| 16 |
-
My breathing became very rhythmic. It was deep and without my control.
|
| 17 |
-
I felt physically larger than the room I was sitting in.
|
| 18 |
-
A sensation of floating weightlessness took over.
|
| 19 |
-
I felt a rhythmic pulsing in my chest. It matched the beat of the music.
|
| 20 |
-
My limbs felt elongated. They felt rubbery and strange.
|
| 21 |
-
There was a distinct pressure in the center of my forehead.
|
| 22 |
-
I was overcome by a profound sense of universal love.
|
| 23 |
-
A sudden wave of anxiety washed over me. However, it passed quickly.
|
| 24 |
-
I felt completely at peace with past conflicts.
|
| 25 |
-
There was an intense feeling of gratitude for simply existing.
|
| 26 |
-
I felt deeply connected to the people around me.
|
| 27 |
-
Tears of joy started streaming down my face. I could not control them.
|
| 28 |
-
I felt a sense of awe. I felt insignificant in the face of the universe.
|
| 29 |
-
Old memories surfaced. They brought a mix of nostalgia and sadness.
|
| 30 |
-
I felt incredibly safe. I felt held by the environment.
|
| 31 |
-
A burst of euphoria made me want to laugh out loud.
|
| 32 |
-
Time seemed to stop completely. A minute felt like an hour.
|
| 33 |
-
My sense of self dissolved. I became part of the music.
|
| 34 |
-
Thoughts were racing faster than I could process them.
|
| 35 |
-
My mind was completely silent. It was a rare state of no-thought.
|
| 36 |
-
I understood the concept of infinity intuitively.
|
| 37 |
-
The boundary between myself and the external world vanished.
|
| 38 |
-
I had a sudden insight into a problem. I had been struggling with it for years.
|
| 39 |
-
Language felt clumsy. It was inadequate to describe the experience.
|
| 40 |
-
I forgot who I was for a brief moment.
|
| 41 |
-
The past and future seemed to merge. They became a single present moment.
|
| 42 |
-
I saw a bright light. Then, I felt a deep sense of peace.
|
| 43 |
-
My hands felt huge. In contrast, the room looked tiny.
|
| 44 |
-
The music became visible as colors. At the same time, I felt my body floating.
|
| 45 |
-
I felt a sharp pain in my stomach. This was followed by a release of tension.
|
| 46 |
-
The walls were breathing. I felt connected to the house.
|
| 47 |
-
Time slowed down. I could see the air moving.
|
| 48 |
-
I felt a vibration in my teeth. I also saw blue flashes.
|
| 49 |
-
My ego dissolved. I was just pure awareness watching the room.
|
| 50 |
-
I remembered my childhood. This made me feel a wave of grief.
|
| 51 |
-
The floor patterns were moving. My legs felt like jelly.
|
| 52 |
-
I felt like I was underwater. The sounds were muffled.
|
| 53 |
-
Bright geometric shapes appeared. I felt very cold.
|
| 54 |
-
I laughed uncontrollably. The room spun around me.
|
| 55 |
-
I felt a presence in the room. I saw a shadow move.
|
| 56 |
-
My thoughts were looping. I couldn't speak.
|
| 57 |
-
The light was blinding. I felt a sense of holiness.
|
| 58 |
-
I felt tiny like an ant. The world was massive.
|
| 59 |
-
Colors tasted sweet. Sounds had textures.
|
| 60 |
-
I felt a burning sensation in my chest. It turned into love.
|
| 61 |
-
The world looked digital. It was like a computer simulation.
|
| 62 |
-
I saw my own face in the mirror. I didn't recognize it.
|
| 63 |
-
A deep hum vibrated through my bones. The light turned red.
|
| 64 |
-
I felt like I was spinning very fast. Yet, I was standing still.
|
| 65 |
-
The concept of money seemed absurd. I started laughing.
|
| 66 |
-
I felt a deep empathy for a tree outside the window.
|
| 67 |
-
My hands looked alien. I saw trails when I moved them.
|
| 68 |
-
I felt a knot in my throat. It released into a scream.
|
| 69 |
-
The silence was deafening. The darkness was full of light.
|
| 70 |
-
I felt like I was being pulled upwards. It was like a giant magnet.
|
| 71 |
-
My skin felt hard. It felt like it was made of stone.
|
| 72 |
-
I saw faces in the clouds. I felt they were watching me.
|
| 73 |
-
I felt a wave of heat. Then, I felt a wave of cold.
|
| 74 |
-
The music sounded internal. It was coming from inside my head.
|
| 75 |
-
I felt a deep sense of forgiveness for myself.
|
| 76 |
-
The room folded in on itself. I was in a void.
|
| 77 |
-
I felt like I was made of light and sound.
|
| 78 |
-
I saw a tunnel of light. I felt no fear.
|
| 79 |
-
My thoughts were clear. They were sharp like crystal.
|
| 80 |
-
I felt the rotation of the earth beneath me.
|
| 81 |
-
The air felt thick like syrup. It was harder to breathe.
|
| 82 |
-
I saw sparks of light. They appeared when I closed my eyes.
|
| 83 |
-
I felt a deep sadness for the state of the world.
|
| 84 |
-
My body was vibrating. It was at a high frequency.
|
| 85 |
-
I saw the structure of the universe in a flower.
|
| 86 |
-
I felt like I had lived this moment before.
|
| 87 |
-
The colors were hyper-real. They were more real than real life.
|
| 88 |
-
I felt a heavy weight on my chest. I couldn't move.
|
| 89 |
-
I saw a grid overlaying everything in the room.
|
| 90 |
-
I felt a separation between my observer self and my thinking self.
|
| 91 |
-
My voice sounded strange. It sounded distant to my ears.
|
| 92 |
-
I felt a rush of energy up my spine. I saw white.
|
| 93 |
-
The objects in the room seemed to have personalities.
|
| 94 |
-
I felt like I was melting. I was melting into the chair.
|
| 95 |
-
I saw a vision of my future. I felt calm.
|
| 96 |
-
The world turned into a cartoon for a second.
|
| 97 |
-
I felt a deep connection to my ancestors.
|
| 98 |
-
I saw a kaleidoscope of colors. I felt dizzy.
|
| 99 |
-
My heart was beating so fast. I thought it would explode.
|
| 100 |
-
I felt a sense of absolute truth. I felt clarity.
|
|
|
|
| 1 |
+
"report"
|
| 2 |
+
"Geometric patterns started rotating behind my eyelids."
|
| 3 |
+
"The colors in the room became incredibly vivid; they started breathing."
|
| 4 |
+
"I saw a bright white light. It seemed to emanate from everywhere."
|
| 5 |
+
"Fractal imagery appeared. It shifted slowly from green to purple."
|
| 6 |
+
"The edges of objects became fuzzy. Everything looked indistinct."
|
| 7 |
+
"Visual acuity increased significantly. I could see every pore on my hand."
|
| 8 |
+
"I perceived trails of light following moving objects."
|
| 9 |
+
"The room appeared to stretch. It warped like a funhouse mirror."
|
| 10 |
+
"Complex architectural structures appeared in my peripheral vision."
|
| 11 |
+
"Everything looked two-dimensional. It was like a flat painting."
|
| 12 |
+
"My body felt incredibly heavy. It felt as if I were sinking into the floor."
|
| 13 |
+
"I lost all sensation in my hands and feet."
|
| 14 |
+
"A warm tingling sensation started at the base of my spine. It moved up to my neck."
|
| 15 |
+
"I felt a disconnect between my mind and my physical form."
|
| 16 |
+
"My breathing became very rhythmic. It was deep and without my control."
|
| 17 |
+
"I felt physically larger than the room I was sitting in."
|
| 18 |
+
"A sensation of floating weightlessness took over."
|
| 19 |
+
"I felt a rhythmic pulsing in my chest. It matched the beat of the music."
|
| 20 |
+
"My limbs felt elongated. They felt rubbery and strange."
|
| 21 |
+
"There was a distinct pressure in the center of my forehead."
|
| 22 |
+
"I was overcome by a profound sense of universal love."
|
| 23 |
+
"A sudden wave of anxiety washed over me. However, it passed quickly."
|
| 24 |
+
"I felt completely at peace with past conflicts."
|
| 25 |
+
"There was an intense feeling of gratitude for simply existing."
|
| 26 |
+
"I felt deeply connected to the people around me."
|
| 27 |
+
"Tears of joy started streaming down my face. I could not control them."
|
| 28 |
+
"I felt a sense of awe. I felt insignificant in the face of the universe."
|
| 29 |
+
"Old memories surfaced. They brought a mix of nostalgia and sadness."
|
| 30 |
+
"I felt incredibly safe. I felt held by the environment."
|
| 31 |
+
"A burst of euphoria made me want to laugh out loud."
|
| 32 |
+
"Time seemed to stop completely. A minute felt like an hour."
|
| 33 |
+
"My sense of self dissolved. I became part of the music."
|
| 34 |
+
"Thoughts were racing faster than I could process them."
|
| 35 |
+
"My mind was completely silent. It was a rare state of no-thought."
|
| 36 |
+
"I understood the concept of infinity intuitively."
|
| 37 |
+
"The boundary between myself and the external world vanished."
|
| 38 |
+
"I had a sudden insight into a problem. I had been struggling with it for years."
|
| 39 |
+
"Language felt clumsy. It was inadequate to describe the experience."
|
| 40 |
+
"I forgot who I was for a brief moment."
|
| 41 |
+
"The past and future seemed to merge. They became a single present moment."
|
| 42 |
+
"I saw a bright light. Then, I felt a deep sense of peace."
|
| 43 |
+
"My hands felt huge. In contrast, the room looked tiny."
|
| 44 |
+
"The music became visible as colors. At the same time, I felt my body floating."
|
| 45 |
+
"I felt a sharp pain in my stomach. This was followed by a release of tension."
|
| 46 |
+
"The walls were breathing. I felt connected to the house."
|
| 47 |
+
"Time slowed down. I could see the air moving."
|
| 48 |
+
"I felt a vibration in my teeth. I also saw blue flashes."
|
| 49 |
+
"My ego dissolved. I was just pure awareness watching the room."
|
| 50 |
+
"I remembered my childhood. This made me feel a wave of grief."
|
| 51 |
+
"The floor patterns were moving. My legs felt like jelly."
|
| 52 |
+
"I felt like I was underwater. The sounds were muffled."
|
| 53 |
+
"Bright geometric shapes appeared. I felt very cold."
|
| 54 |
+
"I laughed uncontrollably. The room spun around me."
|
| 55 |
+
"I felt a presence in the room. I saw a shadow move."
|
| 56 |
+
"My thoughts were looping. I couldn't speak."
|
| 57 |
+
"The light was blinding. I felt a sense of holiness."
|
| 58 |
+
"I felt tiny like an ant. The world was massive."
|
| 59 |
+
"Colors tasted sweet. Sounds had textures."
|
| 60 |
+
"I felt a burning sensation in my chest. It turned into love."
|
| 61 |
+
"The world looked digital. It was like a computer simulation."
|
| 62 |
+
"I saw my own face in the mirror. I didn't recognize it."
|
| 63 |
+
"A deep hum vibrated through my bones. The light turned red."
|
| 64 |
+
"I felt like I was spinning very fast. Yet, I was standing still."
|
| 65 |
+
"The concept of money seemed absurd. I started laughing."
|
| 66 |
+
"I felt a deep empathy for a tree outside the window."
|
| 67 |
+
"My hands looked alien. I saw trails when I moved them."
|
| 68 |
+
"I felt a knot in my throat. It released into a scream."
|
| 69 |
+
"The silence was deafening. The darkness was full of light."
|
| 70 |
+
"I felt like I was being pulled upwards. It was like a giant magnet."
|
| 71 |
+
"My skin felt hard. It felt like it was made of stone."
|
| 72 |
+
"I saw faces in the clouds. I felt they were watching me."
|
| 73 |
+
"I felt a wave of heat. Then, I felt a wave of cold."
|
| 74 |
+
"The music sounded internal. It was coming from inside my head."
|
| 75 |
+
"I felt a deep sense of forgiveness for myself."
|
| 76 |
+
"The room folded in on itself. I was in a void."
|
| 77 |
+
"I felt like I was made of light and sound."
|
| 78 |
+
"I saw a tunnel of light. I felt no fear."
|
| 79 |
+
"My thoughts were clear. They were sharp like crystal."
|
| 80 |
+
"I felt the rotation of the earth beneath me."
|
| 81 |
+
"The air felt thick like syrup. It was harder to breathe."
|
| 82 |
+
"I saw sparks of light. They appeared when I closed my eyes."
|
| 83 |
+
"I felt a deep sadness for the state of the world."
|
| 84 |
+
"My body was vibrating. It was at a high frequency."
|
| 85 |
+
"I saw the structure of the universe in a flower."
|
| 86 |
+
"I felt like I had lived this moment before."
|
| 87 |
+
"The colors were hyper-real. They were more real than real life."
|
| 88 |
+
"I felt a heavy weight on my chest. I couldn't move."
|
| 89 |
+
"I saw a grid overlaying everything in the room."
|
| 90 |
+
"I felt a separation between my observer self and my thinking self."
|
| 91 |
+
"My voice sounded strange. It sounded distant to my ears."
|
| 92 |
+
"I felt a rush of energy up my spine. I saw white."
|
| 93 |
+
"The objects in the room seemed to have personalities."
|
| 94 |
+
"I felt like I was melting. I was melting into the chair."
|
| 95 |
+
"I saw a vision of my future. I felt calm."
|
| 96 |
+
"The world turned into a cartoon for a second."
|
| 97 |
+
"I felt a deep connection to my ancestors."
|
| 98 |
+
"I saw a kaleidoscope of colors. I felt dizzy."
|
| 99 |
+
"My heart was beating so fast. I thought it would explode."
|
| 100 |
+
"I felt a sense of absolute truth. I felt clarity."
|
tests/test_core_functions.py
CHANGED
|
@@ -158,12 +158,12 @@ class TestLoadCSVTexts:
|
|
| 158 |
"""CSV loading."""
|
| 159 |
|
| 160 |
def test_loads_texts(self, sample_csv):
|
| 161 |
-
texts = load_csv_texts(sample_csv, text_col="
|
| 162 |
-
assert len(texts)
|
| 163 |
|
| 164 |
def test_auto_detects_column(self, sample_csv):
|
| 165 |
texts = load_csv_texts(sample_csv)
|
| 166 |
-
assert len(texts)
|
| 167 |
|
| 168 |
def test_raises_on_missing_column(self, sample_csv):
|
| 169 |
with pytest.raises(ValueError, match="No valid text column"):
|
|
@@ -189,7 +189,7 @@ class TestCountCleanReports:
|
|
| 189 |
"""Report counting."""
|
| 190 |
|
| 191 |
def test_counts_correctly(self, sample_csv):
|
| 192 |
-
assert count_clean_reports(sample_csv, "
|
| 193 |
|
| 194 |
def test_returns_zero_on_error(self):
|
| 195 |
assert count_clean_reports("/nonexistent/path.csv") == 0
|
|
|
|
| 158 |
"""CSV loading."""
|
| 159 |
|
| 160 |
def test_loads_texts(self, sample_csv):
|
| 161 |
+
texts = load_csv_texts(sample_csv, text_col="report")
|
| 162 |
+
assert len(texts) > 0
|
| 163 |
|
| 164 |
def test_auto_detects_column(self, sample_csv):
|
| 165 |
texts = load_csv_texts(sample_csv)
|
| 166 |
+
assert len(texts) > 0
|
| 167 |
|
| 168 |
def test_raises_on_missing_column(self, sample_csv):
|
| 169 |
with pytest.raises(ValueError, match="No valid text column"):
|
|
|
|
| 189 |
"""Report counting."""
|
| 190 |
|
| 191 |
def test_counts_correctly(self, sample_csv):
|
| 192 |
+
assert count_clean_reports(sample_csv, "report") > 0
|
| 193 |
|
| 194 |
def test_returns_zero_on_error(self):
|
| 195 |
assert count_clean_reports("/nonexistent/path.csv") == 0
|