projects
/
cipher-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated notebooks for new library organisation
[cipher-tools.git]
/
2016
/
2016-challenge2.ipynb
diff --git
a/2016/2016-challenge2.ipynb
b/2016/2016-challenge2.ipynb
index 6a6cc4e342d8e712d51a9608e33548ca34f2e8e5..6298f3f65a214bcaf2e5780dea8ce2667757a17c 100644
(file)
--- a/
2016/2016-challenge2.ipynb
+++ b/
2016/2016-challenge2.ipynb
@@
-3,9
+3,7
@@
{
"cell_type": "code",
"execution_count": 1,
{
"cell_type": "code",
"execution_count": 1,
- "metadata": {
- "collapsed": true
- },
+ "metadata": {},
"outputs": [],
"source": [
"import os,sys,inspect\n",
"outputs": [],
"source": [
"import os,sys,inspect\n",
@@
-16,7
+14,10
@@
"import matplotlib.pyplot as plt\n",
"%matplotlib inline\n",
"\n",
"import matplotlib.pyplot as plt\n",
"%matplotlib inline\n",
"\n",
- "from cipherbreak import *\n",
+ "from cipher.caesar import *\n",
+ "from cipher.affine import *\n",
+ "from support.utilities import *\n",
+ "from support.text_prettify import *\n",
"\n",
"c2a = open('2a.ciphertext').read()\n",
"c2b = open('2b.ciphertext').read()"
"\n",
"c2a = open('2a.ciphertext').read()\n",
"c2b = open('2b.ciphertext').read()"
@@
-25,9
+26,7
@@
{
"cell_type": "code",
"execution_count": 2,
{
"cell_type": "code",
"execution_count": 2,
- "metadata": {
- "collapsed": false
- },
+ "metadata": {},
"outputs": [
{
"data": {
"outputs": [
{
"data": {
@@
-47,10
+46,8
@@
},
{
"cell_type": "code",
},
{
"cell_type": "code",
- "execution_count": 6,
- "metadata": {
- "collapsed": false
- },
+ "execution_count": 3,
+ "metadata": {},
"outputs": [
{
"name": "stdout",
"outputs": [
{
"name": "stdout",
@@
-85,10
+82,8
@@
},
{
"cell_type": "code",
},
{
"cell_type": "code",
- "execution_count": 7,
- "metadata": {
- "collapsed": false
- },
+ "execution_count": 4,
+ "metadata": {},
"outputs": [
{
"data": {
"outputs": [
{
"data": {
@@
-96,7
+91,7
@@
"(17, -1552.2481210949848)"
]
},
"(17, -1552.2481210949848)"
]
},
- "execution_count":
7
,
+ "execution_count":
4
,
"metadata": {},
"output_type": "execute_result"
}
"metadata": {},
"output_type": "execute_result"
}
@@
-108,10
+103,8
@@
},
{
"cell_type": "code",
},
{
"cell_type": "code",
- "execution_count": 10,
- "metadata": {
- "collapsed": false
- },
+ "execution_count": 5,
+ "metadata": {},
"outputs": [
{
"name": "stdout",
"outputs": [
{
"name": "stdout",
@@
-140,10
+133,8
@@
},
{
"cell_type": "code",
},
{
"cell_type": "code",
- "execution_count": 9,
- "metadata": {
- "collapsed": false
- },
+ "execution_count": 6,
+ "metadata": {},
"outputs": [
{
"name": "stdout",
"outputs": [
{
"name": "stdout",
@@
-172,10
+163,8
@@
},
{
"cell_type": "code",
},
{
"cell_type": "code",
- "execution_count": 11,
- "metadata": {
- "collapsed": false
- },
+ "execution_count": 7,
+ "metadata": {},
"outputs": [
{
"data": {
"outputs": [
{
"data": {
@@
-183,7
+172,7
@@
"((5, 7, True), -1275.2927860232996)"
]
},
"((5, 7, True), -1275.2927860232996)"
]
},
- "execution_count":
11
,
+ "execution_count":
7
,
"metadata": {},
"output_type": "execute_result"
}
"metadata": {},
"output_type": "execute_result"
}
@@
-195,10
+184,8
@@
},
{
"cell_type": "code",
},
{
"cell_type": "code",
- "execution_count": 13,
- "metadata": {
- "collapsed": false
- },
+ "execution_count": 8,
+ "metadata": {},
"outputs": [
{
"name": "stdout",
"outputs": [
{
"name": "stdout",
@@
-251,7
+238,7
@@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.
5.2
"
+ "version": "3.
6.3
"
}
},
"nbformat": 4,
}
},
"nbformat": 4,