Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add imperfect combos up to 255, add new workflow to automatically run find-num.py on a push for new combos #3

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/autocheckcombos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Find Shortest Combination

on:
push:
branches:
- main # Adjust this to your default branch if necessary

jobs:
find_candidates:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # Specify your required Python version

- name: Run find-num.py
id: find_candidates
run: |
python find-num.py data/originalMappings.csv --range 255 > results.txt || true
cat results.txt

- name: Check for new candidates
id: check_candidates
run: |
if grep -q "No combination found" results.txt; then
echo "No new candidates found."
echo "::set-output name=new_candidates::false"
else
echo "New candidates found."
echo "::set-output name=new_candidates::true"
fi

- name: Create Pull Request
if: steps.check_candidates.outputs.new_candidates == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git checkout -b new-candidates-branch
# Assuming you want to modify a specific file or create a new one based on results.txt
cp results.txt new_candidates.txt
git add new_candidates.txt
git commit -m "Add new candidate combinations"
git push origin new-candidates-branch

- name: Create Pull Request
if: steps.check_candidates.outputs.new_candidates == 'true'
uses: peter-evans/create-pull-request@v3
with:
title: "New Candidate Combinations Found"
body: "This pull request includes new candidate combinations found by find-num.py."
base: main # Adjust this to your default branch if necessary
head: new-candidates-branch
145 changes: 129 additions & 16 deletions data/originalMappings.csv
Original file line number Diff line number Diff line change
Expand Up @@ -57,30 +57,30 @@
56,max(str(ord(str(int()))))
57,max(str(ord(str(+(not())))))
58,chr(len(str(bin))+len(vars(dict)))
59,chr(ord(str(int()))+len(str(range(int()))))
59,chr(len(str(hash))+len(vars(dict)))
60,next(iter(str(bin)))
61,chr(ord(str(int()))+len(str(type(int()))))
61,chr(len(str(set))+ord(str(int())))
62,next(reversed(str(object())))
63,chr(ord(str(int()))+len(str(type(float()))))
64,chr(ord(str(int()))+len(str(type(object()))))
65,chr(ord(str(int()))+len(str(type(complex()))))
66,chr(sum(range(len(set(str(type(bytes())))))))
63,chr(len(str(bytes))+ord(str(int())))
64,chr(len(str(object))+ord(str(int())))
65,chr(len(str(complex))+ord(str(int())))
66,chr(len(str(reversed))+ord(str(int())))
67,next(iter(str(copyright)))
68,chr(ord(next(iter(str(copyright))))+(not()))
69,chr(max(range(ord(min(str(()in()))))))
70,min(str(()in()))
71,chr(ord(next(iter(str(()in()))))+(not()))
72,chr(ord(min(str(()in())))+(not())+(not()))
73,chr(ord(str(int()))+len(str(set(str(set())))))
74,chr(ord(next(iter(str(str))))+len(str(dict)))
71,chr((not())+ord(min(str(()in()))))
72,chr(len(str(hash))+ord(str(int())))
73,chr(len(str(ascii))+ord(str(int())))
74,chr(len(str(ascii))+ord(str(+(not()))))
75,chr(ord(min(str(()in())))+len(str(set())))
76,chr(len(vars(list))+ord(max(repr(str()))))
77,chr(max(range(sum(range(len(str(set)))))))
78,chr(sum(range(len(str(set)))))
79,chr(sum(range(len(str(set))))+(not()))
80,chr(ord(min(str(set())))+ord(min(str(set()))))
80,chr(ord(min(str(bin)))+ord(str(int())))
81,chr(sum(range(len(str(set))))+len(hex(int())))
82,chr(sum(range(len(str(set))))+len(str(not())))
82,chr(len(vars(dict))+len(vars(set)))
83,chr(max(range(ord(min(str(not()))))))
84,min(str(not()))
85,chr(ord(min(str(not())))+(not()))
Expand All @@ -91,14 +91,14 @@
90,chr(max(range(sum(range(len(str(dict)))))))
91,chr(sum(range(len(str(dict)))))
92,max(repr(repr(repr(str()))))
93,chr(ord(max(repr(repr(repr(str())))))+(not()))
93,chr(len(str(bin))+ord(min(str(()in()))))
94,chr(ord(str(int()))+ord(min(str(float()))))
95,chr(ord(min(str(()in())))+len(str(ascii)))
95,chr(len(vars(set))+ord(str(int())))
96,chr(ord(min(min(vars())))+(not()))
97,chr(max(range(ord(max(bin(int()))))))
98,max(bin(int()))
99,chr(ord(max(bin(int())))+(not()))
100,next(reversed(hex(ord(max(str(dict()))))))
100,chr((not())+ord(max(bin(int())))+(not()))
101,next(reversed(str(not())))
102,next(iter(str(frozenset())))
103,chr(ord(next(iter(str(frozenset()))))+(not()))
Expand All @@ -125,19 +125,132 @@
124,chr(ord(min(str(dict())))+(not()))
125,max(str(dict()))
126,chr(ord(max(str(dict())))+(not()))
127,chr(len(str(set()))+ord(max(str(zip))))
128,chr(len(str(set))+ord(max(str(range))))
129,chr(len(str(set))+ord(max(str(set))))
130,chr(len(str(set))+ord(max(str(bin))))
131,chr(len(str(set))+ord(max(str(vars))))
132,chr(len(str(set))+ord(max(str(pow))))
133,chr(len(str(set))+ord(max(str(hex))))
134,chr(len(str(set))+ord(max(str(type))))
135,chr(len(str(set))+ord(max(str(zip))))
136,chr(len(str(dict))+ord(max(str(zip))))
137,chr(len(str(bytes))+ord(max(str(zip))))
138,chr(len(str(bin))+ord(max(str(range))))
139,chr(len(str(bin))+ord(max(str(set))))
140,chr(len(str(bin))+ord(max(str(bin))))
141,chr(len(str(bin))+ord(max(str(vars))))
142,chr(len(str(bin))+ord(max(str(pow))))
143,chr(len(str(bin))+ord(max(str(hex))))
144,chr(len(str(bin))+ord(max(str(type))))
145,chr(len(str(bin))+ord(max(str(zip))))
146,chr(len(str(hash))+ord(max(str(zip))))
147,chr(len(str(ascii))+ord(max(str(zip))))
148,chr(len(str(bin))+ord(max(str(dict()))))
149,chr(len(str(hash))+ord(max(str(dict()))))
150,chr(len(vars(dict))+ord(max(str(range))))
151,chr(len(vars(dict))+ord(max(str(set))))
152,chr(len(vars(dict))+ord(max(str(bin))))
153,chr(len(vars(list))+ord(max(str(set))))
154,chr(len(vars(dict))+ord(max(str(pow))))
155,chr(len(vars(dict))+ord(max(str(hex))))
156,chr(len(vars(list))+ord(max(str(pow))))
157,chr(len(vars(dict))+ord(max(str(zip))))
158,chr(len(str(credits)))
159,chr((not())+len(str(credits)))
160,chr(len(str(credits)+repr(str())))
161,chr(len(str(credits)+bin(int())))
162,chr(len(str(credits)+str(not())))
163,chr(len(str(credits)+str(set())))
164,chr(len(vars(set))+ord(max(str(bin))))
165,chr(len(vars(set))+ord(max(str(vars))))
166,chr(len(vars(set))+ord(max(str(pow))))
167,chr(len(vars(set))+ord(max(str(hex))))
168,chr(len(vars(set))+ord(max(str(type))))
169,chr(len(vars(set))+ord(max(str(zip))))
170,chr(ord(str(int()))+ord(max(str(zip))))
171,chr(sum(range(len(str(frozenset)))))
172,chr(len(str(dict)+str(credits)))
173,chr(len(str(credits)+str(bytes)))
174,chr(len(str(object)+str(credits)))
175,chr(len(str(complex)+str(credits)))
176,chr(len(str(credits)+str(reversed)))
177,chr(len(str(credits)+str(frozenset)))
178,chr((not())+len(str(credits)+str(frozenset)))
179,chr(ord(next(iter(str(bin))))+ord(max(str(pow))))
180,chr(len(vars(tuple))+len(str(credits)))
181,chr(len(str(bin)+str(credits)))
182,chr(len(str(credits)+str(hash)))
183,chr(len(str(credits)+str(ascii)))
184,chr(len(str(credits)+ascii(str(hash))))
185,chr(len(ascii(str(ascii))+str(credits)))
185,chr(len(ascii(str(ascii))+str(credits)))
186,chr(ord(min(str(()in())))+ord(max(str(set))))
187,chr(ord(min(str(()in())))+ord(max(str(bin))))
188,chr(ord(min(str(()in())))+ord(max(str(vars))))
189,chr(ord(min(str(()in())))+ord(max(str(pow))))
190,chr(ord(min(str(bin)))+len(str(credits)))
191,chr(ord(min(str(()in())))+ord(max(str(type))))
192,chr(ord(min(str(()in())))+ord(max(str(zip))))
193,chr(len(vars(dict))+len(str(credits)))
194,chr(len(ascii(type(bin)))+len(str(credits)))
195,chr(len(vars(list))+len(str(credits)))
196,chr((not())+len(vars(list))+len(str(credits)))
197,chr(ord(max(repr(str())))+len(str(credits)))
198,chr(ord(min(str(set())))+len(str(credits)))
199,chr(ord(max(str(tuple())))+len(str(credits)))
200,chr(ord(min(str(not())))+ord(max(str(set))))
201,chr(ord(min(str(not())))+ord(max(str(bin))))
202,chr(ord(min(str(not())))+ord(max(str(vars))))
203,chr(ord(min(str(not())))+ord(max(str(pow))))
204,chr(ord(min(str(not())))+ord(max(str(hex))))
205,chr(len(vars(set))+len(str(credits)))
206,chr(ord(str(int()))+len(str(credits)))
207,chr(ord(str(+(not())))+len(str(credits)))
208,chr(len(vars(set))+len(str(credits)+bin(int())))
209,chr(ord(max(bin(int())))+ord(max(oct(int()))))
210,chr(len(vars(set))+len(str(credits)+str(set())))
211,chr(ord(str(len(str(set()))))+len(str(credits)))
212,chr(len(vars(list))+len(str(complex)+str(credits)))
213,chr(ord(max(bin(int())))+ord(max(str(range))))
214,chr(ord(max(bin(int())))+ord(max(str(set))))
215,chr(ord(max(bin(int())))+ord(max(str(bin))))
216,chr(ord(max(bin(int())))+ord(max(str(vars))))
217,chr(ord(max(bin(int())))+ord(max(str(pow))))
218,chr(ord(max(bin(int())))+ord(max(str(hex))))
219,chr(ord(max(bin(int())))+ord(max(str(type))))
220,chr(ord(max(bin(int())))+ord(max(str(zip))))
221,chr(ord(max(bin(int())))+ord(min(str(dict()))))
222,chr(ord(max(str(complex())))+ord(max(str(set))))
223,chr(ord(max(bin(int())))+ord(max(str(dict()))))
224,chr(ord(max(str(complex())))+ord(max(str(vars))))
225,chr(ord(max(str(complex())))+ord(max(str(pow))))
226,chr(ord(max(oct(int())))+ord(max(str(range))))
227,chr(ord(max(oct(int())))+ord(max(str(set))))
228,chr(ord(min(str(()in())))+len(str(credits)))
229,chr(ord(max(oct(int())))+ord(max(str(vars))))
230,chr(ord(max(oct(int())))+ord(max(str(pow))))
231,chr(sum(range(len(vars(tuple)))))
232,chr(ord(max(str(range)))+ord(max(str(bin))))
233,chr(ord(max(str(set)))+ord(max(str(bin))))
234,chr(ord(max(str(set)))+ord(max(str(vars))))
235,chr(ord(max(str(set)))+ord(max(str(pow))))
236,chr(ord(max(str(set)))+ord(max(str(hex))))
237,chr(ord(max(str(bin)))+ord(max(str(hex))))
238,chr(ord(max(str(set)))+ord(max(str(zip))))
239,chr(ord(max(str(bin)))+ord(max(str(zip))))
240,chr(ord(max(str(vars)))+ord(max(str(zip))))
241,chr(ord(max(str(pow)))+ord(max(str(zip))))
242,chr(ord(max(str(hex)))+ord(max(str(zip))))
243,chr(ord(max(str(type)))+ord(max(str(zip))))
244,chr(ord(max(str(pow)))+ord(max(str(dict()))))
245,chr(ord(max(str(hex)))+ord(max(str(dict()))))
246,chr(ord(max(str(type)))+ord(max(str(dict()))))
247,chr(ord(max(str(zip)))+ord(max(str(dict()))))
248,chr(ord(min(str(dict())))+ord(max(str(dict()))))
249,chr(sum(range(len(str(dict))))+len(str(credits)))
250,chr(ord(max(repr(repr(repr(str())))))+len(str(credits)))
251,chr(ord(min(str(()in())))+len(str(bin)+str(credits)))
252,chr(ord(min(str(()in())))+len(str(credits)+str(hash)))
253,chr(sum(range(len(str(bin)))))
254,chr(ord(min(min(vars())))+(not())+len(str(credits)))
255,chr(max(range(ord(max(bin(int())))))+len(str(credits)))
Loading