Skip to content

Commit e4f1e21

Browse files
authored
Merge branch 'Py-Contributors:main' into docs/security-policy
2 parents 4fcf4db + e489544 commit e4f1e21

3 files changed

Lines changed: 76 additions & 0 deletions

File tree

.github/workflows/welcome.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Welcome Bot
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
pull_request_target:
7+
types: [opened]
8+
workflow_dispatch: # Allows the maintainer to run this workflow manually
9+
10+
jobs:
11+
welcome:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
17+
steps:
18+
- name: Welcome First-Time Issue Author
19+
if: github.event_name == 'issues'
20+
uses: actions/first-interaction@v1
21+
with:
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
issue-message: |
24+
👋 Welcome to **is-one-one**, @${{ github.event.issue.user.login }}!
25+
26+
Thanks for opening your first issue. Our team of engineering students will look into this soon! We love exploring new and creative ways to prove `1 == 1`.
27+
28+
While you wait, please take a look at our [Contributing Guidelines](https://github.com/Py-Contributors/is-one-one/blob/85c9377cad3dd45a38b117f53dbbef99158c0224/CONTRIBUTING.md) to see how we structure our project. We look forward to collaborating with you! 🚀
29+
30+
- name: Welcome First-Time PR Author
31+
if: github.event_name == 'pull_request_target'
32+
uses: actions/first-interaction@v1
33+
with:
34+
repo-token: ${{ secrets.GITHUB_TOKEN }}
35+
pr-message: |
36+
👋 Welcome to **is-one-one**, @${{ github.event.pull_request.user.login }}!
37+
38+
Thank you for submitting your first pull request! We really appreciate your time and effort in contributing to the project.
39+
40+
Our automated test suite will run shortly to verify your contribution. In the meantime, please review our [Contributing Guidelines](https://github.com/Py-Contributors/is-one-one/blob/85c9377cad3dd45a38b117f53dbbef99158c0224/CONTRIBUTING.md) to ensure your PR matches our repository requirements. Happy coding! 🧠

is_one_one.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,36 @@ def is_one_using_vector_magnitude():
103103
if np.linalg.norm(v_hat) == 1:
104104
return True
105105
return False
106+
107+
def Anik_one(a):
108+
a=100/100
109+
return bool(a) # cause you cant deny facts
110+
111+
def is_one_using_existential_crisis():
112+
"""Proves 1 == 1 by having a full philosophical breakdown first."""
113+
things_that_exist = []
114+
115+
# gather evidence that existence is real
116+
things_that_exist.append("this function")
117+
things_that_exist.append("your regret for reading this")
118+
things_that_exist.append("the concept of the number one")
119+
things_that_exist.append("the void")
120+
things_that_exist.append("also the void's cousin, emptiness")
121+
122+
# remove the void because it contributes nothing (as expected)
123+
things_that_exist = [t for t in things_that_exist if "void" not in t]
124+
125+
# the concept of the number one definitely exists
126+
# int(True) == 1. This is load-bearing philosophy.
127+
conceptual_one = int("the concept of the number one" in things_that_exist)
128+
129+
# Descartes said cogito ergo sum. We say computas ergo unum.
130+
cogito = True # I think
131+
ergo = cogito # therefore
132+
sum_ = ergo # I am
133+
unum = int(sum_) # I am... one
134+
135+
return unum == conceptual_one == 1
106136

107137
def is_one_just_to_be_sure():
108138
"""Verifies one by aggregating every proof."""
@@ -117,6 +147,7 @@ def is_one_just_to_be_sure():
117147
is_one_under_extreme_pressure(),
118148
the_one_suriya(),
119149
is_one_using_vector_magnitude(),
150+
is_one_using_existential_crisis(),
120151
])
121152

122153
def main():
@@ -133,6 +164,7 @@ def main():
133164
is_one_under_extreme_pressure,
134165
the_one_suriya,
135166
is_one_using_vector_magnitude,
167+
is_one_using_existential_crisis,
136168
]
137169

138170
print("🧠 Running overengineered checks to see if 1 == 1:\n")

test_core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ def test_is_one_using_vector_magnitude(self):
4949
"""The magnitude of a unit vector is one."""
5050
self.assertTrue(is_one_one.is_one_using_vector_magnitude())
5151

52+
def test_is_one_using_existential_crisis(self):
53+
"""A full philosophical breakdown confirms 1 == 1."""
54+
self.assertTrue(is_one_one.is_one_using_existential_crisis())
55+
5256
def test_is_one_just_to_be_sure(self):
5357
"""The ultimate recursive confirmation."""
5458
self.assertTrue(is_one_one.is_one_just_to_be_sure())

0 commit comments

Comments
 (0)